phanpy-cz/assets/fuse-ljJAS_uA.js

190 lines
192 KiB
JavaScript
Raw Normal View History

2025-01-26 18:32:05 +01:00
import{ad as ce,Q as Dt,d as o,h as K,q as Tt,A as O,_ as ke,y as tt,B as wo,r as At,ae as k,af as Da,e as Qr,ag as ir,ah as Oa,i as ot,P as _e,p as ns,ai as $a,aj as Na,ak as rs,O as os,k as $,M as qe,V as Lt,n as Fa,s as H,al as za,u as te,a as sr,x as bn,z as Va,am as Ha,T as D,an as is,ao as Ba,ap as ss,o as hr,v as as,g as Eo,aq as Ua,ar as Mt,as as ja,at as Ka,au as Bn,I as oe,c as kn,b as he,W as cs,av as Wa,aw as Za,ax as qa}from"./useTitle-2fhxq2KA.js";function Jr(){return Jr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jr.apply(null,arguments)}var ls=["shift","alt","meta","mod","ctrl"],Ga={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 pe(t){return(t&&Ga[t]||t||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function Ya(t){return ls.includes(t)}function xr(t,e){return e===void 0&&(e=","),t.split(e)}function Sr(t,e,n){e===void 0&&(e="+");var r=t.toLocaleLowerCase().split(e).map(function(s){return pe(s)}),i={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},a=r.filter(function(s){return!ls.includes(s)});return Jr({},i,{keys:a,description:n,hotkey:t})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(t){t.key!==void 0&&us([pe(t.key),pe(t.code)])}),document.addEventListener("keyup",function(t){t.key!==void 0&&ds([pe(t.key),pe(t.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){ge.clear()})})();var ge=new Set;function To(t){return Array.isArray(t)}function Xa(t,e){e===void 0&&(e=",");var n=To(t)?t:t.split(e);return n.every(function(r){return ge.has(r.trim().toLowerCase())})}function us(t){var e=Array.isArray(t)?t:[t];ge.has("meta")&&ge.forEach(function(n){return!Ya(n)&&ge.delete(n.toLowerCase())}),e.forEach(function(n){return ge.add(n.toLowerCase())})}function ds(t){var e=Array.isArray(t)?t:[t];t==="meta"?ge.clear():e.forEach(function(n){return ge.delete(n.toLowerCase())})}function Qa(t,e,n){(typeof n=="function"&&n(t,e)||n===!0)&&t.preventDefault()}function Ja(t,e,n){return typeof n=="function"?n(t,e):n===!0||n===void 0}function tc(t){return fs(t,["input","textarea","select"])}function fs(t,e){e===void 0&&(e=!1);var n=t.target,r=t.composed,i=null;return ec(n)&&r?i=t.composedPath()[0]&&t.composedPath()[0].tagName:i=n&&n.tagName,To(e)?!!(i&&e&&e.some(function(a){var s;return a.toLowerCase()===((s=i)==null?void 0:s.toLowerCase())})):!!(i&&e&&e)}function ec(t){return!!t.tagName&&!t.tagName.startsWith("-")&&t.tagName.includes("-")}function nc(t,e){return t.length===0&&e?(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):e?t.some(function(n){return e.includes(n)})||t.includes("*"):!0}var rc=function(e,n,r){r===void 0&&(r=!1);var i=n.alt,a=n.meta,s=n.mod,c=n.shift,l=n.ctrl,u=n.keys,f=e.key,d=e.code,m=e.ctrlKey,h=e.metaKey,g=e.shiftKey,_=e.altKey,v=pe(d),w=f.toLowerCase();if(!(u!=null&&u.includes(v))&&!(u!=null&&u.includes(w))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(v))return!1;if(!r){if(i===!_&&w!=="alt"||c===!g&&w!=="shift")return!1;if(s){if(!h&&!m)return!1}else if(a===!h&&w!=="meta"&&w!=="os"||l===!m&&w!=="ctrl"&&w!=="control")return!1}return u&&u.length===1&&(u.includes(w)||u.includes(v))?!0:u?Xa(u):!u},oc=ce(void 0),ic=function(){return Dt(oc)};function hs(t,e){return t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(t).length===Object.keys(e).length&&Object.keys(t).reduce(function(n,r){return n&&hs(t[r],e[r])},!0):t===e}var sc=ce({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableSc
* Toastify js 1.12.0
* https://github.com/apvarun/toastify-js
* @license MIT licensed
*
* Copyright (C) 2018 Varun A P
*/var uc=tr.exports,oi;function dc(){return oi||(oi=1,function(t){(function(e,n){t.exports?t.exports=n():e.Toastify=n()})(uc,function(e){var n=function(s){return new n.lib.init(s)},r="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:r,constructor:n,init:function(s){return s||(s={}),this.options={},this.toastElement=null,this.options.text=s.text||n.defaults.text,this.options.node=s.node||n.defaults.node,this.options.duration=s.duration===0?0:s.duration||n.defaults.duration,this.options.selector=s.selector||n.defaults.selector,this.options.callback=s.callback||n.defaults.callback,this.options.destination=s.destination||n.defaults.destination,this.options.newWindow=s.newWindow||n.defaults.newWindow,this.options.close=s.close||n.defaults.close,this.options.gravity=s.gravity==="bottom"?"toastify-bottom":n.defaults.gravity,this.options.positionLeft=s.positionLeft||n.defaults.positionLeft,this.options.position=s.position||n.defaults.position,this.options.backgroundColor=s.backgroundColor||n.defaults.backgroundColor,this.options.avatar=s.avatar||n.defaults.avatar,this.options.className=s.className||n.defaults.className,this.options.stopOnFocus=s.stopOnFocus===void 0?n.defaults.stopOnFocus:s.stopOnFocus,this.options.onClick=s.onClick||n.defaults.onClick,this.options.offset=s.offset||n.defaults.offset,this.options.escapeMarkup=s.escapeMarkup!==void 0?s.escapeMarkup:n.defaults.escapeMarkup,this.options.ariaLive=s.ariaLive||n.defaults.ariaLive,this.options.style=s.style||n.defaults.style,s.backgroundColor&&(this.options.style.background=s.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var s=document.createElement("div");s.className="toastify on "+this.options.className,this.options.position?s.className+=" toastify-"+this.options.position:this.options.positionLeft===!0?(s.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):s.className+=" toastify-right",s.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)s.style[c]=this.options.style[c];if(this.options.ariaLive&&s.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)s.appendChild(this.options.node);else if(this.options.escapeMarkup?s.innerText=this.options.text:s.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?s.appendChild(l):s.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(v){v.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?s.insertAdjacentElement("afterbegin",u):s.appendChild(u)}if(this.options.stopOnFocus&&this.options.duration>0){var d=this;s.addEventListener("mouseover",function(v){window.clearTimeout(s.timeOutValue)}),s.addEventListener("mouseleave",function(){s.timeOutValue=window.setTimeout(function(){d.removeElement(s)},d.options.duration)})}if(typeof this.options.destination<"u"&&s.addEventListener("click",(function(v){v.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.
`);m.innerHTML=`<code>${d.innerHTML.trim()}</code>`,d.replaceWith(m)}}if(l){const d=[...s.querySelectorAll("p")].filter(m=>Yl.test(m.innerText));for(const m of d){const h=[m];let g=!1,_=m;for(;_.nextElementSibling;){const v=_.nextElementSibling;if(v&&v.tagName==="P")if(Xl.test(v.innerText)){h.push(v),g=!0;break}else h.push(v);else break;_=v}if(g){const v=document.createElement("pre");for(const b of h)for(const T of b.querySelectorAll("br"))T.replaceWith(`
`);const w=h.map(b=>b.innerHTML).join(`
`);v.innerHTML=`<code tabindex="0">${w}</code>`,m.replaceWith(v);for(const b of h)b.remove()}}}if(a.includes("`")){u=Dr(s);for(const f of u){let d=Mr(f.nodeValue);Ql.test(d)&&(d=d.replaceAll(nu,"<code>$1</code>")),De.innerHTML=d,f.replaceWith(...De.childNodes)}}if(Jl.test(a)){u=Dr(s,{rejectFilter:["A"]});for(const f of u){let d=Mr(f.nodeValue);tu.test(d)&&(d=d.replaceAll(eu,'<a href="https://twitter.com/$2" rel="nofollow noopener" target="_blank">$1</a>')),De.innerHTML=d,f.replaceWith(...De.childNodes)}}if(a.includes("#")){let f=null;const d=[...s.querySelectorAll("p")].filter((m,h)=>{let g=0;for(let _=0;_<m.childNodes.length;_++){const v=m.childNodes[_];if(v.nodeType===Node.TEXT_NODE){if(v.textContent.trim()!=="")return!1}else if(v.tagName!=="BR")if(v.tagName==="A"){const w=v.textContent.trim();if(!w||!w.startsWith("#"))return!1;g++}else return!1}if(g>3||g>1&&f&&h===f+1)return f=h,!0});if(d!=null&&d.length)for(const m of d)m.classList.add("hashtag-stuffing"),m.title=m.innerText}if(a.includes("<img")){const f=s.querySelectorAll("img");for(let d=0;d<f.length;d++){const m=f[d],h=m.getAttribute("width")||m.naturalWidth,g=m.getAttribute("height")||m.naturalHeight;h&&g&&m.style.setProperty("--original-aspect-ratio",`${h}/${g}`)}}for(const f of s.childNodes)if(f.nodeType===Node.TEXT_NODE){const d=document.createElement("span");d.textContent=f.textContent,s.replaceChild(d,f)}return i&&queueMicrotask(()=>i(s)),r?s:s.innerHTML}const zs=Lt(ou),iu=["STYLE","IMG","VIDEO","AUDIO","AREA","MAP","TRACK","EMBED","IFRAME","OBJECT","PICTURE","PORTAL","SOURCE","SVG","MATH","CANVAS","NOSCRIPT","SCRIPT","INPUT","OPTION","TEXTAREA","SLOT","TEMPLATE"],su=Object.fromEntries(iu.map(t=>[t,!0])),au=/^(https?:\/\/(www\.)?|xmpp:)/,Pr=30;function cu(t){var e;if(!(!t||(e=t.querySelector)!=null&&e.call(t,"*")))try{const n=t.innerText.trim(),r=(n.match(au)||[])[0]||"";if(!r)return;const i=n.slice(r.length,r.length+Pr),a=n.slice(r.length+Pr),s=n.slice(r.length).length>Pr;t.innerHTML=`<span class="invisible">${r}</span><span class=${s?"ellipsis":""}>${i}</span><span class="invisible">${a}</span>`}catch{}}function Dr(t,e={}){var s;const n=[],r=Object.assign({},su,(s=e.rejectFilter)==null?void 0:s.reduce((c,l)=>(c[l]=!0,c),{})),i=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,{acceptNode(c){return r[c.parentNode.nodeName]?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}},!1);let a;for(;a=i.nextNode();)n.push(a);return n}const Oe=document.createElement("div");function lu(t,e){if(!t)return"";const{preProcess:n}=e||{};return Oe.innerHTML=t.replace(/<\/p>/g,`</p>
`).replace(/<\/li>/g,`</li>
`),Oe.querySelectorAll("br").forEach(r=>{r.replaceWith(`
`)}),n==null||n(Oe),Oe.querySelectorAll(".invisible").forEach(r=>{r.remove()}),Oe.querySelectorAll(".ellipsis").forEach(r=>{r.append("...")}),Oe.innerText.replace(/[\r\n]{3,}/g,`
`).trim()}const gr=Lt(lu);function uu(t){const{mentions:e=[],instance:n,previewMode:r,statusURL:i}=t||{};return a=>{var f,d;let{target:s}=a;if(s=s.closest("a"),!s||a.metaKey||a.ctrlKey||a.shiftKey||a.altKey||a.which===2)return;const c=(f=s.previousSibling)==null?void 0:f.textContent,l=c==null?void 0:c.endsWith("@"),u=s.innerText.startsWith("@");if((s.classList.contains("u-url")||s.classList.contains("mention"))&&u||l&&!u){const m=(s.querySelector("span")||s).innerText.trim(),h=m.replace(/^@/,""),g=s.getAttribute("href"),_=e.find(v=>v.url===g)||e.find(v=>v.acct===h||v.username===h);if(_)a.preventDefault(),a.stopPropagation(),H.showAccount={account:_.acct,instance:n};else if(!/^http/i.test(m)){a.preventDefault(),a.stopPropagation();const v=s.getAttribute("href");H.showAccount={account:v,instance:n}}}else if(!r){const m=c==null?void 0:c.endsWith("#");if(s.classList.contains("hashtag")||m){a.preventDefault(),a.stopPropagation();const h=s.innerText.replace(/^#/,"").trim(),g=n?`#/${n}/t/${h}`:`#/t/${h}`;location.hash=g}else(d=H.unfurledLinks[s.href])!=null&&d.url&&i!==s.href&&(a.preventDefault(),a.stopPropagation(),H.prevLocation={pathname:location.hash.replace(/^#/,"")},location.hash=`#${H.unfurledLinks[s.href].url}`)}}}function Xf(t,e){return()=>At.number(t,{style:"unit",unit:e,unitDisplay:"long"})}const du=Lt(()=>new Intl.DateTimeFormat().resolvedOptions().locale),fu=t=>{const{locale:e,dateYear:n,hideTime:r,formatOpts:i,forceOpts:a}=t||{},s=e.replace(/-[a-z]+$/i,""),c=bn([s],[du],e),l=new Date().getFullYear(),u=a||{year:n===l?void 0:"numeric",month:"short",day:"numeric",hour:r?void 0:"numeric",minute:r?void 0:"numeric",...i};try{return Intl.DateTimeFormat(c,u)}catch{}try{return Intl.DateTimeFormat(e,u)}catch{}return Intl.DateTimeFormat(void 0,u)},hu=Lt(fu);function xn(t,e){return t instanceof Date||(t=new Date(t)),hu({dateYear:t.getFullYear(),locale:At.locale,...e}).format(t)}function re(t){try{return At.number(t,{notation:"compact",roundingMode:"floor"})}catch{return t}}const Ti=5e3;function Zn(t){if(t||(t=!0),H.showCompose){H.composerState.minimized?Ct({duration:Ti,text:At._({id:"/4fHR1"})}):Ct({duration:Ti,text:At._({id:"vvl08N"})});return}gc(),H.showCompose=t}function Qf({skeleton:t,account:e,avatarSize:n="xl",useAvatarStatic:r=!1,instance:i,external:a,internal:s,onClick:c,showActivity:l=!1,showStats:u=!1,accountInstance:f,hideDisplayName:d=!1,relationship:m={},excludeRelationshipAttrs:h=[]}){const{_:g}=te();if(t)return o("div",{class:"account-block skeleton",children:[o(ie,{size:n}),o("span",{children:[o("b",{children:"████████"}),o("br",{}),o("span",{class:"account-block-acct",children:"██████"})]})]});if(!e)return null;const{id:_,acct:v,avatar:w,avatarStatic:b,displayName:T,username:A,emojis:p,url:x,statusesCount:E,lastStatusAt:L,bot:M,fields:R,note:S,group:I,followersCount:N,createdAt:W,locked:B}=e;let[X,it,rt]=v.match(/([^@]+)(@.+)/i)||[,v];f&&(rt=`@${f}`);const Q=R==null?void 0:R.find(ht=>!!ht.verifiedAt&&!!ht.value),Y={};for(const ht in m)h.includes(ht)||(Y[ht]=m[ht]);const pt=Y.following||Y.followedBy||Y.requested;return o("a",{class:"account-block",href:x,target:a?"_blank":null,title:rt?v:`@${v}`,onClick:ht=>{if(!a){if(ht.preventDefault(),c)return c(ht);s?location.hash=`/${i}/a/${_}`:H.showAccount={account:e,instance:i}}},children:[o("div",{class:"avatar-container",children:o(ie,{url:r?b:w||b,size:n,squircle:M})}),o("span",{class:"account-block-content",children:[!d&&o($,{children:T?o("b",{children:o(je,{text:T,emojis:p})}):o("b",{children:A})})," ",o("span",{class:"account-block-acct bidi-isolate",children:[rt?"":"@",it,o("wbr",{}),rt,B&&o($,{children:[" ",o(P,{icon:"lock",size:"s",alt:g({id:"G2fuEb"})})]})]}),l&&o("div",{class:"account-block-stats",children:[o(D,{id:"ajzDof",values:{0:re(E)}}),!!L&&o($,{children:[" ","·"," ",o(D,{id:"f8bJ3C",values:{0:xn(L,{hideTime:!0})}})]})]}),u&&o("div",{class:"account-block-stats",children:[M&&o($,{children:o("span",{class:"tag collapsed",children:[o(P,{icon:"bot"})," ",o(D,{id:"9Vdq+j"})]})}),!!I&&o($,{children:o("span",{class:"tag collapse
<style ${n}>
:host {
--aspect-ratio: var(--lite-youtube-aspect-ratio, 16 / 9);
--aspect-ratio-short: var(--lite-youtube-aspect-ratio-short, 9 / 16);
--frame-shadow-visible: var(--lite-youtube-frame-shadow-visible, yes);
contain: content;
display: block;
position: relative;
width: 100%;
aspect-ratio: var(--aspect-ratio);
}
@media (max-width: 40em) {
:host([short]) {
aspect-ratio: var(--aspect-ratio-short);
}
}
#frame, #fallbackPlaceholder, iframe {
position: absolute;
width: 100%;
height: 100%;
left: 0;
}
#frame {
cursor: pointer;
}
#fallbackPlaceholder, slot[name=image]::slotted(*) {
object-fit: cover;
width: 100%;
}
@container style(--frame-shadow-visible: yes) {
#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>
<slot name="image">
<source id="webpPlaceholder" type="image/webp">
<source id="jpegPlaceholder" type="image/jpeg">
<img id="fallbackPlaceholder" referrerpolicy="origin" loading="lazy">
</slot>
</picture>
<button id="playButton"></button>
</div>
`,this.domRefFrame=e.querySelector("#frame"),this.domRefImg={fallback:e.querySelector("#fallbackPlaceholder"),webp:e.querySelector("#webpPlaceholder"),jpeg:e.querySelector("#jpegPlaceholder")},this.domRefPlayButton=e.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.autoPause)&&this.initIntersectionObserver()}attributeChangedCallback(e,n,r){n!==r&&(this.setupComponent(),this.domRefFrame.classList.contains("activated")&&(this.domRefFrame.classList.remove("activated"),this.shadowRoot.querySelector("iframe").remove(),this.isIframeLoaded=!1))}addIframe(e=!1){if(!this.isIframeLoaded){let n=e?0:1;const r=this.noCookie?"-nocookie":"";let i;this.playlistId?i=`?listType=playlist&list=${this.playlistId}&`:i=`${this.videoId}?`,this.autoPause&&(this.params="enablejsapi=1"),this.isYouTubeShort()&&(this.params=`loop=1&mute=1&modestbranding=1&playsinline=1&rel=0&enablejsapi=1&playlist=${this.videoId}`,n=1);const a=`
<iframe credentialless frameborder="0" title="${this.videoTitle}"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen
src="https://www.youtube${r}.com/embed/${i}autoplay=${n}&${this.params}"
></iframe>`;this.domRefFrame.insertAdjacentHTML("beforeend",a),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 r,i;const e=`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=e,this.domRefImg.jpeg.srcset=n,this.domRefImg.fallback.src=n,this.domRefImg.fallback.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),(i=(r=this.domRefImg)==null?void 0:r.fallback)==null||i.setAttribute("alt",`${this.videoPlay}: ${this.videoTitle}`)}initIntersectionObserver(){const e={root:null,rootMargin:"0px",threshold:0};new IntersectionObserver((r,i)=>{r.forEach(a=>{a.isIntersecting&&!this.isIframeLoaded&&(zt.warmConnections(this),this.addIframe(!0),i.unobserve(this))})},e).observe(this),this.autoPause&&new IntersectionObserver((i,a)=>{i.forEach(s=>{var c,l;s.intersectionRatio!==1&&((l=(c=this.shadowRoot.querySelector("iframe"))==null?void 0:c.contentWindow)==null||l.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"))})},{threshold:1}).observe(this)}attemptShortAutoPlay(){this.isYouTubeShort()&&setTimeout(()=>{var e,n;(n=(e=this.shadowRoot.querySelector("iframe"))==null?void 0:e.contentWindow)==null||n.postMessage('{"event":"command","func":"playVideo","args":""}',"*")},2e3)}isYouTubeShort(){return this.getAttribute("short")===""&&window.matchMedia("(max-width: 40em)").matches}static addPrefetch(e,n){const r=document.createElement("link");r.rel=e,r.href=n,r.crossOrigin="true",document.head.append(r)}static warmConnections(e){zt.isPreconnected||window.liteYouTubeIsPreconnected||(zt.addPrefetch("preconnect","https://i.ytimg.com/"),zt.addPrefetch("preconnect","https://s.ytimg.com"),e.noCookie?zt.addPrefetch("preconnect","https://www.youtube-nocookie.com"):(zt.addPrefetch("preconnect","https://www.youtube.com"),zt.addPrefetch("preconnect","https://www.google.com"),zt.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),zt.addPrefetch("preconnect","https://static.doubleclick.net")),zt.isPreconnected=!0,window.liteYouTubeIsPreconnected=!0)}}zt.isPreconnected=!1;customElements.define("lite-youtube",zt);const Ks=new Uint8Array(128);for(let t=0;t<83;t++)Ks["0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~".charCodeAt(t)]=t;const rr=(t,e,n)=>{let r=0;for(;e<n;)r*=83,r+=Ks[t.charCodeAt(e++)];return r},Ws=Math.pow,Sn=Math.PI,qu=Sn*2,Zs=3294.6,qs=269.025,Gu=t=>t>10.31475?Ws(t/qs+.052132,2.4):t/Zs,Hr=t=>~~(t>1227e-8?qs*Ws(t,.416666)-13.025:t*Zs+1),vn=t=>(t<0?-1:1)*t*t,Mi=t=>{for(t+=Sn/2;t>Sn;)t-=qu;const e=1.27323954*t-.405284735*vn(t);return .225*(vn(e)-e)+e};function Mo(t){const e=rr(t,2,6);return[e>>16,e>>8&255,e&255]}function Yu(t,e,n,r){const i=rr(t,0,1),a=i%9+1,s=~~(i/9)+1,c=a*s;let l=0,u=0,f=0,d=0,m=0,h=0,g=0,_=0,v=0,w=0,b=0,T=0;const A=(rr(t,1,2)+1)/13446*(r|1),p=new Float64Array(c*3),x=Mo(t);for(l=0;l<3;l++)p[l]=Gu(x[l]);for(l=1;l<c;l++)T=rr(t,4+l*2,6+l*2),p[l*3]=vn(~~(T/361)-9)*A,p[l*3+1]=vn(~~(T/19)%19-9)*A,p[l*3+2]=vn(T%19-9)*A;const E=new Float64Array(s*n),L=new Float64Array(a*e);for(u=0;u<s;u++)for(d=0;d<n;d++)E[u*n+d]=Mi(Sn*d*u/n);for(l=0;l<a;l++)for(f=0;f<e;f++)L[l*e+f]=Mi(Sn*f*l/e);const M=e*4,R=new Uint8ClampedArray(M*n);for(d=0;d<n;d++)for(f=0;f<e;f++){for(m=h=g=0,u=0;u<s;u++)for(v=E[u*n+d],l=0;l<a;l++)_=L[l*e+f]*v,w=(l+u*a)*3,m+=p[w]*_,h+=p[w+1]*_,g+=p[w+2]*_;b=4*f+d*M,R[b]=Hr(m),R[b+1]=Hr(h),R[b+2]=Hr(g),R[b+3]=255}return R}var Br,Pi;function Xu(){return Pi||(Pi=1,Br=(e,n={})=>{const r=n.char||" ",i=n.count||2;let a=0;const s=[];return e.reverse().reduce((c,l)=>{s.length&&a&&s[a]&&s[a]===l.substring(1,s[a].length+1)&&(s.splice(a,1),a--);const f=[`${r.repeat(a?a*i:0)}${l}`,...c];return l.substring(0,2)==="</"&&(a++,s[a]=l.substring(2,l.length-1)),f},[]).join(`
`)}),Br}var Ur,Di;function Qu(){if(Di)return Ur;Di=1;const t=n=>n.trim().replace(/(^(\s|\t)+|(( |\t)+)$)/gm,"");return Ur={mergeAttributesWithElements:n=>{const r=t(n).split(`
`),i=[];let a="";for(let s=0;s<r.length;s+=1){const c=r[s];if(c.endsWith("/>")){i.push(`${a}${c.slice(0,-2)} />`),a="";continue}if(c.endsWith(">")){i.push(`${a}${c.startsWith(">")||c.startsWith("<")?"":" "}${c}`),a="";continue}a+=a.length?` ${c}`:c}return i},removeEmptyLines:t},Ur}var jr,Oi;function Ju(){if(Oi)return jr;Oi=1;const t=Xu(),{mergeAttributesWithElements:e}=Qu();return jr=(r,i={})=>{const a=e(r);return t(a,i)},jr}var td=Ju();const ed=wo(td);var hn=(t=>(t.Mouse="mouse",t.Touch="touch",t.Pointer="pointer",t))(hn||{}),mn=(t=>(t.CancelledByMovement="cancelled-by-movement",t.CancelledByRelease="cancelled-by-release",t.CancelledOutsideElement="cancelled-outside-element",t))(mn||{});const Gs=()=>typeof window=="object"?(window==null?void 0:window.PointerEvent)??null:null,nd=()=>typeof window=="object"?(window==null?void 0:window.TouchEvent)??null:null;function Ys(t){const{nativeEvent:e}=t,n=nd();return n&&e instanceof n||"touches"in t}function Xs(t){const e=Gs();return t.nativeEvent instanceof MouseEvent&&!(e&&t.nativeEvent instanceof e)}function Qs(t){const{nativeEvent:e}=t;if(!e)return!1;const n=Gs();return n&&e instanceof n||"pointerId"in e}function $i(t){return Xs(t)||Ys(t)||Qs(t)}function Ni(t){return Ys(t)?{x:t.touches[0].pageX,y:t.touches[0].pageY}:Xs(t)||Qs(t)?{x:t.pageX,y:t.pageY}:null}function rd(t){return{target:t.target,currentTarget:t.currentTarget,nativeEvent:t,persist:()=>{}}}function Js(t,{threshold:e=400,captureEvent:n=!1,detect:r=hn.Pointer,cancelOnMovement:i=!1,cancelOutsideElement:a=!0,filterEvents:s,onStart:c,onMove:l,onFinish:u,onCancel:f}={}){const d=O(!1),m=O(!1),h=O(),g=O(),_=O(t),v=O(null),w=Tt(p=>x=>{m.current||$i(x)&&(s!==void 0&&!s(x)||(n&&x.persist(),c==null||c(x,{context:p}),v.current=Ni(x),m.current=!0,h.current=x.currentTarget,g.current=setTimeout(()=>{_.current&&(_.current(x,{context:p}),d.current=!0)},e)))},[n,s,c,e]),b=Tt(p=>(x,E)=>{$i(x)&&m.current&&(v.current=null,n&&x.persist(),d.current?u==null||u(x,{context:p}):m.current&&(f==null||f(x,{context:p,reason:E??mn.CancelledByRelease})),d.current=!1,m.current=!1,g.current!==void 0&&clearTimeout(g.current))},[n,u,f]),T=Tt(p=>x=>{if(l==null||l(x,{context:p}),i!==!1&&v.current){const E=Ni(x);if(E){const L=i===!0?25:i,M={x:Math.abs(E.x-v.current.x),y:Math.abs(E.y-v.current.y)};(M.x>L||M.y>L)&&b(p)(x,mn.CancelledByMovement)}}},[b,i,l]),A=Tt(p=>{if(t===null)return{};switch(r){case hn.Mouse:{const x={onMouseDown:w(p),onMouseMove:T(p),onMouseUp:b(p)};return a&&(x.onMouseLeave=E=>{b(p)(E,mn.CancelledOutsideElement)}),x}case hn.Touch:return{onTouchStart:w(p),onTouchMove:T(p),onTouchEnd:b(p)};case hn.Pointer:{const x={onPointerDown:w(p),onPointerMove:T(p),onPointerUp:b(p)};return a&&(x.onPointerLeave=E=>b(p)(E,mn.CancelledOutsideElement)),x}}},[t,b,a,r,T,w]);return tt(()=>{if(!window)return;function p(x){const E=rd(x);b()(E)}return window.addEventListener("mouseup",p),window.addEventListener("touchend",p),window.addEventListener("pointerup",p),()=>{window.removeEventListener("mouseup",p),window.removeEventListener("touchend",p),window.removeEventListener("pointerup",p)}},[b]),tt(()=>()=>{g.current!==void 0&&clearTimeout(g.current)},[]),tt(()=>{_.current=t},[t]),A}function od({poll:t,lang:e,readOnly:n,refresh:r=()=>{},votePoll:i=()=>{}}){const{_:a}=te(),[s,c]=K("default"),{expired:l,expiresAt:u,id:f,multiple:d,options:m,ownVotes:h,voted:g,votersCount:_,votesCount:v,emojis:w}=t,b=!!u&&new Date(u),T=d?_:v;let A=0;T<=1e3?A=0:T<=1e4?A=1:T<=1e5&&(A=2);const[p,x]=K(!1),E=m.every(L=>L.votesCount!==null);return o("div",{lang:e,dir:"auto",class:`poll ${n?"read-only":""} ${s==="loading"?"loading":""}`,children:[p&&E||g||l?o($,{children:[o("div",{class:"poll-options",children:m.map((L,M)=>{const{title:R,votesCount:S}=L,I=T?S/T:0,N=I?I.toLocaleString(At.locale||void 0,{style:"percent",maximumFractionDigits:A}):"0%",W=S>0&&S===Math.max(...m.map(B=>B.votesCount));return o("div",{class:`poll-option poll-result ${W?"poll-option-leading":""}`,style:{"--percentage":`${I*100}%`},children:[o("div",{class:"poll-option-title",children:[o("span",{children:o(je,{tex
📊:
${r.options.map(c=>`${r.multiple?"▪️":"•"} ${c.title}`).join(`
`)}`),i!=null&&i.length&&(a+=" "+i.map(c=>({image:"🖼️",gifv:"🎞️",video:"📹",audio:"🎵",unknown:""})[c.type]||"").join("")),a}function ad(t,e,n){var r=this,i=O(null),a=O(0),s=O(null),c=O([]),l=O(),u=O(),f=O(t),d=O(!0);f.current=t;var m=typeof window<"u",h=!e&&e!==0&&m;if(typeof t!="function")throw new TypeError("Expected a function");e=+e||0;var g=!!(n=n||{}).leading,_=!("trailing"in n)||!!n.trailing,v="maxWait"in n,w="debounceOnServer"in n&&!!n.debounceOnServer,b=v?Math.max(+n.maxWait||0,e):null;tt(function(){return d.current=!0,function(){d.current=!1}},[]);var T=ot(function(){var A=function(R){var S=c.current,I=l.current;return c.current=l.current=null,a.current=R,u.current=f.current.apply(I,S)},p=function(R,S){h&&cancelAnimationFrame(s.current),s.current=h?requestAnimationFrame(R):setTimeout(R,S)},x=function(R){if(!d.current)return!1;var S=R-i.current;return!i.current||S>=e||S<0||v&&R-a.current>=b},E=function(R){return s.current=null,_&&c.current?A(R):(c.current=l.current=null,u.current)},L=function R(){var S=Date.now();if(x(S))return E(S);if(d.current){var I=e-(S-i.current),N=v?Math.min(I,b-(S-a.current)):I;p(R,N)}},M=function(){if(m||w){var R=Date.now(),S=x(R);if(c.current=[].slice.call(arguments),l.current=r,i.current=R,S){if(!s.current&&d.current)return a.current=i.current,p(L,e),g?A(i.current):u.current;if(v)return p(L,e),A(i.current)}return s.current||p(L,e),u.current}};return M.cancel=function(){s.current&&(h?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,c.current=i.current=l.current=s.current=null},M.isPending=function(){return!!s.current},M.flush=function(){return s.current?E(Date.now()):u.current},M},[g,v,e,b,_,h,m,w]);return T}function cd(t,e,n){var r=n===void 0?{}:n,i=r.leading,a=r.trailing;return ad(t,e,{maxWait:e,leading:i===void 0||i,trailing:a===void 0||a})}function ld(t,e){var n=O(null),r=O(null);r.current=e;var i=O(null);tt(function(){a()});var a=Tt(function(){var s=i.current,c=r.current,l=s||(c?c instanceof Element?c:c.current:null);n.current&&n.current.element===l&&n.current.subscriber===t||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:l,subscriber:t,cleanup:l?t(l):void 0})},[t]);return tt(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),Tt(function(s){i.current=s,a()},[a])}function zi(t,e,n){return t[e]?t[e][0]?t[e][0][n]:t[e][n]:e==="contentBoxSize"?t.contentRect[n==="inlineSize"?"width":"height"]:void 0}function ud(t){t===void 0&&(t={});var e=t.onResize,n=O(void 0);n.current=e;var r=t.round||Math.round,i=O(),a=K({width:void 0,height:void 0}),s=a[0],c=a[1],l=O(!1);tt(function(){return l.current=!1,function(){l.current=!0}},[]);var u=O({width:void 0,height:void 0}),f=ld(Tt(function(d){return(!i.current||i.current.box!==t.box||i.current.round!==r)&&(i.current={box:t.box,round:r,instance:new ResizeObserver(function(m){var h=m[0],g=t.box==="border-box"?"borderBoxSize":t.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",_=zi(h,g,"inlineSize"),v=zi(h,g,"blockSize"),w=_?r(_):void 0,b=v?r(v):void 0;if(u.current.width!==w||u.current.height!==b){var T={width:w,height:b};u.current.width=w,u.current.height=b,n.current?n.current(T):l.current||c(T)}})}),i.current.instance.observe(d,{box:t.box}),function(){i.current&&i.current.instance.unobserve(d)}},[t.box,r]),t.ref);return ot(function(){return{ref:f,width:s.width,height:s.height}},[f,s.width,s.height])}function or({className:t="truncated"}={}){const e=O(),n=cd(({height:r})=>{if(e.current){const{scrollHeight:i}=e.current;let a=i>r;if(a){const{height:s,maxHeight:c}=getComputedStyle(e.current),l=parseInt(c||s,10);a=i>l}e.current.classList.toggle(t,a)}},300);return ud({ref:e,box:"border-box",onResize:n}),e}const _n={public:"earth",unlisted:"group",private:"lock",direct:"message",local:"building"};var na="kvfysmfp",ra="ufhsfnkm",dd=".".concat(na,"{overflow:hidden;touch-action:none}.").concat(ra,"{transform-origin: 0 0}"),fd=typeof window>"u",hd=function(){return!fd&&("ontouchstart"in window||navigator.maxTouchPoints>0)};var
<video
src="${w}"
poster="${_}"
width="${x}"
height="${E}"
data-orientation="${S}"
preload="auto"
autoplay
muted
playsinline
${U?"loop":""}
ondblclick="this.paused ? this.play() : this.pause()"
${nt?"ontimeupdate=\"this.closest('.media-gif') && this.closest('.media-gif').style.setProperty('--progress', `${~~((this.currentTime / this.duration) * 100)}%`)\"":""}
></video>
`,In=`
<video
src="${w}"
poster="${_}"
width="${x}"
height="${E}"
data-orientation="${S}"
preload="auto"
autoplay
playsinline
${U?"loop":""}
controls
></video>
`;return o(G,{children:o(Y,{class:`media ${t} media-${J?"gif":"video"} ${vt?"media-contain":""} ${at?"media-hover-animate":""}`,"data-orientation":S,"data-formatted-duration":i?void 0:yt,"data-label":J&&!i&&!vt?"GIF":void 0,"data-has-alt":!F||void 0,style:!i&&Ft,onClick:mt=>{if(at)try{N.current.pause()}catch{}f(mt)},onMouseEnter:()=>{if(at)try{N.current.play()}catch{}},onMouseLeave:()=>{if(at)try{N.current.pause()}catch{}},onFocus:()=>{if(at)try{N.current.play()}catch{}},onBlur:()=>{if(at)try{N.current.pause()}catch{}},children:[i||vt?J&&i?o(ji,{...Q,enabled:!0,children:o("div",{ref:B,dangerouslySetInnerHTML:{__html:Ut}})}):J?o("div",{class:"video-container",dangerouslySetInnerHTML:{__html:Ut}}):o("div",{class:"video-container",dangerouslySetInnerHTML:{__html:In}}):J?o("video",{ref:N,src:w,poster:_,width:x,height:E,"data-orientation":S,preload:"auto",playsinline:!0,loop:!0,muted:!0,onTimeUpdate:nt?mt=>{const{target:dt}=mt,jt=dt==null?void 0:dt.closest(".media-gif");if(jt){const Ot=dt.currentTime/dt.duration*100;jt.style.setProperty("--progress",`${Ot}%`)}}:void 0}):o($,{children:[_?o("img",{src:_,alt:F?"":m,width:x,height:E,"data-orientation":S,loading:"lazy",decoding:"async",onLoad:mt=>{if(!R){const dt=mt.target.closest(".media");if(dt){const{naturalHeight:jt,naturalWidth:Ot}=mt.target;dt.dataset.orientation=Ot>jt?"landscape":"portrait",dt.style.setProperty("--width",`${Ot}px`),dt.style.setProperty("--height",`${jt}px`),dt.style.aspectRatio=`${Ot}/${jt}`}}}}):o("video",{src:w+"#t=0.1",width:x,height:E,"data-orientation":S,preload:"metadata",muted:!0,disablePictureInPicture:!0,onLoadedMetadata:mt=>{if(!et){const{duration:dt}=mt.target;if(dt){const jt=qr(dt),Ot=mt.target.closest(".media-video");Ot&&(Ot.dataset.formattedDuration=jt)}}}}),o("div",{class:"media-play",children:o(P,{icon:"play",size:"xl",alt:"▶"})})]}),!i&&!F&&o(Gr,{alt:m,lang:r,index:l})]})})}else if(b==="audio"||V){const et=qr(T.duration);return o(G,{children:o(Y,{class:`media media-audio ${t}`,"data-formatted-duration":i?void 0:et,"data-has-alt":!F||void 0,onClick:f,style:!i&&Ft,children:[i?o("audio",{src:v||w,preload:"none",controls:!0,autoPlay:!0}):_?o("img",{src:_,alt:F?"":m,width:x,height:E,"data-orientation":S,loading:"lazy",onError:z=>{var J,U;try{(U=(J=z.target)==null?void 0:J.remove)==null||U.call(J)}catch{}}}):null,!i&&o($,{children:[o("div",{class:"media-play",children:o(P,{icon:"play",size:"xl",alt:"▶"})}),!F&&o(Gr,{alt:m,lang:r,index:l})]})]})})}}function Od(t){return URL.parse(t,location.origin)}const ho=qe(Dd,(t,e)=>{const n=t.media||{},r=e.media||{};return(n==null?void 0:n.id)===(r==null?void 0:r.id)&&n.url===r.url&&t.to===e.to&&t.class===e.class}),$d=280,Nd=140,Fd=ss({limit:1,interval:1e3});function zd(t,e){return e.v1.accounts.$select(t).fetch()}const Vd=hr(Fd(zd)),Se={public:{id:"7d1a0d"},local:{id:"d5zxa4"},unlisted:{id:"WDcQq9"},private:{id:"o34OrG"},direct:{id:"IV4QaU"}},Hd=window.ontouchstart!==void 0&&/iPad|iPhone|iPod/.test(navigator.userAgent),Bd=new Intl.RelativeTimeFormat,Ki=80;function Ud(t){var e;return(e=t==null?void 0:t.options)!=null&&e.length?`📊:
${t.options.map(n=>`- ${n.title}${n.votesCount>=0?` (${n.votesCount})`:""}`).join(`
`)}`:""}function Yr(t){const{spoilerText:e,content:n,poll:r}=t;return(e?`${e}
`:"")+gr(n)+Ud(r)}function sa(t=[],e=document){for(const n of t)try{return e.querySelectorAll(n)}catch{}return[]}function jd(t){return!t||(t=t.trim(),!t)?!1:!!gr(t,{preProcess:n=>{for(const r of sa([".mention, pre, code, a:has(.invisible)",".mention, pre, code"],n))r.remove()}})}function Kd(t){return gr(t,{preProcess:e=>{for(const n of sa([".mention, .hashtag, pre, code, a:has(.invisible)",".mention, .hashtag, pre, code"],e))n.remove();for(const n of e.querySelectorAll("a")){const r=n.innerText.trim();(r.startsWith("https://")||r.startsWith("http://"))&&n.remove()}}})}const Wd=/^http/i,Wi=({post:t,instance:e,previewMode:n})=>{const{content:r,emojis:i,language:a,mentions:s,url:c}=t,l=O();return ke(()=>{if(!l.current)return;const u=zs(r,{emojis:i,returnDOM:!0});for(const f of u.querySelectorAll('a.u-url[target="_blank"]'))Wd.test(f.innerText.trim())||f.removeAttribute("target");l.current.replaceChildren(u.cloneNode(!0))},[r,i.length]),o("div",{ref:l,lang:a,dir:"auto",class:"inner-content",onClick:uu({mentions:s,instance:e,previewMode:n,statusURL:c})})},Zd={s:"small",m:"medium",l:"large"},qd=hr(async t=>{const{detectAll:e}=await k(async()=>{const{detectAll:i}=await import("./tinyld-light-tbgyvj3S.js");return{detectAll:i}},[],import.meta.url);if(t=t==null?void 0:t.trim(),(t==null?void 0:t.length)>500)return null;const r=e(t)[0];return r!=null&&r.lang&&(r==null?void 0:r.accuracy)>.5?r.lang:null}),yn={id:"8fZueG"},mo={},Zi=(t,e=[])=>{if(!t)return!1;const n=Is(!0),r=t!==n&&!bn([t],[n])&&!e.find(i=>t===i||bn([t],[i]));return mo[t+e]=!0,r};function Ze({statusID:t,status:e,instance:n,size:r="m",contentTextWeight:i,readOnly:a,enableCommentHint:s,withinContext:c,skeleton:l,enableTranslate:u,forceTranslate:f,previewMode:d,onMediaClick:m,quoted:h,onStatusLinkClick:g=()=>{},showFollowedTags:_,allowContextMenu:v,showActionsBar:w,showReplyParent:b,mediaFirst:T}){var Jo,ti,ei,ni;const{_:A,_:p}=te();if(l)return o("div",{class:`status skeleton ${T?"status-media-first small":""}`,children:[!T&&o(ie,{size:"xxl"}),o("div",{class:"container",children:[o("div",{class:"meta",children:[(r==="s"||T)&&o(ie,{size:"m"})," ███ ████████"]}),o("div",{class:"content-container",children:[T&&o("div",{class:"media-first-container"}),o("div",{class:`content ${T?"media-first-content":""}`,children:o("p",{children:"████ ████████"})})]})]})]});const{masto:x,instance:E,authenticated:L}=sr({instance:n}),{instance:M}=sr(),R=E===M;let S=oe(t||(e==null?void 0:e.id),E);const I=kn(H);if(e||(e=I.statuses[S]||I.statuses[t],S=oe(e==null?void 0:e.id,E)),!e)return null;const{account:{acct:N,avatar:W,avatarStatic:B,id:X,url:it,displayName:rt,username:Q,emojis:Y,bot:pt,group:ht},id:V,repliesCount:st,reblogged:ut,reblogsCount:Rt,favourited:gt,favouritesCount:Nt,bookmarked:It,poll:bt,muted:Ft,sensitive:xt,spoilerText:F,visibility:G,language:ue,editedAt:ee,filtered:et,card:z,createdAt:J,inReplyToId:U,inReplyToAccountId:yt,content:at,mentions:vt,mediaAttachments:nt,reblog:Ut,uri:In,url:mt,emojis:dt,tags:jt,pinned:Ot,_deleted:qt,_pinned:Ie,emojiReactions:Ce}=e,[Xe,Cn]=K(null);tt(()=>{if(!at||ue||Xe)return;let y;return y=setTimeout(async()=>{let C=await qd(Kd(at));Cn(C)},1e3),()=>clearTimeout(y)},[at,ue]);const _t=ue||Xe,Qe=!!(nt!=null&&nt.length);T&&Qe&&(r="s");const de=ot(()=>Eo(),[]),Z=ot(()=>de&&de===X,[X,de]),St=Dt(ta),kt=!Z&&!a&&!d&&Po(et,St);if((kt==null?void 0:kt.action)==="hide")return null;const $t=y=>{y.shiftKey};if(r!=="l"&&kt)return o(rf,{status:e,filterInfo:kt,instance:E,containerProps:{onMouseEnter:$t},showFollowedTags:!0,quoted:h});const ft=new Date(J),be=new Date(ee);let fe=vt==null?void 0:vt.find(y=>y.id===yt);!fe&&yt===V&&(fe={url:it,username:Q,displayName:rt});const[Le,Ln]=K(fe);if(!c&&!Le&&yt){const y=H.accounts[yt];y?Ln(y):Vd(yt,x).then(C=>{Ln(C),H.accounts[C.id]=C}).catch(C=>{})}const Je=yt===de||(vt==null?void 0:vt.find(y=>y.id===de)),Wt=ot(()=>!!(Qr.account.get("preferences")||{})["reading:expand:spoilers"],[]),Rn=ot(()=>{var C;return((C=(Qr.account.get("preferences")||{})["reading:expand:media"])==null?void 0:
${mt}`}})},children:[o(P,{icon:"quote"}),o("span",{children:o(D,{id:"ZhhOwV"})})]}),menuFooter:Go,disabled:!nn,onClick:async()=>{try{const y=await wr();!ct&&y&&Ct(p(ut?{id:"BgT3ls",values:{4:Q||N}}:{id:"iSYdyi",values:{5:Q||N}}))}catch{}},children:[o(P,{icon:"rocket"}),o("span",{children:Rt>0?re(Rt):p(ut?{id:"QzzGsY"}:{id:"PiVIlD"})})]}),o(Et,{onClick:Er,className:`menu-favourite ${gt?"checked":""}`,children:[o(P,{icon:"heart"}),o("span",{children:Nt>0?re(Nt):p(gt?{id:"OcUmcH"}:{id:"W9FRBT"})})]}),Wn("@mastodon/post-bookmark")&&o(Et,{onClick:Ko,className:`menu-bookmark ${It?"checked":""}`,children:[o(P,{icon:"bookmark"}),o("span",{children:p(It?{id:"q8EQYI"}:{id:"PZlHt8"})})]})]})}),!ct&&R&&(ct||w)&&o(an,{}),(ct||w)&&o($,{children:o(Et,{onClick:()=>{H.showGenericAccounts={heading:p({id:"+XOeb+"}),fetchAccounts:Ta,instance:E,showReactions:!0,postID:S}},children:[o(P,{icon:"react"}),o("span",{children:o(D,{id:"+XOeb+"})})]})}),!T&&o($,{children:[(u||!_t||Me)&&o(an,{}),u?o("div",{class:pn?"menu-horizontal":"",children:[o(Et,{disabled:vr,onClick:()=>{_a(!0)},children:[o(P,{icon:"translate"}),o("span",{children:o(D,{id:"pi8x/S"})})]}),pn&&o(Et,{onClick:()=>{const y=Yr(e);y&&Fi(y,_t)},children:[o(P,{icon:"speak"}),o("span",{children:o(D,{id:"yIBLq8"})})]})]}):(!_t||Me)&&o("div",{class:pn?"menu-horizontal":"",children:[o(mi,{to:`${E?`/${E}`:""}/s/${V}?translate=1`,children:[o(P,{icon:"translate"}),o("span",{children:o(D,{id:"pi8x/S"})})]}),pn&&o(Et,{onClick:()=>{const y=Yr(e);y&&Fi(y,_t)},children:[o(P,{icon:"speak"}),o("span",{children:o(D,{id:"yIBLq8"})})]})]})]}),(!ct&&R||u||!_t||Me)&&o(an,{}),!ct&&o($,{children:o(mi,{to:E?`/${E}/s/${V}`:`/s/${V}`,onClick:y=>{g(y,e)},children:[o(P,{icon:"arrows-right"}),o("small",{children:[o(D,{id:"8MkSAW",values:{0:Q||N},components:{0:o("span",{class:"bidi-isolate"})}}),o("br",{}),o("span",{class:"more-insignificant",children:[A(Se[G])," • ",Vo]})]})]})}),!!ee&&o($,{children:o(Et,{onClick:()=>{Mn(V)},children:[o(P,{icon:"history"}),o("small",{children:[o(D,{id:"QL+7Jw"}),o("br",{}),o("span",{class:"more-insignificant",children:o(D,{id:"DuJJm9",values:{editedDateText:Ho}})})]})]})}),o(Et,{href:mt,target:"_blank",children:[o(P,{icon:"external"}),o("small",{class:"menu-double-lines",style:{maxWidth:"16em"},children:ef(mt)})]}),o("div",{class:"menu-horizontal",children:[o(Et,{onClick:()=>{try{navigator.clipboard.writeText(mt),Ct(p({id:"edWbV6"}))}catch{Ct(p({id:"W1ewR0"}))}},children:[o(P,{icon:"link"}),o("span",{children:o(D,{id:"he3ygx"})})]}),qo&&(navigator==null?void 0:navigator.share)&&((ti=navigator==null?void 0:navigator.canShare)==null?void 0:ti.call(navigator,{url:mt}))&&o(Et,{onClick:()=>{try{navigator.share({url:mt})}catch{alert(p({id:"TtG3Uh"}))}},children:[o(P,{icon:"share"}),o("span",{children:o(D,{id:"LFKLqp"})})]})]}),qo&&ct&&o(Et,{onClick:()=>{br(!0)},children:[o(P,{icon:"code"}),o("span",{children:o(D,{id:"jdVwsS"})})]}),(Z||Je)&&o(an,{}),(Z||Je)&&o(Et,{onClick:async()=>{try{const y=await x.v1.statuses.$select(V)[Ft?"unmute":"mute"]();he(y,E),Ct(p(Ft?{id:"Pm+5jw"}:{id:"ywB7JM"}))}catch{Ct(p(Ft?{id:"c6jxNY"}:{id:"8SN9kN"}))}},children:Ft?o($,{children:[o(P,{icon:"unmute"}),o("span",{children:o(D,{id:"i51zUR"})})]}):o($,{children:[o(P,{icon:"mute"}),o("span",{children:o(D,{id:"OiUYO5"})})]})}),Z&&Sa&&o(Et,{onClick:async()=>{try{const y=await x.v1.statuses.$select(V)[Ot?"unpin":"pin"]();he(y,E),Ct(p(Ot?{id:"Yx809+"}:{id:"S6P6E+"}))}catch{Ct(p(Ot?{id:"A6cs15"}:{id:"vgUfWO"}))}},children:Ot?o($,{children:[o(P,{icon:"unpin"}),o("span",{children:o(D,{id:"XQMQZw"})})]}):o($,{children:[o(P,{icon:"pin"}),o("span",{children:o(D,{id:"lfHLsx"})})]})}),Z&&o("div",{class:"menu-horizontal",children:[Wn("@mastodon/post-edit")&&o(Et,{onClick:()=>{Zn({editStatus:e})},children:[o(P,{icon:"pencil"}),o("span",{children:o(D,{id:"ePK91l"})})]}),ct&&o(Ar,{subMenu:!0,confirmLabel:o($,{children:[o(P,{icon:"trash"}),o("span",{children:o(D,{id:"FbPNuJ"})})]}),itemProps:{className:"danger"},menuItemClassName:"danger",onClick:()=>{(async()=>{try{await x.v1.statuses.$select(V).remove();const y=cs(V,E);y.
${mt}`}})},children:[o(P,{icon:"quote"}),o("span",{children:o(D,{id:"ZhhOwV"})})]}),menuFooter:Go,children:o(Ne,{checked:ut,title:[p({id:"kulphB"}),p({id:"QzzGsY"})],alt:[p({id:"kulphB"}),p({id:"b7T5Zj"})],class:"reblog-button",icon:"rocket",count:Rt,disabled:!nn})})}),o("div",{class:"action has-count",children:o(Ne,{checked:gt,title:[p({id:"W9FRBT"}),p({id:"OcUmcH"})],alt:[p({id:"W9FRBT"}),p({id:"8ab1sR"})],class:"favourite-button",icon:"heart",count:Nt,onClick:Uo})}),Wn("@mastodon/post-bookmark")&&o("div",{class:"action",children:o(Ne,{checked:It,title:[p({id:"PZlHt8"}),p({id:"q8EQYI"})],alt:[p({id:"PZlHt8"}),p({id:"1C/9Sa"})],class:"bookmark-button",icon:"bookmark",onClick:jo})}),o(As,{portal:{target:document.querySelector(".status-deck")||document.body},align:"end",gap:4,overflow:"auto",viewScroll:"close",menuButton:o("div",{class:"action",children:o("button",{type:"button",title:p({id:"2FYpfJ"}),class:"plain more-button",children:o(P,{icon:"more",size:"l",alt:p({id:"2FYpfJ"})})})}),children:Yo})]})]})]}),!!yr&&o(to,{onClick:y=>{y.target===y.currentTarget&&Mn(!1)},children:o(Jd,{statusID:yr,instance:E,fetchStatusHistory:()=>x.v1.statuses.$select(yr).history.list(),onClose:()=>{var y;Mn(!1),(y=Re.current)==null||y.focus()}})}),!!ya&&o(to,{onClick:y=>{y.target===y.currentTarget&&br(!1)},children:o(tf,{post:e,instance:E,onClose:()=>{br(!1)}})})]})]})}function Gd(t){const{enabled:e,children:n,lang:r,captionChildren:i}=t;return!e||!i?n:o("figure",{class:"media-figure-multiple",children:[n,o("figcaption",{lang:r,dir:"auto",children:i})]})}function Yd(t){const{mediaAttachments:e,language:n,postID:r,instance:i}=t,a=e.length>1,s=O(),[c,l]=K(0);return tt(()=>{let u=()=>{const{clientWidth:f,scrollLeft:d}=s.current,m=Math.round(Math.abs(d)/f);l(m)};return s.current&&s.current.addEventListener("scroll",u,{passive:!0}),()=>{s.current&&s.current.removeEventListener("scroll",u)}},[]),o($,{children:[o("div",{class:"media-first-container",children:[o("div",{class:"media-first-carousel",ref:s,children:e.map((u,f)=>o("div",{class:"media-first-item",children:o(ho,{media:u,lang:n,to:`/${i}/s/${r}?media=${f+1}`})},u.id))}),a&&o("div",{class:"media-carousel-controls",children:[o("div",{class:"carousel-indexer",children:[c+1,"/",e.length]}),o("label",{class:"media-carousel-button",children:o("button",{type:"button",class:"carousel-button",hidden:c===0,onClick:u=>{u.preventDefault(),u.stopPropagation(),s.current.focus(),s.current.scrollTo({left:s.current.clientWidth*(c-1)*(ao()?-1:1),behavior:"smooth"})},children:o(P,{icon:"arrow-left"})})}),o("label",{class:"media-carousel-button",children:o("button",{type:"button",class:"carousel-button",hidden:c===e.length-1,onClick:u=>{u.preventDefault(),u.stopPropagation(),s.current.focus(),s.current.scrollTo({left:s.current.clientWidth*(c+1)*(ao()?-1:1),behavior:"smooth"})},children:o(P,{icon:"arrow-right"})})})]})]}),a&&o("div",{class:"media-carousel-dots",style:{"--dots-count":e.length},children:e.map((u,f)=>o("span",{class:`carousel-dot ${f===c?"active":""}`},u.id))})]})}function qi(t){return Fs.toUnicode(URL.parse(t).hostname.replace(/^www\./,"").replace(/\/$/,""))}function Gi(t){return["x.com","twitter.com","threads.net","bsky.app"].includes(t)}function Xd({authors:t,hidden:e,children:n}){var i,a;if(e||!((a=(i=t==null?void 0:t[0])==null?void 0:i.account)!=null&&a.id))return n;const r=t[0].account;return o("div",{class:"card-byline",children:[n,o("div",{class:"card-byline-author",children:[o(P,{icon:"link",size:"s"})," ",o("small",{children:o(D,{id:"4LHHK6",components:{0:o(ve,{account:r,showAvatar:!0})}})})]})]})}function Qd({card:t,selfReferential:e,selfAuthor:n,instance:r}){var X;const i=kn(H),{blurhash:a,title:s,description:c,html:l,providerName:u,providerUrl:f,authorName:d,authorUrl:m,width:h,height:g,image:_,imageDescription:v,url:w,type:b,embedUrl:T,language:A,publishedAt:p,authors:x}=t,E=s||u||d,M=h/g>=1.2?"large":"",[R,S]=K(null);if(tt(()=>{E&&_&&!e&&Wa(w)&&Za(r,w).then(it=>{if(!it)return;const{id:rt,url:Q}=it;S("#"+Q)})},[E,_,e]),i.unfurledLinks[w])return null;const I=/<iframe/i.test(l),N=
`+E+`
`+((S=d==null?void 0:d.options)!=null&&S.length?`
<p>📊:</p>
<ul>
${d.options.map(I=>`
<li>
${I.title}
${I.votesCount>=0?` (${I.votesCount})`:""}
</li>
`).join("")}
</ul>`:"")+(w.length>0?`
`+w.map(I=>{const{description:N,meta:W,previewRemoteUrl:B,previewUrl:X,remoteUrl:it,url:rt,type:Q}=I,{original:Y={},small:pt}=W||{},ht=(pt==null?void 0:pt.width)||(Y==null?void 0:Y.width),V=(pt==null?void 0:pt.height)||(Y==null?void 0:Y.height),st=it||rt,ut=B||X,Rt=ut||st,gt=st?URL.parse(st):null,Nt=Q==="unknown"&&gt&&/\.(mp4|m4r|m4v|mov|webm)$/i.test(gt.pathname),It=Q==="unknown"&&gt&&/\.(mp3|ogg|wav|m4a|m4p|m4b)$/i.test(gt.pathname),bt=Q==="image"||Q==="unknown"&&ut&&!Nt&&!It,Ft=Q==="gifv"||Q==="video"||Nt,xt=Q==="audio"||It;let F="";return bt?F=`<img src="${Rt}" width="${ht}" height="${V}" alt="${N}" loading="lazy" />`:Ft?F=`
<video src="${st}" width="${ht}" height="${V}" controls preload="auto" poster="${ut}" loading="lazy"></video>
${N?`<figcaption>${N}</figcaption>`:""}
`:xt?F=`
<audio src="${st}" controls preload="auto"></audio>
${N?`<figcaption>${N}</figcaption>`:""}
`:F=`
<a href="${st}">📄 ${N||st}</a>
`,`<figure>${F}</figure>`}).join(`
`):""),R=`
<blockquote lang="${h}" cite="${b}" data-source="fediverse">
${m?`
<details>
<summary>${m}</summary>
${M}
</details>
`:M}
<footer>
${uo(i,c)} (@${a}) <a href="${b}"><time datetime="${L.toISOString()}">${L.toLocaleString()}</time></a>
</footer>
</blockquote>
`;return ed(R)}function tf({post:t,instance:e,onClose:n}){const{_:r}=te(),{account:{url:i,displayName:a,username:s,emojis:c,bot:l,group:u},id:f,poll:d,spoilerText:m,language:h,editedAt:g,createdAt:_,content:v,mediaAttachments:w,url:b,emojis:T}=t,A=aa(t,e);return o("div",{id:"embed-post",class:"sheet",children:[!!n&&o("button",{type:"button",class:"sheet-close",onClick:n,children:o(P,{icon:"x",alt:r({id:"yz7wBu"})})}),o("header",{children:o("h2",{children:o(D,{id:"jdVwsS"})})}),o("main",{tabIndex:"-1",children:[o("h3",{children:o(D,{id:"GkS6YG"})}),o("textarea",{class:"embed-code",readonly:!0,onClick:p=>{p.target.select()},dir:"auto",children:A}),o("button",{type:"button",onClick:()=>{try{navigator.clipboard.writeText(A),Ct(r({id:"bl7nrg"}))}catch{Ct(r({id:"/KEBaP"}))}},children:[o(P,{icon:"clipboard"})," ",o("span",{children:o(D,{id:"he3ygx"})})]}),!!(w!=null&&w.length)&&o("section",{children:[o("p",{children:o(D,{id:"/2mUza"})}),o("ol",{class:"links-list",children:w.map(p=>o("li",{children:o("a",{href:p.remoteUrl||p.url,target:"_blank",download:!0,children:p.remoteUrl||p.url})},p.id))})]}),!!(c!=null&&c.length)&&o("section",{children:[o("p",{children:o(D,{id:"AeM/di"})}),o("ul",{children:c.map(p=>o("li",{children:[o("picture",{children:[o("source",{srcset:p.staticUrl,media:"(prefers-reduced-motion: reduce)"}),o("img",{class:"shortcode-emoji emoji",src:p.url,alt:`:${p.shortcode}:`,width:"16",height:"16",loading:"lazy",decoding:"async"})]})," ",o("code",{children:[":",p.shortcode,":"]})," (",o("a",{href:p.url,target:"_blank",download:!0,children:"URL"}),")",p.staticUrl?o($,{children:[" ","(",o("a",{href:p.staticUrl,target:"_blank",download:!0,children:o(D,{id:"xiropL"})}),")"]}):null]},p.shortcode))})]}),!!(T!=null&&T.length)&&o("section",{children:[o("p",{children:o(D,{id:"jzjjJh"})}),o("ul",{children:T.map(p=>o("li",{children:[o("picture",{children:[o("source",{srcset:p.staticUrl,media:"(prefers-reduced-motion: reduce)"}),o("img",{class:"shortcode-emoji emoji",src:p.url,alt:`:${p.shortcode}:`,width:"16",height:"16",loading:"lazy",decoding:"async"})]})," ",o("code",{children:[":",p.shortcode,":"]})," (",o("a",{href:p.url,target:"_blank",download:!0,children:"URL"}),")",p.staticUrl?o($,{children:[" ","(",o("a",{href:p.staticUrl,target:"_blank",download:!0,children:o(D,{id:"xiropL"})}),")"]}):null]},p.shortcode))})]}),o("section",{children:o("small",{children:[o("p",{children:o(D,{id:"TnJgwX"})}),o("ul",{children:[o("li",{children:o(D,{id:"0OHPem"})}),o("li",{children:o(D,{id:"AzZ5zv"})}),o("li",{children:o(D,{id:"NU7wa/"})}),o("li",{children:o(D,{id:"R4PmPA"})})]})]})}),o("h3",{children:o(D,{id:"rdUucN"})}),o("output",{class:"embed-preview",dangerouslySetInnerHTML:{__html:A},dir:"auto"}),o("p",{children:o("small",{children:o(D,{id:"j0kZfi"})})})]})]})}const Ne=_e((t,e)=>{let{checked:n,count:r,class:i,title:a,alt:s,size:c,icon:l,iconSize:u="l",onClick:f,...d}=t;typeof a=="string"&&(a=[a,a]),typeof s=="string"&&(s=[s,s]);const[m,h]=K(a[0]||""),[g,_]=K(s[0]||"");return tt(()=>{n?(h(a[1]||""),_(s[1]||"")):(h(a[0]||""),_(s[0]||""))},[n,a,s]),o("button",{ref:e,type:"button",title:m,class:`plain ${c?"small":""} ${i} ${n?"checked":""}`,onClick:v=>{f&&(v.preventDefault(),v.stopPropagation(),f(v))},...d,children:[o(P,{icon:l,size:u,alt:g}),!!r&&o($,{children:[" ",o("small",{title:r,children:re(r)})]})]})});function ef(t){if(!t)return;const e=URL.parse(t),{host:n,pathname:r}=e,i=r.replace(/\/$/,""),[a,s,c]=i.match(/\/(@[^\/]+)\/(.*)/)||[];return o($,{children:[Fs.toUnicode(n),s?o($,{children:["/",s,o("wbr",{}),o("span",{class:"more-insignificant",children:["/",c]})]}):o("span",{class:"more-insignificant",children:i})]})}function nf({sKey:t}){const n=kn(H).statusReply[t];if(!n)return null;const{id:r,instance:i}=n,a=cs(r,i);if(!a)return null;const{sensitive:s,spoilerText:c,account:{avatar:l,avatarStatic:u,bot:f}={},visibility:d,content:m,language:h,filtered:g}=a;if(s||c||!m)return null;const _=oe(r,i),v=ea(a),w=Dt(ta),b=Po(g,w);if((b==null?void 0:b.action)==="hide")return null;const T=(b==null?void 0:b.titlesStr)||"";return o("arti
//# sourceMappingURL=fuse-ljJAS_uA.js.map