zyjj-web-sdk 1.1.14 → 1.1.16
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/lib/index.js +171 -171
- package/lib/index.umd.cjs +10 -10
- package/lib/types/local-task.d.ts +1 -2
- package/lib/types/new-local-task.d.ts +1 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -5,25 +5,25 @@ import { Message as Ce, Typography as bn, Space as br, Input as ke, Button as Ie
|
|
|
5
5
|
import Uo from "cos-js-sdk-v5";
|
|
6
6
|
import Bo from "ali-oss";
|
|
7
7
|
import wn, { useState as De, useRef as zo, useEffect as Bt } from "react";
|
|
8
|
-
import
|
|
8
|
+
import qo from "mqtt";
|
|
9
9
|
function En(e, t) {
|
|
10
10
|
return function() {
|
|
11
11
|
return e.apply(t, arguments);
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
const { toString:
|
|
15
|
-
const r =
|
|
14
|
+
const { toString: Vo } = Object.prototype, { getPrototypeOf: wr } = Object, mt = /* @__PURE__ */ ((e) => (t) => {
|
|
15
|
+
const r = Vo.call(t);
|
|
16
16
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
17
|
-
})(/* @__PURE__ */ Object.create(null)), Ee = (e) => (e = e.toLowerCase(), (t) => mt(t) === e), yt = (e) => (t) => typeof t === e, { isArray:
|
|
17
|
+
})(/* @__PURE__ */ Object.create(null)), Ee = (e) => (e = e.toLowerCase(), (t) => mt(t) === e), yt = (e) => (t) => typeof t === e, { isArray: Ve } = Array, Je = yt("undefined");
|
|
18
18
|
function Lo(e) {
|
|
19
19
|
return e !== null && !Je(e) && e.constructor !== null && !Je(e.constructor) && de(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
20
20
|
}
|
|
21
21
|
const Sn = Ee("ArrayBuffer");
|
|
22
|
-
function
|
|
22
|
+
function To(e) {
|
|
23
23
|
let t;
|
|
24
24
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Sn(e.buffer), t;
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const Wo = yt("string"), de = yt("function"), _n = yt("number"), gt = (e) => e !== null && typeof e == "object", Ho = (e) => e === !0 || e === !1, lt = (e) => {
|
|
27
27
|
if (mt(e) !== "object")
|
|
28
28
|
return !1;
|
|
29
29
|
const t = wr(e);
|
|
@@ -37,7 +37,7 @@ function Qe(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
|
37
37
|
if (e === null || typeof e > "u")
|
|
38
38
|
return;
|
|
39
39
|
let n, o;
|
|
40
|
-
if (typeof e != "object" && (e = [e]),
|
|
40
|
+
if (typeof e != "object" && (e = [e]), Ve(e))
|
|
41
41
|
for (n = 0, o = e.length; n < o; n++)
|
|
42
42
|
t.call(null, e[n], n, e);
|
|
43
43
|
else {
|
|
@@ -60,7 +60,7 @@ const vn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
|
|
|
60
60
|
function zt() {
|
|
61
61
|
const { caseless: e } = Rn(this) && this || {}, t = {}, r = (n, o) => {
|
|
62
62
|
const s = e && On(t, o) || o;
|
|
63
|
-
lt(t[s]) && lt(n) ? t[s] = zt(t[s], n) : lt(n) ? t[s] = zt({}, n) :
|
|
63
|
+
lt(t[s]) && lt(n) ? t[s] = zt(t[s], n) : lt(n) ? t[s] = zt({}, n) : Ve(n) ? t[s] = n.slice() : t[s] = n;
|
|
64
64
|
};
|
|
65
65
|
for (let n = 0, o = arguments.length; n < o; n++)
|
|
66
66
|
arguments[n] && Qe(arguments[n], r);
|
|
@@ -88,7 +88,7 @@ const ts = (e, t, r, { allOwnKeys: n } = {}) => (Qe(t, (o, s) => {
|
|
|
88
88
|
return n !== -1 && n === r;
|
|
89
89
|
}, is = (e) => {
|
|
90
90
|
if (!e) return null;
|
|
91
|
-
if (
|
|
91
|
+
if (Ve(e)) return e;
|
|
92
92
|
let t = e.length;
|
|
93
93
|
if (!_n(t)) return null;
|
|
94
94
|
const r = new Array(t);
|
|
@@ -113,7 +113,7 @@ const ts = (e, t, r, { allOwnKeys: n } = {}) => (Qe(t, (o, s) => {
|
|
|
113
113
|
function(r, n, o) {
|
|
114
114
|
return n.toUpperCase() + o;
|
|
115
115
|
}
|
|
116
|
-
),
|
|
116
|
+
), qr = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), ds = Ee("RegExp"), Cn = (e, t) => {
|
|
117
117
|
const r = Object.getOwnPropertyDescriptors(e), n = {};
|
|
118
118
|
Qe(r, (o, s) => {
|
|
119
119
|
let i;
|
|
@@ -140,12 +140,12 @@ const ts = (e, t, r, { allOwnKeys: n } = {}) => (Qe(t, (o, s) => {
|
|
|
140
140
|
r[s] = !0;
|
|
141
141
|
});
|
|
142
142
|
};
|
|
143
|
-
return
|
|
143
|
+
return Ve(e) ? n(e) : n(String(e).split(t)), r;
|
|
144
144
|
}, ms = () => {
|
|
145
|
-
}, ys = (e, t) => (e = +e, Number.isFinite(e) ? e : t), jt = "abcdefghijklmnopqrstuvwxyz",
|
|
146
|
-
DIGIT:
|
|
145
|
+
}, ys = (e, t) => (e = +e, Number.isFinite(e) ? e : t), jt = "abcdefghijklmnopqrstuvwxyz", Vr = "0123456789", Dn = {
|
|
146
|
+
DIGIT: Vr,
|
|
147
147
|
ALPHA: jt,
|
|
148
|
-
ALPHA_DIGIT: jt + jt.toUpperCase() +
|
|
148
|
+
ALPHA_DIGIT: jt + jt.toUpperCase() + Vr
|
|
149
149
|
}, gs = (e = 16, t = Dn.ALPHA_DIGIT) => {
|
|
150
150
|
let r = "";
|
|
151
151
|
const { length: n } = t;
|
|
@@ -163,7 +163,7 @@ const ws = (e) => {
|
|
|
163
163
|
return;
|
|
164
164
|
if (!("toJSON" in n)) {
|
|
165
165
|
t[o] = n;
|
|
166
|
-
const s =
|
|
166
|
+
const s = Ve(n) ? [] : {};
|
|
167
167
|
return Qe(n, (i, c) => {
|
|
168
168
|
const u = r(i, o + 1);
|
|
169
169
|
!Je(u) && (s[c] = u);
|
|
@@ -174,12 +174,12 @@ const ws = (e) => {
|
|
|
174
174
|
};
|
|
175
175
|
return r(e, 0);
|
|
176
176
|
}, Es = Ee("AsyncFunction"), Ss = (e) => e && (gt(e) || de(e)) && de(e.then) && de(e.catch), h = {
|
|
177
|
-
isArray:
|
|
177
|
+
isArray: Ve,
|
|
178
178
|
isArrayBuffer: Sn,
|
|
179
179
|
isBuffer: Lo,
|
|
180
180
|
isFormData: Zo,
|
|
181
|
-
isArrayBufferView:
|
|
182
|
-
isString:
|
|
181
|
+
isArrayBufferView: To,
|
|
182
|
+
isString: Wo,
|
|
183
183
|
isNumber: _n,
|
|
184
184
|
isBoolean: Ho,
|
|
185
185
|
isObject: gt,
|
|
@@ -208,8 +208,8 @@ const ws = (e) => {
|
|
|
208
208
|
forEachEntry: cs,
|
|
209
209
|
matchAll: us,
|
|
210
210
|
isHTMLForm: ls,
|
|
211
|
-
hasOwnProperty:
|
|
212
|
-
hasOwnProp:
|
|
211
|
+
hasOwnProperty: qr,
|
|
212
|
+
hasOwnProp: qr,
|
|
213
213
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
214
214
|
reduceDescriptors: Cn,
|
|
215
215
|
freezeMethods: hs,
|
|
@@ -278,7 +278,7 @@ F.from = (e, t, r, n, o, s) => {
|
|
|
278
278
|
}, (c) => c !== "isAxiosError"), F.call(i, e.message, t, r, n, o), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
|
|
279
279
|
};
|
|
280
280
|
const _s = null;
|
|
281
|
-
function
|
|
281
|
+
function qt(e) {
|
|
282
282
|
return h.isPlainObject(e) || h.isArray(e);
|
|
283
283
|
}
|
|
284
284
|
function jn(e) {
|
|
@@ -290,7 +290,7 @@ function Lr(e, t, r) {
|
|
|
290
290
|
}).join(r ? "." : "") : t;
|
|
291
291
|
}
|
|
292
292
|
function Os(e) {
|
|
293
|
-
return h.isArray(e) && !e.some(
|
|
293
|
+
return h.isArray(e) && !e.some(qt);
|
|
294
294
|
}
|
|
295
295
|
const vs = h.toFlatObject(h, {}, null, function(t) {
|
|
296
296
|
return /^is[A-Z]/.test(t);
|
|
@@ -330,12 +330,12 @@ function bt(e, t, r) {
|
|
|
330
330
|
);
|
|
331
331
|
}), !1;
|
|
332
332
|
}
|
|
333
|
-
return
|
|
333
|
+
return qt(m) ? !0 : (t.append(Lr(N, b, s), d(m)), !1);
|
|
334
334
|
}
|
|
335
335
|
const f = [], S = Object.assign(vs, {
|
|
336
336
|
defaultVisitor: l,
|
|
337
337
|
convertValue: d,
|
|
338
|
-
isVisitable:
|
|
338
|
+
isVisitable: qt
|
|
339
339
|
});
|
|
340
340
|
function P(m, b) {
|
|
341
341
|
if (!h.isUndefined(m)) {
|
|
@@ -356,7 +356,7 @@ function bt(e, t, r) {
|
|
|
356
356
|
throw new TypeError("data must be an object");
|
|
357
357
|
return P(e), t;
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function Tr(e) {
|
|
360
360
|
const t = {
|
|
361
361
|
"!": "%21",
|
|
362
362
|
"'": "%27",
|
|
@@ -379,8 +379,8 @@ Nn.append = function(t, r) {
|
|
|
379
379
|
};
|
|
380
380
|
Nn.toString = function(t) {
|
|
381
381
|
const r = t ? function(n) {
|
|
382
|
-
return t.call(this, n,
|
|
383
|
-
} :
|
|
382
|
+
return t.call(this, n, Tr);
|
|
383
|
+
} : Tr;
|
|
384
384
|
return this._pairs.map(function(o) {
|
|
385
385
|
return r(o[0]) + "=" + r(o[1]);
|
|
386
386
|
}, "").join("&");
|
|
@@ -399,7 +399,7 @@ function kn(e, t, r) {
|
|
|
399
399
|
}
|
|
400
400
|
return e;
|
|
401
401
|
}
|
|
402
|
-
class
|
|
402
|
+
class Wr {
|
|
403
403
|
constructor() {
|
|
404
404
|
this.handlers = [];
|
|
405
405
|
}
|
|
@@ -612,7 +612,7 @@ const Ms = h.toObjectSet([
|
|
|
612
612
|
o = i.indexOf(":"), r = i.substring(0, o).trim().toLowerCase(), n = i.substring(o + 1).trim(), !(!r || t[r] && Ms[r]) && (r === "set-cookie" ? t[r] ? t[r].push(n) : t[r] = [n] : t[r] = t[r] ? t[r] + ", " + n : n);
|
|
613
613
|
}), t;
|
|
614
614
|
}, Hr = Symbol("internals");
|
|
615
|
-
function
|
|
615
|
+
function We(e) {
|
|
616
616
|
return e && String(e).trim().toLowerCase();
|
|
617
617
|
}
|
|
618
618
|
function ft(e) {
|
|
@@ -636,10 +636,10 @@ function Nt(e, t, r, n, o) {
|
|
|
636
636
|
return n.test(t);
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function qs(e) {
|
|
640
640
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function Vs(e, t) {
|
|
643
643
|
const r = h.toCamelCase(" " + t);
|
|
644
644
|
["get", "set", "has"].forEach((n) => {
|
|
645
645
|
Object.defineProperty(e, n + r, {
|
|
@@ -657,7 +657,7 @@ class he {
|
|
|
657
657
|
set(t, r, n) {
|
|
658
658
|
const o = this;
|
|
659
659
|
function s(c, u, d) {
|
|
660
|
-
const l =
|
|
660
|
+
const l = We(u);
|
|
661
661
|
if (!l)
|
|
662
662
|
throw new Error("header name must be a non-empty string");
|
|
663
663
|
const f = h.findKey(o, l);
|
|
@@ -667,7 +667,7 @@ class he {
|
|
|
667
667
|
return h.isPlainObject(t) || t instanceof this.constructor ? i(t, r) : h.isString(t) && (t = t.trim()) && !zs(t) ? i(Us(t), r) : t != null && s(r, t, n), this;
|
|
668
668
|
}
|
|
669
669
|
get(t, r) {
|
|
670
|
-
if (t =
|
|
670
|
+
if (t = We(t), t) {
|
|
671
671
|
const n = h.findKey(this, t);
|
|
672
672
|
if (n) {
|
|
673
673
|
const o = this[n];
|
|
@@ -684,7 +684,7 @@ class he {
|
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
686
|
has(t, r) {
|
|
687
|
-
if (t =
|
|
687
|
+
if (t = We(t), t) {
|
|
688
688
|
const n = h.findKey(this, t);
|
|
689
689
|
return !!(n && this[n] !== void 0 && (!r || Nt(this, this[n], n, r)));
|
|
690
690
|
}
|
|
@@ -694,7 +694,7 @@ class he {
|
|
|
694
694
|
const n = this;
|
|
695
695
|
let o = !1;
|
|
696
696
|
function s(i) {
|
|
697
|
-
if (i =
|
|
697
|
+
if (i = We(i), i) {
|
|
698
698
|
const c = h.findKey(n, i);
|
|
699
699
|
c && (!r || Nt(n, n[c], c, r)) && (delete n[c], o = !0);
|
|
700
700
|
}
|
|
@@ -718,7 +718,7 @@ class he {
|
|
|
718
718
|
r[i] = ft(o), delete r[s];
|
|
719
719
|
return;
|
|
720
720
|
}
|
|
721
|
-
const c = t ?
|
|
721
|
+
const c = t ? qs(s) : String(s).trim();
|
|
722
722
|
c !== s && delete r[s], r[c] = ft(o), n[c] = !0;
|
|
723
723
|
}), this;
|
|
724
724
|
}
|
|
@@ -753,8 +753,8 @@ class he {
|
|
|
753
753
|
accessors: {}
|
|
754
754
|
}).accessors, o = this.prototype;
|
|
755
755
|
function s(i) {
|
|
756
|
-
const c =
|
|
757
|
-
n[c] || (
|
|
756
|
+
const c = We(i);
|
|
757
|
+
n[c] || (Vs(o, i), n[c] = !0);
|
|
758
758
|
}
|
|
759
759
|
return h.isArray(t) ? t.forEach(s) : s(t), this;
|
|
760
760
|
}
|
|
@@ -796,7 +796,7 @@ function Ls(e, t, r) {
|
|
|
796
796
|
r
|
|
797
797
|
));
|
|
798
798
|
}
|
|
799
|
-
const
|
|
799
|
+
const Ts = we.hasStandardBrowserEnv ? (
|
|
800
800
|
// Standard browser envs support document.cookie
|
|
801
801
|
{
|
|
802
802
|
write(e, t, r, n, o, s) {
|
|
@@ -823,14 +823,14 @@ const Ws = we.hasStandardBrowserEnv ? (
|
|
|
823
823
|
}
|
|
824
824
|
}
|
|
825
825
|
);
|
|
826
|
-
function
|
|
826
|
+
function Ws(e) {
|
|
827
827
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
828
828
|
}
|
|
829
829
|
function Hs(e, t) {
|
|
830
830
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
831
831
|
}
|
|
832
832
|
function Mn(e, t) {
|
|
833
|
-
return e && !
|
|
833
|
+
return e && !Ws(t) ? Hs(e, t) : t;
|
|
834
834
|
}
|
|
835
835
|
const Gs = we.hasStandardBrowserEnv ? (
|
|
836
836
|
// Standard browser envs have full support of the APIs needed to test
|
|
@@ -961,7 +961,7 @@ const Ks = typeof XMLHttpRequest < "u", Xs = Ks && function(e) {
|
|
|
961
961
|
f
|
|
962
962
|
)), f = null;
|
|
963
963
|
}, we.hasStandardBrowserEnv && (c && h.isFunction(c) && (c = c(e)), c || c !== !1 && Gs(S))) {
|
|
964
|
-
const b = e.xsrfHeaderName && e.xsrfCookieName &&
|
|
964
|
+
const b = e.xsrfHeaderName && e.xsrfCookieName && Ts.read(e.xsrfCookieName);
|
|
965
965
|
b && s.set(e.xsrfHeaderName, b);
|
|
966
966
|
}
|
|
967
967
|
o === void 0 && s.setContentType(null), "setRequestHeader" in f && h.forEach(s.toJSON(), function(N, M) {
|
|
@@ -976,11 +976,11 @@ const Ks = typeof XMLHttpRequest < "u", Xs = Ks && function(e) {
|
|
|
976
976
|
}
|
|
977
977
|
f.send(o || null);
|
|
978
978
|
});
|
|
979
|
-
},
|
|
979
|
+
}, Vt = {
|
|
980
980
|
http: _s,
|
|
981
981
|
xhr: Xs
|
|
982
982
|
};
|
|
983
|
-
h.forEach(
|
|
983
|
+
h.forEach(Vt, (e, t) => {
|
|
984
984
|
if (e) {
|
|
985
985
|
try {
|
|
986
986
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -998,7 +998,7 @@ const Yr = (e) => `- ${e}`, Zs = (e) => h.isFunction(e) || e === null || e === !
|
|
|
998
998
|
for (let s = 0; s < t; s++) {
|
|
999
999
|
r = e[s];
|
|
1000
1000
|
let i;
|
|
1001
|
-
if (n = r, !Zs(r) && (n =
|
|
1001
|
+
if (n = r, !Zs(r) && (n = Vt[(i = String(r)).toLowerCase()], n === void 0))
|
|
1002
1002
|
throw new F(`Unknown adapter '${i}'`);
|
|
1003
1003
|
if (n)
|
|
1004
1004
|
break;
|
|
@@ -1018,7 +1018,7 @@ const Yr = (e) => `- ${e}`, Zs = (e) => h.isFunction(e) || e === null || e === !
|
|
|
1018
1018
|
}
|
|
1019
1019
|
return n;
|
|
1020
1020
|
},
|
|
1021
|
-
adapters:
|
|
1021
|
+
adapters: Vt
|
|
1022
1022
|
};
|
|
1023
1023
|
function It(e) {
|
|
1024
1024
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
@@ -1156,8 +1156,8 @@ const Lt = {
|
|
|
1156
1156
|
class Ae {
|
|
1157
1157
|
constructor(t) {
|
|
1158
1158
|
this.defaults = t, this.interceptors = {
|
|
1159
|
-
request: new
|
|
1160
|
-
response: new
|
|
1159
|
+
request: new Wr(),
|
|
1160
|
+
response: new Wr()
|
|
1161
1161
|
};
|
|
1162
1162
|
}
|
|
1163
1163
|
/**
|
|
@@ -1346,7 +1346,7 @@ function ei(e) {
|
|
|
1346
1346
|
function ti(e) {
|
|
1347
1347
|
return h.isObject(e) && e.isAxiosError === !0;
|
|
1348
1348
|
}
|
|
1349
|
-
const
|
|
1349
|
+
const Tt = {
|
|
1350
1350
|
Continue: 100,
|
|
1351
1351
|
SwitchingProtocols: 101,
|
|
1352
1352
|
Processing: 102,
|
|
@@ -1411,8 +1411,8 @@ const Wt = {
|
|
|
1411
1411
|
NotExtended: 510,
|
|
1412
1412
|
NetworkAuthenticationRequired: 511
|
|
1413
1413
|
};
|
|
1414
|
-
Object.entries(
|
|
1415
|
-
|
|
1414
|
+
Object.entries(Tt).forEach(([e, t]) => {
|
|
1415
|
+
Tt[t] = e;
|
|
1416
1416
|
});
|
|
1417
1417
|
function zn(e) {
|
|
1418
1418
|
const t = new Ae(e), r = En(Ae.prototype.request, t);
|
|
@@ -1438,7 +1438,7 @@ H.mergeConfig = ze;
|
|
|
1438
1438
|
H.AxiosHeaders = he;
|
|
1439
1439
|
H.formToJSON = (e) => $n(h.isHTMLForm(e) ? new FormData(e) : e);
|
|
1440
1440
|
H.getAdapter = Un.getAdapter;
|
|
1441
|
-
H.HttpStatusCode =
|
|
1441
|
+
H.HttpStatusCode = Tt;
|
|
1442
1442
|
H.default = H;
|
|
1443
1443
|
const He = () => localStorage.getItem("token");
|
|
1444
1444
|
async function G(e, t, r, n = !0) {
|
|
@@ -1483,10 +1483,10 @@ var Ke;
|
|
|
1483
1483
|
(function(e) {
|
|
1484
1484
|
e[e.LocalPath = 0] = "LocalPath", e[e.TencentCos = 1] = "TencentCos", e[e.ObjectUrl = 2] = "ObjectUrl", e[e.AliYunOss = 3] = "AliYunOss";
|
|
1485
1485
|
})(Ke || (Ke = {}));
|
|
1486
|
-
var
|
|
1486
|
+
var Wt;
|
|
1487
1487
|
(function(e) {
|
|
1488
|
-
e[e.TaskAction = 0] = "TaskAction", e[e.WorkAction = 1] = "WorkAction", e[e.MqttSend = 3] = "MqttSend", e[e.ActionClose = 4] = "ActionClose", e[e.MqttReconnect = 5] = "MqttReconnect", e[e.NavigateTo = 7] = "NavigateTo", e[e.
|
|
1489
|
-
})(
|
|
1488
|
+
e[e.TaskAction = 0] = "TaskAction", e[e.WorkAction = 1] = "WorkAction", e[e.MqttSend = 3] = "MqttSend", e[e.ActionClose = 4] = "ActionClose", e[e.MqttReconnect = 5] = "MqttReconnect", e[e.NavigateTo = 7] = "NavigateTo", e[e.OpenTool = 10] = "OpenTool", e[e.DownloadFile = 11] = "DownloadFile";
|
|
1489
|
+
})(Wt || (Wt = {}));
|
|
1490
1490
|
var Ht;
|
|
1491
1491
|
(function(e) {
|
|
1492
1492
|
e[e.TaskAction = 0] = "TaskAction", e[e.NavigateTo = 3] = "NavigateTo", e[e.OpenTool = 6] = "OpenTool", e[e.MqttBack = 1] = "MqttBack", e[e.ExtensionBlobUrl = 4] = "ExtensionBlobUrl", e[e.ExtensionId = 5] = "ExtensionId", e[e.UrlCallback = 7] = "UrlCallback", e[e.DownloadFileRes = 8] = "DownloadFileRes";
|
|
@@ -1515,7 +1515,7 @@ const ai = (e) => e >= 1073741824 ? (e / 1073741824).toFixed(2) + " GB" : e >= 1
|
|
|
1515
1515
|
uid: ii()
|
|
1516
1516
|
};
|
|
1517
1517
|
}, ui = (e) => new Date(e * 1e3).toISOString().substring(11, 19), li = async () => {
|
|
1518
|
-
const e = await
|
|
1518
|
+
const e = await Wn(), t = e.token;
|
|
1519
1519
|
return {
|
|
1520
1520
|
cos: new Uo({
|
|
1521
1521
|
getAuthorization: function(r, n) {
|
|
@@ -1547,7 +1547,7 @@ const ai = (e) => e >= 1073741824 ? (e / 1073741824).toFixed(2) + " GB" : e >= 1
|
|
|
1547
1547
|
bucket: e.bucket,
|
|
1548
1548
|
region: e.region
|
|
1549
1549
|
};
|
|
1550
|
-
},
|
|
1550
|
+
}, qn = (e) => {
|
|
1551
1551
|
const t = [];
|
|
1552
1552
|
for (const r in e) {
|
|
1553
1553
|
const n = e[r];
|
|
@@ -1569,15 +1569,15 @@ const ai = (e) => e >= 1073741824 ? (e / 1073741824).toFixed(2) + " GB" : e >= 1
|
|
|
1569
1569
|
}).join("&"), mi = (e) => new Promise((t, r) => {
|
|
1570
1570
|
const n = new XMLHttpRequest();
|
|
1571
1571
|
n.open("get", e), n.responseType = "blob", n.send(), n.onload = function() {
|
|
1572
|
-
(this.status === 200 || this.status === 304) && (
|
|
1572
|
+
(this.status === 200 || this.status === 304) && (Vn(URL.createObjectURL(this.response)), t());
|
|
1573
1573
|
}, n.onerror = function() {
|
|
1574
1574
|
r("下载失败,请在新窗口打开");
|
|
1575
1575
|
};
|
|
1576
|
-
}),
|
|
1576
|
+
}), Vn = (e, t) => {
|
|
1577
1577
|
var n;
|
|
1578
1578
|
const r = document.createElement("a");
|
|
1579
1579
|
r.style.display = "none", r.href = e, t ? r.download = t : r.download = ((n = e.split("?").shift()) == null ? void 0 : n.split("/").pop()) || e, document.body.appendChild(r), r.click(), document.body.removeChild(r), URL.revokeObjectURL(e);
|
|
1580
|
-
}, Y = process.env.NODE_ENV == "production" ? "https://api.zyjj.cc/api/v1" : "http://127.0.0.1:3000/api/v1", yi = process.env.NODE_ENV == "production" ? "https://knowledge.zyjj.cc/api/v1" : "http://127.0.0.1:3001/api/v1", gi = (e) => G(`${Y}/common/user/login`, e, "post"), bi = (e, t, r) => G(`${Y}/common/app/info?os=${e}&version=${t}&uid=${r || ""}`, {}, "get"), wi = (e) => G(`${Y}/common/user/register`, e, "post"), Ei = (e) => G(`${Y}/common/user/reset/password`, e, "post"), Ln = (e) => G(`${Y}/common/user/email/token`, { email: e }, "post"),
|
|
1580
|
+
}, Y = process.env.NODE_ENV == "production" ? "https://api.zyjj.cc/api/v1" : "http://127.0.0.1:3000/api/v1", yi = process.env.NODE_ENV == "production" ? "https://knowledge.zyjj.cc/api/v1" : "http://127.0.0.1:3001/api/v1", gi = (e) => G(`${Y}/common/user/login`, e, "post"), bi = (e, t, r) => G(`${Y}/common/app/info?os=${e}&version=${t}&uid=${r || ""}`, {}, "get"), wi = (e) => G(`${Y}/common/user/register`, e, "post"), Ei = (e) => G(`${Y}/common/user/reset/password`, e, "post"), Ln = (e) => G(`${Y}/common/user/email/token`, { email: e }, "post"), Tn = () => G(`${Y}/user/user/info`, {}, "get", !1), Si = (e) => G(`${Y}/user/user/info`, e, "put"), _i = (e) => G(`${Y}/user/point/deducting`, e, "post"), Oi = (e) => G(`${Y}/common/tool/list?${qn(e)}`, {}, "get"), vi = () => G(`${Y}/common/tool/all`, {}, "get"), Ri = (e) => G(`${Y}/common/tool/${e}`, {}, "get"), Ci = (e) => G(`${Y}/common/tool/inc/${e}`, {}, "get"), Di = () => G(`${Y}/common/tool/tags`, {}, "get"), Wn = () => G(`${Y}/user/cloud/tencent/cos`, {}, "get"), Pi = () => G(`${Y}/user/cloud/aliyun/oss`, {}, "get"), xi = (e) => G(`${Y}/user/task`, e, "post"), ji = (e) => G(`${Y}/user/task/${e}`, {}, "get"), Hn = () => G(`${Y}/user/cloud/mqtt/task`, {}, "get"), Ni = () => G(`${Y}/common/material/tags`, {}, "get"), ki = (e) => G(`${Y}/user/material/${e}`, {}, "get"), Ii = (e) => G(`${Y}/user/material/url`, { key_list: e }, "post"), gc = (e) => G(`${Y}${e.url}`, e.data || {}, e.method), bc = (e) => G(`${yi}${e.url}`, e.data || {}, e.method);
|
|
1581
1581
|
var Kt;
|
|
1582
1582
|
(function(e) {
|
|
1583
1583
|
e[e.Task = 0] = "Task", e[e.Lab = 1] = "Lab", e[e.Flow = 2] = "Flow";
|
|
@@ -1672,10 +1672,10 @@ function Mi() {
|
|
|
1672
1672
|
L.unshift("Warning: " + p), Function.prototype.apply.call(console[a], console, L);
|
|
1673
1673
|
}
|
|
1674
1674
|
}
|
|
1675
|
-
var A = !1,
|
|
1675
|
+
var A = !1, V = !1, B = !1, Z = !1, I = !1, ee;
|
|
1676
1676
|
ee = Symbol.for("react.module.reference");
|
|
1677
|
-
function
|
|
1678
|
-
return !!(typeof a == "string" || typeof a == "function" || a === n || a === s || I || a === o || a === d || a === l || Z || a === P || A ||
|
|
1677
|
+
function T(a) {
|
|
1678
|
+
return !!(typeof a == "string" || typeof a == "function" || a === n || a === s || I || a === o || a === d || a === l || Z || a === P || A || V || B || typeof a == "object" && a !== null && (a.$$typeof === S || a.$$typeof === f || a.$$typeof === i || a.$$typeof === c || a.$$typeof === u || // This needs to include all possible module reference object
|
|
1679
1679
|
// types supported by any Flight configuration anywhere since
|
|
1680
1680
|
// we don't know which Flight build this will end up being used
|
|
1681
1681
|
// with.
|
|
@@ -1736,14 +1736,14 @@ function Mi() {
|
|
|
1736
1736
|
}
|
|
1737
1737
|
return null;
|
|
1738
1738
|
}
|
|
1739
|
-
var O = Object.assign, w = 0, y, _, E, R, C,
|
|
1739
|
+
var O = Object.assign, w = 0, y, _, E, R, C, q, W;
|
|
1740
1740
|
function J() {
|
|
1741
1741
|
}
|
|
1742
1742
|
J.__reactDisabledLog = !0;
|
|
1743
1743
|
function re() {
|
|
1744
1744
|
{
|
|
1745
1745
|
if (w === 0) {
|
|
1746
|
-
y = console.log, _ = console.info, E = console.warn, R = console.error, C = console.group,
|
|
1746
|
+
y = console.log, _ = console.info, E = console.warn, R = console.error, C = console.group, q = console.groupCollapsed, W = console.groupEnd;
|
|
1747
1747
|
var a = {
|
|
1748
1748
|
configurable: !0,
|
|
1749
1749
|
enumerable: !0,
|
|
@@ -1788,10 +1788,10 @@ function Mi() {
|
|
|
1788
1788
|
value: C
|
|
1789
1789
|
}),
|
|
1790
1790
|
groupCollapsed: O({}, a, {
|
|
1791
|
-
value:
|
|
1791
|
+
value: q
|
|
1792
1792
|
}),
|
|
1793
1793
|
groupEnd: O({}, a, {
|
|
1794
|
-
value:
|
|
1794
|
+
value: W
|
|
1795
1795
|
})
|
|
1796
1796
|
});
|
|
1797
1797
|
}
|
|
@@ -1975,7 +1975,7 @@ function Mi() {
|
|
|
1975
1975
|
if (go(a))
|
|
1976
1976
|
return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", yo(a)), jr(a);
|
|
1977
1977
|
}
|
|
1978
|
-
var
|
|
1978
|
+
var Te = M.ReactCurrentOwner, bo = {
|
|
1979
1979
|
key: !0,
|
|
1980
1980
|
ref: !0,
|
|
1981
1981
|
__self: !0,
|
|
@@ -1999,9 +1999,9 @@ function Mi() {
|
|
|
1999
1999
|
return a.key !== void 0;
|
|
2000
2000
|
}
|
|
2001
2001
|
function So(a, p) {
|
|
2002
|
-
if (typeof a.ref == "string" &&
|
|
2003
|
-
var g = le(
|
|
2004
|
-
Rt[g] || (j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', le(
|
|
2002
|
+
if (typeof a.ref == "string" && Te.current && p && Te.current.stateNode !== p) {
|
|
2003
|
+
var g = le(Te.current.type);
|
|
2004
|
+
Rt[g] || (j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', le(Te.current.type), a.ref), Rt[g] = !0);
|
|
2005
2005
|
}
|
|
2006
2006
|
}
|
|
2007
2007
|
function _o(a, p) {
|
|
@@ -2070,7 +2070,7 @@ function Mi() {
|
|
|
2070
2070
|
var Q = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
2071
2071
|
k && _o($, Q), oe && Oo($, Q);
|
|
2072
2072
|
}
|
|
2073
|
-
return vo(a, k, oe, z, v,
|
|
2073
|
+
return vo(a, k, oe, z, v, Te.current, $);
|
|
2074
2074
|
}
|
|
2075
2075
|
}
|
|
2076
2076
|
var Ct = M.ReactCurrentOwner, Ar = M.ReactDebugCurrentFrame;
|
|
@@ -2185,7 +2185,7 @@ Check the top-level render call using <` + g + ">.");
|
|
|
2185
2185
|
}
|
|
2186
2186
|
function Br(a, p, g, v, z, L) {
|
|
2187
2187
|
{
|
|
2188
|
-
var $ =
|
|
2188
|
+
var $ = T(a);
|
|
2189
2189
|
if (!$) {
|
|
2190
2190
|
var k = "";
|
|
2191
2191
|
(a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (k += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
@@ -2248,30 +2248,30 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2248
2248
|
return { M: f, y: P, w: l, d, D: m, h: u, m: c, s: i, ms: s, Q: S }[O] || String(O || "").toLowerCase().replace(/s$/, "");
|
|
2249
2249
|
}, u: function(O) {
|
|
2250
2250
|
return O === void 0;
|
|
2251
|
-
} },
|
|
2252
|
-
B[
|
|
2251
|
+
} }, V = "en", B = {};
|
|
2252
|
+
B[V] = j;
|
|
2253
2253
|
var Z = "$isDayjsObject", I = function(O) {
|
|
2254
2254
|
return O instanceof xe || !(!O || !O[Z]);
|
|
2255
2255
|
}, ee = function O(w, y, _) {
|
|
2256
2256
|
var E;
|
|
2257
|
-
if (!w) return
|
|
2257
|
+
if (!w) return V;
|
|
2258
2258
|
if (typeof w == "string") {
|
|
2259
2259
|
var R = w.toLowerCase();
|
|
2260
2260
|
B[R] && (E = R), y && (B[R] = y, E = R);
|
|
2261
2261
|
var C = w.split("-");
|
|
2262
2262
|
if (!E && C.length > 1) return O(C[0]);
|
|
2263
2263
|
} else {
|
|
2264
|
-
var
|
|
2265
|
-
B[
|
|
2264
|
+
var q = w.name;
|
|
2265
|
+
B[q] = w, E = q;
|
|
2266
2266
|
}
|
|
2267
|
-
return !_ && E && (
|
|
2268
|
-
},
|
|
2267
|
+
return !_ && E && (V = E), E || !_ && V;
|
|
2268
|
+
}, T = function(O, w) {
|
|
2269
2269
|
if (I(O)) return O.clone();
|
|
2270
2270
|
var y = typeof w == "object" ? w : {};
|
|
2271
2271
|
return y.date = O, y.args = arguments, new xe(y);
|
|
2272
2272
|
}, U = A;
|
|
2273
2273
|
U.l = ee, U.i = I, U.w = function(O, w) {
|
|
2274
|
-
return
|
|
2274
|
+
return T(O, { locale: w.$L, utc: w.$u, x: w.$x, $offset: w.$offset });
|
|
2275
2275
|
};
|
|
2276
2276
|
var xe = function() {
|
|
2277
2277
|
function O(y) {
|
|
@@ -2287,8 +2287,8 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2287
2287
|
if (typeof E == "string" && !/Z$/i.test(E)) {
|
|
2288
2288
|
var C = E.match(N);
|
|
2289
2289
|
if (C) {
|
|
2290
|
-
var
|
|
2291
|
-
return R ? new Date(Date.UTC(C[1],
|
|
2290
|
+
var q = C[2] - 1 || 0, W = (C[7] || "0").substring(0, 3);
|
|
2291
|
+
return R ? new Date(Date.UTC(C[1], q, C[3] || 1, C[4] || 0, C[5] || 0, C[6] || 0, W)) : new Date(C[1], q, C[3] || 1, C[4] || 0, C[5] || 0, C[6] || 0, W);
|
|
2292
2292
|
}
|
|
2293
2293
|
}
|
|
2294
2294
|
return new Date(E);
|
|
@@ -2301,12 +2301,12 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2301
2301
|
}, w.isValid = function() {
|
|
2302
2302
|
return this.$d.toString() !== b;
|
|
2303
2303
|
}, w.isSame = function(y, _) {
|
|
2304
|
-
var E =
|
|
2304
|
+
var E = T(y);
|
|
2305
2305
|
return this.startOf(_) <= E && E <= this.endOf(_);
|
|
2306
2306
|
}, w.isAfter = function(y, _) {
|
|
2307
|
-
return
|
|
2307
|
+
return T(y) < this.startOf(_);
|
|
2308
2308
|
}, w.isBefore = function(y, _) {
|
|
2309
|
-
return this.endOf(_) <
|
|
2309
|
+
return this.endOf(_) < T(y);
|
|
2310
2310
|
}, w.$g = function(y, _, E) {
|
|
2311
2311
|
return U.u(y) ? this[_] : this.set(E, y);
|
|
2312
2312
|
}, w.unix = function() {
|
|
@@ -2314,40 +2314,40 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2314
2314
|
}, w.valueOf = function() {
|
|
2315
2315
|
return this.$d.getTime();
|
|
2316
2316
|
}, w.startOf = function(y, _) {
|
|
2317
|
-
var E = this, R = !!U.u(_) || _, C = U.p(y),
|
|
2317
|
+
var E = this, R = !!U.u(_) || _, C = U.p(y), q = function(me, te) {
|
|
2318
2318
|
var be = U.w(E.$u ? Date.UTC(E.$y, te, me) : new Date(E.$y, te, me), E);
|
|
2319
2319
|
return R ? be : be.endOf(d);
|
|
2320
|
-
},
|
|
2320
|
+
}, W = function(me, te) {
|
|
2321
2321
|
return U.w(E.toDate()[me].apply(E.toDate("s"), (R ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), E);
|
|
2322
2322
|
}, J = this.$W, re = this.$M, ie = this.$D, ye = "set" + (this.$u ? "UTC" : "");
|
|
2323
2323
|
switch (C) {
|
|
2324
2324
|
case P:
|
|
2325
|
-
return R ?
|
|
2325
|
+
return R ? q(1, 0) : q(31, 11);
|
|
2326
2326
|
case f:
|
|
2327
|
-
return R ?
|
|
2327
|
+
return R ? q(1, re) : q(0, re + 1);
|
|
2328
2328
|
case l:
|
|
2329
2329
|
var pe = this.$locale().weekStart || 0, ge = (J < pe ? J + 7 : J) - pe;
|
|
2330
|
-
return
|
|
2330
|
+
return q(R ? ie - ge : ie + (6 - ge), re);
|
|
2331
2331
|
case d:
|
|
2332
2332
|
case m:
|
|
2333
|
-
return
|
|
2333
|
+
return W(ye + "Hours", 0);
|
|
2334
2334
|
case u:
|
|
2335
|
-
return
|
|
2335
|
+
return W(ye + "Minutes", 1);
|
|
2336
2336
|
case c:
|
|
2337
|
-
return
|
|
2337
|
+
return W(ye + "Seconds", 2);
|
|
2338
2338
|
case i:
|
|
2339
|
-
return
|
|
2339
|
+
return W(ye + "Milliseconds", 3);
|
|
2340
2340
|
default:
|
|
2341
2341
|
return this.clone();
|
|
2342
2342
|
}
|
|
2343
2343
|
}, w.endOf = function(y) {
|
|
2344
2344
|
return this.startOf(y, !1);
|
|
2345
2345
|
}, w.$set = function(y, _) {
|
|
2346
|
-
var E, R = U.p(y), C = "set" + (this.$u ? "UTC" : ""),
|
|
2346
|
+
var E, R = U.p(y), C = "set" + (this.$u ? "UTC" : ""), q = (E = {}, E[d] = C + "Date", E[m] = C + "Date", E[f] = C + "Month", E[P] = C + "FullYear", E[u] = C + "Hours", E[c] = C + "Minutes", E[i] = C + "Seconds", E[s] = C + "Milliseconds", E)[R], W = R === d ? this.$D + (_ - this.$W) : _;
|
|
2347
2347
|
if (R === f || R === P) {
|
|
2348
2348
|
var J = this.clone().set(m, 1);
|
|
2349
|
-
J.$d[
|
|
2350
|
-
} else
|
|
2349
|
+
J.$d[q](W), J.init(), this.$d = J.set(m, Math.min(this.$D, J.daysInMonth())).$d;
|
|
2350
|
+
} else q && this.$d[q](W);
|
|
2351
2351
|
return this.init(), this;
|
|
2352
2352
|
}, w.set = function(y, _) {
|
|
2353
2353
|
return this.clone().$set(y, _);
|
|
@@ -2356,25 +2356,25 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2356
2356
|
}, w.add = function(y, _) {
|
|
2357
2357
|
var E, R = this;
|
|
2358
2358
|
y = Number(y);
|
|
2359
|
-
var C = U.p(_),
|
|
2360
|
-
var ie =
|
|
2359
|
+
var C = U.p(_), q = function(re) {
|
|
2360
|
+
var ie = T(R);
|
|
2361
2361
|
return U.w(ie.date(ie.date() + Math.round(re * y)), R);
|
|
2362
2362
|
};
|
|
2363
2363
|
if (C === f) return this.set(f, this.$M + y);
|
|
2364
2364
|
if (C === P) return this.set(P, this.$y + y);
|
|
2365
|
-
if (C === d) return
|
|
2366
|
-
if (C === l) return
|
|
2367
|
-
var
|
|
2365
|
+
if (C === d) return q(1);
|
|
2366
|
+
if (C === l) return q(7);
|
|
2367
|
+
var W = (E = {}, E[c] = n, E[u] = o, E[i] = r, E)[C] || 1, J = this.$d.getTime() + y * W;
|
|
2368
2368
|
return U.w(J, this);
|
|
2369
2369
|
}, w.subtract = function(y, _) {
|
|
2370
2370
|
return this.add(-1 * y, _);
|
|
2371
2371
|
}, w.format = function(y) {
|
|
2372
2372
|
var _ = this, E = this.$locale();
|
|
2373
2373
|
if (!this.isValid()) return E.invalidDate || b;
|
|
2374
|
-
var R = y || "YYYY-MM-DDTHH:mm:ssZ", C = U.z(this),
|
|
2374
|
+
var R = y || "YYYY-MM-DDTHH:mm:ssZ", C = U.z(this), q = this.$H, W = this.$m, J = this.$M, re = E.weekdays, ie = E.months, ye = E.meridiem, pe = function(te, be, ve, Me) {
|
|
2375
2375
|
return te && (te[be] || te(_, R)) || ve[be].slice(0, Me);
|
|
2376
2376
|
}, ge = function(te) {
|
|
2377
|
-
return U.s(
|
|
2377
|
+
return U.s(q % 12 || 12, te, "0");
|
|
2378
2378
|
}, me = ye || function(te, be, ve) {
|
|
2379
2379
|
var Me = te < 12 ? "AM" : "PM";
|
|
2380
2380
|
return ve ? Me.toLowerCase() : Me;
|
|
@@ -2407,21 +2407,21 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2407
2407
|
case "dddd":
|
|
2408
2408
|
return re[_.$W];
|
|
2409
2409
|
case "H":
|
|
2410
|
-
return String(
|
|
2410
|
+
return String(q);
|
|
2411
2411
|
case "HH":
|
|
2412
|
-
return U.s(
|
|
2412
|
+
return U.s(q, 2, "0");
|
|
2413
2413
|
case "h":
|
|
2414
2414
|
return ge(1);
|
|
2415
2415
|
case "hh":
|
|
2416
2416
|
return ge(2);
|
|
2417
2417
|
case "a":
|
|
2418
|
-
return me(
|
|
2418
|
+
return me(q, W, !0);
|
|
2419
2419
|
case "A":
|
|
2420
|
-
return me(
|
|
2420
|
+
return me(q, W, !1);
|
|
2421
2421
|
case "m":
|
|
2422
|
-
return String(
|
|
2422
|
+
return String(W);
|
|
2423
2423
|
case "mm":
|
|
2424
|
-
return U.s(
|
|
2424
|
+
return U.s(W, 2, "0");
|
|
2425
2425
|
case "s":
|
|
2426
2426
|
return String(_.$s);
|
|
2427
2427
|
case "ss":
|
|
@@ -2437,10 +2437,10 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2437
2437
|
}, w.utcOffset = function() {
|
|
2438
2438
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
2439
2439
|
}, w.diff = function(y, _, E) {
|
|
2440
|
-
var R, C = this,
|
|
2441
|
-
return U.m(C,
|
|
2440
|
+
var R, C = this, q = U.p(_), W = T(y), J = (W.utcOffset() - this.utcOffset()) * n, re = this - W, ie = function() {
|
|
2441
|
+
return U.m(C, W);
|
|
2442
2442
|
};
|
|
2443
|
-
switch (
|
|
2443
|
+
switch (q) {
|
|
2444
2444
|
case P:
|
|
2445
2445
|
R = ie() / 12;
|
|
2446
2446
|
break;
|
|
@@ -2489,19 +2489,19 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2489
2489
|
return this.$d.toUTCString();
|
|
2490
2490
|
}, O;
|
|
2491
2491
|
}(), le = xe.prototype;
|
|
2492
|
-
return
|
|
2492
|
+
return T.prototype = le, [["$ms", s], ["$s", i], ["$m", c], ["$H", u], ["$W", d], ["$M", f], ["$y", P], ["$D", m]].forEach(function(O) {
|
|
2493
2493
|
le[O[1]] = function(w) {
|
|
2494
2494
|
return this.$g(w, O[0], O[1]);
|
|
2495
2495
|
};
|
|
2496
|
-
}),
|
|
2497
|
-
return O.$i || (O(w, xe,
|
|
2498
|
-
},
|
|
2499
|
-
return
|
|
2500
|
-
},
|
|
2496
|
+
}), T.extend = function(O, w) {
|
|
2497
|
+
return O.$i || (O(w, xe, T), O.$i = !0), T;
|
|
2498
|
+
}, T.locale = ee, T.isDayjs = I, T.unix = function(O) {
|
|
2499
|
+
return T(1e3 * O);
|
|
2500
|
+
}, T.en = B[V], T.Ls = B, T.p = {}, T;
|
|
2501
2501
|
});
|
|
2502
2502
|
})(Gn);
|
|
2503
2503
|
var Ui = Gn.exports;
|
|
2504
|
-
const Bi = /* @__PURE__ */ $i(Ui), zi = (e) => Bi(e).format("YYYY-MM-DD HH:mm:ss"),
|
|
2504
|
+
const Bi = /* @__PURE__ */ $i(Ui), zi = (e) => Bi(e).format("YYYY-MM-DD HH:mm:ss"), qi = (e) => D.jsx(bn.Paragraph, { copyable: !0, children: e }), Vi = (e) => D.jsx(bn.Ellipsis, { style: { maxWidth: 300 }, rows: 1, showTooltip: !0, children: e });
|
|
2505
2505
|
function Li(e) {
|
|
2506
2506
|
if (typeof e != "object" || e === null)
|
|
2507
2507
|
return !1;
|
|
@@ -2510,10 +2510,10 @@ function Li(e) {
|
|
|
2510
2510
|
t = Object.getPrototypeOf(t);
|
|
2511
2511
|
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
|
|
2512
2512
|
}
|
|
2513
|
-
function
|
|
2513
|
+
function Ti(e) {
|
|
2514
2514
|
return Li(e) && "type" in e && typeof e.type == "string";
|
|
2515
2515
|
}
|
|
2516
|
-
var Yn = Symbol.for("immer-nothing"), tn = Symbol.for("immer-draftable"), ce = Symbol.for("immer-state"),
|
|
2516
|
+
var Yn = Symbol.for("immer-nothing"), tn = Symbol.for("immer-draftable"), ce = Symbol.for("immer-state"), Wi = process.env.NODE_ENV !== "production" ? [
|
|
2517
2517
|
// All error codes, starting by 0:
|
|
2518
2518
|
function(e) {
|
|
2519
2519
|
return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
|
|
@@ -2546,14 +2546,14 @@ var Yn = Symbol.for("immer-nothing"), tn = Symbol.for("immer-draftable"), ce = S
|
|
|
2546
2546
|
] : [];
|
|
2547
2547
|
function ae(e, ...t) {
|
|
2548
2548
|
if (process.env.NODE_ENV !== "production") {
|
|
2549
|
-
const r =
|
|
2549
|
+
const r = Wi[e], n = typeof r == "function" ? r.apply(null, t) : r;
|
|
2550
2550
|
throw new Error(`[Immer] ${n}`);
|
|
2551
2551
|
}
|
|
2552
2552
|
throw new Error(
|
|
2553
2553
|
`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
|
|
2554
2554
|
);
|
|
2555
2555
|
}
|
|
2556
|
-
var
|
|
2556
|
+
var qe = Object.getPrototypeOf;
|
|
2557
2557
|
function Pe(e) {
|
|
2558
2558
|
return !!e && !!e[ce];
|
|
2559
2559
|
}
|
|
@@ -2565,7 +2565,7 @@ var Hi = Object.prototype.constructor.toString();
|
|
|
2565
2565
|
function Jn(e) {
|
|
2566
2566
|
if (!e || typeof e != "object")
|
|
2567
2567
|
return !1;
|
|
2568
|
-
const t =
|
|
2568
|
+
const t = qe(e);
|
|
2569
2569
|
if (t === null)
|
|
2570
2570
|
return !0;
|
|
2571
2571
|
const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
@@ -2621,9 +2621,9 @@ function or(e, t) {
|
|
|
2621
2621
|
value: e[i]
|
|
2622
2622
|
});
|
|
2623
2623
|
}
|
|
2624
|
-
return Object.create(
|
|
2624
|
+
return Object.create(qe(e), n);
|
|
2625
2625
|
} else {
|
|
2626
|
-
const n =
|
|
2626
|
+
const n = qe(e);
|
|
2627
2627
|
if (n !== null && r)
|
|
2628
2628
|
return { ...e };
|
|
2629
2629
|
const o = Object.create(n);
|
|
@@ -2811,7 +2811,7 @@ var vr = {
|
|
|
2811
2811
|
ae(11);
|
|
2812
2812
|
},
|
|
2813
2813
|
getPrototypeOf(e) {
|
|
2814
|
-
return
|
|
2814
|
+
return qe(e.base_);
|
|
2815
2815
|
},
|
|
2816
2816
|
setPrototypeOf() {
|
|
2817
2817
|
ae(12);
|
|
@@ -2844,12 +2844,12 @@ function Qi(e, t, r) {
|
|
|
2844
2844
|
function Zn(e, t) {
|
|
2845
2845
|
if (!(t in e))
|
|
2846
2846
|
return;
|
|
2847
|
-
let r =
|
|
2847
|
+
let r = qe(e);
|
|
2848
2848
|
for (; r; ) {
|
|
2849
2849
|
const n = Object.getOwnPropertyDescriptor(r, t);
|
|
2850
2850
|
if (n)
|
|
2851
2851
|
return n;
|
|
2852
|
-
r =
|
|
2852
|
+
r = qe(r);
|
|
2853
2853
|
}
|
|
2854
2854
|
}
|
|
2855
2855
|
function ar(e) {
|
|
@@ -3148,7 +3148,7 @@ function ro(e, ...t) {
|
|
|
3148
3148
|
);
|
|
3149
3149
|
}, ...N);
|
|
3150
3150
|
let A = !0;
|
|
3151
|
-
const
|
|
3151
|
+
const V = P(function() {
|
|
3152
3152
|
i++;
|
|
3153
3153
|
const Z = cn(
|
|
3154
3154
|
j,
|
|
@@ -3161,12 +3161,12 @@ function ro(e, ...t) {
|
|
|
3161
3161
|
Z,
|
|
3162
3162
|
c
|
|
3163
3163
|
), ee.shouldRun) {
|
|
3164
|
-
const
|
|
3164
|
+
const T = cn(
|
|
3165
3165
|
j,
|
|
3166
3166
|
arguments
|
|
3167
3167
|
);
|
|
3168
3168
|
ee.run(
|
|
3169
|
-
{ inputSelectorResults: Z, inputSelectorResultsCopy:
|
|
3169
|
+
{ inputSelectorResults: Z, inputSelectorResultsCopy: T },
|
|
3170
3170
|
{ memoize: f, memoizeOptions: N },
|
|
3171
3171
|
arguments
|
|
3172
3172
|
);
|
|
@@ -3175,7 +3175,7 @@ function ro(e, ...t) {
|
|
|
3175
3175
|
}
|
|
3176
3176
|
return c;
|
|
3177
3177
|
}, ...M);
|
|
3178
|
-
return Object.assign(
|
|
3178
|
+
return Object.assign(V, {
|
|
3179
3179
|
resultFunc: d,
|
|
3180
3180
|
memoizedResultFunc: x,
|
|
3181
3181
|
dependencies: j,
|
|
@@ -3244,7 +3244,7 @@ function _e(e, t) {
|
|
|
3244
3244
|
payload: n[0]
|
|
3245
3245
|
};
|
|
3246
3246
|
}
|
|
3247
|
-
return r.toString = () => `${e}`, r.type = e, r.match = (n) =>
|
|
3247
|
+
return r.toString = () => `${e}`, r.type = e, r.match = (n) => Ti(n) && n.type === e, r;
|
|
3248
3248
|
}
|
|
3249
3249
|
function ln(e) {
|
|
3250
3250
|
return Oe(e) ? to(e, () => {
|
|
@@ -3413,7 +3413,7 @@ var Sa = ["name", "message", "stack", "code"], Ft = class {
|
|
|
3413
3413
|
b = j, P.abort();
|
|
3414
3414
|
}
|
|
3415
3415
|
const M = async function() {
|
|
3416
|
-
var A,
|
|
3416
|
+
var A, V;
|
|
3417
3417
|
let j;
|
|
3418
3418
|
try {
|
|
3419
3419
|
let B = (A = n == null ? void 0 : n.condition) == null ? void 0 : A.call(n, u, {
|
|
@@ -3433,7 +3433,7 @@ var Sa = ["name", "message", "stack", "code"], Ft = class {
|
|
|
3433
3433
|
});
|
|
3434
3434
|
}, P.signal.addEventListener("abort", m);
|
|
3435
3435
|
});
|
|
3436
|
-
d(s(S, u, (
|
|
3436
|
+
d(s(S, u, (V = n == null ? void 0 : n.getPendingMeta) == null ? void 0 : V.call(n, {
|
|
3437
3437
|
requestId: S,
|
|
3438
3438
|
arg: u
|
|
3439
3439
|
}, {
|
|
@@ -3514,12 +3514,12 @@ function Da({
|
|
|
3514
3514
|
sliceMatchers: []
|
|
3515
3515
|
}, l = {
|
|
3516
3516
|
addCase(x, A) {
|
|
3517
|
-
const
|
|
3518
|
-
if (!
|
|
3517
|
+
const V = typeof x == "string" ? x : x.type;
|
|
3518
|
+
if (!V)
|
|
3519
3519
|
throw new Error(process.env.NODE_ENV === "production" ? X(12) : "`context.addCase` cannot be called with an empty action type");
|
|
3520
|
-
if (
|
|
3521
|
-
throw new Error(process.env.NODE_ENV === "production" ? X(13) : "`context.addCase` cannot be called with two reducers for the same action type: " +
|
|
3522
|
-
return d.sliceCaseReducersByType[
|
|
3520
|
+
if (V in d.sliceCaseReducersByType)
|
|
3521
|
+
throw new Error(process.env.NODE_ENV === "production" ? X(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + V);
|
|
3522
|
+
return d.sliceCaseReducersByType[V] = A, l;
|
|
3523
3523
|
},
|
|
3524
3524
|
addMatcher(x, A) {
|
|
3525
3525
|
return d.sliceMatchers.push({
|
|
@@ -3535,17 +3535,17 @@ function Da({
|
|
|
3535
3535
|
}
|
|
3536
3536
|
};
|
|
3537
3537
|
u.forEach((x) => {
|
|
3538
|
-
const A = c[x],
|
|
3538
|
+
const A = c[x], V = {
|
|
3539
3539
|
reducerName: x,
|
|
3540
3540
|
type: Ca(s, x),
|
|
3541
3541
|
createNotation: typeof o.reducers == "function"
|
|
3542
3542
|
};
|
|
3543
|
-
Na(A) ? Ia(
|
|
3543
|
+
Na(A) ? Ia(V, A, l, t) : ja(V, A, l);
|
|
3544
3544
|
});
|
|
3545
3545
|
function f() {
|
|
3546
3546
|
if (process.env.NODE_ENV !== "production" && typeof o.extraReducers == "object")
|
|
3547
3547
|
throw new Error(process.env.NODE_ENV === "production" ? X(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
|
|
3548
|
-
const [x = {}, A = [],
|
|
3548
|
+
const [x = {}, A = [], V = void 0] = typeof o.extraReducers == "function" ? no(o.extraReducers) : [o.extraReducers], B = {
|
|
3549
3549
|
...x,
|
|
3550
3550
|
...d.sliceCaseReducersByType
|
|
3551
3551
|
};
|
|
@@ -3556,7 +3556,7 @@ function Da({
|
|
|
3556
3556
|
Z.addMatcher(I.matcher, I.reducer);
|
|
3557
3557
|
for (let I of A)
|
|
3558
3558
|
Z.addMatcher(I.matcher, I.reducer);
|
|
3559
|
-
|
|
3559
|
+
V && Z.addDefaultCase(V);
|
|
3560
3560
|
});
|
|
3561
3561
|
}
|
|
3562
3562
|
const S = (x) => x, P = /* @__PURE__ */ new Map();
|
|
@@ -3568,7 +3568,7 @@ function Da({
|
|
|
3568
3568
|
return m || (m = f()), m.getInitialState();
|
|
3569
3569
|
}
|
|
3570
3570
|
function M(x, A = !1) {
|
|
3571
|
-
function
|
|
3571
|
+
function V(Z) {
|
|
3572
3572
|
let I = Z[x];
|
|
3573
3573
|
if (typeof I > "u") {
|
|
3574
3574
|
if (A)
|
|
@@ -3585,8 +3585,8 @@ function Da({
|
|
|
3585
3585
|
return fn(I, Z, {
|
|
3586
3586
|
insert: () => {
|
|
3587
3587
|
const ee = {};
|
|
3588
|
-
for (const [
|
|
3589
|
-
ee[
|
|
3588
|
+
for (const [T, U] of Object.entries(o.selectors ?? {}))
|
|
3589
|
+
ee[T] = Pa(U, Z, N, A);
|
|
3590
3590
|
return ee;
|
|
3591
3591
|
}
|
|
3592
3592
|
});
|
|
@@ -3595,9 +3595,9 @@ function Da({
|
|
|
3595
3595
|
reducerPath: x,
|
|
3596
3596
|
getSelectors: B,
|
|
3597
3597
|
get selectors() {
|
|
3598
|
-
return B(
|
|
3598
|
+
return B(V);
|
|
3599
3599
|
},
|
|
3600
|
-
selectSlice:
|
|
3600
|
+
selectSlice: V
|
|
3601
3601
|
};
|
|
3602
3602
|
}
|
|
3603
3603
|
const j = {
|
|
@@ -3609,13 +3609,13 @@ function Da({
|
|
|
3609
3609
|
...M(i),
|
|
3610
3610
|
injectInto(x, {
|
|
3611
3611
|
reducerPath: A,
|
|
3612
|
-
...
|
|
3612
|
+
...V
|
|
3613
3613
|
} = {}) {
|
|
3614
3614
|
const B = A ?? i;
|
|
3615
3615
|
return x.inject({
|
|
3616
3616
|
reducerPath: B,
|
|
3617
3617
|
reducer: b
|
|
3618
|
-
},
|
|
3618
|
+
}, V), {
|
|
3619
3619
|
...j,
|
|
3620
3620
|
...M(B, !0)
|
|
3621
3621
|
};
|
|
@@ -3767,7 +3767,7 @@ const Ba = {
|
|
|
3767
3767
|
showLogin: !1
|
|
3768
3768
|
}, ur = Cr("user/getUserInfo", async () => {
|
|
3769
3769
|
if (localStorage.getItem("token"))
|
|
3770
|
-
return await
|
|
3770
|
+
return await Tn();
|
|
3771
3771
|
}), io = so({
|
|
3772
3772
|
name: "user",
|
|
3773
3773
|
initialState: Ba,
|
|
@@ -3790,9 +3790,9 @@ const Ba = {
|
|
|
3790
3790
|
t.isLogin = !1, t.userInfo = void 0;
|
|
3791
3791
|
});
|
|
3792
3792
|
}
|
|
3793
|
-
}), za = io.actions,
|
|
3793
|
+
}), za = io.actions, qa = io.reducer, lr = (e, t) => t.some((r) => e instanceof r);
|
|
3794
3794
|
let hn, pn;
|
|
3795
|
-
function
|
|
3795
|
+
function Va() {
|
|
3796
3796
|
return hn || (hn = [
|
|
3797
3797
|
IDBDatabase,
|
|
3798
3798
|
IDBObjectStore,
|
|
@@ -3809,7 +3809,7 @@ function La() {
|
|
|
3809
3809
|
]);
|
|
3810
3810
|
}
|
|
3811
3811
|
const fr = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakMap();
|
|
3812
|
-
function
|
|
3812
|
+
function Ta(e) {
|
|
3813
3813
|
const t = new Promise((r, n) => {
|
|
3814
3814
|
const o = () => {
|
|
3815
3815
|
e.removeEventListener("success", s), e.removeEventListener("error", i);
|
|
@@ -3822,7 +3822,7 @@ function Wa(e) {
|
|
|
3822
3822
|
});
|
|
3823
3823
|
return Ot.set(t, e), t;
|
|
3824
3824
|
}
|
|
3825
|
-
function
|
|
3825
|
+
function Wa(e) {
|
|
3826
3826
|
if (fr.has(e))
|
|
3827
3827
|
return;
|
|
3828
3828
|
const t = new Promise((r, n) => {
|
|
@@ -3865,11 +3865,11 @@ function Ha(e) {
|
|
|
3865
3865
|
};
|
|
3866
3866
|
}
|
|
3867
3867
|
function Ga(e) {
|
|
3868
|
-
return typeof e == "function" ? Ha(e) : (e instanceof IDBTransaction &&
|
|
3868
|
+
return typeof e == "function" ? Ha(e) : (e instanceof IDBTransaction && Wa(e), lr(e, Va()) ? new Proxy(e, dr) : e);
|
|
3869
3869
|
}
|
|
3870
3870
|
function $e(e) {
|
|
3871
3871
|
if (e instanceof IDBRequest)
|
|
3872
|
-
return
|
|
3872
|
+
return Ta(e);
|
|
3873
3873
|
if (Mt.has(e))
|
|
3874
3874
|
return Mt.get(e);
|
|
3875
3875
|
const t = Ga(e);
|
|
@@ -3958,7 +3958,7 @@ const Le = "task", rt = () => Ya("zyjj", 2, {
|
|
|
3958
3958
|
}, uo = Cr("mqtt/initMqtt", async (e, { dispatch: t }) => {
|
|
3959
3959
|
const r = await Hn();
|
|
3960
3960
|
console.log("[mqtt] mqtt info", r);
|
|
3961
|
-
const n = r.topic, o =
|
|
3961
|
+
const n = r.topic, o = qo.connect(`mqtt://${r.host}`, {
|
|
3962
3962
|
keepalive: 60,
|
|
3963
3963
|
clientId: r.client_id,
|
|
3964
3964
|
username: r.username,
|
|
@@ -4007,7 +4007,7 @@ const Le = "task", rt = () => Ya("zyjj", 2, {
|
|
|
4007
4007
|
}), ac = lo.actions, cc = lo.reducer;
|
|
4008
4008
|
var mr;
|
|
4009
4009
|
(function(e) {
|
|
4010
|
-
e[e.MqttListener = 0] = "MqttListener", e[e.CloudFileUpload = 1] = "CloudFileUpload", e[e.CloudFileDownload = 2] = "CloudFileDownload", e[e.GetInitData = 3] = "GetInitData", e[e.NavigateTo = 4] = "NavigateTo", e[e.CloseWindow = 5] = "CloseWindow", e[e.TaskAction = 6] = "TaskAction", e[e.SendRequest = 7] = "SendRequest", e[e.FFMPEG = 8] = "FFMPEG", e[e.FileDownload = 9] = "FileDownload", e[e.OpenVideoEditor = 10] = "OpenVideoEditor", e[e.
|
|
4010
|
+
e[e.MqttListener = 0] = "MqttListener", e[e.CloudFileUpload = 1] = "CloudFileUpload", e[e.CloudFileDownload = 2] = "CloudFileDownload", e[e.GetInitData = 3] = "GetInitData", e[e.NavigateTo = 4] = "NavigateTo", e[e.CloseWindow = 5] = "CloseWindow", e[e.TaskAction = 6] = "TaskAction", e[e.SendRequest = 7] = "SendRequest", e[e.FFMPEG = 8] = "FFMPEG", e[e.FileDownload = 9] = "FileDownload", e[e.OpenVideoEditor = 10] = "OpenVideoEditor", e[e.OpenHelp = 12] = "OpenHelp", e[e.GetFileData = 13] = "GetFileData", e[e.OpenTool = 14] = "OpenTool";
|
|
4011
4011
|
})(mr || (mr = {}));
|
|
4012
4012
|
var yr;
|
|
4013
4013
|
(function(e) {
|
|
@@ -4088,12 +4088,12 @@ const Sc = {
|
|
|
4088
4088
|
UpdateUserInfo: Si,
|
|
4089
4089
|
GetAppInfo: bi,
|
|
4090
4090
|
CostPoint: _i,
|
|
4091
|
-
GetUserInfo:
|
|
4091
|
+
GetUserInfo: Tn,
|
|
4092
4092
|
UserDownloadMaterial: ki,
|
|
4093
4093
|
GetMqttTaskClientInfo: Hn,
|
|
4094
4094
|
AddTask: xi,
|
|
4095
4095
|
GetTaskInfo: ji,
|
|
4096
|
-
GetTencentCosInfo:
|
|
4096
|
+
GetTencentCosInfo: Wn,
|
|
4097
4097
|
GetMaterialUrl: Ii,
|
|
4098
4098
|
GetMaterialTagList: Ni,
|
|
4099
4099
|
GetToolList: Oi,
|
|
@@ -4101,7 +4101,7 @@ const Sc = {
|
|
|
4101
4101
|
GetToolDetail: Ri
|
|
4102
4102
|
}, _c = {
|
|
4103
4103
|
ToolType: Kt,
|
|
4104
|
-
LocalActionReqType:
|
|
4104
|
+
LocalActionReqType: Wt,
|
|
4105
4105
|
LocalActionResType: Ht,
|
|
4106
4106
|
MQTTEventType: Ne,
|
|
4107
4107
|
FileSource: Ke,
|
|
@@ -4119,18 +4119,18 @@ const Sc = {
|
|
|
4119
4119
|
}, Oc = {
|
|
4120
4120
|
render: {
|
|
4121
4121
|
renderTime: zi,
|
|
4122
|
-
renderEllipsis:
|
|
4123
|
-
renderCopy:
|
|
4122
|
+
renderEllipsis: Vi,
|
|
4123
|
+
renderCopy: qi
|
|
4124
4124
|
},
|
|
4125
4125
|
utils: {
|
|
4126
4126
|
file2ToolParamFile: ci,
|
|
4127
4127
|
seconds2TimeStr: ui,
|
|
4128
|
-
object2query:
|
|
4128
|
+
object2query: qn,
|
|
4129
4129
|
paramReplace: hi,
|
|
4130
4130
|
object2urlParam: pi,
|
|
4131
4131
|
convertFileSize: ai,
|
|
4132
4132
|
downloadFile: mi,
|
|
4133
|
-
downloadFileDirect:
|
|
4133
|
+
downloadFileDirect: Vn
|
|
4134
4134
|
},
|
|
4135
4135
|
cloud: {
|
|
4136
4136
|
getTencentCosInfo: li,
|
|
@@ -4144,7 +4144,7 @@ const Sc = {
|
|
|
4144
4144
|
deleteData: oc
|
|
4145
4145
|
}
|
|
4146
4146
|
}, vc = {
|
|
4147
|
-
UserReducer:
|
|
4147
|
+
UserReducer: qa,
|
|
4148
4148
|
UserAction: za,
|
|
4149
4149
|
GetUserInfo: ur,
|
|
4150
4150
|
MqttReducer: cc,
|