zyjj-web-sdk 1.1.7 → 1.1.8

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.
@@ -1,4 +1,4 @@
1
- import { g as E } from "./index-CCOAg2q8.js";
1
+ import { g as E } from "./index-Dwng81sg.js";
2
2
  function S(T, L) {
3
3
  for (var f = 0; f < L.length; f++) {
4
4
  const h = L[f];
@@ -1,4 +1,4 @@
1
- import { g as So, c as Io } from "./index-CCOAg2q8.js";
1
+ import { g as So, c as Io } from "./index-Dwng81sg.js";
2
2
  function Lo(pe, Ze) {
3
3
  for (var J = 0; J < Ze.length; J++) {
4
4
  const U = Ze[J];
@@ -1,4 +1,4 @@
1
- import { j as r } from "./index-CCOAg2q8.js";
1
+ import { j as r } from "./index-Dwng81sg.js";
2
2
  import { Alert as o } from "@arco-design/web-react";
3
3
  function p(t) {
4
4
  var e, n;
@@ -1,5 +1,5 @@
1
- import { j as r } from "./index-CCOAg2q8.js";
2
- import { a as o } from "./common-Dt4BHxCR.js";
1
+ import { j as r } from "./index-Dwng81sg.js";
2
+ import { a as o } from "./common-svSgdeBM.js";
3
3
  import { useState as s, useCallback as f } from "react";
4
4
  import { Space as m } from "@arco-design/web-react";
5
5
  function j(e) {
@@ -7,7 +7,7 @@ function j(e) {
7
7
  if (!i || !e.value)
8
8
  return;
9
9
  let t = {};
10
- typeof e.value == "string" ? (a(e.value), t.url = e.value, t.name = e.value.split("/").pop()) : (t = e.value, a(t.url)), import("./APlayer.min-DzHWoEvx.js").then((l) => l.A).then((l) => {
10
+ typeof e.value == "string" ? (a(e.value), t.url = e.value, t.name = e.value.split("/").pop()) : (t = e.value, a(t.url)), import("./APlayer.min-gOeObbSd.js").then((l) => l.A).then((l) => {
11
11
  new l.default({
12
12
  container: i,
13
13
  loop: "none",
@@ -1,6 +1,6 @@
1
- import { j as e } from "./index-CCOAg2q8.js";
1
+ import { j as e } from "./index-Dwng81sg.js";
2
2
  import { Space as m } from "@arco-design/web-react";
3
- import { I as t } from "./common-Dt4BHxCR.js";
3
+ import { I as t } from "./common-svSgdeBM.js";
4
4
  function i(r) {
5
5
  return r.value ? e.jsx(m, { children: e.jsx(t, { src: r.value }) }) : e.jsx(e.Fragment, {});
6
6
  }
@@ -1,6 +1,6 @@
1
- import { j as e } from "./index-CCOAg2q8.js";
1
+ import { j as e } from "./index-Dwng81sg.js";
2
2
  import { Image as o, Grid as t } from "@arco-design/web-react";
3
- import { I as n } from "./common-Dt4BHxCR.js";
3
+ import { I as n } from "./common-svSgdeBM.js";
4
4
  function u(r) {
5
5
  var i;
6
6
  return r.value ? e.jsx(o.PreviewGroup, { infinite: !0, children: e.jsx(t, { cols: 4, colGap: 5, rowGap: 5, children: (i = r.value) == null ? void 0 : i.map((m, a) => e.jsx(t.GridItem, { children: e.jsx(n, { src: m }) }, a)) }) }) : e.jsx(e.Fragment, {});
@@ -1,4 +1,4 @@
1
- import { j as a } from "./index-CCOAg2q8.js";
1
+ import { j as a } from "./index-Dwng81sg.js";
2
2
  import { Input as n } from "@arco-design/web-react";
3
3
  function r(e) {
4
4
  var t;
@@ -1,4 +1,4 @@
1
- import { j as n } from "./index-CCOAg2q8.js";
1
+ import { j as n } from "./index-Dwng81sg.js";
2
2
  import { InputNumber as u } from "@arco-design/web-react";
3
3
  function r(t) {
4
4
  var e, a, m;
@@ -1,4 +1,4 @@
1
- import { j as n } from "./index-CCOAg2q8.js";
1
+ import { j as n } from "./index-Dwng81sg.js";
2
2
  import { Select as l } from "@arco-design/web-react";
3
3
  function i(e) {
4
4
  var a;
@@ -1,7 +1,7 @@
1
- import { j as A } from "./index-CCOAg2q8.js";
1
+ import { j as A } from "./index-Dwng81sg.js";
2
2
  import z, { useContext as Ce, useState as ae, useEffect as et } from "react";
3
3
  import { Space as tt, Input as nt } from "@arco-design/web-react";
4
- import { S as rt, C as it } from "./common-Dt4BHxCR.js";
4
+ import { S as rt, C as it } from "./common-svSgdeBM.js";
5
5
  import { I as ve, _ as Ae, a as De } from "./context-tmjHwBoF.js";
6
6
  function ue(e, n) {
7
7
  var t = Object.keys(e);
@@ -2243,7 +2243,7 @@ function _r(e) {
2243
2243
  function Mr(e) {
2244
2244
  const [n, t] = ae(!1), [i, l] = ae();
2245
2245
  return et(() => {
2246
- import("./index-Bz8xGFkc.js").then((o) => {
2246
+ import("./index-DxLJViBz.js").then((o) => {
2247
2247
  l(A.jsx(o.default, { remarkPlugins: [yt, _r], children: e.value }));
2248
2248
  });
2249
2249
  }, [e.value]), A.jsxs("div", { className: "zyjj-lab-markdown", style: { position: "relative" }, children: [e.value ? A.jsxs(tt, { style: { position: "absolute", right: 0, margin: 5, zIndex: 99 }, children: [A.jsx(rt, { noSuccess: !0, onClick: async () => t((o) => !o), icon: n ? A.jsx(X, {}) : A.jsx(Y, {}), tip: n ? "预览" : "编辑" }), A.jsx(it, { value: e.value })] }) : A.jsx(A.Fragment, {}), n ? A.jsx(nt.TextArea, { style: { borderRadius: 5, padding: 10 }, autoSize: !0, value: e.value, onChange: e.onChange }) : A.jsx("div", { style: { padding: 10 }, children: i })] });
@@ -1,4 +1,4 @@
1
- import { j as n } from "./index-CCOAg2q8.js";
1
+ import { j as n } from "./index-Dwng81sg.js";
2
2
  import { Input as r } from "@arco-design/web-react";
3
3
  function m(e) {
4
4
  var a, t;
@@ -1,4 +1,4 @@
1
- import { j as i, F as x } from "./index-CCOAg2q8.js";
1
+ import { j as i, F as x } from "./index-Dwng81sg.js";
2
2
  import l, { useContext as O, useState as j, useEffect as g } from "react";
3
3
  import { Upload as y, Button as b, Message as h } from "@arco-design/web-react";
4
4
  import { I as C, _ as w, a as P } from "./context-tmjHwBoF.js";
@@ -1,11 +1,11 @@
1
- import { j as t } from "./index-CCOAg2q8.js";
2
- import { a as n } from "./common-Dt4BHxCR.js";
1
+ import { j as t } from "./index-Dwng81sg.js";
2
+ import { a as n } from "./common-svSgdeBM.js";
3
3
  import { Space as l } from "@arco-design/web-react";
4
4
  import { useCallback as s } from "react";
5
5
  function v(e) {
6
6
  var i;
7
7
  const a = s((o) => {
8
- !o || !e.value || import("./DPlayer.min-BSjMKfwC.js").then((r) => r.D).then((r) => {
8
+ !o || !e.value || import("./DPlayer.min-kM1SccPm.js").then((r) => r.D).then((r) => {
9
9
  var u;
10
10
  new r.default({ container: o, screenshot: !0, video: { url: (u = e.value) == null ? void 0 : u.url } });
11
11
  });
@@ -1,4 +1,4 @@
1
- import { j as a, d as W } from "./index-CCOAg2q8.js";
1
+ import { j as a, d as W } from "./index-Dwng81sg.js";
2
2
  import i, { useContext as f, useState as O, useEffect as F } from "react";
3
3
  import { Tooltip as H, Space as z, Image as T } from "@arco-design/web-react";
4
4
  import { I as p, _ as u, a as d } from "./context-tmjHwBoF.js";
@@ -4,8 +4,8 @@ var Nt = (e, t, r) => Uo(e, typeof t != "symbol" ? t + "" : t, r);
4
4
  import { Message as xe, Typography as wn, Space as wr, Input as Ae, Button as $e, Modal as Bo, Form as ie, Table as zo } from "@arco-design/web-react";
5
5
  import Vo from "cos-js-sdk-v5";
6
6
  import Lo from "ali-oss";
7
- import En, { useState as Pe, useRef as To, useEffect as Vt, lazy as me } from "react";
8
- import qo from "mqtt";
7
+ import En, { useState as Pe, useRef as qo, useEffect as Vt, lazy as me } from "react";
8
+ import To from "mqtt";
9
9
  function Sn(e, t) {
10
10
  return function() {
11
11
  return e.apply(t, arguments);
@@ -14,7 +14,7 @@ function Sn(e, t) {
14
14
  const { toString: Wo } = Object.prototype, { getPrototypeOf: Er } = Object, gt = /* @__PURE__ */ ((e) => (t) => {
15
15
  const r = Wo.call(t);
16
16
  return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
17
- })(/* @__PURE__ */ Object.create(null)), _e = (e) => (e = e.toLowerCase(), (t) => gt(t) === e), bt = (e) => (t) => typeof t === e, { isArray: qe } = Array, Xe = bt("undefined");
17
+ })(/* @__PURE__ */ Object.create(null)), _e = (e) => (e = e.toLowerCase(), (t) => gt(t) === e), bt = (e) => (t) => typeof t === e, { isArray: Te } = Array, Xe = bt("undefined");
18
18
  function Ho(e) {
19
19
  return e !== null && !Xe(e) && e.constructor !== null && !Xe(e.constructor) && he(e.constructor.isBuffer) && e.constructor.isBuffer(e);
20
20
  }
@@ -37,7 +37,7 @@ function tt(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]), qe(e))
40
+ if (typeof e != "object" && (e = [e]), Te(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 Cn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
60
60
  function Lt() {
61
61
  const { caseless: e } = Rn(this) && this || {}, t = {}, r = (n, o) => {
62
62
  const s = e && On(t, o) || o;
63
- dt(t[s]) && dt(n) ? t[s] = Lt(t[s], n) : dt(n) ? t[s] = Lt({}, n) : qe(n) ? t[s] = n.slice() : t[s] = n;
63
+ dt(t[s]) && dt(n) ? t[s] = Lt(t[s], n) : dt(n) ? t[s] = Lt({}, n) : Te(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] && tt(arguments[n], r);
@@ -88,7 +88,7 @@ const os = (e, t, r, { allOwnKeys: n } = {}) => (tt(t, (o, s) => {
88
88
  return n !== -1 && n === r;
89
89
  }, us = (e) => {
90
90
  if (!e) return null;
91
- if (qe(e)) return e;
91
+ if (Te(e)) return e;
92
92
  let t = e.length;
93
93
  if (!vn(t)) return null;
94
94
  const r = new Array(t);
@@ -140,7 +140,7 @@ const os = (e, t, r, { allOwnKeys: n } = {}) => (tt(t, (o, s) => {
140
140
  r[s] = !0;
141
141
  });
142
142
  };
143
- return qe(e) ? n(e) : n(String(e).split(t)), r;
143
+ return Te(e) ? n(e) : n(String(e).split(t)), r;
144
144
  }, bs = () => {
145
145
  }, ws = (e, t) => (e = +e, Number.isFinite(e) ? e : t), It = "abcdefghijklmnopqrstuvwxyz", Lr = "0123456789", xn = {
146
146
  DIGIT: Lr,
@@ -163,7 +163,7 @@ const _s = (e) => {
163
163
  return;
164
164
  if (!("toJSON" in n)) {
165
165
  t[o] = n;
166
- const s = qe(n) ? [] : {};
166
+ const s = Te(n) ? [] : {};
167
167
  return tt(n, (i, c) => {
168
168
  const u = r(i, o + 1);
169
169
  !Xe(u) && (s[c] = u);
@@ -174,7 +174,7 @@ const _s = (e) => {
174
174
  };
175
175
  return r(e, 0);
176
176
  }, vs = _e("AsyncFunction"), Os = (e) => e && (wt(e) || he(e)) && he(e.then) && he(e.catch), h = {
177
- isArray: qe,
177
+ isArray: Te,
178
178
  isArrayBuffer: _n,
179
179
  isBuffer: Ho,
180
180
  isFormData: ts,
@@ -278,19 +278,19 @@ 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 Cs = null;
281
- function Tt(e) {
281
+ function qt(e) {
282
282
  return h.isPlainObject(e) || h.isArray(e);
283
283
  }
284
284
  function Nn(e) {
285
285
  return h.endsWith(e, "[]") ? e.slice(0, -2) : e;
286
286
  }
287
- function Tr(e, t, r) {
287
+ function qr(e, t, r) {
288
288
  return e ? e.concat(t).map(function(o, s) {
289
289
  return o = Nn(o), !r && s ? "[" + o + "]" : o;
290
290
  }).join(r ? "." : "") : t;
291
291
  }
292
292
  function Rs(e) {
293
- return h.isArray(e) && !e.some(Tt);
293
+ return h.isArray(e) && !e.some(qt);
294
294
  }
295
295
  const Ds = h.toFlatObject(h, {}, null, function(t) {
296
296
  return /^is[A-Z]/.test(t);
@@ -325,17 +325,17 @@ function Et(e, t, r) {
325
325
  return b = Nn(b), M.forEach(function(P, A) {
326
326
  !(h.isUndefined(P) || P === null) && t.append(
327
327
  // eslint-disable-next-line no-nested-ternary
328
- i === !0 ? Tr([b], A, s) : i === null ? b : b + "[]",
328
+ i === !0 ? qr([b], A, s) : i === null ? b : b + "[]",
329
329
  d(P)
330
330
  );
331
331
  }), !1;
332
332
  }
333
- return Tt(m) ? !0 : (t.append(Tr(N, b, s), d(m)), !1);
333
+ return qt(m) ? !0 : (t.append(qr(N, b, s), d(m)), !1);
334
334
  }
335
335
  const f = [], S = Object.assign(Ds, {
336
336
  defaultVisitor: l,
337
337
  convertValue: d,
338
- isVisitable: Tt
338
+ isVisitable: qt
339
339
  });
340
340
  function x(m, b) {
341
341
  if (!h.isUndefined(m)) {
@@ -356,7 +356,7 @@ function Et(e, t, r) {
356
356
  throw new TypeError("data must be an object");
357
357
  return x(e), t;
358
358
  }
359
- function qr(e) {
359
+ function Tr(e) {
360
360
  const t = {
361
361
  "!": "%21",
362
362
  "'": "%27",
@@ -379,8 +379,8 @@ In.append = function(t, r) {
379
379
  };
380
380
  In.toString = function(t) {
381
381
  const r = t ? function(n) {
382
- return t.call(this, n, qr);
383
- } : qr;
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("&");
@@ -625,7 +625,7 @@ function Ls(e) {
625
625
  t[n[1]] = n[2];
626
626
  return t;
627
627
  }
628
- const Ts = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
628
+ const qs = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
629
629
  function kt(e, t, r, n, o) {
630
630
  if (h.isFunction(n))
631
631
  return n.call(this, t, r);
@@ -636,7 +636,7 @@ function kt(e, t, r, n, o) {
636
636
  return n.test(t);
637
637
  }
638
638
  }
639
- function qs(e) {
639
+ function Ts(e) {
640
640
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, r, n) => r.toUpperCase() + n);
641
641
  }
642
642
  function Ws(e, t) {
@@ -664,7 +664,7 @@ class pe {
664
664
  (!f || o[f] === void 0 || d === !0 || d === void 0 && o[f] !== !1) && (o[f || u] = ht(c));
665
665
  }
666
666
  const i = (c, u) => h.forEach(c, (d, l) => s(d, l, u));
667
- return h.isPlainObject(t) || t instanceof this.constructor ? i(t, r) : h.isString(t) && (t = t.trim()) && !Ts(t) ? i(Vs(t), r) : t != null && s(r, t, n), this;
667
+ return h.isPlainObject(t) || t instanceof this.constructor ? i(t, r) : h.isString(t) && (t = t.trim()) && !qs(t) ? i(Vs(t), r) : t != null && s(r, t, n), this;
668
668
  }
669
669
  get(t, r) {
670
670
  if (t = Ge(t), t) {
@@ -718,7 +718,7 @@ class pe {
718
718
  r[i] = ht(o), delete r[s];
719
719
  return;
720
720
  }
721
- const c = t ? qs(s) : String(s).trim();
721
+ const c = t ? Ts(s) : String(s).trim();
722
722
  c !== s && delete r[s], r[c] = ht(o), n[c] = !0;
723
723
  }), this;
724
724
  }
@@ -976,11 +976,11 @@ const Qs = typeof XMLHttpRequest < "u", ei = Qs && function(e) {
976
976
  }
977
977
  f.send(o || null);
978
978
  });
979
- }, qt = {
979
+ }, Tt = {
980
980
  http: Cs,
981
981
  xhr: ei
982
982
  };
983
- h.forEach(qt, (e, t) => {
983
+ h.forEach(Tt, (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}`, ti = (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, !ti(r) && (n = qt[(i = String(r)).toLowerCase()], n === void 0))
1001
+ if (n = r, !ti(r) && (n = Tt[(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}`, ti = (e) => h.isFunction(e) || e === null || e === !
1018
1018
  }
1019
1019
  return n;
1020
1020
  },
1021
- adapters: qt
1021
+ adapters: Tt
1022
1022
  };
1023
1023
  function $t(e) {
1024
1024
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
@@ -1568,15 +1568,15 @@ const li = (e) => e >= 1073741824 ? (e / 1073741824).toFixed(2) + " GB" : e >= 1
1568
1568
  }).join("&"), bi = (e) => new Promise((t, r) => {
1569
1569
  const n = new XMLHttpRequest();
1570
1570
  n.open("get", e), n.responseType = "blob", n.send(), n.onload = function() {
1571
- (this.status === 200 || this.status === 304) && (Tn(URL.createObjectURL(this.response)), t());
1571
+ (this.status === 200 || this.status === 304) && (qn(URL.createObjectURL(this.response)), t());
1572
1572
  }, n.onerror = function() {
1573
1573
  r("下载失败,请在新窗口打开");
1574
1574
  };
1575
- }), Tn = (e, t) => {
1575
+ }), qn = (e, t) => {
1576
1576
  var n;
1577
1577
  const r = document.createElement("a");
1578
1578
  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);
1579
- }, Y = process.env.NODE_ENV == "production" ? "https://api.zyjj.cc/api/v1" : "http://127.0.0.1:3000/api/v1", wi = (e) => G(`${Y}/common/user/login`, e, "post"), Ei = (e, t, r) => G(`${Y}/common/app/info?os=${e}&version=${t}&uid=${r || ""}`, {}, "get"), Si = (e) => G(`${Y}/common/user/register`, e, "post"), _i = (e) => G(`${Y}/common/user/reset/password`, e, "post"), qn = (e) => G(`${Y}/common/user/email/token`, { email: e }, "post"), Wn = () => G(`${Y}/user/user/info`, {}, "get", !1), vi = (e) => G(`${Y}/user/user/info`, e, "put"), Oi = (e) => G(`${Y}/user/point/deducting`, e, "post"), Ci = (e) => G(`${Y}/common/tool/list?${Ln(e)}`, {}, "get"), Ri = () => G(`${Y}/common/tool/all`, {}, "get"), Di = (e) => G(`${Y}/common/tool/${e}`, {}, "get"), xi = (e) => G(`${Y}/common/tool/inc/${e}`, {}, "get"), Pi = () => G(`${Y}/common/tool/tags`, {}, "get"), Hn = () => G(`${Y}/user/cloud/tencent/cos`, {}, "get"), ji = () => G(`${Y}/user/cloud/aliyun/oss`, {}, "get"), Ni = (e) => G(`${Y}/user/task`, e, "post"), Ii = (e) => G(`${Y}/user/task/${e}`, {}, "get"), Gn = () => G(`${Y}/user/cloud/mqtt/task`, {}, "get"), ki = () => G(`${Y}/common/material/tags`, {}, "get"), Ai = (e) => G(`${Y}/user/material/${e}`, {}, "get"), $i = (e) => G(`${Y}/user/material/url`, { key_list: e }, "post"), xc = (e) => G(`${Y}${e.url}`, e.data || {}, e.method);
1579
+ }, Y = process.env.NODE_ENV == "production" ? "https://api.zyjj.cc/api/v1" : "http://127.0.0.1:3000/api/v1", wi = (e) => G(`${Y}/common/user/login`, e, "post"), Ei = (e, t, r) => G(`${Y}/common/app/info?os=${e}&version=${t}&uid=${r || ""}`, {}, "get"), Si = (e) => G(`${Y}/common/user/register`, e, "post"), _i = (e) => G(`${Y}/common/user/reset/password`, e, "post"), Tn = (e) => G(`${Y}/common/user/email/token`, { email: e }, "post"), Wn = () => G(`${Y}/user/user/info`, {}, "get", !1), vi = (e) => G(`${Y}/user/user/info`, e, "put"), Oi = (e) => G(`${Y}/user/point/deducting`, e, "post"), Ci = (e) => G(`${Y}/common/tool/list?${Ln(e)}`, {}, "get"), Ri = () => G(`${Y}/common/tool/all`, {}, "get"), Di = (e) => G(`${Y}/common/tool/${e}`, {}, "get"), xi = (e) => G(`${Y}/common/tool/inc/${e}`, {}, "get"), Pi = () => G(`${Y}/common/tool/tags`, {}, "get"), Hn = () => G(`${Y}/user/cloud/tencent/cos`, {}, "get"), ji = () => G(`${Y}/user/cloud/aliyun/oss`, {}, "get"), Ni = (e) => G(`${Y}/user/task`, e, "post"), Ii = (e) => G(`${Y}/user/task/${e}`, {}, "get"), Gn = () => G(`${Y}/user/cloud/mqtt/task`, {}, "get"), ki = () => G(`${Y}/common/material/tags`, {}, "get"), Ai = (e) => G(`${Y}/user/material/${e}`, {}, "get"), $i = (e) => G(`${Y}/user/material/url`, { key_list: e }, "post"), xc = (e) => G(`${Y}${e.url}`, e.data || {}, e.method);
1580
1580
  var Zt;
1581
1581
  (function(e) {
1582
1582
  e[e.Task = 0] = "Task", e[e.Lab = 1] = "Lab", e[e.Flow = 2] = "Flow";
@@ -1665,15 +1665,15 @@ function Bi() {
1665
1665
  {
1666
1666
  var C = M.ReactDebugCurrentFrame, z = C.getStackAddendum();
1667
1667
  z !== "" && (p += "%s", g = g.concat([z]));
1668
- var T = g.map(function($) {
1668
+ var q = g.map(function($) {
1669
1669
  return String($);
1670
1670
  });
1671
- T.unshift("Warning: " + p), Function.prototype.apply.call(console[a], console, T);
1671
+ q.unshift("Warning: " + p), Function.prototype.apply.call(console[a], console, q);
1672
1672
  }
1673
1673
  }
1674
1674
  var A = !1, L = !1, B = !1, Z = !1, k = !1, ee;
1675
1675
  ee = Symbol.for("react.module.reference");
1676
- function q(a) {
1676
+ function T(a) {
1677
1677
  return !!(typeof a == "string" || typeof a == "function" || a === n || a === s || k || a === o || a === d || a === l || Z || a === x || A || L || 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
1678
1678
  // types supported by any Flight configuration anywhere since
1679
1679
  // we don't know which Flight build this will end up being used
@@ -1725,9 +1725,9 @@ function Bi() {
1725
1725
  var C = a.displayName || null;
1726
1726
  return C !== null ? C : fe(a.type) || "Memo";
1727
1727
  case S: {
1728
- var z = a, T = z._payload, $ = z._init;
1728
+ var z = a, q = z._payload, $ = z._init;
1729
1729
  try {
1730
- return fe($(T));
1730
+ return fe($(q));
1731
1731
  } catch {
1732
1732
  return null;
1733
1733
  }
@@ -1828,8 +1828,8 @@ function Bi() {
1828
1828
  ge = !0;
1829
1829
  var z = Error.prepareStackTrace;
1830
1830
  Error.prepareStackTrace = void 0;
1831
- var T;
1832
- T = be.current, be.current = null, re();
1831
+ var q;
1832
+ q = be.current, be.current = null, re();
1833
1833
  try {
1834
1834
  if (p) {
1835
1835
  var $ = function() {
@@ -1882,7 +1882,7 @@ function Bi() {
1882
1882
  }
1883
1883
  }
1884
1884
  } finally {
1885
- ge = !1, be.current = T, ae(), Error.prepareStackTrace = z;
1885
+ ge = !1, be.current = q, ae(), Error.prepareStackTrace = z;
1886
1886
  }
1887
1887
  var Ve = a ? a.displayName || a.name : "", zr = Ve ? we(Ve) : "";
1888
1888
  return typeof a == "function" && te.set(a, zr), zr;
@@ -1914,9 +1914,9 @@ function Bi() {
1914
1914
  case f:
1915
1915
  return st(a.type, p, g);
1916
1916
  case S: {
1917
- var C = a, z = C._payload, T = C._init;
1917
+ var C = a, z = C._payload, q = C._init;
1918
1918
  try {
1919
- return st(T(z), p, g);
1919
+ return st(q(z), p, g);
1920
1920
  } catch {
1921
1921
  }
1922
1922
  }
@@ -1933,9 +1933,9 @@ function Bi() {
1933
1933
  }
1934
1934
  function go(a, p, g, C, z) {
1935
1935
  {
1936
- var T = Function.call.bind(it);
1936
+ var q = Function.call.bind(it);
1937
1937
  for (var $ in a)
1938
- if (T(a, $)) {
1938
+ if (q(a, $)) {
1939
1939
  var I = void 0;
1940
1940
  try {
1941
1941
  if (typeof a[$] != "function") {
@@ -2025,7 +2025,7 @@ function Bi() {
2025
2025
  });
2026
2026
  }
2027
2027
  }
2028
- var Do = function(a, p, g, C, z, T, $) {
2028
+ var Do = function(a, p, g, C, z, q, $) {
2029
2029
  var I = {
2030
2030
  // This tag allows us to uniquely identify this as a React Element
2031
2031
  $$typeof: t,
@@ -2035,7 +2035,7 @@ function Bi() {
2035
2035
  ref: g,
2036
2036
  props: $,
2037
2037
  // Record the component responsible for creating this element.
2038
- _owner: T
2038
+ _owner: q
2039
2039
  };
2040
2040
  return I._store = {}, Object.defineProperty(I._store, "validated", {
2041
2041
  configurable: !1,
@@ -2056,14 +2056,14 @@ function Bi() {
2056
2056
  };
2057
2057
  function xo(a, p, g, C, z) {
2058
2058
  {
2059
- var T, $ = {}, I = null, oe = null;
2059
+ var q, $ = {}, I = null, oe = null;
2060
2060
  g !== void 0 && (Nr(g), I = "" + g), vo(p) && (Nr(p.key), I = "" + p.key), _o(p) && (oe = p.ref, Oo(p, z));
2061
- for (T in p)
2062
- it.call(p, T) && !So.hasOwnProperty(T) && ($[T] = p[T]);
2061
+ for (q in p)
2062
+ it.call(p, q) && !So.hasOwnProperty(q) && ($[q] = p[q]);
2063
2063
  if (a && a.defaultProps) {
2064
2064
  var K = a.defaultProps;
2065
- for (T in K)
2066
- $[T] === void 0 && ($[T] = K[T]);
2065
+ for (q in K)
2066
+ $[q] === void 0 && ($[q] = K[q]);
2067
2067
  }
2068
2068
  if (I || oe) {
2069
2069
  var Q = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
@@ -2140,7 +2140,7 @@ Check the top-level render call using <` + g + ">.");
2140
2140
  else if (a) {
2141
2141
  var z = N(a);
2142
2142
  if (typeof z == "function" && z !== a.entries)
2143
- for (var T = z.call(a), $; !($ = T.next()).done; )
2143
+ for (var q = z.call(a), $; !($ = q.next()).done; )
2144
2144
  jt($.value) && Mr($.value, p);
2145
2145
  }
2146
2146
  }
@@ -2182,9 +2182,9 @@ Check the top-level render call using <` + g + ">.");
2182
2182
  a.ref !== null && (ze(a), j("Invalid attribute `ref` supplied to `React.Fragment`."), ze(null));
2183
2183
  }
2184
2184
  }
2185
- function Br(a, p, g, C, z, T) {
2185
+ function Br(a, p, g, C, z, q) {
2186
2186
  {
2187
- var $ = q(a);
2187
+ var $ = T(a);
2188
2188
  if (!$) {
2189
2189
  var I = "";
2190
2190
  (a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (I += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
@@ -2193,7 +2193,7 @@ Check the top-level render call using <` + g + ">.");
2193
2193
  var K;
2194
2194
  a === null ? K = "null" : Rt(a) ? K = "array" : a !== void 0 && a.$$typeof === t ? (K = "<" + (fe(a.type) || "Unknown") + " />", I = " Did you accidentally export a JSX literal instead of a component?") : K = typeof a, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", K, I);
2195
2195
  }
2196
- var Q = xo(a, p, g, z, T);
2196
+ var Q = xo(a, p, g, z, q);
2197
2197
  if (Q == null)
2198
2198
  return Q;
2199
2199
  if ($) {
@@ -2264,13 +2264,13 @@ var _ = nr.exports, Yn = { exports: {} };
2264
2264
  B[V] = w, E = V;
2265
2265
  }
2266
2266
  return !v && E && (L = E), E || !v && L;
2267
- }, q = function(O, w) {
2267
+ }, T = function(O, w) {
2268
2268
  if (k(O)) return O.clone();
2269
2269
  var y = typeof w == "object" ? w : {};
2270
2270
  return y.date = O, y.args = arguments, new Ne(y);
2271
2271
  }, U = A;
2272
2272
  U.l = ee, U.i = k, U.w = function(O, w) {
2273
- return q(O, { locale: w.$L, utc: w.$u, x: w.$x, $offset: w.$offset });
2273
+ return T(O, { locale: w.$L, utc: w.$u, x: w.$x, $offset: w.$offset });
2274
2274
  };
2275
2275
  var Ne = function() {
2276
2276
  function O(y) {
@@ -2300,12 +2300,12 @@ var _ = nr.exports, Yn = { exports: {} };
2300
2300
  }, w.isValid = function() {
2301
2301
  return this.$d.toString() !== b;
2302
2302
  }, w.isSame = function(y, v) {
2303
- var E = q(y);
2303
+ var E = T(y);
2304
2304
  return this.startOf(v) <= E && E <= this.endOf(v);
2305
2305
  }, w.isAfter = function(y, v) {
2306
- return q(y) < this.startOf(v);
2306
+ return T(y) < this.startOf(v);
2307
2307
  }, w.isBefore = function(y, v) {
2308
- return this.endOf(v) < q(y);
2308
+ return this.endOf(v) < T(y);
2309
2309
  }, w.$g = function(y, v, E) {
2310
2310
  return U.u(y) ? this[v] : this.set(E, y);
2311
2311
  }, w.unix = function() {
@@ -2356,7 +2356,7 @@ var _ = nr.exports, Yn = { exports: {} };
2356
2356
  var E, R = this;
2357
2357
  y = Number(y);
2358
2358
  var D = U.p(v), V = function(re) {
2359
- var ae = q(R);
2359
+ var ae = T(R);
2360
2360
  return U.w(ae.date(ae.date() + Math.round(re * y)), R);
2361
2361
  };
2362
2362
  if (D === f) return this.set(f, this.$M + y);
@@ -2436,7 +2436,7 @@ var _ = nr.exports, Yn = { exports: {} };
2436
2436
  }, w.utcOffset = function() {
2437
2437
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
2438
2438
  }, w.diff = function(y, v, E) {
2439
- var R, D = this, V = U.p(v), W = q(y), J = (W.utcOffset() - this.utcOffset()) * n, re = this - W, ae = function() {
2439
+ var R, D = this, V = U.p(v), W = T(y), J = (W.utcOffset() - this.utcOffset()) * n, re = this - W, ae = function() {
2440
2440
  return U.m(D, W);
2441
2441
  };
2442
2442
  switch (V) {
@@ -2488,19 +2488,19 @@ var _ = nr.exports, Yn = { exports: {} };
2488
2488
  return this.$d.toUTCString();
2489
2489
  }, O;
2490
2490
  }(), fe = Ne.prototype;
2491
- return q.prototype = fe, [["$ms", s], ["$s", i], ["$m", c], ["$H", u], ["$W", d], ["$M", f], ["$y", x], ["$D", m]].forEach(function(O) {
2491
+ return T.prototype = fe, [["$ms", s], ["$s", i], ["$m", c], ["$H", u], ["$W", d], ["$M", f], ["$y", x], ["$D", m]].forEach(function(O) {
2492
2492
  fe[O[1]] = function(w) {
2493
2493
  return this.$g(w, O[0], O[1]);
2494
2494
  };
2495
- }), q.extend = function(O, w) {
2496
- return O.$i || (O(w, Ne, q), O.$i = !0), q;
2497
- }, q.locale = ee, q.isDayjs = k, q.unix = function(O) {
2498
- return q(1e3 * O);
2499
- }, q.en = B[L], q.Ls = B, q.p = {}, q;
2495
+ }), T.extend = function(O, w) {
2496
+ return O.$i || (O(w, Ne, T), O.$i = !0), T;
2497
+ }, T.locale = ee, T.isDayjs = k, T.unix = function(O) {
2498
+ return T(1e3 * O);
2499
+ }, T.en = B[L], T.Ls = B, T.p = {}, T;
2500
2500
  });
2501
2501
  })(Yn);
2502
2502
  var zi = Yn.exports;
2503
- const Vi = /* @__PURE__ */ Mi(zi), Li = (e) => Vi(e).format("YYYY-MM-DD HH:mm:ss"), Ti = (e) => _.jsx(wn.Paragraph, { copyable: !0, children: e }), qi = (e) => _.jsx(wn.Ellipsis, { style: { maxWidth: 300 }, rows: 1, showTooltip: !0, children: e });
2503
+ const Vi = /* @__PURE__ */ Mi(zi), Li = (e) => Vi(e).format("YYYY-MM-DD HH:mm:ss"), qi = (e) => _.jsx(wn.Paragraph, { copyable: !0, children: e }), Ti = (e) => _.jsx(wn.Ellipsis, { style: { maxWidth: 300 }, rows: 1, showTooltip: !0, children: e });
2504
2504
  function Wi(e) {
2505
2505
  if (typeof e != "object" || e === null)
2506
2506
  return !1;
@@ -2552,7 +2552,7 @@ function ce(e, ...t) {
2552
2552
  `[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`
2553
2553
  );
2554
2554
  }
2555
- var Te = Object.getPrototypeOf;
2555
+ var qe = Object.getPrototypeOf;
2556
2556
  function je(e) {
2557
2557
  return !!e && !!e[ue];
2558
2558
  }
@@ -2564,7 +2564,7 @@ var Yi = Object.prototype.constructor.toString();
2564
2564
  function Kn(e) {
2565
2565
  if (!e || typeof e != "object")
2566
2566
  return !1;
2567
- const t = Te(e);
2567
+ const t = qe(e);
2568
2568
  if (t === null)
2569
2569
  return !0;
2570
2570
  const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
@@ -2620,9 +2620,9 @@ function sr(e, t) {
2620
2620
  value: e[i]
2621
2621
  });
2622
2622
  }
2623
- return Object.create(Te(e), n);
2623
+ return Object.create(qe(e), n);
2624
2624
  } else {
2625
- const n = Te(e);
2625
+ const n = qe(e);
2626
2626
  if (n !== null && r)
2627
2627
  return { ...e };
2628
2628
  const o = Object.create(n);
@@ -2810,7 +2810,7 @@ var Cr = {
2810
2810
  ce(11);
2811
2811
  },
2812
2812
  getPrototypeOf(e) {
2813
- return Te(e.base_);
2813
+ return qe(e.base_);
2814
2814
  },
2815
2815
  setPrototypeOf() {
2816
2816
  ce(12);
@@ -2843,12 +2843,12 @@ function ta(e, t, r) {
2843
2843
  function Qn(e, t) {
2844
2844
  if (!(t in e))
2845
2845
  return;
2846
- let r = Te(e);
2846
+ let r = qe(e);
2847
2847
  for (; r; ) {
2848
2848
  const n = Object.getOwnPropertyDescriptor(r, t);
2849
2849
  if (n)
2850
2850
  return n;
2851
- r = Te(r);
2851
+ r = qe(r);
2852
2852
  }
2853
2853
  }
2854
2854
  function cr(e) {
@@ -3160,12 +3160,12 @@ function no(e, ...t) {
3160
3160
  Z,
3161
3161
  c
3162
3162
  ), ee.shouldRun) {
3163
- const q = cn(
3163
+ const T = cn(
3164
3164
  j,
3165
3165
  arguments
3166
3166
  );
3167
3167
  ee.run(
3168
- { inputSelectorResults: Z, inputSelectorResultsCopy: q },
3168
+ { inputSelectorResults: Z, inputSelectorResultsCopy: T },
3169
3169
  { memoize: f, memoizeOptions: N },
3170
3170
  arguments
3171
3171
  );
@@ -3584,8 +3584,8 @@ function Pa({
3584
3584
  return fn(k, Z, {
3585
3585
  insert: () => {
3586
3586
  const ee = {};
3587
- for (const [q, U] of Object.entries(o.selectors ?? {}))
3588
- ee[q] = ja(U, Z, N, A);
3587
+ for (const [T, U] of Object.entries(o.selectors ?? {}))
3588
+ ee[T] = ja(U, Z, N, A);
3589
3589
  return ee;
3590
3590
  }
3591
3591
  });
@@ -3789,9 +3789,9 @@ const Va = {
3789
3789
  t.isLogin = !1, t.userInfo = void 0;
3790
3790
  });
3791
3791
  }
3792
- }), La = co.actions, Ta = co.reducer, fr = (e, t) => t.some((r) => e instanceof r);
3792
+ }), La = co.actions, qa = co.reducer, fr = (e, t) => t.some((r) => e instanceof r);
3793
3793
  let hn, pn;
3794
- function qa() {
3794
+ function Ta() {
3795
3795
  return hn || (hn = [
3796
3796
  IDBDatabase,
3797
3797
  IDBObjectStore,
@@ -3864,7 +3864,7 @@ function Ya(e) {
3864
3864
  };
3865
3865
  }
3866
3866
  function Ja(e) {
3867
- return typeof e == "function" ? Ya(e) : (e instanceof IDBTransaction && Ga(e), fr(e, qa()) ? new Proxy(e, hr) : e);
3867
+ return typeof e == "function" ? Ya(e) : (e instanceof IDBTransaction && Ga(e), fr(e, Ta()) ? new Proxy(e, hr) : e);
3868
3868
  }
3869
3869
  function Me(e) {
3870
3870
  if (e instanceof IDBRequest)
@@ -3957,7 +3957,7 @@ const We = "task", ot = () => Ka("zyjj", 2, {
3957
3957
  }, fo = io("mqtt/initMqtt", async (e, { dispatch: t }) => {
3958
3958
  const r = await Gn();
3959
3959
  console.log("[mqtt] mqtt info", r);
3960
- const n = r.topic, o = qo.connect(`mqtt://${r.host}`, {
3960
+ const n = r.topic, o = To.connect(`mqtt://${r.host}`, {
3961
3961
  keepalive: 60,
3962
3962
  clientId: r.client_id,
3963
3963
  username: r.username,
@@ -4007,7 +4007,7 @@ const We = "task", ot = () => Ka("zyjj", 2, {
4007
4007
  }), po = ho.actions, cc = ho.reducer;
4008
4008
  var yr;
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.OpenTool = 11] = "OpenTool";
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.OpenTool = 11] = "OpenTool", e[e.OpenHelp = 12] = "OpenHelp";
4011
4011
  })(yr || (yr = {}));
4012
4012
  var gr;
4013
4013
  (function(e) {
@@ -4019,7 +4019,7 @@ var br;
4019
4019
  })(br || (br = {}));
4020
4020
  const ft = 60;
4021
4021
  function mo(e) {
4022
- const [t, r] = Pe(ft), n = To();
4022
+ const [t, r] = Pe(ft), n = qo();
4023
4023
  Vt(() => {
4024
4024
  t == 0 && (clearInterval(n.current), r(ft));
4025
4025
  }, [t]);
@@ -4039,7 +4039,7 @@ const uc = (e) => {
4039
4039
  }) : Si(c).then(() => {
4040
4040
  xe.success("注册成功,请登录"), o(!0);
4041
4041
  });
4042
- }, i = () => qn(t);
4042
+ }, i = () => Tn(t);
4043
4043
  return _.jsxs(ie, { autoComplete: "off", onSubmit: s, children: [_.jsx(ie.Item, { rules: [{ required: !0, type: "email", message: "输入正确的邮箱格式" }], field: "email", label: "邮箱", children: _.jsx(Ae, { onChange: r, placeholder: "输入邮箱" }) }), _.jsx(ie.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], field: "password", label: "密码", children: _.jsx(Ae.Password, { placeholder: "输入密码" }) }), n ? null : _.jsx(ie.Item, { label: "验证码", field: "token", rules: [{ required: !0, message: "验证码必填" }], children: _.jsx(mo, { callback: i }) }), _.jsx(ie.Item, { wrapperCol: { offset: 5 }, children: _.jsxs(wr, { children: [_.jsx($e, { type: "primary", htmlType: "submit", children: n ? "立即登录" : "注册账号" }), _.jsx($e, { type: "text", onClick: () => o((c) => !c), children: n ? "新用户?" : "已有账号?" }), n ? _.jsx($e, { onClick: () => e.onForget(), type: "text", children: "忘记密码?" }) : null] }) })] });
4044
4044
  };
4045
4045
  function lc(e) {
@@ -4052,7 +4052,7 @@ function lc(e) {
4052
4052
  _i({ email: i, password: c, token: u }).then(() => {
4053
4053
  xe.success("密码重置成功,请登录"), e.onLogin();
4054
4054
  });
4055
- }, o = () => qn(t);
4055
+ }, o = () => Tn(t);
4056
4056
  return _.jsx("div", { children: _.jsxs(ie, { style: { width: 370 }, autoComplete: "off", onSubmit: n, children: [_.jsx(ie.Item, { rules: [{ required: !0, type: "email", message: "输入正确的邮箱格式" }], label: "邮箱", field: "email", children: _.jsx(Ae, { onChange: r, placeholder: "输入邮箱" }) }), _.jsx(ie.Item, { label: "验证码", field: "token", rules: [{ required: !0, message: "验证码必填" }], children: _.jsx(mo, { callback: o }) }), _.jsx(ie.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], label: "新密码", field: "password", children: _.jsx(Ae, { type: "password", placeholder: "输入新密码" }) }), _.jsx(ie.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], label: "重复", field: "password_repeat", children: _.jsx(Ae, { type: "password", placeholder: "再输入一遍新密码" }) }), _.jsx(ie.Item, { wrapperCol: { offset: 5 }, children: _.jsxs(wr, { children: [_.jsx($e, { type: "primary", htmlType: "submit", children: "立即重置" }), _.jsx($e, { onClick: () => e.onLogin(), type: "text", children: "重新登录" })] }) })] }) });
4057
4057
  }
4058
4058
  function Pc(e) {
@@ -4082,7 +4082,7 @@ function jc(e) {
4082
4082
  return d.tp == "input" ? l = _.jsx(Ae, { allowClear: !0, placeholder: f.placeholder }) : d.tp == "custom" && (l = d.ele), _.jsx(ie.Item, { label: d.label, field: d.field, children: l }, d.field);
4083
4083
  }), _.jsx(ie.Item, { children: _.jsx($e, { htmlType: "submit", children: "搜索" }) })] }) : null, _.jsx(zo, { 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 })] });
4084
4084
  }
4085
- const fc = me(() => import("./ElementTypeInput-DFkJGBGe.js")), dc = me(() => import("./ElementTypeSelect-_Knpij9M.js")), hc = me(() => import("./ElementTypeTextArea-y_fkclYf.js")), bn = me(() => import("./ElementTypeText-DvAsOufc.js").then((e) => e.E)), pc = me(() => import("./ElementTypeAudio-Dl8eO6Fb.js")), mc = me(() => import("./ElementTypeUpload-CknB0Sic.js")), yc = me(() => import("./ElementTypeNumber-4B9M26Rq.js")), gc = me(() => import("./ElementTypeImageList-DP0Rjbdf.js")), bc = me(() => import("./ElementTypeImage-Cp4Xw8Db.js")), wc = me(() => import("./ElementTypeAlert-CvoOLqP1.js")), Ec = me(() => import("./ElementTypeVideo-Y1glzf4A.js")), Sc = me(() => import("./ElementTypeNumber-4B9M26Rq.js"));
4085
+ const fc = me(() => import("./ElementTypeInput-CscpkYUk.js")), dc = me(() => import("./ElementTypeSelect-D540jLzS.js")), hc = me(() => import("./ElementTypeTextArea-CfHF4AR8.js")), bn = me(() => import("./ElementTypeText-B6Relktc.js").then((e) => e.E)), pc = me(() => import("./ElementTypeAudio-BBQFdBek.js")), mc = me(() => import("./ElementTypeUpload-DfEbbf_j.js")), yc = me(() => import("./ElementTypeNumber-C64HYYEy.js")), gc = me(() => import("./ElementTypeImageList-CSeke5vJ.js")), bc = me(() => import("./ElementTypeImage-D4HNLPIn.js")), wc = me(() => import("./ElementTypeAlert-H_xNixx6.js")), Ec = me(() => import("./ElementTypeVideo-DDpnzWxr.js")), Sc = me(() => import("./ElementTypeNumber-C64HYYEy.js"));
4086
4086
  function Nc(e) {
4087
4087
  const { tp: t, isInput: r, data: n, value: o, onChange: s } = e;
4088
4088
  switch (t) {
@@ -4151,8 +4151,8 @@ const Ic = {
4151
4151
  }, Ac = {
4152
4152
  render: {
4153
4153
  renderTime: Li,
4154
- renderEllipsis: qi,
4155
- renderCopy: Ti
4154
+ renderEllipsis: Ti,
4155
+ renderCopy: qi
4156
4156
  },
4157
4157
  utils: {
4158
4158
  file2ToolParamFile: fi,
@@ -4162,7 +4162,7 @@ const Ic = {
4162
4162
  object2urlParam: gi,
4163
4163
  convertFileSize: li,
4164
4164
  downloadFile: bi,
4165
- downloadFileDirect: Tn
4165
+ downloadFileDirect: qn
4166
4166
  },
4167
4167
  cloud: {
4168
4168
  getTencentCosInfo: hi,
@@ -4176,7 +4176,7 @@ const Ic = {
4176
4176
  deleteData: ic
4177
4177
  }
4178
4178
  }, $c = {
4179
- UserReducer: Ta,
4179
+ UserReducer: qa,
4180
4180
  UserAction: La,
4181
4181
  GetUserInfo: lr,
4182
4182
  MqttReducer: cc,
@@ -1,5 +1,5 @@
1
- import { a as Z, p as ne, r as xn, s as xe, c as Mn, b as ue, d as sn, e as dr, m as R, f as H, g as gr, h as yr, i as cn, j as A, k as ee, n as Ee, l as Qe, o as De, q as xr, t as kr, v as It, u as br } from "./ElementTypeText-DvAsOufc.js";
2
- import { c as _n, g as wr, j as Ke } from "./index-CCOAg2q8.js";
1
+ import { a as Z, p as ne, r as xn, s as xe, c as Mn, b as ue, d as sn, e as dr, m as R, f as H, g as gr, h as yr, i as cn, j as A, k as ee, n as Ee, l as Qe, o as De, q as xr, t as kr, v as It, u as br } from "./ElementTypeText-B6Relktc.js";
2
+ import { c as _n, g as wr, j as Ke } from "./index-Dwng81sg.js";
3
3
  const Bn = document.createElement("i");
4
4
  function kn(e) {
5
5
  const n = "&" + e + ";";
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as s, E as o, L as m, P as n, a as l, S as r, T as t, U as E } from "./index-CCOAg2q8.js";
1
+ import { A as s, E as o, L as m, P as n, a as l, S as r, T as t, U as E } from "./index-Dwng81sg.js";
2
2
  export {
3
3
  s as Api,
4
4
  o as Enum,
package/lib/index.umd.cjs CHANGED
@@ -33,7 +33,7 @@ This could lead to inefficient memoization and unnecessary re-renders.
33
33
  Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},Xd=(e,n,t)=>{const{memoize:r,memoizeOptions:i}=n,{inputSelectorResults:a,inputSelectorResultsCopy:o}=e,l=r(()=>({}),...i);if(!(l.apply(null,a)===l.apply(null,o))){let c;try{throw new Error}catch(h){({stack:c}=h)}console.warn(`An input selector returned a different result when passed same arguments.
34
34
  This means your output selector will likely run more frequently than intended.
35
35
  Avoid returning a new reference inside your input selector, e.g.
36
- \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:t,firstInputs:a,secondInputs:o,stack:c})}},Gd={inputStabilityCheck:"once",identityFunctionCheck:"once"};function ef(e,n=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(n)}function nf(e,n=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(n)}function tf(e,n="expected all items to be functions, instead received the following types: "){if(!e.every(t=>typeof t=="function")){const t=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${n}[${t}]`)}}var Ol=e=>Array.isArray(e)?e:[e];function rf(e){const n=Array.isArray(e[0])?e[0]:e;return tf(n,"createSelector expects all input-selectors to be functions, but received the following types: "),n}function Pl(e,n){const t=[],{length:r}=e;for(let i=0;i<r;i++)t.push(e[i].apply(null,n));return t}var of=(e,n)=>{const{identityFunctionCheck:t,inputStabilityCheck:r}={...Gd,...n};return{identityFunctionCheck:{shouldRun:t==="always"||t==="once"&&e,run:Zd},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:Xd}}},af=class{constructor(e){this.value=e}deref(){return this.value}},lf=typeof WeakRef<"u"?WeakRef:af,sf=0,_l=1;function qr(){return{s:sf,v:void 0,o:null,p:null}}function Gi(e,n={}){let t=qr();const{resultEqualityCheck:r}=n;let i,a=0;function o(){var u;let l=t;const{length:s}=arguments;for(let f=0,A=s;f<A;f++){const b=arguments[f];if(typeof b=="function"||typeof b=="object"&&b!==null){let v=l.o;v===null&&(l.o=v=new WeakMap);const S=v.get(b);S===void 0?(l=qr(),v.set(b,l)):l=S}else{let v=l.p;v===null&&(l.p=v=new Map);const S=v.get(b);S===void 0?(l=qr(),v.set(b,l)):l=S}}const c=l;let h;if(l.s===_l?h=l.v:(h=e.apply(null,arguments),a++),c.s=_l,r){const f=((u=i==null?void 0:i.deref)==null?void 0:u.call(i))??i;f!=null&&r(f,h)&&(h=f,a!==0&&a--),i=typeof h=="object"&&h!==null||typeof h=="function"?new lf(h):h}return c.v=h,h}return o.clearCache=()=>{t=qr(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Tl(e,...n){const t=typeof e=="function"?{memoize:e,memoizeOptions:n}:e,r=(...i)=>{let a=0,o=0,l,s={},c=i.pop();typeof c=="object"&&(s=c,c=i.pop()),ef(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const h={...t,...s},{memoize:u,memoizeOptions:f=[],argsMemoize:A=Gi,argsMemoizeOptions:b=[],devModeChecks:v={}}=h,S=Ol(f),O=Ol(b),B=rf(i),T=u(function(){return a++,c.apply(null,arguments)},...S);let j=!0;const M=A(function(){o++;const F=Pl(B,arguments);if(l=T.apply(null,F),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:W,inputStabilityCheck:ne}=of(j,v);if(W.shouldRun&&W.run(c,F,l),ne.shouldRun){const L=Pl(B,arguments);ne.run({inputSelectorResults:F,inputSelectorResultsCopy:L},{memoize:u,memoizeOptions:S},arguments)}j&&(j=!1)}return l},...O);return Object.assign(M,{resultFunc:c,memoizedResultFunc:T,dependencies:B,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>l,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:u,argsMemoize:A})};return Object.assign(r,{withTypes:()=>r}),r}var uf=Tl(Gi),cf=Object.assign((e,n=uf)=>{nf(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const t=Object.keys(e),r=t.map(a=>e[a]);return n(r,(...a)=>a.reduce((o,l,s)=>(o[t[s]]=l,o),{}))},{withTypes:()=>cf}),pf=(...e)=>{const n=Tl(...e),t=Object.assign((...r)=>{const i=n(...r),a=(o,...l)=>i($n(o)?Sl(o):o,...l);return Object.assign(a,i),a},{withTypes:()=>t});return t};pf(Gi);var df=e=>e&&typeof e.match=="function";function Ln(e,n){function t(...r){if(n){let i=n(...r);if(!i)throw new Error(process.env.NODE_ENV==="production"?We(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return t.toString=()=>`${e}`,t.type=e,t.match=r=>Nd(r)&&r.type===e,t}function Ll(e){return Tn(e)?Il(e,()=>{}):e}function jl(e,n,t){if(e.has(n)){let i=e.get(n);return t.update&&(i=t.update(i,n,e),e.set(n,i)),i}if(!t.insert)throw new Error(process.env.NODE_ENV==="production"?We(10):"No insert provided for key not already in map");const r=t.insert(n,e);return e.set(n,r),r}process.env.NODE_ENV;function Dl(e){const n={},t=[];let r;const i={addCase(a,o){if(process.env.NODE_ENV!=="production"){if(t.length>0)throw new Error(process.env.NODE_ENV==="production"?We(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?We(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof a=="string"?a:a.type;if(!l)throw new Error(process.env.NODE_ENV==="production"?We(28):"`builder.addCase` cannot be called with an empty action type");if(l in n)throw new Error(process.env.NODE_ENV==="production"?We(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return n[l]=o,i},addMatcher(a,o){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?We(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return t.push({matcher:a,reducer:o}),i},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?We(31):"`builder.addDefaultCase` can only be called once");return r=a,i}};return e(i),[n,t,r]}function ff(e){return typeof e=="function"}function hf(e,n){if(process.env.NODE_ENV!=="production"&&typeof n=="object")throw new Error(process.env.NODE_ENV==="production"?We(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[t,r,i]=Dl(n),a;if(ff(e))a=()=>Ll(e());else{const l=Ll(e);a=()=>l}function o(l=a(),s){let c=[t[s.type],...r.filter(({matcher:h})=>h(s)).map(({reducer:h})=>h)];return c.filter(h=>!!h).length===0&&(c=[i]),c.reduce((h,u)=>{if(u)if($n(h)){const A=u(h,s);return A===void 0?h:A}else{if(Tn(h))return Il(h,f=>u(f,s));{const f=u(h,s);if(f===void 0){if(h===null)return h;throw new Error(process.env.NODE_ENV==="production"?We(9):"A case reducer on a non-draftable value must not return undefined")}return f}}return h},l)}return o.getInitialState=a,o}var mf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ml=(e=21)=>{let n="",t=e;for(;t--;)n+=mf[Math.random()*64|0];return n},yf=(e,n)=>df(e)?e.match(n):e(n);function Af(...e){return n=>e.some(t=>yf(t,n))}var gf=["name","message","stack","code"],eo=class{constructor(e,n){Ea(this,"_type");this.payload=e,this.meta=n}},zl=class{constructor(e,n){Ea(this,"_type");this.payload=e,this.meta=n}},bf=e=>{if(typeof e=="object"&&e!==null){const n={};for(const t of gf)typeof e[t]=="string"&&(n[t]=e[t]);return n}return{message:String(e)}},Fl=(()=>{function e(n,t,r){const i=Ln(n+"/fulfilled",(s,c,h,u)=>({payload:s,meta:{...u||{},arg:h,requestId:c,requestStatus:"fulfilled"}})),a=Ln(n+"/pending",(s,c,h)=>({payload:void 0,meta:{...h||{},arg:c,requestId:s,requestStatus:"pending"}})),o=Ln(n+"/rejected",(s,c,h,u,f)=>({payload:u,error:(r&&r.serializeError||bf)(s||"Rejected"),meta:{...f||{},arg:h,requestId:c,rejectedWithValue:!!u,requestStatus:"rejected",aborted:(s==null?void 0:s.name)==="AbortError",condition:(s==null?void 0:s.name)==="ConditionError"}}));function l(s){return(c,h,u)=>{const f=r!=null&&r.idGenerator?r.idGenerator(s):Ml(),A=new AbortController;let b,v;function S(B){v=B,A.abort()}const O=async function(){var j,M;let B;try{let k=(j=r==null?void 0:r.condition)==null?void 0:j.call(r,s,{getState:h,extra:u});if(xf(k)&&(k=await k),k===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const F=new Promise((W,ne)=>{b=()=>{ne({name:"AbortError",message:v||"Aborted"})},A.signal.addEventListener("abort",b)});c(a(f,s,(M=r==null?void 0:r.getPendingMeta)==null?void 0:M.call(r,{requestId:f,arg:s},{getState:h,extra:u}))),B=await Promise.race([F,Promise.resolve(t(s,{dispatch:c,getState:h,extra:u,requestId:f,signal:A.signal,abort:S,rejectWithValue:(W,ne)=>new eo(W,ne),fulfillWithValue:(W,ne)=>new zl(W,ne)})).then(W=>{if(W instanceof eo)throw W;return W instanceof zl?i(W.payload,f,s,W.meta):i(W,f,s)})])}catch(k){B=k instanceof eo?o(null,f,s,k.payload,k.meta):o(k,f,s)}finally{b&&A.signal.removeEventListener("abort",b)}return r&&!r.dispatchConditionRejection&&o.match(B)&&B.meta.condition||c(B),B}();return Object.assign(O,{abort:S,requestId:f,arg:s,unwrap(){return O.then(vf)}})}}return Object.assign(l,{pending:a,rejected:o,fulfilled:i,settled:Af(o,i),typePrefix:n})}return e.withTypes=()=>e,e})();function vf(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function xf(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var wf=Symbol.for("rtk-slice-createasyncthunk");function kf(e,n){return`${e}/${n}`}function Ef({creators:e}={}){var t;const n=(t=e==null?void 0:e.asyncThunk)==null?void 0:t[wf];return function(i){const{name:a,reducerPath:o=a}=i;if(!a)throw new Error(process.env.NODE_ENV==="production"?We(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&i.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const l=(typeof i.reducers=="function"?i.reducers(Sf()):i.reducers)||{},s=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(T,j){const M=typeof T=="string"?T:T.type;if(!M)throw new Error(process.env.NODE_ENV==="production"?We(12):"`context.addCase` cannot be called with an empty action type");if(M in c.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?We(13):"`context.addCase` cannot be called with two reducers for the same action type: "+M);return c.sliceCaseReducersByType[M]=j,h},addMatcher(T,j){return c.sliceMatchers.push({matcher:T,reducer:j}),h},exposeAction(T,j){return c.actionCreators[T]=j,h},exposeCaseReducer(T,j){return c.sliceCaseReducersByName[T]=j,h}};s.forEach(T=>{const j=l[T],M={reducerName:T,type:kf(a,T),createNotation:typeof i.reducers=="function"};If(j)?Pf(M,j,h,n):Bf(M,j,h)});function u(){if(process.env.NODE_ENV!=="production"&&typeof i.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?We(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[T={},j=[],M=void 0]=typeof i.extraReducers=="function"?Dl(i.extraReducers):[i.extraReducers],k={...T,...c.sliceCaseReducersByType};return hf(i.initialState,F=>{for(let W in k)F.addCase(W,k[W]);for(let W of c.sliceMatchers)F.addMatcher(W.matcher,W.reducer);for(let W of j)F.addMatcher(W.matcher,W.reducer);M&&F.addDefaultCase(M)})}const f=T=>T,A=new Map;let b;function v(T,j){return b||(b=u()),b(T,j)}function S(){return b||(b=u()),b.getInitialState()}function O(T,j=!1){function M(F){let W=F[T];if(typeof W>"u"){if(j)W=S();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?We(15):"selectSlice returned undefined for an uninjected slice reducer")}return W}function k(F=f){const W=jl(A,j,{insert:()=>new WeakMap});return jl(W,F,{insert:()=>{const ne={};for(const[L,Q]of Object.entries(i.selectors??{}))ne[L]=Cf(Q,F,S,j);return ne}})}return{reducerPath:T,getSelectors:k,get selectors(){return k(M)},selectSlice:M}}const B={name:a,reducer:v,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:S,...O(o),injectInto(T,{reducerPath:j,...M}={}){const k=j??o;return T.inject({reducerPath:k,reducer:v},M),{...B,...O(k,!0)}}};return B}}function Cf(e,n,t,r){function i(a,...o){let l=n(a);if(typeof l>"u"){if(r)l=t();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?We(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...o)}return i.unwrapped=e,i}var Rl=Ef();function Sf(){function e(n,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:n,...t}}return e.withTypes=()=>e,{reducer(n){return Object.assign({[n.name](...t){return n(...t)}}[n.name],{_reducerDefinitionType:"reducer"})},preparedReducer(n,t){return{_reducerDefinitionType:"reducerWithPrepare",prepare:n,reducer:t}},asyncThunk:e}}function Bf({type:e,reducerName:n,createNotation:t},r,i){let a,o;if("reducer"in r){if(t&&!Of(r))throw new Error(process.env.NODE_ENV==="production"?We(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(n,a).exposeAction(n,o?Ln(e,o):Ln(e))}function If(e){return e._reducerDefinitionType==="asyncThunk"}function Of(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Pf({type:e,reducerName:n},t,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?We(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:o,pending:l,rejected:s,settled:c,options:h}=t,u=i(e,a,h);r.exposeAction(n,u),o&&r.addCase(u.fulfilled,o),l&&r.addCase(u.pending,l),s&&r.addCase(u.rejected,s),c&&r.addMatcher(u.settled,c),r.exposeCaseReducer(n,{fulfilled:o||Ur,pending:l||Ur,rejected:s||Ur,settled:c||Ur})}function Ur(){}var _f=(e,n)=>{if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?We(32):`${n} is not a function`)},no="listenerMiddleware",Tf=e=>{let{type:n,actionCreator:t,matcher:r,predicate:i,effect:a}=e;if(n)i=Ln(n).match;else if(t)n=t.type,i=t.match;else if(r)i=r;else if(!i)throw new Error(process.env.NODE_ENV==="production"?We(21):"Creating or removing a listener requires one of the known fields for matching an action");return _f(a,"options.listener"),{predicate:i,type:n,effect:a}},Lf=Object.assign(e=>{const{type:n,predicate:t,effect:r}=Tf(e);return{id:Ml(),effect:r,type:n,predicate:t,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?We(22):"Unsubscribe not initialized")}}},{withTypes:()=>Lf}),jf=Object.assign(Ln(`${no}/add`),{withTypes:()=>jf});Ln(`${no}/removeAll`);var Df=Object.assign(Ln(`${no}/remove`),{withTypes:()=>Df});function We(e){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. `}const Mf={showLogin:!1},to=Fl("user/getUserInfo",async()=>{if(localStorage.getItem("token"))return await cl()}),Nl=Rl({name:"user",initialState:Mf,reducers:{loginOut(e){localStorage.removeItem("token"),e.isLogin=!1,e.userInfo=void 0},showLogin(e){e.showLogin=!0},hideLogin(e){e.showLogin=!1}},extraReducers:e=>{e.addCase(to.fulfilled,(n,t)=>{t.payload!=null?(n.isLogin=!0,n.userInfo=t.payload):n.isLogin=!1}),e.addCase(to.rejected,n=>{n.isLogin=!1,n.userInfo=void 0})}}),zf=Nl.actions,Ff=Nl.reducer,ro=(e,n)=>n.some(t=>e instanceof t);let ql,Ul;function Rf(){return ql||(ql=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Nf(){return Ul||(Ul=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const io=new WeakMap,oo=new WeakMap,Hr=new WeakMap;function qf(e){const n=new Promise((t,r)=>{const i=()=>{e.removeEventListener("success",a),e.removeEventListener("error",o)},a=()=>{t(rt(e.result)),i()},o=()=>{r(e.error),i()};e.addEventListener("success",a),e.addEventListener("error",o)});return Hr.set(n,e),n}function Uf(e){if(io.has(e))return;const n=new Promise((t,r)=>{const i=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",o),e.removeEventListener("abort",o)},a=()=>{t(),i()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",a),e.addEventListener("error",o),e.addEventListener("abort",o)});io.set(e,n)}let ao={get(e,n,t){if(e instanceof IDBTransaction){if(n==="done")return io.get(e);if(n==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return rt(e[n])},set(e,n,t){return e[n]=t,!0},has(e,n){return e instanceof IDBTransaction&&(n==="done"||n==="store")?!0:n in e}};function Hl(e){ao=e(ao)}function Hf(e){return Nf().includes(e)?function(...n){return e.apply(lo(this),n),rt(this.request)}:function(...n){return rt(e.apply(lo(this),n))}}function $f(e){return typeof e=="function"?Hf(e):(e instanceof IDBTransaction&&Uf(e),ro(e,Rf())?new Proxy(e,ao):e)}function rt(e){if(e instanceof IDBRequest)return qf(e);if(oo.has(e))return oo.get(e);const n=$f(e);return n!==e&&(oo.set(e,n),Hr.set(n,e)),n}const lo=e=>Hr.get(e);function Wf(e,n,{blocked:t,upgrade:r,blocking:i,terminated:a}={}){const o=indexedDB.open(e,n),l=rt(o);return r&&o.addEventListener("upgradeneeded",s=>{r(rt(o.result),s.oldVersion,s.newVersion,rt(o.transaction),s)}),t&&o.addEventListener("blocked",s=>t(s.oldVersion,s.newVersion,s)),l.then(s=>{a&&s.addEventListener("close",()=>a()),i&&s.addEventListener("versionchange",c=>i(c.oldVersion,c.newVersion,c))}).catch(()=>{}),l}const Yf=["get","getKey","getAll","getAllKeys","count"],Vf=["put","add","delete","clear"],so=new Map;function $l(e,n){if(!(e instanceof IDBDatabase&&!(n in e)&&typeof n=="string"))return;if(so.get(n))return so.get(n);const t=n.replace(/FromIndex$/,""),r=n!==t,i=Vf.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(i||Yf.includes(t)))return;const a=async function(o,...l){const s=this.transaction(o,i?"readwrite":"readonly");let c=s.store;return r&&(c=c.index(l.shift())),(await Promise.all([c[t](...l),i&&s.done]))[0]};return so.set(n,a),a}Hl(e=>({...e,get:(n,t,r)=>$l(n,t)||e.get(n,t,r),has:(n,t)=>!!$l(n,t)||e.has(n,t)}));const Kf=["continue","continuePrimaryKey","advance"],Wl={},uo=new WeakMap,Yl=new WeakMap,Qf={get(e,n){if(!Kf.includes(n))return e[n];let t=Wl[n];return t||(t=Wl[n]=function(...r){uo.set(this,Yl.get(this)[n](...r))}),t}};async function*Jf(...e){let n=this;if(n instanceof IDBCursor||(n=await n.openCursor(...e)),!n)return;n=n;const t=new Proxy(n,Qf);for(Yl.set(t,n),Hr.set(t,lo(n));n;)yield t,n=await(uo.get(t)||n.continue()),uo.delete(t)}function Vl(e,n){return n===Symbol.asyncIterator&&ro(e,[IDBIndex,IDBObjectStore,IDBCursor])||n==="iterate"&&ro(e,[IDBIndex,IDBObjectStore])}Hl(e=>({...e,get(n,t,r){return Vl(n,t)?Jf:e.get(n,t,r)},has(n,t){return Vl(n,t)||e.has(n,t)}}));const bt="task",$t=()=>Wf("zyjj",2,{upgrade(e){e.createObjectStore(bt)}}),Zf=async(e,n=bt)=>(await $t()).put(n,e,e.id),Xf=async(e=bt)=>(await $t()).getAll(e),Gf=async(e,n=bt)=>(await $t()).get(n,e),eh=async(e,n,t=bt)=>(await $t()).put(t,n,e),nh=async(e,n=bt)=>(await $t()).delete(n,e),th={taskCallback:{},listenerCallback:[]},Kl=Fl("mqtt/initMqtt",async(e,{dispatch:n})=>{const t=await dl();console.log("[mqtt] mqtt info",t);const r=t.topic,i=mt.connect(`mqtt://${t.host}`,{keepalive:60,clientId:t.client_id,username:t.username,password:t.password,protocol:"wss",reconnectPeriod:3e3});return i.on("connect",a=>{console.log("[mqtt] connect success",a),i.subscribe(r,{qos:1})}),i.on("message",(a,o,l)=>{console.log("[mqtt] on message",a,o.toString(),l),a===r&&n(Jl.onMqttResponse(JSON.parse(o.toString())))}),i.on("error",a=>console.log("[mqtt] err",a)),i.on("close",()=>console.log("[mqtt] close")),i.on("disconnect",()=>console.log("[mqtt] disconnect")),i}),Ql=Rl({name:"mqtt",initialState:th,reducers:{onMqttResponse(e,n){const t=n.payload;t.task_id in e.taskCallback&&e.taskCallback[t.task_id](t)&&(delete e.taskCallback[t.task_id],console.log("[mqtt] delete callback",t.task_id)),e.listenerCallback.forEach(r=>r(t))},closeClient(e){var n;console.log("[mqtt] close client"),(n=e.client)==null||n.end()},addMqttCallback(e,n){e.taskCallback[n.payload.task_id]=n.payload.callback},addMqttEventCallback(e,n){const t=n.payload;e.taskCallback[t.task_id]=r=>{var i,a,o;return(i=t.on_detail)==null||i.call(t,r),r.event_type==et.Success?(a=t.on_finish)==null||a.call(t,r.data):r.event_type==et.Error&&((o=t.on_error)==null||o.call(t,r.data)),[et.Success,et.Error].includes(r.event_type)}},addMqttListener(e,n){e.listenerCallback.push(n.payload)}},extraReducers:e=>{e.addCase(Kl.fulfilled,(n,t)=>{n.client=t.payload})}}),Jl=Ql.actions,rh=Ql.reducer;var co;(function(e){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.OpenTool=11]="OpenTool"})(co||(co={}));var po;(function(e){e[e.Add=0]="Add",e[e.Update=1]="Update",e[e.Output=2]="Output",e[e.Cancel=4]="Cancel",e[e.Restore=5]="Restore",e[e.Delete=6]="Delete"})(po||(po={}));var fo;(function(e){e[e.Create=0]="Create",e[e.Start=1]="Start",e[e.Cancel=2]="Cancel",e[e.Restore=3]="Restore",e[e.Delete=4]="Delete"})(fo||(fo={}));const $r=60;function Zl(e){const[n,t]=re.useState($r),r=re.useRef();re.useEffect(()=>{n==0&&(clearInterval(r.current),t($r))},[n]);const i=()=>{e.callback().then(()=>{te.Message.success("获取验证码成功,请注意查收邮箱"),t(a=>a-1),r.current=setInterval(()=>{t(a=>a-1)},1e3)})};return q.jsxs(te.Space,{children:[q.jsx(te.Input,{onChange:e.onChange,placeholder:"输入验证码"}),q.jsx(te.Button,{disabled:n!=$r,type:"primary",onClick:i,children:n!=$r?`剩余${n}秒`:"获取验证码"})]})}const ih=e=>{const[n,t]=re.useState(""),[r,i]=re.useState(!0),a=l=>{r?hd(l).then(s=>{te.Message.success("登录成功"),localStorage.setItem("token",s),e.loginSuccess(s)}):yd(l).then(()=>{te.Message.success("注册成功,请登录"),i(!0)})},o=()=>ul(n);return q.jsxs(te.Form,{autoComplete:"off",onSubmit:a,children:[q.jsx(te.Form.Item,{rules:[{required:!0,type:"email",message:"输入正确的邮箱格式"}],field:"email",label:"邮箱",children:q.jsx(te.Input,{onChange:t,placeholder:"输入邮箱"})}),q.jsx(te.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],field:"password",label:"密码",children:q.jsx(te.Input.Password,{placeholder:"输入密码"})}),r?null:q.jsx(te.Form.Item,{label:"验证码",field:"token",rules:[{required:!0,message:"验证码必填"}],children:q.jsx(Zl,{callback:o})}),q.jsx(te.Form.Item,{wrapperCol:{offset:5},children:q.jsxs(te.Space,{children:[q.jsx(te.Button,{type:"primary",htmlType:"submit",children:r?"立即登录":"注册账号"}),q.jsx(te.Button,{type:"text",onClick:()=>i(l=>!l),children:r?"新用户?":"已有账号?"}),r?q.jsx(te.Button,{onClick:()=>e.onForget(),type:"text",children:"忘记密码?"}):null]})})]})};function oh(e){const[n,t]=re.useState(""),r=a=>{if(a.password_repeat!=a.password){te.Message.error("新旧密码不一致");return}const{email:o,password:l,token:s}=a;Ad({email:o,password:l,token:s}).then(()=>{te.Message.success("密码重置成功,请登录"),e.onLogin()})},i=()=>ul(n);return q.jsx("div",{children:q.jsxs(te.Form,{style:{width:370},autoComplete:"off",onSubmit:r,children:[q.jsx(te.Form.Item,{rules:[{required:!0,type:"email",message:"输入正确的邮箱格式"}],label:"邮箱",field:"email",children:q.jsx(te.Input,{onChange:t,placeholder:"输入邮箱"})}),q.jsx(te.Form.Item,{label:"验证码",field:"token",rules:[{required:!0,message:"验证码必填"}],children:q.jsx(Zl,{callback:i})}),q.jsx(te.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],label:"新密码",field:"password",children:q.jsx(te.Input,{type:"password",placeholder:"输入新密码"})}),q.jsx(te.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],label:"重复",field:"password_repeat",children:q.jsx(te.Input,{type:"password",placeholder:"再输入一遍新密码"})}),q.jsx(te.Form.Item,{wrapperCol:{offset:5},children:q.jsxs(te.Space,{children:[q.jsx(te.Button,{type:"primary",htmlType:"submit",children:"立即重置"}),q.jsx(te.Button,{onClick:()=>e.onLogin(),type:"text",children:"重新登录"})]})})]})})}function ah(e){const[n,t]=re.useState(!1);return q.jsx(te.Modal,{onCancel:e.onCancel,visible:e.visible,title:"用户登录",footer:null,children:n?q.jsx(oh,{onLogin:()=>t(!1)}):q.jsx(ih,{loginSuccess:e.loginSuccess,onForget:()=>t(!0)})})}function lh(e){const[n,t]=re.useState([]),[r,i]=re.useState(!1),[a,o]=re.useState({sizeCanChange:!0,showTotal:!0,total:0,pageSize:e.pageSize||10,current:1,pageSizeChangeResetCurrent:!0}),[l]=te.Form.useForm(),s=()=>{i(!0),e.data(a.current,a.pageSize,l.getFieldsValue()).then(c=>{t(c.list),o(h=>(h.total=c.total,h)),i(!1)})};return re.useEffect(()=>{s()},[a.current,a.pageSize]),re.useEffect(()=>{s(),e.refresh&&e.refresh(()=>s())},[]),q.jsxs(q.Fragment,{children:[e.search?q.jsxs(te.Form,{form:l,layout:"inline",onSubmit:s,children:[e.search.map(c=>{let h=q.jsx(q.Fragment,{});const u=c.data;return c.tp=="input"?h=q.jsx(te.Input,{allowClear:!0,placeholder:u.placeholder}):c.tp=="custom"&&(h=c.ele),q.jsx(te.Form.Item,{label:c.label,field:c.field,children:h},c.field)}),q.jsx(te.Form.Item,{children:q.jsx(te.Button,{htmlType:"submit",children:"搜索"})})]}):null,q.jsx(te.Table,{loading:r,pagination:a,onChange:c=>o({...a,current:(c==null?void 0:c.current)||a.current,pageSize:(c==null?void 0:c.pageSize)||a.pageSize}),rowKey:e.id||"id",columns:e.columns,data:n})]})}const sh=re.lazy(()=>Promise.resolve().then(()=>Ch)),uh=re.lazy(()=>Promise.resolve().then(()=>Bh)),ch=re.lazy(()=>Promise.resolve().then(()=>Oh)),Xl=re.lazy(()=>Promise.resolve().then(()=>jA)),ph=re.lazy(()=>Promise.resolve().then(()=>MA)),dh=re.lazy(()=>Promise.resolve().then(()=>FA)),fh=re.lazy(()=>Promise.resolve().then(()=>Au)),hh=re.lazy(()=>Promise.resolve().then(()=>qA)),mh=re.lazy(()=>Promise.resolve().then(()=>HA)),yh=re.lazy(()=>Promise.resolve().then(()=>WA)),Ah=re.lazy(()=>Promise.resolve().then(()=>VA)),gh=re.lazy(()=>Promise.resolve().then(()=>Au));function bh(e){const{tp:n,isInput:t,data:r,value:i,onChange:a}=e;switch(n){case on.Input:return q.jsx(sh,{value:i,onChange:a,data:r});case on.Select:return q.jsx(uh,{value:i,onChange:a,data:r});case on.TextArea:return t?q.jsx(ch,{value:i,onChange:a,data:r}):q.jsx(Xl,{value:i,onChange:a,data:r});case on.FileUpload:return q.jsx(dh,{value:i,onChange:a,data:r});case on.Slider:return q.jsx(gh,{value:i,onChange:a,data:r});case on.Audio:return q.jsx(ph,{value:i,onChange:a,data:r});case on.Number:return q.jsx(fh,{value:i,onChange:a,data:r});case on.ImageList:return q.jsx(hh,{value:i,onChange:a,data:r});case on.Image:return q.jsx(mh,{value:i,onChange:a,data:r});case on.Alert:return q.jsx(yh,{value:i,onChange:a,data:r});case on.Video:return q.jsx(Ah,{value:i,onChange:a,data:r});case on.MarkDown:return q.jsx(Xl,{value:i,onChange:a,data:r});default:return q.jsx("div",{children:"组件不支持,请升级到最新版本!"})}}const vh={GetAllTool:xd,ToolInc:kd,UpdateUserInfo:gd,GetAppInfo:md,CostPoint:bd,GetUserInfo:cl,UserDownloadMaterial:Od,GetMqttTaskClientInfo:dl,AddTask:Sd,GetTaskInfo:Bd,GetTencentCosInfo:pl,GetMaterialUrl:Pd,GetMaterialTagList:Id,GetToolList:vd,GetToolTagList:Ed,GetToolDetail:wd},xh={ToolType:zi,LocalActionReqType:Ti,LocalActionResType:Li,MQTTEventType:et,FileSource:Rt,LocalTaskStatus:ji,LocalTaskEventType:Di,ToolTaskType:Ni,FfmpegActionType:qi,CloudTaskStatus:Fi,TaskType:Mi,LabElementType:on,ToolConfigType:Ri,ToolEventType:co,WorkActionType:fo,TaskActionType:po},wh={render:{renderTime:Md,renderEllipsis:Fd,renderCopy:zd},utils:{file2ToolParamFile:ol,seconds2TimeStr:sd,object2query:al,paramReplace:dd,object2urlParam:fd,convertFileSize:ld,downloadFile:ll,downloadFileDirect:sl},cloud:{getTencentCosInfo:ud,getAliYunOssInfo:cd},db:{addTask:Zf,getAllData:Xf,getData:Gf,updateData:eh,deleteData:nh}},kh={UserReducer:Ff,UserAction:zf,GetUserInfo:to,MqttReducer:rh,MqttAction:Jl,InitMqtt:Kl};function Eh(e){var n;return q.jsx(te.Input,{value:e.value,onChange:e.onChange,placeholder:(n=e.data)==null?void 0:n.placeholder})}const Ch=Object.freeze(Object.defineProperty({__proto__:null,default:Eh},Symbol.toStringTag,{value:"Module"}));function Sh(e){var n;return q.jsx(te.Select,{value:e.value,onChange:e.onChange,children:(n=e.data)==null?void 0:n.data.map((t,r)=>q.jsx(te.Select.Option,{value:t.value,children:t.label},r))})}const Bh=Object.freeze(Object.defineProperty({__proto__:null,default:Sh},Symbol.toStringTag,{value:"Module"}));function Ih(e){var n,t;return q.jsx(te.Input.TextArea,{value:e.value,onChange:e.onChange,rows:10,maxLength:(n=e.data)==null?void 0:n.max_len,showWordLimit:!0,placeholder:(t=e.data)==null?void 0:t.placeholder})}const Oh=Object.freeze(Object.defineProperty({__proto__:null,default:Ih},Symbol.toStringTag,{value:"Module"}));function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},xn.apply(this,arguments)}function Wt(e){"@babel/helpers - typeof";return Wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Wt(e)}function Ph(e,n){if(Wt(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,n||"default");if(Wt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function _h(e){var n=Ph(e,"string");return Wt(n)=="symbol"?n:n+""}function jn(e,n,t){return n=_h(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Dn=re.createContext({prefixCls:"arco"});function Gl(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function es(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Gl(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Gl(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Th(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=es(es({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-check-circle")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m15 22 7 7 11.5-11.5M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"}))}var ho=re.forwardRef(Th);ho.defaultProps={isIcon:!0},ho.displayName="IconCheckCircle";function ns(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ts(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ns(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ns(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Lh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ts(ts({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-close-circle")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m17.643 17.643 6.364 6.364m0 0 6.364 6.364m-6.364-6.364 6.364-6.364m-6.364 6.364-6.364 6.364M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"}))}var mo=re.forwardRef(Lh);mo.defaultProps={isIcon:!0},mo.displayName="IconCloseCircle";function rs(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function is(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?rs(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):rs(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function jh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=is(is({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-download")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6"}))}var yo=re.forwardRef(jh);yo.defaultProps={isIcon:!0},yo.displayName="IconDownload";function os(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function as(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?os(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):os(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Dh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=as(as({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-eye")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M24 37c6.627 0 12.627-4.333 18-13-5.373-8.667-11.373-13-18-13-6.627 0-12.627 4.333-18 13 5.373 8.667 11.373 13 18 13Z",clipRule:"evenodd"}),re.createElement("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"}))}var Ao=re.forwardRef(Dh);Ao.defaultProps={isIcon:!0},Ao.displayName="IconEye";function ls(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ss(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ls(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ls(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Mh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ss(ss({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-launch")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M41 26v14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h14M19.822 28.178 39.899 8.1M41 20V7H28"}))}var go=re.forwardRef(Mh);go.defaultProps={isIcon:!0},go.displayName="IconLaunch";function us(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function cs(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?us(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):us(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function zh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=cs(cs({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-upload")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6"}))}var bo=re.forwardRef(zh);bo.defaultProps={isIcon:!0},bo.displayName="IconUpload";function ps(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ds(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ps(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ps(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Fh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ds(ds({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-copy")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z"}))}var vo=re.forwardRef(Fh);vo.defaultProps={isIcon:!0},vo.displayName="IconCopy";function fs(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function hs(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?fs(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):fs(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Rh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=hs(hs({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-edit")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36"}))}var xo=re.forwardRef(Rh);xo.defaultProps={isIcon:!0},xo.displayName="IconEdit";function ms(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ys(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ms(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ms(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Nh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ys(ys({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-loading")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6"}))}var wo=re.forwardRef(Nh);wo.defaultProps={isIcon:!0},wo.displayName="IconLoading";const Wr=e=>{const[n,t]=re.useState(e.icon),[r,i]=re.useState(e.tip),[a,o]=re.useState(!1);re.useEffect(()=>{t(e.icon)},[e.icon]);const l=(c,h)=>{e.noSuccess||(i(c),t(h),setTimeout(()=>{t(e.icon),i(e.tip)},1e3))},s=()=>{e.onClick&&!a&&(l("执行中",q.jsx(wo,{})),o(!0),e.onClick().then(()=>l("成功",q.jsx(ho,{style:{color:"green"}}))).catch(c=>l(`${c}`,q.jsx(mo,{style:{color:"red"}}))).finally(()=>o(!1)))};return q.jsx(te.Tooltip,{content:r,children:q.jsx("div",{className:"zyjj-small-icon",onClick:s,children:n})})},qh=e=>q.jsx(Wr,{icon:q.jsx(vo,{}),tip:"拷贝",onClick:()=>navigator.clipboard.writeText(e.value||"")}),As=e=>q.jsx(Wr,{icon:q.jsx(go,{}),tip:"新窗口打开",onClick:async()=>{window.open(e.value)}}),gs=e=>q.jsx(Wr,{icon:q.jsx(yo,{}),tip:"下载",onClick:async()=>ll(e.value||"")}),bs=e=>{const{link:n}=e;return n?q.jsxs(te.Space,{size:"mini",style:{marginLeft:5,width:"100%",justifyContent:"center"},align:"center",direction:"horizontal",children:[q.jsx(gs,{value:n}),q.jsx(As,{value:n})]}):q.jsx(q.Fragment,{})},vs=e=>q.jsx(te.Image,{style:{borderRadius:5},referrerPolicy:"no-referrer",width:"100%",src:e.src,previewProps:{actions:[{getContainer:()=>q.jsx(gs,{value:e.src},"download"),content:q.jsx(q.Fragment,{}),key:"download"},{getContainer:()=>q.jsx(As,{value:e.src},"launch"),content:q.jsx(q.Fragment,{}),key:"launch"}],actionsLayout:["download","launch"]}});function Uh(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Yr=function(e){if(e==null)return Yh;if(typeof e=="function")return Vr(e);if(typeof e=="object")return Array.isArray(e)?Hh(e):$h(e);if(typeof e=="string")return Wh(e);throw new Error("Expected function, string, or object as test")};function Hh(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Yr(e[t]);return Vr(r);function r(...i){let a=-1;for(;++a<n.length;)if(n[a].apply(this,i))return!0;return!1}}function $h(e){const n=e;return Vr(t);function t(r){const i=r;let a;for(a in e)if(i[a]!==n[a])return!1;return!0}}function Wh(e){return Vr(n);function n(t){return t&&t.type===e}}function Vr(e){return n;function n(t,r,i){return!!(Vh(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Yh(){return!0}function Vh(e){return e!==null&&typeof e=="object"&&"type"in e}function Tx(e){return e}const xs=[],Kh=!0,ko=!1,Qh="skip";function ws(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const a=Yr(i),o=r?-1:1;l(e,void 0,[])();function l(s,c,h){const u=s&&typeof s=="object"?s:{};if(typeof u.type=="string"){const A=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(s.type+(A?"<"+A+">":""))+")"})}return f;function f(){let A=xs,b,v,S;if((!n||a(s,c,h[h.length-1]||void 0))&&(A=Jh(t(s,h)),A[0]===ko))return A;if("children"in s&&s.children){const O=s;if(O.children&&A[0]!==Qh)for(v=(r?O.children.length:-1)+o,S=h.concat(O);v>-1&&v<O.children.length;){const B=O.children[v];if(b=l(B,v,S)(),b[0]===ko)return b;v=typeof b[1]=="number"?b[1]:v+o}}return A}}}function Jh(e){return Array.isArray(e)?e:typeof e=="number"?[Kh,e]:e==null?xs:[e]}function ks(e,n,t){const i=Yr((t||{}).ignore||[]),a=Zh(n);let o=-1;for(;++o<a.length;)ws(e,"text",l);function l(c,h){let u=-1,f;for(;++u<h.length;){const A=h[u],b=f?f.children:void 0;if(i(A,b?b.indexOf(A):void 0,f))return;f=A}if(f)return s(c,h)}function s(c,h){const u=h[h.length-1],f=a[o][0],A=a[o][1];let b=0;const S=u.children.indexOf(c);let O=!1,B=[];f.lastIndex=0;let T=f.exec(c.value);for(;T;){const j=T.index,M={index:T.index,input:T.input,stack:[...h,c]};let k=A(...T,M);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?f.lastIndex=j+1:(b!==j&&B.push({type:"text",value:c.value.slice(b,j)}),Array.isArray(k)?B.push(...k):k&&B.push(k),b=j+T[0].length,O=!0),!f.global)break;T=f.exec(c.value)}return O?(b<c.value.length&&B.push({type:"text",value:c.value.slice(b)}),u.children.splice(S,1,...B)):B=[c],S+B.length}}function Zh(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([Xh(i[0]),Gh(i[1])])}return n}function Xh(e){return typeof e=="string"?new RegExp(Uh(e),"g"):e}function Gh(e){return typeof e=="function"?e:function(){return e}}function em(e){ks(e,[/\r?\n|\r/g,nm])}function nm(){return{type:"break"}}function tm(){return function(e){em(e)}}function Es(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function Lx(){}function jx(){}const an=Wn(/[A-Za-z]/),tn=Wn(/[\dA-Za-z]/),rm=Wn(/[#-'*+\--9=?A-Z^-~]/);function Kr(e){return e!==null&&(e<32||e===127)}const Eo=Wn(/\d/),im=Wn(/[\dA-Fa-f]/),om=Wn(/[!-/:-@[-`{-~]/);function de(e){return e!==null&&e<-2}function Le(e){return e!==null&&(e<0||e===32)}function Ee(e){return e===-2||e===-1||e===32}const Qr=Wn(new RegExp("\\p{P}|\\p{S}","u")),it=Wn(/\s/);function Wn(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}const Co="phrasing",So=["autolink","link","image","label"];function am(){return{transforms:[fm],enter:{literalAutolink:sm,literalAutolinkEmail:Bo,literalAutolinkHttp:Bo,literalAutolinkWww:Bo},exit:{literalAutolink:dm,literalAutolinkEmail:pm,literalAutolinkHttp:um,literalAutolinkWww:cm}}}function lm(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Co,notInConstruct:So},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Co,notInConstruct:So},{character:":",before:"[ps]",after:"\\/",inConstruct:Co,notInConstruct:So}]}}function sm(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Bo(e){this.config.enter.autolinkProtocol.call(this,e)}function um(e){this.config.exit.autolinkProtocol.call(this,e)}function cm(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function pm(e){this.config.exit.autolinkEmail.call(this,e)}function dm(e){this.exit(e)}function fm(e){ks(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,hm],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,mm]],{ignore:["link","linkReference"]})}function hm(e,n,t,r,i){let a="";if(!Cs(i)||(/^w/i.test(n)&&(t=n+t,n="",a="http://"),!ym(t)))return!1;const o=Am(t+r);if(!o[0])return!1;const l={type:"link",title:null,url:a+n+o[0],children:[{type:"text",value:n+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function mm(e,n,t,r){return!Cs(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function ym(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function Am(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=Es(e,"(");let a=Es(e,")");for(;r!==-1&&i>a;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),a++;return[e,t]}function Cs(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||it(t)||Qr(t))&&(!n||t!==47)}function wn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Ss.peek=Im;function gm(){return{enter:{gfmFootnoteDefinition:vm,gfmFootnoteDefinitionLabelString:xm,gfmFootnoteCall:Em,gfmFootnoteCallString:Cm},exit:{gfmFootnoteDefinition:km,gfmFootnoteDefinitionLabelString:wm,gfmFootnoteCall:Bm,gfmFootnoteCallString:Sm}}}function bm(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Om,footnoteReference:Ss}}}function vm(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function xm(){this.buffer()}function wm(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.label=n,t.identifier=wn(this.sliceSerialize(e)).toLowerCase()}function km(e){this.exit(e)}function Em(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Cm(){this.buffer()}function Sm(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.label=n,t.identifier=wn(this.sliceSerialize(e)).toLowerCase()}function Bm(e){this.exit(e)}function Ss(e,n,t,r){const i=t.createTracker(r);let a=i.move("[^");const o=t.enter("footnoteReference"),l=t.enter("reference");return a+=i.move(t.safe(t.associationId(e),{...i.current(),before:a,after:"]"})),l(),o(),a+=i.move("]"),a}function Im(){return"["}function Om(e,n,t,r){const i=t.createTracker(r);let a=i.move("[^");const o=t.enter("footnoteDefinition"),l=t.enter("label");return a+=i.move(t.safe(t.associationId(e),{...i.current(),before:a,after:"]"})),l(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(t.indentLines(t.containerFlow(e,i.current()),Pm)),o(),a}function Pm(e,n,t){return n===0?e:(t?"":" ")+e}const _m=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Bs.peek=Mm;function Tm(){return{canContainEols:["delete"],enter:{strikethrough:jm},exit:{strikethrough:Dm}}}function Lm(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:_m}],handlers:{delete:Bs}}}function jm(e){this.enter({type:"delete",children:[]},e)}function Dm(e){this.exit(e)}function Bs(e,n,t,r){const i=t.createTracker(r),a=t.enter("strikethrough");let o=i.move("~~");return o+=t.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function Mm(){return"~"}function zm(e,n={}){const t=(n.align||[]).concat(),r=n.stringLength||Rm,i=[],a=[],o=[],l=[];let s=0,c=-1;for(;++c<e.length;){const b=[],v=[];let S=-1;for(e[c].length>s&&(s=e[c].length);++S<e[c].length;){const O=Fm(e[c][S]);if(n.alignDelimiters!==!1){const B=r(O);v[S]=B,(l[S]===void 0||B>l[S])&&(l[S]=B)}b.push(O)}a[c]=b,o[c]=v}let h=-1;if(typeof t=="object"&&"length"in t)for(;++h<s;)i[h]=Is(t[h]);else{const b=Is(t);for(;++h<s;)i[h]=b}h=-1;const u=[],f=[];for(;++h<s;){const b=i[h];let v="",S="";b===99?(v=":",S=":"):b===108?v=":":b===114&&(S=":");let O=n.alignDelimiters===!1?1:Math.max(1,l[h]-v.length-S.length);const B=v+"-".repeat(O)+S;n.alignDelimiters!==!1&&(O=v.length+O+S.length,O>l[h]&&(l[h]=O),f[h]=O),u[h]=B}a.splice(1,0,u),o.splice(1,0,f),c=-1;const A=[];for(;++c<a.length;){const b=a[c],v=o[c];h=-1;const S=[];for(;++h<s;){const O=b[h]||"";let B="",T="";if(n.alignDelimiters!==!1){const j=l[h]-(v[h]||0),M=i[h];M===114?B=" ".repeat(j):M===99?j%2?(B=" ".repeat(j/2+.5),T=" ".repeat(j/2-.5)):(B=" ".repeat(j/2),T=B):T=" ".repeat(j)}n.delimiterStart!==!1&&!h&&S.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&O==="")&&(n.delimiterStart!==!1||h)&&S.push(" "),n.alignDelimiters!==!1&&S.push(B),S.push(O),n.alignDelimiters!==!1&&S.push(T),n.padding!==!1&&S.push(" "),(n.delimiterEnd!==!1||h!==s-1)&&S.push("|")}A.push(n.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return A.join(`
36
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:t,firstInputs:a,secondInputs:o,stack:c})}},Gd={inputStabilityCheck:"once",identityFunctionCheck:"once"};function ef(e,n=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(n)}function nf(e,n=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(n)}function tf(e,n="expected all items to be functions, instead received the following types: "){if(!e.every(t=>typeof t=="function")){const t=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${n}[${t}]`)}}var Ol=e=>Array.isArray(e)?e:[e];function rf(e){const n=Array.isArray(e[0])?e[0]:e;return tf(n,"createSelector expects all input-selectors to be functions, but received the following types: "),n}function Pl(e,n){const t=[],{length:r}=e;for(let i=0;i<r;i++)t.push(e[i].apply(null,n));return t}var of=(e,n)=>{const{identityFunctionCheck:t,inputStabilityCheck:r}={...Gd,...n};return{identityFunctionCheck:{shouldRun:t==="always"||t==="once"&&e,run:Zd},inputStabilityCheck:{shouldRun:r==="always"||r==="once"&&e,run:Xd}}},af=class{constructor(e){this.value=e}deref(){return this.value}},lf=typeof WeakRef<"u"?WeakRef:af,sf=0,_l=1;function qr(){return{s:sf,v:void 0,o:null,p:null}}function Gi(e,n={}){let t=qr();const{resultEqualityCheck:r}=n;let i,a=0;function o(){var u;let l=t;const{length:s}=arguments;for(let f=0,A=s;f<A;f++){const b=arguments[f];if(typeof b=="function"||typeof b=="object"&&b!==null){let v=l.o;v===null&&(l.o=v=new WeakMap);const S=v.get(b);S===void 0?(l=qr(),v.set(b,l)):l=S}else{let v=l.p;v===null&&(l.p=v=new Map);const S=v.get(b);S===void 0?(l=qr(),v.set(b,l)):l=S}}const c=l;let h;if(l.s===_l?h=l.v:(h=e.apply(null,arguments),a++),c.s=_l,r){const f=((u=i==null?void 0:i.deref)==null?void 0:u.call(i))??i;f!=null&&r(f,h)&&(h=f,a!==0&&a--),i=typeof h=="object"&&h!==null||typeof h=="function"?new lf(h):h}return c.v=h,h}return o.clearCache=()=>{t=qr(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Tl(e,...n){const t=typeof e=="function"?{memoize:e,memoizeOptions:n}:e,r=(...i)=>{let a=0,o=0,l,s={},c=i.pop();typeof c=="object"&&(s=c,c=i.pop()),ef(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const h={...t,...s},{memoize:u,memoizeOptions:f=[],argsMemoize:A=Gi,argsMemoizeOptions:b=[],devModeChecks:v={}}=h,S=Ol(f),O=Ol(b),B=rf(i),T=u(function(){return a++,c.apply(null,arguments)},...S);let j=!0;const M=A(function(){o++;const F=Pl(B,arguments);if(l=T.apply(null,F),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:W,inputStabilityCheck:ne}=of(j,v);if(W.shouldRun&&W.run(c,F,l),ne.shouldRun){const L=Pl(B,arguments);ne.run({inputSelectorResults:F,inputSelectorResultsCopy:L},{memoize:u,memoizeOptions:S},arguments)}j&&(j=!1)}return l},...O);return Object.assign(M,{resultFunc:c,memoizedResultFunc:T,dependencies:B,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>l,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:u,argsMemoize:A})};return Object.assign(r,{withTypes:()=>r}),r}var uf=Tl(Gi),cf=Object.assign((e,n=uf)=>{nf(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const t=Object.keys(e),r=t.map(a=>e[a]);return n(r,(...a)=>a.reduce((o,l,s)=>(o[t[s]]=l,o),{}))},{withTypes:()=>cf}),pf=(...e)=>{const n=Tl(...e),t=Object.assign((...r)=>{const i=n(...r),a=(o,...l)=>i($n(o)?Sl(o):o,...l);return Object.assign(a,i),a},{withTypes:()=>t});return t};pf(Gi);var df=e=>e&&typeof e.match=="function";function Ln(e,n){function t(...r){if(n){let i=n(...r);if(!i)throw new Error(process.env.NODE_ENV==="production"?We(0):"prepareAction did not return an object");return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return t.toString=()=>`${e}`,t.type=e,t.match=r=>Nd(r)&&r.type===e,t}function Ll(e){return Tn(e)?Il(e,()=>{}):e}function jl(e,n,t){if(e.has(n)){let i=e.get(n);return t.update&&(i=t.update(i,n,e),e.set(n,i)),i}if(!t.insert)throw new Error(process.env.NODE_ENV==="production"?We(10):"No insert provided for key not already in map");const r=t.insert(n,e);return e.set(n,r),r}process.env.NODE_ENV;function Dl(e){const n={},t=[];let r;const i={addCase(a,o){if(process.env.NODE_ENV!=="production"){if(t.length>0)throw new Error(process.env.NODE_ENV==="production"?We(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error(process.env.NODE_ENV==="production"?We(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const l=typeof a=="string"?a:a.type;if(!l)throw new Error(process.env.NODE_ENV==="production"?We(28):"`builder.addCase` cannot be called with an empty action type");if(l in n)throw new Error(process.env.NODE_ENV==="production"?We(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${l}'`);return n[l]=o,i},addMatcher(a,o){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?We(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return t.push({matcher:a,reducer:o}),i},addDefaultCase(a){if(process.env.NODE_ENV!=="production"&&r)throw new Error(process.env.NODE_ENV==="production"?We(31):"`builder.addDefaultCase` can only be called once");return r=a,i}};return e(i),[n,t,r]}function ff(e){return typeof e=="function"}function hf(e,n){if(process.env.NODE_ENV!=="production"&&typeof n=="object")throw new Error(process.env.NODE_ENV==="production"?We(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let[t,r,i]=Dl(n),a;if(ff(e))a=()=>Ll(e());else{const l=Ll(e);a=()=>l}function o(l=a(),s){let c=[t[s.type],...r.filter(({matcher:h})=>h(s)).map(({reducer:h})=>h)];return c.filter(h=>!!h).length===0&&(c=[i]),c.reduce((h,u)=>{if(u)if($n(h)){const A=u(h,s);return A===void 0?h:A}else{if(Tn(h))return Il(h,f=>u(f,s));{const f=u(h,s);if(f===void 0){if(h===null)return h;throw new Error(process.env.NODE_ENV==="production"?We(9):"A case reducer on a non-draftable value must not return undefined")}return f}}return h},l)}return o.getInitialState=a,o}var mf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ml=(e=21)=>{let n="",t=e;for(;t--;)n+=mf[Math.random()*64|0];return n},yf=(e,n)=>df(e)?e.match(n):e(n);function Af(...e){return n=>e.some(t=>yf(t,n))}var gf=["name","message","stack","code"],eo=class{constructor(e,n){Ea(this,"_type");this.payload=e,this.meta=n}},zl=class{constructor(e,n){Ea(this,"_type");this.payload=e,this.meta=n}},bf=e=>{if(typeof e=="object"&&e!==null){const n={};for(const t of gf)typeof e[t]=="string"&&(n[t]=e[t]);return n}return{message:String(e)}},Fl=(()=>{function e(n,t,r){const i=Ln(n+"/fulfilled",(s,c,h,u)=>({payload:s,meta:{...u||{},arg:h,requestId:c,requestStatus:"fulfilled"}})),a=Ln(n+"/pending",(s,c,h)=>({payload:void 0,meta:{...h||{},arg:c,requestId:s,requestStatus:"pending"}})),o=Ln(n+"/rejected",(s,c,h,u,f)=>({payload:u,error:(r&&r.serializeError||bf)(s||"Rejected"),meta:{...f||{},arg:h,requestId:c,rejectedWithValue:!!u,requestStatus:"rejected",aborted:(s==null?void 0:s.name)==="AbortError",condition:(s==null?void 0:s.name)==="ConditionError"}}));function l(s){return(c,h,u)=>{const f=r!=null&&r.idGenerator?r.idGenerator(s):Ml(),A=new AbortController;let b,v;function S(B){v=B,A.abort()}const O=async function(){var j,M;let B;try{let k=(j=r==null?void 0:r.condition)==null?void 0:j.call(r,s,{getState:h,extra:u});if(xf(k)&&(k=await k),k===!1||A.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const F=new Promise((W,ne)=>{b=()=>{ne({name:"AbortError",message:v||"Aborted"})},A.signal.addEventListener("abort",b)});c(a(f,s,(M=r==null?void 0:r.getPendingMeta)==null?void 0:M.call(r,{requestId:f,arg:s},{getState:h,extra:u}))),B=await Promise.race([F,Promise.resolve(t(s,{dispatch:c,getState:h,extra:u,requestId:f,signal:A.signal,abort:S,rejectWithValue:(W,ne)=>new eo(W,ne),fulfillWithValue:(W,ne)=>new zl(W,ne)})).then(W=>{if(W instanceof eo)throw W;return W instanceof zl?i(W.payload,f,s,W.meta):i(W,f,s)})])}catch(k){B=k instanceof eo?o(null,f,s,k.payload,k.meta):o(k,f,s)}finally{b&&A.signal.removeEventListener("abort",b)}return r&&!r.dispatchConditionRejection&&o.match(B)&&B.meta.condition||c(B),B}();return Object.assign(O,{abort:S,requestId:f,arg:s,unwrap(){return O.then(vf)}})}}return Object.assign(l,{pending:a,rejected:o,fulfilled:i,settled:Af(o,i),typePrefix:n})}return e.withTypes=()=>e,e})();function vf(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function xf(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var wf=Symbol.for("rtk-slice-createasyncthunk");function kf(e,n){return`${e}/${n}`}function Ef({creators:e}={}){var t;const n=(t=e==null?void 0:e.asyncThunk)==null?void 0:t[wf];return function(i){const{name:a,reducerPath:o=a}=i;if(!a)throw new Error(process.env.NODE_ENV==="production"?We(11):"`name` is a required option for createSlice");typeof process<"u"&&process.env.NODE_ENV==="development"&&i.initialState===void 0&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const l=(typeof i.reducers=="function"?i.reducers(Sf()):i.reducers)||{},s=Object.keys(l),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(T,j){const M=typeof T=="string"?T:T.type;if(!M)throw new Error(process.env.NODE_ENV==="production"?We(12):"`context.addCase` cannot be called with an empty action type");if(M in c.sliceCaseReducersByType)throw new Error(process.env.NODE_ENV==="production"?We(13):"`context.addCase` cannot be called with two reducers for the same action type: "+M);return c.sliceCaseReducersByType[M]=j,h},addMatcher(T,j){return c.sliceMatchers.push({matcher:T,reducer:j}),h},exposeAction(T,j){return c.actionCreators[T]=j,h},exposeCaseReducer(T,j){return c.sliceCaseReducersByName[T]=j,h}};s.forEach(T=>{const j=l[T],M={reducerName:T,type:kf(a,T),createNotation:typeof i.reducers=="function"};If(j)?Pf(M,j,h,n):Bf(M,j,h)});function u(){if(process.env.NODE_ENV!=="production"&&typeof i.extraReducers=="object")throw new Error(process.env.NODE_ENV==="production"?We(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[T={},j=[],M=void 0]=typeof i.extraReducers=="function"?Dl(i.extraReducers):[i.extraReducers],k={...T,...c.sliceCaseReducersByType};return hf(i.initialState,F=>{for(let W in k)F.addCase(W,k[W]);for(let W of c.sliceMatchers)F.addMatcher(W.matcher,W.reducer);for(let W of j)F.addMatcher(W.matcher,W.reducer);M&&F.addDefaultCase(M)})}const f=T=>T,A=new Map;let b;function v(T,j){return b||(b=u()),b(T,j)}function S(){return b||(b=u()),b.getInitialState()}function O(T,j=!1){function M(F){let W=F[T];if(typeof W>"u"){if(j)W=S();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?We(15):"selectSlice returned undefined for an uninjected slice reducer")}return W}function k(F=f){const W=jl(A,j,{insert:()=>new WeakMap});return jl(W,F,{insert:()=>{const ne={};for(const[L,Q]of Object.entries(i.selectors??{}))ne[L]=Cf(Q,F,S,j);return ne}})}return{reducerPath:T,getSelectors:k,get selectors(){return k(M)},selectSlice:M}}const B={name:a,reducer:v,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:S,...O(o),injectInto(T,{reducerPath:j,...M}={}){const k=j??o;return T.inject({reducerPath:k,reducer:v},M),{...B,...O(k,!0)}}};return B}}function Cf(e,n,t,r){function i(a,...o){let l=n(a);if(typeof l>"u"){if(r)l=t();else if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV==="production"?We(16):"selectState returned undefined for an uninjected slice reducer")}return e(l,...o)}return i.unwrapped=e,i}var Rl=Ef();function Sf(){function e(n,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:n,...t}}return e.withTypes=()=>e,{reducer(n){return Object.assign({[n.name](...t){return n(...t)}}[n.name],{_reducerDefinitionType:"reducer"})},preparedReducer(n,t){return{_reducerDefinitionType:"reducerWithPrepare",prepare:n,reducer:t}},asyncThunk:e}}function Bf({type:e,reducerName:n,createNotation:t},r,i){let a,o;if("reducer"in r){if(t&&!Of(r))throw new Error(process.env.NODE_ENV==="production"?We(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(n,a).exposeAction(n,o?Ln(e,o):Ln(e))}function If(e){return e._reducerDefinitionType==="asyncThunk"}function Of(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Pf({type:e,reducerName:n},t,r,i){if(!i)throw new Error(process.env.NODE_ENV==="production"?We(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:o,pending:l,rejected:s,settled:c,options:h}=t,u=i(e,a,h);r.exposeAction(n,u),o&&r.addCase(u.fulfilled,o),l&&r.addCase(u.pending,l),s&&r.addCase(u.rejected,s),c&&r.addMatcher(u.settled,c),r.exposeCaseReducer(n,{fulfilled:o||Ur,pending:l||Ur,rejected:s||Ur,settled:c||Ur})}function Ur(){}var _f=(e,n)=>{if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?We(32):`${n} is not a function`)},no="listenerMiddleware",Tf=e=>{let{type:n,actionCreator:t,matcher:r,predicate:i,effect:a}=e;if(n)i=Ln(n).match;else if(t)n=t.type,i=t.match;else if(r)i=r;else if(!i)throw new Error(process.env.NODE_ENV==="production"?We(21):"Creating or removing a listener requires one of the known fields for matching an action");return _f(a,"options.listener"),{predicate:i,type:n,effect:a}},Lf=Object.assign(e=>{const{type:n,predicate:t,effect:r}=Tf(e);return{id:Ml(),effect:r,type:n,predicate:t,pending:new Set,unsubscribe:()=>{throw new Error(process.env.NODE_ENV==="production"?We(22):"Unsubscribe not initialized")}}},{withTypes:()=>Lf}),jf=Object.assign(Ln(`${no}/add`),{withTypes:()=>jf});Ln(`${no}/removeAll`);var Df=Object.assign(Ln(`${no}/remove`),{withTypes:()=>Df});function We(e){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. `}const Mf={showLogin:!1},to=Fl("user/getUserInfo",async()=>{if(localStorage.getItem("token"))return await cl()}),Nl=Rl({name:"user",initialState:Mf,reducers:{loginOut(e){localStorage.removeItem("token"),e.isLogin=!1,e.userInfo=void 0},showLogin(e){e.showLogin=!0},hideLogin(e){e.showLogin=!1}},extraReducers:e=>{e.addCase(to.fulfilled,(n,t)=>{t.payload!=null?(n.isLogin=!0,n.userInfo=t.payload):n.isLogin=!1}),e.addCase(to.rejected,n=>{n.isLogin=!1,n.userInfo=void 0})}}),zf=Nl.actions,Ff=Nl.reducer,ro=(e,n)=>n.some(t=>e instanceof t);let ql,Ul;function Rf(){return ql||(ql=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Nf(){return Ul||(Ul=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const io=new WeakMap,oo=new WeakMap,Hr=new WeakMap;function qf(e){const n=new Promise((t,r)=>{const i=()=>{e.removeEventListener("success",a),e.removeEventListener("error",o)},a=()=>{t(rt(e.result)),i()},o=()=>{r(e.error),i()};e.addEventListener("success",a),e.addEventListener("error",o)});return Hr.set(n,e),n}function Uf(e){if(io.has(e))return;const n=new Promise((t,r)=>{const i=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",o),e.removeEventListener("abort",o)},a=()=>{t(),i()},o=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",a),e.addEventListener("error",o),e.addEventListener("abort",o)});io.set(e,n)}let ao={get(e,n,t){if(e instanceof IDBTransaction){if(n==="done")return io.get(e);if(n==="store")return t.objectStoreNames[1]?void 0:t.objectStore(t.objectStoreNames[0])}return rt(e[n])},set(e,n,t){return e[n]=t,!0},has(e,n){return e instanceof IDBTransaction&&(n==="done"||n==="store")?!0:n in e}};function Hl(e){ao=e(ao)}function Hf(e){return Nf().includes(e)?function(...n){return e.apply(lo(this),n),rt(this.request)}:function(...n){return rt(e.apply(lo(this),n))}}function $f(e){return typeof e=="function"?Hf(e):(e instanceof IDBTransaction&&Uf(e),ro(e,Rf())?new Proxy(e,ao):e)}function rt(e){if(e instanceof IDBRequest)return qf(e);if(oo.has(e))return oo.get(e);const n=$f(e);return n!==e&&(oo.set(e,n),Hr.set(n,e)),n}const lo=e=>Hr.get(e);function Wf(e,n,{blocked:t,upgrade:r,blocking:i,terminated:a}={}){const o=indexedDB.open(e,n),l=rt(o);return r&&o.addEventListener("upgradeneeded",s=>{r(rt(o.result),s.oldVersion,s.newVersion,rt(o.transaction),s)}),t&&o.addEventListener("blocked",s=>t(s.oldVersion,s.newVersion,s)),l.then(s=>{a&&s.addEventListener("close",()=>a()),i&&s.addEventListener("versionchange",c=>i(c.oldVersion,c.newVersion,c))}).catch(()=>{}),l}const Yf=["get","getKey","getAll","getAllKeys","count"],Vf=["put","add","delete","clear"],so=new Map;function $l(e,n){if(!(e instanceof IDBDatabase&&!(n in e)&&typeof n=="string"))return;if(so.get(n))return so.get(n);const t=n.replace(/FromIndex$/,""),r=n!==t,i=Vf.includes(t);if(!(t in(r?IDBIndex:IDBObjectStore).prototype)||!(i||Yf.includes(t)))return;const a=async function(o,...l){const s=this.transaction(o,i?"readwrite":"readonly");let c=s.store;return r&&(c=c.index(l.shift())),(await Promise.all([c[t](...l),i&&s.done]))[0]};return so.set(n,a),a}Hl(e=>({...e,get:(n,t,r)=>$l(n,t)||e.get(n,t,r),has:(n,t)=>!!$l(n,t)||e.has(n,t)}));const Kf=["continue","continuePrimaryKey","advance"],Wl={},uo=new WeakMap,Yl=new WeakMap,Qf={get(e,n){if(!Kf.includes(n))return e[n];let t=Wl[n];return t||(t=Wl[n]=function(...r){uo.set(this,Yl.get(this)[n](...r))}),t}};async function*Jf(...e){let n=this;if(n instanceof IDBCursor||(n=await n.openCursor(...e)),!n)return;n=n;const t=new Proxy(n,Qf);for(Yl.set(t,n),Hr.set(t,lo(n));n;)yield t,n=await(uo.get(t)||n.continue()),uo.delete(t)}function Vl(e,n){return n===Symbol.asyncIterator&&ro(e,[IDBIndex,IDBObjectStore,IDBCursor])||n==="iterate"&&ro(e,[IDBIndex,IDBObjectStore])}Hl(e=>({...e,get(n,t,r){return Vl(n,t)?Jf:e.get(n,t,r)},has(n,t){return Vl(n,t)||e.has(n,t)}}));const bt="task",$t=()=>Wf("zyjj",2,{upgrade(e){e.createObjectStore(bt)}}),Zf=async(e,n=bt)=>(await $t()).put(n,e,e.id),Xf=async(e=bt)=>(await $t()).getAll(e),Gf=async(e,n=bt)=>(await $t()).get(n,e),eh=async(e,n,t=bt)=>(await $t()).put(t,n,e),nh=async(e,n=bt)=>(await $t()).delete(n,e),th={taskCallback:{},listenerCallback:[]},Kl=Fl("mqtt/initMqtt",async(e,{dispatch:n})=>{const t=await dl();console.log("[mqtt] mqtt info",t);const r=t.topic,i=mt.connect(`mqtt://${t.host}`,{keepalive:60,clientId:t.client_id,username:t.username,password:t.password,protocol:"wss",reconnectPeriod:3e3});return i.on("connect",a=>{console.log("[mqtt] connect success",a),i.subscribe(r,{qos:1})}),i.on("message",(a,o,l)=>{console.log("[mqtt] on message",a,o.toString(),l),a===r&&n(Jl.onMqttResponse(JSON.parse(o.toString())))}),i.on("error",a=>console.log("[mqtt] err",a)),i.on("close",()=>console.log("[mqtt] close")),i.on("disconnect",()=>console.log("[mqtt] disconnect")),i}),Ql=Rl({name:"mqtt",initialState:th,reducers:{onMqttResponse(e,n){const t=n.payload;t.task_id in e.taskCallback&&e.taskCallback[t.task_id](t)&&(delete e.taskCallback[t.task_id],console.log("[mqtt] delete callback",t.task_id)),e.listenerCallback.forEach(r=>r(t))},closeClient(e){var n;console.log("[mqtt] close client"),(n=e.client)==null||n.end()},addMqttCallback(e,n){e.taskCallback[n.payload.task_id]=n.payload.callback},addMqttEventCallback(e,n){const t=n.payload;e.taskCallback[t.task_id]=r=>{var i,a,o;return(i=t.on_detail)==null||i.call(t,r),r.event_type==et.Success?(a=t.on_finish)==null||a.call(t,r.data):r.event_type==et.Error&&((o=t.on_error)==null||o.call(t,r.data)),[et.Success,et.Error].includes(r.event_type)}},addMqttListener(e,n){e.listenerCallback.push(n.payload)}},extraReducers:e=>{e.addCase(Kl.fulfilled,(n,t)=>{n.client=t.payload})}}),Jl=Ql.actions,rh=Ql.reducer;var co;(function(e){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.OpenTool=11]="OpenTool",e[e.OpenHelp=12]="OpenHelp"})(co||(co={}));var po;(function(e){e[e.Add=0]="Add",e[e.Update=1]="Update",e[e.Output=2]="Output",e[e.Cancel=4]="Cancel",e[e.Restore=5]="Restore",e[e.Delete=6]="Delete"})(po||(po={}));var fo;(function(e){e[e.Create=0]="Create",e[e.Start=1]="Start",e[e.Cancel=2]="Cancel",e[e.Restore=3]="Restore",e[e.Delete=4]="Delete"})(fo||(fo={}));const $r=60;function Zl(e){const[n,t]=re.useState($r),r=re.useRef();re.useEffect(()=>{n==0&&(clearInterval(r.current),t($r))},[n]);const i=()=>{e.callback().then(()=>{te.Message.success("获取验证码成功,请注意查收邮箱"),t(a=>a-1),r.current=setInterval(()=>{t(a=>a-1)},1e3)})};return q.jsxs(te.Space,{children:[q.jsx(te.Input,{onChange:e.onChange,placeholder:"输入验证码"}),q.jsx(te.Button,{disabled:n!=$r,type:"primary",onClick:i,children:n!=$r?`剩余${n}秒`:"获取验证码"})]})}const ih=e=>{const[n,t]=re.useState(""),[r,i]=re.useState(!0),a=l=>{r?hd(l).then(s=>{te.Message.success("登录成功"),localStorage.setItem("token",s),e.loginSuccess(s)}):yd(l).then(()=>{te.Message.success("注册成功,请登录"),i(!0)})},o=()=>ul(n);return q.jsxs(te.Form,{autoComplete:"off",onSubmit:a,children:[q.jsx(te.Form.Item,{rules:[{required:!0,type:"email",message:"输入正确的邮箱格式"}],field:"email",label:"邮箱",children:q.jsx(te.Input,{onChange:t,placeholder:"输入邮箱"})}),q.jsx(te.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],field:"password",label:"密码",children:q.jsx(te.Input.Password,{placeholder:"输入密码"})}),r?null:q.jsx(te.Form.Item,{label:"验证码",field:"token",rules:[{required:!0,message:"验证码必填"}],children:q.jsx(Zl,{callback:o})}),q.jsx(te.Form.Item,{wrapperCol:{offset:5},children:q.jsxs(te.Space,{children:[q.jsx(te.Button,{type:"primary",htmlType:"submit",children:r?"立即登录":"注册账号"}),q.jsx(te.Button,{type:"text",onClick:()=>i(l=>!l),children:r?"新用户?":"已有账号?"}),r?q.jsx(te.Button,{onClick:()=>e.onForget(),type:"text",children:"忘记密码?"}):null]})})]})};function oh(e){const[n,t]=re.useState(""),r=a=>{if(a.password_repeat!=a.password){te.Message.error("新旧密码不一致");return}const{email:o,password:l,token:s}=a;Ad({email:o,password:l,token:s}).then(()=>{te.Message.success("密码重置成功,请登录"),e.onLogin()})},i=()=>ul(n);return q.jsx("div",{children:q.jsxs(te.Form,{style:{width:370},autoComplete:"off",onSubmit:r,children:[q.jsx(te.Form.Item,{rules:[{required:!0,type:"email",message:"输入正确的邮箱格式"}],label:"邮箱",field:"email",children:q.jsx(te.Input,{onChange:t,placeholder:"输入邮箱"})}),q.jsx(te.Form.Item,{label:"验证码",field:"token",rules:[{required:!0,message:"验证码必填"}],children:q.jsx(Zl,{callback:i})}),q.jsx(te.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],label:"新密码",field:"password",children:q.jsx(te.Input,{type:"password",placeholder:"输入新密码"})}),q.jsx(te.Form.Item,{rules:[{required:!0,type:"string",minLength:8,message:"密码不能小于8位"}],label:"重复",field:"password_repeat",children:q.jsx(te.Input,{type:"password",placeholder:"再输入一遍新密码"})}),q.jsx(te.Form.Item,{wrapperCol:{offset:5},children:q.jsxs(te.Space,{children:[q.jsx(te.Button,{type:"primary",htmlType:"submit",children:"立即重置"}),q.jsx(te.Button,{onClick:()=>e.onLogin(),type:"text",children:"重新登录"})]})})]})})}function ah(e){const[n,t]=re.useState(!1);return q.jsx(te.Modal,{onCancel:e.onCancel,visible:e.visible,title:"用户登录",footer:null,children:n?q.jsx(oh,{onLogin:()=>t(!1)}):q.jsx(ih,{loginSuccess:e.loginSuccess,onForget:()=>t(!0)})})}function lh(e){const[n,t]=re.useState([]),[r,i]=re.useState(!1),[a,o]=re.useState({sizeCanChange:!0,showTotal:!0,total:0,pageSize:e.pageSize||10,current:1,pageSizeChangeResetCurrent:!0}),[l]=te.Form.useForm(),s=()=>{i(!0),e.data(a.current,a.pageSize,l.getFieldsValue()).then(c=>{t(c.list),o(h=>(h.total=c.total,h)),i(!1)})};return re.useEffect(()=>{s()},[a.current,a.pageSize]),re.useEffect(()=>{s(),e.refresh&&e.refresh(()=>s())},[]),q.jsxs(q.Fragment,{children:[e.search?q.jsxs(te.Form,{form:l,layout:"inline",onSubmit:s,children:[e.search.map(c=>{let h=q.jsx(q.Fragment,{});const u=c.data;return c.tp=="input"?h=q.jsx(te.Input,{allowClear:!0,placeholder:u.placeholder}):c.tp=="custom"&&(h=c.ele),q.jsx(te.Form.Item,{label:c.label,field:c.field,children:h},c.field)}),q.jsx(te.Form.Item,{children:q.jsx(te.Button,{htmlType:"submit",children:"搜索"})})]}):null,q.jsx(te.Table,{loading:r,pagination:a,onChange:c=>o({...a,current:(c==null?void 0:c.current)||a.current,pageSize:(c==null?void 0:c.pageSize)||a.pageSize}),rowKey:e.id||"id",columns:e.columns,data:n})]})}const sh=re.lazy(()=>Promise.resolve().then(()=>Ch)),uh=re.lazy(()=>Promise.resolve().then(()=>Bh)),ch=re.lazy(()=>Promise.resolve().then(()=>Oh)),Xl=re.lazy(()=>Promise.resolve().then(()=>jA)),ph=re.lazy(()=>Promise.resolve().then(()=>MA)),dh=re.lazy(()=>Promise.resolve().then(()=>FA)),fh=re.lazy(()=>Promise.resolve().then(()=>Au)),hh=re.lazy(()=>Promise.resolve().then(()=>qA)),mh=re.lazy(()=>Promise.resolve().then(()=>HA)),yh=re.lazy(()=>Promise.resolve().then(()=>WA)),Ah=re.lazy(()=>Promise.resolve().then(()=>VA)),gh=re.lazy(()=>Promise.resolve().then(()=>Au));function bh(e){const{tp:n,isInput:t,data:r,value:i,onChange:a}=e;switch(n){case on.Input:return q.jsx(sh,{value:i,onChange:a,data:r});case on.Select:return q.jsx(uh,{value:i,onChange:a,data:r});case on.TextArea:return t?q.jsx(ch,{value:i,onChange:a,data:r}):q.jsx(Xl,{value:i,onChange:a,data:r});case on.FileUpload:return q.jsx(dh,{value:i,onChange:a,data:r});case on.Slider:return q.jsx(gh,{value:i,onChange:a,data:r});case on.Audio:return q.jsx(ph,{value:i,onChange:a,data:r});case on.Number:return q.jsx(fh,{value:i,onChange:a,data:r});case on.ImageList:return q.jsx(hh,{value:i,onChange:a,data:r});case on.Image:return q.jsx(mh,{value:i,onChange:a,data:r});case on.Alert:return q.jsx(yh,{value:i,onChange:a,data:r});case on.Video:return q.jsx(Ah,{value:i,onChange:a,data:r});case on.MarkDown:return q.jsx(Xl,{value:i,onChange:a,data:r});default:return q.jsx("div",{children:"组件不支持,请升级到最新版本!"})}}const vh={GetAllTool:xd,ToolInc:kd,UpdateUserInfo:gd,GetAppInfo:md,CostPoint:bd,GetUserInfo:cl,UserDownloadMaterial:Od,GetMqttTaskClientInfo:dl,AddTask:Sd,GetTaskInfo:Bd,GetTencentCosInfo:pl,GetMaterialUrl:Pd,GetMaterialTagList:Id,GetToolList:vd,GetToolTagList:Ed,GetToolDetail:wd},xh={ToolType:zi,LocalActionReqType:Ti,LocalActionResType:Li,MQTTEventType:et,FileSource:Rt,LocalTaskStatus:ji,LocalTaskEventType:Di,ToolTaskType:Ni,FfmpegActionType:qi,CloudTaskStatus:Fi,TaskType:Mi,LabElementType:on,ToolConfigType:Ri,ToolEventType:co,WorkActionType:fo,TaskActionType:po},wh={render:{renderTime:Md,renderEllipsis:Fd,renderCopy:zd},utils:{file2ToolParamFile:ol,seconds2TimeStr:sd,object2query:al,paramReplace:dd,object2urlParam:fd,convertFileSize:ld,downloadFile:ll,downloadFileDirect:sl},cloud:{getTencentCosInfo:ud,getAliYunOssInfo:cd},db:{addTask:Zf,getAllData:Xf,getData:Gf,updateData:eh,deleteData:nh}},kh={UserReducer:Ff,UserAction:zf,GetUserInfo:to,MqttReducer:rh,MqttAction:Jl,InitMqtt:Kl};function Eh(e){var n;return q.jsx(te.Input,{value:e.value,onChange:e.onChange,placeholder:(n=e.data)==null?void 0:n.placeholder})}const Ch=Object.freeze(Object.defineProperty({__proto__:null,default:Eh},Symbol.toStringTag,{value:"Module"}));function Sh(e){var n;return q.jsx(te.Select,{value:e.value,onChange:e.onChange,children:(n=e.data)==null?void 0:n.data.map((t,r)=>q.jsx(te.Select.Option,{value:t.value,children:t.label},r))})}const Bh=Object.freeze(Object.defineProperty({__proto__:null,default:Sh},Symbol.toStringTag,{value:"Module"}));function Ih(e){var n,t;return q.jsx(te.Input.TextArea,{value:e.value,onChange:e.onChange,rows:10,maxLength:(n=e.data)==null?void 0:n.max_len,showWordLimit:!0,placeholder:(t=e.data)==null?void 0:t.placeholder})}const Oh=Object.freeze(Object.defineProperty({__proto__:null,default:Ih},Symbol.toStringTag,{value:"Module"}));function xn(){return xn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},xn.apply(this,arguments)}function Wt(e){"@babel/helpers - typeof";return Wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Wt(e)}function Ph(e,n){if(Wt(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,n||"default");if(Wt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function _h(e){var n=Ph(e,"string");return Wt(n)=="symbol"?n:n+""}function jn(e,n,t){return n=_h(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Dn=re.createContext({prefixCls:"arco"});function Gl(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function es(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Gl(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Gl(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Th(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=es(es({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-check-circle")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m15 22 7 7 11.5-11.5M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"}))}var ho=re.forwardRef(Th);ho.defaultProps={isIcon:!0},ho.displayName="IconCheckCircle";function ns(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ts(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ns(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ns(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Lh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ts(ts({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-close-circle")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m17.643 17.643 6.364 6.364m0 0 6.364 6.364m-6.364-6.364 6.364-6.364m-6.364 6.364-6.364 6.364M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"}))}var mo=re.forwardRef(Lh);mo.defaultProps={isIcon:!0},mo.displayName="IconCloseCircle";function rs(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function is(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?rs(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):rs(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function jh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=is(is({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-download")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6"}))}var yo=re.forwardRef(jh);yo.defaultProps={isIcon:!0},yo.displayName="IconDownload";function os(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function as(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?os(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):os(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Dh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=as(as({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-eye")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M24 37c6.627 0 12.627-4.333 18-13-5.373-8.667-11.373-13-18-13-6.627 0-12.627 4.333-18 13 5.373 8.667 11.373 13 18 13Z",clipRule:"evenodd"}),re.createElement("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"}))}var Ao=re.forwardRef(Dh);Ao.defaultProps={isIcon:!0},Ao.displayName="IconEye";function ls(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ss(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ls(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ls(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Mh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ss(ss({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-launch")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M41 26v14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h14M19.822 28.178 39.899 8.1M41 20V7H28"}))}var go=re.forwardRef(Mh);go.defaultProps={isIcon:!0},go.displayName="IconLaunch";function us(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function cs(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?us(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):us(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function zh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=cs(cs({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-upload")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6"}))}var bo=re.forwardRef(zh);bo.defaultProps={isIcon:!0},bo.displayName="IconUpload";function ps(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ds(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ps(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ps(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Fh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ds(ds({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-copy")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z"}))}var vo=re.forwardRef(Fh);vo.defaultProps={isIcon:!0},vo.displayName="IconCopy";function fs(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function hs(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?fs(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):fs(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Rh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=hs(hs({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-edit")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36"}))}var xo=re.forwardRef(Rh);xo.defaultProps={isIcon:!0},xo.displayName="IconEdit";function ms(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ys(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ms(Object(t),!0).forEach(function(r){jn(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ms(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Nh(e,n){var t=re.useContext(Dn),r=t.prefixCls,i=r===void 0?"arco":r,a=e.spin,o=e.className,l=ys(ys({"aria-hidden":!0,focusable:!1,ref:n},e),{},{className:"".concat(o?o+" ":"").concat(i,"-icon ").concat(i,"-icon-loading")});return a&&(l.className="".concat(l.className," ").concat(i,"-icon-loading")),delete l.spin,delete l.isIcon,re.createElement("svg",xn({fill:"none",stroke:"currentColor",strokeWidth:"4",viewBox:"0 0 48 48"},l),re.createElement("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6"}))}var wo=re.forwardRef(Nh);wo.defaultProps={isIcon:!0},wo.displayName="IconLoading";const Wr=e=>{const[n,t]=re.useState(e.icon),[r,i]=re.useState(e.tip),[a,o]=re.useState(!1);re.useEffect(()=>{t(e.icon)},[e.icon]);const l=(c,h)=>{e.noSuccess||(i(c),t(h),setTimeout(()=>{t(e.icon),i(e.tip)},1e3))},s=()=>{e.onClick&&!a&&(l("执行中",q.jsx(wo,{})),o(!0),e.onClick().then(()=>l("成功",q.jsx(ho,{style:{color:"green"}}))).catch(c=>l(`${c}`,q.jsx(mo,{style:{color:"red"}}))).finally(()=>o(!1)))};return q.jsx(te.Tooltip,{content:r,children:q.jsx("div",{className:"zyjj-small-icon",onClick:s,children:n})})},qh=e=>q.jsx(Wr,{icon:q.jsx(vo,{}),tip:"拷贝",onClick:()=>navigator.clipboard.writeText(e.value||"")}),As=e=>q.jsx(Wr,{icon:q.jsx(go,{}),tip:"新窗口打开",onClick:async()=>{window.open(e.value)}}),gs=e=>q.jsx(Wr,{icon:q.jsx(yo,{}),tip:"下载",onClick:async()=>ll(e.value||"")}),bs=e=>{const{link:n}=e;return n?q.jsxs(te.Space,{size:"mini",style:{marginLeft:5,width:"100%",justifyContent:"center"},align:"center",direction:"horizontal",children:[q.jsx(gs,{value:n}),q.jsx(As,{value:n})]}):q.jsx(q.Fragment,{})},vs=e=>q.jsx(te.Image,{style:{borderRadius:5},referrerPolicy:"no-referrer",width:"100%",src:e.src,previewProps:{actions:[{getContainer:()=>q.jsx(gs,{value:e.src},"download"),content:q.jsx(q.Fragment,{}),key:"download"},{getContainer:()=>q.jsx(As,{value:e.src},"launch"),content:q.jsx(q.Fragment,{}),key:"launch"}],actionsLayout:["download","launch"]}});function Uh(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Yr=function(e){if(e==null)return Yh;if(typeof e=="function")return Vr(e);if(typeof e=="object")return Array.isArray(e)?Hh(e):$h(e);if(typeof e=="string")return Wh(e);throw new Error("Expected function, string, or object as test")};function Hh(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Yr(e[t]);return Vr(r);function r(...i){let a=-1;for(;++a<n.length;)if(n[a].apply(this,i))return!0;return!1}}function $h(e){const n=e;return Vr(t);function t(r){const i=r;let a;for(a in e)if(i[a]!==n[a])return!1;return!0}}function Wh(e){return Vr(n);function n(t){return t&&t.type===e}}function Vr(e){return n;function n(t,r,i){return!!(Vh(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Yh(){return!0}function Vh(e){return e!==null&&typeof e=="object"&&"type"in e}function Tx(e){return e}const xs=[],Kh=!0,ko=!1,Qh="skip";function ws(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const a=Yr(i),o=r?-1:1;l(e,void 0,[])();function l(s,c,h){const u=s&&typeof s=="object"?s:{};if(typeof u.type=="string"){const A=typeof u.tagName=="string"?u.tagName:typeof u.name=="string"?u.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(s.type+(A?"<"+A+">":""))+")"})}return f;function f(){let A=xs,b,v,S;if((!n||a(s,c,h[h.length-1]||void 0))&&(A=Jh(t(s,h)),A[0]===ko))return A;if("children"in s&&s.children){const O=s;if(O.children&&A[0]!==Qh)for(v=(r?O.children.length:-1)+o,S=h.concat(O);v>-1&&v<O.children.length;){const B=O.children[v];if(b=l(B,v,S)(),b[0]===ko)return b;v=typeof b[1]=="number"?b[1]:v+o}}return A}}}function Jh(e){return Array.isArray(e)?e:typeof e=="number"?[Kh,e]:e==null?xs:[e]}function ks(e,n,t){const i=Yr((t||{}).ignore||[]),a=Zh(n);let o=-1;for(;++o<a.length;)ws(e,"text",l);function l(c,h){let u=-1,f;for(;++u<h.length;){const A=h[u],b=f?f.children:void 0;if(i(A,b?b.indexOf(A):void 0,f))return;f=A}if(f)return s(c,h)}function s(c,h){const u=h[h.length-1],f=a[o][0],A=a[o][1];let b=0;const S=u.children.indexOf(c);let O=!1,B=[];f.lastIndex=0;let T=f.exec(c.value);for(;T;){const j=T.index,M={index:T.index,input:T.input,stack:[...h,c]};let k=A(...T,M);if(typeof k=="string"&&(k=k.length>0?{type:"text",value:k}:void 0),k===!1?f.lastIndex=j+1:(b!==j&&B.push({type:"text",value:c.value.slice(b,j)}),Array.isArray(k)?B.push(...k):k&&B.push(k),b=j+T[0].length,O=!0),!f.global)break;T=f.exec(c.value)}return O?(b<c.value.length&&B.push({type:"text",value:c.value.slice(b)}),u.children.splice(S,1,...B)):B=[c],S+B.length}}function Zh(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([Xh(i[0]),Gh(i[1])])}return n}function Xh(e){return typeof e=="string"?new RegExp(Uh(e),"g"):e}function Gh(e){return typeof e=="function"?e:function(){return e}}function em(e){ks(e,[/\r?\n|\r/g,nm])}function nm(){return{type:"break"}}function tm(){return function(e){em(e)}}function Es(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function Lx(){}function jx(){}const an=Wn(/[A-Za-z]/),tn=Wn(/[\dA-Za-z]/),rm=Wn(/[#-'*+\--9=?A-Z^-~]/);function Kr(e){return e!==null&&(e<32||e===127)}const Eo=Wn(/\d/),im=Wn(/[\dA-Fa-f]/),om=Wn(/[!-/:-@[-`{-~]/);function de(e){return e!==null&&e<-2}function Le(e){return e!==null&&(e<0||e===32)}function Ee(e){return e===-2||e===-1||e===32}const Qr=Wn(new RegExp("\\p{P}|\\p{S}","u")),it=Wn(/\s/);function Wn(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}const Co="phrasing",So=["autolink","link","image","label"];function am(){return{transforms:[fm],enter:{literalAutolink:sm,literalAutolinkEmail:Bo,literalAutolinkHttp:Bo,literalAutolinkWww:Bo},exit:{literalAutolink:dm,literalAutolinkEmail:pm,literalAutolinkHttp:um,literalAutolinkWww:cm}}}function lm(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Co,notInConstruct:So},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Co,notInConstruct:So},{character:":",before:"[ps]",after:"\\/",inConstruct:Co,notInConstruct:So}]}}function sm(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Bo(e){this.config.enter.autolinkProtocol.call(this,e)}function um(e){this.config.exit.autolinkProtocol.call(this,e)}function cm(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function pm(e){this.config.exit.autolinkEmail.call(this,e)}function dm(e){this.exit(e)}function fm(e){ks(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,hm],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,mm]],{ignore:["link","linkReference"]})}function hm(e,n,t,r,i){let a="";if(!Cs(i)||(/^w/i.test(n)&&(t=n+t,n="",a="http://"),!ym(t)))return!1;const o=Am(t+r);if(!o[0])return!1;const l={type:"link",title:null,url:a+n+o[0],children:[{type:"text",value:n+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function mm(e,n,t,r){return!Cs(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function ym(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function Am(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=Es(e,"(");let a=Es(e,")");for(;r!==-1&&i>a;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),a++;return[e,t]}function Cs(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||it(t)||Qr(t))&&(!n||t!==47)}function wn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Ss.peek=Im;function gm(){return{enter:{gfmFootnoteDefinition:vm,gfmFootnoteDefinitionLabelString:xm,gfmFootnoteCall:Em,gfmFootnoteCallString:Cm},exit:{gfmFootnoteDefinition:km,gfmFootnoteDefinitionLabelString:wm,gfmFootnoteCall:Bm,gfmFootnoteCallString:Sm}}}function bm(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Om,footnoteReference:Ss}}}function vm(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function xm(){this.buffer()}function wm(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.label=n,t.identifier=wn(this.sliceSerialize(e)).toLowerCase()}function km(e){this.exit(e)}function Em(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Cm(){this.buffer()}function Sm(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.label=n,t.identifier=wn(this.sliceSerialize(e)).toLowerCase()}function Bm(e){this.exit(e)}function Ss(e,n,t,r){const i=t.createTracker(r);let a=i.move("[^");const o=t.enter("footnoteReference"),l=t.enter("reference");return a+=i.move(t.safe(t.associationId(e),{...i.current(),before:a,after:"]"})),l(),o(),a+=i.move("]"),a}function Im(){return"["}function Om(e,n,t,r){const i=t.createTracker(r);let a=i.move("[^");const o=t.enter("footnoteDefinition"),l=t.enter("label");return a+=i.move(t.safe(t.associationId(e),{...i.current(),before:a,after:"]"})),l(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(t.indentLines(t.containerFlow(e,i.current()),Pm)),o(),a}function Pm(e,n,t){return n===0?e:(t?"":" ")+e}const _m=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Bs.peek=Mm;function Tm(){return{canContainEols:["delete"],enter:{strikethrough:jm},exit:{strikethrough:Dm}}}function Lm(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:_m}],handlers:{delete:Bs}}}function jm(e){this.enter({type:"delete",children:[]},e)}function Dm(e){this.exit(e)}function Bs(e,n,t,r){const i=t.createTracker(r),a=t.enter("strikethrough");let o=i.move("~~");return o+=t.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),a(),o}function Mm(){return"~"}function zm(e,n={}){const t=(n.align||[]).concat(),r=n.stringLength||Rm,i=[],a=[],o=[],l=[];let s=0,c=-1;for(;++c<e.length;){const b=[],v=[];let S=-1;for(e[c].length>s&&(s=e[c].length);++S<e[c].length;){const O=Fm(e[c][S]);if(n.alignDelimiters!==!1){const B=r(O);v[S]=B,(l[S]===void 0||B>l[S])&&(l[S]=B)}b.push(O)}a[c]=b,o[c]=v}let h=-1;if(typeof t=="object"&&"length"in t)for(;++h<s;)i[h]=Is(t[h]);else{const b=Is(t);for(;++h<s;)i[h]=b}h=-1;const u=[],f=[];for(;++h<s;){const b=i[h];let v="",S="";b===99?(v=":",S=":"):b===108?v=":":b===114&&(S=":");let O=n.alignDelimiters===!1?1:Math.max(1,l[h]-v.length-S.length);const B=v+"-".repeat(O)+S;n.alignDelimiters!==!1&&(O=v.length+O+S.length,O>l[h]&&(l[h]=O),f[h]=O),u[h]=B}a.splice(1,0,u),o.splice(1,0,f),c=-1;const A=[];for(;++c<a.length;){const b=a[c],v=o[c];h=-1;const S=[];for(;++h<s;){const O=b[h]||"";let B="",T="";if(n.alignDelimiters!==!1){const j=l[h]-(v[h]||0),M=i[h];M===114?B=" ".repeat(j):M===99?j%2?(B=" ".repeat(j/2+.5),T=" ".repeat(j/2-.5)):(B=" ".repeat(j/2),T=B):T=" ".repeat(j)}n.delimiterStart!==!1&&!h&&S.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&O==="")&&(n.delimiterStart!==!1||h)&&S.push(" "),n.alignDelimiters!==!1&&S.push(B),S.push(O),n.alignDelimiters!==!1&&S.push(T),n.padding!==!1&&S.push(" "),(n.delimiterEnd!==!1||h!==s-1)&&S.push("|")}A.push(n.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return A.join(`
37
37
  `)}function Fm(e){return e==null?"":String(e)}function Rm(e){return e.length}function Is(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function Nm(e,n,t,r){const i=t.enter("blockquote"),a=t.createTracker(r);a.move("> "),a.shift(2);const o=t.indentLines(t.containerFlow(e,a.current()),qm);return i(),o}function qm(e,n,t){return">"+(t?"":" ")+e}function Um(e,n){return Os(e,n.inConstruct,!0)&&!Os(e,n.notInConstruct,!1)}function Os(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function Ps(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
38
38
  `&&Um(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
39
39
  `}function Hm(e,n){const t=String(e);let r=t.indexOf(n),i=r,a=0,o=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+n.length,r=t.indexOf(n,i);return o}function $m(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Wm(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function Ym(e,n,t,r){const i=Wm(t),a=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if($m(e,t)){const u=t.enter("codeIndented"),f=t.indentLines(a,Vm);return u(),f}const l=t.createTracker(r),s=i.repeat(Math.max(Hm(a,i)+1,3)),c=t.enter("codeFenced");let h=l.move(s);if(e.lang){const u=t.enter(`codeFencedLang${o}`);h+=l.move(t.safe(e.lang,{before:h,after:" ",encode:["`"],...l.current()})),u()}if(e.lang&&e.meta){const u=t.enter(`codeFencedMeta${o}`);h+=l.move(" "),h+=l.move(t.safe(e.meta,{before:h,after:`
@@ -16,7 +16,8 @@ export declare enum ToolEventType {
16
16
  FFMPEG = 8,// 执行ffmpeg命令
17
17
  FileDownload = 9,// 文件下载
18
18
  OpenVideoEditor = 10,// 打开视频编辑器
19
- OpenTool = 11
19
+ OpenTool = 11,// 打开工具
20
+ OpenHelp = 12
20
21
  }
21
22
  export type ToolEventRequest = string | ToolParamFile | LocalActionReqDataCreatTask | TaskActionInfo | SendCommonRequestInfo | ToolEventFfmpegRequest | ToolEventCloudDownloadRequest | ToolParamFileDownload | ToolInfo;
22
23
  export type ToolEventResponse = string | ToolParamFile | ToolEventFfmpegRequest | any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zyjj-web-sdk",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "lib"