reactjs-tiptap-editor 0.3.30 → 0.4.0

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 (278) hide show
  1. package/README.md +8 -2
  2. package/lib/{ActionMenuButton-wiDnIxE2.cjs → ActionMenuButton-CYdM1xx5.cjs} +1 -1
  3. package/lib/{ActionMenuButton-B6fitGKu.js → ActionMenuButton-DKRF6oa0.js} +5 -5
  4. package/lib/Attachment.cjs +2 -2
  5. package/lib/Attachment.d.cts +47 -51
  6. package/lib/Attachment.d.ts +47 -51
  7. package/lib/Attachment.js +7 -6
  8. package/lib/BaseKit.cjs +3 -0
  9. package/lib/BaseKit.d.cts +481 -0
  10. package/lib/BaseKit.d.ts +481 -0
  11. package/lib/BaseKit.js +132 -0
  12. package/lib/Blockquote.cjs +5 -1
  13. package/lib/Blockquote.d.cts +47 -51
  14. package/lib/Blockquote.d.ts +47 -51
  15. package/lib/Blockquote.js +33 -17
  16. package/lib/Bold.cjs +1 -1
  17. package/lib/Bold.d.cts +47 -51
  18. package/lib/Bold.d.ts +47 -51
  19. package/lib/Bold.js +23 -16
  20. package/lib/BulletList.cjs +1 -1
  21. package/lib/BulletList.d.cts +48 -52
  22. package/lib/BulletList.d.ts +48 -52
  23. package/lib/BulletList.js +11 -57
  24. package/lib/Clear.cjs +1 -1
  25. package/lib/Clear.d.cts +47 -51
  26. package/lib/Clear.d.ts +47 -51
  27. package/lib/Clear.js +4 -2
  28. package/lib/Code.cjs +1 -1
  29. package/lib/Code.d.cts +47 -51
  30. package/lib/Code.d.ts +47 -51
  31. package/lib/Code.js +29 -25
  32. package/lib/CodeBlock.cjs +2 -2
  33. package/lib/CodeBlock.d.cts +47 -51
  34. package/lib/CodeBlock.d.ts +47 -51
  35. package/lib/CodeBlock.js +5 -4
  36. package/lib/CodeView.cjs +1 -1
  37. package/lib/CodeView.d.cts +47 -51
  38. package/lib/CodeView.d.ts +47 -51
  39. package/lib/CodeView.js +3 -2
  40. package/lib/Color.cjs +1 -1
  41. package/lib/Color.d.cts +48 -52
  42. package/lib/Color.d.ts +48 -52
  43. package/lib/Color.js +42 -74
  44. package/lib/Document.cjs +1 -1
  45. package/lib/Document.d.cts +47 -51
  46. package/lib/Document.d.ts +47 -51
  47. package/lib/Document.js +4 -8
  48. package/lib/{Drawer-BKTU9CpU.js → Drawer-CaAfmqNo.js} +268 -265
  49. package/lib/Drawer-CdvCMSzN.cjs +1 -0
  50. package/lib/Drawer.cjs +1 -1
  51. package/lib/Drawer.d.cts +47 -51
  52. package/lib/Drawer.d.ts +47 -51
  53. package/lib/Drawer.js +4 -4
  54. package/lib/Emoji.cjs +1 -1
  55. package/lib/Emoji.d.cts +50 -52
  56. package/lib/Emoji.d.ts +50 -52
  57. package/lib/Emoji.js +19790 -178
  58. package/lib/Excalidraw-BbMQhNvs.cjs +1 -0
  59. package/lib/Excalidraw-CVWz2Vyn.js +290 -0
  60. package/lib/Excalidraw.cjs +1 -1
  61. package/lib/Excalidraw.d.cts +47 -51
  62. package/lib/Excalidraw.d.ts +47 -51
  63. package/lib/Excalidraw.js +3 -3
  64. package/lib/ExportPdf.cjs +1 -1
  65. package/lib/ExportPdf.d.cts +47 -51
  66. package/lib/ExportPdf.d.ts +47 -51
  67. package/lib/ExportPdf.js +4 -2
  68. package/lib/ExportWord.cjs +1 -1
  69. package/lib/ExportWord.d.cts +47 -51
  70. package/lib/ExportWord.d.ts +47 -51
  71. package/lib/ExportWord.js +22 -51
  72. package/lib/FontFamily.cjs +1 -1
  73. package/lib/FontFamily.d.cts +48 -52
  74. package/lib/FontFamily.d.ts +48 -52
  75. package/lib/FontFamily.js +46 -74
  76. package/lib/FontSize.cjs +1 -1
  77. package/lib/FontSize.d.cts +47 -51
  78. package/lib/FontSize.d.ts +47 -51
  79. package/lib/FontSize.js +11 -8
  80. package/lib/FormatPainter.cjs +1 -1
  81. package/lib/FormatPainter.d.cts +47 -51
  82. package/lib/FormatPainter.d.ts +47 -51
  83. package/lib/FormatPainter.js +4 -2
  84. package/lib/Heading.cjs +1 -1
  85. package/lib/Heading.d.cts +47 -51
  86. package/lib/Heading.d.ts +47 -51
  87. package/lib/Heading.js +77 -65
  88. package/lib/Highlight.cjs +1 -1
  89. package/lib/Highlight.d.cts +47 -51
  90. package/lib/Highlight.d.ts +47 -51
  91. package/lib/Highlight.js +5 -4
  92. package/lib/History.cjs +1 -1
  93. package/lib/History.d.cts +49 -53
  94. package/lib/History.d.ts +49 -53
  95. package/lib/History.js +39 -403
  96. package/lib/HorizontalRule.cjs +1 -1
  97. package/lib/HorizontalRule.d.cts +47 -51
  98. package/lib/HorizontalRule.d.ts +47 -51
  99. package/lib/HorizontalRule.js +16 -65
  100. package/lib/Iframe.cjs +1 -1
  101. package/lib/Iframe.d.cts +47 -51
  102. package/lib/Iframe.d.ts +47 -51
  103. package/lib/Iframe.js +4 -4
  104. package/lib/Image.cjs +1 -1
  105. package/lib/Image.d.cts +47 -51
  106. package/lib/Image.d.ts +47 -51
  107. package/lib/Image.js +3 -3
  108. package/lib/ImageGif.cjs +1 -1
  109. package/lib/ImageGif.d.cts +47 -51
  110. package/lib/ImageGif.d.ts +47 -51
  111. package/lib/ImageGif.js +5 -5
  112. package/lib/ImportWord.cjs +72 -72
  113. package/lib/ImportWord.d.cts +47 -51
  114. package/lib/ImportWord.d.ts +47 -51
  115. package/lib/ImportWord.js +5654 -5616
  116. package/lib/Indent.cjs +1 -1
  117. package/lib/Indent.d.cts +47 -51
  118. package/lib/Indent.d.ts +47 -51
  119. package/lib/Indent.js +4 -2
  120. package/lib/Italic.cjs +1 -1
  121. package/lib/Italic.d.cts +47 -51
  122. package/lib/Italic.d.ts +47 -51
  123. package/lib/Italic.js +20 -14
  124. package/lib/Katex.cjs +1 -1
  125. package/lib/Katex.d.cts +47 -51
  126. package/lib/Katex.d.ts +47 -51
  127. package/lib/Katex.js +49 -48
  128. package/lib/LineHeight.cjs +1 -1
  129. package/lib/LineHeight.d.cts +47 -51
  130. package/lib/LineHeight.d.ts +47 -51
  131. package/lib/LineHeight.js +21 -18
  132. package/lib/Link.cjs +1 -1
  133. package/lib/Link.d.cts +47 -51
  134. package/lib/Link.d.ts +47 -51
  135. package/lib/Link.js +4 -4
  136. package/lib/ListItem.cjs +1 -1
  137. package/lib/ListItem.d.cts +52 -52
  138. package/lib/ListItem.d.ts +52 -52
  139. package/lib/ListItem.js +4 -30
  140. package/lib/Mention.cjs +1 -1
  141. package/lib/Mention.d.cts +47 -51
  142. package/lib/Mention.d.ts +47 -51
  143. package/lib/Mention.js +161 -132
  144. package/lib/Mermaid.cjs +2 -2
  145. package/lib/Mermaid.d.cts +47 -51
  146. package/lib/Mermaid.d.ts +47 -51
  147. package/lib/Mermaid.js +150 -147
  148. package/lib/MoreMark.cjs +1 -1
  149. package/lib/MoreMark.d.cts +47 -51
  150. package/lib/MoreMark.d.ts +47 -51
  151. package/lib/MoreMark.js +5 -3
  152. package/lib/MultiColumn.cjs +1 -1
  153. package/lib/MultiColumn.d.cts +47 -51
  154. package/lib/MultiColumn.d.ts +47 -51
  155. package/lib/MultiColumn.js +2 -2
  156. package/lib/OrderedList.cjs +1 -1
  157. package/lib/OrderedList.d.cts +48 -52
  158. package/lib/OrderedList.d.ts +48 -52
  159. package/lib/OrderedList.js +11 -75
  160. package/lib/RichTextEditor-CxvwGvQG.cjs +142 -0
  161. package/lib/RichTextEditor-DGcKEUGr.js +22166 -0
  162. package/lib/SearchAndReplace.cjs +1 -1
  163. package/lib/SearchAndReplace.d.cts +60 -134
  164. package/lib/SearchAndReplace.d.ts +60 -134
  165. package/lib/SearchAndReplace.js +207 -194
  166. package/lib/Selection.cjs +1 -1
  167. package/lib/Selection.d.cts +47 -51
  168. package/lib/Selection.d.ts +47 -51
  169. package/lib/Selection.js +1 -1
  170. package/lib/SlashCommand.cjs +1 -1
  171. package/lib/SlashCommand.d.cts +47 -51
  172. package/lib/SlashCommand.d.ts +47 -51
  173. package/lib/SlashCommand.js +177 -222
  174. package/lib/Strike.cjs +1 -1
  175. package/lib/Strike.d.cts +47 -51
  176. package/lib/Strike.d.ts +47 -51
  177. package/lib/Strike.js +20 -14
  178. package/lib/SubAndSuperScript.cjs +1 -1
  179. package/lib/SubAndSuperScript.d.cts +47 -51
  180. package/lib/SubAndSuperScript.d.ts +47 -51
  181. package/lib/SubAndSuperScript.js +5 -3
  182. package/lib/Table.cjs +8 -10
  183. package/lib/Table.d.cts +50 -54
  184. package/lib/Table.d.ts +50 -54
  185. package/lib/Table.js +382 -2021
  186. package/lib/TableOfContent.cjs +1 -1
  187. package/lib/TableOfContent.d.cts +47 -51
  188. package/lib/TableOfContent.d.ts +47 -51
  189. package/lib/TableOfContent.js +53 -52
  190. package/lib/TaskList.cjs +1 -1
  191. package/lib/TaskList.d.cts +49 -53
  192. package/lib/TaskList.d.ts +49 -53
  193. package/lib/TaskList.js +12 -154
  194. package/lib/TextAlign.cjs +1 -1
  195. package/lib/TextAlign.d.cts +47 -51
  196. package/lib/TextAlign.d.ts +47 -51
  197. package/lib/TextAlign.js +11 -8
  198. package/lib/TextBubble.cjs +1 -1
  199. package/lib/TextBubble.d.cts +47 -51
  200. package/lib/TextBubble.d.ts +47 -51
  201. package/lib/TextBubble.js +5 -3
  202. package/lib/TextDirection.cjs +1 -1
  203. package/lib/TextDirection.d.cts +47 -51
  204. package/lib/TextDirection.d.ts +47 -51
  205. package/lib/TextDirection.js +15 -15
  206. package/lib/TextUnderline.cjs +1 -1
  207. package/lib/TextUnderline.d.cts +47 -51
  208. package/lib/TextUnderline.d.ts +47 -51
  209. package/lib/TextUnderline.js +40 -12
  210. package/lib/TrailingNode.cjs +1 -1
  211. package/lib/TrailingNode.d.cts +47 -51
  212. package/lib/TrailingNode.d.ts +47 -51
  213. package/lib/TrailingNode.js +1 -1
  214. package/lib/Twitter-BFULyqdR.js +1628 -0
  215. package/lib/Twitter-Cutpkh3h.cjs +1 -0
  216. package/lib/Twitter.cjs +1 -1
  217. package/lib/Twitter.d.cts +47 -51
  218. package/lib/Twitter.d.ts +47 -51
  219. package/lib/Twitter.js +3 -3
  220. package/lib/Video.cjs +1 -1
  221. package/lib/Video.d.cts +47 -51
  222. package/lib/Video.d.ts +47 -51
  223. package/lib/Video.js +3 -3
  224. package/lib/bubble-extra.cjs +2 -2
  225. package/lib/bubble-extra.d.cts +47 -51
  226. package/lib/bubble-extra.d.ts +47 -51
  227. package/lib/bubble-extra.js +200 -192
  228. package/lib/dom-dataset-_6-diIRQ.cjs +33 -0
  229. package/lib/dom-dataset-lYeH6gfI.js +2361 -0
  230. package/lib/index-5iBZLua9.cjs +12 -0
  231. package/lib/index-6D1J-A-o.cjs +1 -0
  232. package/lib/index-B96Cclrj.cjs +3 -0
  233. package/lib/index-BBz7Nmv9.js +55 -0
  234. package/lib/index-BeCTd5v2.cjs +1 -0
  235. package/lib/index-ByurDDMv.js +237 -0
  236. package/lib/index-CUogRI7j.cjs +1 -0
  237. package/lib/index-Ch6dBBad.js +709 -0
  238. package/lib/index-DF2Lp4HZ.cjs +100 -0
  239. package/lib/{index-LUL9mqY4.js → index-D_L6n8O8.js} +4 -4
  240. package/lib/index-Dbvi-Bvh.cjs +1 -0
  241. package/lib/index-DpCrt7xs.cjs +1 -0
  242. package/lib/index-DsAX1Vq8.cjs +1 -0
  243. package/lib/index-Dy4DlW9o.js +12 -0
  244. package/lib/index-J3jHHZ4d.js +200 -0
  245. package/lib/{index-CsK90iVd.js → index-LmrOdnen.js} +302 -389
  246. package/lib/index-VvXaaKe3.js +898 -0
  247. package/lib/index-kbO3iWqL.js +13432 -0
  248. package/lib/index.cjs +1 -2
  249. package/lib/index.d.cts +49 -251
  250. package/lib/index.d.ts +49 -251
  251. package/lib/index.js +2 -588
  252. package/lib/jsx-runtime-CT7Pcg-t.js +13 -0
  253. package/lib/jsx-runtime-C_NLcKys.cjs +1 -0
  254. package/lib/locale-bundle.cjs +1 -1
  255. package/lib/locale-bundle.d.cts +47 -51
  256. package/lib/locale-bundle.d.ts +47 -51
  257. package/lib/locale-bundle.js +1 -1
  258. package/lib/style.css +1 -1
  259. package/lib/{textarea-D5WVZMgt.cjs → textarea-DFo_aXnj.cjs} +1 -1
  260. package/lib/{textarea-BglwYF6b.js → textarea-aPtytkDx.js} +1 -1
  261. package/package.json +76 -70
  262. package/lib/Drawer-CmoEF-Zg.cjs +0 -1
  263. package/lib/Excalidraw-CM74U5tG.js +0 -289
  264. package/lib/Excalidraw-DAPP9qgY.cjs +0 -1
  265. package/lib/RichTextEditor-BQN2eLD_.js +0 -12775
  266. package/lib/RichTextEditor-C8Sm1E6J.cjs +0 -140
  267. package/lib/Twitter-CL2pu4QM.cjs +0 -17
  268. package/lib/Twitter-Dg6WWauX.js +0 -1743
  269. package/lib/dom-dataset-Byuf1YmW.cjs +0 -33
  270. package/lib/dom-dataset-Di3tIRrR.js +0 -1031
  271. package/lib/index-BI-IcZcN.cjs +0 -1
  272. package/lib/index-ByRfqzMr.cjs +0 -89
  273. package/lib/index-C1fzuXpN.js +0 -46
  274. package/lib/index-CbQQFj2T.js +0 -133
  275. package/lib/index-DI9T3iLd.js +0 -12354
  276. package/lib/index-D_A0TBRA.cjs +0 -1
  277. package/lib/index-DclQSrIx.cjs +0 -1
  278. package/lib/index-Z4b9rzn-.cjs +0 -1
