zs_library 0.3.13 → 0.3.14

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.
Files changed (49) hide show
  1. package/README.md +4 -0
  2. package/dist/components/{Desktop → desktop}/context/config/context.d.ts +3 -3
  3. package/dist/components/{Desktop → desktop}/index.d.ts +2 -2
  4. package/dist/components/{Desktop/Items/GroupItem.d.ts → desktop/items/group-item.d.ts} +1 -1
  5. package/dist/components/{Desktop/Sortable.d.ts → desktop/sortable.d.ts} +2 -2
  6. package/dist/components/dock/dock-desktop.d.ts +8 -0
  7. package/dist/components/dock/dock-mobile.d.ts +10 -0
  8. package/dist/components/dock/index.d.ts +18 -0
  9. package/dist/components/dock/utils.d.ts +2 -0
  10. package/dist/components/index.d.ts +3 -2
  11. package/dist/index.d.ts +1 -1
  12. package/dist/index.es.js +1102 -943
  13. package/dist/index.umd.js +97 -97
  14. package/dist/zs_library.css +1 -0
  15. package/package.json +114 -116
  16. package/dist/components/Editor/components/BlockTools/MediaAndEmbed/Image/index.d.ts +0 -146
  17. package/dist/components/Editor/components/BlockTools/MediaAndEmbed/Image/types/types.d.ts +0 -172
  18. package/dist/components/Editor/components/BlockTools/MediaAndEmbed/Image/ui.d.ts +0 -132
  19. package/dist/components/Editor/components/BlockTools/MediaAndEmbed/Image/uploader.d.ts +0 -60
  20. package/dist/components/Editor/components/BlockTools/MediaAndEmbed/Image/utils/dom.d.ts +0 -10
  21. package/dist/components/Editor/components/BlockTools/MediaAndEmbed/Image/utils/isPromise.d.ts +0 -7
  22. package/dist/components/Editor/components/BlockTools/TextAndTypography/Alert/index.d.ts +0 -238
  23. package/dist/components/Editor/components/BlockTools/TextAndTypography/Delimiter/index.d.ts +0 -270
  24. package/dist/components/Editor/components/BlockTools/TextAndTypography/Header/index.d.ts +0 -249
  25. package/dist/components/Editor/components/BlockTools/TextAndTypography/Paragraph/index.d.ts +0 -189
  26. package/dist/components/Editor/components/BlockTools/TextAndTypography/Paragraph/utils/makeFragment.d.ts +0 -7
  27. package/dist/components/Editor/components/BlockTools/TextAndTypography/Quote/index.d.ts +0 -282
  28. package/dist/components/Editor/components/BlockTuneTools/Delete/index.d.ts +0 -33
  29. package/dist/components/Editor/components/BlockTuneTools/MoveDown/index.d.ts +0 -37
  30. package/dist/components/Editor/components/BlockTuneTools/MoveUp/index.d.ts +0 -37
  31. package/dist/components/Editor/index.d.ts +0 -9
  32. package/dist/style.css +0 -1
  33. /package/dist/components/{Desktop → desktop}/config.d.ts +0 -0
  34. /package/dist/components/{Desktop → desktop}/context/config/hooks.d.ts +0 -0
  35. /package/dist/components/{Desktop → desktop}/context/state/context.d.ts +0 -0
  36. /package/dist/components/{Desktop → desktop}/context/state/hooks.d.ts +0 -0
  37. /package/dist/components/{Desktop/ContextMenu → desktop/context-menu}/index.d.ts +0 -0
  38. /package/dist/components/{Desktop/Items/Modal/GroupItemModal.d.ts → desktop/items/modal/group-item-modal.d.ts} +0 -0
  39. /package/dist/components/{Desktop/Items/Modal/InfoModal.d.ts → desktop/items/modal/info-modal.d.ts} +0 -0
  40. /package/dist/components/{Desktop/Items/SortableItem.d.ts → desktop/items/sortable-item.d.ts} +0 -0
  41. /package/dist/components/{Desktop → desktop}/style.d.ts +0 -0
  42. /package/dist/components/{Desktop → desktop}/theme.d.ts +0 -0
  43. /package/dist/components/{Desktop → desktop}/types.d.ts +0 -0
  44. /package/dist/components/{Desktop → desktop}/utils.d.ts +0 -0
  45. /package/dist/components/{MdEditor → md-editor}/i18n/index.d.ts +0 -0
  46. /package/dist/components/{MdEditor → md-editor}/i18n/zh_CN.d.ts +0 -0
  47. /package/dist/components/{MdEditor → md-editor}/index.d.ts +0 -0
  48. /package/dist/components/{MdEditor → md-editor}/preview.d.ts +0 -0
  49. /package/dist/components/{MdEditor → md-editor}/style.d.ts +0 -0
package/dist/index.es.js CHANGED
@@ -1,25 +1,27 @@
1
- var Br = Object.defineProperty;
2
- var Lr = (g, r, l) => r in g ? Br(g, r, { enumerable: !0, configurable: !0, writable: !0, value: l }) : g[r] = l;
3
- var Ae = (g, r, l) => Lr(g, typeof r != "symbol" ? r + "" : r, l);
1
+ var qr = Object.defineProperty;
2
+ var Ur = (d, r, i) => r in d ? qr(d, r, { enumerable: !0, configurable: !0, writable: !0, value: i }) : d[r] = i;
3
+ var Fe = (d, r, i) => Ur(d, typeof r != "symbol" ? r + "" : r, i);
4
4
  import "./style.css";
5
- import nr, { createContext as ar, useMemo as Ee, useContext as ir, useState as te, useRef as Me, useEffect as we } from "react";
6
- import { cx as z, css as d } from "@emotion/css";
7
- import Fr from "react-slick";
8
- import { ReactSortable as Fe } from "react-sortablejs";
9
- import { AnimatePresence as zr, motion as A } from "framer-motion";
10
- import { useLocalStorageState as Yr, useDebounceEffect as Wr } from "ahooks";
11
- import { v4 as rr } from "uuid";
12
- import Vr from "rc-tooltip";
13
- import { RiPencilRuler2Line as Ur, RiShareLine as Gr, RiInformationLine as Xr, RiCloseCircleLine as qr } from "@remixicon/react";
14
- import lr from "rc-dialog";
15
- import Hr from "react-json-view";
16
- import { MDXEditor as Jr, toolbarPlugin as Kr, DiffSourceToggleWrapper as Zr, UndoRedo as Qr, Separator as ge, BoldItalicUnderlineToggles as eo, CodeToggle as ro, StrikeThroughSupSubToggles as oo, ListsToggle as to, CreateLink as no, InsertImage as ao, InsertTable as io, InsertThematicBreak as lo, InsertCodeBlock as so, InsertFrontmatter as co, diffSourcePlugin as uo, listsPlugin as go, quotePlugin as mo, headingsPlugin as po, linkPlugin as fo, linkDialogPlugin as ho, imagePlugin as bo, tablePlugin as vo, thematicBreakPlugin as ko, frontmatterPlugin as xo, codeBlockPlugin as wo, codeMirrorPlugin as yo, markdownShortcutPlugin as Co, directivesPlugin as So, AdmonitionDirectiveDescriptor as jo } from "@mdxeditor/editor";
17
- import Io from "react-markdown";
18
- import To from "remark-gfm";
19
- import Ro from "remark-emoji";
20
- import Eo from "rehype-raw";
21
- import { Prism as Mo } from "react-syntax-highlighter";
22
- var Le = { exports: {} }, ke = {};
5
+ import sr, { createContext as cr, useMemo as De, useContext as dr, useState as Q, useRef as Ce, useEffect as ye } from "react";
6
+ import { cx as V, css as p } from "@emotion/css";
7
+ import Gr from "react-slick";
8
+ import { ReactSortable as Ye } from "react-sortablejs";
9
+ import { AnimatePresence as We, motion as T, useMotionValue as Hr, useTransform as ke, useSpring as _e } from "framer-motion";
10
+ import { useLocalStorageState as Jr, useDebounceEffect as Kr } from "ahooks";
11
+ import { v4 as nr } from "uuid";
12
+ import Zr from "rc-tooltip";
13
+ import { RiPencilRuler2Line as Qr, RiShareLine as eo, RiInformationLine as ro, RiCloseCircleLine as oo, RiMoreLine as to } from "@remixicon/react";
14
+ import ur from "rc-dialog";
15
+ import no from "react-json-view";
16
+ import { MDXEditor as ao, toolbarPlugin as io, DiffSourceToggleWrapper as lo, UndoRedo as so, Separator as me, BoldItalicUnderlineToggles as co, CodeToggle as uo, StrikeThroughSupSubToggles as mo, ListsToggle as go, CreateLink as po, InsertImage as fo, InsertTable as ho, InsertThematicBreak as bo, InsertCodeBlock as vo, InsertFrontmatter as ko, diffSourcePlugin as xo, listsPlugin as wo, quotePlugin as yo, headingsPlugin as Co, linkPlugin as jo, linkDialogPlugin as So, imagePlugin as Io, tablePlugin as To, thematicBreakPlugin as Ro, frontmatterPlugin as Mo, codeBlockPlugin as Eo, codeMirrorPlugin as _o, markdownShortcutPlugin as Po, directivesPlugin as Do, AdmonitionDirectiveDescriptor as No } from "@mdxeditor/editor";
17
+ import $o from "react-markdown";
18
+ import Oo from "remark-gfm";
19
+ import Bo from "remark-emoji";
20
+ import Ao from "rehype-raw";
21
+ import { Prism as Lo } from "react-syntax-highlighter";
22
+ import { clsx as Fo } from "clsx";
23
+ import { twMerge as zo } from "tailwind-merge";
24
+ var Pe = { exports: {} }, xe = {};
23
25
  /**
24
26
  * @license React
25
27
  * react-jsx-runtime.production.min.js
@@ -29,21 +31,21 @@ var Le = { exports: {} }, ke = {};
29
31
  * This source code is licensed under the MIT license found in the
30
32
  * LICENSE file in the root directory of this source tree.
31
33
  */
