vendor: 5,100 bytes, line 1
1function Zn(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 i=Object.getOwnPropertyDescriptor(n,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ea(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pr={exports:{}},z={};var un;function Xa(){if(un)return z;un=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),s=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),v=Symbol.iterator;function g(h){return h===null||typeof h!="object"?null:(h=v&&h[v]||h["@@iterator"],typeof h=="function"?h:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,b={};function D(h,R,U){this.props=h,this.context=R,this.refs=b,this.updater=U||_}D.prototype.isReactComponent={},D.prototype.setState=function(h,R){if(typeof h!="object"&&typeof h!="function"&&h!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,h,R,"setState")},D.prototype.forceUpdate=function(h){this.updater.enqueueForceUpdate(this,h,"forceUpdate")};function C(){}C.prototype=D.prototype;function P(h,R,U){this.props=h,this.context=R,this.refs=b,this.updater=U||_}var M=P.prototype=new C;M.constructor=P,S(M,D.prototype),M.isPureReactComponent=!0;var O=Array.isArray;function Y(){}var p={H:null,A:null,T:null,S:null},x=Object.prototype.hasOwnProperty;function G(h,R,U){var k=U.ref;return{$$typeof:e,type:h,key:R,ref:k!==void 0?k:null,props:U}}function B(h,R){return G(h.type,R,h.props)}function ee(h){return typeof h=="object"&&h!==null&&h.$$typeof===e}function re(h){var R={"=":"=0",":":"=2"};return"$"+h.replace(/[=:]/g,function(U){return R[U]})}var fe=/\/+/g;function se(h,R){return typeof h=="object"&&h!==null&&h.key!=null?re(""+h.key):R.toString(36)}function _e(h){switch(h.status){case"fulfilled":return h.value;case"rejected":throw h.reason;default:switch(typeof h.status=="string"?h.then(Y,Y):(h.status="pending",h.then(function(R){h.status==="pending"&&(h.status="fulfilled",h.value=R)},function(R){h.status==="pending"&&(h.status="rejected",h.reason=R)})),h.status){case"fulfilled":return h.value;case"rejected":throw h.reason}}throw h}function Ee(h,R,U,k,H){var V=typeof h;(V==="undefined"||V==="boolean")&&(h=null);var q=!1;if(h===null)q=!0;else switch(V){case"bigint":case"string":case"number":q=!0;break;case"object":switch(h.$$typeof){case e:case t:q=!0;break;case c:return q=h._init,Ee(q(h._payload),R,U,k,H)}}if(q)return H=H(h),q=k===""?"."+se(h,0):k,O(H)?(U="",q!=null&&(U=q.replace(fe,"$&/")+"/"),Ee(H,R,U,"",function(ur){return ur})):H!=null&&(ee(H)&&(H=B(H,U+(H.key==null||h&&h.key===H.key?"":(""+H.key).replace(fe,"$&/")+"/")+q)),R.push(H)),1;q=0;var pe=k===""?".":k+":";if(O(h))for(var de=0;de<h.length;de++)k=h[de],V=pe+se(k,de),q+=Ee(k,R,U,V,H);else if(de=g(h),typeof de=="function")for(h=de.call(h),de=0;!(k=h.next()).done;)k=k.value,V=pe+se(k,de++),q+=Ee(k,R,U,V,H);else if(V==="object"){if(typeof h.then=="function")return Ee(_e(h),R,U,k,H);throw R=String(h),Error("Objects are not valid as a React child (found: "+(R==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.")}return q}function Te(h,R,U){if(h==null)return h;var k=[],H=0;return Ee(h,k,"","",function(V){return R.call(U,V,H++)}),k}function oe(h){if(h._status===-1){var R=h._result;R=R(),R.then(function(U){(h._status===0||h._status===-1)&&(h._status=1,h._result=U)},function(U){(h._status===0||h._status===-1)&&(h._status=2,h._result=U)}),h._status===-1&&(h._status=0,h._result=R)}if(h._status===1)return h._result.default;throw h._result}var He=typeof reportError=="function"?reportError:function(h){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var R=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof h=="object"&&h!==null&&typeof h.message=="string"?String(h.message):String(h),error:h});if(!window.dispatchEvent(R))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",h);return}console.error(h)},We={map:Te,forEach:function(h,R,U){Te(h,function(){R.apply(this,arguments)},U)},count:function(h){var R=0;return Te(h,function(){R++}),R},toArray:function(h){return Te(h,function(R){return R})||[]},only:function(h){if(!ee(h))throw Error("React.Children.only expected to receive a single React element child.");return h}};
1return z.Activity=d,z.Children=We,z.Component=D,z.Fragment=r,z.Profiler=a,z.PureComponent=P,z.StrictMode=n,z.Suspense=l,z.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=p,z.__COMPILER_RUNTIME={__proto__:null,c:function(h){return p.H.useMemoCache(h)}},z.cache=function(h){return function(){return h.apply(null,arguments)}},z.cacheSignal=function(){return null},z.cloneElement=function(h,R,U){if(h==null)throw Error("The argument must be a React element, but you passed "+h+".");var k=S({},h.props),H=h.key;if(R!=null)for(V in R.key!==void 0&&(H=""+R.key),R)!x.call(R,V)||V==="key"||V==="__self"||V==="__source"||V==="ref"&&R.ref===void 0||(k[V]=R[V]);var V=arguments.length-2;if(V===1)k.children=U;else if(1<V){for(var q=Array(V),pe=0;pe<V;pe++)q[pe]=arguments[pe+2];k.children=q}return G(h.type,H,k)},z.createContext=function(h){return h={$$typeof:o,_currentValue:h,_currentValue2:h,_threadCount:0,Provider:null,Consumer:null},h.Provider=h,h.Consumer={$$typeof:i,_context:h},h},z.createElement=function(h,R,U){var k,H={},V=null;if(R!=null)for(k in R.key!==void 0&&(V=""+R.key),R)x.call(R,k)&&k!=="key"&&k!=="__self"&&k!=="__source"&&(H[k]=R[k]);var q=arguments.length-2;if(q===1)H.children=U;else if(1<q){for(var pe=Array(q),de=0;de<q;de++)pe[de]=arguments[de+2];H.children=pe}if(h&&h.defaultProps)for(k in q=h.defaultProps,q)H[k]===void 0&&(H[k]=q[k]);return G(h,V,H)},z.createRef=function(){return{current:null}},z.forwardRef=function(h){return{$$typeof:u,render:h}},z.isValidElement=ee,z.lazy=function(h){return{$$typeof:c,_payload:{_status:-1,_result:h},_init:oe}},z.memo=function(h,R){return{$$typeof:s,type:h,compare:R===void 0?null:R}},z.startTransition=function(h){var R=p.T,U={};p.T=U;try{var k=h(),H=p.S;H!==null&&H(U,k),typeof k=="object"&&k!==null&&typeof k.then=="function"&&k.then(Y,He)}catch(V){He(V)}finally{R!==null&&U.types!==null&&(R.types=U.types),p.T=R}},z.unstable_useCacheRefresh=function(){return p.H.useCacheRefresh()},z.use=function(h){return p.H.use(h)},z.useActionState=function(h,R,U){return p.H.useActionState(h,R,U)},z.useCallback=function(h,R){return p.H.useCallback(h,R)},z.useContext=function(h){return p.H.useContext(h)},z.useDebugValue=function(){},z.useDeferredValue=function(h,R){return p.H.useDeferredValue(h,R)},z.useEffect=function(h,R){return p.H.useEffect(h,R)},z.useEffectEvent=function(h){return p.H.useEffectEvent(h)},z.useId=function(){return p.H.useId()},z.useImperativeHandle=function(h,R,U){return p.H.useImperativeHandle(h,R,U)},z.useInsertionEffect=function(h,R){return p.H.useInsertionEffect(h,R)},z.useLayoutEffect=function(h,R){return p.H.useLayoutEffect(h,R)},z.useMemo=function(h,R){return p.H.useMemo(h,R)},z.useOptimistic=function(h,R){return p.H.useOptimistic(h,R)},z.useReducer=function(h,R,U){return p.H.useReducer(h,R,U)},z.useRef=function(h){return p.H.useRef(h)},z.useState=function(h){return p.H.useState(h)},z.useSyncExternalStore=function(h,R,U){return p.H.useSyncExternalStore(h,R,U)},z.useTransition=function(){return p.H.useTransition()},z.version="19.2.4",z}var cn;function Fr(){return cn||(cn=1,pr.exports=Xa()),pr.exports}var w=Fr();const Qa=ea(w),Za=Zn({__proto__:null,default:Qa},[w]);var yr={exports:{}},he={};var fn;function ei(){if(fn)return he;fn=1;var e=Fr();function t(l){var s="https://react.dev/errors/"+l;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)s+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+l+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(l,s,c){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:d==null?null:""+d,children:l,containerInfo:s,implementation:c}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(l,s){if(l==="font")return"";if(typeof s=="string")return s==="use-credentials"?s:""}return he.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,he.createPortal=function(l,s){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)throw Error(t(299));return i(l,s,null,c)},he.flushSync=function(l){var s=o.T,c=n.p;try{if(o.T=null,n.p=2,l)return l()}finally{o.T=s,n.p=c,n.d.f()}},he.preconnect=function(l,s){typeof l=="string"&&(s?(s=s.crossOrigin,s=typeof s=="string"?s==="use-credentials"?s:"":void 0):s=null,n.d.C(l,s))},he.prefetchDNS=function(l){typeof l=="string"&&n.d.D(l)},he.preinit=function(l,s){if(typeof l=="string"&&s&&typeof s.as=="string"){var c=s.as,d=u(c,s.crossOrigin),v=typeof s.integrity=="string"?s.integrity:void 0,g=typeof s.fetchPriority=="string"?s.fetchPriority:void 0;c==="style"?n.d.S(l,typeof s.precedence=="string"?s.precedence:void 0,{crossOrigin:d,integrity:v,fetchPriority:g}):c==="script"&&n.d.X(l,{crossOrigin:d,integrity:v,fetchPriority:g,nonce:typeof s.nonce=="string"?s.nonce:void 0})}},he.preinitModule=function(l,s){if(typeof l=="string")if(typeof s=="object"&&s!==null){if(s.as==null||s.as==="script"){var c=u(s.as,s.crossOrigin);n.d.M(l,{crossOrigin:c,integrity:typeof s.integrity=="string"?s.integrity:void 0,nonce:typeof s.nonce=="string"?s.nonce:void 0})}}else s==null&&n.d.M(l)},he.preload=function(l,s){if(typeof l=="string"&&typeof s=="object"&&s!==null&&typeof s.as=="string"){var c=s.as,d=u(c,s.crossOrigin);n.d.L(l,c,{crossOrigin:d,integrity:typeof s.integrity=="string"?s.integrity:void 0,nonce:typeof s.nonce=="string"?s.nonce:void 0,type:typeof s.type=="string"?s.type:void 0,fetchPriority:typeof s.fetchPriority=="string"?s.fetchPriority:void 0,referrerPolicy:typeof s.referrerPolicy=="string"?s.referrerPolicy:void 0,imageSrcSet:typeof s.imageSrcSet=="string"?s.imageSrcSet:void 0,imageSizes:typeof s.imageSizes=="string"?s.imageSizes:void 0,media:typeof s.media=="string"?s.media:void 0})}},he.preloadModule=function(l,s){if(typeof l=="string")if(s){var c=u(s.as,s.crossOrigin);n.d.m(l,{as:typeof s.as=="string"&&s.as!=="script"?s.as:void 0,crossOrigin:c,integrity:typeof s.integrity=="string"?s.integrity:void 0})}else n.d.m(l)},he.requestFormReset=function(l){n.d.r(l)},he.unstable_batchedUpdates=function(l,s){return l(s)},he.useFormState=function(l,s,c){return o.H.useFormState(l,s,c)},he.useFormStatus=function(){return o.H.useHostTransitionStatus()},he.version="19.2.4",he}var dn;
1function ti(){if(dn)return yr.exports;dn=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),yr.exports=ei(),yr.exports}var ta=ti();const ri=ea(ta),ni=Zn({__proto__:null,default:ri},[ta]);function te(){return te=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},te.apply(this,arguments)}var ie;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ie||(ie={}));const hn="popstate";function ai(e){e===void 0&&(e={});function t(n,a){let{pathname:i,search:o,hash:u}=n.location;return wt("",{pathname:i,search:o,hash:u},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(n,a){return typeof a=="string"?a:Xe(a)}return oi(t,r,null,e)}function W(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Je(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ii(){return Math.random().toString(36).substr(2,8)}function pn(e,t){return{usr:e.state,key:e.key,idx:t}}function wt(e,t,r,n){return r===void 0&&(r=null),te({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?je(t):t,{state:r,key:t&&t.key||n||ii()})}function Xe(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 je(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 oi(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:i=!1}=n,o=a.history,u=ie.Pop,l=null,s=c();s==null&&(s=0,o.replaceState(te({},o.state,{idx:s}),""));function c(){return(o.state||{idx:null}).idx}function d(){u=ie.Pop;let b=c(),D=b==null?null:b-s;s=b,l&&l({action:u,location:S.location,delta:D})}function v(b,D){u=ie.Push;let C=wt(S.location,b,D);s=c()+1;let P=pn(C,s),M=S.createHref(C);try{o.pushState(P,"",M)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;a.location.assign(M)}i&&l&&l({action:u,location:S.location,delta:1})}function g(b,D){u=ie.Replace;let C=wt(S.location,b,D);s=c();let P=pn(C,s),M=S.createHref(C);o.replaceState(P,"",M),i&&l&&l({action:u,location:S.location,delta:0})}function _(b){let D=a.location.origin!=="null"?a.location.origin:a.location.href,C=typeof b=="string"?b:Xe(b);return C=C.replace(/ $/,"%20"),W(D,"No window.location.(origin|href) available to create URL for href: "+C),new URL(C,D)}let S={get action(){return u},get location(){return e(a,o)},listen(b){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(hn,d),l=b,()=>{a.removeEventListener(hn,d),l=null}},createHref(b){return t(a,b)},createURL:_,encodeLocation(b){let D=_(b);return{pathname:D.pathname,search:D.search,hash:D.hash}},push:v,replace:g,go(b){return o.go(b)}};return S}var Q;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Q||(Q={}));const li=new Set(["lazy","caseSensitive","path","id","index","children"]);function si(e){return e.index===!0}function Bt(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,i)=>{let o=[...r,String(i)],u=typeof a.id=="string"?a.id:o.join("-");if(W(a.index!==!0||!a.children,"Cannot specify children on an index route"),W(!n[u],'Found a route id collision on i
1d "'+u+`". Route id's must be globally unique within Data Router usages`),si(a)){let l=te({},a,t(a),{id:u});return n[u]=l,l}else{let l=te({},a,t(a),{id:u,children:void 0});return n[u]=l,a.children&&(l.children=Bt(a.children,t,o,n)),l}})}function Ye(e,t,r){return r===void 0&&(r="/"),kt(e,t,r,!1)}function kt(e,t,r,n){let a=typeof t=="string"?je(t):t,i=Ae(a.pathname||"/",r);if(i==null)return null;let o=ra(e);ci(o);let u=null;for(let l=0;u==null&&l<o.length;++l){let s=Ei(i);u=wi(o[l],s,n)}return u}function ui(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 ra(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(i,o,u)=>{let l={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(W(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let s=Oe([n,l.relativePath]),c=r.concat(l);i.children&&i.children.length>0&&(W(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),ra(i.children,t,c,s)),!(i.path==null&&!i.index)&&t.push({path:s,score:vi(s,i.index),routesMeta:c})};return e.forEach((i,o)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))a(i,o);else for(let l of na(i.path))a(i,o,l)}),t}function na(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return a?[i,""]:[i];let o=na(n.join("/")),u=[];return u.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&u.push(...o),u.map(l=>e.startsWith("/")&&l===""?"/":l)}function ci(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:gi(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const fi=/^:[\w-]+$/,di=3,hi=2,pi=1,yi=10,mi=-2,yn=e=>e==="*";function vi(e,t){let r=e.split("/"),n=r.length;return r.some(yn)&&(n+=mi),t&&(n+=hi),r.filter(a=>!yn(a)).reduce((a,i)=>a+(fi.test(i)?di:i===""?pi:yi),n)}function gi(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 wi(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},i="/",o=[];for(let u=0;u<n.length;++u){let l=n[u],s=u===n.length-1,c=i==="/"?t:t.slice(i.length)||"/",d=Ht({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},c),v=l.route;if(!d&&s&&r&&!n[n.length-1].route.index&&(d=Ht({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!d)return null;
1Object.assign(a,d.params),o.push({params:a,pathname:Oe([i,d.pathname]),pathnameBase:Ci(Oe([i,d.pathnameBase])),route:v}),d.pathnameBase!=="/"&&(i=Oe([i,d.pathnameBase]))}return o}function Ht(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=_i(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:n.reduce((s,c,d)=>{let{paramName:v,isOptional:g}=c;if(v==="*"){let S=u[d]||"";o=i.slice(0,i.length-S.length).replace(/(.)\/+$/,"$1")}const _=u[d];return g&&!_?s[v]=void 0:s[v]=(_||"").replace(/%2F/g,"/"),s},{}),pathname:i,pathnameBase:o,pattern:e}}function _i(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Je(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,(o,u,l)=>(n.push({paramName:u,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function Ei(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Je(!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 Ae(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)||"/"}const bi=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ri=e=>bi.test(e);function Si(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?je(e):e,i;if(r)if(Ri(r))i=r;else{if(r.includes("//")){let o=r;r=r.replace(/\/\/+/g,"/"),Je(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+r))}r.startsWith("/")?i=mn(r.substring(1),"/"):i=mn(r,t)}else i=t;return{pathname:i,search:Pi(n),hash:Ti(a)}}function mn(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 mr(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 aa(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Qt(e,t){let r=aa(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=je(e):(a=te({},e),W(!a.pathname||!a.pathname.includes("?"),mr("?","pathname","search",a)),W(!a.pathname||!a.pathname.includes("#"),mr("#","pathname","hash",a)),W(!a.search||!a.search.includes("#"),mr("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,u;if(o==null)u=r;else{let d=t.length-1;if(!n&&o.startsWith("..")){let v=o.split("/");for(;v[0]==="..";)v.shift(),d-=1;a.pathname=v.join("/")}u=d>=0?t[d]:"/"}let l=Si(a,u),s=o&&o!=="/"&&o.endsWith("/"),c=(i||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(s||c)&&(l.pathname+="/"),l}const Oe=e=>e.join("/").replace(/\/\/+/g,"/"),Ci=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Pi=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ti=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Wt{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 _t(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ia=["post","put","patch","delete"],xi=new Set(ia),Di=["get",...ia],Mi=new Set(Di),Oi=new Set([301,302,303,307,308]),Li=new Set([307,308]),vr={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ai={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ht={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},zr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ni=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),oa="remix-router-transitions";function ji(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;W(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 f=e.detectErrorBoundary;a=y=>({hasErrorBoundary:f(y)})}else a=Ni;let i={},o=Bt(e.routes,a,void 0,i),u,l=e.basename||"/",s=e.dataStrategy||Fi,c=e.patchRoutesOnNavigation,d=te({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prepe
1ndBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),v=null,g=new Set,_=null,S=null,b=null,D=e.hydrationData!=null,C=Ye(o,e.history.location,l),P=!1,M=null;if(C==null&&!c){let f=ve(404,{pathname:e.history.location.pathname}),{matches:y,route:m}=Tn(o);C=y,M={[m.id]:f}}C&&!e.hydrationData&&Dt(C,o,e.history.location.pathname).active&&(C=null);let O;if(C)if(C.some(f=>f.route.lazy))O=!1;else if(!C.some(f=>f.route.loader))O=!0;else if(d.v7_partialHydration){let f=e.hydrationData?e.hydrationData.loaderData:null,y=e.hydrationData?e.hydrationData.errors:null;if(y){let m=C.findIndex(E=>y[E.route.id]!==void 0);O=C.slice(0,m+1).every(E=>!Pr(E.route,f,y))}else O=C.every(m=>!Pr(m.route,f,y))}else O=e.hydrationData!=null;else if(O=!1,C=[],d.v7_partialHydration){let f=Dt(null,o,e.history.location.pathname);f.active&&f.matches&&(P=!0,C=f.matches)}let Y,p={historyAction:e.history.action,location:e.history.location,matches:C,initialized:O,navigation:vr,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||M,fetchers:new Map,blockers:new Map},x=ie.Pop,G=!1,B,ee=!1,re=new Map,fe=null,se=!1,_e=!1,Ee=[],Te=new Set,oe=new Map,He=0,We=-1,h=new Map,R=new Set,U=new Map,k=new Map,H=new Set,V=new Map,q=new Map,pe;function de(){if(v=e.history.listen(f=>{let{action:y,location:m,delta:E}=f;if(pe){pe(),pe=void 0;return}Je(q.size===0||E!=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 T=an({currentLocation:p.location,nextLocation:m,historyAction:y});if(T&&E!=null){let I=new Promise(F=>{pe=F});e.history.go(E*-1),xt(T,{state:"blocked",location:m,proceed(){xt(T,{state:"proceeding",proceed:void 0,reset:void 0,location:m}),I.then(()=>e.history.go(E))},reset(){let F=new Map(p.blockers);F.set(T,ht),ye({blockers:F})}});return}return $e(y,m)}),r){Zi(t,re);let f=()=>eo(t,re);t.addEventListener("pagehide",f),fe=()=>t.removeEventListener("pagehide",f)}return p.initialized||$e(ie.Pop,p.location,{initialHydration:!0}),Y}function ur(){v&&v(),fe&&fe(),g.clear(),B&&B.abort(),p.fetchers.forEach((f,y)=>Tt(y)),p.blockers.forEach((f,y)=>nn(y))}function Ia(f){return g.add(f),()=>g.delete(f)}function ye(f,y){y===void 0&&(y={}),p=te({},p,f);let m=[],E=[];d.v7_fetcherPersist&&p.fetchers.forEach((T,I)=>{T.state==="idle"&&(H.has(I)?E.push(I):m.push(I))}),H.forEach(T=>{!p.fetchers.has(T)&&!oe.has(T)&&E.push(T)}),[...g].forEach(T=>T(p,{deletedFetchers:E,viewTransitionOpts:y.viewTransitionOpts,flushSync:y.flushSync===!0})),d.v7_fetcherPersist?(m.forEach(T=>p.fetchers.delete(T)),E.forEach(T=>Tt(T))):E.forEach(T=>H.delete(T))}function et(f,y,m){var E,T;let{flushSync:I}=m===void 0?{}:m,F=p.actionData!=null&&p.navigation.formMethod!=null&&be(p.navigation.formMethod)&&p.navigation.state==="loading"&&((E=f.state)==null?void 0:E._isRedirect)!==!0,A;y.actionData?Object.keys(y.actionData).length>0?A=y.actionData:A=null:F?A=p.actionData:A=null;let N=y.loaderData?Cn(p.loaderData,y.loaderData,y.matches||[],y.errors):p.loaderData,L=p.blockers;L.size>
10&&(L=new Map(L),L.forEach((K,ue)=>L.set(ue,ht)));let j=G===!0||p.navigation.formMethod!=null&&be(p.navigation.formMethod)&&((T=f.state)==null?void 0:T._isRedirect)!==!0;u&&(o=u,u=void 0),se||x===ie.Pop||(x===ie.Push?e.history.push(f,f.state):x===ie.Replace&&e.history.replace(f,f.state));let $;if(x===ie.Pop){let K=re.get(p.location.pathname);K&&K.has(f.pathname)?$={currentLocation:p.location,nextLocation:f}:re.has(f.pathname)&&($={currentLocation:f,nextLocation:p.location})}else if(ee){let K=re.get(p.location.pathname);K?K.add(f.pathname):(K=new Set([f.pathname]),re.set(p.location.pathname,K)),$={currentLocation:p.location,nextLocation:f}}ye(te({},y,{actionData:A,loaderData:N,historyAction:x,location:f,initialized:!0,navigation:vr,revalidation:"idle",restoreScrollPosition:ln(f,y.matches||p.matches),preventScrollReset:j,blockers:L}),{viewTransitionOpts:$,flushSync:I===!0}),x=ie.Pop,G=!1,ee=!1,se=!1,_e=!1,Ee=[]}async function Jr(f,y){if(typeof f=="number"){e.history.go(f);return}let m=Cr(p.location,p.matches,l,d.v7_prependBasename,f,d.v7_relativeSplatPath,y?.fromRouteId,y?.relative),{path:E,submission:T,error:I}=vn(d.v7_normalizeFormMethod,!1,m,y),F=p.location,A=wt(p.location,E,y&&y.state);A=te({},A,e.history.encodeLocation(A));let N=y&&y.replace!=null?y.replace:void 0,L=ie.Push;N===!0?L=ie.Replace:N===!1||T!=null&&be(T.formMethod)&&T.formAction===p.location.pathname+p.location.search&&(L=ie.Replace);let j=y&&"preventScrollReset"in y?y.preventScrollReset===!0:void 0,$=(y&&y.flushSync)===!0,K=an({currentLocation:F,nextLocation:A,historyAction:L});if(K){xt(K,{state:"blocked",location:A,proceed(){xt(K,{state:"proceeding",proceed:void 0,reset:void 0,location:A}),Jr(f,y)},reset(){let ue=new Map(p.blockers);ue.set(K,ht),ye({blockers:ue})}});return}return await $e(L,A,{submission:T,pendingError:I,preventScrollReset:j,replace:y&&y.replace,enableViewTransition:y&&y.viewTransition,flushSync:$})}function Ua(){if(cr(),ye({revalidation:"loading"}),p.navigation.state!=="submitting"){if(p.navigation.state==="idle"){$e(p.historyAction,p.location,{startUninterruptedRevalidation:!0});return}$e(x||p.historyAction,p.navigation.location,{overrideNavigation:p.navigation,enableViewTransition:ee===!0})}}async function $e(f,y,m){B&&B.abort(),B=null,x=f,se=(m&&m.startUninterruptedRevalidation)===!0,Ya(p.location,p.matches),G=(m&&m.preventScrollReset)===!0,ee=(m&&m.enableViewTransition)===!0;let E=u||o,T=m&&m.overrideNavigation,I=m!=null&&m.initialHydration&&p.matches&&p.matches.length>0&&!P?p.matches:Ye(E,y,l),F=(m&&m.flushSync)===!0;if(I&&p.initialized&&!_e&&Vi(p.location,y)&&!(m&&m.submission&&be(m.submission.formMethod))){et(y,{matches:I},{flushSync:F});return}let A=Dt(I,E,y.pathname);if(A.active&&A.matches&&(I=A.matches),!I){let{error:Z,notFoundMatches:X,route:ne}=fr(y.pathname);et(y,{matches:X,loaderData:{},errors:{[ne.id]:Z}},{flushSync:F});return}B=new AbortController;let N=at(e.history,y,B.signal,m&&m.submission),L;if(m&&m.pendingError)L=[Ge(I).route.id,{type:Q.error,error:m.pendingError}];else if(m&&m.submission&&be(m.submission.formMethod)){let Z=await ka(N,y,m.submission,I,A.active,{replace:m.replace,flushSync:F});if(Z.shortCircuited)return;if(Z.pendingActionResult){let[X,ne]=Z.pendingActionResult;if(ge(ne)&&_t(ne.error)&&ne.error.status===404){B=null,et(y,{matches:Z.matches,loaderData:{},errors:{[X]:ne.error}});return}}I=Z.matches||I,L=Z.pendingActionResult,T=gr(y,m.submission),F=!1,A.active=!1,N=at(e.history,N.url,N.signal)}let{shortCircuited:j,matches:$,loaderData:K,errors:ue}=await Fa(N,y,I,A.active,T,m&&m.submission,m&&m.fetcherSubmission,m&&m.replace,m&&m.initialHydration===!0,F,L);j||(B=null,et(y,te({matches:$||I},Pn(L),{loaderData:K,errors:ue})))}async function ka(f,y,m,E,T,I){I===void 0&&(I={}),cr();let F=Xi(y,m);if(ye({navigation:F},{flushSync:I.flushSync===!0}),T){let L=await Mt(E,y.pathname,f.signal);if(L.type==="aborted")return{shortCircuited:!0};if(L.type==="error"){let j=Ge(L.partialMatches).route.id;return{matches:L.partialMatches,pendingActionResult:[j,{type:Q.error,error:L.error}]}}else if(L.matches)E=L.matches;else{let{notFoundMatches:j,error:$,route:K}=fr(y.pathname);return{matches:j,pendingActionResult:[K.id,{type:Q.error,error:$}]}}}let A,N=mt(E,y);if(!N.route.action&&!N.route.lazy)A={type:Q.error,error:ve(405,{method:f.method,pathname:y.pathname,routeId:N.route.id})};else if(A=(await ut("action",p,f,[N],E,null))[N.route.id],f.signal.aborted)return{shortCircuited:!0};if(qe(A)){let L;return I&&I.replace!=null?L=I.replace:L=bn(A.response.headers.get("Location"),new URL(f.url),l,e.history)===p.location.pathname+p.location.search,await Ve(f,A,!0,{submission:m,replace:L}),{shortCircuited:!0}}if(ze(A))throw ve(400,{type:"defer-action"});if(ge(A)){let L=Ge(E,N.route.id);return(I&&I.replace)!==!0&&(x=ie.Push),{matches:E,pendingActionResult:[L.route.id,A]}}return{matches:E,pendingActionResult:[N.route.id,A]}}async function Fa(f,y,m,E,T,I,F,A,N,L,j){let $=T||gr(y,I),K=I||F||Dn($),ue=!se&&(!d.v7_partialHydration||!N);if(E){if(ue){let ae=Xr(j);ye(te({navigation:$},ae!==void 0?{actionData:ae}:{}),{flushSync:L})}let J=await Mt(m,y.pathname,f.signal);if(J.type==="aborted")return{shortCircuited:!0};if(J.type==="error"){let ae=Ge(J.partialMatches).route.id;return{matches:J.partialMatches,loaderData:{},errors:{[ae]:J.error}}}else if(J.matches)m=J.matches;else{let{error:ae,notFoundMatches:rt,route:dt}=fr(y.pathname);return{matches:rt,loaderData:{},errors:{[dt.id]:ae}}}}let Z=u||o,[X,ne]=wn(e.history,p,m,K,y,d.v7_partialHydration&&N===!0,d.v7_skipActionErrorRevalidation,_e,Ee,Te,H,U,R,Z,l,j);if(dr(J=>!(m&&m.some(ae=>ae.route.id===J))||X&&X.some(ae=>ae.route.id===J)),We=++He,X.length===0&&ne.length===0){let J=tn();return et(y,te({matches:m,loaderData:{},errors:j&&ge(j[1])?{[j[0]]:j[1].error}:null},Pn(j),J?{fetchers:new Map(p.fetchers)}:{}),{flushSync:L}),{shortCircuited:!0}}if(ue){let J={};if(!E){J.navigation=$;let ae=Xr(j);ae!==void 0&&(J.actionData=ae)}ne.length>0&&(J.fetchers=za(ne)),ye(J,{flushSync:L})}ne.forEach(J=>{ke(J.key),J.controller&&oe.set(J.key,J.controller)});let tt=()=>ne.forEach(J=>ke(J.key));B&&B.signal.addEventListener("abort",tt);let{loaderResults:ct,fetcherResults:De}=await Qr(p,m,X,ne,f);if(f.signal.aborted)return{shortCircuited:!0};B&&B.signal.removeEventListener("abort",tt),ne.forEach(J=>oe.delete(J.key));let Ce=At(ct);if(Ce)return await Ve(f,Ce.result,!0,{replace:A}),{shortCircuited:!0};if(Ce=At(De),Ce)return R.add(Ce.key),await Ve(f,Ce.result,!0,{replace:A}),{shortCircuited:!0};let{loaderData:hr,errors:ft}=Sn(p,m,ct,j,ne,De,V);
1V.forEach((J,ae)=>{J.subscribe(rt=>{(rt||J.done)&&V.delete(ae)})}),d.v7_partialHydration&&N&&p.errors&&(ft=te({},p.errors,ft));let Ke=tn(),Ot=rn(We),Lt=Ke||Ot||ne.length>0;return te({matches:m,loaderData:hr,errors:ft},Lt?{fetchers:new Map(p.fetchers)}:{})}function Xr(f){if(f&&!ge(f[1]))return{[f[0]]:f[1].data};if(p.actionData)return Object.keys(p.actionData).length===0?null:p.actionData}function za(f){return f.forEach(y=>{let m=p.fetchers.get(y.key),E=pt(void 0,m?m.data:void 0);p.fetchers.set(y.key,E)}),new Map(p.fetchers)}function Ba(f,y,m,E){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.");ke(f);let T=(E&&E.flushSync)===!0,I=u||o,F=Cr(p.location,p.matches,l,d.v7_prependBasename,m,d.v7_relativeSplatPath,y,E?.relative),A=Ye(I,F,l),N=Dt(A,I,F);if(N.active&&N.matches&&(A=N.matches),!A){xe(f,y,ve(404,{pathname:F}),{flushSync:T});return}let{path:L,submission:j,error:$}=vn(d.v7_normalizeFormMethod,!0,F,E);if($){xe(f,y,$,{flushSync:T});return}let K=mt(A,L),ue=(E&&E.preventScrollReset)===!0;if(j&&be(j.formMethod)){Ha(f,y,L,K,A,N.active,T,ue,j);return}U.set(f,{routeId:y,path:L}),Wa(f,y,L,K,A,N.active,T,ue,j)}async function Ha(f,y,m,E,T,I,F,A,N){cr(),U.delete(f);function L(le){if(!le.route.action&&!le.route.lazy){let nt=ve(405,{method:N.formMethod,pathname:m,routeId:y});return xe(f,y,nt,{flushSync:F}),!0}return!1}if(!I&&L(E))return;let j=p.fetchers.get(f);Ue(f,Qi(N,j),{flushSync:F});let $=new AbortController,K=at(e.history,m,$.signal,N);if(I){let le=await Mt(T,new URL(K.url).pathname,K.signal,f);if(le.type==="aborted")return;if(le.type==="error"){xe(f,y,le.error,{flushSync:F});return}else if(le.matches){if(T=le.matches,E=mt(T,m),L(E))return}else{xe(f,y,ve(404,{pathname:m}),{flushSync:F});return}}oe.set(f,$);let ue=He,X=(await ut("action",p,K,[E],T,f))[E.route.id];if(K.signal.aborted){oe.get(f)===$&&oe.delete(f);return}if(d.v7_fetcherPersist&&H.has(f)){if(qe(X)||ge(X)){Ue(f,Fe(void 0));return}}else{if(qe(X))if(oe.delete(f),We>ue){Ue(f,Fe(void 0));return}else return R.add(f),Ue(f,pt(N)),Ve(K,X,!1,{fetcherSubmission:N,preventScrollReset:A});if(ge(X)){xe(f,y,X.error);return}}if(ze(X))throw ve(400,{type:"defer-action"});let ne=p.navigation.location||p.location,tt=at(e.history,ne,$.signal),ct=u||o,De=p.navigation.state!=="idle"?Ye(ct,p.navigation.location,l):p.matches;W(De,"Didn't find any matches after fetcher action");let Ce=++He;h.set(f,Ce);let hr=pt(N,X.data);p.fetchers.set(f,hr);let[ft,Ke]=wn(e.history,p,De,N,ne,!1,d.v7_skipActionErrorRevalidation,_e,Ee,Te,H,U,R,ct,l,[E.route.id,X]);Ke.filter(le=>le.key!==f).forEach(le=>{let nt=le.key,sn=p.fetchers.get(nt),Ja=pt(void 0,sn?sn.data:void 0);p.fetchers.set(nt,Ja),ke(nt),le.controller&&oe.set(nt,le.controller)}),ye({fetchers:new Map(p.fetchers)});let Ot=()=>Ke.forEach(le=>ke(le.key));$.signal.addEventListener("abort",Ot);let{loaderResults:Lt,fetcherResults:J}=await Qr(p,De,ft,Ke,tt);if($.signal.aborted)return;$.signal.removeEventListener("abort",Ot),h.delete(f),oe.delete(f),Ke.forEach(le=>oe.delete(le.key));let ae=At(Lt);if(ae)return Ve(tt,ae.result,!1,{preventScrollReset:A});if(ae=At(J),ae)return R.add(ae.key),Ve(tt,ae.result,!1,{preventScrollReset:A});let{loaderData:rt,errors:dt}=Sn(p,De,Lt,void 0,Ke,J,V);if(p.fetchers.has(f)){let le=Fe(X.data);p.fetchers.set(f,le)}rn(Ce),p.navigation.state==="loading"&&Ce>We?(W(x,"Expected pending action"),B&&B.abort(),et(p.navigation.location,{matches:De,loaderData:rt,errors:dt,fetchers:new Map(p.fetchers)})):(ye({errors:dt,loaderData:Cn(p.loaderData,rt,De,dt),fetchers:new Map(p.fetchers)}),_e=!1)}async function Wa(f,y,m,E,T,I,F,A,N){let L=p.fetchers.get(f);Ue(f,pt(N,L?L.data:void 0),{flushSync:F});let j=new AbortController,$=at(e.history,m,j.signal);if(I){let X=await Mt(T,new URL($.url).pathname,$.signal,f);if(X.type==="aborted")return;if(X.type==="error"){xe(f,y,X.error,{flushSync:F});return}else if(X.matches)T=X.matches,E=mt(T,m);else{xe(f,y,ve(404,{pathname:m}),{flushSync:F});return}}oe.set(f,j);let K=He,Z=(await ut("loader",p,$,[E],T,f))[E.route.id];if(ze(Z)&&(Z=await Br(Z,$.signal,!0)||Z),oe.get(f)===j&&oe.delete(f),!$.signal.aborted){if(H.has(f)){Ue(f,Fe(void 0));return}if(qe(Z))if(We>K){Ue(f,Fe(void 0));return}else{R.add(f),await Ve($,Z,!1,{preventScrollReset:A});return}if(ge(Z)){xe(f,y,Z.error);return}W(!ze(Z),"Unhandled fetcher deferred data"),Ue(f,Fe(Z.data))}}async function Ve(f,y,m,E){let{submission:T,fetcherSubmission:I,preventScrollReset:F,replace:A}=E===void 0?{}:E;y.response.headers.has("X-Remix-Revalidate")&&(_e=!0);let N=y.response.headers.get("Location");W(N,"Expected a Location header on the redirect Response"),N=bn(N,new URL(f.url),l,e.history);let L=wt(p.location,N,{_isRedirect:!0});if(r){let X=!1;if(y.response.headers.has("X-Remix-Reload-Document"))X=!0;else if(zr.test(N)){const ne=e.history.createURL(N);X=ne.origin!==t.location.origin||Ae(ne.pathname,l)==null}if(X){A?t.location.replace(N):t.location.assign(N);return}}B=null;
1let j=A===!0||y.response.headers.has("X-Remix-Replace")?ie.Replace:ie.Push,{formMethod:$,formAction:K,formEncType:ue}=p.navigation;!T&&!I&&$&&K&&ue&&(T=Dn(p.navigation));let Z=T||I;if(Li.has(y.response.status)&&Z&&be(Z.formMethod))await $e(j,L,{submission:te({},Z,{formAction:N}),preventScrollReset:F||G,enableViewTransition:m?ee:void 0});else{let X=gr(L,T);await $e(j,L,{overrideNavigation:X,fetcherSubmission:I,preventScrollReset:F||G,enableViewTransition:m?ee:void 0})}}async function ut(f,y,m,E,T,I){let F,A={};try{F=await zi(s,f,y,m,E,T,I,i,a)}catch(N){return E.forEach(L=>{A[L.route.id]={type:Q.error,error:N}}),A}for(let[N,L]of Object.entries(F))if(Ki(L)){let j=L.result;A[N]={type:Q.redirect,response:Wi(j,m,N,T,l,d.v7_relativeSplatPath)}}else A[N]=await Hi(L);return A}async function Qr(f,y,m,E,T){let I=f.matches,F=ut("loader",f,T,m,y,null),A=Promise.all(E.map(async j=>{if(j.matches&&j.match&&j.controller){let K=(await ut("loader",f,at(e.history,j.path,j.controller.signal),[j.match],j.matches,j.key))[j.match.route.id];return{[j.key]:K}}else return Promise.resolve({[j.key]:{type:Q.error,error:ve(404,{pathname:j.path})}})})),N=await F,L=(await A).reduce((j,$)=>Object.assign(j,$),{});return await Promise.all([qi(y,N,T.signal,I,f.loaderData),Ji(y,L,E)]),{loaderResults:N,fetcherResults:L}}function cr(){_e=!0,Ee.push(...dr()),U.forEach((f,y)=>{oe.has(y)&&Te.add(y),ke(y)})}function Ue(f,y,m){m===void 0&&(m={}),p.fetchers.set(f,y),ye({fetchers:new Map(p.fetchers)},{flushSync:(m&&m.flushSync)===!0})}function xe(f,y,m,E){E===void 0&&(E={});let T=Ge(p.matches,y);Tt(f),ye({errors:{[T.route.id]:m},fetchers:new Map(p.fetchers)},{flushSync:(E&&E.flushSync)===!0})}function Zr(f){return k.set(f,(k.get(f)||0)+1),H.has(f)&&H.delete(f),p.fetchers.get(f)||Ai}function Tt(f){let y=p.fetchers.get(f);oe.has(f)&&!(y&&y.state==="loading"&&h.has(f))&&ke(f),U.delete(f),h.delete(f),R.delete(f),d.v7_fetcherPersist&&H.delete(f),Te.delete(f),p.fetchers.delete(f)}function $a(f){let y=(k.get(f)||0)-1;y<=0?(k.delete(f),H.add(f),d.v7_fetcherPersist||Tt(f)):k.set(f,y),ye({fetchers:new Map(p.fetchers)})}function ke(f){let y=oe.get(f);y&&(y.abort(),oe.delete(f))}function en(f){for(let y of f){let m=Zr(y),E=Fe(m.data);p.fetchers.set(y,E)}}function tn(){let f=[],y=!1;for(let m of R){let E=p.fetchers.get(m);W(E,"Expected fetcher: "+m),E.state==="loading"&&(R.delete(m),f.push(m),y=!0)}return en(f),y}function rn(f){let y=[];for(let[m,E]of h)if(E<f){let T=p.fetchers.get(m);W(T,"Expected fetcher: "+m),T.state==="loading"&&(ke(m),h.delete(m),y.push(m))}return en(y),y.length>0}function Va(f,y){let m=p.blockers.get(f)||ht;return q.get(f)!==y&&q.set(f,y),m}function nn(f){p.blockers.delete(f),q.delete(f)}function xt(f,y){let m=p.blockers.get(f)||ht;W(m.state==="unblocked"&&y.state==="blocked"||m.state==="blocked"&&y.state==="blocked"||m.state==="blocked"&&y.state==="proceeding"||m.state==="blocked"&&y.state==="unblocked"||m.state==="proceeding"&&y.state==="unblocked","Invalid blocker state transition: "+m.state+" -> "+y.state);let E=new Map(p.blockers);E.set(f,y),ye({blockers:E})}function an(f){let{currentLocation:y,nextLocation:m,historyAction:E}=f;if(q.size===0)return;q.size>1&&Je(!1,"A router only supports one blocker at a time");let T=Array.from(q.entries()),[I,F]=T[T.length-1],A=p.blockers.get(I);if(!(A&&A.state==="proceeding")&&F({currentLocation:y,nextLocation:m,historyAction:E}))return I}function fr(f){let y=ve(404,{pathname:f}),m=u||o,{matches:E,route:T}=Tn(m);return dr(),{notFoundMatches:E,route:T,error:y}}function dr(f){let y=[];return V.forEach((m,E)=>{(!f||f(E))&&(m.cancel(),y.push(E),V.delete(E))}),y}function Ka(f,y,m){if(_=f,b=y,S=m||null,!D&&p.navigation===vr){D=!0;let E=ln(p.location,p.matches);E!=null&&ye({restoreScrollPosition:E})}return()=>{_=null,b=null,S=null}}function on(f,y){return S&&S(f,y.map(E=>ui(E,p.loaderData)))||f.key}function Ya(f,y){if(_&&b){let m=on(f,y);_[m]=b()}}function ln(f,y){if(_){let m=on(f,y),E=_[m];if(typeof E=="number")return E}return null}function Dt(f,y,m){if(c)if(f){if(Object.keys(f[0].params).length>0)return{active:!0,matches:kt(y,m,l,!0)}}else return{active:!0,matches:kt(y,m,l,!0)||[]};return{active:!1,matches:null}}async function Mt(f,y,m,E){if(!c)return{type:"success",matches:f};let T=f;for(;;){let I=u==null,F=u||o,A=i;try{await c({signal:m,path:y,matches:T,fetcherKey:E,patch:(j,$)=>{m.aborted||En(j,$,F,A,a)}})}catch(j){return{type:"error",error:j,partialMatches:T}}finally{I&&!m.aborted&&(o=[...o])}if(m.aborted)return{type:"aborted"};let N=Ye(F,y,l);if(N)return{type:"success",matches:N};let L=kt(F,y,l,!0);if(!L||T.length===L.length&&T.every((j,$)=>j.route.id===L[$].route.id))return{type:"success",matches:null};T=L}}function Ga(f){i={},u=Bt(f,a,void 0,i)}function qa(f,y){let m=u==null;En(f,y,u||o,i,a),m&&(o=[...o],ye({}))}return Y={get basename(){return l},get future(){return d},get state(){return p},get routes(){return o},get window(){return t},initialize:de,subscribe:Ia,enableScrollRestoration:Ka,navigate:Jr,fetch:Ba,revalidate:Ua,createHref:f=>e.history.createHref(f),encodeLocation:f=>e.history.encodeLocation(f),getFetcher:Zr,deleteFetcher:$a,dispose:ur,getBlocker:Va,deleteBlocker:nn,patchRoutes:qa,_internalFetchControllers:oe,_internalActiveDeferreds:V,_internalSetRoutes:Ga},Y}function Ii(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Cr(e,t,r,n,a,i,o,u){let l,s;if(o){l=[];for(let d of t)if(l.push(d),d.route.id===o){s=d;break}}else l=t,s=t[t.length-1];let c=Zt(a||".",Qt(l,i),Ae(e.pathname,r)||e.pathname,u==="path");if(a==null&&(c.search=e.search,c.hash=e.hash),(a==null||a===""||a===".")&&s){let d=Hr(c.search);if(s.route.index&&!d)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&d){let v=new URLSearchParams(c.search),g=v.getAll("index");v.delete("index"),g.filter(S=>
1S).forEach(S=>v.append("index",S));let _=v.toString();c.search=_?"?"+_:""}}return n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:Oe([r,c.pathname])),Xe(c)}function vn(e,t,r,n){if(!n||!Ii(n))return{path:r};if(n.formMethod&&!Gi(n.formMethod))return{path:r,error:ve(405,{method:n.formMethod})};let a=()=>({path:r,error:ve(400,{type:"invalid-body"})}),i=n.formMethod||"get",o=e?i.toUpperCase():i.toLowerCase(),u=ua(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!be(o))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,_)=>{let[S,b]=_;return""+g+S+"="+b+` 2`},""):String(n.body);return{path:r,submission:{formMethod:o,formAction:u,formEncType:n.formEncType,formData:void 0,json:void 0,text:v}}}else if(n.formEncType==="application/json"){if(!be(o))return a();try{let v=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:o,formAction:u,formEncType:n.formEncType,formData:void 0,json:v,text:void 0}}}catch{return a()}}}W(typeof FormData=="function","FormData is not available in this environment");let l,s;if(n.formData)l=Tr(n.formData),s=n.formData;else if(n.body instanceof FormData)l=Tr(n.body),s=n.body;else if(n.body instanceof URLSearchParams)l=n.body,s=Rn(l);else if(n.body==null)l=new URLSearchParams,s=new FormData;else try{l=new URLSearchParams(n.body),s=Rn(l)}catch{return a()}let c={formMethod:o,formAction:u,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(be(c.formMethod))return{path:r,submission:c};let d=je(r);return t&&d.search&&Hr(d.search)&&l.append("index",""),d.search="?"+l,{path:Xe(d),submission:c}}function gn(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 wn(e,t,r,n,a,i,o,u,l,s,c,d,v,g,_,S){let b=S?ge(S[1])?S[1].error:S[1].data:void 0,D=e.createURL(t.location),C=e.createURL(a),P=r;i&&t.errors?P=gn(r,Object.keys(t.errors)[0],!0):S&&ge(S[1])&&(P=gn(r,S[0]));let M=S?S[1].statusCode:void 0,O=o&&M&&M>=400,Y=P.filter((x,G)=>{let{route:B}=x;if(B.lazy)return!0;if(B.loader==null)return!1;if(i)return Pr(B,t.loaderData,t.errors);if(Ui(t.loaderData,t.matches[G],x)||l.some(fe=>fe===x.route.id))return!0;let ee=t.matches[G],re=x;return _n(x,te({currentUrl:D,currentParams:ee.params,nextUrl:C,nextParams:re.params},n,{actionResult:b,actionStatus:M,defaultShouldRevalidate:O?!1:u||D.pathname+D.search===C.pathname+C.search||D.search!==C.search||la(ee,re)}))}),p=[];return d.forEach((x,G)=>{if(i||!r.some(se=>se.route.id===x.routeId)||c.has(G))return;let B=Ye(g,x.path,_);if(!B){p.push({key:G,routeId:x.routeId,path:x.path,matches:null,match:null,controller:null});return}let ee=t.fetchers.get(G),re=mt(B,x.path),fe=!1;v.has(G)?fe=!1:s.has(G)?(s.delete(G),fe=!0):ee&&ee.state!=="idle"&&ee.data===void 0?fe=u:fe=_n(re,te({currentUrl:D,currentParams:t.matches[t.matches.length-1].params,nextUrl:C,nextParams:r[r.length-1].params},n,{actionResult:b,actionStatus:M,defaultShouldRevalidate:O?!1:u})),fe&&p.push({key:G,routeId:x.routeId,path:x.path,matches:B,match:re,controller:new AbortController})}),[Y,p]}function Pr(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 Ui(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function la(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function _n(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function En(e,t,r,n,a){var i;let o;if(e){let s=n[e];W(s,"No route found to patch children into: routeId = "+e),s.children||(s.children=[]),o=s.children}else o=r;let u=t.filter(s=>!o.some(c=>sa(s,c))),l=Bt(u,a,[e||"_","patch",String(((i=o)==null?void 0:i.length)||"0")],n);o.push(...l)}function sa(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(i=>sa(r,i))}):!1}async function ki(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];W(a,"No route found in manifest");let i={};for(let o in n){let l=a[o]!==void 0&&o!=="hasErrorBoundary";Je(!l,'Route "'+a.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!li.has(o)&&(i[o]=n[o])}Object.assign(a,i),Object.assign(a,te({},t(a),{lazy:void 0}))}async function Fi(e){let{matches:t}=e,r=t.filter(a=>a.shouldLoad);return(await Promise.all(r.map(a=>a.resolve()))).reduce((a,i,o)=>Object.assign(a,{[r[o].route.id]:i}),{})}async function zi(e,t,r,n,a,i,o,u,l,s){let c=i.map(g=>g.route.lazy?ki(g.route,l,u):void 0),d=i.map((g,_)=>{let S=c[_],b=a.some(C=>C.route.id===g.route.id);return te({},g,{shouldLoad:b,resolve:async C=>(C&&n.method==="GET"&&(g.route.lazy||g.route.loader)&&(b=!0),b?Bi(t,n,g,S,C,s):Promise.resolve({type:Q.data,result:void 0}))})}),v=await e({matches:d,request:n,params:i[0].params,fetcherKey:o,context:s});try{await Promise.all(c)}catch{}return v}async function Bi(e,t,r,n,a,i){let o,u,l=s=>{let c,d=new Promise((_,S)=>c=S);u=()=>c(),t.signal.addEventListener("abort",u);let v=_=>typeof s!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):s({request:t,params:r.params,context:i},..._!==void 0?[_]:[]),g=(async()=>{try{return{type:"data",result:await(a?a(S=>v(S)):v())}}catch(_){return{type:"error",result:_}}})();return Promise.race([g,d])};try{let s=r.route[e];if(n)if(s){let c,[d]=await Promise.all([l(s).catch(v=>{c=v}),n]);if(c!==void 0)throw c;o=d}else if(await n,s=r.route[e],s)o=await l(s);else if(e==="action"){let c=new URL(t.url),d=c.pathname+c.search;throw ve(405,{method:t.method,pathname:d,routeId:r.route.id})}else return{type:Q.data,result:void 0};else if(s)o=await l(s);else{let c=new URL(t.url),d=c.pathname+c.search;throw ve(404,{pathname:d})}W(o.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(s){return{type:Q.error,result:s}}finally{u&&t.signal.removeEventListener("abort",u)}return o}async function Hi(e){let{result:t,type:r}=e;if(ca(t)){let d;try{let v=t.headers.get("Content-Type");v&&/\bapplication\/json\b/.test(v)?t.body==null?d=null:d=await t.json():d=await t.text()}catch(v){return{type:Q.error,error:v}}return r===Q.error?{type:Q.error,error:new Wt(t.status,t.statusText,d),statusCode:t.status,headers:t.headers}:{type:Q.data,data:d,statusCode:t.status,headers:t.headers}}if(r===Q.error){if(xn(t)){var n,a;if(t.data instanceof Error){var i,o;return{type:Q.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status,headers:(o=t.init)!=null&&o.headers?new Headers(t.init.headers):void 0}}return{type:Q.error,error:new Wt(((n=t.init)==null?void 0:n.status)||500,void 0,t.data),statusCode:_t(t)?t.status:void 0,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}}return{type:Q.error,error:t,statusCode:_t(t)?t.status:void 0}}if(Yi(t)){var u,l;return{type:Q.deferred,deferredData:t,statusCode:(u=t.init)==null?void 0:u.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}if(xn(t)){var s,c;return{type:Q.data,data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(c=t.init)!=null&&c.headers?new Headers(t.init.headers):void 0}}return{type:Q.data,data:t}}function Wi(e,t,r,n,a,i){let o=e.headers.get("Location");if(W(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!zr.test(o)){let u=n.slice(0,n.findIndex(l=>l.route.id===r)+1);o=Cr(new URL(t.url),u,a,!0,o,i),e.headers.set("Location",o)}return e}function bn(e,t,r,n){let a=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(zr.test(e)){let i=e,o=i.startsWith("//")?new URL(t.protocol+i):new URL(i);if(a.includes(o.protocol))throw new Error("Invalid redirect location");let u=Ae(o.pathname,r)!=null;if(o.origin===t.origin&&u)return o.pathname+o.search+o.hash}try{let i=n.createURL(e);if(a.includes(i.protocol))throw new Error("Invalid redirect location")}catch{}return e}function at(e,t,r,n){let a=e.createURL(ua(t)).toString(),i={signal:r};if(n&&be(n.formMethod)){let{formMethod:o,formEncType:u}=n;i.method=o.toUpperCase(),u==="application/json"?(i.headers=new Headers({"Content-Type":u}),i.body=JSON.stringify(n.json)):u==="text/plain"?i.body=n.text:u==="application/x-www-form-urlencoded"&&n.formData?i.body=Tr(n.formData):i.body=n.formData}
2return new Request(a,i)}function Tr(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function Rn(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function $i(e,t,r,n,a){let i={},o=null,u,l=!1,s={},c=r&&ge(r[1])?r[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let v=d.route.id,g=t[v];if(W(!qe(g),"Cannot handle redirect results in processLoaderData"),ge(g)){let _=g.error;c!==void 0&&(_=c,c=void 0),o=o||{};{let S=Ge(e,v);o[S.route.id]==null&&(o[S.route.id]=_)}i[v]=void 0,l||(l=!0,u=_t(g.error)?g.error.status:500),g.headers&&(s[v]=g.headers)}else ze(g)?(n.set(v,g.deferredData),i[v]=g.deferredData.data,g.statusCode!=null&&g.statusCode!==200&&!l&&(u=g.statusCode),g.headers&&(s[v]=g.headers)):(i[v]=g.data,g.statusCode&&g.statusCode!==200&&!l&&(u=g.statusCode),g.headers&&(s[v]=g.headers))}),c!==void 0&&r&&(o={[r[0]]:c},i[r[0]]=void 0),{loaderData:i,errors:o,statusCode:u||200,loaderHeaders:s}}function Sn(e,t,r,n,a,i,o){let{loaderData:u,errors:l}=$i(t,r,n,o);return a.forEach(s=>{let{key:c,match:d,controller:v}=s,g=i[c];if(W(g,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(ge(g)){let _=Ge(e.matches,d?.route.id);l&&l[_.route.id]||(l=te({},l,{[_.route.id]:g.error})),e.fetchers.delete(c)}else if(qe(g))W(!1,"Unhandled fetcher revalidation redirect");else if(ze(g))W(!1,"Unhandled fetcher deferred data");else{let _=Fe(g.data);e.fetchers.set(c,_)}}),{loaderData:u,errors:l}}function Cn(e,t,r,n){let a=te({},t);for(let i of r){let o=i.route.id;if(t.hasOwnProperty(o)?t[o]!==void 0&&(a[o]=t[o]):e[o]!==void 0&&i.route.loader&&(a[o]=e[o]),n&&n.hasOwnProperty(o))break}return a}function Pn(e){return e?ge(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ge(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 Tn(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 ve(e,t){let{pathname:r,routeId:n,method:a,type:i,message:o}=t===void 0?{}:t,u="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(u="Bad Request",a&&r&&n?l="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.":i==="defer-action"?l="defer() is not supported in actions":i==="invalid-body"&&(l="Unable to encode submission body")):e===403?(u="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):e===404?(u="Not Found",l='No route matches URL "'+r+'"'):e===405&&(u="Method Not Allowed",a&&r&&n?l="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&&(l='Invalid request method "'+a.toUpperCase()+'"')),new Wt(e||500,u,new Error(l),!0)}function At(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(qe(a))return{key:n,result:a}}}function ua(e){let t=typeof e=="string"?je(e):e;return Xe(te({},t,{hash:""}))}function Vi(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ki(e){return ca(e.result)&&Oi.has(e.result.status)}function ze(e){return e.type===Q.deferred}function ge(e){return e.type===Q.error}function qe(e){return(e&&e.type)===Q.redirect}function xn(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Yi(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 ca(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Gi(e){return Mi.has(e.toLowerCase())}function be(e){return xi.has(e.toLowerCase())}async function qi(e,t,r,n,a){let i=Object.entries(t);for(let o=0;o<i.length;o++){let[u,l]=i[o],s=e.find(v=>v?.route.id===u);if(!s)continue;let c=n.find(v=>v.route.id===s.route.id),d=c!=null&&!la(c,s)&&(a&&a[s.route.id])!==void 0;ze(l)&&d&&await Br(l,r,!1).then(v=>{v&&(t[u]=v)})}}async function Ji(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:i,controller:o}=r[n],u=t[a];e.find(s=>
2s?.route.id===i)&&ze(u)&&(W(o,"Expected an AbortController for revalidating fetcher deferred result"),await Br(u,o.signal,!0).then(s=>{s&&(t[a]=s)}))}}async function Br(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:Q.data,data:e.deferredData.unwrappedData}}catch(a){return{type:Q.error,error:a}}return{type:Q.data,data:e.deferredData.data}}}function Hr(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function mt(e,t){let r=typeof t=="string"?je(t).search:t.search;if(e[e.length-1].route.index&&Hr(r||""))return e[e.length-1];let n=aa(e);return n[n.length-1]}function Dn(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:i,json:o}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:i,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:o,text:void 0}}}function gr(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 Xi(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 pt(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 Qi(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 Fe(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 Zi(e,t){try{let r=e.sessionStorage.getItem(oa);if(r){let n=JSON.parse(r);for(let[a,i]of Object.entries(n||{}))i&&Array.isArray(i)&&t.set(a,new Set(i||[]))}}catch{}}function eo(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(oa,JSON.stringify(r))}catch(n){Je(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}function Et(){return Et=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},Et.apply(this,arguments)}const Ct=w.createContext(null),Wr=w.createContext(null),Ie=w.createContext(null),er=w.createContext(null),Pe=w.createContext({outlet:null,matches:[],isDataRoute:!1}),fa=w.createContext(null);function to(e,t){let{relative:r}=t===void 0?{}:t;st()||W(!1);let{basename:n,navigator:a}=w.useContext(Ie),{hash:i,pathname:o,search:u}=tr(e,{relative:r}),l=o;return n!=="/"&&(l=o==="/"?n:Oe([n,o])),a.createHref({pathname:l,search:u,hash:i})}function st(){return w.useContext(er)!=null}function Ze(){return st()||W(!1),w.useContext(er).location}function da(e){w.useContext(Ie).static||w.useLayoutEffect(e)}function $r(){let{isDataRoute:e}=w.useContext(Pe);return e?mo():ro()}function ro(){st()||W(!1);let e=w.useContext(Ct),{basename:t,future:r,navigator:n}=w.useContext(Ie),{matches:a}=w.useContext(Pe),{pathname:i}=Ze(),o=JSON.stringify(Qt(a,r.v7_relativeSplatPath)),u=w.useRef(!1);return da(()=>{u.current=!0}),w.useCallback(function(s,c){if(c===void 0&&(c={}),!u.current)return;if(typeof s=="number"){n.go(s);return}let d=Zt(s,JSON.parse(o),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Oe([t,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[t,n,o,i,e])}const no=w.createContext(null);function ao(e){let t=w.useContext(Pe).outlet;return t&&w.createElement(no.Provider,{value:e},t)}function ms(){let{matches:e}=w.useContext(Pe),t=e[e.length-1];return t?t.params:{}}function tr(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=w.useContext(Ie),{matches:a}=w.useContext(Pe),{pathname:i}=Ze(),o=JSON.stringify(Qt(a,n.v7_relativeSplatPath));return w.useMemo(()=>Zt(e,JSON.parse(o),i,r==="path"),[e,o,i,r])}function io(e,t){return ha(e,t)}function ha(e,t,r,n){st()||W(!1);let{navigator:a}=w.useContext(Ie),{matches:i}=w.useContext(Pe),o=i[i.length-1],u=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let s=Ze(),c;if(t){var d;let b=typeof t=="string"?je(t):t;l==="/"||(d=b.pathname)!=null&&d.startsWith(l)||W(!1),c=b}else c=s;let v=c.pathname||"/",g=v;if(l!=="/"){let b=l.replace(/^\//,"").split("/");g="/"+v.replace(/^\//,"").split("/").slice(b.length).join("/")}let _=Ye(e,{pathname:g}),S=co(_&&_.map(b=>Object.assign({},b,{params:Object.assign({},u,b.params),pathname:Oe([l,a.encodeLocation?a.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:Oe([l,a.encodeLocation?a.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),i,r,n);return t&&S?w.createElement(er.Provider,{value:{location:Et({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:ie.Pop}},S):S}function oo(){let e=yo(),t=_t(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 w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application
2Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),r?w.createElement("pre",{style:a},r):null,null)}const lo=w.createElement(oo,null);class so extends w.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?w.createElement(Pe.Provider,{value:this.props.routeContext},w.createElement(fa.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function uo(e){let{routeContext:t,match:r,children:n}=e,a=w.useContext(Ct);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),w.createElement(Pe.Provider,{value:t},n)}function co(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,u=(a=r)==null?void 0:a.errors;if(u!=null){let c=o.findIndex(d=>d.route.id&&u?.[d.route.id]!==void 0);c>=0||W(!1),o=o.slice(0,Math.min(o.length,c+1))}let l=!1,s=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c<o.length;c++){let d=o[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(s=c),d.route.id){let{loaderData:v,errors:g}=r,_=d.route.loader&&v[d.route.id]===void 0&&(!g||g[d.route.id]===void 0);if(d.route.lazy||_){l=!0,s>=0?o=o.slice(0,s+1):o=[o[0]];break}}}return o.reduceRight((c,d,v)=>{let g,_=!1,S=null,b=null;r&&(g=u&&d.route.id?u[d.route.id]:void 0,S=d.route.errorElement||lo,l&&(s<0&&v===0?(vo("route-fallback"),_=!0,b=null):s===v&&(_=!0,b=d.route.hydrateFallbackElement||null)));let D=t.concat(o.slice(0,v+1)),C=()=>{let P;return g?P=S:_?P=b:d.route.Component?P=w.createElement(d.route.Component,null):d.route.element?P=d.route.element:P=c,w.createElement(uo,{match:d,routeContext:{outlet:c,matches:D,isDataRoute:r!=null},children:P})};return r&&(d.route.ErrorBoundary||d.route.errorElement||v===0)?w.createElement(so,{location:r.location,revalidation:r.revalidation,component:S,error:g,children:C(),routeContext:{outlet:null,matches:D,isDataRoute:!0}}):C()},null)}var pa=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(pa||{}),ya=(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})(ya||{});function fo(e){let t=w.useContext(Ct);return t||W(!1),t}function ho(e){let t=w.useContext(Wr);return t||W(!1),t}function po(e){let t=w.useContext(Pe);return t||W(!1),t}function ma(e){let t=po(),r=t.matches[t.matches.length-1];return r.route.id||W(!1),r.route.id}function yo(){var e;let t=w.useContext(fa),r=ho(),n=ma();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function mo(){let{router:e}=fo(pa.UseNavigateStable),t=ma(ya.UseNavigateStable),r=w.useRef(!1);return da(()=>{r.current=!0}),w.useCallback(function(a,i){i===void 0&&(i={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,Et({fromRouteId:t},i)))},[e,t])}const Mn={};function vo(e,t,r){Mn[e]||(Mn[e]=!0)}function go(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function vs(e){let{to:t,replace:r,state:n,relative:a}=e;st()||W(!1);let{future:i,static:o}=w.useContext(Ie),{matches:u}=w.useContext(Pe),{pathname:l}=Ze(),s=$r(),c=Zt(t,Qt(u,i.v7_relativeSplatPath),l,a==="path"),d=JSON.stringify(c);return w.useEffect(()=>s(JSON.parse(d),{replace:r,state:n,relative:a}),[s,d,a,r,n]),null}function gs(e){return ao(e.context)}function wo(e){W(!1)}function _o(e){let{basename:t="/",children:r=null,location:n,navigationType:a=ie.Pop,navigator:i,static:o=!1,future:u}=e;st()&&W(!1);let l=t.replace(/^\/*/,"/"),s=w.useMemo(()=>({basename:l,navigator:i,static:o,future:Et({v7_relativeSplatPath:!1},u)}),[l,u,i,o]);typeof n=="string"&&(n=je(n));let{pathname:c="/",search:d="",hash:v="",state:g=null,key:_="default"}=n,S=w.useMemo(()=>{let b=Ae(c,l);return b==null?null:{location:{pathname:b,search:d,hash:v,state:g,key:_},navigationType:a}},[l,c,d,v,g,_,a]);return S==null?null:w.createElement(Ie.Provider,{value:s},w.createElement(er.Provider,{children:r,value:S}))}function ws(e){let{children:t,location:r}=e;return io(xr(t),r)}new Promise(()=>{});function xr(e,t){t===void 0&&(t=[]);let r=[];
2return w.Children.forEach(e,(n,a)=>{if(!w.isValidElement(n))return;let i=[...t,a];if(n.type===w.Fragment){r.push.apply(r,xr(n.props.children,i));return}n.type!==wo&&W(!1),!n.props.index||!n.props.children||W(!1);let o={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=xr(n.props.children,i)),r.push(o)}),r}function Eo(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:w.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:w.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:w.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function ot(){return ot=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},ot.apply(this,arguments)}function va(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function bo(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ro(e,t){return e.button===0&&(!t||t==="_self")&&!bo(e)}function Dr(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(a=>[r,a]):[[r,n]])},[]))}function So(e,t){let r=Dr(e);return t&&t.forEach((n,a)=>{r.has(a)||t.getAll(a).forEach(i=>{r.append(a,i)})}),r}const Co=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Po=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],To="6";try{window.__reactRouterVersion=To}catch{}function _s(e,t){return ji({basename:t?.basename,future:ot({},t?.future,{v7_prependBasename:!0}),history:ai({window:t?.window}),hydrationData:t?.hydrationData||xo(),routes:e,mapRouteProperties:Eo,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function xo(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=ot({},t,{errors:Do(t.errors)})),t}function Do(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,a]of t)if(a&&a.__type==="RouteErrorResponse")r[n]=new Wt(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let i=window[a.__subType];if(typeof i=="function")try{let o=new i(a.message);o.stack="",r[n]=o}catch{}}if(r[n]==null){let i=new Error(a.message);i.stack="",r[n]=i}}else r[n]=a;return r}const ga=w.createContext({isTransitioning:!1}),Mo=w.createContext(new Map),Oo="startTransition",On=Za[Oo],Lo="flushSync",Ln=ni[Lo];function Ao(e){On?On(e):e()}function yt(e){Ln?Ln(e):e()}class No{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function Es(e){let{fallbackElement:t,router:r,future:n}=e,[a,i]=w.useState(r.state),[o,u]=w.useState(),[l,s]=w.useState({isTransitioning:!1}),[c,d]=w.useState(),[v,g]=w.useState(),[_,S]=w.useState(),b=w.useRef(new Map),{v7_startTransition:D}=n||{},C=w.useCallback(x=>{D?Ao(x):x()},[D]),P=w.useCallback((x,G)=>{let{deletedFetchers:B,flushSync:ee,viewTransitionOpts:re}=G;x.fetchers.forEach((se,_e)=>{se.data!==void 0&&b.current.set(_e,se.data)}),B.forEach(se=>b.current.delete(se));let fe=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!re||fe){ee?yt(()=>i(x)):C(()=>i(x));return}if(ee){yt(()=>{v&&(c&&c.resolve(),v.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:re.currentLocation,nextLocation:re.nextLocation})});let se=r.window.document.startViewTransition(()=>{yt(()=>i(x))});se.finished.finally(()=>{yt(()=>{d(void 0),g(void 0),u(void 0),s({isTransitioning:!1})})}),yt(()=>g(se));return}v?(c&&c.resolve(),v.skipTransition(),S({state:x,currentLocation:re.currentLocation,nextLocation:re.nextLocation})):(u(x),s({isTransitioning:!0,flushSync:!1,currentLocation:re.currentLocation,nextLocation:re.nextLocation}))},[r.window,v,c,b,C]);w.useLayoutEffect(()=>r.subscribe(P),[r,P]),w.useEffect(()=>{l.isTransitioning&&!l.flushSync&&d(new No)},[l]),w.useEffect(()=>{if(c&&o&&r.window){let x=o,G=c.promise,B=r.window.document.startViewTransition(async()=>{C(()=>i(x)),await G});B.finished.finally(()=>{d(void 0),g(void 0),u(void 0),s({isTransitioning:!1})}),g(B)}},[C,o,c,r.window]),w.useEffect(()=>{c&&o&&a.location.key===o.location.key&&c.resolve()},[c,v,a.location,o]),w.useEffect(()=>{!l.isTransitioning&&_&&(u(_.state),s({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}),S(void 0))},[l.isTransitioning,_]),w.useEffect(()=>{},[]);let M=w.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:x=>r.navigate(x),push:(x,G,B)=>r.navigate(x,{state:G,preventScrollReset:B?.preventScrollReset}),replace:(x,G,B)=>r.navigate(x,{replace:!0,state:G,preventScrollReset:B?.preventScrollReset})}),[r]),O=r.basename||"/",Y=w.useMemo(()=>({router:r,navigator:M,static:!1,basename:O}),[r,M,O]),p=w.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return w.useEffect(()=>go(n,r.future),[n,r.future]),w.createElement(w.Fragment,null,w.createElement(Ct.Provider,{value:Y},w.createElement(Wr.Provider,{value:a},w.createElement(Mo.Provider,{value:b.current},w.createElement(ga.Provider,{value:l},w.createElement(_o,{basename:O,location:a.location,navigationType:a.historyAction,navigator:M,future:p},a.initialized||r.future.v7_partialHydration?w.createElement(jo,{routes:r.routes,future:r.future,state:a}):t))))),null)}const jo=w.memo(Io);function Io(e){let{routes:t,future:r,state:n}=e;return ha(t,void 0,n,r)}const Uo=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ko=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fo=w.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:i,replace:o,state:u,target:l,to:s,preventScrollReset:c,viewTransition:d}=t,v=va(t,Co),{basename:g}=w.useContext(Ie),_,S=!1;if(typeof s=="string"&&ko.test(s)&&(_=s,Uo))try{let P=new URL(window.location.href),M=s.startsWith("//")?new URL(P.protocol+s):new URL(s),O=Ae(M.pathname,g);M.origin===P.origin&&O!=null?s=O+M.search+M.hash:S=!0}catch{}let b=to(s,{relative:a}),D=Bo(s,{replace:o,state:u,target:l,preventScrollReset:c,relative:a,viewTransition:d});function C(P){n&&n(P),P.defaultPrevented||D(P)}return w.createElement("a",ot({},v,{href:_||b,onClick:S||i?n:C,ref:r,target:l}))}),bs=w.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:a=!1,className:i="",end:o=!1,style:u,to:l,viewTransition:s,children:c}=t,d=va(t,Po),v=tr(l,{relative:d.relative}),g=Ze(),_=w.useContext(Wr),{navigator:S,basename:b}=w.useContext(Ie),D=_!=null&&Ho(v)&&s===!0,C=S.encodeLocation?S.encodeLocation(v).pathname:v.pathname,P=g.pathname,M=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;a||(P=P.toLowerCase(),M=M?M.toLowerCase():null,C=C.toLowerCase()),M&&b&&(M=Ae(M,b)||M);const O=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let Y=P===C||!o&&P.startsWith(C)&&P.charAt(O)==="/",p=M!=null&&(M===C||!o&&M.startsWith(C)&&M.charAt(C.length)==="/"),x={isActive:Y,isPending:p,isTransitioning:D},G=Y?n:void 0,B;
2typeof i=="function"?B=i(x):B=[i,Y?"active":null,p?"pending":null,D?"transitioning":null].filter(Boolean).join(" ");let ee=typeof u=="function"?u(x):u;return w.createElement(Fo,ot({},d,{"aria-current":G,className:B,ref:r,style:ee,to:l,viewTransition:s}),typeof c=="function"?c(x):c)});var Mr;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Mr||(Mr={}));var An;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(An||(An={}));function zo(e){let t=w.useContext(Ct);return t||W(!1),t}function Bo(e,t){let{target:r,replace:n,state:a,preventScrollReset:i,relative:o,viewTransition:u}=t===void 0?{}:t,l=$r(),s=Ze(),c=tr(e,{relative:o});return w.useCallback(d=>{if(Ro(d,r)){d.preventDefault();let v=n!==void 0?n:Xe(s)===Xe(c);l(e,{replace:v,state:a,preventScrollReset:i,relative:o,viewTransition:u})}},[s,l,c,n,a,r,e,i,o,u])}function Rs(e){let t=w.useRef(Dr(e)),r=w.useRef(!1),n=Ze(),a=w.useMemo(()=>So(n.search,r.current?null:t.current),[n.search]),i=$r(),o=w.useCallback((u,l)=>{const s=Dr(typeof u=="function"?u(a):u);r.current=!0,i("?"+s,l)},[i,a]);return[a,o]}function Ho(e,t){t===void 0&&(t={});let r=w.useContext(ga);r==null&&W(!1);let{basename:n}=zo(Mr.useViewTransitionState),a=tr(e,{relative:t.relative});if(!r.isTransitioning)return!1;let i=Ae(r.currentLocation.pathname,n)||r.currentLocation.pathname,o=Ae(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Ht(a.pathname,o)!=null||Ht(a.pathname,i)!=null}var wr={exports:{}},_r={};var Nn;function Wo(){if(Nn)return _r;Nn=1;var e=Fr();function t(l,s){return l===s&&(l!==0||1/l===1/s)||l!==l&&s!==s}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,a=e.useRef,i=e.useEffect,o=e.useMemo,u=e.useDebugValue;return _r.useSyncExternalStoreWithSelector=function(l,s,c,d,v){var g=a(null);if(g.current===null){var _={hasValue:!1,value:null};g.current=_}else _=g.current;g=o(function(){function b(O){if(!D){if(D=!0,C=O,O=d(O),v!==void 0&&_.hasValue){var Y=_.value;if(v(Y,O))return P=Y}return P=O}if(Y=P,r(C,O))return Y;var p=d(O);return v!==void 0&&v(Y,p)?(C=O,Y):(C=O,P=p)}var D=!1,C,P,M=c===void 0?null:c;return[function(){return b(s())},M===null?void 0:function(){return b(M())}]},[s,c,d,v]);var S=n(l,g[0],g[1]);return i(function(){_.hasValue=!0,_.value=S},[S]),u(S),S},_r}var jn;function $o(){return jn||(jn=1,wr.exports=Wo()),wr.exports}var Vo=$o();function Ko(e){e()}function Yo(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Ko(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const a=t={callback:r,next:null,prev:t};return a.prev?a.prev.next=a:e=a,function(){!n||e===null||(n=!1,a.next?a.next.prev=a.prev:t=a.prev,a.prev?a.prev.next=a.next:e=a.next)}}}}var In={notify(){},get:()=>[]};function Go(e,t){let r,n=In,a=0,i=!1;function o(S){c();const b=n.subscribe(S);let D=!1;return()=>{D||(D=!0,b(),d())}}function u(){n.notify()}function l(){_.onStateChange&&_.onStateChange()}function s(){return i}function c(){a++,r||(r=e.subscribe(l),n=Yo())}function d(){a--,r&&a===0&&(r(),r=void 0,n.clear(),n=In)}function v(){i||(i=!0,c())}function g(){i&&(i=!1,d())}const _={addNestedSub:o,notifyNestedSubs:u,handleChangeWrapper:l,isSubscribed:s,trySubscribe:v,tryUnsubscribe:g,getListeners:()=>n};return _}var qo=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Jo=qo(),Xo=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Qo=Xo(),Zo=()=>Jo||Qo?w.useLayoutEffect:w.useEffect,el=Zo(),tl=Symbol.for("react-redux-context"),rl=typeof globalThis<"u"?globalThis:{};function nl(){if(!w.createContext)return{};const e=rl[tl]??=new Map;let t=e.get(w.createContext);return t||(t=w.createContext(null),e.set(w.createContext,t)),t}var Be=nl();function al(e){const{children:t,context:r,serverState:n,store:a}=e,i=w.useMemo(()=>{const l=Go(a);return{store:a,subscription:l,getServerState:n?()=>n:void 0}},[a,n]),o=w.useMemo(()=>a.getState(),[a]);el(()=>{const{subscription:l}=i;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),o!==a.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[i,o]);const u=r||Be;return w.createElement(u.Provider,{value:i},t)}var Ss=al;function Vr(e=Be){return function(){return w.useContext(e)}}var wa=Vr();function _a(e=Be){const t=e===Be?wa:Vr(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var il=_a();function ol(e=Be){const t=e===Be?il:_a(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var Cs=ol(),ll=(e,t)=>
2e===t;function sl(e=Be){const t=e===Be?wa:Vr(e),r=(n,a={})=>{const{equalityFn:i=ll}=typeof a=="function"?{equalityFn:a}:a,o=t(),{store:u,subscription:l,getServerState:s}=o;w.useRef(!0);const c=w.useCallback({[n.name](v){return n(v)}}[n.name],[n]),d=Vo.useSyncExternalStoreWithSelector(l.addNestedSub,u.getState,s||u.getState,c,i);return w.useDebugValue(d),d};return Object.assign(r,{withTypes:()=>r}),r}var Ps=sl();function ce(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ul=typeof Symbol=="function"&&Symbol.observable||"@@observable",Un=ul,Er=()=>Math.random().toString(36).substring(7).split("").join("."),cl={INIT:`@@redux/INIT${Er()}`,REPLACE:`@@redux/REPLACE${Er()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Er()}`},$t=cl;function Kr(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Ea(e,t,r){if(typeof e!="function")throw new Error(ce(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ce(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ce(1));return r(Ea)(e,t)}let n=e,a=t,i=new Map,o=i,u=0,l=!1;function s(){o===i&&(o=new Map,i.forEach((b,D)=>{o.set(D,b)}))}function c(){if(l)throw new Error(ce(3));return a}function d(b){if(typeof b!="function")throw new Error(ce(4));if(l)throw new Error(ce(5));let D=!0;s();const C=u++;return o.set(C,b),function(){if(D){if(l)throw new Error(ce(6));D=!1,s(),o.delete(C),i=null}}}function v(b){if(!Kr(b))throw new Error(ce(7));if(typeof b.type>"u")throw new Error(ce(8));if(typeof b.type!="string")throw new Error(ce(17));if(l)throw new Error(ce(9));try{l=!0,a=n(a,b)}finally{l=!1}return(i=o).forEach(C=>{C()}),b}function g(b){if(typeof b!="function")throw new Error(ce(10));n=b,v({type:$t.REPLACE})}function _(){const b=d;return{subscribe(D){if(typeof D!="object"||D===null)throw new Error(ce(11));function C(){const M=D;M.next&&M.next(c())}return C(),{unsubscribe:b(C)}},[Un](){return this}}}return v({type:$t.INIT}),{dispatch:v,subscribe:d,getState:c,replaceReducer:g,[Un]:_}}function fl(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:$t.INIT})>"u")throw new Error(ce(12));if(typeof r(void 0,{type:$t.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ce(13))})}function dl(e){const t=Object.keys(e),r={};for(let i=0;i<t.length;i++){const o=t[i];typeof e[o]=="function"&&(r[o]=e[o])}const n=Object.keys(r);let a;try{fl(r)}catch(i){a=i}return function(o={},u){if(a)throw a;let l=!1;const s={};for(let c=0;c<n.length;c++){const d=n[c],v=r[d],g=o[d],_=v(g,u);if(typeof _>"u")throw u&&u.type,new Error(ce(14));s[d]=_,l=l||_!==g}return l=l||n.length!==Object.keys(o).length,l?s:o}}function Vt(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function hl(...e){return t=>(r,n)=>{const a=t(r,n);let i=()=>{throw new Error(ce(15))};const o={getState:a.getState,dispatch:(l,...s)=>i(l,...s)},u=e.map(l=>l(o));return i=Vt(...u)(a.dispatch),{...a,dispatch:i}}}function pl(e){return Kr(e)&&"type"in e&&typeof e.type=="string"}var ba=Symbol.for("immer-nothing"),kn=Symbol.for("immer-draftable"),me=Symbol.for("immer-state");function Re(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var we=Object,lt=we.getPrototypeOf,Kt="constructor",rr="prototype",Or="configurable",Yt="enumerable",Ft="writable",bt="value",Ne=e=>!!e&&!!e[me];function Se(e){return e?Ra(e)||ar(e)||!!e[kn]||!!e[Kt]?.[kn]||ir(e)||or(e):!1}var yl=we[rr][Kt].toString(),Fn=new WeakMap;function Ra(e){if(!e||!Yr(e))return!1;const t=lt(e);if(t===null||t===we[rr])return!0;const r=we.hasOwnProperty.call(t,Kt)&&t[Kt];if(r===Object)return!0;if(!it(r))return!1;let n=Fn.get(r);return n===void 0&&(n=Function.toString.call(r),Fn.set(r,n)),n===yl}function nr(e,t,r=!0){Pt(e)===0?(r?Reflect.ownKeys(e):we.keys(e)).forEac
2h(a=>{t(a,e[a],e)}):e.forEach((n,a)=>t(a,n,e))}function Pt(e){const t=e[me];return t?t.type_:ar(e)?1:ir(e)?2:or(e)?3:0}var zn=(e,t,r=Pt(e))=>r===2?e.has(t):we[rr].hasOwnProperty.call(e,t),Lr=(e,t,r=Pt(e))=>r===2?e.get(t):e[t],Gt=(e,t,r,n=Pt(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function ml(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var ar=Array.isArray,ir=e=>e instanceof Map,or=e=>e instanceof Set,Yr=e=>typeof e=="object",it=e=>typeof e=="function",br=e=>typeof e=="boolean";function vl(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Me=e=>e.copy_||e.base_,Gr=e=>e.modified_?e.copy_:e.base_;function Ar(e,t){if(ir(e))return new Map(e);if(or(e))return new Set(e);if(ar(e))return Array[rr].slice.call(e);const r=Ra(e);if(t===!0||t==="class_only"&&!r){const n=we.getOwnPropertyDescriptors(e);delete n[me];let a=Reflect.ownKeys(n);for(let i=0;i<a.length;i++){const o=a[i],u=n[o];u[Ft]===!1&&(u[Ft]=!0,u[Or]=!0),(u.get||u.set)&&(n[o]={[Or]:!0,[Ft]:!0,[Yt]:u[Yt],[bt]:e[o]})}return we.create(lt(e),n)}else{const n=lt(e);if(n!==null&&r)return{...e};const a=we.create(n);return we.assign(a,e)}}function qr(e,t=!1){return lr(e)||Ne(e)||!Se(e)||(Pt(e)>1&&we.defineProperties(e,{set:Nt,add:Nt,clear:Nt,delete:Nt}),we.freeze(e),t&&nr(e,(r,n)=>{qr(n,!0)},!1)),e}function gl(){Re(2)}var Nt={[bt]:gl};function lr(e){return e===null||!Yr(e)?!0:we.isFrozen(e)}var qt="MapSet",Nr="Patches",Bn="ArrayMethods",Sa={};function Qe(e){const t=Sa[e];return t||Re(0,e),t}var Hn=e=>!!Sa[e],Rt,Ca=()=>Rt,wl=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Hn(qt)?Qe(qt):void 0,arrayMethodsPlugin_:Hn(Bn)?Qe(Bn):void 0});function Wn(e,t){t&&(e.patchPlugin_=Qe(Nr),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function jr(e){Ir(e),e.drafts_.forEach(_l),e.drafts_=null}function Ir(e){e===Rt&&(Rt=e.parent_)}var $n=e=>Rt=wl(Rt,e);function _l(e){const t=e[me];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Vn(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[me].modified_&&(jr(t),Re(4)),Se(e)&&(e=Kn(t,e));const{patchPlugin_:a}=t;a&&a.generateReplacementPatches_(r[me].base_,e,t)}else e=Kn(t,r);return El(t,e,!0),jr(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==ba?e:void 0}function Kn(e,t){if(lr(t))return t;const r=t[me];if(!r)return Jt(t,e.handledSet_,e);if(!sr(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);xa(r,e)}return r.copy_}function El(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&qr(t,r)}function Pa(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var sr=(e,t)=>
2e.scope_===t,bl=[];function Ta(e,t,r,n){const a=Me(e),i=e.type_;if(n!==void 0&&Lr(a,n,i)===t){Gt(a,n,r,i);return}if(!e.draftLocations_){const u=e.draftLocations_=new Map;nr(a,(l,s)=>{if(Ne(s)){const c=u.get(s)||[];c.push(l),u.set(s,c)}})}const o=e.draftLocations_.get(t)??bl;for(const u of o)Gt(a,u,r,i)}function Rl(e,t,r){e.callbacks_.push(function(a){const i=t;if(!i||!sr(i,a))return;a.mapSetPlugin_?.fixSetContents(i);const o=Gr(i);Ta(e,i.draft_??i,o,r),xa(i,a)})}function xa(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:n}=t;if(n){const a=n.getPath(e);a&&n.generatePatches_(e,a,t)}Pa(e)}}function Sl(e,t,r){const{scope_:n}=e;if(Ne(r)){const a=r[me];sr(a,n)&&a.callbacks_.push(function(){zt(e);const o=Gr(a);Ta(e,r,o,t)})}else Se(r)&&e.callbacks_.push(function(){const i=Me(e);e.type_===3?i.has(r)&&Jt(r,n.handledSet_,n):Lr(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Jt(Lr(e.copy_,t,e.type_),n.handledSet_,n)})}function Jt(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Ne(e)||t.has(e)||!Se(e)||lr(e)||(t.add(e),nr(e,(n,a)=>{if(Ne(a)){const i=a[me];if(sr(i,r)){const o=Gr(i);Gt(e,n,o,e.type_),Pa(i)}}else Se(a)&&Jt(a,t,r)})),e}function Cl(e,t){const r=ar(e),n={type_:r?1:0,scope_:t?t.scope_:Ca(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let a=n,i=Xt;r&&(a=[n],i=St);const{revoke:o,proxy:u}=Proxy.revocable(a,i);return n.draft_=u,n.revoke_=o,[u,n]}var Xt={get(e,t){if(t===me)return e;let r=e.scope_.arrayMethodsPlugin_;const n=e.type_===1&&typeof t=="string";if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const a=Me(e);if(!zn(a,t,e.type_))return Pl(e,a,t);const i=a[t];if(e.finalized_||!Se(i)||n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&vl(t))return i;if(i===Rr(e.base_,t)){zt(e);const o=e.type_===1?+t:t,u=kr(e.scope_,i,e,o);return e.copy_[o]=u}return i},has(e,t){return t in Me(e)},ownKeys(e){return Reflect.ownKeys(Me(e))},set(e,t,r){const n=Da(Me(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const a=Rr(Me(e),t),i=a?.[me];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(ml(r,a)&&(r!==void 0||zn(e.base_,t,e.type_)))return!0;zt(e),Ur(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),Sl(e,t,r)),!0},deleteProperty(e,t){return zt(e),Rr(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ur(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Me(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[Ft]:!0,[Or]:e.type_!==1||t!=="length",[Yt]:n[Yt],[bt]:r[t]}},defineProperty(){Re(11)},getPrototypeOf(e){return lt(e.base_)},setPrototypeOf(){Re(12)}},St={};for(let e in Xt){let t=Xt[e];St[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}}St.deleteProperty=function(e,t){return St.set.call(this,e,t,void 0)};St.set=function(e,t,r){return Xt.set.call(this,e[0],t,r,e[0])};function Rr(e,t){const r=e[me];return(r?Me(r):e)[t]}function Pl(e,t,r){const n=Da(t,r);return n?bt in n?n[bt]:n.get?.call(e.draft_):void 0}function Da(e,t){if(!(t in e))return;let r=lt(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=lt(r)}}function Ur(e){e.modified_||(e.modified_=!0,e.parent_&&Ur(e.parent_))}function zt(e){e.copy_||(e.assigned_=new Map,e.copy_=Ar(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Tl=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,r,n)=>{if(it(t)&&!it(r)){const i=r;r=t;const o=this;return function(l=i,...s){return o.produce(l,c=>r.call(this,c,...s))}}it(r)||Re(6),n!==void 0&&!it(n)&&Re(7);let a;if(Se(t)){const i=$n(this),o=kr(i,t,void 0);let u=!0;try{a=r(o),u=!1}finally{u?jr(i):Ir(i)}return Wn(i,n),Vn(a,i)}else if(!t||!Yr(t)){if(a=r(t),a===void 0&&(a=t),a===ba&&(a=void 0),this.autoFreeze_&&qr(a,!0),n){const i=[],o=[];Qe(Nr).generateReplacementPatches_(t,a,{patches_:i,inversePatches_:o}),n(i,o)}return a}else Re(1,t)},this.produceWithPatches=(t,r)=>{if(it(t))return(o,...u)=>this.produceWithPatches(o,l=>t(l,...u));let n,a;return[this.produce(t,r,(o,u)=>{n=o,a=u}),n,a]},br(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),br(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),br(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Se(e)||Re(8),Ne(e)&&(e=xl(e));const t=$n(this),r=kr(t,e,void 0);return r[me].isManual_=!0,Ir(t),r}finishDraft(e,t){const r=e&&e[me];(!r||!r.isManual_)&&Re(9);const{scope_:n}=r;return Wn(n,t),Vn(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const a=t[r];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}r>
2-1&&(t=t.slice(r+1));const n=Qe(Nr).applyPatches_;return Ne(e)?n(e,t):this.produce(e,a=>n(a,t))}};function kr(e,t,r,n){const[a,i]=ir(t)?Qe(qt).proxyMap_(t,r):or(t)?Qe(qt).proxySet_(t,r):Cl(t,r);return(r?.scope_??Ca()).drafts_.push(a),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&n!==void 0?Rl(r,i,n):i.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(i);const{patchPlugin_:s}=l;i.modified_&&s&&s.generatePatches_(i,[],l)}),a}function xl(e){return Ne(e)||Re(10,e),Ma(e)}function Ma(e){if(!Se(e)||lr(e))return e;const t=e[me];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Ar(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Ar(e,!0);return nr(r,(a,i)=>{Gt(r,a,Ma(i))},n),t&&(t.finalized_=!1),r}var Dl=new Tl,Oa=Dl.produce;function Ml(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Ol(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Ll(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Yn=e=>Array.isArray(e)?e:[e];function Al(e){const t=Array.isArray(e[0])?e[0]:e;return Ll(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Nl(e,t){const r=[],{length:n}=e;for(let a=0;a<n;a++)r.push(e[a].apply(null,t));return r}var jl=class{constructor(e){this.value=e}deref(){return this.value}},Il=typeof WeakRef<"u"?WeakRef:jl,Ul=0,Gn=1;function jt(){return{s:Ul,v:void 0,o:null,p:null}}function La(e,t={}){let r=jt();const{resultEqualityCheck:n}=t;let a,i=0;function o(){let u=r;const{length:l}=arguments;for(let d=0,v=l;d<v;d++){const g=arguments[d];if(typeof g=="function"||typeof g=="object"&&g!==null){let _=u.o;_===null&&(u.o=_=new WeakMap);const S=_.get(g);S===void 0?(u=jt(),_.set(g,u)):u=S}else{let _=u.p;_===null&&(u.p=_=new Map);const S=_.get(g);S===void 0?(u=jt(),_.set(g,u)):u=S}}const s=u;let c;if(u.s===Gn)c=u.v;else if(c=e.apply(null,arguments),i++,n){const d=a?.deref?.()??a;d!=null&&n(d,c)&&(c=d,i!==0&&i--),a=typeof c=="object"&&c!==null||typeof c=="function"?new Il(c):c}return s.s=Gn,s.v=c,c}return o.clearCache=()=>{r=jt(),o.resetResultsCount()},o.resultsCount=()=>i,o.resetResultsCount=()=>{i=0},o}function kl(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...a)=>{let i=0,o=0,u,l={},s=a.pop();typeof s=="object"&&(l=s,s=a.pop()),Ml(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);const c={...r,...l},{memoize:d,memoizeOptions:v=[],argsMemoize:g=La,argsMemoizeOptions:_=[]}=c,S=Yn(v),b=Yn(_),D=Al(a),C=d(function(){return i++,s.apply(null,arguments)},...S),P=g(function(){o++;const O=Nl(D,arguments);return u=C.apply(null,O),u},...b);return Object.assign(P,{resultFunc:s,memoizedResultFunc:C,dependencies:D,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>u,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:d,argsMemoize:g})};return Object.assign(n,{withTypes:()=>n}),n}var Fl=kl(La),zl=Object.assign((e,t=Fl)=>{Ol(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(i=>e[i]);return t(n,(...i)=>i.reduce((o,u,l)=>(o[r[l]]=u,o),{}))},{withTypes:()=>zl});function Aa(e){return({dispatch:r,getState:n})=>a=>i=>typeof i=="function"?i(r,n,e):a(i)}var Bl=Aa(),Hl=Aa,Wl=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Vt:Vt.apply(null,arguments)},$l=e=>e&&typeof e.match=="function";function gt(e,t){function r(...n){if(t){let a=t(...n);if(!a)throw new Error(Le(0));return{type:e,payload:a.payload,..."meta"in a&&{meta:a.meta},..."error"in a&&{error:a.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>pl(n)&&n.type===e,r}var Na=class vt extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,vt.prototype)}static get[Symbol.species](){return vt}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new vt(...t[0].concat(this)):new vt(...t.concat(this))}};function qn(e){return Se(e)?Oa(e,()=>{}):e}function It(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Vl(e){return typeof e=="boolean"}var Kl=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:a=!0,actionCreatorCheck:i=!0}=t??{};let o=new Na;return r&&(Vl(r)?o.push(Bl):o.push(Hl(r.extraArgument))),o},Yl="RTK_autoBatch",Jn=e=>t=>{setTimeout(t,e)},Gl=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let a=!0,i=!1,o=!1;const u=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Jn(10):e.type==="callback"?e.queueNotification:Jn(e.timeout),s=()=>{o=!1,i&&(i=!1,u.forEach(c=>c()))};return Object.assign({},n,{subscribe(c){const d=()=>a&&c(),v=n.subscribe(d);return u.add(c),()=>{v(),u.delete(c)}},dispatch(c){try{return a=!c?.meta?.[Yl],i=!a,i&&(o||(o=!0,l(s))),n.dispatch(c)}finally{a=!0}}})},ql=e=>function(r){const{autoBatch:n=!0}=r??{};let a=new Na(e);return n&&a.push(Gl(typeof n=="object"?n:void 0)),a};function Ts(e){const t=Kl(),{reducer:r=void 0,middleware:n,devTools:a=!0,preloadedState:i=void 0,enhancers:o=void 0}=e||{};let u;if(typeof r=="function")u=r;else if(Kr(r))u=dl(r);else throw new Error(Le(1));let l;typeof n=="function"?l=n(t):l=t();let s=Vt;a&&(s=Wl({trace:!1,...typeof a=="object"&&a}));const c=hl(...l),d=ql(c);let v=typeof o=="function"?o(d):d();const g=s(...v);return Ea(u,i,g)}function ja(e){const t={},r=[];let n;const a={addCase(i,o){const u=typeof i=="string"?i:i.type;if(!u)throw new Error(Le(28));if(u in t)throw new Error(Le(29));return t[u]=o,a},addAsyncThunk(i,o){return o.pending&&(t[i.pending.type]=o.pending),o.rejected&&(t[i.rejected.type]=o.rejected),o.fulfilled&&(t[i.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:i.settled,reducer:o.settled}),a},addMatcher(i,o){return r.push({matcher:i,reducer:o}),a},addDefaultCase(i){return n=i,a}};return e(a),[t,r,n]}function Jl(e){return typeof e=="function"}function Xl(e,t){let[r,n,a]=ja(t),i;if(Jl(e))i=()=>qn(e());else{const u=qn(e);i=()=>u}function o(u=i(),l){let s=[r[l.type],...n.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return s.filter(c=>!!c).length===0&&(s=[a]),s.reduce((c,d)=>
2{if(d)if(Ne(c)){const g=d(c,l);return g===void 0?c:g}else{if(Se(c))return Oa(c,v=>d(v,l));{const v=d(c,l);if(v===void 0){if(c===null)return c;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}}return c},u)}return o.getInitialState=i,o}var Ql=(e,t)=>$l(e)?e.match(t):e(t);function Zl(...e){return t=>e.some(r=>Ql(r,t))}var es="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ts=(e=21)=>{let t="",r=e;for(;r--;)t+=es[Math.random()*64|0];return t},rs=["name","message","stack","code"],Sr=class{constructor(e,t){this.payload=e,this.meta=t}_type},Xn=class{constructor(e,t){this.payload=e,this.meta=t}_type},ns=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of rs)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Qn="External signal was aborted",xs=(()=>{function e(t,r,n){const a=gt(t+"/fulfilled",(l,s,c,d)=>({payload:l,meta:{...d||{},arg:c,requestId:s,requestStatus:"fulfilled"}})),i=gt(t+"/pending",(l,s,c)=>({payload:void 0,meta:{...c||{},arg:s,requestId:l,requestStatus:"pending"}})),o=gt(t+"/rejected",(l,s,c,d,v)=>({payload:d,error:(n&&n.serializeError||ns)(l||"Rejected"),meta:{...v||{},arg:c,requestId:s,rejectedWithValue:!!d,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function u(l,{signal:s}={}){return(c,d,v)=>{const g=n?.idGenerator?n.idGenerator(l):ts(),_=new AbortController;let S,b;function D(P){b=P,_.abort()}s&&(s.aborted?D(Qn):s.addEventListener("abort",()=>D(Qn),{once:!0}));const C=(async function(){let P;try{let O=n?.condition?.(l,{getState:d,extra:v});if(is(O)&&(O=await O),O===!1||_.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const Y=new Promise((p,x)=>{S=()=>{x({name:"AbortError",message:b||"Aborted"})},_.signal.addEventListener("abort",S,{once:!0})});c(i(g,l,n?.getPendingMeta?.({requestId:g,arg:l},{getState:d,extra:v}))),P=await Promise.race([Y,Promise.resolve(r(l,{dispatch:c,getState:d,extra:v,requestId:g,signal:_.signal,abort:D,rejectWithValue:(p,x)=>new Sr(p,x),fulfillWithValue:(p,x)=>new Xn(p,x)})).then(p=>{if(p instanceof Sr)throw p;return p instanceof Xn?a(p.payload,g,l,p.meta):a(p,g,l)})])}catch(O){P=O instanceof Sr?o(null,g,l,O.payload,O.meta):o(O,g,l)}finally{S&&_.signal.removeEventListener("abort",S)}return n&&!n.dispatchConditionRejection&&o.match(P)&&P.meta.condition||c(P),P})();return Object.assign(C,{abort:D,requestId:g,arg:l,unwrap(){return C.then(as)}})}}return Object.assign(u,{pending:i,rejected:o,fulfilled:a,settled:Zl(o,a),typePrefix:t})}return e.withTypes=()=>e,e})();function as(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function is(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var os=Symbol.for("rtk-slice-createasyncthunk");function ls(e,t){return`${e}/${t}`}function ss({creators:e}={}){const t=e?.asyncThunk?.[os];return function(n){const{name:a,reducerPath:i=a}=n;if(!a)throw new Error(Le(11));const o=(typeof n.reducers=="function"?n.reducers(cs()):n.reducers)||{},u=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(P,M){const O=typeof P=="string"?P:P.type;if(!O)throw new Error(Le(12));if(O in l.sliceCaseReducersByType)throw new Error(Le(13));return l.sliceCaseReducersByType[O]=M,s},addMatcher(P,M){return l.sliceMatchers.push({matcher:P,reducer:M}),s},exposeAction(P,M){return l.actionCreators[P]=M,s},exposeCaseReducer(P,M){return l.sliceCaseReducersByName[P]=M,s}};u.forEach(P=>{const M=o[P],O={reducerName:P,type:ls(a,P),createNotation:typeof n.reducers=="function"};ds(M)?ps(O,M,s,t):fs(O,M,s)});function c(){const[P={},M=[],O=void 0]=typeof n.extraReducers=="function"?ja(n.extraReducers):[n.extraReducers],Y={...P,...l.sliceCaseReducersByType};return Xl(n.initialState,p=>{for(let x in Y)p.addCase(x,Y[x]);for(let x of l.sliceMatchers)p.addMatcher(x.matcher,x.reducer);for(let x of M)p.addMatcher(x.matcher,x.reducer);O&&p.addDefaultCase(O)})}const d=P=>P,v=new Map,g=new WeakMap;let _;function S(P,M){return _||(_=c()),_(P,M)}function b(){return _||(_=c()),_.getInitialState()}function D(P,M=!1){function O(p){let x=p[P];return typeof x>"u"&&M&&(x=It(g,O,b)),x}function Y(p=d){const x=It(v,M,()=>new WeakMap);return It(x,p,()=>{const G={};for(const[B,ee]of Object.entries(n.selectors??{}))G[B]=us(ee,p,()=>It(g,p,b),M);return G})}return{reducerPath:P,getSelectors:Y,get selectors(){return Y(O)},selectSlice:O}}const C={name:a,reducer:S,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...D(i),injectInto(P,{reducerPath:M,...O}={}){const Y=M??i;return P.inject({reducerPath:Y,reducer:S},O),{...C,...D(Y,!0)}}};return C}}function us(e,t,r,n){function a(i,...o){let u=t(i);return typeof u>"u"&&n&&(u=r()),e(u,...o)}return a.unwrapped=e,a}var Ds=ss();function cs(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}
2[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function fs({type:e,reducerName:t,createNotation:r},n,a){let i,o;if("reducer"in n){if(r&&!hs(n))throw new Error(Le(17));i=n.reducer,o=n.prepare}else i=n;a.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,o?gt(e,o):gt(e))}function ds(e){return e._reducerDefinitionType==="asyncThunk"}function hs(e){return e._reducerDefinitionType==="reducerWithPrepare"}function ps({type:e,reducerName:t},r,n,a){if(!a)throw new Error(Le(18));const{payloadCreator:i,fulfilled:o,pending:u,rejected:l,settled:s,options:c}=r,d=a(e,i,c);n.exposeAction(t,d),o&&n.addCase(d.fulfilled,o),u&&n.addCase(d.pending,u),l&&n.addCase(d.rejected,l),s&&n.addMatcher(d.settled,s),n.exposeCaseReducer(t,{fulfilled:o||Ut,pending:u||Ut,rejected:l||Ut,settled:s||Ut})}function Ut(){}function Le(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}export{Fo as L,bs as N,gs as O,Ss as P,Qa as R,Za as a,ri as b,ta as c,ni as d,_s as e,Es as f,ea as g,Fl as h,xs as i,Ds as j,Ts as k,Ze as l,Ye as m,$r as n,Ps as o,Fr as p,ms as q,w as r,ys as s,vs as t,Cs as u,ws as v,wo as w,Rs as x,ti as y};
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.