reactjs-tiptap-editor 1.0.8 → 1.0.10

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 (160) hide show
  1. package/lib/{ActionMenuButton-t7e5GCJp.cjs → ActionMenuButton-BPdRqzDX.cjs} +1 -1
  2. package/lib/{ActionMenuButton-Cc0vy5hy.js → ActionMenuButton-CKTxYtl7.js} +2 -2
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.js +7 -7
  5. package/lib/Blockquote.cjs +1 -1
  6. package/lib/Blockquote.js +3 -3
  7. package/lib/Bold.cjs +1 -1
  8. package/lib/Bold.js +6 -6
  9. package/lib/BulletList.cjs +1 -1
  10. package/lib/BulletList.js +3 -3
  11. package/lib/Clear.cjs +1 -1
  12. package/lib/Clear.js +3 -3
  13. package/lib/Code.cjs +1 -1
  14. package/lib/Code.js +6 -6
  15. package/lib/CodeBlock.cjs +1 -1
  16. package/lib/CodeBlock.js +4 -4
  17. package/lib/CodeView.cjs +1 -1
  18. package/lib/CodeView.js +3 -3
  19. package/lib/Color.cjs +1 -1
  20. package/lib/Color.js +5 -5
  21. package/lib/Column.cjs +1 -1
  22. package/lib/Column.js +8 -8
  23. package/lib/{Drawer-C6WTtcd0.js → Drawer-Cfx115up.js} +6 -6
  24. package/lib/{Drawer-DRdsK4f_.cjs → Drawer-hHj4Opkg.cjs} +1 -1
  25. package/lib/Drawer.cjs +1 -1
  26. package/lib/Drawer.js +3 -3
  27. package/lib/Emoji.cjs +1 -1
  28. package/lib/Emoji.js +10 -9
  29. package/lib/{Excalidraw-gJ99kWdS.cjs → Excalidraw-8pWJ17Ye.cjs} +1 -1
  30. package/lib/{Excalidraw-DjO5sCC_.js → Excalidraw-CO93Tsmb.js} +7 -7
  31. package/lib/Excalidraw.cjs +1 -1
  32. package/lib/Excalidraw.js +2 -2
  33. package/lib/ExportPdf.cjs +2 -2
  34. package/lib/ExportPdf.js +26 -26
  35. package/lib/ExportWord.cjs +1 -1
  36. package/lib/ExportWord.js +3 -3
  37. package/lib/FontFamily.cjs +1 -1
  38. package/lib/FontFamily.js +5 -5
  39. package/lib/FontSize.cjs +1 -1
  40. package/lib/FontSize.js +5 -5
  41. package/lib/Heading.cjs +1 -1
  42. package/lib/Heading.js +5 -5
  43. package/lib/Highlight.cjs +1 -1
  44. package/lib/Highlight.js +5 -5
  45. package/lib/History.cjs +1 -1
  46. package/lib/History.js +4 -4
  47. package/lib/HorizontalRule.cjs +1 -1
  48. package/lib/HorizontalRule.js +3 -3
  49. package/lib/{Icon-prdLEHMN.js → Icon-D7GJZzoa.js} +1 -1
  50. package/lib/{Icon-DHNSWrSX.cjs → Icon-gtc3g-VK.cjs} +1 -1
  51. package/lib/{Iframe-CvymVtpM.cjs → Iframe-BmXO2c65.cjs} +1 -1
  52. package/lib/{Iframe-CERKUXQh.js → Iframe-DwhclppJ.js} +8 -8
  53. package/lib/Iframe.cjs +1 -1
  54. package/lib/Iframe.js +2 -2
  55. package/lib/Image.cjs +1 -1
  56. package/lib/Image.js +13 -13
  57. package/lib/ImageGif.cjs +1 -1
  58. package/lib/ImageGif.js +14 -14
  59. package/lib/ImportWord.cjs +1 -1
  60. package/lib/ImportWord.js +3 -3
  61. package/lib/{Indent-BfEOOT5B.js → Indent-BOsymiZ7.js} +5 -5
  62. package/lib/{Indent-CE6kk62r.cjs → Indent-DPkMWfcv.cjs} +1 -1
  63. package/lib/Indent.cjs +1 -1
  64. package/lib/Indent.js +2 -2
  65. package/lib/Italic.cjs +1 -1
  66. package/lib/Italic.js +3 -3
  67. package/lib/Katex-B1XbT8-X.cjs +4 -0
  68. package/lib/{Katex-5KNTSK8T.js → Katex-BYK-b9X2.js} +974 -941
  69. package/lib/Katex.cjs +1 -1
  70. package/lib/Katex.js +2 -2
  71. package/lib/LineHeight.cjs +1 -1
  72. package/lib/LineHeight.js +5 -5
  73. package/lib/Link.cjs +1 -1
  74. package/lib/Link.js +2 -2
  75. package/lib/{LinkEditBlock-D6z0Yohc.cjs → LinkEditBlock-4-iRXH7m.cjs} +1 -1
  76. package/lib/{LinkEditBlock-CFkyS2Ze.js → LinkEditBlock-DgrLUMsJ.js} +32 -32
  77. package/lib/Mention.cjs +1 -1
  78. package/lib/Mention.js +23 -22
  79. package/lib/Mermaid.cjs +1 -1
  80. package/lib/Mermaid.js +26 -26
  81. package/lib/MoreMark.cjs +1 -1
  82. package/lib/MoreMark.js +5 -5
  83. package/lib/OrderedList.cjs +1 -1
  84. package/lib/OrderedList.js +3 -3
  85. package/lib/SearchAndReplace.cjs +1 -1
  86. package/lib/SearchAndReplace.js +9 -9
  87. package/lib/SlashCommand.cjs +1 -1
  88. package/lib/SlashCommand.js +39 -266
  89. package/lib/SlashCommandNodeView-BpNNU7Sm.js +254 -0
  90. package/lib/SlashCommandNodeView-CQvMTXys.cjs +1 -0
  91. package/lib/Strike.cjs +1 -1
  92. package/lib/Strike.js +3 -3
  93. package/lib/{Table-CWbY_hqo.js → Table-CT9R9Sdq.js} +5 -5
  94. package/lib/{Table-D9pRzwFU.cjs → Table-LnWGm2m8.cjs} +1 -1
  95. package/lib/Table.cjs +1 -1
  96. package/lib/Table.js +1 -1
  97. package/lib/TaskList.cjs +1 -1
  98. package/lib/TaskList.js +3 -3
  99. package/lib/TextAlign.cjs +1 -1
  100. package/lib/TextAlign.js +5 -5
  101. package/lib/TextDirection.cjs +1 -1
  102. package/lib/TextDirection.js +5 -5
  103. package/lib/TextUnderline.cjs +1 -1
  104. package/lib/TextUnderline.js +3 -3
  105. package/lib/{Twitter-D7NK3MZe.cjs → Twitter-Bo4JkBTL.cjs} +1 -1
  106. package/lib/{Twitter-BV7HA-MO.js → Twitter-mowilxRd.js} +46 -46
  107. package/lib/Twitter.cjs +1 -1
  108. package/lib/Twitter.js +2 -2
  109. package/lib/Video.cjs +1 -1
  110. package/lib/Video.js +7 -7
  111. package/lib/bubble.cjs +4 -4
  112. package/lib/bubble.js +2045 -1931
  113. package/lib/{button-0963_Pa8.js → button-CBO-WDXK.js} +1 -1
  114. package/lib/{button-Bxfjx9_Y.cjs → button-wt49IYwP.cjs} +1 -1
  115. package/lib/{checkbox-D4p6-UMt.js → checkbox-D1h32VWM.js} +1 -1
  116. package/lib/{checkbox-Q6FcMQW5.cjs → checkbox-DUcLSGZD.cjs} +1 -1
  117. package/lib/{dialog-B-9_Z5j2.js → dialog-DSvgtlDI.js} +1 -1
  118. package/lib/{dialog-D-oYxagG.cjs → dialog-DY868Uji.cjs} +1 -1
  119. package/lib/{dropdown-menu-par18QL5.js → dropdown-menu-B88Qn2KR.js} +3 -2
  120. package/lib/dropdown-menu-BripAeGB.cjs +1 -0
  121. package/lib/extensions/Katex/Katex.d.ts +1 -1
  122. package/lib/extensions/SlashCommand/types.d.ts +1 -0
  123. package/lib/index-9A6-kVBM.js +1351 -0
  124. package/lib/{index-pgx8gyoC.js → index-BIqaogQg.js} +201 -199
  125. package/lib/{index-BFXkgG1P.cjs → index-BvIJKpX1.cjs} +2 -1
  126. package/lib/index-Cv9Z6dyV.cjs +1 -0
  127. package/lib/{index-EKFybgpP.js → index-DKt5wfAc.js} +1 -1
  128. package/lib/{index-BimeTI7q.js → index-DRHrDScg.js} +1 -1
  129. package/lib/{index-BQ6ZdLsu.js → index-DmPwbBqm.js} +1 -1
  130. package/lib/{index-CbIQPoF6.js → index-sVScpCFG.js} +20 -20
  131. package/lib/index.cjs +1 -1
  132. package/lib/index.js +5 -5
  133. package/lib/{input-CZUkD6wF.cjs → input-BeD5GdMv.cjs} +1 -1
  134. package/lib/{input-cclJoUeC.js → input-Bx4uo4gO.js} +1 -1
  135. package/lib/{isNumber-8HKEgTkA.js → isNumber-DF0fU3ob.js} +1 -1
  136. package/lib/{label-CFaBdRGz.cjs → label--161UPH6.cjs} +1 -1
  137. package/lib/{label-aveW7pdK.js → label-uKG7RzFU.js} +1 -1
  138. package/lib/{popover-D5YZPv2r.js → popover-BVX8otO9.js} +1 -1
  139. package/lib/{popover-BWYZO_fD.cjs → popover-Csk538NC.cjs} +1 -1
  140. package/lib/{separator-B978cwAm.cjs → separator-DLRVddHS.cjs} +1 -1
  141. package/lib/{separator-BHjFVmZr.js → separator-DtrEdjAF.js} +4 -4
  142. package/lib/{store-BsBiawfz.cjs → store-B8IkVz1J.cjs} +1 -1
  143. package/lib/{store-BsMMRKFd.js → store-CsIFDUKR.js} +1 -1
  144. package/lib/style.css +1 -1
  145. package/lib/{tabs-Bj8EvAkY.js → tabs-BKpr0QQB.js} +1 -1
  146. package/lib/{tabs-CUMyiV80.cjs → tabs-DOasUMDU.cjs} +1 -1
  147. package/lib/{textarea-CClyW-74.js → textarea-Ba9OOzba.js} +1 -1
  148. package/lib/{textarea-BKb7LDw1.cjs → textarea-D9egO4qC.cjs} +1 -1
  149. package/lib/{throttle-BIkZV3Y_.js → throttle-DsowOft0.js} +1 -1
  150. package/lib/updatePosition-Bbd8ETMv.js +16 -0
  151. package/lib/updatePosition-M2IyqkI1.cjs +1 -0
  152. package/lib/{useButtonProps-StwAz7Ha.js → useButtonProps-C_bqxmHi.js} +14 -14
  153. package/lib/{useButtonProps-B0riSJs9.cjs → useButtonProps-DEtmDVPr.cjs} +1 -1
  154. package/package.json +1 -1
  155. package/lib/Katex-CJ2Fmvut.cjs +0 -4
  156. package/lib/dropdown-menu-r8XibZQU.cjs +0 -1
  157. package/lib/floating-ui.dom-U1vPFQ5f.js +0 -1151
  158. package/lib/floating-ui.dom-VCrc58uF.cjs +0 -1
  159. package/lib/updatePosition-GLTrgcib.js +0 -215
  160. package/lib/updatePosition-u2mTh3mG.cjs +0 -1
