1import{o as e}from"./rolldown-runtime-DAXXjFlN.js";import{t}from"./react-BUD3sqOU.js";import{t as n}from"./jsx-runtime-CFwixLRt.js";import{t as r}from"./invariant-CVpJILfU.js";import{a as i,c as a,l as o,t as s}from"./link-DLt_bRN_.js";import{r as c,t as l}from"./root-CDpNo7ef.js";import{r as u}from"./useStore-DH5wfeUX.js";import{t as d}from"./useMatch-DP8w69ps.js";import{t as f}from"./useLoaderData-BdVnVvun.js";import{t as p}from"./useParams-D68nOH6T.js";import{t as m}from"./useSearch-uJEBp1TA.js";import{n as h}from"./useNavigate-CMtO10vC.js";function g(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function _(e){return e instanceof Response&&!!e.options}var v=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.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=l:this.parentRoute||r();let s=n?l:t?.path;s&&s!==`/`&&(s=a(s));let c=t?.id||s,u=n?l:i([this.parentRoute.id===`__root__`?``:this.parentRoute.id,c]);s===`__root__`&&(s=`/`),u!==`__root__`&&(u=i([`/`,u]));let d=u===`__root__`?`/`:i([this.parentRoute.fullPath,s]);this._path=s,this._id=u,this._fullPath=d,this._to=o(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=>g({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.`)}},y=class{constructor({id:e}){this.notFound=e=>c({routeId:this.id,...e}),this.redirect=e=>g({from:this.id,...e}),this.id=e}},b=class extends v{constructor(e){super(e)}};function x(e){let{select:t,...n}=e;return d({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function S(e){return d({...e,select:t=>e.select?e.select(t.context):t.context})}var C=e(t()),w=n();function T(e){return new E({id:e})}var E=class extends y{constructor({id:e}){super({id:e}),this.useMatch=e=>d({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>S({...e,from:this.id}),this.useSearch=e=>m({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>p({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>x({...e,from:this.id,strict:!1}),this.useLoaderData=e=>f({...e,from:this.id,strict:!1}),this.useNavigate=()=>h({from:u().routesById[this.id].fullPath}),this.notFound=e=>c({routeId:this.id,...e}),this.Link=C.forwardRef((e,t)=>{let n=u().routesById[this.id].fullPath;return(0,w.jsx)(s,{ref:t,from:n,...e})})}},D=class extends v{constructor(e){super(e),this.useMatch=e=>d({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>S({...e,from:this.id}),this.useSearch=e=>m({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>p({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>x({...e,from:this.id}),this.useLoaderData=e=>f({...e,from:this.id}),this.useNavigate=()=>h({from:this.fullPath}),this.Link=C.forwardRef((e,t)=>(0,w.jsx)(s,{ref:t,from:this.fullPath,...e}))}};function O(e){return new D(e)}function k(){return e=>j(e)}var A=class extends b{constructor(e){super(e),this.useMatch=e=>d({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>S({...e,from:this.id}),this.useSearch=e=>m({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>p({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>x({...e,from:this.id}),this.useLoaderData=e=>f({...e,from:this.id}),this.useNavigate=()=>h({from:this.fullPath}),this.Link=C.forwardRef((e,t)=>
1(0,w.jsx)(s,{ref:t,from:this.fullPath,...e}))}};function j(e){return new A(e)}export{_ as a,S as i,O as n,g as o,T as r,k as t}; 2//# sourceMappingURL=route-z4FFI5CO.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.