phanpy-cz/assets/useTitle-jLgT0T3g.js

47 lines
228 KiB
JavaScript
Raw Normal View History

2024-12-30 07:44:29 +01:00
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./compose-8rrDtgaW.js","./fuse-1Fw6A_G2.js","./fuse-f4VJQFfi.css","./compose-Ig15wqnf.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 Qi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zd(e){if(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 hr={},pr={},Mn;function Xi(){return Mn||(Mn=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"]])}(pr)),pr}var Nn;function es(){return Nn||(Nn=1,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;const t=Xi();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 g=r(d);if(Number.isNaN(g)||_!==void 0&&_!==d.length)throw new SyntaxError(t.errorMessages.get(p));return g}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 g=n(p,t.ErrorType.MalformedUnicode,4);return String.fromCharCode(_,g)}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(g){throw g instanceof RangeError?new SyntaxError(t.errorMessages.get(t.ErrorType.CodePointLimit)):g}}function l(d,p=!1){if(p)throw new SyntaxError(t.errorMessages.get(t.ErrorType.OctalDeprecation));const _=parseInt(d,8);return String.fromCharCode(_)}const c=new Map([["b","\b"],["f","\f"],["n",`
`],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function f(d){return c.get(d)||d}const u=/\\(?:(\\)|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(u,function(_,g,w,S,T,U,$,H,z){if(g!==void 0)return"\\";if(w!==void 0)return o(w);if(S!==void 0)return s(S);if(T!==void 0)return a(T,U);if($!==void 0)return a($);if(H==="0")return"\0";if(H!==void 0)return l(H,!p);if(z!==void 0)return f(z);throw new SyntaxError(t.errorMessages.get(t.ErrorType.EndOfString))})}e.unraw=h,e.default=h}(hr)),hr}var ts=es();var qe={},mt={},Ft={exports:{}},rs=Ft.exports,kn;function ns(){return kn||(kn=1,function(e){(function(t,r){e.exports?e.exports=r():t.moo=r()})(rs,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 v=new RegExp("|"+m);return v.exec("").length-1}function l(m){return"("+m+")"}function c(m){if(!m.length)return"(?!)";var v=m.map(function(E){return"(?:"+E+")"}).join("|");return"(?:"+v+")"}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 u(m,v){return m.length>v?m:Array(v-m.length+1).join(" ")+m}function h(m,v){for(var E=m.length,C=0;;){var P=m.lastIndexOf(`
`,E-1);if(P===-1||(C++,E=P,C===v)||E===0)break}var x=C<v?0:E+1;return m.substring(x).split(`
`)}function d(m){for(var v=Object.getOwnPropertyNames(m),E=[],C=0;C<v.length;C++){var P=v[C],x=m[P],A=[].concat(x);if(P==="include"){for(var I=0;I<A.length;I++)E.push({include:A[I]});continue}var D=[];A.forEach(function(k){a(k)?(D.length&&E.push(_(P,D)),E.push(_(P,k)),D=[]):D.push(k)}),D.length&&E.push(_(P,D))}return E}function p(m){for(var v=[],E=0;E<m.length;E++){var C=m[E];if(C.include){for(var P=[].concat(C.include),x=0;x<P.length;x++)v.push({include:P[x]});continue}if(!C.type)throw new Error("Rule has no type: "+JSON.stringify(C));v.push(_(C.type,C))}return v}function _(m,v){if(a(v)||(v={match:v}),v.include)throw new Error("Matching rules cannot also include states");var E={defaultType:m,lineBreaks:!!v.error||!!v.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var C in v)t.call(v,C)&&(E[C]=v[C]);if(typeof E.type=="string"&&m!==E.type)throw new Error("Type transform cannot be a string (type '"+E.type+"' for token '"+m+"')");var P=E.match;return E.match=Array.isArray(P)?P:P?[P]:[],E.match.sort(function(x,A){return o(x)&&o(A)?0:o(A)?-1:o(x)?1:A.length-x.length}),E}function g(m){return Array.isArray(m)?p(m):d(m)}var w=_("error",{lineBreaks:!0,shouldThrow:!0});function S(m,v){for(var E=null,C=Object.create(null),P=!0,x=null,A=[],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(E)throw!k.fallback==!E.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+"')");E=k}var W=k.match.slice();if(P)for(;W.length&&typeof W[0]=="string"&&W[0].length===1;){var X=W.shift();C[X.charCodeAt(0)]=k}if(k.pop||k.push||k.next){if(!v)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,A.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=c(W.map(f)),ue=new RegExp(_e);if(ue.test(""))throw new Error("RegExp matches empty string: "+ue);var be=s(_e);if(be>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=E&&E.fallback,je=n&&!Te?"ym":"gm",Ze=n||Te?"":"|";x===!0&&(je+="u");var dr=new RegExp(c(I)+Ze,je);return{regexp:dr,groups:A,fast:C,error:E||w}}function T(m){var v=S(g(m));return new z({start:v},"start")}function U(m,v,E){var C=m&&(m.push||m.next);if(C&&!E[C])throw new Error("Missing state '"+C+"' (in token '"+m.defaultType+"' of state '"+v+"')");if(m&&m.pop&&+m.pop!=1)throw new Error("pop must be 1 (in token '"+m.defaultType+"' of state '"+v+"')")}function $(m,v){var E=m.$all?g(m.$all):[];delete m.$all;var C=Object.getOwnPropertyNames(m);v||(v=C[0]);for(var P=Object.create(null),x=0;x<C.length;x++){var A=C[x];P[A]=g(m[A]).concat(E)}for(var x=0;x<C.length;x++)for(var A=C[x],I=P[A],D=Object.create(null),k=0;k<I.length;k++){var W=I[k];if(W.include){var X=[k,1];if(W.include!==A&&!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 '"+A+"')");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<C.length;x++){var A=C[x];ue[A]=S(P[A],!0)}for(var x=0;x<C.length;x++){for(var be=C[x],Te=ue[be],je=Te.groups,k=0;k<je.length;k++)U(je[k],be,ue);for(var Ze=Object.getOwnPropertyNames(Te.fast),k=0;k<Ze.length;k++)U(Te.fast[Ze[k]],be,ue)}return new z(ue,v)}function H(m){for(var v=typeof Map<"u",E=v?new Map:Object.create(null),C=Object.getOwnPropertyNames(m),P=0;P<C.length;P++){var x=C[P],A=m[x],I=Array.isArray(A)?A:[A];I.forEach(function(D){if(typeof D!="string")throw new Error("keyword must be string (in keyword '"+x+"')");v?E.set(D,x):E[D]=x})}return function(D){return v?E.get(D):E[D]}}var z=function(m,v){this.startState=v,this.states=m,this.buffer="",this.stack=[],this.reset()};z.prototype.reset=function(m,v){return this.buffer=m||"",this.index=0,this.line=v?v.line:1,this.col=v?v.col:1,this.queuedToken=v?v.queuedToken:null,this.queuedText=v?v.queuedText:"",this.queuedThrow=v?v.queuedThrow:null,this.setState(v?v.state:this.startState),this.stack=v&&v.stack?v.stack.slice():[],this},z.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}},z.prototype.setState=function(m){if(!(!m||this.state===m)){this.state=m;var v=this.states[m];this.groups=v.groups,this.error=v.error,this.re=v.regexp,this.fast=v.fast}},z.prototype.popState=function(){this.setState(this.stack.pop())},z.prototype.pushState=function(m){this.stack.push(this.state),this.setState(m)};var te=n?function(m,v){return m.exec(v)}:function(m,v){var E=m.exec(v);return E[0].length===0?null:E};z.prototype._getGroup=function(m){for(var v=this.groups.length,E=0;E<v;E++)if(m[E+1]!==void 0)return this.groups[E];throw new Error("Cannot find token type for matched text")};function V(){return this.value}if(z.prototype.next=function(){var m=this.index;if(this.queuedGroup){var v=this._token(this.queuedGroup,this.queuedText,m);return this.queuedGroup=null,this.queuedText="",v}var E=this.buffer;if(m!==E.length){var A=this.fast[E.charCodeAt(m)];if(A)return this._token(A,E.charAt(m),m);var C=this.re;C.lastIndex=m;var P=te(C,E),x=this.error;if(P==null)return this._token(x,E.slice(m,E.length),m);var A=this._getGroup(P),I=P[0];return x.fallback&&P.index!==m?(this.queuedGroup=A,this.queuedText=I,this._token(x,E.slice(m,P.index),m)):this._token(A,I,m)}},z.prototype._token=function(m,v,E){var C=0;if(m.lineBreaks){var P=/\n/g,x=1;if(v===`
`)C=1;else for(;P.exec(v);)C++,x=P.lastIndex}var A={type:typeof m.type=="function"&&m.type(v)||m.defaultType,value:typeof m.value=="function"?m.value(v):v,text:v,toString:V,offset:E,lineBreaks:C,line:this.line,col:this.col},I=v.length;if(this.index+=I,this.line+=C,C!==0?this.col=I-x+1:this.col+=I,m.shouldThrow){var D=new Error(this.formatError(A,"invalid syntax"));throw D}return m.pop?this.popState():m.push?this.pushState(m.push):m.next&&this.setState(m.next),A},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},z.prototype[Symbol.iterator]=function(){return new Z(this)}}return z.prototype.formatError=function(m,v){if(m==null)var E=this.buffer.slice(this.index),m={text:E,offset:this.index,lineBreaks:E.indexOf(`
`)===-1?0:1,line:this.line,col:this.col};var C=2,P=Math.max(m.line-C,1),x=m.line+C,A=String(x).length,I=h(this.buffer,this.line-m.line+C+1).slice(0,5),D=[];D.push(v+" 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(u(String(X),A)+" "+W),X===m.line&&D.push(u("",A+m.col+1)+"^")}return D.join(`
`)},z.prototype.clone=function(){return new z(this.states,this.state)},z.prototype.has=function(m){return!0},{compile:T,states:$,error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:H}})}(Ft)),Ft.exports}var In;function os(){return In||(In=1,function(e){"use strict";var t=mt&&mt.__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(ns());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)}(mt)),mt}var Dn;function as(){if(Dn)return qe;Dn=1,Object.defineProperty(qe,"__esModule",{value:!0}),qe.parse=qe.ParseError=void 0;const e=os(),t=c=>({offset:c.offset,line:c.line,col:c.col,text:c.text,lineBreaks:c.lineBreaks}),r=c=>c==="plural"||c==="select"||c==="selectordinal";function n(c,f){let u="",h="";for(const p of f){const _=p.ctx.text;switch(h+=_,p.type){case"content":u+=p.value;break;case"argument":case"function":case"octothorpe":u+=_;break;default:throw new i(c,`Unsupported part in strict mode function arg style: ${_}`)}}return[{type:"content",value:u.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,u){super(e.lexer.formatError(f,u))}}qe.ParseError=i;class s{constructor(f,u){var h,d,p,_;this.lexer=e.lexer.reset(f),this.cardinalKeys=(h=u==null?void 0:u.cardinal)!==null&&h!==void 0?h:a,this.ordinalKeys=(d=u==null?void 0:u.ordinal)!==null&&d!==void 0?d:a,this.strict=(p=u==null?void 0:u.strict)!==null&&p!==void 0?p:!1,this.strictPluralKeys=(_=u==null?void 0:u.strictPluralKeys)!==null&&_!==void 0?_:!0}parse(){return this.parseBody(!1,!0)}checkSelectKey(f,u,h){if(h[0]==="="){if(u==="select")throw new i(f,`The case ${h} is not valid with select`)}else if(u!=="select"){const d=u==="plural"?this.cardinalKeys:this.ordinalKeys;if(this.strictPluralKeys&&d.length>0&&!d.includes(h)){const p=`The ${u} case ${h} is not valid in this locale`;throw new i(f,p)}}}parseSelect({value:f},u,h,d){const p={type:d,arg:f,cases:[],ctx:h};d==="plural"||d==="selectordinal"?u=!0:this.strict&&(u=!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(u),ctx:t(_)});break}case"end":return p;default:throw new i(_,`Unexpected lexer token: ${_.type}`)}throw new i(null,"Unexpected message end")}parseArgToken(f,u){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");
> ${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)&&Go.test(l)?JSON.parse(`"${l}"`):Me(l)?l:us(l,this._locale,this._locales)(r,n==null?void 0:n.formats)}date(t,r){return $o(this._locales||this._locale,t,r)}number(t,r){return Or(this._locales||this._locale,t,r)}}function ys(e={}){return new _s(e)}const nt=ys();var xt,q,Vo,gs,He,jn,Wo,Lr,Yo,Xr,Mr,Nr,Jo,Pt={},Zo=[],vs=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,nr=Array.isArray;function Se(e,t){for(var r in t)e[r]=t[r];return e}function en(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?xt.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(a in e.defaultProps)i[a]===void 0&&(i[a]=e.defaultProps[a]);return Et(e,i,n,o,null)}function Et(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??++Vo,__i:-1,__u:0};return o==null&&q.vnode!=null&&q.vnode(a),a}function Qo(){return{current:null}}function me(e){return e.children}function pe(e,t){this.props=e,this.context=t}function it(e,t){if(t==null)return e.__?it(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"?it(e):null}function Xo(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 Xo(e)}}function kr(e){(!e.__d&&(e.__d=!0)&&He.push(e)&&!$t.__r++||jn!==q.debounceRendering)&&((jn=q.debounceRendering)||Wo)($t)}function $t(){var e,t,r,n,o,a,i,s;for(He.sort(Lr);e=He.shift();)e.__d&&(t=He.length,n=void 0,a=(o=(r=e).__v).__e,i=[],s=[],r.__P&&((n=Se({},o)).__v=o.__v+1,q.vnode&&q.vnode(n),tn(r.__P,n,o,r.__n,r.__P.namespaceURI,32&o.__u?[a]:null,i,a??it(o),!!(32&o.__u),s),n.__v=o.__v,n.__.__k[n.__i]=n,ra(i,n,s),n.__e!=a&&Xo(n)),He.length>t&&He.sort(Lr));$t.__r=0}function ea(e,t,r,n,o,a,i,s,l,c,f){var u,h,d,p,_,g,w=n&&n.__k||Zo,S=t.length;for(l=ws(r,t,w,l,S),u=0;u<S;u++)(d=r.__k[u])!=null&&(h=d.__i===-1?Pt:w[d.__i]||Pt,d.__i=u,g=tn(e,d,h,o,a,i,s,l,c,f),p=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&rn(h.ref,null,d),f.push(d.ref,d.__c||p,d)),_==null&&p!=null&&(_=p),4&d.__u||h.__k===d.__k?l=ta(d,l,e):typeof d.type=="function"&&g!==void 0?l=g:p&&(l=p.nextSibling),d.__u&=-7);return r.__e=_,l}function ws(e,t,r,n,o){var a,i,s,l,c,f=r.length,u=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?Et(null,i,null,null,null):nr(i)?Et(me,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?Et(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,s=null,(c=i.__i=bs(i,r,l,u))!==-1&&(u--,(s=r[c])&&(s.__u|=2)),s==null||s.__v===null?(c==-1&&h--,typeof i.type!="function"&&(i.__u|=4)):c!=l&&(c==l-1?h--:c==l+1?h++:(c>l?h--:h++,i.__u|=4))):e.__k[a]=null;if(u)for(a=0;a<f;a++)(s=r[a])!=null&&!(2&s.__u)&&(s.__e==n&&(n=it(s)),na(s,s));return n}function ta(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=ta(n[o],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=it(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Pe(e,t){return t=t||[],e==null||typeof e=="boolean"||(nr(e)?e.some(function(r){Pe(r,t)}):t.push(e)),t}function bs(e,t,r,n){var o,a,i=e.key,s=e.type,l=t[r];if(l===null||l&&i==l.key&&s===l.type&&!(2&l.__u))return r;if(n>(l!=null&&!(2&l.__u)?1:0))for(o=r-1,a=r+1;o>=0||a<t.length;){if(o>=0){if((l=t[o])&&!(2&l.__u)&&i==l.key&&s===l.type)return o;o--}if(a<t.length){if((l=t[a])&&!(2&l.__u)&&i==l.key&&s===l.type)return a;a++}}return-1}function qn(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||vs.test(t)?r:r+"px"}function Nt(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||qn(e.style,t,"");
* @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 Kt(){return Kt=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},Kt.apply(this,arguments)}var Ne;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ne||(Ne={}));const oo="popstate";function Ws(e){e===void 0&&(e={});function t(o,a){let{pathname:i="/",search:s="",hash:l=""}=Je(o.location.hash.substr(1));return Fr("",{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,c=l.indexOf("#");s=c===-1?l:l.slice(0,c)}return s+"#"+(typeof a=="string"?a:hn(a))}function n(o,a){Ys(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return Qs(t,r,n,e)}function ie(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ys(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Js(){return Math.random().toString(36).substr(2,8)}function ao(e){return{usr:e.state,key:e.key}}function Fr(e,t,r,n){return r===void 0&&(r=null),Kt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Je(t):t,{state:r,key:t&&t.key||n||Js()})}function hn(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 Je(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 Zs(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:hn(e);return ie(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}function Qs(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 c(){s=Ne.Pop,l&&l({action:s,location:h.location})}function f(d,p){s=Ne.Push;let _=Fr(h.location,d,p);r&&r(_,d);let g=ao(_),w=h.createHref(_);try{i.pushState(g,"",w)}catch{o.location.assign(w)}a&&l&&l({action:s,location:h.location})}function u(d,p){s=Ne.Replace;let _=Fr(h.location,d,p);r&&r(_,d);let g=ao(_),w=h.createHref(_);i.replaceState(g,"",w),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(oo,c),l=d,()=>{o.removeEventListener(oo,c),l=null}},createHref(d){return t(o,d)},encodeLocation(d){let p=Zs(typeof d=="string"?d:hn(d));return{pathname:p.pathname,search:p.search,hash:p.hash}},push:f,replace:u,go(d){return i.go(d)}};return h}var io;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(io||(io={}));function Xs(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?Je(t):t,o=Ia(n.pathname||"/",r);if(o==null)return null;let a=Na(e);el(a);let i=null;for(let s=0;i==null&&s<a.length;++s)i=ul(a[s],dl(o));return i}function Na(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 c=ze([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 "'+c+'".')),Na(a.children,t,f,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:sl(c,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 k
* 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 Sl(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const Cl=typeof Object.is=="function"?Object.is:Sl,{useState:Pl,useEffect:Al,useLayoutEffect:Rl,useDebugValue:Tl}=Ur;function xl(e,t,r){const n=t(),[{inst:o},a]=Pl({inst:{value:n,getSnapshot:t}});return Rl(()=>{o.value=n,o.getSnapshot=t,gr(o)&&a({inst:o})},[e,n,t]),Al(()=>(gr(o)&&a({inst:o}),e(()=>{gr(o)&&a({inst:o})})),[e]),Tl(n),n}function gr(e){const t=e.getSnapshot,r=e.value;try{const n=t();return!Cl(r,n)}catch{return!0}}function Ol(e,t,r){return t()}const Ll=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ml=!Ll,Nl=Ml?Ol:xl,Zd="useSyncExternalStore"in Ur?(e=>e.useSyncExternalStore)(Ur):Nl,Ua=De(null),Fa=De(null);const mn=De(null),sr=De(null),ft=De({outlet:null,matches:[]}),ja=De(null);function lr(){return se(sr)!=null}function _n(){return lr()||ie(!1),se(sr).location}function kl(){lr()||ie(!1);let{basename:e,navigator:t}=se(mn),{matches:r}=se(ft),{pathname:n}=_n(),o=JSON.stringify(ml(r).map(s=>s.pathnameBase)),a=Ue(!1);return Ye(()=>{a.current=!0}),ct(function(s,l){if(l===void 0&&(l={}),!a.current)return;if(typeof s=="number"){t.go(s);return}let c=_l(s,JSON.parse(o),n,l.relative==="path");e!=="/"&&(c.pathname=c.pathname==="/"?e:ze([e,c.pathname])),(l.replace?t.replace:t.push)(c,l.state,l)},[e,t,o,n])}function Qd(){let{matches:e}=se(ft),t=e[e.length-1];return t?t.params:{}}function Il(e,t){lr()||ie(!1);let{navigator:r}=se(mn),n=se(Fa),{matches:o}=se(ft),a=o[o.length-1],i=a?a.params:{},s=a?a.pathname:"/",l=a?a.pathnameBase:"/",c=a&&a.route,f=_n(),u;if(t){var h;let w=typeof t=="string"?Je(t):t;l==="/"||(h=w.pathname)!=null&&h.startsWith(l)||ie(!1),u=w}else u=f;let d=u.pathname||"/",p=l==="/"?d:d.slice(l.length)||"/",_=Xs(e,{pathname:p}),g=jl(_&&_.map(w=>Object.assign({},w,{params:Object.assign({},i,w.params),pathname:ze([l,r.encodeLocation?r.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:ze([l,r.encodeLocation?r.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n||void 0);return t&&g?J(sr.Provider,{value:{location:qr({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Ne.Pop}},g):g}function Dl(){let e=zl(),t=bl(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 Ul 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(ft.Provider,{value:this.props.routeContext},J(ja.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Fl(e){let{routeContext:t,match:r,children:n}=e,o=se(Ua);return o&&o.static&&o.staticContext&&r.route.errorElement&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),J(ft.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.rout
* 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 Kl(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 tf(e){let{basename:t,children:r,window:n}=e,o=Ue();o.current==null&&(o.current=Ws({window:n,v5Compat:!0}));let a=o.current,[i,s]=We({action:a.action,location:a.location});return Re(()=>a.listen(s),[a]),J(Gl,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:a})}var co;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(co||(co={}));var fo;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(fo||(fo={}));function rf(e){let t=Ue(Hr(e)),r=_n(),n=we(()=>Kl(r.search,t.current),[r.search]),o=kl(),a=ct((i,s)=>{const l=Hr(typeof i=="function"?i(n):i);o("?"+l,s)},[o,n]);return[n,a]}const Vl=Symbol(),yn=Symbol(),yt="a",qa="f",ho="p",Ba="c",Ha="t",vr="n",wr="g",gn="h",Ct="w",vn="o",wn="k";let Wl=(e,t)=>new Proxy(e,t);const zr=Object.getPrototypeOf,$r=new WeakMap,za=e=>e&&($r.has(e)?$r.get(e):zr(e)===Object.prototype||zr(e)===Array.prototype),Wt=e=>typeof e=="object"&&e!==null,Yl=e=>Object.values(Object.getOwnPropertyDescriptors(e)).some(t=>!t.configurable&&!t.writable),Jl=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(zr(e),t)},Zl=(e,t)=>{const r={[qa]:t};let n=!1;const o=(s,l)=>{if(!n){let c=r[yt].get(e);if(c||(c={},r[yt].set(e,c)),s===Ct)c[Ct]=!0;else{let f=c[s];f||(f=new Set,c[s]=f),f.add(l)}}},a=()=>{n=!0,r[yt].delete(e)},i={get(s,l){return l===yn?e:(o(wn,l),$a(Reflect.get(s,l),r[yt],r[Ba],r[Ha]))},has(s,l){return l===Vl?(a(),!0):(o(gn,l),Reflect.has(s,l))},getOwnPropertyDescriptor(s,l){return o(vn,l),Reflect.getOwnPropertyDescriptor(s,l)},ownKeys(s){return o(Ct),Reflect.ownKeys(s)}};return t&&(i.set=i.deleteProperty=()=>!1),[i,r]},bn=e=>e[yn]||e,$a=(e,t,r,n)=>{if(!za(e))return e;let o=n&&n.get(e);if(!o){const l=bn(e);Yl(l)?o=[l,Jl(l)]:o=[l],n==null||n.set(e,o)}const[a,i]=o;let s=r&&r.get(a);return(!s||s[1][qa]!==!!i)&&(s=Zl(a,!!i),s[1][ho]=Wl(i||a,s[0]),r&&r.set(a,s)),s[1][yt]=t,s[1][Ba]=r,s[1][Ha]=n,s[1][ho]},Ql=(e,t)=>{const r=Reflect.ownKeys(e),n=Reflect.ownKeys(t);return r.length!==n.length||r.some((o,a)=>o!==n[a])},Ga=(e,t,r,n,o=Object.is)=>{if(o(e,t))return!1;if(!Wt(e)||!Wt(t))return!0;const a=r.get(bn(e));if(!a)return!0;if(n){const s=n.get(e);if(s&&s[vr]===t)return s[wr];n.set(e,{[vr]:t,[wr]:!1})}let i=null;try{for(const s of a[gn]||[])if(i=Reflect.has(e,s)!==Reflect.has(t,s),i)return i;if(a[Ct]===!0){if(i=Ql(e,t),i)return i}else for(const s of a[vn]||[]){const l=!!Reflect.getOwnPropertyDescriptor(e,s),c=!!Reflect.getOwnPropertyDescriptor(t,s);if(i=l!==c,i)return i}for(const s of a[wn]||[])if(i=Ga(e[s],t[s],r,n,o),i)return i;return i===null&&(i=!0),i}finally{n&&n.set(e,{[vr]:t,[wr]:i})}};const Xl=e=>za(e)&&e[yn]||null,po=(e,t=!0)=>{$r.set(e,t)},eu=(e,t,r)=>{const n=[],o=new WeakSet,a=(i,s)=>{var l,c,f;if(o.has(i))return;Wt(i)&&o.add(i);const u=Wt(i)&&t.get(bn(i));if(u){if((l=u[gn])===null||l===void 0||l.forEach(h=>{const d=`:has(${String(h)})`;n.push(s?[...s,d]:[d])}),u[Ct]===!0){const h=":ownKeys";n.push(s?[...s,h]:[h])}else(c=u[vn])===null||c===void 0||c.forEach(h=>{const d=`:hasOwn(${String(h)})`;n.push(s?[...s,d]:[d])});(f=u[wn])===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 Yt={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_WEBSITE:"https://phanpy.social",PROD:!0,SSR:!1,VITE_APP_ENV:"production"}
//# sourceMappingURL=useTitle-jLgT0T3g.js.map