reactjs-tiptap-editor 1.0.25 → 1.0.26

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 (289) hide show
  1. package/lib/{ActionMenuButton-8cTG45Ft.js → ActionMenuButton-B4KDkZ0z.js} +1 -1
  2. package/lib/{ActionMenuButton-CXeFhner.cjs → ActionMenuButton-C3Cfeza9.cjs} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.js +25 -25
  5. package/lib/Blockquote.cjs +5 -5
  6. package/lib/Blockquote.js +1490 -53
  7. package/lib/Bold.cjs +1 -1
  8. package/lib/Bold.js +3 -3
  9. package/lib/BulletList.cjs +1 -1
  10. package/lib/BulletList.js +2 -2
  11. package/lib/Callout.cjs +1 -1
  12. package/lib/Callout.js +222 -8
  13. package/lib/Clear.cjs +1 -1
  14. package/lib/Clear.js +2 -2
  15. package/lib/Code.cjs +1 -1
  16. package/lib/Code.js +56 -39
  17. package/lib/CodeBlock.cjs +1 -1
  18. package/lib/CodeBlock.js +8 -4
  19. package/lib/CodeView.cjs +1 -1
  20. package/lib/CodeView.js +2 -2
  21. package/lib/Color.cjs +1 -1
  22. package/lib/Color.js +3 -3
  23. package/lib/Column.cjs +1 -1
  24. package/lib/Column.js +2 -2
  25. package/lib/{Drawer-TJY4NuHx.cjs → Drawer-D7E9kTca.cjs} +1 -1
  26. package/lib/{Drawer-C-EO1uoK.js → Drawer-DA0FLHs9.js} +20 -20
  27. package/lib/Drawer.cjs +1 -1
  28. package/lib/Drawer.js +4 -4
  29. package/lib/Emoji.cjs +1 -1
  30. package/lib/Emoji.js +1644 -148
  31. package/lib/Excalidraw.cjs +1 -1
  32. package/lib/Excalidraw.js +10 -10
  33. package/lib/ExportPdf.cjs +1 -1
  34. package/lib/ExportPdf.js +2 -2
  35. package/lib/ExportWord.cjs +1 -1
  36. package/lib/ExportWord.js +2 -2
  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/FormatPainter.cjs +1 -0
  42. package/lib/FormatPainter.js +133 -0
  43. package/lib/Heading.cjs +1 -1
  44. package/lib/Heading.js +10 -6
  45. package/lib/Highlight.cjs +1 -1
  46. package/lib/Highlight.js +3 -3
  47. package/lib/History.cjs +7 -1
  48. package/lib/History.js +519 -478
  49. package/lib/HorizontalRule.cjs +1 -1
  50. package/lib/HorizontalRule.js +2 -2
  51. package/lib/{Iframe-CGb6-2LD.js → Iframe-DZ3r3QzK.js} +7 -7
  52. package/lib/{Iframe-5zx43DL4.cjs → Iframe-OMVd0xa_.cjs} +1 -1
  53. package/lib/Iframe.cjs +1 -1
  54. package/lib/Iframe.js +3 -3
  55. package/lib/Image.cjs +1 -1
  56. package/lib/Image.js +6 -6
  57. package/lib/ImageGif.cjs +1 -1
  58. package/lib/ImageGif.js +35 -35
  59. package/lib/ImportWord.cjs +1 -1
  60. package/lib/ImportWord.js +15 -15
  61. package/lib/{Indent-DuwV8s1t.cjs → Indent-QgCoonRk.cjs} +1 -1
  62. package/lib/{Indent-CdMYsDNS.js → Indent-kI4G-clX.js} +2 -2
  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 +2 -2
  67. package/lib/{Katex-CCP_ZQz2.js → Katex-BPbXjcZQ.js} +6 -7
  68. package/lib/Katex-CUofhjB5.cjs +4 -0
  69. package/lib/Katex.cjs +1 -1
  70. package/lib/Katex.js +3 -3
  71. package/lib/LineHeight.cjs +1 -1
  72. package/lib/LineHeight.js +4 -4
  73. package/lib/Link.cjs +1 -1
  74. package/lib/Link.js +2 -2
  75. package/lib/{LinkEditBlock-B1m-TVMu.js → LinkEditBlock-BYWwH2_x.js} +59 -32
  76. package/lib/{LinkEditBlock-DQ8-iufJ.cjs → LinkEditBlock-Z7RRurvx.cjs} +2 -2
  77. package/lib/MarkdownPaste.cjs +1 -1
  78. package/lib/MarkdownPaste.js +1 -1
  79. package/lib/Mention.cjs +1 -1
  80. package/lib/Mention.js +9 -5
  81. package/lib/Mermaid.cjs +2 -2
  82. package/lib/Mermaid.js +61 -62
  83. package/lib/MoreMark.cjs +1 -1
  84. package/lib/MoreMark.js +5 -5
  85. package/lib/OrderedList.cjs +1 -1
  86. package/lib/OrderedList.js +2 -2
  87. package/lib/SearchAndReplace.cjs +1 -1
  88. package/lib/SearchAndReplace.js +14 -14
  89. package/lib/SlashCommand.cjs +1 -1
  90. package/lib/SlashCommand.js +7 -7
  91. package/lib/{SlashCommandNodeView-Dt6n1SP9.js → SlashCommandNodeView-C0l3Fb_3.js} +10 -10
  92. package/lib/{SlashCommandNodeView-DNixmQGa.cjs → SlashCommandNodeView-DPPmYEjC.cjs} +1 -1
  93. package/lib/Strike.cjs +1 -1
  94. package/lib/Strike.js +2 -2
  95. package/lib/{Table-C5JxBXef.cjs → Table-D5G3rfwb.cjs} +5 -5
  96. package/lib/{Table-DdEgaUwa.js → Table-DwseaFSD.js} +115 -97
  97. package/lib/Table.cjs +1 -1
  98. package/lib/Table.js +1 -1
  99. package/lib/TaskList.cjs +1 -1
  100. package/lib/TaskList.js +2 -2
  101. package/lib/TextAlign.cjs +1 -1
  102. package/lib/TextAlign.js +11 -11
  103. package/lib/TextDirection.cjs +1 -1
  104. package/lib/TextDirection.js +3 -3
  105. package/lib/TextUnderline.cjs +1 -1
  106. package/lib/TextUnderline.js +2 -2
  107. package/lib/{Twitter-Dnz9qyW0.js → Twitter-DP26Lkn8.js} +195 -195
  108. package/lib/Twitter-q4ZGZL0i.cjs +1 -0
  109. package/lib/Twitter.cjs +1 -1
  110. package/lib/Twitter.js +3 -3
  111. package/lib/Video.cjs +1 -1
  112. package/lib/Video.js +5 -5
  113. package/lib/bubble.cjs +6 -6
  114. package/lib/bubble.js +2783 -2137
  115. package/lib/{clsx-D6gYQn3o.cjs → clsx-DRbkQ4T7.cjs} +1 -1
  116. package/lib/{clsx-0OU6n9va.js → clsx-_bq4MQQ7.js} +14 -4
  117. package/lib/components/Bubble/RichTextBubbleCallout.d.ts +1 -1
  118. package/lib/components/Bubble/RichTextBubbleCodeBlock.d.ts +1 -1
  119. package/lib/components/Bubble/RichTextBubbleColumns.d.ts +1 -1
  120. package/lib/components/Bubble/RichTextBubbleDrawer.d.ts +1 -1
  121. package/lib/components/Bubble/RichTextBubbleExcalidraw.d.ts +1 -1
  122. package/lib/components/Bubble/RichTextBubbleIframe.d.ts +1 -1
  123. package/lib/components/Bubble/RichTextBubbleKatex.d.ts +2 -1
  124. package/lib/components/Bubble/RichTextBubbleLink.d.ts +1 -1
  125. package/lib/components/Bubble/RichTextBubbleMedia.d.ts +3 -3
  126. package/lib/components/Bubble/RichTextBubbleMenuDragHandle.d.ts +2 -1
  127. package/lib/components/Bubble/RichTextBubbleMermaid.d.ts +1 -1
  128. package/lib/components/Bubble/RichTextBubbleTable.d.ts +1 -1
  129. package/lib/components/Bubble/RichTextBubbleText.d.ts +1 -1
  130. package/lib/components/Bubble/RichTextBubbleTwitter.d.ts +1 -1
  131. package/lib/components/ColorPicker.d.ts +1 -1
  132. package/lib/components/ReactBus.d.ts +1 -1
  133. package/lib/components/RichTextProvider.d.ts +1 -1
  134. package/lib/components/SlashDialogTrigger/RenderDialogUploadImage.d.ts +1 -1
  135. package/lib/components/SlashDialogTrigger/RenderDialogUploadVideo.d.ts +1 -1
  136. package/lib/components/SlashDialogTrigger/SlashDialogTrigger.d.ts +2 -1
  137. package/lib/components/icons/Activity.d.ts +2 -1
  138. package/lib/components/icons/Animas.d.ts +2 -1
  139. package/lib/components/icons/AspectRatio.d.ts +1 -1
  140. package/lib/components/icons/Blockquote.d.ts +1 -1
  141. package/lib/components/icons/CodeView.d.ts +1 -1
  142. package/lib/components/icons/ColumnAddLeft.d.ts +1 -1
  143. package/lib/components/icons/ColumnAddRight.d.ts +1 -1
  144. package/lib/components/icons/DeleteColumn.d.ts +1 -1
  145. package/lib/components/icons/DeleteRow.d.ts +1 -1
  146. package/lib/components/icons/Direction.d.ts +1 -1
  147. package/lib/components/icons/Excalidraw.d.ts +1 -1
  148. package/lib/components/icons/ExportPdf.d.ts +1 -1
  149. package/lib/components/icons/ExportWord.d.ts +2 -1
  150. package/lib/components/icons/FileWordOutline.d.ts +1 -1
  151. package/lib/components/icons/Flag.d.ts +2 -1
  152. package/lib/components/icons/Food.d.ts +2 -1
  153. package/lib/components/icons/GIfIcon.d.ts +1 -1
  154. package/lib/components/icons/Html.d.ts +1 -1
  155. package/lib/components/icons/Icon.d.ts +1 -1
  156. package/lib/components/icons/IconColorFill.d.ts +1 -1
  157. package/lib/components/icons/IconHighlightFill.d.ts +1 -1
  158. package/lib/components/icons/ImportWord.d.ts +2 -1
  159. package/lib/components/icons/LeftToRight.d.ts +1 -1
  160. package/lib/components/icons/LineHeight.d.ts +1 -1
  161. package/lib/components/icons/MenuDown.d.ts +1 -1
  162. package/lib/components/icons/Mermaid.d.ts +1 -1
  163. package/lib/components/icons/NoFill.d.ts +1 -1
  164. package/lib/components/icons/Object.d.ts +2 -1
  165. package/lib/components/icons/RightToLeft.d.ts +1 -1
  166. package/lib/components/icons/SizeL.d.ts +1 -1
  167. package/lib/components/icons/SizeM.d.ts +1 -1
  168. package/lib/components/icons/SizeS.d.ts +1 -1
  169. package/lib/components/icons/Symbol.d.ts +2 -1
  170. package/lib/components/icons/Travel.d.ts +2 -1
  171. package/lib/components/icons/Twitter.d.ts +1 -1
  172. package/lib/components/ui/dialog.d.ts +2 -2
  173. package/lib/components/ui/dropdown-menu.d.ts +1 -1
  174. package/lib/components/ui/emoji-picker.d.ts +4 -4
  175. package/lib/components/ui/toaster.d.ts +1 -1
  176. package/lib/{dropdown-menu-ROihzXsP.js → dropdown-menu-BKSX4gvT.js} +1 -1
  177. package/lib/{dropdown-menu-yQ-sQ1k4.cjs → dropdown-menu-CURWpB9o.cjs} +1 -1
  178. package/lib/extensions/Attachment/components/NodeViewAttachment/FileIcon.d.ts +1 -1
  179. package/lib/extensions/Attachment/components/NodeViewAttachment/NodeViewAttachment.d.ts +1 -1
  180. package/lib/extensions/Attachment/components/RichTextAttachment.d.ts +1 -1
  181. package/lib/extensions/Blockquote/components/RichTextBlockquote.d.ts +1 -1
  182. package/lib/extensions/Bold/components/RichTextBold.d.ts +1 -1
  183. package/lib/extensions/BulletList/components/RichTextBulletList.d.ts +1 -1
  184. package/lib/extensions/Callout/components/NodeViewCallout/NodeViewCallout.d.ts +1 -1
  185. package/lib/extensions/Callout/components/RichTextCallout.d.ts +1 -1
  186. package/lib/extensions/Clear/components/RichTextClear.d.ts +1 -1
  187. package/lib/extensions/Code/components/RichTextCode.d.ts +1 -1
  188. package/lib/extensions/CodeBlock/components/RichTextCodeBlock.d.ts +2 -1
  189. package/lib/extensions/CodeView/components/RichTextCodeView.d.ts +1 -1
  190. package/lib/extensions/Color/components/RichTextColor.d.ts +1 -1
  191. package/lib/extensions/Column/components/RichTextColumn.d.ts +1 -1
  192. package/lib/extensions/Drawer/components/ControlDrawer/ControlDrawer.d.ts +2 -1
  193. package/lib/extensions/Drawer/components/ControlDrawer/icon.d.ts +27 -27
  194. package/lib/extensions/Drawer/components/EditDrawerBlock.d.ts +1 -1
  195. package/lib/extensions/Drawer/components/NodeViewDrawer/NodeViewDrawer.d.ts +2 -1
  196. package/lib/extensions/Drawer/components/RichTextDrawer.d.ts +1 -1
  197. package/lib/extensions/Emoji/components/RichTextEmoji.d.ts +2 -1
  198. package/lib/extensions/Excalidraw/components/NodeViewExcalidraw/NodeViewExcalidraw.d.ts +2 -1
  199. package/lib/extensions/Excalidraw/components/RichTextExcalidraw.d.ts +1 -1
  200. package/lib/extensions/ExportPdf/components/RichTextExportPdf.d.ts +1 -1
  201. package/lib/extensions/ExportWord/components/RichTextExportWord.d.ts +1 -1
  202. package/lib/extensions/FontFamily/components/RichTextFontFamily.d.ts +1 -1
  203. package/lib/extensions/FontSize/components/RichTextFontSize.d.ts +1 -1
  204. package/lib/extensions/FormatPainter/FormatPainter.d.ts +17 -0
  205. package/lib/extensions/FormatPainter/components/RichTextFormatPainter.d.ts +1 -0
  206. package/lib/extensions/FormatPainter/index.d.ts +1 -0
  207. package/lib/extensions/Heading/components/RichTextHeading.d.ts +1 -1
  208. package/lib/extensions/Highlight/components/RichTextHighlight.d.ts +2 -1
  209. package/lib/extensions/History/components/RichTextHistory.d.ts +3 -2
  210. package/lib/extensions/HorizontalRule/components/RichTextHorizontalRule.d.ts +1 -1
  211. package/lib/extensions/Iframe/components/IframeNodeView.d.ts +1 -1
  212. package/lib/extensions/Iframe/components/RichTextIframe.d.ts +1 -1
  213. package/lib/extensions/Image/components/ImageCropper.d.ts +2 -1
  214. package/lib/extensions/Image/components/ImageView.d.ts +2 -1
  215. package/lib/extensions/Image/components/RichTextImage.d.ts +1 -1
  216. package/lib/extensions/ImageGif/components/ImageGifView.d.ts +2 -1
  217. package/lib/extensions/ImageGif/components/RichTextImageGif.d.ts +2 -1
  218. package/lib/extensions/ImportWord/components/RichTextImportWord.d.ts +1 -1
  219. package/lib/extensions/Indent/components/RichTextIndent.d.ts +1 -1
  220. package/lib/extensions/Italic/components/RichTextItalic.d.ts +1 -1
  221. package/lib/extensions/Katex/components/KatexWrapper.d.ts +1 -1
  222. package/lib/extensions/Katex/components/RichTextKatex.d.ts +1 -1
  223. package/lib/extensions/LineHeight/components/RichTextLightHeight.d.ts +1 -1
  224. package/lib/extensions/Link/components/LinkEditBlock.d.ts +1 -1
  225. package/lib/extensions/Link/components/LinkViewBlock.d.ts +2 -1
  226. package/lib/extensions/Link/components/RichTextLink.d.ts +1 -1
  227. package/lib/extensions/Mermaid/components/NodeViewMermaid/NodeViewMermaid.d.ts +2 -1
  228. package/lib/extensions/Mermaid/components/RichTextMermaid.d.ts +1 -1
  229. package/lib/extensions/MoreMark/components/RichTextMoreMark.d.ts +1 -1
  230. package/lib/extensions/OrderedList/components/RichTextOrderedList.d.ts +1 -1
  231. package/lib/extensions/SearchAndReplace/components/RichTextSearchAndReplace.d.ts +1 -1
  232. package/lib/extensions/SlashCommand/components/SlashCommandList.d.ts +1 -1
  233. package/lib/extensions/Strike/components/RichTextStrike.d.ts +1 -1
  234. package/lib/extensions/Table/components/CreateTablePopover.d.ts +2 -1
  235. package/lib/extensions/Table/components/RichTextTable.d.ts +2 -1
  236. package/lib/extensions/TaskList/components/RichTextTaskList.d.ts +1 -1
  237. package/lib/extensions/TextAlign/components/RichTextAlign.d.ts +1 -1
  238. package/lib/extensions/TextDirection/components/RichTextTextDirection.d.ts +1 -1
  239. package/lib/extensions/TextUnderline/components/RichTextUnderline.d.ts +1 -1
  240. package/lib/extensions/Twitter/components/FormEditLinkTwitter.d.ts +1 -1
  241. package/lib/extensions/Twitter/components/NodeViewTweet.d.ts +1 -1
  242. package/lib/extensions/Twitter/components/RichTextTwitter.d.ts +1 -1
  243. package/lib/extensions/Video/components/RichTextVideo.d.ts +1 -1
  244. package/lib/index-BGfIcDCQ.cjs +26 -0
  245. package/lib/index-BaR0Brts.js +1115 -0
  246. package/lib/index-BgNKVyMW.cjs +2 -0
  247. package/lib/index-BpLw6ebr.cjs +1 -0
  248. package/lib/{index-X6WZUM9O.js → index-C52cuQ_Y.js} +1503 -1352
  249. package/lib/index-CDw4Eszh.cjs +12 -0
  250. package/lib/{index-CUvjYuRp.cjs → index-CHVV5iY-.cjs} +1 -1
  251. package/lib/{index-zw-Kd38i.js → index-CJMI7Fjf.js} +1 -1
  252. package/lib/{index-D-Ouz0vF.js → index-DQy9iBzV.js} +1 -1
  253. package/lib/index-Dbm_Mans.js +1756 -0
  254. package/lib/{index-oj858lQO.js → index-DtyAGMbq.js} +208 -208
  255. package/lib/{index-BblvcbTH.js → index-Dx-Dh7KS.js} +1464 -1348
  256. package/lib/{index-BAb_UADw.cjs → index-SEMQrdk2.cjs} +1 -1
  257. package/lib/index-aujjnfSJ.cjs +1 -0
  258. package/lib/index.cjs +1 -1
  259. package/lib/index.js +12 -12
  260. package/lib/{jsx-runtime-CT7Pcg-t.js → jsx-runtime-DE8oVoME.js} +3 -1
  261. package/lib/locale-bundle.cjs +1 -1
  262. package/lib/locale-bundle.js +1 -1
  263. package/lib/locales/index.d.ts +1 -1
  264. package/lib/{popover-BfWFqCIs.js → popover-BB-ZDnqk.js} +1 -1
  265. package/lib/{popover-BPzkMuyi.cjs → popover-CrywEkBR.cjs} +1 -1
  266. package/lib/{renderNodeView-D--fDFov.cjs → renderNodeView-5h3-p80E.cjs} +1 -1
  267. package/lib/{renderNodeView-CfWJK4rG.js → renderNodeView-DoKZ4GYy.js} +2 -2
  268. package/lib/{separator-DpaS43Gt.cjs → separator-BGO9AZp4.cjs} +1 -1
  269. package/lib/{separator-CBPrZizK.js → separator-DuuOJRQd.js} +21 -21
  270. package/lib/store/EditorEditableReactive.d.ts +1 -1
  271. package/lib/store/ThemeColorReactive.d.ts +1 -1
  272. package/lib/style.css +1 -1
  273. package/lib/types.d.ts +2 -2
  274. package/lib/{updatePosition-DGPtRfWN.cjs → updatePosition-B1oRJE1x.cjs} +1 -1
  275. package/lib/{updatePosition-BwzAsiY0.js → updatePosition-CFTYKYNJ.js} +2 -2
  276. package/package.json +79 -66
  277. package/lib/Callout-DWOMZPiP.cjs +0 -1
  278. package/lib/Callout-ZlPQrMEt.js +0 -340
  279. package/lib/Katex-D9FP7EUE.cjs +0 -4
  280. package/lib/Twitter--tfifMt1.cjs +0 -1
  281. package/lib/index-BF3EVCB1.cjs +0 -2
  282. package/lib/index-Bcj8cyOO.cjs +0 -24
  283. package/lib/index-CGjT-a9h.js +0 -1377
  284. package/lib/index-CPTpXLfX.cjs +0 -11
  285. package/lib/index-CWw4s87s.cjs +0 -1
  286. package/lib/index-Cal5SPfB.js +0 -779
  287. package/lib/index-Gi752TMk.cjs +0 -1
  288. package/lib/textarea-Bl64keav.js +0 -20
  289. package/lib/textarea-wvARZKyA.cjs +0 -1
