PageSourceSearch

https://www.khov.com/_next/static/chunks/d86b74c0.eec2ff9b3e349d09.js

js khov.com collected 2026-10-02 03:35:01 UTC 47,556 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1815],{85003:(e,t,r)=>{var a,n;function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}r.d(t,{AO:()=>h,B6:()=>w,Gh:()=>M,HS:()=>k,Oi:()=>s,Rr:()=>f,TM:()=>l,VV:()=>T,aE:()=>V,pX:()=>U,pb:()=>E,rc:()=>a,tH:()=>C,ue:()=>v,yD:()=>P}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));let i="popstate";function l(e){return void 0===e&&(e={}),function(e,t,r,n){void 0===n&&(n={});let{window:l=document.defaultView,v5Compat:d=!1}=n,f=l.history,p=a.Pop,m=null,v=y();function y(){return(f.state||{idx:null}).idx}function g(){p=a.Pop;let e=y(),t=null==e?null:e-v;v=e,m&&m({action:p,location:w.location,delta:t})}function b(e){let t="null"!==l.location.origin?l.location.origin:l.location.href,r="string"==typeof e?e:h(e);return s(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==v&&(v=0,f.replaceState(o({},f.state,{idx:v}),""));let w={get action(){return p},get location(){return e(l,f)},listen(e){if(m)throw Error("A history only accepts one active listener");return l.addEventListener(i,g),m=e,()=>{l.removeEventListener(i,g),m=null}},createHref:e=>t(l,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){p=a.Push;let n=u(w.location,e,t);r&&r(n,e);let o=c(n,v=y()+1),i=w.createHref(n);try{f.pushState(o,"",i)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;l.location.assign(i)}d&&m&&m({action:p,location:w.location,delta:1})},replace:function(e,t){p=a.Replace;let n=u(w.location,e,t);r&&r(n,e);let o=c(n,v=y()),i=w.createHref(n);f.replaceState(o,"",i),d&&m&&m({action:p,location:w.location,delta:0})},go:e=>f.go(e)};return w}(function(e,t){let{pathname:r="/",search:a="",hash:n=""}=f(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),u("",{pathname:r,search:a,hash:n},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),a="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");a=-1===r?t:t.slice(0,r)}return a+"#"+("string"==typeof t?t:h(t))},function(e,t){d("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function s(e,t){if(!1===e||null==e)throw Error(t)}function d(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function c(e,t){return{usr:e.state,key:e.key,idx:t}}function u(e,t,r,a){return void 0===r&&(r=null),o({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?f(t):t,{state:r,key:t&&t.key||a||Math.random().toString(36).substr(2,8)})}function h(e){let{pathname:t="/",search:r="",hash:a=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),a&&"#"!==a&&(t+="#"===a.charAt(0)?a:"#"+a),t}function f(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let a=e.indexOf("?");a>=0&&(t.search=e.substr(a),e=e.substr(0,a)),e&&(t.pathname=e)}return t}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(n||(n={}));let p=new Set(["lazy","caseSensitive","path","id","index","children"]);function m(e,t,r,a){return void 0===r&&(r=[]),void 0===a&&(a={}),e.map((e,n)=>{let i=[...r,String(n)],l="string"==typeof e.id?e.id:i.join("-");if(s(!0!==e.index||!e.children,"Cannot specify children on an index route"),s(!a[l],'Found a route id collision on i
1d "'+l+"\".  Route id's must be globally unique within Data Router usages"),!0===e.index){let r=o({},e,t(e),{id:l});return a[l]=r,r}{let r=o({},e,t(e),{id:l,children:void 0});return a[l]=r,e.children&&(r.children=m(e.children,t,i,a)),r}})}function v(e,t,r){return void 0===r&&(r="/"),y(e,t,r,!1)}function y(e,t,r,a){let n=E(("string"==typeof t?f(t):t).pathname||"/",r);if(null==n)return null;let o=function e(t,r,a,n){void 0===r&&(r=[]),void 0===a&&(a=[]),void 0===n&&(n="");let o=(t,o,i)=>{var l,d;let c,u,h={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};h.relativePath.startsWith("/")&&(s(h.relativePath.startsWith(n),'Absolute route path "'+h.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),h.relativePath=h.relativePath.slice(n.length));let f=k([n,h.relativePath]),p=a.concat(h);t.children&&t.children.length>0&&(s(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+f+'".'),e(t.children,r,p,f)),(null!=t.path||t.index)&&r.push({path:f,score:(l=f,d=t.index,u=(c=l.split("/")).length,c.some(b)&&(u+=-2),d&&(u+=2),c.filter(e=>!b(e)).reduce((e,t)=>e+(g.test(t)?3:""===t?1:10),u)),routesMeta:p})};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[a,...n]=r,o=a.endsWith("?"),i=a.replace(/\?$/,"");if(0===n.length)return o?[i,""]:[i];let l=e(n.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);else o(e,t)}),r}(e);o.sort((e,t)=>{var r,a;return e.score!==t.score?t.score-e.score:(r=e.routesMeta.map(e=>e.childrenIndex),a=t.routesMeta.map(e=>e.childrenIndex),r.length===a.length&&r.slice(0,-1).every((e,t)=>e===a[t])?r[r.length-1]-a[a.length-1]:0)});let i=null;for(let e=0;null==i&&e<o.length;++e){let t=function(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return d(!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}}(n);i=function(e,t,r){void 0===r&&(r=!1);let{routesMeta:a}=e,n={},o="/",i=[];for(let e=0;e<a.length;++e){let l=a[e],s=e===a.length-1,d="/"===o?t:t.slice(o.length)||"/",c=w({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},d),u=l.route;if(!c&&s&&r&&!a[a.length-1].route.index&&(c=w({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!c)return null;
1Object.assign(n,c.params),i.push({params:n,pathname:k([o,c.pathname]),pathnameBase:L(k([o,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(o=k([o,c.pathnameBase]))}return i}(o[e],t,a)}return i}let g=/^:[\w-]+$/,b=e=>"*"===e;function w(e,t){var r,a,n;let o,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[l,s]=(r=e.path,a=e.caseSensitive,n=e.end,void 0===a&&(a=!1),void 0===n&&(n=!0),d("*"===r||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),o=[],i="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(o.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")),r.endsWith("*")?(o.push({paramName:"*"}),i+="*"===r||"/*"===r?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==r&&"/"!==r&&(i+="(?:(?=\\/|$))"),[new RegExp(i,a?void 0:"i"),o]),c=t.match(l);if(!c)return null;let u=c[0],h=u.replace(/(.)\/+$/,"$1"),f=c.slice(1);return{params:s.reduce((e,t,r)=>{let{paramName:a,isOptional:n}=t;if("*"===a){let e=f[r]||"";h=u.slice(0,u.length-e.length).replace(/(.)\/+$/,"$1")}let o=f[r];return n&&!o?e[a]=void 0:e[a]=(o||"").replace(/%2F/g,"/"),e},{}),pathname:u,pathnameBase:h,pattern:e}}function E(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,a=e.charAt(r);return a&&"/"!==a?null:e.slice(r)||"/"}let D=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function R(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function S(e,t,r,a){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field [")+JSON.stringify(a)+"].  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 x(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function P(e,t){let r=x(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function M(e,t,r,a){let n,i;void 0===a&&(a=!1),"string"==typeof e?n=f(e):(s(!(n=o({},e)).pathname||!n.pathname.includes("?"),S("?","pathname","search",n)),s(!n.pathname||!n.pathname.includes("#"),S("#","pathname","hash",n)),s(!n.search||!n.search.includes("#"),S("#","search","hash",n)));let l=""===e||""===n.pathname,c=l?"/":n.pathname;if(null==c)i=r;else{let e=t.length-1;if(!a&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;n.pathname=t.join("/")}i=e>=0?t[e]:"/"}let u=function(e,t){let r;void 0===t&&(t="/");let{pathname:a,search:n="",hash:o=""}="string"==typeof e?f(e):e;if(a){let e;(e=a,D.test(e))?r=a:(a.includes("//")&&d(!1,"Pathnames cannot have embedded double slashes - normalizing "+a+" -> "+(a=a.replace(/\/\/+/g,"/"))),r=a.startsWith("/")?R(a.substring(1),"/"):R(a,t))}else r=t;return{pathname:r,search:A(n),hash:j(o)}}(n,i),h=c&&"/"!==c&&c.endsWith("/"),p=(l||"."===c)&&r.endsWith("/");return!u.pathname.endsWith("/")&&(h||p)&&(u.pathname+="/"),u}let k=e=>e.join("/").replace(/\/\/+/g,"/"),L=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),A=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",j=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class C extends Error{}class T{constructor(e,t,r,a){void 0===a&&(a=!1),this.status=e,this.statusText=t||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function U(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let _=["post","put","patch","delete"],O=new Set(_),z=new Set(["get",..._]),I=new Set([301,302,303,307,308]),H=new Set([307,308]),W={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},B={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},F={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},N=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),q="remix-router-transitions";function V(e){let t,r,i,l,c,h,f=e.window?e.window:"undefined"!=typeof window?window:void 0,p=void 0!==f&&void 0!==f.document&&void 0!==f.document.createElement,g=!p;if(s(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let r=e.detectErrorBoundary;t=e=>({hasErrorBoundary:r(e)})}else t=$;let b={},w=m(e.routes,t,void 0,b),D=e.basename||"/",R=e.dataStrategy||er,S=e.patchRoutesOnNavigation,x=o({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prepe
1ndBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),P=null,M=new Set,k=null,L=null,A=null,j=null!=e.hydrationData,C=v(w,e.history.location,D),T=!1,_=null;if(null==C&&!S){let t=em(404,{pathname:e.history.location.pathname}),{matches:r,route:a}=ep(w);C=r,_={[a.id]:t}}if(C&&!e.hydrationData&&tn(C,w,e.history.location.pathname).active&&(C=null),C)if(C.some(e=>e.route.lazy))i=!1;else if(C.some(e=>e.route.loader))if(x.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=C.findIndex(e=>void 0!==r[e.route.id]);i=C.slice(0,e+1).every(e=>!K(e.route,t,r))}else i=C.every(e=>!K(e.route,t,r))}else i=null!=e.hydrationData;else i=!0;else if(i=!1,C=[],x.v7_partialHydration){let t=tn(null,w,e.history.location.pathname);t.active&&t.matches&&(T=!0,C=t.matches)}let O={historyAction:e.history.action,location:e.history.location,matches:C,initialized:i,navigation:W,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||_,fetchers:new Map,blockers:new Map},z=a.Pop,V=!1,X=!1,Q=new Map,Z=null,et=!1,en=!1,es=[],ed=new Set,ey=new Map,eE=0,eM=-1,eT=new Map,eU=new Set,e_=new Map,eO=new Map,ez=new Set,eI=new Map,eH=new Map;function eW(e,t){void 0===t&&(t={}),O=o({},O,e);let r=[],a=[];x.v7_fetcherPersist&&O.fetchers.forEach((e,t)=>{"idle"===e.state&&(ez.has(t)?a.push(t):r.push(t))}),ez.forEach(e=>{O.fetchers.has(e)||ey.has(e)||a.push(e)}),[...M].forEach(e=>e(O,{deletedFetchers:a,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),x.v7_fetcherPersist?(r.forEach(e=>O.fetchers.delete(e)),a.forEach(e=>e4(e))):a.forEach(e=>ez.delete(e))}function eB(t,n,i){var l,s;let d,c,{flushSync:u}=void 0===i?{}:i,h=null!=O.actionData&&null!=O.navigation.formMethod&&eR(O.navigation.formMethod)&&"loading"===O.navigation.state&&(null==(l=t.state)?void 0:l._isRedirect)!==!0;d=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:h?O.actionData:null;let f=n.loaderData?eu(O.loaderData,n.loaderData,n.matches||[],n.errors):O.loaderData,p=O.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,F));let m=!0===V||null!=O.navigation.formMethod&&eR(O.navigation.formMethod)&&(null==(s=t.state)?void 0:s._isRedirect)!==!0;if(r&&(w=r,r=void 0),et||z===a.Pop||(z===a.Push?e.history.push(t,t.state):z===a.Replace&&e.history.replace(t,t.state)),z===a.Pop){let e=Q.get(O.location.pathname);e&&e.has(t.pathname)?c={currentLocation:O.location,nextLocation:t}:Q.has(t.pathname)&&(c={currentLocation:t,nextLocation:O.location})}else if(X){let e=Q.get(O.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),Q.set(O.location.pathname,e)),c={currentLocation:O.location,nextLocation:t}}eW(o({},n,{actionData:d,loaderData:f,historyAction:z,location:t,initialized:!0,navigation:W,revalidation:"idle",restoreScrollPosition:ta(t,n.matches||O.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:c,flushSync:!0===u}),z=a.Pop,V=!1,X=!1,et=!1,en=!1,es=[]}async function eF(t,r){if("number"==typeof t)return void e.history.go(t);let n=Y(O.location,O.matches,D,x.v7_prependBasename,t,x.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:i,submission:l,error:s}=J(x.v7_normalizeFormMethod,!1,n,r),d=O.location,c=u(O.location,i,r&&r.state);c=o({},c,e.history.encodeLocation(c));let h=r&&null!=r.replace?r.replace:void 0,f=a.Push;!0===h?f=a.Replace:!1===h||null!=l&&eR(l.formMethod)&&l.formAction===O.location.pathname+O.location.search&&(f=a.Replace);let p=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,m=!0===(r&&r.flushSync),v=e9({currentLocation:d,nextLocation:c,historyAction:f});return v?void e6(v,{state:"blocked",location:c,proceed(){e6(v,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),eF(t,r)},reset(){let e=new Map(O.blockers);e.set(v,F),eW({blockers:e})}}):await eN(f,c,{submission:l,pendingError:s,preventScrollReset:p,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:m})}async function eN(t,a,i){var l,s,d,u;let h;c&&c.abort(),c=null,z=t,et=!0===(i&&i.startUninterruptedRevalidation),l=O.location,s=O.matches,k&&A&&(k[tr(l,s)]=A()),V=!0===(i&&i.preventScrollReset),X=!0===(i&&i.enableViewTransition);let f=r||w,p=i&&i.overrideNavigation,m=null!=i&&i.initialHydration&&O.matches&&O.matches.length>0&&!T?O.matches:v(f,a,D),y=!0===(i&&i.flushSync);if(m&&O.initialized&&!en&&(d=O.location,u=a,d.pathname===u.pathname&&d.search===u.search&&(""===d.hash?""!==u.hash:d.hash===u.hash||""!==u.hash||!1))&&!(i&&i.submission&&eR(i.submission.formMethod)))return void eB(a,{matches:m},{flushSync:y});let g=tn(m,f,a.pathname);if(g.active&&g.matches&&(m=g.matches),!m){let{error:e,notFoundMatches:t,route:r}=te(a.pathname);eB(a,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:y});return}c=new AbortController;let b=el(e.history,a,c.signal,i&&i.submission);if(i&&i.pendingError)h=[ef(m).route.id,{type:n.error,error:i.pendingError}];else if(i&&i.submission&&eR(i.submission.formMethod)){let t=await e$(b,a,i.submission,m,g.active,{replace:i.replace,flushSync:y});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(eb(r)&&U(r.error)&&404===r.error.status){c=null,eB(a,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}m=t.matches||m,h=t.pendingActionResult,p=eA(a,i.submission),y=!1,g.active=!1,b=el(e.history,b.url,b.signal)}let{shortCircuited:E,matches:R,loaderData:S,errors:x}=await eq(b,a,m,g.active,p,i&&i.submission,i&&i.fetcherSubmission,i&&i.replace,i&&!0===i.initialHydration,y,h);E||(c=null,eB(a,o({matches:R||m},eh(h),{loaderData:S,errors:x})))}async function e$(t,r,o,i,l,s){var d;let c;if(void 0===s&&(s={}),eQ(),eW({navigation:{state:"submitting",location:r,formMethod:(d=o).formMethod,formAction:d.formAction,formEncType:d.formEncType,formData:d.formData,json:d.json,text:d.text}},{flushSync:!0===s.flushSync}),l){let e=await to(i,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=ef(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:n.error,error:e.error}]}}if(e.matches)i=e.matches;else{let{notFoundMatches:e,error:t,route:a}=te(r.pathname);return{matches:e,pendingActionResult:[a.id,{type:n.error,error:t}]}}}let u=ek(i,r);
1if(u.route.action||u.route.lazy){if(c=(await eG("action",O,t,[u],i,null))[u.route.id],t.signal.aborted)return{shortCircuited:!0}}else c={type:n.error,error:em(405,{method:t.method,pathname:r.pathname,routeId:u.route.id})};if(ew(c)){let r;return r=s&&null!=s.replace?s.replace:ei(c.response.headers.get("Location"),new URL(t.url),D,e.history)===O.location.pathname+O.location.search,await eX(t,c,!0,{submission:o,replace:r}),{shortCircuited:!0}}if(eg(c))throw em(400,{type:"defer-action"});if(eb(c)){let e=ef(i,u.route.id);return!0!==(s&&s.replace)&&(z=a.Push),{matches:i,pendingActionResult:[e.route.id,c]}}return{matches:i,pendingActionResult:[u.route.id,c]}}async function eq(t,a,n,i,l,s,d,u,h,f,p){let m=l||eA(a,s),v=s||d||eL(m),y=!et&&(!x.v7_partialHydration||!h);if(i){if(y){let e=eV(p);eW(o({navigation:m},void 0!==e?{actionData:e}:{}),{flushSync:f})}let e=await to(n,a.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=ef(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)n=e.matches;else{let{error:e,notFoundMatches:t,route:r}=te(a.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let g=r||w,[b,E]=G(e.history,O,n,v,a,x.v7_partialHydration&&!0===h,x.v7_skipActionErrorRevalidation,en,es,ed,ez,e_,eU,g,D,p);if(tt(e=>!(n&&n.some(t=>t.route.id===e))||b&&b.some(t=>t.route.id===e)),eM=++eE,0===b.length&&0===E.length){let e=e2();return eB(a,o({matches:n,loaderData:{},errors:p&&eb(p[1])?{[p[0]]:p[1].error}:null},eh(p),e?{fetchers:new Map(O.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(y){let e={};if(!i){e.navigation=m;let t=eV(p);void 0!==t&&(e.actionData=t)}E.length>0&&(E.forEach(e=>{let t=O.fetchers.get(e.key),r=ej(void 0,t?t.data:void 0);O.fetchers.set(e.key,r)}),e.fetchers=new Map(O.fetchers)),eW(e,{flushSync:f})}E.forEach(e=>{e7(e.key),e.controller&&ey.set(e.key,e.controller)});let R=()=>E.forEach(e=>e7(e.key));c&&c.signal.addEventListener("abort",R);let{loaderResults:S,fetcherResults:P}=await eK(O,n,b,E,t);if(t.signal.aborted)return{shortCircuited:!0};c&&c.signal.removeEventListener("abort",R),E.forEach(e=>ey.delete(e.key));let M=ev(S);if(M)return await eX(t,M.result,!0,{replace:u}),{shortCircuited:!0};if(M=ev(P))return eU.add(M.key),await eX(t,M.result,!0,{replace:u}),{shortCircuited:!0};let{loaderData:k,errors:L}=ec(O,n,S,p,E,P,eI);eI.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&eI.delete(t)})}),x.v7_partialHydration&&h&&O.errors&&(L=o({},O.errors,L));let A=e2(),j=e5(eM),C=A||j||E.length>0;return o({matches:n,loaderData:k,errors:L},C?{fetchers:new Map(O.fetchers)}:{})}function eV(e){if(e&&!eb(e[1]))return{[e[0]]:e[1].data};if(O.actionData)if(0===Object.keys(O.actionData).length)return null;else return O.actionData}async function eY(t,a,n,o,i,l,d,u,h){var f,p;function m(e){if(!e.route.action&&!e.route.lazy){let e=em(405,{method:h.formMethod,pathname:n,routeId:a});return e0(t,a,e,{flushSync:d}),!0}return!1}if(eQ(),e_.delete(t),!l&&m(o))return;let y=O.fetchers.get(t);eZ(t,(f=h,p=y,{state:"submitting",formMethod:f.formMethod,formAction:f.formAction,formEncType:f.formEncType,formData:f.formData,json:f.json,text:f.text,data:p?p.data:void 0}),{flushSync:d});let g=new AbortController,b=el(e.history,n,g.signal,h);if(l){let e=await to(i,new URL(b.url).pathname,b.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void e0(t,a,e.error,{flushSync:d});if(!e.matches)return void e0(t,a,em(404,{pathname:n}),{flushSync:d});if(m(o=ek(i=e.matches,n)))return}ey.set(t,g);let E=eE,R=(await eG("action",O,b,[o],i,t))[o.route.id];if(b.signal.aborted){ey.get(t)===g&&ey.delete(t);return}if(x.v7_fetcherPersist&&ez.has(t)){if(ew(R)||eb(R))return void eZ(t,eC(void 0))}else{if(ew(R))return(ey.delete(t),eM>E)?void eZ(t,eC(void 0)):(eU.add(t),eZ(t,ej(h)),eX(b,R,!1,{fetcherSubmission:h,preventScrollReset:u}));if(eb(R))return void e0(t,a,R.error)}if(eg(R))throw em(400,{type:"defer-action"});let S=O.navigation.location||O.location,P=el(e.history,S,g.signal),M=r||w,k="idle"!==O.navigation.state?v(M,O.navigation.location,D):O.matches;s(k,"Didn't find any matches after fetcher action");let L=++eE;eT.set(t,L);let A=ej(h,R.data);O.fetchers.set(t,A);let[j,C]=G(e.history,O,k,h,S,!1,x.v7_skipActionErrorRevalidation,en,es,ed,ez,e_,eU,M,D,[o.route.id,R]);C.filter(e=>
1e.key!==t).forEach(e=>{let t=e.key,r=O.fetchers.get(t),a=ej(void 0,r?r.data:void 0);O.fetchers.set(t,a),e7(t),e.controller&&ey.set(t,e.controller)}),eW({fetchers:new Map(O.fetchers)});let T=()=>C.forEach(e=>e7(e.key));g.signal.addEventListener("abort",T);let{loaderResults:U,fetcherResults:_}=await eK(O,k,j,C,P);if(g.signal.aborted)return;g.signal.removeEventListener("abort",T),eT.delete(t),ey.delete(t),C.forEach(e=>ey.delete(e.key));let I=ev(U);if(I)return eX(P,I.result,!1,{preventScrollReset:u});if(I=ev(_))return eU.add(I.key),eX(P,I.result,!1,{preventScrollReset:u});let{loaderData:H,errors:W}=ec(O,k,U,void 0,C,_,eI);if(O.fetchers.has(t)){let e=eC(R.data);O.fetchers.set(t,e)}e5(L),"loading"===O.navigation.state&&L>eM?(s(z,"Expected pending action"),c&&c.abort(),eB(O.navigation.location,{matches:k,loaderData:H,errors:W,fetchers:new Map(O.fetchers)})):(eW({errors:W,loaderData:eu(O.loaderData,H,k,W),fetchers:new Map(O.fetchers)}),en=!1)}async function eJ(t,r,a,n,o,i,l,d,c){let u=O.fetchers.get(t);eZ(t,ej(c,u?u.data:void 0),{flushSync:l});let h=new AbortController,f=el(e.history,a,h.signal);if(i){let e=await to(o,new URL(f.url).pathname,f.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void e0(t,r,e.error,{flushSync:l});if(!e.matches)return void e0(t,r,em(404,{pathname:a}),{flushSync:l});n=ek(o=e.matches,a)}ey.set(t,h);let p=eE,m=(await eG("loader",O,f,[n],o,t))[n.route.id];if(eg(m)&&(m=await eP(m,f.signal,!0)||m),ey.get(t)===h&&ey.delete(t),!f.signal.aborted){if(ez.has(t))return void eZ(t,eC(void 0));if(ew(m))if(eM>p)return void eZ(t,eC(void 0));else{eU.add(t),await eX(f,m,!1,{preventScrollReset:d});return}if(eb(m))return void e0(t,r,m.error);s(!eg(m),"Unhandled fetcher deferred data"),eZ(t,eC(m.data))}}async function eX(t,r,n,i){let{submission:l,fetcherSubmission:d,preventScrollReset:h,replace:m}=void 0===i?{}:i;r.response.headers.has("X-Remix-Revalidate")&&(en=!0);let v=r.response.headers.get("Location");s(v,"Expected a Location header on the redirect Response"),v=ei(v,new URL(t.url),D,e.history);let y=u(O.location,v,{_isRedirect:!0});if(p){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(N.test(v)){let r=e.history.createURL(v);t=r.origin!==f.location.origin||null==E(r.pathname,D)}if(t)return void(m?f.location.replace(v):f.location.assign(v))}c=null;let g=!0===m||r.response.headers.has("X-Remix-Replace")?a.Replace:a.Push,{formMethod:b,formAction:w,formEncType:R}=O.navigation;!l&&!d&&b&&w&&R&&(l=eL(O.navigation));let S=l||d;if(H.has(r.response.status)&&S&&eR(S.formMethod))await eN(g,y,{submission:o({},S,{formAction:v}),preventScrollReset:h||V,enableViewTransition:n?X:void 0});else{let e=eA(y,l);await eN(g,y,{overrideNavigation:e,fetcherSubmission:d,preventScrollReset:h||V,enableViewTransition:n?X:void 0})}}async function eG(e,r,a,o,i,l){let d,c={};try{d=await ea(R,e,r,a,o,i,l,b,t)}catch(e){return o.forEach(t=>{c[t.route.id]={type:n.error,error:e}}),c}for(let[e,t]of Object.entries(d)){var u;if(eD((u=t).result)&&I.has(u.result.status)){let r=t.result;c[e]={type:n.redirect,response:function(e,t,r,a,n,o){let i=e.headers.get("Location");if(s(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!N.test(i)){let l=a.slice(0,a.findIndex(e=>e.route.id===r)+1);i=Y(new URL(t.url),l,n,!0,i,o),e.headers.set("Location",i)}return e}(r,a,e,i,D,x.v7_relativeSplatPath)}}else c[e]=await eo(t)}return c}async function eK(t,r,a,o,i){let l=t.matches,s=eG("loader",t,i,a,r,null),d=Promise.all(o.map(async r=>{if(!r.matches||!r.match||!r.controller)return Promise.resolve({[r.key]:{type:n.error,error:em(404,{pathname:r.path})}});{let a=(await eG("loader",t,el(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:a}}})),c=await s,u=(await d).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([eS(r,c,i.signal,l,t.loaderData),ex(r,u,o)]),{loaderResults:c,fetcherResults:u}}function eQ(){en=!0,es.push(...tt()),e_.forEach((e,t)=>{ey.has(t)&&ed.add(t),e7(t)})}function eZ(e,t,r){void 0===r&&(r={}),O.fetchers.set(e,t),eW({fetchers:new Map(O.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function e0(e,t,r,a){void 0===a&&(a={});let n=ef(O.matches,t);e4(e),eW({errors:{[n.route.id]:r},fetchers:new Map(O.fetchers)},{flushSync:!0===(a&&a.flushSync)})}function e1(e){return eO.set(e,(eO.get(e)||0)+1),ez.has(e)&&ez.delete(e),O.fetchers.get(e)||B}function e4(e){let t=O.fetchers.get(e);ey.has(e)&&!(t&&"loading"===t.state&&eT.has(e))&&e7(e),e_.delete(e),eT.delete(e),eU.delete(e),x.v7_fetcherPersist&&ez.delete(e),ed.delete(e),O.fetchers.delete(e)}function e7(e){let t=ey.get(e);t&&(t.abort(),ey.delete(e))}function e3(e){for(let t of e){let e=eC(e1(t).data);O.fetchers.set(t,e)}}function e2(){let e=[],t=!1;for(let r of eU){let a=O.fetchers.get(r);s(a,"Expected fetcher: "+r),"loading"===a.state&&(eU.delete(r),e.push(r),t=!0)}return e3(e),t}function e5(e){let t=[];for(let[r,a]of eT)if(a<e){let e=O.fetchers.get(r);s(e,"Expected fetcher: "+r),"loading"===e.state&&(e7(r),eT.delete(r),t.push(r))}return e3(t),t.length>0}function e8(e){O.blockers.delete(e),eH.delete(e)}function e6(e,t){let r=O.blockers.get(e)||F;s("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let a=new Map(O.blockers);a.set(e,t),eW({blockers:a})}function e9(e){let{currentLocation:t,nextLocation:r,historyAction:a}=e;if(0===eH.size)return;eH.size>1&&d(!1,"A router only supports one blocker at a time");let n=Array.from(eH.entries()),[o,i]=n[n.length-1],l=O.blockers.get(o);if((!l||"proceeding"!==l.state)&&i({currentLocation:t,nextLocation:r,historyAction:a}))return o}function te(e){let t=em(404,{pathname:e}),{matches:a,route:n}=ep(r||w);return tt(),{notFoundMatches:a,route:n,error:t}}function tt(e){let t=[];return eI.forEach((r,a)=>{(!e||e(a))&&(r.cancel(),t.push(a),eI.delete(a))}),t}function tr(e,t){return L&&L(e,t.map(e=>(function(e,t){let{route:r,pathname:a,params:n}=e;return{id:r.id,pathname:a,params:n,data:t[r.id],handle:r.handle}})(e,O.loaderData)))||e.key}function ta(e,t){if(k){let r=k[tr(e,t)];if("number"==typeof r)return r}return null}function tn(e,t,r){if(S){if(!e)return{active:!0,matches:y(t,r,D,!0)||[]};else if(Object.keys(e[0].params).length>0)return{active:!0,matches:y(t,r,D,!0)}}return{active:!1,matches:null}}async function to(e,a,n,o){if(!S)return{type:"success",matches:e};let i=e;for(;;){let e=null==r,l=r||w,s=b;try{await S({signal:n,path:a,matches:i,fetcherKey:o,patch:(e,r)=>{n.aborted||ee(e,r,l,s,t)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{e&&!n.aborted&&(w=[...w])}if(n.aborted)return{type:"aborted"};let d=v(l,a,D);if(d)return{type:"success",matches:d};let c=y(l,a,D,!0);if(!c||i.length===c.length&&i.every((e,t)=>e.route.id===c[t].route.id))return{type:"success",matches:null};i=c}}return l={get basename(){return D},get future(){return x},get state(){return O},get routes(){return w},get window(){return f},initialize:function(){if(P=e.history.listen(t=>{let{action:r,location:a,delta:n}=t;if(h){h(),h=void 0;return}d(0===eH.size||null!=n,"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 o=e9({currentLocation:O.location,nextLocation:a,historyAction:r});if(o&&null!=n){let t=new Promise(e=>{h=e});e.history.go(-1*n),e6(o,{state:"blocked",location:a,proceed(){e6(o,{state:"proceeding",proceed:void 0,reset:void 0,location:a}),t.then(()=>e.history.go(n))},reset(){let e=new Map(O.blockers);e.set(o,F),eW({blockers:e})}});return}return eN(r,a)}),p){var t=f,r=Q;try{let e=t.sessionStorage.getItem(q);if(e){let t=JSON.parse(e);for(let[e,a]of Object.entries(t||{}))a&&Array.isArray(a)&&r.set(e,new Set(a||[]))}}catch(e){}let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,a]of t)r[e]=[...a];try{e.sessionStorage.setItem(q,JSON.stringify(r))}catch(e){d(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(f,Q);f.addEventListener("pagehide",e),Z=()=>f.removeEventListener("pagehide",e)}return O.initialized||eN(a.Pop,O.location,{initialHydration:!0}),l},subscribe:function(e){return M.add(e),()=>M.delete(e)},enableScrollRestoration:function(e,t,r){if(k=e,A=t,L=r||null,!j&&O.navigation===W){j=!0;let e=ta(O.location,O.matches);null!=e&&eW({restoreScrollPosition:e})}return()=>{k=null,A=null,L=null}},navigate:eF,fetch:function(e,t,a,n){if(g)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.");e7(e);let o=!0===(n&&n.flushSync),i=r||w,l=Y(O.location,O.matches,D,x.v7_prepe
1ndBasename,a,x.v7_relativeSplatPath,t,null==n?void 0:n.relative),s=v(i,l,D),d=tn(s,i,l);if(d.active&&d.matches&&(s=d.matches),!s)return void e0(e,t,em(404,{pathname:l}),{flushSync:o});let{path:c,submission:u,error:h}=J(x.v7_normalizeFormMethod,!0,l,n);if(h)return void e0(e,t,h,{flushSync:o});let f=ek(s,c),p=!0===(n&&n.preventScrollReset);if(u&&eR(u.formMethod))return void eY(e,t,c,f,s,d.active,o,p,u);e_.set(e,{routeId:t,path:c}),eJ(e,t,c,f,s,d.active,o,p,u)},revalidate:function(){if(eQ(),eW({revalidation:"loading"}),"submitting"!==O.navigation.state){if("idle"===O.navigation.state)return void eN(O.historyAction,O.location,{startUninterruptedRevalidation:!0});eN(z||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:!0===X})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:e1,deleteFetcher:function(e){let t=(eO.get(e)||0)-1;t<=0?(eO.delete(e),ez.add(e),x.v7_fetcherPersist||e4(e)):eO.set(e,t),eW({fetchers:new Map(O.fetchers)})},dispose:function(){P&&P(),Z&&Z(),M.clear(),c&&c.abort(),O.fetchers.forEach((e,t)=>e4(t)),O.blockers.forEach((e,t)=>e8(t))},getBlocker:function(e,t){let r=O.blockers.get(e)||F;return eH.get(e)!==t&&eH.set(e,t),r},deleteBlocker:e8,patchRoutes:function(e,a){let n=null==r;ee(e,a,r||w,b,t),n&&(w=[...w],eW({}))},_internalFetchControllers:ey,_internalActiveDeferreds:eI,_internalSetRoutes:function(e){r=m(e,t,void 0,b={})}}}function Y(e,t,r,a,n,o,i,l){let s,d;if(i){for(let e of(s=[],t))if(s.push(e),e.route.id===i){d=e;break}}else s=t,d=t[t.length-1];let c=M(n||".",P(s,o),E(e.pathname,r)||e.pathname,"path"===l);if(null==n&&(c.search=e.search,c.hash=e.hash),(null==n||""===n||"."===n)&&d){let e=eM(c.search);if(d.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!d.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();c.search=r?"?"+r:""}}return a&&"/"!==r&&(c.pathname="/"===c.pathname?r:k([r,c.pathname])),h(c)}function J(e,t,r,a){var n;let o,i;if(!a||!(null!=a&&("formData"in a&&null!=a.formData||"body"in a&&void 0!==a.body)))return{path:r};if(a.formMethod&&(n=a.formMethod,!z.has(n.toLowerCase())))return{path:r,error:em(405,{method:a.formMethod})};let l=()=>({path:r,error:em(400,{type:"invalid-body"})}),d=a.formMethod||"get",c=e?d.toUpperCase():d.toLowerCase(),u=ey(r);if(void 0!==a.body){if("text/plain"===a.formEncType){if(!eR(c))return l();let e="string"==typeof a.body?a.body:a.body instanceof FormData||a.body instanceof URLSearchParams?Array.from(a.body.entries()).reduce((e,t)=>{let[r,a]=t;return""+e+r+"="+a+"\n"},""):String(a.body);return{path:r,submission:{formMethod:c,formAction:u,formEncType:a.formEncType,formData:void 0,json:void 0,text:e}}}else if("application/json"===a.formEncType){if(!eR(c))return l();try{let e="string"==typeof a.body?JSON.parse(a.body):a.body;return{path:r,submission:{formMethod:c,formAction:u,formEncType:a.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(s("function"==typeof FormData,"FormData is not available in this environment"),a.formData)o=es(a.formData),i=a.formData;else if(a.body instanceof FormData)o=es(a.body),i=a.body;else if(a.body instanceof URLSearchParams)i=ed(o=a.body);else if(null==a.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(a.body),i=ed(o)}catch(e){return l()}let p={formMethod:c,formAction:u,formEncType:a&&a.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(eR(p.formMethod))return{path:r,submission:p};let m=f(r);return t&&m.search&&eM(m.search)&&o.append("index",""),m.search="?"+o,{path:h(m),submission:p}}function X(e,t,r){void 0===r&&(r=!1);let a=e.findIndex(e=>e.route.id===t);return a>=0?e.slice(0,r?a+1:a):e}function G(e,t,r,a,n,i,l,s,d,c,u,h,f,p,m,y){let g=y?eb(y[1])?y[1].error:y[1].data:void 0,b=e.createURL(t.location),w=e.createURL(n),E=r;i&&t.errors?E=X(r,Object.keys(t.errors)[0],!0):y&&eb(y[1])&&(E=X(r,y[0]));
1let D=y?y[1].statusCode:void 0,R=l&&D&&D>=400,S=E.filter((e,r)=>{var n,l,c;let u,h,{route:f}=e;if(f.lazy)return!0;if(null==f.loader)return!1;if(i)return K(f,t.loaderData,t.errors);if(n=t.loaderData,l=t.matches[r],c=e,u=!l||c.route.id!==l.route.id,h=void 0===n[c.route.id],u||h||d.some(t=>t===e.route.id))return!0;let p=t.matches[r];return Z(e,o({currentUrl:b,currentParams:p.params,nextUrl:w,nextParams:e.params},a,{actionResult:g,actionStatus:D,defaultShouldRevalidate:!R&&(s||b.pathname+b.search===w.pathname+w.search||b.search!==w.search||Q(p,e))}))}),x=[];return h.forEach((e,n)=>{if(i||!r.some(t=>t.route.id===e.routeId)||u.has(n))return;let l=v(p,e.path,m);if(!l)return void x.push({key:n,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let d=t.fetchers.get(n),h=ek(l,e.path),y=!1;f.has(n)?y=!1:c.has(n)?(c.delete(n),y=!0):y=d&&"idle"!==d.state&&void 0===d.data?s:Z(h,o({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},a,{actionResult:g,actionStatus:D,defaultShouldRevalidate:!R&&s})),y&&x.push({key:n,routeId:e.routeId,path:e.path,matches:l,match:h,controller:new AbortController})}),[S,x]}function K(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let a=null!=t&&void 0!==t[e.id],n=null!=r&&void 0!==r[e.id];return(!!a||!n)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!a&&!n)}function Q(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Z(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function ee(e,t,r,a,n){var o;let i;if(e){let t=a[e];s(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let l=m(t.filter(e=>!i.some(t=>(function e(t,r){return"id"in t&&"id"in r&&t.id===r.id||t.index===r.index&&t.path===r.path&&t.caseSensitive===r.caseSensitive&&((!t.children||0===t.children.length)&&(!r.children||0===r.children.length)||t.children.every((t,a)=>{var n;return null==(n=r.children)?void 0:n.some(r=>e(t,r))}))})(e,t))),n,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],a);i.push(...l)}async function et(e,t,r){if(!e.lazy)return;let a=await e.lazy();if(!e.lazy)return;let n=r[e.id];s(n,"No route found in manifest");let i={};for(let e in a){let t=void 0!==n[e]&&"hasErrorBoundary"!==e;d(!t,'Route "'+n.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||p.has(e)||(i[e]=a[e])}Object.assign(n,i),Object.assign(n,o({},t(n),{lazy:void 0}))}async function er(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,a)=>Object.assign(e,{[r[a].route.id]:t}),{})}async function ea(e,t,r,a,i,l,s,d,c,u){let h=l.map(e=>e.route.lazy?et(e.route,c,d):void 0),f=l.map((e,r)=>{let l=h[r],s=i.some(t=>t.route.id===e.route.id),d=async r=>(r&&"GET"===a.method&&(e.route.lazy||e.route.loader)&&(s=!0),s?en(t,a,e,l,r,u):Promise.resolve({type:n.data,result:void 0}));return o({},e,{shouldLoad:s,resolve:d})}),p=await e({matches:f,request:a,params:l[0].params,fetcherKey:s,context:u});try{await Promise.all(h)}catch(e){}return p}async function en(e,t,r,a,o,i){let l,d,c=a=>{let n,l=new Promise((e,t)=>n=t);d=()=>n(),t.signal.addEventListener("abort",d);let s=n=>"function"!=typeof a?Promise.reject(Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: ')+r.route.id+"]")):a({request:t,params:r.params,context:i},...void 0!==n?[n]:[]);return Promise.race([(async()=>{try{let e=await (o?o(e=>s(e)):s());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),l])};try{let o=r.route[e];if(a)if(o){let e,[t]=await Promise.all([c(o).catch(t=>{e=t}),a]);if(void 0!==e)throw e;l=t}else if(await a,o=r.route[e])l=await c(o);else{if("action"!==e)return{type:n.data,result:void 0};let a=new URL(t.url),o=a.pathname+a.search;throw em(405,{method:t.method,pathname:o,routeId:r.route.id})}else if(o)l=await c(o);else{let e=new URL(t.url),r=e.pathname+e.search;throw em(404,{pathname:r})}s(void 0!==l.result,"You defined "+("action"===e?"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(e){return{type:n.error,result:e}}finally{d&&t.signal.removeEventListener("abort",d)}return l}async function eo(e){var t,r,a,o,i,l,s,d,c;let{result:u,type:h}=e;if(eD(u)){let e;try{let t=u.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==u.body?null:await u.json():await u.text()}catch(e){return{type:n.error,error:e}}return h===n.error?{type:n.error,error:new T(u.status,u.statusText,e),statusCode:u.status,headers:u.headers}:{type:n.data,data:e,statusCode:u.status,headers:u.headers}}if(h===n.error)return eE(u)?u.data instanceof Error?{type:n.error,error:u.data,statusCode:null==(a=u.init)?void 0:a.status,headers:null!=(o=u.init)&&o.headers?new Headers(u.init.headers):void 0}:{type:n.error,error:new T((null==(t=u.init)?void 0:t.status)||500,void 0,u.data),statusCode:U(u)?u.status:void 0,headers:null!=(r=u.init)&&r.headers?new Headers(u.init.headers):void 0}:{type:n.error,error:u,statusCode:U(u)?u.status:void 0};return(c=u)&&"object"==typeof c&&"object"==typeof c.data&&"function"==typeof c.subscribe&&"function"==typeof c.cancel&&"function"==typeof c.resolveData?{type:n.deferred,deferredData:u,statusCode:null==(i=u.init)?void 0:i.status,headers:(null==(l=u.init)?void 0:l.headers)&&new Headers(u.init.headers)}:eE(u)?{type:n.data,data:u.data,statusCode:null==(s=u.init)?void 0:s.status,headers:null!=(d=u.init)&&d.headers?new Headers(u.init.headers):void 0}:{type:n.data,data:u}}function ei(e,t,r,a){let n=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(N.test(e)){let a=new URL(e.startsWith("//")?t.protocol+e:e);if(n.includes(a.protocol))throw Error("Invalid redirect location");let o=null!=E(a.pathname,r);
1if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}try{let t=a.createURL(e);if(n.includes(t.protocol))throw Error("Invalid redirect location")}catch(e){}return e}function el(e,t,r,a){let n=e.createURL(ey(t)).toString(),o={signal:r};if(a&&eR(a.formMethod)){let{formMethod:e,formEncType:t}=a;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(a.json)):"text/plain"===t?o.body=a.text:"application/x-www-form-urlencoded"===t&&a.formData?o.body=es(a.formData):o.body=a.formData}return new Request(n,o)}function es(e){let t=new URLSearchParams;for(let[r,a]of e.entries())t.append(r,"string"==typeof a?a:a.name);return t}function ed(e){let t=new FormData;for(let[r,a]of e.entries())t.append(r,a);return t}function ec(e,t,r,a,n,i,l){let d,c,u,h,f,p,{loaderData:m,errors:v}=(c={},u=null,h=!1,f={},p=a&&eb(a[1])?a[1].error:void 0,t.forEach(e=>{if(!(e.route.id in r))return;let a=e.route.id,n=r[a];if(s(!ew(n),"Cannot handle redirect results in processLoaderData"),eb(n)){let e=n.error;void 0!==p&&(e=p,p=void 0),u=u||{},1;{let r=ef(t,a);null==u[r.route.id]&&(u[r.route.id]=e)}c[a]=void 0,h||(h=!0,d=U(n.error)?n.error.status:500),n.headers&&(f[a]=n.headers)}else eg(n)?(l.set(a,n.deferredData),c[a]=n.deferredData.data,null==n.statusCode||200===n.statusCode||h||(d=n.statusCode)):(c[a]=n.data,n.statusCode&&200!==n.statusCode&&!h&&(d=n.statusCode)),n.headers&&(f[a]=n.headers)}),void 0!==p&&a&&(u={[a[0]]:p},c[a[0]]=void 0),{loaderData:c,errors:u,statusCode:d||200,loaderHeaders:f});return n.forEach(t=>{let{key:r,match:a,controller:n}=t,l=i[r];if(s(l,"Did not find corresponding fetcher result"),!n||!n.signal.aborted)if(eb(l)){let t=ef(e.matches,null==a?void 0:a.route.id);v&&v[t.route.id]||(v=o({},v,{[t.route.id]:l.error})),e.fetchers.delete(r)}else if(ew(l))s(!1,"Unhandled fetcher revalidation redirect");else if(eg(l))s(!1,"Unhandled fetcher deferred data");else{let t=eC(l.data);e.fetchers.set(r,t)}}),{loaderData:m,errors:v}}function eu(e,t,r,a){let n=o({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(n[r]=t[r]):void 0!==e[r]&&o.route.loader&&(n[r]=e[r]),a&&a.hasOwnProperty(r))break}return n}function eh(e){return e?eb(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ef(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function ep(e){let t=1===e.length?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 em(e,t){let{pathname:r,routeId:a,method:n,type:o,message:i}=void 0===t?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(l="Bad Request",n&&r&&a?s="You made a "+n+' request to "'+r+'" but did not provide a `loader` for route "'+a+'", so there is no way to handle the request.':"defer-action"===o?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(l="Forbidden",s='Route "'+a+'" does not match URL "'+r+'"'):404===e?(l="Not Found",s='No route matches URL "'+r+'"'):405===e&&(l="Method Not Allowed",n&&r&&a?s="You made a "+n.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+a+'", so there is no way to handle the request.':n&&(s='Invalid request method "'+n.toUpperCase()+'"')),new T(e||500,l,Error(s),!0)}function ev(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,a]=t[e];if(ew(a))return{key:r,result:a}}}function ey(e){let t="string"==typeof e?f(e):e;return h(o({},t,{hash:""}))}function eg(e){return e.type===n.deferred}function eb(e){return e.type===n.error}function ew(e){return(e&&e.type)===n.redirect}function eE(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function eD(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eR(e){return O.has(e.toLowerCase())}async function eS(e,t,r,a,n){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[l,s]=o[i],d=e.find(e=>(null==e?void 0:e.route.id)===l);if(!d)continue;let c=a.find(e=>e.route.id===d.route.id),u=null!=c&&!Q(c,d)&&(n&&n[d.route.id])!==void 0;eg(s)&&u&&await eP(s,r,!1).then(e=>{e&&(t[l]=e)})}}async function ex(e,t,r){for(let a=0;a<r.length;a++){let{key:n,routeId:o,controller:i}=r[a],l=t[n];e.find(e=>(null==e?void 0:e.route.id)===o)&&eg(l)&&(s(i,"Expected an AbortController for revalidating fetcher deferred result"),await eP(l,i.signal,!0).then(e=>{e&&(t[n]=e)}))}}async function eP(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:n.data,data:e.deferredData.unwrappedData}
1}catch(e){return{type:n.error,error:e}}return{type:n.data,data:e.deferredData.data}}}function eM(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function ek(e,t){let r="string"==typeof t?f(t).search:t.search;if(e[e.length-1].route.index&&eM(r||""))return e[e.length-1];let a=x(e);return a[a.length-1]}function eL(e){let{formMethod:t,formAction:r,formEncType:a,text:n,formData:o,json:i}=e;if(t&&r&&a){if(null!=n)return{formMethod:t,formAction:r,formEncType:a,formData:void 0,json:void 0,text:n};else if(null!=o)return{formMethod:t,formAction:r,formEncType:a,formData:o,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:r,formEncType:a,formData:void 0,json:i,text:void 0}}}function eA(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 ej(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 eC(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}Symbol("deferred")}}]);

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.