Files
phanpy-cz/assets/pwa-viewport-cDxGxYgG.js
2025-10-09 15:50:02 +02:00

46 lines
234 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./compose-DPEmvLj7.js","./ScheduledAtField-O5kh-u-d.js","./ICONS-BLqAe1AS.js","./ScheduledAtField-Bi22_aXV.css","./compose-DoxvhBtV.css"])))=>i.map(i=>d[i]);
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(o){if(o.ep)return;o.ep=!0;const a=r(o);fetch(o.href,a)}})();"AbortSignal"in window&&(AbortSignal.timeout=AbortSignal.timeout||(e=>{const t=new AbortController;return setTimeout(()=>t.abort(),e),t.signal}));"AbortSignal"in window&&!AbortSignal.any&&(AbortSignal.any=function(e){const t=new AbortController,{signal:r}=t;for(const n of e)if(n.aborted)return t.abort(n.reason),r;for(const n of e)n.addEventListener("abort",()=>{t.abort(n.reason)},{signal:r});return r});"URL"in window&&typeof URL.parse!="function"&&(URL.parse=function(e,t){if(!e)return null;try{return t?new URL(e,t):new URL(e)}catch{return null}});function Ts(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Uf(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var o=!1;try{o=this instanceof n}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var nt={},bt={},Gt={exports:{}},xs=Gt.exports,Hn;function Ls(){return Hn||(Hn=1,function(e){(function(t,r){e.exports?e.exports=r():t.moo=r()})(xs,function(){"use strict";var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=typeof new RegExp().sticky=="boolean";function o(p){return p&&r.call(p)==="[object RegExp]"}function a(p){return p&&typeof p=="object"&&!o(p)&&!Array.isArray(p)}function i(p){return p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(p){var w=new RegExp("|"+p);return w.exec("").length-1}function l(p){return"("+p+")"}function u(p){if(!p.length)return"(?!)";var w=p.map(function(E){return"(?:"+E+")"}).join("|");return"(?:"+w+")"}function f(p){if(typeof p=="string")return"(?:"+i(p)+")";if(o(p)){if(p.ignoreCase)throw new Error("RegExp /i flag not allowed");if(p.global)throw new Error("RegExp /g flag is implied");if(p.sticky)throw new Error("RegExp /y flag is implied");if(p.multiline)throw new Error("RegExp /m flag is implied");return p.source}else throw new Error("Not a pattern: "+p)}function c(p,w){return p.length>w?p:Array(w-p.length+1).join(" ")+p}function h(p,w){for(var E=p.length,S=0;;){var C=p.lastIndexOf(`
`,E-1);if(C===-1||(S++,E=C,S===w)||E===0)break}var T=S<w?0:E+1;return p.substring(T).split(`
`)}function d(p){for(var w=Object.getOwnPropertyNames(p),E=[],S=0;S<w.length;S++){var C=w[S],T=p[C],P=[].concat(T);if(C==="include"){for(var I=0;I<P.length;I++)E.push({include:P[I]});continue}var U=[];P.forEach(function(N){a(N)?(U.length&&E.push(m(C,U)),E.push(m(C,N)),U=[]):U.push(N)}),U.length&&E.push(m(C,U))}return E}function _(p){for(var w=[],E=0;E<p.length;E++){var S=p[E];if(S.include){for(var C=[].concat(S.include),T=0;T<C.length;T++)w.push({include:C[T]});continue}if(!S.type)throw new Error("Rule has no type: "+JSON.stringify(S));w.push(m(S.type,S))}return w}function m(p,w){if(a(w)||(w={match:w}),w.include)throw new Error("Matching rules cannot also include states");var E={defaultType:p,lineBreaks:!!w.error||!!w.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var S in w)t.call(w,S)&&(E[S]=w[S]);if(typeof E.type=="string"&&p!==E.type)throw new Error("Type transform cannot be a string (type '"+E.type+"' for token '"+p+"')");var C=E.match;return E.match=Array.isArray(C)?C:C?[C]:[],E.match.sort(function(T,P){return o(T)&&o(P)?0:o(P)?-1:o(T)?1:P.length-T.length}),E}function g(p){return Array.isArray(p)?_(p):d(p)}var v=m("error",{lineBreaks:!0,shouldThrow:!0});function A(p,w){for(var E=null,S=Object.create(null),C=!0,T=null,P=[],I=[],U=0;U<p.length;U++)p[U].fallback&&(C=!1);for(var U=0;U<p.length;U++){var N=p[U];if(N.include)throw new Error("Inheritance is not allowed in stateless lexers");if(N.error||N.fallback){if(E)throw!N.fallback==!E.fallback?new Error("Multiple "+(N.fallback?"fallback":"error")+" rules not allowed (for token '"+N.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+N.defaultType+"')");E=N}var W=N.match.slice();if(C)for(;W.length&&typeof W[0]=="string"&&W[0].length===1;){var X=W.shift();S[X.charCodeAt(0)]=N}if(N.pop||N.push||N.next){if(!w)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+N.defaultType+"')");if(N.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+N.defaultType+"')")}if(W.length!==0){C=!1,P.push(N);for(var le=0;le<W.length;le++){var fe=W[le];if(o(fe)){if(T===null)T=fe.unicode;else if(T!==fe.unicode&&N.fallback===!1)throw new Error("If one rule is /u then all must be")}}var me=u(W.map(f)),ue=new RegExp(me);if(ue.test(""))throw new Error("RegExp matches empty string: "+ue);var Se=s(me);if(Se>0)throw new Error("RegExp has capture groups: "+ue+`
Use (?: … ) instead`);if(!N.lineBreaks&&ue.test(`
`))throw new Error("Rule should declare lineBreaks: "+ue);I.push(l(me))}}var Oe=E&&E.fallback,$e=n&&!Oe?"ym":"gm",et=n||Oe?"":"|";T===!0&&($e+="u");var gr=new RegExp(u(I)+et,$e);return{regexp:gr,groups:P,fast:S,error:E||v}}function O(p){var w=A(g(p));return new G({start:w},"start")}function D(p,w,E){var S=p&&(p.push||p.next);if(S&&!E[S])throw new Error("Missing state '"+S+"' (in token '"+p.defaultType+"' of state '"+w+"')");if(p&&p.pop&&+p.pop!=1)throw new Error("pop must be 1 (in token '"+p.defaultType+"' of state '"+w+"')")}function V(p,w){var E=p.$all?g(p.$all):[];delete p.$all;var S=Object.getOwnPropertyNames(p);w||(w=S[0]);for(var C=Object.create(null),T=0;T<S.length;T++){var P=S[T];C[P]=g(p[P]).concat(E)}for(var T=0;T<S.length;T++)for(var P=S[T],I=C[P],U=Object.create(null),N=0;N<I.length;N++){var W=I[N];if(W.include){var X=[N,1];if(W.include!==P&&!U[W.include]){U[W.include]=!0;var le=C[W.include];if(!le)throw new Error("Cannot include nonexistent state '"+W.include+"' (in state '"+P+"')");for(var fe=0;fe<le.length;fe++){var me=le[fe];I.indexOf(me)===-1&&X.push(me)}}I.splice.apply(I,X),N--}}for(var ue=Object.create(null),T=0;T<S.length;T++){var P=S[T];ue[P]=A(C[P],!0)}for(var T=0;T<S.length;T++){for(var Se=S[T],Oe=ue[Se],$e=Oe.groups,N=0;N<$e.length;N++)D($e[N],Se,ue);for(var et=Object.getOwnPropertyNames(Oe.fast),N=0;N<et.length;N++)D(Oe.fast[et[N]],Se,ue)}return new G(ue,w)}function K(p){for(var w=typeof Map<"u",E=w?new Map:Object.create(null),S=Object.getOwnPropertyNames(p),C=0;C<S.length;C++){var T=S[C],P=p[T],I=Array.isArray(P)?P:[P];I.forEach(function(U){if(typeof U!="string")throw new Error("keyword must be string (in keyword '"+T+"')");w?E.set(U,T):E[U]=T})}return function(U){return w?E.get(U):E[U]}}var G=function(p,w){this.startState=w,this.states=p,this.buffer="",this.stack=[],this.reset()};G.prototype.reset=function(p,w){return this.buffer=p||"",this.index=0,this.line=w?w.line:1,this.col=w?w.col:1,this.queuedToken=w?w.queuedToken:null,this.queuedText=w?w.queuedText:"",this.queuedThrow=w?w.queuedThrow:null,this.setState(w?w.state:this.startState),this.stack=w&&w.stack?w.stack.slice():[],this},G.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedText:this.queuedText,queuedThrow:this.queuedThrow}},G.prototype.setState=function(p){if(!(!p||this.state===p)){this.state=p;var w=this.states[p];this.groups=w.groups,this.error=w.error,this.re=w.regexp,this.fast=w.fast}},G.prototype.popState=function(){this.setState(this.stack.pop())},G.prototype.pushState=function(p){this.stack.push(this.state),this.setState(p)};var te=n?function(p,w){return p.exec(w)}:function(p,w){var E=p.exec(w);return E[0].length===0?null:E};G.prototype._getGroup=function(p){for(var w=this.groups.length,E=0;E<w;E++)if(p[E+1]!==void 0)return this.groups[E];throw new Error("Cannot find token type for matched text")};function $(){return this.value}if(G.prototype.next=function(){var p=this.index;if(this.queuedGroup){var w=this._token(this.queuedGroup,this.queuedText,p);return this.queuedGroup=null,this.queuedText="",w}var E=this.buffer;if(p!==E.length){var P=this.fast[E.charCodeAt(p)];if(P)return this._token(P,E.charAt(p),p);var S=this.re;S.lastIndex=p;var C=te(S,E),T=this.error;if(C==null)return this._token(T,E.slice(p,E.length),p);var P=this._getGroup(C),I=C[0];return T.fallback&&C.index!==p?(this.queuedGroup=P,this.queuedText=I,this._token(T,E.slice(p,C.index),p)):this._token(P,I,p)}},G.prototype._token=function(p,w,E){var S=0;if(p.lineBreaks){var C=/\n/g,T=1;if(w===`
`)S=1;else for(;C.exec(w);)S++,T=C.lastIndex}var P={type:typeof p.type=="function"&&p.type(w)||p.defaultType,value:typeof p.value=="function"?p.value(w):w,text:w,toString:$,offset:E,lineBreaks:S,line:this.line,col:this.col},I=w.length;if(this.index+=I,this.line+=S,S!==0?this.col=I-T+1:this.col+=I,p.shouldThrow){var U=new Error(this.formatError(P,"invalid syntax"));throw U}return p.pop?this.popState():p.push?this.pushState(p.push):p.next&&this.setState(p.next),P},typeof Symbol<"u"&&Symbol.iterator){var J=function(p){this.lexer=p};J.prototype.next=function(){var p=this.lexer.next();return{value:p,done:!p}},J.prototype[Symbol.iterator]=function(){return this},G.prototype[Symbol.iterator]=function(){return new J(this)}}return G.prototype.formatError=function(p,w){if(p==null)var E=this.buffer.slice(this.index),p={text:E,offset:this.index,lineBreaks:E.indexOf(`
`)===-1?0:1,line:this.line,col:this.col};var S=2,C=Math.max(p.line-S,1),T=p.line+S,P=String(T).length,I=h(this.buffer,this.line-p.line+S+1).slice(0,5),U=[];U.push(w+" at line "+p.line+" col "+p.col+":"),U.push("");for(var N=0;N<I.length;N++){var W=I[N],X=C+N;U.push(c(String(X),P)+" "+W),X===p.line&&U.push(c("",P+p.col+1)+"^")}return U.join(`
`)},G.prototype.clone=function(){return new G(this.states,this.state)},G.prototype.has=function(p){return!0},{compile:O,states:V,error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:K}})}(Gt)),Gt.exports}var Bn;function Os(){return Bn||(Bn=1,function(e){"use strict";var t=bt&&bt.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(e,"__esModule",{value:!0}),e.lexer=e.states=void 0;const r=t(Ls());e.states={body:{doubleapos:{match:"''",value:()=>"'"},quoted:{lineBreaks:!0,match:/'[{}#](?:[^']|'')*'(?!')/u,value:n=>n.slice(1,-1).replace(/''/g,"'")},argument:{lineBreaks:!0,match:/\{\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,push:"arg",value:n=>n.substring(1).trim()},octothorpe:"#",end:{match:"}",pop:1},content:{lineBreaks:!0,match:/[^][^{}#']*/u}},arg:{select:{lineBreaks:!0,match:/,\s*(?:plural|select|selectordinal)\s*,\s*/u,next:"select",value:n=>n.split(",")[1].trim()},"func-args":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*,/u,next:"body",value:n=>n.split(",")[1].trim()},"func-simple":{lineBreaks:!0,match:/,\s*[^\p{Pat_Syn}\p{Pat_WS}]+\s*/u,value:n=>n.substring(1).trim()},end:{match:"}",pop:1}},select:{offset:{lineBreaks:!0,match:/\s*offset\s*:\s*\d+\s*/u,value:n=>n.split(":")[1].trim()},case:{lineBreaks:!0,match:/\s*(?:=\d+|[^\p{Pat_Syn}\p{Pat_WS}]+)\s*\{/u,push:"body",value:n=>n.substring(0,n.indexOf("{")).trim()},end:{match:/\s*\}/u,pop:1}}},e.lexer=r.default.states(e.states)}(bt)),bt}var zn;function Ms(){if(zn)return nt;zn=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.ParseError=void 0,nt.parse=l;const e=Os(),t=u=>({offset:u.offset,line:u.line,col:u.col,text:u.text,lineBreaks:u.lineBreaks}),r=u=>u==="plural"||u==="select"||u==="selectordinal";function n(u,f){let c="",h="";for(const _ of f){const m=_.ctx.text;switch(h+=m,_.type){case"content":c+=_.value;break;case"argument":case"function":case"octothorpe":c+=m;break;default:throw new i(u,`Unsupported part in strict mode function arg style: ${m}`)}}return[{type:"content",value:c.trim(),ctx:Object.assign({},f[0].ctx,{text:h})}]}const o=["number","date","time","spellout","ordinal","duration"],a=["zero","one","two","few","many","other"];class i extends Error{constructor(f,c){super(e.lexer.formatError(f,c))}}nt.ParseError=i;class s{constructor(f,c){var h,d,_,m;this.lexer=e.lexer.reset(f),this.cardinalKeys=(h=c?.cardinal)!==null&&h!==void 0?h:a,this.ordinalKeys=(d=c?.ordinal)!==null&&d!==void 0?d:a,this.strict=(_=c?.strict)!==null&&_!==void 0?_:!1,this.strictPluralKeys=(m=c?.strictPluralKeys)!==null&&m!==void 0?m:!0}parse(){return this.parseBody(!1,!0)}checkSelectKey(f,c,h){if(h[0]==="="){if(c==="select")throw new i(f,`The case ${h} is not valid with select`)}else if(c!=="select"){const d=c==="plural"?this.cardinalKeys:this.ordinalKeys;if(this.strictPluralKeys&&d.length>0&&!d.includes(h)){const _=`The ${c} case ${h} is not valid in this locale`;throw new i(f,_)}}}parseSelect({value:f},c,h,d){const _={type:d,arg:f,cases:[],ctx:h};d==="plural"||d==="selectordinal"?c=!0:this.strict&&(c=!1);for(const m of this.lexer)switch(m.type){case"offset":if(d==="select")throw new i(m,"Unexpected plural offset for select");if(_.cases.length>0)throw new i(m,"Plural offset must be set before cases");_.pluralOffset=Number(m.value),h.text+=m.text,h.lineBreaks+=m.lineBreaks;break;case"case":{this.checkSelectKey(m,d,m.value),_.cases.push({key:m.value,tokens:this.parseBody(c),ctx:t(m)});break}case"end":return _;default:throw new i(m,`Unexpected lexer token: ${m.type}`)}throw new i(null,"Unexpected message end")}parseArgToken(f,c){const h=t(f),d=this.lexer.next();if(!d)throw new i(null,"Unexpected message end");if(h.text+=d.text,h.lineBreaks+=d.lineBreaks,this.strict&&(d.type==="func-simple"||d.type==="func-args")&&!o.includes(d.value)){const _=`Invalid strict mode function arg type: ${d.value}`;throw new i(f,_)}switch(d.type){case"end":return{type:"argument",arg:f.value,ctx:h};case"func-simple":{const _=this.lexer.next();if(!_)throw new i(null,"Unexpected message end");if(_.type!=="end")throw new i(_,`Unexpected lexer token: ${_.type}`);if(h.text+=_.text,r(d.value.toLowerCase()))throw new i(d,`Invalid type identifier: ${d.value}`);return{type:"function",arg:f.value,key:d.value,ctx:h}}case"func-args":{if(r(d.value.toLowerCase())){const m=`Invalid type identifier: ${d.value}`;throw new i(d,m)}let _=this.parseBody(this.strict?!1:c);return this.strict&&_.length>0&&(_=n(f,_)),{type:"function",arg:f.value,key:d.value,param:_,ctx:h}}case"select":if(r(d.value))return this.parseSelect(f,c,h,d.value);throw new i(d,`Unexpected select type ${d.value}`);default:throw new i(d,`Unexpected lexer token: ${d.type}`)}}parseBody(f,c){const h=[];let d=null;for(const _ of this.lexer)if(_.type==="argument")d&&(d=null),h.push(this.parseArgToken(_,f));else if(_.type==="octothorpe"&&f)d&&(d=null),h.push({type:"octothorpe",ctx:t(_)});else{if(_.type==="end"&&!c)return h;{let m=_.value;if(!f&&_.type==="quoted"&&m[0]==="#"){if(m.includes("{")){const g=`Unsupported escape pattern: ${m}`;throw new i(_,g)}m=_.text}d?(d.value+=m,d.ctx.text+=_.text,d.ctx.lineBreaks+=_.lineBreaks):(d={type:"content",value:m,ctx:t(_)},h.push(d))}}if(c)return h;throw new i(null,"Unexpected message end")}}function l(u,f={}){return new s(u,f).parse()}return nt}var Ff=Ms();const De=e=>typeof e=="string",ks=e=>typeof e=="function",$n=new Map,na="en";function rn(e){return[...Array.isArray(e)?e:[e],na]}function nn(e,t,r){const n=rn(e);r||(r="default");let o;if(typeof r=="string")switch(o={day:"numeric",month:"short",year:"numeric"},r){case"full":o.weekday="long";case"long":o.month="long";break;case"short":o.month="numeric";break}else o=r;return Qt(()=>Xt("date",n,r),()=>new Intl.DateTimeFormat(n,o)).format(De(t)?new Date(t):t)}function Ns(e,t,r){let n;if(r||(r="default"),typeof r=="string")switch(n={second:"numeric",minute:"numeric",hour:"numeric"},r){case"full":case"long":n.timeZoneName="short";break;case"short":delete n.second}else n=r;return nn(e,t,n)}function kr(e,t,r){const n=rn(e);return Qt(()=>Xt("number",n,r),()=>new Intl.NumberFormat(n,r)).format(t)}function Kn(e,t,r,{offset:n=0,...o}){const a=rn(e),i=t?Qt(()=>Xt("plural-ordinal",a),()=>new Intl.PluralRules(a,{type:"ordinal"})):Qt(()=>Xt("plural-cardinal",a),()=>new Intl.PluralRules(a,{type:"cardinal"}));return o[r]??o[i.select(r-n)]??o.other}function Qt(e,t){const r=e();let n=$n.get(r);return n||(n=t(),$n.set(r,n)),n}function Xt(e,t,r){const n=t.join("-");return`${e}-${n}-${JSON.stringify(r)}`}const oa=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,aa=e=>e.replace(/\\u([a-fA-F0-9]{4})|\\x([a-fA-F0-9]{2})/g,(t,r,n)=>{if(r){const o=parseInt(r,16);return String.fromCharCode(o)}else{const o=parseInt(n,16);return String.fromCharCode(o)}}),ia="%__lingui_octothorpe__%",Is=(e,t,r={})=>{const n=t||e,o=i=>typeof i=="object"?i:r[i],a=(i,s)=>{const l=Object.keys(r).length?o("number"):void 0,u=kr(n,i,l);return s.replace(new RegExp(ia,"g"),u)};return{plural:(i,s)=>{const{offset:l=0}=s,u=Kn(n,!1,i,s);return a(i-l,u)},selectordinal:(i,s)=>{const{offset:l=0}=s,u=Kn(n,!0,i,s);return a(i-l,u)},select:Ds,number:(i,s)=>kr(n,i,o(s)||{style:s}),date:(i,s)=>nn(n,i,o(s)||s),time:(i,s)=>Ns(n,i,o(s)||s)}},Ds=(e,t)=>t[e]??t.other;function Us(e,t,r){return(n={},o)=>{const a=Is(t,r,o),i=(l,u=!1)=>Array.isArray(l)?l.reduce((f,c)=>{if(c==="#"&&u)return f+ia;if(De(c))return f+c;const[h,d,_]=c;let m={};d==="plural"||d==="selectordinal"||d==="select"?Object.entries(_).forEach(([v,A])=>{m[v]=i(A,d==="plural"||d==="selectordinal")}):m=_;let g;if(d){const v=a[d];g=v(n[h],m)}else g=n[h];return g==null?f:f+g},""):l,s=i(e);return De(s)&&oa.test(s)?aa(s):De(s)?s:s?String(s):""}}var Fs=Object.defineProperty,qs=(e,t,r)=>t in e?Fs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,js=(e,t,r)=>(qs(e,typeof t!="symbol"?t+"":t,r),r);class Hs{constructor(){js(this,"_events",{})}on(t,r){var n;return(n=this._events)[t]??(n[t]=[]),this._events[t].push(r),()=>this.removeListener(t,r)}removeListener(t,r){const n=this._getListeners(t);if(!n)return;const o=n.indexOf(r);~o&&n.splice(o,1)}emit(t,...r){const n=this._getListeners(t);n&&n.map(o=>o.apply(this,r))}_getListeners(t){const r=this._events[t];return Array.isArray(r)?r:!1}}var Bs=Object.defineProperty,zs=(e,t,r)=>t in e?Bs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ke=(e,t,r)=>(zs(e,typeof t!="symbol"?t+"":t,r),r);class $s extends Hs{constructor(t){super(),Ke(this,"_locale",""),Ke(this,"_locales"),Ke(this,"_localeData",{}),Ke(this,"_messages",{}),Ke(this,"_missing"),Ke(this,"_messageCompiler"),Ke(this,"t",this._.bind(this)),t.missing!=null&&(this._missing=t.missing),t.messages!=null&&this.load(t.messages),t.localeData!=null&&this.loadLocaleData(t.localeData),(typeof t.locale=="string"||t.locales)&&this.activate(t.locale??na,t.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}get localeData(){return this._localeData[this._locale]??{}}_loadLocaleData(t,r){const n=this._localeData[t];n?Object.assign(n,r):this._localeData[t]=r}setMessagesCompiler(t){return this._messageCompiler=t,this}loadLocaleData(t,r){typeof t=="string"?this._loadLocaleData(t,r):Object.keys(t).forEach(n=>this._loadLocaleData(n,t[n])),this.emit("change")}_load(t,r){const n=this._messages[t];n?Object.assign(n,r):this._messages[t]=r}load(t,r){typeof t=="string"&&typeof r=="object"?this._load(t,r):Object.entries(t).forEach(([n,o])=>this._load(n,o)),this.emit("change")}loadAndActivate({locale:t,locales:r,messages:n}){this._locale=t,this._locales=r||void 0,this._messages[this._locale]=n,this.emit("change")}activate(t,r){this._locale=t,this._locales=r,this.emit("change")}_(t,r,n){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let o=n?.message;t||(t=""),De(t)||(r=t.values||r,o=t.message,t=t.id);const a=this.messages[t],i=a===void 0,s=this._missing;if(s&&i)return ks(s)?s(this._locale,t):s;i&&this.emit("missing",{id:t,locale:this._locale});let l=a||o||t;return De(l)&&(this._messageCompiler?l=this._messageCompiler(l):console.warn(`Uncompiled message detected! Message:
> ${l}
That means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.
ICU features such as interpolation and plurals will not work properly for that message.
Please compile your catalog first.
`)),De(l)&&oa.test(l)?aa(l):De(l)?l:Us(l,this._locale,this._locales)(r,n?.formats)}date(t,r){return nn(this._locales||this._locale,t,r)}number(t,r){return kr(this._locales||this._locale,t,r)}}function Ks(e={}){return new $s(e)}const lt=Ks();var Dt,j,sa,Gs,Ge,Gn,la,ua,ca,on,Nr,Ir,da,Ot={},fa=[],Ws=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ut=Array.isArray;function ge(e,t){for(var r in t)e[r]=t[r];return e}function an(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Z(e,t,r){var n,o,a,i={};for(a in t)a=="key"?n=t[a]:a=="ref"?o=t[a]:i[a]=t[a];if(arguments.length>2&&(i.children=arguments.length>3?Dt.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)i[a]===void 0&&(i[a]=e.defaultProps[a]);return Rt(e,i,n,o,null)}function Rt(e,t,r,n,o){var a={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++sa,__i:-1,__u:0};return o==null&&j.vnode!=null&&j.vnode(a),a}function ha(){return{current:null}}function pe(e){return e.children}function he(e,t){this.props=e,this.context=t}function ft(e,t){if(t==null)return e.__?ft(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?ft(e):null}function pa(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return pa(e)}}function Dr(e){(!e.__d&&(e.__d=!0)&&Ge.push(e)&&!er.__r++||Gn!=j.debounceRendering)&&((Gn=j.debounceRendering)||la)(er)}function er(){for(var e,t,r,n,o,a,i,s=1;Ge.length;)Ge.length>s&&Ge.sort(ua),e=Ge.shift(),s=Ge.length,e.__d&&(r=void 0,n=void 0,o=(n=(t=e).__v).__e,a=[],i=[],t.__P&&((r=ge({},n)).__v=n.__v+1,j.vnode&&j.vnode(r),sn(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,a,o??ft(n),!!(32&n.__u),i),r.__v=n.__v,r.__.__k[r.__i]=r,ya(a,r,i),n.__e=n.__=null,r.__e!=o&&pa(r)));er.__r=0}function ma(e,t,r,n,o,a,i,s,l,u,f){var c,h,d,_,m,g,v,A=n&&n.__k||fa,O=t.length;for(l=Vs(r,t,A,l,O),c=0;c<O;c++)(d=r.__k[c])!=null&&(h=d.__i==-1?Ot:A[d.__i]||Ot,d.__i=c,g=sn(e,d,h,o,a,i,s,l,u,f),_=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&ln(h.ref,null,d),f.push(d.ref,d.__c||_,d)),m==null&&_!=null&&(m=_),(v=!!(4&d.__u))||h.__k===d.__k?l=_a(d,l,e,v):typeof d.type=="function"&&g!==void 0?l=g:_&&(l=_.nextSibling),d.__u&=-7);return r.__e=m,l}function Vs(e,t,r,n,o){var a,i,s,l,u,f=r.length,c=f,h=0;for(e.__k=new Array(o),a=0;a<o;a++)(i=t[a])!=null&&typeof i!="boolean"&&typeof i!="function"?(l=a+h,(i=e.__k[a]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Rt(null,i,null,null,null):Ut(i)?Rt(pe,{children:i},null,null,null):i.constructor==null&&i.__b>0?Rt(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,s=null,(u=i.__i=Ys(i,r,l,c))!=-1&&(c--,(s=r[u])&&(s.__u|=2)),s==null||s.__v==null?(u==-1&&(o>f?h--:o<f&&h++),typeof i.type!="function"&&(i.__u|=4)):u!=l&&(u==l-1?h--:u==l+1?h++:(u>l?h--:h++,i.__u|=4))):e.__k[a]=null;if(c)for(a=0;a<f;a++)(s=r[a])!=null&&(2&s.__u)==0&&(s.__e==n&&(n=ft(s)),va(s,s));return n}function _a(e,t,r,n){var o,a;if(typeof e.type=="function"){for(o=e.__k,a=0;o&&a<o.length;a++)o[a]&&(o[a].__=e,t=_a(o[a],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=ft(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Pe(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ut(e)?e.some(function(r){Pe(r,t)}):t.push(e)),t}function Ys(e,t,r,n){var o,a,i,s=e.key,l=e.type,u=t[r],f=u!=null&&(2&u.__u)==0;if(u===null&&e.key==null||f&&s==u.key&&l==u.type)return r;if(n>(f?1:0)){for(o=r-1,a=r+1;o>=0||a<t.length;)if((u=t[i=o>=0?o--:a++])!=null&&(2&u.__u)==0&&s==u.key&&l==u.type)return i}return-1}function Wn(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||Ws.test(t)?r:r+"px"}function Ht(e,t,r,n,o){var a,i;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Wn(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||Wn(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")a=t!=(t=t.replace(ca,"$1")),i=t.toLowerCase(),t=i in e||t=="onFocusOut"||t=="onFocusIn"?i.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=r,r?n?r.u=n.u:(r.u=on,e.addEventListener(t,a?Ir:Nr,a)):e.removeEventListener(t,a?Ir:Nr,a);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function Vn(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=on++;else if(t.t<r.u)return;return r(j.event?j.event(t):t)}}}function sn(e,t,r,n,o,a,i,s,l,u){var f,c,h,d,_,m,g,v,A,O,D,V,K,G,te,$,J,p=t.type;if(t.constructor!=null)return null;128&r.__u&&(l=!!(32&r.__u),a=[s=t.__e=r.__e]),(f=j.__b)&&f(t);e:if(typeof p=="function")try{if(v=t.props,A="prototype"in p&&p.prototype.render,O=(f=p.contextType)&&n[f.__c],D=f?O?O.props.value:f.__:n,r.__c?g=(c=t.__c=r.__c).__=c.__E:(A?t.__c=c=new p(v,D):(t.__c=c=new he(v,D),c.constructor=p,c.render=Js),O&&O.sub(c),c.props=v,c.state||(c.state={}),c.context=D,c.__n=n,h=c.__d=!0,c.__h=[],c._sb=[]),A&&c.__s==null&&(c.__s=c.state),A&&p.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=ge({},c.__s)),ge(c.__s,p.getDerivedStateFromProps(v,c.__s))),d=c.props,_=c.state,c.__v=t,h)A&&p.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),A&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(A&&p.getDerivedStateFromProps==null&&v!==d&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(v,D),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(v,c.__s,D)===!1||t.__v==r.__v){for(t.__v!=r.__v&&(c.props=v,c.state=c.__s,c.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(w){w&&(w.__=t)}),V=0;V<c._sb.length;V++)c.__h.push(c._sb[V]);c._sb=[],c.__h.length&&i.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(v,c.__s,D),A&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(d,_,m)})}if(c.context=D,c.props=v,c.__P=e,c.__e=!1,K=j.__r,G=0,A){for(c.state=c.__s,c.__d=!1,K&&K(t),f=c.render(c.props,c.state,c.context),te=0;te<c._sb.length;te++)c.__h.push(c._sb[te]);c._sb=[]}else do c.__d=!1,K&&K(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++G<25);c.state=c.__s,c.getChildContext!=null&&(n=ge(ge({},n),c.getChildContext())),A&&!h&&c.getSnapshotBeforeUpdate!=null&&(m=c.getSnapshotBeforeUpdate(d,_)),$=f,f!=null&&f.type===pe&&f.key==null&&($=ga(f.props.children)),s=ma(e,Ut($)?$:[$],t,r,n,o,a,i,s,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&i.push(c),g&&(c.__E=c.__=null)}catch(w){if(t.__v=null,l||a!=null)if(w.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__e=s}else{for(J=a.length;J--;)an(a[J]);Ur(t)}else t.__e=r.__e,t.__k=r.__k,w.then||Ur(t);j.__e(w,t,r)}else a==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=Zs(r.__e,t,r,n,o,a,i,l,u);return(f=j.diffed)&&f(t),128&t.__u?void 0:s}function Ur(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(Ur)}function ya(e,t,r){for(var n=0;n<r.length;n++)ln(r[n],r[++n],r[++n]);j.__c&&j.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(a){a.call(o)})}catch(a){j.__e(a,o.__v)}})}function ga(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Ut(e)?e.map(ga):ge({},e)}function Zs(e,t,r,n,o,a,i,s,l){var u,f,c,h,d,_,m,g=r.props,v=t.props,A=t.type;if(A=="svg"?o="http://www.w3.org/2000/svg":A=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),a!=null){for(u=0;u<a.length;u++)if((d=a[u])&&"setAttribute"in d==!!A&&(A?d.localName==A:d.nodeType==3)){e=d,a[u]=null;break}}if(e==null){if(A==null)return document.createTextNode(v);e=document.createElementNS(o,A,v.is&&v),s&&(j.__m&&j.__m(t,a),s=!1),a=null}if(A==null)g===v||s&&e.data==v||(e.data=v);else{if(a=a&&Dt.call(e.childNodes),g=r.props||Ot,!s&&a!=null)for(g={},u=0;u<e.attributes.length;u++)g[(d=e.attributes[u]).name]=d.value;for(u in g)if(d=g[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=d;else if(!(u in v)){if(u=="value"&&"defaultValue"in v||u=="checked"&&"defaultChecked"in v)continue;Ht(e,u,null,d,o)}}for(u in v)d=v[u],u=="children"?h=d:u=="dangerouslySetInnerHTML"?f=d:u=="value"?_=d:u=="checked"?m=d:s&&typeof d!="function"||g[u]===d||Ht(e,u,d,g[u],o);if(f)s||c&&(f.__html==c.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),ma(t.type=="template"?e.content:e,Ut(h)?h:[h],t,r,n,A=="foreignObject"?"http://www.w3.org/1999/xhtml":o,a,i,a?a[0]:r.__k&&ft(r,0),s,l),a!=null)for(u=a.length;u--;)an(a[u]);s||(u="value",A=="progress"&&_==null?e.removeAttribute("value"):_!=null&&(_!==e[u]||A=="progress"&&!_||A=="option"&&_!=g[u])&&Ht(e,u,_,g[u],o),u="checked",m!=null&&m!=e[u]&&Ht(e,u,m,g[u],o))}return e}function ln(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(o){j.__e(o,r)}}function va(e,t,r){var n,o;if(j.unmount&&j.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||ln(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(a){j.__e(a,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&va(n[o],t,r||typeof e.type!="function");r||an(e.__e),e.__c=e.__=e.__e=void 0}function Js(e,t,r){return this.constructor(e,r)}function Mt(e,t,r){var n,o,a,i;t==document&&(t=document.documentElement),j.__&&j.__(e,t),o=(n=typeof r=="function")?null:r&&r.__k||t.__k,a=[],i=[],sn(t,e=(!n&&r||t).__k=Z(pe,null,[e]),o||Ot,Ot,t.namespaceURI,!n&&r?[r]:o?null:t.firstChild?Dt.call(t.childNodes):null,a,!n&&r?r:o?o.__e:t.firstChild,n,i),ya(a,e,i)}function wa(e,t){Mt(e,t,wa)}function Qs(e,t,r){var n,o,a,i,s=ge({},e.props);for(a in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)a=="key"?n=t[a]:a=="ref"?o=t[a]:s[a]=t[a]===void 0&&i!=null?i[a]:t[a];return arguments.length>2&&(s.children=arguments.length>3?Dt.call(arguments,2):r),Rt(e.type,s,n||e.key,o||e.ref,null)}function xe(e){function t(r){var n,o;return this.getChildContext||(n=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(a){this.props.value!=a.value&&n.forEach(function(i){i.__e=!0,Dr(i)})},this.sub=function(a){n.add(a);var i=a.componentWillUnmount;a.componentWillUnmount=function(){n&&n.delete(a),i&&i.call(a)}}),r.children}return t.__c="__cC"+da++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}Dt=fa.slice,j={__e:function(e,t,r,n){for(var o,a,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((a=o.constructor)&&a.getDerivedStateFromError!=null&&(o.setState(a.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),i=o.__d),i)return o.__E=o}catch(s){e=s}throw e}},sa=0,Gs=function(e){return e!=null&&e.constructor==null},he.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=ge({},this.state),typeof e=="function"&&(e=e(ge({},r),this.props)),e&&ge(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Dr(this))},he.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Dr(this))},he.prototype.render=pe,Ge=[],la=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ua=function(e,t){return e.__v.__b-t.__v.__b},er.__r=0,ca=/(PointerCapture)$|Capture$/i,on=0,Nr=Vn(!1),Ir=Vn(!0),da=0;var Re,Q,wr,Yn,ht=0,ba=[],ee=j,Zn=ee.__b,Jn=ee.__r,Qn=ee.diffed,Xn=ee.__c,eo=ee.unmount,to=ee.__;function Ze(e,t){ee.__h&&ee.__h(Q,e,ht||t),ht=0;var r=Q.__H||(Q.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Te(e){return ht=1,dr(Ea,e)}function dr(e,t,r){var n=Ze(Re++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Ea(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],u=n.t(l,s);l!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=Q,!Q.__f)){var o=function(s,l,u){if(!n.__c.__H)return!0;var f=n.__c.__H.__.filter(function(h){return!!h.__c});if(f.every(function(h){return!h.__N}))return!a||a.call(this,s,l,u);var c=n.__c.props!==s;return f.forEach(function(h){if(h.__N){var d=h.__[0];h.__=h.__N,h.__N=void 0,d!==h.__[0]&&(c=!0)}}),a&&a.call(this,s,l,u)||c};Q.__f=!0;var a=Q.shouldComponentUpdate,i=Q.componentWillUpdate;Q.componentWillUpdate=function(s,l,u){if(this.__e){var f=a;a=void 0,o(s,l,u),a=f}i&&i.call(this,s,l,u)},Q.shouldComponentUpdate=o}return n.__N||n.__}function Je(e,t){var r=Ze(Re++,3);!ee.__s&&dn(r.__H,t)&&(r.__=e,r.u=t,Q.__H.__h.push(r))}function Le(e,t){var r=Ze(Re++,4);!ee.__s&&dn(r.__H,t)&&(r.__=e,r.u=t,Q.__h.push(r))}function Be(e){return ht=5,Ee(function(){return{current:e}},[])}function un(e,t,r){ht=6,Le(function(){if(typeof e=="function"){var n=e(t());return function(){e(null),n&&typeof n=="function"&&n()}}if(e)return e.current=t(),function(){return e.current=null}},r==null?r:r.concat(e))}function Ee(e,t){var r=Ze(Re++,7);return dn(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function qe(e,t){return ht=8,Ee(function(){return e},t)}function se(e){var t=Q.context[e.__c],r=Ze(Re++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(Q)),t.props.value):e.__}function fr(e,t){ee.useDebugValue&&ee.useDebugValue(t?t(e):e)}function Xs(e){var t=Ze(Re++,10),r=Te();return t.__=e,Q.componentDidCatch||(Q.componentDidCatch=function(n,o){t.__&&t.__(n,o),r[1](n)}),[r[0],function(){r[1](void 0)}]}function cn(){var e=Ze(Re++,11);if(!e.__){for(var t=Q.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function el(){for(var e;e=ba.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Wt),e.__H.__h.forEach(Fr),e.__H.__h=[]}catch(t){e.__H.__h=[],ee.__e(t,e.__v)}}ee.__b=function(e){Q=null,Zn&&Zn(e)},ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),to&&to(e,t)},ee.__r=function(e){Jn&&Jn(e),Re=0;var t=(Q=e.__c).__H;t&&(wr===Q?(t.__h=[],Q.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Wt),t.__h.forEach(Fr),t.__h=[],Re=0)),wr=Q},ee.diffed=function(e){Qn&&Qn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ba.push(t)!==1&&Yn===ee.requestAnimationFrame||((Yn=ee.requestAnimationFrame)||tl)(el)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),wr=Q=null},ee.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Wt),r.__h=r.__h.filter(function(n){return!n.__||Fr(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],ee.__e(n,r.__v)}}),Xn&&Xn(e,t)},ee.unmount=function(e){eo&&eo(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Wt(n)}catch(o){t=o}}),r.__H=void 0,t&&ee.__e(t,r.__v))};var ro=typeof requestAnimationFrame=="function";function tl(e){var t,r=function(){clearTimeout(n),ro&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);ro&&(t=requestAnimationFrame(r))}function Wt(e){var t=Q,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Q=t}function Fr(e){var t=Q;e.__c=e.__(),Q=t}function dn(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Ea(e,t){return typeof t=="function"?t(e):t}function Sa(e,t){for(var r in t)e[r]=t[r];return e}function qr(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function hr(e,t){var r=t(),n=Te({t:{__:r,u:t}}),o=n[0].t,a=n[1];return Le(function(){o.__=r,o.u=t,br(o)&&a({t:o})},[e,r,t]),Je(function(){return br(o)&&a({t:o}),e(function(){br(o)&&a({t:o})})},[e]),r}function br(e){var t,r,n=e.u,o=e.__;try{var a=n();return!((t=o)===(r=a)&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch{return!0}}function fn(e){e()}function hn(e){return e}function pn(){return[!1,fn]}var mn=Le;function tr(e,t){this.props=e,this.context=t}function _n(e,t){function r(o){var a=this.props.ref,i=a==o.ref;return!i&&a&&(a.call?a(null):a.current=null),t?!t(this.props,o)||!i:qr(this.props,o)}function n(o){return this.shouldComponentUpdate=r,Z(e,o)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n.type=e,n}(tr.prototype=new he).isPureReactComponent=!0,tr.prototype.shouldComponentUpdate=function(e,t){return qr(this.props,e)||qr(this.state,t)};var no=j.__b;j.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),no&&no(e)};var rl=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Aa(e){function t(r){var n=Sa({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=rl,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var oo=function(e,t){return e==null?null:Pe(Pe(e).map(t))},yn={map:oo,forEach:oo,count:function(e){return e?Pe(e).length:0},only:function(e){var t=Pe(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Pe},nl=j.__e;j.__e=function(e,t,r,n){if(e.then){for(var o,a=t;a=a.__;)if((o=a.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}nl(e,t,r,n)};var ao=j.unmount;function Ca(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Sa({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Ca(n,t,r)})),e}function Pa(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Pa(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Tt(){this.__u=0,this.o=null,this.__b=null}function Ra(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ta(e){var t,r,n;function o(a){if(t||(t=e()).then(function(i){r=i.default||i},function(i){n=i}),n)throw n;if(!r)throw t;return Z(r,a)}return o.displayName="Lazy",o.__f=!0,o}function at(){this.i=null,this.l=null}j.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ao&&ao(e)},(Tt.prototype=new he).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=Ra(n.__v),a=!1,i=function(){a||(a=!0,r.__R=null,o?o(s):s())};r.__R=i;var s=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=Pa(l,l.__c.__P,l.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.o.pop();)u.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(i,i)},Tt.prototype.componentWillUnmount=function(){this.o=[]},Tt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Ca(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&Z(pe,null,e.fallback);return o&&(o.__u&=-33),[Z(pe,null,t.__a?null:e.children),o]};var io=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function ol(e){return this.getChildContext=function(){return e.context},e.children}function al(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){Mt(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},insertBefore:function(o,a){this.childNodes.push(o),t.h.insertBefore(o,a)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),t.h.removeChild(o)}}}Mt(Z(ol,{context:t.context},e.__v),t.v)}function xa(e,t){var r=Z(al,{__v:e,h:t});return r.containerInfo=t,r}(at.prototype=new he).__a=function(e){var t=this,r=Ra(t.__v),n=t.l.get(e);return n[0]++,function(o){var a=function(){t.props.revealOrder?(n.push(o),io(t,e,n)):o()};r?r(a):a()}},at.prototype.render=function(e){this.i=null,this.l=new Map;var t=Pe(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},at.prototype.componentDidUpdate=at.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){io(e,r,t)})};var La=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,il=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,sl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ll=/[A-Z0-9]/g,ul=typeof document<"u",cl=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Oa(e,t,r){return t.__k==null&&(t.textContent=""),Mt(e,t),typeof r=="function"&&r(),e?e.__c:null}function Ma(e,t,r){return wa(e,t),typeof r=="function"&&r(),e?e.__c:null}he.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(he.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var so=j.event;function dl(){}function fl(){return this.cancelBubble}function hl(){return this.defaultPrevented}j.event=function(e){return so&&(e=so(e)),e.persist=dl,e.isPropagationStopped=fl,e.isDefaultPrevented=hl,e.nativeEvent=e};var gn,pl={enumerable:!1,configurable:!0,get:function(){return this.class}},lo=j.vnode;j.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,o={},a=n.indexOf("-")===-1;for(var i in r){var s=r[i];if(!(i==="value"&&"defaultValue"in r&&s==null||ul&&i==="children"&&n==="noscript"||i==="class"||i==="className")){var l=i.toLowerCase();i==="defaultValue"&&"value"in r&&r.value==null?i="value":i==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?i="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||cl(r.type)?l==="onfocus"?i="onfocusin":l==="onblur"?i="onfocusout":sl.test(i)&&(i=l):l=i="oninput":a&&il.test(i)?i=i.replace(ll,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&o[i=l]&&(i="oninputCapture"),o[i]=s}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Pe(r.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=Pe(r.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",pl)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=La,lo&&lo(e)};var uo=j.__r;j.__r=function(e){uo&&uo(e),gn=e.__c};var co=j.diffed;j.diffed=function(e){co&&co(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),gn=null};var ka={ReactCurrentDispatcher:{current:{readContext:function(e){return gn.__n[e.__c].props.value},useCallback:qe,useContext:se,useDebugValue:fr,useDeferredValue:hn,useEffect:Je,useId:cn,useImperativeHandle:un,useInsertionEffect:mn,useLayoutEffect:Le,useMemo:Ee,useReducer:dr,useRef:Be,useState:Te,useSyncExternalStore:hr,useTransition:pn}}},ml="18.3.1";function Na(e){return Z.bind(null,e)}function _t(e){return!!e&&e.$$typeof===La}function Ia(e){return _t(e)&&e.type===pe}function Da(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Ua(e){return _t(e)?Qs.apply(null,arguments):e}function Fa(e){return!!e.__k&&(Mt(null,e),!0)}function qa(e){return e&&(e.base||e.nodeType===1&&e)||null}var ja=function(e,t){return e(t)},Ha=function(e,t){return e(t)},Ba=pe,za=_t,ne={useState:Te,useId:cn,useReducer:dr,useEffect:Je,useLayoutEffect:Le,useInsertionEffect:mn,useTransition:pn,useDeferredValue:hn,useSyncExternalStore:hr,startTransition:fn,useRef:Be,useImperativeHandle:un,useMemo:Ee,useCallback:qe,useContext:se,useDebugValue:fr,version:"18.3.1",Children:yn,render:Oa,hydrate:Ma,unmountComponentAtNode:Fa,createPortal:xa,createElement:Z,createContext:xe,createFactory:Na,cloneElement:Ua,createRef:ha,Fragment:pe,isValidElement:_t,isElement:za,isFragment:Ia,isMemo:Da,findDOMNode:qa,Component:he,PureComponent:tr,memo:_n,forwardRef:Aa,flushSync:Ha,unstable_batchedUpdates:ja,StrictMode:Ba,Suspense:Tt,SuspenseList:at,lazy:Ta,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ka};const $a=Object.freeze(Object.defineProperty({__proto__:null,Children:yn,Component:he,Fragment:pe,PureComponent:tr,StrictMode:Ba,Suspense:Tt,SuspenseList:at,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ka,cloneElement:Ua,createContext:xe,createElement:Z,createFactory:Na,createPortal:xa,createRef:ha,default:ne,findDOMNode:qa,flushSync:Ha,forwardRef:Aa,hydrate:Ma,isElement:za,isFragment:Ia,isMemo:Da,isValidElement:_t,lazy:Ta,memo:_n,render:Oa,startTransition:fn,unmountComponentAtNode:Fa,unstable_batchedUpdates:ja,useCallback:qe,useContext:se,useDebugValue:fr,useDeferredValue:hn,useEffect:Je,useErrorBoundary:Xs,useId:cn,useImperativeHandle:un,useInsertionEffect:mn,useLayoutEffect:Le,useMemo:Ee,useReducer:dr,useRef:Be,useState:Te,useSyncExternalStore:hr,useTransition:pn,version:ml},Symbol.toStringTag,{value:"Module"})),_l=/<([a-zA-Z0-9]+)>([\s\S]*?)<\/\1>|<([a-zA-Z0-9]+)\/>/,yl={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0};function Ka(e,t={}){const r=gl(0,"$lingui$"),n=e.split(_l);if(n.length===1)return e;const o=[],a=n.shift();a&&o.push(a);for(const[i,s,l]of Ga(n)){let u=typeof i<"u"?t[i]:void 0;(!u||yl[u.type]&&s)&&(console.error(u?`${u.type} is a void element tag therefore it must have no children`:`Can't use element at index '${i}' as it is not declared in the original translation`),u=ne.createElement(ne.Fragment)),Array.isArray(u)&&(u=ne.createElement(ne.Fragment,{},u)),o.push(ne.cloneElement(u,{key:r()},s?Ka(s,t):u.props.children)),l&&o.push(l)}return o.length===1?o[0]:o}function Ga(e){if(!e.length)return[];const[t,r,n,o]=e.slice(0,4);return[[t||n,r||"",o]].concat(Ga(e.slice(4,e.length)))}const gl=(e=0,t="")=>()=>`${t}_${e++}`;function vl(e){const{render:t,component:r,id:n,message:o,formats:a,lingui:{i18n:i,defaultComponent:s}}=e,l={...e.values},u={...e.components};l&&Object.keys(l).forEach(m=>{const g=Object.keys(u).length;typeof l[m]=="string"||typeof l[m]=="number"||(u[g]=ne.createElement(ne.Fragment,null,l[m]),l[m]=`<${g}/>`)});const f=i&&typeof i._=="function"?i._(n,l,{message:o,formats:a}):n,c=f?Ka(f,u):null;if(t===null||r===null)return c;const h=s||wl,d={id:n,message:o,translation:c,children:c};if(t&&r)console.error("You can't use both `component` and `render` prop at the same time. `component` is ignored.");else if(t&&typeof t!="function")console.error(`Invalid value supplied to prop \`render\`. It must be a function, provided ${t}`);else if(r&&typeof r!="function")return console.error(`Invalid value supplied to prop \`component\`. It must be a React component, provided ${r}`),ne.createElement(h,d,c);if(typeof t=="function")return t(d);const _=r||h;return ne.createElement(_,d,c)}const wl=({children:e})=>ne.createElement(ne.Fragment,null,e),Wa=ne.createContext(null),Va=e=>ne.useContext(Wa);function qf(){return Va()}function jf({i18n:e,defaultComponent:t,children:r}){const n=ne.useRef(e.locale),o=ne.useCallback(()=>({i18n:e,defaultComponent:t,_:e.t.bind(e)}),[e,t]),[a,i]=ne.useState(o());return ne.useEffect(()=>{const s=()=>{n.current=e.locale,i(o())},l=e.on("change",s);return n.current!==e.locale&&s(),l},[e,o]),n.current?ne.createElement(Wa.Provider,{value:a},r):null}function Hf(e){const r=Va(void 0);return ne.createElement(vl,{...e,lingui:r})}/**
* @remix-run/router v1.2.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function rr(){return rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rr.apply(this,arguments)}var Ue;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ue||(Ue={}));const fo="popstate";function bl(e){e===void 0&&(e={});function t(o,a){let{pathname:i="/",search:s="",hash:l=""}=Qe(o.location.hash.substr(1));return jr("",{pathname:i,search:s,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(o,a){let i=o.document.querySelector("base"),s="";if(i&&i.getAttribute("href")){let l=o.location.href,u=l.indexOf("#");s=u===-1?l:l.slice(0,u)}return s+"#"+(typeof a=="string"?a:vn(a))}function n(o,a){El(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return Cl(t,r,n,e)}function ie(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function El(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Sl(){return Math.random().toString(36).substr(2,8)}function ho(e){return{usr:e.state,key:e.key}}function jr(e,t,r,n){return r===void 0&&(r=null),rr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Qe(t):t,{state:r,key:t&&t.key||n||Sl()})}function vn(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Qe(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Al(e){let t=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:window.location.href,r=typeof e=="string"?e:vn(e);return ie(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}function Cl(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:a=!1}=n,i=o.history,s=Ue.Pop,l=null;function u(){s=Ue.Pop,l&&l({action:s,location:h.location})}function f(d,_){s=Ue.Push;let m=jr(h.location,d,_);r&&r(m,d);let g=ho(m),v=h.createHref(m);try{i.pushState(g,"",v)}catch{o.location.assign(v)}a&&l&&l({action:s,location:h.location})}function c(d,_){s=Ue.Replace;let m=jr(h.location,d,_);r&&r(m,d);let g=ho(m),v=h.createHref(m);i.replaceState(g,"",v),a&&l&&l({action:s,location:h.location})}let h={get action(){return s},get location(){return e(o,i)},listen(d){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(fo,u),l=d,()=>{o.removeEventListener(fo,u),l=null}},createHref(d){return t(o,d)},encodeLocation(d){let _=Al(typeof d=="string"?d:vn(d));return{pathname:_.pathname,search:_.search,hash:_.hash}},push:f,replace:c,go(d){return i.go(d)}};return h}var po;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(po||(po={}));function Pl(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?Qe(t):t,o=Ja(n.pathname||"/",r);if(o==null)return null;let a=Ya(e);Rl(a);let i=null;for(let s=0;i==null&&s<a.length;++s)i=Dl(a[s],Fl(o));return i}function Ya(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let o=(a,i,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};l.relativePath.startsWith("/")&&(ie(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=We([n,l.relativePath]),f=r.concat(l);a.children&&a.children.length>0&&(ie(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Ya(a.children,t,f,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:Nl(u,a.index),routesMeta:f})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let l of Za(a.path))o(a,i,l)}),t}function Za(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return o?[a,""]:[a];let i=Za(n.join("/")),s=[];return s.push(...i.map(l=>l===""?a:[a,l].join("/"))),o&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Rl(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Il(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Tl=/^:\w+$/,xl=3,Ll=2,Ol=1,Ml=10,kl=-2,mo=e=>e==="*";function Nl(e,t){let r=e.split("/"),n=r.length;return r.some(mo)&&(n+=kl),t&&(n+=Ll),r.filter(o=>!mo(o)).reduce((o,a)=>o+(Tl.test(a)?xl:a===""?Ol:Ml),n)}function Il(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function Dl(e,t){let{routesMeta:r}=e,n={},o="/",a=[];for(let i=0;i<r.length;++i){let s=r[i],l=i===r.length-1,u=o==="/"?t:t.slice(o.length)||"/",f=Hr({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u);if(!f)return null;Object.assign(n,f.params);let c=s.route;a.push({params:n,pathname:We([o,f.pathname]),pathnameBase:$l(We([o,f.pathnameBase])),route:c}),f.pathnameBase!=="/"&&(o=We([o,f.pathnameBase]))}return a}function Hr(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Ul(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce((u,f,c)=>{if(f==="*"){let h=s[c]||"";i=a.slice(0,a.length-h.length).replace(/(.)\/+$/,"$1")}return u[f]=ql(s[c]||"",f),u},{}),pathname:a,pathnameBase:i,pattern:e}}function Ul(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),wn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(i,s)=>(n.push(s),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function Fl(e){try{return decodeURI(e)}catch(t){return wn(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ql(e,t){try{return decodeURIComponent(e)}catch(r){return wn(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function Ja(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function wn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function jl(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?Qe(e):e;return{pathname:r?r.startsWith("/")?r:Hl(r,t):t,search:Kl(n),hash:Gl(o)}}function Hl(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function Er(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Bl(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function zl(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=Qe(e):(o=rr({},e),ie(!o.pathname||!o.pathname.includes("?"),Er("?","pathname","search",o)),ie(!o.pathname||!o.pathname.includes("#"),Er("#","pathname","hash",o)),ie(!o.search||!o.search.includes("#"),Er("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(n||i==null)s=r;else{let c=t.length-1;if(i.startsWith("..")){let h=i.split("/");for(;h[0]==="..";)h.shift(),c-=1;o.pathname=h.join("/")}s=c>=0?t[c]:"/"}let l=jl(o,s),u=i&&i!=="/"&&i.endsWith("/"),f=(a||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const We=e=>e.join("/").replace(/\/\/+/g,"/"),$l=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Kl=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Gl=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Wl{constructor(t,r,n,o){o===void 0&&(o=!1),this.status=t,this.statusText=r||"",this.internal=o,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Vl(e){return e instanceof Wl}const Qa=["post","put","patch","delete"],Bf=new Set(Qa),Yl=["get",...Qa],zf=new Set(Yl);const $f=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";/**
* React Router v6.6.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Br(){return Br=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Br.apply(this,arguments)}const{useState:Kf,useEffect:Gf,useLayoutEffect:Wf,useDebugValue:Vf}=$a;const Yf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";const Zf=(e=>e.useSyncExternalStore)($a),Xa=xe(null),ei=xe(null);const bn=xe(null),pr=xe(null),yt=xe({outlet:null,matches:[]}),ti=xe(null);function mr(){return se(pr)!=null}function En(){return mr()||ie(!1),se(pr).location}function Zl(){mr()||ie(!1);let{basename:e,navigator:t}=se(bn),{matches:r}=se(yt),{pathname:n}=En(),o=JSON.stringify(Bl(r).map(s=>s.pathnameBase)),a=Be(!1);return Je(()=>{a.current=!0}),qe(function(s,l){if(l===void 0&&(l={}),!a.current)return;if(typeof s=="number"){t.go(s);return}let u=zl(s,JSON.parse(o),n,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:We([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,o,n])}function Jf(){let{matches:e}=se(yt),t=e[e.length-1];return t?t.params:{}}function Jl(e,t){mr()||ie(!1);let{navigator:r}=se(bn),n=se(ei),{matches:o}=se(yt),a=o[o.length-1],i=a?a.params:{},s=a?a.pathname:"/",l=a?a.pathnameBase:"/",u=a&&a.route,f=En(),c;if(t){var h;let v=typeof t=="string"?Qe(t):t;l==="/"||(h=v.pathname)!=null&&h.startsWith(l)||ie(!1),c=v}else c=f;let d=c.pathname||"/",_=l==="/"?d:d.slice(l.length)||"/",m=Pl(e,{pathname:_}),g=tu(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},i,v.params),pathname:We([l,r.encodeLocation?r.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:We([l,r.encodeLocation?r.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,n||void 0);return t&&g?Z(pr.Provider,{value:{location:Br({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Ue.Pop}},g):g}function Ql(){let e=au(),t=Vl(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n};return Z(pe,null,Z("h2",null,"Unhandled Thrown Error!"),Z("h3",{style:{fontStyle:"italic"}},t),r?Z("pre",{style:o},r):null,Z("p",null,"💿 Hey developer 👋"),Z("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",Z("code",{style:a},"errorElement")," props on ",Z("code",{style:a},"<Route>")))}class Xl extends he{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location?{error:t.error,location:t.location}:{error:t.error||r.error,location:r.location}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?Z(yt.Provider,{value:this.props.routeContext},Z(ti.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function eu(e){let{routeContext:t,match:r,children:n}=e,o=se(Xa);return o&&o.static&&o.staticContext&&r.route.errorElement&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),Z(yt.Provider,{value:t},n)}function tu(e,t,r){if(t===void 0&&(t=[]),e==null)if(r!=null&&r.errors)e=r.matches;else return null;let n=e,o=r?.errors;if(o!=null){let a=n.findIndex(i=>i.route.id&&o?.[i.route.id]);a>=0||ie(!1),n=n.slice(0,Math.min(n.length,a+1))}return n.reduceRight((a,i,s)=>{let l=i.route.id?o?.[i.route.id]:null,u=r?i.route.errorElement||Z(Ql,null):null,f=t.concat(n.slice(0,s+1)),c=()=>Z(eu,{match:i,routeContext:{outlet:a,matches:f}},l?u:i.route.element!==void 0?i.route.element:a);return r&&(i.route.errorElement||s===0)?Z(Xl,{location:r.location,component:u,error:l,children:c(),routeContext:{outlet:null,matches:f}}):c()},null)}var _o;(function(e){e.UseRevalidator="useRevalidator"})(_o||(_o={}));var nr;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(nr||(nr={}));function ru(e){let t=se(ei);return t||ie(!1),t}function nu(e){let t=se(yt);return t||ie(!1),t}function ou(e){let t=nu(e),r=t.matches[t.matches.length-1];return r.route.id||ie(!1),r.route.id}function au(){var e;let t=se(ti),r=ru(nr.UseRouteError),n=ou(nr.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function iu(e){ie(!1)}function su(e){let{basename:t="/",children:r=null,location:n,navigationType:o=Ue.Pop,navigator:a,static:i=!1}=e;mr()&&ie(!1);let s=t.replace(/^\/*/,"/"),l=Ee(()=>({basename:s,navigator:a,static:i}),[s,a,i]);typeof n=="string"&&(n=Qe(n));let{pathname:u="/",search:f="",hash:c="",state:h=null,key:d="default"}=n,_=Ee(()=>{let m=Ja(u,s);return m==null?null:{pathname:m,search:f,hash:c,state:h,key:d}},[s,u,f,c,h,d]);return _==null?null:Z(bn.Provider,{value:l},Z(pr.Provider,{children:r,value:{location:_,navigationType:o}}))}function Qf(e){let{children:t,location:r}=e,n=se(Xa),o=n&&!t?n.router.routes:zr(t);return Jl(o,r)}var yo;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(yo||(yo={}));const Xf=new Promise(()=>{});function zr(e,t){t===void 0&&(t=[]);let r=[];return yn.forEach(e,(n,o)=>{if(!_t(n))return;if(n.type===pe){r.push.apply(r,zr(n.props.children,t));return}n.type!==iu&&ie(!1),!n.props.index||!n.props.children||ie(!1);let a=[...t,o],i={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,hasErrorBoundary:n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle};n.props.children&&(i.children=zr(n.props.children,a)),r.push(i)}),r}/**
* React Router DOM v6.6.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function $r(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(o=>[r,o]):[[r,n]])},[]))}function lu(e,t){let r=$r(e);for(let n of t.keys())r.has(n)||t.getAll(n).forEach(o=>{r.append(n,o)});return r}function eh(e){let{basename:t,children:r,window:n}=e,o=Be();o.current==null&&(o.current=bl({window:n,v5Compat:!0}));let a=o.current,[i,s]=Te({action:a.action,location:a.location});return Le(()=>a.listen(s),[a]),Z(su,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:a})}var go;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(go||(go={}));var vo;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(vo||(vo={}));function th(e){let t=Be($r(e)),r=En(),n=Ee(()=>lu(r.search,t.current),[r.search]),o=Zl(),a=qe((i,s)=>{const l=$r(typeof i=="function"?i(n):i);o("?"+l,s)},[o,n]);return[n,a]}const uu="modulepreload",cu=function(e,t){return new URL(e,t).href},wo={},z=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){let u=function(f){return Promise.all(f.map(c=>Promise.resolve(c).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};const i=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=s?.nonce||s?.getAttribute("nonce");o=u(r.map(f=>{if(f=cu(f,n),f in wo)return;wo[f]=!0;const c=f.endsWith(".css"),h=c?'[rel="stylesheet"]':"";if(n)for(let _=i.length-1;_>=0;_--){const m=i[_];if(m.href===f&&(!c||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${h}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":uu,c||(d.as="script"),d.crossOrigin="",d.href=f,l&&d.setAttribute("nonce",l),document.head.appendChild(d),c)return new Promise((_,m)=>{d.addEventListener("load",_),d.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${f}`)))})}))}function a(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return o.then(i=>{for(const s of i||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})},du=Symbol(),Sn=Symbol(),St="a",ri="f",bo="p",ni="c",oi="t",An="h",xt="w",Cn="o",Pn="k";let fu=(e,t)=>new Proxy(e,t);const Kr=Object.getPrototypeOf,Gr=new WeakMap,ai=e=>e&&(Gr.has(e)?Gr.get(e):Kr(e)===Object.prototype||Kr(e)===Array.prototype),or=e=>typeof e=="object"&&e!==null,hu=e=>Object.values(Object.getOwnPropertyDescriptors(e)).some(t=>!t.configurable&&!t.writable),pu=e=>{if(Array.isArray(e))return Array.from(e);const t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(r=>{r.configurable=!0}),Object.create(Kr(e),t)},mu=(e,t)=>{const r={[ri]:t};let n=!1;const o=(s,l)=>{if(!n){let u=r[St].get(e);if(u||(u={},r[St].set(e,u)),s===xt)u[xt]=!0;else{let f=u[s];f||(f=new Set,u[s]=f),f.add(l)}}},a=()=>{n=!0,r[St].delete(e)},i={get(s,l){return l===Sn?e:(o(Pn,l),ii(Reflect.get(s,l),r[St],r[ni],r[oi]))},has(s,l){return l===du?(a(),!0):(o(An,l),Reflect.has(s,l))},getOwnPropertyDescriptor(s,l){return o(Cn,l),Reflect.getOwnPropertyDescriptor(s,l)},ownKeys(s){return o(xt),Reflect.ownKeys(s)}};return t&&(i.set=i.deleteProperty=()=>!1),[i,r]},Rn=e=>e[Sn]||e,ii=(e,t,r,n)=>{if(!ai(e))return e;let o=n&&n.get(e);if(!o){const l=Rn(e);hu(l)?o=[l,pu(l)]:o=[l],n?.set(e,o)}const[a,i]=o;let s=r&&r.get(a);return(!s||s[1][ri]!==!!i)&&(s=mu(a,!!i),s[1][bo]=fu(i||a,s[0]),r&&r.set(a,s)),s[1][St]=t,s[1][ni]=r,s[1][oi]=n,s[1][bo]},_u=(e,t)=>{const r=Reflect.ownKeys(e),n=Reflect.ownKeys(t);return r.length!==n.length||r.some((o,a)=>o!==n[a])},si=(e,t,r,n,o=Object.is)=>{if(o(e,t))return!1;if(!or(e)||!or(t))return!0;const a=r.get(Rn(e));if(!a)return!0;if(n){if(n.get(e)===t)return!1;n.set(e,t)}let i=null;for(const s of a[An]||[])if(i=Reflect.has(e,s)!==Reflect.has(t,s),i)return i;if(a[xt]===!0){if(i=_u(e,t),i)return i}else for(const s of a[Cn]||[]){const l=!!Reflect.getOwnPropertyDescriptor(e,s),u=!!Reflect.getOwnPropertyDescriptor(t,s);if(i=l!==u,i)return i}for(const s of a[Pn]||[])if(i=si(e[s],t[s],r,n,o),i)return i;if(i===null)throw new Error("invalid used");return i};const yu=e=>ai(e)&&e[Sn]||null,Eo=(e,t=!0)=>{Gr.set(e,t)},gu=(e,t,r)=>{const n=[],o=new WeakSet,a=(i,s)=>{var l,u,f;if(o.has(i))return;or(i)&&o.add(i);const c=or(i)&&t.get(Rn(i));if(c){if((l=c[An])===null||l===void 0||l.forEach(h=>{const d=`:has(${String(h)})`;n.push(s?[...s,d]:[d])}),c[xt]===!0){const h=":ownKeys";n.push(s?[...s,h]:[h])}else(u=c[Cn])===null||u===void 0||u.forEach(h=>{const d=`:hasOwn(${String(h)})`;n.push(s?[...s,d]:[d])});(f=c[Pn])===null||f===void 0||f.forEach(h=>{(!r||"value"in(Object.getOwnPropertyDescriptor(i,h)||{}))&&a(i[h],s?[...s,h]:[h])})}else s&&n.push(s)};return a(e),n};const ar={BASE_URL:"./",DEV:!1,MODE:"production",PHANPY_CLIENT_NAME:"Phanpy",PHANPY_LINGVA_INSTANCES:"lingva.phanpy.social lingva.lunar.icu lingva.garudalinux.org translate.plausibility.cloud",PHANPY_PRIVACY_POLICY_URL:"https://github.com/cheeaun/phanpy/blob/main/PRIVACY.MD",PHANPY_TRANSLANG_INSTANCES:"translang.phanpy.social",PHANPY_WEBSITE:"https://phanpy.social",PROD:!0,SSR:!1,VITE_APP_ENV:"production"},Tn=e=>typeof e=="object"&&e!==null,vu=e=>Tn(e)&&!_r.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)&&!(e instanceof Promise),li=(e,t)=>{const r=Wr.get(e);if(r?.[0]===t)return r[1];const n=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return Eo(n,!0),Wr.set(e,[t,n]),Reflect.ownKeys(e).forEach(o=>{if(Object.getOwnPropertyDescriptor(n,o))return;const a=Reflect.get(e,o),{enumerable:i}=Reflect.getOwnPropertyDescriptor(e,o),s={value:a,enumerable:i,configurable:!0};if(_r.has(a))Eo(a,!1);else if(je.has(a)){const[l,u]=je.get(a);s.value=li(l,u())}Object.defineProperty(n,o,s)}),Object.preventExtensions(n)},wu=(e,t,r,n)=>({deleteProperty(o,a){const i=Reflect.get(o,a);r(a);const s=Reflect.deleteProperty(o,a);return s&&n(["delete",[a],i]),s},set(o,a,i,s){const l=!e()&&Reflect.has(o,a),u=Reflect.get(o,a,s);if(l&&(So(u,i)||kt.has(i)&&So(u,kt.get(i))))return!0;r(a),Tn(i)&&(i=yu(i)||i);const f=!je.has(i)&&Eu(i)?ui(i):i;return t(a,f),Reflect.set(o,a,f,s),n(["set",[a],i,u]),!0}}),je=new WeakMap,_r=new WeakSet,Wr=new WeakMap,Vt=[1],kt=new WeakMap;let So=Object.is,bu=(e,t)=>new Proxy(e,t),Eu=vu,Su=li,Au=wu;function ui(e={}){if(!Tn(e))throw new Error("object required");const t=kt.get(e);if(t)return t;let r=Vt[0];const n=new Set,o=(g,v=++Vt[0])=>{r!==v&&(a=r=v,n.forEach(A=>A(g,v)))};let a=r;const i=(g=Vt[0])=>(a!==g&&(a=g,l.forEach(([v])=>{const A=v[1](g);A>r&&(r=A)})),r),s=g=>(v,A)=>{const O=[...v];O[1]=[g,...O[1]],o(O,A)},l=new Map,u=(g,v)=>{const A=!_r.has(v)&&je.get(v);if(A){if((ar?"production":void 0)!=="production"&&l.has(g))throw new Error("prop listener already exists");if(n.size){const O=A[2](s(g));l.set(g,[A,O])}else l.set(g,[A])}},f=g=>{var v;const A=l.get(g);A&&(l.delete(g),(v=A[1])==null||v.call(A))},c=g=>(n.add(g),n.size===1&&l.forEach(([A,O],D)=>{if((ar?"production":void 0)!=="production"&&O)throw new Error("remove already exists");const V=A[2](s(D));l.set(D,[A,V])}),()=>{n.delete(g),n.size===0&&l.forEach(([A,O],D)=>{O&&(O(),l.set(D,[A]))})});let h=!0;const d=Au(()=>h,u,f,o),_=bu(e,d);kt.set(e,_);const m=[e,i,c];return je.set(_,m),Reflect.ownKeys(e).forEach(g=>{const v=Object.getOwnPropertyDescriptor(e,g);"value"in v&&v.writable&&(_[g]=e[g])}),h=!1,_}function xn(e,t,r){const n=je.get(e);(ar?"production":void 0)!=="production"&&!n&&console.warn("Please use proxy object");let o;const a=[],i=n[2];let s=!1;const u=i(f=>{if(a.push(f),r){t(a.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,s&&t(a.splice(0))}))});return s=!0,()=>{s=!1,u()}}function Vr(e){const t=je.get(e);(ar?"production":void 0)!=="production"&&!t&&console.warn("Please use proxy object");const[r,n]=t;return Su(r,n())}function ci(){return{proxyStateMap:je,refSet:_r,snapCache:Wr,versionHolder:Vt,proxyCache:kt}}const Cu={BASE_URL:"./",DEV:!1,MODE:"production",PHANPY_CLIENT_NAME:"Phanpy",PHANPY_LINGVA_INSTANCES:"lingva.phanpy.social lingva.lunar.icu lingva.garudalinux.org translate.plausibility.cloud",PHANPY_PRIVACY_POLICY_URL:"https://github.com/cheeaun/phanpy/blob/main/PRIVACY.MD",PHANPY_TRANSLANG_INSTANCES:"translang.phanpy.social",PHANPY_WEBSITE:"https://phanpy.social",PROD:!0,SSR:!1,VITE_APP_ENV:"production"},Pu=(e,t)=>{const r=Be(void 0);Je(()=>{r.current=gu(e,t,!0)}),fr(r.current)},Ru=Pu,Tu=new WeakMap;function rh(e,t){const r=t?.sync,n=Ee(()=>e&&new WeakMap,[e]),o=Be(void 0);let a=!0;const i=hr(qe(l=>{const u=xn(e,l,r);return l(),u},[e,r]),()=>{const l=Vr(e);try{if(!a&&o.current&&!si(o.current,l,n,new WeakMap))return o.current}catch{}return l},()=>Vr(e));a=!1,Le(()=>{o.current=i}),(Cu?"production":void 0)!=="production"&&Ru(i,n);const s=Ee(()=>new WeakMap,[]);return ii(i,n,s,Tu)}var xu=0,nh=Array.isArray;function be(e,t,r,n,o,a){t||(t={});var i,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?i=t[s]:l[s]=t[s];var u={type:e,props:l,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--xu,__i:-1,__u:0,__source:o,__self:a};if(typeof e=="function"&&(i=e.defaultProps))for(s in i)l[s]===void 0&&(l[s]=i[s]);return j.vnode&&j.vnode(u),u}const di=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,ir=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(di);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},Ao=e=>e==="*"||e==="x"||e==="X",Co=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Lu=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],Ou=(e,t)=>{if(Ao(e)||Ao(t))return 0;const[r,n]=Lu(Co(e),Co(t));return r>n?1:r<n?-1:0},it=(e,t)=>{for(let r=0;r<Math.max(e.length,t.length);r++){const n=Ou(e[r]||"0",t[r]||"0");if(n!==0)return n}return 0},fi=(e,t)=>{const r=ir(e),n=ir(t),o=r.pop(),a=n.pop(),i=it(r,n);return i!==0?i:o&&a?it(o.split("."),a.split(".")):o||a?o?-1:1:0},Mu=(e,t,r)=>{ku(r);const n=fi(e,t);return hi[r].includes(n)},hi={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},Po=Object.keys(hi),ku=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(Po.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${Po.join("|")}`)},Yt=(e,t)=>{if(t=t.replace(/([><=]+)\s+/g,"$1"),t.includes("||"))return t.split("||").some(g=>Yt(e,g));if(t.includes(" - ")){const[g,v]=t.split(" - ",2);return Yt(e,`>=${g} <=${v}`)}else if(t.includes(" "))return t.trim().replace(/\s{2,}/g," ").split(" ").every(g=>Yt(e,g));const r=t.match(/^([<>=~^]+)/),n=r?r[1]:"=";if(n!=="^"&&n!=="~")return Mu(e,t,n);const[o,a,i,,s]=ir(e),[l,u,f,,c]=ir(t),h=[o,a,i],d=[l,u??"x",f??"x"];if(c&&(!s||it(h,d)!==0||it(s.split("."),c.split("."))===-1))return!1;const _=d.findIndex(g=>g!=="0")+1,m=n==="~"?2:_>1?_:1;return!(it(h.slice(0,m),d.slice(0,m))!==0||it(h.slice(m),d.slice(m))===-1)},Nu=e=>typeof e=="string"&&/^[v\d]/.test(e)&&di.test(e);function Iu(e,t){var r=Object.setPrototypeOf;r?r(e,t):e.__proto__=t}function Du(e,t){t===void 0&&(t=e.constructor);var r=Error.captureStackTrace;r&&r(e,t)}var Uu=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(o[i]=a[i])},e(r,n)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),gt=function(e){Uu(t,e);function t(r,n){var o=this.constructor,a=e.call(this,r,n)||this;return Object.defineProperty(a,"name",{value:o.name,enumerable:!1,configurable:!0}),Iu(a,o.prototype),Du(a),a}return t}(Error);class Ye extends gt{}class Ro extends gt{contentType;data;constructor(t,r,n,o){super(t,o),this.contentType=r,this.data=n}}class pi extends gt{statusCode;description;details;additionalProperties;constructor(t,r){super(t.message,r),this.statusCode=t.statusCode,this.message=t.message,this.description=t.description,this.additionalProperties=t.additionalProperties,this.details=t.details}}class mi extends gt{}class Sr extends gt{constructor(t,r){super(t,r),this.message=t}}var Yr=function(e,t){return Yr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Yr(e,t)};function _i(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Yr(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var He=function(){return He=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},He.apply(this,arguments)};function yi(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function gi(e,t,r,n){var o=arguments.length,a=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function vi(e,t){return function(r,n){t(r,n,e)}}function wi(e,t,r,n,o,a){function i(v){if(v!==void 0&&typeof v!="function")throw new TypeError("Function expected");return v}for(var s=n.kind,l=s==="getter"?"get":s==="setter"?"set":"value",u=!t&&e?n.static?e:e.prototype:null,f=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),c,h=!1,d=r.length-1;d>=0;d--){var _={};for(var m in n)_[m]=m==="access"?{}:n[m];for(var m in n.access)_.access[m]=n.access[m];_.addInitializer=function(v){if(h)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(v||null))};var g=(0,r[d])(s==="accessor"?{get:f.get,set:f.set}:f[l],_);if(s==="accessor"){if(g===void 0)continue;if(g===null||typeof g!="object")throw new TypeError("Object expected");(c=i(g.get))&&(f.get=c),(c=i(g.set))&&(f.set=c),(c=i(g.init))&&o.unshift(c)}else(c=i(g))&&(s==="field"?o.unshift(c):f[l]=c)}u&&Object.defineProperty(u,n.name,f),h=!0}function bi(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function Ei(e){return typeof e=="symbol"?e:"".concat(e)}function Si(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function Ai(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Ci(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(f){try{u(n.next(f))}catch(c){i(c)}}function l(f){try{u(n.throw(f))}catch(c){i(c)}}function u(f){f.done?a(f.value):o(f.value).then(s,l)}u((n=n.apply(e,t||[])).next())})}function Pi(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,o,a,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(u){return function(f){return l([u,f])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(r=0)),r;)try{if(n=1,o&&(a=u[0]&2?o.return:u[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,u[1])).done)return a;switch(o=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,o=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(f){u=[6,f],o=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var yr=Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]};function Ri(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&yr(t,e,r)}function sr(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ln(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,a=[],i;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(s){i={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return a}function Ti(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ln(arguments[t]));return e}function xi(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)n[o]=a[i];return n}function pt(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}function mt(e){return this instanceof mt?(this.v=e,this):new mt(e)}function Li(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,a=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",i),o[Symbol.asyncIterator]=function(){return this},o;function i(d){return function(_){return Promise.resolve(_).then(d,c)}}function s(d,_){n[d]&&(o[d]=function(m){return new Promise(function(g,v){a.push([d,m,g,v])>1||l(d,m)})},_&&(o[d]=_(o[d])))}function l(d,_){try{u(n[d](_))}catch(m){h(a[0][3],m)}}function u(d){d.value instanceof mt?Promise.resolve(d.value.v).then(f,c):h(a[0][2],d)}function f(d){l("next",d)}function c(d){l("throw",d)}function h(d,_){d(_),a.shift(),a.length&&l(a[0][0],a[0][1])}}function Oi(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,a){t[o]=e[o]?function(i){return(r=!r)?{value:mt(e[o](i)),done:!1}:a?a(i):i}:a}}function Mi(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof sr=="function"?sr(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(i){return new Promise(function(s,l){i=e[a](i),o(s,l,i.done,i.value)})}}function o(a,i,s,l){Promise.resolve(l).then(function(u){a({value:u,done:s})},i)}}function ki(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var Fu=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},Zr=function(e){return Zr=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},Zr(e)};function Ni(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=Zr(e),n=0;n<r.length;n++)r[n]!=="default"&&yr(t,e,r[n]);return Fu(t,e),t}function Ii(e){return e&&e.__esModule?e:{default:e}}function Di(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function Ui(e,t,r,n,o){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(e,r):o?o.value=r:t.set(e,r),r}function Fi(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function qi(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(a){return Promise.reject(a)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var qu=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function ji(e){function t(a){e.error=e.hasError?new qu(a,e.error,"An error was suppressed during disposal."):a,e.hasError=!0}var r,n=0;function o(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(o);if(r.dispose){var a=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(a).then(o,function(i){return t(i),o()})}else n|=1}catch(i){t(i)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()}function Hi(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,o,a,i){return n?t?".jsx":".js":o&&(!a||!i)?r:o+a+"."+i.toLowerCase()+"js"}):e}const ju={__extends:_i,__assign:He,__rest:yi,__decorate:gi,__param:vi,__esDecorate:wi,__runInitializers:bi,__propKey:Ei,__setFunctionName:Si,__metadata:Ai,__awaiter:Ci,__generator:Pi,__createBinding:yr,__exportStar:Ri,__values:sr,__read:Ln,__spread:Ti,__spreadArrays:xi,__spreadArray:pt,__await:mt,__asyncGenerator:Li,__asyncDelegator:Oi,__asyncValues:Mi,__makeTemplateObject:ki,__importStar:Ni,__importDefault:Ii,__classPrivateFieldGet:Di,__classPrivateFieldSet:Ui,__classPrivateFieldIn:Fi,__addDisposableResource:qi,__disposeResources:ji,__rewriteRelativeImportExtension:Hi},oh=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:qi,get __assign(){return He},__asyncDelegator:Oi,__asyncGenerator:Li,__asyncValues:Mi,__await:mt,__awaiter:Ci,__classPrivateFieldGet:Di,__classPrivateFieldIn:Fi,__classPrivateFieldSet:Ui,__createBinding:yr,__decorate:gi,__disposeResources:ji,__esDecorate:wi,__exportStar:Ri,__extends:_i,__generator:Pi,__importDefault:Ii,__importStar:Ni,__makeTemplateObject:ki,__metadata:Ai,__param:vi,__propKey:Ei,__read:Ln,__rest:yi,__rewriteRelativeImportExtension:Hi,__runInitializers:bi,__setFunctionName:Si,__spread:Ti,__spreadArray:pt,__spreadArrays:xi,__values:sr,default:ju},Symbol.toStringTag,{value:"Module"}));function Hu(e){return e.toLowerCase()}var Bu=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],zu=/[^A-Z0-9]+/gi;function Bi(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,n=r===void 0?Bu:r,o=t.stripRegexp,a=o===void 0?zu:o,i=t.transform,s=i===void 0?Hu:i,l=t.delimiter,u=l===void 0?" ":l,f=To(To(e,n,"$1\0$2"),a,"\0"),c=0,h=f.length;f.charAt(c)==="\0";)c++;for(;f.charAt(h-1)==="\0";)h--;return f.slice(c,h).split("\0").map(s).join(u)}function To(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(n,o){return n.replace(o,r)},e)}function zi(e,t){var r=e.charAt(0),n=e.substr(1).toLowerCase();return t>0&&r>="0"&&r<="9"?"_"+r+n:""+r.toUpperCase()+n}function $u(e,t){return t===void 0&&(t={}),Bi(e,He({delimiter:"",transform:zi},t))}function Ku(e,t){return t===0?e.toLowerCase():zi(e,t)}function Gu(e,t){return t===void 0&&(t={}),$u(e,He({transform:Ku},t))}function Wu(e,t){return t===void 0&&(t={}),Bi(e,He({delimiter:"."},t))}function On(e,t){return t===void 0&&(t={}),Wu(e,He({delimiter:"_"},t))}const $i=e=>new Promise(t=>setTimeout(()=>t(),e)),Mn=e=>typeof e=="object"&&e!==null&&e.constructor.name==="Object";function Vu(){}class Yu extends gt{constructor(t,r){super(`Maximum number of attempts reached: ${t}`,r)}}class Zu{props;attempts=0;constructor(t={}){this.props=t}async sleep(){if(this.attempts>=this.maxAttempts)throw new Yu(this.attempts);await $i(this.timeout),this.attempts++}clear(){this.attempts=0}get factor(){return this.props.factor??1e3}get base(){return this.props.base??2}get maxAttempts(){return this.props.maxAttempts??Number.POSITIVE_INFINITY}get timeout(){return this.factor*this.base**this.attempts}}const Ju=()=>{let e,t;return{promise:new Promise((n,o)=>{e=n,t=o}),resolve:e,reject:t}},Qu=e=>{const t=new Map;for(const r of e.split(",")){const n=r.match(/<([^>]+)>;\s*rel="([^"]+)"/);n&&t.set(n[2],n[1])}return t};function Ki(e){return["fetch","create","update","remove","list"].includes(e)}function Xu(e){if(Ki(e))return e;switch(e){case"lookup":case"verify_credentials":return"fetch";case"update_credentials":return"update";default:return"create"}}function ec(e,t){return e==="create"&&t==="/api/v1/accounts"||e==="update"&&t==="/api/v1/accounts/update_credentials"||e==="create"&&t==="/api/v1/email"||e==="create"&&t==="/api/v1/featured_tag"||e==="create"&&t==="/api/v1/media"||e==="create"&&t==="/api/v2/media"?"multipart-form":"json"}async function tc(e,t,r){let n;const o=AbortSignal.timeout(t);for(;!n;){if(o.aborted)throw new mi(`Media processing timed out of ${t}ms`);try{await $i(1e3);const a=await r.get(`/api/v1/media/${e}`);a.url&&(n=a)}catch(a){if(a instanceof pi&&a.statusCode===404)continue;throw a}}return n}class rc{http;mediaTimeout;constructor(t,r=1e3*60){this.http=t,this.mediaTimeout=r}beforeDispatch(t){const r=Xu(t.type),n=Ki(t.type)?t.path:t.path+"/"+On(t.type),o=ec(r,n),a={...t.meta,encoding:o};return{type:r,path:n,data:t.data,meta:a}}dispatch(t){return t.type==="update"&&t.path==="/api/v1/accounts/update_credentials"?this.http.patch(t.path,t.data,t.meta):!1}afterDispatch(t,r){if(t.type==="create"&&t.path==="/api/v2/media"){const n=r;return Mn(t.data)&&t.data?.skipPolling===!0?n:tc(n.id,this.mediaTimeout,this.http)}return r}}class kn{http;path;params;meta;direction;constructor(t,r,n,o,a="next"){this.http=t,this.path=r,this.params=n,this.meta=o,this.direction=a}async*values(){let t=this.path,r=this.params;for(;t!=null;){const n=await this.http.request({method:"GET",path:t,search:r,...this.meta}),o=this.getLink(n.headers.get("link"));t=o?.pathname,r=o?.search.replace(/^\?/,""),yield await n.data}}then(t=Promise.resolve.bind(Promise),r=Promise.reject.bind(Promise)){return this.values().next().then(n=>t(n.value),r)}getDirection(){return this.direction}setDirection(t){return new kn(this.http,this.path,this.params,this.meta,t)}[Symbol.asyncIterator](){return this.values()}getLink(t){if(!t)return;const r=Qu(t).get(this.direction);if(r)return new URL(r)}}class nc{http;hook;constructor(t,r){this.http=t,this.hook=r}dispatch(t){this.hook&&(t=this.hook.beforeDispatch(t));let r=this.hook.dispatch(t);if(r!==!1)return r;switch(t.type){case"fetch":{r=this.http.get(t.path,t.data,t.meta);break}case"create":{r=this.http.post(t.path,t.data,t.meta);break}case"update":{r=this.http.put(t.path,t.data,t.meta);break}case"remove":{r=this.http.delete(t.path,t.data,t.meta);break}case"list":{r=new kn(this.http,t.path,t.data);break}}return r instanceof Promise?r.then(n=>this.hook?.afterDispatch(t,n)):this.hook.afterDispatch(t,r)}}var ot=null;typeof WebSocket<"u"?ot=WebSocket:typeof MozWebSocket<"u"?ot=MozWebSocket:typeof global<"u"?ot=global.WebSocket||global.MozWebSocket:typeof window<"u"?ot=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(ot=self.WebSocket||self.MozWebSocket);const Nn=ot;function oc(e){return e.readyState===Nn.OPEN?Promise.resolve():new Promise((t,r)=>{const n=i=>{r(i)},o=()=>{r(new Error("WebSocket closed"))},a=()=>{t()};e.addEventListener("error",n,{once:!0}),e.addEventListener("close",o,{once:!0}),e.addEventListener("open",a,{once:!0})})}function ac(e){return e.readyState===Nn.CLOSED?Promise.resolve():new Promise(t=>{const r=()=>{t()};e.addEventListener("error",r,{once:!0}),e.addEventListener("close",r,{once:!0})})}class ic{props;logger;ws;killed=!1;queue=[];backoff;constructor(t,r){this.props=t,this.logger=r,this.backoff=new Zu({maxAttempts:this.props.maxAttempts}),this.spawn()}acquire(){if(this.killed)throw new Sr("WebSocket closed");if(this.ws)return Promise.resolve(this.ws);const t=Ju();return this.queue.push(t),t.promise}async*[Symbol.asyncIterator](){for(;!this.killed;)yield await this.acquire()}kill(){this.killed=!0,this.ws?.close(),this.backoff.clear();for(const{reject:t}of this.queue)t(new Sr("WebSocket closed"));this.queue=[]}async spawn(){for(;!this.killed;){try{await this.backoff.sleep()}catch{break}try{this.logger?.log("info","Connecting to WebSocket...");{const t=this.props.implementation??Nn,r=new t(...this.props.constructorParameters);await oc(r),this.ws=r}this.logger?.log("info","Connected to WebSocket");for(const{resolve:t}of this.queue)t(this.ws);this.queue=[],await ac(this.ws),this.logger?.log("info","WebSocket closed"),this.backoff.clear()}catch(t){this.logger?.log("error","WebSocket error:",t)}this.ws=void 0}for(const{reject:t}of this.queue)t(new Sr(`Failed to connect to WebSocket after ${this.props.maxAttempts} attempts`));this.queue=[]}}function sc(){let e,t;const r=new Promise((...n)=>[e,t]=n);return Object.freeze({resolve:e,reject:t,promise:r})}function lc(e,t){const r=[],n=[],o=e((...f)=>{const c=n.shift();c?c.resolve({value:f,done:!1}):r.push(f)}),a=t?.signal;let i=!1,s=null;const l=()=>{s=new Error("Abort Error")},u=()=>{o?.(),a?.removeEventListener("abort",l)};return a?.addEventListener("abort",l,{once:!0}),{async next(){const f=r.shift();if(f)return{value:f,done:!1};if(i)return{value:void 0,done:!0};if(s)return Promise.reject(s);const c=sc();return n.push(c),c.promise},async return(){i=!0,u();for(const f of n)f.resolve({value:void 0,done:!0});return{value:void 0,done:!0}},async throw(f){return s=f,u(),{value:void 0,done:!0}},[Symbol.asyncIterator](){return this}}}async function*uc(e){const t=async o=>{if(!n.return)throw new Ye("events.return is undefined");await n.return(o)},r=async o=>{if(!n.return)throw new Ye("events.return is undefined");await n.return(o)},n=lc(o=>(e.addEventListener("message",o),e.addEventListener("error",r),e.addEventListener("close",t),()=>{e.removeEventListener("message",o),e.removeEventListener("error",r),e.removeEventListener("close",t)}));for await(const[o]of n)yield o}class cc{connector;counter;serializer;stream;logger;params;connection;constructor(t,r,n,o,a,i){this.connector=t,this.counter=r,this.serializer=n,this.stream=o,this.logger=a,this.params=i}async*values(){try{this.logger?.log("info","Subscribing to stream",this.stream);for await(this.connection of this.connector){const t=this.serializer.serialize("json",{type:"subscribe",stream:this.stream,...this.params});this.logger?.log("debug","↑ WEBSOCKET",t),this.connection.send(t),this.counter.increment(this.stream,this.params);const r=uc(this.connection);for await(const n of r){const o=this.parseMessage(n.data);this.test(o)&&(this.logger?.log("debug","↓ WEBSOCKET",o),yield o)}}}finally{this.unsubscribe()}}unsubscribe(){if(this.connection){if(this.counter.decrement(this.stream,this.params),this.counter.count(this.stream,this.params)<=0){const t=this.serializer.serialize("json",{type:"unsubscribe",stream:this.stream,...this.params});this.connection.send(t)}this.connection=void 0}}[Symbol.asyncIterator](){return this.values()}[Symbol.dispose](){this.unsubscribe()}test(t){const r=this.params??{},n=Object.values(r);return[this.stream,...n].every(a=>t.stream.includes(a))}parseMessage(t){const r=this.serializer.deserialize("json",t);if("error"in r)throw new Ye(r.error);const n=r.event==="delete"||r.payload==null?r.payload:this.serializer.deserialize("json",r.payload);return{stream:r.stream,event:r.event,payload:n}}}class dc{counts=new Map;count(t,r){const n=this.hash(t,r);return this.counts.get(n)??0}increment(t,r){const n=this.hash(t,r);this.counts.has(n)||this.counts.set(n,0),this.counts.set(n,this.counts.get(n)+1)}decrement(t,r){const n=this.hash(t,r);if(!this.counts.has(n))throw new Error("Cannot decrement non-existent count");this.counts.set(n,this.counts.get(n)-1)}hash(t,r){return JSON.stringify({stream:t,params:r})}}class fc{connector;counter;serializer;logger;constructor(t,r,n,o){this.connector=t,this.counter=r,this.serializer=n,this.logger=o}dispatch(t){if(t.type==="close")return this.connector.kill(),{};if(t.type==="prepare")return this.connector.acquire();if(t.type!=="subscribe")throw new Ye(`Unknown action type ${t.type}`);const r=t.data??{},n=t.path.replace(/^\//,"").replaceAll("/",":");return new cc(this.connector,this.counter,this.serializer,n,this.logger,{...r})}[Symbol.dispose](){this.connector.kill()}}const Nt=(e,t={})=>{const{context:r=[],applicable:n=!1}=t;let o={};const a={get:pc(e,r)};return n&&(o=Vu,a.apply=mc(e,r)),new Proxy(o,a)},hc=new Set(["then","catch","finally","inspect","toString","valueOf","toJSON","constructor","prototype","length","name","caller","callee","arguments","bind","apply","call"]),pc=(e,t)=>(r,n)=>{if(!(typeof n=="string"&&hc.has(n))){if(n===Symbol.dispose)return e[Symbol.dispose];if(typeof n!="symbol")return n.startsWith("$")?Nt(e,{context:[...t,n],applicable:!0}):Nt(e,{context:[...t,On(n)],applicable:!0})}},mc=(e,t)=>(r,n,o)=>{const a=t.pop();if(!a)throw new Error("No action specified");if(a==="$select")return Nt(e,{context:[...t,...o],applicable:!0});const i="/"+t.join("/"),[s,l]=o;return e.dispatch({type:a,path:i,data:s,meta:l})},_c=([e,...t])=>{const r=new Headers(e);for(const n of t)for(const[o,a]of new Headers(n).entries())r.set(o,a);return r};class yc{props;serializer;constructor(t,r){this.props=t,this.serializer=r}mergeRequestInitWithDefaults(t={}){const r={...this.props.requestInit};{const{headers:n,signal:o,...a}=t;Object.assign(r,a),r.headers=this.mergeHeadersWithDefaults(n),r.signal=this.mergeAbortSignalWithDefaults(o)}return r}resolvePath(t,r){const n=new URL(t,this.props.url);return typeof r=="string"?n.search=r:r&&(n.search=this.serializer.serialize("querystring",r)),n}mergeHeadersWithDefaults(t={}){const r=_c([this.props.requestInit?.headers??{},t]),n=new Headers(r);return this.props.accessToken&&n.set("Authorization",`Bearer ${this.props.accessToken}`),new Headers(n)}mergeAbortSignalWithDefaults(t){const r=[];return this.props.timeout&&r.push(AbortSignal.timeout(this.props.timeout)),this.props.requestInit?.signal&&r.push(this.props.requestInit.signal),t&&r.push(t),AbortSignal.any(r)}}class gc{props;serializer;constructor(t,r){this.props=t,this.serializer=r}getProtocols(t=[]){return this.props.useInsecureAccessToken||this.props.accessToken==null?[...t]:[this.props.accessToken,...t]}resolvePath(t,r={}){const n=new URL(t,this.props.streamingApiUrl);return this.props.useInsecureAccessToken&&(r.accessToken=this.props.accessToken),n.search=this.serializer.serialize("querystring",r),n}getMaxAttempts(){return this.props.retry===!0||this.props.retry==null?Number.POSITIVE_INFINITY:this.props.retry===!1?1:this.props.retry}}class vc{get(t,r,n={}){return this.request({method:"GET",path:t,search:r,...n}).then(o=>o.data)}post(t,r,n={}){return this.request({method:"POST",path:t,body:r,...n}).then(o=>o.data)}delete(t,r,n={}){return this.request({method:"DELETE",path:t,body:r,...n}).then(o=>o.data)}put(t,r,n={}){return this.request({method:"PUT",path:t,body:r,...n}).then(o=>o.data)}patch(t,r,n={}){return this.request({method:"PATCH",path:t,body:r,...n}).then(o=>o.data)}}const xo=e=>{const t=e.get("Content-Type")?.replace(/\s*;.*$/,"");if(typeof t=="string")switch(t){case"application/json":return"json";case"multipart/form-data":return"multipart-form";default:return}};class wc extends vc{serializer;config;logger;constructor(t,r,n){super(),this.serializer=t,this.config=r,this.logger=n}async request(t){const r=this.createRequest(t);try{this.logger?.log("info",`${r.method} ${r.url}`),this.logger?.log("debug"," body",{encoding:t.encoding,body:t.body});const n=await fetch(r);if(!n.ok)throw n;const o=await n.text(),a=xo(n.headers);if(!a)throw new Ye("The server returned data with an unknown encoding.");const i=this.serializer.deserialize(a,o);return this.logger?.log("info",`${r.method} ${r.url}`),this.logger?.log("debug"," body",o),{headers:n.headers,data:i}}catch(n){throw this.logger?.log("debug","HTTP failed",n),await this.createError(n)}}createRequest(t){const{method:r,path:n,search:o,encoding:a="json",requestInit:i={}}=t,s=this.config.resolvePath(n,o),l=this.serializer.serialize(a,t.body),u=this.config.mergeRequestInitWithDefaults(i),f=new Request(s,{method:r,body:l,...u});return typeof l=="string"&&a==="json"&&f.headers.set("Content-Type","application/json"),f}async createError(t){if(t instanceof Response){const r=xo(t.headers);if(!r)throw new Ye("The server returned data with an unknown encoding. The server may be down.");const n=this.serializer.deserialize(r,await t.text()),{error:o,errorDescription:a,details:i,...s}=n;return new pi({statusCode:t.status,message:o,description:a,details:i,additionalProperties:s},{cause:t})}return t instanceof DOMException&&t.name==="TimeoutError"?new mi("Request timed out",{cause:t}):t}}class bc{level;constructor(t){this.level=t}log(t,r,n){if(!this.level.satisfies(t))return;const o=n==null?[r]:[r,n];switch(t){case"debug":{console.debug(...o);return}case"info":{console.info(...o);return}case"warn":{console.warn(...o);return}case"error":{console.error(...o);return}}}}const ce=Object.freeze({DEBUG:1,INFO:2,WARN:4,ERROR:8});class st{level;constructor(t){this.level=t}satisfies(t){switch(t){case"debug":return!!(this.level&ce.DEBUG);case"info":return!!(this.level&ce.INFO);case"warn":return!!(this.level&ce.WARN);case"error":return!!(this.level&ce.ERROR)}}static from(t){switch(t){case"debug":return new st(ce.DEBUG|ce.INFO|ce.WARN|ce.ERROR);case"info":return new st(ce.INFO|ce.WARN|ce.ERROR);case"warn":return new st(ce.WARN|ce.ERROR);case"error":return new st(ce.ERROR)}}}const Gi=e=>{const t=st.from(e??"warn");return new bc(t)},Wi=e=>{const t=(r,n="")=>Array.isArray(r)?r.flatMap((o,a)=>t(o,n==""?a.toString():e.onArray(n,a))):Mn(r)?Object.entries(r).flatMap(([o,a])=>t(a,n===""?o:e.onObject(n,o))):[[n,r]];return t},Ec=e=>{const t=Wi({onArray:(r,n)=>`${r}[${n}]`,onObject:(r,n)=>`${r}[${n}]`});return Object.fromEntries(t(e))},Sc=e=>Wi({onArray:r=>`${r}[]`,onObject:(r,n)=>`${r}[${n}]`})(e).filter(([,r])=>r!=null).map(([r,n])=>`${r}=${encodeURIComponent(n)}`).join("&"),Jr=(e,t)=>Array.isArray(e)?e.map(r=>Jr(r,t)):Mn(e)?Object.fromEntries(Object.entries(e).map(([r,n])=>[t(r),Jr(n,t)])):e,Lo=(e,t)=>Jr(e,n=>n.includes(":")||n.startsWith("_")?n:t(n));class Vi{serialize(t,r){const n=Lo(r,On);switch(t){case"json":return JSON.stringify(n);case"multipart-form":{const o=new FormData;for(const[a,i]of Object.entries(Ec(n)))o.append(a,i);return o}case"querystring":return Sc(n);default:throw new Ye(`Unknown content type ${t} to serialize.`)}}deserialize(t,r){switch(t){case"json":try{return Lo(JSON.parse(r),Gu)}catch{throw new Ro(`Malformed JSON ${r} returned from the server.`,t,r)}default:throw new Ro(`Unknown content type ${t} returned from the server.`,t,r)}}}const Ac=e=>{const t=new Vi,r=new yc(e,t),n=Gi(e.log),o=new wc(t,r,n),a=new rc(o),i=new nc(o,a);return Nt(i,{context:["api"]})};function Cc(e){const t=new Vi,r=new gc(e,t),n=Gi(e.log),o=new ic({constructorParameters:[r.resolvePath("/api/v1/streaming"),r.getProtocols()],implementation:e.implementation,maxAttempts:r.getMaxAttempts()},n),a=new dc,i=new fc(o,a,t,n);return Nt(i)}var At={exports:{}},Ct={exports:{}},Pc=Ct.exports,Oo;function Rc(){return Oo||(Oo=1,function(e,t){(function(r,n){e.exports=n()})(Pc,function(){"use strict";var r={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},n=Array.prototype.slice;function o(c){var h=c.length;return h?h===1?[c[0]]:h===2?[c[0],c[1]]:h===3?[c[0],c[1],c[2]]:n.call(c,0):[]}function a(c){var h={};for(var d in c)r[d]||(h[d]=c[d]);return h}function i(c){return typeof c=="function"&&c.isMemoized}function s(c,h){return c===h||c!==c&&h!==h}function l(c,h){var d={};for(var _ in c)d[_]=c[_];for(var _ in h)d[_]=h[_];return d}var u=function(){function c(h){this.keys=[],this.values=[],this.options=h;var d=typeof h.isMatchingKey=="function";d?this.getKeyIndex=this._getKeyIndexFromMatchingKey:h.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey=typeof h.transformKey=="function",this.shouldCloneArguments=this.canTransformKey||d,this.shouldUpdateOnAdd=typeof h.onCacheAdd=="function",this.shouldUpdateOnChange=typeof h.onCacheChange=="function",this.shouldUpdateOnHit=typeof h.onCacheHit=="function"}return Object.defineProperty(c.prototype,"size",{get:function(){return this.keys.length},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"snapshot",{get:function(){return{keys:o(this.keys),size:this.size,values:o(this.values)}},enumerable:!1,configurable:!0}),c.prototype._getKeyIndexFromMatchingKey=function(h){var d=this.options,_=d.isMatchingKey,m=d.maxSize,g=this.keys,v=g.length;if(!v)return-1;if(_(g[0],h))return 0;if(m>1){for(var A=1;A<v;A++)if(_(g[A],h))return A}return-1},c.prototype._getKeyIndexForMany=function(h){var d=this.options.isEqual,_=this.keys,m=_.length;if(!m)return-1;if(m===1)return this._getKeyIndexForSingle(h);var g=h.length,v,A;if(g>1){for(var O=0;O<m;O++)if(v=_[O],v.length===g){for(A=0;A<g&&d(v[A],h[A]);A++);if(A===g)return O}}else for(var O=0;O<m;O++)if(v=_[O],v.length===g&&d(v[0],h[0]))return O;return-1},c.prototype._getKeyIndexForSingle=function(h){var d=this.keys;if(!d.length)return-1;var _=d[0],m=_.length;if(h.length!==m)return-1;var g=this.options.isEqual;if(m>1){for(var v=0;v<m;v++)if(!g(_[v],h[v]))return-1;return 0}return g(_[0],h[0])?0:-1},c.prototype.orderByLru=function(h,d,_){for(var m=this.keys,g=this.values,v=m.length,A=_;A--;)m[A+1]=m[A],g[A+1]=g[A];m[0]=h,g[0]=d;var O=this.options.maxSize;v===O&&_===v?(m.pop(),g.pop()):_>=O&&(m.length=g.length=O)},c.prototype.updateAsyncCache=function(h){var d=this,_=this.options,m=_.onCacheChange,g=_.onCacheHit,v=this.keys[0],A=this.values[0];this.values[0]=A.then(function(O){return d.shouldUpdateOnHit&&g(d,d.options,h),d.shouldUpdateOnChange&&m(d,d.options,h),O},function(O){var D=d.getKeyIndex(v);throw D!==-1&&(d.keys.splice(D,1),d.values.splice(D,1)),O})},c}();function f(c,h){if(h===void 0&&(h={}),i(c))return f(c.fn,l(c.options,h));if(typeof c!="function")throw new TypeError("You must pass a function to `memoize`.");var d=h.isEqual,_=d===void 0?s:d,m=h.isMatchingKey,g=h.isPromise,v=g===void 0?!1:g,A=h.maxSize,O=A===void 0?1:A,D=h.onCacheAdd,V=h.onCacheChange,K=h.onCacheHit,G=h.transformKey,te=l({isEqual:_,isMatchingKey:m,isPromise:v,maxSize:O,onCacheAdd:D,onCacheChange:V,onCacheHit:K,transformKey:G},a(h)),$=new u(te),J=$.keys,p=$.values,w=$.canTransformKey,E=$.shouldCloneArguments,S=$.shouldUpdateOnAdd,C=$.shouldUpdateOnChange,T=$.shouldUpdateOnHit,P=function(){var I=E?o(arguments):arguments;w&&(I=G(I));var U=J.length?$.getKeyIndex(I):-1;if(U!==-1)T&&K($,te,P),U&&($.orderByLru(J[U],p[U],U),C&&V($,te,P));else{var N=c.apply(this,arguments),W=E?I:o(arguments);$.orderByLru(W,N,J.length),v&&$.updateAsyncCache(P),S&&D($,te,P),C&&V($,te,P)}return p[0]};return P.cache=$,P.fn=c,P.isMemoized=!0,P.options=te,P}return f})}(Ct,Ct.exports)),Ct.exports}var Pt={exports:{}},Tc=Pt.exports,Mo;function xc(){return Mo||(Mo=1,function(e,t){(function(r,n){n(t)})(Tc,function(r){"use strict";var n=typeof WeakMap=="function",o=Object.keys;function a(p,w){return p===w||p!==p&&w!==w}function i(p){return p.constructor===Object||p.constructor==null}function s(p){return!!p&&typeof p.then=="function"}function l(p){return!!(p&&p.$$typeof)}function u(){var p=[];return{delete:function(w){for(var E=0;E<p.length;++E)if(p[E][0]===w){p.splice(E,1);return}},get:function(w){for(var E=0;E<p.length;++E)if(p[E][0]===w)return p[E][1]},set:function(w,E){for(var S=0;S<p.length;++S)if(p[S][0]===w){p[S][1]=E;return}p.push([w,E])}}}var f=function(p){return p?function(){return new WeakMap}:u}(n);function c(p){return function(E){var S=p||E;return function(T,P,I,U,N,W,X){X===void 0&&(X=f());var le=!!T&&typeof T=="object",fe=!!P&&typeof P=="object";if(le!==fe)return!1;if(!le&&!fe)return S(T,P,X);var me=X.get(T);if(me&&X.get(P))return me===P;X.set(T,P),X.set(P,T);var ue=S(T,P,X);return X.delete(T),X.delete(P),ue}}}function h(p,w,E,S){var C=p.length;if(w.length!==C)return!1;for(;C-- >0;)if(!E(p[C],w[C],C,C,p,w,S))return!1;return!0}function d(p,w,E,S){var C=p.size===w.size;if(C&&p.size){var T={},P=0;p.forEach(function(I,U){if(C){var N=!1,W=0;w.forEach(function(X,le){!N&&!T[W]&&(N=E(U,le,P,W,p,w,S)&&E(I,X,U,le,p,w,S),N&&(T[W]=!0)),W++}),P++,C=N}})}return C}var _="_owner",m=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function g(p,w,E,S){var C=o(p),T=C.length;if(o(w).length!==T)return!1;if(T)for(var P=void 0;T-- >0;){if(P=C[T],P===_){var I=l(p),U=l(w);if((I||U)&&I!==U)return!1}if(!m(w,P)||!E(p[P],w[P],P,P,p,w,S))return!1}return!0}var v=function(){return/foo/g.flags==="g"?function(w,E){return w.source===E.source&&w.flags===E.flags}:function(w,E){return w.source===E.source&&w.global===E.global&&w.ignoreCase===E.ignoreCase&&w.multiline===E.multiline&&w.unicode===E.unicode&&w.sticky===E.sticky&&w.lastIndex===E.lastIndex}}();function A(p,w,E,S){var C=p.size===w.size;if(C&&p.size){var T={};p.forEach(function(P,I){if(C){var U=!1,N=0;w.forEach(function(W,X){!U&&!T[N]&&(U=E(P,W,I,X,p,w,S),U&&(T[N]=!0)),N++}),C=U}})}return C}var O=typeof Map=="function",D=typeof Set=="function",V=Object.prototype.valueOf;function K(p){var w=typeof p=="function"?p(E):function(S,C,T,P,I,U,N){return E(S,C,N)};function E(S,C,T){if(S===C)return!0;if(S&&C&&typeof S=="object"&&typeof C=="object"){if(i(S)&&i(C))return g(S,C,w,T);var P=Array.isArray(S),I=Array.isArray(C);return P||I?P===I&&h(S,C,w,T):(P=S instanceof Date,I=C instanceof Date,P||I?P===I&&a(S.getTime(),C.getTime()):(P=S instanceof RegExp,I=C instanceof RegExp,P||I?P===I&&v(S,C):s(S)||s(C)?S===C:O&&(P=S instanceof Map,I=C instanceof Map,P||I)?P===I&&d(S,C,w,T):D&&(P=S instanceof Set,I=C instanceof Set,P||I)?P===I&&A(S,C,w,T):S.valueOf!==V||C.valueOf!==V?a(S.valueOf(),C.valueOf()):g(S,C,w,T)))}return S!==S&&C!==C}return E}var G=K(),te=K(function(){return a}),$=K(c()),J=K(c(a));r.circularDeepEqual=$,r.circularShallowEqual=J,r.createCustomEqual=K,r.deepEqual=G,r.sameValueZeroEqual=a,r.shallowEqual=te,Object.defineProperty(r,"__esModule",{value:!0})})}(Pt,Pt.exports)),Pt.exports}var Lc=At.exports,ko;function Oc(){return ko||(ko=1,function(e,t){(function(r,n){e.exports=n(Rc(),xc())})(Lc,function(r,n){"use strict";function o(){return o=Object.assign?Object.assign.bind():function(y){for(var b=1;b<arguments.length;b++){var L=arguments[b];for(var R in L)Object.prototype.hasOwnProperty.call(L,R)&&(y[R]=L[R])}return y},o.apply(this,arguments)}function a(y,b){if(y==null)return{};var L={},R=Object.keys(y),M,x;for(x=0;x<R.length;x++)M=R[x],!(b.indexOf(M)>=0)&&(L[M]=y[M]);return L}var i={isDeepEqual:!1,isPromise:!1,isReact:!1,isSerialized:!1,isShallowEqual:!1,matchesArg:void 0,matchesKey:void 0,maxAge:void 0,maxArgs:void 0,maxSize:1,onExpire:void 0,profileName:void 0,serializer:void 0,updateCacheForKey:void 0,transformArgs:void 0,updateExpire:!1};function s(){for(var y=arguments.length,b=new Array(y),L=0;L<y;L++)b[L]=arguments[L];return b.reduce(function(R,M){if(typeof R=="function")return typeof M=="function"?function(){R.apply(this,arguments),M.apply(this,arguments)}:R;if(typeof M=="function")return M})}function l(){for(var y=arguments.length,b=new Array(y),L=0;L<y;L++)b[L]=arguments[L];return b.reduce(function(R,M){if(typeof R=="function")return typeof M=="function"?function(){return R(M.apply(this,arguments))}:R;if(typeof M=="function")return M})}function u(y,b){for(var L=0;L<y.length;L++)if(y[L].key===b)return L;return-1}function f(y,b){var L=typeof b=="function"?b:function(R,M){for(var x=0;x<M.length;x++)if(!y(R[x],M[x]))return!1;return!0};return function(R,M){for(var x=0;x<R.length;x++)if(R[x].length===M.length&&L(R[x],M))return x;return-1}}function c(y,b){return!b||b===i?y:o({},y,b,{onCacheAdd:s(y.onCacheAdd,b.onCacheAdd),onCacheChange:s(y.onCacheChange,b.onCacheChange),onCacheHit:s(y.onCacheHit,b.onCacheHit),transformArgs:l(y.transformArgs,b.transformArgs)})}function h(y){return typeof y=="function"&&y.isMoized}function d(y,b,L){try{var R=L||b||"anonymous";Object.defineProperty(y,"name",{configurable:!0,enumerable:!1,value:"moized("+R+")",writable:!0})}catch{}}function _(y,b,L){var R=u(y,b);R!==-1&&(clearTimeout(y[R].timeoutId),L&&y.splice(R,1))}function m(y,b){var L=setTimeout(y,b);return typeof L.unref=="function"&&L.unref(),L}function g(y,b,L,R){var M=b.maxAge;return function x(k,B,re){var Y=k.keys[0];if(u(y,Y)===-1){var oe=function(){var ye=f(L,R),Ae=ye(k.keys,Y),tt=k.values[Ae];~Ae&&(k.keys.splice(Ae,1),k.values.splice(Ae,1),typeof b.onCacheChange=="function"&&b.onCacheChange(k,B,re)),_(y,Y,!0),typeof b.onExpire=="function"&&b.onExpire(Y)===!1&&(k.keys.unshift(Y),k.values.unshift(tt),x(k,B,re),typeof b.onCacheChange=="function"&&b.onCacheChange(k,B,re))};y.push({expirationMethod:oe,key:Y,timeoutId:m(oe,M)})}}}function v(y,b){return function(R){var M=R.keys[0],x=u(y,M);~x&&(_(y,M,!1),y[x].timeoutId=m(y[x].expirationMethod,b.maxAge))}}function A(y,b,L,R){var M=typeof b.maxAge=="number"&&isFinite(b.maxAge)?g(y,b,L,R):void 0;return{onCacheAdd:M,onCacheHit:M&&b.updateExpire?v(y,b):void 0}}var O={anonymousProfileNameCounter:1,isCollectingStats:!1,profiles:{}},D=!1;function V(y){y?delete O.profiles[y]:O.profiles={}}function K(y){y===void 0&&(y=!0),O.isCollectingStats=y}function G(y){var b=y.profileName;return function(){b&&!O.profiles[b]&&(O.profiles[b]={calls:0,hits:0}),O.profiles[b].calls++}}function te(y){return function(){var b=O.profiles,L=y.profileName;b[L]||(b[L]={calls:0,hits:0}),b[L].calls++,b[L].hits++}}function $(y){return y.displayName||y.name||"Anonymous "+O.anonymousProfileNameCounter++}function J(y,b){return y?(b/y*100).toFixed(4)+"%":"0.0000%"}function p(y){!O.isCollectingStats&&!D&&(console.warn('Stats are not currently being collected, please run "collectStats" to enable them.'),D=!0);var b=O.profiles;if(y){if(!b[y])return{calls:0,hits:0,usage:"0.0000%"};var L=b[y];return o({},L,{usage:J(L.calls,L.hits)})}var R=Object.keys(O.profiles).reduce(function(M,x){return M.calls+=b[x].calls,M.hits+=b[x].hits,M},{calls:0,hits:0});return o({},R,{profiles:Object.keys(b).reduce(function(M,x){return M[x]=p(x),M},{}),usage:J(R.calls,R.hits)})}function w(y){return O.isCollectingStats?{onCacheAdd:G(y),onCacheHit:te(y)}:{}}var E={arguments:!0,callee:!0,caller:!0,constructor:!0,length:!0,name:!0,prototype:!0};function S(y,b,L){L===void 0&&(L=[]),Object.getOwnPropertyNames(y).forEach(function(R){if(!E[R]&&L.indexOf(R)===-1){var M=Object.getOwnPropertyDescriptor(y,R);M.get||M.set?Object.defineProperty(b,R,M):b[R]=y[R]}})}function C(y,b){var L=b.expirations,R=y.options,M=f(R.isEqual,R.isMatchingKey),x=y;x.clear=function(){var k=x._microMemoizeOptions.onCacheChange,B=x.cache;return B.keys.length=0,B.values.length=0,k&&k(B,x.options,x),!0},x.clearStats=function(){V(x.options.profileName)},x.get=function(k){var B=x._microMemoizeOptions.transformKey,re=x.cache,Y=B?B(k):k,oe=M(re.keys,Y);return oe!==-1?x.apply(this,k):void 0},x.getStats=function(){return p(x.options.profileName)},x.has=function(k){var B=x._microMemoizeOptions.transformKey,re=B?B(k):k;return M(x.cache.keys,re)!==-1},x.keys=function(){return x.cacheSnapshot.keys},x.remove=function(k){var B=x._microMemoizeOptions,re=B.onCacheChange,Y=B.transformKey,oe=x.cache,_e=M(oe.keys,Y?Y(k):k);if(_e===-1)return!1;var ye=oe.keys[_e];return oe.keys.splice(_e,1),oe.values.splice(_e,1),re&&re(oe,x.options,x),_(L,ye,!0),!0},x.set=function(k,B){var re=x._microMemoizeOptions,Y=x.cache,oe=x.options,_e=re.onCacheAdd,ye=re.onCacheChange,Ae=re.transformKey,tt=Ae?Ae(k):k,Me=M(Y.keys,tt);if(Me===-1){var rt=oe.maxSize-1;Y.size>rt&&(Y.keys.length=rt,Y.values.length=rt),Y.keys.unshift(tt),Y.values.unshift(B),oe.isPromise&&Y.updateAsyncCache(x),_e&&_e(Y,oe,x),ye&&ye(Y,oe,x)}else{var qt=Y.keys[Me];Y.values[Me]=B,Me>0&&Y.orderByLru(qt,B,Me),oe.isPromise&&Y.updateAsyncCache(x),typeof ye=="function"&&ye(Y,oe,x)}},x.values=function(){return x.cacheSnapshot.values}}function T(y,b){var L=b.expirations,R=b.options,M=b.originalFunction,x=y.options;Object.defineProperties(y,{_microMemoizeOptions:{configurable:!0,get:function(){return x}},cacheSnapshot:{configurable:!0,get:function(){var re=y.cache;return{keys:re.keys.slice(0),size:re.size,values:re.values.slice(0)}}},expirations:{configurable:!0,get:function(){return L}},expirationsSnapshot:{configurable:!0,get:function(){return L.slice(0)}},isMoized:{configurable:!0,get:function(){return!0}},options:{configurable:!0,get:function(){return R}},originalFunction:{configurable:!0,get:function(){return M}}});var k=y;S(M,k)}function P(y,b){return C(y,b),T(y,b),y}var I=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function U(y,b,L){var R=y(o({maxArgs:2,isShallowEqual:!0},L,{isReact:!1}));b.displayName||(b.displayName=b.name||"Component");function M(x,k,B){this.props=x,this.context=k,this.updater=B,this.MoizedComponent=R(b)}return M.prototype.isReactComponent={},M.prototype.render=function(){return{$$typeof:I,type:this.MoizedComponent,props:this.props,ref:null,key:null,_owner:null}},S(b,M,["contextType","contextTypes"]),M.displayName="Moized("+(b.displayName||b.name||"Component")+")",d(M,b.name,L.profileName),M}function N(y){return function(b){if(y>=b.length)return b;if(y===0)return[];if(y===1)return[b[0]];if(y===2)return[b[0],b[1]];if(y===3)return[b[0],b[1],b[2]];for(var L=[],R=0;R<y;R++)L[R]=b[R];return L}}function W(y,b){for(var L=y.length,R=0;R<L;++R)if(y[R]===b)return R+1;return 0}function X(){var y=[],b=[];return function(R,M){var x=typeof M;if(x==="function"||x==="symbol")return M.toString();if(typeof M=="object"){if(y.length){var k=W(y,this);k===0?y[y.length]=this:(y.splice(k),b.splice(k)),b[b.length]=R;var B=W(y,M);if(B!==0)return"[ref="+(b.slice(0,B).join(".")||".")+"]"}else y[0]=M,b[0]=R;return M}return""+M}}function le(y){var b=typeof y;return y&&(b==="object"||b==="function")?JSON.stringify(y,X()):y}function fe(y){for(var b="|",L=0;L<y.length;L++)b+=le(y[L])+"|";return[b]}function me(y){return typeof y.serializer=="function"?y.serializer:fe}function ue(y,b){return y[0]===b[0]}function Se(y){if(typeof y=="function")return function(b,L,R){return y(R.cache,R.options,R)}}function Oe(y){return y.matchesArg||y.isDeepEqual&&n.deepEqual||y.isShallowEqual&&n.shallowEqual||n.sameValueZeroEqual}function $e(y){return y.matchesKey||y.isSerialized&&ue||void 0}function et(y){return l(y.isSerialized&&me(y),typeof y.transformArgs=="function"&&y.transformArgs,typeof y.maxArgs=="number"&&N(y.maxArgs))}function gr(y){var b=y.options.updateCacheForKey,L=function(){for(var M=arguments.length,x=new Array(M),k=0;k<M;k++)x[k]=arguments[k];if(!b(x))return y.apply(this,x);var B=y.fn.apply(this,x);return y.set(x,B),B};return S(y,L),L}var ws=["matchesArg","isDeepEqual","isPromise","isReact","isSerialized","isShallowEqual","matchesKey","maxAge","maxArgs","maxSize","onCacheAdd","onCacheChange","onCacheHit","onExpire","profileName","serializer","updateCacheForKey","transformArgs","updateExpire"],q=function y(b,L){var R=L||i;if(h(b)){var M=b.originalFunction,x=c(b.options,R);return y(M,x)}if(typeof b=="object")return function(vr,Cs){if(typeof vr=="function"){var Ps=c(b,Cs);return y(vr,Ps)}var Rs=c(b,vr);return y(Rs)};if(R.isReact)return U(y,b,R);var k=o({},i,R,{maxAge:typeof R.maxAge=="number"&&R.maxAge>=0?R.maxAge:i.maxAge,maxArgs:typeof R.maxArgs=="number"&&R.maxArgs>=0?R.maxArgs:i.maxArgs,maxSize:typeof R.maxSize=="number"&&R.maxSize>=0?R.maxSize:i.maxSize,profileName:R.profileName||$(b)}),B=[];k.matchesArg,k.isDeepEqual;var re=k.isPromise;k.isReact,k.isSerialized,k.isShallowEqual,k.matchesKey,k.maxAge,k.maxArgs;var Y=k.maxSize,oe=k.onCacheAdd,_e=k.onCacheChange,ye=k.onCacheHit;k.onExpire,k.profileName,k.serializer;var Ae=k.updateCacheForKey;k.transformArgs,k.updateExpire;var tt=a(k,ws),Me=Oe(k),rt=$e(k),qt=A(B,k,Me,rt),jn=w(k),Es=et(k),Ss=o({},tt,{isEqual:Me,isMatchingKey:rt,isPromise:re,maxSize:Y,onCacheAdd:Se(s(oe,qt.onCacheAdd,jn.onCacheAdd)),onCacheChange:Se(_e),onCacheHit:Se(s(ye,qt.onCacheHit,jn.onCacheHit)),transformKey:Es}),As=r(b,Ss),jt=P(As,{expirations:B,options:k,originalFunction:b});return Ae&&(jt=gr(jt)),d(jt,b.name,R.profileName),jt};q.clearStats=V,q.collectStats=K,q.compose=function(){return l.apply(void 0,arguments)||q},q.deep=q({isDeepEqual:!0}),q.getStats=p,q.infinite=q({maxSize:1/0}),q.isCollectingStats=function(){return O.isCollectingStats},q.isMoized=function(b){return typeof b=="function"&&!!b.isMoized},q.matchesArg=function(y){return q({matchesArg:y})},q.matchesKey=function(y){return q({matchesKey:y})};function bs(y,b){if(b===!0)return q({maxAge:y,updateExpire:b});if(typeof b=="object"){var L=b.onExpire,R=b.updateExpire;return q({maxAge:y,onExpire:L,updateExpire:R})}return q(typeof b=="function"?{maxAge:y,onExpire:b,updateExpire:!0}:{maxAge:y})}return q.maxAge=bs,q.maxArgs=function(y){return q({maxArgs:y})},q.maxSize=function(y){return q({maxSize:y})},q.profile=function(y){return q({profileName:y})},q.promise=q({isPromise:!0,updateExpire:!0}),q.react=q({isReact:!0}),q.serialize=q({isSerialized:!0}),q.serializeWith=function(y){return q({isSerialized:!0,serializer:y})},q.shallow=q({isShallowEqual:!0}),q.transformArgs=function(y){return q({transformArgs:y})},q.updateCacheForKey=function(y){return q({updateCacheForKey:y})},Object.defineProperty(q,"default",{configurable:!1,enumerable:!1,value:q,writable:!1}),q})}(At,At.exports)),At.exports}var Mc=Oc();const Yi=Ts(Mc);typeof window<"u"&&(window._moize=Yi);function vt(e,t={}){return Yi(e,{...t,maxSize:30,isDeepEqual:!0})}/*! js-cookie v3.0.5 | MIT */function Bt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var kc={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Qr(e,t){function r(o,a,i){if(!(typeof document>"u")){i=Bt({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in i)i[l]&&(s+="; "+l,i[l]!==!0&&(s+="="+i[l].split(";")[0]));return document.cookie=o+"="+e.write(a,o)+s}}function n(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var a=document.cookie?document.cookie.split("; "):[],i={},s=0;s<a.length;s++){var l=a[s].split("="),u=l.slice(1).join("=");try{var f=decodeURIComponent(l[0]);if(i[f]=e.read(u,f),o===f)break}catch{}}return o?i[o]:i}}return Object.create({set:r,get:n,remove:function(o,a){r(o,"",Bt({},a,{expires:-1}))},withAttributes:function(o){return Qr(this.converter,Bt({},this.attributes,o))},withConverter:function(o){return Qr(Bt({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Nc=Qr(kc,{path:"/"});function wt(){return F.local.getJSON("accounts")||[]}function In(e){F.local.setJSON("accounts",e)}const Ic=5*60*1e3;function Xr(e){const t=wt(),r=e?t.find(o=>o.info.id===e):t[0];if(!r)return null;const n=Date.now();return n-r.lastAccessedAt>Ic&&(r.lastAccessedAt=n,In(t)),r}function Dc(e){return wt().find(r=>r.accessToken===e)}function Uc(e){return wt().find(r=>r.instanceURL===e)}function ah(e){return wt().some(r=>r.instanceURL===e)}const Zi=typeof window<"u"?window.matchMedia("(display-mode: standalone)"):null;function Ji(){try{const e=F.session.get("currentAccount");if(e)return e}catch{}if(Zi?.matches)try{const e=F.local.get("currentAccount");if(e)return e}catch{}return null}const ih=vt(Ji,{maxAge:60*1e3});function Fc(e){try{F.session.set("currentAccount",e)}catch{}if(Zi?.matches)try{F.local.set("currentAccount",e)}catch{}}function Ft(){window.__IGNORE_GET_ACCOUNT_ERROR__;const e=Ji();let t=Xr(e);return t||(t=Xr()),t}const qc=vt(Ft,{maxAge:60*1e3});function Ar(){const e=Ft(),{instanceURL:t,info:{id:r}}=e;return`${r}@${t}`}function jc(e){const t=wt(),r=t.find(n=>n.info.id===e.info.id);r?(r.info=e.info,r.instanceURL=e.instanceURL,r.accessToken=e.accessToken,r.vapidKey=e.vapidKey):t.push(e),In(t)}function sh(e){const t=wt(),r=t.find(n=>n.info.id===e.id);r&&(r.info.displayName!==e.displayName||r.info.avatar!==e.avatar||r.info.avatar_static!==e.avatar_static)&&(r.info={...r.info,...e},In(t))}let Cr=null;function Dn(){if(Cr)return Cr;try{const e=Ft(),t=F.local.getJSON("instances"),r=e.instanceURL.toLowerCase();return Cr=t[r]}catch{return{}}}let Pr=null;function lh(){if(Pr)return Pr;try{const e=Ft(),t=F.local.getJSON("nodeInfos")||{},r=e.instanceURL.toLowerCase();return Pr=t[r]||{}}catch{return{}}}function Qi(e){const{configuration:t,maxMediaAttachments:r,maxTootChars:n,pollLimits:o}=e,a=t?.statuses||{};r&&(a.maxMediaAttachments??=r),n&&(a.maxCharacters??=n);const i=t?.polls||{};return o&&(i.maxCharactersPerOption??=o.maxOptionChars,i.maxExpiration??=o.maxExpiration,i.maxOptions??=o.maxOptions,i.minExpiration??=o.minExpiration),{...t,statuses:a,polls:i}}function Hc(){const e=Dn();return Qi(e)}function uh(){return Dn()?.apiVersions||{}}function ch(e){const t=e?Qi(e):Hc();return t?.vapid?.publicKey||t?.vapid?.public_key||Ft()?.vapidKey}function dh(){const e=Dn();return/pixelfed/i.test(e?.version)}const en="credentialApplications";function fh(e,t){const r=F.local.getJSON(en)||{};r[e]=t,F.local.setJSON(en,r)}function hh(e){return(F.local.getJSON(en)||{})[e]||null}const Rr=Nc.withAttributes({sameSite:"strict",secure:!0}),Ie={get:e=>{try{return localStorage.getItem(e)}catch{return null}},getJSON:e=>{try{return JSON.parse(Ie.get(e))}catch{return null}},set:(e,t)=>{try{return localStorage.setItem(e,t)}catch{return null}},setJSON:(e,t)=>{try{return Ie.set(e,JSON.stringify(t))}catch{return null}},del:e=>{try{return localStorage.removeItem(e)}catch{return null}}},ut={get:e=>{try{return sessionStorage.getItem(e)}catch{return null}},getJSON:e=>{try{return JSON.parse(ut.get(e))}catch{return null}},set:(e,t)=>{try{return sessionStorage.setItem(e,t)}catch{return null}},setJSON:(e,t)=>{try{return ut.set(e,JSON.stringify(t))}catch{return null}},del:e=>{try{return sessionStorage.removeItem(e)}catch{return null}}},Zt={get:e=>Rr.get(e),set:(e,t)=>Rr.set(e,t),del:e=>Rr.remove(e)},Bc={get:e=>navigator.cookieEnabled?Zt.get(e):ut.get(e),set:(e,t)=>navigator.cookieEnabled?Zt.set(e,t):ut.set(e,t),del:e=>navigator.cookieEnabled?Zt.del(e):ut.del(e)},zc={get:e=>{try{return Ie.getJSON(e)[Ar()]}catch{return null}},set:(e,t)=>{try{const r=Ie.getJSON(e)||{};return r[Ar()]=t,Ie.setJSON(e,r)}catch{return null}},del:e=>{try{const t=Ie.getJSON(e)||{};return delete t[Ar()],Ie.setJSON(e,t)}catch{return null}}},F={local:Ie,session:ut,sessionCookie:Bc,cookie:Zt,account:zc},Jt="mastodon.social",lr={},de={};window.__ACCOUNT_APIS__=de;let ae;function ke({instance:e,accessToken:t}){/^https?:\/\//.test(e)&&(e=e.replace(/^https?:\/\//,"").replace(/\/+$/,"").toLowerCase());const r=e?`https://${e}`:`https://${Jt}`,o={masto:Ac({url:r,accessToken:t,timeout:2*6e4}),instance:e,accessToken:t,onStreamingReady:function(a){this._streamingCallback=a}};return lr[e]=o,de[e]||(de[e]={}),t&&(de[e][t]=o),o}function ph(e){return!!(F.local.getJSON("instances")||{})[e]}async function mh(e,t){const{masto:r,accessToken:n}=e;let o;__BENCHMARK.start("fetch-instance");try{o=await r.v2.instance.fetch()}catch{}if(!o)try{o=await r.v1.instance.fetch()}catch{}if(__BENCHMARK.end("fetch-instance"),!o)return;const{uri:a,urls:{streamingApi:i}={},domain:s,configuration:{urls:{streaming:l}={}}={}}=o,u=F.local.getJSON("instances")||{};(a||s)&&(u[(s||a).replace(/^https?:\/\//,"").replace(/\/+$/,"").toLowerCase()]=o),t&&(u[t.toLowerCase()]=o),F.local.setJSON("instances",u);let f;try{if(a||s){let d=a||`https://${s}`;const _=await(await fetch(`${d}/.well-known/nodeinfo`)).json();if(Array.isArray(_?.links)){const m="http://nodeinfo.diaspora.software/ns/schema/",g=_.links.filter(v=>typeof v.rel=="string"&&v.rel.startsWith(m)&&Nu(v.rel.slice(m.length))).map(v=>({version:v.rel.slice(m.length),href:v.href})).sort((v,A)=>-fi(v.version,A.version)).find(v=>Yt(v.version,"<=2"))?.href;g&&(f=await(await fetch(g)).json())}}}catch{}const c=F.local.getJSON("nodeInfos")||{};if(f&&(c[t.toLowerCase()]=f),F.local.setJSON("nodeInfos",c),"WebSocket"in window&&(i||l)){const d=Cc({streamingApiUrl:l||i,accessToken:n,implementation:WebSocket});if(e.streaming=d,e._streamingCallback){try{e._streamingCallback(d)}catch{}e._streamingCallback=null}}__BENCHMARK.end("init-instance")}async function _h(e,t,r,n){const{masto:o}=e,a=await o.v1.accounts.verifyCredentials();Fc(a.id),jc({info:a,instanceURL:t.toLowerCase(),accessToken:r,vapidKey:n,createdAt:Date.now()})}const Xi=vt(()=>F.account.get("preferences")||{},{maxAge:60*1e3});function $c(e){Xi.clear(),F.account.set("preferences",e)}function yh(){return!!Xi()}async function gh(e){try{const{masto:t}=e;__BENCHMARK.start("fetch-preferences");const r=await t.v1.preferences.fetch();__BENCHMARK.end("fetch-preferences"),$c(r)}catch{}}function ur({instance:e,accessToken:t,accountID:r,account:n}={}){if(e&&(e=e.toLowerCase().trim()),e&&t){const l=de[e]?.[t]||ke({instance:e,accessToken:t}),{masto:u,streaming:f}=l;return{masto:u,streaming:f,client:l,authenticated:!0,instance:e}}if(t)for(const l in de)if(de[l][t]){const u=de[l][t],{masto:f,streaming:c}=u;return{masto:f,streaming:c,client:u,authenticated:!0,instance:l}}else{const u=Dc(t);if(u){const f=u.accessToken,c=u.instanceURL.toLowerCase().trim(),h=ke({instance:c,accessToken:f}),{masto:d,streaming:_}=h;return{masto:d,streaming:_,client:h,authenticated:!0,instance:c}}else throw new Error("Access token not found")}if(n||r)if(n=n||Xr(r),n){const l=n.accessToken,u=n.instanceURL.toLowerCase().trim(),f=de[u]?.[l]||ke({instance:u,accessToken:l}),{masto:c,streaming:h}=f;return{masto:c,streaming:h,client:f,authenticated:!0,instance:u}}else throw new Error(`Account ${r} not found`);const o=qc();if(e){if(ae?.instance===e)return{masto:ae.masto,streaming:ae.streaming,client:ae,authenticated:!0,instance:e};if(o?.instanceURL===e){const{accessToken:d}=o;return ae=de[e]?.[d]||ke({instance:e,accessToken:d}),{masto:ae.masto,streaming:ae.streaming,client:ae,authenticated:!0,instance:e}}const l=Uc(e);if(l){const d=l.accessToken,_=de[e]?.[d]||ke({instance:e,accessToken:d}),{masto:m,streaming:g}=_;return{masto:m,streaming:g,client:_,authenticated:!0,instance:e}}const u=lr[e]||ke({instance:e}),{masto:f,streaming:c,accessToken:h}=u;return{masto:f,streaming:c,client:u,authenticated:!!h,instance:e}}if(ae)return{masto:ae.masto,streaming:ae.streaming,client:ae,authenticated:!0,instance:ae.instance};if(o){const{accessToken:l,instanceURL:u}=o;return ae=de[u]?.[l]||ke({instance:u,accessToken:l}),{masto:ae.masto,streaming:ae.streaming,client:ae,authenticated:!0,instance:u}}const a=lr[Jt]||ke({instance:Jt}),{masto:i,streaming:s}=a;return{masto:i,streaming:s,client:a,authenticated:!1,instance:Jt}}window.__API__={currentAccountApi:ae,apis:lr,accountApis:de};var Kc=Object.getOwnPropertyNames,Gc=Object.getOwnPropertySymbols,Wc=Object.prototype.hasOwnProperty;function No(e,t){return function(n,o,a){return e(n,o,a)&&t(n,o,a)}}function zt(e){return function(r,n,o){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,o);var a=o.cache,i=a.get(r),s=a.get(n);if(i&&s)return i===n&&s===r;a.set(r,n),a.set(n,r);var l=e(r,n,o);return a.delete(r),a.delete(n),l}}function Vc(e){return e?.[Symbol.toStringTag]}function Io(e){return Kc(e).concat(Gc(e))}var Yc=Object.hasOwn||function(e,t){return Wc.call(e,t)};function Xe(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var Zc="__v",Jc="__o",Qc="_owner",Do=Object.getOwnPropertyDescriptor,Uo=Object.keys;function Xc(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function ed(e,t){return Xe(e.getTime(),t.getTime())}function td(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function rd(e,t){return e===t}function Fo(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var o=new Array(n),a=e.entries(),i,s,l=0;(i=a.next())&&!i.done;){for(var u=t.entries(),f=!1,c=0;(s=u.next())&&!s.done;){if(o[c]){c++;continue}var h=i.value,d=s.value;if(r.equals(h[0],d[0],l,c,e,t,r)&&r.equals(h[1],d[1],h[0],d[0],e,t,r)){f=o[c]=!0;break}c++}if(!f)return!1;l++}return!0}var nd=Xe;function od(e,t,r){var n=Uo(e),o=n.length;if(Uo(t).length!==o)return!1;for(;o-- >0;)if(!es(e,t,r,n[o]))return!1;return!0}function Et(e,t,r){var n=Io(e),o=n.length;if(Io(t).length!==o)return!1;for(var a,i,s;o-- >0;)if(a=n[o],!es(e,t,r,a)||(i=Do(e,a),s=Do(t,a),(i||s)&&(!i||!s||i.configurable!==s.configurable||i.enumerable!==s.enumerable||i.writable!==s.writable)))return!1;return!0}function ad(e,t){return Xe(e.valueOf(),t.valueOf())}function id(e,t){return e.source===t.source&&e.flags===t.flags}function qo(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var o=new Array(n),a=e.values(),i,s;(i=a.next())&&!i.done;){for(var l=t.values(),u=!1,f=0;(s=l.next())&&!s.done;){if(!o[f]&&r.equals(i.value,s.value,i.value,s.value,e,t,r)){u=o[f]=!0;break}f++}if(!u)return!1}return!0}function sd(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function ld(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function es(e,t,r,n){return(n===Qc||n===Jc||n===Zc)&&(e.$$typeof||t.$$typeof)?!0:Yc(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var ud="[object Arguments]",cd="[object Boolean]",dd="[object Date]",fd="[object Error]",hd="[object Map]",pd="[object Number]",md="[object Object]",_d="[object RegExp]",yd="[object Set]",gd="[object String]",vd="[object URL]",wd=Array.isArray,jo=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Ho=Object.assign,bd=Object.prototype.toString.call.bind(Object.prototype.toString);function Ed(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,o=e.areFunctionsEqual,a=e.areMapsEqual,i=e.areNumbersEqual,s=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,f=e.areSetsEqual,c=e.areTypedArraysEqual,h=e.areUrlsEqual,d=e.unknownTagComparators;return function(m,g,v){if(m===g)return!0;if(m==null||g==null)return!1;var A=typeof m;if(A!==typeof g)return!1;if(A!=="object")return A==="number"?i(m,g,v):A==="function"?o(m,g,v):!1;var O=m.constructor;if(O!==g.constructor)return!1;if(O===Object)return s(m,g,v);if(wd(m))return t(m,g,v);if(jo!=null&&jo(m))return c(m,g,v);if(O===Date)return r(m,g,v);if(O===RegExp)return u(m,g,v);if(O===Map)return a(m,g,v);if(O===Set)return f(m,g,v);var D=bd(m);if(D===dd)return r(m,g,v);if(D===_d)return u(m,g,v);if(D===hd)return a(m,g,v);if(D===yd)return f(m,g,v);if(D===md)return typeof m.then!="function"&&typeof g.then!="function"&&s(m,g,v);if(D===vd)return h(m,g,v);if(D===fd)return n(m,g,v);if(D===ud)return s(m,g,v);if(D===cd||D===pd||D===gd)return l(m,g,v);if(d){var V=d[D];if(!V){var K=Vc(m);K&&(V=d[K])}if(V)return V(m,g,v)}return!1}}function Sd(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,o={areArraysEqual:n?Et:Xc,areDatesEqual:ed,areErrorsEqual:td,areFunctionsEqual:rd,areMapsEqual:n?No(Fo,Et):Fo,areNumbersEqual:nd,areObjectsEqual:n?Et:od,arePrimitiveWrappersEqual:ad,areRegExpsEqual:id,areSetsEqual:n?No(qo,Et):qo,areTypedArraysEqual:n?Et:sd,areUrlsEqual:ld,unknownTagComparators:void 0};if(r&&(o=Ho({},o,r(o))),t){var a=zt(o.areArraysEqual),i=zt(o.areMapsEqual),s=zt(o.areObjectsEqual),l=zt(o.areSetsEqual);o=Ho({},o,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:s,areSetsEqual:l})}return o}function Ad(e){return function(t,r,n,o,a,i,s){return e(t,r,s)}}function Cd(e){var t=e.circular,r=e.comparator,n=e.createState,o=e.equals,a=e.strict;if(n)return function(l,u){var f=n(),c=f.cache,h=c===void 0?t?new WeakMap:void 0:c,d=f.meta;return r(l,u,{cache:h,equals:o,meta:d,strict:a})};if(t)return function(l,u){return r(l,u,{cache:new WeakMap,equals:o,meta:void 0,strict:a})};var i={cache:void 0,equals:o,meta:void 0,strict:a};return function(l,u){return r(l,u,i)}}var Pd=ze(),vh=ze({strict:!0}),wh=ze({circular:!0}),bh=ze({circular:!0,strict:!0}),Eh=ze({createInternalComparator:function(){return Xe}}),Sh=ze({strict:!0,createInternalComparator:function(){return Xe}}),Ah=ze({circular:!0,createInternalComparator:function(){return Xe}}),Ch=ze({circular:!0,createInternalComparator:function(){return Xe},strict:!0});function ze(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,o=e.createState,a=e.strict,i=a===void 0?!1:a,s=Sd(e),l=Ed(s),u=n?n(l):Ad(l);return Cd({circular:r,comparator:l,createState:o,equals:u,strict:i})}function ts(e,t,r,n){let o=e[t];return xn(e,()=>{const a=e[t];Object.is(o,a)||r(o=a)},n)}const Ph=Symbol();const{proxyStateMap:Rh,snapCache:Th}=ci();const{proxyStateMap:xh,snapCache:Lh}=ci();const Oh=Symbol();function Rd(e){try{const{pathname:t,hash:r,hostname:n}=URL.parse(e);return/^\/.*\/\d+$/i.test(t)||/^\/(@[^/]+|users\/[^/]+)\/(statuses|posts)\/[\w-]+\/?$/i.test(t)||/^\/notes\/[a-z0-9]+$/i.test(t)||/^\/(notice|objects)\/[a-z0-9-]+$/i.test(t)||/^\/@[^/]+\/post\/[a-z0-9\-_]+$/i.test(t)||/^\/@[^/]+\/[a-z0-9]+[a-z0-9\-]+[a-z0-9]+$/i.test(t)||/^\/ap\/note\/[a-z0-9\-_]+$/i.test(t)||/(fed|bsky)\.brid\.gy/i.test(n)&&t.startsWith("/r/http")||/^\/[^\/]+\/p\/\d+\.\d+$/i.test(t)||/^\/fediverse\/post\/[a-z0-9\-]+$/i.test(t)||/^\/v\/[a-z0-9]+$/i.test(t)||/#\/[^\/]+\.[^\/]+\/s\/.+/i.test(r)}catch{return!1}}function Td(e,t={}){return vt(e,{isPromise:!0,...t})}function xd(e,t){let r=[],n=!1;function o(){if(r.length===0){n=!1;return}r.shift()(),setTimeout(o,t)}return function(...a){const i=()=>e.apply(this,a);r.push(i),n||(n=!0,setTimeout(o,t))}}const Bo=new WeakMap,Lt=new WeakMap,Ld=new FinalizationRegistry(({signalWeakRef:e,weakReference:t})=>{const r=e.deref();if(!r)return;const n=Lt.get(r);n&&(n.throttleds.delete(t),n.throttleds.size===0&&(r.removeEventListener("abort",n.listener),Lt.delete(r)))});function Od({limit:e,interval:t,strict:r,signal:n,onDelay:o}){if(!Number.isFinite(e))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(t))throw new TypeError("Expected `interval` to be a finite number");if(e<0)throw new TypeError("Expected `limit` to be >= 0");if(t<0)throw new TypeError("Expected `interval` to be >= 0");const a={queue:new Map,strictTicks:[],currentTick:0,activeCount:0};function i(){const u=Date.now();return u-a.currentTick>t?(a.activeCount=1,a.currentTick=u,0):(a.activeCount<e?a.activeCount++:(a.currentTick+=t,a.activeCount=1),a.currentTick-u)}function s(){const u=Date.now();if(a.strictTicks.length>0&&u-a.strictTicks.at(-1)>t&&(a.strictTicks.length=0),a.strictTicks.length<e)return a.strictTicks.push(u),0;const f=a.strictTicks[0]+t;return a.strictTicks.shift(),a.strictTicks.push(f),Math.max(0,f-u)}const l=r?s:i;return u=>{const f=function(...c){if(!f.isEnabled)return(async()=>u.apply(this,c))();let h;return new Promise((d,_)=>{const m=()=>{try{d(u.apply(this,c))}catch(v){_(v)}a.queue.delete(h)},g=l();if(g>0){h=setTimeout(m,g),a.queue.set(h,_);try{o?.(...c)}catch{}}else m()})};if(n?.throwIfAborted(),n){let c=Lt.get(n);c||(c={throttleds:new Set,listener:null},c.listener=()=>{for(const d of c.throttleds){const _=d.deref();if(!_)continue;const m=Bo.get(_);if(m){for(const g of m.queue.keys())clearTimeout(g),m.queue.get(g)(n.reason);m.queue.clear(),m.strictTicks.length=0,m.currentTick=0,m.activeCount=0}}Lt.delete(n)},Lt.set(n,c),n.addEventListener("abort",c.listener,{once:!0}));const h=new WeakRef(f);c.throttleds.add(h),Ld.register(f,{signalWeakRef:new WeakRef(n),weakReference:h})}return f.isEnabled=!0,Object.defineProperty(f,"queueSize",{get(){return a.queue.size}}),Bo.set(f,a),f}}const ct=2147483647,ve=36,Un=1,It=26,Md=38,kd=700,rs=72,ns=128,os="-",Nd=/^xn--/,Id=/[^\0-\x7F]/,Dd=/[\x2E\u3002\uFF0E\uFF61]/g,Ud={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Tr=ve-Un,we=Math.floor,xr=String.fromCharCode;function Ne(e){throw new RangeError(Ud[e])}function Fd(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}function as(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(Dd,".");const o=e.split("."),a=Fd(o,t).join(".");return n+a}function is(e){const t=[];let r=0;const n=e.length;for(;r<n;){const o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){const a=e.charCodeAt(r++);(a&64512)==56320?t.push(((o&1023)<<10)+(a&1023)+65536):(t.push(o),r--)}else t.push(o)}return t}const qd=e=>String.fromCodePoint(...e),jd=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:ve},zo=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},ss=function(e,t,r){let n=0;for(e=r?we(e/kd):e>>1,e+=we(e/t);e>Tr*It>>1;n+=ve)e=we(e/Tr);return we(n+(Tr+1)*e/(e+Md))},ls=function(e){const t=[],r=e.length;let n=0,o=ns,a=rs,i=e.lastIndexOf(os);i<0&&(i=0);for(let s=0;s<i;++s)e.charCodeAt(s)>=128&&Ne("not-basic"),t.push(e.charCodeAt(s));for(let s=i>0?i+1:0;s<r;){const l=n;for(let f=1,c=ve;;c+=ve){s>=r&&Ne("invalid-input");const h=jd(e.charCodeAt(s++));h>=ve&&Ne("invalid-input"),h>we((ct-n)/f)&&Ne("overflow"),n+=h*f;const d=c<=a?Un:c>=a+It?It:c-a;if(h<d)break;const _=ve-d;f>we(ct/_)&&Ne("overflow"),f*=_}const u=t.length+1;a=ss(n-l,u,l==0),we(n/u)>ct-o&&Ne("overflow"),o+=we(n/u),n%=u,t.splice(n++,0,o)}return String.fromCodePoint(...t)},us=function(e){const t=[];e=is(e);const r=e.length;let n=ns,o=0,a=rs;for(const l of e)l<128&&t.push(xr(l));const i=t.length;let s=i;for(i&&t.push(os);s<r;){let l=ct;for(const f of e)f>=n&&f<l&&(l=f);const u=s+1;l-n>we((ct-o)/u)&&Ne("overflow"),o+=(l-n)*u,n=l;for(const f of e)if(f<n&&++o>ct&&Ne("overflow"),f===n){let c=o;for(let h=ve;;h+=ve){const d=h<=a?Un:h>=a+It?It:h-a;if(c<d)break;const _=c-d,m=ve-d;t.push(xr(zo(d+_%m,0))),c=we(_/m)}t.push(xr(zo(c,0))),a=ss(o,u,s===i),o=0,++s}++o,++n}return t.join("")},Hd=function(e){return as(e,function(t){return Nd.test(t)?ls(t.slice(4).toLowerCase()):t})},Bd=function(e){return as(e,function(t){return Id.test(t)?"xn--"+us(t):t})},zd={version:"2.3.1",ucs2:{decode:is,encode:qd},decode:ls,encode:us,toASCII:Bd,toUnicode:Hd};function $d(e){try{return zd.toUnicode(URL.parse(e).hostname.replace(/^www\./,"").replace(/\/$/,""))}catch{return""}}const $o=vt($d),Kd=Od({limit:1,interval:1e3}),Ko=[/\/@[^@\/]+@?[^\/]+?\/(\d+)$/i,/\/notice\/(\w+)$/i];function Gd(e){for(let t=0;t<Ko.length;t++){const r=e.match(Ko[t])?.[1];if(r)return r}return null}const Wd=/(twitter|github)\.com/i,Go={};function Vd(e,t){const r=Vr(H);if(Wd.test(t)||Go[t])return;if(new RegExp(e+"/").test(r.unfurledLinks[t]?.url))return Promise.resolve(r.unfurledLinks[t]);let o,a=t;/\/\/elk\.[^\/]+\/[^\/]+\.[^\/]+/i.test(a)&&(a=a.replace(/elk\.[^\/]+\//i,"")),/\/\/trunks\.[^\/]+\/status\/[^\/]+\.[^\/]+/i.test(a)&&(a=a.replace(/trunks\.[^\/]+\/status\//i,"")),/\/#\/[^\/]+\.[^\/]+\/s\/.+/i.test(a)&&(a=`https://${a.split("/#/")[1].replace(/\/s\//i,"/@fakeUsername/")}`);const i=URL.parse(a);if(!i)return;const s=i.hostname,l=i.pathname;let u=Gd(l);if(u){const _=u,{masto:m}=ur({instance:s});o=m.v1.statuses.$select(_).fetch().then(g=>{if(g?.id)return{status:g,instance:s};throw new Error("No results")})}const{masto:f}=ur({instance:e}),c=f.v2.search.fetch({q:a,type:"statuses",resolve:!0,limit:1}).then(_=>{const{statuses:m}=_;if(m.length>0){const g=m.filter(v=>!v.content?.toLowerCase().includes(a.toLowerCase()));if(g.length===1)return{status:g[0],instance:e}}throw new Error("No results")});function h(_){const{status:m,instance:g}=_,{id:v}=m,A=`/${g}/s/${v}`,O=a!==t,D={id:v,instance:g,url:A,originalURL:t,originalDomain:$o(t),canonicalURL:O?a:void 0,canonicalDomain:O?$o(a):void 0};return H.unfurledLinks[t]=D,cs(m,g,{skipThreading:!0}),D}function d(_){Go[t]=!0}return o?Promise.race([c,new Promise((m,g)=>setTimeout(g,3e3))]).catch(()=>o.catch(()=>c)).then(h).catch(d):c.then(h).catch(d)}const Yd=Kd(Vd),H=ui({appVersion:{},prevLocation:null,currentLocation:null,statuses:{},statusThreadNumber:{},home:[],homeNew:[],homeLast:null,homeLastFetchTime:null,notifications:[],notificationsLast:null,notificationsNew:[],notificationsShowNew:!1,notificationsLastFetchTime:null,reloadStatusPage:0,reloadGenericAccounts:{id:null,counter:0},reloadScheduledPosts:0,spoilers:{},spoilersMedia:{},scrollPositions:{},unfurledLinks:{},statusQuotes:{},statusFollowedTags:{},statusReply:{},accounts:{},routeNotification:null,composerState:{},showCompose:!1,showSettings:!1,showAccount:!1,showAccounts:!1,showDrafts:!1,showMediaModal:!1,showShortcutsSettings:!1,showKeyboardShortcutsHelp:!1,showGenericAccounts:!1,showMediaAlt:!1,showEmbedModal:!1,showReportModal:!1,shortcuts:[],settings:{autoRefresh:!1,shortcutsViewMode:null,shortcutsColumnsMode:!1,boostsCarousel:!0,contentTranslation:!0,contentTranslationTargetLanguage:null,contentTranslationHideLanguages:[],contentTranslationAutoInline:!1,shortcutSettingsCloudImportExport:!1,mediaAltGenerator:!1,composerGIFPicker:!1,cloakMode:!1,groupedNotificationsAlpha:!1}});function Mh(){H.notificationsLast=F.account.get("notificationsLast")||null,H.shortcuts=F.account.get("shortcuts")??[],H.settings.autoRefresh=F.account.get("settings-autoRefresh")??!1,H.settings.shortcutsViewMode=F.account.get("settings-shortcutsViewMode")??null,F.account.get("settings-shortcutsColumnsMode")&&(H.settings.shortcutsColumnsMode=!0),H.settings.boostsCarousel=F.account.get("settings-boostsCarousel")??!0,H.settings.contentTranslation=F.account.get("settings-contentTranslation")??!0,H.settings.contentTranslationTargetLanguage=F.account.get("settings-contentTranslationTargetLanguage")||null,H.settings.contentTranslationHideLanguages=F.account.get("settings-contentTranslationHideLanguages")||[],H.settings.contentTranslationAutoInline=F.account.get("settings-contentTranslationAutoInline")??!1,H.settings.shortcutSettingsCloudImportExport=F.account.get("settings-shortcutSettingsCloudImportExport")??!1,H.settings.mediaAltGenerator=F.account.get("settings-mediaAltGenerator")??!1,H.settings.composerGIFPicker=F.account.get("settings-composerGIFPicker")??!1,H.settings.cloakMode=F.account.get("settings-cloakMode")??!1,H.settings.groupedNotificationsAlpha=F.account.get("settings-groupedNotificationsAlpha")??!1}ts(H,"notificationsLast",e=>{F.account.set("notificationsLast",H.notificationsLast)});xn(H,e=>{for(const[t,r,n,o]of e)r.join(".")==="settings.autoRefresh"&&F.account.set("settings-autoRefresh",!!n),r.join(".")==="settings.boostsCarousel"&&F.account.set("settings-boostsCarousel",!!n),r.join(".")==="settings.shortcutsViewMode"&&F.account.set("settings-shortcutsViewMode",n),r.join(".")==="settings.contentTranslation"&&F.account.set("settings-contentTranslation",!!n),r.join(".")==="settings.contentTranslationAutoInline"&&F.account.set("settings-contentTranslationAutoInline",!!n),r.join(".")==="settings.shortcutSettingsCloudImportExport"&&F.account.set("settings-shortcutSettingsCloudImportExport",!!n),r.join(".")==="settings.contentTranslationTargetLanguage"&&F.account.set("settings-contentTranslationTargetLanguage",n),/^settings\.contentTranslationHideLanguages/i.test(r.join("."))&&F.account.set("settings-contentTranslationHideLanguages",H.settings.contentTranslationHideLanguages),r.join(".")==="settings.mediaAltGenerator"&&F.account.set("settings-mediaAltGenerator",!!n),r.join(".")==="settings.composerGIFPicker"&&F.account.set("settings-composerGIFPicker",!!n),r?.[0]==="shortcuts"&&F.account.set("shortcuts",H.shortcuts),r.join(".")==="settings.cloakMode"&&F.account.set("settings-cloakMode",!!n),r.join(".")==="settings.groupedNotificationsAlpha"&&F.account.set("settings-groupedNotificationsAlpha",!!n)});function Fe(e,t){if(e)return t?`${t}/${e}`:e}function Zd(e,t){if(t){const r=Fe(e,t);return H.statuses[r]}return H.statuses[e]}function cs(e,t,r){typeof t=="object"&&(r=t,t=null);const{override:n=!0,skipThreading:o=!1,skipUnfurling:a=!1}=r||{};if(!e)return;const i=Zd(e.id,t);!n&&i||Pd(e,i)||(queueMicrotask(()=>{let s=Fe(e.id,t);if(i?._pinned&&(e._pinned=i._pinned),H.statuses[s]=e,e.reblog?.id){const u=Fe(e.reblog.id,t);H.statuses[u]=e.reblog,s=u}const l=e.reblog?.quote||e.quote;if(l?.id){const{id:u}=l,f=Fe(u,t);H.statuses[f]=l;const c=`/${t}/s/${u}`;H.statusQuotes[s]=[{id:u,instance:t,url:c,native:!0}]}if(l?.state){const{quotedStatus:u,state:f}=l;if(u?.id){const{id:c}=u,h=`/${t}/s/${c}`,d=Fe(c,t);H.statuses[d]=u,H.statusQuotes[s]=[{id:c,instance:t,url:h,state:f,native:!0}]}else H.statusQuotes[s]=[{state:f,native:!0}]}}),o||setTimeout(()=>{Qd(e.reblog||e,t)},100),a||setTimeout(()=>{Xd(e.reblog||e,t)},100))}function Jd(e,t){const{masto:r,instance:n}=ur({instance:t});let o=0;async function a(i,s=0){const{inReplyToId:l,inReplyToAccountId:u}=i;if(!l||u!==i.account.id)return[i];if(l&&u!==i.account.id)throw"Not a thread";const f=Fe(l,n);let c=H.statuses[f];if(!c){if(o++>3)throw"Too many fetches for thread";await new Promise(h=>setTimeout(h,500*o)),c=await ef(l,r),cs(c,n,{skipThreading:!0})}return[...await a(c,++s),i]}return a(e).then(i=>{i.length>1&&i.forEach((s,l)=>{const u=Fe(s.id,n);H.statusThreadNumber[u]=l+1})}).catch(i=>{})}const Qd=xd(Jd,100),Wo=document.createElement("div");function Xd(e,t){const{instance:r}=ur(),n=e?.content;if(/<a/i.test(n)){const a=Fe(e?.id,t);Wo.innerHTML=n,[...Wo.querySelectorAll("a[href]:not(.u-url):not(.mention):not(.hashtag)")].filter(s=>{const l=s.href;return!(l===e.url||l===e.uri)&&Rd(l)}).forEach((s,l)=>{Yd(r,s.href).then(u=>{u&&a&&u?.id!==e.id&&(Array.isArray(H.statusQuotes[a])||(H.statusQuotes[a]=[]),H.statusQuotes[a][l]||H.statusQuotes[a].splice(l,0,u))})})}}const ef=Td((e,t)=>t.v1.statuses.$select(e).fetch());function tf(e){return Intl.getCanonicalLocales(e)}var Lr={supplemental:{languageMatching:{"written-new":[{paradigmLocales:{_locales:"en en_GB es es_419 pt_BR pt_PT"}},{$enUS:{_value:"AS+CA+GU+MH+MP+PH+PR+UM+US+VI"}},{$cnsar:{_value:"HK+MO"}},{$americas:{_value:"019"}},{$maghreb:{_value:"MA+DZ+TN+LY+MR+EH"}},{no:{_desired:"nb",_distance:"1"}},{bs:{_desired:"hr",_distance:"4"}},{bs:{_desired:"sh",_distance:"4"}},{hr:{_desired:"sh",_distance:"4"}},{sr:{_desired:"sh",_distance:"4"}},{aa:{_desired:"ssy",_distance:"4"}},{de:{_desired:"gsw",_distance:"4",_oneway:"true"}},{de:{_desired:"lb",_distance:"4",_oneway:"true"}},{no:{_desired:"da",_distance:"8"}},{nb:{_desired:"da",_distance:"8"}},{ru:{_desired:"ab",_distance:"30",_oneway:"true"}},{en:{_desired:"ach",_distance:"30",_oneway:"true"}},{nl:{_desired:"af",_distance:"20",_oneway:"true"}},{en:{_desired:"ak",_distance:"30",_oneway:"true"}},{en:{_desired:"am",_distance:"30",_oneway:"true"}},{es:{_desired:"ay",_distance:"20",_oneway:"true"}},{ru:{_desired:"az",_distance:"30",_oneway:"true"}},{ur:{_desired:"bal",_distance:"20",_oneway:"true"}},{ru:{_desired:"be",_distance:"20",_oneway:"true"}},{en:{_desired:"bem",_distance:"30",_oneway:"true"}},{hi:{_desired:"bh",_distance:"30",_oneway:"true"}},{en:{_desired:"bn",_distance:"30",_oneway:"true"}},{zh:{_desired:"bo",_distance:"20",_oneway:"true"}},{fr:{_desired:"br",_distance:"20",_oneway:"true"}},{es:{_desired:"ca",_distance:"20",_oneway:"true"}},{fil:{_desired:"ceb",_distance:"30",_oneway:"true"}},{en:{_desired:"chr",_distance:"20",_oneway:"true"}},{ar:{_desired:"ckb",_distance:"30",_oneway:"true"}},{fr:{_desired:"co",_distance:"20",_oneway:"true"}},{fr:{_desired:"crs",_distance:"20",_oneway:"true"}},{sk:{_desired:"cs",_distance:"20"}},{en:{_desired:"cy",_distance:"20",_oneway:"true"}},{en:{_desired:"ee",_distance:"30",_oneway:"true"}},{en:{_desired:"eo",_distance:"30",_oneway:"true"}},{es:{_desired:"eu",_distance:"20",_oneway:"true"}},{da:{_desired:"fo",_distance:"20",_oneway:"true"}},{nl:{_desired:"fy",_distance:"20",_oneway:"true"}},{en:{_desired:"ga",_distance:"20",_oneway:"true"}},{en:{_desired:"gaa",_distance:"30",_oneway:"true"}},{en:{_desired:"gd",_distance:"20",_oneway:"true"}},{es:{_desired:"gl",_distance:"20",_oneway:"true"}},{es:{_desired:"gn",_distance:"20",_oneway:"true"}},{hi:{_desired:"gu",_distance:"30",_oneway:"true"}},{en:{_desired:"ha",_distance:"30",_oneway:"true"}},{en:{_desired:"haw",_distance:"20",_oneway:"true"}},{fr:{_desired:"ht",_distance:"20",_oneway:"true"}},{ru:{_desired:"hy",_distance:"30",_oneway:"true"}},{en:{_desired:"ia",_distance:"30",_oneway:"true"}},{en:{_desired:"ig",_distance:"30",_oneway:"true"}},{en:{_desired:"is",_distance:"20",_oneway:"true"}},{id:{_desired:"jv",_distance:"20",_oneway:"true"}},{en:{_desired:"ka",_distance:"30",_oneway:"true"}},{fr:{_desired:"kg",_distance:"30",_oneway:"true"}},{ru:{_desired:"kk",_distance:"30",_oneway:"true"}},{en:{_desired:"km",_distance:"30",_oneway:"true"}},{en:{_desired:"kn",_distance:"30",_oneway:"true"}},{en:{_desired:"kri",_distance:"30",_oneway:"true"}},{tr:{_desired:"ku",_distance:"30",_oneway:"true"}},{ru:{_desired:"ky",_distance:"30",_oneway:"true"}},{it:{_desired:"la",_distance:"20",_oneway:"true"}},{en:{_desired:"lg",_distance:"30",_oneway:"true"}},{fr:{_desired:"ln",_distance:"30",_oneway:"true"}},{en:{_desired:"lo",_distance:"30",_oneway:"true"}},{en:{_desired:"loz",_distance:"30",_oneway:"true"}},{fr:{_desired:"lua",_distance:"30",_oneway:"true"}},{hi:{_desired:"mai",_distance:"20",_oneway:"true"}},{en:{_desired:"mfe",_distance:"30",_oneway:"true"}},{fr:{_desired:"mg",_distance:"30",_oneway:"true"}},{en:{_desired:"mi",_distance:"20",_oneway:"true"}},{en:{_desired:"ml",_distance:"30",_oneway:"true"}},{ru:{_desired:"mn",_distance:"30",_oneway:"true"}},{hi:{_desired:"mr",_distance:"30",_oneway:"true"}},{id:{_desired:"ms",_distance:"30",_oneway:"true"}},{en:{_desired:"mt",_distance:"30",_oneway:"true"}},{en:{_desired:"my",_distance:"30",_oneway:"true"}},{en:{_desired:"ne",_distance:"30",_oneway:"true"}},{nb:{_desired:"nn",_distance:"20"}},{no:{_desired:"nn",_distance:"20"}},{en:{_desired:"nso",_distance:"30",_oneway:"true"}},{en:{_desired:"ny",_distance:"30",_oneway:"true"}},{en:{_desired:"nyn",_distance:"30",_oneway:"true"}},{fr:{_desired:"oc",_distance:"20",_oneway:"true"}},{en:{_desired:"om",_distance:"30",_oneway:"true"}},{en:{_desired:"or",_distance:"30",_oneway:"true"}},{en:{_desired:"pa",_distance:"30",_oneway:"true"}},{en:{_desired:"pcm",_distance:"20",_oneway:"true"}},{en:{_desired:"ps",_distance:"30",_oneway:"true"}},{es:{_desired:"qu",_distance:"30",_oneway:"true"}},{de:{_desired:"rm",_distance:"20",_oneway:"true"}},{en:{_desired:"rn",_distance:"30",_oneway:"true"}},{fr:{_desired:"rw",_distance:"30",_oneway:"true"}},{hi:{_desired:"sa",_distance:"30",_oneway:"true"}},{en:{_desired:"sd",_distance:"30",_oneway:"true"}},{en:{_desired:"si",_distance:"30",_oneway:"true"}},{en:{_desired:"sn",_distance:"30",_oneway:"true"}},{en:{_desired:"so",_distance:"30",_oneway:"true"}},{en:{_desired:"sq",_distance:"30",_oneway:"true"}},{en:{_desired:"st",_distance:"30",_oneway:"true"}},{id:{_desired:"su",_distance:"20",_oneway:"true"}},{en:{_desired:"sw",_distance:"30",_oneway:"true"}},{en:{_desired:"ta",_distance:"30",_oneway:"true"}},{en:{_desired:"te",_distance:"30",_oneway:"true"}},{ru:{_desired:"tg",_distance:"30",_oneway:"true"}},{en:{_desired:"ti",_distance:"30",_oneway:"true"}},{ru:{_desired:"tk",_distance:"30",_oneway:"true"}},{en:{_desired:"tlh",_distance:"30",_oneway:"true"}},{en:{_desired:"tn",_distance:"30",_oneway:"true"}},{en:{_desired:"to",_distance:"30",_oneway:"true"}},{ru:{_desired:"tt",_distance:"30",_oneway:"true"}},{en:{_desired:"tum",_distance:"30",_oneway:"true"}},{zh:{_desired:"ug",_distance:"20",_oneway:"true"}},{ru:{_desired:"uk",_distance:"20",_oneway:"true"}},{en:{_desired:"ur",_distance:"30",_oneway:"true"}},{ru:{_desired:"uz",_distance:"30",_oneway:"true"}},{fr:{_desired:"wo",_distance:"30",_oneway:"true"}},{en:{_desired:"xh",_distance:"30",_oneway:"true"}},{en:{_desired:"yi",_distance:"30",_oneway:"true"}},{en:{_desired:"yo",_distance:"30",_oneway:"true"}},{zh:{_desired:"za",_distance:"20",_oneway:"true"}},{en:{_desired:"zu",_distance:"30",_oneway:"true"}},{ar:{_desired:"aao",_distance:"10",_oneway:"true"}},{ar:{_desired:"abh",_distance:"10",_oneway:"true"}},{ar:{_desired:"abv",_distance:"10",_oneway:"true"}},{ar:{_desired:"acm",_distance:"10",_oneway:"true"}},{ar:{_desired:"acq",_distance:"10",_oneway:"true"}},{ar:{_desired:"acw",_distance:"10",_oneway:"true"}},{ar:{_desired:"acx",_distance:"10",_oneway:"true"}},{ar:{_desired:"acy",_distance:"10",_oneway:"true"}},{ar:{_desired:"adf",_distance:"10",_oneway:"true"}},{ar:{_desired:"aeb",_distance:"10",_oneway:"true"}},{ar:{_desired:"aec",_distance:"10",_oneway:"true"}},{ar:{_desired:"afb",_distance:"10",_oneway:"true"}},{ar:{_desired:"ajp",_distance:"10",_oneway:"true"}},{ar:{_desired:"apc",_distance:"10",_oneway:"true"}},{ar:{_desired:"apd",_distance:"10",_oneway:"true"}},{ar:{_desired:"arq",_distance:"10",_oneway:"true"}},{ar:{_desired:"ars",_distance:"10",_oneway:"true"}},{ar:{_desired:"ary",_distance:"10",_oneway:"true"}},{ar:{_desired:"arz",_distance:"10",_oneway:"true"}},{ar:{_desired:"auz",_distance:"10",_oneway:"true"}},{ar:{_desired:"avl",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayh",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayl",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayn",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayp",_distance:"10",_oneway:"true"}},{ar:{_desired:"bbz",_distance:"10",_oneway:"true"}},{ar:{_desired:"pga",_distance:"10",_oneway:"true"}},{ar:{_desired:"shu",_distance:"10",_oneway:"true"}},{ar:{_desired:"ssh",_distance:"10",_oneway:"true"}},{az:{_desired:"azb",_distance:"10",_oneway:"true"}},{et:{_desired:"vro",_distance:"10",_oneway:"true"}},{ff:{_desired:"ffm",_distance:"10",_oneway:"true"}},{ff:{_desired:"fub",_distance:"10",_oneway:"true"}},{ff:{_desired:"fue",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuf",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuh",_distance:"10",_oneway:"true"}},{ff:{_desired:"fui",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuq",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuv",_distance:"10",_oneway:"true"}},{gn:{_desired:"gnw",_distance:"10",_oneway:"true"}},{gn:{_desired:"gui",_distance:"10",_oneway:"true"}},{gn:{_desired:"gun",_distance:"10",_oneway:"true"}},{gn:{_desired:"nhd",_distance:"10",_oneway:"true"}},{iu:{_desired:"ikt",_distance:"10",_oneway:"true"}},{kln:{_desired:"enb",_distance:"10",_oneway:"true"}},{kln:{_desired:"eyo",_distance:"10",_oneway:"true"}},{kln:{_desired:"niq",_distance:"10",_oneway:"true"}},{kln:{_desired:"oki",_distance:"10",_oneway:"true"}},{kln:{_desired:"pko",_distance:"10",_oneway:"true"}},{kln:{_desired:"sgc",_distance:"10",_oneway:"true"}},{kln:{_desired:"tec",_distance:"10",_oneway:"true"}},{kln:{_desired:"tuy",_distance:"10",_oneway:"true"}},{kok:{_desired:"gom",_distance:"10",_oneway:"true"}},{kpe:{_desired:"gkp",_distance:"10",_oneway:"true"}},{luy:{_desired:"ida",_distance:"10",_oneway:"true"}},{luy:{_desired:"lkb",_distance:"10",_oneway:"true"}},{luy:{_desired:"lko",_distance:"10",_oneway:"true"}},{luy:{_desired:"lks",_distance:"10",_oneway:"true"}},{luy:{_desired:"lri",_distance:"10",_oneway:"true"}},{luy:{_desired:"lrm",_distance:"10",_oneway:"true"}},{luy:{_desired:"lsm",_distance:"10",_oneway:"true"}},{luy:{_desired:"lto",_distance:"10",_oneway:"true"}},{luy:{_desired:"lts",_distance:"10",_oneway:"true"}},{luy:{_desired:"lwg",_distance:"10",_oneway:"true"}},{luy:{_desired:"nle",_distance:"10",_oneway:"true"}},{luy:{_desired:"nyd",_distance:"10",_oneway:"true"}},{luy:{_desired:"rag",_distance:"10",_oneway:"true"}},{lv:{_desired:"ltg",_distance:"10",_oneway:"true"}},{mg:{_desired:"bhr",_distance:"10",_oneway:"true"}},{mg:{_desired:"bjq",_distance:"10",_oneway:"true"}},{mg:{_desired:"bmm",_distance:"10",_oneway:"true"}},{mg:{_desired:"bzc",_distance:"10",_oneway:"true"}},{mg:{_desired:"msh",_distance:"10",_oneway:"true"}},{mg:{_desired:"skg",_distance:"10",_oneway:"true"}},{mg:{_desired:"tdx",_distance:"10",_oneway:"true"}},{mg:{_desired:"tkg",_distance:"10",_oneway:"true"}},{mg:{_desired:"txy",_distance:"10",_oneway:"true"}},{mg:{_desired:"xmv",_distance:"10",_oneway:"true"}},{mg:{_desired:"xmw",_distance:"10",_oneway:"true"}},{mn:{_desired:"mvf",_distance:"10",_oneway:"true"}},{ms:{_desired:"bjn",_distance:"10",_oneway:"true"}},{ms:{_desired:"btj",_distance:"10",_oneway:"true"}},{ms:{_desired:"bve",_distance:"10",_oneway:"true"}},{ms:{_desired:"bvu",_distance:"10",_oneway:"true"}},{ms:{_desired:"coa",_distance:"10",_oneway:"true"}},{ms:{_desired:"dup",_distance:"10",_oneway:"true"}},{ms:{_desired:"hji",_distance:"10",_oneway:"true"}},{ms:{_desired:"id",_distance:"10",_oneway:"true"}},{ms:{_desired:"jak",_distance:"10",_oneway:"true"}},{ms:{_desired:"jax",_distance:"10",_oneway:"true"}},{ms:{_desired:"kvb",_distance:"10",_oneway:"true"}},{ms:{_desired:"kvr",_distance:"10",_oneway:"true"}},{ms:{_desired:"kxd",_distance:"10",_oneway:"true"}},{ms:{_desired:"lce",_distance:"10",_oneway:"true"}},{ms:{_desired:"lcf",_distance:"10",_oneway:"true"}},{ms:{_desired:"liw",_distance:"10",_oneway:"true"}},{ms:{_desired:"max",_distance:"10",_oneway:"true"}},{ms:{_desired:"meo",_distance:"10",_oneway:"true"}},{ms:{_desired:"mfa",_distance:"10",_oneway:"true"}},{ms:{_desired:"mfb",_distance:"10",_oneway:"true"}},{ms:{_desired:"min",_distance:"10",_oneway:"true"}},{ms:{_desired:"mqg",_distance:"10",_oneway:"true"}},{ms:{_desired:"msi",_distance:"10",_oneway:"true"}},{ms:{_desired:"mui",_distance:"10",_oneway:"true"}},{ms:{_desired:"orn",_distance:"10",_oneway:"true"}},{ms:{_desired:"ors",_distance:"10",_oneway:"true"}},{ms:{_desired:"pel",_distance:"10",_oneway:"true"}},{ms:{_desired:"pse",_distance:"10",_oneway:"true"}},{ms:{_desired:"tmw",_distance:"10",_oneway:"true"}},{ms:{_desired:"urk",_distance:"10",_oneway:"true"}},{ms:{_desired:"vkk",_distance:"10",_oneway:"true"}},{ms:{_desired:"vkt",_distance:"10",_oneway:"true"}},{ms:{_desired:"xmm",_distance:"10",_oneway:"true"}},{ms:{_desired:"zlm",_distance:"10",_oneway:"true"}},{ms:{_desired:"zmi",_distance:"10",_oneway:"true"}},{ne:{_desired:"dty",_distance:"10",_oneway:"true"}},{om:{_desired:"gax",_distance:"10",_oneway:"true"}},{om:{_desired:"hae",_distance:"10",_oneway:"true"}},{om:{_desired:"orc",_distance:"10",_oneway:"true"}},{or:{_desired:"spv",_distance:"10",_oneway:"true"}},{ps:{_desired:"pbt",_distance:"10",_oneway:"true"}},{ps:{_desired:"pst",_distance:"10",_oneway:"true"}},{qu:{_desired:"qub",_distance:"10",_oneway:"true"}},{qu:{_desired:"qud",_distance:"10",_oneway:"true"}},{qu:{_desired:"quf",_distance:"10",_oneway:"true"}},{qu:{_desired:"qug",_distance:"10",_oneway:"true"}},{qu:{_desired:"quh",_distance:"10",_oneway:"true"}},{qu:{_desired:"quk",_distance:"10",_oneway:"true"}},{qu:{_desired:"qul",_distance:"10",_oneway:"true"}},{qu:{_desired:"qup",_distance:"10",_oneway:"true"}},{qu:{_desired:"qur",_distance:"10",_oneway:"true"}},{qu:{_desired:"qus",_distance:"10",_oneway:"true"}},{qu:{_desired:"quw",_distance:"10",_oneway:"true"}},{qu:{_desired:"qux",_distance:"10",_oneway:"true"}},{qu:{_desired:"quy",_distance:"10",_oneway:"true"}},{qu:{_desired:"qva",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qve",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvi",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvj",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvl",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvm",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvn",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvo",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvp",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvs",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvw",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvz",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwa",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qws",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxa",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxl",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxn",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxo",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxp",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxr",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxt",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxu",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxw",_distance:"10",_oneway:"true"}},{sc:{_desired:"sdc",_distance:"10",_oneway:"true"}},{sc:{_desired:"sdn",_distance:"10",_oneway:"true"}},{sc:{_desired:"sro",_distance:"10",_oneway:"true"}},{sq:{_desired:"aae",_distance:"10",_oneway:"true"}},{sq:{_desired:"aat",_distance:"10",_oneway:"true"}},{sq:{_desired:"aln",_distance:"10",_oneway:"true"}},{syr:{_desired:"aii",_distance:"10",_oneway:"true"}},{uz:{_desired:"uzs",_distance:"10",_oneway:"true"}},{yi:{_desired:"yih",_distance:"10",_oneway:"true"}},{zh:{_desired:"cdo",_distance:"10",_oneway:"true"}},{zh:{_desired:"cjy",_distance:"10",_oneway:"true"}},{zh:{_desired:"cpx",_distance:"10",_oneway:"true"}},{zh:{_desired:"czh",_distance:"10",_oneway:"true"}},{zh:{_desired:"czo",_distance:"10",_oneway:"true"}},{zh:{_desired:"gan",_distance:"10",_oneway:"true"}},{zh:{_desired:"hak",_distance:"10",_oneway:"true"}},{zh:{_desired:"hsn",_distance:"10",_oneway:"true"}},{zh:{_desired:"lzh",_distance:"10",_oneway:"true"}},{zh:{_desired:"mnp",_distance:"10",_oneway:"true"}},{zh:{_desired:"nan",_distance:"10",_oneway:"true"}},{zh:{_desired:"wuu",_distance:"10",_oneway:"true"}},{zh:{_desired:"yue",_distance:"10",_oneway:"true"}},{"*":{_desired:"*",_distance:"80"}},{"en-Latn":{_desired:"am-Ethi",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"az-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"bn-Beng",_distance:"10",_oneway:"true"}},{"zh-Hans":{_desired:"bo-Tibt",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"hy-Armn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ka-Geor",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"km-Khmr",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"kn-Knda",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"lo-Laoo",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ml-Mlym",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"my-Mymr",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ne-Deva",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"or-Orya",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"pa-Guru",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ps-Arab",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"sd-Arab",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"si-Sinh",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ta-Taml",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"te-Telu",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ti-Ethi",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"tk-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ur-Arab",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"uz-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"yi-Hebr",_distance:"10",_oneway:"true"}},{"sr-Cyrl":{_desired:"sr-Latn",_distance:"5"}},{"zh-Hans":{_desired:"za-Latn",_distance:"10",_oneway:"true"}},{"zh-Hans":{_desired:"zh-Hani",_distance:"20",_oneway:"true"}},{"zh-Hant":{_desired:"zh-Hani",_distance:"20",_oneway:"true"}},{"ar-Arab":{_desired:"ar-Latn",_distance:"20",_oneway:"true"}},{"bn-Beng":{_desired:"bn-Latn",_distance:"20",_oneway:"true"}},{"gu-Gujr":{_desired:"gu-Latn",_distance:"20",_oneway:"true"}},{"hi-Deva":{_desired:"hi-Latn",_distance:"20",_oneway:"true"}},{"kn-Knda":{_desired:"kn-Latn",_distance:"20",_oneway:"true"}},{"ml-Mlym":{_desired:"ml-Latn",_distance:"20",_oneway:"true"}},{"mr-Deva":{_desired:"mr-Latn",_distance:"20",_oneway:"true"}},{"ta-Taml":{_desired:"ta-Latn",_distance:"20",_oneway:"true"}},{"te-Telu":{_desired:"te-Latn",_distance:"20",_oneway:"true"}},{"zh-Hans":{_desired:"zh-Latn",_distance:"20",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Latn",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hani",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hira",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Kana",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hrkt",_distance:"5",_oneway:"true"}},{"ja-Hrkt":{_desired:"ja-Hira",_distance:"5",_oneway:"true"}},{"ja-Hrkt":{_desired:"ja-Kana",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Hani",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Hang",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Jamo",_distance:"5",_oneway:"true"}},{"ko-Hang":{_desired:"ko-Jamo",_distance:"5",_oneway:"true"}},{"*-*":{_desired:"*-*",_distance:"50"}},{"ar-*-$maghreb":{_desired:"ar-*-$maghreb",_distance:"4"}},{"ar-*-$!maghreb":{_desired:"ar-*-$!maghreb",_distance:"4"}},{"ar-*-*":{_desired:"ar-*-*",_distance:"5"}},{"en-*-$enUS":{_desired:"en-*-$enUS",_distance:"4"}},{"en-*-GB":{_desired:"en-*-$!enUS",_distance:"3"}},{"en-*-$!enUS":{_desired:"en-*-$!enUS",_distance:"4"}},{"en-*-*":{_desired:"en-*-*",_distance:"5"}},{"es-*-$americas":{_desired:"es-*-$americas",_distance:"4"}},{"es-*-$!americas":{_desired:"es-*-$!americas",_distance:"4"}},{"es-*-*":{_desired:"es-*-*",_distance:"5"}},{"pt-*-$americas":{_desired:"pt-*-$americas",_distance:"4"}},{"pt-*-$!americas":{_desired:"pt-*-$!americas",_distance:"4"}},{"pt-*-*":{_desired:"pt-*-*",_distance:"5"}},{"zh-Hant-$cnsar":{_desired:"zh-Hant-$cnsar",_distance:"4"}},{"zh-Hant-$!cnsar":{_desired:"zh-Hant-$!cnsar",_distance:"4"}},{"zh-Hant-*":{_desired:"zh-Hant-*",_distance:"5"}},{"*-*-*":{_desired:"*-*-*",_distance:"4"}}]}}},rf={"001":["001","001-status-grouping","002","005","009","011","013","014","015","017","018","019","021","029","030","034","035","039","053","054","057","061","142","143","145","150","151","154","155","AC","AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CP","CQ","CR","CU","CV","CW","CX","CY","CZ","DE","DG","DJ","DK","DM","DO","DZ","EA","EC","EE","EG","EH","ER","ES","ET","EU","EZ","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","IC","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","QO","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TA","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","UN","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"002":["002","002-status-grouping","011","014","015","017","018","202","AO","BF","BI","BJ","BW","CD","CF","CG","CI","CM","CV","DJ","DZ","EA","EG","EH","ER","ET","GA","GH","GM","GN","GQ","GW","IC","IO","KE","KM","LR","LS","LY","MA","MG","ML","MR","MU","MW","MZ","NA","NE","NG","RE","RW","SC","SD","SH","SL","SN","SO","SS","ST","SZ","TD","TF","TG","TN","TZ","UG","YT","ZA","ZM","ZW"],"003":["003","013","021","029","AG","AI","AW","BB","BL","BM","BQ","BS","BZ","CA","CR","CU","CW","DM","DO","GD","GL","GP","GT","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PM","PR","SV","SX","TC","TT","US","VC","VG","VI"],"005":["005","AR","BO","BR","BV","CL","CO","EC","FK","GF","GS","GY","PE","PY","SR","UY","VE"],"009":["009","053","054","057","061","AC","AQ","AS","AU","CC","CK","CP","CX","DG","FJ","FM","GU","HM","KI","MH","MP","NC","NF","NR","NU","NZ","PF","PG","PN","PW","QO","SB","TA","TK","TO","TV","UM","VU","WF","WS"],"011":["011","BF","BJ","CI","CV","GH","GM","GN","GW","LR","ML","MR","NE","NG","SH","SL","SN","TG"],"013":["013","BZ","CR","GT","HN","MX","NI","PA","SV"],"014":["014","BI","DJ","ER","ET","IO","KE","KM","MG","MU","MW","MZ","RE","RW","SC","SO","SS","TF","TZ","UG","YT","ZM","ZW"],"015":["015","DZ","EA","EG","EH","IC","LY","MA","SD","TN"],"017":["017","AO","CD","CF","CG","CM","GA","GQ","ST","TD"],"018":["018","BW","LS","NA","SZ","ZA"],"019":["003","005","013","019","019-status-grouping","021","029","419","AG","AI","AR","AW","BB","BL","BM","BO","BQ","BR","BS","BV","BZ","CA","CL","CO","CR","CU","CW","DM","DO","EC","FK","GD","GF","GL","GP","GS","GT","GY","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PE","PM","PR","PY","SR","SV","SX","TC","TT","US","UY","VC","VE","VG","VI"],"021":["021","BM","CA","GL","PM","US"],"029":["029","AG","AI","AW","BB","BL","BQ","BS","CU","CW","DM","DO","GD","GP","HT","JM","KN","KY","LC","MF","MQ","MS","PR","SX","TC","TT","VC","VG","VI"],"030":["030","CN","HK","JP","KP","KR","MN","MO","TW"],"034":["034","AF","BD","BT","IN","IR","LK","MV","NP","PK"],"035":["035","BN","ID","KH","LA","MM","MY","PH","SG","TH","TL","VN"],"039":["039","AD","AL","BA","ES","GI","GR","HR","IT","ME","MK","MT","PT","RS","SI","SM","VA","XK"],"053":["053","AU","CC","CX","HM","NF","NZ"],"054":["054","FJ","NC","PG","SB","VU"],"057":["057","FM","GU","KI","MH","MP","NR","PW","UM"],"061":["061","AS","CK","NU","PF","PN","TK","TO","TV","WF","WS"],142:["030","034","035","142","143","145","AE","AF","AM","AZ","BD","BH","BN","BT","CN","CY","GE","HK","ID","IL","IN","IQ","IR","JO","JP","KG","KH","KP","KR","KW","KZ","LA","LB","LK","MM","MN","MO","MV","MY","NP","OM","PH","PK","PS","QA","SA","SG","SY","TH","TJ","TL","TM","TR","TW","UZ","VN","YE"],143:["143","KG","KZ","TJ","TM","UZ"],145:["145","AE","AM","AZ","BH","CY","GE","IL","IQ","JO","KW","LB","OM","PS","QA","SA","SY","TR","YE"],150:["039","150","151","154","155","AD","AL","AT","AX","BA","BE","BG","BY","CH","CQ","CZ","DE","DK","EE","ES","FI","FO","FR","GB","GG","GI","GR","HR","HU","IE","IM","IS","IT","JE","LI","LT","LU","LV","MC","MD","ME","MK","MT","NL","NO","PL","PT","RO","RS","RU","SE","SI","SJ","SK","SM","UA","VA","XK"],151:["151","BG","BY","CZ","HU","MD","PL","RO","RU","SK","UA"],154:["154","AX","CQ","DK","EE","FI","FO","GB","GG","IE","IM","IS","JE","LT","LV","NO","SE","SJ"],155:["155","AT","BE","CH","DE","FR","LI","LU","MC","NL"],202:["011","014","017","018","202","AO","BF","BI","BJ","BW","CD","CF","CG","CI","CM","CV","DJ","ER","ET","GA","GH","GM","GN","GQ","GW","IO","KE","KM","LR","LS","MG","ML","MR","MU","MW","MZ","NA","NE","NG","RE","RW","SC","SH","SL","SN","SO","SS","ST","SZ","TD","TF","TG","TZ","UG","YT","ZA","ZM","ZW"],419:["005","013","029","419","AG","AI","AR","AW","BB","BL","BO","BQ","BR","BS","BV","BZ","CL","CO","CR","CU","CW","DM","DO","EC","FK","GD","GF","GP","GS","GT","GY","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PE","PR","PY","SR","SV","SX","TC","TT","UY","VC","VE","VG","VI"],EU:["AT","BE","BG","CY","CZ","DE","DK","EE","ES","EU","FI","FR","GR","HR","HU","IE","IT","LT","LU","LV","MT","NL","PL","PT","RO","SE","SI","SK"],EZ:["AT","BE","CY","DE","EE","ES","EZ","FI","FR","GR","IE","IT","LT","LU","LV","MT","NL","PT","SI","SK"],QO:["AC","AQ","CP","DG","QO","TA"],UN:["AD","AE","AF","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CF","CG","CH","CI","CL","CM","CN","CO","CR","CU","CV","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ER","ES","ET","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IR","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MM","MN","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SI","SK","SL","SM","SN","SO","SR","SS","ST","SV","SY","SZ","TD","TG","TH","TJ","TL","TM","TN","TO","TR","TT","TV","TZ","UA","UG","UN","US","UY","UZ","VC","VE","VN","VU","WS","YE","ZA","ZM","ZW"]},Fn=/-u(?:-[0-9a-z]{2,8})+/gi;function Ce(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}var nf=838,Or;function of(){var e,t;if(!Or){var r=(t=(e=Lr.supplemental.languageMatching["written-new"][0])===null||e===void 0?void 0:e.paradigmLocales)===null||t===void 0?void 0:t._locales.split(" "),n=Lr.supplemental.languageMatching["written-new"].slice(1,5),o=Lr.supplemental.languageMatching["written-new"].slice(5),a=o.map(function(i){var s=Object.keys(i)[0],l=i[s];return{supported:s,desired:l._desired,distance:+l._distance,oneway:l.oneway==="true"}},{});Or={matches:a,matchVariables:n.reduce(function(i,s){var l=Object.keys(s)[0],u=s[l];return i[l.slice(1)]=u._value.split("+"),i},{}),paradigmLocales:pt(pt([],r,!0),r.map(function(i){return new Intl.Locale(i.replace(/_/g,"-")).maximize().toString()}),!0)}}return Or}function $t(e,t,r){var n=t.split("-"),o=n[0],a=n[1],i=n[2],s=!0;if(i&&i[0]==="$"){var l=i[1]!=="!",u=l?r[i.slice(1)]:r[i.slice(2)],f=u.map(function(c){return rf[c]||[c]}).reduce(function(c,h){return pt(pt([],c,!0),h,!0)},[]);s&&(s=f.indexOf(e.region||"")>-1==l)}else s&&(s=e.region?i==="*"||i===e.region:!0);return s&&(s=e.script?a==="*"||a===e.script:!0),s&&(s=e.language?o==="*"||o===e.language:!0),s}function Vo(e){return[e.language,e.script,e.region].filter(Boolean).join("-")}function Mr(e,t,r){for(var n=0,o=r.matches;n<o.length;n++){var a=o[n],i=$t(e,a.desired,r.matchVariables)&&$t(t,a.supported,r.matchVariables);if(!a.oneway&&!i&&(i=$t(e,a.supported,r.matchVariables)&&$t(t,a.desired,r.matchVariables)),i){var s=a.distance*10;return r.paradigmLocales.indexOf(Vo(e))>-1!=r.paradigmLocales.indexOf(Vo(t))>-1?s-1:s}}throw new Error("No matching distance found")}function af(e,t){var r=new Intl.Locale(e).maximize(),n=new Intl.Locale(t).maximize(),o={language:r.language,script:r.script||"",region:r.region||""},a={language:n.language,script:n.script||"",region:n.region||""},i=0,s=of();return o.language!==a.language&&(i+=Mr({language:r.language,script:"",region:""},{language:n.language,script:"",region:""},s)),o.script!==a.script&&(i+=Mr({language:r.language,script:o.script,region:""},{language:n.language,script:a.script,region:""},s)),o.region!==a.region&&(i+=Mr(o,a,s)),i}function sf(e,t,r){r===void 0&&(r=nf);var n=1/0,o={matchedDesiredLocale:"",distances:{}};return e.forEach(function(a,i){o.distances[a]||(o.distances[a]={}),t.forEach(function(s){var l=af(a,s)+0+i*40;o.distances[a][s]=l,l<n&&(n=l,o.matchedDesiredLocale=a,o.matchedSupportedLocale=s)})}),n>=r&&(o.matchedDesiredLocale=void 0,o.matchedSupportedLocale=void 0),o}function lf(e,t,r){var n,o,a=[],i=t.reduce(function(l,u){var f=u.replace(Fn,"");return a.push(f),l[f]=u,l},{}),s=sf(a,e);return s.matchedSupportedLocale&&s.matchedDesiredLocale&&(n=s.matchedSupportedLocale,o=i[s.matchedDesiredLocale].slice(s.matchedDesiredLocale.length)||void 0),n?{locale:n,extension:o}:{locale:r()}}function uf(e,t){var r=t.toLowerCase();Ce(e!==void 0,"ukey must be defined");var n=r;return n}function Yo(e){return Intl.getCanonicalLocales(e)[0]}function cf(e,t,r){Ce(e.indexOf("-u-")===-1,"Expected locale to not have a Unicode locale extension");for(var n="-u",o=0,a=t;o<a.length;o++){var i=a[o];n+="-".concat(i)}for(var s=0,l=r;s<l.length;s++){var u=l[s],f=u.key,c=u.value;n+="-".concat(f),c!==""&&(n+="-".concat(c))}if(n==="-u")return Yo(e);var h=e.indexOf("-x-"),d;if(h===-1)d=e+n;else{var _=e.slice(0,h),m=e.slice(h);d=_+n+m}return Yo(d)}function ds(e,t){for(var r=t;;){if(e.indexOf(r)>-1)return r;var n=r.lastIndexOf("-");if(!~n)return;n>=2&&r[n-2]==="-"&&(n-=2),r=r.slice(0,n)}}function df(e,t,r){for(var n={locale:""},o=0,a=t;o<a.length;o++){var i=a[o],s=i.replace(Fn,""),l=ds(e,s);if(l)return n.locale=l,i!==s&&(n.extension=i.slice(s.length,i.length)),n}return n.locale=r(),n}function ff(e){Ce(e===e.toLowerCase(),"Expected extension to be lowercase"),Ce(e.slice(0,3)==="-u-","Expected extension to be a Unicode locale extension");for(var t=[],r=[],n,o=e.length,a=3;a<o;){var i=e.indexOf("-",a),s=void 0;i===-1?s=o-a:s=i-a;var l=e.slice(a,a+s);Ce(s>=2,"Expected a subtag to have at least 2 characters"),n===void 0&&s!=2?t.indexOf(l)===-1&&t.push(l):s===2?(n={key:l,value:""},r.find(function(u){return u.key===n?.key})===void 0&&r.push(n)):n?.value===""?n.value=l:(Ce(n!==void 0,"Expected keyword to be defined"),n.value+="-"+l),a+=s+1}return{attributes:t,keywords:r}}function fs(e,t,r,n,o,a){var i,s=r.localeMatcher,l;s==="lookup"?l=df(Array.from(e),t,a):l=lf(Array.from(e),t,a),l==null&&(l={locale:a(),extension:""});var u=l.locale,f=o[u],c={locale:"en",dataLocale:u},h,d;l.extension?(h=ff(l.extension),d=h.keywords):d=[];for(var _=[],m=function(D){var V=(i=f?.[D])!==null&&i!==void 0?i:[];Ce(Array.isArray(V),"keyLocaleData for ".concat(D," must be an array"));var K=V[0];Ce(K===void 0||typeof K=="string","value must be a string or undefined");var G=void 0,te=d.find(function(w){return w.key===D});if(te){var $=te.value;$!==""?V.indexOf($)>-1&&(K=$,G={key:D,value:K}):V.indexOf("true")>-1&&(K="true",G={key:D,value:K})}var J=r[D];if(Ce(J==null||typeof J=="string","optionsValue must be a string or undefined"),typeof J=="string"){var p=D.toLowerCase();J=uf(p,J),J===""&&(J="true")}J!==K&&V.indexOf(J)>-1&&(K=J,G=void 0),G&&_.push(G),c[D]=K},g=0,v=n;g<v.length;g++){var A=v[g];m(A)}var O=[];return _.length>0&&(O=[],u=cf(u,O,_)),c.locale=u,c}function hf(e,t){for(var r=[],n=0,o=t;n<o.length;n++){var a=o[n],i=a.replace(Fn,""),s=ds(e,i);s&&r.push(s)}return r}function hs(e,t,r,n){return fs(t,tf(e),{localeMatcher:n?.algorithm||"best fit"},[],{},function(){return r}).locale}const kh=Object.freeze(Object.defineProperty({__proto__:null,LookupSupportedLocales:hf,ResolveLocale:fs,match:hs},Symbol.toStringTag,{value:"Module"})),Zo="localeMatchCache";function ps(...e){try{return hs(...e)}catch{return e[2]||!1}}typeof window<"u"&&(window._localeMatch=ps);function pf(e){return function(...t){const r=t.map(a=>Array.isArray(a)?a.join(","):a).join("|");let n;try{n=F.session.getJSON(Zo)||{}}catch{return e(...t)}if(n[r])return n[r];const o=e(...t);try{n[r]=o,F.session.setJSON(Zo,n)}catch{}return o}}const mf=vt(pf(ps)),ms=xe(),_f="sprite-icon";function Nh({children:e}){const[t,r]=Te(new Set),[n,o]=Te({}),a=qe(async l=>{if(!t.has(l))try{const{ICONS:u}=await z(async()=>{const{ICONS:_}=await import("./ICONS-BLqAe1AS.js");return{ICONS:_}},[],import.meta.url),f=u[l];if(!f)return;let c;Array.isArray(f)?c=f[0]:typeof f=="object"?c=f.module:c=f;const d=(await c()).default;o(_=>({..._,[l]:d})),r(_=>new Set([..._,l]))}catch{}},[t]),i=qe(l=>t.has(l),[t]),s={loadIcon:a,isIconLoaded:i,loadedIcons:t,iconData:n};return be(ms.Provider,{value:s,children:[e,be(yf,{})]})}function yf(){const{loadedIcons:e,iconData:t}=vf();return e.size===0?null:be("svg",{style:{display:"none"},"aria-hidden":"true",children:be("defs",{children:Array.from(e).map(r=>{const n=t[r];return n?be(gf,{iconName:r,data:n},r):null})})})}const gf=_n(function({iconName:e,data:t}){return be("symbol",{id:`${_f}-${e}`,viewBox:`0 0 ${t.width} ${t.height}`,dangerouslySetInnerHTML:{__html:t.body}})},(e,t)=>e.iconName===t.iconName);function vf(){const e=se(ms);if(!e)throw new Error("useIconSprite must be used within IconSpriteProvider");return e}function wf({abrupt:e,hidden:t,...r}){return be("span",{...r,class:`loader-container ${e?"abrupt":""} ${t?"hidden":""}`,children:be("span",{class:"loader"})})}const qn=[{code:"ar-SA",nativeName:"العربية",name:"Arabic",completion:22,listed:!1},{code:"ca-ES",nativeName:"català",name:"Catalan",completion:100,listed:!0},{code:"cs-CZ",nativeName:"čeština",name:"Czech",completion:74,listed:!0},{code:"de-DE",nativeName:"Deutsch",name:"German",completion:90,listed:!0},{code:"eo-UY",nativeName:"Esperanto",name:"Esperanto",completion:97,listed:!0},{code:"es-ES",nativeName:"español",name:"Spanish",completion:100,listed:!0},{code:"eu-ES",nativeName:"euskara",name:"Basque",completion:100,listed:!0},{code:"fa-IR",nativeName:"فارسی",name:"Persian",completion:65,listed:!0},{code:"fi-FI",nativeName:"suomi",name:"Finnish",completion:100,listed:!0},{code:"fr-FR",nativeName:"français",name:"French",completion:95,listed:!0},{code:"gl-ES",nativeName:"galego",name:"Galician",completion:100,listed:!0},{code:"he-IL",nativeName:"עברית",name:"Hebrew",completion:22,listed:!1},{code:"it-IT",nativeName:"italiano",name:"Italian",completion:95,listed:!0},{code:"ja-JP",nativeName:"日本語",name:"Japanese",completion:43,listed:!1},{code:"kab",nativeName:"Taqbaylit",name:"Kabyle",completion:91,listed:!0},{code:"ko-KR",nativeName:"한국어",name:"Korean",completion:81,listed:!0},{code:"lt-LT",nativeName:"lietuvių",name:"Lithuanian",completion:93,listed:!0},{code:"nb-NO",nativeName:"norsk bokmål",name:"Norwegian Bokmål",completion:45,listed:!1},{code:"nl-NL",nativeName:"Nederlands",name:"Dutch",completion:69,listed:!0},{code:"pl-PL",nativeName:"polski",name:"Polish",completion:100,listed:!0},{code:"pt-BR",nativeName:"português",name:"Portuguese",completion:94,listed:!0},{code:"pt-PT",nativeName:"português",name:"Portuguese",completion:94,listed:!0},{code:"ru-RU",nativeName:"русский",name:"Russian",completion:100,listed:!0},{code:"th-TH",nativeName:"ไทย",name:"Thai",completion:8,listed:!1},{code:"tr-TR",nativeName:"Türkçe",name:"Turkish",completion:43,listed:!1},{code:"uk-UA",nativeName:"українська",name:"Ukrainian",completion:88,listed:!0},{code:"zh-CN",nativeName:"简体中文",name:"Simplified Chinese",completion:98,listed:!0},{code:"zh-TW",nativeName:"繁體中文",name:"Traditional Chinese",completion:29,listed:!1}],bf={BASE_URL:"./",DEV:!1,MODE:"production",PHANPY_CLIENT_NAME:"Phanpy",PHANPY_LINGVA_INSTANCES:"lingva.phanpy.social lingva.lunar.icu lingva.garudalinux.org translate.plausibility.cloud",PHANPY_PRIVACY_POLICY_URL:"https://github.com/cheeaun/phanpy/blob/main/PRIVACY.MD",PHANPY_TRANSLANG_INSTANCES:"translang.phanpy.social",PHANPY_WEBSITE:"https://phanpy.social",PROD:!0,SSR:!1,VITE_APP_ENV:"production"},dt="en",Ih=qn,_s=[dt,...qn.filter(({listed:e})=>e).map(({code:e})=>e)],Dh=_s;let cr=[];bf?.PHANPY_SHOW_DEV_LOCALES&&(cr=qn.filter(({listed:e})=>!e).map(({code:e})=>e),cr.push("pseudo-LOCALE"));const Uh=cr,Jo=[..._s,...cr],Ef=(e,t,r)=>{const n=e[t];return n?typeof n=="function"?n():Promise.resolve(n):new Promise((o,a)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(a.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==r?". Note that variables only represent file names one level deep.":""))))})};function Sf(e,t={useSessionStorage:!1}){return t.useSessionStorage?globalThis.sessionStorage.getItem(e):globalThis.localStorage.getItem(e)}function Af(e=globalThis.navigator){return e.language||e.userLanguage}function Cf(e){const t=/([^=?#&]+)=?([^&]*)/g,r={};let n;for(;n=t.exec(e);){const o=Qo(n[1]),a=Qo(n[2]);o===null||a===null||o in r||(r[o]=a)}return r}function Qo(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Pf(e,t=globalThis.location){if(!e)throw new Error("fromUrl parameter is required");return Cf(t.search)[e]||null}function Rf(...e){const t=[];for(let r=0;r<e.length;r++){const n=typeof e[r]=="function"?e[r]():e[r];n&&t.push(n)}return t}const Tf=/([\.\*\+\^\$\[\]\\\(\)\|\{\}\,\-\:\?])/g,Xo=/^([a-zA-Z]{2,3}|[a-zA-Z]{5,8})(-[a-zA-Z]{4})?(-(?:[a-zA-Z]{2}|\d{3}))?(-(?:[a-zA-Z\d]{5,8}|\d[a-zA-Z\d]{3}))?$/;class Ve{constructor(t){if(typeof t!="string")throw new TypeError("A string argument is expected");if(!Xo.test(t))throw new RangeError("A proper locale must be provided");this._locale=t}static _escapeRegExpPattern(t){return typeof t!="string"?t:t.replace(Tf,"\\$1")}static _toLowerCase(t,r){return typeof t!="string"?r&&t:t.toLowerCase()}static _toUpperCase(t,r){return typeof t!="string"?r&&t:t.toUpperCase()}static _trim(t,r,n){const o=[];let a;const i=function(l){o.push("^"+l+"+|"+l+"+$")};if(typeof r=="boolean"&&(n=r,r=null),typeof t!="string")return n?t:void 0;if(Array.isArray(r)&&r.map(l=>{const u=this._escapeRegExpPattern(l);i(u)}),typeof r=="string"){const l=this._escapeRegExpPattern(r);i(l)}r||i("\\s");const s="("+o.join("|")+")";for(a=new RegExp(s,"g");t.match(a);)t=t.replace(a,"");return t}static _parseLocale(t){if(typeof t!="string")return;const r=Xo.exec(t);let n,o,a;if(!t||!r)return;const i=this._trim(r[2],["-","_"]),s=this._trim(r[3],["-","_"]);return n=this._toLowerCase(r[1]),o=this._toLowerCase(i)||o,a=this._toUpperCase(s)||a,{lang:n,script:o,countryCode:a}}_isRtlLang(){const{lang:t,script:r}=Ve._parseLocale(this._locale);return r?Ve._RTL_SCRIPTS.indexOf(r)>=0:Ve._BIDI_RTL_LANGS.indexOf(t)>=0}getTextInfo(){return{direction:this._isRtlLang()?"rtl":"ltr"}}}Ve._RTL_SCRIPTS=["adlm","arab","armi","avst","chrs","cprt","elym","hatr","hebr","hung","khar","lydi","mand","mani","mend","merc","mero","narb","nbat","nkoo","orkh","ougr","palm","phli","phlp","phnx","prti","rohg","samr","sarb","sogd","sogo","syrc","thaa","yezi"];Ve._BIDI_RTL_LANGS=["ae","aeb","ajt","apc","apd","ar","ara","arb","arc","arq","ars","ary","arz","ave","avl","bal","bcc","bej","bft","bgn","bqi","brh","cja","ckb","cld","dcc","dgl","div","drw","dv","fa","fas","fia","fub","gbz","gjk","gju","glk","grc","gwc","gwt","haz","he","heb","hnd","hno","iw","ji","kas","kby","khw","ks","kvx","kxp","kzh","lad","lah","lki","lrc","luz","mde","mfa","mki","mvy","myz","mzn","nqo","oru","ota","otk","oui","pal","pbu","per","pes","phl","phn","pnb","pra","prd","prs","ps","pus","rhg","rmt","scl","sd","sdh","shu","skr","smp","snd","sog","swb","syr","tnf","trw","ug","uig","ur","urd","wni","xco","xld","xmn","xmr","xna","xpr","xsa","ydd","yi","yid","zdj"];const ys=JSON.parse(`{"+/xYEI":["Switch to Side Peek view"],"+38pse":["Reply scheduled"],"+3FjPq":["Unable to report post"],"+71G9C":[["count","plural",{"1":[["account"]," followed you."],"other":["<0><1>",["0"],"</1> people</0> followed you."]}]],"+9E7iR":["Connected on ",["0"]," (<0/>)"],"+Cxvld":["<0>Shift</0> + <1>c</1>"],"+GkIdc":["Scheduled Posts"],"+IJm1Z":["Muted"],"+Kq2vY":["Shortcut settings copied"],"+XOeb+":["Boosted/Liked by…"],"+ZzjRY":[["hashtagTitle"]],"+bAQ3S":["Only you can quote"],"+k97fV":["Nothing to see here yet."],"+kQ/cY":["Delete this list?"],"+niKJH":["anyone"],"+owNNn":["Posts"],"+syLpm":[["optionVotesCount","plural",{"one":["#"," vote"],"other":["#"," votes"]}]],"/2mUza":["Media attachments:"],"/3LJfX":["Unblock <0>@",["username"],"</0>"],"/4fHR1":["A draft post is currently minimized. Post or discard it before creating a new one."],"/5ZKeE":["Pop in"],"/7UQ7y":["Whole word"],"/BGBeF":["Muted ",["username"]],"/CLBTL":["Note: This feature uses external GIF search service, powered by <0>GIPHY</0>. G-rated (suitable for viewing by all ages), tracking parameters are stripped, referrer information is omitted from requests, but search queries and IP address information will still reach their servers."],"/Cw4Tx":["Downloading GIF…"],"/IX/7x":["Other"],"/JFxxT":["Switch to account's instance ",["0"]],"/KEBaP":["Unable to copy HTML code"],"/MJ7gZ":["No lists."],"/OvbEC":["e.g. “mastodon.social”"],"/W5yFF":["Delete this draft?"],"/WA/tl":["View all notifications"],"/Xg6f6":["No quotes yet"],"/bZzdR":["Mentions"],"/cKnpj":["Account posts"],"/dlmrZ":["Show all authors"],"/fY1js":["Ask a question"],"/nf2x7":["Math expressions found."],"/plB9m":["Muted @",["username"]," for ",["0"]],"/zL/Mq":["Scheduled post deleted"],"03Qqf9":["Filtered"],"03jFGT":["No one mentioned you :("],"03vjxE":["Replying to @",["0"]],"09u3Kk":["Delete scheduled post?"],"0J4sZq":["Error deleting drafts! Please try again."],"0MgdN+":["Back to top"],"0NXzv9":["Private posts cannot be quoted"],"0OHPem":["This is static, unstyled and scriptless. You may need to apply your own styles and edit as needed."],"0SdaOt":["Post translation"],"0WUFGD":["Showing posts in ",["0"]],"0X2KC8":["Boosts from @",["username"]," enabled."],"0h4/9h":[" Notifications disabled for @",["username"],"'s posts."],"0mC0SF":["Auto refresh timeline posts"],"0tG4wG":["Unable to unblock @",["username"]],"0tQ7AD":["Density"],"0tZAhT":["⚠️⚠️⚠️ Very experimental.<0/>Stored in your own profiles notes. Profile (private) notes are mainly used for other profiles, and hidden for own profile."],"0udtPI":["Only mentions"],"0whvLM":[["0","plural",{"one":["Announcement"],"other":["Announcements"]}]],"10OlfF":["Nothing to show"],"1C/9Sa":["Bookmarked"],"1JZ175":[["0","plural",{"one":["#"," keyword"],"other":["#"," keywords"]}]],"1QfxQT":["Dismiss"],"1RfGk7":["Let's catch up on the posts from your followings."],"1TNIig":["Open"],"1dyGG/":["Catch-up ",["0"]," removed"],"1njn7W":["Light"],"1o+mEC":["last 4 hours"],"1pKapz":["Send post"],"1qL+L+":["Specific list is optional. For multi-column mode, list is required, else the column will not be shown."],"1t/NnN":["Reject"],"237hSL":["Ended"],"24misb":["More…"],"24w+FD":[["years","plural",{"one":["#"," year later"],"other":["#"," years later"]}]],"27x6gl":["Copy handle"],"2AeREO":["Unable to load followed hashtags."],"2BApYc":["Private mentions"],"2BBAbc":["List"],"2C0g0G":["Post unavailable"],"2EYeAZ":["The end."],"2FYpfJ":["More"],"2LiWsE":["Switch to Full view"],"2MQ2cd":["Enter a new instance e.g. \\"mastodon.social\\""],"2S/uvJ":[["0","plural",{"one":["#"," hashtag"],"other":["#"," hashtags"]}]],"2WtL62":["Pending review"],"2jI8hh":["Let's catch up"],"2oZ4Iw":["Error fetching quoted status!"],"2xahsi":["Continue with ",["selectedInstanceText"]],"2yr1/p":["New posts"],"32TndD":["Blocked"],"3IakFR":["Delete all drafts?"],"3Ib6FN":["Move down"],"3LkfZu":["Mention <0>@",["username"],"</0>"],"3OLv47":["Unable to unfeature on profile"],"3P1r1z":["Quote settings updated"],"3TSz9S":["Minimize"],"3Uoj83":["Error loading quotes"],"3Xq4Zi":["Add more than one shortcut/column to make this work."],"3ePd3I":["What's new"],"3mOee6":["Edit filter"],"3t/Nrv":["Switch to this account"],"3wG7HI":["Uploaded"],"3xIN+E":["No columns yet. Tap on the Add column button."],"4+7X9i":["Notifications settings updated"],"4/RpOy":["Open in new window"],"4/iCqx":["Trending"],"40naR1":["Scheduled post rescheduled"],"40z2Fm":["View profile…"],"41gejM":["Expand content warning or<0/>toggle expanded/collapsed thread"],"44hICK":["Unable to load account."],"48oDit":[["query"]," <0> accounts, hashtags & posts</0>"],"4Dh9J1":["Unable to delete filter."],"4ERYY7":["Federated"],"4LHHK6":["More from <0/>"],"4MFM3P":["No hashtags found."],"4R1B1H":["Recent searches"],"4RRMre":["Grouped notifications"],"4S86wI":["Looks like your browser is blocking popups."],"4WUbF1":["Poll"],"4XF0BB":["Profile picture"],"4b3oEV":["Content"],"4cijjm":["Send Report"],"5+87Pq":["Notification"],"52x24e":["Note: <0>Default</0> account will always be used for first load. Switched accounts will persist during the session."],"570qTm":["\\"Cloud\\" import/export for shortcuts settings"],"5BFynH":["+ Replies"],"5GFQTh":["Unable to fetch notifications."],"5KJFnN":["Not available in current view mode"],"5LwCCI":["Ended <0/>"],"5PGPvG":["View #Wrapstodon"],"5bAOta":["Post removed by author"],"5gfDMm":["Media description"],"5hXGws":["Open original media in new window"],"5t4KSs":["View Quotes"],"5vzJxv":[["0","plural",{"one":["#"," filter"],"other":["#"," filters"]}]],"5w02SH":["Shortcuts saved"],"6Fs1Ba":["Follow requests"],"6HA9+s":["No trending posts."],"6KkH+2":["<0>Version:</0> <1/> ",["0"]],"6LUsk7":["Push notifications are blocked. Please enable them in your browser settings."],"6MzUUU":["Append to current shortcuts?"],"6XYpYY":["Previous post"],"6YeoAt":["Search: ",["q"]," (Posts)"],"6YtxFj":["Name"],"6ZjzWP":["Override current shortcuts?"],"6lGV3K":["Show less"],"6yILME":["Describe image…"],"77Emn0":["Keyboard shortcuts"],"7FGvtQ":["Filtered: ",["filterTitleStr"]],"7Ff7ia":["Bookmarks"],"7I3sDQ":["Note: This feature uses external translation services, powered by <0>",["TRANSLATION_API_NAME"],"</0>."],"7KnEYa":["Unable to remove from list."],"7PQAMY":["Report post…"],"7QSeK6":["Unable to load posts."],"7Vb+qD":["last 11 hours"],"7WYl2I":["View profile image"],"7WddtO":["Invalid instance"],"7ZJHdw":["Home / Following"],"7d1a0d":["Public"],"7dHKu4":[["0","plural",{"one":["#"," follow request"],"other":["#"," follow requests"]}]],"7defFj":["Optional, e.g. mastodon.social"],"7e0O8Z":["Accounts…"],"7jyUKe":["Sorry, your current logged-in instance can't interact with this post from another instance."],"7oRLbi":["Mutual"],"7r6sCa":["Text size"],"8+HOWa":["last 3 hours"],"80sOCm":["<0>Enter</0> or <1>o</1>"],"84WuL2":["<0>l</0> or <1>f</1>"],"87a/t/":["Label"],"8GMtDr":["Similar notifications are grouped and collapsed to reduce clutter."],"8GjLvB":[["accountDisplay"]," (",["monthYear"],")"],"8Kudkr":["Shortcuts / Columns…"],"8MkSAW":["View post by <0>@",["0"],"</0>"],"8SN9kN":["Unable to mute conversation"],"8ab1sR":["Liked"],"8d0b8B":["Push permission was not granted since your last login. You'll need to <0><1>log in</1> again to grant push permission</0>."],"8fZueG":["Read more →"],"8i6Ueo":["Custom emojis"],"8iQ+jk":["No drafts found."],"8k2w6G":["No bookmarks yet. Go bookmark something!"],"8prZNK":[["0","plural",{"one":["#"," list"],"other":["#"," lists"]}]],"8r8KmB":["Show all sensitive content"],"8zsp51":["Generating description. Please wait…"],"95IFnD":["New update available…"],"98E0aM":[["index"],"/",["total"]],"9J6biQ":["Unable to switch"],"9KEidY":["Type to search GIFs"],"9Ko+Xp":["Your followers can quote"],"9OpVZg":["Edit profile"],"9Q/4xJ":["Back to showing trending posts"],"9Vdq+j":["Automated"],"9ZCilh":["Show media"],"9ZP9cc":["Forever"],"9ZYiLz":["Saving shortcuts to instance server…"],"9groMz":["Translated Bio"],"9npOH9":["Open file"],"9q5uor":["Image description generator"],"9ra4hn":["Featured on profile"],"9tmn6W":["Add shortcut…"],"9veeTb":["Trending News"],"A/CX5F":[["accountDisplay"]," (- Boosts)"],"A05Pj6":["Thread ",["index"],"/",["total"]],"A1As8l":["beta"],"A1taO8":["Search"],"A6cs15":["Unable to unpin post"],"AB/GtR":["Looks like you already have a compose field open in the parent window. Popping in this window will discard the changes you made in the parent window. Continue?"],"ACul2G":["Report @",["username"]],"AGyV7s":["Overlaps with your last catch-up"],"AIa/f7":["Compose new post"],"AJqQb+":["Show markup"],"AThL/k":["Error loading accounts"],"AWOSPo":["Zoom in"],"AZ2EoP":["<0>Built</0> by <1>@cheeaun</1>"],"Aadw0+":["Go to account page"],"AeM/di":["Account Emojis:"],"AeXO77":["Account"],"AgkUZa":["No featured profiles."],"AgkcM/":["@",["username"]," removed from followers"],"Ap/10+":["Looks like you have unsent drafts. Let's continue where you left off."],"AuiMZZ":["Search: ",["q"]," (Hashtags)"],"AzZ5zv":["Polls are not interactive, becomes a list with vote counts."],"B4Xkly":["Unmuted @",["username"]],"B6cG3J":["Download shortcuts from instance server"],"BATCqf":["Showing posts mentioning <0>",["0"],"</0>"],"BC0lSD":["Unable to copy handle"],"BHWx+g":["All Lists"],"BMmtZ8":["See more accounts"],"BPjyR2":["Delete this filter?"],"BRV/wh":["This user has chosen to not make this information available."],"BcNdg+":["Change expiry"],"BiZJ6G":["No one has posted anything yet."],"BskFI2":["<0>Built</0> by <1>@cheeaun</1>. <2>Privacy Policy</2>."],"Buy2bt":["Home and lists"],"Bz5hLl":["Go to original profile page"],"Bze3gr":["Auto (",["0"],")"],"C4T6O/":["Import/export settings from/to instance server (Very experimental)"],"C4x3+X":[["statusesCount","plural",{"one":["<0>",["0"],"</0> Post"],"other":["<1>",["1"],"</1> Posts"]}]],"C5zXYJ":["Header picture"],"C6cVP/":["<0>",["displayName"],"</0> has indicated that their new account is now:"],"C7ujRh":["Toggle Cloak mode"],"CDpQAX":["Remove poll"],"CGQ27z":["Screenshot of nested comments thread"],"CIHAsy":["Specify a list of shortcuts that'll appear as:"],"CKHUZ2":[["0"]," original posts, ",["1"]," replies, ",["2"]," quotes, ",["3"]," boosts"],"CNSLAW":["No one has posted anything with this tag yet."],"CTqTgr":["Shortcuts"],"CXk1bI":["Log out…"],"CeInO2":["Preview of Catch-up UI"],"CeJHfb":["Display language"],"CxKPv6":["What is this?"],"D3vX+9":["Login required."],"D7/2jB":["GIF Picker for composer"],"D9CmP2":["Remove this catch-up?"],"DHhJ7s":["Previous"],"DOQUen":[["0","plural",{"one":["#"," reply"],"other":["<0>",["1"],"</0> replies"]}]],"DPfwMq":["Done"],"DUMt1y":["List ID"],"DWumLi":["Import shortcuts?"],"DYowFe":["Skip carousel to next post"],"DYqYm5":["Private note about <0>@",["0"],"</0>"],"Djbaby":["Reload page now to update?"],"DlhB4J":["<0/> <1>boosted</1>"],"DnepCE":["Error: ",["e"]],"DqsEm+":[["months","plural",{"one":["#"," month later"],"other":["#"," months later"]}]],"DuJJm9":["Edited: ",["editedDateText"]],"DuvOX/":["Dimension too large. Uploading might encounter issues. Try reduce dimension from ",["0"],"×",["1"],"px to ",["2"],"×",["3"],"px."],"E+oKCO":["Bio"],"E8laYz":["Multiple hashtags are supported. Space-separated."],"EANWES":["Failed to load history"],"EAjFM0":["Note: your instance might only show a maximum of 800 posts in the Home timeline regardless of the time range. Could be less or more."],"EIZREX":["Top links"],"EVRO/o":["Max ",["SHORTCUTS_LIMIT"]," shortcuts"],"EarrCe":["Search emoji"],"EdQY6l":["None"],"EkH9pt":["Update"],"EnJuK0":["Conversations"],"F3cM1G":["Last post: <0>",["0"],"</0>"],"FFmj1D":["Volunteer translations"],"FKojeB":["Sensitive media"],"FMGfUd":["Remove my post from <0>@",["0"],"</0>'s post?"],"FNptcJ":["Posts on this list are hidden from Home/Following"],"Fb2K8h":["Bookmarked @",["0"],"'s post"],"FbPNuJ":["Delete this post?"],"Fd8FaU":["<0>Shift</0> + <1>k</1>"],"FgdLx0":["Unable to fetch account info"],"FjkaiT":["Zoom out"],"Fm6c4W":["Add GIF"],"Fq4zw3":["Not sure what to add?<0/>Try adding <1>Home / Following and Notifications</1> first."],"Fr0hAN":["Unable to create filter"],"FwMMx0":["Unable to update profile."],"Fz4lZ1":["Your account has been suspended."],"G2fuEb":["Locked"],"GKuKcZ":["Posting on <0/>"],"GMe2XV":["Post"],"GP8RLS":["Hashtag"],"GRUr8d":["Disable boosts"],"GS+Mus":["Export"],"Gj4mrz":["Open link?"],"GkS6YG":["HTML Code"],"GlfmCu":["Pinned posts"],"Gy9P9T":["Next post"],"H0wUNM":["View notifications from <0>@",["0"],"</0>"],"H8RP+h":["Unable to edit filter"],"HBIZeo":["Unable to format math"],"HHtYi7":[["0","plural",{"one":["#"," author"],"other":["#"," authors"]}]],"HKrBPX":["Unfollow…"],"HLqLGx":["Downloading saved shortcuts from instance server…"],"HOSk7R":["Following…"],"HQJU6W":["Unable to load replies."],"HSA2au":["Edit History Snapshots"],"HajiZl":["Month"],"HkuyOu":["Switch to my instance (<0>",["currentInstance"],"</0>)"],"Hp1l6f":["Current"],"HxF6Fk":["Original"],"Hzi9AA":["No posts found."],"I6pdY3":["Failed to update subscription. Please try again."],"I92Z+b":["Enable notifications"],"I9EnzM":["Reset filters"],"I9uBFA":["last 8 hours"],"IDC5Uw":["Who unsolicitedly private mention you"],"IK0zKi":[["hashtagTitle"]," on ",["instance"]],"INLTzH":["Your ",["year"]," #Wrapstodon is here!"],"IPXOXm":[["0","plural",{"one":["#"," character"],"other":["#"," characters"]}]],"ISg5SQ":["View post"],"IV4QaU":["Private mention"],"IXZLPs":["Cloak mode enabled"],"IeO7us":["Voted"],"Ih01jh":["Followed by…"],"IjKdHM":["Illegal"],"ImOQa9":["Reply"],"IrX0sj":["Post scheduled"],"Is7/PB":["Add an existing account"],"IvPikw":["No lists yet."],"J6hrEy":["Dismissed"],"J6ypuD":["A"],"JRswkR":["Block <0>@",["username"],"</0>…"],"JWxodU":["Unable to load post"],"Jb6/SB":["Delete…"],"JsU2En":["Pop out"],"JvA7Mo":[["0","plural",{"one":["Last 1 post in the past year(s)"],"other":["Last ",["1"]," posts in the past year(s)"]}]],"Jy9RU/":["New notifications"],"JybQca":["Send Report <0>+ Block profile</0>"],"K/EtE6":["Post edits"],"KDw4GX":["Try again"],"KFs8c6":["Reply (new window)"],"KMtgtM":["Edit audio description"],"KPFHM2":["Server rule violation"],"KPoj8w":["Unable to create list."],"KS7iJH":["You're all caught up."],"KiyvHV":["Post deleted"],"KkDhfU":["Nothing yet."],"Kp9SAs":["Switch to post's instance (",["0"],")"],"Kzwsg2":["Error loading custom emojis"],"L+HFfr":["Showing posts tagged with #",["0"]],"L8fEEm":["Group"],"L96xSt":["Hide results"],"L9fUm+":["What's the issue with this post?"],"LDUSXg":["Choice ",["0"]],"LFKLqp":["Share…"],"LQFF6J":["Liked by…"],"LYCgej":["See more posts"],"LcET2C":["Privacy Policy"],"LcOiWS":["Don't have an account? Create one!"],"Lh8B0N":["Image description"],"Lsxpe5":["Add shortcut"],"LwOr4P":["Add to thread"],"M1RnFv":["Expired"],"MB+wJL":["Some media have no descriptions."],"MHrjPM":["Title"],"MIhb91":["Hashtag shortcut added"],"MKEPCY":["Follow"],"MQYucx":["Some media have no descriptions. Continue?"],"MRZxAn":["Edited"],"MWIaew":["Remove…"],"MXOmPt":["Notifications from <0>@",["0"],"</0>"],"MfJ43d":["Add media"],"Mn1E9C":[["followersCount","plural",{"one":["#"," follower"],"other":["#"," followers"]}]],"Mr53YX":["Show replies to people I follow"],"N1MyiN":["Unable to copy post text"],"N2FcBE":["Synced"],"N3Bq0f":[["0","plural",{"one":["Filtered notifications from ","#"," person"],"other":["Filtered notifications from ","#"," people"]}]],"N40H+G":["All"],"N4z4P/":["List may not work if it's from a different account."],"N8UzTV":["Replies"],"NAjVvt":["Default visibility"],"NCy+Nw":["Go to main post"],"NMNiaO":["until the max"],"NNrlf5":[["index"],"/X"],"NPXprJ":["Only followers can quote this post"],"NSSJsj":[["0"],"h"],"NU7wa/":["Media attachments can be images, videos, audios or any file types."],"Nc/W5J":["See more hashtags"],"Ng063n":["Donate"],"NnRCUm":[["0"],"s"],"NoG5wD":[["accountDisplay"]," (Media)"],"NuKR0h":["Others"],"NunZZQ":[["count","plural",{"1":[["postsCount","plural",{"1":[["postType","select",{"reply":[["account"]," boosted & liked your reply."],"other":[["account"]," boosted & liked your post."]}]],"other":[["account"]," boosted & liked ",["postsCount"]," of your posts."]}]],"other":[["postType","select",{"reply":["<0><1>",["0"],"</1> people</0> boosted & liked your reply."],"other":["<2><3>",["1"],"</3> people</2> boosted & liked your post."]}]]}]],"NuqppG":[["0","plural",{"one":["#"," Boost"],"other":["#"," Boosts"]}]],"O1Aswy":["Never expires"],"O2tNG0":["Ending"],"O4cLCR":["Sponsor"],"ODqZt1":["[Unknown notification type: ",["type"],"]"],"OISAkj":["Remove hashtag"],"OKiofn":["Edit History"],"OOEonE":["Show me all posts from…"],"OOa7/5":["Import/Export <0>Shortcuts</0>"],"Oa+KBY":["Failed to update posting privacy"],"OcUmcH":["Unlike"],"OdVhdR":["<0>New</0> <1>Follow Requests</1>"],"Ogtv0V":["A minimalistic opinionated Mastodon web client."],"OgyJSr":["Local only"],"OiUYO5":["Mute conversation"],"OqaQnE":["View Edit History Snapshots"],"Ov9hfp":["last 1 hour"],"Owr/5+":["Unable to feature @",["username"]," on your profile."],"PBFNgg":["followers"],"PCcEFZ":["Joined <0>",["0"],"</0>"],"PHIrMr":["No likes yet. Go like something!"],"PIWNSQ":["Showing post with replies"],"PM7llw":["Don't show replies"],"PPcets":["Set as default"],"PZgZtY":["Switch in new tab/window"],"PZlHt8":["Bookmark"],"PbFw9n":["Error loading GIFs"],"PbHARL":["Automatically show translation for posts in timeline. Only works for <0>short</0> posts without content warning, media and poll."],"Pc7QKh":["Effortlessly follow conversations. Semi-collapsible replies."],"PcoS3v":["Posting"],"PgVqvd":["Federated timeline (",["instance"],")"],"PiPfua":["Version string copied"],"PiVIlD":["Boost…"],"PjP87f":["View post stats"],"Pm+5jw":["Conversation unmuted"],"Pwqkdw":["Loading…"],"Q/HUhC":["Unmute <0>@",["username"],"</0>"],"Q1Huya":["Replying to @",["0"],"s post (<0>",["1"],"</0>)"],"Q3yArs":["An admin from <0>",["from"],"</0> has blocked <1>",["targetName"],"</1>. Affected followers: ",["followersCount"],", followings: ",["followingCount"],"."],"QDEWii":["Verified"],"QL+7Jw":["Show Edit History"],"QO9uTx":["Shortcuts imported"],"QOhkyl":["Compose"],"QQrO94":[["accountDisplay"]," (#",["tagged"],")"],"Qd13i0":["Showing posts without boosts"],"Qopbnd":["Show featured profiles"],"QqW27M":["Reschedule"],"QyioBP":["Move up"],"QzzGsY":["Unboost"],"R0yu2l":["Catch up"],"R20Yf9":["Translate from ",["sourceLangText"]," (auto-detected)"],"R4PmPA":["Post could be edited or deleted later."],"R7ep1i":["Unable to edit list."],"R8CUl0":[["0"]," posts above Go to top"],"R8mSiS":["Translate bio"],"R9+aEN":["Followed #",["hashtag"]],"R9Khdg":["Auto"],"R9kjEL":["Profile reported"],"RO10dm":["Public timelines"],"RQKWUa":["You have blocked <0>",["targetName"],"</0>. Removed followers: ",["followersCount"],", followings: ",["followingCount"],"."],"RTAr/z":["Resolving…"],"RXmXDR":[["repliesCount","plural",{"one":["#"," reply"],"other":["#"," replies"]}]],"RqX1mR":[["count","plural",{"1":[["postsCount","plural",{"1":[["postType","select",{"reply":[["account"]," liked your reply."],"other":[["account"]," liked your post."]}]],"other":[["account"]," liked ",["postsCount"]," of your posts."]}]],"other":[["postType","select",{"reply":["<0><1>",["0"],"</1> people</0> liked your reply."],"other":["<2><3>",["1"],"</3> people</2> liked your post."]}]]}]],"RqXfsz":["Max ",["SHORTCUTS_LIMIT"]," columns"],"Rsjgm0":["Experimental"],"S1fBwy":["Frame rate too high. Uploading might encounter issues."],"S5aemF":["Unable to dismiss notification request"],"S5cYrQ":["Screenshot of Boosts Carousel"],"S5ez7Y":["Skip carousel to previous post"],"S6P6E+":["Post pinned to profile"],"S6XZwv":[["0","plural",{"one":["#"," post"],"other":["#"," posts"]}]],"S92JKG":["Unable to accept notification request"],"S9JvjK":["Don't feature on profile"],"SBmqmC":["Shortcuts imported. Exceeded max ",["SHORTCUTS_LIMIT"],", so the rest are not imported."],"SGcIK+":[["followingCount","plural",{"other":["<0>",["0"],"</0> Following"]}]],"SYKm3p":["No keywords. Add one."],"Sb2gYF":["New list"],"ScQBC/":["Group: Authors"],"Sjj+EN":["Post your reply"],"Sjnlwj":["Import…"],"SlfejT":["Error"],"Sq04Yc":["Go to another instance…"],"Srs8u7":["With a new account"],"SrwrEj":["Save & close"],"T/hglb":["Replace text as blocks, useful when taking screenshots, for privacy reasons."],"T4I119":["Extra fields"],"TSbnoW":["Boosts carousel"],"TbFrLc":["Updated <0>",["0"],"</0>"],"Tba8uO":["Unable to add to list."],"TbrCz2":["Take photo or video"],"TbttfX":[["followersCount","plural",{"one":["<0>",["0"],"</0> Follower"],"other":["<1>",["1"],"</1> Followers"]}]],"TnJgwX":["Notes:"],"TtG3Uh":["Sharing doesn't seem to work."],"Tu+sCN":["Boosts Carousel"],"Txus+H":["Editing source status"],"Tz0i8g":["Settings"],"U+Gokq":["Edit private note"],"UHDQDE":["Optional, unless for multi-column mode"],"UIfdY1":["Profiles featured by @",["0"]],"UUrqX1":["Posts are sorted by information density or depth. Shorter posts are \\"lighter\\" while longer posts are \\"heavier\\". Posts with photos are \\"heavier\\" than posts without photos."],"UWSCwN":["Quote settings for this post"],"UYZxOy":["Replace current quote"],"UefSZg":["Turn link into a quote?"],"UlJ3QN":["Feature on profile"],"UoL+FC":["Unable to load bookmarks."],"UxBoCm":["Tab/Menu bar"],"V1fa9u":["See more"],"VCZ0OT":["Remove follower…"],"VH+Tf9":["Unfeatured on profile"],"VKDnAx":["Failed to download GIF"],"VLKtvP":["Screenshot of multi-column UI"],"VU1Pnd":["last 12 hours"],"VbyRUy":["Comments"],"VcQzRi":["Add private note"],"Vh3ADI":["Add column…"],"VkLESX":["Load new posts"],"Vosm4k":["Trending posts"],"VwUsHI":["Hashtags"],"Vyeh4F":["You're not logged in. Interactions (reply, boost, etc) are not possible."],"VzLGaA":["Unable to remove quote"],"W+eFn3":[["account"]," edited a post."],"W1ewR0":["Unable to copy link"],"W9FRBT":["Like"],"WUHLnz":["Push Notifications (beta)"],"WZw+zB":["Edit video description"],"Wi1Ov0":["Multi-hashtag timeline"],"WrkPTf":["Filter out notifications from people:"],"X17jCM":["Alpha-stage feature. Potentially improved grouping window but basic grouping logic."],"XC9Jpz":["Post hidden by your filters"],"XKZRZ/":["Showing ",["selectedFilterCategory","select",{"all":["all posts"],"original":["original posts"],"replies":["replies"],"boosts":["boosts"],"quotes":["quotes"],"followedTags":["followed tags"],"groups":["groups"],"filtered":["filtered posts"]}],", ",["sortBy","select",{"createdAt":[["sortOrder","select",{"asc":["oldest"],"desc":["latest"]}]],"reblogsCount":[["sortOrder","select",{"asc":["fewest boosts"],"desc":["most boosts"]}]],"favouritesCount":[["sortOrder","select",{"asc":["fewest likes"],"desc":["most likes"]}]],"repliesCount":[["sortOrder","select",{"asc":["fewest replies"],"desc":["most replies"]}]],"density":[["sortOrder","select",{"asc":["least dense"],"desc":["most dense"]}]]}]," first",["groupBy","select",{"account":[", grouped by authors"],"other":[]}]],"XMGM2e":["Who are limited by server moderators"],"XN1xAY":[["SHORTCUTS_LIMIT","plural",{"one":["Max ","#"," shortcut reached. Unable to add shortcut."],"other":["Max ","#"," shortcuts reached. Unable to add shortcut."]}]],"XQMQZw":["Unpin from profile"],"Xi1/bw":["Followed Hashtags"],"Xl9v6+":["Lost connections with <0>",["name"],"</0>."],"XpQLJF":["<0>Shift</0> + <1>r</1>"],"YAZw8D":["Posts tagged with <0>#",["0"],"</0>"],"YL6Y8P":["Learn more <0/>"],"YMU1CK":["Catch-up is a separate timeline for your followings, offering a high-level view at a glance, with a simple, email-inspired interface to effortlessly sort and filter through posts."],"YYB61U":["No accounts found."],"Yb6p2q":["Unable to delete post"],"Yfb9A8":["Previously…"],"YgM2yU":["Quote removed"],"YmGrIy":["Links shared by followings, sorted by shared counts, boosts and likes."],"YqffEv":["Moderation warning"],"YrR3Co":["Focus next column in multi-column mode"],"Yx0Ud8":["Requested"],"Yx809+":["Post unpinned from profile"],"Z2l5Bt":["Looks like you already have a compose field open in the parent window and currently publishing. Please wait for it to be done and try again later."],"Z8lGw6":["Share"],"ZLoGls":["Log in with Mastodon"],"ZM3jAs":["Failed to reschedule post"],"ZNme5R":["View profile header"],"ZP1FIA":["Failed to register application"],"ZSWUwq":[["0"],"m"],"ZhhOwV":["Quote"],"ZhsPEb":["Invalid settings format"],"ZlV82A":["View post with its replies"],"ZtBMwU":["Notifications from @",["0"]," will not be filtered from now on."],"Zxkt/v":["Translating…"],"a/+arl":["Notifications settings"],"a5BN7l":["Post updated. Check it out."],"a6oTWs":["e.g. PixelArt (Max 5, space-separated)"],"aAIQg2":["Appearance"],"aDr7Vc":["Open original media"],"aEp6lO":["Scheduled <0><1/></0> <2>(",["0"],")</2>"],"aGziA/":["Server-side grouped notifications"],"aOh6Md":["Failed to delete scheduled post"],"aTyHBW":["Post published. Check it out."],"aVsTYo":["Unable to save shortcuts"],"aaJhcT":["Follows"],"aavdrC":["By ",["0"]],"aforS9":["Block <0>@",["username"],"</0>?"],"agO/T/":["Expiry"],"ajzDof":["Posts: ",["0"]],"awRXyV":["Request to quote"],"b7T5Zj":["Boosted"],"bPwFdf":["Accounts"],"bUUv3P":["Scroll to top"],"bfSr6z":["Shared by ",["0"]],"bgVLbt":["Import/export"],"bl7nrg":["HTML code copied"],"blQMpa":["Filtered post will be…"],"bpDheH":["Unboosted @",["0"],"'s post"],"bzMKg7":["Accepted"],"c1Q/eU":["Powered by GIPHY"],"c3XJ18":["Help"],"c6jxNY":["Unable to unmute conversation"],"c89gCv":["Import & append…"],"cDoNQr":["Accounts with <0>",["query"],"</0>"],"cI3UEs":["Trending (",["instance"],")"],"cSev+j":["Filters"],"cWIHTt":["No filters yet."],"cWtH+v":["Shortcuts copied"],"cXWjH0":["Boosts from @",["username"]," disabled."],"cYE45+":["Nested comments thread"],"cZJ92q":["Add poll"],"caeqw/":["Send Report <0>+ Mute profile</0>"],"cc0NrU":[["0","plural",{"0":["Hide \\"Translate\\" button for:"],"other":["Hide \\"Translate\\" button for (","#","):"]}]],"cg0I+x":["Federated timeline"],"cklVjM":["Timeline"],"coaNtr":["Sort: Density"],"cqi4Mx":["Like (favourite)"],"csQin/":["Malicious links, fake engagement, or repetitive replies"],"ctFhjs":[["maxMediaAttachments","plural",{"one":["You can only attach up to 1 file."],"other":["You can only attach up to ","#"," files."]}]],"ctJi7k":["Unfollow #",["hashtag"],"?"],"cxL5F9":["Add hashtag"],"cyjS8M":["Forward to <0>",["domain"],"</0>"],"d+hDoa":["You don't follow"],"d5zxa4":["Local"],"d83/LB":["File size too large. Uploading might encounter issues. Try reduce the file size from ",["0"]," to ",["1"]," or lower."],"dBme/4":["Old post (<0>",["0"],"</0>)"],"dDJEHI":["Until the last catch-up (",["0"],")"],"dEgA5A":["Cancel"],"dP6iYK":["Format math"],"dXMiUw":["Switch to Federated"],"dZZ8oA":["last 5 hours"],"dbNZdP":["Boosted @",["0"],"'s post"],"dmTmkQ":["For multi-column mode, search term is required, else the column will not be shown."],"dmiEVR":["You are not allowed to quote this post"],"dmloPh":["Search term"],"doK/ij":["Unfollowed #",["hashtag"]],"dpqPBg":["Authors"],"duF1lx":["Focus column in multi-column mode"],"dwLCPZ":["Replying to @",["0"],"s post"],"e+RpCP":["Sign up"],"e2uVlo":["Visually separate original posts and re-shared posts (boosted posts)."],"e5E+WH":["Raw Shortcuts JSON"],"e66y2Z":["Thread"],"e6tGFu":["Violates the law of your or the server's country"],"e7qQIH":["Withdraw follow request?"],"eH1bqp":["Search accounts"],"eIiurD":["Attachment #",["i"]," failed"],"eK4SL/":["Media only"],"eKInue":["Quote settings"],"eNTGfp":["Failed to generate description",["0"]],"eNfCmq":[["account"]," reported ",["targetAccount"]],"ePK91l":["Edit"],"eVosYr":["You don't have to read everything."],"eWLklq":["Quotes"],"eYsAQr":["Unfollow @",["0"],"?"],"ecUA8p":["Today"],"ecVtjm":["Additional info"],"edWbV6":["Link copied"],"eh6NHW":[["account"]," requested to follow you."],"ei6pnR":["Show replies to list members"],"ejAVrO":["Switch to my instance to enable interactions"],"ekCRTP":["Rejected"],"evz6c6":["<0>Esc</0> or <1>Backspace</1>"],"f5dduh":["Next author"],"f6Hub0":["Sort"],"f8bJ3C":["Last posted: ",["0"]],"fGn1Hk":["Enter your search term or paste a URL above to get started."],"fHZgvt":["Note: This feature uses external AI service, powered by <0>img-alt-api</0>. May not work well. Only for images and in English."],"fHf1v/":["Note: This feature uses currently-logged-in instance server API."],"fJCCpx":[["account"]," signed up."],"fYeATS":["Thread ",["index"],"/X"],"faZ9RI":["Only for new images while composing new posts."],"following.stats":["Following"],"following.title":["Following"],"fpgumQ":["Search: ",["q"]," (Accounts)"],"fpotTF":["Breaks specific server rules"],"fvAsUK":["Connect your existing Mastodon/Fediverse account.<0/>Your credentials are not stored on this server."],"g3UF2V":["Accept"],"gCDfX+":["Unable to download shortcuts"],"gEoOUj":["Look up <0>",["query"],"</0>"],"gURvmk":["Auto inline translation"],"gWd6Cu":["Sync to instance server"],"gbbkE7":["Ignore"],"gdxreD":["Unable to copy version string"],"ggiJLM":["Add custom emoji"],"ggxOw9":["obscured (media only)"],"gjzl8E":["Unable to load notifications"],"gmB6oO":["Schedule"],"gnKo7f":["Content warning"],"group.filter":["Group"],"gukqfD":["See all"],"h16FyT":["Lists"],"h7peZQ":["Allow"],"h8zDAI":["Translate from ",["sourceLangText"]],"hB02vO":["Manage members"],"hDWXuG":["Anyone can quote"],"hEe3YR":["Failed to update quote settings"],"hHSI3w":[["hashtagTitle"]," (Media only)"],"hOg+Mt":["Delete all…"],"hR9gtK":["You have unsaved changes. Discard this post?"],"hS1Opy":[["accountDisplay"]," (+ Replies)"],"hXzOVo":["Next"],"hYgDIe":["Create"],"he3ygx":["Copy"],"hgPsUe":["Cleared recent searches"],"i02Lq/":["Add to Shortcuts"],"i0qMbr":["Home"],"i51zUR":["Unmute conversation"],"i5uN6K":[["account"]," reacted to your post with ",["emojiObject"]],"iAB71E":[["0"]," more…"],"iAzCp4":["Go to my instance (<0>",["currentInstance"],"</0>)"],"iDNBZe":["Notifications"],"iH8pgl":["Back"],"iQgJaz":["Copy post text"],"iSRQvy":["Post text copied"],"iWpEwy":["Go home"],"ibBDry":["Notifications from @",["0"]," will not show up in Filtered notifications from now on."],"idiIxW":[["account"]," published a post."],"ieZytw":["Audio description"],"ipnHrn":["Your account has received a moderation warning."],"isRobC":["New"],"iuLUuH":["Violation"],"ivdhsq":["Experiments"],"j0kZfi":["Note: This preview is lightly styled."],"j5n9Ry":["Remove <0>@",["0"],"</0> from list?"],"j5roNG":["This post is from another instance (<0>",["instance"],"</0>). Interactions (reply, boost, etc) are not possible."],"jAj8rv":["Close post or dialogs"],"jER18a":["Mark media as sensitive"],"jL3N0G":["Notifications enabled for @",["username"],"'s posts."],"jNCSyx":["System language (",["systemTargetLanguageText"],")"],"jbreWy":["minimized"],"jdVwsS":["Embed post"],"jf1i1L":[["votersCount","plural",{"one":["<0>",["0"],"</0> voter"],"other":["<1>",["1"],"</1> voters"]}]],"jkt9P5":[["count","plural",{"1":[["postsCount","plural",{"1":[["postType","select",{"reply":[["account"]," boosted your reply."],"other":[["account"]," boosted your post."]}]],"other":[["account"]," boosted ",["postsCount"]," of your posts."]}]],"other":[["postType","select",{"reply":["<0><1>",["0"],"</1> people</0> boosted your reply."],"other":["<2><3>",["1"],"</3> people</2> boosted your post."]}]]}]],"jsFF8C":["Open post details"],"jw0eSZ":["Your account has been disabled."],"jxxYp0":["Hide posts on this list from Home/Following"],"jzjjJh":["Emojis:"],"k08LxG":["Log out <0>@",["0"],"</0>?"],"k7v0Rh":[["votesCount","plural",{"one":["<0>",["0"],"</0> vote"],"other":["<1>",["1"],"</1> votes"]}]],"k9N0Xk":["This notification is from your other account."],"kH0rA0":[["hashtagTitle"]," (Media only) on ",["instance"]],"kIlJaS":["A poll you have voted in or created has ended."],"kNiQp6":["Pinned"],"kfeQnS":["This shortcut already exists"],"khVljG":["Unable to load likes."],"kjUejn":["Blocked ",["username"]],"kpjzdN":["A poll you have created has ended."],"krk5ws":["Unsent drafts"],"kulphB":["Boost"],"kxiG8g":["Issue doesn't fit other categories"],"kyAi7k":["Instance"],"l3s5ri":["Import"],"lCF0wC":["Refresh"],"lCLRBe":["Followed tags"],"lQXQKs":["Vote"],"lWQguj":["Unbookmarked @",["0"],"'s post"],"lZdBKl":["Reply posted. Check it out."],"lb07+k":["Switch to post's instance"],"lfHLsx":["Pin to profile"],"lkz6PL":["Duration"],"lpPucp":["last 6 hours"],"lqBX03":["Show content"],"lxYe+I":["Cloak mode <0>(<1>Text</1> → <2>████</2>)</0>"],"m+pAEQ":["(",["0"],") <0>— experimental</0>"],"m0G499":["* Not implemented yet"],"m16xKo":["Add"],"m5LihO":["Failed to translate"],"mBdQnV":["You may close this page now."],"mN4S+e":["Video description"],"mYGY3B":["Date"],"mZYb1f":["No scheduled posts."],"mlycBx":["Your account has been limited."],"moT7M8":["A poll you have voted in has ended."],"muLhL3":["Report Post"],"mzjGX4":["<0>Shift</0> + <1>j</1>"],"n1PNla":["Boost/Quote…"],"n1sANU":["Muted users…"],"nJEKbY":["Nothing to see here."],"nL8nlr":["Blocked users"],"nc+Oa+":["Keep as link"],"nhpsIN":["<0>1</0> to <1>9</1>"],"nl8sCE":["Only shortcuts that dont exist in current shortcuts will be appended."],"noxAFR":["Focus previous column in multi-column mode"],"o1mMWT":["Posts with <0>",["query"],"</0>"],"o5sTJw":["Generate description…"],"o6L30P":["No new shortcuts to import"],"o6sElH":["* Exists in current shortcuts"],"o7J4JM":["Filter"],"oAwuQj":["Who don't follow you"],"oEQq5w":["Unable to report profile"],"oMslIB":["Edit image description"],"oZUtTk":[["0","plural",{"one":[["1","plural",{"one":["Last 1 post in the past 1 day"],"other":["Last 1 post in the past ",["2"]," days"]}]],"other":[["3","plural",{"one":["Last ",["4"]," posts in the past 1 day"],"other":["Last ",["5"]," posts in the past ",["6"]," days"]}]]}]],"oguMwa":["Cloak mode disabled"],"ooHDPY":["Ending <0/>"],"orjBLU":["Scheduled <0><1/></0>"],"osJmEN":["Disable notifications"],"ot8LpF":["Unable to update private note."],"ouWc/D":[["TOTAL_TAGS_LIMIT","plural",{"other":["Max ","#"," tags"]}]],"ovBPCi":["Default"],"owpNF1":["What are you doing?"],"p3UO/y":["Follows you"],"pA+qEx":["Unable to block @",["username"]],"pBYFlb":["last 9 hours"],"pEkad9":["Single or multi-column"],"pFnMHn":["<0>Site:</0> ",["0"]],"pJQgQV":["Local timeline"],"pMcdDp":["Unable to block ",["username"]],"pPYeIN":["Quiet public"],"pWFLFk":["@",["username"]," is no longer featured on your profile."],"pe1jog":["Edit shortcut"],"phQpSa":["Boosted by…"],"pi8x/S":["Translate"],"pkB7ti":[["account"]," edited a post you have quoted."],"post.title":["Post"],"pqR9KF":["Unable to load mentions."],"prdIOK":["In Memoriam"],"ptPep5":["Post pending"],"puY2t0":["Boosts"],"pvnfJD":["Dark"],"py67WT":["<0>Ctrl</0> + <1>Enter</1> or <2>⌘</2> + <3>Enter</3>"],"q1zFd+":["Failed to remove subscription. Please try again."],"q8EQYI":["Unbookmark"],"q9urQO":["This might take a while."],"qSQQSe":[["totalComments","plural",{"one":["#"," comment"],"other":["<0>",["0"],"</0> comments"]}]],"qTJgpR":["Report <0>@",["username"],"</0>…"],"qYNCa1":["Allow from <0>",["0"],"</0>"],"qcAUwp":["Unable to load filters."],"qiPXgY":["Looks like you closed the parent window."],"qn5Dbn":["Add keyword"],"qqeAJM":["Never"],"qwdOim":["Floating button"],"qzVesX":["Edit your post"],"r3RRWo":["Blocked users…"],"r9r5X6":["last 7 hours"],"rEYoku":["Error deleting draft! Please try again."],"rKpfPY":["Showing posts with media"],"rSLkfe":["What's the issue with this profile?"],"rZgCpJ":["server domain name"],"raUMBQ":["Some of your posts have been deleted."],"rbUTzD":["Fetching posts…"],"rdUucN":["Preview"],"re2mMZ":["Author will manually review"],"rf8fiC":["Close window"],"rhmyFK":["That's all."],"rj0vxZ":["Previous author"],"rmBHZn":["Failed to log in. Please try again or try another instance."],"rnrM7k":["Screenshot of grouped notifications"],"rpXAF6":[["0","plural",{"one":["File ",["1"]," is not supported."],"other":["Files ",["2"]," are not supported."]}]],"sI9N29":["Unblocked @",["username"]],"sJ2yQc":["Add/Remove from Lists"],"sOKhEA":["Muted users"],"sQia9P":["Log in"],"sX3iLV":["Schedule post"],"sXmrl4":["Note: Only max 3 will be stored. The rest will be automatically removed."],"sZvpIt":["Unliked @",["0"],"'s post"],"scd9lw":["Unable to load posts"],"silO9A":["username"],"snPx8X":["Compose new post (new window)"],"sr6maL":["<0>Filtered</0>: <1>",["0"],"</1>"],"srocAr":["Posts are grouped by authors, sorted by posts count per author."],"suKjh3":["Filtered: ",["0"]],"t/YqKh":["Remove"],"t2B/we":["Switch to Local"],"t7Py5R":["By default, single column for zen-mode seekers. Configurable multi-column for power users."],"t8dIOP":["Spam"],"tBmklN":["Paste shortcuts here"],"tFvxZF":["Unable to copy shortcut settings"],"tMwimH":["Error fetching reply-to status!"],"tS2i+h":["Up to 5 hashtags combined into a single timeline."],"tVE2wM":["last 2 hours"],"tXgQpk":["Public (Local / Federated)"],"tfDRzk":["Save"],"tqUaGL":["Unable to delete list."],"tuhghE":["Edit list"],"u3gOdY":["instance domain"],"u8JHrO":["Clear filters"],"u96B/B":["Local timeline (",["instance"],")"],"uIp8WL":["or override…"],"uNVxXX":["Some poll choices are empty"],"uREpT3":["Enable boosts"],"uRkcgw":["An admin from <0>",["from"],"</0> has suspended <1>",["targetName"],"</1>, which means you can no longer receive updates from them or interact with them."],"uVbUP8":["Settings…"],"uXRAkV":["Show more…"],"uYcYzu":["Blocked @",["username"]],"uabU9X":["Recently used"],"ucJk3m":["Status: <0><1/></0>"],"ufzZSJ":["Unable to resolve URL"],"ukL58r":["Remove quote…"],"ulXSNi":["Keyboard shortcuts help"],"unyq2W":["Remove <0>@",["username"],"</0> from followers?"],"uqf7Yq":["Filter from…"],"urGtsw":["Expiring <0/>"],"usxQx0":["- Boosts"],"uvDfdW":["Multi-column"],"uyJsf6":["About"],"uzt17m":["A post you interacted with has been edited."],"v/l5uA":["Unable to load lists."],"v02K7/":["Unable to mute ",["username"]],"v4TbMP":["<0>Shift</0> + <1>Alt</1> + <2>k</2>"],"v9jO+F":["Some of your posts have been marked as sensitive."],"vCSBPD":["Add filter"],"vERlcd":["Profile"],"vFGLxm":["Attempting to describe image. Please wait…"],"vGjmyl":["Deleted"],"vKsGhk":["No hashtags followed yet."],"vLxvHT":["No shortcuts yet. Tap on the Add shortcut button."],"vWGBjT":["Unable to mute @",["username"]],"vgUfWO":["Unable to pin post"],"vl3XTJ":["Post stats unavailable."],"vpc27K":["beyond 12 hours"],"vrQQgz":["Profiles"],"vuFeUI":["Turn into quote"],"vvl08N":["A post is currently open. Post or discard it before creating a new one."],"w2OpMr":["Your posts will be marked as sensitive from now on."],"wKtOLH":["Editing source post"],"wNExRS":["Polls"],"wOax6E":["Screenshot of multi-hashtag timeline with a form to add more hashtags"],"wiuWLe":[["0"]," original posts, ",["1"]," replies, ",["2"]," boosts"],"wr3GZI":["Search: ",["q"]],"wvL7OJ":["last 10 hours"],"wxlF9B":["Search GIFs"],"wy0Iwj":["Failed to generate description: ",["0"]],"wyL/3/":["Catch-up <0>beta</0>"],"x/s2/O":["Add content warning"],"x2NYtp":["people I follow"],"x5LEuB":["Followers"],"xCJdfg":["Clear"],"xGVfLh":["Continue"],"xHq5L2":["Unable to unfeature @",["username"]," on your profile."],"xJUo4P":["Removing Catch-up ",["0"]],"xYilR2":["Media"],"xhPEH3":["Mute <0>@",["username"],"</0>…"],"xhYfVj":["Failed to generate description"],"xhiXaF":["@",["username"]," is now featured on your profile."],"xiropL":["static URL"],"xlsg7n":["Synced to your instance server's settings. <0>Go to your instance (",["instance"],") for more settings.</0>"],"xrl8fj":["Catch-up"],"y/0uwd":["Yesterday"],"y3ou+8":["Post reported"],"y6sq5j":["Following"],"yFfBdX":["New filter"],"yIBLq8":["Speak"],"yTVtKs":["Withdraw…"],"yUWyHa":["Unable to copy shortcuts"],"yUngDO":["Liked @",["0"],"'s post"],"yYxB17":["Clear all"],"ydzS9x":["Exit"],"ygxzZR":["Quote with link"],"yjj6Ll":["Unable to load posts with this tag"],"yrz6Ck":["<0>Shift</0> + <1>b</1>"],"ywB7JM":["Conversation muted"],"yz7wBu":["Close"],"z96cOX":["NOTE: Push notifications only work for <0>one account</0>."],"zCjei3":["Show results"],"zJoEwS":["Handle copied"],"zJyf/5":["<0/> <1/> boosted"],"zLz0mE":["Failed to describe image"],"zNCBmf":["hidden"],"zVJKbG":["Auto-translated from ",["sourceLangText"]],"zXCa9e":["Translate to "],"zZOZj7":["Likes"],"zhrMYj":["Poll must have at least 2 options"],"zhrjek":["Groups"],"zucql+":["Menu"],"zwBp5t":["Private"],"zxFxcH":["Private note"],"zytZXj":["Multiple choice"]}`),xf=Object.freeze(Object.defineProperty({__proto__:null,messages:ys},Symbol.toStringTag,{value:"Module"})),Lf={BASE_URL:"./",DEV:!1,MODE:"production",PHANPY_CLIENT_NAME:"Phanpy",PHANPY_LINGVA_INSTANCES:"lingva.phanpy.social lingva.lunar.icu lingva.garudalinux.org translate.plausibility.cloud",PHANPY_PRIVACY_POLICY_URL:"https://github.com/cheeaun/phanpy/blob/main/PRIVACY.MD",PHANPY_TRANSLANG_INSTANCES:"translang.phanpy.social",PHANPY_WEBSITE:"https://phanpy.social",PROD:!0,SSR:!1,VITE_APP_ENV:"production"},{PHANPY_DEFAULT_LANG:Of}=Lf,Mf={};lt.load(dt,ys);lt.on("change",()=>{const e=lt.locale;if(e){document.documentElement.lang=e;try{const t=new Ve(e),{direction:r}=t.getTextInfo?.()||t.textInfo;document.documentElement.dir=r}catch{}}});async function kf(e){if(!e||e===dt)lt.activate(dt);else try{const{messages:t}=await Ef(Object.assign({"../locales/ar-SA.po":()=>z(()=>import("./locales/ar-SA-CDNdOtfs.js"),[],import.meta.url),"../locales/ca-ES.po":()=>z(()=>import("./locales/ca-ES-CxAoO_I3.js"),[],import.meta.url),"../locales/cs-CZ.po":()=>z(()=>import("./locales/cs-CZ-CjIobYdO.js"),[],import.meta.url),"../locales/de-DE.po":()=>z(()=>import("./locales/de-DE-dhPpog3t.js"),[],import.meta.url),"../locales/en.po":()=>z(()=>Promise.resolve().then(()=>xf),void 0,import.meta.url),"../locales/eo-UY.po":()=>z(()=>import("./locales/eo-UY-BrZQz0vH.js"),[],import.meta.url),"../locales/es-ES.po":()=>z(()=>import("./locales/es-ES-BqeCFrKf.js"),[],import.meta.url),"../locales/eu-ES.po":()=>z(()=>import("./locales/eu-ES-DpPedTtb.js"),[],import.meta.url),"../locales/fa-IR.po":()=>z(()=>import("./locales/fa-IR-CSZBIA71.js"),[],import.meta.url),"../locales/fi-FI.po":()=>z(()=>import("./locales/fi-FI-ivGhXWUZ.js"),[],import.meta.url),"../locales/fr-FR.po":()=>z(()=>import("./locales/fr-FR-COHx1nPI.js"),[],import.meta.url),"../locales/gl-ES.po":()=>z(()=>import("./locales/gl-ES-CCDsjs9K.js"),[],import.meta.url),"../locales/he-IL.po":()=>z(()=>import("./locales/he-IL-CDNdOtfs.js"),[],import.meta.url),"../locales/it-IT.po":()=>z(()=>import("./locales/it-IT-C0_fpwIJ.js"),[],import.meta.url),"../locales/ja-JP.po":()=>z(()=>import("./locales/ja-JP-CDNdOtfs.js"),[],import.meta.url),"../locales/kab.po":()=>z(()=>import("./locales/kab-pD_PUcxx.js"),[],import.meta.url),"../locales/ko-KR.po":()=>z(()=>import("./locales/ko-KR-CwqZ49z-.js"),[],import.meta.url),"../locales/lt-LT.po":()=>z(()=>import("./locales/lt-LT-CncvK9Qo.js"),[],import.meta.url),"../locales/nb-NO.po":()=>z(()=>import("./locales/nb-NO-CDNdOtfs.js"),[],import.meta.url),"../locales/nl-NL.po":()=>z(()=>import("./locales/nl-NL-Akym_zHM.js"),[],import.meta.url),"../locales/oc-FR.po":()=>z(()=>import("./locales/oc-FR-CDNdOtfs.js"),[],import.meta.url),"../locales/pl-PL.po":()=>z(()=>import("./locales/pl-PL-By6FX6b1.js"),[],import.meta.url),"../locales/pseudo-LOCALE.po":()=>z(()=>import("./locales/pseudo-LOCALE-BwEJy58t.js"),[],import.meta.url),"../locales/pt-BR.po":()=>z(()=>import("./locales/pt-BR-Ds3-9-kj.js"),[],import.meta.url),"../locales/pt-PT.po":()=>z(()=>import("./locales/pt-PT-Vw7HPpab.js"),[],import.meta.url),"../locales/ru-RU.po":()=>z(()=>import("./locales/ru-RU-CijsJMoS.js"),[],import.meta.url),"../locales/th-TH.po":()=>z(()=>import("./locales/th-TH-CDNdOtfs.js"),[],import.meta.url),"../locales/tok.po":()=>z(()=>import("./locales/tok-CDNdOtfs.js"),[],import.meta.url),"../locales/tr-TR.po":()=>z(()=>import("./locales/tr-TR-CDNdOtfs.js"),[],import.meta.url),"../locales/uk-UA.po":()=>z(()=>import("./locales/uk-UA-DuCAvqrn.js"),[],import.meta.url),"../locales/zh-CN.po":()=>z(()=>import("./locales/zh-CN-BhVLBBpS.js"),[],import.meta.url),"../locales/zh-TW.po":()=>z(()=>import("./locales/zh-TW-CDNdOtfs.js"),[],import.meta.url)}),`../locales/${Mf[e]||e}.po`,3);lt.loadAndActivate({locale:e,messages:t})}catch{lt.activate(dt)}}function Fh(){const e=Rf(Pf("lang"),Sf("lang"),Af(),Of,dt),t=e.find(r=>Jo.includes(r))||mf(e,Jo);kf(t)}var Kt={},ea;function Nf(){if(ea)return Kt;ea=1,Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.shouldPolyfill=e;function e(){return!Intl.Segmenter}return Kt}var If=Nf();const gs=!If.shouldPolyfill();function vs(){if(!gs)return z(()=>import("./polyfill-force-D2cMya_1.js").then(e=>e.p),[],import.meta.url).catch(()=>{})}function tn(){return z(()=>import("./compose-DPEmvLj7.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)}async function qh(){try{await vs(),tn()}catch{}}function jh(e){const[t,r]=Te(null);return Je(()=>{(async()=>{try{if(gs){const n=await tn();r(n)}else{await vs();const n=await tn();r(n)}}catch{}})()},[]),t?.default?be(t.default,{...e}):be(wf,{})}const Df={BASE_URL:"./",DEV:!1,MODE:"production",PHANPY_CLIENT_NAME:"Phanpy",PHANPY_LINGVA_INSTANCES:"lingva.phanpy.social lingva.lunar.icu lingva.garudalinux.org translate.plausibility.cloud",PHANPY_PRIVACY_POLICY_URL:"https://github.com/cheeaun/phanpy/blob/main/PRIVACY.MD",PHANPY_TRANSLANG_INSTANCES:"translang.phanpy.social",PHANPY_WEBSITE:"https://phanpy.social",PROD:!0,SSR:!1,VITE_APP_ENV:"production"},{PHANPY_CLIENT_NAME:ta}=Df;function Hh(e,t){function r(){const{currentLocation:n}=H,o=Array.isArray(t);let a=o?t:[];!o&&/:?\w+\?/.test(t)&&(a.push(t.replace(/(:\w+)\?/g,"$1")),a.push(t.replace(/\/?:\w+\?/g,"")));let i=!1;a.length?i=a.some(s=>Hr(s,n)):t&&(i=Hr(t,n)),i&&(document.title=e?`${e} / ${ta}`:ta)}Le(()=>{const n=ts(H,"currentLocation",r);return r(),n},[e,t])}function ra(){const e=document.querySelector('meta[name="viewport"]');if(!e)return;if(window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone===!0||window.matchMedia("(display-mode: window-controls-overlay)").matches){const r=e.getAttribute("content");r.includes("user-scalable=no")||e.setAttribute("content",r+", user-scalable=no")}}function Bh(){document.readyState==="loading"?document.addEventListener("DOMContentLoaded",ra):ra()}export{vt as $,Be as A,wf as B,Ih as C,Uh as D,sh as E,$o as F,lt as G,Ar as H,mf as I,Dn as J,Ts as K,Dh as L,_n as M,xn as N,Zl as O,qh as P,jh as Q,Fe as R,Dc as S,Hf as T,Ft as U,Aa as V,th as W,un as X,se as Y,dh as Z,Le as _,ur as a,Jf as a0,Hh as a1,Zd as a2,ts as a3,hh as a4,fh as a5,ah as a6,Hr as a7,Qd as a8,Ta as a9,Qs as aA,lh as aB,Yt as aC,he as aD,Z as aE,Od as aF,_i as aG,He as aH,ha as aI,yn as aJ,ne as aK,Rd as aL,Yd as aM,ih as aN,Eh as aO,Uf as aP,oh as aQ,pt as aR,fs as aS,hf as aT,kh as aU,Hc as aV,Pd as aW,z as aa,ke as ab,gh as ac,mh as ad,_h as ae,Mh as af,Xr as ag,yh as ah,ph as ai,Qf as aj,iu as ak,Tt as al,Fh as am,Bh as an,Mt as ao,jf as ap,eh as aq,Nh as ar,xe as as,ja as at,Ha as au,xa as av,ml as aw,Ua as ax,vf as ay,_f as az,cs as b,rh as c,Te as d,be as e,wt as f,Ji as g,dr as h,In as i,Fc as j,pe as k,F as l,Ee as m,kf as n,dt as o,Td as p,qe as q,ch as r,H as s,Xi as t,qf as u,$c as v,uh as w,En as x,Je as y,zd as z};
//# sourceMappingURL=pwa-viewport-cDxGxYgG.js.map