@@ -1,11 +1,11 @@
1
- import { N as jt, m as Wt, a0 as Bt } from "./index-BblvcbTH.js";
2
- import { c as U, s as ot, N as Ft, a as Pt } from "./clsx-0OU6n9va.js";
1
+ import { N as jt, m as Wt, a1 as Bt } from "./index-Dx-Dh7KS.js";
2
+ import { c as U, s as ot, N as Ft, a as Pt } from "./clsx-_bq4MQQ7.js";
3
3
  import { jsx as r, jsxs as h, Fragment as Ut } from "react/jsx-runtime";
4
4
  import Ue, { useState as se, Fragment as zt, useEffect as ze, useMemo as He, createContext as Ht, useLayoutEffect as Gt, useContext as Xt, useRef as z, useCallback as Re, useDebugValue as Kt } from "react";
5
- import { L as Qt, j as Jt, B as Yt, h as Zt, u as en, d as tn, A as nn, I as rn } from "./index-X6WZUM9O.js";
5
+ import { L as Qt, k as Jt, B as Yt, h as Zt, u as en, d as tn, A as nn, I as rn } from "./index-C52cuQ_Y.js";
6
6
  import "./theme.js";
7
- import { u as on } from "./index-oj858lQO.js";
8
- import { P as an, a as sn, b as cn } from "./popover-BfWFqCIs.js";
7
+ import { P as on, a as an, b as sn } from "./popover-BB-ZDnqk.js";
8
+ import { u as cn } from "./index-DtyAGMbq.js";
9
9
  const ln = "_verified_lvyh0_1", Ge = {
10
10
  verified: ln
11
11
  }, dn = () => /* @__PURE__ */ r("svg", {
@@ -120,17 +120,17 @@ const ln = "_verified_lvyh0_1", Ge = {
120
120
  })
121
121
  }), gt = (e) => /* @__PURE__ */ r("img", {
122
122
  ...e
123
- }), mn = "_verifiedOld_lcna5_1", pn = "_verifiedBlue_lcna5_4", vn = "_verifiedGovernment_lcna5_7", Ie = {
123
+ }), mn = "_verifiedOld_lcna5_1", pn = "_verifiedBlue_lcna5_4", vn = "_verifiedGovernment_lcna5_7", Se = {
124
124
  verifiedOld: mn,
125
125
  verifiedBlue: pn,
126
126
  verifiedGovernment: vn
127
127
  }, wt = ({ user: e, className: t }) => {
128
128
  const n = e.verified || e.is_blue_verified || e.verified_type;
129
- let o = /* @__PURE__ */ r(dn, {}), a = Ie.verifiedBlue;
129
+ let o = /* @__PURE__ */ r(dn, {}), a = Se.verifiedBlue;
130
130
  if (n)
131
- switch (e.is_blue_verified || (a = Ie.verifiedOld), e.verified_type) {
131
+ switch (e.is_blue_verified || (a = Se.verifiedOld), e.verified_type) {
132
132
  case "Government":
133
- o = /* @__PURE__ */ r(fn, {}), a = Ie.verifiedGovernment;
133
+ o = /* @__PURE__ */ r(fn, {}), a = Se.verifiedGovernment;
134
134
  break;
135
135
  case "Business":
136
136
  o = /* @__PURE__ */ r(un, {}), a = null;
@@ -154,15 +154,15 @@ const ln = "_verified_lvyh0_1", Ge = {
154
154
  alt: o.description
155
155
  })
156
156
  }) : null;
