@das-fed/utils 7.0.0-zhaohang.4 → 7.0.0-zhaohang.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-services/index.js +88 -84
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +705 -683
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +39 -35
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +735 -713
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +39 -35
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +38 -34
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +39 -35
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +114 -110
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +687 -701
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +88 -84
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +689 -703
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +704 -686
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +705 -683
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +39 -35
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +39 -35
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +42 -38
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +39 -35
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +639 -639
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +698 -712
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +734 -712
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +39 -35
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +705 -683
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +703 -685
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +38 -34
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/index.js +704 -682
- package/create-api-service/index.js.gz +0 -0
- package/curring-http/index.js +1 -1
- package/curring-http/index.js.gz +0 -0
- package/package.json +4 -4
|
@@ -60,10 +60,10 @@ function an(t, e) {
|
|
|
60
60
|
return null;
|
|
61
61
|
}
|
|
62
62
|
const le = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, sn = (t) => !Ce(t) && t !== le;
|
|
63
|
-
function
|
|
63
|
+
function Ut() {
|
|
64
64
|
const { caseless: t } = sn(this) && this || {}, e = {}, n = (r, o) => {
|
|
65
65
|
const a = t && an(e, o) || o;
|
|
66
|
-
qe(e[a]) && qe(r) ? e[a] =
|
|
66
|
+
qe(e[a]) && qe(r) ? e[a] = Ut(e[a], r) : qe(r) ? e[a] = Ut({}, r) : be(r) ? e[a] = r.slice() : e[a] = r;
|
|
67
67
|
};
|
|
68
68
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
69
69
|
arguments[r] && $e(arguments[r], n);
|
|
@@ -71,11 +71,11 @@ function Bt() {
|
|
|
71
71
|
}
|
|
72
72
|
const Lo = (t, e, n, { allOwnKeys: r } = {}) => ($e(e, (o, a) => {
|
|
73
73
|
n && H(o) ? t[a] = rn(o, n) : t[a] = o;
|
|
74
|
-
}, { allOwnKeys: r }), t), Mo = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t),
|
|
74
|
+
}, { allOwnKeys: r }), t), Mo = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Uo = (t, e, n, r) => {
|
|
75
75
|
t.prototype = Object.create(e.prototype, r), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
76
76
|
value: e.prototype
|
|
77
77
|
}), n && Object.assign(t.prototype, n);
|
|
78
|
-
},
|
|
78
|
+
}, Bo = (t, e, n, r) => {
|
|
79
79
|
let o, a, i;
|
|
80
80
|
const s = {};
|
|
81
81
|
if (e = e || {}, t == null) return e;
|
|
@@ -209,12 +209,12 @@ const ea = (t) => {
|
|
|
209
209
|
isTypedArray: jo,
|
|
210
210
|
isFileList: xo,
|
|
211
211
|
forEach: $e,
|
|
212
|
-
merge:
|
|
212
|
+
merge: Ut,
|
|
213
213
|
extend: Lo,
|
|
214
214
|
trim: Io,
|
|
215
215
|
stripBOM: Mo,
|
|
216
|
-
inherits:
|
|
217
|
-
toFlatObject:
|
|
216
|
+
inherits: Uo,
|
|
217
|
+
toFlatObject: Bo,
|
|
218
218
|
kindOf: tt,
|
|
219
219
|
kindOfTest: Q,
|
|
220
220
|
endsWith: ko,
|
|
@@ -294,7 +294,7 @@ b.from = (t, e, n, r, o, a) => {
|
|
|
294
294
|
}, (s) => s !== "isAxiosError"), b.call(i, t.message, e, n, r, o), i.cause = t, i.name = t.name, a && Object.assign(i, a), i;
|
|
295
295
|
};
|
|
296
296
|
const oa = null;
|
|
297
|
-
function
|
|
297
|
+
function Bt(t) {
|
|
298
298
|
return f.isPlainObject(t) || f.isArray(t);
|
|
299
299
|
}
|
|
300
300
|
function dn(t) {
|
|
@@ -306,7 +306,7 @@ function dr(t, e, n) {
|
|
|
306
306
|
}).join(n ? "." : "") : e;
|
|
307
307
|
}
|
|
308
308
|
function aa(t) {
|
|
309
|
-
return f.isArray(t) && !t.some(
|
|
309
|
+
return f.isArray(t) && !t.some(Bt);
|
|
310
310
|
}
|
|
311
311
|
const ia = f.toFlatObject(f, {}, null, function(e) {
|
|
312
312
|
return /^is[A-Z]/.test(e);
|
|
@@ -346,12 +346,12 @@ function ot(t, e, n) {
|
|
|
346
346
|
);
|
|
347
347
|
}), !1;
|
|
348
348
|
}
|
|
349
|
-
return
|
|
349
|
+
return Bt(y) ? !0 : (e.append(dr(h, m, a), l(y)), !1);
|
|
350
350
|
}
|
|
351
351
|
const p = [], d = Object.assign(ia, {
|
|
352
352
|
defaultVisitor: c,
|
|
353
353
|
convertValue: l,
|
|
354
|
-
isVisitable:
|
|
354
|
+
isVisitable: Bt
|
|
355
355
|
});
|
|
356
356
|
function g(y, m) {
|
|
357
357
|
if (!f.isUndefined(y)) {
|
|
@@ -493,14 +493,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ya
|
|
|
493
493
|
hasStandardBrowserWebWorkerEnv: da,
|
|
494
494
|
navigator: kt,
|
|
495
495
|
origin: ya
|
|
496
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
496
|
+
}, Symbol.toStringTag, { value: "Module" })), U = {
|
|
497
497
|
...ha,
|
|
498
498
|
...fa
|
|
499
499
|
};
|
|
500
500
|
function ma(t, e) {
|
|
501
|
-
return ot(t, new
|
|
501
|
+
return ot(t, new U.classes.URLSearchParams(), Object.assign({
|
|
502
502
|
visitor: function(n, r, o, a) {
|
|
503
|
-
return
|
|
503
|
+
return U.isNode && f.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
504
504
|
}
|
|
505
505
|
}, e));
|
|
506
506
|
}
|
|
@@ -594,8 +594,8 @@ const Ne = {
|
|
|
594
594
|
maxContentLength: -1,
|
|
595
595
|
maxBodyLength: -1,
|
|
596
596
|
env: {
|
|
597
|
-
FormData:
|
|
598
|
-
Blob:
|
|
597
|
+
FormData: U.classes.FormData,
|
|
598
|
+
Blob: U.classes.Blob
|
|
599
599
|
},
|
|
600
600
|
validateStatus: function(e) {
|
|
601
601
|
return e >= 200 && e < 300;
|
|
@@ -887,10 +887,10 @@ const Je = (t, e, n = 3) => {
|
|
|
887
887
|
total: t,
|
|
888
888
|
loaded: r
|
|
889
889
|
}), e[1]];
|
|
890
|
-
}, vr = (t) => (...e) => f.asap(() => t(...e)), Ca =
|
|
891
|
-
new URL(
|
|
892
|
-
|
|
893
|
-
) : () => !0, _a =
|
|
890
|
+
}, vr = (t) => (...e) => f.asap(() => t(...e)), Ca = U.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, U.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
|
|
891
|
+
new URL(U.origin),
|
|
892
|
+
U.navigator && /(msie|trident)/i.test(U.navigator.userAgent)
|
|
893
|
+
) : () => !0, _a = U.hasStandardBrowserEnv ? (
|
|
894
894
|
// Standard browser envs support document.cookie
|
|
895
895
|
{
|
|
896
896
|
write(t, e, n, r, o, a) {
|
|
@@ -1000,14 +1000,14 @@ const Sn = (t) => {
|
|
|
1000
1000
|
);
|
|
1001
1001
|
let u;
|
|
1002
1002
|
if (f.isFormData(n)) {
|
|
1003
|
-
if (
|
|
1003
|
+
if (U.hasStandardBrowserEnv || U.hasStandardBrowserWebWorkerEnv)
|
|
1004
1004
|
i.setContentType(void 0);
|
|
1005
1005
|
else if ((u = i.getContentType()) !== !1) {
|
|
1006
1006
|
const [l, ...c] = u ? u.split(";").map((p) => p.trim()).filter(Boolean) : [];
|
|
1007
1007
|
i.setContentType([l || "multipart/form-data", ...c].join("; "));
|
|
1008
1008
|
}
|
|
1009
1009
|
}
|
|
1010
|
-
if (
|
|
1010
|
+
if (U.hasStandardBrowserEnv && (r && f.isFunction(r) && (r = r(e)), r || r !== !1 && Ca(e.url))) {
|
|
1011
1011
|
const l = o && a && _a.read(a);
|
|
1012
1012
|
l && i.set(o, l);
|
|
1013
1013
|
}
|
|
@@ -1063,7 +1063,7 @@ const Sn = (t) => {
|
|
|
1063
1063
|
h && (r(!v || v.type ? new Se(null, t, h) : v), h.abort(), h = null);
|
|
1064
1064
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
1065
1065
|
const R = Pa(o.url);
|
|
1066
|
-
if (R &&
|
|
1066
|
+
if (R && U.protocols.indexOf(R) === -1) {
|
|
1067
1067
|
r(new b("Unsupported protocol " + R + ":", b.ERR_BAD_REQUEST, t));
|
|
1068
1068
|
return;
|
|
1069
1069
|
}
|
|
@@ -1102,9 +1102,9 @@ const Sn = (t) => {
|
|
|
1102
1102
|
for (; r < n; )
|
|
1103
1103
|
o = r + e, yield t.slice(r, o), r = o;
|
|
1104
1104
|
}, Ma = async function* (t, e) {
|
|
1105
|
-
for await (const n of
|
|
1105
|
+
for await (const n of Ua(t))
|
|
1106
1106
|
yield* La(n, e);
|
|
1107
|
-
},
|
|
1107
|
+
}, Ua = async function* (t) {
|
|
1108
1108
|
if (t[Symbol.asyncIterator]) {
|
|
1109
1109
|
yield* t;
|
|
1110
1110
|
return;
|
|
@@ -1149,7 +1149,7 @@ const Sn = (t) => {
|
|
|
1149
1149
|
}, {
|
|
1150
1150
|
highWaterMark: 2
|
|
1151
1151
|
});
|
|
1152
|
-
}, at = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", En = at && typeof ReadableStream == "function",
|
|
1152
|
+
}, at = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", En = at && typeof ReadableStream == "function", Ba = at && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((t) => (e) => t.encode(e))(new TextEncoder()) : async (t) => new Uint8Array(await new Response(t).arrayBuffer())), An = (t, ...e) => {
|
|
1153
1153
|
try {
|
|
1154
1154
|
return !!t(...e);
|
|
1155
1155
|
} catch {
|
|
@@ -1157,7 +1157,7 @@ const Sn = (t) => {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
}, ka = En && An(() => {
|
|
1159
1159
|
let t = !1;
|
|
1160
|
-
const e = new Request(
|
|
1160
|
+
const e = new Request(U.origin, {
|
|
1161
1161
|
body: new ReadableStream(),
|
|
1162
1162
|
method: "POST",
|
|
1163
1163
|
get duplex() {
|
|
@@ -1181,14 +1181,14 @@ const qa = async (t) => {
|
|
|
1181
1181
|
if (f.isBlob(t))
|
|
1182
1182
|
return t.size;
|
|
1183
1183
|
if (f.isSpecCompliantForm(t))
|
|
1184
|
-
return (await new Request(
|
|
1184
|
+
return (await new Request(U.origin, {
|
|
1185
1185
|
method: "POST",
|
|
1186
1186
|
body: t
|
|
1187
1187
|
}).arrayBuffer()).byteLength;
|
|
1188
1188
|
if (f.isArrayBufferView(t) || f.isArrayBuffer(t))
|
|
1189
1189
|
return t.byteLength;
|
|
1190
1190
|
if (f.isURLSearchParams(t) && (t = t + ""), f.isString(t))
|
|
1191
|
-
return (await
|
|
1191
|
+
return (await Ba(t)).byteLength;
|
|
1192
1192
|
}, ja = async (t, e) => {
|
|
1193
1193
|
const n = f.toFiniteNumber(t.getContentLength());
|
|
1194
1194
|
return n ?? qa(e);
|
|
@@ -1688,22 +1688,22 @@ $.getAdapter = On.getAdapter;
|
|
|
1688
1688
|
$.HttpStatusCode = Ht;
|
|
1689
1689
|
$.default = $;
|
|
1690
1690
|
const {
|
|
1691
|
-
Axios:
|
|
1692
|
-
AxiosError:
|
|
1693
|
-
CanceledError:
|
|
1694
|
-
isCancel:
|
|
1695
|
-
CancelToken:
|
|
1696
|
-
VERSION:
|
|
1697
|
-
all:
|
|
1698
|
-
Cancel:
|
|
1699
|
-
isAxiosError:
|
|
1700
|
-
spread:
|
|
1701
|
-
toFormData:
|
|
1702
|
-
AxiosHeaders:
|
|
1703
|
-
HttpStatusCode:
|
|
1704
|
-
formToJSON:
|
|
1705
|
-
getAdapter:
|
|
1706
|
-
mergeConfig:
|
|
1691
|
+
Axios: gc,
|
|
1692
|
+
AxiosError: vc,
|
|
1693
|
+
CanceledError: wc,
|
|
1694
|
+
isCancel: bc,
|
|
1695
|
+
CancelToken: Sc,
|
|
1696
|
+
VERSION: Ec,
|
|
1697
|
+
all: Ac,
|
|
1698
|
+
Cancel: Oc,
|
|
1699
|
+
isAxiosError: Rc,
|
|
1700
|
+
spread: Pc,
|
|
1701
|
+
toFormData: xc,
|
|
1702
|
+
AxiosHeaders: Tc,
|
|
1703
|
+
HttpStatusCode: Cc,
|
|
1704
|
+
formToJSON: _c,
|
|
1705
|
+
getAdapter: $c,
|
|
1706
|
+
mergeConfig: Nc
|
|
1707
1707
|
} = $;
|
|
1708
1708
|
var Rr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1709
1709
|
function Va(t) {
|
|
@@ -1807,7 +1807,7 @@ var Gt = Za, Dr = Gt.custom, Ir = Nn(Dr) ? Dr : null, _n = {
|
|
|
1807
1807
|
return t(P, a, r + 1, o);
|
|
1808
1808
|
}
|
|
1809
1809
|
if (typeof e == "function" && !Lr(e)) {
|
|
1810
|
-
var g = vi(e), y =
|
|
1810
|
+
var g = vi(e), y = Ue(e, d);
|
|
1811
1811
|
return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (y.length > 0 ? " { " + re.call(y, ", ") + " }" : "");
|
|
1812
1812
|
}
|
|
1813
1813
|
if (Nn(e)) {
|
|
@@ -1822,11 +1822,11 @@ var Gt = Za, Dr = Gt.custom, Ir = Nn(Dr) ? Dr : null, _n = {
|
|
|
1822
1822
|
if (Kt(e)) {
|
|
1823
1823
|
if (e.length === 0)
|
|
1824
1824
|
return "[]";
|
|
1825
|
-
var v =
|
|
1825
|
+
var v = Ue(e, d);
|
|
1826
1826
|
return p && !Pi(v) ? "[" + Jt(v, p) + "]" : "[ " + re.call(v, ", ") + " ]";
|
|
1827
1827
|
}
|
|
1828
1828
|
if (pi(e)) {
|
|
1829
|
-
var N =
|
|
1829
|
+
var N = Ue(e, d);
|
|
1830
1830
|
return !("cause" in Error.prototype) && "cause" in e && !Cn.call(e, "cause") ? "{ [" + String(e) + "] " + re.call(_r.call("[cause]: " + d(e.cause), N), ", ") + " }" : N.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + re.call(N, ", ") + " }";
|
|
1831
1831
|
}
|
|
1832
1832
|
if (typeof e == "object" && i) {
|
|
@@ -1866,7 +1866,7 @@ var Gt = Za, Dr = Gt.custom, Ir = Nn(Dr) ? Dr : null, _n = {
|
|
|
1866
1866
|
if (typeof globalThis < "u" && e === globalThis || typeof Rr < "u" && e === Rr)
|
|
1867
1867
|
return "{ [object globalThis] }";
|
|
1868
1868
|
if (!fi(e) && !Lr(e)) {
|
|
1869
|
-
var M =
|
|
1869
|
+
var M = Ue(e, d), z = Nr ? Nr(e) === Object.prototype : e instanceof Object || e.constructor === Object, K = e instanceof Object ? "" : "null prototype", S = !z && xe && Object(e) === e && xe in e ? rr.call(ie(e), 8, -1) : K ? "Object" : "", A = z || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", T = A + (S || K ? "[" + re.call(_r.call([], S || [], K || []), ": ") + "] " : "");
|
|
1870
1870
|
return M.length === 0 ? T + "{}" : p ? T + "{" + Jt(M, p) + "}" : T + "{ " + re.call(M, ", ") + " }";
|
|
1871
1871
|
}
|
|
1872
1872
|
return String(e);
|
|
@@ -2077,7 +2077,7 @@ function Jt(t, e) {
|
|
|
2077
2077
|
return n + re.call(t, "," + n) + `
|
|
2078
2078
|
` + e.prev;
|
|
2079
2079
|
}
|
|
2080
|
-
function
|
|
2080
|
+
function Ue(t, e) {
|
|
2081
2081
|
var n = Kt(t), r = [];
|
|
2082
2082
|
if (n) {
|
|
2083
2083
|
r.length = t.length;
|
|
@@ -2149,7 +2149,7 @@ var Ti = st, Ci = Ee, lt = function(t, e, n) {
|
|
|
2149
2149
|
}
|
|
2150
2150
|
};
|
|
2151
2151
|
return n;
|
|
2152
|
-
}, In = Object, Ii = Error, Li = EvalError, Mi = RangeError,
|
|
2152
|
+
}, In = Object, Ii = Error, Li = EvalError, Mi = RangeError, Ui = ReferenceError, Bi = SyntaxError, ki = URIError, qi = Math.abs, ji = Math.floor, Hi = Math.max, zi = Math.min, Wi = Math.pow, Gi = Math.round, Ki = Number.isNaN || function(e) {
|
|
2153
2153
|
return e !== e;
|
|
2154
2154
|
}, Ji = Ki, Vi = function(e) {
|
|
2155
2155
|
return Ji(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
@@ -2167,9 +2167,9 @@ if (We)
|
|
|
2167
2167
|
} catch {
|
|
2168
2168
|
We = !1;
|
|
2169
2169
|
}
|
|
2170
|
-
var Xi = We, St,
|
|
2170
|
+
var Xi = We, St, Ur;
|
|
2171
2171
|
function Yi() {
|
|
2172
|
-
return
|
|
2172
|
+
return Ur || (Ur = 1, St = function() {
|
|
2173
2173
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
2174
2174
|
return !1;
|
|
2175
2175
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -2197,10 +2197,10 @@ function Yi() {
|
|
|
2197
2197
|
return !0;
|
|
2198
2198
|
}), St;
|
|
2199
2199
|
}
|
|
2200
|
-
var Et,
|
|
2200
|
+
var Et, Br;
|
|
2201
2201
|
function Zi() {
|
|
2202
|
-
if (
|
|
2203
|
-
|
|
2202
|
+
if (Br) return Et;
|
|
2203
|
+
Br = 1;
|
|
2204
2204
|
var t = typeof Symbol < "u" && Symbol, e = Yi();
|
|
2205
2205
|
return Et = function() {
|
|
2206
2206
|
return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
|
|
@@ -2211,7 +2211,7 @@ function Mn() {
|
|
|
2211
2211
|
return kr || (kr = 1, At = typeof Reflect < "u" && Reflect.getPrototypeOf || null), At;
|
|
2212
2212
|
}
|
|
2213
2213
|
var Ot, qr;
|
|
2214
|
-
function
|
|
2214
|
+
function Un() {
|
|
2215
2215
|
if (qr) return Ot;
|
|
2216
2216
|
qr = 1;
|
|
2217
2217
|
var t = In;
|
|
@@ -2274,10 +2274,10 @@ function nr() {
|
|
|
2274
2274
|
return zr || (zr = 1, xt = Function.prototype.call), xt;
|
|
2275
2275
|
}
|
|
2276
2276
|
var Tt, Wr;
|
|
2277
|
-
function
|
|
2277
|
+
function Bn() {
|
|
2278
2278
|
return Wr || (Wr = 1, Tt = Function.prototype.apply), Tt;
|
|
2279
2279
|
}
|
|
2280
|
-
var ts = typeof Reflect < "u" && Reflect && Reflect.apply, rs = ct(), ns =
|
|
2280
|
+
var ts = typeof Reflect < "u" && Reflect && Reflect.apply, rs = ct(), ns = Bn(), os = nr(), as = ts, is = as || rs.call(os, ns), ss = ct(), ls = Ee, cs = nr(), us = is, kn = function(e) {
|
|
2281
2281
|
if (e.length < 1 || typeof e[0] != "function")
|
|
2282
2282
|
throw new ls("a function is required");
|
|
2283
2283
|
return us(ss, cs, e);
|
|
@@ -2309,7 +2309,7 @@ var _t, Kr;
|
|
|
2309
2309
|
function ps() {
|
|
2310
2310
|
if (Kr) return _t;
|
|
2311
2311
|
Kr = 1;
|
|
2312
|
-
var t = Mn(), e =
|
|
2312
|
+
var t = Mn(), e = Un(), n = fs();
|
|
2313
2313
|
return _t = t ? function(o) {
|
|
2314
2314
|
return t(o);
|
|
2315
2315
|
} : e ? function(o) {
|
|
@@ -2327,7 +2327,7 @@ function ds() {
|
|
|
2327
2327
|
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, n = ct();
|
|
2328
2328
|
return $t = n.call(t, e), $t;
|
|
2329
2329
|
}
|
|
2330
|
-
var O, ys = In, hs = Ii, ms = Li, gs = Mi, vs =
|
|
2330
|
+
var O, ys = In, hs = Ii, ms = Li, gs = Mi, vs = Ui, we = Bi, ge = Ee, ws = ki, bs = qi, Ss = ji, Es = Hi, As = zi, Os = Wi, Rs = Gi, Ps = Vi, qn = Function, Nt = function(t) {
|
|
2331
2331
|
try {
|
|
2332
2332
|
return qn('"use strict"; return (' + t + ").constructor;")();
|
|
2333
2333
|
} catch {
|
|
@@ -2344,7 +2344,7 @@ var O, ys = In, hs = Ii, ms = Li, gs = Mi, vs = Bi, we = Ui, ge = Ee, ws = ki, b
|
|
|
2344
2344
|
return Ft;
|
|
2345
2345
|
}
|
|
2346
2346
|
}
|
|
2347
|
-
}() : Ft, ye = Zi()(), I = ps(), Cs =
|
|
2347
|
+
}() : Ft, ye = Zi()(), I = ps(), Cs = Un(), _s = Mn(), jn = Bn(), Fe = nr(), me = {}, $s = typeof Uint8Array > "u" || !I ? O : I(Uint8Array), ue = {
|
|
2348
2348
|
__proto__: null,
|
|
2349
2349
|
"%AggregateError%": typeof AggregateError > "u" ? O : AggregateError,
|
|
2350
2350
|
"%Array%": Array,
|
|
@@ -2504,7 +2504,7 @@ var Fs = function t(e) {
|
|
|
2504
2504
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
2505
2505
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
2506
2506
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
2507
|
-
}, De = ct(), Ye = ds(), Ds = De.call(Fe, Array.prototype.concat), Is = De.call(jn, Array.prototype.splice), Qr = De.call(Fe, String.prototype.replace), Ze = De.call(Fe, String.prototype.slice), Ls = De.call(Fe, RegExp.prototype.exec), Ms = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
|
|
2507
|
+
}, De = ct(), Ye = ds(), Ds = De.call(Fe, Array.prototype.concat), Is = De.call(jn, Array.prototype.splice), Qr = De.call(Fe, String.prototype.replace), Ze = De.call(Fe, String.prototype.slice), Ls = De.call(Fe, RegExp.prototype.exec), Ms = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Us = /\\(\\)?/g, Bs = function(e) {
|
|
2508
2508
|
var n = Ze(e, 0, 1), r = Ze(e, -1);
|
|
2509
2509
|
if (n === "%" && r !== "%")
|
|
2510
2510
|
throw new we("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -2512,7 +2512,7 @@ var Fs = function t(e) {
|
|
|
2512
2512
|
throw new we("invalid intrinsic syntax, expected opening `%`");
|
|
2513
2513
|
var o = [];
|
|
2514
2514
|
return Qr(e, Ms, function(a, i, s, u) {
|
|
2515
|
-
o[o.length] = s ? Qr(u,
|
|
2515
|
+
o[o.length] = s ? Qr(u, Us, "$1") : i || a;
|
|
2516
2516
|
}), o;
|
|
2517
2517
|
}, ks = function(e, n) {
|
|
2518
2518
|
var r = e, o;
|
|
@@ -2534,7 +2534,7 @@ var Fs = function t(e) {
|
|
|
2534
2534
|
throw new ge('"allowMissing" argument must be a boolean');
|
|
2535
2535
|
if (Ls(/^%?[^%]*%?$/, e) === null)
|
|
2536
2536
|
throw new we("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2537
|
-
var r =
|
|
2537
|
+
var r = Bs(e), o = r.length > 0 ? r[0] : "", a = ks("%" + o + "%", n), i = a.name, s = a.value, u = !1, l = a.alias;
|
|
2538
2538
|
l && (o = l[0], Is(r, Ds([0, 1], l)));
|
|
2539
2539
|
for (var c = 1, p = !0; c < r.length; c += 1) {
|
|
2540
2540
|
var d = r[c], g = Ze(d, 0, 1), y = Ze(d, -1);
|
|
@@ -2589,7 +2589,7 @@ function() {
|
|
|
2589
2589
|
}
|
|
2590
2590
|
};
|
|
2591
2591
|
return n;
|
|
2592
|
-
}, Qs = or, ut = Wn, Xs = st,
|
|
2592
|
+
}, Qs = or, ut = Wn, Xs = st, Be = Gn, Ys = Ee, he = Qs("%WeakMap%", !0), Zs = ut("WeakMap.prototype.get", !0), el = ut("WeakMap.prototype.set", !0), tl = ut("WeakMap.prototype.has", !0), rl = ut("WeakMap.prototype.delete", !0), nl = he ? (
|
|
2593
2593
|
/** @type {Exclude<import('.'), false>} */
|
|
2594
2594
|
function() {
|
|
2595
2595
|
var e, n, r = {
|
|
@@ -2601,7 +2601,7 @@ function() {
|
|
|
2601
2601
|
if (he && o && (typeof o == "object" || typeof o == "function")) {
|
|
2602
2602
|
if (e)
|
|
2603
2603
|
return rl(e, o);
|
|
2604
|
-
} else if (
|
|
2604
|
+
} else if (Be && n)
|
|
2605
2605
|
return n.delete(o);
|
|
2606
2606
|
return !1;
|
|
2607
2607
|
},
|
|
@@ -2612,12 +2612,12 @@ function() {
|
|
|
2612
2612
|
return he && o && (typeof o == "object" || typeof o == "function") && e ? tl(e, o) : !!n && n.has(o);
|
|
2613
2613
|
},
|
|
2614
2614
|
set: function(o, a) {
|
|
2615
|
-
he && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new he()), el(e, o, a)) :
|
|
2615
|
+
he && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new he()), el(e, o, a)) : Be && (n || (n = Be()), n.set(o, a));
|
|
2616
2616
|
}
|
|
2617
2617
|
};
|
|
2618
2618
|
return r;
|
|
2619
2619
|
}
|
|
2620
|
-
) :
|
|
2620
|
+
) : Be, ol = Ee, al = st, il = Di, sl = Gn, ll = nl, cl = ll || sl || il, ul = function() {
|
|
2621
2621
|
var e, n = {
|
|
2622
2622
|
assert: function(r) {
|
|
2623
2623
|
if (!n.has(r))
|
|
@@ -2850,7 +2850,7 @@ function() {
|
|
|
2850
2850
|
for (var _ = 0; _ < S.length; ++_) {
|
|
2851
2851
|
var w = S[_], j = typeof w == "object" && w && typeof w.value < "u" ? w.value : v[w];
|
|
2852
2852
|
if (!(s && j === null)) {
|
|
2853
|
-
var
|
|
2853
|
+
var B = d && u ? String(w).replace(/\./g, "%2E") : String(w), k = te(v) ? typeof r == "function" ? r(P, B) : P : P + (d ? "." + B : "[" + B + "]");
|
|
2854
2854
|
R.set(e, x);
|
|
2855
2855
|
var W = Vn();
|
|
2856
2856
|
W.set(Mt, R), Xn(K, t(
|
|
@@ -3095,7 +3095,7 @@ function() {
|
|
|
3095
3095
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : C.strictNullHandling,
|
|
3096
3096
|
throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
|
|
3097
3097
|
};
|
|
3098
|
-
},
|
|
3098
|
+
}, Ul = function(t, e) {
|
|
3099
3099
|
var n = Ml(e);
|
|
3100
3100
|
if (t === "" || t === null || typeof t > "u")
|
|
3101
3101
|
return n.plainObjects ? { __proto__: null } : {};
|
|
@@ -3104,10 +3104,10 @@ function() {
|
|
|
3104
3104
|
o = pe.merge(o, u, n);
|
|
3105
3105
|
}
|
|
3106
3106
|
return n.allowSparse === !0 ? o : pe.compact(o);
|
|
3107
|
-
},
|
|
3107
|
+
}, Bl = _l, kl = Ul, ql = ar, jl = {
|
|
3108
3108
|
formats: ql,
|
|
3109
3109
|
parse: kl,
|
|
3110
|
-
stringify:
|
|
3110
|
+
stringify: Bl
|
|
3111
3111
|
};
|
|
3112
3112
|
const Hl = /* @__PURE__ */ Va(jl);
|
|
3113
3113
|
/*! js-cookie v3.0.5 | MIT */
|
|
@@ -3202,26 +3202,30 @@ const eo = ir.noRedireLogin ?? !1, to = () => {
|
|
|
3202
3202
|
if (eo) return;
|
|
3203
3203
|
const t = "/login";
|
|
3204
3204
|
location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
|
|
3205
|
-
}, en = "SUC0000", Kl = async (t) => {
|
|
3206
|
-
var i, s, u, l, c
|
|
3205
|
+
}, en = "SUC0000", Kl = "AUM0020401", Jl = async (t) => {
|
|
3206
|
+
var a, i, s, u, l, c;
|
|
3207
3207
|
let e = t.data || {};
|
|
3208
3208
|
const n = (e == null ? void 0 : e.returnCode) || en;
|
|
3209
|
-
let r =
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
}
|
|
3209
|
+
let r = {};
|
|
3210
|
+
if (n !== en) {
|
|
3211
|
+
let p = e.errorMsg ?? "";
|
|
3212
|
+
return !(co("code") || "") && !eo && n === Kl ? (Zn ? uo({ ...po, redirect_uri: fo }) : to(), r = e) : (e instanceof Blob && (e = await new Promise((g) => {
|
|
3213
|
+
const y = new FileReader();
|
|
3214
|
+
y.readAsText(e, "utf-8"), y.onload = () => {
|
|
3215
|
+
try {
|
|
3216
|
+
g(JSON.parse(y.result || "{}"));
|
|
3217
|
+
} catch {
|
|
3218
|
+
g({ code: 400, msg: F("blob解析错误") });
|
|
3219
|
+
}
|
|
3220
|
+
};
|
|
3221
|
+
})), r = e), (a = t.config) != null && a.customErrorMessage && (p = (i = t.config) == null ? void 0 : i.customErrorMessage(p, n)), !((s = t.config) != null && s.ignoreErrorMessage) && p && ((l = (u = window.DasMessage) == null ? void 0 : u.error) == null || l.call(u, { message: p, showClose: !0 })), { data: r, code: n, msg: p };
|
|
3222
|
+
}
|
|
3223
|
+
return ((c = t.config) == null ? void 0 : c.responseType) === "blob" ? t : { data: t.data ?? {}, code: n };
|
|
3224
|
+
}, Vl = async (t, e) => {
|
|
3221
3225
|
var o, a, i, s;
|
|
3222
3226
|
let n = ((o = t == null ? void 0 : t.response) == null ? void 0 : o.data) || {}, r = (a = t.response) == null ? void 0 : a.message;
|
|
3223
3227
|
if (!t.response)
|
|
3224
|
-
return t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = F("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = F("请求配置异常"), !(e != null && e.ignoreErrorMessage) && r && ((s = (i = window.DasMessage) == null ? void 0 : i.error) == null || s.call(i, { message: r, showClose: !0 })), {
|
|
3228
|
+
return t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = F("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = F("请求配置异常"), !(e != null && e.ignoreErrorMessage) && r && ((s = (i = window.DasMessage) == null ? void 0 : i.error) == null || s.call(i, { message: r, showClose: !0 })), { data: n, code: t.code, msg: r, error: t };
|
|
3225
3229
|
}, J = (t, e) => {
|
|
3226
3230
|
const n = $.create();
|
|
3227
3231
|
return so(n, async (r) => {
|
|
@@ -3234,7 +3238,7 @@ const eo = ir.noRedireLogin ?? !1, to = () => {
|
|
|
3234
3238
|
}
|
|
3235
3239
|
Zn ? l || (l = await lo(r)) : (l || (l = vo()), l || to()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
|
|
3236
3240
|
}
|
|
3237
|
-
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Hl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess =
|
|
3241
|
+
r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Hl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Jl), r.onError || (r.onError = Vl), (r.csrf ?? !1) && (r.headers["csrf-token"] = Wl.get("csrf-token"));
|
|
3238
3242
|
const s = r.params || {};
|
|
3239
3243
|
if (s.project === void 0) {
|
|
3240
3244
|
let l = 0;
|
|
@@ -3251,9 +3255,9 @@ const eo = ir.noRedireLogin ?? !1, to = () => {
|
|
|
3251
3255
|
J(`/api/iot/${V}`);
|
|
3252
3256
|
J(`/api/iot-device/thingmodel/${V}`), J(`/api/iot-device/devicemanage/${V}`), J(`/api/iot-device/product/${V}`), J(`/api/iot-device/product-storage/${V}`);
|
|
3253
3257
|
J(`/api/device-relation/deviceproject/${V}`), J(`/api/device-relation/devicerule/${V}`), J(`/api/device-relation/project/${V}`);
|
|
3254
|
-
const sr = J(`/api/oss/minio/${V}`),
|
|
3258
|
+
const sr = J(`/api/oss/minio/${V}`), Ql = J(`/api/progress/accessor/${V}`);
|
|
3255
3259
|
J(`/api/dms/analysis/${V}`);
|
|
3256
|
-
let
|
|
3260
|
+
let Xl = (t = 21) => {
|
|
3257
3261
|
let e = "", n = crypto.getRandomValues(new Uint8Array(t));
|
|
3258
3262
|
for (; t--; ) {
|
|
3259
3263
|
let r = n[t] & 63;
|
|
@@ -3261,19 +3265,19 @@ let Ql = (t = 21) => {
|
|
|
3261
3265
|
}
|
|
3262
3266
|
return e;
|
|
3263
3267
|
};
|
|
3264
|
-
const
|
|
3268
|
+
const Yl = sr.get("token"), Zl = sr.post("put-object", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), ec = sr.post("upload-objects", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), tc = Ql.get("progress"), Fc = () => {
|
|
3265
3269
|
let t = G(!1), e = G(""), n = G(0), r = G("normal"), o = G(!1), a, i = G(""), s = G(""), u = G(""), l = G(""), c = G(!1), p = G(""), d = "", g = G(""), y;
|
|
3266
3270
|
const m = () => {
|
|
3267
3271
|
s.value = "", u.value = "", l.value = "", c.value = !1, p.value = "";
|
|
3268
3272
|
}, h = async () => {
|
|
3269
|
-
const [S, A] = await
|
|
3273
|
+
const [S, A] = await Yl().run();
|
|
3270
3274
|
return S ? { stauts: !1 } : { status: !0, data: A };
|
|
3271
3275
|
}, E = (S) => new Promise((A, T) => {
|
|
3272
3276
|
const _ = [];
|
|
3273
3277
|
let w = 0;
|
|
3274
3278
|
for (; w < S.size; ) {
|
|
3275
|
-
const
|
|
3276
|
-
_.push(
|
|
3279
|
+
const B = S.slice(w, w + 1048576);
|
|
3280
|
+
_.push(B), w += 1048576;
|
|
3277
3281
|
}
|
|
3278
3282
|
const j = new Blob(_, { type: S.type });
|
|
3279
3283
|
A(j);
|
|
@@ -3282,14 +3286,14 @@ const Xl = sr.get("token"), Yl = sr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3282
3286
|
d = _, g.value = "import", P && (r.value = "normal", n.value = 0, e.value = F("导入进度"), t.value = !0, i.value = ""), y = A;
|
|
3283
3287
|
const j = await h();
|
|
3284
3288
|
if (!j.status) return;
|
|
3285
|
-
let
|
|
3286
|
-
const ro = w ?
|
|
3289
|
+
let B = j.data, k = null, { autoContentType: W, bucketName: X, importFileName: Le } = T;
|
|
3290
|
+
const ro = w ? ec : Zl;
|
|
3287
3291
|
if (w) {
|
|
3288
3292
|
let oe = [];
|
|
3289
3293
|
await A.forEach(async (Me) => {
|
|
3290
3294
|
let pt = await E(Me);
|
|
3291
3295
|
oe.push(pt);
|
|
3292
|
-
}), k = new FormData(), k.append("accessKeyId",
|
|
3296
|
+
}), k = new FormData(), k.append("accessKeyId", B.accessKeyId), k.append("secretAccessKey", B.secretAccessKey), k.append("sessionToken", B.sessionToken), k.append("bucketName", X), A.forEach((Me, pt) => {
|
|
3293
3297
|
k.append("file", oe[pt]);
|
|
3294
3298
|
}), Le.forEach((Me) => {
|
|
3295
3299
|
k.append("filePaths", Me);
|
|
@@ -3297,9 +3301,9 @@ const Xl = sr.get("token"), Yl = sr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3297
3301
|
} else {
|
|
3298
3302
|
const oe = await E(A);
|
|
3299
3303
|
k = {
|
|
3300
|
-
accessKeyId:
|
|
3301
|
-
secretAccessKey:
|
|
3302
|
-
sessionToken:
|
|
3304
|
+
accessKeyId: B.accessKeyId,
|
|
3305
|
+
secretAccessKey: B.secretAccessKey,
|
|
3306
|
+
sessionToken: B.sessionToken,
|
|
3303
3307
|
file: oe,
|
|
3304
3308
|
bucketName: X,
|
|
3305
3309
|
filePath: Le,
|
|
@@ -3308,7 +3312,7 @@ const Xl = sr.get("token"), Yl = sr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3308
3312
|
}
|
|
3309
3313
|
const [no, oo] = await ro(k).run();
|
|
3310
3314
|
if (no) return t.value = !1;
|
|
3311
|
-
const Y = await
|
|
3315
|
+
const Y = await nc(oo.data);
|
|
3312
3316
|
if (!w && (Y == null ? void 0 : Y.statusCode) != 200 || w && (Y != null && Y.some((oe) => (oe == null ? void 0 : oe.statusCode) != 200))) {
|
|
3313
3317
|
t.value = !1, (lr = window.DasMessage) == null || lr.error({
|
|
3314
3318
|
message: (Y == null ? void 0 : Y.errorMsg) || F("上传失败"),
|
|
@@ -3354,8 +3358,8 @@ const Xl = sr.get("token"), Yl = sr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3354
3358
|
}, L = () => {
|
|
3355
3359
|
clearTimeout(a), a = null, t.value = !1;
|
|
3356
3360
|
}, M = async (S, A = "export", T, P = "") => {
|
|
3357
|
-
var j,
|
|
3358
|
-
const [_, w] = await
|
|
3361
|
+
var j, B, k;
|
|
3362
|
+
const [_, w] = await tc("", {
|
|
3359
3363
|
url: `progress/${S}`
|
|
3360
3364
|
}).run();
|
|
3361
3365
|
if (_) {
|
|
@@ -3370,7 +3374,7 @@ const Xl = sr.get("token"), Yl = sr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3370
3374
|
const X = ((j = W == null ? void 0 : W.split("/")) == null ? void 0 : j.pop()) || "";
|
|
3371
3375
|
let Le = T || X;
|
|
3372
3376
|
tn(`${Ke().baseURL}/oss${w.filePath}`, Le, P), o.value = !1;
|
|
3373
|
-
} else w.status == 2 && (l.value = w.message || (A == "export" ? F("导出失败") : F("导入失败")), (
|
|
3377
|
+
} else w.status == 2 && (l.value = w.message || (A == "export" ? F("导出失败") : F("导入失败")), (B = window.DasMessage) == null || B.error({
|
|
3374
3378
|
message: l.value,
|
|
3375
3379
|
grouping: !0,
|
|
3376
3380
|
repeatNum: 1
|
|
@@ -3421,14 +3425,14 @@ const Xl = sr.get("token"), Yl = sr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3421
3425
|
fileAction: v,
|
|
3422
3426
|
generateUniqueName: (S) => {
|
|
3423
3427
|
const A = S == null ? void 0 : S.match(/(.*?)(\.[^.]*$|$)/), T = A.length ? A[2] : "";
|
|
3424
|
-
return `${A.length ? A[1] : S}${
|
|
3428
|
+
return `${A.length ? A[1] : S}${Xl()}${T}`;
|
|
3425
3429
|
},
|
|
3426
3430
|
downloadFile: tn,
|
|
3427
3431
|
resetStataus: m,
|
|
3428
3432
|
checkProgress: x,
|
|
3429
3433
|
fileHandleType: g
|
|
3430
3434
|
};
|
|
3431
|
-
},
|
|
3435
|
+
}, rc = (t) => {
|
|
3432
3436
|
let e = t == null ? void 0 : t.toLocaleLowerCase();
|
|
3433
3437
|
return {
|
|
3434
3438
|
excel: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
@@ -3461,7 +3465,7 @@ const Xl = sr.get("token"), Yl = sr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3461
3465
|
const r = new XMLHttpRequest();
|
|
3462
3466
|
r.open("get", t), r.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), r.responseType = "blob", r.onload = function(o) {
|
|
3463
3467
|
const a = new Blob([this.response], {
|
|
3464
|
-
type:
|
|
3468
|
+
type: rc(n)
|
|
3465
3469
|
}), i = URL.createObjectURL(a);
|
|
3466
3470
|
if (window.navigator.msSaveOrOpenBlob)
|
|
3467
3471
|
navigator.msSaveBlob(a, e);
|
|
@@ -3470,7 +3474,7 @@ const Xl = sr.get("token"), Yl = sr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3470
3474
|
s.href = i, s.download = e, s.click(), window.URL.revokeObjectURL(i);
|
|
3471
3475
|
}
|
|
3472
3476
|
}, r.send();
|
|
3473
|
-
},
|
|
3477
|
+
}, nc = (t) => new Promise((e, n) => {
|
|
3474
3478
|
var r = new FileReader();
|
|
3475
3479
|
r.onload = function(o) {
|
|
3476
3480
|
let a = "";
|
|
@@ -3479,5 +3483,5 @@ const Xl = sr.get("token"), Yl = sr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3479
3483
|
});
|
|
3480
3484
|
export {
|
|
3481
3485
|
tn as downloadFile,
|
|
3482
|
-
|
|
3486
|
+
Fc as useFile
|
|
3483
3487
|
};
|
|
Binary file
|