reactjs-tiptap-editor 0.0.51 → 0.0.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,51 +1,51 @@
1
- var jn = Object.defineProperty;
2
- var Fn = (e, t, i) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
- var me = (e, t, i) => Fn(e, typeof t != "symbol" ? t + "" : t, i);
1
+ var Bn = Object.defineProperty;
2
+ var jn = (e, t, i) => t in e ? Bn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
3
+ var fe = (e, t, i) => jn(e, typeof t != "symbol" ? t + "" : t, i);
4
4
  import { jsxs as u, jsx as r, Fragment as q } from "react/jsx-runtime";
5
5
  import * as j from "react";
6
- import Pe, { useState as w, useRef as X, useEffect as z, useCallback as M, useMemo as O, Fragment as nt, forwardRef as Tt, useImperativeHandle as Lt } from "react";
6
+ import Pe, { useState as w, useRef as X, useEffect as z, useCallback as M, useMemo as O, Fragment as nt, forwardRef as Nt, useImperativeHandle as Tt } from "react";
7
7
  import "@radix-ui/react-toast";
8
- import { ChevronRight as Un, Check as Gi, Circle as Vn, ChevronDown as At, ChevronUp as Zi, HelpCircle as Ji, Pencil as Xi, Trash2 as Yi, X as Wn, Plus as Qi, Bold as qn, LoaderCircle as Kn, Italic as Gn, Underline as Zn, Quote as Jn, Strikethrough as Xn, Minus as Yn, Eraser as Qn, PaintRoller as er, Redo2 as tr, Undo2 as ir, Subscript as nr, Superscript as rr, Code as ar, CodeXml as or, Type as cr, IndentIncrease as sr, IndentDecrease as lr, List as dr, ListOrdered as hr, ListTodo as ur, Link as mr, ImageUp as fr, Video as gr, Maximize as xr, Minimize as pr, Table as br, Sparkles as wr, Unlink as _r, BetweenHorizonalEnd as vr, BetweenHorizonalStart as yr, BetweenVerticalStart as kr, BetweenVerticalEnd as Cr, TableCellsMerge as Nr, TableCellsSplit as Tr, Trash as Lr, Replace as yi, ChevronsUpDown as Ar, Heading1 as Sr, Heading2 as Mr, Heading3 as Ir, Heading4 as zr, Heading5 as Hr, Heading6 as Er, Columns2 as ki, Columns3 as Rr, Columns4 as Or, GripVertical as Pr, Copy as en, Clipboard as Dr, PanelLeft as $r, PanelRight as Br, Frame as jr, SmilePlus as Fr, SmilePlusIcon as Ur, Sigma as Vr, BookMarked as Wr, ZoomIn as qr, ZoomOut as Kr, Settings as Gr, Eye as Zr, Paperclip as Jr, CropIcon as Xr, CopyCheck as Yr, Clock3 as Qr, Laugh as ea, LucideTableProperties as ta, LucideSheet as ia, LucideImage as na, LucideFile as ra, LucideVideo as aa, LucideAudioLines as oa } from "lucide-react";
9
- import { B as he, N as ne, a as ce, m as se, R as ue, n as Xt, u as ca, E as sa, i as la, b as da, c as ha, I as ua, U as ma, S as fa, C as ga, f as et, d as xa, e as pa, F as ba, H as wa, T as _a, g as Z, h as va, j as ya, k as ka, O as Ca, l as Na, o as Ta, p as La, L as Aa, q as Sa, r as Ma, s as Ia, D as za, t as vt, P as Ha, v as Ea, w as Ra, G as Oa, x as Pa, y as Da, z as $a, A as Ba, J as ja, K as Fa, M as tn, Q as nn, V as rn, W as Yt, X as Qt, Y as Ua, Z as Va, _ as Wa, $ as qa, a0 as Ka, a1 as Ci } from "./tiptap-BjeL17_y.js";
10
- import { ah as Ga, ai as ee, aj as ei, ak as ti, al as Za, am as an, an as Ja, ao as Ne, e as St, d as Te, ap as on, aq as ii, ar as Xa, P as pe, a as be, Z as De, _ as Be, as as Ya, at as yt, au as cn, ae as Qa } from "./vendor-CXgFM3bq.js";
11
- import { bundledThemes as sn, bundledLanguages as ln, createHighlighter as eo } from "shiki";
12
- import { u as F, C as to, E as io, l as W, B as no, I as kt, V as Ft, M as ro, D as dn, a as ao, b as oo, c as Ni, d as hn, e as co, f as je, g as Fe, h as ni, T as mt, i as ft, j as gt } from "./locales-CV1FzvUW.js";
8
+ import { ChevronRight as Fn, Check as qi, Circle as Un, ChevronDown as Lt, ChevronUp as Ki, HelpCircle as Gi, Pencil as Zi, Trash2 as Ji, X as Vn, Plus as Xi, Bold as Wn, LoaderCircle as qn, Italic as Kn, Underline as Gn, Quote as Zn, Strikethrough as Jn, Minus as Xn, Eraser as Yn, PaintRoller as Qn, Redo2 as er, Undo2 as tr, Subscript as ir, Superscript as nr, Code as rr, CodeXml as ar, Type as or, IndentIncrease as cr, IndentDecrease as sr, List as lr, ListOrdered as dr, ListTodo as hr, Link as ur, ImageUp as mr, Video as fr, Maximize as gr, Minimize as xr, Table as pr, Sparkles as br, Unlink as wr, BetweenHorizonalEnd as _r, BetweenHorizonalStart as vr, BetweenVerticalStart as yr, BetweenVerticalEnd as kr, TableCellsMerge as Cr, TableCellsSplit as Nr, Trash as Tr, Replace as _i, ChevronsUpDown as Lr, Heading1 as Ar, Heading2 as Sr, Heading3 as Mr, Heading4 as Ir, Heading5 as zr, Heading6 as Hr, Columns2 as vi, Columns3 as Er, Columns4 as Rr, GripVertical as Or, Copy as Yi, Clipboard as Pr, PanelLeft as Dr, PanelRight as $r, Frame as Br, SmilePlus as jr, SmilePlusIcon as Fr, Sigma as Ur, BookMarked as Vr, ZoomIn as Wr, ZoomOut as qr, Settings as Kr, Eye as Gr, Paperclip as Zr, CropIcon as Jr, CopyCheck as Xr, Clock3 as Yr, Laugh as Qr, LucideTableProperties as ea, LucideSheet as ta, LucideImage as ia, LucideFile as na, LucideVideo as ra, LucideAudioLines as aa } from "lucide-react";
9
+ import { B as ue, N as ne, a as ce, m as se, R as me, n as Xt, u as oa, E as ca, i as sa, b as la, c as da, I as ha, U as ua, S as ma, C as fa, f as et, d as ga, e as xa, F as pa, H as ba, T as wa, g as Z, h as _a, j as va, k as ya, O as ka, l as Ca, o as Na, p as Ta, L as La, q as Aa, r as Sa, s as Ma, D as Ia, t as vt, P as za, v as Ha, w as Ea, G as Ra, x as Oa, y as Pa, z as Da, A as $a, J as Ba, K as ja, M as Qi, Q as en, V as tn, W as Yt, X as Qt, Y as Fa, Z as Ua, _ as Va, $ as Wa, a0 as qa, a1 as yi } from "./tiptap-BjeL17_y.js";
10
+ import { ah as Ka, ai as ee, aj as ei, ak as ti, al as Ga, am as nn, an as Za, ao as Le, e as At, d as Ae, ap as rn, aq as ii, ar as Ja, P as be, a as we, Z as De, _ as Be, as as Xa, at as yt, au as an, ae as Ya } from "./vendor-CXgFM3bq.js";
11
+ import { bundledThemes as on, bundledLanguages as cn, createHighlighter as Qa } from "shiki";
12
+ import { u as F, C as eo, E as to, l as W, B as io, I as kt, V as jt, M as no, D as sn, a as ro, b as ao, c as ki, d as ln, e as oo, f as je, g as Fe, h as ni, T as mt, i as ft, j as gt } from "./locales-D5YOTc5t.js";
13
13
  import * as G from "@radix-ui/react-select";
14
14
  import { Slot as ri } from "@radix-ui/react-slot";
15
- import ai, { sticky as so } from "tippy.js";
15
+ import ai, { sticky as co } from "tippy.js";
16
16
  import { flushSync as Ue } from "react-dom";
17
- import lo from "react-image-crop";
17
+ import so from "react-image-crop";
18
18
  import oi from "scroll-into-view-if-needed";
19
- import * as Le from "@radix-ui/react-tabs";
20
- import { defaultNodes as _e, DocxSerializer as ho, defaultMarks as uo } from "prosemirror-docx";
21
- import { Packer as mo } from "docx";
19
+ import * as Se from "@radix-ui/react-tabs";
20
+ import { defaultNodes as ye, DocxSerializer as lo, defaultMarks as ho } from "prosemirror-docx";
21
+ import { Packer as uo } from "docx";
22
22
  import Ct from "mermaid";
23
23
  import * as oe from "@radix-ui/react-dialog";
24
24
  import ci from "katex";
25
- import { proxy as fo, useSnapshot as go } from "valtio";
25
+ import { proxy as mo, useSnapshot as fo } from "valtio";
26
26
  import * as tt from "@radix-ui/react-popover";
27
- import * as un from "@radix-ui/react-label";
28
- import { Resizable as mn } from "re-resizable";
29
- import * as fn from "@radix-ui/react-separator";
30
- import { HexColorPicker as xo } from "react-colorful";
31
- import { TextAlignCenterIcon as po, TextAlignJustifyIcon as bo, TextAlignLeftIcon as wo, TextAlignRightIcon as _o } from "@radix-ui/react-icons";
32
- import * as Ut from "@radix-ui/react-switch";
33
- import { DragHandlePlugin as vo, dragHandlePluginDefaultKey as yo } from "echo-drag-handle-plugin";
27
+ import * as dn from "@radix-ui/react-label";
28
+ import { Resizable as hn } from "re-resizable";
29
+ import * as un from "@radix-ui/react-separator";
30
+ import { HexColorPicker as go } from "react-colorful";
31
+ import { TextAlignCenterIcon as xo, TextAlignJustifyIcon as po, TextAlignLeftIcon as bo, TextAlignRightIcon as wo } from "@radix-ui/react-icons";
32
+ import * as Ft from "@radix-ui/react-switch";
33
+ import { DragHandlePlugin as _o, dragHandlePluginDefaultKey as vo } from "echo-drag-handle-plugin";
34
34
  import * as K from "@radix-ui/react-dropdown-menu";
35
35
  import * as rt from "@radix-ui/react-tooltip";
36
- import * as gn from "@radix-ui/react-toggle";
37
- let Et;
38
- function Rt() {
39
- return Et === void 0 && (Et = navigator.platform.includes("Mac")), Et;
36
+ import * as mn from "@radix-ui/react-toggle";
37
+ let Ht;
38
+ function Et() {
39
+ return Ht === void 0 && (Ht = navigator.platform.includes("Mac")), Ht;
40
40
  }
41
- function Mt(e) {
42
- return `${e}`.toLowerCase() === "mod" ? Rt() ? "⌘" : "Ctrl" : `${e}`.toLowerCase() === "alt" ? Rt() ? "⌥" : "Alt" : `${e}`.toLowerCase() === "shift" ? Rt() ? "⇧" : "Shift" : e;
41
+ function St(e) {
42
+ return `${e}`.toLowerCase() === "mod" ? Et() ? "⌘" : "Ctrl" : `${e}`.toLowerCase() === "alt" ? Et() ? "⌥" : "Alt" : `${e}`.toLowerCase() === "shift" ? Et() ? "⇧" : "Shift" : e;
43
43
  }
44
- function It(e) {
45
- return e.map(Mt).join(" ");
44
+ function Mt(e) {
45
+ return e.map(St).join(" ");
46
46
  }
47
47
  function P(...e) {
48
- return Ga(ee(e));
48
+ return Ka(ee(e));
49
49
  }
50
50
  const _ = Pe.forwardRef(
51
51
  (e, t) => {
@@ -85,7 +85,7 @@ const _ = Pe.forwardRef(
85
85
  ) }),
86
86
  n && /* @__PURE__ */ r(Ie, { ...s, children: /* @__PURE__ */ u("div", { className: "richtext-flex richtext-flex-col richtext-items-center richtext-text-center richtext-max-w-24", children: [
87
87
  /* @__PURE__ */ r("div", { children: n }),
88
- !!(c != null && c.length) && /* @__PURE__ */ r("span", { children: It(c) })
88
+ !!(c != null && c.length) && /* @__PURE__ */ r("span", { children: Mt(c) })
89
89
  ] }) })
90
90
  ] });
91
91
  }
@@ -110,7 +110,7 @@ const _ = Pe.forwardRef(
110
110
  ) }),
111
111
  /* @__PURE__ */ r(Ie, { children: /* @__PURE__ */ u("div", { className: "richtext-flex richtext-flex-col richtext-items-center richtext-text-center richtext-max-w-24", children: [
112
112
  (t == null ? void 0 : t.tooltip) && /* @__PURE__ */ r("div", { children: t == null ? void 0 : t.tooltip }),
113
- /* @__PURE__ */ r("div", { className: "richtext-flex", children: !!((o = t == null ? void 0 : t.shortcutKeys) != null && o.length) && /* @__PURE__ */ r("span", { children: It(t == null ? void 0 : t.shortcutKeys) }) })
113
+ /* @__PURE__ */ r("div", { className: "richtext-flex", children: !!((o = t == null ? void 0 : t.shortcutKeys) != null && o.length) && /* @__PURE__ */ r("span", { children: Mt(t == null ? void 0 : t.shortcutKeys) }) })
114
114
  ] }) })
115
115
  ] });
116
116
  }
@@ -134,11 +134,11 @@ function at(e, t) {
134
134
  }
135
135
  return a;
136
136
  }
