PageSourceSearch

https://scripod.com/assets/fileRoute-BoNWulra.js

js scripod.com collected 2026-10-09 00:23:31 UTC 4,638 bytes, 1 lines download raw bytes

1import{a as e,t}from"./jsx-runtime-D_MnEzuy.js";import{t as n}from"./react-DBEjWt7A.js";import{E as r,V as i,_ as a,i as o,m as s,n as c,t as l,v as u}from"./link-Di2oYaad.js";var d=`__root__`;function f(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 p(e){return e instanceof Response&&!!e.options}function m(e){if(typeof e==`object`&&e&&e.isSerializedRedirect)return f(e)}var h=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=d:this.parentRoute||r();let i=n?d:t?.path;i&&i!==`/`&&(i=a(i));let o=t?.id||i,c=n?d:s([this.parentRoute.id===`__root__`?``:this.parentRoute.id,o]);i===`__root__`&&(i=`/`),c!==`__root__`&&(c=s([`/`,c]));let l=c===`__root__`?`/`:s([this.parentRoute.fullPath,i]);this._path=i,this._id=c,this._fullPath=l,this._to=u(l)},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=>f({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.`)}},g=class extends h{constructor(e){super(e)}},_=e(n(),1),v=_.createContext(void 0),y=_.createContext(void 0),b={get(){},subscribe(){return{unsubscribe(){}}}};function x(e,t){let n=_.useRef();return r=>{let a=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=i(n.current,a):a}}function S(e){let t=o(),n=_.useContext(e.from?y:v),i=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),a=x(e,t),s=c(i??b,e=>e?a(e):b);if(s!==b)return s;(e.shouldThrow??!0)&&r()}function C(e){return S({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function w(e){let{select:t,...n}=e;return S({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function T(e){return S({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function E(e){return S({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function D(e){let t=o();return _.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function O(e){return S({...e,select:t=>e.select?e.select(t.context):t.context})}var k=t(),A=class extends h{constructor(e){super(e),this.useMatch=e=>S({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>O({...e,from:this.id}),this.useSearch=e=>E({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>T({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>w({...e,from:this.id}),this.useLoaderData=e=>C({...e,from:this.id}),this.useNavigate=()=>D({from:this.fullPath}),this.Link=_.forwardRef((e,t)=>(0,k.jsx)(l,{ref:t,from:this.fullPath,...e}))}};function j(e){return new A(e)}function M(){return e=>P(e)}var N=class extends g{constructor(e){super(e),this.useMatch=e=>S({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>O({...e,from:this.id}),this.useSearch=e=>E({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>T({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>w({...e,from:this.id}),this.useLoaderData=e=>C({...e,from:this.id}),this.useNavigate=()=>D({from:this.fullPath}),this.Link=_.forwardRef((e,t)=>
1(0,k.jsx)(l,{ref:t,from:this.fullPath,...e}))}};function P(e){return new N(e)}function F(e){return new I(e,{silent:!0}).createRoute}var I=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=j(e);return t.isRoot=!1,t},this.silent=t?.silent}};export{C as a,v as c,f as d,d as f,T as i,p as l,M as n,S as o,E as r,x as s,F as t,m as u};

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.