aboutsummaryrefslogtreecommitdiff
path: root/build/assets/js/5128.1c873332.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/assets/js/5128.1c873332.js')
-rw-r--r--build/assets/js/5128.1c873332.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/assets/js/5128.1c873332.js b/build/assets/js/5128.1c873332.js
new file mode 100644
index 00000000..24e6cb83
--- /dev/null
+++ b/build/assets/js/5128.1c873332.js
@@ -0,0 +1,2 @@
+/*! For license information please see 5128.1c873332.js.LICENSE.txt */
+"use strict";(self.webpackChunkdocuments=self.webpackChunkdocuments||[]).push([[5128],{1063:(e,t,r)=>{var n=r(96540);var s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,i=n.useEffect,o=n.useLayoutEffect,l=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!s(e,r)}catch(n){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),s=n[0].inst,d=n[1];return o((function(){s.value=r,s.getSnapshot=t,c(s)&&d({inst:s})}),[e,r,t]),i((function(){return c(s)&&d({inst:s}),e((function(){c(s)&&d({inst:s})}))}),[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:d},19888:(e,t,r)=>{e.exports=r(1063)},28453:(e,t,r)=>{r.d(t,{R:()=>i,x:()=>o});var n=r(96540);const s={},a=n.createContext(s);function i(e){const t=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),n.createElement(a.Provider,{value:t},e.children)}},74020:(e,t,r)=>{r.d(t,{Y:()=>nr});var n=r(74848),s=r(34164);const a="root_D3qd",i="article_kRZ8",o=({className:e,children:t})=>(0,n.jsx)("div",{className:(0,s.A)("react-tweet-theme",a,e),children:(0,n.jsx)("article",{className:i,children:t})}),l="skeleton_FMR8",c=({style:e})=>(0,n.jsx)("span",{className:l,style:e}),d="root_Y6tr",u=()=>(0,n.jsxs)(o,{className:d,children:[(0,n.jsx)(c,{style:{height:"3rem",marginBottom:"0.75rem"}}),(0,n.jsx)(c,{style:{height:"6rem",margin:"0.5rem 0"}}),(0,n.jsx)("div",{style:{borderTop:"var(--tweet-border)",margin:"0.5rem 0"}}),(0,n.jsx)(c,{style:{height:"2rem"}}),(0,n.jsx)(c,{style:{height:"2rem",borderRadius:"9999px",marginTop:"0.5rem"}})]}),h="root_tqpQ",f=e=>(0,n.jsx)(o,{children:(0,n.jsxs)("div",{className:h,children:[(0,n.jsx)("h3",{children:"Tweet not found"}),(0,n.jsx)("p",{children:"The embedded tweet could not be found\u2026"})]})}),m=e=>(0,n.jsx)("img",{...e}),p="header_bjW0",_="avatar_OLqR",x="avatarOverflow_eJmC",v="avatarSquare_iXbn",g="avatarShadow_wzyg",w="author_QZ2S",j="authorLink_cyQp",y="authorVerified_rVnZ",b="authorLinkText_teDJ",N="authorMeta_qxsC",k="authorFollow_fxrM",S="username_qz1H",T="follow_seIc",L="separator_rJ9Q",O="brand_iwzK",R="twitterIcon__mAg",E="verified_XaUV",C=()=>(0,n.jsx)("svg",{viewBox:"0 0 24 24","aria-label":"Verified account",role:"img",className:E,children:(0,n.jsx)("g",{children:(0,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"})})}),I=()=>(0,n.jsx)("svg",{viewBox:"0 0 22 22","aria-label":"Verified account",role:"img",className:E,children:(0,n.jsx)("g",{children:(0,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"})})}),M=()=>(0,n.jsx)("svg",{viewBox:"0 0 22 22","aria-label":"Verified account",role:"img",className:E,children:(0,n.jsxs)("g",{children:[(0,n.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:"0-a",x1:"4.411",x2:"18.083",y1:"2.495",y2:"21.508",children:[(0,n.jsx)("stop",{offset:"0",stopColor:"#f4e72a"}),(0,n.jsx)("stop",{offset:".539",stopColor:"#cd8105"}),(0,n.jsx)("stop",{offset:".68",stopColor:"#cb7b00"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#f4ec26"}),(0,n.jsx)("stop",{offset:"1",stopColor:"#f4e72a"})]}),(0,n.jsxs)("linearGradient",{gradientUnits:"userSpaceOnUse",id:"0-b",x1:"5.355",x2:"16.361",y1:"3.395",y2:"19.133",children:[(0,n.jsx)("stop",{offset:"0",stopColor:"#f9e87f"}),(0,n.jsx)("stop",{offset:".406",stopColor:"#e2b719"}),(0,n.jsx)("stop",{offset:".989",stopColor:"#e2b719"})]}),(0,n.jsxs)("g",{clipRule:"evenodd",fillRule:"evenodd",children:[(0,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)"}),(0,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)"}),(0,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"})]})]})}),$="verifiedOld_dr_7",z="verifiedBlue_d5Yb",V="verifiedGovernment_REEv",q=({user:e,className:t})=>{const r=e.verified||e.is_blue_verified||e.verified_type;let a=(0,n.jsx)(C,{}),i=z;if(r)switch(e.is_blue_verified||(i=$),e.verified_type){case"Government":a=(0,n.jsx)(I,{}),i=V;break;case"Business":a=(0,n.jsx)(M,{}),i=null}return r?(0,n.jsx)("div",{className:(0,s.A)(t,i),children:a}):null},D=({tweet:e,components:t})=>{var r;const a=null!=(r=null==t?void 0:t.AvatarImg)?r:m,{user:i}=e;return(0,n.jsxs)("div",{className:p,children:[(0,n.jsxs)("a",{href:e.url,className:_,target:"_blank",rel:"noopener noreferrer",children:[(0,n.jsx)("div",{className:(0,s.A)(x,"Square"===i.profile_image_shape&&v),children:(0,n.jsx)(a,{src:i.profile_image_url_https,alt:i.name,width:48,height:48})}),(0,n.jsx)("div",{className:x,children:(0,n.jsx)("div",{className:g})})]}),(0,n.jsxs)("div",{className:w,children:[(0,n.jsxs)("a",{href:e.url,className:j,target:"_blank",rel:"noopener noreferrer",children:[(0,n.jsx)("div",{className:b,children:(0,n.jsx)("span",{title:i.name,children:i.name})}),(0,n.jsx)(q,{user:i,className:y})]}),(0,n.jsxs)("div",{className:N,children:[(0,n.jsx)("a",{href:e.url,className:S,target:"_blank",rel:"noopener noreferrer",children:(0,n.jsxs)("span",{title:`@${i.screen_name}`,children:["@",i.screen_name]})}),(0,n.jsxs)("div",{className:k,children:[(0,n.jsx)("span",{className:L,children:"\xb7"}),(0,n.jsx)("a",{href:i.follow_url,className:T,target:"_blank",rel:"noopener noreferrer",children:"Follow"})]})]})]}),(0,n.jsx)("a",{href:e.url,className:O,target:"_blank",rel:"noopener noreferrer","aria-label":"View on Twitter",children:(0,n.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:R,children:(0,n.jsx)("g",{children:(0,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"})})})})]})},P="root_iMnh",A=({tweet:e})=>(0,n.jsxs)("a",{href:e.in_reply_to_url,className:P,target:"_blank",rel:"noopener noreferrer",children:["Replying to @",e.in_reply_to_screen_name]}),F="root_zgtB",B=({href:e,children:t})=>(0,n.jsx)("a",{href:e,className:F,target:"_blank",rel:"noopener noreferrer nofollow",children:t}),W="root_z3Ec",U=({tweet:e})=>(0,n.jsx)("p",{className:W,children:e.entities.map(((e,t)=>{switch(e.type){case"hashtag":case"mention":case"url":case"symbol":return(0,n.jsx)(B,{href:e.href,children:e.text},t);case"media":return;default:return(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:e.text}},t)}}))});var X=r(96540);const H=e=>`https://twitter.com/${e.user.screen_name}/status/${e.id_str}`,J=e=>`https://twitter.com/${"string"==typeof e?e:e.user.screen_name}`,Y=e=>`https://twitter.com/intent/like?tweet_id=${e.id_str}`,K=e=>`https://twitter.com/intent/tweet?in_reply_to=${e.id_str}`,Z=e=>`https://twitter.com/intent/follow?screen_name=${e.user.screen_name}`,G=e=>`https://twitter.com/${e.in_reply_to_screen_name}/status/${e.in_reply_to_status_id_str}`,Q=(e,t)=>{const r=new URL(e.media_url_https),n=r.pathname.split(".").pop();return n?(r.pathname=r.pathname.replace(`.${n}`,""),r.searchParams.set("format",n),r.searchParams.set("name",t),r.toString()):e.media_url_https},ee=e=>e>999999?`${(e/1e6).toFixed(1)}M`:e>999?`${(e/1e3).toFixed(1)}K`:e.toString();function te(e){const t=Array.from(e.text),r=[{indices:e.display_text_range,type:"text"}];return re(r,"hashtag",e.entities.hashtags),re(r,"mention",e.entities.user_mentions),re(r,"url",e.entities.urls),re(r,"symbol",e.entities.symbols),e.entities.media&&re(r,"media",e.entities.media),function(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])}(e,r),r.map((e=>{const r=t.slice(e.indices[0],e.indices[1]).join("");switch(e.type){case"hashtag":return Object.assign(e,{href:(s=e,`https://twitter.com/hashtag/${s.text}`),text:r});case"mention":return Object.assign(e,{href:J(e.screen_name),text:r});case"url":case"media":return Object.assign(e,{href:e.expanded_url,text:e.display_url});case"symbol":return Object.assign(e,{href:(n=e,`https://twitter.com/search?q=%24${n.text}`),text:r});default:return Object.assign(e,{text:r})}var n,s}))}function re(e,t,r){for(const n of r)for(const[r,s]of e.entries()){if(s.indices[0]>n.indices[0]||s.indices[1]<n.indices[1])continue;const a=[{...n,type:t}];s.indices[0]<n.indices[0]&&a.unshift({indices:[s.indices[0],n.indices[0]],type:"text"}),s.indices[1]>n.indices[1]&&a.push({indices:[n.indices[1],s.indices[1]],type:"text"}),e.splice(r,1,...a);break}}const ne="root__sIp",se="rounded_dKug",ae="mediaWrapper_T0we",ie="grid2Columns_YryS",oe="grid3_GBAC",le="grid2x2__RM2",ce="mediaContainer_pdV5",de="mediaLink_tILL",ue="skeleton_kXyX",he="image_kWlZ",fe="anchor_O_ID",me="videoButton_zM5T",pe="videoButtonIcon_ShP3",_e="watchOnTwitter_al_H",xe="viewReplies_OPYE",ve=({tweet:e,media:t})=>{const[r,a]=(0,X.useState)(!0),[i,o]=(0,X.useState)(!1),[l,c]=(0,X.useState)(!1),d=(e=>{const t=(e=>{const{variants:t}=e.video_info;return t.filter((e=>"video/mp4"===e.content_type)).sort(((e,t)=>{var r,n;return(null!=(r=t.bitrate)?r:0)-(null!=(n=e.bitrate)?n:0)}))})(e);return t.length>1?t[1]:t[0]})(t);let u=0;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("video",{className:he,poster:Q(t,"small"),controls:!r,muted:!0,preload:"none",tabIndex:r?-1:0,onPlay:()=>{u&&window.clearTimeout(u),i||o(!0),l&&c(!1)},onPause:()=>{u&&window.clearTimeout(u),u=window.setTimeout((()=>{i&&o(!1),u=0}),100)},onEnded:()=>{c(!0)},children:(0,n.jsx)("source",{src:d.url,type:d.content_type})}),r&&(0,n.jsx)("button",{type:"button",className:me,"aria-label":"View video on X",onClick:e=>{const t=e.currentTarget.previousSibling;e.preventDefault(),a(!1),o(!0),t.play(),t.focus()},children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",className:pe,"aria-hidden":"true",children:(0,n.jsx)("g",{children:(0,n.jsx)("path",{d:"M21 12L4 2v20l17-10z"})})})}),!i&&!l&&(0,n.jsx)("div",{className:_e,children:(0,n.jsx)("a",{href:e.url,className:fe,target:"_blank",rel:"noopener noreferrer",children:r?"Watch on X":"Continue watching on X"})}),l&&(0,n.jsx)("a",{href:e.url,className:(0,s.A)(fe,xe),target:"_blank",rel:"noopener noreferrer",children:"View replies"})]})},ge=e=>(0,n.jsx)("img",{...e}),we=(e,t)=>{let r=56.25;return 1===t&&(r=100/e.original_info.width*e.original_info.height),2===t&&(r*=2),{width:"photo"===e.type?void 0:"unset",paddingBottom:`${r}%`}},je=({tweet:e,components:t,quoted:r})=>{var a,i,o;const l=null!=(o=null==(a=e.mediaDetails)?void 0:a.length)?o:0;var c;const d=null!=(c=null==t?void 0:t.MediaImg)?c:ge;return(0,n.jsx)("div",{className:(0,s.A)(ne,!r&&se),children:(0,n.jsx)("div",{className:(0,s.A)(ae,l>1&&ie,3===l&&oe,l>4&&le),children:null==(i=e.mediaDetails)?void 0:i.map((t=>(0,n.jsx)(X.Fragment,{children:"photo"===t.type?(0,n.jsxs)("a",{href:e.url,className:(0,s.A)(ce,de),target:"_blank",rel:"noopener noreferrer",children:[(0,n.jsx)("div",{className:ue,style:we(t,l)}),(0,n.jsx)(d,{src:Q(t,"small"),alt:t.ext_alt_text||"Image",className:he,draggable:!0})]},t.media_url_https):(0,n.jsxs)("div",{className:ce,children:[(0,n.jsx)("div",{className:ue,style:we(t,l)}),(0,n.jsx)(ve,{tweet:e,media:t})]},t.media_url_https)},t.media_url_https)))})})},ye=new Intl.DateTimeFormat("en-US",{hour:"numeric",minute:"2-digit",hour12:!0,weekday:"short",month:"short",day:"numeric",year:"numeric"}),be="root_FOba",Ne=({tweet:e})=>{const t=new Date(e.created_at),r=(e=>{const t=(e=>{const t={};for(const r of e)t[r.type]=r.value;return t})(ye.formatToParts(e));return`${t.hour}:${t.minute} ${t.dayPeriod} \xb7 ${t.month} ${t.day}, ${t.year}`})(t);return(0,n.jsx)("a",{className:be,href:e.url,target:"_blank",rel:"noopener noreferrer","aria-label":r,children:(0,n.jsx)("time",{dateTime:t.toISOString(),children:r})})},ke="info_Kyz8",Se="infoLink_coB3",Te="infoIcon_vXUt",Le=({tweet:e})=>(0,n.jsxs)("div",{className:ke,children:[(0,n.jsx)(Ne,{tweet:e}),(0,n.jsx)("a",{className:Se,href:"https://help.twitter.com/en/twitter-for-websites-ads-info-and-privacy",target:"_blank",rel:"noopener noreferrer","aria-label":"Twitter for Websites, Ads Information and Privacy",children:(0,n.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:Te,children:(0,n.jsx)("g",{children:(0,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"})})})})]}),Oe="actions_jOEJ",Re="like_AZSs",Ee="reply_PYbJ",Ce="copy_npTP",Ie="likeIconWrapper_KHFx",Me="likeCount_b04X",$e="replyIconWrapper_jCup",ze="copyIconWrapper_oEVy",Ve="likeIcon_gbwt",qe="replyIcon_ipa5",De="copyIcon_IhOq",Pe="replyText_jXTI",Ae="copyText_vRl0",Fe=({tweet:e})=>{const[t,r]=(0,X.useState)(!1),[s,a]=(0,X.useState)(!1);return(0,X.useEffect)((()=>{if(t){const e=setTimeout((()=>{r(!1),a(!0)}),6e3);return()=>clearTimeout(e)}}),[t]),(0,n.jsxs)("button",{type:"button",className:Ce,"aria-label":"Copy link",onClick:()=>{navigator.clipboard.writeText(e.url),r(!0)},children:[(0,n.jsx)("div",{className:ze,children:t?(0,n.jsx)("svg",{viewBox:"0 0 24 24",className:De,"aria-hidden":"true",children:(0,n.jsx)("g",{children:(0,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"})})}):(0,n.jsx)("svg",{viewBox:"0 0 24 24",className:De,"aria-hidden":"true",children:(0,n.jsx)("g",{children:(0,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"})})})}),(0,n.jsx)("span",{className:Ae,children:t?"Copied!":s?"Copy link to Tweet":"Copy link"})]})},Be=({tweet:e})=>{const t=ee(e.favorite_count);return(0,n.jsxs)("div",{className:Oe,children:[(0,n.jsxs)("a",{className:Re,href:e.like_url,target:"_blank",rel:"noopener noreferrer","aria-label":`Like. This Tweet has ${t} likes`,children:[(0,n.jsx)("div",{className:Ie,children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",className:Ve,"aria-hidden":"true",children:(0,n.jsx)("g",{children:(0,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"})})})}),(0,n.jsx)("span",{className:Me,children:t})]}),(0,n.jsxs)("a",{className:Ee,href:e.reply_url,target:"_blank",rel:"noopener noreferrer","aria-label":"Reply to this Tweet on Twitter",children:[(0,n.jsx)("div",{className:$e,children:(0,n.jsx)("svg",{viewBox:"0 0 24 24",className:qe,"aria-hidden":"true",children:(0,n.jsx)("g",{children:(0,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"})})})}),(0,n.jsx)("span",{className:Pe,children:"Reply"})]}),(0,n.jsx)(Fe,{tweet:e})]})},We="replies_enWO",Ue="link_cCIX",Xe="text_Zp5K",He=({tweet:e})=>(0,n.jsx)("div",{className:We,children:(0,n.jsx)("a",{className:Ue,href:e.url,target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)("span",{className:Xe,children:0===e.conversation_count?"Read more on X":1===e.conversation_count?`Read ${ee(e.conversation_count)} reply`:`Read ${ee(e.conversation_count)} replies`})})}),Je="root_IExM",Ye="article_pepT",Ke=({tweet:e,children:t})=>(0,n.jsx)("div",{className:Je,onClick:t=>{t.preventDefault(),window.open(e.url,"_blank")},children:(0,n.jsx)("article",{className:Ye,children:t})}),Ze={header:"header_RYYj",avatar:"avatar_K4HU",avatarSquare:"avatarSquare_Zzxq",author:"author_jsWI",authorText:"authorText_dUjv",username:"username_Jiht"},Ge=({tweet:e})=>{const{user:t}=e;return(0,n.jsxs)("div",{className:Ze.header,children:[(0,n.jsx)("a",{href:e.url,className:Ze.avatar,target:"_blank",rel:"noopener noreferrer",children:(0,n.jsx)("div",{className:(0,s.A)(Ze.avatarOverflow,"Square"===t.profile_image_shape&&Ze.avatarSquare),children:(0,n.jsx)(m,{src:t.profile_image_url_https,alt:t.name,width:20,height:20})})}),(0,n.jsxs)("div",{className:Ze.author,children:[(0,n.jsx)("div",{className:Ze.authorText,children:(0,n.jsx)("span",{title:t.name,children:t.name})}),(0,n.jsx)(q,{user:t}),(0,n.jsx)("div",{className:Ze.username,children:(0,n.jsxs)("span",{title:`@${t.screen_name}`,children:["@",t.screen_name]})})]})]})},Qe="root_sTw3",et=({tweet:e})=>(0,n.jsx)("p",{className:Qe,children:e.entities.map(((e,t)=>(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:e.text}},t)))}),tt=({tweet:e})=>{var t;return(0,n.jsxs)(Ke,{tweet:e,children:[(0,n.jsx)(Ge,{tweet:e}),(0,n.jsx)(et,{tweet:e}),(null==(t=e.mediaDetails)?void 0:t.length)?(0,n.jsx)(je,{quoted:!0,tweet:e}):null]})},rt=({tweet:e,components:t})=>{var r;const s=(0,X.useMemo)((()=>(e=>({...e,url:H(e),user:{...e.user,url:J(e),follow_url:Z(e)},like_url:Y(e),reply_url:K(e),in_reply_to_url:e.in_reply_to_screen_name?G(e):void 0,entities:te(e),quoted_tweet:e.quoted_tweet?{...e.quoted_tweet,url:H(e.quoted_tweet),entities:te(e.quoted_tweet)}:void 0}))(e)),[e]);return(0,n.jsxs)(o,{children:[(0,n.jsx)(D,{tweet:s,components:t}),s.in_reply_to_status_id_str&&(0,n.jsx)(A,{tweet:s}),(0,n.jsx)(U,{tweet:s}),(null==(r=s.mediaDetails)?void 0:r.length)?(0,n.jsx)(je,{tweet:s,components:t}):null,s.quoted_tweet&&(0,n.jsx)(tt,{tweet:s.quoted_tweet}),(0,n.jsx)(Le,{tweet:s}),(0,n.jsx)(Be,{tweet:s}),(0,n.jsx)(He,{tweet:s})]})};var nt=r(19888);const st=()=>{},at=st(),it=Object,ot=e=>e===at,lt=e=>"function"==typeof e,ct=(e,t)=>({...e,...t}),dt=new WeakMap;let ut=0;const ht=e=>{const t=typeof e,r=e&&e.constructor,n=r==Date;let s,a;if(it(e)!==e||n||r==RegExp)s=n?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(s=dt.get(e),s)return s;if(s=++ut+"~",dt.set(e,s),r==Array){for(s="@",a=0;a<e.length;a++)s+=ht(e[a])+",";dt.set(e,s)}if(r==it){s="#";const t=it.keys(e).sort();for(;!ot(a=t.pop());)ot(e[a])||(s+=a+":"+ht(e[a])+",");dt.set(e,s)}}return s},ft=new WeakMap,mt={},pt={},_t="undefined",xt=typeof window!=_t,vt=typeof document!=_t,gt=(e,t)=>{const r=ft.get(e);return[()=>!ot(t)&&e.get(t)||mt,n=>{if(!ot(t)){const s=e.get(t);t in pt||(pt[t]=s),r[5](t,ct(s,n),s||mt)}},r[6],()=>!ot(t)&&t in pt?pt[t]:!ot(t)&&e.get(t)||mt]};let wt=!0;const[jt,yt]=xt&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[st,st],bt={isOnline:()=>wt,isVisible:()=>{const e=vt&&document.visibilityState;return ot(e)||"hidden"!==e}},Nt={initFocus:e=>(vt&&document.addEventListener("visibilitychange",e),jt("focus",e),()=>{vt&&document.removeEventListener("visibilitychange",e),yt("focus",e)}),initReconnect:e=>{const t=()=>{wt=!0,e()},r=()=>{wt=!1};return jt("online",t),jt("offline",r),()=>{yt("online",t),yt("offline",r)}}},kt=!X.useId,St=!xt||"Deno"in window,Tt=e=>xt&&typeof window.requestAnimationFrame!=_t?window.requestAnimationFrame(e):setTimeout(e,1),Lt=St?X.useEffect:X.useLayoutEffect,Ot="undefined"!=typeof navigator&&navigator.connection,Rt=!St&&Ot&&(["slow-2g","2g"].includes(Ot.effectiveType)||Ot.saveData),Et=e=>{if(lt(e))try{e=e()}catch(r){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?ht(e):"",t]};let Ct=0;const It=()=>++Ct;var Mt=3,$t=0,zt=2,Vt=1;async function qt(...e){const[t,r,n,s]=e,a=ct({populateCache:!0,throwOnError:!0},"boolean"==typeof s?{revalidate:s}:s||{});let i=a.populateCache;const o=a.rollbackOnError;let l=a.optimisticData;const c=a.throwOnError;if(lt(r)){const e=r,n=[],s=t.keys();for(const r of s)!/^\$(inf|sub)\$/.test(r)&&e(t.get(r)._k)&&n.push(r);return Promise.all(n.map(d))}return d(r);async function d(r){const[s]=Et(r);if(!s)return;const[d,u]=gt(t,s),[h,f,m,p]=ft.get(t),_=()=>{const e=h[s];return(lt(a.revalidate)?a.revalidate(d().data,r):!1!==a.revalidate)&&(delete m[s],delete p[s],e&&e[0])?e[0](2).then((()=>d().data)):d().data};if(e.length<3)return _();let x,v=n;const g=It();f[s]=[g,0];const w=!ot(l),j=d(),y=j.data,b=j._c,N=ot(b)?y:b;if(w&&(l=lt(l)?l(N,y):l,u({data:l,_c:N})),lt(v))try{v=v(N)}catch(k){x=k}if(v&&lt(v.then)){if(v=await v.catch((e=>{x=e})),g!==f[s][0]){if(x)throw x;return v}x&&w&&(e=>"function"==typeof o?o(e):!1!==o)(x)&&(i=!0,u({data:N,_c:at}))}if(i&&!x)if(lt(i)){const e=i(v,N);u({data:e,error:at,_c:at})}else u({data:v,error:at,_c:at});if(f[s][1]=It(),Promise.resolve(_()).then((()=>{u({_c:at})})),!x)return v;if(c)throw x}}const Dt=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},Pt=(e,t)=>{if(!ft.has(e)){const r=ct(Nt,t),n={},s=qt.bind(at,e);let a=st;const i={},o=(e,t)=>{const r=i[e]||[];return i[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},l=(t,r,n)=>{e.set(t,r);const s=i[t];if(s)for(const e of s)e(r,n)},c=()=>{if(!ft.has(e)&&(ft.set(e,[n,{},{},{},s,l,o]),!St)){const t=r.initFocus(setTimeout.bind(at,Dt.bind(at,n,0))),s=r.initReconnect(setTimeout.bind(at,Dt.bind(at,n,1)));a=()=>{t&&t(),s&&s(),ft.delete(e)}}};return c(),[e,s,c,a]}return[e,ft.get(e)[4]]},[At,Ft]=Pt(new Map),Bt=ct({onLoadingSlow:st,onSuccess:st,onError:st,onErrorRetry:(e,t,r,n,s)=>{const a=r.errorRetryCount,i=s.retryCount,o=~~((Math.random()+.5)*(1<<(i<8?i:8)))*r.errorRetryInterval;!ot(a)&&i>a||setTimeout(n,o,s)},onDiscarded:st,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Rt?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Rt?5e3:3e3,compare:(e,t)=>ht(e)==ht(t),isPaused:()=>!1,cache:At,mutate:Ft,fallback:{}},bt),Wt=(e,t)=>{const r=ct(e,t);if(t){const{use:n,fallback:s}=e,{use:a,fallback:i}=t;n&&a&&(r.use=n.concat(a)),s&&i&&(r.fallback=ct(s,i))}return r},Ut=(0,X.createContext)({}),Xt=xt&&window.__SWR_DEVTOOLS_USE__,Ht=Xt?window.__SWR_DEVTOOLS_USE__:[],Jt=e=>lt(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Yt=Ht.concat((e=>(t,r,n)=>e(t,r&&((...e)=>{const[n]=Et(t),[,,,s]=ft.get(At);if(n.startsWith("$inf$"))return r(...e);const a=s[n];return ot(a)?r(...e):(delete s[n],a)}),n)));Xt&&(window.__SWR_DEVTOOLS_REACT__=X);const Kt=X.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),Zt={dedupe:!0},Gt=(it.defineProperty((e=>{const{value:t}=e,r=(0,X.useContext)(Ut),n=lt(t),s=(0,X.useMemo)((()=>n?t(r):t),[n,r,t]),a=(0,X.useMemo)((()=>n?s:Wt(r,s)),[n,r,s]),i=s&&s.provider,o=(0,X.useRef)(at);i&&!o.current&&(o.current=Pt(i(a.cache||At),s));const l=o.current;return l&&(a.cache=l[0],a.mutate=l[1]),Lt((()=>{if(l)return l[2]&&l[2](),l[3]}),[]),(0,X.createElement)(Ut.Provider,ct(e,{value:a}))}),"defaultValue",{value:Bt}),Qt=(e,t,r)=>{const{cache:n,compare:s,suspense:a,fallbackData:i,revalidateOnMount:o,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:d,refreshWhenOffline:u,keepPreviousData:h}=r,[f,m,p,_]=ft.get(n),[x,v]=Et(e),g=(0,X.useRef)(!1),w=(0,X.useRef)(!1),j=(0,X.useRef)(x),y=(0,X.useRef)(t),b=(0,X.useRef)(r),N=()=>b.current,k=()=>N().isVisible()&&N().isOnline(),[S,T,L,O]=gt(n,x),R=(0,X.useRef)({}).current,E=ot(i)?r.fallback[x]:i,C=(e,t)=>{for(const r in R){const n=r;if("data"===n){if(!s(e[n],t[n])){if(!ot(e[n]))return!1;if(!s(A,t[n]))return!1}}else if(t[n]!==e[n])return!1}return!0},I=(0,X.useMemo)((()=>{const e=!!x&&!!t&&(ot(o)?!N().isPaused()&&!a&&(!!ot(l)||l):o),r=t=>{const r=ct(t);return delete r._k,e?{isValidating:!0,isLoading:!0,...r}:r},n=S(),s=O(),i=r(n),c=n===s?i:r(s);let d=i;return[()=>{const e=r(S());return C(e,d)?(d.data=e.data,d.isLoading=e.isLoading,d.isValidating=e.isValidating,d.error=e.error,d):(d=e,e)},()=>c]}),[n,x]),M=(0,nt.useSyncExternalStore)((0,X.useCallback)((e=>L(x,((t,r)=>{C(r,t)||e()}))),[n,x]),I[0],I[1]),$=!g.current,z=f[x]&&f[x].length>0,V=M.data,q=ot(V)?E:V,D=M.error,P=(0,X.useRef)(q),A=h?ot(V)?P.current:V:q,F=!(z&&!ot(D))&&($&&!ot(o)?o:!N().isPaused()&&(a?!ot(q)&&l:ot(q)||l)),B=!!(x&&t&&$&&F),W=ot(M.isValidating)?B:M.isValidating,U=ot(M.isLoading)?B:M.isLoading,H=(0,X.useCallback)((async e=>{const t=y.current;if(!x||!t||w.current||N().isPaused())return!1;let n,a,i=!0;const o=e||{},l=!p[x]||!o.dedupe,c=()=>kt?!w.current&&x===j.current&&g.current:x===j.current,d={isValidating:!1,isLoading:!1},u=()=>{T(d)},h=()=>{const e=p[x];e&&e[1]===a&&delete p[x]},_={isValidating:!0};ot(S().data)&&(_.isLoading=!0);try{if(l&&(T(_),r.loadingTimeout&&ot(S().data)&&setTimeout((()=>{i&&c()&&N().onLoadingSlow(x,r)}),r.loadingTimeout),p[x]=[t(v),It()]),[n,a]=p[x],n=await n,l&&setTimeout(h,r.dedupingInterval),!p[x]||p[x][1]!==a)return l&&c()&&N().onDiscarded(x),!1;d.error=at;const e=m[x];if(!ot(e)&&(a<=e[0]||a<=e[1]||0===e[1]))return u(),l&&c()&&N().onDiscarded(x),!1;const o=S().data;d.data=s(o,n)?o:n,l&&c()&&N().onSuccess(n,x,r)}catch(b){h();const e=N(),{shouldRetryOnError:t}=e;e.isPaused()||(d.error=b,l&&c()&&(e.onError(b,x,e),(!0===t||lt(t)&&t(b))&&(N().revalidateOnFocus&&N().revalidateOnReconnect&&!k()||e.onErrorRetry(b,x,e,(e=>{const t=f[x];t&&t[0]&&t[0](Mt,e)}),{retryCount:(o.retryCount||0)+1,dedupe:!0}))))}return i=!1,u(),!0}),[x,n]),J=(0,X.useCallback)(((...e)=>qt(n,j.current,...e)),[]);if(Lt((()=>{y.current=t,b.current=r,ot(V)||(P.current=V)})),Lt((()=>{if(!x)return;const e=H.bind(at,Zt);let t=0;const r=((e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}})(x,f,((r,n={})=>{if(r==$t){const r=Date.now();N().revalidateOnFocus&&r>t&&k()&&(t=r+N().focusThrottleInterval,e())}else if(r==Vt)N().revalidateOnReconnect&&k()&&e();else{if(r==zt)return H();if(r==Mt)return H(n)}}));return w.current=!1,j.current=x,g.current=!0,T({_k:v}),F&&(ot(q)||St?e():Tt(e)),()=>{w.current=!0,r()}}),[x]),Lt((()=>{let e;function t(){const t=lt(c)?c(S().data):c;t&&-1!==e&&(e=setTimeout(r,t))}function r(){S().error||!d&&!N().isVisible()||!u&&!N().isOnline()?t():H(Zt).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[c,d,u,x]),(0,X.useDebugValue)(A),a&&ot(q)&&x){if(!kt&&St)throw new Error("Fallback data is required when using suspense in SSR.");y.current=t,b.current=r,w.current=!1;const e=_[x];if(!ot(e)){const t=J(e);Kt(t)}if(!ot(D))throw D;{const e=H(Zt);ot(A)||(e.status="fulfilled",e.value=!0),Kt(e)}}return{mutate:J,get data(){return R.data=!0,A},get error(){return R.error=!0,D},get isValidating(){return R.isValidating=!0,W},get isLoading(){return R.isLoading=!0,U}}},function(...e){const t=ct(Bt,(0,X.useContext)(Ut)),[r,n,s]=Jt(e),a=Wt(t,s);let i=Qt;const{use:o}=a,l=(o||[]).concat(Yt);for(let c=l.length;c--;)i=l[c](i);return i(r,n||a.fetcher||null,a)});var Qt;class er extends Error{constructor({message:e,status:t,data:r}){super(e),this.name="TwitterApiError",this.status=t,this.data=r}}const tr=Gt.default||Gt;async function rr([e,t]){const r=await fetch(e,t),n=await r.json();if(r.ok)return n.data||null;throw new er({message:`Failed to fetch tweet at "${e}" with "${r.status}".`,data:n,status:r.status})}const nr=({id:e,apiUrl:t,fallback:r=(0,n.jsx)(u,{}),components:s,fetchOptions:a,onError:i})=>{const{data:o,error:l,isLoading:c}=((e,t,r)=>{const{isLoading:n,data:s,error:a}=tr((()=>t||e?[t||e&&`https://react-tweet.vercel.app/api/tweet/${e}`,r]:null),rr,{revalidateIfStale:!1,revalidateOnFocus:!1,shouldRetryOnError:!1});return{isLoading:Boolean(n||void 0===s&&!a),data:s,error:a}})(e,t,a);if(c)return r;if(l||!o){const e=(null==s?void 0:s.TweetNotFound)||f;return(0,n.jsx)(e,{error:i?i(l):l})}return(0,n.jsx)(rt,{tweet:o,components:s})}}}]); \ No newline at end of file