1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/packs/emoji-C0EOJ-dP.js","/packs/rolldown-runtime-C0FnF6B9.js","/packs/preload-helper-HclGiUj8.js","/packs/initial_state-DnZ5UeDQ.js","/packs/locale-D-1rLaCQ.js","/packs/utils-B19lL5A9.js","/packs/_rolldown_dynamic_import_helper-CIAwlR2T.js","/packs/intl-localematcher-DRXXZd2Y.js","/packs/fast-memoize-tJqGINKI.js","/packs/push_notifications-C0ir4q-Q.js","/packs/api-CGawW2vu.js","/packs/ready-B3bZnx13.js","/packs/axios-BtspdZ3f.js","/packs/settings-Cq4pjZIN.js"])))=>i.map(i=>d[i]); 2import{o as e,t}from"./rolldown-runtime-C0FnF6B9.js";import{t as n}from"./react-C21x__mS.js";import{a as r,c as i,s as a}from"./react-intl-DlKP8ATg.js";import{t as o}from"./jsx-runtime-BdxMnOeJ.js";import{t as s}from"./client-CmciOIsg.js";import{t as c}from"./ready-B3bZnx13.js";import{t as l}from"./preload-helper-HclGiUj8.js";import{B as u,I as d,L as f,M as p,S as m,T as h,a as g,c as _,f as v,g as y,j as b,m as x,p as S,u as C,y as w}from"./initial_state-DnZ5UeDQ.js";import{n as ee,t as T}from"./environment-a85louTd.js";import{n as te,t as ne}from"./locales-Dt-Oha2Q.js";import{i as re,n as ie,o as ae,t as oe}from"./react-spring_web.modern-C6ohYUSs.js";import{Ft as se,Kn as ce,Pt as le,W as ue,ct as de,er as fe,mn as pe,n as E,qt as me,vt as he}from"./store-BKpYtGn4.js";import{c as D,d as ge,i as _e,n as O,t as k,u as ve}from"./react-router-BkmJBoOP.js";import{t as ye}from"./router-DyLRbCnX.js";import{t as be}from"./debounce-CXuT-gkt.js";import{T as xe}from"./accounts-5t7gWyVC.js";import{t as A}from"./defineProperty-BbfpZ9Tg.js";import{c as Se,l as Ce,n as we,o as j,s as M}from"./typed_functions-Whap35TF.js";import{c as Te}from"./utils-B19lL5A9.js";import{$n as Ee,Et as De,Jt as Oe,Ut as ke,Xn as Ae,Zn as je,hn as Me,pn as Ne}from"./filters-Br4s8K7f.js";import{t as N}from"./helmet-C5cFHKKR.js";import{t as Pe}from"./react-router-dom-C1dtKQUg.js";import{o as Fe}from"./streaming-B3iM9nSs.js";import{n as Ie,r as Le}from"./navigation_focus_target-B65hNV9H.js";import{t as Re}from"./classnames-CfLRLWYq.js";import{a as ze,n as Be,r as P,t as Ve}from"./skip_links-CmGdRWd6.js";import{a as He,n as Ue,r as We}from"./app-DHclxKoS.js";import{t as Ge}from"./onboarding-B9HK_lQ9.js";import{i as Ke,n as qe,r as Je}from"./server-DYfOIhN5.js";import{t as Ye}from"./close-DIPoUQpY.js";import{t as Xe}from"./loading_indicator-eceYQNAM.js";import{t as Ze}from"./icon_button-DfNtv8BJ.js";import{t as Qe}from"./short_number-Cg8abbMu.js";import{t as $e}from"./icon-BNrUFRb_.js";import{n as et,r as tt,t as nt}from"./modal_container-ByuwnQBP.js";import{t as rt}from"./intl-B-3n4e1o.js";import{w as it}from"./status_quoted-Conx0xFm.js";import{a as at,i as ot,n as st,t as ct}from"./identity_context-CLXpzjnM.js";import{t as lt}from"./use_fetch_familiar_followers-CPfdhVyu.js";import{t as ut}from"./html-CzpiK0AH.js";import{o as dt}from"./status_content-KAbCaCLt.js";import{t as ft}from"./account_bio-BaaTiTjS.js";import{t as pt}from"./check-C3BKu3lm.js";import{n as F}from"./relative_timestamp-BOzlsJjy.js";import{t as mt}from"./avatar_group-BTtoIhgR.js";import{_ as ht,m as gt,t as _t,v as vt}from"./account-jztc2BSU.js";import{t as I}from"./skeleton-BO82ZgT5.js";import{t as yt}from"./display_name-Dl2ASLlM.js";import{t as bt}from"./popover-CMoU7E4P.js";import{t as L}from"./useTimeout-B7x_fFEH.js";import{t as xt}from"./audio-C2Zz7sht.js";import{t as St}from"./video-B-s0PS3Z.js";import"./card-B8qczahc.js";import{n as Ct}from"./dropdown_menu-U6SI6ReI.js";import{o as wt}from"./media_modal-DI6DnQN5.js";import{t as R}from"./bundle_column_error-Dc3rL_yE.js";import{t as Tt}from"./navigation_bar-DJIAaf-V.js";import{d as z,i as Et,l as Dt,t as Ot}from"./columns_area-CMZxm2t8.js";import{$ as kt,A as At,B as jt,D as Mt,E as Nt,F as Pt,G as Ft,H as It,I as Lt,J as Rt,M as zt,N as Bt,P as Vt,Q as Ht,S as Ut,T as Wt,U as Gt,W as Kt,X as qt,Y as Jt,Z as Yt,a as Xt,b as Zt,ct as Qt,d as $t,et as en,h as tn,i as nn,it as rn,j as an,k as B,m as on,n as sn,o as V,p as cn,r as ln,rt as un,st as dn,t as fn,tt as pn,u as mn,ut as hn,v as gn,y as _n,z as vn}from"./async-components-XOODkk_M.js";import{t as yn}from"./bundle-D48MvYTM.js";import{t as bn}from"./server_hero_image-BU59oHIL.js";import{n as xn,t as Sn}from"./tab_list-BhWby16d.js";import{t as Cn}from"./callout-B1KuUxns.js";import{n as wn}from"./scroll_container-DTFJ2dtn.js";import{t as Tn}from"./status_list_container-B12YolX4.js";var H=e(n()),En=s(),U=typeof performance<`u`&&performance,Dn=U&&U.now?function(){return U.now()}:function(){return Date.now()};function W(e){if(!e)throw Error(`name must be non-empty`)}function On(e,t){for(var n=0,r=e.length,i;n<r;)i=n+r>>>1,e[i].startTime<t.startTime?n=i+1:r=i;
2e.splice(n,0,t)}var G,K;if(U&&U.mark&&U.measure&&U.getEntriesByName&&U.getEntriesByType&&U.clearMarks&&U.clearMeasures)G=function(e){W(e),U.mark(`start `+e)},K=function(e){W(e),U.mark(`end `+e);var t=U.measure(e,`start `+e,`end `+e);if(t)return t;var n=U.getEntriesByName(e);return n[n.length-1]};else{var kn={},An=[];G=function(e){W(e);var t=Dn();kn[`$`+e]=t},K=function(e){W(e);var t=Dn(),n=kn[`$`+e];if(!n)throw Error(`no known mark: `+e);var r={startTime:n,name:e,duration:t-n,entryType:`measure`};return On(An,r),r}}function jn(e){T()&&G(e)}function Mn(e){T()&&K(e)}var q=t(((e,t)=>{(function(n,r){typeof define==`function`&&define.amd?define(`stackframe`,[],r):typeof e==`object`?t.exports=r():n.StackFrame=r()})(e,function(){function e(e){return!isNaN(parseFloat(e))&&isFinite(e)}function t(e){return e.charAt(0).toUpperCase()+e.substring(1)}function n(e){return function(){return this[e]}}var r=[`isConstructor`,`isEval`,`isNative`,`isToplevel`],i=[`columnNumber`,`lineNumber`],a=[`fileName`,`functionName`,`source`],o=r.concat(i,a,[`args`],[`evalOrigin`]);function s(e){if(e)for(var n=0;n<o.length;n++)e[o[n]]!==void 0&&this[`set`+t(o[n])](e[o[n]])}s.prototype={getArgs:function(){return this.args},setArgs:function(e){if(Object.prototype.toString.call(e)!==`[object Array]`)throw TypeError(`Args must be an Array`);this.args=e},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(e){if(e instanceof s)this.evalOrigin=e;else if(e instanceof Object)this.evalOrigin=new s(e);else throw TypeError(`Eval Origin must be an Object or StackFrame`)},toString:function(){var e=this.getFileName()||``,t=this.getLineNumber()||``,n=this.getColumnNumber()||``,r=this.getFunctionName()||``;return this.getIsEval()?e?`[eval] (`+e+`:`+t+`:`+n+`)`:`[eval]:`+t+`:`+n:r?r+` (`+e+`:`+t+`:`+n+`)`:e+`:`+t+`:`+n}},s.fromString=function(e){var t=e.indexOf(`(`),n=e.lastIndexOf(`)`),r=e.substring(0,t),i=e.substring(t+1,n).split(`,`),a=e.substring(n+1);if(a.indexOf(`@`)===0)var o=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(a,``),c=o[1],l=o[2],u=o[3];return new s({functionName:r,args:i||void 0,fileName:c,lineNumber:l||void 0,columnNumber:u||void 0})};for(var c=0;c<r.length;c++)s.prototype[`get`+t(r[c])]=n(r[c]),s.prototype[`set`+t(r[c])]=(function(e){return function(t){this[e]=!!t}})(r[c]);for(var l=0;l<i.length;l++)s.prototype[`get`+t(i[l])]=n(i[l]),s.prototype[`set`+t(i[l])]=(function(t){return function(n){if(!e(n))throw TypeError(t+` must be a Number`);this[t]=Number(n)}})(i[l]);for(var u=0;u<a.length;u++)s.prototype[`get`+t(a[u])]=n(a[u]),s.prototype[`set`+t(a[u])]=(function(e){return function(t){this[e]=String(t)}})(a[u]);return s})})),Nn=t(((e,t)=>{(function(n,r){typeof define==`function`&&define.amd?define(`error-stack-parser`,[`stackframe`],r):typeof e==`object`?t.exports=r(q()):n.ErrorStackParser=r(n.StackFrame)})(e,function(e){var t=/(^|@)\S+:\d+/,n=/^\s*at .*(\S+:\d+|\(native\))/m,r=/^(eval@)?(\[native code])?$/;return{parse:function(e){if(e.stacktrace!==void 0||e[`opera#sourceloc`]!==void 0)return this.parseOpera(e);if(e.stack&&e.stack.match(n))return this.parseV8OrIE(e);if(e.stack)return this.parseFFOrSafari(e);throw Error(`Cannot parse given Error object`)},extractLocation:function(e){if(e.indexOf(`:`)===-1)return[e];var t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,``));return[t[1],t[2]||void 0,t[3]||void 0]},parseV8OrIE:function(t){return t.stack.split(` 3`).filter(function(e){return!!e.match(n)},this).map(function(t){t.indexOf(`(eval `)>-1&&(t=t.replace(/eval code/g,`eval`).replace(/(\(eval at [^()]*)|(,.*$)/g,``));var n=t.replace(/^\s+/,``).replace(/\(eval code/g,`(`).replace(/^.*?\s+/,``),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],``):n;var i=this.extractLocation(r?r[1]:n);return new e({functionName:r&&n||void 0,fileName:[`eval`,`<anonymous>`].indexOf(i[0])>-1?void 0:i[0],lineNumber:i[1],columnNumber:i[2],source:t})},this)},parseFFOrSafari:function(t){return t.stack.split(` 4`).filter(function(e){return!e.match(r)},this).map(function(t){if(t.indexOf(` > eval`)>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,`:$1`)),t.indexOf(`@`)===-1&&t.indexOf(`:`)===-1)return new e({functionName:t});var n=/((.*".+"[^@]*)?[^@]*)(?:@)/,r=t.match(n),i=r&&r[1]?r[1]:void 0,a=this.extractLocation(t.replace(n,``));return new e({functionName:i,fileName:a[0],lineNumber:a[1],columnNumber:a[2],source:t})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf(` 5`)>-1&&e.message.split(` 6`).length>e.stacktrace.split(` 7`).length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)/i,r=t.message.split(` 8`),i=[],a=2,o=r.length;a<o;a+=2){var s=n.exec(r[a]);s&&i.push(new e({fileName:s[2],lineNumber:s[1],source:r[a]}))}return i},parseOpera10:function(t){for(var n=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,r=t.stacktrace.split(` 9`),i=[],a=0,o=r.length;a<o;a+=2){var s=n.exec(r[a]);s&&i.push(new e({functionName:s[3]||void 0,fileName:s[2],lineNumber:s[1],source:r[a]}))}return i},parseOpera11:function(n){return n.stack.split(` 10`).filter(function(e){return!!e.match(t)&&!e.match(/^Error created at/)},this).map(function(t){var n=t.split(`@`),r=this.extractLocation(n.pop()),i=n.shift()||``,a=i.replace(/<anonymous function(: (\w+))?>/,`$2`).replace(/\([^)]*\)/g,``)||void 0,o;return i.match(/\(([^)]*)\)/)&&(o=i.replace(/^[^(]+\(([^)]*)\)$/,`$1`)),new e({functionName:a,args:o===void 0||o===`[arguments not available]`?void 0:o.split(`,`),fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:t})},this)}}})})),Pn=t(((e,t)=>{(function(n,r){typeof define==`function`&&define.amd?define(`stack-generator`,[`stackframe`],r):typeof e==`object`?t.exports=r(q()):n.StackGenerator=r(n.StackFrame)})(e,function(e){return{backtrace:function(t){var n=[],r=10;typeof t==`object`&&typeof t.maxStackSize==`number`&&(r=t.maxStackSize);for(var i=arguments.callee;i&&n.length<r&&i.arguments;){for(var a=Array(i.arguments.length),o=0;o<a.length;++o)a[o]=i.arguments[o];/function(?:\s+([\w$]+))+\s*\(/.test(i.toString())?n.push(new e({functionName:RegExp.$1||void 0,args:a})):n.push(new e({args:a}));try{i=i.caller}catch{break}}return n}}})})),Fn=t((e=>{function t(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw Error(`"`+t+`" is a required argument.`)}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}e.urlParse=i;function a(e){var t=``;return e.scheme&&(t+=e.scheme+`:`),t+=`//`,e.auth&&(t+=e.auth+`@`),e.host&&(t+=e.host),e.port&&(t+=`:`+e.port),e.path&&(t+=e.path),t}e.urlGenerate=a;function o(t){var n=t,r=i(t);if(r){if(!r.path)return t;n=r.path}for(var o=e.isAbsolute(n),s=n.split(/\/+/),c,l=0,u=s.length-1;u>=0;u--)c=s[u],c===`.`?s.splice(u,1):c===`..`?l++:l>0&&(c===``?(s.splice(u+1,l),l=0):(s.splice(u,2),l--));return n=s.join(`/`),n===``&&(n=o?`/`:`.`),r?(r.path=n,a(r)):n}e.normalize=o;function s(e,t){e===``&&(e=`.`),t===``&&(t=`.`);var n=i(t),s=i(e);if(s&&(e=s.path||`/`),n&&!n.scheme)return s&&(n.scheme=s.scheme),a(n);if(n||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c=t.charAt(0)===`/`?t:o(e.replace(/\/+$/,``)+`/`+t);return s?(s.path=c,a(s)):c}e.join=s,e.isAbsolute=function(e){return e.charAt(0)===`/`||!!e.match(n)};function c(e,t){e===``&&(e=`.`),e=e.replace(/\/$/,``);for(var n=0;t.indexOf(e+`/`)!==0;){var r=e.lastIndexOf(`/`);if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join(`../`)+t.substr(e.length+1)}e.relative=c;var l=function(){return!(`__proto__`in Object.create(null))}();function u(e){return e}function d(e){return p(e)?`$`+e:e}e.toSetString=l?u:d;function f(e){return p(e)?e.slice(1):e}e.fromSetString=l?u:f;function p(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}function m(e,t,n){var r=e.source-t.source;return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:e.name-t.name}e.compareByOriginalPositions=m;function h(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=e.source-t.source,r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:e.name-t.name}e.compareByGeneratedPositionsDeflated=h;function g(e,t){return e===t?0:e>t?1:-1}function _(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=g(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:g(e.name,t.name)}e.compareByGeneratedPositionsInflated=_})),In=t((e=>{e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,i,a,o,s){var c=Math.floor((r-n)/2)+n,l=o(i,a[c],!0);return l===0?c:l>0?r-c>1?t(c,r,i,a,o,s):s==e.LEAST_UPPER_BOUND?r<a.length?r:-1:c:c-n>1?t(n,c,i,a,o,s):s==e.LEAST_UPPER_BOUND?c:n<0?-1:n}e.search=function(n,r,i,a){if(r.length===0)return-1;var o=t(-1,r.length,n,r,i,a||e.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&i(r[o],r[o-1],!0)===0;)--o;return o}})),Ln=t((e=>{var t=Fn(),n=Object.prototype.hasOwnProperty;function r(){this._array=[],this._set=Object.create(null)}r.fromArray=function(e,t){for(var n=new r,i=0,a=e.length;i<a;i++)n.add(e[i],t);return n},r.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(e,r){var i=t.toSetString(e),a=n.call(this._set,i),o=this._array.length;(!a||r)&&this._array.push(e),a||(this._set[i]=o)},r.prototype.has=function(e){var r=t.toSetString(e);return n.call(this._set,r)},r.prototype.indexOf=function(e){var r=t.toSetString(e);if(n.call(this._set,r))return this._set[r];throw Error(`"`+e+`" is not in the set.`)},r.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error(`No element indexed by `+e)},r.prototype.toArray=function(){return this._array.slice()},e.ArraySet=r})),Rn=t((e=>{var t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 8,032 bytes, line 10
10+/`.split(``);e.encode=function(e){if(0<=e&&e<t.length)return t[e];throw TypeError(`Must be between 0 and 63: `+e)},e.decode=function(e){var t=65,n=90,r=97,i=122,a=48;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+26:a<=e&&e<=57?e-a+52:e==43?62:e==47?63:-1}})),zn=t((e=>{var t=Rn(),n=5,r=1<<n,i=r-1,a=r;function o(e){return e<0?(-e<<1)+1:(e<<1)+0}function s(e){var t=(e&1)==1,n=e>>1;return t?-n:n}e.encode=function(e){var r=``,s,c=o(e);do s=c&i,c>>>=n,c>0&&(s|=a),r+=t.encode(s);while(c>0);return r},e.decode=function(e,r,o){var c=e.length,l=0,u=0,d,f;do{if(r>=c)throw Error(`Expected more digits in base 64 VLQ value.`);if(f=t.decode(e.charCodeAt(r++)),f===-1)throw Error(`Invalid base64 digit: `+e.charAt(r-1));d=!!(f&a),f&=i,l+=f<<u,u+=n}while(d);o.value=s(l),o.rest=r}})),Bn=t((e=>{function t(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function n(e,t){return Math.round(e+Math.random()*(t-e))}function r(e,i,a,o){if(a<o){var s=n(a,o),c=a-1;t(e,s,o);for(var l=e[o],u=a;u<o;u++)i(e[u],l)<=0&&(c+=1,t(e,c,u));t(e,c+1,u);var d=c+1;r(e,i,a,d-1),r(e,i,d+1,o)}}e.quickSort=function(e,t){r(e,t,0,e.length-1)}})),Vn=t((e=>{var t=Fn(),n=In(),r=Ln().ArraySet,i=zn(),a=Bn().quickSort;function o(e){var t=e;return typeof e==`string`&&(t=JSON.parse(e.replace(/^\)\]\}'/,``))),t.sections==null?new s(t):new l(t)}o.fromSourceMap=function(e){return s.fromSourceMap(e)},o.prototype._version=3,o.prototype.__generatedMappings=null,Object.defineProperty(o.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),o.prototype.__originalMappings=null,Object.defineProperty(o.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),o.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return n===`;`||n===`,`},o.prototype._parseMappings=function(e,t){throw Error(`Subclasses must implement _parseMappings`)},o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,o.prototype.eachMapping=function(e,n,r){var i=n||null,a=r||o.GENERATED_ORDER,s;switch(a){case o.GENERATED_ORDER:s=this._generatedMappings;break;case o.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw Error(`Unknown order of iteration.`)}var c=this.sourceRoot;s.map(function(e){var n=e.source===null?null:this._sources.at(e.source);return n!=null&&c!=null&&(n=t.join(c,n)),{source:n,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}},this).forEach(e,i)},o.prototype.allGeneratedPositionsFor=function(e){var r=t.getArg(e,`line`),i={source:t.getArg(e,`source`),originalLine:r,originalColumn:t.getArg(e,`column`,0)};if(this.sourceRoot!=null&&(i.source=t.relative(this.sourceRoot,i.source)),!this._sources.has(i.source))return[];i.source=this._sources.indexOf(i.source);var a=[],o=this._findMapping(i,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,n.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===void 0)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)a.push({line:t.getArg(s,`generatedLine`,null),column:t.getArg(s,`generatedColumn`,null),lastColumn:t.getArg(s,`lastGeneratedColumn`,null)}),s=this._originalMappings[++o]}return a},e.SourceMapConsumer=o;function s(e){var n=e;typeof e==`string`&&(n=JSON.parse(e.replace(/^\)\]\}'/,``)));var i=t.getArg(n,`version`),a=t.getArg(n,`sources`),o=t.getArg(n,`names`,[]),s=t.getArg(n,`sourceRoot`,null),c=t.getArg(n,`sourcesContent`,null),l=t.getArg(n,`mappings`),u=t.getArg(n,`file`,null);if(i!=this._version)throw Error(`Unsupported version: `+i);a=a.map(String).map(t.normalize).map(function(e){return s&&t.isAbsolute(s)&&t.isAbsolute(e)?t.relative(s,e):e}),this._names=r.fromArray(o.map(String),!0),this._sources=r.fromArray(a,!0),this.sourceRoot=s,this.sourcesContent=c,this._mappings=l,this.file=u}s.prototype=Object.create(o.prototype),s.prototype.consumer=o,s.fromSourceMap=function(e){var n=Object.create(s.prototype),i=n._names=r.fromArray(e._names.toArray(),!0),o=n._sources=r.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file;for(var l=e._mappings.toArray().slice(),u=n.__generatedMappings=[],d=n.__originalMappings=[],f=0,p=l.length;f<p;f++){var m=l[f],h=new c;h.generatedLine=m.generatedLine,h.generatedColumn=m.generatedColumn,m.source&&(h.source=o.indexOf(m.source),h.originalLine=m.originalLine,h.originalColumn=m.originalColumn,m.name&&(h.name=i.indexOf(m.name)),d.push(h)),u.push(h)}return a(n.__originalMappings,t.compareByOriginalPositions),n},s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return this.sourceRoot==null?e:t.join(this.sourceRoot,e)},this)}});function c(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}s.prototype._parseMappings=function(e,n){for(var r=1,o=0,s=0,l=0,u=0,d=0,f=e.length,p=0,m={},h={},g=[],_=[],v,y,b,x,S;p<f;)if(e.charAt(p)===`;`)r++,p++,o=0;else if(e.charAt(p)===`,`)p++;else{for(v=new c,v.generatedLine=r,x=p;x<f&&!this._charIsMappingSeparator(e,x);x++);if(y=e.slice(p,x),b=m[y],b)p+=y.length;else{for(b=[];p<x;)i.decode(e,p,h),S=h.value,p=h.rest,b.push(S);if(b.length===2)throw Error(`Found a source, but no line and column`);if(b.length===3)throw Error(`Found a source and line, but no column`);m[y]=b}v.generatedColumn=o+b[0],o=v.generatedColumn,b.length>1&&(v.source=u+b[1],u+=b[1],v.originalLine=s+b[2],s=v.originalLine,v.originalLine+=1,v.originalColumn=l+b[3],l=v.originalColumn,b.length>4&&(v.name=d+b[4],d+=b[4])),_.push(v),typeof v.originalLine==`number`&&g.push(v)}a(_,t.compareByGeneratedPositionsDeflated),this.__generatedMappings=_,a(g,t.compareByOriginalPositions),this.__originalMappings=g},s.prototype._findMapping=function(e,t,r,i,a,o){if(e[r]<=0)throw TypeError(`Line must be greater than or equal to 1, got `+e[r]);if(e[i]<0)throw TypeError(`Column must be greater than or equal to 0, got `+e[i]);return n.search(e,t,a,o)},s.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},s.prototype.originalPositionFor=function(e){var n={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},r=this._findMapping(n,this._generatedMappings,`generatedLine`,`generatedColumn`,t.compareByGeneratedPositionsDeflated,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var a=t.getArg(i,`source`,null);a!==null&&(a=this._sources.at(a),this.sourceRoot!=null&&(a=t.join(this.sourceRoot,a)));var s=t.getArg(i,`name`,null);return s!==null&&(s=this._names.at(s)),{source:a,line:t.getArg(i,`originalLine`,null),column:t.getArg(i,`originalColumn`,null),name:s}}}return{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1},s.prototype.sourceContentFor=function(e,n){if(!this.sourcesContent)return null;if(this.sourceRoot!=null&&(e=t.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var r;if(this.sourceRoot!=null&&(r=t.urlParse(this.sourceRoot))){var i=e.replace(/^file:\/\//,``);
10if(r.scheme==`file`&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!r.path||r.path==`/`)&&this._sources.has(`/`+e))return this.sourcesContent[this._sources.indexOf(`/`+e)]}if(n)return null;throw Error(`"`+e+`" is not in the SourceMap.`)},s.prototype.generatedPositionFor=function(e){var n=t.getArg(e,`source`);if(this.sourceRoot!=null&&(n=t.relative(this.sourceRoot,n)),!this._sources.has(n))return{line:null,column:null,lastColumn:null};n=this._sources.indexOf(n);var r={source:n,originalLine:t.getArg(e,`line`),originalColumn:t.getArg(e,`column`)},i=this._findMapping(r,this._originalMappings,`originalLine`,`originalColumn`,t.compareByOriginalPositions,t.getArg(e,`bias`,o.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:t.getArg(a,`generatedLine`,null),column:t.getArg(a,`generatedColumn`,null),lastColumn:t.getArg(a,`lastGeneratedColumn`,null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=s;function l(e){var n=e;typeof e==`string`&&(n=JSON.parse(e.replace(/^\)\]\}'/,``)));var i=t.getArg(n,`version`),a=t.getArg(n,`sections`);if(i!=this._version)throw Error(`Unsupported version: `+i);this._sources=new r,this._names=new r;var s={line:-1,column:0};this._sections=a.map(function(e){if(e.url)throw Error(`Support for url field in sections not implemented.`);var n=t.getArg(e,`offset`),r=t.getArg(n,`line`),i=t.getArg(n,`column`);if(r<s.line||r===s.line&&i<s.column)throw Error(`Section offsets must be ordered and non-overlapping.`);return s=n,{generatedOffset:{generatedLine:r+1,generatedColumn:i+1},consumer:new o(t.getArg(e,`map`))}})}l.prototype=Object.create(o.prototype),l.prototype.constructor=o,l.prototype._version=3,Object.defineProperty(l.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),l.prototype.originalPositionFor=function(e){var r={generatedLine:t.getArg(e,`line`),generatedColumn:t.getArg(e,`column`)},i=n.search(r,this._sections,function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn}),a=this._sections[i];return a?a.consumer.originalPositionFor({line:r.generatedLine-(a.generatedOffset.generatedLine-1),column:r.generatedColumn-(a.generatedOffset.generatedLine===r.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},l.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(e,!0);if(r)return r}if(t)return null;throw Error(`"`+e+`" is not in the SourceMap.`)},l.prototype.generatedPositionFor=function(e){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer.sources.indexOf(t.getArg(e,`source`))!==-1){var i=r.consumer.generatedPositionFor(e);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},l.prototype._parseMappings=function(e,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],o=i.consumer._generatedMappings,s=0;s<o.length;s++){var c=o[s],l=i.consumer._sources.at(c.source);i.consumer.sourceRoot!==null&&(l=t.join(i.consumer.sourceRoot,l)),this._sources.add(l),l=this._sources.indexOf(l);var u=i.consumer._names.at(c.name);this._names.add(u),u=this._names.indexOf(u);var d={source:l,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),typeof d.originalLine==`number`&&this.__originalMappings.push(d)}a(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),a(this.__originalMappings,t.compareByOriginalPositions)},e.IndexedSourceMapConsumer=l})),Hn=t(((e,t)=>{(function(n,r){typeof define==`function`&&define.amd?define(`stacktrace-gps`,[`source-map`,`stackframe`],r):typeof e==`object`?t.exports=r(Vn(),q()):n.StackTraceGPS=r(n.SourceMap||n.sourceMap,n.StackFrame)})(e,function(e,t){function n(e){return new Promise(function(t,n){var r=new XMLHttpRequest;r.open(`get`,e),r.onerror=n,r.onreadystatechange=function(){r.readyState===4&&(r.status>=200&&r.status<300||e.substr(0,7)===`file://`&&r.responseText?t(r.responseText):n(Error(`HTTP status: `+r.status+` retrieving `+e)))},r.send()})}function r(e){if(typeof window<`u`&&window.atob)return window.atob(e);throw Error(`You must supply a polyfill for window.atob in this environment`)}function i(e){if(typeof JSON<`u`&&JSON.parse)return JSON.parse(e);throw Error(`You must supply a polyfill for JSON.parse in this environment`)}function a(e,t){for(var n=[/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*function\b/,/function\s+([^('"`]*?)\s*\(([^)]*)\)/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*(?:eval|new Function)\b/,/\b(?!(?:if|for|switch|while|with|catch)\b)(?:(?:static)\s+)?(\S+)\s*\(.*?\)\s*\{/,/['"]?([$_A-Za-z][$_A-Za-z0-9]*)['"]?\s*[:=]\s*\(.*?\)\s*=>/],r=e.split(` 11`),i=``,a=Math.min(t,20),o=0;o<a;++o){var s=r[t-o-1],c=s.indexOf(`//`);if(c>=0&&(s=s.substr(0,c)),s){i=s+i;for(var l=n.length,u=0;u<l;u++){var d=n[u].exec(i);if(d&&d[1])return d[1]}}}}function o(){if(typeof Object.defineProperty!=`function`||typeof Object.create!=`function`)throw Error(`Unable to consume source maps in older browsers`)}function s(e){if(typeof e!=`object`)throw TypeError(`Given StackFrame is not an object`);if(typeof e.fileName!=`string`)throw TypeError(`Given file name is not a String`);if(typeof e.lineNumber!=`number`||e.lineNumber%1!=0||e.lineNumber<1)throw TypeError(`Given line number must be a positive integer`);if(typeof e.columnNumber!=`number`||e.columnNumber%1!=0||e.columnNumber<0)throw TypeError(`Given column number must be a non-negative integer`);return!0}function c(e){for(var t=/\/\/[#@] ?sourceMappingURL=([^\s'"]+)\s*$/gm,n,r;r=t.exec(e);)n=r[1];if(n)return n;throw Error(`sourceMappingURL not found`)}function l(e,n,r){return new Promise(function(i,a){var o=n.originalPositionFor({line:e.lineNumber,column:e.columnNumber});if(o.source){var s=n.sourceContentFor(o.source);s&&(r[o.source]=s),i(new t({functionName:o.name||e.functionName,args:e.args,fileName:o.source,lineNumber:o.line,columnNumber:o.column}))}else a(Error(`Could not get original source for given stackframe and source map`))})}return function u(d){if(!(this instanceof u))return new u(d);d||={},this.sourceCache=d.sourceCache||{},this.sourceMapConsumerCache=d.sourceMapConsumerCache||{},this.ajax=d.ajax||n,this._atob=d.atob||r,this._get=function(e){return new Promise(function(t,n){var r=e.substr(0,5)===`data:`;if(this.sourceCache[e])t(this.sourceCache[e]);else if(d.offline&&!r)n(Error(`Cannot make network requests in offline mode`));else if(r){var i=e.match(/^data:application\/json;
11([\w=:"-]+;)*base64,/);if(i){var a=i[0].length,o=e.substr(a),s=this._atob(o);this.sourceCache[e]=s,t(s)}else n(Error(`The encoding of the inline sourcemap is not supported`))}else{var c=this.ajax(e,{method:`get`});this.sourceCache[e]=c,c.then(t,n)}}.bind(this))},this._getSourceMapConsumer=function(t,n){return new Promise(function(r){if(this.sourceMapConsumerCache[t])r(this.sourceMapConsumerCache[t]);else{var a=new Promise(function(r,a){return this._get(t).then(function(t){typeof t==`string`&&(t=i(t.replace(/^\)\]\}'/,``))),t.sourceRoot===void 0&&(t.sourceRoot=n),r(new e.SourceMapConsumer(t))}).catch(a)}.bind(this));this.sourceMapConsumerCache[t]=a,r(a)}}.bind(this))},this.pinpoint=function(e){return new Promise(function(t,n){this.getMappedLocation(e).then(function(e){function n(){t(e)}this.findFunctionName(e).then(t,n).catch(n)}.bind(this),n)}.bind(this))},this.findFunctionName=function(e){return new Promise(function(n,r){s(e),this._get(e.fileName).then(function(r){var i=e.lineNumber,o=e.columnNumber,s=a(r,i,o);n(s?new t({functionName:s,args:e.args,fileName:e.fileName,lineNumber:i,columnNumber:o}):e)},r).catch(r)}.bind(this))},this.getMappedLocation=function(e){return new Promise(function(t,n){o(),s(e);var r=this.sourceCache,i=e.fileName;this._get(i).then(function(n){var a=c(n),o=a.substr(0,5)===`data:`,s=i.substring(0,i.lastIndexOf(`/`)+1);return a[0]!==`/`&&!o&&!/^https?:\/\/|^\/\//i.test(a)&&(a=s+a),this._getSourceMapConsumer(a,s).then(function(n){return l(e,n,r).then(t).catch(function(){t(e)})})}.bind(this),n).catch(n)}.bind(this))}}})})),Un=e(t(((e,t)=>{(function(n,r){typeof define==`function`&&define.amd?define(`stacktrace`,[`error-stack-parser`,`stack-generator`,`stacktrace-gps`],r):typeof e==`object`?t.exports=r(Nn(),Pn(),Hn()):n.StackTrace=r(n.ErrorStackParser,n.StackGenerator,n.StackTraceGPS)})(e,function(e,t,n){var r={filter:function(e){return(e.functionName||``).indexOf(`StackTrace$$`)===-1&&(e.functionName||``).indexOf(`ErrorStackParser$$`)===-1&&(e.functionName||``).indexOf(`StackTraceGPS$$`)===-1&&(e.functionName||``).indexOf(`StackGenerator$$`)===-1},sourceCache:{}},i=function(){try{throw Error()}catch(e){return e}};function a(e,t){var n={};return[e,t].forEach(function(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}),n}function o(e){return e.stack||e[`opera#sourceloc`]}function s(e,t){return typeof t==`function`?e.filter(t):e}return{get:function(e){var t=i();return o(t)?this.fromError(t,e):this.generateArtificially(e)},getSync:function(n){n=a(r,n);var c=i();return s(o(c)?e.parse(c):t.backtrace(n),n.filter)},fromError:function(t,i){i=a(r,i);var o=new n(i);return new Promise(function(n){var r=s(e.parse(t),i.filter);n(Promise.all(r.map(function(e){return new Promise(function(t){function n(){t(e)}o.pinpoint(e).then(t,n).catch(n)})})))}.bind(this))},generateArtificially:function(e){e=a(r,e);var n=t.backtrace(e);return typeof e.filter==`function`&&(n=n.filter(e.filter)),Promise.resolve(n)},instrument:function(e,t,n,r){if(typeof e!=`function`)throw Error(`Cannot instrument non-function object`);if(typeof e.__stacktraceOriginalFn==`function`)return e;var i=function(){try{return this.get().then(t,n).catch(n),e.apply(r||this,arguments)}catch(e){throw o(e)&&this.fromError(e).then(t,n).catch(n),e}}.bind(this);return i.__stacktraceOriginalFn=e,i},deinstrument:function(e){if(typeof e!=`function`)throw Error(`Cannot de-instrument non-function object`);return typeof e.__stacktraceOriginalFn==`function`?e.__stacktraceOriginalFn:e},report:function(e,t,n,r){return new Promise(function(i,a){var o=new XMLHttpRequest;if(o.onerror=a,o.onreadystatechange=function(){o.readyState===4&&(o.status>=200&&o.status<400?i(o.responseText):a(Error(`POST to `+t+` failed with status: `+o.status)))},o.open(`post`,t),o.setRequestHeader(`Content-Type`,`application/json`),r&&typeof r.headers==`object`){var s=r.headers;for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&o.setRequestHeader(c,s[c])}var l={stack:e};n!=null&&(l.message=n),o.send(JSON.stringify(l))})}}})}))()),J=o(),Wn=class extends H.PureComponent{constructor(...e){super(...e),A(this,`state`,{hasError:!1,errorMessage:void 0,stackTrace:void 0,mappedStackTrace:void 0,componentStack:void 0}),A(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(` 12 13 14`),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}),Un.default.fromError(e).then(e=>{this.setState({mappedStackTrace:e.map(e=>e.toString()).join(` 15`)})}).catch(()=>{this.setState({mappedStackTrace:void 0})})}render(){let{hasError:e,copied:t,errorMessage:n}=this.state;if(!e)return this.props.children;let i=n&&n.includes(`NotFoundError`);return(0,J.jsxs)(`div`,{className:`error-boundary`,children:[(0,J.jsxs)(`div`,{children:[(0,J.jsx)(`p`,{className:`error-boundary__error`,children:i?(0,J.jsx)(r,{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,J.jsx)(r,{id:`error.unexpected_crash.explanation`,defaultMessage:`Due to a bug in our
15code or a browser compatibility issue, this page could not be displayed correctly.`})}),(0,J.jsx)(`p`,{children:i?(0,J.jsx)(r,{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,J.jsx)(r,{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,J.jsxs)(`p`,{className:`error-boundary__footer`,children:[`Mastodon v`,u,` · `,(0,J.jsx)(`a`,{href:p,rel:`noopener`,target:`_blank`,children:(0,J.jsx)(r,{id:`errors.unexpected_crash.report_issue`,defaultMessage:`Report issue`})}),` · `,(0,J.jsx)(`button`,{onClick:this.handleCopyStackTrace,className:t?`copied`:``,children:(0,J.jsx)(r,{id:`errors.unexpected_crash.copy_stacktrace`,defaultMessage:`Copy stacktrace to clipboard`})})]})]}),(0,J.jsx)(N,{children:(0,J.jsx)(`meta`,{name:`robots`,content:`noindex`})})]})}},Gn=e(be()),Y=e(Re()),Kn=({fields:e,emojis:t})=>{let n=i(),r=dt();return e.size===0?null:(0,J.jsx)(J.Fragment,{children:e.map((e,i)=>(0,J.jsxs)(`dl`,{className:(0,Y.default)({verified:e.verified_at}),children:[(0,J.jsx)(ut,{as:`dt`,htmlString:e.name_emojified,extraEmojis:t,className:`translate`,...r}),(0,J.jsxs)(`dd`,{className:`translate`,title:e.value_plain??``,children:[e.verified_at&&(0,J.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,qn)}),children:(0,J.jsx)($e,{id:`check`,icon:pt,className:`verified__mark`})}),` `,(0,J.jsx)(ut,{as:`span`,htmlString:e.value_emojified,extraEmojis:t,...r})]})]},i))})},qn={month:`short`,day:`numeric`,year:`numeric`,hour:`2-digit`,minute:`2-digit`},Jn=(0,H.forwardRef)(({accountId:e},t)=>{let n=j(),i=M(t=>e?t.accounts.get(e):void 0),a=i?.suspended,o=M(t=>e?ue(t,e):void 0),s=!!(a||o),c=M(t=>t.relationships.getIn([e,`note`]));(0,H.useEffect)(()=>{e&&!i&&n(xe(e))},[n,e,i]);let{familiarFollowers:l}=lt({accountId:e}),u=M(t=>e?t.relationships.get(e):void 0),d=u?.followed_by&&u.following,f=u?.followed_by,p=!!u,m=l.length>0&&p&&!d&&!f;return(0,J.jsx)(`div`,{ref:t,id:`hover-card`,role:`tooltip`,className:(0,Y.default)(`hover-card dropdown-animation`,{"hover-card--loading":!i}),children:i?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(Pe,{to:`/@${i.acct}`,className:`hover-card__name`,children:[(0,J.jsx)(F,{account:s?void 0:i,size:46}),(0,J.jsx)(yt,{account:i,localDomain:_})]}),s?(0,J.jsx)(`div`,{className:`hover-card__limited-account-note`,children:a?(0,J.jsx)(r,{id:`empty_column.account_suspended`,defaultMessage:`Account suspended`}):(0,J.jsx)(r,{id:`limited_account_hint.title`,defaultMessage:`This profile or server has been hidden by the moderators of {domain}.`,values:{domain:_}})}):(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:`hover-card__text-row`,children:[(0,J.jsx)(ft,{accountId:i.id,className:`hover-card__bio`}),(0,J.jsx)(`div`,{className:`account-fields`,children:(0,J.jsx)(Kn,{fields:i.fields.take(2),emojis:i.emojis})}),c&&c.length>0&&(0,J.jsxs)(`dl`,{className:`hover-card__note`,children:[(0,J.jsx)(`dt`,{className:`hover-card__note-label`,children:(0,J.jsx)(r,{id:`account.account_note_header`,defaultMessage:`Personal note`})}),(0,J.jsx)(`dd`,{children:c})]})]}),(0,J.jsxs)(`div`,{className:`hover-card__numbers`,children:[(0,J.jsx)(Qe,{value:i.followers_count,renderer:ht}),m&&(0,J.jsxs)(J.Fragment,{children:[`·`,(0,J.jsxs)(`div`,{className:`hover-card__familiar-followers`,children:[(0,J.jsx)(Qe,{value:l.length,renderer:vt}),(0,J.jsx)(mt,{compact:!0,children:l.slice(0,3).map(e=>(0,J.jsx)(F,{account:e,size:22},e.id))})]})]}),(d||f)&&(0,J.jsxs)(J.Fragment,{children:[`·`,(0,J.jsx)(`span`,{children:d?(0,J.jsx)(r,{id:`account.mutual`,defaultMessage:`You follow each other`}):(0,J.jsx)(r,{id:`account.follows_you`,defaultMessage:`Follows you`})})]})]}),(0,J.jsx)(gt,{accountId:e})]})]}):(0,J.jsx)(Xe,{})})});Jn.displayName=`HoverCardAccount`;var Yn={crossAxis:-12,mainAxis:4},Xn=750,Zn=150,Qn=150,$n=e=>e.matches(`[data-hover-card-account]`),er=()=>{let[e,t]=(0,H.useState)(!1),[n,r]=(0,H.useState)(),[i,a]=(0,H.useState)(null),o=(0,H.useRef)(null),[s,c]=L(),[l,u,d]=L(),[f]=L(),p=(0,H.useRef)(0),m=(0,H.useCallback)(()=>{u(),c(),t(!1),a(null)},[u,c,t,a]),h=D(),[g,_]=(0,H.useState)(h);return h!==g&&(_(h),m()),(0,H.useEffect)(()=>{let e=!1,n=!1,i=null,m=null,h=e=>{e.setAttribute(`aria-describedby`,`hover-card`),t(!0),a(e),r(e.getAttribute(`data-hover-card-account`)??void 0)},g=()=>{i?.removeAttribute(`aria-describedby`),i=null,t(!1),a(null),r(void 0)},_=()=>{n=!0},v=t=>{let{target:r}=t;if(!(r instanceof HTMLElement)){g();return}setTimeout(()=>{let t=Date.now()-p.current<Qn;e||!t||n||($n(r)&&(c(),i?.removeAttribute(`aria-describedby`),i=r,m=r.getAttribute(`title`),r.removeAttribute(`title`),l(()=>{h(r)}
15,Xn)),(r===i||r===o.current)&&c())},0)},y=e=>{let{target:t}=e;i&&(m&&t instanceof HTMLElement&&t===i&&t.setAttribute(`title`,m),(t===i||t===o.current)&&(u(),s(()=>{g()},Zn)))},b=()=>{e=!1},x=()=>{e=!0,u(),f(b,100)},S=e=>{n&&=!1,Math.max(Math.abs(e.movementX),Math.abs(e.movementY))>0&&(d(Xn),p.current=Date.now())};return document.body.addEventListener(`touchstart`,_,{passive:!0}),document.body.addEventListener(`mouseenter`,v,{passive:!0,capture:!0}),document.body.addEventListener(`mousemove`,S,{passive:!0,capture:!1}),document.body.addEventListener(`mouseleave`,y,{passive:!0,capture:!0}),document.addEventListener(`scroll`,x,{passive:!0,capture:!0}),()=>{document.body.removeEventListener(`touchstart`,_),document.body.removeEventListener(`mouseenter`,v),document.body.removeEventListener(`mousemove`,S),document.body.removeEventListener(`mouseleave`,y),document.removeEventListener(`scroll`,x)}},[l,s,f,u,c,d,t,r,a]),(0,J.jsx)(bt,{onClose:m,isOpen:e,reference:i,placement:`bottom-start`,offset:Yn,children:({props:e})=>(0,J.jsx)(`div`,{...e,className:`hover-card-controller`,children:(0,J.jsx)(Jn,{accountId:n,ref:o})})})},tr=a({close:{id:`lightbox.close`,defaultMessage:`Close`}}),nr=({accountId:e,statusId:t,onClose:n})=>{let r=M(t=>t.accounts.get(e)),a=i();return r?(0,J.jsxs)(`div`,{className:`picture-in-picture__header`,children:[(0,J.jsxs)(Pe,{to:`/@${r.get(`acct`)}/${t}`,className:`picture-in-picture__header__account`,children:[(0,J.jsx)(F,{account:r,size:36}),(0,J.jsx)(yt,{account:r})]}),(0,J.jsx)(Ze,{icon:`times`,iconComponent:Ye,onClick:n,title:a.formatMessage(tr.close)})]}):null},rr=()=>{let e=j(),t=(0,H.useCallback)(()=>{e(he())},[e]),n=M(e=>e.picture_in_picture);if(n.type===null)return null;let{type:r,src:i,currentTime:a,accountId:o,statusId:s,volume:c,muted:l,poster:u,backgroundColor:d,foregroundColor:f,accentColor:p}=n;if(!i)return null;let m;switch(r){case`video`:m=(0,J.jsx)(St,{src:i,startTime:a,startVolume:c,startMuted:l,startPlaying:!0,alwaysVisible:!0});break;case`audio`:m=(0,J.jsx)(xt,{src:i,startTime:a,startVolume:c,startMuted:l,startPlaying:!0,poster:u,backgroundColor:d,foregroundColor:f,accentColor:p})}return(0,J.jsxs)(`div`,{className:`picture-in-picture`,children:[(0,J.jsx)(nr,{accountId:o,statusId:s,onClose:t}),m,(0,J.jsx)(wt,{statusId:s,onClose:t})]})},ir=({active:e,onClose:t})=>{let n=(0,H.useCallback)(n=>{e&&n.key===`Escape`&&(n.preventDefault(),n.stopPropagation(),t())},[e,t]);(0,H.useEffect)(()=>(window.addEventListener(`keyup`,n,!1),()=>{window.removeEventListener(`keyup`,n)}),[n]);let i=re({from:{opacity:0}
15,to:{opacity:1},reverse:!e}),a=re({from:{transform:`scale(0.95)`},to:{transform:`scale(1)`},reverse:!e,config:ie.wobbly});return(0,J.jsx)(oe.div,{className:`upload-area`,style:{...i,visibility:e?`visible`:`hidden`},children:(0,J.jsxs)(`div`,{className:`upload-area__drop`,children:[(0,J.jsx)(oe.div,{className:`upload-area__background`,style:a}),(0,J.jsx)(`div`,{className:`upload-area__content`,children:(0,J.jsx)(r,{id:`upload_area.title`,defaultMessage:`Drag & drop to upload`})})]})})},X=a({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}`}}),ar=e=>e?e.matches(`[data-menu-hashtag]`):!1,or=()=>{let e=i(),{signedIn:t}=ot(),[n,r]=(0,H.useState)(null),{element:a=null,accountId:o,hashtag:s}=n??{},c=!!a,l=M(e=>o?e.accounts.get(o):void 0),u=D(),[d,f]=(0,H.useState)(u);u!==d&&(f(u),r(null)),(0,H.useEffect)(()=>{let e=e=>{let t=e.target.closest(`a`);if(e.button!==0||e.ctrlKey||e.metaKey||!ar(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 p=(0,H.useCallback)(()=>{r(null)},[]),m=(0,H.useMemo)(()=>{let n=[{text:e.formatMessage(X.browseHashtag,{hashtag:s}),to:`/tags/${s}`},{text:e.formatMessage(X.browseHashtagFromAccount,{hashtag:s,name:l?.username}),to:`/@${l?.acct}/tagged/${s}`}];return t&&n.push(null,{text:e.formatMessage(X.muteHashtag,{hashtag:s}),href:`/filters`,dangerous:!0}),n},[e,s,l,t]);return c?(0,J.jsx)(bt,{isOpen:c,offset:5,reference:a,onClose:p,children:({props:e,placement:t})=>(0,J.jsx)(`div`,{...e,className:`dropdown-animation dropdown-menu ${t}`,children:(0,J.jsx)(Ct,{items:m,onClose:p,openedViaKeyboard:!1})})}):null};function sr(e){let t=window.innerHeight||document.documentElement.clientHeight;for(let n of e){let e=n.getBoundingClientRect();if(e.top>=0&&e.top<t)return{item:n,rect:e}}return null}function cr(e,t){if(t){let t=document.querySelector(`.column:nth-child(${e})`);t&&t.querySelector(`#${Be(e-1)}, #${P()}`)?.focus()}else{let t=e===2?`#${P()}`:`#${Be(1)}`;document.querySelector(t)?.focus()}}function Z(e=1){let t=!!document.querySelector(`body.layout-multiple-columns`),n=+!!t,r=document.querySelector(`.column:nth-child(${e+n})`);function i(){return cr(e+n,t),!1}if(!r)return i();let a=r.querySelector(`.scrollable`);if(!a)return i();let o=sr(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 lr(){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 ur(){let e=document.activeElement?.closest(`.column`);return e?Array.from(document.querySelectorAll(`.column`)).indexOf(e)+1:1}function dr(){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 Q(e,t){let n=(document.activeElement?.closest(`.item-list`))?.querySelector(`.item-list > :nth-child(${e+1+t})`);if(!n)return fr(t);let r=n.matches(`.focusable`)?n:n.querySelector(`.focusable`);return!r&&n.matches(`.load-more`)&&(r=n),!r||n.matches(`:empty`)?Q(e+t,t):(r.scrollIntoView({block:`start`}),r.focus(),!0)}function fr(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 pr=({multiColumn:e,children:t})=>{let n=D(),r=!C&&v&&n.pathname.startsWith(`/deck`)?{...n,pathname:n.pathname.slice(5)}:n;return(0,J.jsx)(_e,{location:r,children:H.Children.map(t,t=>t?(0,H.cloneElement)(t,{multiColumn:e}):null)})},$=class extends H.Component{constructor(...e){super(...e),A(this,`state`,{hasError:!1,stacktrace:``}),A(this,`renderComponent`,({match:e})=>{let{component:t,content:n,multiColumn:r,componentParams:i}=this.props,{hasError:a,stacktrace:o}=this.state;return a?(0,J.jsx)(R,{stacktrace:o,multiColumn:r,errorType:`error`}):(0,J.jsx)(yn,{fetchComponent:t,loading:this.renderLoading,error:this.renderError,children:t=>(0,J.jsx)(t,{params:e.params,multiColumn:r,...i,children:n})})}),A(this,`renderLoading`,()=>{let{multiColumn:e}=this.props;return(0,J.jsx)(Et,{multiColumn:e})}),A(this,`renderError`,e=>(0,J.jsx)(R,{...e,errorType:`network`}))}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){Un.default.fromError(e).then(t=>{this.setState({stacktrace:e.toString()+` 16`+t.map(e=>e.toString()).join(` 17`)})}).catch(e=>{console.error(e)})}render(){let{component:e,content:t,...n}=this.props;return(0,J.jsx)(O,{...n,render:this.renderComponent})}};A($,`defaultProps`,{componentParams:{}});var mr=()=>(0,J.jsxs)(`div`,{className:z.placeholder,children:[(0,J.jsx)(I,{width:`100%`}),(0,J.jsx)(I,{width:`100%`}),(0,J.jsx)(I,{width:`100%`})]}),hr=()=>{let e=j(),t=M(e=>e.server.server),n=M(e=>e.server.extendedDescription),i=t.item?.contact.account?.id??``,a=n.isLoading,o=(n.item?.content.length??0)>0,s=n.item?.content??``;return(0,H.useEffect)(()=>{e(qe())},[e]),(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(`div`,{className:z.block,children:[(0,J.jsx)(`h2`,{children:(0,J.jsx)(r,{id:`custom_homepage.administered_by`,defaultMessage:`Administered by`})}),(0,J.jsx)(_t,{id:i,size:36,minimal:!0})]}),(0,J.jsxs)(`div`,{className:z.block,children:[(0,J.jsx)(`h2`,{children:(0,J.jsx)(r,{id:`custom_homepage.about_this_server`,defaultMessage:`About this server`})}),a?(0,J.jsx)(mr,{}):o?(0,J.jsx)(`div`,{className:`prose`,dangerouslySetInnerHTML:{__html:s}}):(0,J.jsx)(`div`,{className:`prose`,children:(0,J.jsx)(`p`,{children:(0,J.jsx)(r,{id:`about.not_available`,defaultMessage:`This information has not been made available on this server.`})})})]})]})},gr=()=>{let e=j();return(0,H.useEffect)(()=>{e(Ne())},[e]),(0,J.jsx)(Tn,{prepend:(0,J.jsx)(Cn,{className:z.banner,children:(0,J.jsx)(r,{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})},_r=()=>{let e=j(),t=M(e=>e.server.server),{path:n}=ve();return(0,H.useEffect)(()=>{e(Je())},[e]),(0,J.jsxs)(`div`,{className:z.page,children:[(0,J.jsx)(bn,{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:z.header}),(0,J.jsxs)(`div`,{className:z.topSection,children:[(0,J.jsx)(Le,{as:`h1`,children:t.item?.domain}),(0,J.jsx)(`p`,{children:t.item?.description})]}),(0,J.jsxs)(xn,{children:[(0,J.jsx)(Sn,{to:n,exact:!0,children:(0,J.jsx)(r,{id:`custom_homepage.latest_activity`,defaultMessage:`Latest activity`})}),(0,J.jsx)(Sn,{to:`${n}/about`,exact:!0,children:(0,J.jsx)(r,{id:`custom_homepage.about`,defaultMessage:`About`})})]}),(0,J.jsxs)(_e,{children:[(0,J.jsx)(O,{path:n,exact:!0,component:gr}),(0,J.jsx)(O,{path:`${n}/about`,exact:!0,component:hr})]}),(0,J.jsxs)(N,{children:[(0,J.jsx)(`title`,{children:t.item?.domain}),(0,J.jsx)(`meta`,{name:`robots`,content:`all`})]})]})},vr=a({beforeUnload:{id:`ui.beforeunload`,defaultMessage:`Your draft will be lost if you leave Mastodon.`}}),yr=e=>({layout:e.getIn([`meta`,`layout`]),isComposing:e.getIn([`compose`,`is_composing`]),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,firstLaunch:e.getIn([`settings`,`introductionVersion`],0)<Ge,newAccount:!e.getIn([`accounts`,w,`note`])&&!e.getIn([`accounts`,w,`bot`])&&e.getIn([`accounts`,w,`following_count`],0)===0&&e.getIn([`accounts`,w,`statuses_count`],0)===0,username:e.getIn([`accounts`,w,`username`])}),br=class extends H.PureComponent{constructor(...e){super(...e),A(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;ze(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;return o=i?n?`/start`:t?`/home`:`/deck/getting-started`:b&&m&&S?.accounts[m]?`/@${S.accounts[m].username}`:f&&x===`trends`?`/explore`:y===`public`&&x===`local_feed`?`/public/local`:x===`overview`?`/overview`:`/about`,(0,J.jsx)(Dt,{multiColumn:!t,children:(0,J.jsx)(Ot,{ref:this.setRef,singleColumn:t,domain:_,minimalShell:r,children:(0,J.jsxs)(pr,{children:[(0,J.jsx)(k,{from:`/`,to:{pathname:o,state:{...this.props.location.state,focusTarget:!1}},exact:!0}
17),C||se?(0,J.jsx)(k,{from:`/deck`,to:`/home`,exact:!0}):null,(C||se)&&a.startsWith(`/deck/`)?(0,J.jsx)(k,{from:a,to:{...this.props.location,pathname:a.slice(5)}}):null,!t&&a===`/home`?(0,J.jsx)(k,{from:`/home`,to:`/deck/getting-started`,exact:!0}):null,a===`/getting-started`?(0,J.jsx)(k,{from:`/getting-started`,to:t?`/home`:`/deck/getting-started`,exact:!0}):null,(0,J.jsx)($,{path:`/getting-started`,component:Vt,content:e}),(0,J.jsx)($,{path:`/keyboard-shortcuts`,component:vn,content:e}),(0,J.jsx)($,{path:`/about`,component:fn,content:e}),(0,J.jsx)($,{path:`/privacy-policy`,component:pn,content:e}),(0,J.jsx)($,{path:`/terms-of-service/:date?`,component:hn,content:e}),(0,J.jsx)($,{path:[`/home`,`/timelines/home`],component:Lt,content:e}),(0,J.jsx)(k,{from:`/timelines/public`,to:`/public`,exact:!0}),(0,J.jsx)(k,{from:`/timelines/public/local`,to:`/public/local`,exact:!0}),(0,J.jsx)($,{path:`/public`,exact:!0,component:B,componentParams:{feedType:`public`},content:e}),(0,J.jsx)($,{path:`/public/local`,exact:!0,component:B,componentParams:{feedType:`community`},content:e}),(0,J.jsx)($,{path:`/public/remote`,exact:!0,component:B,componentParams:{feedType:`public:remote`},content:e}),(0,J.jsx)($,{path:[`/conversations`,`/timelines/direct`],component:_n,content:e}),(0,J.jsx)($,{path:`/tags/:id`,component:Pt,content:e}),(0,J.jsx)($,{path:`/links/:url`,component:jt,content:e}),(0,J.jsx)($,{path:`/lists/new`,component:It,content:e}),(0,J.jsx)($,{path:`/lists/:id/edit`,component:It,content:e}),(0,J.jsx)($,{path:`/lists/:id/members`,component:Gt,content:e}),(0,J.jsx)($,{path:`/lists/:id`,component:Kt,content:e}),(0,J.jsx)($,{path:`/notifications`,component:Yt,content:e,exact:!0}),(0,J.jsx)($,{path:`/notifications/requests`,component:qt,content:e,exact:!0}),(0,J.jsx)($,{path:`/notifications/requests/:id`,component:Jt,content:e,exact:!0}),(0,J.jsx)($,{path:`/favourites`,component:Nt,content:e}),(0,J.jsx)($,{path:`/bookmarks`,component:$t,content:e}),(0,J.jsx)($,{path:`/pinned`,component:en,content:e}),(0,J.jsx)($,{path:`/start/profile`,exact:!0,component:kt,content:e}),(0,J.jsx)($,{path:[`/start`,`/start/follows`],exact:!0,component:Ht,content:e}),(0,J.jsx)($,{path:`/directory`,component:Zt,content:e}),(0,J.jsx)($,{path:`/explore`,component:Wt,content:e}),(0,J.jsx)($,{path:`/search`,component:dn,content:e}),(0,J.jsx)($,{path:[`/publish`,`/statuses/new`],component:gn,content:e}),(0,J.jsx)($,{path:`/profile/edit`,component:sn,content:e}),(0,J.jsx)($,{path:`/profile/featured_tags`,component:ln,content:e}),(0,J.jsx)($,{path:[`/@:acct`,`/accounts/:id`],exact:!0,component:V,content:e}),(0,J.jsx)($,{path:[`/@:acct/featured`,`/accounts/:id/featured`],component:nn,content:e}),(0,J.jsx)($,{path:[`/@:acct/collections`],component:on,content:e},`collections-list`),(0,J.jsx)($,{path:[`/collections/new`,`/collections/:id/edit`],component:tn,content:e},`collections-editor`),(0,J.jsx)($,{path:`/collections/:id`,component:cn,content:e},`collections-detail`),(0,J.jsx)($,{path:`/@:acct/tagged/:tagged?`,exact:!0,component:V,content:e}),(0,J.jsx)($,{path:[`/@:acct/with_replies`,`/accounts/:id/with_replies`],component:V,content:e,componentParams:{withReplies:!0}}),(0,J.jsx)($,{path:[`/accounts/:id/followers`,`/users/:acct/followers`,`/@:acct/followers`],component:zt,content:e}),(0,J.jsx)($,{path:[`/accounts/:id/following`,`/users/:acct/following`,`/@:acct/following`],component:Bt,content:e}),(0,J.jsx)($,{path:[`/@:acct/media`,`/accounts/:id/media`],component:Xt,content:e}),(0,J.jsx)($,{path:`/@:acct/:statusId`,exact:!0,component:Qt,content:e}),(0,J.jsx)($,{path:`/@:acct/:statusId/reblogs`,component:rn,content:e}),(0,J.jsx)($,{path:`/@:acct/:statusId/favourites`,component:Mt,content:e}),(0,J.jsx)($,{path:`/@:acct/:statusId/quotes`,component:un,content:e}),(0,J.jsx)($,{path:`/timelines/tag/:id`,component:Pt,content:e}),(0,J.jsx)($,{path:`/timelines/list/:id`,component:Kt,content:e}),(0,J.jsx)($,{path:`/statuses/:statusId`,exact:!0,component:Qt,content:e}),(0,J.jsx)($,{path:`/statuses/:statusId/reblogs`,component:rn,content:e}),(0,J.jsx)($,{path:`/statuses/:statusId/favourites`,component:Mt,content:e}),(0,J.jsx)($,{path:`/follow_requests`,component:At,content:e}),(0,J.jsx)($,{path:`/blocks`,component:mn,content:e}),(0,J.jsx)($,{path:`/domain_blocks`,component:Ut,content:e}),(0,J.jsx)($,{path:`/followed_tags`,component:an,content:e}),(0,J.jsx)($,{path:`/mutes`,component:Rt,content:e}),(0,J.jsx)($,{path:`/lists`,component:Ft,content:e}),(0,J.jsx)(O,{path:`/overview`,component:_r}),(0,J.jsx)(O,{component:R})]})})})}},xr=class extends H.PureComponent{constructor(...e){super(...e),A(this,`state`,{draggingOver:!1}),A(this,`handleBeforeUnload`,e=>{let{intl:t,dispatch:n,isComposing:r,hasComposingContents:i}=this.props;n(Ee()),r&&i&&(e.preventDefault(),e.returnValue=t.formatMessage(vr.beforeUnload))}),A(this,`handleWindowFocus`,()=>{this.props.dispatch(We()),this.props.dispatch(je({immediate:!0}))}),A(this,`handleWindowBlur`,()=>{this.props.dispatch(He())}),A(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}))}),A(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}}),A(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(Oe(e.dataTransfer.files))))}),A(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})}),A(this,`dataTransferIsText`,e=>e&&Array.from(e.types).filter(e=>e===`text/plain`).length===1),A(this,`closeUploadModal`,()=>{this.setState({draggingOver:!1})}),A(this,`handleServiceWorkerPostMessage`,({data:e})=>{e.type===`navigate`?this.props.history.push(e.path):console.warn(`Unknown message type:`,e.type)}),A(this,`handleLayoutChange`,(0,Gn.default)(()=>{this.props.dispatch(me())},500,{trailing:!0})),A(this,`handleResize`,()=>{let e=le();e===this.props.layout?this.handleLayoutChange():(this.handleLayoutChange.cancel(),this.props.dispatch(Ue({layout:e})))}),A(this,`handleDonate`,()=>{location.href=`https://joinmastodon.org/sponsors#donate`}),A(this,`setRef`,e=>{this.node=e}),A(this,`handleHotkeyNew`,e=>{e.preventDefault();let t=this.node.querySelector(`.autosuggest-textarea__textarea`);t&&t.focus()}),A(this,`handleHotkeySearch`,e=>{e.preventDefault();let t=this.node.querySelector(`.search__input`);t&&t.focus()}),A(this,`handleHotkeyForceNew`,e=>{this.handleHotkeyNew(e),this.props.dispatch(ke())}),A(this,`handleHotkeyToggleComposeSpoilers`,e=>{e.preventDefault(),this.props.dispatch(De())}),A(this,`handleHotkeyFocusColumn`,e=>{Z(e.key*1)}),A(this,`handleHotkeyLoadMore`,()=>{document.querySelector(`.load-more`)?.focus()}),A(this,`handleMoveToTop`,()=>{dr()}),A(this,`handleMoveUp`,()=>{let e=lr();return e===-1?Z(ur()):Q(e,-1)}),A(this,`handleMoveDown`,()=>{let e=lr();return e===-1?Z(ur()):Q(e,1)}),A(this,`handleHotkeyBack`,e=>{e.preventDefault();let{history:t}=this.props;t.location?.state?.fromMastodon?t.goBack():t.push(`/`)}),A(this,`handleHotkeyToggleHelp`,()=>{this.props.location.pathname===`/keyboard-shortcuts`?this.props.history.goBack():this.props.history.push(`/keyboard-shortcuts`)}
17),A(this,`handleHotkeyGoToHome`,()=>{this.props.history.push(`/home`)}),A(this,`handleHotkeyGoToExplore`,()=>{this.props.history.push(`/explore`)}),A(this,`handleHotkeyGoToNotifications`,()=>{this.props.history.push(`/notifications`)}),A(this,`handleHotkeyGoToLocal`,()=>{this.props.history.push(`/public/local`)}),A(this,`handleHotkeyGoToFederated`,()=>{this.props.history.push(`/public`)}),A(this,`handleHotkeyGoToDirect`,()=>{this.props.history.push(`/conversations`)}),A(this,`handleHotkeyGoToStart`,()=>{this.props.history.push(`/getting-started`),setTimeout(()=>{document.querySelector(`#${P()}`)?.focus()},0)}),A(this,`handleHotkeyGoToFavourites`,()=>{this.props.history.push(`/favourites`)}),A(this,`handleHotkeyGoToPinned`,()=>{this.props.history.push(`/pinned`)}),A(this,`handleHotkeyGoToProfile`,()=>{this.props.history.push(`/@${this.props.username}`)}),A(this,`handleHotkeyGoToBlocked`,()=>{this.props.history.push(`/blocks`)}),A(this,`handleHotkeyGoToMuted`,()=>{this.props.history.push(`/mutes`)}),A(this,`handleHotkeyGoToRequests`,()=>{this.props.history.push(`/follow_requests`)})}componentDidMount(){let{signedIn:e}=this.props.identity;window.addEventListener(`focus`,this.handleWindowFocus,!1),window.addEventListener(`blur`,this.handleWindowBlur,!1),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),e&&(this.props.dispatch(Ae()),this.props.dispatch(Me()),this.props.dispatch(pe()),this.props.dispatch(Ke()),this.props.dispatch(de()),setTimeout(()=>this.props.dispatch(Je()),3e3))}componentWillUnmount(){window.removeEventListener(`focus`,this.handleWindowFocus),window.removeEventListener(`blur`,this.handleWindowBlur),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,isComposing:n,location:r,layout:i,firstLaunch:a,newAccount:o}=this.props,s={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,goToPinned:this.handleHotkeyGoToPinned,goToProfile:this.handleHotkeyGoToProfile,goToBlocked:this.handleHotkeyGoToBlocked,goToMuted:this.handleHotkeyGoToMuted,goToRequests:this.handleHotkeyGoToRequests,cheat:this.handleDonate},c=!this.props.identity.signedIn&&x===`overview`&&r.pathname.startsWith(`/overview`);return(0,J.jsx)(it,{global:!0,handlers:s,children:(0,J.jsxs)(`div`,{className:(0,Y.default)(`ui`,{"is-composing":n}),ref:this.setRef,children:[!c&&(0,J.jsx)(Ve,{multiColumn:i===`multi-column`,onFocusGettingStartedColumn:this.handleHotkeyGoToStart}),(0,J.jsx)(br,{identity:this.props.identity,location:r,singleColumn:i===`mobile`||i===`single-column`,layout:i,forceOnboarding:a&&o,minimalShell:c,children:t}),!c&&(0,J.jsx)(Tt,{}),i!==`mobile`&&(0,J.jsx)(rr,{}),(0,J.jsx)(tt,{}),!g&&(0,J.jsx)(er,{}),(0,J.jsx)(or,{}),(0,J.jsx)(et,{className:`loading-bar`}),(0,J.jsx)(nt,{}),(0,J.jsx)(ir,{active:e,onClose:this.closeUploadModal})]})})}}
17,Sr=Ce(yr)(rt(ge(at(xr)))),Cr=we([e=>e.navigation.open,e=>e.modal.get(`stack`).size>0],(e,t)=>e||t),wr=()=>{let e=M(Cr);return(0,H.useLayoutEffect)(()=>{document.documentElement.classList.toggle(`has-modal`,e)},[e]),null},Tr=ee()?d:`${d} (Dev)`,Er=ce(S);E.dispatch(Er);var Dr=class extends H.PureComponent{constructor(...e){super(...e),A(this,`identity`,st(S))}componentDidMount(){this.identity.signedIn&&(this.disconnect=E.dispatch(Fe()))}componentWillUnmount(){this.disconnect&&=(this.disconnect(),null)}render(){return(0,J.jsx)(ct.Provider,{value:this.identity,children:(0,J.jsx)(ne,{children:(0,J.jsx)(Se,{store:E,children:(0,J.jsxs)(Wn,{children:[(0,J.jsxs)(ye,{children:[(0,J.jsx)(wn,{children:(0,J.jsx)(Ie,{children:(0,J.jsx)(O,{path:`/`,component:Sr})})}),(0,J.jsx)(wr,{})]}),(0,J.jsx)(N,{defaultTitle:Tr,titleTemplate:`%s - ${Tr}`})]})})})})}};function Or(){return jn(`main()`),c(async()=>{let e=document.getElementById(`mastodon`);if(!e)throw Error(`Mount node not found`);let t=JSON.parse(e.getAttribute(`data-props`)??`{}`);h&&ae.assign({skipAnimation:!0});let{initializeEmoji:n}=await l(async()=>{let{initializeEmoji:e}=await import(`./emoji-C0EOJ-dP.js`).then(e=>e.t);return{initializeEmoji:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);if(await n(),(0,En.createRoot)(e).render((0,J.jsx)(H.StrictMode,{children:(0,J.jsx)(Dr,{...t})})),E.dispatch(fe()),w&&`serviceWorker`in navigator&&(T()||ee())){let e=`/sw.js`;if(T()){let{default:t}=await l(async()=>{let{default:e}=await import(`./sw-DoJFf99A.js`);return{default:e}},[],import.meta.url);e=t}if(await navigator.serviceWorker.register(e,{scope:`/`,type:`module`}),ee()&&`Notification`in window&&Notification.permission===`granted`){let e=await l(()=>import(`./push_notifications-C0ir4q-Q.js`).then(e=>e.n),__vite__mapDeps([9,1,3,10,11,12,13]),import.meta.url);E.dispatch(e.register())}}Mn(`main()`)})}Te().then(te).then(Or).catch(e=>{console.error(e)}); 18//# sourceMappingURL=application-Bz4lQheG.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.