reactjs-tiptap-editor 0.3.27 → 0.3.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/lib/{ActionMenuButton-fkh63F_R.cjs → ActionMenuButton-C20molC9.cjs} +1 -1
  2. package/lib/{ActionMenuButton-D3nLtawn.js → ActionMenuButton-D0hFczCn.js} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.d.cts +28 -26
  5. package/lib/Attachment.d.ts +28 -26
  6. package/lib/Attachment.js +1 -1
  7. package/lib/Blockquote.cjs +1 -1
  8. package/lib/Blockquote.d.cts +28 -26
  9. package/lib/Blockquote.d.ts +28 -26
  10. package/lib/Blockquote.js +10 -10
  11. package/lib/Bold.cjs +1 -1
  12. package/lib/Bold.d.cts +28 -26
  13. package/lib/Bold.d.ts +28 -26
  14. package/lib/Bold.js +10 -10
  15. package/lib/BulletList.cjs +1 -1
  16. package/lib/BulletList.d.cts +28 -26
  17. package/lib/BulletList.d.ts +28 -26
  18. package/lib/BulletList.js +10 -10
  19. package/lib/Clear.cjs +1 -1
  20. package/lib/Clear.d.cts +28 -26
  21. package/lib/Clear.d.ts +28 -26
  22. package/lib/Clear.js +1 -1
  23. package/lib/Code.cjs +1 -1
  24. package/lib/Code.d.cts +28 -26
  25. package/lib/Code.d.ts +28 -26
  26. package/lib/Code.js +21 -21
  27. package/lib/CodeBlock.cjs +1 -1
  28. package/lib/CodeBlock.d.cts +28 -26
  29. package/lib/CodeBlock.d.ts +28 -26
  30. package/lib/CodeBlock.js +1 -1
  31. package/lib/CodeView.cjs +1 -1
  32. package/lib/CodeView.d.cts +28 -26
  33. package/lib/CodeView.d.ts +28 -26
  34. package/lib/CodeView.js +1 -1
  35. package/lib/Color.cjs +1 -1
  36. package/lib/Color.d.cts +28 -26
  37. package/lib/Color.d.ts +28 -26
  38. package/lib/Color.js +1 -1
  39. package/lib/Document.d.cts +26 -26
  40. package/lib/Document.d.ts +26 -26
  41. package/lib/{Drawer-DetzmUvQ.cjs → Drawer-0kBt3GVL.cjs} +1 -1
  42. package/lib/{Drawer-BBVUujX4.js → Drawer-B96jQIQU.js} +1 -1
  43. package/lib/Drawer.cjs +1 -1
  44. package/lib/Drawer.d.cts +28 -26
  45. package/lib/Drawer.d.ts +28 -26
  46. package/lib/Drawer.js +2 -2
  47. package/lib/Emoji.cjs +1 -1
  48. package/lib/Emoji.d.cts +26 -26
  49. package/lib/Emoji.d.ts +26 -26
  50. package/lib/Emoji.js +1 -1
  51. package/lib/{Excalidraw-DVnwdz-w.cjs → Excalidraw-HK9kjpX5.cjs} +1 -1
  52. package/lib/{Excalidraw-BVdio4hk.js → Excalidraw-z3VZyGJ4.js} +1 -1
  53. package/lib/Excalidraw.cjs +1 -1
  54. package/lib/Excalidraw.d.cts +26 -26
  55. package/lib/Excalidraw.d.ts +26 -26
  56. package/lib/Excalidraw.js +1 -1
  57. package/lib/ExportPdf.cjs +1 -1
  58. package/lib/ExportPdf.d.cts +28 -26
  59. package/lib/ExportPdf.d.ts +28 -26
  60. package/lib/ExportPdf.js +1 -1
  61. package/lib/ExportWord.cjs +1 -1
  62. package/lib/ExportWord.d.cts +28 -26
  63. package/lib/ExportWord.d.ts +28 -26
  64. package/lib/ExportWord.js +1 -1
  65. package/lib/FontFamily.cjs +1 -1
  66. package/lib/FontFamily.d.cts +28 -26
  67. package/lib/FontFamily.d.ts +28 -26
  68. package/lib/FontFamily.js +2 -2
  69. package/lib/FontSize.cjs +1 -1
  70. package/lib/FontSize.d.cts +28 -26
  71. package/lib/FontSize.d.ts +28 -26
  72. package/lib/FontSize.js +2 -2
  73. package/lib/FormatPainter.cjs +1 -1
  74. package/lib/FormatPainter.d.cts +28 -26
  75. package/lib/FormatPainter.d.ts +28 -26
  76. package/lib/FormatPainter.js +1 -1
  77. package/lib/Heading.cjs +1 -1
  78. package/lib/Heading.d.cts +28 -26
  79. package/lib/Heading.d.ts +28 -26
  80. package/lib/Heading.js +71 -68
  81. package/lib/Highlight.cjs +1 -1
  82. package/lib/Highlight.d.cts +32 -26
  83. package/lib/Highlight.d.ts +32 -26
  84. package/lib/Highlight.js +14 -13
  85. package/lib/History.cjs +1 -1
  86. package/lib/History.d.cts +28 -26
  87. package/lib/History.d.ts +28 -26
  88. package/lib/History.js +163 -160
  89. package/lib/HorizontalRule.cjs +1 -1
  90. package/lib/HorizontalRule.d.cts +28 -26
  91. package/lib/HorizontalRule.d.ts +28 -26
  92. package/lib/HorizontalRule.js +14 -14
  93. package/lib/Iframe.cjs +1 -1
  94. package/lib/Iframe.d.cts +26 -26
  95. package/lib/Iframe.d.ts +26 -26
  96. package/lib/Iframe.js +1 -1
  97. package/lib/Image.cjs +1 -1
  98. package/lib/Image.d.cts +28 -26
  99. package/lib/Image.d.ts +28 -26
  100. package/lib/Image.js +1 -1
  101. package/lib/ImageGif.cjs +1 -1
  102. package/lib/ImageGif.d.cts +26 -26
  103. package/lib/ImageGif.d.ts +26 -26
  104. package/lib/ImageGif.js +1 -1
  105. package/lib/ImportWord.cjs +2 -2
  106. package/lib/ImportWord.d.cts +28 -26
  107. package/lib/ImportWord.d.ts +28 -26
  108. package/lib/ImportWord.js +2 -2
  109. package/lib/Indent.cjs +1 -1
  110. package/lib/Indent.d.cts +28 -26
  111. package/lib/Indent.d.ts +28 -26
  112. package/lib/Indent.js +12 -11
  113. package/lib/Italic.cjs +1 -1
  114. package/lib/Italic.d.cts +28 -26
  115. package/lib/Italic.d.ts +28 -26
  116. package/lib/Italic.js +13 -13
  117. package/lib/Katex.cjs +1 -1
  118. package/lib/Katex.d.cts +26 -26
  119. package/lib/Katex.d.ts +26 -26
  120. package/lib/Katex.js +2 -2
  121. package/lib/LineHeight.cjs +1 -1
  122. package/lib/LineHeight.d.cts +28 -26
  123. package/lib/LineHeight.d.ts +28 -26
  124. package/lib/LineHeight.js +1 -1
  125. package/lib/Link.cjs +1 -1
  126. package/lib/Link.d.cts +28 -26
  127. package/lib/Link.d.ts +28 -26
  128. package/lib/Link.js +1 -1
  129. package/lib/ListItem.d.cts +26 -26
  130. package/lib/ListItem.d.ts +26 -26
  131. package/lib/Mention.d.cts +26 -26
  132. package/lib/Mention.d.ts +26 -26
  133. package/lib/Mermaid.cjs +1 -1
  134. package/lib/Mermaid.d.cts +28 -26
  135. package/lib/Mermaid.d.ts +28 -26
  136. package/lib/Mermaid.js +2 -2
  137. package/lib/MoreMark.cjs +1 -1
  138. package/lib/MoreMark.d.cts +28 -26
  139. package/lib/MoreMark.d.ts +28 -26
  140. package/lib/MoreMark.js +46 -45
  141. package/lib/MultiColumn.cjs +1 -1
  142. package/lib/MultiColumn.d.cts +26 -26
  143. package/lib/MultiColumn.d.ts +26 -26
  144. package/lib/MultiColumn.js +1 -1
  145. package/lib/OrderedList.cjs +1 -1
  146. package/lib/OrderedList.d.cts +28 -26
  147. package/lib/OrderedList.d.ts +28 -26
  148. package/lib/OrderedList.js +9 -9
  149. package/lib/{RichTextEditor-DoMu_nCj.cjs → RichTextEditor-BKywwUM4.cjs} +7 -7
  150. package/lib/{RichTextEditor-BJWhWz4z.js → RichTextEditor-CnWZ69eX.js} +817 -854
  151. package/lib/SearchAndReplace.cjs +1 -1
  152. package/lib/SearchAndReplace.d.cts +28 -26
  153. package/lib/SearchAndReplace.d.ts +28 -26
  154. package/lib/SearchAndReplace.js +1 -1
  155. package/lib/Selection.d.cts +26 -26
  156. package/lib/Selection.d.ts +26 -26
  157. package/lib/SlashCommand.cjs +1 -1
  158. package/lib/SlashCommand.d.cts +26 -26
  159. package/lib/SlashCommand.d.ts +26 -26
  160. package/lib/SlashCommand.js +1 -1
  161. package/lib/Strike.cjs +1 -1
  162. package/lib/Strike.d.cts +28 -26
  163. package/lib/Strike.d.ts +28 -26
  164. package/lib/Strike.js +13 -13
  165. package/lib/SubAndSuperScript.cjs +1 -1
  166. package/lib/SubAndSuperScript.d.cts +28 -26
  167. package/lib/SubAndSuperScript.d.ts +28 -26
  168. package/lib/SubAndSuperScript.js +1 -1
  169. package/lib/Table.cjs +1 -1
  170. package/lib/Table.d.cts +28 -26
  171. package/lib/Table.d.ts +28 -26
  172. package/lib/Table.js +1 -1
  173. package/lib/TableOfContent.cjs +1 -1
  174. package/lib/TableOfContent.d.cts +26 -26
  175. package/lib/TableOfContent.d.ts +26 -26
  176. package/lib/TableOfContent.js +1 -1
  177. package/lib/TaskList.cjs +1 -1
  178. package/lib/TaskList.d.cts +28 -26
  179. package/lib/TaskList.d.ts +28 -26
  180. package/lib/TaskList.js +15 -15
  181. package/lib/TextAlign.cjs +1 -1
  182. package/lib/TextAlign.d.cts +28 -26
  183. package/lib/TextAlign.d.ts +28 -26
  184. package/lib/TextAlign.js +41 -41
  185. package/lib/TextBubble.cjs +1 -1
  186. package/lib/TextBubble.d.cts +28 -26
  187. package/lib/TextBubble.d.ts +28 -26
  188. package/lib/TextBubble.js +1 -1
  189. package/lib/TextDirection.cjs +1 -1
  190. package/lib/TextDirection.d.cts +26 -26
  191. package/lib/TextDirection.d.ts +26 -26
  192. package/lib/TextDirection.js +1 -1
  193. package/lib/TextUnderline.cjs +1 -1
  194. package/lib/TextUnderline.d.cts +28 -26
  195. package/lib/TextUnderline.d.ts +28 -26
  196. package/lib/TextUnderline.js +8 -8
  197. package/lib/TrailingNode.d.cts +26 -26
  198. package/lib/TrailingNode.d.ts +26 -26
  199. package/lib/{Twitter-CXwmqolk.js → Twitter-CCf1aM0f.js} +1 -1
  200. package/lib/{Twitter--OkCPska.cjs → Twitter-Dj49i3B9.cjs} +1 -1
  201. package/lib/Twitter.cjs +1 -1
  202. package/lib/Twitter.d.cts +26 -26
  203. package/lib/Twitter.d.ts +26 -26
  204. package/lib/Twitter.js +1 -1
  205. package/lib/Video.cjs +1 -1
  206. package/lib/Video.d.cts +28 -26
  207. package/lib/Video.d.ts +28 -26
  208. package/lib/Video.js +1 -1
  209. package/lib/bubble-extra.cjs +1 -1
  210. package/lib/bubble-extra.d.cts +26 -26
  211. package/lib/bubble-extra.d.ts +26 -26
  212. package/lib/bubble-extra.js +5 -5
  213. package/lib/index.cjs +1 -1
  214. package/lib/index.d.cts +45 -39
  215. package/lib/index.d.ts +45 -39
  216. package/lib/index.js +2 -2
  217. package/lib/locale-bundle.d.cts +26 -26
  218. package/lib/locale-bundle.d.ts +26 -26
  219. package/lib/{textarea-DkVc2MIQ.cjs → textarea-DhlS0JCr.cjs} +1 -1
  220. package/lib/{textarea-HW9QlrCS.js → textarea-nr3UZ7Wg.js} +1 -1
  221. package/package.json +1 -1
@@ -1,21 +1,21 @@
1
1
  var vf = Object.defineProperty;
