vendor: 4,269 bytes, line 1
1import{r as u,R as ue}from"./react-core-I1an5Yvj.js";function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(this,arguments)}var w;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(w||(w={}));const K="popstate";function ce(e){e===void 0&&(e={});function t(r,a){let{pathname:l,search:i,hash:o}=r.location;return k("",{pathname:l,search:i,hash:o},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:T(a)}return fe(t,n,null,e)}function g(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ee(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function he(){return Math.random().toString(36).substr(2,8)}function q(e,t){return{usr:e.state,key:e.key,idx:t}}function k(e,t,n,r){return n===void 0&&(n=null),N({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?L(t):t,{state:n,key:t&&t.key||r||he()})}function T(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function L(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function fe(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:l=!1}=r,i=a.history,o=w.Pop,s=null,c=f();c==null&&(c=0,i.replaceState(N({},i.state,{idx:c}),""));function f(){return(i.state||{idx:null}).idx}function h(){o=w.Pop;let d=f(),p=d==null?null:d-c;c=d,s&&s({action:o,location:v.location,delta:p})}function m(d,p){o=w.Push;let E=k(v.location,d,p);c=f()+1;let C=q(E,c),P=v.createHref(E);try{i.pushState(C,"",P)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;a.location.assign(P)}l&&s&&s({action:o,location:v.location,delta:1})}function x(d,p){o=w.Replace;let E=k(v.location,d,p);c=f();let C=q(E,c),P=v.createHref(E);i.replaceState(C,"",P),l&&s&&s({action:o,location:v.location,delta:0})}function y(d){let p=a.location.origin!=="null"?a.location.origin:a.location.href,E=typeof d=="string"?d:T(d);return E=E.replace(/ $/,"%20"),g(p,"No window.location.(origin|href) available to create URL for href: "+E),new URL(E,p)}let v={get action(){return o},get location(){return e(a,i)},listen(d){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(K,h),s=d,()=>{a.removeEventListener(K,h),s=null}},createHref(d){return t(a,d)},createURL:y,encodeLocation(d){let p=y(d);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:m,replace:x,go(d){return i.go(d)}};return v}var G;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(G||(G={}));function de(e,t,n){return n===void 0&&(n="/"),pe(e,t,n,!1)}function pe(e,t,n,r){let a=typeof t=="string"?L(t):t,l=A(a.pathname||"/",n);if(l==null)return null;let i=te(e);me(i);let o=null;for(let s=0;o==null&&s<i.length;++s){let c=be(l);o=we(i[s],c,r)}return o}function te(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let a=(l,i,o)=>{let s={relativePath:o===void 0?l.path||"":o,caseSensitive:l.caseSensitive===!0,childrenIndex:i,route:l};s.relativePath.startsWith("/")&&(g(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let c=S([r,s.relativePath]),f=n.concat(s);l.children&&l.children.length>0&&(g(l.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),te(l.children,t,f,c)),!(l.path==null&&!l.index)&&t.push({path:c,score:Pe(c,l.index),routesMeta:f})};return e.forEach((l,i)=>{var o;if(l.path===""||!((o=l.path)!=null&&o.includes("?")))a(l,i);else for(let s of ne(l.path))a(l,i,s)}),t}function ne(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return a?[l,""]:[l];let i=ne(r.join("/")),o=[];return o.push(...i.map(s=>
vendor: 7,582 bytes, line 1
1s===""?l:[l,s].join("/"))),a&&o.push(...i),o.map(s=>e.startsWith("/")&&s===""?"/":s)}function me(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Re(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const ve=/^:[\w-]+$/,ge=3,ye=2,xe=1,Ce=10,Ee=-2,X=e=>e==="*";function Pe(e,t){let n=e.split("/"),r=n.length;return n.some(X)&&(r+=Ee),t&&(r+=ye),n.filter(a=>!X(a)).reduce((a,l)=>a+(ve.test(l)?ge:l===""?xe:Ce),r)}function Re(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function we(e,t,n){let{routesMeta:r}=e,a={},l="/",i=[];for(let o=0;o<r.length;++o){let s=r[o],c=o===r.length-1,f=l==="/"?t:t.slice(l.length)||"/",h=H({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},f),m=s.route;if(!h&&c&&n&&!r[r.length-1].route.index&&(h=H({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},f)),!h)return null;Object.assign(a,h.params),i.push({params:a,pathname:S([l,h.pathname]),pathnameBase:Be(S([l,h.pathnameBase])),route:m}),h.pathnameBase!=="/"&&(l=S([l,h.pathnameBase]))}return i}function H(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Se(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let l=a[0],i=l.replace(/(.)\/+$/,"$1"),o=a.slice(1);return{params:r.reduce((c,f,h)=>{let{paramName:m,isOptional:x}=f;if(m==="*"){let v=o[h]||"";i=l.slice(0,l.length-v.length).replace(/(.)\/+$/,"$1")}const y=o[h];return x&&!y?c[m]=void 0:c[m]=(y||"").replace(/%2F/g,"/"),c},{}),pathname:l,pathnameBase:i,pattern:e}}function Se(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ee(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,o,s)=>(r.push({paramName:o,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function be(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ee(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function A(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function Ue(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?L(e):e;return{pathname:n?n.startsWith("/")?n:Le(n,t):t,search:Ne(r),hash:Ie(a)}}function Le(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function $(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Oe(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function V(e,t){let n=Oe(e);return t?n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function D(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=L(e):(a=N({},e),g(!a.pathname||!a.pathname.includes("?"),$("?","pathname","search",a)),g(!a.pathname||!a.pathname.includes("#"),$("#","pathname","hash",a)),g(!a.search||!a.search.includes("#"),$("#","search","hash",a)));let l=e===""||a.pathname==="",i=l?"/":a.pathname,o;if(i==null)o=n;else{let h=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),h-=1;a.pathname=m.join("/")}o=h>=0?t[h]:"/"}let s=Ue(a,o),c=i&&i!=="/"&&i.endsWith("/"),f=(l||i===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(c||f)&&(s.pathname+="/"),s}const S=e=>e.join("/").replace(/\/\/+/g,"/"),Be=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ne=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ie=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Te(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const re=["post","put","patch","delete"];new Set(re);const je=["get",...re];new Set(je);function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I.apply(this,arguments)}const J=u.createContext(null),_e=u.createContext(null),b=u.createContext(null),_=u.createContext(null),R=u.createContext({outlet:null,matches:[],isDataRoute:!1}),ae=u.createContext(null);function $e(e,t){let{relative:n}=t===void 0?{}:t;O()||g(!1);let{basename:r,navigator:a}=u.useContext(b),{hash:l,pathname:i,search:o}=ie(e,{relative:n}),s=i;return r!=="/"&&(s=i==="/"?r:S([r,i])),a.createHref({pathname:s,search:o,hash:l})}function O(){return u.useContext(_)!=null}function B(){return O()||g(!1),u.useContext(_).location}function le(e){u.useContext(b).static||u.useLayoutEffect(e)}function z(){let{isDataRoute:e}=u.useContext(R);return e?Xe():ke()}function ke(){O()||g(!1);let e=u.useContext(J),{basename:t,future:n,navigator:r}=u.useContext(b),{matches:a}=u.useContext(R),{pathname:l}=B(),i=JSON.stringify(V(a,n.v7_relativeSplatPath)),o=u.useRef(!1);return le(()=>{o.current=!0}),u.useCallback(function(c,f){if(f===void 0&&(f={}),!o.current)return;if(typeof c=="number"){r.go(c);return}let h=D(c,JSON.parse(i),l,f.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:S([t,h.pathname])),(f.replace?r.replace:r.push)(h,f.state,f)},[t,r,i,l,e])}function ct(){let{matches:e}=u.useContext(R),t=e[e.length-1];return t?t.params:{}}function ie(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=u.useContext(b),{matches:a}=u.useContext(R),{pathname:l}=B(),i=JSON.stringify(V(a,r.v7_relativeSplatPath));return u.useMemo(()=>D(e,JSON.parse(i),l,n==="path"),[e,i,l,n])}function Me(e,t){return We(e,t)}function We(e,t,n,r){O()||g(!1);let{navigator:a,static:l}=u.useContext(b),{matches:i}=u.useContext(R),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:"/";o&&o.route;let f=B(),h;if(t){var m;let p=typeof t=="string"?L(t):t;c==="/"||(m=p.pathname)!=null&&m.startsWith(c)||g(!1),h=p}else h=f;let x=h.pathname||"/",y=x;if(c!=="/"){let p=c.replace(/^\//,"").split("/");y="/"+x.replace(/^\//,"").split("/").slice(p.length).join("/")}let v=!l&&n&&n.matches&&n.matches.length>0?n.matches:de(e,{pathname:y}),d=Je(v&&v.map(p=>Object.assign({},p,{params:Object.assign({},s,p.params),pathname:S([c,a.encodeLocation?a.encodeLocation(p.pathname).pathname:p.pathname]),pathnameBase:p.pathnameBase==="/"?c:S([c,a.encodeLocation?a.encodeLocation(p.pathnameBase).pathname:p.pathnameBase])})),i,n,r);return t&&d?u.createElement(_.Provider,{value:{location:I({pathname:"/",search:"",hash:"",state:null,key:"default"},h),navigationType:w.Pop}},d):d}function Fe(){let e=Ge(),t=Te(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application
1Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),n?u.createElement("pre",{style:a},n):null,null)}const Ae=u.createElement(Fe,null);class Ve extends u.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?u.createElement(R.Provider,{value:this.props.routeContext},u.createElement(ae.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function De(e){let{routeContext:t,match:n,children:r}=e,a=u.useContext(J);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),u.createElement(R.Provider,{value:t},r)}function Je(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var l;if(!n)return null;if(n.errors)e=n.matches;else if((l=r)!=null&&l.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,o=(a=n)==null?void 0:a.errors;if(o!=null){let f=i.findIndex(h=>h.route.id&&o?.[h.route.id]!==void 0);f>=0||g(!1),i=i.slice(0,Math.min(i.length,f+1))}let s=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let f=0;f<i.length;f++){let h=i[f];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(c=f),h.route.id){let{loaderData:m,errors:x}=n,y=h.route.loader&&m[h.route.id]===void 0&&(!x||x[h.route.id]===void 0);if(h.route.lazy||y){s=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((f,h,m)=>{let x,y=!1,v=null,d=null;n&&(x=o&&h.route.id?o[h.route.id]:void 0,v=h.route.errorElement||Ae,s&&(c<0&&m===0?(y=!0,d=null):c===m&&(y=!0,d=h.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,m+1)),E=()=>{let C;return x?C=v:y?C=d:h.route.Component?C=u.createElement(h.route.Component,null):h.route.element?C=h.route.element:C=f,u.createElement(De,{match:h,routeContext:{outlet:f,matches:p,isDataRoute:n!=null},children:C})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?u.createElement(Ve,{location:n.location,revalidation:n.revalidation,component:v,error:x,children:E(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):E()},null)}var oe=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(oe||{}),j=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(j||{});function ze(e){let t=u.useContext(J);return t||g(!1),t}function Ke(e){let t=u.useContext(_e);return t||g(!1),t}function qe(e){let t=u.useContext(R);return t||g(!1),t}function se(e){let t=qe(),n=t.matches[t.matches.length-1];return n.route.id||g(!1),n.route.id}function Ge(){var e;let t=u.useContext(ae),n=Ke(j.UseRouteError),r=se(j.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function Xe(){let{router:e}=ze(oe.UseNavigateStable),t=se(j.UseNavigateStable),n=u.useRef(!1);return le(()=>{n.current=!0}),u.useCallback(function(a,l){l===void 0&&(l={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,I({fromRouteId:t},l)))},[e,t])}function He(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath}function ht(e){let{to:t,replace:n,state:r,relative:a}=e;O()||g(!1);let{future:l,static:i}=u.useContext(b),{matches:o}=u.useContext(R),{pathname:s}=B(),c=z(),f=D(t,V(o,l.v7_relativeSplatPath),s,a==="path"),h=JSON.stringify(f);return u.useEffect(()=>c(JSON.parse(h),{replace:n,state:r,relative:a}),[c,h,a,n,r]),null}function Qe(e){g(!1)}function Ye(e){let{basename:t="/",children:n=null,location:r,navigationType:a=w.Pop,navigator:l,static:i=!1,future:o}=e;O()&&g(!1);let s=t.replace(/^\/*/,"/"),c=u.useMemo(()=>({basename:s,navigator:l,static:i,future:I({v7_relativeSplatPath:!1},o)}),[s,o,l,i]);typeof r=="string"&&(r=L(r));
1let{pathname:f="/",search:h="",hash:m="",state:x=null,key:y="default"}=r,v=u.useMemo(()=>{let d=A(f,s);return d==null?null:{location:{pathname:d,search:h,hash:m,state:x,key:y},navigationType:a}},[s,f,h,m,x,y,a]);return v==null?null:u.createElement(b.Provider,{value:c},u.createElement(_.Provider,{children:n,value:v}))}function ft(e){let{children:t,location:n}=e;return Me(M(t),n)}new Promise(()=>{});function M(e,t){t===void 0&&(t=[]);let n=[];return u.Children.forEach(e,(r,a)=>{if(!u.isValidElement(r))return;let l=[...t,a];if(r.type===u.Fragment){n.push.apply(n,M(r.props.children,l));return}r.type!==Qe&&g(!1),!r.props.index||!r.props.children||g(!1);let i={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=M(r.props.children,l)),n.push(i)}),n}function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(this,arguments)}function Ze(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,l;for(l=0;l<r.length;l++)a=r[l],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function et(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function tt(e,t){return e.button===0&&(!t||t==="_self")&&!et(e)}function F(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function nt(e,t){let n=F(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(l=>{n.append(a,l)})}),n}const rt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],at="6";try{window.__reactRouterVersion=at}catch{}const lt="startTransition",Q=ue[lt];function dt(e){let{basename:t,children:n,future:r,window:a}=e,l=u.useRef();l.current==null&&(l.current=ce({window:a,v5Compat:!0}));let i=l.current,[o,s]=u.useState({action:i.action,location:i.location}),{v7_startTransition:c}=r||{},f=u.useCallback(h=>{c&&Q?Q(()=>s(h)):s(h)},[s,c]);return u.useLayoutEffect(()=>i.listen(f),[i,f]),u.useEffect(()=>He(r),[r]),u.createElement(Ye,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:i,future:r})}const it=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ot=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pt=u.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:l,replace:i,state:o,target:s,to:c,preventScrollReset:f,viewTransition:h}=t,m=Ze(t,rt),{basename:x}=u.useContext(b),y,v=!1;if(typeof c=="string"&&ot.test(c)&&(y=c,it))try{let C=new URL(window.location.href),P=c.startsWith("//")?new URL(C.protocol+c):new URL(c),U=A(P.pathname,x);P.origin===C.origin&&U!=null?c=U+P.search+P.hash:v=!0}catch{}let d=$e(c,{relative:a}),p=st(c,{replace:i,state:o,target:s,preventScrollReset:f,relative:a,viewTransition:h});function E(C){r&&r(C),C.defaultPrevented||p(C)}return u.createElement("a",W({},m,{href:y||d,onClick:v||l?r:E,ref:n,target:s}))});var Y;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Y||(Y={}));var Z;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Z||(Z={}));function st(e,t){let{target:n,replace:r,state:a,preventScrollReset:l,relative:i,viewTransition:o}=t===void 0?{}:t,s=z(),c=B(),f=ie(e,{relative:i});return u.useCallback(h=>{if(tt(h,n)){h.preventDefault();let m=r!==void 0?r:T(c)===T(f);s(e,{replace:m,state:a,preventScrollReset:l,relative:i,viewTransition:o})}},[c,s,f,r,a,n,e,l,i,o])}function mt(e){let t=u.useRef(F(e)),n=u.useRef(!1),r=B(),a=u.useMemo(()=>nt(r.search,n.current?null:t.current),[r.search]),l=z(),i=u.useCallback((o,s)=>{const c=F(typeof o=="function"?o(a):o);n.current=!0,l("?"+c,s)},[l,a]);return[a,i]}export{dt as B,pt as L,ht as N,ft as R,Qe as a,z as b,ct as c,mt as d,B 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.