reactjs-tiptap-editor 1.0.6 → 1.0.7
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.
- package/lib/{ActionMenuButton-htJNI0Fa.js → ActionMenuButton-fTe9ka2F.js} +10 -13
- package/lib/ActionMenuButton-wU6jxKJv.cjs +1 -0
- package/lib/Attachment.cjs +2 -2
- package/lib/Attachment.js +23 -25
- package/lib/Blockquote.cjs +2 -2
- package/lib/Blockquote.js +5 -6
- package/lib/Bold.cjs +1 -1
- package/lib/Bold.js +5 -6
- package/lib/BulletList.cjs +1 -1
- package/lib/BulletList.js +11 -12
- package/lib/Clear.cjs +1 -1
- package/lib/Clear.js +3 -3
- package/lib/Code.cjs +1 -1
- package/lib/Code.js +9 -10
- package/lib/CodeBlock.cjs +39 -39
- package/lib/CodeBlock.js +837 -946
- package/lib/CodeView.cjs +1 -1
- package/lib/CodeView.js +8 -9
- package/lib/Color.cjs +1 -1
- package/lib/Color.js +20 -21
- package/lib/Column.cjs +1 -1
- package/lib/Column.js +5 -6
- package/lib/Drawer-BGSwHoka.cjs +1 -0
- package/lib/{Drawer-1211urKj.js → Drawer-DmtILKW4.js} +16 -17
- package/lib/Drawer.cjs +1 -1
- package/lib/Drawer.js +3 -3
- package/lib/Emoji.cjs +1 -1
- package/lib/Emoji.js +15 -16
- package/lib/Excalidraw-BG2U9i30.cjs +1 -0
- package/lib/{Excalidraw-Du3hBR8t.js → Excalidraw-CrG8fW-7.js} +31 -32
- package/lib/Excalidraw.cjs +1 -1
- package/lib/Excalidraw.js +2 -2
- package/lib/ExportPdf.cjs +1 -1
- package/lib/ExportPdf.js +17 -18
- package/lib/ExportWord.cjs +1 -1
- package/lib/ExportWord.js +5 -6
- package/lib/FontFamily.cjs +1 -1
- package/lib/FontFamily.js +5 -5
- package/lib/FontSize.cjs +1 -1
- package/lib/FontSize.js +5 -5
- package/lib/Heading.cjs +1 -1
- package/lib/Heading.js +15 -15
- package/lib/Highlight.cjs +1 -1
- package/lib/Highlight.js +10 -11
- package/lib/History.cjs +1 -1
- package/lib/History.js +8 -10
- package/lib/HorizontalRule.cjs +1 -1
- package/lib/HorizontalRule.js +5 -6
- package/lib/Icon-C3j4ls73.cjs +1 -0
- package/lib/{Icon-C-qYUAS1.js → Icon-CysGlJkv.js} +3 -4
- package/lib/{Iframe-DTYTLQE6.js → Iframe-BmqguWbj.js} +13 -14
- package/lib/Iframe-CXDghI6m.cjs +1 -0
- package/lib/Iframe.cjs +1 -1
- package/lib/Iframe.js +2 -2
- package/lib/Image.cjs +1 -1
- package/lib/Image.js +48 -49
- package/lib/ImageGif.cjs +1 -1
- package/lib/ImageGif.js +22 -23
- package/lib/ImportWord.cjs +2 -2
- package/lib/ImportWord.js +10 -11
- package/lib/Indent-B1glTHHl.cjs +1 -0
- package/lib/{Indent-jOPn3eUM.js → Indent-BhnGkEaY.js} +24 -25
- package/lib/Indent.cjs +1 -1
- package/lib/Indent.js +2 -2
- package/lib/Italic.cjs +1 -1
- package/lib/Italic.js +10 -11
- package/lib/Katex-BKL_6NWF.cjs +4 -0
- package/lib/{Katex-CERSrcTP.js → Katex-D4eBjS34.js} +21 -22
- package/lib/Katex.cjs +1 -1
- package/lib/Katex.js +2 -2
- package/lib/LineHeight.cjs +1 -1
- package/lib/LineHeight.js +15 -16
- package/lib/Link.cjs +1 -1
- package/lib/Link.js +2 -2
- package/lib/{LinkEditBlock-B5SdhOfa.js → LinkEditBlock-D1eSM0kn.js} +55 -56
- package/lib/{LinkEditBlock-DaxljgJC.cjs → LinkEditBlock-DW17TyCA.cjs} +2 -2
- package/lib/Mention.js +2 -2
- package/lib/Mermaid.cjs +2 -2
- package/lib/Mermaid.js +20 -20
- package/lib/MoreMark.cjs +1 -1
- package/lib/MoreMark.js +19 -21
- package/lib/OrderedList.cjs +1 -1
- package/lib/OrderedList.js +5 -6
- package/lib/SearchAndReplace.cjs +1 -1
- package/lib/SearchAndReplace.js +22 -23
- package/lib/SlashCommand.cjs +1 -1
- package/lib/SlashCommand.js +14 -14
- package/lib/Strike.cjs +1 -1
- package/lib/Strike.js +5 -6
- package/lib/{Table-39OkCQbu.js → Table-BIZppoiY.js} +7 -8
- package/lib/Table-CIzgfvr9.cjs +9 -0
- package/lib/Table.cjs +1 -1
- package/lib/Table.js +1 -1
- package/lib/TaskList.cjs +1 -1
- package/lib/TaskList.js +13 -14
- package/lib/TextAlign.cjs +1 -1
- package/lib/TextAlign.js +17 -19
- package/lib/TextDirection.cjs +1 -1
- package/lib/TextDirection.js +17 -19
- package/lib/TextUnderline.cjs +1 -1
- package/lib/TextUnderline.js +5 -6
- package/lib/{Twitter-D7PhLycr.js → Twitter-DhczYjbR.js} +21 -22
- package/lib/Twitter-DwWVNAV5.cjs +1 -0
- package/lib/Twitter.cjs +1 -1
- package/lib/Twitter.js +2 -2
- package/lib/Video.cjs +1 -1
- package/lib/Video.js +24 -25
- package/lib/bubble.cjs +4 -4
- package/lib/bubble.js +419 -421
- package/lib/button-B6ukqDUf.cjs +1 -0
- package/lib/{button-Crm67hfl.js → button-C81t4pb1.js} +3 -4
- package/lib/{checkbox-DViVmgJ6.js → checkbox-CUE9ex4D.js} +1 -1
- package/lib/{checkbox-NQC2MdGT.cjs → checkbox-ZdxysUFa.cjs} +1 -1
- package/lib/{dialog-DaHBd2zw.cjs → dialog-Cfx8yjkr.cjs} +1 -1
- package/lib/{dialog-Ce9Cjfft.js → dialog-DMJStzBb.js} +1 -1
- package/lib/{dropdown-menu-CQykJhBs.js → dropdown-menu-B8iyTZcP.js} +1 -1
- package/lib/{dropdown-menu-CSCDQtq0.cjs → dropdown-menu-Busg3FNn.cjs} +1 -1
- package/lib/{index-DuZCJJSp.js → index--knBGB61.js} +1118 -504
- package/lib/{index-nFjllrEl.js → index-BvYjBPF9.js} +7 -7
- package/lib/index-D42xFOzI.cjs +7 -0
- package/lib/{index-D-FhWysc.js → index-Dwt9--mS.js} +1 -1
- package/lib/{index-BeUrdBxf.js → index-RKufd2EL.js} +1 -1
- package/lib/{index-prphFVsp.js → index-ccgHvIfu.js} +1 -1
- package/lib/index.cjs +2 -2
- package/lib/index.js +8 -9
- package/lib/{input-tU3H__39.cjs → input-BxzQAIRv.cjs} +1 -1
- package/lib/{input-DfqFAyKo.js → input-DR_5pbuA.js} +1 -1
- package/lib/{isNumber-CTm1pIvN.js → isNumber-1y3eeW-y.js} +1 -1
- package/lib/label-BfWfLggp.cjs +1 -0
- package/lib/label-D-0oXKCn.js +18 -0
- package/lib/{popover-CoepUobG.js → popover-D3spkemr.js} +1 -1
- package/lib/{popover-CZWSQZ0q.cjs → popover-sP8CwbV-.cjs} +1 -1
- package/lib/{separator-6SnwzytZ.js → separator-rM48NeAo.js} +18 -18
- package/lib/{separator-DCQD8P6s.cjs → separator-yycaNdlI.cjs} +1 -1
- package/lib/{store-726Zjszt.cjs → store-BajRl43v.cjs} +1 -1
- package/lib/{store-ibARMQ3h.js → store-NKeQOve_.js} +1 -1
- package/lib/{tabs-DrkJL_C2.js → tabs-Cb6Bmpbb.js} +1 -1
- package/lib/{tabs-B_ArrG09.cjs → tabs-D2nCIOVL.cjs} +1 -1
- package/lib/{textarea-CIs52G8B.js → textarea-BYZu1lUC.js} +1 -1
- package/lib/{textarea-CmZVZKOo.cjs → textarea-Cbwi_h4h.cjs} +1 -1
- package/lib/{throttle-CGM5M2yG.js → throttle-CjwXmkIY.js} +1 -1
- package/lib/{updatePosition-DpMKxYdN.js → updatePosition-BAGpT34H.js} +1 -1
- package/lib/{useButtonProps-D0SrPzuG.js → useButtonProps-BIH_9bXT.js} +35 -47
- package/lib/useButtonProps-TfmRCM9r.cjs +1 -0
- package/package.json +5 -1
- package/lib/ActionMenuButton-DYT5chmX.cjs +0 -1
- package/lib/Drawer-DUFUd5BW.cjs +0 -1
- package/lib/Excalidraw-CajgZDjU.cjs +0 -1
- package/lib/Icon-BjR_or8V.cjs +0 -1
- package/lib/Iframe-CM6mRQmv.cjs +0 -1
- package/lib/Indent-BmhiEb0S.cjs +0 -1
- package/lib/Katex-CUd3LxLh.cjs +0 -4
- package/lib/Table-3VstSlg4.cjs +0 -9
- package/lib/Twitter-DuHPeVW1.cjs +0 -1
- package/lib/button-xNppt_aK.cjs +0 -1
- package/lib/index-BQ17A_37.js +0 -393
- package/lib/index-CNzHZDls.cjs +0 -7
- package/lib/index-DmOTQudI.cjs +0 -1
- package/lib/label-DC33TZy_.js +0 -19
- package/lib/label-DkDE77kc.cjs +0 -1
- package/lib/toggle-DVCNvcqp.cjs +0 -1
- package/lib/toggle-xchtz-Kf.js +0 -92
- package/lib/tooltip-BTFcHrd9.js +0 -24
- package/lib/tooltip-DFjcKu9a.cjs +0 -1
- package/lib/useButtonProps-bei1vI37.cjs +0 -1
package/lib/Twitter-DuHPeVW1.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const k=require("./index-DLqogznp.cjs"),n=require("react/jsx-runtime"),h=require("react"),Lt=require("./toggle-DVCNvcqp.cjs");require("./index-CNzHZDls.cjs");const Ot=require("./index-FSRjMsxW.cjs"),qt=require("./label-DkDE77kc.cjs"),Dt=require("./input-tU3H__39.cjs"),$t=require("./button-xNppt_aK.cjs"),je=require("./useButtonProps-bei1vI37.cjs"),we=require("./popover-CZWSQZ0q.cjs"),At=require("./Icon-BjR_or8V.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",Dn="_grid2x2_g9tkv_23",$n="_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:Dn,mediaContainer:$n,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},Dr=({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))}),$r=({tweet:e})=>{var t;return n.jsxs(Nr,{tweet:e,children:[n.jsx(Lr,{tweet:e}),n.jsx(Dr,{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($r,{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 De=!0;const Xr=()=>De,[$e,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),$e("focus",e),()=>{qe&&document.removeEventListener("visibilitychange",e),Ae("focus",e)}),Jr=e=>{const t=()=>{De=!0,e()},r=()=>{De=!1};return $e("online",t),$e("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),[$,ie,l,de]=F.get(t),Q=()=>{const q=$[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,$,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(),D=x(j),re=j===g?D:x(g);let T=D;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,D=!0;const re=_||{},T=!$[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=$[l];L&&L[1]===g&&delete $[l]},Ze={isValidating:!0};u(M().data)&&(Ze.isLoading=!0);try{if(T&&(Z(Ze),r.loadingTimeout&&u(M().data)&&setTimeout(()=>{D&&S()&&m().onLoadingSlow(l,r)},r.loadingTimeout),$[l]=[x(de),Me()]),[j,g]=$[l],j=await j,T&&setTimeout(Ye,r.dedupingInterval),!$[l]||$[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 D=!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,(D,re={})=>{if(D==vt){const T=Date.now();m().revalidateOnFocus&&T>x&&Y()&&(x=T+m().focusThrottleInterval,_())}else if(D==gt)m().revalidateOnReconnect&&Y()&&_();else{if(D==jt)return ae();if(D==ot)return ae(re)}});return y.current=!1,A.current=l,Q.current=!0,Z({_k:de}),Xe&&($[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}=Ot.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(qt.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(Dt.Input,{className:"richtext-w-80",onChange:a=>s(a.target.value),placeholder:"Text",required:!0,type:"text",value:r})})}),n.jsx($t.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=je.useEditorInstance(),s=je.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}=je.useToggleActive(f);function v(p){d||c&&(c(p),t(!1))}return n.jsxs(we.Popover,{modal:!0,onOpenChange:t,open:e,children:[n.jsx(we.PopoverTrigger,{asChild:!0,children:n.jsx(Lt.ActionButton,{disabled:d,isActive:f,tooltip:a,tooltipOptions:i,children:n.jsx(At.IconComponent,{name:o})})}),n.jsx(we.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;
|
package/lib/button-xNppt_aK.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const x=require("react/jsx-runtime"),h=require("react"),a=require("@radix-ui/react-slot"),u=require("./index-DmOTQudI.cjs"),d=require("./index-CNzHZDls.cjs");function f(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const l=f(h),g=u.cva("richtext-inline-flex richtext-items-center richtext-justify-center richtext-whitespace-nowrap richtext-rounded-md richtext-text-sm richtext-font-medium richtext-ring-offset-background richtext-transition-colors 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",{variants:{variant:{default:"!richtext-bg-primary !richtext-text-primary-foreground hover:!richtext-bg-primary/90",destructive:"richtext-bg-destructive richtext-text-destructive-foreground hover:richtext-bg-destructive/90",outline:"richtext-border richtext-border-input richtext-bg-background hover:richtext-bg-accent hover:richtext-text-accent-foreground",secondary:"richtext-bg-secondary richtext-text-secondary-foreground hover:richtext-bg-secondary/80",ghost:"hover:richtext-bg-accent hover:richtext-text-accent-foreground",link:"richtext-text-primary richtext-underline-offset-4 hover:richtext-underline"},size:{default:"richtext-h-10 richtext-px-4 richtext-py-2",sm:"richtext-h-9 richtext-rounded-md richtext-px-3",lg:"richtext-h-11 richtext-rounded-md richtext-px-8",icon:"richtext-size-10"}},defaultVariants:{variant:"default",size:"default"}}),c=l.forwardRef(({className:t,variant:r,size:e,asChild:i=!1,...n},o)=>{const s=i?a.Slot:"button";return x.jsx(s,{className:d.cn(g({variant:r,size:e,className:t})),ref:o,...n})});c.displayName="Button";exports.Button=c;
|
package/lib/index-BQ17A_37.js
DELETED
|
@@ -1,393 +0,0 @@
|
|
|
1
|
-
import { TextAlignRightIcon as L, TextAlignLeftIcon as z, TextAlignJustifyIcon as V, TextAlignCenterIcon as H } from "@radix-ui/react-icons";
|
|
2
|
-
import { ExternalLink as B, X as j, Loader2 as y, WrapText as A, PencilRuler as S, FlipHorizontal as T, FlipVertical as I, CropIcon as W, ChevronUp as R, Paperclip as P, Eye as E, Settings as N, ZoomOut as b, ZoomIn as D, BookMarked as F, Sigma as O, SmilePlusIcon as U, Replace as u, SmilePlus as X, Frame as Z, Columns2 as g, PanelRight as G, PanelLeft as q, Clipboard as J, Copy as K, GripVertical as Q, Plus as _, Columns4 as Y, Columns3 as $, Heading6 as e1, Heading5 as t1, Heading4 as r1, Heading3 as n1, Heading2 as l1, Heading1 as i1, ChevronsUpDown as o1, Trash as c1, Trash2 as h1, TableCellsSplit as a1, TableCellsMerge as s1, BetweenVerticalEnd as d1, BetweenVerticalStart as m1, BetweenHorizonalStart as w1, BetweenHorizonalEnd as v1, Unlink as u1, Pencil as g1, Sparkles as x1, Table as p1, Minimize as C1, Maximize as f1, Video as k1, ImageUp as M1, Link as L1, ListTodo as z1, ListOrdered as V1, List as H1, IndentDecrease as B1, IndentIncrease as j1, Type as y1, CodeXml as A1, Code as S1, Superscript as T1, Subscript as I1, ChevronDown as W1, Undo2 as R1, Redo2 as P1, PaintRoller as E1, Eraser as N1, Minus as b1, Strikethrough as D1, Quote as F1, Underline as O1, Italic as U1, LoaderCircle as X1, Bold as Z1 } from "lucide-react";
|
|
3
|
-
import { jsx as e, jsxs as a } from "react/jsx-runtime";
|
|
4
|
-
import { C as G1 } from "./index-nFjllrEl.js";
|
|
5
|
-
function q1(t) {
|
|
6
|
-
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ e(
|
|
7
|
-
"path",
|
|
8
|
-
{
|
|
9
|
-
fill: "currentColor",
|
|
10
|
-
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"
|
|
11
|
-
}
|
|
12
|
-
) });
|
|
13
|
-
}
|
|
14
|
-
function J1(t) {
|
|
15
|
-
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ e(
|
|
16
|
-
"path",
|
|
17
|
-
{
|
|
18
|
-
fill: "none",
|
|
19
|
-
stroke: "currentColor",
|
|
20
|
-
strokeLinecap: "round",
|
|
21
|
-
strokeLinejoin: "round",
|
|
22
|
-
strokeWidth: "2",
|
|
23
|
-
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"
|
|
24
|
-
}
|
|
25
|
-
) });
|
|
26
|
-
}
|
|
27
|
-
function K1() {
|
|
28
|
-
return /* @__PURE__ */ e(
|
|
29
|
-
"svg",
|
|
30
|
-
{
|
|
31
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
32
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
33
|
-
"aria-hidden": "true",
|
|
34
|
-
role: "img",
|
|
35
|
-
className: "richtext-w-4 richtext-h-4",
|
|
36
|
-
width: "1em",
|
|
37
|
-
height: "1em",
|
|
38
|
-
viewBox: "0 0 24 24",
|
|
39
|
-
children: /* @__PURE__ */ e(
|
|
40
|
-
"path",
|
|
41
|
-
{
|
|
42
|
-
fill: "none",
|
|
43
|
-
stroke: "currentColor",
|
|
44
|
-
strokeLinecap: "round",
|
|
45
|
-
strokeLinejoin: "round",
|
|
46
|
-
strokeWidth: "1.5",
|
|
47
|
-
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",
|
|
48
|
-
color: "currentColor"
|
|
49
|
-
}
|
|
50
|
-
)
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
function Q1() {
|
|
55
|
-
return /* @__PURE__ */ e(
|
|
56
|
-
"svg",
|
|
57
|
-
{
|
|
58
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
59
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
60
|
-
"aria-hidden": "true",
|
|
61
|
-
role: "img",
|
|
62
|
-
className: "richtext-w-4 richtext-h-4",
|
|
63
|
-
width: "1em",
|
|
64
|
-
height: "1em",
|
|
65
|
-
viewBox: "0 0 24 24",
|
|
66
|
-
children: /* @__PURE__ */ e(
|
|
67
|
-
"path",
|
|
68
|
-
{
|
|
69
|
-
fill: "none",
|
|
70
|
-
stroke: "currentColor",
|
|
71
|
-
strokeLinecap: "round",
|
|
72
|
-
strokeLinejoin: "round",
|
|
73
|
-
strokeWidth: "1.5",
|
|
74
|
-
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",
|
|
75
|
-
color: "currentColor"
|
|
76
|
-
}
|
|
77
|
-
)
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
function _1(t) {
|
|
82
|
-
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ e(
|
|
83
|
-
"path",
|
|
84
|
-
{
|
|
85
|
-
fill: "currentColor",
|
|
86
|
-
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"
|
|
87
|
-
}
|
|
88
|
-
) });
|
|
89
|
-
}
|
|
90
|
-
function Y1(t) {
|
|
91
|
-
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ e(
|
|
92
|
-
"path",
|
|
93
|
-
{
|
|
94
|
-
fill: "currentColor",
|
|
95
|
-
d: "M21 22H3v-2h18zm0-18H3V2h18zm-11 9.7h4l-2-5.4zM11.2 6h1.7l4.7 12h-2l-.9-2.6H9.4L8.5 18h-2z"
|
|
96
|
-
}
|
|
97
|
-
) });
|
|
98
|
-
}
|
|
99
|
-
function $1(t) {
|
|
100
|
-
return /* @__PURE__ */ e(
|
|
101
|
-
"svg",
|
|
102
|
-
{
|
|
103
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
104
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
105
|
-
"aria-hidden": "true",
|
|
106
|
-
role: "img",
|
|
107
|
-
width: "1em",
|
|
108
|
-
height: "1em",
|
|
109
|
-
viewBox: "0 0 48 48",
|
|
110
|
-
...t,
|
|
111
|
-
children: /* @__PURE__ */ e(
|
|
112
|
-
"path",
|
|
113
|
-
{
|
|
114
|
-
fill: "currentColor",
|
|
115
|
-
stroke: "currentColor",
|
|
116
|
-
strokeLinejoin: "round",
|
|
117
|
-
strokeWidth: 4,
|
|
118
|
-
d: "M36 19L24 31L12 19z"
|
|
119
|
-
}
|
|
120
|
-
)
|
|
121
|
-
}
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
function e0(t) {
|
|
125
|
-
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M9 7v10h6v-2h-4V7z" }) });
|
|
126
|
-
}
|
|
127
|
-
function t0(t) {
|
|
128
|
-
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ e(
|
|
129
|
-
"path",
|
|
130
|
-
{
|
|
131
|
-
fill: "currentColor",
|
|
132
|
-
d: "M9 7c-1.1 0-2 .9-2 2v8h2V9h2v7h2V9h2v8h2V9a2 2 0 0 0-2-2z"
|
|
133
|
-
}
|
|
134
|
-
) });
|
|
135
|
-
}
|
|
136
|
-
function r0(t) {
|
|
137
|
-
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ e(
|
|
138
|
-
"path",
|
|
139
|
-
{
|
|
140
|
-
fill: "currentColor",
|
|
141
|
-
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"
|
|
142
|
-
}
|
|
143
|
-
) });
|
|
144
|
-
}
|
|
145
|
-
function n0() {
|
|
146
|
-
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ e(
|
|
147
|
-
"path",
|
|
148
|
-
{
|
|
149
|
-
fill: "currentColor",
|
|
150
|
-
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"
|
|
151
|
-
}
|
|
152
|
-
) });
|
|
153
|
-
}
|
|
154
|
-
function l0() {
|
|
155
|
-
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("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" }) });
|
|
156
|
-
}
|
|
157
|
-
function i0() {
|
|
158
|
-
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("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" }) });
|
|
159
|
-
}
|
|
160
|
-
function o0() {
|
|
161
|
-
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("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" }) });
|
|
162
|
-
}
|
|
163
|
-
function c0() {
|
|
164
|
-
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("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" }) });
|
|
165
|
-
}
|
|
166
|
-
function h0() {
|
|
167
|
-
return /* @__PURE__ */ a("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 32 32", children: [
|
|
168
|
-
/* @__PURE__ */ e("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" }),
|
|
169
|
-
/* @__PURE__ */ e("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" })
|
|
170
|
-
] });
|
|
171
|
-
}
|
|
172
|
-
function a0() {
|
|
173
|
-
return /* @__PURE__ */ a(
|
|
174
|
-
"svg",
|
|
175
|
-
{
|
|
176
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
177
|
-
width: "1em",
|
|
178
|
-
height: "1em",
|
|
179
|
-
className: "icon",
|
|
180
|
-
viewBox: "0 0 1024 1024",
|
|
181
|
-
children: [
|
|
182
|
-
/* @__PURE__ */ e(
|
|
183
|
-
"path",
|
|
184
|
-
{
|
|
185
|
-
fill: "currentColor",
|
|
186
|
-
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"
|
|
187
|
-
}
|
|
188
|
-
),
|
|
189
|
-
/* @__PURE__ */ e(
|
|
190
|
-
"path",
|
|
191
|
-
{
|
|
192
|
-
fill: "currentColor",
|
|
193
|
-
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"
|
|
194
|
-
}
|
|
195
|
-
)
|
|
196
|
-
]
|
|
197
|
-
}
|
|
198
|
-
);
|
|
199
|
-
}
|
|
200
|
-
function s0() {
|
|
201
|
-
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", color: "currentColor", children: [
|
|
202
|
-
/* @__PURE__ */ e("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" }),
|
|
203
|
-
/* @__PURE__ */ e("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" })
|
|
204
|
-
] }) });
|
|
205
|
-
}
|
|
206
|
-
function d0() {
|
|
207
|
-
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 20 20", children: /* @__PURE__ */ e("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" }) });
|
|
208
|
-
}
|
|
209
|
-
function m0() {
|
|
210
|
-
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 48 48", children: /* @__PURE__ */ a("g", { fill: "none", stroke: "currentColor", strokeWidth: "4", children: [
|
|
211
|
-
/* @__PURE__ */ e("circle", { cx: "10", cy: "24", r: "4" }),
|
|
212
|
-
/* @__PURE__ */ e("circle", { cx: "38", cy: "10", r: "4" }),
|
|
213
|
-
/* @__PURE__ */ e("circle", { cx: "38", cy: "24", r: "4" }),
|
|
214
|
-
/* @__PURE__ */ e("circle", { cx: "38", cy: "38", r: "4" }),
|
|
215
|
-
/* @__PURE__ */ e("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M34 38H22V10h12M14 24h20" })
|
|
216
|
-
] }) });
|
|
217
|
-
}
|
|
218
|
-
function w0() {
|
|
219
|
-
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 20 20", children: /* @__PURE__ */ e("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" }) });
|
|
220
|
-
}
|
|
221
|
-
function v0() {
|
|
222
|
-
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ e("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" }) });
|
|
223
|
-
}
|
|
224
|
-
function u0() {
|
|
225
|
-
return /* @__PURE__ */ e(
|
|
226
|
-
"svg",
|
|
227
|
-
{
|
|
228
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
229
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
230
|
-
"aria-hidden": "true",
|
|
231
|
-
role: "img",
|
|
232
|
-
width: "1em",
|
|
233
|
-
height: "1em",
|
|
234
|
-
viewBox: "0 0 24 24",
|
|
235
|
-
children: /* @__PURE__ */ e(
|
|
236
|
-
"path",
|
|
237
|
-
{
|
|
238
|
-
fill: "currentColor",
|
|
239
|
-
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"
|
|
240
|
-
}
|
|
241
|
-
)
|
|
242
|
-
}
|
|
243
|
-
);
|
|
244
|
-
}
|
|
245
|
-
function g0() {
|
|
246
|
-
return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", children: /* @__PURE__ */ a("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", children: [
|
|
247
|
-
/* @__PURE__ */ e("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" }),
|
|
248
|
-
/* @__PURE__ */ e("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" })
|
|
249
|
-
] }) });
|
|
250
|
-
}
|
|
251
|
-
const k0 = {
|
|
252
|
-
Bold: Z1,
|
|
253
|
-
LoaderCircle: X1,
|
|
254
|
-
Italic: U1,
|
|
255
|
-
Underline: O1,
|
|
256
|
-
Quote: F1,
|
|
257
|
-
TextQuote: J1,
|
|
258
|
-
Strikethrough: D1,
|
|
259
|
-
Minus: b1,
|
|
260
|
-
Eraser: N1,
|
|
261
|
-
PaintRoller: E1,
|
|
262
|
-
Redo2: P1,
|
|
263
|
-
Undo2: R1,
|
|
264
|
-
AlignCenter: H,
|
|
265
|
-
AlignJustify: V,
|
|
266
|
-
AlignLeft: z,
|
|
267
|
-
AlignRight: L,
|
|
268
|
-
ChevronDown: W1,
|
|
269
|
-
Subscript: I1,
|
|
270
|
-
Superscript: T1,
|
|
271
|
-
Code: S1,
|
|
272
|
-
Code2: A1,
|
|
273
|
-
Type: y1,
|
|
274
|
-
IndentIncrease: j1,
|
|
275
|
-
IndentDecrease: B1,
|
|
276
|
-
List: H1,
|
|
277
|
-
ListOrdered: V1,
|
|
278
|
-
ListTodo: z1,
|
|
279
|
-
Link: L1,
|
|
280
|
-
ImageUp: M1,
|
|
281
|
-
Video: k1,
|
|
282
|
-
Maximize: f1,
|
|
283
|
-
Minimize: C1,
|
|
284
|
-
Table: p1,
|
|
285
|
-
Sparkles: x1,
|
|
286
|
-
Pencil: g1,
|
|
287
|
-
Unlink: u1,
|
|
288
|
-
BetweenHorizonalEnd: v1,
|
|
289
|
-
BetweenHorizonalStart: w1,
|
|
290
|
-
BetweenVerticalStart: m1,
|
|
291
|
-
BetweenVerticalEnd: d1,
|
|
292
|
-
TableCellsMerge: s1,
|
|
293
|
-
TableCellsSplit: a1,
|
|
294
|
-
Trash2: h1,
|
|
295
|
-
Trash: c1,
|
|
296
|
-
Replace: u,
|
|
297
|
-
ChevronsUpDown: o1,
|
|
298
|
-
LineHeight: Y1,
|
|
299
|
-
Word: _1,
|
|
300
|
-
Heading1: i1,
|
|
301
|
-
Heading2: l1,
|
|
302
|
-
Heading3: n1,
|
|
303
|
-
Heading4: r1,
|
|
304
|
-
Heading5: t1,
|
|
305
|
-
Heading6: e1,
|
|
306
|
-
Columns2: g,
|
|
307
|
-
Columns3: $,
|
|
308
|
-
Columns4: Y,
|
|
309
|
-
Plus: _,
|
|
310
|
-
Grip: Q,
|
|
311
|
-
Copy: K,
|
|
312
|
-
Clipboard: J,
|
|
313
|
-
PanelLeft: q,
|
|
314
|
-
PanelRight: G,
|
|
315
|
-
Columns: g,
|
|
316
|
-
Iframe: Z,
|
|
317
|
-
MenuDown: $1,
|
|
318
|
-
SizeS: r0,
|
|
319
|
-
SizeM: t0,
|
|
320
|
-
SizeL: e0,
|
|
321
|
-
AspectRatio: q1,
|
|
322
|
-
Emoji: X,
|
|
323
|
-
DeleteColumn: K1,
|
|
324
|
-
DeleteRow: Q1,
|
|
325
|
-
SearchAndReplace: u,
|
|
326
|
-
EmojiIcon: U,
|
|
327
|
-
KatexIcon: O,
|
|
328
|
-
ExportPdf: h0,
|
|
329
|
-
ExportWord: a0,
|
|
330
|
-
ImportWord: u0,
|
|
331
|
-
ColumnAddLeft: l0,
|
|
332
|
-
ColumnAddRight: i0,
|
|
333
|
-
BookMarked: F,
|
|
334
|
-
Excalidraw: c0,
|
|
335
|
-
ZoomIn: D,
|
|
336
|
-
ZoomOut: b,
|
|
337
|
-
Settings: N,
|
|
338
|
-
Eye: E,
|
|
339
|
-
TextDirection: o0,
|
|
340
|
-
LeftToRight: d0,
|
|
341
|
-
RightToLeft: w0,
|
|
342
|
-
Attachment: P,
|
|
343
|
-
GifIcon: s0,
|
|
344
|
-
ChevronUp: R,
|
|
345
|
-
Crop: W,
|
|
346
|
-
Mermaid: m0,
|
|
347
|
-
Twitter: v0,
|
|
348
|
-
CodeView: n0,
|
|
349
|
-
FlipX: I,
|
|
350
|
-
FlipY: T,
|
|
351
|
-
PencilRuler: S,
|
|
352
|
-
WrapText: A,
|
|
353
|
-
Loader: y,
|
|
354
|
-
X: j,
|
|
355
|
-
Html: g0,
|
|
356
|
-
ExternalLink: B
|
|
357
|
-
}, x = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, p = G1, M0 = (t, l) => (r) => {
|
|
358
|
-
var s;
|
|
359
|
-
if ((l == null ? void 0 : l.variants) == null) return p(t, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
360
|
-
const { variants: m, defaultVariants: c } = l, C = Object.keys(m).map((n) => {
|
|
361
|
-
const i = r == null ? void 0 : r[n], h = c == null ? void 0 : c[n];
|
|
362
|
-
if (i === null) return null;
|
|
363
|
-
const o = x(i) || x(h);
|
|
364
|
-
return m[n][o];
|
|
365
|
-
}), w = r && Object.entries(r).reduce((n, i) => {
|
|
366
|
-
let [h, o] = i;
|
|
367
|
-
return o === void 0 || (n[h] = o), n;
|
|
368
|
-
}, {}), f = l == null || (s = l.compoundVariants) === null || s === void 0 ? void 0 : s.reduce((n, i) => {
|
|
369
|
-
let { class: h, className: o, ...k } = i;
|
|
370
|
-
return Object.entries(k).every((M) => {
|
|
371
|
-
let [v, d] = M;
|
|
372
|
-
return Array.isArray(d) ? d.includes({
|
|
373
|
-
...c,
|
|
374
|
-
...w
|
|
375
|
-
}[v]) : {
|
|
376
|
-
...c,
|
|
377
|
-
...w
|
|
378
|
-
}[v] === d;
|
|
379
|
-
}) ? [
|
|
380
|
-
...n,
|
|
381
|
-
h,
|
|
382
|
-
o
|
|
383
|
-
] : n;
|
|
384
|
-
}, []);
|
|
385
|
-
return p(t, C, f, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
386
|
-
};
|
|
387
|
-
export {
|
|
388
|
-
a0 as E,
|
|
389
|
-
$1 as M,
|
|
390
|
-
h0 as a,
|
|
391
|
-
M0 as c,
|
|
392
|
-
k0 as i
|
|
393
|
-
};
|
package/lib/index-CNzHZDls.cjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";const Ce=require("./index-DLqogznp.cjs"),C=require("react/jsx-runtime"),b=require("react"),ne=require("./index-FSRjMsxW.cjs"),se=require("./theme.cjs"),S=require("./events.constant-DQYeJpu5.cjs"),Q="-",Se=e=>{const t=ke(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{const s=i.split(Q);return s[0]===""&&s.length!==1&&s.shift(),ue(s,t)||ze(i)},getConflictingClassGroupIds:(i,s)=>{const c=r[i]||[];return s&&o[i]?[...c,...o[i]]:c}}},ue=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),a=o?ue(e.slice(1),o):void 0;if(a)return a;if(t.validators.length===0)return;const n=e.join(Q);return(i=t.validators.find(({validator:s})=>s(n)))==null?void 0:i.classGroupId},ae=/^\[(.+)\]$/,ze=e=>{if(ae.test(e)){const t=ae.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ke=e=>{const{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Re(Object.entries(e.classGroups),r).forEach(([n,i])=>{B(i,o,n,t)}),o},B=(e,t,r,o)=>{e.forEach(a=>{if(typeof a=="string"){const n=a===""?t:ie(t,a);n.classGroupId=r;return}if(typeof a=="function"){if(Ae(a)){B(a(o),t,r,o);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([n,i])=>{B(i,ie(t,n),r,o)})})},ie=(e,t)=>{let r=e;return t.split(Q).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},Ae=e=>e.isThemeGetter,Re=(e,t)=>t?e.map(([r,o])=>{const a=o.map(n=>typeof n=="string"?t+n:typeof n=="object"?Object.fromEntries(Object.entries(n).map(([i,s])=>[t+i,s])):n);return[r,a]}):e,Me=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map;const a=(n,i)=>{r.set(n,i),t++,t>e&&(t=0,o=r,r=new Map)};return{get(n){let i=r.get(n);if(i!==void 0)return i;if((i=o.get(n))!==void 0)return a(n,i),i},set(n,i){r.has(n)?r.set(n,i):a(n,i)}}},pe="!",Ne=e=>{const{separator:t,experimentalParseClassName:r}=e,o=t.length===1,a=t[0],n=t.length,i=s=>{const c=[];let u=0,p=0,g;for(let x=0;x<s.length;x++){let y=s[x];if(u===0){if(y===a&&(o||s.slice(x,x+n)===t)){c.push(s.slice(p,x)),p=x+n;continue}if(y==="/"){g=x;continue}}y==="["?u++:y==="]"&&u--}const d=c.length===0?s:s.substring(p),h=d.startsWith(pe),v=h?d.substring(1):d,w=g&&g>p?g-p:void 0;return{modifiers:c,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:w}};return r?s=>r({className:s,parseClassName:i}):i},Le=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Te=e=>({cache:Me(e.cacheSize),parseClassName:Ne(e),...Se(e)}),Pe=/\s+/,Ge=(e,t)=>{const{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:a}=t,n=[],i=e.trim().split(Pe);let s="";for(let c=i.length-1;c>=0;c-=1){const u=i[c],{modifiers:p,hasImportantModifier:g,baseClassName:d,maybePostfixModifierPosition:h}=r(u);let v=!!h,w=o(v?d.substring(0,h):d);if(!w){if(!v){s=u+(s.length>0?" "+s:s);continue}if(w=o(d),!w){s=u+(s.length>0?" "+s:s);continue}v=!1}const x=Le(p).join(":"),y=g?x+pe:x,E=y+w;if(n.includes(E))continue;n.push(E);const T=a(w,v);for(let M=0;M<T.length;++M){const j=T[M];n.push(y+j)}s=u+(s.length>0?" "+s:s)}return s};function Ie(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ge(t))&&(o&&(o+=" "),o+=r);return o}const ge=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=ge(e[o]))&&(r&&(r+=" "),r+=t);return r};function je(e,...t){let r,o,a,n=i;function i(c){const u=t.reduce((p,g)=>g(p),e());return r=Te(u),o=r.cache.get,a=r.cache.set,n=s,s(c)}function s(c){const u=o(c);if(u)return u;const p=Ge(c,r);return a(c,p),p}return function(){return n(Ie.apply(null,arguments))}}const f=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},fe=/^\[(?:([a-z-]+):)?(.+)\]$/i,Oe=/^\d+\/\d+$/,$e=new Set(["px","full","screen"]),_e=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Fe=/\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$/,qe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ve=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,We=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,k=e=>N(e)||$e.has(e)||Oe.test(e),A=e=>L(e,"length",Xe),N=e=>!!e&&!Number.isNaN(Number(e)),H=e=>L(e,"number",N),G=e=>!!e&&Number.isInteger(Number(e)),He=e=>e.endsWith("%")&&N(e.slice(0,-1)),l=e=>fe.test(e),R=e=>_e.test(e),Ue=new Set(["length","size","percentage"]),Be=e=>L(e,Ue,be),Je=e=>L(e,"position",be),Qe=new Set(["image","url"]),Ye=e=>L(e,Qe,De),Ke=e=>L(e,"",Ze),I=()=>!0,L=(e,t,r)=>{const o=fe.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},Xe=e=>Fe.test(e)&&!qe.test(e),be=()=>!1,Ze=e=>Ve.test(e),De=e=>We.test(e),et=()=>{const e=f("colors"),t=f("spacing"),r=f("blur"),o=f("brightness"),a=f("borderColor"),n=f("borderRadius"),i=f("borderSpacing"),s=f("borderWidth"),c=f("contrast"),u=f("grayscale"),p=f("hueRotate"),g=f("invert"),d=f("gap"),h=f("gradientColorStops"),v=f("gradientColorStopPositions"),w=f("inset"),x=f("margin"),y=f("opacity"),E=f("padding"),T=f("saturate"),M=f("scale"),j=f("sepia"),X=f("skew"),Z=f("space"),D=f("translate"),F=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",l,t],m=()=>[l,t],ee=()=>["",k,A],O=()=>["auto",N,l],te=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>["start","end","center","between","around","evenly","stretch"],P=()=>["","0",l],oe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[N,l];return{cacheSize:500,separator:":",theme:{colors:[I],spacing:[k,A],blur:["none","",R,l],brightness:z(),borderColor:[e],borderRadius:["none","","full",R,l],borderSpacing:m(),borderWidth:ee(),contrast:z(),grayscale:P(),hueRotate:z(),invert:P(),gap:m(),gradientColorStops:[e],gradientColorStopPositions:[He,A],inset:V(),margin:V(),opacity:z(),padding:m(),saturate:z(),scale:z(),sepia:P(),skew:z(),space:m(),translate:m()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[R]}],"break-after":[{"break-after":oe()}],"break-before":[{"break-before":oe()}],"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:[...te(),l]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",G,l]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:P()}],shrink:[{shrink:P()}],order:[{order:["first","last","none",G,l]}],"grid-cols":[{"grid-cols":[I]}],"col-start-end":[{col:["auto",{span:["full",G,l]},l]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[I]}],"row-start-end":[{row:["auto",{span:[G,l]},l]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...W()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...W(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...W(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[E]}],px:[{px:[E]}],py:[{py:[E]}],ps:[{ps:[E]}],pe:[{pe:[E]}],pt:[{pt:[E]}],pr:[{pr:[E]}],pb:[{pb:[E]}],pl:[{pl:[E]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[Z]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Z]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,t]}],"min-w":[{"min-w":[l,t,"min","max","fit"]}],"max-w":[{"max-w":[l,t,"none","full","min","max","fit","prose",{screen:[R]},R]}],h:[{h:[l,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,t,"auto","min","max","fit"]}],"font-size":[{text:["base",R,A]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",H]}],"font-family":[{font:[I]}],"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",l]}],"line-clamp":[{"line-clamp":["none",N,H]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",k,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",k,A]}],"underline-offset":[{"underline-offset":["auto",k,l]}],"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:m()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],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",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...te(),Je]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Be]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ye]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[n]}],"rounded-s":[{"rounded-s":[n]}],"rounded-e":[{"rounded-e":[n]}],"rounded-t":[{"rounded-t":[n]}],"rounded-r":[{"rounded-r":[n]}],"rounded-b":[{"rounded-b":[n]}],"rounded-l":[{"rounded-l":[n]}],"rounded-ss":[{"rounded-ss":[n]}],"rounded-se":[{"rounded-se":[n]}],"rounded-ee":[{"rounded-ee":[n]}],"rounded-es":[{"rounded-es":[n]}],"rounded-tl":[{"rounded-tl":[n]}],"rounded-tr":[{"rounded-tr":[n]}],"rounded-br":[{"rounded-br":[n]}],"rounded-bl":[{"rounded-bl":[n]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:$()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[k,l]}],"outline-w":[{outline:[k,A]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[k,A]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",R,Ke]}],"shadow-color":[{shadow:[I]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...re(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":re()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",R,l]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[p]}],invert:[{invert:[g]}],saturate:[{saturate:[T]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p]}],"backdrop-invert":[{"backdrop-invert":[g]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[G,l]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[X]}],"skew-y":[{"skew-y":[X]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],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",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":m()}],"scroll-mx":[{"scroll-mx":m()}],"scroll-my":[{"scroll-my":m()}],"scroll-ms":[{"scroll-ms":m()}],"scroll-me":[{"scroll-me":m()}],"scroll-mt":[{"scroll-mt":m()}],"scroll-mr":[{"scroll-mr":m()}],"scroll-mb":[{"scroll-mb":m()}],"scroll-ml":[{"scroll-ml":m()}],"scroll-p":[{"scroll-p":m()}],"scroll-px":[{"scroll-px":m()}],"scroll-py":[{"scroll-py":m()}],"scroll-ps":[{"scroll-ps":m()}],"scroll-pe":[{"scroll-pe":m()}],"scroll-pt":[{"scroll-pt":m()}],"scroll-pr":[{"scroll-pr":m()}],"scroll-pb":[{"scroll-pb":m()}],"scroll-pl":[{"scroll-pl":m()}],"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",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[k,A,H]}],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"]}}},tt=je(et);function rt(...e){return tt(Ce.clsx(e))}const U=typeof window>"u";function le(e,t,r=window){const o=b.useRef(void 0);b.useEffect(()=>{o.current=t},[t]),b.useEffect(()=>{if(!(r&&r.addEventListener))return;const n=i=>{o.current&&o.current(i)};return r.addEventListener(e,n),()=>{r.removeEventListener(e,n)}},[e,r])}function _(e,t,r={}){const{initializeWithValue:o=!0}=r,a=b.useCallback(d=>r.serializer?r.serializer(d):JSON.stringify(d),[r]),n=b.useCallback(d=>{if(r.deserializer)return r.deserializer(d);if(d==="undefined")return;const h=t instanceof Function?t():t;let v;try{v=JSON.parse(d)}catch(w){return console.error("Error parsing JSON:",w),h}return v},[r,t]),i=b.useCallback(()=>{const d=t instanceof Function?t():t;if(U)return d;try{const h=window.localStorage.getItem(e);return h?n(h):d}catch(h){return console.warn(`Error reading localStorage key “${e}”:`,h),d}},[t,e,n]),[s,c]=b.useState(()=>o?i():t instanceof Function?t():t),u=b.useCallback(d=>{U&&console.warn(`Tried setting localStorage key “${e}” even though environment is not a client`);try{const h=d instanceof Function?d(i()):d;window.localStorage.setItem(e,a(h)),c(h),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))}catch(h){console.warn(`Error setting localStorage key “${e}”:`,h)}},[e,a,i]),p=b.useCallback(()=>{U&&console.warn(`Tried removing localStorage key “${e}” even though environment is not a client`);const d=t instanceof Function?t():t;window.localStorage.removeItem(e),c(d),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))},[e,t]);b.useEffect(()=>{c(i())},[e]);const g=b.useCallback(d=>{d.key&&d.key!==e||c(i())},[e,i]);return le("storage",g),le("local-storage",g),[s,u,p]}function Y(e){function t(){const n=b.useRef(e),i=b.useCallback(()=>n.current,[]),s=b.useRef(new Set),c=b.useCallback(p=>{n.current={...n.current,...p},s.current.forEach(g=>g())},[]),u=b.useCallback(p=>(s.current.add(p),()=>s.current.delete(p)),[]);return{get:i,set:c,subscribe:u}}const r=b.createContext(null);function o({children:n}){return C.jsx(r.Provider,{value:t(),children:n})}function a(n){const i=b.useContext(r);if(!i)throw new Error("Store not found");return[b.useSyncExternalStore(i.subscribe,()=>n(i.get()),()=>n(e)),i.set]}return{Provider:o,useStore:a}}Y({value:!1});Y({value:!1});const{Provider:ot,useStore:me}=Y({value:!1});function nt(){const[e]=me(t=>t.value);return e}const ce="data-rc-order",de="data-rc-priority",st="rc-util-key",J=new Map;function at(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}function he({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:st}function K(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function it(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function xe(e){return[...(J.get(e)||e).children].filter(t=>t.tagName==="STYLE")}function we(e,t={}){const{csp:r,prepend:o,priority:a=0}=t,n=it(o),i=n==="prependQueue",s=document.createElement("style");s.setAttribute(ce,n),i&&a&&s.setAttribute(de,`${a}`),r!=null&&r.nonce&&(s.nonce=r==null?void 0:r.nonce),s.innerHTML=e;const c=K(t),{firstChild:u}=c;if(o){if(i){const p=xe(c).filter(g=>{if(!["prepend","prependQueue"].includes(g.getAttribute(ce)))return!1;const d=Number(g.getAttribute(de)||0);return a>=d});if(p.length>0)return c.insertBefore(s,p.at(-1).nextSibling),s}u.before(s)}else c.append(s);return s}function ye(e,t={}){const r=K(t);return xe(r).find(o=>o.getAttribute(he(t))===e)}function ve(e,t={}){const r=ye(e,t);r&&r.remove()}function lt(e,t){const r=J.get(e);if(!r||!at(document,r)){const o=we("",t),{parentNode:a}=o;J.set(e,a),o.remove()}}function Ee(e,t,r={}){var i,s,c;const o=K(r);lt(o,r);const a=ye(t,r);if(a)return(i=r.csp)!=null&&i.nonce&&a.nonce!==((s=r.csp)==null?void 0:s.nonce)&&(a.nonce=(c=r.csp)==null?void 0:c.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const n=we(e,r);return n.setAttribute(he(r),t),n}const ct=b.memo(({editor:e,children:t})=>{const[,r]=me(a=>a.value);b.useEffect(()=>{r({value:e==null?void 0:e.isEditable})},[e==null?void 0:e.isEditable]);const o=()=>{r({value:e==null?void 0:e.isEditable})};return b.useEffect(()=>(e&&e.on("update",o),()=>{e&&e.off("update",o)}),[e]),C.jsx(C.Fragment,{children:t})});function dt(){const[,e]=ne.x(ne.atomLang),t=o=>{e(a=>({...a,currentLang:o.detail}))},r=o=>{const{lang:a,messages:n}=o.detail;e(i=>{if(i.message[a]){const s={...i.message[a],...n};return{currentLang:i.currentLang,message:{...i.message,[a]:s}}}else return{currentLang:i.currentLang,message:{...i.message,[a]:n}}})};return b.useEffect(()=>{const o=S.listenEvent(S.EVENTS.CHANGE_LANGUAGE,t),a=S.listenEvent(S.EVENTS.MODIFY_LANGUAGE,r);return()=>{o(),a()}},[]),C.jsx(C.Fragment,{})}function ut(){const[e,t]=_("richtext-theme","light"),[r,o]=_("richtext-color","default"),[a,n]=_("richtext-border-radius","0.65rem");b.useEffect(()=>{const u=e||"light",p=r||"default";let g=se.THEME[u][p];if(!g){g=se.THEME.light.default;return}return Ee(`
|
|
2
|
-
.reactjs-tiptap-editor, .reactjs-tiptap-editor *,
|
|
3
|
-
div[data-richtext-portal], div[data-richtext-portal] * {
|
|
4
|
-
${Object.entries(g).map(([d,h])=>typeof a=="string"&&d==="radius"?`--${d}: ${a};`:`--${d}: ${h};`).join(`
|
|
5
|
-
`)}
|
|
6
|
-
}
|
|
7
|
-
`,"richtext-theme",{priority:50}),()=>{ve("richtext-theme")}},[e,r,a]);const i=u=>{t(u.detail)},s=u=>{o(u.detail)},c=u=>{n(u.detail)};return b.useEffect(()=>{const u=S.listenEvent(S.EVENTS.CHANGE_THEME,i),p=S.listenEvent(S.EVENTS.CHANGE_COLOR,s),g=S.listenEvent(S.EVENTS.CHANGE_BORDER_RADIUS,c);return()=>{u(),p(),g()}},[]),C.jsx(C.Fragment,{})}function pt({editor:e,children:t,id:r}){return C.jsxs(ot,{children:[C.jsx(ct,{editor:e,id:r,children:t}),C.jsx(dt,{}),C.jsx(ut,{})]})}exports.ProviderUniqueId=pt;exports.cn=rt;exports.removeCSS=ve;exports.updateCSS=Ee;exports.useEditableEditor=nt;exports.useLocalStorage=_;
|