PageSourceSearch

https://qwen-image-3.com/assets/route-lrNs_hhy.js

js qwen-image-3.com collected 2026-10-07 20:25:52 UTC 4,794 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{a as t,i as n}from"./utils-Q0AuuCPE.js";import{B as r,T as i,_ as a,g as o,n as s,p as c,r as l,t as u}from"./link-tg-c2Vv-.js";import{a as d,c as f,n as p,o as m,t as h}from"./matchContext-Bh90x8Px.js";var g=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=m:this.parentRoute||i();let r=n?m:t?.path;r&&r!==`/`&&(r=o(r));let s=t?.id||r,l=n?m:c([this.parentRoute.id===`__root__`?``:this.parentRoute.id,s]);r===`__root__`&&(r=`/`),l!==`__root__`&&(l=c([`/`,l]));let u=l===`__root__`?`/`:c([this.parentRoute.fullPath,r]);this._path=r,this._id=l,this._fullPath=u,this._to=a(u)},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=>d({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.`)}},_=class{constructor({id:e}){this.notFound=e=>f({routeId:this.id,...e}),this.redirect=e=>d({from:this.id,...e}),this.id=e}},v=class extends g{constructor(e){super(e)}},y=e(t(),1),b={get:()=>void 0,subscribe:()=>({unsubscribe:()=>{}})};function x(e){let t=l(),n=y.useContext(e.from?h:p),a=e.from??n,o=a?e.from?t.stores.getRouteMatchStore(a):t.stores.matchStores.get(a):void 0,c=y.useRef(void 0);return s(o??b,n=>{if((e.shouldThrow??!0)&&!n&&i(),n===void 0)return;let a=e.select?e.select(n):n;if(e.structuralSharing??t.options.defaultStructuralSharing){let e=r(c.current,a);return c.current=e,e}return a})}function S(e){return x({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function C(e){let{select:t,...n}=e;return x({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function w(e){return x({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 T(e){return x({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function E(e){let t=l();return y.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function D(e){return x({...e,select:t=>e.select?e.select(t.context):t.context})}var O=n();function k(e){return new A({id:e})}var A=class extends _{constructor({id:e}){super({id:e}),this.useMatch=e=>x({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>D({...e,from:this.id}),this.useSearch=e=>T({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>w({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>C({...e,from:this.id,strict:!1}),this.useLoaderData=e=>S({...e,from:this.id,strict:!1}),this.useNavigate=()=>E({from:l().routesById[this.id].fullPath}),this.notFound=e=>f({routeId:this.id,...e}),this.Link=y.forwardRef((e,t)=>{let n=l().routesById[this.id].fullPath;return(0,O.jsx)(u,{ref:t,from:n,...e})})}},j=class extends g{constructor(e){super(e),this.useMatch=e=>x({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>D({...e,from:this.id}),this.useSearch=e=>T({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>w({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>C({...e,from:this.id}),this.useLoaderData=e=>S({...e,from:this.id}),this.useNavigate=()=>E({from:this.fullPath}),this.Link=y.forwardRef((e,t)=>(0,O.jsx)(u,{ref:t,from:this.fullPath,...e}))}};function M(e){return new j(e)}var N=class extends v{constructor(e){super(e),this.useMatch=e=>x({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>D({...e,from:this.id}),this.useSearch=e=>T({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>w({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>C({...e,from:this.id}),this.useLoaderData=e=>S({...e,from:this.id}),this.useNavigate=()=>E({from:this.fullPath}),this.Link=y.forwardRef((e,t)=>
1(0,O.jsx)(u,{ref:t,from:this.fullPath,...e}))}};function P(e){return new N(e)}export{S as i,M as n,k as r,P 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.