39 lines
224 KiB
JavaScript
39 lines
224 KiB
JavaScript
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./compose-T_WseKac.js","./fuse-QSdEypyG.js"])))=>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}});var it=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Nd(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 ko={},Do={};(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"]])})(Do);(function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unraw=e.errorMessages=e.ErrorType=void 0;const t=Do;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,_,v){const y=r(d);if(Number.isNaN(y)||v!==void 0&&v!==d.length)throw new SyntaxError(t.errorMessages.get(_));return y}function o(d){const _=n(d,t.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(_)}function a(d,_){const v=n(d,t.ErrorType.MalformedUnicode,4);if(_!==void 0){const y=n(_,t.ErrorType.MalformedUnicode,4);return String.fromCharCode(v,y)}return String.fromCharCode(v)}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 _=d.slice(1,-1),v=n(_,t.ErrorType.MalformedUnicode);try{return String.fromCodePoint(v)}catch(y){throw y instanceof RangeError?new SyntaxError(t.errorMessages.get(t.ErrorType.CodePointLimit)):y}}function l(d,_=!1){if(_)throw new SyntaxError(t.errorMessages.get(t.ErrorType.OctalDeprecation));const v=parseInt(d,8);return String.fromCharCode(v)}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,_=!1){return d.replace(u,function(v,y,g,E,T,j,G,K,W){if(y!==void 0)return"\\";if(g!==void 0)return o(g);if(E!==void 0)return s(E);if(T!==void 0)return a(T,j);if(G!==void 0)return a(G);if(K==="0")return"\0";if(K!==void 0)return l(K,!_);if(W!==void 0)return f(W);throw new SyntaxError(t.errorMessages.get(t.ErrorType.EndOfString))})}e.unraw=h,e.default=h})(ko);var Ct={},Uo={},Zr={exports:{}},Id=Zr.exports;(function(e){(function(t,r){e.exports?e.exports=r():t.moo=r()})(it,function(){"use strict";var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=typeof new RegExp().sticky=="boolean";function o(p){return p&&r.call(p)==="[object RegExp]"}function a(p){return p&&typeof p=="object"&&!o(p)&&!Array.isArray(p)}function i(p){return p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function s(p){var b=new RegExp("|"+p);return b.exec("").length-1}function l(p){return"("+p+")"}function c(p){if(!p.length)return"(?!)";var b=p.map(function(S){return"(?:"+S+")"}).join("|");return"(?:"+b+")"}function f(p){if(typeof p=="string")return"(?:"+i(p)+")";if(o(p)){if(p.ignoreCase)throw new Error("RegExp /i flag not allowed");if(p.global)throw new Error("RegExp /g flag is implied");if(p.sticky)throw new Error("RegExp /y flag is implied");if(p.multiline)throw new Error("RegExp /m flag is implied");return p.source}else throw new Error("Not a pattern: "+p)}function u(p,b){return p.length>b?p:Array(b-p.length+1).join(" ")+p}function h(p,b){for(var S=p.length,C=0;;){var A=p.lastIndexOf(`
|
|||
|
`,S-1);if(A===-1||(C++,S=A,C===b)||S===0)break}var O=C<b?0:S+1;return p.substring(O).split(`
|
|||
|
`)}function d(p){for(var b=Object.getOwnPropertyNames(p),S=[],C=0;C<b.length;C++){var A=b[C],O=p[A],P=[].concat(O);if(A==="include"){for(var k=0;k<P.length;k++)S.push({include:P[k]});continue}var D=[];P.forEach(function(I){a(I)?(D.length&&S.push(v(A,D)),S.push(v(A,I)),D=[]):D.push(I)}),D.length&&S.push(v(A,D))}return S}function _(p){for(var b=[],S=0;S<p.length;S++){var C=p[S];if(C.include){for(var A=[].concat(C.include),O=0;O<A.length;O++)b.push({include:A[O]});continue}if(!C.type)throw new Error("Rule has no type: "+JSON.stringify(C));b.push(v(C.type,C))}return b}function v(p,b){if(a(b)||(b={match:b}),b.include)throw new Error("Matching rules cannot also include states");var S={defaultType:p,lineBreaks:!!b.error||!!b.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var C in b)t.call(b,C)&&(S[C]=b[C]);if(typeof S.type=="string"&&p!==S.type)throw new Error("Type transform cannot be a string (type '"+S.type+"' for token '"+p+"')");var A=S.match;return S.match=Array.isArray(A)?A:A?[A]:[],S.match.sort(function(O,P){return o(O)&&o(P)?0:o(P)?-1:o(O)?1:P.length-O.length}),S}function y(p){return Array.isArray(p)?_(p):d(p)}var g=v("error",{lineBreaks:!0,shouldThrow:!0});function E(p,b){for(var S=null,C=Object.create(null),A=!0,O=null,P=[],k=[],D=0;D<p.length;D++)p[D].fallback&&(A=!1);for(var D=0;D<p.length;D++){var I=p[D];if(I.include)throw new Error("Inheritance is not allowed in stateless lexers");if(I.error||I.fallback){if(S)throw!I.fallback==!S.fallback?new Error("Multiple "+(I.fallback?"fallback":"error")+" rules not allowed (for token '"+I.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+I.defaultType+"')");S=I}var $=I.match.slice();if(A)for(;$.length&&typeof $[0]=="string"&&$[0].length===1;){var Q=$.shift();C[Q.charCodeAt(0)]=I}if(I.pop||I.push||I.next){if(!b)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+I.defaultType+"')");if(I.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+I.defaultType+"')")}if($.length!==0){A=!1,P.push(I);for(var ue=0;ue<$.length;ue++){var pe=$[ue];if(o(pe)){if(O===null)O=pe.unicode;else if(O!==pe.unicode&&I.fallback===!1)throw new Error("If one rule is /u then all must be")}}var ye=c($.map(f)),ce=new RegExp(ye);if(ce.test(""))throw new Error("RegExp matches empty string: "+ce);var Ee=s(ye);if(Ee>0)throw new Error("RegExp has capture groups: "+ce+`
|
|||
|
Use (?: … ) instead`);if(!I.lineBreaks&&ce.test(`
|
|||
|
`))throw new Error("Rule should declare lineBreaks: "+ce);k.push(l(ye))}}var Te=S&&S.fallback,Fe=n&&!Te?"ym":"gm",Ye=n||Te?"":"|";O===!0&&(Fe+="u");var dr=new RegExp(c(k)+Ye,Fe);return{regexp:dr,groups:P,fast:C,error:S||g}}function T(p){var b=E(y(p));return new W({start:b},"start")}function j(p,b,S){var C=p&&(p.push||p.next);if(C&&!S[C])throw new Error("Missing state '"+C+"' (in token '"+p.defaultType+"' of state '"+b+"')");if(p&&p.pop&&+p.pop!=1)throw new Error("pop must be 1 (in token '"+p.defaultType+"' of state '"+b+"')")}function G(p,b){var S=p.$all?y(p.$all):[];delete p.$all;var C=Object.getOwnPropertyNames(p);b||(b=C[0]);for(var A=Object.create(null),O=0;O<C.length;O++){var P=C[O];A[P]=y(p[P]).concat(S)}for(var O=0;O<C.length;O++)for(var P=C[O],k=A[P],D=Object.create(null),I=0;I<k.length;I++){var $=k[I];if($.include){var Q=[I,1];if($.include!==P&&!D[$.include]){D[$.include]=!0;var ue=A[$.include];if(!ue)throw new Error("Cannot include nonexistent state '"+$.include+"' (in state '"+P+"')");for(var pe=0;pe<ue.length;pe++){var ye=ue[pe];k.indexOf(ye)===-1&&Q.push(ye)}}k.splice.apply(k,Q),I--}}for(var ce=Object.create(null),O=0;O<C.length;O++){var P=C[O];ce[P]=E(A[P],!0)}for(var O=0;O<C.length;O++){for(var Ee=C[O],Te=ce[Ee],Fe=Te.groups,I=0;I<Fe.length;I++)j(Fe[I],Ee,ce);for(var Ye=Object.getOwnPropertyNames(Te.fast),I=0;I<Ye.length;I++)j(Te.fast[Ye[I]],Ee,ce)}return new W(ce,b)}function K(p){for(var b=typeof Map<"u",S=b?new Map:Object.create(null),C=Object.getOwnPropertyNames(p),A=0;A<C.length;A++){var O=C[A],P=p[O],k=Array.isArray(P)?P:[P];k.forEach(function(D){if(typeof D!="string")throw new Error("keyword must be string (in keyword '"+O+"')");b?S.set(D,O):S[D]=O})}return function(D){return b?S.get(D):S[D]}}var W=function(p,b){this.startState=b,this.states=p,this.buffer="",this.stack=[],this.reset()};W.prototype.reset=function(p,b){return this.buffer=p||"",this.index=0,this.line=b?b.line:1,this.col=b?b.col:1,this.queuedToken=b?b.queuedToken:null,this.queuedText=b?b.queuedText:"",this.queuedThrow=b?b.queuedThrow:null,this.setState(b?b.state:this.startState),this.stack=b&&b.stack?b.stack.slice():[],this},W.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}},W.prototype.setState=function(p){if(!(!p||this.state===p)){this.state=p;var b=this.states[p];this.groups=b.groups,this.error=b.error,this.re=b.regexp,this.fast=b.fast}},W.prototype.popState=function(){this.setState(this.stack.pop())},W.prototype.pushState=function(p){this.stack.push(this.state),this.setState(p)};var se=n?function(p,b){return p.exec(b)}:function(p,b){var S=p.exec(b);return S[0].length===0?null:S};W.prototype._getGroup=function(p){for(var b=this.groups.length,S=0;S<b;S++)if(p[S+1]!==void 0)return this.groups[S];throw new Error("Cannot find token type for matched text")};function Z(){return this.value}if(W.prototype.next=function(){var p=this.index;if(this.queuedGroup){var b=this._token(this.queuedGroup,this.queuedText,p);return this.queuedGroup=null,this.queuedText="",b}var S=this.buffer;if(p!==S.length){var P=this.fast[S.charCodeAt(p)];if(P)return this._token(P,S.charAt(p),p);var C=this.re;C.lastIndex=p;var A=se(C,S),O=this.error;if(A==null)return this._token(O,S.slice(p,S.length),p);var P=this._getGroup(A),k=A[0];return O.fallback&&A.index!==p?(this.queuedGroup=P,this.queuedText=k,this._token(O,S.slice(p,A.index),p)):this._token(P,k,p)}},W.prototype._token=function(p,b,S){var C=0;if(p.lineBreaks){var A=/\n/g,O=1;if(b===`
|
|||
|
`)C=1;else for(;A.exec(b);)C++,O=A.lastIndex}var P={type:typeof p.type=="function"&&p.type(b)||p.defaultType,value:typeof p.value=="function"?p.value(b):b,text:b,toString:Z,offset:S,lineBreaks:C,line:this.line,col:this.col},k=b.length;if(this.index+=k,this.line+=C,C!==0?this.col=k-O+1:this.col+=k,p.shouldThrow){var D=new Error(this.formatError(P,"invalid syntax"));throw D}return p.pop?this.popState():p.push?this.pushState(p.push):p.next&&this.setState(p.next),P},typeof Symbol<"u"&&Symbol.iterator){var X=function(p){this.lexer=p};X.prototype.next=function(){var p=this.lexer.next();return{value:p,done:!p}},X.prototype[Symbol.iterator]=function(){return this},W.prototype[Symbol.iterator]=function(){return new X(this)}}return W.prototype.formatError=function(p,b){if(p==null)var S=this.buffer.slice(this.index),p={text:S,offset:this.index,lineBreaks:S.indexOf(`
|
|||
|
`)===-1?0:1,line:this.line,col:this.col};var C=2,A=Math.max(p.line-C,1),O=p.line+C,P=String(O).length,k=h(this.buffer,this.line-p.line+C+1).slice(0,5),D=[];D.push(b+" at line "+p.line+" col "+p.col+":"),D.push("");for(var I=0;I<k.length;I++){var $=k[I],Q=A+I;D.push(u(String(Q),P)+" "+$),Q===p.line&&D.push(u("",P+p.col+1)+"^")}return D.join(`
|
|||
|
`)},W.prototype.clone=function(){return new W(this.states,this.state)},W.prototype.has=function(p){return!0},{compile:T,states:G,error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:K}})})(Zr);var Yi=Zr.exports;(function(e){"use strict";var t=it&&it.__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(Yi);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)})(Uo);Object.defineProperty(Ct,"__esModule",{value:!0});var Ji=Ct.parse=Xi=Ct.ParseError=void 0;const Fo=Uo,Nt=e=>({offset:e.offset,line:e.line,col:e.col,text:e.text,lineBreaks:e.lineBreaks}),hr=e=>e==="plural"||e==="select"||e==="selectordinal";function Zi(e,t){let r="",n="";for(const a of t){const i=a.ctx.text;switch(n+=i,a.type){case"content":r+=a.value;break;case"argument":case"function":case"octothorpe":r+=i;break;default:throw new ae(e,`Unsupported part in strict mode function arg style: ${i}`)}}return[{type:"content",value:r.trim(),ctx:Object.assign({},t[0].ctx,{text:n})}]}const Qi=["number","date","time","spellout","ordinal","duration"],Ln=["zero","one","two","few","many","other"];class ae extends Error{constructor(t,r){super(Fo.lexer.formatError(t,r))}}var Xi=Ct.ParseError=ae;class es{constructor(t,r){var n,o,a,i;this.lexer=Fo.lexer.reset(t),this.cardinalKeys=(n=r==null?void 0:r.cardinal)!==null&&n!==void 0?n:Ln,this.ordinalKeys=(o=r==null?void 0:r.ordinal)!==null&&o!==void 0?o:Ln,this.strict=(a=r==null?void 0:r.strict)!==null&&a!==void 0?a:!1,this.strictPluralKeys=(i=r==null?void 0:r.strictPluralKeys)!==null&&i!==void 0?i:!0}parse(){return this.parseBody(!1,!0)}checkSelectKey(t,r,n){if(n[0]==="="){if(r==="select")throw new ae(t,`The case ${n} is not valid with select`)}else if(r!=="select"){const o=r==="plural"?this.cardinalKeys:this.ordinalKeys;if(this.strictPluralKeys&&o.length>0&&!o.includes(n)){const a=`The ${r} case ${n} is not valid in this locale`;throw new ae(t,a)}}}parseSelect({value:t},r,n,o){const a={type:o,arg:t,cases:[],ctx:n};o==="plural"||o==="selectordinal"?r=!0:this.strict&&(r=!1);for(const i of this.lexer)switch(i.type){case"offset":if(o==="select")throw new ae(i,"Unexpected plural offset for select");if(a.cases.length>0)throw new ae(i,"Plural offset must be set before cases");a.pluralOffset=Number(i.value),n.text+=i.text,n.lineBreaks+=i.lineBreaks;break;case"case":{this.checkSelectKey(i,o,i.value),a.cases.push({key:i.value,tokens:this.parseBody(r),ctx:Nt(i)});break}case"end":return a;default:throw new ae(i,`Unexpected lexer token: ${i.type}`)}throw new ae(null,"Unexpected message end")}parseArgToken(t,r){const n=Nt(t),o=this.lexer.next();if(!o)throw new ae(null,"Unexpected message end");if(n.text+=o.text,n.lineBreaks+=o.lineBreaks,this.strict&&(o.type==="func-simple"||o.type==="func-args")&&!Qi.includes(o.value)){const a=`Invalid strict mode function arg type: ${o.value}`;throw new ae(t,a)}switch(o.type){case"end":return{type:"argument",arg:t.value,ctx:n};case"func-simple":{const a=this.lexer.next();if(!a)throw new ae(null,"Unexpected message end");if(a.type!=="end")throw new ae(a,`Un
|
|||
|
* @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 Gt(){return Gt=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},Gt.apply(this,arguments)}var Me;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Me||(Me={}));const Xn="popstate";function $s(e){e===void 0&&(e={});function t(o,a){let{pathname:i="/",search:s="",hash:l=""}=Ve(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,c=l.indexOf("#");s=c===-1?l:l.slice(0,c)}return s+"#"+(typeof a=="string"?a:fn(a))}function n(o,a){Gs(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return Vs(t,r,n,e)}function ie(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Gs(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Ks(){return Math.random().toString(36).substr(2,8)}function eo(e){return{usr:e.state,key:e.key}}function Ur(e,t,r,n){return r===void 0&&(r=null),Gt({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ve(t):t,{state:r,key:t&&t.key||n||Ks()})}function fn(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 Ve(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 Ws(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:fn(e);return ie(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}function Vs(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:a=!1}=n,i=o.history,s=Me.Pop,l=null;function c(){s=Me.Pop,l&&l({action:s,location:h.location})}function f(d,_){s=Me.Push;let v=Ur(h.location,d,_);r&&r(v,d);let y=eo(v),g=h.createHref(v);try{i.pushState(y,"",g)}catch{o.location.assign(g)}a&&l&&l({action:s,location:h.location})}function u(d,_){s=Me.Replace;let v=Ur(h.location,d,_);r&&r(v,d);let y=eo(v),g=h.createHref(v);i.replaceState(y,"",g),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(Xn,c),l=d,()=>{o.removeEventListener(Xn,c),l=null}},createHref(d){return t(o,d)},encodeLocation(d){let _=Ws(typeof d=="string"?d:fn(d));return{pathname:_.pathname,search:_.search,hash:_.hash}},push:f,replace:u,go(d){return i.go(d)}};return h}var to;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(to||(to={}));function Ys(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?Ve(t):t,o=xa(n.pathname||"/",r);if(o==null)return null;let a=Ta(e);Js(a);let i=null;for(let s=0;i==null&&s<a.length;++s)i=al(a[s],sl(o));return i}function Ta(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=He([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+'".')),Ta(a.children,t,f,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:nl(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 O
|
|||
|
* 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 jr(){return jr=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},jr.apply(this,arguments)}function vl(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const wl=typeof Object.is=="function"?Object.is:vl,{useState:bl,useEffect:El,useLayoutEffect:Sl,useDebugValue:Cl}=Dr;function Al(e,t,r){const n=t(),[{inst:o},a]=bl({inst:{value:n,getSnapshot:t}});return Sl(()=>{o.value=n,o.getSnapshot=t,yr(o)&&a({inst:o})},[e,n,t]),El(()=>(yr(o)&&a({inst:o}),e(()=>{yr(o)&&a({inst:o})})),[e]),Cl(n),n}function yr(e){const t=e.getSnapshot,r=e.value;try{const n=t();return!wl(r,n)}catch{return!0}}function Pl(e,t,r){return t()}const Rl=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Tl=!Rl,Ol=Tl?Pl:Al,Hd="useSyncExternalStore"in Dr?(e=>e.useSyncExternalStore)(Dr):Ol,Ma=ke(null),Na=ke(null);const pn=ke(null),sr=ke(null),ht=ke({outlet:null,matches:[]}),Ia=ke(null);function lr(){return le(sr)!=null}function _n(){return lr()||ie(!1),le(sr).location}function xl(){lr()||ie(!1);let{basename:e,navigator:t}=le(pn),{matches:r}=le(ht),{pathname:n}=_n(),o=JSON.stringify(dl(r).map(s=>s.pathnameBase)),a=De(!1);return We(()=>{a.current=!0}),dt(function(s,l){if(l===void 0&&(l={}),!a.current)return;if(typeof s=="number"){t.go(s);return}let c=fl(s,JSON.parse(o),n,l.relative==="path");e!=="/"&&(c.pathname=c.pathname==="/"?e:He([e,c.pathname])),(l.replace?t.replace:t.push)(c,l.state,l)},[e,t,o,n])}function qd(){let{matches:e}=le(ht),t=e[e.length-1];return t?t.params:{}}function Ll(e,t){lr()||ie(!1);let{navigator:r}=le(pn),n=le(Na),{matches:o}=le(ht),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 g=typeof t=="string"?Ve(t):t;l==="/"||(h=g.pathname)!=null&&h.startsWith(l)||ie(!1),u=g}else u=f;let d=u.pathname||"/",_=l==="/"?d:d.slice(l.length)||"/",v=Ys(e,{pathname:_}),y=kl(v&&v.map(g=>Object.assign({},g,{params:Object.assign({},i,g.params),pathname:He([l,r.encodeLocation?r.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:He([l,r.encodeLocation?r.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,n||void 0);return t&&y?Y(sr.Provider,{value:{location:jr({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Me.Pop}},y):y}function Ml(){let e=jl(),t=yl(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 Y(me,null,Y("h2",null,"Unhandled Thrown Error!"),Y("h3",{style:{fontStyle:"italic"}},t),r?Y("pre",{style:o},r):null,Y("p",null,"💿 Hey developer 👋"),Y("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",Y("code",{style:a},"errorElement")," props on ",Y("code",{style:a},"<Route>")))}class Nl extends _e{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?Y(ht.Provider,{value:this.props.routeContext},Y(Ia.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Il(e){let{routeContext:t,match:r,children:n}=e,o=le(Ma);return o&&o.static&&o.staticContext&&r.route.errorElement&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),Y(ht.Provider,{value:t},n)}function kl(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 ql(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 Gd(e){let{basename:t,children:r,window:n}=e,o=De();o.current==null&&(o.current=$s({window:n,v5Compat:!0}));let a=o.current,[i,s]=Ke({action:a.action,location:a.location});return Re(()=>a.listen(s),[a]),Y(Hl,{basename:t,children:r,location:i.location,navigationType:i.action,navigator:a})}var ao;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(ao||(ao={}));var io;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(io||(io={}));function Kd(e){let t=De(Hr(e)),r=_n(),n=be(()=>ql(r.search,t.current),[r.search]),o=xl(),a=dt((i,s)=>{const l=Hr(typeof i=="function"?i(n):i);o("?"+l,s)},[o,n]);return[n,a]}const zl=Symbol(),mn=Symbol(),yt="a",ka="f",so="p",Da="c",Ua="t",gr="n",vr="g",yn="h",St="w",gn="o",vn="k";let $l=(e,t)=>new Proxy(e,t);const qr=Object.getPrototypeOf,zr=new WeakMap,Fa=e=>e&&(zr.has(e)?zr.get(e):qr(e)===Object.prototype||qr(e)===Array.prototype),Wt=e=>typeof e=="object"&&e!==null,Gl=e=>Object.values(Object.getOwnPropertyDescriptors(e)).some(t=>!t.configurable&&!t.writable),Kl=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(qr(e),t)},Wl=(e,t)=>{const r={[ka]: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===St)c[St]=!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===mn?e:(o(vn,l),ja(Reflect.get(s,l),r[yt],r[Da],r[Ua]))},has(s,l){return l===zl?(a(),!0):(o(yn,l),Reflect.has(s,l))},getOwnPropertyDescriptor(s,l){return o(gn,l),Reflect.getOwnPropertyDescriptor(s,l)},ownKeys(s){return o(St),Reflect.ownKeys(s)}};return t&&(i.set=i.deleteProperty=()=>!1),[i,r]},wn=e=>e[mn]||e,ja=(e,t,r,n)=>{if(!Fa(e))return e;let o=n&&n.get(e);if(!o){const l=wn(e);Gl(l)?o=[l,Kl(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=Wl(a,!!i),s[1][so]=$l(i||a,s[0]),r&&r.set(a,s)),s[1][yt]=t,s[1][Da]=r,s[1][Ua]=n,s[1][so]},Vl=(e,t)=>{const r=Reflect.ownKeys(e),n=Reflect.ownKeys(t);return r.length!==n.length||r.some((o,a)=>o!==n[a])},Ba=(e,t,r,n,o=Object.is)=>{if(o(e,t))return!1;if(!Wt(e)||!Wt(t))return!0;const a=r.get(wn(e));if(!a)return!0;if(n){const s=n.get(e);if(s&&s[gr]===t)return s[vr];n.set(e,{[gr]:t,[vr]:!1})}let i=null;try{for(const s of a[yn]||[])if(i=Reflect.has(e,s)!==Reflect.has(t,s),i)return i;if(a[St]===!0){if(i=Vl(e,t),i)return i}else for(const s of a[gn]||[]){const l=!!Reflect.getOwnPropertyDescriptor(e,s),c=!!Reflect.getOwnPropertyDescriptor(t,s);if(i=l!==c,i)return i}for(const s of a[vn]||[])if(i=Ba(e[s],t[s],r,n,o),i)return i;return i===null&&(i=!0),i}finally{n&&n.set(e,{[gr]:t,[vr]:i})}};const Yl=e=>Fa(e)&&e[mn]||null,lo=(e,t=!0)=>{zr.set(e,t)},Jl=(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(wn(i));if(u){if((l=u[yn])===null||l===void 0||l.forEach(h=>{const d=`:has(${String(h)})`;n.push(s?[...s,d]:[d])}),u[St]===!0){const h=":ownKeys";n.push(s?[...s,h]:[h])}else(c=u[gn])===null||c===void 0||c.forEach(h=>{const d=`:hasOwn(${String(h)})`;n.push(s?[...s,d]:[d])});(f=u[vn])===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 Vt={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-i_dVJKRH.js.map
|