reactjs-tiptap-editor 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/lib/{ActionMenuButton-fTe9ka2F.js → ActionMenuButton-C4aNFFa8.js} +2 -2
  2. package/lib/{ActionMenuButton-wU6jxKJv.cjs → ActionMenuButton-CmDopTWt.cjs} +1 -1
  3. package/lib/Attachment.cjs +1 -1
  4. package/lib/Attachment.js +3 -3
  5. package/lib/Blockquote.cjs +1 -1
  6. package/lib/Blockquote.js +3 -3
  7. package/lib/Bold.cjs +1 -1
  8. package/lib/Bold.js +3 -3
  9. package/lib/BulletList.cjs +1 -1
  10. package/lib/BulletList.js +3 -3
  11. package/lib/Clear.cjs +1 -1
  12. package/lib/Clear.js +3 -3
  13. package/lib/Code.cjs +1 -1
  14. package/lib/Code.js +3 -3
  15. package/lib/CodeBlock.cjs +39 -39
  16. package/lib/CodeBlock.js +945 -837
  17. package/lib/CodeView.cjs +1 -1
  18. package/lib/CodeView.js +3 -3
  19. package/lib/Color.cjs +1 -1
  20. package/lib/Color.js +8 -8
  21. package/lib/Column.cjs +1 -1
  22. package/lib/Column.js +3 -3
  23. package/lib/{Drawer-BGSwHoka.cjs → Drawer-CTr2snNd.cjs} +1 -1
  24. package/lib/{Drawer-DmtILKW4.js → Drawer-DG0gPU_U.js} +14 -14
  25. package/lib/Drawer.cjs +1 -1
  26. package/lib/Drawer.js +3 -3
  27. package/lib/Emoji.cjs +1 -1
  28. package/lib/Emoji.js +15 -15
  29. package/lib/{Excalidraw-CrG8fW-7.js → Excalidraw-DpgdxOsc.js} +18 -18
  30. package/lib/{Excalidraw-BG2U9i30.cjs → Excalidraw-DtezFdjR.cjs} +1 -1
  31. package/lib/Excalidraw.cjs +1 -1
  32. package/lib/Excalidraw.js +2 -2
  33. package/lib/ExportPdf.cjs +2 -2
  34. package/lib/ExportPdf.js +26 -26
  35. package/lib/ExportWord.cjs +1 -1
  36. package/lib/ExportWord.js +3 -3
  37. package/lib/FontFamily.cjs +1 -1
  38. package/lib/FontFamily.js +5 -5
  39. package/lib/FontSize.cjs +1 -1
  40. package/lib/FontSize.js +5 -5
  41. package/lib/Heading.cjs +1 -1
  42. package/lib/Heading.js +13 -13
  43. package/lib/Highlight.cjs +1 -1
  44. package/lib/Highlight.js +8 -8
  45. package/lib/History.cjs +1 -1
  46. package/lib/History.js +4 -4
  47. package/lib/HorizontalRule.cjs +1 -1
  48. package/lib/HorizontalRule.js +3 -3
  49. package/lib/{Icon-CysGlJkv.js → Icon-C_buGjWy.js} +1 -1
  50. package/lib/{Icon-C3j4ls73.cjs → Icon-b6HQAURz.cjs} +1 -1
  51. package/lib/{Iframe-CXDghI6m.cjs → Iframe-CUrXCDxj.cjs} +1 -1
  52. package/lib/{Iframe-BmqguWbj.js → Iframe-De88TYvj.js} +11 -11
  53. package/lib/Iframe.cjs +1 -1
  54. package/lib/Iframe.js +2 -2
  55. package/lib/Image.cjs +1 -1
  56. package/lib/Image.js +46 -46
  57. package/lib/ImageGif.cjs +1 -1
  58. package/lib/ImageGif.js +9 -9
  59. package/lib/ImportWord.cjs +2 -2
  60. package/lib/ImportWord.js +8 -8
  61. package/lib/{Indent-BhnGkEaY.js → Indent-Bensb2nf.js} +3 -3
  62. package/lib/{Indent-B1glTHHl.cjs → Indent-D_KtZNHW.cjs} +1 -1
  63. package/lib/Indent.cjs +1 -1
  64. package/lib/Indent.js +2 -2
  65. package/lib/Italic.cjs +1 -1
  66. package/lib/Italic.js +3 -3
  67. package/lib/{Katex-D4eBjS34.js → Katex-C0dtqznb.js} +974 -941
  68. package/lib/Katex-NqelWRoi.cjs +4 -0
  69. package/lib/Katex.cjs +1 -1
  70. package/lib/Katex.js +2 -2
  71. package/lib/LineHeight.cjs +1 -1
  72. package/lib/LineHeight.js +13 -13
  73. package/lib/Link.cjs +1 -1
  74. package/lib/Link.js +2 -2
  75. package/lib/{LinkEditBlock-DW17TyCA.cjs → LinkEditBlock-BSZ-vgNB.cjs} +2 -2
  76. package/lib/{LinkEditBlock-D1eSM0kn.js → LinkEditBlock-Bv12sKvW.js} +29 -29
  77. package/lib/Mention.cjs +1 -1
  78. package/lib/Mention.js +138 -132
  79. package/lib/Mermaid.cjs +2 -2
  80. package/lib/Mermaid.js +20 -20
  81. package/lib/MoreMark.cjs +1 -1
  82. package/lib/MoreMark.js +12 -12
  83. package/lib/OrderedList.cjs +1 -1
  84. package/lib/OrderedList.js +3 -3
  85. package/lib/SearchAndReplace.cjs +1 -1
  86. package/lib/SearchAndReplace.js +20 -20
  87. package/lib/SlashCommand.cjs +1 -1
  88. package/lib/SlashCommand.js +14 -14
  89. package/lib/Strike.cjs +1 -1
  90. package/lib/Strike.js +3 -3
  91. package/lib/{Table-BIZppoiY.js → Table-D9ckv6Tb.js} +5 -5
  92. package/lib/{Table-CIzgfvr9.cjs → Table-cy1mUM2X.cjs} +1 -1
  93. package/lib/Table.cjs +1 -1
  94. package/lib/Table.js +1 -1
  95. package/lib/TaskList.cjs +1 -1
  96. package/lib/TaskList.js +3 -3
  97. package/lib/TextAlign.cjs +1 -1
  98. package/lib/TextAlign.js +10 -10
  99. package/lib/TextDirection.cjs +1 -1
  100. package/lib/TextDirection.js +10 -10
  101. package/lib/TextUnderline.cjs +1 -1
  102. package/lib/TextUnderline.js +3 -3
  103. package/lib/Twitter-Bvs3sW8F.cjs +1 -0
  104. package/lib/{Twitter-DhczYjbR.js → Twitter-KUvyySA0.js} +566 -524
  105. package/lib/Twitter.cjs +1 -1
  106. package/lib/Twitter.js +2 -2
  107. package/lib/Video.cjs +1 -1
  108. package/lib/Video.js +22 -22
  109. package/lib/bubble.cjs +4 -4
  110. package/lib/bubble.js +1342 -1314
  111. package/lib/{button-C81t4pb1.js → button-D8SI-g7p.js} +1 -1
  112. package/lib/{button-B6ukqDUf.cjs → button-U6XpZt2X.cjs} +1 -1
  113. package/lib/{checkbox-ZdxysUFa.cjs → checkbox-DaIBNthL.cjs} +1 -1
  114. package/lib/{checkbox-CUE9ex4D.js → checkbox-xrY2c5yo.js} +1 -1
  115. package/lib/{dialog-Cfx8yjkr.cjs → dialog-DgnnVCfv.cjs} +1 -1
  116. package/lib/{dialog-DMJStzBb.js → dialog-DjnkASYP.js} +1 -1
  117. package/lib/{dropdown-menu-Busg3FNn.cjs → dropdown-menu-BvVMltdB.cjs} +1 -1
  118. package/lib/{dropdown-menu-B8iyTZcP.js → dropdown-menu-bI14Gyw4.js} +1 -1
  119. package/lib/extensions/Katex/Katex.d.ts +1 -1
  120. package/lib/extensions/Mention/Mention.d.ts +3 -1
  121. package/lib/extensions/Mention/components/NodeViewMentionList.d.ts +7 -1
  122. package/lib/{index-DCJheRBq.cjs → index--nUS7Y66.cjs} +1 -1
  123. package/lib/{index--knBGB61.js → index-4pRt5Vqu.js} +680 -791
  124. package/lib/{index-DLqogznp.cjs → index-BBNITgNi.cjs} +7 -7
  125. package/lib/{index-ccgHvIfu.js → index-BQ6ZdLsu.js} +1 -1
  126. package/lib/{index-DylewabB.cjs → index-BZ6DfR2r.cjs} +1 -1
  127. package/lib/{index-Dwt9--mS.js → index-BimeTI7q.js} +1 -1
  128. package/lib/{index-TMqmkmT6.cjs → index-CApXPpjF.cjs} +1 -1
  129. package/lib/{index-BvYjBPF9.js → index-CbIQPoF6.js} +12 -11
  130. package/lib/index-DvvMf6Wu.cjs +7 -0
  131. package/lib/{index-RKufd2EL.js → index-EKFybgpP.js} +1 -1
  132. package/lib/index.cjs +1 -1
  133. package/lib/index.js +2 -2
  134. package/lib/{input-BxzQAIRv.cjs → input-BtDj0NeF.cjs} +1 -1
  135. package/lib/{input-DR_5pbuA.js → input-C5zU49Q1.js} +1 -1
  136. package/lib/{isNumber-1y3eeW-y.js → isNumber-8HKEgTkA.js} +1 -1
  137. package/lib/{isNumber-C2saEiG2.cjs → isNumber-Bv1Qhmw8.cjs} +1 -1
  138. package/lib/{label-D-0oXKCn.js → label-BEUVs-IA.js} +1 -1
  139. package/lib/{label-BfWfLggp.cjs → label-C8BonzOY.cjs} +1 -1
  140. package/lib/{popover-D3spkemr.js → popover-CPY5lMCj.js} +1 -1
  141. package/lib/{popover-sP8CwbV-.cjs → popover-DjL0De8d.cjs} +1 -1
  142. package/lib/{separator-rM48NeAo.js → separator-BlIlS7LP.js} +18 -18
  143. package/lib/{separator-yycaNdlI.cjs → separator-BzMkiI_c.cjs} +1 -1
  144. package/lib/{store-BajRl43v.cjs → store-BSCjQxMK.cjs} +1 -1
  145. package/lib/{store-NKeQOve_.js → store-D_GvIPxo.js} +1 -1
  146. package/lib/style.css +1 -1
  147. package/lib/{tabs-D2nCIOVL.cjs → tabs-CHy82_rs.cjs} +1 -1
  148. package/lib/{tabs-Cb6Bmpbb.js → tabs-tQpXIzfV.js} +1 -1
  149. package/lib/{textarea-Cbwi_h4h.cjs → textarea-B-qfanCT.cjs} +1 -1
  150. package/lib/{textarea-BYZu1lUC.js → textarea-CMDYVXYo.js} +1 -1
  151. package/lib/{throttle-CjwXmkIY.js → throttle-BIkZV3Y_.js} +1 -1
  152. package/lib/{throttle-DXN-aiH5.cjs → throttle-BM3Bmbf_.cjs} +1 -1
  153. package/lib/{updatePosition-BAGpT34H.js → updatePosition-GLTrgcib.js} +1 -1
  154. package/lib/{updatePosition-C17CDdjq.cjs → updatePosition-u2mTh3mG.cjs} +1 -1
  155. package/lib/{useButtonProps-TfmRCM9r.cjs → useButtonProps-BqBGuqoP.cjs} +1 -1
  156. package/lib/{useButtonProps-BIH_9bXT.js → useButtonProps-DTngjZge.js} +2 -2
  157. package/package.json +55 -55
  158. package/lib/Katex-BKL_6NWF.cjs +0 -4
  159. package/lib/Twitter-DwWVNAV5.cjs +0 -1
  160. package/lib/index-D42xFOzI.cjs +0 -7
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reactjs-tiptap-editor",
3
3
  "type": "module",
4
- "version": "1.0.7",
4
+ "version": "1.0.9",
5
5
  "packageManager": "pnpm@8.15.9",
6
6
  "description": "A modern WYSIWYG rich text editor based on tiptap and shadcn ui for React",
7
7
  "license": "MIT",
@@ -33,9 +33,9 @@
33
33
  "types": "./lib/index.d.ts",
