zyjj-web-sdk 1.1.12 → 1.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -1534,7 +1534,7 @@ const ai = (e) => e >= 1073741824 ? (e / 1073741824).toFixed(2) + " GB" : e >= 1
1534
1534
  region: e.region
1535
1535
  };
1536
1536
  }, fi = async () => {
1537
- const e = await Di(), t = e.token;
1537
+ const e = await Pi(), t = e.token;
1538
1538
  return {
1539
1539
  oss: new Bo({
1540
1540
  region: e.region,
@@ -1577,7 +1577,7 @@ const ai = (e) => e >= 1073741824 ? (e / 1073741824).toFixed(2) + " GB" : e >= 1
1577
1577
  var n;
1578
1578
  const r = document.createElement("a");
1579
1579
  r.style.display = "none", r.href = e, t ? r.download = t : r.download = ((n = e.split("?").shift()) == null ? void 0 : n.split("/").pop()) || e, document.body.appendChild(r), r.click(), document.body.removeChild(r), URL.revokeObjectURL(e);
1580
- }, Y = process.env.NODE_ENV == "production" ? "https://api.zyjj.cc/api/v1" : "http://127.0.0.1:3000/api/v1", yi = (e) => G(`${Y}/common/user/login`, e, "post"), gi = (e, t, r) => G(`${Y}/common/app/info?os=${e}&version=${t}&uid=${r || ""}`, {}, "get"), bi = (e) => G(`${Y}/common/user/register`, e, "post"), wi = (e) => G(`${Y}/common/user/reset/password`, e, "post"), Ln = (e) => G(`${Y}/common/user/email/token`, { email: e }, "post"), Wn = () => G(`${Y}/user/user/info`, {}, "get", !1), Ei = (e) => G(`${Y}/user/user/info`, e, "put"), Si = (e) => G(`${Y}/user/point/deducting`, e, "post"), _i = (e) => G(`${Y}/common/tool/list?${Vn(e)}`, {}, "get"), Oi = () => G(`${Y}/common/tool/all`, {}, "get"), vi = (e) => G(`${Y}/common/tool/${e}`, {}, "get"), Ri = (e) => G(`${Y}/common/tool/inc/${e}`, {}, "get"), Ci = () => G(`${Y}/common/tool/tags`, {}, "get"), Tn = () => G(`${Y}/user/cloud/tencent/cos`, {}, "get"), Di = () => G(`${Y}/user/cloud/aliyun/oss`, {}, "get"), Pi = (e) => G(`${Y}/user/task`, e, "post"), xi = (e) => G(`${Y}/user/task/${e}`, {}, "get"), Hn = () => G(`${Y}/user/cloud/mqtt/task`, {}, "get"), ji = () => G(`${Y}/common/material/tags`, {}, "get"), Ni = (e) => G(`${Y}/user/material/${e}`, {}, "get"), ki = (e) => G(`${Y}/user/material/url`, { key_list: e }, "post"), yc = (e) => G(`${Y}${e.url}`, e.data || {}, e.method);
1580
+ }, Y = process.env.NODE_ENV == "production" ? "https://api.zyjj.cc/api/v1" : "http://127.0.0.1:3000/api/v1", yi = process.env.NODE_ENV == "production" ? "https://knowledge.zyjj.cc/api/v1" : "http://127.0.0.1:3001/api/v1", gi = (e) => G(`${Y}/common/user/login`, e, "post"), bi = (e, t, r) => G(`${Y}/common/app/info?os=${e}&version=${t}&uid=${r || ""}`, {}, "get"), wi = (e) => G(`${Y}/common/user/register`, e, "post"), Ei = (e) => G(`${Y}/common/user/reset/password`, e, "post"), Ln = (e) => G(`${Y}/common/user/email/token`, { email: e }, "post"), Wn = () => G(`${Y}/user/user/info`, {}, "get", !1), Si = (e) => G(`${Y}/user/user/info`, e, "put"), _i = (e) => G(`${Y}/user/point/deducting`, e, "post"), Oi = (e) => G(`${Y}/common/tool/list?${Vn(e)}`, {}, "get"), vi = () => G(`${Y}/common/tool/all`, {}, "get"), Ri = (e) => G(`${Y}/common/tool/${e}`, {}, "get"), Ci = (e) => G(`${Y}/common/tool/inc/${e}`, {}, "get"), Di = () => G(`${Y}/common/tool/tags`, {}, "get"), Tn = () => G(`${Y}/user/cloud/tencent/cos`, {}, "get"), Pi = () => G(`${Y}/user/cloud/aliyun/oss`, {}, "get"), xi = (e) => G(`${Y}/user/task`, e, "post"), ji = (e) => G(`${Y}/user/task/${e}`, {}, "get"), Hn = () => G(`${Y}/user/cloud/mqtt/task`, {}, "get"), Ni = () => G(`${Y}/common/material/tags`, {}, "get"), ki = (e) => G(`${Y}/user/material/${e}`, {}, "get"), Ii = (e) => G(`${Y}/user/material/url`, { key_list: e }, "post"), gc = (e) => G(`${Y}${e.url}`, e.data || {}, e.method), bc = (e) => G(`${yi}${e.url}`, e.data || {}, e.method);
1581
1581
  var Kt;
1582
1582
  (function(e) {
1583
1583
  e[e.Task = 0] = "Task", e[e.Lab = 1] = "Lab", e[e.Flow = 2] = "Flow";
@@ -1606,8 +1606,8 @@ var tr;
1606
1606
  (function(e) {
1607
1607
  e[e.Input = 0] = "Input", e[e.Select = 1] = "Select", e[e.TextArea = 2] = "TextArea", e[e.FileUpload = 3] = "FileUpload", e[e.Slider = 4] = "Slider", e[e.Audio = 5] = "Audio", e[e.Number = 6] = "Number", e[e.ImageList = 7] = "ImageList", e[e.Image = 8] = "Image", e[e.Alert = 9] = "Alert", e[e.Video = 10] = "Video", e[e.MarkDown = 11] = "MarkDown";
1608
1608
  })(tr || (tr = {}));
1609
- var Ii = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1610
- function Ai(e) {
1609
+ var Ai = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1610
+ function $i(e) {
1611
1611
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1612
1612
  }
1613
1613
  var rr = { exports: {} }, Ge = {};
@@ -1621,7 +1621,7 @@ var rr = { exports: {} }, Ge = {};
1621
1621
  * LICENSE file in the root directory of this source tree.
1622
1622
  */
1623
1623
  var Qr;
1624
- function $i() {
1624
+ function Fi() {
1625
1625
  if (Qr) return Ge;
1626
1626
  Qr = 1;
1627
1627
  var e = wn, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
@@ -1645,7 +1645,7 @@ var Ye = {};
1645
1645
  * LICENSE file in the root directory of this source tree.
1646
1646
  */
1647
1647
  var en;
1648
- function Fi() {
1648
+ function Mi() {
1649
1649
  return en || (en = 1, process.env.NODE_ENV !== "production" && function() {
1650
1650
  var e = wn, t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), m = Symbol.iterator, b = "@@iterator";
1651
1651
  function N(a) {
@@ -2223,12 +2223,12 @@ Check the top-level render call using <` + g + ">.");
2223
2223
  Ye.Fragment = n, Ye.jsx = ko, Ye.jsxs = Io;
2224
2224
  }()), Ye;
2225
2225
  }
2226
- process.env.NODE_ENV === "production" ? rr.exports = $i() : rr.exports = Fi();
2226
+ process.env.NODE_ENV === "production" ? rr.exports = Fi() : rr.exports = Mi();
2227
2227
  var D = rr.exports, Gn = { exports: {} };
2228
2228
  (function(e, t) {
2229
2229
  (function(r, n) {
2230
2230
  e.exports = n();
2231
- })(Ii, function() {
2231
+ })(Ai, function() {
2232
2232
  var r = 1e3, n = 6e4, o = 36e5, s = "millisecond", i = "second", c = "minute", u = "hour", d = "day", l = "week", f = "month", S = "quarter", P = "year", m = "date", b = "Invalid Date", N = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, M = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, j = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(O) {
2233
2233
  var w = ["th", "st", "nd", "rd"], y = O % 100;
2234
2234
  return "[" + O + (w[(y - 20) % 10] || w[y] || w[0]) + "]";
@@ -2500,9 +2500,9 @@ var D = rr.exports, Gn = { exports: {} };
2500
2500
  }, W.en = B[q], W.Ls = B, W.p = {}, W;
2501
2501
  });
2502
2502
  })(Gn);
2503
- var Mi = Gn.exports;
2504
- const Ui = /* @__PURE__ */ Ai(Mi), Bi = (e) => Ui(e).format("YYYY-MM-DD HH:mm:ss"), zi = (e) => D.jsx(bn.Paragraph, { copyable: !0, children: e }), Vi = (e) => D.jsx(bn.Ellipsis, { style: { maxWidth: 300 }, rows: 1, showTooltip: !0, children: e });
2505
- function qi(e) {
2503
+ var Ui = Gn.exports;
2504
+ const Bi = /* @__PURE__ */ $i(Ui), zi = (e) => Bi(e).format("YYYY-MM-DD HH:mm:ss"), Vi = (e) => D.jsx(bn.Paragraph, { copyable: !0, children: e }), qi = (e) => D.jsx(bn.Ellipsis, { style: { maxWidth: 300 }, rows: 1, showTooltip: !0, children: e });
2505
+ function Li(e) {
2506
2506
  if (typeof e != "object" || e === null)
2507
2507
  return !1;
2508
2508
  let t = e;
@@ -2510,10 +2510,10 @@ function qi(e) {
2510
2510
  t = Object.getPrototypeOf(t);
2511
2511
  return Object.getPrototypeOf(e) === t || Object.getPrototypeOf(e) === null;
2512
2512
  }
2513
- function Li(e) {
2514
- return qi(e) && "type" in e && typeof e.type == "string";
2513
+ function Wi(e) {
2514
+ return Li(e) && "type" in e && typeof e.type == "string";
2515
2515
  }
2516
- var Yn = Symbol.for("immer-nothing"), tn = Symbol.for("immer-draftable"), ce = Symbol.for("immer-state"), Wi = process.env.NODE_ENV !== "production" ? [
2516
+ var Yn = Symbol.for("immer-nothing"), tn = Symbol.for("immer-draftable"), ce = Symbol.for("immer-state"), Ti = process.env.NODE_ENV !== "production" ? [
2517
2517
  // All error codes, starting by 0:
2518
2518
  function(e) {
2519
2519
  return `The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`;
@@ -2546,7 +2546,7 @@ var Yn = Symbol.for("immer-nothing"), tn = Symbol.for("immer-draftable"), ce = S
2546
2546
  ] : [];
2547
2547
  function ae(e, ...t) {
2548
2548
  if (process.env.NODE_ENV !== "production") {
2549
- const r = Wi[e], n = typeof r == "function" ? r.apply(null, t) : r;
2549
+ const r = Ti[e], n = typeof r == "function" ? r.apply(null, t) : r;
2550
2550
  throw new Error(`[Immer] ${n}`);
2551
2551
  }
2552
2552
  throw new Error(
@@ -2561,7 +2561,7 @@ function Oe(e) {
2561
2561
  var t;
2562
2562
  return e ? Jn(e) || Array.isArray(e) || !!e[tn] || !!((t = e.constructor) != null && t[tn]) || Et(e) || St(e) : !1;
2563
2563
  }
2564
- var Ti = Object.prototype.constructor.toString();
2564
+ var Hi = Object.prototype.constructor.toString();
2565
2565
  function Jn(e) {
2566
2566
  if (!e || typeof e != "object")
2567
2567
  return !1;
@@ -2569,7 +2569,7 @@ function Jn(e) {
2569
2569
  if (t === null)
2570
2570
  return !0;
2571
2571
  const r = Object.hasOwnProperty.call(t, "constructor") && t.constructor;
2572
- return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Ti;
2572
+ return r === Object ? !0 : typeof r == "function" && Function.toString.call(r) === Hi;
2573
2573
  }
2574
2574
  function dt(e, t) {
2575
2575
  wt(e) === 0 ? Reflect.ownKeys(e).forEach((r) => {
@@ -2587,7 +2587,7 @@ function Kn(e, t, r) {
2587
2587
  const n = wt(e);
2588
2588
  n === 2 ? e.set(t, r) : n === 3 ? e.add(r) : e[t] = r;
2589
2589
  }
2590
- function Hi(e, t) {
2590
+ function Gi(e, t) {
2591
2591
  return e === t ? e !== 0 || 1 / e === 1 / t : e !== e && t !== t;
2592
2592
  }
2593
2593
  function Et(e) {
@@ -2631,24 +2631,24 @@ function or(e, t) {
2631
2631
  }
2632
2632
  }
2633
2633
  function Or(e, t = !1) {
2634
- return _t(e) || Pe(e) || !Oe(e) || (wt(e) > 1 && (e.set = e.add = e.clear = e.delete = Gi), Object.freeze(e), t && Object.entries(e).forEach(([r, n]) => Or(n, !0))), e;
2634
+ return _t(e) || Pe(e) || !Oe(e) || (wt(e) > 1 && (e.set = e.add = e.clear = e.delete = Yi), Object.freeze(e), t && Object.entries(e).forEach(([r, n]) => Or(n, !0))), e;
2635
2635
  }
2636
- function Gi() {
2636
+ function Yi() {
2637
2637
  ae(2);
2638
2638
  }
2639
2639
  function _t(e) {
2640
2640
  return Object.isFrozen(e);
2641
2641
  }
2642
- var Yi = {};
2642
+ var Ji = {};
2643
2643
  function Fe(e) {
2644
- const t = Yi[e];
2644
+ const t = Ji[e];
2645
2645
  return t || ae(0, e), t;
2646
2646
  }
2647
2647
  var Xe;
2648
2648
  function Xn() {
2649
2649
  return Xe;
2650
2650
  }
2651
- function Ji(e, t) {
2651
+ function Ki(e, t) {
2652
2652
  return {
2653
2653
  drafts_: [],
2654
2654
  parent_: e,
@@ -2663,15 +2663,15 @@ function rn(e, t) {
2663
2663
  t && (Fe("Patches"), e.patches_ = [], e.inversePatches_ = [], e.patchListener_ = t);
2664
2664
  }
2665
2665
  function sr(e) {
2666
- ir(e), e.drafts_.forEach(Ki), e.drafts_ = null;
2666
+ ir(e), e.drafts_.forEach(Xi), e.drafts_ = null;
2667
2667
  }
2668
2668
  function ir(e) {
2669
2669
  e === Xe && (Xe = e.parent_);
2670
2670
  }
2671
2671
  function nn(e) {
2672
- return Xe = Ji(Xe, e);
2672
+ return Xe = Ki(Xe, e);
2673
2673
  }
2674
- function Ki(e) {
2674
+ function Xi(e) {
2675
2675
  const t = e[ce];
2676
2676
  t.type_ === 0 || t.type_ === 1 ? t.revoke_() : t.revoked_ = !0;
2677
2677
  }
@@ -2732,7 +2732,7 @@ function sn(e, t, r, n, o, s, i) {
2732
2732
  function pt(e, t, r = !1) {
2733
2733
  !e.parent_ && e.immer_.autoFreeze_ && e.canAutoFreeze_ && Or(t, r);
2734
2734
  }
2735
- function Xi(e, t) {
2735
+ function Zi(e, t) {
2736
2736
  const r = Array.isArray(e), n = {
2737
2737
  type_: r ? 1 : 0,
2738
2738
  // Track which produce call this is associated with.
@@ -2767,7 +2767,7 @@ var vr = {
2767
2767
  return e;
2768
2768
  const r = je(e);
2769
2769
  if (!nr(r, t))
2770
- return Zi(e, r, t);
2770
+ return Qi(e, r, t);
2771
2771
  const n = r[t];
2772
2772
  return e.finalized_ || !Oe(n) ? n : n === At(e.base_, t) ? ($t(e), e.copy_[t] = cr(n, e)) : n;
2773
2773
  },
@@ -2785,7 +2785,7 @@ var vr = {
2785
2785
  const o = At(je(e), t), s = o == null ? void 0 : o[ce];
2786
2786
  if (s && s.base_ === r)
2787
2787
  return e.copy_[t] = r, e.assigned_[t] = !1, !0;
2788
- if (Hi(r, o) && (r !== void 0 || nr(e.base_, t)))
2788
+ if (Gi(r, o) && (r !== void 0 || nr(e.base_, t)))
2789
2789
  return !0;
2790
2790
  $t(e), ar(e);
2791
2791
  }
@@ -2832,7 +2832,7 @@ function At(e, t) {
2832
2832
  const r = e[ce];
2833
2833
  return (r ? je(r) : e)[t];
2834
2834
  }
2835
- function Zi(e, t, r) {
2835
+ function Qi(e, t, r) {
2836
2836
  var o;
2837
2837
  const n = Zn(t, r);
2838
2838
  return n ? "value" in n ? n.value : (
@@ -2861,7 +2861,7 @@ function $t(e) {
2861
2861
  e.scope_.immer_.useStrictShallowCopy_
2862
2862
  ));
2863
2863
  }
2864
- var Qi = class {
2864
+ var ea = class {
2865
2865
  constructor(e) {
2866
2866
  this.autoFreeze_ = !0, this.useStrictShallowCopy_ = !1, this.produce = (t, r, n) => {
2867
2867
  if (typeof t == "function" && typeof r != "function") {
@@ -2945,7 +2945,7 @@ var Qi = class {
2945
2945
  }
2946
2946
  };
2947
2947
  function cr(e, t) {
2948
- const r = Et(e) ? Fe("MapSet").proxyMap_(e, t) : St(e) ? Fe("MapSet").proxySet_(e, t) : Xi(e, t);
2948
+ const r = Et(e) ? Fe("MapSet").proxyMap_(e, t) : St(e) ? Fe("MapSet").proxySet_(e, t) : Zi(e, t);
2949
2949
  return (t ? t.scope_ : Xn()).drafts_.push(r), r;
2950
2950
  }
2951
2951
  function Qn(e) {
@@ -2966,7 +2966,7 @@ function eo(e) {
2966
2966
  Kn(r, n, eo(o));
2967
2967
  }), t && (t.finalized_ = !1), r;
2968
2968
  }
2969
- var ue = new Qi(), to = ue.produce;
2969
+ var ue = new ea(), to = ue.produce;
2970
2970
  ue.produceWithPatches.bind(
2971
2971
  ue
2972
2972
  );
@@ -2975,7 +2975,7 @@ ue.setUseStrictShallowCopy.bind(ue);
2975
2975
  ue.applyPatches.bind(ue);
2976
2976
  ue.createDraft.bind(ue);
2977
2977
  ue.finishDraft.bind(ue);
2978
- var ea = (e, t, r) => {
2978
+ var ta = (e, t, r) => {
2979
2979
  if (t.length === 1 && t[0] === r) {
2980
2980
  let n = !1;
2981
2981
  try {
@@ -2999,7 +2999,7 @@ Ensure transformation logic is in the result function, and extraction logic is i
2999
2999
  );
3000
3000
  }
3001
3001
  }
3002
- }, ta = (e, t, r) => {
3002
+ }, ra = (e, t, r) => {
3003
3003
  const { memoize: n, memoizeOptions: o } = t, { inputSelectorResults: s, inputSelectorResultsCopy: i } = e, c = n(() => ({}), ...o);
3004
3004
  if (!(c.apply(null, s) === c.apply(null, i))) {
3005
3005
  let d;
@@ -3021,19 +3021,19 @@ Avoid returning a new reference inside your input selector, e.g.
3021
3021
  }
3022
3022
  );
3023
3023
  }
3024
- }, ra = {
3024
+ }, na = {
3025
3025
  inputStabilityCheck: "once",
3026
3026
  identityFunctionCheck: "once"
3027
3027
  };
3028
- function na(e, t = `expected a function, instead received ${typeof e}`) {
3028
+ function oa(e, t = `expected a function, instead received ${typeof e}`) {
3029
3029
  if (typeof e != "function")
3030
3030
  throw new TypeError(t);
3031
3031
  }
3032
- function oa(e, t = `expected an object, instead received ${typeof e}`) {
3032
+ function sa(e, t = `expected an object, instead received ${typeof e}`) {
3033
3033
  if (typeof e != "object")
3034
3034
  throw new TypeError(t);
3035
3035
  }
3036
- function sa(e, t = "expected all items to be functions, instead received the following types: ") {
3036
+ function ia(e, t = "expected all items to be functions, instead received the following types: ") {
3037
3037
  if (!e.every((r) => typeof r == "function")) {
3038
3038
  const r = e.map(
3039
3039
  (n) => typeof n == "function" ? `function ${n.name || "unnamed"}()` : typeof n
@@ -3042,9 +3042,9 @@ function sa(e, t = "expected all items to be functions, instead received the fol
3042
3042
  }
3043
3043
  }
3044
3044
  var an = (e) => Array.isArray(e) ? e : [e];
3045
- function ia(e) {
3045
+ function aa(e) {
3046
3046
  const t = Array.isArray(e[0]) ? e[0] : e;
3047
- return sa(
3047
+ return ia(
3048
3048
  t,
3049
3049
  "createSelector expects all input-selectors to be functions, but received the following types: "
3050
3050
  ), t;
@@ -3055,32 +3055,32 @@ function cn(e, t) {
3055
3055
  r.push(e[o].apply(null, t));
3056
3056
  return r;
3057
3057
  }
3058
- var aa = (e, t) => {
3058
+ var ca = (e, t) => {
3059
3059
  const { identityFunctionCheck: r, inputStabilityCheck: n } = {
3060
- ...ra,
3060
+ ...na,
3061
3061
  ...t
3062
3062
  };
3063
3063
  return {
3064
3064
  identityFunctionCheck: {
3065
3065
  shouldRun: r === "always" || r === "once" && e,
3066
- run: ea
3066
+ run: ta
3067
3067
  },
3068
3068
  inputStabilityCheck: {
3069
3069
  shouldRun: n === "always" || n === "once" && e,
3070
- run: ta
3070
+ run: ra
3071
3071
  }
3072
3072
  };
3073
- }, ca = class {
3073
+ }, ua = class {
3074
3074
  constructor(e) {
3075
3075
  this.value = e;
3076
3076
  }
3077
3077
  deref() {
3078
3078
  return this.value;
3079
3079
  }
3080
- }, ua = typeof WeakRef < "u" ? WeakRef : ca, la = 0, un = 1;
3080
+ }, la = typeof WeakRef < "u" ? WeakRef : ua, fa = 0, un = 1;
3081
3081
  function at() {
3082
3082
  return {
3083
- s: la,
3083
+ s: fa,
3084
3084
  v: void 0,
3085
3085
  o: null,
3086
3086
  p: null
@@ -3112,7 +3112,7 @@ function Rr(e, t = {}) {
3112
3112
  let l;
3113
3113
  if (c.s === un ? l = c.v : (l = e.apply(null, arguments), s++), d.s = un, n) {
3114
3114
  const S = ((f = o == null ? void 0 : o.deref) == null ? void 0 : f.call(o)) ?? o;
3115
- S != null && n(S, l) && (l = S, s !== 0 && s--), o = typeof l == "object" && l !== null || typeof l == "function" ? new ua(l) : l;
3115
+ S != null && n(S, l) && (l = S, s !== 0 && s--), o = typeof l == "object" && l !== null || typeof l == "function" ? new la(l) : l;
3116
3116
  }
3117
3117
  return d.v = l, l;
3118
3118
  }
@@ -3128,7 +3128,7 @@ function ro(e, ...t) {
3128
3128
  memoizeOptions: t
3129
3129
  } : e, n = (...o) => {
3130
3130
  let s = 0, i = 0, c, u = {}, d = o.pop();
3131
- typeof d == "object" && (u = d, d = o.pop()), na(
3131
+ typeof d == "object" && (u = d, d = o.pop()), oa(
3132
3132
  d,
3133
3133
  `createSelector expects an output function after the inputs, but received: [${typeof d}]`
3134
3134
  );
@@ -3141,7 +3141,7 @@ function ro(e, ...t) {
3141
3141
  argsMemoize: P = Rr,
3142
3142
  argsMemoizeOptions: m = [],
3143
3143
  devModeChecks: b = {}
3144
- } = l, N = an(S), M = an(m), j = ia(o), x = f(function() {
3144
+ } = l, N = an(S), M = an(m), j = aa(o), x = f(function() {
3145
3145
  return s++, d.apply(
3146
3146
  null,
3147
3147
  arguments
@@ -3155,7 +3155,7 @@ function ro(e, ...t) {
3155
3155
  arguments
3156
3156
  );
3157
3157
  if (c = x.apply(null, Z), process.env.NODE_ENV !== "production") {
3158
- const { identityFunctionCheck: I, inputStabilityCheck: ee } = aa(A, b);
3158
+ const { identityFunctionCheck: I, inputStabilityCheck: ee } = ca(A, b);
3159
3159
  if (I.shouldRun && I.run(
3160
3160
  d,
3161
3161
  Z,
@@ -3196,9 +3196,9 @@ function ro(e, ...t) {
3196
3196
  withTypes: () => n
3197
3197
  }), n;
3198
3198
  }
3199
- var fa = /* @__PURE__ */ ro(Rr), da = Object.assign(
3200
- (e, t = fa) => {
3201
- oa(
3199
+ var da = /* @__PURE__ */ ro(Rr), ha = Object.assign(
3200
+ (e, t = da) => {
3201
+ sa(
3202
3202
  e,
3203
3203
  `createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`
3204
3204
  );
@@ -3210,8 +3210,8 @@ var fa = /* @__PURE__ */ ro(Rr), da = Object.assign(
3210
3210
  (...s) => s.reduce((i, c, u) => (i[r[u]] = c, i), {})
3211
3211
  );
3212
3212
  },
3213
- { withTypes: () => da }
3214
- ), ha = (...e) => {
3213
+ { withTypes: () => ha }
3214
+ ), pa = (...e) => {
3215
3215
  const t = ro(...e), r = Object.assign((...n) => {
3216
3216
  const o = t(...n), s = (i, ...c) => o(Pe(i) ? Qn(i) : i, ...c);
3217
3217
  return Object.assign(s, o), s;
@@ -3220,8 +3220,8 @@ var fa = /* @__PURE__ */ ro(Rr), da = Object.assign(
3220
3220
  });
3221
3221
  return r;
3222
3222
  };
3223
- ha(Rr);
3224
- var pa = (e) => e && typeof e.match == "function";
3223
+ pa(Rr);
3224
+ var ma = (e) => e && typeof e.match == "function";
3225
3225
  function _e(e, t) {
3226
3226
  function r(...n) {
3227
3227
  if (t) {
@@ -3244,7 +3244,7 @@ function _e(e, t) {
3244
3244
  payload: n[0]
3245
3245
  };
3246
3246
  }
3247
- return r.toString = () => `${e}`, r.type = e, r.match = (n) => Li(n) && n.type === e, r;
3247
+ return r.toString = () => `${e}`, r.type = e, r.match = (n) => Wi(n) && n.type === e, r;
3248
3248
  }
3249
3249
  function ln(e) {
3250
3250
  return Oe(e) ? to(e, () => {
@@ -3295,14 +3295,14 @@ function no(e) {
3295
3295
  };
3296
3296
  return e(o), [t, r, n];
3297
3297
  }
3298
- function ma(e) {
3298
+ function ya(e) {
3299
3299
  return typeof e == "function";
3300
3300
  }
3301
- function ya(e, t) {
3301
+ function ga(e, t) {
3302
3302
  if (process.env.NODE_ENV !== "production" && typeof t == "object")
3303
3303
  throw new Error(process.env.NODE_ENV === "production" ? X(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
3304
3304
  let [r, n, o] = no(t), s;
3305
- if (ma(e))
3305
+ if (ya(e))
3306
3306
  s = () => ln(e());
3307
3307
  else {
3308
3308
  const c = ln(e);
@@ -3337,16 +3337,16 @@ function ya(e, t) {
3337
3337
  }
3338
3338
  return i.getInitialState = s, i;
3339
3339
  }
3340
- var ga = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", oo = (e = 21) => {
3340
+ var ba = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", oo = (e = 21) => {
3341
3341
  let t = "", r = e;
3342
3342
  for (; r--; )
3343
- t += ga[Math.random() * 64 | 0];
3343
+ t += ba[Math.random() * 64 | 0];
3344
3344
  return t;
3345
- }, ba = (e, t) => pa(e) ? e.match(t) : e(t);
3346
- function wa(...e) {
3347
- return (t) => e.some((r) => ba(r, t));
3345
+ }, wa = (e, t) => ma(e) ? e.match(t) : e(t);
3346
+ function Ea(...e) {
3347
+ return (t) => e.some((r) => wa(r, t));
3348
3348
  }
3349
- var Ea = ["name", "message", "stack", "code"], Ft = class {
3349
+ var Sa = ["name", "message", "stack", "code"], Ft = class {
3350
3350
  constructor(e, t) {
3351
3351
  /*
3352
3352
  type-only property to distinguish between RejectWithValue and FulfillWithMeta
@@ -3364,10 +3364,10 @@ var Ea = ["name", "message", "stack", "code"], Ft = class {
3364
3364
  xt(this, "_type");
3365
3365
  this.payload = e, this.meta = t;
3366
3366
  }
3367
- }, Sa = (e) => {
3367
+ }, _a = (e) => {
3368
3368
  if (typeof e == "object" && e !== null) {
3369
3369
  const t = {};
3370
- for (const r of Ea)
3370
+ for (const r of Sa)
3371
3371
  typeof e[r] == "string" && (t[r] = e[r]);
3372
3372
  return t;
3373
3373
  }
@@ -3394,7 +3394,7 @@ var Ea = ["name", "message", "stack", "code"], Ft = class {
3394
3394
  }
3395
3395
  })), i = _e(t + "/rejected", (u, d, l, f, S) => ({
3396
3396
  payload: f,
3397
- error: (n && n.serializeError || Sa)(u || "Rejected"),
3397
+ error: (n && n.serializeError || _a)(u || "Rejected"),
3398
3398
  meta: {
3399
3399
  ...S || {},
3400
3400
  arg: l,
@@ -3420,7 +3420,7 @@ var Ea = ["name", "message", "stack", "code"], Ft = class {
3420
3420
  getState: l,
3421
3421
  extra: f
3422
3422
  });
3423
- if (Oa(B) && (B = await B), B === !1 || P.signal.aborted)
3423
+ if (va(B) && (B = await B), B === !1 || P.signal.aborted)
3424
3424
  throw {
3425
3425
  name: "ConditionError",
3426
3426
  message: "Aborted due to condition callback returning false."
@@ -3465,7 +3465,7 @@ var Ea = ["name", "message", "stack", "code"], Ft = class {
3465
3465
  requestId: S,
3466
3466
  arg: u,
3467
3467
  unwrap() {
3468
- return M.then(_a);
3468
+ return M.then(Oa);
3469
3469
  }
3470
3470
  });
3471
3471
  };
@@ -3474,31 +3474,31 @@ var Ea = ["name", "message", "stack", "code"], Ft = class {
3474
3474
  pending: s,
3475
3475
  rejected: i,
3476
3476
  fulfilled: o,
3477
- settled: wa(i, o),
3477
+ settled: Ea(i, o),
3478
3478
  typePrefix: t
3479
3479
  });
3480
3480
  }
3481
3481
  return e.withTypes = () => e, e;
3482
3482
  })();
3483
- function _a(e) {
3483
+ function Oa(e) {
3484
3484
  if (e.meta && e.meta.rejectedWithValue)
3485
3485
  throw e.payload;
3486
3486
  if (e.error)
3487
3487
  throw e.error;
3488
3488
  return e.payload;
3489
3489
  }
3490
- function Oa(e) {
3490
+ function va(e) {
3491
3491
  return e !== null && typeof e == "object" && typeof e.then == "function";
3492
3492
  }
3493
- var va = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
3494
- function Ra(e, t) {
3493
+ var Ra = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
3494
+ function Ca(e, t) {
3495
3495
  return `${e}/${t}`;
3496
3496
  }
3497
- function Ca({
3497
+ function Da({
3498
3498
  creators: e
3499
3499
  } = {}) {
3500
3500
  var r;
3501
- const t = (r = e == null ? void 0 : e.asyncThunk) == null ? void 0 : r[va];
3501
+ const t = (r = e == null ? void 0 : e.asyncThunk) == null ? void 0 : r[Ra];
3502
3502
  return function(o) {
3503
3503
  const {
3504
3504
  name: s,
@@ -3507,7 +3507,7 @@ function Ca({
3507
3507
  if (!s)
3508
3508
  throw new Error(process.env.NODE_ENV === "production" ? X(11) : "`name` is a required option for createSlice");
3509
3509
  typeof process < "u" && process.env.NODE_ENV === "development" && o.initialState === void 0 && console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
3510
- const c = (typeof o.reducers == "function" ? o.reducers(Pa()) : o.reducers) || {}, u = Object.keys(c), d = {
3510
+ const c = (typeof o.reducers == "function" ? o.reducers(xa()) : o.reducers) || {}, u = Object.keys(c), d = {
3511
3511
  sliceCaseReducersByName: {},
3512
3512
  sliceCaseReducersByType: {},
3513
3513
  actionCreators: {},
@@ -3537,10 +3537,10 @@ function Ca({
3537
3537
  u.forEach((x) => {
3538
3538
  const A = c[x], q = {
3539
3539
  reducerName: x,
3540
- type: Ra(s, x),
3540
+ type: Ca(s, x),
3541
3541
  createNotation: typeof o.reducers == "function"
3542
3542
  };
3543
- ja(A) ? ka(q, A, l, t) : xa(q, A, l);
3543
+ Na(A) ? Ia(q, A, l, t) : ja(q, A, l);
3544
3544
  });
3545
3545
  function f() {
3546
3546
  if (process.env.NODE_ENV !== "production" && typeof o.extraReducers == "object")
@@ -3549,7 +3549,7 @@ function Ca({
3549
3549
  ...x,
3550
3550
  ...d.sliceCaseReducersByType
3551
3551
  };
3552
- return ya(o.initialState, (Z) => {
3552
+ return ga(o.initialState, (Z) => {
3553
3553
  for (let I in B)
3554
3554
  Z.addCase(I, B[I]);
3555
3555
  for (let I of d.sliceMatchers)
@@ -3586,7 +3586,7 @@ function Ca({
3586
3586
  insert: () => {
3587
3587
  const ee = {};
3588
3588
  for (const [W, U] of Object.entries(o.selectors ?? {}))
3589
- ee[W] = Da(U, Z, N, A);
3589
+ ee[W] = Pa(U, Z, N, A);
3590
3590
  return ee;
3591
3591
  }
3592
3592
  });
@@ -3624,7 +3624,7 @@ function Ca({
3624
3624
  return j;
3625
3625
  };
3626
3626
  }
3627
- function Da(e, t, r, n) {
3627
+ function Pa(e, t, r, n) {
3628
3628
  function o(s, ...i) {
3629
3629
  let c = t(s);
3630
3630
  if (typeof c > "u") {
@@ -3637,8 +3637,8 @@ function Da(e, t, r, n) {
3637
3637
  }
3638
3638
  return o.unwrapped = e, o;
3639
3639
  }
3640
- var so = /* @__PURE__ */ Ca();
3641
- function Pa() {
3640
+ var so = /* @__PURE__ */ Da();
3641
+ function xa() {
3642
3642
  function e(t, r) {
3643
3643
  return {
3644
3644
  _reducerDefinitionType: "asyncThunk",
@@ -3669,27 +3669,27 @@ function Pa() {
3669
3669
  asyncThunk: e
3670
3670
  };
3671
3671
  }
3672
- function xa({
3672
+ function ja({
3673
3673
  type: e,
3674
3674
  reducerName: t,
3675
3675
  createNotation: r
3676
3676
  }, n, o) {
3677
3677
  let s, i;
3678
3678
  if ("reducer" in n) {
3679
- if (r && !Na(n))
3679
+ if (r && !ka(n))
3680
3680
  throw new Error(process.env.NODE_ENV === "production" ? X(17) : "Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
3681
3681
  s = n.reducer, i = n.prepare;
3682
3682
  } else
3683
3683
  s = n;
3684
3684
  o.addCase(e, s).exposeCaseReducer(t, s).exposeAction(t, i ? _e(e, i) : _e(e));
3685
3685
  }
3686
- function ja(e) {
3686
+ function Na(e) {
3687
3687
  return e._reducerDefinitionType === "asyncThunk";
3688
3688
  }
3689
- function Na(e) {
3689
+ function ka(e) {
3690
3690
  return e._reducerDefinitionType === "reducerWithPrepare";
3691
3691
  }
3692
- function ka({
3692
+ function Ia({
3693
3693
  type: e,
3694
3694
  reducerName: t
3695
3695
  }, r, n, o) {
@@ -3712,10 +3712,10 @@ function ka({
3712
3712
  }
3713
3713
  function ct() {
3714
3714
  }
3715
- var Ia = (e, t) => {
3715
+ var Aa = (e, t) => {
3716
3716
  if (typeof e != "function")
3717
3717
  throw new Error(process.env.NODE_ENV === "production" ? X(32) : `${t} is not a function`);
3718
- }, Dr = "listenerMiddleware", Aa = (e) => {
3718
+ }, Dr = "listenerMiddleware", $a = (e) => {
3719
3719
  let {
3720
3720
  type: t,
3721
3721
  actionCreator: r,
@@ -3730,17 +3730,17 @@ var Ia = (e, t) => {
3730
3730
  else if (n)
3731
3731
  o = n;
3732
3732
  else if (!o) throw new Error(process.env.NODE_ENV === "production" ? X(21) : "Creating or removing a listener requires one of the known fields for matching an action");
3733
- return Ia(s, "options.listener"), {
3733
+ return Aa(s, "options.listener"), {
3734
3734
  predicate: o,
3735
3735
  type: t,
3736
3736
  effect: s
3737
3737
  };
3738
- }, $a = Object.assign((e) => {
3738
+ }, Fa = Object.assign((e) => {
3739
3739
  const {
3740
3740
  type: t,
3741
3741
  predicate: r,
3742
3742
  effect: n
3743
- } = Aa(e);
3743
+ } = $a(e);
3744
3744
  return {
3745
3745
  id: oo(),
3746
3746
  effect: n,
@@ -3752,25 +3752,25 @@ var Ia = (e, t) => {
3752
3752
  }
3753
3753
  };
3754
3754
  }, {
3755
- withTypes: () => $a
3756
- }), Fa = Object.assign(_e(`${Dr}/add`), {
3757
3755
  withTypes: () => Fa
3756
+ }), Ma = Object.assign(_e(`${Dr}/add`), {
3757
+ withTypes: () => Ma
3758
3758
  });
3759
3759
  _e(`${Dr}/removeAll`);
3760
- var Ma = Object.assign(_e(`${Dr}/remove`), {
3761
- withTypes: () => Ma
3760
+ var Ua = Object.assign(_e(`${Dr}/remove`), {
3761
+ withTypes: () => Ua
3762
3762
  });
3763
3763
  function X(e) {
3764
3764
  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. `;
3765
3765
  }
3766
- const Ua = {
3766
+ const Ba = {
3767
3767
  showLogin: !1
3768
3768
  }, ur = Cr("user/getUserInfo", async () => {
3769
3769
  if (localStorage.getItem("token"))
3770
3770
  return await Wn();
3771
3771
  }), io = so({
3772
3772
  name: "user",
3773
- initialState: Ua,
3773
+ initialState: Ba,
3774
3774
  reducers: {
3775
3775
  // 退出登录
3776
3776
  loginOut(e) {
@@ -3790,9 +3790,9 @@ const Ua = {
3790
3790
  t.isLogin = !1, t.userInfo = void 0;
3791
3791
  });
3792
3792
  }
3793
- }), Ba = io.actions, za = io.reducer, lr = (e, t) => t.some((r) => e instanceof r);
3793
+ }), za = io.actions, Va = io.reducer, lr = (e, t) => t.some((r) => e instanceof r);
3794
3794
  let hn, pn;
3795
- function Va() {
3795
+ function qa() {
3796
3796
  return hn || (hn = [
3797
3797
  IDBDatabase,
3798
3798
  IDBObjectStore,
@@ -3801,7 +3801,7 @@ function Va() {
3801
3801
  IDBTransaction
3802
3802
  ]);
3803
3803
  }
3804
- function qa() {
3804
+ function La() {
3805
3805
  return pn || (pn = [
3806
3806
  IDBCursor.prototype.advance,
3807
3807
  IDBCursor.prototype.continue,
@@ -3809,7 +3809,7 @@ function qa() {
3809
3809
  ]);
3810
3810
  }
3811
3811
  const fr = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), Ot = /* @__PURE__ */ new WeakMap();
3812
- function La(e) {
3812
+ function Wa(e) {
3813
3813
  const t = new Promise((r, n) => {
3814
3814
  const o = () => {
3815
3815
  e.removeEventListener("success", s), e.removeEventListener("error", i);
@@ -3822,7 +3822,7 @@ function La(e) {
3822
3822
  });
3823
3823
  return Ot.set(t, e), t;
3824
3824
  }
3825
- function Wa(e) {
3825
+ function Ta(e) {
3826
3826
  if (fr.has(e))
3827
3827
  return;
3828
3828
  const t = new Promise((r, n) => {
@@ -3857,26 +3857,26 @@ let dr = {
3857
3857
  function ao(e) {
3858
3858
  dr = e(dr);
3859
3859
  }
3860
- function Ta(e) {
3861
- return qa().includes(e) ? function(...t) {
3860
+ function Ha(e) {
3861
+ return La().includes(e) ? function(...t) {
3862
3862
  return e.apply(hr(this), t), $e(this.request);
3863
3863
  } : function(...t) {
3864
3864
  return $e(e.apply(hr(this), t));
3865
3865
  };
3866
3866
  }
3867
- function Ha(e) {
3868
- return typeof e == "function" ? Ta(e) : (e instanceof IDBTransaction && Wa(e), lr(e, Va()) ? new Proxy(e, dr) : e);
3867
+ function Ga(e) {
3868
+ return typeof e == "function" ? Ha(e) : (e instanceof IDBTransaction && Ta(e), lr(e, qa()) ? new Proxy(e, dr) : e);
3869
3869
  }
3870
3870
  function $e(e) {
3871
3871
  if (e instanceof IDBRequest)
3872
- return La(e);
3872
+ return Wa(e);
3873
3873
  if (Mt.has(e))
3874
3874
  return Mt.get(e);
3875
- const t = Ha(e);
3875
+ const t = Ga(e);
3876
3876
  return t !== e && (Mt.set(e, t), Ot.set(t, e)), t;
3877
3877
  }
3878
3878
  const hr = (e) => Ot.get(e);
3879
- function Ga(e, t, { blocked: r, upgrade: n, blocking: o, terminated: s } = {}) {
3879
+ function Ya(e, t, { blocked: r, upgrade: n, blocking: o, terminated: s } = {}) {
3880
3880
  const i = indexedDB.open(e, t), c = $e(i);
3881
3881
  return n && i.addEventListener("upgradeneeded", (u) => {
3882
3882
  n($e(i.result), u.oldVersion, u.newVersion, $e(i.transaction), u);
@@ -3890,16 +3890,16 @@ function Ga(e, t, { blocked: r, upgrade: n, blocking: o, terminated: s } = {}) {
3890
3890
  }).catch(() => {
3891
3891
  }), c;
3892
3892
  }
3893
- const Ya = ["get", "getKey", "getAll", "getAllKeys", "count"], Ja = ["put", "add", "delete", "clear"], Ut = /* @__PURE__ */ new Map();
3893
+ const Ja = ["get", "getKey", "getAll", "getAllKeys", "count"], Ka = ["put", "add", "delete", "clear"], Ut = /* @__PURE__ */ new Map();
3894
3894
  function mn(e, t) {
3895
3895
  if (!(e instanceof IDBDatabase && !(t in e) && typeof t == "string"))
3896
3896
  return;
3897
3897
  if (Ut.get(t))
3898
3898
  return Ut.get(t);
3899
- const r = t.replace(/FromIndex$/, ""), n = t !== r, o = Ja.includes(r);
3899
+ const r = t.replace(/FromIndex$/, ""), n = t !== r, o = Ka.includes(r);
3900
3900
  if (
3901
3901
  // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
3902
- !(r in (n ? IDBIndex : IDBObjectStore).prototype) || !(o || Ya.includes(r))
3902
+ !(r in (n ? IDBIndex : IDBObjectStore).prototype) || !(o || Ja.includes(r))
3903
3903
  )
3904
3904
  return;
3905
3905
  const s = async function(i, ...c) {
@@ -3917,9 +3917,9 @@ ao((e) => ({
3917
3917
  get: (t, r, n) => mn(t, r) || e.get(t, r, n),
3918
3918
  has: (t, r) => !!mn(t, r) || e.has(t, r)
3919
3919
  }));
3920
- const Ka = ["continue", "continuePrimaryKey", "advance"], yn = {}, pr = /* @__PURE__ */ new WeakMap(), co = /* @__PURE__ */ new WeakMap(), Xa = {
3920
+ const Xa = ["continue", "continuePrimaryKey", "advance"], yn = {}, pr = /* @__PURE__ */ new WeakMap(), co = /* @__PURE__ */ new WeakMap(), Za = {
3921
3921
  get(e, t) {
3922
- if (!Ka.includes(t))
3922
+ if (!Xa.includes(t))
3923
3923
  return e[t];
3924
3924
  let r = yn[t];
3925
3925
  return r || (r = yn[t] = function(...n) {
@@ -3927,12 +3927,12 @@ const Ka = ["continue", "continuePrimaryKey", "advance"], yn = {}, pr = /* @__PU
3927
3927
  }), r;
3928
3928
  }
3929
3929
  };
3930
- async function* Za(...e) {
3930
+ async function* Qa(...e) {
3931
3931
  let t = this;
3932
3932
  if (t instanceof IDBCursor || (t = await t.openCursor(...e)), !t)
3933
3933
  return;
3934
3934
  t = t;
3935
- const r = new Proxy(t, Xa);
3935
+ const r = new Proxy(t, Za);
3936
3936
  for (co.set(r, t), Ot.set(r, hr(t)); t; )
3937
3937
  yield r, t = await (pr.get(r) || t.continue()), pr.delete(r);
3938
3938
  }
@@ -3942,17 +3942,17 @@ function gn(e, t) {
3942
3942
  ao((e) => ({
3943
3943
  ...e,
3944
3944
  get(t, r, n) {
3945
- return gn(t, r) ? Za : e.get(t, r, n);
3945
+ return gn(t, r) ? Qa : e.get(t, r, n);
3946
3946
  },
3947
3947
  has(t, r) {
3948
3948
  return gn(t, r) || e.has(t, r);
3949
3949
  }
3950
3950
  }));
3951
- const Le = "task", rt = () => Ga("zyjj", 2, {
3951
+ const Le = "task", rt = () => Ya("zyjj", 2, {
3952
3952
  upgrade(e) {
3953
3953
  e.createObjectStore(Le);
3954
3954
  }
3955
- }), Qa = async (e, t = Le) => (await rt()).put(t, e, e.id), ec = async (e = Le) => (await rt()).getAll(e), tc = async (e, t = Le) => (await rt()).get(t, e), rc = async (e, t, r = Le) => (await rt()).put(r, t, e), nc = async (e, t = Le) => (await rt()).delete(t, e), oc = {
3955
+ }), ec = async (e, t = Le) => (await rt()).put(t, e, e.id), tc = async (e = Le) => (await rt()).getAll(e), rc = async (e, t = Le) => (await rt()).get(t, e), nc = async (e, t, r = Le) => (await rt()).put(r, t, e), oc = async (e, t = Le) => (await rt()).delete(t, e), sc = {
3956
3956
  taskCallback: {},
3957
3957
  listenerCallback: []
3958
3958
  }, uo = Cr("mqtt/initMqtt", async (e, { dispatch: t }) => {
@@ -3970,14 +3970,14 @@ const Le = "task", rt = () => Ga("zyjj", 2, {
3970
3970
  return o.on("connect", (s) => {
3971
3971
  console.log("[mqtt] connect success", s), o.subscribe(n, { qos: 1 });
3972
3972
  }), o.on("message", (s, i, c) => {
3973
- console.log("[mqtt] on message", s, i.toString(), c), s === n && t(sc(JSON.parse(i.toString())));
3973
+ console.log("[mqtt] on message", s, i.toString(), c), s === n && t(ic(JSON.parse(i.toString())));
3974
3974
  }), o.on("error", (s) => console.log("[mqtt] err", s)), o.on("close", () => console.log("[mqtt] close")), o.on("disconnect", () => console.log("[mqtt] disconnect")), o;
3975
- }), sc = Cr("mqtt/onMqttResponse", async (e, { getState: t }) => {
3975
+ }), ic = Cr("mqtt/onMqttResponse", async (e, { getState: t }) => {
3976
3976
  const { taskCallback: r, listenerCallback: n } = t().mqtt;
3977
3977
  e.task_id in r && r[e.task_id](e) && (delete r[e.task_id], console.log("[mqtt] delete callback", e.task_id)), n.forEach((o) => o(e));
3978
3978
  }), lo = so({
3979
3979
  name: "mqtt",
3980
- initialState: oc,
3980
+ initialState: sc,
3981
3981
  reducers: {
3982
3982
  closeClient(e) {
3983
3983
  var t;
@@ -4004,7 +4004,7 @@ const Le = "task", rt = () => Ga("zyjj", 2, {
4004
4004
  t.client = r.payload;
4005
4005
  });
4006
4006
  }
4007
- }), ic = lo.actions, ac = lo.reducer;
4007
+ }), ac = lo.actions, cc = lo.reducer;
4008
4008
  var mr;
4009
4009
  (function(e) {
4010
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", e[e.GetFileData = 13] = "GetFileData";
@@ -4032,34 +4032,34 @@ function fo(e) {
4032
4032
  };
4033
4033
  return D.jsxs(br, { children: [D.jsx(ke, { onChange: e.onChange, placeholder: "输入验证码" }), D.jsx(Ie, { disabled: t != ut, type: "primary", onClick: o, children: t != ut ? `剩余${t}秒` : "获取验证码" })] });
4034
4034
  }
4035
- const cc = (e) => {
4035
+ const uc = (e) => {
4036
4036
  const [t, r] = De(""), [n, o] = De(!0), s = (c) => {
4037
- n ? yi(c).then((u) => {
4037
+ n ? gi(c).then((u) => {
4038
4038
  Ce.success("登录成功"), localStorage.setItem("token", u), e.loginSuccess(u);
4039
- }) : bi(c).then(() => {
4039
+ }) : wi(c).then(() => {
4040
4040
  Ce.success("注册成功,请登录"), o(!0);
4041
4041
  });
4042
4042
  }, i = () => Ln(t);
4043
4043
  return D.jsxs(se, { autoComplete: "off", onSubmit: s, children: [D.jsx(se.Item, { rules: [{ required: !0, type: "email", message: "输入正确的邮箱格式" }], field: "email", label: "邮箱", children: D.jsx(ke, { onChange: r, placeholder: "输入邮箱" }) }), D.jsx(se.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], field: "password", label: "密码", children: D.jsx(ke.Password, { placeholder: "输入密码" }) }), n ? null : D.jsx(se.Item, { label: "验证码", field: "token", rules: [{ required: !0, message: "验证码必填" }], children: D.jsx(fo, { callback: i }) }), D.jsx(se.Item, { wrapperCol: { offset: 5 }, children: D.jsxs(br, { children: [D.jsx(Ie, { type: "primary", htmlType: "submit", children: n ? "立即登录" : "注册账号" }), D.jsx(Ie, { type: "text", onClick: () => o((c) => !c), children: n ? "新用户?" : "已有账号?" }), n ? D.jsx(Ie, { onClick: () => e.onForget(), type: "text", children: "忘记密码?" }) : null] }) })] });
4044
4044
  };
4045
- function uc(e) {
4045
+ function lc(e) {
4046
4046
  const [t, r] = De(""), n = (s) => {
4047
4047
  if (s.password_repeat != s.password) {
4048
4048
  Ce.error("新旧密码不一致");
4049
4049
  return;
4050
4050
  }
4051
4051
  const { email: i, password: c, token: u } = s;
4052
- wi({ email: i, password: c, token: u }).then(() => {
4052
+ Ei({ email: i, password: c, token: u }).then(() => {
4053
4053
  Ce.success("密码重置成功,请登录"), e.onLogin();
4054
4054
  });
4055
4055
  }, o = () => Ln(t);
4056
4056
  return D.jsx("div", { children: D.jsxs(se, { style: { width: 370 }, autoComplete: "off", onSubmit: n, children: [D.jsx(se.Item, { rules: [{ required: !0, type: "email", message: "输入正确的邮箱格式" }], label: "邮箱", field: "email", children: D.jsx(ke, { onChange: r, placeholder: "输入邮箱" }) }), D.jsx(se.Item, { label: "验证码", field: "token", rules: [{ required: !0, message: "验证码必填" }], children: D.jsx(fo, { callback: o }) }), D.jsx(se.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], label: "新密码", field: "password", children: D.jsx(ke, { type: "password", placeholder: "输入新密码" }) }), D.jsx(se.Item, { rules: [{ required: !0, type: "string", minLength: 8, message: "密码不能小于8位" }], label: "重复", field: "password_repeat", children: D.jsx(ke, { type: "password", placeholder: "再输入一遍新密码" }) }), D.jsx(se.Item, { wrapperCol: { offset: 5 }, children: D.jsxs(br, { children: [D.jsx(Ie, { type: "primary", htmlType: "submit", children: "立即重置" }), D.jsx(Ie, { onClick: () => e.onLogin(), type: "text", children: "重新登录" })] }) })] }) });
4057
4057
  }
4058
- function gc(e) {
4058
+ function wc(e) {
4059
4059
  const [t, r] = De(!1);
4060
- return D.jsx(Fo, { onCancel: e.onCancel, visible: e.visible, title: "用户登录", footer: null, children: t ? D.jsx(uc, { onLogin: () => r(!1) }) : D.jsx(cc, { loginSuccess: e.loginSuccess, onForget: () => r(!0) }) });
4060
+ return D.jsx(Fo, { onCancel: e.onCancel, visible: e.visible, title: "用户登录", footer: null, children: t ? D.jsx(lc, { onLogin: () => r(!1) }) : D.jsx(uc, { loginSuccess: e.loginSuccess, onForget: () => r(!0) }) });
4061
4061
  }
4062
- function bc(e) {
4062
+ function Ec(e) {
4063
4063
  const [t, r] = De([]), [n, o] = De(!1), [s, i] = De({
4064
4064
  sizeCanChange: !0,
4065
4065
  showTotal: !0,
@@ -4082,24 +4082,24 @@ function bc(e) {
4082
4082
  return d.tp == "input" ? l = D.jsx(ke, { allowClear: !0, placeholder: f.placeholder }) : d.tp == "custom" && (l = d.ele), D.jsx(se.Item, { label: d.label, field: d.field, children: l }, d.field);
4083
4083
  }), D.jsx(se.Item, { children: D.jsx(Ie, { htmlType: "submit", children: "搜索" }) })] }) : null, D.jsx(Mo, { loading: n, pagination: s, onChange: (d) => i({ ...s, current: (d == null ? void 0 : d.current) || s.current, pageSize: (d == null ? void 0 : d.pageSize) || s.pageSize }), rowKey: e.id || "id", columns: e.columns, data: t })] });
4084
4084
  }
4085
- const wc = {
4086
- GetAllTool: Oi,
4087
- ToolInc: Ri,
4088
- UpdateUserInfo: Ei,
4089
- GetAppInfo: gi,
4090
- CostPoint: Si,
4085
+ const Sc = {
4086
+ GetAllTool: vi,
4087
+ ToolInc: Ci,
4088
+ UpdateUserInfo: Si,
4089
+ GetAppInfo: bi,
4090
+ CostPoint: _i,
4091
4091
  GetUserInfo: Wn,
4092
- UserDownloadMaterial: Ni,
4092
+ UserDownloadMaterial: ki,
4093
4093
  GetMqttTaskClientInfo: Hn,
4094
- AddTask: Pi,
4095
- GetTaskInfo: xi,
4094
+ AddTask: xi,
4095
+ GetTaskInfo: ji,
4096
4096
  GetTencentCosInfo: Tn,
4097
- GetMaterialUrl: ki,
4098
- GetMaterialTagList: ji,
4099
- GetToolList: _i,
4100
- GetToolTagList: Ci,
4101
- GetToolDetail: vi
4102
- }, Ec = {
4097
+ GetMaterialUrl: Ii,
4098
+ GetMaterialTagList: Ni,
4099
+ GetToolList: Oi,
4100
+ GetToolTagList: Di,
4101
+ GetToolDetail: Ri
4102
+ }, _c = {
4103
4103
  ToolType: Kt,
4104
4104
  LocalActionReqType: Tt,
4105
4105
  LocalActionResType: Ht,
@@ -4116,11 +4116,11 @@ const wc = {
4116
4116
  ToolEventType: mr,
4117
4117
  WorkActionType: gr,
4118
4118
  TaskActionType: yr
4119
- }, Sc = {
4119
+ }, Oc = {
4120
4120
  render: {
4121
- renderTime: Bi,
4122
- renderEllipsis: Vi,
4123
- renderCopy: zi
4121
+ renderTime: zi,
4122
+ renderEllipsis: qi,
4123
+ renderCopy: Vi
4124
4124
  },
4125
4125
  utils: {
4126
4126
  file2ToolParamFile: ci,
@@ -4137,26 +4137,27 @@ const wc = {
4137
4137
  getAliYunOssInfo: fi
4138
4138
  },
4139
4139
  db: {
4140
- addTask: Qa,
4141
- getAllData: ec,
4142
- getData: tc,
4143
- updateData: rc,
4144
- deleteData: nc
4140
+ addTask: ec,
4141
+ getAllData: tc,
4142
+ getData: rc,
4143
+ updateData: nc,
4144
+ deleteData: oc
4145
4145
  }
4146
- }, _c = {
4147
- UserReducer: za,
4148
- UserAction: Ba,
4146
+ }, vc = {
4147
+ UserReducer: Va,
4148
+ UserAction: za,
4149
4149
  GetUserInfo: ur,
4150
- MqttReducer: ac,
4151
- MqttAction: ic,
4150
+ MqttReducer: cc,
4151
+ MqttAction: ac,
4152
4152
  InitMqtt: uo
4153
4153
  };
4154
4154
  export {
4155
- wc as Api,
4156
- Ec as Enum,
4157
- bc as PageTable,
4158
- yc as SendCommonRequest,
4159
- _c as Store,
4160
- Sc as Tool,
4161
- gc as UserLoginModal
4155
+ Sc as Api,
4156
+ _c as Enum,
4157
+ Ec as PageTable,
4158
+ gc as SendCommonRequest,
4159
+ bc as SendKnowledgeRequest,
4160
+ vc as Store,
4161
+ Oc as Tool,
4162
+ wc as UserLoginModal
4162
4163
  };