phanpy-cz/assets/useTitle-Bxi1QgwH.js
2025-04-27 07:42:34 +02:00

47 lines
233 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-DDyc08yp.js","./ScheduledAtField-C3P_Zxj4.js","./ScheduledAtField-BYEcxp5V.css","./compose-kP2FEx_j.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}));"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 us(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ff(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?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 mr={},_r={},kn;function cs(){return kn||(kn=1,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0;var t;(function(r){r.MalformedUnicode="MALFORMED_UNICODE",r.MalformedHexadecimal="MALFORMED_HEXADECIMAL",r.CodePointLimit="CODE_POINT_LIMIT",r.OctalDeprecation="OCTAL_DEPRECATION",r.EndOfString="END_OF_STRING"})(t=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[t.MalformedUnicode,"malformed Unicode character escape sequence"],[t.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[t.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[t.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[t.EndOfString,"malformed escape sequence at end of string"]])}(_r)),_r}var In;function ds(){return In||(In=1,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;const t=cs();Object.defineProperty(e,"ErrorType",{enumerable:!0,get:function(){return t.ErrorType}}),Object.defineProperty(e,"errorMessages",{enumerable:!0,get:function(){return t.errorMessages}});function r(d){return!d.match(/[^a-f0-9]/i)?parseInt(d,16):NaN}function n(d,p,_){const y=r(d);if(Number.isNaN(y)||_!==void 0&&_!==d.length)throw new SyntaxError(t.errorMessages.get(p));return y}function o(d){const p=n(d,t.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(p)}function a(d,p){const _=n(d,t.ErrorType.MalformedUnicode,4);if(p!==void 0){const y=n(p,t.ErrorType.MalformedUnicode,4);return String.fromCharCode(_,y)}return String.fromCharCode(_)}function i(d){return d.charAt(0)==="{"&&d.charAt(d.length-1)==="}"}function s(d){if(!i(d))throw new SyntaxError(t.errorMessages.get(t.ErrorType.MalformedUnicode));const p=d.slice(1,-1),_=n(p,t.ErrorType.MalformedUnicode);try{return String.fromCodePoint(_)}catch(y){throw y instanceof RangeError?new SyntaxError(t.errorMessages.get(t.ErrorType.CodePointLimit)):y}}function l(d,p=!1){if(p)throw new SyntaxError(t.errorMessages.get(t.ErrorType.OctalDeprecation));const _=parseInt(d,8);return String.fromCharCode(_)}const u=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function f(d){return u.get(d)||d}const c=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function h(d,p=!1){return d.replace(c,function(_,y,v,E,C,U,G,B,$){if(y!==void 0)return"\\";if(v!==void 0)return o(v);if(E!==void 0)return s(E);if(C!==void 0)return a(C,U);if(G!==void 0)return a(G);if(B==="0")return"\0";if(B!==void 0)return l(B,!p);if($!==void 0)return f($);throw new SyntaxError(t.errorMessages.get(t.ErrorType.EndOfString))})}e.unraw=h,e.default=h}(mr)),mr}var fs=ds();var et={},_t={},jt={exports:{}},hs=jt.exports,Dn;function ps(){return Dn||(Dn=1,function(e){(function(t,r){e.exports?e.exports=r():t.moo=r()})(hs,function(){"use strict";var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=typeof new RegExp().sticky=="boolean";function o(m){return m&&r.call(m)==="[object RegExp]"}function a(m){return m&&typeof m=="object"&&!o(m)&&!Array.isArray(m)}function i(m){return m.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(m){var w=new RegExp("|"+m);return w.exec("").length-1}function l(m){return"("+m+")"}function u(m){if(!m.length)return"(?!)";var w=m.map(function(S){return"(?:"+S+")"}).join("|");return"(?:"+w+")"}function f(m){if(typeof m=="string")return"(?:"+i(m)+")";if(o(m)){if(m.ignoreCase)throw new Error("RegExp /i flag not allowed");if(m.global)throw new Error("RegExp /g flag is implied");if(m.sticky)throw new Error("RegExp /y flag is implied");if(m.multiline)throw new Error("RegExp /m flag is implied");return m.source}else throw new Error("Not a pattern: "+m)}function c(m,w){return m.length>w?m:Array(w-m.length+1).join(" ")+m}function h(m,w){for(var S=m.length,A=0;;){var P=m.lastIndexOf(`
`,S-1);if(P===-1||(A++,S=P,A===w)||S===0)break}var x=A<w?0:S+1;return m.substring(x).split(`
`)}function d(m){for(var w=Object.getOwnPropertyNames(m),S=[],A=0;A<w.length;A++){var P=w[A],x=m[P],R=[].concat(x);if(P==="include"){for(var I=0;I<R.length;I++)S.push({include:R[I]});continue}var D=[];R.forEach(function(k){a(k)?(D.length&&S.push(_(P,D)),S.push(_(P,k)),D=[]):D.push(k)}),D.length&&S.push(_(P,D))}return S}function p(m){for(var w=[],S=0;S<m.length;S++){var A=m[S];if(A.include){for(var P=[].concat(A.include),x=0;x<P.length;x++)w.push({include:P[x]});continue}if(!A.type)throw new Error("Rule has no type: "+JSON.stringify(A));w.push(_(A.type,A))}return w}function _(m,w){if(a(w)||(w={match:w}),w.include)throw new Error("Matching rules cannot also include states");var S={defaultType:m,lineBreaks:!!w.error||!!w.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var A in w)t.call(w,A)&&(S[A]=w[A]);if(typeof S.type=="string"&&m!==S.type)throw new Error("Type transform cannot be a string (type '"+S.type+"' for token '"+m+"')");var P=S.match;return S.match=Array.isArray(P)?P:P?[P]:[],S.match.sort(function(x,R){return o(x)&&o(R)?0:o(R)?-1:o(x)?1:R.length-x.length}),S}function y(m){return Array.isArray(m)?p(m):d(m)}var v=_("error",{lineBreaks:!0,shouldThrow:!0});function E(m,w){for(var S=null,A=Object.create(null),P=!0,x=null,R=[],I=[],D=0;D<m.length;D++)m[D].fallback&&(P=!1);for(var D=0;D<m.length;D++){var k=m[D];if(k.include)throw new Error("Inheritance is not allowed in stateless lexers");if(k.error||k.fallback){if(S)throw!k.fallback==!S.fallback?new Error("Multiple "+(k.fallback?"fallback":"error")+" rules not allowed (for token '"+k.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+k.defaultType+"')");S=k}var W=k.match.slice();if(P)for(;W.length&&typeof W[0]=="string"&&W[0].length===1;){var X=W.shift();A[X.charCodeAt(0)]=k}if(k.pop||k.push||k.next){if(!w)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+k.defaultType+"')");if(k.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+k.defaultType+"')")}if(W.length!==0){P=!1,R.push(k);for(var le=0;le<W.length;le++){var he=W[le];if(o(he)){if(x===null)x=he.unicode;else if(x!==he.unicode&&k.fallback===!1)throw new Error("If one rule is /u then all must be")}}var _e=u(W.map(f)),ue=new RegExp(_e);if(ue.test(""))throw new Error("RegExp matches empty string: "+ue);var Ee=s(_e);if(Ee>0)throw new Error("RegExp has capture groups: "+ue+`
Use (?: … ) instead`);if(!k.lineBreaks&&ue.test(`
`))throw new Error("Rule should declare lineBreaks: "+ue);I.push(l(_e))}}var Te=S&&S.fallback,qe=n&&!Te?"ym":"gm",Ze=n||Te?"":"|";x===!0&&(qe+="u");var hr=new RegExp(u(I)+Ze,qe);return{regexp:hr,groups:R,fast:A,error:S||v}}function C(m){var w=E(y(m));return new $({start:w},"start")}function U(m,w,S){var A=m&&(m.push||m.next);if(A&&!S[A])throw new Error("Missing state '"+A+"' (in token '"+m.defaultType+"' of state '"+w+"')");if(m&&m.pop&&+m.pop!=1)throw new Error("pop must be 1 (in token '"+m.defaultType+"' of state '"+w+"')")}function G(m,w){var S=m.$all?y(m.$all):[];delete m.$all;var A=Object.getOwnPropertyNames(m);w||(w=A[0]);for(var P=Object.create(null),x=0;x<A.length;x++){var R=A[x];P[R]=y(m[R]).concat(S)}for(var x=0;x<A.length;x++)for(var R=A[x],I=P[R],D=Object.create(null),k=0;k<I.length;k++){var W=I[k];if(W.include){var X=[k,1];if(W.include!==R&&!D[W.include]){D[W.include]=!0;var le=P[W.include];if(!le)throw new Error("Cannot include nonexistent state '"+W.include+"' (in state '"+R+"')");for(var he=0;he<le.length;he++){var _e=le[he];I.indexOf(_e)===-1&&X.push(_e)}}I.splice.apply(I,X),k--}}for(var ue=Object.create(null),x=0;x<A.length;x++){var R=A[x];ue[R]=E(P[R],!0)}for(var x=0;x<A.length;x++){for(var Ee=A[x],Te=ue[Ee],qe=Te.groups,k=0;k<qe.length;k++)U(qe[k],Ee,ue);for(var Ze=Object.getOwnPropertyNames(Te.fast),k=0;k<Ze.length;k++)U(Te.fast[Ze[k]],Ee,ue)}return new $(ue,w)}function B(m){for(var w=typeof Map<"u",S=w?new Map:Object.create(null),A=Object.getOwnPropertyNames(m),P=0;P<A.length;P++){var x=A[P],R=m[x],I=Array.isArray(R)?R:[R];I.forEach(function(D){if(typeof D!="string")throw new Error("keyword must be string (in keyword '"+x+"')");w?S.set(D,x):S[D]=x})}return function(D){return w?S.get(D):S[D]}}var $=function(m,w){this.startState=w,this.states=m,this.buffer="",this.stack=[],this.reset()};$.prototype.reset=function(m,w){return this.buffer=m||"",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},$.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}},$.prototype.setState=function(m){if(!(!m||this.state===m)){this.state=m;var w=this.states[m];this.groups=w.groups,this.error=w.error,this.re=w.regexp,this.fast=w.fast}},$.prototype.popState=function(){this.setState(this.stack.pop())},$.prototype.pushState=function(m){this.stack.push(this.state),this.setState(m)};var te=n?function(m,w){return m.exec(w)}:function(m,w){var S=m.exec(w);return S[0].length===0?null:S};$.prototype._getGroup=function(m){for(var w=this.groups.length,S=0;S<w;S++)if(m[S+1]!==void 0)return this.groups[S];throw new Error("Cannot find token type for matched text")};function V(){return this.value}if($.prototype.next=function(){var m=this.index;if(this.queuedGroup){var w=this._token(this.queuedGroup,this.queuedText,m);return this.queuedGroup=null,this.queuedText="",w}var S=this.buffer;if(m!==S.length){var R=this.fast[S.charCodeAt(m)];if(R)return this._token(R,S.charAt(m),m);var A=this.re;A.lastIndex=m;var P=te(A,S),x=this.error;if(P==null)return this._token(x,S.slice(m,S.length),m);var R=this._getGroup(P),I=P[0];return x.fallback&&P.index!==m?(this.queuedGroup=R,this.queuedText=I,this._token(x,S.slice(m,P.index),m)):this._token(R,I,m)}},$.prototype._token=function(m,w,S){var A=0;if(m.lineBreaks){var P=/\n/g,x=1;if(w===`
`)A=1;else for(;P.exec(w);)A++,x=P.lastIndex}var R={type:typeof m.type=="function"&&m.type(w)||m.defaultType,value:typeof m.value=="function"?m.value(w):w,text:w,toString:V,offset:S,lineBreaks:A,line:this.line,col:this.col},I=w.length;if(this.index+=I,this.line+=A,A!==0?this.col=I-x+1:this.col+=I,m.shouldThrow){var D=new Error(this.formatError(R,"invalid syntax"));throw D}return m.pop?this.popState():m.push?this.pushState(m.push):m.next&&this.setState(m.next),R},typeof Symbol<"u"&&Symbol.iterator){var Z=function(m){this.lexer=m};Z.prototype.next=function(){var m=this.lexer.next();return{value:m,done:!m}},Z.prototype[Symbol.iterator]=function(){return this},$.prototype[Symbol.iterator]=function(){return new Z(this)}}return $.prototype.formatError=function(m,w){if(m==null)var S=this.buffer.slice(this.index),m={text:S,offset:this.index,lineBreaks:S.indexOf(`
`)===-1?0:1,line:this.line,col:this.col};var A=2,P=Math.max(m.line-A,1),x=m.line+A,R=String(x).length,I=h(this.buffer,this.line-m.line+A+1).slice(0,5),D=[];D.push(w+" at line "+m.line+" col "+m.col+":"),D.push("");for(var k=0;k<I.length;k++){var W=I[k],X=P+k;D.push(c(String(X),R)+" "+W),X===m.line&&D.push(c("",R+m.col+1)+"^")}return D.join(`
`)},$.prototype.clone=function(){return new $(this.states,this.state)},$.prototype.has=function(m){return!0},{compile:C,states:G,error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:B}})}(jt)),jt.exports}var Un;function ms(){return Un||(Un=1,function(e){"use strict";var t=_t&&_t.__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(ps());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)}(_t)),_t}var Fn;function _s(){if(Fn)return et;Fn=1,Object.defineProperty(et,"__esModule",{value:!0}),et.ParseError=void 0,et.parse=l;const e=ms(),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 p of f){const _=p.ctx.text;switch(h+=_,p.type){case"content":c+=p.value;break;case"argument":case"function":case"octothorpe":c+=_;break;default:throw new i(u,`Unsupported part in strict mode function arg style: ${_}`)}}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))}}et.ParseError=i;class s{constructor(f,c){var h,d,p,_;this.lexer=e.lexer.reset(f),this.cardinalKeys=(h=c==null?void 0:c.cardinal)!==null&&h!==void 0?h:a,this.ordinalKeys=(d=c==null?void 0:c.ordinal)!==null&&d!==void 0?d:a,this.strict=(p=c==null?void 0:c.strict)!==null&&p!==void 0?p:!1,this.strictPluralKeys=(_=c==null?void 0:c.strictPluralKeys)!==null&&_!==void 0?_:!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 p=`The ${c} case ${h} is not valid in this locale`;throw new i(f,p)}}}parseSelect({value:f},c,h,d){const p={type:d,arg:f,cases:[],ctx:h};d==="plural"||d==="selectordinal"?c=!0:this.strict&&(c=!1);for(const _ of this.lexer)switch(_.type){case"offset":if(d==="select")throw new i(_,"Unexpected plural offset for select");if(p.cases.length>0)throw new i(_,"Plural offset must be set before cases");p.pluralOffset=Number(_.value),h.text+=_.text,h.lineBreaks+=_.lineBreaks;break;case"case":{this.checkSelectKey(_,d,_.value),p.cases.push({key:_.value,tokens:this.parseBody(c),ctx:t(_)});break}case"end":return p;default:throw new i(_,`Unexpected lexer token: ${_.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 p=`Invalid strict mode function arg type: ${d.value}`;throw new i(f,p)}switch(d.type){case"end":return{type:"argument",arg:f.value,ctx:h};case"func-simple":{const p=this.lexer.next();if(!p)throw new i(null,"Unexpected message end");if(p.type!=="end")throw new i(p,`Unexpected lexer token: ${p.type}`);if(h.text+=p.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 _=`Invalid type identifier: ${d.value}`;throw new i(d,_)}let p=this.parseBody(this.strict?!1:c);return this.strict&&p.length>0&&(p=n(f,p)),{type:"function",arg:f.value,key:d.value,param:p,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 p of this.lexer)if(p.type==="argument")d&&(d=null),h.push(this.parseArgToken(p,f));else if(p.type==="octothorpe"&&f)d&&(d=null),h.push({type:"octothorpe",ctx:t(p)});else{if(p.type==="end"&&!c)return h;{let _=p.value;if(!f&&p.type==="quoted"&&_[0]==="#"){if(_.includes("{")){const y=`Unsupported escape pattern: ${_}`;throw new i(p,y)}_=p.text}d?(d.value+=_,d.ctx.text+=p.text,d.ctx.lineBreaks+=p.lineBreaks):(d={type:"content",value:_,ctx:t(p)},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 et}var hf=_s();const Me=e=>typeof e=="string",ys=e=>typeof e=="function",qn=new Map,Wo="en";function Qr(e){return[...Array.isArray(e)?e:[e],Wo]}function Xr(e,t,r){const n=Qr(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 Gt(()=>Kt("date",n,r),()=>new Intl.DateTimeFormat(n,o)).format(Me(t)?new Date(t):t)}function gs(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 Xr(e,t,n)}function Or(e,t,r){const n=Qr(e);return Gt(()=>Kt("number",n,r),()=>new Intl.NumberFormat(n,r)).format(t)}function jn(e,t,r,{offset:n=0,...o}){const a=Qr(e),i=t?Gt(()=>Kt("plural-ordinal",a),()=>new Intl.PluralRules(a,{type:"ordinal"})):Gt(()=>Kt("plural-cardinal",a),()=>new Intl.PluralRules(a,{type:"cardinal"}));return o[r]??o[i.select(r-n)]??o.other}function Gt(e,t){const r=e();let n=qn.get(r);return n||(n=t(),qn.set(r,n)),n}function Kt(e,t,r){const n=t.join("-");return`${e}-${n}-${JSON.stringify(r)}`}const Yo=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,Jo="%__lingui_octothorpe__%",vs=(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=Or(n,i,l);return s.replace(new RegExp(Jo,"g"),u)};return{plural:(i,s)=>{const{offset:l=0}=s,u=jn(n,!1,i,s);return a(i-l,u)},selectordinal:(i,s)=>{const{offset:l=0}=s,u=jn(n,!0,i,s);return a(i-l,u)},select:ws,number:(i,s)=>Or(n,i,o(s)||{style:s}),date:(i,s)=>Xr(n,i,o(s)||s),time:(i,s)=>gs(n,i,o(s)||s)}},ws=(e,t)=>t[e]??t.other;function bs(e,t,r){return(n={},o)=>{const a=vs(t,r,o),i=(l,u=!1)=>Array.isArray(l)?l.reduce((f,c)=>{if(c==="#"&&u)return f+Jo;if(Me(c))return f+c;const[h,d,p]=c;let _={};d==="plural"||d==="selectordinal"||d==="select"?Object.entries(p).forEach(([v,E])=>{_[v]=i(E,d==="plural"||d==="selectordinal")}):_=p;let y;if(d){const v=a[d];y=v(n[h],_)}else y=n[h];return y==null?f:f+y},""):l,s=i(e);return Me(s)&&Yo.test(s)?fs.unraw(s):Me(s)?s:s?String(s):""}}var Es=Object.defineProperty,Ss=(e,t,r)=>t in e?Es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,As=(e,t,r)=>(Ss(e,typeof t!="symbol"?t+"":t,r),r);class Cs{constructor(){As(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 Ps=Object.defineProperty,Rs=(e,t,r)=>t in e?Ps(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,je=(e,t,r)=>(Rs(e,typeof t!="symbol"?t+"":t,r),r);class Ts extends Cs{constructor(t){super(),je(this,"_locale",""),je(this,"_locales"),je(this,"_localeData",{}),je(this,"_messages",{}),je(this,"_missing"),je(this,"_messageCompiler"),je(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??Wo,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==null?void 0:n.message;t||(t=""),Me(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 ys(s)?s(this._locale,t):s;i&&this.emit("missing",{id:t,locale:this._locale});let l=a||o||t;return Me(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.
`)),Me(l)&&Yo.test(l)?JSON.parse(`"${l}"`):Me(l)?l:bs(l,this._locale,this._locales)(r,n==null?void 0:n.formats)}date(t,r){return Xr(this._locales||this._locale,t,r)}number(t,r){return Or(this._locales||this._locale,t,r)}}function xs(e={}){return new Ts(e)}const at=xs();var Ot,j,Zo,Os,He,Hn,Qo,Xo,ea,en,Lr,Mr,ta,Pt={},ra=[],Ls=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Lt=Array.isArray;function ve(e,t){for(var r in t)e[r]=t[r];return e}function tn(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function J(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?Ot.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)i[a]==null&&(i[a]=e.defaultProps[a]);return St(e,i,n,o,null)}function St(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??++Zo,__i:-1,__u:0};return o==null&&j.vnode!=null&&j.vnode(a),a}function na(){return{current:null}}function me(e){return e.children}function pe(e,t){this.props=e,this.context=t}function lt(e,t){if(t==null)return e.__?lt(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"?lt(e):null}function oa(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 oa(e)}}function Nr(e){(!e.__d&&(e.__d=!0)&&He.push(e)&&!Vt.__r++||Hn!=j.debounceRendering)&&((Hn=j.debounceRendering)||Qo)(Vt)}function Vt(){for(var e,t,r,n,o,a,i,s=1;He.length;)He.length>s&&He.sort(Xo),e=He.shift(),s=He.length,e.__d&&(r=void 0,o=(n=(t=e).__v).__e,a=[],i=[],t.__P&&((r=ve({},n)).__v=n.__v+1,j.vnode&&j.vnode(r),rn(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,a,o??lt(n),!!(32&n.__u),i),r.__v=n.__v,r.__.__k[r.__i]=r,sa(a,r,i),r.__e!=o&&oa(r)));Vt.__r=0}function aa(e,t,r,n,o,a,i,s,l,u,f){var c,h,d,p,_,y,v=n&&n.__k||ra,E=t.length;for(l=Ms(r,t,v,l,E),c=0;c<E;c++)(d=r.__k[c])!=null&&(h=d.__i==-1?Pt:v[d.__i]||Pt,d.__i=c,y=rn(e,d,h,o,a,i,s,l,u,f),p=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&nn(h.ref,null,d),f.push(d.ref,d.__c||p,d)),_==null&&p!=null&&(_=p),4&d.__u||h.__k===d.__k?l=ia(d,l,e):typeof d.type=="function"&&y!==void 0?l=y:p&&(l=p.nextSibling),d.__u&=-7);return r.__e=_,l}function Ms(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?St(null,i,null,null,null):Lt(i)?St(me,{children:i},null,null,null):i.constructor==null&&i.__b>0?St(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=Ns(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=lt(s)),ua(s,s));return n}function ia(e,t,r){var n,o;if(typeof e.type=="function"){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=ia(n[o],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=lt(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Ce(e,t){return t=t||[],e==null||typeof e=="boolean"||(Lt(e)?e.some(function(r){Ce(r,t)}):t.push(e)),t}function Ns(e,t,r,n){var o,a,i=e.key,s=e.type,l=t[r];if(l===null&&e.key==null||l&&i==l.key&&s==l.type&&(2&l.__u)==0)return r;if(n>(l!=null&&(2&l.__u)==0?1:0))for(o=r-1,a=r+1;o>=0||a<t.length;){if(o>=0){if((l=t[o])&&(2&l.__u)==0&&i==l.key&&s==l.type)return o;o--}if(a<t.length){if((l=t[a])&&(2&l.__u)==0&&i==l.key&&s==l.type)return a;a++}}return-1}function Bn(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||Ls.test(t)?r:r+"px"}function It(e,t,r,n,o){var a;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||Bn(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||Bn(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")a=t!=(t=t.replace(ea,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=r,r?n?r.u=n.u:(r.u=en,e.addEventListener(t,a?Mr:Lr,a)):e.removeEventListener(t,a?Mr:Lr,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 zn(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=en++;else if(t.t<r.u)return;return r(j.event?j.event(t):t)}}}function rn(e,t,r,n,o,a,i,s,l,u){var f,c,h,d,p,_,y,v,E,C,U,G,B,$,te,V,Z,m=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 m=="function")try{if(v=t.props,E="prototype"in m&&m.prototype.render,C=(f=m.contextType)&&n[f.__c],U=f?C?C.props.value:f.__:n,r.__c?y=(c=t.__c=r.__c).__=c.__E:(E?t.__c=c=new m(v,U):(t.__c=c=new pe(v,U),c.constructor=m,c.render=Is),C&&C.sub(c),c.props=v,c.state||(c.state={}),c.context=U,c.__n=n,h=c.__d=!0,c.__h=[],c._sb=[]),E&&c.__s==null&&(c.__s=c.state),E&&m.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=ve({},c.__s)),ve(c.__s,m.getDerivedStateFromProps(v,c.__s))),d=c.props,p=c.state,c.__v=t,h)E&&m.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),E&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(E&&m.getDerivedStateFromProps==null&&v!==d&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(v,U),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(v,c.__s,U)===!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)}),G=0;G<c._sb.length;G++)c.__h.push(c._sb[G]);c._sb=[],c.__h.length&&i.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(v,c.__s,U),E&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(d,p,_)})}if(c.context=U,c.props=v,c.__P=e,c.__e=!1,B=j.__r,$=0,E){for(c.state=c.__s,c.__d=!1,B&&B(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,B&&B(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++$<25);c.state=c.__s,c.getChildContext!=null&&(n=ve(ve({},n),c.getChildContext())),E&&!h&&c.getSnapshotBeforeUpdate!=null&&(_=c.getSnapshotBeforeUpdate(d,p)),V=f,f!=null&&f.type===me&&f.key==null&&(V=la(f.props.children)),s=aa(e,Lt(V)?V:[V],t,r,n,o,a,i,s,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&i.push(c),y&&(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(Z=a.length;Z--;)tn(a[Z]);else t.__e=r.__e,t.__k=r.__k;j.__e(w,t,r)}else a==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=ks(r.__e,t,r,n,o,a,i,l,u);return(f=j.diffed)&&f(t),128&t.__u?void 0:s}function sa(e,t,r){for(var n=0;n<r.length;n++)nn(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 la(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Lt(e)?e.map(la):ve({},e)}function ks(e,t,r,n,o,a,i,s,l){var u,f,c,h,d,p,_,y=r.props,v=t.props,E=t.type;if(E=="svg"?o="http://www.w3.org/2000/svg":E=="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==!!E&&(E?d.localName==E:d.nodeType==3)){e=d,a[u]=null;break}}if(e==null){if(E==null)return document.createTextNode(v);e=document.createElementNS(o,E,v.is&&v),s&&(j.__m&&j.__m(t,a),s=!1),a=null}if(E==null)y===v||s&&e.data==v||(e.data=v);else{if(a=a&&Ot.call(e.childNodes),y=r.props||Pt,!s&&a!=null)for(y={},u=0;u<e.attributes.length;u++)y[(d=e.attributes[u]).name]=d.value;for(u in y)if(d=y[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;It(e,u,null,d,o)}}for(u in v)d=v[u],u=="children"?h=d:u=="dangerouslySetInnerHTML"?f=d:u=="value"?p=d:u=="checked"?_=d:s&&typeof d!="function"||y[u]===d||It(e,u,d,y[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=""),aa(t.type=="template"?e.content:e,Lt(h)?h:[h],t,r,n,E=="foreignObject"?"http://www.w3.org/1999/xhtml":o,a,i,a?a[0]:r.__k&&lt(r,0),s,l),a!=null)for(u=a.length;u--;)tn(a[u]);s||(u="value",E=="progress"&&p==null?e.removeAttribute("value"):p!=null&&(p!==e[u]||E=="progress"&&!p||E=="option"&&p!=y[u])&&It(e,u,p,y[u],o),u="checked",_!=null&&_!=e[u]&&It(e,u,_,y[u],o))}return e}function nn(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 ua(e,t,r){var n,o;if(j.unmount&&j.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||nn(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]&&ua(n[o],t,r||typeof e.type!="function");r||tn(e.__e),e.__c=e.__=e.__e=void 0}function Is(e,t,r){return this.constructor(e,r)}function Rt(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=[],rn(t,e=(!n&&r||t).__k=J(me,null,[e]),o||Pt,Pt,t.namespaceURI,!n&&r?[r]:o?null:t.firstChild?Ot.call(t.childNodes):null,a,!n&&r?r:o?o.__e:t.firstChild,n,i),sa(a,e,i)}function ca(e,t){Rt(e,t,ca)}function Ds(e,t,r){var n,o,a,i,s=ve({},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]==null&&i!=null?i[a]:t[a];return arguments.length>2&&(s.children=arguments.length>3?Ot.call(arguments,2):r),St(e.type,s,n||e.key,o||e.ref,null)}function De(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,Nr(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"+ta++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}Ot=ra.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}},Zo=0,Os=function(e){return e!=null&&e.constructor==null},pe.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=ve({},this.state),typeof e=="function"&&(e=e(ve({},r),this.props)),e&&ve(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Nr(this))},pe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Nr(this))},pe.prototype.render=me,He=[],Qo=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Xo=function(e,t){return e.__v.__b-t.__v.__b},Vt.__r=0,ea=/(PointerCapture)$|Capture$/i,en=0,Lr=zn(!1),Mr=zn(!0),ta=0;var Pe,Q,yr,$n,ut=0,da=[],ee=j,Gn=ee.__b,Kn=ee.__r,Vn=ee.diffed,Wn=ee.__c,Yn=ee.unmount,Jn=ee.__;function Ke(e,t){ee.__h&&ee.__h(Q,e,ut||t),ut=0;var r=Q.__H||(Q.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Ve(e){return ut=1,ir(fa,e)}function ir(e,t,r){var n=Ke(Pe++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):fa(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 We(e,t){var r=Ke(Pe++,3);!ee.__s&&sn(r.__H,t)&&(r.__=e,r.u=t,Q.__H.__h.push(r))}function Re(e,t){var r=Ke(Pe++,4);!ee.__s&&sn(r.__H,t)&&(r.__=e,r.u=t,Q.__h.push(r))}function Ue(e){return ut=5,be(function(){return{current:e}},[])}function on(e,t,r){ut=6,Re(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 be(e,t){var r=Ke(Pe++,7);return sn(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function ft(e,t){return ut=8,be(function(){return e},t)}function se(e){var t=Q.context[e.__c],r=Ke(Pe++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(Q)),t.props.value):e.__}function sr(e,t){ee.useDebugValue&&ee.useDebugValue(t?t(e):e)}function Us(e){var t=Ke(Pe++,10),r=Ve();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 an(){var e=Ke(Pe++,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 Fs(){for(var e;e=da.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ht),e.__H.__h.forEach(kr),e.__H.__h=[]}catch(t){e.__H.__h=[],ee.__e(t,e.__v)}}ee.__b=function(e){Q=null,Gn&&Gn(e)},ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Jn&&Jn(e,t)},ee.__r=function(e){Kn&&Kn(e),Pe=0;var t=(Q=e.__c).__H;t&&(yr===Q?(t.__h=[],Q.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Ht),t.__h.forEach(kr),t.__h=[],Pe=0)),yr=Q},ee.diffed=function(e){Vn&&Vn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(da.push(t)!==1&&$n===ee.requestAnimationFrame||(($n=ee.requestAnimationFrame)||qs)(Fs)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),yr=Q=null},ee.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Ht),r.__h=r.__h.filter(function(n){return!n.__||kr(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],ee.__e(n,r.__v)}}),Wn&&Wn(e,t)},ee.unmount=function(e){Yn&&Yn(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Ht(n)}catch(o){t=o}}),r.__H=void 0,t&&ee.__e(t,r.__v))};var Zn=typeof requestAnimationFrame=="function";function qs(e){var t,r=function(){clearTimeout(n),Zn&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Zn&&(t=requestAnimationFrame(r))}function Ht(e){var t=Q,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Q=t}function kr(e){var t=Q;e.__c=e.__(),Q=t}function sn(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function fa(e,t){return typeof t=="function"?t(e):t}function ha(e,t){for(var r in t)e[r]=t[r];return e}function Ir(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 lr(e,t){var r=t(),n=Ve({t:{__:r,u:t}}),o=n[0].t,a=n[1];return Re(function(){o.__=r,o.u=t,gr(o)&&a({t:o})},[e,r,t]),We(function(){return gr(o)&&a({t:o}),e(function(){gr(o)&&a({t:o})})},[e]),r}function gr(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 ln(e){e()}function un(e){return e}function cn(){return[!1,ln]}var dn=Re;function Wt(e,t){this.props=e,this.context=t}function pa(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:Ir(this.props,o)}function n(o){return this.shouldComponentUpdate=r,J(e,o)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(Wt.prototype=new pe).isPureReactComponent=!0,Wt.prototype.shouldComponentUpdate=function(e,t){return Ir(this.props,e)||Ir(this.state,t)};var Qn=j.__b;j.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Qn&&Qn(e)};var js=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ma(e){function t(r){var n=ha({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=js,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Xn=function(e,t){return e==null?null:Ce(Ce(e).map(t))},fn={map:Xn,forEach:Xn,count:function(e){return e?Ce(e).length:0},only:function(e){var t=Ce(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ce},Hs=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)}Hs(e,t,r,n)};var eo=j.unmount;function _a(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=ha({},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 _a(n,t,r)})),e}function ya(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return ya(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 At(){this.__u=0,this.o=null,this.__b=null}function ga(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function va(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 J(r,a)}return o.displayName="Lazy",o.__f=!0,o}function rt(){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),eo&&eo(e)},(At.prototype=new pe).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=ga(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]=ya(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)},At.prototype.componentWillUnmount=function(){this.o=[]},At.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]=_a(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&J(me,null,e.fallback);return o&&(o.__u&=-33),[J(me,null,t.__a?null:e.children),o]};var to=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 Bs(e){return this.getChildContext=function(){return e.context},e.children}function zs(e){var t=this,r=e.h;t.componentWillUnmount=function(){Rt(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),t.v||(t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],contains:function(){return!0},appendChild:function(n){this.childNodes.push(n),t.h.appendChild(n)},insertBefore:function(n,o){this.childNodes.push(n),t.h.insertBefore(n,o)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.h.removeChild(n)}}),Rt(J(Bs,{context:t.context},e.__v),t.v)}function wa(e,t){var r=J(zs,{__v:e,h:t});return r.containerInfo=t,r}(rt.prototype=new pe).__a=function(e){var t=this,r=ga(t.__v),n=t.l.get(e);return n[0]++,function(o){var a=function(){t.props.revealOrder?(n.push(o),to(t,e,n)):o()};r?r(a):a()}},rt.prototype.render=function(e){this.i=null,this.l=new Map;var t=Ce(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},rt.prototype.componentDidUpdate=rt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){to(e,r,t)})};var ba=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,$s=/^(?: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]/,Gs=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ks=/[A-Z0-9]/g,Vs=typeof document<"u",Ws=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ea(e,t,r){return t.__k==null&&(t.textContent=""),Rt(e,t),typeof r=="function"&&r(),e?e.__c:null}function Sa(e,t,r){return ca(e,t),typeof r=="function"&&r(),e?e.__c:null}pe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(pe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var ro=j.event;function Ys(){}function Js(){return this.cancelBubble}function Zs(){return this.defaultPrevented}j.event=function(e){return ro&&(e=ro(e)),e.persist=Ys,e.isPropagationStopped=Js,e.isDefaultPrevented=Zs,e.nativeEvent=e};var hn,Qs={enumerable:!1,configurable:!0,get:function(){return this.class}},no=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||Vs&&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"||Ws(r.type)?l==="onfocus"?i="onfocusin":l==="onblur"?i="onfocusout":Gs.test(i)&&(i=l):l=i="oninput":a&&$s.test(i)?i=i.replace(Ks,"-$&").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=Ce(r.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=Ce(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",Qs)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=ba,no&&no(e)};var oo=j.__r;j.__r=function(e){oo&&oo(e),hn=e.__c};var ao=j.diffed;j.diffed=function(e){ao&&ao(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),hn=null};var Aa={ReactCurrentDispatcher:{current:{readContext:function(e){return hn.__n[e.__c].props.value},useCallback:ft,useContext:se,useDebugValue:sr,useDeferredValue:un,useEffect:We,useId:an,useImperativeHandle:on,useInsertionEffect:dn,useLayoutEffect:Re,useMemo:be,useReducer:ir,useRef:Ue,useState:Ve,useSyncExternalStore:lr,useTransition:cn}}},Xs="18.3.1";function Ca(e){return J.bind(null,e)}function ht(e){return!!e&&e.$$typeof===ba}function Pa(e){return ht(e)&&e.type===me}function Ra(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Ta(e){return ht(e)?Ds.apply(null,arguments):e}function xa(e){return!!e.__k&&(Rt(null,e),!0)}function Oa(e){return e&&(e.base||e.nodeType===1&&e)||null}var La=function(e,t){return e(t)},Ma=function(e,t){return e(t)},Na=me,ka=ht,oe={useState:Ve,useId:an,useReducer:ir,useEffect:We,useLayoutEffect:Re,useInsertionEffect:dn,useTransition:cn,useDeferredValue:un,useSyncExternalStore:lr,startTransition:ln,useRef:Ue,useImperativeHandle:on,useMemo:be,useCallback:ft,useContext:se,useDebugValue:sr,version:"18.3.1",Children:fn,render:Ea,hydrate:Sa,unmountComponentAtNode:xa,createPortal:wa,createElement:J,createContext:De,createFactory:Ca,cloneElement:Ta,createRef:na,Fragment:me,isValidElement:ht,isElement:ka,isFragment:Pa,isMemo:Ra,findDOMNode:Oa,Component:pe,PureComponent:Wt,memo:pa,forwardRef:ma,flushSync:Ma,unstable_batchedUpdates:La,StrictMode:Na,Suspense:At,SuspenseList:rt,lazy:va,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Aa};const Dr=Object.freeze(Object.defineProperty({__proto__:null,Children:fn,Component:pe,Fragment:me,PureComponent:Wt,StrictMode:Na,Suspense:At,SuspenseList:rt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Aa,cloneElement:Ta,createContext:De,createElement:J,createFactory:Ca,createPortal:wa,createRef:na,default:oe,findDOMNode:Oa,flushSync:Ma,forwardRef:ma,hydrate:Sa,isElement:ka,isFragment:Pa,isMemo:Ra,isValidElement:ht,lazy:va,memo:pa,render:Ea,startTransition:ln,unmountComponentAtNode:xa,unstable_batchedUpdates:La,useCallback:ft,useContext:se,useDebugValue:sr,useDeferredValue:un,useEffect:We,useErrorBoundary:Us,useId:an,useImperativeHandle:on,useInsertionEffect:dn,useLayoutEffect:Re,useMemo:be,useReducer:ir,useRef:Ue,useState:Ve,useSyncExternalStore:lr,useTransition:cn,version:Xs},Symbol.toStringTag,{value:"Module"})),el=/<([a-zA-Z0-9]+)>([\s\S]*?)<\/\1>|<([a-zA-Z0-9]+)\/>/,tl={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 Ia(e,t={}){const r=rl(0,"$lingui$"),n=e.split(el);if(n.length===1)return e;const o=[],a=n.shift();a&&o.push(a);for(const[i,s,l]of Da(n)){let u=typeof i<"u"?t[i]:void 0;(!u||tl[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=oe.createElement(oe.Fragment)),Array.isArray(u)&&(u=oe.createElement(oe.Fragment,{},u)),o.push(oe.cloneElement(u,{key:r()},s?Ia(s,t):u.props.children)),l&&o.push(l)}return o.length===1?o[0]:o}function Da(e){if(!e.length)return[];const[t,r,n,o]=e.slice(0,4);return[[t||n,r||"",o]].concat(Da(e.slice(4,e.length)))}const rl=(e=0,t="")=>()=>`${t}_${e++}`;function nl(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(_=>{const y=Object.keys(u).length;typeof l[_]=="string"||typeof l[_]=="number"||(u[y]=oe.createElement(oe.Fragment,null,l[_]),l[_]=`<${y}/>`)});const f=i&&typeof i._=="function"?i._(n,l,{message:o,formats:a}):n,c=f?Ia(f,u):null;if(t===null||r===null)return c;const h=s||ol,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}`),oe.createElement(h,d,c);if(typeof t=="function")return t(d);const p=r||h;return oe.createElement(p,d,c)}const ol=({children:e})=>oe.createElement(oe.Fragment,null,e),Ua=oe.createContext(null),Fa=e=>oe.useContext(Ua);function pf(){return Fa()}const mf=({i18n:e,defaultComponent:t,children:r})=>{const n=oe.useRef(e.locale),o=oe.useCallback(()=>({i18n:e,defaultComponent:t,_:e.t.bind(e)}),[e,t]),[a,i]=oe.useState(o());return oe.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?oe.createElement(Ua.Provider,{value:a},r):null};function _f(e){const r=Fa(void 0);return oe.createElement(nl,{...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 Yt(){return Yt=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},Yt.apply(this,arguments)}var Ne;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ne||(Ne={}));const io="popstate";function al(e){e===void 0&&(e={});function t(o,a){let{pathname:i="/",search:s="",hash:l=""}=Ye(o.location.hash.substr(1));return Ur("",{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:pn(a))}function n(o,a){il(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return ul(t,r,n,e)}function ie(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function il(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 so(e){return{usr:e.state,key:e.key}}function Ur(e,t,r,n){return r===void 0&&(r=null),Yt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ye(t):t,{state:r,key:t&&t.key||n||sl()})}function pn(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 Ye(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 ll(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:pn(e);return ie(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}function ul(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:a=!1}=n,i=o.history,s=Ne.Pop,l=null;function u(){s=Ne.Pop,l&&l({action:s,location:h.location})}function f(d,p){s=Ne.Push;let _=Ur(h.location,d,p);r&&r(_,d);let y=so(_),v=h.createHref(_);try{i.pushState(y,"",v)}catch{o.location.assign(v)}a&&l&&l({action:s,location:h.location})}function c(d,p){s=Ne.Replace;let _=Ur(h.location,d,p);r&&r(_,d);let y=so(_),v=h.createHref(_);i.replaceState(y,"",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(io,u),l=d,()=>{o.removeEventListener(io,u),l=null}},createHref(d){return t(o,d)},encodeLocation(d){let p=ll(typeof d=="string"?d:pn(d));return{pathname:p.pathname,search:p.search,hash:p.hash}},push:f,replace:c,go(d){return i.go(d)}};return h}var lo;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lo||(lo={}));function cl(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?Ye(t):t,o=Ha(n.pathname||"/",r);if(o==null)return null;let a=qa(e);dl(a);let i=null;for(let s=0;i==null&&s<a.length;++s)i=wl(a[s],El(o));return i}function qa(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=Be([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+'".')),qa(a.children,t,f,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:gl(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 ja(a.path))o(a,i,l)}),t}function ja(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=ja(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 dl(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:vl(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const fl=/^:\w+$/,hl=3,pl=2,ml=1,_l=10,yl=-2,uo=e=>e==="*";function gl(e,t){let r=e.split("/"),n=r.length;return r.some(uo)&&(n+=yl),t&&(n+=pl),r.filter(o=>!uo(o)).reduce((o,a)=>o+(fl.test(a)?hl:a===""?ml:_l),n)}function vl(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 wl(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=Fr({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:Be([o,f.pathname]),pathnameBase:Tl(Be([o,f.pathnameBase])),route:c}),f.pathnameBase!=="/"&&(o=Be([o,f.pathnameBase]))}return a}function Fr(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=bl(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]=Sl(s[c]||"",f),u},{}),pathname:a,pathnameBase:i,pattern:e}}function bl(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),mn(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 El(e){try{return decodeURI(e)}catch(t){return mn(!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 Sl(e,t){try{return decodeURIComponent(e)}catch(r){return mn(!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 Ha(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 mn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Al(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?Ye(e):e;return{pathname:r?r.startsWith("/")?r:Cl(r,t):t,search:xl(n),hash:Ol(o)}}function Cl(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 vr(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 Pl(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Rl(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=Ye(e):(o=Yt({},e),ie(!o.pathname||!o.pathname.includes("?"),vr("?","pathname","search",o)),ie(!o.pathname||!o.pathname.includes("#"),vr("#","pathname","hash",o)),ie(!o.search||!o.search.includes("#"),vr("#","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=Al(o,s),u=i&&i!=="/"&&i.endsWith("/"),f=(a||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const Be=e=>e.join("/").replace(/\/\/+/g,"/"),Tl=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),xl=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ol=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Ll{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 Ml(e){return e instanceof Ll}const Ba=["post","put","patch","delete"],yf=new Set(Ba),Nl=["get",...Ba],gf=new Set(Nl);const vf=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 qr(){return qr=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},qr.apply(this,arguments)}function kl(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const Il=typeof Object.is=="function"?Object.is:kl,{useState:Dl,useEffect:Ul,useLayoutEffect:Fl,useDebugValue:ql}=Dr;function jl(e,t,r){const n=t(),[{inst:o},a]=Dl({inst:{value:n,getSnapshot:t}});return Fl(()=>{o.value=n,o.getSnapshot=t,wr(o)&&a({inst:o})},[e,n,t]),Ul(()=>(wr(o)&&a({inst:o}),e(()=>{wr(o)&&a({inst:o})})),[e]),ql(n),n}function wr(e){const t=e.getSnapshot,r=e.value;try{const n=t();return!Il(r,n)}catch{return!0}}function Hl(e,t,r){return t()}const Bl=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zl=!Bl,$l=zl?Hl:jl,wf="useSyncExternalStore"in Dr?(e=>e.useSyncExternalStore)(Dr):$l,za=De(null),$a=De(null);const _n=De(null),ur=De(null),pt=De({outlet:null,matches:[]}),Ga=De(null);function cr(){return se(ur)!=null}function yn(){return cr()||ie(!1),se(ur).location}function Gl(){cr()||ie(!1);let{basename:e,navigator:t}=se(_n),{matches:r}=se(pt),{pathname:n}=yn(),o=JSON.stringify(Pl(r).map(s=>s.pathnameBase)),a=Ue(!1);return We(()=>{a.current=!0}),ft(function(s,l){if(l===void 0&&(l={}),!a.current)return;if(typeof s=="number"){t.go(s);return}let u=Rl(s,JSON.parse(o),n,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:Be([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,o,n])}function bf(){let{matches:e}=se(pt),t=e[e.length-1];return t?t.params:{}}function Kl(e,t){cr()||ie(!1);let{navigator:r}=se(_n),n=se($a),{matches:o}=se(pt),a=o[o.length-1],i=a?a.params:{},s=a?a.pathname:"/",l=a?a.pathnameBase:"/",u=a&&a.route,f=yn(),c;if(t){var h;let v=typeof t=="string"?Ye(t):t;l==="/"||(h=v.pathname)!=null&&h.startsWith(l)||ie(!1),c=v}else c=f;let d=c.pathname||"/",p=l==="/"?d:d.slice(l.length)||"/",_=cl(e,{pathname:p}),y=Jl(_&&_.map(v=>Object.assign({},v,{params:Object.assign({},i,v.params),pathname:Be([l,r.encodeLocation?r.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:Be([l,r.encodeLocation?r.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,n||void 0);return t&&y?J(ur.Provider,{value:{location:qr({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Ne.Pop}},y):y}function Vl(){let e=eu(),t=Ml(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 J(me,null,J("h2",null,"Unhandled Thrown Error!"),J("h3",{style:{fontStyle:"italic"}},t),r?J("pre",{style:o},r):null,J("p",null,"💿 Hey developer 👋"),J("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",J("code",{style:a},"errorElement")," props on ",J("code",{style:a},"<Route>")))}class Wl extends pe{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?J(pt.Provider,{value:this.props.routeContext},J(Ga.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Yl(e){let{routeContext:t,match:r,children:n}=e,o=se(za);return o&&o.static&&o.staticContext&&r.route.errorElement&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),J(pt.Provider,{value:t},n)}function Jl(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==null?void 0:r.errors;if(o!=null){let a=n.findIndex(i=>i.route.id&&(o==null?void 0: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==null?void 0:o[i.route.id]:null,u=r?i.route.errorElement||J(Vl,null):null,f=t.concat(n.slice(0,s+1)),c=()=>J(Yl,{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)?J(Wl,{location:r.location,component:u,error:l,children:c(),routeContext:{outlet:null,matches:f}}):c()},null)}var co;(function(e){e.UseRevalidator="useRevalidator"})(co||(co={}));var Jt;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Jt||(Jt={}));function Zl(e){let t=se($a);return t||ie(!1),t}function Ql(e){let t=se(pt);return t||ie(!1),t}function Xl(e){let t=Ql(e),r=t.matches[t.matches.length-1];return r.route.id||ie(!1),r.route.id}function eu(){var e;let t=se(Ga),r=Zl(Jt.UseRouteError),n=Xl(Jt.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function tu(e){ie(!1)}function ru(e){let{basename:t="/",children:r=null,location:n,navigationType:o=Ne.Pop,navigator:a,static:i=!1}=e;cr()&&ie(!1);let s=t.replace(/^\/*/,"/"),l=be(()=>({basename:s,navigator:a,static:i}),[s,a,i]);typeof n=="string"&&(n=Ye(n));let{pathname:u="/",search:f="",hash:c="",state:h=null,key:d="default"}=n,p=be(()=>{let _=Ha(u,s);return _==null?null:{pathname:_,search:f,hash:c,state:h,key:d}},[s,u,f,c,h,d]);return p==null?null:J(_n.Provider,{value:l},J(ur.Provider,{children:r,value:{location:p,navigationType:o}}))}function Ef(e){let{children:t,location:r}=e,n=se(za),o=n&&!t?n.router.routes:jr(t);return Kl(o,r)}var fo;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(fo||(fo={}));const Sf=new Promise(()=>{});function jr(e,t){t===void 0&&(t=[]);let r=[];return fn.forEach(e,(n,o)=>{if(!ht(n))return;if(n.type===me){r.push.apply(r,jr(n.props.children,t));return}n.type!==tu&&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=jr(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 Hr(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 nu(e,t){let r=Hr(e);for(let n of t.keys())r.has(n)||t.getAll(n).forEach(o=>{r.append(n,o)});return r}function Af(e){let{basename:t,children:r,window:n}=e,o=Ue();o.current==null&&(o.current=al({window:n,v5Compat:!0}));let a=o.current,[i,s]=Ve({action:a.action,location:a.location});return Re(()=>a.listen(s),[a]),J(ru,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:a})}var ho;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(ho||(ho={}));var po;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(po||(po={}));function Cf(e){let t=Ue(Hr(e)),r=yn(),n=be(()=>nu(r.search,t.current),[r.search]),o=Gl(),a=ft((i,s)=>{const l=Hr(typeof i=="function"?i(n):i);o("?"+l,s)},[o,n]);return[n,a]}const ou=Symbol(),gn=Symbol(),gt="a",Ka="f",mo="p",Va="c",Wa="t",vn="h",Ct="w",wn="o",bn="k";let au=(e,t)=>new Proxy(e,t);const Br=Object.getPrototypeOf,zr=new WeakMap,Ya=e=>e&&(zr.has(e)?zr.get(e):Br(e)===Object.prototype||Br(e)===Array.prototype),Zt=e=>typeof e=="object"&&e!==null,iu=e=>Object.values(Object.getOwnPropertyDescriptors(e)).some(t=>!t.configurable&&!t.writable),su=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(Br(e),t)},lu=(e,t)=>{const r={[Ka]:t};let n=!1;const o=(s,l)=>{if(!n){let u=r[gt].get(e);if(u||(u={},r[gt].set(e,u)),s===Ct)u[Ct]=!0;else{let f=u[s];f||(f=new Set,u[s]=f),f.add(l)}}},a=()=>{n=!0,r[gt].delete(e)},i={get(s,l){return l===gn?e:(o(bn,l),Ja(Reflect.get(s,l),r[gt],r[Va],r[Wa]))},has(s,l){return l===ou?(a(),!0):(o(vn,l),Reflect.has(s,l))},getOwnPropertyDescriptor(s,l){return o(wn,l),Reflect.getOwnPropertyDescriptor(s,l)},ownKeys(s){return o(Ct),Reflect.ownKeys(s)}};return t&&(i.set=i.deleteProperty=()=>!1),[i,r]},En=e=>e[gn]||e,Ja=(e,t,r,n)=>{if(!Ya(e))return e;let o=n&&n.get(e);if(!o){const l=En(e);iu(l)?o=[l,su(l)]:o=[l],n==null||n.set(e,o)}const[a,i]=o;let s=r&&r.get(a);return(!s||s[1][Ka]!==!!i)&&(s=lu(a,!!i),s[1][mo]=au(i||a,s[0]),r&&r.set(a,s)),s[1][gt]=t,s[1][Va]=r,s[1][Wa]=n,s[1][mo]},uu=(e,t)=>{const r=Reflect.ownKeys(e),n=Reflect.ownKeys(t);return r.length!==n.length||r.some((o,a)=>o!==n[a])},Za=(e,t,r,n,o=Object.is)=>{if(o(e,t))return!1;if(!Zt(e)||!Zt(t))return!0;const a=r.get(En(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[vn]||[])if(i=Reflect.has(e,s)!==Reflect.has(t,s),i)return i;if(a[Ct]===!0){if(i=uu(e,t),i)return i}else for(const s of a[wn]||[]){const l=!!Reflect.getOwnPropertyDescriptor(e,s),u=!!Reflect.getOwnPropertyDescriptor(t,s);if(i=l!==u,i)return i}for(const s of a[bn]||[])if(i=Za(e[s],t[s],r,n,o),i)return i;if(i===null)throw new Error("invalid used");return i};const cu=e=>Ya(e)&&e[gn]||null,_o=(e,t=!0)=>{zr.set(e,t)},du=(e,t,r)=>{const n=[],o=new WeakSet,a=(i,s)=>{var l,u,f;if(o.has(i))return;Zt(i)&&o.add(i);const c=Zt(i)&&t.get(En(i));if(c){if((l=c[vn])===null||l===void 0||l.forEach(h=>{const d=`:has(${String(h)})`;n.push(s?[...s,d]:[d])}),c[Ct]===!0){const h=":ownKeys";n.push(s?[...s,h]:[h])}else(u=c[wn])===null||u===void 0||u.forEach(h=>{const d=`:hasOwn(${String(h)})`;n.push(s?[...s,d]:[d])});(f=c[bn])===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 Qt={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"},Sn=e=>typeof e=="object"&&e!==null,fu=e=>Sn(e)&&!dr.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),Qa=(e,t)=>{const r=$r.get(e);if((r==null?void 0:r[0])===t)return r[1];const n=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return _o(n,!0),$r.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(dr.has(a))_o(a,!1);else if(ke.has(a)){const[l,u]=ke.get(a);s.value=Qa(l,u())}Object.defineProperty(n,o,s)}),Object.preventExtensions(n)},hu=(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&&(yo(u,i)||Tt.has(i)&&yo(u,Tt.get(i))))return!0;r(a),Sn(i)&&(i=cu(i)||i);const f=!ke.has(i)&&mu(i)?Xa(i):i;return t(a,f),Reflect.set(o,a,f,s),n(["set",[a],i,u]),!0}}),ke=new WeakMap,dr=new WeakSet,$r=new WeakMap,vt=[1,1],Tt=new WeakMap;let yo=Object.is,pu=(e,t)=>new Proxy(e,t),mu=fu,_u=Qa,yu=hu;function Xa(e={}){if(!Sn(e))throw new Error("object required");const t=Tt.get(e);if(t)return t;let r=vt[0];const n=new Set,o=(y,v=++vt[0])=>{r!==v&&(r=v,n.forEach(E=>E(y,v)))};let a=vt[1];const i=(y=++vt[1])=>(a!==y&&!n.size&&(a=y,l.forEach(([v])=>{const E=v[1](y);E>r&&(r=E)})),r),s=y=>(v,E)=>{const C=[...v];C[1]=[y,...C[1]],o(C,E)},l=new Map,u=(y,v)=>{const E=!dr.has(v)&&ke.get(v);if(E){if((Qt?"production":void 0)!=="production"&&l.has(y))throw new Error("prop listener already exists");if(n.size){const C=E[2](s(y));l.set(y,[E,C])}else l.set(y,[E])}},f=y=>{var v;const E=l.get(y);E&&(l.delete(y),(v=E[1])==null||v.call(E))},c=y=>(n.add(y),n.size===1&&l.forEach(([E,C],U)=>{if((Qt?"production":void 0)!=="production"&&C)throw new Error("remove already exists");const G=E[2](s(U));l.set(U,[E,G])}),()=>{n.delete(y),n.size===0&&l.forEach(([E,C],U)=>{C&&(C(),l.set(U,[E]))})});let h=!0;const d=yu(()=>h,u,f,o),p=pu(e,d);Tt.set(e,p);const _=[e,i,c];return ke.set(p,_),Reflect.ownKeys(e).forEach(y=>{const v=Object.getOwnPropertyDescriptor(e,y);"value"in v&&v.writable&&(p[y]=e[y])}),h=!1,p}function An(e,t,r){const n=ke.get(e);(Qt?"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 Gr(e){const t=ke.get(e);(Qt?"production":void 0)!=="production"&&!t&&console.warn("Please use proxy object");const[r,n]=t;return _u(r,n())}function ei(){return{proxyStateMap:ke,refSet:dr,snapCache:$r,versionHolder:vt,proxyCache:Tt}}const gu={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"},vu=(e,t)=>{const r=Ue(void 0);We(()=>{r.current=du(e,t,!0)}),sr(r.current)},wu=vu,bu=new WeakMap;function Pf(e,t){const r=t==null?void 0:t.sync,n=be(()=>e&&new WeakMap,[e]),o=Ue(void 0);let a=!0;const i=lr(ft(l=>{const u=An(e,l,r);return l(),u},[e,r]),()=>{const l=Gr(e);try{if(!a&&o.current&&!Za(o.current,l,n,new WeakMap))return o.current}catch{}return l},()=>Gr(e));a=!1,Re(()=>{o.current=i}),(gu?"production":void 0)!=="production"&&wu(i,n);const s=be(()=>new WeakMap,[]);return Ja(i,n,s,bu)}var Eu=0,Rf=Array.isArray;function Xt(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:--Eu,__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 ti=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,er=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(ti);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},go=e=>e==="*"||e==="x"||e==="X",vo=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Su=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],Au=(e,t)=>{if(go(e)||go(t))return 0;const[r,n]=Su(vo(e),vo(t));return r>n?1:r<n?-1:0},nt=(e,t)=>{for(let r=0;r<Math.max(e.length,t.length);r++){const n=Au(e[r]||"0",t[r]||"0");if(n!==0)return n}return 0},ri=(e,t)=>{const r=er(e),n=er(t),o=r.pop(),a=n.pop(),i=nt(r,n);return i!==0?i:o&&a?nt(o.split("."),a.split(".")):o||a?o?-1:1:0},Cu=(e,t,r)=>{Pu(r);const n=ri(e,t);return ni[r].includes(n)},ni={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},wo=Object.keys(ni),Pu=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(wo.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${wo.join("|")}`)},Bt=(e,t)=>{if(t=t.replace(/([><=]+)\s+/g,"$1"),t.includes("||"))return t.split("||").some(y=>Bt(e,y));if(t.includes(" - ")){const[y,v]=t.split(" - ",2);return Bt(e,`>=${y} <=${v}`)}else if(t.includes(" "))return t.trim().replace(/\s{2,}/g," ").split(" ").every(y=>Bt(e,y));const r=t.match(/^([<>=~^]+)/),n=r?r[1]:"=";if(n!=="^"&&n!=="~")return Cu(e,t,n);const[o,a,i,,s]=er(e),[l,u,f,,c]=er(t),h=[o,a,i],d=[l,u??"x",f??"x"];if(c&&(!s||nt(h,d)!==0||nt(s.split("."),c.split("."))===-1))return!1;const p=d.findIndex(y=>y!=="0")+1,_=n==="~"?2:p>1?p:1;return!(nt(h.slice(0,_),d.slice(0,_))!==0||nt(h.slice(_),d.slice(_))===-1)},Ru=e=>typeof e=="string"&&/^[v\d]/.test(e)&&ti.test(e);function Tu(e,t){var r=Object.setPrototypeOf;r?r(e,t):e.__proto__=t}function xu(e,t){t===void 0&&(t=e.constructor);var r=Error.captureStackTrace;r&&r(e,t)}var Ou=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)}}(),mt=function(e){Ou(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}),Tu(a,o.prototype),xu(a),a}return t}(Error);var tt=null;typeof WebSocket<"u"?tt=WebSocket:typeof MozWebSocket<"u"?tt=MozWebSocket:typeof global<"u"?tt=global.WebSocket||global.MozWebSocket:typeof window<"u"?tt=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(tt=self.WebSocket||self.MozWebSocket);const Cn=tt;function Lu(){let e,t;const r=new Promise((...n)=>[e,t]=n);return Object.freeze({resolve:e,reject:t,promise:r})}function Mu(e,t){const r=[],n=[],o=e((...f)=>{const c=n.shift();c?c.resolve({value:f,done:!1}):r.push(f)}),a=t==null?void 0:t.signal;let i=!1,s=null;const l=()=>{s=new Error("Abort Error")},u=()=>{o==null||o(),a==null||a.removeEventListener("abort",l)};return a==null||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=Lu();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}}}var Kr=function(e,t){return Kr=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])},Kr(e,t)};function oi(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Kr(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ie=function(){return Ie=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},Ie.apply(this,arguments)};function ai(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 ii(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 si(e,t){return function(r,n){t(r,n,e)}}function li(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 p={};for(var _ in n)p[_]=_==="access"?{}:n[_];for(var _ in n.access)p.access[_]=n.access[_];p.addInitializer=function(v){if(h)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(v||null))};var y=(0,r[d])(s==="accessor"?{get:f.get,set:f.set}:f[l],p);if(s==="accessor"){if(y===void 0)continue;if(y===null||typeof y!="object")throw new TypeError("Object expected");(c=i(y.get))&&(f.get=c),(c=i(y.set))&&(f.set=c),(c=i(y.init))&&o.unshift(c)}else(c=i(y))&&(s==="field"?o.unshift(c):f[l]=c)}u&&Object.defineProperty(u,n.name,f),h=!0}function ui(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 ci(e){return typeof e=="symbol"?e:"".concat(e)}function di(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 fi(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function hi(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 fr=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 mi(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&fr(t,e,r)}function tr(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 Pn(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 _i(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Pn(arguments[t]));return e}function yi(){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 ct(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 dt(e){return this instanceof dt?(this.v=e,this):new dt(e)}function gi(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(p){return Promise.resolve(p).then(d,c)}}function s(d,p){n[d]&&(o[d]=function(_){return new Promise(function(y,v){a.push([d,_,y,v])>1||l(d,_)})},p&&(o[d]=p(o[d])))}function l(d,p){try{u(n[d](p))}catch(_){h(a[0][3],_)}}function u(d){d.value instanceof dt?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,p){d(p),a.shift(),a.length&&l(a[0][0],a[0][1])}}function vi(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:dt(e[o](i)),done:!1}:a?a(i):i}:a}}function wi(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 tr=="function"?tr(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 bi(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var Nu=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},Vr=function(e){return Vr=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},Vr(e)};function Ei(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=Vr(e),n=0;n<r.length;n++)r[n]!=="default"&&fr(t,e,r[n]);return Nu(t,e),t}function Si(e){return e&&e.__esModule?e:{default:e}}function Ai(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 Ci(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 Pi(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 Ri(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 ku=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 Ti(e){function t(a){e.error=e.hasError?new ku(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 xi(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 Iu={__extends:oi,__assign:Ie,__rest:ai,__decorate:ii,__param:si,__esDecorate:li,__runInitializers:ui,__propKey:ci,__setFunctionName:di,__metadata:fi,__awaiter:hi,__generator:pi,__createBinding:fr,__exportStar:mi,__values:tr,__read:Pn,__spread:_i,__spreadArrays:yi,__spreadArray:ct,__await:dt,__asyncGenerator:gi,__asyncDelegator:vi,__asyncValues:wi,__makeTemplateObject:bi,__importStar:Ei,__importDefault:Si,__classPrivateFieldGet:Ai,__classPrivateFieldSet:Ci,__classPrivateFieldIn:Pi,__addDisposableResource:Ri,__disposeResources:Ti,__rewriteRelativeImportExtension:xi},Tf=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:Ri,get __assign(){return Ie},__asyncDelegator:vi,__asyncGenerator:gi,__asyncValues:wi,__await:dt,__awaiter:hi,__classPrivateFieldGet:Ai,__classPrivateFieldIn:Pi,__classPrivateFieldSet:Ci,__createBinding:fr,__decorate:ii,__disposeResources:Ti,__esDecorate:li,__exportStar:mi,__extends:oi,__generator:pi,__importDefault:Si,__importStar:Ei,__makeTemplateObject:bi,__metadata:fi,__param:si,__propKey:ci,__read:Pn,__rest:ai,__rewriteRelativeImportExtension:xi,__runInitializers:ui,__setFunctionName:di,__spread:_i,__spreadArray:ct,__spreadArrays:yi,__values:tr,default:Iu},Symbol.toStringTag,{value:"Module"}));function Du(e){return e.toLowerCase()}var Uu=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Fu=/[^A-Z0-9]+/gi;function Oi(e,t){t===void 0&&(t={});for(var r=t.splitRegexp,n=r===void 0?Uu:r,o=t.stripRegexp,a=o===void 0?Fu:o,i=t.transform,s=i===void 0?Du:i,l=t.delimiter,u=l===void 0?" ":l,f=bo(bo(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 bo(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce(function(n,o){return n.replace(o,r)},e)}function Li(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 qu(e,t){return t===void 0&&(t={}),Oi(e,Ie({delimiter:"",transform:Li},t))}function ju(e,t){return t===0?e.toLowerCase():Li(e,t)}function Hu(e,t){return t===void 0&&(t={}),qu(e,Ie({transform:ju},t))}function Bu(e,t){return t===void 0&&(t={}),Oi(e,Ie({delimiter:"."},t))}function Rn(e,t){return t===void 0&&(t={}),Bu(e,Ie({delimiter:"_"},t))}class Ge extends mt{}class Eo extends mt{constructor(t,r,n,o){super(t,o),this.contentType=r,this.data=n}}class Mi extends mt{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 Ni extends mt{}class br extends mt{constructor(t,r){super(t,r),this.message=t}}function ki(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 we(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 So(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 fe(e){return this instanceof fe?(this.v=e,this):new fe(e)}function Tn(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(p){return Promise.resolve(p).then(d,c)}}function s(d,p){n[d]&&(o[d]=function(_){return new Promise(function(y,v){a.push([d,_,y,v])>1||l(d,_)})},p&&(o[d]=p(o[d])))}function l(d,p){try{u(n[d](p))}catch(_){h(a[0][3],_)}}function u(d){d.value instanceof fe?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,p){d(p),a.shift(),a.length&&l(a[0][0],a[0][1])}}function Wr(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 So=="function"?So(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)}}const Ii=e=>new Promise(t=>setTimeout(()=>t(),e)),xn=e=>typeof e=="object"&&e!==null&&e.constructor.name==="Object";function zu(){}class $u extends mt{constructor(t,r){super(`Maximum number of attempts reached: ${t}`,r)}}class Gu{constructor(t={}){this.props=t,this.attempts=0}sleep(){return we(this,void 0,void 0,function*(){if(this.attempts>=this.maxAttempts)throw new $u(this.attempts);yield Ii(this.timeout),this.attempts++})}clear(){this.attempts=0}get factor(){var t;return(t=this.props.factor)!==null&&t!==void 0?t:1e3}get base(){var t;return(t=this.props.base)!==null&&t!==void 0?t:2}get maxAttempts(){var t;return(t=this.props.maxAttempts)!==null&&t!==void 0?t:Number.POSITIVE_INFINITY}get timeout(){return this.factor*Math.pow(this.base,this.attempts)}}const Ku=()=>{let e,t;return{promise:new Promise((n,o)=>{e=n,t=o}),resolve:e,reject:t}},Vu=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};class rr{constructor(t,r,n,o,a="next"){this.http=t,this.nextPath=r,this.nextParams=n,this.meta=o,this.direction=a}next(){return we(this,void 0,void 0,function*(){if(!this.nextPath)return{done:!0,value:void 0};const t=yield this.http.request(Object.assign({method:"GET",path:this.nextPath,search:this.nextParams},this.meta)),r=this.getLink(t.headers.get("link"));return this.nextPath=r==null?void 0:r.pathname,this.nextParams=r==null?void 0:r.search.replace(/^\?/,""),{done:!1,value:yield t.data}})}return(t){return we(this,void 0,void 0,function*(){return this.clear(),{done:!0,value:yield t}})}throw(t){return we(this,void 0,void 0,function*(){throw this.clear(),t})}then(t=Promise.resolve.bind(Promise),r=Promise.reject.bind(Promise)){return this.next().then(n=>t(n.value),r)}values(){return this[Symbol.asyncIterator]()}getDirection(){return this.direction}setDirection(t){return new rr(this.http,this.nextPath,this.nextParams,this.meta,t)}[Symbol.asyncIterator](){return this}getLink(t){if(!t)return;const r=Vu(t).get(this.direction);if(r)return new URL(r)}clear(){this.nextPath=void 0,this.nextParams=void 0}clone(){return new rr(this.http,this.nextPath,this.nextParams,this.meta,this.direction)}}class Wu{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 rr(this.http,t.path,t.data);break}}return r instanceof Promise?r.then(n=>{var o;return(o=this.hook)===null||o===void 0?void 0:o.afterDispatch(t,n)}):this.hook.afterDispatch(t,r)}}function Yu(e){return e.readyState===Cn.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 Ju(e){return e.readyState===Cn.CLOSED?Promise.resolve():new Promise(t=>{const r=()=>{t()};e.addEventListener("error",r,{once:!0}),e.addEventListener("close",r,{once:!0})})}class Zu{constructor(t,r){this.props=t,this.logger=r,this.killed=!1,this.queue=[],this.backoff=new Gu({maxAttempts:this.props.maxAttempts}),this.spawn()}acquire(){if(this.killed)throw new br("WebSocket closed");if(this.ws)return Promise.resolve(this.ws);const t=Ku();return this.queue.push(t),t.promise}[Symbol.asyncIterator](){return Tn(this,arguments,function*(){for(;!this.killed;)yield yield fe(yield fe(this.acquire()))})}kill(){var t;this.killed=!0,(t=this.ws)===null||t===void 0||t.close(),this.backoff.clear();for(const{reject:r}of this.queue)r(new br("WebSocket closed"));this.queue=[]}spawn(){return we(this,void 0,void 0,function*(){for(var t,r,n,o,a;!this.killed;){try{yield this.backoff.sleep()}catch{break}try{(t=this.logger)===null||t===void 0||t.log("info","Connecting to WebSocket...");{const i=(r=this.props.implementation)!==null&&r!==void 0?r:Cn,s=new i(...this.props.constructorParameters);yield Yu(s),this.ws=s}(n=this.logger)===null||n===void 0||n.log("info","Connected to WebSocket");for(const{resolve:i}of this.queue)i(this.ws);this.queue=[],yield Ju(this.ws),(o=this.logger)===null||o===void 0||o.log("info","WebSocket closed"),this.backoff.clear()}catch(i){(a=this.logger)===null||a===void 0||a.log("error","WebSocket error:",i)}this.ws=void 0}for(const{reject:i}of this.queue)i(new br(`Failed to connect to WebSocket after ${this.props.maxAttempts} attempts`));this.queue=[]})}}function Qu(e){return Tn(this,arguments,function*(){var r,n,o,a;const i=h=>we(this,void 0,void 0,function*(){if(!l.return)throw new Ge("events.return is undefined");yield l.return(h)}),s=h=>we(this,void 0,void 0,function*(){if(!l.return)throw new Ge("events.return is undefined");yield l.return(h)}),l=Mu(h=>(e.addEventListener("message",h),e.addEventListener("error",s),e.addEventListener("close",i),()=>{e.removeEventListener("message",h),e.removeEventListener("error",s),e.removeEventListener("close",i)}));try{for(var u=!0,f=Wr(l),c;c=yield fe(f.next()),r=c.done,!r;u=!0){a=c.value,u=!1;const[h]=a;yield yield fe(h)}}catch(h){n={error:h}}finally{try{!u&&!r&&(o=f.return)&&(yield fe(o.call(f)))}finally{if(n)throw n.error}}})}class Xu{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}values(){return Tn(this,arguments,function*(){var r,n,o,a,i,s,l,u,f,c,h;try{(f=this.logger)===null||f===void 0||f.log("info","Subscribing to stream",this.stream);try{for(var d=!0,p=Wr(this.connector),_;_=yield fe(p.next()),r=_.done,!r;d=!0){a=_.value,d=!1,this.connection=a;const C=this.serializer.serialize("json",Object.assign({type:"subscribe",stream:this.stream},this.params));(c=this.logger)===null||c===void 0||c.log("debug","↑ WEBSOCKET",C),this.connection.send(C),this.counter.increment(this.stream,this.params);const U=Qu(this.connection);try{for(var y=!0,v=(s=void 0,Wr(U)),E;E=yield fe(v.next()),i=E.done,!i;y=!0){u=E.value,y=!1;const G=u,B=this.parseMessage(G.data);this.test(B)&&((h=this.logger)===null||h===void 0||h.log("debug","↓ WEBSOCKET",B),yield yield fe(B))}}catch(G){s={error:G}}finally{try{!y&&!i&&(l=v.return)&&(yield fe(l.call(v)))}finally{if(s)throw s.error}}}}catch(C){n={error:C}}finally{try{!d&&!r&&(o=p.return)&&(yield fe(o.call(p)))}finally{if(n)throw n.error}}}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",Object.assign({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){var r;const n=(r=this.params)!==null&&r!==void 0?r:{},o=Object.values(n);return[this.stream,...o].every(i=>t.stream.includes(i))}parseMessage(t){const r=this.serializer.deserialize("json",t);if("error"in r)throw new Ge(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 ec{constructor(){this.counts=new Map}count(t,r){var n;const o=this.hash(t,r);return(n=this.counts.get(o))!==null&&n!==void 0?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 tc{constructor(t,r,n,o){this.connector=t,this.counter=r,this.serializer=n,this.logger=o}dispatch(t){var r;if(t.type==="close")return this.connector.kill(),{};if(t.type==="prepare")return this.connector.acquire();if(t.type!=="subscribe")throw new Ge(`Unknown action type ${t.type}`);const n=(r=t.data)!==null&&r!==void 0?r:{},o=t.path.replace(/^\//,"").replaceAll("/",":");return new Xu(this.connector,this.counter,this.serializer,o,this.logger,Object.assign({},n))}[Symbol.dispose](){this.connector.kill()}}const xt=(e,t={})=>{const{context:r=[],applicable:n=!1}=t;let o={};const a={get:nc(e,r)};return n&&(o=zu,a.apply=oc(e,r)),new Proxy(o,a)},rc=new Set(["then","catch","finally","inspect","toString","valueOf","toJSON","constructor","prototype","length","name","caller","callee","arguments","bind","apply","call"]),nc=(e,t)=>(r,n)=>{if(!(typeof n=="string"&&rc.has(n))){if(n===Symbol.dispose)return e[Symbol.dispose];if(typeof n!="symbol")return n.startsWith("$")?xt(e,{context:[...t,n],applicable:!0}):xt(e,{context:[...t,Rn(n)],applicable:!0})}},oc=(e,t)=>(r,n,o)=>{const a=t.pop();if(!a)throw new Error("No action specified");if(a==="$select")return xt(e,{context:[...t,...o],applicable:!0});const i="/"+t.join("/"),[s,l]=o;return e.dispatch({type:a,path:i,data:s,meta:l})};function Di(e){return["fetch","create","update","remove","list"].includes(e)}function ac(e){if(Di(e))return e;switch(e){case"lookup":case"verify_credentials":return"fetch";case"update_credentials":return"update";default:return"create"}}function ic(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"}function sc(e,t,r){return we(this,void 0,void 0,function*(){let n;const o=AbortSignal.timeout(t);for(;!n;){if(o.aborted)throw new Ni(`Media processing timed out of ${t}ms`);try{yield Ii(1e3);const a=yield r.get(`/api/v1/media/${e}`);a.url&&(n=a)}catch(a){if(a instanceof Mi&&a.statusCode===404)continue;throw a}}return n})}class lc{constructor(t,r=1e3*60){this.http=t,this.mediaTimeout=r}beforeDispatch(t){const r=ac(t.type),n=Di(t.type)?t.path:t.path+"/"+Rn(t.type),o=ic(r,n),a=Object.assign(Object.assign({},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){var n;if(t.type==="create"&&t.path==="/api/v2/media"){const o=r;return xn(t.data)&&((n=t.data)===null||n===void 0?void 0:n.skipPolling)===!0?o:sc(o.id,this.mediaTimeout,this.http)}return r}}const uc=e=>{const t=new AbortController;for(const r of e)r.addEventListener("abort",()=>t.abort(),{once:!0});return t.signal},cc=([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 dc{constructor(t,r){this.props=t,this.serializer=r}mergeRequestInitWithDefaults(t={}){const r=Object.assign({},this.props.requestInit);{const{headers:n,signal:o}=t,a=ki(t,["headers","signal"]);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={}){var r,n;const o=cc([(n=(r=this.props.requestInit)===null||r===void 0?void 0:r.headers)!==null&&n!==void 0?n:{},t]),a=new Headers(o);return this.props.accessToken&&a.set("Authorization",`Bearer ${this.props.accessToken}`),new Headers(a)}mergeAbortSignalWithDefaults(t){var r;const n=[];return this.props.timeout&&n.push(AbortSignal.timeout(this.props.timeout)),!((r=this.props.requestInit)===null||r===void 0)&&r.signal&&n.push(this.props.requestInit.signal),t&&n.push(t),n.length===1?n[0]:uc(n)}}class fc{constructor(t,r){this.props=t,this.serializer=r}getHeaders(){return this.props.useInsecureAccessToken||this.props.accessToken==null?{}:{Authorization:`Bearer ${this.props.accessToken}`}}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 hc{get(t,r,n={}){return this.request(Object.assign({method:"GET",path:t,search:r},n)).then(o=>o.data)}post(t,r,n={}){return this.request(Object.assign({method:"POST",path:t,body:r},n)).then(o=>o.data)}delete(t,r,n={}){return this.request(Object.assign({method:"DELETE",path:t,body:r},n)).then(o=>o.data)}put(t,r,n={}){return this.request(Object.assign({method:"PUT",path:t,body:r},n)).then(o=>o.data)}patch(t,r,n={}){return this.request(Object.assign({method:"PATCH",path:t,body:r},n)).then(o=>o.data)}}const Ao=e=>{var t;const r=(t=e.get("Content-Type"))===null||t===void 0?void 0:t.replace(/\s*;.*$/,"");if(typeof r=="string")switch(r){case"application/json":return"json";case"multipart/form-data":return"multipart-form";default:return}};class pc extends hc{constructor(t,r,n){super(),this.serializer=t,this.config=r,this.logger=n}request(t){return we(this,void 0,void 0,function*(){var r,n,o,a,i;const s=this.createRequest(t);try{(r=this.logger)===null||r===void 0||r.log("info",`${s.method} ${s.url}`),(n=this.logger)===null||n===void 0||n.log("debug"," body",{encoding:t.encoding,body:t.body});const l=yield fetch(s);if(!l.ok)throw l;const u=yield l.text(),f=Ao(l.headers);if(!f)throw new Ge("The server returned data with an unknown encoding.");const c=this.serializer.deserialize(f,u);return(o=this.logger)===null||o===void 0||o.log("info",`${s.method} ${s.url}`),(a=this.logger)===null||a===void 0||a.log("debug"," body",u),{headers:l.headers,data:c}}catch(l){throw(i=this.logger)===null||i===void 0||i.log("debug","HTTP failed",l),yield this.createError(l)}})}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,Object.assign({method:r,body:l},u));return typeof l=="string"&&a==="json"&&f.headers.set("Content-Type","application/json"),f}createError(t){return we(this,void 0,void 0,function*(){if(t instanceof Response){const r=Ao(t.headers);if(!r)throw new Ge("The server returned data with an unknown encoding. The server may be down.");const n=this.serializer.deserialize(r,yield t.text()),{error:o,errorDescription:a,details:i}=n,s=ki(n,["error","errorDescription","details"]);return new Mi({statusCode:t.status,message:o,description:a,details:i,additionalProperties:s},{cause:t})}return t!=null&&t.name==="TimeoutError"?new Ni("Request timed out",{cause:t}):t})}}class mc{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 ot{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 ot(ce.DEBUG|ce.INFO|ce.WARN|ce.ERROR);case"info":return new ot(ce.INFO|ce.WARN|ce.ERROR);case"warn":return new ot(ce.WARN|ce.ERROR);case"error":return new ot(ce.ERROR)}}}const Ui=e=>{const t=ot.from(e??"warn");return new mc(t)},Fi=e=>{const t=(r,n="")=>Array.isArray(r)?r.flatMap((o,a)=>t(o,n==""?a.toString():e.onArray(n,a))):xn(r)?Object.entries(r).flatMap(([o,a])=>t(a,n===""?o:e.onObject(n,o))):[[n,r]];return t},_c=e=>{const t=Fi({onArray:(r,n)=>`${r}[${n}]`,onObject:(r,n)=>`${r}[${n}]`});return Object.fromEntries(t(e))},yc=e=>Fi({onArray:r=>`${r}[]`,onObject:(r,n)=>`${r}[${n}]`})(e).filter(([,r])=>!!r).map(([r,n])=>`${r}=${encodeURIComponent(n)}`).join("&"),Yr=(e,t)=>Array.isArray(e)?e.map(r=>Yr(r,t)):xn(e)?Object.fromEntries(Object.entries(e).map(([r,n])=>[t(r),Yr(n,t)])):e,Co=(e,t)=>Yr(e,n=>n.includes(":")||n.startsWith("_")?n:t(n));class qi{serialize(t,r){const n=Co(r,Rn);switch(t){case"json":return JSON.stringify(n);case"multipart-form":{const o=new FormData;for(const[a,i]of Object.entries(_c(n)))o.append(a,i);return o}case"querystring":return yc(n);default:throw new Ge(`Unknown content type ${t} to serialize.`)}}deserialize(t,r){switch(t){case"json":try{return Co(JSON.parse(r),Hu)}catch{throw new Eo(`Malformed JSON ${r} returned from the server.`,t,r)}default:throw new Eo(`Unknown content type ${t} returned from the server.`,t,r)}}}const gc=e=>{const t=new qi,r=new dc(e,t),n=Ui(e.log),o=new pc(t,r,n),a=new lc(o),i=new Wu(o,a);return xt(i,{context:["api"]})};function vc(e){const t=new qi,r=new fc(e,t),n=Ui(e.log),o=new Zu({constructorParameters:[r.resolvePath("/api/v1/streaming"),[],{headers:r.getHeaders()}],implementation:e.implementation,maxAttempts:r.getMaxAttempts()},n),a=new ec,i=new tc(o,a,t,n);return xt(i)}/*! js-cookie v3.0.5 | MIT */function Dt(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 wc={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 Jr(e,t){function r(o,a,i){if(!(typeof document>"u")){i=Dt({},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,"",Dt({},a,{expires:-1}))},withAttributes:function(o){return Jr(this.converter,Dt({},this.attributes,o))},withConverter:function(o){return Jr(Dt({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var bc=Jr(wc,{path:"/"});function ji(e){const t=F.local.getJSON("accounts")||[];return e&&t.find(r=>r.info.id===e)||t[0]}function Ec(e){return(F.local.getJSON("accounts")||[]).find(r=>r.accessToken===e)}function Sc(e){return(F.local.getJSON("accounts")||[]).find(r=>r.instanceURL===e)}const Hi=window.matchMedia("(display-mode: standalone)");function Ac(){try{const e=F.session.get("currentAccount");if(e)return e}catch{}if(Hi.matches)try{const e=F.local.get("currentAccount");if(e)return e}catch{}return null}function Bi(e){try{F.session.set("currentAccount",e)}catch{}if(Hi.matches)try{F.local.set("currentAccount",e)}catch{}}function Mt(){window.__IGNORE_GET_ACCOUNT_ERROR__;const e=Ac();return ji(e)}function Er(){const e=Mt(),{instanceURL:t,info:{id:r}}=e;return`${r}@${t}`}function Cc(e){const t=F.local.getJSON("accounts")||[],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),F.local.setJSON("accounts",t),Bi(e.info.id)}function xf(e){const t=F.local.getJSON("accounts")||[],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},F.local.setJSON("accounts",t))}let Sr=null;function On(){if(Sr)return Sr;try{const e=Mt(),t=F.local.getJSON("instances"),r=e.instanceURL.toLowerCase();return Sr=t[r]}catch{return{}}}let Ar=null;function Of(){if(Ar)return Ar;try{const e=Mt(),t=F.local.getJSON("nodeInfos")||{},r=e.instanceURL.toLowerCase();return Ar=t[r]||{}}catch{return{}}}function Pc(e){const{configuration:t,maxMediaAttachments:r,maxTootChars:n,pollLimits:o}=e,a=(t==null?void 0:t.statuses)||{};r&&(a.maxMediaAttachments??(a.maxMediaAttachments=r)),n&&(a.maxCharacters??(a.maxCharacters=n));const i=(t==null?void 0:t.polls)||{};return o&&(i.maxCharactersPerOption??(i.maxCharactersPerOption=o.maxOptionChars),i.maxExpiration??(i.maxExpiration=o.maxExpiration),i.maxOptions??(i.maxOptions=o.maxOptions),i.minExpiration??(i.minExpiration=o.minExpiration)),{...t,statuses:a,polls:i}}function Rc(){const e=On();return Pc(e)}function Lf(){const e=On();return(e==null?void 0:e.apiVersions)||{}}function Mf(){var r,n,o;const e=Rc();return((r=e==null?void 0:e.vapid)==null?void 0:r.publicKey)||((n=e==null?void 0:e.vapid)==null?void 0:n.public_key)||((o=Mt())==null?void 0:o.vapidKey)}function Nf(){const e=On();return/pixelfed/i.test(e==null?void 0:e.version)}const Cr=bc.withAttributes({sameSite:"strict",secure:!0}),Le={get:e=>{try{return localStorage.getItem(e)}catch{return null}},getJSON:e=>{try{return JSON.parse(Le.get(e))}catch{return null}},set:(e,t)=>{try{return localStorage.setItem(e,t)}catch{return null}},setJSON:(e,t)=>{try{return Le.set(e,JSON.stringify(t))}catch{return null}},del:e=>{try{return localStorage.removeItem(e)}catch{return null}}},it={get:e=>{try{return sessionStorage.getItem(e)}catch{return null}},getJSON:e=>{try{return JSON.parse(it.get(e))}catch{return null}},set:(e,t)=>{try{return sessionStorage.setItem(e,t)}catch{return null}},setJSON:(e,t)=>{try{return it.set(e,JSON.stringify(t))}catch{return null}},del:e=>{try{return sessionStorage.removeItem(e)}catch{return null}}},zt={get:e=>Cr.get(e),set:(e,t)=>Cr.set(e,t),del:e=>Cr.remove(e)},Tc={get:e=>navigator.cookieEnabled?zt.get(e):it.get(e),set:(e,t)=>navigator.cookieEnabled?zt.set(e,t):it.set(e,t),del:e=>navigator.cookieEnabled?zt.del(e):it.del(e)},xc={get:e=>{try{return Le.getJSON(e)[Er()]}catch{return null}},set:(e,t)=>{try{const r=Le.getJSON(e)||{};return r[Er()]=t,Le.setJSON(e,r)}catch{return null}},del:e=>{try{const t=Le.getJSON(e)||{};return delete t[Er()],Le.setJSON(e,t)}catch{return null}}},F={local:Le,session:it,sessionCookie:Tc,cookie:zt,account:xc},$t="mastodon.social",nr={},de={};window.__ACCOUNT_APIS__=de;let ne;function Oe({instance:e,accessToken:t}){/^https?:\/\//.test(e)&&(e=e.replace(/^https?:\/\//,"").replace(/\/+$/,"").toLowerCase());const r=e?`https://${e}`:`https://${$t}`,o={masto:gc({url:r,accessToken:t,timeout:6e4}),instance:e,accessToken:t};return nr[e]=o,de[e]||(de[e]={}),t&&(de[e][t]=o),o}function kf(e){return!!(F.local.getJSON("instances")||{})[e]}async function If(e,t){var d;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 p=a||`https://${s}`;const _=await(await fetch(`${p}/.well-known/nodeinfo`)).json();if(Array.isArray(_==null?void 0:_.links)){const y="http://nodeinfo.diaspora.software/ns/schema/",v=(d=_.links.filter(E=>typeof E.rel=="string"&&E.rel.startsWith(y)&&Ru(E.rel.slice(y.length))).map(E=>({version:E.rel.slice(y.length),href:E.href})).sort((E,C)=>-ri(E.version,C.version)).find(E=>Bt(E.version,"<=2")))==null?void 0:d.href;v&&(f=await(await fetch(v)).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 p=vc({streamingApiUrl:l||i,accessToken:n,implementation:WebSocket});e.streaming=p}__BENCHMARK.end("init-instance")}async function Df(e,t,r,n){const{masto:o}=e,a=await o.v1.accounts.verifyCredentials();Bi(a.id),Cc({info:a,instanceURL:t.toLowerCase(),accessToken:r,vapidKey:n})}function Uf(){return!!F.account.get("preferences")}async function Ff(e){try{const{masto:t}=e;__BENCHMARK.start("fetch-preferences");const r=await t.v1.preferences.fetch();__BENCHMARK.end("fetch-preferences"),F.account.set("preferences",r)}catch{}}function or({instance:e,accessToken:t,accountID:r,account:n}={}){var l,u,f,c,h;if(e&&(e=e.toLowerCase().trim()),e&&t){const d=((l=de[e])==null?void 0:l[t])||Oe({instance:e,accessToken:t}),{masto:p,streaming:_}=d;return{masto:p,streaming:_,client:d,authenticated:!0,instance:e}}if(t)for(const d in de)if(de[d][t]){const p=de[d][t],{masto:_,streaming:y}=p;return{masto:_,streaming:y,client:p,authenticated:!0,instance:d}}else{const p=Ec(t);if(p){const _=p.accessToken,y=p.instanceURL.toLowerCase().trim(),v=Oe({instance:y,accessToken:_}),{masto:E,streaming:C}=v;return{masto:E,streaming:C,client:v,authenticated:!0,instance:y}}else throw new Error("Access token not found")}if(n||r)if(n=n||ji(r),n){const d=n.accessToken,p=n.instanceURL.toLowerCase().trim(),_=((u=de[p])==null?void 0:u[d])||Oe({instance:p,accessToken:d}),{masto:y,streaming:v}=_;return{masto:y,streaming:v,client:_,authenticated:!0,instance:p}}else throw new Error(`Account ${r} not found`);const o=Mt();if(e){if((ne==null?void 0:ne.instance)===e)return{masto:ne.masto,streaming:ne.streaming,client:ne,authenticated:!0,instance:e};if((o==null?void 0:o.instanceURL)===e){const{accessToken:E}=o;return ne=((f=de[e])==null?void 0:f[E])||Oe({instance:e,accessToken:E}),{masto:ne.masto,streaming:ne.streaming,client:ne,authenticated:!0,instance:e}}const d=Sc(e);if(d){const E=d.accessToken,C=((c=de[e])==null?void 0:c[E])||Oe({instance:e,accessToken:E}),{masto:U,streaming:G}=C;return{masto:U,streaming:G,client:C,authenticated:!0,instance:e}}const p=nr[e]||Oe({instance:e}),{masto:_,streaming:y,accessToken:v}=p;return{masto:_,streaming:y,client:p,authenticated:!!v,instance:e}}if(ne)return{masto:ne.masto,streaming:ne.streaming,client:ne,authenticated:!0,instance:ne.instance};if(o){const{accessToken:d,instanceURL:p}=o;return ne=((h=de[p])==null?void 0:h[d])||Oe({instance:p,accessToken:d}),{masto:ne.masto,streaming:ne.streaming,client:ne,authenticated:!0,instance:p}}const a=nr[$t]||Oe({instance:$t}),{masto:i,streaming:s}=a;return{masto:i,streaming:s,client:a,authenticated:!1,instance:$t}}window.__API__={currentAccountApi:ne,apis:nr,accountApis:de};var Oc=Object.getOwnPropertyNames,Lc=Object.getOwnPropertySymbols,Mc=Object.prototype.hasOwnProperty;function Po(e,t){return function(n,o,a){return e(n,o,a)&&t(n,o,a)}}function Ut(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 Ro(e){return Oc(e).concat(Lc(e))}var Nc=Object.hasOwn||function(e,t){return Mc.call(e,t)};function Je(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var kc="__v",Ic="__o",Dc="_owner",To=Object.getOwnPropertyDescriptor,xo=Object.keys;function Uc(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 Fc(e,t){return Je(e.getTime(),t.getTime())}function qc(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function jc(e,t){return e===t}function Oo(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 Hc=Je;function Bc(e,t,r){var n=xo(e),o=n.length;if(xo(t).length!==o)return!1;for(;o-- >0;)if(!zi(e,t,r,n[o]))return!1;return!0}function yt(e,t,r){var n=Ro(e),o=n.length;if(Ro(t).length!==o)return!1;for(var a,i,s;o-- >0;)if(a=n[o],!zi(e,t,r,a)||(i=To(e,a),s=To(t,a),(i||s)&&(!i||!s||i.configurable!==s.configurable||i.enumerable!==s.enumerable||i.writable!==s.writable)))return!1;return!0}function zc(e,t){return Je(e.valueOf(),t.valueOf())}function $c(e,t){return e.source===t.source&&e.flags===t.flags}function Lo(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 Gc(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 Kc(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 zi(e,t,r,n){return(n===Dc||n===Ic||n===kc)&&(e.$$typeof||t.$$typeof)?!0:Nc(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var Vc="[object Arguments]",Wc="[object Boolean]",Yc="[object Date]",Jc="[object Error]",Zc="[object Map]",Qc="[object Number]",Xc="[object Object]",ed="[object RegExp]",td="[object Set]",rd="[object String]",nd="[object URL]",od=Array.isArray,Mo=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,No=Object.assign,ad=Object.prototype.toString.call.bind(Object.prototype.toString);function id(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;return function(p,_,y){if(p===_)return!0;if(p==null||_==null)return!1;var v=typeof p;if(v!==typeof _)return!1;if(v!=="object")return v==="number"?i(p,_,y):v==="function"?o(p,_,y):!1;var E=p.constructor;if(E!==_.constructor)return!1;if(E===Object)return s(p,_,y);if(od(p))return t(p,_,y);if(Mo!=null&&Mo(p))return c(p,_,y);if(E===Date)return r(p,_,y);if(E===RegExp)return u(p,_,y);if(E===Map)return a(p,_,y);if(E===Set)return f(p,_,y);var C=ad(p);return C===Yc?r(p,_,y):C===ed?u(p,_,y):C===Zc?a(p,_,y):C===td?f(p,_,y):C===Xc?typeof p.then!="function"&&typeof _.then!="function"&&s(p,_,y):C===nd?h(p,_,y):C===Jc?n(p,_,y):C===Vc?s(p,_,y):C===Wc||C===Qc||C===rd?l(p,_,y):!1}}function sd(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,o={areArraysEqual:n?yt:Uc,areDatesEqual:Fc,areErrorsEqual:qc,areFunctionsEqual:jc,areMapsEqual:n?Po(Oo,yt):Oo,areNumbersEqual:Hc,areObjectsEqual:n?yt:Bc,arePrimitiveWrappersEqual:zc,areRegExpsEqual:$c,areSetsEqual:n?Po(Lo,yt):Lo,areTypedArraysEqual:n?yt:Gc,areUrlsEqual:Kc};if(r&&(o=No({},o,r(o))),t){var a=Ut(o.areArraysEqual),i=Ut(o.areMapsEqual),s=Ut(o.areObjectsEqual),l=Ut(o.areSetsEqual);o=No({},o,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:s,areSetsEqual:l})}return o}function ld(e){return function(t,r,n,o,a,i,s){return e(t,r,s)}}function ud(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 cd=Fe(),qf=Fe({strict:!0}),jf=Fe({circular:!0}),Hf=Fe({circular:!0,strict:!0}),Bf=Fe({createInternalComparator:function(){return Je}}),zf=Fe({strict:!0,createInternalComparator:function(){return Je}}),$f=Fe({circular:!0,createInternalComparator:function(){return Je}}),Gf=Fe({circular:!0,createInternalComparator:function(){return Je},strict:!0});function Fe(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=id(s),u=n?n(l):ld(l);return ud({circular:r,comparator:l,createState:o,equals:u,strict:i})}function $i(e,t,r,n){let o=e[t];return An(e,()=>{const a=e[t];Object.is(o,a)||r(o=a)},n)}const Kf=Symbol();const{proxyStateMap:Vf,snapCache:Wf}=ei();const{proxyStateMap:Yf,snapCache:Jf}=ei();const Zf=Symbol();function dd(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)||/#\/[^\/]+\.[^\/]+\/s\/.+/i.test(r)}catch{return!1}}var wt={exports:{}},bt={exports:{}},fd=bt.exports,ko;function hd(){return ko||(ko=1,function(e,t){(function(r,n){e.exports=n()})(fd,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 p in c)d[p]=c[p];for(var p in h)d[p]=h[p];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,p=d.isMatchingKey,_=d.maxSize,y=this.keys,v=y.length;if(!v)return-1;if(p(y[0],h))return 0;if(_>1){for(var E=1;E<v;E++)if(p(y[E],h))return E}return-1},c.prototype._getKeyIndexForMany=function(h){var d=this.options.isEqual,p=this.keys,_=p.length;if(!_)return-1;if(_===1)return this._getKeyIndexForSingle(h);var y=h.length,v,E;if(y>1){for(var C=0;C<_;C++)if(v=p[C],v.length===y){for(E=0;E<y&&d(v[E],h[E]);E++);if(E===y)return C}}else for(var C=0;C<_;C++)if(v=p[C],v.length===y&&d(v[0],h[0]))return C;return-1},c.prototype._getKeyIndexForSingle=function(h){var d=this.keys;if(!d.length)return-1;var p=d[0],_=p.length;if(h.length!==_)return-1;var y=this.options.isEqual;if(_>1){for(var v=0;v<_;v++)if(!y(p[v],h[v]))return-1;return 0}return y(p[0],h[0])?0:-1},c.prototype.orderByLru=function(h,d,p){for(var _=this.keys,y=this.values,v=_.length,E=p;E--;)_[E+1]=_[E],y[E+1]=y[E];_[0]=h,y[0]=d;var C=this.options.maxSize;v===C&&p===v?(_.pop(),y.pop()):p>=C&&(_.length=y.length=C)},c.prototype.updateAsyncCache=function(h){var d=this,p=this.options,_=p.onCacheChange,y=p.onCacheHit,v=this.keys[0],E=this.values[0];this.values[0]=E.then(function(C){return d.shouldUpdateOnHit&&y(d,d.options,h),d.shouldUpdateOnChange&&_(d,d.options,h),C},function(C){var U=d.getKeyIndex(v);throw U!==-1&&(d.keys.splice(U,1),d.values.splice(U,1)),C})},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,p=d===void 0?s:d,_=h.isMatchingKey,y=h.isPromise,v=y===void 0?!1:y,E=h.maxSize,C=E===void 0?1:E,U=h.onCacheAdd,G=h.onCacheChange,B=h.onCacheHit,$=h.transformKey,te=l({isEqual:p,isMatchingKey:_,isPromise:v,maxSize:C,onCacheAdd:U,onCacheChange:G,onCacheHit:B,transformKey:$},a(h)),V=new u(te),Z=V.keys,m=V.values,w=V.canTransformKey,S=V.shouldCloneArguments,A=V.shouldUpdateOnAdd,P=V.shouldUpdateOnChange,x=V.shouldUpdateOnHit,R=function(){var I=S?o(arguments):arguments;w&&(I=$(I));var D=Z.length?V.getKeyIndex(I):-1;if(D!==-1)x&&B(V,te,R),D&&(V.orderByLru(Z[D],m[D],D),P&&G(V,te,R));else{var k=c.apply(this,arguments),W=S?I:o(arguments);V.orderByLru(W,k,Z.length),v&&V.updateAsyncCache(R),A&&U(V,te,R),P&&G(V,te,R)}return m[0]};return R.cache=V,R.fn=c,R.isMemoized=!0,R.options=te,R}return f})}(bt,bt.exports)),bt.exports}var Et={exports:{}},pd=Et.exports,Io;function md(){return Io||(Io=1,function(e,t){(function(r,n){n(t)})(pd,function(r){"use strict";var n=typeof WeakMap=="function",o=Object.keys;function a(m,w){return m===w||m!==m&&w!==w}function i(m){return m.constructor===Object||m.constructor==null}function s(m){return!!m&&typeof m.then=="function"}function l(m){return!!(m&&m.$$typeof)}function u(){var m=[];return{delete:function(w){for(var S=0;S<m.length;++S)if(m[S][0]===w){m.splice(S,1);return}},get:function(w){for(var S=0;S<m.length;++S)if(m[S][0]===w)return m[S][1]},set:function(w,S){for(var A=0;A<m.length;++A)if(m[A][0]===w){m[A][1]=S;return}m.push([w,S])}}}var f=function(m){return m?function(){return new WeakMap}:u}(n);function c(m){return function(S){var A=m||S;return function(x,R,I,D,k,W,X){X===void 0&&(X=f());var le=!!x&&typeof x=="object",he=!!R&&typeof R=="object";if(le!==he)return!1;if(!le&&!he)return A(x,R,X);var _e=X.get(x);if(_e&&X.get(R))return _e===R;X.set(x,R),X.set(R,x);var ue=A(x,R,X);return X.delete(x),X.delete(R),ue}}}function h(m,w,S,A){var P=m.length;if(w.length!==P)return!1;for(;P-- >0;)if(!S(m[P],w[P],P,P,m,w,A))return!1;return!0}function d(m,w,S,A){var P=m.size===w.size;if(P&&m.size){var x={},R=0;m.forEach(function(I,D){if(P){var k=!1,W=0;w.forEach(function(X,le){!k&&!x[W]&&(k=S(D,le,R,W,m,w,A)&&S(I,X,D,le,m,w,A),k&&(x[W]=!0)),W++}),R++,P=k}})}return P}var p="_owner",_=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function y(m,w,S,A){var P=o(m),x=P.length;if(o(w).length!==x)return!1;if(x)for(var R=void 0;x-- >0;){if(R=P[x],R===p){var I=l(m),D=l(w);if((I||D)&&I!==D)return!1}if(!_(w,R)||!S(m[R],w[R],R,R,m,w,A))return!1}return!0}var v=function(){return/foo/g.flags==="g"?function(w,S){return w.source===S.source&&w.flags===S.flags}:function(w,S){return w.source===S.source&&w.global===S.global&&w.ignoreCase===S.ignoreCase&&w.multiline===S.multiline&&w.unicode===S.unicode&&w.sticky===S.sticky&&w.lastIndex===S.lastIndex}}();function E(m,w,S,A){var P=m.size===w.size;if(P&&m.size){var x={};m.forEach(function(R,I){if(P){var D=!1,k=0;w.forEach(function(W,X){!D&&!x[k]&&(D=S(R,W,I,X,m,w,A),D&&(x[k]=!0)),k++}),P=D}})}return P}var C=typeof Map=="function",U=typeof Set=="function",G=Object.prototype.valueOf;function B(m){var w=typeof m=="function"?m(S):function(A,P,x,R,I,D,k){return S(A,P,k)};function S(A,P,x){if(A===P)return!0;if(A&&P&&typeof A=="object"&&typeof P=="object"){if(i(A)&&i(P))return y(A,P,w,x);var R=Array.isArray(A),I=Array.isArray(P);return R||I?R===I&&h(A,P,w,x):(R=A instanceof Date,I=P instanceof Date,R||I?R===I&&a(A.getTime(),P.getTime()):(R=A instanceof RegExp,I=P instanceof RegExp,R||I?R===I&&v(A,P):s(A)||s(P)?A===P:C&&(R=A instanceof Map,I=P instanceof Map,R||I)?R===I&&d(A,P,w,x):U&&(R=A instanceof Set,I=P instanceof Set,R||I)?R===I&&E(A,P,w,x):A.valueOf!==G||P.valueOf!==G?a(A.valueOf(),P.valueOf()):y(A,P,w,x)))}return A!==A&&P!==P}return S}var $=B(),te=B(function(){return a}),V=B(c()),Z=B(c(a));r.circularDeepEqual=V,r.circularShallowEqual=Z,r.createCustomEqual=B,r.deepEqual=$,r.sameValueZeroEqual=a,r.shallowEqual=te,Object.defineProperty(r,"__esModule",{value:!0})})}(Et,Et.exports)),Et.exports}var _d=wt.exports,Do;function yd(){return Do||(Do=1,function(e,t){(function(r,n){e.exports=n(hd(),md())})(_d,function(r,n){"use strict";function o(){return o=Object.assign?Object.assign.bind():function(g){for(var b=1;b<arguments.length;b++){var L=arguments[b];for(var T in L)Object.prototype.hasOwnProperty.call(L,T)&&(g[T]=L[T])}return g},o.apply(this,arguments)}function a(g,b){if(g==null)return{};var L={},T=Object.keys(g),M,O;for(O=0;O<T.length;O++)M=T[O],!(b.indexOf(M)>=0)&&(L[M]=g[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 g=arguments.length,b=new Array(g),L=0;L<g;L++)b[L]=arguments[L];return b.reduce(function(T,M){if(typeof T=="function")return typeof M=="function"?function(){T.apply(this,arguments),M.apply(this,arguments)}:T;if(typeof M=="function")return M})}function l(){for(var g=arguments.length,b=new Array(g),L=0;L<g;L++)b[L]=arguments[L];return b.reduce(function(T,M){if(typeof T=="function")return typeof M=="function"?function(){return T(M.apply(this,arguments))}:T;if(typeof M=="function")return M})}function u(g,b){for(var L=0;L<g.length;L++)if(g[L].key===b)return L;return-1}function f(g,b){var L=typeof b=="function"?b:function(T,M){for(var O=0;O<M.length;O++)if(!g(T[O],M[O]))return!1;return!0};return function(T,M){for(var O=0;O<T.length;O++)if(T[O].length===M.length&&L(T[O],M))return O;return-1}}function c(g,b){return!b||b===i?g:o({},g,b,{onCacheAdd:s(g.onCacheAdd,b.onCacheAdd),onCacheChange:s(g.onCacheChange,b.onCacheChange),onCacheHit:s(g.onCacheHit,b.onCacheHit),transformArgs:l(g.transformArgs,b.transformArgs)})}function h(g){return typeof g=="function"&&g.isMoized}function d(g,b,L){try{var T=L||b||"anonymous";Object.defineProperty(g,"name",{configurable:!0,enumerable:!1,value:"moized("+T+")",writable:!0})}catch{}}function p(g,b,L){var T=u(g,b);T!==-1&&(clearTimeout(g[T].timeoutId),L&&g.splice(T,1))}function _(g,b){var L=setTimeout(g,b);return typeof L.unref=="function"&&L.unref(),L}function y(g,b,L,T){var M=b.maxAge;return function O(N,H,re){var Y=N.keys[0];if(u(g,Y)===-1){var ae=function(){var ge=f(L,T),Se=ge(N.keys,Y),Qe=N.values[Se];~Se&&(N.keys.splice(Se,1),N.values.splice(Se,1),typeof b.onCacheChange=="function"&&b.onCacheChange(N,H,re)),p(g,Y,!0),typeof b.onExpire=="function"&&b.onExpire(Y)===!1&&(N.keys.unshift(Y),N.values.unshift(Qe),O(N,H,re),typeof b.onCacheChange=="function"&&b.onCacheChange(N,H,re))};g.push({expirationMethod:ae,key:Y,timeoutId:_(ae,M)})}}}function v(g,b){return function(T){var M=T.keys[0],O=u(g,M);~O&&(p(g,M,!1),g[O].timeoutId=_(g[O].expirationMethod,b.maxAge))}}function E(g,b,L,T){var M=typeof b.maxAge=="number"&&isFinite(b.maxAge)?y(g,b,L,T):void 0;return{onCacheAdd:M,onCacheHit:M&&b.updateExpire?v(g,b):void 0}}var C={anonymousProfileNameCounter:1,isCollectingStats:!1,profiles:{}},U=!1;function G(g){g?delete C.profiles[g]:C.profiles={}}function B(g){g===void 0&&(g=!0),C.isCollectingStats=g}function $(g){var b=g.profileName;return function(){b&&!C.profiles[b]&&(C.profiles[b]={calls:0,hits:0}),C.profiles[b].calls++}}function te(g){return function(){var b=C.profiles,L=g.profileName;b[L]||(b[L]={calls:0,hits:0}),b[L].calls++,b[L].hits++}}function V(g){return g.displayName||g.name||"Anonymous "+C.anonymousProfileNameCounter++}function Z(g,b){return g?(b/g*100).toFixed(4)+"%":"0.0000%"}function m(g){!C.isCollectingStats&&!U&&(console.warn('Stats are not currently being collected, please run "collectStats" to enable them.'),U=!0);var b=C.profiles;if(g){if(!b[g])return{calls:0,hits:0,usage:"0.0000%"};var L=b[g];return o({},L,{usage:Z(L.calls,L.hits)})}var T=Object.keys(C.profiles).reduce(function(M,O){return M.calls+=b[O].calls,M.hits+=b[O].hits,M},{calls:0,hits:0});return o({},T,{profiles:Object.keys(b).reduce(function(M,O){return M[O]=m(O),M},{}),usage:Z(T.calls,T.hits)})}function w(g){return C.isCollectingStats?{onCacheAdd:$(g),onCacheHit:te(g)}:{}}var S={arguments:!0,callee:!0,caller:!0,constructor:!0,length:!0,name:!0,prototype:!0};function A(g,b,L){L===void 0&&(L=[]),Object.getOwnPropertyNames(g).forEach(function(T){if(!S[T]&&L.indexOf(T)===-1){var M=Object.getOwnPropertyDescriptor(g,T);M.get||M.set?Object.defineProperty(b,T,M):b[T]=g[T]}})}function P(g,b){var L=b.expirations,T=g.options,M=f(T.isEqual,T.isMatchingKey),O=g;O.clear=function(){var N=O._microMemoizeOptions.onCacheChange,H=O.cache;return H.keys.length=0,H.values.length=0,N&&N(H,O.options,O),!0},O.clearStats=function(){G(O.options.profileName)},O.get=function(N){var H=O._microMemoizeOptions.transformKey,re=O.cache,Y=H?H(N):N,ae=M(re.keys,Y);return ae!==-1?O.apply(this,N):void 0},O.getStats=function(){return m(O.options.profileName)},O.has=function(N){var H=O._microMemoizeOptions.transformKey,re=H?H(N):N;return M(O.cache.keys,re)!==-1},O.keys=function(){return O.cacheSnapshot.keys},O.remove=function(N){var H=O._microMemoizeOptions,re=H.onCacheChange,Y=H.transformKey,ae=O.cache,ye=M(ae.keys,Y?Y(N):N);if(ye===-1)return!1;var ge=ae.keys[ye];return ae.keys.splice(ye,1),ae.values.splice(ye,1),re&&re(ae,O.options,O),p(L,ge,!0),!0},O.set=function(N,H){var re=O._microMemoizeOptions,Y=O.cache,ae=O.options,ye=re.onCacheAdd,ge=re.onCacheChange,Se=re.transformKey,Qe=Se?Se(N):N,xe=M(Y.keys,Qe);if(xe===-1){var Xe=ae.maxSize-1;Y.size>Xe&&(Y.keys.length=Xe,Y.values.length=Xe),Y.keys.unshift(Qe),Y.values.unshift(H),ae.isPromise&&Y.updateAsyncCache(O),ye&&ye(Y,ae,O),ge&&ge(Y,ae,O)}else{var Nt=Y.keys[xe];Y.values[xe]=H,xe>0&&Y.orderByLru(Nt,H,xe),ae.isPromise&&Y.updateAsyncCache(O),typeof ge=="function"&&ge(Y,ae,O)}},O.values=function(){return O.cacheSnapshot.values}}function x(g,b){var L=b.expirations,T=b.options,M=b.originalFunction,O=g.options;Object.defineProperties(g,{_microMemoizeOptions:{configurable:!0,get:function(){return O}},cacheSnapshot:{configurable:!0,get:function(){var re=g.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 T}},originalFunction:{configurable:!0,get:function(){return M}}});var N=g;A(M,N)}function R(g,b){return P(g,b),x(g,b),g}var I=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function D(g,b,L){var T=g(o({maxArgs:2,isShallowEqual:!0},L,{isReact:!1}));b.displayName||(b.displayName=b.name||"Component");function M(O,N,H){this.props=O,this.context=N,this.updater=H,this.MoizedComponent=T(b)}return M.prototype.isReactComponent={},M.prototype.render=function(){return{$$typeof:I,type:this.MoizedComponent,props:this.props,ref:null,key:null,_owner:null}},A(b,M,["contextType","contextTypes"]),M.displayName="Moized("+(b.displayName||b.name||"Component")+")",d(M,b.name,L.profileName),M}function k(g){return function(b){if(g>=b.length)return b;if(g===0)return[];if(g===1)return[b[0]];if(g===2)return[b[0],b[1]];if(g===3)return[b[0],b[1],b[2]];for(var L=[],T=0;T<g;T++)L[T]=b[T];return L}}function W(g,b){for(var L=g.length,T=0;T<L;++T)if(g[T]===b)return T+1;return 0}function X(){var g=[],b=[];return function(T,M){var O=typeof M;if(O==="function"||O==="symbol")return M.toString();if(typeof M=="object"){if(g.length){var N=W(g,this);N===0?g[g.length]=this:(g.splice(N),b.splice(N)),b[b.length]=T;var H=W(g,M);if(H!==0)return"[ref="+(b.slice(0,H).join(".")||".")+"]"}else g[0]=M,b[0]=T;return M}return""+M}}function le(g){var b=typeof g;return g&&(b==="object"||b==="function")?JSON.stringify(g,X()):g}function he(g){for(var b="|",L=0;L<g.length;L++)b+=le(g[L])+"|";return[b]}function _e(g){return typeof g.serializer=="function"?g.serializer:he}function ue(g,b){return g[0]===b[0]}function Ee(g){if(typeof g=="function")return function(b,L,T){return g(T.cache,T.options,T)}}function Te(g){return g.matchesArg||g.isDeepEqual&&n.deepEqual||g.isShallowEqual&&n.shallowEqual||n.sameValueZeroEqual}function qe(g){return g.matchesKey||g.isSerialized&&ue||void 0}function Ze(g){return l(g.isSerialized&&_e(g),typeof g.transformArgs=="function"&&g.transformArgs,typeof g.maxArgs=="number"&&k(g.maxArgs))}function hr(g){var b=g.options.updateCacheForKey,L=function(){for(var M=arguments.length,O=new Array(M),N=0;N<M;N++)O[N]=arguments[N];if(!b(O))return g.apply(this,O);var H=g.fn.apply(this,O);return g.set(O,H),H};return A(g,L),L}var ts=["matchesArg","isDeepEqual","isPromise","isReact","isSerialized","isShallowEqual","matchesKey","maxAge","maxArgs","maxSize","onCacheAdd","onCacheChange","onCacheHit","onExpire","profileName","serializer","updateCacheForKey","transformArgs","updateExpire"],q=function g(b,L){var T=L||i;if(h(b)){var M=b.originalFunction,O=c(b.options,T);return g(M,O)}if(typeof b=="object")return function(pr,is){if(typeof pr=="function"){var ss=c(b,is);return g(pr,ss)}var ls=c(b,pr);return g(ls)};if(T.isReact)return D(g,b,T);var N=o({},i,T,{maxAge:typeof T.maxAge=="number"&&T.maxAge>=0?T.maxAge:i.maxAge,maxArgs:typeof T.maxArgs=="number"&&T.maxArgs>=0?T.maxArgs:i.maxArgs,maxSize:typeof T.maxSize=="number"&&T.maxSize>=0?T.maxSize:i.maxSize,profileName:T.profileName||V(b)}),H=[];N.matchesArg,N.isDeepEqual;var re=N.isPromise;N.isReact,N.isSerialized,N.isShallowEqual,N.matchesKey,N.maxAge,N.maxArgs;var Y=N.maxSize,ae=N.onCacheAdd,ye=N.onCacheChange,ge=N.onCacheHit;N.onExpire,N.profileName,N.serializer;var Se=N.updateCacheForKey;N.transformArgs,N.updateExpire;var Qe=a(N,ts),xe=Te(N),Xe=qe(N),Nt=E(H,N,xe,Xe),Nn=w(N),ns=Ze(N),os=o({},Qe,{isEqual:xe,isMatchingKey:Xe,isPromise:re,maxSize:Y,onCacheAdd:Ee(s(ae,Nt.onCacheAdd,Nn.onCacheAdd)),onCacheChange:Ee(ye),onCacheHit:Ee(s(ge,Nt.onCacheHit,Nn.onCacheHit)),transformKey:ns}),as=r(b,os),kt=R(as,{expirations:H,options:N,originalFunction:b});return Se&&(kt=hr(kt)),d(kt,b.name,T.profileName),kt};q.clearStats=G,q.collectStats=B,q.compose=function(){return l.apply(void 0,arguments)||q},q.deep=q({isDeepEqual:!0}),q.getStats=m,q.infinite=q({maxSize:1/0}),q.isCollectingStats=function(){return C.isCollectingStats},q.isMoized=function(b){return typeof b=="function"&&!!b.isMoized},q.matchesArg=function(g){return q({matchesArg:g})},q.matchesKey=function(g){return q({matchesKey:g})};function rs(g,b){if(b===!0)return q({maxAge:g,updateExpire:b});if(typeof b=="object"){var L=b.onExpire,T=b.updateExpire;return q({maxAge:g,onExpire:L,updateExpire:T})}return q(typeof b=="function"?{maxAge:g,onExpire:b,updateExpire:!0}:{maxAge:g})}return q.maxAge=rs,q.maxArgs=function(g){return q({maxArgs:g})},q.maxSize=function(g){return q({maxSize:g})},q.profile=function(g){return q({profileName:g})},q.promise=q({isPromise:!0,updateExpire:!0}),q.react=q({isReact:!0}),q.serialize=q({isSerialized:!0}),q.serializeWith=function(g){return q({isSerialized:!0,serializer:g})},q.shallow=q({isShallowEqual:!0}),q.transformArgs=function(g){return q({transformArgs:g})},q.updateCacheForKey=function(g){return q({updateCacheForKey:g})},Object.defineProperty(q,"default",{configurable:!1,enumerable:!1,value:q,writable:!1}),q})}(wt,wt.exports)),wt.exports}var gd=yd();const Gi=us(gd);window._moize=Gi;function Ki(e,t={}){return Gi(e,{...t,maxSize:30,isDeepEqual:!0})}function vd(e,t={}){return Ki(e,{isPromise:!0,...t})}function wd(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 bd=new FinalizationRegistry(({signal:e,aborted:t})=>{e==null||e.removeEventListener("abort",t)});function Ed({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");const a=new Map;let i=0,s=0;function l(){const h=Date.now();return h-i>t?(s=1,i=h,0):(s<e?s++:(i+=t,s=1),i-h)}const u=[];function f(){const h=Date.now();if(u.length>0&&h-u.at(-1)>t&&(u.length=0),u.length<e)return u.push(h),0;const d=u[0]+t;return u.shift(),u.push(d),Math.max(0,d-h)}const c=r?f:l;return h=>{const d=function(..._){if(!d.isEnabled)return(async()=>h.apply(this,_))();let y;return new Promise((v,E)=>{const C=()=>{v(h.apply(this,_)),a.delete(y)},U=c();U>0?(y=setTimeout(C,U),a.set(y,E),o==null||o(..._)):C()})},p=()=>{for(const _ of a.keys())clearTimeout(_),a.get(_)(n.reason);a.clear(),u.splice(0,u.length)};return bd.register(d,{signal:n,aborted:p}),n==null||n.throwIfAborted(),n==null||n.addEventListener("abort",p,{once:!0}),d.isEnabled=!0,Object.defineProperty(d,"queueSize",{get(){return a.size}}),d}}const Sd=Ed({limit:1,interval:1e3}),Uo=[/\/@[^@\/]+@?[^\/]+?\/(\d+)$/i,/\/notice\/(\w+)$/i];function Ad(e){var t;for(let r=0;r<Uo.length;r++){const n=(t=e.match(Uo[r]))==null?void 0:t[1];if(n)return n}return null}const Cd=/(twitter|github)\.com/i,Fo={};function Pd(e,t){var p;const r=Gr(z);if(Cd.test(t)||Fo[t])return;if(new RegExp(e+"/").test((p=r.unfurledLinks[t])==null?void 0:p.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=Ad(l);if(u){const _=u,{masto:y}=or({instance:s});o=y.v1.statuses.$select(_).fetch().then(v=>{if(v!=null&&v.id)return{status:v,instance:s};throw new Error("No results")})}const{masto:f}=or({instance:e}),c=f.v2.search.fetch({q:a,type:"statuses",resolve:!0,limit:1}).then(_=>{const{statuses:y}=_;if(y.length>0){const v=y.filter(E=>{var C;return!((C=E.content)!=null&&C.toLowerCase().includes(a.toLowerCase()))});if(v.length===1)return{status:v[0],instance:e}}throw new Error("No results")});function h(_){const{status:y,instance:v}=_,{id:E}=y,C=`/${v}/s/${E}`,U={id:E,instance:v,url:C};return z.unfurledLinks[t]=U,Vi(y,v,{skipThreading:!0}),U}function d(_){Fo[t]=!0}return o?Promise.race([c,new Promise((y,v)=>setTimeout(v,3e3))]).catch(()=>o.catch(()=>c)).then(h).catch(d):c.then(h).catch(d)}const Rd=Sd(Pd),z=Xa({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 Qf(){z.notificationsLast=F.account.get("notificationsLast")||null,z.shortcuts=F.account.get("shortcuts")??[],z.settings.autoRefresh=F.account.get("settings-autoRefresh")??!1,z.settings.shortcutsViewMode=F.account.get("settings-shortcutsViewMode")??null,F.account.get("settings-shortcutsColumnsMode")&&(z.settings.shortcutsColumnsMode=!0),z.settings.boostsCarousel=F.account.get("settings-boostsCarousel")??!0,z.settings.contentTranslation=F.account.get("settings-contentTranslation")??!0,z.settings.contentTranslationTargetLanguage=F.account.get("settings-contentTranslationTargetLanguage")||null,z.settings.contentTranslationHideLanguages=F.account.get("settings-contentTranslationHideLanguages")||[],z.settings.contentTranslationAutoInline=F.account.get("settings-contentTranslationAutoInline")??!1,z.settings.shortcutSettingsCloudImportExport=F.account.get("settings-shortcutSettingsCloudImportExport")??!1,z.settings.mediaAltGenerator=F.account.get("settings-mediaAltGenerator")??!1,z.settings.composerGIFPicker=F.account.get("settings-composerGIFPicker")??!1,z.settings.cloakMode=F.account.get("settings-cloakMode")??!1,z.settings.groupedNotificationsAlpha=F.account.get("settings-groupedNotificationsAlpha")??!1}$i(z,"notificationsLast",e=>{F.account.set("notificationsLast",z.notificationsLast)});An(z,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",z.settings.contentTranslationHideLanguages),r.join(".")==="settings.mediaAltGenerator"&&F.account.set("settings-mediaAltGenerator",!!n),r.join(".")==="settings.composerGIFPicker"&&F.account.set("settings-composerGIFPicker",!!n),(r==null?void 0:r[0])==="shortcuts"&&F.account.set("shortcuts",z.shortcuts),r.join(".")==="settings.cloakMode"&&F.account.set("settings-cloakMode",!!n),r.join(".")==="settings.groupedNotificationsAlpha"&&F.account.set("settings-groupedNotificationsAlpha",!!n)});function ze(e,t){if(e)return t?`${t}/${e}`:e}function Td(e,t){if(t){const r=ze(e,t);return z.statuses[r]}return z.statuses[e]}function Vi(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=Td(e.id,t);!n&&i||cd(e,i)||(queueMicrotask(()=>{var l,u;const s=ze(e.id,t);if(i!=null&&i._pinned&&(e._pinned=i._pinned),z.statuses[s]=e,(l=e.reblog)!=null&&l.id){const f=ze(e.reblog.id,t);z.statuses[f]=e.reblog}if((u=e.quote)!=null&&u.id){const f=ze(e.quote.id,t);z.statuses[f]=e.quote,z.statusQuotes[s]=[{id:e.quote.id,instance:t}]}}),o||queueMicrotask(()=>{Od(e.reblog||e,t)}),a||queueMicrotask(()=>{Ld(e.reblog||e,t)}))}function xd(e,t){const{masto:r,instance:n}=or({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=ze(l,n);let c=z.statuses[f];if(!c){if(o++>3)throw"Too many fetches for thread";await new Promise(h=>setTimeout(h,500*o)),c=await Md(l,r),Vi(c,n,{skipThreading:!0})}return[...await a(c,++s),i]}return a(e).then(i=>{i.length>1&&i.forEach((s,l)=>{const u=ze(s.id,n);z.statusThreadNumber[u]=l+1})}).catch(i=>{})}const Od=wd(xd,100),qo=document.createElement("div");function Ld(e,t){const{instance:r}=or(),n=e==null?void 0:e.content;if(/<a/i.test(n)){const a=ze(e==null?void 0:e.id,t);qo.innerHTML=n,[...qo.querySelectorAll("a[href]:not(.u-url):not(.mention):not(.hashtag)")].filter(s=>{const l=s.href;return!(l===e.url||l===e.uri)&&dd(l)}).forEach((s,l)=>{Rd(r,s.href).then(u=>{u&&a&&(u==null?void 0:u.id)!==e.id&&(Array.isArray(z.statusQuotes[a])||(z.statusQuotes[a]=[]),z.statusQuotes[a][l]||z.statusQuotes[a].splice(l,0,u))})})}}const Md=vd((e,t)=>t.v1.statuses.$select(e).fetch());function Nd(e){return Intl.getCanonicalLocales(e)}var Pr={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"}}]}}},kd={"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"]},Ln=/-u(?:-[0-9a-z]{2,8})+/gi;function Ae(e,t,r){if(r===void 0&&(r=Error),!e)throw new r(t)}var Id=838,Rr;function Dd(){var e,t;if(!Rr){var r=(t=(e=Pr.supplemental.languageMatching["written-new"][0])===null||e===void 0?void 0:e.paradigmLocales)===null||t===void 0?void 0:t._locales.split(" "),n=Pr.supplemental.languageMatching["written-new"].slice(1,5),o=Pr.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"}},{});Rr={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:ct(ct([],r,!0),r.map(function(i){return new Intl.Locale(i.replace(/_/g,"-")).maximize().toString()}),!0)}}return Rr}function Ft(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 kd[c]||[c]}).reduce(function(c,h){return ct(ct([],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 jo(e){return[e.language,e.script,e.region].filter(Boolean).join("-")}function Tr(e,t,r){for(var n=0,o=r.matches;n<o.length;n++){var a=o[n],i=Ft(e,a.desired,r.matchVariables)&&Ft(t,a.supported,r.matchVariables);if(!a.oneway&&!i&&(i=Ft(e,a.supported,r.matchVariables)&&Ft(t,a.desired,r.matchVariables)),i){var s=a.distance*10;return r.paradigmLocales.indexOf(jo(e))>-1!=r.paradigmLocales.indexOf(jo(t))>-1?s-1:s}}throw new Error("No matching distance found")}function Ud(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=Dd();return o.language!==a.language&&(i+=Tr({language:r.language,script:"",region:""},{language:n.language,script:"",region:""},s)),o.script!==a.script&&(i+=Tr({language:r.language,script:o.script,region:""},{language:n.language,script:a.script,region:""},s)),o.region!==a.region&&(i+=Tr(o,a,s)),i}function Fd(e,t,r){r===void 0&&(r=Id);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=Ud(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 qd(e,t,r){var n,o,a=[],i=t.reduce(function(l,u){var f=u.replace(Ln,"");return a.push(f),l[f]=u,l},{}),s=Fd(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 jd(e,t){var r=t.toLowerCase();Ae(e!==void 0,"ukey must be defined");var n=r;return n}function Ho(e){return Intl.getCanonicalLocales(e)[0]}function Hd(e,t,r){Ae(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 Ho(e);var h=e.indexOf("-x-"),d;if(h===-1)d=e+n;else{var p=e.slice(0,h),_=e.slice(h);d=p+n+_}return Ho(d)}function Wi(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 Bd(e,t,r){for(var n={locale:""},o=0,a=t;o<a.length;o++){var i=a[o],s=i.replace(Ln,""),l=Wi(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 zd(e){Ae(e===e.toLowerCase(),"Expected extension to be lowercase"),Ae(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);Ae(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==null?void 0:n.key)})===void 0&&r.push(n)):(n==null?void 0:n.value)===""?n.value=l:(Ae(n!==void 0,"Expected keyword to be defined"),n.value+="-"+l),a+=s+1}return{attributes:t,keywords:r}}function Yi(e,t,r,n,o,a){var i,s=r.localeMatcher,l;s==="lookup"?l=Bd(Array.from(e),t,a):l=qd(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=zd(l.extension),d=h.keywords):d=[];for(var p=[],_=function(U){var G=(i=f==null?void 0:f[U])!==null&&i!==void 0?i:[];Ae(Array.isArray(G),"keyLocaleData for ".concat(U," must be an array"));var B=G[0];Ae(B===void 0||typeof B=="string","value must be a string or undefined");var $=void 0,te=d.find(function(w){return w.key===U});if(te){var V=te.value;V!==""?G.indexOf(V)>-1&&(B=V,$={key:U,value:B}):G.indexOf("true")>-1&&(B="true",$={key:U,value:B})}var Z=r[U];if(Ae(Z==null||typeof Z=="string","optionsValue must be a string or undefined"),typeof Z=="string"){var m=U.toLowerCase();Z=jd(m,Z),Z===""&&(Z="true")}Z!==B&&G.indexOf(Z)>-1&&(B=Z,$=void 0),$&&p.push($),c[U]=B},y=0,v=n;y<v.length;y++){var E=v[y];_(E)}var C=[];return p.length>0&&(C=[],u=Hd(u,C,p)),c.locale=u,c}function $d(e,t){for(var r=[],n=0,o=t;n<o.length;n++){var a=o[n],i=a.replace(Ln,""),s=Wi(e,i);s&&r.push(s)}return r}function Ji(e,t,r,n){return Yi(t,Nd(e),{localeMatcher:(n==null?void 0:n.algorithm)||"best fit"},[],{},function(){return r}).locale}const Xf=Object.freeze(Object.defineProperty({__proto__:null,LookupSupportedLocales:$d,ResolveLocale:Yi,match:Ji},Symbol.toStringTag,{value:"Module"}));function Gd(...e){try{return Ji(...e)}catch{return e[2]||!1}}const Kd=Ki(Gd),Vd="modulepreload",Wd=function(e,t){return new URL(e,t).href},Bo={},K=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){let i=function(f){return Promise.all(f.map(c=>Promise.resolve(c).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};const s=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),u=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));o=i(r.map(f=>{if(f=Wd(f,n),f in Bo)return;Bo[f]=!0;const c=f.endsWith(".css"),h=c?'[rel="stylesheet"]':"";if(!!n)for(let _=s.length-1;_>=0;_--){const y=s[_];if(y.href===f&&(!c||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${h}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":Vd,c||(p.as="script"),p.crossOrigin="",p.href=f,u&&p.setAttribute("nonce",u),document.head.appendChild(p),c)return new Promise((_,y)=>{p.addEventListener("load",_),p.addEventListener("error",()=>y(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)})};function Yd({abrupt:e,hidden:t,...r}){return Xt("span",{...r,class:`loader-container ${e?"abrupt":""} ${t?"hidden":""}`,children:Xt("span",{class:"loader"})})}const Mn=[{code:"ar-SA",nativeName:"العربية",name:"Arabic",completion:24,listed:!1},{code:"ca-ES",nativeName:"català",name:"Catalan",completion:100,listed:!0},{code:"cs-CZ",nativeName:"čeština",name:"Czech",completion:81,listed:!0},{code:"de-DE",nativeName:"Deutsch",name:"German",completion:92,listed:!0},{code:"eo-UY",nativeName:"Esperanto",name:"Esperanto",completion:100,listed:!0},{code:"es-ES",nativeName:"español",name:"Spanish",completion:100,listed:!0},{code:"eu-ES",nativeName:"euskara",name:"Basque",completion:98,listed:!0},{code:"fa-IR",nativeName:"فارسی",name:"Persian",completion:70,listed:!0},{code:"fi-FI",nativeName:"suomi",name:"Finnish",completion:100,listed:!0},{code:"fr-FR",nativeName:"français",name:"French",completion:99,listed:!0},{code:"gl-ES",nativeName:"galego",name:"Galician",completion:100,listed:!0},{code:"he-IL",nativeName:"עברית",name:"Hebrew",completion:10,listed:!1},{code:"it-IT",nativeName:"italiano",name:"Italian",completion:100,listed:!0},{code:"ja-JP",nativeName:"日本語",name:"Japanese",completion:47,listed:!1},{code:"kab",nativeName:"Taqbaylit",name:"Kabyle",completion:95,listed:!0},{code:"ko-KR",nativeName:"한국어",name:"Korean",completion:88,listed:!0},{code:"lt-LT",nativeName:"lietuvių",name:"Lithuanian",completion:98,listed:!0},{code:"nb-NO",nativeName:"norsk bokmål",name:"Norwegian Bokmål",completion:49,listed:!1},{code:"nl-NL",nativeName:"Nederlands",name:"Dutch",completion:75,listed:!0},{code:"pl-PL",nativeName:"polski",name:"Polish",completion:67,listed:!0},{code:"pt-BR",nativeName:"português",name:"Portuguese",completion:100,listed:!0},{code:"pt-PT",nativeName:"português",name:"Portuguese",completion:100,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:47,listed:!1},{code:"uk-UA",nativeName:"українська",name:"Ukrainian",completion:92,listed:!0},{code:"zh-CN",nativeName:"简体中文",name:"Simplified Chinese",completion:100,listed:!0},{code:"zh-TW",nativeName:"繁體中文",name:"Traditional Chinese",completion:32,listed:!1}],xr={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"},st="en",eh=Mn,Zi=[st,...Mn.filter(({listed:e})=>e).map(({code:e})=>e)],th=Zi;let ar=[];xr!=null&&xr.PHANPY_SHOW_DEV_LOCALES&&(ar=Mn.filter(({listed:e})=>!e).map(({code:e})=>e),ar.push("pseudo-LOCALE"));const rh=ar,zo=[...Zi,...ar],Jd=(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 Zd(e,t={useSessionStorage:!1}){return t.useSessionStorage?globalThis.sessionStorage.getItem(e):globalThis.localStorage.getItem(e)}function Qd(e=globalThis.navigator){return e.language||e.userLanguage}function Xd(e){const t=/([^=?#&]+)=?([^&]*)/g,r={};let n;for(;n=t.exec(e);){const o=$o(n[1]),a=$o(n[2]);o===null||a===null||o in r||(r[o]=a)}return r}function $o(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function ef(e,t=globalThis.location){if(!e)throw new Error("fromUrl parameter is required");return Xd(t.search)[e]||null}function tf(...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 rf=/([\.\*\+\^\$\[\]\\\(\)\|\{\}\,\-\:\?])/g,Go=/^([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 $e{constructor(t){if(typeof t!="string")throw new TypeError("A string argument is expected");if(!Go.test(t))throw new RangeError("A proper locale must be provided");this._locale=t}static _escapeRegExpPattern(t){return typeof t!="string"?t:t.replace(rf,"\\$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=Go.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}=$e._parseLocale(this._locale);return r?$e._RTL_SCRIPTS.indexOf(r)>=0:$e._BIDI_RTL_LANGS.indexOf(t)>=0}get textInfo(){return{direction:this._isRtlLang()?"rtl":"ltr"}}}$e._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"];$e._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 Qi=JSON.parse(`{"G2fuEb":["Locked"],"ajzDof":["Posts: ",["0"]],"f8bJ3C":["Last posted: ",["0"]],"9Vdq+j":["Automated"],"L8fEEm":["Group"],"7oRLbi":["Mutual"],"Yx0Ud8":["Requested"],"y6sq5j":["Following"],"p3UO/y":["Follows you"],"Mn1E9C":[["followersCount","plural",{"one":["#"," follower"],"other":["#"," followers"]}]],"QDEWii":["Verified"],"PCcEFZ":["Joined <0>",["0"],"</0>"],"9ZP9cc":["Forever"],"44hICK":["Unable to load account."],"Aadw0+":["Go to account page"],"x5LEuB":["Followers"],"following.stats":["Following"],"+owNNn":["Posts"],"2FYpfJ":["More"],"C6cVP/":["<0>",["displayName"],"</0> has indicated that their new account is now:"],"zJoEwS":["Handle copied"],"BC0lSD":["Unable to copy handle"],"27x6gl":["Copy handle"],"Bz5hLl":["Go to original profile page"],"7WYl2I":["View profile image"],"ZNme5R":["View profile header"],"9OpVZg":["Edit profile"],"prdIOK":["In Memoriam"],"BRV/wh":["This user has chosen to not make this information available."],"wiuWLe":[["0"]," original posts, ",["1"]," replies, ",["2"]," boosts"],"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"]}]]}]],"JvA7Mo":[["0","plural",{"one":["Last 1 post in the past year(s)"],"other":["Last ",["1"]," posts in the past year(s)"]}]],"HxF6Fk":["Original"],"N8UzTV":["Replies"],"puY2t0":["Boosts"],"vl3XTJ":["Post stats unavailable."],"PjP87f":["View post stats"],"F3cM1G":["Last post: <0>",["0"],"</0>"],"+IJm1Z":["Muted"],"32TndD":["Blocked"],"zxFxcH":["Private note"],"3LkfZu":["Mention <0>@",["username"],"</0>"],"R8mSiS":["Translate bio"],"U+Gokq":["Edit private note"],"VcQzRi":["Add private note"],"jL3N0G":["Notifications enabled for @",["username"],"'s posts."],"0h4/9h":[" Notifications disabled for @",["username"],"'s posts."],"osJmEN":["Disable notifications"],"I92Z+b":["Enable notifications"],"0X2KC8":["Boosts from @",["username"]," enabled."],"cXWjH0":["Boosts from @",["username"]," disabled."],"GRUr8d":["Disable boosts"],"uREpT3":["Enable boosts"],"sJ2yQc":["Add/Remove from Lists"],"edWbV6":["Link copied"],"W1ewR0":["Unable to copy link"],"he3ygx":["Copy"],"TtG3Uh":["Sharing doesn't seem to work."],"LFKLqp":["Share…"],"B4Xkly":["Unmuted @",["username"]],"Q/HUhC":["Unmute <0>@",["username"],"</0>"],"xhPEH3":["Mute <0>@",["username"],"</0>…"],"/plB9m":["Muted @",["username"]," for ",["0"]],"vWGBjT":["Unable to mute @",["username"]],"unyq2W":["Remove <0>@",["username"],"</0> from followers?"],"AgkcM/":["@",["username"]," removed from followers"],"VCZ0OT":["Remove follower…"],"aforS9":["Block <0>@",["username"],"</0>?"],"sI9N29":["Unblocked @",["username"]],"uYcYzu":["Blocked @",["username"]],"0tG4wG":["Unable to unblock @",["username"]],"pA+qEx":["Unable to block @",["username"]],"/3LJfX":["Unblock <0>@",["username"],"</0>"],"JRswkR":["Block <0>@",["username"],"</0>…"],"qTJgpR":["Report <0>@",["username"],"</0>…"],"e7qQIH":["Withdraw follow request?"],"eYsAQr":["Unfollow @",["0"],"?"],"HKrBPX":["Unfollow…"],"yTVtKs":["Withdraw…"],"MKEPCY":["Follow"],"yz7wBu":["Close"],"9groMz":["Translated Bio"],"7KnEYa":["Unable to remove from list."],"Tba8uO":["Unable to add to list."],"v/l5uA":["Unable to load lists."],"/MJ7gZ":["No lists."],"Sb2gYF":["New list"],"DYqYm5":["Private note about <0>@",["0"],"</0>"],"ot8LpF":["Unable to update private note."],"dEgA5A":["Cancel"],"SrwrEj":["Save & close"],"FwMMx0":["Unable to update profile."],"C5zXYJ":["Header picture"],"4XF0BB":["Profile picture"],"6YtxFj":["Name"],"E+oKCO":["Bio"],"T4I119":["Extra fields"],"87a/t/":["Label"],"4b3oEV":["Content"],"tfDRzk":["Save"],"silO9A":["username"],"rZgCpJ":["server domain name"],"oguMwa":["Cloak mode disabled"],"IXZLPs":["Cloak mode enabled"],"i0qMbr":["Home"],"QOhkyl":["Compose"],"+GkIdc":["Scheduled Posts"],"LwOr4P":["Add to thread"],"TbrCz2":["Take photo or video"],"MfJ43d":["Add media"],"ggiJLM":["Add custom emoji"],"Fm6c4W":["Add GIF"],"cZJ92q":["Add poll"],"sX3iLV":["Schedule post"],"hR9gtK":["You have unsaved changes. Discard this post?"],"rpXAF6":[["0","plural",{"one":["File ",["1"]," is not supported."],"other":["Files ",["2"]," are not supported."]}]],"ctFhjs":[["maxMediaAttachments","plural",{"one":["You can only attach up to 1 file."],"other":["You can only attach up to ","#"," files."]}]],"JsU2En":["Pop out"],"3TSz9S":["Minimize"],"qiPXgY":["Looks like you closed the parent window."],"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."],"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?"],"/5ZKeE":["Pop in"],"Q1Huya":["Replying to @",["0"],"s post (<0>",["1"],"</0>)"],"dwLCPZ":["Replying to @",["0"],"s post"],"wKtOLH":["Editing source post"],"zhrMYj":["Poll must have at least 2 options"],"uNVxXX":["Some poll choices are empty"],"MQYucx":["Some media have no descriptions. Continue?"],"eIiurD":["Attachment #",["i"]," failed"],"gnKo7f":["Content warning"],"zKu2Aq":["Content warning or sensitive media"],"7d1a0d":["Public"],"d5zxa4":["Local"],"WDcQq9":["Unlisted"],"o34OrG":["Followers only"],"IV4QaU":["Private mention"],"Sjj+EN":["Post your reply"],"qzVesX":["Edit your post"],"owpNF1":["What are you doing?"],"jER18a":["Mark media as sensitive"],"GKuKcZ":["Posting on <0/>"],"m16xKo":["Add"],"gmB6oO":["Schedule"],"ImOQa9":["Reply"],"EkH9pt":["Update"],"GMe2XV":["Post"],"/Cw4Tx":["Downloading GIF…"],"VKDnAx":["Failed to download GIF"],"24misb":["More…"],"3wG7HI":["Uploaded"],"Lh8B0N":["Image description"],"mN4S+e":["Video description"],"ieZytw":["Audio description"],"d83/LB":["File size too large. Uploading might encounter issues. Try reduce the file size from ",["0"]," to ",["1"]," or lower."],"DuvOX/":["Dimension too large. Uploading might encounter issues. Try reduce dimension from ",["0"],"×",["1"],"px to ",["2"],"×",["3"],"px."],"S1fBwy":["Frame rate too high. Uploading might encounter issues."],"t/YqKh":["Remove"],"SlfejT":["Error"],"oMslIB":["Edit image description"],"WZw+zB":["Edit video description"],"KMtgtM":["Edit audio description"],"8zsp51":["Generating description. Please wait…"],"wy0Iwj":["Failed to generate description: ",["0"]],"xhYfVj":["Failed to generate description"],"o5sTJw":["Generate description…"],"eNTGfp":["Failed to generate description",["0"]],"m+pAEQ":["(",["0"],") <0>— experimental</0>"],"DPfwMq":["Done"],"LDUSXg":["Choice ",["0"]],"T57mm9":["Multiple choices"],"lkz6PL":["Duration"],"CDpQAX":["Remove poll"],"eH1bqp":["Search accounts"],"AThL/k":["Error loading accounts"],"8i6Ueo":["Custom emojis"],"EarrCe":["Search emoji"],"Kzwsg2":["Error loading custom emojis"],"uabU9X":["Recently used"],"NuKR0h":["Others"],"iAB71E":[["0"]," more…"],"wxlF9B":["Search GIFs"],"c1Q/eU":["Powered by GIPHY"],"9KEidY":["Type to search GIFs"],"DHhJ7s":["Previous"],"hXzOVo":["Next"],"PbFw9n":["Error loading GIFs"],"krk5ws":["Unsent drafts"],"Ap/10+":["Looks like you have unsent drafts. Let's continue where you left off."],"/W5yFF":["Delete this draft?"],"rEYoku":["Error deleting draft! Please try again."],"Jb6/SB":["Delete…"],"tMwimH":["Error fetching reply-to status!"],"3IakFR":["Delete all drafts?"],"0J4sZq":["Error deleting drafts! Please try again."],"hOg+Mt":["Delete all…"],"8iQ+jk":["No drafts found."],"4WUbF1":["Poll"],"xYilR2":["Media"],"4/RpOy":["Open in new window"],"g3UF2V":["Accept"],"1t/NnN":["Reject"],"bzMKg7":["Accepted"],"ekCRTP":["Rejected"],"bPwFdf":["Accounts"],"uXRAkV":["Show more…"],"2EYeAZ":["The end."],"10OlfF":["Nothing to show"],"77Emn0":["Keyboard shortcuts"],"ulXSNi":["Keyboard shortcuts help"],"Gy9P9T":["Next post"],"6XYpYY":["Previous post"],"DYowFe":["Skip carousel to next post"],"mzjGX4":["<0>Shift</0> + <1>j</1>"],"S5ez7Y":["Skip carousel to previous post"],"Fd8FaU":["<0>Shift</0> + <1>k</1>"],"VkLESX":["Load new posts"],"jsFF8C":["Open post details"],"80sOCm":["<0>Enter</0> or <1>o</1>"],"41gejM":["Expand content warning or<0/>toggle expanded/collapsed thread"],"jAj8rv":["Close post or dialogs"],"evz6c6":["<0>Esc</0> or <1>Backspace</1>"],"duF1lx":["Focus column in multi-column mode"],"nhpsIN":["<0>1</0> to <1>9</1>"],"YrR3Co":["Focus next column in multi-column mode"],"noxAFR":["Focus previous column in multi-column mode"],"AIa/f7":["Compose new post"],"snPx8X":["Compose new post (new window)"],"+Cxvld":["<0>Shift</0> + <1>c</1>"],"1pKapz":["Send post"],"py67WT":["<0>Ctrl</0> + <1>Enter</1> or <2>⌘</2> + <3>Enter</3>"],"A1taO8":["Search"],"KFs8c6":["Reply (new window)"],"XpQLJF":["<0>Shift</0> + <1>r</1>"],"cqi4Mx":["Like (favourite)"],"84WuL2":["<0>l</0> or <1>f</1>"],"kulphB":["Boost"],"yrz6Ck":["<0>Shift</0> + <1>b</1>"],"PZlHt8":["Bookmark"],"C7ujRh":["Toggle Cloak mode"],"v4TbMP":["<0>Shift</0> + <1>Alt</1> + <2>k</2>"],"tuhghE":["Edit list"],"R7ep1i":["Unable to edit list."],"KPoj8w":["Unable to create list."],"ei6pnR":["Show replies to list members"],"Mr53YX":["Show replies to people I follow"],"PM7llw":["Don't show replies"],"jxxYp0":["Hide posts on this list from Home/Following"],"hYgDIe":["Create"],"+kQ/cY":["Delete this list?"],"tqUaGL":["Unable to delete list."],"5gfDMm":["Media description"],"pi8x/S":["Translate"],"yIBLq8":["Speak"],"5hXGws":["Open original media in new window"],"aDr7Vc":["Open original media"],"vFGLxm":["Attempting to describe image. Please wait…"],"zLz0mE":["Failed to describe image"],"6yILME":["Describe image…"],"ISg5SQ":["View post"],"FKojeB":["Sensitive media"],"7FGvtQ":["Filtered: ",["filterTitleStr"]],"03Qqf9":["Filtered"],"9npOH9":["Open file"],"IrX0sj":["Post scheduled"],"aTyHBW":["Post published. Check it out."],"+38pse":["Reply scheduled"],"lZdBKl":["Reply posted. Check it out."],"a5BN7l":["Post updated. Check it out."],"zucql+":["Menu"],"Djbaby":["Reload page now to update?"],"95IFnD":["New update available…"],"following.title":["Following"],"xrl8fj":["Catch-up"],"/bZzdR":["Mentions"],"iDNBZe":["Notifications"],"isRobC":["New"],"vERlcd":["Profile"],"7Ff7ia":["Bookmarks"],"zZOZj7":["Likes"],"Xi1/bw":["Followed Hashtags"],"cSev+j":["Filters"],"sOKhEA":["Muted users"],"n1sANU":["Muted users…"],"nL8nlr":["Blocked users"],"r3RRWo":["Blocked users…"],"7e0O8Z":["Accounts…"],"sQia9P":["Log in"],"4/iCqx":["Trending"],"4ERYY7":["Federated"],"8Kudkr":["Shortcuts / Columns…"],"uVbUP8":["Settings…"],"h16FyT":["Lists"],"BHWx+g":["All Lists"],"5+87Pq":["Notification"],"k9N0Xk":["This notification is from your other account."],"/WA/tl":["View all notifications"],"i5uN6K":[["account"]," reacted to your post with ",["emojiObject"]],"idiIxW":[["account"]," published a post."],"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."]}]]}]],"+71G9C":[["count","plural",{"1":[["account"]," followed you."],"other":["<0><1>",["0"],"</1> people</0> followed you."]}]],"eh6NHW":[["account"]," requested to follow you."],"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."]}]]}]],"kIlJaS":["A poll you have voted in or created has ended."],"kpjzdN":["A poll you have created has ended."],"moT7M8":["A poll you have voted in has ended."],"uzt17m":["A post you interacted with has been edited."],"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."]}]]}]],"fJCCpx":[["account"]," signed up."],"eNfCmq":[["account"]," reported ",["targetAccount"]],"Xl9v6+":["Lost connections with <0>",["name"],"</0>."],"YqffEv":["Moderation warning"],"INLTzH":["Your ",["year"]," #Wrapstodon is here!"],"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."],"Q3yArs":["An admin from <0>",["from"],"</0> has blocked <1>",["targetName"],"</1>. Affected followers: ",["followersCount"],", followings: ",["followingCount"],"."],"RQKWUa":["You have blocked <0>",["targetName"],"</0>. Removed followers: ",["followersCount"],", followings: ",["followingCount"],"."],"ipnHrn":["Your account has received a moderation warning."],"jw0eSZ":["Your account has been disabled."],"v9jO+F":["Some of your posts have been marked as sensitive."],"raUMBQ":["Some of your posts have been deleted."],"w2OpMr":["Your posts will be marked as sensitive from now on."],"mlycBx":["Your account has been limited."],"Fz4lZ1":["Your account has been suspended."],"ODqZt1":["[Unknown notification type: ",["type"],"]"],"+XOeb+":["Boosted/Liked by…"],"LQFF6J":["Liked by…"],"phQpSa":["Boosted by…"],"Ih01jh":["Followed by…"],"YL6Y8P":["Learn more <0/>"],"5PGPvG":["View #Wrapstodon"],"8fZueG":["Read more →"],"IeO7us":["Voted"],"+syLpm":[["optionVotesCount","plural",{"one":["#"," vote"],"other":["#"," votes"]}]],"L96xSt":["Hide results"],"lQXQKs":["Vote"],"lCF0wC":["Refresh"],"zCjei3":["Show results"],"k7v0Rh":[["votesCount","plural",{"one":["<0>",["0"],"</0> vote"],"other":["<1>",["1"],"</1> votes"]}]],"jf1i1L":[["votersCount","plural",{"one":["<0>",["0"],"</0> voter"],"other":["<1>",["1"],"</1> voters"]}]],"5LwCCI":["Ended <0/>"],"237hSL":["Ended"],"ooHDPY":["Ending <0/>"],"O2tNG0":["Ending"],"NnRCUm":[["0"],"s"],"ZSWUwq":[["0"],"m"],"NSSJsj":[["0"],"h"],"t8dIOP":["Spam"],"csQin/":["Malicious links, fake engagement, or repetitive replies"],"IjKdHM":["Illegal"],"e6tGFu":["Violates the law of your or the server's country"],"KPFHM2":["Server rule violation"],"fpotTF":["Breaks specific server rules"],"iuLUuH":["Violation"],"/IX/7x":["Other"],"kxiG8g":["Issue doesn't fit other categories"],"muLhL3":["Report Post"],"ACul2G":["Report @",["username"]],"2WtL62":["Pending review"],"y3ou+8":["Post reported"],"R9kjEL":["Profile reported"],"+3FjPq":["Unable to report post"],"oEQq5w":["Unable to report profile"],"L9fUm+":["What's the issue with this post?"],"rSLkfe":["What's the issue with this profile?"],"ecVtjm":["Additional info"],"cyjS8M":["Forward to <0>",["domain"],"</0>"],"4cijjm":["Send Report"],"/BGBeF":["Muted ",["username"]],"v02K7/":["Unable to mute ",["username"]],"caeqw/":["Send Report <0>+ Mute profile</0>"],"kjUejn":["Blocked ",["username"]],"pMcdDp":["Unable to block ",["username"]],"JybQca":["Send Report <0>+ Block profile</0>"],"48oDit":[["query"]," <0> accounts, hashtags & posts</0>"],"o1mMWT":["Posts with <0>",["query"],"</0>"],"YAZw8D":["Posts tagged with <0>#",["0"],"</0>"],"gEoOUj":["Look up <0>",["query"],"</0>"],"cDoNQr":["Accounts with <0>",["query"],"</0>"],"7ZJHdw":["Home / Following"],"tXgQpk":["Public (Local / Federated)"],"AeXO77":["Account"],"GP8RLS":["Hashtag"],"DUMt1y":["List ID"],"OgyJSr":["Local only"],"kyAi7k":["Instance"],"7defFj":["Optional, e.g. mastodon.social"],"dmloPh":["Search term"],"UHDQDE":["Optional, unless for multi-column mode"],"a6oTWs":["e.g. PixelArt (Max 5, space-separated)"],"eK4SL/":["Media only"],"CTqTgr":["Shortcuts"],"A1As8l":["beta"],"CIHAsy":["Specify a list of shortcuts that'll appear as:"],"qwdOim":["Floating button"],"UxBoCm":["Tab/Menu bar"],"uvDfdW":["Multi-column"],"5KJFnN":["Not available in current view mode"],"QyioBP":["Move up"],"3Ib6FN":["Move down"],"ePK91l":["Edit"],"3Xq4Zi":["Add more than one shortcut/column to make this work."],"3xIN+E":["No columns yet. Tap on the Add column button."],"vLxvHT":["No shortcuts yet. Tap on the Add shortcut button."],"Fq4zw3":["Not sure what to add?<0/>Try adding <1>Home / Following and Notifications</1> first."],"RqXfsz":["Max ",["SHORTCUTS_LIMIT"]," columns"],"EVRO/o":["Max ",["SHORTCUTS_LIMIT"]," shortcuts"],"bgVLbt":["Import/export"],"Vh3ADI":["Add column…"],"9tmn6W":["Add shortcut…"],"1qL+L+":["Specific list is optional. For multi-column mode, list is required, else the column will not be shown."],"dmTmkQ":["For multi-column mode, search term is required, else the column will not be shown."],"E8laYz":["Multiple hashtags are supported. Space-separated."],"pe1jog":["Edit shortcut"],"Lsxpe5":["Add shortcut"],"cklVjM":["Timeline"],"2BBAbc":["List"],"OOa7/5":["Import/Export <0>Shortcuts</0>"],"l3s5ri":["Import"],"tBmklN":["Paste shortcuts here"],"HLqLGx":["Downloading saved shortcuts from instance server…"],"gCDfX+":["Unable to download shortcuts"],"B6cG3J":["Download shortcuts from instance server"],"o6sElH":["* Exists in current shortcuts"],"N4z4P/":["List may not work if it's from a different account."],"ZhsPEb":["Invalid settings format"],"6MzUUU":["Append to current shortcuts?"],"nl8sCE":["Only shortcuts that dont exist in current shortcuts will be appended."],"o6L30P":["No new shortcuts to import"],"SBmqmC":["Shortcuts imported. Exceeded max ",["SHORTCUTS_LIMIT"],", so the rest are not imported."],"QO9uTx":["Shortcuts imported"],"c89gCv":["Import & append…"],"6ZjzWP":["Override current shortcuts?"],"DWumLi":["Import shortcuts?"],"uIp8WL":["or override…"],"Sjnlwj":["Import…"],"GS+Mus":["Export"],"cWtH+v":["Shortcuts copied"],"yUWyHa":["Unable to copy shortcuts"],"+Kq2vY":["Shortcut settings copied"],"tFvxZF":["Unable to copy shortcut settings"],"Z8lGw6":["Share"],"9ZYiLz":["Saving shortcuts to instance server…"],"5w02SH":["Shortcuts saved"],"aVsTYo":["Unable to save shortcuts"],"gWd6Cu":["Sync to instance server"],"IPXOXm":[["0","plural",{"one":["#"," character"],"other":["#"," characters"]}]],"e5E+WH":["Raw Shortcuts JSON"],"C4T6O/":["Import/export settings from/to instance server (Very experimental)"],"DlhB4J":["<0/> <1>boosted</1>"],"7jyUKe":["Sorry, your current logged-in instance can't interact with this post from another instance."],"sZvpIt":["Unliked @",["0"],"'s post"],"yUngDO":["Liked @",["0"],"'s post"],"lWQguj":["Unbookmarked @",["0"],"'s post"],"Fb2K8h":["Bookmarked @",["0"],"'s post"],"MB+wJL":["Some media have no descriptions."],"dBme/4":["Old post (<0>",["0"],"</0>)"],"QzzGsY":["Unboost"],"ZhhOwV":["Quote"],"bpDheH":["Unboosted @",["0"],"'s post"],"dbNZdP":["Boosted @",["0"],"'s post"],"PiVIlD":["Boost…"],"OcUmcH":["Unlike"],"W9FRBT":["Like"],"q8EQYI":["Unbookmark"],"iSRQvy":["Post text copied"],"N1MyiN":["Unable to copy post text"],"iQgJaz":["Copy post text"],"8MkSAW":["View post by <0>@",["0"],"</0>"],"QL+7Jw":["Show Edit History"],"DuJJm9":["Edited: ",["editedDateText"]],"jdVwsS":["Embed post"],"Pm+5jw":["Conversation unmuted"],"ywB7JM":["Conversation muted"],"c6jxNY":["Unable to unmute conversation"],"8SN9kN":["Unable to mute conversation"],"i51zUR":["Unmute conversation"],"OiUYO5":["Mute conversation"],"Yx809+":["Post unpinned from profile"],"S6P6E+":["Post pinned to profile"],"A6cs15":["Unable to unpin post"],"vgUfWO":["Unable to pin post"],"XQMQZw":["Unpin from profile"],"lfHLsx":["Pin to profile"],"FbPNuJ":["Delete this post?"],"KiyvHV":["Post deleted"],"Yb6p2q":["Unable to delete post"],"7PQAMY":["Report post…"],"8ab1sR":["Liked"],"b7T5Zj":["Boosted"],"1C/9Sa":["Bookmarked"],"kNiQp6":["Pinned"],"vGjmyl":["Deleted"],"RXmXDR":[["repliesCount","plural",{"one":["#"," reply"],"other":["#"," replies"]}]],"lQ8zCz":["Thread",["0"]],"6lGV3K":["Show less"],"lqBX03":["Show content"],"suKjh3":["Filtered: ",["0"]],"9ZCilh":["Show media"],"MRZxAn":["Edited"],"VbyRUy":["Comments"],"4LHHK6":["More from <0/>"],"OKiofn":["Edit History"],"EANWES":["Failed to load history"],"Pwqkdw":["Loading…"],"GkS6YG":["HTML Code"],"bl7nrg":["HTML code copied"],"/KEBaP":["Unable to copy HTML code"],"/2mUza":["Media attachments:"],"AeM/di":["Account Emojis:"],"xiropL":["static URL"],"jzjjJh":["Emojis:"],"TnJgwX":["Notes:"],"0OHPem":["This is static, unstyled and scriptless. You may need to apply your own styles and edit as needed."],"AzZ5zv":["Polls are not interactive, becomes a list with vote counts."],"NU7wa/":["Media attachments can be images, videos, audios or any file types."],"R4PmPA":["Post could be edited or deleted later."],"rdUucN":["Preview"],"j0kZfi":["Note: This preview is lightly styled."],"zJyf/5":["<0/> <1/> boosted"],"2yr1/p":["New posts"],"KDw4GX":["Try again"],"NuqppG":[["0","plural",{"one":["#"," Boost"],"other":["#"," Boosts"]}]],"GlfmCu":["Pinned posts"],"e66y2Z":["Thread"],"sr6maL":["<0>Filtered</0>: <1>",["0"],"</1>"],"zVJKbG":["Auto-translated from ",["sourceLangText"]],"Zxkt/v":["Translating…"],"R20Yf9":["Translate from ",["sourceLangText"]," (auto-detected)"],"h8zDAI":["Translate from ",["sourceLangText"]],"Bze3gr":["Auto (",["0"],")"],"m5LihO":["Failed to translate"],"Txus+H":["Editing source status"],"03vjxE":["Replying to @",["0"]],"mBdQnV":["You may close this page now."],"rf8fiC":["Close window"],"D3vX+9":["Login required."],"iWpEwy":["Go home"],"/cKnpj":["Account posts"],"hS1Opy":[["accountDisplay"]," (+ Replies)"],"A/CX5F":[["accountDisplay"]," (- Boosts)"],"QQrO94":[["accountDisplay"]," (#",["tagged"],")"],"NoG5wD":[["accountDisplay"]," (Media)"],"8GjLvB":[["accountDisplay"]," (",["monthYear"],")"],"u8JHrO":["Clear filters"],"xCJdfg":["Clear"],"PIWNSQ":["Showing post with replies"],"5BFynH":["+ Replies"],"Qd13i0":["Showing posts without boosts"],"usxQx0":["- Boosts"],"rKpfPY":["Showing posts with media"],"L+HFfr":["Showing posts tagged with #",["0"]],"0WUFGD":["Showing posts in ",["0"]],"+k97fV":["Nothing to see here yet."],"scd9lw":["Unable to load posts"],"FgdLx0":["Unable to fetch account info"],"/JFxxT":["Switch to account's instance ",["0"]],"HkuyOu":["Switch to my instance (<0>",["currentInstance"],"</0>)"],"HajiZl":["Month"],"Hp1l6f":["Current"],"ovBPCi":["Default"],"3t/Nrv":["Switch to this account"],"PZgZtY":["Switch in new tab/window"],"40z2Fm":["View profile…"],"PPcets":["Set as default"],"k08LxG":["Log out <0>@",["0"],"</0>?"],"CXk1bI":["Log out…"],"Is7/PB":["Add an existing account"],"52x24e":["Note: <0>Default</0> account will always be used for first load. Switched accounts will persist during the session."],"8k2w6G":["No bookmarks yet. Go bookmark something!"],"UoL+FC":["Unable to load bookmarks."],"Ov9hfp":["last 1 hour"],"tVE2wM":["last 2 hours"],"8+HOWa":["last 3 hours"],"1o+mEC":["last 4 hours"],"dZZ8oA":["last 5 hours"],"lpPucp":["last 6 hours"],"r9r5X6":["last 7 hours"],"I9uBFA":["last 8 hours"],"pBYFlb":["last 9 hours"],"wvL7OJ":["last 10 hours"],"7Vb+qD":["last 11 hours"],"VU1Pnd":["last 12 hours"],"vpc27K":["beyond 12 hours"],"lCLRBe":["Followed tags"],"zhrjek":["Groups"],"TLYeLT":["Showing ",["selectedFilterCategory","select",{"all":["all posts"],"original":["original posts"],"replies":["replies"],"boosts":["boosts"],"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":[]}]],"wyL/3/":["Catch-up <0>beta</0>"],"c3XJ18":["Help"],"CxKPv6":["What is this?"],"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."],"CeInO2":["Preview of Catch-up UI"],"2jI8hh":["Let's catch up"],"1RfGk7":["Let's catch up on the posts from your followings."],"OOEonE":["Show me all posts from…"],"NMNiaO":["until the max"],"R0yu2l":["Catch up"],"AGyV7s":["Overlaps with your last catch-up"],"dDJEHI":["Until the last catch-up (",["0"],")"],"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."],"Yfb9A8":["Previously…"],"S6XZwv":[["0","plural",{"one":["#"," post"],"other":["#"," posts"]}]],"D9CmP2":["Remove this catch-up?"],"xJUo4P":["Removing Catch-up ",["0"]],"1dyGG/":["Catch-up ",["0"]," removed"],"sXmrl4":["Note: Only max 3 will be stored. The rest will be automatically removed."],"rbUTzD":["Fetching posts…"],"q9urQO":["This might take a while."],"I9EnzM":["Reset filters"],"EIZREX":["Top links"],"bfSr6z":["Shared by ",["0"]],"N40H+G":["All"],"HHtYi7":[["0","plural",{"one":["#"," author"],"other":["#"," authors"]}]],"f6Hub0":["Sort"],"mYGY3B":["Date"],"0tQ7AD":["Density"],"group.filter":["Group"],"dpqPBg":["Authors"],"EdQY6l":["None"],"/dlmrZ":["Show all authors"],"eVosYr":["You don't have to read everything."],"rhmyFK":["That's all."],"0MgdN+":["Back to top"],"YmGrIy":["Links shared by followings, sorted by shared counts, boosts and likes."],"coaNtr":["Sort: Density"],"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."],"ScQBC/":["Group: Authors"],"srocAr":["Posts are grouped by authors, sorted by posts count per author."],"f5dduh":["Next author"],"rj0vxZ":["Previous author"],"bUUv3P":["Scroll to top"],"PHIrMr":["No likes yet. Go like something!"],"khVljG":["Unable to load likes."],"Buy2bt":["Home and lists"],"RO10dm":["Public timelines"],"EnJuK0":["Conversations"],"vrQQgz":["Profiles"],"qqeAJM":["Never"],"yFfBdX":["New filter"],"5vzJxv":[["0","plural",{"one":["#"," filter"],"other":["#"," filters"]}]],"qcAUwp":["Unable to load filters."],"cWIHTt":["No filters yet."],"vCSBPD":["Add filter"],"3mOee6":["Edit filter"],"H8RP+h":["Unable to edit filter"],"Fr0hAN":["Unable to create filter"],"MHrjPM":["Title"],"/7UQ7y":["Whole word"],"SYKm3p":["No keywords. Add one."],"qn5Dbn":["Add keyword"],"1JZ175":[["0","plural",{"one":["#"," keyword"],"other":["#"," keywords"]}]],"uqf7Yq":["Filter from…"],"m0G499":["* Not implemented yet"],"ucJk3m":["Status: <0><1/></0>"],"BcNdg+":["Change expiry"],"agO/T/":["Expiry"],"blQMpa":["Filtered post will be…"],"ggxOw9":["obscured (media only)"],"jbreWy":["minimized"],"zNCBmf":["hidden"],"BPjyR2":["Delete this filter?"],"4Dh9J1":["Unable to delete filter."],"M1RnFv":["Expired"],"urGtsw":["Expiring <0/>"],"O1Aswy":["Never expires"],"2S/uvJ":[["0","plural",{"one":["#"," hashtag"],"other":["#"," hashtags"]}]],"2AeREO":["Unable to load followed hashtags."],"vKsGhk":["No hashtags followed yet."],"nJEKbY":["Nothing to see here."],"7QSeK6":["Unable to load posts."],"kH0rA0":[["hashtagTitle"]," (Media only) on ",["instance"]],"IK0zKi":[["hashtagTitle"]," on ",["instance"]],"hHSI3w":[["hashtagTitle"]," (Media only)"],"+ZzjRY":[["hashtagTitle"]],"CNSLAW":["No one has posted anything with this tag yet."],"yjj6Ll":["Unable to load posts with this tag"],"ctJi7k":["Unfollow #",["hashtag"],"?"],"doK/ij":["Unfollowed #",["hashtag"]],"R9+aEN":["Followed #",["hashtag"]],"HOSk7R":["Following…"],"VH+Tf9":["Unfeatured on profile"],"3OLv47":["Unable to unfeature on profile"],"9ra4hn":["Featured on profile"],"UlJ3QN":["Feature on profile"],"ouWc/D":[["TOTAL_TAGS_LIMIT","plural",{"other":["Max ","#"," tags"]}]],"cxL5F9":["Add hashtag"],"OISAkj":["Remove hashtag"],"XN1xAY":[["SHORTCUTS_LIMIT","plural",{"one":["Max ","#"," shortcut reached. Unable to add shortcut."],"other":["Max ","#"," shortcuts reached. Unable to add shortcut."]}]],"kfeQnS":["This shortcut already exists"],"MIhb91":["Hashtag shortcut added"],"i02Lq/":["Add to Shortcuts"],"2MQ2cd":["Enter a new instance e.g. \\"mastodon.social\\""],"7WddtO":["Invalid instance"],"Sq04Yc":["Go to another instance…"],"iAzCp4":["Go to my instance (<0>",["currentInstance"],"</0>)"],"5GFQTh":["Unable to fetch notifications."],"OdVhdR":["<0>New</0> <1>Follow Requests</1>"],"gukqfD":["See all"],"RTAr/z":["Resolving…"],"ufzZSJ":["Unable to resolve URL"],"KkDhfU":["Nothing yet."],"hB02vO":["Manage members"],"j5n9Ry":["Remove <0>@",["0"],"</0> from list?"],"MWIaew":["Remove…"],"8prZNK":[["0","plural",{"one":["#"," list"],"other":["#"," lists"]}]],"IvPikw":["No lists yet."],"ZP1FIA":["Failed to register application"],"u3gOdY":["instance domain"],"/OvbEC":["e.g. “mastodon.social”"],"rmBHZn":["Failed to log in. Please try again or try another instance."],"2xahsi":["Continue with ",["selectedInstanceText"]],"xGVfLh":["Continue"],"LcOiWS":["Don't have an account? Create one!"],"2BApYc":["Private mentions"],"zwBp5t":["Private"],"03jFGT":["No one mentioned you :("],"pqR9KF":["Unable to load mentions."],"d+hDoa":["You don't follow"],"oAwuQj":["Who don't follow you"],"Srs8u7":["With a new account"],"IDC5Uw":["Who unsolicitedly private mention you"],"XMGM2e":["Who are limited by server moderators"],"a/+arl":["Notifications settings"],"Jy9RU/":["New notifications"],"0whvLM":[["0","plural",{"one":["Announcement"],"other":["Announcements"]}]],"6Fs1Ba":["Follow requests"],"7dHKu4":[["0","plural",{"one":["#"," follow request"],"other":["#"," follow requests"]}]],"N3Bq0f":[["0","plural",{"one":["Filtered notifications from ","#"," person"],"other":["Filtered notifications from ","#"," people"]}]],"0udtPI":["Only mentions"],"ecUA8p":["Today"],"KS7iJH":["You're all caught up."],"y/0uwd":["Yesterday"],"gjzl8E":["Unable to load notifications"],"4+7X9i":["Notifications settings updated"],"WrkPTf":["Filter out notifications from people:"],"o7J4JM":["Filter"],"gbbkE7":["Ignore"],"TbFrLc":["Updated <0>",["0"],"</0>"],"H0wUNM":["View notifications from <0>@",["0"],"</0>"],"MXOmPt":["Notifications from <0>@",["0"],"</0>"],"ZtBMwU":["Notifications from @",["0"]," will not be filtered from now on."],"S92JKG":["Unable to accept notification request"],"h7peZQ":["Allow"],"ibBDry":["Notifications from @",["0"]," will not show up in Filtered notifications from now on."],"S5aemF":["Unable to dismiss notification request"],"1QfxQT":["Dismiss"],"J6hrEy":["Dismissed"],"u96B/B":["Local timeline (",["instance"],")"],"PgVqvd":["Federated timeline (",["instance"],")"],"pJQgQV":["Local timeline"],"cg0I+x":["Federated timeline"],"BiZJ6G":["No one has posted anything yet."],"dXMiUw":["Switch to Federated"],"t2B/we":["Switch to Local"],"mZYb1f":["No scheduled posts."],"aEp6lO":["Scheduled <0><1/></0> <2>(",["0"],")</2>"],"orjBLU":["Scheduled <0><1/></0>"],"40naR1":["Scheduled post rescheduled"],"ZM3jAs":["Failed to reschedule post"],"QqW27M":["Reschedule"],"09u3Kk":["Delete scheduled post?"],"/zL/Mq":["Scheduled post deleted"],"aOh6Md":["Failed to delete scheduled post"],"6YeoAt":["Search: ",["q"]," (Posts)"],"fpgumQ":["Search: ",["q"]," (Accounts)"],"AuiMZZ":["Search: ",["q"]," (Hashtags)"],"wr3GZI":["Search: ",["q"]],"VwUsHI":["Hashtags"],"V1fa9u":["See more"],"BMmtZ8":["See more accounts"],"YYB61U":["No accounts found."],"Nc/W5J":["See more hashtags"],"4MFM3P":["No hashtags found."],"LYCgej":["See more posts"],"Hzi9AA":["No posts found."],"fGn1Hk":["Enter your search term or paste a URL above to get started."],"Tz0i8g":["Settings"],"aAIQg2":["Appearance"],"1njn7W":["Light"],"pvnfJD":["Dark"],"R9Khdg":["Auto"],"7r6sCa":["Text size"],"J6ypuD":["A"],"CeJHfb":["Display language"],"FFmj1D":["Volunteer translations"],"PcoS3v":["Posting"],"NAjVvt":["Default visibility"],"N2FcBE":["Synced"],"Oa+KBY":["Failed to update posting privacy"],"xlsg7n":["Synced to your instance server's settings. <0>Go to your instance (",["instance"],") for more settings.</0>"],"ivdhsq":["Experiments"],"0mC0SF":["Auto refresh timeline posts"],"TSbnoW":["Boosts carousel"],"0SdaOt":["Post translation"],"zXCa9e":["Translate to "],"jNCSyx":["System language (",["systemTargetLanguageText"],")"],"cc0NrU":[["0","plural",{"0":["Hide \\"Translate\\" button for:"],"other":["Hide \\"Translate\\" button for (","#","):"]}]],"7I3sDQ":["Note: This feature uses external translation services, powered by <0>",["TRANSLATION_API_NAME"],"</0>."],"gURvmk":["Auto inline translation"],"PbHARL":["Automatically show translation for posts in timeline. Only works for <0>short</0> posts without content warning, media and poll."],"D7/2jB":["GIF Picker for composer"],"/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."],"9q5uor":["Image description generator"],"faZ9RI":["Only for new images while composing new posts."],"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."],"aGziA/":["Server-side grouped notifications"],"X17jCM":["Alpha-stage feature. Potentially improved grouping window but basic grouping logic."],"570qTm":["\\"Cloud\\" import/export for shortcuts settings"],"0tZAhT":["⚠️⚠️⚠️ Very experimental.<0/>Stored in your own profiles notes. Profile (private) notes are mainly used for other profiles, and hidden for own profile."],"fHf1v/":["Note: This feature uses currently-logged-in instance server API."],"lxYe+I":["Cloak mode <0>(<1>Text</1> → <2>████</2>)</0>"],"T/hglb":["Replace text as blocks, useful when taking screenshots, for privacy reasons."],"uyJsf6":["About"],"AZ2EoP":["<0>Built</0> by <1>@cheeaun</1>"],"O4cLCR":["Sponsor"],"Ng063n":["Donate"],"LcET2C":["Privacy Policy"],"pFnMHn":["<0>Site:</0> ",["0"]],"6KkH+2":["<0>Version:</0> <1/> ",["0"]],"PiPfua":["Version string copied"],"gdxreD":["Unable to copy version string"],"I6pdY3":["Failed to update subscription. Please try again."],"q1zFd+":["Failed to remove subscription. Please try again."],"WUHLnz":["Push Notifications (beta)"],"6LUsk7":["Push notifications are blocked. Please enable them in your browser settings."],"qYNCa1":["Allow from <0>",["0"],"</0>"],"+niKJH":["anyone"],"x2NYtp":["people I follow"],"PBFNgg":["followers"],"aaJhcT":["Follows"],"wNExRS":["Polls"],"K/EtE6":["Post edits"],"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>."],"z96cOX":["NOTE: Push notifications only work for <0>one account</0>."],"post.title":["Post"],"Vyeh4F":["You're not logged in. Interactions (reply, boost, etc) are not possible."],"j5roNG":["This post is from another instance (<0>",["instance"],"</0>). Interactions (reply, boost, etc) are not possible."],"DnepCE":["Error: ",["e"]],"ejAVrO":["Switch to my instance to enable interactions"],"HQJU6W":["Unable to load replies."],"iH8pgl":["Back"],"NCy+Nw":["Go to main post"],"R8CUl0":[["0"]," posts above Go to top"],"+/xYEI":["Switch to Side Peek view"],"2LiWsE":["Switch to Full view"],"8r8KmB":["Show all sensitive content"],"Rsjgm0":["Experimental"],"9J6biQ":["Unable to switch"],"Kp9SAs":["Switch to post's instance (",["0"],")"],"lb07+k":["Switch to post's instance"],"JWxodU":["Unable to load post"],"DOQUen":[["0","plural",{"one":["#"," reply"],"other":["<0>",["1"],"</0> replies"]}]],"qSQQSe":[["totalComments","plural",{"one":["#"," comment"],"other":["<0>",["0"],"</0> comments"]}]],"ZlV82A":["View post with its replies"],"cI3UEs":["Trending (",["instance"],")"],"9veeTb":["Trending News"],"aavdrC":["By ",["0"]],"9Q/4xJ":["Back to showing trending posts"],"BATCqf":["Showing posts mentioning <0>",["0"],"</0>"],"Vosm4k":["Trending posts"],"6HA9+s":["No trending posts."],"Ogtv0V":["A minimalistic opinionated Mastodon web client."],"ZLoGls":["Log in with Mastodon"],"e+RpCP":["Sign up"],"fvAsUK":["Connect your existing Mastodon/Fediverse account.<0/>Your credentials are not stored on this server."],"BskFI2":["<0>Built</0> by <1>@cheeaun</1>. <2>Privacy Policy</2>."],"S5cYrQ":["Screenshot of Boosts Carousel"],"Tu+sCN":["Boosts Carousel"],"e2uVlo":["Visually separate original posts and re-shared posts (boosted posts)."],"CGQ27z":["Screenshot of nested comments thread"],"cYE45+":["Nested comments thread"],"Pc7QKh":["Effortlessly follow conversations. Semi-collapsible replies."],"rnrM7k":["Screenshot of grouped notifications"],"4RRMre":["Grouped notifications"],"8GMtDr":["Similar notifications are grouped and collapsed to reduce clutter."],"VLKtvP":["Screenshot of multi-column UI"],"pEkad9":["Single or multi-column"],"t7Py5R":["By default, single column for zen-mode seekers. Configurable multi-column for power users."],"wOax6E":["Screenshot of multi-hashtag timeline with a form to add more hashtags"],"Wi1Ov0":["Multi-hashtag timeline"],"tS2i+h":["Up to 5 hashtags combined into a single timeline."],"4S86wI":["Looks like your browser is blocking popups."],"/4fHR1":["A draft post is currently minimized. Post or discard it before creating a new one."],"vvl08N":["A post is currently open. Post or discard it before creating a new one."]}`),nf=Object.freeze(Object.defineProperty({__proto__:null,messages:Qi},Symbol.toStringTag,{value:"Module"})),of={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:af}=of,sf={};at.load(st,Qi);at.on("change",()=>{const e=at.locale;if(e){document.documentElement.lang=e;try{const{direction:t}=new $e(e).textInfo;document.documentElement.dir=t}catch{}}});async function lf(e){if(!e||e===st)at.activate(st);else try{const{messages:t}=await Jd(Object.assign({"../locales/ar-SA.po":()=>K(()=>import("./locales/ar-SA-CCnkOrYA.js"),[],import.meta.url),"../locales/ca-ES.po":()=>K(()=>import("./locales/ca-ES-BVW8sUEJ.js"),[],import.meta.url),"../locales/cs-CZ.po":()=>K(()=>import("./locales/cs-CZ-D2aAPDKz.js"),[],import.meta.url),"../locales/de-DE.po":()=>K(()=>import("./locales/de-DE-DvoveF5W.js"),[],import.meta.url),"../locales/en.po":()=>K(()=>Promise.resolve().then(()=>nf),void 0,import.meta.url),"../locales/eo-UY.po":()=>K(()=>import("./locales/eo-UY-D-LiAo0T.js"),[],import.meta.url),"../locales/es-ES.po":()=>K(()=>import("./locales/es-ES-mKA8cYRL.js"),[],import.meta.url),"../locales/eu-ES.po":()=>K(()=>import("./locales/eu-ES-Cubrn-AS.js"),[],import.meta.url),"../locales/fa-IR.po":()=>K(()=>import("./locales/fa-IR-DwuyI82L.js"),[],import.meta.url),"../locales/fi-FI.po":()=>K(()=>import("./locales/fi-FI-DkPt5e4J.js"),[],import.meta.url),"../locales/fr-FR.po":()=>K(()=>import("./locales/fr-FR-Cl1_BO4f.js"),[],import.meta.url),"../locales/gl-ES.po":()=>K(()=>import("./locales/gl-ES-ShKVqRbn.js"),[],import.meta.url),"../locales/he-IL.po":()=>K(()=>import("./locales/he-IL-CCnkOrYA.js"),[],import.meta.url),"../locales/it-IT.po":()=>K(()=>import("./locales/it-IT-D2Xa8IER.js"),[],import.meta.url),"../locales/ja-JP.po":()=>K(()=>import("./locales/ja-JP-CCnkOrYA.js"),[],import.meta.url),"../locales/kab.po":()=>K(()=>import("./locales/kab-UzX4KVAc.js"),[],import.meta.url),"../locales/ko-KR.po":()=>K(()=>import("./locales/ko-KR-C-6KGLVm.js"),[],import.meta.url),"../locales/lt-LT.po":()=>K(()=>import("./locales/lt-LT-C3FXxRAf.js"),[],import.meta.url),"../locales/nb-NO.po":()=>K(()=>import("./locales/nb-NO-CCnkOrYA.js"),[],import.meta.url),"../locales/nl-NL.po":()=>K(()=>import("./locales/nl-NL-B6A1GIo1.js"),[],import.meta.url),"../locales/oc-FR.po":()=>K(()=>import("./locales/oc-FR-CCnkOrYA.js"),[],import.meta.url),"../locales/pl-PL.po":()=>K(()=>import("./locales/pl-PL-D9NkuInx.js"),[],import.meta.url),"../locales/pseudo-LOCALE.po":()=>K(()=>import("./locales/pseudo-LOCALE-DlCesH4G.js"),[],import.meta.url),"../locales/pt-BR.po":()=>K(()=>import("./locales/pt-BR-DF3_zyQm.js"),[],import.meta.url),"../locales/pt-PT.po":()=>K(()=>import("./locales/pt-PT-CH1DBOCV.js"),[],import.meta.url),"../locales/ru-RU.po":()=>K(()=>import("./locales/ru-RU-g3_tiBY-.js"),[],import.meta.url),"../locales/th-TH.po":()=>K(()=>import("./locales/th-TH-CCnkOrYA.js"),[],import.meta.url),"../locales/tr-TR.po":()=>K(()=>import("./locales/tr-TR-CCnkOrYA.js"),[],import.meta.url),"../locales/uk-UA.po":()=>K(()=>import("./locales/uk-UA-CYi2-R_a.js"),[],import.meta.url),"../locales/zh-CN.po":()=>K(()=>import("./locales/zh-CN-BhNyswGs.js"),[],import.meta.url),"../locales/zh-TW.po":()=>K(()=>import("./locales/zh-TW-CCnkOrYA.js"),[],import.meta.url)}),`../locales/${sf[e]||e}.po`,3);at.loadAndActivate({locale:e,messages:t})}catch{at.activate(st)}}function nh(){const e=tf(ef("lang"),Zd("lang"),Qd(),af,st),t=e.find(r=>zo.includes(r))||Kd(e,zo);lf(t)}var qt={},Ko;function uf(){if(Ko)return qt;Ko=1,Object.defineProperty(qt,"__esModule",{value:!0}),qt.shouldPolyfill=e;function e(){return!Intl.Segmenter}return qt}var cf=uf();const Xi=!cf.shouldPolyfill();function es(){if(!Xi)return K(()=>import("./polyfill-force-BPy3-chx.js").then(e=>e.p),[],import.meta.url).catch(()=>{})}function Zr(){return K(()=>import("./compose-DDyc08yp.js"),__vite__mapDeps([0,1,2,3]),import.meta.url)}async function oh(){try{await es(),Zr()}catch{}}function ah(e){const[t,r]=Ve(null);return We(()=>{(async()=>{try{if(Xi){const n=await Zr();r(n)}else{await es();const n=await Zr();r(n)}}catch{}})()},[]),t!=null&&t.default?Xt(t.default,{...e}):Xt(Yd,{})}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:Vo}=df;function ih(e,t){function r(){const{currentLocation:n}=z,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=>Fr(s,n)):t&&(i=Fr(t,n)),i&&(document.title=e?`${e} / ${Vo}`:Vo)}Re(()=>{const n=$i(z,"currentLocation",r);return r(),n},[e,t])}export{Od as $,Ue as A,On as B,eh as C,st as D,us as E,An as F,Gl as G,oh as H,ah as I,ze as J,Ec as K,th as L,pa as M,Mt as N,ma as O,Cf as P,on as Q,se as R,Nf as S,_f as T,bf as U,ih as V,Ki as W,Td as X,$i as Y,Fr as Z,Re as _,or as a,Oe as a0,Ff as a1,If as a2,Df as a3,Qf as a4,ji as a5,Uf as a6,kf as a7,Ef as a8,tu as a9,ff as aA,Tf as aB,ct as aC,Yi as aD,$d as aE,Xf as aF,Rc as aG,cd as aH,nh as aa,Rt as ab,mf as ac,Af as ad,De as ae,La as af,Ma as ag,wa as ah,Xs as ai,Ta as aj,K as ak,Gi as al,Ds as am,Of as an,Bt as ao,pe as ap,J as aq,Ed as ar,oi as as,Ie as at,na as au,fn as av,oe as aw,dd as ax,Rd as ay,Bf as az,Vi as b,Pf as c,Ve as d,Xt as e,F as f,Ac as g,ir as h,Bi as i,be as j,me as k,rh as l,lf as m,Mf as n,Lf as o,vd as p,ft as q,yn as r,z as s,at as t,pf as u,xf as v,Yd as w,Er as x,We as y,Kd as z};
//# sourceMappingURL=useTitle-Bxi1QgwH.js.map