1import{r as Ue,a as u,g as Be,R as j}from"./vendor-query-Bdf_E1Dh.js";var Y={exports:{}},S={};var fe;function He(){if(fe)return S;fe=1;var e=Ue();function t(s){var o="https://react.dev/errors/"+s;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)o+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+s+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(s,o,f){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:d==null?null:""+d,children:s,containerInfo:o,implementation:f}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(s,o){if(s==="font")return"";if(typeof o=="string")return o==="use-credentials"?o:""}return S.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,S.createPortal=function(s,o){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)throw Error(t(299));return i(s,o,null,f)},S.flushSync=function(s){var o=l.T,f=n.p;try{if(l.T=null,n.p=2,s)return s()}finally{l.T=o,n.p=f,n.d.f()}},S.preconnect=function(s,o){typeof s=="string"&&(o?(o=o.crossOrigin,o=typeof o=="string"?o==="use-credentials"?o:"":void 0):o=null,n.d.C(s,o))},S.prefetchDNS=function(s){typeof s=="string"&&n.d.D(s)},S.preinit=function(s,o){if(typeof s=="string"&&o&&typeof o.as=="string"){var f=o.as,d=c(f,o.crossOrigin),m=typeof o.integrity=="string"?o.integrity:void 0,g=typeof o.fetchPriority=="string"?o.fetchPriority:void 0;f==="style"?n.d.S(s,typeof o.precedence=="string"?o.precedence:void 0,{crossOrigin:d,integrity:m,fetchPriority:g}):f==="script"&&n.d.X(s,{crossOrigin:d,integrity:m,fetchPriority:g,nonce:typeof o.nonce=="string"?o.nonce:void 0})}},S.preinitModule=function(s,o){if(typeof s=="string")if(typeof o=="object"&&o!==null){if(o.as==null||o.as==="script"){var f=c(o.as,o.crossOrigin);n.d.M(s,{crossOrigin:f,integrity:typeof o.integrity=="string"?o.integrity:void 0,nonce:typeof o.nonce=="string"?o.nonce:void 0})}}else o==null&&n.d.M(s)},S.preload=function(s,o){if(typeof s=="string"&&typeof o=="object"&&o!==null&&typeof o.as=="string"){var f=o.as,d=c(f,o.crossOrigin);n.d.L(s,f,{crossOrigin:d,integrity:typeof o.integrity=="string"?o.integrity:void 0,nonce:typeof o.nonce=="string"?o.nonce:void 0,type:typeof o.type=="string"?o.type:void 0,fetchPriority:typeof o.fetchPriority=="string"?o.fetchPriority:void 0,referrerPolicy:typeof o.referrerPolicy=="string"?o.referrerPolicy:void 0,imageSrcSet:typeof o.imageSrcSet=="string"?o.imageSrcSet:void 0,imageSizes:typeof o.imageSizes=="string"?o.imageSizes:void 0,media:typeof o.media=="string"?o.media:void 0})}},S.preloadModule=function(s,o){if(typeof s=="string")if(o){var f=c(o.as,o.crossOrigin);n.d.m(s,{as:typeof o.as=="string"&&o.as!=="script"?o.as:void 0,crossOrigin:f,integrity:typeof o.integrity=="string"?o.integrity:void 0})}else n.d.m(s)},S.requestFormReset=function(s){n.d.r(s)},S.unstable_batchedUpdates=function(s,o){return s(o)},S.useFormState=function(s,o,f){return l.H.useFormState(s,o,f)},S.useFormStatus=function(){return l.H.useHostTransitionStatus()},S.version="19.2.4",S}var de;function We(){if(de)return Y.exports;de=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Y.exports=He(),Y.exports}var he="popstate";function je(e={}){function t(n,a){let{pathname:i,search:l,hash:c}=n.location;return ee("",{pathname:i,search:l,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(n,a){return typeof a=="string"?a:B(a)}return Ve(t,r,null,e)}function w(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function P(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ze(){return Math.random().toString(36).substring(2,10)}function me(e,t){return{usr:e.state,key:e.key,idx:t}}function ee(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?I(t):t,state:r,key:t&&t.key||n||ze()}}function B({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function I(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function Ve(e,t,r,n={}){let{window:a=document.defaultView,v5Compat:i=!1}=n,l=a.history,c="POP",s=null,o=f();o==null&&(o=0,l.replaceState({...l.state,idx:o},""));function f(){return(l.state||{idx:null}).idx}function d(){c="POP";let p=f(),v=p==null?null:p-o;o=p,s&&s({action:c,location:y.location,delta:v})}function m(p,v){c="PUSH";let h=ee(y.location,p,v);o=f()+1;let E=me(h,o),b=y.createHref(h);try{l.pushState(E,"",b)}
1catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;a.location.assign(b)}i&&s&&s({action:c,location:y.location,delta:1})}function g(p,v){c="REPLACE";let h=ee(y.location,p,v);o=f();let E=me(h,o),b=y.createHref(h);l.replaceState(E,"",b),i&&s&&s({action:c,location:y.location,delta:0})}function R(p){return Je(p)}let y={get action(){return c},get location(){return e(a,l)},listen(p){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(he,d),s=p,()=>{a.removeEventListener(he,d),s=null}},createHref(p){return t(a,p)},createURL:R,encodeLocation(p){let v=R(p);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:m,replace:g,go(p){return l.go(p)}};return y}function Je(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),w(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:B(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function we(e,t,r="/"){return Ke(e,t,r,!1)}function Ke(e,t,r,n){let a=typeof t=="string"?I(t):t,i=_(a.pathname||"/",r);if(i==null)return null;let l=Se(e);qe(l);let c=null;for(let s=0;c==null&&s<l.length;++s){let o=ot(i);c=nt(l[s],o,n)}return c}function Se(e,t=[],r=[],n="",a=!1){let i=(l,c,s=a,o)=>{let f={relativePath:o===void 0?l.path||"":o,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(n)&&s)return;w(f.relativePath.startsWith(n),`Absolute route path "${f.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(n.length)}let d=O([n,f.relativePath]),m=r.concat(f);l.children&&l.children.length>0&&(w(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Se(l.children,t,m,d,s)),!(l.path==null&&!l.index)&&t.push({path:d,score:tt(d,l.index),routesMeta:m})};return e.forEach((l,c)=>{if(l.path===""||!l.path?.includes("?"))i(l,c);else for(let s of xe(l.path))i(l,c,!0,s)}),t}function xe(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return a?[i,""]:[i];let l=xe(n.join("/")),c=[];return c.push(...l.map(s=>s===""?i:[i,s].join("/"))),a&&c.push(...l),c.map(s=>e.startsWith("/")&&s===""?"/":s)}function qe(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:rt(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var Ge=/^:[\w-]+$/,Ye=3,Xe=2,Qe=1,Ze=10,et=-2,pe=e=>e==="*";function tt(e,t){let r=e.split("/"),n=r.length;return r.some(pe)&&(n+=et),t&&(n+=Xe),r.filter(a=>!pe(a)).reduce((a,i)=>a+(Ge.test(i)?Ye:i===""?Qe:Ze),n)}function rt(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function nt(e,t,r=!1){let{routesMeta:n}=e,a={},i="/",l=[];for(let c=0;c<n.length;++c){let s=n[c],o=c===n.length-1,f=i==="/"?t:t.slice(i.length)||"/",d=K({path:s.relativePath,caseSensitive:s.caseSensitive,end:o},f),m=s.route;if(!d&&o&&r&&!n[n.length-1].route.index&&(d=K({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},f)),!d)return null;
1Object.assign(a,d.params),l.push({params:a,pathname:O([i,d.pathname]),pathnameBase:ut(O([i,d.pathnameBase])),route:m}),d.pathnameBase!=="/"&&(i=O([i,d.pathnameBase]))}return l}function K(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=at(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let i=a[0],l=i.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:n.reduce((o,{paramName:f,isOptional:d},m)=>{if(f==="*"){let R=c[m]||"";l=i.slice(0,i.length-R.length).replace(/(.)\/+$/,"$1")}const g=c[m];return d&&!g?o[f]=void 0:o[f]=(g||"").replace(/%2F/g,"/"),o},{}),pathname:i,pathnameBase:l,pattern:e}}function at(e,t=!1,r=!0){P(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 n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,s)=>(n.push({paramName:c,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function ot(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return P(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function _(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}var it=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function lt(e,t="/"){let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?I(e):e,i;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?i=ge(r.substring(1),"/"):i=ge(r,t)):i=t,{pathname:i,search:ct(n),hash:ft(a)}}function ge(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function X(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function st(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function ne(e){let t=st(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function ae(e,t,r,n=!1){let a;typeof e=="string"?a=I(e):(a={...e},w(!a.pathname||!a.pathname.includes("?"),X("?","pathname","search",a)),w(!a.pathname||!a.pathname.includes("#"),X("#","pathname","hash",a)),w(!a.search||!a.search.includes("#"),X("#","search","hash",a)));let i=e===""||a.pathname==="",l=i?"/":a.pathname,c;if(l==null)c=r;else{let d=t.length-1;if(!n&&l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),d-=1;a.pathname=m.join("/")}c=d>=0?t[d]:"/"}let s=lt(a,c),o=l&&l!=="/"&&l.endsWith("/"),f=(i||l===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(o||f)&&(s.pathname+="/"),s}var O=e=>e.join("/").replace(/\/\/+/g,"/"),ut=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ct=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ft=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,dt=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function ht(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function mt(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Ce=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function be(e,t){let r=e;if(typeof r!="string"||!it.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,a=!1;if(Ce)try{let i=new URL(window.location.href),l=r.startsWith("//")?new URL(i.protocol+r):new URL(r),c=_(l.pathname,t);
1l.origin===i.origin&&c!=null?r=c+l.search+l.hash:a=!0}catch{P(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:a,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Pe=["POST","PUT","PATCH","DELETE"];new Set(Pe);var pt=["GET",...Pe];new Set(pt);var A=u.createContext(null);A.displayName="DataRouter";var q=u.createContext(null);q.displayName="DataRouterState";var gt=u.createContext(!1),Le=u.createContext({isTransitioning:!1});Le.displayName="ViewTransition";var yt=u.createContext(new Map);yt.displayName="Fetchers";var vt=u.createContext(null);vt.displayName="Await";var C=u.createContext(null);C.displayName="Navigation";var H=u.createContext(null);H.displayName="Location";var L=u.createContext({outlet:null,matches:[],isDataRoute:!1});L.displayName="Route";var oe=u.createContext(null);oe.displayName="RouteError";var Oe="REACT_ROUTER_ERROR",Rt="REDIRECT",Et="ROUTE_ERROR_RESPONSE";function wt(e){if(e.startsWith(`${Oe}:${Rt}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function St(e){if(e.startsWith(`${Oe}:${Et}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new dt(t.status,t.statusText,t.data)}catch{}}function xt(e,{relative:t}={}){w(F(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=u.useContext(C),{hash:a,pathname:i,search:l}=W(e,{relative:t}),c=i;return r!=="/"&&(c=i==="/"?r:O([r,i])),n.createHref({pathname:c,search:l,hash:a})}function F(){return u.useContext(H)!=null}function T(){return w(F(),"useLocation() may be used only in the context of a <Router> component."),u.useContext(H).location}var _e="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Te(e){u.useContext(C).static||u.useLayoutEffect(e)}function ie(){let{isDataRoute:e}=u.useContext(L);return e?Mt():Ct()}function Ct(){w(F(),"useNavigate() may be used only in the context of a <Router> component.");let e=u.useContext(A),{basename:t,navigator:r}=u.useContext(C),{matches:n}=u.useContext(L),{pathname:a}=T(),i=JSON.stringify(ne(n)),l=u.useRef(!1);return Te(()=>{l.current=!0}),u.useCallback((s,o={})=>{if(P(l.current,_e),!l.current)return;if(typeof s=="number"){r.go(s);return}let f=ae(s,JSON.parse(i),a,o.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:O([t,f.pathname])),(o.replace?r.replace:r.push)(f,o.state,o)},[t,r,i,a,e])}var bt=u.createContext(null);function Pt(e){let t=u.useContext(L).outlet;return u.useMemo(()=>t&&u.createElement(bt.Provider,{value:e},t),[t,e])}function Pr(){let{matches:e}=u.useContext(L),t=e[e.length-1];return t?t.params:{}}function W(e,{relative:t}={}){let{matches:r}=u.useContext(L),{pathname:n}=T(),a=JSON.stringify(ne(r));return u.useMemo(()=>ae(e,JSON.parse(a),n,t==="path"),[e,a,n,t])}function Lt(e,t){return ke(e,t)}function ke(e,t,r,n,a){w(F(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=u.useContext(C),{matches:l}=u.useContext(L),c=l[l.length-1],s=c?c.params:{},o=c?c.pathname:"/",f=c?c.pathnameBase:"/",d=c&&c.route;{let h=d&&d.path||"";De(o,!d||h.endsWith("*")||h.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${o}" (under <Route path="${h}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 2 3Please change the parent <Route path="${h}"> to <Route path="${h==="/"?"*":`${h}/*`}">.`)}let m=T(),g;if(t){let h=typeof t=="string"?I(t):t;w(f==="/"||h.pathname?.startsWith(f),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${h.pathname}" was given in the \`location\` prop.`),g=h}else g=m;let R=g.pathname||"/",y=R;if(f!=="/"){let h=f.replace(/^\//,"").split("/");y="/"+R.replace(/^\//,"").split("/").slice(h.length).join("/")}let p=we(e,{pathname:y});P(d||p!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),P(p==null||p[p.length-1].route.element!==void 0||p[p.length-1].route.Component!==void 0||p[p.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=$t(p&&p.map(h=>Object.assign({},h,{params:Object.assign({},s,h.params),pathname:O([f,i.encodeLocation?i.encodeLocation(h.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:h.pathname]),pathnameBase:h.pathnameBase==="/"?f:O([f,i.encodeLocation?i.encodeLocation(h.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:h.pathnameBase])})),l,r,n,a);return t&&v?u.createElement(H.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},v):v}function Ot(){let e=Ft(),t=ht(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=u.createElement(u.Fragment,null,u.createElement("p",null,"ð¿ Hey developer ð"),u.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",u.createElement("code",{style:i},"ErrorBoundary")," or"," ",u.createElement("code",{style:i},"errorElement")," prop on your route.")),u.createElement(u.Fragment,null,u.createElement("h2",null,"Unexpected Application
3Error!"),u.createElement("h3",{style:{fontStyle:"italic"}},t),r?u.createElement("pre",{style:a},r):null,l)}var _t=u.createElement(Ot,null),$e=class extends u.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=St(e.digest);r&&(e=r)}let t=e!==void 0?u.createElement(L.Provider,{value:this.props.routeContext},u.createElement(oe.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?u.createElement(Tt,{error:e},t):t}};$e.contextType=gt;var Q=new WeakMap;function Tt({children:e,error:t}){let{basename:r}=u.useContext(C);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let n=wt(t.digest);if(n){let a=Q.get(t);if(a)throw a;let i=be(n.location,r);if(Ce&&!Q.get(t))if(i.isExternal||n.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const l=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:n.replace}));throw Q.set(t,l),l}return u.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function kt({routeContext:e,match:t,children:r}){let n=u.useContext(A);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),u.createElement(L.Provider,{value:e},r)}function $t(e,t=[],r=null,n=null,a=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,l=r?.errors;if(l!=null){let f=i.findIndex(d=>d.route.id&&l?.[d.route.id]!==void 0);w(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),i=i.slice(0,Math.min(i.length,f+1))}let c=!1,s=-1;if(r)for(let f=0;f<i.length;f++){let d=i[f];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(s=f),d.route.id){let{loaderData:m,errors:g}=r,R=d.route.loader&&!m.hasOwnProperty(d.route.id)&&(!g||g[d.route.id]===void 0);if(d.route.lazy||R){c=!0,s>=0?i=i.slice(0,s+1):i=[i[0]];break}}}let o=r&&n?(f,d)=>{n(f,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:mt(r.matches),errorInfo:d})}:void 0;return i.reduceRight((f,d,m)=>{let g,R=!1,y=null,p=null;r&&(g=l&&d.route.id?l[d.route.id]:void 0,y=d.route.errorElement||_t,c&&(s<0&&m===0?(De("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,p=null):s===m&&(R=!0,p=d.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,m+1)),h=()=>{let E;return g?E=y:R?E=p:d.route.Component?E=u.createElement(d.route.Component,null):d.route.element?E=d.route.element:E=f,u.createElement(kt,{match:d,routeContext:{outlet:f,matches:v,isDataRoute:r!=null},children:E})};return r&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?u.createElement($e,{location:r.location,revalidation:r.revalidation,component:y,error:g,children:h(),routeContext:{outlet:null,matches:v,isDataRoute:!0},onError:o}):h()},null)}function le(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Dt(e){let t=u.useContext(A);return w(t,le(e)),t}function Nt(e){let t=u.useContext(q);return w(t,le(e)),t}function It(e){let t=u.useContext(L);return w(t,le(e)),t}function se(e){let t=It(e),r=t.matches[t.matches.length-1];return w(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function At(){return se("useRouteId")}function Ft(){let e=u.useContext(oe),t=Nt("useRouteError"),r=se("useRouteError");return e!==void 0?e:t.errors?.[r]}function Mt(){let{router:e}=Dt("useNavigate"),t=se("useNavigate"),r=u.useRef(!1);return Te(()=>{r.current=!0}),u.useCallback(async(a,i={})=>{P(r.current,_e),r.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var ye={};function De(e,t,r){!t&&!ye[e]&&(ye[e]=!0,P(!1,r))}u.memo(Ut);function Ut({routes:e,future:t,state:r,onError:n}){return ke(e,void 0,r,n,t)}function Lr({to:e,replace:t,state:r,relative:n}){w(F(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=u.useContext(C);P(!a,"<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:i}=u.useContext(L),{pathname:l}=T(),c=ie(),s=ae(e,ne(i),l,n==="path"),o=JSON.stringify(s);return u.useEffect(()=>{c(JSON.parse(o),{replace:t,state:r,relative:n})},[c,o,n,t,r]),null}function Or(e){return Pt(e.context)}function Bt(e){w(!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 Ht({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:a,static:i=!1,unstable_useTransitions:l}){w(!F(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),s=u.useMemo(()=>({basename:c,navigator:a,static:i,unstable_useTransitions:l,future:{}}),[c,a,i,l]);typeof r=="string"&&(r=I(r));let{pathname:o="/",search:f="",hash:d="",state:m=null,key:g="default"}=r,R=u.useMemo(()=>{let y=_(o,c);return y==null?null:{location:{pathname:y,search:f,hash:d,state:m,ke
3y:g},navigationType:n}},[c,o,f,d,m,g,n]);return P(R!=null,`<Router basename="${c}"> is not able to match the URL "${o}${f}${d}" because it does not start with the basename, so the <Router> won't render anything.`),R==null?null:u.createElement(C.Provider,{value:s},u.createElement(H.Provider,{children:t,value:R}))}function _r({children:e,location:t}){return Lt(te(e),t)}function te(e,t=[]){let r=[];return u.Children.forEach(e,(n,a)=>{if(!u.isValidElement(n))return;let i=[...t,a];if(n.type===u.Fragment){r.push.apply(r,te(n.props.children,i));return}w(n.type===Bt,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),w(!n.props.index||!n.props.children,"An index route cannot have child routes.");let l={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(l.children=te(n.props.children,i)),r.push(l)}),r}var V="get",J="application/x-www-form-urlencoded";function G(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Wt(e){return G(e)&&e.tagName.toLowerCase()==="button"}function jt(e){return G(e)&&e.tagName.toLowerCase()==="form"}function zt(e){return G(e)&&e.tagName.toLowerCase()==="input"}function Vt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Jt(e,t){return e.button===0&&(!t||t==="_self")&&!Vt(e)}function re(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(a=>[r,a]):[[r,n]])},[]))}function Kt(e,t){let r=re(e);return t&&t.forEach((n,a)=>{r.has(a)||t.getAll(a).forEach(i=>{r.append(a,i)})}),r}var z=null;function qt(){if(z===null)try{new FormData(document.createElement("form"),0),z=!1}catch{z=!0}return z}var Gt=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Z(e){return e!=null&&!Gt.has(e)?(P(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${J}"`),null):e}function Yt(e,t){let r,n,a,i,l;if(jt(e)){let c=e.getAttribute("action");n=c?_(c,t):null,r=e.getAttribute("method")||V,a=Z(e.getAttribute("enctype"))||J,i=new FormData(e)}else if(Wt(e)||zt(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||c.getAttribute("action");if(n=s?_(s,t):null,r=e.getAttribute("formmethod")||c.getAttribute("method")||V,a=Z(e.getAttribute("formenctype"))||Z(c.getAttribute("enctype"))||J,i=new FormData(c,e),!qt()){let{name:o,type:f,value:d}=e;if(f==="image"){let m=o?`${o}.`:"";i.append(`${m}x`,"0"),i.append(`${m}y`,"0")}else o&&i.append(o,d)}}else{if(G(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=V,n=null,a=J,l=e}return i&&a==="text/plain"&&(l=i,i=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:i,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ue(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Xt(e,t,r,n){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${n}`:a.pathname=`${a.pathname}.${n}`:a.pathname==="/"?a.pathname=`_root.${n}`:t&&_(a.pathname,t)==="/"?a.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${n}`,a}async function Qt(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.
3isSpaMode,window.location.reload(),new Promise(()=>{})}}function Zt(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function er(e,t,r){let n=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let l=await Qt(i,r);return l.links?l.links():[]}return[]}));return ar(n.flat(1).filter(Zt).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function ve(e,t,r,n,a,i){let l=(s,o)=>r[o]?s.route.id!==r[o].route.id:!0,c=(s,o)=>r[o].pathname!==s.pathname||r[o].route.path?.endsWith("*")&&r[o].params["*"]!==s.params["*"];return i==="assets"?t.filter((s,o)=>l(s,o)||c(s,o)):i==="data"?t.filter((s,o)=>{let f=n.routes[s.route.id];if(!f||!f.hasLoader)return!1;if(l(s,o)||c(s,o))return!0;if(s.route.shouldRevalidate){let d=s.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function tr(e,t,{includeHydrateFallback:r}={}){return rr(e.map(n=>{let a=t.routes[n.route.id];if(!a)return[];let i=[a.module];return a.clientActionModule&&(i=i.concat(a.clientActionModule)),a.clientLoaderModule&&(i=i.concat(a.clientLoaderModule)),r&&a.hydrateFallbackModule&&(i=i.concat(a.hydrateFallbackModule)),a.imports&&(i=i.concat(a.imports)),i}).flat(1))}function rr(e){return[...new Set(e)]}function nr(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function ar(e,t){let r=new Set;return new Set(t),e.reduce((n,a)=>{let i=JSON.stringify(nr(a));return r.has(i)||(r.add(i),n.push({key:i,link:a})),n},[])}function Ne(){let e=u.useContext(A);return ue(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function or(){let e=u.useContext(q);return ue(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ce=u.createContext(void 0);ce.displayName="FrameworkContext";function Ie(){let e=u.useContext(ce);return ue(e,"You must render this element inside a <HydratedRouter> element"),e}function ir(e,t){let r=u.useContext(ce),[n,a]=u.useState(!1),[i,l]=u.useState(!1),{onFocus:c,onBlur:s,onMouseEnter:o,onMouseLeave:f,onTouchStart:d}=t,m=u.useRef(null);u.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let y=v=>{v.forEach(h=>{l(h.isIntersecting)})},p=new IntersectionObserver(y,{threshold:.5});return m.current&&p.observe(m.current),()=>{p.disconnect()}}},[e]),u.useEffect(()=>{if(n){let y=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(y)}}},[n]);let g=()=>{a(!0)},R=()=>{a(!1),l(!1)};return r?e!=="intent"?[i,m,{}]:[i,m,{onFocus:U(c,g),onBlur:U(s,R),onMouseEnter:U(o,g),onMouseLeave:U(f,R),onTouchStart:U(d,g)}]:[!1,m,{}]}function U(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function lr({page:e,...t}){let{router:r}=Ne(),n=u.useMemo(()=>we(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?u.createElement(ur,{page:e,matches:n,...t}):null}function sr(e){let{manifest:t,routeModules:r}=Ie(),[n,a]=u.useState([]);return u.useEffect(()=>{let i=!1;return er(e,t,r).then(l=>{i||a(l)}),()=>{i=!0}},[e,t,r]),n}function ur({page:e,matches:t,...r}){let n=T(),{future:a,manifest:i,routeModules:l}=Ie(),{basename:c}=Ne(),{loaderData:s,matches:o}=or(),f=u.useMemo(()=>ve(e,t,o,i,n,"data"),[e,t,o,i,n]),d=u.useMemo(()=>ve(e,t,o,i,n,"assets"),[e,t,o,i,n]),m=u.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let y=new Set,p=!1;if(t.forEach(h=>{let E=i.routes[h.route.id];!E||!E.hasLoader||(!f.some(b=>b.route.id===h.route.id)&&h.route.id in s&&l[h.route.id]?.shouldRevalidate||E.hasClientLoader?p=!0:y.add(h.route.id))}),y.size===0)return[];let v=Xt(e,c,a.unstable_trailingSlashAwareDataRequests,"data");return p&&y.size>0&&v.searchParams.set("_routes",t.filter(h=>y.has(h.route.id)).map(h=>h.route.id).join(",")),[v.pathname+v.search]},[c,a.unstable_trailingSlashAwareDataRequests,s,n,i,f,t,e,l]),g=u.useMemo(()=>tr(d,i),[d,i]),R=sr(d);return u.createElement(u.Fragment,null,m.map(y=>u.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...r})),g.map(y=>u.createElement("link",{key:y,rel:"modulepreload",href:y,...r})),R.map(({key:y,link:p})=>u.createElement("link",{key:y,nonce:r.nonce,...p,crossOrigin:p.crossOrigin??r.crossOrigin})))}function cr(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var fr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{fr&&(window.__reactRouterVersion="7.13.0")}catch{}
3function Tr({basename:e,children:t,unstable_useTransitions:r,window:n}){let a=u.useRef();a.current==null&&(a.current=je({window:n,v5Compat:!0}));let i=a.current,[l,c]=u.useState({action:i.action,location:i.location}),s=u.useCallback(o=>{r===!1?c(o):u.startTransition(()=>c(o))},[r]);return u.useLayoutEffect(()=>i.listen(s),[i,s]),u.createElement(Ht,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:i,unstable_useTransitions:r})}var Ae=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Fe=u.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:a,reloadDocument:i,replace:l,state:c,target:s,to:o,preventScrollReset:f,viewTransition:d,unstable_defaultShouldRevalidate:m,...g},R){let{basename:y,unstable_useTransitions:p}=u.useContext(C),v=typeof o=="string"&&Ae.test(o),h=be(o,y);o=h.to;let E=xt(o,{relative:a}),[b,x,k]=ir(n,g),$=pr(o,{replace:l,state:c,target:s,preventScrollReset:f,relative:a,viewTransition:d,unstable_defaultShouldRevalidate:m,unstable_useTransitions:p});function D(M){t&&t(M),M.defaultPrevented||$(M)}let N=u.createElement("a",{...g,...k,href:h.absoluteURL||E,onClick:h.isExternal||i?t:D,ref:cr(R,x),target:s,"data-discover":!v&&r==="render"?"true":void 0});return b&&!v?u.createElement(u.Fragment,null,N,u.createElement(lr,{page:E})):N});Fe.displayName="Link";var dr=u.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:a=!1,style:i,to:l,viewTransition:c,children:s,...o},f){let d=W(l,{relative:o.relative}),m=T(),g=u.useContext(q),{navigator:R,basename:y}=u.useContext(C),p=g!=null&&Er(d)&&c===!0,v=R.encodeLocation?R.encodeLocation(d).pathname:d.pathname,h=m.pathname,E=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;r||(h=h.toLowerCase(),E=E?E.toLowerCase():null,v=v.toLowerCase()),E&&y&&(E=_(E,y)||E);const b=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let x=h===v||!a&&h.startsWith(v)&&h.charAt(b)==="/",k=E!=null&&(E===v||!a&&E.startsWith(v)&&E.charAt(v.length)==="/"),$={isActive:x,isPending:k,isTransitioning:p},D=x?t:void 0,N;typeof n=="function"?N=n($):N=[n,x?"active":null,k?"pending":null,p?"transitioning":null].filter(Boolean).join(" ");let M=typeof i=="function"?i($):i;return u.createElement(Fe,{...o,"aria-current":D,className:N,ref:f,style:M,to:l,viewTransition:c},typeof s=="function"?s($):s)});dr.displayName="NavLink";var hr=u.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:a,state:i,method:l=V,action:c,onSubmit:s,relative:o,preventScrollReset:f,viewTransition:d,unstable_defaultShouldRevalidate:m,...g},R)=>{let{unstable_useTransitions:y}=u.useContext(C),p=vr(),v=Rr(c,{relative:o}),h=l.toLowerCase()==="get"?"get":"post",E=typeof c=="string"&&Ae.test(c),b=x=>{if(s&&s(x),x.defaultPrevented)return;x.preventDefault();let k=x.nativeEvent.submitter,$=k?.getAttribute("formmethod")||l,D=()=>p(k||x.currentTarget,{fetcherKey:t,method:$,navigate:r,replace:a,state:i,relative:o,preventScrollReset:f,viewTransition:d,unstable_defaultShouldRevalidate:m});y&&r!==!1?u.startTransition(()=>D()):D()};return u.createElement("form",{ref:R,method:h,action:v,onSubmit:n?s:b,...g,"data-discover":!E&&e==="render"?"true":void 0})});hr.displayName="Form";function mr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Me(e){let t=u.useContext(A);return w(t,mr(e)),t}function pr(e,{target:t,replace:r,state:n,preventScrollReset:a,relative:i,viewTransition:l,unstable_defaultShouldRevalidate:c,unstable_useTransitions:s}={}){let o=ie(),f=T(),d=W(e,{relative:i});return u.useCallback(m=>{if(Jt(m,t)){m.preventDefault();let g=r!==void 0?r:B(f)===B(d),R=()=>o(e,{replace:g,state:n,preventScrollReset:a,relative:i,viewTransition:l,unstable_defaultShouldRevalidate:c});s?u.startTransition(()=>R()):R()}},[f,o,d,r,n,t,e,a,i,l,c,s])}function kr(e){P(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=u.useRef(re(e)),r=u.useRef(!1),n=T(),a=u.useMemo(()=>Kt(n.search,r.current?null:t.current),[n.search]),i=ie(),l=u.useCallback((c,s)=>{const o=re(typeof c=="function"?c(new URLSearchParams(a)):c);r.current=!0,i("?"+o,s)},[i,a]);return[a,l]}var gr=0,yr=()=>`__${String(++gr)}__`;function vr(){let{router:e}=Me("useSubmit"),{basename:t}=u.useContext(C),r=At(),n=e.fetch,a=e.navigate;return u.useCallback(async(i,l={})=>{let{action:c,method:s,encType:o,formData:f,body:d}=Yt(i,t);if(l.navigate===!1){let m=l.fetcherKey||yr();await n(m,r,l.action||c,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:f,body:d,formMethod:l.method||s,formEncType:l.encType||o,flushSync:l.flushSync})}else await a(l.action||c,{unstable_defaultShouldRevalidate:l.unstable_defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:f,body:d,formMethod:l.method||s,formEncType:l.encType||o,replace:l.replace,state:l.state,fromRouteId:r,flushSync:l.flushSync,viewTransition:l.viewTransition})},[n,a,t,r])}function Rr(e,{relative:t}={}){let{basename:r}=u.useContext(C),n=u.useContext(L);w(n,"useFormAction must be used inside a RouteContext");let[a]=n.matches.slice(-1),i={...W(e||".",{relative:t})},l=T();if(e==null){i.search=l.search;let c=new URLSearchParams(i.search),s=c.getAll("index");if(s.some(f=>f==="")){c.delete("index"),s.filter(d=>
3d).forEach(d=>c.append("index",d));let f=c.toString();i.search=f?`?${f}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(i.pathname=i.pathname==="/"?r:O([r,i.pathname])),B(i)}function Er(e,{relative:t}={}){let r=u.useContext(Le);w(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Me("useViewTransitionState"),a=W(e,{relative:t});if(!r.isTransitioning)return!1;let i=_(r.currentLocation.pathname,n)||r.currentLocation.pathname,l=_(r.nextLocation.pathname,n)||r.nextLocation.pathname;return K(a.pathname,l)!=null||K(a.pathname,i)!=null}var wr=We();const $r=Be(wr),Re=e=>{let t;const r=new Set,n=(o,f)=>{const d=typeof o=="function"?o(t):o;if(!Object.is(d,t)){const m=t;t=f??(typeof d!="object"||d===null)?d:Object.assign({},t,d),r.forEach(g=>g(t,m))}},a=()=>t,c={setState:n,getState:a,getInitialState:()=>s,subscribe:o=>(r.add(o),()=>r.delete(o))},s=t=e(n,a,c);return c},Sr=(e=>e?Re(e):Re),xr=e=>e;function Cr(e,t=xr){const r=j.useSyncExternalStore(e.subscribe,j.useCallback(()=>t(e.getState()),[e,t]),j.useCallback(()=>t(e.getInitialState()),[e,t]));return j.useDebugValue(r),r}const Ee=e=>{const t=Sr(e),r=n=>Cr(t,n);return Object.assign(r,t),r},Dr=(e=>e?Ee(e):Ee);export{Tr as B,Fe as L,Lr as N,Or as O,$r as R,wr as a,Pr as b,Dr as c,_r as d,Bt as e,ie as f,kr as g,dr as h,We as r,T 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.