vendor: 5,060 bytes, lines 1-9
1function pn(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(n,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Qa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dr={exports:{}},bt={},Cr={exports:{}},O={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var qe=Symbol.for("react.element"),yn=Symbol.for("react.portal"),vn=Symbol.for("react.fragment"),gn=Symbol.for("react.strict_mode"),bn=Symbol.for("react.profiler"),wn=Symbol.for("react.provider"),En=Symbol.for("react.context"),Rn=Symbol.for("react.forward_ref"),Pn=Symbol.for("react.suspense"),xn=Symbol.for("react.memo"),Sn=Symbol.for("react.lazy"),ir=Symbol.iterator;function Dn(e){return e===null||typeof e!="object"?null:(e=ir&&e[ir]||e["@@iterator"],typeof e=="function"?e:null)}var _r={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Mr=Object.assign,Lr={};function ke(e,t,r){this.props=e,this.context=t,this.refs=Lr,this.updater=r||_r}ke.prototype.isReactComponent={};ke.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ke.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function jr(){}jr.prototype=ke.prototype;function It(e,t,r){this.props=e,this.context=t,this.refs=Lr,this.updater=r||_r}var At=It.prototype=new jr;At.constructor=It;Mr(At,ke.prototype);At.isPureReactComponent=!0;var lr=Array.isArray,Or=Object.prototype.hasOwnProperty,Nt={current:null},Tr={key:!0,ref:!0,__self:!0,__source:!0};function Ur(e,t,r){var n,a={},l=null,i=null;if(t!=null)for(n in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(l=""+t.key),t)Or.call(t,n)&&!Tr.hasOwnProperty(n)&&(a[n]=t[n]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var u=Array(c),f=0;f<c;f++)u[f]=arguments[f+2];a.children=u}if(e&&e.defaultProps)for(n in c=e.defaultProps,c)a[n]===void 0&&(a[n]=c[n]);return{$$typeof:qe,type:e,key:l,ref:i,props:a,_owner:Nt.current}}function Cn(e,t){return{$$typeof:qe,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function kt(e){return typeof e=="object"&&e!==null&&e.$$typeof===qe}function _n(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var sr=/\/+/g;function Ct(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_n(""+e.key):t.toString(36)}function ht(e,t,r,n,a){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(l){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case qe:case yn:i=!0}}if(i)return i=e,a=a(i),e=n===""?"."+Ct(i,0):n,lr(a)?(r="",e!=null&&(r=e.replace(sr,"$&/")+"/"),ht(a,t,r,"",function(f){return f})):a!=null&&(kt(a)&&(a=Cn(a,r+(!a.key||i&&i.key===a.key?"":(""+a.key).replace(sr,"$&/")+"/")+e)),t.push(a)),1;if(i=0,n=n===""?".":n+":",lr(e))for(var c=0;c<e.length;c++){l=e[c];var u=n+Ct(l,c);i+=ht(l,t,r,u,a)}else if(u=Dn(e),typeof u=="function")for(e=u.call(e),c=0;!(l=e.next()).done;)l=l.value,u=n+Ct(l,c++),i+=ht(l,t,r,u,a);else if(l==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function dt(e,t,r){if(e==null)return e;var n=[],a=0;return ht(e,n,"","",function(l){return t.call(r,l,a++)}),n}function Mn(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Q={current:null},pt={transition:null},Ln={ReactCurrentDispatcher:Q,ReactCurrentBatchConfig:pt,ReactCurrentOwner:Nt};function Fr(){throw Error("act(...) is not supported in production builds of React.")}O.Children={map:dt,forEach:function(e,t,r){dt(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return dt(e,function(){t++}),t},toArray:function(e){return dt(e,function(t){return t})||[]},only:function(e){if(!kt(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};O.Component=ke;O.Fragment=vn;O.Profiler=bn;O.PureComponent=It;O.StrictMode=gn;O.Suspense=Pn;
9O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ln;O.act=Fr;O.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Mr({},e.props),a=e.key,l=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,i=Nt.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)Or.call(t,u)&&!Tr.hasOwnProperty(u)&&(n[u]=t[u]===void 0&&c!==void 0?c[u]:t[u])}var u=arguments.length-2;if(u===1)n.children=r;else if(1<u){c=Array(u);for(var f=0;f<u;f++)c[f]=arguments[f+2];n.children=c}return{$$typeof:qe,type:e.type,key:a,ref:l,props:n,_owner:i}};O.createContext=function(e){return e={$$typeof:En,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:wn,_context:e},e.Consumer=e};O.createElement=Ur;O.createFactory=function(e){var t=Ur.bind(null,e);return t.type=e,t};O.createRef=function(){return{current:null}};O.forwardRef=function(e){return{$$typeof:Rn,render:e}};O.isValidElement=kt;O.lazy=function(e){return{$$typeof:Sn,_payload:{_status:-1,_result:e},_init:Mn}};O.memo=function(e,t){return{$$typeof:xn,type:e,compare:t===void 0?null:t}};O.startTransition=function(e){var t=pt.transition;pt.transition={};try{e()}finally{pt.transition=t}};O.unstable_act=Fr;O.useCallback=function(e,t){return Q.current.useCallback(e,t)};O.useContext=function(e){return Q.current.useContext(e)};O.useDebugValue=function(){};O.useDeferredValue=function(e){return Q.current.useDeferredValue(e)};O.useEffect=function(e,t){return Q.current.useEffect(e,t)};O.useId=function(){return Q.current.useId()};O.useImperativeHandle=function(e,t,r){return Q.current.useImperativeHandle(e,t,r)};O.useInsertionEffect=function(e,t){return Q.current.useInsertionEffect(e,t)};O.useLayoutEffect=function(e,t){return Q.current.useLayoutEffect(e,t)};O.useMemo=function(e,t){return Q.current.useMemo(e,t)};O.useReducer=function(e,t,r){return Q.current.useReducer(e,t,r)};O.useRef=function(e){return Q.current.useRef(e)};O.useState=function(e){return Q.current.useState(e)};O.useSyncExternalStore=function(e,t,r){return Q.current.useSyncExternalStore(e,t,r)};O.useTransition=function(){return Q.current.useTransition()};O.version="18.3.1";Cr.exports=O;var b=Cr.exports;const jn=mn(b),Za=pn({__proto__:null,default:jn},[b]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var On=b,Tn=Symbol.for("react.element"),Un=Symbol.for("react.fragment"),Fn=Object.prototype.hasOwnProperty,In=On.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,An={key:!0,ref:!0,__self:!0,__source:!0};function Ir(e,t,r){var n,a={},l=null,i=null;r!==void 0&&(l=""+r),t.key!==void 0&&(l=""+t.key),t.ref!==void 0&&(i=t.ref);for(n in t)Fn.call(t,n)&&!An.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:Tn,type:e,key:l,ref:i,props:a,_owner:In.current}}bt.Fragment=Un;bt.jsx=Ir;bt.jsxs=Ir;Dr.exports=bt;var eo=Dr.exports;/** 18 * @remix-run/router v1.20.0 19 * 20 * Copyright (c) Remix Software Inc. 21 * 22 * This source code is licensed under the MIT license found in the 23 * LICENSE.md file in the root directory of this source tree. 24 * 25 * @license MIT 26 */function z(){return z=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},z.apply(this,arguments)}var V;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(V||(V={}));const ur="popstate";function to(e){e===void 0&&(e={});function t(n,a){let{pathname:l,search:i,hash:c}=n.location;return Xe("",{pathname:l,search:i,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(n,a){return typeof a=="string"?a:Qe(a)}return kn(t,r,null,e)}function j(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ne(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Nn(){return Math.random().toString(36).substr(2,8)}function cr(e,t){return{usr:e.state,key:e.key,idx:t}}function Xe(e,t,r,n){return r===void 0&&(r=null),z({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ee(t):t,{state:r,key:t&&t.key||n||Nn()})}function Qe(e){let{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 Ee(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function kn(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:l=!1}=n,i=a.history,c=V.Pop,u=null,f=y();f==null&&(f=0,i.replaceState(z({},i.state,{idx:f}),""));function y(){return(i.state||{idx:null}).idx}function p(){c=V.Pop;let M=y(),B=M==null?null:M-f;f=M,u&&u({action:c,location:x.location,delta:B})}function v(M,B){c=V.Push;let L=Xe(x.location,M,B);f=y()+1;let J=cr(L,f),Y=x.createHref(L);try{i.pushState(J,"",Y)}catch(le){if(le instanceof DOMException&&le.name==="DataCloneError")throw le;a.location.assign(Y)}l&&u&&u({action:c,location:x.location,delta:1})}function g(M,B){c=V.Replace;let L=Xe(x.location,M,B);f=y();let J=cr(L,f),Y=x.createHref(L);i.replaceState(J,"",Y),l&&u&&u({action:c,location:x.location,delta:0})}function C(M){let B=a.location.origin!=="null"?a.location.origin:a.location.href,L=typeof M=="str
26ing"?M:Qe(M);return L=L.replace(/ $/,"%20"),j(B,"No window.location.(origin|href) available to create URL for href: "+L),new URL(L,B)}let x={get action(){return c},get location(){return e(a,i)},listen(M){if(u)throw new Error("A history only accepts one active listener");return a.addEventListener(ur,p),u=M,()=>{a.removeEventListener(ur,p),u=null}},createHref(M){return t(a,M)},createURL:C,encodeLocation(M){let B=C(M);return{pathname:B.pathname,search:B.search,hash:B.hash}},push:v,replace:g,go(M){return i.go(M)}};return x}var A;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(A||(A={}));const Bn=new Set(["lazy","caseSensitive","path","id","index","children"]);function zn(e){return e.index===!0}function yt(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,l)=>{let i=[...r,String(l)],c=typeof a.id=="string"?a.id:i.join("-");if(j(a.index!==!0||!a.children,"Cannot specify children on an index route"),j(!n[c],'Found a route id collision on id "'+c+`". Route id's must be globally unique within Data Router usages`),zn(a)){let u=z({},a,t(a),{id:c});return n[c]=u,u}else{let u=z({},a,t(a),{id:c,children:void 0});return n[c]=u,a.children&&(u.children=yt(a.children,t,i,n)),u}})}function _e(e,t,r){return r===void 0&&(r="/"),mt(e,t,r,!1)}function mt(e,t,r,n){let a=typeof t=="string"?Ee(t):t,l=Ze(a.pathname||"/",r);if(l==null)return null;let i=Nr(e);$n(i);let c=null;for(let u=0;c==null&&u<i.length;++u){let f=Zn(l);c=qn(i[u],f,n)}return c}function Ar(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}function Nr(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(l,i,c)=>{let u={relativePath:c===void 0?l.path||"":c,caseSensitive:l.caseSensitive===!0,childrenIndex:i,route:l};u.relativePath.startsWith("/")&&(j(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let f=me([n,u.relativePath]),y=r.concat(u);l.children&&l.children.length>0&&(j(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),Nr(l.children,t,y,f)),!(l.path==null&&!l.index)&&t.push({path:f,score:Gn(f,l.index),routesMeta:y})};return e.forEach((l,i)=>{var c;if(l.path===""||!((c=l.path)!=null&&c.includes("?")))a(l,i);else for(let u of kr(l.path))a(l,i,u)}),t}function kr(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),l=r.replace(/\?$/,"");if(n.length===0)return a?[l,""]:[l];let i=kr(n.join("/")),c=[];return c.push(...i.map(u=>u===""?l:[l,u].join("/"))),a&&c.push(...i),c.map(u=>e.startsWith("/")&&u===""?"/":u)}function $n(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Xn(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Hn=/^:[\w-]+$/,Wn=3,Vn=2,Kn=1,Jn=10,Yn=-2,dr=e=>e==="*";function Gn(e,t){let r=e.split("/"),n=r.length;return r.some(dr)&&(n+=Yn),t&&(n+=Vn),r.filter(a=>!dr(a)).reduce((a,l)=>a+(Hn.test(l)?Wn:l===""?Kn:Jn),n)}function Xn(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function qn(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},l="/",i=[];for(let c=0;c<n.length;++c){let u=n[c],f=c===n.length-1,y=l==="/"?t:t.slice(l.length)||"/",p=fr({path:u.relativePath,caseSensitive:u.caseSensitive,end:f},y),v=u.route;if(!p&&f&&r&&!n[n.length-1].route.index&&(p=fr({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},y)),!p)return null;
26Object.assign(a,p.params),i.push({params:a,pathname:me([l,p.pathname]),pathnameBase:ra(me([l,p.pathnameBase])),route:v}),p.pathnameBase!=="/"&&(l=me([l,p.pathnameBase]))}return i}function fr(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Qn(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let l=a[0],i=l.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:n.reduce((f,y,p)=>{let{paramName:v,isOptional:g}=y;if(v==="*"){let x=c[p]||"";i=l.slice(0,l.length-x.length).replace(/(.)\/+$/,"$1")}const C=c[p];return g&&!C?f[v]=void 0:f[v]=(C||"").replace(/%2F/g,"/"),f},{}),pathname:l,pathnameBase:i,pattern:e}}function Qn(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Ne(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,c,u)=>(n.push({paramName:c,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function Zn(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ne(!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 Ze(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function ea(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?Ee(e):e;return{pathname:r?r.startsWith("/")?r:ta(r,t):t,search:na(n),hash:aa(a)}}function ta(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function _t(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 Br(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Bt(e,t){let r=Br(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function zt(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=Ee(e):(a=z({},e),j(!a.pathname||!a.pathname.includes("?"),_t("?","pathname","search",a)),j(!a.pathname||!a.pathname.includes("#"),_t("#","pathname","hash",a)),j(!a.search||!a.search.includes("#"),_t("#","search","hash",a)));let l=e===""||a.pathname==="",i=l?"/":a.pathname,c;if(i==null)c=r;else{let p=t.length-1;if(!n&&i.startsWith("..")){let v=i.split("/");for(;v[0]==="..";)v.shift(),p-=1;a.pathname=v.join("/")}c=p>=0?t[p]:"/"}let u=ea(a,c),f=i&&i!=="/"&&i.endsWith("/"),y=(l||i===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(f||y)&&(u.pathname+="/"),u}const me=e=>e.join("/").replace(/\/\/+/g,"/"),ra=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),na=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,aa=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class oa{constructor(t,r){this.type="DataWithResponseInit",this.data=t,this.init=r||null}}function ro(e,t){return new oa(e,typeof t=="number"?{status:t}:t)}class jt extends Error{}class no{constructor(t,r){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],j(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let n;this.abortPromise=new Promise((l,i)=>n=i),this.controller=new AbortController;let a=()=>n(new jt("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",a),this.controller.signal.addEventListener("abort",a),this.data=Object.entries(t).reduce((l,i)=>{let[c,u]=i;return Object.assign(l,{[c]:this.trackPromise(c,u)})},{}),this.done&&this.unlistenAbortSignal(),this.init=r}trackPromise(t,r){if(!(r instanceof Promise))return r;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let n=Promise.race([r,this.abortPromise]).then(a=>this.onSettle(n,t,void 0,a),a=>this.onSettle(n,t,a));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(t,r,n,a){if(this.controller.signal.aborted&&n instanceof jt)return this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>n}),Promise.reject(n);if(this.pendingKeysSet.delete(r),this.done&&this.unlistenAbortSignal(),n===void 0&&a===void 0){let l=new Error('Deferred data for key "'+r+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(t,"_error",{get:()=>l}
26),this.emit(!1,r),Promise.reject(l)}return a===void 0?(Object.defineProperty(t,"_error",{get:()=>n}),this.emit(!1,r),Promise.reject(n)):(Object.defineProperty(t,"_data",{get:()=>a}),this.emit(!1,r),a)}emit(t,r){this.subscribers.forEach(n=>n(t,r))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,r)=>this.pendingKeysSet.delete(r)),this.emit(!0)}async resolveData(t){let r=!1;if(!this.done){let n=()=>this.cancel();t.addEventListener("abort",n),r=await new Promise(a=>{this.subscribe(l=>{t.removeEventListener("abort",n),(l||this.done)&&a(l)})})}return r}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return j(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,r)=>{let[n,a]=r;return Object.assign(t,{[n]:la(a)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function ia(e){return e instanceof Promise&&e._tracked===!0}function la(e){if(!ia(e))return e;if(e._error)throw e._error;return e._data}const ao=function(t,r){r===void 0&&(r=302);let n=r;typeof n=="number"?n={status:n}:typeof n.status>"u"&&(n.status=302);let a=new Headers(n.headers);return a.set("Location",t),new Response(null,z({},n,{headers:a}))};class Ot{constructor(t,r,n,a){a===void 0&&(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 wt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const zr=["post","put","patch","delete"],sa=new Set(zr),ua=["get",...zr],ca=new Set(ua),da=new Set([301,302,303,307,308]),fa=new Set([307,308]),Mt={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ha={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Je={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},$t=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pa=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),$r="remix-router-transitions";function oo(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;j(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let o=e.detectErrorBoundary;a=s=>({hasErrorBoundary:o(s)})}else a=pa;let l={},i=yt(e.routes,a,void 0,l),c,u=e.basename||"/",f=e.dataStrategy||ga,y=e.patchRoutesOnNavigation,p=z({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),v=null,g=new Set,C=null,x=null,M=null,B=e.hydrationData!=null,L=_e(i,e.history.location,u),J=null;if(L==null&&!y){let o=te(404,{pathname:e.history.location.pathname}),{matches:s,route:d}=Pr(i);L=s,J={[d.id]:o}}L&&!e.hydrationData&<(L,i,e.history.location.pathname).active&&(L=null);let Y;if(L)if(L.some(o=>o.route.lazy))Y=!1;else if(!L.some(o=>o.route.loader))Y=!0;else if(p.v7_partialHydration){let o=e.hydrationData?e.hydrationData.loaderData:null,s=e.hydrationData?e.hydrationData.errors:null;if(s){let d=L.findIndex(m=>s[m.route.id]!==void 0);Y=L.slice(0,d+1).every(m=>!Ut(m.route,o,s))}else Y=L.every(d=>!Ut(d.route,o,s))}else Y=e.hydrationData!=null;else if(Y=!1,L=[],p.v7_partialHydration){let o=lt(null,i,e.history.location.pathname);o.active&&o.matches&&(L=o.matches)}let le,h={historyAction:e.history.action,location:e.history.location,matches:L,initialized:Y,navigation:Mt,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||J,fetchers:new Map,blockers:new Map},Z=V.Pop,K=!1,N,ee=!1,re=new Map,ue=null,ae=!1,ce=!1,tt=[],rt=new Set,G=new Map,nt=0,ze=-1,je=new Map,de=new Set,Oe=new Map,$e=new Map,fe=new Set,Pe=new Map,xe=new Map,at;function Xr(){if(v=e.history.listen(o=>{let{action:s,location:d,delta:m}=o;if(at){at(),at=void 0;return}Ne(xe.size===0||m!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let w=rr({currentLocation:h.location,nextLocation:d,historyAction:s});if(w&&m!=null){let S=new Promise(_=>{at=_});e.history.go(m*-1),it(w,{state:"blocked",location:d,proceed(){it(w,{state:"proceeding",proceed:void 0,reset:void 0,location:d}),S.then(()=>e.history.go(m))},reset(){let _=new Map(h.blockers);_.set(w,Je),q({blockers:_})}});return}return Se(s,d)}),r){Oa(t,re);let o=()=>Ta(t,re);t.addEventListener("pagehide",o),ue=()=>t.removeEventListener("pagehide",o)}return h.initialized||Se(V.Pop,h.location,{initialHydration:!0}),le}function qr(){v&&v(),ue&&ue(),g.clear(),N&&N.abort(),h.fetchers.forEac
vendor: 36,487 bytes, lines 26-36
26h((o,s)=>ot(s)),h.blockers.forEach((o,s)=>tr(s))}function Qr(o){return g.add(o),()=>g.delete(o)}function q(o,s){s===void 0&&(s={}),h=z({},h,o);let d=[],m=[];p.v7_fetcherPersist&&h.fetchers.forEach((w,S)=>{w.state==="idle"&&(fe.has(S)?m.push(S):d.push(S))}),[...g].forEach(w=>w(h,{deletedFetchers:m,viewTransitionOpts:s.viewTransitionOpts,flushSync:s.flushSync===!0})),p.v7_fetcherPersist&&(d.forEach(w=>h.fetchers.delete(w)),m.forEach(w=>ot(w)))}function Te(o,s,d){var m,w;let{flushSync:S}=d===void 0?{}:d,_=h.actionData!=null&&h.navigation.formMethod!=null&&ie(h.navigation.formMethod)&&h.navigation.state==="loading"&&((m=o.state)==null?void 0:m._isRedirect)!==!0,R;s.actionData?Object.keys(s.actionData).length>0?R=s.actionData:R=null:_?R=h.actionData:R=null;let P=s.loaderData?Er(h.loaderData,s.loaderData,s.matches||[],s.errors):h.loaderData,E=h.blockers;E.size>0&&(E=new Map(E),E.forEach((U,X)=>E.set(X,Je)));let D=K===!0||h.navigation.formMethod!=null&&ie(h.navigation.formMethod)&&((w=o.state)==null?void 0:w._isRedirect)!==!0;c&&(i=c,c=void 0),ae||Z===V.Pop||(Z===V.Push?e.history.push(o,o.state):Z===V.Replace&&e.history.replace(o,o.state));let T;if(Z===V.Pop){let U=re.get(h.location.pathname);U&&U.has(o.pathname)?T={currentLocation:h.location,nextLocation:o}:re.has(o.pathname)&&(T={currentLocation:o,nextLocation:h.location})}else if(ee){let U=re.get(h.location.pathname);U?U.add(o.pathname):(U=new Set([o.pathname]),re.set(h.location.pathname,U)),T={currentLocation:h.location,nextLocation:o}}q(z({},s,{actionData:R,loaderData:P,historyAction:Z,location:o,initialized:!0,navigation:Mt,revalidation:"idle",restoreScrollPosition:ar(o,s.matches||h.matches),preventScrollReset:D,blockers:E}),{viewTransitionOpts:T,flushSync:S===!0}),Z=V.Pop,K=!1,ee=!1,ae=!1,ce=!1,tt=[]}async function Yt(o,s){if(typeof o=="number"){e.history.go(o);return}let d=Tt(h.location,h.matches,u,p.v7_prependBasename,o,p.v7_relativeSplatPath,s==null?void 0:s.fromRouteId,s==null?void 0:s.relative),{path:m,submission:w,error:S}=hr(p.v7_normalizeFormMethod,!1,d,s),_=h.location,R=Xe(h.location,m,s&&s.state);R=z({},R,e.history.encodeLocation(R));let P=s&&s.replace!=null?s.replace:void 0,E=V.Push;P===!0?E=V.Replace:P===!1||w!=null&&ie(w.formMethod)&&w.formAction===h.location.pathname+h.location.search&&(E=V.Replace);let D=s&&"preventScrollReset"in s?s.preventScrollReset===!0:void 0,T=(s&&s.flushSync)===!0,U=rr({currentLocation:_,nextLocation:R,historyAction:E});if(U){it(U,{state:"blocked",location:R,proceed(){it(U,{state:"proceeding",proceed:void 0,reset:void 0,location:R}),Yt(o,s)},reset(){let X=new Map(h.blockers);X.set(U,Je),q({blockers:X})}});return}return await Se(E,R,{submission:w,pendingError:S,preventScrollReset:D,replace:s&&s.replace,enableViewTransition:s&&s.viewTransition,flushSync:T})}function Zr(){if(Pt(),q({revalidation:"loading"}),h.navigation.state!=="submitting"){if(h.navigation.state==="idle"){Se(h.historyAction,h.location,{startUninterruptedRevalidation:!0});return}Se(Z||h.historyAction,h.navigation.location,{overrideNavigation:h.navigation,enableViewTransition:ee===!0})}}async function Se(o,s,d){N&&N.abort(),N=null,Z=o,ae=(d&&d.startUninterruptedRevalidation)===!0,cn(h.location,h.matches),K=(d&&d.preventScrollReset)===!0,ee=(d&&d.enableViewTransition)===!0;let m=c||i,w=d&&d.overrideNavigation,S=_e(m,s,u),_=(d&&d.flushSync)===!0,R=lt(S,m,s.pathname);if(R.active&&R.matches&&(S=R.matches),!S){let{error:k,notFoundMatches:I,route:$}=xt(s.pathname);Te(s,{matches:I,loaderData:{},errors:{[$.id]:k}},{flushSync:_});return}if(h.initialized&&!ce&&xa(h.location,s)&&!(d&&d.submission&&ie(d.submission.formMethod))){Te(s,{matches:S},{flushSync:_});return}N=new AbortController;let P=Ae(e.history,s,N.signal,d&&d.submission),E;if(d&&d.pendingError)E=[Me(S).route.id,{type:A.error,error:d.pendingError}];else if(d&&d.submission&&ie(d.submission.formMethod)){let k=await en(P,s,d.submission,S,R.active,{replace:d.replace,flushSync:_});if(k.shortCircuited)return;if(k.pendingActionResult){let[I,$]=k.pendingActionResult;if(ne($)&&wt($.error)&&$.error.status===404){N=null,Te(s,{matches:k.matches,loaderData:{},errors:{[I]:$.error}});return}}S=k.matches||S,E=k.pendingActionResult,w=Lt(s,d.submission),_=!1,R.active=!1,P=Ae(e.history,P.url,P.signal)}let{shortCircuited:D,matches:T,loaderData:U,errors:X}=await tn(P,s,S,R.active,w,d&&d.submission,d&&d.fetcherSubmission,d&&d.replace,d&&d.initialHydration===!0,_,E);D||(N=null,Te(s,z({matches:T||S},Rr(E),{loaderData:U,errors:X})))}async function en(o,s,d,m,w,S){S===void 0&&(S={}),Pt();let _=La(s,d);if(q({navigation:_},{flushSync:S.flushSync===!0}),w){let E=await st(m,s.pathname,o.signal);if(E.type==="aborted")return{shortCircuited:!0};if(E.type==="error"){let D=Me(E.partialMatches).route.id;return{matches:E.partialMatches,pendingActionResult:[D,{type:A.error,error:E.error}]}}else if(E.matches)m=E.matches;else{let{notFoundMatches:D,error:T,route:U}=xt(s.pathname);return{matches:D,pendingActionResult:[U.id,{type:A.error,error:T}]}}}let R,P=Ge(m,s);if(!P.route.action&&!P.route.lazy)R={type:A.error,error:te(405,{method:o.method,pathname:s.pathname,routeId:P.route.id})};else if(R=(await He("action",h,o,[P],m,null))[P.route.id],o.signal.aborted)return{shortCircuited:!0};if(Le(R)){let E;return S&&S.replace!=null?E=S.replace:E=gr(R.response.headers.get("Location"),new URL(o.url),u)===h.location.pathname+h.location.search,await De(o,R,!0,{submission:d,replace:E}),{shortCircuited:!0}}if(we(R))throw te(400,{type:"defer-action"});if(ne(R)){let E=Me(m,P.route.id);return(S&&S.replace)!==!0&&(Z=V.Push),{matches:m,pendingActionResult:[E.route.id,R]}}return{matches:m,pendingActionResult:[P.route.id,R]}}async function tn(o,s,d,m,w,S,_,R,P,E,D){let T=w||Lt(s,S),U=S||_||Sr(T),X=!ae&&(!p.v7_partialHydration||!P);if(m){if(X){let H=Gt(D);q(z({navigation:T},H!==void 0?{actionData:H}:{}),{flushSync:E})}let F=await st(d,s.pathname,o.signal);if(F.type==="aborted")return{shortCircuited:!0};if(F.type==="error"){let H=Me(F.partialMatches).route.id;return{matches:F.partialMatches,loaderData:{},errors:{[H]:F.error}}}else if(F.matches)d=F.matches;else{let{error:H,notFoundMatches:Fe,route:Ke}=xt(s.pathname);return{matches:Fe,loaderData:{},errors:{[Ke.id]:H}}}}let k=c||i,[I,$]=mr(e.history,h,d,U,s,p.v7_partialHydration&&P===!0,p.v7_skipActionErrorRevalidation,ce,tt,rt,fe,Oe,de,k,u,D);if(St(F=>!(d&&d.some(H=>H.route.id===F))||I&&I.some(H=>H.route.id===F)),ze=++nt,I.length===0&&$.length===0){let F=Zt();return Te(s,z({matches:d,loaderData:{},errors:D&&ne(D[1])?{[D[0]]:D[1].error}:null},Rr(D),F?{fetchers:new Map(h.fetchers)}:{}),{flushSync:E}),{shortCircuited:!0}}if(X){let F={};if(!m){F.navigation=T;let H=Gt(D);H!==void 0&&(F.actionData=H)}$.length>0&&(F.fetchers=rn($)),q(F,{flushSync:E})}$.forEach(F=>{ge(F.key),F.controller&&G.set(F.key,F.controller)});let Ue=()=>$.forEach(F=>ge(F.key));N&&N.signal.addEventListener("abort",Ue);let{loaderResults:We,fetcherResults:pe}=await Xt(h,d,I,$,o);if(o.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",Ue),$.forEach(F=>G.delete(F.key));let se=ft(We);if(se)return await De(o,se.result,!0,{replace:R}),{shortCircuited:!0};if(se=ft(pe),se)return de.add(se.key),await De(o,se.result,!0,{replace:R}),{shortCircuited:!0};let{loaderData:Dt,errors:Ve}=wr(h,d,We,D,$,pe,Pe);Pe.forEach((F,H)=>{F.subscribe(Fe=>{(Fe||F.done)&&Pe.delete(H)})}),p.v7_partialHydration&&P&&h.errors&&(Ve=z({},h.errors,Ve));let Ce=Zt(),ut=er(ze),ct=Ce||ut||$.length>0;return z({matches:d,loaderData:Dt,errors:Ve},ct?{fetchers:new Map(h.fetchers)}:{})}function Gt(o){if(o&&!ne(o[1]))return{[o[0]]:o[1].data};if(h.actionData)return Object.keys(h.actionData).length===0?null:h.actionData}function rn(o){return o.forEach(s=>{let d=h.fetchers.get(s.key),m=Ye(void 0,d?d.data:void 0);h.fetchers.set(s.key,m)}),new Map(h.fetchers)}function nn(o,s,d,m){if(n)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.");ge(o);let w=(m&&m.flushSync)===!0,S=c||i,_=Tt(h.location,h.matches,u,p.v7_prependBasename,d,p.v7_relativeSplatPath,s,m==null?void 0:m.relative),R=_e(S,_,u),P=lt(R,S,_);if(P.active&&P.matches&&(R=P.matches),!R){he(o,s,te(404,{pathname:_}),{flushSync:w});return}let{path:E,submission:D,error:T}=hr(p.v7_normalizeFormMethod,!0,_,m);if(T){he(o,s,T,{flushSync:w});return}let U=Ge(R,E),X=(m&&m.preventScrollReset)===!0;if(D&&ie(D.formMethod)){an(o,s,E,U,R,P.active,w,X,D);return}Oe.set(o,{routeId:s,path:E}),on(o,s,E,U,R,P.active,w,X,D)}async function an(o,s,d,m,w,S,_,R,P){Pt(),Oe.delete(o);function E(W){if(!W.route.action&&!W.route.lazy){let Ie=te(405,{method:P.formMethod,pathname:d,routeId:s});return he(o,s,Ie,{flushSync:_}),!0}return!1}if(!S&&E(m))return;let D=h.fetchers.get(o);ve(o,ja(P,D),{flushSync:_});let T=new AbortController,U=Ae(e.history,d,T.signal,P);if(S){let W=await st(w,d,U.signal);if(W.type==="aborted")return;if(W.type==="error"){he(o,s,W.error,{flushSync:_});return}else if(W.matches){if(w=W.matches,m=Ge(w,d),E(m))return}else{he(o,s,te(404,{pathname:d}),{flushSync:_});return}}G.set(o,T);let X=nt,I=(await He("action",h,U,[m],w,o))[m.route.id];if(U.signal.aborted){G.get(o)===T&&G.delete(o);return}if(p.v7_fetcherPersist&&fe.has(o)){if(Le(I)||ne(I)){ve(o,be(void 0));return}}else{if(Le(I))if(G.delete(o),ze>X){ve(o,be(void 0));return}else return de.add(o),ve(o,Ye(P)),De(U,I,!1,{fetcherSubmission:P,preventScrollReset:R});if(ne(I)){he(o,s,I.error);return}}if(we(I))throw te(400,{type:"defer-action"});let $=h.navigation.location||h.location,Ue=Ae(e.history,$,T.signal),We=c||i,pe=h.navigation.state!=="idle"?_e(We,h.navigation.location,u):h.matches;j(pe,"Didn't find any matches after fetcher action");let se=++nt;je.set(o,se);let Dt=Ye(P,I.data);h.fetchers.set(o,Dt);let[Ve,Ce]=mr(e.history,h,pe,P,$,!1,p.v7_skipActionErrorRevalidation,ce,tt,rt,fe,Oe,de,We,u,[m.route.id,I]);Ce.filter(W=>W.key!==o).forEach(W=>{let Ie=W.key,or=h.fetchers.get(Ie),hn=Ye(void 0,or?or.data:void 0);h.fetchers.set(Ie,hn),ge(Ie),W.controller&&G.set(Ie,W.controller)}),q({fetchers:new Map(h.fetchers)});let ut=()=>Ce.forEach(W=>ge(W.key));T.signal.addEventListener("abort",ut);let{loaderResults:ct,fetcherResults:F}=await Xt(h,pe,Ve,Ce,Ue);if(T.signal.aborted)return;T.signal.removeEventListener("abort",ut),je.delete(o),G.delete(o),Ce.forEach(W=>G.delete(W.key));let H=ft(ct);if(H)return De(Ue,H.result,!1,{preventScrollReset:R});if(H=ft(F),H)return de.add(H.key),De(Ue,H.result,!1,{preventScrollReset:R});let{loaderData:Fe,errors:Ke}=wr(h,pe,ct,void 0,Ce,F,Pe);if(h.fetchers.has(o)){let W=be(I.data);h.fetchers.set(o,W)}er(se),h.navigation.state==="loading"&&se>ze?(j(Z,"Expected pending action"),N&&N.abort(),Te(h.navigation.location,{matches:pe,loaderData:Fe,errors:Ke,fetchers:new Map(h.fetchers)})):(q({errors:Ke,loaderData:Er(h.loaderData,Fe,pe,Ke),fetchers:new Map(h.fetchers)}),ce=!1)}async function on(o,s,d,m,w,S,_,R,P){let E=h.fetchers.get(o);ve(o,Ye(P,E?E.data:void 0),{flushSync:_});let D=new AbortController,T=Ae(e.history,d,D.signal);if(S){let I=await st(w,d,T.signal);if(I.type==="aborted")return;if(I.type==="error"){he(o,s,I.error,{flushSync:_});return}else if(I.matches)w=I.matches,m=Ge(w,d);else{he(o,s,te(404,{pathname:d}),{flushSync:_});return}}G.set(o,D);let U=nt,k=(await He("loader",h,T,[m],w,o))[m.route.id];if(we(k)&&(k=await Ht(k,T.signal,!0)||k),G.get(o)===D&&G.delete(o),!T.signal.aborted){if(fe.has(o)){ve(o,be(void 0));return}if(Le(k))if(ze>U){ve(o,be(void 0));return}else{de.add(o),await De(T,k,!1,{preventScrollReset:R});return}if(ne(k)){he(o,s,k.error);return}j(!we(k),"Unhandled fetcher deferred data"),ve(o,be(k.data))}}async function De(o,s,d,m){let{submission:w,fetcherSubmission:S,preventScrollReset:_,replace:R}=m===void 0?{}:m;s.response.headers.has("X-Remix-Revalidate")&&(ce=!0);let P=s.response.headers.get("Location");j(P,"Expected a Location header on the redirect Response"),P=gr(P,new URL(o.url),u);let E=Xe(h.location,P,{_isRedirect:!0});if(r){let I=!1;if(s.response.headers.has("X-Remix-Reload-Document"))I=!0;else if($t.test(P)){const $=e.history.createURL(P);I=$.origin!==t.location.origin||Ze($.pathname,u)==null}if(I){R?t.location.replace(P):t.location.assign(P);return}}N=null;let D=R===!0||s.response.headers.has("X-Remix-Replace")?V.Replace:V.Push,{formMethod:T,formAction:U,formEncType:X}=h.navigation;!w&&!S&&T&&U&&X&&(w=Sr(h.navigation));let k=w||S;if(fa.has(s.response.status)&&k&&ie(k.formMethod))await Se(D,E,{submission:z({},k,{formAction:P}),preventScrollReset:_||K,enableViewTransition:d?ee:void 0});else{let I=Lt(E,w);await Se(D,E,{overrideNavigation:I,fetcherSubmission:S,preventScrollReset:_||K,enableViewTransition:d?ee:void 0})}}async function He(o,s,d,m,w,S){let _,R={};try{_=await ba(f,o,s,d,m,w,S,l,a)}catch(P){return m.forEach(E=>{R[E.route.id]={type:A.error,error:P}}),R}for(let[P,E]of Object.entries(_))if(Sa(E)){let D=E.result;R[P]={type:A.redirect,response:Ra(D,d,P,w,u,p.v7_relativeSplatPath)}}else R[P]=await Ea(E);return R}async function Xt(o,s,d,m,w){let S=o.matches,_=He("loader",o,w,d,s,null),R=Promise.all(m.map(async D=>{if(D.matches&&D.match&&D.controller){let U=(await He("loader",o,Ae(e.history,D.path,D.controller.signal),[D.match],D.matches,D.key))[D.match.route.id];return{[D.key]:U}}else return Promise.resolve({[D.key]:{type:A.error,error:te(404,{pathname:D.path})}})})),P=await _,E=(await R).reduce((D,T)=>Object.assign(D,T),{});return await Promise.all([_a(s,P,w.signal,S,o.loaderData),Ma(s,E,m)]),{loaderResults:P,fetcherResults:E}}function Pt(){ce=!0,tt.push(...St()),Oe.forEach((o,s)=>{G.has(s)&&rt.add(s),ge(s)})}function ve(o,s,d){d===void 0&&(d={}),h.fetchers.set(o,s),q({fetchers:new Map(h.fetchers)},{flushSync:(d&&d.flushSync)===!0})}function he(o,s,d,m){m===void 0&&(m={});let w=Me(h.matches,s);ot(o),q({errors:{[w.route.id]:d},fetchers:new Map(h.fetchers)},{flushSync:(m&&m.flushSync)===!0})}function qt(o){return p.v7_fetcherPersist&&($e.set(o,($e.get(o)||0)+1),fe.has(o)&&fe.delete(o)),h.fetchers.get(o)||ha}function ot(o){let s=h.fetchers.get(o);G.has(o)&&!(s&&s.state==="loading"&&je.has(o))&&ge(o),Oe.delete(o),je.delete(o),de.delete(o),fe.delete(o),rt.delete(o),h.fetchers.delete(o)}function ln(o){if(p.v7_fetcherPersist){let s=($e.get(o)||0)-1;s<=0?($e.delete(o),fe.add(o)):$e.set(o,s)}else ot(o);q({fetchers:new Map(h.fetchers)})}function ge(o){let s=G.get(o);s&&(s.abort(),G.delete(o))}function Qt(o){for(let s of o){let d=qt(s),m=be(d.data);h.fetchers.set(s,m)}}function Zt(){let o=[],s=!1;for(let d of de){let m=h.fetchers.get(d);j(m,"Expected fetcher: "+d),m.state==="loading"&&(de.delete(d),o.push(d),s=!0)}return Qt(o),s}function er(o){let s=[];for(let[d,m]of je)if(m<o){let w=h.fetchers.get(d);j(w,"Expected fetcher: "+d),w.state==="loading"&&(ge(d),je.delete(d),s.push(d))}return Qt(s),s.length>0}function sn(o,s){let d=h.blockers.get(o)||Je;return xe.get(o)!==s&&xe.set(o,s),d}function tr(o){h.blockers.delete(o),xe.delete(o)}function it(o,s){let d=h.blockers.get(o)||Je;j(d.state==="unblocked"&&s.state==="blocked"||d.state==="blocked"&&s.state==="blocked"||d.state==="blocked"&&s.state==="proceeding"||d.state==="blocked"&&s.state==="unblocked"||d.state==="proceeding"&&s.state==="unblocked","Invalid blocker state transition: "+d.state+" -> "+s.state);let m=new Map(h.blockers);m.set(o,s),q({blockers:m})}function rr(o){let{currentLocation:s,nextLocation:d,historyAction:m}=o;if(xe.size===0)return;xe.size>1&&Ne(!1,"A router only supports one blocker at a time");let w=Array.from(xe.entries()),[S,_]=w[w.length-1],R=h.blockers.get(S);if(!(R&&R.state==="proceeding")&&_({currentLocation:s,nextLocation:d,historyAction:m}))return S}function xt(o){let s=te(404,{pathname:o}),d=c||i,{matches:m,route:w}=Pr(d);return St(),{notFoundMatches:m,route:w,error:s}}function St(o){let s=[];return Pe.forEach((d,m)=>{(!o||o(m))&&(d.cancel(),s.push(m),Pe.delete(m))}),s}function un(o,s,d){if(C=o,M=s,x=d||null,!B&&h.navigation===Mt){B=!0;let m=ar(h.location,h.matches);m!=null&&q({restoreScrollPosition:m})}return()=>{C=null,M=null,x=null}}function nr(o,s){return x&&x(o,s.map(m=>Ar(m,h.loaderData)))||o.key}function cn(o,s){if(C&&M){let d=nr(o,s);C[d]=M()}}function ar(o,s){if(C){let d=nr(o,s),m=C[d];if(typeof m=="number")return m}return null}function lt(o,s,d){if(y)if(o){if(Object.keys(o[0].params).length>0)return{active:!0,matches:mt(s,d,u,!0)}}else return{active:!0,matches:mt(s,d,u,!0)||[]};return{active:!1,matches:null}}async function st(o,s,d){if(!y)return{type:"success",matches:o};let m=o;for(;;){let w=c==null,S=c||i,_=l;try{await y({path:s,matches:m,patch:(E,D)=>{d.aborted||vr(E,D,S,_,a)}})}catch(E){return{type:"error",error:E,partialMatches:m}}finally{w&&!d.aborted&&(i=[...i])}if(d.aborted)return{type:"aborted"};let R=_e(S,s,u);if(R)return{type:"success",matches:R};let P=mt(S,s,u,!0);if(!P||m.length===P.length&&m.every((E,D)=>E.route.id===P[D].route.id))return{type:"success",matches:null};m=P}}function dn(o){l={},c=yt(o,a,void 0,l)}function fn(o,s){let d=c==null;vr(o,s,c||i,l,a),d&&(i=[...i],q({}))}return le={get basename(){return u},get future(){return p},get state(){return h},get routes(){return i},get window(){return t},initialize:Xr,subscribe:Qr,enableScrollRestoration:un,navigate:Yt,fetch:nn,revalidate:Zr,createHref:o=>e.history.createHref(o),encodeLocation:o=>e.history.encodeLocation(o),getFetcher:qt,deleteFetcher:ln,dispose:qr,getBlocker:sn,deleteBlocker:tr,patchRoutes:fn,_internalFetchControllers:G,_internalActiveDeferreds:Pe,_internalSetRoutes:dn},le}function ma(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Tt(e,t,r,n,a,l,i,c){let u,f;if(i){u=[];for(let p of t)if(u.push(p),p.route.id===i){f=p;break}}else u=t,f=t[t.length-1];let y=zt(a||".",Bt(u,l),Ze(e.pathname,r)||e.pathname,c==="path");if(a==null&&(y.search=e.search,y.hash=e.hash),(a==null||a===""||a===".")&&f){let p=Wt(y.search);if(f.route.index&&!p)y.search=y.search?y.search.replace(/^\?/,"?index&"):"?index";else if(!f.route.index&&p){let v=new URLSearchParams(y.search),g=v.getAll("index");v.delete("index"),g.filter(x=>x).forEach(x=>v.append("index",x));let C=v.toString();y.search=C?"?"+C:""}}return n&&r!=="/"&&(y.pathname=y.pathname==="/"?r:me([r,y.pathname])),Qe(y)}function hr(e,t,r,n){if(!n||!ma(n))return{path:r};if(n.formMethod&&!Ca(n.formMethod))return{path:r,error:te(405,{method:n.formMethod})};let a=()=>({path:r,error:te(400,{type:"invalid-body"})}),l=n.formMethod||"get",i=e?l.toUpperCase():l.toLowerCase(),c=Vr(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!ie(i))return a();let v=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((g,C)=>{let[x,M]=C;return""+g+x+"="+M+` 27`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:v}}}else if(n.formEncType==="application/json"){if(!ie(i))return a();try{let v=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:c,formEncType:n.formEncType,formData:void 0,json:v,text:void 0}}}catch{return a()}}}j(typeof FormData=="function","FormData is not available in this environment");let u,f;if(n.formData)u=Ft(n.formData),f=n.formData;else if(n.body instanceof FormData)u=Ft(n.body),f=n.body;else if(n.body instanceof URLSearchParams)u=n.body,f=br(u);else if(n.body==null)u=new URLSearchParams,f=new FormData;else try{u=new URLSearchParams(n.body),f=br(u)}catch{return a()}let y={formMethod:i,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:f,json:void 0,text:void 0};if(ie(y.formMethod))return{path:r,submission:y};let p=Ee(r);return t&&p.search&&Wt(p.search)&&u.append("index",""),p.search="?"+u,{path:Qe(p),submission:y}}function pr(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(a=>a.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function mr(e,t,r,n,a,l,i,c,u,f,y,p,v,g,C,x){let M=x?ne(x[1])?x[1].error:x[1].data:void 0,B=e.createURL(t.location),L=e.createURL(a),J=r;l&&t.errors?J=pr(r,Object.keys(t.errors)[0],!0):x&&ne(x[1])&&(J=pr(r,x[0]));let Y=x?x[1].statusCode:void 0,le=i&&Y&&Y>=400,h=J.filter((K,N)=>{let{route:ee}=K;if(ee.lazy)return!0;if(ee.loader==null)return!1;if(l)return Ut(ee,t.loaderData,t.errors);if(ya(t.loaderData,t.matches[N],K)||u.some(ae=>ae===K.route.id))return!0;let re=t.matches[N],ue=K;return yr(K,z({currentUrl:B,currentParams:re.params,nextUrl:L,nextParams:ue.params},n,{actionResult:M,actionStatus:Y,defaultShouldRevalidate:le?!1:c||B.pathname+B.search===L.pathname+L.search||B.search!==L.search||Hr(re,ue)}))}),Z=[];return p.forEach((K,N)=>{if(l||!r.some(ce=>ce.route.id===K.routeId)||y.has(N))return;let ee=_e(g,K.path,C);if(!ee){Z.push({key:N,routeId:K.routeId,path:K.path,matches:null,match:null,controller:null});return}let re=t.fetchers.get(N),ue=Ge(ee,K.path),ae=!1;v.has(N)?ae=!1:f.has(N)?(f.delete(N),ae=!0):re&&re.state!=="idle"&&re.data===void 0?ae=c:ae=yr(ue,z({currentUrl:B,currentParams:t.matches[t.matches.length-1].params,nextUrl:L,nextParams:r[r.length-1].params},n,{actionResult:M,actionStatus:Y,defaultShouldRevalidate:le?!1:c})),ae&&Z.push({key:N,routeId:K.routeId,path:K.path,matches:ee,match:ue,controller:new AbortController})}),[h,Z]}function Ut(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,a=r!=null&&r[e.id]!==void 0;return!n&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!a}function ya(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function Hr(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function yr(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function vr(e,t,r,n,a){var l;let i;if(e){let f=n[e];j(f,"No route found to patch children into: routeId = "+e),f.children||(f.children=[]),i=f.children}else i=r;let c=t.filter(f=>!i.some(y=>Wr(f,y))),u=yt(c,a,[e||"_","patch",String(((l=i)==null?void 0:l.length)||"0")],n);i.push(...u)}function Wr(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var a;return(a=t.children)==null?void 0:a.some(l=>Wr(r,l))}):!1}async function va(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];j(a,"No route found in manifest");let l={};for(let i in n){let u=a[i]!==void 0&&i!=="hasErrorBoundary";Ne(!u,'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.')),!u&&!Bn.has(i)&&(l[i]=n[i])}Object.assign(a,l),Object.assign(a,z({},t(a),{lazy:void 0}))}async function ga(e){let{matches:t}=e,r=t.filter(a=>a.shouldLoad);return(await Promise.all(r.map(a=>a.resolve()))).reduce((a,l,i)=>Object.assign(a,{[r[i].route.id]:l}),{})}async function ba(e,t,r,n,a,l,i,c,u,f){let y=l.map(g=>g.route.lazy?va(g.route,u,c):void 0),p=l.map((g,C)=>{let x=y[C],M=a.some(L=>L.route.id===g.route.id);return z({},g,{shouldLoad:M,resolve:async L=>(L&&n.method==="GET"&&(g.route.lazy||g.route.loader)&&(M=!0),M?wa(t,n,g,x,L,f):Promise.resolve({type:A.data,result:void 0}))})}),v=await e({matches:p,request:n,params:l[0].params,fetcherKey:i,context:f});try{await Promise.all(y)}catch{}return v}async function wa(e,t,r,n,a,l){let i,c,u=f=>{let y,p=new Promise((C,x)=>y=x);c=()=>y(),t.signal.addEventListener("abort",c);let v=C=>typeof f!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):f({request:t,params:r.params,context:l},...C!==void 0?[C]:[]),g=(async()=>{try{return{type:"data",result:await(a?a(x=>v(x)):v())}}catch(C){return{type:"error",result:C}}})();return Promise.race([g,p])};try{let f=r.route[e];if(n)if(f){let y,[p]=await Promise.all([u(f).catch(v=>{y=v}),n]);if(y!==void 0)throw y;i=p}else if(await n,f=r.route[e],f)i=await u(f);else if(e==="action"){let y=new URL(t.url),p=y.pathname+y.search;throw te(405,{method:t.method,pathname:p,routeId:r.route.id})}else return{type:A.data,result:void 0};else if(f)i=await u(f);else{let y=new URL(t.url),p=y.pathname+y.search;throw te(404,{pathname:p})}j(i.result!==void 0,"You defined "+(e==="action"?"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(f){return{type:A.error,result:f}}finally{c&&t.signal.removeEventListener("abort",c)}return i}async function Ea(e){let{result:t,type:r}=e;if(Kr(t)){let f;try{let y=t.headers.get("Content-Type");y&&/\bapplication\/json\b/.test(y)?t.body==null?f=null:f=await t.json():f=await t.text()}catch(y){return{type:A.error,error:y}}return r===A.error?{type:A.error,error:new Ot(t.status,t.statusText,f),statusCode:t.status,headers:t.headers}:{type:A.data,data:f,statusCode:t.status,headers:t.headers}}if(r===A.error){if(xr(t)){var n;if(t.data instanceof Error){var a;return{type:A.error,error:t.data,statusCode:(a=t.init)==null?void 0:a.status}}t=new Ot(((n=t.init)==null?void 0:n.status)||500,void 0,t.data)}return{type:A.error,error:t,statusCode:wt(t)?t.status:void 0}}if(Da(t)){var l,i;return{type:A.deferred,deferredData:t,statusCode:(l=t.init)==null?void 0:l.status,headers:((i=t.init)==null?void 0:i.headers)&&new Headers(t.init.headers)}}if(xr(t)){var c,u;return{type:A.data,data:t.data,statusCode:(c=t.init)==null?void 0:c.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}}return{type:A.data,data:t}}function Ra(e,t,r,n,a,l){let i=e.headers.get("Location");if(j(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!$t.test(i)){let c=n.slice(0,n.findIndex(u=>u.route.id===r)+1);i=Tt(new URL(t.url),c,a,!0,i,l),e.headers.set("Location",i)}return e}function gr(e,t,r){if($t.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),l=Ze(a.pathname,r)!=null;if(a.origin===t.origin&&l)return a.pathname+a.search+a.hash}return e}function Ae(e,t,r,n){let a=e.createURL(Vr(t)).toString(),l={signal:r};if(n&&ie(n.formMethod)){let{formMethod:i,formEncType:c}=n;l.method=i.toUpperCase(),c==="application/json"?(l.headers=new Headers({"Content-Type":c}),l.body=JSON.stringify(n.json)):c==="text/plain"?l.body=n.text:c==="application/x-www-form-urlencoded"&&n.formData?l.body=Ft(n.formData):l.body=n.formData}return new Request(a,l)}function Ft(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function br(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Pa(e,t,r,n,a){let l={},i=null,c,u=!1,f={},y=r&&ne(r[1])?r[1].error:void 0;return e.forEach(p=>{if(!(p.route.id in t))return;let v=p.route.id,g=t[v];if(j(!Le(g),"Cannot handle redirect results in processLoaderData"),ne(g)){let C=g.error;y!==void 0&&(C=y,y=void 0),i=i||{};{let x=Me(e,v);i[x.route.id]==null&&(i[x.route.id]=C)}l[v]=void 0,u||(u=!0,c=wt(g.error)?g.error.status:500),g.headers&&(f[v]=g.headers)}else we(g)?(n.set(v,g.deferredData),l[v]=g.deferredData.data,g.statusCode!=null&&g.statusCode!==200&&!u&&(c=g.statusCode),g.headers&&(f[v]=g.headers)):(l[v]=g.data,g.statusCode&&g.statusCode!==200&&!u&&(c=g.statusCode),g.headers&&(f[v]=g.headers))}),y!==void 0&&r&&(i={[r[0]]:y},l[r[0]]=void 0),{loaderData:l,errors:i,statusCode:c||200,loaderHeaders:f}}function wr(e,t,r,n,a,l,i){let{loaderData:c,errors:u}=Pa(t,r,n,i);return a.forEach(f=>{let{key:y,match:p,controller:v}=f,g=l[y];if(j(g,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(ne(g)){let C=Me(e.matches,p==null?void 0:p.route.id);u&&u[C.route.id]||(u=z({},u,{[C.route.id]:g.error})),e.fetchers.delete(y)}else if(Le(g))j(!1,"Unhandled fetcher revalidation redirect");else if(we(g))j(!1,"Unhandled fetcher deferred data");else{let C=be(g.data);e.fetchers.set(y,C)}}),{loaderData:c,errors:u}}function Er(e,t,r,n){let a=z({},t);for(let l of r){let i=l.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(a[i]=t[i]):e[i]!==void 0&&l.route.loader&&(a[i]=e[i]),n&&n.hasOwnProperty(i))break}return a}function Rr(e){return e?ne(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Me(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function Pr(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function te(e,t){let{pathname:r,routeId:n,method:a,type:l,message:i}=t===void 0?{}:t,c="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(c="Bad Request",a&&r&&n?u="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.":l==="defer-action"?u="defer() is not supported in actions":l==="invalid-body"&&(u="Unable to encode submission body")):e===403?(c="Forbidden",u='Route "'+n+'" does not match URL "'+r+'"'):e===404?(c="Not Found",u='No route matches URL "'+r+'"'):e===405&&(c="Method Not Allowed",a&&r&&n?u="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&&(u='Invalid request method "'+a.toUpperCase()+'"')),new Ot(e||500,c,new Error(u),!0)}function ft(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(Le(a))return{key:n,result:a}}}function Vr(e){let t=typeof e=="string"?Ee(e):e;return Qe(z({},t,{hash:""}))}function xa(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Sa(e){return Kr(e.result)&&da.has(e.result.status)}function we(e){return e.type===A.deferred}function ne(e){return e.type===A.error}function Le(e){return(e&&e.type)===A.redirect}function xr(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Da(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Kr(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Ca(e){return ca.has(e.toLowerCase())}function ie(e){return sa.has(e.toLowerCase())}async function _a(e,t,r,n,a){let l=Object.entries(t);for(let i=0;i<l.length;i++){let[c,u]=l[i],f=e.find(v=>(v==null?void 0:v.route.id)===c);if(!f)continue;let y=n.find(v=>v.route.id===f.route.id),p=y!=null&&!Hr(y,f)&&(a&&a[f.route.id])!==void 0;we(u)&&p&&await Ht(u,r,!1).then(v=>{v&&(t[c]=v)})}}async function Ma(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:l,controller:i}=r[n],c=t[a];e.find(f=>(f==null?void 0:f.route.id)===l)&&we(c)&&(j(i,"Expected an AbortController for revalidating fetcher deferred result"),await Ht(c,i.signal,!0).then(f=>{f&&(t[a]=f)}))}}async function Ht(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:A.data,data:e.deferredData.unwrappedData}}catch(a){return{type:A.error,error:a}}return{type:A.data,data:e.deferredData.data}}}function Wt(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ge(e,t){let r=typeof t=="string"?Ee(t).search:t.search;if(e[e.length-1].route.index&&Wt(r||""))return e[e.length-1];let n=Br(e);return n[n.length-1]}function Sr(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:l,json:i}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(l!=null)return{formMethod:t,formAction:r,formEncType:n,formData:l,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function Lt(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 La(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 Ye(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 ja(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 be(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Oa(e,t){try{let r=e.sessionStorage.getItem($r);if(r){let n=JSON.parse(r);for(let[a,l]of Object.entries(n||{}))l&&Array.isArray(l)&&t.set(a,new Set(l||[]))}}catch{}}function Ta(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem($r,JSON.stringify(r))}catch(n){Ne(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** 28 * React Router v6.27.0 29 * 30 * Copyright (c) Remix Software Inc. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE.md file in the root directory of this source tree. 34 * 35 * @license MIT 36 */function vt(){return vt=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},vt.apply(this,arguments)}const Vt=b.createContext(null),Ua=b.createContext(null),gt=b.createContext(null),Be=b.createContext(null),Kt=b.createContext(null),Re=b.createContext({outlet:null,matches:[],isDataRoute:!1}),Jr=b.createContext(null);function io(e,t){let{relative:r}=t===void 0?{}:t;et()||j(!1);let{basename:n,navigator:a}=b.useContext(Be),{hash:l,pathname:i,search:c}=Na(e,{relative:r}),u=i;return n!=="/"&&(u=i==="/"?n:me([n,i])),a.createHref({pathname:u,search:c,hash:l})}function et(){return b.useContext(Kt)!=null}function Jt(){return et()||j(!1),b.useContext(Kt).location}function Yr(e){b.useContext(Be).static||b.useLayoutEffect(e)}function lo(){let{isDataRoute:e}=b.useContext(Re);return e?Ya():Fa()}function Fa(){et()||j(!1);let e=b.useContext(Vt),{basename:t,future:r,navigator:n}=b.useContext(Be),{matches:a}=b.useContext(Re),{pathname:l}=Jt(),i=JSON.stringify(Bt(a,r.v7_relativeSplatPath)),c=b.useRef(!1);return Yr(()=>{c.current=!0}),b.useCallback(function(f,y){if(y===void 0&&(y={}),!c.current)return;if(typeof f=="number"){n.go(f);return}let p=zt(f,JSON.parse(i),l,y.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:me([t,p.pathname])),(y.replace?n.replace:n.push)(p,y.state,y)},[t,n,i,l,e])}const Ia=b.createContext(null);function Aa(e){let t=b.useContext(Re).outlet;return t&&b.createElement(Ia.Provider,{value:e},t)}function Na(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=b.useContext(Be),{matches:a}=b.useContext(Re),{pathname:l}=Jt(),i=JSON.stringify(Bt(a,n.v7_relativeSplatPath));return b.useMemo(()=>zt(e,JSON.parse(i),l,r==="path"),[e,i,l,r])}function so(e,t,r,n){et()||j(!1);let{navigator:a}=b.useContext(Be),{matches:l}=b.useContext(Re),i=l[l.length-1],c=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let f=Jt(),y;y=f;let p=y.pathname||"/",v=p;if(u!=="/"){let x=u.replace(/^\//,"").split("/");v="/"+p.replace(/^\//,"").split("/").slice(x.length).join("/")}let g=_e(e,{pathname:v});return Ha(g&&g.map(x=>Object.assign({},x,{params:Object.assign({},c,x.params),pathname:me([u,a.encodeLocation?a.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?u:me([u,a.encodeLocation?a.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),l,r,n)}function ka(){let e=Ka(),t=wt(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application
36Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),r?b.createElement("pre",{style:a},r):null,null)}const Ba=b.createElement(ka,null);class za extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?b.createElement(Re.Provider,{value:this.props.routeContext},b.createElement(Jr.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function $a(e){let{routeContext:t,match:r,children:n}=e,a=b.useContext(Vt);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),b.createElement(Re.Provider,{value:t},n)}function Ha(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var l;if(!r)return null;if(r.errors)e=r.matches;else if((l=n)!=null&&l.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,c=(a=r)==null?void 0:a.errors;if(c!=null){let y=i.findIndex(p=>p.route.id&&(c==null?void 0:c[p.route.id])!==void 0);y>=0||j(!1),i=i.slice(0,Math.min(i.length,y+1))}let u=!1,f=-1;if(r&&n&&n.v7_partialHydration)for(let y=0;y<i.length;y++){let p=i[y];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(f=y),p.route.id){let{loaderData:v,errors:g}=r,C=p.route.loader&&v[p.route.id]===void 0&&(!g||g[p.route.id]===void 0);if(p.route.lazy||C){u=!0,f>=0?i=i.slice(0,f+1):i=[i[0]];break}}}return i.reduceRight((y,p,v)=>{let g,C=!1,x=null,M=null;r&&(g=c&&p.route.id?c[p.route.id]:void 0,x=p.route.errorElement||Ba,u&&(f<0&&v===0?(C=!0,M=null):f===v&&(C=!0,M=p.route.hydrateFallbackElement||null)));let B=t.concat(i.slice(0,v+1)),L=()=>{let J;return g?J=x:C?J=M:p.route.Component?J=b.createElement(p.route.Component,null):p.route.element?J=p.route.element:J=y,b.createElement($a,{match:p,routeContext:{outlet:y,matches:B,isDataRoute:r!=null},children:J})};return r&&(p.route.ErrorBoundary||p.route.errorElement||v===0)?b.createElement(za,{location:r.location,revalidation:r.revalidation,component:x,error:g,children:L(),routeContext:{outlet:null,matches:B,isDataRoute:!0}}):L()},null)}var Gr=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Gr||{}),ye=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ye||{});function Wa(e){let t=b.useContext(Vt);return t||j(!1),t}function Et(e){let t=b.useContext(Ua);return t||j(!1),t}function Va(e){let t=b.useContext(Re);return t||j(!1),t}function Rt(e){let t=Va(),r=t.matches[t.matches.length-1];return r.route.id||j(!1),r.route.id}function uo(){return Rt(ye.UseRouteId)}function co(){return Et(ye.UseNavigation).navigation}function fo(){let{matches:e,loaderData:t}=Et(ye.UseMatches);return b.useMemo(()=>e.map(r=>Ar(r,t)),[e,t])}function ho(){let e=Et(ye.UseLoaderData),t=Rt(ye.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function Ka(){var e;let t=b.useContext(Jr),r=Et(ye.UseRouteError),n=Rt(ye.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function Ja(){let e=b.useContext(gt);return e==null?void 0:e._data}function po(){let e=b.useContext(gt);return e==null?void 0:e._error}function Ya(){let{router:e}=Wa(Gr.UseNavigateStable),t=Rt(ye.UseNavigateStable),r=b.useRef(!1);return Yr(()=>{r.current=!0}),b.useCallback(function(a,l){l===void 0&&(l={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,vt({fromRouteId:t},l)))},[e,t])}function mo(e){return Aa(e.context)}function yo(e){let{basename:t="/",children:r=null,location:n,navigationType:a=V.Pop,navigator:l,static:i=!1,future:c}=e;et()&&j(!1);let u=t.replace(/^\/*/,"/"),f=b.useMemo(()=>({basename:u,navigator:l,static:i,future:vt({v7_relativeSplatPath:!1},c)}),[u,c,l,i]);typeof n=="string"&&(n=Ee(n));let{pathname:y="/",search:p="",hash:v="",state:g=null,key:C="default"}=n,x=b.useMemo(()=>{let M=Ze(y,u);return M==null?null:{location:{pathname:M,search:p,hash:v,state:g,key:C},navigationType:a}},[u,y,p,v,g,C,a]);return x==null?null:b.createElement(Be.Provider,{value:f},b.createElement(Kt.Provider,{children:r,value:x}))}function vo(e){let{children:t,errorElement:r,resolve:n}=e;return b.createElement(Xa,{resolve:n,errorElement:r},b.createElement(qa,null,t))}
36var oe=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(oe||{});const Ga=new Promise(()=>{});class Xa extends b.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,r){console.error("<Await> caught the following error during render",t,r)}render(){let{children:t,errorElement:r,resolve:n}=this.props,a=null,l=oe.pending;if(!(n instanceof Promise))l=oe.success,a=Promise.resolve(),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_data",{get:()=>n});else if(this.state.error){l=oe.error;let i=this.state.error;a=Promise.reject().catch(()=>{}),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_error",{get:()=>i})}else n._tracked?(a=n,l="_error"in a?oe.error:"_data"in a?oe.success:oe.pending):(l=oe.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),a=n.then(i=>Object.defineProperty(n,"_data",{get:()=>i}),i=>Object.defineProperty(n,"_error",{get:()=>i})));if(l===oe.error&&a._error instanceof jt)throw Ga;if(l===oe.error&&!r)throw a._error;if(l===oe.error)return b.createElement(gt.Provider,{value:a,children:r});if(l===oe.success)return b.createElement(gt.Provider,{value:a,children:t});throw a}}function qa(e){let{children:t}=e,r=Ja(),n=typeof t=="function"?t(r):t;return b.createElement(b.Fragment,null,n)}function go(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:b.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:b.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:b.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}export{Ee as A,jt as B,no as C,Vt as D,Ot as E,ro as F,ao as G,vo as H,ho as I,po as J,Qa as K,Be as N,mo as O,jn as R,fo as a,Ka as b,oo as c,to as d,go as e,lo as f,mn as g,co as h,wt as i,eo as j,Ua as k,yo as l,_e as m,so as n,io as o,Na as p,Qe as q,b as r,Ze as s,uo as t,Jt as u,Re as v,j as w,me as x,fr as y,Za as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.