@@ -8,18 +8,18 @@ import { l as W, E as O } from "./events.constant-wrlJ_7JZ.js";
8
8
  import * as Me from "@radix-ui/react-toggle";
9
9
  import * as $ from "@radix-ui/react-tooltip";
10
10
  import * as v from "@radix-ui/react-select";
11
- import { ExternalLink as Ye, X as Ze, Loader2 as et, WrapText as tt, PencilRuler as rt, FlipHorizontal as ot, FlipVertical as nt, CropIcon as it, ChevronUp as Le, Paperclip as st, Eye as ct, Settings as at, ZoomOut as lt, ZoomIn as dt, BookMarked as ut, Sigma as ht, SmilePlusIcon as mt, Replace as xe, SmilePlus as pt, Frame as gt, Columns2 as be, PanelRight as ft, PanelLeft as xt, Clipboard as bt, Copy as wt, GripVertical as vt, Plus as yt, Columns4 as Ct, Columns3 as St, Heading6 as zt, Heading5 as kt, Heading4 as Mt, Heading3 as Lt, Heading2 as Et, Heading1 as Nt, ChevronsUpDown as At, Trash as Rt, Trash2 as Tt, TableCellsSplit as Vt, TableCellsMerge as It, BetweenVerticalEnd as Ht, BetweenVerticalStart as Pt, BetweenHorizonalStart as jt, BetweenHorizonalEnd as Bt, Unlink as Gt, Pencil as Wt, Sparkles as Ot, Table as $t, Minimize as _t, Maximize as Ut, Video as Ft, ImageUp as Dt, Link as Xt, ListTodo as qt, ListOrdered as Jt, List as Kt, IndentDecrease as Qt, IndentIncrease as Yt, Type as Zt, CodeXml as er, Code as tr, Superscript as rr, Subscript as or, ChevronDown as ie, Undo2 as nr, Redo2 as ir, PaintRoller as sr, Eraser as cr, Minus as ar, Strikethrough as lr, Quote as dr, Underline as ur, Italic as hr, LoaderCircle as mr, Bold as pr, Check as gr } from "lucide-react";
12
- import { TextAlignRightIcon as fr, TextAlignLeftIcon as xr, TextAlignJustifyIcon as br, TextAlignCenterIcon as wr } from "@radix-ui/react-icons";
13
- import { C as Ee } from "./index-CbIQPoF6.js";
14
- const se = "-", vr = (e) => {
15
- const r = Cr(e), {
11
+ import { ExternalLink as Ye, X as Ze, Loader2 as et, WrapText as tt, PencilRuler as rt, FlipHorizontal as ot, FlipVertical as nt, CropIcon as it, ChevronUp as Le, Paperclip as st, Eye as ct, Settings as at, ZoomOut as lt, ZoomIn as dt, BookMarked as ut, Sigma as ht, SmilePlusIcon as mt, Replace as xe, SmilePlus as pt, Frame as gt, Columns2 as be, PanelRight as ft, PanelLeft as xt, Clipboard as bt, Copy as wt, GripVertical as vt, Plus as yt, Columns4 as Ct, Columns3 as St, Heading6 as zt, Heading5 as kt, Heading4 as Mt, Heading3 as Lt, Heading2 as Et, Heading1 as Nt, Pilcrow as At, ChevronsUpDown as Rt, Trash as Tt, Trash2 as Vt, TableCellsSplit as It, TableCellsMerge as Ht, BetweenVerticalEnd as Pt, BetweenVerticalStart as jt, BetweenHorizonalStart as Bt, BetweenHorizonalEnd as Gt, Unlink as Wt, Pencil as Ot, Sparkles as $t, Table as _t, Minimize as Ut, Maximize as Ft, Video as Dt, ImageUp as Xt, Link as qt, ListTodo as Jt, ListOrdered as Kt, List as Qt, IndentDecrease as Yt, IndentIncrease as Zt, Type as er, CodeXml as tr, Code as rr, Superscript as or, Subscript as nr, ChevronDown as ie, Undo2 as ir, Redo2 as sr, PaintRoller as cr, Eraser as ar, Minus as lr, Strikethrough as dr, Quote as ur, Underline as hr, Italic as mr, LoaderCircle as pr, Bold as gr, Check as fr } from "lucide-react";
12
+ import { TextAlignRightIcon as xr, TextAlignLeftIcon as br, TextAlignJustifyIcon as wr, TextAlignCenterIcon as vr } from "@radix-ui/react-icons";
13
+ import { C as Ee } from "./index-sVScpCFG.js";
14
+ const se = "-", yr = (e) => {
15
+ const r = Sr(e), {
16
16
  conflictingClassGroups: t,
17
17
  conflictingClassGroupModifiers: o
18
18
  } = e;
19
19
  return {
20
20
  getClassGroupId: (a) => {
21
21
  const c = a.split(se);
22
- return c[0] === "" && c.length !== 1 && c.shift(), Ne(c, r) || yr(a);
22
+ return c[0] === "" && c.length !== 1 && c.shift(), Ne(c, r) || Cr(a);
23
23
  },
24
24
  getConflictingClassGroupIds: (a, c) => {
25
25
  const u = t[a] || [];
@@ -39,13 +39,13 @@ const se = "-", vr = (e) => {
39
39
  return (a = r.validators.find(({
40
40
  validator: c
41
41
  }) => c(n))) == null ? void 0 : a.classGroupId;
42
- }, we = /^\[(.+)\]$/, yr = (e) => {
42
+ }, we = /^\[(.+)\]$/, Cr = (e) => {
43
43
  if (we.test(e)) {
44
44
  const r = we.exec(e)[1], t = r == null ? void 0 : r.substring(0, r.indexOf(":"));
45
45
  if (t)
46
46
  return "arbitrary.." + t;
47
47
  }
48
- }, Cr = (e) => {
48
+ }, Sr = (e) => {
49
49
  const {
50
50
  theme: r,
51
51
  prefix: t
@@ -53,7 +53,7 @@ const se = "-", vr = (e) => {
53
53
  nextPart: /* @__PURE__ */ new Map(),
54
54
  validators: []
55
55
  };
56
- return zr(Object.entries(e.classGroups), t).forEach(([n, a]) => {
56
+ return kr(Object.entries(e.classGroups), t).forEach(([n, a]) => {
57
57
  re(a, o, n, r);
58
58
  }), o;
59
59
  }, re = (e, r, t, o) => {
@@ -64,7 +64,7 @@ const se = "-", vr = (e) => {
64
64
  return;
65
65
  }
66
66
  if (typeof s == "function") {
67
- if (Sr(s)) {
67
+ if (zr(s)) {
68
68
  re(s(o), r, t, o);
69
69
  return;
70
70
  }
@@ -86,10 +86,10 @@ const se = "-", vr = (e) => {
86
86
  validators: []
87
87
  }), t = t.nextPart.get(o);
88
88
  }), t;
89
- }, Sr = (e) => e.isThemeGetter, zr = (e, r) => r ? e.map(([t, o]) => {
89
+ }, zr = (e) => e.isThemeGetter, kr = (e, r) => r ? e.map(([t, o]) => {
90
90
  const s = o.map((n) => typeof n == "string" ? r + n : typeof n == "object" ? Object.fromEntries(Object.entries(n).map(([a, c]) => [r + a, c])) : n);
91
91
  return [t, s];
92
- }) : e, kr = (e) => {
92
+ }) : e, Mr = (e) => {
93
93
  if (e < 1)
94
94
  return {
95
95
  get: () => {
@@ -113,7 +113,7 @@ const se = "-", vr = (e) => {
113
113
  t.has(n) ? t.set(n, a) : s(n, a);
114
114
  }
115
115
  };
116
- }, Ae = "!", Mr = (e) => {
116
+ }, Ae = "!", Lr = (e) => {
117
117
  const {
118
118
  separator: r,
119
119
  experimentalParseClassName: t
@@ -146,7 +146,7 @@ const se = "-", vr = (e) => {
146
146
  className: c,
147
147
  parseClassName: a
148
148
  }) : a;
149
- }, Lr = (e) => {
149
+ }, Er = (e) => {
150
150
  if (e.length <= 1)
151
151
  return e;
152
152
  const r = [];
@@ -154,16 +154,16 @@ const se = "-", vr = (e) => {
154
154
  return e.forEach((o) => {
155
155
  o[0] === "[" ? (r.push(...t.sort(), o), t = []) : t.push(o);
156
156
  }), r.push(...t.sort()), r;
157
- }, Er = (e) => ({
158
- cache: kr(e.cacheSize),
159
- parseClassName: Mr(e),
160
- ...vr(e)
161
- }), Nr = /\s+/, Ar = (e, r) => {
157
+ }, Nr = (e) => ({
158
+ cache: Mr(e.cacheSize),
159
+ parseClassName: Lr(e),
160
+ ...yr(e)
161
+ }), Ar = /\s+/, Rr = (e, r) => {
162
162
  const {
163
163
  parseClassName: t,
164
164
  getClassGroupId: o,
165
165
  getConflictingClassGroupIds: s
166
- } = r, n = [], a = e.trim().split(Nr);
166
+ } = r, n = [], a = e.trim().split(Ar);
167
167
  let c = "";
168
168
  for (let u = a.length - 1; u >= 0; u -= 1) {
169
169
  const d = a[u], {
@@ -184,7 +184,7 @@ const se = "-", vr = (e) => {
184
184
  }
185
185
  C = !1;
186
186
  }
187
- const g = Lr(m).join(":"), y = p ? g + Ae : g, S = y + b;
187
+ const g = Er(m).join(":"), y = p ? g + Ae : g, S = y + b;
188
188
  if (n.includes(S))
189
189
  continue;
190
190
  n.push(S);
@@ -197,7 +197,7 @@ const se = "-", vr = (e) => {
197
197
  }
198
198
  return c;
199
199
  };
200
- function Rr() {
200
+ function Tr() {
201
201
  let e = 0, r, t, o = "";
202
202
  for (; e < arguments.length; )
203
203
  (r = arguments[e++]) && (t = Re(r)) && (o && (o += " "), o += t);
@@ -211,35 +211,35 @@ const Re = (e) => {
211
211
  e[o] && (r = Re(e[o])) && (t && (t += " "), t += r);
212
212
  return t;
213
213
  };
214
- function Tr(e, ...r) {
214
+ function Vr(e, ...r) {
215
215
  let t, o, s, n = a;
216
216
  function a(u) {
217
217
  const d = r.reduce((m, p) => p(m), e());
218
- return t = Er(d), o = t.cache.get, s = t.cache.set, n = c, c(u);
218
+ return t = Nr(d), o = t.cache.get, s = t.cache.set, n = c, c(u);
219
219
  }
220
220
  function c(u) {
221
221
  const d = o(u);
222
222
  if (d)
223
223
  return d;
224
- const m = Ar(u, t);
224
+ const m = Rr(u, t);
225
225
  return s(u, m), m;
226
226
  }
227
227
  return function() {
228
- return n(Rr.apply(null, arguments));
228
+ return n(Tr.apply(null, arguments));
229
229
  };
230
230
  }
231
231
  const x = (e) => {
232
232
  const r = (t) => t[e] || [];
233
233
  return r.isThemeGetter = !0, r;
234
- }, Te = /^\[(?:([a-z-]+):)?(.+)\]$/i, Vr = /^\d+\/\d+$/, Ir = /* @__PURE__ */ new Set(["px", "full", "screen"]), Hr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Pr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, jr = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Br = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Gr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, L = (e) => I(e) || Ir.has(e) || Vr.test(e), A = (e) => H(e, "length", Xr), I = (e) => !!e && !Number.isNaN(Number(e)), K = (e) => H(e, "number", I), B = (e) => !!e && Number.isInteger(Number(e)), Wr = (e) => e.endsWith("%") && I(e.slice(0, -1)), h = (e) => Te.test(e), R = (e) => Hr.test(e), Or = /* @__PURE__ */ new Set(["length", "size", "percentage"]), $r = (e) => H(e, Or, Ve), _r = (e) => H(e, "position", Ve), Ur = /* @__PURE__ */ new Set(["image", "url"]), Fr = (e) => H(e, Ur, Jr), Dr = (e) => H(e, "", qr), G = () => !0, H = (e, r, t) => {
234
+ }, Te = /^\[(?:([a-z-]+):)?(.+)\]$/i, Ir = /^\d+\/\d+$/, Hr = /* @__PURE__ */ new Set(["px", "full", "screen"]), Pr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, jr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Br = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Gr = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Wr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, L = (e) => I(e) || Hr.has(e) || Ir.test(e), A = (e) => H(e, "length", qr), I = (e) => !!e && !Number.isNaN(Number(e)), K = (e) => H(e, "number", I), B = (e) => !!e && Number.isInteger(Number(e)), Or = (e) => e.endsWith("%") && I(e.slice(0, -1)), h = (e) => Te.test(e), R = (e) => Pr.test(e), $r = /* @__PURE__ */ new Set(["length", "size", "percentage"]), _r = (e) => H(e, $r, Ve), Ur = (e) => H(e, "position", Ve), Fr = /* @__PURE__ */ new Set(["image", "url"]), Dr = (e) => H(e, Fr, Kr), Xr = (e) => H(e, "", Jr), G = () => !0, H = (e, r, t) => {
235
235
  const o = Te.exec(e);
236
236
  return o ? o[1] ? typeof r == "string" ? o[1] === r : r.has(o[1]) : t(o[2]) : !1;
237
- }, Xr = (e) => (
237
+ }, qr = (e) => (
238
238
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
239
239
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
240
240
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
241
- Pr.test(e) && !jr.test(e)
242
- ), Ve = () => !1, qr = (e) => Br.test(e), Jr = (e) => Gr.test(e), Kr = () => {
241
+ jr.test(e) && !Br.test(e)
242
+ ), Ve = () => !1, Jr = (e) => Gr.test(e), Kr = (e) => Wr.test(e), Qr = () => {
243
243
  const e = x("colors"), r = x("spacing"), t = x("blur"), o = x("brightness"), s = x("borderColor"), n = x("borderRadius"), a = x("borderSpacing"), c = x("borderWidth"), u = x("contrast"), d = x("grayscale"), m = x("hueRotate"), p = x("invert"), l = x("gap"), f = x("gradientColorStops"), C = x("gradientColorStopPositions"), b = x("inset"), g = x("margin"), y = x("opacity"), S = x("padding"), P = x("saturate"), V = x("scale"), _ = x("sepia"), le = x("skew"), de = x("space"), ue = x("translate"), D = () => ["auto", "contain", "none"], X = () => ["auto", "hidden", "clip", "visible", "scroll"], q = () => ["auto", h, r], w = () => [h, r], he = () => ["", L, A], U = () => ["auto", I, h], me = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], F = () => ["solid", "dashed", "dotted", "double", "none"], pe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], j = () => ["", "0", h], ge = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], M = () => [I, h];
244
244
  return {
245
245
  cacheSize: 500,
@@ -259,7 +259,7 @@ const x = (e) => {
259
259
  invert: j(),
260
260
  gap: w(),
261
261
  gradientColorStops: [e],
262
- gradientColorStopPositions: [Wr, A],
262
+ gradientColorStopPositions: [Or, A],
263
263
  inset: q(),
264
264
  margin: q(),
265
265
  opacity: M(),
@@ -1172,7 +1172,7 @@ const x = (e) => {
1172
1172
  * @see https://tailwindcss.com/docs/background-position
1173
1173
  */
1174
1174
  "bg-position": [{
1175
- bg: [...me(), _r]
1175
+ bg: [...me(), Ur]
1176
1176
  }],
1177
1177
  /**
1178
1178
  * Background Repeat
@@ -1188,7 +1188,7 @@ const x = (e) => {
1188
1188
  * @see https://tailwindcss.com/docs/background-size
1189
1189
  */
1190
1190
  "bg-size": [{
1191
- bg: ["auto", "cover", "contain", $r]
1191
+ bg: ["auto", "cover", "contain", _r]
1192
1192
  }],
1193
1193
  /**
1194
1194
  * Background Image
@@ -1197,7 +1197,7 @@ const x = (e) => {
1197
1197
  "bg-image": [{
1198
1198
  bg: ["none", {
1199
1199
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
1200
- }, Fr]
1200
+ }, Dr]
1201
1201
  }],
1202
1202
  /**
1203
1203
  * Background Color
@@ -1613,7 +1613,7 @@ const x = (e) => {
1613
1613
  * @see https://tailwindcss.com/docs/box-shadow
1614
1614
  */
1615
1615
  shadow: [{
1616
- shadow: ["", "inner", "none", R, Dr]
1616
+ shadow: ["", "inner", "none", R, Xr]
1617
1617
  }],
1618
1618
  /**
1619
1619
  * Box Shadow Color
@@ -2268,21 +2268,21 @@ const x = (e) => {
2268
2268
  "font-size": ["leading"]
2269
2269
  }
2270
2270
  };
2271
- }, Qr = /* @__PURE__ */ Tr(Kr);
2271
+ }, Yr = /* @__PURE__ */ Vr(Qr);
2272
2272
  function k(...e) {
2273
- return Qr(Ee(e));
2273
+ return Yr(Ee(e));
2274
2274
  }
2275
2275
  let Q;
2276
2276
  function Y() {
2277
2277
  return Q === void 0 && (Q = navigator.platform.includes("Mac")), Q;
2278
2278
  }
2279
- function Yr(e) {
2279
+ function Zr(e) {
2280
2280
  return `${e}`.toLowerCase() === "mod" ? Y() ? "⌘" : "Ctrl" : `${e}`.toLowerCase() === "alt" ? Y() ? "⌥" : "Alt" : `${e}`.toLowerCase() === "shift" ? Y() ? "⇧" : "Shift" : e;
2281
2281
  }
2282
- function Zr(e) {
2283
- return e.map(Yr).join(" ");
2282
+ function eo(e) {
2283
+ return e.map(Zr).join(" ");
2284
2284
  }
2285
- const en = _e.forwardRef(
2285
+ const tn = _e.forwardRef(
2286
2286
  (e, r) => {
2287
2287
  const {
2288
2288
  icon: t = void 0,
@@ -2302,9 +2302,9 @@ const en = _e.forwardRef(
2302
2302
  initialDisplayedColor: C = void 0,
2303
2303
  dataState: b = !1,
2304
2304
  ...g
2305
- } = e, y = ko[t];
2306
- return /* @__PURE__ */ z(Eo, { children: [
2307
- /* @__PURE__ */ i(No, { asChild: !0, children: /* @__PURE__ */ z(
2305
+ } = e, y = Mo[t];
2306
+ return /* @__PURE__ */ z(No, { children: [
2307
+ /* @__PURE__ */ i(Ao, { asChild: !0, children: /* @__PURE__ */ z(
2308
2308
  l ? Je : Ie,
2309
2309
  {
2310
2310
  className: k("richtext-w-[32px] richtext-h-[32px]", n),
@@ -2327,7 +2327,7 @@ const en = _e.forwardRef(
2327
2327
  className: "richtext-tooltip",
2328
2328
  children: /* @__PURE__ */ z("div", { className: "richtext-flex richtext-max-w-24 richtext-flex-col richtext-items-center richtext-text-center", children: [
2329
2329
  /* @__PURE__ */ i("div", { children: o }),
2330
- !!(c != null && c.length) && /* @__PURE__ */ i("span", { children: Zr(c) })
2330
+ !!(c != null && c.length) && /* @__PURE__ */ i("span", { children: eo(c) })
2331
2331
  ] })
2332
2332
  }
2333
2333
  )
@@ -2420,7 +2420,7 @@ function ee(e, r, t = {}) {
2420
2420
  );
2421
2421
  return ye("storage", p), ye("local-storage", p), [c, d, m];
2422
2422
  }
2423
- function eo(e) {
2423
+ function to(e) {
2424
2424
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ i(
2425
2425
  "path",
2426
2426
  {
@@ -2429,7 +2429,7 @@ function eo(e) {
2429
2429
  }
2430
2430
  ) });
2431
2431
  }
2432
- function to(e) {
2432
+ function ro(e) {
2433
2433
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ i(
2434
2434
  "path",
2435
2435
  {
@@ -2442,7 +2442,7 @@ function to(e) {
2442
2442
  }
2443
2443
  ) });
2444
2444
  }
2445
- function ro() {
2445
+ function oo() {
2446
2446
  return /* @__PURE__ */ i(
2447
2447
  "svg",
2448
2448
  {
@@ -2469,7 +2469,7 @@ function ro() {
2469
2469
  }
2470
2470
  );
2471
2471
  }
2472
- function oo() {
2472
+ function no() {
2473
2473
  return /* @__PURE__ */ i(
2474
2474
  "svg",
2475
2475
  {
@@ -2496,7 +2496,7 @@ function oo() {
2496
2496
  }
2497
2497
  );
2498
2498
  }
2499
- function no(e) {
2499
+ function io(e) {
2500
2500
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ i(
2501
2501
  "path",
2502
2502
  {
@@ -2505,7 +2505,7 @@ function no(e) {
2505
2505
  }
2506
2506
  ) });
2507
2507
  }
2508
- function io(e) {
2508
+ function so(e) {
2509
2509
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ i(
2510
2510
  "path",
2511
2511
  {
@@ -2514,7 +2514,7 @@ function io(e) {
2514
2514
  }
2515
2515
  ) });
2516
2516
  }
2517
- function so(e) {
2517
+ function co(e) {
2518
2518
  return /* @__PURE__ */ i(
2519
2519
  "svg",
2520
2520
  {
@@ -2539,10 +2539,10 @@ function so(e) {
2539
2539
  }
2540
2540
  );
2541
2541
  }
2542
- function co(e) {
2542
+ function ao(e) {
2543
2543
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ i("path", { fill: "currentColor", d: "M9 7v10h6v-2h-4V7z" }) });
2544
2544
  }
2545
- function ao(e) {
2545
+ function lo(e) {
2546
2546
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ i(
2547
2547
  "path",
2548
2548
  {
@@ -2551,7 +2551,7 @@ function ao(e) {
2551
2551
  }
2552
2552
  ) });
2553
2553
  }
2554
- function lo(e) {
2554
+ function uo(e) {
2555
2555
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e, children: /* @__PURE__ */ i(
2556
2556
  "path",
2557
2557
  {
@@ -2560,7 +2560,7 @@ function lo(e) {
2560
2560
  }
2561
2561
  ) });
2562
2562
  }
2563
- function uo() {
2563
+ function ho() {
2564
2564
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i(
2565
2565
  "path",
2566
2566
  {
@@ -2569,25 +2569,25 @@ function uo() {
2569
2569
  }
2570
2570
  ) });
2571
2571
  }
2572
- function ho() {
2572
+ function mo() {
2573
2573
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M14 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1m-9 8h4m-2-2v4" }) });
2574
2574
  }
2575
- function mo() {
2575
+ function po() {
2576
2576
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1m9 8h4m-2-2v4" }) });
2577
2577
  }
2578
- function po() {
2578
+ function go() {
2579
2579
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M12 21v-4m0-4V9m0-4V3m-2 18h4M8 5v4h11l2-2l-2-2zm6 8v4H6l-2-2l2-2z" }) });
2580
2580
  }
2581
- function go() {
2581
+ function fo() {
2582
2582
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { fill: "currentColor", d: "M23.943 19.806a.2.2 0 0 0-.168-.034c-1.26-1.855-2.873-3.61-4.419-5.315l-.252-.284c-.001-.073-.067-.12-.134-.15l-.084-.084c-.05-.1-.169-.167-.286-.1c-.47.234-.907.585-1.327.919c-.554.434-1.109.87-1.63 1.354a5 5 0 0 0-.588.618c-.084.117-.017.217.084.267c-.37.368-.74.736-1.109 1.12a.2.2 0 0 0-.05.134c0 .05.033.1.067.117l.655.502v.016c.924.92 2.554 2.173 4.285 3.527c.251.201.52.402.773.602c.117.134.234.285.335.418c.05.066.169.084.236.033c.033.034.084.067.118.1a.24.24 0 0 0 .1.034a.15.15 0 0 0 .135-.066a.24.24 0 0 0 .033-.1c.017 0 .017.016.034.016a.2.2 0 0 0 .134-.05l3.058-3.327c.12-.116.014-.267 0-.267m-7.628-.134l-1.546-1.17l-.15-.1c-.035-.017-.068-.05-.102-.067l-.117-.1c.66-.66 1.33-1.308 2-1.956c-.488.484-1.463 1.906-1.261 2.373c.002 0 .018.042.067.084zm4.1 3.126l-1.277-.97a27 27 0 0 0-1.58-1.504c.69.518 1.277.97 1.361 1.053c.673.585.638.485 1.093.87l.554.4c-.074.103-.151.148-.151.151m.336.25l-.034-.016a1 1 0 0 0 .152-.117zM.588 3.476c.033.217.084.435.117.636c.201 1.103.403 2.106.772 2.858l.152.568c.05.217.134.485.219.552a67 67 0 0 0 3.578 2.942a.18.18 0 0 0 .219 0s0 .016.016.016a.15.15 0 0 0 .118.05a.2.2 0 0 0 .134-.05c1.798-1.989 3.142-3.627 4.1-4.998c.068-.066.084-.167.084-.25c.067-.067.118-.151.185-.201c.067-.067.067-.184 0-.235l-.017-.016c0-.033-.017-.084-.05-.1c-.42-.401-.722-.685-1.042-.986a94 94 0 0 1-2.352-2.273c-.017-.017-.034-.034-.067-.034c-.336-.117-1.025-.234-1.882-.385c-1.277-.216-3.008-.517-4.57-.986c0 0-.101 0-.118.017l-.05.05C.05.714.022.707 0 .718c.017.1.017.167.05.284c0 .033.068.301.068.334zm7.19 4.78l-.033.034a.036.036 0 0 1 .033-.034M6.553 2.238c.101.1.521.502.622.585c-.437-.2-1.529-.702-2.034-.869c.505.1 1.194.201 1.412.284M.79 1.403c.252.434.454 1.939.655 3.41c-.118-.469-.201-.936-.302-1.372C.992 2.673.84 1.988.638 1.386c.124 0 .152.021.152.017m-.286-.369c0-.016 0-.033-.017-.033c.085 0 .135.017.202.05c0 .006-.145-.017-.185-.017m23.17-.217c.017-.066-.336-.367-.219-.384c.253-.017.253-.401 0-.401c-.335.017-.688.1-1.008.15c-.587.117-1.192.234-1.78.367a80 80 0 0 0-3.949.937c-.403.117-.857.2-1.243.401c-.135.067-.118.2-.05.284c-.034.017-.051.017-.085.034c-.117.017-.218.034-.335.05c-.102.017-.152.1-.135.2c0 .017.017.05.017.067c-.706.936-1.496 1.923-2.353 2.976c-.84.969-1.73 1.989-2.62 3.042c-2.84 3.31-6.05 7.07-9.594 10.38a.16.16 0 0 0 0 .234c.016.016.033.033.05.033c-.05.05-.101.085-.152.134q-.05.05-.05.1a.4.4 0 0 0-.067.084c-.067.067-.067.184.017.234c.067.066.185.066.235-.017c.017-.017.017-.033.033-.033a.265.265 0 0 1 .37 0c.202.217.404.435.588.618l-.42-.35c-.067-.067-.184-.05-.234.016c-.068.066-.051.184.016.234l4.469 3.727c.034.034.067.034.118.034a.15.15 0 0 0 .117-.05l.101-.1c.017.016.05.016.067.016c.05 0 .084-.016.118-.05c6.049-6.05 10.922-10.614 16.5-14.693c.05-.033.067-.1.067-.15c.067 0 .118-.05.15-.117c1.026-3.125 1.228-5.9 1.295-7.27c0-.059.016-.038.016-.068c.017-.033.017-.05.017-.05a.98.98 0 0 0-.067-.619m-10.82 4.915c.268-.301.537-.619.806-.903c-1.73 2.273-4.603 5.767-8.67 9.929c2.773-3.059 5.562-6.218 7.864-9.026M5.14 23.466c-.016-.017-.016-.017 0-.017zm2.504-2.156c.135-.15.27-.284.42-.434c0 0 0 .016.017.016c-.224.198-.433.418-.437.418m.69-.668c.099-.1.14-.173.284-.318c.992-1.02 2.017-2.04 3.059-3.076l.016-.016c.252-.2.555-.418.824-.619a228 228 0 0 0-4.184 4.029M14.852 3.91c-.554.719-1.176 1.671-1.697 2.423c-1.646 2.374-6.94 8.174-7.057 8.274a1190 1190 0 0 1-4.839 4.597l-.1.1c-.085-.1-.085-.25.016-.334C8.652 11.966 13.19 6.133 15.021 3.576c-.05.116-.084.216-.168.334zm2.906 3.427c-.671-.386-.99-.987-.806-1.572l.05-.2a.8.8 0 0 1 .085-.167a1.9 1.9 0 0 1 .756-.703c.016 0 .033 0 .05-.016c-.017-.034-.017-.084-.017-.134c.017-.1.085-.167.202-.167c.202 0 .824.184 1.059.384c.067.05.134.117.202.184c.084.1.218.268.285.401c.034.017.067.184.118.268c.033.134.067.284.05.418c-.017.016 0 .116-.017.116a1.6 1.6 0 0 1-.218.619c-.03.03.006.012-.05.067a1.2 1.2 0 0 1-.32.334a1.49 1.49 0 0 1-1.26.234a2 2 0 0 0-.169-.066m4.37 1.403c0 .017-.017.05 0 .067c-.034 0-.05.017-.085.034a110 110 0 0 0-3.915 3.025c1.11-.986 2.218-1.989 3.378-2.975c.336-.301.571-.686.638-1.12l.168-1.003v-.033c.085-.201.404-.118.353.1c-.004-.001-.173.795-.537 1.905" }) });
2583
2583
  }
2584
- function fo() {
2584
+ function xo() {
2585
2585
  return /* @__PURE__ */ z("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 32 32", children: [
2586
2586
  /* @__PURE__ */ i("path", { fill: "currentColor", d: "M30 18v-2h-6v10h2v-4h3v-2h-3v-2zm-11 8h-4V16h4a3.003 3.003 0 0 1 3 3v4a3.003 3.003 0 0 1-3 3m-2-2h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2zm-6-8H6v10h2v-3h3a2.003 2.003 0 0 0 2-2v-3a2 2 0 0 0-2-2m-3 5v-3h3l.001 3z" }),
2587
2587
  /* @__PURE__ */ i("path", { fill: "currentColor", d: "M22 14v-4a.91.91 0 0 0-.3-.7l-7-7A.9.9 0 0 0 14 2H4a2.006 2.006 0 0 0-2 2v24a2 2 0 0 0 2 2h16v-2H4V4h8v6a2.006 2.006 0 0 0 2 2h6v2Zm-8-4V4.4l5.6 5.6Z" })
2588
2588
  ] });
2589
2589
  }
2590
- function xo() {
2590
+ function bo() {
2591
2591
  return /* @__PURE__ */ z(
2592
2592
  "svg",
2593
2593
  {
@@ -2615,16 +2615,22 @@ function xo() {
2615
2615
  }
2616
2616
  );
2617
2617
  }
2618
- function bo() {
2618
+ function wo() {
2619
2619
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ z("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", color: "currentColor", children: [
2620
2620
  /* @__PURE__ */ i("path", { d: "M14.86 22h-4.312c-3.291 0-4.937 0-6.08-.798a4.2 4.2 0 0 1-.863-.805c-.855-1.066-.855-2.6-.855-5.67v-2.545c0-2.963 0-4.445.473-5.628c.761-1.903 2.37-3.403 4.41-4.113C8.9 2 10.49 2 13.667 2c1.816 0 2.723 0 3.448.252c1.166.406 2.085 1.263 2.52 2.35c.27.676.27 1.523.27 3.216V10" }),
2621
2621
  /* @__PURE__ */ i("path", { d: "M2.75 12c0-1.84 1.506-3.333 3.364-3.333c.672 0 1.464.116 2.117-.057a1.67 1.67 0 0 0 1.19-1.179c.174-.647.057-1.432.057-2.098C9.478 3.493 10.984 2 12.84 2m.002 16h2.523m-4.949-4.15c-.126-.8-.281-.801-1.61-.85h-1.01c-.557 0-1.009.448-1.009 1v3c0 .552.452 1 1.01 1h1.816c.39 0 .803-.313.803-.7v-1.1c0-.11-.113-.304-.224-.304H9.068M12.842 13h1.261m0 0h1.262m-1.262 0v4.875M21.251 13h-2.523c-.557 0-1.009.448-1.009 1v1.5m0 0V18m0-2.5h2.523" })
2622
2622
  ] }) });
2623
2623
  }
2624
- function wo() {
2624
+ function vo() {
2625
+ return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ z("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", children: [
2626
+ /* @__PURE__ */ i("path", { d: "M18 11c0-.818 0-1.57-.152-1.937s-.441-.657-1.02-1.235l-4.736-4.736c-.499-.499-.748-.748-1.058-.896a2 2 0 0 0-.197-.082C10.514 2 10.161 2 9.456 2c-3.245 0-4.868 0-5.967.886a4 4 0 0 0-.603.603C2 4.59 2 6.211 2 9.456V14c0 3.771 0 5.657 1.172 6.828S6.229 22 10 22h8M11 2.5V3c0 2.828 0 4.243.879 5.121C12.757 9 14.172 9 17 9h.5" }),
2627
+ /* @__PURE__ */ i("path", { d: "M5 14v2.5M5 19v-2.5M8 14v2.5M8 19v-2.5m-3 0h3m2-2.5h1.25m1.25 0h-1.25m0 0v5m3.25 0v-5l1.75 2.5L18 14v5m2-5v5h2" })
2628
+ ] }) });
2629
+ }
2630
+ function yo() {
2625
2631
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 20 20", children: /* @__PURE__ */ i("path", { fill: "currentColor", d: "M6.5 3a.75.75 0 0 1 .697.471l3 7.5a.75.75 0 0 1-1.393.557L7.992 9.5H5.008l-.811 2.028a.75.75 0 0 1-1.393-.556l3-7.5A.75.75 0 0 1 6.5 3m0 2.77L5.608 8h1.784zm8.28-1.55a.75.75 0 1 0-1.06 1.06l.72.72h-3.69a.75.75 0 0 0 0 1.5h3.69l-.72.72a.75.75 0 0 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06zm0 7.5a.75.75 0 1 0-1.06 1.06l.72.72H3.75a.75.75 0 0 0 0 1.5h10.69l-.72.72a.75.75 0 1 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06z" }) });
2626
2632
  }
2627
- function vo() {
2633
+ function Co() {
2628
2634
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 48 48", children: /* @__PURE__ */ z("g", { fill: "none", stroke: "currentColor", strokeWidth: "4", children: [
2629
2635
  /* @__PURE__ */ i("circle", { cx: "10", cy: "24", r: "4" }),
2630
2636
  /* @__PURE__ */ i("circle", { cx: "38", cy: "10", r: "4" }),
@@ -2633,13 +2639,13 @@ function vo() {
2633
2639
  /* @__PURE__ */ i("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M34 38H22V10h12M14 24h20" })
2634
2640
  ] }) });
2635
2641
  }
2636
- function yo() {
2642
+ function So() {
2637
2643
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 20 20", children: /* @__PURE__ */ i("path", { fill: "currentColor", d: "M13.5 3a.75.75 0 0 0-.697.471l-3 7.5a.75.75 0 0 0 1.393.557l.812-2.028h2.984l.811 2.028a.75.75 0 0 0 1.393-.556l-3-7.5A.75.75 0 0 0 13.5 3m0 2.77L14.392 8h-1.784zM5.22 4.22a.75.75 0 0 1 1.06 1.06L5.56 6h3.69a.75.75 0 0 1 0 1.5H5.56l.72.72a.75.75 0 0 1-1.06 1.06l-2-2a.75.75 0 0 1 0-1.06zm0 7.5a.75.75 0 0 1 1.06 1.06l-.72.72h10.69a.75.75 0 0 1 0 1.5H5.56l.72.72a.75.75 0 1 1-1.06 1.06l-2-2a.75.75 0 0 1 0-1.06z" }) });
2638
2644
  }
2639
- function Co() {
2645
+ function zo() {
2640
2646
  return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ i("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "m3 21l7.548-7.548M21 3l-7.548 7.548m0 0L8 3H3l7.548 10.452m2.904-2.904L21 21h-5l-5.452-7.548", color: "currentColor" }) });
2641
2647
  }
2642
- function So() {
2648
+ function ko() {
2643
2649
  return /* @__PURE__ */ i(
2644
2650
  "svg",
2645
2651
  {
@@ -2660,61 +2666,56 @@ function So() {
2660
2666
  }
2661
2667
  );
2662
2668
  }
2663
- function zo() {
2664
- return /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ z("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", children: [
2665
- /* @__PURE__ */ i("path", { d: "M18 11c0-.818 0-1.57-.152-1.937s-.441-.657-1.02-1.235l-4.736-4.736c-.499-.499-.748-.748-1.058-.896a2 2 0 0 0-.197-.082C10.514 2 10.161 2 9.456 2c-3.245 0-4.868 0-5.967.886a4 4 0 0 0-.603.603C2 4.59 2 6.211 2 9.456V14c0 3.771 0 5.657 1.172 6.828S6.229 22 10 22h8M11 2.5V3c0 2.828 0 4.243.879 5.121C12.757 9 14.172 9 17 9h.5" }),
2666
- /* @__PURE__ */ i("path", { d: "M5 14v2.5M5 19v-2.5M8 14v2.5M8 19v-2.5m-3 0h3m2-2.5h1.25m1.25 0h-1.25m0 0v5m3.25 0v-5l1.75 2.5L18 14v5m2-5v5h2" })
2667
- ] }) });
2668
- }
2669
- const ko = {
2670
- Bold: pr,
2671
- LoaderCircle: mr,
2672
- Italic: hr,
2673
- Underline: ur,
2674
- Quote: dr,
2675
- TextQuote: to,
2676
- Strikethrough: lr,
2677
- Minus: ar,
2678
- Eraser: cr,
2679
- PaintRoller: sr,
2680
- Redo2: ir,
2681
- Undo2: nr,
2682
- AlignCenter: wr,
2683
- AlignJustify: br,
2684
- AlignLeft: xr,
2685
- AlignRight: fr,
2669
+ const Mo = {
2670
+ Bold: gr,
2671
+ LoaderCircle: pr,
2672
+ Italic: mr,
2673
+ Underline: hr,
2674
+ Quote: ur,
2675
+ TextQuote: ro,
2676
+ Strikethrough: dr,
2677
+ Minus: lr,
2678
+ Eraser: ar,
2679
+ PaintRoller: cr,
2680
+ Redo2: sr,
2681
+ Undo2: ir,
2682
+ AlignCenter: vr,
2683
+ AlignJustify: wr,
2684
+ AlignLeft: br,
2685
+ AlignRight: xr,
2686
2686
  ChevronDown: ie,
2687
- Subscript: or,
2688
- Superscript: rr,
2689
- Code: tr,
2690
- Code2: er,
2691
- Type: Zt,
2692
- IndentIncrease: Yt,
2693
- IndentDecrease: Qt,
2694
- List: Kt,
2695
- ListOrdered: Jt,
2696
- ListTodo: qt,
2697
- Link: Xt,
2698
- ImageUp: Dt,
2699
- Video: Ft,
2700
- Maximize: Ut,
2701
- Minimize: _t,
2702
- Table: $t,
2703
- Sparkles: Ot,
2704
- Pencil: Wt,
2705
- Unlink: Gt,
2706
- BetweenHorizonalEnd: Bt,
2707
- BetweenHorizonalStart: jt,
2708
- BetweenVerticalStart: Pt,
2709
- BetweenVerticalEnd: Ht,
2710
- TableCellsMerge: It,
2711
- TableCellsSplit: Vt,
2712
- Trash2: Tt,
2713
- Trash: Rt,
2687
+ Subscript: nr,
2688
+ Superscript: or,
2689
+ Code: rr,
2690
+ Code2: tr,
2691
+ Type: er,
2692
+ IndentIncrease: Zt,
2693
+ IndentDecrease: Yt,
2694
+ List: Qt,
2695
+ ListOrdered: Kt,
2696
+ ListTodo: Jt,
2697
+ Link: qt,
2698
+ ImageUp: Xt,
2699
+ Video: Dt,
2700
+ Maximize: Ft,
2701
+ Minimize: Ut,
2702
+ Table: _t,
2703
+ Sparkles: $t,
2704
+ Pencil: Ot,
2705
+ Unlink: Wt,
2706
+ BetweenHorizonalEnd: Gt,
2707
+ BetweenHorizonalStart: Bt,
2708
+ BetweenVerticalStart: jt,
2709
+ BetweenVerticalEnd: Pt,
2710
+ TableCellsMerge: Ht,
2711
+ TableCellsSplit: It,
2712
+ Trash2: Vt,
2713
+ Trash: Tt,
2714
2714
  Replace: xe,
2715
- ChevronsUpDown: At,
2716
- LineHeight: io,
2717
- Word: no,
2715
+ ChevronsUpDown: Rt,
2716
+ LineHeight: so,
2717
+ Word: io,
2718
+ HeadingParagraph: At,
2718
2719
  Heading1: Nt,
2719
2720
  Heading2: Et,
2720
2721
  Heading3: Lt,
@@ -2732,47 +2733,47 @@ const ko = {
2732
2733
  PanelRight: ft,
2733
2734
  Columns: be,
2734
2735
  Iframe: gt,
2735
- MenuDown: so,
2736
- SizeS: lo,
2737
- SizeM: ao,
2738
- SizeL: co,
2739
- AspectRatio: eo,
2736
+ MenuDown: co,
2737
+ SizeS: uo,
2738
+ SizeM: lo,
2739
+ SizeL: ao,
2740
+ AspectRatio: to,
2740
2741
  Emoji: pt,
2741
- DeleteColumn: ro,
2742
- DeleteRow: oo,
2742
+ DeleteColumn: oo,
2743
+ DeleteRow: no,
2743
2744
  SearchAndReplace: xe,
2744
2745
  EmojiIcon: mt,
2745
2746
  KatexIcon: ht,
2746
- ExportPdf: fo,
2747
- ExportWord: xo,
2748
- ImportWord: So,
2749
- ColumnAddLeft: ho,
2750
- ColumnAddRight: mo,
2747
+ ExportPdf: xo,
2748
+ ExportWord: bo,
2749
+ ImportWord: ko,
2750
+ ColumnAddLeft: mo,
2751
+ ColumnAddRight: po,
2751
2752
  BookMarked: ut,
2752
- Excalidraw: go,
2753
+ Excalidraw: fo,
2753
2754
  ZoomIn: dt,
2754
2755
  ZoomOut: lt,
2755
2756
  Settings: at,
2756
2757
  Eye: ct,
2757
- TextDirection: po,
2758
- LeftToRight: wo,
2759
- RightToLeft: yo,
2758
+ TextDirection: go,
2759
+ LeftToRight: yo,
2760
+ RightToLeft: So,
2760
2761
  Attachment: st,
2761
- GifIcon: bo,
2762
+ GifIcon: wo,
2762
2763
  ChevronUp: Le,
2763
2764
  Crop: it,
2764
- Mermaid: vo,
2765
- Twitter: Co,
2766
- CodeView: uo,
2765
+ Mermaid: Co,
2766
+ Twitter: zo,
2767
+ CodeView: ho,
2767
2768
  FlipX: nt,
2768
2769
  FlipY: ot,
2769
2770
  PencilRuler: rt,
2770
2771
  WrapText: tt,
2771
2772
  Loader: et,
2772
2773
  X: Ze,
2773
- Html: zo,
2774
+ Html: vo,
2774
2775
  ExternalLink: Ye
2775
- }, Ce = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Se = Ee, Mo = (e, r) => (t) => {
2776
+ }, Ce = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Se = Ee, Lo = (e, r) => (t) => {
2776
2777
  var o;
2777
2778
  if ((r == null ? void 0 : r.variants) == null) return Se(e, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
2778
2779
  const { variants: s, defaultVariants: n } = r, a = Object.keys(s).map((d) => {
@@ -2801,7 +2802,7 @@ const ko = {
2801
2802
  ] : d;
2802
2803
  }, []);
2803
2804
  return Se(e, a, u, t == null ? void 0 : t.class, t == null ? void 0 : t.className);
2804
- }, Lo = Mo(
2805
+ }, Eo = Lo(
2805
2806
  "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-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 data-[state=on]:richtext-bg-accent data-[state=on]:richtext-text-accent-foreground",
2806
2807
  {
2807
2808
  variants: {
@@ -2824,12 +2825,12 @@ const ko = {
2824
2825
  Me.Root,
2825
2826
  {
2826
2827
  ref: s,
2827
- className: k(Lo({ variant: r, size: t, className: e })),
2828
+ className: k(Eo({ variant: r, size: t, className: e })),
2828
2829
  ...o
2829
2830
  }
2830
2831
  ));
2831
2832
  Ie.displayName = Me.Root.displayName;
2832
- const tn = $.Provider, Eo = $.Root, No = $.Trigger, He = N.forwardRef(({ className: e, sideOffset: r = 4, ...t }, o) => /* @__PURE__ */ i(
2833
+ const rn = $.Provider, No = $.Root, Ao = $.Trigger, He = N.forwardRef(({ className: e, sideOffset: r = 4, ...t }, o) => /* @__PURE__ */ i(
2833
2834
  $.Content,
2834
2835
  {
2835
2836
  "data-richtext-portal": !0,
@@ -2843,7 +2844,7 @@ const tn = $.Provider, Eo = $.Root, No = $.Trigger, He = N.forwardRef(({ classNa
2843
2844
  }
2844
2845
  ));
2845
2846
  He.displayName = $.Content.displayName;
2846
- const rn = v.Root, on = v.Value, Ao = N.forwardRef(({ className: e, children: r, ...t }, o) => /* @__PURE__ */ z(
2847
+ const on = v.Root, nn = v.Value, Ro = N.forwardRef(({ className: e, children: r, ...t }, o) => /* @__PURE__ */ z(
2847
2848
  v.Trigger,
2848
2849
  {
2849
2850
  ref: o,
@@ -2858,7 +2859,7 @@ const rn = v.Root, on = v.Value, Ao = N.forwardRef(({ className: e, children: r,
2858
2859
  ]
2859
2860
  }
2860
2861
  ));
2861
- Ao.displayName = v.Trigger.displayName;
2862
+ Ro.displayName = v.Trigger.displayName;
2862
2863
  const Pe = N.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i(
2863
2864
  v.ScrollUpButton,
2864
2865
  {
@@ -2885,7 +2886,7 @@ const je = N.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i(
2885
2886
  }
2886
2887
  ));
2887
2888
  je.displayName = v.ScrollDownButton.displayName;
2888
- const Ro = N.forwardRef(({ className: e, children: r, position: t = "popper", ...o }, s) => /* @__PURE__ */ i(v.Portal, { children: /* @__PURE__ */ z(
2889
+ const To = N.forwardRef(({ className: e, children: r, position: t = "popper", ...o }, s) => /* @__PURE__ */ i(v.Portal, { children: /* @__PURE__ */ z(
2889
2890
  v.Content,
2890
2891
  {
2891
2892
  "data-richtext-portal": !0,
@@ -2913,8 +2914,8 @@ const Ro = N.forwardRef(({ className: e, children: r, position: t = "popper", ..
2913
2914
  ]
2914
2915
  }
2915
2916
  ) }));
2916
- Ro.displayName = v.Content.displayName;
2917
- const To = N.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i(
2917
+ To.displayName = v.Content.displayName;
2918
+ const Vo = N.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i(
2918
2919
  v.Label,
2919
2920
  {
2920
2921
  className: k("richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-font-semibold", e),
@@ -2922,8 +2923,8 @@ const To = N.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i(
2922
2923
  ...r
2923
2924
  }
2924
2925
  ));
2925
- To.displayName = v.Label.displayName;
2926
- const Vo = N.forwardRef(({ className: e, children: r, ...t }, o) => /* @__PURE__ */ z(
2926
+ Vo.displayName = v.Label.displayName;
2927
+ const Io = N.forwardRef(({ className: e, children: r, ...t }, o) => /* @__PURE__ */ z(
2927
2928
  v.Item,
2928
2929
  {
2929
2930
  ref: o,
@@ -2933,13 +2934,13 @@ const Vo = N.forwardRef(({ className: e, children: r, ...t }, o) => /* @__PURE__
2933
2934
  ),
2934
2935
  ...t,
2935
2936
  children: [
2936
- /* @__PURE__ */ i("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ i(v.ItemIndicator, { children: /* @__PURE__ */ i(gr, { className: "richtext-size-4" }) }) }),
2937
+ /* @__PURE__ */ i("span", { className: "richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center", children: /* @__PURE__ */ i(v.ItemIndicator, { children: /* @__PURE__ */ i(fr, { className: "richtext-size-4" }) }) }),
2937
2938
  /* @__PURE__ */ i(v.ItemText, { children: r })
2938
2939
  ]
2939
2940
  }
2940
2941
  ));
2941
- Vo.displayName = v.Item.displayName;
2942
- const Io = N.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i(
2942
+ Io.displayName = v.Item.displayName;
2943
+ const Ho = N.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i(
2943
2944
  v.Separator,
2944
2945
  {
2945
2946
  className: k("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted", e),
@@ -2947,7 +2948,7 @@ const Io = N.forwardRef(({ className: e, ...r }, t) => /* @__PURE__ */ i(
2947
2948
  ...r
2948
2949
  }
2949
2950
  ));
2950
- Io.displayName = v.Separator.displayName;
2951
+ Ho.displayName = v.Separator.displayName;
2951
2952
  function ce(e) {
2952
2953
  function r() {
2953
2954
  const n = te(e), a = E(() => n.current, []), c = te(/* @__PURE__ */ new Set()), u = E((m) => {
@@ -2984,15 +2985,15 @@ ce({
2984
2985
  ce({
2985
2986
  value: !1
2986
2987
  });
2987
- const { Provider: Ho, useStore: Be } = ce({
2988
+ const { Provider: Po, useStore: Be } = ce({
2988
2989
  value: !1
2989
2990
  });
2990
- function nn() {
2991
+ function sn() {
2991
2992
  const [e] = Be((r) => r.value);
2992
2993
  return e;
2993
2994
  }
2994
- const ze = "data-rc-order", ke = "data-rc-priority", Po = "rc-util-key", oe = /* @__PURE__ */ new Map();
2995
- function jo(e, r) {
2995
+ const ze = "data-rc-order", ke = "data-rc-priority", jo = "rc-util-key", oe = /* @__PURE__ */ new Map();
2996
+ function Bo(e, r) {
2996
2997
  if (!e)
2997
2998
  return !1;
2998
2999
  if (e.contains)
@@ -3006,12 +3007,12 @@ function jo(e, r) {
3006
3007
  return !1;
3007
3008
  }
3008
3009
  function Ge({ mark: e } = {}) {
3009
- return e ? e.startsWith("data-") ? e : `data-${e}` : Po;
3010
+ return e ? e.startsWith("data-") ? e : `data-${e}` : jo;
3010
3011
  }
3011
3012
  function ae(e) {
3012
3013
  return e.attachTo ? e.attachTo : document.querySelector("head") || document.body;
3013
3014
  }
3014
- function Bo(e) {
3015
+ function Go(e) {
3015
3016
  return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
3016
3017
  }
3017
3018
  function We(e) {
@@ -3020,7 +3021,7 @@ function We(e) {
3020
3021
  );
3021
3022
  }
3022
3023
  function Oe(e, r = {}) {
3023
- const { csp: t, prepend: o, priority: s = 0 } = r, n = Bo(o), a = n === "prependQueue", c = document.createElement("style");
3024
+ const { csp: t, prepend: o, priority: s = 0 } = r, n = Go(o), a = n === "prependQueue", c = document.createElement("style");
3024
3025
  c.setAttribute(ze, n), a && s && c.setAttribute(ke, `${s}`), t != null && t.nonce && (c.nonce = t == null ? void 0 : t.nonce), c.innerHTML = e;
3025
3026
  const u = ae(r), { firstChild: d } = u;
3026
3027
  if (o) {
@@ -3043,28 +3044,28 @@ function $e(e, r = {}) {
3043
3044
  const t = ae(r);
3044
3045
  return We(t).find((o) => o.getAttribute(Ge(r)) === e);
3045
3046
  }
3046
- function Go(e, r = {}) {
3047
+ function Wo(e, r = {}) {
3047
3048
  const t = $e(e, r);
3048
3049
  t && t.remove();
3049
3050
  }
3050
- function Wo(e, r) {
3051
+ function Oo(e, r) {
3051
3052
  const t = oe.get(e);
3052
- if (!t || !jo(document, t)) {
3053
+ if (!t || !Bo(document, t)) {
3053
3054
  const o = Oe("", r), { parentNode: s } = o;
3054
3055
  oe.set(e, s), o.remove();
3055
3056
  }
3056
3057
  }
3057
- function Oo(e, r, t = {}) {
3058
+ function $o(e, r, t = {}) {
3058
3059
  var a, c, u;
3059
3060
  const o = ae(t);
3060
- Wo(o, t);
3061
+ Oo(o, t);
3061
3062
  const s = $e(r, t);
3062
3063
  if (s)
3063
3064
  return (a = t.csp) != null && a.nonce && s.nonce !== ((c = t.csp) == null ? void 0 : c.nonce) && (s.nonce = (u = t.csp) == null ? void 0 : u.nonce), s.innerHTML !== e && (s.innerHTML = e), s;
3064
3065
  const n = Oe(e, t);
3065
3066
  return n.setAttribute(Ge(t), r), n;
3066
3067
  }
3067
- const $o = qe(({ editor: e, children: r }) => {
3068
+ const _o = qe(({ editor: e, children: r }) => {
3068
3069
  const [, t] = Be((s) => s.value);
3069
3070
  T(() => {
3070
3071
  t({
@@ -3080,7 +3081,7 @@ const $o = qe(({ editor: e, children: r }) => {
3080
3081
  e && e.off("update", o);
3081
3082
  }), [e]), /* @__PURE__ */ i(ne, { children: r });
3082
3083
  });
3083
- function _o() {
3084
+ function Uo() {
3084
3085
  const [, e] = Ke(Qe), r = (o) => {
3085
3086
  e((s) => ({
3086
3087
  ...s,
@@ -3118,7 +3119,7 @@ function _o() {
3118
3119
  };
3119
3120
  }, []), /* @__PURE__ */ i(ne, {});
3120
3121
  }
3121
- function Uo() {
3122
+ function Fo() {
3122
3123
  const [e, r] = ee("richtext-theme", "light"), [t, o] = ee("richtext-color", "default"), [s, n] = ee("richtext-border-radius", "0.65rem");
3123
3124
  T(() => {
3124
3125
  const d = e || "light", m = t || "default";
@@ -3127,8 +3128,9 @@ function Uo() {
3127
3128
  p = fe.light.default;
3128
3129
  return;
3129
3130
  }
3130
- return Oo(`
3131
+ return $o(`
3131
3132
  .reactjs-tiptap-editor, .reactjs-tiptap-editor *,
3133
+ .reactjs-tiptap-editor-theme, .reactjs-tiptap-editor-theme *,
3132
3134
  div[data-richtext-portal], div[data-richtext-portal] * {
3133
3135
  ${Object.entries(p).map(([l, f]) => typeof s == "string" && l === "radius" ? `--${l}: ${s};` : `--${l}: ${f};`).join(`
3134
3136
  `)}
@@ -3136,7 +3138,7 @@ function Uo() {
3136
3138
  `, "richtext-theme", {
3137
3139
  priority: 50
3138
3140
  }), () => {
3139
- Go("richtext-theme");
3141
+ Wo("richtext-theme");
3140
3142
  };
3141
3143
  }, [e, t, s]);
3142
3144
  const a = (d) => {
@@ -3153,43 +3155,43 @@ function Uo() {
3153
3155
  };
3154
3156
  }, []), /* @__PURE__ */ i(ne, {});
3155
3157
  }
3156
- function sn({ editor: e, children: r, id: t }) {
3157
- return /* @__PURE__ */ z(Ho, { children: [
3158
+ function cn({ editor: e, children: r, id: t }) {
3159
+ return /* @__PURE__ */ z(Po, { children: [
3158
3160
  /* @__PURE__ */ i(
3159
- $o,
3161
+ _o,
3160
3162
  {
3161
3163
  editor: e,
3162
3164
  id: t,
3163
3165
  children: r
3164
3166
  }
3165
3167
  ),
3166
- /* @__PURE__ */ i(_o, {}),
3167
- /* @__PURE__ */ i(Uo, {})
3168
+ /* @__PURE__ */ i(Uo, {}),
3169
+ /* @__PURE__ */ i(Fo, {})
3168
3170
  ] });
3169
3171
  }
3170
3172
  export {
3171
- en as A,
3172
- xo as E,
3173
- so as M,
3174
- sn as P,
3175
- rn as S,
3176
- Eo as T,
3177
- No as a,
3173
+ tn as A,
3174
+ bo as E,
3175
+ co as M,
3176
+ cn as P,
3177
+ on as S,
3178
+ No as T,
3179
+ Ao as a,
3178
3180
  He as b,
3179
3181
  k as c,
3180
- Mo as d,
3181
- tn as e,
3182
+ Lo as d,
3183
+ rn as e,
3182
3184
  Ie as f,
3183
- Zr as g,
3184
- Yr as h,
3185
- ko as i,
3185
+ eo as g,
3186
+ Zr as h,
3187
+ Mo as i,
3186
3188
  ee as j,
3187
- nn as k,
3188
- fo as l,
3189
- Ao as m,
3190
- on as n,
3191
- Ro as o,
3192
- Vo as p,
3193
- Go as r,
3194
- Oo as u
3189
+ sn as k,
3190
+ xo as l,
3191
+ Ro as m,
3192
+ nn as n,
3193
+ To as o,
3194
+ Io as p,
3195
+ Wo as r,
3196
+ $o as u
3195
3197
  };