137
- function ko(e) {
137
+ function yo(e) {
138
138
  return e;
139
139
  }
140
140
  function ot(e, t, i, n) {
141
- const a = ko, [o, c] = w(a(i)), s = X(o);
141
+ const a = yo, [o, c] = w(a(i)), s = X(o);
142
142
  return z(() => {
143
143
  const h = () => {
144
144
  const l = { ...i, ...e.getAttributes(t) };
@@ -167,7 +167,7 @@ const ct = j.forwardRef(
167
167
  )
168
168
  );
169
169
  ct.displayName = "Textarea";
170
- const Co = ti(
170
+ const ko = ti(
171
171
  "richtext-inline-flex richtext-items-center richtext-justify-center richtext-whitespace-nowrap richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-2 disabled:richtext-pointer-events-none disabled:richtext-opacity-50",
172
172
  {
173
173
  variants: {
@@ -195,14 +195,14 @@ const Co = ti(
195
195
  ({ className: e, variant: t, size: i, asChild: n = !1, ...a }, o) => /* @__PURE__ */ r(
196
196
  n ? ri : "button",
197
197
  {
198
- className: P(Co({ variant: t, size: i, className: e })),
198
+ className: P(ko({ variant: t, size: i, className: e })),
199
199
  ref: o,
200
200
  ...a
201
201
  }
202
202
  )
203
203
  );
204
204
  U.displayName = "Button";
205
- const Ae = K.Root, Se = K.Trigger, Ti = K.Portal, Li = K.Sub, Vt = j.forwardRef(({ className: e, inset: t, children: i, ...n }, a) => /* @__PURE__ */ u(
205
+ const _e = K.Root, ve = K.Trigger, Ci = K.Portal, Ni = K.Sub, Ut = j.forwardRef(({ className: e, inset: t, children: i, ...n }, a) => /* @__PURE__ */ u(
206
206
  K.SubTrigger,
207
207
  {
208
208
  ref: a,
@@ -214,12 +214,12 @@ const Ae = K.Root, Se = K.Trigger, Ti = K.Portal, Li = K.Sub, Vt = j.forwardRef(
214
214
  ...n,
215
215
  children: [
216
216
  i,
217
- /* @__PURE__ */ r(Un, { className: "richtext-ml-auto richtext-h-4 richtext-w-4" })
217
+ /* @__PURE__ */ r(Fn, { className: "richtext-ml-auto richtext-h-4 richtext-w-4" })
218
218
  ]
219
219
  }
220
220
  ));
221
- Vt.displayName = K.SubTrigger.displayName;
222
- const Wt = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
221
+ Ut.displayName = K.SubTrigger.displayName;
222
+ const Vt = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
223
223
  K.SubContent,
224
224
  {
225
225
  ref: i,
@@ -230,8 +230,8 @@ const Wt = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
230
230
  ...t
231
231
  }
232
232
  ));
233
- Wt.displayName = K.SubContent.displayName;
234
- const we = j.forwardRef(({ className: e, sideOffset: t = 4, ...i }, n) => /* @__PURE__ */ r(K.Portal, { children: /* @__PURE__ */ r(
233
+ Vt.displayName = K.SubContent.displayName;
234
+ const pe = j.forwardRef(({ className: e, sideOffset: t = 4, ...i }, n) => /* @__PURE__ */ r(K.Portal, { children: /* @__PURE__ */ r(
235
235
  K.Content,
236
236
  {
237
237
  ref: n,
@@ -243,8 +243,8 @@ const we = j.forwardRef(({ className: e, sideOffset: t = 4, ...i }, n) => /* @__
243
243
  ...i
244
244
  }
245
245
  ) }));
246
- we.displayName = K.Content.displayName;
247
- const fe = j.forwardRef(({ className: e, inset: t, ...i }, n) => /* @__PURE__ */ r(
246
+ pe.displayName = K.Content.displayName;
247
+ const le = j.forwardRef(({ className: e, inset: t, ...i }, n) => /* @__PURE__ */ r(
248
248
  K.Item,
249
249
  {
250
250
  ref: n,
@@ -256,7 +256,7 @@ const fe = j.forwardRef(({ className: e, inset: t, ...i }, n) => /* @__PURE__ */
256
256
  ...i
257
257
  }
258
258
  ));
259
- fe.displayName = K.Item.displayName;
259
+ le.displayName = K.Item.displayName;
260
260
  const Me = j.forwardRef(({ className: e, children: t, checked: i, ...n }, a) => /* @__PURE__ */ u(
261
261
  K.CheckboxItem,
262
262
  {
@@ -268,13 +268,13 @@ const Me = j.forwardRef(({ className: e, children: t, checked: i, ...n }, a) =>
268
268
  checked: i,
269
269
  ...n,
270
270
  children: [
271
- /* @__PURE__ */ r("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-h-3.5 richtext-w-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ r(K.ItemIndicator, { children: /* @__PURE__ */ r(Gi, { className: "richtext-h-4 richtext-w-4" }) }) }),
271
+ /* @__PURE__ */ r("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-h-3.5 richtext-w-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ r(K.ItemIndicator, { children: /* @__PURE__ */ r(qi, { className: "richtext-h-4 richtext-w-4" }) }) }),
272
272
  t
273
273
  ]
274
274
  }
275
275
  ));
276
276
  Me.displayName = K.CheckboxItem.displayName;
277
- const No = j.forwardRef(({ className: e, children: t, ...i }, n) => /* @__PURE__ */ u(
277
+ const Co = j.forwardRef(({ className: e, children: t, ...i }, n) => /* @__PURE__ */ u(
278
278
  K.RadioItem,
279
279
  {
280
280
  ref: n,
@@ -284,13 +284,13 @@ const No = j.forwardRef(({ className: e, children: t, ...i }, n) => /* @__PURE__
284
284
  ),
285
285
  ...i,
286
286
  children: [
287
- /* @__PURE__ */ r("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-h-3.5 richtext-w-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ r(K.ItemIndicator, { children: /* @__PURE__ */ r(Vn, { className: "richtext-h-2 richtext-w-2 richtext-fill-current" }) }) }),
287
+ /* @__PURE__ */ r("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-h-3.5 richtext-w-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ r(K.ItemIndicator, { children: /* @__PURE__ */ r(Un, { className: "richtext-h-2 richtext-w-2 richtext-fill-current" }) }) }),
288
288
  t
289
289
  ]
290
290
  }
291
291
  ));
292
- No.displayName = K.RadioItem.displayName;
293
- const To = j.forwardRef(({ className: e, inset: t, ...i }, n) => /* @__PURE__ */ r(
292
+ Co.displayName = K.RadioItem.displayName;
293
+ const No = j.forwardRef(({ className: e, inset: t, ...i }, n) => /* @__PURE__ */ r(
294
294
  K.Label,
295
295
  {
296
296
  ref: n,
@@ -302,8 +302,8 @@ const To = j.forwardRef(({ className: e, inset: t, ...i }, n) => /* @__PURE__ */
302
302
  ...i
303
303
  }
304
304
  ));
305
- To.displayName = K.Label.displayName;
306
- const zt = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
305
+ No.displayName = K.Label.displayName;
306
+ const It = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
307
307
  K.Separator,
308
308
  {
309
309
  ref: i,
@@ -311,8 +311,8 @@ const zt = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
311
311
  ...t
312
312
  }
313
313
  ));
314
- zt.displayName = K.Separator.displayName;
315
- function xn({
314
+ It.displayName = K.Separator.displayName;
315
+ function fn({
316
316
  className: e,
317
317
  ...t
318
318
  }) {
@@ -324,7 +324,7 @@ function xn({
324
324
  }
325
325
  );
326
326
  }
327
- xn.displayName = "DropdownMenuShortcut";
327
+ fn.displayName = "DropdownMenuShortcut";
328
328
  const te = j.forwardRef(
329
329
  ({ className: e, type: t, ...i }, n) => /* @__PURE__ */ r(
330
330
  "input",
@@ -340,17 +340,17 @@ const te = j.forwardRef(
340
340
  )
341
341
  );
342
342
  te.displayName = "Input";
343
- const Lo = ti(
343
+ const To = ti(
344
344
  "richtext-text-sm richtext-font-medium richtext-leading-none peer-disabled:richtext-cursor-not-allowed peer-disabled:richtext-opacity-70"
345
- ), le = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
346
- un.Root,
345
+ ), de = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
346
+ dn.Root,
347
347
  {
348
348
  ref: i,
349
- className: P(Lo(), e),
349
+ className: P(To(), e),
350
350
  ...t
351
351
  }
352
352
  ));
353
- le.displayName = un.Root.displayName;
353
+ de.displayName = dn.Root.displayName;
354
354
  const re = tt.Root, ae = tt.Trigger, ie = j.forwardRef(({ className: e, align: t = "center", sideOffset: i = 4, ...n }, a) => /* @__PURE__ */ r(tt.Portal, { children: /* @__PURE__ */ r(
355
355
  tt.Content,
356
356
  {
@@ -365,9 +365,9 @@ const re = tt.Root, ae = tt.Trigger, ie = j.forwardRef(({ className: e, align: t
365
365
  }
366
366
  ) }));
367
367
  ie.displayName = tt.Content.displayName;
368
- const de = j.forwardRef(
368
+ const he = j.forwardRef(
369
369
  ({ className: e, orientation: t = "horizontal", decorative: i = !0, ...n }, a) => /* @__PURE__ */ r(
370
- fn.Root,
370
+ un.Root,
371
371
  {
372
372
  ref: a,
373
373
  decorative: i,
@@ -381,9 +381,9 @@ const de = j.forwardRef(
381
381
  }
382
382
  )
383
383
  );
384
- de.displayName = fn.Root.displayName;
384
+ he.displayName = un.Root.displayName;
385
385
  const li = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
386
- Ut.Root,
386
+ Ft.Root,
387
387
  {
388
388
  className: P(
389
389
  "richtext-peer richtext-inline-flex richtext-h-6 richtext-w-11 richtext-shrink-0 richtext-cursor-pointer richtext-items-center richtext-rounded-full richtext-border-2 richtext-border-transparent richtext-transition-colors focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-2 focus-visible:richtext-ring-offset-background disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50 data-[state=checked]:richtext-bg-primary data-[state=unchecked]:richtext-bg-input",
@@ -392,7 +392,7 @@ const li = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
392
392
  ...t,
393
393
  ref: i,
394
394
  children: /* @__PURE__ */ r(
395
- Ut.Thumb,
395
+ Ft.Thumb,
396
396
  {
397
397
  className: P(
398
398
  "richtext-pointer-events-none richtext-block richtext-h-5 richtext-w-5 richtext-rounded-full richtext-bg-background richtext-shadow-lg richtext-ring-0 richtext-transition-transform data-[state=checked]:richtext-translate-x-5 data-[state=unchecked]:richtext-translate-x-0"
@@ -401,9 +401,9 @@ const li = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
401
401
  )
402
402
  }
403
403
  ));
404
- li.displayName = Ut.Root.displayName;
405
- const di = Le.Root, Ht = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
406
- Le.List,
404
+ li.displayName = Ft.Root.displayName;
405
+ const di = Se.Root, zt = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
406
+ Se.List,
407
407
  {
408
408
  ref: i,
409
409
  className: P(
@@ -413,9 +413,9 @@ const di = Le.Root, Ht = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE_
413
413
  ...t
414
414
  }
415
415
  ));
416
- Ht.displayName = Le.List.displayName;
416
+ zt.displayName = Se.List.displayName;
417
417
  const Ve = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
418
- Le.Trigger,
418
+ Se.Trigger,
419
419
  {
420
420
  ref: i,
421
421
  className: P(
@@ -425,9 +425,9 @@ const Ve = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
425
425
  ...t
426
426
  }
427
427
  ));
428
- Ve.displayName = Le.Trigger.displayName;
428
+ Ve.displayName = Se.Trigger.displayName;
429
429
  const We = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
430
- Le.Content,
430
+ Se.Content,
431
431
  {
432
432
  ref: i,
433
433
  className: P(
@@ -437,8 +437,8 @@ const We = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
437
437
  ...t
438
438
  }
439
439
  ));
440
- We.displayName = Le.Content.displayName;
441
- const Ao = ti(
440
+ We.displayName = Se.Content.displayName;
441
+ const Lo = ti(
442
442
  "richtext-inline-flex richtext-items-center richtext-justify-center richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors hover:richtext-bg-muted hover:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-2 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 data-[state=on]:richtext-bg-accent data-[state=on]:richtext-text-accent-foreground",
443
443
  {
444
444
  variants: {
@@ -458,15 +458,15 @@ const Ao = ti(
458
458
  }
459
459
  }
460
460
  ), st = j.forwardRef(({ className: e, variant: t, size: i, ...n }, a) => /* @__PURE__ */ r(
461
- gn.Root,
461
+ mn.Root,
462
462
  {
463
463
  ref: a,
464
- className: P(Ao({ variant: t, size: i, className: e })),
464
+ className: P(Lo({ variant: t, size: i, className: e })),
465
465
  ...n
466
466
  }
467
467
  ));
468
- st.displayName = gn.Root.displayName;
469
- const So = rt.Provider, Ke = rt.Root, Ge = rt.Trigger, Ie = j.forwardRef(({ className: e, sideOffset: t = 4, ...i }, n) => /* @__PURE__ */ r(
468
+ st.displayName = mn.Root.displayName;
469
+ const Ao = rt.Provider, Ke = rt.Root, Ge = rt.Trigger, Ie = j.forwardRef(({ className: e, sideOffset: t = 4, ...i }, n) => /* @__PURE__ */ r(
470
470
  rt.Content,
471
471
  {
472
472
  ref: n,
@@ -479,7 +479,7 @@ const So = rt.Provider, Ke = rt.Root, Ge = rt.Trigger, Ie = j.forwardRef(({ clas
479
479
  }
480
480
  ));
481
481
  Ie.displayName = rt.Content.displayName;
482
- const pn = G.Root, Mo = G.Value, hi = j.forwardRef(({ className: e, children: t, ...i }, n) => /* @__PURE__ */ u(
482
+ const So = G.Root, Mo = G.Value, gn = j.forwardRef(({ className: e, children: t, ...i }, n) => /* @__PURE__ */ u(
483
483
  G.Trigger,
484
484
  {
485
485
  ref: n,
@@ -490,12 +490,12 @@ const pn = G.Root, Mo = G.Value, hi = j.forwardRef(({ className: e, children: t,
490
490
  ...i,
491
491
  children: [
492
492
  t,
493
- /* @__PURE__ */ r(G.Icon, { asChild: !0, children: /* @__PURE__ */ r(At, { className: "richtext-h-4 richtext-w-4 richtext-opacity-50" }) })
493
+ /* @__PURE__ */ r(G.Icon, { asChild: !0, children: /* @__PURE__ */ r(Lt, { className: "richtext-h-4 richtext-w-4 richtext-opacity-50" }) })
494
494
  ]
495
495
  }
496
496
  ));
497
- hi.displayName = G.Trigger.displayName;
498
- const bn = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
497
+ gn.displayName = G.Trigger.displayName;
498
+ const xn = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
499
499
  G.ScrollUpButton,
500
500
  {
501
501
  ref: i,
@@ -504,11 +504,11 @@ const bn = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
504
504
  e
505
505
  ),
506
506
  ...t,
507
- children: /* @__PURE__ */ r(Zi, { className: "richtext-h-4 richtext-w-4" })
507
+ children: /* @__PURE__ */ r(Ki, { className: "richtext-h-4 richtext-w-4" })
508
508
  }
509
509
  ));
510
- bn.displayName = G.ScrollUpButton.displayName;
511
- const wn = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
510
+ xn.displayName = G.ScrollUpButton.displayName;
511
+ const pn = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
512
512
  G.ScrollDownButton,
513
513
  {
514
514
  ref: i,
@@ -517,11 +517,11 @@ const wn = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
517
517
  e
518
518
  ),
519
519
  ...t,
520
- children: /* @__PURE__ */ r(At, { className: "richtext-h-4 richtext-w-4" })
520
+ children: /* @__PURE__ */ r(Lt, { className: "richtext-h-4 richtext-w-4" })
521
521
  }
522
522
  ));
523
- wn.displayName = G.ScrollDownButton.displayName;
524
- const ui = j.forwardRef(({ className: e, children: t, position: i = "popper", ...n }, a) => /* @__PURE__ */ r(G.Portal, { children: /* @__PURE__ */ u(
523
+ pn.displayName = G.ScrollDownButton.displayName;
524
+ const bn = j.forwardRef(({ className: e, children: t, position: i = "popper", ...n }, a) => /* @__PURE__ */ r(G.Portal, { children: /* @__PURE__ */ u(
525
525
  G.Content,
526
526
  {
527
527
  ref: a,
@@ -533,7 +533,7 @@ const ui = j.forwardRef(({ className: e, children: t, position: i = "popper", ..
533
533
  position: i,
534
534
  ...n,
535
535
  children: [
536
- /* @__PURE__ */ r(bn, {}),
536
+ /* @__PURE__ */ r(xn, {}),
537
537
  /* @__PURE__ */ r(
538
538
  G.Viewport,
539
539
  {
@@ -544,11 +544,11 @@ const ui = j.forwardRef(({ className: e, children: t, position: i = "popper", ..
544
544
  children: t
545
545
  }
546
546
  ),
547
- /* @__PURE__ */ r(wn, {})
547
+ /* @__PURE__ */ r(pn, {})
548
548
  ]
549
549
  }
550
550
  ) }));
551
- ui.displayName = G.Content.displayName;
551
+ bn.displayName = G.Content.displayName;
552
552
  const Io = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
553
553
  G.Label,
554
554
  {
@@ -558,7 +558,7 @@ const Io = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
558
558
  }
559
559
  ));
560
560
  Io.displayName = G.Label.displayName;
561
- const Nt = j.forwardRef(({ className: e, children: t, ...i }, n) => /* @__PURE__ */ u(
561
+ const Wt = j.forwardRef(({ className: e, children: t, ...i }, n) => /* @__PURE__ */ u(
562
562
  G.Item,
563
563
  {
564
564
  ref: n,
@@ -568,12 +568,12 @@ const Nt = j.forwardRef(({ className: e, children: t, ...i }, n) => /* @__PURE__
568
568
  ),
569
569
  ...i,
570
570
  children: [
571
- /* @__PURE__ */ r("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-h-3.5 richtext-w-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ r(G.ItemIndicator, { children: /* @__PURE__ */ r(Gi, { className: "richtext-h-4 richtext-w-4" }) }) }),
571
+ /* @__PURE__ */ r("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-h-3.5 richtext-w-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ r(G.ItemIndicator, { children: /* @__PURE__ */ r(qi, { className: "richtext-h-4 richtext-w-4" }) }) }),
572
572
  /* @__PURE__ */ r(G.ItemText, { children: t })
573
573
  ]
574
574
  }
575
575
  ));
576
- Nt.displayName = G.Item.displayName;
576
+ Wt.displayName = G.Item.displayName;
577
577
  const zo = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
578
578
  G.Separator,
579
579
  {
@@ -606,7 +606,7 @@ function Ho({ editor: e, ...t }) {
606
606
  [o, f]
607
607
  );
608
608
  return /* @__PURE__ */ r(
609
- he,
609
+ ue,
610
610
  {
611
611
  editor: e,
612
612
  pluginKey: "Katex-bubble-menu",
@@ -638,11 +638,11 @@ function Ho({ editor: e, ...t }) {
638
638
  g && /* @__PURE__ */ r("div", { className: "richtext-my-[10px] richtext-p-[10px] richtext-rounded-[6px] !richtext-border-[1px]", children: g }),
639
639
  /* @__PURE__ */ u("div", { className: "richtext-flex richtext-items-center richtext-justify-between richtext-gap-[6px]", children: [
640
640
  /* @__PURE__ */ r(U, { onClick: m, className: "richtext-flex-1", children: "Submit" }),
641
- /* @__PURE__ */ r("a", { href: "https://katex.org/docs/supported", target: "_blank", rel: "noreferrer noopener", children: /* @__PURE__ */ r(Ji, { size: 16 }) })
641
+ /* @__PURE__ */ r("a", { href: "https://katex.org/docs/supported", target: "_blank", rel: "noreferrer noopener", children: /* @__PURE__ */ r(Gi, { size: 16 }) })
642
642
  ] })
643
643
  ] }) : /* @__PURE__ */ u("div", { className: "richtext-flex richtext-items-center richtext-justify-center richtext-gap-[6px]", children: [
644
- /* @__PURE__ */ r(_, { tooltip: "Edit", action: () => h(!s), children: /* @__PURE__ */ r(Xi, { size: 16 }) }),
645
- /* @__PURE__ */ r(_, { tooltip: "Delete", action: d, children: /* @__PURE__ */ r(Yi, { size: 16 }) })
644
+ /* @__PURE__ */ r(_, { tooltip: "Edit", action: () => h(!s), children: /* @__PURE__ */ r(Zi, { size: 16 }) }),
645
+ /* @__PURE__ */ r(_, { tooltip: "Delete", action: d, children: /* @__PURE__ */ r(Ji, { size: 16 }) })
646
646
  ] }) })
647
647
  }
648
648
  );
@@ -694,7 +694,7 @@ function Eo(e) {
694
694
  }
695
695
  };
696
696
  }
697
- const Ro = { padding: "0 12px 12px" }, _n = ({ width: e, maxWidth: t, height: i, onOk: n, children: a }) => {
697
+ const Ro = { padding: "0 12px 12px" }, wn = ({ width: e, maxWidth: t, height: i, onOk: n, children: a }) => {
698
698
  const { t: o } = F(), [c, s] = w({
699
699
  width: "",
700
700
  height: "",
@@ -713,7 +713,7 @@ const Ro = { padding: "0 12px 12px" }, _n = ({ width: e, maxWidth: t, height: i,
713
713
  return /* @__PURE__ */ u(re, { modal: !0, children: [
714
714
  /* @__PURE__ */ r(ae, { asChild: !0, children: a }),
715
715
  /* @__PURE__ */ r(ie, { children: /* @__PURE__ */ r("div", { style: Ro, children: /* @__PURE__ */ u("form", { className: "richtext-flex richtext-flex-col richtext-gap-2", onSubmit: h, children: [
716
- /* @__PURE__ */ r(le, { className: "mb-[6px]", children: "Width" }),
716
+ /* @__PURE__ */ r(de, { className: "mb-[6px]", children: "Width" }),
717
717
  /* @__PURE__ */ r("div", { className: "richtext-flex richtext-w-full richtext-max-w-sm richtext-items-center richtext-gap-1.5", children: /* @__PURE__ */ r("div", { className: "richtext-relative richtext-items-center richtext-w-full richtext-max-w-sm", children: /* @__PURE__ */ r(
718
718
  te,
719
719
  {
@@ -723,7 +723,7 @@ const Ro = { padding: "0 12px 12px" }, _n = ({ width: e, maxWidth: t, height: i,
723
723
  onChange: (l) => s({ ...c, width: l.target.value })
724
724
  }
725
725
  ) }) }),
726
- /* @__PURE__ */ r(le, { className: "mb-[6px]", children: "Max Width" }),
726
+ /* @__PURE__ */ r(de, { className: "mb-[6px]", children: "Max Width" }),
727
727
  /* @__PURE__ */ r("div", { className: "richtext-flex richtext-w-full richtext-max-w-sm richtext-items-center richtext-gap-1.5", children: /* @__PURE__ */ r("div", { className: "richtext-relative richtext-items-center richtext-w-full richtext-max-w-sm", children: /* @__PURE__ */ r(
728
728
  te,
729
729
  {
@@ -733,7 +733,7 @@ const Ro = { padding: "0 12px 12px" }, _n = ({ width: e, maxWidth: t, height: i,
733
733
  onChange: (l) => s({ ...c, maxWidth: l.target.value })
734
734
  }
735
735
  ) }) }),
736
- /* @__PURE__ */ r(le, { className: "mb-[6px]", children: "Height" }),
736
+ /* @__PURE__ */ r(de, { className: "mb-[6px]", children: "Height" }),
737
737
  /* @__PURE__ */ r("div", { className: "richtext-flex richtext-w-full richtext-max-w-sm richtext-items-center richtext-gap-1.5", children: /* @__PURE__ */ r("div", { className: "richtext-relative richtext-items-center richtext-w-full richtext-max-w-sm", children: /* @__PURE__ */ r(
738
738
  te,
739
739
  {
@@ -753,7 +753,7 @@ const Ro = { padding: "0 12px 12px" }, _n = ({ width: e, maxWidth: t, height: i,
753
753
  icon: $o,
754
754
  handlerWrap: Bo
755
755
  };
756
- function vn(e, t, i) {
756
+ function _n(e, t, i) {
757
757
  return e < t ? t : e > i ? i : e;
758
758
  }
759
759
  const jo = (e) => typeof e == "number", Fo = (e) => typeof e == "string", Uo = (e) => typeof e == "function";
@@ -763,7 +763,7 @@ function Vo(e, t = "px") {
763
763
  const i = jo(e) ? String(e) : e, n = Number.parseFloat(i), a = i.match(/[a-z%]+$/i), o = a ? a[0] : t;
764
764
  return Number.isNaN(n) ? e : n + o;
765
765
  }
766
- function yn(e, t) {
766
+ function vn(e, t) {
767
767
  if (!e)
768
768
  return !1;
769
769
  const { extensions: i = [] } = (e == null ? void 0 : e.extensionManager) ?? {};
@@ -772,7 +772,7 @@ function yn(e, t) {
772
772
  function qt(e) {
773
773
  return e.map((t) => Fo(t) ? { value: t, name: t } : t);
774
774
  }
775
- const Wo = 10, qo = 200, Ai = 15, Si = { width: "100%", height: "100%", maxWidth: "100%" };
775
+ const Wo = 10, qo = 200, Ti = 15, Li = { width: "100%", height: "100%", maxWidth: "100%" };
776
776
  function Ko({ editor: e, node: t, updateAttributes: i }) {
777
777
  const n = X(null), a = e.isActive(Ee.name), { data: o, width: c, height: s } = t.attrs, [h, l] = w(null), [d, m] = w(!0), [f, g] = w(null), [x, b] = w(!1), [k, L] = w(100), p = M(
778
778
  (T) => {
@@ -781,7 +781,7 @@ function Ko({ editor: e, node: t, updateAttributes: i }) {
781
781
  [b]
782
782
  ), v = M((T) => () => {
783
783
  L(
784
- (I) => vn(T === "minus" ? I - Ai : I + Ai, Wo, qo)
784
+ (I) => _n(T === "minus" ? I - Ti : I + Ti, Wo, qo)
785
785
  );
786
786
  }, []);
787
787
  z(() => {
@@ -805,8 +805,8 @@ function Ko({ editor: e, node: t, updateAttributes: i }) {
805
805
  const C = (T) => {
806
806
  i({ width: T.width, height: T.height });
807
807
  };
808
- return /* @__PURE__ */ r(ne, { className: ee(Xe.wrap, a && Xe.isActive), children: /* @__PURE__ */ r(Za, { onChange: p, children: /* @__PURE__ */ r(
809
- mn,
808
+ return /* @__PURE__ */ r(ne, { className: ee(Xe.wrap, a && Xe.isActive), children: /* @__PURE__ */ r(Ga, { onChange: p, children: /* @__PURE__ */ r(
809
+ hn,
810
810
  {
811
811
  size: { width: Number.parseInt(c), height: Number.parseInt(s) },
812
812
  onResizeStop: (T, I, $, y) => {
@@ -819,9 +819,9 @@ function Ko({ editor: e, node: t, updateAttributes: i }) {
819
819
  "div",
820
820
  {
821
821
  className: ee(Xe.renderWrap, "render-wrapper"),
822
- style: { ...Si, overflow: "hidden" },
822
+ style: { ...Li, overflow: "hidden" },
823
823
  children: [
824
- f && /* @__PURE__ */ r("div", { style: Si, children: /* @__PURE__ */ r("p", { children: f.message || f }) }),
824
+ f && /* @__PURE__ */ r("div", { style: Li, children: /* @__PURE__ */ r("p", { children: f.message || f }) }),
825
825
  d && /* @__PURE__ */ r("p", { children: "Loading..." }),
826
826
  !d && !f && x && /* @__PURE__ */ r(
827
827
  "div",
@@ -916,7 +916,7 @@ function Xo(e) {
916
916
  return typeof a == "object" ? o = Jo(a) : o = a, i[n] = o, i;
917
917
  }, /* @__PURE__ */ Object.create(null));
918
918
  }
919
- const lt = oe.Root, dt = oe.Trigger, Yo = oe.Portal, kn = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
919
+ const lt = oe.Root, dt = oe.Trigger, Yo = oe.Portal, yn = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
920
920
  oe.Overlay,
921
921
  {
922
922
  ref: i,
@@ -927,9 +927,9 @@ const lt = oe.Root, dt = oe.Trigger, Yo = oe.Portal, kn = j.forwardRef(({ classN
927
927
  ...t
928
928
  }
929
929
  ));
930
- kn.displayName = oe.Overlay.displayName;
930
+ yn.displayName = oe.Overlay.displayName;
931
931
  const Ze = j.forwardRef(({ className: e, children: t, ...i }, n) => /* @__PURE__ */ u(Yo, { children: [
932
- /* @__PURE__ */ r(kn, {}),
932
+ /* @__PURE__ */ r(yn, {}),
933
933
  /* @__PURE__ */ u(
934
934
  oe.Content,
935
935
  {
@@ -942,7 +942,7 @@ const Ze = j.forwardRef(({ className: e, children: t, ...i }, n) => /* @__PURE__
942
942
  children: [
943
943
  t,
944
944
  /* @__PURE__ */ u(oe.Close, { className: "richtext-absolute richtext-right-4 richtext-top-4 richtext-rounded-sm richtext-opacity-70 richtext-ring-offset-background richtext-transition-opacity hover:richtext-opacity-100 focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-2 disabled:richtext-pointer-events-none data-[state=open]:richtext-bg-accent data-[state=open]:richtext-text-muted-foreground", children: [
945
- /* @__PURE__ */ r(Wn, { className: "richtext-h-4 richtext-w-4" }),
945
+ /* @__PURE__ */ r(Vn, { className: "richtext-h-4 richtext-w-4" }),
946
946
  /* @__PURE__ */ r("span", { className: "richtext-sr-only", children: "Close" })
947
947
  ] })
948
948
  ]
@@ -950,7 +950,7 @@ const Ze = j.forwardRef(({ className: e, children: t, ...i }, n) => /* @__PURE__
950
950
  )
951
951
  ] }));
952
952
  Ze.displayName = oe.Content.displayName;
953
- function Cn({
953
+ function kn({
954
954
  className: e,
955
955
  ...t
956
956
  }) {
@@ -965,7 +965,7 @@ function Cn({
965
965
  }
966
966
  );
967
967
  }
968
- Cn.displayName = "DialogHeader";
968
+ kn.displayName = "DialogHeader";
969
969
  function Je({
970
970
  className: e,
971
971
  ...t
@@ -1003,23 +1003,23 @@ const Qo = j.forwardRef(({ className: e, ...t }, i) => /* @__PURE__ */ r(
1003
1003
  }
1004
1004
  ));
1005
1005
  Qo.displayName = oe.Description.displayName;
1006
- let Ot;
1007
- function mi() {
1006
+ let Rt;
1007
+ function hi() {
1008
1008
  try {
1009
- return Ot || (Ot = Eo()), Ot;
1009
+ return Rt || (Rt = Eo()), Rt;
1010
1010
  } catch {
1011
1011
  throw new Error("Error EventEmitter");
1012
1012
  }
1013
1013
  }
1014
1014
  const Kt = "OPEN_EXCALIDRAW_SETTING_MODAL";
1015
1015
  function ec(e, t) {
1016
- mi().on(e, t);
1016
+ hi().on(e, t);
1017
1017
  }
1018
1018
  function tc(e, t) {
1019
- mi().off(e, t);
1019
+ hi().off(e, t);
1020
1020
  }
1021
1021
  function ic(e) {
1022
- mi().emit(Kt, e);
1022
+ hi().emit(Kt, e);
1023
1023
  }
1024
1024
  const nc = ({ editor: e }) => {
1025
1025
  const [t, i] = w(null), [n, a] = w({}), [o, c] = w({ elements: [], appState: { isLoading: !1 }, files: null }), [s, h] = w(!1), [l, d] = w(!0), [m, f] = w(null), g = M(
@@ -1086,7 +1086,7 @@ const nc = ({ editor: e }) => {
1086
1086
  ]
1087
1087
  }
1088
1088
  );
1089
- }, Mi = { elements: [] }, Ee = ce.create({
1089
+ }, Ai = { elements: [] }, Ee = ce.create({
1090
1090
  name: "excalidraw",
1091
1091
  group: "block",
1092
1092
  selectable: !0,
@@ -1110,7 +1110,7 @@ const nc = ({ editor: e }) => {
1110
1110
  parseHTML: Y("height")
1111
1111
  },
1112
1112
  data: {
1113
- default: Mi,
1113
+ default: Ai,
1114
1114
  parseHTML: Y("data", !0)
1115
1115
  }
1116
1116
  };
@@ -1144,7 +1144,7 @@ const nc = ({ editor: e }) => {
1144
1144
  return {
1145
1145
  setExcalidraw: (e) => ({ tr: t, commands: i, chain: n }) => {
1146
1146
  var a, o, c;
1147
- return e = e || {}, e.data = e.data || Mi, ((c = (o = (a = t.selection) == null ? void 0 : a.node) == null ? void 0 : o.type) == null ? void 0 : c.name) == this.name ? i.updateAttributes(this.name, e) : n().insertContent({
1147
+ return e = e || {}, e.data = e.data || Ai, ((c = (o = (a = t.selection) == null ? void 0 : a.node) == null ? void 0 : o.type) == null ? void 0 : c.name) == this.name ? i.updateAttributes(this.name, e) : n().insertContent({
1148
1148
  type: this.name,
1149
1149
  attrs: e
1150
1150
  }).run();
@@ -1152,7 +1152,7 @@ const nc = ({ editor: e }) => {
1152
1152
  };
1153
1153
  },
1154
1154
  addNodeView() {
1155
- return ue(Go);
1155
+ return me(Go);
1156
1156
  },
1157
1157
  addInputRules() {
1158
1158
  return [
@@ -1163,16 +1163,16 @@ const nc = ({ editor: e }) => {
1163
1163
  })
1164
1164
  ];
1165
1165
  }
1166
- }), ve = /* @__PURE__ */ new Map();
1166
+ }), ke = /* @__PURE__ */ new Map();
1167
1167
  function rc(e) {
1168
1168
  const t = e.options.element;
1169
- ve.has("width") || ve.set("width", t.clientWidth), ve.has("width") && ve.get("width") <= 0 && ve.set("width", t.clientWidth);
1169
+ ke.has("width") || ke.set("width", t.clientWidth), ke.has("width") && ke.get("width") <= 0 && ke.set("width", t.clientWidth);
1170
1170
  const i = { attributes: !0, childList: !0, subtree: !0 }, n = function() {
1171
- ve.set("width", t.clientWidth);
1171
+ ke.set("width", t.clientWidth);
1172
1172
  }, a = new MutationObserver(n);
1173
1173
  return a.observe(t, i), e.on("destroy", () => {
1174
1174
  a.disconnect();
1175
- }), { width: ve.get("width") };
1175
+ }), { width: ke.get("width") };
1176
1176
  }
1177
1177
  function ac({ editor: e }) {
1178
1178
  const { t } = F(), { width: i } = rc(e), n = ot(e, Ee.name, {
@@ -1191,7 +1191,7 @@ function ac({ editor: e }) {
1191
1191
  return z(() => {
1192
1192
  a && (l(), e.chain().updateAttributes(Ee.name, { defaultShowPicker: !1 }).focus().run());
1193
1193
  }, [o, a, e, l]), /* @__PURE__ */ r(
1194
- he,
1194
+ ue,
1195
1195
  {
1196
1196
  className: "bubble-menu",
1197
1197
  editor: e,
@@ -1217,7 +1217,7 @@ function ac({ editor: e }) {
1217
1217
  tooltip: t("editor.edit")
1218
1218
  }
1219
1219
  ),
1220
- /* @__PURE__ */ r(_n, { width: c, maxWidth: i, height: s, onOk: h, children: /* @__PURE__ */ r(
1220
+ /* @__PURE__ */ r(wn, { width: c, maxWidth: i, height: s, onOk: h, children: /* @__PURE__ */ r(
1221
1221
  _,
1222
1222
  {
1223
1223
  icon: "Settings",
@@ -1236,7 +1236,7 @@ function ac({ editor: e }) {
1236
1236
  }
1237
1237
  );
1238
1238
  }
1239
- const oc = "_wrap_5y04w_1", cc = "_handlerWrap_5y04w_11", sc = "_innerWrap_5y04w_15", lc = "_emptyWrap_5y04w_23", Ii = {
1239
+ const oc = "_wrap_5y04w_1", cc = "_handlerWrap_5y04w_11", sc = "_innerWrap_5y04w_15", lc = "_emptyWrap_5y04w_23", Si = {
1240
1240
  wrap: oc,
1241
1241
  handlerWrap: cc,
1242
1242
  innerWrap: sc,
@@ -1271,7 +1271,7 @@ function dc({ editor: e, node: t, updateAttributes: i }) {
1271
1271
  /* @__PURE__ */ r(U, { className: "richtext-w-[60px]", onClick: l, children: "OK" })
1272
1272
  ] }),
1273
1273
  a && /* @__PURE__ */ r(
1274
- mn,
1274
+ hn,
1275
1275
  {
1276
1276
  size: { width: Number.parseInt(o), height: Number.parseInt(c) },
1277
1277
  onResizeStop: (m, f, g, x) => {
@@ -1280,7 +1280,7 @@ function dc({ editor: e, node: t, updateAttributes: i }) {
1280
1280
  height: Number.parseInt(c) + x.height
1281
1281
  });
1282
1282
  },
1283
- children: /* @__PURE__ */ r("div", { className: ee(Ii.wrap, "render-wrapper"), children: /* @__PURE__ */ r("div", { className: Ii.innerWrap, style: { pointerEvents: n ? "none" : "auto" }, children: /* @__PURE__ */ r(
1283
+ children: /* @__PURE__ */ r("div", { className: ee(Si.wrap, "render-wrapper"), children: /* @__PURE__ */ r("div", { className: Si.innerWrap, style: { pointerEvents: n ? "none" : "auto" }, children: /* @__PURE__ */ r(
1284
1284
  "iframe",
1285
1285
  {
1286
1286
  src: a,
@@ -1382,7 +1382,7 @@ const Re = ce.create({
1382
1382
  ];
1383
1383
  },
1384
1384
  addNodeView() {
1385
- return ue(dc);
1385
+ return me(dc);
1386
1386
  }
1387
1387
  });
1388
1388
  function hc({ editor: e }) {
@@ -1413,7 +1413,7 @@ function hc({ editor: e }) {
1413
1413
  ), x = M(() => e.isActive(Re.name) && !a, [e, a]), b = M(() => at(Re.name, e), [e]);
1414
1414
  return /* @__PURE__ */ u(q, { children: [
1415
1415
  /* @__PURE__ */ r(
1416
- he,
1416
+ ue,
1417
1417
  {
1418
1418
  className: "bubble-menu",
1419
1419
  editor: e,
@@ -1447,7 +1447,7 @@ function hc({ editor: e }) {
1447
1447
  tooltip: "Open Edit Link"
1448
1448
  }
1449
1449
  ),
1450
- /* @__PURE__ */ r(_n, { width: i, height: n, onOk: g, children: /* @__PURE__ */ r(
1450
+ /* @__PURE__ */ r(wn, { width: i, height: n, onOk: g, children: /* @__PURE__ */ r(
1451
1451
  _,
1452
1452
  {
1453
1453
  icon: "Settings",
@@ -1473,7 +1473,7 @@ function hc({ editor: e }) {
1473
1473
  children: [
1474
1474
  /* @__PURE__ */ r(dt, {}),
1475
1475
  /* @__PURE__ */ u(Ze, { children: [
1476
- /* @__PURE__ */ r(Cn, { children: /* @__PURE__ */ r(ht, { children: "Edit Link Iframe" }) }),
1476
+ /* @__PURE__ */ r(kn, { children: /* @__PURE__ */ r(ht, { children: "Edit Link Iframe" }) }),
1477
1477
  /* @__PURE__ */ r(
1478
1478
  te,
1479
1479
  {
@@ -1494,7 +1494,7 @@ function hc({ editor: e }) {
1494
1494
  )
1495
1495
  ] });
1496
1496
  }
1497
- function Nn(e = 8) {
1497
+ function Cn(e = 8) {
1498
1498
  return Math.random().toString(36).substring(2, e + 2);
1499
1499
  }
1500
1500
  function uc(e) {
@@ -1524,7 +1524,7 @@ function xc(e) {
1524
1524
  ), i.readAsDataURL(e);
1525
1525
  });
1526
1526
  }
1527
- function fi(e, t) {
1527
+ function ui(e, t) {
1528
1528
  const i = e.split(","), n = i[0].match(/:(.*?);/)[1], a = atob(i[i.length - 1]);
1529
1529
  let o = a.length;
1530
1530
  const c = new Uint8Array(o);
@@ -1532,9 +1532,9 @@ function fi(e, t) {
1532
1532
  c[o] = a.charCodeAt(o);
1533
1533
  return new File([c], t, { type: n });
1534
1534
  }
1535
- const zi = `graph TB
1535
+ const Mi = `graph TB
1536
1536
  a-->b`, pc = ({ editor: e, attrs: t, extension: i }) => {
1537
- const { alt: n, align: a } = t, [o, c] = w(decodeURIComponent(n ?? zi)), [s, h] = w(""), [l, d] = w(!1), m = X(null), f = i == null ? void 0 : i.options.upload, g = async (k) => {
1537
+ const { alt: n, align: a } = t, [o, c] = w(decodeURIComponent(n ?? Mi)), [s, h] = w(""), [l, d] = w(!1), m = X(null), f = i == null ? void 0 : i.options.upload, g = async (k) => {
1538
1538
  try {
1539
1539
  const { svg: L } = await Ct.render("mermaid-svg", k);
1540
1540
  h(L);
@@ -1580,7 +1580,7 @@ a-->b`, pc = ({ editor: e, attrs: t, extension: i }) => {
1580
1580
  autoFocus: !0,
1581
1581
  required: !0,
1582
1582
  rows: 10,
1583
- defaultValue: zi,
1583
+ defaultValue: Mi,
1584
1584
  placeholder: "Text"
1585
1585
  }
1586
1586
  ),
@@ -1601,10 +1601,10 @@ a-->b`, pc = ({ editor: e, attrs: t, extension: i }) => {
1601
1601
  onClick: async () => {
1602
1602
  if (o !== "") {
1603
1603
  if (o) {
1604
- const k = m.current.querySelector("svg"), { width: L, height: p } = k.getBoundingClientRect(), v = `mermaid-${Nn()}.svg`;
1605
- let C = an(k.outerHTML);
1604
+ const k = m.current.querySelector("svg"), { width: L, height: p } = k.getBoundingClientRect(), v = `mermaid-${Cn()}.svg`;
1605
+ let C = nn(k.outerHTML);
1606
1606
  if (f) {
1607
- const T = fi(C, v);
1607
+ const T = ui(C, v);
1608
1608
  C = await f(T);
1609
1609
  }
1610
1610
  e == null || e.chain().focus().setMermaid(
@@ -1650,7 +1650,7 @@ const wc = {
1650
1650
  function _c({ item: e, disabled: t, editor: i }) {
1651
1651
  var a;
1652
1652
  const n = e.component;
1653
- return n ? /* @__PURE__ */ r(nt, { children: e.type === "divider" ? /* @__PURE__ */ r(de, { orientation: "vertical", className: "!richtext-mx-1 !richtext-my-2 !richtext-h-[16px]" }) : /* @__PURE__ */ r(
1653
+ return n ? /* @__PURE__ */ r(nt, { children: e.type === "divider" ? /* @__PURE__ */ r(he, { orientation: "vertical", className: "!richtext-mx-1 !richtext-my-2 !richtext-h-[16px]" }) : /* @__PURE__ */ r(
1654
1654
  n,
1655
1655
  {
1656
1656
  ...e.componentProps,
@@ -1663,7 +1663,7 @@ function vc(e) {
1663
1663
  return e.type.name === "mermaid";
1664
1664
  }
1665
1665
  function yc(e) {
1666
- const { lang: t } = F(), i = ot(e.editor, Ki.name), n = bc(e.editor, Ki.name), a = ({ editor: c }) => {
1666
+ const { lang: t } = F(), i = ot(e.editor, Wi.name), n = bc(e.editor, Wi.name), a = ({ editor: c }) => {
1667
1667
  const { selection: s } = c.view.state, { $from: h, to: l } = s;
1668
1668
  let d = !1;
1669
1669
  return c.view.state.doc.nodesBetween(h.pos, l, (m) => {
@@ -1672,7 +1672,7 @@ function yc(e) {
1672
1672
  }), d;
1673
1673
  }, o = O(() => e.disabled ? [] : ls(e.editor), [e.disabled, e.editor, t]);
1674
1674
  return /* @__PURE__ */ r(q, { children: /* @__PURE__ */ r(
1675
- he,
1675
+ ue,
1676
1676
  {
1677
1677
  shouldShow: a,
1678
1678
  editor: e == null ? void 0 : e.editor,
@@ -1705,7 +1705,7 @@ function kc({ editor: e, disabled: t, bubbleMenu: i }) {
1705
1705
  n.includes("table") && !((c = i == null ? void 0 : i.tableConfig) != null && c.hidden) ? /* @__PURE__ */ r(ws, { editor: e }, "table") : null,
1706
1706
  n.includes("link") && !((s = i == null ? void 0 : i.linkConfig) != null && s.hidden) ? /* @__PURE__ */ r(vs, { editor: e, disabled: t }, "link") : null,
1707
1707
  n.includes("image") && !((h = i == null ? void 0 : i.imageConfig) != null && h.hidden) ? /* @__PURE__ */ r(Ns, { editor: e, disabled: t }, "image") : null,
1708
- n.includes(Bn.name) && !((l = i == null ? void 0 : i.imageGifConfig) != null && l.hidden) ? /* @__PURE__ */ r(Ts, { editor: e, disabled: t }, "imageGif") : null,
1708
+ n.includes($n.name) && !((l = i == null ? void 0 : i.imageGifConfig) != null && l.hidden) ? /* @__PURE__ */ r(Ts, { editor: e, disabled: t }, "imageGif") : null,
1709
1709
  n.includes("video") && !((d = i == null ? void 0 : i.videoConfig) != null && d.hidden) ? /* @__PURE__ */ r(Ls, { editor: e, disabled: t }, "video") : null,
1710
1710
  n.includes("katex") && !((m = i == null ? void 0 : i.katexConfig) != null && m.hidden) ? /* @__PURE__ */ r(Ho, { editor: e, disabled: t }, "katex") : null,
1711
1711
  n.includes("excalidraw") && !((f = i == null ? void 0 : i.excalidrawConfig) != null && f.hidden) ? /* @__PURE__ */ r(ac, { editor: e, disabled: t }, "excalidraw") : null,
@@ -1717,17 +1717,17 @@ function kc({ editor: e, disabled: t, bubbleMenu: i }) {
1717
1717
  };
1718
1718
  return i != null && i.render ? i.render({ editor: e, disabled: t || !1, bubbleMenu: i }, a()) : a().filter(Boolean);
1719
1719
  }
1720
- function Hi() {
1720
+ function Ii() {
1721
1721
  return /* @__PURE__ */ r("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ r("path", { fill: "currentColor", d: "M18 14c0-4-6-10.8-6-10.8s-1.33 1.51-2.73 3.52l8.59 8.59c.09-.42.14-.86.14-1.31m-.88 3.12L12.5 12.5L5.27 5.27L4 6.55l3.32 3.32C6.55 11.32 6 12.79 6 14c0 3.31 2.69 6 6 6c1.52 0 2.9-.57 3.96-1.5l2.63 2.63l1.27-1.27z" }) });
1722
1722
  }
1723
- function Tn(e) {
1723
+ function Nn(e) {
1724
1724
  const { t } = F(), {
1725
1725
  highlight: i = !1,
1726
1726
  disabled: n = !1,
1727
1727
  selectedColor: a,
1728
1728
  setSelectedColor: o,
1729
1729
  onChange: c,
1730
- colors: s = to
1730
+ colors: s = eo
1731
1731
  } = e, h = O(() => {
1732
1732
  const g = s, x = [];
1733
1733
  for (let b = 0; b < g.length; b += 10)
@@ -1753,7 +1753,7 @@ function Tn(e) {
1753
1753
  className: "richtext-flex richtext-items-center richtext-p-1 richtext-cursor-pointer rd-1 richtext-gap-[4px] hover:richtext-bg-accent",
1754
1754
  onClick: () => f(void 0),
1755
1755
  children: [
1756
- /* @__PURE__ */ r(Hi, {}),
1756
+ /* @__PURE__ */ r(Ii, {}),
1757
1757
  /* @__PURE__ */ r("span", { className: "richtext-ml-1 richtext-text-sm", children: t("editor.nofill") })
1758
1758
  ]
1759
1759
  }
@@ -1765,7 +1765,7 @@ function Tn(e) {
1765
1765
  f(void 0);
1766
1766
  },
1767
1767
  children: [
1768
- /* @__PURE__ */ r(Hi, {}),
1768
+ /* @__PURE__ */ r(Ii, {}),
1769
1769
  /* @__PURE__ */ r("span", { className: "richtext-ml-1 richtext-text-sm", children: t("editor.default") })
1770
1770
  ]
1771
1771
  }
@@ -1863,7 +1863,7 @@ function Cc({ setColor: e }) {
1863
1863
  ) }),
1864
1864
  /* @__PURE__ */ u(ie, { children: [
1865
1865
  /* @__PURE__ */ u("div", { className: "richtext-flex richtext-flex-col richtext-items-center richtext-justify-center", children: [
1866
- /* @__PURE__ */ r(xo, { color: t, onChange: i }),
1866
+ /* @__PURE__ */ r(go, { color: t, onChange: i }),
1867
1867
  /* @__PURE__ */ r(
1868
1868
  te,
1869
1869
  {
@@ -1876,7 +1876,7 @@ function Cc({ setColor: e }) {
1876
1876
  }
1877
1877
  )
1878
1878
  ] }),
1879
- /* @__PURE__ */ r(de, { className: "richtext-my-[10px]" }),
1879
+ /* @__PURE__ */ r(he, { className: "richtext-my-[10px]" }),
1880
1880
  /* @__PURE__ */ r(
1881
1881
  U,
1882
1882
  {
@@ -1884,7 +1884,7 @@ function Cc({ setColor: e }) {
1884
1884
  c.preventDefault(), e(t), a(!1);
1885
1885
  },
1886
1886
  className: "richtext-w-full",
1887
- children: /* @__PURE__ */ r(Qi, { size: 16 })
1887
+ children: /* @__PURE__ */ r(Xi, { size: 16 })
1888
1888
  }
1889
1889
  )
1890
1890
  ] })
@@ -2024,17 +2024,17 @@ video {
2024
2024
  height: auto
2025
2025
  }
2026
2026
  }
2027
- `, Ln = fo({
2027
+ `, Tn = mo({
2028
2028
  theme: "light"
2029
2029
  });
2030
2030
  function Tc() {
2031
- return go(Ln).theme;
2031
+ return fo(Tn).theme;
2032
2032
  }
2033
2033
  const Lc = {
2034
2034
  setTheme: (e) => {
2035
- Ln.theme = e;
2035
+ Tn.theme = e;
2036
2036
  }
2037
- }, Ei = "data-rc-order", Ri = "data-rc-priority", Ac = "rc-util-key", Gt = /* @__PURE__ */ new Map();
2037
+ }, zi = "data-rc-order", Hi = "data-rc-priority", Ac = "rc-util-key", Gt = /* @__PURE__ */ new Map();
2038
2038
  function Sc(e, t) {
2039
2039
  if (!e)
2040
2040
  return !1;
@@ -2048,30 +2048,30 @@ function Sc(e, t) {
2048
2048
  }
2049
2049
  return !1;
2050
2050
  }
2051
- function An({ mark: e } = {}) {
2051
+ function Ln({ mark: e } = {}) {
2052
2052
  return e ? e.startsWith("data-") ? e : `data-${e}` : Ac;
2053
2053
  }
2054
- function gi(e) {
2054
+ function mi(e) {
2055
2055
  return e.attachTo ? e.attachTo : document.querySelector("head") || document.body;
2056
2056
  }
2057
2057
  function Mc(e) {
2058
2058
  return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
2059
2059
  }
2060
- function Sn(e) {
2060
+ function An(e) {
2061
2061
  return [...(Gt.get(e) || e).children].filter(
2062
2062
  (t) => t.tagName === "STYLE"
2063
2063
  );
2064
2064
  }
2065
- function Mn(e, t = {}) {
2065
+ function Sn(e, t = {}) {
2066
2066
  const { csp: i, prepend: n, priority: a = 0 } = t, o = Mc(n), c = o === "prependQueue", s = document.createElement("style");
2067
- s.setAttribute(Ei, o), c && a && s.setAttribute(Ri, `${a}`), i != null && i.nonce && (s.nonce = i == null ? void 0 : i.nonce), s.innerHTML = e;
2068
- const h = gi(t), { firstChild: l } = h;
2067
+ s.setAttribute(zi, o), c && a && s.setAttribute(Hi, `${a}`), i != null && i.nonce && (s.nonce = i == null ? void 0 : i.nonce), s.innerHTML = e;
2068
+ const h = mi(t), { firstChild: l } = h;
2069
2069
  if (n) {
2070
2070
  if (c) {
2071
- const d = Sn(h).filter((m) => {
2072
- if (!["prepend", "prependQueue"].includes(m.getAttribute(Ei)))
2071
+ const d = An(h).filter((m) => {
2072
+ if (!["prepend", "prependQueue"].includes(m.getAttribute(zi)))
2073
2073
  return !1;
2074
- const f = Number(m.getAttribute(Ri) || 0);
2074
+ const f = Number(m.getAttribute(Hi) || 0);
2075
2075
  return a >= f;
2076
2076
  });
2077
2077
  if (d.length > 0)
@@ -2082,30 +2082,30 @@ function Mn(e, t = {}) {
2082
2082
  h.append(s);
2083
2083
  return s;
2084
2084
  }
2085
- function In(e, t = {}) {
2086
- const i = gi(t);
2087
- return Sn(i).find((n) => n.getAttribute(An(t)) === e);
2085
+ function Mn(e, t = {}) {
2086
+ const i = mi(t);
2087
+ return An(i).find((n) => n.getAttribute(Ln(t)) === e);
2088
2088
  }
2089
2089
  function Ic(e, t = {}) {
2090
- const i = In(e, t);
2090
+ const i = Mn(e, t);
2091
2091
  i && i.remove();
2092
2092
  }
2093
2093
  function zc(e, t) {
2094
2094
  const i = Gt.get(e);
2095
2095
  if (!i || !Sc(document, i)) {
2096
- const n = Mn("", t), { parentNode: a } = n;
2096
+ const n = Sn("", t), { parentNode: a } = n;
2097
2097
  Gt.set(e, a), n.remove();
2098
2098
  }
2099
2099
  }
2100
2100
  function Hc(e, t, i = {}) {
2101
2101
  var c, s, h;
2102
- const n = gi(i);
2102
+ const n = mi(i);
2103
2103
  zc(n, i);
2104
- const a = In(t, i);
2104
+ const a = Mn(t, i);
2105
2105
  if (a)
2106
2106
  return (c = i.csp) != null && c.nonce && a.nonce !== ((s = i.csp) == null ? void 0 : s.nonce) && (a.nonce = (h = i.csp) == null ? void 0 : h.nonce), a.innerHTML !== e && (a.innerHTML = e), a;
2107
- const o = Mn(e, i);
2108
- return o.setAttribute(An(i), t), o;
2107
+ const o = Sn(e, i);
2108
+ return o.setAttribute(Ln(i), t), o;
2109
2109
  }
2110
2110
  function Ec({ editor: e, extensions: t }) {
2111
2111
  const { t: i } = F(), n = O(() => {
@@ -2126,16 +2126,16 @@ function Ec({ editor: e, extensions: t }) {
2126
2126
  }
2127
2127
  function Rc(e, t) {
2128
2128
  const { content: i, extensions: n, useEditorOptions: a = {} } = e, o = O(() => {
2129
- const d = Ja(n, n, "name");
2129
+ const d = Za(n, n, "name");
2130
2130
  return [...n.map((f) => {
2131
2131
  const g = n.find((x) => x.name === f.name);
2132
2132
  return g ? f.configure(g.options) : f;
2133
2133
  }), ...d].map((f, g) => f.configure({ sort: g }));
2134
- }, [n]), c = Ne((d) => {
2134
+ }, [n]), c = Le((d) => {
2135
2135
  var f;
2136
2136
  const m = h(d, e.output);
2137
2137
  (f = e == null ? void 0 : e.onChangeContent) == null || f.call(e, m);
2138
- }, io), s = ca({
2138
+ }, to), s = oa({
2139
2139
  extensions: o,
2140
2140
  content: i,
2141
2141
  onUpdate: ({ editor: d }) => {
@@ -2143,7 +2143,7 @@ function Rc(e, t) {
2143
2143
  },
2144
2144
  ...a
2145
2145
  });
2146
- Lt(t, () => ({
2146
+ Tt(t, () => ({
2147
2147
  editor: s
2148
2148
  })), z(() => {
2149
2149
  document.documentElement.classList.toggle("dark", e.dark), Lc.setTheme(e.dark ? "dark" : "light");
@@ -2159,15 +2159,15 @@ function Rc(e, t) {
2159
2159
  var d;
2160
2160
  (d = s == null ? void 0 : s.destroy) == null || d.call(s);
2161
2161
  }, []);
2162
- const l = yn(s, "characterCount");
2163
- return s ? /* @__PURE__ */ r("div", { className: "reactjs-tiptap-editor", children: /* @__PURE__ */ r(So, { delayDuration: 0, children: /* @__PURE__ */ r("div", { className: "richtext-rounded-[0.5rem] richtext-bg-background richtext-shadow richtext-overflow-hidden richtext-outline richtext-outline-1", children: /* @__PURE__ */ u("div", { className: "richtext-flex richtext-flex-col richtext-w-full richtext-max-h-full", children: [
2162
+ const l = vn(s, "characterCount");
2163
+ return s ? /* @__PURE__ */ r("div", { className: "reactjs-tiptap-editor", children: /* @__PURE__ */ r(Ao, { delayDuration: 0, children: /* @__PURE__ */ r("div", { className: "richtext-rounded-[0.5rem] richtext-bg-background richtext-shadow richtext-overflow-hidden richtext-outline richtext-outline-1", children: /* @__PURE__ */ u("div", { className: "richtext-flex richtext-flex-col richtext-w-full richtext-max-h-full", children: [
2164
2164
  !(e != null && e.hideToolbar) && /* @__PURE__ */ r(Oc, { editor: s, disabled: !!(e != null && e.disabled) }),
2165
- /* @__PURE__ */ r(sa, { className: `richtext-relative ${(e == null ? void 0 : e.contentClass) || ""}`, editor: s }),
2165
+ /* @__PURE__ */ r(ca, { className: `richtext-relative ${(e == null ? void 0 : e.contentClass) || ""}`, editor: s }),
2166
2166
  l && /* @__PURE__ */ r(Ec, { editor: s, extensions: n }),
2167
2167
  !(e != null && e.hideBubble) && /* @__PURE__ */ r(kc, { bubbleMenu: e == null ? void 0 : e.bubbleMenu, editor: s, disabled: e == null ? void 0 : e.disabled })
2168
2168
  ] }) }) }) }) : /* @__PURE__ */ r(q, {});
2169
2169
  }
2170
- const kh = Tt(Rc);
2170
+ const kh = Nt(Rc);
2171
2171
  function Oc({ editor: e, disabled: t }) {
2172
2172
  const { t: i, lang: n } = F(), a = O(() => {
2173
2173
  const c = [...e.extensionManager.extensions].sort((h, l) => {
@@ -2209,7 +2209,7 @@ function Oc({ editor: e, disabled: t }) {
2209
2209
  var h, l;
2210
2210
  const s = o.button.component;
2211
2211
  return /* @__PURE__ */ u("div", { className: "richtext-flex richtext-items-center", children: [
2212
- (o == null ? void 0 : o.spacer) && /* @__PURE__ */ r(de, { orientation: "vertical", className: "!richtext-h-[16px] !richtext-mx-[10px]" }),
2212
+ (o == null ? void 0 : o.spacer) && /* @__PURE__ */ r(he, { orientation: "vertical", className: "!richtext-h-[16px] !richtext-mx-[10px]" }),
2213
2213
  /* @__PURE__ */ r(
2214
2214
  s,
2215
2215
  {
@@ -2217,7 +2217,7 @@ function Oc({ editor: e, disabled: t }) {
2217
2217
  disabled: t || ((l = (h = o == null ? void 0 : o.button) == null ? void 0 : h.componentProps) == null ? void 0 : l.disabled)
2218
2218
  }
2219
2219
  ),
2220
- (o == null ? void 0 : o.divider) && /* @__PURE__ */ r(de, { orientation: "vertical", className: "!richtext-h-auto !richtext-mx-2" })
2220
+ (o == null ? void 0 : o.divider) && /* @__PURE__ */ r(he, { orientation: "vertical", className: "!richtext-h-auto !richtext-mx-2" })
2221
2221
  ] }, `toolbar-item-${c}`);
2222
2222
  }) })
2223
2223
  }
@@ -2321,7 +2321,7 @@ function Fc(e) {
2321
2321
  }
2322
2322
  ) });
2323
2323
  }
2324
- function zn(e) {
2324
+ function In(e) {
2325
2325
  return /* @__PURE__ */ r(
2326
2326
  "svg",
2327
2327
  {
@@ -2388,13 +2388,13 @@ function qc() {
2388
2388
  }
2389
2389
  );
2390
2390
  }
2391
- function Hn() {
2391
+ function zn() {
2392
2392
  return /* @__PURE__ */ u("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 32 32", children: [
2393
2393
  /* @__PURE__ */ r("path", { fill: "currentColor", d: "M30 18v-2h-6v10h2v-4h3v-2h-3v-2zm-11 8h-4V16h4a3.003 3.003 0 0 1 3 3v4a3.003 3.003 0 0 1-3 3m-2-2h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2zm-6-8H6v10h2v-3h3a2.003 2.003 0 0 0 2-2v-3a2 2 0 0 0-2-2m-3 5v-3h3l.001 3z" }),
2394
2394
  /* @__PURE__ */ r("path", { fill: "currentColor", d: "M22 14v-4a.91.91 0 0 0-.3-.7l-7-7A.9.9 0 0 0 14 2H4a2.006 2.006 0 0 0-2 2v24a2 2 0 0 0 2 2h16v-2H4V4h8v6a2.006 2.006 0 0 0 2 2h6v2Zm-8-4V4.4l5.6 5.6Z" })
2395
2395
  ] });
2396
2396
  }
2397
- function En() {
2397
+ function Hn() {
2398
2398
  return /* @__PURE__ */ u(
2399
2399
  "svg",
2400
2400
  {
@@ -2456,100 +2456,100 @@ function es() {
2456
2456
  ] }) });
2457
2457
  }
2458
2458
  const ut = {
2459
- Bold: qn,
2460
- LoaderCircle: Kn,
2461
- Italic: Gn,
2462
- Underline: Zn,
2463
- Quote: Jn,
2459
+ Bold: Wn,
2460
+ LoaderCircle: qn,
2461
+ Italic: Kn,
2462
+ Underline: Gn,
2463
+ Quote: Zn,
2464
2464
  TextQuote: Dc,
2465
- Strikethrough: Xn,
2466
- Minus: Yn,
2467
- Eraser: Qn,
2468
- PaintRoller: er,
2469
- Redo2: tr,
2470
- Undo2: ir,
2471
- AlignCenter: po,
2472
- AlignJustify: bo,
2473
- AlignLeft: wo,
2474
- AlignRight: _o,
2475
- ChevronDown: At,
2476
- Subscript: nr,
2477
- Superscript: rr,
2478
- Code: ar,
2479
- Code2: or,
2480
- Type: cr,
2481
- IndentIncrease: sr,
2482
- IndentDecrease: lr,
2483
- List: dr,
2484
- ListOrdered: hr,
2485
- ListTodo: ur,
2486
- Link: mr,
2487
- ImageUp: fr,
2488
- Video: gr,
2489
- Maximize: xr,
2490
- Minimize: pr,
2491
- Table: br,
2492
- Sparkles: wr,
2493
- Pencil: Xi,
2494
- Unlink: _r,
2495
- BetweenHorizonalEnd: vr,
2496
- BetweenHorizonalStart: yr,
2497
- BetweenVerticalStart: kr,
2498
- BetweenVerticalEnd: Cr,
2499
- TableCellsMerge: Nr,
2500
- TableCellsSplit: Tr,
2501
- Trash2: Yi,
2502
- Trash: Lr,
2503
- Replace: yi,
2504
- ChevronsUpDown: Ar,
2465
+ Strikethrough: Jn,
2466
+ Minus: Xn,
2467
+ Eraser: Yn,
2468
+ PaintRoller: Qn,
2469
+ Redo2: er,
2470
+ Undo2: tr,
2471
+ AlignCenter: xo,
2472
+ AlignJustify: po,
2473
+ AlignLeft: bo,
2474
+ AlignRight: wo,
2475
+ ChevronDown: Lt,
2476
+ Subscript: ir,
2477
+ Superscript: nr,
2478
+ Code: rr,
2479
+ Code2: ar,
2480
+ Type: or,
2481
+ IndentIncrease: cr,
2482
+ IndentDecrease: sr,
2483
+ List: lr,
2484
+ ListOrdered: dr,
2485
+ ListTodo: hr,
2486
+ Link: ur,
2487
+ ImageUp: mr,
2488
+ Video: fr,
2489
+ Maximize: gr,
2490
+ Minimize: xr,
2491
+ Table: pr,
2492
+ Sparkles: br,
2493
+ Pencil: Zi,
2494
+ Unlink: wr,
2495
+ BetweenHorizonalEnd: _r,
2496
+ BetweenHorizonalStart: vr,
2497
+ BetweenVerticalStart: yr,
2498
+ BetweenVerticalEnd: kr,
2499
+ TableCellsMerge: Cr,
2500
+ TableCellsSplit: Nr,
2501
+ Trash2: Ji,
2502
+ Trash: Tr,
2503
+ Replace: _i,
2504
+ ChevronsUpDown: Lr,
2505
2505
  LineHeight: Fc,
2506
2506
  Word: jc,
2507
- Heading1: Sr,
2508
- Heading2: Mr,
2509
- Heading3: Ir,
2510
- Heading4: zr,
2511
- Heading5: Hr,
2512
- Heading6: Er,
2513
- Columns2: ki,
2514
- Columns3: Rr,
2515
- Columns4: Or,
2516
- Plus: Qi,
2517
- Grip: Pr,
2518
- Copy: en,
2519
- Clipboard: Dr,
2520
- PanelLeft: $r,
2521
- PanelRight: Br,
2522
- Columns: ki,
2523
- Iframe: jr,
2524
- MenuDown: zn,
2507
+ Heading1: Ar,
2508
+ Heading2: Sr,
2509
+ Heading3: Mr,
2510
+ Heading4: Ir,
2511
+ Heading5: zr,
2512
+ Heading6: Hr,
2513
+ Columns2: vi,
2514
+ Columns3: Er,
2515
+ Columns4: Rr,
2516
+ Plus: Xi,
2517
+ Grip: Or,
2518
+ Copy: Yi,
2519
+ Clipboard: Pr,
2520
+ PanelLeft: Dr,
2521
+ PanelRight: $r,
2522
+ Columns: vi,
2523
+ Iframe: Br,
2524
+ MenuDown: In,
2525
2525
  SizeS: Wc,
2526
2526
  SizeM: Vc,
2527
2527
  SizeL: Uc,
2528
2528
  AspectRatio: Pc,
2529
- Emoji: Fr,
2529
+ Emoji: jr,
2530
2530
  DeleteColumn: $c,
2531
2531
  DeleteRow: Bc,
2532
- SearchAndReplace: yi,
2533
- EmojiIcon: Ur,
2534
- KatexIcon: Vr,
2535
- ExportPdf: Hn,
2536
- ExportWord: En,
2532
+ SearchAndReplace: _i,
2533
+ EmojiIcon: Fr,
2534
+ KatexIcon: Ur,
2535
+ ExportPdf: zn,
2536
+ ExportWord: Hn,
2537
2537
  ImportWord: qc,
2538
2538
  ColumnAddLeft: Kc,
2539
2539
  ColumnAddRight: Gc,
2540
- BookMarked: Wr,
2540
+ BookMarked: Vr,
2541
2541
  Excalidraw: Zc,
2542
- ZoomIn: qr,
2543
- ZoomOut: Kr,
2544
- Settings: Gr,
2545
- Eye: Zr,
2542
+ ZoomIn: Wr,
2543
+ ZoomOut: qr,
2544
+ Settings: Kr,
2545
+ Eye: Gr,
2546
2546
  TextDirection: Jc,
2547
2547
  LeftToRight: Xc,
2548
2548
  RightToLeft: Yc,
2549
- Attachment: Jr,
2549
+ Attachment: Zr,
2550
2550
  GifIcon: Qc,
2551
- ChevronUp: Zi,
2552
- Crop: Xr,
2551
+ ChevronUp: Ki,
2552
+ Crop: Jr,
2553
2553
  Mermaid: es
2554
2554
  };
2555
2555
  function ts(e) {
@@ -2663,8 +2663,8 @@ function os(e) {
2663
2663
  componentProps: {
2664
2664
  tooltip: W.t(`editor.${n.replace("-", ".")}.tooltip`),
2665
2665
  icon: i[a],
2666
- action: () => e.commands.updateVideo({ width: Ft[n] }),
2667
- isActive: () => e.isActive("video", { width: Ft[n] })
2666
+ action: () => e.commands.updateVideo({ width: jt[n] }),
2667
+ isActive: () => e.isActive("video", { width: jt[n] })
2668
2668
  }
2669
2669
  }));
2670
2670
  }
@@ -2681,7 +2681,7 @@ function cs(e) {
2681
2681
  icon: "Trash2",
2682
2682
  action: () => {
2683
2683
  const { state: t, dispatch: i } = e.view;
2684
- St(t, i);
2684
+ At(t, i);
2685
2685
  }
2686
2686
  }
2687
2687
  }
@@ -2700,7 +2700,7 @@ function ss(e) {
2700
2700
  icon: "Trash2",
2701
2701
  action: () => {
2702
2702
  const { state: t, dispatch: i } = e.view;
2703
- St(t, i);
2703
+ At(t, i);
2704
2704
  }
2705
2705
  }
2706
2706
  }
@@ -2729,7 +2729,7 @@ function ls(e) {
2729
2729
  icon: "Trash2",
2730
2730
  action: () => {
2731
2731
  const { state: t, dispatch: i } = e.view;
2732
- St(t, i);
2732
+ At(t, i);
2733
2733
  }
2734
2734
  }
2735
2735
  }
@@ -2747,14 +2747,14 @@ function ds(e) {
2747
2747
  icon: "Trash2",
2748
2748
  action: () => {
2749
2749
  const { state: t, dispatch: i } = e.view;
2750
- St(t, i);
2750
+ At(t, i);
2751
2751
  }
2752
2752
  }
2753
2753
  }
2754
2754
  ];
2755
2755
  }
2756
2756
  function hs(e, t) {
2757
- return no.reduce((i, n) => {
2757
+ return io.reduce((i, n) => {
2758
2758
  if (n === "divider" && i.length > 0)
2759
2759
  return [...i, {
2760
2760
  type: "divider",
@@ -2765,18 +2765,18 @@ function hs(e, t) {
2765
2765
  return a ? [...i, a.configure().options.button({ editor: e, t, extension: a })] : i;
2766
2766
  }, []);
2767
2767
  }
2768
- var Ce = /* @__PURE__ */ ((e) => (e[e.max = 7] = "max", e[e.min = 0] = "min", e[e.more = 1] = "more", e[e.less = -1] = "less", e))(Ce || {});
2768
+ var Te = /* @__PURE__ */ ((e) => (e[e.max = 7] = "max", e[e.min = 0] = "min", e[e.more = 1] = "more", e[e.less = -1] = "less", e))(Te || {});
2769
2769
  function us(e, t, i) {
2770
2770
  return e < t ? t : e > i ? i : e;
2771
2771
  }
2772
2772
  function ms(e, t, i, n) {
2773
2773
  const { doc: a, selection: o } = e;
2774
- if (!a || !o || !(o instanceof Te || o instanceof on))
2774
+ if (!a || !o || !(o instanceof Ae || o instanceof rn))
2775
2775
  return e;
2776
2776
  const { from: c, to: s } = o;
2777
2777
  return a.nodesBetween(c, s, (h, l) => {
2778
2778
  const d = h.type;
2779
- return i.includes(d.name) ? (e = Zt(e, l, t), !1) : !la(h.type.name, n.extensionManager.extensions);
2779
+ return i.includes(d.name) ? (e = Zt(e, l, t), !1) : !sa(h.type.name, n.extensionManager.extensions);
2780
2780
  }), e;
2781
2781
  }
2782
2782
  function Zt(e, t, i) {
@@ -2794,7 +2794,7 @@ function Zt(e, t, i) {
2794
2794
  };
2795
2795
  return e.setNodeMarkup(t, n.type, s, n.marks);
2796
2796
  }
2797
- function Oi({ delta: e, types: t }) {
2797
+ function Ei({ delta: e, types: t }) {
2798
2798
  return ({ state: i, dispatch: n, editor: a }) => {
2799
2799
  const { selection: o } = i;
2800
2800
  let { tr: c } = i;
@@ -2803,9 +2803,9 @@ function Oi({ delta: e, types: t }) {
2803
2803
  }
2804
2804
  function fs(e) {
2805
2805
  var y, R, A;
2806
- const { pluginKey: t = yo } = e, { t: i } = F(), [n, a] = w(null), [o, c] = w(-1), s = X(null), h = X(null), [l, d] = w(!1), m = e.editor.extensionManager.extensions.some((N) => N.name === "textAlign"), f = e.editor.extensionManager.extensions.some((N) => N.name === "indent"), g = e.editor.extensionManager.extensions.some((N) => N.name === "clear");
2806
+ const { pluginKey: t = vo } = e, { t: i } = F(), [n, a] = w(null), [o, c] = w(-1), s = X(null), h = X(null), [l, d] = w(!1), m = e.editor.extensionManager.extensions.some((N) => N.name === "textAlign"), f = e.editor.extensionManager.extensions.some((N) => N.name === "indent"), g = e.editor.extensionManager.extensions.some((N) => N.name === "clear");
2807
2807
  z(() => {
2808
- s.current && !e.editor.isDestroyed && (h.current = vo({
2808
+ s.current && !e.editor.isDestroyed && (h.current = _o({
2809
2809
  editor: e.editor,
2810
2810
  element: s.current,
2811
2811
  pluginKey: "ContentItemMenu",
@@ -2888,7 +2888,7 @@ function fs(e) {
2888
2888
  children: /* @__PURE__ */ r(D, { name: "Plus", className: "richtext-text-lg richtext-text-neutral-600 dark:richtext-text-neutral-200" })
2889
2889
  }
2890
2890
  ),
2891
- /* @__PURE__ */ u(Ae, { open: l, onOpenChange: $, children: [
2891
+ /* @__PURE__ */ u(_e, { open: l, onOpenChange: $, children: [
2892
2892
  /* @__PURE__ */ u("div", { className: "richtext-relative richtext-flex richtext-flex-col", children: [
2893
2893
  /* @__PURE__ */ u(Ke, { children: [
2894
2894
  /* @__PURE__ */ r(Ge, { asChild: !0, disabled: e == null ? void 0 : e.disabled, children: /* @__PURE__ */ r(
@@ -2907,11 +2907,11 @@ function fs(e) {
2907
2907
  ) }),
2908
2908
  /* @__PURE__ */ r(Ie, { children: i("editor.draghandle.tooltip") })
2909
2909
  ] }),
2910
- /* @__PURE__ */ r(Se, { className: "richtext-absolute richtext-top-0 richtext-left-0 richtext-w-[28px] richtext-h-[28px] richtext-z-0" })
2910
+ /* @__PURE__ */ r(ve, { className: "richtext-absolute richtext-top-0 richtext-left-0 richtext-w-[28px] richtext-h-[28px] richtext-z-0" })
2911
2911
  ] }),
2912
- /* @__PURE__ */ u(we, { className: "richtext-w-48", align: "start", side: "bottom", sideOffset: 0, children: [
2912
+ /* @__PURE__ */ u(pe, { className: "richtext-w-48", align: "start", side: "bottom", sideOffset: 0, children: [
2913
2913
  /* @__PURE__ */ u(
2914
- fe,
2914
+ le,
2915
2915
  {
2916
2916
  onClick: C,
2917
2917
  className: "richtext-flex richtext-gap-3 focus:richtext-text-red-500 focus:richtext-bg-red-400 hover:richtext-bg-red-400 dark:hover:richtext-text-red-500 richtext-bg-opacity-10 hover:richtext-bg-opacity-20 focus:richtext-bg-opacity-30 dark:hover:richtext-bg-opacity-20",
@@ -2921,51 +2921,51 @@ function fs(e) {
2921
2921
  ]
2922
2922
  }
2923
2923
  ),
2924
- g ? /* @__PURE__ */ u(fe, { className: "richtext-flex richtext-gap-3", onClick: x, children: [
2924
+ g ? /* @__PURE__ */ u(le, { className: "richtext-flex richtext-gap-3", onClick: x, children: [
2925
2925
  /* @__PURE__ */ r(D, { name: "PaintRoller" }),
2926
2926
  /* @__PURE__ */ r("span", { children: i("editor.clear.tooltip") })
2927
2927
  ] }) : null,
2928
- /* @__PURE__ */ u(fe, { className: "richtext-flex richtext-gap-3", onClick: b, children: [
2928
+ /* @__PURE__ */ u(le, { className: "richtext-flex richtext-gap-3", onClick: b, children: [
2929
2929
  /* @__PURE__ */ r(D, { name: "Clipboard" }),
2930
2930
  /* @__PURE__ */ r("span", { children: i("editor.copyToClipboard") })
2931
2931
  ] }),
2932
- /* @__PURE__ */ u(fe, { className: "richtext-flex richtext-gap-3", onClick: k, children: [
2932
+ /* @__PURE__ */ u(le, { className: "richtext-flex richtext-gap-3", onClick: k, children: [
2933
2933
  /* @__PURE__ */ r(D, { name: "Copy" }),
2934
2934
  /* @__PURE__ */ r("span", { children: i("editor.copy") })
2935
2935
  ] }),
2936
- m || f ? /* @__PURE__ */ r(zt, {}) : null,
2937
- m ? /* @__PURE__ */ u(Li, { children: [
2938
- /* @__PURE__ */ u(Vt, { className: "richtext-flex richtext-gap-3", children: [
2936
+ m || f ? /* @__PURE__ */ r(It, {}) : null,
2937
+ m ? /* @__PURE__ */ u(Ni, { children: [
2938
+ /* @__PURE__ */ u(Ut, { className: "richtext-flex richtext-gap-3", children: [
2939
2939
  /* @__PURE__ */ r(D, { name: "AlignCenter" }),
2940
2940
  /* @__PURE__ */ r("span", { children: i("editor.textalign.tooltip") })
2941
2941
  ] }),
2942
- /* @__PURE__ */ r(Ti, { children: /* @__PURE__ */ u(Wt, { children: [
2943
- /* @__PURE__ */ u(fe, { className: "richtext-flex richtext-gap-3", onClick: () => L("left"), children: [
2942
+ /* @__PURE__ */ r(Ci, { children: /* @__PURE__ */ u(Vt, { children: [
2943
+ /* @__PURE__ */ u(le, { className: "richtext-flex richtext-gap-3", onClick: () => L("left"), children: [
2944
2944
  /* @__PURE__ */ r(D, { name: "AlignLeft" }),
2945
2945
  /* @__PURE__ */ r("span", { children: i("editor.textalign.left.tooltip") })
2946
2946
  ] }),
2947
- /* @__PURE__ */ u(fe, { className: "richtext-flex richtext-gap-3", onClick: () => L("center"), children: [
2947
+ /* @__PURE__ */ u(le, { className: "richtext-flex richtext-gap-3", onClick: () => L("center"), children: [
2948
2948
  /* @__PURE__ */ r(D, { name: "AlignCenter" }),
2949
2949
  /* @__PURE__ */ r("span", { children: i("editor.textalign.center.tooltip") })
2950
2950
  ] }),
2951
- /* @__PURE__ */ u(fe, { className: "richtext-flex richtext-gap-3", onClick: () => L("right"), children: [
2951
+ /* @__PURE__ */ u(le, { className: "richtext-flex richtext-gap-3", onClick: () => L("right"), children: [
2952
2952
  /* @__PURE__ */ r(D, { name: "AlignRight" }),
2953
2953
  /* @__PURE__ */ r("span", { children: i("editor.textalign.right.tooltip") })
2954
2954
  ] })
2955
2955
  ] }) })
2956
2956
  ] }) : null,
2957
- f ? /* @__PURE__ */ u(Li, { children: [
2958
- /* @__PURE__ */ u(Vt, { className: "richtext-flex richtext-gap-3", children: [
2957
+ f ? /* @__PURE__ */ u(Ni, { children: [
2958
+ /* @__PURE__ */ u(Ut, { className: "richtext-flex richtext-gap-3", children: [
2959
2959
  /* @__PURE__ */ r(D, { name: "IndentIncrease" }),
2960
2960
  /* @__PURE__ */ r("span", { children: i("editor.indent") })
2961
2961
  ] }),
2962
- /* @__PURE__ */ r(Ti, { children: /* @__PURE__ */ u(Wt, { children: [
2962
+ /* @__PURE__ */ r(Ci, { children: /* @__PURE__ */ u(Vt, { children: [
2963
2963
  /* @__PURE__ */ u(
2964
- fe,
2964
+ le,
2965
2965
  {
2966
2966
  className: "richtext-flex richtext-gap-3",
2967
2967
  onClick: p,
2968
- disabled: ((R = n == null ? void 0 : n.attrs) == null ? void 0 : R.indent) >= Ce.max,
2968
+ disabled: ((R = n == null ? void 0 : n.attrs) == null ? void 0 : R.indent) >= Te.max,
2969
2969
  children: [
2970
2970
  /* @__PURE__ */ r(D, { name: "IndentIncrease" }),
2971
2971
  /* @__PURE__ */ r("span", { children: i("editor.indent.tooltip") })
@@ -2973,11 +2973,11 @@ function fs(e) {
2973
2973
  }
2974
2974
  ),
2975
2975
  /* @__PURE__ */ u(
2976
- fe,
2976
+ le,
2977
2977
  {
2978
2978
  className: "richtext-flex richtext-gap-3",
2979
2979
  onClick: v,
2980
- disabled: ((A = n == null ? void 0 : n.attrs) == null ? void 0 : A.indent) <= Ce.min,
2980
+ disabled: ((A = n == null ? void 0 : n.attrs) == null ? void 0 : A.indent) <= Te.min,
2981
2981
  children: [
2982
2982
  /* @__PURE__ */ r(D, { name: "IndentDecrease" }),
2983
2983
  /* @__PURE__ */ r("span", { children: i("editor.outdent.tooltip") })
@@ -3013,10 +3013,10 @@ function xs({ item: e, disabled: t, editor: i }) {
3013
3013
  function ps(e) {
3014
3014
  const { t, lang: i } = F(), n = ({ editor: o }) => {
3015
3015
  const { selection: c } = o.view.state, { $from: s, to: h } = c;
3016
- return s.pos === h ? !1 : c instanceof Te;
3016
+ return s.pos === h ? !1 : c instanceof Ae;
3017
3017
  }, a = O(() => e.disabled || !(e != null && e.editor) ? [] : hs(e.editor, t), [e.disabled, e.editor, i, t]);
3018
- return /* @__PURE__ */ r(he, { shouldShow: n, editor: e == null ? void 0 : e.editor, tippyOptions: gs, children: a != null && a.length ? /* @__PURE__ */ r("div", { className: "richtext-w-auto richtext-px-3 richtext-py-2 richtext-transition-all !richtext-border richtext-rounded-sm richtext-shadow-sm richtext-pointer-events-auto richtext-select-none richtext-border-neutral-200 dark:richtext-border-neutral-800 richtext-bg-background", children: /* @__PURE__ */ r("div", { className: "richtext-flex richtext-items-center richtext-gap-[4px] richtext-flex-nowrap richtext-whitespace-nowrap richtext-h-[26px] richtext-justify-start richtext-relative", children: a == null ? void 0 : a.map((o, c) => (o == null ? void 0 : o.type) === "divider" ? /* @__PURE__ */ r(
3019
- de,
3018
+ return /* @__PURE__ */ r(ue, { shouldShow: n, editor: e == null ? void 0 : e.editor, tippyOptions: gs, children: a != null && a.length ? /* @__PURE__ */ r("div", { className: "richtext-w-auto richtext-px-3 richtext-py-2 richtext-transition-all !richtext-border richtext-rounded-sm richtext-shadow-sm richtext-pointer-events-auto richtext-select-none richtext-border-neutral-200 dark:richtext-border-neutral-800 richtext-bg-background", children: /* @__PURE__ */ r("div", { className: "richtext-flex richtext-items-center richtext-gap-[4px] richtext-flex-nowrap richtext-whitespace-nowrap richtext-h-[26px] richtext-justify-start richtext-relative", children: a == null ? void 0 : a.map((o, c) => (o == null ? void 0 : o.type) === "divider" ? /* @__PURE__ */ r(
3019
+ he,
3020
3020
  {
3021
3021
  orientation: "vertical",
3022
3022
  className: "!richtext-mx-1 !richtext-my-2 !richtext-h-[16px]"
@@ -3084,7 +3084,7 @@ function bs({ fill: e }) {
3084
3084
  }
3085
3085
  );
3086
3086
  }
3087
- function Rn(e) {
3087
+ function En(e) {
3088
3088
  const [t, i] = w(void 0);
3089
3089
  function n(c) {
3090
3090
  var s;
@@ -3113,7 +3113,7 @@ function Rn(e) {
3113
3113
  }
3114
3114
  ),
3115
3115
  /* @__PURE__ */ r(
3116
- Tn,
3116
+ Nn,
3117
3117
  {
3118
3118
  selectedColor: t,
3119
3119
  setSelectedColor: o,
@@ -3127,7 +3127,7 @@ function Rn(e) {
3127
3127
  }
3128
3128
  function ws({ editor: e }) {
3129
3129
  var x, b, k, L, p, v, C, T, I, $, y, R, A, N, B, S, E, H;
3130
- const t = ({ editor: J }) => da(J.view.state, "table"), { t: i } = F();
3130
+ const t = ({ editor: J }) => la(J.view.state, "table"), { t: i } = F();
3131
3131
  function n() {
3132
3132
  e.chain().focus().addColumnBefore().run();
3133
3133
  }
@@ -3159,7 +3159,7 @@ function ws({ editor: e }) {
3159
3159
  e.chain().focus().setTableCellBackground(J).run();
3160
3160
  }
3161
3161
  return /* @__PURE__ */ r(
3162
- he,
3162
+ ue,
3163
3163
  {
3164
3164
  editor: e,
3165
3165
  pluginKey: "table",
@@ -3172,7 +3172,7 @@ function ws({ editor: e }) {
3172
3172
  },
3173
3173
  maxWidth: "auto",
3174
3174
  getReferenceClientRect: () => {
3175
- var vi;
3175
+ var wi;
3176
3176
  const {
3177
3177
  view: J,
3178
3178
  state: {
@@ -3181,10 +3181,10 @@ function ws({ editor: e }) {
3181
3181
  } = e, xe = J.domAtPos(Q).node;
3182
3182
  if (!xe)
3183
3183
  return new DOMRect(-1e3, -1e3, 0, 0);
3184
- const _i = (vi = xe == null ? void 0 : xe.closest) == null ? void 0 : vi.call(xe, ".tableWrapper");
3185
- return _i ? _i.getBoundingClientRect() : new DOMRect(-1e3, -1e3, 0, 0);
3184
+ const bi = (wi = xe == null ? void 0 : xe.closest) == null ? void 0 : wi.call(xe, ".tableWrapper");
3185
+ return bi ? bi.getBoundingClientRect() : new DOMRect(-1e3, -1e3, 0, 0);
3186
3186
  },
3187
- plugins: [so],
3187
+ plugins: [co],
3188
3188
  sticky: "popper"
3189
3189
  },
3190
3190
  children: /* @__PURE__ */ u("div", { className: "richtext-min-w-32 richtext-flex richtext-flex-row richtext-h-full richtext-items-center richtext-leading-none richtext-gap-0.5 richtext-p-2 richtext-w-full richtext-bg-background richtext-rounded-lg richtext-shadow-sm !richtext-border richtext-border-border", children: [
@@ -3224,7 +3224,7 @@ function ws({ editor: e }) {
3224
3224
  disabled: !((v = e == null ? void 0 : (p = e.can()).deleteColumn) != null && v.call(p))
3225
3225
  }
3226
3226
  ),
3227
- /* @__PURE__ */ r(de, { orientation: "vertical", className: "!richtext-mx-1 !richtext-my-2 !richtext-h-[16px]" }),
3227
+ /* @__PURE__ */ r(he, { orientation: "vertical", className: "!richtext-mx-1 !richtext-my-2 !richtext-h-[16px]" }),
3228
3228
  /* @__PURE__ */ r(
3229
3229
  _,
3230
3230
  {
@@ -3261,7 +3261,7 @@ function ws({ editor: e }) {
3261
3261
  disabled: !((R = (y = e == null ? void 0 : e.can()) == null ? void 0 : y.deleteRow) != null && R.call(y))
3262
3262
  }
3263
3263
  ),
3264
- /* @__PURE__ */ r(de, { orientation: "vertical", className: "!richtext-mx-1 !richtext-my-2 !richtext-h-[16px]" }),
3264
+ /* @__PURE__ */ r(he, { orientation: "vertical", className: "!richtext-mx-1 !richtext-my-2 !richtext-h-[16px]" }),
3265
3265
  /* @__PURE__ */ r(
3266
3266
  _,
3267
3267
  {
@@ -3286,9 +3286,9 @@ function ws({ editor: e }) {
3286
3286
  disabled: !((S = (B = e == null ? void 0 : e.can()) == null ? void 0 : B.splitCell) != null && S.call(B))
3287
3287
  }
3288
3288
  ),
3289
- /* @__PURE__ */ r(de, { orientation: "vertical", className: "!richtext-mx-1 !richtext-my-2 !richtext-h-[16px]" }),
3289
+ /* @__PURE__ */ r(he, { orientation: "vertical", className: "!richtext-mx-1 !richtext-my-2 !richtext-h-[16px]" }),
3290
3290
  /* @__PURE__ */ r(
3291
- Rn,
3291
+ En,
3292
3292
  {
3293
3293
  editor: e,
3294
3294
  tooltip: i("editor.table.menu.setCellsBgColor"),
@@ -3314,7 +3314,7 @@ function ws({ editor: e }) {
3314
3314
  }
3315
3315
  );
3316
3316
  }
3317
- function On(e) {
3317
+ function Rn(e) {
3318
3318
  const { t } = F(), [i, n] = w({
3319
3319
  text: "",
3320
3320
  link: ""
@@ -3333,7 +3333,7 @@ function On(e) {
3333
3333
  s.preventDefault(), e == null || e.onSetLink(i.link, i.text, a);
3334
3334
  }
3335
3335
  return /* @__PURE__ */ r("div", { className: "richtext-p-2 richtext-bg-white !richtext-border richtext-rounded-lg richtext-shadow-sm dark:richtext-bg-black border-neutral-200 dark:richtext-border-neutral-800", children: /* @__PURE__ */ u("form", { className: "richtext-flex richtext-flex-col richtext-gap-2", onSubmit: c, children: [
3336
- /* @__PURE__ */ r(le, { className: "mb-[6px]", children: t("editor.link.dialog.text") }),
3336
+ /* @__PURE__ */ r(de, { className: "mb-[6px]", children: t("editor.link.dialog.text") }),
3337
3337
  /* @__PURE__ */ r("div", { className: "richtext-flex richtext-w-full richtext-max-w-sm richtext-items-center richtext-gap-1.5 richtext-mb-[10px]", children: /* @__PURE__ */ r("div", { className: "richtext-relative richtext-items-center richtext-w-full richtext-max-w-sm", children: /* @__PURE__ */ r(
3338
3338
  te,
3339
3339
  {
@@ -3345,7 +3345,7 @@ function On(e) {
3345
3345
  onChange: (s) => n({ ...i, text: s.target.value })
3346
3346
  }
3347
3347
  ) }) }),
3348
- /* @__PURE__ */ r(le, { className: "mb-[6px]", children: t("editor.link.dialog.link") }),
3348
+ /* @__PURE__ */ r(de, { className: "mb-[6px]", children: t("editor.link.dialog.link") }),
3349
3349
  /* @__PURE__ */ r("div", { className: "richtext-flex richtext-w-full richtext-max-w-sm richtext-items-center richtext-gap-1.5", children: /* @__PURE__ */ u("div", { className: "richtext-relative richtext-items-center richtext-w-full richtext-max-w-sm", children: [
3350
3350
  /* @__PURE__ */ r(
3351
3351
  te,
@@ -3360,7 +3360,7 @@ function On(e) {
3360
3360
  /* @__PURE__ */ r("span", { className: "richtext-absolute richtext-inset-y-0 richtext-flex richtext-items-center richtext-justify-center richtext-px-2 richtext-start-0", children: /* @__PURE__ */ r(D, { className: "richtext-size-5 richtext-text-muted-foreground", name: "Link" }) })
3361
3361
  ] }) }),
3362
3362
  /* @__PURE__ */ u("div", { className: "richtext-flex richtext-items-center richtext-space-x-2", children: [
3363
- /* @__PURE__ */ r(le, { children: t("editor.link.dialog.openInNewTab") }),
3363
+ /* @__PURE__ */ r(de, { children: t("editor.link.dialog.openInNewTab") }),
3364
3364
  /* @__PURE__ */ r(
3365
3365
  li,
3366
3366
  {
@@ -3384,13 +3384,13 @@ function _s(e) {
3384
3384
  target: "_blank",
3385
3385
  rel: "noopener noreferrer",
3386
3386
  className: "richtext-text-sm richtext-underline richtext-break-all",
3387
- children: Xa(e == null ? void 0 : e.link, {
3387
+ children: Ja(e == null ? void 0 : e.link, {
3388
3388
  length: 50,
3389
3389
  omission: "…"
3390
3390
  })
3391
3391
  }
3392
3392
  ),
3393
- (e == null ? void 0 : e.link) && /* @__PURE__ */ r(de, { orientation: "vertical", className: "!richtext-h-4" }),
3393
+ (e == null ? void 0 : e.link) && /* @__PURE__ */ r(he, { orientation: "vertical", className: "!richtext-h-4" }),
3394
3394
  /* @__PURE__ */ u("div", { className: "richtext-flex richtext-flex-nowrap", children: [
3395
3395
  /* @__PURE__ */ r(
3396
3396
  _,
@@ -3439,7 +3439,7 @@ function vs({ editor: e, disabled: t }) {
3439
3439
  e.chain().extendMarkRange("link").unsetLink().focus().run(), n(!1);
3440
3440
  }, [e]);
3441
3441
  return /* @__PURE__ */ r(q, { children: /* @__PURE__ */ r(
3442
- he,
3442
+ ue,
3443
3443
  {
3444
3444
  editor: e,
3445
3445
  shouldShow: o,
@@ -3454,7 +3454,7 @@ function vs({ editor: e, disabled: t }) {
3454
3454
  n(!1);
3455
3455
  }
3456
3456
  },
3457
- children: t ? /* @__PURE__ */ r(q, {}) : /* @__PURE__ */ r(q, { children: i ? /* @__PURE__ */ r(On, { onSetLink: c, editor: e }) : /* @__PURE__ */ r(
3457
+ children: t ? /* @__PURE__ */ r(q, {}) : /* @__PURE__ */ r(q, { children: i ? /* @__PURE__ */ r(Rn, { onSetLink: c, editor: e }) : /* @__PURE__ */ r(
3458
3458
  _s,
3459
3459
  {
3460
3460
  editor: e,
@@ -3468,16 +3468,16 @@ function vs({ editor: e, disabled: t }) {
3468
3468
  }
3469
3469
  ) });
3470
3470
  }
3471
- const xi = {
3471
+ const fi = {
3472
3472
  maxWidth: "auto",
3473
3473
  zIndex: 20,
3474
3474
  appendTo: "parent",
3475
3475
  moveTransition: "transform 0.1s ease-out"
3476
3476
  };
3477
- function pi({ item: e, disabled: t, editor: i }) {
3477
+ function gi({ item: e, disabled: t, editor: i }) {
3478
3478
  var a;
3479
3479
  const n = e.component;
3480
- return n ? /* @__PURE__ */ r(nt, { children: e.type === "divider" ? /* @__PURE__ */ r(de, { orientation: "vertical", className: "!richtext-mx-1 !richtext-my-2 !richtext-h-[16px]" }) : /* @__PURE__ */ r(
3480
+ return n ? /* @__PURE__ */ r(nt, { children: e.type === "divider" ? /* @__PURE__ */ r(he, { orientation: "vertical", className: "!richtext-mx-1 !richtext-my-2 !richtext-h-[16px]" }) : /* @__PURE__ */ r(
3481
3481
  n,
3482
3482
  {
3483
3483
  ...e.componentProps,
@@ -3490,7 +3490,7 @@ function ys(e) {
3490
3490
  return e.type.name === "image";
3491
3491
  }
3492
3492
  function ks(e) {
3493
- return e.type.name === Bn.name;
3493
+ return e.type.name === $n.name;
3494
3494
  }
3495
3495
  function Cs(e) {
3496
3496
  return e.type.name === "video";
@@ -3505,13 +3505,13 @@ function Ns(e) {
3505
3505
  }), h;
3506
3506
  }, n = O(() => e.disabled ? [] : cs(e.editor), [e.disabled, e.editor, t]);
3507
3507
  return /* @__PURE__ */ r(q, { children: /* @__PURE__ */ r(
3508
- he,
3508
+ ue,
3509
3509
  {
3510
3510
  shouldShow: i,
3511
3511
  editor: e == null ? void 0 : e.editor,
3512
- tippyOptions: xi,
3512
+ tippyOptions: fi,
3513
3513
  children: n != null && n.length ? /* @__PURE__ */ r("div", { className: "richtext-w-auto richtext-px-3 richtext-py-2 richtext-transition-all !richtext-border richtext-rounded-sm richtext-shadow-sm richtext-pointer-events-auto richtext-select-none richtext-border-neutral-200 dark:richtext-border-neutral-800 richtext-bg-background", children: /* @__PURE__ */ r("div", { className: "richtext-flex richtext-items-center richtext-flex-nowrap richtext-whitespace-nowrap richtext-h-[26px] richtext-justify-start richtext-relative", children: n == null ? void 0 : n.map((a, o) => /* @__PURE__ */ r(
3514
- pi,
3514
+ gi,
3515
3515
  {
3516
3516
  item: a,
3517
3517
  disabled: e.disabled,
@@ -3532,13 +3532,13 @@ function Ts(e) {
3532
3532
  }), h;
3533
3533
  }, n = O(() => e.disabled ? [] : ss(e.editor), [e.disabled, e.editor, t]);
3534
3534
  return /* @__PURE__ */ r(q, { children: /* @__PURE__ */ r(
3535
- he,
3535
+ ue,
3536
3536
  {
3537
3537
  shouldShow: i,
3538
3538
  editor: e == null ? void 0 : e.editor,
3539
- tippyOptions: xi,
3539
+ tippyOptions: fi,
3540
3540
  children: n != null && n.length ? /* @__PURE__ */ r("div", { className: "richtext-w-auto richtext-px-3 richtext-py-2 richtext-transition-all !richtext-border richtext-rounded-sm richtext-shadow-sm richtext-pointer-events-auto richtext-select-none richtext-border-neutral-200 dark:richtext-border-neutral-800 richtext-bg-background", children: /* @__PURE__ */ r("div", { className: "richtext-flex richtext-items-center richtext-flex-nowrap richtext-whitespace-nowrap richtext-h-[26px] richtext-justify-start richtext-relative", children: n == null ? void 0 : n.map((a, o) => /* @__PURE__ */ r(
3541
- pi,
3541
+ gi,
3542
3542
  {
3543
3543
  item: a,
3544
3544
  disabled: e.disabled,
@@ -3559,13 +3559,13 @@ function Ls(e) {
3559
3559
  }), h;
3560
3560
  }, n = O(() => e.disabled ? [] : ds(e.editor), [e.editor, e.disabled, t]);
3561
3561
  return /* @__PURE__ */ r(q, { children: /* @__PURE__ */ r(
3562
- he,
3562
+ ue,
3563
3563
  {
3564
3564
  shouldShow: i,
3565
3565
  editor: e == null ? void 0 : e.editor,
3566
- tippyOptions: xi,
3566
+ tippyOptions: fi,
3567
3567
  children: n != null && n.length ? /* @__PURE__ */ r("div", { className: "richtext-w-auto richtext-px-3 richtext-py-2 richtext-transition-all !richtext-border richtext-rounded-sm richtext-shadow-sm richtext-pointer-events-auto richtext-select-none richtext-border-neutral-200 dark:richtext-border-neutral-800 richtext-bg-background", children: /* @__PURE__ */ r("div", { className: "richtext-flex richtext-items-center richtext-flex-nowrap richtext-whitespace-nowrap richtext-h-[26px] richtext-justify-start richtext-relative", children: n == null ? void 0 : n.map((a, o) => /* @__PURE__ */ r(
3568
- pi,
3568
+ gi,
3569
3569
  {
3570
3570
  item: a,
3571
3571
  disabled: e.disabled,
@@ -3579,7 +3579,7 @@ function Ls(e) {
3579
3579
  function As({ editor: e }) {
3580
3580
  const { t } = F(), i = M(() => e.isActive(it.name), [e]), n = M(() => at(it.name, e), [e]), a = M(() => e.chain().focus().addColBefore().run(), [e]), o = M(() => e.chain().focus().addColAfter().run(), [e]), c = M(() => e.chain().focus().deleteCol().run(), [e]);
3581
3581
  return /* @__PURE__ */ r(
3582
- he,
3582
+ ue,
3583
3583
  {
3584
3584
  pluginKey: "columns-bubble-menu",
3585
3585
  editor: e,
@@ -3632,7 +3632,7 @@ function As({ editor: e }) {
3632
3632
  }
3633
3633
  );
3634
3634
  }
3635
- const Ch = ha.extend({
3635
+ const Ch = da.extend({
3636
3636
  addOptions() {
3637
3637
  var e;
3638
3638
  return {
@@ -3650,7 +3650,7 @@ const Ch = ha.extend({
3650
3650
  })
3651
3651
  };
3652
3652
  }
3653
- }), Nh = ua.extend({
3653
+ }), Nh = ha.extend({
3654
3654
  addOptions() {
3655
3655
  var e;
3656
3656
  return {
@@ -3670,7 +3670,7 @@ const Ch = ha.extend({
3670
3670
  }
3671
3671
  };
3672
3672
  }
3673
- }), Th = ma.extend({
3673
+ }), Th = ua.extend({
3674
3674
  addOptions() {
3675
3675
  var e;
3676
3676
  return {
@@ -3690,7 +3690,7 @@ const Ch = ha.extend({
3690
3690
  }
3691
3691
  };
3692
3692
  }
3693
- }), Lh = fa.extend({
3693
+ }), Lh = ma.extend({
3694
3694
  addOptions() {
3695
3695
  var e;
3696
3696
  return {
@@ -3708,7 +3708,7 @@ const Ch = ha.extend({
3708
3708
  })
3709
3709
  };
3710
3710
  }
3711
- }), Ah = ga.extend({
3711
+ }), Ah = fa.extend({
3712
3712
  addOptions() {
3713
3713
  var e;
3714
3714
  return {
@@ -3728,29 +3728,29 @@ const Ch = ha.extend({
3728
3728
  }
3729
3729
  });
3730
3730
  let ge, Ye;
3731
- const Pt = /* @__PURE__ */ new Set(), Dt = /* @__PURE__ */ new Set();
3731
+ const Ot = /* @__PURE__ */ new Set(), Pt = /* @__PURE__ */ new Set();
3732
3732
  function Ss() {
3733
3733
  return ge;
3734
3734
  }
3735
3735
  function Ms(e) {
3736
3736
  if (!ge && !Ye) {
3737
3737
  const t = e.themes.filter(
3738
- (n) => !!n && n in sn
3738
+ (n) => !!n && n in on
3739
3739
  ), i = e.languages.filter(
3740
- (n) => !!n && n in ln
3740
+ (n) => !!n && n in cn
3741
3741
  );
3742
- return Ye = eo({ themes: t, langs: i }).then((n) => {
3742
+ return Ye = Qa({ themes: t, langs: i }).then((n) => {
3743
3743
  ge = n;
3744
3744
  }), Ye;
3745
3745
  }
3746
3746
  if (Ye)
3747
3747
  return Ye;
3748
3748
  }
3749
- async function Pn(e) {
3750
- return ge && !ge.getLoadedThemes().includes(e) && !Dt.has(e) && e in sn ? (Dt.add(e), await ge.loadTheme(e), Dt.delete(e), !0) : !1;
3749
+ async function On(e) {
3750
+ return ge && !ge.getLoadedThemes().includes(e) && !Pt.has(e) && e in on ? (Pt.add(e), await ge.loadTheme(e), Pt.delete(e), !0) : !1;
3751
3751
  }
3752
- async function Dn(e) {
3753
- return ge && !ge.getLoadedLanguages().includes(e) && !Pt.has(e) && e in ln ? (Pt.add(e), await ge.loadLanguage(e), Pt.delete(e), !0) : !1;
3752
+ async function Pn(e) {
3753
+ return ge && !ge.getLoadedLanguages().includes(e) && !Ot.has(e) && e in cn ? (Ot.add(e), await ge.loadLanguage(e), Ot.delete(e), !0) : !1;
3754
3754
  }
3755
3755
  async function Is({
3756
3756
  doc: e,
@@ -3766,11 +3766,11 @@ async function Is({
3766
3766
  n
3767
3767
  ];
3768
3768
  ge ? await Promise.all([
3769
- ...o.flatMap((s) => Pn(s)),
3770
- ...c.flatMap((s) => !!s && Dn(s))
3769
+ ...o.flatMap((s) => On(s)),
3770
+ ...c.flatMap((s) => !!s && Pn(s))
3771
3771
  ]) : await Ms({ languages: c, themes: o });
3772
3772
  }
3773
- function Pi({
3773
+ function Ri({
3774
3774
  doc: e,
3775
3775
  name: t,
3776
3776
  defaultTheme: i,
@@ -3803,8 +3803,8 @@ function zs({
3803
3803
  defaultLanguage: t,
3804
3804
  defaultTheme: i
3805
3805
  }) {
3806
- const n = new pe({
3807
- key: new be("shiki"),
3806
+ const n = new be({
3807
+ key: new we("shiki"),
3808
3808
  view(a) {
3809
3809
  class o {
3810
3810
  constructor() {
@@ -3831,8 +3831,8 @@ function zs({
3831
3831
  );
3832
3832
  if ((await Promise.all(
3833
3833
  s.flatMap((d) => [
3834
- Pn(d.node.attrs.theme),
3835
- Dn(d.node.attrs.language)
3834
+ On(d.node.attrs.theme),
3835
+ Pn(d.node.attrs.language)
3836
3836
  ])
3837
3837
  )).includes(!0)) {
3838
3838
  const d = a.state.tr.setMeta("shikiPluginForceDecoration", !0);
@@ -3843,7 +3843,7 @@ function zs({
3843
3843
  return new o();
3844
3844
  },
3845
3845
  state: {
3846
- init: (a, { doc: o }) => Pi({
3846
+ init: (a, { doc: o }) => Ri({
3847
3847
  doc: o,
3848
3848
  name: e,
3849
3849
  defaultLanguage: t,
@@ -3857,7 +3857,7 @@ function zs({
3857
3857
  s.doc,
3858
3858
  (g) => g.type.name === e
3859
3859
  ), f = a.docChanged && ([h, l].includes(e) || m.length !== d.length || a.steps.some((g) => g.from !== void 0 && g.to !== void 0 && d.some((x) => x.pos >= g.from && x.pos + x.node.nodeSize <= g.to)));
3860
- return a.getMeta("shikiPluginForceDecoration") || f ? Pi({
3860
+ return a.getMeta("shikiPluginForceDecoration") || f ? Ri({
3861
3861
  doc: a.doc,
3862
3862
  name: e,
3863
3863
  defaultLanguage: t,
@@ -3877,12 +3877,12 @@ function Hs({ action: e, languages: t, ...i }) {
3877
3877
  const n = (o) => {
3878
3878
  e(o);
3879
3879
  }, a = O(() => t == null ? void 0 : t.map((o) => ({
3880
- title: ro[o] || o,
3880
+ title: no[o] || o,
3881
3881
  // icon: language.icon,
3882
3882
  language: o
3883
3883
  })), [t]);
3884
- return /* @__PURE__ */ u(pn, { children: [
3885
- /* @__PURE__ */ r(hi, { disabled: i == null ? void 0 : i.disabled, asChild: !0, children: /* @__PURE__ */ r(
3884
+ return /* @__PURE__ */ u(_e, { children: [
3885
+ /* @__PURE__ */ r(ve, { disabled: i == null ? void 0 : i.disabled, asChild: !0, children: /* @__PURE__ */ r(
3886
3886
  _,
3887
3887
  {
3888
3888
  tooltip: i == null ? void 0 : i.tooltip,
@@ -3890,18 +3890,10 @@ function Hs({ action: e, languages: t, ...i }) {
3890
3890
  icon: i == null ? void 0 : i.icon
3891
3891
  }
3892
3892
  ) }),
3893
- /* @__PURE__ */ r(ui, { className: "richtext-w-full richtext-max-h-60 richtext-overflow-y-auto", children: a == null ? void 0 : a.map((o) => /* @__PURE__ */ r(
3894
- Nt,
3895
- {
3896
- value: o.language,
3897
- onClick: () => n(o.language),
3898
- children: /* @__PURE__ */ r("div", { className: "richtext-h-full richtext-ml-1", children: o.title })
3899
- },
3900
- `codeblock-${o.title}`
3901
- )) })
3893
+ /* @__PURE__ */ r(pe, { className: "richtext-w-full !richtext-max-h-[180px] !richtext-overflow-y-scroll", children: a == null ? void 0 : a.map((o) => /* @__PURE__ */ r(le, { onClick: () => n(o.language), children: /* @__PURE__ */ r("div", { className: "richtext-h-full richtext-ml-1", children: o.title }) }, `codeblock-${o.title}`)) })
3902
3894
  ] });
3903
3895
  }
3904
- const Es = "_wrap_17npv_1", Rs = "_maxHeight_17npv_10", Os = "_btnCopy_17npv_13", Ps = "_btnDelete_17npv_14", Ds = "_blockInfo_17npv_18", $s = "_selectLang_17npv_28", Bs = "_copied_17npv_54", ye = {
3896
+ const Es = "_wrap_17npv_1", Rs = "_maxHeight_17npv_10", Os = "_btnCopy_17npv_13", Ps = "_btnDelete_17npv_14", Ds = "_blockInfo_17npv_18", $s = "_selectLang_17npv_28", Bs = "_copied_17npv_54", Ce = {
3905
3897
  wrap: Es,
3906
3898
  maxHeight: Rs,
3907
3899
  btnCopy: Os,
@@ -3925,23 +3917,23 @@ function Fs({ editor: e, node: { attrs: t }, updateAttributes: i, extension: n }
3925
3917
  var f, g;
3926
3918
  const { isCopied: a, copyToClipboard: o } = js(), c = O(() => {
3927
3919
  var x;
3928
- return (x = n.options.languages) != null && x.length ? n.options.languages : dn;
3920
+ return (x = n.options.languages) != null && x.length ? n.options.languages : sn;
3929
3921
  }, [n.options.languages]), s = e.isEditable, h = (g = (f = e == null ? void 0 : e.options) == null ? void 0 : f.editorProps) == null ? void 0 : g.print, { language: l } = t, d = X(), m = M(() => at(Us.name, e), [e]);
3930
- return /* @__PURE__ */ u(ne, { className: ee(ye.wrap, !h && ye.maxHeight, "render-wrapper"), children: [
3931
- /* @__PURE__ */ u("div", { className: ye.blockInfo, children: [
3922
+ return /* @__PURE__ */ u(ne, { className: ee(Ce.wrap, !h && Ce.maxHeight, "render-wrapper"), children: [
3923
+ /* @__PURE__ */ u("div", { className: Ce.blockInfo, children: [
3932
3924
  /* @__PURE__ */ r(
3933
3925
  "span",
3934
3926
  {
3935
3927
  onClick: () => o(d.current.innerText),
3936
- className: ee(ye.btnCopy, a && ye.copied),
3937
- children: a ? /* @__PURE__ */ r(Yr, { size: 16 }) : /* @__PURE__ */ r(en, { size: 16 })
3928
+ className: ee(Ce.btnCopy, a && Ce.copied),
3929
+ children: a ? /* @__PURE__ */ r(Xr, { size: 16 }) : /* @__PURE__ */ r(Yi, { size: 16 })
3938
3930
  }
3939
3931
  ),
3940
3932
  /* @__PURE__ */ r(
3941
3933
  "span",
3942
3934
  {
3943
3935
  onClick: m,
3944
- className: ye.btnDelete,
3936
+ className: Ce.btnDelete,
3945
3937
  children: /* @__PURE__ */ r(
3946
3938
  D,
3947
3939
  {
@@ -3950,26 +3942,26 @@ function Fs({ editor: e, node: { attrs: t }, updateAttributes: i, extension: n }
3950
3942
  )
3951
3943
  }
3952
3944
  ),
3953
- /* @__PURE__ */ r("div", { className: ye.selectLang, children: /* @__PURE__ */ u(
3954
- pn,
3945
+ /* @__PURE__ */ r("div", { className: Ce.selectLang, children: /* @__PURE__ */ u(
3946
+ So,
3955
3947
  {
3956
3948
  defaultValue: l || "auto",
3957
3949
  disabled: !s,
3958
3950
  onValueChange: (x) => i({ language: x }),
3959
3951
  children: [
3960
- /* @__PURE__ */ r(hi, { children: /* @__PURE__ */ r(Mo, { placeholder: "Language" }) }),
3961
- /* @__PURE__ */ u(ui, { className: "richtext-max-h-60 richtext-overflow-y-auto", children: [
3962
- /* @__PURE__ */ r(Nt, { value: "auto", children: "Auto" }),
3963
- c.map((x, b) => /* @__PURE__ */ r(Nt, { value: x, children: x.charAt(0).toUpperCase() + x.slice(1) }, `code-lang-${b}`))
3952
+ /* @__PURE__ */ r(gn, { children: /* @__PURE__ */ r(Mo, { placeholder: "Language" }) }),
3953
+ /* @__PURE__ */ u(bn, { className: "richtext-max-h-60 richtext-overflow-y-auto", children: [
3954
+ /* @__PURE__ */ r(Wt, { value: "auto", children: "Auto" }),
3955
+ c.map((x, b) => /* @__PURE__ */ r(Wt, { value: x, children: x.charAt(0).toUpperCase() + x.slice(1) }, `code-lang-${b}`))
3964
3956
  ] })
3965
3957
  ]
3966
3958
  }
3967
3959
  ) })
3968
3960
  ] }),
3969
- /* @__PURE__ */ r("pre", { ref: d, children: /* @__PURE__ */ r(xa, { as: "code" }) })
3961
+ /* @__PURE__ */ r("pre", { ref: d, children: /* @__PURE__ */ r(ga, { as: "code" }) })
3970
3962
  ] });
3971
3963
  }
3972
- const Us = pa.extend({
3964
+ const Us = xa.extend({
3973
3965
  addOptions() {
3974
3966
  var e;
3975
3967
  return {
@@ -3977,7 +3969,7 @@ const Us = pa.extend({
3977
3969
  languages: [],
3978
3970
  button: ({ editor: t, t: i, extension: n }) => {
3979
3971
  var o, c, s;
3980
- const a = (c = (o = n == null ? void 0 : n.options) == null ? void 0 : o.languages) != null && c.length ? (s = n == null ? void 0 : n.options) == null ? void 0 : s.languages : dn;
3972
+ const a = (c = (o = n == null ? void 0 : n.options) == null ? void 0 : o.languages) != null && c.length ? (s = n == null ? void 0 : n.options) == null ? void 0 : s.languages : sn;
3981
3973
  return {
3982
3974
  component: Hs,
3983
3975
  componentProps: {
@@ -3995,7 +3987,7 @@ const Us = pa.extend({
3995
3987
  };
3996
3988
  },
3997
3989
  addNodeView() {
3998
- return ue(Fs);
3990
+ return me(Fs);
3999
3991
  },
4000
3992
  addProseMirrorPlugins() {
4001
3993
  var e;
@@ -4024,8 +4016,8 @@ function Vs(e) {
4024
4016
  action: () => e.editor.chain().focus().unsetFontFamily().run()
4025
4017
  };
4026
4018
  }, [t, i, e]);
4027
- return /* @__PURE__ */ u(Ae, { children: [
4028
- /* @__PURE__ */ r(Se, { disabled: e == null ? void 0 : e.disabled, asChild: !0, children: /* @__PURE__ */ r(
4019
+ return /* @__PURE__ */ u(_e, { children: [
4020
+ /* @__PURE__ */ r(ve, { disabled: e == null ? void 0 : e.disabled, asChild: !0, children: /* @__PURE__ */ r(
4029
4021
  si,
4030
4022
  {
4031
4023
  title: ((a = n == null ? void 0 : n.font) == null ? void 0 : a.length) > 7 ? `${(o = n == null ? void 0 : n.font) == null ? void 0 : o.slice(0, 6)}...` : n == null ? void 0 : n.font,
@@ -4034,21 +4026,21 @@ function Vs(e) {
4034
4026
  icon: "MenuDown"
4035
4027
  }
4036
4028
  ) }),
4037
- /* @__PURE__ */ r(we, { className: "richtext-w-full", children: (c = e == null ? void 0 : e.items) == null ? void 0 : c.map((s, h) => {
4029
+ /* @__PURE__ */ r(pe, { className: "richtext-w-full", children: (c = e == null ? void 0 : e.items) == null ? void 0 : c.map((s, h) => {
4038
4030
  const l = s.font === t("editor.fontFamily.default.tooltip") ? {} : { fontFamily: s.font };
4039
4031
  return /* @__PURE__ */ u(nt, { children: [
4040
4032
  /* @__PURE__ */ r(Me, { checked: (n == null ? void 0 : n.font) === s.font, onClick: s.action, children: /* @__PURE__ */ r("div", { className: "richtext-h-full richtext-ml-1", style: l, children: s.font }) }),
4041
- s.font === t("editor.fontFamily.default.tooltip") && /* @__PURE__ */ r(zt, {})
4033
+ s.font === t("editor.fontFamily.default.tooltip") && /* @__PURE__ */ r(It, {})
4042
4034
  ] }, `font-family-${h}`);
4043
4035
  }) })
4044
4036
  ] });
4045
4037
  }
4046
- const Sh = ba.extend({
4038
+ const Sh = pa.extend({
4047
4039
  addOptions() {
4048
4040
  var e;
4049
4041
  return {
4050
4042
  ...(e = this.parent) == null ? void 0 : e.call(this),
4051
- fontFamilyList: ao,
4043
+ fontFamilyList: ro,
4052
4044
  button({ editor: t, extension: i, t: n }) {
4053
4045
  var l;
4054
4046
  const { extensions: a = [] } = t.extensionManager ?? [], o = qt(((l = i == null ? void 0 : i.options) == null ? void 0 : l.fontFamilyList) || []), c = a.find(
@@ -4096,8 +4088,8 @@ function Ws(e) {
4096
4088
  isActive: () => !1
4097
4089
  };
4098
4090
  }, [e]);
4099
- return /* @__PURE__ */ u(Ae, { children: [
4100
- /* @__PURE__ */ r(Se, { disabled: e == null ? void 0 : e.disabled, asChild: !0, children: /* @__PURE__ */ r(
4091
+ return /* @__PURE__ */ u(_e, { children: [
4092
+ /* @__PURE__ */ r(ve, { disabled: e == null ? void 0 : e.disabled, asChild: !0, children: /* @__PURE__ */ r(
4101
4093
  si,
4102
4094
  {
4103
4095
  title: t == null ? void 0 : t.title,
@@ -4106,7 +4098,7 @@ function Ws(e) {
4106
4098
  icon: "MenuDown"
4107
4099
  }
4108
4100
  ) }),
4109
- /* @__PURE__ */ r(we, { className: "richtext-w-full", children: (i = e == null ? void 0 : e.items) == null ? void 0 : i.map((n, a) => {
4101
+ /* @__PURE__ */ r(pe, { className: "richtext-w-full", children: (i = e == null ? void 0 : e.items) == null ? void 0 : i.map((n, a) => {
4110
4102
  var o, c;
4111
4103
  return /* @__PURE__ */ u(nt, { children: [
4112
4104
  /* @__PURE__ */ u(
@@ -4116,16 +4108,16 @@ function Ws(e) {
4116
4108
  onClick: n.action,
4117
4109
  children: [
4118
4110
  /* @__PURE__ */ r("div", { className: `richtext-ml-1 richtext-h-full heading-${n.level}`, children: n.title }),
4119
- !!((o = n == null ? void 0 : n.shortcutKeys) != null && o.length) && /* @__PURE__ */ r(xn, { className: "richtext-pl-4", children: (c = n == null ? void 0 : n.shortcutKeys) == null ? void 0 : c.map((s) => Mt(s)).join(" ") })
4111
+ !!((o = n == null ? void 0 : n.shortcutKeys) != null && o.length) && /* @__PURE__ */ r(fn, { className: "richtext-pl-4", children: (c = n == null ? void 0 : n.shortcutKeys) == null ? void 0 : c.map((s) => St(s)).join(" ") })
4120
4112
  ]
4121
4113
  }
4122
4114
  ),
4123
- n.level === 0 && /* @__PURE__ */ r(zt, {})
4115
+ n.level === 0 && /* @__PURE__ */ r(It, {})
4124
4116
  ] }, `heading-k-${a}`);
4125
4117
  }) })
4126
4118
  ] });
4127
4119
  }
4128
- const Mh = wa.extend({
4120
+ const Mh = ba.extend({
4129
4121
  addOptions() {
4130
4122
  var e;
4131
4123
  return {
@@ -4212,7 +4204,7 @@ function qs(e) {
4212
4204
  ) }),
4213
4205
  /* @__PURE__ */ u(Ie, { className: "richtext-flex richtext-flex-col richtext-items-center", children: [
4214
4206
  /* @__PURE__ */ r("span", { children: n.title }),
4215
- !!((o = n.shortcutKeys) != null && o.length) && /* @__PURE__ */ r("span", { children: (c = n.shortcutKeys) == null ? void 0 : c.map((s) => Mt(s)).join(" ") })
4207
+ !!((o = n.shortcutKeys) != null && o.length) && /* @__PURE__ */ r("span", { children: (c = n.shortcutKeys) == null ? void 0 : c.map((s) => St(s)).join(" ") })
4216
4208
  ] })
4217
4209
  ] }, `text-align-${a}`);
4218
4210
  })
@@ -4220,7 +4212,7 @@ function qs(e) {
4220
4212
  )
4221
4213
  ] });
4222
4214
  }
4223
- const Ih = _a.extend({
4215
+ const Ih = wa.extend({
4224
4216
  addOptions() {
4225
4217
  var e;
4226
4218
  return {
@@ -4278,8 +4270,8 @@ function Ks(e) {
4278
4270
  isActive: () => !1
4279
4271
  };
4280
4272
  }, [e]);
4281
- return /* @__PURE__ */ u(Ae, { children: [
4282
- /* @__PURE__ */ r(Se, { disabled: e == null ? void 0 : e.disabled, asChild: !0, children: /* @__PURE__ */ r(
4273
+ return /* @__PURE__ */ u(_e, { children: [
4274
+ /* @__PURE__ */ r(ve, { disabled: e == null ? void 0 : e.disabled, asChild: !0, children: /* @__PURE__ */ r(
4283
4275
  si,
4284
4276
  {
4285
4277
  title: i == null ? void 0 : i.title,
@@ -4288,7 +4280,7 @@ function Ks(e) {
4288
4280
  icon: "MenuDown"
4289
4281
  }
4290
4282
  ) }),
4291
- /* @__PURE__ */ r(we, { className: "richtext-w-32 richtext-overflow-y-auto richtext-max-h-96", children: (n = e == null ? void 0 : e.items) == null ? void 0 : n.map((a, o) => /* @__PURE__ */ r(
4283
+ /* @__PURE__ */ r(pe, { className: "richtext-w-32 richtext-overflow-y-auto richtext-max-h-96", children: (n = e == null ? void 0 : e.items) == null ? void 0 : n.map((a, o) => /* @__PURE__ */ r(
4292
4284
  Me,
4293
4285
  {
4294
4286
  checked: i.title === a.title,
@@ -4306,10 +4298,10 @@ const zh = Z.create({
4306
4298
  return {
4307
4299
  ...(e = this.parent) == null ? void 0 : e.call(this),
4308
4300
  types: ["textStyle"],
4309
- fontSizes: [...oo],
4301
+ fontSizes: [...ao],
4310
4302
  button({ editor: t, extension: i, t: n }) {
4311
4303
  var h;
4312
- const a = qt(((h = i.options) == null ? void 0 : h.fontSizes) || Ni), o = qt([Ni])[0], c = a.map((l) => ({
4304
+ const a = qt(((h = i.options) == null ? void 0 : h.fontSizes) || ki), o = qt([ki])[0], c = a.map((l) => ({
4313
4305
  title: l.value === o.value ? n("editor.fontSize.default.tooltip") : String(l.name),
4314
4306
  isActive: () => {
4315
4307
  const { fontSize: d } = t.getAttributes("textStyle");
@@ -4422,7 +4414,7 @@ function Zs(e) {
4422
4414
  return /* @__PURE__ */ u("div", { className: "richtext-flex richtext-items-center richtext-h-[32px]", children: [
4423
4415
  /* @__PURE__ */ r(_, { tooltip: e == null ? void 0 : e.tooltip, disabled: e == null ? void 0 : e.disabled, action: a, children: /* @__PURE__ */ r("span", { className: "richtext-flex richtext-items-center richtext-justify-center richtext-text-sm", children: /* @__PURE__ */ r(Gs, { fill: t }) }) }),
4424
4416
  /* @__PURE__ */ r(
4425
- Tn,
4417
+ Nn,
4426
4418
  {
4427
4419
  selectedColor: t,
4428
4420
  setSelectedColor: o,
@@ -4435,7 +4427,7 @@ function Zs(e) {
4435
4427
  )
4436
4428
  ] });
4437
4429
  }
4438
- const Hh = va.extend({
4430
+ const Hh = _a.extend({
4439
4431
  addOptions() {
4440
4432
  var e;
4441
4433
  return {
@@ -4461,14 +4453,14 @@ const Hh = va.extend({
4461
4453
  }
4462
4454
  };
4463
4455
  }
4464
- }), Eh = ya.extend({
4456
+ }), Eh = va.extend({
4465
4457
  addOptions() {
4466
4458
  var e;
4467
4459
  return {
4468
4460
  ...(e = this.parent) == null ? void 0 : e.call(this),
4469
4461
  multicolor: !0,
4470
4462
  button: ({ editor: t, t: i }) => ({
4471
- component: Rn,
4463
+ component: En,
4472
4464
  componentProps: {
4473
4465
  action: (n) => {
4474
4466
  typeof n == "string" && t.chain().focus().setHighlight({ color: n }).run(), n === void 0 && t.chain().focus().unsetHighlight().run();
@@ -4482,7 +4474,7 @@ const Hh = va.extend({
4482
4474
  })
4483
4475
  };
4484
4476
  }
4485
- }), Rh = ka.extend({
4477
+ }), Rh = ya.extend({
4486
4478
  addOptions() {
4487
4479
  var e;
4488
4480
  return {
@@ -4517,7 +4509,7 @@ const Hh = va.extend({
4517
4509
  })
4518
4510
  };
4519
4511
  }
4520
- }), Ph = Ca.extend({
4512
+ }), Ph = ka.extend({
4521
4513
  addOptions() {
4522
4514
  var e;
4523
4515
  return {
@@ -4535,7 +4527,7 @@ const Hh = va.extend({
4535
4527
  })
4536
4528
  };
4537
4529
  }
4538
- }), Dh = Na.extend({
4530
+ }), Dh = Ca.extend({
4539
4531
  addOptions() {
4540
4532
  var e;
4541
4533
  return {
@@ -4562,9 +4554,9 @@ const Hh = va.extend({
4562
4554
  };
4563
4555
  },
4564
4556
  addExtensions() {
4565
- return [Ta.configure(this.options.taskItem)];
4557
+ return [Na.configure(this.options.taskItem)];
4566
4558
  }
4567
- }), $h = La.extend({
4559
+ }), $h = Ta.extend({
4568
4560
  addOptions() {
4569
4561
  var e;
4570
4562
  return {
@@ -4600,10 +4592,10 @@ function Js(e) {
4600
4592
  children: /* @__PURE__ */ r(D, { name: e == null ? void 0 : e.icon })
4601
4593
  }
4602
4594
  ) }),
4603
- /* @__PURE__ */ r(ie, { hideWhenDetached: !0, className: "richtext-w-full", align: "start", side: "bottom", children: /* @__PURE__ */ r(On, { editor: e.editor, onSetLink: t }) })
4595
+ /* @__PURE__ */ r(ie, { hideWhenDetached: !0, className: "richtext-w-full", align: "start", side: "bottom", children: /* @__PURE__ */ r(Rn, { editor: e.editor, onSetLink: t }) })
4604
4596
  ] });
4605
4597
  }
4606
- const Bh = Aa.extend({
4598
+ const Bh = La.extend({
4607
4599
  inclusive: !1,
4608
4600
  parseHTML() {
4609
4601
  return [
@@ -4657,20 +4649,20 @@ const Bh = Aa.extend({
4657
4649
  },
4658
4650
  addProseMirrorPlugins() {
4659
4651
  return [
4660
- new pe({
4652
+ new be({
4661
4653
  props: {
4662
4654
  handleClick: (e, t) => {
4663
- const { schema: i, doc: n, tr: a } = e.state, o = Sa(n.resolve(t), i.marks.link);
4655
+ const { schema: i, doc: n, tr: a } = e.state, o = Aa(n.resolve(t), i.marks.link);
4664
4656
  if (!o)
4665
4657
  return !1;
4666
- const c = n.resolve(o.from), s = n.resolve(o.to), h = a.setSelection(new Te(c, s));
4658
+ const c = n.resolve(o.from), s = n.resolve(o.to), h = a.setSelection(new Ae(c, s));
4667
4659
  e.dispatch(h);
4668
4660
  }
4669
4661
  }
4670
4662
  })
4671
4663
  ];
4672
4664
  }
4673
- }), jh = Ma.extend({
4665
+ }), jh = Sa.extend({
4674
4666
  renderHTML() {
4675
4667
  return [
4676
4668
  "div",
@@ -4734,11 +4726,11 @@ function Xs(e) {
4734
4726
  ) }),
4735
4727
  i && /* @__PURE__ */ r(Ie, { ...a, children: /* @__PURE__ */ u("div", { className: "richtext-flex richtext-flex-col richtext-items-center richtext-text-center richtext-max-w-24", children: [
4736
4728
  /* @__PURE__ */ r("div", { children: i }),
4737
- !!((l = e == null ? void 0 : e.shortcutKeys) != null && l.length) && /* @__PURE__ */ r("span", { children: It(e == null ? void 0 : e.shortcutKeys) })
4729
+ !!((l = e == null ? void 0 : e.shortcutKeys) != null && l.length) && /* @__PURE__ */ r("span", { children: Mt(e == null ? void 0 : e.shortcutKeys) })
4738
4730
  ] }) })
4739
4731
  ] });
4740
4732
  }
4741
- const Ys = ["undo", "redo"], Fh = Ia.extend({
4733
+ const Ys = ["undo", "redo"], Fh = Ma.extend({
4742
4734
  addOptions() {
4743
4735
  var e;
4744
4736
  return {
@@ -4760,7 +4752,7 @@ const Ys = ["undo", "redo"], Fh = Ia.extend({
4760
4752
  }))
4761
4753
  };
4762
4754
  }
4763
- }), Qs = za.extend({
4755
+ }), Qs = Ia.extend({
4764
4756
  content: "(block|columns)+"
4765
4757
  // echo editor is a block editor
4766
4758
  });
@@ -4784,12 +4776,12 @@ function il(e, t, i = null) {
4784
4776
  }
4785
4777
  return n.columns.createChecked({ cols: t }, a);
4786
4778
  }
4787
- function $t({
4779
+ function Dt({
4788
4780
  state: e,
4789
4781
  dispatch: t,
4790
4782
  type: i
4791
4783
  }) {
4792
- const n = vt((o) => o.type.name === it.name)(e.selection), a = vt((o) => o.type.name === bi.name)(e.selection);
4784
+ const n = vt((o) => o.type.name === it.name)(e.selection), a = vt((o) => o.type.name === xi.name)(e.selection);
4793
4785
  if (t && n && a) {
4794
4786
  const o = n.node, c = a.node.attrs.index, s = o.toJSON();
4795
4787
  let h = c;
@@ -4806,20 +4798,20 @@ function $t({
4806
4798
  })), s.attrs.cols = s.content.length, s.content.forEach((f, g) => {
4807
4799
  f.attrs.index = g;
4808
4800
  });
4809
- const l = Ya.fromJSON(e.schema, s);
4801
+ const l = Xa.fromJSON(e.schema, s);
4810
4802
  let d = n.pos;
4811
4803
  l.content.forEach((f, g, x) => {
4812
4804
  x < h && (d += f.nodeSize);
4813
4805
  });
4814
4806
  const m = e.tr.setTime(Date.now());
4815
4807
  m.replaceWith(n.pos, n.pos + n.node.nodeSize, l).setSelection(
4816
- Te.near(m.doc.resolve(d))
4808
+ Ae.near(m.doc.resolve(d))
4817
4809
  ), t(m);
4818
4810
  }
4819
4811
  return !0;
4820
4812
  }
4821
- function Di({ state: e, dispatch: t, type: i }) {
4822
- const n = vt((o) => o.type.name === it.name)(e.selection), a = vt((o) => o.type.name === bi.name)(e.selection);
4813
+ function Oi({ state: e, dispatch: t, type: i }) {
4814
+ const n = vt((o) => o.type.name === it.name)(e.selection), a = vt((o) => o.type.name === xi.name)(e.selection);
4823
4815
  if (t && n && a) {
4824
4816
  const o = n.node, c = a.node.attrs.index;
4825
4817
  let s = 0;
@@ -4829,7 +4821,7 @@ function Di({ state: e, dispatch: t, type: i }) {
4829
4821
  f < s && (h += d.nodeSize);
4830
4822
  });
4831
4823
  const l = e.tr.setTime(Date.now());
4832
- return l.setSelection(Te.near(l.doc.resolve(h))), t(l), !0;
4824
+ return l.setSelection(Ae.near(l.doc.resolve(h))), t(l), !0;
4833
4825
  }
4834
4826
  return !1;
4835
4827
  }
@@ -4872,31 +4864,31 @@ const nl = 200, it = ce.create({
4872
4864
  const a = il(n.schema, e && e.cols || 3);
4873
4865
  if (i) {
4874
4866
  const o = t.selection.anchor + 1;
4875
- t.replaceSelectionWith(a).scrollIntoView().setSelection(Te.near(t.doc.resolve(o)));
4867
+ t.replaceSelectionWith(a).scrollIntoView().setSelection(Ae.near(t.doc.resolve(o)));
4876
4868
  }
4877
4869
  return !0;
4878
4870
  },
4879
- addColBefore: () => ({ dispatch: e, state: t }) => $t({ dispatch: e, state: t, type: "addBefore" }),
4880
- addColAfter: () => ({ dispatch: e, state: t }) => $t({ dispatch: e, state: t, type: "addAfter" }),
4881
- deleteCol: () => ({ dispatch: e, state: t }) => $t({ dispatch: e, state: t, type: "delete" })
4871
+ addColBefore: () => ({ dispatch: e, state: t }) => Dt({ dispatch: e, state: t, type: "addBefore" }),
4872
+ addColAfter: () => ({ dispatch: e, state: t }) => Dt({ dispatch: e, state: t, type: "addAfter" }),
4873
+ deleteCol: () => ({ dispatch: e, state: t }) => Dt({ dispatch: e, state: t, type: "delete" })
4882
4874
  };
4883
4875
  },
4884
4876
  addKeyboardShortcuts() {
4885
4877
  return {
4886
4878
  "Mod-Alt-G": () => this.editor.commands.insertColumns(),
4887
- Tab: () => Di({
4879
+ Tab: () => Oi({
4888
4880
  state: this.editor.state,
4889
4881
  dispatch: this.editor.view.dispatch,
4890
4882
  type: "after"
4891
4883
  }),
4892
- "Shift-Tab": () => Di({
4884
+ "Shift-Tab": () => Oi({
4893
4885
  state: this.editor.state,
4894
4886
  dispatch: this.editor.view.dispatch,
4895
4887
  type: "before"
4896
4888
  })
4897
4889
  };
4898
4890
  }
4899
- }), bi = ce.create({
4891
+ }), xi = ce.create({
4900
4892
  name: "column",
4901
4893
  content: "block+",
4902
4894
  isolating: !0,
@@ -4948,8 +4940,8 @@ const nl = 200, it = ce.create({
4948
4940
  addProseMirrorPlugins() {
4949
4941
  const { editor: e } = this;
4950
4942
  return [
4951
- new pe({
4952
- key: new be("selection"),
4943
+ new be({
4944
+ key: new we("selection"),
4953
4945
  props: {
4954
4946
  decorations(t) {
4955
4947
  return t.selection.empty || e.isFocused === !0 ? null : De.create(t.doc, [
@@ -5031,15 +5023,15 @@ function al(e) {
5031
5023
  ], [e.editor, t]), n = O(() => i.filter((a) => a.isActive()).pop() ?? {
5032
5024
  label: "Empty"
5033
5025
  }, [i]);
5034
- return /* @__PURE__ */ u(Ae, { children: [
5035
- /* @__PURE__ */ r(Se, { asChild: !0, children: /* @__PURE__ */ u(U, { variant: "ghost", className: "richtext-h-[32px] richtext-flex richtext-gap-1 richtext-px-1.5", children: [
5026
+ return /* @__PURE__ */ u(_e, { children: [
5027
+ /* @__PURE__ */ r(ve, { asChild: !0, children: /* @__PURE__ */ u(U, { variant: "ghost", className: "richtext-h-[32px] richtext-flex richtext-gap-1 richtext-px-1.5", children: [
5036
5028
  /* @__PURE__ */ u("span", { className: "richtext-text-sm richtext-font-normal richtext-whitespace-nowrap", children: [
5037
5029
  " ",
5038
5030
  n == null ? void 0 : n.label
5039
5031
  ] }),
5040
- /* @__PURE__ */ r(At, { className: "richtext-w-4 richtext-h-4" })
5032
+ /* @__PURE__ */ r(Lt, { className: "richtext-w-4 richtext-h-4" })
5041
5033
  ] }) }),
5042
- /* @__PURE__ */ r(we, { hideWhenDetached: !0, className: "richtext-w-full richtext-p-1", align: "start", sideOffset: 5, children: i.map((a, o) => {
5034
+ /* @__PURE__ */ r(pe, { hideWhenDetached: !0, className: "richtext-w-full richtext-p-1", align: "start", sideOffset: 5, children: i.map((a, o) => {
5043
5035
  var s;
5044
5036
  const c = ut[a.iconName];
5045
5037
  return /* @__PURE__ */ r(
@@ -5075,7 +5067,7 @@ const ol = Z.create({
5075
5067
  };
5076
5068
  }
5077
5069
  });
5078
- function $i({ types: e, node: t }) {
5070
+ function Pi({ types: e, node: t }) {
5079
5071
  return Array.isArray(e) && e.includes(t.type) || t.type === e;
5080
5072
  }
5081
5073
  const cl = Z.create({
@@ -5087,9 +5079,9 @@ const cl = Z.create({
5087
5079
  };
5088
5080
  },
5089
5081
  addProseMirrorPlugins() {
5090
- const e = new be(this.name), t = Object.entries(this.editor.schema.nodes).map(([, i]) => i).filter((i) => this.options.notAfter.includes(i.name));
5082
+ const e = new we(this.name), t = Object.entries(this.editor.schema.nodes).map(([, i]) => i).filter((i) => this.options.notAfter.includes(i.name));
5091
5083
  return [
5092
- new pe({
5084
+ new be({
5093
5085
  key: e,
5094
5086
  appendTransaction: (i, n, a) => {
5095
5087
  const { doc: o, tr: c, schema: s } = a, h = e.getState(a), l = o.content.size, d = s.nodes[this.options.node];
@@ -5099,13 +5091,13 @@ const cl = Z.create({
5099
5091
  state: {
5100
5092
  init: (i, n) => {
5101
5093
  const a = n.tr.doc.lastChild;
5102
- return !$i({ node: a, types: t });
5094
+ return !Pi({ node: a, types: t });
5103
5095
  },
5104
5096
  apply: (i, n) => {
5105
5097
  if (!i.docChanged)
5106
5098
  return n;
5107
5099
  const a = i.doc.lastChild;
5108
- return !$i({ node: a, types: t });
5100
+ return !Pi({ node: a, types: t });
5109
5101
  }
5110
5102
  }
5111
5103
  })
@@ -5116,7 +5108,7 @@ const cl = Z.create({
5116
5108
  addExtensions() {
5117
5109
  const e = [];
5118
5110
  return this.options.document !== !1 && e.push(Qs.configure()), this.options.placeholder !== !1 && e.push(
5119
- Ha.configure({
5111
+ za.configure({
5120
5112
  placeholder: ({ node: t, pos: i, editor: n }) => {
5121
5113
  var a, o, c, s;
5122
5114
  return ((a = t == null ? void 0 : t.type) == null ? void 0 : a.name) === "columns" ? "" : ((o = t == null ? void 0 : t.type) == null ? void 0 : o.name) === "heading" ? `${W.t(`editor.heading.h${t.attrs.level}.tooltip`)}` : ((c = t == null ? void 0 : t.type) == null ? void 0 : c.name) === "codeBlock" || ((s = t == null ? void 0 : t.type) == null ? void 0 : s.name) === "table" ? "" : n.extensionManager.extensions.some((h) => h.name === "slashCommand") ? W.t("editor.slash") : i === 0 ? W.t("editor.content") : W.t("editor.content");
@@ -5124,17 +5116,17 @@ const cl = Z.create({
5124
5116
  ...this.options.placeholder
5125
5117
  })
5126
5118
  ), this.options.focus !== !1 && e.push(
5127
- Ea.configure({
5119
+ Ha.configure({
5128
5120
  className: "focus",
5129
5121
  ...this.options.focus
5130
5122
  })
5131
- ), this.options.text !== !1 && e.push(Ra.configure()), this.options.textBubble !== !1 && e.push(ol.configure()), this.options.gapcursor !== !1 && e.push(Oa.configure()), this.options.dropcursor !== !1 && e.push(
5132
- Pa.configure({
5123
+ ), this.options.text !== !1 && e.push(Ea.configure()), this.options.textBubble !== !1 && e.push(ol.configure()), this.options.gapcursor !== !1 && e.push(Ra.configure()), this.options.dropcursor !== !1 && e.push(
5124
+ Oa.configure({
5133
5125
  ...this.options.dropcursor,
5134
5126
  width: 2,
5135
5127
  class: "ProseMirror-dropcursor border-black"
5136
5128
  })
5137
- ), this.options.characterCount !== !1 && e.push(Da.configure(this.options.characterCount)), this.options.paragraph !== !1 && e.push($a.configure(this.options.paragraph)), this.options.hardBreak !== !1 && e.push(Ba.configure(this.options.hardBreak)), this.options.listItem !== !1 && e.push(ja.configure(this.options.listItem)), this.options.textStyle !== !1 && e.push(Fa.configure(this.options.textStyle)), this.options.trailingNode !== !1 && e.push(cl.configure(this.options.trailingNode)), this.options.selection !== !1 && e.push(rl), this.options.multiColumn !== !1 && (e.push(bi), e.push(it)), e;
5129
+ ), this.options.characterCount !== !1 && e.push(Pa.configure(this.options.characterCount)), this.options.paragraph !== !1 && e.push(Da.configure(this.options.paragraph)), this.options.hardBreak !== !1 && e.push($a.configure(this.options.hardBreak)), this.options.listItem !== !1 && e.push(Ba.configure(this.options.listItem)), this.options.textStyle !== !1 && e.push(ja.configure(this.options.textStyle)), this.options.trailingNode !== !1 && e.push(cl.configure(this.options.trailingNode)), this.options.selection !== !1 && e.push(rl), this.options.multiColumn !== !1 && (e.push(xi), e.push(it)), e;
5138
5130
  }
5139
5131
  }), Wh = Z.create({
5140
5132
  name: "subAndSuperScript",
@@ -5168,7 +5160,7 @@ const cl = Z.create({
5168
5160
  },
5169
5161
  addExtensions() {
5170
5162
  const e = [];
5171
- return this.options.subscript !== !1 && e.push(tn.configure(this.options.subscript)), this.options.superscript !== !1 && e.push(nn.configure(this.options.superscript)), e;
5163
+ return this.options.subscript !== !1 && e.push(Qi.configure(this.options.subscript)), this.options.superscript !== !1 && e.push(en.configure(this.options.superscript)), e;
5172
5164
  }
5173
5165
  });
5174
5166
  function sl(e) {
@@ -5185,18 +5177,18 @@ function sl(e) {
5185
5177
  isActive: () => !1
5186
5178
  };
5187
5179
  }, [e]);
5188
- return /* @__PURE__ */ u(Ae, { children: [
5189
- /* @__PURE__ */ r(Se, { disabled: e == null ? void 0 : e.disabled, asChild: !0, children: /* @__PURE__ */ r(
5180
+ return /* @__PURE__ */ u(_e, { children: [
5181
+ /* @__PURE__ */ r(ve, { disabled: e == null ? void 0 : e.disabled, asChild: !0, children: /* @__PURE__ */ r(
5190
5182
  _,
5191
5183
  {
5192
5184
  customClass: "!richtext-w-12 richtext-h-12",
5193
5185
  icon: e == null ? void 0 : e.icon,
5194
5186
  tooltip: e == null ? void 0 : e.tooltip,
5195
5187
  disabled: e == null ? void 0 : e.disabled,
5196
- children: /* @__PURE__ */ r(zn, { className: "richtext-w-3 richtext-h-3 richtext-text-gray-500" })
5188
+ children: /* @__PURE__ */ r(In, { className: "richtext-w-3 richtext-h-3 richtext-text-gray-500" })
5197
5189
  }
5198
5190
  ) }),
5199
- /* @__PURE__ */ r(we, { className: "w-full", children: (i = e == null ? void 0 : e.items) == null ? void 0 : i.map((n, a) => /* @__PURE__ */ u(
5191
+ /* @__PURE__ */ r(pe, { className: "w-full", children: (i = e == null ? void 0 : e.items) == null ? void 0 : i.map((n, a) => /* @__PURE__ */ u(
5200
5192
  Me,
5201
5193
  {
5202
5194
  checked: t.title === n.title,
@@ -5205,7 +5197,7 @@ function sl(e) {
5205
5197
  children: [
5206
5198
  /* @__PURE__ */ r(D, { name: n == null ? void 0 : n.icon }),
5207
5199
  /* @__PURE__ */ r("span", { className: "richtext-ml-1", children: n.title }),
5208
- !!(n != null && n.shortcutKeys) && /* @__PURE__ */ r("span", { className: "richtext-ml-auto richtext-text-xs richtext-tracking-widest richtext-opacity-60", children: It(n.shortcutKeys) })
5200
+ !!(n != null && n.shortcutKeys) && /* @__PURE__ */ r("span", { className: "richtext-ml-auto richtext-text-xs richtext-tracking-widest richtext-opacity-60", children: Mt(n.shortcutKeys) })
5209
5201
  ]
5210
5202
  },
5211
5203
  `more-mark-${a}`
@@ -5248,7 +5240,7 @@ const qh = Z.create({
5248
5240
  },
5249
5241
  addExtensions() {
5250
5242
  const e = [];
5251
- return this.options.subscript !== !1 && e.push(tn.configure(this.options.subscript)), this.options.superscript !== !1 && e.push(nn.configure(this.options.superscript)), e;
5243
+ return this.options.subscript !== !1 && e.push(Qi.configure(this.options.subscript)), this.options.superscript !== !1 && e.push(en.configure(this.options.superscript)), e;
5252
5244
  }
5253
5245
  }), Kh = Z.create({
5254
5246
  name: "indent",
@@ -5257,8 +5249,8 @@ const qh = Z.create({
5257
5249
  return {
5258
5250
  ...(e = this.parent) == null ? void 0 : e.call(this),
5259
5251
  types: ["paragraph", "heading", "blockquote"],
5260
- minIndent: Ce.min,
5261
- maxIndent: Ce.max,
5252
+ minIndent: Te.min,
5253
+ maxIndent: Te.max,
5262
5254
  button({ editor: t, t: i }) {
5263
5255
  return [
5264
5256
  {
@@ -5306,12 +5298,12 @@ const qh = Z.create({
5306
5298
  },
5307
5299
  addCommands() {
5308
5300
  return {
5309
- indent: () => Oi({
5310
- delta: Ce.more,
5301
+ indent: () => Ei({
5302
+ delta: Te.more,
5311
5303
  types: this.options.types
5312
5304
  }),
5313
- outdent: () => Oi({
5314
- delta: Ce.less,
5305
+ outdent: () => Ei({
5306
+ delta: Te.less,
5315
5307
  types: this.options.types
5316
5308
  })
5317
5309
  };
@@ -5343,8 +5335,8 @@ function dl(e) {
5343
5335
  value: "default"
5344
5336
  }), h;
5345
5337
  }, [e]);
5346
- return /* @__PURE__ */ u(Ae, { children: [
5347
- /* @__PURE__ */ r(Se, { disabled: e == null ? void 0 : e.disabled, asChild: !0, children: /* @__PURE__ */ r(
5338
+ return /* @__PURE__ */ u(_e, { children: [
5339
+ /* @__PURE__ */ r(ve, { disabled: e == null ? void 0 : e.disabled, asChild: !0, children: /* @__PURE__ */ r(
5348
5340
  _,
5349
5341
  {
5350
5342
  customClass: "!richtext-w-12 richtext-h-12",
@@ -5354,7 +5346,7 @@ function dl(e) {
5354
5346
  children: /* @__PURE__ */ r(D, { className: "richtext-w-3 richtext-h-3 richtext-ml-1 richtext-text-zinc-500", name: "MenuDown" })
5355
5347
  }
5356
5348
  ) }),
5357
- /* @__PURE__ */ r(we, { className: "richtext-min-w-24", children: o == null ? void 0 : o.map((c, s) => /* @__PURE__ */ r(
5349
+ /* @__PURE__ */ r(pe, { className: "richtext-min-w-24", children: o == null ? void 0 : o.map((c, s) => /* @__PURE__ */ r(
5358
5350
  Me,
5359
5351
  {
5360
5352
  checked: c.value === i,
@@ -5368,9 +5360,9 @@ function dl(e) {
5368
5360
  const hl = ["paragraph", "heading", "list_item", "todo_item"];
5369
5361
  function ul(e, t) {
5370
5362
  const { selection: i, doc: n } = e;
5371
- if (!i || !n || !(i instanceof Te || i instanceof on))
5363
+ if (!i || !n || !(i instanceof Ae || i instanceof rn))
5372
5364
  return e;
5373
- const { from: a, to: o } = i, c = [], s = t && t !== hn ? t : null;
5365
+ const { from: a, to: o } = i, c = [], s = t && t !== ln ? t : null;
5374
5366
  if (n.nodesBetween(a, o, (h, l) => {
5375
5367
  const d = h.type;
5376
5368
  return hl.includes(d.name) ? ((h.attrs.lineHeight || null) !== s && c.push({
@@ -5404,8 +5396,8 @@ const Gh = Z.create({
5404
5396
  return {
5405
5397
  ...(e = this.parent) == null ? void 0 : e.call(this),
5406
5398
  types: ["paragraph", "heading", "list_item", "todo_item"],
5407
- lineHeights: co,
5408
- defaultHeight: hn,
5399
+ lineHeights: oo,
5400
+ defaultHeight: ln,
5409
5401
  button({ editor: t, t: i }) {
5410
5402
  return {
5411
5403
  component: dl,
@@ -5558,7 +5550,7 @@ function fl(e) {
5558
5550
  function gl(e, t) {
5559
5551
  var k, L;
5560
5552
  const [i, n] = w(0), [a, o] = w(0), c = X(null), { t: s } = F(), h = X([]);
5561
- Lt(t, () => ({
5553
+ Tt(t, () => ({
5562
5554
  onKeyDown: l
5563
5555
  })), z(() => {
5564
5556
  if (!c.current)
@@ -5628,10 +5620,10 @@ function gl(e, t) {
5628
5620
  }
5629
5621
  );
5630
5622
  }
5631
- const xl = Tt(gl), ke = "slashCommand";
5623
+ const xl = Nt(gl), Ne = "slashCommand";
5632
5624
  let V;
5633
5625
  const Zh = Z.create({
5634
- name: ke,
5626
+ name: Ne,
5635
5627
  priority: 200,
5636
5628
  onCreate() {
5637
5629
  V = ai("body", {
@@ -5654,12 +5646,12 @@ const Zh = Z.create({
5654
5646
  },
5655
5647
  addProseMirrorPlugins() {
5656
5648
  return [
5657
- rn({
5649
+ tn({
5658
5650
  editor: this.editor,
5659
5651
  char: "/",
5660
5652
  allowSpaces: !0,
5661
5653
  startOfLine: !0,
5662
- pluginKey: new be(ke),
5654
+ pluginKey: new we(Ne),
5663
5655
  allow: ({ state: e, range: t }) => {
5664
5656
  var l, d, m;
5665
5657
  const i = e.doc.resolve(t.from), n = i.depth === 1, a = i.parent.type.name === "paragraph", o = ((l = i.parent.textContent) == null ? void 0 : l.charAt(0)) === "/", c = this.editor.isActive("column"), s = (m = i.parent.textContent) == null ? void 0 : m.slice(
@@ -5701,10 +5693,10 @@ const Zh = Z.create({
5701
5693
  });
5702
5694
  const { view: n } = i.editor, a = () => {
5703
5695
  if (!i.clientRect)
5704
- return i.editor.storage[ke].rect;
5696
+ return i.editor.storage[Ne].rect;
5705
5697
  const c = i.clientRect();
5706
5698
  if (!c)
5707
- return i.editor.storage[ke].rect;
5699
+ return i.editor.storage[Ne].rect;
5708
5700
  let s = c.y;
5709
5701
  if (c.top + e.element.offsetHeight + 40 > window.innerHeight) {
5710
5702
  const h = c.top + e.element.offsetHeight - window.innerHeight + 40;
@@ -5727,15 +5719,15 @@ const Zh = Z.create({
5727
5719
  e.updateProps(i);
5728
5720
  const { view: n } = i.editor, a = () => {
5729
5721
  if (!i.clientRect)
5730
- return i.editor.storage[ke].rect;
5722
+ return i.editor.storage[Ne].rect;
5731
5723
  const s = i.clientRect();
5732
- return s ? new DOMRect(s.x, s.y, s.width, s.height) : i.editor.storage[ke].rect;
5724
+ return s ? new DOMRect(s.x, s.y, s.width, s.height) : i.editor.storage[Ne].rect;
5733
5725
  }, o = () => {
5734
5726
  V == null || V[0].setProps({
5735
5727
  getReferenceClientRect: a
5736
5728
  });
5737
5729
  };
5738
- (c = n.dom.parentElement) == null || c.addEventListener("scroll", o), i.editor.storage[ke].rect = i.clientRect ? a() : {
5730
+ (c = n.dom.parentElement) == null || c.addEventListener("scroll", o), i.editor.storage[Ne].rect = i.clientRect ? a() : {
5739
5731
  width: 0,
5740
5732
  height: 0,
5741
5733
  left: 0,
@@ -5828,7 +5820,7 @@ function pl(e) {
5828
5820
  y.commands.setNodeSelection(R());
5829
5821
  }
5830
5822
  const b = M(
5831
- Ne(() => {
5823
+ Le(() => {
5832
5824
  const { editor: y } = e, { width: R } = getComputedStyle(y.view.dom);
5833
5825
  i((A) => ({
5834
5826
  ...A,
@@ -5853,10 +5845,10 @@ function pl(e) {
5853
5845
  });
5854
5846
  }
5855
5847
  const L = M(
5856
- Ne((y) => {
5848
+ Le((y) => {
5857
5849
  if (y.preventDefault(), y.stopPropagation(), !c)
5858
5850
  return;
5859
- const { x: R, w: A, dir: N } = h, B = (y.clientX - R) * (/l/.test(N) ? -1 : 1), S = cn(A + B, ni, t.width);
5851
+ const { x: R, w: A, dir: N } = h, B = (y.clientX - R) * (/l/.test(N) ? -1 : 1), S = an(A + B, ni, t.width);
5860
5852
  e.updateAttributes({
5861
5853
  width: S,
5862
5854
  height: null
@@ -5957,7 +5949,7 @@ const Jh = Qt.extend({
5957
5949
  };
5958
5950
  },
5959
5951
  addNodeView() {
5960
- return ue(pl);
5952
+ return me(pl);
5961
5953
  },
5962
5954
  addCommands() {
5963
5955
  var e;
@@ -6006,9 +5998,9 @@ const Jh = Qt.extend({
6006
5998
  }
6007
5999
  ];
6008
6000
  }
6009
- }), $e = new be("upload-image");
6001
+ }), $e = new we("upload-image");
6010
6002
  function bl() {
6011
- return new pe({
6003
+ return new be({
6012
6004
  key: $e,
6013
6005
  state: {
6014
6006
  init() {
@@ -6046,7 +6038,7 @@ function _l(e, t) {
6046
6038
  const n = $e.getState(e).find(void 0, void 0, (o) => o.id === t);
6047
6039
  return n.length > 0 ? (a = n[0]) == null ? void 0 : a.from : null;
6048
6040
  }
6049
- function wi({ validateFn: e, onUpload: t, postUpload: i }) {
6041
+ function pi({ validateFn: e, onUpload: t, postUpload: i }) {
6050
6042
  return (n, a, o) => {
6051
6043
  for (const c of n) {
6052
6044
  if (e && !e(c))
@@ -6134,10 +6126,10 @@ function kl({ editor: e, getPos: t }) {
6134
6126
  async function b() {
6135
6127
  var p, v;
6136
6128
  try {
6137
- const C = await fi(h, ((p = m == null ? void 0 : m.file) == null ? void 0 : p.name) || "image.png"), T = (v = e.extensionManager.extensions.find(
6129
+ const C = await ui(h, ((p = m == null ? void 0 : m.file) == null ? void 0 : p.name) || "image.png"), T = (v = e.extensionManager.extensions.find(
6138
6130
  ($) => $.name === "imageUpload"
6139
6131
  )) == null ? void 0 : v.options;
6140
- wi({
6132
+ pi({
6141
6133
  validateFn: () => !0,
6142
6134
  onUpload: T.upload,
6143
6135
  postUpload: T.postUpload
@@ -6170,7 +6162,7 @@ function kl({ editor: e, getPos: t }) {
6170
6162
  /* @__PURE__ */ r(dt, {}),
6171
6163
  /* @__PURE__ */ u(Ze, { className: "[&>button]:richtext-hidden", children: [
6172
6164
  /* @__PURE__ */ r("div", { children: m.src && /* @__PURE__ */ r(
6173
- lo,
6165
+ so,
6174
6166
  {
6175
6167
  crop: c,
6176
6168
  onChange: (p) => s(p),
@@ -6234,7 +6226,7 @@ function Cl(e) {
6234
6226
  const m = d[0], f = (b = e.editor.extensionManager.extensions.find(
6235
6227
  (k) => k.name === "imageUpload"
6236
6228
  )) == null ? void 0 : b.options;
6237
- wi({
6229
+ pi({
6238
6230
  validateFn: () => !0,
6239
6231
  onUpload: f.upload,
6240
6232
  postUpload: f.postUpload
@@ -6259,7 +6251,7 @@ function Cl(e) {
6259
6251
  /* @__PURE__ */ r(D, { name: "Trash2", className: "hover:richtext-text-foreground", onClick: s })
6260
6252
  ] }) }) }),
6261
6253
  /* @__PURE__ */ r(ie, { className: "richtext-w-full", onOpenAutoFocus: (l) => l.preventDefault(), children: /* @__PURE__ */ u(di, { defaultValue: "upload", className: "richtext-w-[400px]", activationMode: "manual", children: [
6262
- /* @__PURE__ */ u(Ht, { className: "richtext-grid richtext-w-full richtext-grid-cols-2", children: [
6254
+ /* @__PURE__ */ u(zt, { className: "richtext-grid richtext-w-full richtext-grid-cols-2", children: [
6263
6255
  /* @__PURE__ */ u(Ve, { value: "upload", children: [
6264
6256
  t("editor.image.dialog.tab.upload"),
6265
6257
  " "
@@ -6334,7 +6326,7 @@ const Nl = {
6334
6326
  };
6335
6327
  },
6336
6328
  addNodeView() {
6337
- return ue(Cl);
6329
+ return me(Cl);
6338
6330
  },
6339
6331
  addOptions() {
6340
6332
  var e;
@@ -6363,13 +6355,13 @@ const Nl = {
6363
6355
  };
6364
6356
  },
6365
6357
  addProseMirrorPlugins() {
6366
- const t = wi({
6358
+ const t = pi({
6367
6359
  validateFn: (i) => !(!this.options.acceptMimes.includes(i.type) || i.size > this.options.maxSize),
6368
6360
  onUpload: this.options.upload,
6369
6361
  postUpload: this.options.postUpload
6370
6362
  });
6371
6363
  return [
6372
- new pe({
6364
+ new be({
6373
6365
  props: {
6374
6366
  handlePaste: (i, n) => !n.clipboardData || [...n.clipboardData.files || []].some((o) => o.type === "text/html") ? !1 : vl(i, n, t),
6375
6367
  handleDrop: (i, n, a, o) => (!(n instanceof DragEvent) || !n.dataTransfer || yl(i, n, o, t), !1)
@@ -6445,7 +6437,7 @@ const Yh = ce.create({
6445
6437
  allowFullscreen: !0,
6446
6438
  upload: void 0,
6447
6439
  frameborder: !1,
6448
- width: Ft["size-medium"],
6440
+ width: jt["size-medium"],
6449
6441
  HTMLAttributes: {
6450
6442
  class: "iframe-wrapper",
6451
6443
  style: "display: flex;justify-content: center;"
@@ -6496,7 +6488,7 @@ function Ll(e) {
6496
6488
  /* @__PURE__ */ r(D, { name: "Trash2", className: "hover:richtext-text-foreground", onClick: f })
6497
6489
  ] }) }) }),
6498
6490
  /* @__PURE__ */ r(ie, { className: "richtext-w-full", onOpenAutoFocus: (x) => x.preventDefault(), children: /* @__PURE__ */ u(di, { defaultValue: "upload", className: "richtext-w-[400px]", activationMode: "manual", children: [
6499
- /* @__PURE__ */ u(Ht, { className: "richtext-grid richtext-w-full richtext-grid-cols-2", children: [
6491
+ /* @__PURE__ */ u(zt, { className: "richtext-grid richtext-w-full richtext-grid-cols-2", children: [
6500
6492
  /* @__PURE__ */ u(Ve, { value: "upload", children: [
6501
6493
  t("editor.video.dialog.tab.upload"),
6502
6494
  " "
@@ -6564,7 +6556,7 @@ const Qh = ce.create({
6564
6556
  };
6565
6557
  },
6566
6558
  addNodeView() {
6567
- return ue(Ll);
6559
+ return me(Ll);
6568
6560
  },
6569
6561
  addOptions() {
6570
6562
  var e;
@@ -6602,11 +6594,11 @@ function Al(e, t, i) {
6602
6594
  }
6603
6595
  function Sl(e, t, i) {
6604
6596
  const { doc: n, selection: a } = e;
6605
- return !n || !a || !(a instanceof Qa) || a.forEachCell((o, c) => {
6597
+ return !n || !a || !(a instanceof Ya) || a.forEachCell((o, c) => {
6606
6598
  e = Al(e, c, i);
6607
6599
  }), e;
6608
6600
  }
6609
- function Bi(e, t) {
6601
+ function Di(e, t) {
6610
6602
  return ({ tr: i, state: n, dispatch: a }) => {
6611
6603
  const { selection: o } = n;
6612
6604
  return i = i.setSelection(o), i = Sl(i, t, e), i.docChanged ? (a == null || a(i), !0) : !1;
@@ -6637,21 +6629,21 @@ const Ml = Z.create({
6637
6629
  },
6638
6630
  addCommands() {
6639
6631
  return {
6640
- setTableCellBackground: (e) => Bi(e, this.options),
6641
- unsetTableCellBackground: () => Bi("", this.options)
6632
+ setTableCellBackground: (e) => Di(e, this.options),
6633
+ unsetTableCellBackground: () => Di("", this.options)
6642
6634
  };
6643
6635
  }
6644
6636
  }), Il = /(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i, zl = /CrOS/, Hl = /android|ipad|playbook|silk/i;
6645
- function ji(e = {}) {
6637
+ function $i(e = {}) {
6646
6638
  let t = e.ua || typeof navigator < "u" && navigator.userAgent;
6647
6639
  return t && typeof t == "object" && t.headers && typeof t.headers["user-agent"] == "string" && (t = t.headers["user-agent"]), typeof t != "string" ? !1 : !!(Il.test(t) && !zl.test(t) || e.tablet && Hl.test(t) || e.tablet && e.featureDetect && navigator && navigator.maxTouchPoints > 1 && t.includes("Macintosh") && t.includes("Safari"));
6648
6640
  }
6649
- const Fi = (e) => Array.from({ length: e }).map((t, i) => i + 1);
6641
+ const Bi = (e) => Array.from({ length: e }).map((t, i) => i + 1);
6650
6642
  function El(e) {
6651
6643
  var d;
6652
6644
  const [t, i] = w(!0), [n, a] = w({
6653
- rows: ji() ? mt : ft,
6654
- cols: ji() ? mt : ft
6645
+ rows: $i() ? mt : ft,
6646
+ cols: $i() ? mt : ft
6655
6647
  }), [o, c] = w({
6656
6648
  rows: gt,
6657
6649
  cols: gt
@@ -6683,9 +6675,9 @@ function El(e) {
6683
6675
  return /* @__PURE__ */ u(re, { modal: !0, children: [
6684
6676
  /* @__PURE__ */ r(ae, { asChild: !0, children: e == null ? void 0 : e.children }),
6685
6677
  /* @__PURE__ */ r(ie, { className: "richtext-w-full !richtext-p-2", align: "start", side: "bottom", children: /* @__PURE__ */ u("div", { className: "richtext-p-0 table-grid-size-editor", children: [
6686
- /* @__PURE__ */ r("div", { className: "richtext-flex richtext-flex-col richtext-flex-wrap richtext-justify-between richtext-gap-1", children: (d = Fi(n == null ? void 0 : n.rows)) == null ? void 0 : d.map((m) => {
6678
+ /* @__PURE__ */ r("div", { className: "richtext-flex richtext-flex-col richtext-flex-wrap richtext-justify-between richtext-gap-1", children: (d = Bi(n == null ? void 0 : n.rows)) == null ? void 0 : d.map((m) => {
6687
6679
  var f;
6688
- return /* @__PURE__ */ r("div", { className: "richtext-flex richtext-gap-1", children: (f = Fi(n == null ? void 0 : n.cols)) == null ? void 0 : f.map((g) => /* @__PURE__ */ r(
6680
+ return /* @__PURE__ */ r("div", { className: "richtext-flex richtext-gap-1", children: (f = Bi(n == null ? void 0 : n.cols)) == null ? void 0 : f.map((g) => /* @__PURE__ */ r(
6689
6681
  "div",
6690
6682
  {
6691
6683
  className: `richtext-cursor-pointer richtext-border-border ${g <= o.cols && m <= o.rows && "!richtext-bg-foreground tableCellActive"}`,
@@ -6721,7 +6713,7 @@ function Rl(e) {
6721
6713
  }
6722
6714
  ) });
6723
6715
  }
6724
- const eu = Ua.extend({
6716
+ const eu = Fa.extend({
6725
6717
  addOptions() {
6726
6718
  var e;
6727
6719
  return {
@@ -6742,9 +6734,9 @@ const eu = Ua.extend({
6742
6734
  },
6743
6735
  addExtensions() {
6744
6736
  return [
6745
- Va.configure(this.options.tableRow),
6746
- Wa.configure(this.options.tableHeader),
6747
- qa.configure(this.options.tableCell),
6737
+ Ua.configure(this.options.tableRow),
6738
+ Va.configure(this.options.tableHeader),
6739
+ Wa.configure(this.options.tableCell),
6748
6740
  Ml.configure(this.options.tableCellBackground)
6749
6741
  ];
6750
6742
  }
@@ -6782,8 +6774,8 @@ const eu = Ua.extend({
6782
6774
  },
6783
6775
  addProseMirrorPlugins() {
6784
6776
  return [
6785
- new pe({
6786
- key: new be("format-painter"),
6777
+ new be({
6778
+ key: new we("format-painter"),
6787
6779
  state: {
6788
6780
  init: () => [],
6789
6781
  apply: (e, t) => {
@@ -6871,7 +6863,7 @@ function Ol({ editor: e, ...t }) {
6871
6863
  side: "bottom",
6872
6864
  children: [
6873
6865
  /* @__PURE__ */ u("div", { className: "richtext-mb-[6px] richtext-flex richtext-items-center richtext-justify-between", children: [
6874
- /* @__PURE__ */ r(le, { children: i("editor.search.dialog.text") }),
6866
+ /* @__PURE__ */ r(de, { children: i("editor.search.dialog.text") }),
6875
6867
  /* @__PURE__ */ r("span", { className: "richtext-font-semibold", children: o.length ? `${n + 1}/${o.length}` : "0/0" })
6876
6868
  ] }),
6877
6869
  /* @__PURE__ */ u("div", { className: "richtext-flex richtext-w-full richtext-max-w-sm richtext-items-center richtext-gap-1.5 richtext-mb-[10px]", children: [
@@ -6890,7 +6882,7 @@ function Ol({ editor: e, ...t }) {
6890
6882
  /* @__PURE__ */ r(U, { disabled: !o.length, className: "richtext-flex-1", onClick: e.commands.goToPrevSearchResult, children: /* @__PURE__ */ r(D, { name: "ChevronUp" }) }),
6891
6883
  /* @__PURE__ */ r(U, { disabled: !o.length, className: "richtext-flex-1", onClick: e.commands.goToNextSearchResult, children: /* @__PURE__ */ r(D, { name: "ChevronDown" }) })
6892
6884
  ] }),
6893
- /* @__PURE__ */ r(le, { className: "richtext-mb-[6px]", children: i("editor.replace.dialog.text") }),
6885
+ /* @__PURE__ */ r(de, { className: "richtext-mb-[6px]", children: i("editor.replace.dialog.text") }),
6894
6886
  /* @__PURE__ */ r("div", { className: "richtext-flex richtext-w-full richtext-max-w-sm richtext-items-center richtext-gap-1.5 richtext-mb-[5px]", children: /* @__PURE__ */ r("div", { className: "richtext-relative richtext-items-center richtext-w-full richtext-max-w-sm", children: /* @__PURE__ */ r(
6895
6887
  te,
6896
6888
  {
@@ -6912,7 +6904,7 @@ function Ol({ editor: e, ...t }) {
6912
6904
  }
6913
6905
  }
6914
6906
  ),
6915
- /* @__PURE__ */ r(le, { children: i("editor.replace.caseSensitive") })
6907
+ /* @__PURE__ */ r(de, { children: i("editor.replace.caseSensitive") })
6916
6908
  ] }),
6917
6909
  /* @__PURE__ */ u("div", { className: "richtext-flex richtext-items-center richtext-gap-[10px]", children: [
6918
6910
  /* @__PURE__ */ r(U, { disabled: !o.length, className: "richtext-flex-1", onClick: e.commands.replace, children: i("editor.replace.dialog.text") }),
@@ -6966,7 +6958,7 @@ function Dl(e, t, i) {
6966
6958
  results: o
6967
6959
  };
6968
6960
  }
6969
- function Ui(e, t, { state: i, dispatch: n }) {
6961
+ function ji(e, t, { state: i, dispatch: n }) {
6970
6962
  if (!t[0])
6971
6963
  return;
6972
6964
  const { from: o, to: c } = t[0];
@@ -6994,7 +6986,7 @@ function Bl(e, t, { tr: i, dispatch: n }) {
6994
6986
  }
6995
6987
  return n(i), !0;
6996
6988
  }
6997
- function Vi({ view: e, tr: t, searchResults: i, searchResultCurrentClass: n, gotoIndex: a }) {
6989
+ function Fi({ view: e, tr: t, searchResults: i, searchResultCurrentClass: n, gotoIndex: a }) {
6998
6990
  const o = i[a];
6999
6991
  if (o) {
7000
6992
  const c = t.setMeta("directDecoration", {
@@ -7052,7 +7044,7 @@ const Jt = "ON_SEARCH_RESULTS", ze = new CustomEvent(Jt), jl = Z.create({
7052
7044
  setCaseSensitive: (e) => ({ state: t, dispatch: i }) => (this.options.caseSensitive = e, Qe(t, i), !1),
7053
7045
  replace: () => ({ state: e, dispatch: t }) => {
7054
7046
  const { replaceTerm: i } = this.options, { currentIndex: n, results: a } = this.storage, o = a[n];
7055
- return o ? (Ui(i, [o], { state: e, dispatch: t }), this.storage.results.splice(n, 1)) : (Ui(i, a, { state: e, dispatch: t }), this.storage.results.shift()), window.dispatchEvent(ze), Qe(e, t), !1;
7047
+ return o ? (ji(i, [o], { state: e, dispatch: t }), this.storage.results.splice(n, 1)) : (ji(i, a, { state: e, dispatch: t }), this.storage.results.shift()), window.dispatchEvent(ze), Qe(e, t), !1;
7056
7048
  },
7057
7049
  replaceAll: () => ({ state: e, tr: t, dispatch: i }) => {
7058
7050
  const { replaceTerm: n } = this.options, { results: a } = this.storage;
@@ -7060,7 +7052,7 @@ const Jt = "ON_SEARCH_RESULTS", ze = new CustomEvent(Jt), jl = Z.create({
7060
7052
  },
7061
7053
  goToPrevSearchResult: () => ({ view: e, tr: t }) => {
7062
7054
  const { searchResultCurrentClass: i } = this.options, { currentIndex: n, results: a } = this.storage, o = (n + a.length - 1) % a.length;
7063
- return this.storage.currentIndex = o, window.dispatchEvent(ze), Vi({
7055
+ return this.storage.currentIndex = o, window.dispatchEvent(ze), Fi({
7064
7056
  view: e,
7065
7057
  tr: t,
7066
7058
  searchResults: a,
@@ -7070,7 +7062,7 @@ const Jt = "ON_SEARCH_RESULTS", ze = new CustomEvent(Jt), jl = Z.create({
7070
7062
  },
7071
7063
  goToNextSearchResult: () => ({ view: e, tr: t }) => {
7072
7064
  const { searchResultCurrentClass: i } = this.options, { currentIndex: n, results: a } = this.storage, o = (n + 1) % a.length;
7073
- return this.storage.currentIndex = o, this.options.onChange && this.options.onChange(), window.dispatchEvent(ze), Vi({
7065
+ return this.storage.currentIndex = o, this.options.onChange && this.options.onChange(), window.dispatchEvent(ze), Fi({
7074
7066
  view: e,
7075
7067
  tr: t,
7076
7068
  searchResults: a,
@@ -7083,8 +7075,8 @@ const Jt = "ON_SEARCH_RESULTS", ze = new CustomEvent(Jt), jl = Z.create({
7083
7075
  addProseMirrorPlugins() {
7084
7076
  const e = this;
7085
7077
  return [
7086
- new pe({
7087
- key: new be("search"),
7078
+ new be({
7079
+ key: new we("search"),
7088
7080
  state: {
7089
7081
  init() {
7090
7082
  return De.empty;
@@ -8969,7 +8961,7 @@ function Ul(e) {
8969
8961
  emoji: qe[t]
8970
8962
  }));
8971
8963
  }
8972
- const $n = Tt((e, t) => {
8964
+ const Dn = Nt((e, t) => {
8973
8965
  const i = X(), [n, a] = w(0), { t: o } = F(), c = (d) => {
8974
8966
  const m = e.items[d];
8975
8967
  m && e.command(m);
@@ -8985,7 +8977,7 @@ const $n = Tt((e, t) => {
8985
8977
  return;
8986
8978
  const d = i.current.querySelector(`span:nth-of-type(${n + 1})`);
8987
8979
  d && oi(d, { behavior: "smooth", scrollMode: "if-needed" });
8988
- }, [n]), Lt(t, () => ({
8980
+ }, [n]), Tt(t, () => ({
8989
8981
  onKeyDown: ({ event: d }) => d.key === "ArrowUp" ? (s(), !0) : d.key === "ArrowDown" ? (h(), !0) : d.key === "Enter" ? (l(), !0) : !1
8990
8982
  })), /* @__PURE__ */ r("div", { className: "richtext-w-[200px] richtext-max-h-[320px] richtext-overflow-x-hidden richtext-overflow-y-auto richtext-rounded-sm !richtext-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none", children: /* @__PURE__ */ r("div", { ref: i, children: e.items.length ? e.items.map((d, m) => /* @__PURE__ */ u(
8991
8983
  "span",
@@ -9002,7 +8994,7 @@ const $n = Tt((e, t) => {
9002
8994
  `emoji-list-code-${m}`
9003
8995
  )) : /* @__PURE__ */ r("div", { className: "richtext-flex richtext-relative richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-outline-none richtext-transition-colors", children: /* @__PURE__ */ r("span", { children: o("no_result_found") }) }) }) });
9004
8996
  });
9005
- $n.displayName = "EmojiList";
8997
+ Dn.displayName = "EmojiList";
9006
8998
  const Vl = [
9007
8999
  "😀",
9008
9000
  "😃",
@@ -10905,23 +10897,23 @@ function ad(e, t = null) {
10905
10897
  function od(e, t) {
10906
10898
  window.localStorage.setItem(e, `${t}`);
10907
10899
  }
10908
- class Bt {
10900
+ class $t {
10909
10901
  constructor(t, i) {
10910
- me(this, "key");
10911
- me(this, "value");
10912
- me(this, "prev");
10913
- me(this, "next");
10902
+ fe(this, "key");
10903
+ fe(this, "value");
10904
+ fe(this, "prev");
10905
+ fe(this, "next");
10914
10906
  this.key = t, this.value = i, this.prev = null, this.next = null;
10915
10907
  }
10916
10908
  }
10917
10909
  class cd {
10918
10910
  constructor(t) {
10919
- me(this, "capacity");
10920
- me(this, "usedCapacity");
10921
- me(this, "head");
10922
- me(this, "tail");
10923
- me(this, "store");
10924
- this.capacity = t || 20, this.usedCapacity = 0, this.store = {}, this.head = new Bt("fakeHeadNode", "fakeHeadNode"), this.tail = new Bt("fakeTailNode", "fakeTailNode"), this.head.next = this.tail, this.tail.prev = this.head;
10911
+ fe(this, "capacity");
10912
+ fe(this, "usedCapacity");
10913
+ fe(this, "head");
10914
+ fe(this, "tail");
10915
+ fe(this, "store");
10916
+ this.capacity = t || 20, this.usedCapacity = 0, this.store = {}, this.head = new $t("fakeHeadNode", "fakeHeadNode"), this.tail = new $t("fakeTailNode", "fakeTailNode"), this.head.next = this.tail, this.tail.prev = this.head;
10925
10917
  }
10926
10918
  removeNode(t) {
10927
10919
  t.prev.next = t.next, t.next.prev = t.prev;
@@ -10948,7 +10940,7 @@ class cd {
10948
10940
  const n = this.store[t];
10949
10941
  n.value = i, this.moveToHead(n);
10950
10942
  } else {
10951
- const n = new Bt(t, i);
10943
+ const n = new $t(t, i);
10952
10944
  if (this.addToHead(n), this.store[t] = n, this.usedCapacity += 1, this.usedCapacity > this.capacity) {
10953
10945
  const a = this.removeTail();
10954
10946
  delete this.store[a.key], this.usedCapacity -= 1;
@@ -10992,11 +10984,11 @@ function sd(e, t) {
10992
10984
  }
10993
10985
  };
10994
10986
  }
10995
- const He = sd("EMOJI_PICKER", 20), Wi = [
10987
+ const He = sd("EMOJI_PICKER", 20), Ui = [
10996
10988
  {
10997
10989
  title: "Smileys & People",
10998
10990
  data: Vl,
10999
- icon: ea
10991
+ icon: Qr
11000
10992
  },
11001
10993
  {
11002
10994
  title: "Animals & Nature",
@@ -11036,7 +11028,7 @@ const He = sd("EMOJI_PICKER", 20), Wi = [
11036
11028
  ], ld = ["😀", "😃", "😄", "😁", "😆", "😅", "😂", "🤣"];
11037
11029
  function dd({ onSelectEmoji: e, children: t }) {
11038
11030
  const [i, n] = w([]), { t: a } = F(), o = O(
11039
- () => i.length ? [{ title: "Frequently used", icon: Qr, data: i }, ...Wi] : Wi,
11031
+ () => i.length ? [{ title: "Frequently used", icon: Yr, data: i }, ...Ui] : Ui,
11040
11032
  [i]
11041
11033
  ), c = M(
11042
11034
  (s) => {
@@ -11055,7 +11047,7 @@ function dd({ onSelectEmoji: e, children: t }) {
11055
11047
  }, []), /* @__PURE__ */ u(re, { modal: !0, children: [
11056
11048
  /* @__PURE__ */ r(ae, { asChild: !0, children: t }),
11057
11049
  /* @__PURE__ */ r(ie, { hideWhenDetached: !0, className: "richtext-w-full richtext-h-full richtext-p-2", align: "start", side: "bottom", children: /* @__PURE__ */ u(di, { defaultValue: "Frequently used", children: [
11058
- /* @__PURE__ */ r(Ht, { className: "richtext-flex richtext-items-center richtext-gap-[4px]", children: o.map((s) => /* @__PURE__ */ r(
11050
+ /* @__PURE__ */ r(zt, { className: "richtext-flex richtext-items-center richtext-gap-[4px]", children: o.map((s) => /* @__PURE__ */ r(
11059
11051
  Ve,
11060
11052
  {
11061
11053
  value: s.title,
@@ -11102,7 +11094,7 @@ function hd({ editor: e, icon: t, ...i }) {
11102
11094
  }
11103
11095
  ) });
11104
11096
  }
11105
- const ud = 200, md = new be("emoji"), iu = ce.create({
11097
+ const ud = 200, md = new we("emoji"), iu = ce.create({
11106
11098
  name: "emoji",
11107
11099
  content: "text*",
11108
11100
  priority: ud,
@@ -11139,7 +11131,7 @@ const ud = 200, md = new be("emoji"), iu = ce.create({
11139
11131
  },
11140
11132
  addProseMirrorPlugins() {
11141
11133
  return [
11142
- rn({
11134
+ tn({
11143
11135
  editor: this.editor,
11144
11136
  ...this.options.suggestion
11145
11137
  })
@@ -11152,7 +11144,7 @@ const ud = 200, md = new be("emoji"), iu = ce.create({
11152
11144
  let e, t, i;
11153
11145
  return {
11154
11146
  onStart: (n) => {
11155
- i = n.editor.isEditable, i && (e = new Yt($n, {
11147
+ i = n.editor.isEditable, i && (e = new Yt(Dn, {
11156
11148
  props: n,
11157
11149
  editor: n.editor
11158
11150
  }), t = ai("body", {
@@ -11248,7 +11240,7 @@ function xd({ editor: e, ...t }) {
11248
11240
  }
11249
11241
  ) }),
11250
11242
  /* @__PURE__ */ u(ie, { hideWhenDetached: !0, className: "richtext-w-full richtext-h-full richtext-p-2", align: "start", side: "bottom", children: [
11251
- /* @__PURE__ */ r(le, { className: "richtext-mb-[6px]", children: i("editor.formula.dialog.text") }),
11243
+ /* @__PURE__ */ r(de, { className: "richtext-mb-[6px]", children: i("editor.formula.dialog.text") }),
11252
11244
  /* @__PURE__ */ r("div", { className: "richtext-flex richtext-w-full richtext-max-w-sm richtext-items-center richtext-gap-1.5 richtext-mb-[16px]", children: /* @__PURE__ */ r("div", { className: "richtext-relative richtext-w-full richtext-max-w-sm", children: /* @__PURE__ */ r(
11253
11245
  ct,
11254
11246
  {
@@ -11265,7 +11257,7 @@ function xd({ editor: e, ...t }) {
11265
11257
  d && /* @__PURE__ */ r("div", { className: "richtext-my-[10px] richtext-p-[10px] richtext-rounded-[6px] !richtext-border-[1px]", children: d }),
11266
11258
  /* @__PURE__ */ u("div", { className: "richtext-flex richtext-items-center richtext-justify-between richtext-gap-[6px]", children: [
11267
11259
  /* @__PURE__ */ r(U, { onClick: h, className: "richtext-flex-1", children: "Submit" }),
11268
- /* @__PURE__ */ r("a", { href: "https://katex.org/docs/supported", target: "_blank", rel: "noreferrer noopener", children: /* @__PURE__ */ r(Ji, { size: 16 }) })
11260
+ /* @__PURE__ */ r("a", { href: "https://katex.org/docs/supported", target: "_blank", rel: "noreferrer noopener", children: /* @__PURE__ */ r(Gi, { size: 16 }) })
11269
11261
  ] })
11270
11262
  ] })
11271
11263
  ] });
@@ -11333,7 +11325,7 @@ const Oe = ce.create({
11333
11325
  ];
11334
11326
  },
11335
11327
  addNodeView() {
11336
- return ue(gd);
11328
+ return me(gd);
11337
11329
  }
11338
11330
  });
11339
11331
  function bd(e) {
@@ -11422,7 +11414,7 @@ function yd(e) {
11422
11414
  const g = new DOMParser().parseFromString(m, "text/html"), x = g.querySelectorAll("img");
11423
11415
  if (!x.length)
11424
11416
  return g.body.innerHTML;
11425
- if (yn(e.editor, "image")) {
11417
+ if (vn(e.editor, "image")) {
11426
11418
  const L = (k = e.editor.extensionManager.extensions.find(
11427
11419
  (p) => p.name === "importWord"
11428
11420
  )) == null ? void 0 : k.options;
@@ -11526,18 +11518,18 @@ function Cd(e, t) {
11526
11518
  return console.error("Download is not supported in Node.js"), Promise.resolve();
11527
11519
  }
11528
11520
  const Nd = {
11529
- ..._e,
11530
- hardBreak: _e.hard_break,
11531
- codeBlock: _e.code_block,
11532
- orderedList: _e.ordered_list,
11533
- listItem: _e.list_item,
11534
- bulletList: _e.bullet_list,
11535
- horizontalRule: _e.horizontal_rule,
11521
+ ...ye,
11522
+ hardBreak: ye.hard_break,
11523
+ codeBlock: ye.code_block,
11524
+ orderedList: ye.ordered_list,
11525
+ listItem: ye.list_item,
11526
+ bulletList: ye.bullet_list,
11527
+ horizontalRule: ye.horizontal_rule,
11536
11528
  // Requirement Buffer on browser
11537
11529
  image(e, t) {
11538
11530
  e.renderInline(t), e.closeBlock(t);
11539
11531
  }
11540
- }, Td = new ho(Nd, uo), au = Z.create({
11532
+ }, Td = new lo(Nd, ho), au = Z.create({
11541
11533
  name: "exportWord",
11542
11534
  addOptions() {
11543
11535
  var e;
@@ -11567,7 +11559,7 @@ const Nd = {
11567
11559
  return new Uint8Array(o);
11568
11560
  }
11569
11561
  }, i = Td.serialize(e.state.doc, t);
11570
- return mo.toBlob(i).then((n) => Cd(new Blob([n]), "export-document.docx")), !0;
11562
+ return uo.toBlob(i).then((n) => Cd(new Blob([n]), "export-document.docx")), !0;
11571
11563
  }
11572
11564
  };
11573
11565
  }
@@ -11699,7 +11691,7 @@ const Pd = ce.create({
11699
11691
  return ["toc", se(e)];
11700
11692
  },
11701
11693
  addNodeView() {
11702
- return ue(zd);
11694
+ return me(zd);
11703
11695
  },
11704
11696
  // @ts-expect-error
11705
11697
  addCommands() {
@@ -11789,7 +11781,7 @@ function Dd(e) {
11789
11781
  ) }),
11790
11782
  /* @__PURE__ */ u(Ie, { className: "richtext-flex richtext-flex-col richtext-items-center", children: [
11791
11783
  /* @__PURE__ */ r("span", { children: n.title }),
11792
- !!((o = n.shortcutKeys) != null && o.length) && /* @__PURE__ */ r("span", { children: (c = n.shortcutKeys) == null ? void 0 : c.map((s) => Mt(s)).join(" ") })
11784
+ !!((o = n.shortcutKeys) != null && o.length) && /* @__PURE__ */ r("span", { children: (c = n.shortcutKeys) == null ? void 0 : c.map((s) => St(s)).join(" ") })
11793
11785
  ] })
11794
11786
  ] }, `text-align-${a}`);
11795
11787
  })
@@ -11867,7 +11859,7 @@ const ou = Z.create({
11867
11859
  listUsers: $d,
11868
11860
  itemUser: Bd,
11869
11861
  selectedUser: jd
11870
- }, Fd = Tt((e, t) => {
11862
+ }, Fd = Nt((e, t) => {
11871
11863
  const i = X(), [n, a] = w(0), o = (l) => {
11872
11864
  const d = e.items[l];
11873
11865
  d && e.command({ id: d, label: d });
@@ -11883,7 +11875,7 @@ const ou = Z.create({
11883
11875
  return;
11884
11876
  const l = i.current.querySelector(`span:nth-of-type(${n + 1})`);
11885
11877
  l && oi(l, { behavior: "smooth", scrollMode: "if-needed" });
11886
- }, [n]), Lt(t, () => ({
11878
+ }, [n]), Tt(t, () => ({
11887
11879
  onKeyDown: ({ event: l }) => l.key === "ArrowUp" ? (c(), !0) : l.key === "ArrowDown" ? (s(), !0) : l.key === "Enter" ? (h(), !0) : !1
11888
11880
  })), /* @__PURE__ */ r("div", { className: ee("listUsers", bt.listUsers), children: /* @__PURE__ */ r("div", { ref: i, children: e.items.length ? e.items.map((l, d) => /* @__PURE__ */ r(
11889
11881
  "span",
@@ -11944,7 +11936,7 @@ const ou = Z.create({
11944
11936
  }
11945
11937
  };
11946
11938
  }
11947
- }, cu = Ka.extend({
11939
+ }, cu = qa.extend({
11948
11940
  addAttributes() {
11949
11941
  return {
11950
11942
  id: {
@@ -11966,26 +11958,26 @@ const ou = Z.create({
11966
11958
  function Wd(e) {
11967
11959
  switch (gc(e)) {
11968
11960
  case "audio":
11969
- return /* @__PURE__ */ r(oa, {});
11970
- case "video":
11971
11961
  return /* @__PURE__ */ r(aa, {});
11972
- case "file":
11962
+ case "video":
11973
11963
  return /* @__PURE__ */ r(ra, {});
11974
- case "image":
11964
+ case "file":
11975
11965
  return /* @__PURE__ */ r(na, {});
11966
+ case "image":
11967
+ return /* @__PURE__ */ r(ia, {});
11976
11968
  case "pdf":
11977
- return /* @__PURE__ */ r(Hn, {});
11969
+ return /* @__PURE__ */ r(zn, {});
11978
11970
  case "word":
11979
- return /* @__PURE__ */ r(En, {});
11971
+ return /* @__PURE__ */ r(Hn, {});
11980
11972
  case "excel":
11981
- return /* @__PURE__ */ r(ia, {});
11982
- case "ppt":
11983
11973
  return /* @__PURE__ */ r(ta, {});
11974
+ case "ppt":
11975
+ return /* @__PURE__ */ r(ea, {});
11984
11976
  default:
11985
11977
  return /* @__PURE__ */ r(q, {});
11986
11978
  }
11987
11979
  }
11988
- const qd = "_wrap_gpqtf_1", jt = {
11980
+ const qd = "_wrap_gpqtf_1", Bt = {
11989
11981
  wrap: qd
11990
11982
  };
11991
11983
  function Kd({ editor: e, node: t, updateAttributes: i, deleteNode: n, extension: a }) {
@@ -12017,10 +12009,10 @@ function Kd({ editor: e, node: t, updateAttributes: i, deleteNode: n, extension:
12017
12009
  !f && !s && (p(), i({ hasTrigger: !0 }));
12018
12010
  }, [f, s, p, i]);
12019
12011
  const C = M(() => n(), [e]);
12020
- return c && !f ? /* @__PURE__ */ r(ne, { children: /* @__PURE__ */ u("div", { className: ee(jt.wrap, "render-wrapper"), children: [
12012
+ return c && !f ? /* @__PURE__ */ r(ne, { children: /* @__PURE__ */ u("div", { className: ee(Bt.wrap, "render-wrapper"), children: [
12021
12013
  /* @__PURE__ */ r("p", { style: { cursor: "pointer" }, onClick: p, children: x ? /* @__PURE__ */ r("span", { children: k("editor.attachment.uploading") }) : /* @__PURE__ */ r("span", { children: k("editor.attachment.please_upload") }) }),
12022
12014
  /* @__PURE__ */ r("input", { ref: o, type: "file", hidden: !0, onChange: v })
12023
- ] }) }) : f ? /* @__PURE__ */ r(ne, { children: /* @__PURE__ */ u("div", { className: ee(jt.wrap, "render-wrapper"), onClick: p, children: [
12015
+ ] }) }) : f ? /* @__PURE__ */ r(ne, { children: /* @__PURE__ */ u("div", { className: ee(Bt.wrap, "render-wrapper"), onClick: p, children: [
12024
12016
  /* @__PURE__ */ u("div", { className: "richtext-flex richtext-items-center richtext-gap-[4px]", children: [
12025
12017
  /* @__PURE__ */ r("span", { children: Wd(m) }),
12026
12018
  /* @__PURE__ */ u("span", { children: [
@@ -12042,7 +12034,7 @@ function Kd({ editor: e, node: t, updateAttributes: i, deleteNode: n, extension:
12042
12034
  tooltip: k("editor.delete")
12043
12035
  }
12044
12036
  )
12045
- ] }) }) : g !== "null" ? /* @__PURE__ */ r(ne, { children: /* @__PURE__ */ r("div", { className: ee(jt.wrap, "render-wrapper"), onClick: p, children: /* @__PURE__ */ r("p", { children: g }) }) }) : /* @__PURE__ */ r(q, {});
12037
+ ] }) }) : g !== "null" ? /* @__PURE__ */ r(ne, { children: /* @__PURE__ */ r("div", { className: ee(Bt.wrap, "render-wrapper"), onClick: p, children: /* @__PURE__ */ r("p", { children: g }) }) }) : /* @__PURE__ */ r(q, {});
12046
12038
  }
12047
12039
  const su = ce.create({
12048
12040
  name: "attachment",
@@ -12115,7 +12107,7 @@ const su = ce.create({
12115
12107
  };
12116
12108
  },
12117
12109
  addNodeView() {
12118
- return ue(Kd);
12110
+ return me(Kd);
12119
12111
  }
12120
12112
  }), wt = {
12121
12113
  TOP_LEFT: "tl",
@@ -12170,7 +12162,7 @@ function Gd(e) {
12170
12162
  y.commands.setNodeSelection(R());
12171
12163
  }
12172
12164
  const b = M(
12173
- Ne(() => {
12165
+ Le(() => {
12174
12166
  const { editor: y } = e, { width: R } = getComputedStyle(y.view.dom);
12175
12167
  i((A) => ({
12176
12168
  ...A,
@@ -12195,10 +12187,10 @@ function Gd(e) {
12195
12187
  });
12196
12188
  }
12197
12189
  const L = M(
12198
- Ne((y) => {
12190
+ Le((y) => {
12199
12191
  if (y.preventDefault(), y.stopPropagation(), !c)
12200
12192
  return;
12201
- const { x: R, w: A, dir: N } = h, B = (y.clientX - R) * (/l/.test(N) ? -1 : 1), S = cn(A + B, ni, t.width);
12193
+ const { x: R, w: A, dir: N } = h, B = (y.clientX - R) * (/l/.test(N) ? -1 : 1), S = an(A + B, ni, t.width);
12202
12194
  e.updateAttributes({
12203
12195
  width: S,
12204
12196
  height: null
@@ -12332,7 +12324,7 @@ function Jd({ editor: e, icon: t, giphyApiKey: i, ...n }) {
12332
12324
  }
12333
12325
  );
12334
12326
  }
12335
- const Bn = Qt.extend({
12327
+ const $n = Qt.extend({
12336
12328
  name: "imageGif",
12337
12329
  addOptions() {
12338
12330
  var e;
@@ -12389,7 +12381,7 @@ const Bn = Qt.extend({
12389
12381
  };
12390
12382
  },
12391
12383
  addNodeView() {
12392
- return ue(Gd);
12384
+ return me(Gd);
12393
12385
  },
12394
12386
  addCommands() {
12395
12387
  var e;
@@ -12438,9 +12430,9 @@ const Bn = Qt.extend({
12438
12430
  }
12439
12431
  ];
12440
12432
  }
12441
- }), qi = `graph TB
12433
+ }), Vi = `graph TB
12442
12434
  a-->b`, Xd = ({ editor: e, upload: t }) => {
12443
- const [i, n] = w(qi), [a, o] = w(""), [c, s] = w(!1), h = X(null), l = async (f) => {
12435
+ const [i, n] = w(Vi), [a, o] = w(""), [c, s] = w(!1), h = X(null), l = async (f) => {
12444
12436
  try {
12445
12437
  const { svg: g } = await Ct.render("mermaid-svg", f);
12446
12438
  o(g);
@@ -12486,7 +12478,7 @@ a-->b`, Xd = ({ editor: e, upload: t }) => {
12486
12478
  autoFocus: !0,
12487
12479
  required: !0,
12488
12480
  rows: 10,
12489
- defaultValue: qi,
12481
+ defaultValue: Vi,
12490
12482
  placeholder: "Text"
12491
12483
  }
12492
12484
  ),
@@ -12507,10 +12499,10 @@ a-->b`, Xd = ({ editor: e, upload: t }) => {
12507
12499
  onClick: async () => {
12508
12500
  if (i !== "") {
12509
12501
  if (i) {
12510
- const f = h.current.querySelector("svg"), { width: g, height: x } = f.getBoundingClientRect(), b = `mermaid-${Nn()}.svg`;
12511
- let k = an(f.outerHTML);
12502
+ const f = h.current.querySelector("svg"), { width: g, height: x } = f.getBoundingClientRect(), b = `mermaid-${Cn()}.svg`;
12503
+ let k = nn(f.outerHTML);
12512
12504
  if (t) {
12513
- const L = fi(k, b);
12505
+ const L = ui(k, b);
12514
12506
  k = await t(L);
12515
12507
  }
12516
12508
  e == null || e.chain().focus().setMermaid(
@@ -12559,7 +12551,7 @@ function Yd({ editor: e, node: t, updateAttributes: i, getPos: n, selected: a })
12559
12551
  h: 0,
12560
12552
  dir: ""
12561
12553
  }), { align: x } = t == null ? void 0 : t.attrs, b = O(() => {
12562
- const { src: A, alt: N, width: B, height: S } = t == null ? void 0 : t.attrs, E = Ci(B) ? `${B}px` : B, H = Ci(S) ? `${S}px` : S;
12554
+ const { src: A, alt: N, width: B, height: S } = t == null ? void 0 : t.attrs, E = yi(B) ? `${B}px` : B, H = yi(S) ? `${S}px` : S;
12563
12555
  return {
12564
12556
  src: A || void 0,
12565
12557
  alt: N || void 0,
@@ -12584,7 +12576,7 @@ function Yd({ editor: e, node: t, updateAttributes: i, getPos: n, selected: a })
12584
12576
  e.commands.setNodeSelection(n());
12585
12577
  }
12586
12578
  const v = M(
12587
- Ne(() => {
12579
+ Le(() => {
12588
12580
  const { width: A } = getComputedStyle(e.view.dom);
12589
12581
  c((N) => ({
12590
12582
  ...N,
@@ -12609,10 +12601,10 @@ function Yd({ editor: e, node: t, updateAttributes: i, getPos: n, selected: a })
12609
12601
  });
12610
12602
  }
12611
12603
  const T = M(
12612
- Ne((A) => {
12604
+ Le((A) => {
12613
12605
  if (A.preventDefault(), A.stopPropagation(), !d)
12614
12606
  return;
12615
- const { x: N, w: B, dir: S } = f, E = (A.clientX - N) * (/l/.test(S) ? -1 : 1), H = vn(B + E, ni, o.width);
12607
+ const { x: N, w: B, dir: S } = f, E = (A.clientX - N) * (/l/.test(S) ? -1 : 1), H = _n(B + E, ni, o.width);
12616
12608
  i({
12617
12609
  width: H,
12618
12610
  height: null
@@ -12675,7 +12667,7 @@ function Yd({ editor: e, node: t, updateAttributes: i, getPos: n, selected: a })
12675
12667
  }
12676
12668
  ) });
12677
12669
  }
12678
- const Ki = Qt.extend({
12670
+ const Wi = Qt.extend({
12679
12671
  name: "mermaid",
12680
12672
  addOptions() {
12681
12673
  var e;
@@ -12743,7 +12735,7 @@ const Ki = Qt.extend({
12743
12735
  };
12744
12736
  },
12745
12737
  addNodeView() {
12746
- return ue(Yd);
12738
+ return me(Yd);
12747
12739
  },
12748
12740
  // @ts-ignore
12749
12741
  addCommands() {
@@ -12819,8 +12811,8 @@ export {
12819
12811
  Th as U,
12820
12812
  Yh as V,
12821
12813
  su as W,
12822
- Bn as X,
12823
- Ki as Y,
12814
+ $n as X,
12815
+ Wi as Y,
12824
12816
  Us as a,
12825
12817
  zh as b,
12826
12818
  Hh as c,
@@ -12842,7 +12834,7 @@ export {
12842
12834
  Qh as s,
12843
12835
  eu as t,
12844
12836
  tu as u,
12845
- bi as v,
12837
+ xi as v,
12846
12838
  it as w,
12847
12839
  Uh as x,
12848
12840
  Re as y,