2
2
  var yf = (e, t, r) => t in e ? vf(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var _r = (e, t, r) => yf(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { jsxs as R, jsx as u, Fragment as pe } from "react/jsx-runtime";
4
+ import { jsxs as R, jsx as u, Fragment as ge } from "react/jsx-runtime";
5
5
  import * as ne from "react";
6
- import ir, { useState as J, useRef as He, useEffect as he, useMemo as we, useCallback as oe, createContext as xf, useContext as bf, useSyncExternalStore as wf, Fragment as Sf, memo as Af, forwardRef as Cf, useId as Tf, useImperativeHandle as Ef, useLayoutEffect as Rf } from "react";
6
+ import ir, { useState as J, useRef as He, useEffect as me, useMemo as we, useCallback as oe, createContext as xf, useContext as bf, useSyncExternalStore as wf, Fragment as Sf, memo as Af, forwardRef as Cf, useId as Tf, useImperativeHandle as Ef, useLayoutEffect as Rf } from "react";
7
7
  import { c as Oa, B as St, N as Pa, R as Na, g as ti, u as If, E as Of } from "./dom-dataset-Di3tIRrR.js";
8
8
  import { Slot as uu } from "@radix-ui/react-slot";
9
- import { n as Te, B as Pf, r as Yr, V as ra, u as Se, s as Nf, I as Jr, j as Zr, i as du, C as kf, E as Mf } from "./index-CsK90iVd.js";
9
+ import { n as Ee, B as Pf, r as Yr, V as ra, u as Se, s as Nf, I as Jr, j as Zr, i as du, C as kf, E as Mf } from "./index-CsK90iVd.js";
10
10
  import * as fu from "@radix-ui/react-separator";
11
- import * as ke from "@radix-ui/react-toast";
11
+ import * as Me from "@radix-ui/react-toast";
12
12
  import { Loader2 as Lf, WrapText as $f, PencilRuler as _f, FlipHorizontal as Df, FlipVertical as Bf, CropIcon as jf, ChevronUp as zf, Paperclip as Hf, Eye as qf, Settings as Ff, ZoomOut as Uf, ZoomIn as Wf, BookMarked as Gf, Sigma as Vf, SmilePlusIcon as Kf, Replace as Es, SmilePlus as Xf, Frame as Yf, Columns2 as Rs, PanelRight as Jf, PanelLeft as Zf, Clipboard as Qf, Copy as eh, GripVertical as th, Plus as hu, Columns4 as rh, Columns3 as nh, Heading6 as ih, Heading5 as oh, Heading4 as ah, Heading3 as sh, Heading2 as ch, Heading1 as lh, ChevronsUpDown as uh, Trash as dh, Trash2 as fh, TableCellsSplit as hh, TableCellsMerge as ph, BetweenVerticalEnd as mh, BetweenVerticalStart as gh, BetweenHorizonalStart as vh, BetweenHorizonalEnd as yh, Unlink as xh, Pencil as bh, Sparkles as wh, Table as Sh, Minimize as Ah, Maximize as Ch, Video as Th, ImageUp as Eh, Link as Rh, ListTodo as Ih, ListOrdered as Oh, List as Ph, IndentDecrease as Nh, IndentIncrease as kh, Type as Mh, CodeXml as Lh, Code as $h, Superscript as _h, Subscript as Dh, ChevronDown as Bh, Undo2 as jh, Redo2 as zh, PaintRoller as Hh, Eraser as qh, Minus as Fh, Strikethrough as Uh, Quote as Wh, Underline as Gh, Italic as Vh, LoaderCircle as Kh, Bold as Xh, X as pu, ChevronRight as Yh, Check as mu, Circle as Jh } from "lucide-react";
13
13
  import * as Cr from "@radix-ui/react-tooltip";
14
14
  import * as gu from "@radix-ui/react-toggle";
15
15
  import { TextAlignRightIcon as Zh, TextAlignLeftIcon as Qh, TextAlignJustifyIcon as ep, TextAlignCenterIcon as tp } from "@radix-ui/react-icons";
16
16
  import * as pr from "@radix-ui/react-popover";
17
17
  import * as vu from "@radix-ui/react-label";
18
- import * as $e from "@radix-ui/react-dialog";
18
+ import * as _e from "@radix-ui/react-dialog";
19
19
  import { I as Tr, J as rp, B as np, v as ip, a as Ot, P as Pt, T as Gt, A as op, K as ap, L as sp, M as cp, c as lp, m as at, O as up, Q as dp, R as fp, U as hp, V as pp, W as mp, N as Er, n as yu, b as gp, D as vp, X as Qr, q as yp, E as xp } from "./index-DI9T3iLd.js";
20
20
  import { Resizable as bp } from "re-resizable";
21
21
  import wp from "react-image-crop";
@@ -663,8 +663,8 @@ function qu(e, t, r, n, i, o) {
663
663
  break;
664
664
  }
665
665
  if (p) {
666
- if (!F0(t, function(y, w) {
667
- if (!Hu(p, w) && (m === y || i(m, y, r, n, o)))
666
+ if (!F0(t, function(x, w) {
667
+ if (!Hu(p, w) && (m === x || i(m, x, r, n, o)))
668
668
  return p.push(w);
669
669
  })) {
670
670
  h = !1;
@@ -742,10 +742,10 @@ function d1(e, t, r, n, i, o) {
742
742
  o.set(e, t), o.set(t, e);
743
743
  for (var g = a; ++d < c; ) {
744
744
  h = s[d];
745
- var y = e[h], w = t[h];
745
+ var x = e[h], w = t[h];
746
746
  if (n)
747
- var C = a ? n(w, y, h, t, e, o) : n(y, w, h, e, t, o);
748
- if (!(C === void 0 ? y === w || i(y, w, r, n, o) : C)) {
747
+ var C = a ? n(w, x, h, t, e, o) : n(x, w, h, e, t, o);
748
+ if (!(C === void 0 ? x === w || i(x, w, r, n, o) : C)) {
749
749
  v = !1;
750
750
  break;
751
751
  }
@@ -873,29 +873,29 @@ function Dn(e, t, r) {
873
873
  if (typeof e != "function")
874
874
  throw new TypeError(O1);
875
875
  t = qt(t) || 0, wt(r) && (f = !!r.leading, d = "maxWait" in r, o = d ? P1(qt(r.maxWait) || 0, t) : o, h = "trailing" in r ? !!r.trailing : h);
876
- function p(M) {
877
- var L = n, k = i;
878
- return n = i = void 0, l = M, a = e.apply(k, L), a;
876
+ function p(k) {
877
+ var L = n, M = i;
878
+ return n = i = void 0, l = k, a = e.apply(M, L), a;
879
879
  }
880
- function m(M) {
881
- return l = M, s = setTimeout(y, t), f ? p(M) : a;
880
+ function m(k) {
881
+ return l = k, s = setTimeout(x, t), f ? p(k) : a;
882
882
  }
883
- function v(M) {
884
- var L = M - c, k = M - l, N = t - L;
885
- return d ? N1(N, o - k) : N;
883
+ function v(k) {
884
+ var L = k - c, M = k - l, N = t - L;
885
+ return d ? N1(N, o - M) : N;
886
886
  }
887
- function g(M) {
888
- var L = M - c, k = M - l;
889
- return c === void 0 || L >= t || L < 0 || d && k >= o;
887
+ function g(k) {
888
+ var L = k - c, M = k - l;
889
+ return c === void 0 || L >= t || L < 0 || d && M >= o;
890
890
  }
891
- function y() {
892
- var M = oi();
893
- if (g(M))
894
- return w(M);
895
- s = setTimeout(y, v(M));
891
+ function x() {
892
+ var k = oi();
893
+ if (g(k))
894
+ return w(k);
895
+ s = setTimeout(x, v(k));
896
896
  }
897
- function w(M) {
898
- return s = void 0, h && n ? p(M) : (n = i = void 0, a);
897
+ function w(k) {
898
+ return s = void 0, h && n ? p(k) : (n = i = void 0, a);
899
899
  }
900
900
  function C() {
901
901
  s !== void 0 && clearTimeout(s), l = 0, n = c = i = s = void 0;
@@ -904,14 +904,14 @@ function Dn(e, t, r) {
904
904
  return s === void 0 ? a : w(oi());
905
905
  }
906
906
  function A() {
907
- var M = oi(), L = g(M);
908
- if (n = arguments, i = this, c = M, L) {
907
+ var k = oi(), L = g(k);
908
+ if (n = arguments, i = this, c = k, L) {
909
909
  if (s === void 0)
910
910
  return m(c);
911
911
  if (d)
912
- return clearTimeout(s), s = setTimeout(y, t), p(c);
912
+ return clearTimeout(s), s = setTimeout(x, t), p(c);
913
913
  }
914
- return s === void 0 && (s = setTimeout(y, t)), a;
914
+ return s === void 0 && (s = setTimeout(x, t)), a;
915
915
  }
916
916
  return A.cancel = C, A.flush = E, A;
917
917
  }
@@ -1115,18 +1115,18 @@ const za = "-", ov = (e) => {
1115
1115
  const c = [];
1116
1116
  let l = 0, f = 0, d;
1117
1117
  for (let g = 0; g < s.length; g++) {
1118
- let y = s[g];
1118
+ let x = s[g];
1119
1119
  if (l === 0) {
1120
- if (y === i && (n || s.slice(g, g + o) === t)) {
1120
+ if (x === i && (n || s.slice(g, g + o) === t)) {
1121
1121
  c.push(s.slice(f, g)), f = g + o;
1122
1122
  continue;
1123
1123
  }
1124
- if (y === "/") {
1124
+ if (x === "/") {
1125
1125
  d = g;
1126
1126
  continue;
1127
1127
  }
1128
1128
  }
1129
- y === "[" ? l++ : y === "]" && l--;
1129
+ x === "[" ? l++ : x === "]" && l--;
1130
1130
  }
1131
1131
  const h = c.length === 0 ? s : s.substring(f), p = h.startsWith(Qu), m = p ? h.substring(1) : h, v = d && d > f ? d - f : void 0;
1132
1132
  return {
@@ -1178,14 +1178,14 @@ const za = "-", ov = (e) => {
1178
1178
  }
1179
1179
  m = !1;
1180
1180
  }
1181
- const g = fv(f).join(":"), y = d ? g + Qu : g, w = y + v;
1181
+ const g = fv(f).join(":"), x = d ? g + Qu : g, w = x + v;
1182
1182
  if (o.includes(w))
1183
1183
  continue;
1184
1184
  o.push(w);
1185
1185
  const C = i(v, m);
1186
1186
  for (let E = 0; E < C.length; ++E) {
1187
1187
  const A = C[E];
1188
- o.push(y + A);
1188
+ o.push(x + A);
1189
1189
  }
1190
1190
  s = l + (s.length > 0 ? " " + s : s);
1191
1191
  }
@@ -1234,7 +1234,7 @@ const ce = (e) => {
1234
1234
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
1235
1235
  wv.test(e) && !Sv.test(e)
1236
1236
  ), rd = () => !1, Mv = (e) => Av.test(e), Lv = (e) => Cv.test(e), $v = () => {
1237
- const e = ce("colors"), t = ce("spacing"), r = ce("blur"), n = ce("brightness"), i = ce("borderColor"), o = ce("borderRadius"), a = ce("borderSpacing"), s = ce("borderWidth"), c = ce("contrast"), l = ce("grayscale"), f = ce("hueRotate"), d = ce("invert"), h = ce("gap"), p = ce("gradientColorStops"), m = ce("gradientColorStopPositions"), v = ce("inset"), g = ce("margin"), y = ce("opacity"), w = ce("padding"), C = ce("saturate"), E = ce("scale"), A = ce("sepia"), M = ce("skew"), L = ce("space"), k = ce("translate"), N = () => ["auto", "contain", "none"], $ = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", V, t], S = () => [V, t], P = () => ["", et, mt], D = () => ["auto", Ft, V], H = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], j = () => ["solid", "dashed", "dotted", "double", "none"], W = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Q = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], te = () => ["", "0", V], ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], me = () => [Ft, V];
1237
+ const e = ce("colors"), t = ce("spacing"), r = ce("blur"), n = ce("brightness"), i = ce("borderColor"), o = ce("borderRadius"), a = ce("borderSpacing"), s = ce("borderWidth"), c = ce("contrast"), l = ce("grayscale"), f = ce("hueRotate"), d = ce("invert"), h = ce("gap"), p = ce("gradientColorStops"), m = ce("gradientColorStopPositions"), v = ce("inset"), g = ce("margin"), x = ce("opacity"), w = ce("padding"), C = ce("saturate"), E = ce("scale"), A = ce("sepia"), k = ce("skew"), L = ce("space"), M = ce("translate"), N = () => ["auto", "contain", "none"], _ = () => ["auto", "hidden", "clip", "visible", "scroll"], T = () => ["auto", V, t], S = () => [V, t], P = () => ["", et, mt], D = () => ["auto", Ft, V], H = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], j = () => ["solid", "dashed", "dotted", "double", "none"], W = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ee = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], re = () => ["", "0", V], fe = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], pe = () => [Ft, V];
1238
1238
  return {
1239
1239
  cacheSize: 500,
1240
1240
  separator: ":",
@@ -1242,26 +1242,26 @@ const ce = (e) => {
1242
1242
  colors: [tr],
1243
1243
  spacing: [et, mt],
1244
1244
  blur: ["none", "", gt, V],
1245
- brightness: me(),
1245
+ brightness: pe(),
1246
1246
  borderColor: [e],
1247
1247
  borderRadius: ["none", "", "full", gt, V],
1248
1248
  borderSpacing: S(),
1249
1249
  borderWidth: P(),
1250
- contrast: me(),
1251
- grayscale: te(),
1252
- hueRotate: me(),
1253
- invert: te(),
1250
+ contrast: pe(),
1251
+ grayscale: re(),
1252
+ hueRotate: pe(),
1253
+ invert: re(),
1254
1254
  gap: S(),
1255
1255
  gradientColorStops: [e],
1256
1256
  gradientColorStopPositions: [Tv, mt],
1257
1257
  inset: T(),
1258
1258
  margin: T(),
1259
- opacity: me(),
1259
+ opacity: pe(),
1260
1260
  padding: S(),
1261
- saturate: me(),
1262
- scale: me(),
1263
- sepia: te(),
1264
- skew: me(),
1261
+ saturate: pe(),
1262
+ scale: pe(),
1263
+ sepia: re(),
1264
+ skew: pe(),
1265
1265
  space: S(),
1266
1266
  translate: S()
1267
1267
  },
@@ -1291,14 +1291,14 @@ const ce = (e) => {
1291
1291
  * @see https://tailwindcss.com/docs/break-after
1292
1292
  */
1293
1293
  "break-after": [{
1294
- "break-after": ye()
1294
+ "break-after": fe()
1295
1295
  }],
1296
1296
  /**
1297
1297
  * Break Before
1298
1298
  * @see https://tailwindcss.com/docs/break-before
1299
1299
  */
1300
1300
  "break-before": [{
1301
- "break-before": ye()
1301
+ "break-before": fe()
1302
1302
  }],
1303
1303
  /**
1304
1304
  * Break Inside
@@ -1364,21 +1364,21 @@ const ce = (e) => {
1364
1364
  * @see https://tailwindcss.com/docs/overflow
1365
1365
  */
1366
1366
  overflow: [{
1367
- overflow: $()
1367
+ overflow: _()
1368
1368
  }],
1369
1369
  /**
1370
1370
  * Overflow X
1371
1371
  * @see https://tailwindcss.com/docs/overflow
1372
1372
  */
1373
1373
  "overflow-x": [{
1374
- "overflow-x": $()
1374
+ "overflow-x": _()
1375
1375
  }],
1376
1376
  /**
1377
1377
  * Overflow Y
1378
1378
  * @see https://tailwindcss.com/docs/overflow
1379
1379
  */
1380
1380
  "overflow-y": [{
1381
- "overflow-y": $()
1381
+ "overflow-y": _()
1382
1382
  }],
1383
1383
  /**
1384
1384
  * Overscroll Behavior
@@ -1515,14 +1515,14 @@ const ce = (e) => {
1515
1515
  * @see https://tailwindcss.com/docs/flex-grow
1516
1516
  */
1517
1517
  grow: [{
1518
- grow: te()
1518
+ grow: re()
1519
1519
  }],
1520
1520
  /**
1521
1521
  * Flex Shrink
1522
1522
  * @see https://tailwindcss.com/docs/flex-shrink
1523
1523
  */
1524
1524
  shrink: [{
1525
- shrink: te()
1525
+ shrink: re()
1526
1526
  }],
1527
1527
  /**
1528
1528
  * Order
@@ -1638,7 +1638,7 @@ const ce = (e) => {
1638
1638
  * @see https://tailwindcss.com/docs/justify-content
1639
1639
  */
1640
1640
  "justify-content": [{
1641
- justify: ["normal", ...Q()]
1641
+ justify: ["normal", ...ee()]
1642
1642
  }],
1643
1643
  /**
1644
1644
  * Justify Items
@@ -1659,7 +1659,7 @@ const ce = (e) => {
1659
1659
  * @see https://tailwindcss.com/docs/align-content
1660
1660
  */
1661
1661
  "align-content": [{
1662
- content: ["normal", ...Q(), "baseline"]
1662
+ content: ["normal", ...ee(), "baseline"]
1663
1663
  }],
1664
1664
  /**
1665
1665
  * Align Items
@@ -1680,7 +1680,7 @@ const ce = (e) => {
1680
1680
  * @see https://tailwindcss.com/docs/place-content
1681
1681
  */
1682
1682
  "place-content": [{
1683
- "place-content": [...Q(), "baseline"]
1683
+ "place-content": [...ee(), "baseline"]
1684
1684
  }],
1685
1685
  /**
1686
1686
  * Place Items
@@ -2016,7 +2016,7 @@ const ce = (e) => {
2016
2016
  * @see https://tailwindcss.com/docs/placeholder-opacity
2017
2017
  */
2018
2018
  "placeholder-opacity": [{
2019
- "placeholder-opacity": [y]
2019
+ "placeholder-opacity": [x]
2020
2020
  }],
2021
2021
  /**
2022
2022
  * Text Alignment
@@ -2037,7 +2037,7 @@ const ce = (e) => {
2037
2037
  * @see https://tailwindcss.com/docs/text-opacity
2038
2038
  */
2039
2039
  "text-opacity": [{
2040
- "text-opacity": [y]
2040
+ "text-opacity": [x]
2041
2041
  }],
2042
2042
  /**
2043
2043
  * Text Decoration
@@ -2152,7 +2152,7 @@ const ce = (e) => {
2152
2152
  * @see https://tailwindcss.com/docs/background-opacity
2153
2153
  */
2154
2154
  "bg-opacity": [{
2155
- "bg-opacity": [y]
2155
+ "bg-opacity": [x]
2156
2156
  }],
2157
2157
  /**
2158
2158
  * Background Origin
@@ -2416,7 +2416,7 @@ const ce = (e) => {
2416
2416
  * @see https://tailwindcss.com/docs/border-opacity
2417
2417
  */
2418
2418
  "border-opacity": [{
2419
- "border-opacity": [y]
2419
+ "border-opacity": [x]
2420
2420
  }],
2421
2421
  /**
2422
2422
  * Border Style
@@ -2454,7 +2454,7 @@ const ce = (e) => {
2454
2454
  * @see https://tailwindcss.com/docs/divide-opacity
2455
2455
  */
2456
2456
  "divide-opacity": [{
2457
- "divide-opacity": [y]
2457
+ "divide-opacity": [x]
2458
2458
  }],
2459
2459
  /**
2460
2460
  * Divide Style
@@ -2585,7 +2585,7 @@ const ce = (e) => {
2585
2585
  * @see https://tailwindcss.com/docs/ring-opacity
2586
2586
  */
2587
2587
  "ring-opacity": [{
2588
- "ring-opacity": [y]
2588
+ "ring-opacity": [x]
2589
2589
  }],
2590
2590
  /**
2591
2591
  * Ring Offset Width
@@ -2621,7 +2621,7 @@ const ce = (e) => {
2621
2621
  * @see https://tailwindcss.com/docs/opacity
2622
2622
  */
2623
2623
  opacity: [{
2624
- opacity: [y]
2624
+ opacity: [x]
2625
2625
  }],
2626
2626
  /**
2627
2627
  * Mix Blend Mode
@@ -2764,7 +2764,7 @@ const ce = (e) => {
2764
2764
  * @see https://tailwindcss.com/docs/backdrop-opacity
2765
2765
  */
2766
2766
  "backdrop-opacity": [{
2767
- "backdrop-opacity": [y]
2767
+ "backdrop-opacity": [x]
2768
2768
  }],
2769
2769
  /**
2770
2770
  * Backdrop Saturate
@@ -2836,7 +2836,7 @@ const ce = (e) => {
2836
2836
  * @see https://tailwindcss.com/docs/transition-duration
2837
2837
  */
2838
2838
  duration: [{
2839
- duration: me()
2839
+ duration: pe()
2840
2840
  }],
2841
2841
  /**
2842
2842
  * Transition Timing Function
@@ -2850,7 +2850,7 @@ const ce = (e) => {
2850
2850
  * @see https://tailwindcss.com/docs/transition-delay
2851
2851
  */
2852
2852
  delay: [{
2853
- delay: me()
2853
+ delay: pe()
2854
2854
  }],
2855
2855
  /**
2856
2856
  * Animation
@@ -2900,28 +2900,28 @@ const ce = (e) => {
2900
2900
  * @see https://tailwindcss.com/docs/translate
2901
2901
  */
2902
2902
  "translate-x": [{
2903
- "translate-x": [k]
2903
+ "translate-x": [M]
2904
2904
  }],
2905
2905
  /**
2906
2906
  * Translate Y
2907
2907
  * @see https://tailwindcss.com/docs/translate
2908
2908
  */
2909
2909
  "translate-y": [{
2910
- "translate-y": [k]
2910
+ "translate-y": [M]
2911
2911
  }],
2912
2912
  /**
2913
2913
  * Skew X
2914
2914
  * @see https://tailwindcss.com/docs/skew
2915
2915
  */
2916
2916
  "skew-x": [{
2917
- "skew-x": [M]
2917
+ "skew-x": [k]
2918
2918
  }],
2919
2919
  /**
2920
2920
  * Skew Y
2921
2921
  * @see https://tailwindcss.com/docs/skew
2922
2922
  */
2923
2923
  "skew-y": [{
2924
- "skew-y": [M]
2924
+ "skew-y": [k]
2925
2925
  }],
2926
2926
  /**
2927
2927
  * Transform Origin
@@ -3263,7 +3263,7 @@ const ce = (e) => {
3263
3263
  }
3264
3264
  };
3265
3265
  }, _v = /* @__PURE__ */ vv($v);
3266
- function ee(...e) {
3266
+ function Q(...e) {
3267
3267
  return _v(Oa(e));
3268
3268
  }
3269
3269
  let ci;
@@ -3304,7 +3304,7 @@ const F = ir.forwardRef(
3304
3304
  onClick: l,
3305
3305
  ref: t,
3306
3306
  size: "sm",
3307
- className: ee("richtext-w-[32px] richtext-h-[32px]", o),
3307
+ className: Q("richtext-w-[32px] richtext-h-[32px]", o),
3308
3308
  disabled: i,
3309
3309
  ...v,
3310
3310
  children: [
@@ -3330,7 +3330,7 @@ function jv(e) {
3330
3330
  type: `image-${n}`,
3331
3331
  component: F,
3332
3332
  componentProps: {
3333
- tooltip: Te.t(`editor.${n.replace("-", ".")}.tooltip`),
3333
+ tooltip: Ee.t(`editor.${n.replace("-", ".")}.tooltip`),
3334
3334
  icon: r[i],
3335
3335
  action: () => e.commands.updateImage({ width: Yr[n] }),
3336
3336
  isActive: () => e.isActive("image", { width: Yr[n] })
@@ -3347,7 +3347,7 @@ function zv(e) {
3347
3347
  type: `image-${n}`,
3348
3348
  component: F,
3349
3349
  componentProps: {
3350
- tooltip: Te.t(`editor.${n.replace("-", ".")}.tooltip`),
3350
+ tooltip: Ee.t(`editor.${n.replace("-", ".")}.tooltip`),
3351
3351
  icon: r[i],
3352
3352
  action: () => e.commands.updateImageGif({ width: Yr[n] }),
3353
3353
  isActive: () => e.isActive("image", { width: Yr[n] })
@@ -3364,7 +3364,7 @@ function Hv(e) {
3364
3364
  type: `image-${n}`,
3365
3365
  component: F,
3366
3366
  componentProps: {
3367
- tooltip: Te.t(`editor.textalign.${n}.tooltip`),
3367
+ tooltip: Ee.t(`editor.textalign.${n}.tooltip`),
3368
3368
  icon: r[n],
3369
3369
  action: () => {
3370
3370
  var i, o;
@@ -3385,7 +3385,7 @@ function qv(e) {
3385
3385
  type: `image-${n}`,
3386
3386
  component: F,
3387
3387
  componentProps: {
3388
- tooltip: Te.t(`editor.textalign.${n}.tooltip`),
3388
+ tooltip: Ee.t(`editor.textalign.${n}.tooltip`),
3389
3389
  icon: r[n],
3390
3390
  action: () => {
3391
3391
  var i, o;
@@ -3406,7 +3406,7 @@ function Fv(e) {
3406
3406
  type: `image-${n}`,
3407
3407
  component: F,
3408
3408
  componentProps: {
3409
- tooltip: Te.t(`editor.textalign.${n}.tooltip`),
3409
+ tooltip: Ee.t(`editor.textalign.${n}.tooltip`),
3410
3410
  icon: r[n],
3411
3411
  action: () => {
3412
3412
  var i, o;
@@ -3427,7 +3427,7 @@ function Uv(e) {
3427
3427
  type: `image-${n}`,
3428
3428
  component: F,
3429
3429
  componentProps: {
3430
- tooltip: Te.t(`editor.textalign.${n}.tooltip`),
3430
+ tooltip: Ee.t(`editor.textalign.${n}.tooltip`),
3431
3431
  icon: r[n],
3432
3432
  action: () => {
3433
3433
  var i, o;
@@ -3464,7 +3464,7 @@ function Gv(e) {
3464
3464
  type: `video-${n}`,
3465
3465
  component: F,
3466
3466
  componentProps: {
3467
- tooltip: Te.t(`editor.${n.replace("-", ".")}.tooltip`),
3467
+ tooltip: Ee.t(`editor.${n.replace("-", ".")}.tooltip`),
3468
3468
  icon: r[i],
3469
3469
  action: () => e.commands.updateVideo({ width: ra[n] }),
3470
3470
  isActive: () => e.isActive("video", { width: ra[n] })
@@ -3478,7 +3478,7 @@ function Vv(e) {
3478
3478
  component: F,
3479
3479
  componentProps: {
3480
3480
  editor: e,
3481
- tooltip: Te.t("editor.tooltip.flipX"),
3481
+ tooltip: Ee.t("editor.tooltip.flipX"),
3482
3482
  icon: "FlipX",
3483
3483
  action: () => {
3484
3484
  const t = e.getAttributes("image"), { flipX: r } = t;
@@ -3493,7 +3493,7 @@ function Vv(e) {
3493
3493
  component: F,
3494
3494
  componentProps: {
3495
3495
  editor: e,
3496
- tooltip: Te.t("editor.tooltip.flipY"),
3496
+ tooltip: Ee.t("editor.tooltip.flipY"),
3497
3497
  icon: "FlipY",
3498
3498
  action: () => {
3499
3499
  const t = e.getAttributes("image"), { flipY: r } = t;
@@ -3510,7 +3510,7 @@ function Vv(e) {
3510
3510
  component: F,
3511
3511
  componentProps: {
3512
3512
  editor: e,
3513
- tooltip: Te.t("editor.remove"),
3513
+ tooltip: Ee.t("editor.remove"),
3514
3514
  icon: "Trash2",
3515
3515
  action: () => {
3516
3516
  const { state: t, dispatch: r } = e.view;
@@ -3529,7 +3529,7 @@ function Kv(e) {
3529
3529
  component: F,
3530
3530
  componentProps: {
3531
3531
  editor: e,
3532
- tooltip: Te.t("editor.remove"),
3532
+ tooltip: Ee.t("editor.remove"),
3533
3533
  icon: "Trash2",
3534
3534
  action: () => {
3535
3535
  const { state: t, dispatch: r } = e.view;
@@ -3547,7 +3547,7 @@ function bw(e) {
3547
3547
  component: F,
3548
3548
  componentProps: {
3549
3549
  editor: e,
3550
- tooltip: Te.t("editor.edit"),
3550
+ tooltip: Ee.t("editor.edit"),
3551
3551
  icon: "Pencil",
3552
3552
  action: () => !0
3553
3553
  }
@@ -3557,7 +3557,7 @@ function bw(e) {
3557
3557
  component: F,
3558
3558
  componentProps: {
3559
3559
  editor: e,
3560
- tooltip: Te.t("editor.remove"),
3560
+ tooltip: Ee.t("editor.remove"),
3561
3561
  icon: "Trash2",
3562
3562
  action: () => {
3563
3563
  const { state: t, dispatch: r } = e.view;
@@ -3575,7 +3575,7 @@ function ww(e) {
3575
3575
  component: F,
3576
3576
  componentProps: {
3577
3577
  editor: e,
3578
- tooltip: Te.t("editor.edit"),
3578
+ tooltip: Ee.t("editor.edit"),
3579
3579
  icon: "Pencil",
3580
3580
  action: () => (console.log("AAA"), !0)
3581
3581
  }
@@ -3585,7 +3585,7 @@ function ww(e) {
3585
3585
  component: F,
3586
3586
  componentProps: {
3587
3587
  editor: e,
3588
- tooltip: Te.t("editor.remove"),
3588
+ tooltip: Ee.t("editor.remove"),
3589
3589
  icon: "Trash2",
3590
3590
  action: () => {
3591
3591
  const { state: t, dispatch: r } = e.view;
@@ -3604,7 +3604,7 @@ function Xv(e) {
3604
3604
  component: F,
3605
3605
  componentProps: {
3606
3606
  editor: e,
3607
- tooltip: Te.t("editor.remove"),
3607
+ tooltip: Ee.t("editor.remove"),
3608
3608
  icon: "Trash2",
3609
3609
  action: () => {
3610
3610
  const { state: t, dispatch: r } = e.view;
@@ -3754,12 +3754,12 @@ function Qv(e, t) {
3754
3754
  const { doc: r } = t.view.state, n = nd({ editor: t, x: e.clientX, y: e.clientY, direction: "right" });
3755
3755
  if (!n.resultNode || n.pos === null) return [];
3756
3756
  const i = e.clientX, o = function(f, d, h) {
3757
- const p = Number.parseInt(Br(f.dom, "paddingLeft"), 10), m = Number.parseInt(Br(f.dom, "paddingRight"), 10), v = Number.parseInt(Br(f.dom, "borderLeftWidth"), 10), g = Number.parseInt(Br(f.dom, "borderLeftWidth"), 10), y = f.dom.getBoundingClientRect();
3757
+ const p = Number.parseInt(Br(f.dom, "paddingLeft"), 10), m = Number.parseInt(Br(f.dom, "paddingRight"), 10), v = Number.parseInt(Br(f.dom, "borderLeftWidth"), 10), g = Number.parseInt(Br(f.dom, "borderLeftWidth"), 10), x = f.dom.getBoundingClientRect();
3758
3758
  return {
3759
3759
  left: Zv(
3760
3760
  d,
3761
- y.left + p + v,
3762
- y.right - m - g
3761
+ x.left + p + v,
3762
+ x.right - m - g
3763
3763
  ),
3764
3764
  top: h
3765
3765
  };
@@ -3801,13 +3801,13 @@ function ey({
3801
3801
  return t.addEventListener("dragstart", (f) => {
3802
3802
  const { view: d } = r;
3803
3803
  if (!f.dataTransfer) return;
3804
- const { empty: h, $from: p, $to: m } = d.state.selection, v = Qv(f, r), g = Ha(p, m, 0), y = g.some((N) => v.find(($) => $.$from === N.$from && $.$to === N.$to)), w = h || !y ? v : g;
3804
+ const { empty: h, $from: p, $to: m } = d.state.selection, v = Qv(f, r), g = Ha(p, m, 0), x = g.some((N) => v.find((_) => _.$from === N.$from && _.$to === N.$to)), w = h || !x ? v : g;
3805
3805
  if (w.length === 0) return;
3806
- const { tr: C } = d.state, E = document.createElement("div"), A = w[0].$from.pos, M = w[w.length - 1].$to.pos, L = We.create(d.state.doc, A, M), k = L.content();
3806
+ const { tr: C } = d.state, E = document.createElement("div"), A = w[0].$from.pos, k = w[w.length - 1].$to.pos, L = We.create(d.state.doc, A, k), M = L.content();
3807
3807
  w.forEach((N) => {
3808
- const $ = Jv(d.nodeDOM(N.$from.pos));
3809
- E.append($);
3810
- }), E.style.position = "absolute", E.style.top = "-10000px", document.body.append(E), f.dataTransfer.clearData(), f.dataTransfer.setDragImage(E, 0, 0), d.dragging = { slice: k, move: !0 }, C.setSelection(L), d.dispatch(C), document.addEventListener("drop", () => nc(E), { once: !0 }), setTimeout(() => {
3808
+ const _ = Jv(d.nodeDOM(N.$from.pos));
3809
+ E.append(_);
3810
+ }), E.style.position = "absolute", E.style.top = "-10000px", document.body.append(E), f.dataTransfer.clearData(), f.dataTransfer.setDragImage(E, 0, 0), d.dragging = { slice: M, move: !0 }, C.setSelection(L), d.dispatch(C), document.addEventListener("drop", () => nc(E), { once: !0 }), setTimeout(() => {
3811
3811
  t && (t.style.pointerEvents = "none");
3812
3812
  }, 0);
3813
3813
  }), t.addEventListener("dragend", () => {
@@ -3835,8 +3835,8 @@ function ey({
3835
3835
  update(E, A) {
3836
3836
  if (!m(t, a) || (t.draggable = !s, !v(E, A)))
3837
3837
  return;
3838
- const M = g(E);
3839
- M && y(E, M);
3838
+ const k = g(E);
3839
+ k && x(E, k);
3840
3840
  },
3841
3841
  destroy() {
3842
3842
  C();
@@ -3889,12 +3889,12 @@ function ey({
3889
3889
  let A = E.nodeDOM(l);
3890
3890
  return A = ac(E, A), A === E.dom || (A == null ? void 0 : A.nodeType) !== 1 ? null : A;
3891
3891
  }
3892
- function y(E, A) {
3893
- const M = E.posAtDOM(A, 0), L = oc(r.state.doc, M);
3892
+ function x(E, A) {
3893
+ const k = E.posAtDOM(A, 0), L = oc(r.state.doc, k);
3894
3894
  if (L === c)
3895
3895
  return;
3896
- const k = ic(r.state.doc, M);
3897
- c = L, l = k, i == null || i({
3896
+ const M = ic(r.state.doc, k);
3897
+ c = L, l = M, i == null || i({
3898
3898
  editor: r,
3899
3899
  node: c,
3900
3900
  pos: l
@@ -3995,9 +3995,9 @@ function Sw({ delta: e, types: t }) {
3995
3995
  };
3996
3996
  }
3997
3997
  function ny(e) {
3998
- var k, N, $;
3998
+ var M, N, _;
3999
3999
  const { pluginKey: t = id } = e, { t: r } = Se(), [n, i] = J(null), [o, a] = J(-1), s = He(null), c = He(null), [l, f] = J(!1), d = e.editor.extensionManager.extensions.some((T) => T.name === "textAlign"), h = e.editor.extensionManager.extensions.some((T) => T.name === "indent"), p = e.editor.extensionManager.extensions.some((T) => T.name === "clear");
4000
- he(() => {
4000
+ me(() => {
4001
4001
  s.current && !e.editor.isDestroyed && (c.current = ey({
4002
4002
  editor: e.editor,
4003
4003
  element: s.current,
@@ -4022,7 +4022,7 @@ function ny(e) {
4022
4022
  const { $anchor: T } = e.editor.state.selection, S = T.node(1) || e.editor.state.selection.node;
4023
4023
  e.editor.chain().setMeta("hideDragHandle", !0).insertContentAt(o + ((n == null ? void 0 : n.nodeSize) || 0), S.toJSON()).run();
4024
4024
  }
4025
- function y(T) {
4025
+ function x(T) {
4026
4026
  e.editor.commands.setTextAlign(T);
4027
4027
  }
4028
4028
  function w() {
@@ -4039,24 +4039,24 @@ function ny(e) {
4039
4039
  function A(T) {
4040
4040
  T.node && i(T.node), a(T.pos);
4041
4041
  }
4042
- function M() {
4042
+ function k() {
4043
4043
  var T;
4044
4044
  if (o !== -1) {
4045
4045
  const S = (n == null ? void 0 : n.nodeSize) || 0, P = o + S, D = (n == null ? void 0 : n.type.name) === "paragraph" && ((T = n == null ? void 0 : n.content) == null ? void 0 : T.size) === 0, H = D ? o + 2 : P + 2;
4046
- e.editor.chain().command(({ dispatch: j, tr: W, state: Q }) => j ? (D ? W.insertText("/", o, o + 1) : W.insert(
4046
+ e.editor.chain().command(({ dispatch: j, tr: W, state: ee }) => j ? (D ? W.insertText("/", o, o + 1) : W.insert(
4047
4047
  P,
4048
- Q.schema.nodes.paragraph.create(null, [Q.schema.text("/")])
4048
+ ee.schema.nodes.paragraph.create(null, [ee.schema.text("/")])
4049
4049
  ), j(W)) : !0).focus(H).run();
4050
4050
  }
4051
4051
  }
4052
- he(() => (l ? e.editor.commands.setMeta("lockDragHandle", !0) : e.editor.commands.setMeta("lockDragHandle", !1), () => {
4052
+ me(() => (l ? e.editor.commands.setMeta("lockDragHandle", !0) : e.editor.commands.setMeta("lockDragHandle", !1), () => {
4053
4053
  e.editor.commands.setMeta("lockDragHandle", !1);
4054
- }), [l]), he(() => () => {
4054
+ }), [l]), me(() => () => {
4055
4055
  c.current && (e.editor.unregisterPlugin(t), c.current = null);
4056
- }, []), he(() => {
4056
+ }, []), me(() => {
4057
4057
  var T;
4058
4058
  (T = e.editor) != null && T.isDestroyed && c.current && (e.editor.unregisterPlugin(t), c.current = null);
4059
- }, [(k = e.editor) == null ? void 0 : k.isDestroyed]);
4059
+ }, [(M = e.editor) == null ? void 0 : M.isDestroyed]);
4060
4060
  const L = (T) => {
4061
4061
  e != null && e.disabled || f(T);
4062
4062
  };
@@ -4070,16 +4070,16 @@ function ny(e) {
4070
4070
  },
4071
4071
  children: /* @__PURE__ */ R("div", { className: "richtext-flex richtext-items-center richtext-gap-0.5 richtext-duration-200 richtext-ease-in-out [transition-property:top,_left]", children: [
4072
4072
  /* @__PURE__ */ u(
4073
- Ce,
4073
+ Te,
4074
4074
  {
4075
4075
  className: "!richtext-size-7 richtext-cursor-grab",
4076
4076
  disabled: e == null ? void 0 : e.disabled,
4077
- onClick: M,
4077
+ onClick: k,
4078
4078
  size: "icon",
4079
4079
  type: "button",
4080
4080
  variant: "ghost",
4081
4081
  children: /* @__PURE__ */ u(
4082
- ve,
4082
+ ye,
4083
4083
  {
4084
4084
  className: "richtext-text-lg richtext-text-neutral-600 dark:richtext-text-neutral-200",
4085
4085
  name: "Plus"
@@ -4101,7 +4101,7 @@ function ny(e) {
4101
4101
  asChild: !0,
4102
4102
  disabled: e == null ? void 0 : e.disabled,
4103
4103
  children: /* @__PURE__ */ u(
4104
- Ce,
4104
+ Te,
4105
4105
  {
4106
4106
  className: "richtext-relative richtext-z-[1] !richtext-size-7 richtext-cursor-grab",
4107
4107
  disabled: e == null ? void 0 : e.disabled,
@@ -4112,7 +4112,7 @@ function ny(e) {
4112
4112
  T.preventDefault(), !(e != null && e.disabled) && f(!0);
4113
4113
  },
4114
4114
  children: /* @__PURE__ */ u(
4115
- ve,
4115
+ ye,
4116
4116
  {
4117
4117
  className: "richtext-text-sm richtext-text-neutral-600 dark:richtext-text-neutral-200",
4118
4118
  name: "Grip"
@@ -4140,7 +4140,7 @@ function ny(e) {
4140
4140
  className: "richtext-flex richtext-gap-3 richtext-bg-opacity-10 hover:richtext-bg-red-400 hover:richtext-bg-opacity-20 focus:richtext-bg-red-400 focus:richtext-bg-opacity-30 focus:richtext-text-red-500 dark:hover:richtext-bg-opacity-20 dark:hover:richtext-text-red-500",
4141
4141
  onClick: E,
4142
4142
  children: [
4143
- /* @__PURE__ */ u(ve, { name: "Trash2" }),
4143
+ /* @__PURE__ */ u(ye, { name: "Trash2" }),
4144
4144
  /* @__PURE__ */ u("span", { children: r("editor.remove") })
4145
4145
  ]
4146
4146
  }
@@ -4151,7 +4151,7 @@ function ny(e) {
4151
4151
  className: "richtext-flex richtext-gap-3",
4152
4152
  onClick: m,
4153
4153
  children: [
4154
- /* @__PURE__ */ u(ve, { name: "PaintRoller" }),
4154
+ /* @__PURE__ */ u(ye, { name: "PaintRoller" }),
4155
4155
  /* @__PURE__ */ u("span", { children: r("editor.clear.tooltip") })
4156
4156
  ]
4157
4157
  }
@@ -4162,7 +4162,7 @@ function ny(e) {
4162
4162
  className: "richtext-flex richtext-gap-3",
4163
4163
  onClick: v,
4164
4164
  children: [
4165
- /* @__PURE__ */ u(ve, { name: "Clipboard" }),
4165
+ /* @__PURE__ */ u(ye, { name: "Clipboard" }),
4166
4166
  /* @__PURE__ */ u("span", { children: r("editor.copyToClipboard") })
4167
4167
  ]
4168
4168
  }
@@ -4173,7 +4173,7 @@ function ny(e) {
4173
4173
  className: "richtext-flex richtext-gap-3",
4174
4174
  onClick: g,
4175
4175
  children: [
4176
- /* @__PURE__ */ u(ve, { name: "Copy" }),
4176
+ /* @__PURE__ */ u(ye, { name: "Copy" }),
4177
4177
  /* @__PURE__ */ u("span", { children: r("editor.copy") })
4178
4178
  ]
4179
4179
  }
@@ -4181,7 +4181,7 @@ function ny(e) {
4181
4181
  d || h ? /* @__PURE__ */ u(Rd, {}) : null,
4182
4182
  d ? /* @__PURE__ */ R(yc, { children: [
4183
4183
  /* @__PURE__ */ R(Ea, { className: "richtext-flex richtext-gap-3", children: [
4184
- /* @__PURE__ */ u(ve, { name: "AlignCenter" }),
4184
+ /* @__PURE__ */ u(ye, { name: "AlignCenter" }),
4185
4185
  /* @__PURE__ */ u("span", { children: r("editor.textalign.tooltip") })
4186
4186
  ] }),
4187
4187
  /* @__PURE__ */ u(vc, { children: /* @__PURE__ */ R(Ra, { children: [
@@ -4189,9 +4189,9 @@ function ny(e) {
4189
4189
  qe,
4190
4190
  {
4191
4191
  className: "richtext-flex richtext-gap-3",
4192
- onClick: () => y("left"),
4192
+ onClick: () => x("left"),
4193
4193
  children: [
4194
- /* @__PURE__ */ u(ve, { name: "AlignLeft" }),
4194
+ /* @__PURE__ */ u(ye, { name: "AlignLeft" }),
4195
4195
  /* @__PURE__ */ u("span", { children: r("editor.textalign.left.tooltip") })
4196
4196
  ]
4197
4197
  }
@@ -4200,9 +4200,9 @@ function ny(e) {
4200
4200
  qe,
4201
4201
  {
4202
4202
  className: "richtext-flex richtext-gap-3",
4203
- onClick: () => y("center"),
4203
+ onClick: () => x("center"),
4204
4204
  children: [
4205
- /* @__PURE__ */ u(ve, { name: "AlignCenter" }),
4205
+ /* @__PURE__ */ u(ye, { name: "AlignCenter" }),
4206
4206
  /* @__PURE__ */ u("span", { children: r("editor.textalign.center.tooltip") })
4207
4207
  ]
4208
4208
  }
@@ -4211,9 +4211,9 @@ function ny(e) {
4211
4211
  qe,
4212
4212
  {
4213
4213
  className: "richtext-flex richtext-gap-3",
4214
- onClick: () => y("right"),
4214
+ onClick: () => x("right"),
4215
4215
  children: [
4216
- /* @__PURE__ */ u(ve, { name: "AlignRight" }),
4216
+ /* @__PURE__ */ u(ye, { name: "AlignRight" }),
4217
4217
  /* @__PURE__ */ u("span", { children: r("editor.textalign.right.tooltip") })
4218
4218
  ]
4219
4219
  }
@@ -4222,7 +4222,7 @@ function ny(e) {
4222
4222
  ] }) : null,
4223
4223
  h ? /* @__PURE__ */ R(yc, { children: [
4224
4224
  /* @__PURE__ */ R(Ea, { className: "richtext-flex richtext-gap-3", children: [
4225
- /* @__PURE__ */ u(ve, { name: "IndentIncrease" }),
4225
+ /* @__PURE__ */ u(ye, { name: "IndentIncrease" }),
4226
4226
  /* @__PURE__ */ u("span", { children: r("editor.indent") })
4227
4227
  ] }),
4228
4228
  /* @__PURE__ */ u(vc, { children: /* @__PURE__ */ R(Ra, { children: [
@@ -4233,7 +4233,7 @@ function ny(e) {
4233
4233
  disabled: ((N = n == null ? void 0 : n.attrs) == null ? void 0 : N.indent) >= ga.max,
4234
4234
  onClick: w,
4235
4235
  children: [
4236
- /* @__PURE__ */ u(ve, { name: "IndentIncrease" }),
4236
+ /* @__PURE__ */ u(ye, { name: "IndentIncrease" }),
4237
4237
  /* @__PURE__ */ u("span", { children: r("editor.indent.tooltip") })
4238
4238
  ]
4239
4239
  }
@@ -4242,10 +4242,10 @@ function ny(e) {
4242
4242
  qe,
4243
4243
  {
4244
4244
  className: "richtext-flex richtext-gap-3",
4245
- disabled: (($ = n == null ? void 0 : n.attrs) == null ? void 0 : $.indent) <= ga.min,
4245
+ disabled: ((_ = n == null ? void 0 : n.attrs) == null ? void 0 : _.indent) <= ga.min,
4246
4246
  onClick: C,
4247
4247
  children: [
4248
- /* @__PURE__ */ u(ve, { name: "IndentDecrease" }),
4248
+ /* @__PURE__ */ u(ye, { name: "IndentDecrease" }),
4249
4249
  /* @__PURE__ */ u("span", { children: r("editor.outdent.tooltip") })
4250
4250
  ]
4251
4251
  }
@@ -4278,7 +4278,7 @@ function oy({ item: e, disabled: t, editor: r }) {
4278
4278
  disabled: t || ((i = e == null ? void 0 : e.componentProps) == null ? void 0 : i.disabled),
4279
4279
  editor: r
4280
4280
  }
4281
- ) : /* @__PURE__ */ u(pe, {});
4281
+ ) : /* @__PURE__ */ u(ge, {});
4282
4282
  }
4283
4283
  function ay(e) {
4284
4284
  const { t, lang: r } = Se(), n = ({ editor: o }) => {
@@ -4306,7 +4306,7 @@ function ay(e) {
4306
4306
  item: o
4307
4307
  },
4308
4308
  `bubbleMenu-text-${a}`
4309
- )) }) }) : /* @__PURE__ */ u(pe, {})
4309
+ )) }) }) : /* @__PURE__ */ u(ge, {})
4310
4310
  }
4311
4311
  );
4312
4312
  }
@@ -4395,7 +4395,7 @@ function dy(e) {
4395
4395
  }
4396
4396
  ) });
4397
4397
  }
4398
- function ve(e) {
4398
+ function ye(e) {
4399
4399
  const t = od[e.name];
4400
4400
  return t ? /* @__PURE__ */ u(t, { onClick: e == null ? void 0 : e.onClick, className: `richtext-w-4 richtext-h-4 ${(e == null ? void 0 : e.className) || ""}` }) : null;
4401
4401
  }
@@ -4703,7 +4703,7 @@ function Py({ fill: e }) {
4703
4703
  {
4704
4704
  d: "M51,218 L205,218 C211.075132,218 216,222.924868 216,229 C216,235.075132 211.075132,240 205,240 L51,240 C44.9248678,240 40,235.075132 40,229 C40,222.924868 44.9248678,218 51,218 Z",
4705
4705
  id: "矩形",
4706
- fill: e || "#FBDE28"
4706
+ fill: e || "none"
4707
4707
  }
4708
4708
  )
4709
4709
  ] }) })
@@ -4711,7 +4711,7 @@ function Py({ fill: e }) {
4711
4711
  );
4712
4712
  }
4713
4713
  function Ny(e) {
4714
- const [t, r] = J(void 0);
4714
+ const [t, r] = J(e == null ? void 0 : e.defaultColor);
4715
4715
  function n(a) {
4716
4716
  var s;
4717
4717
  (s = e.action) == null || s.call(e, a);
@@ -4746,50 +4746,50 @@ function Ny(e) {
4746
4746
  onChange: n,
4747
4747
  highlight: !0,
4748
4748
  disabled: e == null ? void 0 : e.disabled,
4749
- children: /* @__PURE__ */ u(Ce, { variant: "ghost", size: "icon", className: "!richtext-w-3 !richtext-h-[32px]", disabled: e == null ? void 0 : e.disabled, children: /* @__PURE__ */ u(ve, { className: "!richtext-w-3 !richtext-h-3 richtext-text-zinc-500", name: "MenuDown" }) })
4749
+ children: /* @__PURE__ */ u(Te, { variant: "ghost", size: "icon", className: "!richtext-w-3 !richtext-h-[32px]", disabled: e == null ? void 0 : e.disabled, children: /* @__PURE__ */ u(ye, { className: "!richtext-w-3 !richtext-h-3 richtext-text-zinc-500", name: "MenuDown" }) })
4750
4750
  }
4751
4751
  )
4752
4752
  ] });
4753
4753
  }
4754
- function ky({ editor: e, disabled: t, actions: r }) {
4755
- var g, y, w, C, E, A, M, L, k, N, $, T, S, P, D, H, j, W;
4756
- const n = ({ editor: Q }) => sp(Q.view.state, "table"), { t: i } = Se();
4757
- function o() {
4754
+ function ky({ editor: e, disabled: t, actions: r, hiddenActions: n = [] }) {
4755
+ var w, C, E, A, k, L, M, N, _, T, S, P, D, H, j, W, ee, re;
4756
+ const i = ({ editor: fe }) => sp(fe.view.state, "table"), { t: o } = Se(), a = (fe) => n.includes(fe);
4757
+ function s() {
4758
4758
  e.chain().focus().addColumnBefore().run();
4759
4759
  }
4760
- function a() {
4760
+ function c() {
4761
4761
  e.chain().focus().addColumnAfter().run();
4762
4762
  }
4763
- function s() {
4763
+ function l() {
4764
4764
  e.chain().focus().deleteColumn().run();
4765
4765
  }
4766
- function c() {
4766
+ function f() {
4767
4767
  e.chain().focus().addRowBefore().run();
4768
4768
  }
4769
- function l() {
4769
+ function d() {
4770
4770
  e.chain().focus().addRowAfter().run();
4771
4771
  }
4772
- function f() {
4772
+ function h() {
4773
4773
  e.chain().focus().deleteRow().run();
4774
4774
  }
4775
- function d() {
4775
+ function p() {
4776
4776
  e.chain().focus().mergeCells().run();
4777
4777
  }
4778
- function h() {
4778
+ function m() {
4779
4779
  e == null || e.chain().focus().splitCell().run();
4780
4780
  }
4781
- function p() {
4781
+ function v() {
4782
4782
  e.chain().focus().deleteTable().run();
4783
4783
  }
4784
- function m(Q) {
4785
- e.chain().focus().setTableCellBackground(Q).run();
4784
+ function g(fe) {
4785
+ e.chain().focus().setTableCellBackground(fe).run();
4786
4786
  }
4787
4787
  return /* @__PURE__ */ u(
4788
4788
  St,
4789
4789
  {
4790
4790
  editor: e,
4791
4791
  pluginKey: "table",
4792
- shouldShow: n,
4792
+ shouldShow: i,
4793
4793
  updateDelay: 0,
4794
4794
  tippyOptions: {
4795
4795
  offset: [0, 8],
@@ -4798,168 +4798,130 @@ function ky({ editor: e, disabled: t, actions: r }) {
4798
4798
  },
4799
4799
  maxWidth: "auto",
4800
4800
  getReferenceClientRect: () => {
4801
- var Be;
4801
+ var $;
4802
4802
  const {
4803
- view: Q,
4803
+ view: fe,
4804
4804
  state: {
4805
- selection: { from: te }
4805
+ selection: { from: pe }
4806
4806
  }
4807
- } = e, ye = Q.domAtPos(te).node;
4808
- if (!ye)
4807
+ } = e, Ae = fe.domAtPos(pe).node;
4808
+ if (!Ae)
4809
4809
  return new DOMRect(-1e3, -1e3, 0, 0);
4810
- const me = (Be = ye == null ? void 0 : ye.closest) == null ? void 0 : Be.call(ye, ".tableWrapper");
4811
- return me ? me.getBoundingClientRect() : new DOMRect(-1e3, -1e3, 0, 0);
4810
+ const Be = ($ = Ae == null ? void 0 : Ae.closest) == null ? void 0 : $.call(Ae, ".tableWrapper");
4811
+ return Be ? Be.getBoundingClientRect() : new DOMRect(-1e3, -1e3, 0, 0);
4812
4812
  },
4813
4813
  plugins: [Ap],
4814
4814
  sticky: "popper"
4815
4815
  },
4816
- children: t ? /* @__PURE__ */ u(pe, {}) : /* @__PURE__ */ R("div", { className: "richtext-flex richtext-size-full richtext-min-w-32 richtext-flex-row richtext-items-center richtext-gap-0.5 richtext-rounded-lg !richtext-border richtext-border-border richtext-bg-background richtext-p-2 richtext-leading-none richtext-shadow-sm", children: [
4817
- /* @__PURE__ */ u(
4816
+ children: t ? /* @__PURE__ */ u(ge, {}) : /* @__PURE__ */ R("div", { className: "richtext-flex richtext-size-full richtext-min-w-32 richtext-flex-row richtext-items-center richtext-gap-0.5 richtext-rounded-lg !richtext-border richtext-border-border richtext-bg-background richtext-p-2 richtext-leading-none richtext-shadow-sm", children: [
4817
+ !a("addColumnBefore") && /* @__PURE__ */ u(
4818
4818
  F,
4819
4819
  {
4820
- action: o,
4821
- disabled: !((y = (g = e == null ? void 0 : e.can()) == null ? void 0 : g.addColumnBefore) != null && y.call(g)),
4820
+ action: s,
4821
+ disabled: !((C = (w = e == null ? void 0 : e.can()) == null ? void 0 : w.addColumnBefore) != null && C.call(w)),
4822
4822
  icon: "BetweenHorizonalEnd",
4823
- tooltip: i("editor.table.menu.insertColumnBefore"),
4824
- "tooltip-options": {
4825
- sideOffset: 15
4826
- }
4823
+ tooltip: o("editor.table.menu.insertColumnBefore"),
4824
+ "tooltip-options": { sideOffset: 15 }
4827
4825
  }
4828
4826
  ),
4829
- /* @__PURE__ */ u(
4827
+ !a("addColumnAfter") && /* @__PURE__ */ u(
4830
4828
  F,
4831
4829
  {
4832
- action: a,
4833
- disabled: !((C = (w = e == null ? void 0 : e.can()) == null ? void 0 : w.addColumnAfter) != null && C.call(w)),
4830
+ action: c,
4831
+ disabled: !((A = (E = e == null ? void 0 : e.can()) == null ? void 0 : E.addColumnAfter) != null && A.call(E)),
4834
4832
  icon: "BetweenHorizonalStart",
4835
- tooltip: i("editor.table.menu.insertColumnAfter"),
4836
- "tooltip-options": {
4837
- sideOffset: 15
4838
- }
4833
+ tooltip: o("editor.table.menu.insertColumnAfter"),
4834
+ "tooltip-options": { sideOffset: 15 }
4839
4835
  }
4840
4836
  ),
4841
- /* @__PURE__ */ u(
4837
+ !a("deleteColumn") && /* @__PURE__ */ u(
4842
4838
  F,
4843
4839
  {
4844
- action: s,
4845
- disabled: !((A = e == null ? void 0 : (E = e.can()).deleteColumn) != null && A.call(E)),
4840
+ action: l,
4841
+ disabled: !((L = e == null ? void 0 : (k = e.can()).deleteColumn) != null && L.call(k)),
4846
4842
  icon: "DeleteColumn",
4847
- tooltip: i("editor.table.menu.deleteColumn"),
4848
- "tooltip-options": {
4849
- sideOffset: 15
4850
- }
4851
- }
4852
- ),
4853
- /* @__PURE__ */ u(
4854
- Ge,
4855
- {
4856
- className: "!richtext-mx-1 !richtext-my-2 !richtext-h-[16px]",
4857
- orientation: "vertical"
4843
+ tooltip: o("editor.table.menu.deleteColumn"),
4844
+ "tooltip-options": { sideOffset: 15 }
4858
4845
  }
4859
4846
  ),
4860
- /* @__PURE__ */ u(
4847
+ /* @__PURE__ */ u(Ge, { className: "!richtext-mx-1 !richtext-my-2 !richtext-h-[16px]", orientation: "vertical" }),
4848
+ !a("addRowAbove") && /* @__PURE__ */ u(
4861
4849
  F,
4862
4850
  {
4863
- action: c,
4864
- disabled: !((L = e == null ? void 0 : (M = e.can()).addRowBefore) != null && L.call(M)),
4851
+ action: f,
4852
+ disabled: !((N = e == null ? void 0 : (M = e.can()).addRowBefore) != null && N.call(M)),
4865
4853
  icon: "BetweenVerticalEnd",
4866
- tooltip: i("editor.table.menu.insertRowAbove"),
4867
- "tooltip-options": {
4868
- sideOffset: 15
4869
- }
4854
+ tooltip: o("editor.table.menu.insertRowAbove"),
4855
+ "tooltip-options": { sideOffset: 15 }
4870
4856
  }
4871
4857
  ),
4872
- /* @__PURE__ */ u(
4858
+ !a("addRowBelow") && /* @__PURE__ */ u(
4873
4859
  F,
4874
4860
  {
4875
- action: l,
4876
- disabled: !((N = (k = e == null ? void 0 : e.can()) == null ? void 0 : k.addRowAfter) != null && N.call(k)),
4861
+ action: d,
4862
+ disabled: !((T = (_ = e == null ? void 0 : e.can()) == null ? void 0 : _.addRowAfter) != null && T.call(_)),
4877
4863
  icon: "BetweenVerticalStart",
4878
- tooltip: i("editor.table.menu.insertRowBelow"),
4879
- "tooltip-options": {
4880
- sideOffset: 15
4881
- }
4864
+ tooltip: o("editor.table.menu.insertRowBelow"),
4865
+ "tooltip-options": { sideOffset: 15 }
4882
4866
  }
4883
4867
  ),
4884
- /* @__PURE__ */ u(
4868
+ !a("deleteRow") && /* @__PURE__ */ u(
4885
4869
  F,
4886
4870
  {
4887
- action: f,
4888
- disabled: !((T = ($ = e == null ? void 0 : e.can()) == null ? void 0 : $.deleteRow) != null && T.call($)),
4871
+ action: h,
4872
+ disabled: !((P = (S = e == null ? void 0 : e.can()) == null ? void 0 : S.deleteRow) != null && P.call(S)),
4889
4873
  icon: "DeleteRow",
4890
- tooltip: i("editor.table.menu.deleteRow"),
4891
- "tooltip-options": {
4892
- sideOffset: 15
4893
- }
4894
- }
4895
- ),
4896
- /* @__PURE__ */ u(
4897
- Ge,
4898
- {
4899
- className: "!richtext-mx-1 !richtext-my-2 !richtext-h-[16px]",
4900
- orientation: "vertical"
4874
+ tooltip: o("editor.table.menu.deleteRow"),
4875
+ "tooltip-options": { sideOffset: 15 }
4901
4876
  }
4902
4877
  ),
4903
- /* @__PURE__ */ u(
4878
+ /* @__PURE__ */ u(Ge, { className: "!richtext-mx-1 !richtext-my-2 !richtext-h-[16px]", orientation: "vertical" }),
4879
+ !a("mergeCells") && /* @__PURE__ */ u(
4904
4880
  F,
4905
4881
  {
4906
- action: d,
4907
- disabled: !((P = (S = e == null ? void 0 : e.can()) == null ? void 0 : S.mergeCells) != null && P.call(S)),
4882
+ action: p,
4883
+ disabled: !((H = (D = e == null ? void 0 : e.can()) == null ? void 0 : D.mergeCells) != null && H.call(D)),
4908
4884
  icon: "TableCellsMerge",
4909
- tooltip: i("editor.table.menu.mergeCells"),
4910
- "tooltip-options": {
4911
- sideOffset: 15
4912
- }
4885
+ tooltip: o("editor.table.menu.mergeCells"),
4886
+ "tooltip-options": { sideOffset: 15 }
4913
4887
  }
4914
4888
  ),
4915
- /* @__PURE__ */ u(
4889
+ !a("splitCells") && /* @__PURE__ */ u(
4916
4890
  F,
4917
4891
  {
4918
- action: h,
4919
- disabled: !((H = (D = e == null ? void 0 : e.can()) == null ? void 0 : D.splitCell) != null && H.call(D)),
4892
+ action: m,
4893
+ disabled: !((W = (j = e == null ? void 0 : e.can()) == null ? void 0 : j.splitCell) != null && W.call(j)),
4920
4894
  icon: "TableCellsSplit",
4921
- tooltip: i("editor.table.menu.splitCells"),
4922
- "tooltip-options": {
4923
- sideOffset: 15
4924
- }
4895
+ tooltip: o("editor.table.menu.splitCells"),
4896
+ "tooltip-options": { sideOffset: 15 }
4925
4897
  }
4926
4898
  ),
4927
- /* @__PURE__ */ u(
4928
- Ge,
4929
- {
4930
- className: "!richtext-mx-1 !richtext-my-2 !richtext-h-[16px]",
4931
- orientation: "vertical"
4932
- }
4933
- ),
4934
- /* @__PURE__ */ u(
4899
+ /* @__PURE__ */ u(Ge, { className: "!richtext-mx-1 !richtext-my-2 !richtext-h-[16px]", orientation: "vertical" }),
4900
+ !a("setCellBackground") && /* @__PURE__ */ u(
4935
4901
  Ny,
4936
4902
  {
4937
- action: m,
4903
+ action: g,
4938
4904
  editor: e,
4939
- tooltip: i("editor.table.menu.setCellsBgColor"),
4940
- tooltipOptions: {
4941
- sideOffset: 15
4942
- }
4905
+ tooltip: o("editor.table.menu.setCellsBgColor"),
4906
+ tooltipOptions: { sideOffset: 15 }
4943
4907
  }
4944
4908
  ),
4945
- /* @__PURE__ */ u(
4909
+ !a("deleteTable") && /* @__PURE__ */ u(
4946
4910
  F,
4947
4911
  {
4948
- action: p,
4949
- disabled: !((W = (j = e == null ? void 0 : e.can()) == null ? void 0 : j.deleteTable) != null && W.call(j)),
4912
+ action: v,
4913
+ disabled: !((re = (ee = e == null ? void 0 : e.can()) == null ? void 0 : ee.deleteTable) != null && re.call(ee)),
4950
4914
  icon: "Trash2",
4951
- tooltip: i("editor.table.menu.deleteTable"),
4952
- "tooltip-options": {
4953
- sideOffset: 15
4954
- }
4915
+ tooltip: o("editor.table.menu.deleteTable"),
4916
+ "tooltip-options": { sideOffset: 15 }
4955
4917
  }
4956
4918
  ),
4957
- r && r.map((Q, te) => /* @__PURE__ */ u(
4919
+ r && r.map((fe, pe) => /* @__PURE__ */ u(
4958
4920
  F,
4959
4921
  {
4960
- ...Q
4922
+ ...fe
4961
4923
  },
4962
- te
4924
+ pe
4963
4925
  ))
4964
4926
  ] })
4965
4927
  }
@@ -4986,11 +4948,11 @@ function By(e, t) {
4986
4948
  t[n].indexOf(e) >= 0 && (r[n] = !0);
4987
4949
  return r;
4988
4950
  }
4989
- function Oe(e = null) {
4951
+ function Pe(e = null) {
4990
4952
  this.j = {}, this.jr = [], this.jd = null, this.t = e;
4991
4953
  }
4992
- Oe.groups = {};
4993
- Oe.prototype = {
4954
+ Pe.groups = {};
4955
+ Pe.prototype = {
4994
4956
  accepts() {
4995
4957
  return !!this.t;
4996
4958
  },
@@ -5043,9 +5005,9 @@ Oe.prototype = {
5043
5005
  * @returns {State<T>} taken after the given input
5044
5006
  */
5045
5007
  tr(e, t, r, n) {
5046
- n = n || Oe.groups;
5008
+ n = n || Pe.groups;
5047
5009
  let i;
5048
- return t && t.j ? i = t : (i = new Oe(t), r && n && Et(t, r, n)), this.jr.push([e, i]), i;
5010
+ return t && t.j ? i = t : (i = new Pe(t), r && n && Et(t, r, n)), this.jr.push([e, i]), i;
5049
5011
  },
5050
5012
  /**
5051
5013
  * Short for "take transitions", will take as many sequential transitions as
@@ -5093,13 +5055,13 @@ Oe.prototype = {
5093
5055
  * @returns {State<T>} taken after the given input
5094
5056
  */
5095
5057
  tt(e, t, r, n) {
5096
- n = n || Oe.groups;
5058
+ n = n || Pe.groups;
5097
5059
  const i = this;
5098
5060
  if (t && t.j)
5099
5061
  return i.j[e] = t, t;
5100
5062
  const o = t;
5101
5063
  let a, s = i.go(e);
5102
- if (s ? (a = new Oe(), Wt(a.j, s.j), a.jr.push.apply(a.jr, s.jr), a.jd = s.jd, a.t = s.t) : a = new Oe(), o) {
5064
+ if (s ? (a = new Pe(), Wt(a.j, s.j), a.jr.push.apply(a.jr, s.jr), a.jd = s.jd, a.t = s.t) : a = new Pe(), o) {
5103
5065
  if (n)
5104
5066
  if (a.t && typeof a.t == "string") {
5105
5067
  const c = Wt(By(a.t, n), r);
@@ -5110,7 +5072,7 @@ Oe.prototype = {
5110
5072
  return i.j[e] = a, a;
5111
5073
  }
5112
5074
  };
5113
- const X = (e, t, r, n, i) => e.ta(t, r, n, i), fe = (e, t, r, n, i) => e.tr(t, r, n, i), sc = (e, t, r, n, i) => e.ts(t, r, n, i), O = (e, t, r, n, i) => e.tt(t, r, n, i), nt = "WORD", Sa = "UWORD", sd = "ASCIINUMERICAL", cd = "ALPHANUMERICAL", xr = "LOCALHOST", Aa = "TLD", Ca = "UTLD", Vr = "SCHEME", zt = "SLASH_SCHEME", Fa = "NUM", Ta = "WS", Ua = "NL", cr = "OPENBRACE", lr = "CLOSEBRACE", nn = "OPENBRACKET", on = "CLOSEBRACKET", an = "OPENPAREN", sn = "CLOSEPAREN", cn = "OPENANGLEBRACKET", ln = "CLOSEANGLEBRACKET", un = "FULLWIDTHLEFTPAREN", dn = "FULLWIDTHRIGHTPAREN", fn = "LEFTCORNERBRACKET", hn = "RIGHTCORNERBRACKET", pn = "LEFTWHITECORNERBRACKET", mn = "RIGHTWHITECORNERBRACKET", gn = "FULLWIDTHLESSTHAN", vn = "FULLWIDTHGREATERTHAN", yn = "AMPERSAND", Wa = "APOSTROPHE", xn = "ASTERISK", xt = "AT", bn = "BACKSLASH", wn = "BACKTICK", Sn = "CARET", bt = "COLON", Ga = "COMMA", An = "DOLLAR", Fe = "DOT", Cn = "EQUALS", Va = "EXCLAMATION", Le = "HYPHEN", ur = "PERCENT", Tn = "PIPE", En = "PLUS", Rn = "POUND", dr = "QUERY", Ka = "QUOTE", ld = "FULLWIDTHMIDDLEDOT", Xa = "SEMI", Ue = "SLASH", fr = "TILDE", In = "UNDERSCORE", ud = "EMOJI", On = "SYM";
5075
+ const X = (e, t, r, n, i) => e.ta(t, r, n, i), he = (e, t, r, n, i) => e.tr(t, r, n, i), sc = (e, t, r, n, i) => e.ts(t, r, n, i), O = (e, t, r, n, i) => e.tt(t, r, n, i), nt = "WORD", Sa = "UWORD", sd = "ASCIINUMERICAL", cd = "ALPHANUMERICAL", xr = "LOCALHOST", Aa = "TLD", Ca = "UTLD", Vr = "SCHEME", zt = "SLASH_SCHEME", Fa = "NUM", Ta = "WS", Ua = "NL", cr = "OPENBRACE", lr = "CLOSEBRACE", nn = "OPENBRACKET", on = "CLOSEBRACKET", an = "OPENPAREN", sn = "CLOSEPAREN", cn = "OPENANGLEBRACKET", ln = "CLOSEANGLEBRACKET", un = "FULLWIDTHLEFTPAREN", dn = "FULLWIDTHRIGHTPAREN", fn = "LEFTCORNERBRACKET", hn = "RIGHTCORNERBRACKET", pn = "LEFTWHITECORNERBRACKET", mn = "RIGHTWHITECORNERBRACKET", gn = "FULLWIDTHLESSTHAN", vn = "FULLWIDTHGREATERTHAN", yn = "AMPERSAND", Wa = "APOSTROPHE", xn = "ASTERISK", xt = "AT", bn = "BACKSLASH", wn = "BACKTICK", Sn = "CARET", bt = "COLON", Ga = "COMMA", An = "DOLLAR", Fe = "DOT", Cn = "EQUALS", Va = "EXCLAMATION", $e = "HYPHEN", ur = "PERCENT", Tn = "PIPE", En = "PLUS", Rn = "POUND", dr = "QUERY", Ka = "QUOTE", ld = "FULLWIDTHMIDDLEDOT", Xa = "SEMI", Ue = "SLASH", fr = "TILDE", In = "UNDERSCORE", ud = "EMOJI", On = "SYM";
5114
5076
  var dd = /* @__PURE__ */ Object.freeze({
5115
5077
  __proto__: null,
5116
5078
  WORD: nt,
@@ -5154,7 +5116,7 @@ var dd = /* @__PURE__ */ Object.freeze({
5154
5116
  DOT: Fe,
5155
5117
  EQUALS: Cn,
5156
5118
  EXCLAMATION: Va,
5157
- HYPHEN: Le,
5119
+ HYPHEN: $e,
5158
5120
  PERCENT: ur,
5159
5121
  PIPE: Tn,
5160
5122
  PLUS: En,
@@ -5174,39 +5136,39 @@ const tt = /[a-z]/, rr = new RegExp("\\p{L}", "u"), di = new RegExp("\\p{Emoji}"
5174
5136
  let jr = null, zr = null;
5175
5137
  function Hy(e = []) {
5176
5138
  const t = {};
5177
- Oe.groups = t;
5178
- const r = new Oe();
5179
- jr == null && (jr = lc(My)), zr == null && (zr = lc(Ly)), O(r, "'", Wa), O(r, "{", cr), O(r, "}", lr), O(r, "[", nn), O(r, "]", on), O(r, "(", an), O(r, ")", sn), O(r, "<", cn), O(r, ">", ln), O(r, "(", un), O(r, ")", dn), O(r, "「", fn), O(r, "」", hn), O(r, "『", pn), O(r, "』", mn), O(r, "<", gn), O(r, ">", vn), O(r, "&", yn), O(r, "*", xn), O(r, "@", xt), O(r, "`", wn), O(r, "^", Sn), O(r, ":", bt), O(r, ",", Ga), O(r, "$", An), O(r, ".", Fe), O(r, "=", Cn), O(r, "!", Va), O(r, "-", Le), O(r, "%", ur), O(r, "|", Tn), O(r, "+", En), O(r, "#", Rn), O(r, "?", dr), O(r, '"', Ka), O(r, "/", Ue), O(r, ";", Xa), O(r, "~", fr), O(r, "_", In), O(r, "\\", bn), O(r, "・", ld);
5180
- const n = fe(r, rt, Fa, {
5139
+ Pe.groups = t;
5140
+ const r = new Pe();
5141
+ jr == null && (jr = lc(My)), zr == null && (zr = lc(Ly)), O(r, "'", Wa), O(r, "{", cr), O(r, "}", lr), O(r, "[", nn), O(r, "]", on), O(r, "(", an), O(r, ")", sn), O(r, "<", cn), O(r, ">", ln), O(r, "(", un), O(r, ")", dn), O(r, "「", fn), O(r, "」", hn), O(r, "『", pn), O(r, "』", mn), O(r, "<", gn), O(r, ">", vn), O(r, "&", yn), O(r, "*", xn), O(r, "@", xt), O(r, "`", wn), O(r, "^", Sn), O(r, ":", bt), O(r, ",", Ga), O(r, "$", An), O(r, ".", Fe), O(r, "=", Cn), O(r, "!", Va), O(r, "-", $e), O(r, "%", ur), O(r, "|", Tn), O(r, "+", En), O(r, "#", Rn), O(r, "?", dr), O(r, '"', Ka), O(r, "/", Ue), O(r, ";", Xa), O(r, "~", fr), O(r, "_", In), O(r, "\\", bn), O(r, "・", ld);
5142
+ const n = he(r, rt, Fa, {
5181
5143
  [ya]: !0
5182
5144
  });
5183
- fe(n, rt, n);
5184
- const i = fe(n, tt, sd, {
5145
+ he(n, rt, n);
5146
+ const i = he(n, tt, sd, {
5185
5147
  [sr]: !0
5186
- }), o = fe(n, rr, cd, {
5148
+ }), o = he(n, rr, cd, {
5187
5149
  [or]: !0
5188
- }), a = fe(r, tt, nt, {
5150
+ }), a = he(r, tt, nt, {
5189
5151
  [xa]: !0
5190
5152
  });
5191
- fe(a, rt, i), fe(a, tt, a), fe(i, rt, i), fe(i, tt, i);
5192
- const s = fe(r, rr, Sa, {
5153
+ he(a, rt, i), he(a, tt, a), he(i, rt, i), he(i, tt, i);
5154
+ const s = he(r, rr, Sa, {
5193
5155
  [ba]: !0
5194
5156
  });
5195
- fe(s, tt), fe(s, rt, o), fe(s, rr, s), fe(o, rt, o), fe(o, tt), fe(o, rr, o);
5157
+ he(s, tt), he(s, rt, o), he(s, rr, s), he(o, rt, o), he(o, tt), he(o, rr, o);
5196
5158
  const c = O(r, hi, Ua, {
5197
5159
  [ui]: !0
5198
5160
  }), l = O(r, cc, Ta, {
5199
5161
  [ui]: !0
5200
- }), f = fe(r, fi, Ta, {
5162
+ }), f = he(r, fi, Ta, {
5201
5163
  [ui]: !0
5202
5164
  });
5203
- O(r, pi, f), O(l, hi, c), O(l, pi, f), fe(l, fi, f), O(f, cc), O(f, hi), fe(f, fi, f), O(f, pi, f);
5204
- const d = fe(r, di, ud, {
5165
+ O(r, pi, f), O(l, hi, c), O(l, pi, f), he(l, fi, f), O(f, cc), O(f, hi), he(f, fi, f), O(f, pi, f);
5166
+ const d = he(r, di, ud, {
5205
5167
  [ad]: !0
5206
5168
  });
5207
- O(d, "#"), fe(d, di, d), O(d, jy, d);
5169
+ O(d, "#"), he(d, di, d), O(d, jy, d);
5208
5170
  const h = O(d, zy);
5209
- O(h, "#"), fe(h, di, d);
5171
+ O(h, "#"), he(h, di, d);
5210
5172
  const p = [[tt, a], [rt, i]], m = [[tt, null], [rr, s], [rt, o]];
5211
5173
  for (let v = 0; v < jr.length; v++)
5212
5174
  vt(r, jr[v], Aa, nt, p);
@@ -5235,7 +5197,7 @@ function Hy(e = []) {
5235
5197
  }
5236
5198
  return sc(r, "localhost", xr, {
5237
5199
  ascii: !0
5238
- }), r.jd = new Oe(On), {
5200
+ }), r.jd = new Pe(On), {
5239
5201
  start: r,
5240
5202
  tokens: Wt({
5241
5203
  groups: t
@@ -5276,9 +5238,9 @@ function vt(e, t, r, n, i) {
5276
5238
  const a = t.length;
5277
5239
  for (let s = 0; s < a - 1; s++) {
5278
5240
  const c = t[s];
5279
- e.j[c] ? o = e.j[c] : (o = new Oe(n), o.jr = i.slice(), e.j[c] = o), e = o;
5241
+ e.j[c] ? o = e.j[c] : (o = new Pe(n), o.jr = i.slice(), e.j[c] = o), e = o;
5280
5242
  }
5281
- return o = new Oe(r), o.jr = i.slice(), e.j[t[a - 1]] = o, o;
5243
+ return o = new Pe(r), o.jr = i.slice(), e.j[t[a - 1]] = o, o;
5282
5244
  }
5283
5245
  function lc(e) {
5284
5246
  const t = [], r = [];
@@ -5528,38 +5490,38 @@ const dc = Bn("email", {
5528
5490
  const e = this.tk;
5529
5491
  return e.length >= 2 && e[0].t !== xr && e[1].t === bt;
5530
5492
  }
5531
- }), Me = (e) => new Oe(e);
5493
+ }), Le = (e) => new Pe(e);
5532
5494
  function Uy({
5533
5495
  groups: e
5534
5496
  }) {
5535
- const t = e.domain.concat([yn, xn, xt, bn, wn, Sn, An, Cn, Le, Fa, ur, Tn, En, Rn, Ue, On, fr, In]), r = [bt, Ga, Fe, Va, ur, dr, Ka, Xa, cn, ln, cr, lr, on, nn, an, sn, un, dn, fn, hn, pn, mn, gn, vn], n = [yn, Wa, xn, bn, wn, Sn, An, Cn, Le, cr, lr, ur, Tn, En, Rn, dr, Ue, On, fr, In], i = Me(), o = O(i, fr);
5497
+ const t = e.domain.concat([yn, xn, xt, bn, wn, Sn, An, Cn, $e, Fa, ur, Tn, En, Rn, Ue, On, fr, In]), r = [bt, Ga, Fe, Va, ur, dr, Ka, Xa, cn, ln, cr, lr, on, nn, an, sn, un, dn, fn, hn, pn, mn, gn, vn], n = [yn, Wa, xn, bn, wn, Sn, An, Cn, $e, cr, lr, ur, Tn, En, Rn, dr, Ue, On, fr, In], i = Le(), o = O(i, fr);
5536
5498
  X(o, n, o), X(o, e.domain, o);
5537
- const a = Me(), s = Me(), c = Me();
5499
+ const a = Le(), s = Le(), c = Le();
5538
5500
  X(i, e.domain, a), X(i, e.scheme, s), X(i, e.slashscheme, c), X(a, n, o), X(a, e.domain, a);
5539
5501
  const l = O(a, xt);
5540
5502
  O(o, xt, l), O(s, xt, l), O(c, xt, l);
5541
5503
  const f = O(o, Fe);
5542
5504
  X(f, n, o), X(f, e.domain, o);
5543
- const d = Me();
5505
+ const d = Le();
5544
5506
  X(l, e.domain, d), X(d, e.domain, d);
5545
5507
  const h = O(d, Fe);
5546
5508
  X(h, e.domain, d);
5547
- const p = Me(dc);
5509
+ const p = Le(dc);
5548
5510
  X(h, e.tld, p), X(h, e.utld, p), O(l, xr, p);
5549
- const m = O(d, Le);
5550
- O(m, Le, m), X(m, e.domain, d), X(p, e.domain, d), O(p, Fe, h), O(p, Le, m);
5511
+ const m = O(d, $e);
5512
+ O(m, $e, m), X(m, e.domain, d), X(p, e.domain, d), O(p, Fe, h), O(p, $e, m);
5551
5513
  const v = O(p, bt);
5552
5514
  X(v, e.numeric, dc);
5553
- const g = O(a, Le), y = O(a, Fe);
5554
- O(g, Le, g), X(g, e.domain, a), X(y, n, o), X(y, e.domain, a);
5555
- const w = Me(Hr);
5556
- X(y, e.tld, w), X(y, e.utld, w), X(w, e.domain, a), X(w, n, o), O(w, Fe, y), O(w, Le, g), O(w, xt, l);
5557
- const C = O(w, bt), E = Me(Hr);
5515
+ const g = O(a, $e), x = O(a, Fe);
5516
+ O(g, $e, g), X(g, e.domain, a), X(x, n, o), X(x, e.domain, a);
5517
+ const w = Le(Hr);
5518
+ X(x, e.tld, w), X(x, e.utld, w), X(w, e.domain, a), X(w, n, o), O(w, Fe, x), O(w, $e, g), O(w, xt, l);
5519
+ const C = O(w, bt), E = Le(Hr);
5558
5520
  X(C, e.numeric, E);
5559
- const A = Me(Hr), M = Me();
5560
- X(A, t, A), X(A, r, M), X(M, t, A), X(M, r, M), O(w, Ue, A), O(E, Ue, A);
5561
- const L = O(s, bt), k = O(c, bt), N = O(k, Ue), $ = O(N, Ue);
5562
- X(s, e.domain, a), O(s, Fe, y), O(s, Le, g), X(c, e.domain, a), O(c, Fe, y), O(c, Le, g), X(L, e.domain, A), O(L, Ue, A), O(L, dr, A), X($, e.domain, A), X($, t, A), O($, Ue, A);
5521
+ const A = Le(Hr), k = Le();
5522
+ X(A, t, A), X(A, r, k), X(k, t, A), X(k, r, k), O(w, Ue, A), O(E, Ue, A);
5523
+ const L = O(s, bt), M = O(c, bt), N = O(M, Ue), _ = O(N, Ue);
5524
+ X(s, e.domain, a), O(s, Fe, x), O(s, $e, g), X(c, e.domain, a), O(c, Fe, x), O(c, $e, g), X(L, e.domain, A), O(L, Ue, A), O(L, dr, A), X(_, e.domain, A), X(_, t, A), O(_, Ue, A);
5563
5525
  const T = [
5564
5526
  [cr, lr],
5565
5527
  // {}
@@ -5580,10 +5542,10 @@ function Uy({
5580
5542
  ];
5581
5543
  for (let S = 0; S < T.length; S++) {
5582
5544
  const [P, D] = T[S], H = O(A, P);
5583
- O(M, P, H), O(H, D, A);
5584
- const j = Me(Hr);
5545
+ O(k, P, H), O(H, D, A);
5546
+ const j = Le(Hr);
5585
5547
  X(H, t, j);
5586
- const W = Me();
5548
+ const W = Le();
5587
5549
  X(H, r), X(j, t, j), X(j, r, W), X(W, t, j), X(W, r, W), O(j, D, A), O(W, D, A);
5588
5550
  }
5589
5551
  return O(i, xr, w), O(i, Ua, Fy), {
@@ -5623,7 +5585,7 @@ const Gy = typeof console < "u" && console && console.warn || (() => {
5623
5585
  initialized: !1
5624
5586
  };
5625
5587
  function Ky() {
5626
- return Oe.groups = {}, ue.scanner = null, ue.parser = null, ue.tokenQueue = [], ue.pluginQueue = [], ue.customSchemes = [], ue.initialized = !1, ue;
5588
+ return Pe.groups = {}, ue.scanner = null, ue.parser = null, ue.tokenQueue = [], ue.pluginQueue = [], ue.customSchemes = [], ue.initialized = !1, ue;
5627
5589
  }
5628
5590
  function hc(e, t = !1) {
5629
5591
  if (ue.initialized && Gy(`linkifyjs: already initialized - will not register custom scheme "${e}" ${Vy}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))
@@ -5694,16 +5656,16 @@ function ex(e) {
5694
5656
  const m = p[p.length - 1], v = d.pos + h.lastIndexOf(m);
5695
5657
  if (!m)
5696
5658
  return !1;
5697
- const g = Ja(m).map((y) => y.toObject(e.defaultProtocol));
5659
+ const g = Ja(m).map((x) => x.toObject(e.defaultProtocol));
5698
5660
  if (!Qy(g))
5699
5661
  return !1;
5700
- g.filter((y) => y.isLink).map((y) => ({
5701
- ...y,
5702
- from: v + y.start + 1,
5703
- to: v + y.end + 1
5704
- })).filter((y) => n.schema.marks.code ? !n.doc.rangeHasMark(y.from, y.to, n.schema.marks.code) : !0).filter((y) => e.validate(y.value)).filter((y) => e.shouldAutoLink(y.value)).forEach((y) => {
5705
- hp(y.from, y.to, n.doc).some((w) => w.mark.type === e.type) || a.addMark(y.from, y.to, e.type.create({
5706
- href: y.href
5662
+ g.filter((x) => x.isLink).map((x) => ({
5663
+ ...x,
5664
+ from: v + x.start + 1,
5665
+ to: v + x.end + 1
5666
+ })).filter((x) => n.schema.marks.code ? !n.doc.rangeHasMark(x.from, x.to, n.schema.marks.code) : !0).filter((x) => e.validate(x.value)).filter((x) => e.shouldAutoLink(x.value)).forEach((x) => {
5667
+ hp(x.from, x.to, n.doc).some((w) => w.mark.type === e.type) || a.addMark(x.from, x.to, e.type.create({
5668
+ href: x.href
5707
5669
  }));
5708
5670
  });
5709
5671
  }
@@ -5940,7 +5902,7 @@ function ix(e) {
5940
5902
  tooltip: e == null ? void 0 : e.tooltip,
5941
5903
  isActive: e == null ? void 0 : e.isActive,
5942
5904
  disabled: e == null ? void 0 : e.disabled,
5943
- children: /* @__PURE__ */ u(ve, { name: e == null ? void 0 : e.icon })
5905
+ children: /* @__PURE__ */ u(ye, { name: e == null ? void 0 : e.icon })
5944
5906
  }
5945
5907
  ) }),
5946
5908
  /* @__PURE__ */ u(Kt, { hideWhenDetached: !0, className: "richtext-w-full", align: "start", side: "bottom", children: /* @__PURE__ */ u(md, { editor: e.editor, onSetLink: n, open: t, target: e.target }) })
@@ -6032,19 +5994,19 @@ function md(e) {
6032
5994
  text: "",
6033
5995
  link: ""
6034
5996
  }), [i, o] = J(!1), a = He(null), s = He(null);
6035
- he(() => {
5997
+ me(() => {
6036
5998
  const l = () => {
6037
5999
  var w, C, E, A;
6038
6000
  const { from: f, to: d, empty: h } = e.editor.state.selection, p = (w = e.editor.extensionManager.extensions.find(
6039
- (M) => M.name === ox.name
6001
+ (k) => k.name === ox.name
6040
6002
  )) == null ? void 0 : w.options;
6041
6003
  let m = "", v = "", g = (C = p == null ? void 0 : p.HTMLAttributes) == null ? void 0 : C.target;
6042
- const y = e.editor.state.doc.nodeAt(f);
6043
- if (y) {
6044
- const M = y.marks.find((L) => L.type.name === "link");
6045
- M ? (v = M.attrs.href || "", g = M.attrs.target, h ? m = y.text || "" : m = e.editor.state.doc.textBetween(f, d, " ")) : m = e.editor.state.doc.textBetween(f, d, " ");
6004
+ const x = e.editor.state.doc.nodeAt(f);
6005
+ if (x) {
6006
+ const k = x.marks.find((L) => L.type.name === "link");
6007
+ k ? (v = k.attrs.href || "", g = k.attrs.target, h ? m = x.text || "" : m = e.editor.state.doc.textBetween(f, d, " ")) : m = e.editor.state.doc.textBetween(f, d, " ");
6046
6008
  }
6047
- y || (m = e.editor.state.doc.textBetween(f, d, " ")), n({ link: v, text: m }), o(e.target ? e.target === "_blank" : g === "_blank"), e.open && (m === "" ? (E = a.current) == null || E.focus() : (A = s.current) == null || A.focus());
6009
+ x || (m = e.editor.state.doc.textBetween(f, d, " ")), n({ link: v, text: m }), o(e.target ? e.target === "_blank" : g === "_blank"), e.open && (m === "" ? (E = a.current) == null || E.focus() : (A = s.current) == null || A.focus());
6048
6010
  };
6049
6011
  return l(), e.editor.on("selectionUpdate", l), () => {
6050
6012
  e.editor.off("selectionUpdate", l);
@@ -6056,7 +6018,7 @@ function md(e) {
6056
6018
  return /* @__PURE__ */ u("div", { className: "border-neutral-200 richtext-rounded-lg !richtext-border richtext-bg-white richtext-p-2 richtext-shadow-sm dark:richtext-border-neutral-800 dark:richtext-bg-black", children: /* @__PURE__ */ R("div", { className: "richtext-flex richtext-flex-col richtext-gap-2", children: [
6057
6019
  /* @__PURE__ */ u(ot, { className: "mb-[6px]", children: t("editor.link.dialog.text") }),
6058
6020
  /* @__PURE__ */ u("div", { className: "richtext-mb-[10px] richtext-flex richtext-w-full richtext-max-w-sm richtext-items-center richtext-gap-1.5", children: /* @__PURE__ */ u("div", { className: "richtext-relative richtext-w-full richtext-max-w-sm richtext-items-center", children: /* @__PURE__ */ u(
6059
- Ne,
6021
+ ke,
6060
6022
  {
6061
6023
  ref: a,
6062
6024
  className: "richtext-w-80",
@@ -6070,7 +6032,7 @@ function md(e) {
6070
6032
  /* @__PURE__ */ u(ot, { className: "mb-[6px]", children: t("editor.link.dialog.link") }),
6071
6033
  /* @__PURE__ */ u("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-w-full richtext-max-w-sm richtext-items-center", children: [
6072
6034
  /* @__PURE__ */ u(
6073
- Ne,
6035
+ ke,
6074
6036
  {
6075
6037
  ref: s,
6076
6038
  className: "richtext-pl-10",
@@ -6081,7 +6043,7 @@ function md(e) {
6081
6043
  }
6082
6044
  ),
6083
6045
  /* @__PURE__ */ u("span", { className: "richtext-absolute richtext-inset-y-0 richtext-start-0 richtext-flex richtext-items-center richtext-justify-center richtext-px-2", children: /* @__PURE__ */ u(
6084
- ve,
6046
+ ye,
6085
6047
  {
6086
6048
  className: "richtext-size-5 richtext-text-muted-foreground",
6087
6049
  name: "Link"
@@ -6101,7 +6063,7 @@ function md(e) {
6101
6063
  )
6102
6064
  ] }),
6103
6065
  /* @__PURE__ */ u(
6104
- Ce,
6066
+ Te,
6105
6067
  {
6106
6068
  className: "richtext-mt-2 richtext-self-end",
6107
6069
  onClick: c,
@@ -6176,7 +6138,7 @@ function sx({ editor: e, disabled: t }) {
6176
6138
  }, s = oe(() => {
6177
6139
  e.chain().extendMarkRange("link").unsetLink().focus().run(), n(!1);
6178
6140
  }, [e]);
6179
- return /* @__PURE__ */ u(pe, { children: /* @__PURE__ */ u(
6141
+ return /* @__PURE__ */ u(ge, { children: /* @__PURE__ */ u(
6180
6142
  St,
6181
6143
  {
6182
6144
  editor: e,
@@ -6192,7 +6154,7 @@ function sx({ editor: e, disabled: t }) {
6192
6154
  n(!1);
6193
6155
  }
6194
6156
  },
6195
- children: t ? /* @__PURE__ */ u(pe, {}) : /* @__PURE__ */ u(pe, { children: r ? /* @__PURE__ */ u(md, { onSetLink: a, editor: e }) : /* @__PURE__ */ u(
6157
+ children: t ? /* @__PURE__ */ u(ge, {}) : /* @__PURE__ */ u(ge, { children: r ? /* @__PURE__ */ u(md, { onSetLink: a, editor: e }) : /* @__PURE__ */ u(
6196
6158
  ax,
6197
6159
  {
6198
6160
  editor: e,
@@ -6265,32 +6227,32 @@ const cx = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, gd = Er.c
6265
6227
  })
6266
6228
  ];
6267
6229
  }
6268
- }), jn = $e.Root, zn = $e.Trigger, lx = $e.Portal, vd = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
6269
- $e.Overlay,
6230
+ }), jn = _e.Root, zn = _e.Trigger, lx = _e.Portal, vd = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
6231
+ _e.Overlay,
6270
6232
  {
6271
6233
  ref: r,
6272
- className: ee(
6234
+ className: Q(
6273
6235
  "richtext-fixed richtext-inset-0 richtext-z-50 richtext-bg-black/80 richtext- data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0",
6274
6236
  e
6275
6237
  ),
6276
6238
  ...t
6277
6239
  }
6278
6240
  ));
6279
- vd.displayName = $e.Overlay.displayName;
6241
+ vd.displayName = _e.Overlay.displayName;
6280
6242
  const Rr = ne.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__ */ R(lx, { children: [
6281
6243
  /* @__PURE__ */ u(vd, {}),
6282
6244
  /* @__PURE__ */ R(
6283
- $e.Content,
6245
+ _e.Content,
6284
6246
  {
6285
6247
  ref: n,
6286
- className: ee(
6248
+ className: Q(
6287
6249
  "richtext-dialog-content richtext-fixed richtext-left-[50%] richtext-top-[50%] richtext-z-50 richtext-grid richtext-w-full richtext-max-w-lg richtext-translate-x-[-50%] richtext-translate-y-[-50%] richtext-gap-4 richtext-border richtext-bg-background richtext-p-6 richtext-shadow-lg richtext-duration-200 data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[state=closed]:richtext-slide-out-to-left-1/2 data-[state=closed]:richtext-slide-out-to-top-[48%] data-[state=open]:richtext-slide-in-from-left-1/2 data-[state=open]:richtext-slide-in-from-top-[48%] sm:richtext-rounded-lg",
6288
6250
  e
6289
6251
  ),
6290
6252
  ...r,
6291
6253
  children: [
6292
6254
  t,
6293
- /* @__PURE__ */ R($e.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: [
6255
+ /* @__PURE__ */ R(_e.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: [
6294
6256
  /* @__PURE__ */ u(pu, { className: "richtext-h-4 richtext-w-4" }),
6295
6257
  /* @__PURE__ */ u("span", { className: "richtext-sr-only", children: "Close" })
6296
6258
  ] })
@@ -6298,7 +6260,7 @@ const Rr = ne.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE_
6298
6260
  }
6299
6261
  )
6300
6262
  ] }));
6301
- Rr.displayName = $e.Content.displayName;
6263
+ Rr.displayName = _e.Content.displayName;
6302
6264
  function yd({
6303
6265
  className: e,
6304
6266
  ...t
@@ -6306,7 +6268,7 @@ function yd({
6306
6268
  return /* @__PURE__ */ u(
6307
6269
  "div",
6308
6270
  {
6309
- className: ee(
6271
+ className: Q(
6310
6272
  "richtext-flex richtext-flex-col richtext-space-y-1.5 richtext-text-center sm:richtext-text-left",
6311
6273
  e
6312
6274
  ),
@@ -6322,7 +6284,7 @@ function Qa({
6322
6284
  return /* @__PURE__ */ u(
6323
6285
  "div",
6324
6286
  {
6325
- className: ee(
6287
+ className: Q(
6326
6288
  "richtext-flex richtext-flex-col-reverse sm:richtext-flex-row sm:richtext-justify-end sm:richtext-space-x-2",
6327
6289
  e
6328
6290
  ),
@@ -6332,26 +6294,26 @@ function Qa({
6332
6294
  }
6333
6295
  Qa.displayName = "DialogFooter";
6334
6296
  const Ir = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
6335
- $e.Title,
6297
+ _e.Title,
6336
6298
  {
6337
6299
  ref: r,
6338
- className: ee(
6300
+ className: Q(
6339
6301
  "richtext-text-lg richtext-font-semibold richtext-leading-none richtext-tracking-tight",
6340
6302
  e
6341
6303
  ),
6342
6304
  ...t
6343
6305
  }
6344
6306
  ));
6345
- Ir.displayName = $e.Title.displayName;
6307
+ Ir.displayName = _e.Title.displayName;
6346
6308
  const ux = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
6347
- $e.Description,
6309
+ _e.Description,
6348
6310
  {
6349
6311
  ref: r,
6350
- className: ee("richtext-text-sm richtext-text-muted-foreground", e),
6312
+ className: Q("richtext-text-sm richtext-text-muted-foreground", e),
6351
6313
  ...t
6352
6314
  }
6353
6315
  ));
6354
- ux.displayName = $e.Description.displayName;
6316
+ ux.displayName = _e.Description.displayName;
6355
6317
  const pc = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, mc = Oa, Hn = (e, t) => (r) => {
6356
6318
  var n;
6357
6319
  if ((t == null ? void 0 : t.variants) == null) return mc(e, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
@@ -6405,17 +6367,17 @@ const pc = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, mc = Oa, H
6405
6367
  size: "default"
6406
6368
  }
6407
6369
  }
6408
- ), Ce = ne.forwardRef(
6370
+ ), Te = ne.forwardRef(
6409
6371
  ({ className: e, variant: t, size: r, asChild: n = !1, ...i }, o) => /* @__PURE__ */ u(
6410
6372
  n ? uu : "button",
6411
6373
  {
6412
- className: ee(dx({ variant: t, size: r, className: e })),
6374
+ className: Q(dx({ variant: t, size: r, className: e })),
6413
6375
  ref: o,
6414
6376
  ...i
6415
6377
  }
6416
6378
  )
6417
6379
  );
6418
- Ce.displayName = "Button";
6380
+ Te.displayName = "Button";
6419
6381
  function Aw(e) {
6420
6382
  return e.replace(/^.*\/|\..+$/g, "");
6421
6383
  }
@@ -6504,8 +6466,8 @@ function xd(e, t) {
6504
6466
  }), a;
6505
6467
  }
6506
6468
  function mx({ editor: e, imageInline: t, onClose: r, disabled: n, alt: i }) {
6507
- var $, T;
6508
- const { t: o } = Se(), { toast: a } = os(), [s, c] = J(!1), [l, f] = J(!1), d = ir.useRef(null), [h, p] = ir.useState(), [m, v] = ir.useState(""), g = He(null), [y, w] = J({
6469
+ var _, T;
6470
+ const { t: o } = Se(), { toast: a } = os(), [s, c] = J(!1), [l, f] = J(!1), d = ir.useRef(null), [h, p] = ir.useState(), [m, v] = ir.useState(""), g = He(null), [x, w] = J({
6509
6471
  src: "",
6510
6472
  file: null
6511
6473
  }), C = we(() => {
@@ -6536,12 +6498,12 @@ function mx({ editor: e, imageInline: t, onClose: r, disabled: n, alt: i }) {
6536
6498
  P.height * j
6537
6499
  )), D.toDataURL("image/png", 1);
6538
6500
  }
6539
- const M = ir.useCallback(async () => {
6501
+ const k = ir.useCallback(async () => {
6540
6502
  var S;
6541
6503
  if (!l) {
6542
6504
  f(!0);
6543
6505
  try {
6544
- const P = hx(m, ((S = y == null ? void 0 : y.file) == null ? void 0 : S.name) || "image.png");
6506
+ const P = hx(m, ((S = x == null ? void 0 : x.file) == null ? void 0 : S.name) || "image.png");
6545
6507
  let D = "";
6546
6508
  C.upload ? D = await C.upload(P) : D = URL.createObjectURL(P), e.chain().focus().setImageInline({ src: D, inline: t, alt: i }).run(), c(!1), w({
6547
6509
  src: "",
@@ -6553,12 +6515,12 @@ function mx({ editor: e, imageInline: t, onClose: r, disabled: n, alt: i }) {
6553
6515
  f(!1);
6554
6516
  }
6555
6517
  }
6556
- }, [m, e, t, l, r, ($ = y == null ? void 0 : y.file) == null ? void 0 : $.name, C]);
6518
+ }, [m, e, t, l, r, (_ = x == null ? void 0 : x.file) == null ? void 0 : _.name, C]);
6557
6519
  function L(S) {
6558
6520
  var P;
6559
6521
  S.preventDefault(), (P = g.current) == null || P.click();
6560
6522
  }
6561
- const k = async (S) => {
6523
+ const M = async (S) => {
6562
6524
  var W;
6563
6525
  const P = (W = S == null ? void 0 : S.target) == null ? void 0 : W.files;
6564
6526
  if (!e || e.isDestroyed || P.length === 0) {
@@ -6584,9 +6546,9 @@ function mx({ editor: e, imageInline: t, onClose: r, disabled: n, alt: i }) {
6584
6546
  }, N = () => {
6585
6547
  g.current && (g.current.value = "");
6586
6548
  };
6587
- return /* @__PURE__ */ R(pe, { children: [
6549
+ return /* @__PURE__ */ R(ge, { children: [
6588
6550
  /* @__PURE__ */ u(
6589
- Ce,
6551
+ Te,
6590
6552
  {
6591
6553
  className: "richtext-mt-1 richtext-w-full",
6592
6554
  disabled: n,
@@ -6606,7 +6568,7 @@ function mx({ editor: e, imageInline: t, onClose: r, disabled: n, alt: i }) {
6606
6568
  /* @__PURE__ */ u(zn, {}),
6607
6569
  /* @__PURE__ */ R(Rr, { children: [
6608
6570
  /* @__PURE__ */ u(Ir, { children: o("editor.image.dialog.tab.uploadCrop") }),
6609
- /* @__PURE__ */ u("div", { children: y.src && /* @__PURE__ */ u(
6571
+ /* @__PURE__ */ u("div", { children: x.src && /* @__PURE__ */ u(
6610
6572
  wp,
6611
6573
  {
6612
6574
  className: "richtext-w-full",
@@ -6618,14 +6580,14 @@ function mx({ editor: e, imageInline: t, onClose: r, disabled: n, alt: i }) {
6618
6580
  {
6619
6581
  alt: "Crop me",
6620
6582
  ref: d,
6621
- src: y.src
6583
+ src: x.src
6622
6584
  }
6623
6585
  )
6624
6586
  }
6625
6587
  ) }),
6626
6588
  /* @__PURE__ */ R(Qa, { children: [
6627
6589
  /* @__PURE__ */ R(
6628
- Ce,
6590
+ Te,
6629
6591
  {
6630
6592
  disabled: l,
6631
6593
  onClick: () => {
@@ -6637,7 +6599,7 @@ function mx({ editor: e, imageInline: t, onClose: r, disabled: n, alt: i }) {
6637
6599
  children: [
6638
6600
  o("editor.imageUpload.cancel"),
6639
6601
  /* @__PURE__ */ u(
6640
- ve,
6602
+ ye,
6641
6603
  {
6642
6604
  className: "richtext-ml-1",
6643
6605
  name: "Trash2"
@@ -6647,24 +6609,24 @@ function mx({ editor: e, imageInline: t, onClose: r, disabled: n, alt: i }) {
6647
6609
  }
6648
6610
  ),
6649
6611
  /* @__PURE__ */ u(
6650
- Ce,
6612
+ Te,
6651
6613
  {
6652
6614
  className: "richtext-w-fit",
6653
6615
  disabled: l || !h,
6654
- onClick: M,
6655
- children: l ? /* @__PURE__ */ R(pe, { children: [
6616
+ onClick: k,
6617
+ children: l ? /* @__PURE__ */ R(ge, { children: [
6656
6618
  o("editor.imageUpload.uploading"),
6657
6619
  /* @__PURE__ */ u(
6658
- ve,
6620
+ ye,
6659
6621
  {
6660
6622
  className: "richtext-ml-1 richtext-animate-spin",
6661
6623
  name: "Loader"
6662
6624
  }
6663
6625
  )
6664
- ] }) : /* @__PURE__ */ R(pe, { children: [
6626
+ ] }) : /* @__PURE__ */ R(ge, { children: [
6665
6627
  o("editor.imageUpload.crop"),
6666
6628
  /* @__PURE__ */ u(
6667
- ve,
6629
+ ye,
6668
6630
  {
6669
6631
  className: "richtext-ml-1",
6670
6632
  name: "Crop"
@@ -6683,7 +6645,7 @@ function mx({ editor: e, imageInline: t, onClose: r, disabled: n, alt: i }) {
6683
6645
  {
6684
6646
  accept: ((T = C == null ? void 0 : C.acceptMimes) == null ? void 0 : T.join(",")) || "image/*",
6685
6647
  multiple: !1,
6686
- onChange: k,
6648
+ onChange: M,
6687
6649
  ref: g,
6688
6650
  style: { display: "none" },
6689
6651
  type: "file"
@@ -6763,25 +6725,25 @@ function xx(e) {
6763
6725
  }, [c, l] = J(""), [f, d] = J(""), h = He(null), p = ((E = e.editor.extensionManager.extensions.find(
6764
6726
  (A) => A.name === wr.name
6765
6727
  )) == null ? void 0 : E.options.defaultInline) || !1, [m, v] = J(p), g = we(() => {
6766
- var M;
6767
- return (M = e.editor.extensionManager.extensions.find(
6728
+ var k;
6729
+ return (k = e.editor.extensionManager.extensions.find(
6768
6730
  (L) => L.name === wr.name
6769
- )) == null ? void 0 : M.options;
6731
+ )) == null ? void 0 : k.options;
6770
6732
  }, [e.editor]);
6771
- he(() => {
6733
+ me(() => {
6772
6734
  const A = Pn(It.UPLOAD_IMAGE(e.editor.id), s);
6773
6735
  return () => {
6774
6736
  A();
6775
6737
  };
6776
6738
  }, []);
6777
- async function y(A) {
6778
- var k;
6779
- const M = (k = A == null ? void 0 : A.target) == null ? void 0 : k.files;
6780
- if (!e.editor || e.editor.isDestroyed || M.length === 0 || o) {
6739
+ async function x(A) {
6740
+ var M;
6741
+ const k = (M = A == null ? void 0 : A.target) == null ? void 0 : M.files;
6742
+ if (!e.editor || e.editor.isDestroyed || k.length === 0 || o) {
6781
6743
  A.target.value = "";
6782
6744
  return;
6783
6745
  }
6784
- const L = xd(M, {
6746
+ const L = xd(k, {
6785
6747
  acceptMimes: g == null ? void 0 : g.acceptMimes,
6786
6748
  maxSize: g == null ? void 0 : g.maxSize,
6787
6749
  t,
@@ -6804,8 +6766,8 @@ function xx(e) {
6804
6766
  });
6805
6767
  } else {
6806
6768
  const N = L[0];
6807
- let $ = "";
6808
- g.upload ? $ = await g.upload(N) : $ = URL.createObjectURL(N), e.editor.chain().focus().setImageInline({ src: $, inline: m, alt: f }).run();
6769
+ let _ = "";
6770
+ g.upload ? _ = await g.upload(N) : _ = URL.createObjectURL(N), e.editor.chain().focus().setImageInline({ src: _, inline: m, alt: f }).run();
6809
6771
  }
6810
6772
  i(!1), d(""), v(p);
6811
6773
  } catch (N) {
@@ -6824,8 +6786,8 @@ function xx(e) {
6824
6786
  A.preventDefault(), A.stopPropagation(), e.editor.chain().focus().setImageInline({ src: c, inline: m, alt: f }).run(), i(!1), v(p), l(""), d("");
6825
6787
  }
6826
6788
  function C(A) {
6827
- var M;
6828
- A.preventDefault(), (M = h.current) == null || M.click();
6789
+ var k;
6790
+ A.preventDefault(), (k = h.current) == null || k.click();
6829
6791
  }
6830
6792
  return /* @__PURE__ */ R(
6831
6793
  jn,
@@ -6868,7 +6830,7 @@ function xx(e) {
6868
6830
  g.enableAlt && /* @__PURE__ */ R("div", { className: "richtext-my-[10px] ", children: [
6869
6831
  /* @__PURE__ */ u(ot, { className: "mb-[6px]", children: t("editor.imageUpload.alt") }),
6870
6832
  /* @__PURE__ */ u(
6871
- Ne,
6833
+ ke,
6872
6834
  {
6873
6835
  onChange: (A) => d(A.target.value),
6874
6836
  required: !0,
@@ -6880,16 +6842,16 @@ function xx(e) {
6880
6842
  /* @__PURE__ */ R(Ar, { value: "upload", children: [
6881
6843
  /* @__PURE__ */ R("div", { className: "richtext-flex richtext-items-center richtext-gap-[10px]", children: [
6882
6844
  /* @__PURE__ */ u(
6883
- Ce,
6845
+ Te,
6884
6846
  {
6885
6847
  className: "richtext-mt-1 richtext-w-full",
6886
6848
  disabled: o,
6887
6849
  onClick: C,
6888
6850
  size: "sm",
6889
- children: o ? /* @__PURE__ */ R(pe, { children: [
6851
+ children: o ? /* @__PURE__ */ R(ge, { children: [
6890
6852
  t("editor.imageUpload.uploading"),
6891
6853
  /* @__PURE__ */ u(
6892
- ve,
6854
+ ye,
6893
6855
  {
6894
6856
  className: "richtext-ml-1 richtext-animate-spin",
6895
6857
  name: "Loader"
@@ -6916,7 +6878,7 @@ function xx(e) {
6916
6878
  {
6917
6879
  accept: g.acceptMimes.join(",") || "image/*",
6918
6880
  multiple: g.multiple,
6919
- onChange: y,
6881
+ onChange: x,
6920
6882
  ref: h,
6921
6883
  style: { display: "none" },
6922
6884
  type: "file"
@@ -6925,7 +6887,7 @@ function xx(e) {
6925
6887
  ] }),
6926
6888
  /* @__PURE__ */ u(Ar, { value: "link", children: /* @__PURE__ */ u("form", { onSubmit: w, children: /* @__PURE__ */ R("div", { className: "richtext-flex richtext-items-center richtext-gap-2", children: [
6927
6889
  /* @__PURE__ */ u(
6928
- Ne,
6890
+ ke,
6929
6891
  {
6930
6892
  autoFocus: !0,
6931
6893
  onChange: (A) => l(A.target.value),
@@ -6935,7 +6897,7 @@ function xx(e) {
6935
6897
  value: c
6936
6898
  }
6937
6899
  ),
6938
- /* @__PURE__ */ u(Ce, { type: "submit", children: t("editor.image.dialog.button.apply") })
6900
+ /* @__PURE__ */ u(Te, { type: "submit", children: t("editor.image.dialog.button.apply") })
6939
6901
  ] }) }) })
6940
6902
  ]
6941
6903
  }
@@ -6952,7 +6914,7 @@ const qr = {
6952
6914
  BOTTOM_RIGHT: "br"
6953
6915
  };
6954
6916
  function bx(e) {
6955
- var k, N, $;
6917
+ var M, N, _;
6956
6918
  const [t, r] = J({
6957
6919
  width: Jr,
6958
6920
  height: Jr
@@ -6970,18 +6932,18 @@ function bx(e) {
6970
6932
  w: 0,
6971
6933
  h: 0,
6972
6934
  dir: ""
6973
- }), { align: f, inline: d } = (k = e == null ? void 0 : e.node) == null ? void 0 : k.attrs, h = d && (f === "left" || f === "right"), p = we(() => {
6974
- var De;
6975
- const { src: T, alt: S, width: P, height: D, flipX: H, flipY: j } = (De = e == null ? void 0 : e.node) == null ? void 0 : De.attrs, W = rn(P) ? `${P}px` : P, Q = rn(D) ? `${D}px` : D, te = [];
6976
- H && te.push("rotateX(180deg)"), j && te.push("rotateY(180deg)");
6977
- const ye = te.join(" ");
6935
+ }), { align: f, inline: d } = (M = e == null ? void 0 : e.node) == null ? void 0 : M.attrs, h = d && (f === "left" || f === "right"), p = we(() => {
6936
+ var Ae;
6937
+ const { src: T, alt: S, width: P, height: D, flipX: H, flipY: j } = (Ae = e == null ? void 0 : e.node) == null ? void 0 : Ae.attrs, W = rn(P) ? `${P}px` : P, ee = rn(D) ? `${D}px` : D, re = [];
6938
+ H && re.push("rotateX(180deg)"), j && re.push("rotateY(180deg)");
6939
+ const fe = re.join(" ");
6978
6940
  return {
6979
6941
  src: T || void 0,
6980
6942
  alt: S || void 0,
6981
6943
  style: {
6982
6944
  width: W || void 0,
6983
- height: Q || void 0,
6984
- transform: ye || "none",
6945
+ height: ee || void 0,
6946
+ transform: fe || "none",
6985
6947
  ...h ? { float: f } : {}
6986
6948
  }
6987
6949
  };
@@ -7001,7 +6963,7 @@ function bx(e) {
7001
6963
  const { editor: T, getPos: S } = e;
7002
6964
  T.commands.setNodeSelection(S());
7003
6965
  }
7004
- const y = oe(
6966
+ const x = oe(
7005
6967
  yr(() => {
7006
6968
  const { editor: T } = e, { width: S } = getComputedStyle(T.view.dom);
7007
6969
  r((P) => ({
@@ -7015,8 +6977,8 @@ function bx(e) {
7015
6977
  T.preventDefault(), T.stopPropagation();
7016
6978
  const P = n.width, D = n.height, H = P / D;
7017
6979
  let j = Number(e.node.attrs.width), W = Number(e.node.attrs.height);
7018
- const Q = t.width;
7019
- j && !W ? (j = j > Q ? Q : j, W = Math.round(j / H)) : W && !j ? (j = Math.round(W * H), j = j > Q ? Q : j) : !j && !W ? (j = P > Q ? Q : P, W = Math.round(j / H)) : j = j > Q ? Q : j, s(!0), l({
6980
+ const ee = t.width;
6981
+ j && !W ? (j = j > ee ? ee : j, W = Math.round(j / H)) : W && !j ? (j = Math.round(W * H), j = j > ee ? ee : j) : !j && !W ? (j = P > ee ? ee : P, W = Math.round(j / H)) : j = j > ee ? ee : j, s(!0), l({
7020
6982
  x: T.clientX,
7021
6983
  y: T.clientY,
7022
6984
  w: j,
@@ -7048,14 +7010,14 @@ function bx(e) {
7048
7010
  [a, g]
7049
7011
  ), A = oe(() => {
7050
7012
  document == null || document.addEventListener("mousemove", C, !0), document == null || document.addEventListener("mouseup", E, !0);
7051
- }, [C, E]), M = oe(() => {
7013
+ }, [C, E]), k = oe(() => {
7052
7014
  document == null || document.removeEventListener("mousemove", C, !0), document == null || document.removeEventListener("mouseup", E, !0);
7053
7015
  }, [C, E]);
7054
- he(() => (a ? A() : M(), () => {
7055
- M();
7056
- }), [a, A, M]);
7057
- const L = we(() => new ResizeObserver(() => y()), [y]);
7058
- return he(() => (L.observe(e.editor.view.dom), () => {
7016
+ me(() => (a ? A() : k(), () => {
7017
+ k();
7018
+ }), [a, A, k]);
7019
+ const L = we(() => new ResizeObserver(() => x()), [x]);
7020
+ return me(() => (L.observe(e.editor.view.dom), () => {
7059
7021
  L.disconnect();
7060
7022
  }), [e.editor.view.dom, L]), /* @__PURE__ */ u(
7061
7023
  Pa,
@@ -7067,7 +7029,7 @@ function bx(e) {
7067
7029
  margin: h ? f === "left" ? "1em 1em 1em 0" : "1em 0 1em 1em" : void 0,
7068
7030
  display: d ? "inline" : "block",
7069
7031
  textAlign: h ? void 0 : f,
7070
- width: (($ = p.style) == null ? void 0 : $.width) ?? "auto",
7032
+ width: ((_ = p.style) == null ? void 0 : _.width) ?? "auto",
7071
7033
  ...h ? {} : m
7072
7034
  },
7073
7035
  children: /* @__PURE__ */ R(
@@ -7170,8 +7132,8 @@ function Cx({ validateFn: e, onUpload: t, postUpload: r, defaultInline: n = !1 }
7170
7132
  return;
7171
7133
  const { doc: g } = o.state;
7172
7134
  p > g.content.size && (p = g.content.size - 1);
7173
- const y = o.state.tr.replaceWith(p, p, v).setMeta(Ut, { remove: [c] });
7174
- o.dispatch(y);
7135
+ const x = o.state.tr.replaceWith(p, p, v).setMeta(Ut, { remove: [c] });
7136
+ o.dispatch(x);
7175
7137
  },
7176
7138
  () => {
7177
7139
  const d = o.state.tr.delete(a, a).setMeta(Ut, { remove: [c] });
@@ -7433,7 +7395,7 @@ function Ix({ selectImage: e, giphyApiKey: t, children: r }) {
7433
7395
  console.log(p);
7434
7396
  });
7435
7397
  };
7436
- he(() => {
7398
+ me(() => {
7437
7399
  s("", "trend");
7438
7400
  }, []);
7439
7401
  const c = oe(
@@ -7456,9 +7418,9 @@ function Ix({ selectImage: e, giphyApiKey: t, children: r }) {
7456
7418
  className: "richtext-size-full richtext-p-2",
7457
7419
  hideWhenDetached: !0,
7458
7420
  side: "bottom",
7459
- children: t ? /* @__PURE__ */ R(pe, { children: [
7421
+ children: t ? /* @__PURE__ */ R(ge, { children: [
7460
7422
  /* @__PURE__ */ u("div", { className: "richtext-mb-[10px] richtext-w-full", children: /* @__PURE__ */ u(
7461
- Ne,
7423
+ ke,
7462
7424
  {
7463
7425
  onChange: c,
7464
7426
  placeholder: "Search GIF",
@@ -7509,7 +7471,7 @@ const Fr = {
7509
7471
  BOTTOM_RIGHT: "br"
7510
7472
  };
7511
7473
  function Px(e) {
7512
- var M, L;
7474
+ var k, L;
7513
7475
  const [t, r] = J({
7514
7476
  width: Jr,
7515
7477
  height: Jr
@@ -7527,11 +7489,11 @@ function Px(e) {
7527
7489
  w: 0,
7528
7490
  h: 0,
7529
7491
  dir: ""
7530
- }), { align: f } = (M = e == null ? void 0 : e.node) == null ? void 0 : M.attrs, d = we(() => {
7492
+ }), { align: f } = (k = e == null ? void 0 : e.node) == null ? void 0 : k.attrs, d = we(() => {
7531
7493
  var D;
7532
- const { src: k, alt: N, width: $, height: T } = (D = e == null ? void 0 : e.node) == null ? void 0 : D.attrs, S = rn($) ? `${$}px` : $, P = rn(T) ? `${T}px` : T;
7494
+ const { src: M, alt: N, width: _, height: T } = (D = e == null ? void 0 : e.node) == null ? void 0 : D.attrs, S = rn(_) ? `${_}px` : _, P = rn(T) ? `${T}px` : T;
7533
7495
  return {
7534
- src: k || void 0,
7496
+ src: M || void 0,
7535
7497
  alt: N || void 0,
7536
7498
  style: {
7537
7499
  width: S || void 0,
@@ -7540,48 +7502,48 @@ function Px(e) {
7540
7502
  };
7541
7503
  }, [(L = e == null ? void 0 : e.node) == null ? void 0 : L.attrs]), h = we(() => {
7542
7504
  const {
7543
- style: { width: k }
7505
+ style: { width: M }
7544
7506
  } = d;
7545
- return { width: k === "100%" ? k : void 0 };
7507
+ return { width: M === "100%" ? M : void 0 };
7546
7508
  }, [d]);
7547
- function p(k) {
7509
+ function p(M) {
7548
7510
  i({
7549
- width: k.target.width,
7550
- height: k.target.height
7511
+ width: M.target.width,
7512
+ height: M.target.height
7551
7513
  });
7552
7514
  }
7553
7515
  function m() {
7554
- const { editor: k, getPos: N } = e;
7555
- k.commands.setNodeSelection(N());
7516
+ const { editor: M, getPos: N } = e;
7517
+ M.commands.setNodeSelection(N());
7556
7518
  }
7557
7519
  const v = oe(
7558
7520
  yr(() => {
7559
- const { editor: k } = e, { width: N } = getComputedStyle(k.view.dom);
7560
- r(($) => ({
7561
- ...$,
7521
+ const { editor: M } = e, { width: N } = getComputedStyle(M.view.dom);
7522
+ r((_) => ({
7523
+ ..._,
7562
7524
  width: Number.parseInt(N, 10)
7563
7525
  }));
7564
7526
  }, Zr),
7565
7527
  [e == null ? void 0 : e.editor]
7566
7528
  );
7567
- function g(k, N) {
7568
- k.preventDefault(), k.stopPropagation();
7569
- const $ = n.width, T = n.height, S = $ / T;
7529
+ function g(M, N) {
7530
+ M.preventDefault(), M.stopPropagation();
7531
+ const _ = n.width, T = n.height, S = _ / T;
7570
7532
  let P = Number(e.node.attrs.width), D = Number(e.node.attrs.height);
7571
7533
  const H = t.width;
7572
- P && !D ? (P = P > H ? H : P, D = Math.round(P / S)) : D && !P ? (P = Math.round(D * S), P = P > H ? H : P) : !P && !D ? (P = $ > H ? H : $, D = Math.round(P / S)) : P = P > H ? H : P, s(!0), l({
7573
- x: k.clientX,
7574
- y: k.clientY,
7534
+ P && !D ? (P = P > H ? H : P, D = Math.round(P / S)) : D && !P ? (P = Math.round(D * S), P = P > H ? H : P) : !P && !D ? (P = _ > H ? H : _, D = Math.round(P / S)) : P = P > H ? H : P, s(!0), l({
7535
+ x: M.clientX,
7536
+ y: M.clientY,
7575
7537
  w: P,
7576
7538
  h: D,
7577
7539
  dir: N
7578
7540
  });
7579
7541
  }
7580
- const y = oe(
7581
- yr((k) => {
7582
- if (k.preventDefault(), k.stopPropagation(), !a)
7542
+ const x = oe(
7543
+ yr((M) => {
7544
+ if (M.preventDefault(), M.stopPropagation(), !a)
7583
7545
  return;
7584
- const { x: N, w: $, dir: T } = c, S = (k.clientX - N) * (/l/.test(T) ? -1 : 1), P = zu($ + S, du, t.width);
7546
+ const { x: N, w: _, dir: T } = c, S = (M.clientX - N) * (/l/.test(T) ? -1 : 1), P = zu(_ + S, du, t.width);
7585
7547
  e.updateAttributes({
7586
7548
  width: P,
7587
7549
  height: null
@@ -7589,8 +7551,8 @@ function Px(e) {
7589
7551
  }, Zr),
7590
7552
  [a, c, t, e.updateAttributes]
7591
7553
  ), w = oe(
7592
- (k) => {
7593
- k.preventDefault(), k.stopPropagation(), a && (l({
7554
+ (M) => {
7555
+ M.preventDefault(), M.stopPropagation(), a && (l({
7594
7556
  x: 0,
7595
7557
  y: 0,
7596
7558
  w: 0,
@@ -7600,15 +7562,15 @@ function Px(e) {
7600
7562
  },
7601
7563
  [a, m]
7602
7564
  ), C = oe(() => {
7603
- document == null || document.addEventListener("mousemove", y, !0), document == null || document.addEventListener("mouseup", w, !0);
7604
- }, [y, w]), E = oe(() => {
7605
- document == null || document.removeEventListener("mousemove", y, !0), document == null || document.removeEventListener("mouseup", w, !0);
7606
- }, [y, w]);
7607
- he(() => (a ? C() : E(), () => {
7565
+ document == null || document.addEventListener("mousemove", x, !0), document == null || document.addEventListener("mouseup", w, !0);
7566
+ }, [x, w]), E = oe(() => {
7567
+ document == null || document.removeEventListener("mousemove", x, !0), document == null || document.removeEventListener("mouseup", w, !0);
7568
+ }, [x, w]);
7569
+ me(() => (a ? C() : E(), () => {
7608
7570
  E();
7609
7571
  }), [a, C, E]);
7610
7572
  const A = we(() => new ResizeObserver(() => v()), [v]);
7611
- return he(() => (A.observe(e.editor.view.dom), () => {
7573
+ return me(() => (A.observe(e.editor.view.dom), () => {
7612
7574
  A.disconnect();
7613
7575
  }), [e.editor.view.dom, A]), /* @__PURE__ */ u(
7614
7576
  Pa,
@@ -7635,13 +7597,13 @@ function Px(e) {
7635
7597
  style: d.style
7636
7598
  }
7637
7599
  ),
7638
- (e == null ? void 0 : e.editor.view.editable) && ((e == null ? void 0 : e.selected) || a) && /* @__PURE__ */ u("div", { className: "image-resizer", children: o == null ? void 0 : o.map((k) => /* @__PURE__ */ u(
7600
+ (e == null ? void 0 : e.editor.view.editable) && ((e == null ? void 0 : e.selected) || a) && /* @__PURE__ */ u("div", { className: "image-resizer", children: o == null ? void 0 : o.map((M) => /* @__PURE__ */ u(
7639
7601
  "span",
7640
7602
  {
7641
- className: `image-resizer__handler image-resizer__handler--${k}`,
7642
- onMouseDown: (N) => g(N, k)
7603
+ className: `image-resizer__handler image-resizer__handler--${M}`,
7604
+ onMouseDown: (N) => g(N, M)
7643
7605
  },
7644
- `image-dir-${k}`
7606
+ `image-dir-${M}`
7645
7607
  )) })
7646
7608
  ]
7647
7609
  }
@@ -7779,7 +7741,7 @@ function kx(e) {
7779
7741
  const { t } = Se(), [r, n] = J(""), i = He(null), [o, a] = J(""), [s, c] = J(!1), l = (m) => {
7780
7742
  c(m.detail);
7781
7743
  };
7782
- he(() => {
7744
+ me(() => {
7783
7745
  const m = Pn(It.UPLOAD_VIDEO(e.editor.id), l);
7784
7746
  return () => {
7785
7747
  m();
@@ -7797,9 +7759,9 @@ function kx(e) {
7797
7759
  if (!e.editor || e.editor.isDestroyed || v.length === 0)
7798
7760
  return;
7799
7761
  const g = v[0];
7800
- let y = "";
7801
- f.upload ? y = await f.upload(g) : y = URL.createObjectURL(g), e.editor.chain().focus().setVideo({
7802
- src: y,
7762
+ let x = "";
7763
+ f.upload ? x = await f.upload(g) : x = URL.createObjectURL(g), e.editor.chain().focus().setVideo({
7764
+ src: x,
7803
7765
  width: "100%"
7804
7766
  }).run(), c(!1);
7805
7767
  }
@@ -7841,7 +7803,7 @@ function kx(e) {
7841
7803
  ] }),
7842
7804
  /* @__PURE__ */ R(Ar, { value: "upload", children: [
7843
7805
  /* @__PURE__ */ u("div", { className: "richtext-flex richtext-items-center richtext-gap-[10px]", children: /* @__PURE__ */ u(
7844
- Ce,
7806
+ Te,
7845
7807
  {
7846
7808
  className: "richtext-mt-1 richtext-w-full",
7847
7809
  onClick: p,
@@ -7866,7 +7828,7 @@ function kx(e) {
7866
7828
  /* @__PURE__ */ R(Ar, { value: "link", children: [
7867
7829
  /* @__PURE__ */ u("div", { children: /* @__PURE__ */ R("div", { className: "richtext-flex richtext-items-center richtext-gap-2", children: [
7868
7830
  /* @__PURE__ */ u(
7869
- Ne,
7831
+ ke,
7870
7832
  {
7871
7833
  autoFocus: !0,
7872
7834
  placeholder: t("editor.video.dialog.placeholder"),
@@ -7882,7 +7844,7 @@ function kx(e) {
7882
7844
  }
7883
7845
  }
7884
7846
  ),
7885
- /* @__PURE__ */ u(Ce, { type: "button", onClick: h, children: t("editor.video.dialog.button.apply") })
7847
+ /* @__PURE__ */ u(Te, { type: "button", onClick: h, children: t("editor.video.dialog.button.apply") })
7886
7848
  ] }) }),
7887
7849
  o && /* @__PURE__ */ u("div", { className: "richtext-my-[5px] richtext-text-red-500", children: o })
7888
7850
  ] })
@@ -8047,7 +8009,7 @@ function rs({ item: e, disabled: t, editor: r }) {
8047
8009
  disabled: t || ((i = e == null ? void 0 : e.componentProps) == null ? void 0 : i.disabled),
8048
8010
  editor: r
8049
8011
  }
8050
- ) }) : /* @__PURE__ */ u(pe, {});
8012
+ ) }) : /* @__PURE__ */ u(ge, {});
8051
8013
  }
8052
8014
  function jx(e) {
8053
8015
  return e.type.name === wr.name;
@@ -8067,7 +8029,7 @@ function qx(e) {
8067
8029
  return c = !0, !1;
8068
8030
  }), c;
8069
8031
  }, n = we(() => e.disabled ? [] : Vv(e.editor), [e.disabled, e.editor, t]);
8070
- return /* @__PURE__ */ u(pe, { children: /* @__PURE__ */ u(
8032
+ return /* @__PURE__ */ u(ge, { children: /* @__PURE__ */ u(
8071
8033
  St,
8072
8034
  {
8073
8035
  editor: e == null ? void 0 : e.editor,
@@ -8081,7 +8043,7 @@ function qx(e) {
8081
8043
  item: i
8082
8044
  },
8083
8045
  `bubbleMenu-image-${o}`
8084
- )) }) }) : /* @__PURE__ */ u(pe, {})
8046
+ )) }) }) : /* @__PURE__ */ u(ge, {})
8085
8047
  }
8086
8048
  ) });
8087
8049
  }
@@ -8094,7 +8056,7 @@ function Fx(e) {
8094
8056
  return c = !0, !1;
8095
8057
  }), c;
8096
8058
  }, n = we(() => e.disabled ? [] : Kv(e.editor), [e.disabled, e.editor, t]);
8097
- return /* @__PURE__ */ u(pe, { children: /* @__PURE__ */ u(
8059
+ return /* @__PURE__ */ u(ge, { children: /* @__PURE__ */ u(
8098
8060
  St,
8099
8061
  {
8100
8062
  editor: e == null ? void 0 : e.editor,
@@ -8108,7 +8070,7 @@ function Fx(e) {
8108
8070
  item: i
8109
8071
  },
8110
8072
  `bubbleMenu-image-gif-${o}`
8111
- )) }) }) : /* @__PURE__ */ u(pe, {})
8073
+ )) }) }) : /* @__PURE__ */ u(ge, {})
8112
8074
  }
8113
8075
  ) });
8114
8076
  }
@@ -8121,7 +8083,7 @@ function Ux(e) {
8121
8083
  return c = !0, !1;
8122
8084
  }), c;
8123
8085
  }, n = we(() => e.disabled ? [] : Xv(e.editor), [e.editor, e.disabled, t]);
8124
- return /* @__PURE__ */ u(pe, { children: /* @__PURE__ */ u(
8086
+ return /* @__PURE__ */ u(ge, { children: /* @__PURE__ */ u(
8125
8087
  St,
8126
8088
  {
8127
8089
  editor: e == null ? void 0 : e.editor,
@@ -8135,7 +8097,7 @@ function Ux(e) {
8135
8097
  item: i
8136
8098
  },
8137
8099
  `bubbleMenu-video-${o}`
8138
- )) }) }) : /* @__PURE__ */ u(pe, {})
8100
+ )) }) }) : /* @__PURE__ */ u(ge, {})
8139
8101
  }
8140
8102
  ) });
8141
8103
  }
@@ -8398,7 +8360,7 @@ const Yx = de.Root, Jx = de.Trigger, vc = de.Portal, yc = de.Sub, Ea = ne.forwar
8398
8360
  de.SubTrigger,
8399
8361
  {
8400
8362
  ref: i,
8401
- className: ee(
8363
+ className: Q(
8402
8364
  "richtext-flex 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 focus:richtext-bg-accent data-[state=open]:richtext-bg-accent",
8403
8365
  t && "richtext-pl-8",
8404
8366
  e
@@ -8415,7 +8377,7 @@ const Ra = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
8415
8377
  de.SubContent,
8416
8378
  {
8417
8379
  ref: r,
8418
- className: ee(
8380
+ className: Q(
8419
8381
  "richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-lg data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",
8420
8382
  e
8421
8383
  ),
@@ -8428,7 +8390,7 @@ const Ed = ne.forwardRef(({ className: e, sideOffset: t = 4, ...r }, n) => /* @_
8428
8390
  {
8429
8391
  ref: n,
8430
8392
  sideOffset: t,
8431
- className: ee(
8393
+ className: Q(
8432
8394
  "richtext-z-50 richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md !richtext-border richtext-bg-popover richtext-p-1 richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",
8433
8395
  e
8434
8396
  ),
@@ -8440,7 +8402,7 @@ const qe = ne.forwardRef(({ className: e, inset: t, ...r }, n) => /* @__PURE__ *
8440
8402
  de.Item,
8441
8403
  {
8442
8404
  ref: n,
8443
- className: ee(
8405
+ className: Q(
8444
8406
  "richtext-relative richtext-flex 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 focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",
8445
8407
  t && "richtext-pl-8",
8446
8408
  e
@@ -8453,7 +8415,7 @@ const Zx = ne.forwardRef(({ className: e, children: t, checked: r, ...n }, i) =>
8453
8415
  de.CheckboxItem,
8454
8416
  {
8455
8417
  ref: i,
8456
- className: ee(
8418
+ className: Q(
8457
8419
  "richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",
8458
8420
  e
8459
8421
  ),
@@ -8470,7 +8432,7 @@ const Qx = ne.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE_
8470
8432
  de.RadioItem,
8471
8433
  {
8472
8434
  ref: n,
8473
- className: ee(
8435
+ className: Q(
8474
8436
  "richtext-relative richtext-flex richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none richtext-transition-colors focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",
8475
8437
  e
8476
8438
  ),
@@ -8486,7 +8448,7 @@ const eb = ne.forwardRef(({ className: e, inset: t, ...r }, n) => /* @__PURE__ *
8486
8448
  de.Label,
8487
8449
  {
8488
8450
  ref: n,
8489
- className: ee(
8451
+ className: Q(
8490
8452
  "richtext-px-2 richtext-py-1.5 richtext-text-sm richtext-font-semibold",
8491
8453
  t && "richtext-pl-8",
8492
8454
  e
@@ -8499,7 +8461,7 @@ const Rd = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
8499
8461
  de.Separator,
8500
8462
  {
8501
8463
  ref: r,
8502
- className: ee("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted", e),
8464
+ className: Q("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted", e),
8503
8465
  ...t
8504
8466
  }
8505
8467
  ));
@@ -8511,18 +8473,18 @@ function tb({
8511
8473
  return /* @__PURE__ */ u(
8512
8474
  "span",
8513
8475
  {
8514
- className: ee("richtext-ml-auto richtext-text-xs richtext-tracking-widest richtext-opacity-60", e),
8476
+ className: Q("richtext-ml-auto richtext-text-xs richtext-tracking-widest richtext-opacity-60", e),
8515
8477
  ...t
8516
8478
  }
8517
8479
  );
8518
8480
  }
8519
8481
  tb.displayName = "DropdownMenuShortcut";
8520
- const Ne = ne.forwardRef(
8482
+ const ke = ne.forwardRef(
8521
8483
  ({ className: e, type: t, ...r }, n) => /* @__PURE__ */ u(
8522
8484
  "input",
8523
8485
  {
8524
8486
  type: t,
8525
- className: ee(
8487
+ className: Q(
8526
8488
  "richtext-flex richtext-h-10 richtext-w-full richtext-rounded-md !richtext-border richtext-border-input richtext-bg-background richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background file:richtext-border-0 file:richtext-bg-transparent file:richtext-text-sm file:richtext-font-medium placeholder:richtext-text-muted-foreground focus-visible:richtext-outline-none disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50",
8527
8489
  e
8528
8490
  ),
@@ -8531,14 +8493,14 @@ const Ne = ne.forwardRef(
8531
8493
  }
8532
8494
  )
8533
8495
  );
8534
- Ne.displayName = "Input";
8496
+ ke.displayName = "Input";
8535
8497
  const rb = Hn(
8536
8498
  "richtext-text-sm richtext-font-medium richtext-leading-none peer-disabled:richtext-cursor-not-allowed peer-disabled:richtext-opacity-70"
8537
8499
  ), ot = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
8538
8500
  vu.Root,
8539
8501
  {
8540
8502
  ref: r,
8541
- className: ee(rb(), e),
8503
+ className: Q(rb(), e),
8542
8504
  ...t
8543
8505
  }
8544
8506
  ));
@@ -8549,7 +8511,7 @@ const Or = pr.Root, Pr = pr.Trigger, Kt = ne.forwardRef(({ className: e, align:
8549
8511
  ref: i,
8550
8512
  align: t,
8551
8513
  sideOffset: r,
8552
- className: ee(
8514
+ className: Q(
8553
8515
  "richtext-z-50 richtext-w-72 richtext-rounded-md !richtext-border richtext-bg-popover richtext-p-4 richtext-text-popover-foreground richtext-shadow-md richtext-outline-none data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",
8554
8516
  e
8555
8517
  ),
@@ -8564,7 +8526,7 @@ const Ge = ne.forwardRef(
8564
8526
  ref: i,
8565
8527
  decorative: r,
8566
8528
  orientation: t,
8567
- className: ee(
8529
+ className: Q(
8568
8530
  "richtext-shrink-0 richtext-bg-border",
8569
8531
  t === "horizontal" ? "richtext-h-[1px] richtext-w-full" : "richtext-h-full richtext-w-[1px]",
8570
8532
  e
@@ -8577,7 +8539,7 @@ Ge.displayName = fu.Root.displayName;
8577
8539
  const Id = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
8578
8540
  ia.Root,
8579
8541
  {
8580
- className: ee(
8542
+ className: Q(
8581
8543
  "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",
8582
8544
  e
8583
8545
  ),
@@ -8586,7 +8548,7 @@ const Id = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
8586
8548
  children: /* @__PURE__ */ u(
8587
8549
  ia.Thumb,
8588
8550
  {
8589
- className: ee(
8551
+ className: Q(
8590
8552
  "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"
8591
8553
  )
8592
8554
  }
@@ -8598,7 +8560,7 @@ const Od = Nt.Root, ns = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE
8598
8560
  Nt.List,
8599
8561
  {
8600
8562
  ref: r,
8601
- className: ee(
8563
+ className: Q(
8602
8564
  "richtext-inline-flex richtext-h-10 richtext-items-center richtext-justify-center richtext-rounded-md richtext-bg-muted richtext-p-1 richtext-text-muted-foreground",
8603
8565
  e
8604
8566
  ),
@@ -8610,7 +8572,7 @@ const Sr = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
8610
8572
  Nt.Trigger,
8611
8573
  {
8612
8574
  ref: r,
8613
- className: ee(
8575
+ className: Q(
8614
8576
  "richtext-inline-flex richtext-items-center richtext-justify-center richtext-whitespace-nowrap richtext-rounded-sm richtext-px-3 richtext-py-1.5 richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-all 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=active]:richtext-bg-background data-[state=active]:richtext-text-foreground data-[state=active]:richtext-shadow-sm",
8615
8577
  e
8616
8578
  ),
@@ -8622,7 +8584,7 @@ const Ar = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
8622
8584
  Nt.Content,
8623
8585
  {
8624
8586
  ref: r,
8625
- className: ee(
8587
+ className: Q(
8626
8588
  "richtext-mt-2 richtext-ring-offset-background focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-2",
8627
8589
  e
8628
8590
  ),
@@ -8630,18 +8592,18 @@ const Ar = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
8630
8592
  }
8631
8593
  ));
8632
8594
  Ar.displayName = Nt.Content.displayName;
8633
- const nb = ke.Provider, Pd = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
8634
- ke.Viewport,
8595
+ const nb = Me.Provider, Pd = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
8596
+ Me.Viewport,
8635
8597
  {
8636
8598
  ref: r,
8637
- className: ee(
8599
+ className: Q(
8638
8600
  "richtext-fixed richtext-top-0 richtext-z-[100] richtext-flex richtext-max-h-screen richtext-w-full richtext-flex-col-reverse richtext-p-4 sm:richtext-bottom-0 sm:richtext-right-0 sm:richtext-top-auto sm:richtext-flex-col md:richtext-max-w-[420px]",
8639
8601
  e
8640
8602
  ),
8641
8603
  ...t
8642
8604
  }
8643
8605
  ));
8644
- Pd.displayName = ke.Viewport.displayName;
8606
+ Pd.displayName = Me.Viewport.displayName;
8645
8607
  const ib = Hn(
8646
8608
  "richtext-group richtext-pointer-events-auto richtext-relative richtext-flex richtext-w-full richtext-items-center richtext-justify-between richtext-space-x-4 richtext-overflow-hidden richtext-rounded-md !richtext-border richtext-p-6 richtext-pr-8 richtext-shadow-lg richtext-transition-all data-[swipe=cancel]:richtext-translate-x-0 data-[swipe=end]:richtext-translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:richtext-translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:richtext-transition-none data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[swipe=end]:richtext-animate-out data-[state=closed]:richtext-fade-out-80 data-[state=closed]:richtext-slide-out-to-right-full data-[state=open]:richtext-slide-in-from-top-full data-[state=open]:sm:richtext-slide-in-from-bottom-full",
8647
8609
  {
@@ -8656,31 +8618,31 @@ const ib = Hn(
8656
8618
  }
8657
8619
  }
8658
8620
  ), Nd = ne.forwardRef(({ className: e, variant: t, ...r }, n) => /* @__PURE__ */ u(
8659
- ke.Root,
8621
+ Me.Root,
8660
8622
  {
8661
8623
  ref: n,
8662
- className: ee(ib({ variant: t }), e),
8624
+ className: Q(ib({ variant: t }), e),
8663
8625
  ...r
8664
8626
  }
8665
8627
  ));
8666
- Nd.displayName = ke.Root.displayName;
8628
+ Nd.displayName = Me.Root.displayName;
8667
8629
  const ob = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
8668
- ke.Action,
8630
+ Me.Action,
8669
8631
  {
8670
8632
  ref: r,
8671
- className: ee(
8633
+ className: Q(
8672
8634
  "richtext-inline-flex richtext-h-8 richtext-shrink-0 richtext-items-center richtext-justify-center richtext-rounded-md !richtext-border richtext-bg-transparent richtext-px-3 richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors hover:richtext-bg-secondary focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-2 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 group-[.destructive]:richtext-border-muted/40 group-[.destructive]:hover:richtext-border-destructive/30 group-[.destructive]:hover:richtext-bg-destructive group-[.destructive]:hover:richtext-text-destructive-foreground group-[.destructive]:focus:richtext-ring-destructive",
8673
8635
  e
8674
8636
  ),
8675
8637
  ...t
8676
8638
  }
8677
8639
  ));
8678
- ob.displayName = ke.Action.displayName;
8640
+ ob.displayName = Me.Action.displayName;
8679
8641
  const kd = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
8680
- ke.Close,
8642
+ Me.Close,
8681
8643
  {
8682
8644
  ref: r,
8683
- className: ee(
8645
+ className: Q(
8684
8646
  "richtext-absolute richtext-right-2 richtext-top-2 richtext-rounded-md richtext-p-1 richtext-text-foreground/50 richtext-opacity-0 richtext-transition-opacity hover:richtext-text-foreground focus:richtext-opacity-100 focus:richtext-outline-none focus:richtext-ring-2 group-hover:richtext-opacity-100 group-[.destructive]:richtext-text-red-300 group-[.destructive]:hover:richtext-text-red-50 group-[.destructive]:focus:richtext-ring-red-400 group-[.destructive]:focus:richtext-ring-offset-red-600",
8685
8647
  e
8686
8648
  ),
@@ -8689,25 +8651,25 @@ const kd = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
8689
8651
  children: /* @__PURE__ */ u(pu, { className: "richtext-h-4 richtext-w-4" })
8690
8652
  }
8691
8653
  ));
8692
- kd.displayName = ke.Close.displayName;
8654
+ kd.displayName = Me.Close.displayName;
8693
8655
  const Md = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
8694
- ke.Title,
8656
+ Me.Title,
8695
8657
  {
8696
8658
  ref: r,
8697
- className: ee("richtext-text-sm richtext-font-semibold", e),
8659
+ className: Q("richtext-text-sm richtext-font-semibold", e),
8698
8660
  ...t
8699
8661
  }
8700
8662
  ));
8701
- Md.displayName = ke.Title.displayName;
8663
+ Md.displayName = Me.Title.displayName;
8702
8664
  const Ld = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
8703
- ke.Description,
8665
+ Me.Description,
8704
8666
  {
8705
8667
  ref: r,
8706
- className: ee("richtext-text-sm richtext-opacity-90", e),
8668
+ className: Q("richtext-text-sm richtext-opacity-90", e),
8707
8669
  ...t
8708
8670
  }
8709
8671
  ));
8710
- Ld.displayName = ke.Description.displayName;
8672
+ Ld.displayName = Me.Description.displayName;
8711
8673
  const ab = Hn(
8712
8674
  "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",
8713
8675
  {
@@ -8731,7 +8693,7 @@ const ab = Hn(
8731
8693
  gu.Root,
8732
8694
  {
8733
8695
  ref: i,
8734
- className: ee(ab({ variant: t, size: r, className: e })),
8696
+ className: Q(ab({ variant: t, size: r, className: e })),
8735
8697
  ...n
8736
8698
  }
8737
8699
  ));
@@ -8741,7 +8703,7 @@ const sb = Cr.Provider, _d = Cr.Root, Dd = Cr.Trigger, is = ne.forwardRef(({ cla
8741
8703
  {
8742
8704
  ref: n,
8743
8705
  sideOffset: t,
8744
- className: ee(
8706
+ className: Q(
8745
8707
  "richtext-z-50 richtext-overflow-hidden richtext-rounded-md !richtext-border richtext-bg-popover richtext-px-3 richtext-py-1.5 richtext-text-sm richtext-text-popover-foreground richtext-shadow-md richtext-animate-in richtext-fade-in-0 richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",
8746
8708
  e
8747
8709
  ),
@@ -8847,7 +8809,7 @@ const Bd = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
8847
8809
  na.Root,
8848
8810
  {
8849
8811
  ref: r,
8850
- className: ee(
8812
+ className: Q(
8851
8813
  "!richtext-peer !richtext-h-4 !richtext-w-4 !richtext-p-0 !richtext-shrink-0 !richtext-rounded-sm !richtext-border !richtext-border-primary !richtext-ring-offset-background focus-visible:!richtext-outline-none focus-visible:!richtext-ring-2 focus-visible:!richtext-ring-ring focus-visible:!richtext-ring-offset-2 disabled:!richtext-cursor-not-allowed disabled:!richtext-opacity-50 data-[state=checked]:!richtext-bg-primary data-[state=checked]:!richtext-text-primary-foreground",
8852
8814
  e
8853
8815
  ),
@@ -8855,7 +8817,7 @@ const Bd = ne.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ u(
8855
8817
  children: /* @__PURE__ */ u(
8856
8818
  na.Indicator,
8857
8819
  {
8858
- className: ee("!richtext-flex !richtext-p-0 !richtext-items-center !richtext-justify-center !richtext-text-current"),
8820
+ className: Q("!richtext-flex !richtext-p-0 !richtext-items-center !richtext-justify-center !richtext-text-current"),
8859
8821
  children: /* @__PURE__ */ u(mu, { className: "!richtext-h-4 !richtext-w-4" })
8860
8822
  }
8861
8823
  )
@@ -8868,7 +8830,7 @@ const hb = { padding: "0 12px 12px" }, pb = ({ width: e, maxWidth: t, height: r,
8868
8830
  height: "",
8869
8831
  maxWidth: ""
8870
8832
  });
8871
- he(() => {
8833
+ me(() => {
8872
8834
  s({
8873
8835
  width: e,
8874
8836
  height: r,
@@ -8883,7 +8845,7 @@ const hb = { padding: "0 12px 12px" }, pb = ({ width: e, maxWidth: t, height: r,
8883
8845
  /* @__PURE__ */ u(Kt, { children: /* @__PURE__ */ u("div", { style: hb, children: /* @__PURE__ */ R("form", { className: "richtext-flex richtext-flex-col richtext-gap-2", onSubmit: c, children: [
8884
8846
  /* @__PURE__ */ u(ot, { className: "mb-[6px]", children: "Width" }),
8885
8847
  /* @__PURE__ */ u("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: /* @__PURE__ */ u(
8886
- Ne,
8848
+ ke,
8887
8849
  {
8888
8850
  type: "number",
8889
8851
  value: a.width,
@@ -8893,7 +8855,7 @@ const hb = { padding: "0 12px 12px" }, pb = ({ width: e, maxWidth: t, height: r,
8893
8855
  ) }) }),
8894
8856
  /* @__PURE__ */ u(ot, { className: "mb-[6px]", children: "Max Width" }),
8895
8857
  /* @__PURE__ */ u("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: /* @__PURE__ */ u(
8896
- Ne,
8858
+ ke,
8897
8859
  {
8898
8860
  type: "number",
8899
8861
  value: a.maxWidth,
@@ -8903,7 +8865,7 @@ const hb = { padding: "0 12px 12px" }, pb = ({ width: e, maxWidth: t, height: r,
8903
8865
  ) }) }),
8904
8866
  /* @__PURE__ */ u(ot, { className: "mb-[6px]", children: "Height" }),
8905
8867
  /* @__PURE__ */ u("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: /* @__PURE__ */ u(
8906
- Ne,
8868
+ ke,
8907
8869
  {
8908
8870
  type: "number",
8909
8871
  value: a.height,
@@ -8911,7 +8873,7 @@ const hb = { padding: "0 12px 12px" }, pb = ({ width: e, maxWidth: t, height: r,
8911
8873
  onChange: (l) => s({ ...a, height: l.target.value })
8912
8874
  }
8913
8875
  ) }) }),
8914
- /* @__PURE__ */ u(Ce, { type: "submit", className: "richtext-self-end richtext-mt-2", children: o("editor.link.dialog.button.apply") })
8876
+ /* @__PURE__ */ u(Te, { type: "submit", className: "richtext-self-end richtext-mt-2", children: o("editor.link.dialog.button.apply") })
8915
8877
  ] }) }) })
8916
8878
  ] });
8917
8879
  }, Xt = {
@@ -9173,7 +9135,7 @@ function _b({ editor: e, node: t, updateAttributes: r }) {
9173
9135
  return /* @__PURE__ */ R(Pa, { children: [
9174
9136
  !i && /* @__PURE__ */ R("div", { className: "richtext-mx-auto richtext-my-[12px] richtext-flex richtext-max-w-[600px] richtext-items-center richtext-justify-center richtext-gap-[10px] richtext-rounded-[12px] richtext-border richtext-border-solid richtext-border-[#ccc] richtext-p-[10px]", children: [
9175
9137
  /* @__PURE__ */ u(
9176
- Ne,
9138
+ ke,
9177
9139
  {
9178
9140
  autoFocus: !0,
9179
9141
  className: "richtext-flex-1",
@@ -9184,7 +9146,7 @@ function _b({ editor: e, node: t, updateAttributes: r }) {
9184
9146
  }
9185
9147
  ),
9186
9148
  /* @__PURE__ */ u(
9187
- Ce,
9149
+ Te,
9188
9150
  {
9189
9151
  className: "richtext-w-[60px]",
9190
9152
  onClick: l,
@@ -9414,22 +9376,22 @@ function jb() {
9414
9376
  }
9415
9377
  };
9416
9378
  e = function(p) {
9417
- var m = p !== null && typeof p == "object", v = r.call(p) === "[object Function]", g = n(p), y = m && r.call(p) === "[object String]", w = [];
9379
+ var m = p !== null && typeof p == "object", v = r.call(p) === "[object Function]", g = n(p), x = m && r.call(p) === "[object String]", w = [];
9418
9380
  if (!m && !v && !g)
9419
9381
  throw new TypeError("Object.keys called on a non-object");
9420
9382
  var C = a && v;
9421
- if (y && p.length > 0 && !t.call(p, 0))
9383
+ if (x && p.length > 0 && !t.call(p, 0))
9422
9384
  for (var E = 0; E < p.length; ++E)
9423
9385
  w.push(String(E));
9424
9386
  if (g && p.length > 0)
9425
9387
  for (var A = 0; A < p.length; ++A)
9426
9388
  w.push(String(A));
9427
9389
  else
9428
- for (var M in p)
9429
- !(C && M === "prototype") && t.call(p, M) && w.push(String(M));
9390
+ for (var k in p)
9391
+ !(C && k === "prototype") && t.call(p, k) && w.push(String(k));
9430
9392
  if (o)
9431
- for (var L = d(p), k = 0; k < s.length; ++k)
9432
- !(L && s[k] === "constructor") && t.call(p, s[k]) && w.push(s[k]);
9393
+ for (var L = d(p), M = 0; M < s.length; ++M)
9394
+ !(L && s[M] === "constructor") && t.call(p, s[M]) && w.push(s[M]);
9433
9395
  return w;
9434
9396
  };
9435
9397
  }
@@ -9474,7 +9436,7 @@ function ss() {
9474
9436
  return Tc || (Tc = 1, Ai = SyntaxError), Ai;
9475
9437
  }
9476
9438
  var Ci, Ec;
9477
- function _e() {
9439
+ function De() {
9478
9440
  return Ec || (Ec = 1, Ci = TypeError), Ci;
9479
9441
  }
9480
9442
  var Ti, Rc;
@@ -9498,7 +9460,7 @@ var Ri, Oc;
9498
9460
  function cs() {
9499
9461
  if (Oc) return Ri;
9500
9462
  Oc = 1;
9501
- var e = /* @__PURE__ */ Fn(), t = /* @__PURE__ */ ss(), r = /* @__PURE__ */ _e(), n = /* @__PURE__ */ Lt();
9463
+ var e = /* @__PURE__ */ Fn(), t = /* @__PURE__ */ ss(), r = /* @__PURE__ */ De(), n = /* @__PURE__ */ Lt();
9502
9464
  return Ri = function(o, a, s) {
9503
9465
  if (!o || typeof o != "object" && typeof o != "function")
9504
9466
  throw new r("`obj` must be an object or a function`");
@@ -9704,11 +9666,11 @@ function Qb() {
9704
9666
  throw new TypeError(e + l);
9705
9667
  for (var f = o(arguments, 1), d, h = function() {
9706
9668
  if (this instanceof d) {
9707
- var y = l.apply(
9669
+ var x = l.apply(
9708
9670
  this,
9709
9671
  i(f, arguments)
9710
9672
  );
9711
- return Object(y) === y ? y : this;
9673
+ return Object(x) === x ? x : this;
9712
9674
  }
9713
9675
  return l.apply(
9714
9676
  c,
@@ -9754,7 +9716,7 @@ var to, rl;
9754
9716
  function ps() {
9755
9717
  if (rl) return to;
9756
9718
  rl = 1;
9757
- var e = Nr(), t = /* @__PURE__ */ _e(), r = fs(), n = Ud();
9719
+ var e = Nr(), t = /* @__PURE__ */ De(), r = fs(), n = Ud();
9758
9720
  return to = function(o) {
9759
9721
  if (o.length < 1 || typeof o[0] != "function")
9760
9722
  throw new t("a function is required");
@@ -9811,9 +9773,9 @@ var oo, al;
9811
9773
  function ut() {
9812
9774
  if (al) return oo;
9813
9775
  al = 1;
9814
- var e, t = /* @__PURE__ */ us(), r = /* @__PURE__ */ Hd(), n = /* @__PURE__ */ Hb(), i = /* @__PURE__ */ qb(), o = /* @__PURE__ */ Fb(), a = /* @__PURE__ */ ss(), s = /* @__PURE__ */ _e(), c = /* @__PURE__ */ Ub(), l = /* @__PURE__ */ Wb(), f = /* @__PURE__ */ Gb(), d = /* @__PURE__ */ Vb(), h = /* @__PURE__ */ Kb(), p = /* @__PURE__ */ Xb(), m = /* @__PURE__ */ Yb(), v = /* @__PURE__ */ Zb(), g = Function, y = function(re) {
9776
+ var e, t = /* @__PURE__ */ us(), r = /* @__PURE__ */ Hd(), n = /* @__PURE__ */ Hb(), i = /* @__PURE__ */ qb(), o = /* @__PURE__ */ Fb(), a = /* @__PURE__ */ ss(), s = /* @__PURE__ */ De(), c = /* @__PURE__ */ Ub(), l = /* @__PURE__ */ Wb(), f = /* @__PURE__ */ Gb(), d = /* @__PURE__ */ Vb(), h = /* @__PURE__ */ Kb(), p = /* @__PURE__ */ Xb(), m = /* @__PURE__ */ Yb(), v = /* @__PURE__ */ Zb(), g = Function, x = function(te) {
9815
9777
  try {
9816
- return g('"use strict"; return (' + re + ").constructor;")();
9778
+ return g('"use strict"; return (' + te + ").constructor;")();
9817
9779
  } catch {
9818
9780
  }
9819
9781
  }, w = /* @__PURE__ */ Lt(), C = /* @__PURE__ */ Fn(), E = function() {
@@ -9828,12 +9790,12 @@ function ut() {
9828
9790
  return E;
9829
9791
  }
9830
9792
  }
9831
- }() : E, M = ds()(), L = Wd(), k = Fd(), N = qd(), $ = hs(), T = fs(), S = {}, P = typeof Uint8Array > "u" || !L ? e : L(Uint8Array), D = {
9793
+ }() : E, k = ds()(), L = Wd(), M = Fd(), N = qd(), _ = hs(), T = fs(), S = {}, P = typeof Uint8Array > "u" || !L ? e : L(Uint8Array), D = {
9832
9794
  __proto__: null,
9833
9795
  "%AggregateError%": typeof AggregateError > "u" ? e : AggregateError,
9834
9796
  "%Array%": Array,
9835
9797
  "%ArrayBuffer%": typeof ArrayBuffer > "u" ? e : ArrayBuffer,
9836
- "%ArrayIteratorPrototype%": M && L ? L([][Symbol.iterator]()) : e,
9798
+ "%ArrayIteratorPrototype%": k && L ? L([][Symbol.iterator]()) : e,
9837
9799
  "%AsyncFromSyncIteratorPrototype%": e,
9838
9800
  "%AsyncFunction%": S,
9839
9801
  "%AsyncGenerator%": S,
@@ -9864,10 +9826,10 @@ function ut() {
9864
9826
  "%Int32Array%": typeof Int32Array > "u" ? e : Int32Array,
9865
9827
  "%isFinite%": isFinite,
9866
9828
  "%isNaN%": isNaN,
9867
- "%IteratorPrototype%": M && L ? L(L([][Symbol.iterator]())) : e,
9829
+ "%IteratorPrototype%": k && L ? L(L([][Symbol.iterator]())) : e,
9868
9830
  "%JSON%": typeof JSON == "object" ? JSON : e,
9869
9831
  "%Map%": typeof Map > "u" ? e : Map,
9870
- "%MapIteratorPrototype%": typeof Map > "u" || !M || !L ? e : L((/* @__PURE__ */ new Map())[Symbol.iterator]()),
9832
+ "%MapIteratorPrototype%": typeof Map > "u" || !k || !L ? e : L((/* @__PURE__ */ new Map())[Symbol.iterator]()),
9871
9833
  "%Math%": Math,
9872
9834
  "%Number%": Number,
9873
9835
  "%Object%": t,
@@ -9881,11 +9843,11 @@ function ut() {
9881
9843
  "%Reflect%": typeof Reflect > "u" ? e : Reflect,
9882
9844
  "%RegExp%": RegExp,
9883
9845
  "%Set%": typeof Set > "u" ? e : Set,
9884
- "%SetIteratorPrototype%": typeof Set > "u" || !M || !L ? e : L((/* @__PURE__ */ new Set())[Symbol.iterator]()),
9846
+ "%SetIteratorPrototype%": typeof Set > "u" || !k || !L ? e : L((/* @__PURE__ */ new Set())[Symbol.iterator]()),
9885
9847
  "%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? e : SharedArrayBuffer,
9886
9848
  "%String%": String,
9887
- "%StringIteratorPrototype%": M && L ? L(""[Symbol.iterator]()) : e,
9888
- "%Symbol%": M ? Symbol : e,
9849
+ "%StringIteratorPrototype%": k && L ? L(""[Symbol.iterator]()) : e,
9850
+ "%Symbol%": k ? Symbol : e,
9889
9851
  "%SyntaxError%": a,
9890
9852
  "%ThrowTypeError%": A,
9891
9853
  "%TypedArray%": P,
@@ -9899,9 +9861,9 @@ function ut() {
9899
9861
  "%WeakRef%": typeof WeakRef > "u" ? e : WeakRef,
9900
9862
  "%WeakSet%": typeof WeakSet > "u" ? e : WeakSet,
9901
9863
  "%Function.prototype.call%": T,
9902
- "%Function.prototype.apply%": $,
9864
+ "%Function.prototype.apply%": _,
9903
9865
  "%Object.defineProperty%": C,
9904
- "%Object.getPrototypeOf%": k,
9866
+ "%Object.getPrototypeOf%": M,
9905
9867
  "%Math.abs%": l,
9906
9868
  "%Math.floor%": f,
9907
9869
  "%Math.max%": d,
@@ -9914,23 +9876,23 @@ function ut() {
9914
9876
  if (L)
9915
9877
  try {
9916
9878
  null.error;
9917
- } catch (re) {
9918
- var H = L(L(re));
9879
+ } catch (te) {
9880
+ var H = L(L(te));
9919
9881
  D["%Error.prototype%"] = H;
9920
9882
  }
9921
- var j = function re(z) {
9883
+ var j = function te(z) {
9922
9884
  var q;
9923
9885
  if (z === "%AsyncFunction%")
9924
- q = y("async function () {}");
9886
+ q = x("async function () {}");
9925
9887
  else if (z === "%GeneratorFunction%")
9926
- q = y("function* () {}");
9888
+ q = x("function* () {}");
9927
9889
  else if (z === "%AsyncGeneratorFunction%")
9928
- q = y("async function* () {}");
9890
+ q = x("async function* () {}");
9929
9891
  else if (z === "%AsyncGenerator%") {
9930
- var B = re("%AsyncGeneratorFunction%");
9892
+ var B = te("%AsyncGeneratorFunction%");
9931
9893
  B && (q = B.prototype);
9932
9894
  } else if (z === "%AsyncIteratorPrototype%") {
9933
- var K = re("%AsyncGenerator%");
9895
+ var K = te("%AsyncGenerator%");
9934
9896
  K && L && (q = L(K.prototype));
9935
9897
  }
9936
9898
  return D[z] = q, q;
@@ -9987,26 +9949,26 @@ function ut() {
9987
9949
  "%URIErrorPrototype%": ["URIError", "prototype"],
9988
9950
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
9989
9951
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
9990
- }, Q = Nr(), te = /* @__PURE__ */ ms(), ye = Q.call(T, Array.prototype.concat), me = Q.call($, Array.prototype.splice), De = Q.call(T, String.prototype.replace), Be = Q.call(T, String.prototype.slice), I = Q.call(T, RegExp.prototype.exec), _ = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, G = /\\(\\)?/g, U = function(z) {
9952
+ }, ee = Nr(), re = /* @__PURE__ */ ms(), fe = ee.call(T, Array.prototype.concat), pe = ee.call(_, Array.prototype.splice), Ae = ee.call(T, String.prototype.replace), Be = ee.call(T, String.prototype.slice), I = ee.call(T, RegExp.prototype.exec), $ = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, G = /\\(\\)?/g, U = function(z) {
9991
9953
  var q = Be(z, 0, 1), B = Be(z, -1);
9992
9954
  if (q === "%" && B !== "%")
9993
9955
  throw new a("invalid intrinsic syntax, expected closing `%`");
9994
9956
  if (B === "%" && q !== "%")
9995
9957
  throw new a("invalid intrinsic syntax, expected opening `%`");
9996
9958
  var K = [];
9997
- return De(z, _, function(ge, xe, be, Ae) {
9998
- K[K.length] = be ? De(Ae, G, "$1") : xe || ge;
9959
+ return Ae(z, $, function(ve, xe, be, Ce) {
9960
+ K[K.length] = be ? Ae(Ce, G, "$1") : xe || ve;
9999
9961
  }), K;
10000
9962
  }, Z = function(z, q) {
10001
9963
  var B = z, K;
10002
- if (te(W, B) && (K = W[B], B = "%" + K[0] + "%"), te(D, B)) {
10003
- var ge = D[B];
10004
- if (ge === S && (ge = j(B)), typeof ge > "u" && !q)
9964
+ if (re(W, B) && (K = W[B], B = "%" + K[0] + "%"), re(D, B)) {
9965
+ var ve = D[B];
9966
+ if (ve === S && (ve = j(B)), typeof ve > "u" && !q)
10005
9967
  throw new s("intrinsic " + z + " exists, but is not available. Please file an issue!");
10006
9968
  return {
10007
9969
  alias: K,
10008
9970
  name: B,
10009
- value: ge
9971
+ value: ve
10010
9972
  };
10011
9973
  }
10012
9974
  throw new a("intrinsic " + z + " does not exist!");
@@ -10018,26 +9980,26 @@ function ut() {
10018
9980
  throw new s('"allowMissing" argument must be a boolean');
10019
9981
  if (I(/^%?[^%]*%?$/, z) === null)
10020
9982
  throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
10021
- var B = U(z), K = B.length > 0 ? B[0] : "", ge = Z("%" + K + "%", q), xe = ge.name, be = ge.value, Ae = !1, Re = ge.alias;
10022
- Re && (K = Re[0], me(B, ye([0, 1], Re)));
9983
+ var B = U(z), K = B.length > 0 ? B[0] : "", ve = Z("%" + K + "%", q), xe = ve.name, be = ve.value, Ce = !1, Ie = ve.alias;
9984
+ Ie && (K = Ie[0], pe(B, fe([0, 1], Ie)));
10023
9985
  for (var Ye = 1, je = !0; Ye < B.length; Ye += 1) {
10024
- var Ie = B[Ye], Je = Be(Ie, 0, 1), Ze = Be(Ie, -1);
9986
+ var Oe = B[Ye], Je = Be(Oe, 0, 1), Ze = Be(Oe, -1);
10025
9987
  if ((Je === '"' || Je === "'" || Je === "`" || Ze === '"' || Ze === "'" || Ze === "`") && Je !== Ze)
10026
9988
  throw new a("property names with quotes must have matching quotes");
10027
- if ((Ie === "constructor" || !je) && (Ae = !0), K += "." + Ie, xe = "%" + K + "%", te(D, xe))
9989
+ if ((Oe === "constructor" || !je) && (Ce = !0), K += "." + Oe, xe = "%" + K + "%", re(D, xe))
10028
9990
  be = D[xe];
10029
9991
  else if (be != null) {
10030
- if (!(Ie in be)) {
9992
+ if (!(Oe in be)) {
10031
9993
  if (!q)
10032
9994
  throw new s("base intrinsic for " + z + " exists, but the property is not available.");
10033
9995
  return;
10034
9996
  }
10035
9997
  if (w && Ye + 1 >= B.length) {
10036
- var Qe = w(be, Ie);
10037
- je = !!Qe, je && "get" in Qe && !("originalValue" in Qe.get) ? be = Qe.get : be = be[Ie];
9998
+ var Qe = w(be, Oe);
9999
+ je = !!Qe, je && "get" in Qe && !("originalValue" in Qe.get) ? be = Qe.get : be = be[Oe];
10038
10000
  } else
10039
- je = te(be, Ie), be = be[Ie];
10040
- je && !Ae && (D[xe] = be);
10001
+ je = re(be, Oe), be = be[Oe];
10002
+ je && !Ce && (D[xe] = be);
10041
10003
  }
10042
10004
  }
10043
10005
  return be;
@@ -10047,7 +10009,7 @@ var ao, sl;
10047
10009
  function r2() {
10048
10010
  if (sl) return ao;
10049
10011
  sl = 1;
10050
- var e = /* @__PURE__ */ ut(), t = /* @__PURE__ */ cs(), r = /* @__PURE__ */ ls()(), n = /* @__PURE__ */ Lt(), i = /* @__PURE__ */ _e(), o = e("%Math.floor%");
10012
+ var e = /* @__PURE__ */ ut(), t = /* @__PURE__ */ cs(), r = /* @__PURE__ */ ls()(), n = /* @__PURE__ */ Lt(), i = /* @__PURE__ */ De(), o = e("%Math.floor%");
10051
10013
  return ao = function(s, c) {
10052
10014
  if (typeof s != "function")
10053
10015
  throw new i("`fn` is not a function");
@@ -10097,7 +10059,7 @@ function Yt() {
10097
10059
  }(Pi)), Pi.exports;
10098
10060
  }
10099
10061
  var co, ul;
10100
- function Ee() {
10062
+ function Re() {
10101
10063
  if (ul) return co;
10102
10064
  ul = 1;
10103
10065
  var e = /* @__PURE__ */ ut(), t = ps(), r = t([e("%String.prototype.indexOf%")]);
@@ -10113,7 +10075,7 @@ var lo, dl;
10113
10075
  function Gd() {
10114
10076
  if (dl) return lo;
10115
10077
  dl = 1;
10116
- var e = as(), t = Un()(), r = /* @__PURE__ */ Ee(), n = /* @__PURE__ */ us(), i = r("Array.prototype.push"), o = r("Object.prototype.propertyIsEnumerable"), a = t ? n.getOwnPropertySymbols : null;
10078
+ var e = as(), t = Un()(), r = /* @__PURE__ */ Re(), n = /* @__PURE__ */ us(), i = r("Array.prototype.push"), o = r("Object.prototype.propertyIsEnumerable"), a = t ? n.getOwnPropertySymbols : null;
10117
10079
  return lo = function(c, l) {
10118
10080
  if (c == null)
10119
10081
  throw new TypeError("target must be an object");
@@ -10124,8 +10086,8 @@ function Gd() {
10124
10086
  var h = n(arguments[d]), p = e(h), m = t && (n.getOwnPropertySymbols || a);
10125
10087
  if (m)
10126
10088
  for (var v = m(h), g = 0; g < v.length; ++g) {
10127
- var y = v[g];
10128
- o(h, y) && i(p, y);
10089
+ var x = v[g];
10090
+ o(h, x) && i(p, x);
10129
10091
  }
10130
10092
  for (var w = 0; w < p.length; ++w) {
10131
10093
  var C = p[w];
@@ -10236,7 +10198,7 @@ var go, vl;
10236
10198
  function s2() {
10237
10199
  if (vl) return go;
10238
10200
  vl = 1;
10239
- var e = /* @__PURE__ */ cs(), t = /* @__PURE__ */ ls()(), r = a2().functionsHaveConfigurableNames(), n = /* @__PURE__ */ _e();
10201
+ var e = /* @__PURE__ */ cs(), t = /* @__PURE__ */ ls()(), r = a2().functionsHaveConfigurableNames(), n = /* @__PURE__ */ De();
10240
10202
  return go = function(o, a) {
10241
10203
  if (typeof o != "function")
10242
10204
  throw new n("`fn` is not a function");
@@ -10260,7 +10222,7 @@ var vo, yl;
10260
10222
  function Xd() {
10261
10223
  if (yl) return vo;
10262
10224
  yl = 1;
10263
- var e = s2(), t = /* @__PURE__ */ _e(), r = Object;
10225
+ var e = s2(), t = /* @__PURE__ */ De(), r = Object;
10264
10226
  return vo = e(function() {
10265
10227
  if (this == null || this !== r(this))
10266
10228
  throw new t("RegExp.prototype.flags getter called on non-object");
@@ -10333,7 +10295,7 @@ var So, Al;
10333
10295
  function Jd() {
10334
10296
  if (Al) return So;
10335
10297
  Al = 1;
10336
- var e = _t()(), t = /* @__PURE__ */ Ee(), r = t("Object.prototype.toString"), n = function(s) {
10298
+ var e = _t()(), t = /* @__PURE__ */ Re(), r = t("Object.prototype.toString"), n = function(s) {
10337
10299
  return e && s && typeof s == "object" && Symbol.toStringTag in s ? !1 : r(s) === "[object Arguments]";
10338
10300
  }, i = function(s) {
10339
10301
  return n(s) ? !0 : s !== null && typeof s == "object" && "length" in s && typeof s.length == "number" && s.length >= 0 && r(s) !== "[object Array]" && "callee" in s && r(s.callee) === "[object Function]";
@@ -10350,23 +10312,23 @@ var Ao, Cl;
10350
10312
  function Wn() {
10351
10313
  if (Cl) return Ao;
10352
10314
  Cl = 1;
10353
- var e = typeof Map == "function" && Map.prototype, t = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, r = e && t && typeof t.get == "function" ? t.get : null, n = e && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, o = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, a = i && o && typeof o.get == "function" ? o.get : null, s = i && Set.prototype.forEach, c = typeof WeakMap == "function" && WeakMap.prototype, l = c ? WeakMap.prototype.has : null, f = typeof WeakSet == "function" && WeakSet.prototype, d = f ? WeakSet.prototype.has : null, h = typeof WeakRef == "function" && WeakRef.prototype, p = h ? WeakRef.prototype.deref : null, m = Boolean.prototype.valueOf, v = Object.prototype.toString, g = Function.prototype.toString, y = String.prototype.match, w = String.prototype.slice, C = String.prototype.replace, E = String.prototype.toUpperCase, A = String.prototype.toLowerCase, M = RegExp.prototype.test, L = Array.prototype.concat, k = Array.prototype.join, N = Array.prototype.slice, $ = Math.floor, T = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, S = Object.getOwnPropertySymbols, P = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, D = typeof Symbol == "function" && typeof Symbol.iterator == "object", H = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === D || !0) ? Symbol.toStringTag : null, j = Object.prototype.propertyIsEnumerable, W = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(x) {
10354
- return x.__proto__;
10315
+ var e = typeof Map == "function" && Map.prototype, t = Object.getOwnPropertyDescriptor && e ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, r = e && t && typeof t.get == "function" ? t.get : null, n = e && Map.prototype.forEach, i = typeof Set == "function" && Set.prototype, o = Object.getOwnPropertyDescriptor && i ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, a = i && o && typeof o.get == "function" ? o.get : null, s = i && Set.prototype.forEach, c = typeof WeakMap == "function" && WeakMap.prototype, l = c ? WeakMap.prototype.has : null, f = typeof WeakSet == "function" && WeakSet.prototype, d = f ? WeakSet.prototype.has : null, h = typeof WeakRef == "function" && WeakRef.prototype, p = h ? WeakRef.prototype.deref : null, m = Boolean.prototype.valueOf, v = Object.prototype.toString, g = Function.prototype.toString, x = String.prototype.match, w = String.prototype.slice, C = String.prototype.replace, E = String.prototype.toUpperCase, A = String.prototype.toLowerCase, k = RegExp.prototype.test, L = Array.prototype.concat, M = Array.prototype.join, N = Array.prototype.slice, _ = Math.floor, T = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, S = Object.getOwnPropertySymbols, P = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, D = typeof Symbol == "function" && typeof Symbol.iterator == "object", H = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === D || !0) ? Symbol.toStringTag : null, j = Object.prototype.propertyIsEnumerable, W = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(y) {
10316
+ return y.__proto__;
10355
10317
  } : null);
10356
- function Q(x, b) {
10357
- if (x === 1 / 0 || x === -1 / 0 || x !== x || x && x > -1e3 && x < 1e3 || M.call(/e/, b))
10318
+ function ee(y, b) {
10319
+ if (y === 1 / 0 || y === -1 / 0 || y !== y || y && y > -1e3 && y < 1e3 || k.call(/e/, b))
10358
10320
  return b;
10359
10321
  var ie = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
10360
- if (typeof x == "number") {
10361
- var ae = x < 0 ? -$(-x) : $(x);
10362
- if (ae !== x) {
10322
+ if (typeof y == "number") {
10323
+ var ae = y < 0 ? -_(-y) : _(y);
10324
+ if (ae !== y) {
10363
10325
  var se = String(ae), Y = w.call(b, se.length + 1);
10364
10326
  return C.call(se, ie, "$&_") + "." + C.call(C.call(Y, /([0-9]{3})/g, "$&_"), /_$/, "");
10365
10327
  }
10366
10328
  }
10367
10329
  return C.call(b, ie, "$&_");
10368
10330
  }
10369
- var te = f2, ye = te.custom, me = ge(ye) ? ye : null, De = {
10331
+ var re = f2, fe = re.custom, pe = ve(fe) ? fe : null, Ae = {
10370
10332
  __proto__: null,
10371
10333
  double: '"',
10372
10334
  single: "'"
@@ -10375,18 +10337,18 @@ function Wn() {
10375
10337
  double: /(["\\])/g,
10376
10338
  single: /(['\\])/g
10377
10339
  };
10378
- Ao = function x(b, ie, ae, se) {
10340
+ Ao = function y(b, ie, ae, se) {
10379
10341
  var Y = ie || {};
10380
- if (Ae(Y, "quoteStyle") && !Ae(De, Y.quoteStyle))
10342
+ if (Ce(Y, "quoteStyle") && !Ce(Ae, Y.quoteStyle))
10381
10343
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
10382
- if (Ae(Y, "maxStringLength") && (typeof Y.maxStringLength == "number" ? Y.maxStringLength < 0 && Y.maxStringLength !== 1 / 0 : Y.maxStringLength !== null))
10344
+ if (Ce(Y, "maxStringLength") && (typeof Y.maxStringLength == "number" ? Y.maxStringLength < 0 && Y.maxStringLength !== 1 / 0 : Y.maxStringLength !== null))
10383
10345
  throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
10384
- var ht = Ae(Y, "customInspect") ? Y.customInspect : !0;
10346
+ var ht = Ce(Y, "customInspect") ? Y.customInspect : !0;
10385
10347
  if (typeof ht != "boolean" && ht !== "symbol")
10386
10348
  throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
10387
- if (Ae(Y, "indent") && Y.indent !== null && Y.indent !== " " && !(parseInt(Y.indent, 10) === Y.indent && Y.indent > 0))
10349
+ if (Ce(Y, "indent") && Y.indent !== null && Y.indent !== " " && !(parseInt(Y.indent, 10) === Y.indent && Y.indent > 0))
10388
10350
  throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
10389
- if (Ae(Y, "numericSeparator") && typeof Y.numericSeparator != "boolean")
10351
+ if (Ce(Y, "numericSeparator") && typeof Y.numericSeparator != "boolean")
10390
10352
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
10391
10353
  var Ct = Y.numericSeparator;
10392
10354
  if (typeof b > "u")
@@ -10400,12 +10362,12 @@ function Wn() {
10400
10362
  if (typeof b == "number") {
10401
10363
  if (b === 0)
10402
10364
  return 1 / 0 / b > 0 ? "0" : "-0";
10403
- var Pe = String(b);
10404
- return Ct ? Q(b, Pe) : Pe;
10365
+ var Ne = String(b);
10366
+ return Ct ? ee(b, Ne) : Ne;
10405
10367
  }
10406
10368
  if (typeof b == "bigint") {
10407
10369
  var pt = String(b) + "n";
10408
- return Ct ? Q(b, pt) : pt;
10370
+ return Ct ? ee(b, pt) : pt;
10409
10371
  }
10410
10372
  var Kn = typeof Y.depth > "u" ? 5 : Y.depth;
10411
10373
  if (typeof ae > "u" && (ae = 0), ae >= Kn && Kn > 0 && typeof b == "object")
@@ -10420,40 +10382,40 @@ function Wn() {
10420
10382
  var Ts = {
10421
10383
  depth: Y.depth
10422
10384
  };
10423
- return Ae(Y, "quoteStyle") && (Ts.quoteStyle = Y.quoteStyle), x(jt, Ts, ae + 1, se);
10385
+ return Ce(Y, "quoteStyle") && (Ts.quoteStyle = Y.quoteStyle), y(jt, Ts, ae + 1, se);
10424
10386
  }
10425
- return x(jt, Y, ae + 1, se);
10387
+ return y(jt, Y, ae + 1, se);
10426
10388
  }
10427
- if (typeof b == "function" && !re(b)) {
10389
+ if (typeof b == "function" && !te(b)) {
10428
10390
  var ys = Ye(b), xs = Mr(b, ze);
10429
- return "[Function" + (ys ? ": " + ys : " (anonymous)") + "]" + (xs.length > 0 ? " { " + k.call(xs, ", ") + " }" : "");
10391
+ return "[Function" + (ys ? ": " + ys : " (anonymous)") + "]" + (xs.length > 0 ? " { " + M.call(xs, ", ") + " }" : "");
10430
10392
  }
10431
- if (ge(b)) {
10393
+ if (ve(b)) {
10432
10394
  var bs = D ? C.call(String(b), /^(Symbol\(.*\))_[^)]*$/, "$1") : P.call(b);
10433
10395
  return typeof b == "object" && !D ? ft(bs) : bs;
10434
10396
  }
10435
10397
  if (dt(b)) {
10436
10398
  for (var Zt = "<" + A.call(String(b.nodeName)), Xn = b.attributes || [], Lr = 0; Lr < Xn.length; Lr++)
10437
- Zt += " " + Xn[Lr].name + "=" + I(_(Xn[Lr].value), "double", Y);
10399
+ Zt += " " + Xn[Lr].name + "=" + I($(Xn[Lr].value), "double", Y);
10438
10400
  return Zt += ">", b.childNodes && b.childNodes.length && (Zt += "..."), Zt += "</" + A.call(String(b.nodeName)) + ">", Zt;
10439
10401
  }
10440
10402
  if (U(b)) {
10441
10403
  if (b.length === 0)
10442
10404
  return "[]";
10443
10405
  var Yn = Mr(b, ze);
10444
- return Bt && !hf(Yn) ? "[" + Vn(Yn, Bt) + "]" : "[ " + k.call(Yn, ", ") + " ]";
10406
+ return Bt && !hf(Yn) ? "[" + Vn(Yn, Bt) + "]" : "[ " + M.call(Yn, ", ") + " ]";
10445
10407
  }
10446
10408
  if (z(b)) {
10447
10409
  var Jn = Mr(b, ze);
10448
- return !("cause" in Error.prototype) && "cause" in b && !j.call(b, "cause") ? "{ [" + String(b) + "] " + k.call(L.call("[cause]: " + ze(b.cause), Jn), ", ") + " }" : Jn.length === 0 ? "[" + String(b) + "]" : "{ [" + String(b) + "] " + k.call(Jn, ", ") + " }";
10410
+ return !("cause" in Error.prototype) && "cause" in b && !j.call(b, "cause") ? "{ [" + String(b) + "] " + M.call(L.call("[cause]: " + ze(b.cause), Jn), ", ") + " }" : Jn.length === 0 ? "[" + String(b) + "]" : "{ [" + String(b) + "] " + M.call(Jn, ", ") + " }";
10449
10411
  }
10450
10412
  if (typeof b == "object" && ht) {
10451
- if (me && typeof b[me] == "function" && te)
10452
- return te(b, { depth: Kn - ae });
10413
+ if (pe && typeof b[pe] == "function" && re)
10414
+ return re(b, { depth: Kn - ae });
10453
10415
  if (ht !== "symbol" && typeof b.inspect == "function")
10454
10416
  return b.inspect();
10455
10417
  }
10456
- if (Ie(b)) {
10418
+ if (Oe(b)) {
10457
10419
  var ws = [];
10458
10420
  return n && n.call(b, function(jt, $r) {
10459
10421
  ws.push(ze($r, b, !0) + " => " + ze(jt, b));
@@ -10483,172 +10445,172 @@ function Wn() {
10483
10445
  return "{ [object Window] }";
10484
10446
  if (typeof globalThis < "u" && b === globalThis || typeof kn < "u" && b === kn)
10485
10447
  return "{ [object globalThis] }";
10486
- if (!Z(b) && !re(b)) {
10487
- var Zn = Mr(b, ze), As = W ? W(b) === Object.prototype : b instanceof Object || b.constructor === Object, Qn = b instanceof Object ? "" : "null prototype", Cs = !As && H && Object(b) === b && H in b ? w.call(Re(b), 8, -1) : Qn ? "Object" : "", mf = As || typeof b.constructor != "function" ? "" : b.constructor.name ? b.constructor.name + " " : "", ei = mf + (Cs || Qn ? "[" + k.call(L.call([], Cs || [], Qn || []), ": ") + "] " : "");
10488
- return Zn.length === 0 ? ei + "{}" : Bt ? ei + "{" + Vn(Zn, Bt) + "}" : ei + "{ " + k.call(Zn, ", ") + " }";
10448
+ if (!Z(b) && !te(b)) {
10449
+ var Zn = Mr(b, ze), As = W ? W(b) === Object.prototype : b instanceof Object || b.constructor === Object, Qn = b instanceof Object ? "" : "null prototype", Cs = !As && H && Object(b) === b && H in b ? w.call(Ie(b), 8, -1) : Qn ? "Object" : "", mf = As || typeof b.constructor != "function" ? "" : b.constructor.name ? b.constructor.name + " " : "", ei = mf + (Cs || Qn ? "[" + M.call(L.call([], Cs || [], Qn || []), ": ") + "] " : "");
10450
+ return Zn.length === 0 ? ei + "{}" : Bt ? ei + "{" + Vn(Zn, Bt) + "}" : ei + "{ " + M.call(Zn, ", ") + " }";
10489
10451
  }
10490
10452
  return String(b);
10491
10453
  };
10492
- function I(x, b, ie) {
10493
- var ae = ie.quoteStyle || b, se = De[ae];
10494
- return se + x + se;
10454
+ function I(y, b, ie) {
10455
+ var ae = ie.quoteStyle || b, se = Ae[ae];
10456
+ return se + y + se;
10495
10457
  }
10496
- function _(x) {
10497
- return C.call(String(x), /"/g, "&quot;");
10458
+ function $(y) {
10459
+ return C.call(String(y), /"/g, "&quot;");
10498
10460
  }
10499
- function G(x) {
10500
- return !H || !(typeof x == "object" && (H in x || typeof x[H] < "u"));
10461
+ function G(y) {
10462
+ return !H || !(typeof y == "object" && (H in y || typeof y[H] < "u"));
10501
10463
  }
10502
- function U(x) {
10503
- return Re(x) === "[object Array]" && G(x);
10464
+ function U(y) {
10465
+ return Ie(y) === "[object Array]" && G(y);
10504
10466
  }
10505
- function Z(x) {
10506
- return Re(x) === "[object Date]" && G(x);
10467
+ function Z(y) {
10468
+ return Ie(y) === "[object Date]" && G(y);
10507
10469
  }
10508
- function re(x) {
10509
- return Re(x) === "[object RegExp]" && G(x);
10470
+ function te(y) {
10471
+ return Ie(y) === "[object RegExp]" && G(y);
10510
10472
  }
10511
- function z(x) {
10512
- return Re(x) === "[object Error]" && G(x);
10473
+ function z(y) {
10474
+ return Ie(y) === "[object Error]" && G(y);
10513
10475
  }
10514
- function q(x) {
10515
- return Re(x) === "[object String]" && G(x);
10476
+ function q(y) {
10477
+ return Ie(y) === "[object String]" && G(y);
10516
10478
  }
10517
- function B(x) {
10518
- return Re(x) === "[object Number]" && G(x);
10479
+ function B(y) {
10480
+ return Ie(y) === "[object Number]" && G(y);
10519
10481
  }
10520
- function K(x) {
10521
- return Re(x) === "[object Boolean]" && G(x);
10482
+ function K(y) {
10483
+ return Ie(y) === "[object Boolean]" && G(y);
10522
10484
  }
10523
- function ge(x) {
10485
+ function ve(y) {
10524
10486
  if (D)
10525
- return x && typeof x == "object" && x instanceof Symbol;
10526
- if (typeof x == "symbol")
10487
+ return y && typeof y == "object" && y instanceof Symbol;
10488
+ if (typeof y == "symbol")
10527
10489
  return !0;
10528
- if (!x || typeof x != "object" || !P)
10490
+ if (!y || typeof y != "object" || !P)
10529
10491
  return !1;
10530
10492
  try {
10531
- return P.call(x), !0;
10493
+ return P.call(y), !0;
10532
10494
  } catch {
10533
10495
  }
10534
10496
  return !1;
10535
10497
  }
10536
- function xe(x) {
10537
- if (!x || typeof x != "object" || !T)
10498
+ function xe(y) {
10499
+ if (!y || typeof y != "object" || !T)
10538
10500
  return !1;
10539
10501
  try {
10540
- return T.call(x), !0;
10502
+ return T.call(y), !0;
10541
10503
  } catch {
10542
10504
  }
10543
10505
  return !1;
10544
10506
  }
10545
- var be = Object.prototype.hasOwnProperty || function(x) {
10546
- return x in this;
10507
+ var be = Object.prototype.hasOwnProperty || function(y) {
10508
+ return y in this;
10547
10509
  };
10548
- function Ae(x, b) {
10549
- return be.call(x, b);
10510
+ function Ce(y, b) {
10511
+ return be.call(y, b);
10550
10512
  }
10551
- function Re(x) {
10552
- return v.call(x);
10513
+ function Ie(y) {
10514
+ return v.call(y);
10553
10515
  }
10554
- function Ye(x) {
10555
- if (x.name)
10556
- return x.name;
10557
- var b = y.call(g.call(x), /^function\s*([\w$]+)/);
10516
+ function Ye(y) {
10517
+ if (y.name)
10518
+ return y.name;
10519
+ var b = x.call(g.call(y), /^function\s*([\w$]+)/);
10558
10520
  return b ? b[1] : null;
10559
10521
  }
10560
- function je(x, b) {
10561
- if (x.indexOf)
10562
- return x.indexOf(b);
10563
- for (var ie = 0, ae = x.length; ie < ae; ie++)
10564
- if (x[ie] === b)
10522
+ function je(y, b) {
10523
+ if (y.indexOf)
10524
+ return y.indexOf(b);
10525
+ for (var ie = 0, ae = y.length; ie < ae; ie++)
10526
+ if (y[ie] === b)
10565
10527
  return ie;
10566
10528
  return -1;
10567
10529
  }
10568
- function Ie(x) {
10569
- if (!r || !x || typeof x != "object")
10530
+ function Oe(y) {
10531
+ if (!r || !y || typeof y != "object")
10570
10532
  return !1;
10571
10533
  try {
10572
- r.call(x);
10534
+ r.call(y);
10573
10535
  try {
10574
- a.call(x);
10536
+ a.call(y);
10575
10537
  } catch {
10576
10538
  return !0;
10577
10539
  }
10578
- return x instanceof Map;
10540
+ return y instanceof Map;
10579
10541
  } catch {
10580
10542
  }
10581
10543
  return !1;
10582
10544
  }
10583
- function Je(x) {
10584
- if (!l || !x || typeof x != "object")
10545
+ function Je(y) {
10546
+ if (!l || !y || typeof y != "object")
10585
10547
  return !1;
10586
10548
  try {
10587
- l.call(x, l);
10549
+ l.call(y, l);
10588
10550
  try {
10589
- d.call(x, d);
10551
+ d.call(y, d);
10590
10552
  } catch {
10591
10553
  return !0;
10592
10554
  }
10593
- return x instanceof WeakMap;
10555
+ return y instanceof WeakMap;
10594
10556
  } catch {
10595
10557
  }
10596
10558
  return !1;
10597
10559
  }
10598
- function Ze(x) {
10599
- if (!p || !x || typeof x != "object")
10560
+ function Ze(y) {
10561
+ if (!p || !y || typeof y != "object")
10600
10562
  return !1;
10601
10563
  try {
10602
- return p.call(x), !0;
10564
+ return p.call(y), !0;
10603
10565
  } catch {
10604
10566
  }
10605
10567
  return !1;
10606
10568
  }
10607
- function Qe(x) {
10608
- if (!a || !x || typeof x != "object")
10569
+ function Qe(y) {
10570
+ if (!a || !y || typeof y != "object")
10609
10571
  return !1;
10610
10572
  try {
10611
- a.call(x);
10573
+ a.call(y);
10612
10574
  try {
10613
- r.call(x);
10575
+ r.call(y);
10614
10576
  } catch {
10615
10577
  return !0;
10616
10578
  }
10617
- return x instanceof Set;
10579
+ return y instanceof Set;
10618
10580
  } catch {
10619
10581
  }
10620
10582
  return !1;
10621
10583
  }
10622
- function kr(x) {
10623
- if (!d || !x || typeof x != "object")
10584
+ function kr(y) {
10585
+ if (!d || !y || typeof y != "object")
10624
10586
  return !1;
10625
10587
  try {
10626
- d.call(x, d);
10588
+ d.call(y, d);
10627
10589
  try {
10628
- l.call(x, l);
10590
+ l.call(y, l);
10629
10591
  } catch {
10630
10592
  return !0;
10631
10593
  }
10632
- return x instanceof WeakSet;
10594
+ return y instanceof WeakSet;
10633
10595
  } catch {
10634
10596
  }
10635
10597
  return !1;
10636
10598
  }
10637
- function dt(x) {
10638
- return !x || typeof x != "object" ? !1 : typeof HTMLElement < "u" && x instanceof HTMLElement ? !0 : typeof x.nodeName == "string" && typeof x.getAttribute == "function";
10599
+ function dt(y) {
10600
+ return !y || typeof y != "object" ? !1 : typeof HTMLElement < "u" && y instanceof HTMLElement ? !0 : typeof y.nodeName == "string" && typeof y.getAttribute == "function";
10639
10601
  }
10640
- function Dt(x, b) {
10641
- if (x.length > b.maxStringLength) {
10642
- var ie = x.length - b.maxStringLength, ae = "... " + ie + " more character" + (ie > 1 ? "s" : "");
10643
- return Dt(w.call(x, 0, b.maxStringLength), b) + ae;
10602
+ function Dt(y, b) {
10603
+ if (y.length > b.maxStringLength) {
10604
+ var ie = y.length - b.maxStringLength, ae = "... " + ie + " more character" + (ie > 1 ? "s" : "");
10605
+ return Dt(w.call(y, 0, b.maxStringLength), b) + ae;
10644
10606
  }
10645
10607
  var se = Be[b.quoteStyle || "single"];
10646
10608
  se.lastIndex = 0;
10647
- var Y = C.call(C.call(x, se, "\\$1"), /[\x00-\x1f]/g, Jt);
10609
+ var Y = C.call(C.call(y, se, "\\$1"), /[\x00-\x1f]/g, Jt);
10648
10610
  return I(Y, "single", b);
10649
10611
  }
10650
- function Jt(x) {
10651
- var b = x.charCodeAt(0), ie = {
10612
+ function Jt(y) {
10613
+ var b = y.charCodeAt(0), ie = {
10652
10614
  8: "b",
10653
10615
  9: "t",
10654
10616
  10: "n",
@@ -10657,62 +10619,62 @@ function Wn() {
10657
10619
  }[b];
10658
10620
  return ie ? "\\" + ie : "\\x" + (b < 16 ? "0" : "") + E.call(b.toString(16));
10659
10621
  }
10660
- function ft(x) {
10661
- return "Object(" + x + ")";
10622
+ function ft(y) {
10623
+ return "Object(" + y + ")";
10662
10624
  }
10663
- function Gn(x) {
10664
- return x + " { ? }";
10625
+ function Gn(y) {
10626
+ return y + " { ? }";
10665
10627
  }
10666
- function vs(x, b, ie, ae) {
10667
- var se = ae ? Vn(ie, ae) : k.call(ie, ", ");
10668
- return x + " (" + b + ") {" + se + "}";
10628
+ function vs(y, b, ie, ae) {
10629
+ var se = ae ? Vn(ie, ae) : M.call(ie, ", ");
10630
+ return y + " (" + b + ") {" + se + "}";
10669
10631
  }
10670
- function hf(x) {
10671
- for (var b = 0; b < x.length; b++)
10672
- if (je(x[b], `
10632
+ function hf(y) {
10633
+ for (var b = 0; b < y.length; b++)
10634
+ if (je(y[b], `
10673
10635
  `) >= 0)
10674
10636
  return !1;
10675
10637
  return !0;
10676
10638
  }
10677
- function pf(x, b) {
10639
+ function pf(y, b) {
10678
10640
  var ie;
10679
- if (x.indent === " ")
10641
+ if (y.indent === " ")
10680
10642
  ie = " ";
10681
- else if (typeof x.indent == "number" && x.indent > 0)
10682
- ie = k.call(Array(x.indent + 1), " ");
10643
+ else if (typeof y.indent == "number" && y.indent > 0)
10644
+ ie = M.call(Array(y.indent + 1), " ");
10683
10645
  else
10684
10646
  return null;
10685
10647
  return {
10686
10648
  base: ie,
10687
- prev: k.call(Array(b + 1), ie)
10649
+ prev: M.call(Array(b + 1), ie)
10688
10650
  };
10689
10651
  }
10690
- function Vn(x, b) {
10691
- if (x.length === 0)
10652
+ function Vn(y, b) {
10653
+ if (y.length === 0)
10692
10654
  return "";
10693
10655
  var ie = `
10694
10656
  ` + b.prev + b.base;
10695
- return ie + k.call(x, "," + ie) + `
10657
+ return ie + M.call(y, "," + ie) + `
10696
10658
  ` + b.prev;
10697
10659
  }
10698
- function Mr(x, b) {
10699
- var ie = U(x), ae = [];
10660
+ function Mr(y, b) {
10661
+ var ie = U(y), ae = [];
10700
10662
  if (ie) {
10701
- ae.length = x.length;
10702
- for (var se = 0; se < x.length; se++)
10703
- ae[se] = Ae(x, se) ? b(x[se], x) : "";
10663
+ ae.length = y.length;
10664
+ for (var se = 0; se < y.length; se++)
10665
+ ae[se] = Ce(y, se) ? b(y[se], y) : "";
10704
10666
  }
10705
- var Y = typeof S == "function" ? S(x) : [], ht;
10667
+ var Y = typeof S == "function" ? S(y) : [], ht;
10706
10668
  if (D) {
10707
10669
  ht = {};
10708
10670
  for (var Ct = 0; Ct < Y.length; Ct++)
10709
10671
  ht["$" + Y[Ct]] = Y[Ct];
10710
10672
  }
10711
- for (var Pe in x)
10712
- Ae(x, Pe) && (ie && String(Number(Pe)) === Pe && Pe < x.length || D && ht["$" + Pe] instanceof Symbol || (M.call(/[^\w$]/, Pe) ? ae.push(b(Pe, x) + ": " + b(x[Pe], x)) : ae.push(Pe + ": " + b(x[Pe], x))));
10673
+ for (var Ne in y)
10674
+ Ce(y, Ne) && (ie && String(Number(Ne)) === Ne && Ne < y.length || D && ht["$" + Ne] instanceof Symbol || (k.call(/[^\w$]/, Ne) ? ae.push(b(Ne, y) + ": " + b(y[Ne], y)) : ae.push(Ne + ": " + b(y[Ne], y))));
10713
10675
  if (typeof S == "function")
10714
10676
  for (var pt = 0; pt < Y.length; pt++)
10715
- j.call(x, Y[pt]) && ae.push("[" + b(Y[pt]) + "]: " + b(x[Y[pt]], x));
10677
+ j.call(y, Y[pt]) && ae.push("[" + b(Y[pt]) + "]: " + b(y[Y[pt]], y));
10716
10678
  return ae;
10717
10679
  }
10718
10680
  return Ao;
@@ -10721,7 +10683,7 @@ var Co, Tl;
10721
10683
  function h2() {
10722
10684
  if (Tl) return Co;
10723
10685
  Tl = 1;
10724
- var e = /* @__PURE__ */ Wn(), t = /* @__PURE__ */ _e(), r = function(s, c, l) {
10686
+ var e = /* @__PURE__ */ Wn(), t = /* @__PURE__ */ De(), r = function(s, c, l) {
10725
10687
  for (var f = s, d; (d = f.next) != null; f = d)
10726
10688
  if (d.key === c)
10727
10689
  return f.next = d.next, l || (d.next = /** @type {NonNullable<typeof list.next>} */
@@ -10780,7 +10742,7 @@ var To, El;
10780
10742
  function Zd() {
10781
10743
  if (El) return To;
10782
10744
  El = 1;
10783
- var e = /* @__PURE__ */ ut(), t = /* @__PURE__ */ Ee(), r = /* @__PURE__ */ Wn(), n = /* @__PURE__ */ _e(), i = e("%Map%", !0), o = t("Map.prototype.get", !0), a = t("Map.prototype.set", !0), s = t("Map.prototype.has", !0), c = t("Map.prototype.delete", !0), l = t("Map.prototype.size", !0);
10745
+ var e = /* @__PURE__ */ ut(), t = /* @__PURE__ */ Re(), r = /* @__PURE__ */ Wn(), n = /* @__PURE__ */ De(), i = e("%Map%", !0), o = t("Map.prototype.get", !0), a = t("Map.prototype.set", !0), s = t("Map.prototype.has", !0), c = t("Map.prototype.delete", !0), l = t("Map.prototype.size", !0);
10784
10746
  return To = !!i && /** @type {Exclude<import('.'), false>} */
10785
10747
  function() {
10786
10748
  var d, h = {
@@ -10813,7 +10775,7 @@ var Eo, Rl;
10813
10775
  function p2() {
10814
10776
  if (Rl) return Eo;
10815
10777
  Rl = 1;
10816
- var e = /* @__PURE__ */ ut(), t = /* @__PURE__ */ Ee(), r = /* @__PURE__ */ Wn(), n = Zd(), i = /* @__PURE__ */ _e(), o = e("%WeakMap%", !0), a = t("WeakMap.prototype.get", !0), s = t("WeakMap.prototype.set", !0), c = t("WeakMap.prototype.has", !0), l = t("WeakMap.prototype.delete", !0);
10778
+ var e = /* @__PURE__ */ ut(), t = /* @__PURE__ */ Re(), r = /* @__PURE__ */ Wn(), n = Zd(), i = /* @__PURE__ */ De(), o = e("%WeakMap%", !0), a = t("WeakMap.prototype.get", !0), s = t("WeakMap.prototype.set", !0), c = t("WeakMap.prototype.has", !0), l = t("WeakMap.prototype.delete", !0);
10817
10779
  return Eo = o ? (
10818
10780
  /** @type {Exclude<import('.'), false>} */
10819
10781
  function() {
@@ -10848,7 +10810,7 @@ var Ro, Il;
10848
10810
  function Qd() {
10849
10811
  if (Il) return Ro;
10850
10812
  Il = 1;
10851
- var e = /* @__PURE__ */ _e(), t = /* @__PURE__ */ Wn(), r = h2(), n = Zd(), i = p2(), o = i || n || r;
10813
+ var e = /* @__PURE__ */ De(), t = /* @__PURE__ */ Wn(), r = h2(), n = Zd(), i = p2(), o = i || n || r;
10852
10814
  return Ro = function() {
10853
10815
  var s, c = {
10854
10816
  assert: function(l) {
@@ -10875,7 +10837,7 @@ var Io, Ol;
10875
10837
  function m2() {
10876
10838
  if (Ol) return Io;
10877
10839
  Ol = 1;
10878
- var e = /* @__PURE__ */ ms(), t = Qd()(), r = /* @__PURE__ */ _e(), n = {
10840
+ var e = /* @__PURE__ */ ms(), t = Qd()(), r = /* @__PURE__ */ De(), n = {
10879
10841
  assert: function(i, o) {
10880
10842
  if (!i || typeof i != "object" && typeof i != "function")
10881
10843
  throw new r("`O` is not an object");
@@ -10974,7 +10936,7 @@ var No, kl;
10974
10936
  function tf() {
10975
10937
  if (kl) return No;
10976
10938
  kl = 1;
10977
- var e = /* @__PURE__ */ Ee(), t = e("String.prototype.valueOf"), r = function(s) {
10939
+ var e = /* @__PURE__ */ Re(), t = e("String.prototype.valueOf"), r = function(s) {
10978
10940
  try {
10979
10941
  return t(s), !0;
10980
10942
  } catch {
@@ -11053,27 +11015,27 @@ function v2() {
11053
11015
  return Array.prototype[r].call(N);
11054
11016
  };
11055
11017
  } else {
11056
- var n = ef(), i = tf(), o = /* @__PURE__ */ ut(), a = o("%Map%", !0), s = o("%Set%", !0), c = Kd(), l = c("Array.prototype.push"), f = c("String.prototype.charCodeAt"), d = c("String.prototype.slice"), h = function(N, $) {
11018
+ var n = ef(), i = tf(), o = /* @__PURE__ */ ut(), a = o("%Map%", !0), s = o("%Set%", !0), c = Kd(), l = c("Array.prototype.push"), f = c("String.prototype.charCodeAt"), d = c("String.prototype.slice"), h = function(N, _) {
11057
11019
  var T = N.length;
11058
- if ($ + 1 >= T)
11059
- return $ + 1;
11060
- var S = f(N, $);
11020
+ if (_ + 1 >= T)
11021
+ return _ + 1;
11022
+ var S = f(N, _);
11061
11023
  if (S < 55296 || S > 56319)
11062
- return $ + 1;
11063
- var P = f(N, $ + 1);
11064
- return P < 56320 || P > 57343 ? $ + 1 : $ + 2;
11024
+ return _ + 1;
11025
+ var P = f(N, _ + 1);
11026
+ return P < 56320 || P > 57343 ? _ + 1 : _ + 2;
11065
11027
  }, p = function(N) {
11066
- var $ = 0;
11028
+ var _ = 0;
11067
11029
  return {
11068
11030
  next: function() {
11069
- var S = $ >= N.length, P;
11070
- return S || (P = N[$], $ += 1), {
11031
+ var S = _ >= N.length, P;
11032
+ return S || (P = N[_], _ += 1), {
11071
11033
  done: S,
11072
11034
  value: P
11073
11035
  };
11074
11036
  }
11075
11037
  };
11076
- }, m = function(N, $) {
11038
+ }, m = function(N, _) {
11077
11039
  if (n(N) || e(N))
11078
11040
  return p(N);
11079
11041
  if (i(N)) {
@@ -11088,7 +11050,7 @@ function v2() {
11088
11050
  }
11089
11051
  };
11090
11052
  }
11091
- if ($ && typeof N["_es6-shim iterator_"] < "u")
11053
+ if (_ && typeof N["_es6-shim iterator_"] < "u")
11092
11054
  return N["_es6-shim iterator_"]();
11093
11055
  };
11094
11056
  if (!a && !s)
@@ -11097,27 +11059,27 @@ function v2() {
11097
11059
  return m(N, !0);
11098
11060
  };
11099
11061
  else {
11100
- var v = /* @__PURE__ */ rf(), g = /* @__PURE__ */ nf(), y = c("Map.prototype.forEach", !0), w = c("Set.prototype.forEach", !0);
11062
+ var v = /* @__PURE__ */ rf(), g = /* @__PURE__ */ nf(), x = c("Map.prototype.forEach", !0), w = c("Set.prototype.forEach", !0);
11101
11063
  if (typeof process > "u" || !process.versions || !process.versions.node)
11102
11064
  var C = c("Map.prototype.iterator", !0), E = c("Set.prototype.iterator", !0);
11103
- var A = c("Map.prototype.@@iterator", !0) || c("Map.prototype._es6-shim iterator_", !0), M = c("Set.prototype.@@iterator", !0) || c("Set.prototype._es6-shim iterator_", !0), L = function(N) {
11065
+ var A = c("Map.prototype.@@iterator", !0) || c("Map.prototype._es6-shim iterator_", !0), k = c("Set.prototype.@@iterator", !0) || c("Set.prototype._es6-shim iterator_", !0), L = function(N) {
11104
11066
  if (v(N)) {
11105
11067
  if (C)
11106
11068
  return t(C(N));
11107
11069
  if (A)
11108
11070
  return A(N);
11109
- if (y) {
11110
- var $ = [];
11111
- return y(N, function(S, P) {
11112
- l($, [P, S]);
11113
- }), p($);
11071
+ if (x) {
11072
+ var _ = [];
11073
+ return x(N, function(S, P) {
11074
+ l(_, [P, S]);
11075
+ }), p(_);
11114
11076
  }
11115
11077
  }
11116
11078
  if (g(N)) {
11117
11079
  if (E)
11118
11080
  return t(E(N));
11119
- if (M)
11120
- return M(N);
11081
+ if (k)
11082
+ return k(N);
11121
11083
  if (w) {
11122
11084
  var T = [];
11123
11085
  return w(N, function(S) {
@@ -11182,7 +11144,7 @@ var Bo, zl;
11182
11144
  function sf() {
11183
11145
  if (zl) return Bo;
11184
11146
  zl = 1;
11185
- var e = Yt(), t = /* @__PURE__ */ Ee(), r = /* @__PURE__ */ ut(), n = r("%ArrayBuffer%", !0), i = t("ArrayBuffer.prototype.byteLength", !0), o = t("Object.prototype.toString"), a = !!n && !i && new n(0).slice, s = !!a && e(a);
11147
+ var e = Yt(), t = /* @__PURE__ */ Re(), r = /* @__PURE__ */ ut(), n = r("%ArrayBuffer%", !0), i = t("ArrayBuffer.prototype.byteLength", !0), o = t("Object.prototype.toString"), a = !!n && !i && new n(0).slice, s = !!a && e(a);
11186
11148
  return Bo = i || s ? function(l) {
11187
11149
  if (!l || typeof l != "object")
11188
11150
  return !1;
@@ -11201,7 +11163,7 @@ var jo, Hl;
11201
11163
  function b2() {
11202
11164
  if (Hl) return jo;
11203
11165
  Hl = 1;
11204
- var e = /* @__PURE__ */ Ee(), t = e("Date.prototype.getDay"), r = function(s) {
11166
+ var e = /* @__PURE__ */ Re(), t = e("Date.prototype.getDay"), r = function(s) {
11205
11167
  try {
11206
11168
  return t(s), !0;
11207
11169
  } catch {
@@ -11216,7 +11178,7 @@ var zo, ql;
11216
11178
  function cf() {
11217
11179
  if (ql) return zo;
11218
11180
  ql = 1;
11219
- var e = /* @__PURE__ */ Ee(), t = _t()(), r = /* @__PURE__ */ ms(), n = /* @__PURE__ */ Lt(), i;
11181
+ var e = /* @__PURE__ */ Re(), t = _t()(), r = /* @__PURE__ */ ms(), n = /* @__PURE__ */ Lt(), i;
11220
11182
  if (t) {
11221
11183
  var o = e("RegExp.prototype.exec"), a = {}, s = function() {
11222
11184
  throw a;
@@ -11260,7 +11222,7 @@ var Ho, Fl;
11260
11222
  function w2() {
11261
11223
  if (Fl) return Ho;
11262
11224
  Fl = 1;
11263
- var e = /* @__PURE__ */ Ee(), t = e("SharedArrayBuffer.prototype.byteLength", !0);
11225
+ var e = /* @__PURE__ */ Re(), t = e("SharedArrayBuffer.prototype.byteLength", !0);
11264
11226
  return Ho = t ? function(n) {
11265
11227
  if (!n || typeof n != "object")
11266
11228
  return !1;
@@ -11277,7 +11239,7 @@ var qo, Ul;
11277
11239
  function S2() {
11278
11240
  if (Ul) return qo;
11279
11241
  Ul = 1;
11280
- var e = /* @__PURE__ */ Ee(), t = e("Number.prototype.toString"), r = function(s) {
11242
+ var e = /* @__PURE__ */ Re(), t = e("Number.prototype.toString"), r = function(s) {
11281
11243
  try {
11282
11244
  return t(s), !0;
11283
11245
  } catch {
@@ -11292,7 +11254,7 @@ var Fo, Wl;
11292
11254
  function A2() {
11293
11255
  if (Wl) return Fo;
11294
11256
  Wl = 1;
11295
- var e = /* @__PURE__ */ Ee(), t = e("Boolean.prototype.toString"), r = e("Object.prototype.toString"), n = function(s) {
11257
+ var e = /* @__PURE__ */ Re(), t = e("Boolean.prototype.toString"), r = e("Object.prototype.toString"), n = function(s) {
11296
11258
  try {
11297
11259
  return t(s), !0;
11298
11260
  } catch {
@@ -11307,7 +11269,7 @@ var Ur = { exports: {} }, Uo, Gl;
11307
11269
  function C2() {
11308
11270
  if (Gl) return Uo;
11309
11271
  Gl = 1;
11310
- var e = /* @__PURE__ */ Ee(), t = cf(), r = e("RegExp.prototype.exec"), n = /* @__PURE__ */ _e();
11272
+ var e = /* @__PURE__ */ Re(), t = cf(), r = e("RegExp.prototype.exec"), n = /* @__PURE__ */ De();
11311
11273
  return Uo = function(o) {
11312
11274
  if (!t(o))
11313
11275
  throw new n("`regex` must be a RegExp");
@@ -11320,7 +11282,7 @@ var Vl;
11320
11282
  function T2() {
11321
11283
  if (Vl) return Ur.exports;
11322
11284
  Vl = 1;
11323
- var e = /* @__PURE__ */ Ee(), t = e("Object.prototype.toString"), r = ds()(), n = /* @__PURE__ */ C2();
11285
+ var e = /* @__PURE__ */ Re(), t = e("Object.prototype.toString"), r = ds()(), n = /* @__PURE__ */ C2();
11324
11286
  if (r) {
11325
11287
  var i = e("Symbol.prototype.toString"), o = n(/^Symbol\(.*\)$/), a = function(c) {
11326
11288
  return typeof c.valueOf() != "symbol" ? !1 : o(i(c));
@@ -11424,7 +11386,7 @@ var Gr = { exports: {} }, Zl;
11424
11386
  function P2() {
11425
11387
  if (Zl) return Gr.exports;
11426
11388
  Zl = 1;
11427
- var e = /* @__PURE__ */ ut(), t = /* @__PURE__ */ Ee(), r = e("%WeakSet%", !0), n = t("WeakSet.prototype.has", !0);
11389
+ var e = /* @__PURE__ */ ut(), t = /* @__PURE__ */ Re(), r = e("%WeakSet%", !0), n = t("WeakSet.prototype.has", !0);
11428
11390
  if (n) {
11429
11391
  var i = t("WeakMap.prototype.has", !0);
11430
11392
  Gr.exports = function(a) {
@@ -11503,8 +11465,8 @@ function k2() {
11503
11465
  return !1;
11504
11466
  };
11505
11467
  if (typeof document == "object") {
11506
- var y = document.all;
11507
- s.call(y) === s.call(document.all) && (g = function(C) {
11468
+ var x = document.all;
11469
+ s.call(x) === s.call(document.all) && (g = function(C) {
11508
11470
  if ((v || !C) && (typeof C > "u" || typeof C == "object"))
11509
11471
  try {
11510
11472
  var E = s.call(C);
@@ -11595,28 +11557,28 @@ var Qo, iu;
11595
11557
  function _2() {
11596
11558
  if (iu) return Qo;
11597
11559
  iu = 1;
11598
- var e = M2(), t = /* @__PURE__ */ $2(), r = Yt(), n = /* @__PURE__ */ Ee(), i = /* @__PURE__ */ Lt(), o = n("Object.prototype.toString"), a = _t()(), s = typeof globalThis > "u" ? kn : globalThis, c = t(), l = n("String.prototype.slice"), f = Object.getPrototypeOf, d = n("Array.prototype.indexOf", !0) || function(g, y) {
11560
+ var e = M2(), t = /* @__PURE__ */ $2(), r = Yt(), n = /* @__PURE__ */ Re(), i = /* @__PURE__ */ Lt(), o = n("Object.prototype.toString"), a = _t()(), s = typeof globalThis > "u" ? kn : globalThis, c = t(), l = n("String.prototype.slice"), f = Object.getPrototypeOf, d = n("Array.prototype.indexOf", !0) || function(g, x) {
11599
11561
  for (var w = 0; w < g.length; w += 1)
11600
- if (g[w] === y)
11562
+ if (g[w] === x)
11601
11563
  return w;
11602
11564
  return -1;
11603
11565
  }, h = { __proto__: null };
11604
11566
  a && i && f ? e(c, function(v) {
11605
11567
  var g = new s[v]();
11606
11568
  if (Symbol.toStringTag in g) {
11607
- var y = f(g), w = i(y, Symbol.toStringTag);
11569
+ var x = f(g), w = i(x, Symbol.toStringTag);
11608
11570
  if (!w) {
11609
- var C = f(y);
11571
+ var C = f(x);
11610
11572
  w = i(C, Symbol.toStringTag);
11611
11573
  }
11612
11574
  h["$" + v] = r(w.get);
11613
11575
  }
11614
11576
  }) : e(c, function(v) {
11615
- var g = new s[v](), y = g.slice || g.set;
11616
- y && (h["$" + v] = r(y));
11577
+ var g = new s[v](), x = g.slice || g.set;
11578
+ x && (h["$" + v] = r(x));
11617
11579
  });
11618
11580
  var p = function(g) {
11619
- var y = !1;
11581
+ var x = !1;
11620
11582
  return e(
11621
11583
  // eslint-disable-next-line no-extra-parens
11622
11584
  /** @type {Record<`\$${TypedArrayName}`, Getter>} */
@@ -11624,15 +11586,15 @@ function _2() {
11624
11586
  h,
11625
11587
  /** @type {(getter: Getter, name: `\$${import('.').TypedArrayName}`) => void} */
11626
11588
  function(w, C) {
11627
- if (!y)
11589
+ if (!x)
11628
11590
  try {
11629
- "$" + w(g) === C && (y = l(C, 1));
11591
+ "$" + w(g) === C && (x = l(C, 1));
11630
11592
  } catch {
11631
11593
  }
11632
11594
  }
11633
- ), y;
11595
+ ), x;
11634
11596
  }, m = function(g) {
11635
- var y = !1;
11597
+ var x = !1;
11636
11598
  return e(
11637
11599
  // eslint-disable-next-line no-extra-parens
11638
11600
  /** @type {Record<`\$${TypedArrayName}`, Getter>} */
@@ -11640,20 +11602,20 @@ function _2() {
11640
11602
  h,
11641
11603
  /** @type {(getter: typeof cache, name: `\$${import('.').TypedArrayName}`) => void} */
11642
11604
  function(w, C) {
11643
- if (!y)
11605
+ if (!x)
11644
11606
  try {
11645
- w(g), y = l(C, 1);
11607
+ w(g), x = l(C, 1);
11646
11608
  } catch {
11647
11609
  }
11648
11610
  }
11649
- ), y;
11611
+ ), x;
11650
11612
  };
11651
11613
  return Qo = function(g) {
11652
11614
  if (!g || typeof g != "object")
11653
11615
  return !1;
11654
11616
  if (!a) {
11655
- var y = l(o(g), 8, -1);
11656
- return d(c, y) > -1 ? y : y !== "Object" ? !1 : m(g);
11617
+ var x = l(o(g), 8, -1);
11618
+ return d(c, x) > -1 ? x : x !== "Object" ? !1 : m(g);
11657
11619
  }
11658
11620
  return i ? p(g) : null;
11659
11621
  }, Qo;
@@ -11662,7 +11624,7 @@ var ea, ou;
11662
11624
  function D2() {
11663
11625
  if (ou) return ea;
11664
11626
  ou = 1;
11665
- var e = /* @__PURE__ */ Ee(), t = e("ArrayBuffer.prototype.byteLength", !0), r = /* @__PURE__ */ sf();
11627
+ var e = /* @__PURE__ */ Re(), t = e("ArrayBuffer.prototype.byteLength", !0), r = /* @__PURE__ */ sf();
11666
11628
  return ea = function(i) {
11667
11629
  return r(i) ? t ? t(i) : i.byteLength : NaN;
11668
11630
  }, ea;
@@ -11671,11 +11633,11 @@ var ta, au;
11671
11633
  function B2() {
11672
11634
  if (au) return ta;
11673
11635
  au = 1;
11674
- var e = o2(), t = Kd(), r = l2(), n = /* @__PURE__ */ ut(), i = v2(), o = Qd(), a = x2(), s = /* @__PURE__ */ Jd(), c = ef(), l = /* @__PURE__ */ sf(), f = /* @__PURE__ */ b2(), d = cf(), h = /* @__PURE__ */ w2(), p = as(), m = I2(), v = /* @__PURE__ */ N2(), g = /* @__PURE__ */ _2(), y = /* @__PURE__ */ D2(), w = t("SharedArrayBuffer.prototype.byteLength", !0), C = t("Date.prototype.getTime"), E = Object.getPrototypeOf, A = t("Object.prototype.toString"), M = n("%Set%", !0), L = t("Map.prototype.has", !0), k = t("Map.prototype.get", !0), N = t("Map.prototype.size", !0), $ = t("Set.prototype.add", !0), T = t("Set.prototype.delete", !0), S = t("Set.prototype.has", !0), P = t("Set.prototype.size", !0);
11675
- function D(I, _, G, U) {
11676
- for (var Z = i(I), re; (re = Z.next()) && !re.done; )
11677
- if (te(_, re.value, G, U))
11678
- return T(I, re.value), !0;
11636
+ var e = o2(), t = Kd(), r = l2(), n = /* @__PURE__ */ ut(), i = v2(), o = Qd(), a = x2(), s = /* @__PURE__ */ Jd(), c = ef(), l = /* @__PURE__ */ sf(), f = /* @__PURE__ */ b2(), d = cf(), h = /* @__PURE__ */ w2(), p = as(), m = I2(), v = /* @__PURE__ */ N2(), g = /* @__PURE__ */ _2(), x = /* @__PURE__ */ D2(), w = t("SharedArrayBuffer.prototype.byteLength", !0), C = t("Date.prototype.getTime"), E = Object.getPrototypeOf, A = t("Object.prototype.toString"), k = n("%Set%", !0), L = t("Map.prototype.has", !0), M = t("Map.prototype.get", !0), N = t("Map.prototype.size", !0), _ = t("Set.prototype.add", !0), T = t("Set.prototype.delete", !0), S = t("Set.prototype.has", !0), P = t("Set.prototype.size", !0);
11637
+ function D(I, $, G, U) {
11638
+ for (var Z = i(I), te; (te = Z.next()) && !te.done; )
11639
+ if (re($, te.value, G, U))
11640
+ return T(I, te.value), !0;
11679
11641
  return !1;
11680
11642
  }
11681
11643
  function H(I) {
@@ -11684,57 +11646,57 @@ function B2() {
11684
11646
  if (typeof I != "object")
11685
11647
  return typeof I == "symbol" ? !1 : typeof I == "string" || typeof I == "number" ? +I == +I : !0;
11686
11648
  }
11687
- function j(I, _, G, U, Z, re) {
11649
+ function j(I, $, G, U, Z, te) {
11688
11650
  var z = H(G);
11689
11651
  if (z != null)
11690
11652
  return z;
11691
- var q = k(_, z), B = e({}, Z, { strict: !1 });
11692
- return typeof q > "u" && !L(_, z) || !te(U, q, B, re) ? !1 : !L(I, z) && te(U, q, B, re);
11653
+ var q = M($, z), B = e({}, Z, { strict: !1 });
11654
+ return typeof q > "u" && !L($, z) || !re(U, q, B, te) ? !1 : !L(I, z) && re(U, q, B, te);
11693
11655
  }
11694
- function W(I, _, G) {
11656
+ function W(I, $, G) {
11695
11657
  var U = H(G);
11696
- return U ?? (S(_, U) && !S(I, U));
11658
+ return U ?? (S($, U) && !S(I, U));
11697
11659
  }
11698
- function Q(I, _, G, U, Z, re) {
11660
+ function ee(I, $, G, U, Z, te) {
11699
11661
  for (var z = i(I), q, B; (q = z.next()) && !q.done; )
11700
11662
  if (B = q.value, // eslint-disable-next-line no-use-before-define
11701
- te(G, B, Z, re) && te(U, k(_, B), Z, re))
11663
+ re(G, B, Z, te) && re(U, M($, B), Z, te))
11702
11664
  return T(I, B), !0;
11703
11665
  return !1;
11704
11666
  }
11705
- function te(I, _, G, U) {
11667
+ function re(I, $, G, U) {
11706
11668
  var Z = G || {};
11707
- if (Z.strict ? a(I, _) : I === _)
11669
+ if (Z.strict ? a(I, $) : I === $)
11708
11670
  return !0;
11709
- var re = m(I), z = m(_);
11710
- if (re !== z)
11671
+ var te = m(I), z = m($);
11672
+ if (te !== z)
11711
11673
  return !1;
11712
- if (!I || !_ || typeof I != "object" && typeof _ != "object")
11713
- return Z.strict ? a(I, _) : I == _;
11714
- var q = U.has(I), B = U.has(_), K;
11674
+ if (!I || !$ || typeof I != "object" && typeof $ != "object")
11675
+ return Z.strict ? a(I, $) : I == $;
11676
+ var q = U.has(I), B = U.has($), K;
11715
11677
  if (q && B) {
11716
- if (U.get(I) === U.get(_))
11678
+ if (U.get(I) === U.get($))
11717
11679
  return !0;
11718
11680
  } else
11719
11681
  K = {};
11720
- return q || U.set(I, K), B || U.set(_, K), Be(I, _, Z, U);
11682
+ return q || U.set(I, K), B || U.set($, K), Be(I, $, Z, U);
11721
11683
  }
11722
- function ye(I) {
11684
+ function fe(I) {
11723
11685
  return !I || typeof I != "object" || typeof I.length != "number" || typeof I.copy != "function" || typeof I.slice != "function" || I.length > 0 && typeof I[0] != "number" ? !1 : !!(I.constructor && I.constructor.isBuffer && I.constructor.isBuffer(I));
11724
11686
  }
11725
- function me(I, _, G, U) {
11726
- if (P(I) !== P(_))
11687
+ function pe(I, $, G, U) {
11688
+ if (P(I) !== P($))
11727
11689
  return !1;
11728
- for (var Z = i(I), re = i(_), z, q, B; (z = Z.next()) && !z.done; )
11690
+ for (var Z = i(I), te = i($), z, q, B; (z = Z.next()) && !z.done; )
11729
11691
  if (z.value && typeof z.value == "object")
11730
- B || (B = new M()), $(B, z.value);
11731
- else if (!S(_, z.value)) {
11732
- if (G.strict || !W(I, _, z.value))
11692
+ B || (B = new k()), _(B, z.value);
11693
+ else if (!S($, z.value)) {
11694
+ if (G.strict || !W(I, $, z.value))
11733
11695
  return !1;
11734
- B || (B = new M()), $(B, z.value);
11696
+ B || (B = new k()), _(B, z.value);
11735
11697
  }
11736
11698
  if (B) {
11737
- for (; (q = re.next()) && !q.done; )
11699
+ for (; (q = te.next()) && !q.done; )
11738
11700
  if (q.value && typeof q.value == "object") {
11739
11701
  if (!D(B, q.value, G.strict, U))
11740
11702
  return !1;
@@ -11744,92 +11706,92 @@ function B2() {
11744
11706
  }
11745
11707
  return !0;
11746
11708
  }
11747
- function De(I, _, G, U) {
11748
- if (N(I) !== N(_))
11709
+ function Ae(I, $, G, U) {
11710
+ if (N(I) !== N($))
11749
11711
  return !1;
11750
- for (var Z = i(I), re = i(_), z, q, B, K, ge, xe; (z = Z.next()) && !z.done; )
11751
- if (K = z.value[0], ge = z.value[1], K && typeof K == "object")
11752
- B || (B = new M()), $(B, K);
11753
- else if (xe = k(_, K), typeof xe > "u" && !L(_, K) || !te(ge, xe, G, U)) {
11754
- if (G.strict || !j(I, _, K, ge, G, U))
11712
+ for (var Z = i(I), te = i($), z, q, B, K, ve, xe; (z = Z.next()) && !z.done; )
11713
+ if (K = z.value[0], ve = z.value[1], K && typeof K == "object")
11714
+ B || (B = new k()), _(B, K);
11715
+ else if (xe = M($, K), typeof xe > "u" && !L($, K) || !re(ve, xe, G, U)) {
11716
+ if (G.strict || !j(I, $, K, ve, G, U))
11755
11717
  return !1;
11756
- B || (B = new M()), $(B, K);
11718
+ B || (B = new k()), _(B, K);
11757
11719
  }
11758
11720
  if (B) {
11759
- for (; (q = re.next()) && !q.done; )
11721
+ for (; (q = te.next()) && !q.done; )
11760
11722
  if (K = q.value[0], xe = q.value[1], K && typeof K == "object") {
11761
- if (!Q(B, I, K, xe, G, U))
11723
+ if (!ee(B, I, K, xe, G, U))
11762
11724
  return !1;
11763
- } else if (!G.strict && (!I.has(K) || !te(k(I, K), xe, G, U)) && !Q(B, I, K, xe, e({}, G, { strict: !1 }), U))
11725
+ } else if (!G.strict && (!I.has(K) || !re(M(I, K), xe, G, U)) && !ee(B, I, K, xe, e({}, G, { strict: !1 }), U))
11764
11726
  return !1;
11765
11727
  return P(B) === 0;
11766
11728
  }
11767
11729
  return !0;
11768
11730
  }
11769
- function Be(I, _, G, U) {
11770
- var Z, re;
11771
- if (typeof I != typeof _ || I == null || _ == null || A(I) !== A(_) || s(I) !== s(_))
11731
+ function Be(I, $, G, U) {
11732
+ var Z, te;
11733
+ if (typeof I != typeof $ || I == null || $ == null || A(I) !== A($) || s(I) !== s($))
11772
11734
  return !1;
11773
- var z = c(I), q = c(_);
11735
+ var z = c(I), q = c($);
11774
11736
  if (z !== q)
11775
11737
  return !1;
11776
- var B = I instanceof Error, K = _ instanceof Error;
11777
- if (B !== K || (B || K) && (I.name !== _.name || I.message !== _.message))
11738
+ var B = I instanceof Error, K = $ instanceof Error;
11739
+ if (B !== K || (B || K) && (I.name !== $.name || I.message !== $.message))
11778
11740
  return !1;
11779
- var ge = d(I), xe = d(_);
11780
- if (ge !== xe || (ge || xe) && (I.source !== _.source || r(I) !== r(_)))
11741
+ var ve = d(I), xe = d($);
11742
+ if (ve !== xe || (ve || xe) && (I.source !== $.source || r(I) !== r($)))
11781
11743
  return !1;
11782
- var be = f(I), Ae = f(_);
11783
- if (be !== Ae || (be || Ae) && C(I) !== C(_) || G.strict && E && E(I) !== E(_))
11744
+ var be = f(I), Ce = f($);
11745
+ if (be !== Ce || (be || Ce) && C(I) !== C($) || G.strict && E && E(I) !== E($))
11784
11746
  return !1;
11785
- var Re = g(I), Ye = g(_);
11786
- if (Re !== Ye)
11747
+ var Ie = g(I), Ye = g($);
11748
+ if (Ie !== Ye)
11787
11749
  return !1;
11788
- if (Re || Ye) {
11789
- if (I.length !== _.length)
11750
+ if (Ie || Ye) {
11751
+ if (I.length !== $.length)
11790
11752
  return !1;
11791
11753
  for (Z = 0; Z < I.length; Z++)
11792
- if (I[Z] !== _[Z])
11754
+ if (I[Z] !== $[Z])
11793
11755
  return !1;
11794
11756
  return !0;
11795
11757
  }
11796
- var je = ye(I), Ie = ye(_);
11797
- if (je !== Ie)
11758
+ var je = fe(I), Oe = fe($);
11759
+ if (je !== Oe)
11798
11760
  return !1;
11799
- if (je || Ie) {
11800
- if (I.length !== _.length)
11761
+ if (je || Oe) {
11762
+ if (I.length !== $.length)
11801
11763
  return !1;
11802
11764
  for (Z = 0; Z < I.length; Z++)
11803
- if (I[Z] !== _[Z])
11765
+ if (I[Z] !== $[Z])
11804
11766
  return !1;
11805
11767
  return !0;
11806
11768
  }
11807
- var Je = l(I), Ze = l(_);
11769
+ var Je = l(I), Ze = l($);
11808
11770
  if (Je !== Ze)
11809
11771
  return !1;
11810
11772
  if (Je || Ze)
11811
- return y(I) !== y(_) ? !1 : typeof Uint8Array == "function" && te(new Uint8Array(I), new Uint8Array(_), G, U);
11812
- var Qe = h(I), kr = h(_);
11773
+ return x(I) !== x($) ? !1 : typeof Uint8Array == "function" && re(new Uint8Array(I), new Uint8Array($), G, U);
11774
+ var Qe = h(I), kr = h($);
11813
11775
  if (Qe !== kr)
11814
11776
  return !1;
11815
11777
  if (Qe || kr)
11816
- return w(I) !== w(_) ? !1 : typeof Uint8Array == "function" && te(new Uint8Array(I), new Uint8Array(_), G, U);
11817
- if (typeof I != typeof _)
11778
+ return w(I) !== w($) ? !1 : typeof Uint8Array == "function" && re(new Uint8Array(I), new Uint8Array($), G, U);
11779
+ if (typeof I != typeof $)
11818
11780
  return !1;
11819
- var dt = p(I), Dt = p(_);
11781
+ var dt = p(I), Dt = p($);
11820
11782
  if (dt.length !== Dt.length)
11821
11783
  return !1;
11822
11784
  for (dt.sort(), Dt.sort(), Z = dt.length - 1; Z >= 0; Z--)
11823
11785
  if (dt[Z] != Dt[Z])
11824
11786
  return !1;
11825
11787
  for (Z = dt.length - 1; Z >= 0; Z--)
11826
- if (re = dt[Z], !te(I[re], _[re], G, U))
11788
+ if (te = dt[Z], !re(I[te], $[te], G, U))
11827
11789
  return !1;
11828
- var Jt = v(I), ft = v(_);
11829
- return Jt !== ft ? !1 : Jt === "Set" || ft === "Set" ? me(I, _, G, U) : Jt === "Map" ? De(I, _, G, U) : !0;
11790
+ var Jt = v(I), ft = v($);
11791
+ return Jt !== ft ? !1 : Jt === "Set" || ft === "Set" ? pe(I, $, G, U) : Jt === "Map" ? Ae(I, $, G, U) : !0;
11830
11792
  }
11831
- return ta = function(_, G, U) {
11832
- return te(_, G, U, o());
11793
+ return ta = function($, G, U) {
11794
+ return re($, G, U, o());
11833
11795
  }, ta;
11834
11796
  }
11835
11797
  var j2 = B2();
@@ -11839,7 +11801,7 @@ function H2(e) {
11839
11801
  }
11840
11802
  function q2(e, t, r, n) {
11841
11803
  const i = H2, [o, a] = J(i(r)), s = He(o);
11842
- return he(() => {
11804
+ return me(() => {
11843
11805
  const c = () => {
11844
11806
  const l = { ...r, ...e.getAttributes(t) };
11845
11807
  Object.keys(l).forEach((d) => {
@@ -11862,7 +11824,7 @@ function F2({ editor: e }) {
11862
11824
  }), [o, a] = J(!1), [s, c] = J(""), l = oe(() => {
11863
11825
  a(!1);
11864
11826
  }, [a]);
11865
- he(() => {
11827
+ me(() => {
11866
11828
  o && c(i);
11867
11829
  }, [o, i]);
11868
11830
  const f = oe(() => {
@@ -11880,7 +11842,7 @@ function F2({ editor: e }) {
11880
11842
  },
11881
11843
  [e]
11882
11844
  ), m = oe(() => e.isActive(Ht.name) && !i, [e, i]), v = oe(() => Td(Ht.name, e), [e]);
11883
- return /* @__PURE__ */ R(pe, { children: [
11845
+ return /* @__PURE__ */ R(ge, { children: [
11884
11846
  /* @__PURE__ */ u(
11885
11847
  St,
11886
11848
  {
@@ -11952,7 +11914,7 @@ function F2({ editor: e }) {
11952
11914
  /* @__PURE__ */ R(Rr, { children: [
11953
11915
  /* @__PURE__ */ u(yd, { children: /* @__PURE__ */ u(Ir, { children: "Edit Link Iframe" }) }),
11954
11916
  /* @__PURE__ */ u(
11955
- Ne,
11917
+ ke,
11956
11918
  {
11957
11919
  autoFocus: !0,
11958
11920
  onInput: (g) => c(g.target.value),
@@ -11962,8 +11924,8 @@ function F2({ editor: e }) {
11962
11924
  }
11963
11925
  ),
11964
11926
  /* @__PURE__ */ R(Qa, { children: [
11965
- /* @__PURE__ */ u(Ce, { onClick: l, children: "Cancel" }),
11966
- /* @__PURE__ */ u(Ce, { onClick: f, children: "OK" })
11927
+ /* @__PURE__ */ u(Te, { onClick: l, children: "Cancel" }),
11928
+ /* @__PURE__ */ u(Te, { onClick: f, children: "OK" })
11967
11929
  ] })
11968
11930
  ] })
11969
11931
  ]
@@ -11973,7 +11935,7 @@ function F2({ editor: e }) {
11973
11935
  }
11974
11936
  function U2({ editor: e, disabled: t, bubbleMenu: r }) {
11975
11937
  const n = e.extensionManager.extensions.map((o) => o.name), i = () => {
11976
- var o, a, s, c, l, f, d, h, p, m;
11938
+ var o, a, s, c, l, f, d, h, p, m, v;
11977
11939
  return [
11978
11940
  n.includes("columns") && !((o = r == null ? void 0 : r.columnConfig) != null && o.hidden) ? /* @__PURE__ */ u(
11979
11941
  Xx,
@@ -11986,11 +11948,12 @@ function U2({ editor: e, disabled: t, bubbleMenu: r }) {
11986
11948
  ky,
11987
11949
  {
11988
11950
  actions: (s = r == null ? void 0 : r.tableConfig) == null ? void 0 : s.actions,
11989
- editor: e
11951
+ editor: e,
11952
+ hiddenActions: (c = r == null ? void 0 : r.tableConfig) == null ? void 0 : c.hiddenActions
11990
11953
  },
11991
11954
  "table"
11992
11955
  ) : null,
11993
- n.includes("link") && !((c = r == null ? void 0 : r.linkConfig) != null && c.hidden) ? /* @__PURE__ */ u(
11956
+ n.includes("link") && !((l = r == null ? void 0 : r.linkConfig) != null && l.hidden) ? /* @__PURE__ */ u(
11994
11957
  sx,
11995
11958
  {
11996
11959
  disabled: t,
@@ -11998,7 +11961,7 @@ function U2({ editor: e, disabled: t, bubbleMenu: r }) {
11998
11961
  },
11999
11962
  "link"
12000
11963
  ) : null,
12001
- n.includes(wr.name) && !((l = r == null ? void 0 : r.imageConfig) != null && l.hidden) ? /* @__PURE__ */ u(
11964
+ n.includes(wr.name) && !((f = r == null ? void 0 : r.imageConfig) != null && f.hidden) ? /* @__PURE__ */ u(
12002
11965
  qx,
12003
11966
  {
12004
11967
  disabled: t,
@@ -12006,7 +11969,7 @@ function U2({ editor: e, disabled: t, bubbleMenu: r }) {
12006
11969
  },
12007
11970
  "image"
12008
11971
  ) : null,
12009
- n.includes(Sd.name) && !((f = r == null ? void 0 : r.imageGifConfig) != null && f.hidden) ? /* @__PURE__ */ u(
11972
+ n.includes(Sd.name) && !((d = r == null ? void 0 : r.imageGifConfig) != null && d.hidden) ? /* @__PURE__ */ u(
12010
11973
  Fx,
12011
11974
  {
12012
11975
  disabled: t,
@@ -12014,7 +11977,7 @@ function U2({ editor: e, disabled: t, bubbleMenu: r }) {
12014
11977
  },
12015
11978
  "imageGif"
12016
11979
  ) : null,
12017
- n.includes("video") && !((d = r == null ? void 0 : r.videoConfig) != null && d.hidden) ? /* @__PURE__ */ u(
11980
+ n.includes("video") && !((h = r == null ? void 0 : r.videoConfig) != null && h.hidden) ? /* @__PURE__ */ u(
12018
11981
  Ux,
12019
11982
  {
12020
11983
  disabled: t,
@@ -12022,7 +11985,7 @@ function U2({ editor: e, disabled: t, bubbleMenu: r }) {
12022
11985
  },
12023
11986
  "video"
12024
11987
  ) : null,
12025
- n.includes("iframe") && !((h = r == null ? void 0 : r.iframeConfig) != null && h.hidden) ? /* @__PURE__ */ u(
11988
+ n.includes("iframe") && !((p = r == null ? void 0 : r.iframeConfig) != null && p.hidden) ? /* @__PURE__ */ u(
12026
11989
  F2,
12027
11990
  {
12028
11991
  disabled: t,
@@ -12030,7 +11993,7 @@ function U2({ editor: e, disabled: t, bubbleMenu: r }) {
12030
11993
  },
12031
11994
  "iframe"
12032
11995
  ) : null,
12033
- (p = r == null ? void 0 : r.floatingMenuConfig) != null && p.hidden ? null : /* @__PURE__ */ u(
11996
+ (m = r == null ? void 0 : r.floatingMenuConfig) != null && m.hidden ? null : /* @__PURE__ */ u(
12034
11997
  ny,
12035
11998
  {
12036
11999
  disabled: t,
@@ -12038,7 +12001,7 @@ function U2({ editor: e, disabled: t, bubbleMenu: r }) {
12038
12001
  },
12039
12002
  "content"
12040
12003
  ),
12041
- (m = r == null ? void 0 : r.textConfig) != null && m.hidden ? null : /* @__PURE__ */ u(
12004
+ (v = r == null ? void 0 : r.textConfig) != null && v.hidden ? null : /* @__PURE__ */ u(
12042
12005
  ay,
12043
12006
  {
12044
12007
  disabled: t,
@@ -12202,7 +12165,7 @@ function W2(e) {
12202
12165
  }
12203
12166
  function G2({ setColor: e }) {
12204
12167
  const [t, r] = J("#000000"), [n, i] = J(!1), { t: o } = Se();
12205
- return he(() => () => {
12168
+ return me(() => () => {
12206
12169
  i(!1);
12207
12170
  }, []), /* @__PURE__ */ R(Or, { open: n, children: [
12208
12171
  /* @__PURE__ */ u(Pr, { asChild: !0, children: /* @__PURE__ */ R(
@@ -12228,7 +12191,7 @@ function G2({ setColor: e }) {
12228
12191
  }
12229
12192
  ),
12230
12193
  /* @__PURE__ */ u(
12231
- Ne,
12194
+ ke,
12232
12195
  {
12233
12196
  className: "richtext-mt-[8px] richtext-w-full",
12234
12197
  type: "text",
@@ -12241,7 +12204,7 @@ function G2({ setColor: e }) {
12241
12204
  ] }),
12242
12205
  /* @__PURE__ */ u(Ge, { className: "richtext-my-[10px]" }),
12243
12206
  /* @__PURE__ */ u(
12244
- Ce,
12207
+ Te,
12245
12208
  {
12246
12209
  className: "richtext-w-full",
12247
12210
  onClick: (a) => {
@@ -12275,14 +12238,14 @@ function V2({ editor: e, disabled: t, toolbar: r }) {
12275
12238
  t: n
12276
12239
  });
12277
12240
  if (Array.isArray(g)) {
12278
- const y = g.map((w, C) => ({
12241
+ const x = g.map((w, C) => ({
12279
12242
  button: w,
12280
12243
  divider: C === g.length - 1 ? p : !1,
12281
12244
  spacer: C === 0 ? m : !1,
12282
12245
  type: d.type,
12283
12246
  name: d.name
12284
12247
  }));
12285
- f = [...f, ...y];
12248
+ f = [...f, ...x];
12286
12249
  continue;
12287
12250
  }
12288
12251
  f.push({
@@ -12501,12 +12464,12 @@ div[data-tippy-root] {
12501
12464
  value: a.detail
12502
12465
  });
12503
12466
  };
12504
- return he(() => {
12467
+ return me(() => {
12505
12468
  const a = Pn(It.EDIT(t), i), s = Pn(It.UPDATE_THEME(t), o);
12506
12469
  return () => {
12507
12470
  a(), s();
12508
12471
  };
12509
- }, []), /* @__PURE__ */ u(pe, { children: e });
12472
+ }, []), /* @__PURE__ */ u(ge, { children: e });
12510
12473
  });
12511
12474
  function Z2({ children: e, id: t }) {
12512
12475
  return /* @__PURE__ */ u(gx, { children: /* @__PURE__ */ u(vx, { children: /* @__PURE__ */ u(J2, { id: t, children: e }) }) });
@@ -12614,11 +12577,11 @@ function aw(e, t) {
12614
12577
  });
12615
12578
  Ef(t, () => ({
12616
12579
  editor: c
12617
- })), he(() => {
12580
+ })), me(() => {
12618
12581
  document.documentElement.classList.toggle("dark", e.dark), Q2.setTheme(o, e.dark ? "dark" : "light");
12619
- }, [e.dark]), he(() => {
12582
+ }, [e.dark]), me(() => {
12620
12583
  c == null || c.setEditable(!(e != null && e.disabled)), Mb.setDisable(o, !(e != null && e.disabled));
12621
- }, [c, e == null ? void 0 : e.disabled]), he(() => ((e == null ? void 0 : e.resetCSS) !== !1 && ow(Y2, "react-tiptap-reset"), () => {
12584
+ }, [c, e == null ? void 0 : e.disabled]), me(() => ((e == null ? void 0 : e.resetCSS) !== !1 && ow(Y2, "react-tiptap-reset"), () => {
12622
12585
  nw("react-tiptap-reset");
12623
12586
  }), [e == null ? void 0 : e.resetCSS]);
12624
12587
  function l(d, h) {
@@ -12626,7 +12589,7 @@ function aw(e, t) {
12626
12589
  }
12627
12590
  Rf(() => {
12628
12591
  c && (c.id = o);
12629
- }, [o, c]), he(() => () => {
12592
+ }, [o, c]), me(() => () => {
12630
12593
  var d;
12631
12594
  (d = c == null ? void 0 : c.destroy) == null || d.call(c);
12632
12595
  }, []);
@@ -12678,13 +12641,13 @@ function aw(e, t) {
12678
12641
  }
12679
12642
  ),
12680
12643
  /* @__PURE__ */ u(X2, {})
12681
- ] }) : /* @__PURE__ */ u(pe, {});
12644
+ ] }) : /* @__PURE__ */ u(ge, {});
12682
12645
  }
12683
12646
  const Nw = Cf(aw);
12684
12647
  export {
12685
12648
  Aw as $,
12686
12649
  F as A,
12687
- Ce as B,
12650
+ Te as B,
12688
12651
  W2 as C,
12689
12652
  Yx as D,
12690
12653
  It as E,
@@ -12732,18 +12695,18 @@ export {
12732
12695
  Ht as ai,
12733
12696
  is as b,
12734
12697
  Sw as c,
12735
- ee as d,
12698
+ Q as d,
12736
12699
  Jx as e,
12737
12700
  Ed as f,
12738
12701
  Bv as g,
12739
12702
  Zx as h,
12740
12703
  od as i,
12741
12704
  Iw as j,
12742
- ve as k,
12705
+ ye as k,
12743
12706
  Pn as l,
12744
12707
  Pr as m,
12745
12708
  Kt as n,
12746
- Ne as o,
12709
+ ke as o,
12747
12710
  z2 as p,
12748
12711
  es as q,
12749
12712
  $d as r,