32
- var or;
33
- function _o() {
34
- if (or) return ke;
35
- or = 1;
36
- var g = nr, r = Symbol.for("react.element"), l = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, m = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
37
- function f(b, i, I) {
38
- var v, N = {}, _ = null, W = null;
39
- I !== void 0 && (_ = "" + I), i.key !== void 0 && (_ = "" + i.key), i.ref !== void 0 && (W = i.ref);
40
- for (v in i) a.call(i, v) && !s.hasOwnProperty(v) && (N[v] = i[v]);
41
- if (b && b.defaultProps) for (v in i = b.defaultProps, i) N[v] === void 0 && (N[v] = i[v]);
42
- return { $$typeof: r, type: b, key: _, ref: W, props: N, _owner: m.current };
34
+ var ar;
35
+ function Yo() {
36
+ if (ar) return xe;
37
+ ar = 1;
38
+ var d = sr, r = Symbol.for("react.element"), i = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, c = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
39
+ function u(h, l, y) {
40
+ var v, _ = {}, E = null, F = null;
41
+ y !== void 0 && (E = "" + y), l.key !== void 0 && (E = "" + l.key), l.ref !== void 0 && (F = l.ref);
42
+ for (v in l) n.call(l, v) && !s.hasOwnProperty(v) && (_[v] = l[v]);
43
+ if (h && h.defaultProps) for (v in l = h.defaultProps, l) _[v] === void 0 && (_[v] = l[v]);
44
+ return { $$typeof: r, type: h, key: E, ref: F, props: _, _owner: c.current };
43
45
  }
44
- return ke.Fragment = l, ke.jsx = f, ke.jsxs = f, ke;
46
+ return xe.Fragment = i, xe.jsx = u, xe.jsxs = u, xe;
45
47
  }
46
- var xe = {};
48
+ var we = {};
47
49
  /**
48
50
  * @license React
49
51
  * react-jsx-runtime.development.js
@@ -53,91 +55,91 @@ var xe = {};
53
55
  * This source code is licensed under the MIT license found in the
54
56
  * LICENSE file in the root directory of this source tree.
55
57
  */
56
- var tr;
57
- function Po() {
58
- return tr || (tr = 1, process.env.NODE_ENV !== "production" && function() {
59
- var g = nr, r = Symbol.for("react.element"), l = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), m = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), b = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), V = Symbol.iterator, h = "@@iterator";
60
- function u(e) {
58
+ var ir;
59
+ function Wo() {
60
+ return ir || (ir = 1, process.env.NODE_ENV !== "production" && function() {
61
+ var d = sr, r = Symbol.for("react.element"), i = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), h = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), F = Symbol.for("react.offscreen"), z = Symbol.iterator, b = "@@iterator";
62
+ function m(e) {
61
63
  if (e === null || typeof e != "object")
62
64
  return null;
63
- var o = V && e[V] || e[h];
64
- return typeof o == "function" ? o : null;
65
+ var t = z && e[z] || e[b];
66
+ return typeof t == "function" ? t : null;
65
67
  }
66
- var R = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
67
- function p(e) {
68
+ var R = d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
69
+ function f(e) {
68
70
  {
69
- for (var o = arguments.length, n = new Array(o > 1 ? o - 1 : 0), c = 1; c < o; c++)
70
- n[c - 1] = arguments[c];
71
- G("error", e, n);
71
+ for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), g = 1; g < t; g++)
72
+ a[g - 1] = arguments[g];
73
+ Y("error", e, a);
72
74
  }
73
75
  }
74
- function G(e, o, n) {
76
+ function Y(e, t, a) {
75
77
  {
76
- var c = R.ReactDebugCurrentFrame, T = c.getStackAddendum();
77
- T !== "" && (o += "%s", n = n.concat([T]));
78
- var $ = n.map(function(S) {
78
+ var g = R.ReactDebugCurrentFrame, M = g.getStackAddendum();
79
+ M !== "" && (t += "%s", a = a.concat([M]));
80
+ var O = a.map(function(S) {
79
81
  return String(S);
80
82
  });
81
- $.unshift("Warning: " + o), Function.prototype.apply.call(console[e], console, $);
83
+ O.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, O);
82
84
  }
83
85
  }
84
- var k = !1, P = !1, E = !1, x = !1, y = !1, X;
85
- X = Symbol.for("react.module.reference");
86
+ var k = !1, N = !1, P = !1, x = !1, C = !1, U;
87
+ U = Symbol.for("react.module.reference");
86
88
  function ce(e) {
87
- return !!(typeof e == "string" || typeof e == "function" || e === a || e === s || y || e === m || e === I || e === v || x || e === W || k || P || E || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === N || e.$$typeof === f || e.$$typeof === b || e.$$typeof === i || // This needs to include all possible module reference object
89
+ return !!(typeof e == "string" || typeof e == "function" || e === n || e === s || C || e === c || e === y || e === v || x || e === F || k || N || P || typeof e == "object" && e !== null && (e.$$typeof === E || e.$$typeof === _ || e.$$typeof === u || e.$$typeof === h || e.$$typeof === l || // This needs to include all possible module reference object
88
90
  // types supported by any Flight configuration anywhere since
89
91
  // we don't know which Flight build this will end up being used
90
92
  // with.
91
- e.$$typeof === X || e.getModuleId !== void 0));
93
+ e.$$typeof === U || e.getModuleId !== void 0));
92
94
  }
93
- function H(e, o, n) {
94
- var c = e.displayName;
95
- if (c)
96
- return c;
97
- var T = o.displayName || o.name || "";
98
- return T !== "" ? n + "(" + T + ")" : n;
95
+ function H(e, t, a) {
96
+ var g = e.displayName;
97
+ if (g)
98
+ return g;
99
+ var M = t.displayName || t.name || "";
100
+ return M !== "" ? a + "(" + M + ")" : a;
99
101
  }
100
102
  function pe(e) {
101
103
  return e.displayName || "Context";
102
104
  }
103
- function q(e) {
105
+ function G(e) {
104
106
  if (e == null)
105
107
  return null;
106
- if (typeof e.tag == "number" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
108
+ if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
107
109
  return e.displayName || e.name || null;
108
110
  if (typeof e == "string")
109
111
  return e;
110
112
  switch (e) {
111
- case a:
113
+ case n:
112
114
  return "Fragment";
113
- case l:
115
+ case i:
114
116
  return "Portal";
115
117
  case s:
116
118
  return "Profiler";
117
- case m:
119
+ case c:
118
120
  return "StrictMode";
119
- case I:
121
+ case y:
120
122
  return "Suspense";
121
123
  case v:
122
124
  return "SuspenseList";
123
125
  }
124
126
  if (typeof e == "object")
125
127
  switch (e.$$typeof) {
126
- case b:
127
- var o = e;
128
- return pe(o) + ".Consumer";
129
- case f:
130
- var n = e;
131
- return pe(n._context) + ".Provider";
132
- case i:
128
+ case h:
129
+ var t = e;
130
+ return pe(t) + ".Consumer";
131
+ case u:
132
+ var a = e;
133
+ return pe(a._context) + ".Provider";
134
+ case l:
133
135
  return H(e, e.render, "ForwardRef");
134
- case N:
135
- var c = e.displayName || null;
136
- return c !== null ? c : q(e.type) || "Memo";
137
- case _: {
138
- var T = e, $ = T._payload, S = T._init;
136
+ case _:
137
+ var g = e.displayName || null;
138
+ return g !== null ? g : G(e.type) || "Memo";
139
+ case E: {
140
+ var M = e, O = M._payload, S = M._init;
139
141
  try {
140
- return q(S($));
142
+ return G(S(O));
141
143
  } catch {
142
144
  return null;
143
145
  }
@@ -145,18 +147,18 @@ function Po() {
145
147
  }
146
148
  return null;
147
149
  }
148
- var re = Object.assign, le = 0, B, ne, se, ye, Ce, Se, je;
149
- function j() {
150
+ var oe = Object.assign, le = 0, A, ne, se, je, Se, Ie, Te;
151
+ function I() {
150
152
  }
151
- j.__reactDisabledLog = !0;
153
+ I.__reactDisabledLog = !0;
152
154
  function K() {
153
155
  {
154
156
  if (le === 0) {
155
- B = console.log, ne = console.info, se = console.warn, ye = console.error, Ce = console.group, Se = console.groupCollapsed, je = console.groupEnd;
157
+ A = console.log, ne = console.info, se = console.warn, je = console.error, Se = console.group, Ie = console.groupCollapsed, Te = console.groupEnd;
156
158
  var e = {
157
159
  configurable: !0,
158
160
  enumerable: !0,
159
- value: j,
161
+ value: I,
160
162
  writable: !0
161
163
  };
162
164
  Object.defineProperties(console, {
@@ -181,67 +183,67 @@ function Po() {
181
183
  writable: !0
182
184
  };
183
185
  Object.defineProperties(console, {
184
- log: re({}, e, {
185
- value: B
186
+ log: oe({}, e, {
187
+ value: A
186
188
  }),
187
- info: re({}, e, {
189
+ info: oe({}, e, {
188
190
  value: ne
189
191
  }),
190
- warn: re({}, e, {
192
+ warn: oe({}, e, {
191
193
  value: se
192
194
  }),
193
- error: re({}, e, {
194
- value: ye
195
- }),
196
- group: re({}, e, {
197
- value: Ce
195
+ error: oe({}, e, {
196
+ value: je
198
197
  }),
199
- groupCollapsed: re({}, e, {
198
+ group: oe({}, e, {
200
199
  value: Se
201
200
  }),
202
- groupEnd: re({}, e, {
203
- value: je
201
+ groupCollapsed: oe({}, e, {
202
+ value: Ie
203
+ }),
204
+ groupEnd: oe({}, e, {
205
+ value: Te
204
206
  })
205
207
  });
206
208
  }
207
- le < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
209
+ le < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
208
210
  }
209
211
  }
210
- var D = R.ReactCurrentDispatcher, L;
211
- function O(e, o, n) {
212
+ var $ = R.ReactCurrentDispatcher, L;
213
+ function B(e, t, a) {
212
214
  {
213
215
  if (L === void 0)
214
216
  try {
215
217
  throw Error();
216
- } catch (T) {
217
- var c = T.stack.trim().match(/\n( *(at )?)/);
218
- L = c && c[1] || "";
218
+ } catch (M) {
219
+ var g = M.stack.trim().match(/\n( *(at )?)/);
220
+ L = g && g[1] || "";
219
221
  }
220
222
  return `
221
223
  ` + L + e;
222
224
  }
223
225
  }
224
- var C = !1, M;
226
+ var j = !1, D;
225
227
  {
226
- var U = typeof WeakMap == "function" ? WeakMap : Map;
227
- M = new U();
228
+ var q = typeof WeakMap == "function" ? WeakMap : Map;
229
+ D = new q();
228
230
  }
229
- function oe(e, o) {
230
- if (!e || C)
231
+ function te(e, t) {
232
+ if (!e || j)
231
233
  return "";
232
234
  {
233
- var n = M.get(e);
234
- if (n !== void 0)
235
- return n;
235
+ var a = D.get(e);
236
+ if (a !== void 0)
237
+ return a;
236
238
  }
237
- var c;
238
- C = !0;
239
- var T = Error.prepareStackTrace;
239
+ var g;
240
+ j = !0;
241
+ var M = Error.prepareStackTrace;
240
242
  Error.prepareStackTrace = void 0;
241
- var $;
242
- $ = D.current, D.current = null, K();
243
+ var O;
244
+ O = $.current, $.current = null, K();
243
245
  try {
244
- if (o) {
246
+ if (t) {
245
247
  var S = function() {
246
248
  throw Error();
247
249
  };
@@ -252,200 +254,200 @@ function Po() {
252
254
  }), typeof Reflect == "object" && Reflect.construct) {
253
255
  try {
254
256
  Reflect.construct(S, []);
255
- } catch (ee) {
256
- c = ee;
257
+ } catch (re) {
258
+ g = re;
257
259
  }
258
260
  Reflect.construct(e, [], S);
259
261
  } else {
260
262
  try {
261
263
  S.call();
262
- } catch (ee) {
263
- c = ee;
264
+ } catch (re) {
265
+ g = re;
264
266
  }
265
267
  e.call(S.prototype);
266
268
  }
267
269
  } else {
268
270
  try {
269
271
  throw Error();
270
- } catch (ee) {
271
- c = ee;
272
+ } catch (re) {
273
+ g = re;
272
274
  }
273
275
  e();
274
276
  }
275
- } catch (ee) {
276
- if (ee && c && typeof ee.stack == "string") {
277
- for (var w = ee.stack.split(`
278
- `), Z = c.stack.split(`
279
- `), F = w.length - 1, Y = Z.length - 1; F >= 1 && Y >= 0 && w[F] !== Z[Y]; )
280
- Y--;
281
- for (; F >= 1 && Y >= 0; F--, Y--)
282
- if (w[F] !== Z[Y]) {
283
- if (F !== 1 || Y !== 1)
277
+ } catch (re) {
278
+ if (re && g && typeof re.stack == "string") {
279
+ for (var w = re.stack.split(`
280
+ `), Z = g.stack.split(`
281
+ `), W = w.length - 1, X = Z.length - 1; W >= 1 && X >= 0 && w[W] !== Z[X]; )
282
+ X--;
283
+ for (; W >= 1 && X >= 0; W--, X--)
284
+ if (w[W] !== Z[X]) {
285
+ if (W !== 1 || X !== 1)
284
286
  do
285
- if (F--, Y--, Y < 0 || w[F] !== Z[Y]) {
287
+ if (W--, X--, X < 0 || w[W] !== Z[X]) {
286
288
  var ae = `
287
- ` + w[F].replace(" at new ", " at ");
288
- return e.displayName && ae.includes("<anonymous>") && (ae = ae.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, ae), ae;
289
+ ` + w[W].replace(" at new ", " at ");
290
+ return e.displayName && ae.includes("<anonymous>") && (ae = ae.replace("<anonymous>", e.displayName)), typeof e == "function" && D.set(e, ae), ae;
289
291
  }
290
- while (F >= 1 && Y >= 0);
292
+ while (W >= 1 && X >= 0);
291
293
  break;
292
294
  }
293
295
  }
294
296
  } finally {
295
- C = !1, D.current = $, J(), Error.prepareStackTrace = T;
297
+ j = !1, $.current = O, J(), Error.prepareStackTrace = M;
296
298
  }
297
- var he = e ? e.displayName || e.name : "", ue = he ? O(he) : "";
298
- return typeof e == "function" && M.set(e, ue), ue;
299
+ var he = e ? e.displayName || e.name : "", ue = he ? B(he) : "";
300
+ return typeof e == "function" && D.set(e, ue), ue;
299
301
  }
300
- function Ie(e, o, n) {
301
- return oe(e, !1);
302
+ function Re(e, t, a) {
303
+ return te(e, !1);
302
304
  }
303
- function Te(e) {
304
- var o = e.prototype;
305
- return !!(o && o.isReactComponent);
305
+ function Me(e) {
306
+ var t = e.prototype;
307
+ return !!(t && t.isReactComponent);
306
308
  }
307
- function Q(e, o, n) {
309
+ function ee(e, t, a) {
308
310
  if (e == null)
309
311
  return "";
310
312
  if (typeof e == "function")
311
- return oe(e, Te(e));
313
+ return te(e, Me(e));
312
314
  if (typeof e == "string")
313
- return O(e);
315
+ return B(e);
314
316
  switch (e) {
315
- case I:
316
- return O("Suspense");
317
+ case y:
318
+ return B("Suspense");
317
319
  case v:
318
- return O("SuspenseList");
320
+ return B("SuspenseList");
319
321
  }
320
322
  if (typeof e == "object")
321
323
  switch (e.$$typeof) {
322
- case i:
323
- return Ie(e.render);
324
- case N:
325
- return Q(e.type, o, n);
326
- case _: {
327
- var c = e, T = c._payload, $ = c._init;
324
+ case l:
325
+ return Re(e.render);
326
+ case _:
327
+ return ee(e.type, t, a);
328
+ case E: {
329
+ var g = e, M = g._payload, O = g._init;
328
330
  try {
329
- return Q($(T), o, n);
331
+ return ee(O(M), t, a);
330
332
  } catch {
331
333
  }
332
334
  }
333
335
  }
334
336
  return "";
335
337
  }
336
- var de = Object.prototype.hasOwnProperty, Ye = {}, We = R.ReactDebugCurrentFrame;
337
- function Re(e) {
338
+ var de = Object.prototype.hasOwnProperty, Xe = {}, qe = R.ReactDebugCurrentFrame;
339
+ function Ee(e) {
338
340
  if (e) {
339
- var o = e._owner, n = Q(e.type, e._source, o ? o.type : null);
340
- We.setExtraStackFrame(n);
341
+ var t = e._owner, a = ee(e.type, e._source, t ? t.type : null);
342
+ qe.setExtraStackFrame(a);
341
343
  } else
342
- We.setExtraStackFrame(null);
344
+ qe.setExtraStackFrame(null);
343
345
  }
344
- function hr(e, o, n, c, T) {
346
+ function jr(e, t, a, g, M) {
345
347
  {
346
- var $ = Function.call.bind(de);
348
+ var O = Function.call.bind(de);
347
349
  for (var S in e)
348
- if ($(e, S)) {
350
+ if (O(e, S)) {
349
351
  var w = void 0;
350
352
  try {
351
353
  if (typeof e[S] != "function") {
352
- var Z = Error((c || "React class") + ": " + n + " type `" + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[S] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
354
+ var Z = Error((g || "React class") + ": " + a + " type `" + S + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[S] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
353
355
  throw Z.name = "Invariant Violation", Z;
354
356
  }
355
- w = e[S](o, S, c, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
356
- } catch (F) {
357
- w = F;
357
+ w = e[S](t, S, g, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
358
+ } catch (W) {
359
+ w = W;
358
360
  }
359
- w && !(w instanceof Error) && (Re(T), p("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", n, S, typeof w), Re(null)), w instanceof Error && !(w.message in Ye) && (Ye[w.message] = !0, Re(T), p("Failed %s type: %s", n, w.message), Re(null));
361
+ w && !(w instanceof Error) && (Ee(M), f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", g || "React class", a, S, typeof w), Ee(null)), w instanceof Error && !(w.message in Xe) && (Xe[w.message] = !0, Ee(M), f("Failed %s type: %s", a, w.message), Ee(null));
360
362
  }
361
363
  }
362
364
  }
363
- var br = Array.isArray;
364
- function _e(e) {
365
- return br(e);
365
+ var Sr = Array.isArray;
366
+ function Ne(e) {
367
+ return Sr(e);
366
368
  }
367
- function vr(e) {
369
+ function Ir(e) {
368
370
  {
369
- var o = typeof Symbol == "function" && Symbol.toStringTag, n = o && e[Symbol.toStringTag] || e.constructor.name || "Object";
370
- return n;
371
+ var t = typeof Symbol == "function" && Symbol.toStringTag, a = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
372
+ return a;
371
373
  }
372
374
  }
373
- function kr(e) {
375
+ function Tr(e) {
374
376
  try {
375
- return Ve(e), !1;
377
+ return Ue(e), !1;
376
378
  } catch {
377
379
  return !0;
378
380
  }
379
381
  }
380
- function Ve(e) {
382
+ function Ue(e) {
381
383
  return "" + e;
382
384
  }
383
- function Ue(e) {
384
- if (kr(e))
385
- return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", vr(e)), Ve(e);
385
+ function Ge(e) {
386
+ if (Tr(e))
387
+ return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ir(e)), Ue(e);
386
388
  }
387
- var ve = R.ReactCurrentOwner, xr = {
389
+ var ve = R.ReactCurrentOwner, Rr = {
388
390
  key: !0,
389
391
  ref: !0,
390
392
  __self: !0,
391
393
  __source: !0
392
- }, Ge, Xe, Pe;
393
- Pe = {};
394
- function wr(e) {
394
+ }, He, Je, $e;
395
+ $e = {};
396
+ function Mr(e) {
395
397
  if (de.call(e, "ref")) {
396
- var o = Object.getOwnPropertyDescriptor(e, "ref").get;
397
- if (o && o.isReactWarning)
398
+ var t = Object.getOwnPropertyDescriptor(e, "ref").get;
399
+ if (t && t.isReactWarning)
398
400
  return !1;
399
401
  }
400
402
  return e.ref !== void 0;
401
403
  }
402
- function yr(e) {
404
+ function Er(e) {
403
405
  if (de.call(e, "key")) {
404
- var o = Object.getOwnPropertyDescriptor(e, "key").get;
405
- if (o && o.isReactWarning)
406
+ var t = Object.getOwnPropertyDescriptor(e, "key").get;
407
+ if (t && t.isReactWarning)
406
408
  return !1;
407
409
  }
408
410
  return e.key !== void 0;
409
411
  }
410
- function Cr(e, o) {
411
- if (typeof e.ref == "string" && ve.current && o && ve.current.stateNode !== o) {
412
- var n = q(ve.current.type);
413
- Pe[n] || (p('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', q(ve.current.type), e.ref), Pe[n] = !0);
412
+ function _r(e, t) {
413
+ if (typeof e.ref == "string" && ve.current && t && ve.current.stateNode !== t) {
414
+ var a = G(ve.current.type);
415
+ $e[a] || (f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', G(ve.current.type), e.ref), $e[a] = !0);
414
416
  }
415
417
  }
416
- function Sr(e, o) {
418
+ function Pr(e, t) {
417
419
  {
418
- var n = function() {
419
- Ge || (Ge = !0, p("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
420
+ var a = function() {
421
+ He || (He = !0, f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
420
422
  };
421
- n.isReactWarning = !0, Object.defineProperty(e, "key", {
422
- get: n,
423
+ a.isReactWarning = !0, Object.defineProperty(e, "key", {
424
+ get: a,
423
425
  configurable: !0
424
426
  });
425
427
  }
426
428
  }
427
- function jr(e, o) {
429
+ function Dr(e, t) {
428
430
  {
429
- var n = function() {
430
- Xe || (Xe = !0, p("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", o));
431
+ var a = function() {
432
+ Je || (Je = !0, f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
431
433
  };
432
- n.isReactWarning = !0, Object.defineProperty(e, "ref", {
433
- get: n,
434
+ a.isReactWarning = !0, Object.defineProperty(e, "ref", {
435
+ get: a,
434
436
  configurable: !0
435
437
  });
436
438
  }
437
439
  }
438
- var Ir = function(e, o, n, c, T, $, S) {
440
+ var Nr = function(e, t, a, g, M, O, S) {
439
441
  var w = {
440
442
  // This tag allows us to uniquely identify this as a React Element
441
443
  $$typeof: r,
442
444
  // Built-in properties that belong on the element
443
445
  type: e,
444
- key: o,
445
- ref: n,
446
+ key: t,
447
+ ref: a,
446
448
  props: S,
447
449
  // Record the component responsible for creating this element.
448
- _owner: $
450
+ _owner: O
449
451
  };
450
452
  return w._store = {}, Object.defineProperty(w._store, "validated", {
451
453
  configurable: !1,
@@ -456,49 +458,49 @@ function Po() {
456
458
  configurable: !1,
457
459
  enumerable: !1,
458
460
  writable: !1,
459
- value: c
461
+ value: g
460
462
  }), Object.defineProperty(w, "_source", {
461
463
  configurable: !1,
462
464
  enumerable: !1,
463
465
  writable: !1,
464
- value: T
466
+ value: M
465
467
  }), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
466
468
  };
467
- function Tr(e, o, n, c, T) {
469
+ function $r(e, t, a, g, M) {
468
470
  {
469
- var $, S = {}, w = null, Z = null;
470
- n !== void 0 && (Ue(n), w = "" + n), yr(o) && (Ue(o.key), w = "" + o.key), wr(o) && (Z = o.ref, Cr(o, T));
471
- for ($ in o)
472
- de.call(o, $) && !xr.hasOwnProperty($) && (S[$] = o[$]);
471
+ var O, S = {}, w = null, Z = null;
472
+ a !== void 0 && (Ge(a), w = "" + a), Er(t) && (Ge(t.key), w = "" + t.key), Mr(t) && (Z = t.ref, _r(t, M));
473
+ for (O in t)
474
+ de.call(t, O) && !Rr.hasOwnProperty(O) && (S[O] = t[O]);
473
475
  if (e && e.defaultProps) {
474
- var F = e.defaultProps;
475
- for ($ in F)
476
- S[$] === void 0 && (S[$] = F[$]);
476
+ var W = e.defaultProps;
477
+ for (O in W)
478
+ S[O] === void 0 && (S[O] = W[O]);
477
479
  }
478
480
  if (w || Z) {
479
- var Y = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
480
- w && Sr(S, Y), Z && jr(S, Y);
481
+ var X = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
482
+ w && Pr(S, X), Z && Dr(S, X);
481
483
  }
482
- return Ir(e, w, Z, T, c, ve.current, S);
484
+ return Nr(e, w, Z, M, g, ve.current, S);
483
485
  }
484
486
  }
485
- var De = R.ReactCurrentOwner, qe = R.ReactDebugCurrentFrame;
487
+ var Oe = R.ReactCurrentOwner, Ke = R.ReactDebugCurrentFrame;
486
488
  function fe(e) {
487
489
  if (e) {
488
- var o = e._owner, n = Q(e.type, e._source, o ? o.type : null);
489
- qe.setExtraStackFrame(n);
490
+ var t = e._owner, a = ee(e.type, e._source, t ? t.type : null);
491
+ Ke.setExtraStackFrame(a);
490
492
  } else
491
- qe.setExtraStackFrame(null);
493
+ Ke.setExtraStackFrame(null);
492
494
  }
493
- var $e;
494
- $e = !1;
495
- function Ne(e) {
495
+ var Be;
496
+ Be = !1;
497
+ function Ae(e) {
496
498
  return typeof e == "object" && e !== null && e.$$typeof === r;
497
499
  }
498
- function He() {
500
+ function Ze() {
499
501
  {
500
- if (De.current) {
501
- var e = q(De.current.type);
502
+ if (Oe.current) {
503
+ var e = G(Oe.current.type);
502
504
  if (e)
503
505
  return `
504
506
 
@@ -507,149 +509,152 @@ Check the render method of \`` + e + "`.";
507
509
  return "";
508
510
  }
509
511
  }
510
- function Rr(e) {
512
+ function Or(e) {
511
513
  return "";
512
514
  }
513
- var Je = {};
514
- function Er(e) {
515
+ var Qe = {};
516
+ function Br(e) {
515
517
  {
516
- var o = He();
517
- if (!o) {
518
- var n = typeof e == "string" ? e : e.displayName || e.name;
519
- n && (o = `
518
+ var t = Ze();
519
+ if (!t) {
520
+ var a = typeof e == "string" ? e : e.displayName || e.name;
521
+ a && (t = `
520
522
 
521
- Check the top-level render call using <` + n + ">.");
523
+ Check the top-level render call using <` + a + ">.");
522
524
  }
523
- return o;
525
+ return t;
524
526
  }
525
527
  }
526
- function Ke(e, o) {
528
+ function er(e, t) {
527
529
  {
528
530
  if (!e._store || e._store.validated || e.key != null)
529
531
  return;
530
532
  e._store.validated = !0;
531
- var n = Er(o);
532
- if (Je[n])
533
+ var a = Br(t);
534
+ if (Qe[a])
533
535
  return;
534
- Je[n] = !0;
535
- var c = "";
536
- e && e._owner && e._owner !== De.current && (c = " It was passed a child from " + q(e._owner.type) + "."), fe(e), p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, c), fe(null);
536
+ Qe[a] = !0;
537
+ var g = "";
538
+ e && e._owner && e._owner !== Oe.current && (g = " It was passed a child from " + G(e._owner.type) + "."), fe(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, g), fe(null);
537
539
  }
538
540
  }
539
- function Ze(e, o) {
541
+ function rr(e, t) {
540
542
  {
541
543
  if (typeof e != "object")
542
544
  return;
543
- if (_e(e))
544
- for (var n = 0; n < e.length; n++) {
545
- var c = e[n];
546
- Ne(c) && Ke(c, o);
545
+ if (Ne(e))
546
+ for (var a = 0; a < e.length; a++) {
547
+ var g = e[a];
548
+ Ae(g) && er(g, t);
547
549
  }
548
- else if (Ne(e))
550
+ else if (Ae(e))
549
551
  e._store && (e._store.validated = !0);
550
552
  else if (e) {
551
- var T = u(e);
552
- if (typeof T == "function" && T !== e.entries)
553
- for (var $ = T.call(e), S; !(S = $.next()).done; )
554
- Ne(S.value) && Ke(S.value, o);
553
+ var M = m(e);
554
+ if (typeof M == "function" && M !== e.entries)
555
+ for (var O = M.call(e), S; !(S = O.next()).done; )
556
+ Ae(S.value) && er(S.value, t);
555
557
  }
556
558
  }
557
559
  }
558
- function Mr(e) {
560
+ function Ar(e) {
559
561
  {
560
- var o = e.type;
561
- if (o == null || typeof o == "string")
562
+ var t = e.type;
563
+ if (t == null || typeof t == "string")
562
564
  return;
563
- var n;
564
- if (typeof o == "function")
565
- n = o.propTypes;
566
- else if (typeof o == "object" && (o.$$typeof === i || // Note: Memo only checks outer props here.
565
+ var a;
566
+ if (typeof t == "function")
567
+ a = t.propTypes;
568
+ else if (typeof t == "object" && (t.$$typeof === l || // Note: Memo only checks outer props here.
567
569
  // Inner props are checked in the reconciler.
568
- o.$$typeof === N))
569
- n = o.propTypes;
570
+ t.$$typeof === _))
571
+ a = t.propTypes;
570
572
  else
571
573
  return;
572
- if (n) {
573
- var c = q(o);
574
- hr(n, e.props, "prop", c, e);
575
- } else if (o.PropTypes !== void 0 && !$e) {
576
- $e = !0;
577
- var T = q(o);
578
- p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
574
+ if (a) {
575
+ var g = G(t);
576
+ jr(a, e.props, "prop", g, e);
577
+ } else if (t.PropTypes !== void 0 && !Be) {
578
+ Be = !0;
579
+ var M = G(t);
580
+ f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
579
581
  }
580
- typeof o.getDefaultProps == "function" && !o.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
582
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
581
583
  }
582
584
  }
583
- function _r(e) {
585
+ function Lr(e) {
584
586
  {
585
- for (var o = Object.keys(e.props), n = 0; n < o.length; n++) {
586
- var c = o[n];
587
- if (c !== "children" && c !== "key") {
588
- fe(e), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), fe(null);
587
+ for (var t = Object.keys(e.props), a = 0; a < t.length; a++) {
588
+ var g = t[a];
589
+ if (g !== "children" && g !== "key") {
590
+ fe(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", g), fe(null);
589
591
  break;
590
592
  }
591
593
  }
592
- e.ref !== null && (fe(e), p("Invalid attribute `ref` supplied to `React.Fragment`."), fe(null));
594
+ e.ref !== null && (fe(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), fe(null));
593
595
  }
594
596
  }
595
- var Qe = {};
596
- function er(e, o, n, c, T, $) {
597
+ var or = {};
598
+ function tr(e, t, a, g, M, O) {
597
599
  {
598
600
  var S = ce(e);
599
601
  if (!S) {
600
602
  var w = "";
601
603
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (w += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
602
- var Z = Rr();
603
- Z ? w += Z : w += He();
604
- var F;
605
- e === null ? F = "null" : _e(e) ? F = "array" : e !== void 0 && e.$$typeof === r ? (F = "<" + (q(e.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : F = typeof e, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", F, w);
604
+ var Z = Or();
605
+ Z ? w += Z : w += Ze();
606
+ var W;
607
+ e === null ? W = "null" : Ne(e) ? W = "array" : e !== void 0 && e.$$typeof === r ? (W = "<" + (G(e.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : W = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, w);
606
608
  }
607
- var Y = Tr(e, o, n, T, $);
608
- if (Y == null)
609
- return Y;
609
+ var X = $r(e, t, a, M, O);
610
+ if (X == null)
611
+ return X;
610
612
  if (S) {
611
- var ae = o.children;
613
+ var ae = t.children;
612
614
  if (ae !== void 0)
613
- if (c)
614
- if (_e(ae)) {
615
+ if (g)
616
+ if (Ne(ae)) {
615
617
  for (var he = 0; he < ae.length; he++)
616
- Ze(ae[he], e);
618
+ rr(ae[he], e);
617
619
  Object.freeze && Object.freeze(ae);
618
620
  } else
619
- p("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
621
+ f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
620
622
  else
621
- Ze(ae, e);
623
+ rr(ae, e);
622
624
  }
623
- if (de.call(o, "key")) {
624
- var ue = q(e), ee = Object.keys(o).filter(function(Ar) {
625
- return Ar !== "key";
626
- }), Oe = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
627
- if (!Qe[ue + Oe]) {
628
- var Or = ee.length > 0 ? "{" + ee.join(": ..., ") + ": ...}" : "{}";
629
- p(`A props object containing a "key" prop is being spread into JSX:
625
+ if (de.call(t, "key")) {
626
+ var ue = G(e), re = Object.keys(t).filter(function(Xr) {
627
+ return Xr !== "key";
628
+ }), Le = re.length > 0 ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}";
629
+ if (!or[ue + Le]) {
630
+ var Vr = re.length > 0 ? "{" + re.join(": ..., ") + ": ...}" : "{}";
631
+ f(`A props object containing a "key" prop is being spread into JSX:
630
632
  let props = %s;
631
633
  <%s {...props} />
632
634
  React keys must be passed directly to JSX without using spread:
633
635
  let props = %s;
634
- <%s key={someKey} {...props} />`, Oe, ue, Or, ue), Qe[ue + Oe] = !0;
636
+ <%s key={someKey} {...props} />`, Le, ue, Vr, ue), or[ue + Le] = !0;
635
637
  }
636
638
  }
637
- return e === a ? _r(Y) : Mr(Y), Y;
639
+ return e === n ? Lr(X) : Ar(X), X;
638
640
  }
639
641
  }
640
- function Pr(e, o, n) {
641
- return er(e, o, n, !0);
642
+ function Fr(e, t, a) {
643
+ return tr(e, t, a, !0);
642
644
  }
643
- function Dr(e, o, n) {
644
- return er(e, o, n, !1);
645
+ function zr(e, t, a) {
646
+ return tr(e, t, a, !1);
645
647
  }
646
- var $r = Dr, Nr = Pr;
647
- xe.Fragment = a, xe.jsx = $r, xe.jsxs = Nr;
648
- }()), xe;
648
+ var Yr = zr, Wr = Fr;
649
+ we.Fragment = n, we.jsx = Yr, we.jsxs = Wr;
650
+ }()), we;
649
651
  }
650
- process.env.NODE_ENV === "production" ? Le.exports = _o() : Le.exports = Po();
651
- var t = Le.exports;
652
- const sr = {
652
+ var lr;
653
+ function Vo() {
654
+ return lr || (lr = 1, process.env.NODE_ENV === "production" ? Pe.exports = Yo() : Pe.exports = Wo()), Pe.exports;
655
+ }
656
+ var o = Vo();
657
+ const mr = {
653
658
  token: {
654
659
  itemNameColor: "#1a1a1a",
655
660
  itemIconBackgroundColor: "white",
@@ -662,7 +667,7 @@ const sr = {
662
667
  contextMenuBackgroundColor: "white",
663
668
  contextMenuShadowColor: "rgba(0, 0, 0, 0.1)"
664
669
  }
665
- }, cr = {
670
+ }, gr = {
666
671
  token: {
667
672
  itemNameColor: "white",
668
673
  itemIconBackgroundColor: "#1f2937",
@@ -675,28 +680,28 @@ const sr = {
675
680
  contextMenuBackgroundColor: "#1a1a1a",
676
681
  contextMenuShadowColor: "rgba(255, 255, 255, 0.1)"
677
682
  }
678
- }, dr = ar(
683
+ }, pr = cr(
679
684
  {}
680
- ), Do = (g) => {
681
- const { children: r, theme: l, ...a } = g, m = Ee(() => l === "light" ? sr : l === "dark" ? cr : l, [l]);
682
- return /* @__PURE__ */ t.jsx(dr.Provider, { value: { theme: m, ...a }, children: r });
683
- }, me = () => ir(dr), ur = {
685
+ ), Xo = (d) => {
686
+ const { children: r, theme: i, ...n } = d, c = De(() => i === "light" ? mr : i === "dark" ? gr : i, [i]);
687
+ return /* @__PURE__ */ o.jsx(pr.Provider, { value: { theme: c, ...n }, children: r });
688
+ }, ge = () => dr(pr), fr = {
684
689
  maxRow: 2,
685
690
  maxCol: 2
686
- }, $o = {
687
- ...ur
688
- }, gr = {
689
- app: ur,
690
- group: $o
691
+ }, qo = {
692
+ ...fr
693
+ }, hr = {
694
+ app: fr,
695
+ group: qo
691
696
  };
692
697
  class ie {
693
698
  }
694
699
  /** 清理重复id */
695
- Ae(ie, "uniqueArray", (r) => r.reduce((l, a) => l.find((s) => s.id === a.id) ? l : l.concat([a]), [])), Ae(ie, "getTheme", (r) => {
696
- const l = sr.token, a = cr.token, m = { ...l, ...r == null ? void 0 : r.token }, s = { ...a, ...r == null ? void 0 : r.token };
697
- return { light: m, dark: s };
700
+ Fe(ie, "uniqueArray", (r) => r.reduce((i, n) => i.find((s) => s.id === n.id) ? i : i.concat([n]), [])), Fe(ie, "getTheme", (r) => {
701
+ const i = mr.token, n = gr.token, c = { ...i, ...r == null ? void 0 : r.token }, s = { ...n, ...r == null ? void 0 : r.token };
702
+ return { light: c, dark: s };
698
703
  });
699
- const mr = ar({
704
+ const br = cr({
700
705
  list: [],
701
706
  setList: () => {
702
707
  },
@@ -731,197 +736,197 @@ const mr = ar({
731
736
  moveTargetId: null,
732
737
  setMoveTargetId: () => {
733
738
  }
734
- }), No = (g) => {
739
+ }), Uo = (d) => {
735
740
  const {
736
741
  children: r,
737
- list: l = [],
738
- onChange: a,
739
- storageKey: m = "ZS_LIBRARY_DESKTOP_SORTABLE_CONFIG",
742
+ list: i = [],
743
+ onChange: n,
744
+ storageKey: c = "ZS_LIBRARY_DESKTOP_SORTABLE_CONFIG",
740
745
  enableCaching: s = !0
741
- } = g, [f, b] = te(), [i, I] = te(), [v, N] = te(null), _ = Me(v), [W, V] = te(null), [h, u] = te([]), [R, p] = te(
746
+ } = d, [u, h] = Q(), [l, y] = Q(), [v, _] = Q(null), E = Ce(v), [F, z] = Q(null), [b, m] = Q([]), [R, f] = Q(
742
747
  null
743
- ), [G, k] = te(
748
+ ), [Y, k] = Q(
744
749
  null
745
- ), [P, E] = te(!1), [x, y] = te(null), [X, ce] = te(
750
+ ), [N, P] = Q(!1), [x, C] = Q(null), [U, ce] = Q(
746
751
  null
747
- ), [H, pe] = te(!1), [q, re] = Yr(m, {
752
+ ), [H, pe] = Q(!1), [G, oe] = Jr(c, {
748
753
  defaultValue: [],
749
754
  listenStorageChange: !0
750
755
  }), le = () => {
751
- V(null), clearTimeout(f), b(void 0), _.current = null;
752
- }, B = (j, K) => {
753
- V({ ...j, pageX: j.pageX, pageY: j.pageY, data: K }), clearTimeout(f);
754
- }, ne = (j, K = !0) => {
755
- const { config: J = {} } = j;
756
+ z(null), clearTimeout(u), h(void 0), E.current = null;
757
+ }, A = (I, K) => {
758
+ z({ ...I, pageX: I.pageX, pageY: I.pageY, data: K }), clearTimeout(u);
759
+ }, ne = (I, K = !0) => {
760
+ const { config: J = {} } = I;
756
761
  return J.allowContextMenu === !1 ? {} : {
757
- onMouseDown: (D) => {
758
- b(
762
+ onMouseDown: ($) => {
763
+ h(
759
764
  setTimeout(() => {
760
- K && _.current === null && B(D, j);
765
+ K && E.current === null && A($, I);
761
766
  }, 800)
762
- ), E(!1), I(
767
+ ), P(!1), y(
763
768
  setTimeout(() => {
764
- E(!0);
769
+ P(!0);
765
770
  }, 800)
766
771
  );
767
772
  },
768
773
  onMouseUp: () => {
769
- clearTimeout(i), I(void 0), clearTimeout(f), b(void 0);
774
+ clearTimeout(l), y(void 0), clearTimeout(u), h(void 0);
770
775
  },
771
- onContextMenu: (D) => {
772
- K && (D.preventDefault(), B(D, j));
776
+ onContextMenu: ($) => {
777
+ K && ($.preventDefault(), A($, I));
773
778
  }
774
779
  };
775
- }, se = (j, K) => {
780
+ }, se = (I, K) => {
776
781
  const J = [...K || []];
777
782
  if (J.length > 0)
778
- u((D) => {
779
- const L = [...D], O = (C) => {
780
- var Ie, Te;
781
- const M = J.shift(), U = C.find((Q) => Q.id === M), oe = C.findIndex((Q) => Q.id === M);
782
- if (J.length && U) {
783
- if (((Ie = U.children) == null ? void 0 : Ie.filter(
784
- (Q) => !j.some((de) => de.id === Q.id)
785
- ).length) === 1 && j.length === 1) {
786
- const Q = { ...j[0] };
787
- return C.splice(oe, 1, Q), a == null || a(C), C;
783
+ m(($) => {
784
+ const L = [...$], B = (j) => {
785
+ var Re, Me;
786
+ const D = J.shift(), q = j.find((ee) => ee.id === D), te = j.findIndex((ee) => ee.id === D);
787
+ if (J.length && q) {
788
+ if (((Re = q.children) == null ? void 0 : Re.filter(
789
+ (ee) => !I.some((de) => de.id === ee.id)
790
+ ).length) === 1 && I.length === 1) {
791
+ const ee = { ...I[0] };
792
+ return j.splice(te, 1, ee), n == null || n(j), j;
788
793
  }
789
- return U.children = O(U.children || []), C.splice(oe, 1, U), a == null || a(C), C;
794
+ return q.children = B(q.children || []), j.splice(te, 1, q), n == null || n(j), j;
790
795
  }
791
- if (U) {
792
- if (!((Te = U.children) != null && Te.length) && j.length) {
793
- const Q = { ...U };
794
- return U.data = { name: "文件夹" }, U.type = "group", U.children = [Q, ...j], U.id = rr(), C.splice(oe, 1, U), a == null || a(C), C;
796
+ if (q) {
797
+ if (!((Me = q.children) != null && Me.length) && I.length) {
798
+ const ee = { ...q };
799
+ return q.data = { name: "文件夹" }, q.type = "group", q.children = [ee, ...I], q.id = nr(), j.splice(te, 1, q), n == null || n(j), j;
795
800
  }
796
- return U.children = ie.uniqueArray(j), C.splice(oe, 1, U), a == null || a(C), C;
801
+ return q.children = ie.uniqueArray(I), j.splice(te, 1, q), n == null || n(j), j;
797
802
  }
798
- return ie.uniqueArray(j);
803
+ return ie.uniqueArray(I);
799
804
  };
800
- return ie.uniqueArray(O(L));
805
+ return ie.uniqueArray(B(L));
801
806
  });
802
807
  else {
803
- const D = ie.uniqueArray(j);
804
- a == null || a(D), u(D);
805
- }
806
- }, ye = (j, K) => {
807
- u((J) => {
808
- const D = [...J], L = (O) => {
809
- var C;
810
- for (let M = 0; M < O.length; M++)
811
- if (O[M].id === j) {
812
- O[M].config = K;
808
+ const $ = ie.uniqueArray(I);
809
+ n == null || n($), m($);
810
+ }
811
+ }, je = (I, K) => {
812
+ m((J) => {
813
+ const $ = [...J], L = (B) => {
814
+ var j;
815
+ for (let D = 0; D < B.length; D++)
816
+ if (B[D].id === I) {
817
+ B[D].config = K;
813
818
  break;
814
- } else ((C = O[M].children) == null ? void 0 : C.length) !== void 0 && L(O[M].children);
819
+ } else ((j = B[D].children) == null ? void 0 : j.length) !== void 0 && L(B[D].children);
815
820
  };
816
- return L(D), a == null || a(D), D;
821
+ return L($), n == null || n($), $;
817
822
  });
818
- }, Ce = (j, K) => {
819
- u((J) => {
820
- const D = [...J], L = (O) => {
821
- var C;
822
- for (let M = 0; M < O.length; M++)
823
- if (O[M].id === j) {
824
- O[M].data = K;
823
+ }, Se = (I, K) => {
824
+ m((J) => {
825
+ const $ = [...J], L = (B) => {
826
+ var j;
827
+ for (let D = 0; D < B.length; D++)
828
+ if (B[D].id === I) {
829
+ B[D].data = K;
825
830
  break;
826
- } else ((C = O[M].children) == null ? void 0 : C.length) !== void 0 && L(O[M].children);
831
+ } else ((j = B[D].children) == null ? void 0 : j.length) !== void 0 && L(B[D].children);
827
832
  };
828
- return L(D), a == null || a(D), D;
833
+ return L($), n == null || n($), $;
829
834
  });
830
- }, Se = (j) => {
831
- u((K) => {
832
- const J = [...K], D = (L) => {
833
- var O;
834
- for (let C = 0; C < L.length; C++)
835
- if (L[C].id === j) {
836
- L.splice(C, 1);
835
+ }, Ie = (I) => {
836
+ m((K) => {
837
+ const J = [...K], $ = (L) => {
838
+ var B;
839
+ for (let j = 0; j < L.length; j++)
840
+ if (L[j].id === I) {
841
+ L.splice(j, 1);
837
842
  break;
838
- } else ((O = L[C].children) == null ? void 0 : O.length) !== void 0 && D(L[C].children);
843
+ } else ((B = L[j].children) == null ? void 0 : B.length) !== void 0 && $(L[j].children);
839
844
  };
840
- return D(J), a == null || a(J), J;
845
+ return $(J), n == null || n(J), J;
841
846
  });
842
- }, je = (j, K) => {
843
- const J = [...h], D = (L, O) => {
844
- const C = O.shift(), M = L.find((oe) => oe.id === C), U = L.findIndex((oe) => oe.id === C);
845
- if (M) {
846
- if (O.length)
847
- M.children = D(M.children || [], O);
847
+ }, Te = (I, K) => {
848
+ const J = [...b], $ = (L, B) => {
849
+ const j = B.shift(), D = L.find((te) => te.id === j), q = L.findIndex((te) => te.id === j);
850
+ if (D) {
851
+ if (B.length)
852
+ D.children = $(D.children || [], B);
848
853
  else {
849
- const oe = (j == null ? void 0 : j.type) ?? "app";
850
- M.children = [
851
- ...M.children ?? [],
854
+ const te = (I == null ? void 0 : I.type) ?? "app";
855
+ D.children = [
856
+ ...D.children ?? [],
852
857
  {
853
- ...j,
854
- id: rr(),
855
- config: (j == null ? void 0 : j.config) ?? gr[oe]
858
+ ...I,
859
+ id: nr(),
860
+ config: (I == null ? void 0 : I.config) ?? hr[te]
856
861
  }
857
862
  ];
858
863
  }
859
- return L.splice(U, 1, M), L;
864
+ return L.splice(q, 1, D), L;
860
865
  } else
861
866
  return L;
862
867
  };
863
- u(D(J, K));
868
+ m($(J, K));
864
869
  };
865
- return we(() => {
866
- (l == null ? void 0 : l.length) > 0 && h.length === 0 && se(l);
867
- }, [l]), we(() => {
868
- _.current = v, v !== null && le();
869
- }, [v]), we(() => {
870
- s && q != null && q.length && !H && (se(q), pe(!0));
871
- }, [q, H, s]), Wr(
870
+ return ye(() => {
871
+ (i == null ? void 0 : i.length) > 0 && b.length === 0 && se(i);
872
+ }, [i]), ye(() => {
873
+ E.current = v, v !== null && le();
874
+ }, [v]), ye(() => {
875
+ s && G != null && G.length && !H && (se(G), pe(!0));
876
+ }, [G, H, s]), Kr(
872
877
  () => {
873
- s && re(h);
878
+ s && oe(b);
874
879
  },
875
- [h, s],
880
+ [b, s],
876
881
  {
877
882
  wait: 1e3
878
883
  }
879
- ), /* @__PURE__ */ t.jsx(
880
- mr.Provider,
884
+ ), /* @__PURE__ */ o.jsx(
885
+ br.Provider,
881
886
  {
882
887
  value: {
883
- list: h,
888
+ list: b,
884
889
  setList: se,
885
- contextMenu: W,
886
- setContextMenu: V,
890
+ contextMenu: F,
891
+ setContextMenu: z,
887
892
  listStatus: v,
888
- setListStatus: N,
893
+ setListStatus: _,
889
894
  contextMenuFuns: ne,
890
895
  hideContextMenu: le,
891
896
  showInfoItemData: R,
892
- setShowInfoItemData: p,
893
- openGroupItemData: G,
897
+ setShowInfoItemData: f,
898
+ openGroupItemData: Y,
894
899
  setOpenGroupItemData: k,
895
- longPressTriggered: P,
896
- updateItemConfig: ye,
897
- updateItem: Ce,
898
- removeItem: Se,
899
- addItem: je,
900
+ longPressTriggered: N,
901
+ updateItemConfig: je,
902
+ updateItem: Se,
903
+ removeItem: Ie,
904
+ addItem: Te,
900
905
  moveItemId: x,
901
- setMoveItemId: y,
902
- moveTargetId: X,
906
+ setMoveItemId: C,
907
+ moveTargetId: U,
903
908
  setMoveTargetId: ce
904
909
  },
905
910
  children: r
906
911
  }
907
912
  );
908
- }, be = () => ir(mr), Oo = {
913
+ }, be = () => dr(br), Go = {
909
914
  menuShow: {
910
915
  opacity: 1,
911
916
  y: 0,
912
917
  transition: { type: "spring", stiffness: 300, damping: 24 }
913
918
  },
914
919
  menuHide: { opacity: 0, y: 20, transition: { duration: 0.2 } }
915
- }, Be = (g) => {
916
- const { icon: r, title: l, onClick: a } = g, { theme: m } = me(), { light: s, dark: f } = ie.getTheme(m);
917
- return /* @__PURE__ */ t.jsx(
918
- A.div,
920
+ }, ze = (d) => {
921
+ const { icon: r, title: i, onClick: n } = d, { theme: c } = ge(), { light: s, dark: u } = ie.getTheme(c);
922
+ return /* @__PURE__ */ o.jsx(
923
+ T.div,
919
924
  {
920
- className: d`
925
+ className: p`
921
926
  &:hover {
922
927
  background-color: ${s.contextMenuActiveColor};
923
928
  @media (prefers-color-scheme: dark) {
924
- background-color: ${f.contextMenuActiveColor};
929
+ background-color: ${u.contextMenuActiveColor};
925
930
  }
926
931
  }
927
932
  @media (prefers-color-scheme: dark) {
@@ -934,16 +939,16 @@ const mr = ar({
934
939
  user-select: none;
935
940
  border-radius: 0.5rem;
936
941
  `,
937
- onClick: (b) => {
938
- b.stopPropagation(), a == null || a();
942
+ onClick: (h) => {
943
+ h.stopPropagation(), n == null || n();
939
944
  },
940
- variants: Oo,
941
- children: /* @__PURE__ */ t.jsxs(
942
- A.div,
945
+ variants: Go,
946
+ children: /* @__PURE__ */ o.jsxs(
947
+ T.div,
943
948
  {
944
- className: z(
949
+ className: V(
945
950
  "py-1.5 px-3 rounded-lg",
946
- d`
951
+ p`
947
952
  padding-top: 0.375rem;
948
953
  padding-bottom: 0.375rem;
949
954
  padding-left: 0.75rem;
@@ -953,11 +958,11 @@ const mr = ar({
953
958
  ),
954
959
  whileTap: { scale: 0.9 },
955
960
  children: [
956
- /* @__PURE__ */ t.jsx(
957
- A.div,
961
+ /* @__PURE__ */ o.jsx(
962
+ T.div,
958
963
  {
959
- className: z(
960
- d`
964
+ className: V(
965
+ p`
961
966
  margin-bottom: 0.375rem;
962
967
  display: flex;
963
968
  justify-content: center;
@@ -966,38 +971,38 @@ const mr = ar({
966
971
  children: r
967
972
  }
968
973
  ),
969
- /* @__PURE__ */ t.jsx(A.div, { children: l })
974
+ /* @__PURE__ */ o.jsx(T.div, { children: i })
970
975
  ]
971
976
  }
972
977
  )
973
978
  }
974
979
  );
975
- }, Ao = (g) => {
980
+ }, Ho = (d) => {
976
981
  const {
977
982
  showInfoButton: r = !0,
978
- showRemoveButton: l = !0,
979
- showShareButton: a = !0,
980
- showSizeButton: m = !0,
983
+ showRemoveButton: i = !0,
984
+ showShareButton: n = !0,
985
+ showSizeButton: c = !0,
981
986
  onInfoClick: s,
982
- onShareClick: f,
983
- onRemoveClick: b
984
- } = g, {
985
- contextMenu: i,
986
- setContextMenu: I,
987
+ onShareClick: u,
988
+ onRemoveClick: h
989
+ } = d, {
990
+ contextMenu: l,
991
+ setContextMenu: y,
987
992
  hideContextMenu: v,
988
- setShowInfoItemData: N,
989
- removeItem: _,
990
- updateItemConfig: W
991
- } = be(), { theme: V } = me(), { light: h, dark: u } = ie.getTheme(V), { data: R } = i ?? {}, { config: p = {} } = R ?? {}, G = () => {
992
- var E;
993
- const k = gr[(E = i == null ? void 0 : i.data) == null ? void 0 : E.type], P = [];
993
+ setShowInfoItemData: _,
994
+ removeItem: E,
995
+ updateItemConfig: F
996
+ } = be(), { theme: z } = ge(), { light: b, dark: m } = ie.getTheme(z), { data: R } = l ?? {}, { config: f = {} } = R ?? {}, Y = () => {
997
+ var P;
998
+ const k = hr[(P = l == null ? void 0 : l.data) == null ? void 0 : P.type], N = [];
994
999
  for (let x = 1; x <= ((k == null ? void 0 : k.maxRow) ?? 2); x++)
995
- for (let y = 1; y <= ((k == null ? void 0 : k.maxCol) ?? 2); y++)
996
- P.push(`${x}x${y}`);
997
- return P;
1000
+ for (let C = 1; C <= ((k == null ? void 0 : k.maxCol) ?? 2); C++)
1001
+ N.push(`${x}x${C}`);
1002
+ return N;
998
1003
  };
999
- return /* @__PURE__ */ t.jsx(zr, { children: i && /* @__PURE__ */ t.jsxs(
1000
- A.div,
1004
+ return /* @__PURE__ */ o.jsx(We, { children: l && /* @__PURE__ */ o.jsxs(
1005
+ T.div,
1001
1006
  {
1002
1007
  initial: { opacity: 0 },
1003
1008
  animate: { opacity: 1 },
@@ -1006,25 +1011,25 @@ const mr = ar({
1006
1011
  k.stopPropagation(), k.preventDefault();
1007
1012
  },
1008
1013
  children: [
1009
- /* @__PURE__ */ t.jsx(
1010
- A.div,
1014
+ /* @__PURE__ */ o.jsx(
1015
+ T.div,
1011
1016
  {
1012
- className: z(
1013
- d`
1017
+ className: V(
1018
+ p`
1014
1019
  border-radius: 0.5rem;
1015
1020
  overflow: hidden;
1016
- background-color: ${h.contextMenuBackgroundColor};
1017
- box-shadow: 0 0 0.5rem ${h.contextMenuShadowColor};
1021
+ background-color: ${b.contextMenuBackgroundColor};
1022
+ box-shadow: 0 0 0.5rem ${b.contextMenuShadowColor};
1018
1023
  @media (prefers-color-scheme: dark) {
1019
- background-color: ${u.contextMenuBackgroundColor};
1020
- box-shadow: 0 0 0.5rem ${u.contextMenuShadowColor};
1024
+ background-color: ${m.contextMenuBackgroundColor};
1025
+ box-shadow: 0 0 0.5rem ${m.contextMenuShadowColor};
1021
1026
  }
1022
1027
  `
1023
1028
  ),
1024
- children: m && p.allowResize !== !1 && /* @__PURE__ */ t.jsx(
1025
- A.ul,
1029
+ children: c && f.allowResize !== !1 && /* @__PURE__ */ o.jsx(
1030
+ T.ul,
1026
1031
  {
1027
- className: d`
1032
+ className: p`
1028
1033
  background-color: white;
1029
1034
  padding: 0.25rem;
1030
1035
  margin: 0;
@@ -1033,33 +1038,33 @@ const mr = ar({
1033
1038
  {
1034
1039
  label: "修改大小",
1035
1040
  key: "size",
1036
- icon: /* @__PURE__ */ t.jsx(Ur, { size: 14 }),
1037
- items: G().map((k) => ({
1041
+ icon: /* @__PURE__ */ o.jsx(Qr, { size: 14 }),
1042
+ items: Y().map((k) => ({
1038
1043
  label: k,
1039
1044
  key: k,
1040
1045
  onClick: () => {
1041
- const [P, E] = k.split("x").map(Number);
1042
- W(i.data.id, {
1043
- row: P,
1044
- col: E
1046
+ const [N, P] = k.split("x").map(Number);
1047
+ F(l.data.id, {
1048
+ row: N,
1049
+ col: P
1045
1050
  });
1046
1051
  }
1047
1052
  }))
1048
1053
  }
1049
- ].map((k) => /* @__PURE__ */ t.jsxs(
1050
- A.li,
1054
+ ].map((k) => /* @__PURE__ */ o.jsxs(
1055
+ T.li,
1051
1056
  {
1052
- className: d`
1057
+ className: p`
1053
1058
  padding-top: 0.5rem;
1054
1059
  padding-bottom: 0.5rem;
1055
1060
  padding-left: 0.75rem;
1056
1061
  padding-right: 0.75rem;
1057
1062
  `,
1058
1063
  children: [
1059
- /* @__PURE__ */ t.jsxs(
1060
- A.p,
1064
+ /* @__PURE__ */ o.jsxs(
1065
+ T.p,
1061
1066
  {
1062
- className: d`
1067
+ className: p`
1063
1068
  display: flex;
1064
1069
  align-items: center;
1065
1070
  font-size: 0.875rem;
@@ -1075,20 +1080,20 @@ const mr = ar({
1075
1080
  ]
1076
1081
  }
1077
1082
  ),
1078
- /* @__PURE__ */ t.jsx(
1079
- A.div,
1083
+ /* @__PURE__ */ o.jsx(
1084
+ T.div,
1080
1085
  {
1081
- className: d`
1086
+ className: p`
1082
1087
  display: grid;
1083
1088
  grid-template-columns: repeat(2, minmax(0, 1fr));
1084
1089
  gap: 0.25rem;
1085
1090
  `,
1086
- children: k.items.map((P) => /* @__PURE__ */ t.jsx(
1087
- A.div,
1091
+ children: k.items.map((N) => /* @__PURE__ */ o.jsx(
1092
+ T.div,
1088
1093
  {
1089
- className: z(
1094
+ className: V(
1090
1095
  "py-1 px-2 hover:bg-gray-100 rounded transition-all cursor-pointer text-center text-sm",
1091
- d`
1096
+ p`
1092
1097
  padding-top: 0.25rem;
1093
1098
  padding-bottom: 0.25rem;
1094
1099
  padding-left: 0.5rem;
@@ -1099,28 +1104,28 @@ const mr = ar({
1099
1104
  line-height: 1.25rem;
1100
1105
  cursor: pointer;
1101
1106
  text-align: center;
1102
- color: ${h.contextMenuTextColor};
1107
+ color: ${b.contextMenuTextColor};
1103
1108
  @media (prefers-color-scheme: dark) {
1104
- color: ${u.contextMenuTextColor};
1109
+ color: ${m.contextMenuTextColor};
1105
1110
  }
1106
1111
  &:hover {
1107
- background-color: ${h.contextMenuActiveColor};
1112
+ background-color: ${b.contextMenuActiveColor};
1108
1113
  @media (prefers-color-scheme: dark) {
1109
- background-color: ${u.contextMenuActiveColor};
1114
+ background-color: ${m.contextMenuActiveColor};
1110
1115
  }
1111
1116
  }
1112
1117
  `,
1113
- `${p.row}x${p.col}` === P.key && d`
1114
- background-color: ${h.contextMenuActiveColor};
1118
+ `${f.row}x${f.col}` === N.key && p`
1119
+ background-color: ${b.contextMenuActiveColor};
1115
1120
  @media (prefers-color-scheme: dark) {
1116
- background-color: ${u.contextMenuActiveColor};
1121
+ background-color: ${m.contextMenuActiveColor};
1117
1122
  }
1118
1123
  `
1119
1124
  ),
1120
- onClick: P.onClick,
1121
- children: P.label
1125
+ onClick: N.onClick,
1126
+ children: N.label
1122
1127
  },
1123
- P.key
1128
+ N.key
1124
1129
  ))
1125
1130
  }
1126
1131
  )
@@ -1132,16 +1137,16 @@ const mr = ar({
1132
1137
  )
1133
1138
  }
1134
1139
  ),
1135
- /* @__PURE__ */ t.jsxs(
1136
- A.div,
1140
+ /* @__PURE__ */ o.jsxs(
1141
+ T.div,
1137
1142
  {
1138
- className: z(
1139
- d`
1140
- background-color: ${h.contextMenuBackgroundColor};
1141
- box-shadow: 0 0 0.5rem ${h.contextMenuShadowColor};
1143
+ className: V(
1144
+ p`
1145
+ background-color: ${b.contextMenuBackgroundColor};
1146
+ box-shadow: 0 0 0.5rem ${b.contextMenuShadowColor};
1142
1147
  @media (prefers-color-scheme: dark) {
1143
- background-color: ${u.contextMenuBackgroundColor};
1144
- box-shadow: 0 0 0.5rem ${u.contextMenuShadowColor};
1148
+ background-color: ${m.contextMenuBackgroundColor};
1149
+ box-shadow: 0 0 0.5rem ${m.contextMenuShadowColor};
1145
1150
  }
1146
1151
  display: flex;
1147
1152
  justify-content: space-around;
@@ -1153,48 +1158,48 @@ const mr = ar({
1153
1158
  `
1154
1159
  ),
1155
1160
  children: [
1156
- a && /* @__PURE__ */ t.jsx(
1157
- Be,
1161
+ n && /* @__PURE__ */ o.jsx(
1162
+ ze,
1158
1163
  {
1159
- icon: /* @__PURE__ */ t.jsx(Gr, { size: 20 }),
1164
+ icon: /* @__PURE__ */ o.jsx(eo, { size: 20 }),
1160
1165
  title: "分享",
1161
1166
  onClick: () => {
1162
- if (f) {
1163
- f(i.data);
1167
+ if (u) {
1168
+ u(l.data);
1164
1169
  return;
1165
1170
  }
1166
1171
  }
1167
1172
  }
1168
1173
  ),
1169
- r && /* @__PURE__ */ t.jsx(
1170
- Be,
1174
+ r && /* @__PURE__ */ o.jsx(
1175
+ ze,
1171
1176
  {
1172
- icon: /* @__PURE__ */ t.jsx(Xr, { size: 20 }),
1177
+ icon: /* @__PURE__ */ o.jsx(ro, { size: 20 }),
1173
1178
  title: "信息",
1174
1179
  onClick: () => {
1175
1180
  if (s) {
1176
- s(i.data);
1181
+ s(l.data);
1177
1182
  return;
1178
1183
  }
1179
- N({
1180
- ...i.data,
1181
- pageX: i.pageX,
1182
- pageY: i.pageY
1184
+ _({
1185
+ ...l.data,
1186
+ pageX: l.pageX,
1187
+ pageY: l.pageY
1183
1188
  }), v();
1184
1189
  }
1185
1190
  }
1186
1191
  ),
1187
- l && /* @__PURE__ */ t.jsx(
1188
- Be,
1192
+ i && /* @__PURE__ */ o.jsx(
1193
+ ze,
1189
1194
  {
1190
- icon: /* @__PURE__ */ t.jsx(qr, { size: 20 }),
1195
+ icon: /* @__PURE__ */ o.jsx(oo, { size: 20 }),
1191
1196
  title: "移除",
1192
1197
  onClick: () => {
1193
- if (b) {
1194
- b(i.data, _);
1198
+ if (h) {
1199
+ h(l.data, E);
1195
1200
  return;
1196
1201
  }
1197
- I(null), _(i.data.id);
1202
+ y(null), E(l.data.id);
1198
1203
  }
1199
1204
  }
1200
1205
  )
@@ -1204,61 +1209,61 @@ const mr = ar({
1204
1209
  ]
1205
1210
  }
1206
1211
  ) });
1207
- }, Bo = (g) => {
1208
- const { data: r, noLetters: l = !1 } = g, { contextMenuFuns: a } = be(), { itemIconBuilder: m, theme: s, contextMenu: f } = me(), { light: b, dark: i } = ie.getTheme(s), { data: I = {} } = r, { name: v } = I;
1209
- return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1210
- /* @__PURE__ */ t.jsx(
1211
- A.div,
1212
+ }, Jo = (d) => {
1213
+ const { data: r, noLetters: i = !1 } = d, { contextMenuFuns: n } = be(), { itemIconBuilder: c, theme: s, contextMenu: u } = ge(), { light: h, dark: l } = ie.getTheme(s), { data: y = {} } = r, { name: v } = y;
1214
+ return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1215
+ /* @__PURE__ */ o.jsx(
1216
+ T.div,
1212
1217
  {
1213
- className: d`
1218
+ className: p`
1214
1219
  width: 4rem;
1215
1220
  height: 4rem;
1216
- background-color: ${b.itemIconBackgroundColor};
1221
+ background-color: ${h.itemIconBackgroundColor};
1217
1222
  border-radius: 0.75rem;
1218
- box-shadow: 0 0 0.5rem ${b.itemIconShadowColor};
1223
+ box-shadow: 0 0 0.5rem ${h.itemIconShadowColor};
1219
1224
  cursor: pointer;
1220
1225
  position: relative;
1221
1226
  overflow: hidden;
1222
1227
  @media (prefers-color-scheme: dark) {
1223
- background-color: ${i.itemIconBackgroundColor};
1224
- box-shadow: 0 0 0.5rem ${i.itemIconShadowColor};
1228
+ background-color: ${l.itemIconBackgroundColor};
1229
+ box-shadow: 0 0 0.5rem ${l.itemIconShadowColor};
1225
1230
  }
1226
1231
  `,
1227
1232
  whileTap: { scale: 0.9 },
1228
- children: /* @__PURE__ */ t.jsx(
1233
+ children: /* @__PURE__ */ o.jsx(
1229
1234
  "div",
1230
1235
  {
1231
- className: d`
1236
+ className: p`
1232
1237
  position: absolute;
1233
1238
  left: 0;
1234
1239
  top: 0;
1235
1240
  width: 100%;
1236
1241
  height: 100%;
1237
- color: ${b.itemNameColor};
1242
+ color: ${h.itemNameColor};
1238
1243
  @media (prefers-color-scheme: dark) {
1239
- color: ${i.itemNameColor};
1244
+ color: ${l.itemNameColor};
1240
1245
  }
1241
1246
  `,
1242
- ...a(r, f !== !1),
1243
- children: m == null ? void 0 : m(r)
1247
+ ...n(r, u !== !1),
1248
+ children: c == null ? void 0 : c(r)
1244
1249
  }
1245
1250
  )
1246
1251
  }
1247
1252
  ),
1248
- /* @__PURE__ */ t.jsx(
1249
- A.p,
1253
+ /* @__PURE__ */ o.jsx(
1254
+ T.p,
1250
1255
  {
1251
- className: z(
1252
- d`
1256
+ className: V(
1257
+ p`
1253
1258
  text-align: center;
1254
1259
  margin-top: 0.25rem;
1255
1260
  margin-bottom: 0;
1256
- color: ${b.itemNameColor};
1261
+ color: ${h.itemNameColor};
1257
1262
  @media (prefers-color-scheme: dark) {
1258
- color: ${i.itemNameColor};
1263
+ color: ${l.itemNameColor};
1259
1264
  }
1260
1265
  `,
1261
- l && d`
1266
+ i && p`
1262
1267
  color: transparent;
1263
1268
  `
1264
1269
  ),
@@ -1266,22 +1271,22 @@ const mr = ar({
1266
1271
  }
1267
1272
  )
1268
1273
  ] });
1269
- }, ze = (g) => {
1274
+ }, Ve = (d) => {
1270
1275
  const {
1271
1276
  data: r,
1272
- className: l,
1273
- itemIndex: a,
1274
- onClick: m,
1277
+ className: i,
1278
+ itemIndex: n,
1279
+ onClick: c,
1275
1280
  disabledDrag: s = !1,
1276
- children: f,
1277
- parentIds: b,
1278
- childrenLength: i
1279
- } = g, { contextMenu: I, setContextMenu: v } = be(), { contextMenu: N } = me();
1280
- return /* @__PURE__ */ t.jsx(
1281
- Vr,
1281
+ children: u,
1282
+ parentIds: h,
1283
+ childrenLength: l
1284
+ } = d, { contextMenu: y, setContextMenu: v } = be(), { contextMenu: _ } = ge();
1285
+ return /* @__PURE__ */ o.jsx(
1286
+ Zr,
1282
1287
  {
1283
1288
  placement: "bottom",
1284
- overlayClassName: d`
1289
+ overlayClassName: p`
1285
1290
  background-color: transparent;
1286
1291
  .rc-tooltip-inner {
1287
1292
  background-color: transparent;
@@ -1289,122 +1294,122 @@ const mr = ar({
1289
1294
  border: none;
1290
1295
  }
1291
1296
  `,
1292
- overlay: /* @__PURE__ */ t.jsx(Ao, { ...N }),
1293
- visible: (I == null ? void 0 : I.data.id) === r.id,
1294
- onVisibleChange: (_) => {
1295
- _ || v(null);
1297
+ overlay: /* @__PURE__ */ o.jsx(Ho, { ..._ }),
1298
+ visible: (y == null ? void 0 : y.data.id) === r.id,
1299
+ onVisibleChange: (E) => {
1300
+ E || v(null);
1296
1301
  },
1297
1302
  destroyTooltipOnHide: !0,
1298
- children: /* @__PURE__ */ t.jsx(
1299
- A.div,
1303
+ children: /* @__PURE__ */ o.jsx(
1304
+ T.div,
1300
1305
  {
1301
1306
  "data-id": r.id,
1302
- "data-index": a,
1303
- "data-parent-ids": b == null ? void 0 : b.join(","),
1304
- "data-children-length": i,
1305
- onClick: () => m == null ? void 0 : m(r),
1306
- className: z(s && "drag-disabled", l),
1307
- children: f ?? /* @__PURE__ */ t.jsx(Bo, { ...g })
1307
+ "data-index": n,
1308
+ "data-parent-ids": h == null ? void 0 : h.join(","),
1309
+ "data-children-length": l,
1310
+ onClick: () => c == null ? void 0 : c(r),
1311
+ className: V(s && "drag-disabled", i),
1312
+ children: u ?? /* @__PURE__ */ o.jsx(Jo, { ...d })
1308
1313
  }
1309
1314
  )
1310
1315
  }
1311
1316
  );
1312
- }, Lo = (g) => {
1317
+ }, Ko = (d) => {
1313
1318
  const {
1314
1319
  data: r,
1315
- className: l,
1316
- parentIds: a,
1317
- itemIndex: m,
1320
+ className: i,
1321
+ parentIds: n,
1322
+ itemIndex: c,
1318
1323
  onClick: s,
1319
- noLetters: f = !1
1320
- } = g, {
1321
- contextMenuFuns: b,
1322
- setList: i,
1323
- setOpenGroupItemData: I,
1324
+ noLetters: u = !1
1325
+ } = d, {
1326
+ contextMenuFuns: h,
1327
+ setList: l,
1328
+ setOpenGroupItemData: y,
1324
1329
  longPressTriggered: v,
1325
- moveItemId: N,
1326
- moveTargetId: _,
1327
- setMoveTargetId: W,
1328
- listStatus: V
1329
- } = be(), { itemIconBuilder: h, theme: u, contextMenu: R } = me(), { light: p, dark: G } = ie.getTheme(u), { children: k, data: P, config: E } = r, { row: x = 1, col: y = 1 } = E ?? {}, X = {
1330
+ moveItemId: _,
1331
+ moveTargetId: E,
1332
+ setMoveTargetId: F,
1333
+ listStatus: z
1334
+ } = be(), { itemIconBuilder: b, theme: m, contextMenu: R } = ge(), { light: f, dark: Y } = ie.getTheme(m), { children: k, data: N, config: P } = r, { row: x = 1, col: C = 1 } = P ?? {}, U = {
1330
1335
  visible: { opacity: 1, scale: 1 },
1331
1336
  hidden: { opacity: 0, scale: 0.95 }
1332
- }, ce = ((k == null ? void 0 : k.length) ?? 0) === 0, H = ce ? [r] : [...k ?? []].slice(0, 9), pe = Ee(() => N === r.id.toString(), [r.id, N]), q = Ee(() => _ === r.id, [r.id, _]), re = d`
1337
+ }, ce = ((k == null ? void 0 : k.length) ?? 0) === 0, H = ce ? [r] : [...k ?? []].slice(0, 9), pe = De(() => _ === r.id.toString(), [r.id, _]), G = De(() => E === r.id, [r.id, E]), oe = p`
1333
1338
  overflow: hidden;
1334
1339
  cursor: pointer;
1335
- background-color: ${p.itemIconBackgroundColor};
1336
- box-shadow: 0 0 0.5rem ${p.itemIconShadowColor};
1340
+ background-color: ${f.itemIconBackgroundColor};
1341
+ box-shadow: 0 0 0.5rem ${f.itemIconShadowColor};
1337
1342
  @media (prefers-color-scheme: dark) {
1338
- background-color: ${G.itemIconBackgroundColor};
1339
- box-shadow: 0 0 0.5rem ${G.itemIconShadowColor};
1343
+ background-color: ${Y.itemIconBackgroundColor};
1344
+ box-shadow: 0 0 0.5rem ${Y.itemIconShadowColor};
1340
1345
  }
1341
1346
  `, le = () => {
1342
1347
  if (ce)
1343
- return /* @__PURE__ */ t.jsx(
1344
- A.div,
1348
+ return /* @__PURE__ */ o.jsx(
1349
+ T.div,
1345
1350
  {
1346
- className: z(
1351
+ className: V(
1347
1352
  "sortable-group-item",
1348
- d`
1353
+ p`
1349
1354
  overflow: hidden;
1350
1355
  cursor: pointer;
1351
1356
  width: 100%;
1352
1357
  height: 100%;
1353
- background-color: ${p.itemIconBackgroundColor};
1358
+ background-color: ${f.itemIconBackgroundColor};
1354
1359
  position: absolute;
1355
1360
  left: 0;
1356
1361
  top: 0;
1357
1362
  border-radius: 0.75rem;
1358
1363
  @media (prefers-color-scheme: dark) {
1359
- background-color: ${G.itemIconBackgroundColor};
1364
+ background-color: ${Y.itemIconBackgroundColor};
1360
1365
  }
1361
1366
  `
1362
1367
  ),
1363
- onClick: (B) => {
1364
- B.stopPropagation(), s == null || s(r);
1368
+ onClick: (A) => {
1369
+ A.stopPropagation(), s == null || s(r);
1365
1370
  },
1366
- children: h == null ? void 0 : h(r)
1371
+ children: b == null ? void 0 : b(r)
1367
1372
  }
1368
1373
  );
1369
- if (x === 1 && y === 1 || x === 2 && y === 2)
1370
- return /* @__PURE__ */ t.jsx(
1371
- A.div,
1374
+ if (x === 1 && C === 1 || x === 2 && C === 2)
1375
+ return /* @__PURE__ */ o.jsx(
1376
+ T.div,
1372
1377
  {
1373
- className: d`
1378
+ className: p`
1374
1379
  display: grid;
1375
1380
  width: 100%;
1376
1381
  height: 100%;
1377
1382
  grid-template-columns: repeat(3, minmax(0, 1fr));
1378
1383
  grid-template-rows: repeat(3, minmax(0, 1fr));
1379
- padding: ${y === 1 ? "0.125rem" : "0.25rem"};
1380
- gap: ${y === 1 ? "0.125rem" : "0.5rem"};
1384
+ padding: ${C === 1 ? "0.125rem" : "0.25rem"};
1385
+ gap: ${C === 1 ? "0.125rem" : "0.5rem"};
1381
1386
  place-items: center;
1382
1387
  `,
1383
- children: H == null ? void 0 : H.slice(0, 9).map((B) => /* @__PURE__ */ t.jsx(
1384
- A.div,
1388
+ children: H == null ? void 0 : H.slice(0, 9).map((A) => /* @__PURE__ */ o.jsx(
1389
+ T.div,
1385
1390
  {
1386
- className: z(
1387
- re,
1388
- d`
1389
- border-radius: ${y === 1 ? "0.25rem" : "0.5rem"};
1391
+ className: V(
1392
+ oe,
1393
+ p`
1394
+ border-radius: ${C === 1 ? "0.25rem" : "0.5rem"};
1390
1395
  width: 100%;
1391
1396
  height: 100%;
1392
1397
  `
1393
1398
  ),
1394
1399
  onClick: (ne) => {
1395
- ne.stopPropagation(), s == null || s(B);
1400
+ ne.stopPropagation(), s == null || s(A);
1396
1401
  },
1397
- children: h == null ? void 0 : h(B)
1402
+ children: b == null ? void 0 : b(A)
1398
1403
  },
1399
- B.id
1404
+ A.id
1400
1405
  ))
1401
1406
  }
1402
1407
  );
1403
- if (x === 1 && y === 2)
1404
- return /* @__PURE__ */ t.jsx(
1405
- A.div,
1408
+ if (x === 1 && C === 2)
1409
+ return /* @__PURE__ */ o.jsx(
1410
+ T.div,
1406
1411
  {
1407
- className: d`
1412
+ className: p`
1408
1413
  display: grid;
1409
1414
  grid-template-columns: repeat(10, minmax(0, 1fr));
1410
1415
  grid-template-rows: repeat(4, minmax(0, 1fr));
@@ -1414,18 +1419,18 @@ const mr = ar({
1414
1419
  height: 52px;
1415
1420
  place-items: center;
1416
1421
  `,
1417
- children: H == null ? void 0 : H.slice(0, 4).map((B, ne) => /* @__PURE__ */ t.jsx(
1418
- A.div,
1422
+ children: H == null ? void 0 : H.slice(0, 4).map((A, ne) => /* @__PURE__ */ o.jsx(
1423
+ T.div,
1419
1424
  {
1420
- className: z(
1421
- re,
1422
- ne < 2 ? d`
1425
+ className: V(
1426
+ oe,
1427
+ ne < 2 ? p`
1423
1428
  width: 52px;
1424
1429
  height: 52px;
1425
1430
  border-radius: 0.5rem;
1426
1431
  grid-column: span 4 / span 4;
1427
1432
  grid-row: span 4 / span 4;
1428
- ` : d`
1433
+ ` : p`
1429
1434
  width: 1.5rem;
1430
1435
  height: 1.5rem;
1431
1436
  border-radius: 0.375rem;
@@ -1434,19 +1439,19 @@ const mr = ar({
1434
1439
  `
1435
1440
  ),
1436
1441
  onClick: (se) => {
1437
- ne > 2 || (se.stopPropagation(), s == null || s(B));
1442
+ ne > 2 || (se.stopPropagation(), s == null || s(A));
1438
1443
  },
1439
- children: h == null ? void 0 : h(B)
1444
+ children: b == null ? void 0 : b(A)
1440
1445
  },
1441
- B.id
1446
+ A.id
1442
1447
  ))
1443
1448
  }
1444
1449
  );
1445
- if (x === 2 && y === 1)
1446
- return /* @__PURE__ */ t.jsx(
1447
- A.div,
1450
+ if (x === 2 && C === 1)
1451
+ return /* @__PURE__ */ o.jsx(
1452
+ T.div,
1448
1453
  {
1449
- className: d`
1454
+ className: p`
1450
1455
  display: grid;
1451
1456
  grid-template-columns: repeat(4, minmax(0, 1fr));
1452
1457
  grid-template-rows: repeat(10, minmax(0, 1fr));
@@ -1456,18 +1461,18 @@ const mr = ar({
1456
1461
  height: 144px;
1457
1462
  place-items: center;
1458
1463
  `,
1459
- children: H == null ? void 0 : H.slice(0, 4).map((B, ne) => /* @__PURE__ */ t.jsx(
1460
- A.div,
1464
+ children: H == null ? void 0 : H.slice(0, 4).map((A, ne) => /* @__PURE__ */ o.jsx(
1465
+ T.div,
1461
1466
  {
1462
- className: z(
1463
- re,
1464
- ne < 2 ? d`
1467
+ className: V(
1468
+ oe,
1469
+ ne < 2 ? p`
1465
1470
  width: 52px;
1466
1471
  height: 52px;
1467
1472
  border-radius: 0.5rem;
1468
1473
  grid-column: span 4 / span 4;
1469
1474
  grid-row: span 4 / span 4;
1470
- ` : d`
1475
+ ` : p`
1471
1476
  width: 1.5rem;
1472
1477
  height: 1.5rem;
1473
1478
  grid-column: span 2 / span 2;
@@ -1475,61 +1480,61 @@ const mr = ar({
1475
1480
  `
1476
1481
  ),
1477
1482
  onClick: (se) => {
1478
- ne > 2 || (se.stopPropagation(), s == null || s(B));
1483
+ ne > 2 || (se.stopPropagation(), s == null || s(A));
1479
1484
  },
1480
- children: h == null ? void 0 : h(B)
1485
+ children: b == null ? void 0 : b(A)
1481
1486
  },
1482
- B.id
1487
+ A.id
1483
1488
  ))
1484
1489
  }
1485
1490
  );
1486
1491
  };
1487
- return /* @__PURE__ */ t.jsxs(
1488
- ze,
1492
+ return /* @__PURE__ */ o.jsxs(
1493
+ Ve,
1489
1494
  {
1490
1495
  data: r,
1491
- itemIndex: m,
1492
- parentIds: a,
1496
+ itemIndex: c,
1497
+ parentIds: n,
1493
1498
  childrenLength: k == null ? void 0 : k.length,
1494
- className: z(
1495
- d`
1499
+ className: V(
1500
+ p`
1496
1501
  grid-row: span ${x};
1497
- grid-column: span ${y};
1502
+ grid-column: span ${C};
1498
1503
  `,
1499
- l
1504
+ i
1500
1505
  ),
1501
1506
  children: [
1502
- /* @__PURE__ */ t.jsx(
1503
- A.div,
1507
+ /* @__PURE__ */ o.jsx(
1508
+ T.div,
1504
1509
  {
1505
1510
  whileTap: { scale: 0.9 },
1506
- className: z(
1507
- q ? "!scale-110" : "",
1508
- d`
1511
+ className: V(
1512
+ G ? "!scale-110" : "",
1513
+ p`
1509
1514
  cursor: pointer;
1510
1515
  position: relative;
1511
1516
  border-radius: 0.75rem;
1512
- background-color: ${p.groupItemIconBackgroundColor};
1513
- box-shadow: 0 0 0.5rem ${p.groupItemIconShadowColor};
1517
+ background-color: ${f.groupItemIconBackgroundColor};
1518
+ box-shadow: 0 0 0.5rem ${f.groupItemIconShadowColor};
1514
1519
  @media (prefers-color-scheme: dark) {
1515
- background-color: ${G.groupItemIconBackgroundColor};
1516
- box-shadow: 0 0 0.5rem ${G.groupItemIconShadowColor};
1520
+ background-color: ${Y.groupItemIconBackgroundColor};
1521
+ box-shadow: 0 0 0.5rem ${Y.groupItemIconShadowColor};
1517
1522
  }
1518
1523
  /* overflow: hidden; */
1519
1524
  transition: all 0.3s;
1520
1525
  margin: 0 auto;
1521
- width: ${y * 64 + 32 * (y - 1)}px;
1526
+ width: ${C * 64 + 32 * (C - 1)}px;
1522
1527
  height: ${x * 64 + 32 * (x - 1)}px;
1523
1528
  `
1524
1529
  ),
1525
- onClick: (B) => {
1526
- !ce && !v && (r.parentIds = a, r.pageX = B.pageX, r.pageY = B.pageY, I(r));
1530
+ onClick: (A) => {
1531
+ !ce && !v && (r.parentIds = n, r.pageX = A.pageX, r.pageY = A.pageY, y(r));
1527
1532
  },
1528
- ...b(r, R !== !1),
1529
- children: /* @__PURE__ */ t.jsxs(
1530
- A.div,
1533
+ ...h(r, R !== !1),
1534
+ children: /* @__PURE__ */ o.jsxs(
1535
+ T.div,
1531
1536
  {
1532
- className: d`
1537
+ className: p`
1533
1538
  position: relative;
1534
1539
  width: 100%;
1535
1540
  height: 100%;
@@ -1540,19 +1545,19 @@ const mr = ar({
1540
1545
  `,
1541
1546
  children: [
1542
1547
  le(),
1543
- /* @__PURE__ */ t.jsx(
1544
- Fe,
1548
+ /* @__PURE__ */ o.jsx(
1549
+ Ye,
1545
1550
  {
1546
- className: z(
1551
+ className: V(
1547
1552
  "sortable-group-item",
1548
- d`
1553
+ p`
1549
1554
  position: absolute;
1550
1555
  cursor: pointer;
1551
1556
  left: 0.375rem;
1552
1557
  top: 0.375rem;
1553
1558
  width: calc(100% - 0.75rem);
1554
1559
  height: calc(100% - 0.75rem);
1555
- pointer-events: ${V === null ? "none" : "auto"};
1560
+ pointer-events: ${z === null ? "none" : "auto"};
1556
1561
  > * {
1557
1562
  opacity: 0;
1558
1563
  }
@@ -1562,11 +1567,11 @@ const mr = ar({
1562
1567
  animation: 150,
1563
1568
  fallbackOnBody: !0,
1564
1569
  list: k ?? [],
1565
- setList: (B) => i(B, a),
1570
+ setList: (A) => l(A, n),
1566
1571
  filter: () => !0,
1567
1572
  "data-id": r.id,
1568
1573
  onChange: () => {
1569
- W(r.id);
1574
+ F(r.id);
1570
1575
  }
1571
1576
  }
1572
1577
  )
@@ -1575,32 +1580,32 @@ const mr = ar({
1575
1580
  )
1576
1581
  }
1577
1582
  ),
1578
- /* @__PURE__ */ t.jsx(
1579
- A.p,
1583
+ /* @__PURE__ */ o.jsx(
1584
+ T.p,
1580
1585
  {
1581
- className: z(
1582
- d`
1586
+ className: V(
1587
+ p`
1583
1588
  text-align: center;
1584
1589
  margin-top: 0.25rem;
1585
1590
  margin-bottom: 0;
1586
- color: ${p.itemNameColor};
1591
+ color: ${f.itemNameColor};
1587
1592
  @media (prefers-color-scheme: dark) {
1588
- color: ${G.itemNameColor};
1593
+ color: ${Y.itemNameColor};
1589
1594
  }
1590
1595
  `,
1591
- f && d`
1596
+ u && p`
1592
1597
  color: transparent;
1593
1598
  `
1594
1599
  ),
1595
- variants: X,
1600
+ variants: U,
1596
1601
  animate: pe ? "hidden" : "visible",
1597
- children: (P == null ? void 0 : P.name) ?? "文件夹"
1602
+ children: (N == null ? void 0 : N.name) ?? "文件夹"
1598
1603
  }
1599
1604
  )
1600
1605
  ]
1601
1606
  }
1602
1607
  );
1603
- }, pr = d`
1608
+ }, vr = p`
1604
1609
  padding: 8px;
1605
1610
  transition: all 0.2s;
1606
1611
  > div {
@@ -1612,24 +1617,24 @@ const mr = ar({
1612
1617
  transition: all 0.2s;
1613
1618
  }
1614
1619
  }
1615
- `, Fo = (g) => {
1616
- const { data: r, onClose: l, onItemClick: a } = g, {
1617
- list: m,
1620
+ `, Zo = (d) => {
1621
+ const { data: r, onClose: i, onItemClick: n } = d, {
1622
+ list: c,
1618
1623
  setList: s,
1619
- setListStatus: f,
1620
- setMoveItemId: b,
1621
- setMoveTargetId: i,
1622
- updateItem: I
1623
- } = be(), { theme: v } = me(), { light: N, dark: _ } = ie.getTheme(v), [W, V] = te("文件夹"), h = [...(r == null ? void 0 : r.children) ?? []];
1624
- return we(() => {
1625
- var u;
1626
- r && V((u = r.data) == null ? void 0 : u.name);
1627
- }, [r]), /* @__PURE__ */ t.jsx(
1628
- lr,
1624
+ setListStatus: u,
1625
+ setMoveItemId: h,
1626
+ setMoveTargetId: l,
1627
+ updateItem: y
1628
+ } = be(), { theme: v } = ge(), { light: _, dark: E } = ie.getTheme(v), [F, z] = Q("文件夹"), b = [...(r == null ? void 0 : r.children) ?? []];
1629
+ return ye(() => {
1630
+ var m;
1631
+ r && z((m = r.data) == null ? void 0 : m.name);
1632
+ }, [r]), /* @__PURE__ */ o.jsx(
1633
+ ur,
1629
1634
  {
1630
1635
  visible: !!r,
1631
1636
  onClose: () => {
1632
- l();
1637
+ i();
1633
1638
  },
1634
1639
  animation: "zoom",
1635
1640
  maskAnimation: "fade",
@@ -1637,10 +1642,10 @@ const mr = ar({
1637
1642
  x: r == null ? void 0 : r.pageX,
1638
1643
  y: r == null ? void 0 : r.pageY
1639
1644
  } : null,
1640
- title: /* @__PURE__ */ t.jsx(
1645
+ title: /* @__PURE__ */ o.jsx(
1641
1646
  "input",
1642
1647
  {
1643
- className: d`
1648
+ className: p`
1644
1649
  background-color: transparent;
1645
1650
  border-style: none;
1646
1651
  text-align: center;
@@ -1654,23 +1659,23 @@ const mr = ar({
1654
1659
  outline: none;
1655
1660
  }
1656
1661
  `,
1657
- value: W,
1658
- onChange: (u) => {
1659
- V(u.target.value);
1662
+ value: F,
1663
+ onChange: (m) => {
1664
+ z(m.target.value);
1660
1665
  },
1661
1666
  onBlur: () => {
1662
- r && I(r.id, {
1667
+ r && y(r.id, {
1663
1668
  ...r.data,
1664
- name: W
1669
+ name: F
1665
1670
  });
1666
1671
  }
1667
1672
  }
1668
1673
  ),
1669
1674
  footer: null,
1670
1675
  closable: !1,
1671
- className: z(
1676
+ className: V(
1672
1677
  "group-item-modal",
1673
- d`
1678
+ p`
1674
1679
  .rc-dialog-content {
1675
1680
  background-color: transparent;
1676
1681
  box-shadow: none;
@@ -1685,9 +1690,9 @@ const mr = ar({
1685
1690
  }
1686
1691
  }
1687
1692
  .rc-dialog-body {
1688
- background-color: ${N.groupItemModalBackgroundColor};
1693
+ background-color: ${_.groupItemModalBackgroundColor};
1689
1694
  @media (prefers-color-scheme: dark) {
1690
- background-color: ${_.groupItemModalBackgroundColor};
1695
+ background-color: ${E.groupItemModalBackgroundColor};
1691
1696
  }
1692
1697
  border-radius: 0.5rem;
1693
1698
  overflow: hidden;
@@ -1697,24 +1702,24 @@ const mr = ar({
1697
1702
  ),
1698
1703
  width: 600,
1699
1704
  destroyOnClose: !0,
1700
- children: /* @__PURE__ */ t.jsx(
1705
+ children: /* @__PURE__ */ o.jsx(
1701
1706
  "div",
1702
1707
  {
1703
- className: d`
1708
+ className: p`
1704
1709
  overflow-y: auto;
1705
1710
  max-height: 60vh;
1706
1711
  padding: 1.25rem 0;
1707
1712
  `,
1708
- onDragLeave: (u) => {
1709
- const R = u.relatedTarget;
1710
- R && (u.currentTarget.contains(R) || setTimeout(() => {
1711
- l();
1713
+ onDragLeave: (m) => {
1714
+ const R = m.relatedTarget;
1715
+ R && (m.currentTarget.contains(R) || setTimeout(() => {
1716
+ i();
1712
1717
  }, 500));
1713
1718
  },
1714
- children: /* @__PURE__ */ t.jsx(
1715
- Fe,
1719
+ children: /* @__PURE__ */ o.jsx(
1720
+ Ye,
1716
1721
  {
1717
- className: d`
1722
+ className: p`
1718
1723
  display: grid;
1719
1724
  gap: 1rem;
1720
1725
  place-items: center;
@@ -1726,28 +1731,28 @@ const mr = ar({
1726
1731
  animation: 150,
1727
1732
  fallbackOnBody: !0,
1728
1733
  list: (r == null ? void 0 : r.children) ?? [],
1729
- setList: (u) => {
1730
- var G, k;
1731
- const R = u.map((P) => P.id), p = (k = (G = m.find((P) => P.id === (r == null ? void 0 : r.id))) == null ? void 0 : G.children) == null ? void 0 : k.map((P) => P.id);
1732
- R.length === (p == null ? void 0 : p.length) && R.every((P, E) => P === p[E]) || R.length < ((p == null ? void 0 : p.length) ?? 0) || s(u, [...(r == null ? void 0 : r.parentIds) ?? [], r == null ? void 0 : r.id]);
1734
+ setList: (m) => {
1735
+ var Y, k;
1736
+ const R = m.map((N) => N.id), f = (k = (Y = c.find((N) => N.id === (r == null ? void 0 : r.id))) == null ? void 0 : Y.children) == null ? void 0 : k.map((N) => N.id);
1737
+ R.length === (f == null ? void 0 : f.length) && R.every((N, P) => N === f[P]) || R.length < ((f == null ? void 0 : f.length) ?? 0) || s(m, [...(r == null ? void 0 : r.parentIds) ?? [], r == null ? void 0 : r.id]);
1733
1738
  },
1734
- onMove: () => (i(null), f("onMove"), !0),
1735
- onStart: (u) => {
1736
- const R = u.item.dataset;
1737
- R != null && R.id && b(R.id), f("onMove");
1739
+ onMove: () => (l(null), u("onMove"), !0),
1740
+ onStart: (m) => {
1741
+ const R = m.item.dataset;
1742
+ R != null && R.id && h(R.id), u("onMove");
1738
1743
  },
1739
1744
  onEnd: () => {
1740
- b(null), i(null), f(null);
1745
+ h(null), l(null), u(null);
1741
1746
  },
1742
- ghostClass: pr,
1743
- children: h.map((u, R) => /* @__PURE__ */ t.jsx(
1744
- ze,
1747
+ ghostClass: vr,
1748
+ children: b.map((m, R) => /* @__PURE__ */ o.jsx(
1749
+ Ve,
1745
1750
  {
1746
- data: u,
1751
+ data: m,
1747
1752
  itemIndex: R,
1748
- onClick: a
1753
+ onClick: n
1749
1754
  },
1750
- u.id
1755
+ m.id
1751
1756
  ))
1752
1757
  }
1753
1758
  )
@@ -1755,15 +1760,15 @@ const mr = ar({
1755
1760
  )
1756
1761
  }
1757
1762
  );
1758
- }, zo = (g) => {
1759
- var a;
1760
- const { data: r, onClose: l } = g;
1761
- return /* @__PURE__ */ t.jsx(
1762
- lr,
1763
+ }, Qo = (d) => {
1764
+ var n;
1765
+ const { data: r, onClose: i } = d;
1766
+ return /* @__PURE__ */ o.jsx(
1767
+ ur,
1763
1768
  {
1764
1769
  visible: !!r,
1765
1770
  onClose: () => {
1766
- l();
1771
+ i();
1767
1772
  },
1768
1773
  animation: "zoom",
1769
1774
  maskAnimation: "fade",
@@ -1772,33 +1777,33 @@ const mr = ar({
1772
1777
  y: r == null ? void 0 : r.pageY
1773
1778
  } : null,
1774
1779
  footer: null,
1775
- title: ((a = r == null ? void 0 : r.data) == null ? void 0 : a.name) ?? "信息",
1776
- children: r && /* @__PURE__ */ t.jsxs("div", { children: [
1777
- /* @__PURE__ */ t.jsx("div", { className: "mb-2", children: "开发者信息" }),
1778
- /* @__PURE__ */ t.jsx("div", { className: "p-2 rounded-md bg-[#272822]", children: /* @__PURE__ */ t.jsx(Hr, { src: r, theme: "monokai" }) })
1780
+ title: ((n = r == null ? void 0 : r.data) == null ? void 0 : n.name) ?? "信息",
1781
+ children: r && /* @__PURE__ */ o.jsxs("div", { children: [
1782
+ /* @__PURE__ */ o.jsx("div", { className: "mb-2", children: "开发者信息" }),
1783
+ /* @__PURE__ */ o.jsx("div", { className: "p-2 rounded-md bg-[#272822]", children: /* @__PURE__ */ o.jsx(no, { src: r, theme: "monokai" }) })
1779
1784
  ] })
1780
1785
  }
1781
1786
  );
1782
- }, Yo = (g) => {
1787
+ }, et = (d) => {
1783
1788
  const {
1784
1789
  pagination: r = { position: "bottom" },
1785
- className: l,
1786
- sliderProps: a,
1787
- sliderRef: m,
1790
+ className: i,
1791
+ sliderProps: n,
1792
+ sliderRef: c,
1788
1793
  onItemClick: s
1789
- } = g, f = Me(null), b = Me(null), {
1790
- list: i,
1791
- setList: I,
1794
+ } = d, u = Ce(null), h = Ce(null), {
1795
+ list: l,
1796
+ setList: y,
1792
1797
  setListStatus: v,
1793
- showInfoItemData: N,
1794
- setShowInfoItemData: _,
1795
- openGroupItemData: W,
1796
- setOpenGroupItemData: V,
1797
- setMoveItemId: h,
1798
- setMoveTargetId: u,
1798
+ showInfoItemData: _,
1799
+ setShowInfoItemData: E,
1800
+ openGroupItemData: F,
1801
+ setOpenGroupItemData: z,
1802
+ setMoveItemId: b,
1803
+ setMoveTargetId: m,
1799
1804
  addItem: R
1800
- } = be(), { pagingDotBuilder: p, pagingDotsBuilder: G, itemBuilder: k } = me(), P = Ee(() => r === !1 ? {} : {
1801
- top: d`
1805
+ } = be(), { pagingDotBuilder: f, pagingDotsBuilder: Y, itemBuilder: k } = ge(), N = De(() => r === !1 ? {} : {
1806
+ top: p`
1802
1807
  display: flex;
1803
1808
  flex-direction: column;
1804
1809
  .slick-list {
@@ -1808,12 +1813,12 @@ const mr = ar({
1808
1813
  position: static;
1809
1814
  }
1810
1815
  `,
1811
- bottom: d`
1816
+ bottom: p`
1812
1817
  .slick-dots {
1813
1818
  position: static;
1814
1819
  }
1815
1820
  `,
1816
- left: d`
1821
+ left: p`
1817
1822
  .slick-dots {
1818
1823
  position: absolute;
1819
1824
  width: auto;
@@ -1829,7 +1834,7 @@ const mr = ar({
1829
1834
  }
1830
1835
  }
1831
1836
  `,
1832
- right: d`
1837
+ right: p`
1833
1838
  .slick-dots {
1834
1839
  position: absolute;
1835
1840
  width: auto;
@@ -1846,21 +1851,21 @@ const mr = ar({
1846
1851
  }
1847
1852
  `
1848
1853
  }[r.position ?? "bottom"], [r]);
1849
- return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
1850
- /* @__PURE__ */ t.jsx(
1851
- Fr,
1854
+ return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1855
+ /* @__PURE__ */ o.jsx(
1856
+ Gr,
1852
1857
  {
1853
1858
  useCSS: !0,
1854
1859
  useTransform: !0,
1855
1860
  arrows: !1,
1856
- ref: m ?? f,
1861
+ ref: c ?? u,
1857
1862
  infinite: !1,
1858
1863
  dots: !0,
1859
1864
  touchMove: !1,
1860
1865
  lazyLoad: "anticipated",
1861
- className: z(
1862
- P,
1863
- d`
1866
+ className: V(
1867
+ N,
1868
+ p`
1864
1869
  .slick-track {
1865
1870
  display: flex;
1866
1871
  align-items: stretch;
@@ -1876,28 +1881,28 @@ const mr = ar({
1876
1881
  }
1877
1882
  }
1878
1883
  `,
1879
- l
1884
+ i
1880
1885
  ),
1881
- customPaging: (E) => {
1882
- var x, y;
1883
- return p ? p(i[E], E) : /* @__PURE__ */ t.jsx(
1886
+ customPaging: (P) => {
1887
+ var x, C;
1888
+ return f ? f(l[P], P) : /* @__PURE__ */ o.jsx(
1884
1889
  "div",
1885
1890
  {
1886
1891
  onDragEnter: () => {
1887
- var X;
1888
- (X = (m ?? f).current) == null || X.slickGoTo(E);
1892
+ var U;
1893
+ (U = (c ?? u).current) == null || U.slickGoTo(P);
1889
1894
  },
1890
- children: (y = (x = i[E]) == null ? void 0 : x.data) == null ? void 0 : y.name
1895
+ children: (C = (x = l[P]) == null ? void 0 : x.data) == null ? void 0 : C.name
1891
1896
  }
1892
1897
  );
1893
1898
  },
1894
- appendDots: (E) => G ? G(E) : r === !1 ? /* @__PURE__ */ t.jsx("div", {}) : /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
1899
+ appendDots: (P) => Y ? Y(P) : r === !1 ? /* @__PURE__ */ o.jsx("div", {}) : /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(
1895
1900
  "ul",
1896
1901
  {
1897
- ref: b,
1898
- className: z(
1902
+ ref: h,
1903
+ className: V(
1899
1904
  "slick-dots-default",
1900
- d`
1905
+ p`
1901
1906
  padding: 0.5rem;
1902
1907
  display: inline-flex;
1903
1908
  justify-content: center;
@@ -1918,31 +1923,31 @@ const mr = ar({
1918
1923
  }
1919
1924
  `
1920
1925
  ),
1921
- children: E
1926
+ children: P
1922
1927
  }
1923
1928
  ) }),
1924
- ...a,
1925
- children: i.map((E) => /* @__PURE__ */ t.jsx(
1929
+ ...n,
1930
+ children: l.map((P) => /* @__PURE__ */ o.jsx(
1926
1931
  "div",
1927
1932
  {
1928
1933
  onDrop: (x) => {
1929
1934
  x.preventDefault();
1930
- const y = x.dataTransfer.getData("text/plain");
1931
- if (y !== "")
1935
+ const C = x.dataTransfer.getData("text/plain");
1936
+ if (C !== "")
1932
1937
  try {
1933
- R(JSON.parse(y), [E.id]);
1934
- } catch (X) {
1935
- console.log("drag error", X);
1938
+ R(JSON.parse(C), [P.id]);
1939
+ } catch (U) {
1940
+ console.log("drag error", U);
1936
1941
  }
1937
1942
  },
1938
1943
  onDragOver: (x) => {
1939
1944
  x.preventDefault();
1940
1945
  },
1941
- children: /* @__PURE__ */ t.jsx(
1942
- Fe,
1946
+ children: /* @__PURE__ */ o.jsx(
1947
+ Ye,
1943
1948
  {
1944
- className: z(
1945
- d`
1949
+ className: V(
1950
+ p`
1946
1951
  display: grid;
1947
1952
  transition: all 0.3s;
1948
1953
  grid-template-columns: repeat(auto-fill, 96px);
@@ -1957,113 +1962,113 @@ const mr = ar({
1957
1962
  fallbackOnBody: !0,
1958
1963
  swapThreshold: 0.65,
1959
1964
  group: "nested",
1960
- list: E.children ?? [],
1961
- setList: (x) => I(x, [E.id]),
1965
+ list: P.children ?? [],
1966
+ setList: (x) => y(x, [P.id]),
1962
1967
  filter: ".drag-disabled",
1963
1968
  onMove: (x) => {
1964
1969
  v("onMove");
1965
- const { dragged: y, related: X } = x, ce = y.dataset, H = X.dataset;
1966
- return u(null), !((Object.keys(H).length === 0 || H.parentIds) && Number(ce.childrenLength) > 0 && X.classList.contains("sortable-group-item"));
1970
+ const { dragged: C, related: U } = x, ce = C.dataset, H = U.dataset;
1971
+ return m(null), !((Object.keys(H).length === 0 || H.parentIds) && Number(ce.childrenLength) > 0 && U.classList.contains("sortable-group-item"));
1967
1972
  },
1968
1973
  onStart: (x) => {
1969
- const y = x.item.dataset;
1970
- y != null && y.id && h(y.id), v("onMove");
1974
+ const C = x.item.dataset;
1975
+ C != null && C.id && b(C.id), v("onMove");
1971
1976
  },
1972
1977
  onEnd: () => {
1973
- h(null), u(null), v(null);
1978
+ b(null), m(null), v(null);
1974
1979
  },
1975
- ghostClass: pr,
1976
- children: (E.children ?? []).map((x, y) => {
1977
- let X;
1980
+ ghostClass: vr,
1981
+ children: (P.children ?? []).map((x, C) => {
1982
+ let U;
1978
1983
  if (k)
1979
1984
  return k(x);
1980
1985
  switch (x.type) {
1981
1986
  case "group":
1982
1987
  case "app":
1983
- X = /* @__PURE__ */ t.jsx(
1984
- Lo,
1988
+ U = /* @__PURE__ */ o.jsx(
1989
+ Ko,
1985
1990
  {
1986
1991
  data: x,
1987
- itemIndex: y,
1988
- parentIds: [E.id, x.id],
1992
+ itemIndex: C,
1993
+ parentIds: [P.id, x.id],
1989
1994
  onClick: s
1990
1995
  },
1991
1996
  x.id
1992
1997
  );
1993
1998
  break;
1994
1999
  default:
1995
- X = /* @__PURE__ */ t.jsx(
1996
- ze,
2000
+ U = /* @__PURE__ */ o.jsx(
2001
+ Ve,
1997
2002
  {
1998
2003
  data: x,
1999
- itemIndex: y,
2004
+ itemIndex: C,
2000
2005
  onClick: s
2001
2006
  },
2002
2007
  x.id
2003
2008
  );
2004
2009
  break;
2005
2010
  }
2006
- return X;
2011
+ return U;
2007
2012
  })
2008
2013
  }
2009
2014
  )
2010
2015
  },
2011
- E.id
2016
+ P.id
2012
2017
  ))
2013
2018
  }
2014
2019
  ),
2015
- /* @__PURE__ */ t.jsx(
2016
- zo,
2020
+ /* @__PURE__ */ o.jsx(
2021
+ Qo,
2017
2022
  {
2018
- data: N,
2023
+ data: _,
2019
2024
  onClose: () => {
2020
- _(null);
2025
+ E(null);
2021
2026
  }
2022
2027
  }
2023
2028
  ),
2024
- /* @__PURE__ */ t.jsx(
2025
- Fo,
2029
+ /* @__PURE__ */ o.jsx(
2030
+ Zo,
2026
2031
  {
2027
- data: W,
2032
+ data: F,
2028
2033
  onClose: () => {
2029
- V(null);
2034
+ z(null);
2030
2035
  },
2031
2036
  onItemClick: s
2032
2037
  }
2033
2038
  )
2034
2039
  ] });
2035
- }, ft = (g) => {
2040
+ }, _t = (d) => {
2036
2041
  const {
2037
2042
  list: r,
2038
- onChange: l,
2039
- storageKey: a,
2040
- enableCaching: m,
2043
+ onChange: i,
2044
+ storageKey: n,
2045
+ enableCaching: c,
2041
2046
  theme: s,
2042
- noLetters: f,
2043
- contextMenu: b,
2044
- contextMenuBuilder: i,
2045
- itemBuilder: I,
2047
+ noLetters: u,
2048
+ contextMenu: h,
2049
+ contextMenuBuilder: l,
2050
+ itemBuilder: y,
2046
2051
  itemIconBuilder: v,
2047
- pagingDotBuilder: N,
2048
- pagingDotsBuilder: _,
2049
- ...W
2050
- } = g, V = {
2052
+ pagingDotBuilder: _,
2053
+ pagingDotsBuilder: E,
2054
+ ...F
2055
+ } = d, z = {
2051
2056
  list: r,
2052
- onChange: l,
2053
- storageKey: a,
2054
- enableCaching: m
2055
- }, h = {
2057
+ onChange: i,
2058
+ storageKey: n,
2059
+ enableCaching: c
2060
+ }, b = {
2056
2061
  theme: s,
2057
- noLetters: f,
2058
- contextMenu: b,
2059
- pagingDotsBuilder: _,
2060
- pagingDotBuilder: N,
2061
- itemBuilder: I,
2062
+ noLetters: u,
2063
+ contextMenu: h,
2064
+ pagingDotsBuilder: E,
2065
+ pagingDotBuilder: _,
2066
+ itemBuilder: y,
2062
2067
  itemIconBuilder: v,
2063
- contextMenuBuilder: i
2068
+ contextMenuBuilder: l
2064
2069
  };
2065
- return /* @__PURE__ */ t.jsx(No, { ...V, children: /* @__PURE__ */ t.jsx(Do, { ...h, children: /* @__PURE__ */ t.jsx(Yo, { ...W }) }) });
2066
- }, Wo = {
2070
+ return /* @__PURE__ */ o.jsx(Uo, { ...z, children: /* @__PURE__ */ o.jsx(Xo, { ...b, children: /* @__PURE__ */ o.jsx(et, { ...F }) }) });
2071
+ }, rt = {
2067
2072
  frontmatterEditor: {
2068
2073
  title: "编辑前置元数据",
2069
2074
  key: "键",
@@ -2180,13 +2185,13 @@ const mr = ar({
2180
2185
  image: {
2181
2186
  delete: "删除图片"
2182
2187
  }
2183
- }, Vo = (g, r, l) => {
2184
- const m = g.split(".").reduce(
2185
- (s, f) => typeof s == "string" ? s : s[f],
2186
- Wo
2188
+ }, ot = (d, r, i) => {
2189
+ const c = d.split(".").reduce(
2190
+ (s, u) => typeof s == "string" ? s : s[u],
2191
+ rt
2187
2192
  );
2188
- return typeof m != "string" ? r : l ? m.replace(/{{(.*?)}}/g, (s, f) => l[f]) : m;
2189
- }, Uo = d`
2193
+ return typeof c != "string" ? r : i ? c.replace(/{{(.*?)}}/g, (s, u) => i[u]) : c;
2194
+ }, tt = p`
2190
2195
  [class*="_toolbarRoot"] {
2191
2196
  flex-wrap: wrap;
2192
2197
  }
@@ -2255,9 +2260,9 @@ const mr = ar({
2255
2260
  margin-bottom: 0;
2256
2261
  }
2257
2262
  }
2258
- `, fr = z(
2263
+ `, kr = V(
2259
2264
  "markdown-body",
2260
- d`
2265
+ p`
2261
2266
  p {
2262
2267
  margin-bottom: 8px;
2263
2268
  }
@@ -2278,7 +2283,7 @@ const mr = ar({
2278
2283
  }
2279
2284
  }
2280
2285
  `
2281
- ), Go = {
2286
+ ), nt = {
2282
2287
  'code[class*="language-"]': {
2283
2288
  background: "hsl(230, 1%, 98%)",
2284
2289
  color: "hsl(230, 8%, 24%)",
@@ -2766,42 +2771,42 @@ const mr = ar({
2766
2771
  ".prism-previewer-easing.prism-previewer-easing line": {
2767
2772
  stroke: "hsl(230, 8%, 24%)"
2768
2773
  }
2769
- }, Xo = (g) => {
2770
- const { children: r = "", className: l } = g;
2771
- return /* @__PURE__ */ t.jsx(
2772
- Io,
2774
+ }, at = (d) => {
2775
+ const { children: r = "", className: i } = d;
2776
+ return /* @__PURE__ */ o.jsx(
2777
+ $o,
2773
2778
  {
2774
- className: z(fr, l),
2775
- remarkPlugins: [To, Ro],
2776
- rehypePlugins: [Eo],
2779
+ className: V(kr, i),
2780
+ remarkPlugins: [Oo, Bo],
2781
+ rehypePlugins: [Ao],
2777
2782
  components: {
2778
- code(a) {
2779
- const { children: m, className: s, node: f, ref: b, ...i } = a, I = /language-(\w+)/.exec(s || "");
2780
- return I ? /* @__PURE__ */ t.jsx(
2781
- Mo,
2783
+ code(n) {
2784
+ const { children: c, className: s, node: u, ref: h, ...l } = n, y = /language-(\w+)/.exec(s || "");
2785
+ return y ? /* @__PURE__ */ o.jsx(
2786
+ Lo,
2782
2787
  {
2783
- ...i,
2788
+ ...l,
2784
2789
  PreTag: "div",
2785
- children: String(m).replace(/\n$/, ""),
2786
- language: I[1],
2787
- style: Go
2790
+ children: String(c).replace(/\n$/, ""),
2791
+ language: y[1],
2792
+ style: nt
2788
2793
  }
2789
- ) : /* @__PURE__ */ t.jsx("code", { ...i, className: s, children: m });
2794
+ ) : /* @__PURE__ */ o.jsx("code", { ...l, className: s, children: c });
2790
2795
  }
2791
2796
  },
2792
2797
  children: r
2793
2798
  }
2794
2799
  );
2795
- }, qo = (g) => {
2796
- const { value: r, onChange: l, translation: a, pluginConfig: m, ...s } = g, f = Me(null), {
2797
- image: b,
2798
- diffSource: i = {
2800
+ }, it = (d) => {
2801
+ const { value: r, onChange: i, translation: n, pluginConfig: c, ...s } = d, u = Ce(null), {
2802
+ image: h,
2803
+ diffSource: l = {
2799
2804
  viewMode: "rich-text"
2800
2805
  },
2801
- headings: I,
2806
+ headings: y,
2802
2807
  link: v,
2803
- codeBlock: N,
2804
- codeMirror: _ = {
2808
+ codeBlock: _,
2809
+ codeMirror: E = {
2805
2810
  codeBlockLanguages: {
2806
2811
  js: "JavaScript",
2807
2812
  css: "CSS",
@@ -2810,68 +2815,222 @@ const mr = ar({
2810
2815
  "": "Unspecified"
2811
2816
  }
2812
2817
  },
2813
- directives: W = {
2814
- directiveDescriptors: [jo]
2815
- }
2816
- } = m ?? {}, [V, h] = te("");
2817
- return we(() => {
2818
- var u;
2819
- r !== void 0 && f.current && ((u = f.current) == null || u.setMarkdown(r), h(r));
2820
- }, [r, f]), /* @__PURE__ */ t.jsx(
2821
- Jr,
2818
+ directives: F = {
2819
+ directiveDescriptors: [No]
2820
+ }
2821
+ } = c ?? {}, [z, b] = Q("");
2822
+ return ye(() => {
2823
+ var m;
2824
+ r !== void 0 && u.current && ((m = u.current) == null || m.setMarkdown(r), b(r));
2825
+ }, [r, u]), /* @__PURE__ */ o.jsx(
2826
+ ao,
2822
2827
  {
2823
- ref: f,
2824
- className: Uo,
2825
- contentEditableClassName: fr,
2826
- markdown: V,
2827
- onChange: (u) => {
2828
- !r && !l && h(u), l && l(u);
2828
+ ref: u,
2829
+ className: tt,
2830
+ contentEditableClassName: kr,
2831
+ markdown: z,
2832
+ onChange: (m) => {
2833
+ !r && !i && b(m), i && i(m);
2829
2834
  },
2830
- translation: a ?? Vo,
2835
+ translation: n ?? ot,
2831
2836
  plugins: [
2832
- Kr({
2833
- toolbarContents: () => /* @__PURE__ */ t.jsxs(Zr, { options: ["rich-text", "source"], children: [
2834
- /* @__PURE__ */ t.jsx(Qr, {}),
2835
- /* @__PURE__ */ t.jsx(ge, {}),
2836
- /* @__PURE__ */ t.jsx(eo, {}),
2837
- /* @__PURE__ */ t.jsx(ro, {}),
2838
- /* @__PURE__ */ t.jsx(ge, {}),
2839
- /* @__PURE__ */ t.jsx(oo, {}),
2840
- /* @__PURE__ */ t.jsx(ge, {}),
2841
- /* @__PURE__ */ t.jsx(to, {}),
2842
- /* @__PURE__ */ t.jsx(ge, {}),
2843
- /* @__PURE__ */ t.jsx(no, {}),
2844
- /* @__PURE__ */ t.jsx(ao, {}),
2845
- /* @__PURE__ */ t.jsx(ge, {}),
2846
- /* @__PURE__ */ t.jsx(io, {}),
2847
- /* @__PURE__ */ t.jsx(lo, {}),
2848
- /* @__PURE__ */ t.jsx(ge, {}),
2849
- /* @__PURE__ */ t.jsx(so, {}),
2850
- /* @__PURE__ */ t.jsx(ge, {}),
2851
- /* @__PURE__ */ t.jsx(co, {})
2837
+ io({
2838
+ toolbarContents: () => /* @__PURE__ */ o.jsxs(lo, { options: ["rich-text", "source"], children: [
2839
+ /* @__PURE__ */ o.jsx(so, {}),
2840
+ /* @__PURE__ */ o.jsx(me, {}),
2841
+ /* @__PURE__ */ o.jsx(co, {}),
2842
+ /* @__PURE__ */ o.jsx(uo, {}),
2843
+ /* @__PURE__ */ o.jsx(me, {}),
2844
+ /* @__PURE__ */ o.jsx(mo, {}),
2845
+ /* @__PURE__ */ o.jsx(me, {}),
2846
+ /* @__PURE__ */ o.jsx(go, {}),
2847
+ /* @__PURE__ */ o.jsx(me, {}),
2848
+ /* @__PURE__ */ o.jsx(po, {}),
2849
+ /* @__PURE__ */ o.jsx(fo, {}),
2850
+ /* @__PURE__ */ o.jsx(me, {}),
2851
+ /* @__PURE__ */ o.jsx(ho, {}),
2852
+ /* @__PURE__ */ o.jsx(bo, {}),
2853
+ /* @__PURE__ */ o.jsx(me, {}),
2854
+ /* @__PURE__ */ o.jsx(vo, {}),
2855
+ /* @__PURE__ */ o.jsx(me, {}),
2856
+ /* @__PURE__ */ o.jsx(ko, {})
2852
2857
  ] })
2853
2858
  }),
2854
- uo(i),
2855
- go(),
2856
- mo(),
2857
- po(I),
2858
- fo(v),
2859
- ho(),
2860
- bo(b),
2861
- vo(),
2862
- ko(),
2863
- xo(),
2864
- wo(N),
2865
- yo(_),
2866
- Co(),
2867
- So(W)
2859
+ xo(l),
2860
+ wo(),
2861
+ yo(),
2862
+ Co(y),
2863
+ jo(v),
2864
+ So(),
2865
+ Io(h),
2866
+ To(),
2867
+ Ro(),
2868
+ Mo(),
2869
+ Eo(_),
2870
+ _o(E),
2871
+ Po(),
2872
+ Do(F)
2868
2873
  ],
2869
2874
  ...s
2870
2875
  }
2871
2876
  );
2872
- }, Ho = qo;
2873
- Ho.Preview = Xo;
2877
+ }, lt = it;
2878
+ lt.Preview = at;
2879
+ function xr(...d) {
2880
+ return zo(Fo(d));
2881
+ }
2882
+ const st = (d) => {
2883
+ const { mouseX: r, title: i, icon: n, href: c } = d, s = Ce(null), u = ke(r, (R) => {
2884
+ var Y;
2885
+ const f = ((Y = s.current) == null ? void 0 : Y.getBoundingClientRect()) ?? { x: 0, width: 0 };
2886
+ return R - f.x - f.width / 2;
2887
+ }), h = ke(u, [-150, 0, 150], [40, 80, 40]), l = ke(u, [-150, 0, 150], [40, 80, 40]), y = ke(
2888
+ u,
2889
+ [-150, 0, 150],
2890
+ [20, 40, 20]
2891
+ ), v = ke(
2892
+ u,
2893
+ [-150, 0, 150],
2894
+ [20, 40, 20]
2895
+ ), _ = _e(h, {
2896
+ mass: 0.1,
2897
+ stiffness: 150,
2898
+ damping: 12
2899
+ }), E = _e(l, {
2900
+ mass: 0.1,
2901
+ stiffness: 150,
2902
+ damping: 12
2903
+ }), F = _e(y, {
2904
+ mass: 0.1,
2905
+ stiffness: 150,
2906
+ damping: 12
2907
+ }), z = _e(v, {
2908
+ mass: 0.1,
2909
+ stiffness: 150,
2910
+ damping: 12
2911
+ }), [b, m] = Q(!1);
2912
+ return /* @__PURE__ */ o.jsx("a", { href: c, children: /* @__PURE__ */ o.jsxs(
2913
+ T.div,
2914
+ {
2915
+ ref: s,
2916
+ style: { width: _, height: E },
2917
+ onMouseEnter: () => m(!0),
2918
+ onMouseLeave: () => m(!1),
2919
+ className: "aspect-square rounded-full bg-gray-200 dark:bg-neutral-800 flex items-center justify-center relative",
2920
+ children: [
2921
+ /* @__PURE__ */ o.jsx(We, { children: b && /* @__PURE__ */ o.jsx(
2922
+ T.div,
2923
+ {
2924
+ initial: { opacity: 0, y: 10, x: "-50%" },
2925
+ animate: { opacity: 1, y: 0, x: "-50%" },
2926
+ exit: { opacity: 0, y: 2, x: "-50%" },
2927
+ className: "px-2 py-0.5 whitespace-pre rounded-md bg-gray-100 border dark:bg-neutral-800 dark:border-neutral-900 dark:text-white border-gray-200 text-neutral-700 absolute left-1/2 -translate-x-1/2 -top-8 w-fit text-xs",
2928
+ children: i
2929
+ }
2930
+ ) }),
2931
+ /* @__PURE__ */ o.jsx(
2932
+ T.div,
2933
+ {
2934
+ style: { width: F, height: z },
2935
+ className: "flex items-center justify-center",
2936
+ children: n
2937
+ }
2938
+ )
2939
+ ]
2940
+ }
2941
+ ) });
2942
+ }, wr = (d) => {
2943
+ const { items: r, className: i } = d, n = Hr(1 / 0);
2944
+ return /* @__PURE__ */ o.jsx(
2945
+ T.div,
2946
+ {
2947
+ onMouseMove: (c) => n.set(c.pageX),
2948
+ onMouseLeave: () => n.set(1 / 0),
2949
+ className: xr(
2950
+ "mx-auto hidden md:flex h-16 gap-4 items-end rounded-2xl bg-gray-50 dark:bg-neutral-900 px-4 pb-3",
2951
+ i
2952
+ ),
2953
+ children: r.map((c) => /* @__PURE__ */ o.jsx(st, { mouseX: n, ...c }, c.title))
2954
+ }
2955
+ );
2956
+ }, yr = (d) => {
2957
+ const { items: r, className: i, collapseIcon: n, autoHidden: c = !1 } = d, [s, u] = Q(!1), h = () => {
2958
+ u(!s);
2959
+ };
2960
+ return /* @__PURE__ */ o.jsxs(
2961
+ "div",
2962
+ {
2963
+ className: xr(
2964
+ "relative block",
2965
+ c ? "md:hidden" : "",
2966
+ i
2967
+ ),
2968
+ children: [
2969
+ /* @__PURE__ */ o.jsx(We, { children: s && /* @__PURE__ */ o.jsx(
2970
+ T.div,
2971
+ {
2972
+ layoutId: "nav",
2973
+ className: "absolute bottom-full mb-2 inset-x-0 flex flex-col gap-2",
2974
+ children: r.map((l, y) => /* @__PURE__ */ o.jsx(
2975
+ T.div,
2976
+ {
2977
+ initial: { opacity: 0, y: 10 },
2978
+ animate: {
2979
+ opacity: 1,
2980
+ y: 0
2981
+ },
2982
+ exit: {
2983
+ opacity: 0,
2984
+ y: 10,
2985
+ transition: {
2986
+ delay: y * 0.05
2987
+ }
2988
+ },
2989
+ transition: { delay: (r.length - 1 - y) * 0.05 },
2990
+ children: /* @__PURE__ */ o.jsx(
2991
+ "a",
2992
+ {
2993
+ href: l.href,
2994
+ className: "h-10 w-10 rounded-full bg-gray-50 dark:bg-neutral-900 flex items-center justify-center",
2995
+ children: /* @__PURE__ */ o.jsx("div", { className: "h-4 w-4", children: l.icon })
2996
+ },
2997
+ l.title
2998
+ )
2999
+ },
3000
+ l.title
3001
+ ))
3002
+ }
3003
+ ) }),
3004
+ /* @__PURE__ */ o.jsx(
3005
+ "button",
3006
+ {
3007
+ onClick: h,
3008
+ className: "h-10 w-10 rounded-full bg-gray-50 dark:bg-neutral-800 flex items-center justify-center",
3009
+ children: n || /* @__PURE__ */ o.jsx(to, { className: "h-5 w-5 text-neutral-500 dark:text-neutral-400" })
3010
+ }
3011
+ )
3012
+ ]
3013
+ }
3014
+ );
3015
+ }, ct = (d) => {
3016
+ const { items: r, desktopClassName: i, mobileClassName: n, ...c } = d;
3017
+ return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3018
+ /* @__PURE__ */ o.jsx(wr, { items: r, className: i, ...c }),
3019
+ /* @__PURE__ */ o.jsx(
3020
+ yr,
3021
+ {
3022
+ items: r,
3023
+ className: n,
3024
+ autoHidden: !0,
3025
+ ...c
3026
+ }
3027
+ )
3028
+ ] });
3029
+ }, Cr = ct;
3030
+ Cr.Desktop = wr;
3031
+ Cr.Mobile = yr;
2874
3032
  export {
2875
- ft as Desktop,
2876
- Ho as MdEditor
3033
+ _t as Desktop,
3034
+ Cr as Dock,
3035
+ lt as MdEditor
2877
3036
  };