34
34
  "pnpm": {
35
35
  "overrides": {
36
+ "@excalidraw/excalidraw>nanoid": "3.3.11",
36
37
  "@excalidraw/mermaid-to-excalidraw": "2.0.0",
37
38
  "@excalidraw/mermaid-to-excalidraw>nanoid": "5.1.6",
38
- "@excalidraw/excalidraw>nanoid": "3.3.11",
39
39
  "esbuild": "0.25.12",
40
40
  "prosemirror-view": "1.41.1"
41
41
  }
@@ -709,7 +709,7 @@
709
709
  "dependencies": {
710
710
  "@excalidraw/excalidraw": "^0.18.0",
711
711
  "@floating-ui/dom": "^1.7.4",
712
- "@hocuspocus/provider": "^3.4.0",
712
+ "@hocuspocus/provider": "^3.4.3",
713
713
  "@radix-ui/react-checkbox": "^1.3.3",
714
714
  "@radix-ui/react-dialog": "^1.1.15",
715
715
  "@radix-ui/react-dropdown-menu": "^2.1.16",
@@ -724,44 +724,44 @@
724
724
  "@radix-ui/react-toast": "^1.2.15",
725
725
  "@radix-ui/react-toggle": "^1.1.10",
726
726
  "@radix-ui/react-tooltip": "^1.2.8",
727
- "@tiptap/core": "^3.11.1",
728
- "@tiptap/extension-blockquote": "^3.11.1",
729
- "@tiptap/extension-bold": "^3.11.1",
730
- "@tiptap/extension-bullet-list": "^3.11.1",
731
- "@tiptap/extension-code": "^3.11.1",
732
- "@tiptap/extension-collaboration": "^3.13.0",
733
- "@tiptap/extension-collaboration-caret": "^3.12.0",
734
- "@tiptap/extension-document": "^3.11.1",
735
- "@tiptap/extension-drag-handle": "^3.13.0",
736
- "@tiptap/extension-drag-handle-react": "^3.13.0",
737
- "@tiptap/extension-emoji": "^3.11.1",
738
- "@tiptap/extension-hard-break": "^3.11.1",
739
- "@tiptap/extension-heading": "^3.11.1",
740
- "@tiptap/extension-highlight": "^2.26.1",
741
- "@tiptap/extension-horizontal-rule": "^3.11.1",
742
- "@tiptap/extension-image": "^3.11.1",
743
- "@tiptap/extension-italic": "^3.11.1",
744
- "@tiptap/extension-link": "^3.11.1",
745
- "@tiptap/extension-list": "^3.11.1",
746
- "@tiptap/extension-list-item": "^3.11.1",
747
- "@tiptap/extension-mention": "^3.11.1",
748
- "@tiptap/extension-node-range": "^3.13.0",
749
- "@tiptap/extension-ordered-list": "^3.11.1",
750
- "@tiptap/extension-paragraph": "^3.11.1",
751
- "@tiptap/extension-strike": "^3.11.1",
752
- "@tiptap/extension-subscript": "^3.11.1",
753
- "@tiptap/extension-superscript": "^3.11.1",
754
- "@tiptap/extension-table": "^3.11.1",
755
- "@tiptap/extension-task-item": "^3.11.1",
756
- "@tiptap/extension-task-list": "^3.11.1",
757
- "@tiptap/extension-text": "^3.11.1",
758
- "@tiptap/extension-text-align": "^3.11.1",
759
- "@tiptap/extension-text-style": "^3.11.1",
760
- "@tiptap/extension-underline": "^3.11.1",
761
- "@tiptap/extensions": "^3.11.1",
762
- "@tiptap/pm": "^3.11.1",
763
- "@tiptap/react": "^3.11.1",
764
- "@tiptap/suggestion": "^3.11.1",
727
+ "@tiptap/core": "^3.14.0",
728
+ "@tiptap/extension-blockquote": "^3.14.0",
729
+ "@tiptap/extension-bold": "^3.14.0",
730
+ "@tiptap/extension-bullet-list": "^3.14.0",
731
+ "@tiptap/extension-code": "^3.14.0",
732
+ "@tiptap/extension-collaboration": "^3.14.0",
733
+ "@tiptap/extension-collaboration-caret": "^3.14.0",
734
+ "@tiptap/extension-document": "^3.14.0",
735
+ "@tiptap/extension-drag-handle": "^3.14.0",
736
+ "@tiptap/extension-drag-handle-react": "^3.14.0",
737
+ "@tiptap/extension-emoji": "^3.14.0",
738
+ "@tiptap/extension-hard-break": "^3.14.0",
739
+ "@tiptap/extension-heading": "^3.14.0",
740
+ "@tiptap/extension-highlight": "^2.27.1",
741
+ "@tiptap/extension-horizontal-rule": "^3.14.0",
742
+ "@tiptap/extension-image": "^3.14.0",
743
+ "@tiptap/extension-italic": "^3.14.0",
744
+ "@tiptap/extension-link": "^3.14.0",
745
+ "@tiptap/extension-list": "^3.14.0",
746
+ "@tiptap/extension-list-item": "^3.14.0",
747
+ "@tiptap/extension-mention": "^3.14.0",
748
+ "@tiptap/extension-node-range": "^3.14.0",
749
+ "@tiptap/extension-ordered-list": "^3.14.0",
750
+ "@tiptap/extension-paragraph": "^3.14.0",
751
+ "@tiptap/extension-strike": "^3.14.0",
752
+ "@tiptap/extension-subscript": "^3.14.0",
753
+ "@tiptap/extension-superscript": "^3.14.0",
754
+ "@tiptap/extension-table": "^3.14.0",
755
+ "@tiptap/extension-task-item": "^3.14.0",
756
+ "@tiptap/extension-task-list": "^3.14.0",
757
+ "@tiptap/extension-text": "^3.14.0",
758
+ "@tiptap/extension-text-align": "^3.14.0",
759
+ "@tiptap/extension-text-style": "^3.14.0",
760
+ "@tiptap/extension-underline": "^3.14.0",
761
+ "@tiptap/extensions": "^3.14.0",
762
+ "@tiptap/pm": "^3.14.0",
763
+ "@tiptap/react": "^3.14.0",
764
+ "@tiptap/suggestion": "^3.14.0",
765
765
  "@tiptap/y-tiptap": "^3.0.1",
766
766
  "class-variance-authority": "^0.7.1",
767
767
  "clsx": "^2.1.1",
@@ -769,35 +769,35 @@
769
769
  "docx": "^9.5.1",
770
770
  "easydrawer": "^0.0.15",
771
771
  "frimousse": "^0.3.0",
772
- "katex": "^0.16.25",
773
- "lodash-es": "^4.17.21",
772
+ "katex": "^0.16.27",
773
+ "lodash-es": "^4.17.22",
774
774
  "lucide-react": "^0.427.0",
775
- "mermaid": "^11.12.1",
775
+ "mermaid": "^11.12.2",
776
776
  "prism-code-editor-lightweight": "^0.0.3",
777
777
  "prosemirror-docx": "^0.2.1",
778
778
  "re-resizable": "^6.11.2",
779
779
  "react-colorful": "^5.6.1",
780
780
  "react-image-crop": "^11.0.10",
781
- "react-tweet": "^3.2.2",
781
+ "react-tweet": "^3.3.0",
782
782
  "reactjs-signal": "^2.0.1",
783
783
  "scroll-into-view-if-needed": "^3.1.0",
784
784
  "svg64": "^2.0.0",
785
- "y-protocols": "^1.0.6",
786
- "yjs": "^13.6.27"
785
+ "y-protocols": "^1.0.7",
786
+ "yjs": "^13.6.28"
787
787
  },
788
788
  "devDependencies": {
789
789
  "@hunghg255/eslint-config": "^1.0.1",
790
790
  "@types/deep-equal": "^1.0.4",
791
791
  "@types/katex": "^0.16.7",
792
792
  "@types/lodash-es": "^4.17.12",
793
- "@types/node": "^24.10.1",
793
+ "@types/node": "^24.10.4",
794
794
  "@types/react": "^19.2.7",
795
795
  "@types/react-dom": "^19.2.3",
796
- "@vitejs/plugin-react": "^5.1.1",
797
- "autoprefixer": "^10.4.22",
796
+ "@vitejs/plugin-react": "^5.1.2",
797
+ "autoprefixer": "^10.4.23",
798
798
  "bumpp": "^10.3.2",
799
799
  "contributorkit": "^0.0.4",
800
- "eslint": "^9.39.1",
800
+ "eslint": "^9.39.2",
801
801
  "eslint-plugin-tailwindcss": "^3.18.2",
802
802
  "esno": "^4.8.0",
803
803
  "execa": "^9.6.1",
@@ -808,11 +808,11 @@
808
808
  "postcss": "^8.5.6",
809
809
  "postcss-replace": "^2.0.1",
810
810
  "postcss-scss": "^4.0.9",
811
- "react": "^19.2.0",
812
- "react-dom": "^19.2.0",
813
- "sass": "^1.94.2",
811
+ "react": "^19.2.3",
812
+ "react-dom": "^19.2.3",
813
+ "sass": "^1.97.1",
814
814
  "tailwind-merge": "^2.6.0",
815
- "tailwindcss": "^3.4.18",
815
+ "tailwindcss": "^3.4.19",
816
816
  "typescript": "^5.9.3",
817
817
  "unplugin-dts": "1.0.0-beta.6",
818
818
  "verify-commit-msg": "^0.1.0",
@@ -1,4 +0,0 @@
1
- "use strict";const Fr=require("./index-DLqogznp.cjs"),er=require("react/jsx-runtime"),ur=require("react"),Ja=require("katex"),wo=require("./index-D42xFOzI.cjs"),qo=require("./button-B6ukqDUf.cjs"),Dr=require("./dialog-Cfx8yjkr.cjs"),Po=require("./textarea-Cbwi_h4h.cjs"),oe=require("./useButtonProps-TfmRCM9r.cjs"),Br=require("./_commonjsHelpers-BTDuMlIz.cjs"),Io=require("./index-FSRjMsxW.cjs");var ie,sn;function Ya(){if(sn)return ie;sn=1;var r=Object.prototype.toString;return ie=function(n){var o=r.call(n),t=o==="[object Arguments]";return t||(t=o!=="[object Array]"&&n!==null&&typeof n=="object"&&typeof n.length=="number"&&n.length>=0&&r.call(n.callee)==="[object Function]"),t},ie}var ue,ln;function $o(){if(ln)return ue;ln=1;var r;if(!Object.keys){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,o=Ya(),t=Object.prototype.propertyIsEnumerable,f=!t.call({toString:null},"toString"),i=t.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(y){var h=y.constructor;return h&&h.prototype===y},c={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},v=(function(){if(typeof window>"u")return!1;for(var y in window)try{if(!c["$"+y]&&e.call(window,y)&&window[y]!==null&&typeof window[y]=="object")try{u(window[y])}catch{return!0}}catch{return!0}return!1})(),p=function(y){if(typeof window>"u"||!v)return u(y);try{return u(y)}catch{return!1}};r=function(h){var m=h!==null&&typeof h=="object",B=n.call(h)==="[object Function]",w=o(h),q=m&&n.call(h)==="[object String]",O=[];if(!m&&!B&&!w)throw new TypeError("Object.keys called on a non-object");var b=i&&B;if(q&&h.length>0&&!e.call(h,0))for(var T=0;T<h.length;++T)O.push(String(T));if(w&&h.length>0)for(var X=0;X<h.length;++X)O.push(String(X));else for(var G in h)!(b&&G==="prototype")&&e.call(h,G)&&O.push(String(G));if(f)for(var F=p(h),C=0;C<a.length;++C)!(F&&a[C]==="constructor")&&e.call(h,a[C])&&O.push(a[C]);return O}}return ue=r,ue}var fe,cn;function Lt(){if(cn)return fe;cn=1;var r=Array.prototype.slice,e=Ya(),n=Object.keys,o=n?function(i){return n(i)}:$o(),t=Object.keys;return o.shim=function(){if(Object.keys){var i=(function(){var a=Object.keys(arguments);return a&&a.length===arguments.length})(1,2);i||(Object.keys=function(u){return e(u)?t(r.call(u)):t(u)})}else Object.keys=o;return Object.keys||o},fe=o,fe}var se,pn;function Vr(){if(pn)return se;pn=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return se=r,se}var le,yn;function Ht(){return yn||(yn=1,le=SyntaxError),le}var ce,vn;function nr(){return vn||(vn=1,ce=TypeError),ce}var pe,gn;function Ro(){return gn||(gn=1,pe=Object.getOwnPropertyDescriptor),pe}var ye,hn;function wr(){if(hn)return ye;hn=1;var r=Ro();if(r)try{r([],"length")}catch{r=null}return ye=r,ye}var ve,dn;function Gt(){if(dn)return ve;dn=1;var r=Vr(),e=Ht(),n=nr(),o=wr();return ve=function(f,i,a){if(!f||typeof f!="object"&&typeof f!="function")throw new n("`obj` must be an object or a function`");if(typeof i!="string"&&typeof i!="symbol")throw new n("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new n("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new n("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new n("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new n("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,v=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,y=!!o&&o(f,i);if(r)r(f,i,{configurable:v===null&&y?y.configurable:!v,enumerable:u===null&&y?y.enumerable:!u,value:a,writable:c===null&&y?y.writable:!c});else if(p||!u&&!c&&!v)f[i]=a;else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},ve}var ge,mn;function Ut(){if(mn)return ge;mn=1;var r=Vr(),e=function(){return!!r};return e.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},ge=e,ge}var he,Sn;function qr(){if(Sn)return he;Sn=1;var r=Lt(),e=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",n=Object.prototype.toString,o=Array.prototype.concat,t=Gt(),f=function(c){return typeof c=="function"&&n.call(c)==="[object Function]"},i=Ut()(),a=function(c,v,p,y){if(v in c){if(y===!0){if(c[v]===p)return}else if(!f(y)||!y())return}i?t(c,v,p,!0):t(c,v,p)},u=function(c,v){var p=arguments.length>2?arguments[2]:{},y=r(v);e&&(y=o.call(y,Object.getOwnPropertySymbols(v)));for(var h=0;h<y.length;h+=1)a(c,y[h],v[y[h]],p[y[h]])};return u.supportsDescriptors=!!i,he=u,he}var de={exports:{}},me,bn;function zt(){return bn||(bn=1,me=Object),me}var Se,An;function Xa(){return An||(An=1,Se=Error),Se}var be,On;function xo(){return On||(On=1,be=EvalError),be}var Ae,wn;function Eo(){return wn||(wn=1,Ae=RangeError),Ae}var Oe,qn;function Bo(){return qn||(qn=1,Oe=ReferenceError),Oe}var we,Pn;function jo(){return Pn||(Pn=1,we=URIError),we}var qe,In;function To(){return In||(In=1,qe=Math.abs),qe}var Pe,$n;function Mo(){return $n||($n=1,Pe=Math.floor),Pe}var Ie,Rn;function Do(){return Rn||(Rn=1,Ie=Math.max),Ie}var $e,xn;function Co(){return xn||(xn=1,$e=Math.min),$e}var Re,En;function Fo(){return En||(En=1,Re=Math.pow),Re}var xe,Bn;function _o(){return Bn||(Bn=1,xe=Math.round),xe}var Ee,jn;function No(){return jn||(jn=1,Ee=Number.isNaN||function(e){return e!==e}),Ee}var Be,Tn;function Wo(){if(Tn)return Be;Tn=1;var r=No();return Be=function(n){return r(n)||n===0?n:n<0?-1:1},Be}var je,Mn;function Kr(){return Mn||(Mn=1,je=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var t=42;e[n]=t;for(var f in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,n);if(a.value!==t||a.enumerable!==!0)return!1}return!0}),je}var Te,Dn;function Vt(){if(Dn)return Te;Dn=1;var r=typeof Symbol<"u"&&Symbol,e=Kr();return Te=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Te}var Me,Cn;function Qa(){return Cn||(Cn=1,Me=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Me}var De,Fn;function Za(){if(Fn)return De;Fn=1;var r=zt();return De=r.getPrototypeOf||null,De}var Ce,_n;function ko(){if(_n)return Ce;_n=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,n=Math.max,o="[object Function]",t=function(u,c){for(var v=[],p=0;p<u.length;p+=1)v[p]=u[p];for(var y=0;y<c.length;y+=1)v[y+u.length]=c[y];return v},f=function(u,c){for(var v=[],p=c,y=0;p<u.length;p+=1,y+=1)v[y]=u[p];return v},i=function(a,u){for(var c="",v=0;v<a.length;v+=1)c+=a[v],v+1<a.length&&(c+=u);return c};return Ce=function(u){var c=this;if(typeof c!="function"||e.apply(c)!==o)throw new TypeError(r+c);for(var v=f(arguments,1),p,y=function(){if(this instanceof p){var q=c.apply(this,t(v,arguments));return Object(q)===q?q:this}return c.apply(u,t(v,arguments))},h=n(0,c.length-v.length),m=[],B=0;B<h;B++)m[B]="$"+B;if(p=Function("binder","return function ("+i(m,",")+"){ return binder.apply(this,arguments); }")(y),c.prototype){var w=function(){};w.prototype=c.prototype,p.prototype=new w,w.prototype=null}return p},Ce}var Fe,Nn;function _r(){if(Nn)return Fe;Nn=1;var r=ko();return Fe=Function.prototype.bind||r,Fe}var _e,Wn;function Kt(){return Wn||(Wn=1,_e=Function.prototype.call),_e}var Ne,kn;function Jt(){return kn||(kn=1,Ne=Function.prototype.apply),Ne}var We,Ln;function Lo(){return Ln||(Ln=1,We=typeof Reflect<"u"&&Reflect&&Reflect.apply),We}var ke,Hn;function ro(){if(Hn)return ke;Hn=1;var r=_r(),e=Jt(),n=Kt(),o=Lo();return ke=o||r.call(n,e),ke}var Le,Gn;function Yt(){if(Gn)return Le;Gn=1;var r=_r(),e=nr(),n=Kt(),o=ro();return Le=function(f){if(f.length<1||typeof f[0]!="function")throw new e("a function is required");return o(r,n,f)},Le}var He,Un;function Ho(){if(Un)return He;Un=1;var r=Yt(),e=wr(),n;try{n=[].__proto__===Array.prototype}catch(i){if(!i||typeof i!="object"||!("code"in i)||i.code!=="ERR_PROTO_ACCESS")throw i}var o=!!n&&e&&e(Object.prototype,"__proto__"),t=Object,f=t.getPrototypeOf;return He=o&&typeof o.get=="function"?r([o.get]):typeof f=="function"?function(a){return f(a==null?a:t(a))}:!1,He}var Ge,zn;function Xt(){if(zn)return Ge;zn=1;var r=Qa(),e=Za(),n=Ho();return Ge=r?function(t){return r(t)}:e?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return e(t)}:n?function(t){return n(t)}:null,Ge}var Ue,Vn;function Qt(){if(Vn)return Ue;Vn=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,n=_r();return Ue=n.call(r,e),Ue}var ze,Kn;function yr(){if(Kn)return ze;Kn=1;var r,e=zt(),n=Xa(),o=xo(),t=Eo(),f=Bo(),i=Ht(),a=nr(),u=jo(),c=To(),v=Mo(),p=Do(),y=Co(),h=Fo(),m=_o(),B=Wo(),w=Function,q=function(M){try{return w('"use strict"; return ('+M+").constructor;")()}catch{}},O=wr(),b=Vr(),T=function(){throw new a},X=O?(function(){try{return arguments.callee,T}catch{try{return O(arguments,"callee").get}catch{return T}}})():T,G=Vt()(),F=Xt(),C=Za(),P=Qa(),_=Jt(),L=Kt(),N={},H=typeof Uint8Array>"u"||!F?r:F(Uint8Array),V={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":G&&F?F([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":N,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":G&&F?F(F([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!G||!F?r:F(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":O,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":t,"%ReferenceError%":f,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!G||!F?r:F(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":G&&F?F(""[Symbol.iterator]()):r,"%Symbol%":G?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":X,"%TypedArray%":H,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":_,"%Object.defineProperty%":b,"%Object.getPrototypeOf%":C,"%Math.abs%":c,"%Math.floor%":v,"%Math.max%":p,"%Math.min%":y,"%Math.pow%":h,"%Math.round%":m,"%Math.sign%":B,"%Reflect.getPrototypeOf%":P};if(F)try{null.error}catch(M){var fr=F(F(M));V["%Error.prototype%"]=fr}var Ir=function M(A){var I;if(A==="%AsyncFunction%")I=q("async function () {}");else if(A==="%GeneratorFunction%")I=q("function* () {}");else if(A==="%AsyncGeneratorFunction%")I=q("async function* () {}");else if(A==="%AsyncGenerator%"){var S=M("%AsyncGeneratorFunction%");S&&(I=S.prototype)}else if(A==="%AsyncIteratorPrototype%"){var x=M("%AsyncGenerator%");x&&F&&(I=F(x.prototype))}return V[A]=I,I},Sr={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ar=_r(),U=Qt(),br=ar.call(L,Array.prototype.concat),$r=ar.call(_,Array.prototype.splice),Ar=ar.call(L,String.prototype.replace),vr=ar.call(L,String.prototype.slice),g=ar.call(L,RegExp.prototype.exec),d=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,$=function(A){var I=vr(A,0,1),S=vr(A,-1);if(I==="%"&&S!=="%")throw new i("invalid intrinsic syntax, expected closing `%`");if(S==="%"&&I!=="%")throw new i("invalid intrinsic syntax, expected opening `%`");var x=[];return Ar(A,d,function(z,K,J,Y){x[x.length]=J?Ar(Y,R,"$1"):K||z}),x},j=function(A,I){var S=A,x;if(U(Sr,S)&&(x=Sr[S],S="%"+x[0]+"%"),U(V,S)){var z=V[S];if(z===N&&(z=Ir(S)),typeof z>"u"&&!I)throw new a("intrinsic "+A+" exists, but is not available. Please file an issue!");return{alias:x,name:S,value:z}}throw new i("intrinsic "+A+" does not exist!")};return ze=function(A,I){if(typeof A!="string"||A.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof I!="boolean")throw new a('"allowMissing" argument must be a boolean');if(g(/^%?[^%]*%?$/,A)===null)throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var S=$(A),x=S.length>0?S[0]:"",z=j("%"+x+"%",I),K=z.name,J=z.value,Y=!1,Z=z.alias;Z&&(x=Z[0],$r(S,br([0,1],Z)));for(var sr=1,or=!0;sr<S.length;sr+=1){var rr=S[sr],lr=vr(rr,0,1),cr=vr(rr,-1);if((lr==='"'||lr==="'"||lr==="`"||cr==='"'||cr==="'"||cr==="`")&&lr!==cr)throw new i("property names with quotes must have matching quotes");if((rr==="constructor"||!or)&&(Y=!0),x+="."+rr,K="%"+x+"%",U(V,K))J=V[K];else if(J!=null){if(!(rr in J)){if(!I)throw new a("base intrinsic for "+A+" exists, but the property is not available.");return}if(O&&sr+1>=S.length){var pr=O(J,rr);or=!!pr,or&&"get"in pr&&!("originalValue"in pr.get)?J=pr.get:J=J[rr]}else or=U(J,rr),J=J[rr];or&&!Y&&(V[K]=J)}}return J},ze}var Ve,Jn;function Go(){if(Jn)return Ve;Jn=1;var r=yr(),e=Gt(),n=Ut()(),o=wr(),t=nr(),f=r("%Math.floor%");return Ve=function(a,u){if(typeof a!="function")throw new t("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||f(u)!==u)throw new t("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],v=!0,p=!0;if("length"in a&&o){var y=o(a,"length");y&&!y.configurable&&(v=!1),y&&!y.writable&&(p=!1)}return(v||p||!c)&&(n?e(a,"length",u,!0,!0):e(a,"length",u)),a},Ve}var Ke,Yn;function Uo(){if(Yn)return Ke;Yn=1;var r=_r(),e=Jt(),n=ro();return Ke=function(){return n(r,e,arguments)},Ke}var Xn;function jr(){return Xn||(Xn=1,(function(r){var e=Go(),n=Vr(),o=Yt(),t=Uo();r.exports=function(i){var a=o(arguments),u=i.length-(arguments.length-1);return e(a,1+(u>0?u:0),!0)},n?n(r.exports,"apply",{value:t}):r.exports.apply=t})(de)),de.exports}var Je,Qn;function Q(){if(Qn)return Je;Qn=1;var r=yr(),e=Yt(),n=e([r("%String.prototype.indexOf%")]);return Je=function(t,f){var i=r(t,!!f);return typeof i=="function"&&n(t,".prototype.")>-1?e([i]):i},Je}var Ye,Zn;function eo(){if(Zn)return Ye;Zn=1;var r=Lt(),e=Kr()(),n=Q(),o=zt(),t=n("Array.prototype.push"),f=n("Object.prototype.propertyIsEnumerable"),i=e?o.getOwnPropertySymbols:null;return Ye=function(u,c){if(u==null)throw new TypeError("target must be an object");var v=o(u);if(arguments.length===1)return v;for(var p=1;p<arguments.length;++p){var y=o(arguments[p]),h=r(y),m=e&&(o.getOwnPropertySymbols||i);if(m)for(var B=m(y),w=0;w<B.length;++w){var q=B[w];f(y,q)&&t(h,q)}for(var O=0;O<h.length;++O){var b=h[O];if(f(y,b)){var T=y[b];v[b]=T}}}return v},Ye}var Xe,ra;function to(){if(ra)return Xe;ra=1;var r=eo(),e=function(){if(!Object.assign)return!1;for(var o="abcdefghijklmnopqrst",t=o.split(""),f={},i=0;i<t.length;++i)f[t[i]]=t[i];var a=Object.assign({},f),u="";for(var c in a)u+=c;return o!==u},n=function(){if(!Object.assign||!Object.preventExtensions)return!1;var o=Object.preventExtensions({1:2});try{Object.assign(o,"xy")}catch{return o[1]==="y"}return!1};return Xe=function(){return!Object.assign||e()||n()?r:Object.assign},Xe}var Qe,ea;function zo(){if(ea)return Qe;ea=1;var r=qr(),e=to();return Qe=function(){var o=e();return r(Object,{assign:o},{assign:function(){return Object.assign!==o}}),o},Qe}var Ze,ta;function Vo(){if(ta)return Ze;ta=1;var r=qr(),e=jr(),n=eo(),o=to(),t=zo(),f=e.apply(o()),i=function(u,c){return f(Object,arguments)};return r(i,{getPolyfill:o,implementation:n,shim:t}),Ze=i,Ze}var rt,na;function no(){if(na)return rt;na=1;var r=yr(),e=jr(),n=e(r("String.prototype.indexOf"));return rt=function(t,f){var i=r(t,!!f);return typeof i=="function"&&n(t,".prototype.")>-1?e(i):i},rt}var et,aa;function Ko(){if(aa)return et;aa=1;var r=function(){return typeof(function(){}).name=="string"},e=Object.getOwnPropertyDescriptor;if(e)try{e([],"length")}catch{e=null}r.functionsHaveConfigurableNames=function(){if(!r()||!e)return!1;var t=e(function(){},"name");return!!t&&!!t.configurable};var n=Function.prototype.bind;return r.boundFunctionsHaveNames=function(){return r()&&typeof n=="function"&&(function(){}).bind().name!==""},et=r,et}var tt,oa;function Jo(){if(oa)return tt;oa=1;var r=Gt(),e=Ut()(),n=Ko().functionsHaveConfigurableNames(),o=nr();return tt=function(f,i){if(typeof f!="function")throw new o("`fn` is not a function");var a=arguments.length>2&&!!arguments[2];return(!a||n)&&(e?r(f,"name",i,!0,!0):r(f,"name",i)),f},tt}var nt,ia;function ao(){if(ia)return nt;ia=1;var r=Jo(),e=nr(),n=Object;return nt=r(function(){if(this==null||this!==n(this))throw new e("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t},"get flags",!0),nt}var at,ua;function oo(){if(ua)return at;ua=1;var r=ao(),e=qr().supportsDescriptors,n=Object.getOwnPropertyDescriptor;return at=function(){if(e&&/a/mig.flags==="gim"){var t=n(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var f="",i={};if(Object.defineProperty(i,"hasIndices",{get:function(){f+="d"}}),Object.defineProperty(i,"sticky",{get:function(){f+="y"}}),t.get.call(i),f==="dy")return t.get}}return r},at}var ot,fa;function Yo(){if(fa)return ot;fa=1;var r=qr().supportsDescriptors,e=oo(),n=wr(),o=Object.defineProperty,t=Xa(),f=Xt(),i=/a/;return ot=function(){if(!r||!f)throw new t("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var u=e(),c=f(i),v=n(c,"flags");return(!v||v.get!==u)&&o(c,"flags",{configurable:!0,enumerable:!1,get:u}),u},ot}var it,sa;function Xo(){if(sa)return it;sa=1;var r=qr(),e=jr(),n=ao(),o=oo(),t=Yo(),f=e(o());return r(f,{getPolyfill:o,implementation:n,shim:t}),it=f,it}var Cr={exports:{}},ut,la;function Pr(){if(la)return ut;la=1;var r=Kr();return ut=function(){return r()&&!!Symbol.toStringTag},ut}var ft,ca;function io(){if(ca)return ft;ca=1;var r=Pr()(),e=Q(),n=e("Object.prototype.toString"),o=function(a){return r&&a&&typeof a=="object"&&Symbol.toStringTag in a?!1:n(a)==="[object Arguments]"},t=function(a){return o(a)?!0:a!==null&&typeof a=="object"&&"length"in a&&typeof a.length=="number"&&a.length>=0&&n(a)!=="[object Array]"&&"callee"in a&&n(a.callee)==="[object Function]"},f=(function(){return o(arguments)})();return o.isLegacyArguments=t,ft=f?o:t,ft}const Qo={},Zo=Object.freeze(Object.defineProperty({__proto__:null,default:Qo},Symbol.toStringTag,{value:"Module"})),ri=Br.getAugmentedNamespace(Zo);var st,pa;function Jr(){if(pa)return st;pa=1;var r=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=r&&e&&typeof e.get=="function"?e.get:null,o=r&&Map.prototype.forEach,t=typeof Set=="function"&&Set.prototype,f=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,i=t&&f&&typeof f.get=="function"?f.get:null,a=t&&Set.prototype.forEach,u=typeof WeakMap=="function"&&WeakMap.prototype,c=u?WeakMap.prototype.has:null,v=typeof WeakSet=="function"&&WeakSet.prototype,p=v?WeakSet.prototype.has:null,y=typeof WeakRef=="function"&&WeakRef.prototype,h=y?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,B=Object.prototype.toString,w=Function.prototype.toString,q=String.prototype.match,O=String.prototype.slice,b=String.prototype.replace,T=String.prototype.toUpperCase,X=String.prototype.toLowerCase,G=RegExp.prototype.test,F=Array.prototype.concat,C=Array.prototype.join,P=Array.prototype.slice,_=Math.floor,L=typeof BigInt=="function"?BigInt.prototype.valueOf:null,N=Object.getOwnPropertySymbols,H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,V=typeof Symbol=="function"&&typeof Symbol.iterator=="object",fr=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===V||!0)?Symbol.toStringTag:null,Ir=Object.prototype.propertyIsEnumerable,Sr=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(s){return s.__proto__}:null);function ar(s,l){if(s===1/0||s===-1/0||s!==s||s&&s>-1e3&&s<1e3||G.call(/e/,l))return l;var D=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof s=="number"){var W=s<0?-_(-s):_(s);if(W!==s){var k=String(W),E=O.call(l,k.length+1);return b.call(k,D,"$&_")+"."+b.call(b.call(E,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(l,D,"$&_")}var U=ri,br=U.custom,$r=z(br)?br:null,Ar={__proto__:null,double:'"',single:"'"},vr={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};st=function s(l,D,W,k){var E=D||{};if(Y(E,"quoteStyle")&&!Y(Ar,E.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Y(E,"maxStringLength")&&(typeof E.maxStringLength=="number"?E.maxStringLength<0&&E.maxStringLength!==1/0:E.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var dr=Y(E,"customInspect")?E.customInspect:!0;if(typeof dr!="boolean"&&dr!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Y(E,"indent")&&E.indent!==null&&E.indent!==" "&&!(parseInt(E.indent,10)===E.indent&&E.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Y(E,"numericSeparator")&&typeof E.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Or=E.numericSeparator;if(typeof l>"u")return"undefined";if(l===null)return"null";if(typeof l=="boolean")return l?"true":"false";if(typeof l=="string")return Rr(l,E);if(typeof l=="number"){if(l===0)return 1/0/l>0?"0":"-0";var tr=String(l);return Or?ar(l,tr):tr}if(typeof l=="bigint"){var mr=String(l)+"n";return Or?ar(l,mr):mr}var Qr=typeof E.depth>"u"?5:E.depth;if(typeof W>"u"&&(W=0),W>=Qr&&Qr>0&&typeof l=="object")return $(l)?"[Array]":"[Object]";var xr=bo(E,W);if(typeof k>"u")k=[];else if(or(k,l)>=0)return"[Circular]";function ir(Er,Lr,Oo){if(Lr&&(k=P.call(k),k.push(Lr)),Oo){var fn={depth:E.depth};return Y(E,"quoteStyle")&&(fn.quoteStyle=E.quoteStyle),s(Er,fn,W+1,k)}return s(Er,E,W+1,k)}if(typeof l=="function"&&!M(l)){var rn=sr(l),en=Wr(l,ir);return"[Function"+(rn?": "+rn:" (anonymous)")+"]"+(en.length>0?" { "+C.call(en,", ")+" }":"")}if(z(l)){var tn=V?b.call(String(l),/^(Symbol\(.*\))_[^)]*$/,"$1"):H.call(l);return typeof l=="object"&&!V?hr(tn):tn}if(gr(l)){for(var Mr="<"+X.call(String(l.nodeName)),Zr=l.attributes||[],kr=0;kr<Zr.length;kr++)Mr+=" "+Zr[kr].name+"="+g(d(Zr[kr].value),"double",E);return Mr+=">",l.childNodes&&l.childNodes.length&&(Mr+="..."),Mr+="</"+X.call(String(l.nodeName))+">",Mr}if($(l)){if(l.length===0)return"[]";var re=Wr(l,ir);return xr&&!So(re)?"["+Xr(re,xr)+"]":"[ "+C.call(re,", ")+" ]"}if(A(l)){var ee=Wr(l,ir);return!("cause"in Error.prototype)&&"cause"in l&&!Ir.call(l,"cause")?"{ ["+String(l)+"] "+C.call(F.call("[cause]: "+ir(l.cause),ee),", ")+" }":ee.length===0?"["+String(l)+"]":"{ ["+String(l)+"] "+C.call(ee,", ")+" }"}if(typeof l=="object"&&dr){if($r&&typeof l[$r]=="function"&&U)return U(l,{depth:Qr-W});if(dr!=="symbol"&&typeof l.inspect=="function")return l.inspect()}if(rr(l)){var nn=[];return o&&o.call(l,function(Er,Lr){nn.push(ir(Lr,l,!0)+" => "+ir(Er,l))}),Zt("Map",n.call(l),nn,xr)}if(pr(l)){var an=[];return a&&a.call(l,function(Er){an.push(ir(Er,l))}),Zt("Set",i.call(l),an,xr)}if(lr(l))return Yr("WeakMap");if(Nr(l))return Yr("WeakSet");if(cr(l))return Yr("WeakRef");if(S(l))return hr(ir(Number(l)));if(K(l))return hr(ir(L.call(l)));if(x(l))return hr(m.call(l));if(I(l))return hr(ir(String(l)));if(typeof window<"u"&&l===window)return"{ [object Window] }";if(typeof globalThis<"u"&&l===globalThis||typeof Br.commonjsGlobal<"u"&&l===Br.commonjsGlobal)return"{ [object globalThis] }";if(!j(l)&&!M(l)){var te=Wr(l,ir),on=Sr?Sr(l)===Object.prototype:l instanceof Object||l.constructor===Object,ne=l instanceof Object?"":"null prototype",un=!on&&fr&&Object(l)===l&&fr in l?O.call(Z(l),8,-1):ne?"Object":"",Ao=on||typeof l.constructor!="function"?"":l.constructor.name?l.constructor.name+" ":"",ae=Ao+(un||ne?"["+C.call(F.call([],un||[],ne||[]),": ")+"] ":"");return te.length===0?ae+"{}":xr?ae+"{"+Xr(te,xr)+"}":ae+"{ "+C.call(te,", ")+" }"}return String(l)};function g(s,l,D){var W=D.quoteStyle||l,k=Ar[W];return k+s+k}function d(s){return b.call(String(s),/"/g,"&quot;")}function R(s){return!fr||!(typeof s=="object"&&(fr in s||typeof s[fr]<"u"))}function $(s){return Z(s)==="[object Array]"&&R(s)}function j(s){return Z(s)==="[object Date]"&&R(s)}function M(s){return Z(s)==="[object RegExp]"&&R(s)}function A(s){return Z(s)==="[object Error]"&&R(s)}function I(s){return Z(s)==="[object String]"&&R(s)}function S(s){return Z(s)==="[object Number]"&&R(s)}function x(s){return Z(s)==="[object Boolean]"&&R(s)}function z(s){if(V)return s&&typeof s=="object"&&s instanceof Symbol;if(typeof s=="symbol")return!0;if(!s||typeof s!="object"||!H)return!1;try{return H.call(s),!0}catch{}return!1}function K(s){if(!s||typeof s!="object"||!L)return!1;try{return L.call(s),!0}catch{}return!1}var J=Object.prototype.hasOwnProperty||function(s){return s in this};function Y(s,l){return J.call(s,l)}function Z(s){return B.call(s)}function sr(s){if(s.name)return s.name;var l=q.call(w.call(s),/^function\s*([\w$]+)/);return l?l[1]:null}function or(s,l){if(s.indexOf)return s.indexOf(l);for(var D=0,W=s.length;D<W;D++)if(s[D]===l)return D;return-1}function rr(s){if(!n||!s||typeof s!="object")return!1;try{n.call(s);try{i.call(s)}catch{return!0}return s instanceof Map}catch{}return!1}function lr(s){if(!c||!s||typeof s!="object")return!1;try{c.call(s,c);try{p.call(s,p)}catch{return!0}return s instanceof WeakMap}catch{}return!1}function cr(s){if(!h||!s||typeof s!="object")return!1;try{return h.call(s),!0}catch{}return!1}function pr(s){if(!i||!s||typeof s!="object")return!1;try{i.call(s);try{n.call(s)}catch{return!0}return s instanceof Set}catch{}return!1}function Nr(s){if(!p||!s||typeof s!="object")return!1;try{p.call(s,p);try{c.call(s,c)}catch{return!0}return s instanceof WeakSet}catch{}return!1}function gr(s){return!s||typeof s!="object"?!1:typeof HTMLElement<"u"&&s instanceof HTMLElement?!0:typeof s.nodeName=="string"&&typeof s.getAttribute=="function"}function Rr(s,l){if(s.length>l.maxStringLength){var D=s.length-l.maxStringLength,W="... "+D+" more character"+(D>1?"s":"");return Rr(O.call(s,0,l.maxStringLength),l)+W}var k=vr[l.quoteStyle||"single"];k.lastIndex=0;var E=b.call(b.call(s,k,"\\$1"),/[\x00-\x1f]/g,Tr);return g(E,"single",l)}function Tr(s){var l=s.charCodeAt(0),D={8:"b",9:"t",10:"n",12:"f",13:"r"}[l];return D?"\\"+D:"\\x"+(l<16?"0":"")+T.call(l.toString(16))}function hr(s){return"Object("+s+")"}function Yr(s){return s+" { ? }"}function Zt(s,l,D,W){var k=W?Xr(D,W):C.call(D,", ");return s+" ("+l+") {"+k+"}"}function So(s){for(var l=0;l<s.length;l++)if(or(s[l],`
2
- `)>=0)return!1;return!0}function bo(s,l){var D;if(s.indent===" ")D=" ";else if(typeof s.indent=="number"&&s.indent>0)D=C.call(Array(s.indent+1)," ");else return null;return{base:D,prev:C.call(Array(l+1),D)}}function Xr(s,l){if(s.length===0)return"";var D=`
3
- `+l.prev+l.base;return D+C.call(s,","+D)+`
4
- `+l.prev}function Wr(s,l){var D=$(s),W=[];if(D){W.length=s.length;for(var k=0;k<s.length;k++)W[k]=Y(s,k)?l(s[k],s):""}var E=typeof N=="function"?N(s):[],dr;if(V){dr={};for(var Or=0;Or<E.length;Or++)dr["$"+E[Or]]=E[Or]}for(var tr in s)Y(s,tr)&&(D&&String(Number(tr))===tr&&tr<s.length||V&&dr["$"+tr]instanceof Symbol||(G.call(/[^\w$]/,tr)?W.push(l(tr,s)+": "+l(s[tr],s)):W.push(tr+": "+l(s[tr],s))));if(typeof N=="function")for(var mr=0;mr<E.length;mr++)Ir.call(s,E[mr])&&W.push("["+l(E[mr])+"]: "+l(s[E[mr]],s));return W}return st}var lt,ya;function ei(){if(ya)return lt;ya=1;var r=Jr(),e=nr(),n=function(a,u,c){for(var v=a,p;(p=v.next)!=null;v=p)if(p.key===u)return v.next=p.next,c||(p.next=a.next,a.next=p),p},o=function(a,u){if(a){var c=n(a,u);return c&&c.value}},t=function(a,u,c){var v=n(a,u);v?v.value=c:a.next={key:u,next:a.next,value:c}},f=function(a,u){return a?!!n(a,u):!1},i=function(a,u){if(a)return n(a,u,!0)};return lt=function(){var u,c={assert:function(v){if(!c.has(v))throw new e("Side channel does not contain "+r(v))},delete:function(v){var p=u&&u.next,y=i(u,v);return y&&p&&p===y&&(u=void 0),!!y},get:function(v){return o(u,v)},has:function(v){return f(u,v)},set:function(v,p){u||(u={next:void 0}),t(u,v,p)}};return c},lt}var ct,va;function uo(){if(va)return ct;va=1;var r=yr(),e=Q(),n=Jr(),o=nr(),t=r("%Map%",!0),f=e("Map.prototype.get",!0),i=e("Map.prototype.set",!0),a=e("Map.prototype.has",!0),u=e("Map.prototype.delete",!0),c=e("Map.prototype.size",!0);return ct=!!t&&function(){var p,y={assert:function(h){if(!y.has(h))throw new o("Side channel does not contain "+n(h))},delete:function(h){if(p){var m=u(p,h);return c(p)===0&&(p=void 0),m}return!1},get:function(h){if(p)return f(p,h)},has:function(h){return p?a(p,h):!1},set:function(h,m){p||(p=new t),i(p,h,m)}};return y},ct}var pt,ga;function ti(){if(ga)return pt;ga=1;var r=yr(),e=Q(),n=Jr(),o=uo(),t=nr(),f=r("%WeakMap%",!0),i=e("WeakMap.prototype.get",!0),a=e("WeakMap.prototype.set",!0),u=e("WeakMap.prototype.has",!0),c=e("WeakMap.prototype.delete",!0);return pt=f?function(){var p,y,h={assert:function(m){if(!h.has(m))throw new t("Side channel does not contain "+n(m))},delete:function(m){if(f&&m&&(typeof m=="object"||typeof m=="function")){if(p)return c(p,m)}else if(o&&y)return y.delete(m);return!1},get:function(m){return f&&m&&(typeof m=="object"||typeof m=="function")&&p?i(p,m):y&&y.get(m)},has:function(m){return f&&m&&(typeof m=="object"||typeof m=="function")&&p?u(p,m):!!y&&y.has(m)},set:function(m,B){f&&m&&(typeof m=="object"||typeof m=="function")?(p||(p=new f),a(p,m,B)):o&&(y||(y=o()),y.set(m,B))}};return h}:o,pt}var yt,ha;function fo(){if(ha)return yt;ha=1;var r=nr(),e=Jr(),n=ei(),o=uo(),t=ti(),f=t||o||n;return yt=function(){var a,u={assert:function(c){if(!u.has(c))throw new r("Side channel does not contain "+e(c))},delete:function(c){return!!a&&a.delete(c)},get:function(c){return a&&a.get(c)},has:function(c){return!!a&&a.has(c)},set:function(c,v){a||(a=f()),a.set(c,v)}};return u},yt}var vt,da;function ni(){if(da)return vt;da=1;var r=Qt(),e=fo()(),n=nr(),o={assert:function(t,f){if(!t||typeof t!="object"&&typeof t!="function")throw new n("`O` is not an object");if(typeof f!="string")throw new n("`slot` must be a string");if(e.assert(t),!o.has(t,f))throw new n("`"+f+"` is not present on `O`")},get:function(t,f){if(!t||typeof t!="object"&&typeof t!="function")throw new n("`O` is not an object");if(typeof f!="string")throw new n("`slot` must be a string");var i=e.get(t);return i&&i["$"+f]},has:function(t,f){if(!t||typeof t!="object"&&typeof t!="function")throw new n("`O` is not an object");if(typeof f!="string")throw new n("`slot` must be a string");var i=e.get(t);return!!i&&r(i,"$"+f)},set:function(t,f,i){if(!t||typeof t!="object"&&typeof t!="function")throw new n("`O` is not an object");if(typeof f!="string")throw new n("`slot` must be a string");var a=e.get(t);a||(a={},e.set(t,a)),a["$"+f]=i}};return Object.freeze&&Object.freeze(o),vt=o,vt}var gt,ma;function ai(){if(ma)return gt;ma=1;var r=ni(),e=Ht(),n=typeof StopIteration=="object"?StopIteration:null;return gt=function(t){if(!n)throw new e("this environment lacks StopIteration");r.set(t,"[[Done]]",!1);var f={next:function(){var a=r.get(this,"[[Iterator]]"),u=!!r.get(a,"[[Done]]");try{return{done:u,value:u?void 0:a.next()}}catch(c){if(r.set(a,"[[Done]]",!0),c!==n)throw c;return{done:!0,value:void 0}}}};return r.set(f,"[[Iterator]]",t),f},gt}var ht,Sa;function so(){if(Sa)return ht;Sa=1;var r={}.toString;return ht=Array.isArray||function(e){return r.call(e)=="[object Array]"},ht}var dt,ba;function lo(){if(ba)return dt;ba=1;var r=Q(),e=r("String.prototype.valueOf"),n=function(a){try{return e(a),!0}catch{return!1}},o=r("Object.prototype.toString"),t="[object String]",f=Pr()();return dt=function(a){return typeof a=="string"?!0:!a||typeof a!="object"?!1:f?n(a):o(a)===t},dt}var mt,Aa;function co(){if(Aa)return mt;Aa=1;var r=typeof Map=="function"&&Map.prototype?Map:null,e=typeof Set=="function"&&Set.prototype?Set:null,n;r||(n=function(i){return!1});var o=r?Map.prototype.has:null,t=e?Set.prototype.has:null;return!n&&!o&&(n=function(i){return!1}),mt=n||function(i){if(!i||typeof i!="object")return!1;try{if(o.call(i),t)try{t.call(i)}catch{return!0}return i instanceof r}catch{}return!1},mt}var St,Oa;function po(){if(Oa)return St;Oa=1;var r=typeof Map=="function"&&Map.prototype?Map:null,e=typeof Set=="function"&&Set.prototype?Set:null,n;e||(n=function(i){return!1});var o=r?Map.prototype.has:null,t=e?Set.prototype.has:null;return!n&&!t&&(n=function(i){return!1}),St=n||function(i){if(!i||typeof i!="object")return!1;try{if(t.call(i),o)try{o.call(i)}catch{return!0}return i instanceof e}catch{}return!1},St}var wa;function oi(){if(wa)return Cr.exports;wa=1;var r=io(),e=ai();if(Vt()()||Kr()()){var n=Symbol.iterator;Cr.exports=function(P){if(P!=null&&typeof P[n]<"u")return P[n]();if(r(P))return Array.prototype[n].call(P)}}else{var o=so(),t=lo(),f=yr(),i=f("%Map%",!0),a=f("%Set%",!0),u=no(),c=u("Array.prototype.push"),v=u("String.prototype.charCodeAt"),p=u("String.prototype.slice"),y=function(P,_){var L=P.length;if(_+1>=L)return _+1;var N=v(P,_);if(N<55296||N>56319)return _+1;var H=v(P,_+1);return H<56320||H>57343?_+1:_+2},h=function(P){var _=0;return{next:function(){var N=_>=P.length,H;return N||(H=P[_],_+=1),{done:N,value:H}}}},m=function(P,_){if(o(P)||r(P))return h(P);if(t(P)){var L=0;return{next:function(){var H=y(P,L),V=p(P,L,H);return L=H,{done:H>P.length,value:V}}}}if(_&&typeof P["_es6-shim iterator_"]<"u")return P["_es6-shim iterator_"]()};if(!i&&!a)Cr.exports=function(P){if(P!=null)return m(P,!0)};else{var B=co(),w=po(),q=u("Map.prototype.forEach",!0),O=u("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var b=u("Map.prototype.iterator",!0),T=u("Set.prototype.iterator",!0);var X=u("Map.prototype.@@iterator",!0)||u("Map.prototype._es6-shim iterator_",!0),G=u("Set.prototype.@@iterator",!0)||u("Set.prototype._es6-shim iterator_",!0),F=function(P){if(B(P)){if(b)return e(b(P));if(X)return X(P);if(q){var _=[];return q(P,function(N,H){c(_,[H,N])}),h(_)}}if(w(P)){if(T)return e(T(P));if(G)return G(P);if(O){var L=[];return O(P,function(N){c(L,N)}),h(L)}}};Cr.exports=function(P){return F(P)||m(P)}}}return Cr.exports}var bt,qa;function yo(){if(qa)return bt;qa=1;var r=function(e){return e!==e};return bt=function(n,o){return n===0&&o===0?1/n===1/o:!!(n===o||r(n)&&r(o))},bt}var At,Pa;function vo(){if(Pa)return At;Pa=1;var r=yo();return At=function(){return typeof Object.is=="function"?Object.is:r},At}var Ot,Ia;function ii(){if(Ia)return Ot;Ia=1;var r=vo(),e=qr();return Ot=function(){var o=r();return e(Object,{is:o},{is:function(){return Object.is!==o}}),o},Ot}var wt,$a;function ui(){if($a)return wt;$a=1;var r=qr(),e=jr(),n=yo(),o=vo(),t=ii(),f=e(o(),Object);return r(f,{getPolyfill:o,implementation:n,shim:t}),wt=f,wt}var qt,Ra;function go(){if(Ra)return qt;Ra=1;var r=jr(),e=Q(),n=yr(),o=n("%ArrayBuffer%",!0),t=e("ArrayBuffer.prototype.byteLength",!0),f=e("Object.prototype.toString"),i=!!o&&!t&&new o(0).slice,a=!!i&&r(i);return qt=t||a?function(c){if(!c||typeof c!="object")return!1;try{return t?t(c):a(c,0),!0}catch{return!1}}:o?function(c){return f(c)==="[object ArrayBuffer]"}:function(c){return!1},qt}var Pt,xa;function fi(){if(xa)return Pt;xa=1;var r=Q(),e=r("Date.prototype.getDay"),n=function(a){try{return e(a),!0}catch{return!1}},o=r("Object.prototype.toString"),t="[object Date]",f=Pr()();return Pt=function(a){return typeof a!="object"||a===null?!1:f?n(a):o(a)===t},Pt}var It,Ea;function ho(){if(Ea)return It;Ea=1;var r=Q(),e=Pr()(),n=Qt(),o=wr(),t;if(e){var f=r("RegExp.prototype.exec"),i={},a=function(){throw i},u={toString:a,valueOf:a};typeof Symbol.toPrimitive=="symbol"&&(u[Symbol.toPrimitive]=a),t=function(y){if(!y||typeof y!="object")return!1;var h=o(y,"lastIndex"),m=h&&n(h,"value");if(!m)return!1;try{f(y,u)}catch(B){return B===i}}}else{var c=r("Object.prototype.toString"),v="[object RegExp]";t=function(y){return!y||typeof y!="object"&&typeof y!="function"?!1:c(y)===v}}return It=t,It}var $t,Ba;function si(){if(Ba)return $t;Ba=1;var r=Q(),e=r("SharedArrayBuffer.prototype.byteLength",!0);return $t=e?function(o){if(!o||typeof o!="object")return!1;try{return e(o),!0}catch{return!1}}:function(o){return!1},$t}var Rt,ja;function li(){if(ja)return Rt;ja=1;var r=Q(),e=r("Number.prototype.toString"),n=function(a){try{return e(a),!0}catch{return!1}},o=r("Object.prototype.toString"),t="[object Number]",f=Pr()();return Rt=function(a){return typeof a=="number"?!0:!a||typeof a!="object"?!1:f?n(a):o(a)===t},Rt}var xt,Ta;function ci(){if(Ta)return xt;Ta=1;var r=Q(),e=r("Boolean.prototype.toString"),n=r("Object.prototype.toString"),o=function(a){try{return e(a),!0}catch{return!1}},t="[object Boolean]",f=Pr()();return xt=function(a){return typeof a=="boolean"?!0:a===null||typeof a!="object"?!1:f?o(a):n(a)===t},xt}var Hr={exports:{}},Et,Ma;function pi(){if(Ma)return Et;Ma=1;var r=Q(),e=ho(),n=r("RegExp.prototype.exec"),o=nr();return Et=function(f){if(!e(f))throw new o("`regex` must be a RegExp");return function(a){return n(f,a)!==null}},Et}var Da;function yi(){if(Da)return Hr.exports;Da=1;var r=Q(),e=r("Object.prototype.toString"),n=Vt()(),o=pi();if(n){var t=r("Symbol.prototype.toString"),f=o(/^Symbol\(.*\)$/),i=function(u){return typeof u.valueOf()!="symbol"?!1:f(t(u))};Hr.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||e(u)!=="[object Symbol]")return!1;try{return i(u)}catch{return!1}}}else Hr.exports=function(u){return!1};return Hr.exports}var Gr={exports:{}},Bt,Ca;function vi(){if(Ca)return Bt;Ca=1;var r=typeof BigInt<"u"&&BigInt;return Bt=function(){return typeof r=="function"&&typeof BigInt=="function"&&typeof r(42)=="bigint"&&typeof BigInt(42)=="bigint"},Bt}var Fa;function gi(){if(Fa)return Gr.exports;Fa=1;var r=vi()();if(r){var e=BigInt.prototype.valueOf,n=function(t){try{return e.call(t),!0}catch{}return!1};Gr.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:n(t)}}else Gr.exports=function(t){return!1};return Gr.exports}var jt,_a;function hi(){if(_a)return jt;_a=1;var r=lo(),e=li(),n=ci(),o=yi(),t=gi();return jt=function(i){if(i==null||typeof i!="object"&&typeof i!="function")return null;if(r(i))return"String";if(e(i))return"Number";if(n(i))return"Boolean";if(o(i))return"Symbol";if(t(i))return"BigInt"},jt}var Tt,Na;function di(){if(Na)return Tt;Na=1;var r=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,e=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,n;r||(n=function(i){return!1});var o=r?r.prototype.has:null,t=e?e.prototype.has:null;return!n&&!o&&(n=function(i){return!1}),Tt=n||function(i){if(!i||typeof i!="object")return!1;try{if(o.call(i,o),t)try{t.call(i,t)}catch{return!0}return i instanceof r}catch{}return!1},Tt}var Ur={exports:{}},Wa;function mi(){if(Wa)return Ur.exports;Wa=1;var r=yr(),e=Q(),n=r("%WeakSet%",!0),o=e("WeakSet.prototype.has",!0);if(o){var t=e("WeakMap.prototype.has",!0);Ur.exports=function(i){if(!i||typeof i!="object")return!1;try{if(o(i,o),t)try{t(i,t)}catch{return!0}return i instanceof n}catch{}return!1}}else Ur.exports=function(i){return!1};return Ur.exports}var Mt,ka;function Si(){if(ka)return Mt;ka=1;var r=co(),e=po(),n=di(),o=mi();return Mt=function(f){if(f&&typeof f=="object"){if(r(f))return"Map";if(e(f))return"Set";if(n(f))return"WeakMap";if(o(f))return"WeakSet"}return!1},Mt}var Dt,La;function bi(){if(La)return Dt;La=1;var r=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,n,o;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{n=Object.defineProperty({},"length",{get:function(){throw o}}),o={},e(function(){throw 42},null,n)}catch(O){O!==o&&(e=null)}else e=null;var t=/^\s*class\b/,f=function(b){try{var T=r.call(b);return t.test(T)}catch{return!1}},i=function(b){try{return f(b)?!1:(r.call(b),!0)}catch{return!1}},a=Object.prototype.toString,u="[object Object]",c="[object Function]",v="[object GeneratorFunction]",p="[object HTMLAllCollection]",y="[object HTML document.all class]",h="[object HTMLCollection]",m=typeof Symbol=="function"&&!!Symbol.toStringTag,B=!(0 in[,]),w=function(){return!1};if(typeof document=="object"){var q=document.all;a.call(q)===a.call(document.all)&&(w=function(b){if((B||!b)&&(typeof b>"u"||typeof b=="object"))try{var T=a.call(b);return(T===p||T===y||T===h||T===u)&&b("")==null}catch{}return!1})}return Dt=e?function(b){if(w(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;try{e(b,null,n)}catch(T){if(T!==o)return!1}return!f(b)&&i(b)}:function(b){if(w(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;if(m)return i(b);if(f(b))return!1;var T=a.call(b);return T!==c&&T!==v&&!/^\[object HTML/.test(T)?!1:i(b)},Dt}var Ct,Ha;function Ai(){if(Ha)return Ct;Ha=1;var r=bi(),e=Object.prototype.toString,n=Object.prototype.hasOwnProperty,o=function(u,c,v){for(var p=0,y=u.length;p<y;p++)n.call(u,p)&&(v==null?c(u[p],p,u):c.call(v,u[p],p,u))},t=function(u,c,v){for(var p=0,y=u.length;p<y;p++)v==null?c(u.charAt(p),p,u):c.call(v,u.charAt(p),p,u)},f=function(u,c,v){for(var p in u)n.call(u,p)&&(v==null?c(u[p],p,u):c.call(v,u[p],p,u))};function i(a){return e.call(a)==="[object Array]"}return Ct=function(u,c,v){if(!r(c))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=v),i(u)?o(u,c,p):typeof u=="string"?t(u,c,p):f(u,c,p)},Ct}var Ft,Ga;function Oi(){return Ga||(Ga=1,Ft=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Ft}var _t,Ua;function wi(){if(Ua)return _t;Ua=1;var r=Oi(),e=typeof globalThis>"u"?Br.commonjsGlobal:globalThis;return _t=function(){for(var o=[],t=0;t<r.length;t++)typeof e[r[t]]=="function"&&(o[o.length]=r[t]);return o},_t}var Nt,za;function qi(){if(za)return Nt;za=1;var r=Ai(),e=wi(),n=jr(),o=Q(),t=wr(),f=Xt(),i=o("Object.prototype.toString"),a=Pr()(),u=typeof globalThis>"u"?Br.commonjsGlobal:globalThis,c=e(),v=o("String.prototype.slice"),p=o("Array.prototype.indexOf",!0)||function(w,q){for(var O=0;O<w.length;O+=1)if(w[O]===q)return O;return-1},y={__proto__:null};a&&t&&f?r(c,function(B){var w=new u[B];if(Symbol.toStringTag in w&&f){var q=f(w),O=t(q,Symbol.toStringTag);if(!O&&q){var b=f(q);O=t(b,Symbol.toStringTag)}y["$"+B]=n(O.get)}}):r(c,function(B){var w=new u[B],q=w.slice||w.set;q&&(y["$"+B]=n(q))});var h=function(w){var q=!1;return r(y,function(O,b){if(!q)try{"$"+O(w)===b&&(q=v(b,1))}catch{}}),q},m=function(w){var q=!1;return r(y,function(O,b){if(!q)try{O(w),q=v(b,1)}catch{}}),q};return Nt=function(w){if(!w||typeof w!="object")return!1;if(!a){var q=v(i(w),8,-1);return p(c,q)>-1?q:q!=="Object"?!1:m(w)}return t?h(w):null},Nt}var Wt,Va;function Pi(){if(Va)return Wt;Va=1;var r=Q(),e=r("ArrayBuffer.prototype.byteLength",!0),n=go();return Wt=function(t){return n(t)?e?e(t):t.byteLength:NaN},Wt}var kt,Ka;function Ii(){if(Ka)return kt;Ka=1;var r=Vo(),e=no(),n=Xo(),o=yr(),t=oi(),f=fo(),i=ui(),a=io(),u=so(),c=go(),v=fi(),p=ho(),y=si(),h=Lt(),m=hi(),B=Si(),w=qi(),q=Pi(),O=e("SharedArrayBuffer.prototype.byteLength",!0),b=e("Date.prototype.getTime"),T=Object.getPrototypeOf,X=e("Object.prototype.toString"),G=o("%Set%",!0),F=e("Map.prototype.has",!0),C=e("Map.prototype.get",!0),P=e("Map.prototype.size",!0),_=e("Set.prototype.add",!0),L=e("Set.prototype.delete",!0),N=e("Set.prototype.has",!0),H=e("Set.prototype.size",!0);function V(g,d,R,$){for(var j=t(g),M;(M=j.next())&&!M.done;)if(U(d,M.value,R,$))return L(g,M.value),!0;return!1}function fr(g){if(typeof g>"u")return null;if(typeof g!="object")return typeof g=="symbol"?!1:typeof g=="string"||typeof g=="number"?+g==+g:!0}function Ir(g,d,R,$,j,M){var A=fr(R);if(A!=null)return A;var I=C(d,A),S=r({},j,{strict:!1});return typeof I>"u"&&!F(d,A)||!U($,I,S,M)?!1:!F(g,A)&&U($,I,S,M)}function Sr(g,d,R){var $=fr(R);return $??(N(d,$)&&!N(g,$))}function ar(g,d,R,$,j,M){for(var A=t(g),I,S;(I=A.next())&&!I.done;)if(S=I.value,U(R,S,j,M)&&U($,C(d,S),j,M))return L(g,S),!0;return!1}function U(g,d,R,$){var j=R||{};if(j.strict?i(g,d):g===d)return!0;var M=m(g),A=m(d);if(M!==A)return!1;if(!g||!d||typeof g!="object"&&typeof d!="object")return j.strict?i(g,d):g==d;var I=$.has(g),S=$.has(d),x;if(I&&S){if($.get(g)===$.get(d))return!0}else x={};return I||$.set(g,x),S||$.set(d,x),vr(g,d,j,$)}function br(g){return!g||typeof g!="object"||typeof g.length!="number"||typeof g.copy!="function"||typeof g.slice!="function"||g.length>0&&typeof g[0]!="number"?!1:!!(g.constructor&&g.constructor.isBuffer&&g.constructor.isBuffer(g))}function $r(g,d,R,$){if(H(g)!==H(d))return!1;for(var j=t(g),M=t(d),A,I,S;(A=j.next())&&!A.done;)if(A.value&&typeof A.value=="object")S||(S=new G),_(S,A.value);else if(!N(d,A.value)){if(R.strict||!Sr(g,d,A.value))return!1;S||(S=new G),_(S,A.value)}if(S){for(;(I=M.next())&&!I.done;)if(I.value&&typeof I.value=="object"){if(!V(S,I.value,R.strict,$))return!1}else if(!R.strict&&!N(g,I.value)&&!V(S,I.value,R.strict,$))return!1;return H(S)===0}return!0}function Ar(g,d,R,$){if(P(g)!==P(d))return!1;for(var j=t(g),M=t(d),A,I,S,x,z,K;(A=j.next())&&!A.done;)if(x=A.value[0],z=A.value[1],x&&typeof x=="object")S||(S=new G),_(S,x);else if(K=C(d,x),typeof K>"u"&&!F(d,x)||!U(z,K,R,$)){if(R.strict||!Ir(g,d,x,z,R,$))return!1;S||(S=new G),_(S,x)}if(S){for(;(I=M.next())&&!I.done;)if(x=I.value[0],K=I.value[1],x&&typeof x=="object"){if(!ar(S,g,x,K,R,$))return!1}else if(!R.strict&&(!g.has(x)||!U(C(g,x),K,R,$))&&!ar(S,g,x,K,r({},R,{strict:!1}),$))return!1;return H(S)===0}return!0}function vr(g,d,R,$){var j,M;if(typeof g!=typeof d||g==null||d==null||X(g)!==X(d)||a(g)!==a(d))return!1;var A=u(g),I=u(d);if(A!==I)return!1;var S=g instanceof Error,x=d instanceof Error;if(S!==x||(S||x)&&(g.name!==d.name||g.message!==d.message))return!1;var z=p(g),K=p(d);if(z!==K||(z||K)&&(g.source!==d.source||n(g)!==n(d)))return!1;var J=v(g),Y=v(d);if(J!==Y||(J||Y)&&b(g)!==b(d)||R.strict&&T&&T(g)!==T(d))return!1;var Z=w(g),sr=w(d);if(Z!==sr)return!1;if(Z||sr){if(g.length!==d.length)return!1;for(j=0;j<g.length;j++)if(g[j]!==d[j])return!1;return!0}var or=br(g),rr=br(d);if(or!==rr)return!1;if(or||rr){if(g.length!==d.length)return!1;for(j=0;j<g.length;j++)if(g[j]!==d[j])return!1;return!0}var lr=c(g),cr=c(d);if(lr!==cr)return!1;if(lr||cr)return q(g)!==q(d)?!1:typeof Uint8Array=="function"&&U(new Uint8Array(g),new Uint8Array(d),R,$);var pr=y(g),Nr=y(d);if(pr!==Nr)return!1;if(pr||Nr)return O(g)!==O(d)?!1:typeof Uint8Array=="function"&&U(new Uint8Array(g),new Uint8Array(d),R,$);if(typeof g!=typeof d)return!1;var gr=h(g),Rr=h(d);if(gr.length!==Rr.length)return!1;for(gr.sort(),Rr.sort(),j=gr.length-1;j>=0;j--)if(gr[j]!=Rr[j])return!1;for(j=gr.length-1;j>=0;j--)if(M=gr[j],!U(g[M],d[M],R,$))return!1;var Tr=B(g),hr=B(d);return Tr!==hr?!1:Tr==="Set"||hr==="Set"?$r(g,d,R,$):Tr==="Map"?Ar(g,d,R,$):!0}return kt=function(d,R,$){return U(d,R,$,f())},kt}var $i=Ii();const Ri=Br.getDefaultExportFromCjs($i);function xi(r){return r}function mo(r,e,n,o){const t=xi,[f,i]=ur.useState(t(n)),a=ur.useRef(f);return ur.useEffect(()=>{const u=()=>{const c={...n,...r.getAttributes(e)};Object.keys(c).forEach(p=>{(c[p]===null||c[p]===void 0)&&(c[p]=n?n[p]:null)});const v=t(c);Ri(a.current,v)||(i(v),a.current=v)};return r.on("selectionUpdate",u),r.on("transaction",u),()=>{r.off("selectionUpdate",u),r.off("transaction",u)}},[r,n,e,t]),f}function Ei({node:r}){const{text:e}=r.attrs,n=ur.useMemo(()=>{try{return Ja.renderToString(`${e}`)}catch{return e}},[e]),o=ur.useMemo(()=>e.trim()?er.jsx("span",{contentEditable:!1,dangerouslySetInnerHTML:{__html:n}}):er.jsx("span",{contentEditable:!1,children:"Not enter a formula"}),[e,n]);return er.jsx(Fr.NodeViewWrapper,{as:"span",style:{display:"inline-block"},children:o})}function Bi(){const{t:r}=Io.useLocale(),[e,n]=ur.useState(!1),o=oe.useButtonProps(zr.name),{icon:t=void 0,tooltip:f=void 0,tooltipOptions:i={},isActive:a=void 0}=(o==null?void 0:o.componentProps)??{},{editorDisabled:u}=oe.useToggleActive(a),c=oe.useEditorInstance(),v=mo(c,zr.name,{text:"",defaultShowPicker:!1}),{text:p,defaultShowPicker:y}=v,[h,m]=ur.useState(p||""),B=ur.useCallback(()=>{c.chain().focus().setKatex({text:h}).run(),m(""),n(!1)},[c,h]);ur.useEffect(()=>{y&&c.chain().updateAttributes(zr.name,{defaultShowPicker:!1}).focus().run()},[c,y]);const w=ur.useMemo(()=>{try{return Ja.renderToString(`${h}`)}catch{return h}},[h]),q=ur.useMemo(()=>`${h}`.trim()?w:null,[h,w]);return er.jsxs(Dr.Dialog,{onOpenChange:n,open:e,children:[er.jsx(Dr.DialogTrigger,{asChild:!0,disabled:u,children:er.jsx(wo.ActionButton,{disabled:u,icon:t,tooltip:f,tooltipOptions:i,action:()=>{u||n(!0)}})}),er.jsxs(Dr.DialogContent,{className:"richtext-z-[99999] !richtext-max-w-[1300px]",children:[er.jsx(Dr.DialogTitle,{children:r("editor.formula.dialog.text")}),er.jsx("div",{style:{height:"100%",border:"1px solid hsl(var(--border))"},children:er.jsxs("div",{className:"richtext-flex richtext-gap-[10px] richtext-rounded-[10px] richtext-p-[10px]",children:[er.jsx(Po.Textarea,{autoFocus:!0,className:"richtext-flex-1",onChange:O=>m(O.target.value),placeholder:"Text",required:!0,rows:10,value:h,style:{color:"hsl(var(--foreground))"}}),er.jsx("div",{className:"richtext-flex richtext-flex-1 richtext-items-center richtext-justify-center richtext-rounded-[10px] richtext-p-[10px]",dangerouslySetInnerHTML:{__html:q||""},style:{height:"100%",borderWidth:1,minHeight:500,background:"#fff"}})]})}),er.jsx(Dr.DialogFooter,{children:er.jsx(qo.Button,{onClick:B,type:"button",children:"Save changes"})})]})]})}function ji(r){return e=>e.getAttribute(r)}const zr=Fr.Node3.create({name:"katex",group:"inline",inline:!0,defining:!0,draggable:!0,selectable:!0,addOptions(){return{HTMLAttributes:{class:"katex"},button:({t:r})=>({componentProps:{action:()=>!0,isActive:()=>!1,disabled:!1,icon:"KatexIcon",tooltip:r("editor.katex.tooltip")}})}},addAttributes(){return{text:{default:"",parseHTML:ji("text")},defaultShowPicker:{default:!1}}},parseHTML(){return[{tag:"span.katex"}]},renderHTML({HTMLAttributes:r}){return["span",Fr.mergeAttributes(this.options&&this.options.HTMLAttributes||{},r)]},addCommands(){return{setKatex:r=>({commands:e})=>e.insertContent({type:this.name,attrs:r})}},addInputRules(){return[Fr.nodeInputRule({find:/^\$katex\$$/,type:this.type,getAttributes:()=>({defaultShowPicker:!0})})]},addNodeView(){return Fr.ReactNodeViewRenderer(Ei)}});exports.Katex=zr;exports.RichTextKatex=Bi;exports.useAttributes=mo;
@@ -1 +0,0 @@
1
- "use strict";const k=require("./index-DLqogznp.cjs"),n=require("react/jsx-runtime"),h=require("react"),Lt=require("./index-D42xFOzI.cjs"),Ot=require("./Icon-C3j4ls73.cjs"),je=require("./popover-sP8CwbV-.cjs"),qt=require("./button-B6ukqDUf.cjs"),$t=require("./input-BxzQAIRv.cjs"),Dt=require("./label-BfWfLggp.cjs"),At=require("./index-FSRjMsxW.cjs"),we=require("./useButtonProps-TfmRCM9r.cjs"),Vt="_verified_lvyh0_1",We={verified:Vt},Mt=()=>n.jsx("svg",{viewBox:"0 0 24 24","aria-label":"Verified account",role:"img",className:We.verified,children:n.jsx("g",{children:n.jsx("path",{d:"M22.25 12c0-1.43-.88-2.67-2.19-3.34.46-1.39.2-2.9-.81-3.91s-2.52-1.27-3.91-.81c-.66-1.31-1.91-2.19-3.34-2.19s-2.67.88-3.33 2.19c-1.4-.46-2.91-.2-3.92.81s-1.26 2.52-.8 3.91c-1.31.67-2.2 1.91-2.2 3.34s.89 2.67 2.2 3.34c-.46 1.39-.21 2.9.8 3.91s2.52 1.26 3.91.81c.67 1.31 1.91 2.19 3.34 2.19s2.68-.88 3.34-2.19c1.39.45 2.9.2 3.91-.81s1.27-2.52.81-3.91c1.31-.67 2.19-1.91 2.19-3.34zm-11.71 4.2L6.8 12.46l1.41-1.42 2.26 2.26 4.8-5.23 1.47 1.36-6.2 6.77z"})})}),Wt=()=>n.jsx("svg",{viewBox:"0 0 22 22","aria-label":"Verified account",role:"img",className:We.verified,children:n.jsxs("g",{children:[n.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"0-a",x1:"4.411",x2:"18.083",y1:"2.495",y2:"21.508",children:[n.jsx("stop",{offset:"0",stopColor:"#f4e72a"}),n.jsx("stop",{offset:".539",stopColor:"#cd8105"}),n.jsx("stop",{offset:".68",stopColor:"#cb7b00"}),n.jsx("stop",{offset:"1",stopColor:"#f4ec26"}),n.jsx("stop",{offset:"1",stopColor:"#f4e72a"})]}),n.jsxs("linearGradient",{gradientUnits:"userSpaceOnUse",id:"0-b",x1:"5.355",x2:"16.361",y1:"3.395",y2:"19.133",children:[n.jsx("stop",{offset:"0",stopColor:"#f9e87f"}),n.jsx("stop",{offset:".406",stopColor:"#e2b719"}),n.jsx("stop",{offset:".989",stopColor:"#e2b719"})]}),n.jsxs("g",{clipRule:"evenodd",fillRule:"evenodd",children:[n.jsx("path",{d:"M13.324 3.848L11 1.6 8.676 3.848l-3.201-.453-.559 3.184L2.06 8.095 3.48 11l-1.42 2.904 2.856 1.516.559 3.184 3.201-.452L11 20.4l2.324-2.248 3.201.452.559-3.184 2.856-1.516L18.52 11l1.42-2.905-2.856-1.516-.559-3.184zm-7.09 7.575l3.428 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fill:"url(#0-a)"}),n.jsx("path",{d:"M13.101 4.533L11 2.5 8.899 4.533l-2.895-.41-.505 2.88-2.583 1.37L4.2 11l-1.284 2.627 2.583 1.37.505 2.88 2.895-.41L11 19.5l2.101-2.033 2.895.41.505-2.88 2.583-1.37L17.8 11l1.284-2.627-2.583-1.37-.505-2.88zm-6.868 6.89l3.429 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fill:"url(#0-b)"}),n.jsx("path",{d:"M6.233 11.423l3.429 3.428 5.65-6.17.038-.033-.005 1.398-5.683 6.206-3.429-3.429-.003-1.405.005.003z",fill:"#d18800"})]})]})}),Bt=()=>n.jsx("svg",{viewBox:"0 0 22 22","aria-label":"Verified account",role:"img",className:We.verified,children:n.jsx("g",{children:n.jsx("path",{clipRule:"evenodd",d:"M12.05 2.056c-.568-.608-1.532-.608-2.1 0l-1.393 1.49c-.284.303-.685.47-1.1.455L5.42 3.932c-.832-.028-1.514.654-1.486 1.486l.069 2.039c.014.415-.152.816-.456 1.1l-1.49 1.392c-.608.568-.608 1.533 0 2.101l1.49 1.393c.304.284.47.684.456 1.1l-.07 2.038c-.027.832.655 1.514 1.487 1.486l2.038-.069c.415-.014.816.152 1.1.455l1.392 1.49c.569.609 1.533.609 2.102 0l1.393-1.49c.283-.303.684-.47 1.099-.455l2.038.069c.832.028 1.515-.654 1.486-1.486L18 14.542c-.015-.415.152-.815.455-1.099l1.49-1.393c.608-.568.608-1.533 0-2.101l-1.49-1.393c-.303-.283-.47-.684-.455-1.1l.068-2.038c.029-.832-.654-1.514-1.486-1.486l-2.038.07c-.415.013-.816-.153-1.1-.456zm-5.817 9.367l3.429 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z",fillRule:"evenodd"})})}),Pt="_root_98iqw_1",Ft="_article_98iqw_21",et={root:Pt,article:Ft},Be=({className:e,children:t})=>n.jsx("div",{className:k.clsx("react-tweet-theme",et.root,e),children:n.jsx("article",{className:et.article,children:t})}),ht=e=>n.jsx("img",{...e}),Ut="_header_nqq4j_1",zt="_avatar_nqq4j_11",Ht="_avatarOverflow_nqq4j_16",Gt="_avatarSquare_nqq4j_23",Xt="_avatarShadow_nqq4j_26",Kt="_author_nqq4j_37",Qt="_authorLink_nqq4j_44",Jt="_authorVerified_nqq4j_53",Yt="_authorLinkText_nqq4j_56",Zt="_authorMeta_nqq4j_63",en="_authorFollow_nqq4j_66",tn="_username_nqq4j_69",nn="_follow_nqq4j_74",rn="_separator_nqq4j_82",sn="_brand_nqq4j_86",on="_twitterIcon_nqq4j_90",b={header:Ut,avatar:zt,avatarOverflow:Ht,avatarSquare:Gt,avatarShadow:Xt,author:Kt,authorLink:Qt,authorVerified:Jt,authorLinkText:Yt,authorMeta:Zt,authorFollow:en,username:tn,follow:nn,separator:rn,brand:sn,twitterIcon:on},an="_verifiedOld_lcna5_1",cn="_verifiedBlue_lcna5_4",ln="_verifiedGovernment_lcna5_7",ye={verifiedOld:an,verifiedBlue:cn,verifiedGovernment:ln},_t=({user:e,className:t})=>{const r=e.verified||e.is_blue_verified||e.verified_type;let s=n.jsx(Mt,{}),o=ye.verifiedBlue;if(r)switch(e.is_blue_verified||(o=ye.verifiedOld),e.verified_type){case"Government":s=n.jsx(Bt,{}),o=ye.verifiedGovernment;break;case"Business":s=n.jsx(Wt,{}),o=null;break}return r?n.jsx("div",{className:k.clsx(t,o),children:s}):null},dn=({tweet:e,components:t})=>{var r;const s=(r=t==null?void 0:t.AvatarImg)!=null?r:ht,{user:o}=e;return n.jsxs("div",{className:b.header,children:[n.jsxs("a",{href:e.url,className:b.avatar,target:"_blank",rel:"noopener noreferrer",children:[n.jsx("div",{className:k.clsx(b.avatarOverflow,o.profile_image_shape==="Square"&&b.avatarSquare),children:n.jsx(s,{src:o.profile_image_url_https,alt:o.name,width:48,height:48})}),n.jsx("div",{className:b.avatarOverflow,children:n.jsx("div",{className:b.avatarShadow})})]}),n.jsxs("div",{className:b.author,children:[n.jsxs("a",{href:e.url,className:b.authorLink,target:"_blank",rel:"noopener noreferrer",children:[n.jsx("div",{className:b.authorLinkText,children:n.jsx("span",{title:o.name,children:o.name})}),n.jsx(_t,{user:o,className:b.authorVerified})]}),n.jsxs("div",{className:b.authorMeta,children:[n.jsx("a",{href:e.url,className:b.username,target:"_blank",rel:"noopener noreferrer",children:n.jsxs("span",{title:`@${o.screen_name}`,children:["@",o.screen_name]})}),n.jsxs("div",{className:b.authorFollow,children:[n.jsx("span",{className:b.separator,children:"·"}),n.jsx("a",{href:o.follow_url,className:b.follow,target:"_blank",rel:"noopener noreferrer",children:"Follow"})]})]})]}),n.jsx("a",{href:e.url,className:b.brand,target:"_blank",rel:"noopener noreferrer","aria-label":"View on Twitter",children:n.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:b.twitterIcon,children:n.jsx("g",{children:n.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})})})]})},un="_root_1ec15_1",fn={root:un},hn=({tweet:e})=>n.jsxs("a",{href:e.in_reply_to_url,className:fn.root,target:"_blank",rel:"noopener noreferrer",children:["Replying to @",e.in_reply_to_screen_name]}),_n="_root_eihfa_1",pn={root:_n},mn=({href:e,children:t})=>n.jsx("a",{href:e,className:pn.root,target:"_blank",rel:"noopener noreferrer nofollow",children:t}),xn="_root_1xq52_1",vn={root:xn},gn=({tweet:e})=>n.jsx("p",{className:vn.root,lang:e.lang,dir:"auto",children:e.entities.map((t,r)=>{switch(t.type){case"hashtag":case"mention":case"url":case"symbol":return n.jsx(mn,{href:t.href,children:t.text},r);case"media":return;default:return n.jsx("span",{dangerouslySetInnerHTML:{__html:t.text}},r)}})}),tt=e=>`https://x.com/${e.user.screen_name}/status/${e.id_str}`,pt=e=>`https://x.com/${typeof e=="string"?e:e.user.screen_name}`,jn=e=>`https://x.com/intent/like?tweet_id=${e.id_str}`,wn=e=>`https://x.com/intent/tweet?in_reply_to=${e.id_str}`,yn=e=>`https://x.com/intent/follow?screen_name=${e.user.screen_name}`,Tn=e=>`https://x.com/hashtag/${e.text}`,bn=e=>`https://x.com/search?q=%24${e.text}`,Nn=e=>`https://x.com/${e.in_reply_to_screen_name}/status/${e.in_reply_to_status_id_str}`,mt=(e,t)=>{const r=new URL(e.media_url_https),s=r.pathname.split(".").pop();return s?(r.pathname=r.pathname.replace(`.${s}`,""),r.searchParams.set("format",s),r.searchParams.set("name",t),r.toString()):e.media_url_https},Rn=e=>{const{variants:t}=e.video_info;return t.filter(s=>s.content_type==="video/mp4").sort((s,o)=>{var a,i;return((a=o.bitrate)!=null?a:0)-((i=s.bitrate)!=null?i:0)})},Sn=e=>{const t=Rn(e);return t.length>1?t[1]:t[0]},Ce=e=>e>999999?`${(e/1e6).toFixed(1)}M`:e>999?`${(e/1e3).toFixed(1)}K`:e.toString();function nt(e){const t=Array.from(e.text),r=[{indices:e.display_text_range,type:"text"}];return ce(r,"hashtag",e.entities.hashtags),ce(r,"mention",e.entities.user_mentions),ce(r,"url",e.entities.urls),ce(r,"symbol",e.entities.symbols),e.entities.media&&ce(r,"media",e.entities.media),kn(e,r),r.map(s=>{const o=t.slice(s.indices[0],s.indices[1]).join("");switch(s.type){case"hashtag":return Object.assign(s,{href:Tn(s),text:o});case"mention":return Object.assign(s,{href:pt(s.screen_name),text:o});case"url":case"media":return Object.assign(s,{href:s.expanded_url,text:s.display_url});case"symbol":return Object.assign(s,{href:bn(s),text:o});default:return Object.assign(s,{text:o})}})}function ce(e,t,r){for(const s of r)for(const[o,a]of e.entries()){if(a.indices[0]>s.indices[0]||a.indices[1]<s.indices[1])continue;const i=[{...s,type:t}];a.indices[0]<s.indices[0]&&i.unshift({indices:[a.indices[0],s.indices[0]],type:"text"}),a.indices[1]>s.indices[1]&&i.push({indices:[s.indices[1],a.indices[1]],type:"text"}),e.splice(o,1,...i);break}}function kn(e,t){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]);const r=t.at(-1);r&&r.indices[1]>e.display_text_range[1]&&(r.indices[1]=e.display_text_range[1])}const En=e=>({...e,url:tt(e),user:{...e.user,url:pt(e),follow_url:yn(e)},like_url:jn(e),reply_url:wn(e),in_reply_to_url:e.in_reply_to_screen_name?Nn(e):void 0,entities:nt(e),quoted_tweet:e.quoted_tweet?{...e.quoted_tweet,url:tt(e.quoted_tweet),entities:nt(e.quoted_tweet)}:void 0}),In="_root_g9tkv_1",Cn="_rounded_g9tkv_6",Ln="_mediaWrapper_g9tkv_10",On="_grid2Columns_g9tkv_17",qn="_grid3_g9tkv_20",$n="_grid2x2_g9tkv_23",Dn="_mediaContainer_g9tkv_26",An="_mediaLink_g9tkv_34",Vn="_skeleton_g9tkv_38",Mn="_image_g9tkv_43",C={root:In,rounded:Cn,mediaWrapper:Ln,grid2Columns:On,grid3:qn,grid2x2:$n,mediaContainer:Dn,mediaLink:An,skeleton:Vn,image:Mn},Wn="_anchor_fp31d_1",Bn="_videoButton_fp31d_17",Pn="_videoButtonIcon_fp31d_35",Fn="_watchOnTwitter_fp31d_44",Un="_viewReplies_fp31d_60",se={anchor:Wn,videoButton:Bn,videoButtonIcon:Pn,watchOnTwitter:Fn,viewReplies:Un},zn=({tweet:e,media:t})=>{const[r,s]=h.useState(!0),[o,a]=h.useState(!1),[i,c]=h.useState(!1),f=Sn(t);let d=0;return n.jsxs(n.Fragment,{children:[n.jsx("video",{className:C.image,poster:mt(t,"small"),controls:!r,playsInline:!0,preload:"none",tabIndex:r?-1:0,onPlay:()=>{d&&window.clearTimeout(d),o||a(!0),i&&c(!1)},onPause:()=>{d&&window.clearTimeout(d),d=window.setTimeout(()=>{o&&a(!1),d=0},100)},onEnded:()=>{c(!0)},children:n.jsx("source",{src:f.url,type:f.content_type})}),r&&n.jsx("button",{type:"button",className:se.videoButton,"aria-label":"View video on X",onClick:v=>{const p=v.currentTarget.previousSibling;v.preventDefault(),s(!1),p.load(),p.play().then(()=>{a(!0),p.focus()}).catch(w=>{console.error("Error playing video:",w),s(!0),a(!1)})},children:n.jsx("svg",{viewBox:"0 0 24 24",className:se.videoButtonIcon,"aria-hidden":"true",children:n.jsx("g",{children:n.jsx("path",{d:"M21 12L4 2v20l17-10z"})})})}),!o&&!i&&n.jsx("div",{className:se.watchOnTwitter,children:n.jsx("a",{href:e.url,className:se.anchor,target:"_blank",rel:"noopener noreferrer",children:r?"Watch on X":"Continue watching on X"})}),i&&n.jsx("a",{href:e.url,className:k.clsx(se.anchor,se.viewReplies),target:"_blank",rel:"noopener noreferrer",children:"View replies"})]})},Hn=e=>n.jsx("img",{...e}),rt=(e,t)=>{let r=56.25;return t===1&&(r=100/e.original_info.width*e.original_info.height),t===2&&(r=r*2),{width:e.type==="photo"?void 0:"unset",paddingBottom:`${r}%`}},xt=({tweet:e,components:t,quoted:r})=>{var s,o,a;const i=(a=(s=e.mediaDetails)==null?void 0:s.length)!=null?a:0;var c;const f=(c=t==null?void 0:t.MediaImg)!=null?c:Hn;return n.jsx("div",{className:k.clsx(C.root,!r&&C.rounded),children:n.jsx("div",{className:k.clsx(C.mediaWrapper,i>1&&C.grid2Columns,i===3&&C.grid3,i>4&&C.grid2x2),children:(o=e.mediaDetails)==null?void 0:o.map(d=>n.jsx(h.Fragment,{children:d.type==="photo"?n.jsxs("a",{href:e.url,className:k.clsx(C.mediaContainer,C.mediaLink),target:"_blank",rel:"noopener noreferrer",children:[n.jsx("div",{className:C.skeleton,style:rt(d,i)}),n.jsx(f,{src:mt(d,"small"),alt:d.ext_alt_text||"Image",className:C.image,draggable:!0})]},d.media_url_https):n.jsxs("div",{className:C.mediaContainer,children:[n.jsx("div",{className:C.skeleton,style:rt(d,i)}),n.jsx(zn,{tweet:e,media:d})]},d.media_url_https)},d.media_url_https))})})},Gn={hour:"numeric",minute:"2-digit",hour12:!0,weekday:"short",month:"short",day:"numeric",year:"numeric"},Xn=new Intl.DateTimeFormat("en-US",Gn),Kn=e=>{const t={};for(const r of e)t[r.type]=r.value;return t},Qn=e=>{const t=Kn(Xn.formatToParts(e)),r=`${t.hour}:${t.minute} ${t.dayPeriod}`,s=`${t.month} ${t.day}, ${t.year}`;return`${r} · ${s}`},Jn="_root_i24yn_1",Yn={root:Jn},Zn=({tweet:e})=>{const t=new Date(e.created_at),r=Qn(t);return n.jsx("a",{className:Yn.root,href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":r,children:n.jsx("time",{dateTime:t.toISOString(),children:r})})},er="_info_19qcj_1",tr="_infoLink_19qcj_10",nr="_infoIcon_19qcj_30",Te={info:er,infoLink:tr,infoIcon:nr},rr=({tweet:e})=>n.jsxs("div",{className:Te.info,children:[n.jsx(Zn,{tweet:e}),n.jsx("a",{className:Te.infoLink,href:"https://help.x.com/en/x-for-websites-ads-info-and-privacy",target:"_blank",rel:"noopener noreferrer","aria-label":"Twitter for Websites, Ads Information and Privacy",children:n.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:Te.infoIcon,children:n.jsx("g",{children:n.jsx("path",{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"})})})})]}),sr="_actions_n2anf_1",or="_like_n2anf_13",ir="_reply_n2anf_14",ar="_copy_n2anf_15",cr="_likeIconWrapper_n2anf_27",lr="_likeCount_n2anf_30",dr="_replyIconWrapper_n2anf_35",ur="_copyIconWrapper_n2anf_36",fr="_likeIcon_n2anf_27",hr="_replyIcon_n2anf_35",_r="_copyIcon_n2anf_36",pr="_replyText_n2anf_56",mr="_copyText_n2anf_57",E={actions:sr,like:or,reply:ir,copy:ar,likeIconWrapper:cr,likeCount:lr,replyIconWrapper:dr,copyIconWrapper:ur,likeIcon:fr,replyIcon:hr,copyIcon:_r,replyText:pr,copyText:mr},xr=({tweet:e})=>{const[t,r]=h.useState(!1),s=()=>{navigator.clipboard.writeText(e.url),r(!0)};return h.useEffect(()=>{if(t){const o=setTimeout(()=>{r(!1)},6e3);return()=>clearTimeout(o)}},[t]),n.jsxs("button",{type:"button",className:E.copy,"aria-label":"Copy link",onClick:s,children:[n.jsx("div",{className:E.copyIconWrapper,children:t?n.jsx("svg",{viewBox:"0 0 24 24",className:E.copyIcon,"aria-hidden":"true",children:n.jsx("g",{children:n.jsx("path",{d:"M9.64 18.952l-5.55-4.861 1.317-1.504 3.951 3.459 8.459-10.948L19.4 6.32 9.64 18.952z"})})}):n.jsx("svg",{viewBox:"0 0 24 24",className:E.copyIcon,"aria-hidden":"true",children:n.jsx("g",{children:n.jsx("path",{d:"M18.36 5.64c-1.95-1.96-5.11-1.96-7.07 0L9.88 7.05 8.46 5.64l1.42-1.42c2.73-2.73 7.16-2.73 9.9 0 2.73 2.74 2.73 7.17 0 9.9l-1.42 1.42-1.41-1.42 1.41-1.41c1.96-1.96 1.96-5.12 0-7.07zm-2.12 3.53l-7.07 7.07-1.41-1.41 7.07-7.07 1.41 1.41zm-12.02.71l1.42-1.42 1.41 1.42-1.41 1.41c-1.96 1.96-1.96 5.12 0 7.07 1.95 1.96 5.11 1.96 7.07 0l1.41-1.41 1.42 1.41-1.42 1.42c-2.73 2.73-7.16 2.73-9.9 0-2.73-2.74-2.73-7.17 0-9.9z"})})})}),n.jsx("span",{className:E.copyText,children:t?"Copied!":"Copy link"})]})},vr=({tweet:e})=>{const t=Ce(e.favorite_count);return n.jsxs("div",{className:E.actions,children:[n.jsxs("a",{className:E.like,href:e.like_url,target:"_blank",rel:"noopener noreferrer","aria-label":`Like. This Tweet has ${t} likes`,children:[n.jsx("div",{className:E.likeIconWrapper,children:n.jsx("svg",{viewBox:"0 0 24 24",className:E.likeIcon,"aria-hidden":"true",children:n.jsx("g",{children:n.jsx("path",{d:"M20.884 13.19c-1.351 2.48-4.001 5.12-8.379 7.67l-.503.3-.504-.3c-4.379-2.55-7.029-5.19-8.382-7.67-1.36-2.5-1.41-4.86-.514-6.67.887-1.79 2.647-2.91 4.601-3.01 1.651-.09 3.368.56 4.798 2.01 1.429-1.45 3.146-2.1 4.796-2.01 1.954.1 3.714 1.22 4.601 3.01.896 1.81.846 4.17-.514 6.67z"})})})}),n.jsx("span",{className:E.likeCount,children:t})]}),n.jsxs("a",{className:E.reply,href:e.reply_url,target:"_blank",rel:"noopener noreferrer","aria-label":"Reply to this Tweet on Twitter",children:[n.jsx("div",{className:E.replyIconWrapper,children:n.jsx("svg",{viewBox:"0 0 24 24",className:E.replyIcon,"aria-hidden":"true",children:n.jsx("g",{children:n.jsx("path",{d:"M1.751 10c0-4.42 3.584-8 8.005-8h4.366c4.49 0 8.129 3.64 8.129 8.13 0 2.96-1.607 5.68-4.196 7.11l-8.054 4.46v-3.69h-.067c-4.49.1-8.183-3.51-8.183-8.01z"})})})}),n.jsx("span",{className:E.replyText,children:"Reply"})]}),n.jsx(xr,{tweet:e})]})},gr="_replies_1cutb_1",jr="_link_1cutb_4",wr="_text_1cutb_23",be={replies:gr,link:jr,text:wr},yr=({tweet:e})=>n.jsx("div",{className:be.replies,children:n.jsx("a",{className:be.link,href:e.url,target:"_blank",rel:"noopener noreferrer",children:n.jsx("span",{className:be.text,children:e.conversation_count===0?"Read more on X":e.conversation_count===1?`Read ${Ce(e.conversation_count)} reply`:`Read ${Ce(e.conversation_count)} replies`})})}),Tr="_root_q5799_1",br="_article_q5799_16",st={root:Tr,article:br},Nr=({tweet:e,children:t})=>n.jsx("div",{className:st.root,onClick:r=>{r.preventDefault(),window.open(e.url,"_blank")},children:n.jsx("article",{className:st.article,children:t})}),Rr="_header_r31i5_1",Sr="_avatar_r31i5_11",kr="_avatarSquare_r31i5_17",Er="_author_r31i5_21",Ir="_authorText_r31i5_26",Cr="_username_r31i5_33",K={header:Rr,avatar:Sr,avatarSquare:kr,author:Er,authorText:Ir,username:Cr},Lr=({tweet:e})=>{const{user:t}=e;return n.jsxs("div",{className:K.header,children:[n.jsx("a",{href:e.url,className:K.avatar,target:"_blank",rel:"noopener noreferrer",children:n.jsx("div",{className:k.clsx(K.avatarOverflow,t.profile_image_shape==="Square"&&K.avatarSquare),children:n.jsx(ht,{src:t.profile_image_url_https,alt:t.name,width:20,height:20})})}),n.jsxs("div",{className:K.author,children:[n.jsx("div",{className:K.authorText,children:n.jsx("span",{title:t.name,children:t.name})}),n.jsx(_t,{user:t}),n.jsx("div",{className:K.username,children:n.jsxs("span",{title:`@${t.screen_name}`,children:["@",t.screen_name]})})]})]})},Or="_root_175ot_1",qr={root:Or},$r=({tweet:e})=>n.jsx("p",{className:qr.root,lang:e.lang,dir:"auto",children:e.entities.map((t,r)=>n.jsx("span",{dangerouslySetInnerHTML:{__html:t.text}},r))}),Dr=({tweet:e})=>{var t;return n.jsxs(Nr,{tweet:e,children:[n.jsx(Lr,{tweet:e}),n.jsx($r,{tweet:e}),(t=e.mediaDetails)!=null&&t.length?n.jsx(xt,{quoted:!0,tweet:e}):null]})},Ar=({tweet:e,components:t})=>{var r;const s=h.useMemo(()=>En(e),[e]);return n.jsxs(Be,{children:[n.jsx(dn,{tweet:s,components:t}),s.in_reply_to_status_id_str&&n.jsx(hn,{tweet:s}),n.jsx(gn,{tweet:s}),(r=s.mediaDetails)!=null&&r.length?n.jsx(xt,{tweet:s,components:t}):null,s.quoted_tweet&&n.jsx(Dr,{tweet:s.quoted_tweet}),n.jsx(rr,{tweet:s}),n.jsx(vr,{tweet:s}),n.jsx(yr,{tweet:s})]})},Vr="_root_16yxa_1",Mr={root:Vr},Wr=e=>n.jsx(Be,{children:n.jsxs("div",{className:Mr.root,children:[n.jsx("h3",{children:"Tweet not found"}),n.jsx("p",{children:"The embedded tweet could not be found…"})]})}),Br="_skeleton_oi7hr_1",Pr={skeleton:Br},_e=({style:e})=>n.jsx("span",{className:Pr.skeleton,style:e}),Fr="_root_17qqv_1",Ur={root:Fr},zr=()=>n.jsxs(Be,{className:Ur.root,children:[n.jsx(_e,{style:{height:"3rem",marginBottom:"0.75rem"}}),n.jsx(_e,{style:{height:"6rem",margin:"0.5rem 0"}}),n.jsx("div",{style:{borderTop:"var(--tweet-border)",margin:"0.5rem 0"}}),n.jsx(_e,{style:{height:"2rem"}}),n.jsx(_e,{style:{height:"2rem",borderRadius:"9999px",marginTop:"0.5rem"}})]}),vt=0,gt=1,jt=2,ot=3;var it=Object.prototype.hasOwnProperty;function Le(e,t){var r,s;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((s=e.length)===t.length)for(;s--&&Le(e[s],t[s]););return s===-1}if(!r||typeof e=="object"){s=0;for(r in e)if(it.call(e,r)&&++s&&!it.call(t,r)||!(r in t)||!Le(e[r],t[r]))return!1;return Object.keys(t).length===s}}return e!==e&&t!==t}const F=new WeakMap,U=()=>{},R=U(),Oe=Object,u=e=>e===R,W=e=>typeof e=="function",z=(e,t)=>({...e,...t}),wt=e=>W(e.then),Ne={},pe={},Pe="undefined",le=typeof window!=Pe,qe=typeof document!=Pe,Hr=le&&"Deno"in window,Gr=()=>le&&typeof window.requestAnimationFrame!=Pe,yt=(e,t)=>{const r=F.get(e);return[()=>!u(t)&&e.get(t)||Ne,s=>{if(!u(t)){const o=e.get(t);t in pe||(pe[t]=o),r[5](t,z(o,s),o||Ne)}},r[6],()=>!u(t)&&t in pe?pe[t]:!u(t)&&e.get(t)||Ne]};let $e=!0;const Xr=()=>$e,[De,Ae]=le&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[U,U],Kr=()=>{const e=qe&&document.visibilityState;return u(e)||e!=="hidden"},Qr=e=>(qe&&document.addEventListener("visibilitychange",e),De("focus",e),()=>{qe&&document.removeEventListener("visibilitychange",e),Ae("focus",e)}),Jr=e=>{const t=()=>{$e=!0,e()},r=()=>{$e=!1};return De("online",t),De("offline",r),()=>{Ae("online",t),Ae("offline",r)}},Yr={isOnline:Xr,isVisible:Kr},Zr={initFocus:Qr,initReconnect:Jr},at=!h.useId,oe=!le||Hr,es=e=>Gr()?window.requestAnimationFrame(e):setTimeout(e,1),Re=oe?h.useEffect:h.useLayoutEffect,Se=typeof navigator<"u"&&navigator.connection,ct=!oe&&Se&&(["slow-2g","2g"].includes(Se.effectiveType)||Se.saveData),me=new WeakMap,ts=e=>Oe.prototype.toString.call(e),ke=(e,t)=>e===`[object ${t}]`;let ns=0;const Ve=e=>{const t=typeof e,r=ts(e),s=ke(r,"Date"),o=ke(r,"RegExp"),a=ke(r,"Object");let i,c;if(Oe(e)===e&&!s&&!o){if(i=me.get(e),i)return i;if(i=++ns+"~",me.set(e,i),Array.isArray(e)){for(i="@",c=0;c<e.length;c++)i+=Ve(e[c])+",";me.set(e,i)}if(a){i="#";const f=Oe.keys(e).sort();for(;!u(c=f.pop());)u(e[c])||(i+=c+":"+Ve(e[c])+",");me.set(e,i)}}else i=s?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return i},Fe=e=>{if(W(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Ve(e):"",[e,t]};let rs=0;const Me=()=>++rs;async function Tt(...e){const[t,r,s,o]=e,a=z({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let i=a.populateCache;const c=a.rollbackOnError;let f=a.optimisticData;const d=w=>typeof c=="function"?c(w):c!==!1,v=a.throwOnError;if(W(r)){const w=r,N=[],I=t.keys();for(const O of I)!/^\$(inf|sub)\$/.test(O)&&w(t.get(O)._k)&&N.push(O);return Promise.all(N.map(p))}return p(r);async function p(w){const[N]=Fe(w);if(!N)return;const[I,O]=yt(t,N),[D,ie,l,de]=F.get(t),Q=()=>{const q=D[N];return(W(a.revalidate)?a.revalidate(I().data,w):a.revalidate!==!1)&&(delete l[N],delete de[N],q&&q[0])?q[0](jt).then(()=>I().data):I().data};if(e.length<3)return Q();let y=s,A,V=!1;const J=Me();ie[N]=[J,0];const m=!u(f),Y=I(),M=Y.data,Z=Y._c,H=u(Z)?M:Z;if(m&&(f=W(f)?f(H,M):f,O({data:f,_c:H})),W(y))try{y=y(H)}catch(q){A=q,V=!0}if(y&&wt(y))if(y=await y.catch(q=>{A=q,V=!0}),J!==ie[N][0]){if(V)throw A;return y}else V&&m&&d(A)&&(i=!0,O({data:H,_c:R}));if(i&&!V)if(W(i)){const q=i(y,H);O({data:q,error:R,_c:R})}else O({data:y,error:R,_c:R});if(ie[N][1]=Me(),Promise.resolve(Q()).then(()=>{O({_c:R})}),V){if(v)throw A;return}return y}}const lt=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},ss=(e,t)=>{if(!F.has(e)){const r=z(Zr,t),s=Object.create(null),o=Tt.bind(R,e);let a=U;const i=Object.create(null),c=(v,p)=>{const w=i[v]||[];return i[v]=w,w.push(p),()=>w.splice(w.indexOf(p),1)},f=(v,p,w)=>{e.set(v,p);const N=i[v];if(N)for(const I of N)I(p,w)},d=()=>{if(!F.has(e)&&(F.set(e,[s,Object.create(null),Object.create(null),Object.create(null),o,f,c]),!oe)){const v=r.initFocus(setTimeout.bind(R,lt.bind(R,s,vt))),p=r.initReconnect(setTimeout.bind(R,lt.bind(R,s,gt)));a=()=>{v&&v(),p&&p(),F.delete(e)}}};return d(),[e,o,d,a]}return[e,F.get(e)[4]]},os=(e,t,r,s,o)=>{const a=r.errorRetryCount,i=o.retryCount,c=~~((Math.random()+.5)*(1<<(i<8?i:8)))*r.errorRetryInterval;!u(a)&&i>a||setTimeout(s,c,o)},is=Le,[bt,as]=ss(new Map),cs=z({onLoadingSlow:U,onSuccess:U,onError:U,onErrorRetry:os,onDiscarded:U,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:ct?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:ct?5e3:3e3,compare:is,isPaused:()=>!1,cache:bt,mutate:as,fallback:{}},Yr),ls=(e,t)=>{const r=z(e,t);if(t){const{use:s,fallback:o}=e,{use:a,fallback:i}=t;s&&a&&(r.use=s.concat(a)),o&&i&&(r.fallback=z(o,i))}return r},ds=h.createContext({}),us="$inf$",Nt=le&&window.__SWR_DEVTOOLS_USE__,fs=Nt?window.__SWR_DEVTOOLS_USE__:[],hs=()=>{Nt&&(window.__SWR_DEVTOOLS_REACT__=h)},_s=e=>W(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],ps=()=>{const e=h.useContext(ds);return h.useMemo(()=>z(cs,e),[e])},ms=e=>(t,r,s)=>e(t,r&&((...a)=>{const[i]=Fe(t),[,,,c]=F.get(bt);if(i.startsWith(us))return r(...a);const f=c[i];return u(f)?r(...a):(delete c[i],f)}),s),xs=fs.concat(ms),vs=e=>function(...r){const s=ps(),[o,a,i]=_s(r),c=ls(s,i);let f=e;const{use:d}=c,v=(d||[]).concat(xs);for(let p=v.length;p--;)f=v[p](f);return f(o,a||c.fetcher||null,c)},gs=(e,t,r)=>{const s=t[e]||(t[e]=[]);return s.push(r),()=>{const o=s.indexOf(r);o>=0&&(s[o]=s[s.length-1],s.pop())}};hs();const Ee=h.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),Ie={dedupe:!0},dt=Promise.resolve(R),js=(e,t,r)=>{const{cache:s,compare:o,suspense:a,fallbackData:i,revalidateOnMount:c,revalidateIfStale:f,refreshInterval:d,refreshWhenHidden:v,refreshWhenOffline:p,keepPreviousData:w,strictServerPrefetchWarning:N}=r,[I,O,D,ie]=F.get(s),[l,de]=Fe(e),Q=h.useRef(!1),y=h.useRef(!1),A=h.useRef(l),V=h.useRef(t),J=h.useRef(r),m=()=>J.current,Y=()=>m().isVisible()&&m().isOnline(),[M,Z,H,q]=yt(s,l),ee=h.useRef({}).current,ue=u(i)?u(r.fallback)?R:r.fallback[l]:i,ze=(_,x)=>{for(const j in ee){const g=j;if(g==="data"){if(!o(_[g],x[g])&&(!u(_[g])||!o(he,x[g])))return!1}else if(x[g]!==_[g])return!1}return!0},He=h.useMemo(()=>{const _=!l||!t?!1:u(c)?m().isPaused()||a?!1:f!==!1:c,x=S=>{const B=z(S);return delete B._k,_?{isValidating:!0,isLoading:!0,...B}:B},j=M(),g=q(),$=x(j),re=j===g?$:x(g);let T=$;return[()=>{const S=x(M());return ze(S,T)?(T.data=S.data,T.isLoading=S.isLoading,T.isValidating=S.isValidating,T.error=S.error,T):(T=S,S)},()=>re]},[s,l]),te=k.shimExports.useSyncExternalStore(h.useCallback(_=>H(l,(x,j)=>{ze(j,x)||_()}),[s,l]),He[0],He[1]),Ge=!Q.current,St=I[l]&&I[l].length>0,ne=te.data,G=u(ne)?ue&&wt(ue)?Ee(ue):ue:ne,fe=te.error,xe=h.useRef(G),he=w?u(ne)?u(xe.current)?G:xe.current:ne:G,X=l&&u(G),kt=!oe&&k.shimExports.useSyncExternalStore(()=>U,()=>!1,()=>!0);N&&kt&&!a&&X&&console.warn(`Missing pre-initiated data for serialized key "${l}" during server-side rendering. Data fethcing should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const Xe=St&&!u(fe)?!1:Ge&&!u(c)?c:m().isPaused()?!1:a?u(G)?!1:f:u(G)||f,Ke=!!(l&&t&&Ge&&Xe),Et=u(te.isValidating)?Ke:te.isValidating,It=u(te.isLoading)?Ke:te.isLoading,ae=h.useCallback(async _=>{const x=V.current;if(!l||!x||y.current||m().isPaused())return!1;let j,g,$=!0;const re=_||{},T=!D[l]||!re.dedupe,S=()=>at?!y.current&&l===A.current&&Q.current:l===A.current,B={isValidating:!1,isLoading:!1},Je=()=>{Z(B)},Ye=()=>{const L=D[l];L&&L[1]===g&&delete D[l]},Ze={isValidating:!0};u(M().data)&&(Ze.isLoading=!0);try{if(T&&(Z(Ze),r.loadingTimeout&&u(M().data)&&setTimeout(()=>{$&&S()&&m().onLoadingSlow(l,r)},r.loadingTimeout),D[l]=[x(de),Me()]),[j,g]=D[l],j=await j,T&&setTimeout(Ye,r.dedupingInterval),!D[l]||D[l][1]!==g)return T&&S()&&m().onDiscarded(l),!1;B.error=R;const L=O[l];if(!u(L)&&(g<=L[0]||g<=L[1]||L[1]===0))return Je(),T&&S()&&m().onDiscarded(l),!1;const P=M().data;B.data=o(P,j)?P:j,T&&S()&&m().onSuccess(j,l,r)}catch(L){Ye();const P=m(),{shouldRetryOnError:ve}=P;P.isPaused()||(B.error=L,T&&S()&&(P.onError(L,l,P),(ve===!0||W(ve)&&ve(L))&&(!m().revalidateOnFocus||!m().revalidateOnReconnect||Y())&&P.onErrorRetry(L,l,P,Ct=>{const ge=I[l];ge&&ge[0]&&ge[0](ot,Ct)},{retryCount:(re.retryCount||0)+1,dedupe:!0})))}return $=!1,Je(),!0},[l,s]),Qe=h.useCallback((..._)=>Tt(s,A.current,..._),[]);if(Re(()=>{V.current=t,J.current=r,u(ne)||(xe.current=ne)}),Re(()=>{if(!l)return;const _=ae.bind(R,Ie);let x=0;m().revalidateOnFocus&&(x=Date.now()+m().focusThrottleInterval);const g=gs(l,I,($,re={})=>{if($==vt){const T=Date.now();m().revalidateOnFocus&&T>x&&Y()&&(x=T+m().focusThrottleInterval,_())}else if($==gt)m().revalidateOnReconnect&&Y()&&_();else{if($==jt)return ae();if($==ot)return ae(re)}});return y.current=!1,A.current=l,Q.current=!0,Z({_k:de}),Xe&&(D[l]||(u(G)||oe?_():es(_))),()=>{y.current=!0,g()}},[l]),Re(()=>{let _;function x(){const g=W(d)?d(M().data):d;g&&_!==-1&&(_=setTimeout(j,g))}function j(){!M().error&&(v||m().isVisible())&&(p||m().isOnline())?ae(Ie).then(x):x()}return x(),()=>{_&&(clearTimeout(_),_=-1)}},[d,v,p,l]),h.useDebugValue(he),a){if(!at&&oe&&X)throw new Error("Fallback data is required when using Suspense in SSR.");X&&(V.current=t,J.current=r,y.current=!1);const _=ie[l],x=!u(_)&&X?Qe(_):dt;if(Ee(x),!u(fe)&&X)throw fe;const j=X?ae(Ie):dt;!u(he)&&X&&(j.status="fulfilled",j.value=!0),Ee(j)}return{mutate:Qe,get data(){return ee.data=!0,he},get error(){return ee.error=!0,fe},get isValidating(){return ee.isValidating=!0,Et},get isLoading(){return ee.isLoading=!0,It}}},ut=vs(js);class ws extends Error{constructor({message:t,status:r,data:s}){super(t),this.name="TwitterApiError",this.status=r,this.data=s}}const ys=ut.default||ut,Ts="https://react-tweet.vercel.app";async function bs([e,t]){const r=await fetch(e,t),s=await r.json();if(r.ok)return s.data||null;throw new ws({message:`Failed to fetch tweet at "${e}" with "${r.status}".`,data:s,status:r.status})}const Ns=(e,t,r)=>{const{isLoading:s,data:o,error:a}=ys(()=>t||e?[t||e&&`${Ts}/api/tweet/${e}`,r]:null,bs,{revalidateIfStale:!1,revalidateOnFocus:!1,shouldRetryOnError:!1});return{isLoading:!!(s||o===void 0&&!a),data:o,error:a}},Rs=({id:e,apiUrl:t,fallback:r=n.jsx(zr,{}),components:s,fetchOptions:o,onError:a})=>{const{data:i,error:c,isLoading:f}=Ns(e,t,o);if(f)return r;if(c||!i){const d=(s==null?void 0:s.TweetNotFound)||Wr;return n.jsx(d,{error:a?a(c):c})}return n.jsx(Ar,{tweet:i,components:s})};function Ss({node:e}){var s;const t=((s=e==null?void 0:e.attrs)==null?void 0:s.src)||"",r=t==null?void 0:t.split("/").pop();return r?n.jsx(k.NodeViewWrapper,{children:n.jsx("div",{"data-twitter":"",children:n.jsx(Rs,{id:r})})}):null}function Rt(e){const{t}=At.useLocale(),[r,s]=h.useState("");h.useEffect(()=>{var a;if(e!=null&&e.editor){const{src:i}=(a=e.editor)==null?void 0:a.getAttributes(Ue.name);i&&s(i)}},[e==null?void 0:e.editor]);function o(a){a.preventDefault(),a.stopPropagation(),e==null||e.onSetLink(r)}return n.jsxs("form",{className:"richtext-flex richtext-flex-col richtext-gap-2",onSubmit:o,children:[n.jsx(Dt.Label,{className:"mb-[6px]",children:t("editor.link.dialog.text")}),n.jsx("div",{className:"richtext-flex richtext-w-full richtext-max-w-sm richtext-items-center richtext-gap-1.5",children:n.jsx("div",{className:"richtext-relative richtext-w-full richtext-max-w-sm richtext-items-center",children:n.jsx($t.Input,{className:"richtext-w-80",onChange:a=>s(a.target.value),placeholder:"Text",required:!0,type:"text",value:r})})}),n.jsx(qt.Button,{className:"richtext-mt-2 richtext-self-end",type:"submit",children:t("editor.link.dialog.button.apply")})]})}function ks(){const[e,t]=h.useState(!1),r=we.useEditorInstance(),s=we.useButtonProps(Ue.name),{icon:o=void 0,tooltip:a=void 0,tooltipOptions:i={},action:c=void 0,isActive:f=void 0}=(s==null?void 0:s.componentProps)??{},{editorDisabled:d}=we.useToggleActive(f);function v(p){d||c&&(c(p),t(!1))}return n.jsxs(je.Popover,{modal:!0,onOpenChange:t,open:e,children:[n.jsx(je.PopoverTrigger,{asChild:!0,children:n.jsx(Lt.ActionButton,{disabled:d,isActive:f,tooltip:a,tooltipOptions:i,children:n.jsx(Ot.IconComponent,{name:o})})}),n.jsx(je.PopoverContent,{align:"start",className:"richtext-w-full",hideWhenDetached:!0,side:"bottom",children:n.jsx(Rt,{editor:r,onSetLink:v})})]})}const Es=/(https?:\/\/)?(www\.)?x\.com\/(\w{1,15})(\/status\/(\d+))?(\/\S*)?/g,Is=/^https?:\/\/(www\.)?x\.com\/(\w{1,15})(\/status\/(\d+))?(\/\S*)?$/;function ft(e){return e.match(Is)}const Ue=k.Node3.create({name:"twitter",draggable:!0,selectable:!0,addOptions(){return{addPasteHandler:!0,HTMLAttributes:{},inline:!1,origin:"",button:({editor:e,t})=>({componentProps:{action:r=>{e.commands.setTweet({src:r})},isActive:()=>!1,disabled:!1,icon:"Twitter",tooltip:t("editor.twitter.tooltip"),editor:e}})}},addNodeView(){return k.ReactNodeViewRenderer(Ss,{attrs:this.options.HTMLAttributes})},inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},addAttributes(){return{src:{default:null}}},parseHTML(){return[{tag:"div[data-twitter]"}]},addCommands(){return{setTweet:e=>({commands:t})=>ft(e.src)?t.insertContent({type:this.name,attrs:e}):!1,updateTweet:e=>({commands:t})=>ft(e.src)?t.updateAttributes(this.name,{src:e.src}):!1}},addPasteRules(){return this.options.addPasteHandler?[k.nodePasteRule({find:Es,type:this.type,getAttributes:e=>({src:e.input})})]:[]},renderHTML({HTMLAttributes:e}){return["div",k.mergeAttributes({"data-twitter":""},e)]}});exports.FormEditLinkTwitter=Rt;exports.RichTextTwitter=ks;exports.Twitter=Ue;
@@ -1,7 +0,0 @@
1
- "use strict";const n=require("react/jsx-runtime"),x=require("react"),Je=require("@radix-ui/react-slot"),ge=require("./index-FSRjMsxW.cjs"),fe=require("./theme.cjs"),E=require("./events.constant-DQYeJpu5.cjs"),$=require("@radix-ui/react-icons"),s=require("lucide-react"),Ye=require("@radix-ui/react-toggle"),et=require("@radix-ui/react-tooltip"),tt=require("@radix-ui/react-select"),Se=require("./index-DLqogznp.cjs");function q(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const N=q(x),ke=q(Ye),O=q(et),C=q(tt),oe="-",rt=e=>{const r=nt(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{const a=l.split(oe);return a[0]===""&&a.length!==1&&a.shift(),ze(a,r)||ot(l)},getConflictingClassGroupIds:(l,a)=>{const h=t[l]||[];return a&&o[l]?[...h,...o[l]]:h}}},ze=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const t=e[0],o=r.nextPart.get(t),c=o?ze(e.slice(1),o):void 0;if(c)return c;if(r.validators.length===0)return;const i=e.join(oe);return(l=r.validators.find(({validator:a})=>a(i)))==null?void 0:l.classGroupId},xe=/^\[(.+)\]$/,ot=e=>{if(xe.test(e)){const r=xe.exec(e)[1],t=r==null?void 0:r.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},nt=e=>{const{theme:r,prefix:t}=e,o={nextPart:new Map,validators:[]};return st(Object.entries(e.classGroups),t).forEach(([i,l])=>{te(l,o,i,r)}),o},te=(e,r,t,o)=>{e.forEach(c=>{if(typeof c=="string"){const i=c===""?r:be(r,c);i.classGroupId=t;return}if(typeof c=="function"){if(it(c)){te(c(o),r,t,o);return}r.validators.push({validator:c,classGroupId:t});return}Object.entries(c).forEach(([i,l])=>{te(l,be(r,i),t,o)})})},be=(e,r)=>{let t=e;return r.split(oe).forEach(o=>{t.nextPart.has(o)||t.nextPart.set(o,{nextPart:new Map,validators:[]}),t=t.nextPart.get(o)}),t},it=e=>e.isThemeGetter,st=(e,r)=>r?e.map(([t,o])=>{const c=o.map(i=>typeof i=="string"?r+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,a])=>[r+l,a])):i);return[t,c]}):e,ct=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,o=new Map;const c=(i,l)=>{t.set(i,l),r++,r>e&&(r=0,o=t,t=new Map)};return{get(i){let l=t.get(i);if(l!==void 0)return l;if((l=o.get(i))!==void 0)return c(i,l),l},set(i,l){t.has(i)?t.set(i,l):c(i,l)}}},Ee="!",at=e=>{const{separator:r,experimentalParseClassName:t}=e,o=r.length===1,c=r[0],i=r.length,l=a=>{const h=[];let u=0,m=0,g;for(let f=0;f<a.length;f++){let j=a[f];if(u===0){if(j===c&&(o||a.slice(f,f+i)===r)){h.push(a.slice(m,f)),m=f+i;continue}if(j==="/"){g=f;continue}}j==="["?u++:j==="]"&&u--}const d=h.length===0?a:a.substring(m),b=d.startsWith(Ee),S=b?d.substring(1):d,v=g&&g>m?g-m:void 0;return{modifiers:h,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:v}};return t?a=>t({className:a,parseClassName:l}):l},lt=e=>{if(e.length<=1)return e;const r=[];let t=[];return e.forEach(o=>{o[0]==="["?(r.push(...t.sort(),o),t=[]):t.push(o)}),r.push(...t.sort()),r},dt=e=>({cache:ct(e.cacheSize),parseClassName:at(e),...rt(e)}),ut=/\s+/,ht=(e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:c}=r,i=[],l=e.trim().split(ut);let a="";for(let h=l.length-1;h>=0;h-=1){const u=l[h],{modifiers:m,hasImportantModifier:g,baseClassName:d,maybePostfixModifierPosition:b}=t(u);let S=!!b,v=o(S?d.substring(0,b):d);if(!v){if(!S){a=u+(a.length>0?" "+a:a);continue}if(v=o(d),!v){a=u+(a.length>0?" "+a:a);continue}S=!1}const f=lt(m).join(":"),j=g?f+Ee:f,k=j+v;if(i.includes(k))continue;i.push(k);const I=c(v,S);for(let A=0;A<I.length;++A){const W=I[A];i.push(j+W)}a=u+(a.length>0?" "+a:a)}return a};function pt(){let e=0,r,t,o="";for(;e<arguments.length;)(r=arguments[e++])&&(t=Me(r))&&(o&&(o+=" "),o+=t);return o}const Me=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=Me(e[o]))&&(t&&(t+=" "),t+=r);return t};function mt(e,...r){let t,o,c,i=l;function l(h){const u=r.reduce((m,g)=>g(m),e());return t=dt(u),o=t.cache.get,c=t.cache.set,i=a,a(h)}function a(h){const u=o(h);if(u)return u;const m=ht(h,t);return c(h,m),m}return function(){return i(pt.apply(null,arguments))}}const w=e=>{const r=t=>t[e]||[];return r.isThemeGetter=!0,r},Le=/^\[(?:([a-z-]+):)?(.+)\]$/i,gt=/^\d+\/\d+$/,ft=new Set(["px","full","screen"]),xt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,wt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,vt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yt=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,L=e=>P(e)||ft.has(e)||gt.test(e),T=e=>V(e,"length",Lt),P=e=>!!e&&!Number.isNaN(Number(e)),Z=e=>V(e,"number",P),B=e=>!!e&&Number.isInteger(Number(e)),Ct=e=>e.endsWith("%")&&P(e.slice(0,-1)),p=e=>Le.test(e),R=e=>xt.test(e),jt=new Set(["length","size","percentage"]),St=e=>V(e,jt,Ne),kt=e=>V(e,"position",Ne),zt=new Set(["image","url"]),Et=e=>V(e,zt,Tt),Mt=e=>V(e,"",Nt),G=()=>!0,V=(e,r,t)=>{const o=Le.exec(e);return o?o[1]?typeof r=="string"?o[1]===r:r.has(o[1]):t(o[2]):!1},Lt=e=>bt.test(e)&&!wt.test(e),Ne=()=>!1,Nt=e=>vt.test(e),Tt=e=>yt.test(e),Rt=()=>{const e=w("colors"),r=w("spacing"),t=w("blur"),o=w("brightness"),c=w("borderColor"),i=w("borderRadius"),l=w("borderSpacing"),a=w("borderWidth"),h=w("contrast"),u=w("grayscale"),m=w("hueRotate"),g=w("invert"),d=w("gap"),b=w("gradientColorStops"),S=w("gradientColorStopPositions"),v=w("inset"),f=w("margin"),j=w("opacity"),k=w("padding"),I=w("saturate"),A=w("scale"),W=w("sepia"),ae=w("skew"),le=w("space"),de=w("translate"),D=()=>["auto","contain","none"],X=()=>["auto","hidden","clip","visible","scroll"],K=()=>["auto",p,r],y=()=>[p,r],ue=()=>["",L,T],_=()=>["auto",P,p],he=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],H=()=>["","0",p],me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[P,p];return{cacheSize:500,separator:":",theme:{colors:[G],spacing:[L,T],blur:["none","",R,p],brightness:M(),borderColor:[e],borderRadius:["none","","full",R,p],borderSpacing:y(),borderWidth:ue(),contrast:M(),grayscale:H(),hueRotate:M(),invert:H(),gap:y(),gradientColorStops:[e],gradientColorStopPositions:[Ct,T],inset:K(),margin:K(),opacity:M(),padding:y(),saturate:M(),scale:M(),sepia:H(),skew:M(),space:y(),translate:y()},classGroups:{aspect:[{aspect:["auto","square","video",p]}],container:["container"],columns:[{columns:[R]}],"break-after":[{"break-after":me()}],"break-before":[{"break-before":me()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...he(),p]}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",B,p]}],basis:[{basis:K()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",p]}],grow:[{grow:H()}],shrink:[{shrink:H()}],order:[{order:["first","last","none",B,p]}],"grid-cols":[{"grid-cols":[G]}],"col-start-end":[{col:["auto",{span:["full",B,p]},p]}],"col-start":[{"col-start":_()}],"col-end":[{"col-end":_()}],"grid-rows":[{"grid-rows":[G]}],"row-start-end":[{row:["auto",{span:[B,p]},p]}],"row-start":[{"row-start":_()}],"row-end":[{"row-end":_()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",p]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",p]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],me:[{me:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[le]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[le]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",p,r]}],"min-w":[{"min-w":[p,r,"min","max","fit"]}],"max-w":[{"max-w":[p,r,"none","full","min","max","fit","prose",{screen:[R]},R]}],h:[{h:[p,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[p,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[p,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[p,r,"auto","min","max","fit"]}],"font-size":[{text:["base",R,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Z]}],"font-family":[{font:[G]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",p]}],"line-clamp":[{"line-clamp":["none",P,Z]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",L,p]}],"list-image":[{"list-image":["none",p]}],"list-style-type":[{list:["none","disc","decimal",p]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[j]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",L,T]}],"underline-offset":[{"underline-offset":["auto",L,p]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",p]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",p]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[j]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...he(),kt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",St]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Et]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[j]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[j]}],"divide-style":[{divide:U()}],"border-color":[{border:[c]}],"border-color-x":[{"border-x":[c]}],"border-color-y":[{"border-y":[c]}],"border-color-s":[{"border-s":[c]}],"border-color-e":[{"border-e":[c]}],"border-color-t":[{"border-t":[c]}],"border-color-r":[{"border-r":[c]}],"border-color-b":[{"border-b":[c]}],"border-color-l":[{"border-l":[c]}],"divide-color":[{divide:[c]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[L,p]}],"outline-w":[{outline:[L,T]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[j]}],"ring-offset-w":[{"ring-offset":[L,T]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",R,Mt]}],"shadow-color":[{shadow:[G]}],opacity:[{opacity:[j]}],"mix-blend":[{"mix-blend":[...pe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":pe()}],filter:[{filter:["","none"]}],blur:[{blur:[t]}],brightness:[{brightness:[o]}],contrast:[{contrast:[h]}],"drop-shadow":[{"drop-shadow":["","none",R,p]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[g]}],saturate:[{saturate:[I]}],sepia:[{sepia:[W]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[t]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[h]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[j]}],"backdrop-saturate":[{"backdrop-saturate":[I]}],"backdrop-sepia":[{"backdrop-sepia":[W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",p]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",p]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",p]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[B,p]}],"translate-x":[{"translate-x":[de]}],"translate-y":[{"translate-y":[de]}],"skew-x":[{"skew-x":[ae]}],"skew-y":[{"skew-y":[ae]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",p]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",p]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",p]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[L,T,Z]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},At=mt(Rt);function z(...e){return At(Se.clsx(e))}let J;function Y(){return J===void 0&&(J=navigator.platform.includes("Mac")),J}function Te(e){return`${e}`.toLowerCase()==="mod"?Y()?"⌘":"Ctrl":`${e}`.toLowerCase()==="alt"?Y()?"⌥":"Alt":`${e}`.toLowerCase()==="shift"?Y()?"⇧":"Shift":e}function Re(e){return e.map(Te).join(" ")}const Pt=x.forwardRef((e,r)=>{const{icon:t=void 0,tooltip:o=void 0,disabled:c=!1,customClass:i="",loading:l=void 0,shortcutKeys:a=void 0,tooltipOptions:h={},action:u=void 0,isActive:m=void 0,children:g,asChild:d=!1,upload:b=!1,initialDisplayedColor:S=void 0,dataState:v=!1,...f}=e,j=Ie[t],k=d?Je.Slot:ne;return n.jsxs(Be,{children:[n.jsx(Ge,{asChild:!0,children:n.jsxs(k,{className:z("richtext-w-[32px] richtext-h-[32px]",i),"data-state":v?"on":"off",disabled:c,onClick:u,ref:r,size:"sm",...f,children:[j&&n.jsx(j,{className:"richtext-size-4"}),g]})}),o&&n.jsx(ie,{...h,className:"richtext-tooltip",children:n.jsxs("div",{className:"richtext-flex richtext-max-w-24 richtext-flex-col richtext-items-center richtext-text-center",children:[n.jsx("div",{children:o}),!!(a!=null&&a.length)&&n.jsx("span",{children:Re(a)})]})})]})}),ee=typeof window>"u";function we(e,r,t=window){const o=x.useRef(void 0);x.useEffect(()=>{o.current=r},[r]),x.useEffect(()=>{if(!(t&&t.addEventListener))return;const i=l=>{o.current&&o.current(l)};return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}},[e,t])}function F(e,r,t={}){const{initializeWithValue:o=!0}=t,c=x.useCallback(d=>t.serializer?t.serializer(d):JSON.stringify(d),[t]),i=x.useCallback(d=>{if(t.deserializer)return t.deserializer(d);if(d==="undefined")return;const b=r instanceof Function?r():r;let S;try{S=JSON.parse(d)}catch(v){return console.error("Error parsing JSON:",v),b}return S},[t,r]),l=x.useCallback(()=>{const d=r instanceof Function?r():r;if(ee)return d;try{const b=window.localStorage.getItem(e);return b?i(b):d}catch(b){return console.warn(`Error reading localStorage key “${e}”:`,b),d}},[r,e,i]),[a,h]=x.useState(()=>o?l():r instanceof Function?r():r),u=x.useCallback(d=>{ee&&console.warn(`Tried setting localStorage key “${e}” even though environment is not a client`);try{const b=d instanceof Function?d(l()):d;window.localStorage.setItem(e,c(b)),h(b),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))}catch(b){console.warn(`Error setting localStorage key “${e}”:`,b)}},[e,c,l]),m=x.useCallback(()=>{ee&&console.warn(`Tried removing localStorage key “${e}” even though environment is not a client`);const d=r instanceof Function?r():r;window.localStorage.removeItem(e),h(d),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))},[e,r]);x.useEffect(()=>{h(l())},[e]);const g=x.useCallback(d=>{d.key&&d.key!==e||h(l())},[e,l]);return we("storage",g),we("local-storage",g),[a,u,m]}function Vt(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M19 12h-2v3h-3v2h5zM7 9h3V7H5v5h2zm14-6H3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m0 16H3V5h18z"})})}function It(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 15h15m0 4H6m9-8h6m0-4h-6M9 9h1a1 1 0 1 1-1 1V7.5a2 2 0 0 1 2-2M3 9h1a1 1 0 1 1-1 1V7.5a2 2 0 0 1 2-2"})})}function Ht(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",className:"richtext-w-4 richtext-h-4",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M5.5 3c1.404 0 2.107 0 2.611.38c.219.164.406.375.552.62C9 4.568 9 5.358 9 6.938v10.125c0 1.58 0 2.37-.337 2.937a2.1 2.1 0 0 1-.552.621c-.504.38-1.207.38-2.611.38s-2.107 0-2.611-.38a2.1 2.1 0 0 1-.552-.62C2 19.432 2 18.642 2 17.062V6.938c0-1.58 0-2.37.337-2.938a2.1 2.1 0 0 1 .552-.62C3.393 3 4.096 3 5.5 3M20 11.938v5.124c0 1.58 0 2.37-.337 2.938a2.1 2.1 0 0 1-.552.62c-.504.38-1.207.38-2.611.38s-2.107 0-2.611-.38a2.1 2.1 0 0 1-.552-.62C13 19.433 13 18.642 13 17.063V6.938c0-1.58 0-2.37.337-2.938M22 9l-6-6m6 0l-6 6",color:"currentColor"})})}function Bt(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",className:"richtext-w-4 richtext-h-4",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M21 18.5c0 1.404 0 2.107-.38 2.611a2.1 2.1 0 0 1-.62.552c-.567.337-1.358.337-2.937.337H6.938c-1.58 0-2.37 0-2.938-.337a2.1 2.1 0 0 1-.62-.552C3 20.607 3 19.904 3 18.5s0-2.107.38-2.611c.163-.218.374-.406.62-.552C4.567 15 5.357 15 6.938 15h10.125c1.58 0 2.37 0 2.937.337c.246.146.457.334.62.552c.38.504.38 1.207.38 2.611M12.063 4H6.937C5.358 4 4.568 4 4 4.337a2.1 2.1 0 0 0-.62.552C3 5.393 3 6.096 3 7.5s0 2.107.38 2.611c.163.218.374.406.62.552C4.567 11 5.357 11 6.938 11h10.125c1.58 0 2.37 0 2.937-.337M21 8l-6-6m6 0l-6 6",color:"currentColor"})})}function Gt(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M14 2H6a2 2 0 0 0-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 2-2V8zm4 18H6V4h7v5h5zm-.65-10l-2.1 9h-1.4l-1.8-6.79l-1.8 6.79h-1.4l-2.2-9h1.5l1.4 6.81l1.8-6.81h1.3l1.8 6.81l1.4-6.81z"})})}function Ot(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M21 22H3v-2h18zm0-18H3V2h18zm-11 9.7h4l-2-5.4zM11.2 6h1.7l4.7 12h-2l-.9-2.6H9.4L8.5 18h-2z"})})}function Ae(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 48 48",...e,children:n.jsx("path",{fill:"currentColor",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:4,d:"M36 19L24 31L12 19z"})})}function Wt(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M9 7v10h6v-2h-4V7z"})})}function _t(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M9 7c-1.1 0-2 .9-2 2v8h2V9h2v7h2V9h2v8h2V9a2 2 0 0 0-2-2z"})})}function Ut(e){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:n.jsx("path",{fill:"currentColor",d:"M11 7c-1.1 0-2 .9-2 2v2a2 2 0 0 0 2 2h2v2H9v2h4c1.11 0 2-.89 2-2v-2a2 2 0 0 0-2-2h-2V9h4V7z"})})}function $t(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsx("path",{fill:"currentColor",d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6l1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6l-1.4-1.4z"})})}function Ft(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M14 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1m-9 8h4m-2-2v4"})})}function qt(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1m9 8h4m-2-2v4"})})}function Dt(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 21v-4m0-4V9m0-4V3m-2 18h4M8 5v4h11l2-2l-2-2zm6 8v4H6l-2-2l2-2z"})})}function Xt(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsx("path",{fill:"currentColor",d:"M23.943 19.806a.2.2 0 0 0-.168-.034c-1.26-1.855-2.873-3.61-4.419-5.315l-.252-.284c-.001-.073-.067-.12-.134-.15l-.084-.084c-.05-.1-.169-.167-.286-.1c-.47.234-.907.585-1.327.919c-.554.434-1.109.87-1.63 1.354a5 5 0 0 0-.588.618c-.084.117-.017.217.084.267c-.37.368-.74.736-1.109 1.12a.2.2 0 0 0-.05.134c0 .05.033.1.067.117l.655.502v.016c.924.92 2.554 2.173 4.285 3.527c.251.201.52.402.773.602c.117.134.234.285.335.418c.05.066.169.084.236.033c.033.034.084.067.118.1a.24.24 0 0 0 .1.034a.15.15 0 0 0 .135-.066a.24.24 0 0 0 .033-.1c.017 0 .017.016.034.016a.2.2 0 0 0 .134-.05l3.058-3.327c.12-.116.014-.267 0-.267m-7.628-.134l-1.546-1.17l-.15-.1c-.035-.017-.068-.05-.102-.067l-.117-.1c.66-.66 1.33-1.308 2-1.956c-.488.484-1.463 1.906-1.261 2.373c.002 0 .018.042.067.084zm4.1 3.126l-1.277-.97a27 27 0 0 0-1.58-1.504c.69.518 1.277.97 1.361 1.053c.673.585.638.485 1.093.87l.554.4c-.074.103-.151.148-.151.151m.336.25l-.034-.016a1 1 0 0 0 .152-.117zM.588 3.476c.033.217.084.435.117.636c.201 1.103.403 2.106.772 2.858l.152.568c.05.217.134.485.219.552a67 67 0 0 0 3.578 2.942a.18.18 0 0 0 .219 0s0 .016.016.016a.15.15 0 0 0 .118.05a.2.2 0 0 0 .134-.05c1.798-1.989 3.142-3.627 4.1-4.998c.068-.066.084-.167.084-.25c.067-.067.118-.151.185-.201c.067-.067.067-.184 0-.235l-.017-.016c0-.033-.017-.084-.05-.1c-.42-.401-.722-.685-1.042-.986a94 94 0 0 1-2.352-2.273c-.017-.017-.034-.034-.067-.034c-.336-.117-1.025-.234-1.882-.385c-1.277-.216-3.008-.517-4.57-.986c0 0-.101 0-.118.017l-.05.05C.05.714.022.707 0 .718c.017.1.017.167.05.284c0 .033.068.301.068.334zm7.19 4.78l-.033.034a.036.036 0 0 1 .033-.034M6.553 2.238c.101.1.521.502.622.585c-.437-.2-1.529-.702-2.034-.869c.505.1 1.194.201 1.412.284M.79 1.403c.252.434.454 1.939.655 3.41c-.118-.469-.201-.936-.302-1.372C.992 2.673.84 1.988.638 1.386c.124 0 .152.021.152.017m-.286-.369c0-.016 0-.033-.017-.033c.085 0 .135.017.202.05c0 .006-.145-.017-.185-.017m23.17-.217c.017-.066-.336-.367-.219-.384c.253-.017.253-.401 0-.401c-.335.017-.688.1-1.008.15c-.587.117-1.192.234-1.78.367a80 80 0 0 0-3.949.937c-.403.117-.857.2-1.243.401c-.135.067-.118.2-.05.284c-.034.017-.051.017-.085.034c-.117.017-.218.034-.335.05c-.102.017-.152.1-.135.2c0 .017.017.05.017.067c-.706.936-1.496 1.923-2.353 2.976c-.84.969-1.73 1.989-2.62 3.042c-2.84 3.31-6.05 7.07-9.594 10.38a.16.16 0 0 0 0 .234c.016.016.033.033.05.033c-.05.05-.101.085-.152.134q-.05.05-.05.1a.4.4 0 0 0-.067.084c-.067.067-.067.184.017.234c.067.066.185.066.235-.017c.017-.017.017-.033.033-.033a.265.265 0 0 1 .37 0c.202.217.404.435.588.618l-.42-.35c-.067-.067-.184-.05-.234.016c-.068.066-.051.184.016.234l4.469 3.727c.034.034.067.034.118.034a.15.15 0 0 0 .117-.05l.101-.1c.017.016.05.016.067.016c.05 0 .084-.016.118-.05c6.049-6.05 10.922-10.614 16.5-14.693c.05-.033.067-.1.067-.15c.067 0 .118-.05.15-.117c1.026-3.125 1.228-5.9 1.295-7.27c0-.059.016-.038.016-.068c.017-.033.017-.05.017-.05a.98.98 0 0 0-.067-.619m-10.82 4.915c.268-.301.537-.619.806-.903c-1.73 2.273-4.603 5.767-8.67 9.929c2.773-3.059 5.562-6.218 7.864-9.026M5.14 23.466c-.016-.017-.016-.017 0-.017zm2.504-2.156c.135-.15.27-.284.42-.434c0 0 0 .016.017.016c-.224.198-.433.418-.437.418m.69-.668c.099-.1.14-.173.284-.318c.992-1.02 2.017-2.04 3.059-3.076l.016-.016c.252-.2.555-.418.824-.619a228 228 0 0 0-4.184 4.029M14.852 3.91c-.554.719-1.176 1.671-1.697 2.423c-1.646 2.374-6.94 8.174-7.057 8.274a1190 1190 0 0 1-4.839 4.597l-.1.1c-.085-.1-.085-.25.016-.334C8.652 11.966 13.19 6.133 15.021 3.576c-.05.116-.084.216-.168.334zm2.906 3.427c-.671-.386-.99-.987-.806-1.572l.05-.2a.8.8 0 0 1 .085-.167a1.9 1.9 0 0 1 .756-.703c.016 0 .033 0 .05-.016c-.017-.034-.017-.084-.017-.134c.017-.1.085-.167.202-.167c.202 0 .824.184 1.059.384c.067.05.134.117.202.184c.084.1.218.268.285.401c.034.017.067.184.118.268c.033.134.067.284.05.418c-.017.016 0 .116-.017.116a1.6 1.6 0 0 1-.218.619c-.03.03.006.012-.05.067a1.2 1.2 0 0 1-.32.334a1.49 1.49 0 0 1-1.26.234a2 2 0 0 0-.169-.066m4.37 1.403c0 .017-.017.05 0 .067c-.034 0-.05.017-.085.034a110 110 0 0 0-3.915 3.025c1.11-.986 2.218-1.989 3.378-2.975c.336-.301.571-.686.638-1.12l.168-1.003v-.033c.085-.201.404-.118.353.1c-.004-.001-.173.795-.537 1.905"})})}function Pe(){return n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",children:[n.jsx("path",{fill:"currentColor",d:"M30 18v-2h-6v10h2v-4h3v-2h-3v-2zm-11 8h-4V16h4a3.003 3.003 0 0 1 3 3v4a3.003 3.003 0 0 1-3 3m-2-2h2a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-2zm-6-8H6v10h2v-3h3a2.003 2.003 0 0 0 2-2v-3a2 2 0 0 0-2-2m-3 5v-3h3l.001 3z"}),n.jsx("path",{fill:"currentColor",d:"M22 14v-4a.91.91 0 0 0-.3-.7l-7-7A.9.9 0 0 0 14 2H4a2.006 2.006 0 0 0-2 2v24a2 2 0 0 0 2 2h16v-2H4V4h8v6a2.006 2.006 0 0 0 2 2h6v2Zm-8-4V4.4l5.6 5.6Z"})]})}function Ve(){return n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",className:"icon",viewBox:"0 0 1024 1024",children:[n.jsx("path",{fill:"currentColor",d:"M679.253 402.364 618.77 561.015l-60.348-158.651a30.04 30.04 0 0 0-30.447-18.637 29.76 29.76 0 0 0-30.447 18.637l-60.416 158.651-60.416-158.651a30.515 30.515 0 0 0-38.843-17.272 28.945 28.945 0 0 0-17.954 37.547l88.815 233.267c4.369 11.469 15.7 19.115 28.398 19.115a30.31 30.31 0 0 0 28.468-19.115l62.395-163.908 62.396 163.84c4.437 11.605 15.701 19.183 28.4 19.183a30.31 30.31 0 0 0 28.466-19.115l88.747-233.267a28.945 28.945 0 0 0-17.886-37.547 30.447 30.447 0 0 0-38.912 17.272zm219.478 395.605-51.883-29.218c-28.672-16.18-52.224-3.072-52.224 29.082v.273H643.209a29.833 29.833 0 0 0-30.31 29.354c0 16.18 13.584 29.218 30.31 29.218h151.825c1.092 30.516 24.03 43.077 52.224 27.648l51.063-27.989c29.013-15.906 29.15-42.189.41-58.368"}),n.jsx("path",{fill:"currentColor",d:"m810.667 913.135-.478.068H201.796c-19.865 0-36.727-11.673-36.727-25.6v-618.36h154.965c51.268 0 92.911-39.39 92.911-87.858v-87.86H810.19c19.797 0 36.522 11.742 36.522 25.669V739.26h61.987V119.262c0-46.421-44.169-84.241-98.51-84.241H328.364l-225.28 194.56v658.09c0 46.285 44.236 84.105 98.713 84.105H810.19c43.759 0 80.554-24.713 93.32-58.573h-92.842zM350.89 94.89v86.562c0 16.11-13.858 29.286-30.925 29.286H216.815L350.959 94.891z"})]})}function Kt(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",color:"currentColor",children:[n.jsx("path",{d:"M14.86 22h-4.312c-3.291 0-4.937 0-6.08-.798a4.2 4.2 0 0 1-.863-.805c-.855-1.066-.855-2.6-.855-5.67v-2.545c0-2.963 0-4.445.473-5.628c.761-1.903 2.37-3.403 4.41-4.113C8.9 2 10.49 2 13.667 2c1.816 0 2.723 0 3.448.252c1.166.406 2.085 1.263 2.52 2.35c.27.676.27 1.523.27 3.216V10"}),n.jsx("path",{d:"M2.75 12c0-1.84 1.506-3.333 3.364-3.333c.672 0 1.464.116 2.117-.057a1.67 1.67 0 0 0 1.19-1.179c.174-.647.057-1.432.057-2.098C9.478 3.493 10.984 2 12.84 2m.002 16h2.523m-4.949-4.15c-.126-.8-.281-.801-1.61-.85h-1.01c-.557 0-1.009.448-1.009 1v3c0 .552.452 1 1.01 1h1.816c.39 0 .803-.313.803-.7v-1.1c0-.11-.113-.304-.224-.304H9.068M12.842 13h1.261m0 0h1.262m-1.262 0v4.875M21.251 13h-2.523c-.557 0-1.009.448-1.009 1v1.5m0 0V18m0-2.5h2.523"})]})})}function Qt(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",children:n.jsx("path",{fill:"currentColor",d:"M6.5 3a.75.75 0 0 1 .697.471l3 7.5a.75.75 0 0 1-1.393.557L7.992 9.5H5.008l-.811 2.028a.75.75 0 0 1-1.393-.556l3-7.5A.75.75 0 0 1 6.5 3m0 2.77L5.608 8h1.784zm8.28-1.55a.75.75 0 1 0-1.06 1.06l.72.72h-3.69a.75.75 0 0 0 0 1.5h3.69l-.72.72a.75.75 0 0 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06zm0 7.5a.75.75 0 1 0-1.06 1.06l.72.72H3.75a.75.75 0 0 0 0 1.5h10.69l-.72.72a.75.75 0 1 0 1.06 1.06l2-2a.75.75 0 0 0 0-1.06z"})})}function Zt(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 48 48",children:n.jsxs("g",{fill:"none",stroke:"currentColor",strokeWidth:"4",children:[n.jsx("circle",{cx:"10",cy:"24",r:"4"}),n.jsx("circle",{cx:"38",cy:"10",r:"4"}),n.jsx("circle",{cx:"38",cy:"24",r:"4"}),n.jsx("circle",{cx:"38",cy:"38",r:"4"}),n.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M34 38H22V10h12M14 24h20"})]})})}function Jt(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",children:n.jsx("path",{fill:"currentColor",d:"M13.5 3a.75.75 0 0 0-.697.471l-3 7.5a.75.75 0 0 0 1.393.557l.812-2.028h2.984l.811 2.028a.75.75 0 0 0 1.393-.556l-3-7.5A.75.75 0 0 0 13.5 3m0 2.77L14.392 8h-1.784zM5.22 4.22a.75.75 0 0 1 1.06 1.06L5.56 6h3.69a.75.75 0 0 1 0 1.5H5.56l.72.72a.75.75 0 0 1-1.06 1.06l-2-2a.75.75 0 0 1 0-1.06zm0 7.5a.75.75 0 0 1 1.06 1.06l-.72.72h10.69a.75.75 0 0 1 0 1.5H5.56l.72.72a.75.75 0 1 1-1.06 1.06l-2-2a.75.75 0 0 1 0-1.06z"})})}function Yt(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsx("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"m3 21l7.548-7.548M21 3l-7.548 7.548m0 0L8 3H3l7.548 10.452m2.904-2.904L21 21h-5l-5.452-7.548",color:"currentColor"})})}function er(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsx("path",{fill:"currentColor",d:"M14 2H6a2 2 0 0 0-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 2-2V8zm4 18H6V4h7v5h5zm-.65-10l-2.1 9h-1.4l-1.8-6.79l-1.8 6.79h-1.4l-2.2-9h1.5l1.4 6.81l1.8-6.81h1.3l1.8 6.81l1.4-6.81z"})})}function tr(){return n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",children:n.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:[n.jsx("path",{d:"M18 11c0-.818 0-1.57-.152-1.937s-.441-.657-1.02-1.235l-4.736-4.736c-.499-.499-.748-.748-1.058-.896a2 2 0 0 0-.197-.082C10.514 2 10.161 2 9.456 2c-3.245 0-4.868 0-5.967.886a4 4 0 0 0-.603.603C2 4.59 2 6.211 2 9.456V14c0 3.771 0 5.657 1.172 6.828S6.229 22 10 22h8M11 2.5V3c0 2.828 0 4.243.879 5.121C12.757 9 14.172 9 17 9h.5"}),n.jsx("path",{d:"M5 14v2.5M5 19v-2.5M8 14v2.5M8 19v-2.5m-3 0h3m2-2.5h1.25m1.25 0h-1.25m0 0v5m3.25 0v-5l1.75 2.5L18 14v5m2-5v5h2"})]})})}const Ie={Bold:s.Bold,LoaderCircle:s.LoaderCircle,Italic:s.Italic,Underline:s.Underline,Quote:s.Quote,TextQuote:It,Strikethrough:s.Strikethrough,Minus:s.Minus,Eraser:s.Eraser,PaintRoller:s.PaintRoller,Redo2:s.Redo2,Undo2:s.Undo2,AlignCenter:$.TextAlignCenterIcon,AlignJustify:$.TextAlignJustifyIcon,AlignLeft:$.TextAlignLeftIcon,AlignRight:$.TextAlignRightIcon,ChevronDown:s.ChevronDown,Subscript:s.Subscript,Superscript:s.Superscript,Code:s.Code,Code2:s.CodeXml,Type:s.Type,IndentIncrease:s.IndentIncrease,IndentDecrease:s.IndentDecrease,List:s.List,ListOrdered:s.ListOrdered,ListTodo:s.ListTodo,Link:s.Link,ImageUp:s.ImageUp,Video:s.Video,Maximize:s.Maximize,Minimize:s.Minimize,Table:s.Table,Sparkles:s.Sparkles,Pencil:s.Pencil,Unlink:s.Unlink,BetweenHorizonalEnd:s.BetweenHorizonalEnd,BetweenHorizonalStart:s.BetweenHorizonalStart,BetweenVerticalStart:s.BetweenVerticalStart,BetweenVerticalEnd:s.BetweenVerticalEnd,TableCellsMerge:s.TableCellsMerge,TableCellsSplit:s.TableCellsSplit,Trash2:s.Trash2,Trash:s.Trash,Replace:s.Replace,ChevronsUpDown:s.ChevronsUpDown,LineHeight:Ot,Word:Gt,Heading1:s.Heading1,Heading2:s.Heading2,Heading3:s.Heading3,Heading4:s.Heading4,Heading5:s.Heading5,Heading6:s.Heading6,Columns2:s.Columns2,Columns3:s.Columns3,Columns4:s.Columns4,Plus:s.Plus,Grip:s.GripVertical,Copy:s.Copy,Clipboard:s.Clipboard,PanelLeft:s.PanelLeft,PanelRight:s.PanelRight,Columns:s.Columns2,Iframe:s.Frame,MenuDown:Ae,SizeS:Ut,SizeM:_t,SizeL:Wt,AspectRatio:Vt,Emoji:s.SmilePlus,DeleteColumn:Ht,DeleteRow:Bt,SearchAndReplace:s.Replace,EmojiIcon:s.SmilePlusIcon,KatexIcon:s.Sigma,ExportPdf:Pe,ExportWord:Ve,ImportWord:er,ColumnAddLeft:Ft,ColumnAddRight:qt,BookMarked:s.BookMarked,Excalidraw:Xt,ZoomIn:s.ZoomIn,ZoomOut:s.ZoomOut,Settings:s.Settings,Eye:s.Eye,TextDirection:Dt,LeftToRight:Qt,RightToLeft:Jt,Attachment:s.Paperclip,GifIcon:Kt,ChevronUp:s.ChevronUp,Crop:s.CropIcon,Mermaid:Zt,Twitter:Yt,CodeView:$t,FlipX:s.FlipVertical,FlipY:s.FlipHorizontal,PencilRuler:s.PencilRuler,WrapText:s.WrapText,Loader:s.Loader2,X:s.X,Html:tr,ExternalLink:s.ExternalLink},ve=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ye=Se.clsx,He=(e,r)=>t=>{var o;if((r==null?void 0:r.variants)==null)return ye(e,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:c,defaultVariants:i}=r,l=Object.keys(c).map(u=>{const m=t==null?void 0:t[u],g=i==null?void 0:i[u];if(m===null)return null;const d=ve(m)||ve(g);return c[u][d]}),a=t&&Object.entries(t).reduce((u,m)=>{let[g,d]=m;return d===void 0||(u[g]=d),u},{}),h=r==null||(o=r.compoundVariants)===null||o===void 0?void 0:o.reduce((u,m)=>{let{class:g,className:d,...b}=m;return Object.entries(b).every(S=>{let[v,f]=S;return Array.isArray(f)?f.includes({...i,...a}[v]):{...i,...a}[v]===f})?[...u,g,d]:u},[]);return ye(e,l,h,t==null?void 0:t.class,t==null?void 0:t.className)},rr=He("richtext-inline-flex richtext-items-center richtext-justify-center richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors hover:richtext-bg-muted hover:richtext-text-muted-foreground focus-visible:richtext-outline-none focus-visible:richtext-ring-2 focus-visible:richtext-ring-ring focus-visible:richtext-ring-offset-1 disabled:richtext-pointer-events-none disabled:richtext-opacity-50 data-[state=on]:richtext-bg-accent data-[state=on]:richtext-text-accent-foreground",{variants:{variant:{default:"richtext-bg-transparent",outline:"richtext-border richtext-border-input richtext-bg-transparent hover:richtext-bg-accent hover:richtext-text-accent-foreground"},size:{default:"richtext-h-10 richtext-px-3",sm:"richtext-h-9 richtext-px-2",lg:"richtext-h-11 richtext-px-5"}},defaultVariants:{variant:"default",size:"default"}}),ne=N.forwardRef(({className:e,variant:r,size:t,...o},c)=>n.jsx(ke.Root,{ref:c,className:z(rr({variant:r,size:t,className:e})),...o}));ne.displayName=ke.Root.displayName;const or=O.Provider,Be=O.Root,Ge=O.Trigger,ie=N.forwardRef(({className:e,sideOffset:r=4,...t},o)=>n.jsx(O.Content,{"data-richtext-portal":!0,ref:o,sideOffset:r,className:z("richtext-z-50 richtext-overflow-hidden richtext-rounded-md richtext-bg-primary richtext-px-3 richtext-py-1.5 richtext-text-sm richtext-text-primary-foreground richtext-shadow-md richtext-animate-in richtext-fade-in-0 richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2 !richtext-border-none",e),...t}));ie.displayName=O.Content.displayName;const nr=C.Root,ir=C.Value,Oe=N.forwardRef(({className:e,children:r,...t},o)=>n.jsxs(C.Trigger,{ref:o,className:z("richtext-flex richtext-h-10 richtext-w-full richtext-items-center richtext-justify-between richtext-rounded-md richtext-border richtext-border-input richtext-bg-background richtext-px-3 richtext-py-2 richtext-text-sm richtext-ring-offset-background placeholder:richtext-text-muted-foreground focus:richtext-outline-none focus:richtext-ring-2 focus:richtext-ring-ring focus:richtext-ring-offset-1 disabled:richtext-cursor-not-allowed disabled:richtext-opacity-50 [&>span]:richtext-line-clamp-1",e),...t,children:[r,n.jsx(C.Icon,{asChild:!0,children:n.jsx(s.ChevronDown,{className:"richtext-size-4 richtext-opacity-50"})})]}));Oe.displayName=C.Trigger.displayName;const We=N.forwardRef(({className:e,...r},t)=>n.jsx(C.ScrollUpButton,{ref:t,className:z("richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",e),...r,children:n.jsx(s.ChevronUp,{className:"richtext-size-4"})}));We.displayName=C.ScrollUpButton.displayName;const _e=N.forwardRef(({className:e,...r},t)=>n.jsx(C.ScrollDownButton,{ref:t,className:z("richtext-flex richtext-cursor-default richtext-items-center richtext-justify-center richtext-py-1",e),...r,children:n.jsx(s.ChevronDown,{className:"richtext-size-4"})}));_e.displayName=C.ScrollDownButton.displayName;const Ue=N.forwardRef(({className:e,children:r,position:t="popper",...o},c)=>n.jsx(C.Portal,{children:n.jsxs(C.Content,{"data-richtext-portal":!0,position:t,ref:c,className:z("richtext-relative richtext-z-50 richtext-max-h-60 richtext-overflow-y-auto richtext-min-w-[8rem] richtext-overflow-hidden richtext-rounded-md richtext-border !richtext-border-border richtext-bg-popover richtext-text-popover-foreground richtext-shadow-md data-[state=open]:richtext-animate-in data-[state=closed]:richtext-animate-out data-[state=closed]:richtext-fade-out-0 data-[state=open]:richtext-fade-in-0 data-[state=closed]:richtext-zoom-out-95 data-[state=open]:richtext-zoom-in-95 data-[side=bottom]:richtext-slide-in-from-top-2 data-[side=left]:richtext-slide-in-from-right-2 data-[side=right]:richtext-slide-in-from-left-2 data-[side=top]:richtext-slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:richtext-translate-y-1 data-[side=left]:richtext--translate-x-1 data-[side=right]:richtext-translate-x-1 data-[side=top]:richtext--translate-y-1",e),...o,children:[n.jsx(We,{}),n.jsx(C.Viewport,{className:z("richtext-p-1",t==="popper"&&"richtext-h-[var(--radix-select-trigger-height)] richtext-w-full richtext-min-w-[var(--radix-select-trigger-width)]"),children:r}),n.jsx(_e,{})]})}));Ue.displayName=C.Content.displayName;const sr=N.forwardRef(({className:e,...r},t)=>n.jsx(C.Label,{className:z("richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-font-semibold",e),ref:t,...r}));sr.displayName=C.Label.displayName;const $e=N.forwardRef(({className:e,children:r,...t},o)=>n.jsxs(C.Item,{ref:o,className:z("richtext-relative richtext-flex richtext-w-full richtext-cursor-default richtext-select-none richtext-items-center richtext-rounded-sm richtext-py-1.5 richtext-pl-8 richtext-pr-2 richtext-text-sm richtext-outline-none focus:richtext-bg-accent focus:richtext-text-accent-foreground data-[disabled]:richtext-pointer-events-none data-[disabled]:richtext-opacity-50",e),...t,children:[n.jsx("span",{className:"richtext-absolute richtext-left-2 richtext-flex richtext-size-3.5 richtext-items-center richtext-justify-center",children:n.jsx(C.ItemIndicator,{children:n.jsx(s.Check,{className:"richtext-size-4"})})}),n.jsx(C.ItemText,{children:r})]}));$e.displayName=C.Item.displayName;const cr=N.forwardRef(({className:e,...r},t)=>n.jsx(C.Separator,{className:z("richtext--mx-1 richtext-my-1 richtext-h-px richtext-bg-muted",e),ref:t,...r}));cr.displayName=C.Separator.displayName;function se(e){function r(){const i=x.useRef(e),l=x.useCallback(()=>i.current,[]),a=x.useRef(new Set),h=x.useCallback(m=>{i.current={...i.current,...m},a.current.forEach(g=>g())},[]),u=x.useCallback(m=>(a.current.add(m),()=>a.current.delete(m)),[]);return{get:l,set:h,subscribe:u}}const t=x.createContext(null);function o({children:i}){return n.jsx(t.Provider,{value:r(),children:i})}function c(i){const l=x.useContext(t);if(!l)throw new Error("Store not found");return[x.useSyncExternalStore(l.subscribe,()=>i(l.get()),()=>i(e)),l.set]}return{Provider:o,useStore:c}}se({value:!1});se({value:!1});const{Provider:ar,useStore:Fe}=se({value:!1});function lr(){const[e]=Fe(r=>r.value);return e}const Ce="data-rc-order",je="data-rc-priority",dr="rc-util-key",re=new Map;function ur(e,r){if(!e)return!1;if(e.contains)return e.contains(r);let t=r;for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function qe({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:dr}function ce(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function hr(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function De(e){return[...(re.get(e)||e).children].filter(r=>r.tagName==="STYLE")}function Xe(e,r={}){const{csp:t,prepend:o,priority:c=0}=r,i=hr(o),l=i==="prependQueue",a=document.createElement("style");a.setAttribute(Ce,i),l&&c&&a.setAttribute(je,`${c}`),t!=null&&t.nonce&&(a.nonce=t==null?void 0:t.nonce),a.innerHTML=e;const h=ce(r),{firstChild:u}=h;if(o){if(l){const m=De(h).filter(g=>{if(!["prepend","prependQueue"].includes(g.getAttribute(Ce)))return!1;const d=Number(g.getAttribute(je)||0);return c>=d});if(m.length>0)return h.insertBefore(a,m.at(-1).nextSibling),a}u.before(a)}else h.append(a);return a}function Ke(e,r={}){const t=ce(r);return De(t).find(o=>o.getAttribute(qe(r))===e)}function Qe(e,r={}){const t=Ke(e,r);t&&t.remove()}function pr(e,r){const t=re.get(e);if(!t||!ur(document,t)){const o=Xe("",r),{parentNode:c}=o;re.set(e,c),o.remove()}}function Ze(e,r,t={}){var l,a,h;const o=ce(t);pr(o,t);const c=Ke(r,t);if(c)return(l=t.csp)!=null&&l.nonce&&c.nonce!==((a=t.csp)==null?void 0:a.nonce)&&(c.nonce=(h=t.csp)==null?void 0:h.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;const i=Xe(e,t);return i.setAttribute(qe(t),r),i}const mr=x.memo(({editor:e,children:r})=>{const[,t]=Fe(c=>c.value);x.useEffect(()=>{t({value:e==null?void 0:e.isEditable})},[e==null?void 0:e.isEditable]);const o=()=>{t({value:e==null?void 0:e.isEditable})};return x.useEffect(()=>(e&&e.on("update",o),()=>{e&&e.off("update",o)}),[e]),n.jsx(n.Fragment,{children:r})});function gr(){const[,e]=ge.x(ge.atomLang),r=o=>{e(c=>({...c,currentLang:o.detail}))},t=o=>{const{lang:c,messages:i}=o.detail;e(l=>{if(l.message[c]){const a={...l.message[c],...i};return{currentLang:l.currentLang,message:{...l.message,[c]:a}}}else return{currentLang:l.currentLang,message:{...l.message,[c]:i}}})};return x.useEffect(()=>{const o=E.listenEvent(E.EVENTS.CHANGE_LANGUAGE,r),c=E.listenEvent(E.EVENTS.MODIFY_LANGUAGE,t);return()=>{o(),c()}},[]),n.jsx(n.Fragment,{})}function fr(){const[e,r]=F("richtext-theme","light"),[t,o]=F("richtext-color","default"),[c,i]=F("richtext-border-radius","0.65rem");x.useEffect(()=>{const u=e||"light",m=t||"default";let g=fe.THEME[u][m];if(!g){g=fe.THEME.light.default;return}return Ze(`
2
- .reactjs-tiptap-editor, .reactjs-tiptap-editor *,
3
- div[data-richtext-portal], div[data-richtext-portal] * {
4
- ${Object.entries(g).map(([d,b])=>typeof c=="string"&&d==="radius"?`--${d}: ${c};`:`--${d}: ${b};`).join(`
5
- `)}
6
- }
7
- `,"richtext-theme",{priority:50}),()=>{Qe("richtext-theme")}},[e,t,c]);const l=u=>{r(u.detail)},a=u=>{o(u.detail)},h=u=>{i(u.detail)};return x.useEffect(()=>{const u=E.listenEvent(E.EVENTS.CHANGE_THEME,l),m=E.listenEvent(E.EVENTS.CHANGE_COLOR,a),g=E.listenEvent(E.EVENTS.CHANGE_BORDER_RADIUS,h);return()=>{u(),m(),g()}},[]),n.jsx(n.Fragment,{})}function xr({editor:e,children:r,id:t}){return n.jsxs(ar,{children:[n.jsx(mr,{editor:e,id:t,children:r}),n.jsx(gr,{}),n.jsx(fr,{})]})}exports.ActionButton=Pt;exports.ExportPdf=Pe;exports.ExportWord=Ve;exports.MenuDown=Ae;exports.ProviderUniqueId=xr;exports.Select=nr;exports.SelectContent=Ue;exports.SelectItem=$e;exports.SelectTrigger=Oe;exports.SelectValue=ir;exports.Toggle=ne;exports.Tooltip=Be;exports.TooltipContent=ie;exports.TooltipProvider=or;exports.TooltipTrigger=Ge;exports.cn=z;exports.cva=He;exports.getShortcutKey=Te;exports.getShortcutKeys=Re;exports.icons=Ie;exports.removeCSS=Qe;exports.updateCSS=Ze;exports.useEditableEditor=lr;exports.useLocalStorage=F;