git-truck 0.0.0-ece341d → 0.0.0-ee1e2bc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +104 -96
- package/build/index.js +201 -144
- package/build/metafile.js.json +1 -1
- package/build/metafile.server.json +1 -1
- package/build/version.txt +1 -1
- package/cli.js +74 -74
- package/package.json +151 -140
- package/public/build/_assets/tailwind-MNPH7PLU.css +1 -0
- package/public/build/_shared/chunk-3UNTI63Y.js +1 -0
- package/public/build/_shared/chunk-BL2DGNWE.js +1 -0
- package/public/build/_shared/{chunk-AL2GFMRM.js → chunk-C4FAJW7L.js} +1 -1
- package/public/build/_shared/chunk-DPCIHQKL.js +264 -0
- package/public/build/_shared/chunk-Q3IECNXJ.js +1 -0
- package/public/build/entry.client-LRRCQTX2.js +1 -0
- package/public/build/manifest-3121C32E.js +1 -0
- package/public/build/root-Z62LLOJM.js +1 -0
- package/public/build/routes/$repo.$-YBFIMKHZ.js +35 -0
- package/public/build/routes/_index-AFD6RDHF.js +1 -0
- package/public/build/routes/authordist-LRF2J26H.js +1 -0
- package/public/build/routes/commitcount-D7WWQAYM.js +1 -0
- package/public/build/routes/commits-GGDWDC7W.js +1 -0
- package/public/build/routes/progress-SNLO56GK.js +1 -0
- package/public/build/_assets/tailwind-HZOHM7R7.css +0 -1
- package/public/build/_shared/chunk-7ZRMUBOE.js +0 -1
- package/public/build/_shared/chunk-MFUESDJJ.js +0 -1
- package/public/build/_shared/chunk-QKOGMPSY.js +0 -264
- package/public/build/entry.client-53JI5JAC.js +0 -1
- package/public/build/manifest-3CC98547.js +0 -1
- package/public/build/root-C7SUUCBF.js +0 -1
- package/public/build/routes/$repo.$-7NVZ73B2.js +0 -82
- package/public/build/routes/_index-62BORZC7.js +0 -1
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
var Do=Object.create;var vn=Object.defineProperty;var _o=Object.getOwnPropertyDescriptor;var Po=Object.getOwnPropertyNames;var Lo=Object.getPrototypeOf,Co=Object.prototype.hasOwnProperty;var Ut=(e,t)=>()=>(e&&(t=e(e=0)),t);var Tt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var No=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Po(t))!Co.call(e,a)&&a!==r&&vn(e,a,{get:()=>t[a],enumerable:!(n=_o(t,a))||n.enumerable});return e};var je=(e,t,r)=>(r=e!=null?Do(Lo(e)):{},No(t||!e||!e.__esModule?vn(r,"default",{value:e,enumerable:!0}):r,e));var Cn=Tt(U=>{"use strict";var dt=Symbol.for("react.element"),Mo=Symbol.for("react.portal"),Ao=Symbol.for("react.fragment"),Oo=Symbol.for("react.strict_mode"),Fo=Symbol.for("react.profiler"),Uo=Symbol.for("react.provider"),To=Symbol.for("react.context"),jo=Symbol.for("react.forward_ref"),Io=Symbol.for("react.suspense"),ko=Symbol.for("react.memo"),Ho=Symbol.for("react.lazy"),Rn=Symbol.iterator;function Bo(e){return e===null||typeof e!="object"?null:(e=Rn&&e[Rn]||e["@@iterator"],typeof e=="function"?e:null)}var bn={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Sn=Object.assign,xn={};function Ye(e,t,r){this.props=e,this.context=t,this.refs=xn,this.updater=r||bn}Ye.prototype.isReactComponent={};Ye.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ye.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Dn(){}Dn.prototype=Ye.prototype;function Rr(e,t,r){this.props=e,this.context=t,this.refs=xn,this.updater=r||bn}var wr=Rr.prototype=new Dn;wr.constructor=Rr;Sn(wr,Ye.prototype);wr.isPureReactComponent=!0;var wn=Array.isArray,_n=Object.prototype.hasOwnProperty,Er={current:null},Pn={key:!0,ref:!0,__self:!0,__source:!0};function Ln(e,t,r){var n,a={},o=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)_n.call(t,n)&&!Pn.hasOwnProperty(n)&&(a[n]=t[n]);var l=arguments.length-2;if(l===1)a.children=r;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];a.children=s}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)a[n]===void 0&&(a[n]=l[n]);return{$$typeof:dt,type:e,key:o,ref:i,props:a,_owner:Er.current}}function $o(e,t){return{$$typeof:dt,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function br(e){return typeof e=="object"&&e!==null&&e.$$typeof===dt}function zo(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var En=/\/+/g;function vr(e,t){return typeof e=="object"&&e!==null&&e.key!=null?zo(""+e.key):t.toString(36)}function It(e,t,r,n,a){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case dt:case Mo:i=!0}}if(i)return i=e,a=a(i),e=n===""?"."+vr(i,0):n,wn(a)?(r="",e!=null&&(r=e.replace(En,"$&/")+"/"),It(a,t,r,"",function(u){return u})):a!=null&&(br(a)&&(a=$o(a,r+(!a.key||i&&i.key===a.key?"":(""+a.key).replace(En,"$&/")+"/")+e)),t.push(a)),1;if(i=0,n=n===""?".":n+":",wn(e))for(var l=0;l<e.length;l++){o=e[l];var s=n+vr(o,l);i+=It(o,t,r,s,a)}else if(s=Bo(e),typeof s=="function")for(e=s.call(e),l=0;!(o=e.next()).done;)o=o.value,s=n+vr(o,l++),i+=It(o,t,r,s,a);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function jt(e,t,r){if(e==null)return e;var n=[],a=0;return It(e,n,"","",function(o){return t.call(r,o,a++)}),n}function Vo(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ne={current:null},kt={transition:null},Wo={ReactCurrentDispatcher:ne,ReactCurrentBatchConfig:kt,ReactCurrentOwner:Er};U.Children={map:jt,forEach:function(e,t,r){jt(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return jt(e,function(){t++}),t},toArray:function(e){return jt(e,function(t){return t})||[]},only:function(e){if(!br(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};U.Component=Ye;U.Fragment=Ao;U.Profiler=Fo;U.PureComponent=Rr;U.StrictMode=Oo;U.Suspense=Io;U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wo;U.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Sn({},e.props),a=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=Er.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)_n.call(t,s)&&!Pn.hasOwnProperty(s)&&(n[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];n.children=l}return{$$typeof:dt,type:e.type,key:a,ref:o,props:n,_owner:i}};U.createContext=function(e){return e={$$typeof:To,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Uo,_context:e},e.Consumer=e};U.createElement=Ln;U.createFactory=function(e){var t=Ln.bind(null,e);return t.type=e,t};U.createRef=function(){return{current:null}};U.forwardRef=function(e){return{$$typeof:jo,render:e}};U.isValidElement=br;U.lazy=function(e){return{$$typeof:Ho,_payload:{_status:-1,_result:e},_init:Vo}};U.memo=function(e,t){return{$$typeof:ko,type:e,compare:t===void 0?null:t}};U.startTransition=function(e){var t=kt.transition;kt.transition={};try{e()}finally{kt.transition=t}};U.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};U.useCallback=function(e,t){return ne.current.useCallback(e,t)};U.useContext=function(e){return ne.current.useContext(e)};U.useDebugValue=function(){};U.useDeferredValue=function(e){return ne.current.useDeferredValue(e)};U.useEffect=function(e,t){return ne.current.useEffect(e,t)};U.useId=function(){return ne.current.useId()};U.useImperativeHandle=function(e,t,r){return ne.current.useImperativeHandle(e,t,r)};U.useInsertionEffect=function(e,t){return ne.current.useInsertionEffect(e,t)};U.useLayoutEffect=function(e,t){return ne.current.useLayoutEffect(e,t)};U.useMemo=function(e,t){return ne.current.useMemo(e,t)};U.useReducer=function(e,t,r){return ne.current.useReducer(e,t,r)};U.useRef=function(e){return ne.current.useRef(e)};U.useState=function(e){return ne.current.useState(e)};U.useSyncExternalStore=function(e,t,r){return ne.current.useSyncExternalStore(e,t,r)};U.useTransition=function(){return ne.current.useTransition()};U.version="18.2.0"});var ye=Tt((Os,Nn)=>{"use strict";Nn.exports=Cn()});function Ht(){return Ht=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},Ht.apply(this,arguments)}function te(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function xr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ke(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 de(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 De(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?de(t):t,a=Dr(n.pathname||"/",r);if(a==null)return null;let o=Fn(e);Ko(o);let i=null;for(let l=0;i==null&&l<o.length;++l)i=ti(o[l],ni(a));return i}function On(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}function Fn(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(o,i,l)=>{let s={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};s.relativePath.startsWith("/")&&(te(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let u=ve([n,s.relativePath]),c=r.concat(s);o.children&&o.children.length>0&&(te(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Fn(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Zo(u,o.index),routesMeta:c})};return e.forEach((o,i)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))a(o,i);else for(let s of Un(o.path))a(o,i,s)}),t}function Un(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=Un(n.join("/")),l=[];return l.push(...i.map(s=>s===""?o:[o,s].join("/"))),a&&l.push(...i),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function Ko(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:ei(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}function Zo(e,t){let r=e.split("/"),n=r.length;return r.some(An)&&(n+=Qo),t&&(n+=Xo),r.filter(a=>!An(a)).reduce((a,o)=>a+(Jo.test(o)?Yo:o===""?Go:qo),n)}function ei(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function ti(e,t){let{routesMeta:r}=e,n={},a="/",o=[];for(let i=0;i<r.length;++i){let l=r[i],s=i===r.length-1,u=a==="/"?t:t.slice(a.length)||"/",c=ft({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u);if(!c)return null;Object.assign(n,c.params);let h=l.route;o.push({params:n,pathname:ve([a,c.pathname]),pathnameBase:ii(ve([a,c.pathnameBase])),route:h}),c.pathnameBase!=="/"&&(a=ve([a,c.pathnameBase]))}return o}function ft(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=ri(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:n.reduce((u,c,h)=>{let{paramName:p,isOptional:x}=c;if(p==="*"){let v=l[h]||"";i=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}let y=l[h];return x&&!y?u[p]=void 0:u[p]=ai(y||"",p),u},{}),pathname:o,pathnameBase:i,pattern:e}}function ri(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),xr(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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(i,l,s)=>(n.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function ni(e){try{return decodeURI(e)}catch(t){return xr(!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 ai(e,t){try{return decodeURIComponent(e)}catch(r){return xr(!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 Dr(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 Bt(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?de(e):e;return{pathname:r?r.startsWith("/")?r:oi(r,t):t,search:li(n),hash:si(a)}}function oi(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Sr(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 _r(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Pr(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=de(e):(a=Ht({},e),te(!a.pathname||!a.pathname.includes("?"),Sr("?","pathname","search",a)),te(!a.pathname||!a.pathname.includes("#"),Sr("#","pathname","hash",a)),te(!a.search||!a.search.includes("#"),Sr("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,l;if(n||i==null)l=r;else{let h=t.length-1;if(i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),h-=1;a.pathname=p.join("/")}l=h>=0?t[h]:"/"}let s=Bt(a,l),u=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}function He(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Ie,Mn,Jo,Yo,Xo,Go,qo,Qo,An,ve,ii,li,si,Xe,$t,Tn,Fs,ui,Us,Ts,Lr=Ut(()=>{(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ie||(Ie={}));(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Mn||(Mn={}));Jo=/^:\w+$/,Yo=3,Xo=2,Go=1,qo=10,Qo=-2,An=e=>e==="*";ve=e=>e.join("/").replace(/\/\/+/g,"/"),ii=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),li=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,si=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Xe=class extends Error{},$t=function(t,r){r===void 0&&(r=302);let n=r;typeof n=="number"?n={status:n}:typeof n.status>"u"&&(n.status=302);let a=new Headers(n.headers);return a.set("Location",t),new Response(null,Ht({},n,{headers:a}))};Tn=["post","put","patch","delete"],Fs=new Set(Tn),ui=["get",...Tn],Us=new Set(ui),Ts=Symbol("deferred")});function zt(){return zt=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},zt.apply(this,arguments)}function Be(e,t){let{relative:r}=t===void 0?{}:t;Ge()||te(!1);let{basename:n,navigator:a}=w.useContext(se),{hash:o,pathname:i,search:l}=Pe(e,{relative:r}),s=i;return n!=="/"&&(s=i==="/"?n:ve([n,i])),a.createHref({pathname:s,search:l,hash:o})}function Ge(){return w.useContext(ht)!=null}function ae(){return Ge()||te(!1),w.useContext(ht).location}function kn(e){w.useContext(se).static||w.useLayoutEffect(e)}function Wt(){let{isDataRoute:e}=w.useContext(fe);return e?Ei():hi()}function hi(){Ge()||te(!1);let e=w.useContext(we),{basename:t,navigator:r}=w.useContext(se),{matches:n}=w.useContext(fe),{pathname:a}=ae(),o=JSON.stringify(_r(n).map(s=>s.pathnameBase)),i=w.useRef(!1);return kn(()=>{i.current=!0}),w.useCallback(function(s,u){if(u===void 0&&(u={}),!i.current)return;if(typeof s=="number"){r.go(s);return}let c=Pr(s,JSON.parse(o),a,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:ve([t,c.pathname])),(u.replace?r.replace:r.push)(c,u.state,u)},[t,r,o,a,e])}function Mr(e){let t=w.useContext(fe).outlet;return t&&w.createElement(mi.Provider,{value:e},t)}function Pe(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=w.useContext(fe),{pathname:a}=ae(),o=JSON.stringify(_r(n).map(i=>i.pathnameBase));return w.useMemo(()=>Pr(e,JSON.parse(o),a,r==="path"),[e,o,a,r])}function Hn(e,t,r){Ge()||te(!1);let{navigator:n}=w.useContext(se),{matches:a}=w.useContext(fe),o=a[a.length-1],i=o?o.params:{},l=o?o.pathname:"/",s=o?o.pathnameBase:"/",u=o&&o.route,c=ae(),h;if(t){var p;let S=typeof t=="string"?de(t):t;s==="/"||(p=S.pathname)!=null&&p.startsWith(s)||te(!1),h=S}else h=c;let x=h.pathname||"/",y=s==="/"?x:x.slice(s.length)||"/",v=De(e,{pathname:y}),E=vi(v&&v.map(S=>Object.assign({},S,{params:Object.assign({},i,S.params),pathname:ve([s,n.encodeLocation?n.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?s:ve([s,n.encodeLocation?n.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),a,r);return t&&E?w.createElement(ht.Provider,{value:{location:zt({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:Ie.Pop}},E):E}function pi(){let e=mt(),t=He(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)",a={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),r?w.createElement("pre",{style:a},r):null,null)}function yi(e){let{routeContext:t,match:r,children:n}=e,a=w.useContext(we);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),w.createElement(fe.Provider,{value:t},n)}function vi(e,t,r){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var a;if((a=r)!=null&&a.errors)e=r.matches;else return null}let o=e,i=(n=r)==null?void 0:n.errors;if(i!=null){let l=o.findIndex(s=>s.route.id&&i?.[s.route.id]);l>=0||te(!1),o=o.slice(0,Math.min(o.length,l+1))}return o.reduceRight((l,s,u)=>{let c=s.route.id?i?.[s.route.id]:null,h=null;r&&(h=s.route.errorElement||gi);let p=t.concat(o.slice(0,u+1)),x=()=>{let y;return c?y=h:s.route.Component?y=w.createElement(s.route.Component,null):s.route.element?y=s.route.element:y=l,w.createElement(yi,{match:s,routeContext:{outlet:l,matches:p,isDataRoute:r!=null},children:y})};return r&&(s.route.ErrorBoundary||s.route.errorElement||u===0)?w.createElement(Cr,{location:r.location,revalidation:r.revalidation,component:h,error:c,children:x(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):x()},null)}function Ri(e){let t=w.useContext(we);return t||te(!1),t}function Kt(e){let t=w.useContext(_e);return t||te(!1),t}function wi(e){let t=w.useContext(fe);return t||te(!1),t}function Jt(e){let t=wi(e),r=t.matches[t.matches.length-1];return r.route.id||te(!1),r.route.id}function Ar(){return Jt(Re.UseRouteId)}function qe(){return Kt(Re.UseNavigation).navigation}function Qe(){let{matches:e,loaderData:t}=Kt(Re.UseMatches);return w.useMemo(()=>e.map(r=>On(r,t)),[e,t])}function Or(){let e=Kt(Re.UseLoaderData),t=Jt(Re.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function mt(){var e;let t=w.useContext(In),r=Kt(Re.UseRouteError),n=Jt(Re.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function Fr(){let e=w.useContext(Vt);return e?._data}function Yt(){let e=w.useContext(Vt);return e?._error}function Ei(){let{router:e}=Ri(Bn.UseNavigateStable),t=Jt(Re.UseNavigateStable),r=w.useRef(!1);return kn(()=>{r.current=!0}),w.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,zt({fromRouteId:t},o)))},[e,t])}function $n(e){return Mr(e.context)}function Ur(e){let{basename:t="/",children:r=null,location:n,navigationType:a=Ie.Pop,navigator:o,static:i=!1}=e;Ge()&&te(!1);let l=t.replace(/^\/*/,"/"),s=w.useMemo(()=>({basename:l,navigator:o,static:i}),[l,o,i]);typeof n=="string"&&(n=de(n));let{pathname:u="/",search:c="",hash:h="",state:p=null,key:x="default"}=n,y=w.useMemo(()=>{let v=Dr(u,l);return v==null?null:{location:{pathname:v,search:c,hash:h,state:p,key:x},navigationType:a}},[l,u,c,h,p,x,a]);return y==null?null:w.createElement(se.Provider,{value:s},w.createElement(ht.Provider,{children:r,value:y}))}function Tr(e){let{children:t,errorElement:r,resolve:n}=e;return w.createElement(Nr,{resolve:n,errorElement:r},w.createElement(xi,null,t))}function xi(e){let{children:t}=e,r=Fr(),n=typeof t=="function"?t(r):t;return w.createElement(w.Fragment,null,n)}function zn(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:w.createElement(e.Component),Component:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:w.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}var w,we,_e,Vt,se,ht,fe,In,mi,gi,Cr,Bn,Re,bi,zs,le,Si,Nr,jr=Ut(()=>{w=je(ye());Lr();Lr();we=w.createContext(null),_e=w.createContext(null),Vt=w.createContext(null),se=w.createContext(null),ht=w.createContext(null),fe=w.createContext({outlet:null,matches:[],isDataRoute:!1}),In=w.createContext(null);mi=w.createContext(null);gi=w.createElement(pi,null),Cr=class extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?w.createElement(fe.Provider,{value:this.props.routeContext},w.createElement(In.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};Bn=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Bn||{}),Re=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Re||{});bi="startTransition",zs=w[bi];le=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(le||{}),Si=new Promise(()=>{}),Nr=class extends w.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,r){console.error("<Await> caught the following error during render",t,r)}render(){let{children:t,errorElement:r,resolve:n}=this.props,a=null,o=le.pending;if(!(n instanceof Promise))o=le.success,a=Promise.resolve(),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_data",{get:()=>n});else if(this.state.error){o=le.error;let i=this.state.error;a=Promise.reject().catch(()=>{}),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_error",{get:()=>i})}else n._tracked?(a=n,o=a._error!==void 0?le.error:a._data!==void 0?le.success:le.pending):(o=le.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),a=n.then(i=>Object.defineProperty(n,"_data",{get:()=>i}),i=>Object.defineProperty(n,"_error",{get:()=>i})));if(o===le.error&&a._error instanceof Xe)throw Si;if(o===le.error&&!r)throw a._error;if(o===le.error)return w.createElement(Vt.Provider,{value:a,children:r});if(o===le.success)return w.createElement(Vt.Provider,{value:a,children:t});throw a}}});function W(){return W=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},W.apply(this,arguments)}function aa(e){e===void 0&&(e={});function t(n,a){let{pathname:o,search:i,hash:l}=n.location;return bt("",{pathname:o,search:i,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(n,a){return typeof a=="string"?a:St(a)}return _i(t,r,null,e)}function k(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ve(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Di(){return Math.random().toString(36).substr(2,8)}function Wn(e,t){return{usr:e.state,key:e.key,idx:t}}function bt(e,t,r,n){return r===void 0&&(r=null),W({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?We(t):t,{state:r,key:t&&t.key||n||Di()})}function St(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 We(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 _i(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,l=Z.Pop,s=null,u=c();u==null&&(u=0,i.replaceState(W({},i.state,{idx:u}),""));function c(){return(i.state||{idx:null}).idx}function h(){l=Z.Pop;let E=c(),S=E==null?null:E-u;u=E,s&&s({action:l,location:v.location,delta:S})}function p(E,S){l=Z.Push;let F=bt(v.location,E,S);r&&r(F,E),u=c()+1;let D=Wn(F,u),d=v.createHref(F);try{i.pushState(D,"",d)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;a.location.assign(d)}o&&s&&s({action:l,location:v.location,delta:1})}function x(E,S){l=Z.Replace;let F=bt(v.location,E,S);r&&r(F,E),u=c();let D=Wn(F,u),d=v.createHref(F);i.replaceState(D,"",d),o&&s&&s({action:l,location:v.location,delta:0})}function y(E){let S=a.location.origin!=="null"?a.location.origin:a.location.href,F=typeof E=="string"?E:St(E);return k(S,"No window.location.(origin|href) available to create URL for href: "+F),new URL(F,S)}let v={get action(){return l},get location(){return e(a,i)},listen(E){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(Vn,h),s=E,()=>{a.removeEventListener(Vn,h),s=null}},createHref(E){return t(a,E)},createURL:y,encodeLocation(E){let S=y(E);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:p,replace:x,go(E){return i.go(E)}};return v}function Li(e){return e.index===!0}function Br(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let i=[...r,o],l=typeof a.id=="string"?a.id:i.join("-");if(k(a.index!==!0||!a.children,"Cannot specify children on an index route"),k(!n[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),Li(a)){let s=W({},a,t(a),{id:l});return n[l]=s,s}else{let s=W({},a,t(a),{id:l,children:void 0});return n[l]=s,a.children&&(s.children=Br(a.children,t,i,n)),s}})}function Rt(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?We(t):t,a=me(n.pathname||"/",r);if(a==null)return null;let o=oa(e);Ni(o);let i=null;for(let l=0;i==null&&l<o.length;++l)i=ki(o[l],Bi(a));return i}function Ci(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}function oa(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(o,i,l)=>{let s={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};s.relativePath.startsWith("/")&&(k(s.relativePath.startsWith(n),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(n.length));let u=ze([n,s.relativePath]),c=r.concat(s);o.children&&o.children.length>0&&(k(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),oa(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:ji(u,o.index),routesMeta:c})};return e.forEach((o,i)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))a(o,i);else for(let s of ia(o.path))a(o,i,s)}),t}function ia(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=ia(n.join("/")),l=[];return l.push(...i.map(s=>s===""?o:[o,s].join("/"))),a&&l.push(...i),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function Ni(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Ii(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}function ji(e,t){let r=e.split("/"),n=r.length;return r.some(Kn)&&(n+=Ti),t&&(n+=Oi),r.filter(a=>!Kn(a)).reduce((a,o)=>a+(Mi.test(o)?Ai:o===""?Fi:Ui),n)}function Ii(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function ki(e,t){let{routesMeta:r}=e,n={},a="/",o=[];for(let i=0;i<r.length;++i){let l=r[i],s=i===r.length-1,u=a==="/"?t:t.slice(a.length)||"/",c=Xt({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u);if(!c)return null;Object.assign(n,c.params);let h=l.route;o.push({params:n,pathname:ze([a,c.pathname]),pathnameBase:Ki(ze([a,c.pathnameBase])),route:h}),c.pathnameBase!=="/"&&(a=ze([a,c.pathnameBase]))}return o}function Xt(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Hi(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:n.reduce((u,c,h)=>{let{paramName:p,isOptional:x}=c;if(p==="*"){let v=l[h]||"";i=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}let y=l[h];return x&&!y?u[p]=void 0:u[p]=$i(y||"",p),u},{}),pathname:o,pathnameBase:i,pattern:e}}function Hi(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Ve(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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:(\w+)(\?)?/g,(i,l,s)=>(n.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function Bi(e){try{return decodeURI(e)}catch(t){return Ve(!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 $i(e,t){try{return decodeURIComponent(e)}catch(r){return Ve(!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 me(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 zi(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?We(e):e;return{pathname:r?r.startsWith("/")?r:Vi(r,t):t,search:Ji(n),hash:Yi(a)}}function Vi(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Ir(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 la(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Wi(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=We(e):(a=W({},e),k(!a.pathname||!a.pathname.includes("?"),Ir("?","pathname","search",a)),k(!a.pathname||!a.pathname.includes("#"),Ir("#","pathname","hash",a)),k(!a.search||!a.search.includes("#"),Ir("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,l;if(n||i==null)l=r;else{let h=t.length-1;if(i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),h-=1;a.pathname=p.join("/")}l=h>=0?t[h]:"/"}let s=zi(a,l),u=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}function Xi(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function fa(e){let t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;k(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let f=e.detectErrorBoundary;a=m=>({hasErrorBoundary:f(m)})}else a=tl;let o={},i=Br(e.routes,a,void 0,o),l,s=e.basename||"/",u=W({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_prependBasename:!1},e.future),c=null,h=new Set,p=null,x=null,y=null,v=e.hydrationData!=null,E=Rt(i,e.history.location,s),S=null;if(E==null){let f=ue(404,{pathname:e.history.location.pathname}),{matches:m,route:g}=ea(i);E=m,S={[g.id]:f}}let F=!E.some(f=>f.route.lazy)&&(!E.some(f=>f.route.loader)||e.hydrationData!=null),D,d={historyAction:e.history.action,location:e.history.location,matches:E,initialized:F,navigation:kr,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||S,fetchers:new Map,blockers:new Map},P=Z.Pop,j=!1,L,I=!1,z=new Map,ee=null,X=!1,oe=!1,Ct=[],Nt=[],G=new Map,Mt=0,at=-1,Ke=new Map,pe=new Set,Je=new Map,ot=new Map,Me=new Set,Ae=new Map,Oe=new Map,dr=!1;function uo(){if(c=e.history.listen(f=>{let{action:m,location:g,delta:b}=f;if(dr){dr=!1;return}Ve(Oe.size===0||b!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let N=mn({currentLocation:d.location,nextLocation:g,historyAction:m});if(N&&b!=null){dr=!0,e.history.go(b*-1),Ot(N,{state:"blocked",location:g,proceed(){Ot(N,{state:"proceeding",proceed:void 0,reset:void 0,location:g}),e.history.go(b)},reset(){let M=new Map(d.blockers);M.set(N,pt),q({blockers:M})}});return}return Fe(m,g)}),r){fl(t,z);let f=()=>hl(t,z);t.addEventListener("pagehide",f),ee=()=>t.removeEventListener("pagehide",f)}return d.initialized||Fe(Z.Pop,d.location),D}function co(){c&&c(),ee&&ee(),h.clear(),L&&L.abort(),d.fetchers.forEach((f,m)=>At(m)),d.blockers.forEach((f,m)=>hn(m))}function fo(f){return h.add(f),()=>h.delete(f)}function q(f,m){d=W({},d,f);let g=[],b=[];u.v7_fetcherPersist&&d.fetchers.forEach((N,M)=>{N.state==="idle"&&(Me.has(M)?b.push(M):g.push(M))}),h.forEach(N=>N(d,{deletedFetchers:b,unstable_viewTransitionOpts:m})),u.v7_fetcherPersist&&(g.forEach(N=>d.fetchers.delete(N)),b.forEach(N=>At(N)))}function it(f,m){var g,b;let N=d.actionData!=null&&d.navigation.formMethod!=null&&he(d.navigation.formMethod)&&d.navigation.state==="loading"&&((g=f.state)==null?void 0:g._isRedirect)!==!0,M;m.actionData?Object.keys(m.actionData).length>0?M=m.actionData:M=null:N?M=d.actionData:M=null;let O=m.loaderData?Zn(d.loaderData,m.loaderData,m.matches||[],m.errors):d.loaderData,A=d.blockers;A.size>0&&(A=new Map(A),A.forEach((V,T)=>A.set(T,pt)));let C=j===!0||d.navigation.formMethod!=null&&he(d.navigation.formMethod)&&((b=f.state)==null?void 0:b._isRedirect)!==!0;l&&(i=l,l=void 0),X||P===Z.Pop||(P===Z.Push?e.history.push(f,f.state):P===Z.Replace&&e.history.replace(f,f.state));let B;if(P===Z.Pop){let V=z.get(d.location.pathname);V&&V.has(f.pathname)?B={currentLocation:d.location,nextLocation:f}:z.has(f.pathname)&&(B={currentLocation:f,nextLocation:d.location})}else if(I){let V=z.get(d.location.pathname);V?V.add(f.pathname):(V=new Set([f.pathname]),z.set(d.location.pathname,V)),B={currentLocation:d.location,nextLocation:f}}q(W({},m,{actionData:M,loaderData:O,historyAction:P,location:f,initialized:!0,navigation:kr,revalidation:"idle",restoreScrollPosition:gn(f,m.matches||d.matches),preventScrollReset:C,blockers:A}),B),P=Z.Pop,j=!1,I=!1,X=!1,oe=!1,Ct=[],Nt=[]}async function ln(f,m){if(typeof f=="number"){e.history.go(f);return}let g=$r(d.location,d.matches,s,u.v7_prependBasename,f,m?.fromRouteId,m?.relative),{path:b,submission:N,error:M}=Jn(u.v7_normalizeFormMethod,!1,g,m),O=d.location,A=bt(d.location,b,m&&m.state);A=W({},A,e.history.encodeLocation(A));let C=m&&m.replace!=null?m.replace:void 0,B=Z.Push;C===!0?B=Z.Replace:C===!1||N!=null&&he(N.formMethod)&&N.formAction===d.location.pathname+d.location.search&&(B=Z.Replace);let V=m&&"preventScrollReset"in m?m.preventScrollReset===!0:void 0,T=mn({currentLocation:O,nextLocation:A,historyAction:B});if(T){Ot(T,{state:"blocked",location:A,proceed(){Ot(T,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),ln(f,m)},reset(){let $=new Map(d.blockers);$.set(T,pt),q({blockers:$})}});return}return await Fe(B,A,{submission:N,pendingError:M,preventScrollReset:V,replace:m&&m.replace,enableViewTransition:m&&m.unstable_viewTransition})}function ho(){if(fr(),q({revalidation:"loading"}),d.navigation.state!=="submitting"){if(d.navigation.state==="idle"){Fe(d.historyAction,d.location,{startUninterruptedRevalidation:!0});return}Fe(P||d.historyAction,d.navigation.location,{overrideNavigation:d.navigation})}}async function Fe(f,m,g){L&&L.abort(),L=null,P=f,X=(g&&g.startUninterruptedRevalidation)===!0,bo(d.location,d.matches),j=(g&&g.preventScrollReset)===!0,I=(g&&g.enableViewTransition)===!0;let b=l||i,N=g&&g.overrideNavigation,M=Rt(b,m,s);if(!M){let $=ue(404,{pathname:m.pathname}),{matches:Q,route:Ue}=ea(b);hr(),it(m,{matches:Q,loaderData:{},errors:{[Ue.id]:$}});return}if(d.initialized&&!oe&&il(d.location,m)&&!(g&&g.submission&&he(g.submission.formMethod))){it(m,{matches:M});return}L=new AbortController;let O=yt(e.history,m,L.signal,g&&g.submission),A,C;if(g&&g.pendingError)C={[wt(M).route.id]:g.pendingError};else if(g&&g.submission&&he(g.submission.formMethod)){let $=await mo(O,m,g.submission,M,{replace:g.replace});if($.shortCircuited)return;A=$.pendingActionData,C=$.pendingActionError,N=Hr(m,g.submission),O=new Request(O.url,{signal:O.signal})}let{shortCircuited:B,loaderData:V,errors:T}=await po(O,m,M,N,g&&g.submission,g&&g.fetcherSubmission,g&&g.replace,A,C);B||(L=null,it(m,W({matches:M},A?{actionData:A}:{},{loaderData:V,errors:T})))}async function mo(f,m,g,b,N){N===void 0&&(N={}),fr();let M=cl(m,g);q({navigation:M});let O,A=Vr(b,m);if(!A.route.action&&!A.route.lazy)O={type:J.error,error:ue(405,{method:f.method,pathname:m.pathname,routeId:A.route.id})};else if(O=await gt("action",f,A,b,o,a,s),f.signal.aborted)return{shortCircuited:!0};if(Ze(O)){let C;return N&&N.replace!=null?C=N.replace:C=O.location===d.location.pathname+d.location.search,await lt(d,O,{submission:g,replace:C}),{shortCircuited:!0}}if(Et(O)){let C=wt(b,A.route.id);return(N&&N.replace)!==!0&&(P=Z.Push),{pendingActionData:{},pendingActionError:{[C.route.id]:O.error}}}if($e(O))throw ue(400,{type:"defer-action"});return{pendingActionData:{[A.route.id]:O.data}}}async function po(f,m,g,b,N,M,O,A,C){let B=b||Hr(m,N),V=N||M||na(B),T=l||i,[$,Q]=Yn(e.history,d,g,V,m,oe,Ct,Nt,Je,pe,T,s,A,C);if(hr(H=>!(g&&g.some(ce=>ce.route.id===H))||$&&$.some(ce=>ce.route.id===H)),at=++Mt,$.length===0&&Q.length===0){let H=dn();return it(m,W({matches:g,loaderData:{},errors:C||null},A?{actionData:A}:{},H?{fetchers:new Map(d.fetchers)}:{})),{shortCircuited:!0}}if(!X){Q.forEach(ce=>{let xe=d.fetchers.get(ce.key),K=vt(void 0,xe?xe.data:void 0);d.fetchers.set(ce.key,K)});let H=A||d.actionData;q(W({navigation:B},H?Object.keys(H).length===0?{actionData:null}:{actionData:H}:{},Q.length>0?{fetchers:new Map(d.fetchers)}:{}))}Q.forEach(H=>{G.has(H.key)&&be(H.key),H.controller&&G.set(H.key,H.controller)});let Ue=()=>Q.forEach(H=>be(H.key));L&&L.signal.addEventListener("abort",Ue);let{results:Te,loaderResults:ut,fetcherResults:mr}=await un(d.matches,g,$,Q,f);if(f.signal.aborted)return{shortCircuited:!0};L&&L.signal.removeEventListener("abort",Ue),Q.forEach(H=>G.delete(H.key));let ge=ta(Te);if(ge){if(ge.idx>=$.length){let H=Q[ge.idx-$.length].key;pe.add(H)}return await lt(d,ge.result,{replace:O}),{shortCircuited:!0}}let{loaderData:Se,errors:Ft}=Qn(d,g,$,ut,C,Q,mr,Ae);Ae.forEach((H,ce)=>{H.subscribe(xe=>{(xe||H.done)&&Ae.delete(ce)})});let pr=dn(),gr=fn(at),yr=pr||gr||Q.length>0;return W({loaderData:Se,errors:Ft},yr?{fetchers:new Map(d.fetchers)}:{})}function sn(f){return u.v7_fetcherPersist&&(ot.set(f,(ot.get(f)||0)+1),Me.has(f)&&Me.delete(f)),d.fetchers.get(f)||ua}function go(f,m,g,b){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");G.has(f)&&be(f);let N=l||i,M=$r(d.location,d.matches,s,u.v7_prependBasename,g,m,b?.relative),O=Rt(N,M,s);if(!O){st(f,m,ue(404,{pathname:M}));return}let{path:A,submission:C,error:B}=Jn(u.v7_normalizeFormMethod,!0,M,b);if(B){st(f,m,B);return}let V=Vr(O,A);if(j=(b&&b.preventScrollReset)===!0,C&&he(C.formMethod)){yo(f,m,A,V,O,C);return}Je.set(f,{routeId:m,path:A}),vo(f,m,A,V,O,C)}async function yo(f,m,g,b,N,M){if(fr(),Je.delete(f),!b.route.action&&!b.route.lazy){let K=ue(405,{method:M.formMethod,pathname:g,routeId:m});st(f,m,K);return}let O=d.fetchers.get(f),A=dl(M,O);d.fetchers.set(f,A),q({fetchers:new Map(d.fetchers)});let C=new AbortController,B=yt(e.history,g,C.signal,M);G.set(f,C);let V=Mt,T=await gt("action",B,b,N,o,a,s);if(B.signal.aborted){G.get(f)===C&&G.delete(f);return}if(Me.has(f)){d.fetchers.set(f,Le(void 0)),q({fetchers:new Map(d.fetchers)});return}if(Ze(T))if(G.delete(f),at>V){let K=Le(void 0);d.fetchers.set(f,K),q({fetchers:new Map(d.fetchers)});return}else{pe.add(f);let K=vt(M);return d.fetchers.set(f,K),q({fetchers:new Map(d.fetchers)}),lt(d,T,{fetcherSubmission:M})}if(Et(T)){st(f,m,T.error);return}if($e(T))throw ue(400,{type:"defer-action"});let $=d.navigation.location||d.location,Q=yt(e.history,$,C.signal),Ue=l||i,Te=d.navigation.state!=="idle"?Rt(Ue,d.navigation.location,s):d.matches;k(Te,"Didn't find any matches after fetcher action");let ut=++Mt;Ke.set(f,ut);let mr=vt(M,T.data);d.fetchers.set(f,mr);let[ge,Se]=Yn(e.history,d,Te,M,$,oe,Ct,Nt,Je,pe,Ue,s,{[b.route.id]:T.data},void 0);Se.filter(K=>K.key!==f).forEach(K=>{let ct=K.key,yn=d.fetchers.get(ct),xo=vt(void 0,yn?yn.data:void 0);d.fetchers.set(ct,xo),G.has(ct)&&be(ct),K.controller&&G.set(ct,K.controller)}),q({fetchers:new Map(d.fetchers)});let Ft=()=>Se.forEach(K=>be(K.key));C.signal.addEventListener("abort",Ft);let{results:pr,loaderResults:gr,fetcherResults:yr}=await un(d.matches,Te,ge,Se,Q);if(C.signal.aborted)return;C.signal.removeEventListener("abort",Ft),Ke.delete(f),G.delete(f),Se.forEach(K=>G.delete(K.key));let H=ta(pr);if(H){if(H.idx>=ge.length){let K=Se[H.idx-ge.length].key;pe.add(K)}return lt(d,H.result)}let{loaderData:ce,errors:xe}=Qn(d,d.matches,ge,gr,void 0,Se,yr,Ae);if(d.fetchers.has(f)){let K=Le(T.data);d.fetchers.set(f,K)}fn(ut),d.navigation.state==="loading"&&ut>at?(k(P,"Expected pending action"),L&&L.abort(),it(d.navigation.location,{matches:Te,loaderData:ce,errors:xe,fetchers:new Map(d.fetchers)})):(q({errors:xe,loaderData:Zn(d.loaderData,ce,Te,xe),fetchers:new Map(d.fetchers)}),oe=!1)}async function vo(f,m,g,b,N,M){let O=d.fetchers.get(f),A=vt(M,O?O.data:void 0);d.fetchers.set(f,A),q({fetchers:new Map(d.fetchers)});let C=new AbortController,B=yt(e.history,g,C.signal);G.set(f,C);let V=Mt,T=await gt("loader",B,b,N,o,a,s);if($e(T)&&(T=await pa(T,B.signal,!0)||T),G.get(f)===C&&G.delete(f),B.signal.aborted)return;if(Me.has(f)){d.fetchers.set(f,Le(void 0)),q({fetchers:new Map(d.fetchers)});return}if(Ze(T))if(at>V){let Q=Le(void 0);d.fetchers.set(f,Q),q({fetchers:new Map(d.fetchers)});return}else{pe.add(f),await lt(d,T);return}if(Et(T)){st(f,m,T.error);return}k(!$e(T),"Unhandled fetcher deferred data");let $=Le(T.data);d.fetchers.set(f,$),q({fetchers:new Map(d.fetchers)})}async function lt(f,m,g){let{submission:b,fetcherSubmission:N,replace:M}=g===void 0?{}:g;m.revalidate&&(oe=!0);let O=bt(f.location,m.location,{_isRedirect:!0});if(k(O,"Expected a location on the redirect navigation"),r){let $=!1;if(m.reloadDocument)$=!0;else if(ca.test(m.location)){let Q=e.history.createURL(m.location);$=Q.origin!==t.location.origin||me(Q.pathname,s)==null}if($){M?t.location.replace(m.location):t.location.assign(m.location);return}}L=null;let A=M===!0?Z.Replace:Z.Push,{formMethod:C,formAction:B,formEncType:V}=f.navigation;!b&&!N&&C&&B&&V&&(b=na(f.navigation));let T=b||N;if(el.has(m.status)&&T&&he(T.formMethod))await Fe(A,O,{submission:W({},T,{formAction:m.location}),preventScrollReset:j});else{let $=Hr(O,b);await Fe(A,O,{overrideNavigation:$,fetcherSubmission:N,preventScrollReset:j})}}async function un(f,m,g,b,N){let M=await Promise.all([...g.map(C=>gt("loader",N,C,m,o,a,s)),...b.map(C=>C.matches&&C.match&&C.controller?gt("loader",yt(e.history,C.path,C.controller.signal),C.match,C.matches,o,a,s):{type:J.error,error:ue(404,{pathname:C.path})})]),O=M.slice(0,g.length),A=M.slice(g.length);return await Promise.all([ra(f,g,O,O.map(()=>N.signal),!1,d.loaderData),ra(f,b.map(C=>C.match),A,b.map(C=>C.controller?C.controller.signal:null),!0)]),{results:M,loaderResults:O,fetcherResults:A}}function fr(){oe=!0,Ct.push(...hr()),Je.forEach((f,m)=>{G.has(m)&&(Nt.push(m),be(m))})}function st(f,m,g){let b=wt(d.matches,m);At(f),q({errors:{[b.route.id]:g},fetchers:new Map(d.fetchers)})}function At(f){let m=d.fetchers.get(f);G.has(f)&&!(m&&m.state==="loading"&&Ke.has(f))&&be(f),Je.delete(f),Ke.delete(f),pe.delete(f),Me.delete(f),d.fetchers.delete(f)}function Ro(f){if(u.v7_fetcherPersist){let m=(ot.get(f)||0)-1;m<=0?(ot.delete(f),Me.add(f)):ot.set(f,m)}else At(f);q({fetchers:new Map(d.fetchers)})}function be(f){let m=G.get(f);k(m,"Expected fetch controller: "+f),m.abort(),G.delete(f)}function cn(f){for(let m of f){let g=sn(m),b=Le(g.data);d.fetchers.set(m,b)}}function dn(){let f=[],m=!1;for(let g of pe){let b=d.fetchers.get(g);k(b,"Expected fetcher: "+g),b.state==="loading"&&(pe.delete(g),f.push(g),m=!0)}return cn(f),m}function fn(f){let m=[];for(let[g,b]of Ke)if(b<f){let N=d.fetchers.get(g);k(N,"Expected fetcher: "+g),N.state==="loading"&&(be(g),Ke.delete(g),m.push(g))}return cn(m),m.length>0}function wo(f,m){let g=d.blockers.get(f)||pt;return Oe.get(f)!==m&&Oe.set(f,m),g}function hn(f){d.blockers.delete(f),Oe.delete(f)}function Ot(f,m){let g=d.blockers.get(f)||pt;k(g.state==="unblocked"&&m.state==="blocked"||g.state==="blocked"&&m.state==="blocked"||g.state==="blocked"&&m.state==="proceeding"||g.state==="blocked"&&m.state==="unblocked"||g.state==="proceeding"&&m.state==="unblocked","Invalid blocker state transition: "+g.state+" -> "+m.state);let b=new Map(d.blockers);b.set(f,m),q({blockers:b})}function mn(f){let{currentLocation:m,nextLocation:g,historyAction:b}=f;if(Oe.size===0)return;Oe.size>1&&Ve(!1,"A router only supports one blocker at a time");let N=Array.from(Oe.entries()),[M,O]=N[N.length-1],A=d.blockers.get(M);if(!(A&&A.state==="proceeding")&&O({currentLocation:m,nextLocation:g,historyAction:b}))return M}function hr(f){let m=[];return Ae.forEach((g,b)=>{(!f||f(b))&&(g.cancel(),m.push(b),Ae.delete(b))}),m}function Eo(f,m,g){if(p=f,y=m,x=g||null,!v&&d.navigation===kr){v=!0;let b=gn(d.location,d.matches);b!=null&&q({restoreScrollPosition:b})}return()=>{p=null,y=null,x=null}}function pn(f,m){return x&&x(f,m.map(b=>Ci(b,d.loaderData)))||f.key}function bo(f,m){if(p&&y){let g=pn(f,m);p[g]=y()}}function gn(f,m){if(p){let g=pn(f,m),b=p[g];if(typeof b=="number")return b}return null}function So(f){o={},l=Br(f,a,void 0,o)}return D={get basename(){return s},get state(){return d},get routes(){return i},get window(){return t},initialize:uo,subscribe:fo,enableScrollRestoration:Eo,navigate:ln,fetch:go,revalidate:ho,createHref:f=>e.history.createHref(f),encodeLocation:f=>e.history.encodeLocation(f),getFetcher:sn,deleteFetcher:Ro,dispose:co,getBlocker:wo,deleteBlocker:hn,_internalFetchControllers:G,_internalActiveDeferreds:Ae,_internalSetRoutes:So},D}function rl(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function $r(e,t,r,n,a,o,i){let l,s;if(o!=null&&i!=="path"){l=[];for(let c of t)if(l.push(c),c.route.id===o){s=c;break}}else l=t,s=t[t.length-1];let u=Wi(a||".",la(l).map(c=>c.pathnameBase),me(e.pathname,r)||e.pathname,i==="path");return a==null&&(u.search=e.search,u.hash=e.hash),(a==null||a===""||a===".")&&s&&s.route.index&&!Wr(u.search)&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(u.pathname=u.pathname==="/"?r:ze([r,u.pathname])),St(u)}function Jn(e,t,r,n){if(!n||!rl(n))return{path:r};if(n.formMethod&&!ul(n.formMethod))return{path:r,error:ue(405,{method:n.formMethod})};let a=()=>({path:r,error:ue(400,{type:"invalid-body"})}),o=n.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),l=ma(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!he(i))return a();let p=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((x,y)=>{let[v,E]=y;return""+x+v+"="+E+`
|
|
2
|
-
`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:p}}}else if(n.formEncType==="application/json"){if(!he(i))return a();try{let p=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:l,formEncType:n.formEncType,formData:void 0,json:p,text:void 0}}}catch{return a()}}}k(typeof FormData=="function","FormData is not available in this environment");let s,u;if(n.formData)s=zr(n.formData),u=n.formData;else if(n.body instanceof FormData)s=zr(n.body),u=n.body;else if(n.body instanceof URLSearchParams)s=n.body,u=qn(s);else if(n.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(n.body),u=qn(s)}catch{return a()}let c={formMethod:i,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(he(c.formMethod))return{path:r,submission:c};let h=We(r);return t&&h.search&&Wr(h.search)&&s.append("index",""),h.search="?"+s,{path:St(h),submission:c}}function nl(e,t){let r=e;if(t){let n=e.findIndex(a=>a.route.id===t);n>=0&&(r=e.slice(0,n))}return r}function Yn(e,t,r,n,a,o,i,l,s,u,c,h,p,x){let y=x?Object.values(x)[0]:p?Object.values(p)[0]:void 0,v=e.createURL(t.location),E=e.createURL(a),S=x?Object.keys(x)[0]:void 0,D=nl(r,S).filter((P,j)=>{if(P.route.lazy)return!0;if(P.route.loader==null)return!1;if(al(t.loaderData,t.matches[j],P)||i.some(z=>z===P.route.id))return!0;let L=t.matches[j],I=P;return Xn(P,W({currentUrl:v,currentParams:L.params,nextUrl:E,nextParams:I.params},n,{actionResult:y,defaultShouldRevalidate:o||v.pathname+v.search===E.pathname+E.search||v.search!==E.search||ha(L,I)}))}),d=[];return s.forEach((P,j)=>{if(!r.some(X=>X.route.id===P.routeId))return;let L=Rt(c,P.path,h);if(!L){d.push({key:j,routeId:P.routeId,path:P.path,matches:null,match:null,controller:null});return}let I=t.fetchers.get(j),z=Vr(L,P.path),ee=!1;u.has(j)?ee=!1:l.includes(j)?ee=!0:I&&I.state!=="idle"&&I.data===void 0?ee=o:ee=Xn(z,W({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:E,nextParams:r[r.length-1].params},n,{actionResult:y,defaultShouldRevalidate:o})),ee&&d.push({key:j,routeId:P.routeId,path:P.path,matches:L,match:z,controller:new AbortController})}),[D,d]}function al(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function ha(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Xn(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}async function Gn(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];k(a,"No route found in manifest");let o={};for(let i in n){let s=a[i]!==void 0&&i!=="hasErrorBoundary";Ve(!s,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!s&&!Pi.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,W({},t(a),{lazy:void 0}))}async function gt(e,t,r,n,a,o,i,l){l===void 0&&(l={});let s,u,c,h=y=>{let v,E=new Promise((S,F)=>v=F);return c=()=>v(),t.signal.addEventListener("abort",c),Promise.race([y({request:t,params:r.params,context:l.requestContext}),E])};try{let y=r.route[e];if(r.route.lazy)if(y){let v,E=await Promise.all([h(y).catch(S=>{v=S}),Gn(r.route,o,a)]);if(v)throw v;u=E[0]}else if(await Gn(r.route,o,a),y=r.route[e],y)u=await h(y);else if(e==="action"){let v=new URL(t.url),E=v.pathname+v.search;throw ue(405,{method:t.method,pathname:E,routeId:r.route.id})}else return{type:J.data,data:void 0};else if(y)u=await h(y);else{let v=new URL(t.url),E=v.pathname+v.search;throw ue(404,{pathname:E})}k(u!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(y){s=J.error,u=y}finally{c&&t.signal.removeEventListener("abort",c)}if(sl(u)){let y=u.status;if(Zi.has(y)){let S=u.headers.get("Location");if(k(S,"Redirects returned/thrown from loaders/actions must have a Location header"),!ca.test(S))S=$r(new URL(t.url),n.slice(0,n.indexOf(r)+1),i,!0,S);else if(!l.isStaticRequest){let F=new URL(t.url),D=S.startsWith("//")?new URL(F.protocol+S):new URL(S),d=me(D.pathname,i)!=null;D.origin===F.origin&&d&&(S=D.pathname+D.search+D.hash)}if(l.isStaticRequest)throw u.headers.set("Location",S),u;return{type:J.redirect,status:y,location:S,revalidate:u.headers.get("X-Remix-Revalidate")!==null,reloadDocument:u.headers.get("X-Remix-Reload-Document")!==null}}if(l.isRouteRequest)throw{type:s===J.error?J.error:J.data,response:u};let v,E=u.headers.get("Content-Type");return E&&/\bapplication\/json\b/.test(E)?v=await u.json():v=await u.text(),s===J.error?{type:s,error:new et(y,u.statusText,v),headers:u.headers}:{type:J.data,data:v,statusCode:u.status,headers:u.headers}}if(s===J.error)return{type:s,error:u};if(ll(u)){var p,x;return{type:J.deferred,deferredData:u,statusCode:(p=u.init)==null?void 0:p.status,headers:((x=u.init)==null?void 0:x.headers)&&new Headers(u.init.headers)}}return{type:J.data,data:u}}function yt(e,t,r,n){let a=e.createURL(ma(t)).toString(),o={signal:r};if(n&&he(n.formMethod)){let{formMethod:i,formEncType:l}=n;o.method=i.toUpperCase(),l==="application/json"?(o.headers=new Headers({"Content-Type":l}),o.body=JSON.stringify(n.json)):l==="text/plain"?o.body=n.text:l==="application/x-www-form-urlencoded"&&n.formData?o.body=zr(n.formData):o.body=n.formData}return new Request(a,o)}function zr(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function qn(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function ol(e,t,r,n,a){let o={},i=null,l,s=!1,u={};return r.forEach((c,h)=>{let p=t[h].route.id;if(k(!Ze(c),"Cannot handle redirect results in processLoaderData"),Et(c)){let x=wt(e,p),y=c.error;n&&(y=Object.values(n)[0],n=void 0),i=i||{},i[x.route.id]==null&&(i[x.route.id]=y),o[p]=void 0,s||(s=!0,l=Xi(c.error)?c.error.status:500),c.headers&&(u[p]=c.headers)}else $e(c)?(a.set(p,c.deferredData),o[p]=c.deferredData.data):o[p]=c.data,c.statusCode!=null&&c.statusCode!==200&&!s&&(l=c.statusCode),c.headers&&(u[p]=c.headers)}),n&&(i=n,o[Object.keys(n)[0]]=void 0),{loaderData:o,errors:i,statusCode:l||200,loaderHeaders:u}}function Qn(e,t,r,n,a,o,i,l){let{loaderData:s,errors:u}=ol(t,r,n,a,l);for(let c=0;c<o.length;c++){let{key:h,match:p,controller:x}=o[c];k(i!==void 0&&i[c]!==void 0,"Did not find corresponding fetcher result");let y=i[c];if(!(x&&x.signal.aborted))if(Et(y)){let v=wt(e.matches,p?.route.id);u&&u[v.route.id]||(u=W({},u,{[v.route.id]:y.error})),e.fetchers.delete(h)}else if(Ze(y))k(!1,"Unhandled fetcher revalidation redirect");else if($e(y))k(!1,"Unhandled fetcher deferred data");else{let v=Le(y.data);e.fetchers.set(h,v)}}return{loaderData:s,errors:u}}function Zn(e,t,r,n){let a=W({},t);for(let o of r){let i=o.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(a[i]=t[i]):e[i]!==void 0&&o.route.loader&&(a[i]=e[i]),n&&n.hasOwnProperty(i))break}return a}function wt(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function ea(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ue(e,t){let{pathname:r,routeId:n,method:a,type:o}=t===void 0?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(i="Bad Request",a&&r&&n?l="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(i="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):e===404?(i="Not Found",l='No route matches URL "'+r+'"'):e===405&&(i="Method Not Allowed",a&&r&&n?l="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new et(e||500,i,new Error(l),!0)}function ta(e){for(let t=e.length-1;t>=0;t--){let r=e[t];if(Ze(r))return{result:r,idx:t}}}function ma(e){let t=typeof e=="string"?We(e):e;return St(W({},t,{hash:""}))}function il(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function $e(e){return e.type===J.deferred}function Et(e){return e.type===J.error}function Ze(e){return(e&&e.type)===J.redirect}function ll(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function sl(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function ul(e){return Qi.has(e.toLowerCase())}function he(e){return Gi.has(e.toLowerCase())}async function ra(e,t,r,n,a,o){for(let i=0;i<r.length;i++){let l=r[i],s=t[i];if(!s)continue;let u=e.find(h=>h.route.id===s.route.id),c=u!=null&&!ha(u,s)&&(o&&o[s.route.id])!==void 0;if($e(l)&&(a||c)){let h=n[i];k(h,"Expected an AbortSignal for revalidating fetcher deferred result"),await pa(l,h,a).then(p=>{p&&(r[i]=p||r[i])})}}}async function pa(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:J.data,data:e.deferredData.unwrappedData}}catch(a){return{type:J.error,error:a}}return{type:J.data,data:e.deferredData.data}}}function Wr(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Vr(e,t){let r=typeof t=="string"?We(t).search:t.search;if(e[e.length-1].route.index&&Wr(r||""))return e[e.length-1];let n=la(e);return n[n.length-1]}function na(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function Hr(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function cl(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function vt(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function dl(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Le(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function fl(e,t){try{let r=e.sessionStorage.getItem(da);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function hl(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(da,JSON.stringify(r))}catch(n){Ve(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}var Z,Vn,J,Pi,Mi,Ai,Oi,Fi,Ui,Ti,Kn,ze,Ki,Ji,Yi,et,sa,Gi,qi,Qi,Zi,el,kr,ua,pt,ca,tl,da,Ks,ga=Ut(()=>{(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Z||(Z={}));Vn="popstate";(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(J||(J={}));Pi=new Set(["lazy","caseSensitive","path","id","index","children"]);Mi=/^:\w+$/,Ai=3,Oi=2,Fi=1,Ui=10,Ti=-2,Kn=e=>e==="*";ze=e=>e.join("/").replace(/\/\/+/g,"/"),Ki=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ji=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Yi=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,et=class{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};sa=["post","put","patch","delete"],Gi=new Set(sa),qi=["get",...sa],Qi=new Set(qi),Zi=new Set([301,302,303,307,308]),el=new Set([307,308]),kr={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ua={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},pt={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ca=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,tl=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),da="remix-router-transitions";Ks=Symbol("deferred")});function Ee(){return Ee=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},Ee.apply(this,arguments)}function Gr(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function Zt(e){return e!=null&&typeof e.tagName=="string"}function bl(e){return Zt(e)&&e.tagName.toLowerCase()==="button"}function Sl(e){return Zt(e)&&e.tagName.toLowerCase()==="form"}function xl(e){return Zt(e)&&e.tagName.toLowerCase()==="input"}function Dl(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function _l(e,t){return e.button===0&&(!t||t==="_self")&&!Dl(e)}function Pl(){if(Gt===null)try{new FormData(document.createElement("form"),0),Gt=!1}catch{Gt=!0}return Gt}function Jr(e){return e!=null&&!Ll.has(e)?null:e}function Cl(e,t){let r,n,a,o,i;if(Sl(e)){let l=e.getAttribute("action");n=l?me(l,t):null,r=e.getAttribute("method")||Qt,a=Jr(e.getAttribute("enctype"))||Kr,o=new FormData(e)}else if(bl(e)||xl(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(n=s?me(s,t):null,r=e.getAttribute("formmethod")||l.getAttribute("method")||Qt,a=Jr(e.getAttribute("formenctype"))||Jr(l.getAttribute("enctype"))||Kr,o=new FormData(l,e),!Pl()){let{name:u,type:c,value:h}=e;if(c==="image"){let p=u?u+".":"";o.append(p+"x","0"),o.append(p+"y","0")}else u&&o.append(u,h)}}else{if(Zt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Qt,n=null,a=Kr,i=e}return o&&a==="text/plain"&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}function wa(e,t){return fa({basename:t?.basename,future:Ee({},t?.future,{v7_prependBasename:!0}),history:aa({window:t?.window}),hydrationData:t?.hydrationData||Ol(),routes:e,mapRouteProperties:zn,window:t?.window}).initialize()}function Ol(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ee({},t,{errors:Fl(t.errors)})),t}function Fl(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new et(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let i=new o(a.message);i.stack="",r[n]=i}catch{}}if(r[n]==null){let o=new Error(a.message);o.stack="",r[n]=o}}else r[n]=a;return r}function jl(e){ya?ya(e):e()}function ba(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=_.useState(r.state),[i,l]=_.useState(),[s,u]=_.useState({isTransitioning:!1}),[c,h]=_.useState(),[p,x]=_.useState(),[y,v]=_.useState(),E=_.useRef(new Map),{v7_startTransition:S}=n||{},F=_.useCallback(L=>{S?jl(L):L()},[S]),D=_.useCallback((L,I)=>{let{deletedFetchers:z,unstable_viewTransitionOpts:ee}=I;z.forEach(X=>E.current.delete(X)),L.fetchers.forEach((X,oe)=>{X.data!==void 0&&E.current.set(oe,X.data)}),!ee||r.window==null||typeof r.window.document.startViewTransition!="function"?F(()=>o(L)):p&&c?(c.resolve(),p.skipTransition(),v({state:L,currentLocation:ee.currentLocation,nextLocation:ee.nextLocation})):(l(L),u({isTransitioning:!0,currentLocation:ee.currentLocation,nextLocation:ee.nextLocation}))},[r.window,p,c,E,F]);_.useLayoutEffect(()=>r.subscribe(D),[r,D]),_.useEffect(()=>{s.isTransitioning&&h(new Yr)},[s.isTransitioning]),_.useEffect(()=>{if(c&&i&&r.window){let L=i,I=c.promise,z=r.window.document.startViewTransition(async()=>{F(()=>o(L)),await I});z.finished.finally(()=>{h(void 0),x(void 0),l(void 0),u({isTransitioning:!1})}),x(z)}},[F,i,c,r.window]),_.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,p,a.location,i]),_.useEffect(()=>{!s.isTransitioning&&y&&(l(y.state),u({isTransitioning:!0,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),v(void 0))},[s.isTransitioning,y]);let d=_.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:L=>r.navigate(L),push:(L,I,z)=>r.navigate(L,{state:I,preventScrollReset:z?.preventScrollReset}),replace:(L,I,z)=>r.navigate(L,{replace:!0,state:I,preventScrollReset:z?.preventScrollReset})}),[r]),P=r.basename||"/",j=_.useMemo(()=>({router:r,navigator:d,static:!1,basename:P}),[r,d,P]);return _.createElement(_.Fragment,null,_.createElement(we.Provider,{value:j},_.createElement(_e.Provider,{value:a},_.createElement(Ul.Provider,{value:E.current},_.createElement(Ea.Provider,{value:s},_.createElement(Ur,{basename:P,location:a.location,navigationType:a.historyAction,navigator:d},a.initialized?_.createElement(Il,{routes:r.routes,state:a}):t))))),null)}function Il(e){let{routes:t,state:r}=e;return Hn(t,void 0,r)}function Qr(e){let t=_.useContext(we);return t||k(!1),t}function $l(e){let t=_.useContext(_e);return t||k(!1),t}function zl(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:l}=t===void 0?{}:t,s=Wt(),u=ae(),c=Pe(e,{relative:i});return _.useCallback(h=>{if(_l(h,r)){h.preventDefault();let p=n!==void 0?n:ke(u)===ke(c);s(e,{replace:p,state:a,preventScrollReset:o,relative:i,unstable_viewTransition:l})}},[u,s,c,n,a,r,e,o,i,l])}function Vl(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}function xa(){let{router:e}=Qr(xt.UseSubmit),{basename:t}=_.useContext(se),r=Ar();return _.useCallback(function(n,a){a===void 0&&(a={}),Vl();let{action:o,method:i,encType:l,formData:s,body:u}=Cl(n,t);if(a.navigate===!1){let c=a.fetcherKey||Kl();e.fetch(c,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l})}else e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:r,unstable_viewTransition:a.unstable_viewTransition})},[e,t,r])}function Da(e,t){let{relative:r}=t===void 0?{}:t,{basename:n}=_.useContext(se),a=_.useContext(fe);a||k(!1);let[o]=a.matches.slice(-1),i=Ee({},Pe(e||".",{relative:r})),l=ae();if(e==null&&(i.search=l.search,o.route.index)){let s=new URLSearchParams(i.search);s.delete("index"),i.search=s.toString()?"?"+s.toString():""}return(!e||e===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:ze([n,i.pathname])),ke(i)}function _a(e){let{getKey:t,storageKey:r}=e===void 0?{}:e,{router:n}=Qr(xt.UseScrollRestoration),{restoreScrollPosition:a,preventScrollReset:o}=$l(Xr.UseScrollRestoration),{basename:i}=_.useContext(se),l=ae(),s=Qe(),u=qe();_.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),Jl(_.useCallback(()=>{if(u.state==="idle"){let c=(t?t(l,s):null)||l.key;qt[c]=window.scrollY}try{sessionStorage.setItem(r||va,JSON.stringify(qt))}catch{}window.history.scrollRestoration="auto"},[r,t,u.state,l,s])),typeof document<"u"&&(_.useLayoutEffect(()=>{try{let c=sessionStorage.getItem(r||va);c&&(qt=JSON.parse(c))}catch{}},[r]),_.useLayoutEffect(()=>{let c=t&&i!=="/"?(p,x)=>t(Ee({},p,{pathname:me(p.pathname,i)||p.pathname}),x):t,h=n?.enableScrollRestoration(qt,()=>window.scrollY,c);return()=>h&&h()},[n,i,t]),_.useLayoutEffect(()=>{if(a!==!1){if(typeof a=="number"){window.scrollTo(0,a);return}if(l.hash){let c=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(c){c.scrollIntoView();return}}o!==!0&&window.scrollTo(0,0)}},[l,a,o]))}function Jl(e,t){let{capture:r}=t||{};_.useEffect(()=>{let n=r!=null?{capture:r}:void 0;return window.addEventListener("pagehide",e,n),()=>{window.removeEventListener("pagehide",e,n)}},[e,r])}function Pa(e,t){t===void 0&&(t={});let r=_.useContext(Ea);r==null&&k(!1);let{basename:n}=Qr(xt.useViewTransitionState),a=Pe(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=me(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=me(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Xt(a.pathname,i)!=null||Xt(a.pathname,o)!=null}var _,Qt,Kr,Gt,Ll,Nl,Ml,Al,Ea,Ul,Tl,ya,Yr,kl,Hl,qr,Sa,Bl,xt,Xr,Wl,Kl,va,qt,Ce=Ut(()=>{_=je(ye());jr();jr();ga();Qt="get",Kr="application/x-www-form-urlencoded";Gt=null;Ll=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);Nl=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Ml=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],Al=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"];Ea=_.createContext({isTransitioning:!1}),Ul=_.createContext(new Map),Tl="startTransition",ya=_[Tl];Yr=class{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}};kl=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Hl=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qr=_.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:s,to:u,preventScrollReset:c,unstable_viewTransition:h}=t,p=Gr(t,Nl),{basename:x}=_.useContext(se),y,v=!1;if(typeof u=="string"&&Hl.test(u)&&(y=u,kl))try{let D=new URL(window.location.href),d=u.startsWith("//")?new URL(D.protocol+u):new URL(u),P=me(d.pathname,x);d.origin===D.origin&&P!=null?u=P+d.search+d.hash:v=!0}catch{}let E=Be(u,{relative:a}),S=zl(u,{replace:i,state:l,target:s,preventScrollReset:c,relative:a,unstable_viewTransition:h});function F(D){n&&n(D),D.defaultPrevented||S(D)}return _.createElement("a",Ee({},p,{href:y||E,onClick:v||o?n:F,ref:r,target:s}))}),Sa=_.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:l,to:s,unstable_viewTransition:u,children:c}=t,h=Gr(t,Ml),p=Pe(s,{relative:h.relative}),x=ae(),y=_.useContext(_e),{navigator:v}=_.useContext(se),E=y!=null&&Pa(p)&&u===!0,S=v.encodeLocation?v.encodeLocation(p).pathname:p.pathname,F=x.pathname,D=y&&y.navigation&&y.navigation.location?y.navigation.location.pathname:null;a||(F=F.toLowerCase(),D=D?D.toLowerCase():null,S=S.toLowerCase());let d=F===S||!i&&F.startsWith(S)&&F.charAt(S.length)==="/",P=D!=null&&(D===S||!i&&D.startsWith(S)&&D.charAt(S.length)==="/"),j={isActive:d,isPending:P,isTransitioning:E},L=d?n:void 0,I;typeof o=="function"?I=o(j):I=[o,d?"active":null,P?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let z=typeof l=="function"?l(j):l;return _.createElement(qr,Ee({},h,{"aria-current":L,className:I,ref:r,style:z,to:s,unstable_viewTransition:u}),typeof c=="function"?c(j):c)}),Bl=_.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:a,replace:o,state:i,method:l=Qt,action:s,onSubmit:u,relative:c,preventScrollReset:h,unstable_viewTransition:p}=e,x=Gr(e,Al),y=xa(),v=Da(s,{relative:c}),E=l.toLowerCase()==="get"?"get":"post";return _.createElement("form",Ee({ref:t,method:E,action:v,onSubmit:a?u:F=>{if(u&&u(F),F.defaultPrevented)return;F.preventDefault();let D=F.nativeEvent.submitter,d=D?.getAttribute("formmethod")||l;y(D||F.currentTarget,{fetcherKey:r,method:d,navigate:n,replace:o,state:i,relative:c,preventScrollReset:h,unstable_viewTransition:p})}},x))});(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(xt||(xt={}));(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Xr||(Xr={}));Wl=0,Kl=()=>"__"+String(++Wl)+"__";va="react-router-scroll-positions",qt={}});var lo=Tt(cr=>{"use strict";var xs=ye(),Ds=Symbol.for("react.element"),_s=Symbol.for("react.fragment"),Ps=Object.prototype.hasOwnProperty,Ls=xs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Cs={key:!0,ref:!0,__self:!0,__source:!0};function io(e,t,r){var n,a={},o=null,i=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)Ps.call(t,n)&&!Cs.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:Ds,type:e,key:o,ref:i,props:a,_owner:Ls.current}}cr.Fragment=_s;cr.jsx=io;cr.jsxs=io});var Ns=Tt((sc,so)=>{"use strict";so.exports=lo()});var ie=je(ye());Ce();function Y(){return Y=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},Y.apply(this,arguments)}var R=je(ye());Ce();function tt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}Ce();async function er(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch{return window.location.reload(),new Promise(()=>{})}}function La(e,t,r){let n=e.map(o=>{var i;let l=t[o.route.id],s=r.routes[o.route.id];return[s.css?s.css.map(u=>({rel:"stylesheet",href:u})):[],((i=l.links)===null||i===void 0?void 0:i.call(l))||[]]}).flat(2),a=Gl(e,r);return Aa(n,a)}async function rr(e,t){var r,n;if(!e.css&&!t.links||!Ql())return;let a=[((r=e.css)===null||r===void 0?void 0:r.map(l=>({rel:"stylesheet",href:l})))??[],((n=t.links)===null||n===void 0?void 0:n.call(t))??[]].flat(1);if(a.length===0)return;let o=[];for(let l of a)!nr(l)&&l.rel==="stylesheet"&&o.push({...l,rel:"preload",as:"style"});let i=o.filter(l=>(!l.media||window.matchMedia(l.media).matches)&&!document.querySelector(`link[rel="stylesheet"][href="${l.href}"]`));await Promise.all(i.map(Yl))}async function Yl(e){return new Promise(t=>{let r=document.createElement("link");Object.assign(r,e);function n(){document.head.contains(r)&&document.head.removeChild(r)}r.onload=()=>{n(),t()},r.onerror=()=>{n(),t()},document.head.appendChild(r)})}function nr(e){return e!=null&&typeof e.page=="string"}function Xl(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Ca(e,t,r){let n=await Promise.all(e.map(async a=>{let o=await er(t.routes[a.route.id],r);return o.links?o.links():[]}));return Aa(n.flat(1).filter(Xl).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function Zr(e,t,r,n,a,o){let i=Oa(e),l=(c,h)=>r[h]?c.route.id!==r[h].route.id:!0,s=(c,h)=>{var p;return r[h].pathname!==c.pathname||((p=r[h].route.path)===null||p===void 0?void 0:p.endsWith("*"))&&r[h].params["*"]!==c.params["*"]};return o==="data"&&a.search!==i.search?t.filter((c,h)=>{if(!n.routes[c.route.id].hasLoader)return!1;if(l(c,h)||s(c,h))return!0;if(c.route.shouldRevalidate){var x;let y=c.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((x=r[0])===null||x===void 0?void 0:x.params)||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):t.filter((c,h)=>{let p=n.routes[c.route.id];return(o==="assets"||p.hasLoader)&&(l(c,h)||s(c,h))})}function Na(e,t,r){let n=Oa(e);return en(t.filter(a=>r.routes[a.route.id].hasLoader).map(a=>{let{pathname:o,search:i}=n,l=new URLSearchParams(i);return l.set("_data",a.route.id),`${o}?${l}`}))}function Ma(e,t){return en(e.map(r=>{let n=t.routes[r.route.id],a=[n.module];return n.imports&&(a=a.concat(n.imports)),a}).flat(1))}function Gl(e,t){return en(e.map(r=>{let n=t.routes[r.route.id],a=[n.module];return n.imports&&(a=a.concat(n.imports)),a}).flat(1))}function en(e){return[...new Set(e)]}function ql(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function Aa(e,t){let r=new Set,n=new Set(t);return e.reduce((a,o)=>{if(t&&!nr(o)&&o.as==="script"&&o.href&&n.has(o.href))return a;let l=JSON.stringify(ql(o));return r.has(l)||(r.add(l),a.push({key:l,link:o})),a},[])}function Oa(e){let t=de(e);return t.search===void 0&&(t.search=""),t}var tr;function Ql(){if(tr!==void 0)return tr;let e=document.createElement("link");return tr=e.relList.supports("preload"),e=null,tr}var Zl={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},es=/[&><\u2028\u2029]/g;function Dt(e){return e.replace(es,t=>Zl[t])}function tn(e){return{__html:e}}function Ua(){let e=R.useContext(we);return tt(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function ar(){let e=R.useContext(_e);return tt(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Pt=R.createContext(void 0);Pt.displayName="Remix";function Lt(){let e=R.useContext(Pt);return tt(e,"You must render this element inside a <Remix> element"),e}function Ta(e,t){let[r,n]=R.useState(!1),[a,o]=R.useState(!1),{onFocus:i,onBlur:l,onMouseEnter:s,onMouseLeave:u,onTouchStart:c}=t,h=R.useRef(null);R.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let y=E=>{E.forEach(S=>{o(S.isIntersecting)})},v=new IntersectionObserver(y,{threshold:.5});return h.current&&v.observe(h.current),()=>{v.disconnect()}}},[e]);let p=()=>{e==="intent"&&n(!0)},x=()=>{e==="intent"&&(n(!1),o(!1))};return R.useEffect(()=>{if(r){let y=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(y)}}},[r]),[a,h,{onFocus:_t(i,p),onBlur:_t(l,x),onMouseEnter:_t(s,p),onMouseLeave:_t(u,x),onTouchStart:_t(c,p)}]}var ja=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ia=R.forwardRef(({to:e,prefetch:t="none",...r},n)=>{let a=typeof e=="string"&&ja.test(e),o=Be(e),[i,l,s]=Ta(t,r);return R.createElement(R.Fragment,null,R.createElement(Sa,Y({},r,s,{ref:Ba(n,l),to:e})),i&&!a?R.createElement(or,{page:o}):null)});Ia.displayName="NavLink";var ka=R.forwardRef(({to:e,prefetch:t="none",...r},n)=>{let a=typeof e=="string"&&ja.test(e),o=Be(e),[i,l,s]=Ta(t,r);return R.createElement(R.Fragment,null,R.createElement(qr,Y({},r,s,{ref:Ba(n,l),to:e})),i&&!a?R.createElement(or,{page:o}):null)});ka.displayName="Link";function _t(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function ts(){let{manifest:e,routeModules:t,criticalCss:r}=Lt(),{errors:n,matches:a}=ar(),o=n?a.slice(0,a.findIndex(l=>n[l.route.id])+1):a,i=R.useMemo(()=>La(o,t,e),[o,t,e]);return R.createElement(R.Fragment,null,r?R.createElement("style",{dangerouslySetInnerHTML:{__html:r}}):null,i.map(({key:l,link:s})=>nr(s)?R.createElement(or,Y({key:l},s)):R.createElement("link",Y({key:l},s))))}function or({page:e,...t}){let{router:r}=Ua(),n=R.useMemo(()=>De(r.routes,e),[r.routes,e]);return n?R.createElement(ns,Y({page:e,matches:n},t)):(console.warn(`Tried to prefetch ${e} but no routes matched.`),null)}function rs(e){let{manifest:t,routeModules:r}=Lt(),[n,a]=R.useState([]);return R.useEffect(()=>{let o=!1;return Ca(e,t,r).then(i=>{o||a(i)}),()=>{o=!0}},[e,t,r]),n}function ns({page:e,matches:t,...r}){let n=ae(),{manifest:a}=Lt(),{matches:o}=ar(),i=R.useMemo(()=>Zr(e,t,o,a,n,"data"),[e,t,o,a,n]),l=R.useMemo(()=>Zr(e,t,o,a,n,"assets"),[e,t,o,a,n]),s=R.useMemo(()=>Na(e,i,a),[i,e,a]),u=R.useMemo(()=>Ma(l,a),[l,a]),c=rs(l);return R.createElement(R.Fragment,null,s.map(h=>R.createElement("link",Y({key:h,rel:"prefetch",as:"fetch",href:h},r))),u.map(h=>R.createElement("link",Y({key:h,rel:"modulepreload",href:h},r))),c.map(({key:h,link:p})=>R.createElement("link",Y({key:h},p))))}function as(){let{routeModules:e}=Lt(),{errors:t,matches:r,loaderData:n}=ar(),a=ae(),o=r,i=null;if(t){let c=r.findIndex(h=>t[h.route.id]);o=r.slice(0,c+1),i=t[r[c].route.id]}let l=[],s=null,u=[];for(let c=0;c<o.length;c++){let h=o[c],p=h.route.id,x=n[p],y=h.params,v=e[p],E=[],S={id:p,data:x,meta:[],params:h.params,pathname:h.pathname,handle:h.route.handle,error:i};if(u[c]=S,v!=null&&v.meta?E=typeof v.meta=="function"?v.meta({data:x,params:y,location:a,matches:u,error:i}):Array.isArray(v.meta)?[...v.meta]:v.meta:s&&(E=[...s]),E=E||[],!Array.isArray(E))throw new Error("The route at "+h.route.path+` returns an invalid value. All route meta functions must return an array of meta objects.
|
|
3
|
-
|
|
4
|
-
To reference the meta function API, see https://remix.run/route/meta`);S.meta=E,u[c]=S,l=[...E],s=l}return R.createElement(R.Fragment,null,l.flat().map(c=>{if(!c)return null;if("tagName"in c){let{tagName:h,...p}=c;return os(h)?R.createElement(h,Y({key:JSON.stringify(p)},p)):(console.warn(`A meta object uses an invalid tagName: ${h}. Expected either 'link' or 'meta'`),null)}if("title"in c)return R.createElement("title",{key:"title"},String(c.title));if("charset"in c&&(c.charSet??=c.charset,delete c.charset),"charSet"in c&&c.charSet!=null)return typeof c.charSet=="string"?R.createElement("meta",{key:"charSet",charSet:c.charSet}):null;if("script:ld+json"in c)try{let h=JSON.stringify(c["script:ld+json"]);return R.createElement("script",{key:`script:ld+json:${h}`,type:"application/ld+json",dangerouslySetInnerHTML:{__html:h}})}catch{return null}return R.createElement("meta",Y({key:JSON.stringify(c)},c))}))}function os(e){return typeof e=="string"&&/^(meta|link)$/.test(e)}function Ha(e){return R.createElement(Tr,e)}var rn=!1;function is(e){let{manifest:t,serverHandoffString:r,abortDelay:n,serializeError:a}=Lt(),{router:o,static:i,staticContext:l}=Ua(),{matches:s}=ar(),u=qe();R.useEffect(()=>{rn=!0},[]);let c=(D,d)=>{let P;return a&&d instanceof Error?P=a(d):P=d,`${JSON.stringify(D)}:__remixContext.p(!1, ${Dt(JSON.stringify(P))})`},h=(D,d,P)=>{let j;try{j=JSON.stringify(P)}catch(L){return c(d,L)}return`${JSON.stringify(d)}:__remixContext.p(${Dt(j)})`},p=(D,d,P)=>{let j;return a&&P instanceof Error?j=a(P):j=P,`__remixContext.r(${JSON.stringify(D)}, ${JSON.stringify(d)}, !1, ${Dt(JSON.stringify(j))})`},x=(D,d,P)=>{let j;try{j=JSON.stringify(P)}catch(L){return p(D,d,L)}return`__remixContext.r(${JSON.stringify(D)}, ${JSON.stringify(d)}, ${Dt(j)})`},y=[],v=R.useMemo(()=>{var D;let d=l?`window.__remixContext = ${r};`:" ",P=l?.activeDeferreds;d+=P?["__remixContext.p = function(v,e,p,x) {"," if (typeof e !== 'undefined') {",` x=new Error("Unexpected Server Error");
|
|
5
|
-
x.stack=undefined;`," p=Promise.reject(x);"," } else {"," p=Promise.resolve(v);"," }"," return p;","};","__remixContext.n = function(i,k) {"," __remixContext.t = __remixContext.t || {};"," __remixContext.t[i] = __remixContext.t[i] || {};"," let p = new Promise((r, e) => {__remixContext.t[i][k] = {r:(v)=>{r(v);},e:(v)=>{e(v);}};});",typeof n=="number"?`setTimeout(() => {if(typeof p._error !== "undefined" || typeof p._data !== "undefined"){return;} __remixContext.t[i][k].e(new Error("Server timeout."))}, ${n});`:""," return p;","};","__remixContext.r = function(i,k,v,e,p,x) {"," p = __remixContext.t[i][k];"," if (typeof e !== 'undefined') {",` x=new Error("Unexpected Server Error");
|
|
6
|
-
x.stack=undefined;`," p.e(x);"," } else {"," p.r(v);"," }","};"].join(`
|
|
7
|
-
`)+Object.entries(P).map(([L,I])=>{let z=new Set(I.pendingKeys),ee=I.deferredKeys.map(X=>{if(z.has(X))return y.push(R.createElement(Fa,{key:`${L} | ${X}`,deferredData:I,routeId:L,dataKey:X,scriptProps:e,serializeData:x,serializeError:p})),`${JSON.stringify(X)}:__remixContext.n(${JSON.stringify(L)}, ${JSON.stringify(X)})`;{let oe=I.data[X];return typeof oe._error<"u"?c(X,oe._error):h(L,X,oe._data)}}).join(`,
|
|
8
|
-
`);return`Object.assign(__remixContext.state.loaderData[${JSON.stringify(L)}], {${ee}});`}).join(`
|
|
9
|
-
`)+(y.length>0?`__remixContext.a=${y.length};`:""):"";let j=i?`${(D=t.hmr)!==null&&D!==void 0&&D.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}import ${JSON.stringify(t.url)};
|
|
10
|
-
${s.map((L,I)=>`import * as route${I} from ${JSON.stringify(t.routes[L.route.id].module)};`).join(`
|
|
11
|
-
`)}
|
|
12
|
-
window.__remixRouteModules = {${s.map((L,I)=>`${JSON.stringify(L.route.id)}:route${I}`).join(",")}};
|
|
13
|
-
|
|
14
|
-
import(${JSON.stringify(t.entry.module)});`:" ";return R.createElement(R.Fragment,null,R.createElement("script",Y({},e,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:tn(d),type:void 0})),R.createElement("script",Y({},e,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:tn(j),type:"module",async:!0})))},[]);if(!i&&typeof __remixContext=="object"&&__remixContext.a)for(let D=0;D<__remixContext.a;D++)y.push(R.createElement(Fa,{key:D,scriptProps:e,serializeData:x,serializeError:p}));let E=R.useMemo(()=>{if(u.location){let D=De(o.routes,u.location);return tt(D,`No routes match path "${u.location.pathname}"`),D}return[]},[u.location,o.routes]),S=s.concat(E).map(D=>{let d=t.routes[D.route.id];return(d.imports||[]).concat([d.module])}).flat(1),F=rn?[]:t.entry.imports.concat(S);return rn?null:R.createElement(R.Fragment,null,R.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin}),ss(F).map(D=>R.createElement("link",{key:D,rel:"modulepreload",href:D,crossOrigin:e.crossOrigin})),v,y)}function Fa({dataKey:e,deferredData:t,routeId:r,scriptProps:n,serializeData:a,serializeError:o}){return typeof document>"u"&&t&&e&&r&&tt(t.pendingKeys.includes(e),`Deferred data for route ${r} with key ${e} was not pending but tried to render a script for it.`),R.createElement(R.Suspense,{fallback:typeof document>"u"&&t&&e&&r?null:R.createElement("script",Y({},n,{async:!0,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:" "}}))},typeof document>"u"&&t&&e&&r?R.createElement(Ha,{resolve:t.data[e],errorElement:R.createElement(ls,{dataKey:e,routeId:r,scriptProps:n,serializeError:o}),children:i=>R.createElement("script",Y({},n,{async:!0,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:a(r,e,i)}}))}):R.createElement("script",Y({},n,{async:!0,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:" "}})))}function ls({dataKey:e,routeId:t,scriptProps:r,serializeError:n}){let a=Yt();return R.createElement("script",Y({},r,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:n(t,e,a)}}))}function ss(e){return[...new Set(e)]}function us(){return Or()}var cs=()=>null;function Ba(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var re=je(ye());Ce();var ir=class extends re.Component{constructor(t){super(t),this.state={error:t.error||null,location:t.location}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location?{error:t.error||null,location:t.location}:{error:t.error||r.error,location:r.location}}render(){return this.state.error?re.createElement(nn,{error:this.state.error}):this.props.children}};function nn({error:e}){if(console.error(e),He(e))return re.createElement($a,{title:"Unhandled Thrown Response!"},re.createElement("h1",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},e.status," ",e.statusText));let t;if(e instanceof Error)t=e;else{let r=e==null?"Unknown Error":typeof e=="object"&&"toString"in e?e.toString():JSON.stringify(e);t=new Error(r)}return re.createElement($a,{title:"Application Error!"},re.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},re.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),re.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},t.stack)))}function $a({title:e,children:t}){return re.createElement("html",{lang:"en"},re.createElement("head",null,re.createElement("meta",{charSet:"utf-8"}),re.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),re.createElement("title",null,e)),re.createElement("body",null,t,re.createElement("script",{dangerouslySetInnerHTML:{__html:`
|
|
15
|
-
console.log(
|
|
16
|
-
"\u{1F4BF} Hey developer\u{1F44B}. You can provide a way better UX than this when your app throws errors. Check out https://remix.run/guides/errors for more information."
|
|
17
|
-
);
|
|
18
|
-
`}})))}var za;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(za||(za={}));function Va(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}var Wa;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Wa||(Wa={}));var rt=class extends Error{},lr=class{constructor(t,r){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],Va(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let n;this.abortPromise=new Promise((o,i)=>n=i),this.controller=new AbortController;let a=()=>n(new rt("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",a),this.controller.signal.addEventListener("abort",a),this.data=Object.entries(t).reduce((o,i)=>{let[l,s]=i;return Object.assign(o,{[l]:this.trackPromise(l,s)})},{}),this.done&&this.unlistenAbortSignal(),this.init=r}trackPromise(t,r){if(!(r instanceof Promise))return r;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let n=Promise.race([r,this.abortPromise]).then(a=>this.onSettle(n,t,void 0,a),a=>this.onSettle(n,t,a));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(t,r,n,a){if(this.controller.signal.aborted&&n instanceof rt)return this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>n}),Promise.reject(n);if(this.pendingKeysSet.delete(r),this.done&&this.unlistenAbortSignal(),n===void 0&&a===void 0){let o=new Error('Deferred data for key "'+r+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(t,"_error",{get:()=>o}),this.emit(!1,r),Promise.reject(o)}return a===void 0?(Object.defineProperty(t,"_error",{get:()=>n}),this.emit(!1,r),Promise.reject(n)):(Object.defineProperty(t,"_data",{get:()=>a}),this.emit(!1,r),a)}emit(t,r){this.subscribers.forEach(n=>n(t,r))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,r)=>this.pendingKeysSet.delete(r)),this.emit(!0)}async resolveData(t){let r=!1;if(!this.done){let n=()=>this.cancel();t.addEventListener("abort",n),r=await new Promise(a=>{this.subscribe(o=>{t.removeEventListener("abort",n),(o||this.done)&&a(o)})})}return r}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return Va(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,r)=>{let[n,a]=r;return Object.assign(t,{[n]:fs(a)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}};function ds(e){return e instanceof Promise&&e._tracked===!0}function fs(e){if(!ds(e))return e;if(e._error)throw e._error;return e._data}var nt=class{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};var Ka=["post","put","patch","delete"],Su=new Set(Ka),hs=["get",...Ka],xu=new Set(hs);var Du=Symbol("deferred");function Ja(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new nt(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let i=new o(a.message);i.stack=a.stack,r[n]=i}catch{}}if(r[n]==null){let o=new Error(a.message);o.stack=a.stack,r[n]=o}}else r[n]=a;return r}var to=je(ye());Ce();function Xa(e){return e.headers.get("X-Remix-Catch")!=null}function ms(e){return e.headers.get("X-Remix-Error")!=null}function ps(e){return gs(e)&&e.status>=400&&e.headers.get("X-Remix-Error")==null&&e.headers.get("X-Remix-Catch")==null&&e.headers.get("X-Remix-Response")==null}function Ga(e){return e.headers.get("X-Remix-Redirect")!=null}function qa(e){var t;return!!((t=e.headers.get("Content-Type"))!==null&&t!==void 0&&t.match(/text\/remix-deferred/))}function gs(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}async function an(e,t,r=0){let n=new URL(e.url);n.searchParams.set("_data",t);let a={signal:e.signal};if(e.method!=="GET"){a.method=e.method;let l=e.headers.get("Content-Type");l&&/\bapplication\/json\b/.test(l)?(a.headers={"Content-Type":l},a.body=JSON.stringify(await e.json())):l&&/\btext\/plain\b/.test(l)?(a.headers={"Content-Type":l},a.body=await e.text()):l&&/\bapplication\/x-www-form-urlencoded\b/.test(l)?a.body=new URLSearchParams(await e.text()):a.body=await e.formData()}r>0&&await new Promise(l=>setTimeout(l,5**r*10));let o=window.__remixRevalidation,i=await fetch(n.href,a).catch(l=>{if(typeof o=="number"&&o===window.__remixRevalidation&&l?.name==="TypeError"&&r<3)return an(e,t,r+1);throw l});if(ms(i)){let l=await i.json(),s=new Error(l.message);return s.stack=l.stack,s}if(ps(i)){let l=await i.text(),s=new Error(l);return s.stack=void 0,s}return i}var ys="__deferred_promise:";async function Qa(e){if(!e)throw new Error("parseDeferredReadableStream requires stream argument");let t,r={};try{let n=vs(e),o=(await n.next()).value;if(!o)throw new Error("no critical data");let i=JSON.parse(o);if(typeof i=="object"&&i!==null)for(let[l,s]of Object.entries(i))typeof s!="string"||!s.startsWith(ys)||(t=t||{},t[l]=new Promise((u,c)=>{r[l]={resolve:h=>{u(h),delete r[l]},reject:h=>{c(h),delete r[l]}}}));return(async()=>{try{for await(let l of n){let[s,...u]=l.split(":"),c=u.join(":"),h=JSON.parse(c);if(s==="data")for(let[p,x]of Object.entries(h))r[p]&&r[p].resolve(x);else if(s==="error")for(let[p,x]of Object.entries(h)){let y=new Error(x.message);y.stack=x.stack,r[p]&&r[p].reject(y)}}for(let[l,s]of Object.entries(r))s.reject(new rt(`Deferred ${l} will never be resolved`))}catch(l){for(let s of Object.values(r))s.reject(l)}})(),new lr({...i,...t})}catch(n){for(let a of Object.values(r))a.reject(n);throw n}}async function*vs(e){let t=e.getReader(),r=[],n=[],a=!1,o=new TextEncoder,i=new TextDecoder,l=async()=>{if(n.length>0)return n.shift();for(;!a&&n.length===0;){let u=await t.read();if(u.done){a=!0;break}r.push(u.value);try{let h=i.decode(Ya(...r)).split(`
|
|
19
|
-
|
|
20
|
-
`);if(h.length>=2&&(n.push(...h.slice(0,-1)),r=[o.encode(h.slice(-1).join(`
|
|
21
|
-
|
|
22
|
-
`))]),n.length>0)break}catch{continue}}return n.length>0||r.length>0&&(n=i.decode(Ya(...r)).split(`
|
|
23
|
-
|
|
24
|
-
`).filter(c=>c),r=[]),n.shift()},s=await l();for(;s;)yield s,s=await l()}function Ya(...e){let t=new Uint8Array(e.reduce((n,a)=>n+a.length,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}function ro(e){let t={};return Object.values(e).forEach(r=>{let n=r.parentId||"";t[n]||(t[n]=[]),t[n].push(r)}),t}function no(e,t,r,n){return sr(t,r,n,"",ro(t),e)}function sr(e,t,r,n="",a=ro(e),o){return(a[n]||[]).map(i=>{let l=t?.[i.id],s={id:i.id,index:i.index,path:i.path,async loader({request:c}){let h=t[i.id]?rr(i,t[i.id]):Promise.resolve();try{return i.hasLoader?eo(c,i):null}finally{await h}},async action({request:c}){let h=t[i.id]?rr(i,t[i.id]):Promise.resolve();try{if(!i.hasAction){let p=`Route "${i.id}" does not have an action, but you are trying to submit to it. To fix this, please add an \`action\` function to the route`;return console.error(p),Promise.reject(new nt(405,"Method Not Allowed",new Error(p),!0))}return eo(c,i)}finally{await h}},...l?{Component:ao(l),ErrorBoundary:l.ErrorBoundary?l.ErrorBoundary:i.id==="root"?()=>to.createElement(nn,{error:mt()}):void 0,handle:l.handle,shouldRevalidate:o?Za(i.id,l.shouldRevalidate,o):l.shouldRevalidate}:{lazy:async()=>{let c=await Rs(i,t);return o&&(c.shouldRevalidate=Za(i.id,c.shouldRevalidate,o)),c}}},u=sr(e,t,r,i.id,a,o);return u.length>0&&(s.children=u),s})}function Za(e,t,r){let n=!1;return a=>n?t?t(a):a.defaultShouldRevalidate:(n=!0,r.has(e))}async function Rs(e,t){let r=await er(e,t);return await rr(e,r),{Component:ao(r),ErrorBoundary:r.ErrorBoundary,handle:r.handle,links:r.links,meta:r.meta,shouldRevalidate:r.shouldRevalidate}}async function eo(e,t){let r=await an(e,t.id);if(r instanceof Error)throw r;if(Ga(r))throw ws(r);if(Xa(r))throw r;return qa(r)&&r.body?await Qa(r.body):r}function ws(e){let t=parseInt(e.headers.get("X-Remix-Status"),10)||302,r=e.headers.get("X-Remix-Redirect"),n={},a=e.headers.get("X-Remix-Revalidate");a&&(n["X-Remix-Revalidate"]=a);let o=e.headers.get("X-Remix-Reload-Document");return o&&(n["X-Remix-Reload-Document"]=o),$t(r,{status:t,headers:n})}function ao(e){if(e.default==null)return;if(!(typeof e.default=="object"&&Object.keys(e.default).length===0))return e.default}var Ne;var on,zu=new Promise(e=>{on=e}).catch(()=>{}),Es=()=>{};function bs(e){if(!Ne){let o=window.__remixContext.url,i=window.location.pathname;if(o!==i){let u=`Initial URL (${o}) does not match URL at time of hydration (${i}), reloading page...`;return console.error(u),window.location.reload(),ie.createElement(ie.Fragment,null)}let l=sr(window.__remixManifest.routes,window.__remixRouteModules,window.__remixContext.future),s=window.__remixContext.state;s&&s.errors&&(s={...s,errors:Ja(s.errors)}),Ne=wa(l,{hydrationData:s,future:{v7_normalizeFormMethod:!0,v7_fetcherPersist:window.__remixContext.future.v3_fetcherPersist}}),Ne.createRoutesForHMR=no,window.__remixRouter=Ne,on&&on(Ne)}let[t,r]=ie.useReducer(Es,window.__remixContext.criticalCss);window.__remixClearCriticalCss=r;let[n,a]=ie.useState(Ne.state.location);return ie.useLayoutEffect(()=>Ne.subscribe(o=>{o.location!==n&&a(o.location)}),[n]),ie.createElement(Pt.Provider,{value:{manifest:window.__remixManifest,routeModules:window.__remixRouteModules,future:window.__remixContext.future,criticalCss:t}},ie.createElement(ir,{location:n},ie.createElement(ba,{router:Ne,fallbackElement:null,future:{v7_startTransition:!0}})))}Ce();var ur=je(ye());Ce();var oo="positions";function Ss({getKey:e,...t}){let r=ae(),n=Qe();_a({getKey:e,storageKey:oo});let a=ur.useMemo(()=>{if(!e)return null;let i=e(r,n);return i!==r.key?i:null},[]),o=((i,l)=>{if(!window.history.state||!window.history.state.key){let s=Math.random().toString(32).slice(2);window.history.replaceState({key:s},"")}try{let u=JSON.parse(sessionStorage.getItem(i)||"{}")[l||window.history.state.key];typeof u=="number"&&window.scrollTo(0,u)}catch(s){console.error(s),sessionStorage.removeItem(i)}}).toString();return ur.createElement("script",Y({},t,{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${o})(${JSON.stringify(oo)}, ${JSON.stringify(a)})`}}))}export{Tt as a,je as b,ye as c,He as d,ae as e,Wt as f,qe as g,mt as h,$n as i,Bl as j,xa as k,ka as l,ts as m,as as n,is as o,us as p,cs as q,bs as r,Ss as s,Ns as t};
|
|
25
|
-
/*! Bundled license information:
|
|
26
|
-
|
|
27
|
-
react/cjs/react.production.min.js:
|
|
28
|
-
(**
|
|
29
|
-
* @license React
|
|
30
|
-
* react.production.min.js
|
|
31
|
-
*
|
|
32
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the MIT license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*)
|
|
37
|
-
|
|
38
|
-
@remix-run/router/dist/router.js:
|
|
39
|
-
(**
|
|
40
|
-
* @remix-run/router v1.11.0
|
|
41
|
-
*
|
|
42
|
-
* Copyright (c) Remix Software Inc.
|
|
43
|
-
*
|
|
44
|
-
* This source code is licensed under the MIT license found in the
|
|
45
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
46
|
-
*
|
|
47
|
-
* @license MIT
|
|
48
|
-
*)
|
|
49
|
-
|
|
50
|
-
react-router/dist/index.js:
|
|
51
|
-
(**
|
|
52
|
-
* React Router v6.18.0
|
|
53
|
-
*
|
|
54
|
-
* Copyright (c) Remix Software Inc.
|
|
55
|
-
*
|
|
56
|
-
* This source code is licensed under the MIT license found in the
|
|
57
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
58
|
-
*
|
|
59
|
-
* @license MIT
|
|
60
|
-
*)
|
|
61
|
-
|
|
62
|
-
@remix-run/router/dist/router.js:
|
|
63
|
-
(**
|
|
64
|
-
* @remix-run/router v1.11.0
|
|
65
|
-
*
|
|
66
|
-
* Copyright (c) Remix Software Inc.
|
|
67
|
-
*
|
|
68
|
-
* This source code is licensed under the MIT license found in the
|
|
69
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
70
|
-
*
|
|
71
|
-
* @license MIT
|
|
72
|
-
*)
|
|
73
|
-
|
|
74
|
-
react-router-dom/dist/index.js:
|
|
75
|
-
(**
|
|
76
|
-
* React Router DOM v6.18.0
|
|
77
|
-
*
|
|
78
|
-
* Copyright (c) Remix Software Inc.
|
|
79
|
-
*
|
|
80
|
-
* This source code is licensed under the MIT license found in the
|
|
81
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
82
|
-
*
|
|
83
|
-
* @license MIT
|
|
84
|
-
*)
|
|
85
|
-
|
|
86
|
-
react/cjs/react-jsx-runtime.production.min.js:
|
|
87
|
-
(**
|
|
88
|
-
* @license React
|
|
89
|
-
* react-jsx-runtime.production.min.js
|
|
90
|
-
*
|
|
91
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
92
|
-
*
|
|
93
|
-
* This source code is licensed under the MIT license found in the
|
|
94
|
-
* LICENSE file in the root directory of this source tree.
|
|
95
|
-
*)
|
|
96
|
-
|
|
97
|
-
@remix-run/react/dist/esm/_virtual/_rollupPluginBabelHelpers.js:
|
|
98
|
-
(**
|
|
99
|
-
* @remix-run/react v2.2.0
|
|
100
|
-
*
|
|
101
|
-
* Copyright (c) Remix Software Inc.
|
|
102
|
-
*
|
|
103
|
-
* This source code is licensed under the MIT license found in the
|
|
104
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
105
|
-
*
|
|
106
|
-
* @license MIT
|
|
107
|
-
*)
|
|
108
|
-
|
|
109
|
-
@remix-run/react/dist/esm/invariant.js:
|
|
110
|
-
(**
|
|
111
|
-
* @remix-run/react v2.2.0
|
|
112
|
-
*
|
|
113
|
-
* Copyright (c) Remix Software Inc.
|
|
114
|
-
*
|
|
115
|
-
* This source code is licensed under the MIT license found in the
|
|
116
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
117
|
-
*
|
|
118
|
-
* @license MIT
|
|
119
|
-
*)
|
|
120
|
-
|
|
121
|
-
@remix-run/react/dist/esm/routeModules.js:
|
|
122
|
-
(**
|
|
123
|
-
* @remix-run/react v2.2.0
|
|
124
|
-
*
|
|
125
|
-
* Copyright (c) Remix Software Inc.
|
|
126
|
-
*
|
|
127
|
-
* This source code is licensed under the MIT license found in the
|
|
128
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
129
|
-
*
|
|
130
|
-
* @license MIT
|
|
131
|
-
*)
|
|
132
|
-
|
|
133
|
-
@remix-run/react/dist/esm/links.js:
|
|
134
|
-
(**
|
|
135
|
-
* @remix-run/react v2.2.0
|
|
136
|
-
*
|
|
137
|
-
* Copyright (c) Remix Software Inc.
|
|
138
|
-
*
|
|
139
|
-
* This source code is licensed under the MIT license found in the
|
|
140
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
141
|
-
*
|
|
142
|
-
* @license MIT
|
|
143
|
-
*)
|
|
144
|
-
|
|
145
|
-
@remix-run/react/dist/esm/markup.js:
|
|
146
|
-
(**
|
|
147
|
-
* @remix-run/react v2.2.0
|
|
148
|
-
*
|
|
149
|
-
* Copyright (c) Remix Software Inc.
|
|
150
|
-
*
|
|
151
|
-
* This source code is licensed under the MIT license found in the
|
|
152
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
153
|
-
*
|
|
154
|
-
* @license MIT
|
|
155
|
-
*)
|
|
156
|
-
|
|
157
|
-
@remix-run/react/dist/esm/components.js:
|
|
158
|
-
(**
|
|
159
|
-
* @remix-run/react v2.2.0
|
|
160
|
-
*
|
|
161
|
-
* Copyright (c) Remix Software Inc.
|
|
162
|
-
*
|
|
163
|
-
* This source code is licensed under the MIT license found in the
|
|
164
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
165
|
-
*
|
|
166
|
-
* @license MIT
|
|
167
|
-
*)
|
|
168
|
-
|
|
169
|
-
@remix-run/react/dist/esm/errorBoundaries.js:
|
|
170
|
-
(**
|
|
171
|
-
* @remix-run/react v2.2.0
|
|
172
|
-
*
|
|
173
|
-
* Copyright (c) Remix Software Inc.
|
|
174
|
-
*
|
|
175
|
-
* This source code is licensed under the MIT license found in the
|
|
176
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
177
|
-
*
|
|
178
|
-
* @license MIT
|
|
179
|
-
*)
|
|
180
|
-
|
|
181
|
-
@remix-run/router/dist/router.js:
|
|
182
|
-
(**
|
|
183
|
-
* @remix-run/router v1.11.0
|
|
184
|
-
*
|
|
185
|
-
* Copyright (c) Remix Software Inc.
|
|
186
|
-
*
|
|
187
|
-
* This source code is licensed under the MIT license found in the
|
|
188
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
189
|
-
*
|
|
190
|
-
* @license MIT
|
|
191
|
-
*)
|
|
192
|
-
|
|
193
|
-
@remix-run/react/dist/esm/errors.js:
|
|
194
|
-
(**
|
|
195
|
-
* @remix-run/react v2.2.0
|
|
196
|
-
*
|
|
197
|
-
* Copyright (c) Remix Software Inc.
|
|
198
|
-
*
|
|
199
|
-
* This source code is licensed under the MIT license found in the
|
|
200
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
201
|
-
*
|
|
202
|
-
* @license MIT
|
|
203
|
-
*)
|
|
204
|
-
|
|
205
|
-
@remix-run/react/dist/esm/data.js:
|
|
206
|
-
(**
|
|
207
|
-
* @remix-run/react v2.2.0
|
|
208
|
-
*
|
|
209
|
-
* Copyright (c) Remix Software Inc.
|
|
210
|
-
*
|
|
211
|
-
* This source code is licensed under the MIT license found in the
|
|
212
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
213
|
-
*
|
|
214
|
-
* @license MIT
|
|
215
|
-
*)
|
|
216
|
-
|
|
217
|
-
@remix-run/react/dist/esm/routes.js:
|
|
218
|
-
(**
|
|
219
|
-
* @remix-run/react v2.2.0
|
|
220
|
-
*
|
|
221
|
-
* Copyright (c) Remix Software Inc.
|
|
222
|
-
*
|
|
223
|
-
* This source code is licensed under the MIT license found in the
|
|
224
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
225
|
-
*
|
|
226
|
-
* @license MIT
|
|
227
|
-
*)
|
|
228
|
-
|
|
229
|
-
@remix-run/react/dist/esm/browser.js:
|
|
230
|
-
(**
|
|
231
|
-
* @remix-run/react v2.2.0
|
|
232
|
-
*
|
|
233
|
-
* Copyright (c) Remix Software Inc.
|
|
234
|
-
*
|
|
235
|
-
* This source code is licensed under the MIT license found in the
|
|
236
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
237
|
-
*
|
|
238
|
-
* @license MIT
|
|
239
|
-
*)
|
|
240
|
-
|
|
241
|
-
@remix-run/react/dist/esm/scroll-restoration.js:
|
|
242
|
-
(**
|
|
243
|
-
* @remix-run/react v2.2.0
|
|
244
|
-
*
|
|
245
|
-
* Copyright (c) Remix Software Inc.
|
|
246
|
-
*
|
|
247
|
-
* This source code is licensed under the MIT license found in the
|
|
248
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
249
|
-
*
|
|
250
|
-
* @license MIT
|
|
251
|
-
*)
|
|
252
|
-
|
|
253
|
-
@remix-run/react/dist/esm/index.js:
|
|
254
|
-
(**
|
|
255
|
-
* @remix-run/react v2.2.0
|
|
256
|
-
*
|
|
257
|
-
* Copyright (c) Remix Software Inc.
|
|
258
|
-
*
|
|
259
|
-
* This source code is licensed under the MIT license found in the
|
|
260
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
261
|
-
*
|
|
262
|
-
* @license MIT
|
|
263
|
-
*)
|
|
264
|
-
*/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as d}from"/build/_shared/chunk-AL2GFMRM.js";import{a as f,b as t,c as R,r as i,t as n}from"/build/_shared/chunk-QKOGMPSY.js";var c=f(e=>{"use strict";var a=d();e.createRoot=a.createRoot,e.hydrateRoot=a.hydrateRoot;var E});var o=t(R()),l=t(c()),r=t(n());function s(){(0,o.startTransition)(()=>{(0,l.hydrateRoot)(document,(0,r.jsx)(o.StrictMode,{children:(0,r.jsx)(i,{})}))})}typeof requestIdleCallback=="function"?requestIdleCallback(s):setTimeout(s,1);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
window.__remixManifest={"entry":{"module":"/build/entry.client-53JI5JAC.js","imports":["/build/_shared/chunk-AL2GFMRM.js","/build/_shared/chunk-QKOGMPSY.js"]},"routes":{"root":{"id":"root","path":"","module":"/build/root-C7SUUCBF.js","imports":["/build/_shared/chunk-7ZRMUBOE.js"],"hasAction":false,"hasLoader":false,"hasErrorBoundary":true},"routes/$repo.$":{"id":"routes/$repo.$","parentId":"root","path":":repo/*","module":"/build/routes/$repo.$-7NVZ73B2.js","imports":["/build/_shared/chunk-MFUESDJJ.js"],"hasAction":true,"hasLoader":true,"hasErrorBoundary":true},"routes/_index":{"id":"routes/_index","parentId":"root","index":true,"module":"/build/routes/_index-62BORZC7.js","imports":["/build/_shared/chunk-MFUESDJJ.js"],"hasAction":false,"hasLoader":true,"hasErrorBoundary":false}},"version":"3cc98547","url":"/build/manifest-3CC98547.js"};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as V,ba as k}from"/build/_shared/chunk-7ZRMUBOE.js";import{a as J,b as x,c as Q,d as j,h as Y,i as D,m as g,n as u,o as f,q as C,s as E,t as M}from"/build/_shared/chunk-QKOGMPSY.js";var O=J((at,N)=>{(()=>{"use strict";var i={n:r=>{var t=r&&r.__esModule?()=>r.default:()=>r;return i.d(t,{a:t}),t},d:(r,t)=>{for(var o in t)i.o(t,o)&&!i.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:t[o]})},o:(r,t)=>Object.prototype.hasOwnProperty.call(r,t),r:r=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})}},b={};i.r(b),i.d(b,{default:()=>H,useKonami:()=>q});let w=Q();var z=i.n(w);let K=V();var p=i.n(K);let L=function(){function r(t,o){this.t=o,this.fn=t,this.timerIntervalID=setInterval(this.fn,this.t)}return r.prototype.stop=function(){return this.timerIntervalID&&(clearInterval(this.timerIntervalID),this.timerIntervalID=null),this},r.prototype.start=function(){return this.timerIntervalID||(this.stop(),this.timerIntervalID=setInterval(this.fn,this.t)),this},r.prototype.reset=function(t){return this.t=t,this.stop().start()},r}(),P=function(r,t){return!(!Array.isArray(r)||!Array.isArray(t))&&r.length===t.length&&r.every(function(o,e){return o===t[e]})};var h,_=[38,38,40,40,37,39,37,39,66,65],B=(h=function(r,t){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n])},h(r,t)},function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=r}h(r,t),r.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}),F={action:p().func,className:p().string,code:p().arrayOf(p().number),disabled:p().bool,onTimeout:p().func,resetDelay:p().number,timeout:p().number},v=function(r){function t(o){var e=r.call(this,o)||this;return e.state={done:!1,input:[]},e.timeoutID=null,e.onKeyUp=e.onKeyUp.bind(e),e.resetInput=e.resetInput.bind(e),e}return B(t,r),t.prototype.componentDidMount=function(){var o=this,e=this.props.resetDelay;document.addEventListener("keyup",this.onKeyUp);var n=Number(e);n!==0&&(this._timer=new L(function(){return o.resetInput()},n))},t.prototype.shouldComponentUpdate=function(o,e){return this.props.className!==o.className||this.props.disabled!==o.disabled||this.state.done!==e.done},t.prototype.componentWillUnmount=function(){var o=this.props.resetDelay;this.timeoutID&&clearTimeout(this.timeoutID),o!==0&&this._timer.stop(),document.removeEventListener("keyup",this.onKeyUp)},t.prototype.onKeyUp=function(o){var e=this,n=this.state,d=n.done,l=n.input,s=this.props,m=s.action,c=s.code,G=s.disabled,I=s.onTimeout,W=s.resetDelay,S=s.timeout,y=Number(W);G||(y!==0&&this._timer.reset(y),l.push(o.keyCode),c&&l.splice(-c.length-1,l.length-c.length),this.setState({input:l},function(){P(e.state.input,c)&&!d&&(y!==0&&e._timer.stop(),e.setState({done:!0},function(){typeof m=="function"&&m()}),S&&(e.timeoutID=setTimeout(function(){e.setState({done:!1}),typeof I=="function"&&I()},Number(S))))}))},t.prototype.resetInput=function(){this.setState({input:[]})},t.prototype.render=function(){var o=this.props,e=o.children,n=o.className,d=o.disabled,l=this.state.done;return z().createElement("div",{className:"konami ".concat(n??""),style:{display:!l||d?"none":"block"}},e)},t}(z().Component);v.defaultProps={className:"",code:_,disabled:!1,resetDelay:1e3,children:null,action:null,onTimeout:null,timeout:0},v.propTypes=F;let q=function(r,t){var o=(t===void 0?{}:t).code,e=o===void 0?_:o,n=(0,w.useState)([]),d=n[0],l=n[1],s=(0,w.useCallback)(function(m){var c=d;c.push(m.keyCode),c.splice(-e.length-1,d.length-e.length),l(c),c.join("").includes(e.join(""))&&r()},[d,l,e,r]);(0,w.useEffect)(function(){return document.addEventListener("keyup",s),function(){document.removeEventListener("keyup",s)}},[s])},H=v;N.exports=b})()});var R=x(O());var U="/build/_assets/vars-4NGWF3MU.css";var X="/build/_assets/index-J6PD77UO.css";var A="/build/_assets/tailwind-HZOHM7R7.css";var a=x(M()),et=()=>[{title:"Git Truck"}];function rt(){return[...[U,X,A].map(i=>({rel:"stylesheet",href:i})),{rel:"favicon",type:"image/x-icon",href:"favicon.ico"},{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;900&family=Roboto+Mono:wght@400;700&display=swap"}]}function T(){return(0,R.useKonami)(()=>window.open("https://fruit-rush.joglr.dev","_self")),(0,a.jsxs)("html",{lang:"en",children:[(0,a.jsxs)("head",{children:[(0,a.jsx)("meta",{charSet:"utf-8"}),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width,initial-scale=1"}),(0,a.jsx)(u,{}),(0,a.jsx)(g,{})]}),(0,a.jsxs)("body",{className:"text-gray-600",children:[(0,a.jsx)(D,{}),(0,a.jsx)(E,{}),(0,a.jsx)(f,{}),(0,a.jsx)(C,{})]})]})}var ot=()=>{let i=Y();return j(i)?(0,a.jsxs)("html",{children:[(0,a.jsxs)("head",{children:[(0,a.jsx)("title",{children:"Oops! An error wasn't handled"}),(0,a.jsx)(u,{}),(0,a.jsx)(g,{})]}),(0,a.jsxs)("body",{children:[(0,a.jsxs)("h1",{children:["Error: ",i.status]}),(0,a.jsx)(k,{children:i.data.message}),(0,a.jsx)(f,{})]})]}):i instanceof Error?(0,a.jsxs)("html",{children:[(0,a.jsxs)("head",{children:[(0,a.jsx)("title",{children:"Oops! An error wasn't handled"}),(0,a.jsx)(u,{}),(0,a.jsx)(g,{})]}),(0,a.jsxs)("body",{children:[(0,a.jsx)("h1",{children:i.message}),(0,a.jsx)(k,{children:i.stack}),(0,a.jsx)(f,{})]})]}):null};export{ot as ErrorBoundary,T as default,rt as links,et as meta};
|