vendor: 3,283 bytes, line 1
1import{a as e}from"./rolldown-runtime-BYbx6iT9.js";import{i as t}from"./vendor-react-CoHUx9Ou.js";var n=e(t());function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var i;(function(e){e.Pop=`POP`,e.Push=`PUSH`,e.Replace=`REPLACE`})(i||={});var a=`popstate`;function o(e){e===void 0&&(e={});function t(e,t){let{pathname:n,search:r,hash:i}=e.location;return d(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){return typeof t==`string`?t:f(t)}return m(t,n,null,e)}function s(e,t){if(e===!1||e==null)throw Error(t)}function c(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function l(){return Math.random().toString(36).substr(2,8)}function u(e,t){return{usr:e.state,key:e.key,idx:t}}function d(e,t,n,i){return n===void 0&&(n=null),r({pathname:typeof e==`string`?e:e.pathname,search:``,hash:``},typeof t==`string`?p(t):t,{state:n,key:t&&t.key||i||l()})}function f(e){let{pathname:t=`/`,search:n=``,hash:r=``}=e;return n&&n!==`?`&&(t+=n.charAt(0)===`?`?n:`?`+n),r&&r!==`#`&&(t+=r.charAt(0)===`#`?r:`#`+r),t}function p(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function m(e,t,n,o){o===void 0&&(o={});let{window:c=document.defaultView,v5Compat:l=!1}=o,p=c.history,m=i.Pop,h=null,g=_();g??(g=0,p.replaceState(r({},p.state,{idx:g}),``));function _(){return(p.state||{idx:null}).idx}function v(){m=i.Pop;let e=_(),t=e==null?null:e-g;g=e,h&&h({action:m,location:S.location,delta:t})}function y(e,t){m=i.Push;let r=d(S.location,e,t);n&&n(r,e),g=_()+1;let a=u(r,g),o=S.createHref(r);try{p.pushState(a,``,o)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;c.location.assign(o)}l&&h&&h({action:m,location:S.location,delta:1})}function b(e,t){m=i.Replace;let r=d(S.location,e,t);n&&n(r,e),g=_();let a=u(r,g),o=S.createHref(r);p.replaceState(a,``,o),l&&h&&h({action:m,location:S.location,delta:0})}function x(e){let t=c.location.origin===`null`?c.location.href:c.location.origin,n=typeof e==`string`?e:f(e);return n=n.replace(/ $/,`%20`),s(t,`No window.location.(origin|href) available to create URL for href: `+n),new URL(n,t)}let S={get action(){return m},get location(){return e(c,p)},listen(e){if(h)throw Error(`A history only accepts one active listener`);return c.addEventListener(a,v),h=e,()=>{c.removeEventListener(a,v),h=null}},createHref(e){return t(c,e)},createURL:x,encodeLocation(e){let t=x(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:y,replace:b,go(e){return p.go(e)}};return S}var h;(function(e){e.data=`data`,e.deferred=`deferred`,e.redirect=`redirect`,e.error=`error`})(h||={});var g=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function _(e){return e.index===!0}function v(e,t,n,i){return n===void 0&&(n=[]),i===void 0&&(i={}),e.map((e,a)=>{let o=[...n,String(a)],c=typeof e.id==`string`?e.id:o.join(`-`);if(s(e.index!==!0||!e.children,`Cannot specify children on an index route`),s(!i[c],`Found a route id collision on i
1d "`+c+`". Route id's must be globally unique within Data Router usages`),_(e)){let n=r({},e,t(e),{id:c});return i[c]=n,n}else{let n=r({},e,t(e),{id:c,children:void 0});return i[c]=n,e.children&&(n.children=v(e.children,t,o,i)),n}})}function y(e,t,n){return n===void 0&&(n=`/`),b(e,t,n,!1)}function b(e,t,n,r){let i=re((typeof t==`string`?p(t):t).pathname||`/`,n);if(i==null)return null;let a=S(e);w(a);let o=null;for(let e=0;o==null&&e<a.length;++e){let t=P(i);o=j(a[e],t,r)}return o}function x(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function S(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r=``);let i=(e,i,a)=>{let o={relativePath:a===void 0?e.path||``:a,caseSensitive:e.caseSensitive===!0,childrenIndex:i,route:e};o.relativePath.startsWith(`/`)&&(s(o.relativePath.startsWith(r),`Absolute route path "`+o.relativePath+`" nested under path `+(`"`+r+`" is not valid. An absolute child route path `)+`must start with the combined path of all its parent routes.`),o.relativePath=o.relativePath.slice(r.length));let c=L([r,o.relativePath]),l=n.concat(o);e.children&&e.children.length>0&&(s(e.index!==!0,`Index routes must not have child routes. Please remove `+(`all child routes from route path "`+c+`".`)),S(e.children,t,l,c)),!(e.path==null&&!e.index)&&t.push({path:c,score:k(c,e.index),routesMeta:l})};return e.forEach((e,t)=>{var n;if(e.path===``||!((n=e.path)!=null&&n.includes(`?`)))i(e,t);else for(let n of C(e.path))i(e,t,n)}),t}function C(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=C(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function w(e){e.sort((e,t)=>e.score===t.score?A(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var T=/^:[\w-]+$/,E=3,ee=2,D=1,te=10,ne=-2,O=e=>e===`*`;function k(e,t){let n=e.split(`/`),r=n.length;return n.some(O)&&(r+=ne),t&&(r+=ee),n.filter(e=>!O(e)).reduce((e,t)=>e+(T.test(t)?E:t===``?D:te),r)}function A(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function j(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=M({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=M({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;
vendor: 36,981 bytes, lines 1-2
1Object.assign(i,u.params),o.push({params:i,pathname:L([a,u.pathname]),pathnameBase:ue(L([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=L([a,u.pathnameBase]))}return o}function M(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=N(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,t,n)=>{let{paramName:r,isOptional:i}=t;if(r===`*`){let e=s[n]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let c=s[n];return i&&!c?e[r]=void 0:e[r]=(c||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function N(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),c(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 r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:n!=null}),n?`/?([^\\/]+)?`:`/([^\\/]+)`));return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function P(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return c(!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 re(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}var ie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ae=e=>ie.test(e);function oe(e,t){t===void 0&&(t=`/`);let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?p(e):e,a;if(n)if(ae(n))a=n;else{if(n.includes(`//`)){let e=n;n=n.replace(/\/\/+/g,`/`),c(!1,`Pathnames cannot have embedded double slashes - normalizing `+(e+` -> `+n))}a=n.startsWith(`/`)?F(n.substring(1),`/`):F(n,t)}else a=t;return{pathname:a,search:R(r),hash:de(i)}}function F(e,t){let n=t.replace(/\/+$/,``).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function se(e,t,n,r){return`Cannot include a '`+e+`' character in a manually specified `+("`to."+t+"` field ["+JSON.stringify(r)+`]. Please separate it out to the `)+("`to."+n+"` field. Alternatively you may provide the full path as ")+`a string in <Link to="..."> and the router will parse it for you.`}function ce(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function I(e,t){let n=ce(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function le(e,t,n,i){i===void 0&&(i=!1);let a;typeof e==`string`?a=p(e):(a=r({},e),s(!a.pathname||!a.pathname.includes(`?`),se(`?`,`pathname`,`search`,a)),s(!a.pathname||!a.pathname.includes(`#`),se(`#`,`pathname`,`hash`,a)),s(!a.search||!a.search.includes(`#`),se(`#`,`search`,`hash`,a)));let o=e===``||a.pathname===``,c=o?`/`:a.pathname,l;if(c==null)l=n;else{let e=t.length-1;if(!i&&c.startsWith(`..`)){let t=c.split(`/`);for(;t[0]===`..`;)t.shift(),--e;a.pathname=t.join(`/`)}l=e>=0?t[e]:`/`}let u=oe(a,l),d=c&&c!==`/`&&c.endsWith(`/`),f=(o||c===`.`)&&n.endsWith(`/`);return!u.pathname.endsWith(`/`)&&(d||f)&&(u.pathname+=`/`),u}var L=e=>e.join(`/`).replace(/\/\/+/g,`/`),ue=e=>e.replace(/\/+$/,``).replace(/^\/*/,`/`),R=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,de=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,z=class{constructor(e,t,n,r){r===void 0&&(r=!1),this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function fe(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}var B=[`post`,`put`,`patch`,`delete`],V=new Set(B),H=[`get`,...B],pe=new Set(H),me=new Set([301,302,303,307,308]),he=new Set([307,308]),ge={state:`idle`,location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},_e={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ve={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},ye=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,be=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),xe=`remix-router-transitions`;function Se(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0,a=!n;s(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;o=e=>({hasErrorBoundary:t(e)})}else o=be;let l={},u=v(e.routes,o,void 0,l),f,p=e.basename||`/`,m=e.dataStrategy||Ne,g=e.patchRoutesOnNavigation,_=r({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),S=null,C=new Set,w=null,T=null,E=null,ee=e.hydrationData!=null,D=y(u,e.history.location,p),te=!1,ne=null;if(D==null&&!g){let t=G(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=qe(u);D=n,ne={[r.id]:t}}D&&!e.hydrationData&&kt(D,u,e.history.location.pathname).active&&(D=null);let O;if(!D){if(O=!1,D=[],_.v7_partialHydration){let t=kt(null,u,e.history.location.pathname);t.active&&t.matches&&(te=!0,D=t.matches)}}else if(D.some(e=>e.route.lazy))O=!1;else if(!D.some(e=>e.route.loader))O=!0;else if(_.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=D.findIndex(e=>n[e.route.id]!==void 0);O=D.slice(0,e+1).every(e=>!De(e.route,t,n))}else O=D.every(e=>!De(e.route,t,n))}else O=e.hydrationData!=null;let k,A={historyAction:e.history.action,location:e.history.location,matches:D,initialized:O,navigation:ge,restoreScrollPosition:e.hydrationData==null?null:!1,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||ne,fetchers:new Map,blockers:new Map},j=i.Pop,M=!1,N,P=!1,ie=new Map,ae=null,oe=!1,F=!1,se=[],ce=new Set,I=new Map,le=0,L=-1,ue=new Map,R=new Set,de=new Map,z=new Map,B=new Set,V=new Map,H=new Map,pe;function me(){if(S=e.history.listen(t=>{let{action:n,location:r,delta:i}=t;if(pe){pe(),pe=void 0;return}c(H.size===0||i!=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 a=St({currentLocation:A.location,nextLocation:r,historyAction:n});if(a&&i!=null){let t=new Promise(e=>{pe=e});e.history.go(i*-1),xt(a,{state:`blocked`,location:r,proceed(){xt(a,{state:`proceeding`,proceed:void 0,reset:void 0,location:r}),t.then(()=>e.history.go(i))},reset(){let e=new Map(A.blockers);e.set(a,ve),U({blockers:e})}});return}return W(n,r)}),n){pt(t,ie);let e=()=>mt(t,ie);t.addEventListener(`pagehide`,e),ae=()=>t.removeEventListener(`pagehide`,e)}return A.initialized||W(i.Pop,A.location,{initialHydration:!0}),k}function xe(){S&&S(),ae&&ae(),C.clear(),N&&N.abort(),A.fetchers.forEach((e,t)=>gt(t)),A.blockers.forEach((e,t)=>bt(t))}function Se(e){return C.add(e),()=>C.delete(e)}function U(e,t){t===void 0&&(t={}),A=r({},A,e);let n=[],i=[];_.v7_fetcherPersist&&A.fetchers.forEach((e,t)=>{e.state===`idle`&&(B.has(t)?i.push(t):n.push(t))}),B.forEach(e=>{!A.fetchers.has(e)&&!I.has(e)&&i.push(e)}),[...C].forEach(e=>e(A,{deletedFetchers:i,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),_.v7_fetcherPersist?(n.forEach(e=>A.fetchers.delete(e)),i.forEach(e=>gt(e))):i.forEach(e=>B.delete(e))}function Te(t,n,a){let{flushSync:o}=a===void 0?{}:a,s=A.actionData!=null&&A.navigation.formMethod!=null&&J(A.navigation.formMethod)&&A.navigation.state===`loading`&&t.state?._isRedirect!==!0,c;c=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:s?A.actionData:null;let l=n.loaderData?We(A.loaderData,n.loaderData,n.matches||[],n.errors):A.loaderData,d=A.blockers;d.size>0&&(d=new Map(d),d.forEach((e,t)=>d.set(t,ve)));let p=M===!0||A.navigation.formMethod!=null&&J(A.navigation.formMethod)&&t.state?._isRedirect!==!0;f&&=(u=f,void 0),oe||j===i.Pop||(j===i.Push?e.history.push(t,t.state):j===i.Replace&&e.history.replace(t,t.state));let m;if(j===i.Pop){let e=ie.get(A.location.pathname);e&&e.has(t.pathname)?m={currentLocation:A.location,nextLocation:t}:ie.has(t.pathname)&&(m={currentLocation:t,nextLocation:A.location})}else if(P){let e=ie.get(A.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),ie.set(A.location.pathname,e)),m={currentLocation:A.location,nextLocation:t}}U(r({},n,{actionData:c,loaderData:l,historyAction:j,location:t,initialized:!0,navigation:ge,revalidation:`idle`,restoreScrollPosition:Ot(t,n.matches||A.matches),preventScrollReset:p,blockers:d}),{viewTransitionOpts:m,flushSync:o===!0}),j=i.Pop,M=!1,P=!1,oe=!1,F=!1,se=[]}async function Oe(t,n){if(typeof t==`number`){e.history.go(t);return}let a=Ce(A.location,A.matches,p,_.v7_prependBasename,t,_.v7_relativeSplatPath,n?.fromRouteId,n?.relative),{path:o,submission:s,error:c}=we(_.v7_normalizeFormMethod,!1,a,n),l=A.location,u=d(A.location,o,n&&n.state);u=r({},u,e.history.encodeLocation(u));let f=n&&n.replace!=null?n.replace:void 0,m=i.Push;f===!0?m=i.Replace:f===!1||s!=null&&J(s.formMethod)&&s.formAction===A.location.pathname+A.location.search&&(m=i.Replace);let h=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,g=(n&&n.flushSync)===!0,v=St({currentLocation:l,nextLocation:u,historyAction:m});if(v){xt(v,{state:`blocked`,location:u,proceed(){xt(v,{state:`proceeding`,proceed:void 0,reset:void 0,location:u}),Oe(t,n)},reset(){let e=new Map(A.blockers);e.set(v,ve),U({blockers:e})}});return}return await W(m,u,{submission:s,pendingError:c,preventScrollReset:h,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:g})}function ke(){if(nt(),U({revalidation:`loading`}),A.navigation.state!==`submitting`){if(A.navigation.state===`idle`){W(A.historyAction,A.location,{startUninterruptedRevalidation:!0});return}W(j||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation,enableViewTransition:P===!0})}}async function W(t,n,i){N&&N.abort(),N=null,j=t,oe=(i&&i.startUninterruptedRevalidation)===!0,Dt(A.location,A.matches),M=(i&&i.preventScrollReset)===!0,P=(i&&i.enableViewTransition)===!0;let a=f||u,o=i&&i.overrideNavigation,s=i!=null&&i.initialHydration&&A.matches&&A.matches.length>0&&!te?A.matches:y(a,n,p),c=(i&&i.flushSync)===!0;if(s&&A.initialized&&!F&&Xe(A.location,n)&&!(i&&i.submission&&J(i.submission.formMethod))){Te(n,{matches:s},{flushSync:c});return}let l=kt(s,a,n.pathname);if(l.active&&l.matches&&(s=l.matches),!s){let{error:e,notFoundMatches:t,route:r}=Ct(n.pathname);Te(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:c});return}N=new AbortController;let d=ze(e.history,n,N.signal,i&&i.submission),m;if(i&&i.pendingError)m=[Ke(s).route.id,{type:h.error,error:i.pendingError}];else if(i&&i.submission&&J(i.submission.formMethod)){let t=await je(d,n,i.submission,s,l.active,{replace:i.replace,flushSync:c});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(K(r)&&fe(r.error)&&r.error.status===404){N=null,Te(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}s=t.matches||s,m=t.pendingActionResult,o=ct(n,i.submission),c=!1,l.active=!1,d=ze(e.history,d.url,d.signal)}let{shortCircuited:g,matches:_,loaderData:v,errors:b}=await Me(d,n,s,l.active,o,i&&i.submission,i&&i.fetcherSubmission,i&&i.replace,i&&i.initialHydration===!0,c,m);g||(N=null,Te(n,r({matches:_||s},Ge(m),{loaderData:v,errors:b})))}async function je(t,n,r,a,o,s){if(s===void 0&&(s={}),nt(),U({navigation:lt(n,r)},{flushSync:s.flushSync===!0}),o){let e=await At(a,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){let t=Ke(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:h.error,error:e.error}]}}else if(e.matches)a=e.matches;else{let{notFoundMatches:e,error:t,route:r}=Ct(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:h.error,error:t}]}}}let c,l=ot(a,n);if(!l.route.action&&!l.route.lazy)c={type:h.error,error:G(405,{method:t.method,pathname:n.pathname,routeId:l.route.id})};else if(c=(await et(`action`,A,t,[l],a,null))[l.route.id],t.signal.aborted)return{shortCircuited:!0};if($e(c)){let n;return n=s&&s.replace!=null?s.replace:Re(c.response.headers.get(`Location`),new URL(t.url),p,e.history)===A.location.pathname+A.location.search,await q(t,c,!0,{submission:r,replace:n}),{shortCircuited:!0}}if(Qe(c))throw G(400,{type:`defer-action`});if(K(c)){let e=Ke(a,l.route.id);return(s&&s.replace)!==!0&&(j=i.Push),{matches:a,pendingActionResult:[e.route.id,c]}}return{matches:a,pendingActionResult:[l.route.id,c]}}async function Me(t,n,i,a,o,s,c,l,d,m,h){let g=o||ct(n,s),v=s||c||st(g),y=!oe&&(!_.v7_partialHydration||!d);if(a){if(y){let e=Fe(h);U(r({navigation:g},e===void 0?{}:{actionData:e}),{flushSync:m})}let e=await At(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){let t=Ke(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}else if(e.matches)i=e.matches;else{let{error:e,notFoundMatches:t,route:r}=Ct(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let b=f||u,[x,S]=Ee(e.history,A,i,v,n,_.v7_partialHydration&&d===!0,_.v7_skipActionErrorRevalidation,F,se,ce,B,de,R,b,p,h);if(wt(e=>!(i&&i.some(t=>t.route.id===e))||x&&x.some(t=>t.route.id===e)),L=++le,x.length===0&&S.length===0){let e=_t();return Te(n,r({matches:i,loaderData:{},errors:h&&K(h[1])?{[h[0]]:h[1].error}:null},Ge(h),e?{fetchers:new Map(A.fetchers)}:{}),{flushSync:m}),{shortCircuited:!0}}if(y){let e={};if(!a){e.navigation=g;let t=Fe(h);t!==void 0&&(e.actionData=t)}S.length>0&&(e.fetchers=Be(S)),U(e,{flushSync:m})}S.forEach(e=>{Q(e.key),e.controller&&I.set(e.key,e.controller)});let C=()=>S.forEach(e=>Q(e.key));N&&N.signal.addEventListener(`abort`,C);let{loaderResults:w,fetcherResults:T}=await tt(A,i,x,S,t);if(t.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener(`abort`,C),S.forEach(e=>I.delete(e.key));let E=Je(w);if(E)return await q(t,E.result,!0,{replace:l}),{shortCircuited:!0};if(E=Je(T),E)return R.add(E.key),await q(t,E.result,!0,{replace:l}),{shortCircuited:!0};let{loaderData:ee,errors:D}=Ue(A,i,w,h,S,T,V);V.forEach((e,t)=>{e.subscribe(n=>{(n||e.done)&&V.delete(t)})}),_.v7_partialHydration&&d&&A.errors&&(D=r({},A.errors,D));let te=_t(),ne=vt(L),O=te||ne||S.length>0;return r({matches:i,loaderData:ee,errors:D},O?{fetchers:new Map(A.fetchers)}:{})}function Fe(e){if(e&&!K(e[1]))return{[e[0]]:e[1].data};if(A.actionData)return Object.keys(A.actionData).length===0?null:A.actionData}function Be(e){return e.forEach(e=>{let t=A.fetchers.get(e.key),n=ut(void 0,t?t.data:void 0);A.fetchers.set(e.key,n)}),new Map(A.fetchers)}function Ve(e,t,n,r){if(a)throw 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.`);Q(e);let i=(r&&r.flushSync)===!0,o=f||u,s=Ce(A.location,A.matches,p,_.v7_prependBasename,n,_.v7_relativeSplatPath,t,r?.relative),c=y(o,s,p),l=kt(c,o,s);if(l.active&&l.matches&&(c=l.matches),!c){X(e,t,G(404,{pathname:s}),{flushSync:i});return}let{path:d,submission:m,error:h}=we(_.v7_normalizeFormMethod,!0,s,r);if(h){X(e,t,h,{flushSync:i});return}let g=ot(c,d),v=(r&&r.preventScrollReset)===!0;if(m&&J(m.formMethod)){He(e,t,d,g,c,l.active,i,v,m);return}de.set(e,{routeId:t,path:d}),Ye(e,t,d,g,c,l.active,i,v,m)}async function He(t,n,r,i,a,o,c,l,d){nt(),de.delete(t);function m(e){return!e.route.action&&!e.route.lazy?(X(t,n,G(405,{method:d.formMethod,pathname:r,routeId:n}),{flushSync:c}),!0):!1}if(!o&&m(i))return;Y(t,dt(d,A.fetchers.get(t)),{flushSync:c});let h=new AbortController,g=ze(e.history,r,h.signal,d);if(o){let e=await At(a,new URL(g.url).pathname,g.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){X(t,n,e.error,{flushSync:c});return}else if(!e.matches){X(t,n,G(404,{pathname:r}),{flushSync:c});return}else if(a=e.matches,i=ot(a,r),m(i))return}I.set(t,h);let v=le,b=(await et(`action`,A,g,[i],a,t))[i.route.id];if(g.signal.aborted){I.get(t)===h&&I.delete(t);return}if(_.v7_fetcherPersist&&B.has(t)){if($e(b)||K(b)){Y(t,ft(void 0));return}}else{if($e(b))if(I.delete(t),L>v){Y(t,ft(void 0));return}else return R.add(t),Y(t,ut(d)),q(g,b,!1,{fetcherSubmission:d,preventScrollReset:l});if(K(b)){X(t,n,b.error);return}}if(Qe(b))throw G(400,{type:`defer-action`});let x=A.navigation.location||A.location,S=ze(e.history,x,h.signal),C=f||u,w=A.navigation.state===`idle`?A.matches:y(C,A.navigation.location,p);s(w,`Didn't find any matches after fetcher action`);let T=++le;ue.set(t,T);let E=ut(d,b.data);A.fetchers.set(t,E);let[ee,D]=Ee(e.history,A,w,d,x,!1,_.v7_skipActionErrorRevalidation,F,se,ce,B,de,R,C,p,[i.route.id,b]);D.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=A.fetchers.get(t),r=ut(void 0,n?n.data:void 0);A.fetchers.set(t,r),Q(t),e.controller&&I.set(t,e.controller)}),U({fetchers:new Map(A.fetchers)});let te=()=>D.forEach(e=>Q(e.key));h.signal.addEventListener(`abort`,te);let{loaderResults:ne,fetcherResults:O}=await tt(A,w,ee,D,S);if(h.signal.aborted)return;h.signal.removeEventListener(`abort`,te),ue.delete(t),I.delete(t),D.forEach(e=>I.delete(e.key));let k=Je(ne);if(k)return q(S,k.result,!1,{preventScrollReset:l});if(k=Je(O),k)return R.add(k.key),q(S,k.result,!1,{preventScrollReset:l});let{loaderData:M,errors:P}=Ue(A,w,ne,void 0,D,O,V);if(A.fetchers.has(t)){let e=ft(b.data);A.fetchers.set(t,e)}vt(T),A.navigation.state===`loading`&&T>L?(s(j,`Expected pending action`),N&&N.abort(),Te(A.navigation.location,{matches:w,loaderData:M,errors:P,fetchers:new Map(A.fetchers)})):(U({errors:P,loaderData:We(A.loaderData,M,w,P),fetchers:new Map(A.fetchers)}),F=!1)}async function Ye(t,n,r,i,a,o,c,l,u){let d=A.fetchers.get(t);Y(t,ut(u,d?d.data:void 0),{flushSync:c});let f=new AbortController,p=ze(e.history,r,f.signal);if(o){let e=await At(a,new URL(p.url).pathname,p.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){X(t,n,e.error,{flushSync:c});return}else if(e.matches)a=e.matches,i=ot(a,r);else{X(t,n,G(404,{pathname:r}),{flushSync:c});return}}I.set(t,f);let m=le,h=(await et(`loader`,A,p,[i],a,t))[i.route.id];if(Qe(h)&&(h=await at(h,p.signal,!0)||h),I.get(t)===f&&I.delete(t),!p.signal.aborted){if(B.has(t)){Y(t,ft(void 0));return}if($e(h))if(L>m){Y(t,ft(void 0));return}else{R.add(t),await q(p,h,!1,{preventScrollReset:l});return}if(K(h)){X(t,n,h.error);return}s(!Qe(h),`Unhandled fetcher deferred data`),Y(t,ft(h.data))}}async function q(a,o,c,l){let{submission:u,fetcherSubmission:f,preventScrollReset:m,replace:h}=l===void 0?{}:l;o.response.headers.has(`X-Remix-Revalidate`)&&(F=!0);let g=o.response.headers.get(`Location`);s(g,`Expected a Location header on the redirect Response`),g=Re(g,new URL(a.url),p,e.history);let _=d(A.location,g,{_isRedirect:!0});if(n){let n=!1;if(o.response.headers.has(`X-Remix-Reload-Document`))n=!0;else if(ye.test(g)){let r=e.history.createURL(g);n=r.origin!==t.location.origin||re(r.pathname,p)==null}if(n){h?t.location.replace(g):t.location.assign(g);return}}N=null;let v=h===!0||o.response.headers.has(`X-Remix-Replace`)?i.Replace:i.Push,{formMethod:y,formAction:b,formEncType:x}=A.navigation;!u&&!f&&y&&b&&x&&(u=st(A.navigation));let S=u||f;he.has(o.response.status)&&S&&J(S.formMethod)?await W(v,_,{submission:r({},S,{formAction:g}),preventScrollReset:m||M,enableViewTransition:c?P:void 0}):await W(v,_,{overrideNavigation:ct(_,u),fetcherSubmission:f,preventScrollReset:m||M,enableViewTransition:c?P:void 0})}async function et(e,t,n,r,i,a){let s,c={};try{s=await Pe(m,e,t,n,r,i,a,l,o)}catch(e){return r.forEach(t=>{c[t.route.id]={type:h.error,error:e}}),c}for(let[e,t]of Object.entries(s))if(Ze(t)){let r=t.result;c[e]={type:h.redirect,response:Le(r,n,e,i,p,_.v7_relativeSplatPath)}}else c[e]=await Ie(t);return c}async function tt(t,n,r,i,a){let o=t.matches,s=et(`loader`,t,a,r,n,null),c=Promise.all(i.map(async n=>{if(n.matches&&n.match&&n.controller){let r=(await et(`loader`,t,ze(e.history,n.path,n.controller.signal),[n.match],n.matches,n.key))[n.match.route.id];return{[n.key]:r}}else return Promise.resolve({[n.key]:{type:h.error,error:G(404,{pathname:n.path})}})})),l=await s,u=(await c).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([rt(n,l,a.signal,o,t.loaderData),it(n,u,i)]),{loaderResults:l,fetcherResults:u}}function nt(){F=!0,se.push(...wt()),de.forEach((e,t)=>{I.has(t)&&ce.add(t),Q(t)})}function Y(e,t,n){n===void 0&&(n={}),A.fetchers.set(e,t),U({fetchers:new Map(A.fetchers)},{flushSync:(n&&n.flushSync)===!0})}function X(e,t,n,r){r===void 0&&(r={});let i=Ke(A.matches,t);gt(e),U({errors:{[i.route.id]:n},fetchers:new Map(A.fetchers)},{flushSync:(r&&r.flushSync)===!0})}function ht(e){return z.set(e,(z.get(e)||0)+1),B.has(e)&&B.delete(e),A.fetchers.get(e)||_e}function gt(e){let t=A.fetchers.get(e);I.has(e)&&!(t&&t.state===`loading`&&ue.has(e))&&Q(e),de.delete(e),ue.delete(e),R.delete(e),_.v7_fetcherPersist&&B.delete(e),ce.delete(e),A.fetchers.delete(e)}function Z(e){let t=(z.get(e)||0)-1;t<=0?(z.delete(e),B.add(e),_.v7_fetcherPersist||gt(e)):z.set(e,t),U({fetchers:new Map(A.fetchers)})}function Q(e){let t=I.get(e);t&&(t.abort(),I.delete(e))}function $(e){for(let t of e){let e=ft(ht(t).data);A.fetchers.set(t,e)}}function _t(){let e=[],t=!1;for(let n of R){let r=A.fetchers.get(n);s(r,`Expected fetcher: `+n),r.state===`loading`&&(R.delete(n),e.push(n),t=!0)}return $(e),t}function vt(e){let t=[];for(let[n,r]of ue)if(r<e){let e=A.fetchers.get(n);s(e,`Expected fetcher: `+n),e.state===`loading`&&(Q(n),ue.delete(n),t.push(n))}return $(t),t.length>0}function yt(e,t){let n=A.blockers.get(e)||ve;return H.get(e)!==t&&H.set(e,t),n}function bt(e){A.blockers.delete(e),H.delete(e)}function xt(e,t){let n=A.blockers.get(e)||ve;s(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: `+n.state+` -> `+t.state);let r=new Map(A.blockers);r.set(e,t),U({blockers:r})}function St(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(H.size===0)return;H.size>1&&c(!1,`A router only supports one blocker at a time`);let i=Array.from(H.entries()),[a,o]=i[i.length-1],s=A.blockers.get(a);if(!(s&&s.state===`proceeding`)&&o({currentLocation:t,nextLocation:n,historyAction:r}))return a}function Ct(e){let t=G(404,{pathname:e}),{matches:n,route:r}=qe(f||u);return wt(),{notFoundMatches:n,route:r,error:t}}function wt(e){let t=[];return V.forEach((n,r)=>{(!e||e(r))&&(n.cancel(),t.push(r),V.delete(r))}),t}function Tt(e,t,n){if(w=e,E=t,T=n||null,!ee&&A.navigation===ge){ee=!0;let e=Ot(A.location,A.matches);e!=null&&U({restoreScrollPosition:e})}return()=>{w=null,E=null,T=null}}function Et(e,t){return T&&T(e,t.map(e=>x(e,A.loaderData)))||e.key}function Dt(e,t){if(w&&E){let n=Et(e,t);w[n]=E()}}function Ot(e,t){if(w){let n=Et(e,t),r=w[n];if(typeof r==`number`)return r}return null}function kt(e,t,n){if(g){if(!e)return{active:!0,matches:b(t,n,p,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:b(t,n,p,!0)}}return{active:!1,matches:null}}async function At(e,t,n,r){if(!g)return{type:`success`,matches:e};let i=e;for(;;){let e=f==null,a=f||u,s=l;try{await g({signal:n,path:t,matches:i,fetcherKey:r,patch:(e,t)=>{n.aborted||Ae(e,t,a,s,o)}})}catch(e){return{type:`error`,error:e,partialMatches:i}}finally{e&&!n.aborted&&(u=[...u])}if(n.aborted)return{type:`aborted`};let c=y(a,t,p);if(c)return{type:`success`,matches:c};let d=b(a,t,p,!0);if(!d||i.length===d.length&&i.every((e,t)=>e.route.id===d[t].route.id))return{type:`success`,matches:null};i=d}}function jt(e){l={},f=v(e,o,void 0,l)}function Mt(e,t){let n=f==null;Ae(e,t,f||u,l,o),n&&(u=[...u],U({}))}return k={get basename(){return p},get future(){return _},get state(){return A},get routes(){return u},get window(){return t},initialize:me,subscribe:Se,enableScrollRestoration:Tt,navigate:Oe,fetch:Ve,revalidate:ke,createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:ht,deleteFetcher:Z,dispose:xe,getBlocker:yt,deleteBlocker:bt,patchRoutes:Mt,_internalFetchControllers:I,_internalActiveDeferreds:V,_internalSetRoutes:jt},k}function U(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function Ce(e,t,n,r,i,a,o,s){let c,l;if(o){c=[];for(let e of t)if(c.push(e),e.route.id===o){l=e;break}}else c=t,l=t[t.length-1];let u=le(i||`.`,I(c,a),re(e.pathname,n)||e.pathname,s===`path`);if(i??(u.search=e.search,u.hash=e.hash),(i==null||i===``||i===`.`)&&l){let e=Y(u.search);if(l.route.index&&!e)u.search=u.search?u.search.replace(/^\?/,`?index&`):`?index`;else if(!l.route.index&&e){let e=new URLSearchParams(u.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();u.search=n?`?`+n:``}}return r&&n!==`/`&&(u.pathname=u.pathname===`/`?n:L([n,u.pathname])),f(u)}function we(e,t,n,r){if(!r||!U(r))return{path:n};if(r.formMethod&&!nt(r.formMethod))return{path:n,error:G(405,{method:r.formMethod})};let i=()=>({path:n,error:G(400,{type:`invalid-body`})}),a=r.formMethod||`get`,o=e?a.toUpperCase():a.toLowerCase(),c=Ye(n);if(r.body!==void 0){if(r.formEncType===`text/plain`){if(!J(o))return i();let e=typeof r.body==`string`?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,t)=>{let[n,r]=t;return``+e+n+`=`+r+` 2`},``):String(r.body);return{path:n,submission:{formMethod:o,formAction:c,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}else if(r.formEncType===`application/json`){if(!J(o))return i();try{let e=typeof r.body==`string`?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:c,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch{return i()}}}s(typeof FormData==`function`,`FormData is not available in this environment`);let l,u;if(r.formData)l=Be(r.formData),u=r.formData;else if(r.body instanceof FormData)l=Be(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=Ve(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=Ve(l)}catch{return i()}let d={formMethod:o,formAction:c,formEncType:r&&r.formEncType||`application/x-www-form-urlencoded`,formData:u,json:void 0,text:void 0};if(J(d.formMethod))return{path:n,submission:d};let m=p(n);return t&&m.search&&Y(m.search)&&l.append(`index`,``),m.search=`?`+l,{path:f(m),submission:d}}function Te(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(e=>e.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function Ee(e,t,n,i,a,o,s,c,l,u,d,f,p,m,h,g){let _=g?K(g[1])?g[1].error:g[1].data:void 0,v=e.createURL(t.location),b=e.createURL(a),x=n;o&&t.errors?x=Te(n,Object.keys(t.errors)[0],!0):g&&K(g[1])&&(x=Te(n,g[0]));let S=g?g[1].statusCode:void 0,C=s&&S&&S>=400,w=x.filter((e,n)=>{let{route:a}=e;if(a.lazy)return!0;if(a.loader==null)return!1;if(o)return De(a,t.loaderData,t.errors);if(Oe(t.loaderData,t.matches[n],e)||l.some(t=>t===e.route.id))return!0;let s=t.matches[n],u=e;return W(e,r({currentUrl:v,currentParams:s.params,nextUrl:b,nextParams:u.params},i,{actionResult:_,actionStatus:S,defaultShouldRevalidate:C?!1:c||v.pathname+v.search===b.pathname+b.search||v.search!==b.search||ke(s,u)}))}),T=[];return f.forEach((e,a)=>{if(o||!n.some(t=>t.route.id===e.routeId)||d.has(a))return;let s=y(m,e.path,h);if(!s){T.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});return}let l=t.fetchers.get(a),f=ot(s,e.path),g=!1;p.has(a)?g=!1:u.has(a)?(u.delete(a),g=!0):g=l&&l.state!==`idle`&&l.data===void 0?c:W(f,r({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:n[n.length-1].params},i,{actionResult:_,actionStatus:S,defaultShouldRevalidate:C?!1:c})),g&&T.push({key:a,routeId:e.routeId,path:e.path,matches:s,match:f,controller:new AbortController})}),[w,T]}function De(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader==`function`&&e.loader.hydrate===!0?!0:!r&&!i}function Oe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function ke(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function W(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function Ae(e,t,n,r,i){let a;if(e){let t=r[e];s(t,`No route found to patch children into: routeId = `+e),t.children||=[],a=t.children}else a=n;let o=v(t.filter(e=>!a.some(t=>je(e,t))),i,[e||`_`,`patch`,String(a?.length||`0`)],r);a.push(...o)}function je(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((e,n)=>t.children?.some(t=>je(e,t))):!1}async function Me(e,t,n){if(!e.lazy)return;let i=await e.lazy();if(!e.lazy)return;let a=n[e.id];s(a,`No route found in manifest`);let o={};for(let e in i){let t=a[e]!==void 0&&e!==`hasErrorBoundary`;c(!t,`Route "`+a.id+`" has a static property "`+e+`" defined but its lazy function is also returning a value for this property. `+(`The lazy route property "`+e+`" will be ignored.`)),!t&&!g.has(e)&&(o[e]=i[e])}Object.assign(a,o),Object.assign(a,r({},t(a),{lazy:void 0}))}async function Ne(e){let{matches:t}=e,n=t.filter(e=>e.shouldLoad);return(await Promise.all(n.map(e=>e.resolve()))).reduce((e,t,r)=>Object.assign(e,{[n[r].route.id]:t}),{})}async function Pe(e,t,n,i,a,o,s,c,l,u){let d=o.map(e=>e.route.lazy?Me(e.route,l,c):void 0),f=await e({matches:o.map((e,n)=>{let o=d[n],s=a.some(t=>t.route.id===e.route.id);return r({},e,{shouldLoad:s,resolve:async n=>(n&&i.method===`GET`&&(e.route.lazy||e.route.loader)&&(s=!0),s?Fe(t,i,e,o,n,u):Promise.resolve({type:h.data,result:void 0}))})}),request:i,params:o[0].params,fetcherKey:s,context:u});try{await Promise.all(d)}catch{}return f}async function Fe(e,t,n,r,i,a){let o,c,l=r=>{let o,s=new Promise((e,t)=>o=t);c=()=>o(),t.signal.addEventListener(`abort`,c);let l=i=>typeof r==`function`?r({request:t,params:n.params,context:a},...i===void 0?[]:[i]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean `+(`"`+e+`" [routeId: `+n.route.id+`]`))),u=(async()=>{try{return{type:`data`,result:await(i?i(e=>l(e)):l())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([u,s])};try{let i=n.route[e];if(r)if(i){let e,[t]=await Promise.all([l(i).catch(t=>{e=t}),r]);if(e!==void 0)throw e;o=t}else if(await r,i=n.route[e],i)o=await l(i);else if(e===`action`){let e=new URL(t.url),r=e.pathname+e.search;throw G(405,{method:t.method,pathname:r,routeId:n.route.id})}else return{type:h.data,result:void 0};else if(i)o=await l(i);else{let e=new URL(t.url);throw G(404,{pathname:e.pathname+e.search})}s(o.result!==void 0,`You defined `+(e===`action`?`an action`:`a loader`)+` for route `+(`"`+n.route.id+`" but didn't return anything from your \``+e+"` ")+"function. Please return a value or `null`.")}catch(e){return{type:h.error,result:e}}finally{c&&t.signal.removeEventListener(`abort`,c)}return o}async function Ie(e){let{result:t,type:n}=e;if(tt(t)){let e;try{let n=t.headers.get(`Content-Type`);e=n&&/\bapplication\/json\b/.test(n)?t.body==null?null:await t.json():await t.text()}catch(e){return{type:h.error,error:e}}return n===h.error?{type:h.error,error:new z(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:h.data,data:e,statusCode:t.status,headers:t.headers}}if(n===h.error){if(q(t)){var r;if(t.data instanceof Error){var i;return{type:h.error,error:t.data,statusCode:t.init?.status,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}}return{type:h.error,error:new z(t.init?.status||500,void 0,t.data),statusCode:fe(t)?t.status:void 0,headers:(r=t.init)!=null&&r.headers?new Headers(t.init.headers):void 0}}return{type:h.error,error:t,statusCode:fe(t)?t.status:void 0}}if(et(t))return{type:h.deferred,deferredData:t,statusCode:t.init?.status,headers:t.init?.headers&&new Headers(t.init.headers)};if(q(t)){var a;return{type:h.data,data:t.data,statusCode:t.init?.status,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}}return{type:h.data,data:t}}function Le(e,t,n,r,i,a){let o=e.headers.get(`Location`);if(s(o,`Redirects returned/thrown from loaders/actions must have a Location header`),!ye.test(o)){let s=r.slice(0,r.findIndex(e=>e.route.id===n)+1);o=Ce(new URL(t.url),s,i,!0,o,a),e.headers.set(`Location`,o)}return e}function Re(e,t,n,r){let i=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];if(ye.test(e)){let r=e,a=r.startsWith(`//`)?new URL(t.protocol+r):new URL(r);if(i.includes(a.protocol))throw Error(`Invalid redirect location`);let o=re(a.pathname,n)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}try{let t=r.createURL(e);if(i.includes(t.protocol))throw Error(`Invalid redirect location`)}catch{}return e}function ze(e,t,n,r){let i=e.createURL(Ye(t)).toString(),a={signal:n};if(r&&J(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):t===`text/plain`?a.body=r.text:t===`application/x-www-form-urlencoded`&&r.formData?a.body=Be(r.formData):a.body=r.formData}return new Request(i,a)}function Be(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function Ve(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function He(e,t,n,r,i){let a={},o=null,c,l=!1,u={},d=n&&K(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let f=n.route.id,p=t[f];if(s(!$e(p),`Cannot handle redirect results in processLoaderData`),K(p)){let t=p.error;if(d!==void 0&&(t=d,d=void 0),o||={},i)o[f]=t;else{let n=Ke(e,f);o[n.route.id]??(o[n.route.id]=t)}a[f]=void 0,l||(l=!0,c=fe(p.error)?p.error.status:500),p.headers&&(u[f]=p.headers)}else Qe(p)?(r.set(f,p.deferredData),a[f]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!l&&(c=p.statusCode),p.headers&&(u[f]=p.headers)):(a[f]=p.data,p.statusCode&&p.statusCode!==200&&!l&&(c=p.statusCode),p.headers&&(u[f]=p.headers))}),d!==void 0&&n&&(o={[n[0]]:d},a[n[0]]=void 0),{loaderData:a,errors:o,statusCode:c||200,loaderHeaders:u}}function Ue(e,t,n,i,a,o,c){let{loaderData:l,errors:u}=He(t,n,i,c,!1);return a.forEach(t=>{let{key:n,match:i,controller:a}=t,c=o[n];if(s(c,`Did not find corresponding fetcher result`),!(a&&a.signal.aborted))if(K(c)){let t=Ke(e.matches,i?.route.id);u&&u[t.route.id]||(u=r({},u,{[t.route.id]:c.error})),e.fetchers.delete(n)}else if($e(c))s(!1,`Unhandled fetcher revalidation redirect`);else if(Qe(c))s(!1,`Unhandled fetcher deferred data`);else{let t=ft(c.data);e.fetchers.set(n,t)}}),{loaderData:l,errors:u}}function We(e,t,n,i){let a=r({},t);for(let r of n){let n=r.route.id;if(t.hasOwnProperty(n)?t[n]!==void 0&&(a[n]=t[n]):e[n]!==void 0&&r.route.loader&&(a[n]=e[n]),i&&i.hasOwnProperty(n))break}return a}function Ge(e){return e?K(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ke(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.hasErrorBoundary===!0)||e[0]}function qe(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function G(e,t){let{pathname:n,routeId:r,method:i,type:a,message:o}=t===void 0?{}:t,s=`Unknown Server Error`,c=`Unknown @remix-run/router error`;return e===400?(s=`Bad Request`,i&&n&&r?c=`You made a `+i+` request to "`+n+`" but `+('did not provide a `loader` for route "'+r+`", `)+`so there is no way to handle the request.`:a===`defer-action`?c=`defer() is not supported in actions`:a===`invali
2d-body`&&(c=`Unable to encode submission body`)):e===403?(s=`Forbidden`,c=`Route "`+r+`" does not match URL "`+n+`"`):e===404?(s=`Not Found`,c=`No route matches URL "`+n+`"`):e===405&&(s=`Method Not Allowed`,i&&n&&r?c=`You made a `+i.toUpperCase()+` request to "`+n+`" but `+('did not provide an `action` for route "'+r+`", `)+`so there is no way to handle the request.`:i&&(c=`Invalid request method "`+i.toUpperCase()+`"`)),new z(e||500,s,Error(c),!0)}function Je(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if($e(r))return{key:n,result:r}}}function Ye(e){let t=typeof e==`string`?p(e):e;return f(r({},t,{hash:``}))}function Xe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash?!0:t.hash!==``}function Ze(e){return tt(e.result)&&me.has(e.result.status)}function Qe(e){return e.type===h.deferred}function K(e){return e.type===h.error}function $e(e){return(e&&e.type)===h.redirect}function q(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function et(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 tt(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function nt(e){return pe.has(e.toLowerCase())}function J(e){return V.has(e.toLowerCase())}async function rt(e,t,n,r,i){let a=Object.entries(t);for(let o=0;o<a.length;o++){let[s,c]=a[o],l=e.find(e=>e?.route.id===s);if(!l)continue;let u=r.find(e=>e.route.id===l.route.id),d=u!=null&&!ke(u,l)&&(i&&i[l.route.id])!==void 0;Qe(c)&&d&&await at(c,n,!1).then(e=>{e&&(t[s]=e)})}}async function it(e,t,n){for(let r=0;r<n.length;r++){let{key:i,routeId:a,controller:o}=n[r],c=t[i];e.find(e=>e?.route.id===a)&&Qe(c)&&(s(o,`Expected an AbortController for revalidating fetcher deferred result`),await at(c,o.signal,!0).then(e=>{e&&(t[i]=e)}))}}async function at(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:h.data,data:e.deferredData.unwrappedData}}catch(e){return{type:h.error,error:e}}return{type:h.data,data:e.deferredData.data}}}function Y(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function ot(e,t){let n=typeof t==`string`?p(t).search:t.search;if(e[e.length-1].route.index&&Y(n||``))return e[e.length-1];let r=ce(e);return r[r.length-1]}function st(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function ct(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 lt(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 ut(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 dt(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 ft(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 pt(e,t){try{let n=e.sessionStorage.getItem(xe);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function mt(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(xe,JSON.stringify(n))}catch(e){c(!1,`Failed to save applied view transitions in sessionStorage (`+e+`).`)}}}function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X.apply(this,arguments)}var ht=n.createContext(null),gt=n.createContext(null),Z=n.createContext(null),Q=n.createContext(null),$=n.createContext({outlet:null,matches:[],isDataRoute:!1}),_t=n.createContext(null);function vt(e,t){let{relative:r}=t===void 0?{}:t;!yt()&&s(!1);let{basename:i,navigator:a}=n.useContext(Z),{hash:o,pathname:c,search:l}=Dt(e,{relative:r}),u=c;return i!==`/`&&(u=c===`/`?i:L([i,c])),a.createHref({pathname:u,search:l,hash:o})}function yt(){return n.useContext(Q)!=null}function bt(){return!yt()&&s(!1),n.useContext(Q).location}function xt(e){n.useContext(Z).static||n.useLayoutEffect(e)}function St(){let{isDataRoute:e}=n.useContext($);return e?Ut():Ct()}function Ct(){!yt()&&s(!1);
2let e=n.useContext(ht),{basename:t,future:r,navigator:i}=n.useContext(Z),{matches:a}=n.useContext($),{pathname:o}=bt(),c=JSON.stringify(I(a,r.v7_relativeSplatPath)),l=n.useRef(!1);return xt(()=>{l.current=!0}),n.useCallback(function(n,r){if(r===void 0&&(r={}),!l.current)return;if(typeof n==`number`){i.go(n);return}let a=le(n,JSON.parse(c),o,r.relative===`path`);e==null&&t!==`/`&&(a.pathname=a.pathname===`/`?t:L([t,a.pathname])),(r.replace?i.replace:i.push)(a,r.state,r)},[t,i,c,o,e])}var wt=n.createContext(null);function Tt(e){let t=n.useContext($).outlet;return t&&n.createElement(wt.Provider,{value:e},t)}function Et(){let{matches:e}=n.useContext($),t=e[e.length-1];return t?t.params:{}}function Dt(e,t){let{relative:r}=t===void 0?{}:t,{future:i}=n.useContext(Z),{matches:a}=n.useContext($),{pathname:o}=bt(),s=JSON.stringify(I(a,i.v7_relativeSplatPath));return n.useMemo(()=>le(e,JSON.parse(s),o,r===`path`),[e,s,o,r])}function Ot(e,t,r,a){!yt()&&s(!1);let{navigator:o}=n.useContext(Z),{matches:c}=n.useContext($),l=c[c.length-1],u=l?l.params:{};l&&l.pathname;let d=l?l.pathnameBase:`/`;l&&l.route;let f=bt(),m;if(t){let e=typeof t==`string`?p(t):t;!(d===`/`||e.pathname?.startsWith(d))&&s(!1),m=e}else m=f;let h=m.pathname||`/`,g=h;if(d!==`/`){let e=d.replace(/^\//,``).split(`/`);g=`/`+h.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let _=y(e,{pathname:g}),v=Nt(_&&_.map(e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:L([d,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?d:L([d,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),c,r,a);return t&&v?n.createElement(Q.Provider,{value:{location:X({pathname:`/`,search:``,hash:``,state:null,key:`default`},m),navigationType:i.Pop}},v):v}function kt(){let e=Ht(),t=fe(e)?e.status+` `+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return n.createElement(n.Fragment,null,n.createElement(`h2`,null,`Unexpected Application Error!`),n.createElement(`h3`,{style:{fontStyle:`italic`}},t),r?n.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},r):null,null)}var At=n.createElement(kt,null),jt=class extends n.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error(`React Router caught the following error during render`,e,t)}render(){return this.state.error===void 0?this.props.children:n.createElement($.Provider,{value:this.props.routeContext},n.createElement(_t.Provider,{value:this.state.error,children:this.props.component}))}};function Mt(e){let{routeContext:t,match:r,children:i}=e,a=n.useContext(ht);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),n.createElement($.Provider,{value:t},i)}
2function Nt(e,t,r,i){if(t===void 0&&(t=[]),r===void 0&&(r=null),i===void 0&&(i=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=i)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,c=r?.errors;if(c!=null){let e=o.findIndex(e=>e.route.id&&c?.[e.route.id]!==void 0);!(e>=0)&&s(!1),o=o.slice(0,Math.min(o.length,e+1))}let l=!1,u=-1;if(r&&i&&i.v7_partialHydration)for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:n}=r,i=t.route.loader&&e[t.route.id]===void 0&&(!n||n[t.route.id]===void 0);if(t.route.lazy||i){l=!0,o=u>=0?o.slice(0,u+1):[o[0]];break}}}return o.reduceRight((e,i,a)=>{let s,d=!1,f=null,p=null;r&&(s=c&&i.route.id?c[i.route.id]:void 0,f=i.route.errorElement||At,l&&(u<0&&a===0?(Gt(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):u===a&&(d=!0,p=i.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,a+1)),h=()=>{let t;return t=s?f:d?p:i.route.Component?n.createElement(i.route.Component,null):i.route.element?i.route.element:e,n.createElement(Mt,{match:i,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(i.route.ErrorBoundary||i.route.errorElement||a===0)?n.createElement(jt,{location:r.location,revalidation:r.revalidation,component:f,error:s,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):h()},null)}var Pt=function(e){return e.UseBlocker=`useBlocker`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e}(Pt||{}),Ft=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}(Ft||{});function It(e){let t=n.useContext(ht);return!t&&s(!1),t}function Lt(e){let t=n.useContext(gt);return!t&&s(!1),t}function Rt(e){let t=n.useContext($);return!t&&s(!1),t}function zt(e){let t=Rt(e),n=t.matches[t.matches.length-1];return!n.route.id&&s(!1),n.route.id}function Bt(){return Lt(Ft.UseNavigation).navigation}function Vt(){let{matches:e,loaderData:t}=Lt(Ft.UseMatches);return n.useMemo(()=>e.map(e=>x(e,t)),[e,t])}function Ht(){let e=n.useContext(_t),t=Lt(Ft.UseRouteError),r=zt(Ft.UseRouteError);return e===void 0?t.errors?.[r]:e}function Ut(){let{router:e}=It(Pt.UseNavigateStable),t=zt(Ft.UseNavigateStable),r=n.useRef(!1);return xt(()=>{r.current=!0}),n.useCallback(function(n,i){i===void 0&&(i={}),r.current&&(typeof n==`number`?e.navigate(n):e.navigate(n,X({fromRouteId:t},i)))},[e,t])}var Wt={};function Gt(e,t,n){!t&&!Wt[e]&&(Wt[e]=!0)}
2var Kt=(e,t,n)=>(``+t+("You can use the `"+e+"` future flag to opt-in early. ")+(`For more information, see `+n+`.`),void 0);function qt(e,t){e?.v7_startTransition===void 0&&Kt(`v7_startTransition`,"React Router will begin wrapping state updates in `React.startTransition` in v7",`https://reactrouter.com/v6/upgrading/future#v7_starttransition`),e?.v7_relativeSplatPath===void 0&&(!t||t.v7_relativeSplatPath===void 0)&&Kt(`v7_relativeSplatPath`,`Relative route resolution within Splat routes is changing in v7`,`https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath`),t&&(t.v7_fetcherPersist===void 0&&Kt(`v7_fetcherPersist`,`The persistence behavior of fetchers is changing in v7`,`https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist`),t.v7_normalizeFormMethod===void 0&&Kt(`v7_normalizeFormMethod`,"Casing of `formMethod` fields is being normalized to uppercase in v7",`https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod`),t.v7_partialHydration===void 0&&Kt(`v7_partialHydration`,"`RouterProvider` hydration behavior is changing in v7",`https://reactrouter.com/v6/upgrading/future#v7_partialhydration`),t.v7_skipActionErrorRevalidation===void 0&&Kt(`v7_skipActionErrorRevalidation`,"The revalidation behavior after 4xx/5xx `action` responses is changing in v7",`https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation`))}function Jt(e){return Tt(e.context)}function Yt(e){let{basename:t=`/`,children:r=null,location:a,navigationType:o=i.Pop,navigator:c,static:l=!1,future:u}=e;yt()&&s(!1);let d=t.replace(/^\/*/,`/`),f=n.useMemo(()=>({basename:d,navigator:c,static:l,future:X({v7_relativeSplatPath:!1},u)}),[d,u,c,l]);typeof a==`string`&&(a=p(a));let{pathname:m=`/`,search:h=``,hash:g=``,state:_=null,key:v=`default`}=a,y=n.useMemo(()=>{let e=re(m,d);return e==null?null:{location:{pathname:e,search:h,hash:g,state:_,key:v},navigationType:o}},[d,m,h,g,_,v,o]);return y==null?null:n.createElement(Z.Provider,{value:f},n.createElement(Q.Provider,{children:r,value:y}))}var Xt=function(e){return e[e.pending=0]=`pending`,e[e.success=1]=`success`,e[e.error=2]=`error`,e}(Xt||{});new Promise(()=>{}),n.Component;function Zt(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:n.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:n.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:n.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}export{re as C,fe as S,z as _,Yt as a,Se as b,vt as c,St as d,Bt as f,Ot as g,Ht as h,Jt as i,bt as l,Dt as m,gt as n,qt as o,Et as p,Z as r,Zt as s,ht as t,Vt as u,o as v,s as x,f as y};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.