zyjj-web-sdk 1.1.20 → 1.1.21
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 +368 -371
- package/lib/index.umd.cjs +9 -9
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -6,7 +6,7 @@ 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
8
|
import qo from "mqtt";
|
|
9
|
-
function
|
|
9
|
+
function En(e, t) {
|
|
10
10
|
return function() {
|
|
11
11
|
return e.apply(t, arguments);
|
|
12
12
|
};
|
|
@@ -14,25 +14,25 @@ function _n(e, t) {
|
|
|
14
14
|
const { toString: Vo } = Object.prototype, { getPrototypeOf: wr } = Object, mt = /* @__PURE__ */ ((e) => (t) => {
|
|
15
15
|
const r = Vo.call(t);
|
|
16
16
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
17
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
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
|
-
const
|
|
21
|
+
const Sn = Ee("ArrayBuffer");
|
|
22
22
|
function To(e) {
|
|
23
23
|
let t;
|
|
24
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer &&
|
|
24
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Sn(e.buffer), t;
|
|
25
25
|
}
|
|
26
|
-
const Wo = yt("string"), de = yt("function"),
|
|
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);
|
|
30
30
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
31
|
-
}, Go =
|
|
31
|
+
}, Go = Ee("Date"), Yo = Ee("File"), Jo = Ee("Blob"), Ko = Ee("FileList"), Xo = (e) => gt(e) && de(e.pipe), Zo = (e) => {
|
|
32
32
|
let t;
|
|
33
33
|
return e && (typeof FormData == "function" && e instanceof FormData || de(e.append) && ((t = mt(e)) === "formdata" || // detect form-data instance
|
|
34
34
|
t === "object" && de(e.toString) && e.toString() === "[object FormData]"));
|
|
35
|
-
}, Qo =
|
|
35
|
+
}, Qo = Ee("URLSearchParams"), es = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
36
36
|
function Qe(e, t, { allOwnKeys: r = !1 } = {}) {
|
|
37
37
|
if (e === null || typeof e > "u")
|
|
38
38
|
return;
|
|
@@ -67,7 +67,7 @@ function zt() {
|
|
|
67
67
|
return t;
|
|
68
68
|
}
|
|
69
69
|
const ts = (e, t, r, { allOwnKeys: n } = {}) => (Qe(t, (o, s) => {
|
|
70
|
-
r && de(o) ? e[s] =
|
|
70
|
+
r && de(o) ? e[s] = En(o, r) : e[s] = o;
|
|
71
71
|
}, { allOwnKeys: n }), e), rs = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), ns = (e, t, r, n) => {
|
|
72
72
|
e.prototype = Object.create(t.prototype, n), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
73
73
|
value: t.prototype
|
|
@@ -90,7 +90,7 @@ const ts = (e, t, r, { allOwnKeys: n } = {}) => (Qe(t, (o, s) => {
|
|
|
90
90
|
if (!e) return null;
|
|
91
91
|
if (Ve(e)) return e;
|
|
92
92
|
let t = e.length;
|
|
93
|
-
if (!
|
|
93
|
+
if (!_n(t)) return null;
|
|
94
94
|
const r = new Array(t);
|
|
95
95
|
for (; t-- > 0; )
|
|
96
96
|
r[t] = e[t];
|
|
@@ -108,12 +108,12 @@ const ts = (e, t, r, { allOwnKeys: n } = {}) => (Qe(t, (o, s) => {
|
|
|
108
108
|
for (; (r = e.exec(t)) !== null; )
|
|
109
109
|
n.push(r);
|
|
110
110
|
return n;
|
|
111
|
-
}, ls =
|
|
111
|
+
}, ls = Ee("HTMLFormElement"), fs = (e) => e.toLowerCase().replace(
|
|
112
112
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
113
113
|
function(r, n, o) {
|
|
114
114
|
return n.toUpperCase() + o;
|
|
115
115
|
}
|
|
116
|
-
), qr = (({ hasOwnProperty: e }) => (t, r) => e.call(t, r))(Object.prototype), ds =
|
|
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;
|
|
@@ -173,14 +173,14 @@ const ws = (e) => {
|
|
|
173
173
|
return n;
|
|
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
177
|
isArray: Ve,
|
|
178
|
-
isArrayBuffer:
|
|
178
|
+
isArrayBuffer: Sn,
|
|
179
179
|
isBuffer: Lo,
|
|
180
180
|
isFormData: Zo,
|
|
181
181
|
isArrayBufferView: To,
|
|
182
182
|
isString: Wo,
|
|
183
|
-
isNumber:
|
|
183
|
+
isNumber: _n,
|
|
184
184
|
isBoolean: Ho,
|
|
185
185
|
isObject: gt,
|
|
186
186
|
isPlainObject: lt,
|
|
@@ -202,7 +202,7 @@ const ws = (e) => {
|
|
|
202
202
|
inherits: ns,
|
|
203
203
|
toFlatObject: os,
|
|
204
204
|
kindOf: mt,
|
|
205
|
-
kindOfTest:
|
|
205
|
+
kindOfTest: Ee,
|
|
206
206
|
endsWith: ss,
|
|
207
207
|
toArray: is,
|
|
208
208
|
forEachEntry: cs,
|
|
@@ -224,8 +224,8 @@ const ws = (e) => {
|
|
|
224
224
|
generateString: gs,
|
|
225
225
|
isSpecCompliantForm: bs,
|
|
226
226
|
toJSONObject: ws,
|
|
227
|
-
isAsyncFn:
|
|
228
|
-
isThenable:
|
|
227
|
+
isAsyncFn: Es,
|
|
228
|
+
isThenable: Ss
|
|
229
229
|
};
|
|
230
230
|
function F(e, t, r, n, o) {
|
|
231
231
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), n && (this.request = n), o && (this.response = o);
|
|
@@ -277,7 +277,7 @@ F.from = (e, t, r, n, o, s) => {
|
|
|
277
277
|
return u !== Error.prototype;
|
|
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
|
-
const
|
|
280
|
+
const _s = null;
|
|
281
281
|
function qt(e) {
|
|
282
282
|
return h.isPlainObject(e) || h.isArray(e);
|
|
283
283
|
}
|
|
@@ -332,7 +332,7 @@ function bt(e, t, r) {
|
|
|
332
332
|
}
|
|
333
333
|
return qt(m) ? !0 : (t.append(Lr(N, b, s), d(m)), !1);
|
|
334
334
|
}
|
|
335
|
-
const f = [],
|
|
335
|
+
const f = [], S = Object.assign(vs, {
|
|
336
336
|
defaultVisitor: l,
|
|
337
337
|
convertValue: d,
|
|
338
338
|
isVisitable: qt
|
|
@@ -347,7 +347,7 @@ function bt(e, t, r) {
|
|
|
347
347
|
M,
|
|
348
348
|
h.isString(j) ? j.trim() : j,
|
|
349
349
|
b,
|
|
350
|
-
|
|
350
|
+
S
|
|
351
351
|
)) === !0 && P(M, b ? b.concat(j) : [j]);
|
|
352
352
|
}), f.pop();
|
|
353
353
|
}
|
|
@@ -370,10 +370,10 @@ function Tr(e) {
|
|
|
370
370
|
return t[n];
|
|
371
371
|
});
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Er(e, t) {
|
|
374
374
|
this._pairs = [], e && bt(e, this, t);
|
|
375
375
|
}
|
|
376
|
-
const Nn =
|
|
376
|
+
const Nn = Er.prototype;
|
|
377
377
|
Nn.append = function(t, r) {
|
|
378
378
|
this._pairs.push([t, r]);
|
|
379
379
|
};
|
|
@@ -393,7 +393,7 @@ function kn(e, t, r) {
|
|
|
393
393
|
return e;
|
|
394
394
|
const n = r && r.encode || Rs, o = r && r.serialize;
|
|
395
395
|
let s;
|
|
396
|
-
if (o ? s = o(t, r) : s = h.isURLSearchParams(t) ? t.toString() : new
|
|
396
|
+
if (o ? s = o(t, r) : s = h.isURLSearchParams(t) ? t.toString() : new Er(t, r).toString(n), s) {
|
|
397
397
|
const i = e.indexOf("#");
|
|
398
398
|
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
|
|
399
399
|
}
|
|
@@ -457,7 +457,7 @@ const An = {
|
|
|
457
457
|
silentJSONParsing: !0,
|
|
458
458
|
forcedJSONParsing: !0,
|
|
459
459
|
clarifyTimeoutError: !1
|
|
460
|
-
}, Cs = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
460
|
+
}, Cs = typeof URLSearchParams < "u" ? URLSearchParams : Er, Ds = typeof FormData < "u" ? FormData : null, Ps = typeof Blob < "u" ? Blob : null, xs = {
|
|
461
461
|
isBrowser: !0,
|
|
462
462
|
classes: {
|
|
463
463
|
URLSearchParams: Cs,
|
|
@@ -875,13 +875,13 @@ function Js(e, t) {
|
|
|
875
875
|
return t = t !== void 0 ? t : 1e3, function(u) {
|
|
876
876
|
const d = Date.now(), l = n[s];
|
|
877
877
|
i || (i = d), r[o] = u, n[o] = d;
|
|
878
|
-
let f = s,
|
|
878
|
+
let f = s, S = 0;
|
|
879
879
|
for (; f !== o; )
|
|
880
|
-
|
|
880
|
+
S += r[f++], f = f % e;
|
|
881
881
|
if (o = (o + 1) % e, o === s && (s = (s + 1) % e), d - i < t)
|
|
882
882
|
return;
|
|
883
883
|
const P = l && d - l;
|
|
884
|
-
return P ? Math.round(
|
|
884
|
+
return P ? Math.round(S * 1e3 / P) : void 0;
|
|
885
885
|
};
|
|
886
886
|
}
|
|
887
887
|
function Gr(e, t) {
|
|
@@ -924,8 +924,8 @@ const Ks = typeof XMLHttpRequest < "u", Xs = Ks && function(e) {
|
|
|
924
924
|
const b = e.auth.username || "", N = e.auth.password ? unescape(encodeURIComponent(e.auth.password)) : "";
|
|
925
925
|
s.set("Authorization", "Basic " + btoa(b + ":" + N));
|
|
926
926
|
}
|
|
927
|
-
const
|
|
928
|
-
f.open(e.method.toUpperCase(), kn(
|
|
927
|
+
const S = Mn(e.baseURL, e.url);
|
|
928
|
+
f.open(e.method.toUpperCase(), kn(S, e.params, e.paramsSerializer), !0), f.timeout = e.timeout;
|
|
929
929
|
function P() {
|
|
930
930
|
if (!f)
|
|
931
931
|
return;
|
|
@@ -960,7 +960,7 @@ const Ks = typeof XMLHttpRequest < "u", Xs = Ks && function(e) {
|
|
|
960
960
|
e,
|
|
961
961
|
f
|
|
962
962
|
)), f = null;
|
|
963
|
-
}, we.hasStandardBrowserEnv && (c && h.isFunction(c) && (c = c(e)), c || c !== !1 && Gs(
|
|
963
|
+
}, we.hasStandardBrowserEnv && (c && h.isFunction(c) && (c = c(e)), c || c !== !1 && Gs(S))) {
|
|
964
964
|
const b = e.xsrfHeaderName && e.xsrfCookieName && Ts.read(e.xsrfCookieName);
|
|
965
965
|
b && s.set(e.xsrfHeaderName, b);
|
|
966
966
|
}
|
|
@@ -969,7 +969,7 @@ const Ks = typeof XMLHttpRequest < "u", Xs = Ks && function(e) {
|
|
|
969
969
|
}), h.isUndefined(e.withCredentials) || (f.withCredentials = !!e.withCredentials), i && i !== "json" && (f.responseType = e.responseType), typeof e.onDownloadProgress == "function" && f.addEventListener("progress", Gr(e.onDownloadProgress, !0)), typeof e.onUploadProgress == "function" && f.upload && f.upload.addEventListener("progress", Gr(e.onUploadProgress)), (e.cancelToken || e.signal) && (u = (b) => {
|
|
970
970
|
f && (n(!b || b.type ? new tt(null, e, f) : b), f.abort(), f = null);
|
|
971
971
|
}, e.cancelToken && e.cancelToken.subscribe(u), e.signal && (e.signal.aborted ? u() : e.signal.addEventListener("abort", u)));
|
|
972
|
-
const m = Ys(
|
|
972
|
+
const m = Ys(S);
|
|
973
973
|
if (m && we.protocols.indexOf(m) === -1) {
|
|
974
974
|
n(new F("Unsupported protocol " + m + ":", F.ERR_BAD_REQUEST, e));
|
|
975
975
|
return;
|
|
@@ -977,7 +977,7 @@ const Ks = typeof XMLHttpRequest < "u", Xs = Ks && function(e) {
|
|
|
977
977
|
f.send(o || null);
|
|
978
978
|
});
|
|
979
979
|
}, Vt = {
|
|
980
|
-
http:
|
|
980
|
+
http: _s,
|
|
981
981
|
xhr: Xs
|
|
982
982
|
};
|
|
983
983
|
h.forEach(Vt, (e, t) => {
|
|
@@ -1103,18 +1103,18 @@ function ze(e, t) {
|
|
|
1103
1103
|
headers: (d, l) => o(Kr(d), Kr(l), !0)
|
|
1104
1104
|
};
|
|
1105
1105
|
return h.forEach(Object.keys(Object.assign({}, e, t)), function(l) {
|
|
1106
|
-
const f = u[l] || o,
|
|
1107
|
-
h.isUndefined(
|
|
1106
|
+
const f = u[l] || o, S = f(e[l], t[l], l);
|
|
1107
|
+
h.isUndefined(S) && f !== c || (r[l] = S);
|
|
1108
1108
|
}), r;
|
|
1109
1109
|
}
|
|
1110
|
-
const Bn = "1.6.8",
|
|
1110
|
+
const Bn = "1.6.8", Sr = {};
|
|
1111
1111
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1112
|
-
|
|
1112
|
+
Sr[e] = function(n) {
|
|
1113
1113
|
return typeof n === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1114
1114
|
};
|
|
1115
1115
|
});
|
|
1116
1116
|
const Xr = {};
|
|
1117
|
-
|
|
1117
|
+
Sr.transitional = function(t, r, n) {
|
|
1118
1118
|
function o(s, i) {
|
|
1119
1119
|
return "[Axios v" + Bn + "] Transitional option '" + s + "'" + i + (n ? ". " + n : "");
|
|
1120
1120
|
}
|
|
@@ -1151,7 +1151,7 @@ function Qs(e, t, r) {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
const Lt = {
|
|
1153
1153
|
assertOptions: Qs,
|
|
1154
|
-
validators:
|
|
1154
|
+
validators: Sr
|
|
1155
1155
|
}, Re = Lt.validators;
|
|
1156
1156
|
class Ie {
|
|
1157
1157
|
constructor(t) {
|
|
@@ -1214,16 +1214,16 @@ class Ie {
|
|
|
1214
1214
|
this.interceptors.response.forEach(function(b) {
|
|
1215
1215
|
d.push(b.fulfilled, b.rejected);
|
|
1216
1216
|
});
|
|
1217
|
-
let l, f = 0,
|
|
1217
|
+
let l, f = 0, S;
|
|
1218
1218
|
if (!u) {
|
|
1219
1219
|
const m = [Jr.bind(this), void 0];
|
|
1220
|
-
for (m.unshift.apply(m, c), m.push.apply(m, d),
|
|
1220
|
+
for (m.unshift.apply(m, c), m.push.apply(m, d), S = m.length, l = Promise.resolve(r); f < S; )
|
|
1221
1221
|
l = l.then(m[f++], m[f++]);
|
|
1222
1222
|
return l;
|
|
1223
1223
|
}
|
|
1224
|
-
|
|
1224
|
+
S = c.length;
|
|
1225
1225
|
let P = r;
|
|
1226
|
-
for (f = 0; f <
|
|
1226
|
+
for (f = 0; f < S; ) {
|
|
1227
1227
|
const m = c[f++], b = c[f++];
|
|
1228
1228
|
try {
|
|
1229
1229
|
P = m(P);
|
|
@@ -1237,7 +1237,7 @@ class Ie {
|
|
|
1237
1237
|
} catch (m) {
|
|
1238
1238
|
return Promise.reject(m);
|
|
1239
1239
|
}
|
|
1240
|
-
for (f = 0,
|
|
1240
|
+
for (f = 0, S = d.length; f < S; )
|
|
1241
1241
|
l = l.then(d[f++], d[f++]);
|
|
1242
1242
|
return l;
|
|
1243
1243
|
}
|
|
@@ -1271,7 +1271,7 @@ h.forEach(["post", "put", "patch"], function(t) {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
Ie.prototype[t] = r(), Ie.prototype[t + "Form"] = r(!0);
|
|
1273
1273
|
});
|
|
1274
|
-
class
|
|
1274
|
+
class _r {
|
|
1275
1275
|
constructor(t) {
|
|
1276
1276
|
if (typeof t != "function")
|
|
1277
1277
|
throw new TypeError("executor must be a function.");
|
|
@@ -1331,7 +1331,7 @@ class Sr {
|
|
|
1331
1331
|
static source() {
|
|
1332
1332
|
let t;
|
|
1333
1333
|
return {
|
|
1334
|
-
token: new
|
|
1334
|
+
token: new _r(function(o) {
|
|
1335
1335
|
t = o;
|
|
1336
1336
|
}),
|
|
1337
1337
|
cancel: t
|
|
@@ -1415,7 +1415,7 @@ Object.entries(Tt).forEach(([e, t]) => {
|
|
|
1415
1415
|
Tt[t] = e;
|
|
1416
1416
|
});
|
|
1417
1417
|
function zn(e) {
|
|
1418
|
-
const t = new Ie(e), r =
|
|
1418
|
+
const t = new Ie(e), r = En(Ie.prototype.request, t);
|
|
1419
1419
|
return h.extend(r, Ie.prototype, t, { allOwnKeys: !0 }), h.extend(r, t, null, { allOwnKeys: !0 }), r.create = function(o) {
|
|
1420
1420
|
return zn(ze(e, o));
|
|
1421
1421
|
}, r;
|
|
@@ -1423,7 +1423,7 @@ function zn(e) {
|
|
|
1423
1423
|
const H = zn(et);
|
|
1424
1424
|
H.Axios = Ie;
|
|
1425
1425
|
H.CanceledError = tt;
|
|
1426
|
-
H.CancelToken =
|
|
1426
|
+
H.CancelToken = _r;
|
|
1427
1427
|
H.isCancel = Fn;
|
|
1428
1428
|
H.VERSION = Bn;
|
|
1429
1429
|
H.toFormData = bt;
|
|
@@ -1503,13 +1503,10 @@ var Jt;
|
|
|
1503
1503
|
(function(e) {
|
|
1504
1504
|
e[e.ChoosePic = -3] = "ChoosePic", e[e.CostPoint = -4] = "CostPoint", e[e.AddAction = -5] = "AddAction", e[e.CloseWindow = -6] = "CloseWindow", e[e.SendRequest = -7] = "SendRequest", e[e.UploadFileByPath = -8] = "UploadFileByPath", e[e.GetInitData = -9] = "GetInitData";
|
|
1505
1505
|
})(Jt || (Jt = {}));
|
|
1506
|
-
const ai =
|
|
1507
|
-
__proto__: null,
|
|
1508
|
-
default: ai
|
|
1509
|
-
}, Symbol.toStringTag, { value: "Module" })), ui = (e) => e >= 1073741824 ? (e / 1073741824).toFixed(2) + " GB" : e >= 1048576 ? (e / 1048576).toFixed(2) + " MB" : e >= 1024 ? (e / 1024).toFixed(2) + " KB" : e + " B", li = (e, t, r) => {
|
|
1506
|
+
const ai = (e) => e >= 1073741824 ? (e / 1073741824).toFixed(2) + " GB" : e >= 1048576 ? (e / 1048576).toFixed(2) + " MB" : e >= 1024 ? (e / 1024).toFixed(2) + " KB" : e + " B", ci = (e, t, r) => {
|
|
1510
1507
|
let n = e.path, o = Ke.LocalPath;
|
|
1511
1508
|
const s = window.URL.createObjectURL(e);
|
|
1512
|
-
return (t || !n) && (n =
|
|
1509
|
+
return (t || !n) && (n = s, o = Ke.ObjectUrl), {
|
|
1513
1510
|
path: n,
|
|
1514
1511
|
name: e.name,
|
|
1515
1512
|
source: o,
|
|
@@ -1519,7 +1516,7 @@ const ai = {}, ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1519
1516
|
object_url: s,
|
|
1520
1517
|
uid: ii()
|
|
1521
1518
|
};
|
|
1522
|
-
},
|
|
1519
|
+
}, ui = (e) => new Date(e * 1e3).toISOString().substring(11, 19), li = async () => {
|
|
1523
1520
|
const e = await Wn(), t = e.token;
|
|
1524
1521
|
return {
|
|
1525
1522
|
cos: new Uo({
|
|
@@ -1538,8 +1535,8 @@ const ai = {}, ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1538
1535
|
bucket: e.bucket,
|
|
1539
1536
|
region: e.region
|
|
1540
1537
|
};
|
|
1541
|
-
},
|
|
1542
|
-
const e = await
|
|
1538
|
+
}, fi = async () => {
|
|
1539
|
+
const e = await Pi(), t = e.token;
|
|
1543
1540
|
return {
|
|
1544
1541
|
oss: new Bo({
|
|
1545
1542
|
region: e.region,
|
|
@@ -1559,19 +1556,19 @@ const ai = {}, ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1559
1556
|
n && t.push(`${r}=${n}`);
|
|
1560
1557
|
}
|
|
1561
1558
|
return t.join("&");
|
|
1562
|
-
},
|
|
1559
|
+
}, di = /\$(.*?)\$/g, hi = (e, t) => {
|
|
1563
1560
|
let r;
|
|
1564
1561
|
const n = [];
|
|
1565
|
-
for (; (r =
|
|
1562
|
+
for (; (r = di.exec(e)) !== null; )
|
|
1566
1563
|
r && r.length > 0 && n.push(r[1]);
|
|
1567
1564
|
return n.map((o) => {
|
|
1568
1565
|
const s = t[o];
|
|
1569
1566
|
s && (e = e.replace(`$${o}$`, o.split(".").length == 2 ? s[o.split(".")[1]] : s));
|
|
1570
1567
|
}), e;
|
|
1571
|
-
},
|
|
1568
|
+
}, pi = (e) => Object.keys(e).filter((t) => e[t]).map((t) => {
|
|
1572
1569
|
let r = e[t];
|
|
1573
1570
|
return ["string", "number", "boolean"].includes(typeof r) ? r = String(r) : r = JSON.stringify(r), `${t}=${encodeURIComponent(r)}`;
|
|
1574
|
-
}).join("&"),
|
|
1571
|
+
}).join("&"), mi = (e) => new Promise((t, r) => {
|
|
1575
1572
|
const n = new XMLHttpRequest();
|
|
1576
1573
|
n.open("get", e), n.responseType = "blob", n.send(), n.onload = function() {
|
|
1577
1574
|
(this.status === 200 || this.status === 304) && (Vn(URL.createObjectURL(this.response)), t());
|
|
@@ -1582,7 +1579,7 @@ const ai = {}, ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1582
1579
|
var n;
|
|
1583
1580
|
const r = document.createElement("a");
|
|
1584
1581
|
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);
|
|
1585
|
-
}, Y = process.env.NODE_ENV == "production" ? "https://api.zyjj.cc/api/v1" : "http://127.0.0.1:3000/api/v1",
|
|
1582
|
+
}, 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"), Ai = (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);
|
|
1586
1583
|
var Kt;
|
|
1587
1584
|
(function(e) {
|
|
1588
1585
|
e[e.Task = 0] = "Task", e[e.Lab = 1] = "Lab", e[e.Flow = 2] = "Flow";
|
|
@@ -1611,8 +1608,8 @@ var tr;
|
|
|
1611
1608
|
(function(e) {
|
|
1612
1609
|
e[e.Input = 0] = "Input", e[e.Select = 1] = "Select", e[e.TextArea = 2] = "TextArea", e[e.FileUpload = 3] = "FileUpload", e[e.Slider = 4] = "Slider", e[e.Audio = 5] = "Audio", e[e.Number = 6] = "Number", e[e.ImageList = 7] = "ImageList", e[e.Image = 8] = "Image", e[e.Alert = 9] = "Alert", e[e.Video = 10] = "Video", e[e.MarkDown = 11] = "MarkDown";
|
|
1613
1610
|
})(tr || (tr = {}));
|
|
1614
|
-
var
|
|
1615
|
-
function
|
|
1611
|
+
var Ii = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1612
|
+
function $i(e) {
|
|
1616
1613
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1617
1614
|
}
|
|
1618
1615
|
var rr = { exports: {} }, Ge = {};
|
|
@@ -1626,16 +1623,16 @@ var rr = { exports: {} }, Ge = {};
|
|
|
1626
1623
|
* LICENSE file in the root directory of this source tree.
|
|
1627
1624
|
*/
|
|
1628
1625
|
var Qr;
|
|
1629
|
-
function
|
|
1626
|
+
function Fi() {
|
|
1630
1627
|
if (Qr) return Ge;
|
|
1631
1628
|
Qr = 1;
|
|
1632
1629
|
var e = wn, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1633
1630
|
function i(c, u, d) {
|
|
1634
|
-
var l, f = {},
|
|
1635
|
-
d !== void 0 && (
|
|
1631
|
+
var l, f = {}, S = null, P = null;
|
|
1632
|
+
d !== void 0 && (S = "" + d), u.key !== void 0 && (S = "" + u.key), u.ref !== void 0 && (P = u.ref);
|
|
1636
1633
|
for (l in u) n.call(u, l) && !s.hasOwnProperty(l) && (f[l] = u[l]);
|
|
1637
1634
|
if (c && c.defaultProps) for (l in u = c.defaultProps, u) f[l] === void 0 && (f[l] = u[l]);
|
|
1638
|
-
return { $$typeof: t, type: c, key:
|
|
1635
|
+
return { $$typeof: t, type: c, key: S, ref: P, props: f, _owner: o.current };
|
|
1639
1636
|
}
|
|
1640
1637
|
return Ge.Fragment = r, Ge.jsx = i, Ge.jsxs = i, Ge;
|
|
1641
1638
|
}
|
|
@@ -1650,9 +1647,9 @@ var Ye = {};
|
|
|
1650
1647
|
* LICENSE file in the root directory of this source tree.
|
|
1651
1648
|
*/
|
|
1652
1649
|
var en;
|
|
1653
|
-
function
|
|
1650
|
+
function Mi() {
|
|
1654
1651
|
return en || (en = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1655
|
-
var e = wn, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"),
|
|
1652
|
+
var e = wn, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), m = Symbol.iterator, b = "@@iterator";
|
|
1656
1653
|
function N(a) {
|
|
1657
1654
|
if (a === null || typeof a != "object")
|
|
1658
1655
|
return null;
|
|
@@ -1680,7 +1677,7 @@ function Bi() {
|
|
|
1680
1677
|
var I = !1, V = !1, B = !1, Z = !1, A = !1, ee;
|
|
1681
1678
|
ee = Symbol.for("react.module.reference");
|
|
1682
1679
|
function T(a) {
|
|
1683
|
-
return !!(typeof a == "string" || typeof a == "function" || a === n || a === s || A || a === o || a === d || a === l || Z || a === P || I || V || B || typeof a == "object" && a !== null && (a.$$typeof ===
|
|
1680
|
+
return !!(typeof a == "string" || typeof a == "function" || a === n || a === s || A || a === o || a === d || a === l || Z || a === P || I || 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
|
|
1684
1681
|
// types supported by any Flight configuration anywhere since
|
|
1685
1682
|
// we don't know which Flight build this will end up being used
|
|
1686
1683
|
// with.
|
|
@@ -1730,7 +1727,7 @@ function Bi() {
|
|
|
1730
1727
|
case f:
|
|
1731
1728
|
var v = a.displayName || null;
|
|
1732
1729
|
return v !== null ? v : le(a.type) || "Memo";
|
|
1733
|
-
case
|
|
1730
|
+
case S: {
|
|
1734
1731
|
var z = a, L = z._payload, $ = z._init;
|
|
1735
1732
|
try {
|
|
1736
1733
|
return le($(L));
|
|
@@ -1741,14 +1738,14 @@ function Bi() {
|
|
|
1741
1738
|
}
|
|
1742
1739
|
return null;
|
|
1743
1740
|
}
|
|
1744
|
-
var O = Object.assign, w = 0, y,
|
|
1741
|
+
var O = Object.assign, w = 0, y, _, E, R, C, q, W;
|
|
1745
1742
|
function J() {
|
|
1746
1743
|
}
|
|
1747
1744
|
J.__reactDisabledLog = !0;
|
|
1748
1745
|
function re() {
|
|
1749
1746
|
{
|
|
1750
1747
|
if (w === 0) {
|
|
1751
|
-
y = console.log,
|
|
1748
|
+
y = console.log, _ = console.info, E = console.warn, R = console.error, C = console.group, q = console.groupCollapsed, W = console.groupEnd;
|
|
1752
1749
|
var a = {
|
|
1753
1750
|
configurable: !0,
|
|
1754
1751
|
enumerable: !0,
|
|
@@ -1781,10 +1778,10 @@ function Bi() {
|
|
|
1781
1778
|
value: y
|
|
1782
1779
|
}),
|
|
1783
1780
|
info: O({}, a, {
|
|
1784
|
-
value:
|
|
1781
|
+
value: _
|
|
1785
1782
|
}),
|
|
1786
1783
|
warn: O({}, a, {
|
|
1787
|
-
value:
|
|
1784
|
+
value: E
|
|
1788
1785
|
}),
|
|
1789
1786
|
error: O({}, a, {
|
|
1790
1787
|
value: R
|
|
@@ -1848,29 +1845,29 @@ function Bi() {
|
|
|
1848
1845
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1849
1846
|
try {
|
|
1850
1847
|
Reflect.construct($, []);
|
|
1851
|
-
} catch (
|
|
1852
|
-
v =
|
|
1848
|
+
} catch (Se) {
|
|
1849
|
+
v = Se;
|
|
1853
1850
|
}
|
|
1854
1851
|
Reflect.construct(a, [], $);
|
|
1855
1852
|
} else {
|
|
1856
1853
|
try {
|
|
1857
1854
|
$.call();
|
|
1858
|
-
} catch (
|
|
1859
|
-
v =
|
|
1855
|
+
} catch (Se) {
|
|
1856
|
+
v = Se;
|
|
1860
1857
|
}
|
|
1861
1858
|
a.call($.prototype);
|
|
1862
1859
|
}
|
|
1863
1860
|
} else {
|
|
1864
1861
|
try {
|
|
1865
1862
|
throw Error();
|
|
1866
|
-
} catch (
|
|
1867
|
-
v =
|
|
1863
|
+
} catch (Se) {
|
|
1864
|
+
v = Se;
|
|
1868
1865
|
}
|
|
1869
1866
|
a();
|
|
1870
1867
|
}
|
|
1871
|
-
} catch (
|
|
1872
|
-
if (
|
|
1873
|
-
for (var k =
|
|
1868
|
+
} catch (Se) {
|
|
1869
|
+
if (Se && v && typeof Se.stack == "string") {
|
|
1870
|
+
for (var k = Se.stack.split(`
|
|
1874
1871
|
`), oe = v.stack.split(`
|
|
1875
1872
|
`), K = k.length - 1, Q = oe.length - 1; K >= 1 && Q >= 0 && k[K] !== oe[Q]; )
|
|
1876
1873
|
Q--;
|
|
@@ -1919,7 +1916,7 @@ function Bi() {
|
|
|
1919
1916
|
return Me(a.render);
|
|
1920
1917
|
case f:
|
|
1921
1918
|
return nt(a.type, p, g);
|
|
1922
|
-
case
|
|
1919
|
+
case S: {
|
|
1923
1920
|
var v = a, z = v._payload, L = v._init;
|
|
1924
1921
|
try {
|
|
1925
1922
|
return nt(L(z), p, g);
|
|
@@ -1995,7 +1992,7 @@ function Bi() {
|
|
|
1995
1992
|
}
|
|
1996
1993
|
return a.ref !== void 0;
|
|
1997
1994
|
}
|
|
1998
|
-
function
|
|
1995
|
+
function Eo(a) {
|
|
1999
1996
|
if (ot.call(a, "key")) {
|
|
2000
1997
|
var p = Object.getOwnPropertyDescriptor(a, "key").get;
|
|
2001
1998
|
if (p && p.isReactWarning)
|
|
@@ -2003,13 +2000,13 @@ function Bi() {
|
|
|
2003
2000
|
}
|
|
2004
2001
|
return a.key !== void 0;
|
|
2005
2002
|
}
|
|
2006
|
-
function
|
|
2003
|
+
function So(a, p) {
|
|
2007
2004
|
if (typeof a.ref == "string" && Te.current && p && Te.current.stateNode !== p) {
|
|
2008
2005
|
var g = le(Te.current.type);
|
|
2009
2006
|
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);
|
|
2010
2007
|
}
|
|
2011
2008
|
}
|
|
2012
|
-
function
|
|
2009
|
+
function _o(a, p) {
|
|
2013
2010
|
{
|
|
2014
2011
|
var g = function() {
|
|
2015
2012
|
kr || (kr = !0, j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
|
|
@@ -2063,7 +2060,7 @@ function Bi() {
|
|
|
2063
2060
|
function Ro(a, p, g, v, z) {
|
|
2064
2061
|
{
|
|
2065
2062
|
var L, $ = {}, k = null, oe = null;
|
|
2066
|
-
g !== void 0 && (Nr(g), k = "" + g),
|
|
2063
|
+
g !== void 0 && (Nr(g), k = "" + g), Eo(p) && (Nr(p.key), k = "" + p.key), wo(p) && (oe = p.ref, So(p, z));
|
|
2067
2064
|
for (L in p)
|
|
2068
2065
|
ot.call(p, L) && !bo.hasOwnProperty(L) && ($[L] = p[L]);
|
|
2069
2066
|
if (a && a.defaultProps) {
|
|
@@ -2073,7 +2070,7 @@ function Bi() {
|
|
|
2073
2070
|
}
|
|
2074
2071
|
if (k || oe) {
|
|
2075
2072
|
var Q = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
|
|
2076
|
-
k &&
|
|
2073
|
+
k && _o($, Q), oe && Oo($, Q);
|
|
2077
2074
|
}
|
|
2078
2075
|
return vo(a, k, oe, z, v, Te.current, $);
|
|
2079
2076
|
}
|
|
@@ -2228,48 +2225,48 @@ Check the top-level render call using <` + g + ">.");
|
|
|
2228
2225
|
Ye.Fragment = n, Ye.jsx = ko, Ye.jsxs = Ao;
|
|
2229
2226
|
}()), Ye;
|
|
2230
2227
|
}
|
|
2231
|
-
process.env.NODE_ENV === "production" ? rr.exports =
|
|
2228
|
+
process.env.NODE_ENV === "production" ? rr.exports = Fi() : rr.exports = Mi();
|
|
2232
2229
|
var D = rr.exports, Gn = { exports: {} };
|
|
2233
2230
|
(function(e, t) {
|
|
2234
2231
|
(function(r, n) {
|
|
2235
2232
|
e.exports = n();
|
|
2236
|
-
})(
|
|
2237
|
-
var r = 1e3, n = 6e4, o = 36e5, s = "millisecond", i = "second", c = "minute", u = "hour", d = "day", l = "week", f = "month",
|
|
2233
|
+
})(Ii, function() {
|
|
2234
|
+
var r = 1e3, n = 6e4, o = 36e5, s = "millisecond", i = "second", c = "minute", u = "hour", d = "day", l = "week", f = "month", S = "quarter", P = "year", m = "date", b = "Invalid Date", N = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, M = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, j = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(O) {
|
|
2238
2235
|
var w = ["th", "st", "nd", "rd"], y = O % 100;
|
|
2239
2236
|
return "[" + O + (w[(y - 20) % 10] || w[y] || w[0]) + "]";
|
|
2240
2237
|
} }, x = function(O, w, y) {
|
|
2241
|
-
var
|
|
2242
|
-
return !
|
|
2238
|
+
var _ = String(O);
|
|
2239
|
+
return !_ || _.length >= w ? O : "" + Array(w + 1 - _.length).join(y) + O;
|
|
2243
2240
|
}, I = { s: x, z: function(O) {
|
|
2244
|
-
var w = -O.utcOffset(), y = Math.abs(w),
|
|
2245
|
-
return (w <= 0 ? "+" : "-") + x(
|
|
2241
|
+
var w = -O.utcOffset(), y = Math.abs(w), _ = Math.floor(y / 60), E = y % 60;
|
|
2242
|
+
return (w <= 0 ? "+" : "-") + x(_, 2, "0") + ":" + x(E, 2, "0");
|
|
2246
2243
|
}, m: function O(w, y) {
|
|
2247
2244
|
if (w.date() < y.date()) return -O(y, w);
|
|
2248
|
-
var
|
|
2249
|
-
return +(-(
|
|
2245
|
+
var _ = 12 * (y.year() - w.year()) + (y.month() - w.month()), E = w.clone().add(_, f), R = y - E < 0, C = w.clone().add(_ + (R ? -1 : 1), f);
|
|
2246
|
+
return +(-(_ + (y - E) / (R ? E - C : C - E)) || 0);
|
|
2250
2247
|
}, a: function(O) {
|
|
2251
2248
|
return O < 0 ? Math.ceil(O) || 0 : Math.floor(O);
|
|
2252
2249
|
}, p: function(O) {
|
|
2253
|
-
return { M: f, y: P, w: l, d, D: m, h: u, m: c, s: i, ms: s, Q:
|
|
2250
|
+
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$/, "");
|
|
2254
2251
|
}, u: function(O) {
|
|
2255
2252
|
return O === void 0;
|
|
2256
2253
|
} }, V = "en", B = {};
|
|
2257
2254
|
B[V] = j;
|
|
2258
2255
|
var Z = "$isDayjsObject", A = function(O) {
|
|
2259
2256
|
return O instanceof xe || !(!O || !O[Z]);
|
|
2260
|
-
}, ee = function O(w, y,
|
|
2261
|
-
var
|
|
2257
|
+
}, ee = function O(w, y, _) {
|
|
2258
|
+
var E;
|
|
2262
2259
|
if (!w) return V;
|
|
2263
2260
|
if (typeof w == "string") {
|
|
2264
2261
|
var R = w.toLowerCase();
|
|
2265
|
-
B[R] && (
|
|
2262
|
+
B[R] && (E = R), y && (B[R] = y, E = R);
|
|
2266
2263
|
var C = w.split("-");
|
|
2267
|
-
if (!
|
|
2264
|
+
if (!E && C.length > 1) return O(C[0]);
|
|
2268
2265
|
} else {
|
|
2269
2266
|
var q = w.name;
|
|
2270
|
-
B[q] = w,
|
|
2267
|
+
B[q] = w, E = q;
|
|
2271
2268
|
}
|
|
2272
|
-
return !
|
|
2269
|
+
return !_ && E && (V = E), E || !_ && V;
|
|
2273
2270
|
}, T = function(O, w) {
|
|
2274
2271
|
if (A(O)) return O.clone();
|
|
2275
2272
|
var y = typeof w == "object" ? w : {};
|
|
@@ -2284,19 +2281,19 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2284
2281
|
}
|
|
2285
2282
|
var w = O.prototype;
|
|
2286
2283
|
return w.parse = function(y) {
|
|
2287
|
-
this.$d = function(
|
|
2288
|
-
var
|
|
2289
|
-
if (
|
|
2290
|
-
if (U.u(
|
|
2291
|
-
if (
|
|
2292
|
-
if (typeof
|
|
2293
|
-
var C =
|
|
2284
|
+
this.$d = function(_) {
|
|
2285
|
+
var E = _.date, R = _.utc;
|
|
2286
|
+
if (E === null) return /* @__PURE__ */ new Date(NaN);
|
|
2287
|
+
if (U.u(E)) return /* @__PURE__ */ new Date();
|
|
2288
|
+
if (E instanceof Date) return new Date(E);
|
|
2289
|
+
if (typeof E == "string" && !/Z$/i.test(E)) {
|
|
2290
|
+
var C = E.match(N);
|
|
2294
2291
|
if (C) {
|
|
2295
2292
|
var q = C[2] - 1 || 0, W = (C[7] || "0").substring(0, 3);
|
|
2296
2293
|
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);
|
|
2297
2294
|
}
|
|
2298
2295
|
}
|
|
2299
|
-
return new Date(
|
|
2296
|
+
return new Date(E);
|
|
2300
2297
|
}(y), this.init();
|
|
2301
2298
|
}, w.init = function() {
|
|
2302
2299
|
var y = this.$d;
|
|
@@ -2305,25 +2302,25 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2305
2302
|
return U;
|
|
2306
2303
|
}, w.isValid = function() {
|
|
2307
2304
|
return this.$d.toString() !== b;
|
|
2308
|
-
}, w.isSame = function(y,
|
|
2309
|
-
var
|
|
2310
|
-
return this.startOf(
|
|
2311
|
-
}, w.isAfter = function(y,
|
|
2312
|
-
return T(y) < this.startOf(
|
|
2313
|
-
}, w.isBefore = function(y,
|
|
2314
|
-
return this.endOf(
|
|
2315
|
-
}, w.$g = function(y,
|
|
2316
|
-
return U.u(y) ? this[
|
|
2305
|
+
}, w.isSame = function(y, _) {
|
|
2306
|
+
var E = T(y);
|
|
2307
|
+
return this.startOf(_) <= E && E <= this.endOf(_);
|
|
2308
|
+
}, w.isAfter = function(y, _) {
|
|
2309
|
+
return T(y) < this.startOf(_);
|
|
2310
|
+
}, w.isBefore = function(y, _) {
|
|
2311
|
+
return this.endOf(_) < T(y);
|
|
2312
|
+
}, w.$g = function(y, _, E) {
|
|
2313
|
+
return U.u(y) ? this[_] : this.set(E, y);
|
|
2317
2314
|
}, w.unix = function() {
|
|
2318
2315
|
return Math.floor(this.valueOf() / 1e3);
|
|
2319
2316
|
}, w.valueOf = function() {
|
|
2320
2317
|
return this.$d.getTime();
|
|
2321
|
-
}, w.startOf = function(y,
|
|
2322
|
-
var
|
|
2323
|
-
var be = U.w(
|
|
2318
|
+
}, w.startOf = function(y, _) {
|
|
2319
|
+
var E = this, R = !!U.u(_) || _, C = U.p(y), q = function(me, te) {
|
|
2320
|
+
var be = U.w(E.$u ? Date.UTC(E.$y, te, me) : new Date(E.$y, te, me), E);
|
|
2324
2321
|
return R ? be : be.endOf(d);
|
|
2325
2322
|
}, W = function(me, te) {
|
|
2326
|
-
return U.w(
|
|
2323
|
+
return U.w(E.toDate()[me].apply(E.toDate("s"), (R ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), E);
|
|
2327
2324
|
}, J = this.$W, re = this.$M, ie = this.$D, ye = "set" + (this.$u ? "UTC" : "");
|
|
2328
2325
|
switch (C) {
|
|
2329
2326
|
case P:
|
|
@@ -2347,21 +2344,21 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2347
2344
|
}
|
|
2348
2345
|
}, w.endOf = function(y) {
|
|
2349
2346
|
return this.startOf(y, !1);
|
|
2350
|
-
}, w.$set = function(y,
|
|
2351
|
-
var
|
|
2347
|
+
}, w.$set = function(y, _) {
|
|
2348
|
+
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) : _;
|
|
2352
2349
|
if (R === f || R === P) {
|
|
2353
2350
|
var J = this.clone().set(m, 1);
|
|
2354
2351
|
J.$d[q](W), J.init(), this.$d = J.set(m, Math.min(this.$D, J.daysInMonth())).$d;
|
|
2355
2352
|
} else q && this.$d[q](W);
|
|
2356
2353
|
return this.init(), this;
|
|
2357
|
-
}, w.set = function(y,
|
|
2358
|
-
return this.clone().$set(y,
|
|
2354
|
+
}, w.set = function(y, _) {
|
|
2355
|
+
return this.clone().$set(y, _);
|
|
2359
2356
|
}, w.get = function(y) {
|
|
2360
2357
|
return this[U.p(y)]();
|
|
2361
|
-
}, w.add = function(y,
|
|
2362
|
-
var
|
|
2358
|
+
}, w.add = function(y, _) {
|
|
2359
|
+
var E, R = this;
|
|
2363
2360
|
y = Number(y);
|
|
2364
|
-
var C = U.p(
|
|
2361
|
+
var C = U.p(_), q = function(re) {
|
|
2365
2362
|
var ie = T(R);
|
|
2366
2363
|
return U.w(ie.date(ie.date() + Math.round(re * y)), R);
|
|
2367
2364
|
};
|
|
@@ -2369,15 +2366,15 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2369
2366
|
if (C === P) return this.set(P, this.$y + y);
|
|
2370
2367
|
if (C === d) return q(1);
|
|
2371
2368
|
if (C === l) return q(7);
|
|
2372
|
-
var W = (
|
|
2369
|
+
var W = (E = {}, E[c] = n, E[u] = o, E[i] = r, E)[C] || 1, J = this.$d.getTime() + y * W;
|
|
2373
2370
|
return U.w(J, this);
|
|
2374
|
-
}, w.subtract = function(y,
|
|
2375
|
-
return this.add(-1 * y,
|
|
2371
|
+
}, w.subtract = function(y, _) {
|
|
2372
|
+
return this.add(-1 * y, _);
|
|
2376
2373
|
}, w.format = function(y) {
|
|
2377
|
-
var
|
|
2378
|
-
if (!this.isValid()) return
|
|
2379
|
-
var R = y || "YYYY-MM-DDTHH:mm:ssZ", C = U.z(this), q = this.$H, W = this.$m, J = this.$M, re =
|
|
2380
|
-
return te && (te[be] || te(
|
|
2374
|
+
var _ = this, E = this.$locale();
|
|
2375
|
+
if (!this.isValid()) return E.invalidDate || b;
|
|
2376
|
+
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) {
|
|
2377
|
+
return te && (te[be] || te(_, R)) || ve[be].slice(0, Me);
|
|
2381
2378
|
}, ge = function(te) {
|
|
2382
2379
|
return U.s(q % 12 || 12, te, "0");
|
|
2383
2380
|
}, me = ye || function(te, be, ve) {
|
|
@@ -2388,29 +2385,29 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2388
2385
|
return be || function(ve) {
|
|
2389
2386
|
switch (ve) {
|
|
2390
2387
|
case "YY":
|
|
2391
|
-
return String(
|
|
2388
|
+
return String(_.$y).slice(-2);
|
|
2392
2389
|
case "YYYY":
|
|
2393
|
-
return U.s(
|
|
2390
|
+
return U.s(_.$y, 4, "0");
|
|
2394
2391
|
case "M":
|
|
2395
2392
|
return J + 1;
|
|
2396
2393
|
case "MM":
|
|
2397
2394
|
return U.s(J + 1, 2, "0");
|
|
2398
2395
|
case "MMM":
|
|
2399
|
-
return pe(
|
|
2396
|
+
return pe(E.monthsShort, J, ie, 3);
|
|
2400
2397
|
case "MMMM":
|
|
2401
2398
|
return pe(ie, J);
|
|
2402
2399
|
case "D":
|
|
2403
|
-
return
|
|
2400
|
+
return _.$D;
|
|
2404
2401
|
case "DD":
|
|
2405
|
-
return U.s(
|
|
2402
|
+
return U.s(_.$D, 2, "0");
|
|
2406
2403
|
case "d":
|
|
2407
|
-
return String(
|
|
2404
|
+
return String(_.$W);
|
|
2408
2405
|
case "dd":
|
|
2409
|
-
return pe(
|
|
2406
|
+
return pe(E.weekdaysMin, _.$W, re, 2);
|
|
2410
2407
|
case "ddd":
|
|
2411
|
-
return pe(
|
|
2408
|
+
return pe(E.weekdaysShort, _.$W, re, 3);
|
|
2412
2409
|
case "dddd":
|
|
2413
|
-
return re[
|
|
2410
|
+
return re[_.$W];
|
|
2414
2411
|
case "H":
|
|
2415
2412
|
return String(q);
|
|
2416
2413
|
case "HH":
|
|
@@ -2428,11 +2425,11 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2428
2425
|
case "mm":
|
|
2429
2426
|
return U.s(W, 2, "0");
|
|
2430
2427
|
case "s":
|
|
2431
|
-
return String(
|
|
2428
|
+
return String(_.$s);
|
|
2432
2429
|
case "ss":
|
|
2433
|
-
return U.s(
|
|
2430
|
+
return U.s(_.$s, 2, "0");
|
|
2434
2431
|
case "SSS":
|
|
2435
|
-
return U.s(
|
|
2432
|
+
return U.s(_.$ms, 3, "0");
|
|
2436
2433
|
case "Z":
|
|
2437
2434
|
return C;
|
|
2438
2435
|
}
|
|
@@ -2441,8 +2438,8 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2441
2438
|
});
|
|
2442
2439
|
}, w.utcOffset = function() {
|
|
2443
2440
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
2444
|
-
}, w.diff = function(y,
|
|
2445
|
-
var R, C = this, q = U.p(
|
|
2441
|
+
}, w.diff = function(y, _, E) {
|
|
2442
|
+
var R, C = this, q = U.p(_), W = T(y), J = (W.utcOffset() - this.utcOffset()) * n, re = this - W, ie = function() {
|
|
2446
2443
|
return U.m(C, W);
|
|
2447
2444
|
};
|
|
2448
2445
|
switch (q) {
|
|
@@ -2452,7 +2449,7 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2452
2449
|
case f:
|
|
2453
2450
|
R = ie();
|
|
2454
2451
|
break;
|
|
2455
|
-
case
|
|
2452
|
+
case S:
|
|
2456
2453
|
R = ie() / 3;
|
|
2457
2454
|
break;
|
|
2458
2455
|
case l:
|
|
@@ -2473,15 +2470,15 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2473
2470
|
default:
|
|
2474
2471
|
R = re;
|
|
2475
2472
|
}
|
|
2476
|
-
return
|
|
2473
|
+
return E ? R : U.a(R);
|
|
2477
2474
|
}, w.daysInMonth = function() {
|
|
2478
2475
|
return this.endOf(f).$D;
|
|
2479
2476
|
}, w.$locale = function() {
|
|
2480
2477
|
return B[this.$L];
|
|
2481
|
-
}, w.locale = function(y,
|
|
2478
|
+
}, w.locale = function(y, _) {
|
|
2482
2479
|
if (!y) return this.$L;
|
|
2483
|
-
var
|
|
2484
|
-
return R && (
|
|
2480
|
+
var E = this.clone(), R = ee(y, _, !0);
|
|
2481
|
+
return R && (E.$L = R), E;
|
|
2485
2482
|
}, w.clone = function() {
|
|
2486
2483
|
return U.w(this.$d, this);
|
|
2487
2484
|
}, w.toDate = function() {
|
|
@@ -2505,9 +2502,9 @@ var D = rr.exports, Gn = { exports: {} };
|
|
|
2505
2502
|
}, T.en = B[V], T.Ls = B, T.p = {}, T;
|
|
2506
2503
|
});
|
|
2507
2504
|
})(Gn);
|
|
2508
|
-
var
|
|
2509
|
-
const
|
|
2510
|
-
function
|
|
2505
|
+
var Ui = Gn.exports;
|
|
2506
|
+
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 });
|
|
2507
|
+
function Li(e) {
|
|
2511
2508
|
if (typeof e != "object" || e === null)
|
|
2512
2509
|
return !1;
|
|
2513
2510
|
let t = e;
|
|
@@ -2515,10 +2512,10 @@ function Wi(e) {
|
|
|
2515
2512
|
t = Object.getPrototypeOf(t);
|
|
2516
2513
|
return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
|
|
2517
2514
|
}
|
|
2518
|
-
function
|
|
2519
|
-
return
|
|
2515
|
+
function Ti(e) {
|
|
2516
|
+
return Li(e) && "type" in e && typeof e.type == "string";
|
|
2520
2517
|
}
|
|
2521
|
-
var Yn = Symbol.for("immer-nothing"), tn = Symbol.for("immer-draftable"), ce = Symbol.for("immer-state"),
|
|
2518
|
+
var Yn = Symbol.for("immer-nothing"), tn = Symbol.for("immer-draftable"), ce = Symbol.for("immer-state"), Wi = process.env.NODE_ENV !== "production" ? [
|
|
2522
2519
|
// All error codes, starting by 0:
|
|
2523
2520
|
function(e) {
|
|
2524
2521
|
return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
|
|
@@ -2551,7 +2548,7 @@ var Yn = Symbol.for("immer-nothing"), tn = Symbol.for("immer-draftable"), ce = S
|
|
|
2551
2548
|
] : [];
|
|
2552
2549
|
function ae(e, ...t) {
|
|
2553
2550
|
if (process.env.NODE_ENV !== "production") {
|
|
2554
|
-
const r =
|
|
2551
|
+
const r = Wi[e], n = typeof r == "function" ? r.apply(null, t) : r;
|
|
2555
2552
|
throw new Error(`[Immer] ${n}`);
|
|
2556
2553
|
}
|
|
2557
2554
|
throw new Error(
|
|
@@ -2564,9 +2561,9 @@ function Pe(e) {
|
|
|
2564
2561
|
}
|
|
2565
2562
|
function Oe(e) {
|
|
2566
2563
|
var t;
|
|
2567
|
-
return e ? Jn(e) || Array.isArray(e) || !!e[tn] || !!((t = e.constructor) != null && t[tn]) ||
|
|
2564
|
+
return e ? Jn(e) || Array.isArray(e) || !!e[tn] || !!((t = e.constructor) != null && t[tn]) || Et(e) || St(e) : !1;
|
|
2568
2565
|
}
|
|
2569
|
-
var
|
|
2566
|
+
var Hi = Object.prototype.constructor.toString();
|
|
2570
2567
|
function Jn(e) {
|
|
2571
2568
|
if (!e || typeof e != "object")
|
|
2572
2569
|
return !1;
|
|
@@ -2574,7 +2571,7 @@ function Jn(e) {
|
|
|
2574
2571
|
if (t === null)
|
|
2575
2572
|
return !0;
|
|
2576
2573
|
const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
|
|
2577
|
-
return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) ===
|
|
2574
|
+
return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Hi;
|
|
2578
2575
|
}
|
|
2579
2576
|
function dt(e, t) {
|
|
2580
2577
|
wt(e) === 0 ? Reflect.ownKeys(e).forEach((r) => {
|
|
@@ -2583,7 +2580,7 @@ function dt(e, t) {
|
|
|
2583
2580
|
}
|
|
2584
2581
|
function wt(e) {
|
|
2585
2582
|
const t = e[ce];
|
|
2586
|
-
return t ? t.type_ : Array.isArray(e) ? 1 :
|
|
2583
|
+
return t ? t.type_ : Array.isArray(e) ? 1 : Et(e) ? 2 : St(e) ? 3 : 0;
|
|
2587
2584
|
}
|
|
2588
2585
|
function nr(e, t) {
|
|
2589
2586
|
return wt(e) === 2 ? e.has(t) : Object.prototype.hasOwnProperty.call(e, t);
|
|
@@ -2592,22 +2589,22 @@ function Kn(e, t, r) {
|
|
|
2592
2589
|
const n = wt(e);
|
|
2593
2590
|
n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
|
|
2594
2591
|
}
|
|
2595
|
-
function
|
|
2592
|
+
function Gi(e, t) {
|
|
2596
2593
|
return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
|
|
2597
2594
|
}
|
|
2598
|
-
function
|
|
2595
|
+
function Et(e) {
|
|
2599
2596
|
return e instanceof Map;
|
|
2600
2597
|
}
|
|
2601
|
-
function
|
|
2598
|
+
function St(e) {
|
|
2602
2599
|
return e instanceof Set;
|
|
2603
2600
|
}
|
|
2604
2601
|
function je(e) {
|
|
2605
2602
|
return e.copy_ || e.base_;
|
|
2606
2603
|
}
|
|
2607
2604
|
function or(e, t) {
|
|
2608
|
-
if (_t(e))
|
|
2609
|
-
return new Map(e);
|
|
2610
2605
|
if (Et(e))
|
|
2606
|
+
return new Map(e);
|
|
2607
|
+
if (St(e))
|
|
2611
2608
|
return new Set(e);
|
|
2612
2609
|
if (Array.isArray(e))
|
|
2613
2610
|
return Array.prototype.slice.call(e);
|
|
@@ -2636,24 +2633,24 @@ function or(e, t) {
|
|
|
2636
2633
|
}
|
|
2637
2634
|
}
|
|
2638
2635
|
function Or(e, t = !1) {
|
|
2639
|
-
return
|
|
2636
|
+
return _t(e) || Pe(e) || !Oe(e) || (wt(e) > 1 && (e.set = e.add = e.clear = e.delete = Yi), Object.freeze(e), t && Object.entries(e).forEach(([r, n]) => Or(n, !0))), e;
|
|
2640
2637
|
}
|
|
2641
|
-
function
|
|
2638
|
+
function Yi() {
|
|
2642
2639
|
ae(2);
|
|
2643
2640
|
}
|
|
2644
|
-
function
|
|
2641
|
+
function _t(e) {
|
|
2645
2642
|
return Object.isFrozen(e);
|
|
2646
2643
|
}
|
|
2647
|
-
var
|
|
2644
|
+
var Ji = {};
|
|
2648
2645
|
function Fe(e) {
|
|
2649
|
-
const t =
|
|
2646
|
+
const t = Ji[e];
|
|
2650
2647
|
return t || ae(0, e), t;
|
|
2651
2648
|
}
|
|
2652
2649
|
var Xe;
|
|
2653
2650
|
function Xn() {
|
|
2654
2651
|
return Xe;
|
|
2655
2652
|
}
|
|
2656
|
-
function
|
|
2653
|
+
function Ki(e, t) {
|
|
2657
2654
|
return {
|
|
2658
2655
|
drafts_: [],
|
|
2659
2656
|
parent_: e,
|
|
@@ -2668,15 +2665,15 @@ function rn(e, t) {
|
|
|
2668
2665
|
t && (Fe("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
|
|
2669
2666
|
}
|
|
2670
2667
|
function sr(e) {
|
|
2671
|
-
ir(e), e.drafts_.forEach(
|
|
2668
|
+
ir(e), e.drafts_.forEach(Xi), e.drafts_ = null;
|
|
2672
2669
|
}
|
|
2673
2670
|
function ir(e) {
|
|
2674
2671
|
e === Xe && (Xe = e.parent_);
|
|
2675
2672
|
}
|
|
2676
2673
|
function nn(e) {
|
|
2677
|
-
return Xe =
|
|
2674
|
+
return Xe = Ki(Xe, e);
|
|
2678
2675
|
}
|
|
2679
|
-
function
|
|
2676
|
+
function Xi(e) {
|
|
2680
2677
|
const t = e[ce];
|
|
2681
2678
|
t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
|
|
2682
2679
|
}
|
|
@@ -2691,7 +2688,7 @@ function on(e, t) {
|
|
|
2691
2688
|
)) : e = ht(t, r, []), sr(t), t.patches_ && t.patchListener_(t.patches_, t.inversePatches_), e !== Yn ? e : void 0;
|
|
2692
2689
|
}
|
|
2693
2690
|
function ht(e, t, r) {
|
|
2694
|
-
if (
|
|
2691
|
+
if (_t(t))
|
|
2695
2692
|
return t;
|
|
2696
2693
|
const n = t[ce];
|
|
2697
2694
|
if (!n)
|
|
@@ -2728,7 +2725,7 @@ function sn(e, t, r, n, o, s, i) {
|
|
|
2728
2725
|
else
|
|
2729
2726
|
return;
|
|
2730
2727
|
} else i && r.add(o);
|
|
2731
|
-
if (Oe(o) && !
|
|
2728
|
+
if (Oe(o) && !_t(o)) {
|
|
2732
2729
|
if (!e.immer_.autoFreeze_ && e.unfinalizedDrafts_ < 1)
|
|
2733
2730
|
return;
|
|
2734
2731
|
ht(e, o), (!t || !t.scope_.parent_) && typeof n != "symbol" && Object.prototype.propertyIsEnumerable.call(r, n) && pt(e, o);
|
|
@@ -2737,7 +2734,7 @@ function sn(e, t, r, n, o, s, i) {
|
|
|
2737
2734
|
function pt(e, t, r = !1) {
|
|
2738
2735
|
!e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && Or(t, r);
|
|
2739
2736
|
}
|
|
2740
|
-
function
|
|
2737
|
+
function Zi(e, t) {
|
|
2741
2738
|
const r = Array.isArray(e), n = {
|
|
2742
2739
|
type_: r ? 1 : 0,
|
|
2743
2740
|
// Track which produce call this is associated with.
|
|
@@ -2772,7 +2769,7 @@ var vr = {
|
|
|
2772
2769
|
return e;
|
|
2773
2770
|
const r = je(e);
|
|
2774
2771
|
if (!nr(r, t))
|
|
2775
|
-
return
|
|
2772
|
+
return Qi(e, r, t);
|
|
2776
2773
|
const n = r[t];
|
|
2777
2774
|
return e.finalized_ || !Oe(n) ? n : n === It(e.base_, t) ? ($t(e), e.copy_[t] = cr(n, e)) : n;
|
|
2778
2775
|
},
|
|
@@ -2790,7 +2787,7 @@ var vr = {
|
|
|
2790
2787
|
const o = It(je(e), t), s = o == null ? void 0 : o[ce];
|
|
2791
2788
|
if (s && s.base_ === r)
|
|
2792
2789
|
return e.copy_[t] = r, e.assigned_[t] = !1, !0;
|
|
2793
|
-
if (
|
|
2790
|
+
if (Gi(r, o) && (r !== void 0 || nr(e.base_, t)))
|
|
2794
2791
|
return !0;
|
|
2795
2792
|
$t(e), ar(e);
|
|
2796
2793
|
}
|
|
@@ -2837,7 +2834,7 @@ function It(e, t) {
|
|
|
2837
2834
|
const r = e[ce];
|
|
2838
2835
|
return (r ? je(r) : e)[t];
|
|
2839
2836
|
}
|
|
2840
|
-
function
|
|
2837
|
+
function Qi(e, t, r) {
|
|
2841
2838
|
var o;
|
|
2842
2839
|
const n = Zn(t, r);
|
|
2843
2840
|
return n ? "value" in n ? n.value : (
|
|
@@ -2866,7 +2863,7 @@ function $t(e) {
|
|
|
2866
2863
|
e.scope_.immer_.useStrictShallowCopy_
|
|
2867
2864
|
));
|
|
2868
2865
|
}
|
|
2869
|
-
var
|
|
2866
|
+
var ea = class {
|
|
2870
2867
|
constructor(e) {
|
|
2871
2868
|
this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (t, r, n) => {
|
|
2872
2869
|
if (typeof t == "function" && typeof r != "function") {
|
|
@@ -2950,14 +2947,14 @@ var ra = class {
|
|
|
2950
2947
|
}
|
|
2951
2948
|
};
|
|
2952
2949
|
function cr(e, t) {
|
|
2953
|
-
const r =
|
|
2950
|
+
const r = Et(e) ? Fe("MapSet").proxyMap_(e, t) : St(e) ? Fe("MapSet").proxySet_(e, t) : Zi(e, t);
|
|
2954
2951
|
return (t ? t.scope_ : Xn()).drafts_.push(r), r;
|
|
2955
2952
|
}
|
|
2956
2953
|
function Qn(e) {
|
|
2957
2954
|
return Pe(e) || ae(10, e), eo(e);
|
|
2958
2955
|
}
|
|
2959
2956
|
function eo(e) {
|
|
2960
|
-
if (!Oe(e) ||
|
|
2957
|
+
if (!Oe(e) || _t(e))
|
|
2961
2958
|
return e;
|
|
2962
2959
|
const t = e[ce];
|
|
2963
2960
|
let r;
|
|
@@ -2971,7 +2968,7 @@ function eo(e) {
|
|
|
2971
2968
|
Kn(r, n, eo(o));
|
|
2972
2969
|
}), t && (t.finalized_ = !1), r;
|
|
2973
2970
|
}
|
|
2974
|
-
var ue = new
|
|
2971
|
+
var ue = new ea(), to = ue.produce;
|
|
2975
2972
|
ue.produceWithPatches.bind(
|
|
2976
2973
|
ue
|
|
2977
2974
|
);
|
|
@@ -2980,7 +2977,7 @@ ue.setUseStrictShallowCopy.bind(ue);
|
|
|
2980
2977
|
ue.applyPatches.bind(ue);
|
|
2981
2978
|
ue.createDraft.bind(ue);
|
|
2982
2979
|
ue.finishDraft.bind(ue);
|
|
2983
|
-
var
|
|
2980
|
+
var ta = (e, t, r) => {
|
|
2984
2981
|
if (t.length === 1 && t[0] === r) {
|
|
2985
2982
|
let n = !1;
|
|
2986
2983
|
try {
|
|
@@ -3004,7 +3001,7 @@ Ensure transformation logic is in the result function, and extraction logic is i
|
|
|
3004
3001
|
);
|
|
3005
3002
|
}
|
|
3006
3003
|
}
|
|
3007
|
-
},
|
|
3004
|
+
}, ra = (e, t, r) => {
|
|
3008
3005
|
const { memoize: n, memoizeOptions: o } = t, { inputSelectorResults: s, inputSelectorResultsCopy: i } = e, c = n(() => ({}), ...o);
|
|
3009
3006
|
if (!(c.apply(null, s) === c.apply(null, i))) {
|
|
3010
3007
|
let d;
|
|
@@ -3026,19 +3023,19 @@ Avoid returning a new reference inside your input selector, e.g.
|
|
|
3026
3023
|
}
|
|
3027
3024
|
);
|
|
3028
3025
|
}
|
|
3029
|
-
},
|
|
3026
|
+
}, na = {
|
|
3030
3027
|
inputStabilityCheck: "once",
|
|
3031
3028
|
identityFunctionCheck: "once"
|
|
3032
3029
|
};
|
|
3033
|
-
function
|
|
3030
|
+
function oa(e, t = `expected a function, instead received ${typeof e}`) {
|
|
3034
3031
|
if (typeof e != "function")
|
|
3035
3032
|
throw new TypeError(t);
|
|
3036
3033
|
}
|
|
3037
|
-
function
|
|
3034
|
+
function sa(e, t = `expected an object, instead received ${typeof e}`) {
|
|
3038
3035
|
if (typeof e != "object")
|
|
3039
3036
|
throw new TypeError(t);
|
|
3040
3037
|
}
|
|
3041
|
-
function
|
|
3038
|
+
function ia(e, t = "expected all items to be functions, instead received the following types: ") {
|
|
3042
3039
|
if (!e.every((r) => typeof r == "function")) {
|
|
3043
3040
|
const r = e.map(
|
|
3044
3041
|
(n) => typeof n == "function" ? `function ${n.name || "unnamed"}()` : typeof n
|
|
@@ -3047,9 +3044,9 @@ function ca(e, t = "expected all items to be functions, instead received the fol
|
|
|
3047
3044
|
}
|
|
3048
3045
|
}
|
|
3049
3046
|
var an = (e) => Array.isArray(e) ? e : [e];
|
|
3050
|
-
function
|
|
3047
|
+
function aa(e) {
|
|
3051
3048
|
const t = Array.isArray(e[0]) ? e[0] : e;
|
|
3052
|
-
return
|
|
3049
|
+
return ia(
|
|
3053
3050
|
t,
|
|
3054
3051
|
"createSelector expects all input-selectors to be functions, but received the following types: "
|
|
3055
3052
|
), t;
|
|
@@ -3060,32 +3057,32 @@ function cn(e, t) {
|
|
|
3060
3057
|
r.push(e[o].apply(null, t));
|
|
3061
3058
|
return r;
|
|
3062
3059
|
}
|
|
3063
|
-
var
|
|
3060
|
+
var ca = (e, t) => {
|
|
3064
3061
|
const { identityFunctionCheck: r, inputStabilityCheck: n } = {
|
|
3065
|
-
...
|
|
3062
|
+
...na,
|
|
3066
3063
|
...t
|
|
3067
3064
|
};
|
|
3068
3065
|
return {
|
|
3069
3066
|
identityFunctionCheck: {
|
|
3070
3067
|
shouldRun: r === "always" || r === "once" && e,
|
|
3071
|
-
run:
|
|
3068
|
+
run: ta
|
|
3072
3069
|
},
|
|
3073
3070
|
inputStabilityCheck: {
|
|
3074
3071
|
shouldRun: n === "always" || n === "once" && e,
|
|
3075
|
-
run:
|
|
3072
|
+
run: ra
|
|
3076
3073
|
}
|
|
3077
3074
|
};
|
|
3078
|
-
},
|
|
3075
|
+
}, ua = class {
|
|
3079
3076
|
constructor(e) {
|
|
3080
3077
|
this.value = e;
|
|
3081
3078
|
}
|
|
3082
3079
|
deref() {
|
|
3083
3080
|
return this.value;
|
|
3084
3081
|
}
|
|
3085
|
-
},
|
|
3082
|
+
}, la = typeof WeakRef < "u" ? WeakRef : ua, fa = 0, un = 1;
|
|
3086
3083
|
function at() {
|
|
3087
3084
|
return {
|
|
3088
|
-
s:
|
|
3085
|
+
s: fa,
|
|
3089
3086
|
v: void 0,
|
|
3090
3087
|
o: null,
|
|
3091
3088
|
p: null
|
|
@@ -3099,8 +3096,8 @@ function Rr(e, t = {}) {
|
|
|
3099
3096
|
var f;
|
|
3100
3097
|
let c = r;
|
|
3101
3098
|
const { length: u } = arguments;
|
|
3102
|
-
for (let
|
|
3103
|
-
const m = arguments[
|
|
3099
|
+
for (let S = 0, P = u; S < P; S++) {
|
|
3100
|
+
const m = arguments[S];
|
|
3104
3101
|
if (typeof m == "function" || typeof m == "object" && m !== null) {
|
|
3105
3102
|
let b = c.o;
|
|
3106
3103
|
b === null && (c.o = b = /* @__PURE__ */ new WeakMap());
|
|
@@ -3116,8 +3113,8 @@ function Rr(e, t = {}) {
|
|
|
3116
3113
|
const d = c;
|
|
3117
3114
|
let l;
|
|
3118
3115
|
if (c.s === un ? l = c.v : (l = e.apply(null, arguments), s++), d.s = un, n) {
|
|
3119
|
-
const
|
|
3120
|
-
|
|
3116
|
+
const S = ((f = o == null ? void 0 : o.deref) == null ? void 0 : f.call(o)) ?? o;
|
|
3117
|
+
S != null && n(S, l) && (l = S, s !== 0 && s--), o = typeof l == "object" && l !== null || typeof l == "function" ? new la(l) : l;
|
|
3121
3118
|
}
|
|
3122
3119
|
return d.v = l, l;
|
|
3123
3120
|
}
|
|
@@ -3133,7 +3130,7 @@ function ro(e, ...t) {
|
|
|
3133
3130
|
memoizeOptions: t
|
|
3134
3131
|
} : e, n = (...o) => {
|
|
3135
3132
|
let s = 0, i = 0, c, u = {}, d = o.pop();
|
|
3136
|
-
typeof d == "object" && (u = d, d = o.pop()),
|
|
3133
|
+
typeof d == "object" && (u = d, d = o.pop()), oa(
|
|
3137
3134
|
d,
|
|
3138
3135
|
`createSelector expects an output function after the inputs, but received: [${typeof d}]`
|
|
3139
3136
|
);
|
|
@@ -3142,11 +3139,11 @@ function ro(e, ...t) {
|
|
|
3142
3139
|
...u
|
|
3143
3140
|
}, {
|
|
3144
3141
|
memoize: f,
|
|
3145
|
-
memoizeOptions:
|
|
3142
|
+
memoizeOptions: S = [],
|
|
3146
3143
|
argsMemoize: P = Rr,
|
|
3147
3144
|
argsMemoizeOptions: m = [],
|
|
3148
3145
|
devModeChecks: b = {}
|
|
3149
|
-
} = l, N = an(
|
|
3146
|
+
} = l, N = an(S), M = an(m), j = aa(o), x = f(function() {
|
|
3150
3147
|
return s++, d.apply(
|
|
3151
3148
|
null,
|
|
3152
3149
|
arguments
|
|
@@ -3160,7 +3157,7 @@ function ro(e, ...t) {
|
|
|
3160
3157
|
arguments
|
|
3161
3158
|
);
|
|
3162
3159
|
if (c = x.apply(null, Z), process.env.NODE_ENV !== "production") {
|
|
3163
|
-
const { identityFunctionCheck: A, inputStabilityCheck: ee } =
|
|
3160
|
+
const { identityFunctionCheck: A, inputStabilityCheck: ee } = ca(I, b);
|
|
3164
3161
|
if (A.shouldRun && A.run(
|
|
3165
3162
|
d,
|
|
3166
3163
|
Z,
|
|
@@ -3201,9 +3198,9 @@ function ro(e, ...t) {
|
|
|
3201
3198
|
withTypes: () => n
|
|
3202
3199
|
}), n;
|
|
3203
3200
|
}
|
|
3204
|
-
var
|
|
3205
|
-
(e, t =
|
|
3206
|
-
|
|
3201
|
+
var da = /* @__PURE__ */ ro(Rr), ha = Object.assign(
|
|
3202
|
+
(e, t = da) => {
|
|
3203
|
+
sa(
|
|
3207
3204
|
e,
|
|
3208
3205
|
`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`
|
|
3209
3206
|
);
|
|
@@ -3215,8 +3212,8 @@ var pa = /* @__PURE__ */ ro(Rr), ma = Object.assign(
|
|
|
3215
3212
|
(...s) => s.reduce((i, c, u) => (i[r[u]] = c, i), {})
|
|
3216
3213
|
);
|
|
3217
3214
|
},
|
|
3218
|
-
{ withTypes: () =>
|
|
3219
|
-
),
|
|
3215
|
+
{ withTypes: () => ha }
|
|
3216
|
+
), pa = (...e) => {
|
|
3220
3217
|
const t = ro(...e), r = Object.assign((...n) => {
|
|
3221
3218
|
const o = t(...n), s = (i, ...c) => o(Pe(i) ? Qn(i) : i, ...c);
|
|
3222
3219
|
return Object.assign(s, o), s;
|
|
@@ -3225,9 +3222,9 @@ var pa = /* @__PURE__ */ ro(Rr), ma = Object.assign(
|
|
|
3225
3222
|
});
|
|
3226
3223
|
return r;
|
|
3227
3224
|
};
|
|
3228
|
-
|
|
3229
|
-
var
|
|
3230
|
-
function
|
|
3225
|
+
pa(Rr);
|
|
3226
|
+
var ma = (e) => e && typeof e.match == "function";
|
|
3227
|
+
function _e(e, t) {
|
|
3231
3228
|
function r(...n) {
|
|
3232
3229
|
if (t) {
|
|
3233
3230
|
let o = t(...n);
|
|
@@ -3249,7 +3246,7 @@ function Se(e, t) {
|
|
|
3249
3246
|
payload: n[0]
|
|
3250
3247
|
};
|
|
3251
3248
|
}
|
|
3252
|
-
return r.toString = () => `${e}`, r.type = e, r.match = (n) =>
|
|
3249
|
+
return r.toString = () => `${e}`, r.type = e, r.match = (n) => Ti(n) && n.type === e, r;
|
|
3253
3250
|
}
|
|
3254
3251
|
function ln(e) {
|
|
3255
3252
|
return Oe(e) ? to(e, () => {
|
|
@@ -3300,14 +3297,14 @@ function no(e) {
|
|
|
3300
3297
|
};
|
|
3301
3298
|
return e(o), [t, r, n];
|
|
3302
3299
|
}
|
|
3303
|
-
function
|
|
3300
|
+
function ya(e) {
|
|
3304
3301
|
return typeof e == "function";
|
|
3305
3302
|
}
|
|
3306
|
-
function
|
|
3303
|
+
function ga(e, t) {
|
|
3307
3304
|
if (process.env.NODE_ENV !== "production" && typeof t == "object")
|
|
3308
3305
|
throw new Error(process.env.NODE_ENV === "production" ? X(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
|
|
3309
3306
|
let [r, n, o] = no(t), s;
|
|
3310
|
-
if (
|
|
3307
|
+
if (ya(e))
|
|
3311
3308
|
s = () => ln(e());
|
|
3312
3309
|
else {
|
|
3313
3310
|
const c = ln(e);
|
|
@@ -3326,15 +3323,15 @@ function wa(e, t) {
|
|
|
3326
3323
|
return P === void 0 ? l : P;
|
|
3327
3324
|
} else {
|
|
3328
3325
|
if (Oe(l))
|
|
3329
|
-
return to(l, (
|
|
3326
|
+
return to(l, (S) => f(S, u));
|
|
3330
3327
|
{
|
|
3331
|
-
const
|
|
3332
|
-
if (
|
|
3328
|
+
const S = f(l, u);
|
|
3329
|
+
if (S === void 0) {
|
|
3333
3330
|
if (l === null)
|
|
3334
3331
|
return l;
|
|
3335
3332
|
throw new Error(process.env.NODE_ENV === "production" ? X(9) : "A case reducer on a non-draftable value must not return undefined");
|
|
3336
3333
|
}
|
|
3337
|
-
return
|
|
3334
|
+
return S;
|
|
3338
3335
|
}
|
|
3339
3336
|
}
|
|
3340
3337
|
return l;
|
|
@@ -3342,16 +3339,16 @@ function wa(e, t) {
|
|
|
3342
3339
|
}
|
|
3343
3340
|
return i.getInitialState = s, i;
|
|
3344
3341
|
}
|
|
3345
|
-
var
|
|
3342
|
+
var ba = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", oo = (e = 21) => {
|
|
3346
3343
|
let t = "", r = e;
|
|
3347
3344
|
for (; r--; )
|
|
3348
|
-
t +=
|
|
3345
|
+
t += ba[Math.random() * 64 | 0];
|
|
3349
3346
|
return t;
|
|
3350
|
-
},
|
|
3351
|
-
function
|
|
3352
|
-
return (t) => e.some((r) =>
|
|
3347
|
+
}, wa = (e, t) => ma(e) ? e.match(t) : e(t);
|
|
3348
|
+
function Ea(...e) {
|
|
3349
|
+
return (t) => e.some((r) => wa(r, t));
|
|
3353
3350
|
}
|
|
3354
|
-
var
|
|
3351
|
+
var Sa = ["name", "message", "stack", "code"], Ft = class {
|
|
3355
3352
|
constructor(e, t) {
|
|
3356
3353
|
/*
|
|
3357
3354
|
type-only property to distinguish between RejectWithValue and FulfillWithMeta
|
|
@@ -3369,10 +3366,10 @@ var Oa = ["name", "message", "stack", "code"], Ft = class {
|
|
|
3369
3366
|
xt(this, "_type");
|
|
3370
3367
|
this.payload = e, this.meta = t;
|
|
3371
3368
|
}
|
|
3372
|
-
},
|
|
3369
|
+
}, _a = (e) => {
|
|
3373
3370
|
if (typeof e == "object" && e !== null) {
|
|
3374
3371
|
const t = {};
|
|
3375
|
-
for (const r of
|
|
3372
|
+
for (const r of Sa)
|
|
3376
3373
|
typeof e[r] == "string" && (t[r] = e[r]);
|
|
3377
3374
|
return t;
|
|
3378
3375
|
}
|
|
@@ -3381,7 +3378,7 @@ var Oa = ["name", "message", "stack", "code"], Ft = class {
|
|
|
3381
3378
|
};
|
|
3382
3379
|
}, Cr = /* @__PURE__ */ (() => {
|
|
3383
3380
|
function e(t, r, n) {
|
|
3384
|
-
const o =
|
|
3381
|
+
const o = _e(t + "/fulfilled", (u, d, l, f) => ({
|
|
3385
3382
|
payload: u,
|
|
3386
3383
|
meta: {
|
|
3387
3384
|
...f || {},
|
|
@@ -3389,7 +3386,7 @@ var Oa = ["name", "message", "stack", "code"], Ft = class {
|
|
|
3389
3386
|
requestId: d,
|
|
3390
3387
|
requestStatus: "fulfilled"
|
|
3391
3388
|
}
|
|
3392
|
-
})), s =
|
|
3389
|
+
})), s = _e(t + "/pending", (u, d, l) => ({
|
|
3393
3390
|
payload: void 0,
|
|
3394
3391
|
meta: {
|
|
3395
3392
|
...l || {},
|
|
@@ -3397,11 +3394,11 @@ var Oa = ["name", "message", "stack", "code"], Ft = class {
|
|
|
3397
3394
|
requestId: u,
|
|
3398
3395
|
requestStatus: "pending"
|
|
3399
3396
|
}
|
|
3400
|
-
})), i =
|
|
3397
|
+
})), i = _e(t + "/rejected", (u, d, l, f, S) => ({
|
|
3401
3398
|
payload: f,
|
|
3402
|
-
error: (n && n.serializeError ||
|
|
3399
|
+
error: (n && n.serializeError || _a)(u || "Rejected"),
|
|
3403
3400
|
meta: {
|
|
3404
|
-
...
|
|
3401
|
+
...S || {},
|
|
3405
3402
|
arg: l,
|
|
3406
3403
|
requestId: d,
|
|
3407
3404
|
rejectedWithValue: !!f,
|
|
@@ -3412,7 +3409,7 @@ var Oa = ["name", "message", "stack", "code"], Ft = class {
|
|
|
3412
3409
|
}));
|
|
3413
3410
|
function c(u) {
|
|
3414
3411
|
return (d, l, f) => {
|
|
3415
|
-
const
|
|
3412
|
+
const S = n != null && n.idGenerator ? n.idGenerator(u) : oo(), P = new AbortController();
|
|
3416
3413
|
let m, b;
|
|
3417
3414
|
function N(j) {
|
|
3418
3415
|
b = j, P.abort();
|
|
@@ -3425,7 +3422,7 @@ var Oa = ["name", "message", "stack", "code"], Ft = class {
|
|
|
3425
3422
|
getState: l,
|
|
3426
3423
|
extra: f
|
|
3427
3424
|
});
|
|
3428
|
-
if (
|
|
3425
|
+
if (va(B) && (B = await B), B === !1 || P.signal.aborted)
|
|
3429
3426
|
throw {
|
|
3430
3427
|
name: "ConditionError",
|
|
3431
3428
|
message: "Aborted due to condition callback returning false."
|
|
@@ -3438,8 +3435,8 @@ var Oa = ["name", "message", "stack", "code"], Ft = class {
|
|
|
3438
3435
|
});
|
|
3439
3436
|
}, P.signal.addEventListener("abort", m);
|
|
3440
3437
|
});
|
|
3441
|
-
d(s(
|
|
3442
|
-
requestId:
|
|
3438
|
+
d(s(S, u, (V = n == null ? void 0 : n.getPendingMeta) == null ? void 0 : V.call(n, {
|
|
3439
|
+
requestId: S,
|
|
3443
3440
|
arg: u
|
|
3444
3441
|
}, {
|
|
3445
3442
|
getState: l,
|
|
@@ -3448,7 +3445,7 @@ var Oa = ["name", "message", "stack", "code"], Ft = class {
|
|
|
3448
3445
|
dispatch: d,
|
|
3449
3446
|
getState: l,
|
|
3450
3447
|
extra: f,
|
|
3451
|
-
requestId:
|
|
3448
|
+
requestId: S,
|
|
3452
3449
|
signal: P.signal,
|
|
3453
3450
|
abort: N,
|
|
3454
3451
|
rejectWithValue: (A, ee) => new Ft(A, ee),
|
|
@@ -3456,10 +3453,10 @@ var Oa = ["name", "message", "stack", "code"], Ft = class {
|
|
|
3456
3453
|
})).then((A) => {
|
|
3457
3454
|
if (A instanceof Ft)
|
|
3458
3455
|
throw A;
|
|
3459
|
-
return A instanceof dn ? o(A.payload,
|
|
3456
|
+
return A instanceof dn ? o(A.payload, S, u, A.meta) : o(A, S, u);
|
|
3460
3457
|
})]);
|
|
3461
3458
|
} catch (B) {
|
|
3462
|
-
j = B instanceof Ft ? i(null,
|
|
3459
|
+
j = B instanceof Ft ? i(null, S, u, B.payload, B.meta) : i(B, S, u);
|
|
3463
3460
|
} finally {
|
|
3464
3461
|
m && P.signal.removeEventListener("abort", m);
|
|
3465
3462
|
}
|
|
@@ -3467,10 +3464,10 @@ var Oa = ["name", "message", "stack", "code"], Ft = class {
|
|
|
3467
3464
|
}();
|
|
3468
3465
|
return Object.assign(M, {
|
|
3469
3466
|
abort: N,
|
|
3470
|
-
requestId:
|
|
3467
|
+
requestId: S,
|
|
3471
3468
|
arg: u,
|
|
3472
3469
|
unwrap() {
|
|
3473
|
-
return M.then(
|
|
3470
|
+
return M.then(Oa);
|
|
3474
3471
|
}
|
|
3475
3472
|
});
|
|
3476
3473
|
};
|
|
@@ -3479,31 +3476,31 @@ var Oa = ["name", "message", "stack", "code"], Ft = class {
|
|
|
3479
3476
|
pending: s,
|
|
3480
3477
|
rejected: i,
|
|
3481
3478
|
fulfilled: o,
|
|
3482
|
-
settled:
|
|
3479
|
+
settled: Ea(i, o),
|
|
3483
3480
|
typePrefix: t
|
|
3484
3481
|
});
|
|
3485
3482
|
}
|
|
3486
3483
|
return e.withTypes = () => e, e;
|
|
3487
3484
|
})();
|
|
3488
|
-
function
|
|
3485
|
+
function Oa(e) {
|
|
3489
3486
|
if (e.meta && e.meta.rejectedWithValue)
|
|
3490
3487
|
throw e.payload;
|
|
3491
3488
|
if (e.error)
|
|
3492
3489
|
throw e.error;
|
|
3493
3490
|
return e.payload;
|
|
3494
3491
|
}
|
|
3495
|
-
function
|
|
3492
|
+
function va(e) {
|
|
3496
3493
|
return e !== null && typeof e == "object" && typeof e.then == "function";
|
|
3497
3494
|
}
|
|
3498
|
-
var
|
|
3499
|
-
function
|
|
3495
|
+
var Ra = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
|
|
3496
|
+
function Ca(e, t) {
|
|
3500
3497
|
return `${e}/${t}`;
|
|
3501
3498
|
}
|
|
3502
|
-
function
|
|
3499
|
+
function Da({
|
|
3503
3500
|
creators: e
|
|
3504
3501
|
} = {}) {
|
|
3505
3502
|
var r;
|
|
3506
|
-
const t = (r = e == null ? void 0 : e.asyncThunk) == null ? void 0 : r[
|
|
3503
|
+
const t = (r = e == null ? void 0 : e.asyncThunk) == null ? void 0 : r[Ra];
|
|
3507
3504
|
return function(o) {
|
|
3508
3505
|
const {
|
|
3509
3506
|
name: s,
|
|
@@ -3512,7 +3509,7 @@ function xa({
|
|
|
3512
3509
|
if (!s)
|
|
3513
3510
|
throw new Error(process.env.NODE_ENV === "production" ? X(11) : "`name` is a required option for createSlice");
|
|
3514
3511
|
typeof process < "u" && process.env.NODE_ENV === "development" && o.initialState === void 0 && console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
|
|
3515
|
-
const c = (typeof o.reducers == "function" ? o.reducers(
|
|
3512
|
+
const c = (typeof o.reducers == "function" ? o.reducers(xa()) : o.reducers) || {}, u = Object.keys(c), d = {
|
|
3516
3513
|
sliceCaseReducersByName: {},
|
|
3517
3514
|
sliceCaseReducersByType: {},
|
|
3518
3515
|
actionCreators: {},
|
|
@@ -3542,10 +3539,10 @@ function xa({
|
|
|
3542
3539
|
u.forEach((x) => {
|
|
3543
3540
|
const I = c[x], V = {
|
|
3544
3541
|
reducerName: x,
|
|
3545
|
-
type:
|
|
3542
|
+
type: Ca(s, x),
|
|
3546
3543
|
createNotation: typeof o.reducers == "function"
|
|
3547
3544
|
};
|
|
3548
|
-
|
|
3545
|
+
Na(I) ? Aa(V, I, l, t) : ja(V, I, l);
|
|
3549
3546
|
});
|
|
3550
3547
|
function f() {
|
|
3551
3548
|
if (process.env.NODE_ENV !== "production" && typeof o.extraReducers == "object")
|
|
@@ -3554,7 +3551,7 @@ function xa({
|
|
|
3554
3551
|
...x,
|
|
3555
3552
|
...d.sliceCaseReducersByType
|
|
3556
3553
|
};
|
|
3557
|
-
return
|
|
3554
|
+
return ga(o.initialState, (Z) => {
|
|
3558
3555
|
for (let A in B)
|
|
3559
3556
|
Z.addCase(A, B[A]);
|
|
3560
3557
|
for (let A of d.sliceMatchers)
|
|
@@ -3564,7 +3561,7 @@ function xa({
|
|
|
3564
3561
|
V && Z.addDefaultCase(V);
|
|
3565
3562
|
});
|
|
3566
3563
|
}
|
|
3567
|
-
const
|
|
3564
|
+
const S = (x) => x, P = /* @__PURE__ */ new Map();
|
|
3568
3565
|
let m;
|
|
3569
3566
|
function b(x, I) {
|
|
3570
3567
|
return m || (m = f()), m(x, I);
|
|
@@ -3583,7 +3580,7 @@ function xa({
|
|
|
3583
3580
|
}
|
|
3584
3581
|
return A;
|
|
3585
3582
|
}
|
|
3586
|
-
function B(Z =
|
|
3583
|
+
function B(Z = S) {
|
|
3587
3584
|
const A = fn(P, I, {
|
|
3588
3585
|
insert: () => /* @__PURE__ */ new WeakMap()
|
|
3589
3586
|
});
|
|
@@ -3591,7 +3588,7 @@ function xa({
|
|
|
3591
3588
|
insert: () => {
|
|
3592
3589
|
const ee = {};
|
|
3593
3590
|
for (const [T, U] of Object.entries(o.selectors ?? {}))
|
|
3594
|
-
ee[T] =
|
|
3591
|
+
ee[T] = Pa(U, Z, N, I);
|
|
3595
3592
|
return ee;
|
|
3596
3593
|
}
|
|
3597
3594
|
});
|
|
@@ -3629,7 +3626,7 @@ function xa({
|
|
|
3629
3626
|
return j;
|
|
3630
3627
|
};
|
|
3631
3628
|
}
|
|
3632
|
-
function
|
|
3629
|
+
function Pa(e, t, r, n) {
|
|
3633
3630
|
function o(s, ...i) {
|
|
3634
3631
|
let c = t(s);
|
|
3635
3632
|
if (typeof c > "u") {
|
|
@@ -3642,8 +3639,8 @@ function ja(e, t, r, n) {
|
|
|
3642
3639
|
}
|
|
3643
3640
|
return o.unwrapped = e, o;
|
|
3644
3641
|
}
|
|
3645
|
-
var so = /* @__PURE__ */
|
|
3646
|
-
function
|
|
3642
|
+
var so = /* @__PURE__ */ Da();
|
|
3643
|
+
function xa() {
|
|
3647
3644
|
function e(t, r) {
|
|
3648
3645
|
return {
|
|
3649
3646
|
_reducerDefinitionType: "asyncThunk",
|
|
@@ -3674,27 +3671,27 @@ function Na() {
|
|
|
3674
3671
|
asyncThunk: e
|
|
3675
3672
|
};
|
|
3676
3673
|
}
|
|
3677
|
-
function
|
|
3674
|
+
function ja({
|
|
3678
3675
|
type: e,
|
|
3679
3676
|
reducerName: t,
|
|
3680
3677
|
createNotation: r
|
|
3681
3678
|
}, n, o) {
|
|
3682
3679
|
let s, i;
|
|
3683
3680
|
if ("reducer" in n) {
|
|
3684
|
-
if (r && !
|
|
3681
|
+
if (r && !ka(n))
|
|
3685
3682
|
throw new Error(process.env.NODE_ENV === "production" ? X(17) : "Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
|
|
3686
3683
|
s = n.reducer, i = n.prepare;
|
|
3687
3684
|
} else
|
|
3688
3685
|
s = n;
|
|
3689
|
-
o.addCase(e, s).exposeCaseReducer(t, s).exposeAction(t, i ?
|
|
3686
|
+
o.addCase(e, s).exposeCaseReducer(t, s).exposeAction(t, i ? _e(e, i) : _e(e));
|
|
3690
3687
|
}
|
|
3691
|
-
function
|
|
3688
|
+
function Na(e) {
|
|
3692
3689
|
return e._reducerDefinitionType === "asyncThunk";
|
|
3693
3690
|
}
|
|
3694
|
-
function
|
|
3691
|
+
function ka(e) {
|
|
3695
3692
|
return e._reducerDefinitionType === "reducerWithPrepare";
|
|
3696
3693
|
}
|
|
3697
|
-
function
|
|
3694
|
+
function Aa({
|
|
3698
3695
|
type: e,
|
|
3699
3696
|
reducerName: t
|
|
3700
3697
|
}, r, n, o) {
|
|
@@ -3717,10 +3714,10 @@ function $a({
|
|
|
3717
3714
|
}
|
|
3718
3715
|
function ct() {
|
|
3719
3716
|
}
|
|
3720
|
-
var
|
|
3717
|
+
var Ia = (e, t) => {
|
|
3721
3718
|
if (typeof e != "function")
|
|
3722
3719
|
throw new Error(process.env.NODE_ENV === "production" ? X(32) : `${t} is not a function`);
|
|
3723
|
-
}, Dr = "listenerMiddleware",
|
|
3720
|
+
}, Dr = "listenerMiddleware", $a = (e) => {
|
|
3724
3721
|
let {
|
|
3725
3722
|
type: t,
|
|
3726
3723
|
actionCreator: r,
|
|
@@ -3729,23 +3726,23 @@ var Fa = (e, t) => {
|
|
|
3729
3726
|
effect: s
|
|
3730
3727
|
} = e;
|
|
3731
3728
|
if (t)
|
|
3732
|
-
o =
|
|
3729
|
+
o = _e(t).match;
|
|
3733
3730
|
else if (r)
|
|
3734
3731
|
t = r.type, o = r.match;
|
|
3735
3732
|
else if (n)
|
|
3736
3733
|
o = n;
|
|
3737
3734
|
else if (!o) throw new Error(process.env.NODE_ENV === "production" ? X(21) : "Creating or removing a listener requires one of the known fields for matching an action");
|
|
3738
|
-
return
|
|
3735
|
+
return Ia(s, "options.listener"), {
|
|
3739
3736
|
predicate: o,
|
|
3740
3737
|
type: t,
|
|
3741
3738
|
effect: s
|
|
3742
3739
|
};
|
|
3743
|
-
},
|
|
3740
|
+
}, Fa = Object.assign((e) => {
|
|
3744
3741
|
const {
|
|
3745
3742
|
type: t,
|
|
3746
3743
|
predicate: r,
|
|
3747
3744
|
effect: n
|
|
3748
|
-
} =
|
|
3745
|
+
} = $a(e);
|
|
3749
3746
|
return {
|
|
3750
3747
|
id: oo(),
|
|
3751
3748
|
effect: n,
|
|
@@ -3757,25 +3754,25 @@ var Fa = (e, t) => {
|
|
|
3757
3754
|
}
|
|
3758
3755
|
};
|
|
3759
3756
|
}, {
|
|
3760
|
-
withTypes: () =>
|
|
3761
|
-
}),
|
|
3762
|
-
withTypes: () =>
|
|
3757
|
+
withTypes: () => Fa
|
|
3758
|
+
}), Ma = Object.assign(_e(`${Dr}/add`), {
|
|
3759
|
+
withTypes: () => Ma
|
|
3763
3760
|
});
|
|
3764
|
-
|
|
3765
|
-
var
|
|
3766
|
-
withTypes: () =>
|
|
3761
|
+
_e(`${Dr}/removeAll`);
|
|
3762
|
+
var Ua = Object.assign(_e(`${Dr}/remove`), {
|
|
3763
|
+
withTypes: () => Ua
|
|
3767
3764
|
});
|
|
3768
3765
|
function X(e) {
|
|
3769
3766
|
return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
|
|
3770
3767
|
}
|
|
3771
|
-
const
|
|
3768
|
+
const Ba = {
|
|
3772
3769
|
showLogin: !1
|
|
3773
3770
|
}, ur = Cr("user/getUserInfo", async () => {
|
|
3774
3771
|
if (localStorage.getItem("token"))
|
|
3775
3772
|
return await Tn();
|
|
3776
3773
|
}), io = so({
|
|
3777
3774
|
name: "user",
|
|
3778
|
-
initialState:
|
|
3775
|
+
initialState: Ba,
|
|
3779
3776
|
reducers: {
|
|
3780
3777
|
// 退出登录
|
|
3781
3778
|
loginOut(e) {
|
|
@@ -3795,9 +3792,9 @@ const qa = {
|
|
|
3795
3792
|
t.isLogin = !1, t.userInfo = void 0;
|
|
3796
3793
|
});
|
|
3797
3794
|
}
|
|
3798
|
-
}),
|
|
3795
|
+
}), za = io.actions, qa = io.reducer, lr = (e, t) => t.some((r) => e instanceof r);
|
|
3799
3796
|
let hn, pn;
|
|
3800
|
-
function
|
|
3797
|
+
function Va() {
|
|
3801
3798
|
return hn || (hn = [
|
|
3802
3799
|
IDBDatabase,
|
|
3803
3800
|
IDBObjectStore,
|
|
@@ -3806,7 +3803,7 @@ function Ta() {
|
|
|
3806
3803
|
IDBTransaction
|
|
3807
3804
|
]);
|
|
3808
3805
|
}
|
|
3809
|
-
function
|
|
3806
|
+
function La() {
|
|
3810
3807
|
return pn || (pn = [
|
|
3811
3808
|
IDBCursor.prototype.advance,
|
|
3812
3809
|
IDBCursor.prototype.continue,
|
|
@@ -3814,7 +3811,7 @@ function Wa() {
|
|
|
3814
3811
|
]);
|
|
3815
3812
|
}
|
|
3816
3813
|
const fr = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakMap();
|
|
3817
|
-
function
|
|
3814
|
+
function Ta(e) {
|
|
3818
3815
|
const t = new Promise((r, n) => {
|
|
3819
3816
|
const o = () => {
|
|
3820
3817
|
e.removeEventListener("success", s), e.removeEventListener("error", i);
|
|
@@ -3827,7 +3824,7 @@ function Ha(e) {
|
|
|
3827
3824
|
});
|
|
3828
3825
|
return Ot.set(t, e), t;
|
|
3829
3826
|
}
|
|
3830
|
-
function
|
|
3827
|
+
function Wa(e) {
|
|
3831
3828
|
if (fr.has(e))
|
|
3832
3829
|
return;
|
|
3833
3830
|
const t = new Promise((r, n) => {
|
|
@@ -3862,26 +3859,26 @@ let dr = {
|
|
|
3862
3859
|
function ao(e) {
|
|
3863
3860
|
dr = e(dr);
|
|
3864
3861
|
}
|
|
3865
|
-
function
|
|
3866
|
-
return
|
|
3862
|
+
function Ha(e) {
|
|
3863
|
+
return La().includes(e) ? function(...t) {
|
|
3867
3864
|
return e.apply(hr(this), t), $e(this.request);
|
|
3868
3865
|
} : function(...t) {
|
|
3869
3866
|
return $e(e.apply(hr(this), t));
|
|
3870
3867
|
};
|
|
3871
3868
|
}
|
|
3872
|
-
function
|
|
3873
|
-
return typeof e == "function" ?
|
|
3869
|
+
function Ga(e) {
|
|
3870
|
+
return typeof e == "function" ? Ha(e) : (e instanceof IDBTransaction && Wa(e), lr(e, Va()) ? new Proxy(e, dr) : e);
|
|
3874
3871
|
}
|
|
3875
3872
|
function $e(e) {
|
|
3876
3873
|
if (e instanceof IDBRequest)
|
|
3877
|
-
return
|
|
3874
|
+
return Ta(e);
|
|
3878
3875
|
if (Mt.has(e))
|
|
3879
3876
|
return Mt.get(e);
|
|
3880
|
-
const t =
|
|
3877
|
+
const t = Ga(e);
|
|
3881
3878
|
return t !== e && (Mt.set(e, t), Ot.set(t, e)), t;
|
|
3882
3879
|
}
|
|
3883
3880
|
const hr = (e) => Ot.get(e);
|
|
3884
|
-
function
|
|
3881
|
+
function Ya(e, t, { blocked: r, upgrade: n, blocking: o, terminated: s } = {}) {
|
|
3885
3882
|
const i = indexedDB.open(e, t), c = $e(i);
|
|
3886
3883
|
return n && i.addEventListener("upgradeneeded", (u) => {
|
|
3887
3884
|
n($e(i.result), u.oldVersion, u.newVersion, $e(i.transaction), u);
|
|
@@ -3895,16 +3892,16 @@ function Ka(e, t, { blocked: r, upgrade: n, blocking: o, terminated: s } = {}) {
|
|
|
3895
3892
|
}).catch(() => {
|
|
3896
3893
|
}), c;
|
|
3897
3894
|
}
|
|
3898
|
-
const
|
|
3895
|
+
const Ja = ["get", "getKey", "getAll", "getAllKeys", "count"], Ka = ["put", "add", "delete", "clear"], Ut = /* @__PURE__ */ new Map();
|
|
3899
3896
|
function mn(e, t) {
|
|
3900
3897
|
if (!(e instanceof IDBDatabase && !(t in e) && typeof t == "string"))
|
|
3901
3898
|
return;
|
|
3902
3899
|
if (Ut.get(t))
|
|
3903
3900
|
return Ut.get(t);
|
|
3904
|
-
const r = t.replace(/FromIndex$/, ""), n = t !== r, o =
|
|
3901
|
+
const r = t.replace(/FromIndex$/, ""), n = t !== r, o = Ka.includes(r);
|
|
3905
3902
|
if (
|
|
3906
3903
|
// Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
|
|
3907
|
-
!(r in (n ? IDBIndex : IDBObjectStore).prototype) || !(o ||
|
|
3904
|
+
!(r in (n ? IDBIndex : IDBObjectStore).prototype) || !(o || Ja.includes(r))
|
|
3908
3905
|
)
|
|
3909
3906
|
return;
|
|
3910
3907
|
const s = async function(i, ...c) {
|
|
@@ -3922,9 +3919,9 @@ ao((e) => ({
|
|
|
3922
3919
|
get: (t, r, n) => mn(t, r) || e.get(t, r, n),
|
|
3923
3920
|
has: (t, r) => !!mn(t, r) || e.has(t, r)
|
|
3924
3921
|
}));
|
|
3925
|
-
const
|
|
3922
|
+
const Xa = ["continue", "continuePrimaryKey", "advance"], yn = {}, pr = /* @__PURE__ */ new WeakMap(), co = /* @__PURE__ */ new WeakMap(), Za = {
|
|
3926
3923
|
get(e, t) {
|
|
3927
|
-
if (!
|
|
3924
|
+
if (!Xa.includes(t))
|
|
3928
3925
|
return e[t];
|
|
3929
3926
|
let r = yn[t];
|
|
3930
3927
|
return r || (r = yn[t] = function(...n) {
|
|
@@ -3932,12 +3929,12 @@ const Qa = ["continue", "continuePrimaryKey", "advance"], yn = {}, pr = /* @__PU
|
|
|
3932
3929
|
}), r;
|
|
3933
3930
|
}
|
|
3934
3931
|
};
|
|
3935
|
-
async function*
|
|
3932
|
+
async function* Qa(...e) {
|
|
3936
3933
|
let t = this;
|
|
3937
3934
|
if (t instanceof IDBCursor || (t = await t.openCursor(...e)), !t)
|
|
3938
3935
|
return;
|
|
3939
3936
|
t = t;
|
|
3940
|
-
const r = new Proxy(t,
|
|
3937
|
+
const r = new Proxy(t, Za);
|
|
3941
3938
|
for (co.set(r, t), Ot.set(r, hr(t)); t; )
|
|
3942
3939
|
yield r, t = await (pr.get(r) || t.continue()), pr.delete(r);
|
|
3943
3940
|
}
|
|
@@ -3947,17 +3944,17 @@ function gn(e, t) {
|
|
|
3947
3944
|
ao((e) => ({
|
|
3948
3945
|
...e,
|
|
3949
3946
|
get(t, r, n) {
|
|
3950
|
-
return gn(t, r) ?
|
|
3947
|
+
return gn(t, r) ? Qa : e.get(t, r, n);
|
|
3951
3948
|
},
|
|
3952
3949
|
has(t, r) {
|
|
3953
3950
|
return gn(t, r) || e.has(t, r);
|
|
3954
3951
|
}
|
|
3955
3952
|
}));
|
|
3956
|
-
const Le = "task", rt = () =>
|
|
3953
|
+
const Le = "task", rt = () => Ya("zyjj", 2, {
|
|
3957
3954
|
upgrade(e) {
|
|
3958
3955
|
e.createObjectStore(Le);
|
|
3959
3956
|
}
|
|
3960
|
-
}),
|
|
3957
|
+
}), ec = async (e, t = Le) => (await rt()).put(t, e, e.id), tc = async (e = Le) => (await rt()).getAll(e), rc = async (e, t = Le) => (await rt()).get(t, e), nc = async (e, t, r = Le) => (await rt()).put(r, t, e), oc = async (e, t = Le) => (await rt()).delete(t, e), sc = {
|
|
3961
3958
|
taskCallback: {},
|
|
3962
3959
|
listenerCallback: []
|
|
3963
3960
|
}, uo = Cr("mqtt/initMqtt", async (e, { dispatch: t }) => {
|
|
@@ -3975,14 +3972,14 @@ const Le = "task", rt = () => Ka("zyjj", 2, {
|
|
|
3975
3972
|
return o.on("connect", (s) => {
|
|
3976
3973
|
console.log("[mqtt] connect success", s), o.subscribe(n, { qos: 1 });
|
|
3977
3974
|
}), o.on("message", (s, i, c) => {
|
|
3978
|
-
console.log("[mqtt] on message", s, i.toString(), c), s === n && t(
|
|
3975
|
+
console.log("[mqtt] on message", s, i.toString(), c), s === n && t(ic(JSON.parse(i.toString())));
|
|
3979
3976
|
}), o.on("error", (s) => console.log("[mqtt] err", s)), o.on("close", () => console.log("[mqtt] close")), o.on("disconnect", () => console.log("[mqtt] disconnect")), o;
|
|
3980
|
-
}),
|
|
3977
|
+
}), ic = Cr("mqtt/onMqttResponse", async (e, { getState: t }) => {
|
|
3981
3978
|
const { taskCallback: r, listenerCallback: n } = t().mqtt;
|
|
3982
3979
|
e.task_id in r && r[e.task_id](e) && (delete r[e.task_id], console.log("[mqtt] delete callback", e.task_id)), n.forEach((o) => o(e));
|
|
3983
3980
|
}), lo = so({
|
|
3984
3981
|
name: "mqtt",
|
|
3985
|
-
initialState:
|
|
3982
|
+
initialState: sc,
|
|
3986
3983
|
reducers: {
|
|
3987
3984
|
closeClient(e) {
|
|
3988
3985
|
var t;
|
|
@@ -4009,7 +4006,7 @@ const Le = "task", rt = () => Ka("zyjj", 2, {
|
|
|
4009
4006
|
t.client = r.payload;
|
|
4010
4007
|
});
|
|
4011
4008
|
}
|
|
4012
|
-
}),
|
|
4009
|
+
}), ac = lo.actions, cc = lo.reducer;
|
|
4013
4010
|
var mr;
|
|
4014
4011
|
(function(e) {
|
|
4015
4012
|
e[e.MqttListener = 0] = "MqttListener", e[e.CloudFileUpload = 1] = "CloudFileUpload", e[e.CloudFileDownload = 2] = "CloudFileDownload", 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.OpenTool = 11] = "OpenTool", e[e.OpenHelp = 12] = "OpenHelp", e[e.GetFileData = 13] = "GetFileData";
|
|
@@ -4037,34 +4034,34 @@ function fo(e) {
|
|
|
4037
4034
|
};
|
|
4038
4035
|
return D.jsxs(br, { children: [D.jsx(ke, { onChange: e.onChange, placeholder: "输入验证码" }), D.jsx(Ae, { disabled: t != ut, type: "primary", onClick: o, children: t != ut ? `剩余${t}秒` : "获取验证码" })] });
|
|
4039
4036
|
}
|
|
4040
|
-
const
|
|
4037
|
+
const uc = (e) => {
|
|
4041
4038
|
const [t, r] = De(""), [n, o] = De(!0), s = (c) => {
|
|
4042
|
-
n ?
|
|
4039
|
+
n ? gi(c).then((u) => {
|
|
4043
4040
|
Ce.success("登录成功"), localStorage.setItem("token", u), e.loginSuccess(u);
|
|
4044
|
-
}) :
|
|
4041
|
+
}) : wi(c).then(() => {
|
|
4045
4042
|
Ce.success("注册成功,请登录"), o(!0);
|
|
4046
4043
|
});
|
|
4047
4044
|
}, i = () => Ln(t);
|
|
4048
4045
|
return D.jsxs(se, { autoComplete: "off", onSubmit: s, children: [D.jsx(se.Item, { rules: [{ required: !0, type: "email", message: "输入正确的邮箱格式" }], field: "email", label: "邮箱", children: D.jsx(ke, { onChange: r, placeholder: "输入邮箱" }) }), D.jsx(se.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], field: "password", label: "密码", children: D.jsx(ke.Password, { placeholder: "输入密码" }) }), n ? null : D.jsx(se.Item, { label: "验证码", field: "token", rules: [{ required: !0, message: "验证码必填" }], children: D.jsx(fo, { callback: i }) }), D.jsx(se.Item, { wrapperCol: { offset: 5 }, children: D.jsxs(br, { children: [D.jsx(Ae, { type: "primary", htmlType: "submit", children: n ? "立即登录" : "注册账号" }), D.jsx(Ae, { type: "text", onClick: () => o((c) => !c), children: n ? "新用户?" : "已有账号?" }), n ? D.jsx(Ae, { onClick: () => e.onForget(), type: "text", children: "忘记密码?" }) : null] }) })] });
|
|
4049
4046
|
};
|
|
4050
|
-
function
|
|
4047
|
+
function lc(e) {
|
|
4051
4048
|
const [t, r] = De(""), n = (s) => {
|
|
4052
4049
|
if (s.password_repeat != s.password) {
|
|
4053
4050
|
Ce.error("新旧密码不一致");
|
|
4054
4051
|
return;
|
|
4055
4052
|
}
|
|
4056
4053
|
const { email: i, password: c, token: u } = s;
|
|
4057
|
-
|
|
4054
|
+
Ei({ email: i, password: c, token: u }).then(() => {
|
|
4058
4055
|
Ce.success("密码重置成功,请登录"), e.onLogin();
|
|
4059
4056
|
});
|
|
4060
4057
|
}, o = () => Ln(t);
|
|
4061
4058
|
return D.jsx("div", { children: D.jsxs(se, { style: { width: 370 }, autoComplete: "off", onSubmit: n, children: [D.jsx(se.Item, { rules: [{ required: !0, type: "email", message: "输入正确的邮箱格式" }], label: "邮箱", field: "email", children: D.jsx(ke, { onChange: r, placeholder: "输入邮箱" }) }), D.jsx(se.Item, { label: "验证码", field: "token", rules: [{ required: !0, message: "验证码必填" }], children: D.jsx(fo, { callback: o }) }), D.jsx(se.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], label: "新密码", field: "password", children: D.jsx(ke, { type: "password", placeholder: "输入新密码" }) }), D.jsx(se.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], label: "重复", field: "password_repeat", children: D.jsx(ke, { type: "password", placeholder: "再输入一遍新密码" }) }), D.jsx(se.Item, { wrapperCol: { offset: 5 }, children: D.jsxs(br, { children: [D.jsx(Ae, { type: "primary", htmlType: "submit", children: "立即重置" }), D.jsx(Ae, { onClick: () => e.onLogin(), type: "text", children: "重新登录" })] }) })] }) });
|
|
4062
4059
|
}
|
|
4063
|
-
function
|
|
4060
|
+
function wc(e) {
|
|
4064
4061
|
const [t, r] = De(!1);
|
|
4065
|
-
return D.jsx(Fo, { onCancel: e.onCancel, visible: e.visible, title: "用户登录", footer: null, children: t ? D.jsx(
|
|
4062
|
+
return D.jsx(Fo, { onCancel: e.onCancel, visible: e.visible, title: "用户登录", footer: null, children: t ? D.jsx(lc, { onLogin: () => r(!1) }) : D.jsx(uc, { loginSuccess: e.loginSuccess, onForget: () => r(!0) }) });
|
|
4066
4063
|
}
|
|
4067
|
-
function
|
|
4064
|
+
function Ec(e) {
|
|
4068
4065
|
const [t, r] = De([]), [n, o] = De(!1), [s, i] = De({
|
|
4069
4066
|
sizeCanChange: !0,
|
|
4070
4067
|
showTotal: !0,
|
|
@@ -4087,24 +4084,24 @@ function Sc(e) {
|
|
|
4087
4084
|
return d.tp == "input" ? l = D.jsx(ke, { allowClear: !0, placeholder: f.placeholder }) : d.tp == "custom" && (l = d.ele), D.jsx(se.Item, { label: d.label, field: d.field, children: l }, d.field);
|
|
4088
4085
|
}), D.jsx(se.Item, { children: D.jsx(Ae, { htmlType: "submit", children: "搜索" }) })] }) : null, D.jsx(Mo, { loading: n, pagination: s, onChange: (d) => i({ ...s, current: (d == null ? void 0 : d.current) || s.current, pageSize: (d == null ? void 0 : d.pageSize) || s.pageSize }), rowKey: e.id || "id", columns: e.columns, data: t })] });
|
|
4089
4086
|
}
|
|
4090
|
-
const
|
|
4091
|
-
GetAllTool:
|
|
4092
|
-
ToolInc:
|
|
4093
|
-
UpdateUserInfo:
|
|
4094
|
-
GetAppInfo:
|
|
4095
|
-
CostPoint:
|
|
4087
|
+
const Sc = {
|
|
4088
|
+
GetAllTool: vi,
|
|
4089
|
+
ToolInc: Ci,
|
|
4090
|
+
UpdateUserInfo: Si,
|
|
4091
|
+
GetAppInfo: bi,
|
|
4092
|
+
CostPoint: _i,
|
|
4096
4093
|
GetUserInfo: Tn,
|
|
4097
|
-
UserDownloadMaterial:
|
|
4094
|
+
UserDownloadMaterial: ki,
|
|
4098
4095
|
GetMqttTaskClientInfo: Hn,
|
|
4099
|
-
AddTask:
|
|
4100
|
-
GetTaskInfo:
|
|
4096
|
+
AddTask: xi,
|
|
4097
|
+
GetTaskInfo: ji,
|
|
4101
4098
|
GetTencentCosInfo: Wn,
|
|
4102
|
-
GetMaterialUrl:
|
|
4103
|
-
GetMaterialTagList:
|
|
4104
|
-
GetToolList:
|
|
4105
|
-
GetToolTagList:
|
|
4106
|
-
GetToolDetail:
|
|
4107
|
-
},
|
|
4099
|
+
GetMaterialUrl: Ai,
|
|
4100
|
+
GetMaterialTagList: Ni,
|
|
4101
|
+
GetToolList: Oi,
|
|
4102
|
+
GetToolTagList: Di,
|
|
4103
|
+
GetToolDetail: Ri
|
|
4104
|
+
}, _c = {
|
|
4108
4105
|
ToolType: Kt,
|
|
4109
4106
|
LocalActionReqType: Wt,
|
|
4110
4107
|
LocalActionResType: Ht,
|
|
@@ -4121,48 +4118,48 @@ const Oc = {
|
|
|
4121
4118
|
ToolEventType: mr,
|
|
4122
4119
|
WorkActionType: gr,
|
|
4123
4120
|
TaskActionType: yr
|
|
4124
|
-
},
|
|
4121
|
+
}, Oc = {
|
|
4125
4122
|
render: {
|
|
4126
|
-
renderTime:
|
|
4127
|
-
renderEllipsis:
|
|
4128
|
-
renderCopy:
|
|
4123
|
+
renderTime: zi,
|
|
4124
|
+
renderEllipsis: Vi,
|
|
4125
|
+
renderCopy: qi
|
|
4129
4126
|
},
|
|
4130
4127
|
utils: {
|
|
4131
|
-
file2ToolParamFile:
|
|
4132
|
-
seconds2TimeStr:
|
|
4128
|
+
file2ToolParamFile: ci,
|
|
4129
|
+
seconds2TimeStr: ui,
|
|
4133
4130
|
object2query: qn,
|
|
4134
|
-
paramReplace:
|
|
4135
|
-
object2urlParam:
|
|
4136
|
-
convertFileSize:
|
|
4137
|
-
downloadFile:
|
|
4131
|
+
paramReplace: hi,
|
|
4132
|
+
object2urlParam: pi,
|
|
4133
|
+
convertFileSize: ai,
|
|
4134
|
+
downloadFile: mi,
|
|
4138
4135
|
downloadFileDirect: Vn
|
|
4139
4136
|
},
|
|
4140
4137
|
cloud: {
|
|
4141
|
-
getTencentCosInfo:
|
|
4142
|
-
getAliYunOssInfo:
|
|
4138
|
+
getTencentCosInfo: li,
|
|
4139
|
+
getAliYunOssInfo: fi
|
|
4143
4140
|
},
|
|
4144
4141
|
db: {
|
|
4145
|
-
addTask:
|
|
4146
|
-
getAllData:
|
|
4147
|
-
getData:
|
|
4148
|
-
updateData:
|
|
4149
|
-
deleteData:
|
|
4142
|
+
addTask: ec,
|
|
4143
|
+
getAllData: tc,
|
|
4144
|
+
getData: rc,
|
|
4145
|
+
updateData: nc,
|
|
4146
|
+
deleteData: oc
|
|
4150
4147
|
}
|
|
4151
|
-
},
|
|
4152
|
-
UserReducer:
|
|
4153
|
-
UserAction:
|
|
4148
|
+
}, vc = {
|
|
4149
|
+
UserReducer: qa,
|
|
4150
|
+
UserAction: za,
|
|
4154
4151
|
GetUserInfo: ur,
|
|
4155
|
-
MqttReducer:
|
|
4156
|
-
MqttAction:
|
|
4152
|
+
MqttReducer: cc,
|
|
4153
|
+
MqttAction: ac,
|
|
4157
4154
|
InitMqtt: uo
|
|
4158
4155
|
};
|
|
4159
4156
|
export {
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4157
|
+
Sc as Api,
|
|
4158
|
+
_c as Enum,
|
|
4159
|
+
Ec as PageTable,
|
|
4160
|
+
gc as SendCommonRequest,
|
|
4161
|
+
bc as SendKnowledgeRequest,
|
|
4162
|
+
vc as Store,
|
|
4163
|
+
Oc as Tool,
|
|
4164
|
+
wc as UserLoginModal
|
|
4168
4165
|
};
|