@@ -1,8 +1,8 @@
1
- var S = Object.defineProperty;
2
- var A = (t, o, n) => o in t ? S(t, o, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[o] = n;
3
- var F = (t, o, n) => A(t, typeof o != "symbol" ? o + "" : o, n);
4
- import { useSyncExternalStore as L, useMemo as D, useEffect as E } from "react";
5
- const w = "en", B = 200, lt = B - 80, rt = 20, dt = 1e5, at = 16, nt = 10, st = 10, pt = 2, ut = [
1
+ var R = Object.defineProperty;
2
+ var W = (t, e, o) => e in t ? R(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
3
+ var S = (t, e, o) => W(t, typeof e != "symbol" ? e + "" : e, o);
4
+ import { useSyncExternalStore as I, useMemo as N, useEffect as U } from "react";
5
+ const P = "en", j = 200, mt = j - 80, gt = 20, ct = 1e5, ht = 16, ft = 10, bt = 10, kt = 2, vt = [
6
6
  "#000000",
7
7
  "#262626",
8
8
  "#595959",
@@ -73,7 +73,7 @@ const w = "en", B = 200, lt = B - 80, rt = 20, dt = 1e5, at = 16, nt = 10, st =
73
73
  "#061178",
74
74
  "#22075E",
75
75
  "#780650"
76
- ], gt = [
76
+ ], Tt = [
77
77
  "Inter",
78
78
  "Comic Sans MS, Comic Sans",
79
79
  "serif",
@@ -89,7 +89,7 @@ const w = "en", B = 200, lt = B - 80, rt = 20, dt = 1e5, at = 16, nt = 10, st =
89
89
  "Lucida Console",
90
90
  "Monaco",
91
91
  "monospace"
92
- ], mt = [
92
+ ], xt = [
93
93
  "10px",
94
94
  "11px",
95
95
  "12px",
@@ -104,9 +104,9 @@ const w = "en", B = 200, lt = B - 80, rt = 20, dt = 1e5, at = 16, nt = 10, st =
104
104
  "36px",
105
105
  "48px",
106
106
  "72px"
107
- ], ct = "default";
108
- var R = /* @__PURE__ */ ((t) => (t[t["size-small"] = 200] = "size-small", t[t["size-medium"] = 500] = "size-medium", t["size-large"] = "100%", t))(R || {}), N = /* @__PURE__ */ ((t) => (t[t["size-small"] = 480] = "size-small", t[t["size-medium"] = 640] = "size-medium", t["size-large"] = "100%", t))(N || {});
109
- const ht = ["100%", "115%", "150%", "200%", "250%", "300%"], ft = "1", bt = [
107
+ ], yt = "default";
108
+ var M = /* @__PURE__ */ ((t) => (t[t["size-small"] = 200] = "size-small", t[t["size-medium"] = 500] = "size-medium", t["size-large"] = "100%", t))(M || {}), K = /* @__PURE__ */ ((t) => (t[t["size-small"] = 480] = "size-small", t[t["size-medium"] = 640] = "size-medium", t["size-large"] = "100%", t))(K || {});
109
+ const Ft = ["100%", "115%", "150%", "200%", "250%", "300%"], Ct = "1", _t = [
110
110
  "bold",
111
111
  "italic",
112
112
  "underline",
@@ -118,347 +118,260 @@ const ht = ["100%", "115%", "150%", "200%", "250%", "300%"], ft = "1", bt = [
118
118
  "highlight",
119
119
  "textAlign"
120
120
  ];
121
- function U({
122
- updateComputed: t,
123
- notifyEffect: o
124
- }) {
125
- let n, s;
121
+ function O({ update: t, notify: e, unwatched: o }) {
126
122
  return {
127
- /**
128
- * Links a given dependency and subscriber if they are not already linked.
129
- *
130
- * @param dep - The dependency to be linked.
131
- * @param sub - The subscriber that depends on this dependency.
132
- * @returns The newly created link object if the two are not already linked; otherwise `undefined`.
133
- */
134
- link(e, i) {
135
- const l = i.depsTail;
136
- if (l !== void 0 && l.dep === e)
137
- return;
138
- const d = l !== void 0 ? l.nextDep : i.deps;
139
- if (d !== void 0 && d.dep === e) {
140
- i.depsTail = d;
141
- return;
142
- }
143
- const r = e.subsTail;
144
- if (!(r !== void 0 && r.sub === i && f(r, i)))
145
- return p(e, i, d, l);
146
- },
147
- /**
148
- * Traverses and marks subscribers starting from the provided link.
149
- *
150
- * It sets flags (e.g., Dirty, PendingComputed, PendingEffect) on each subscriber
151
- * to indicate which ones require re-computation or effect processing.
152
- * This function should be called after a signal's value changes.
153
- *
154
- * @param link - The starting link from which propagation begins.
155
- */
156
- propagate(e) {
157
- let i = 32, l = e, d = 0;
158
- t: do {
159
- const r = e.sub, a = r.flags;
160
- if (!(a & 244) && (r.flags = a | i | 8, !0) || a & 16 && !(a & 4) && (r.flags = a & -17 | i | 8, !0) || !(a & 224) && f(e, r) && (r.flags = a | 16 | i | 8, r.subs !== void 0)) {
161
- const g = r.subs;
162
- if (g !== void 0) {
163
- g.nextSub !== void 0 ? (g.prevSub = l, e = l = g, i = 64, ++d) : (e = g, i = a & 2 ? 128 : 64);
164
- continue;
165
- }
166
- a & 2 && (s !== void 0 ? s.depsTail.nextDep = r.deps : n = r, s = r);
167
- } else a & (4 | i) ? !(a & i) && a & 224 && f(e, r) && (r.flags = a | i) : (r.flags = a | i | 8, (a & 10) === 2 && (s !== void 0 ? s.depsTail.nextDep = r.deps : n = r, s = r));
168
- if ((e = l.nextSub) !== void 0) {
169
- l = e, i = d ? 64 : 32;
170
- continue;
171
- }
172
- for (; d; ) {
173
- --d;
174
- const x = l.dep.subs;
175
- if (l = x.prevSub, x.prevSub = void 0, (e = l.nextSub) !== void 0) {
176
- l = e, i = d ? 64 : 32;
177
- continue t;
178
- }
179
- }
180
- break;
181
- } while (!0);
182
- },
183
- /**
184
- * Prepares the given subscriber to track new dependencies.
185
- *
186
- * It resets the subscriber's internal pointers (e.g., depsTail) and
187
- * sets its flags to indicate it is now tracking dependency links.
188
- *
189
- * @param sub - The subscriber to start tracking.
190
- */
191
- startTracking(e) {
192
- e.depsTail = void 0, e.flags = e.flags & -249 | 4;
193
- },
194
- /**
195
- * Concludes tracking of dependencies for the specified subscriber.
196
- *
197
- * It clears or unlinks any tracked dependency information, then
198
- * updates the subscriber's flags to indicate tracking is complete.
199
- *
200
- * @param sub - The subscriber whose tracking is ending.
201
- */
202
- endTracking(e) {
203
- const i = e.depsTail;
204
- if (i !== void 0) {
205
- const l = i.nextDep;
206
- l !== void 0 && (b(l), i.nextDep = void 0);
207
- } else e.deps !== void 0 && (b(e.deps), e.deps = void 0);
208
- e.flags &= -5;
209
- },
210
- /**
211
- * Updates the dirty flag for the given subscriber based on its dependencies.
212
- *
213
- * If the subscriber has any pending computeds, this function sets the Dirty flag
214
- * and returns `true`. Otherwise, it clears the PendingComputed flag and returns `false`.
215
- *
216
- * @param sub - The subscriber to update.
217
- * @param flags - The current flag set for this subscriber.
218
- * @returns `true` if the subscriber is marked as Dirty; otherwise `false`.
219
- */
220
- updateDirtyFlag(e, i) {
221
- return h(e.deps) ? (e.flags = i | 32, !0) : (e.flags = i & -65, !1);
222
- },
223
- /**
224
- * Updates the computed subscriber if necessary before its value is accessed.
225
- *
226
- * If the subscriber is marked Dirty or PendingComputed, this function runs
227
- * the provided updateComputed logic and triggers a shallowPropagate for any
228
- * downstream subscribers if an actual update occurs.
229
- *
230
- * @param computed - The computed subscriber to update.
231
- * @param flags - The current flag set for this subscriber.
232
- */
233
- processComputedUpdate(e, i) {
234
- if ((i & 32 || (h(e.deps) || (e.flags = i & -65, !1))) && t(e)) {
235
- const l = e.subs;
236
- l !== void 0 && m(l);
237
- }
238
- },
239
- /**
240
- * Ensures all pending internal effects for the given subscriber are processed.
241
- *
242
- * This should be called after an effect decides not to re-run itself but may still
243
- * have dependencies flagged with PendingEffect. If the subscriber is flagged with
244
- * PendingEffect, this function clears that flag and invokes `notifyEffect` on any
245
- * related dependencies marked as Effect and Propagated, processing pending effects.
246
- *
247
- * @param sub - The subscriber which may have pending effects.
248
- * @param flags - The current flags on the subscriber to check.
249
- */
250
- processPendingInnerEffects(e, i) {
251
- if (i & 128) {
252
- e.flags = i & -129;
253
- let l = e.deps;
254
- do {
255
- const d = l.dep;
256
- "flags" in d && d.flags & 2 && d.flags & 224 && o(d), l = l.nextDep;
257
- } while (l !== void 0);
258
- }
259
- },
260
- /**
261
- * Processes queued effect notifications after a batch operation finishes.
262
- *
263
- * Iterates through all queued effects, calling notifyEffect on each.
264
- * If an effect remains partially handled, its flags are updated, and future
265
- * notifications may be triggered until fully handled.
266
- */
267
- processEffectNotifications() {
268
- for (; n !== void 0; ) {
269
- const e = n, i = e.depsTail, l = i.nextDep;
270
- l !== void 0 ? (i.nextDep = void 0, n = l.sub) : (n = void 0, s = void 0), o(e) || (e.flags &= -9);
271
- }
272
- }
123
+ link: a,
124
+ unlink: u,
125
+ propagate: k,
126
+ checkDirty: f,
127
+ shallowPropagate: b
273
128
  };
274
- function p(e, i, l, d) {
275
- const r = {
276
- dep: e,
277
- sub: i,
129
+ function a(i, r, d) {
130
+ const n = r.depsTail;
131
+ if (n !== void 0 && n.dep === i)
132
+ return;
133
+ const l = n !== void 0 ? n.nextDep : r.deps;
134
+ if (l !== void 0 && l.dep === i) {
135
+ l.version = d, r.depsTail = l;
136
+ return;
137
+ }
138
+ const s = i.subsTail;
139
+ if (s !== void 0 && s.version === d && s.sub === r)
140
+ return;
141
+ const p = r.depsTail = i.subsTail = {
142
+ version: d,
143
+ dep: i,
144
+ sub: r,
145
+ prevDep: n,
278
146
  nextDep: l,
279
- prevSub: void 0,
147
+ prevSub: s,
280
148
  nextSub: void 0
281
149
  };
282
- if (d === void 0 ? i.deps = r : d.nextDep = r, e.subs === void 0)
283
- e.subs = r;
284
- else {
285
- const a = e.subsTail;
286
- r.prevSub = a, a.nextSub = r;
287
- }
288
- return i.depsTail = r, e.subsTail = r, r;
150
+ l !== void 0 && (l.prevDep = p), n !== void 0 ? n.nextDep = p : r.deps = p, s !== void 0 ? s.nextSub = p : i.subs = p;
289
151
  }
290
- function h(e) {
291
- let i = 0, l;
152
+ function u(i, r = i.sub) {
153
+ const d = i.dep, n = i.prevDep, l = i.nextDep, s = i.nextSub, p = i.prevSub;
154
+ return l !== void 0 ? l.prevDep = n : r.depsTail = n, n !== void 0 ? n.nextDep = l : r.deps = l, s !== void 0 ? s.prevSub = p : d.subsTail = p, p !== void 0 ? p.nextSub = s : (d.subs = s) === void 0 && o(d), l;
155
+ }
156
+ function k(i) {
157
+ let r = i.nextSub, d;
292
158
  t: do {
293
- l = !1;
294
- const d = e.dep;
295
- if ("flags" in d) {
296
- const r = d.flags;
297
- if ((r & 33) === 33) {
298
- if (t(d)) {
299
- const a = d.subs;
300
- a.nextSub !== void 0 && m(a), l = !0;
301
- }
302
- } else if ((r & 65) === 65) {
303
- const a = d.subs;
304
- a.nextSub !== void 0 && (a.prevSub = e), e = d.deps, ++i;
159
+ const n = i.sub;
160
+ let l = n.flags;
161
+ if (l & 60 ? l & 12 ? l & 4 ? !(l & 48) && y(i, n) ? (n.flags = l | 40, l &= 1) : l = 0 : n.flags = l & -9 | 32 : l = 0 : n.flags = l | 32, l & 2 && e(n), l & 1) {
162
+ const s = n.subs;
163
+ if (s !== void 0) {
164
+ const p = (i = s).nextSub;
165
+ p !== void 0 && (d = { value: r, prev: d }, r = p);
305
166
  continue;
306
167
  }
307
168
  }
308
- if (!l && e.nextDep !== void 0) {
309
- e = e.nextDep;
169
+ if ((i = r) !== void 0) {
170
+ r = i.nextSub;
310
171
  continue;
311
172
  }
312
- if (i) {
313
- let r = e.sub;
314
- do {
315
- --i;
316
- const a = r.subs;
317
- if (l) {
318
- if (t(r)) {
319
- (e = a.prevSub) !== void 0 ? (a.prevSub = void 0, m(r.subs), r = e.sub) : r = a.sub;
320
- continue;
321
- }
322
- } else
323
- r.flags &= -65;
324
- if ((e = a.prevSub) !== void 0) {
325
- if (a.prevSub = void 0, e.nextDep !== void 0) {
326
- e = e.nextDep;
327
- continue t;
328
- }
329
- r = e.sub;
330
- } else {
331
- if ((e = a.nextDep) !== void 0)
332
- continue t;
333
- r = a.sub;
173
+ for (; d !== void 0; )
174
+ if (i = d.value, d = d.prev, i !== void 0) {
175
+ r = i.nextSub;
176
+ continue t;
177
+ }
178
+ break;
179
+ } while (!0);
180
+ }
181
+ function f(i, r) {
182
+ let d, n = 0, l = !1;
183
+ t: do {
184
+ const s = i.dep, p = s.flags;
185
+ if (r.flags & 16)
186
+ l = !0;
187
+ else if ((p & 17) === 17) {
188
+ if (t(s)) {
189
+ const m = s.subs;
190
+ m.nextSub !== void 0 && b(m), l = !0;
191
+ }
192
+ } else if ((p & 33) === 33) {
193
+ (i.nextSub !== void 0 || i.prevSub !== void 0) && (d = { value: i, prev: d }), i = s.deps, r = s, ++n;
194
+ continue;
195
+ }
196
+ if (!l) {
197
+ const m = i.nextDep;
198
+ if (m !== void 0) {
199
+ i = m;
200
+ continue;
201
+ }
202
+ }
203
+ for (; n--; ) {
204
+ const m = r.subs, z = m.nextSub !== void 0;
205
+ if (z ? (i = d.value, d = d.prev) : i = m, l) {
206
+ if (t(r)) {
207
+ z && b(m), r = i.sub;
208
+ continue;
334
209
  }
335
210
  l = !1;
336
- } while (i);
211
+ } else
212
+ r.flags &= -33;
213
+ r = i.sub;
214
+ const A = i.nextDep;
215
+ if (A !== void 0) {
216
+ i = A;
217
+ continue t;
218
+ }
337
219
  }
338
220
  return l;
339
221
  } while (!0);
340
222
  }
341
- function m(e) {
223
+ function b(i) {
342
224
  do {
343
- const i = e.sub, l = i.flags;
344
- (l & 96) === 64 && (i.flags = l | 32 | 8, (l & 10) === 2 && (s !== void 0 ? s.depsTail.nextDep = i.deps : n = i, s = i)), e = e.nextSub;
345
- } while (e !== void 0);
225
+ const r = i.sub, d = r.flags;
226
+ (d & 48) === 32 && (r.flags = d | 16, (d & 6) === 2 && e(r));
227
+ } while ((i = i.nextSub) !== void 0);
346
228
  }
347
- function f(e, i) {
348
- const l = i.depsTail;
349
- if (l !== void 0) {
350
- let d = i.deps;
351
- do {
352
- if (d === e)
353
- return !0;
354
- if (d === l)
355
- break;
356
- d = d.nextDep;
357
- } while (d !== void 0);
229
+ function y(i, r) {
230
+ let d = r.depsTail;
231
+ for (; d !== void 0; ) {
232
+ if (d === i)
233
+ return !0;
234
+ d = d.prevDep;
358
235
  }
359
236
  return !1;
360
237
  }
361
- function b(e) {
362
- do {
363
- const i = e.dep, l = e.nextDep, d = e.nextSub, r = e.prevSub;
364
- if (d !== void 0 ? d.prevSub = r : i.subsTail = r, r !== void 0 ? r.nextSub = d : i.subs = d, i.subs === void 0 && "deps" in i) {
365
- const a = i.flags;
366
- a & 32 || (i.flags = a | 32);
367
- const g = i.deps;
368
- if (g !== void 0) {
369
- e = g, i.depsTail.nextDep = l, i.deps = void 0, i.depsTail = void 0;
370
- continue;
371
- }
372
- }
373
- e = l;
374
- } while (e !== void 0);
375
- }
376
238
  }
377
- var {
378
- link: y,
379
- propagate: W,
380
- updateDirtyFlag: P,
381
- startTracking: v,
382
- endTracking: T,
383
- processEffectNotifications: I,
384
- processComputedUpdate: kt,
385
- processPendingInnerEffects: C
386
- } = U({
387
- updateComputed(t) {
388
- const o = u;
389
- u = t, v(t);
390
- try {
391
- const n = t.currentValue, s = t.getter(n);
392
- return n !== s ? (t.currentValue = s, !0) : !1;
393
- } finally {
394
- u = o, T(t);
239
+ let C = 0, v = 0, T = 0, h;
240
+ const g = [], { link: L, unlink: D, propagate: V, checkDirty: q, shallowPropagate: H } = O({
241
+ update(t) {
242
+ return t.depsTail !== void 0 ? Y(t) : E(t);
243
+ },
244
+ notify(t) {
245
+ var a;
246
+ let e = T, o = e;
247
+ do
248
+ if (t.flags &= -3, g[e++] = t, t = (a = t.subs) == null ? void 0 : a.sub, t === void 0 || !(t.flags & 2))
249
+ break;
250
+ while (!0);
251
+ for (T = e; o < --e; ) {
252
+ const u = g[o];
253
+ g[o++] = g[e], g[e] = u;
395
254
  }
396
255
  },
397
- notifyEffect(t) {
398
- return "isScope" in t ? V(t) : K(t);
256
+ unwatched(t) {
257
+ t.flags & 1 ? t.depsTail !== void 0 && (t.depsTail = void 0, t.flags = 17, x(t)) : w.call(t);
399
258
  }
400
- }), u;
401
- function j(t) {
402
- return O.bind({
259
+ });
260
+ function _(t) {
261
+ const e = h;
262
+ return h = t, e;
263
+ }
264
+ function G(t) {
265
+ return Q.bind({
403
266
  currentValue: t,
267
+ pendingValue: t,
404
268
  subs: void 0,
405
- subsTail: void 0
269
+ subsTail: void 0,
270
+ flags: 1
406
271
  });
407
272
  }
408
- function M(t) {
409
- const o = {
273
+ function X(t) {
274
+ const e = {
410
275
  fn: t,
411
276
  subs: void 0,
412
277
  subsTail: void 0,
413
278
  deps: void 0,
414
279
  depsTail: void 0,
415
- flags: 2
416
- /* Effect */
417
- };
418
- return u !== void 0 && y(o, u), _(o), q.bind(o);
280
+ flags: 6
281
+ }, o = _(e);
282
+ o !== void 0 && L(e, o, 0);
283
+ try {
284
+ e.fn();
285
+ } finally {
286
+ h = o, e.flags &= -5;
287
+ }
288
+ return Z.bind(e);
419
289
  }
420
- function _(t) {
421
- const o = u;
422
- u = t, v(t);
290
+ function Y(t) {
291
+ ++C, t.depsTail = void 0, t.flags = 5;
292
+ const e = _(t);
423
293
  try {
424
- t.fn();
294
+ const o = t.value;
295
+ return o !== (t.value = t.getter(o));
425
296
  } finally {
426
- u = o, T(t);
297
+ h = e, t.flags &= -5, x(t);
427
298
  }
428
299
  }
429
- function K(t) {
430
- const o = t.flags;
431
- return o & 32 || o & 64 && P(t, o) ? _(t) : C(t, t.flags), !0;
300
+ function E(t) {
301
+ return t.flags = 1, t.currentValue !== (t.currentValue = t.pendingValue);
302
+ }
303
+ function $(t) {
304
+ const e = t.flags;
305
+ if (e & 16 || e & 32 && q(t.deps, t)) {
306
+ ++C, t.depsTail = void 0, t.flags = 6;
307
+ const o = _(t);
308
+ try {
309
+ t.fn();
310
+ } finally {
311
+ h = o, t.flags &= -5, x(t);
312
+ }
313
+ } else
314
+ t.flags = 2;
432
315
  }
433
- function V(t) {
434
- return t.flags & 128 ? (C(t, t.flags), !0) : !1;
316
+ function J() {
317
+ for (; v < T; ) {
318
+ const t = g[v];
319
+ g[v++] = void 0, $(t);
320
+ }
321
+ v = 0, T = 0;
435
322
  }
436
- function O(...t) {
323
+ function Q(...t) {
324
+ var e;
437
325
  if (t.length) {
438
- if (this.currentValue !== (this.currentValue = t[0])) {
326
+ if (this.pendingValue !== (this.pendingValue = t[0])) {
327
+ this.flags = 17;
439
328
  const o = this.subs;
440
- o !== void 0 && (W(o), I());
329
+ o !== void 0 && (V(o), J());
441
330
  }
442
- } else
443
- return u !== void 0 && y(this, u), this.currentValue;
331
+ } else {
332
+ if (this.flags & 16 && E(this)) {
333
+ const a = this.subs;
334
+ a !== void 0 && H(a);
335
+ }
336
+ let o = h;
337
+ for (; o !== void 0; ) {
338
+ if (o.flags & 3) {
339
+ L(this, o, C);
340
+ break;
341
+ }
342
+ o = (e = o.subs) == null ? void 0 : e.sub;
343
+ }
344
+ return this.currentValue;
345
+ }
444
346
  }
445
- function q() {
446
- v(this), T(this);
347
+ function Z() {
348
+ w.call(this);
447
349
  }
448
- function H(t) {
449
- return j(t);
350
+ function w() {
351
+ this.depsTail = void 0, this.flags = 0, x(this);
352
+ const t = this.subs;
353
+ t !== void 0 && D(t);
450
354
  }
451
- function G(t) {
452
- return [L((o) => {
453
- let n = M(() => {
454
- t(), o();
355
+ function x(t) {
356
+ const e = t.depsTail;
357
+ let o = e !== void 0 ? e.nextDep : t.deps;
358
+ for (; o !== void 0; )
359
+ o = D(o, t);
360
+ }
361
+ function tt(t) {
362
+ return G(t);
363
+ }
364
+ function et(t) {
365
+ return [I((e) => {
366
+ let o = X(() => {
367
+ t(), e();
455
368
  });
456
- return () => n();
457
- }, () => t(), () => t()), (o) => {
458
- t(typeof o == "function" ? o(t()) : o);
369
+ return () => o();
370
+ }, () => t(), () => t()), (e) => {
371
+ t(typeof e == "function" ? e(t()) : e);
459
372
  }];
460
373
  }
461
- function X(t) {
374
+ function ot(t) {
462
375
  return t = t || /* @__PURE__ */ new Map(), {
463
376
  /**
464
377
  * A Map of event names to registered handler functions.
@@ -471,9 +384,9 @@ function X(t) {
471
384
  * @memberOf mitt
472
385
  */
473
386
  //@ts-expect-error
474
- on(o, n) {
475
- const s = t.get(o);
476
- s ? s.push(n) : t.set(o, [n]);
387
+ on(e, o) {
388
+ const a = t.get(e);
389
+ a ? a.push(o) : t.set(e, [o]);
477
390
  },
478
391
  /**
479
392
  * Remove an event handler for the given type.
@@ -483,9 +396,9 @@ function X(t) {
483
396
  * @memberOf mitt
484
397
  */
485
398
  //@ts-expect-error
486
- off(o, n) {
487
- const s = t.get(o);
488
- s && (n ? s.splice(s.indexOf(n) >>> 0, 1) : t.set(o, []));
399
+ off(e, o) {
400
+ const a = t.get(e);
401
+ a && (o ? a.splice(a.indexOf(o) >>> 0, 1) : t.set(e, []));
489
402
  },
490
403
  /**
491
404
  * Invoke all handlers for the given type.
@@ -497,17 +410,17 @@ function X(t) {
497
410
  * @param {Any} [evt] Any value (object is recommended and powerful), passed to each handler
498
411
  * @memberOf mitt
499
412
  */
500
- emit(o, n) {
501
- let s = t.get(o);
502
- s && [...s].map((p) => {
503
- p(n);
504
- }), s = t.get("*"), s && [...s].map((p) => {
505
- p(o, n);
413
+ emit(e, o) {
414
+ let a = t.get(e);
415
+ a && [...a].map((u) => {
416
+ u(o);
417
+ }), a = t.get("*"), a && [...a].map((u) => {
418
+ u(e, o);
506
419
  });
507
420
  }
508
421
  };
509
422
  }
510
- const Y = {
423
+ const it = {
511
424
  "editor.remove": "Remove",
512
425
  "editor.copy": "Copy",
513
426
  "editor.words": "WORDS",
@@ -683,7 +596,7 @@ const Y = {
683
596
  "editor.upload.fileTypeNotSupported": "{fileName} file type not supported",
684
597
  "editor.upload.fileSizeTooBig": "{fileName} file size too big, maximum size is {size}MB",
685
598
  "editor.upload.error": "Error uploading file"
686
- }, $ = {
599
+ }, lt = {
687
600
  "editor.remove": "Eltávolítás",
688
601
  "editor.copy": "Másolás",
689
602
  "editor.words": "SZAVAK",
@@ -859,7 +772,7 @@ const Y = {
859
772
  "editor.upload.fileTypeNotSupported": "{fileName} fájltípus nem támogatott",
860
773
  "editor.upload.fileSizeTooBig": "{fileName} fájlméret túl nagy, maximális méret {size}MB",
861
774
  "editor.upload.error": "Hiba a fájl feltöltésekor"
862
- }, J = {
775
+ }, rt = {
863
776
  "editor.remove": "Remover",
864
777
  "editor.copy": "Copiar",
865
778
  "editor.words": "PALAVRAS",
@@ -1035,7 +948,7 @@ const Y = {
1035
948
  "editor.upload.fileTypeNotSupported": "{fileName} tipo de arquivo não suportado",
1036
949
  "editor.upload.fileSizeTooBig": "{fileName} tamanho do arquivo muito grande, o tamanho máximo é {size}MB",
1037
950
  "editor.upload.error": "Erro ao enviar arquivo"
1038
- }, Q = {
951
+ }, dt = {
1039
952
  "editor.remove": "Xóa",
1040
953
  "editor.copy": "Sao chép",
1041
954
  "editor.words": "TỪ",
@@ -1211,7 +1124,7 @@ const Y = {
1211
1124
  "editor.upload.fileTypeNotSupported": "{fileName} loại tệp không được hỗ trợ",
1212
1125
  "editor.upload.fileSizeTooBig": "{fileName} kích thước tệp quá lớn, kích thước tối đa là {size}MB",
1213
1126
  "editor.upload.error": "Lỗi khi tải lên tệp"
1214
- }, Z = {
1127
+ }, at = {
1215
1128
  "editor.remove": "移除",
1216
1129
  "editor.copy": "复制",
1217
1130
  "editor.words": "字数",
@@ -1387,7 +1300,7 @@ const Y = {
1387
1300
  "editor.upload.fileTypeNotSupported": "{fileName} 文件类型不受支持",
1388
1301
  "editor.upload.fileSizeTooBig": "{fileName} 文件大小超出限制,最大大小为 {size}MB",
1389
1302
  "editor.upload.error": "上传文件时出错"
1390
- }, tt = {
1303
+ }, nt = {
1391
1304
  "editor.remove": "Poista",
1392
1305
  "editor.copy": "Kopioi",
1393
1306
  "editor.words": "SANAT",
@@ -1564,121 +1477,121 @@ const Y = {
1564
1477
  "editor.upload.fileSizeTooBig": "{fileName}-tiedosto liian suuri, suurin sallittu koko on {size}MB",
1565
1478
  "editor.upload.error": "Virhe tiedoston latauksessa"
1566
1479
  }, c = {
1567
- lang: w,
1480
+ lang: P,
1568
1481
  message: {
1569
- en: Y,
1570
- hu_HU: $,
1571
- vi: Q,
1572
- zh_CN: Z,
1573
- pt_BR: J,
1574
- fi: tt
1482
+ en: it,
1483
+ hu_HU: lt,
1484
+ vi: dt,
1485
+ zh_CN: at,
1486
+ pt_BR: rt,
1487
+ fi: nt
1575
1488
  }
1576
1489
  };
1577
- class et {
1490
+ class st {
1578
1491
  constructor() {
1579
- F(this, "emitter");
1580
- this.emitter = X();
1492
+ S(this, "emitter");
1493
+ this.emitter = ot();
1581
1494
  }
1582
1495
  // Getter and setter for current language
1583
1496
  get lang() {
1584
1497
  return c.lang;
1585
1498
  }
1586
- set lang(o) {
1587
- if (!this.isLangSupported(o)) {
1499
+ set lang(e) {
1500
+ if (!this.isLangSupported(e)) {
1588
1501
  console.warn(
1589
- `Can't find the current language "${o}", Using language "${c.lang}" by default`
1502
+ `Can't find the current language "${e}", Using language "${c.lang}" by default`
1590
1503
  );
1591
1504
  return;
1592
1505
  }
1593
- c.lang = o, this.emitter.emit("lang", o);
1506
+ c.lang = e, this.emitter.emit("lang", e);
1594
1507
  }
1595
1508
  // Getter and setter for messages
1596
1509
  get message() {
1597
1510
  return c.message;
1598
1511
  }
1599
- set message(o) {
1600
- c.message = o;
1512
+ set message(e) {
1513
+ c.message = e;
1601
1514
  }
1602
1515
  // Load messages for a specific language
1603
- loadLangMessage(o) {
1604
- return this.message[o];
1516
+ loadLangMessage(e) {
1517
+ return this.message[e];
1605
1518
  }
1606
1519
  // Check if a language is supported
1607
- isLangSupported(o) {
1608
- return Object.keys(this.message).includes(o);
1520
+ isLangSupported(e) {
1521
+ return Object.keys(this.message).includes(e);
1609
1522
  }
1610
1523
  // Set the current language
1611
- setLang(o) {
1612
- this.lang = o;
1524
+ setLang(e) {
1525
+ this.lang = e;
1613
1526
  }
1614
1527
  // Register a language change watcher
1615
- registerWatchLang(o) {
1616
- return this.emitter.on("lang", o), {
1528
+ registerWatchLang(e) {
1529
+ return this.emitter.on("lang", e), {
1617
1530
  unsubscribe: () => {
1618
- this.emitter.off("lang", o);
1531
+ this.emitter.off("lang", e);
1619
1532
  }
1620
1533
  };
1621
1534
  }
1622
1535
  // Set messages for a specific language
1623
- setMessage(o, n) {
1624
- this.message[o] = n;
1536
+ setMessage(e, o) {
1537
+ this.message[e] = o;
1625
1538
  }
1626
1539
  // Build a translation function for a given language
1627
- buildLocalesHandler(o) {
1628
- o || (o = this.lang);
1629
- const n = this.loadLangMessage(o);
1630
- return function(p, h) {
1631
- let m = n[p] || p;
1632
- return h && Object.entries(h).forEach(([f, b]) => {
1633
- m = m.replace(new RegExp(`\\{${f}\\}`, "g"), String(b));
1634
- }), m;
1540
+ buildLocalesHandler(e) {
1541
+ e || (e = this.lang);
1542
+ const o = this.loadLangMessage(e);
1543
+ return function(u, k) {
1544
+ let f = o[u] || u;
1545
+ return k && Object.entries(k).forEach(([b, y]) => {
1546
+ f = f.replace(new RegExp(`\\{${b}\\}`, "g"), String(y));
1547
+ }), f;
1635
1548
  };
1636
1549
  }
1637
1550
  }
1638
- const k = new et(), z = H(c.lang);
1639
- function vt() {
1640
- const [t, o] = G(z), n = D(() => k.buildLocalesHandler(t), [t]);
1641
- return E(() => {
1642
- const s = k.registerWatchLang((p) => {
1643
- o(p);
1551
+ const F = new st(), B = tt(c.lang);
1552
+ function zt() {
1553
+ const [t, e] = et(B), o = N(() => F.buildLocalesHandler(t), [t]);
1554
+ return U(() => {
1555
+ const a = F.registerWatchLang((u) => {
1556
+ e(u);
1644
1557
  });
1645
1558
  return () => {
1646
- s.unsubscribe();
1559
+ a.unsubscribe();
1647
1560
  };
1648
1561
  }, []), {
1649
1562
  lang: t,
1650
- t: n
1563
+ t: o
1651
1564
  };
1652
1565
  }
1653
- const Tt = {
1654
- t: (t, o) => k.buildLocalesHandler(z())(t, o)
1566
+ const At = {
1567
+ t: (t, e) => F.buildLocalesHandler(B())(t, e)
1655
1568
  };
1656
1569
  export {
1657
- bt as B,
1658
- ut as C,
1659
- mt as D,
1660
- lt as E,
1661
- dt as I,
1662
- st as T,
1663
- N as V,
1664
- Y as a,
1665
- $ as b,
1666
- Q as c,
1667
- Z as d,
1668
- J as e,
1669
- tt as f,
1670
- ct as g,
1671
- gt as h,
1672
- rt as i,
1673
- at as j,
1674
- ft as k,
1675
- k as l,
1676
- ht as m,
1677
- Tt as n,
1678
- X as o,
1679
- nt as p,
1680
- pt as q,
1681
- R as r,
1682
- H as s,
1683
- vt as u
1570
+ _t as B,
1571
+ vt as C,
1572
+ Tt as D,
1573
+ mt as E,
1574
+ ct as I,
1575
+ bt as T,
1576
+ K as V,
1577
+ it as a,
1578
+ lt as b,
1579
+ dt as c,
1580
+ at as d,
1581
+ rt as e,
1582
+ nt as f,
1583
+ xt as g,
1584
+ yt as h,
1585
+ gt as i,
1586
+ ht as j,
1587
+ Ct as k,
1588
+ F as l,
1589
+ Ft as m,
1590
+ At as n,
1591
+ ot as o,
1592
+ ft as p,
1593
+ kt as q,
1594
+ M as r,
1595
+ tt as s,
1596
+ zt as u
1684
1597
  };