@midscene/web 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/index.js +5 -4
- package/dist/es/playwright-report.js +3 -22
- package/dist/lib/index.js +5 -4
- package/dist/lib/playwright-report.js +3 -22
- package/dist/visualizer-report/index.html +1 -0
- package/dist/visualizer-report/modern.config.json +196 -0
- package/dist/visualizer-report/route.json +36 -0
- package/dist/visualizer-report/static/css/index.c7751597.css +1 -0
- package/dist/visualizer-report/static/css/index.c7751597.css.map +1 -0
- package/dist/visualizer-report/static/js/915.d3f73af1.js +6 -0
- package/dist/visualizer-report/static/js/915.d3f73af1.js.LICENSE.txt +105 -0
- package/dist/visualizer-report/static/js/915.d3f73af1.js.map +1 -0
- package/dist/visualizer-report/static/js/async/16.8b96d0ce.js +151 -0
- package/dist/visualizer-report/static/js/async/16.8b96d0ce.js.map +1 -0
- package/dist/visualizer-report/static/js/async/212.b25a2c30.js +157 -0
- package/dist/visualizer-report/static/js/async/212.b25a2c30.js.map +1 -0
- package/dist/visualizer-report/static/js/async/353.78fcb703.js +147 -0
- package/dist/visualizer-report/static/js/async/353.78fcb703.js.map +1 -0
- package/dist/visualizer-report/static/js/async/399.84fa60a7.js +248 -0
- package/dist/visualizer-report/static/js/async/399.84fa60a7.js.map +1 -0
- package/dist/visualizer-report/static/js/async/453.782b249a.js +41 -0
- package/dist/visualizer-report/static/js/async/453.782b249a.js.map +1 -0
- package/dist/visualizer-report/static/js/async/544.ee973964.js +1 -0
- package/dist/visualizer-report/static/js/async/544.ee973964.js.map +1 -0
- package/dist/visualizer-report/static/js/async/983.ef821e39.js +1 -0
- package/dist/visualizer-report/static/js/index.ae9a86c5.js +1 -0
- package/dist/visualizer-report/static/js/index.ae9a86c5.js.map +1 -0
- package/dist/visualizer-report/static/js/lib-antd.55d65804.js +189 -0
- package/dist/visualizer-report/static/js/lib-antd.55d65804.js.map +1 -0
- package/dist/visualizer-report/static/js/lib-polyfill.3da3e38e.js +1 -0
- package/dist/visualizer-report/static/js/lib-polyfill.3da3e38e.js.map +1 -0
- package/dist/visualizer-report/static/js/lib-react.c011fc71.js +2 -0
- package/dist/visualizer-report/static/js/lib-react.c011fc71.js.LICENSE.txt +39 -0
- package/dist/visualizer-report/static/js/lib-react.c011fc71.js.map +1 -0
- package/dist/visualizer-report/static/js/lib-router.226970ff.js +2 -0
- package/dist/visualizer-report/static/js/lib-router.226970ff.js.LICENSE.txt +32 -0
- package/dist/visualizer-report/static/js/lib-router.226970ff.js.map +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see lib-router.226970ff.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_midscene_visualizer_report=self.webpackChunk_midscene_visualizer_report||[]).push([["118"],{29412:function(e,t,r){r.d(t,{J0:function(){return h},OF:function(){return A},RQ:function(){return L},WK:function(){return O},WS:function(){return S},X3:function(){return j},Zn:function(){return D},aU:function(){return o},cP:function(){return y},cm:function(){return _},fp:function(){return E},lX:function(){return c},p7:function(){return Y},pC:function(){return k},q_:function(){return d}});var n,a,o,i,s=r(22237);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}(n=o||(o={})).Pop="POP",n.Push="PUSH",n.Replace="REPLACE";var u="popstate";function c(e){return void 0===e&&(e={}),g(function(e,t){var{pathname:r,search:n,hash:a}=e.location;return p("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:m(t)},null,e)}function d(e){return void 0===e&&(e={}),g(function(e,t){var{pathname:r="/",search:n="",hash:a=""}=y(e.location.hash.substr(1));return!r.startsWith("/")&&!r.startsWith(".")&&(r="/"+r),p("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){var r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){var a=e.location.href,o=a.indexOf("#");n=-1===o?a:a.slice(0,o)}return n+"#"+("string"==typeof t?t:m(t))},function(e,t){f("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function h(e,t){if(!1===e||null==e)throw Error(t)}function f(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function v(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,r,n){return void 0===r&&(r=null),l({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?y(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function m(e){var{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function y(e){var t={};if(e){var r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function g(e,t,r,n){void 0===n&&(n={});var{window:a=document.defaultView,v5Compat:i=!1}=n,s=a.history,c=o.Pop,d=null,f=y();function y(){return(s.state||{idx:null}).idx}function g(){c=o.Pop;var e=y(),t=null==e?null:e-f;f=e,d&&d({action:c,location:w.location,delta:t})}null==f&&(f=0,s.replaceState(l({},s.state,{idx:f}),""));function b(e){var t="null"!==a.location.origin?a.location.origin:a.location.href,r="string"==typeof e?e:m(e);return h(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}var w={get action(){return c},get location(){return e(a,s)},listen(e){if(d)throw Error("A history only accepts one active listener");return a.addEventListener(u,g),d=e,()=>{a.removeEventListener(u,g),d=null}},createHref:e=>t(a,e),createURL:b,encodeLocation(e){var t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c=o.Push;var n=p(w.location,e,t);r&&r(n,e);var l=v(n,f=y()+1),u=w.createHref(n);try{s.pushState(l,"",u)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(u)}i&&d&&d({action:c,location:w.location,delta:1})},replace:function(e,t){c=o.Replace;var n=p(w.location,e,t);r&&r(n,e);var a=v(n,f=y()),l=w.createHref(n);s.replaceState(a,"",l),i&&d&&d({action:c,location:w.location,delta:0})},go:e=>s.go(e)};return w}(a=i||(i={})).data="data",a.deferred="deferred",a.redirect="redirect",a.error="error";var b=new Set(["lazy","caseSensitive","path","id","index","children"]);function w(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{var o=[...r,a],i="string"==typeof e.id?e.id:o.join("-");if(h(!0!==e.index||!e.children,"Cannot specify children on an index route"),h(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){var s=l({},e,t(e),{id:i});return n[i]=s,s}var u=l({},e,t(e),{id:i,children:void 0});return n[i]=u,e.children&&(u.children=w(e.children,t,o,n)),u})}function E(e,t,r){void 0===r&&(r="/");var n=D(("string"==typeof t?y(t):t).pathname||"/",r);if(null==n)return null;var a=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");var o=(t,o,i)=>{var s={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};s.relativePath.startsWith("/")&&(h(s.relativePath.startsWith(a),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+a)+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(a.length));var l=L([a,s.relativePath]),u=n.concat(s);if(t.children&&t.children.length>0&&(h(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),e(t.children,r,u,l)),null!=t.path||!!t.index)r.push({path:l,score:function(e,t){var r=e.split("/"),n=r.length;return r.some(R)&&(n+=-2),t&&(n+=2),r.filter(e=>!R(e)).reduce((e,t)=>e+(x.test(t)?3:""===t?1:10),n)}(l,t.index),routesMeta:u})};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(var n of function e(t){var r=t.split("/");if(0===r.length)return[];var[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];var s=e(a.join("/")),l=[];return l.push(...s.map(e=>""===e?i:[i,e].join("/"))),o&&l.push(...s),l.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,n);else o(e,t)}),r}(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,r)=>e===t[r])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))})(a);for(var o=null,i=0;null==o&&i<a.length;++i)o=function(e,t){for(var{routesMeta:r}=e,n={},a="/",o=[],i=0;i<r.length;++i){var s=r[i],l=i===r.length-1,u="/"===a?t:t.slice(a.length)||"/",c=function(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});var[r,n]=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),f("*"===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(/\*$/,"/*"))+'".');var n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;var o=a[0],i=o.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:n.reduce((e,t,r)=>{var{paramName:n,isOptional:a}=t;if("*"===n){var l=s[r]||"";i=o.slice(0,o.length-l.length).replace(/(.)\/+$/,"$1")}var u=s[r];return a&&!u?e[n]=void 0:e[n]=function(e,t){try{return decodeURIComponent(e)}catch(r){return f(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e)+'" is a malformed URL segment. This is probably'+(" due to a bad percent encoding ("+r)+")."),e}}(u||"",n),e},{}),pathname:o,pathnameBase:i,pattern:e}}({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u);if(!c)return null;Object.assign(n,c.params);var d=s.route;o.push({params:n,pathname:L([a,c.pathname]),pathnameBase:M(L([a,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(a=L([a,c.pathnameBase]))}return o}(a[i],function(e){try{return decodeURI(e)}catch(t){return f(!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));return o}function S(e,t){var{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}var x=/^:[\w-]+$/,R=e=>"*"===e;function D(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function P(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n))+"]. Please separate it out to the "+("`to."+r)+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function C(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function _(e,t){var r=C(e);return t?r.map((t,r)=>r===e.length-1?t.pathname:t.pathnameBase):r.map(e=>e.pathnameBase)}function k(e,t,r,n){void 0===n&&(n=!1),"string"==typeof e?a=y(e):(h(!(a=l({},e)).pathname||!a.pathname.includes("?"),P("?","pathname","search",a)),h(!a.pathname||!a.pathname.includes("#"),P("#","pathname","hash",a)),h(!a.search||!a.search.includes("#"),P("#","search","hash",a)));var a,o,i=""===e||""===a.pathname,s=i?"/":a.pathname;if(null==s)o=r;else{var u=t.length-1;if(!n&&s.startsWith("..")){for(var c=s.split("/");".."===c[0];)c.shift(),u-=1;a.pathname=c.join("/")}o=u>=0?t[u]:"/"}var d=function(e,t){void 0===t&&(t="/");var{pathname:r,search:n="",hash:a=""}="string"==typeof e?y(e):e;return{pathname:r?r.startsWith("/")?r:function(e,t){var r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}(r,t):t,search:T(n),hash:U(a)}}(a,o),f=s&&"/"!==s&&s.endsWith("/"),v=(i||"."===s)&&r.endsWith("/");return!d.pathname.endsWith("/")&&(f||v)&&(d.pathname+="/"),d}var L=e=>e.join("/").replace(/\/\/+/g,"/"),M=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),T=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",U=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class j extends Error{}class A{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function O(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var F=["post","put","patch","delete"],B=new Set(F),z=new Set(["get",...F]),N=new Set([301,302,303,307,308]),I=new Set([307,308]),H={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},J={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},W={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,q=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),V="remix-router-transitions";function Y(e){var t,r,n,a,u,c=e.window?e.window:"undefined"!=typeof window?window:void 0,d=void 0!==c&&void 0!==c.document&&void 0!==c.document.createElement,v=!d;if(h(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){var m=e.detectErrorBoundary;t=e=>({hasErrorBoundary:m(e)})}else t=q;var y={},g=w(e.routes,t,void 0,y),b=e.basename||"/",x=l({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),R=null,P=new Set,C=null,_=null,k=null,L=null!=e.hydrationData,M=E(g,e.history.location,b),T=null;if(null==M){var U=ed(404,{pathname:e.history.location.pathname}),{matches:j,route:A}=ec(g);M=j,T={[A.id]:U}}var O=M.some(e=>e.route.lazy),F=M.some(e=>e.route.loader);if(O)n=!1;else if(F){if(x.v7_partialHydration){var B=e.hydrationData?e.hydrationData.loaderData:null,z=e.hydrationData?e.hydrationData.errors:null;n=M.every(e=>e.route.loader&&!0!==e.route.loader.hydrate&&(B&&void 0!==B[e.route.id]||z&&void 0!==z[e.route.id]))}else n=null!=e.hydrationData}else n=!0;var N={historyAction:e.history.action,location:e.history.location,matches:M,initialized:n,navigation:H,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||T,fetchers:new Map,blockers:new Map},Y=o.Pop,Z=!1,G=!1,ee=new Map,et=null,en=!1,eo=!1,ei=[],ef=[],eb=new Map,eE=0,eS=-1,e_=new Map,ek=new Set,eL=new Map,eM=new Map,eT=new Set,eU=new Map,ej=new Map,eA=!1;function eO(e,t){void 0===t&&(t={}),N=l({},N,e);var r=[],n=[];x.v7_fetcherPersist&&N.fetchers.forEach((e,t)=>{"idle"===e.state&&(eT.has(t)?n.push(t):r.push(t))}),[...P].forEach(e=>e(N,{deletedFetchers:n,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync})),x.v7_fetcherPersist&&(r.forEach(e=>N.fetchers.delete(e)),n.forEach(e=>e0(e)))}function eF(t,n,a){var i,s,u,c,{flushSync:d}=void 0===a?{}:a,h=null!=N.actionData&&null!=N.navigation.formMethod&&ey(N.navigation.formMethod)&&"loading"===N.navigation.state&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;u=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:h?N.actionData:null;var f=n.loaderData?el(N.loaderData,n.loaderData,n.matches||[],n.errors):N.loaderData,v=N.blockers;v.size>0&&(v=new Map(v)).forEach((e,t)=>v.set(t,W));var p=!0===Z||null!=N.navigation.formMethod&&ey(N.navigation.formMethod)&&(null==(s=t.state)?void 0:s._isRedirect)!==!0;if(r&&(g=r,r=void 0),en||Y===o.Pop||(Y===o.Push?e.history.push(t,t.state):Y===o.Replace&&e.history.replace(t,t.state)),Y===o.Pop){var m=ee.get(N.location.pathname);m&&m.has(t.pathname)?c={currentLocation:N.location,nextLocation:t}:ee.has(t.pathname)&&(c={currentLocation:t,nextLocation:N.location})}else if(G){var y=ee.get(N.location.pathname);y?y.add(t.pathname):(y=new Set([t.pathname]),ee.set(N.location.pathname,y)),c={currentLocation:N.location,nextLocation:t}}eO(l({},n,{actionData:u,loaderData:f,historyAction:Y,location:t,initialized:!0,navigation:H,revalidation:"idle",restoreScrollPosition:te(t,n.matches||N.matches),preventScrollReset:p,blockers:v}),{viewTransitionOpts:c,flushSync:!0===d}),Y=o.Pop,Z=!1,G=!1,en=!1,eo=!1,ei=[],ef=[]}function eB(e,t){return ez.apply(this,arguments)}function ez(){return(ez=(0,s._)(function*(t,r){if("number"==typeof t){e.history.go(t);return}var n=Q(N.location,N.matches,b,x.v7_prependBasename,t,x.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:a,submission:i,error:s}=X(x.v7_normalizeFormMethod,!1,n,r),u=N.location,c=p(N.location,a,r&&r.state);c=l({},c,e.history.encodeLocation(c));var d=r&&null!=r.replace?r.replace:void 0,h=o.Push;!0===d?h=o.Replace:!1===d||null!=i&&ey(i.formMethod)&&i.formAction===N.location.pathname+N.location.search&&(h=o.Replace);var f=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,v=!0===(r&&r.unstable_flushSync),m=e9({currentLocation:u,nextLocation:c,historyAction:h});if(m){e5(m,{state:"blocked",location:c,proceed(){e5(m,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),eB(t,r)},reset(){var e=new Map(N.blockers);e.set(m,W),eO({blockers:e})}});return}return yield eN(h,c,{submission:i,pendingError:s,preventScrollReset:f,replace:r&&r.replace,enableViewTransition:r&&r.unstable_viewTransition,flushSync:v})})).apply(this,arguments)}function eN(e,t,r){return eI.apply(this,arguments)}function eI(){return(eI=(0,s._)(function*(t,n,a){u&&u.abort(),u=null,Y=t,en=!0===(a&&a.startUninterruptedRevalidation),function(e,t){C&&k&&(C[e6(e,t)]=k())}(N.location,N.matches),Z=!0===(a&&a.preventScrollReset),G=!0===(a&&a.enableViewTransition);var o,i,s=r||g,c=a&&a.overrideNavigation,d=E(s,n,b),h=!0===(a&&a.flushSync);if(!d){var f=ed(404,{pathname:n.pathname}),{matches:v,route:p}=ec(s);e8(),eF(n,{matches:v,loaderData:{},errors:{[p.id]:f}},{flushSync:h});return}if(N.initialized&&!eo&&function(e,t){if(e.pathname!==t.pathname||e.search!==t.search)return!1;if(""===e.hash)return""!==t.hash;if(e.hash===t.hash)return!0;if(""!==t.hash)return!0;return!1}(N.location,n)&&!(a&&a.submission&&ey(a.submission.formMethod))){eF(n,{matches:d},{flushSync:h});return}u=new AbortController;var m=ea(e.history,n,u.signal,a&&a.submission);if(a&&a.pendingError)i={[eu(d).route.id]:a.pendingError};else if(a&&a.submission&&ey(a.submission.formMethod)){var y=yield function(e,t,r,n,a){return eH.apply(this,arguments)}(m,n,a.submission,d,{replace:a.replace,flushSync:h});if(y.shortCircuited)return;o=y.pendingActionData,i=y.pendingActionError,c=eD(n,a.submission),h=!1,m=new Request(m.url,{signal:m.signal})}var{shortCircuited:w,loaderData:S,errors:x}=yield function(e,t,r,n,a,o,i,s,l,u,c){return eJ.apply(this,arguments)}(m,n,d,c,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,h,o,i);if(!w)u=null,eF(n,l({matches:d},o?{actionData:o}:{},{loaderData:S,errors:x}))})).apply(this,arguments)}function eH(){return(eH=(0,s._)(function*(e,r,n,a,s){void 0===s&&(s={}),eX(),eO({navigation: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}}(r,n)},{flushSync:!0===s.flushSync});var l,u,c=ex(a,r);if(c.route.action||c.route.lazy){if(l=yield er("action",e,c,a,y,t,b,x.v7_relativeSplatPath),e.signal.aborted)return{shortCircuited:!0}}else l={type:i.error,error:ed(405,{method:e.method,pathname:r.pathname,routeId:c.route.id})};if(em(l))return u=s&&null!=s.replace?s.replace:l.location===N.location.pathname+N.location.search,yield eq(N,l,{submission:n,replace:u}),{shortCircuited:!0};if(ep(l)){var d=eu(a,c.route.id);return!0!==(s&&s.replace)&&(Y=o.Push),{pendingActionData:{},pendingActionError:{[d.route.id]:l.error}}}if(ev(l))throw ed(400,{type:"defer-action"});return{pendingActionData:{[c.route.id]:l.data}}})).apply(this,arguments)}function eJ(){return(eJ=(0,s._)(function*(t,n,a,o,i,s,c,d,h,f,v){var p=o||eD(n,i),m=i||s||eR(p),y=r||g,[w,E]=K(e.history,N,a,m,n,x.v7_partialHydration&&!0===d,eo,ei,ef,eT,eL,ek,y,b,f,v);if(e8(e=>!(a&&a.some(t=>t.route.id===e))||w&&w.some(t=>t.route.id===e)),eS=++eE,0===w.length&&0===E.length){var S=e2();return eF(n,l({matches:a,loaderData:{},errors:v||null},f?{actionData:f}:{},S?{fetchers:new Map(N.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(!en&&(!x.v7_partialHydration||!d)){E.forEach(e=>{var t=N.fetchers.get(e.key),r=eP(void 0,t?t.data:void 0);N.fetchers.set(e.key,r)});var R=f||N.actionData;eO(l({navigation:p},R?0===Object.keys(R).length?{actionData:null}:{actionData:R}:{},E.length>0?{fetchers:new Map(N.fetchers)}:{}),{flushSync:h})}E.forEach(e=>{eb.has(e.key)&&e1(e.key),e.controller&&eb.set(e.key,e.controller)});var D=()=>E.forEach(e=>e1(e.key));u&&u.signal.addEventListener("abort",D);var{results:P,loaderResults:C,fetcherResults:_}=yield eY(N.matches,a,w,E,t);if(t.signal.aborted)return{shortCircuited:!0};u&&u.signal.removeEventListener("abort",D),E.forEach(e=>eb.delete(e.key));var k=eh(P);if(k){if(k.idx>=w.length){var L=E[k.idx-w.length].key;ek.add(L)}return yield eq(N,k.result,{replace:c}),{shortCircuited:!0}}var{loaderData:M,errors:T}=es(N,a,w,C,v,E,_,eU);eU.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&eU.delete(t)})});var U=e2(),j=e4(eS),A=U||j||E.length>0;return l({loaderData:M,errors:T},A?{fetchers:new Map(N.fetchers)}:{})})).apply(this,arguments)}function eW(){return(eW=(0,s._)(function*(n,a,o,i,s,l,c){if(eX(),eL.delete(n),!i.route.action&&!i.route.lazy){var d=ed(405,{method:c.formMethod,pathname:o,routeId:a});eZ(n,a,d,{flushSync:l});return}var f=N.fetchers.get(n);eK(n,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:l});var v=new AbortController,p=ea(e.history,o,v.signal,c);eb.set(n,v);var m=eE,w=yield er("action",p,i,s,y,t,b,x.v7_relativeSplatPath);if(p.signal.aborted){eb.get(n)===v&&eb.delete(n);return}if(x.v7_fetcherPersist&&eT.has(n)){if(em(w)||ep(w)){eK(n,eC(void 0));return}}else{if(em(w)){if(eb.delete(n),!(eS>m))return ek.add(n),eK(n,eP(c)),eq(N,w,{fetcherSubmission:c});eK(n,eC(void 0));return}if(ep(w)){eZ(n,a,w.error);return}}if(ev(w))throw ed(400,{type:"defer-action"});var S=N.navigation.location||N.location,R=ea(e.history,S,v.signal),D=r||g,P="idle"!==N.navigation.state?E(D,N.navigation.location,b):N.matches;h(P,"Didn't find any matches after fetcher action");var C=++eE;e_.set(n,C);var _=eP(c,w.data);N.fetchers.set(n,_);var[k,L]=K(e.history,N,P,c,S,!1,eo,ei,ef,eT,eL,ek,D,b,{[i.route.id]:w.data},void 0);L.filter(e=>e.key!==n).forEach(e=>{var t=e.key,r=N.fetchers.get(t),n=eP(void 0,r?r.data:void 0);N.fetchers.set(t,n),eb.has(t)&&e1(t),e.controller&&eb.set(t,e.controller)}),eO({fetchers:new Map(N.fetchers)});var M=()=>L.forEach(e=>e1(e.key));v.signal.addEventListener("abort",M);var{results:T,loaderResults:U,fetcherResults:j}=yield eY(N.matches,P,k,L,R);if(!v.signal.aborted){v.signal.removeEventListener("abort",M),e_.delete(n),eb.delete(n),L.forEach(e=>eb.delete(e.key));var A=eh(T);if(A){if(A.idx>=k.length){var O=L[A.idx-k.length].key;ek.add(O)}return eq(N,A.result)}var{loaderData:F,errors:B}=es(N,N.matches,k,U,void 0,L,j,eU);if(N.fetchers.has(n)){var z=eC(w.data);N.fetchers.set(n,z)}e4(C),"loading"===N.navigation.state&&C>eS?(h(Y,"Expected pending action"),u&&u.abort(),eF(N.navigation.location,{matches:P,loaderData:F,errors:B,fetchers:new Map(N.fetchers)})):(eO({errors:B,loaderData:el(N.loaderData,F,P,B),fetchers:new Map(N.fetchers)}),eo=!1)}})).apply(this,arguments)}function e$(){return(e$=(0,s._)(function*(r,n,a,o,i,s,l){var u=N.fetchers.get(r);eK(r,eP(l,u?u.data:void 0),{flushSync:s});var c=new AbortController,d=ea(e.history,a,c.signal);eb.set(r,c);var f=eE,v=yield er("loader",d,o,i,y,t,b,x.v7_relativeSplatPath);if(ev(v)&&(v=(yield ew(v,d.signal,!0))||v),eb.get(r)===c&&eb.delete(r),!d.signal.aborted){if(eT.has(r)){eK(r,eC(void 0));return}if(em(v)){if(eS>f){eK(r,eC(void 0));return}ek.add(r),yield eq(N,v);return}if(ep(v)){eZ(r,n,v.error);return}h(!ev(v),"Unhandled fetcher deferred data"),eK(r,eC(v.data))}})).apply(this,arguments)}function eq(e,t,r){return eV.apply(this,arguments)}function eV(){return(eV=(0,s._)(function*(t,r,n){var{submission:a,fetcherSubmission:i,replace:s}=void 0===n?{}:n;r.revalidate&&(eo=!0);var f=p(t.location,r.location,{_isRedirect:!0});if(h(f,"Expected a location on the redirect navigation"),d){var v=!1;if(r.reloadDocument)v=!0;else if($.test(r.location)){var m=e.history.createURL(r.location);v=m.origin!==c.location.origin||null==D(m.pathname,b)}if(v){s?c.location.replace(r.location):c.location.assign(r.location);return}}u=null;var y=!0===s?o.Replace:o.Push,{formMethod:g,formAction:w,formEncType:E}=t.navigation;!a&&!i&&g&&w&&E&&(a=eR(t.navigation));var S=a||i;if(I.has(r.status)&&S&&ey(S.formMethod))yield eN(y,f,{submission:l({},S,{formAction:r.location}),preventScrollReset:Z});else{var x=eD(f,a);yield eN(y,f,{overrideNavigation:x,fetcherSubmission:i,preventScrollReset:Z})}})).apply(this,arguments)}function eY(e,t,r,n,a){return eQ.apply(this,arguments)}function eQ(){return(eQ=(0,s._)(function*(r,n,a,o,s){var l=yield Promise.all([...a.map(e=>er("loader",s,e,n,y,t,b,x.v7_relativeSplatPath)),...o.map(r=>r.matches&&r.match&&r.controller?er("loader",ea(e.history,r.path,r.controller.signal),r.match,r.matches,y,t,b,x.v7_relativeSplatPath):{type:i.error,error:ed(404,{pathname:r.path})})]),u=l.slice(0,a.length),c=l.slice(a.length);return yield Promise.all([eg(r,a,u,u.map(()=>s.signal),!1,N.loaderData),eg(r,o.map(e=>e.match),c,o.map(e=>e.controller?e.controller.signal:null),!0)]),{results:l,loaderResults:u,fetcherResults:c}})).apply(this,arguments)}function eX(){eo=!0,ei.push(...e8()),eL.forEach((e,t)=>{eb.has(t)&&(ef.push(t),e1(t))})}function eK(e,t,r){void 0===r&&(r={}),N.fetchers.set(e,t),eO({fetchers:new Map(N.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function eZ(e,t,r,n){void 0===n&&(n={});var a=eu(N.matches,t);e0(e),eO({errors:{[a.route.id]:r},fetchers:new Map(N.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function eG(e){return x.v7_fetcherPersist&&(eM.set(e,(eM.get(e)||0)+1),eT.has(e)&&eT.delete(e)),N.fetchers.get(e)||J}function e0(e){var t=N.fetchers.get(e);eb.has(e)&&!(t&&"loading"===t.state&&e_.has(e))&&e1(e),eL.delete(e),e_.delete(e),ek.delete(e),eT.delete(e),N.fetchers.delete(e)}function e1(e){var t=eb.get(e);h(t,"Expected fetch controller: "+e),t.abort(),eb.delete(e)}function e7(e){for(var t of e){var r=eC(eG(t).data);N.fetchers.set(t,r)}}function e2(){var e=[],t=!1;for(var r of ek){var n=N.fetchers.get(r);h(n,"Expected fetcher: "+r),"loading"===n.state&&(ek.delete(r),e.push(r),t=!0)}return e7(e),t}function e4(e){var t=[];for(var[r,n]of e_)if(n<e){var a=N.fetchers.get(r);h(a,"Expected fetcher: "+r),"loading"===a.state&&(e1(r),e_.delete(r),t.push(r))}return e7(t),t.length>0}function e3(e){N.blockers.delete(e),ej.delete(e)}function e5(e,t){var r=N.blockers.get(e)||W;h("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);var n=new Map(N.blockers);n.set(e,t),eO({blockers:n})}function e9(e){var{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===ej.size)return;ej.size>1&&f(!1,"A router only supports one blocker at a time");var a=Array.from(ej.entries()),[o,i]=a[a.length-1],s=N.blockers.get(o);if(!s||"proceeding"!==s.state){if(i({currentLocation:t,nextLocation:r,historyAction:n}))return o}}function e8(e){var t=[];return eU.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),eU.delete(n))}),t}function e6(e,t){return _&&_(e,t.map(e=>S(e,N.loaderData)))||e.key}function te(e,t){if(C){var r=C[e6(e,t)];if("number"==typeof r)return r}return null}return a={get basename(){return b},get future(){return x},get state(){return N},get routes(){return g},get window(){return c},initialize:function(){if(R=e.history.listen(t=>{var{action:r,location:n,delta:a}=t;if(eA){eA=!1;return}f(0===ej.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.");var o=e9({currentLocation:N.location,nextLocation:n,historyAction:r});if(o&&null!=a){eA=!0,e.history.go(-1*a),e5(o,{state:"blocked",location:n,proceed(){e5(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),e.history.go(a)},reset(){var e=new Map(N.blockers);e.set(o,W),eO({blockers:e})}});return}return eN(r,n)}),d){(function(e,t){try{var r=e.sessionStorage.getItem(V);if(r){var n=JSON.parse(r);for(var[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch(e){}})(c,ee);var t=()=>(function(e,t){if(t.size>0){var r={};for(var[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(V,JSON.stringify(r))}catch(e){f(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(c,ee);c.addEventListener("pagehide",t),et=()=>c.removeEventListener("pagehide",t)}return!N.initialized&&eN(o.Pop,N.location,{initialHydration:!0}),a},subscribe:function(e){return P.add(e),()=>P.delete(e)},enableScrollRestoration:function(e,t,r){if(C=e,k=t,_=r||null,!L&&N.navigation===H){L=!0;var n=te(N.location,N.matches);null!=n&&eO({restoreScrollPosition:n})}return()=>{C=null,k=null,_=null}},navigate:eB,fetch:function(e,t,n,a){if(v)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.");eb.has(e)&&e1(e);var o=!0===(a&&a.unstable_flushSync),i=r||g,s=Q(N.location,N.matches,b,x.v7_prependBasename,n,x.v7_relativeSplatPath,t,null==a?void 0:a.relative),l=E(i,s,b);if(!l){eZ(e,t,ed(404,{pathname:s}),{flushSync:o});return}var{path:u,submission:c,error:d}=X(x.v7_normalizeFormMethod,!0,s,a);if(d){eZ(e,t,d,{flushSync:o});return}var h=ex(l,u);if(Z=!0===(a&&a.preventScrollReset),c&&ey(c.formMethod)){(function(e,t,r,n,a,o,i){eW.apply(this,arguments)})(e,t,u,h,l,o,c);return}eL.set(e,{routeId:t,path:u}),function(e,t,r,n,a,o,i){e$.apply(this,arguments)}(e,t,u,h,l,o,c)},revalidate:function(){if(eX(),eO({revalidation:"loading"}),"submitting"!==N.navigation.state){if("idle"===N.navigation.state){eN(N.historyAction,N.location,{startUninterruptedRevalidation:!0});return}eN(Y||N.historyAction,N.navigation.location,{overrideNavigation:N.navigation})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:eG,deleteFetcher:function(e){if(x.v7_fetcherPersist){var t=(eM.get(e)||0)-1;t<=0?(eM.delete(e),eT.add(e)):eM.set(e,t)}else e0(e);eO({fetchers:new Map(N.fetchers)})},dispose:function(){R&&R(),et&&et(),P.clear(),u&&u.abort(),N.fetchers.forEach((e,t)=>e0(t)),N.blockers.forEach((e,t)=>e3(t))},getBlocker:function(e,t){var r=N.blockers.get(e)||W;return ej.get(e)!==t&&ej.set(e,t),r},deleteBlocker:e3,_internalFetchControllers:eb,_internalActiveDeferreds:eU,_internalSetRoutes:function(e){r=w(e,t,void 0,y={})}}}Symbol("deferred");function Q(e,t,r,n,a,o,i,s){if(i){for(var l of(u=[],t))if(u.push(l),l.route.id===i){c=l;break}}else u=t,c=t[t.length-1];var u,c,d=k(a||".",_(u,o),D(e.pathname,r)||e.pathname,"path"===s);return null==a&&(d.search=e.search,d.hash=e.hash),(null==a||""===a||"."===a)&&c&&c.route.index&&!eS(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),n&&"/"!==r&&(d.pathname="/"===d.pathname?r:L([r,d.pathname])),m(d)}function X(e,t,r,n){if(!n||!(null!=(a=n)&&("formData"in a&&null!=a.formData||"body"in a&&void 0!==a.body)))return{path:r};if(n.formMethod&&!function(e){return z.has(e.toLowerCase())}(n.formMethod))return{path:r,error:ed(405,{method:n.formMethod})};var a,o,i,s=()=>({path:r,error:ed(400,{type:"invalid-body"})}),l=n.formMethod||"get",u=e?l.toUpperCase():l.toLowerCase(),c=ef(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!ey(u))return s();var d="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{var[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:d}}}if("application/json"===n.formEncType){if(!ey(u))return s();try{var f="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:f,text:void 0}}}catch(e){return s()}}}if(h("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=eo(n.formData),i=n.formData;else if(n.body instanceof FormData)o=eo(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=ei(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=ei(o)}catch(e){return s()}var v={formMethod:u,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(ey(v.formMethod))return{path:r,submission:v};var p=y(r);return t&&p.search&&eS(p.search)&&o.append("index",""),p.search="?"+o,{path:m(p),submission:v}}function K(e,t,r,n,a,o,i,s,u,c,d,h,f,v,p,m){var y=m?Object.values(m)[0]:p?Object.values(p)[0]:void 0,g=e.createURL(t.location),b=e.createURL(a),w=(function(e,t){var r=e;if(t){var n=e.findIndex(e=>e.route.id===t);n>=0&&(r=e.slice(0,n))}return r})(r,m?Object.keys(m)[0]:void 0).filter((e,r)=>{var{route:a}=e;if(a.lazy)return!0;if(null==a.loader)return!1;if(o)return!!a.loader.hydrate||void 0===t.loaderData[a.id]&&(!t.errors||void 0===t.errors[a.id]);if(function(e,t,r){var n=!t||r.route.id!==t.route.id,a=void 0===e[r.route.id];return n||a}(t.loaderData,t.matches[r],e)||s.some(t=>t===e.route.id))return!0;var u=t.matches[r];return G(e,l({currentUrl:g,currentParams:u.params,nextUrl:b,nextParams:e.params},n,{actionResult:y,defaultShouldRevalidate:i||g.pathname+g.search===b.pathname+b.search||g.search!==b.search||Z(u,e)}))}),S=[];return d.forEach((e,a)=>{if(!(o||!r.some(t=>t.route.id===e.routeId)||c.has(a))){var s=E(f,e.path,v);if(!s){S.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});return}var d=t.fetchers.get(a),p=ex(s,e.path),m=!1;(m=!h.has(a)&&(!!u.includes(a)||(d&&"idle"!==d.state&&void 0===d.data?i:G(p,l({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:y,defaultShouldRevalidate:i})))))&&S.push({key:a,routeId:e.routeId,path:e.path,matches:s,match:p,controller:new AbortController})}}),[w,S]}function Z(e,t){var r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function G(e,t){if(e.route.shouldRevalidate){var r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function ee(e,t,r){return et.apply(this,arguments)}function et(){return(et=(0,s._)(function*(e,t,r){if(!e.lazy)return;var n=yield e.lazy();if(!!e.lazy){var a=r[e.id];h(a,"No route found in manifest");var o={};for(var i in n){var s=void 0!==a[i]&&"hasErrorBoundary"!==i;f(!s,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i)+'" will be ignored.'),!s&&!b.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,l({},t(a),{lazy:void 0}))}})).apply(this,arguments)}function er(e,t,r,n,a,o,i,s,l){return en.apply(this,arguments)}function en(){return(en=(0,s._)(function*(e,t,r,n,a,o,s,l,u){void 0===u&&(u={});var c,d,f=e=>{var n,a=new Promise((e,t)=>n=t);return y=()=>n(),t.signal.addEventListener("abort",y),Promise.race([e({request:t,params:r.params,context:u.requestContext}),a])};try{var v=r.route[e];if(r.route.lazy){if(v){var p,m,y,g,b=yield Promise.all([f(v).catch(e=>{g=e}),ee(r.route,o,a)]);if(g)throw g;m=b[0]}else if(yield ee(r.route,o,a),v=r.route[e])m=yield f(v);else{if("action"!==e)return{type:i.data,data:void 0};var w=new URL(t.url),E=w.pathname+w.search;throw ed(405,{method:t.method,pathname:E,routeId:r.route.id})}}else if(v)m=yield f(v);else{var S=new URL(t.url),x=S.pathname+S.search;throw ed(404,{pathname:x})}h(void 0!==m,"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){p=i.error,m=e}finally{y&&t.signal.removeEventListener("abort",y)}if(function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}(m)){var R,P=m.status;if(N.has(P)){var C=m.headers.get("Location");if(h(C,"Redirects returned/thrown from loaders/actions must have a Location header"),$.test(C)){if(!u.isStaticRequest){var _=new URL(t.url),k=new URL(C.startsWith("//")?_.protocol+C:C),L=null!=D(k.pathname,s);k.origin===_.origin&&L&&(C=k.pathname+k.search+k.hash)}}else C=Q(new URL(t.url),n.slice(0,n.indexOf(r)+1),s,!0,C,l);if(u.isStaticRequest)throw m.headers.set("Location",C),m;return{type:i.redirect,status:P,location:C,revalidate:null!==m.headers.get("X-Remix-Revalidate"),reloadDocument:null!==m.headers.get("X-Remix-Reload-Document")}}if(u.isRouteRequest)throw{type:p===i.error?i.error:i.data,response:m};try{var M=m.headers.get("Content-Type");R=M&&/\bapplication\/json\b/.test(M)?null==m.body?null:yield m.json():yield m.text()}catch(e){return{type:i.error,error:e}}return p===i.error?{type:p,error:new A(P,m.statusText,R),headers:m.headers}:{type:i.data,data:R,statusCode:m.status,headers:m.headers}}return p===i.error?{type:p,error:m}:function(e){return e&&"object"==typeof e&&"object"==typeof e.data&&"function"==typeof e.subscribe&&"function"==typeof e.cancel&&"function"==typeof e.resolveData}(m)?{type:i.deferred,deferredData:m,statusCode:null==(c=m.init)?void 0:c.status,headers:(null==(d=m.init)?void 0:d.headers)&&new Headers(m.init.headers)}:{type:i.data,data:m}})).apply(this,arguments)}function ea(e,t,r,n){var a=e.createURL(ef(t)).toString(),o={signal:r};if(n&&ey(n.formMethod)){var{formMethod:i,formEncType:s}=n;o.method=i.toUpperCase(),"application/json"===s?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):"text/plain"===s?o.body=n.text:"application/x-www-form-urlencoded"===s&&n.formData?o.body=eo(n.formData):o.body=n.formData}return new Request(a,o)}function eo(e){var t=new URLSearchParams;for(var[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function ei(e){var t=new FormData;for(var[r,n]of e.entries())t.append(r,n);return t}function es(e,t,r,n,a,o,i,s){for(var u,c,d,f,v,p,m,y,g,b,{loaderData:w,errors:E}=(u=t,c=r,d=n,f=a,v=s,m={},y=null,g=!1,b={},d.forEach((e,t)=>{var r=c[t].route.id;if(h(!em(e),"Cannot handle redirect results in processLoaderData"),ep(e)){var n=eu(u,r),a=e.error;f&&(a=Object.values(f)[0],f=void 0),null==(y=y||{})[n.route.id]&&(y[n.route.id]=a),m[r]=void 0,!g&&(g=!0,p=O(e.error)?e.error.status:500),e.headers&&(b[r]=e.headers)}else ev(e)?(v.set(r,e.deferredData),m[r]=e.deferredData.data):m[r]=e.data,null!=e.statusCode&&200!==e.statusCode&&!g&&(p=e.statusCode),e.headers&&(b[r]=e.headers)}),f&&(y=f,m[Object.keys(f)[0]]=void 0),{loaderData:m,errors:y,statusCode:p||200,loaderHeaders:b}),S=0;S<o.length;S++){var{key:x,match:R,controller:D}=o[S];h(void 0!==i&&void 0!==i[S],"Did not find corresponding fetcher result");var P=i[S];if(!D||!D.signal.aborted)if(ep(P)){var C=eu(e.matches,null==R?void 0:R.route.id);!(E&&E[C.route.id])&&(E=l({},E,{[C.route.id]:P.error})),e.fetchers.delete(x)}else if(em(P))h(!1,"Unhandled fetcher revalidation redirect");else if(ev(P))h(!1,"Unhandled fetcher deferred data");else{var _=eC(P.data);e.fetchers.set(x,_)}}return{loaderData:w,errors:E}}function el(e,t,r,n){var a=l({},t);for(var o of r){var i=o.route.id;if(t.hasOwnProperty(i)?void 0!==t[i]&&(a[i]=t[i]):void 0!==e[i]&&o.route.loader&&(a[i]=e[i]),n&&n.hasOwnProperty(i))break}return a}function eu(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 ec(e){var 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 ed(e,t){var{pathname:r,routeId:n,method:a,type:o}=void 0===t?{}:t,i="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(i="Bad Request",a&&r&&n?s="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n)+'", so there is no way to handle the request.':"defer-action"===o?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(i="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(i="Not Found",s='No route matches URL "'+r+'"'):405===e&&(i="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n)+'", so there is no way to handle the request.':a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new A(e||500,i,Error(s),!0)}function eh(e){for(var t=e.length-1;t>=0;t--){var r=e[t];if(em(r))return{result:r,idx:t}}}function ef(e){var t="string"==typeof e?y(e):e;return m(l({},t,{hash:""}))}function ev(e){return e.type===i.deferred}function ep(e){return e.type===i.error}function em(e){return(e&&e.type)===i.redirect}function ey(e){return B.has(e.toLowerCase())}function eg(e,t,r,n,a,o){return eb.apply(this,arguments)}function eb(){return(eb=(0,s._)(function*(e,t,r,n,a,o){for(var i=function*(i){var s=r[i],l=t[i];if(!l)return"continue";var u=e.find(e=>e.route.id===l.route.id),c=null!=u&&!Z(u,l)&&(o&&o[l.route.id])!==void 0;if(ev(s)&&(a||c)){var d=n[i];h(d,"Expected an AbortSignal for revalidating fetcher deferred result"),yield ew(s,d,a).then(e=>{e&&(r[i]=e||r[i])})}},s=0;s<r.length;s++)yield*i(s)})).apply(this,arguments)}function ew(e,t,r){return eE.apply(this,arguments)}function eE(){return(eE=(0,s._)(function*(e,t,r){if(void 0===r&&(r=!1),!(yield e.deferredData.resolveData(t))){if(r)try{return{type:i.data,data:e.deferredData.unwrappedData}}catch(e){return{type:i.error,error:e}}return{type:i.data,data:e.deferredData.data}}})).apply(this,arguments)}function eS(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function ex(e,t){var r="string"==typeof t?y(t).search:t.search;if(e[e.length-1].route.index&&eS(r||""))return e[e.length-1];var n=C(e);return n[n.length-1]}function eR(e){var{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!!t&&!!r&&!!n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function eD(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 eP(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}}},42940:function(e,t,r){r.d(t,{VK:function(){return M},aj:function(){return w},cP:function(){return E},pG:function(){return k}});var n,a,o,i,s,l,u=r(22237),c=r(52983),d=r(63730),h=r(75026),f=r(29412);function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var p="application/x-www-form-urlencoded";function m(e){return null!=e&&"string"==typeof e.tagName}var y=null,g=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function b(e){return null==e||g.has(e)?e:null}try{window.__reactRouterVersion="6"}catch(e){}function w(e,t){return(0,f.p7)({basename:null==t?void 0:t.basename,future:v({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,f.lX)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||S(),routes:e,mapRouteProperties:h.us,window:null==t?void 0:t.window}).initialize()}function E(e,t){return(0,f.p7)({basename:null==t?void 0:t.basename,future:v({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:(0,f.q_)({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||S(),routes:e,mapRouteProperties:h.us,window:null==t?void 0:t.window}).initialize()}function S(){var e,t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=v({},t,{errors:function(e){if(!e)return null;var t=Object.entries(e),r={};for(var[n,a]of t)if(a&&"RouteErrorResponse"===a.__type)r[n]=new f.OF(a.status,a.statusText,a.data,!0===a.internal);else if(a&&"Error"===a.__type){if(a.__subType){var o=window[a.__subType];if("function"==typeof o)try{var i=new o(a.message);i.stack="",r[n]=i}catch(e){}}if(null==r[n]){var s=Error(a.message);s.stack="",r[n]=s}}else r[n]=a;return r}(t.errors)})),t}var x=c.createContext({isTransitioning:!1}),R=c.createContext(new Map),D=(o||(o=r.t(c,2))).startTransition,P=(i||(i=r.t(d,2))).flushSync;(o||(o=r.t(c,2))).useId;function C(e){P?P(e):e()}class _{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function k(e){var{fallbackElement:t,router:r,future:n}=e,[a,o]=c.useState(r.state),[i,s]=c.useState(),[l,d]=c.useState({isTransitioning:!1}),[f,v]=c.useState(),[p,m]=c.useState(),[y,g]=c.useState(),b=c.useRef(new Map),{v7_startTransition:w}=n||{},E=c.useCallback(e=>{if(w){var t;t=e,D?D(t):t()}else e()},[w]),S=c.useCallback((e,t)=>{var{deletedFetchers:n,unstable_flushSync:a,unstable_viewTransitionOpts:i}=t;n.forEach(e=>b.current.delete(e)),e.fetchers.forEach((e,t)=>{void 0!==e.data&&b.current.set(t,e.data)});var l=null==r.window||"function"!=typeof r.window.document.startViewTransition;if(!i||l){a?C(()=>o(e)):E(()=>o(e));return}if(a){C(()=>{p&&(f&&f.resolve(),p.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});var u=r.window.document.startViewTransition(()=>{C(()=>o(e))});u.finished.finally(()=>{C(()=>{v(void 0),m(void 0),s(void 0),d({isTransitioning:!1})})}),C(()=>m(u));return}p?(f&&f.resolve(),p.skipTransition(),g({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(s(e),d({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,p,f,b,E]);c.useLayoutEffect(()=>r.subscribe(S),[r,S]),c.useEffect(()=>{l.isTransitioning&&!l.flushSync&&v(new _)},[l]),c.useEffect(()=>{if(f&&i&&r.window){var e=f.promise,t=r.window.document.startViewTransition((0,u._)(function*(){E(()=>o(i)),yield e}));t.finished.finally(()=>{v(void 0),m(void 0),s(void 0),d({isTransitioning:!1})}),m(t)}},[E,i,f,r.window]),c.useEffect(()=>{f&&i&&a.location.key===i.location.key&&f.resolve()},[f,p,a.location,i]),c.useEffect(()=>{!l.isTransitioning&&y&&(s(y.state),d({isTransitioning:!0,flushSync:!1,currentLocation:y.currentLocation,nextLocation:y.nextLocation}),g(void 0))},[l.isTransitioning,y]),c.useEffect(()=>{},[]);var P=c.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),k=r.basename||"/",M=c.useMemo(()=>({router:r,navigator:P,static:!1,basename:k}),[r,P,k]);return c.createElement(c.Fragment,null,c.createElement(h.w3.Provider,{value:M},c.createElement(h.FR.Provider,{value:a},c.createElement(R.Provider,{value:b.current},c.createElement(x.Provider,{value:l},c.createElement(h.F0,{basename:k,location:a.location,navigationType:a.historyAction,navigator:P,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},a.initialized||r.future.v7_partialHydration?c.createElement(L,{routes:r.routes,future:r.future,state:a}):t))))),null)}function L(e){var{routes:t,future:r,state:n}=e;return(0,h.DY)(t,void 0,n,r)}function M(e){var{basename:t,children:r,future:n,window:a}=e,o=c.useRef();null==o.current&&(o.current=(0,f.lX)({window:a,v5Compat:!0}));var i=o.current,[s,l]=c.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},d=c.useCallback(e=>{u&&D?D(()=>l(e)):l(e)},[l,u]);return c.useLayoutEffect(()=>i.listen(d),[i,d]),c.createElement(h.F0,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:i,future:n})}"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;function T(e){var t=React.useContext(UNSAFE_DataRouterContext);return t||UNSAFE_invariant(!1),t}(n=s||(s={})).UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher",n.useViewTransitionState="useViewTransitionState",(a=l||(l={})).UseFetcher="useFetcher",a.UseFetchers="useFetchers",a.UseScrollRestoration="useScrollRestoration";var U=0,j=()=>"__"+String(++U)+"__"},75026:function(e,t,r){r.d(t,{AW:function(){return U},DY:function(){return S},F0:function(){return j},FR:function(){return d},SN:function(){return L},TH:function(){return g},Z5:function(){return A},i7:function(){return F},j3:function(){return T},oQ:function(){return m},s0:function(){return w},us:function(){return B},w3:function(){return c}});var n,a,o,i,s=r(52983),l=r(29412);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var c=s.createContext(null),d=s.createContext(null),h=s.createContext(null),f=s.createContext(null),v=s.createContext({outlet:null,matches:[],isDataRoute:!1}),p=s.createContext(null);function m(e,t){var{relative:r}=void 0===t?{}:t;y()||(0,l.J0)(!1);var{basename:n,navigator:a}=s.useContext(h),{hash:o,pathname:i,search:u}=function(e,t){var{relative:r}=void 0===t?{}:t,{future:n}=s.useContext(h),{matches:a}=s.useContext(v),{pathname:o}=g(),i=JSON.stringify((0,l.cm)(a,n.v7_relativeSplatPath));return s.useMemo(()=>(0,l.pC)(e,JSON.parse(i),o,"path"===r),[e,i,o,r])}(e,{relative:r}),c=i;return"/"!==n&&(c="/"===i?n:(0,l.RQ)([n,i])),a.createHref({pathname:c,search:u,hash:o})}function y(){return null!=s.useContext(f)}function g(){return y()||(0,l.J0)(!1),s.useContext(f).location}function b(e){!s.useContext(h).static&&s.useLayoutEffect(e)}function w(){var{isDataRoute:e}=s.useContext(v);return e?function(){var e,t,{router:r}=(e=P.UseNavigateStable,(t=s.useContext(c))||(0,l.J0)(!1),t),n=k(C.UseNavigateStable),a=s.useRef(!1);return b(()=>{a.current=!0}),s.useCallback(function(e,t){void 0===t&&(t={}),a.current&&("number"==typeof e?r.navigate(e):r.navigate(e,u({fromRouteId:n},t)))},[r,n])}():function(){y()||(0,l.J0)(!1);var e=s.useContext(c),{basename:t,future:r,navigator:n}=s.useContext(h),{matches:a}=s.useContext(v),{pathname:o}=g(),i=JSON.stringify((0,l.cm)(a,r.v7_relativeSplatPath)),u=s.useRef(!1);return b(()=>{u.current=!0}),s.useCallback(function(r,a){if(void 0===a&&(a={}),u.current){if("number"==typeof r){n.go(r);return}var s=(0,l.pC)(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:(0,l.RQ)([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)}},[t,n,i,o,e])}()}var E=s.createContext(null);function S(e,t,r,n){y()||(0,l.J0)(!1);var{navigator:a}=s.useContext(h),{matches:o}=s.useContext(v),i=o[o.length-1],c=i?i.params:{};i&&i.pathname;var d=i?i.pathnameBase:"/";i&&i.route;var p=g();if(t){var m,b,w="string"==typeof t?(0,l.cP)(t):t;"/"===d||(null==(b=w.pathname)?void 0:b.startsWith(d))||(0,l.J0)(!1),m=w}else m=p;var E=m.pathname||"/",S="/"===d?E:E.slice(d.length)||"/",P=(0,l.fp)(e,{pathname:S}),C=function(e,t,r,n){if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){if(null==(o=r)||!o.errors)return null;e=r.matches}var a,o,i=e,u=null==(a=r)?void 0:a.errors;if(null!=u){var c=i.findIndex(e=>e.route.id&&(null==u?void 0:u[e.route.id]));c>=0||(0,l.J0)(!1),i=i.slice(0,Math.min(i.length,c+1))}var d=!1,h=-1;if(r&&n&&n.v7_partialHydration)for(var f=0;f<i.length;f++){var v=i[f];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(h=f),v.route.id){var{loaderData:p,errors:m}=r,y=v.route.loader&&void 0===p[v.route.id]&&(!m||void 0===m[v.route.id]);if(v.route.lazy||y){d=!0,i=h>=0?i.slice(0,h+1):[i[0]];break}}}return i.reduceRight((e,n,a)=>{var o,l=!1,c=null,f=null;r&&(o=u&&n.route.id?u[n.route.id]:void 0,c=n.route.errorElement||x,d&&(h<0&&0===a?(function(e,t,r){!t&&!M[e]&&(M[e]=!0)}("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),l=!0,f=null):h===a&&(l=!0,f=n.route.hydrateFallbackElement||null)));var v=t.concat(i.slice(0,a+1)),p=()=>{var t;return t=o?c:l?f:n.route.Component?s.createElement(n.route.Component,null):n.route.element?n.route.element:e,s.createElement(D,{match:n,routeContext:{outlet:e,matches:v,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?s.createElement(R,{location:r.location,revalidation:r.revalidation,component:c,error:o,children:p(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):p()},null)}(P&&P.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:(0,l.RQ)([d,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:(0,l.RQ)([d,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),o,r,n);return t&&C?s.createElement(f.Provider,{value:{location:u({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:l.aU.Pop}},C):C}var x=s.createElement(function(){var e=function(){var e,t=s.useContext(p),r=_(C.UseRouteError),n=k(C.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}(),t=(0,l.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return s.createElement(s.Fragment,null,s.createElement("h2",null,"Unexpected Application Error!"),s.createElement("h3",{style:{fontStyle:"italic"}},t),r?s.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class R extends s.Component{static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.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 void 0!==this.state.error?s.createElement(v.Provider,{value:this.props.routeContext},s.createElement(p.Provider,{value:this.state.error,children:this.props.component})):this.props.children}constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}}function D(e){var{routeContext:t,match:r,children:n}=e,a=s.useContext(c);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),s.createElement(v.Provider,{value:t},n)}var P=((n=P||{}).UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n);var C=((a=C||{}).UseBlocker="useBlocker",a.UseLoaderData="useLoaderData",a.UseActionData="useActionData",a.UseRouteError="useRouteError",a.UseNavigation="useNavigation",a.UseRouteLoaderData="useRouteLoaderData",a.UseMatches="useMatches",a.UseRevalidator="useRevalidator",a.UseNavigateStable="useNavigate",a.UseRouteId="useRouteId",a);function _(e){var t=s.useContext(d);return t||(0,l.J0)(!1),t}function k(e){var t,r,n=(t=0,(r=s.useContext(v))||(0,l.J0)(!1),r),a=n.matches[n.matches.length-1];return a.route.id||(0,l.J0)(!1),a.route.id}function L(){var{matches:e,loaderData:t}=_(C.UseMatches);return s.useMemo(()=>e.map(e=>(0,l.WS)(e,t)),[e,t])}var M={};function T(e){var t,r;return t=e.context,(r=s.useContext(v).outlet)?s.createElement(E.Provider,{value:t},r):r}function U(e){(0,l.J0)(!1)}function j(e){var{basename:t="/",children:r=null,location:n,navigationType:a=l.aU.Pop,navigator:o,static:i=!1,future:c}=e;y()&&(0,l.J0)(!1);var d=t.replace(/^\/*/,"/"),v=s.useMemo(()=>({basename:d,navigator:o,static:i,future:u({v7_relativeSplatPath:!1},c)}),[d,c,o,i]);"string"==typeof n&&(n=(0,l.cP)(n));var{pathname:p="/",search:m="",hash:g="",state:b=null,key:w="default"}=n,E=s.useMemo(()=>{var e=(0,l.Zn)(p,d);return null==e?null:{location:{pathname:e,search:m,hash:g,state:b,key:w},navigationType:a}},[d,p,m,g,b,w,a]);return null==E?null:s.createElement(h.Provider,{value:v},s.createElement(f.Provider,{children:r,value:E}))}function A(e){var t,{children:r,location:n}=e;return t=F(r),S(t,n)}(i||(i=r.t(s,2))).startTransition;var O=((o=O||{})[o.pending=0]="pending",o[o.success=1]="success",o[o.error=2]="error",o);function F(e,t){void 0===t&&(t=[]);var r=[];return s.Children.forEach(e,(e,n)=>{if(!!s.isValidElement(e)){var a=[...t,n];if(e.type===s.Fragment){r.push.apply(r,F(e.props.children,a));return}e.type!==U&&(0,l.J0)(!1),!e.props.index||!e.props.children||(0,l.J0)(!1);var o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=F(e.props.children,a)),r.push(o)}}),r}function B(e){var t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:s.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:s.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:s.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}new Promise(()=>{})}}]);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @remix-run/router v1.15.0
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Remix Software Inc.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* React Router DOM v6.22.0
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) Remix Software Inc.
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the MIT license found in the
|
|
18
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
19
|
+
*
|
|
20
|
+
* @license MIT
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* React Router v6.22.0
|
|
25
|
+
*
|
|
26
|
+
* Copyright (c) Remix Software Inc.
|
|
27
|
+
*
|
|
28
|
+
* This source code is licensed under the MIT license found in the
|
|
29
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
30
|
+
*
|
|
31
|
+
* @license MIT
|
|
32
|
+
*/
|