PageSourceSearch

https://liveheats.com/static/components-pDE79Swq.js

js liveheats.com collected 2026-09-25 20:15:10 UTC 3,518 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`c79cf6db0d778f4546eb555240b082779a217fc1`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`3958f590-4067-4c63-8bef-bc24fdcde1bc`,e._sentryDebugIdIdentifier=`sentry-dbid-3958f590-4067-4c63-8bef-bc24fdcde1bc`)}catch{}})();import{a as e}from"./rolldown-runtime-DMNfU7qb.js";import{h as t}from"./forms-uDmKKpue.js";import{B as n,E as r,M as i,R as a,T as o,V as s,b as c,j as l,l as u,m as d,n as f,o as p,p as m,r as h,v as g,w as _,y as v,z as y}from"./hooks-RyJEmVWF.js";var b=e(t(),1);b.memo(x);function x({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return d(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function S({to:e,replace:t,state:n,relative:i}){y(f(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:u,navigator:d}=b.useContext(v);s(!u,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:m}=b.useContext(c),{pathname:g}=h(),x=p(),S=l(e,r(m),g,i===`path`);o(typeof e==`string`?e:a(e),d.createHref(S),_(d),`reject`);let C=JSON.stringify(S);return b.useEffect(()=>{x(JSON.parse(C),{replace:t,state:n,relative:i})},[x,C,i,t,n]),null}function C(e){return u(e.context)}function w(e){y(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function T({basename:e=`/`,children:t=null,location:r,navigationType:a=`POP`,navigator:o,static:c=!1,useTransitions:l}){y(!f(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let u=e.replace(/^\/*/,`/`),d=b.useMemo(()=>({basename:u,navigator:o,static:c,useTransitions:l,future:{}}),[u,o,c,l]);typeof r==`string`&&(r=n(r));let{pathname:p=`/`,search:m=``,hash:h=``,state:_=null,key:x=`default`,mask:S}=r,C=b.useMemo(()=>{let e=i(p,u);return e==null?null:{location:{pathname:e,search:m,hash:h,state:_,key:x,mask:S},navigationType:a}},[u,p,m,h,_,x,a,S]);return s(C!=null,`<Router basename="${u}"> is not able to match the URL "${p}${m}${h}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:b.createElement(v.Provider,{value:d},b.createElement(g.Provider,{children:t,value:C}))}function E({children:e,location:t}){return m(D(e),t)}b.Component;function D(e,t=[]){let n=[];return b.Children.forEach(e,(e,r)=>{if(!b.isValidElement(e))return;let i=[...t,r];if(e.type===b.Fragment){n.push.apply(n,D(e.props.children,i));return}y(e.type===w,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`);let a=e.props;y(!a.index||!a.children,`An index route cannot have child routes.`);let o={id:a.id||i.join(`-`),caseSensitive:a.caseSensitive,element:a.element,Component:a.Component,index:a.index,path:a.path,middleware:a.middleware,loader:a.loader,action:a.action,hydrateFallbackElement:a.hydrateFallbackElement,HydrateFallback:a.HydrateFallback,errorElement:a.errorElement,ErrorBoundary:a.ErrorBoundary,shouldRevalidate:a.shouldRevalidate,handle:a.handle,lazy:a.lazy};a.children&&(o.children=D(a.children,i)),n.push(o)}),n}export{E as a,T as i,C as n,w as r,S 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.