1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/packs/redesign-CGqsJrzR.js","/packs/rolldown-runtime-C0FnF6B9.js","/packs/jsx-runtime-D3F0h15I.js","/packs/react-intl-CZJDGRhA.js","/packs/preload-helper-BzEEf1T7.js","/packs/initial_state-Bq_NJi1A.js","/packs/locales-C0Rt51KI.js","/packs/async-mutex-DHaCcEsI.js","/packs/chevron_right-C_8yvOyO.js","/packs/detect-it.esm-DvZ-Z-OK.js","/packs/isSymbol-3r8dk6Lb.js","/packs/react-router-D0L-bsDO.js","/packs/defineProperty-C0YrXxyM.js","/packs/time-KXiROFCN.js","/packs/ready-B3bZnx13.js","/packs/router-0etqvyN9.js","/packs/axios-BtwFZmtf.js","/packs/axios-BDoG55Be.js","/packs/api-B-Z8S2Oy.js","/packs/accounts_typed-B7i9hBco.js","/packs/typed_functions-C61D5Gin.js","/packs/utils-BE547XlN.js","/packs/locale-C3pTWBFY.js","/packs/emoji-CCM0KiSc.js","/packs/settings-Cq4pjZIN.js","/packs/modal-BQa-v0tD.js","/packs/react-router-dom-o_eSX_Kh.js","/packs/mood-Cw3vXYdp.js","/packs/classnames-CfLRLWYq.js","/packs/toggle_field-Cz2VdLDD.js","/packs/poll-BYWZg_XP.js","/packs/esm-DrOrXu-Y.js","/packs/short_number-CHNMv1Rn.js","/packs/numbers-BEp7e788.js","/packs/skeleton-B7DUl0I_.js","/packs/bookmark-D9UYQM4R.js","/packs/toString-HjykfQcJ.js","/packs/assets/toggle_field-BAQID-r7.css","/packs/intl-CdMpGntF.js","/packs/links-r8D4IrQp.js","/packs/dist-CbfhLTox.js","/packs/punycode-DpdQ0SRX.js","/packs/mood-sc4COPoP.js","/packs/assets/mood-Bzcet9Ee.css","/packs/column-CICL8za9.js","/packs/index.module-DGdcFisy.js","/packs/assets/column-D4hSljPR.css","/packs/icon_fediverse-DOn_G2HZ.js","/packs/Bell.es-BAoPMgwH.js","/packs/Heart.es-DCJplfcE.js","/packs/DotsThree.es-CV3o7JXp.js","/packs/Gear.es-CQ2-R9fO.js","/packs/Plus.es-BLqUGuV2.js","/packs/X.es-D5lzPBdp.js","/packs/display_name-CSYVqIPl.js","/packs/notifications-C7MDq9aB.js","/packs/column_header-CUOUJycb.js","/packs/List.es-CwBkfp_y.js","/packs/assets/column_header-B_-8LWc6.css","/packs/use-gesture-react.esm-B4rcD9HS.js","/packs/badge-pFmJvTFL.js","/packs/smart_toy-CSrWL6eJ.js","/packs/block-BCpEPUNS.js","/packs/group-C7vSDspn.js","/packs/volume_off-C16iujHe.js","/packs/assets/badge-C03pmieC.css","/packs/lists-BRXlWuAR.js","/packs/status_list-DMTqgx5O.js","/packs/follow_button-D6MGP9O6.js","/packs/gif-BGMSZorU.js","/packs/quoted-6eXUGjxB.js","/packs/home-fill-CyA9QjcE.js","/packs/home-CQ5pGabv.js","/packs/edit-BKKsAV_5.js","/packs/card-Uy_tua04.js","/packs/link-D9mUXM6-.js","/packs/insert_chart-BH_jJ4it.js","/packs/visibility-BZenFkzt.js","/packs/chevron_left-C8eDlf40.js","/packs/useOverflow-2Akmjf53.js","/packs/useObserver-DnVQi0kY.js","/packs/icon_pinned-t6UDvFNN.js","/packs/status-GNZ_dKUk.js","/packs/load_gap-xoir_AaP.js","/packs/scrollable_list-Ewl5gHV6.js","/packs/fullscreen-C9DTf02V.js","/packs/scroll_container-urJilO25.js","/packs/es-CcqpDSRy.js","/packs/schedule_idle_task-sWDAnuJH.js","/packs/tiny-queue-CsviSls9.js","/packs/components-CwGTUo7k.js","/packs/load_more-BvOUzShe.js","/packs/assets/status_list-jnO0hz4D.css","/packs/selectors-B4QQpgpf.js","/packs/react-textarea-autosize.browser.esm-BMFnA-9M.js","/packs/use-isomorphic-layout-effect.browser.esm-M-Y-iJel.js","/packs/compose_form_container-DOKX4t5t.js","/packs/visualizer-MxQXuR-k.js","/packs/search-ChptxC0m.js","/packs/alternate_email-BuKNZDmn.js","/packs/account-CRI35Ykf.js","/packs/counters-Do56yhcU.js","/packs/objects-ClNdY2yy.js","/packs/photo_library-dcfDojju.js","/packs/graphic_eq-BXxnqhpS.js","/packs/utilities.esm-dFVYL_Jy.js","/packs/dropdown_selector-D7llMZ0u.js","/packs/embedded_status_content-CwHX0FZo.js","/packs/share-D5UvaC_4.js","/packs/fuzzysort-CJTuKKST.js","/packs/assets/redesign-Dazqvt5u.css"])))=>i.map(i=>d[i]); 2import{o as e,t}from"../rolldown-runtime-C0FnF6B9.js";import{n,t as r}from"../jsx-runtime-D3F0h15I.js";import{a as i,c as a,s as o}from"../react-intl-CZJDGRhA.js";import{n as s,t as c}from"../preload-helper-BzEEf1T7.js";import{t as l}from"../ready-B3bZnx13.js";import{B as u,E as d,G as f,J as p,N as m,V as h,W as g,_,c as v,f as y,h as b,k as x,v as S,x as C,y as w,z as ee}from"../initial_state-Bq_NJi1A.js";import{a as T,i as E,n as D,o as O,t as k}from"../locales-C0Rt51KI.js";import{A,F as j,N as te,O as ne,j as re,v as ie}from"../chevron_right-C_8yvOyO.js";import{i as ae,n as oe,r as se,t as ce}from"../SignIn.es-Cggi8gdK.js";import{Rt as le,rn as ue,zt as de}from"../detect-it.esm-DvZ-Z-OK.js";import{Ar as fe,Cn as pe,Fn as me,Gr as he,Qa as ge,Qn as _e,Sn as ve,Wr as ye,Xa as be,Xt as M,Yt as xe,Zt as Se,_a as Ce,bn as we,ci as Te,do as Ee,ii as De,io as Oe,ma as ke,mi as Ae,nn as je,n
2o as Me,pi as Ne,ro as Pe,vt as Fe,wn as Ie,y as N,yn as Le,zt as Re}from"../time-KXiROFCN.js";import{c as ze,d as Be,i as Ve,n as P,t as F,u as He}from"../react-router-D0L-bsDO.js";import{r as Ue,t as We}from"../router-0etqvyN9.js";import{t as I}from"../defineProperty-C0YrXxyM.js";import{o as L,s as R}from"../typed_functions-C61D5Gin.js";import{c as Ge}from"../utils-BE547XlN.js";import{t as z}from"../helmet-BkE4FUiw.js";import{n as Ke,t as B}from"../react-router-dom-o_eSX_Kh.js";import{s as qe}from"../streaming-M2r4BXs-.js";import{$ as Je,A as Ye,An as Xe,At as Ze,Ct as Qe,Dt as $e,En as et,Et as tt,Fn as nt,H as rt,It as it,J as at,K as ot,L as st,M as ct,Mn as lt,N as V,Nn as ut,O as dt,Ot as ft,Pt as pt,Q as mt,R as ht,Rt as gt,S as _t,St as vt,Tt as yt,U as bt,V as xt,W as St,X as Ct,_t as H,at as wt,ct as U,et as Tt,ft as Et,gt as Dt,ht as Ot,it as kt,j as At,jt,k as Mt,kt as Nt,lt as Pt,nt as W,ot as Ft,pt as It,q as Lt,qt as Rt,rt as zt,st as Bt,vn as Vt,vt as Ht,wt as Ut,xt as Wt,z as Gt}from"../mood-Cw3vXYdp.js";import{t as Kt}from"../classnames-CfLRLWYq.js";import{a as qt,c as Jt,n as Yt,o as Xt,s as G,t as Zt}from"../column-CICL8za9.js";import{t as Qt}from"../onboarding-D4naqNSw.js";import{G as $t,H as en,I as tn,K as nn,N as rn,U as an,X as on,Z as sn,b as cn,k as ln,nt as un,rt as dn}from"../poll-BYWZg_XP.js";import{t as fn}from"../short_number-CHNMv1Rn.js";import{n as pn,r as mn,t as hn}from"../modal_container-B6Pd-yHX.js";import{t as gn}from"../intl-CdMpGntF.js";import{t as _n}from"../use_fetch_familiar_followers-DQ9i-HIH.js";import{t as vn}from"../account_bio-BLh4vUZ1.js";import{t as yn}from"../avatar_group-D5wyDgrx.js";import{n as bn,t as xn}from"../counters-Do56yhcU.js";import{r as Sn,t as Cn}from"../display_name-CSYVqIPl.js";import{t as K}from"../skeleton-B7DUl0I_.js";import{t as wn}from"../follow_button-D6MGP9O6.js";import{t as Tn}from"../useTimeout-BlNvQ1IO.js";import{t as En}from"../video-BCAo8Xw-.js";import{t as Dn}from"../audio-DtTFFB0h.js";import{o as On}from"../media_modal-BPiXt_Vm.js";import{i as kn}from"../notifications-C7MDq9aB.js";import{n as An,t as jn}from"../column_header-CUOUJycb.js";import{t as q}from"../bundle_column_error-p_VaquzO.js";import{t as Mn}from"../navigation_bar-qA07pu--.js";import{t as Nn}from"../account-CRI35Ykf.js";import{t as Pn}from"../search-COQKEYkM.js";import{t as Fn}from"../navigation_panel-CwlgQZpy.js";import{r as In,t as Ln}from"../columns_context-BgKF0mfZ.js";import{t as Rn}from"../useLayout-adgLoLTo.js";import{t as zn}from"../server_hero_image-BAlKEA1h.js";import{t as Bn}from"../compose_form_container-DOKX4t5t.js";import"../quoted-6eXUGjxB.js";import{t as Vn}from"../link_footer-DEwDazA7.js";import{t as Hn}from"../header-CVjpdSzI.js";import{n as Un,t as Wn}from"../tab_list-BdPpAMIQ.js";import{t as Gn}from"../callout-B3u6lbCt.js";import{n as Kn}from"../scroll_container-urJilO25.js";import{t as qn}from"../status_list_container-mASO7DX7.js";var J=e(n()),Jn=s();function Yn(e){E()&&se(e)}function Xn(e){E()&&ae(e)}var Zn=e(oe()),Y=r(),Qn=class extends J.PureComponent{constructor(...e){super(...e),I(this,`state`,{hasError:!1,errorMessage:void 0,stackTrace:void 0,mappedStackTrace:void 0,componentStack:void 0}),I(this,`handleCopyStackTrace`,()=>{let{errorMessage:e,stackTrace:t,mappedStackTrace:n}=this.state,r=document.createElement(`textarea`),i=[e,t];n&&i.push(n),r.textContent=i.join(` 3 4 5`),r.style.position=`fixed`,document.body.appendChild(r);try{r.select(),document.execCommand(`copy`)}catch{}finally{document.body.removeChild(r)}this.setState({copied:!0}),setTimeout(()=>this.setState({copied:!1}),700)})}componentDidCatch(e,t){this.setState({hasError:!0,errorMessage:e.toString(),stackTrace:e.stack,componentStack:t&&t.componentStack,mappedStackTrace:void 0}),Zn.default.fromError(e).then(e=>{this.setState({mappedStackTrace:e.map(e=>e.toString()).join(` 6`)})}).catch(()=>{this.setState({mappedStackTrace:void 0})})}render(){let{hasError:e,copied:t,errorMessage:n}=this.state;if(!e)return this.props.children;let r=n&&n.includes(`NotFoundError`);return(0,Y.jsxs)(`div`,{className:`error-boundary`,children:[(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`p`,{className:`error-boundary__error`,children:r?(0,Y.jsx)(i,{id:`error.unexpected_crash.explanation_addons`,defaultMessage:`This page could not be displayed correctly. This error is likely caused by a browser add-on or automatic translation tools.`}):(0,Y.jsx)(i,{id:`error.unexpected_crash.explanation`,defaultMessage:`Due to a bug in our
6code or a browser compatibility issue, this page could not be displayed correctly.`})}),(0,Y.jsx)(`p`,{children:r?(0,Y.jsx)(i,{id:`error.unexpected_crash.next_steps_addons`,defaultMessage:`Try disabling them and refreshing the page. If that does not help, you may still be able to use Mastodon through a different browser or native app.`}):(0,Y.jsx)(i,{id:`error.unexpected_crash.next_steps`,defaultMessage:`Try refreshing the page. If that does not help, you may still be able to use Mastodon through a different browser or native app.`})}),(0,Y.jsxs)(`p`,{className:`error-boundary__footer`,children:[`Mastodon v`,p,` · `,(0,Y.jsx)(`a`,{href:u,rel:`noopener`,target:`_blank`,children:(0,Y.jsx)(i,{id:`errors.unexpected_crash.report_issue`,defaultMessage:`Report issue`})}),` · `,(0,Y.jsx)(`button`,{type:`button`,onClick:this.handleCopyStackTrace,className:t?`copied`:``,children:(0,Y.jsx)(i,{id:`errors.unexpected_crash.copy_stacktrace`,defaultMessage:`Copy stacktrace to clipboard`})})]})]}),(0,Y.jsx)(z,{children:(0,Y.jsx)(`meta`,{name:`robots`,content:`noindex`})})]})}},$n=t(((e,t)=>{(function(){var e=(function(e){e||={};var t={bgColor:`#d00`,textColor:`#fff`,fontFamily:`sans-serif`,fontStyle:`bold`,type:`circle`,position:`down`,animation:`slide`,elementId:!1,dataUrl:!1,win:window},n,r,i,a,o,s,c,l,u,d,f,p,m={},h,g,_;m.ff=typeof InstallTrigger<`u`,m.chrome=!!window.chrome,m.opera=!!window.opera||navigator.userAgent.indexOf(`Opera`)>=0,m.ie=!1,m.safari=Object.prototype.toString.call(window.HTMLElement).indexOf(`Constructor`)>0,m.supported=m.chrome||m.ff||m.opera;var v=[];f=function(){},l=p=!1;var y=function(){n=k(t,e),n.bgColor=O(n.bgColor),n.textColor=O(n.textColor),n.position=n.position.toLowerCase(),n.animation=j.types[``+n.animation]?n.animation:t.animation,_=n.win.document;var l=n.position.indexOf(`up`)>-1,u=n.position.indexOf(`left`)>-1;if(l||u)for(var d=0;d<j.types[``+n.animation].length;d++){var f=j.types[``+n.animation][d];l&&(f.y<.6?f.y-=.4:f.y=f.y-2*f.y+(1-f.w)),u&&(f.x<.6?f.x-=.4:f.x=f.x-2*f.x+(1-f.h)),j.types[``+n.animation][d]=f}n.type=x[``+n.type]?n.type:t.type,r=D.getIcon(),o=document.createElement(`canvas`),c=document.createElement(`img`),r.hasAttribute(`href`)?(c.setAttribute(`crossOrigin`,`anonymous`),c.onload=function(){i=c.height>0?c.height:32,a=c.width>0?c.width:32,o.height=i,o.width=a,s=o.getContext(`2d`),b.ready()},c.setAttribute(`src`,r.getAttribute(`href`))):(c.onload=function(){i=32,a=32,c.height=i,c.width=a,o.height=i,o.width=a,s=o.getContext(`2d`),b.ready()},c.setAttribute(`src`,``))},b={};b.ready=function(){l=!0,b.reset(),f()},b.reset=function(){l&&(v=[],u=!1,d=!1,s.clearRect(0,0,a,i),s.drawImage(c,0,0,a,i),D.setIcon(o),window.clearTimeout(h),window.clearTimeout(g))},b.start=function(){if(l&&!d){var e=function(){u=v[0],d=!1,v.length>0&&(v.shift(),b.start())};if(v.length>0){d=!0;var t=function(){[`type`,`animation`,`bgColor`,`textColor`,`fontFamily`,`fontStyle`].forEach(function(e){e in v[0].options&&(n[e]=v[0].options[e])}),j.run(v[0].options,function(){e()},!1)};u?j.run(u.options,function(){t()},!0):t()}}};var x={},S=function(e){return e.n=typeof e.n==`number`?Math.abs(e.n|0):e.n,e.x=a*e.x,e.y=i*e.y,e.w=a*e.w,e.h=i*e.h,e.len=(``+e.n).length,e};x.circle=function(e){e=S(e);var t=!1;e.len===2?(e.x-=e.w*.4,e.w*=1.4,t=!0):e.len>=3&&(e.x-=e.w*.65,e.w*=1.65,t=!0),s.clearRect(0,0,a,i),s.drawImage(c,0,0,a,i),s.beginPath(),s.font=n.fontStyle+` `+Math.floor(e.h*(e.n>99?.85:1))+`px `+n.fontFamily,s.textAlign=`center`,t?(s.moveTo(e.x+e.w/2,e.y),s.lineTo(e.x+e.w-e.h/2,e.y),s.quadraticCurveTo(e.x+e.w,e.y,e.x+e.w,e.y+e.h/2),s.lineTo(e.x+e.w,e.y+e.h-e.h/2),s.quadraticCurveTo(e.x+e.w,e.y+e.h,e.x+e.w-e.h/2,e.y+e.h),s.lineTo(e.x+e.h/2,e.y+e.h),s.quadraticCurveTo(e.x,e.y+e.h,e.x,e.y+e.h-e.h/2),s.lineTo(e.x,e.y+e.h/2),s.quadraticCurveTo(e.x,e.y,e.x+e.h/2,e.y)):s.arc(e.x+e.w/2,e.y+e.h/2,e.h/2,0,2*Math.PI),s.fillStyle=`rgba(`+n.bgColor.r+`,`+n.bgColor.g+`,`+n.bgColor.b+`,`+e.o+`)`,s.fill(),s.closePath(),s.beginPath(),s.stroke(),s.fillStyle=`rgba(`+n.textColor.r+`,`+n.textColor.g+`,`+n.textColor.b+`,`+e.o+`)`,typeof e.n==`number`&&e.n>999?s.fillText((e.n>9999?9:Math.floor(e.n/1e3))+`k+`,Math.floor(e.x+e.w/2),Math.floor(e.y+e.h-e.h*.2)):s.fillText(e.n,Math.floor(e.x+e.w/2),Math.floor(e.y+e.h-e.h*.15)),s.closePath()},x.rectangle=function(e){e=S(e),e.len===2?(e.x-=e.w*.4,e.w*=1.4):e.len>=3&&(e.x-=e.w*.65,e.w*=1.65),s.clearRect(0,0,a,i),s.drawImage(c,0,0,a,i),s.beginPath(),s.font=n.fontStyle+` `+Math.floor(e.h*(e.n>99?.9:1))+`px `+n.fontFamily,s.textAlign=`center`,s.fillStyle=`rgba(`+n.bgColor.r+`,`+n.bgColor.g+`,`+n.bgColor.b+`,`+e.o+`)`,s.fillRect(e.x,e.y,e.w,e.h),s.fillStyle=`rgba(`+n.textColor.r+`,`+n.textColor.g+`,`+n.textColor.b+`,`+e.o+`)`,typeof e.n==`number`&&e.n>999?s.fillText((e.n>9999?9:Math.floor(e.n/1e3))+`k+`,Math.floor(e.x+e.w/2),Math.floor(e.y+e.h-e.h*.2)):s.fillText(e.n,Math.floor(e.x+e.w/2),Math.floor(e.y+e.h-e.h*.15)),s.closePath()};var C=function(e,t){t=(typeof t==`string`?{animation:t}:t)||{},f=function(){try{if(typeof e==`number`?e>0:e!==``){var n={type:`badge`,options:{n:e}};if(`animation`in t&&j.types[``+t.animation]&&(n.options.animation=``+t.animation),`type`in t&&x[``+t.type]&&(n.options.type=``+t.type),[`bgColor`,`textColor`].forEach(function(e){e in t&&(n.options[e]=O(t[e]))}),[`fontStyle`,`fontFamily`].forEach(function(e){e in t&&(n.options[e]=t[e])}),v.push(n),v.length>100)throw Error(`Too many badges requests in queue.`);b.start()}else b.reset()}catch(e){throw Error(`Error setting badge. Message: `+e.message)}},l&&f()}
6,w=function(e){f=function(){try{var t=e.width,n=e.height,r=document.createElement(`img`),c=t/a<n/i?t/a:n/i;r.setAttribute(`crossOrigin`,`anonymous`),r.onload=function(){s.clearRect(0,0,a,i),s.drawImage(r,0,0,a,i),D.setIcon(o)},r.setAttribute(`src`,e.getAttribute(`src`)),r.height=n/c,r.width=t/c}catch(e){throw Error(`Error setting image. Message: `+e.message)}},l&&f()},ee=function(e){f=function(){try{if(e===`stop`){p=!0,b.reset(),p=!1;return}e.addEventListener(`play`,function(){E(this)},!1)}catch(e){throw Error(`Error setting video. Message: `+e.message)}},l&&f()},T=function(e){if((!window.URL||!window.URL.createObjectURL)&&(window.URL=window.URL||{},window.URL.createObjectURL=function(e){return e}),m.supported){var t=!1;navigator.getUserMedia=navigator.getUserMedia||navigator.oGetUserMedia||navigator.msGetUserMedia||navigator.mozGetUserMedia||navigator.webkitGetUserMedia,f=function(){try{if(e===`stop`){p=!0,b.reset(),p=!1;return}t=document.createElement(`video`),t.width=a,t.height=i,navigator.getUserMedia({video:!0,audio:!1},function(e){t.src=URL.createObjectURL(e),t.play(),E(t)},function(){})}catch(e){throw Error(`Error setting webcam. Message: `+e.message)}},l&&f()}};function E(e){if(e.paused||e.ended||p)return!1;try{s.clearRect(0,0,a,i),s.drawImage(e,0,0,a,i)}catch{}g=setTimeout(function(){E(e)},j.duration),D.setIcon(o)}var D={};D.getIcon=function(){var e=!1;return n.element?e=n.element:n.elementId?(e=_.getElementById(n.elementId),e.setAttribute(`href`,e.getAttribute(`src`))):(e=function(){for(var e=_.getElementsByTagName(`head`)[0].getElementsByTagName(`link`),t=e.length-1;t>=0;t--)if(/(^|\s)icon(\s|$)/i.test(e[t].getAttribute(`rel`)))return e[t];return!1}(),e===!1&&(e=_.createElement(`link`),e.setAttribute(`rel`,`icon`),_.getElementsByTagName(`head`)[0].appendChild(e))),e.setAttribute(`type`,`image/png`),e},D.setIcon=function(e){var t=e.toDataURL(`image/png`);if(n.dataUrl&&n.dataUrl(t),n.element)n.element.setAttribute(`href`,t),n.element.setAttribute(`src`,t);else if(n.elementId){var i=_.getElementById(n.elementId);i.setAttribute(`href`,t),i.setAttribute(`src`,t)}else if(m.ff||m.opera){var a=r;r=_.createElement(`link`),m.opera&&r.setAttribute(`rel`,`icon`),r.setAttribute(`rel`,`icon`),r.setAttribute(`type`,`image/png`),_.getElementsByTagName(`head`)[0].appendChild(r),r.setAttribute(`href`,t),a.parentNode&&a.parentNode.removeChild(a)}else r.setAttribute(`href`,t)};function O(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,n,r){return t+t+n+n+r+r});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:!1}function k(e,t){var n={},r;for(r in e)n[r]=e[r];for(r in t)n[r]=t[r];return n}function A(){return _.hidden||_.msHidden||_.webkitHidden||_.mozHidden}var j={};return j.duration=40,j.types={},j.types.fade=[{x:.4,y:.4,w:.6,h:.6,o:0},{x:.4,y:.4,w:.6,h:.6,o:.1},{x:.4,y:.4,w:.6,h:.6,o:.2},{x:.4,y:.4,w:.6,h:.6,o:.3},{x:.4,y:.4,w:.6,h:.6,o:.4},{x:.4,y:.4,w:.6,h:.6,o:.5},{x:.4,y:.4,w:.6,h:.6,o:.6},{x:.4,y:.4,w:.6,h:.6,o:.7},{x:.4,y:.4,w:.6,h:.6,o:.8},{x:.4,y:.4,w:.6,h:.6,o:.9},{x:.4,y:.4,w:.6,h:.6,o:1}],j.types.none=[{x:.4,y:.4,w:.6,h:.6,o:1}],j.types.pop=[{x:1,y:1,w:0,h:0,o:1},{x:.9,y:.9,w:.1,h:.1,o:1},{x:.8,y:.8,w:.2,h:.2,o:1},{x:.7,y:.7,w:.3,h:.3,o:1},{x:.6,y:.6,w:.4,h:.4,o:1},{x:.5,y:.5,w:.5,h:.5,o:1},{x:.4,y:.4,w:.6,h:.6,o:1}],j.types.popFade=[{x:.75,y:.75,w:0,h:0,o:0},{x:.65,y:.65,w:.1,h:.1,o:.2},{x:.6,y:.6,w:.2,h:.2,o:.4},{x:.55,y:.55,w:.3,h:.3,o:.6},{x:.5,y:.5,w:.4,h:.4,o:.8},{x:.45,y:.45,w:.5,h:.5,o:.9},{x:.4,y:.4,w:.6,h:.6,o:1}],j.types.slide=[{x:.4,y:1,w:.6,h:.6,o:1},{x:.4,y:.9,w:.6,h:.6,o:1},{x:.4,y:.9,w:.6,h:.6,o:1},{x:.4,y:.8,w:.6,h:.6,o:1},{x:.4,y:.7,w:.6,h:.6,o:1},{x:.4,y:.6,w:.6,h:.6,o:1},{x:.4,y:.5,w:.6,h:.6,o:1},{x:.4,y:.4,w:.6,h:.6,o:1}],j.run=function(e,t,r,i){var a=j.types[A()?`none`:n.animation];if(i=r===!0?i===void 0?a.length-1:i:i===void 0?0:i,t||=function(){},i<a.length&&i>=0)x[n.type](k(e,a[i])),h=setTimeout(function(){r?--i:i+=1,j.run(e,t,r,i)},j.duration),D.setIcon(o);else{t();return}},y(),{badge:C,video:ee,image:w,webcam:T,reset:b.reset,browser:{supp
6orted:m.supported}}});typeof define<`u`&&define.amd?define([],function(){return e}):t!==void 0&&t.exports?t.exports=e:this.Favico=e})()})),er=e(ue()),tr=e($n()),X=e(Kt()),nr=({fields:e,emojis:t})=>{let n=a(),r=Rt();return e.size===0?null:(0,Y.jsx)(Y.Fragment,{children:e.map((e,i)=>(0,Y.jsxs)(`dl`,{className:(0,X.default)({verified:e.verified_at}),children:[(0,Y.jsx)(tn,{as:`dt`,htmlString:e.name_emojified,extraEmojis:t,className:`translate`,...r}),(0,Y.jsxs)(`dd`,{className:`translate`,title:e.value_plain??``,children:[e.verified_at&&(0,Y.jsx)(`span`,{title:n.formatMessage({id:`account.link_verified_on`,defaultMessage:`Ownership of this link was checked on {date}`},{date:n.formatDate(e.verified_at,rr)}),children:(0,Y.jsx)(sn,{id:`check`,icon:ie,className:`verified__mark`})}),` `,(0,Y.jsx)(tn,{as:`span`,htmlString:e.value_emojified,extraEmojis:t,...r})]})]},i))})},rr={month:`short`,day:`numeric`,year:`numeric`,hour:`2-digit`,minute:`2-digit`},ir=(0,J.forwardRef)(({accountId:e,reference:t},n)=>{let r=L(),a=R(t=>e?t.accounts.get(e):void 0),o=a?.suspended,s=R(t=>e?Fe(t,e):void 0),c=!!(o||s),l=R(t=>t.relationships.getIn([e,`note`]));(0,J.useEffect)(()=>{e&&!a&&r(Ee(e))},[r,e,a]);let{familiarFollowers:u}=_n({accountId:e}),d=R(t=>e?t.relationships.get(e):void 0),f=d?.followed_by&&d.following,p=d?.followed_by,m=!!d,h=u.length>0&&m&&!f&&!p;return(0,Y.jsx)(`div`,{ref:n,id:`hover-card`,role:`tooltip`,className:(0,X.default)(`hover-card dropdown-animation`,{"hover-card--loading":!a}),children:a?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(Sn,{to:`/@${a.acct}`,href:a.get(`url`),className:`hover-card__name`,children:[(0,Y.jsx)(ln,{account:c?void 0:a,size:46}),(0,Y.jsx)(Cn,{account:a,localDomain:y})]}),c?(0,Y.jsx)(`div`,{className:`hover-card__limited-account-note`,children:o?(0,Y.jsx)(i,{id:`empty_column.account_suspended`,defaultMessage:`Account suspended`}):(0,Y.jsx)(i,{id:`limited_account_hint.title`,defaultMessage:`This profile or server has been hidden by the moderators of {domain}.`,values:{domain:y}})}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(`div`,{className:`hover-card__text-row`,children:[(0,Y.jsx)(vn,{accountId:a.id,className:`hover-card__bio`}),(0,Y.jsx)(`div`,{className:`account-fields`,children:(0,Y.jsx)(nr,{fields:a.fields.take(2),emojis:a.emojis})}),l&&l.length>0&&(0,Y.jsxs)(`dl`,{className:`hover-card__note`,children:[(0,Y.jsx)(`dt`,{className:`hover-card__note-label`,children:(0,Y.jsx)(i,{id:`account.account_note_header`,defaultMessage:`Personal note`})}),(0,Y.jsx)(`dd`,{children:l})]})]}),(0,Y.jsxs)(`div`,{className:`hover-card__numbers`,children:[(0,Y.jsx)(fn,{value:a.followers_count,renderer:xn}),h&&(0,Y.jsxs)(Y.Fragment,{children:[`·`,(0,Y.jsxs)(`div`,{className:`hover-card__familiar-followers`,children:[(0,Y.jsx)(fn,{value:u.length,renderer:bn}),(0,Y.jsx)(yn,{compact:!0,children:u.slice(0,3).map(e=>(0,Y.jsx)(ln,{account:e,size:22},e.id))})]})]}),(f||p)&&(0,Y.jsxs)(Y.Fragment,{children:[`·`,(0,Y.jsx)(`span`,{children:f?(0,Y.jsx)(i,{id:`account.mutual`,defaultMessage:`You follow each other`}):(0,Y.jsx)(i,{id:`account.follows_you`,defaultMessage:`Follows you`})})]})]}),(0,Y.jsx)(wn,{accountId:e,reference:t??`hover_card`})]})]}):(0,Y.jsx)(un,{})})});ir.displayName=`HoverCardAccount`;var ar={crossAxis:-12,mainAxis:4},or=750,sr=150,cr=150,lr=e=>e.matches(`[data-hover-card-account]`),ur=()=>{let[e,t]=(0,J.useState)(!1),[n,r]=(0,J.useState)(),[i,a]=(0,J.useState)(),[o,s]=(0,J.useState)(null),c=(0,J.useRef)(null),[l,u]=Tn(),[d,f,p]=Tn(),[m]=Tn(),h=(0,J.useRef)(0),g=(0,J.useCallback)(()=>{f(),u(),t(!1),s(null)},[f,u,t,s]),_=ze(),[v,y]=(0,J.useState)(_);return _!==v&&(y(_),g()),(0,J.useEffect)(()=>{let e=!1,n=!1,i=null,o=null,g=e=>{e.setAttribute(`aria-describedby`,`hover-card`),t(!0),s(e),r(e.getAttribute(`data-hover-card-account`)??void 0),a(e.getAttribute(`data-hover-card-reference`)??void 0)},_=()=>{i?.removeAttribute(`aria-describedby`),i=null,t(!1),s(null),r(void 0),a(void 0)},v=()=>{n=!0},y=t=>{let{target:r}=t;if(!(r instanceof HTMLElement)){_();return}setTimeout(()=>{let t=Date.now()-h.current<cr;e||!t||n||(lr(r)&&(u(),i?.removeAttribute(`aria-describedby`),i=r,o=r.getAttribute(`title`),r.removeAttribute(`title`),d(()=>{g(r)},or)),(r===i||r===c.current)&&u())},0)},b=e=>{let{target:t}=e;i&&(o&&t instanceof HTMLElement&&t===i&&t.setAttribute(`title`,o),(t===i||t===c.current)&&(f(),l(()=>{_()},sr)))},x=()=>{e=!1},S=()=>{e=!0,f(),m(x,100)},C=e=>{n&&=!1,Math.max(Math.abs(e.movementX),Math.abs(e.movementY))>0&&(p(or),h.current=Date.now())};return document.body.addEventListener(`touchstart`,v,{passive:!0}),document.body.addEventListener(`mouseenter`,y,{passive:!0,capture:!0}),document.body.addEventListener(`mousemove`,C,{passive:!0,capture:!1}),document.body.addEventListener(`mouseleave`,b,{passive:!0,capture:!0}),document.addEventListener(`scroll`,S,{passive:!0,capture:!0}),()=>{document.body.removeEventListener(`touchstart`,v),document.body.removeEventListener(`mouseenter`,y),document.body.removeEventListener(`mousemove`,C),document.body.removeEventListener(`mouseleave`,b),document.removeEventListener(`scroll`,S)}},[d,l,m,f,u,p,t,r,s]),(0,Y.jsx)(rn,{onClose:g,isOpen:e,reference:o,placement:`bottom-start`,offset:ar,children:({props:e})=>(0,Y.jsx)(`div`,{...e,className:`hover-card-controller`,children:(0,Y.jsx)(ir,{accountId:n,reference:i,ref:c})})})},dr=o({close:{id:`lightbox.close`,defaultMessage:`Close`}}),fr=({accountId:e,statusId:t,onClose:n})=>{let r=R(t=>t.accounts.get(e)),i=a();return r?(0,Y.jsxs)(`div`,{className:`picture-in-picture__header`,children:[(0,Y.jsxs)(B,{to:`/@${r.get(`acct`)}/${t}`,className:`picture-in-picture__header__account`,children:[(0,Y.jsx)(ln,{account:r,size:36}),(0,Y.jsx)(Cn,{account:r})]}),(0,Y.jsx)(on,{icon:`times`,iconComponent:ne,onClick:n,title:i.formatMessage(dr.close)})]}):null},pr=()=>{let e=L(),t=(0,J.useCallback)(()=>{e(je())},[e]),n=R(e=>
6e.picture_in_picture),r=R(e=>e.getIn([`local_settings`,`media`,`pop_in_position`])===`left`);if(n.type===null)return null;let{type:i,src:a,currentTime:o,accountId:s,statusId:c,volume:l,muted:u,poster:d,backgroundColor:f,foregroundColor:p,accentColor:m}=n;if(!a)return null;let h;switch(i){case`video`:h=(0,Y.jsx)(En,{src:a,startTime:o,startVolume:l,startMuted:u,startPlaying:!0,alwaysVisible:!0});break;case`audio`:h=(0,Y.jsx)(Dn,{src:a,startTime:o,startVolume:l,startMuted:u,startPlaying:!0,poster:d,backgroundColor:f,foregroundColor:p,accentColor:m})}return(0,Y.jsxs)(`div`,{className:(0,X.default)(`picture-in-picture`,{left:r}),children:[(0,Y.jsx)(fr,{accountId:s,statusId:c,onClose:t}),h,(0,Y.jsx)(On,{statusId:c,onClose:t})]})},mr=({active:e,onClose:t})=>{let n=(0,J.useCallback)(n=>{e&&n.key===`Escape`&&(n.preventDefault(),n.stopPropagation(),t())},[e,t]);(0,J.useEffect)(()=>(window.addEventListener(`keyup`,n,!1),()=>{window.removeEventListener(`keyup`,n)}),[n]);let r=te({from:{opacity:0},to:{opacity:1},reverse:!e}),a=te({from:{transform:`scale(0.95)`},to:{transform:`scale(1)`},reverse:!e,config:re.wobbly});return(0,Y.jsx)(A.div,{className:`upload-area`,style:{...r,visibility:e?`visible`:`hidden`},children:(0,Y.jsxs)(`div`,{className:`upload-area__drop`,children:[(0,Y.jsx)(A.div,{className:`upload-area__background`,style:a}),(0,Y.jsx)(`div`,{className:`upload-area__content`,children:(0,Y.jsx)(i,{id:`upload_area.title`,defaultMessage:`Drag & drop to upload`})})]})})},Z=o({follow:{id:`hashtag.follow`,defaultMessage:`Follow hashtag`},unfollow:{id:`hashtag.unfollow`,defaultMessage:`Unfollow hashtag`},browseHashtag:{id:`hashtag.browse`,defaultMessage:`Browse posts in #{hashtag}`},browseHashtagFromAccount:{id:`hashtag.browse_from_account`,defaultMessage:`Browse posts from @{name} in #{hashtag}`},muteHashtag:{id:`hashtag.mute`,defaultMessage:`Mute #{hashtag}`}}),hr=e=>e?e.matches(`[data-menu-hashtag]`):!1,gr=()=>{let e=a(),{signedIn:t}=$t(),[n,r]=(0,J.useState)(null),{element:i=null,accountId:o,hashtag:s}=n??{},c=!!i,{tag:l,toggleFollow:u}=et(s),d=R(e=>o?e.accounts.get(o):void 0),f=ze(),[p,m]=(0,J.useState)(f);f!==p&&(m(f),r(null)),(0,J.useEffect)(()=>{let e=e=>{let t=e.target.closest(`a`);if(e.button!==0||e.ctrlKey||e.metaKey||!hr(t))return;let n=t.text.replace(/^#/,``),i=t.getAttribute(`data-menu-hashtag`);n&&i&&(e.preventDefault(),e.stopPropagation(),r({element:t,hashtag:n,accountId:i}))};return document.addEventListener(`click`,e,{capture:!0}),()=>{document.removeEventListener(`click`,e)}},[]);let h=(0,J.useCallback)(()=>{r(null)},[]),g=(0,J.useMemo)(()=>{if(!l)return[];let n=t?[{text:e.formatMessage(l.following?Z.unfollow:Z.follow),action:u}]:[];return n.push({text:e.formatMessage(Z.browseHashtag,{hashtag:l.name}),to:`/tags/${encodeURIComponent(l.name)}`},{text:e.formatMessage(Z.browseHashtagFromAccount,{hashtag:s,name:d?.username}),to:`/@${d?.acct}/tagged/${encodeURIComponent(l.name)}`}),t&&n.push(null,{text:e.formatMessage(Z.muteHashtag,{hashtag:l.name}),href:`/filters`,dangerous:!0}),n},[l,e,u,s,d,t]);return c?(0,Y.jsx)(rn,{isOpen:!0,offset:5,reference:i,onClose:h,children:({props:e,placement:t})=>(0,Y.jsx)(`div`,{...e,className:`dropdown-animation dropdown-menu ${t}`,children:(0,Y.jsx)(cn,{items:g,onClose:h,openedViaKeyboard:!1})})}):null},Q={page:`_feat_custom_homepage__page`,pageRedesign:`_feat_custom_homepage__pageRedesign`,header:`_feat_custom_homepage__header`,banner:`_feat_custom_homepage__banner`,topSection:`_feat_custom_homepage__topSection`,block:`_feat_custom_homepage__block`,placeholder:`_feat_custom_homepage__placeholder`,minimalHeader:`_feat_custom_homepage__minimalHeader`,leftSide:`_feat_custom_homepage__leftSide`,rightSide:`_feat_custom_homepage__rightSide`,minimalFooter:`_feat_custom_homepage__minimalFooter`,minimalFooterRedesign:`_feat_custom_homepage__minimalFooterRedesign`,contact:`_feat_custom_homepage__contact`},_r=()=>{let e=L(),t=R(e=>e.server.server).item?.contact.email??``;return(0,J.useEffect)(()=>{e(M())},[e]),(0,Y.jsxs)(`footer`,{className:(0,X.default)(Q.minimalFooter,O()&&Q.minimalFooterRedesign),children:[(0,Y.jsxs)(`div`,{className:Q.contact,children:[(0,Y.jsx)(i,{id:`custom_homepage.contact`,defaultMessage:`Contact:`}),(0,Y.jsx)(`a`,{href:`mailto:${t}`,children:t})]}),(0,Y.jsx)(B,{to:`/privacy-policy`,rel:`privacy-policy`,children:(0,Y.jsx)(i,{id:`footer.privacy_policy`,defaultMessage:`Privacy policy`})})]})},vr=()=>(0,Y.jsxs)(`div`,{className:Q.minimalHeader,children:[(0,Y.jsx)(`div`,{className:Q.leftSide,children:(0,Y.jsx)(B,{to:`/overview`,children:y})}),(0,Y.jsx)(`div`,{className:Q.rightSide,children:(0,Y.jsx)(`a`,{href:h??`/auth/sign_in`,"data-method":h?`post`:void 0,className:`button button-secondary`,children:(0,Y.jsx)(i,{id:`sign_in_banner.sign_in`,defaultMessage:`Login`})})})]}),yr=o({aboutActiveUsers:{id:`server_banner.about_active_users`,defaultMessage:`People using this server during the last 30 days (Monthly Active Users)`},aboutThisServer:{id:`server_banner.more_about_this_server`,defaultMessage:`More about this server`}}),br=e=>({server:e.server.server}),xr=class extends J.PureComponent{componentDidMount(){let{dispatch:e}=this.props;e(M())}render(){let{server:e,intl:t}=this.props,n=e.isLoading;return(0,Y.jsxs)(`div`,{className:`server-banner`,children:[(0,Y.jsx)(`div`,{className:`server-banner__introduction`,children:(0,Y.jsx)(i,{id:`server_banner.is_one_of_many`,defaultMessage:`{domain} is one of the many independent Mastodon servers you can use to participate in the fediverse.`,values:{domain:(0,Y.jsx)(`strong`,{children:y}),mastodon:(0,Y.jsx)(`a`,{href:`https://joinmastodon.org`,target:`_blank`,rel:`noopener`,children:`Mastodon`})}})}),(0,Y.jsx)(Ke,{to:`/about`,children:(0,Y.jsx)(zn,{blurhash:e.item?.thumbnail.blurhash,src:e.item?.thumbnail.url,alt:t.formatMessage(yr.aboutThisServer),className:`server-banner__hero`})}),(0,Y.jsx)(`div`,{className:`server-banner__description`,children:n?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(K,{width:`100%`}),(0,Y.jsx)(`br`,{}),(0,Y.jsx)(K,{width:`100%`}),(0,Y.jsx)(`br`,{}),(0,Y.jsx)(K,{width:`70%`})]}):e.item?.description}),(0,Y.jsxs)(`div`,{className:`server-banner__meta`,children:[(0,Y.jsxs)(`div`,{className:`server-banner__meta__column`,children:[(0,Y.jsx)(`h4`,{children:(0,Y.jsx)(i,{id:`server_banner.administered_by`,defaultMessage:`Administered by:`})}),(0,Y.jsx)(Nn,{id:e.item?.contact.account?.id,size:36,minimal:!0})]}),(0,Y.jsxs)(`div`,{className:`server-banner__meta__column`,children:[(0,Y.jsx)(`h4`,{children:(0,Y.jsx)(i,{id:`server_banner.server_stats`,defaultMessage:`Server stats:`})}),n?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`strong`,{className:`server-banner__number`,children:(0,Y.jsx)(K,{width:`10ch`})}),(0,Y.jsx)(`br`,{}),(0,Y.jsx)(`span`,{className:`server-banner__number-label`,children:(0,Y.jsx)(K,{width:`5ch`})})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`strong`,{className:`server-banner__number`,children:(0,Y.jsx)(fn,{value:e.item?.usage.users.active_month})}),(0,Y.jsx)(`br`,{}),(0,Y.jsx)(`span`,{className:`server-banner__number-label`,title:t.formatMessage(yr.aboutActiveUsers),children:(0,Y.jsx)(i,{id:`server_banner.active_users`,defaultMessage:`active users`})})]})]})]})]})}},Sr=de(br)(gn(xr)),Cr=()=>{let e=L(),t=(0,J.useCallback)(()=>{e(he(!0))},[e]),{signedIn:n}=$t(),r=R(e=>{let t=e.compose.get(`mounted`);return typeof t==`number`&&t>1});(0,J.useEffect)(()=>(e(De()),()=>{e(Ne())}),[e]);let{singleColumn:i}=Rn();return(0,Y.jsxs)(`div`,{className:`compose-panel`,onFocus:t,children:[(0,Y.jsx)(Pn,{singleColumn:i}),!n&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(Sr,{}),(0,Y.jsx)(`div`,{className:`flex-spacer`})]}),n&&!r&&(0,Y.jsx)(Bn,{singleColumn:!0}),n&&r&&(0,Y.jsx)(`div`,{className:`compose-form`}),(0,Y.jsx)(Vn,{context:i?`default`:`multi-column`})]})},wr=()=>{let e=Ue(),t=R(e=>e.compose.get(`should_redirect_to_compose_page`));return(0,J.useLayoutEffect)(()=>{t&&e.push(`/publish`,{focusTarget:!1})},[e,t]),null},Tr={loadingWrapper:`_comp_column_loading__loadingWrapper`,"fade-in":`_comp_column_loading__fade-in`},Er=e=>(0,Y.jsxs)(Zt,{children:[O()?(0,Y.jsx)(jn,{title:``}):(0,Y.jsx)(Hn,{...e}),(0,Y.jsx)(`div`,{className:`scrollable`,children:(0,Y.jsxs)(`div`,{className:Tr.loadingWrapper,children:[(0,Y.jsx)(dn,{size:30,strokeWidth:2}),(0,Y.jsx)(i,{id:`loading_indicator.label`,defaultMessage:`Loadingâ¦`})]})})]}),Dr=()=>(0,Y.jsx)(`div`,{className:`drawer`,children:(0,Y.jsx)(`div`,{className:`drawer__pager`,children:(0,Y.jsx)(`div`,{className:`drawer__inner`})})}),Or={COMPOSE:ot,HOME:Pt,NOTIFICATIONS:Ut,PUBLIC:ft,REMOTE:ft,COMMUNITY:St,BUBBLE:Gt,HASHTAG:U,DIRECT:Lt,FAVOURITES:Je,BOOKMARKS:ht,LIST:H,DIRECTORY:at},kr=e=>(0,Y.jsx)(q,{multiColumn:!0,errorType:`network`,...e}),Ar=e=>{let t=e===`COMPOSE`?(0,Y.jsx)(Dr,{}):(0,Y.jsx)(Er,{multiColumn:!0});return()=>t},jr=({children:e})=>{let t=R(e=>e.settings.get(`columns`));return(0,Y.jsxs)(Y.Fragment,{children:[t.map((e,t)=>{let n=e.get(`params`)?e.get(`params`)?.toJS():null,r=n?.other??{},i=e.get(`uuid`),a=e.get(`id`);return O()&&a===`COMPOSE`?null:(0,Y.jsx)(Yt.Provider,{value:t,children:(0,Y.jsx)(_t,{fetchComponent:Or[a],loading:Ar(a),error:kr,children:e=>(0,Y.jsx)(e,{columnId:i,params:n,multiColumn:!0,...r})},i)},i)}),(0,Y.jsx)(Yt.Provider,{value:t.size,children:J.Children.map(e,e=>(0,J.isValidElement)(e)?(0,J.cloneElement)(e,{multiColumn:!0}):e)})]})},Mr=(0,J.lazy)(()=>c(async()=>{let{ColumnsAreaRedesign:e}=await import(`../redesign-CGqsJrzR.js`);return{ColumnsAreaRedesign:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110]),import.meta.url).then(({ColumnsAreaRedesign:e})=>({default:e}))),Nr=()=>{let{setTabsBarElement:e}=In(),t=(0,J.useCallback)(t=>{t&&e(t)},[e]);return(0,Y.jsx)(`div`,{id:`tabs-bar__portal`,ref:t})},Pr=({children:e,minimalShell:t,singleColumn:n,ref:r})=>{let i=!Vt(`full`),a=R(e=>!e.modal.get(`stack`).isEmpty());return t?(0,Y.jsx)(`div`,{className:`columns-area__panels`,children:(0,Y.jsxs)(`div`,{className:`columns-area__panels__main`,children:[(0,Y.jsx)(vr,{}),(0,Y.jsx)(`div`,{className:`tabs-bar__wrapper`,children:(0,Y.jsx)(Nr,{})}),(0,Y.jsx)(`div`,{className:`columns-area columns-area--mobile`,children:e}),(0,Y.jsx)(_r,{})]})}):n?(0,Y.jsxs)(`div`,{className:`columns-area__panels`,children:[(0,Y.jsx)(`div`,{className:`columns-area__panels__pane columns-area__panels__pane--compositional`,children:(0,Y.jsxs)(`div`,{className:`columns-area__panels__pane__inner`,children:[i&&(0,Y.jsx)(Cr,{}),(0,Y.jsx)(wr,{})]})}),(0,Y.jsxs)(`main`,{className:`columns-area__panels__main`,children:[(0,Y.jsx)(`div`,{className:`tabs-bar__wrapper`,children:(0,Y.jsx)(Nr,{})}),(0,Y.jsx)(`div`,{className:`columns-area columns-area--mobile`,children:e})]}),(0,Y.jsx)(Fn,{})]}):(0,Y.jsx)(`main`,{className:(0,X.default)(`columns-area`,{unscrollable:a}),ref:r,tabIndex:a?void 0:0,children:(0,Y.jsx)(jr,{children:e})})},Fr=e=>O()?(0,Y.jsx)(J.Suspense,{fallback:(0,Y.jsx)(un,{}),children:(0,Y.jsx)(Mr,{...e})}):(0,Y.jsx)(Pr,{...e});function Ir(e){let t=window.innerHeight||document.documentElement.clientHeight;for(let n of e){let e=n.getBoundingClientRect();if(e.top>
6=0&&e.top<t)return{item:n,rect:e}}return null}function Lr(e,t){if(t){let t=document.querySelector(`.column:nth-child(${e})`);t&&t.querySelector(`#${Xt(e-1)}, #${G()}`)?.focus()}else{let t=e===2?`#${G()}`:`#${Xt(1)}`;document.querySelector(t)?.focus()}}function Rr(e){let t=e===1?G():Xt(e-1);document.querySelector(`#${t}`)?.focus()}function zr(e=1){if(O()){Rr(e);return}let t=!!document.querySelector(`body.layout-multiple-columns`),n=+!!t,r=document.querySelector(`.column:nth-child(${e+n})`);function i(){return Lr(e+n,t),!1}if(!r)return i();let a=r.querySelector(`.scrollable`);if(!a)return i();let o=Ir(Array.from(a.querySelectorAll(`.focusable:not(.status__quote .focusable)`)));if(!o)return i();let s=window.innerWidth||document.documentElement.clientWidth,{item:c,rect:l}=o,u=t?a:document.documentElement,d=parseInt(getComputedStyle(u).getPropertyValue(`--column-header-height`))||0;return(u.scrollTop>c.offsetTop-d||l.right>s||l.left<0)&&o.item.scrollIntoView(!0),o.item.focus(),!0}function Br(){let e=document.activeElement?.closest(`.item-list > *`);if(!e)return-1;let{parentElement:t}=e;return t?Array.from(t.children).indexOf(e):-1}function Vr(){let e=document.activeElement?.closest(`.column`);return e?Array.from(document.querySelectorAll(`.column`)).indexOf(e)+1:1}function Hr(){let e=document.activeElement?.closest(`.scrollable`)??document.querySelector(`.scrollable`);if(!e)return;let t=e.querySelector(`.focusable`);t&&(e.scrollTo(0,0),t.focus())}function Ur(e,t){let n=(document.activeElement?.closest(`.item-list`))?.querySelector(`.item-list > :nth-child(${e+1+t})`);if(!n)return Wr(t);let r=n.matches(`.focusable`)?n:n.querySelector(`.focusable`);return!r&&n.matches(`.load-more`)&&(r=n),!r||n.matches(`:empty`)?Ur(e+t,t):(r.scrollIntoView({block:`start`}),r.focus(),!0)}function Wr(e){let t=document.activeElement?.closest(`.item-list`);if(!t)return!1;let n=t.closest(`.column`)??document,r=Array.from(n.querySelectorAll(`.item-list`)),i=r[r.indexOf(t)+e],a;if(e>0)a=i?.querySelector(`.focusable`);else{let e=i?.querySelectorAll(`.focusable`);a=e?.[e.length-1]}return a?(a.scrollIntoView({block:`start`}),a.focus(),!0):!1}var Gr=({multiColumn:e,children:t})=>{let n=ze(),r=!b&&_&&n.pathname.startsWith(`/deck`)?{...n,pathname:n.pathname.slice(5)}:n;return(0,Y.jsx)(Ve,{location:r,children:J.Children.map(t,t=>t?(0,J.cloneElement)(t,{multiColumn:e}):null)})},$=class extends J.Component{constructor(...e){super(...e),I(this,`state`,{hasError:!1,stacktrace:``}),I(this,`renderComponent`,({match:e})=>{let{component:t,content:n,multiColumn:r,componentParams:i}=this.props,{hasError:a,stacktrace:o}=this.state;return a?(0,Y.jsx)(q,{stacktrace:o,multiColumn:r,errorType:`error`}):(0,Y.jsx)(_t,{fetchComponent:t,loading:this.renderLoading,error:this.renderError,children:t=>(0,Y.jsx)(t,{params:e.params,multiColumn:r,...i,children:n})})}),I(this,`renderLoading`,()=>{let{multiColumn:e}=this.props;return(0,Y.jsx)(Er,{multiColumn:e})}),I(this,`renderError`,e=>(0,Y.jsx)(q,{...e,errorType:`network`}))}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){Zn.default.fromError(e).then(t=>{this.setState({stacktrace:e.toString()+` 7`+t.map(e=>e.toString()).join(` 8`)})}).catch(e=>{console.error(e)})}render(){let{component:e,content:t,...n}=this.props;return(0,Y.jsx)(P,{...n,render:this.renderComponent})}};I($,`defaultProps`,{componentParams:{}});var Kr=()=>(0,Y.jsxs)(`div`,{className:Q.placeholder,children:[(0,Y.jsx)(K,{width:`100%`}),(0,Y.jsx)(K,{width:`100%`}),(0,Y.jsx)(K,{width:`100%`})]}),qr=()=>{let e=L(),t=R(e=>e.server.server),n=R(e=>e.server.extendedDescription),r=t.item?.contact.account?.id??``,a=n.isLoading,o=(n.item?.content.length??0)>0,s=n.item?.content??``;return(0,J.useEffect)(()=>{e(xe())},[e]),(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(`div`,{className:Q.block,children:[(0,Y.jsx)(`h2`,{children:(0,Y.jsx)(i,{id:`custom_homepage.administered_by`,defaultMessage:`Administered by`})}),(0,Y.jsx)(Nn,{id:r,size:36,minimal:!0})]}),(0,Y.jsxs)(`div`,{className:Q.block,children:[(0,Y.jsx)(`h2`,{children:(0,Y.jsx)(i,{id:`custom_homepage.about_this_server`,defaultMessage:`About this server`})}),a?(0,Y.jsx)(Kr,{}):o?(0,Y.jsx)(`div`,{className:`prose`,dangerouslySetInnerHTML:{__html:s}}):(0,Y.jsx)(`div`,{className:`prose`,children:(0,Y.jsx)(`p`,{children:(0,Y.jsx)(i,{id:`about.not_available`,defaultMessage:`This information has not been made available on this server.`})})})]})]})},Jr=()=>{let e=L();return(0,J.useEffect)(()=>{e(ke())},[e]),(0,Y.jsx)(qn,{prepend:(0,Y.jsx)(Gn,{className:Q.banner,children:(0,Y.jsx)(i,{id:`custom_homepage.these_are_the_latest_posts`,defaultMessage:`These are the latest 40 posts from accounts on this server.`})}),scrollKey:`custom_homepage`,timelineId:`community`,maxItems:40,bindToDocument:!0})},Yr=()=>{let e=L(),t=R(e=>e.server.server),{signedIn:n}=$t(),{path:r}=He();return(0,J.useEffect)(()=>{e(M())},[e]),(0,Y.jsxs)(`div`,{className:(0,X.default)(Q.page,O()&&Q.pageRedesign),children:[O()&&(0,Y.jsx)(jn,{title:y,extraButtons:!n&&(0,Y.jsx)(An,{as:`a`,href:h??`/auth/sign_in`,"data-method":h?`post`:void 0,showTextOnDesktop:!0,icon:ce,variant:`solid`,children:(0,Y.jsx)(i,{id:`sign_in_banner.sign_in`,defaultMessage:`Login`})})}),(0,Y.jsx)(zn,{alt:t.item?.thumbnail.description??``,blurhash:t.item?.thumbnail.blurhash??``,src:t.item?.thumbnail.url??``,srcSet:Object.keys(t.item?.thumbnail.versions??{}).map(e=>`${t.item?.thumbnail.versions?.[e]} ${e.replace(`@`,``)}`).join(`, `),className:Q.header}),(0,Y.jsxs)(`div`,{className:Q.topSection,children:[(0,Y.jsx)(ut,{as:`h1`,children:t.item?.domain}),(0,Y.jsx)(`p`,{children:t.item?.description})]}),(0,Y.jsxs)(Un,{children:[(0,Y.jsx)(Wn,{to:r,exact:!0,children:(0,Y.jsx)(i,{id:`custom_homepage.latest_activity`,defaultMessage:`Latest activity`})}),(0,Y.jsx)(Wn,{to:`${r}/about`,exact:!0,children:(0,Y.jsx)(i,{id:`custom_homepage.about`,defaultMessage:`About`})})]}),(0,Y.jsxs)(Ve,{children:[(0,Y.jsx)(P,{path:r,exact:!0,component:Jr}),(0,Y.jsx)(P,{path:`${r}/about`,exact:!0,component:qr})]}),(0,Y.jsxs)(z,{children:[(0,Y.jsx)(`title`,{children:t.item?.domain}),(0,Y.jsx)(`meta`,{name:`robots`,content:`all`})]})]})},Xr=o({beforeUnload:{id:`ui.beforeunload`,defaultMessage:`Your draft will be lost if you leave Mastodon.`}}),Zr=e=>({layout:e.getIn([`meta`,`layout`]),hasComposingContents:e.getIn([`compose`,`text`]).trim().length!==0||e.getIn([`compose`,`media_attachments`]).size>0||e.getIn([`compose`,`poll`])!==null||e.getIn([`compose`,`quoted_status_id`])!==null,canUploadMore:!e.getIn([`compose`,`media_attachments`]).some(e=>[`audio`,`video`].includes(e.get(`type`)))&&e.getIn([`compose`,`media_attachments`]).size<e.getIn([`server`,`server`,`item`,`configuration`,`statuses`,`max_media_attachments`]),isUploadEnabled:e.getIn([`compose`,`isDragDisabled`])!==!0,isWide:e.getIn([`local_settings`,`stretch`]),fullWidthColumns:e.getIn([`local_settings`,`fullwidth_columns`]),unreadNotifications:kn(e),showFaviconBadge:e.getIn([`local_settings`,`notifications`,`favicon_badge`]),hicolorPrivacyIcons:e.getIn([`local_settings`,`hicolor_privacy_icons`]),moved:e.getIn([`accounts`,d,`moved`])&&e.getIn([`accounts`,e.getIn([`accounts`,d,`moved`])]),firstLaunch:e.getIn([`settings`,`introductionVersion`],0)<Qt,newAccount:!e.getIn([`accounts`,d,`note`])&&!e.getIn([`accounts`,d,`bot`])&&e.getIn([`accounts`,d,`following_count`],0)===0&&e.getIn([`accounts`,d,`statuses_count`],0)===0,username:e.getIn([`accounts`,d,`username`])}),Qr=class extends J.PureComponent{constructor(...e){super(...e),I(this,`setRef`,e=>{e&&(this.node=e)})}componentDidMount(){document.body.classList.toggle(`layout-single-column`,this.props.singleColumn),document.body.classList.toggle(`layout-multiple-columns`,!this.props.singleColumn)}componentDidUpdate(e){[this.props.location.pathname,`/`].includes(e.location.pathname)||this.handleChildrenContentChange(),e.singleColumn!==this.props.singleColumn&&(document.body.classList.toggle(`layout-single-column`,this.props.singleColumn),document.body.classList.toggle(`layout-multiple-columns`,!this.props.singleColumn))}handleChildrenContentChange(){let{preventMultiColumnAutoScroll:e}=this.props.location.state??{};if(!this.props.singleColumn&&!e){let e=document.getElementsByTagName(`body`)[0]?.classList.contains(`rtl`)?-1:1;Jt(this.node,(this.node.scrollWidth-window.innerWidth)*e)}}render(){let{children:e,singleColumn:t,forceOnboarding:n,minimalShell:r}=this.props,{signedIn:i}=this.props.identity,a=this.props.location.pathname,o=t||O()?`/home`:`/deck/getting-started`,s;s=i?n?`/start`:o:ee&&x&&S?.accounts[x]?`/@${S.accounts[x].username}`:f&&w===`trends`?`/explore`:C===`public`&&w===`local_feed`?`/public/local`:w===`overview`?`/overview`:`/about`;let c=e=>({pathname:e,state:{...this.props.location.state,focusTarget:!1}});return(0,Y.jsx)(Ln,{multiColumn:!t,children:(0,Y.jsx)(Fr,{ref:this.setRef,singleColumn:t,domain:y,minimalShell:r,children:(0,Y.jsxs)(Gr,{children:[(0,Y.jsx)(F,{from:`/`,to:c(s),exact:!0}),b||we?(0,Y.jsx)(F,{from:`/deck`,to:c(`/home`),exact:!0}):null,(b||we)&&a.startsWith(`/deck/`)?(0,Y.jsx)(F,{from:a,to:{...this.props.location,pathname:a.slice(5)}}
8):null,!t&&a===`/home`?(0,Y.jsx)(F,{from:`/home`,to:c(o),exact:!0}):null,a===`/getting-started`||O()?(0,Y.jsx)(F,{from:`/getting-started`,to:c(o),exact:!0}):null,(0,Y.jsx)($,{path:`/getting-started`,component:Bt,content:e}),(0,Y.jsx)($,{path:`/keyboard-shortcuts`,component:Et,content:e}),(0,Y.jsx)($,{path:`/about`,component:dt,content:e}),(0,Y.jsx)($,{path:`/privacy-policy`,component:$e,content:e}),(0,Y.jsx)($,{path:`/terms-of-service/:date?`,component:gt,content:e}),(0,Y.jsx)($,{path:[`/home`,`/timelines/home`],component:Pt,content:e}),(0,Y.jsx)(F,{from:`/timelines/public`,to:c(`/public`),exact:!0}),(0,Y.jsx)(F,{from:`/timelines/public/local`,to:c(`/public/local`),exact:!0}),(0,Y.jsx)($,{path:`/public`,exact:!0,component:W,componentParams:{feedType:`public`},content:e}),(0,Y.jsx)($,{path:`/public/local`,exact:!0,component:W,componentParams:{feedType:`community`},content:e}),(0,Y.jsx)($,{path:`/public/bubble`,exact:!0,component:W,componentParams:{feedType:`bubble`},content:e}),(0,Y.jsx)($,{path:`/public/remote`,exact:!0,component:W,componentParams:{feedType:`public:remote`},content:e}),(0,Y.jsx)($,{path:[`/conversations`,`/timelines/direct`],component:Lt,content:e}),(0,Y.jsx)($,{path:`/tags/:id`,component:U,content:e}),(0,Y.jsx)($,{path:`/links/:url`,component:It,content:e}),(0,Y.jsx)($,{path:`/lists/new`,component:Ot,content:e}),(0,Y.jsx)($,{path:`/lists/:id/edit`,component:Ot,content:e}),(0,Y.jsx)($,{path:`/lists/:id/members`,component:Dt,content:e}),(0,Y.jsx)($,{path:`/lists/:id`,component:H,content:e}),(0,Y.jsx)($,{path:`/notifications`,component:Ut,content:e,exact:!0}),(0,Y.jsx)($,{path:`/notifications/requests`,component:Qe,content:e,exact:!0}),(0,Y.jsx)($,{path:`/notifications/requests/:id`,component:vt,content:e,exact:!0}),(0,Y.jsx)($,{path:`/favourites`,component:Je,content:e}),(0,Y.jsx)($,{path:`/bookmarks`,component:ht,content:e}),(0,Y.jsx)($,{path:`/start/profile`,exact:!0,component:tt,content:e}),(0,Y.jsx)($,{path:[`/start`,`/start/follows`],exact:!0,component:yt,content:e}),(0,Y.jsx)($,{path:`/directory`,component:at,content:e}),(0,Y.jsx)($,{path:`/explore`,component:mt,content:e}),(0,Y.jsx)($,{path:`/search`,component:pt,content:e}),(0,Y.jsx)($,{path:[`/publish`,`/statuses/new`],component:ot,content:e}),(0,Y.jsx)($,{path:`/profile/edit`,component:Mt,content:e}),(0,Y.jsx)($,{path:`/profile/featured_tags`,component:Ye,content:e}),(0,Y.jsx)($,{path:[`/@:acct`,`/accounts/:id`],exact:!0,component:V,content:e}),(0,Y.jsx)($,{path:[`/@:acct/featured`,`/accounts/:id/featured`],component:At,content:e}),(0,Y.jsx)($,{path:[`/@:acct/collections`],component:rt,content:e},`collections-list`),(0,Y.jsx)($,{path:[`/collections/new`,`/collections/:id/edit`],component:bt,content:e},`collections-editor`),(0,Y.jsx)($,{path:`/collections/:id`,component:xt,content:e},`collections-detail`),(0,Y.jsx)($,{path:`/@:acct/tagged/:tagged?`,exact:!0,component:V,content:e}),(0,Y.jsx)($,{path:[`/@:acct/with_replies`,`/accounts/:id/with_replies`],component:V,content:e,componentParams:{withReplies:!0}}),(0,Y.jsx)($,{path:[`/accounts/:id/followers`,`/users/:acct/followers`,`/@:acct/followers`],component:wt,content:e}),(0,Y.jsx)($,{path:[`/accounts/:id/following`,`/users/:acct/following`,`/@:acct/following`],component:Ft,content:e}),(0,Y.jsx)($,{path:[`/@:acct/media`,`/accounts/:id/media`],component:ct,content:e}),(0,Y.jsx)($,{path:`/@:acct/:statusId`,exact:!0,component:it,content:e}),(0,Y.jsx)($,{path:`/@:acct/:statusId/reactions`,component:Ze,content:e}),(0,Y.jsx)($,{path:`/@:acct/:statusId/reblogs`,component:jt,content:e}),(0,Y.jsx)($,{path:`/@:acct/:statusId/favourites`,component:Tt,content:e}),(0,Y.jsx)($,{path:`/@:acct/:statusId/quotes`,component:Nt,content:e}),(0,Y.jsx)($,{path:`/timelines/tag/:id`,component:U,content:e}),(0,Y.jsx)($,{path:`/timelines/list/:id`,component:H,content:e}),(0,Y.jsx)($,{path:`/statuses/:statusId`,exact:!0,component:it,content:e}),(0,Y.jsx)($,{path:`/statuses/:statusId/reblogs`,component:jt,content:e}),(0,Y.jsx)($,{path:`/statuses/:statusId/favourites`,component:Tt,content:e}),(0,Y.jsx)($,{path:`/follow_requests`,component:zt,content:e}),(0,Y.jsx)($,{path:`/blocks`,component:st,content:e}),(0,Y.jsx)($,{path:`/domain_blocks`,component:Ct,content:e}),(0,Y.jsx)($,{path:`/followed_tags`,component:kt,content:e}),(0,Y.jsx)($,{path:`/mutes`,component:Wt,content:e}),(0,Y.jsx)($,{path:`/lists`,component:Ht,content:e}),(0,Y.jsx)(P,{path:`/overview`,component:Yr}),(0,Y.jsx)(P,{component:q})]})})})}},$r=class extends J.PureComponent{constructor(...e){super(...e),I(this,`state`,{draggingOver:!1}),I(this,`handleBeforeUnload`,e=>{let{intl:t,dispatch:n,hasComposingContents:r}=this.props;n(Oe()),r&&(e.returnValue=t.formatMessage(Xr.beforeUnload))}),I(this,`handleVisibilityChange`,()=>{document[this.visibilityHiddenProp]?this.props.dispatch(Ie()):(this.props.dispatch(pe()),this.props.dispatch(Pe({immediate:!0})))}),I(this,`handleDragEnter`,e=>{this.props.isUploadEnabled&&(e.preventDefault(),this.dragTargets||=[],this.dragTargets.indexOf(e.target)===-1&&this.dragTargets.push(e.target),e.dataTransfer&&Array.from(e.dataTransfer.types).includes(`Files`)&&this.props.canUploadMore&&this.props.identity.signedIn&&this.setState({draggingOver:!0}))}),I(this,`handleDragOver`,e=>{if(this.props.isUploadEnabled){if(this.dataTransferIsText(e.dataTransfer))return!1;e.preventDefault(),e.stopPropagation();try{e.dataTransfer.dropEffect=`copy`}catch{}return!1}}),I(this,`handleDrop`,e=>{this.props.isUploadEnabled&&(this.dataTransferIsText(e.dataTransfer)||(e.preventDefault(),this.setState({draggingOver:!1}),this.dragTargets=[],e.dataTransfer&&e.dataTransfer.files.length>=1&&this.props.canUploadMore&&this.props.identity.signedIn&&this.props.dispatch(Ae(e.dataTransfer.files))))}),I(this,`handleDragLeave`,e=>{e.preventDefault(),e.stopPropagation(),this.dragTargets=this.dragTargets.filter(t=>t!==e.target&&this.node.contains(t)),!(this.dragTargets.length>0)&&this.setState({draggingOver:!1})}),I(this,`dataTransferIsText`,e=>e&&Array.from(e.types).filter(e=>e===`text/plain`).length===1),I(this,`closeUploadModal`,()=>{this.setState({draggingOver:!1})}),I(this,`handleServiceWorkerPostMessage`,({data:e})=>{e.type===`navigate`?this.props.history.push(e.path):console.warn(`Unknown message type:`,e.type)}),I(this,`handleLayoutChange`,(0,er.default)(()=>{this.props.dispatch(me())},500,{trailing:!0})),I(this,`handleResize`,()=>{let e=Le();e===this.props.layout?this.handleLayoutChange():(this.handleLayoutChange.cancel(),this.props.dispatch(ve({layout:e})))}),I(this,`handleDonate`,()=>{location.href=`https://joinmastodon.org/sponsors#donate`}),I(this,`setRef`,e=>{this.node=e}),I(this,`handleHotkeyNew`,e=>{e.preventDefault();let t=this.node.querySelector(`.autosuggest-textarea__textarea`);t&&t.focus()}),I(this,`handleHotkeySearch`,e=>{e.preventDefault();let t=this.node.querySelector(`.search__input`);t&&t.focus()}),I(this,`handleHotkeyForceNew`,e=>{this.handleHotkeyNew(e),this.props.dispatch(Te())}),I(this,`handleHotkeyToggleComposeSpoilers`,e=>
8{e.preventDefault(),this.props.dispatch(ye())}),I(this,`handleHotkeyFocusColumn`,e=>{zr(e.key*1)}),I(this,`handleHotkeyLoadMore`,()=>{document.querySelector(`.load-more`)?.focus()}),I(this,`handleMoveToTop`,()=>{Hr()}),I(this,`handleMoveUp`,()=>{let e=Br();return e===-1?zr(Vr()):Ur(e,-1)}),I(this,`handleMoveDown`,()=>{let e=Br();return e===-1?zr(Vr()):Ur(e,1)}),I(this,`handleHotkeyBack`,e=>{e.preventDefault();let{history:t}=this.props;t.location?.state?.fromMastodon?t.goBack():t.push(`/`)}),I(this,`handleHotkeyToggleHelp`,()=>{this.props.location.pathname===`/keyboard-shortcuts`?this.props.history.goBack():this.props.history.push(`/keyboard-shortcuts`)}),I(this,`handleHotkeyGoToHome`,()=>{this.props.history.push(`/home`)}),I(this,`handleHotkeyGoToExplore`,()=>{this.props.history.push(`/explore`)}),I(this,`handleHotkeyGoToNotifications`,()=>{this.props.history.push(`/notifications`)}),I(this,`handleHotkeyGoToLocal`,()=>{this.props.history.push(`/public/local`)}),I(this,`handleHotkeyGoToFederated`,()=>{this.props.history.push(`/public`)}),I(this,`handleHotkeyGoToDirect`,()=>{this.props.history.push(`/conversations`)}),I(this,`handleHotkeyGoToStart`,()=>{this.props.history.push(`/getting-started`),setTimeout(()=>{document.querySelector(`#${G()}`)?.focus()},0)}),I(this,`handleHotkeyGoToFavourites`,()=>{this.props.history.push(`/favourites`)}),I(this,`handleHotkeyGoToProfile`,()=>{this.props.history.push(`/@${this.props.username}`)}),I(this,`handleHotkeyGoToBlocked`,()=>{this.props.history.push(`/blocks`)}),I(this,`handleHotkeyGoToMuted`,()=>{this.props.history.push(`/mutes`)}),I(this,`handleHotkeyGoToRequests`,()=>{this.props.history.push(`/follow_requests`)})}componentDidMount(){let{signedIn:e}=this.props.identity;window.addEventListener(`beforeunload`,this.handleBeforeUnload,!1),window.addEventListener(`resize`,this.handleResize,{passive:!0}),document.addEventListener(`dragenter`,this.handleDragEnter,!1),document.addEventListener(`dragover`,this.handleDragOver,!1),document.addEventListener(`drop`,this.handleDrop,!1),document.addEventListener(`dragleave`,this.handleDragLeave,!1),`serviceWorker`in navigator&&navigator.serviceWorker.addEventListener(`message`,this.handleServiceWorkerPostMessage),this.favicon=new tr.default({animation:`none`}),e&&(this.props.dispatch(Me()),this.props.dispatch(Ce()),this.props.dispatch(_e()),this.props.dispatch(Se()),this.props.dispatch(Re()),setTimeout(()=>this.props.dispatch(M()),3e3)),document.hidden===void 0?document.msHidden===void 0?document.webkitHidden!==void 0&&(this.visibilityHiddenProp=`webkitHidden`,this.visibilityChange=`webkitvisibilitychange`):(this.visibilityHiddenProp=`msHidden`,this.visibilityChange=`msvisibilitychange`):(this.visibilityHiddenProp=`hidden`,this.visibilityChange=`visibilitychange`),this.visibilityChange!==void 0&&(document.addEventListener(this.visibilityChange,this.handleVisibilityChange,!1),this.handleVisibilityChange())}componentDidUpdate(e){if((this.props.unreadNotifications!==e.unreadNotifications||this.props.showFaviconBadge!==e.showFaviconBadge)&&this.favicon)try{this.favicon.badge(this.props.showFaviconBadge?this.props.unreadNotifications:0)}catch(e){console.error(e)}}componentWillUnmount(){this.visibilityChange!==void 0&&document.removeEventListener(this.visibilityChange,this.handleVisibilityChange),window.removeEventListener(`beforeunload`,this.handleBeforeUnload),window.removeEventListener(`resize`,this.handleResize),document.removeEventListener(`dragenter`,this.handleDragEnter),document.removeEventListener(`dragover`,this.handleDragOver),document.removeEventListener(`drop`,this.handleDrop),document.removeEventListener(`dragleave`,this.handleDragLeave)}render(){let{draggingOver:e}=this.state,{children:t,isWide:n,location:r,layout:a,moved:o,firstLaunch:s,newAccount:c}=this.props,l=(0,X.default)(`ui`,{wide:n,"fullwidth-columns":this.props.fullWidthColumns,"system-font":this.props.systemFontUi,"hicolor-privacy-icons":this.props.hicolorPrivacyIcons}),u={help:this.handleHotkeyToggleHelp,new:this.handleHotkeyNew,search:this.handleHotkeySearch,forceNew:this.handleHotkeyForceNew,toggleComposeSpoilers:this.handleHotkeyToggleComposeSpoilers,focusColumn:this.handleHotkeyFocusColumn,focusLoadMore:this.handleHotkeyLoadMore,moveDown:this.handleMoveDown,moveUp:this.handleMoveUp,moveToTop:this.handleMoveToTop,back:this.handleHotkeyBack,goToHome:this.handleHotkeyGoToHome,goToExplore:this.handleHotkeyGoToExplore,goToNotifications:this.handleHotkeyGoToNotifications,goToLocal:this.handleHotkeyGoToLocal,goToFederated:this.handleHotkeyGoToFederated,goToDirect:this.handleHotkeyGoToDirect,goToStart:this.handleHotkeyGoToStart,goToFavourites:this.handleHotkeyGoToFavourites,goToProfile:this.handleHotkeyGoToProfile,goToBlocked:this.handleHotkeyGoToBlocked,goToMuted:this.handleHotkeyGoToMuted,goToRequests:this.handleHotkeyGoToRequests,cheat:this.handleDonate},d=!this.props.identity.signedIn&&w===`overview`&&r.pathname.startsWith(`/overview`);return(0,Y.jsx)(Xe,{global:!0,handlers:u,children:(0,Y.jsxs)(`div`,{className:l,ref:this.setRef,children:[!d&&(0,Y.jsx)(qt,{multiColumn:a===`multi-column`,onFocusGettingStartedColumn:this.handleHotkeyGoToStart}),o&&(0,Y.jsx)(`div`,{className:`flash-message alert`,children:(0,Y.jsx)(i,{id:`moved_to_warning`,defaultMessage:`This account is marked as moved to {moved_to_link}, and may thus not accept new follows.`,values:{moved_to_link:(0,Y.jsxs)(Sn,{href:o.get(`url`),to:`/@${o.get(`acct`)}`,children:[`@`,o.get(`acct`)]})}})}),(0,Y.jsx)(Qr,{identity:this.props.identity,location:r,singleColumn:a===`mobile`||a===`single-column`,layout:a,forceOnboarding:s&&c,minimalShell:d,children:t}),!d&&!O()&&(0,Y.jsx)(Mn,{}),a!==`mobile`&&(0,Y.jsx)(pr,{}),(0,Y.jsx)(mn,{}),!v&&(0,Y.jsx)(ur,{}),(0,Y.jsx)(gr,{}),(0,Y.jsx)(pn,{className:`loading-bar`}),(0,Y.jsx)(hn,{}),(0,Y.jsx)(mr,{active:e,onClose:this.closeUploadModal})]})})}},ei=de(Zr)(gn(Be(nn($r)))),ti=T()?g:`${g} (Dev)`,ni=fe(S);N.dispatch(ni),N.dispatch(be());var ri=class extends J.PureComponent{constructor(...e){super(...e),I(this,`identity`,an(S))}componentDidMount(){this.identity.signedIn&&(this.disconnect=N.dispatch(qe()))}componentWillUnmount(){this.disconnect&&=(this.disconnect(),null)}render(){return(0,Y.jsx)(en.Provider,{value:this.identity,children:(0,Y.jsx)(k,{children:(0,Y.jsx)(le,{store:N,children:(0,Y.jsxs)(Qn,{children:[(0,Y.jsxs)(We,{children:[(0,Y.jsx)(Kn,{children:(0,Y.jsx)(lt,{children:(0,Y.jsx)(P,{path:`/`,component:ei})})}),(0,Y.jsx)(nt,{})]}),(0,Y.jsx)(z,{defaultTitle:ti,titleTemplate:`%s - ${ti}`})]})})})})}};function ii(){return Yn(`main()`),l(async()=>{let e=document.getElementById(`mastodon`);if(!e)throw Error(`Mount node not found`);let t=JSON.parse(e.getAttribute(`data-props`)??`{}`);m&&j.assign({skipAnimation:!0});let{initializeEmoji:n}=await c(async()=>{let{initializeEmoji:e}=await import(`../emoji-CCM0KiSc.js`).then(e=>e.t);return{initializeEmoji:e}},__vite__mapDeps([23,1,4,2,5,22,9,3,10,11,12,21]),import.meta.url);if(await n(),O()&&(document.documentElement.dataset.redesign=`true`),(0,Jn.createRoot)(e).render((0,Y.jsx)(J.StrictMode,{children:(0,Y.jsx)(ri,{...t})})),N.dispatch(ge()),d&&`serviceWorker`in navigator&&(E()||T())){let e=`/sw.js`;if(E()){let{default:t}=await c(async()=>{let{default:e}=await import(`../sw-CreKd0lH.js`);return{default:e}},[],import.meta.url);e=t}if(await navigator.serviceWorker.register(e,{scope:`/`,type:`module`}),T()&&`Notification`in window&&Notification.permission===`granted`){let e=await c(()=>import(`../time-KXiROFCN.js`).then(e=>e.to),__vite__mapDeps([13,1,2,3,4,14,5,6,7,9,10,11,12,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url);N.dispatch(e.register())}}Xn(`main()`)})}Ge().then(D).then(ii).catch(e=>{console.error(e)});export{_r as n,jr as t}; 9//# sourceMappingURL=application.ts-Bu5t-VtU.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.