iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://www.statista.com/outlook/build/_shared/chunk-GQZFP2RK.js
import{a as Tt}from"/outlook/build/_shared/chunk-GUO4IAGI.js";import{b as he,c as vi,d as Ft}from"/outlook/build/_shared/chunk-SIXSUHUE.js";function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function mr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function _v(){return Math.random().toString(36).substr(2,8)}function Jc(e,t){return{usr:e.state,key:e.key,idx:t}}function eo(e,t,n,r){return n===void 0&&(n=null),ae({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?He(t):t,{state:n,key:t&&t.key||r||_v()})}function ut(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function He(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function xv(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l=ne.Pop,u=null,s=d();s==null&&(s=0,a.replaceState(ae({},a.state,{idx:s}),""));function d(){return(a.state||{idx:null}).idx}function c(){l=ne.Pop;let C=d(),m=C==null?null:C-s;s=C,u&&u({action:l,location:S.location,delta:m})}function f(C,m){l=ne.Push;let p=eo(S.location,C,m);n&&n(p,C),s=d()+1;let h=Jc(p,s),w=S.createHref(p);try{a.pushState(h,"",w)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;o.location.assign(w)}i&&u&&u({action:l,location:S.location,delta:1})}function E(C,m){l=ne.Replace;let p=eo(S.location,C,m);n&&n(p,C),s=d();let h=Jc(p,s),w=S.createHref(p);a.replaceState(h,"",w),i&&u&&u({action:l,location:S.location,delta:0})}function y(C){let m=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof C=="string"?C:ut(C);return p=p.replace(/ $/,"%20"),$(m,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,m)}let S={get action(){return l},get location(){return e(o,a)},listen(C){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(Qc,c),u=C,()=>{o.removeEventListener(Qc,c),u=null}},createHref(C){return t(o,C)},createURL:y,encodeLocation(C){let m=y(C);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:f,replace:E,go(C){return a.go(C)}};return S}function Cv(e){return e.index===!0}function to(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,String(i)],l=typeof o.id=="string"?o.id:a.join("-");if($(o.index!==!0||!o.children,"Cannot specify children on an index route"),$(!r[l],'Found a route id collision on id "'+l+`". Route id's must be globally unique within Data Router usages`),Cv(o)){let u=ae({},o,t(o),{id:l});return r[l]=u,u}else{let u=ae({},o,t(o),{id:l,children:void 0});return r[l]=u,o.children&&(u.children=to(o.children,t,a,r)),u}})}function ke(e,t,n){return n===void 0&&(n="/"),yi(e,t,n,!1)}function yi(e,t,n,r){let o=typeof t=="string"?He(t):t,i=Ze(o.pathname||"/",n);if(i==null)return null;let a=fd(e);kv(a);let l=null;for(let u=0;l==null&&u{let u={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};u.relativePath.startsWith("/")&&($(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let s=lt([r,u.relativePath]),d=n.concat(u);i.children&&i.children.length>0&&($(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),fd(i.children,t,d,s)),!(i.path==null&&!i.index)&&t.push({path:s,score:Mv(s,i.index),routesMeta:d})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let u of pd(i.path))o(i,a,u)}),t}function pd(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=pd(r.join("/")),l=[];return l.push(...a.map(u=>u===""?i:[i,u].join("/"))),o&&l.push(...a),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function kv(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Av(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}function Mv(e,t){let n=e.split("/"),r=n.length;return n.some(Xc)&&(r+=Tv),t&&(r+=Dv),n.filter(o=>!Xc(o)).reduce((o,i)=>o+(Pv.test(i)?Lv:i===""?Ov:Fv),r)}function Av(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Uv(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let l=0;l{let{paramName:f,isOptional:E}=d;if(f==="*"){let S=l[c]||"";a=i.slice(0,i.length-S.length).replace(/(.)\/+$/,"$1")}let y=l[c];return E&&!y?s[f]=void 0:s[f]=(y||"").replace(/%2F/g,"/"),s},{}),pathname:i,pathnameBase:a,pattern:e}}function Iv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),mr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,u)=>(r.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function hd(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return mr(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ze(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function wi(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?He(e):e;return{pathname:n?n.startsWith("/")?n:jv(n,t):t,search:Hv(r),hash:$v(o)}}function jv(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function yl(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function md(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Ri(e,t){let n=md(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Ei(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=He(e):(o=ae({},e),$(!o.pathname||!o.pathname.includes("?"),yl("?","pathname","search",o)),$(!o.pathname||!o.pathname.includes("#"),yl("#","pathname","hash",o)),$(!o.search||!o.search.includes("#"),yl("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let c=t.length-1;if(!r&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),c-=1;o.pathname=f.join("/")}l=c>=0?t[c]:"/"}let u=wi(o,l),s=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(s||d)&&(u.pathname+="/"),u}function vd(e,t){return new Rl(e,typeof t=="number"?{status:t}:t)}function Vv(e){return e instanceof Promise&&e._tracked===!0}function Bv(e){if(!Vv(e))return e;if(e._error)throw e._error;return e._data}function st(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Si(e){let t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;$(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(e.mapRouteProperties)o=e.mapRouteProperties;else if(e.detectErrorBoundary){let g=e.detectErrorBoundary;o=R=>({hasErrorBoundary:g(R)})}else o=Jv;let i={},a=to(e.routes,o,void 0,i),l,u=e.basename||"/",s=e.unstable_dataStrategy||ey,d=e.unstable_patchRoutesOnNavigation,c=ae({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,E=new Set,y=1e3,S=new Set,C=null,m=null,p=null,h=e.hydrationData!=null,w=ke(a,e.history.location,u),N=null;if(w==null&&!d){let g=ze(404,{pathname:e.history.location.pathname}),{matches:R,route:_}=ad(a);w=R,N={[_.id]:g}}w&&!e.hydrationData&&di(w,a,e.history.location.pathname).active&&(w=null);let x;if(w)if(w.some(g=>g.route.lazy))x=!1;else if(!w.some(g=>g.route.loader))x=!0;else if(c.v7_partialHydration){let g=e.hydrationData?e.hydrationData.loaderData:null,R=e.hydrationData?e.hydrationData.errors:null,_=k=>k.route.loader?typeof k.route.loader=="function"&&k.route.loader.hydrate===!0?!1:g&&g[k.route.id]!==void 0||R&&R[k.route.id]!==void 0:!0;if(R){let k=w.findIndex(U=>R[U.route.id]!==void 0);x=w.slice(0,k+1).every(_)}else x=w.every(_)}else x=e.hydrationData!=null;else if(x=!1,w=[],c.v7_partialHydration){let g=di(null,a,e.history.location.pathname);g.active&&g.matches&&(w=g.matches)}let P,v={historyAction:e.history.action,location:e.history.location,matches:w,initialized:x,navigation:gl,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||N,fetchers:new Map,blockers:new Map},A=ne.Pop,M=!1,z,Q=!1,Fe=new Map,pe=null,Ne=!1,Et=!1,ii=[],ai=new Set,ye=new Map,li=0,Yr=-1,ar=new Map,Vt=new Set,lr=new Map,Qr=new Map,Bt=new Set,Un=new Map,In=new Map,iv=new Map,pl=!1;function av(){if(f=e.history.listen(g=>{let{action:R,location:_,delta:k}=g;if(pl){pl=!1;return}mr(In.size===0||k!=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 U=Bc({currentLocation:v.location,nextLocation:_,historyAction:R});if(U&&k!=null){pl=!0,e.history.go(k*-1),si(U,{state:"blocked",location:_,proceed(){si(U,{state:"proceeding",proceed:void 0,reset:void 0,location:_}),e.history.go(k)},reset(){let j=new Map(v.blockers);j.set(U,pr),je({blockers:j})}});return}return jn(R,_)}),n){py(t,Fe);let g=()=>hy(t,Fe);t.addEventListener("pagehide",g),pe=()=>t.removeEventListener("pagehide",g)}return v.initialized||jn(ne.Pop,v.location,{initialHydration:!0}),P}function lv(){f&&f(),pe&&pe(),E.clear(),z&&z.abort(),v.fetchers.forEach((g,R)=>ui(R)),v.blockers.forEach((g,R)=>Vc(R))}function uv(g){return E.add(g),()=>E.delete(g)}function je(g,R){R===void 0&&(R={}),v=ae({},v,g);let _=[],k=[];c.v7_fetcherPersist&&v.fetchers.forEach((U,j)=>{U.state==="idle"&&(Bt.has(j)?k.push(j):_.push(j))}),[...E].forEach(U=>U(v,{deletedFetchers:k,unstable_viewTransitionOpts:R.viewTransitionOpts,unstable_flushSync:R.flushSync===!0})),c.v7_fetcherPersist&&(_.forEach(U=>v.fetchers.delete(U)),k.forEach(U=>ui(U)))}function ur(g,R,_){var k,U;let{flushSync:j}=_===void 0?{}:_,V=v.actionData!=null&&v.navigation.formMethod!=null&&St(v.navigation.formMethod)&&v.navigation.state==="loading"&&((k=g.state)==null?void 0:k._isRedirect)!==!0,F;R.actionData?Object.keys(R.actionData).length>0?F=R.actionData:F=null:V?F=v.actionData:F=null;let B=R.loaderData?od(v.loaderData,R.loaderData,R.matches||[],R.errors):v.loaderData,H=v.blockers;H.size>0&&(H=new Map(H),H.forEach((J,q)=>H.set(q,pr)));let b=M===!0||v.navigation.formMethod!=null&&St(v.navigation.formMethod)&&((U=g.state)==null?void 0:U._isRedirect)!==!0;l&&(a=l,l=void 0),Ne||A===ne.Pop||(A===ne.Push?e.history.push(g,g.state):A===ne.Replace&&e.history.replace(g,g.state));let G;if(A===ne.Pop){let J=Fe.get(v.location.pathname);J&&J.has(g.pathname)?G={currentLocation:v.location,nextLocation:g}:Fe.has(g.pathname)&&(G={currentLocation:g,nextLocation:v.location})}else if(Q){let J=Fe.get(v.location.pathname);J?J.add(g.pathname):(J=new Set([g.pathname]),Fe.set(v.location.pathname,J)),G={currentLocation:v.location,nextLocation:g}}je(ae({},R,{actionData:F,loaderData:B,historyAction:A,location:g,initialized:!0,navigation:gl,revalidation:"idle",restoreScrollPosition:Wc(g,R.matches||v.matches),preventScrollReset:b,blockers:H}),{viewTransitionOpts:G,flushSync:j===!0}),A=ne.Pop,M=!1,Q=!1,Ne=!1,Et=!1,ii=[]}async function Ac(g,R){if(typeof g=="number"){e.history.go(g);return}let _=El(v.location,v.matches,u,c.v7_prependBasename,g,c.v7_relativeSplatPath,R?.fromRouteId,R?.relative),{path:k,submission:U,error:j}=Gc(c.v7_normalizeFormMethod,!1,_,R),V=v.location,F=eo(v.location,k,R&&R.state);F=ae({},F,e.history.encodeLocation(F));let B=R&&R.replace!=null?R.replace:void 0,H=ne.Push;B===!0?H=ne.Replace:B===!1||U!=null&&St(U.formMethod)&&U.formAction===v.location.pathname+v.location.search&&(H=ne.Replace);let b=R&&"preventScrollReset"in R?R.preventScrollReset===!0:void 0,G=(R&&R.unstable_flushSync)===!0,J=Bc({currentLocation:V,nextLocation:F,historyAction:H});if(J){si(J,{state:"blocked",location:F,proceed(){si(J,{state:"proceeding",proceed:void 0,reset:void 0,location:F}),Ac(g,R)},reset(){let q=new Map(v.blockers);q.set(J,pr),je({blockers:q})}});return}return await jn(H,F,{submission:U,pendingError:j,preventScrollReset:b,replace:R&&R.replace,enableViewTransition:R&&R.unstable_viewTransition,flushSync:G})}function sv(){if(hl(),je({revalidation:"loading"}),v.navigation.state!=="submitting"){if(v.navigation.state==="idle"){jn(v.historyAction,v.location,{startUninterruptedRevalidation:!0});return}jn(A||v.historyAction,v.navigation.location,{overrideNavigation:v.navigation})}}async function jn(g,R,_){z&&z.abort(),z=null,A=g,Ne=(_&&_.startUninterruptedRevalidation)===!0,wv(v.location,v.matches),M=(_&&_.preventScrollReset)===!0,Q=(_&&_.enableViewTransition)===!0;let k=l||a,U=_&&_.overrideNavigation,j=ke(k,R,u),V=(_&&_.flushSync)===!0,F=di(j,k,R.pathname);if(F.active&&F.matches&&(j=F.matches),!j){let{error:Y,notFoundMatches:Ce,route:ge}=ml(R.pathname);ur(R,{matches:Ce,loaderData:{},errors:{[ge.id]:Y}},{flushSync:V});return}if(v.initialized&&!Et&&ay(v.location,R)&&!(_&&_.submission&&St(_.submission.formMethod))){ur(R,{matches:j},{flushSync:V});return}z=new AbortController;let B=fr(e.history,R,z.signal,_&&_.submission),H;if(_&&_.pendingError)H=[hr(j).route.id,{type:Z.error,error:_.pendingError}];else if(_&&_.submission&&St(_.submission.formMethod)){let Y=await cv(B,R,_.submission,j,F.active,{replace:_.replace,flushSync:V});if(Y.shortCircuited)return;if(Y.pendingActionResult){let[Ce,ge]=Y.pendingActionResult;if(Ge(ge)&&st(ge.error)&&ge.error.status===404){z=null,ur(R,{matches:Y.matches,loaderData:{},errors:{[Ce]:ge.error}});return}}j=Y.matches||j,H=Y.pendingActionResult,U=wl(R,_.submission),V=!1,F.active=!1,B=fr(e.history,B.url,B.signal)}let{shortCircuited:b,matches:G,loaderData:J,errors:q}=await dv(B,R,j,F.active,U,_&&_.submission,_&&_.fetcherSubmission,_&&_.replace,_&&_.initialHydration===!0,V,H);b||(z=null,ur(R,ae({matches:G||j},id(H),{loaderData:J,errors:q})))}async function cv(g,R,_,k,U,j){j===void 0&&(j={}),hl();let V=dy(R,_);if(je({navigation:V},{flushSync:j.flushSync===!0}),U){let H=await fi(k,R.pathname,g.signal);if(H.type==="aborted")return{shortCircuited:!0};if(H.type==="error"){let{boundaryId:b,error:G}=ci(R.pathname,H);return{matches:H.partialMatches,pendingActionResult:[b,{type:Z.error,error:G}]}}else if(H.matches)k=H.matches;else{let{notFoundMatches:b,error:G,route:J}=ml(R.pathname);return{matches:b,pendingActionResult:[J.id,{type:Z.error,error:G}]}}}let F,B=qr(k,R);if(!B.route.action&&!B.route.lazy)F={type:Z.error,error:ze(405,{method:g.method,pathname:R.pathname,routeId:B.route.id})};else if(F=(await Xr("action",g,[B],k))[0],g.signal.aborted)return{shortCircuited:!0};if(Hn(F)){let H;return j&&j.replace!=null?H=j.replace:H=td(F.response.headers.get("Location"),new URL(g.url),u)===v.location.pathname+v.location.search,await Jr(g,F,{submission:_,replace:H}),{shortCircuited:!0}}if(zn(F))throw ze(400,{type:"defer-action"});if(Ge(F)){let H=hr(k,B.route.id);return(j&&j.replace)!==!0&&(A=ne.Push),{matches:k,pendingActionResult:[H.route.id,F]}}return{matches:k,pendingActionResult:[B.route.id,F]}}async function dv(g,R,_,k,U,j,V,F,B,H,b){let G=U||wl(R,j),J=j||V||cd(G),q=!Ne&&(!c.v7_partialHydration||!B);if(k){if(q){let de=Uc(b);je(ae({navigation:G},de!==void 0?{actionData:de}:{}),{flushSync:H})}let W=await fi(_,R.pathname,g.signal);if(W.type==="aborted")return{shortCircuited:!0};if(W.type==="error"){let{boundaryId:de,error:Xe}=ci(R.pathname,W);return{matches:W.partialMatches,loaderData:{},errors:{[de]:Xe}}}else if(W.matches)_=W.matches;else{let{error:de,notFoundMatches:Xe,route:ie}=ml(R.pathname);return{matches:Xe,loaderData:{},errors:{[ie.id]:de}}}}let Y=l||a,[Ce,ge]=Zc(e.history,v,_,J,R,c.v7_partialHydration&&B===!0,c.v7_skipActionErrorRevalidation,Et,ii,ai,Bt,lr,Vt,Y,u,b);if(vl(W=>!(_&&_.some(de=>de.route.id===W))||Ce&&Ce.some(de=>de.route.id===W)),Yr=++li,Ce.length===0&&ge.length===0){let W=Hc();return ur(R,ae({matches:_,loaderData:{},errors:b&&Ge(b[1])?{[b[0]]:b[1].error}:null},id(b),W?{fetchers:new Map(v.fetchers)}:{}),{flushSync:H}),{shortCircuited:!0}}if(q){let W={};if(!k){W.navigation=G;let de=Uc(b);de!==void 0&&(W.actionData=de)}ge.length>0&&(W.fetchers=fv(ge)),je(W,{flushSync:H})}ge.forEach(W=>{ye.has(W.key)&&ln(W.key),W.controller&&ye.set(W.key,W.controller)});let Gr=()=>ge.forEach(W=>ln(W.key));z&&z.signal.addEventListener("abort",Gr);let{loaderResults:un,fetcherResults:sr}=await Ic(v.matches,_,Ce,ge,g);if(g.signal.aborted)return{shortCircuited:!0};z&&z.signal.removeEventListener("abort",Gr),ge.forEach(W=>ye.delete(W.key));let cr=ld([...un,...sr]);if(cr){if(cr.idx>=Ce.length){let W=ge[cr.idx-Ce.length].key;Vt.add(W)}return await Jr(g,cr.result,{replace:F}),{shortCircuited:!0}}let{loaderData:dr,errors:Ot}=rd(v,_,Ce,un,b,ge,sr,Un);Un.forEach((W,de)=>{W.subscribe(Xe=>{(Xe||W.done)&&Un.delete(de)})}),c.v7_partialHydration&&B&&v.errors&&Object.entries(v.errors).filter(W=>{let[de]=W;return!Ce.some(Xe=>Xe.route.id===de)}).forEach(W=>{let[de,Xe]=W;Ot=Object.assign(Ot||{},{[de]:Xe})});let pi=Hc(),hi=$c(Yr),mi=pi||hi||ge.length>0;return ae({matches:_,loaderData:dr,errors:Ot},mi?{fetchers:new Map(v.fetchers)}:{})}function Uc(g){if(g&&!Ge(g[1]))return{[g[0]]:g[1].data};if(v.actionData)return Object.keys(v.actionData).length===0?null:v.actionData}function fv(g){return g.forEach(R=>{let _=v.fetchers.get(R.key),k=Zr(void 0,_?_.data:void 0);v.fetchers.set(R.key,k)}),new Map(v.fetchers)}function pv(g,R,_,k){if(r)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.");ye.has(g)&&ln(g);let U=(k&&k.unstable_flushSync)===!0,j=l||a,V=El(v.location,v.matches,u,c.v7_prependBasename,_,c.v7_relativeSplatPath,R,k?.relative),F=ke(j,V,u),B=di(F,j,V);if(B.active&&B.matches&&(F=B.matches),!F){bt(g,R,ze(404,{pathname:V}),{flushSync:U});return}let{path:H,submission:b,error:G}=Gc(c.v7_normalizeFormMethod,!0,V,k);if(G){bt(g,R,G,{flushSync:U});return}let J=qr(F,H);if(M=(k&&k.preventScrollReset)===!0,b&&St(b.formMethod)){hv(g,R,H,J,F,B.active,U,b);return}lr.set(g,{routeId:R,path:H}),mv(g,R,H,J,F,B.active,U,b)}async function hv(g,R,_,k,U,j,V,F){hl(),lr.delete(g);function B(ie){if(!ie.route.action&&!ie.route.lazy){let Wt=ze(405,{method:F.formMethod,pathname:_,routeId:R});return bt(g,R,Wt,{flushSync:V}),!0}return!1}if(!j&&B(k))return;let H=v.fetchers.get(g);an(g,fy(F,H),{flushSync:V});let b=new AbortController,G=fr(e.history,_,b.signal,F);if(j){let ie=await fi(U,_,G.signal);if(ie.type==="aborted")return;if(ie.type==="error"){let{error:Wt}=ci(_,ie);bt(g,R,Wt,{flushSync:V});return}else if(ie.matches){if(U=ie.matches,k=qr(U,_),B(k))return}else{bt(g,R,ze(404,{pathname:_}),{flushSync:V});return}}ye.set(g,b);let J=li,Y=(await Xr("action",G,[k],U))[0];if(G.signal.aborted){ye.get(g)===b&&ye.delete(g);return}if(c.v7_fetcherPersist&&Bt.has(g)){if(Hn(Y)||Ge(Y)){an(g,sn(void 0));return}}else{if(Hn(Y))if(ye.delete(g),Yr>J){an(g,sn(void 0));return}else return Vt.add(g),an(g,Zr(F)),Jr(G,Y,{fetcherSubmission:F});if(Ge(Y)){bt(g,R,Y.error);return}}if(zn(Y))throw ze(400,{type:"defer-action"});let Ce=v.navigation.location||v.location,ge=fr(e.history,Ce,b.signal),Gr=l||a,un=v.navigation.state!=="idle"?ke(Gr,v.navigation.location,u):v.matches;$(un,"Didn't find any matches after fetcher action");let sr=++li;ar.set(g,sr);let cr=Zr(F,Y.data);v.fetchers.set(g,cr);let[dr,Ot]=Zc(e.history,v,un,F,Ce,!1,c.v7_skipActionErrorRevalidation,Et,ii,ai,Bt,lr,Vt,Gr,u,[k.route.id,Y]);Ot.filter(ie=>ie.key!==g).forEach(ie=>{let Wt=ie.key,Yc=v.fetchers.get(Wt),Sv=Zr(void 0,Yc?Yc.data:void 0);v.fetchers.set(Wt,Sv),ye.has(Wt)&&ln(Wt),ie.controller&&ye.set(Wt,ie.controller)}),je({fetchers:new Map(v.fetchers)});let pi=()=>Ot.forEach(ie=>ln(ie.key));b.signal.addEventListener("abort",pi);let{loaderResults:hi,fetcherResults:mi}=await Ic(v.matches,un,dr,Ot,ge);if(b.signal.aborted)return;b.signal.removeEventListener("abort",pi),ar.delete(g),ye.delete(g),Ot.forEach(ie=>ye.delete(ie.key));let W=ld([...hi,...mi]);if(W){if(W.idx>=dr.length){let ie=Ot[W.idx-dr.length].key;Vt.add(ie)}return Jr(ge,W.result)}let{loaderData:de,errors:Xe}=rd(v,v.matches,dr,hi,void 0,Ot,mi,Un);if(v.fetchers.has(g)){let ie=sn(Y.data);v.fetchers.set(g,ie)}$c(sr),v.navigation.state==="loading"&&sr>Yr?($(A,"Expected pending action"),z&&z.abort(),ur(v.navigation.location,{matches:un,loaderData:de,errors:Xe,fetchers:new Map(v.fetchers)})):(je({errors:Xe,loaderData:od(v.loaderData,de,un,Xe),fetchers:new Map(v.fetchers)}),Et=!1)}async function mv(g,R,_,k,U,j,V,F){let B=v.fetchers.get(g);an(g,Zr(F,B?B.data:void 0),{flushSync:V});let H=new AbortController,b=fr(e.history,_,H.signal);if(j){let Y=await fi(U,_,b.signal);if(Y.type==="aborted")return;if(Y.type==="error"){let{error:Ce}=ci(_,Y);bt(g,R,Ce,{flushSync:V});return}else if(Y.matches)U=Y.matches,k=qr(U,_);else{bt(g,R,ze(404,{pathname:_}),{flushSync:V});return}}ye.set(g,H);let G=li,q=(await Xr("loader",b,[k],U))[0];if(zn(q)&&(q=await _d(q,b.signal,!0)||q),ye.get(g)===H&&ye.delete(g),!b.signal.aborted){if(Bt.has(g)){an(g,sn(void 0));return}if(Hn(q))if(Yr>G){an(g,sn(void 0));return}else{Vt.add(g),await Jr(b,q);return}if(Ge(q)){bt(g,R,q.error);return}$(!zn(q),"Unhandled fetcher deferred data"),an(g,sn(q.data))}}async function Jr(g,R,_){let{submission:k,fetcherSubmission:U,replace:j}=_===void 0?{}:_;R.response.headers.has("X-Remix-Revalidate")&&(Et=!0);let V=R.response.headers.get("Location");$(V,"Expected a Location header on the redirect Response"),V=td(V,new URL(g.url),u);let F=eo(v.location,V,{_isRedirect:!0});if(n){let q=!1;if(R.response.headers.has("X-Remix-Reload-Document"))q=!0;else if(Nl.test(V)){let Y=e.history.createURL(V);q=Y.origin!==t.location.origin||Ze(Y.pathname,u)==null}if(q){j?t.location.replace(V):t.location.assign(V);return}}z=null;let B=j===!0||R.response.headers.has("X-Remix-Replace")?ne.Replace:ne.Push,{formMethod:H,formAction:b,formEncType:G}=v.navigation;!k&&!U&&H&&b&&G&&(k=cd(v.navigation));let J=k||U;if(Qv.has(R.response.status)&&J&&St(J.formMethod))await jn(B,F,{submission:ae({},J,{formAction:V}),preventScrollReset:M});else{let q=wl(F,k);await jn(B,F,{overrideNavigation:q,fetcherSubmission:U,preventScrollReset:M})}}async function Xr(g,R,_,k){try{let U=await ty(s,g,R,_,k,i,o);return await Promise.all(U.map((j,V)=>{if(uy(j)){let F=j.result;return{type:Z.redirect,response:oy(F,R,_[V].route.id,k,u,c.v7_relativeSplatPath)}}return ry(j)}))}catch(U){return _.map(()=>({type:Z.error,error:U}))}}async function Ic(g,R,_,k,U){let[j,...V]=await Promise.all([_.length?Xr("loader",U,_,R):[],...k.map(F=>{if(F.matches&&F.match&&F.controller){let B=fr(e.history,F.path,F.controller.signal);return Xr("loader",B,[F.match],F.matches).then(H=>H[0])}else return Promise.resolve({type:Z.error,error:ze(404,{pathname:F.path})})})]);return await Promise.all([sd(g,_,j,j.map(()=>U.signal),!1,v.loaderData),sd(g,k.map(F=>F.match),V,k.map(F=>F.controller?F.controller.signal:null),!0)]),{loaderResults:j,fetcherResults:V}}function hl(){Et=!0,ii.push(...vl()),lr.forEach((g,R)=>{ye.has(R)&&(ai.add(R),ln(R))})}function an(g,R,_){_===void 0&&(_={}),v.fetchers.set(g,R),je({fetchers:new Map(v.fetchers)},{flushSync:(_&&_.flushSync)===!0})}function bt(g,R,_,k){k===void 0&&(k={});let U=hr(v.matches,R);ui(g),je({errors:{[U.route.id]:_},fetchers:new Map(v.fetchers)},{flushSync:(k&&k.flushSync)===!0})}function jc(g){return c.v7_fetcherPersist&&(Qr.set(g,(Qr.get(g)||0)+1),Bt.has(g)&&Bt.delete(g)),v.fetchers.get(g)||xl}function ui(g){let R=v.fetchers.get(g);ye.has(g)&&!(R&&R.state==="loading"&&ar.has(g))&&ln(g),lr.delete(g),ar.delete(g),Vt.delete(g),Bt.delete(g),ai.delete(g),v.fetchers.delete(g)}function vv(g){if(c.v7_fetcherPersist){let R=(Qr.get(g)||0)-1;R<=0?(Qr.delete(g),Bt.add(g)):Qr.set(g,R)}else ui(g);je({fetchers:new Map(v.fetchers)})}function ln(g){let R=ye.get(g);$(R,"Expected fetch controller: "+g),R.abort(),ye.delete(g)}function zc(g){for(let R of g){let _=jc(R),k=sn(_.data);v.fetchers.set(R,k)}}function Hc(){let g=[],R=!1;for(let _ of Vt){let k=v.fetchers.get(_);$(k,"Expected fetcher: "+_),k.state==="loading"&&(Vt.delete(_),g.push(_),R=!0)}return zc(g),R}function $c(g){let R=[];for(let[_,k]of ar)if(k0}function yv(g,R){let _=v.blockers.get(g)||pr;return In.get(g)!==R&&In.set(g,R),_}function Vc(g){v.blockers.delete(g),In.delete(g)}function si(g,R){let _=v.blockers.get(g)||pr;$(_.state==="unblocked"&&R.state==="blocked"||_.state==="blocked"&&R.state==="blocked"||_.state==="blocked"&&R.state==="proceeding"||_.state==="blocked"&&R.state==="unblocked"||_.state==="proceeding"&&R.state==="unblocked","Invalid blocker state transition: "+_.state+" -> "+R.state);let k=new Map(v.blockers);k.set(g,R),je({blockers:k})}function Bc(g){let{currentLocation:R,nextLocation:_,historyAction:k}=g;if(In.size===0)return;In.size>1&&mr(!1,"A router only supports one blocker at a time");let U=Array.from(In.entries()),[j,V]=U[U.length-1],F=v.blockers.get(j);if(!(F&&F.state==="proceeding")&&V({currentLocation:R,nextLocation:_,historyAction:k}))return j}function ml(g){let R=ze(404,{pathname:g}),_=l||a,{matches:k,route:U}=ad(_);return vl(),{notFoundMatches:k,route:U,error:R}}function ci(g,R){return{boundaryId:hr(R.partialMatches).route.id,error:ze(400,{type:"route-discovery",pathname:g,message:R.error!=null&&"message"in R.error?R.error:String(R.error)})}}function vl(g){let R=[];return Un.forEach((_,k)=>{(!g||g(k))&&(_.cancel(),R.push(k),Un.delete(k))}),R}function gv(g,R,_){if(C=g,p=R,m=_||null,!h&&v.navigation===gl){h=!0;let k=Wc(v.location,v.matches);k!=null&&je({restoreScrollPosition:k})}return()=>{C=null,p=null,m=null}}function bc(g,R){return m&&m(g,R.map(k=>dd(k,v.loaderData)))||g.key}function wv(g,R){if(C&&p){let _=bc(g,R);C[_]=p()}}function Wc(g,R){if(C){let _=bc(g,R),k=C[_];if(typeof k=="number")return k}return null}function di(g,R,_){if(d){if(S.has(_))return{active:!1,matches:g};if(g){if(Object.keys(g[0].params).length>0)return{active:!0,matches:yi(R,_,u,!0)}}else return{active:!0,matches:yi(R,_,u,!0)||[]}}return{active:!1,matches:null}}async function fi(g,R,_){let k=g;for(;;){let U=l==null,j=l||a;try{await qv(d,R,k,j,i,o,iv,_)}catch(B){return{type:"error",error:B,partialMatches:k}}finally{U&&(a=[...a])}if(_.aborted)return{type:"aborted"};let V=ke(j,R,u);if(V)return Kc(R,S),{type:"success",matches:V};let F=yi(j,R,u,!0);if(!F||k.length===F.length&&k.every((B,H)=>B.route.id===F[H].route.id))return Kc(R,S),{type:"success",matches:null};k=F}}function Kc(g,R){if(R.size>=y){let _=R.values().next().value;R.delete(_)}R.add(g)}function Rv(g){i={},l=to(g,o,void 0,i)}function Ev(g,R){let _=l==null;Rd(g,R,l||a,i,o),_&&(a=[...a],je({}))}return P={get basename(){return u},get future(){return c},get state(){return v},get routes(){return a},get window(){return t},initialize:av,subscribe:uv,enableScrollRestoration:gv,navigate:Ac,fetch:pv,revalidate:sv,createHref:g=>e.history.createHref(g),encodeLocation:g=>e.history.encodeLocation(g),getFetcher:jc,deleteFetcher:vv,dispose:lv,getBlocker:yv,deleteBlocker:Vc,patchRoutes:Ev,_internalFetchControllers:ye,_internalActiveDeferreds:Un,_internalSetRoutes:Rv},P}function Xv(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function El(e,t,n,r,o,i,a,l){let u,s;if(a){u=[];for(let c of t)if(u.push(c),c.route.id===a){s=c;break}}else u=t,s=t[t.length-1];let d=Ei(o||".",Ri(u,i),Ze(e.pathname,n)||e.pathname,l==="path");return o==null&&(d.search=e.search,d.hash=e.hash),(o==null||o===""||o===".")&&s&&s.route.index&&!Cl(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:lt([n,d.pathname])),ut(d)}function Gc(e,t,n,r){if(!r||!Xv(r))return{path:n};if(r.formMethod&&!cy(r.formMethod))return{path:n,error:ze(405,{method:r.formMethod})};let o=()=>({path:n,error:ze(400,{type:"invalid-body"})}),i=r.formMethod||"get",a=e?i.toUpperCase():i.toLowerCase(),l=Ed(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!St(a))return o();let f=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((E,y)=>{let[S,C]=y;return""+E+S+"="+C+` `},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:f}}}else if(r.formEncType==="application/json"){if(!St(a))return o();try{let f=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:f,text:void 0}}}catch{return o()}}}$(typeof FormData=="function","FormData is not available in this environment");let u,s;if(r.formData)u=Sl(r.formData),s=r.formData;else if(r.body instanceof FormData)u=Sl(r.body),s=r.body;else if(r.body instanceof URLSearchParams)u=r.body,s=nd(u);else if(r.body==null)u=new URLSearchParams,s=new FormData;else try{u=new URLSearchParams(r.body),s=nd(u)}catch{return o()}let d={formMethod:a,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:s,json:void 0,text:void 0};if(St(d.formMethod))return{path:n,submission:d};let c=He(n);return t&&c.search&&Cl(c.search)&&u.append("index",""),c.search="?"+u,{path:ut(c),submission:d}}function Gv(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Zc(e,t,n,r,o,i,a,l,u,s,d,c,f,E,y,S){let C=S?Ge(S[1])?S[1].error:S[1].data:void 0,m=e.createURL(t.location),p=e.createURL(o),h=S&&Ge(S[1])?S[0]:void 0,w=h?Gv(n,h):n,N=S?S[1].statusCode:void 0,x=a&&N&&N>=400,P=w.filter((A,M)=>{let{route:z}=A;if(z.lazy)return!0;if(z.loader==null)return!1;if(i)return typeof z.loader!="function"||z.loader.hydrate?!0:t.loaderData[z.id]===void 0&&(!t.errors||t.errors[z.id]===void 0);if(Zv(t.loaderData,t.matches[M],A)||u.some(pe=>pe===A.route.id))return!0;let Q=t.matches[M],Fe=A;return qc(A,ae({currentUrl:m,currentParams:Q.params,nextUrl:p,nextParams:Fe.params},r,{actionResult:C,actionStatus:N,defaultShouldRevalidate:x?!1:l||m.pathname+m.search===p.pathname+p.search||m.search!==p.search||wd(Q,Fe)}))}),v=[];return c.forEach((A,M)=>{if(i||!n.some(Ne=>Ne.route.id===A.routeId)||d.has(M))return;let z=ke(E,A.path,y);if(!z){v.push({key:M,routeId:A.routeId,path:A.path,matches:null,match:null,controller:null});return}let Q=t.fetchers.get(M),Fe=qr(z,A.path),pe=!1;f.has(M)?pe=!1:s.has(M)?(s.delete(M),pe=!0):Q&&Q.state!=="idle"&&Q.data===void 0?pe=l:pe=qc(Fe,ae({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:p,nextParams:n[n.length-1].params},r,{actionResult:C,actionStatus:N,defaultShouldRevalidate:x?!1:l})),pe&&v.push({key:M,routeId:A.routeId,path:A.path,matches:z,match:Fe,controller:new AbortController})}),[P,v]}function Zv(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function wd(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function qc(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function qv(e,t,n,r,o,i,a,l){let u=[t,...n.map(s=>s.route.id)].join("-");try{let s=a.get(u);s||(s=e({path:t,matches:n,patch:(d,c)=>{l.aborted||Rd(d,c,r,o,i)}}),a.set(u,s)),s&&ly(s)&&await s}finally{a.delete(u)}}function Rd(e,t,n,r,o){if(e){var i;let a=r[e];$(a,"No route found to patch children into: routeId = "+e);let l=to(t,o,[e,"patch",String(((i=a.children)==null?void 0:i.length)||"0")],r);a.children?a.children.push(...l):a.children=l}else{let a=to(t,o,["patch",String(n.length||"0")],r);n.push(...a)}}async function ed(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];$(o,"No route found in manifest");let i={};for(let a in r){let u=o[a]!==void 0&&a!=="hasErrorBoundary";mr(!u,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!u&&!Nv.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,ae({},t(o),{lazy:void 0}))}function ey(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function ty(e,t,n,r,o,i,a,l){let u=r.reduce((c,f)=>c.add(f.route.id),new Set),s=new Set,d=await e({matches:o.map(c=>{let f=u.has(c.route.id);return ae({},c,{shouldLoad:f,resolve:y=>(s.add(c.route.id),f?ny(t,n,c,i,a,y,l):Promise.resolve({type:Z.data,result:void 0}))})}),request:n,params:o[0].params,context:l});return o.forEach(c=>$(s.has(c.route.id),'`match.resolve()` was not called for route id "'+c.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),d.filter((c,f)=>u.has(o[f].route.id))}async function ny(e,t,n,r,o,i,a){let l,u,s=d=>{let c,f=new Promise((S,C)=>c=C);u=()=>c(),t.signal.addEventListener("abort",u);let E=S=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):d({request:t,params:n.params,context:a},...S!==void 0?[S]:[]),y;return i?y=i(S=>E(S)):y=(async()=>{try{return{type:"data",result:await E()}}catch(S){return{type:"error",result:S}}})(),Promise.race([y,f])};try{let d=n.route[e];if(n.route.lazy)if(d){let c,[f]=await Promise.all([s(d).catch(E=>{c=E}),ed(n.route,o,r)]);if(c!==void 0)throw c;l=f}else if(await ed(n.route,o,r),d=n.route[e],d)l=await s(d);else if(e==="action"){let c=new URL(t.url),f=c.pathname+c.search;throw ze(405,{method:t.method,pathname:f,routeId:n.route.id})}else return{type:Z.data,result:void 0};else if(d)l=await s(d);else{let c=new URL(t.url),f=c.pathname+c.search;throw ze(404,{pathname:f})}$(l.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(d){return{type:Z.error,result:d}}finally{u&&t.signal.removeEventListener("abort",u)}return l}async function ry(e){let{result:t,type:n}=e;if(Sd(t)){let s;try{let d=t.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?t.body==null?s=null:s=await t.json():s=await t.text()}catch(d){return{type:Z.error,error:d}}return n===Z.error?{type:Z.error,error:new be(t.status,t.statusText,s),statusCode:t.status,headers:t.headers}:{type:Z.data,data:s,statusCode:t.status,headers:t.headers}}if(n===Z.error){if(ud(t)){var r;if(t.data instanceof Error){var o;return{type:Z.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status}}t=new be(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:Z.error,error:t,statusCode:st(t)?t.status:void 0}}if(sy(t)){var i,a;return{type:Z.deferred,deferredData:t,statusCode:(i=t.init)==null?void 0:i.status,headers:((a=t.init)==null?void 0:a.headers)&&new Headers(t.init.headers)}}if(ud(t)){var l,u;return{type:Z.data,data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}}return{type:Z.data,data:t}}function oy(e,t,n,r,o,i){let a=e.headers.get("Location");if($(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Nl.test(a)){let l=r.slice(0,r.findIndex(u=>u.route.id===n)+1);a=El(new URL(t.url),l,o,!0,a,i),e.headers.set("Location",a)}return e}function td(e,t,n){if(Nl.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Ze(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function fr(e,t,n,r){let o=e.createURL(Ed(t)).toString(),i={signal:n};if(r&&St(r.formMethod)){let{formMethod:a,formEncType:l}=r;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=Sl(r.formData):i.body=r.formData}return new Request(o,i)}function Sl(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function nd(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function iy(e,t,n,r,o,i){let a={},l=null,u,s=!1,d={},c=r&&Ge(r[1])?r[1].error:void 0;return n.forEach((f,E)=>{let y=t[E].route.id;if($(!Hn(f),"Cannot handle redirect results in processLoaderData"),Ge(f)){let S=f.error;if(c!==void 0&&(S=c,c=void 0),l=l||{},i)l[y]=S;else{let C=hr(e,y);l[C.route.id]==null&&(l[C.route.id]=S)}a[y]=void 0,s||(s=!0,u=st(f.error)?f.error.status:500),f.headers&&(d[y]=f.headers)}else zn(f)?(o.set(y,f.deferredData),a[y]=f.deferredData.data,f.statusCode!=null&&f.statusCode!==200&&!s&&(u=f.statusCode),f.headers&&(d[y]=f.headers)):(a[y]=f.data,f.statusCode&&f.statusCode!==200&&!s&&(u=f.statusCode),f.headers&&(d[y]=f.headers))}),c!==void 0&&r&&(l={[r[0]]:c},a[r[0]]=void 0),{loaderData:a,errors:l,statusCode:u||200,loaderHeaders:d}}function rd(e,t,n,r,o,i,a,l){let{loaderData:u,errors:s}=iy(t,n,r,o,l,!1);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function ad(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ze(e,t){let{pathname:n,routeId:r,method:o,type:i,message:a}=t===void 0?{}:t,l="Unknown Server Error",u="Unknown @remix-run/router error";return e===400?(l="Bad Request",i==="route-discovery"?u='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: `+a):o&&n&&r?u="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"?u="defer() is not supported in actions":i==="invalid-body"&&(u="Unable to encode submission body")):e===403?(l="Forbidden",u='Route "'+r+'" does not match URL "'+n+'"'):e===404?(l="Not Found",u='No route matches URL "'+n+'"'):e===405&&(l="Method Not Allowed",o&&n&&r?u="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(u='Invalid request method "'+o.toUpperCase()+'"')),new be(e||500,l,new Error(u),!0)}function ld(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Hn(n))return{result:n,idx:t}}}function Ed(e){let t=typeof e=="string"?He(e):e;return ut(ae({},t,{hash:""}))}function ay(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function ly(e){return typeof e=="object"&&e!=null&&"then"in e}function uy(e){return Sd(e.result)&&Yv.has(e.result.status)}function zn(e){return e.type===Z.deferred}function Ge(e){return e.type===Z.error}function Hn(e){return(e&&e.type)===Z.redirect}function ud(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function sy(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 Sd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function cy(e){return Kv.has(e.toLowerCase())}function St(e){return bv.has(e.toLowerCase())}async function sd(e,t,n,r,o,i){for(let a=0;ac.route.id===u.route.id),d=s!=null&&!wd(s,u)&&(i&&i[u.route.id])!==void 0;if(zn(l)&&(o||d)){let c=r[a];$(c,"Expected an AbortSignal for revalidating fetcher deferred result"),await _d(l,c,o).then(f=>{f&&(n[a]=f||n[a])})}}}async function _d(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Z.data,data:e.deferredData.unwrappedData}}catch(o){return{type:Z.error,error:o}}return{type:Z.data,data:e.deferredData.data}}}function Cl(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function qr(e,t){let n=typeof t=="string"?He(t).search:t.search;if(e[e.length-1].route.index&&Cl(n||""))return e[e.length-1];let r=md(e);return r[r.length-1]}function cd(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function wl(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 dy(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 Zr(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 fy(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 sn(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 py(e,t){try{let n=e.sessionStorage.getItem(gd);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function hy(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(gd,JSON.stringify(n))}catch(r){mr(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}var ne,Qc,Z,Nv,Pv,Lv,Dv,Ov,Fv,Tv,Xc,lt,zv,Hv,$v,Rl,Mt,gi,vr,be,yd,bv,Wv,Kv,Yv,Qv,gl,xl,pr,Nl,Jv,gd,yR,At=he(()=>{(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ne||(ne={}));Qc="popstate";(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Z||(Z={}));Nv=new Set(["lazy","caseSensitive","path","id","index","children"]);Pv=/^:[\w-]+$/,Lv=3,Dv=2,Ov=1,Fv=10,Tv=-2,Xc=e=>e==="*";lt=e=>e.join("/").replace(/\/\/+/g,"/"),zv=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Hv=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,$v=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Rl=class{constructor(t,n){this.type="DataWithResponseInit",this.data=t,this.init=n||null}};Mt=class extends Error{},gi=class{constructor(t,n){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],$(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let r;this.abortPromise=new Promise((i,a)=>r=a),this.controller=new AbortController;let o=()=>r(new Mt("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",o),this.controller.signal.addEventListener("abort",o),this.data=Object.entries(t).reduce((i,a)=>{let[l,u]=a;return Object.assign(i,{[l]:this.trackPromise(l,u)})},{}),this.done&&this.unlistenAbortSignal(),this.init=n}trackPromise(t,n){if(!(n instanceof Promise))return n;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let r=Promise.race([n,this.abortPromise]).then(o=>this.onSettle(r,t,void 0,o),o=>this.onSettle(r,t,o));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(t,n,r,o){if(this.controller.signal.aborted&&r instanceof Mt)return this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(n),this.done&&this.unlistenAbortSignal(),r===void 0&&o===void 0){let i=new Error('Deferred data for key "'+n+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(t,"_error",{get:()=>i}),this.emit(!1,n),Promise.reject(i)}return o===void 0?(Object.defineProperty(t,"_error",{get:()=>r}),this.emit(!1,n),Promise.reject(r)):(Object.defineProperty(t,"_data",{get:()=>o}),this.emit(!1,n),o)}emit(t,n){this.subscribers.forEach(r=>r(t,n))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,n)=>this.pendingKeysSet.delete(n)),this.emit(!0)}async resolveData(t){let n=!1;if(!this.done){let r=()=>this.cancel();t.addEventListener("abort",r),n=await new Promise(o=>{this.subscribe(i=>{t.removeEventListener("abort",r),(i||this.done)&&o(i)})})}return n}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return $(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,n)=>{let[r,o]=n;return Object.assign(t,{[r]:Bv(o)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}};vr=function(t,n){n===void 0&&(n=302);let r=n;typeof r=="number"?r={status:r}:typeof r.status>"u"&&(r.status=302);let o=new Headers(r.headers);return o.set("Location",t),new Response(null,ae({},r,{headers:o}))},be=class{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};yd=["post","put","patch","delete"],bv=new Set(yd),Wv=["get",...yd],Kv=new Set(Wv),Yv=new Set([301,302,303,307,308]),Qv=new Set([307,308]),gl={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},xl={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},pr={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Nl=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Jv=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),gd="remix-router-transitions";yR=Symbol("deferred")});function no(){return no=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),O.useCallback(function(s,d){if(d===void 0&&(d={}),!l.current)return;if(typeof s=="number"){r.go(s);return}let c=Ei(s,JSON.parse(a),i,d.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:lt([t,c.pathname])),(d.replace?r.replace:r.push)(c,d.state,d)},[t,r,a,i,e])}function Ll(e){let t=O.useContext(qe).outlet;return t&&O.createElement(Ry.Provider,{value:e},t)}function Pd(){let{matches:e}=O.useContext(qe),t=e[e.length-1];return t?t.params:{}}function fn(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=O.useContext(dt),{matches:o}=O.useContext(qe),{pathname:i}=et(),a=JSON.stringify(Ri(o,r.v7_relativeSplatPath));return O.useMemo(()=>Ei(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function Ld(e,t,n,r){Vn()||$(!1);let{navigator:o}=O.useContext(dt),{matches:i}=O.useContext(qe),a=i[i.length-1],l=a?a.params:{},u=a?a.pathname:"/",s=a?a.pathnameBase:"/",d=a&&a.route,c=et(),f;if(t){var E;let p=typeof t=="string"?He(t):t;s==="/"||(E=p.pathname)!=null&&E.startsWith(s)||$(!1),f=p}else f=c;let y=f.pathname||"/",S=y;if(s!=="/"){let p=s.replace(/^\//,"").split("/");S="/"+y.replace(/^\//,"").split("/").slice(p.length).join("/")}let C=ke(e,{pathname:S}),m=xy(C&&C.map(p=>Object.assign({},p,{params:Object.assign({},l,p.params),pathname:lt([s,o.encodeLocation?o.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?s:lt([s,o.encodeLocation?o.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),i,n,r);return t&&m?O.createElement(ro.Provider,{value:{location:no({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:ne.Pop}},m):m}function Ey(){let e=io(),t=st(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r};return O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:o},n):null,null)}function _y(e){let{routeContext:t,match:n,children:r}=e,o=O.useContext(Yt);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),O.createElement(qe.Provider,{value:t},r)}function xy(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let d=a.findIndex(c=>c.route.id&&l?.[c.route.id]!==void 0);d>=0||$(!1),a=a.slice(0,Math.min(a.length,d+1))}let u=!1,s=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?a=a.slice(0,s+1):a=[a[0]];break}}}return a.reduceRight((d,c,f)=>{let E,y=!1,S=null,C=null;n&&(E=l&&c.route.id?l[c.route.id]:void 0,S=c.route.errorElement||Sy,u&&(s<0&&f===0?(Py("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,C=null):s===f&&(y=!0,C=c.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,f+1)),p=()=>{let h;return E?h=S:y?h=C:c.route.Component?h=O.createElement(c.route.Component,null):c.route.element?h=c.route.element:h=d,O.createElement(_y,{match:c,routeContext:{outlet:d,matches:m,isDataRoute:n!=null},children:h})};return n&&(c.route.ErrorBoundary||c.route.errorElement||f===0)?O.createElement(kl,{location:n.location,revalidation:n.revalidation,component:S,error:E,children:p(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):p()},null)}function Ny(e){let t=O.useContext(Yt);return t||$(!1),t}function Dl(e){let t=O.useContext(dn);return t||$(!1),t}function Cy(e){let t=O.useContext(qe);return t||$(!1),t}function xi(e){let t=Cy(e),n=t.matches[t.matches.length-1];return n.route.id||$(!1),n.route.id}function Ol(){return xi(cn.UseRouteId)}function Fl(){let e=Dl(cn.UseLoaderData),t=xi(cn.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function Tl(e){return Dl(cn.UseRouteLoaderData).loaderData[e]}function io(){var e;let t=O.useContext(Cd),n=Dl(cn.UseRouteError),r=xi(cn.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Ml(){let e=O.useContext(_i);return e?._data}function Ni(){let e=O.useContext(_i);return e?._error}function ky(){let{router:e}=Ny(Dd.UseNavigateStable),t=xi(cn.UseNavigateStable),n=O.useRef(!1);return kd(()=>{n.current=!0}),O.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,no({fromRouteId:t},i)))},[e,t])}function Py(e,t,n){!t&&!xd[e]&&(xd[e]=!0)}function Od(e){return Ll(e.context)}function Al(e){let{basename:t="/",children:n=null,location:r,navigationType:o=ne.Pop,navigator:i,static:a=!1,future:l}=e;Vn()&&$(!1);let u=t.replace(/^\/*/,"/"),s=O.useMemo(()=>({basename:u,navigator:i,static:a,future:no({v7_relativeSplatPath:!1},l)}),[u,l,i,a]);typeof r=="string"&&(r=He(r));let{pathname:d="/",search:c="",hash:f="",state:E=null,key:y="default"}=r,S=O.useMemo(()=>{let C=Ze(d,u);return C==null?null:{location:{pathname:C,search:c,hash:f,state:E,key:y},navigationType:o}},[u,d,c,f,E,y,o]);return S==null?null:O.createElement(dt.Provider,{value:s},O.createElement(ro.Provider,{children:n,value:S}))}function Ul(e){let{children:t,errorElement:n,resolve:r}=e;return O.createElement(Pl,{resolve:r,errorElement:n},O.createElement(Oy,null,t))}function Oy(e){let{children:t}=e,n=Ml(),r=typeof t=="function"?t(n):t;return O.createElement(O.Fragment,null,r)}function Il(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:O.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:O.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:O.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}var O,Yt,dn,_i,dt,ro,qe,Cd,Ry,Sy,kl,Dd,cn,xd,Ly,SR,ct,Dy,Pl,Ci=he(()=>{O=Ft(Tt());At();At();Yt=O.createContext(null),dn=O.createContext(null),_i=O.createContext(null),dt=O.createContext(null),ro=O.createContext(null),qe=O.createContext({outlet:null,matches:[],isDataRoute:!1}),Cd=O.createContext(null);Ry=O.createContext(null);Sy=O.createElement(Ey,null),kl=class extends O.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,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?O.createElement(qe.Provider,{value:this.props.routeContext},O.createElement(Cd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};Dd=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Dd||{}),cn=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}(cn||{});xd={};Ly="startTransition",SR=O[Ly];ct=function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e}(ct||{}),Dy=new Promise(()=>{}),Pl=class extends O.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,n){console.error(" caught the following error during render",t,n)}render(){let{children:t,errorElement:n,resolve:r}=this.props,o=null,i=ct.pending;if(!(r instanceof Promise))i=ct.success,o=Promise.resolve(),Object.defineProperty(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_data",{get:()=>r});else if(this.state.error){i=ct.error;let a=this.state.error;o=Promise.reject().catch(()=>{}),Object.defineProperty(o,"_tracked",{get:()=>!0}),Object.defineProperty(o,"_error",{get:()=>a})}else r._tracked?(o=r,i="_error"in o?ct.error:"_data"in o?ct.success:ct.pending):(i=ct.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),o=r.then(a=>Object.defineProperty(r,"_data",{get:()=>a}),a=>Object.defineProperty(r,"_error",{get:()=>a})));if(i===ct.error&&o._error instanceof Mt)throw Dy;if(i===ct.error&&!n)throw o._error;if(i===ct.error)return O.createElement(_i.Provider,{value:o,children:n});if(i===ct.success)return O.createElement(_i.Provider,{value:o,children:t});throw o}}});var $d=vi(ee=>{"use strict";function $l(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(0>>1;rki(l,n))uki(s,l)?(e[r]=s,e[u]=n,r=u):(e[r]=l,e[a]=n,r=a);else if(uki(s,n))e[r]=s,e[u]=n,r=u;else break e}}return t}function ki(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Fd=performance,ee.unstable_now=function(){return Fd.now()}):(jl=Date,Td=jl.now(),ee.unstable_now=function(){return jl.now()-Td});var Fd,jl,Td,Ut=[],pn=[],Fy=1,ft=null,Te=3,Di=!1,Bn=!1,lo=!1,Ud=typeof setTimeout=="function"?setTimeout:null,Id=typeof clearTimeout=="function"?clearTimeout:null,Md=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Vl(e){for(var t=_t(pn);t!==null;){if(t.callback===null)Li(pn);else if(t.startTime<=e)Li(pn),t.sortIndex=t.expirationTime,$l(Ut,t);else break;t=_t(pn)}}function Bl(e){if(lo=!1,Vl(e),!Bn)if(_t(Ut)!==null)Bn=!0,Wl(bl);else{var t=_t(pn);t!==null&&Kl(Bl,t.startTime-e)}}function bl(e,t){Bn=!1,lo&&(lo=!1,Id(uo),uo=-1),Di=!0;var n=Te;try{for(Vl(t),ft=_t(Ut);ft!==null&&(!(ft.expirationTime>t)||e&&!Hd());){var r=ft.callback;if(typeof r=="function"){ft.callback=null,Te=ft.priorityLevel;var o=r(ft.expirationTime<=t);t=ee.unstable_now(),typeof o=="function"?ft.callback=o:ft===_t(Ut)&&Li(Ut),Vl(t)}else Li(Ut);ft=_t(Ut)}if(ft!==null)var i=!0;else{var a=_t(pn);a!==null&&Kl(Bl,a.startTime-t),i=!1}return i}finally{ft=null,Te=n,Di=!1}}var Oi=!1,Pi=null,uo=-1,jd=5,zd=-1;function Hd(){return!(ee.unstable_now()-zde||125r?(e.sortIndex=n,$l(pn,e),_t(Ut)===null&&e===_t(pn)&&(lo?(Id(uo),uo=-1):lo=!0,Kl(Bl,n-r))):(e.sortIndex=o,$l(Ut,e),Bn||Di||(Bn=!0,Wl(bl))),e};ee.unstable_shouldYield=Hd;ee.unstable_wrapCallback=function(e){var t=Te;return function(){var n=Te;Te=t;try{return e.apply(this,arguments)}finally{Te=n}}}});var Bd=vi((CR,Vd)=>{"use strict";Vd.exports=$d()});var Qh=vi(at=>{"use strict";var Ty=Tt(),ot=Bd();function L(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mu=Object.prototype.hasOwnProperty,My=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,bd={},Wd={};function Ay(e){return mu.call(Wd,e)?!0:mu.call(bd,e)?!1:My.test(e)?Wd[e]=!0:(bd[e]=!0,!1)}function Uy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Iy(e,t,n,r){if(t===null||typeof t>"u"||Uy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Be(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var De={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){De[e]=new Be(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];De[t]=new Be(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){De[e]=new Be(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){De[e]=new Be(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){De[e]=new Be(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){De[e]=new Be(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){De[e]=new Be(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){De[e]=new Be(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){De[e]=new Be(e,5,!1,e.toLowerCase(),null,!1,!1)});var ls=/[\-:]([a-z])/g;function us(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ls,us);De[t]=new Be(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ls,us);De[t]=new Be(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ls,us);De[t]=new Be(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){De[e]=new Be(e,1,!1,e.toLowerCase(),null,!1,!1)});De.xlinkHref=new Be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){De[e]=new Be(e,1,!1,e.toLowerCase(),null,!0,!0)});function ss(e,t,n,r){var o=De.hasOwnProperty(t)?De[t]:null;(o!==null?o.type!==0:r||!(2l||o[a]!==i[l]){var u=` `+o[a].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=l);break}}}finally{Ql=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?go(e):""}function jy(e){switch(e.tag){case 5:return go(e.type);case 16:return go("Lazy");case 13:return go("Suspense");case 19:return go("SuspenseList");case 0:case 2:case 15:return e=Jl(e.type,!1),e;case 11:return e=Jl(e.type.render,!1),e;case 1:return e=Jl(e.type,!0),e;default:return""}}function wu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Rr:return"Fragment";case wr:return"Portal";case vu:return"Profiler";case cs:return"StrictMode";case yu:return"Suspense";case gu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qf:return(e.displayName||"Context")+".Consumer";case Zf:return(e._context.displayName||"Context")+".Provider";case ds:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case fs:return t=e.displayName||null,t!==null?t:wu(e.type)||"Memo";case mn:t=e._payload,e=e._init;try{return wu(e(t))}catch{}}return null}function zy(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return wu(t);case 8:return t===cs?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Hy(e){var t=tp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ti(e){e._valueTracker||(e._valueTracker=Hy(e))}function np(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=tp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function la(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ru(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Yd(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ln(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function rp(e,t){t=t.checked,t!=null&&ss(e,"checked",t,!1)}function Eu(e,t){rp(e,t);var n=Ln(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Su(e,t.type,n):t.hasOwnProperty("defaultValue")&&Su(e,t.type,Ln(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Su(e,t,n){(t!=="number"||la(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var wo=Array.isArray;function Or(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Mi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var So={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$y=["Webkit","ms","Moz","O"];Object.keys(So).forEach(function(e){$y.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),So[t]=So[e]})});function lp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||So.hasOwnProperty(e)&&So[e]?(""+t).trim():t+"px"}function up(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=lp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Vy=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Nu(e,t){if(t){if(Vy[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function Cu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ku=null;function ps(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pu=null,Fr=null,Tr=null;function Gd(e){if(e=Xo(e)){if(typeof Pu!="function")throw Error(L(280));var t=e.stateNode;t&&(t=Aa(t),Pu(e.stateNode,e.type,t))}}function sp(e){Fr?Tr?Tr.push(e):Tr=[e]:Fr=e}function cp(){if(Fr){var e=Fr,t=Tr;if(Tr=Fr=null,Gd(e),t)for(e=0;e>>=0,e===0?32:31-(qy(e)/eg|0)|0}var Ai=64,Ui=4194304;function Ro(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function da(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~o;l!==0?r=Ro(l):(i&=a,i!==0&&(r=Ro(i)))}else a=n&~o,a!==0?r=Ro(a):i!==0&&(r=Ro(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Qo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Pt(t),e[t]=n}function og(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=xo),lf=String.fromCharCode(32),uf=!1;function Dp(e,t){switch(e){case"keyup":return Fg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Op(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Er=!1;function Mg(e,t){switch(e){case"compositionend":return Op(t);case"keypress":return t.which!==32?null:(uf=!0,lf);case"textInput":return e=t.data,e===lf&&uf?null:e;default:return null}}function Ag(e,t){if(Er)return e==="compositionend"||!Es&&Dp(e,t)?(e=Pp(),Zi=gs=wn=null,Er=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=df(n)}}function Ap(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ap(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Up(){for(var e=window,t=la();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=la(e.document)}return t}function Ss(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function bg(e){var t=Up(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ap(n.ownerDocument.documentElement,n)){if(r!==null&&Ss(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ff(n,i);var a=ff(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Sr=null,Mu=null,Co=null,Au=!1;function pf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Au||Sr==null||Sr!==la(r)||(r=Sr,"selectionStart"in r&&Ss(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Co&&jo(Co,r)||(Co=r,r=ha(Mu,"onSelect"),0Nr||(e.current=$u[Nr],$u[Nr]=null,Nr--)}function te(e,t){Nr++,$u[Nr]=e.current,e.current=t}var Dn={},Ie=Fn(Dn),Ye=Fn(!1),Gn=Dn;function jr(e,t){var n=e.type.contextTypes;if(!n)return Dn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Qe(e){return e=e.childContextTypes,e!=null}function va(){oe(Ye),oe(Ie)}function Sf(e,t,n){if(Ie.current!==Dn)throw Error(L(168));te(Ie,t),te(Ye,n)}function Wp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(L(108,zy(e)||"Unknown",o));return ce({},n,r)}function ya(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dn,Gn=Ie.current,te(Ie,e),te(Ye,Ye.current),!0}function _f(e,t,n){var r=e.stateNode;if(!r)throw Error(L(169));n?(e=Wp(e,t,Gn),r.__reactInternalMemoizedMergedChildContext=e,oe(Ye),oe(Ie),te(Ie,e)):oe(Ye),te(Ye,n)}var Jt=null,Ua=!1,au=!1;function Kp(e){Jt===null?Jt=[e]:Jt.push(e)}function e0(e){Ua=!0,Kp(e)}function Tn(){if(!au&&Jt!==null){au=!0;var e=0,t=X;try{var n=Jt;for(X=1;e>=a,o-=a,Xt=1<<32-Pt(t)+o|n<v?(A=P,P=null):A=P.sibling;var M=f(m,P,h[v],w);if(M===null){P===null&&(P=A);break}e&&P&&M.alternate===null&&t(m,P),p=i(M,p,v),x===null?N=M:x.sibling=M,x=M,P=A}if(v===h.length)return n(m,P),le&&bn(m,v),N;if(P===null){for(;vv?(A=P,P=null):A=P.sibling;var z=f(m,P,M.value,w);if(z===null){P===null&&(P=A);break}e&&P&&z.alternate===null&&t(m,P),p=i(z,p,v),x===null?N=z:x.sibling=z,x=z,P=A}if(M.done)return n(m,P),le&&bn(m,v),N;if(P===null){for(;!M.done;v++,M=h.next())M=c(m,M.value,w),M!==null&&(p=i(M,p,v),x===null?N=M:x.sibling=M,x=M);return le&&bn(m,v),N}for(P=r(m,P);!M.done;v++,M=h.next())M=E(P,m,v,M.value,w),M!==null&&(e&&M.alternate!==null&&P.delete(M.key===null?v:M.key),p=i(M,p,v),x===null?N=M:x.sibling=M,x=M);return e&&P.forEach(function(Q){return t(m,Q)}),le&&bn(m,v),N}function C(m,p,h,w){if(typeof h=="object"&&h!==null&&h.type===Rr&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Fi:e:{for(var N=h.key,x=p;x!==null;){if(x.key===N){if(N=h.type,N===Rr){if(x.tag===7){n(m,x.sibling),p=o(x,h.props.children),p.return=m,m=p;break e}}else if(x.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===mn&&Cf(N)===x.type){n(m,x.sibling),p=o(x,h.props),p.ref=ho(m,x,h),p.return=m,m=p;break e}n(m,x);break}else t(m,x);x=x.sibling}h.type===Rr?(p=Xn(h.props.children,m.mode,w,h.key),p.return=m,m=p):(w=aa(h.type,h.key,h.props,null,m.mode,w),w.ref=ho(m,p,h),w.return=m,m=w)}return a(m);case wr:e:{for(x=h.key;p!==null;){if(p.key===x)if(p.tag===4&&p.stateNode.containerInfo===h.containerInfo&&p.stateNode.implementation===h.implementation){n(m,p.sibling),p=o(p,h.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=hu(h,m.mode,w),p.return=m,m=p}return a(m);case mn:return x=h._init,C(m,p,x(h._payload),w)}if(wo(h))return y(m,p,h,w);if(so(h))return S(m,p,h,w);Yi(m,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,p!==null&&p.tag===6?(n(m,p.sibling),p=o(p,h),p.return=m,m=p):(n(m,p),p=pu(h,m.mode,w),p.return=m,m=p),a(m)):n(m,p)}return C}var Hr=Xp(!0),Gp=Xp(!1),Ra=Fn(null),Ea=null,Pr=null,Cs=null;function ks(){Cs=Pr=Ea=null}function Ps(e){var t=Ra.current;oe(Ra),e._currentValue=t}function bu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ar(e,t){Ea=e,Cs=Pr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ke=!0),e.firstContext=null)}function yt(e){var t=e._currentValue;if(Cs!==e)if(e={context:e,memoizedValue:t,next:null},Pr===null){if(Ea===null)throw Error(L(308));Pr=e,Ea.dependencies={lanes:0,firstContext:e}}else Pr=Pr.next=e;return t}var Yn=null;function Ls(e){Yn===null?Yn=[e]:Yn.push(e)}function Zp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Ls(t)):(n.next=o.next,o.next=n),t.interleaved=n,tn(e,r)}function tn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var vn=!1;function Ds(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function qp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Zt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Nn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,tn(e,n)}return o=r.interleaved,o===null?(t.next=t,Ls(r)):(t.next=o.next,o.next=t),r.interleaved=t,tn(e,n)}function ea(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ms(e,n)}}function kf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Sa(e,t,n,r){var o=e.updateQueue;vn=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var u=l,s=u.next;u.next=null,a===null?i=s:a.next=s,a=u;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=s:l.next=s,d.lastBaseUpdate=u))}if(i!==null){var c=o.baseState;a=0,d=s=u=null,l=i;do{var f=l.lane,E=l.eventTime;if((r&f)===f){d!==null&&(d=d.next={eventTime:E,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,S=l;switch(f=t,E=n,S.tag){case 1:if(y=S.payload,typeof y=="function"){c=y.call(E,c,f);break e}c=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=S.payload,f=typeof y=="function"?y.call(E,c,f):y,f==null)break e;c=ce({},c,f);break e;case 2:vn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[l]:f.push(l))}else E={eventTime:E,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(s=d=E,u=c):d=d.next=E,a|=f;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;f=l,l=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(1);if(d===null&&(u=c),o.baseState=u,o.firstBaseUpdate=s,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);er|=a,e.lanes=a,e.memoizedState=c}}function Pf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=uu.transition;uu.transition={};try{e(!1),t()}finally{X=n,uu.transition=r}}function vh(){return gt().memoizedState}function o0(e,t,n){var r=kn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},yh(e))gh(t,n);else if(n=Zp(e,t,n,r),n!==null){var o=Ve();Lt(n,e,r,o),wh(n,t,r)}}function i0(e,t,n){var r=kn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(yh(e))gh(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,Dt(l,a)){var u=t.interleaved;u===null?(o.next=o,Ls(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=Zp(e,t,o,r),n!==null&&(o=Ve(),Lt(n,e,r,o),wh(n,t,r))}}function yh(e){var t=e.alternate;return e===se||t!==null&&t===se}function gh(e,t){ko=xa=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ms(e,n)}}var Na={readContext:yt,useCallback:Me,useContext:Me,useEffect:Me,useImperativeHandle:Me,useInsertionEffect:Me,useLayoutEffect:Me,useMemo:Me,useReducer:Me,useRef:Me,useState:Me,useDebugValue:Me,useDeferredValue:Me,useTransition:Me,useMutableSource:Me,useSyncExternalStore:Me,useId:Me,unstable_isNewReconciler:!1},a0={readContext:yt,useCallback:function(e,t){return jt().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:Df,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,na(4194308,4,dh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return na(4194308,4,e,t)},useInsertionEffect:function(e,t){return na(4,2,e,t)},useMemo:function(e,t){var n=jt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=jt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=o0.bind(null,se,e),[r.memoizedState,e]},useRef:function(e){var t=jt();return e={current:e},t.memoizedState=e},useState:Lf,useDebugValue:js,useDeferredValue:function(e){return jt().memoizedState=e},useTransition:function(){var e=Lf(!1),t=e[0];return e=r0.bind(null,e[1]),jt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=se,o=jt();if(le){if(n===void 0)throw Error(L(407));n=n()}else{if(n=t(),_e===null)throw Error(L(349));qn&30||rh(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Df(ih.bind(null,r,i,e),[e]),r.flags|=2048,Ko(9,oh.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=jt(),t=_e.identifierPrefix;if(le){var n=Gt,r=Xt;n=(r&~(1<<32-Pt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=bo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[zt]=t,e[$o]=r,Lh(e,t,!1,!1),t.stateNode=e;e:{switch(a=Cu(n,r),n){case"dialog":re("cancel",e),re("close",e),o=r;break;case"iframe":case"object":case"embed":re("load",e),o=r;break;case"video":case"audio":for(o=0;oBr&&(t.flags|=128,r=!0,mo(i,!1),t.lanes=4194304)}else{if(!r)if(e=_a(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!le)return Ae(t),null}else 2*me()-i.renderingStartTime>Br&&n!==1073741824&&(t.flags|=128,r=!0,mo(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=me(),t.sibling=null,n=ue.current,te(ue,r?n&1|2:n&1),t):(Ae(t),null);case 22:case 23:return bs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tt&1073741824&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function h0(e,t){switch(xs(t),t.tag){case 1:return Qe(t.type)&&va(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $r(),oe(Ye),oe(Ie),Ts(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Fs(t),null;case 13:if(oe(ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(L(340));zr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(ue),null;case 4:return $r(),null;case 10:return Ps(t.type._context),null;case 22:case 23:return bs(),null;case 24:return null;default:return null}}var Ji=!1,Ue=!1,m0=typeof WeakSet=="function"?WeakSet:Set,I=null;function Lr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function qu(e,t,n){try{n()}catch(r){fe(e,t,r)}}var $f=!1;function v0(e,t){if(Uu=fa,e=Up(),Ss(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,u=-1,s=0,d=0,c=e,f=null;t:for(;;){for(var E;c!==n||o!==0&&c.nodeType!==3||(l=a+o),c!==i||r!==0&&c.nodeType!==3||(u=a+r),c.nodeType===3&&(a+=c.nodeValue.length),(E=c.firstChild)!==null;)f=c,c=E;for(;;){if(c===e)break t;if(f===n&&++s===o&&(l=a),f===i&&++d===r&&(u=a),(E=c.nextSibling)!==null)break;c=f,f=c.parentNode}c=E}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Iu={focusedElem:e,selectionRange:n},fa=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var S=y.memoizedProps,C=y.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?S:Nt(t.type,S),C);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(w){fe(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return y=$f,$f=!1,y}function Po(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&qu(t,n,i)}o=o.next}while(o!==r)}}function za(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function es(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Fh(e){var t=e.alternate;t!==null&&(e.alternate=null,Fh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zt],delete t[$o],delete t[Hu],delete t[Zg],delete t[qg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Th(e){return e.tag===5||e.tag===3||e.tag===4}function Vf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Th(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ts(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ma));else if(r!==4&&(e=e.child,e!==null))for(ts(e,t,n),e=e.sibling;e!==null;)ts(e,t,n),e=e.sibling}function ns(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ns(e,t,n),e=e.sibling;e!==null;)ns(e,t,n),e=e.sibling}var Pe=null,Ct=!1;function hn(e,t,n){for(n=n.child;n!==null;)Mh(e,t,n),n=n.sibling}function Mh(e,t,n){if(Ht&&typeof Ht.onCommitFiberUnmount=="function")try{Ht.onCommitFiberUnmount(Oa,n)}catch{}switch(n.tag){case 5:Ue||Lr(n,t);case 6:var r=Pe,o=Ct;Pe=null,hn(e,t,n),Pe=r,Ct=o,Pe!==null&&(Ct?(e=Pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pe.removeChild(n.stateNode));break;case 18:Pe!==null&&(Ct?(e=Pe,n=n.stateNode,e.nodeType===8?iu(e.parentNode,n):e.nodeType===1&&iu(e,n),Uo(e)):iu(Pe,n.stateNode));break;case 4:r=Pe,o=Ct,Pe=n.stateNode.containerInfo,Ct=!0,hn(e,t,n),Pe=r,Ct=o;break;case 0:case 11:case 14:case 15:if(!Ue&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&qu(n,t,a),o=o.next}while(o!==r)}hn(e,t,n);break;case 1:if(!Ue&&(Lr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){fe(n,t,l)}hn(e,t,n);break;case 21:hn(e,t,n);break;case 22:n.mode&1?(Ue=(r=Ue)||n.memoizedState!==null,hn(e,t,n),Ue=r):hn(e,t,n);break;default:hn(e,t,n)}}function Bf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new m0),t.forEach(function(r){var o=N0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function xt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=me()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*g0(r/1960))-r,10e?16:e,Rn===null)var r=!1;else{if(e=Rn,Rn=null,Pa=0,K&6)throw Error(L(331));var o=K;for(K|=4,I=e.current;I!==null;){var i=I,a=i.child;if(I.flags&16){var l=i.deletions;if(l!==null){for(var u=0;ume()-Vs?Jn(e,0):$s|=n),Je(e,t)}function Vh(e,t){t===0&&(e.mode&1?(t=Ui,Ui<<=1,!(Ui&130023424)&&(Ui=4194304)):t=1);var n=Ve();e=tn(e,t),e!==null&&(Qo(e,t,n),Je(e,n))}function x0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vh(e,n)}function N0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(L(314))}r!==null&&r.delete(t),Vh(e,n)}var Bh;Bh=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ye.current)Ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ke=!1,f0(e,t,n);Ke=!!(e.flags&131072)}else Ke=!1,le&&t.flags&1048576&&Yp(t,wa,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ra(e,t),e=t.pendingProps;var o=jr(t,Ie.current);Ar(t,n),o=As(null,t,r,e,o,n);var i=Us();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qe(r)?(i=!0,ya(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ds(t),o.updater=ja,t.stateNode=o,o._reactInternals=t,Ku(t,r,e,n),t=Ju(null,t,r,!0,i,n)):(t.tag=0,le&&i&&_s(t),$e(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ra(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=k0(r),e=Nt(r,e),o){case 0:t=Qu(null,t,r,e,n);break e;case 1:t=jf(null,t,r,e,n);break e;case 11:t=Uf(null,t,r,e,n);break e;case 14:t=If(null,t,r,Nt(r.type,e),n);break e}throw Error(L(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Nt(r,o),Qu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Nt(r,o),jf(e,t,r,o,n);case 3:e:{if(Ch(t),e===null)throw Error(L(387));r=t.pendingProps,i=t.memoizedState,o=i.element,qp(e,t),Sa(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Vr(Error(L(423)),t),t=zf(e,t,r,n,o);break e}else if(r!==o){o=Vr(Error(L(424)),t),t=zf(e,t,r,n,o);break e}else for(nt=xn(t.stateNode.containerInfo.firstChild),rt=t,le=!0,kt=null,n=Gp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zr(),r===o){t=nn(e,t,n);break e}$e(e,t,r,n)}t=t.child}return t;case 5:return eh(t),e===null&&Bu(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,ju(r,o)?a=null:i!==null&&ju(r,i)&&(t.flags|=32),Nh(e,t),$e(e,t,a,n),t.child;case 6:return e===null&&Bu(t),null;case 13:return kh(e,t,n);case 4:return Os(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Hr(t,null,r,n):$e(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Nt(r,o),Uf(e,t,r,o,n);case 7:return $e(e,t,t.pendingProps,n),t.child;case 8:return $e(e,t,t.pendingProps.children,n),t.child;case 12:return $e(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,te(Ra,r._currentValue),r._currentValue=a,i!==null)if(Dt(i.value,a)){if(i.children===o.children&&!Ye.current){t=nn(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var u=l.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=Zt(-1,n&-n),u.tag=2;var s=i.updateQueue;if(s!==null){s=s.shared;var d=s.pending;d===null?u.next=u:(u.next=d.next,d.next=u),s.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),bu(i.return,n,t),l.lanes|=n;break}u=u.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(L(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),bu(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}$e(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ar(t,n),o=yt(o),r=r(o),t.flags|=1,$e(e,t,r,n),t.child;case 14:return r=t.type,o=Nt(r,t.pendingProps),o=Nt(r.type,o),If(e,t,r,o,n);case 15:return _h(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Nt(r,o),ra(e,t),t.tag=1,Qe(r)?(e=!0,ya(t)):e=!1,Ar(t,n),Rh(t,r,o),Ku(t,r,o,n),Ju(null,t,r,!0,e,n);case 19:return Ph(e,t,n);case 22:return xh(e,t,n)}throw Error(L(156,t.tag))};function bh(e,t){return yp(e,t)}function C0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mt(e,t,n,r){return new C0(e,t,n,r)}function Ks(e){return e=e.prototype,!(!e||!e.isReactComponent)}function k0(e){if(typeof e=="function")return Ks(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ds)return 11;if(e===fs)return 14}return 2}function Pn(e,t){var n=e.alternate;return n===null?(n=mt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function aa(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")Ks(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Rr:return Xn(n.children,o,i,t);case cs:a=8,o|=8;break;case vu:return e=mt(12,n,t,o|2),e.elementType=vu,e.lanes=i,e;case yu:return e=mt(13,n,t,o),e.elementType=yu,e.lanes=i,e;case gu:return e=mt(19,n,t,o),e.elementType=gu,e.lanes=i,e;case ep:return $a(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zf:a=10;break e;case qf:a=9;break e;case ds:a=11;break e;case fs:a=14;break e;case mn:a=16,r=null;break e}throw Error(L(130,e==null?e:typeof e,""))}return t=mt(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Xn(e,t,n,r){return e=mt(7,e,r,t),e.lanes=n,e}function $a(e,t,n,r){return e=mt(22,e,r,t),e.elementType=ep,e.lanes=n,e.stateNode={isHidden:!1},e}function pu(e,t,n){return e=mt(6,e,null,t),e.lanes=n,e}function hu(e,t,n){return t=mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function P0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Gl(0),this.expirationTimes=Gl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ys(e,t,n,r,o,i,a,l,u){return e=new P0(e,t,n,l,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=mt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ds(i),e}function L0(e,t,n){var r=3{"use strict";function Jh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Jh)}catch(e){console.error(e)}}Jh(),Xh.exports=Qh()});function on(){return on=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Ja(e){return e!=null&&typeof e.tagName=="string"}function W0(e){return Ja(e)&&e.tagName.toLowerCase()==="button"}function K0(e){return Ja(e)&&e.tagName.toLowerCase()==="form"}function Y0(e){return Ja(e)&&e.tagName.toLowerCase()==="input"}function Q0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function J0(e,t){return e.button===0&&(!t||t==="_self")&&!Q0(e)}function Qa(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function X0(e,t){let n=Qa(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}function G0(){if(Ka===null)try{new FormData(document.createElement("form"),0),Ka=!1}catch{Ka=!0}return Ka}function Zs(e){return e!=null&&!Z0.has(e)?null:e}function q0(e,t){let n,r,o,i,a;if(K0(e)){let l=e.getAttribute("action");r=l?Ze(l,t):null,n=e.getAttribute("method")||Ya,o=Zs(e.getAttribute("enctype"))||Gs,i=new FormData(e)}else if(W0(e)||Y0(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a