PageSourceSearch

https://members.tech-tokyo.org/packs/js/67319-5c42e549ee8d8ffe.js

js tech-tokyo.org collected 2026-09-30 19:15:34 UTC 58,652 bytes, 2 lines download raw bytes

1"use strict";(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[67319],{851229(t,e){e.mf=void 0,e.mf=function(t,e={}){let o,{forcePositive:r=!1,caseSensitive:s=!0,seed:i=0}=e;s||(t=t.toLowerCase());let n=i;for(o=0;o<t.length;o++)n=(n<<5)-n+t.charCodeAt(o)|0;return r&&(n&=0x7fffffff),n}},730809(t,e,o){var r="__TSR_index",s="popstate",i="beforeunload";function n(t){let e=t.getLocation(),o=new Set,s=r=>{e=t.getLocation(),o.forEach(t=>t({location:e,action:r}))},i=o=>{t.notifyOnIndexChange??!0?s(o):e=t.getLocation()},n=async({task:o,navigateOpts:r,...s})=>{if(r?.ignoreBlocker)return void o();let i=t.getBlockers?.()??[],n="PUSH"===s.type||"REPLACE"===s.type;if("u">typeof document&&i.length&&n)for(let o of i){let r=h(s.path,s.state);if(await o.blockerFn({currentLocation:e,nextLocation:r,action:s.type}))return void t.onBlocked?.()}o()};return{get location(){return e},get length(){return t.getLength()},subscribers:o,subscribe:t=>(o.add(t),()=>{o.delete(t)}),push:(o,i,l)=>{n({task:()=>{t.pushState(o,i),s({type:"PUSH"})},navigateOpts:l,type:"PUSH",path:o,state:i=a(e.state[r]+1,i)})},replace:(o,i,l)=>{n({task:()=>{t.replaceState(o,i),s({type:"REPLACE"})},navigateOpts:l,type:"REPLACE",path:o,state:i=a(e.state[r],i)})},go:(e,o)=>{n({task:()=>{t.go(e),i({type:"GO",index:e})},navigateOpts:o,type:"GO"})},back:e=>{n({task:()=>{t.back(e?.ignoreBlocker??!1),i({type:"BACK"})},navigateOpts:e,type:"BACK"})},forward:e=>{n({task:()=>{t.forward(e?.ignoreBlocker??!1),i({type:"FORWARD"})},navigateOpts:e,type:"FORWARD"})},canGoBack:()=>0!==e.state[r],createHref:e=>t.createHref(e),block:e=>{if(!t.setBlockers)return()=>{};let o=t.getBlockers?.()??[];return t.setBlockers([...o,e]),()=>{let o=t.getBlockers?.()??[];t.setBlockers?.(o.filter(t=>t!==e))}},flush:()=>t.flush?.(),destroy:()=>t.destroy?.(),notify:s}}function a(t,e){e||(e={});let o=d();return{...e,key:o,__TSR_key:o,[r]:t}}function l(t){let e,o,a,l=t?.window??("u">typeof document?window:void 0),c=l.history.pushState,u=l.history.replaceState,p=[],f=()=>p,g=t?.createHref??(t=>t),m=t?.parseLocation??(()=>h(`${l.location.pathname}${l.location.search}${l.location.hash}`,l.history.state));if(!l.history.state?.__TSR_key&&!l.history.state?.key){let t=d();l.history.replaceState({[r]:0,key:t,__TSR_key:t},"")}let v=m(),y=!1,b=!1,_=!1,R=!1,S=()=>{o&&(C._ignoreSubscribers=!0,(o.isPush?l.history.pushState:l.history.replaceState)(o.state,"",o.href),C._ignoreSubscribers=!1,o=void 0,a=void 0,e=void 0)},L=(t,r,s)=>{let i=g(r);a||(e=v),v=h(r,s),o={href:i,state:s,isPush:o?.isPush||"push"===t},a||(a=Promise.resolve().then(()=>S()))},P=t=>{v=m(),C.notify({type:t})},w=async()=>{if(b){b=!1;return}let t=m(),e=t.state[r]-v.state[r],o=1===e,s=-1===e,i=!o&&!s||y;y=!1;let n=i?"GO":s?"BACK":"FORWARD",a=i?{type:"GO",index:e}:{type:s?"BACK":"FORWARD"};if(_)_=!1;else{let e=f();if("u">typeof document&&e.length){for(let o of e)if(await o.blockerFn({currentLocation:v,nextLocation:t,action:n})){b=!0,l.history.go(1),C.notify(a);return}}}v=m(),C.notify(a)},x=t=>{if(R){R=!1;return}let e=!1,o=f();if("u">typeof document&&o.length)for(let t of o){let o=t.enableBeforeUnload??!0;if(!0===o||"function"==typeof o&&!0===o()){e=!0;break}}if(e)return t.preventDefault(),t.returnValue=""},C=n({getLocation:()=>v,getLength:()=>l.history.length,pushState:(t,e)=>L("push",t,e),replaceState:(t,e)=>L("replace",t,e),back:t=>(t&&(_=!0),R=!0,l.history.back()),forward:t=>{t&&(_=!0),R=!0,l.history.forward()},go:t=>{y=!0,l.history.go(t)},createHref:t=>g(t),flush:S,destroy:()=>{l.history.pushState=c,l.history.replaceState=u,l.removeEventListener(i,x,{capture:!0}),l.removeEventListener(s,w)},onBlocked:()=>{e&&v!==e&&(v=e)},getBlockers:f,setBlockers:t=>p=t,notifyOnIndexChange:!1});return l.addEventListener(i,x,{capture:!0}),l.addEventListener(s,w),l.history.pushState=function(...t){let e=c.apply(l.history,t);return C._ignoreSubscribers||P("PUSH"),e},l.history.replaceState=function(...t){let e=u.apply(l.history,t);return C._ignoreSubscribers||P("REPLACE"),e},C}function c(t={initialEntries:["/"]}){let e=t.initialEntries,o=t.initialIndex?Math.min(Math.max(t.initialIndex,0),e.length-1):e.length-1,r=e.map((t,e)=>a(e,void 0)),s=[];return n({getLocation:()=>h(e[o],r[o]),getLength:()=>e.length,pushState:(t,s)=>{o<e.length-1&&(e.splice(o+1),r.splice(o+1)),r.push(s),e.push(t),o=Math.max(e.length-1,0)},replaceState:(t,s)=>{r[o]=s,e[o]=t},back:()=>{o=Math.max(o-1,0)},forward:()=>{o=Math.min(o+1,e.length-1)},go:t=>{o=Math.min(Math.max(o+t,0),e.length-1)},createHref:t=>t,getBlockers:()=>s,setBlockers:t=>s=t})}function h(t,e){let o,s=((o=t.replace(/[\x00-\x1f\x7f]/g,"")).startsWith("//")&&(o="/"+o.replace(/^\/+/,"")),o),i=s.indexOf("#"),n=s.indexOf("?"),a=d();return{href:s,pathname:s.substring(0,i>0?n>0?Math.min(i,n):i:n>
10?n:s.length),hash:i>-1?s.substring(i):"",search:n>-1?s.slice(n,-1===i?void 0:i):"",state:e||{[r]:0,key:a,__TSR_key:a}}}function d(){return(Math.random()+1).toString(36).substring(7)}o.d(e,{dy:()=>h,sC:()=>c,zR:()=>l})},864873(t,e,o){var r=o(933578),s=o(391426);function i(t){let e=t.errorComponent??a;return(0,s.jsx)(n,{getResetKey:t.getResetKey,onCatch:t.onCatch,children:({error:o,reset:s})=>o?r.createElement(e,{error:o,reset:s}):t.children})}var n=class extends r.Component{constructor(...t){super(...t),this.state={error:null}}static getDerivedStateFromProps(t,e){let o=t.getResetKey();return e.error&&e.resetKey!==o?{resetKey:o,error:null}:{resetKey:o}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidCatch(t,e){this.props.onCatch&&this.props.onCatch(t,e)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function a({error:t}){let[e,o]=r.useState(!1);return(0,s.jsxs)("div",{style:{padding:".5rem",maxWidth:"100%"},children:[(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[(0,s.jsx)("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),(0,s.jsx)("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>o(t=>!t),children:e?"Hide Error":"Show Error"})]}),(0,s.jsx)("div",{style:{height:".25rem"}}),e?(0,s.jsx)("div",{children:(0,s.jsx)("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t.message?(0,s.jsx)("code",{children:t.message}):null})}):null]})}o.d(e,{A:()=>a,g:()=>i})},30864(t,e,o){o.d(e,{Y:()=>L,s:()=>C});var r=o(140221),s=o(864873),i=o(265755),n=o(549022),a=o(173630),l=o(5077),c=o(933578),h=o(391426),d=o(610548);function u(t){let e=(0,a.r)(),o=`not-found-${(0,d.P)(e.stores.location,t=>t.pathname)}-${(0,d.P)(e.stores.status,t=>t)}`;return(0,h.jsx)(s.g,{getResetKey:()=>o,onCatch:(e,o)=>{if((0,l.c)(e))t.onCatch?.(e,o);else throw e},errorComponent:({error:e})=>{if((0,l.c)(e))return t.fallback?.(e);throw e},children:t.children})}function p(){return(0,h.jsx)("p",{children:"Not Found"})}var f=o(687547);function g(t,e,o){return e.options.notFoundComponent?(0,h.jsx)(e.options.notFoundComponent,{...o}):t.options.defaultNotFoundComponent?(0,h.jsx)(t.options.defaultNotFoundComponent,{...o}):(0,h.jsx)(p,{})}var m=o(48497),v=o(643753),y=o(913785),b=o(938209),_=o(102188),R=(t,e)=>t.routeId===e.routeId&&t._displayPending===e._displayPending,S=(t,e)=>t[0]===e[0]&&t[1]===e[1],L=c.memo(function({matchId:t}){let e=(0,a.r)(),o=e.stores.matchStores.get(t);o||(0,m.V)();let r=(0,d.P)(e.stores.loadedAt,t=>t),s=(0,d.P)(o,t=>t,R);return(0,h.jsx)(P,{router:e,matchId:t,resetKey:r,matchState:c.useMemo(()=>{let t=s.routeId,o=e.routesById[t].parentRoute?.id;return{routeId:t,ssr:s.ssr,_displayPending:s._displayPending,parentRouteId:o}},[s._displayPending,s.routeId,s.ssr,e.routesById])})});function P({router:t,matchId:e,resetKey:o,matchState:r}){let a=t.routesById[r.routeId],d=a.options.pendingComponent??t.options.defaultPendingComponent,p=d?(0,h.jsx)(d,{}):null,g=a.options.errorComponent??t.options.defaultErrorComponent,m=a.options.onCatch??t.options.defaultOnCatch,y=a.isRoot?a.options.notFoundComponent??t.options.notFoundRoute?.options.component:a.options.notFoundComponent,b=!1===r.ssr||"data-only"===r.ssr,_=(!a.isRoot||a.options.wrapInSuspense||b)&&(a.options.wrapInSuspense??d??(a.options.errorComponent?.preload||b))?c.Suspense:f._,R=g?s.g:f._,S=y?u:f._;return(0,h.jsxs)(a.isRoot?a.options.shellComponent??f._:f._,{children:[(0,h.jsx)(n.$.Provider,{value:e,children:(0,h.jsx)(_,{fallback:p,children:(0,h.jsx)(R,{getResetKey:()=>o,errorComponent:g||s.A,onCatch:(t,e)=>{if((0,l.c)(t))throw t.routeId??=r.routeId,t;m?.(t,e)},children:(0,h.jsx)(S,{fallback:t=>{if(t.routeId??=r.routeId,!y||t.routeId&&t.routeId!==r.routeId||!t.routeId&&!a.isRoot)throw t;return c.createElement(y,t)},children:b||r._displayPending?(0,h.jsx)(i.Y,{fallback:p,children:(0,h.jsx)(x,{matchId:e})}):(0,h.jsx)(x,{matchId:e})})})})}),r.parentRouteId===v.n?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(w,{}),(t.options.scrollRestoration,null)]}):null]})}function w(){let t=(0,a.r)(),e=c.useRef();return(0,r.Nf)(()=>{let o=t.stores.resolvedLocation.get(),r=e.current;o&&(!r||r.href!==o.href)&&t.emit({type:"onRendered",...(0,y.CG)(t.stores.location.get(),r??o)}),e.current=o},[(0,d.P)(t.stores.resolvedLocation,t=>t?.state.__TSR_key),t]),null}
1var x=c.memo(function({matchId:t}){let e=(0,a.r)(),o=(t,o)=>e.getMatch(t.id)?._nonReactive[o]??t._nonReactive[o],r=e.stores.matchStores.get(t);r||(0,m.V)();let s=(0,d.P)(r,t=>t),i=s.routeId,n=e.routesById[i],u=c.useMemo(()=>{let t=(e.routesById[i].options.remountDeps??e.options.defaultRemountDeps)?.({routeId:i,loaderDeps:s.loaderDeps,params:s._strictParams,search:s._strictSearch});return t?JSON.stringify(t):void 0},[i,s.loaderDeps,s._strictParams,s._strictSearch,e.options.defaultRemountDeps,e.routesById]),p=c.useMemo(()=>{let t=n.options.component??e.options.defaultComponent;return t?(0,h.jsx)(t,{},u):(0,h.jsx)(C,{})},[u,n.options.component,e.options.defaultComponent]);if(s._displayPending)throw o(s,"displayPendingPromise");if(s._forcePending)throw o(s,"minPendingPromise");if("pending"===s.status){let t=n.options.pendingMinMs??e.options.defaultPendingMinMs;if(t){let o=e.getMatch(s.id);if(o&&!o._nonReactive.minPendingPromise){let e=(0,_.Su)();o._nonReactive.minPendingPromise=e,setTimeout(()=>{e.resolve(),o._nonReactive.minPendingPromise=void 0},t)}}throw o(s,"loadPromise")}if("notFound"===s.status)return(0,l.c)(s.error)||(0,m.V)(),g(e,n,s.error);if("redirected"===s.status)throw(0,b.N6)(s.error)||(0,m.V)(),o(s,"loadPromise");if("error"===s.status)throw s.error;return p}),C=c.memo(function(){let t,e,o=(0,a.r)(),r=c.useContext(n.$),s=!1;{let i=r?o.stores.matchStores.get(r):void 0;[t,s]=(0,d.P)(i,t=>[t?.routeId,t?.globalNotFound??!1],S),e=(0,d.P)(o.stores.matchesId,t=>t[t.findIndex(t=>t===r)+1])}let i=t?o.routesById[t]:void 0,l=o.options.defaultPendingComponent?(0,h.jsx)(o.options.defaultPendingComponent,{}):null;if(s)return i||(0,m.V)(),g(o,i,void 0);if(!e)return null;let u=(0,h.jsx)(L,{matchId:e});return t===v.n?(0,h.jsx)(c.Suspense,{fallback:l,children:u}):u})},16876(t,e,o){o.d(e,{uP:()=>y,_f:()=>_,FE:()=>R});var r=o(864873),s=o(549022),i=o(173630),n=o(866722),a=o(140221),l=o(702258),c=o(913785),h=o(933578),d=o(610548),u=o(562838);function p(){let t=(0,i.r)(),e=h.useRef({router:t,mounted:!1}),[o,r]=h.useState(!1),s=(0,d.P)(t.stores.isLoading,t=>t),n=(0,d.P)(t.stores.hasPending,t=>t),p=(0,a.ZC)(s),f=s||o||n,g=(0,a.ZC)(f),m=s||n,v=(0,a.ZC)(m);return t.startTransition=t=>{r(!0),h.startTransition(()=>{t(),r(!1)})},h.useEffect(()=>{let e=t.history.subscribe(t.load),o=t.buildLocation({to:t.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return(0,l.gx)(t.latestLocation.publicHref)!==(0,l.gx)(o.publicHref)&&t.commitLocation({...o,replace:!0}),()=>{e()}},[t,t.history]),(0,a.Nf)(()=>{"u">typeof window&&t.ssr||e.current.router===t&&e.current.mounted||(e.current={router:t,mounted:!0},(async()=>{try{await t.load()}catch(t){console.error(t)}})())},[t]),(0,a.Nf)(()=>{p&&!s&&t.emit({type:"onLoad",...(0,c.CG)(t.stores.location.get(),t.stores.resolvedLocation.get())})},[p,t,s]),(0,a.Nf)(()=>{v&&!m&&t.emit({type:"onBeforeRouteMount",...(0,c.CG)(t.stores.location.get(),t.stores.resolvedLocation.get())})},[m,v,t]),(0,a.Nf)(()=>{if(g&&!f){let e=(0,c.CG)(t.stores.location.get(),t.stores.resolvedLocation.get());t.emit({type:"onResolved",...e}),(0,u.vA)(()=>{t.stores.status.set("idle"),t.stores.resolvedLocation.set(t.stores.location.get())})}},[f,g,t]),null}var f=o(687547),g=o(30864),m=o(643753),v=o(391426);function y(){let t=(0,i.r)(),e=t.routesById[m.n].options.pendingComponent??t.options.defaultPendingComponent,o=e?(0,v.jsx)(e,{}):null,r=(0,v.jsxs)("u">typeof document&&t.ssr?f._:h.Suspense,{fallback:o,children:[(0,v.jsx)(p,{}),(0,v.jsx)(b,{})]});return t.options.InnerWrap?(0,v.jsx)(t.options.InnerWrap,{children:r}):r}function b(){let t=(0,i.r)(),e=(0,d.P)(t.stores.firstId,t=>t),o=(0,d.P)(t.stores.loadedAt,t=>t),n=e?(0,v.jsx)(g.Y,{matchId:e}):null;return(0,v.jsx)(s.$.Provider,{value:e,children:t.options.disableGlobalCatchBoundary?n:(0,v.jsx)(r.g,{getResetKey:()=>o,errorComponent:r.A,onCatch:void 0,children:n})})}function _(){let t=(0,i.r)();return(0,d.P)(t.stores.matchRouteDeps,t=>t),h.useCallback(e=>{let{pending:o,caseSensitive:r,fuzzy:s,includeSearch:i,...n}=e;return t.matchRoute(n,{pending:o,caseSensitive:r,fuzzy:s,includeSearch:i})},[t])}function R(t){let e=(0,i.r)();return(0,d.P)(e.stores.matches,(0,n.X)(t,e))}},687547(t,e,o){o(933578);var r=o(391426);function s(t){return(0,r.jsx)(r.Fragment,{children:t.children})}o.d(e,{_:()=>s})},549022(t,e,o){var r=o(933578),s=r.createContext(void 0),i=r.createContext(void 0);o.d(e,{$:()=>s,n:()=>i})},866722(t,e,o){var r=o(549022),s=o(173630),i=o(102188),n=o(48497),a=o(933578),l=o(610548),c={get(){},subscribe:()=>({unsubscribe(){}})};function h(t,e){let o=a.useRef();return r=>{let s=t?.select?t.select(r):r;return t?.structuralSharing??e.options.defaultStructuralSharing?o.current=(0,i.BH)(o.current,s):s}}function d(t){let e=(0,s.r)(),o=a.useContext(t.from?r.n:r.$),i=t.from?e.stores.getRouteMatchStore(t.from):e.stores.matchStores.get(o),d=h(t,e),u=(0,l.P)(i??c,t=>t?d(t):c);if(u!==c)return u;(t.shouldThrow??!0)&&(0,n.V)()}o.d(e,{R:()=>d,X:()=>h})},5077(t,e,o){function r(t={}){if(t.isNotFound=!0,t.throw)throw t;return t}function s(t){return t?.isNotFound===!0}o.d(e,{c:()=>s,m:()=>r})},938209(t,e,o){function r(t){if(t.statusCode=t.statusCode||t.code||307,!t._builtLocation&&!t.reloadDocument&&"string"==typeof t.href)try{new URL(t.href),t.reloadDocument=!0}catch{}let e=new Headers(t.headers);t.href&&null===e.get("Location")&&e.set("Location",t.href);let o=new Response(null,{status:t.statusCode,headers:e});if(o.options=t,t.throw)throw o;return o}function s(t){return t instanceof Response&&!!t.options}o.d(e,{N6:()=>s,V2:()=>r})},643753(t,e,o){o.d(e,{},{n:"__root__"})},913785(t,e,o){o.d(e,{rm:()=>U,CG:()=>z,zj:()=>W});var r=o(102188),s=o(189355),i=o(721708),n=o(702258),a=o(5077);let l=function(){try{return sessionStorage}catch{return}}(),c=function(){try{return JSON.parse(l?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}(),h="data-scroll-restoration-id",d=t=>t.state.__TSR_key||t.href,u=!1,p="window";function f(t){try{return"function"==typeof t?t():document.querySelector(t)}catch{}}function g(t){let e=[];for(let o of t){if(o===p)continue;let t=f(o);t&&e.push(t)}return e}var m=o(513079),v=o(643753),y=o(938209),b=o(48497);let _=t=>{if(!t.rendered)return t.rendered=!0,t.onReady?.()},R=(t,e)=>!!(t.preload&&!t.router.stores.matchStores.has(e)),S=(t,e,o=!0)=>{let r={...t.router.options.context??{}},s=o?e:e-1;for(let e=0;e<=s;e++){let o=t.matches[e];if(!o)continue;let s=t.router.getMatch(o.id);
1s&&Object.assign(r,s.__routeContext,s.__beforeLoadContext)}return r},L=(t,e)=>{if(!t.matches.length)return;let o=e.routeId,r=t.matches.findIndex(e=>e.routeId===t.router.routeTree.id),s=r>=0?r:0,i=o?t.matches.findIndex(t=>t.routeId===o):t.firstBadMatchIndex??t.matches.length-1;i<0&&(i=s);for(let e=i;e>=0;e--){let o=t.matches[e];if(t.router.looseRoutesById[o.routeId].options.notFoundComponent)return e}return o?i:s},P=(t,e,o)=>{if((0,y.N6)(o)||(0,a.c)(o)){if((0,y.N6)(o)&&o.redirectHandled&&!o.options.reloadDocument)throw o;throw e&&(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.loaderPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loaderPromise=void 0,e._nonReactive.error=o,t.updateMatch(e.id,r=>({...r,status:(0,y.N6)(o)?"redirected":(0,a.c)(o)?"notFound":"pending"===r.status?"success":r.status,context:S(t,e.index),isFetching:!1,error:o})),(0,a.c)(o)&&!o.routeId&&(o.routeId=e.routeId),e._nonReactive.loadPromise?.resolve()),(0,y.N6)(o)&&(t.rendered=!0,o.options._fromLocation=t.location,o.redirectHandled=!0,o=t.router.resolveRedirect(o)),o}},w=(t,e)=>{let o=t.router.getMatch(e);return!o||!!o._nonReactive.dehydrated},x=(t,e,o)=>{let r=S(t,o);t.updateMatch(e,t=>({...t,context:r}))},C=(t,e,o)=>{let{id:r,routeId:s}=t.matches[e],i=t.router.looseRoutesById[s];if(o instanceof Promise)throw o;t.firstBadMatchIndex??=e,P(t,t.router.getMatch(r),o);try{i.options.onError?.(o)}catch(e){o=e,P(t,t.router.getMatch(r),o)}t.updateMatch(r,t=>(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loadPromise?.resolve(),{...t,error:o,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),t.preload||(0,y.N6)(o)||(0,a.c)(o)||(t.serialError??=o)},M=(t,e,o,r)=>{if(void 0!==r._nonReactive.pendingTimeout)return;let s=o.options.pendingMs??t.router.options.defaultPendingMs;if(t.onReady&&!R(t,e)&&(o.options.loader||o.options.beforeLoad||A(o))&&"number"==typeof s&&s!==1/0&&(o.options.pendingComponent??t.router.options?.defaultPendingComponent)){let e=setTimeout(()=>{_(t)},s);r._nonReactive.pendingTimeout=e}},I=(t,e)=>{let{id:o,routeId:s}=t.matches[e],i=t.router.looseRoutesById[s],n=()=>((t,e,o,s)=>{let i,n=t.router.getMatch(e),l=n._nonReactive.loadPromise;n._nonReactive.loadPromise=(0,r.Su)(()=>{l?.resolve(),l=void 0});let{paramsError:c,searchError:h}=n;c&&C(t,o,c),h&&C(t,o,h),M(t,e,s,n);let d=new AbortController,u=!1,p=()=>{u||(u=!0,t.updateMatch(e,t=>({...t,isFetching:"beforeLoad",fetchCount:t.fetchCount+1,abortController:d})))},f=()=>{n._nonReactive.beforeLoadPromise?.resolve(),n._nonReactive.beforeLoadPromise=void 0,t.updateMatch(e,t=>({...t,isFetching:!1}))};if(!s.options.beforeLoad)return void t.router.batch(()=>{p(),f()});n._nonReactive.beforeLoadPromise=(0,r.Su)();let g={...S(t,o,!1),...n.__routeContext},{search:m,params:v,cause:b}=n,_=R(t,e),L={search:m,abortController:d,params:v,preload:_,context:g,location:t.location,navigate:e=>t.router.navigate({...e,_fromLocation:t.location}),buildLocation:t.router.buildLocation,cause:_?"preload":b,matches:t.matches,routeId:s.id,...t.router.options.additionalContext},P=r=>{void 0===r?t.router.batch(()=>{p(),f()}):(((0,y.N6)(r)||(0,a.c)(r))&&(p(),C(t,o,r)),t.router.batch(()=>{p(),t.updateMatch(e,t=>({...t,__beforeLoadContext:r})),f()}))};try{if(i=s.options.beforeLoad(L),(0,r.yL)(i))return p(),i.catch(e=>{C(t,o,e)}).then(P)}catch(e){p(),C(t,o,e)}P(i)})(t,o,e,i);if(w(t,o))return;let l=((t,e,o)=>{let r=t.router.getMatch(e);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;M(t,e,o,r);let s=()=>{let o=t.router.getMatch(e);o.preload&&("redirected"===o.status||"notFound"===o.status)&&P(t,o,o.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(s):s()})(t,o,i);return(0,r.yL)(l)?l.then(n):n()},k=(t,e,o)=>{let r=t.router.getMatch(e);if(!r||!o.options.head&&!o.options.scripts&&!o.options.headers)return;let s={ssr:t.router.options.ssr,matches:t.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([o.options.head?.(s),o.options.scripts?.(s),o.options.headers?.(s)]).then(([t,e,o])=>({meta:t?.meta,links:t?.links,headScripts:t?.scripts,headers:o,scripts:e,styles:t?.styles}))},T=(t,e,o,r,s)=>{let i=e[r-1],{params:n,loaderDeps:a,abortController:l,cause:c}=t.router.getMatch(o),h=S(t,r),d=R(t,o);return{params:n,deps:a,preload:!!d,parentMatchPromise:i,abortController:l,context:h,location:t.location,navigate:e=>t.router.navigate({...e,_fromLocation:t.location}),cause:d?"preload":c,route:s,...t.router.options.additionalContext}},B=async(t,e,o,s,i)=>{try{let n=t.router.getMatch(o);try{D(i);let a=i.options.loader,l="function"==typeof a?a:a?.handler,c=l?.(T(t,e,o,s,i)),h=!!l&&(0,r.yL)(c);if((h||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||n._nonReactive.minPendingPromise)&&t.updateMatch(o,t=>({...t,isFetching:"loader"})),l){let e=h?await c:c;P(t,t.router.getMatch(o),e),void 0!==e&&t.updateMatch(o,t=>({...t,loaderData:e}))}i._lazyPromise&&await i._lazyPromise;let d=n._nonReactive.minPendingPromise;d&&await d,i._componentsPromise&&await i._componentsPromise,t.updateMatch(o,e=>({...e,error:void 0,context:S(t,s),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(l){let e=l;if(e?.name==="AbortError"){if(n.abortController.signal.aborted){n._nonReactive.loaderPromise?.resolve(),n._nonReactive.loaderPromise=void 0;return}t.updateMatch(o,e=>({...e,status:"pending"===e.status?"success":e.status,isFetching:!1,context:S(t,s)}));return}let r=n._nonReactive.minPendingPromise;r&&await r,(0,a.c)(l)&&await i.options.notFoundComponent?.preload?.(),P(t,t.router.getMatch(o),l);try{i.options.onError?.(l)}catch(r){e=r,P(t,t.router.getMatch(o),r)}(0,y.N6)(e)||(0,a.c)(e)||await D(i,["errorComponent"]),t.updateMatch(o,o=>({...o,error:e,context:S(t,s),status:"error",isFetching:!1}))}}catch(r){let e=t.router.getMatch(o);e&&(e._nonReactive.loaderPromise=void 0),P(t,e,r)}},F=async(t,e,o)=>{async function s(r,s,n,c,h){let u=Date.now()-s.updatedAt,p=r?h.options.preloadStaleTime??t.router.options.defaultPreloadStaleTime??3e4:h.options.staleTime??t.router.options.defaultStaleTime??0,f=h.options.shouldReload,g="function"==typeof f?f(T(t,e,i,o,h)):f,{status:m,invalid:v}=c,b=u>
1=p&&(!!t.forceStaleReload||"enter"===c.cause||void 0!==n&&n!==c.id);a="success"===m&&(v||(g??b)),r&&!1===h.options.preload||(a&&!t.sync&&d?(l=!0,(async()=>{try{await B(t,e,i,o,h);let r=t.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(e){(0,y.N6)(e)&&await t.router.navigate(e.options)}})()):"success"!==m||a?await B(t,e,i,o,h):x(t,i,o))}let{id:i,routeId:n}=t.matches[o],a=!1,l=!1,c=t.router.looseRoutesById[n],h=c.options.loader,d=(("function"==typeof h?void 0:h?.staleReloadMode)??t.router.options.defaultStaleReloadMode)!=="blocking";if(w(t,i)){if(!t.router.getMatch(i))return t.matches[o];x(t,i,o)}else{let e=t.router.getMatch(i),a=t.router.stores.matchesId.get()[o],l=(a&&t.router.stores.matchStores.get(a)||null)?.routeId===n?a:t.router.stores.matches.get().find(t=>t.routeId===n)?.id,h=R(t,i);if(e._nonReactive.loaderPromise){if("success"===e.status&&!t.sync&&!e.preload&&d)return e;await e._nonReactive.loaderPromise;let o=t.router.getMatch(i),r=o._nonReactive.error||o.error;r&&P(t,o,r),"pending"===o.status&&await s(h,e,l,o,c)}else{let o=h&&!t.router.stores.matchStores.has(i),n=t.router.getMatch(i);n._nonReactive.loaderPromise=(0,r.Su)(),o!==n.preload&&t.updateMatch(i,t=>({...t,preload:o})),await s(h,e,l,n,c)}}let u=t.router.getMatch(i);l||(u._nonReactive.loaderPromise?.resolve(),u._nonReactive.loadPromise?.resolve(),u._nonReactive.loadPromise=void 0),clearTimeout(u._nonReactive.pendingTimeout),u._nonReactive.pendingTimeout=void 0,l||(u._nonReactive.loaderPromise=void 0),u._nonReactive.dehydrated=void 0;let p=!!l&&u.isFetching;return p!==u.isFetching||!1!==u.invalid?(t.updateMatch(i,t=>({...t,isFetching:p,invalid:!1})),t.router.getMatch(i)):u};async function E(t){let e,o,s,i,n=[];(i=t.router).stores.matchesId.get().some(t=>i.stores.matchStores.get(t)?.get()._forcePending)&&_(t);for(let o=0;o<t.matches.length;o++){try{let e=I(t,o);(0,r.yL)(e)&&await e}catch(o){if((0,y.N6)(o))throw o;if((0,a.c)(o))e=o;else if(!t.preload)throw o;break}if(t.serialError||null!=t.firstBadMatchIndex)break}let l=t.firstBadMatchIndex??t.matches.length,c=e&&!t.preload?L(t,e):void 0,h=e&&t.preload?0:void 0!==c?Math.min(c+1,l):l;for(let e=0;e<h;e++)n.push(F(t,n,e));try{await Promise.all(n)}catch{for(let t of(await Promise.allSettled(n))){if("rejected"!==t.status)continue;let e=t.reason;if((0,y.N6)(e))throw e;(0,a.c)(e)?o??=e:s??=e}if(void 0!==s)throw s}let d=o??(e&&!t.preload?e:void 0),u=void 0!==t.firstBadMatchIndex?t.firstBadMatchIndex:t.matches.length-1;if(!d&&e&&t.preload)return t.matches;if(d){let e=L(t,d);void 0===e&&(0,b.V)();let o=t.matches[e],r=t.router.looseRoutesById[o.routeId],s=t.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&s&&(r.options.notFoundComponent=s),d.routeId=o.routeId;let i=o.routeId===t.router.routeTree.id;t.updateMatch(o.id,t=>({...t,...i?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:d},isFetching:!1})),u=e,await D(r,["notFoundComponent"])}else if(!t.preload){let e=t.matches[0];!e.globalNotFound&&t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,t=>({...t,globalNotFound:!1,error:void 0}))}if(t.serialError&&void 0!==t.firstBadMatchIndex){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await D(e,["errorComponent"])}for(let e=0;e<=u;e++){let{id:o,routeId:r}=t.matches[e],s=t.router.looseRoutesById[r];try{let e=k(t,o,s);if(e){let r=await e;t.updateMatch(o,t=>({...t,...r}))}}catch(t){console.error(`Error executing head for route ${r}:`,t)}}let p=_(t);if((0,r.yL)(p)&&await p,d)throw d;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function j(t,e){let o=e.map(e=>t.options[e]?.preload?.()).filter(Boolean);if(0!==o.length)return Promise.all(o)}function D(t,e=O){t._lazyLoaded||void 0!==t._lazyPromise||(t.lazyFn?t._lazyPromise=t.lazyFn().then(e=>{let{id:o,...r}=e.options;Object.assign(t.options,r),t._lazyLoaded=!0,t._lazyPromise=void 0}):t._lazyLoaded=!0);let o=()=>t._componentsLoaded?void 0:e===O?(()=>{if(void 0===t._componentsPromise){let e=j(t,O);e?t._componentsPromise=e.then(()=>{t._componentsLoaded=!0,t._componentsPromise=void 0}):t._componentsLoaded=!0}return t._componentsPromise})():j(t,e);return t._lazyPromise?t._lazyPromise.then(o):o()}function A(t){for(let e of O)if(t.options[e]?.preload)return!0;return!1}let O=["component","errorComponent","pendingComponent","notFoundComponent"];function N(t,e){let o=t?.input?.({url:e});if(o){if("string"==typeof o)return new URL(o);else if(o instanceof URL)return o}return e}function H(t,e){let o=t?.output?.({url:e});if(o){if("string"==typeof o)return new URL(o);else if(o instanceof URL)return o}return e}var V=o(646231),$=o(730809);function z(t,e){return{fromLocation:e,toLocation:t,pathChanged:e?.pathname!==t.pathname,hrefChanged:e?.href!==t.href,hashChanged:e?.hash!==t.hash}}let W=new WeakMap;var U=class{constructor(t,e){this.tempLocationKey=`${Math.round(1e7*Math.random())}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.startTransition=t=>t(),this.update=t=>{var e,o;let r=this.options,i=this.basepath??r?.basepath??"/",a=void 0===this.basepath,m=r?.rewrite;if(this.options={...r,...t},this.isServer=this.options.isServer??"u"<typeof document,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=(0,n.kM)(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=(0,$.zR)()),this.origin=this.options.origin,this.origin||(window?.origin&&"null"!==window.origin?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){let t;this.routeTree=this.options.routeTree,this.resolvePathCache=(0,s.s)(1e3),t=this.buildRouteTree(),this.setRoutes(t)}if(!this.stores&&this.latestLocation){let t,o,r,s,i,n,a=this.getStoreConfig(this);this.batch=a.batch,this.stores=(0,V.qD)({loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:this.latestLocation,matches:[],statusCode:200},a),e=this,t=(void 0)??e.options.scrollRestoration,o=e._scroll,t&&(o.restoring=!0),r=e.options.getScrollRestorationKey||d,s=new Map,i=(t,e,o)=>{let r=s.get(t)||{};r.scrollX=e,r.scrollY=o,s.set(t,r)},n=t=>{if(!o.restoring)return;let e=c[t]||={};for(let[t,o]of s)t===p?e[p]=o:t.isConnected&&(e[function(t){let e,o=t.getAttribute(h);if(o)return`[${h}="${o}"]`;let r="",s=t;
1for(;e=s.parentNode;){let t=1,o=s;for(;o=o.previousElementSibling;)t++;let i=`${s.localName}:nth-child(${t})`;r=r?`${i} > ${r}`:i,s=e}return r}(t)]=o)},t&&!o.restoration&&(o.restoration=!0,u=!1,history.scrollRestoration="manual",document.addEventListener("scroll",t=>{if(!u&&o.restoring)if(t.target===document)i(p,scrollX,scrollY);else{let e=t.target;i(e,e.scrollLeft,e.scrollTop)}},!0),e.subscribe("onBeforeLoad",t=>{t.fromLocation&&n(r(t.fromLocation)),s.clear()}),addEventListener("pagehide",()=>{n(r(e.stores.resolvedLocation.get()??e.stores.location.get()));try{l?.setItem("tsr-scroll-restoration-v1_3",JSON.stringify(c))}catch{}})),o.reset||(o.reset=!0,e.subscribe("onRendered",t=>{let i,n=e.options.scrollRestorationBehavior,a=e.options.scrollToTopSelectors,l=o.next;if(s.clear(),l||(o.next=!0),"function"==typeof e.options.scrollRestoration&&!e.options.scrollRestoration({location:e.latestLocation}))return;let h=r(t.toLocation),d=t.fromLocation&&r(t.fromLocation);if(o.restoring&&d&&d!==h){let t=c[d];if(t){let e=c[h];for(let o in t){if(o===p){if(l)continue}else{let t=f(o);if(!t||l&&a&&(i??=g(a)).includes(t))continue}e||(e=c[h]={}),e[o]??=t[o]}}}u=!0;try{let e=t.toLocation.hash,r=t.toLocation.state.__hashScrollIntoViewOptions??!0,s=!1;if(l){let l=W.get(t.toLocation),d=e&&r&&("PUSH"===l||"REPLACE"===l),u=o.restoring?c[h]:void 0;if(u)for(let t in u){let{scrollX:e,scrollY:o}=u[t];if(t===p){if(d)continue;scrollTo({top:o,left:e,behavior:n}),s=!0}else{let r=f(t);r&&(r.scrollLeft=e,r.scrollTop=o)}}if(!s&&!e){let t={top:0,left:0,behavior:n};if(scrollTo(t),a)for(let e of i??=g(a))e.scrollTo(t)}}!s&&e&&r&&document.getElementById(e)?.scrollIntoView(r)}finally{u=!1}}))}let v=!1,y=this.options.basepath??"/",b=this.options.rewrite;if(a||i!==y||m!==b){let t,e,r,s;this.basepath=y;let i=[],a=(0,n.cg)(y);a&&"/"!==a&&i.push((o={basepath:y},t=(0,n.cg)(o.basepath),e=`/${t}`,r=o.caseSensitive?e:e.toLowerCase(),s=`${r}/`,{input:({url:t})=>{let i=o.caseSensitive?t.pathname:t.pathname.toLowerCase();return i===r?t.pathname="/":i.startsWith(s)&&(t.pathname=t.pathname.slice(e.length)),t},output:({url:e})=>(e.pathname=(0,n.HS)(["/",t,e.pathname]),e)})),b&&i.push(b),this.rewrite=0===i.length?void 0:1===i.length?i[0]:{input:({url:t})=>{for(let e of i)t=N(e,t);return t},output:({url:t})=>{for(let e=i.length-1;e>=0;e--)t=H(i[e],t);return t}},this.history&&this.updateLatestLocation(),v=!0}v&&this.stores&&this.stores.location.set(this.latestLocation),"u">typeof window&&"CSS"in window&&"function"==typeof window.CSS?.supports&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let t=(0,i.DC)(this.routeTree,this.options.caseSensitive,(t,e)=>{t.init({originalIndex:e})});return this.options.routeMasks&&(0,i.uK)(this.options.routeMasks,t.processedTree),t},this.subscribe=(t,e)=>{let o={eventType:t,fn:e};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=t=>{this.subscribers.forEach(e=>{e.eventType===t.type&&e.fn(t)})},this.parseLocation=(t,e)=>{let o=({pathname:t,search:o,hash:s,href:i,state:n})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(t)){let i=this.options.parseSearch(o),a=this.options.stringifySearch(i);return{href:t+a+s,publicHref:t+a+s,pathname:(0,r.q0)(t).path,external:!1,searchStr:a,search:(0,r.Ey)(e?.search,i),hash:(0,r.q0)(s.slice(1)).path,state:(0,r.BH)(e?.state,n)}}let a=new URL(i,this.origin),l=N(this.rewrite,a),c=this.options.parseSearch(l.search),h=this.options.stringifySearch(c);return l.search=h,{href:l.href.replace(l.origin,""),publicHref:i,pathname:(0,r.q0)(l.pathname).path,external:!!this.rewrite&&l.origin!==this.origin,searchStr:h,search:(0,r.Ey)(e?.search,c),hash:(0,r.q0)(l.hash.slice(1)).path,state:(0,r.BH)(e?.state,n)}},s=o(t),{__tempLocation:i,__tempKey:n}=s.state;if(i&&(!n||n===this.tempLocationKey)){let t=o(i);return t.state.key=s.state.key,t.state.__TSR_key=s.state.__TSR_key,delete t.state.__tempLocation,{...t,maskedLocation:s}}return s},this.resolvePathWithBase=(t,e)=>(0,n.o1)({base:t,to:e.includes("//")?(0,n.ts)(e):e,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(t,e,o)=>"string"==typeof t?this.matchRoutesInternal({pathname:t,search:e},o):this.matchRoutesInternal(t,e),this.getMatchedRoutes=t=>(function({pathname:t,routesById:e,processedTree:o}){let r,s=Object.create(null),a=(0,n.gx)(t),l=(0,i.Qh)(a,o,!0);return l&&(r=l.route,Object.assign(s,l.rawParams)),{matchedRoutes:l?.branch||[e.__root__],routeParam
1s:s,foundRoute:r}})({pathname:t,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=t=>{let e=this.getMatch(t);e&&(e.abortController.abort(),clearTimeout(e._nonReactive.pendingTimeout),e._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(t=>{this.cancelMatch(t)}),this.stores.matchesId.get().forEach(t=>{if(this.stores.pendingMatchStores.has(t))return;let e=this.stores.matchStores.get(t)?.get();e&&("pending"===e.status||"loader"===e.isFetching)&&this.cancelMatch(t)})},this.buildLocation=t=>{let e=(e={})=>{let o,s,i,a=e._fromLocation||this.pendingBuiltLocation||this.latestLocation,l=this.matchRoutesLightweight(a);e.from;let c="path"===e.unsafeRelative?a.pathname:e.from??l.fullPath,h=e.to?`${e.to}`:void 0,d=l.search,u=Object.assign(Object.create(null),l.params),p=h?.charCodeAt(0)===47?"/":this.resolvePathWithBase(c,"."),f=h?this.resolvePathWithBase(p,h):p,g=!1===e.params||null===e.params?Object.create(null):(e.params??!0)===!0?u:Object.assign(u,(0,r.Zw)(e.params,u)),m=this.routesByPath[(0,n.gx)(f)];if(m)o=this.getRouteBranch(m);else if(f.includes("$"))o=[];else{let t=this.getMatchedRoutes(f);o=t.matchedRoutes,this.options.notFoundRoute&&(!t.foundRoute||"/"!==t.foundRoute.path&&t.routeParams["**"])&&(o=[...o,this.options.notFoundRoute])}if(o.length&&(0,r.xV)(g))for(let t of o){let e=t.options.params?.stringify??t.options.stringifyParams;if(e)try{Object.assign(g,e(g))}catch{}}let v=t.leaveParams?f:(0,r.q0)((0,n.xv)({path:f,params:g,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,y=d;if(t._includeValidateSearch&&this.options.search?.strict){let t={};o.forEach(e=>{if(e.options.validateSearch)try{Object.assign(t,Z(e.options.validateSearch,{...t,...y}))}catch{}}),y=t}y=function({search:t,dest:e,destRoutes:o,_includeValidateSearch:s}){return(function(t){let e,o,s=[];for(let e of t){let t=e.options;if("search"in t)t.search?.middlewares&&s.push(...t.search.middlewares);else if(t.preSearchFilters||t.postSearchFilters){let e=({search:e,next:o})=>{let r=o(t.preSearchFilters?t.preSearchFilters.reduce((t,e)=>e(t),e):e);return t.postSearchFilters?t.postSearchFilters.reduce((t,e)=>e(t),r):r};s.push(e)}let r=t.validateSearch;if(r){let t=({search:t,next:e,meta:s})=>{let i=e(t);if(o)try{let t=Z(r,i);if(s&&t)for(let e in t)e in i||(s.defaulted||=new Map).set(e,t[e]);return{...i,...t}}catch{}return i};s.push(t)}}let i=(t,o,n)=>{if(t>=s.length){if(!e.search)return{};if(!0===e.search)return o;let t=(0,r.Zw)(e.search,o);return n&&(n.explicit=t),t}return s[t]({search:o,next:(e,o)=>{if(o){let o=n||{};return{search:i(t+1,e,o),meta:o}}return i(t+1,e,n)},meta:n})};return function(t,r,s){return e=r,o=s,i(0,t)}})(o)(t,e,s??!1)}({search:y,dest:e,destRoutes:o,_includeValidateSearch:t._includeValidateSearch}),y=(0,r.Ey)(d,y);let b=this.options.stringifySearch(y),_=!0===e.hash?a.hash:e.hash?(0,r.Zw)(e.hash,a.hash):void 0,R=_?`#${_}`:"",S=!0===e.state?a.state:e.state?(0,r.Zw)(e.state,a.state):{};S=(0,r.BH)(a.state,S);let L=`${v}${b}${R}`,P=!1;if(this.rewrite){let t=new URL(L,this.origin),e=H(this.rewrite,t);s=t.href.replace(t.origin,""),e.origin!==this.origin?(i=e.href,P=!0):i=e.pathname+e.search+e.hash}else i=s=(0,r.CW)(L);return{publicHref:i,href:s,pathname:v,search:y,searchStr:b,state:S,hash:_??"",external:P,unmaskOnReload:e.unmaskOnReload}},o=(o={},s)=>{let n=e(o),a=s?e(s):void 0;if(!a){let o=Object.create(null);if(this.options.routeMasks){let l=(0,i.iR)(n.pathname,this.processedTree);if(l){Object.assign(o,l.rawParams);let{from:i,params:n,...c}=l.route,h=!1===n||null===n?Object.create(null):(n??!0)===!0?o:Object.assign(o,(0,r.Zw)(n,o));a=e(s={from:t.from,...c,params:h})}}}return a&&(n.maskedLocation=a),n};return t.mask?o(t,{from:t.from,...t.mask}):o(t)},this.commitLocation=async({viewTransition:t,ignoreBlocker:e,...o})=>{let s,i=()=>{let t=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];t.forEach(t=>{o.state[t]=this.latestLocation.state[t]});let e=(0,r.bD)(o.state,this.latestLocation.state);return t.forEach(t=>{delete o.state[t]}),e},a=(0,n.gx)(this.latestLocation.href)===(0,n.gx)(o.href),l=this.commitLocationPromise;if(this.commitLocationPromise=(0,r.Su)(()=>{l?.resolve(),l=void 0}),a&&i())this.load();else{let{maskedLocation:r,hashScrollIntoView:i,...n}=o;r&&((n={...r,state:{...r.state,__tempKey:void 0,__tempLocation:{...n,search:n.searchStr,state:{...n.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}}).unmaskOnReload??this.options.unmaskOnReload)&&(n.state.__tempKey=this.tempLocationKey),n.state.__hashScrollIntoViewOptions=i??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=t,s=o.replace?"REPLACE":"PUSH",this.history["REPLACE"===s?"replace":"push"](n.publicHref,n.state,{ignoreBlocker:e})}return this._scroll.next=o.resetScroll??!0,this.history.subscribers.size||this.load(s?{action:{type:s}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:t,resetScroll:e,hashScrollIntoView:o,viewTransition:r,ignoreBlocker:s,href:i,...n}={})=>
1{if(i){let e=this.history.location.state.__TSR_index,o=(0,$.dy)(i,{__TSR_index:t?e:e+1}),r=new URL(o.pathname,this.origin);n.to=N(this.rewrite,r).pathname,n.search=this.options.parseSearch(o.search),n.hash=o.hash.slice(1)}let a=this.buildLocation({...n,_includeValidateSearch:!0});this.pendingBuiltLocation=a;let l=this.commitLocation({...a,viewTransition:r,replace:t,resetScroll:e,hashScrollIntoView:o,ignoreBlocker:s});return Promise.resolve().then(()=>{this.pendingBuiltLocation===a&&(this.pendingBuiltLocation=void 0)}),l},this.navigate=async({to:t,reloadDocument:e,href:o,publicHref:s,...i})=>{let n=!1;if(o)try{new URL(`${o}`),n=!0}catch{}if(n&&!e&&(e=!0),e){if(void 0!==t||!o){let e=this.buildLocation({to:t,...i});o=o??e.publicHref,s=s??e.publicHref}let e=!n&&s?s:o;if((0,r.Rp)(e,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){for(let t of this.history.getBlockers?.()??[])if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return i.replace?window.location.replace(e):window.location.href=e,Promise.resolve()}return this.buildAndCommitLocation({...i,href:o,to:t,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let t=this.matchRoutes(this.latestLocation),e=this.stores.cachedMatches.get().filter(e=>!t.some(t=>t.id===e.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(t),this.stores.setCached(e)})},this.load=async t=>{let e,o,r,s,i=t?.action?.type,n=this.stores.resolvedLocation.get()??this.stores.location.get();for(r=new Promise(s=>{this.startTransition(async()=>{try{this.beforeLoad(),i?W.set(this.latestLocation,i):W.delete(this.latestLocation);let e=this.latestLocation,o=z(e,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...o}),this.emit({type:"onBeforeLoad",...o}),await E({router:this,sync:t?.sync,forceStaleReload:n.href===e.href,matches:this.stores.pendingMatches.get(),location:e,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let t=null,e=null,o=null,r=null;for(let[s,i]of(this.batch(()=>{let s=this.stores.pendingMatches.get(),i=s.length,n=this.stores.matches.get();t=i?n.filter(t=>!this.stores.pendingMatchStores.has(t.id)):null;let a=new Set;for(let t of this.stores.pendingMatchStores.values())t.routeId&&a.add(t.routeId);let l=new Set;for(let t of this.stores.matchStores.values())t.routeId&&l.add(t.routeId);e=i?n.filter(t=>!a.has(t.routeId)):null,o=i?s.filter(t=>!l.has(t.routeId)):null,r=i?s.filter(t=>l.has(t.routeId)):n,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),i&&(this.stores.setMatches(s),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...t.filter(t=>"error"!==t.status&&"notFound"!==t.status&&"redirected"!==t.status)]),this.clearExpiredCache())}),[[e,"onLeave"],[o,"onEnter"],[r,"onStay"]]))if(s)for(let t of s)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(r){(0,y.N6)(r)?(e=r,this.navigate({...e.options,replace:!0,ignoreBlocker:!0})):(0,a.c)(r)&&(o=r);let t=e?e.status:o?404:this.stores.matches.get().some(t=>"error"===t.status)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(e)})}this.latestLoadPromise===r&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),s()})}),this.latestLoadPromise=r,await r;this.latestLoadPromise&&r!==this.latestLoadPromise;)await this.latestLoadPromise;this.hasNotFoundMatch()?s=404:this.stores.matches.get().some(t=>"error"===t.status)&&(s=500),void 0!==s&&this.stores.statusCode.set(s)},this.startViewTransition=t=>{let e=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,e&&"u">typeof document&&"startViewTransition"in document&&"function"==typeof document.startViewTransition){let o;if("object"==typeof e&&this.isViewTransitionTypesSupported){let r=this.latestLocation,s=this.stores.resolvedLocation.get(),i="function"==typeof e.types?e.types(z(r,s)):e.types;if(!1===i)return void t();o={update:t,types:i}}else o=t;document.startViewTransition(o)}else t()},this.updateMatch=(t,e)=>{this.startTransition(()=>
1{let o=this.stores.pendingMatchStores.get(t);if(o)return void o.set(e);let r=this.stores.matchStores.get(t);if(r)return void r.set(e);let s=this.stores.cachedMatchStores.get(t);if(s){let o=e(s.get());"redirected"===o.status?this.stores.cachedMatchStores.delete(t)&&this.stores.cachedIds.set(e=>e.filter(e=>e!==t)):s.set(o)}})},this.getMatch=t=>this.stores.cachedMatchStores.get(t)?.get()??this.stores.pendingMatchStores.get(t)?.get()??this.stores.matchStores.get(t)?.get(),this.invalidate=t=>{let e=e=>t?.filter?.(e)??!0?{...e,invalid:!0,...t?.forcePending||"error"===e.status||"notFound"===e.status?{status:"pending",error:void 0}:void 0}:e;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(e)),this.stores.setCached(this.stores.cachedMatches.get().map(e)),this.stores.setPending(this.stores.pendingMatches.get().map(e))}),this.shouldViewTransition=!1,this.load({sync:t?.sync})},this.getParsedLocationHref=t=>t.publicHref||"/",this.resolveRedirect=t=>{let e=t.headers.get("Location");if(!t.options.href||t.options._builtLocation){let e=t.options._builtLocation??this.buildLocation(t.options),o=this.getParsedLocationHref(e);t.options.href=o,t.headers.set("Location",o)}else if(e)try{let o=new URL(e);if(this.origin&&o.origin===this.origin){let e=o.pathname+o.search+o.hash;t.options.href=e,t.headers.set("Location",e)}}catch{}if(t.options.href&&!t.options._builtLocation&&(0,r.Rp)(t.options.href,this.protocolAllowlist))throw Error("Redirect blocked: unsafe protocol");return t.headers.get("Location")||t.headers.set("Location",t.options.href),t},this.clearCache=t=>{let e=t?.filter;void 0!==e?this.stores.setCached(this.stores.cachedMatches.get().filter(t=>!e(t))):this.stores.setCached([])},this.clearExpiredCache=()=>{let t=Date.now(),e=e=>{let o=this.looseRoutesById[e.routeId];if(!o.options.loader)return!0;let r=(e.preload?o.options.preloadGcTime??this.options.defaultPreloadGcTime:o.options.gcTime??this.options.defaultGcTime)??3e5;return"error"===e.status||t-e.updatedAt>=r};this.clearCache({filter:e})},this.loadRouteChunk=D,this.preloadRoute=async t=>{let e=t._builtLocation??this.buildLocation(t),o=this.matchRoutes(e,{throwOnError:!0,preload:!0,dest:t}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),s=new Set([...r,...this.stores.cachedIds.get()]),i=o.filter(t=>!s.has(t.id));if(i.length){let t=this.stores.cachedMatches.get();this.stores.setCached([...t,...i])}try{return o=await E({router:this,matches:o,location:e,preload:!0,updateMatch:(t,e)=>{r.has(t)?o=o.map(o=>o.id===t?e(o):o):this.updateMatch(t,e)}})}catch(t){if((0,y.N6)(t)){if(t.options.reloadDocument)return;return await this.preloadRoute({...t.options,_fromLocation:e})}(0,a.c)(t)||console.error(t);return}},this.matchRoute=(t,e)=>{let o={...t,to:t.to?this.resolvePathWithBase(t.from||"",t.to):void 0,params:t.params||{},leaveParams:!0},s=this.buildLocation(o);if(e?.pending&&"pending"!==this.stores.status.get())return!1;let n=(e?.pending===void 0?!this.stores.isLoading.get():e.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=(0,i.nk)(s.pathname,e?.caseSensitive??!1,e?.fuzzy??!1,n.pathname,this.processedTree);return!!a&&(!t.params||!!(0,r.bD)(a.rawParams,t.params,{partial:!0}))&&(e?.includeSearch??!0?!!(0,r.bD)(n.search,s.search,{partial:!0})&&a.rawParams:a.rawParams)},this.hasNotFoundMatch=()=>this.stores.matches.get().some(t=>"notFound"===t.status||t.globalNotFound),this.getStoreConfig=e,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??m.V9,parseSearch:t.parseSearch??m.Xj,protocolAllowlist:t.protocolAllowlist??r.lI}),"u">typeof document&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:t,routesByPath:e,processedTree:o}){this.routesById=t,this.routesByPath=e,this.processedTree=o;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:0x174876e7ff}),this.routesById[r.id]=r)}getRouteBranch(t){let e=this.routeBranchCache.get(t);return e||(e=(0,i.AH)(t),this.routeBranchCache.set(t,e)),e}get looseRoutesById(){return this.routesById}getParentContext(t){return t?.id?t.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(t,e){let o=this.getMatchedRoutes(t.pathname),{foundRoute:s,routeParam
1s:i}=o,{matchedRoutes:l}=o,c=!1;(s?"/"!==s.path&&i["**"]:(0,n.gx)(t.pathname))&&(this.options.notFoundRoute?l=[...l,this.options.notFoundRoute]:c=!0);let h=c?function(t,e){if("root"!==t)for(let t=e.length-1;t>=0;t--){let o=e[t];if(o.children)return o.id}return v.n}(this.options.notFoundMode,l):void 0,d=Array(l.length),u=new Map;for(let t of this.stores.matchStores.values())t.routeId&&u.set(t.routeId,t.get());for(let o=0;o<l.length;o++){let s,c,p,f,g,m=l[o],v=d[o-1];{let o=v?.search??t.search,r=v?._strictSearch??void 0;try{let t=Z(m.options.validateSearch,{...o})??void 0;s={...o,...t},c={...r,...t},p=void 0}catch(r){let t=r;if(r instanceof K||(t=new K(r.message,{cause:r})),e?.throwOnError)throw t;s=o,c={},p=t}}let b=m.options.loaderDeps?.({search:s})??"",_=b?JSON.stringify(b):"",{interpolatedPath:R,usedParams:S}=(0,n.xv)({path:m.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),L=m.id+R+_,P=this.getMatch(L),w=u.get(m.id),x=P?._strictParams??S;if(!P)try{q(m,x)}catch(t){if(g=(0,a.c)(t)||(0,y.N6)(t)?t:new G(t.message,{cause:t}),e?.throwOnError)throw g}Object.assign(i,x);let C=w?"stay":"enter";if(P)f={...P,cause:C,params:w?.params??i,_strictParams:x,search:w?(0,r.Ey)(w.search,s):(0,r.Ey)(P.search,s),_strictSearch:c};else{let t=m.options.loader||m.options.beforeLoad||m.lazyFn||A(m)?"pending":"success";f={id:L,ssr:m.options.ssr,index:o,routeId:m.id,params:w?.params??i,_strictParams:x,pathname:R,updatedAt:Date.now(),search:w?(0,r.Ey)(w.search,s):s,_strictSearch:c,searchError:void 0,status:t,isFetching:!1,error:void 0,paramsError:g,__routeContext:void 0,_nonReactive:{loadPromise:(0,r.Su)()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:C,loaderDeps:w?(0,r.BH)(w.loaderDeps,b):b,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:m.options.staticData||{},fullPath:m.fullPath}}e?.preload||(f.globalNotFound=h===m.id),f.searchError=p;let M=this.getParentContext(v);f.context={...M,...f.__routeContext,...f.__beforeLoadContext},d[o]=f}for(let e=0;e<d.length;e++){let o=d[e],s=this.looseRoutesById[o.routeId],n=this.getMatch(o.id),a=u.get(o.routeId);if(o.params=a?(0,r.Ey)(a.params,i):i,!n){let r=d[e-1],i=this.getParentContext(r);if(s.options.context){let e={deps:o.loaderDeps,params:o.params,context:i??{},location:t,navigate:e=>this.navigate({...e,_fromLocation:t}),buildLocation:this.buildLocation,cause:o.cause,abortController:o.abortController,preload:!!o.preload,matches:d,routeId:s.id};o.__routeContext=s.options.context(e)??void 0}o.context={...i,...o.__routeContext,...o.__beforeLoadContext}}}return d}matchRoutesLightweight(t){let e,{matchedRoutes:o,routeParams:s}=this.getMatchedRoutes(t.pathname),i=(0,r.HV)(o),n={...t.search};for(let t of o)try{Object.assign(n,Z(t.options.validateSearch,n))}catch{}let a=(0,r.HV)(this.stores.matchesId.get()),l=a&&this.stores.matchStores.get(a)?.get();if(l&&l.routeId===i.id&&l.pathname===t.pathname)e=l.params;else{let t=Object.assign(Object.create(null),s);for(let e of o)try{q(e,t)}catch{}e=t}return{matchedRoutes:o,fullPath:i.fullPath,search:n,params:e}}},K=class extends Error{},G=class extends Error{};function Z(t,e){if(null==t)return{};if("~standard"in t){let o=t["~standard"].validate(e);if(o instanceof Promise)throw new K("Async validation not supported");if(o.issues)throw new K(JSON.stringify(o.issues,void 0,2),{cause:o});return o.value}return"parse"in t?t.parse(e):"function"==typeof t?t(e):{}}function q(t,e){let o=t.options.params?.parse??t.options.parseParams;if(o){let t=o(e);if(!1===t)throw Error("Route params.parse returned false for a matched route");Object.assign(e,t)}}},513079(t,e,o){var r;function s(t){return t?"false"!==t&&("true"===t||(0*t==0&&+t+""===t?+t:t)):""}o.d(e,{Xj:()=>i,V9:()=>n});let i=(r=JSON.parse,t=>{"?"===t[0]&&(t=t.substring(1));let e=function(t){let e=new URLSearchParams(t),o=Object.create(null);for(let[t,r]of e.entries()){let e=o[t];null==e?o[t]=s(r):Array.isArray(e)?e.push(s(r)):o[t]=[e,s(r)]}return o}(t);for(let t in e){let o=e[t];if("string"==typeof o)try{e[t]=r(o)}catch(t){}}return e}),n=function(t,e){let o="function"==typeof e;function r(r){if("object"==typeof r&&null!==r)try{return t(r)}catch(t){}else if(o&&"string"==typeof r)try{return e(r),t(r)}catch(t){}return r}return t=>{let e=function(t,e=String){let o=new URLSearchParams;for(let r in t){let s=t[r];void 0!==s&&o.set(r,e(s))}return o.toString()}(t,r);return e?`?${e}`:""}}(JSON.stringify,JSON.parse)},646231(t,e,o){var r=o(102188),s=o(189355);function i(t){let e=t;return{get:()=>e,set(t){e=(0,r.Zw)(t,e)}}}function n(t){return{get:()=>t()}}function a(t,e){let{createMutableStore:o,createReadonlyStore:r,batch:i,init:n}=e,a=new Map,h=new Map,d=new Map,u=o(t.status),p=o(t.loadedAt),f=o(t.isLoading),g=o(t.isTransitioning),m=o(t.location),v=o(t.resolvedLocation),y=o(t.statusCode),b=o(t.redirect),_=o([]),R=o([]),S=o([]),L=r(()=>l(a,_.get())),P=r(()=>l(h,R.get())),w=r(()=>l(d,S.get())),x=r(()=>_.get()[0]),C=r(()=>_.get().some(t=>a.get(t)?.get().status==="pending")),M=r(()=>({locationHref:m.get().href,resolvedLocationHref:v.get()?.href,status:u.get()})),I=r(()=>({status:u.get(),loadedAt:p.get(),isLoading:f.get(),isTransitioning:g.get(),matches:L.get(),location:m.get(),resolvedLocation:v.get(),statusCode:y.get(),redirect:b.get()})),k=(0,s.s)(64),T={status:u,loadedAt:p,isLoading:f,isTransitioning:g,location:m,resolvedLocation:v,statusCode:y,redirect:b,matchesId:_,pendingIds:R,cachedIds:S,matches:L,pendingMatches:P,cachedMatches:w,firstId:x,hasPending:C,matchRouteDeps:M,matchStores:a,pendingMatchStores:h,cachedMatchStores:d,__store:
1I,getRouteMatchStore:function(t){let e=k.get(t);return e||(e=r(()=>{for(let e of _.get()){let o=a.get(e);if(o&&o.routeId===t)return o.get()}}),k.set(t,e)),e},setMatches:B,setPending:function(t){c(t,h,R,o,i)},setCached:function(t){c(t,d,S,o,i)}};function B(t){c(t,a,_,o,i)}return B(t.matches),n?.(T),T}function l(t,e){let o=[];for(let r of e){let e=t.get(r);e&&o.push(e.get())}return o}function c(t,e,o,s,i){let n=t.map(t=>t.id),a=new Set(n);i(()=>{for(let t of e.keys())a.has(t)||e.delete(t);for(let o of t){let t=e.get(o.id);if(!t){let t=s(o);t.routeId=o.routeId,e.set(o.id,t);continue}t.routeId=o.routeId,t.get()!==o&&t.set(o)}(0,r.r1)(o.get(),n)||o.set(n)})}o.d(e,{c7:()=>i,en:()=>n,qD:()=>a})},562838(t,e,o){let r;o.d(e,{vA:()=>m,MN:()=>b});var s,i=((s=i||{})[s.None=0]="None",s[s.Mutable=1]="Mutable",s[s.Watching=2]="Watching",s[s.RecursedCheck=4]="RecursedCheck",s[s.Recursed=8]="Recursed",s[s.Dirty=16]="Dirty",s[s.Pending=32]="Pending",s);let n=[],a=0,{link:l,unlink:c,propagate:h,checkDirty:d,shallowPropagate:u}=function({update:t,notify:e,unwatched:o}){return{link:function(t,e,o){let r=e.depsTail;if(void 0!==r&&r.dep===t)return;let s=void 0!==r?r.nextDep:e.deps;if(void 0!==s&&s.dep===t){s.version=o,e.depsTail=s;return}let i=t.subsTail;if(void 0!==i&&i.version===o&&i.sub===e)return;let n=e.depsTail=t.subsTail={version:o,dep:t,sub:e,prevDep:r,nextDep:s,prevSub:i,nextSub:void 0};void 0!==s&&(s.prevDep=n),void 0!==r?r.nextDep=n:e.deps=n,void 0!==i?i.nextSub=n:t.subs=n},unlink:function(t,e=t.sub){let r=t.dep,s=t.prevDep,i=t.nextDep,n=t.nextSub,a=t.prevSub;return void 0!==i?i.prevDep=s:e.depsTail=s,void 0!==s?s.nextDep=i:e.deps=i,void 0!==n?n.prevSub=a:r.subsTail=a,void 0!==a?a.nextSub=n:void 0===(r.subs=n)&&o(r),i},propagate:function(t){let o,r=t.nextSub;t:for(;;){let s=t.sub,i=s.flags;if(60&i?12&i?4&i?!(48&i)&&function(t,e){let o=e.depsTail;for(;void 0!==o;){if(o===t)return!0;o=o.prevDep}return!1}(t,s)?(s.flags=40|i,i&=1):i=0:s.flags=-9&i|32:i=0:s.flags=32|i,2&i&&e(s),1&i){let e=s.subs;if(void 0!==e){let s=(t=e).nextSub;void 0!==s&&(o={value:r,prev:o},r=s);continue}}if(void 0!==(t=r)){r=t.nextSub;continue}for(;void 0!==o;)if(t=o.value,o=o.prev,void 0!==t){r=t.nextSub;continue t}break}},checkDirty:function(e,o){let s,i=0,n=!1;t:for(;;){let a=e.dep,l=a.flags;if(16&o.flags)n=!0;else if((17&l)==17){if(t(a)){let t=a.subs;void 0!==t.nextSub&&r(t),n=!0}}else if((33&l)==33){(void 0!==e.nextSub||void 0!==e.prevSub)&&(s={value:e,prev:s}),e=a.deps,o=a,++i;continue}if(!n){let t=e.nextDep;if(void 0!==t){e=t;continue}}for(;i--;){let i=o.subs,a=void 0!==i.nextSub;if(a?(e=s.value,s=s.prev):e=i,n){if(t(o)){a&&r(i),o=e.sub;continue}n=!1}else o.flags&=-33;o=e.sub;let l=e.nextDep;if(void 0!==l){e=l;continue t}}return n}},shallowPropagate:r};function r(t){do{let o=t.sub,r=o.flags;(48&r)==32&&(o.flags=16|r,(6&r)==2&&e(o))}while(void 0!==(t=t.nextSub))}}({update:t=>t._update(),notify(t){n[f++]=t,t.flags&=~i.Watching},unwatched(t){void 0!==t.depsTail&&(t.depsTail=void 0,t.flags=i.Mutable|i.Dirty,v(t))}}),p=0,f=0,g=0;function m(t){try{++g,t()}finally{--g||y()}}function v(t){let e=t.depsTail,o=void 0!==e?e.nextDep:t.deps;for(;void 0!==o;)o=c(o,t)}function y(){if(!(g>0)){for(;p<f;){let t=n[p];n[p++]=void 0,t.notify()}p=0,f=0}}function b(t,e){let o="function"==typeof t,s={_snapshot:o?void 0:t,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:o?i.None:i.Mutable,get:()=>(void 0!==r&&l(s,r,a),s._snapshot),subscribe(t){var e;let o,n,l,c,h=(c=(l="object"==typeof t)?t:void 0,{next:(l?t.next:t)?.bind(c),error:(l?t.error:void 0)?.bind(c),complete:(l?t.complete:void 0)?.bind(c)}),u={current:!1},p=(e=()=>{s.get(),u.current?h.next?.(s._snapshot):u.current=!0},o=()=>{let t=r;r=n,++a,n.depsTail=void 0,n.flags=i.Watching|i.RecursedCheck;try{return e()}finally{r=t,n.flags&=~i.RecursedCheck,v(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:i.Watching|i.RecursedCheck,notify(){let t=this.flags;t&i.Dirty||t&i.Pending&&d(this.deps,this)?o():this.flags=i.Watching},stop(){this.flags=i.None,this.depsTail=void 0,v(this)}},o(),n);return{unsubscribe:()=>{p.stop()}}},_update(n){let l=r,c=e?.compare??Object.is;if(o)r=s,++a,s.depsTail=void 0;else if(void 0===n)return!1;o&&(s.flags=i.Mutable|i.RecursedCheck);try{let e=s._snapshot,r="function"==typeof n?n(e):void 0===n&&o?t(e):n;if(void 0===e||!c(e,r))return s._snapshot=r,!0;return!1}finally{r=l,o&&(s.flags&=~i.RecursedCheck),v(s)}}};return o?(s.flags=i.Mutable|i.Dirty,s.get=function(){let t=s.flags;if(t&i.Dirty||t&i.Pending&&d(s.deps,s)){if(s._update()){let t=s.subs;void 0!==t&&u(t)}}else t&i.Pending&&(s.flags=t&~i.Pending);return void 0!==r&&l(s,r,a),s._snapshot}):s.set=function(t){if(s._update(t)){let t=s.subs;void 0!==t&&(h(t),u(t),y())}},s}},224955(t,e,o){var r=function(t){var e=t/255;return e<.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}
1,s=function(t){return .2126*r(t.r)+.7152*r(t.g)+.0722*r(t.b)},i=function(t){t.prototype.luminance=function(){var t,e;return e=s(this.rgba),void 0===t&&(t=100),Math.round(t*e)/t+0},t.prototype.contrast=function(e){void 0===e&&(e="#FFF");var o,r,i,n,a,l,c=e instanceof t?e:new t(e);return i=this.rgba,n=c.toRgb(),o=(a=s(i))>(l=s(n))?(a+.05)/(l+.05):(l+.05)/(a+.05),void 0===r&&(r=100),Math.floor(r*o)/r+0},t.prototype.isReadable=function(t,e){var o,r,s,i,n;return void 0===t&&(t="#FFF"),void 0===e&&(e={}),this.contrast(t)>=(r=void 0===(s=(n=e).size)?"normal":s,"AAA"===(o=void 0===(i=n.level)?"AA":i)&&"normal"===r?7:"AA"===o&&"large"===r?3:4.5)}};o.d(e,{A:()=>i})}}]);
2//# sourceMappingURL=/packs/js/67319-5c42e549ee8d8ffe.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.