phanpy-cz/assets/fuse-MwQ_F2cO.js

182 lines
189 KiB
JavaScript
Raw Permalink Normal View History

import{ab as lt,Q as Ne,c as r,h as Y,r as Ce,A as $,_ as gn,y as ee,ac as ya,E as fr,i as S,ad as I,ae as ba,af as ro,ag as Ta,j as le,P as Pt,p as zi,ah as wa,ai as Vi,O as Hi,k as N,x as ut,V as Ke,o as Ea,s as B,aj as xa,f as mo,a as io,z as vn,B as Sa,T as D,ak as Bi,al as ka,am as Ui,q as hr,v as ji,g as pr,an as Ia,ao as De,ap as Aa,aq as Ca,ar as Bn,J as st,u as xn,d as Gr,b as ht,W as Wi,as as Pa,at as La,au as Ma}from"./useTitle-SRT6j-GL.js";import{e as Ra}from"./tinyld-light-PxOyhYWY.js";function qo(){return qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},qo.apply(this,arguments)}var Ki=["shift","alt","meta","mod","ctrl"],Oa={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function mt(e){return(Oa[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function Da(e){return Ki.includes(e)}function ko(e,t){return t===void 0&&(t=","),e.split(t)}function Io(e,t,n){t===void 0&&(t="+");var o=e.toLocaleLowerCase().split(t).map(function(a){return mt(a)}),i={alt:o.includes("alt"),ctrl:o.includes("ctrl")||o.includes("control"),shift:o.includes("shift"),meta:o.includes("meta"),mod:o.includes("mod")},s=o.filter(function(a){return!Ki.includes(a)});return qo({},i,{keys:s,description:n})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&Zi([mt(e.key),mt(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&qi([mt(e.key),mt(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){gt.clear()})})();var gt=new Set;function mr(e){return Array.isArray(e)}function $a(e,t){t===void 0&&(t=",");var n=mr(e)?e:e.split(t);return n.every(function(o){return gt.has(o.trim().toLowerCase())})}function Zi(e){var t=Array.isArray(e)?e:[e];gt.has("meta")&&gt.forEach(function(n){return!Da(n)&&gt.delete(n.toLowerCase())}),t.forEach(function(n){return gt.add(n.toLowerCase())})}function qi(e){var t=Array.isArray(e)?e:[e];e==="meta"?gt.clear():t.forEach(function(n){return gt.delete(n.toLowerCase())})}function Na(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function Fa(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function za(e){return Yi(e,["input","textarea","select"])}function Yi(e,t){var n=e.target;t===void 0&&(t=!1);var o=n&&n.tagName;return mr(t)?!!(o&&t&&t.some(function(i){return i.toLowerCase()===o.toLowerCase()})):!!(o&&t&&t===!0)}function Va(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(n){return t.includes(n)})||e.includes("*"):!0}var Ha=function(t,n,o){o===void 0&&(o=!1);var i=n.alt,s=n.meta,a=n.mod,c=n.shift,l=n.ctrl,u=n.keys,f=t.key,d=t.code,p=t.ctrlKey,m=t.metaKey,h=t.shiftKey,g=t.altKey,_=mt(d),T=f.toLowerCase();if(!(u!=null&&u.includes(_))&&!(u!=null&&u.includes(T))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(_))return!1;if(!o){if(i===!g&&T!=="alt"||c===!h&&T!=="shift")return!1;if(a){if(!m&&!p)return!1}else if(s===!m&&T!=="meta"&&T!=="os"||l===!p&&T!=="ctrl"&&T!=="control")return!1}return u&&u.length===1&&(u.includes(T)||u.includes(_))?!0:u?$a(u):!u},Ba=lt(void 0),Ua=function(){return Ne(Ba)};function Gi(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(n,o){return n&&Gi(e[o],t[o])},!0):e===t}var ja=lt({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),Wa=function(){return Ne(ja)};function Ka(e){var t=$(void 0);return Gi(t.current,e)||(t.current=e),t.current}var Xr=function(t){t.st
* Toastify js 1.12.0
* https://github.com/apvarun/toastify-js
* @license MIT licensed
*
* Copyright (C) 2018 Varun A P
*/var uf=gr.exports;(function(e){(function(t,n){e.exports?e.exports=n():t.Toastify=n()})(ya,function(t){var n=function(a){return new n.lib.init(a)},o="1.12.0";n.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}},n.lib=n.prototype={toastify:o,constructor:n,init:function(a){return a||(a={}),this.options={},this.toastElement=null,this.options.text=a.text||n.defaults.text,this.options.node=a.node||n.defaults.node,this.options.duration=a.duration===0?0:a.duration||n.defaults.duration,this.options.selector=a.selector||n.defaults.selector,this.options.callback=a.callback||n.defaults.callback,this.options.destination=a.destination||n.defaults.destination,this.options.newWindow=a.newWindow||n.defaults.newWindow,this.options.close=a.close||n.defaults.close,this.options.gravity=a.gravity==="bottom"?"toastify-bottom":n.defaults.gravity,this.options.positionLeft=a.positionLeft||n.defaults.positionLeft,this.options.position=a.position||n.defaults.position,this.options.backgroundColor=a.backgroundColor||n.defaults.backgroundColor,this.options.avatar=a.avatar||n.defaults.avatar,this.options.className=a.className||n.defaults.className,this.options.stopOnFocus=a.stopOnFocus===void 0?n.defaults.stopOnFocus:a.stopOnFocus,this.options.onClick=a.onClick||n.defaults.onClick,this.options.offset=a.offset||n.defaults.offset,this.options.escapeMarkup=a.escapeMarkup!==void 0?a.escapeMarkup:n.defaults.escapeMarkup,this.options.ariaLive=a.ariaLive||n.defaults.ariaLive,this.options.style=a.style||n.defaults.style,a.backgroundColor&&(this.options.style.background=a.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var a=document.createElement("div");a.className="toastify on "+this.options.className,this.options.position?a.className+=" toastify-"+this.options.position:this.options.positionLeft===!0?(a.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):a.className+=" toastify-right",a.className+=" "+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.');for(var c in this.options.style)a.style[c]=this.options.style[c];if(this.options.ariaLive&&a.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)a.appendChild(this.options.node);else if(this.options.escapeMarkup?a.innerText=this.options.text:a.innerHTML=this.options.text,this.options.avatar!==""){var l=document.createElement("img");l.src=this.options.avatar,l.className="toastify-avatar",this.options.position=="left"||this.options.positionLeft===!0?a.appendChild(l):a.insertAdjacentElement("afterbegin",l)}if(this.options.close===!0){var u=document.createElement("button");u.type="button",u.setAttribute("aria-label","Close"),u.className="toast-close",u.innerHTML="&#10006;",u.addEventListener("click",(function(_){_.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}).bind(this));var f=window.innerWidth>0?window.innerWidth:screen.width;(this.options.position=="left"||this.options.positionLeft===!0)&&f>360?a.insertAdjacentElement("afterbegin",u):a.appendChild(u)}if(this.options.stopOnFocus&&this.options.duration>0){var d=this;a.addEventListener("mouseover",function(_){window.clearTimeout(a.timeOutValue)}),a.addEventListener("mouseleave",function(){a.timeOutValue=window.setTimeout(function(){d.removeElement(a)},d.options.duration)})}if(typeof this.options.destination<"u"&&a.addEventListener("click",(function(_){_.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination
`)),d.innerHTML=`<code>${f.innerHTML.trim()}</code>`,f.replaceWith(d)}),c&&[...s.querySelectorAll("p")].filter(d=>/^```/g.test(d.innerText)).forEach(d=>{const p=[d];let m=!1,h=d;for(;h.nextElementSibling;){const g=h.nextElementSibling;if(g&&g.tagName==="P")if(/```$/g.test(g.innerText)){p.push(g),m=!0;break}else p.push(g);else break;h=g}if(m){const g=document.createElement("pre");p.forEach(T=>{T.querySelectorAll("br").forEach(y=>y.replaceWith(`
`))});const _=p.map(T=>T.innerHTML).join(`
`);g.innerHTML=`<code tabindex="0">${_}</code>`,d.replaceWith(g),p.forEach(T=>T.remove())}}),i.includes("`")&&(l=$o(s),l.forEach(u=>{let f=u.nodeValue.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");/`[^`]+`/g.test(f)&&(f=f.replaceAll(/(`[^]+?`)/g,"<code>$1</code>")),Nt.innerHTML=f,u.replaceWith(...Nt.childNodes)})),/twitter\.com/i.test(i)&&(l=$o(s,{rejectFilter:["A"]}),l.forEach(u=>{let f=u.nodeValue.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");/@[a-zA-Z0-9_]+@twitter\.com/g.test(f)&&(f=f.replaceAll(/(@([a-zA-Z0-9_]+)@twitter\.com)/g,'<a href="https://twitter.com/$2" rel="nofollow noopener noreferrer" target="_blank">$1</a>')),Nt.innerHTML=f,u.replaceWith(...Nt.childNodes)})),i.includes("#")){let u=null;const f=[...s.querySelectorAll("p")].filter((d,p)=>{let m=0;for(let h=0;h<d.childNodes.length;h++){const g=d.childNodes[h];if(g.nodeType===Node.TEXT_NODE){if(g.textContent.trim()!=="")return!1}else if(g.tagName!=="BR")if(g.tagName==="A"){const _=g.textContent.trim();if(!_||!_.startsWith("#"))return!1;m++}else return!1}if(m>3||m>1&&u&&p===u+1)return u=p,!0});f!=null&&f.length&&f.forEach(d=>{d.classList.add("hashtag-stuffing"),d.title=d.innerText})}return i.includes("<img")&&s.querySelectorAll("img").forEach(u=>{const f=u.getAttribute("width")||u.naturalWidth,d=u.getAttribute("height")||u.naturalHeight;f&&d&&u.style.setProperty("--original-aspect-ratio",`${f}/${d}`)}),o&&queueMicrotask(()=>o(s)),i=s.innerHTML,i}const Ss=Ke(wl),El=["STYLE","IMG","VIDEO","AUDIO","AREA","MAP","TRACK","EMBED","IFRAME","OBJECT","PICTURE","PORTAL","SOURCE","SVG","MATH","CANVAS","NOSCRIPT","SCRIPT","INPUT","OPTION","TEXTAREA","SLOT","TEMPLATE"],xl=Object.fromEntries(El.map(e=>[e,!0])),Sl=/^(https?:\/\/(www\.)?|xmpp:)/,Do=30;function kl(e){var t;if(!(!e||(t=e.querySelector)!=null&&t.call(e,"*")))try{const n=e.innerText.trim(),o=(n.match(Sl)||[])[0]||"";if(!o)return;const i=n.slice(o.length,o.length+Do),s=n.slice(o.length+Do),a=n.slice(o.length).length>Do;e.innerHTML=`<span class="invisible">${o}</span><span class=${a?"ellipsis":""}>${i}</span><span class="invisible">${s}</span>`}catch{}}function $o(e,t={}){var a;const n=[],o=Object.assign({},xl,(a=t.rejectFilter)==null?void 0:a.reduce((c,l)=>(c[l]=!0,c),{})),i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode(c){return o[c.parentNode.nodeName]?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}},!1);let s;for(;s=i.nextNode();)n.push(s);return n}const Ft=document.createElement("div");function Il(e,t){if(!e)return"";const{preProcess:n}=t||{};return Ft.innerHTML=e.replace(/<\/p>/g,`</p>
`).replace(/<\/li>/g,`</li>
`),Ft.querySelectorAll("br").forEach(o=>{o.replaceWith(`
`)}),n==null||n(Ft),Ft.querySelectorAll(".invisible").forEach(o=>{o.remove()}),Ft.querySelectorAll(".ellipsis").forEach(o=>{o.append("...")}),Ft.innerText.replace(/[\r\n]{3,}/g,`
`).trim()}const ho=Ke(Il);function Al(e){const{mentions:t=[],instance:n,previewMode:o,statusURL:i}=e||{};return s=>{var f,d;let{target:a}=s;if(a=a.closest("a"),!a||s.metaKey||s.ctrlKey||s.shiftKey||s.altKey||s.which===2)return;const c=(f=a.previousSibling)==null?void 0:f.textContent,l=c==null?void 0:c.endsWith("@"),u=a.innerText.startsWith("@");if((a.classList.contains("u-url")||a.classList.contains("mention"))&&u||l&&!u){const p=(a.querySelector("span")||a).innerText.trim(),m=p.replace(/^@/,""),h=a.getAttribute("href"),g=t.find(_=>_.url===h)||t.find(_=>_.acct===m||_.username===m);if(g)s.preventDefault(),s.stopPropagation(),B.showAccount={account:g.acct,instance:n};else if(!/^http/i.test(p)){s.preventDefault(),s.stopPropagation();const _=a.getAttribute("href");B.showAccount={account:_,instance:n}}}else if(!o){const p=c==null?void 0:c.endsWith("#");if(a.classList.contains("hashtag")||p){s.preventDefault(),s.stopPropagation();const m=a.innerText.replace(/^#/,"").trim(),h=n?`#/${n}/t/${m}`:`#/t/${m}`;location.hash=h}else(d=B.unfurledLinks[a.href])!=null&&d.url&&i!==a.href&&(s.preventDefault(),s.stopPropagation(),B.prevLocation={pathname:location.hash.replace(/^#/,"")},location.hash=`#${B.unfurledLinks[a.href].url}`)}}}function yf(e,t){return()=>S.number(e,{style:"unit",unit:t,unitDisplay:"long"})}const Cl=new Intl.DateTimeFormat().resolvedOptions().locale,Pl=e=>{const{locale:t,dateYear:n,hideTime:o,formatOpts:i}=e||{},s=t.replace(/-[a-z]+$/i,""),a=vn([s],[Cl],t),c=new Date().getFullYear(),l={year:n===c?void 0:"numeric",month:"short",day:"numeric",hour:o?void 0:"numeric",minute:o?void 0:"numeric",...i};try{return Intl.DateTimeFormat(a,l)}catch{}try{return Intl.DateTimeFormat(t,l)}catch{}return Intl.DateTimeFormat(void 0,l)},Ll=Ke(Pl);function wn(e,t){return e instanceof Date||(e=new Date(e)),Ll({dateYear:e.getFullYear(),locale:S.locale,...t}).format(e)}function it(e){try{return S.number(e,{notation:"compact",roundingMode:"floor"})}catch{return e}}const hi=5e3;function Zn(e){if(e||(e=!0),B.showCompose){B.composerState.minimized?Pe({duration:hi,text:S._({id:"/4fHR1"})}):Pe({duration:hi,text:S._({id:"vvl08N"})});return}Qa(),B.showCompose=e}function bf({skeleton:e,account:t,avatarSize:n="xl",useAvatarStatic:o=!1,instance:i,external:s,internal:a,onClick:c,showActivity:l=!1,showStats:u=!1,accountInstance:f,hideDisplayName:d=!1,relationship:p={},excludeRelationshipAttrs:m=[]}){if(e)return r("div",{class:"account-block skeleton",children:[r(at,{size:n}),r("span",{children:[r("b",{children:"████████"}),r("br",{}),r("span",{class:"account-block-acct",children:"██████"})]})]});if(!t)return null;const{id:h,acct:g,avatar:_,avatarStatic:T,displayName:y,username:x,emojis:b,url:w,statusesCount:E,lastStatusAt:A,bot:O,fields:M,note:k,group:C,followersCount:R,createdAt:z,locked:F}=t;let[se,Q,we]=g.match(/([^@]+)(@.+)/i)||[,g];f&&(we=`@${f}`);const X=M==null?void 0:M.find(ae=>!!ae.verifiedAt&&!!ae.value),ue={};for(const ae in p)m.includes(ae)||(ue[ae]=p[ae]);const te=ue.following||ue.followedBy||ue.requested;return r("a",{class:"account-block",href:w,target:s?"_blank":null,title:we?g:`@${g}`,onClick:ae=>{if(!s){if(ae.preventDefault(),c)return c(ae);a?location.hash=`/${i}/a/${h}`:B.showAccount={account:t,instance:i}}},children:[r(at,{url:o?T:_||T,size:n,squircle:O}),r("span",{class:"account-block-content",children:[!d&&r(N,{children:y?r("b",{children:r(Zt,{text:y,emojis:b})}):r("b",{children:x})})," ",r("span",{class:"account-block-acct bidi-isolate",children:[we?"":"@",Q,r("wbr",{}),we,F&&r(N,{children:[" ",r(L,{icon:"lock",size:"s",alt:S._({id:"G2fuEb"})})]})]}),l&&r("div",{class:"account-block-stats",children:[r(D,{id:"ajzDof",values:{0:it(E)}}),!!A&&r(N,{children:[" ","·"," ",r(D,{id:"f8bJ3C",values:{0:wn(A,{hideTime:!0})}})]})]}),u&&r("div",{class:"account-block-stats",children:[O&&r(N,{children:r("span",{class:"tag collapsed",children:[r(L,{icon:"bot"})," ",r(D,{id:"9Vdq+j"})]})}),!!C&&r(N,{children:r("span",{class:"tag collapsed",children:[r(L,{icon:"group"})," ",r(D,{id:"L8fEEm"})]})}),te&&r("div",{class:"sh
<style ${n}>
:host {
contain: content;
display: block;
position: relative;
width: 100%;
padding-bottom: calc(100% / (16 / 9));
}
@media (max-width: 40em) {
:host([short]) {
padding-bottom: calc(100% / (9 / 16));
}
}
#frame, #fallbackPlaceholder, iframe {
position: absolute;
width: 100%;
height: 100%;
left: 0;
}
#frame {
cursor: pointer;
}
#fallbackPlaceholder {
object-fit: cover;
}
#frame::before {
content: '';
display: block;
position: absolute;
top: 0;
background-image: linear-gradient(180deg, #111 -20%, transparent 90%);
height: 60px;
width: 100%;
z-index: 1;
}
#playButton {
width: 68px;
height: 48px;
background-color: transparent;
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="red"/><path d="M45 24 27 14v20" fill="white"/></svg>');
z-index: 1;
border: 0;
border-radius: inherit;
}
#playButton:before {
content: '';
border-style: solid;
border-width: 11px 0 11px 19px;
border-color: transparent transparent transparent #fff;
}
#playButton,
#playButton:before {
position: absolute;
top: 50%;
left: 50%;
transform: translate3d(-50%, -50%, 0);
cursor: inherit;
}
/* Post-click styles */
.activated {
cursor: unset;
}
#frame.activated::before,
#frame.activated > #playButton {
display: none;
}
</style>
<div id="frame">
<picture>
<source id="webpPlaceholder" type="image/webp">
<source id="jpegPlaceholder" type="image/jpeg">
<img id="fallbackPlaceholder" referrerpolicy="origin" loading="lazy">
</picture>
<button id="playButton"></button>
</div>
`,this.domRefFrame=t.querySelector("#frame"),this.domRefImg={fallback:t.querySelector("#fallbackPlaceholder"),webp:t.querySelector("#webpPlaceholder"),jpeg:t.querySelector("#jpegPlaceholder")},this.domRefPlayButton=t.querySelector("#playButton")}setupComponent(){this.initImagePlaceholder(),this.domRefPlayButton.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),this.setAttribute("title",`${this.videoPlay}: ${this.videoTitle}`),(this.autoLoad||this.isYouTubeShort())&&this.initIntersectionObserver()}attributeChangedCallback(t,n,o){switch(t){case"videoid":case"playlistid":case"videoTitle":case"videoPlay":{n!==o&&(this.setupComponent(),this.domRefFrame.classList.contains("activated")&&(this.domRefFrame.classList.remove("activated"),this.shadowRoot.querySelector("iframe").remove(),this.isIframeLoaded=!1));break}default:break}}addIframe(t=!1){if(!this.isIframeLoaded){let n=t?0:1;const o=this.noCookie?"-nocookie":"";let i;this.playlistId?i=`?listType=playlist&list=${this.playlistId}&`:i=`${this.videoId}?`,this.isYouTubeShort()&&(this.params=`loop=1&mute=1&modestbranding=1&playsinline=1&rel=0&enablejsapi=1&playlist=${this.videoId}`,n=1);const s=`
<iframe frameborder="0" title="${this.videoTitle}"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen
src="https://www.youtube${o}.com/embed/${i}autoplay=${n}&${this.params}"
></iframe>`;this.domRefFrame.insertAdjacentHTML("beforeend",s),this.domRefFrame.classList.add("activated"),this.isIframeLoaded=!0,this.attemptShortAutoPlay(),this.dispatchEvent(new CustomEvent("liteYoutubeIframeLoaded",{detail:{videoId:this.videoId},bubbles:!0,cancelable:!0}))}}initImagePlaceholder(){var o,i;const t=`https://i.ytimg.com/vi_webp/${this.videoId}/${this.posterQuality}.webp`,n=`https://i.ytimg.com/vi/${this.videoId}/${this.posterQuality}.jpg`;this.domRefImg.fallback.loading=this.posterLoading,this.domRefImg.webp.srcset=t,this.domRefImg.jpeg.srcset=n,this.domRefImg.fallback.src=n,this.domRefImg.fallback.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),(i=(o=this.domRefImg)==null?void 0:o.fallback)==null||i.setAttribute("alt",`${this.videoPlay}: ${this.videoTitle}`)}initIntersectionObserver(){const t={root:null,rootMargin:"0px",threshold:0};new IntersectionObserver((o,i)=>{o.forEach(s=>{s.isIntersecting&&!this.isIframeLoaded&&(Be.warmConnections(),this.addIframe(!0),i.unobserve(this))})},t).observe(this)}attemptShortAutoPlay(){this.isYouTubeShort()&&setTimeout(()=>{var t,n;(n=(t=this.shadowRoot.querySelector("iframe"))==null?void 0:t.contentWindow)==null||n.postMessage('{"event":"command","func":"playVideo","args":""}',"*")},2e3)}isYouTubeShort(){return this.getAttribute("short")===""&&window.matchMedia("(max-width: 40em)").matches}static addPrefetch(t,n){const o=document.createElement("link");o.rel=t,o.href=n,o.crossOrigin="true",document.head.append(o)}static warmConnections(){Be.isPreconnected||window.liteYouTubeIsPreconnected||(Be.addPrefetch("preconnect","https://i.ytimg.com/"),Be.addPrefetch("preconnect","https://s.ytimg.com"),Be.addPrefetch("preconnect","https://www.youtube.com"),Be.addPrefetch("preconnect","https://www.google.com"),Be.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),Be.addPrefetch("preconnect","https://static.doubleclick.net"),Be.isPreconnected=!0,window.liteYouTubeIsPreconnected=!0)}}Be.isPreconnected=!1;customElements.define("lite-youtube",Be);const Ms=new Uint8Array(128);for(let e=0;e<83;e++)Ms["0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~".charCodeAt(e)]=e;const no=(e,t,n)=>{let o=0;for(;t<n;)o*=83,o+=Ms[e.charCodeAt(t++)];return o},Rs=Math.pow,En=Math.PI,uu=En*2,Os=3294.6,Ds=269.025,du=e=>e>10.31475?Rs(e/Ds+.052132,2.4):e/Os,Vo=e=>~~(e>1227e-8?Ds*Rs(e,.416666)-13.025:e*Os+1),hn=e=>(e<0?-1:1)*e*e,yi=e=>{for(e+=En/2;e>En;)e-=uu;const t=1.27323954*e-.405284735*hn(e);return .225*(hn(t)-t)+t};function Sr(e){const t=no(e,2,6);return[t>>16,t>>8&255,t&255]}function fu(e,t,n,o){const i=no(e,0,1),s=i%9+1,a=~~(i/9)+1,c=s*a;let l=0,u=0,f=0,d=0,p=0,m=0,h=0,g=0,_=0,T=0,y=0,x=0;const b=(no(e,1,2)+1)/13446*(o|1),w=new Float64Array(c*3),E=Sr(e);for(l=0;l<3;l++)w[l]=du(E[l]);for(l=1;l<c;l++)x=no(e,4+l*2,6+l*2),w[l*3]=hn(~~(x/361)-9)*b,w[l*3+1]=hn(~~(x/19)%19-9)*b,w[l*3+2]=hn(x%19-9)*b;const A=new Float64Array(a*n),O=new Float64Array(s*t);for(u=0;u<a;u++)for(d=0;d<n;d++)A[u*n+d]=yi(En*d*u/n);for(l=0;l<s;l++)for(f=0;f<t;f++)O[l*t+f]=yi(En*f*l/t);const M=t*4,k=new Uint8ClampedArray(M*n);for(d=0;d<n;d++)for(f=0;f<t;f++){for(p=m=h=0,u=0;u<a;u++)for(_=A[u*n+d],l=0;l<s;l++)g=O[l*t+f]*_,T=(l+u*s)*3,p+=w[T]*g,m+=w[T+1]*g,h+=w[T+2]*g;y=4*f+d*M,k[y]=Vo(p),k[y+1]=Vo(m),k[y+2]=Vo(h),k[y+3]=255}return k}const hu=(e,t={})=>{const n=t.char||" ",o=t.count||2;let i=0;const s=[];return e.reverse().reduce((a,c)=>{s.length&&i&&s[i]&&s[i]===c.substring(1,s[i].length+1)&&(s.splice(i,1),i--);const u=[`${n.repeat(i?i*o:0)}${c}`,...a];return c.substring(0,2)==="</"&&(i++,s[i]=c.substring(2,c.length-1)),u},[]).join(`
`)};var pu=hu;const $s=e=>e.trim().replace(/(^(\s|\t)+|(( |\t)+)$)/gm,""),mu=e=>{const t=$s(e).split(`
`),n=[];let o="";for(let i=0;i<t.length;i+=1){const s=t[i];if(s.endsWith("/>")){n.push(`${o}${s.slice(0,-2)} />`),o="";continue}if(s.endsWith(">")){n.push(`${o}${s.startsWith(">")||s.startsWith("<")?"":" "}${s}`),o="";continue}o+=o.length?` ${s}`:s}return n};var gu={mergeAttributesWithElements:mu,removeEmptyLines:$s};const vu=pu,{mergeAttributesWithElements:_u}=gu,yu=(e,t={})=>{const n=_u(e);return vu(n,t)};var bu=yu;const Tu=fr(bu);var ln=(e=>(e.Mouse="mouse",e.Touch="touch",e.Pointer="pointer",e))(ln||{}),un=(e=>(e.CancelledByMovement="cancelled-by-movement",e.CancelledByRelease="cancelled-by-release",e.CancelledOutsideElement="cancelled-outside-element",e))(un||{});const Ns=()=>typeof window=="object"?(window==null?void 0:window.PointerEvent)??null:null,wu=()=>typeof window=="object"?(window==null?void 0:window.TouchEvent)??null:null;function Fs(e){const{nativeEvent:t}=e,n=wu();return n&&t instanceof n||"touches"in e}function zs(e){const t=Ns();return e.nativeEvent instanceof MouseEvent&&!(t&&e.nativeEvent instanceof t)}function Vs(e){const{nativeEvent:t}=e;if(!t)return!1;const n=Ns();return n&&t instanceof n||"pointerId"in t}function bi(e){return zs(e)||Fs(e)||Vs(e)}function Ti(e){return Fs(e)?{x:e.touches[0].pageX,y:e.touches[0].pageY}:zs(e)||Vs(e)?{x:e.pageX,y:e.pageY}:null}function Eu(e){return{target:e.target,currentTarget:e.currentTarget,nativeEvent:e,persist:()=>{}}}function Hs(e,{threshold:t=400,captureEvent:n=!1,detect:o=ln.Pointer,cancelOnMovement:i=!1,cancelOutsideElement:s=!0,filterEvents:a,onStart:c,onMove:l,onFinish:u,onCancel:f}={}){const d=$(!1),p=$(!1),m=$(),h=$(),g=$(e),_=$(null),T=Ce(w=>E=>{p.current||bi(E)&&(a!==void 0&&!a(E)||(n&&E.persist(),c==null||c(E,{context:w}),_.current=Ti(E),p.current=!0,m.current=E.currentTarget,h.current=setTimeout(()=>{g.current&&(g.current(E,{context:w}),d.current=!0)},t)))},[n,a,c,t]),y=Ce(w=>(E,A)=>{bi(E)&&p.current&&(_.current=null,n&&E.persist(),d.current?u==null||u(E,{context:w}):p.current&&(f==null||f(E,{context:w,reason:A??un.CancelledByRelease})),d.current=!1,p.current=!1,h.current!==void 0&&clearTimeout(h.current))},[n,u,f]),x=Ce(w=>E=>{if(l==null||l(E,{context:w}),i!==!1&&_.current){const A=Ti(E);if(A){const O=i===!0?25:i,M={x:Math.abs(A.x-_.current.x),y:Math.abs(A.y-_.current.y)};(M.x>O||M.y>O)&&y(w)(E,un.CancelledByMovement)}}},[y,i,l]),b=Ce(w=>{if(e===null)return{};switch(o){case ln.Mouse:{const E={onMouseDown:T(w),onMouseMove:x(w),onMouseUp:y(w)};return s&&(E.onMouseLeave=A=>{y(w)(A,un.CancelledOutsideElement)}),E}case ln.Touch:return{onTouchStart:T(w),onTouchMove:x(w),onTouchEnd:y(w)};case ln.Pointer:{const E={onPointerDown:T(w),onPointerMove:x(w),onPointerUp:y(w)};return s&&(E.onPointerLeave=A=>y(w)(A,un.CancelledOutsideElement)),E}}},[e,y,s,o,x,T]);return ee(()=>{if(!window)return;function w(E){const A=Eu(E);y()(A)}return window.addEventListener("mouseup",w),window.addEventListener("touchend",w),window.addEventListener("pointerup",w),()=>{window.removeEventListener("mouseup",w),window.removeEventListener("touchend",w),window.removeEventListener("pointerup",w)}},[y]),ee(()=>()=>{h.current!==void 0&&clearTimeout(h.current)},[]),ee(()=>{g.current=e},[e]),b}function xu({poll:e,lang:t,readOnly:n,refresh:o=()=>{},votePoll:i=()=>{}}){const[s,a]=Y("default"),{expired:c,expiresAt:l,id:u,multiple:f,options:d,ownVotes:p,voted:m,votersCount:h,votesCount:g,emojis:_}=e,T=!!l&&new Date(l),y=h||g;let x=0;y<=1e3?x=0:y<=1e4?x=1:y<=1e5&&(x=2);const[b,w]=Y(!1),E=d.every(A=>A.votesCount!==null);return r("div",{lang:t,dir:"auto",class:`poll ${n?"read-only":""} ${s==="loading"?"loading":""}`,children:[b&&E||m||c?r(N,{children:[r("div",{class:"poll-options",children:d.map((A,O)=>{const{title:M,votesCount:k}=A,C=y?k/y:0,R=C?C.toLocaleString(S.locale||void 0,{style:"percent",maximumFractionDigits:x}):"0%",z=k>0&&k===Math.max(...d.map(F=>F.votesCount));return r("div",{class:`poll-option poll-result ${z?"poll-option-leading":""}`,style:{"--percentage":`${C*100}%`},children:[r("div",{class:"poll-option-title",children:[r("span",{children:r(Zt,{text:M,emojis:_})}),m&&p.includes(O)
📊:
${o.options.map(c=>`${o.multiple?"▪️":"•"} ${c.title}`).join(`
`)}`),i!=null&&i.length&&(s+=" "+i.map(c=>({image:"🖼️",gifv:"🎞️",video:"📹",audio:"🎵",unknown:""})[c.type]||"").join("")),s}function Iu(e,t,n){var o=this,i=$(null),s=$(0),a=$(null),c=$([]),l=$(),u=$(),f=$(e),d=$(!0);f.current=e;var p=typeof window<"u",m=!t&&t!==0&&p;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var h=!!(n=n||{}).leading,g=!("trailing"in n)||!!n.trailing,_="maxWait"in n,T="debounceOnServer"in n&&!!n.debounceOnServer,y=_?Math.max(+n.maxWait||0,t):null;ee(function(){return d.current=!0,function(){d.current=!1}},[]);var x=le(function(){var b=function(k){var C=c.current,R=l.current;return c.current=l.current=null,s.current=k,u.current=f.current.apply(R,C)},w=function(k,C){m&&cancelAnimationFrame(a.current),a.current=m?requestAnimationFrame(k):setTimeout(k,C)},E=function(k){if(!d.current)return!1;var C=k-i.current;return!i.current||C>=t||C<0||_&&k-s.current>=y},A=function(k){return a.current=null,g&&c.current?b(k):(c.current=l.current=null,u.current)},O=function k(){var C=Date.now();if(E(C))return A(C);if(d.current){var R=t-(C-i.current),z=_?Math.min(R,y-(C-s.current)):R;w(k,z)}},M=function(){if(p||T){var k=Date.now(),C=E(k);if(c.current=[].slice.call(arguments),l.current=o,i.current=k,C){if(!a.current&&d.current)return s.current=i.current,w(O,t),h?b(i.current):u.current;if(_)return w(O,t),b(i.current)}return a.current||w(O,t),u.current}};return M.cancel=function(){a.current&&(m?cancelAnimationFrame(a.current):clearTimeout(a.current)),s.current=0,c.current=i.current=l.current=a.current=null},M.isPending=function(){return!!a.current},M.flush=function(){return a.current?A(Date.now()):u.current},M},[h,_,t,y,g,m,p,T]);return x}function Au(e,t,n){var o=n===void 0?{}:n,i=o.leading,s=o.trailing;return Iu(e,t,{maxWait:t,leading:i===void 0||i,trailing:s===void 0||s})}function Cu(e,t){var n=$(null),o=$(null);o.current=t;var i=$(null);ee(function(){s()});var s=Ce(function(){var a=i.current,c=o.current,l=a||(c?c instanceof Element?c:c.current:null);n.current&&n.current.element===l&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:l,subscriber:e,cleanup:l?e(l):void 0})},[e]);return ee(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),Ce(function(a){i.current=a,s()},[s])}function Ei(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:t==="contentBoxSize"?e.contentRect[n==="inlineSize"?"width":"height"]:void 0}function Pu(e){e===void 0&&(e={});var t=e.onResize,n=$(void 0);n.current=t;var o=e.round||Math.round,i=$(),s=Y({width:void 0,height:void 0}),a=s[0],c=s[1],l=$(!1);ee(function(){return l.current=!1,function(){l.current=!0}},[]);var u=$({width:void 0,height:void 0}),f=Cu(Ce(function(d){return(!i.current||i.current.box!==e.box||i.current.round!==o)&&(i.current={box:e.box,round:o,instance:new ResizeObserver(function(p){var m=p[0],h=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",g=Ei(m,h,"inlineSize"),_=Ei(m,h,"blockSize"),T=g?o(g):void 0,y=_?o(_):void 0;if(u.current.width!==T||u.current.height!==y){var x={width:T,height:y};u.current.width=T,u.current.height=y,n.current?n.current(x):l.current||c(x)}})}),i.current.instance.observe(d,{box:e.box}),function(){i.current&&i.current.instance.unobserve(d)}},[e.box,o]),e.ref);return le(function(){return{ref:f,width:a.width,height:a.height}},[f,a.width,a.height])}function oo({className:e="truncated"}={}){const t=$(),n=Au(({height:o})=>{if(t.current){const{scrollHeight:i}=t.current;let s=i>o;if(s){const{height:a,maxHeight:c}=getComputedStyle(t.current),l=parseInt(c||a,10);s=i>l}t.current.classList.toggle(e,s)}},300);return Pu({ref:t,box:"border-box",onResize:n}),t}const pn={public:"earth",unlisted:"group",private:"lock",direct:"message"};var js="kvfysmfp",Ws="ufhsfnkm",Lu=".".concat(js,"{overflow:hidden;touch-action:none}.").concat(Ws,"{transform-origin: 0 0}"),Mu=typeof window>"u",Ru=function(){return!Mu&&("ontouchstart"in window||navigator.maxTouchPoints>0)};var Ou=function(e){v
<video
src="${_}"
poster="${h}"
width="${w}"
height="${E}"
data-orientation="${k}"
preload="auto"
autoplay
muted
playsinline
${K?"loop":""}
ondblclick="this.paused ? this.play() : this.pause()"
${oe?"ontimeupdate=\"this.closest('.media-gif') && this.closest('.media-gif').style.setProperty('--progress', `${~~((this.currentTime / this.duration) * 100)}%`)\"":""}
></video>
`,kn=`
<video
src="${_}"
poster="${h}"
width="${w}"
height="${E}"
data-orientation="${k}"
preload="auto"
autoplay
playsinline
${K?"loop":""}
controls
></video>
`;return r(H,{children:r(ue,{class:`media ${e} media-${ne?"gif":"video"} ${ze?"media-contain":""} ${q?"media-hover-animate":""}`,"data-orientation":k,"data-formatted-duration":i?void 0:he,"data-label":ne&&!i&&!ze?"GIF":void 0,"data-has-alt":!J||void 0,style:!i&&Me,onClick:fe=>{if(q)try{R.current.pause()}catch{}u(fe)},onMouseEnter:()=>{if(q)try{R.current.play()}catch{}},onMouseLeave:()=>{if(q)try{R.current.pause()}catch{}},onFocus:()=>{if(q)try{R.current.play()}catch{}},onBlur:()=>{if(q)try{R.current.pause()}catch{}},children:[i||ze?ne&&i?r(Ai,{...X,enabled:!0,children:r("div",{ref:F,dangerouslySetInnerHTML:{__html:me}})}):ne?r("div",{class:"video-container",dangerouslySetInnerHTML:{__html:me}}):r("div",{class:"video-container",dangerouslySetInnerHTML:{__html:kn}}):ne?r("video",{ref:R,src:_,poster:h,width:w,height:E,"data-orientation":k,preload:"auto",playsinline:!0,loop:!0,muted:!0,onTimeUpdate:oe?fe=>{const{target:ge}=fe,qe=ge==null?void 0:ge.closest(".media-gif");if(qe){const ve=ge.currentTime/ge.duration*100;qe.style.setProperty("--progress",`${ve}%`)}}:void 0}):r(N,{children:[h?r("img",{src:h,alt:J?"":d,width:w,height:E,"data-orientation":k,loading:"lazy",decoding:"async",onLoad:fe=>{if(!M){const ge=fe.target.closest(".media");if(ge){const{naturalHeight:qe,naturalWidth:ve}=fe.target;ge.dataset.orientation=ve>qe?"landscape":"portrait",ge.style.setProperty("--width",`${ve}px`),ge.style.setProperty("--height",`${qe}px`),ge.style.aspectRatio=`${ve}/${qe}`}}}}):r("video",{src:_+"#t=0.1",width:w,height:E,"data-orientation":k,preload:"metadata",muted:!0,disablePictureInPicture:!0,onLoadedMetadata:fe=>{if(!ie){const{duration:ge}=fe.target;if(ge){const qe=jo(ge),ve=fe.target.closest(".media-video");ve&&(ve.dataset.formattedDuration=qe)}}}}),r("div",{class:"media-play",children:r(L,{icon:"play",size:"xl",alt:"▶"})})]}),!i&&!J&&r(Wo,{alt:d,lang:o,index:l})]})})}else if(T==="audio"||V){const ie=jo(y.duration);return r(H,{children:r(ue,{class:`media media-audio ${e}`,"data-formatted-duration":i?void 0:ie,"data-has-alt":!J||void 0,onClick:u,style:!i&&Me,children:[i?r("audio",{src:g||_,preload:"none",controls:!0,autoPlay:!0}):h?r("img",{src:h,alt:J?"":d,width:w,height:E,"data-orientation":k,loading:"lazy",onError:Z=>{var ne,K;try{(K=(ne=Z.target)==null?void 0:ne.remove)==null||K.call(ne)}catch{}}}):null,!i&&r(N,{children:[r("div",{class:"media-play",children:r(L,{icon:"play",size:"xl",alt:"▶"})}),!J&&r(Wo,{alt:d,lang:o,index:l})]})]})})}}function td(e){return URL.parse(e,location.origin)}const ir=ut(ed,(e,t)=>{const n=e.media||{},o=t.media||{};return(n==null?void 0:n.id)===(o==null?void 0:o.id)&&n.url===o.url&&e.to===t.to&&e.class===t.class}),nd=280,od=140,rd=Ui({limit:1,interval:1e3});function id(e,t){return t.v1.accounts.$select(e).fetch()}const sd=hr(rd(id)),Ct={public:{id:"7d1a0d"},unlisted:{id:"WDcQq9"},private:{id:"o34OrG"},direct:{id:"IV4QaU"}},ad=window.ontouchstart!==void 0&&/iPad|iPhone|iPod/.test(navigator.userAgent),cd=new Intl.RelativeTimeFormat,Ci=80;function ld(e){var t;return(t=e==null?void 0:e.options)!=null&&t.length?`📊:
${e.options.map(n=>`- ${n.title}${n.votesCount>=0?` (${n.votesCount})`:""}`).join(`
`)}`:""}function Ko(e){const{spoilerText:t,content:n,poll:o}=e;return(t?`${t}
`:"")+ho(n)+ld(o)}const Pi=ut(({post:e,instance:t,previewMode:n})=>{const{content:o,emojis:i,language:s,mentions:a,url:c}=e;return r("div",{lang:s,dir:"auto",class:"inner-content",onClick:Al({mentions:a,instance:t,previewMode:n,statusURL:c}),dangerouslySetInnerHTML:{__html:Ss(o,{emojis:i,postEnhanceDOM:l=>{l.querySelectorAll('a.u-url[target="_blank"]').forEach(u=>{/http/i.test(u.innerText.trim())||u.removeAttribute("target")})}})}})},(e,t)=>{const{post:n}=e,{post:o}=t;return n.content===o.content}),ud={s:"small",m:"medium",l:"large"},dd=Ke(e=>{if(e=e==null?void 0:e.trim(),(e==null?void 0:e.length)>500)return null;const n=Ra(e)[0];return n!=null&&n.lang&&(n==null?void 0:n.accuracy)>.5?n.lang:null}),mn={id:"8fZueG"};function Gt({statusID:e,status:t,instance:n,size:o="m",contentTextWeight:i,readOnly:s,enableCommentHint:a,withinContext:c,skeleton:l,enableTranslate:u,forceTranslate:f,previewMode:d,onMediaClick:p,quoted:m,onStatusLinkClick:h=()=>{},showFollowedTags:g,allowContextMenu:_,showActionsBar:T,showReplyParent:y,mediaFirst:x}){var Zr,qr,Yr;const{_:b}=mo();if(l)return r("div",{class:`status skeleton ${x?"status-media-first small":""}`,children:[!x&&r(at,{size:"xxl"}),r("div",{class:"container",children:[r("div",{class:"meta",children:[(o==="s"||x)&&r(at,{size:"m"})," ███ ████████"]}),r("div",{class:"content-container",children:[x&&r("div",{class:"media-first-container"}),r("div",{class:`content ${x?"media-first-content":""}`,children:r("p",{children:"████ ████████"})})]})]})]});const{masto:w,instance:E,authenticated:A}=io({instance:n}),{instance:O}=io(),M=E===O;let k=st(e||(t==null?void 0:t.id),E);const C=xn(B);if(t||(t=C.statuses[k]||C.statuses[e],k=st(t==null?void 0:t.id,E)),!t)return null;const{account:{acct:R,avatar:z,avatarStatic:F,id:se,url:Q,displayName:we,username:X,emojis:ue,bot:te,group:ae},id:V,repliesCount:pe,reblogged:ce,reblogsCount:Fe,favourited:Ae,favouritesCount:Ee,bookmarked:Le,poll:be,muted:Me,sensitive:Re,spoilerText:J,visibility:H,language:xe,editedAt:Ze,filtered:ie,card:Z,createdAt:ne,inReplyToId:K,inReplyToAccountId:he,content:q,mentions:ze,mediaAttachments:oe,reblog:me,uri:kn,url:fe,emojis:ge,tags:qe,pinned:ve,_deleted:tt,_pinned:In,emojiReactions:ft}=t,[Mt,_o]=Y(null);ee(()=>{if(!q||xe)return;let v;return v=setTimeout(()=>{let P=dd(ho(q,{preProcess:W=>{W.querySelectorAll(".mention, .hashtag, pre, code, a:has(.invisible)").forEach(re=>{re.remove()}),W.querySelectorAll("a").forEach(re=>{const Oe=re.innerText.trim();(Oe.startsWith("https://")||Oe.startsWith("http://"))&&re.remove()})}}));_o(P)},1e3),()=>clearTimeout(v)},[q,xe]);const _e=xe||Mt,Rt=!!(oe!=null&&oe.length);x&&Rt&&(o="s");const yt=le(()=>pr(),[]),nt=le(()=>yt&&yt===se,[se,yt]),An=Ne(Bs),G=!nt&&!s&&!d&&kr(ie,An);if((G==null?void 0:G.action)==="hide")return null;const ye=v=>{v.shiftKey};if(o!=="l"&&G)return r(yd,{status:t,filterInfo:G,instance:E,containerProps:{onMouseEnter:ye},showFollowedTags:!0,quoted:m});const Ie=new Date(ne),He=new Date(Ze);let Se=ze==null?void 0:ze.find(v=>v.id===he);!Se&&he===V&&(Se={url:Q,username:X,displayName:we});const[ot,Cn]=Y(Se);if(!c&&!ot&&he){const v=B.accounts[he];v?Cn(v):sd(he,w).then(P=>{Cn(P),B.accounts[P.id]=P}).catch(P=>{})}const bt=he===yt||(ze==null?void 0:ze.find(v=>v.id===yt)),Ye=le(()=>!!(Gr.account.get("preferences")||{})["reading:expand:spoilers"],[]),Pn=le(()=>{var P;return((P=(Gr.account.get("preferences")||{})["reading:expand:media"])==null?void 0:P.toLowerCase())||"default"},[]),je=d||Ye||!!C.spoilers[V],Tt=d||Pn==="show_all"||!!C.spoilersMedia[V];if(me)return ae?r("div",{"data-state-post-id":k,class:"status-group",onMouseEnter:ye,children:[r("div",{class:"status-pre-meta",children:[r(L,{icon:"group",size:"l",alt:S._({id:"L8fEEm"})})," ",r(At,{account:t.account,instance:E,showAvatar:!0})]}),r(Gt,{status:e?null:me,statusID:e?me.id:null,instance:E,size:o,contentTextWeight:i,readOnly:s,mediaFirst:x})]}):r("div",{"data-state-post-id":k,class:"status-reblog",onMouseEnter:ye,children:[r("div",{class:"status-pre-meta",children:[r(L,{icon:"rocket",si
${fe}`}})},children:[r(L,{icon:"quote"}),r("span",{children:r(D,{id:"ZhhOwV"})})]}),menuFooter:$r&&!ce?r("div",{class:"footer",children:[r(L,{icon:"alert"}),r(D,{id:"MB+wJL"})]}):Nr>=3&&r("div",{class:"footer",children:[r(L,{icon:"info"}),r("span",{children:r(D,{id:"dBme/4",values:{0:cd.format(-Nr,"month")},components:{0:r("strong",{})}})})]}),disabled:!Jt,onClick:async()=>{try{const v=await Eo();!de&&v&&Pe(ce?S._({id:"bpDheH",values:{0:X||R}}):S._({id:"dbNZdP",values:{0:X||R}}))}catch{}},children:[r(L,{icon:"rocket"}),r("span",{children:Fe>0?it(Fe):ce?S._({id:"QzzGsY"}):S._({id:"PiVIlD"})})]}),r(ke,{onClick:xo,className:`menu-favourite ${Ae?"checked":""}`,children:[r(L,{icon:"heart"}),r("span",{children:Ee>0?it(Ee):Ae?S._({id:"OcUmcH"}):S._({id:"W9FRBT"})})]}),Kn("@mastodon/post-bookmark")&&r(ke,{onClick:Vr,className:`menu-bookmark ${Le?"checked":""}`,children:[r(L,{icon:"bookmark"}),r("span",{children:Le?S._({id:"q8EQYI"}):S._({id:"PZlHt8"})})]})]})}),!de&&M&&(de||T)&&r(nn,{}),(de||T)&&r(N,{children:r(ke,{onClick:()=>{B.showGenericAccounts={heading:S._({id:"+XOeb+"}),fetchAccounts:ca,instance:E,showReactions:!0,postID:k}},children:[r(L,{icon:"react"}),r("span",{children:r(D,{id:"+XOeb+"})})]})}),!x&&r(N,{children:[(u||!_e||On)&&r(nn,{}),u?r("div",{class:dn?"menu-horizontal":"",children:[r(ke,{disabled:Et,onClick:()=>{Ot(!0)},children:[r(L,{icon:"translate"}),r("span",{children:r(D,{id:"pi8x/S"})})]}),dn&&r(ke,{onClick:()=>{const v=Ko(t);v&&wi(v,_e)},children:[r(L,{icon:"speak"}),r("span",{children:r(D,{id:"yIBLq8"})})]})]}):(!_e||On)&&r("div",{class:dn?"menu-horizontal":"",children:[r(ii,{to:`${E?`/${E}`:""}/s/${V}?translate=1`,children:[r(L,{icon:"translate"}),r("span",{children:r(D,{id:"pi8x/S"})})]}),dn&&r(ke,{onClick:()=>{const v=Ko(t);v&&wi(v,_e)},children:[r(L,{icon:"speak"}),r("span",{children:r(D,{id:"yIBLq8"})})]})]})]}),(!de&&M||u||!_e||On)&&r(nn,{}),!de&&r(N,{children:r(ii,{to:E?`/${E}/s/${V}`:`/s/${V}`,onClick:v=>{h(v,t)},children:[r(L,{icon:"arrows-right"}),r("small",{children:[r(D,{id:"8MkSAW",values:{0:X||R},components:{0:r("span",{class:"bidi-isolate"})}}),r("br",{}),r("span",{class:"more-insignificant",children:[b(Ct[H])," • ",Or]})]})]})}),!!Ze&&r(N,{children:r(ke,{onClick:()=>{Ln(V)},children:[r(L,{icon:"history"}),r("small",{children:[r(D,{id:"QL+7Jw"}),r("br",{}),r("span",{class:"more-insignificant",children:r(D,{id:"DuJJm9",values:{editedDateText:Dr}})})]})]})}),r(ke,{href:fe,target:"_blank",children:[r(L,{icon:"external"}),r("small",{class:"menu-double-lines",style:{maxWidth:"16em"},children:vd(fe)})]}),r("div",{class:"menu-horizontal",children:[r(ke,{onClick:()=>{try{navigator.clipboard.writeText(fe),Pe(S._({id:"edWbV6"}))}catch{Pe(S._({id:"W1ewR0"}))}},children:[r(L,{icon:"link"}),r("span",{children:r(D,{id:"he3ygx"})})]}),Ur&&(navigator==null?void 0:navigator.share)&&((qr=navigator==null?void 0:navigator.canShare)==null?void 0:qr.call(navigator,{url:fe}))&&r(ke,{onClick:()=>{try{navigator.share({url:fe})}catch{alert(S._({id:"TtG3Uh"}))}},children:[r(L,{icon:"share"}),r("span",{children:r(D,{id:"LFKLqp"})})]})]}),Ur&&de&&r(ke,{onClick:()=>{wo(!0)},children:[r(L,{icon:"code"}),r("span",{children:r(D,{id:"jdVwsS"})})]}),(nt||bt)&&r(nn,{}),(nt||bt)&&r(ke,{onClick:async()=>{try{const v=await w.v1.statuses.$select(V)[Me?"unmute":"mute"]();ht(v,E),Pe(Me?S._({id:"Pm+5jw"}):S._({id:"ywB7JM"}))}catch{Pe(Me?S._({id:"c6jxNY"}):S._({id:"8SN9kN"}))}},children:Me?r(N,{children:[r(L,{icon:"unmute"}),r("span",{children:r(D,{id:"i51zUR"})})]}):r(N,{children:[r(L,{icon:"mute"}),r("span",{children:r(D,{id:"OiUYO5"})})]})}),nt&&ua&&r(ke,{onClick:async()=>{try{const v=await w.v1.statuses.$select(V)[ve?"unpin":"pin"]();ht(v,E),Pe(ve?S._({id:"Yx809+"}):S._({id:"S6P6E+"}))}catch{Pe(ve?S._({id:"A6cs15"}):S._({id:"vgUfWO"}))}},children:ve?r(N,{children:[r(L,{icon:"unpin"}),r("span",{children:r(D,{id:"XQMQZw"})})]}):r(N,{children:[r(L,{icon:"pin"}),r("span",{children:r(D,{id:"lfHLsx"})})]})}),nt&&r("div",{class:"menu-horizontal",children:[Kn("@mastodon/post-edit")&&r(ke,{onClick:()=>{Zn({editStatus:t})},children:[r(L,
${fe}`}})},children:[r(L,{icon:"quote"}),r("span",{children:r(D,{id:"ZhhOwV"})})]}),menuFooter:$r&&!ce&&r("div",{class:"footer",children:[r(L,{icon:"alert"}),r(D,{id:"MB+wJL"})]}),children:r("div",{class:"action has-count",children:r(Vt,{checked:ce,title:[S._({id:"kulphB"}),S._({id:"QzzGsY"})],alt:[S._({id:"kulphB"}),S._({id:"b7T5Zj"})],class:"reblog-button",icon:"rocket",count:Fe,disabled:!Jt})})}),r("div",{class:"action has-count",children:r(Vt,{checked:Ae,title:[S._({id:"W9FRBT"}),S._({id:"OcUmcH"})],alt:[S._({id:"W9FRBT"}),S._({id:"8ab1sR"})],class:"favourite-button",icon:"heart",count:Ee,onClick:Fr})}),Kn("@mastodon/post-bookmark")&&r("div",{class:"action",children:r(Vt,{checked:Le,title:[S._({id:"PZlHt8"}),S._({id:"q8EQYI"})],alt:[S._({id:"PZlHt8"}),S._({id:"1C/9Sa"})],class:"bookmark-button",icon:"bookmark",onClick:zr})}),r(hs,{portal:{target:document.querySelector(".status-deck")||document.body},align:"end",gap:4,overflow:"auto",viewScroll:"close",menuButton:r("div",{class:"action",children:r("button",{type:"button",title:S._({id:"2FYpfJ"}),class:"plain more-button",children:r(L,{icon:"more",size:"l",alt:S._({id:"2FYpfJ"})})})}),children:jr})]})]})]}),!!To&&r(Yo,{onClick:v=>{v.target===v.currentTarget&&Ln(!1)},children:r(md,{statusID:To,instance:E,fetchStatusHistory:()=>w.v1.statuses.$select(To).history.list(),onClose:()=>{var v;Ln(!1),(v=Dt.current)==null||v.focus()}})}),!!sa&&r(Yo,{onClick:v=>{v.target===v.currentTarget&&wo(!1)},children:r(gd,{post:t,instance:E,onClose:()=>{wo(!1)}})})]})]})}function fd(e){const{enabled:t,children:n,lang:o,captionChildren:i}=e;return!t||!i?n:r("figure",{class:"media-figure-multiple",children:[n,r("figcaption",{lang:o,dir:"auto",children:i})]})}function hd(e){const{mediaAttachments:t,language:n,postID:o,instance:i}=e,s=t.length>1,a=$(),[c,l]=Y(0);return ee(()=>{let u=()=>{const{clientWidth:f,scrollLeft:d}=a.current,p=Math.round(Math.abs(d)/f);l(p)};return a.current&&a.current.addEventListener("scroll",u,{passive:!0}),()=>{a.current&&a.current.removeEventListener("scroll",u)}},[]),r(N,{children:[r("div",{class:"media-first-container",children:[r("div",{class:"media-first-carousel",ref:a,children:t.map((u,f)=>r("div",{class:"media-first-item",children:r(ir,{media:u,lang:n,to:`/${i}/s/${o}?media=${f+1}`})},u.id))}),s&&r("div",{class:"media-carousel-controls",children:[r("div",{class:"carousel-indexer",children:[c+1,"/",t.length]}),r("label",{class:"media-carousel-button",children:r("button",{type:"button",class:"carousel-button",hidden:c===0,onClick:u=>{u.preventDefault(),u.stopPropagation(),a.current.focus(),a.current.scrollTo({left:a.current.clientWidth*(c-1)*(tr()?-1:1),behavior:"smooth"})},children:r(L,{icon:"arrow-left"})})}),r("label",{class:"media-carousel-button",children:r("button",{type:"button",class:"carousel-button",hidden:c===t.length-1,onClick:u=>{u.preventDefault(),u.stopPropagation(),a.current.focus(),a.current.scrollTo({left:a.current.clientWidth*(c+1)*(tr()?-1:1),behavior:"smooth"})},children:r(L,{icon:"arrow-right"})})})]})]}),s&&r("div",{class:"media-carousel-dots",style:{"--dots-count":t.length},children:t.map((u,f)=>r("span",{class:`carousel-dot ${f===c?"active":""}`},u.id))})]})}function Li(e){return xs.toUnicode(URL.parse(e).hostname.replace(/^www\./,"").replace(/\/$/,""))}function Mi(e){return["x.com","twitter.com","threads.net","bsky.app"].includes(e)}function pd({card:e,selfReferential:t,instance:n}){var R;const o=xn(B),{blurhash:i,title:s,description:a,html:c,providerName:l,providerUrl:u,authorName:f,authorUrl:d,width:p,height:m,image:h,imageDescription:g,url:_,type:T,embedUrl:y,language:x,publishedAt:b}=e,w=s||l||f,A=p/m>=1.2?"large":"",[O,M]=Y(null);if(ee(()=>{w&&h&&!t&&Pa(_)&&La(n,_).then(z=>{if(!z)return;const{id:F,url:se}=z;M("#"+se)})},[w,h,t]),o.unfurledLinks[_])return null;const k=/<iframe/i.test(c),C=Ce(z=>{k&&(z.preventDefault(),B.showEmbedModal={html:c,url:_||y,width:p,height:m})},[k]);if(w&&(h||T==="photo"&&i)){const z=Li(_);let F;const se=h&&i?Sr(i):null;if(!h){const ue=fu(i,44,44),te=window.OffscreenCanvas?new OffscreenCanvas(1,1):documen
`+A+`
`+((C=d==null?void 0:d.options)!=null&&C.length?`
<p>📊:</p>
<ul>
${d.options.map(R=>`
<li>
${R.title}
${R.votesCount>=0?` (${R.votesCount})`:""}
</li>
`).join("")}
</ul>`:"")+(T.length>0?`
`+T.map(R=>{const{description:z,meta:F,previewRemoteUrl:se,previewUrl:Q,remoteUrl:we,url:X,type:ue}=R,{original:te={},small:ae}=F||{},V=(ae==null?void 0:ae.width)||(te==null?void 0:te.width),pe=(ae==null?void 0:ae.height)||(te==null?void 0:te.height),ce=we||X,Fe=se||Q,Ae=Fe||ce,Ee=ce?URL.parse(ce):null,Le=ue==="unknown"&&Ee&&/\.(mp4|m4r|m4v|mov|webm)$/i.test(Ee.pathname),be=ue==="unknown"&&Ee&&/\.(mp3|ogg|wav|m4a|m4p|m4b)$/i.test(Ee.pathname),Me=ue==="image"||ue==="unknown"&&Fe&&!Le&&!be,Re=ue==="gifv"||ue==="video"||Le,J=ue==="audio"||be;let H="";return Me?H=`<img src="${Ae}" width="${V}" height="${pe}" alt="${z}" loading="lazy" />`:Re?H=`
<video src="${ce}" width="${V}" height="${pe}" controls preload="auto" poster="${Fe}" loading="lazy"></video>
${z?`<figcaption>${z}</figcaption>`:""}
`:J?H=`
<audio src="${ce}" controls preload="auto"></audio>
${z?`<figcaption>${z}</figcaption>`:""}
`:H=`
<a href="${ce}">📄 ${z||ce}</a>
`,`<figure>${H}</figure>`}).join(`
`):""),k=`
<blockquote lang="${m}" cite="${y}">
${p?`
<details>
<summary>${p}</summary>
${M}
</details>
`:M}
<footer>
${fo(i,c)} (@${s}) <a href="${y}"><time datetime="${O.toISOString()}">${O.toLocaleString()}</time></a>
</footer>
</blockquote>
`;return Tu(k)}function gd({post:e,instance:t,onClose:n}){const{account:{url:o,displayName:i,username:s,emojis:a,bot:c,group:l},id:u,poll:f,spoilerText:d,language:p,editedAt:m,createdAt:h,content:g,mediaAttachments:_,url:T,emojis:y}=e,x=qs(e,t);return r("div",{id:"embed-post",class:"sheet",children:[!!n&&r("button",{type:"button",class:"sheet-close",onClick:n,children:r(L,{icon:"x",alt:S._({id:"yz7wBu"})})}),r("header",{children:r("h2",{children:r(D,{id:"jdVwsS"})})}),r("main",{tabIndex:"-1",children:[r("h3",{children:r(D,{id:"GkS6YG"})}),r("textarea",{class:"embed-code",readonly:!0,onClick:b=>{b.target.select()},dir:"auto",children:x}),r("button",{type:"button",onClick:()=>{try{navigator.clipboard.writeText(x),Pe(S._({id:"bl7nrg"}))}catch{Pe(S._({id:"/KEBaP"}))}},children:[r(L,{icon:"clipboard"})," ",r("span",{children:r(D,{id:"he3ygx"})})]}),!!(_!=null&&_.length)&&r("section",{children:[r("p",{children:r(D,{id:"/2mUza"})}),r("ol",{class:"links-list",children:_.map(b=>r("li",{children:r("a",{href:b.remoteUrl||b.url,target:"_blank",download:!0,children:b.remoteUrl||b.url})},b.id))})]}),!!(a!=null&&a.length)&&r("section",{children:[r("p",{children:r(D,{id:"AeM/di"})}),r("ul",{children:a.map(b=>r("li",{children:[r("picture",{children:[r("source",{srcset:b.staticUrl,media:"(prefers-reduced-motion: reduce)"}),r("img",{class:"shortcode-emoji emoji",src:b.url,alt:`:${b.shortcode}:`,width:"16",height:"16",loading:"lazy",decoding:"async"})]})," ",r("code",{children:[":",b.shortcode,":"]})," (",r("a",{href:b.url,target:"_blank",download:!0,children:"URL"}),")",b.staticUrl?r(N,{children:[" ","(",r("a",{href:b.staticUrl,target:"_blank",download:!0,children:r(D,{id:"xiropL"})}),")"]}):null]},b.shortcode))})]}),!!(y!=null&&y.length)&&r("section",{children:[r("p",{children:r(D,{id:"jzjjJh"})}),r("ul",{children:y.map(b=>r("li",{children:[r("picture",{children:[r("source",{srcset:b.staticUrl,media:"(prefers-reduced-motion: reduce)"}),r("img",{class:"shortcode-emoji emoji",src:b.url,alt:`:${b.shortcode}:`,width:"16",height:"16",loading:"lazy",decoding:"async"})]})," ",r("code",{children:[":",b.shortcode,":"]})," (",r("a",{href:b.url,target:"_blank",download:!0,children:"URL"}),")",b.staticUrl?r(N,{children:[" ","(",r("a",{href:b.staticUrl,target:"_blank",download:!0,children:r(D,{id:"xiropL"})}),")"]}):null]},b.shortcode))})]}),r("section",{children:r("small",{children:[r("p",{children:r(D,{id:"TnJgwX"})}),r("ul",{children:[r("li",{children:r(D,{id:"0OHPem"})}),r("li",{children:r(D,{id:"AzZ5zv"})}),r("li",{children:r(D,{id:"NU7wa/"})}),r("li",{children:r(D,{id:"R4PmPA"})})]})]})}),r("h3",{children:r(D,{id:"rdUucN"})}),r("output",{class:"embed-preview",dangerouslySetInnerHTML:{__html:x},dir:"auto"}),r("p",{children:r("small",{children:r(D,{id:"j0kZfi"})})})]})]})}function Vt({checked:e,count:t,class:n,title:o,alt:i,size:s,icon:a,iconSize:c="l",onClick:l,...u}){typeof o=="string"&&(o=[o,o]),typeof i=="string"&&(i=[i,i]);const[f,d]=Y(o[0]||""),[p,m]=Y(i[0]||"");return ee(()=>{e?(d(o[1]||""),m(i[1]||"")):(d(o[0]||""),m(i[0]||""))},[e,o,i]),r("button",{type:"button",title:f,class:`plain ${s?"small":""} ${n} ${e?"checked":""}`,onClick:h=>{l&&(h.preventDefault(),h.stopPropagation(),l(h))},...u,children:[r(L,{icon:a,size:c,alt:p}),!!t&&r(N,{children:[" ",r("small",{title:t,children:it(t)})]})]})}function vd(e){if(!e)return;const t=URL.parse(e),{host:n,pathname:o}=t,i=o.replace(/\/$/,""),[s,a,c]=i.match(/\/(@[^\/]+)\/(.*)/)||[];return r(N,{children:[xs.toUnicode(n),a?r(N,{children:["/",a,r("wbr",{}),r("span",{class:"more-insignificant",children:["/",c]})]}):r("span",{class:"more-insignificant",children:i})]})}function _d({sKey:e}){const n=xn(B).statusReply[e];if(!n)return null;const{id:o,instance:i}=n,s=Wi(o,i);if(!s)return null;const{sensitive:a,spoilerText:c,account:{avatar:l,avatarStatic:u,bot:f}={},visibility:d,content:p,language:m,filtered:h}=s;if(a||c||!p)return null;const g=st(o,i),_=Us(s),T=Ne(Bs),y=kr(h,T);if((y==null?void 0:y.action)==="hide")return null;const x=(y==null?void 0:y.titlesStr)||"";return r("article",{class:`status compa
//# sourceMappingURL=fuse-MwQ_F2cO.js.map