Files
pgsql-jellyfin/wwwroot/node_modules.@remix-run.router.bundle.js
T
2026-07-08 12:44:58 -04:00

2 lines
65 KiB
JavaScript

/*! For license information please see node_modules.@remix-run.router.bundle.js.LICENSE.txt */
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[80183],{87383:function(e,t,r){var n;function a(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(l(e)+" is not iterable")}function o(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function u(r,n,a,o){var u=n&&n.prototype instanceof s?n:s,l=Object.create(u.prototype);return i(l,"_invoke",function(r,n,a){var o,i,u,s=0,l=a||[],f=!1,d={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,r){return o=t,i=0,u=e,d.n=r,c}};function h(r,n){for(i=r,u=n,t=0;!f&&s&&!a&&t<l.length;t++){var a,o=l[t],h=d.p,p=o[2];r>3?(a=p===n)&&(u=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=e):o[0]<=h&&((a=r<2&&h<o[1])?(i=0,d.v=n,d.n=o[1]):h<p&&(a=r<3||o[0]>n||n>p)&&(o[4]=r,o[5]=n,d.n=p,i=0))}if(a||r>1)return c;throw f=!0,n}return function(a,l,p){if(s>1)throw TypeError("Generator is already running");for(f&&1===l&&h(l,p),i=l,u=p;(t=i<2?e:u)||!f;){o||(i?i<3?(i>1&&(d.n=-1),h(i,u)):d.n=u:d.v=u);try{if(s=2,o){if(i||(a="next"),t=o[a]){if(!(t=t.call(o,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,i<2&&(i=0)}else 1===i&&(t=o.return)&&t.call(o),i<2&&(u=TypeError("The iterator does not provide a '"+a+"' method"),i=1);o=e}else if((t=(f=d.n<0)?u:r.call(n,d))!==c)break}catch(t){o=e,i=1,u=t}finally{s=1}}return{value:t,done:f}}}(r,a,o),!0),l}var c={};function s(){}function l(){}function f(){}t=Object.getPrototypeOf;var d=[][n]?t(t([][n]())):(i(t={},n,(function(){return this})),t),h=f.prototype=s.prototype=Object.create(d);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,i(e,a,"GeneratorFunction")),e.prototype=Object.create(h),e}return l.prototype=f,i(h,"constructor",f),i(f,"constructor",l),l.displayName="GeneratorFunction",i(f,a,"GeneratorFunction"),i(h),i(h,a,"Generator"),i(h,n,(function(){return this})),i(h,"toString",(function(){return"[object Generator]"})),(o=function(){return{w:u,m:p}})()}function i(e,t,r,n){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}i=function(e,t,r,n){if(t)a?a(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r;else{var o=function(t,r){i(e,t,(function(e){return this._invoke(t,r,e)}))};o("next",0),o("throw",1),o("return",2)}},i(e,t,r,n)}function u(e,t,r,n,a,o,i){try{var u=e[o](i),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,a)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=e.apply(t,r);function i(e){u(o,n,a,i,c,"next",e)}function c(e){u(o,n,a,i,c,"throw",e)}i(void 0)}))}}function s(e,t,r){return(t=y(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function f(e){var t="function"==typeof Map?new Map:void 0;return f=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(d())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&h(a,r.prototype),a}(e,arguments,p(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,e)},f(e)}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function v(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}function m(e,t,r){return t&&v(e.prototype,t),r&&v(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function y(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){return k(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,u=[],c=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(e){s=!0,a=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw a}}return u}}(e,t)||D(e,t)||w()}function w(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(e){if(Array.isArray(e))return e}function S(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=D(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw o}}}}function E(e){return function(e){if(Array.isArray(e))return x(e)}(e)||R(e)||D(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e,t){if(e){if("string"==typeof e)return x(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(e,t):void 0}}function R(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function P(){return P=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},P.apply(this,arguments)}r.d(t,{AO:function(){return _},Gh:function(){return ae},HS:function(){return oe},Oi:function(){return L},Rr:function(){return U},TM:function(){return A},VV:function(){return le},aE:function(){return De},pX:function(){return fe},pb:function(){return ee},rc:function(){return n},tH:function(){return se},ue:function(){return F},yD:function(){return ne}}),r(29305),r(32733),r(84701),r(81678),r(2623),r(24776),r(14382),r(69703),r(68854),r(69892),r(76281),r(84734),r(44962),r(86584),r(20518),r(87324),r(89336),r(26448),r(74576),r(4754),r(10849),r(58551),r(70389),r(94),r(77575),r(36947),r(57132),r(75339),r(26437),r(83810),r(52697),r(78557),r(64628),r(90076),r(21359),r(646),r(95021),r(73687),r(92745),r(50987),r(99425),r(83994),r(53819),r(93062),r(97456),r(11810),r(64062),r(23630),r(82367),r(24362),r(76218),r(99102),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(n||(n={}));var j,M="popstate";function A(e){return void 0===e&&(e={}),function(e,t,r,a){void 0===a&&(a={});var o=a,i=o.window,u=void 0===i?document.defaultView:i,c=o.v5Compat,s=void 0!==c&&c,l=u.history,f=n.Pop,d=null,h=p();function p(){return(l.state||{idx:null}).idx}function v(){f=n.Pop;var e=p(),t=null==e?null:e-h;h=e,d&&d({action:f,location:y.location,delta:t})}function m(e){var t="null"!==u.location.origin?u.location.origin:u.location.href,r="string"==typeof e?e:_(e);return L(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==h&&(h=0,l.replaceState(P({},l.state,{idx:h}),""));var y={get action(){return f},get location(){return e(u,l)},listen:function(e){if(d)throw new Error("A history only accepts one active listener");return u.addEventListener(M,v),d=e,function(){u.removeEventListener(M,v),d=null}},createHref:function(e){return t(u,e)},createURL:m,encodeLocation:function(e){var t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){f=n.Push;var a=C(y.location,e,t);r&&r(a,e);var o=T(a,h=p()+1),i=y.createHref(a);try{l.pushState(o,"",i)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;u.location.assign(i)}s&&d&&d({action:f,location:y.location,delta:1})},replace:function(e,t){f=n.Replace;var a=C(y.location,e,t);r&&r(a,e);var o=T(a,h=p()),i=y.createHref(a);l.replaceState(o,"",i),s&&d&&d({action:f,location:y.location,delta:0})},go:function(e){return l.go(e)}};return y}((function(e,t){var r=U(e.location.hash.substr(1)),n=r.pathname,a=void 0===n?"/":n,o=r.search,i=void 0===o?"":o,u=r.hash,c=void 0===u?"":u;return a.startsWith("/")||a.startsWith(".")||(a="/"+a),C("",{pathname:a,search:i,hash:c},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:_(t))}),(function(e,t){O("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),e)}function L(e,t){if(!1===e||null==e)throw new Error(t)}function O(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function T(e,t){return{usr:e.state,key:e.key,idx:t}}function C(e,t,r,n){return void 0===r&&(r=null),P({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?U(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function _(e){var t=e.pathname,r=void 0===t?"/":t,n=e.search,a=void 0===n?"":n,o=e.hash,i=void 0===o?"":o;return a&&"?"!==a&&(r+="?"===a.charAt(0)?a:"?"+a),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r}function U(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(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(j||(j={}));var I=new Set(["lazy","caseSensitive","path","id","index","children"]);function z(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((function(e,a){var o=[].concat(E(r),[String(a)]),i="string"==typeof e.id?e.id:o.join("-");if(L(!0!==e.index||!e.children,"Cannot specify children on an index route"),L(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){var u=P({},e,t(e),{id:i});return n[i]=u,u}var c=P({},e,t(e),{id:i,children:void 0});return n[i]=c,e.children&&(c.children=z(e.children,t,o,n)),c}))}function F(e,t,r){return void 0===r&&(r="/"),B(e,t,r,!1)}function B(e,t,r,n){var a=ee(("string"==typeof t?U(t):t).pathname||"/",r);if(null==a)return null;var o=H(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var r=e.length===t.length&&e.slice(0,-1).every((function(e,r){return e===t[r]}));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(o);for(var i=null,u=0;null==i&&u<o.length;++u){var c=Z(a);i=K(o[u],c,n)}return i}function H(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");var a=function(e,a,o){var i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(L(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));var u=oe([n,i.relativePath]),c=r.concat(i);e.children&&e.children.length>0&&(L(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+u+'".'),H(e.children,t,c,u)),(null!=e.path||e.index)&&t.push({path:u,score:X(u,e.index),routesMeta:c})};return e.forEach((function(e,t){var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?")){var n,o=S(N(e.path));try{for(o.s();!(n=o.n()).done;){var i=n.value;a(e,t,i)}}catch(e){o.e(e)}finally{o.f()}}else a(e,t)})),t}function N(e){var t=e.split("/");if(0===t.length)return[];var r,n=k(r=t)||R(r)||D(r)||w(),a=n[0],o=n.slice(1),i=a.endsWith("?"),u=a.replace(/\?$/,"");if(0===o.length)return i?[u,""]:[u];var c=N(o.join("/")),s=[];return s.push.apply(s,E(c.map((function(e){return""===e?u:[u,e].join("/")})))),i&&s.push.apply(s,E(c)),s.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}var W=/^:[\w-]+$/,$=3,q=2,G=1,V=10,Y=-2,J=function(e){return"*"===e};function X(e,t){var r=e.split("/"),n=r.length;return r.some(J)&&(n+=Y),t&&(n+=q),r.filter((function(e){return!J(e)})).reduce((function(e,t){return e+(W.test(t)?$:""===t?G:V)}),n)}function K(e,t,r){void 0===r&&(r=!1);for(var n=e.routesMeta,a={},o="/",i=[],u=0;u<n.length;++u){var c=n[u],s=u===n.length-1,l="/"===o?t:t.slice(o.length)||"/",f=Q({path:c.relativePath,caseSensitive:c.caseSensitive,end:s},l),d=c.route;if(!f&&s&&r&&!n[n.length-1].route.index&&(f=Q({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},l)),!f)return null;Object.assign(a,f.params),i.push({params:a,pathname:oe([o,f.pathname]),pathnameBase:ie(oe([o,f.pathnameBase])),route:d}),"/"!==f.pathnameBase&&(o=oe([o,f.pathnameBase]))}return i}function Q(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});var r=g(function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),O("*"===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,(function(e,t,r){return 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),2),n=r[0],a=r[1],o=t.match(n);if(!o)return null;var i=o[0],u=i.replace(/(.)\/+$/,"$1"),c=o.slice(1);return{params:a.reduce((function(e,t,r){var n=t.paramName,a=t.isOptional;if("*"===n){var o=c[r]||"";u=i.slice(0,i.length-o.length).replace(/(.)\/+$/,"$1")}var s=c[r];return e[n]=a&&!s?void 0:(s||"").replace(/%2F/g,"/"),e}),{}),pathname:i,pathnameBase:u,pattern:e}}function Z(e){try{return e.split("/").map((function(e){return decodeURIComponent(e).replace(/\//g,"%2F")})).join("/")}catch(t){return O(!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 ee(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 te(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 re(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function ne(e,t){var r=re(e);return t?r.map((function(e,t){return t===r.length-1?e.pathname:e.pathnameBase})):r.map((function(e){return e.pathnameBase}))}function ae(e,t,r,n){var a;void 0===n&&(n=!1),"string"==typeof e?a=U(e):(L(!(a=P({},e)).pathname||!a.pathname.includes("?"),te("?","pathname","search",a)),L(!a.pathname||!a.pathname.includes("#"),te("#","pathname","hash",a)),L(!a.search||!a.search.includes("#"),te("#","search","hash",a)));var o,i=""===e||""===a.pathname,u=i?"/":a.pathname;if(null==u)o=r;else{var c=t.length-1;if(!n&&u.startsWith("..")){for(var s=u.split("/");".."===s[0];)s.shift(),c-=1;a.pathname=s.join("/")}o=c>=0?t[c]:"/"}var l=function(e,t){void 0===t&&(t="/");var r="string"==typeof e?U(e):e,n=r.pathname,a=r.search,o=void 0===a?"":a,i=r.hash,u=void 0===i?"":i,c=n?n.startsWith("/")?n:function(e,t){var r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(n,t):t;return{pathname:c,search:ue(o),hash:ce(u)}}(a,o),f=u&&"/"!==u&&u.endsWith("/"),d=(i||"."===u)&&r.endsWith("/");return l.pathname.endsWith("/")||!f&&!d||(l.pathname+="/"),l}var oe=function(e){return e.join("/").replace(/\/\/+/g,"/")},ie=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},ue=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},ce=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},se=function(e){function t(){return b(this,t),e=this,n=arguments,r=p(r=t),function(e,t){if(t&&("object"==l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(r,n||[],p(e).constructor):r.apply(e,n));var e,r,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),m(t)}(f(Error)),le=m((function e(t,r,n,a){b(this,e),void 0===a&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}));function fe(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var de=["post","put","patch","delete"],he=new Set(de),pe=["get"].concat(de),ve=new Set(pe),me=new Set([301,302,303,307,308]),ye=new Set([307,308]),be={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ge={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},we={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ke=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Se=function(e){return{hasErrorBoundary:Boolean(e.hasErrorBoundary)}},Ee="remix-router-transitions";function De(e){var t,r=e.window?e.window:"undefined"!=typeof window?window:void 0,i=void 0!==r&&void 0!==r.document&&void 0!==r.document.createElement,u=!i;if(L(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){var l=e.detectErrorBoundary;t=function(e){return{hasErrorBoundary:l(e)}}}else t=Se;var f,d,h,p={},v=z(e.routes,t,void 0,p),m=e.basename||"/",y=e.dataStrategy||Ue,b=e.patchRoutesOnNavigation,w=P({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),k=null,D=new Set,R=null,x=null,M=null,A=null!=e.hydrationData,T=F(v,e.history.location,m),_=!1,U=null;if(null==T&&!b){var I=et(404,{pathname:e.history.location.pathname}),H=Ze(v);T=H.matches,U=s({},H.route.id,I)}if(T&&!e.hydrationData&&Ft(T,v,e.history.location.pathname).active&&(T=null),T)if(T.some((function(e){return e.route.lazy})))d=!1;else if(T.some((function(e){return e.route.loader})))if(w.v7_partialHydration){var N=e.hydrationData?e.hydrationData.loaderData:null,W=e.hydrationData?e.hydrationData.errors:null;if(W){var $=T.findIndex((function(e){return void 0!==W[e.route.id]}));d=T.slice(0,$+1).every((function(e){return!Me(e.route,N,W)}))}else d=T.every((function(e){return!Me(e.route,N,W)}))}else d=null!=e.hydrationData;else d=!0;else if(d=!1,T=[],w.v7_partialHydration){var q=Ft(null,v,e.history.location.pathname);q.active&&q.matches&&(_=!0,T=q.matches)}var G,V={historyAction:e.history.action,location:e.history.location,matches:T,initialized:d,navigation:be,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||U,fetchers:new Map,blockers:new Map},Y=n.Pop,J=!1,X=!1,K=new Map,Q=null,Z=!1,te=!1,re=[],ne=new Set,ae=new Map,oe=0,ie=-1,ue=new Map,ce=new Set,se=new Map,le=new Map,de=new Set,he=new Map,pe=new Map,ve=void 0;function me(e,t){void 0===t&&(t={}),V=P({},V,e);var r=[],n=[];w.v7_fetcherPersist&&V.fetchers.forEach((function(e,t){"idle"===e.state&&(de.has(t)?n.push(t):r.push(t))})),de.forEach((function(e){V.fetchers.has(e)||ae.has(e)||n.push(e)})),E(D).forEach((function(e){return e(V,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})})),w.v7_fetcherPersist?(r.forEach((function(e){return V.fetchers.delete(e)})),n.forEach((function(e){return xt(e)}))):n.forEach((function(e){return de.delete(e)}))}function De(t,r,a){var o,i,u,c=(void 0===a?{}:a).flushSync,s=null!=V.actionData&&null!=V.navigation.formMethod&&st(V.navigation.formMethod)&&"loading"===V.navigation.state&&!0!==(null==(o=t.state)?void 0:o._isRedirect);u=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:s?V.actionData:null;var l=r.loaderData?Xe(V.loaderData,r.loaderData,r.matches||[],r.errors):V.loaderData,d=V.blockers;d.size>0&&(d=new Map(d)).forEach((function(e,t){return d.set(t,we)}));var h,p=!0===J||null!=V.navigation.formMethod&&st(V.navigation.formMethod)&&!0!==(null==(i=t.state)?void 0:i._isRedirect);if(f&&(v=f,f=void 0),Z||Y===n.Pop||(Y===n.Push?e.history.push(t,t.state):Y===n.Replace&&e.history.replace(t,t.state)),Y===n.Pop){var m=K.get(V.location.pathname);m&&m.has(t.pathname)?h={currentLocation:V.location,nextLocation:t}:K.has(t.pathname)&&(h={currentLocation:t,nextLocation:V.location})}else if(X){var y=K.get(V.location.pathname);y?y.add(t.pathname):(y=new Set([t.pathname]),K.set(V.location.pathname,y)),h={currentLocation:V.location,nextLocation:t}}me(P({},r,{actionData:u,loaderData:l,historyAction:Y,location:t,initialized:!0,navigation:be,revalidation:"idle",restoreScrollPosition:zt(t,r.matches||V.matches),preventScrollReset:p,blockers:d}),{viewTransitionOpts:h,flushSync:!0===c}),Y=n.Pop,J=!1,X=!1,Z=!1,te=!1,re=[]}function Pe(e,t){return Ae.apply(this,arguments)}function Ae(){return Ae=c(o().m((function t(r,a){var i,u,c,s,l,f,d,h,p,v,y,b;return o().w((function(t){for(;;)switch(t.n){case 0:if("number"!=typeof r){t.n=1;break}return e.history.go(r),t.a(2);case 1:if(i=Re(V.location,V.matches,m,w.v7_prependBasename,r,w.v7_relativeSplatPath,null==a?void 0:a.fromRouteId,null==a?void 0:a.relative),u=xe(w.v7_normalizeFormMethod,!1,i,a),c=u.path,s=u.submission,l=u.error,f=V.location,d=P({},d=C(V.location,c,a&&a.state),e.history.encodeLocation(d)),h=a&&null!=a.replace?a.replace:void 0,p=n.Push,!0===h?p=n.Replace:!1===h||null!=s&&st(s.formMethod)&&s.formAction===V.location.pathname+V.location.search&&(p=n.Replace),v=a&&"preventScrollReset"in a?!0===a.preventScrollReset:void 0,y=!0===(a&&a.flushSync),!(b=Tt({currentLocation:f,nextLocation:d,historyAction:p}))){t.n=2;break}return Ot(b,{state:"blocked",location:d,proceed:function(){Ot(b,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),Pe(r,a)},reset:function(){var e=new Map(V.blockers);e.set(b,we),me({blockers:e})}}),t.a(2);case 2:return t.n=3,Le(p,d,{submission:s,pendingError:l,preventScrollReset:v,replace:a&&a.replace,enableViewTransition:a&&a.viewTransition,flushSync:y});case 3:return t.a(2,t.v)}}),t)}))),Ae.apply(this,arguments)}function Le(e,t,r){return Te.apply(this,arguments)}function Te(){return Te=c(o().m((function t(r,n,a){var i,u,c,l,d,h,p,y,b,w,k,S,E,D,R,x,M,A,L,O;return o().w((function(t){for(;;)switch(t.n){case 0:if(G&&G.abort(),G=null,Y=r,Z=!0===(a&&a.startUninterruptedRevalidation),It(V.location,V.matches),J=!0===(a&&a.preventScrollReset),X=!0===(a&&a.enableViewTransition),i=f||v,u=a&&a.overrideNavigation,c=null!=a&&a.initialHydration&&V.matches&&V.matches.length>0&&!_?V.matches:F(i,n,m),l=!0===(a&&a.flushSync),!c||!V.initialized||te||(o=V.location,T=n,o.pathname!==T.pathname||o.search!==T.search||(""===o.hash||o.hash!==T.hash)&&""===T.hash)||a&&a.submission&&st(a.submission.formMethod)){t.n=1;break}return De(n,{matches:c},{flushSync:l}),t.a(2);case 1:if((d=Ft(c,i,n.pathname)).active&&d.matches&&(c=d.matches),c){t.n=2;break}return h=Ct(n.pathname),p=h.error,y=h.notFoundMatches,b=h.route,De(n,{matches:y,loaderData:{},errors:s({},b.id,p)},{flushSync:l}),t.a(2);case 2:if(G=new AbortController,w=Ge(e.history,n,G.signal,a&&a.submission),!a||!a.pendingError){t.n=3;break}k=[Qe(c).route.id,{type:j.error,error:a.pendingError}],t.n=7;break;case 3:if(!(a&&a.submission&&st(a.submission.formMethod))){t.n=7;break}return t.n=4,Ce(w,n,a.submission,c,d.active,{replace:a.replace,flushSync:l});case 4:if(!(S=t.v).shortCircuited){t.n=5;break}return t.a(2);case 5:if(!S.pendingActionResult){t.n=6;break}if(E=g(S.pendingActionResult,2),D=E[0],!ot(R=E[1])||!fe(R.error)||404!==R.error.status){t.n=6;break}return G=null,De(n,{matches:S.matches,loaderData:{},errors:s({},D,R.error)}),t.a(2);case 6:c=S.matches||c,k=S.pendingActionResult,u=gt(n,a.submission),l=!1,d.active=!1,w=Ge(e.history,w.url,w.signal);case 7:return t.n=8,Ie(w,n,c,d.active,u,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,l,k);case 8:if(x=t.v,M=x.shortCircuited,A=x.matches,L=x.loaderData,O=x.errors,!M){t.n=9;break}return t.a(2);case 9:G=null,De(n,P({matches:A||c},Ke(k),{loaderData:L,errors:O}));case 10:return t.a(2)}var o,T}),t)}))),Te.apply(this,arguments)}function Ce(e,t,r,n,a,o){return _e.apply(this,arguments)}function _e(){return(_e=c(o().m((function e(t,r,a,i,u,c){var s,l,f,d,h,p,v,y,b,g,w,k;return o().w((function(e){for(;;)switch(e.n){case 0:if(void 0===c&&(c={}),vt(),me({navigation:wt(r,a)},{flushSync:!0===c.flushSync}),!u){e.n=5;break}return e.n=1,Bt(i,r.pathname,t.signal);case 1:if("aborted"!==(s=e.v).type){e.n=2;break}return e.a(2,{shortCircuited:!0});case 2:if("error"!==s.type){e.n=3;break}return l=Qe(s.partialMatches).route.id,e.a(2,{matches:s.partialMatches,pendingActionResult:[l,{type:j.error,error:s.error}]});case 3:if(s.matches){e.n=4;break}return f=Ct(r.pathname),d=f.notFoundMatches,h=f.error,p=f.route,e.a(2,{matches:d,pendingActionResult:[p.id,{type:j.error,error:h}]});case 4:i=s.matches;case 5:if((y=yt(i,r)).route.action||y.route.lazy){e.n=6;break}v={type:j.error,error:et(405,{method:t.method,pathname:r.pathname,routeId:y.route.id})},e.n=8;break;case 6:return e.n=7,ut("action",V,t,[y],i,null);case 7:if(b=e.v,v=b[y.route.id],!t.signal.aborted){e.n=8;break}return e.a(2,{shortCircuited:!0});case 8:if(!it(v)){e.n=10;break}return c&&null!=c.replace?g=c.replace:(w=qe(v.response.headers.get("Location"),new URL(t.url),m),g=w===V.location.pathname+V.location.search),e.n=9,Ye(t,v,!0,{submission:a,replace:g});case 9:return e.a(2,{shortCircuited:!0});case 10:if(!at(v)){e.n=11;break}throw et(400,{type:"defer-action"});case 11:if(!ot(v)){e.n=12;break}return k=Qe(i,y.route.id),!0!==(c&&c.replace)&&(Y=n.Push),e.a(2,{matches:i,pendingActionResult:[k.route.id,v]});case 12:return e.a(2,{matches:i,pendingActionResult:[y.route.id,v]})}}),e)})))).apply(this,arguments)}function Ie(e,t,r,n,a,o,i,u,c,s,l){return Fe.apply(this,arguments)}function Fe(){return Fe=c(o().m((function t(r,n,a,i,u,c,l,d,h,p,y){var b,k,S,E,D,R,x,j,M,A,L,O,T,C,_,U,I,z,F,B,H,N,W,$,q,Y,J,X,K;return o().w((function(t){for(;;)switch(t.n){case 0:if(b=u||gt(n,c),k=c||l||bt(b),S=!(Z||w.v7_partialHydration&&h),!i){t.n=5;break}return S&&(E=Be(y),me(P({navigation:b},void 0!==E?{actionData:E}:{}),{flushSync:p})),t.n=1,Bt(a,n.pathname,r.signal);case 1:if("aborted"!==(D=t.v).type){t.n=2;break}return t.a(2,{shortCircuited:!0});case 2:if("error"!==D.type){t.n=3;break}return R=Qe(D.partialMatches).route.id,t.a(2,{matches:D.partialMatches,loaderData:{},errors:s({},R,D.error)});case 3:if(D.matches){t.n=4;break}return x=Ct(n.pathname),j=x.error,M=x.notFoundMatches,A=x.route,t.a(2,{matches:M,loaderData:{},errors:s({},A.id,j)});case 4:a=D.matches;case 5:if(L=f||v,O=je(e.history,V,a,k,n,w.v7_partialHydration&&!0===h,w.v7_skipActionErrorRevalidation,te,re,ne,de,se,ce,L,m,y),T=g(O,2),C=T[0],_=T[1],_t((function(e){return!(a&&a.some((function(t){return t.route.id===e})))||C&&C.some((function(t){return t.route.id===e}))})),ie=++oe,0!==C.length||0!==_.length){t.n=6;break}return U=Mt(),De(n,P({matches:a,loaderData:{},errors:y&&ot(y[1])?s({},y[0],y[1].error):null},Ke(y),U?{fetchers:new Map(V.fetchers)}:{}),{flushSync:p}),t.a(2,{shortCircuited:!0});case 6:return S&&(I={},i||(I.navigation=b,void 0!==(z=Be(y))&&(I.actionData=z)),_.length>0&&(I.fetchers=He(_)),me(I,{flushSync:p})),_.forEach((function(e){Pt(e.key),e.controller&&ae.set(e.key,e.controller)})),F=function(){return _.forEach((function(e){return Pt(e.key)}))},G&&G.signal.addEventListener("abort",F),t.n=7,ft(V,a,C,_,r);case 7:if(B=t.v,H=B.loaderResults,N=B.fetcherResults,!r.signal.aborted){t.n=8;break}return t.a(2,{shortCircuited:!0});case 8:if(G&&G.signal.removeEventListener("abort",F),_.forEach((function(e){return ae.delete(e.key)})),!(W=tt(H))){t.n=10;break}return t.n=9,Ye(r,W.result,!0,{replace:d});case 9:return t.a(2,{shortCircuited:!0});case 10:if(!(W=tt(N))){t.n=12;break}return ce.add(W.key),t.n=11,Ye(r,W.result,!0,{replace:d});case 11:return t.a(2,{shortCircuited:!0});case 12:return $=Je(V,a,H,y,_,N,he),q=$.loaderData,Y=$.errors,he.forEach((function(e,t){e.subscribe((function(r){(r||e.done)&&he.delete(t)}))})),w.v7_partialHydration&&h&&V.errors&&(Y=P({},V.errors,Y)),J=Mt(),X=At(ie),K=J||X||_.length>0,t.a(2,P({matches:a,loaderData:q,errors:Y},K?{fetchers:new Map(V.fetchers)}:{}))}}),t)}))),Fe.apply(this,arguments)}function Be(e){return e&&!ot(e[1])?s({},e[0],e[1].data):V.actionData?0===Object.keys(V.actionData).length?null:V.actionData:void 0}function He(e){return e.forEach((function(e){var t=V.fetchers.get(e.key),r=kt(void 0,t?t.data:void 0);V.fetchers.set(e.key,r)})),new Map(V.fetchers)}function We(){return We=c(o().m((function t(r,n,a,i,u,c,s,l,d){var h,p,y,b,k,S,E,D,R,x,P,j,M,A,O,T,C,_,U,I,z,B,H,N,W,$,q;return o().w((function(t){for(;;)switch(t.n){case 0:if(h=function(e){if(!e.route.action&&!e.route.lazy){var t=et(405,{method:d.formMethod,pathname:a,routeId:n});return Dt(r,n,t,{flushSync:s}),!0}return!1},vt(),se.delete(r),c||!h(i)){t.n=1;break}return t.a(2);case 1:if(p=V.fetchers.get(r),mt(r,St(d,p),{flushSync:s}),y=new AbortController,b=Ge(e.history,a,y.signal,d),!c){t.n=6;break}return t.n=2,Bt(u,new URL(b.url).pathname,b.signal,r);case 2:if("aborted"!==(k=t.v).type){t.n=3;break}return t.a(2);case 3:if("error"!==k.type){t.n=4;break}return Dt(r,n,k.error,{flushSync:s}),t.a(2);case 4:if(k.matches){t.n=5;break}return Dt(r,n,et(404,{pathname:a}),{flushSync:s}),t.a(2);case 5:if(u=k.matches,i=yt(u,a),!h(i)){t.n=6;break}return t.a(2);case 6:return ae.set(r,y),S=oe,t.n=7,ut("action",V,b,[i],u,r);case 7:if(E=t.v,D=E[i.route.id],!b.signal.aborted){t.n=8;break}return ae.get(r)===y&&ae.delete(r),t.a(2);case 8:if(!w.v7_fetcherPersist||!de.has(r)){t.n=10;break}if(!it(D)&&!ot(D)){t.n=9;break}return mt(r,Et(void 0)),t.a(2);case 9:t.n=13;break;case 10:if(!it(D)){t.n=12;break}if(ae.delete(r),!(ie>S)){t.n=11;break}return mt(r,Et(void 0)),t.a(2);case 11:return ce.add(r),mt(r,kt(d)),t.a(2,Ye(b,D,!1,{fetcherSubmission:d,preventScrollReset:l}));case 12:if(!ot(D)){t.n=13;break}return Dt(r,n,D.error),t.a(2);case 13:if(!at(D)){t.n=14;break}throw et(400,{type:"defer-action"});case 14:return R=V.navigation.location||V.location,x=Ge(e.history,R,y.signal),P=f||v,L(j="idle"!==V.navigation.state?F(P,V.navigation.location,m):V.matches,"Didn't find any matches after fetcher action"),M=++oe,ue.set(r,M),A=kt(d,D.data),V.fetchers.set(r,A),O=je(e.history,V,j,d,R,!1,w.v7_skipActionErrorRevalidation,te,re,ne,de,se,ce,P,m,[i.route.id,D]),T=g(O,2),C=T[0],(_=T[1]).filter((function(e){return e.key!==r})).forEach((function(e){var t=e.key,r=V.fetchers.get(t),n=kt(void 0,r?r.data:void 0);V.fetchers.set(t,n),Pt(t),e.controller&&ae.set(t,e.controller)})),me({fetchers:new Map(V.fetchers)}),U=function(){return _.forEach((function(e){return Pt(e.key)}))},y.signal.addEventListener("abort",U),t.n=15,ft(V,j,C,_,x);case 15:if(I=t.v,z=I.loaderResults,B=I.fetcherResults,!y.signal.aborted){t.n=16;break}return t.a(2);case 16:if(y.signal.removeEventListener("abort",U),ue.delete(r),ae.delete(r),_.forEach((function(e){return ae.delete(e.key)})),!(H=tt(z))){t.n=17;break}return t.a(2,Ye(x,H.result,!1,{preventScrollReset:l}));case 17:if(!(H=tt(B))){t.n=18;break}return ce.add(H.key),t.a(2,Ye(x,H.result,!1,{preventScrollReset:l}));case 18:N=Je(V,j,z,void 0,_,B,he),W=N.loaderData,$=N.errors,V.fetchers.has(r)&&(q=Et(D.data),V.fetchers.set(r,q)),At(M),"loading"===V.navigation.state&&M>ie?(L(Y,"Expected pending action"),G&&G.abort(),De(V.navigation.location,{matches:j,loaderData:W,errors:$,fetchers:new Map(V.fetchers)})):(me({errors:$,loaderData:Xe(V.loaderData,W,j,$),fetchers:new Map(V.fetchers)}),te=!1);case 19:return t.a(2)}}),t)}))),We.apply(this,arguments)}function Ve(){return(Ve=c(o().m((function t(r,n,a,i,u,c,s,l,f){var d,h,p,v,m,y,b,g;return o().w((function(t){for(;;)switch(t.n){case 0:if(d=V.fetchers.get(r),mt(r,kt(f,d?d.data:void 0),{flushSync:s}),h=new AbortController,p=Ge(e.history,a,h.signal),!c){t.n=5;break}return t.n=1,Bt(u,new URL(p.url).pathname,p.signal,r);case 1:if("aborted"!==(v=t.v).type){t.n=2;break}return t.a(2);case 2:if("error"!==v.type){t.n=3;break}return Dt(r,n,v.error,{flushSync:s}),t.a(2);case 3:if(v.matches){t.n=4;break}return Dt(r,n,et(404,{pathname:a}),{flushSync:s}),t.a(2);case 4:u=v.matches,i=yt(u,a);case 5:return ae.set(r,h),m=oe,t.n=6,ut("loader",V,p,[i],u,r);case 6:if(y=t.v,!at(b=y[i.route.id])){t.n=9;break}return t.n=7,pt(b,p.signal,!0);case 7:if(g=t.v){t.n=8;break}g=b;case 8:b=g;case 9:if(ae.get(r)===h&&ae.delete(r),!p.signal.aborted){t.n=10;break}return t.a(2);case 10:if(!de.has(r)){t.n=11;break}return mt(r,Et(void 0)),t.a(2);case 11:if(!it(b)){t.n=14;break}if(!(ie>m)){t.n=12;break}return mt(r,Et(void 0)),t.a(2);case 12:return ce.add(r),t.n=13,Ye(p,b,!1,{preventScrollReset:l});case 13:return t.a(2);case 14:if(!ot(b)){t.n=15;break}return Dt(r,n,b.error),t.a(2);case 15:L(!at(b),"Unhandled fetcher deferred data"),mt(r,Et(b.data));case 16:return t.a(2)}}),t)})))).apply(this,arguments)}function Ye(e,t,r,n){return rt.apply(this,arguments)}function rt(){return(rt=c(o().m((function t(a,u,c,s){var l,f,d,h,p,v,y,b,g,w,k,S,E,D,R,x;return o().w((function(t){for(;;)switch(t.n){case 0:if(f=(l=void 0===s?{}:s).submission,d=l.fetcherSubmission,h=l.preventScrollReset,p=l.replace,u.response.headers.has("X-Remix-Revalidate")&&(te=!0),L(v=u.response.headers.get("Location"),"Expected a Location header on the redirect Response"),v=qe(v,new URL(a.url),m),y=C(V.location,v,{_isRedirect:!0}),!i){t.n=1;break}if(b=!1,u.response.headers.has("X-Remix-Reload-Document")?b=!0:ke.test(v)&&(g=e.history.createURL(v),b=g.origin!==r.location.origin||null==ee(g.pathname,m)),!b){t.n=1;break}return p?r.location.replace(v):r.location.assign(v),t.a(2);case 1:if(G=null,w=!0===p||u.response.headers.has("X-Remix-Replace")?n.Replace:n.Push,k=V.navigation,S=k.formMethod,E=k.formAction,D=k.formEncType,!f&&!d&&S&&E&&D&&(f=bt(V.navigation)),R=f||d,!(ye.has(u.response.status)&&R&&st(R.formMethod))){t.n=3;break}return t.n=2,Le(w,y,{submission:P({},R,{formAction:v}),preventScrollReset:h||J,enableViewTransition:c?X:void 0});case 2:t.n=4;break;case 3:return x=gt(y,f),t.n=4,Le(w,y,{overrideNavigation:x,fetcherSubmission:d,preventScrollReset:h||J,enableViewTransition:c?X:void 0});case 4:return t.a(2)}}),t)})))).apply(this,arguments)}function ut(e,t,r,n,a,o){return ct.apply(this,arguments)}function ct(){return ct=c(o().m((function e(r,n,a,i,u,c){var s,l,f,d,h,v,b,k,S;return o().w((function(e){for(;;)switch(e.n){case 0:return l={},e.p=1,e.n=2,ze(y,r,n,a,i,u,c,p,t);case 2:s=e.v,e.n=4;break;case 3:return e.p=3,S=e.v,i.forEach((function(e){l[e.route.id]={type:j.error,error:S}})),e.a(2,l);case 4:f=0,d=Object.entries(s);case 5:if(!(f<d.length)){e.n=9;break}if(h=g(d[f],2),v=h[0],!nt(b=h[1])){e.n=6;break}k=b.result,l[v]={type:j.redirect,response:$e(k,a,v,u,m,w.v7_relativeSplatPath)},e.n=8;break;case 6:return e.n=7,Ne(b);case 7:l[v]=e.v;case 8:f++,e.n=5;break;case 9:return e.a(2,l)}}),e,null,[[1,3]])}))),ct.apply(this,arguments)}function ft(e,t,r,n,a){return ht.apply(this,arguments)}function ht(){return ht=c(o().m((function t(r,n,a,i,u){var l,f,d,h,p;return o().w((function(t){for(;;)switch(t.n){case 0:return l=r.matches,f=ut("loader",r,u,a,n,null),d=Promise.all(i.map(function(){var t=c(o().m((function t(n){var a,i;return o().w((function(t){for(;;)switch(t.n){case 0:if(!(n.matches&&n.match&&n.controller)){t.n=2;break}return t.n=1,ut("loader",r,Ge(e.history,n.path,n.controller.signal),[n.match],n.matches,n.key);case 1:return a=t.v,i=a[n.match.route.id],t.a(2,s({},n.key,i));case 2:return t.a(2,Promise.resolve(s({},n.key,{type:j.error,error:et(404,{pathname:n.path})})));case 3:return t.a(2)}}),t)})));return function(e){return t.apply(this,arguments)}}())),t.n=1,f;case 1:return h=t.v,t.n=2,d;case 2:return p=t.v.reduce((function(e,t){return Object.assign(e,t)}),{}),t.n=3,Promise.all([lt(n,h,u.signal,l,r.loaderData),dt(n,p,i)]);case 3:return t.a(2,{loaderResults:h,fetcherResults:p})}}),t)}))),ht.apply(this,arguments)}function vt(){var e;te=!0,(e=re).push.apply(e,E(_t())),se.forEach((function(e,t){ae.has(t)&&ne.add(t),Pt(t)}))}function mt(e,t,r){void 0===r&&(r={}),V.fetchers.set(e,t),me({fetchers:new Map(V.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Dt(e,t,r,n){void 0===n&&(n={});var a=Qe(V.matches,t);xt(e),me({errors:s({},a.route.id,r),fetchers:new Map(V.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Rt(e){return le.set(e,(le.get(e)||0)+1),de.has(e)&&de.delete(e),V.fetchers.get(e)||ge}function xt(e){var t=V.fetchers.get(e);!ae.has(e)||t&&"loading"===t.state&&ue.has(e)||Pt(e),se.delete(e),ue.delete(e),ce.delete(e),w.v7_fetcherPersist&&de.delete(e),ne.delete(e),V.fetchers.delete(e)}function Pt(e){var t=ae.get(e);t&&(t.abort(),ae.delete(e))}function jt(e){var t,r=S(e);try{for(r.s();!(t=r.n()).done;){var n=t.value,a=Et(Rt(n).data);V.fetchers.set(n,a)}}catch(e){r.e(e)}finally{r.f()}}function Mt(){var e,t=[],r=!1,n=S(ce);try{for(n.s();!(e=n.n()).done;){var a=e.value,o=V.fetchers.get(a);L(o,"Expected fetcher: "+a),"loading"===o.state&&(ce.delete(a),t.push(a),r=!0)}}catch(e){n.e(e)}finally{n.f()}return jt(t),r}function At(e){var t,r=[],n=S(ue);try{for(n.s();!(t=n.n()).done;){var a=g(t.value,2),o=a[0];if(a[1]<e){var i=V.fetchers.get(o);L(i,"Expected fetcher: "+o),"loading"===i.state&&(Pt(o),ue.delete(o),r.push(o))}}}catch(e){n.e(e)}finally{n.f()}return jt(r),r.length>0}function Lt(e){V.blockers.delete(e),pe.delete(e)}function Ot(e,t){var r=V.blockers.get(e)||we;L("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(V.blockers);n.set(e,t),me({blockers:n})}function Tt(e){var t=e.currentLocation,r=e.nextLocation,n=e.historyAction;if(0!==pe.size){pe.size>1&&O(!1,"A router only supports one blocker at a time");var a=Array.from(pe.entries()),o=g(a[a.length-1],2),i=o[0],u=o[1],c=V.blockers.get(i);if(!c||"proceeding"!==c.state)return u({currentLocation:t,nextLocation:r,historyAction:n})?i:void 0}}function Ct(e){var t=et(404,{pathname:e}),r=Ze(f||v),n=r.matches,a=r.route;return _t(),{notFoundMatches:n,route:a,error:t}}function _t(e){var t=[];return he.forEach((function(r,n){e&&!e(n)||(r.cancel(),t.push(n),he.delete(n))})),t}function Ut(e,t){if(x){var r=x(e,t.map((function(e){return function(e,t){var r=e.route,n=e.pathname,a=e.params;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}(e,V.loaderData)})));return r||e.key}return e.key}function It(e,t){if(R&&M){var r=Ut(e,t);R[r]=M()}}function zt(e,t){if(R){var r=Ut(e,t),n=R[r];if("number"==typeof n)return n}return null}function Ft(e,t,r){if(b){if(!e)return{active:!0,matches:B(t,r,m,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:B(t,r,m,!0)}}return{active:!1,matches:null}}function Bt(e,t,r,n){return Ht.apply(this,arguments)}function Ht(){return(Ht=c(o().m((function e(r,n,i,u){var c,s,l;return o().w((function(e){for(;;)switch(e.n){case 0:if(b){e.n=1;break}return e.a(2,{type:"success",matches:r});case 1:c=r,s=o().m((function e(){var r,a,s,l,d,h;return o().w((function(e){for(;;)switch(e.n){case 0:return r=null==f,a=f||v,s=p,e.p=1,e.n=2,b({signal:i,path:n,matches:c,fetcherKey:u,patch:function(e,r){i.aborted||Oe(e,r,a,s,t)}});case 2:e.n=4;break;case 3:return e.p=3,h=e.v,e.a(2,{v:{type:"error",error:h,partialMatches:c}});case 4:return e.p=4,r&&!i.aborted&&(v=E(v)),e.f(4);case 5:if(!i.aborted){e.n=6;break}return e.a(2,{v:{type:"aborted"}});case 6:if(!(l=F(a,n,m))){e.n=7;break}return e.a(2,{v:{type:"success",matches:l}});case 7:if((d=B(a,n,m,!0))&&(c.length!==d.length||!c.every((function(e,t){return e.route.id===d[t].route.id})))){e.n=8;break}return e.a(2,{v:{type:"success",matches:null}});case 8:c=d;case 9:return e.a(2)}}),e,null,[[1,3,4,5]])}));case 2:return e.d(a(s()),3);case 3:if(!(l=e.v)){e.n=4;break}return e.a(2,l.v);case 4:e.n=2;break;case 5:return e.a(2)}}),e)})))).apply(this,arguments)}return h={get basename(){return m},get future(){return w},get state(){return V},get routes(){return v},get window(){return r},initialize:function(){if(k=e.history.listen((function(t){var r=t.action,n=t.location,a=t.delta;if(ve)return ve(),void(ve=void 0);O(0===pe.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=Tt({currentLocation:V.location,nextLocation:n,historyAction:r});if(o&&null!=a){var i=new Promise((function(e){ve=e}));return e.history.go(-1*a),void Ot(o,{state:"blocked",location:n,proceed:function(){Ot(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),i.then((function(){return e.history.go(a)}))},reset:function(){var e=new Map(V.blockers);e.set(o,we),me({blockers:e})}})}return Le(r,n)})),i){!function(e,t){try{var r=e.sessionStorage.getItem(Ee);if(r)for(var n=JSON.parse(r),a=0,o=Object.entries(n||{});a<o.length;a++){var i=g(o[a],2),u=i[0],c=i[1];c&&Array.isArray(c)&&t.set(u,new Set(c||[]))}}catch(e){}}(r,K);var t=function(){return function(e,t){if(t.size>0){var r,n={},a=S(t);try{for(a.s();!(r=a.n()).done;){var o=g(r.value,2),i=o[0],u=o[1];n[i]=E(u)}}catch(e){a.e(e)}finally{a.f()}try{e.sessionStorage.setItem(Ee,JSON.stringify(n))}catch(e){O(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(r,K)};r.addEventListener("pagehide",t),Q=function(){return r.removeEventListener("pagehide",t)}}return V.initialized||Le(n.Pop,V.location,{initialHydration:!0}),h},subscribe:function(e){return D.add(e),function(){return D.delete(e)}},enableScrollRestoration:function(e,t,r){if(R=e,M=t,x=r||null,!A&&V.navigation===be){A=!0;var n=zt(V.location,V.matches);null!=n&&me({restoreScrollPosition:n})}return function(){R=null,M=null,x=null}},navigate:Pe,fetch:function(e,t,r,n){if(u)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.");Pt(e);var a=!0===(n&&n.flushSync),o=f||v,i=Re(V.location,V.matches,m,w.v7_prependBasename,r,w.v7_relativeSplatPath,t,null==n?void 0:n.relative),c=F(o,i,m),s=Ft(c,o,i);if(s.active&&s.matches&&(c=s.matches),c){var l=xe(w.v7_normalizeFormMethod,!0,i,n),d=l.path,h=l.submission,p=l.error;if(p)Dt(e,t,p,{flushSync:a});else{var y=yt(c,d),b=!0===(n&&n.preventScrollReset);h&&st(h.formMethod)?function(e,t,r,n,a,o,i,u,c){We.apply(this,arguments)}(e,t,d,y,c,s.active,a,b,h):(se.set(e,{routeId:t,path:d}),function(e,t,r,n,a,o,i,u,c){Ve.apply(this,arguments)}(e,t,d,y,c,s.active,a,b,h))}}else Dt(e,t,et(404,{pathname:i}),{flushSync:a})},revalidate:function(){vt(),me({revalidation:"loading"}),"submitting"!==V.navigation.state&&("idle"!==V.navigation.state?Le(Y||V.historyAction,V.navigation.location,{overrideNavigation:V.navigation,enableViewTransition:!0===X}):Le(V.historyAction,V.location,{startUninterruptedRevalidation:!0}))},createHref:function(t){return e.history.createHref(t)},encodeLocation:function(t){return e.history.encodeLocation(t)},getFetcher:Rt,deleteFetcher:function(e){var t=(le.get(e)||0)-1;t<=0?(le.delete(e),de.add(e),w.v7_fetcherPersist||xt(e)):le.set(e,t),me({fetchers:new Map(V.fetchers)})},dispose:function(){k&&k(),Q&&Q(),D.clear(),G&&G.abort(),V.fetchers.forEach((function(e,t){return xt(t)})),V.blockers.forEach((function(e,t){return Lt(t)}))},getBlocker:function(e,t){var r=V.blockers.get(e)||we;return pe.get(e)!==t&&pe.set(e,t),r},deleteBlocker:Lt,patchRoutes:function(e,r){var n=null==f;Oe(e,r,f||v,p,t),n&&(v=E(v),me({}))},_internalFetchControllers:ae,_internalActiveDeferreds:he,_internalSetRoutes:function(e){f=z(e,t,void 0,p={})}},h}function Re(e,t,r,n,a,o,i,u){var c,s;if(i){c=[];var l,f=S(t);try{for(f.s();!(l=f.n()).done;){var d=l.value;if(c.push(d),d.route.id===i){s=d;break}}}catch(e){f.e(e)}finally{f.f()}}else c=t,s=t[t.length-1];var h=ae(a||".",ne(c,o),ee(e.pathname,r)||e.pathname,"path"===u);if(null==a&&(h.search=e.search,h.hash=e.hash),(null==a||""===a||"."===a)&&s){var p=mt(h.search);if(s.route.index&&!p)h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&p){var v=new URLSearchParams(h.search),m=v.getAll("index");v.delete("index"),m.filter((function(e){return e})).forEach((function(e){return v.append("index",e)}));var y=v.toString();h.search=y?"?"+y:""}}return n&&"/"!==r&&(h.pathname="/"===h.pathname?r:oe([r,h.pathname])),_(h)}function xe(e,t,r,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:r};if(n.formMethod&&(a=n.formMethod,!ve.has(a.toLowerCase())))return{path:r,error:et(405,{method:n.formMethod})};var a,o,i,u=function(){return{path:r,error:et(400,{type:"invalid-body"})}},c=n.formMethod||"get",s=e?c.toUpperCase():c.toLowerCase(),l=rt(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!st(s))return u();var f="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((function(e,t){var r=g(t,2);return""+e+r[0]+"="+r[1]+"\n"}),""):String(n.body);return{path:r,submission:{formMethod:s,formAction:l,formEncType:n.formEncType,formData:void 0,json:void 0,text:f}}}if("application/json"===n.formEncType){if(!st(s))return u();try{var d="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:s,formAction:l,formEncType:n.formEncType,formData:void 0,json:d,text:void 0}}}catch(e){return u()}}}if(L("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=Ve(n.formData),i=n.formData;else if(n.body instanceof FormData)o=Ve(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=Ye(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{i=Ye(o=new URLSearchParams(n.body))}catch(e){return u()}var h={formMethod:s,formAction:l,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(st(h.formMethod))return{path:r,submission:h};var p=U(r);return t&&p.search&&mt(p.search)&&o.append("index",""),p.search="?"+o,{path:_(p),submission:h}}function Pe(e,t,r){void 0===r&&(r=!1);var n=e.findIndex((function(e){return e.route.id===t}));return n>=0?e.slice(0,r?n+1:n):e}function je(e,t,r,n,a,o,i,u,c,s,l,f,d,h,p,v){var m=v?ot(v[1])?v[1].error:v[1].data:void 0,y=e.createURL(t.location),b=e.createURL(a),g=r;o&&t.errors?g=Pe(r,Object.keys(t.errors)[0],!0):v&&ot(v[1])&&(g=Pe(r,v[0]));var w=v?v[1].statusCode:void 0,k=i&&w&&w>=400,S=g.filter((function(e,r){var a=e.route;if(a.lazy)return!0;if(null==a.loader)return!1;if(o)return Me(a,t.loaderData,t.errors);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)||c.some((function(t){return t===e.route.id})))return!0;var i=t.matches[r],s=e;return Le(e,P({currentUrl:y,currentParams:i.params,nextUrl:b,nextParams:s.params},n,{actionResult:m,actionStatus:w,defaultShouldRevalidate:!k&&(u||y.pathname+y.search===b.pathname+b.search||y.search!==b.search||Ae(i,s))}))})),E=[];return f.forEach((function(e,a){if(!o&&r.some((function(t){return t.route.id===e.routeId}))&&!l.has(a)){var i=F(h,e.path,p);if(i){var c=t.fetchers.get(a),f=yt(i,e.path),v=!1;d.has(a)?v=!1:s.has(a)?(s.delete(a),v=!0):v=c&&"idle"!==c.state&&void 0===c.data?u:Le(f,P({currentUrl:y,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:m,actionStatus:w,defaultShouldRevalidate:!k&&u})),v&&E.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:f,controller:new AbortController})}else E.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null})}})),[S,E]}function Me(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;var n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return!(!n&&a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function Ae(e,t){var r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function Le(e,t){if(e.route.shouldRevalidate){var r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function Oe(e,t,r,n,a){var o,i,u;if(e){var c=n[e];L(c,"No route found to patch children into: routeId = "+e),c.children||(c.children=[]),u=c.children}else u=r;var s=z(t.filter((function(e){return!u.some((function(t){return Te(e,t)}))})),a,[e||"_","patch",String((null==(i=u)?void 0:i.length)||"0")],n);(o=u).push.apply(o,E(s))}function Te(e,t){return"id"in e&&"id"in t&&e.id===t.id||e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive&&(!(e.children&&0!==e.children.length||t.children&&0!==t.children.length)||e.children.every((function(e,r){var n;return null==(n=t.children)?void 0:n.some((function(t){return Te(e,t)}))})))}function Ce(e,t,r){return _e.apply(this,arguments)}function _e(){return(_e=c(o().m((function e(t,r,n){var a,i,u,c,s,l;return o().w((function(e){for(;;)switch(e.n){case 0:if(t.lazy){e.n=1;break}return e.a(2);case 1:return e.n=2,t.lazy();case 2:if(a=e.v,t.lazy){e.n=3;break}return e.a(2);case 3:for(c in L(i=n[t.id],"No route found in manifest"),u={},a)s=i[c],O(!(l=void 0!==s&&"hasErrorBoundary"!==c),'Route "'+i.id+'" has a static property "'+c+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+c+'" will be ignored.'),l||I.has(c)||(u[c]=a[c]);Object.assign(i,u),Object.assign(i,P({},r(i),{lazy:void 0}));case 4:return e.a(2)}}),e)})))).apply(this,arguments)}function Ue(e){return Ie.apply(this,arguments)}function Ie(){return(Ie=c(o().m((function e(t){var r,n,a;return o().w((function(e){for(;;)switch(e.n){case 0:return r=t.matches,n=r.filter((function(e){return e.shouldLoad})),e.n=1,Promise.all(n.map((function(e){return e.resolve()})));case 1:return a=e.v,e.a(2,a.reduce((function(e,t,r){return Object.assign(e,s({},n[r].route.id,t))}),{}))}}),e)})))).apply(this,arguments)}function ze(e,t,r,n,a,o,i,u,c,s){return Fe.apply(this,arguments)}function Fe(){return Fe=c(o().m((function e(t,r,n,a,i,u,s,l,f,d){var h,p,v;return o().w((function(e){for(;;)switch(e.n){case 0:return h=u.map((function(e){return e.route.lazy?Ce(e.route,f,l):void 0})),p=u.map((function(e,t){var n=h[t],u=i.some((function(t){return t.route.id===e.route.id})),s=function(){var t=c(o().m((function t(i){return o().w((function(t){for(;;)if(0===t.n)return i&&"GET"===a.method&&(e.route.lazy||e.route.loader)&&(u=!0),t.a(2,u?Be(r,a,e,n,i,d):Promise.resolve({type:j.data,result:void 0}))}),t)})));return function(e){return t.apply(this,arguments)}}();return P({},e,{shouldLoad:u,resolve:s})})),e.n=1,t({matches:p,request:a,params:u[0].params,fetcherKey:s,context:d});case 1:return v=e.v,e.p=2,e.n=3,Promise.all(h);case 3:e.n=5;break;case 4:e.p=4,e.v;case 5:return e.a(2,v)}}),e,null,[[2,4]])}))),Fe.apply(this,arguments)}function Be(e,t,r,n,a,o){return He.apply(this,arguments)}function He(){return(He=c(o().m((function e(t,r,n,a,i,u){var s,l,f,d,h,p,v,m,y,b,w,k;return o().w((function(e){for(;;)switch(e.n){case 0:if(f=function(e){var a,s=new Promise((function(e,t){return a=t}));l=function(){return a()},r.signal.addEventListener("abort",l);var f=function(a){return"function"!=typeof e?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+t+'" [routeId: '+n.route.id+"]")):e.apply(void 0,[{request:r,params:n.params,context:u}].concat(E(void 0!==a?[a]:[])))},d=c(o().m((function e(){var t,r;return o().w((function(e){for(;;)switch(e.n){case 0:return e.p=0,e.n=1,i?i((function(e){return f(e)})):f();case 1:return t=e.v,e.a(2,{type:"data",result:t});case 2:return e.p=2,r=e.v,e.a(2,{type:"error",result:r})}}),e,null,[[0,2]])})))();return Promise.race([d,s])},e.p=1,d=n.route[t],!a){e.n=10;break}if(!d){e.n=4;break}return e.n=2,Promise.all([f(d).catch((function(e){h=e})),a]);case 2:if(p=e.v,v=g(p,1),m=v[0],void 0===h){e.n=3;break}throw h;case 3:s=m,e.n=9;break;case 4:return e.n=5,a;case 5:if(!(d=n.route[t])){e.n=7;break}return e.n=6,f(d);case 6:s=e.v,e.n=9;break;case 7:if("action"!==t){e.n=8;break}throw y=new URL(r.url),b=y.pathname+y.search,et(405,{method:r.method,pathname:b,routeId:n.route.id});case 8:return e.a(2,{type:j.data,result:void 0});case 9:e.n=13;break;case 10:if(d){e.n=11;break}throw et(404,{pathname:(w=new URL(r.url)).pathname+w.search});case 11:return e.n=12,f(d);case 12:s=e.v;case 13:L(void 0!==s.result,"You defined "+("action"===t?"an action":"a loader")+' for route "'+n.route.id+"\" but didn't return anything from your `"+t+"` function. Please return a value or `null`."),e.n=15;break;case 14:return e.p=14,k=e.v,e.a(2,{type:j.error,result:k});case 15:return e.p=15,l&&r.signal.removeEventListener("abort",l),e.f(15);case 16:return e.a(2,s)}}),e,null,[[1,14,15,16]])})))).apply(this,arguments)}function Ne(e){return We.apply(this,arguments)}function We(){return(We=c(o().m((function e(t){var r,n,a,i,u,c,s,f,d,h,p,v,m;return o().w((function(e){for(;;)switch(e.n){case 0:if(r=t.result,n=t.type,!ct(r)){e.n=11;break}if(e.p=1,!(i=r.headers.get("Content-Type"))||!/\bapplication\/json\b/.test(i)){e.n=5;break}if(null!=r.body){e.n=2;break}a=null,e.n=4;break;case 2:return e.n=3,r.json();case 3:a=e.v;case 4:e.n=7;break;case 5:return e.n=6,r.text();case 6:a=e.v;case 7:e.n=9;break;case 8:return e.p=8,m=e.v,e.a(2,{type:j.error,error:m});case 9:if(n!==j.error){e.n=10;break}return e.a(2,{type:j.error,error:new le(r.status,r.statusText,a),statusCode:r.status,headers:r.headers});case 10:return e.a(2,{type:j.data,data:a,statusCode:r.status,headers:r.headers});case 11:if(n!==j.error){e.n=14;break}if(!ut(r)){e.n=13;break}if(!(r.data instanceof Error)){e.n=12;break}return e.a(2,{type:j.error,error:r.data,statusCode:null==(s=r.init)?void 0:s.status,headers:null!=(f=r.init)&&f.headers?new Headers(r.init.headers):void 0});case 12:return e.a(2,{type:j.error,error:new le((null==(u=r.init)?void 0:u.status)||500,void 0,r.data),statusCode:fe(r)?r.status:void 0,headers:null!=(c=r.init)&&c.headers?new Headers(r.init.headers):void 0});case 13:return e.a(2,{type:j.error,error:r,statusCode:fe(r)?r.status:void 0});case 14:if(void 0,!(o=r)||"object"!==l(o)||"object"!==l(o.data)||"function"!=typeof o.subscribe||"function"!=typeof o.cancel||"function"!=typeof o.resolveData){e.n=15;break}return e.a(2,{type:j.deferred,deferredData:r,statusCode:null==(d=r.init)?void 0:d.status,headers:(null==(h=r.init)?void 0:h.headers)&&new Headers(r.init.headers)});case 15:if(!ut(r)){e.n=16;break}return e.a(2,{type:j.data,data:r.data,statusCode:null==(p=r.init)?void 0:p.status,headers:null!=(v=r.init)&&v.headers?new Headers(r.init.headers):void 0});case 16:return e.a(2,{type:j.data,data:r})}var o}),e,null,[[1,8]])})))).apply(this,arguments)}function $e(e,t,r,n,a,o){var i=e.headers.get("Location");if(L(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!ke.test(i)){var u=n.slice(0,n.findIndex((function(e){return e.route.id===r}))+1);i=Re(new URL(t.url),u,a,!0,i,o),e.headers.set("Location",i)}return e}function qe(e,t,r){if(ke.test(e)){var n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=null!=ee(a.pathname,r);if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function Ge(e,t,r,n){var a=e.createURL(rt(t)).toString(),o={signal:r};if(n&&st(n.formMethod)){var i=n.formMethod,u=n.formEncType;o.method=i.toUpperCase(),"application/json"===u?(o.headers=new Headers({"Content-Type":u}),o.body=JSON.stringify(n.json)):"text/plain"===u?o.body=n.text:"application/x-www-form-urlencoded"===u&&n.formData?o.body=Ve(n.formData):o.body=n.formData}return new Request(a,o)}function Ve(e){var t,r=new URLSearchParams,n=S(e.entries());try{for(n.s();!(t=n.n()).done;){var a=g(t.value,2),o=a[0],i=a[1];r.append(o,"string"==typeof i?i:i.name)}}catch(e){n.e(e)}finally{n.f()}return r}function Ye(e){var t,r=new FormData,n=S(e.entries());try{for(n.s();!(t=n.n()).done;){var a=g(t.value,2),o=a[0],i=a[1];r.append(o,i)}}catch(e){n.e(e)}finally{n.f()}return r}function Je(e,t,r,n,a,o,i){var u=function(e,t,r,n,a){var o,i={},u=null,c=!1,l={},f=r&&ot(r[1])?r[1].error:void 0;return e.forEach((function(r){if(r.route.id in t){var s=r.route.id,d=t[s];if(L(!it(d),"Cannot handle redirect results in processLoaderData"),ot(d)){var h=d.error;if(void 0!==f&&(h=f,f=void 0),u=u||{},a)u[s]=h;else{var p=Qe(e,s);null==u[p.route.id]&&(u[p.route.id]=h)}i[s]=void 0,c||(c=!0,o=fe(d.error)?d.error.status:500),d.headers&&(l[s]=d.headers)}else at(d)?(n.set(s,d.deferredData),i[s]=d.deferredData.data,null==d.statusCode||200===d.statusCode||c||(o=d.statusCode),d.headers&&(l[s]=d.headers)):(i[s]=d.data,d.statusCode&&200!==d.statusCode&&!c&&(o=d.statusCode),d.headers&&(l[s]=d.headers))}})),void 0!==f&&r&&(u=s({},r[0],f),i[r[0]]=void 0),{loaderData:i,errors:u,statusCode:o||200,loaderHeaders:l}}(t,r,n,i,!1),c=u.loaderData,l=u.errors;return a.forEach((function(t){var r=t.key,n=t.match,a=t.controller,i=o[r];if(L(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(ot(i)){var u=Qe(e.matches,null==n?void 0:n.route.id);l&&l[u.route.id]||(l=P({},l,s({},u.route.id,i.error))),e.fetchers.delete(r)}else if(it(i))L(!1,"Unhandled fetcher revalidation redirect");else if(at(i))L(!1,"Unhandled fetcher deferred data");else{var c=Et(i.data);e.fetchers.set(r,c)}})),{loaderData:c,errors:l}}function Xe(e,t,r,n){var a,o=P({},t),i=S(r);try{for(i.s();!(a=i.n()).done;){var u=a.value,c=u.route.id;if(t.hasOwnProperty(c)?void 0!==t[c]&&(o[c]=t[c]):void 0!==e[c]&&u.route.loader&&(o[c]=e[c]),n&&n.hasOwnProperty(c))break}}catch(e){i.e(e)}finally{i.f()}return o}function Ke(e){return e?ot(e[1])?{actionData:{}}:{actionData:s({},e[0],e[1].data)}:{}}function Qe(e,t){return(t?e.slice(0,e.findIndex((function(e){return e.route.id===t}))+1):E(e)).reverse().find((function(e){return!0===e.route.hasErrorBoundary}))||e[0]}function Ze(e){var t=1===e.length?e[0]:e.find((function(e){return e.index||!e.path||"/"===e.path}))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function et(e,t){var r=void 0===t?{}:t,n=r.pathname,a=r.routeId,o=r.method,i=r.type,u=(r.message,"Unknown Server Error"),c="Unknown @remix-run/router error";return 400===e?(u="Bad Request",o&&n&&a?c="You made a "+o+' request to "'+n+'" but did not provide a `loader` for route "'+a+'", so there is no way to handle the request.':"defer-action"===i?c="defer() is not supported in actions":"invalid-body"===i&&(c="Unable to encode submission body")):403===e?(u="Forbidden",c='Route "'+a+'" does not match URL "'+n+'"'):404===e?(u="Not Found",c='No route matches URL "'+n+'"'):405===e&&(u="Method Not Allowed",o&&n&&a?c="You made a "+o.toUpperCase()+' request to "'+n+'" but did not provide an `action` for route "'+a+'", so there is no way to handle the request.':o&&(c='Invalid request method "'+o.toUpperCase()+'"')),new le(e||500,u,new Error(c),!0)}function tt(e){for(var t=Object.entries(e),r=t.length-1;r>=0;r--){var n=g(t[r],2),a=n[0],o=n[1];if(it(o))return{key:a,result:o}}}function rt(e){return _(P({},"string"==typeof e?U(e):e,{hash:""}))}function nt(e){return ct(e.result)&&me.has(e.result.status)}function at(e){return e.type===j.deferred}function ot(e){return e.type===j.error}function it(e){return(e&&e.type)===j.redirect}function ut(e){return"object"===l(e)&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function ct(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"===l(e.headers)&&void 0!==e.body}function st(e){return he.has(e.toLowerCase())}function lt(e,t,r,n,a){return ft.apply(this,arguments)}function ft(){return(ft=c(o().m((function e(t,r,n,i,u){var c,s,l;return o().w((function(e){for(;;)switch(e.n){case 0:c=Object.entries(r),s=o().m((function e(){var a,s,f,d,h,p;return o().w((function(e){for(;;)switch(e.n){case 0:if(a=g(c[l],2),s=a[0],f=a[1],d=t.find((function(e){return(null==e?void 0:e.route.id)===s}))){e.n=1;break}return e.a(2,1);case 1:if(h=i.find((function(e){return e.route.id===d.route.id})),p=null!=h&&!Ae(h,d)&&void 0!==(u&&u[d.route.id]),!at(f)||!p){e.n=2;break}return e.n=2,pt(f,n,!1).then((function(e){e&&(r[s]=e)}));case 2:return e.a(2)}}),e)})),l=0;case 1:if(!(l<c.length)){e.n=4;break}return e.d(a(s()),2);case 2:if(!e.v){e.n=3;break}return e.a(3,3);case 3:l++,e.n=1;break;case 4:return e.a(2)}}),e)})))).apply(this,arguments)}function dt(e,t,r){return ht.apply(this,arguments)}function ht(){return(ht=c(o().m((function e(t,r,n){var i,u;return o().w((function(e){for(;;)switch(e.n){case 0:i=o().m((function e(){var a,i,c,s,l;return o().w((function(e){for(;;)switch(e.n){case 0:if(a=n[u],i=a.key,c=a.routeId,s=a.controller,l=r[i],t.find((function(e){return(null==e?void 0:e.route.id)===c}))){e.n=1;break}return e.a(2,1);case 1:if(!at(l)){e.n=2;break}return L(s,"Expected an AbortController for revalidating fetcher deferred result"),e.n=2,pt(l,s.signal,!0).then((function(e){e&&(r[i]=e)}));case 2:return e.a(2)}}),e)})),u=0;case 1:if(!(u<n.length)){e.n=4;break}return e.d(a(i()),2);case 2:if(!e.v){e.n=3;break}return e.a(3,3);case 3:u++,e.n=1;break;case 4:return e.a(2)}}),e)})))).apply(this,arguments)}function pt(e,t,r){return vt.apply(this,arguments)}function vt(){return(vt=c(o().m((function e(t,r,n){var a;return o().w((function(e){for(;;)switch(e.n){case 0:return void 0===n&&(n=!1),e.n=1,t.deferredData.resolveData(r);case 1:if(!e.v){e.n=2;break}return e.a(2);case 2:if(!n){e.n=5;break}return e.p=3,e.a(2,{type:j.data,data:t.deferredData.unwrappedData});case 4:return e.p=4,a=e.v,e.a(2,{type:j.error,error:a});case 5:return e.a(2,{type:j.data,data:t.deferredData.data})}}),e,null,[[3,4]])})))).apply(this,arguments)}function mt(e){return new URLSearchParams(e).getAll("index").some((function(e){return""===e}))}function yt(e,t){var r="string"==typeof t?U(t).search:t.search;if(e[e.length-1].route.index&&mt(r||""))return e[e.length-1];var n=re(e);return n[n.length-1]}function bt(e){var t=e.formMethod,r=e.formAction,n=e.formEncType,a=e.text,o=e.formData,i=e.json;if(t&&r&&n)return null!=a?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a}:null!=o?{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0}:void 0!==i?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}:void 0}function gt(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 wt(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function kt(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 St(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Et(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")}}]);