/*! For license information please see 930-react-bee57050f20f5becbc10.js.LICENSE.txt */ "use strict";(self.webpackChunk_multimediallc_cb_react=self.webpackChunk_multimediallc_cb_react||[]).push([[930],{70744:(e,t,n)=>{function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;tO,HS:()=>F,Oi:()=>i,Rr:()=>d,VV:()=>W,aE:()=>ae,pX:()=>V,pb:()=>N,rc:()=>a,tH:()=>j,tW:()=>L,ue:()=>v,v6:()=>H,yD:()=>M,zR:()=>o}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));const l="popstate";function o(e){return void 0===e&&(e={}),function(e,t,n,o){void 0===o&&(o={});let{window:u=document.defaultView,v5Compat:d=!1}=o,p=u.history,h=a.Pop,m=null,v=y();function y(){return(p.state||{idx:null}).idx}function g(){h=a.Pop;let e=y(),t=null==e?null:e-v;v=e,m&&m({action:h,location:w.location,delta:t})}function b(e){let t="null"!==u.location.origin?u.location.origin:u.location.href,n="string"==typeof e?e:f(e);return n=n.replace(/ $/,"%20"),i(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==v&&(v=0,p.replaceState(r({},p.state,{idx:v}),""));let w={get action(){return h},get location(){return e(u,p)},listen(e){if(m)throw new Error("A history only accepts one active listener");return u.addEventListener(l,g),m=e,()=>{u.removeEventListener(l,g),m=null}},createHref:e=>t(u,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h=a.Push;let r=c(w.location,e,t);n&&n(r,e),v=y()+1;let l=s(r,v),o=w.createHref(r);try{p.pushState(l,"",o)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;u.location.assign(o)}d&&m&&m({action:h,location:w.location,delta:1})},replace:function(e,t){h=a.Replace;let r=c(w.location,e,t);n&&n(r,e),v=y();let l=s(r,v),o=w.createHref(r);p.replaceState(l,"",o),d&&m&&m({action:h,location:w.location,delta:0})},go:e=>p.go(e)};return w}((function(e,t){let{pathname:n,search:r,hash:a}=e.location;return c("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:f(t)}),null,e)}function i(e,t){if(!1===e||null==e)throw new Error(t)}function u(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function s(e,t){return{usr:e.state,key:e.key,idx:t}}function c(e,t,n,a){return void 0===n&&(n=null),r({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?d(t):t,{state:n,key:t&&t.key||a||Math.random().toString(36).substr(2,8)})}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 d(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}var p;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(p||(p={}));const h=new Set(["lazy","caseSensitive","path","id","index","children"]);function m(e,t,n,a){return void 0===n&&(n=[]),void 0===a&&(a={}),e.map(((e,l)=>{let o=[...n,l],u="string"==typeof e.id?e.id:o.join("-");if(i(!0!==e.index||!e.children,"Cannot specify children on an index route"),i(!a[u],'Found a route id collision on id "'+u+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let n=r({},e,t(e),{id:u});return a[u]=n,n}{let n=r({},e,t(e),{id:u,children:void 0});return a[u]=n,e.children&&(n.children=m(e.children,t,o,a)),n}}))}function v(e,t,n){void 0===n&&(n="/");let r=N(("string"==typeof t?d(t):t).pathname||"/",n);if(null==r)return null;let a=y(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(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}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let l=null;for(let e=0;null==l&&e{let o={relativePath:void 0===l?e.path||"":l,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};o.relativePath.startsWith("/")&&(i(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 u=F([r,o.relativePath]),s=n.concat(o);e.children&&e.children.length>0&&(i(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+u+'".'),y(e.children,t,s,u)),(null!=e.path||e.index)&&t.push({path:u,score:C(u,e.index),routesMeta:s})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let n of g(e.path))a(e,t,n);else a(e,t)})),t}function g(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(0===r.length)return a?[l,""]:[l];let o=g(r.join("/")),i=[];return i.push(...o.map((e=>""===e?l:[l,e].join("/")))),a&&i.push(...o),i.map((t=>e.startsWith("/")&&""===t?"/":t))}const b=/^:[\w-]+$/,w=3,k=2,S=1,E=10,x=-2,_=e=>"*"===e;function C(e,t){let n=e.split("/"),r=n.length;return n.some(_)&&(r+=x),t&&(r+=k),n.filter((e=>!_(e))).reduce(((e,t)=>e+(b.test(t)?w:""===t?S:E)),r)}function P(e,t){let{routesMeta:n}=e,r={},a="/",l=[];for(let e=0;enull==e?"":"string"==typeof e?e:String(e);return r+n.split(/\/+/).map(((e,n,r)=>{if(n===r.length-1&&"*"===e)return a(t["*"]);const l=e.match(/^:([\w-]+)(\??)$/);if(l){const[,e,n]=l;let r=t[e];return i("?"===n||null!=r,'Missing ":'+e+'" param'),a(r)}return e.replace(/\?$/g,"")})).filter((e=>!!e)).join("/")}function z(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0),u("*"===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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let l=a[0],o=l.replace(/(.)\/+$/,"$1"),i=a.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:a}=t;if("*"===r){let e=i[n]||"";o=l.slice(0,l.length-e.length).replace(/(.)\/+$/,"$1")}const u=i[n];return e[r]=a&&!u?void 0:(u||"").replace(/%2F/g,"/"),e}),{}),pathname:l,pathnameBase:o,pattern:e}}function T(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return u(!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 N(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)||"/"}function D(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 and the router will parse it for you.'}function R(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function M(e,t){let n=R(e);return t?n.map(((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)):n.map((e=>e.pathnameBase))}function O(e,t,n,a){let l;void 0===a&&(a=!1),"string"==typeof e?l=d(e):(l=r({},e),i(!l.pathname||!l.pathname.includes("?"),D("?","pathname","search",l)),i(!l.pathname||!l.pathname.includes("#"),D("#","pathname","hash",l)),i(!l.search||!l.search.includes("#"),D("#","search","hash",l)));let o,u=""===e||""===l.pathname,s=u?"/":l.pathname;if(null==s)o=n;else{let e=t.length-1;if(!a&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;l.pathname=t.join("/")}o=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"==typeof e?d(e):e,l=n?n.startsWith("/")?n:function(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("/"):"/"}(n,t):t;return{pathname:l,search:U(r),hash:A(a)}}(l,o),f=s&&"/"!==s&&s.endsWith("/"),p=(u||"."===s)&&n.endsWith("/");return c.pathname.endsWith("/")||!f&&!p||(c.pathname+="/"),c}const F=e=>e.join("/").replace(/\/\/+/g,"/"),I=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),U=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",A=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class j extends Error{}class ${constructor(e,t){let n;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],i(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise(((e,t)=>n=t)),this.controller=new AbortController;let r=()=>n(new j("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",r),this.controller.signal.addEventListener("abort",r),this.data=Object.entries(e).reduce(((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:this.trackPromise(n,r)})}),{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let n=Promise.race([t,this.abortPromise]).then((t=>this.onSettle(n,e,void 0,t)),(t=>this.onSettle(n,e,t)));return n.catch((()=>{})),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(e,t,n,r){if(this.controller.signal.aborted&&n instanceof j)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>n}),Promise.reject(n);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===n&&void 0===r){let n=new Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>n}),this.emit(!1,t),Promise.reject(n)}return void 0===r?(Object.defineProperty(e,"_error",{get:()=>n}),this.emit(!1,t),Promise.reject(n)):(Object.defineProperty(e,"_data",{get:()=>r}),this.emit(!1,t),r)}emit(e,t){this.subscribers.forEach((n=>n(e,t)))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach(((e,t)=>this.pendingKeysSet.delete(t))),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let n=()=>this.cancel();e.addEventListener("abort",n),t=await new Promise((t=>{this.subscribe((r=>{e.removeEventListener("abort",n),(r||this.done)&&t(r)}))}))}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return i(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce(((e,t)=>{let[n,r]=t;return Object.assign(e,{[n]:B(r)})}),{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function B(e){if(!function(e){return e instanceof Promise&&!0===e._tracked}(e))return e;if(e._error)throw e._error;return e._data}const H=function(e,t){return void 0===t&&(t={}),new $(e,"number"==typeof t?{status:t}:t)};class W{constructor(e,t,n,r){void 0===r&&(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 V(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const Q=["post","put","patch","delete"],q=new Set(Q),K=["get",...Q],Y=new Set(K),X=new Set([301,302,303,307,308]),G=new Set([307,308]),J={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Z={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ee={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},te=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ne=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),re="remix-router-transitions";function ae(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,n=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,l=!n;let o;if(i(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;o=e=>({hasErrorBoundary:t(e)})}else o=ne;let s,f,d={},h=m(e.routes,o,void 0,d),y=e.basename||"/",g=r({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),b=null,w=new Set,k=null,S=null,E=null,x=null!=e.hydrationData,_=v(h,e.history.location,y),C=null;if(null==_){let t=be(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=ge(h);_=n,C={[r.id]:t}}let P,L=_.some((e=>e.route.lazy)),z=_.some((e=>e.route.loader));if(L)f=!1;else if(z)if(g.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=e=>!e.route.loader||!0!==e.route.loader.hydrate&&(t&&void 0!==t[e.route.id]||n&&void 0!==n[e.route.id]);if(n){let e=_.findIndex((e=>void 0!==n[e.route.id]));f=_.slice(0,e+1).every(r)}else f=_.every(r)}else f=null!=e.hydrationData;else f=!0;let T,D={historyAction:e.history.action,location:e.history.location,matches:_,initialized:f,navigation:J,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||C,fetchers:new Map,blockers:new Map},R=a.Pop,M=!1,O=!1,F=new Map,I=null,U=!1,A=!1,j=[],$=[],B=new Map,H=0,W=-1,V=new Map,Q=new Set,q=new Map,K=new Map,Y=new Set,X=new Map,ae=new Map,ue=!1;function se(e,t){void 0===t&&(t={}),D=r({},D,e);let n=[],a=[];g.v7_fetcherPersist&&D.fetchers.forEach(((e,t)=>{"idle"===e.state&&(Y.has(t)?a.push(t):n.push(t))})),[...w].forEach((e=>e(D,{deletedFetchers:a,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),g.v7_fetcherPersist&&(n.forEach((e=>D.fetchers.delete(e))),a.forEach((e=>Ie(e))))}function ce(t,n,l){var o,i;let u,{flushSync:c}=void 0===l?{}:l,f=null!=D.actionData&&null!=D.navigation.formMethod&&_e(D.navigation.formMethod)&&"loading"===D.navigation.state&&!0!==(null==(o=t.state)?void 0:o._isRedirect);u=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:f?D.actionData:null;let d=n.loaderData?ve(D.loaderData,n.loaderData,n.matches||[],n.errors):D.loaderData,p=D.blockers;p.size>0&&(p=new Map(p),p.forEach(((e,t)=>p.set(t,ee))));let m,v=!0===M||null!=D.navigation.formMethod&&_e(D.navigation.formMethod)&&!0!==(null==(i=t.state)?void 0:i._isRedirect);if(s&&(h=s,s=void 0),U||R===a.Pop||(R===a.Push?e.history.push(t,t.state):R===a.Replace&&e.history.replace(t,t.state)),R===a.Pop){let e=F.get(D.location.pathname);e&&e.has(t.pathname)?m={currentLocation:D.location,nextLocation:t}:F.has(t.pathname)&&(m={currentLocation:t,nextLocation:D.location})}else if(O){let e=F.get(D.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),F.set(D.location.pathname,e)),m={currentLocation:D.location,nextLocation:t}}se(r({},n,{actionData:u,loaderData:d,historyAction:R,location:t,initialized:!0,navigation:J,revalidation:"idle",restoreScrollPosition:qe(t,n.matches||D.matches),preventScrollReset:v,blockers:p}),{viewTransitionOpts:m,flushSync:!0===c}),R=a.Pop,M=!1,O=!1,U=!1,A=!1,j=[],$=[]}async function pe(t,n,l){T&&T.abort(),T=null,R=t,U=!0===(l&&l.startUninterruptedRevalidation),function(e,t){if(k&&E){let n=Qe(e,t);k[n]=E()}}(D.location,D.matches),M=!0===(l&&l.preventScrollReset),O=!0===(l&&l.enableViewTransition);let i=s||h,u=l&&l.overrideNavigation,c=v(i,n,y),f=!0===(l&&l.flushSync);if(!c){let e=be(404,{pathname:n.pathname}),{matches:t,route:r}=ge(i);return Ve(),void ce(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:f})}if(D.initialized&&!A&&(m=D.location,b=n,m.pathname===b.pathname&&m.search===b.search&&(""===m.hash?""!==b.hash:m.hash===b.hash||""!==b.hash))&&!(l&&l.submission&&_e(l.submission.formMethod)))return void ce(n,{matches:c},{flushSync:f});var m,b;T=new AbortController;let w,S,x=de(e.history,n,T.signal,l&&l.submission);if(l&&l.pendingError)S={[ye(c).route.id]:l.pendingError};else if(l&&l.submission&&_e(l.submission.formMethod)){let e=await async function(e,t,n,r,l){void 0===l&&(l={}),Le();let i,u=function(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}}(t,n);se({navigation:u},{flushSync:!0===l.flushSync});let s=ze(r,t);if(s.route.action||s.route.lazy){if(i=await fe("action",e,s,r,d,o,y,g.v7_relativeSplatPath),e.signal.aborted)return{shortCircuited:!0}}else i={type:p.error,error:be(405,{method:e.method,pathname:t.pathname,routeId:s.route.id})};if(xe(i)){let e;return e=l&&null!=l.replace?l.replace:i.location===D.location.pathname+D.location.search,await he(D,i,{submission:n,replace:e}),{shortCircuited:!0}}if(Ee(i)){let e=ye(r,s.route.id);return!0!==(l&&l.replace)&&(R=a.Push),{pendingActionData:{},pendingActionError:{[e.route.id]:i.error}}}if(Se(i))throw be(400,{type:"defer-action"});return{pendingActionData:{[s.route.id]:i.data}}}(x,n,l.submission,c,{replace:l.replace,flushSync:f});if(e.shortCircuited)return;w=e.pendingActionData,S=e.pendingActionError,u=Ne(n,l.submission),f=!1,x=new Request(x.url,{signal:x.signal})}let{shortCircuited:_,loaderData:C,errors:P}=await async function(t,n,a,l,o,i,u,c,f,d,p){let m=l||Ne(n,o),v=o||i||Te(m),b=s||h,[w,k]=ie(e.history,D,a,v,n,g.v7_partialHydration&&!0===c,A,j,$,Y,q,Q,b,y,d,p);if(Ve((e=>!(a&&a.some((t=>t.route.id===e)))||w&&w.some((t=>t.route.id===e)))),W=++H,0===w.length&&0===k.length){let e=je();return ce(n,r({matches:a,loaderData:{},errors:p||null},d?{actionData:d}:{},e?{fetchers:new Map(D.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(!(U||g.v7_partialHydration&&c)){k.forEach((e=>{let t=D.fetchers.get(e.key),n=De(void 0,t?t.data:void 0);D.fetchers.set(e.key,n)}));let e=d||D.actionData;se(r({navigation:m},e?0===Object.keys(e).length?{actionData:null}:{actionData:e}:{},k.length>0?{fetchers:new Map(D.fetchers)}:{}),{flushSync:f})}k.forEach((e=>{B.has(e.key)&&Ue(e.key),e.controller&&B.set(e.key,e.controller)}));let S=()=>k.forEach((e=>Ue(e.key)));T&&T.signal.addEventListener("abort",S);let{results:E,loaderResults:x,fetcherResults:_}=await ke(D.matches,a,w,k,t);if(t.signal.aborted)return{shortCircuited:!0};T&&T.signal.removeEventListener("abort",S),k.forEach((e=>B.delete(e.key)));let C=we(E);if(C){if(C.idx>=w.length){let e=k[C.idx-w.length].key;Q.add(e)}return await he(D,C.result,{replace:u}),{shortCircuited:!0}}let{loaderData:P,errors:L}=me(D,a,w,x,p,k,_,X);X.forEach(((e,t)=>{e.subscribe((n=>{(n||e.done)&&X.delete(t)}))})),g.v7_partialHydration&&c&&D.errors&&Object.entries(D.errors).filter((e=>{let[t]=e;return!w.some((e=>e.route.id===t))})).forEach((e=>{let[t,n]=e;L=Object.assign(L||{},{[t]:n})}));let z=je(),N=$e(W),R=z||N||k.length>0;return r({loaderData:P,errors:L},R?{fetchers:new Map(D.fetchers)}:{})}(x,n,c,u,l&&l.submission,l&&l.fetcherSubmission,l&&l.replace,l&&!0===l.initialHydration,f,w,S);_||(T=null,ce(n,r({matches:c},w?{actionData:w}:{},{loaderData:C,errors:P})))}async function he(l,o,u){let{submission:s,fetcherSubmission:f,replace:d}=void 0===u?{}:u;o.revalidate&&(A=!0);let p=c(l.location,o.location,{_isRedirect:!0});if(i(p,"Expected a location on the redirect navigation"),n){let n=!1;if(o.reloadDocument)n=!0;else if(te.test(o.location)){const r=e.history.createURL(o.location);n=r.origin!==t.location.origin||null==N(r.pathname,y)}if(n)return void(d?t.location.replace(o.location):t.location.assign(o.location))}T=null;let h=!0===d?a.Replace:a.Push,{formMethod:m,formAction:v,formEncType:g}=l.navigation;!s&&!f&&m&&v&&g&&(s=Te(l.navigation));let b=s||f;if(G.has(o.status)&&b&&_e(b.formMethod))await pe(h,p,{submission:r({},b,{formAction:o.location}),preventScrollReset:M});else{let e=Ne(p,s);await pe(h,p,{overrideNavigation:e,fetcherSubmission:f,preventScrollReset:M})}}async function ke(t,n,r,a,l){let i=await Promise.all([...r.map((e=>fe("loader",l,e,n,d,o,y,g.v7_relativeSplatPath))),...a.map((t=>t.matches&&t.match&&t.controller?fe("loader",de(e.history,t.path,t.controller.signal),t.match,t.matches,d,o,y,g.v7_relativeSplatPath):{type:p.error,error:be(404,{pathname:t.path})}))]),u=i.slice(0,r.length),s=i.slice(r.length);return await Promise.all([Ce(t,r,u,u.map((()=>l.signal)),!1,D.loaderData),Ce(t,a.map((e=>e.match)),s,a.map((e=>e.controller?e.controller.signal:null)),!0)]),{results:i,loaderResults:u,fetcherResults:s}}function Le(){A=!0,j.push(...Ve()),q.forEach(((e,t)=>{B.has(t)&&($.push(t),Ue(t))}))}function Me(e,t,n){void 0===n&&(n={}),D.fetchers.set(e,t),se({fetchers:new Map(D.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Oe(e,t,n,r){void 0===r&&(r={});let a=ye(D.matches,t);Ie(e),se({errors:{[a.route.id]:n},fetchers:new Map(D.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Fe(e){return g.v7_fetcherPersist&&(K.set(e,(K.get(e)||0)+1),Y.has(e)&&Y.delete(e)),D.fetchers.get(e)||Z}function Ie(e){let t=D.fetchers.get(e);!B.has(e)||t&&"loading"===t.state&&V.has(e)||Ue(e),q.delete(e),V.delete(e),Q.delete(e),Y.delete(e),D.fetchers.delete(e)}function Ue(e){let t=B.get(e);i(t,"Expected fetch controller: "+e),t.abort(),B.delete(e)}function Ae(e){for(let t of e){let e=Re(Fe(t).data);D.fetchers.set(t,e)}}function je(){let e=[],t=!1;for(let n of Q){let r=D.fetchers.get(n);i(r,"Expected fetcher: "+n),"loading"===r.state&&(Q.delete(n),e.push(n),t=!0)}return Ae(e),t}function $e(e){let t=[];for(let[n,r]of V)if(r0}function Be(e){D.blockers.delete(e),ae.delete(e)}function He(e,t){let n=D.blockers.get(e)||ee;i("unblocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"blocked"===t.state||"blocked"===n.state&&"proceeding"===t.state||"blocked"===n.state&&"unblocked"===t.state||"proceeding"===n.state&&"unblocked"===t.state,"Invalid blocker state transition: "+n.state+" -> "+t.state);let r=new Map(D.blockers);r.set(e,t),se({blockers:r})}function We(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(0===ae.size)return;ae.size>1&&u(!1,"A router only supports one blocker at a time");let a=Array.from(ae.entries()),[l,o]=a[a.length-1],i=D.blockers.get(l);return i&&"proceeding"===i.state?void 0:o({currentLocation:t,nextLocation:n,historyAction:r})?l:void 0}function Ve(e){let t=[];return X.forEach(((n,r)=>{e&&!e(r)||(n.cancel(),t.push(r),X.delete(r))})),t}function Qe(e,t){return S&&S(e,t.map((e=>function(e,t){let{route:n,pathname:r,params:a}=e;return{id:n.id,pathname:r,params:a,data:t[n.id],handle:n.handle}}(e,D.loaderData))))||e.key}function qe(e,t){if(k){let n=Qe(e,t),r=k[n];if("number"==typeof r)return r}return null}return P={get basename(){return y},get future(){return g},get state(){return D},get routes(){return h},get window(){return t},initialize:function(){if(b=e.history.listen((t=>{let{action:n,location:r,delta:a}=t;if(ue)return void(ue=!1);u(0===ae.size||null!=a,"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 l=We({currentLocation:D.location,nextLocation:r,historyAction:n});return l&&null!=a?(ue=!0,e.history.go(-1*a),void He(l,{state:"blocked",location:r,proceed(){He(l,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),e.history.go(a)},reset(){let e=new Map(D.blockers);e.set(l,ee),se({blockers:e})}})):pe(n,r)})),n){!function(e,t){try{let n=e.sessionStorage.getItem(re);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(e){}}(t,F);let e=()=>function(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(re,JSON.stringify(n))}catch(e){u(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,F);t.addEventListener("pagehide",e),I=()=>t.removeEventListener("pagehide",e)}return D.initialized||pe(a.Pop,D.location,{initialHydration:!0}),P},subscribe:function(e){return w.add(e),()=>w.delete(e)},enableScrollRestoration:function(e,t,n){if(k=e,E=t,S=n||null,!x&&D.navigation===J){x=!0;let e=qe(D.location,D.matches);null!=e&&se({restoreScrollPosition:e})}return()=>{k=null,E=null,S=null}},navigate:async function t(n,l){if("number"==typeof n)return void e.history.go(n);let o=le(D.location,D.matches,y,g.v7_prependBasename,n,g.v7_relativeSplatPath,null==l?void 0:l.fromRouteId,null==l?void 0:l.relative),{path:i,submission:u,error:s}=oe(g.v7_normalizeFormMethod,!1,o,l),f=D.location,d=c(D.location,i,l&&l.state);d=r({},d,e.history.encodeLocation(d));let p=l&&null!=l.replace?l.replace:void 0,h=a.Push;!0===p?h=a.Replace:!1===p||null!=u&&_e(u.formMethod)&&u.formAction===D.location.pathname+D.location.search&&(h=a.Replace);let m=l&&"preventScrollReset"in l?!0===l.preventScrollReset:void 0,v=!0===(l&&l.unstable_flushSync),b=We({currentLocation:f,nextLocation:d,historyAction:h});if(!b)return await pe(h,d,{submission:u,pendingError:s,preventScrollReset:m,replace:l&&l.replace,enableViewTransition:l&&l.unstable_viewTransition,flushSync:v});He(b,{state:"blocked",location:d,proceed(){He(b,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),t(n,l)},reset(){let e=new Map(D.blockers);e.set(b,ee),se({blockers:e})}})},fetch:function(t,n,r,a){if(l)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");B.has(t)&&Ue(t);let u=!0===(a&&a.unstable_flushSync),c=s||h,f=le(D.location,D.matches,y,g.v7_prependBasename,r,g.v7_relativeSplatPath,n,null==a?void 0:a.relative),p=v(c,f,y);if(!p)return void Oe(t,n,be(404,{pathname:f}),{flushSync:u});let{path:m,submission:b,error:w}=oe(g.v7_normalizeFormMethod,!0,f,a);if(w)return void Oe(t,n,w,{flushSync:u});let k=ze(p,m);M=!0===(a&&a.preventScrollReset),b&&_e(b.formMethod)?async function(t,n,r,a,l,u,c){if(Le(),q.delete(t),!a.route.action&&!a.route.lazy){let e=be(405,{method:c.formMethod,pathname:r,routeId:n});return void Oe(t,n,e,{flushSync:u})}let f=D.fetchers.get(t);Me(t,function(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}}(c,f),{flushSync:u});let p=new AbortController,m=de(e.history,r,p.signal,c);B.set(t,p);let b=H,w=await fe("action",m,a,l,d,o,y,g.v7_relativeSplatPath);if(m.signal.aborted)return void(B.get(t)===p&&B.delete(t));if(g.v7_fetcherPersist&&Y.has(t)){if(xe(w)||Ee(w))return void Me(t,Re(void 0))}else{if(xe(w))return B.delete(t),W>b?void Me(t,Re(void 0)):(Q.add(t),Me(t,De(c)),he(D,w,{fetcherSubmission:c}));if(Ee(w))return void Oe(t,n,w.error)}if(Se(w))throw be(400,{type:"defer-action"});let k=D.navigation.location||D.location,S=de(e.history,k,p.signal),E=s||h,x="idle"!==D.navigation.state?v(E,D.navigation.location,y):D.matches;i(x,"Didn't find any matches after fetcher action");let _=++H;V.set(t,_);let C=De(c,w.data);D.fetchers.set(t,C);let[P,L]=ie(e.history,D,x,c,k,!1,A,j,$,Y,q,Q,E,y,{[a.route.id]:w.data},void 0);L.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,n=D.fetchers.get(t),r=De(void 0,n?n.data:void 0);D.fetchers.set(t,r),B.has(t)&&Ue(t),e.controller&&B.set(t,e.controller)})),se({fetchers:new Map(D.fetchers)});let z=()=>L.forEach((e=>Ue(e.key)));p.signal.addEventListener("abort",z);let{results:N,loaderResults:M,fetcherResults:O}=await ke(D.matches,x,P,L,S);if(p.signal.aborted)return;p.signal.removeEventListener("abort",z),V.delete(t),B.delete(t),L.forEach((e=>B.delete(e.key)));let F=we(N);if(F){if(F.idx>=P.length){let e=L[F.idx-P.length].key;Q.add(e)}return he(D,F.result)}let{loaderData:I,errors:U}=me(D,D.matches,P,M,void 0,L,O,X);if(D.fetchers.has(t)){let e=Re(w.data);D.fetchers.set(t,e)}$e(_),"loading"===D.navigation.state&&_>W?(i(R,"Expected pending action"),T&&T.abort(),ce(D.navigation.location,{matches:x,loaderData:I,errors:U,fetchers:new Map(D.fetchers)})):(se({errors:U,loaderData:ve(D.loaderData,I,x,U),fetchers:new Map(D.fetchers)}),A=!1)}(t,n,m,k,p,u,b):(q.set(t,{routeId:n,path:m}),async function(t,n,r,a,l,u,s){let c=D.fetchers.get(t);Me(t,De(s,c?c.data:void 0),{flushSync:u});let f=new AbortController,p=de(e.history,r,f.signal);B.set(t,f);let h=H,m=await fe("loader",p,a,l,d,o,y,g.v7_relativeSplatPath);if(Se(m)&&(m=await Pe(m,p.signal,!0)||m),B.get(t)===f&&B.delete(t),!p.signal.aborted){if(!Y.has(t))return xe(m)?W>h?void Me(t,Re(void 0)):(Q.add(t),void await he(D,m)):void(Ee(m)?Oe(t,n,m.error):(i(!Se(m),"Unhandled fetcher deferred data"),Me(t,Re(m.data))));Me(t,Re(void 0))}}(t,n,m,k,p,u,b))},revalidate:function(){Le(),se({revalidation:"loading"}),"submitting"!==D.navigation.state&&("idle"!==D.navigation.state?pe(R||D.historyAction,D.navigation.location,{overrideNavigation:D.navigation}):pe(D.historyAction,D.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Fe,deleteFetcher:function(e){if(g.v7_fetcherPersist){let t=(K.get(e)||0)-1;t<=0?(K.delete(e),Y.add(e)):K.set(e,t)}else Ie(e);se({fetchers:new Map(D.fetchers)})},dispose:function(){b&&b(),I&&I(),w.clear(),T&&T.abort(),D.fetchers.forEach(((e,t)=>Ie(t))),D.blockers.forEach(((e,t)=>Be(t)))},getBlocker:function(e,t){let n=D.blockers.get(e)||ee;return ae.get(e)!==t&&ae.set(e,t),n},deleteBlocker:Be,_internalFetchControllers:B,_internalActiveDeferreds:X,_internalSetRoutes:function(e){d={},s=m(e,o,void 0,d)}},P}function le(e,t,n,r,a,l,o,i){let u,s;if(o){u=[];for(let e of t)if(u.push(e),e.route.id===o){s=e;break}}else u=t,s=t[t.length-1];let c=O(a||".",M(u,l),N(e.pathname,n)||e.pathname,"path"===i);return null==a&&(c.search=e.search,c.hash=e.hash),null!=a&&""!==a&&"."!==a||!s||!s.route.index||Le(c.search)||(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&"/"!==n&&(c.pathname="/"===c.pathname?n:F([n,c.pathname])),f(c)}function oe(e,t,n,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:n};if(r.formMethod&&(a=r.formMethod,!Y.has(a.toLowerCase())))return{path:n,error:be(405,{method:r.formMethod})};var a;let l,o,u=()=>({path:n,error:be(400,{type:"invalid-body"})}),s=r.formMethod||"get",c=e?s.toUpperCase():s.toLowerCase(),p=ke(n);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!_e(c))return u();let e="string"==typeof r.body?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+"\n"}),""):String(r.body);return{path:n,submission:{formMethod:c,formAction:p,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!_e(c))return u();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:c,formAction:p,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return u()}}}if(i("function"==typeof FormData,"FormData is not available in this environment"),r.formData)l=pe(r.formData),o=r.formData;else if(r.body instanceof FormData)l=pe(r.body),o=r.body;else if(r.body instanceof URLSearchParams)l=r.body,o=he(l);else if(null==r.body)l=new URLSearchParams,o=new FormData;else try{l=new URLSearchParams(r.body),o=he(l)}catch(e){return u()}let h={formMethod:c,formAction:p,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(_e(h.formMethod))return{path:n,submission:h};let m=d(n);return t&&m.search&&Le(m.search)&&l.append("index",""),m.search="?"+l,{path:f(m),submission:h}}function ie(e,t,n,a,l,o,i,u,s,c,f,d,p,h,m,y){let g=y?Object.values(y)[0]:m?Object.values(m)[0]:void 0,b=e.createURL(t.location),w=e.createURL(l),k=y?Object.keys(y)[0]:void 0,S=function(e,t){let n=e;if(t){let r=e.findIndex((e=>e.route.id===t));r>=0&&(n=e.slice(0,r))}return n}(n,k).filter(((e,n)=>{let{route:l}=e;if(l.lazy)return!0;if(null==l.loader)return!1;if(o)return!!l.loader.hydrate||void 0===t.loaderData[l.id]&&(!t.errors||void 0===t.errors[l.id]);if(function(e,t,n){let r=!t||n.route.id!==t.route.id,a=void 0===e[n.route.id];return r||a}(t.loaderData,t.matches[n],e)||u.some((t=>t===e.route.id)))return!0;let s=t.matches[n],c=e;return se(e,r({currentUrl:b,currentParams:s.params,nextUrl:w,nextParams:c.params},a,{actionResult:g,defaultShouldRevalidate:i||b.pathname+b.search===w.pathname+w.search||b.search!==w.search||ue(s,c)}))})),E=[];return f.forEach(((e,l)=>{if(o||!n.some((t=>t.route.id===e.routeId))||c.has(l))return;let u=v(p,e.path,h);if(!u)return void E.push({key:l,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let f=t.fetchers.get(l),m=ze(u,e.path),y=!1;y=!d.has(l)&&(!!s.includes(l)||(f&&"idle"!==f.state&&void 0===f.data?i:se(m,r({currentUrl:b,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:n[n.length-1].params},a,{actionResult:g,defaultShouldRevalidate:i})))),y&&E.push({key:l,routeId:e.routeId,path:e.path,matches:u,match:m,controller:new AbortController})})),[S,E]}function ue(e,t){let n=e.route.path;return e.pathname!==t.pathname||null!=n&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function se(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if("boolean"==typeof n)return n}return t.defaultShouldRevalidate}async function ce(e,t,n){if(!e.lazy)return;let a=await e.lazy();if(!e.lazy)return;let l=n[e.id];i(l,"No route found in manifest");let o={};for(let e in a){let t=void 0!==l[e]&&"hasErrorBoundary"!==e;u(!t,'Route "'+l.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||h.has(e)||(o[e]=a[e])}Object.assign(l,o),Object.assign(l,r({},t(l),{lazy:void 0}))}async function fe(e,t,n,r,a,l,o,u,s){let c,f,d;void 0===s&&(s={});let h=e=>{let r,a=new Promise(((e,t)=>r=t));return d=()=>r(),t.signal.addEventListener("abort",d),Promise.race([e({request:t,params:n.params,context:s.requestContext}),a])};try{let r=n.route[e];if(n.route.lazy)if(r){let e,t=await Promise.all([h(r).catch((t=>{e=t})),ce(n.route,l,a)]);if(e)throw e;f=t[0]}else{if(await ce(n.route,l,a),r=n.route[e],!r){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw be(405,{method:t.method,pathname:r,routeId:n.route.id})}return{type:p.data,data:void 0}}f=await h(r)}else{if(!r){let e=new URL(t.url);throw be(404,{pathname:e.pathname+e.search})}f=await h(r)}i(void 0!==f,"You defined "+("action"===e?"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){c=p.error,f=e}finally{d&&t.signal.removeEventListener("abort",d)}if(null!=(m=f)&&"number"==typeof m.status&&"string"==typeof m.statusText&&"object"==typeof m.headers&&void 0!==m.body){let e,a=f.status;if(X.has(a)){let e=f.headers.get("Location");if(i(e,"Redirects returned/thrown from loaders/actions must have a Location header"),te.test(e)){if(!s.isStaticRequest){let n=new URL(t.url),r=e.startsWith("//")?new URL(n.protocol+e):new URL(e),a=null!=N(r.pathname,o);r.origin===n.origin&&a&&(e=r.pathname+r.search+r.hash)}}else e=le(new URL(t.url),r.slice(0,r.indexOf(n)+1),o,!0,e,u);if(s.isStaticRequest)throw f.headers.set("Location",e),f;return{type:p.redirect,status:a,location:e,revalidate:null!==f.headers.get("X-Remix-Revalidate"),reloadDocument:null!==f.headers.get("X-Remix-Reload-Document")}}if(s.isRouteRequest)throw{type:c===p.error?p.error:p.data,response:f};try{let t=f.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==f.body?null:await f.json():await f.text()}catch(e){return{type:p.error,error:e}}return c===p.error?{type:c,error:new W(a,f.statusText,e),headers:f.headers}:{type:p.data,data:e,statusCode:f.status,headers:f.headers}}var m,v,y;return c===p.error?{type:c,error:f}:function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(f)?{type:p.deferred,deferredData:f,statusCode:null==(v=f.init)?void 0:v.status,headers:(null==(y=f.init)?void 0:y.headers)&&new Headers(f.init.headers)}:{type:p.data,data:f}}function de(e,t,n,r){let a=e.createURL(ke(t)).toString(),l={signal:n};if(r&&_e(r.formMethod)){let{formMethod:e,formEncType:t}=r;l.method=e.toUpperCase(),"application/json"===t?(l.headers=new Headers({"Content-Type":t}),l.body=JSON.stringify(r.json)):"text/plain"===t?l.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?l.body=pe(r.formData):l.body=r.formData}return new Request(a,l)}function pe(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,"string"==typeof r?r:r.name);return t}function he(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function me(e,t,n,a,l,o,u,s){let{loaderData:c,errors:f}=function(e,t,n,r,a){let l,o={},u=null,s=!1,c={};return n.forEach(((n,f)=>{let d=t[f].route.id;if(i(!xe(n),"Cannot handle redirect results in processLoaderData"),Ee(n)){let t=ye(e,d),a=n.error;r&&(a=Object.values(r)[0],r=void 0),u=u||{},null==u[t.route.id]&&(u[t.route.id]=a),o[d]=void 0,s||(s=!0,l=V(n.error)?n.error.status:500),n.headers&&(c[d]=n.headers)}else Se(n)?(a.set(d,n.deferredData),o[d]=n.deferredData.data):o[d]=n.data,null==n.statusCode||200===n.statusCode||s||(l=n.statusCode),n.headers&&(c[d]=n.headers)})),r&&(u=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:u,statusCode:l||200,loaderHeaders:c}}(t,n,a,l,s);for(let t=0;te.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function ge(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 be(e,t){let{pathname:n,routeId:r,method:a,type:l}=void 0===t?{}:t,o="Unknown Server Error",i="Unknown @remix-run/router error";return 400===e?(o="Bad Request",a&&n&&r?i="You made a "+a+' request to "'+n+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===l?i="defer() is not supported in actions":"invalid-body"===l&&(i="Unable to encode submission body")):403===e?(o="Forbidden",i='Route "'+r+'" does not match URL "'+n+'"'):404===e?(o="Not Found",i='No route matches URL "'+n+'"'):405===e&&(o="Method Not Allowed",a&&n&&r?i="You made a "+a.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':a&&(i='Invalid request method "'+a.toUpperCase()+'"')),new W(e||500,o,new Error(i),!0)}function we(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(xe(n))return{result:n,idx:t}}}function ke(e){return f(r({},"string"==typeof e?d(e):e,{hash:""}))}function Se(e){return e.type===p.deferred}function Ee(e){return e.type===p.error}function xe(e){return(e&&e.type)===p.redirect}function _e(e){return q.has(e.toLowerCase())}async function Ce(e,t,n,r,a,l){for(let o=0;oe.route.id===s.route.id)),f=null!=c&&!ue(c,s)&&void 0!==(l&&l[s.route.id]);if(Se(u)&&(a||f)){let e=r[o];i(e,"Expected an AbortSignal for revalidating fetcher deferred result"),await Pe(u,e,a).then((e=>{e&&(n[o]=e||n[o])}))}}}async function Pe(e,t,n){if(void 0===n&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:p.data,data:e.deferredData.unwrappedData}}catch(e){return{type:p.error,error:e}}return{type:p.data,data:e.deferredData.data}}}function Le(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function ze(e,t){let n="string"==typeof t?d(t).search:t.search;if(e[e.length-1].route.index&&Le(n||""))return e[e.length-1];let r=R(e);return r[r.length-1]}function Te(e){let{formMethod:t,formAction:n,formEncType:r,text:a,formData:l,json:o}=e;if(t&&n&&r)return null!=a?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:a}:null!=l?{formMethod:t,formAction:n,formEncType:r,formData:l,json:void 0,text:void 0}:void 0!==o?{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}:void 0}function Ne(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 De(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 Re(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")},60278:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,a,l){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(r)for(var i=0;i0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=l),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),a&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=a):c[4]="".concat(a)),t.push(c))}},t}},8645:e=>{e.exports=function(e){return e[1]}},76067:(e,t,n)=>{var r=n(63696),a=n(91434);function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n