157
- }, yn = "_header_nqq4j_1", bn = "_avatar_nqq4j_11", Tn = "_avatarOverflow_nqq4j_16", xn = "_avatarSquare_nqq4j_23", Nn = "_avatarShadow_nqq4j_26", Rn = "_author_nqq4j_37", In = "_authorLink_nqq4j_44", Sn = "_authorVerified_nqq4j_53", kn = "_authorLinkText_nqq4j_56", En = "_authorMeta_nqq4j_63", Cn = "_authorFollow_nqq4j_66", On = "_username_nqq4j_69", Ln = "_follow_nqq4j_74", qn = "_separator_nqq4j_82", $n = "_brand_nqq4j_86", Dn = "_twitterIcon_nqq4j_90", N = {
157
+ }, yn = "_header_nqq4j_1", bn = "_avatar_nqq4j_11", Tn = "_avatarOverflow_nqq4j_16", xn = "_avatarSquare_nqq4j_23", Nn = "_avatarShadow_nqq4j_26", Rn = "_author_nqq4j_37", Sn = "_authorLink_nqq4j_44", In = "_authorVerified_nqq4j_53", kn = "_authorLinkText_nqq4j_56", En = "_authorMeta_nqq4j_63", Cn = "_authorFollow_nqq4j_66", On = "_username_nqq4j_69", Ln = "_follow_nqq4j_74", qn = "_separator_nqq4j_82", $n = "_brand_nqq4j_86", Dn = "_twitterIcon_nqq4j_90", N = {
158
158
  header: yn,
159
159
  avatar: bn,
160
160
  avatarOverflow: Tn,
161
161
  avatarSquare: xn,
162
162
  avatarShadow: Nn,
163
163
  author: Rn,
164
- authorLink: In,
165
- authorVerified: Sn,
164
+ authorLink: Sn,
165
+ authorVerified: In,
166
166
  authorLinkText: kn,
167
167
  authorMeta: En,
168
168
  authorFollow: Cn,
@@ -364,8 +364,8 @@ const Hn = {
364
364
  }, nr = (e) => {
365
365
  const { variants: t } = e.video_info;
366
366
  return t.filter((o) => o.content_type === "video/mp4").sort((o, a) => {
367
- var i, s;
368
- return ((i = a.bitrate) != null ? i : 0) - ((s = o.bitrate) != null ? s : 0);
367
+ var s, i;
368
+ return ((s = a.bitrate) != null ? s : 0) - ((i = o.bitrate) != null ? i : 0);
369
369
  });
370
370
  }, rr = (e) => {
371
371
  const t = nr(e);
@@ -377,69 +377,72 @@ function it(e) {
377
377
  indices: e.display_text_range,
378
378
  type: "text"
379
379
  }
380
- ];
381
- return he(n, "hashtag", e.entities.hashtags), he(n, "mention", e.entities.user_mentions), he(n, "url", e.entities.urls), he(n, "symbol", e.entities.symbols), e.entities.media && he(n, "media", e.entities.media), or(e, n), n.map((o) => {
382
- const a = t.slice(o.indices[0], o.indices[1]).join("");
383
- switch (o.type) {
380
+ ], { entities: o } = e;
381
+ return o && (he(n, "hashtag", o.hashtags), he(n, "mention", o.user_mentions), he(n, "url", o.urls), he(n, "symbol", o.symbols), he(n, "media", o.media)), or(e, n), n.map((a) => {
382
+ const s = t.slice(a.indices[0], a.indices[1]).join("");
383
+ switch (a.type) {
384
384
  case "hashtag":
385
- return Object.assign(o, {
386
- href: Zn(o),
387
- text: a
385
+ return Object.assign(a, {
386
+ href: Zn(a),
387
+ text: s
388
388
  });
389
389
  case "mention":
390
- return Object.assign(o, {
391
- href: Tt(o.screen_name),
392
- text: a
390
+ return Object.assign(a, {
391
+ href: Tt(a.screen_name),
392
+ text: s
393
393
  });
394
394
  case "url":
395
395
  case "media":
396
- return Object.assign(o, {
397
- href: o.expanded_url,
398
- text: o.display_url
396
+ return Object.assign(a, {
397
+ href: a.expanded_url,
398
+ text: a.display_url
399
399
  });
400
400
  case "symbol":
401
- return Object.assign(o, {
402
- href: er(o),
403
- text: a
401
+ return Object.assign(a, {
402
+ href: er(a),
403
+ text: s
404
404
  });
405
405
  default:
406
- return Object.assign(o, {
407
- text: a
406
+ return Object.assign(a, {
407
+ text: s
408
408
  });
409
409
  }
410
410
  });
411
411
  }
412
412
  function he(e, t, n) {
413
- for (const o of n)
414
- for (const [a, i] of e.entries()) {
415
- if (i.indices[0] > o.indices[0] || i.indices[1] < o.indices[1])
416
- continue;
417
- const s = [
418
- {
419
- ...o,
420
- type: t
421
- }
422
- ];
423
- i.indices[0] < o.indices[0] && s.unshift({
424
- indices: [
425
- i.indices[0],
426
- o.indices[0]
427
- ],
428
- type: "text"
429
- }), i.indices[1] > o.indices[1] && s.push({
430
- indices: [
431
- o.indices[1],
432
- i.indices[1]
433
- ],
434
- type: "text"
435
- }), e.splice(a, 1, ...s);
436
- break;
437
- }
413
+ if (n != null && n.length)
414
+ for (const o of n)
415
+ for (const [a, s] of e.entries()) {
416
+ if (s.indices[0] > o.indices[0] || s.indices[1] < o.indices[1])
417
+ continue;
418
+ const i = [
419
+ {
420
+ ...o,
421
+ type: t
422
+ }
423
+ ];
424
+ s.indices[0] < o.indices[0] && i.unshift({
425
+ indices: [
426
+ s.indices[0],
427
+ o.indices[0]
428
+ ],
429
+ type: "text"
430
+ }), s.indices[1] > o.indices[1] && i.push({
431
+ indices: [
432
+ o.indices[1],
433
+ s.indices[1]
434
+ ],
435
+ type: "text"
436
+ }), e.splice(a, 1, ...i);
437
+ break;
438
+ }
438
439
  }
439
440
  function or(e, t) {
440
- e.entities.media && e.entities.media[0].indices[0] < e.display_text_range[1] && (e.display_text_range[1] = e.entities.media[0].indices[0]);
441
- const n = t.at(-1);
442
- n && n.indices[1] > e.display_text_range[1] && (n.indices[1] = e.display_text_range[1]);
441
+ var n;
442
+ const o = (n = e.entities) == null ? void 0 : n.media;
443
+ o != null && o.length && o[0].indices[0] < e.display_text_range[1] && (e.display_text_range[1] = o[0].indices[0]);
444
+ const a = t.at(-1);
445
+ a && a.indices[1] > e.display_text_range[1] && (a.indices[1] = e.display_text_range[1]);
443
446
  }
444
447
  const ar = (e) => ({
445
448
  ...e,
@@ -476,7 +479,7 @@ const ar = (e) => ({
476
479
  watchOnTwitter: wr,
477
480
  viewReplies: yr
478
481
  }, br = ({ tweet: e, media: t }) => {
479
- const [n, o] = se(!0), [a, i] = se(!1), [s, c] = se(!1), f = rr(t);
482
+ const [n, o] = se(!0), [a, s] = se(!1), [i, c] = se(!1), f = rr(t);
480
483
  let u = 0;
481
484
  return /* @__PURE__ */ h(Ut, {
482
485
  children: [
@@ -488,11 +491,11 @@ const ar = (e) => ({
488
491
  preload: "none",
489
492
  tabIndex: n ? -1 : 0,
490
493
  onPlay: () => {
491
- u && window.clearTimeout(u), a || i(!0), s && c(!1);
494
+ u && window.clearTimeout(u), a || s(!0), i && c(!1);
492
495
  },
493
496
  onPause: () => {
494
497
  u && window.clearTimeout(u), u = window.setTimeout(() => {
495
- a && i(!1), u = 0;
498
+ a && s(!1), u = 0;
496
499
  }, 100);
497
500
  },
498
501
  onEnded: () => {
@@ -510,9 +513,9 @@ const ar = (e) => ({
510
513
  onClick: (v) => {
511
514
  const m = v.currentTarget.previousSibling;
512
515
  v.preventDefault(), o(!1), m.load(), m.play().then(() => {
513
- i(!0), m.focus();
516
+ s(!0), m.focus();
514
517
  }).catch((T) => {
515
- console.error("Error playing video:", T), o(!0), i(!1);
518
+ console.error("Error playing video:", T), o(!0), s(!1);
516
519
  });
517
520
  },
518
521
  children: /* @__PURE__ */ r("svg", {
@@ -526,7 +529,7 @@ const ar = (e) => ({
526
529
  })
527
530
  })
528
531
  }),
529
- !a && !s && /* @__PURE__ */ r("div", {
532
+ !a && !i && /* @__PURE__ */ r("div", {
530
533
  className: ae.watchOnTwitter,
531
534
  children: /* @__PURE__ */ r("a", {
532
535
  href: e.url,
@@ -536,7 +539,7 @@ const ar = (e) => ({
536
539
  children: n ? "Watch on X" : "Continue watching on X"
537
540
  })
538
541
  }),
539
- s && /* @__PURE__ */ r("a", {
542
+ i && /* @__PURE__ */ r("a", {
540
543
  href: e.url,
541
544
  className: U(ae.anchor, ae.viewReplies),
542
545
  target: "_blank",
@@ -554,15 +557,13 @@ const ar = (e) => ({
554
557
  paddingBottom: `${n}%`
555
558
  };
556
559
  }, Nt = ({ tweet: e, components: t, quoted: n }) => {
557
- var o, a, i;
558
- const s = (i = (o = e.mediaDetails) == null ? void 0 : o.length) != null ? i : 0;
559
- var c;
560
- const f = (c = t == null ? void 0 : t.MediaImg) != null ? c : Tr;
560
+ var o, a, s, i;
561
+ const c = (o = (s = e.mediaDetails) == null ? void 0 : s.length) != null ? o : 0, f = (a = t == null ? void 0 : t.MediaImg) != null ? a : Tr;
561
562
  return /* @__PURE__ */ r("div", {
562
563
  className: U(E.root, !n && E.rounded),
563
564
  children: /* @__PURE__ */ r("div", {
564
- className: U(E.mediaWrapper, s > 1 && E.grid2Columns, s === 3 && E.grid3, s > 4 && E.grid2x2),
565
- children: (a = e.mediaDetails) == null ? void 0 : a.map((u) => /* @__PURE__ */ r(zt, {
565
+ className: U(E.mediaWrapper, c > 1 && E.grid2Columns, c === 3 && E.grid3, c > 4 && E.grid2x2),
566
+ children: (i = e.mediaDetails) == null ? void 0 : i.map((u) => /* @__PURE__ */ r(zt, {
566
567
  children: u.type === "photo" ? /* @__PURE__ */ h("a", {
567
568
  href: e.url,
568
569
  className: U(E.mediaContainer, E.mediaLink),
@@ -571,7 +572,7 @@ const ar = (e) => ({
571
572
  children: [
572
573
  /* @__PURE__ */ r("div", {
573
574
  className: E.skeleton,
574
- style: ct(u, s)
575
+ style: ct(u, c)
575
576
  }),
576
577
  /* @__PURE__ */ r(f, {
577
578
  src: xt(u, "small"),
@@ -585,7 +586,7 @@ const ar = (e) => ({
585
586
  children: [
586
587
  /* @__PURE__ */ r("div", {
587
588
  className: E.skeleton,
588
- style: ct(u, s)
589
+ style: ct(u, c)
589
590
  }),
590
591
  /* @__PURE__ */ r(br, {
591
592
  tweet: e,
@@ -611,18 +612,18 @@ const ar = (e) => ({
611
612
  children: n
612
613
  })
613
614
  });
614
- }, Ir = "_info_19qcj_1", Sr = "_infoLink_19qcj_10", kr = "_infoIcon_19qcj_30", Se = {
615
- info: Ir,
616
- infoLink: Sr,
615
+ }, Sr = "_info_19qcj_1", Ir = "_infoLink_19qcj_10", kr = "_infoIcon_19qcj_30", Ie = {
616
+ info: Sr,
617
+ infoLink: Ir,
617
618
  infoIcon: kr
618
619
  }, Er = ({ tweet: e }) => /* @__PURE__ */ h("div", {
619
- className: Se.info,
620
+ className: Ie.info,
620
621
  children: [
621
622
  /* @__PURE__ */ r(Rr, {
622
623
  tweet: e
623
624
  }),
624
625
  /* @__PURE__ */ r("a", {
625
- className: Se.infoLink,
626
+ className: Ie.infoLink,
626
627
  href: "https://help.x.com/en/x-for-websites-ads-info-and-privacy",
627
628
  target: "_blank",
628
629
  rel: "noopener noreferrer",
@@ -630,7 +631,7 @@ const ar = (e) => ({
630
631
  children: /* @__PURE__ */ r("svg", {
631
632
  viewBox: "0 0 24 24",
632
633
  "aria-hidden": "true",
633
- className: Se.infoIcon,
634
+ className: Ie.infoIcon,
634
635
  children: /* @__PURE__ */ r("g", {
635
636
  children: /* @__PURE__ */ r("path", {
636
637
  d: "M13.5 8.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5S11.17 7 12 7s1.5.67 1.5 1.5zM13 17v-5h-2v5h2zm-1 5.25c5.66 0 10.25-4.59 10.25-10.25S17.66 1.75 12 1.75 1.75 6.34 1.75 12 6.34 22.25 12 22.25zM20.25 12c0 4.56-3.69 8.25-8.25 8.25S3.75 16.56 3.75 12 7.44 3.75 12 3.75s8.25 3.69 8.25 8.25z"
@@ -639,7 +640,7 @@ const ar = (e) => ({
639
640
  })
640
641
  })
641
642
  ]
642
- }), Cr = "_actions_n2anf_1", Or = "_like_n2anf_13", Lr = "_reply_n2anf_14", qr = "_copy_n2anf_15", $r = "_likeIconWrapper_n2anf_27", Dr = "_likeCount_n2anf_30", Ar = "_replyIconWrapper_n2anf_35", Vr = "_copyIconWrapper_n2anf_36", Mr = "_likeIcon_n2anf_27", jr = "_replyIcon_n2anf_35", Wr = "_copyIcon_n2anf_36", Br = "_replyText_n2anf_56", Fr = "_copyText_n2anf_57", S = {
643
+ }), Cr = "_actions_n2anf_1", Or = "_like_n2anf_13", Lr = "_reply_n2anf_14", qr = "_copy_n2anf_15", $r = "_likeIconWrapper_n2anf_27", Dr = "_likeCount_n2anf_30", Ar = "_replyIconWrapper_n2anf_35", Vr = "_copyIconWrapper_n2anf_36", Mr = "_likeIcon_n2anf_27", jr = "_replyIcon_n2anf_35", Wr = "_copyIcon_n2anf_36", Br = "_replyText_n2anf_56", Fr = "_copyText_n2anf_57", I = {
643
644
  actions: Cr,
644
645
  like: Or,
645
646
  reply: Lr,
@@ -668,15 +669,15 @@ const ar = (e) => ({
668
669
  t
669
670
  ]), /* @__PURE__ */ h("button", {
670
671
  type: "button",
671
- className: S.copy,
672
+ className: I.copy,
672
673
  "aria-label": "Copy link",
673
674
  onClick: o,
674
675
  children: [
675
676
  /* @__PURE__ */ r("div", {
676
- className: S.copyIconWrapper,
677
+ className: I.copyIconWrapper,
677
678
  children: t ? /* @__PURE__ */ r("svg", {
678
679
  viewBox: "0 0 24 24",
679
- className: S.copyIcon,
680
+ className: I.copyIcon,
680
681
  "aria-hidden": "true",
681
682
  children: /* @__PURE__ */ r("g", {
682
683
  children: /* @__PURE__ */ r("path", {
@@ -685,7 +686,7 @@ const ar = (e) => ({
685
686
  })
686
687
  }) : /* @__PURE__ */ r("svg", {
687
688
  viewBox: "0 0 24 24",
688
- className: S.copyIcon,
689
+ className: I.copyIcon,
689
690
  "aria-hidden": "true",
690
691
  children: /* @__PURE__ */ r("g", {
691
692
  children: /* @__PURE__ */ r("path", {
@@ -695,7 +696,7 @@ const ar = (e) => ({
695
696
  })
696
697
  }),
697
698
  /* @__PURE__ */ r("span", {
698
- className: S.copyText,
699
+ className: I.copyText,
699
700
  children: t ? "Copied!" : "Copy link"
700
701
  })
701
702
  ]
@@ -703,20 +704,20 @@ const ar = (e) => ({
703
704
  }, Ur = ({ tweet: e }) => {
704
705
  const t = De(e.favorite_count);
705
706
  return /* @__PURE__ */ h("div", {
706
- className: S.actions,
707
+ className: I.actions,
707
708
  children: [
708
709
  /* @__PURE__ */ h("a", {
709
- className: S.like,
710
+ className: I.like,
710
711
  href: e.like_url,
711
712
  target: "_blank",
712
713
  rel: "noopener noreferrer",
713
714
  "aria-label": `Like. This Tweet has ${t} likes`,
714
715
  children: [
715
716
  /* @__PURE__ */ r("div", {
716
- className: S.likeIconWrapper,
717
+ className: I.likeIconWrapper,
717
718
  children: /* @__PURE__ */ r("svg", {
718
719
  viewBox: "0 0 24 24",
719
- className: S.likeIcon,
720
+ className: I.likeIcon,
720
721
  "aria-hidden": "true",
721
722
  children: /* @__PURE__ */ r("g", {
722
723
  children: /* @__PURE__ */ r("path", {
@@ -726,23 +727,23 @@ const ar = (e) => ({
726
727
  })
727
728
  }),
728
729
  /* @__PURE__ */ r("span", {
729
- className: S.likeCount,
730
+ className: I.likeCount,
730
731
  children: t
731
732
  })
732
733
  ]
733
734
  }),
734
735
  /* @__PURE__ */ h("a", {
735
- className: S.reply,
736
+ className: I.reply,
736
737
  href: e.reply_url,
737
738
  target: "_blank",
738
739
  rel: "noopener noreferrer",
739
740
  "aria-label": "Reply to this Tweet on Twitter",
740
741
  children: [
741
742
  /* @__PURE__ */ r("div", {
742
- className: S.replyIconWrapper,
743
+ className: I.replyIconWrapper,
743
744
  children: /* @__PURE__ */ r("svg", {
744
745
  viewBox: "0 0 24 24",
745
- className: S.replyIcon,
746
+ className: I.replyIcon,
746
747
  "aria-hidden": "true",
747
748
  children: /* @__PURE__ */ r("g", {
748
749
  children: /* @__PURE__ */ r("path", {
@@ -752,7 +753,7 @@ const ar = (e) => ({
752
753
  })
753
754
  }),
754
755
  /* @__PURE__ */ r("span", {
755
- className: S.replyText,
756
+ className: I.replyText,
756
757
  children: "Reply"
757
758
  })
758
759
  ]
@@ -799,9 +800,8 @@ const ar = (e) => ({
799
800
  authorText: ro,
800
801
  username: oo
801
802
  }, ao = ({ tweet: e, components: t }) => {
802
- const { user: n } = e;
803
- var o;
804
- const a = (o = t == null ? void 0 : t.AvatarImg) != null ? o : gt;
803
+ var n;
804
+ const { user: o } = e, a = (n = t == null ? void 0 : t.AvatarImg) != null ? n : gt;
805
805
  return /* @__PURE__ */ h("div", {
806
806
  className: Q.header,
807
807
  children: [
@@ -811,10 +811,10 @@ const ar = (e) => ({
811
811
  target: "_blank",
812
812
  rel: "noopener noreferrer",
813
813
  children: /* @__PURE__ */ r("div", {
814
- className: U(Q.avatarOverflow, n.profile_image_shape === "Square" && Q.avatarSquare),
814
+ className: U(Q.avatarOverflow, o.profile_image_shape === "Square" && Q.avatarSquare),
815
815
  children: /* @__PURE__ */ r(a, {
816
- src: n.profile_image_url_https,
817
- alt: n.name,
816
+ src: o.profile_image_url_https,
817
+ alt: o.name,
818
818
  width: 20,
819
819
  height: 20
820
820
  })
@@ -826,23 +826,23 @@ const ar = (e) => ({
826
826
  /* @__PURE__ */ r("div", {
827
827
  className: Q.authorText,
828
828
  children: /* @__PURE__ */ r("span", {
829
- title: n.name,
830
- children: n.name
829
+ title: o.name,
830
+ children: o.name
831
831
  })
832
832
  }),
833
833
  /* @__PURE__ */ r(wt, {
834
- user: n
834
+ user: o
835
835
  }),
836
836
  /* @__PURE__ */ r(yt, {
837
- user: n
837
+ user: o
838
838
  }),
839
839
  /* @__PURE__ */ r("div", {
840
840
  className: Q.username,
841
841
  children: /* @__PURE__ */ h("span", {
842
- title: `@${n.screen_name}`,
842
+ title: `@${o.screen_name}`,
843
843
  children: [
844
844
  "@",
845
- n.screen_name
845
+ o.screen_name
846
846
  ]
847
847
  })
848
848
  })
@@ -970,7 +970,7 @@ const ar = (e) => ({
970
970
  }
971
971
  })
972
972
  ]
973
- }), Rt = 0, It = 1, St = 2, dt = 3;
973
+ }), Rt = 0, St = 1, It = 2, dt = 3;
974
974
  var ut = Object.prototype.hasOwnProperty;
975
975
  function Ae(e, t) {
976
976
  var n, o;
@@ -993,10 +993,10 @@ function Ae(e, t) {
993
993
  return e !== e && t !== t;
994
994
  }
995
995
  const F = /* @__PURE__ */ new WeakMap(), P = () => {
996
- }, I = (
996
+ }, S = (
997
997
  /*#__NOINLINE__*/
998
998
  P()
999
- ), Ve = Object, d = (e) => e === I, W = (e) => typeof e == "function", H = (e, t) => ({
999
+ ), Ve = Object, d = (e) => e === S, W = (e) => typeof e == "function", H = (e, t) => ({
1000
1000
  ...e,
1001
1001
  ...t
1002
1002
  }), kt = (e) => W(e.then), Ee = {}, we = {}, Ke = "undefined", _e = typeof window != Ke, Me = typeof document != Ke, yo = _e && "Deno" in window, bo = () => _e && typeof window.requestAnimationFrame != Ke, Et = (e, t) => {
@@ -1038,10 +1038,10 @@ const To = () => je, [We, Be] = _e && window.addEventListener ? [
1038
1038
  return We("online", t), We("offline", n), () => {
1039
1039
  Be("online", t), Be("offline", n);
1040
1040
  };
1041
- }, Io = {
1041
+ }, So = {
1042
1042
  isOnline: To,
1043
1043
  isVisible: xo
1044
- }, So = {
1044
+ }, Io = {
1045
1045
  initFocus: No,
1046
1046
  initReconnect: Ro
1047
1047
  }, ft = !Ue.useId, ie = !_e || yo, ko = (e) => bo() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Ce = ie ? ze : Gt, Oe = typeof navigator < "u" && navigator.connection, ht = !ie && Oe && ([
@@ -1050,25 +1050,25 @@ const To = () => je, [We, Be] = _e && window.addEventListener ? [
1050
1050
  ].includes(Oe.effectiveType) || Oe.saveData), ye = /* @__PURE__ */ new WeakMap(), Eo = (e) => Ve.prototype.toString.call(e), Le = (e, t) => e === `[object ${t}]`;
1051
1051
  let Co = 0;
1052
1052
  const Fe = (e) => {
1053
- const t = typeof e, n = Eo(e), o = Le(n, "Date"), a = Le(n, "RegExp"), i = Le(n, "Object");
1054
- let s, c;
1053
+ const t = typeof e, n = Eo(e), o = Le(n, "Date"), a = Le(n, "RegExp"), s = Le(n, "Object");
1054
+ let i, c;
1055
1055
  if (Ve(e) === e && !o && !a) {
1056
- if (s = ye.get(e), s) return s;
1057
- if (s = ++Co + "~", ye.set(e, s), Array.isArray(e)) {
1058
- for (s = "@", c = 0; c < e.length; c++)
1059
- s += Fe(e[c]) + ",";
1060
- ye.set(e, s);
1056
+ if (i = ye.get(e), i) return i;
1057
+ if (i = ++Co + "~", ye.set(e, i), Array.isArray(e)) {
1058
+ for (i = "@", c = 0; c < e.length; c++)
1059
+ i += Fe(e[c]) + ",";
1060
+ ye.set(e, i);
1061
1061
  }
1062
- if (i) {
1063
- s = "#";
1062
+ if (s) {
1063
+ i = "#";
1064
1064
  const f = Ve.keys(e).sort();
1065
1065
  for (; !d(c = f.pop()); )
1066
- d(e[c]) || (s += c + ":" + Fe(e[c]) + ",");
1067
- ye.set(e, s);
1066
+ d(e[c]) || (i += c + ":" + Fe(e[c]) + ",");
1067
+ ye.set(e, i);
1068
1068
  }
1069
1069
  } else
1070
- s = o ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
1071
- return s;
1070
+ i = o ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
1071
+ return i;
1072
1072
  }, Qe = (e) => {
1073
1073
  if (W(e))
1074
1074
  try {
@@ -1085,16 +1085,16 @@ const Fe = (e) => {
1085
1085
  let Oo = 0;
1086
1086
  const Pe = () => ++Oo;
1087
1087
  async function Ct(...e) {
1088
- const [t, n, o, a] = e, i = H({
1088
+ const [t, n, o, a] = e, s = H({
1089
1089
  populateCache: !0,
1090
1090
  throwOnError: !0
1091
1091
  }, typeof a == "boolean" ? {
1092
1092
  revalidate: a
1093
1093
  } : a || {});
1094
- let s = i.populateCache;
1095
- const c = i.rollbackOnError;
1096
- let f = i.optimisticData;
1097
- const u = (T) => typeof c == "function" ? c(T) : c !== !1, v = i.throwOnError;
1094
+ let i = s.populateCache;
1095
+ const c = s.rollbackOnError;
1096
+ let f = s.optimisticData;
1097
+ const u = (T) => typeof c == "function" ? c(T) : c !== !1, v = s.throwOnError;
1098
1098
  if (W(n)) {
1099
1099
  const T = n, R = [], k = t.keys();
1100
1100
  for (const L of k)
@@ -1108,7 +1108,7 @@ async function Ct(...e) {
1108
1108
  if (!R) return;
1109
1109
  const [k, L] = Et(t, R), [D, ce, l, me] = F.get(t), J = () => {
1110
1110
  const q = D[R];
1111
- return (W(i.revalidate) ? i.revalidate(k().data, T) : i.revalidate !== !1) && (delete l[R], delete me[R], q && q[0]) ? q[0](St).then(() => k().data) : k().data;
1111
+ return (W(s.revalidate) ? s.revalidate(k().data, T) : s.revalidate !== !1) && (delete l[R], delete me[R], q && q[0]) ? q[0](It).then(() => k().data) : k().data;
1112
1112
  };
1113
1113
  if (e.length < 3)
1114
1114
  return J();
@@ -1134,27 +1134,27 @@ async function Ct(...e) {
1134
1134
  }), Y !== ce[R][0]) {
1135
1135
  if (V) throw A;
1136
1136
  return x;
1137
- } else V && p && u(A) && (s = !0, L({
1137
+ } else V && p && u(A) && (i = !0, L({
1138
1138
  data: G,
1139
- _c: I
1139
+ _c: S
1140
1140
  }));
1141
- if (s && !V)
1142
- if (W(s)) {
1143
- const q = s(x, G);
1141
+ if (i && !V)
1142
+ if (W(i)) {
1143
+ const q = i(x, G);
1144
1144
  L({
1145
1145
  data: q,
1146
- error: I,
1147
- _c: I
1146
+ error: S,
1147
+ _c: S
1148
1148
  });
1149
1149
  } else
1150
1150
  L({
1151
1151
  data: x,
1152
- error: I,
1153
- _c: I
1152
+ error: S,
1153
+ _c: S
1154
1154
  });
1155
1155
  if (ce[R][1] = Pe(), Promise.resolve(J()).then(() => {
1156
1156
  L({
1157
- _c: I
1157
+ _c: S
1158
1158
  });
1159
1159
  }), V) {
1160
1160
  if (v) throw A;
@@ -1168,14 +1168,14 @@ const _t = (e, t) => {
1168
1168
  e[n][0] && e[n][0](t);
1169
1169
  }, Lo = (e, t) => {
1170
1170
  if (!F.has(e)) {
1171
- const n = H(So, t), o = /* @__PURE__ */ Object.create(null), a = Ct.bind(I, e);
1172
- let i = P;
1173
- const s = /* @__PURE__ */ Object.create(null), c = (v, m) => {
1174
- const T = s[v] || [];
1175
- return s[v] = T, T.push(m), () => T.splice(T.indexOf(m), 1);
1171
+ const n = H(Io, t), o = /* @__PURE__ */ Object.create(null), a = Ct.bind(S, e);
1172
+ let s = P;
1173
+ const i = /* @__PURE__ */ Object.create(null), c = (v, m) => {
1174
+ const T = i[v] || [];
1175
+ return i[v] = T, T.push(m), () => T.splice(T.indexOf(m), 1);
1176
1176
  }, f = (v, m, T) => {
1177
1177
  e.set(v, m);
1178
- const R = s[v];
1178
+ const R = i[v];
1179
1179
  if (R)
1180
1180
  for (const k of R)
1181
1181
  k(m, T);
@@ -1189,8 +1189,8 @@ const _t = (e, t) => {
1189
1189
  f,
1190
1190
  c
1191
1191
  ]), !ie)) {
1192
- const v = n.initFocus(setTimeout.bind(I, _t.bind(I, o, Rt))), m = n.initReconnect(setTimeout.bind(I, _t.bind(I, o, It)));
1193
- i = () => {
1192
+ const v = n.initFocus(setTimeout.bind(S, _t.bind(S, o, Rt))), m = n.initReconnect(setTimeout.bind(S, _t.bind(S, o, St)));
1193
+ s = () => {
1194
1194
  v && v(), m && m(), F.delete(e);
1195
1195
  };
1196
1196
  }
@@ -1199,7 +1199,7 @@ const _t = (e, t) => {
1199
1199
  e,
1200
1200
  a,
1201
1201
  u,
1202
- i
1202
+ s
1203
1203
  ];
1204
1204
  }
1205
1205
  return [
@@ -1207,8 +1207,8 @@ const _t = (e, t) => {
1207
1207
  F.get(e)[4]
1208
1208
  ];
1209
1209
  }, qo = (e, t, n, o, a) => {
1210
- const i = n.errorRetryCount, s = a.retryCount, c = ~~((Math.random() + 0.5) * (1 << (s < 8 ? s : 8))) * n.errorRetryInterval;
1211
- !d(i) && s > i || setTimeout(o, c, a);
1210
+ const s = n.errorRetryCount, i = a.retryCount, c = ~~((Math.random() + 0.5) * (1 << (i < 8 ? i : 8))) * n.errorRetryInterval;
1211
+ !d(s) && i > s || setTimeout(o, c, a);
1212
1212
  }, $o = Ae, [Ot, Do] = Lo(/* @__PURE__ */ new Map()), Ao = H(
1213
1213
  {
1214
1214
  // events
@@ -1235,12 +1235,12 @@ const _t = (e, t) => {
1235
1235
  fallback: {}
1236
1236
  },
1237
1237
  // use web preset by default
1238
- Io
1238
+ So
1239
1239
  ), Vo = (e, t) => {
1240
1240
  const n = H(e, t);
1241
1241
  if (t) {
1242
- const { use: o, fallback: a } = e, { use: i, fallback: s } = t;
1243
- o && i && (n.use = o.concat(i)), a && s && (n.fallback = H(a, s));
1242
+ const { use: o, fallback: a } = e, { use: s, fallback: i } = t;
1243
+ o && s && (n.use = o.concat(s)), a && i && (n.fallback = H(a, i));
1244
1244
  }
1245
1245
  return n;
1246
1246
  }, Mo = Ht({}), jo = "$inf$", Lt = _e && window.__SWR_DEVTOOLS_USE__, Wo = Lt ? window.__SWR_DEVTOOLS_USE__ : [], Bo = () => {
@@ -1258,19 +1258,19 @@ const _t = (e, t) => {
1258
1258
  return He(() => H(Ao, e), [
1259
1259
  e
1260
1260
  ]);
1261
- }, Uo = (e) => (t, n, o) => e(t, n && ((...i) => {
1262
- const [s] = Qe(t), [, , , c] = F.get(Ot);
1263
- if (s.startsWith(jo))
1264
- return n(...i);
1265
- const f = c[s];
1266
- return d(f) ? n(...i) : (delete c[s], f);
1261
+ }, Uo = (e) => (t, n, o) => e(t, n && ((...s) => {
1262
+ const [i] = Qe(t), [, , , c] = F.get(Ot);
1263
+ if (i.startsWith(jo))
1264
+ return n(...s);
1265
+ const f = c[i];
1266
+ return d(f) ? n(...s) : (delete c[i], f);
1267
1267
  }), o), zo = Wo.concat(Uo), Ho = (e) => function(...n) {
1268
- const o = Po(), [a, i, s] = Fo(n), c = Vo(o, s);
1268
+ const o = Po(), [a, s, i] = Fo(n), c = Vo(o, i);
1269
1269
  let f = e;
1270
1270
  const { use: u } = c, v = (u || []).concat(zo);
1271
1271
  for (let m = v.length; m--; )
1272
1272
  f = v[m](f);
1273
- return f(a, i || c.fetcher || null, c);
1273
+ return f(a, s || c.fetcher || null, c);
1274
1274
  }, Go = (e, t, n) => {
1275
1275
  const o = t[e] || (t[e] = []);
1276
1276
  return o.push(n), () => {
@@ -1300,8 +1300,8 @@ const qe = Ue.use || // This extra generic is to avoid TypeScript mixing up the
1300
1300
  }
1301
1301
  }), $e = {
1302
1302
  dedupe: !0
1303
- }, mt = Promise.resolve(I), Xo = () => P, Ko = (e, t, n) => {
1304
- const { cache: o, compare: a, suspense: i, fallbackData: s, revalidateOnMount: c, revalidateIfStale: f, refreshInterval: u, refreshWhenHidden: v, refreshWhenOffline: m, keepPreviousData: T, strictServerPrefetchWarning: R } = n, [k, L, D, ce] = F.get(o), [l, me] = Qe(e), J = z(!1), x = z(!1), A = z(l), V = z(t), Y = z(n), p = () => Y.current, Z = () => p().isVisible() && p().isOnline(), [M, ee, G, q] = Et(o, l), te = z({}).current, ne = d(s) ? d(n.fallback) ? I : n.fallback[l] : s, Je = (_, g) => {
1303
+ }, mt = Promise.resolve(S), Xo = () => P, Ko = (e, t, n) => {
1304
+ const { cache: o, compare: a, suspense: s, fallbackData: i, revalidateOnMount: c, revalidateIfStale: f, refreshInterval: u, refreshWhenHidden: v, refreshWhenOffline: m, keepPreviousData: T, strictServerPrefetchWarning: R } = n, [k, L, D, ce] = F.get(o), [l, me] = Qe(e), J = z(!1), x = z(!1), A = z(l), V = z(t), Y = z(n), p = () => Y.current, Z = () => p().isVisible() && p().isOnline(), [M, ee, G, q] = Et(o, l), te = z({}).current, ne = d(i) ? d(n.fallback) ? S : n.fallback[l] : i, Je = (_, g) => {
1305
1305
  for (const w in te) {
1306
1306
  const y = w;
1307
1307
  if (y === "data") {
@@ -1350,8 +1350,8 @@ const qe = Ue.use || // This extra generic is to avoid TypeScript mixing up the
1350
1350
  // eslint-disable-next-line react-hooks/rules-of-hooks
1351
1351
  ot.useSyncExternalStore(Xo, () => (le.current = !1, le), () => (le.current = !0, le));
1352
1352
  const Dt = le.current;
1353
- R && Dt && !i && K && console.warn(`Missing pre-initiated data for serialized key "${l}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);
1354
- const Ze = !l || !t || p().isPaused() || $t && !d(pe) ? !1 : be && !d(c) ? c : i ? d(X) ? !1 : f : d(X) || f, et = be && Ze, At = d(re.isValidating) ? et : re.isValidating, Vt = d(re.isLoading) ? et : re.isLoading, de = Re(
1353
+ R && Dt && !s && K && console.warn(`Missing pre-initiated data for serialized key "${l}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);
1354
+ const Ze = !l || !t || p().isPaused() || $t && !d(pe) ? !1 : be && !d(c) ? c : s ? d(X) ? !1 : f : d(X) || f, et = be && Ze, At = d(re.isValidating) ? et : re.isValidating, Vt = d(re.isLoading) ? et : re.isLoading, de = Re(
1355
1355
  async (_) => {
1356
1356
  const g = V.current;
1357
1357
  if (!l || !g || x.current || p().isPaused())
@@ -1377,7 +1377,7 @@ const qe = Ue.use || // This extra generic is to avoid TypeScript mixing up the
1377
1377
  Pe()
1378
1378
  ]), [w, y] = D[l], w = await w, b && setTimeout(nt, n.dedupingInterval), !D[l] || D[l][1] !== y)
1379
1379
  return b && $() && p().onDiscarded(l), !1;
1380
- ue.error = I;
1380
+ ue.error = S;
1381
1381
  const O = L[l];
1382
1382
  if (!d(O) && // case 1
1383
1383
  (y <= O[0] || // case 2
@@ -1424,17 +1424,17 @@ const qe = Ue.use || // This extra generic is to avoid TypeScript mixing up the
1424
1424
  V.current = t, Y.current = n, d(oe) || (Te.current = oe);
1425
1425
  }), Ce(() => {
1426
1426
  if (!l) return;
1427
- const _ = de.bind(I, $e);
1427
+ const _ = de.bind(S, $e);
1428
1428
  let g = 0;
1429
1429
  p().revalidateOnFocus && (g = Date.now() + p().focusThrottleInterval);
1430
1430
  const y = Go(l, k, (j, C = {}) => {
1431
1431
  if (j == Rt) {
1432
1432
  const b = Date.now();
1433
1433
  p().revalidateOnFocus && b > g && Z() && (g = b + p().focusThrottleInterval, _());
1434
- } else if (j == It)
1434
+ } else if (j == St)
1435
1435
  p().revalidateOnReconnect && Z() && _();
1436
1436
  else {
1437
- if (j == St)
1437
+ if (j == It)
1438
1438
  return de();
1439
1439
  if (j == dt)
1440
1440
  return de(C);
@@ -1464,7 +1464,7 @@ const qe = Ue.use || // This extra generic is to avoid TypeScript mixing up the
1464
1464
  v,
1465
1465
  m,
1466
1466
  l
1467
- ]), Kt(ve), i) {
1467
+ ]), Kt(ve), s) {
1468
1468
  if (!ft && ie && K)
1469
1469
  throw new Error("Fallback data is required when using Suspense in SSR.");
1470
1470
  K && (V.current = t, Y.current = n, x.current = !1);
@@ -1506,7 +1506,7 @@ async function Zo([e, t]) {
1506
1506
  });
1507
1507
  }
1508
1508
  const ea = (e, t, n) => {
1509
- const { isLoading: o, data: a, error: i } = Jo(() => t || e ? [
1509
+ const { isLoading: o, data: a, error: s } = Jo(() => t || e ? [
1510
1510
  t || e && `${Yo}/api/tweet/${e}`,
1511
1511
  n
1512
1512
  ] : null, Zo, {
@@ -1517,21 +1517,21 @@ const ea = (e, t, n) => {
1517
1517
  return {
1518
1518
  // If data is `undefined` then it might be the first render where SWR hasn't started doing
1519
1519
  // any work, so we set `isLoading` to `true`.
1520
- isLoading: !!(o || a === void 0 && !i),
1520
+ isLoading: !!(o || a === void 0 && !s),
1521
1521
  data: a,
1522
- error: i
1522
+ error: s
1523
1523
  };
1524
- }, ta = ({ id: e, apiUrl: t, fallback: n = /* @__PURE__ */ r(wo, {}), components: o, fetchOptions: a, onError: i }) => {
1525
- const { data: s, error: c, isLoading: f } = ea(e, t, a);
1524
+ }, ta = ({ id: e, apiUrl: t, fallback: n = /* @__PURE__ */ r(wo, {}), components: o, fetchOptions: a, onError: s }) => {
1525
+ const { data: i, error: c, isLoading: f } = ea(e, t, a);
1526
1526
  if (f) return n;
1527
- if (c || !s) {
1527
+ if (c || !i) {
1528
1528
  const u = (o == null ? void 0 : o.TweetNotFound) || _o;
1529
1529
  return /* @__PURE__ */ r(u, {
1530
- error: i ? i(c) : c
1530
+ error: s ? s(c) : c
1531
1531
  });
1532
1532
  }
1533
1533
  return /* @__PURE__ */ r(uo, {
1534
- tweet: s,
1534
+ tweet: i,
1535
1535
  components: o
1536
1536
  });
1537
1537
  };
@@ -1541,16 +1541,16 @@ function na({ node: e }) {
1541
1541
  return n ? /* @__PURE__ */ r(Ft, { children: /* @__PURE__ */ r("div", { "data-twitter": "", children: /* @__PURE__ */ r(ta, { id: n }) }) }) : null;
1542
1542
  }
1543
1543
  function ra(e) {
1544
- const { t } = on(), [n, o] = se("");
1544
+ const { t } = cn(), [n, o] = se("");
1545
1545
  ze(() => {
1546
- var i;
1546
+ var s;
1547
1547
  if (e != null && e.editor) {
1548
- const { src: s } = (i = e.editor) == null ? void 0 : i.getAttributes(qt.name);
1549
- s && o(s);
1548
+ const { src: i } = (s = e.editor) == null ? void 0 : s.getAttributes(qt.name);
1549
+ i && o(i);
1550
1550
  }
1551
1551
  }, [e == null ? void 0 : e.editor]);
1552
- function a(i) {
1553
- i.preventDefault(), i.stopPropagation(), e == null || e.onSetLink(n);
1552
+ function a(s) {
1553
+ s.preventDefault(), s.stopPropagation(), e == null || e.onSetLink(n);
1554
1554
  }
1555
1555
  return /* @__PURE__ */ h("form", { className: "richtext-flex richtext-flex-col richtext-gap-2", onSubmit: a, children: [
1556
1556
  /* @__PURE__ */ r(Qt, { className: "mb-[6px]", children: t("editor.link.dialog.text") }),
@@ -1558,7 +1558,7 @@ function ra(e) {
1558
1558
  Jt,
1559
1559
  {
1560
1560
  className: "richtext-w-80",
1561
- onChange: (i) => o(i.target.value),
1561
+ onChange: (s) => o(s.target.value),
1562
1562
  placeholder: "Text",
1563
1563
  required: !0,
1564
1564
  type: "text",
@@ -1571,26 +1571,26 @@ function ra(e) {
1571
1571
  function ma() {
1572
1572
  const [e, t] = se(!1), n = Zt(), o = en(qt.name), {
1573
1573
  icon: a = void 0,
1574
- tooltip: i = void 0,
1575
- tooltipOptions: s = {},
1574
+ tooltip: s = void 0,
1575
+ tooltipOptions: i = {},
1576
1576
  action: c = void 0,
1577
1577
  isActive: f = void 0
1578
1578
  } = (o == null ? void 0 : o.componentProps) ?? {}, { editorDisabled: u } = tn(f);
1579
1579
  function v(m) {
1580
1580
  u || c && (c(m), t(!1));
1581
1581
  }
1582
- return /* @__PURE__ */ h(an, { modal: !0, onOpenChange: t, open: e, children: [
1583
- /* @__PURE__ */ r(sn, { asChild: !0, children: /* @__PURE__ */ r(
1582
+ return /* @__PURE__ */ h(on, { modal: !0, onOpenChange: t, open: e, children: [
1583
+ /* @__PURE__ */ r(an, { asChild: !0, children: /* @__PURE__ */ r(
1584
1584
  nn,
1585
1585
  {
1586
1586
  disabled: u,
1587
1587
  isActive: f,
1588
- tooltip: i,
1589
- tooltipOptions: s,
1588
+ tooltip: s,
1589
+ tooltipOptions: i,
1590
1590
  children: /* @__PURE__ */ r(rn, { name: a })
1591
1591
  }
1592
1592
  ) }),
1593
- /* @__PURE__ */ r(cn, { align: "start", className: "richtext-w-full", hideWhenDetached: !0, side: "bottom", children: /* @__PURE__ */ r(ra, { editor: n, onSetLink: v }) })
1593
+ /* @__PURE__ */ r(sn, { align: "start", className: "richtext-w-full", hideWhenDetached: !0, side: "bottom", children: /* @__PURE__ */ r(ra, { editor: n, onSetLink: v }) })
1594
1594
  ] });
1595
1595
  }
1596
1596
  const oa = /(https?:\/\/)?(www\.)?x\.com\/(\w{1,15})(\/status\/(\d+))?(\/\S*)?/g, aa = /^https?:\/\/(www\.)?x\.com\/(\w{1,15})(\/status\/(\d+))?(\/\S*)?$/;