1import{i as e,t}from"./jsx-runtime-DUAcabCT.js";import{t as n}from"./react-DEX2qfRi.js";import{i as r,t as i}from"./invariant-CgFvOqN2.js";import{c as a,n as o,s,t as c,x as l}from"./link-CcSxPLSW.js";import{t as u}from"./root-DLTE-HSj.js";import{t as d}from"./useMatch-BNRrWBl_.js";import{t as f}from"./useParams-BHaGnVuF.js";import{t as p}from"./useNavigate-TaZ00Fl_.js";var m=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=u:this.parentRoute||i();let r=n?u:t?.path;r&&r!==`/`&&(r=s(r));let c=t?.id||r,l=n?u:o((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(c??``));r===`__root__`&&(r=`/`);let d=l===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:o(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=l,this._fullPath=d,this._to=a(d)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>r({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},h=class extends m{constructor(e){super(e)}},g=e(n(),1),_=g.use,v=g.useLayoutEffect;function y(e){return d({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function b(e){let{select:t,...n}=e;return d({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function x(e){return d({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function S(e){return d({...e,select:t=>e.select?e.select(t.context):t.context})}var C=t(),w=class extends m{constructor(e){super(e),this.useMatch=e=>d({...e,from:this.id}),this.useRouteContext=e=>S({...e,from:this.id}),this.useSearch=e=>x({...e,from:this.id}),this.useParams=e=>f({...e,from:this.id}),this.useLoaderDeps=e=>b({...e,from:this.id}),this.useLoaderData=e=>y({...e,from:this.id}),this.useNavigate=()=>p({from:this.fullPath}),this.Link=g.forwardRef((e,t)=>(0,C.jsx)(c,{ref:t,from:this.fullPath,...e}))}};function T(e){return new w(e)}function E(){return e=>O(e)}var D=class extends h{constructor(e){super(e),this.useMatch=e=>d({...e,from:this.id}),this.useRouteContext=e=>S({...e,from:this.id}),this.useSearch=e=>x({...e,from:this.id}),this.useParams=e=>f({...e,from:this.id}),this.useLoaderDeps=e=>b({...e,from:this.id}),this.useLoaderData=e=>y({...e,from:this.id}),this.useNavigate=()=>p({from:this.fullPath}),this.Link=g.forwardRef((e,t)=>(0,C.jsx)(c,{ref:t,from:this.fullPath,...e}))}};function O(e){return new D(e)}function k(e){return e=>{let t=T(e);return t.isRoot=!1,t}}function A(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,o.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(l(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r)if(_)_(a());else throw a();return g.createElement(r,e)};return o.preload=a,o}export{v as a,_ as i,k as n,E as r,A as t};
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.