1import{i as e,n as t,t as n}from"./jsx-runtime-Cx0BB4qO.js";import{t as r}from"./react-3BKWdGy3.js";import{t as i}from"./invariant-DEEwAagU.js";function a(e){return e[e.length-1]}function o(e,t){return typeof e==`function`?e(t):e}var s=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;function l(e){for(let t in e)if(s.call(e,t))return!0;return!1}var u=()=>Object.create(null),d=(e,t)=>f(e,t,u);function f(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=g(e)&&g(i);if(!a&&!(m(e)&&m(i)))return i;let o=a?e:p(e);if(!o)return i;let c=a?i:p(i);if(!c)return i;let l=o.length,u=c.length,d=a?Array(u):n(),h=0;for(let t=0;t<u;t++){let o=a?t:c[t],u=e[o],p=i[o];if(u===p){d[o]=u,(a?t<l:s.call(e,o))&&h++;continue}if(u===null||p===null||typeof u!=`object`||typeof p!=`object`){d[o]=p;continue}let m=f(u,p,n,r+1);d[o]=m,m===u&&h++}return l===u&&h===l?e:d}function p(e){let t=Object.keys(e);if(t.length!==Object.getOwnPropertyNames(e).length)return!1;let n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;for(let r of n){if(!c.call(e,r))return!1;t.push(r)}return t}function m(e){if(!h(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!h(n)||!n.hasOwnProperty(`isPrototypeOf`))}function h(e){return Object.prototype.toString.call(e)===`[object Object]`}function g(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!_(e[r],t[r],n))return!1;return!0}if(m(e)&&m(t)){let r=n?.ignoreUndefined??!0;if(n?.partial){for(let i in t)if((!r||t[i]!==void 0)&&!_(e[i],t[i],n))return!1;return!0}let i=0;if(!r)i=Object.keys(e).length;else for(let t in e)e[t]!==void 0&&i++;let a=0;for(let o in t)if((!r||t[o]!==void 0)&&(a++,a>i||!_(e[o],t[o],n)))return!1;return i===a}return!1}function v(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}
1var y=/[\x00-\x1f\x7f"<>`{}]/g;function b(e){return e.replace(y,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function x(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return b(t)}var S=[`http:`,`https:`,`mailto:`,`tel:`];function C(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}var w={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},T=/[&><\u2028\u2029]/g;function E(e){return e.replace(T,e=>w[e])}function D(e){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`//`))return{path:e,handledProtocolRelativeURL:!1};let t=/%25|%5C/gi,n=0,r=``,i;for(;(i=t.exec(e))!==null;)r+=x(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=x(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function ee(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function te(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function O(e){let t=new Map,n,r,i=e=>{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var k=4,ne=5;function re(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=a.indexOf(`{`),s;if(o!==-1&&o+1<a.length&&(s=a.indexOf(`}
1`,o))!==-1){let r=a.charCodeAt(o+1);if(r===45){if(o+2<a.length&&a.charCodeAt(o+2)===36){let e=o+3,r=s;if(e<r)return n[0]=3,n[1]=t+o,n[2]=t+e,n[3]=t+r,n[4]=t+s+1,n[5]=i,n}}else if(r===36){let r=o+1,a=o+2;return a===s?(n[0]=2,n[1]=t+o,n[2]=t+r,n[3]=t+a,n[4]=t+s+1,n[5]=e.length,n):(n[0]=1,n[1]=t+o,n[2]=t+a,n[3]=t+s,n[4]=t+s+1,n[5]=i,n)}}return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n}function A(e,t,n,r,i,a,o,s){s?.(n);let c=r;{let r=n.fullPath??n.from,s=n.options,l=r.length,u=s?.caseSensitive??e,d=s?.params?.parse??s?.parseParams;for(;c<l;){let e=re(r,c,t),n,s=c,l=e[5];c=l+1,a++;let f=e[0];switch(f){case 0:{let t=r.substring(e[2],e[3]),o=t,s;u?s=i.static??=new Map:(o=t.toLowerCase(),s=i.staticInsensitive??=new Map);let c=s.get(o);if(c)n=c;else{let e=j(r);e.parent=i,e.depth=a,n=e,s.set(o,e)}break}case 1:case 3:case 2:{let t=r.substring(s,e[1]),c=r.substring(e[4],l),p=u&&!!(t||c);u||(t=t.toLowerCase(),c=c.toLowerCase());let m=f===1?i.dynamic:f===3?i.optional:i.wildcard,h=f!==2&&!d&&m?.find(e=>!e.parse&&e.caseSensitive===p&&e.prefix===t&&e.suffix===c);if(h)n=h;else{let e=ae(f,r,p,t,c);n=e,e.parent=i,e.depth=a;let s;s=f===1?i.dynamic??=[]:f===3?i.optional??=[]:i.wildcard??=[],s.push(e),s.length===2&&o?.push(s)}break}}i=n}if(d&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=j(r);e.kind=ne,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let f=(n.path||!n.children)&&!n.isRoot;if(f&&r.endsWith(`/`)){let e=j(r);e.kind=k,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=d??null,i.priority=s?.params?.priority??0,f&&!i.route&&(i.route=n,i.fullPath=r)}if(n.children)for(let r of n.children)A(e,t,r,c,i,a,o,s)}function ie(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function j(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function ae(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function oe(e,t){let n=j(`/`),r=new Uint16Array(6),i=[];for(let t of e)A(!1,r,t,1,n,0,i);for(let e of i)e.sort(ie);t.masksTree=n,t.flatCache=O(1e3)}function M(e,t){e||=`/`;let n=t.flatCache.get(e);if(n!==void 0)return n;let r=P(e,t.masksTree);return t.flatCache.set(e,r),r}function se(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=j(`/`),A(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),P(r,o,n)}function ce(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=P(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=F(a.route)),t.matchCache.set(r,a),a}function le(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function N(e,t=!1,n){let r=j(e.fullPath),a=new Uint16Array(6),o=[],s={},c={},l=0;A(t,a,e,1,r,0,o,e=>{if(n?.(e,l),e.id in s&&i(),s[e.id]=e,l!==0&&e.path){let t=le(e.fullPath);(!c[t]||e.fullPath.endsWith(`/`))&&(c[t]=e)}l++});for(let e of o)e.sort(ie);return{processedTree:{segmentTree:r,singleCache:O(1e3),matchCache:O(1e3),flatCache:null,masksTree:null},routesById:s,routesByPath:c}}function P(e,t,n=!1){let r=e.split(`/`),i=L(e,r,t,n);if(!i)return null;let[a]=ue(e,r,i);return{route:i.node.route,rawParams:a}}function ue(e,t,n){let r=I(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s<r.length;o++,s++,c++,l++){let u=r[s];if(u.kind===k)break;if(u.kind===ne){l--,o--,c--;continue}let d=t[o],f=c;if(d&&(c+=d.length),u.kind===1){i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix.length;if(e.charCodeAt(t)===123){let n=u.suffix.length,r=e.substring(t+2,e.length-n-1),i=d.substring(t,d.length-n);a[r]=decodeURIComponent(i)}else{let t=e.substring(1);a[t]=decodeURIComponent(d)}}else if(u.kind===3){if(n.skipped&1<<s){o--,c=f-1;continue}i??=n.node.fullPath.split(`/`);let e=i[l],t=u.prefix.length,r=u.suffix.length,p=e.substring(t+3,e.length-r-1),m=u.suffix||u.prefix?d.substring(t,d.length-r):d;m&&(a[p]=decodeURIComponent(m))}else if(u.kind===2){let t=u,n=e.substring(f+t.prefix.length,e.length-t.suffix.length),r=decodeURIComponent(n);a[`*`]=r,a._splat=r;break}}return n.rawParams&&Object.assign(a,n.rawParams),[a,{part:o,node:s,path:c,segment:l}]}function F(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function I(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function L(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!a(t),o=i&&e!==`/`,s=t.length-+!!i,c=[{node:n,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],l=null,u=null;for(;c.length;){let n=c.pop(),{node:i,index:a,skipped:d,statics:f,dynamics:p,optionals:m}=n,{extract:h,rawParams:g}=n;if(i.kind===2&&i.route&&!B(u,n))continue;if(i.parse){if(!z(e,t,n))continue;g=n.rawParams,h=n.extract}r&&i.route&&i.kind!==k&&B(l,n)&&(l=n);let _=a===s;if(_&&(i.route&&(!o||i.kind===k||i.kind===2)&&B(u,n)&&(u=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let v=_?void 0:t[a],y;if(_&&i.index){let n={node:i.index,index:a,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g},r=!0;
1if(i.index.parse&&(z(e,t,n)||(r=!1)),r){if(!p&&!m&&!d&&de(f,s))return n;B(u,n)&&(u=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:o}=n;if(!(r&&(_||!(n.caseSensitive?v:y??=v.toLowerCase()).startsWith(r)))){if(o){if(_)continue;let e=t.slice(a).join(`/`),i=e.slice(-o.length);if((n.caseSensitive?i:i.toLowerCase())!==o||e.length-o.length<r.length)continue}c.push({node:n,index:s,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(i.optional){let e=d|1<<i.depth+1;for(let t=i.optional.length-1;t>=0;t--){let n=i.optional[t];c.push({node:n,index:a,skipped:e,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_)for(let e=i.optional.length-1;e>=0;e--){let t=i.optional[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}c.push({node:t,index:a+1,skipped:d,statics:f,dynamics:p,optionals:m+R(s,a),extract:h,rawParams:g})}}if(!_&&i.dynamic&&v)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?v:y??=v.toLowerCase();if(n&&!e.startsWith(n)||r&&e.indexOf(r,e.length-r.length)<n.length)continue}c.push({node:t,index:a+1,skipped:d,statics:f,dynamics:p+R(s,a),optionals:m,extract:h,rawParams:g})}if(!_&&i.staticInsensitive){let e=i.staticInsensitive.get(y??=v.toLowerCase());e&&c.push({node:e,index:a+1,skipped:d,statics:f+R(s,a),dynamics:p,optionals:m,extract:h,rawParams:g})}if(!_&&i.static){let e=i.static.get(v);e&&c.push({node:e,index:a+1,skipped:d,statics:f+R(s,a),dynamics:p,optionals:m,extract:h,rawParams:g})}if(i.pathless)for(let e=i.pathless.length-1;e>=0;e--){let t=i.pathless[e];c.push({node:t,index:a,skipped:d,statics:f,dynamics:p,optionals:m,extract:h,rawParams:g})}}if(u)return u;if(r&&l){let n=l.index;for(let e=0;e<l.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return l.rawParams??=Object.create(null),l.rawParams[`**`]=decodeURIComponent(r),l}return null}function R(e,t){return 2**(e-t-1)}function de(e,t){return e===2**(t-1)-1}function z(e,t,n){let r,i;try{[r,i]=ue(e,t,n)}catch{return null}if(n.rawParams=r,n.extract=i,!n.node.parse)return!0;try{if(n.node.parse(r)===!1)return null}catch{}return!0}function B(e,t){return!e||t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===k)>(e.node.kind===k)||t.node.kind===k==(e.node.kind===k)&&t.node.depth>e.node.depth)))}function V(e){return H(e.filter(e=>e!==void 0).join(`/`))}function H(e){return e.replace(/\/{2,}/g,`/`)}function U(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function W(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function fe(e){return W(U(e))}function G(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function pe(e,t,n){return G(e,n)===G(t,n)}function me({base:e,to:t,trailingSlash:n=`never`,cache:r}){if(t.includes(`//`)&&(t=H(t)),t.startsWith(`/`))return t.length===1||n===`preserve`?t:n===`always`?t.endsWith(`/`)?t:`${t}/`:t.endsWith(`/`)?t.slice(0,-1):t;let i=t===`.`,o;if(r){o=i?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(i)s=e.split(`/`);else{for(e.includes(`//`)&&(e=H(e)),s=e.split(`/`);s.length>1&&a(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&s.push(r):s=[r]:r===`..`?s.length>1?s.pop():s=[``]:r===`.`||s.push(r)}}s.length>1&&(a(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=s.join(`/`),l=(i?H(c):c)||`/`;return o&&r&&r.set(o,l),l}function he(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function ge(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>ve(e,n)).join(`/`):ve(r,n):r}function _e({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;s<o;){let r=s;c=re(e,r,c);let o=c[5];if(s=o+1,r===o)continue;let u=c[0];if(u===0){l+=`/`+e.substring(r,o);continue}if(u===2){let s=t._splat;a._splat=s,a[`*`]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o);if(!s){i=!0,(u||d)&&(l+=`/`+u+d);continue}let f=ge(`_splat`,t,n);l+=`/`+u+f+d;continue}if(u===1){let s=e.substring(c[2],c[3]);!i&&!(s in t)&&(i=!0),a[s]=t[s];let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=ge(s,t,n)??`undefined`;l+=`/`+u+f+d;continue}if(u===3){let i=e.substring(c[2],c[3]),s=t[i];if(s==null)continue;a[i]=s;let u=e.substring(r,c[1]),d=e.substring(c[4],o),f=ge(i,t,n)??``;l+=`/`+u+f+d;continue}}return e.endsWith(`/`)&&(l+=`/`),{usedParams:a,interpolatedPath:l||`/`,isMissingParams:i}}function ve(e,t){let n=encodeURIComponent(e);return t?.(n)??n}var ye=`Error preloading route! âï¸`,K=e(r(),1),be=K.use,xe=K.useLayoutEffect;function Se(e,t,n){K.useEffect(()=>{if(!e.current||n||typeof IntersectionObserver!=`function`)return()=>t();let r=new IntersectionObserver(e=>{t(e.pop())},{rootMargin:`100px`});return r.observe(e.current),()=>{r.disconnect(),t()}},[t,n,e])}function Ce(e){let t=K.useRef(null);return K.useImperativeHandle(e,()=>t.current,[]),t}var q=n();function we({children:e,fallback:t=null}){return(0,q.jsx)(K.Fragment,{children:J()?e:t})}function J(){return K.useSyncExternalStore(Te,()=>!0,()=>!1)}function Te(){return()=>{}}var Ee=K.createContext(null);function Y(e){return K.useContext(Ee)}var De=K.createContext(void 0),Oe=K.createContext(void 0),ke=t((e=>{var t=r();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:n,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Ae=t(((e,t)=>{t.exports=ke()})),je=t((e=>{var t=r(),n=Ae();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=n.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),Me=t(((e,t)=>{t.exports=je()}))();function Ne(e,t){return e===t}function X(e,t,n=Ne){let r=(0,K.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),i=(0,K.useCallback)(()=>e?.get(),[e]);return(0,Me.useSyncExternalStoreWithSelector)(r,i,i,t,n)}var Pe={};function Fe(e,t){let n=K.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=f(n.current,i):i}}function Ie(e){let t=Y(),n=K.useContext(e.from?Oe:De),r=e.from??n,a=t.stores.getMatchStore(r),o=Fe(e,t),s=X(a,e=>e?o(e):Pe);if(s!==Pe)return s;(e.shouldThrow??!0)&&i()}function Le(e){return Ie({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 Re(e){let t=Y();return K.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}
1function ze(e){let t=Y(),n=Re(),r=K.useRef(null);return xe(()=>{r.current!==e&&(n(e),r.current=e)},[t,e,n]),null}function Be(e){let t=K.useRef(e);return _(t.current,e,{ignoreUndefined:!1})||(t.current=e),t.current}function Ve(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function He(e,t,n){if(e?.external)return C(e.href,n)?void 0:e.href;if(!Xe(t)&&typeof t==`string`&&t.indexOf(`:`)!==-1)try{return new URL(t),C(t,n)?void 0:t}catch{}}function Ue(e,t,n,r,i,a){if(a)return!1;if(n?.exact){if(!pe(e.pathname,t.pathname,r))return!1}else{let n=G(e.pathname,r),i=G(t.pathname,r);if(!(n.startsWith(i)&&(n.length===i.length||n[i.length]===`/`)))return!1}return(n?.includeSearch??!0)&&!_(e.search,t.search,{partial:!n?.exact,ignoreUndefined:!n?.explicitUndefined})?!1:!n?.includeHash||i&&e.hash===t.hash}function We(e,t){let n=Y(),r=Ce(t),{activeProps:i,inactiveProps:a,activeOptions:s,to:c,preload:l,preloadDelay:u,preloadIntentProximity:d,hashScrollIntoView:f,replace:p,startTransition:m,resetScroll:h,viewTransition:g,children:_,target:v,disabled:y,style:b,className:x,onClick:S,onBlur:C,onFocus:w,onMouseEnter:T,onMouseLeave:E,onTouchStart:D,ignoreBlocker:ee,params:te,search:O,hash:k,state:ne,mask:re,reloadDocument:A,unsafeRelative:ie,from:j,_fromLocation:ae,...oe}=e,M=J(),se=Be(e.search),ce=Be(e.params),le=Be(s),N=K.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,se,ce,e.state,e.mask,e.unsafeRelative]),P=K.useCallback(e=>{let t=n.buildLocation({_fromLocation:e,...N}),r=Ye(t.maskedLocation?t.maskedLocation.publicHref:t.publicHref,t.maskedLocation?t.maskedLocation.external:t.external,n.history,y),i=He(r,c,n.protocolAllowlist);return[r?.href,i,Ue(e,t,le,n.basepath,M,i!==void 0)]},[le,y,M,N,n,c]),[ue,F,I]=X(n.stores.location,P,Ve),L=I?o(i,{})??Ke:Ge,R=I?Ge:o(a,{})??Ge,de=[x,L.className,R.className].filter(Boolean).join(` `),z=(b||L.style||R.style)&&{...b,...L.style,...R.style},B=K.useRef(!1),V=e.reloadDocument||F||y?!1:l??n.options.defaultPreload,H=u??n.options.defaultPreloadDelay??0,U=K.useCallback(()=>{n.preloadRoute(N).catch(e=>{console.warn(e),console.warn(ye)})},[n,N]),W=K.useCallback(e=>{if(!e){Q(r);return}if(!(e.isIntersecting??V===`intent`)){e.isIntersecting===!1&&Q(r);return}if(!H){U();return}Z.has(r)||Z.set(r,setTimeout(()=>{Z.delete(r),U()},H))},[U,r,V,H]);Se(r,W,V!==`viewport`),K.useEffect(()=>{B.current||V===`render`&&(U(),B.current=!0)},[U,V]);let fe=e=>{let t=e.currentTarget.getAttribute(`target`),r=v===void 0?t:v;!y&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0&&(e.preventDefault(),n.navigate({...N,replace:p,resetScroll:h,hashScrollIntoView:f,startTransition:m,viewTransition:g,ignoreBlocker:ee}))};if(F)return{...oe,ref:r,href:F,..._&&{children:_},...v&&{target:v},...y&&{disabled:y},...b&&{style:b},...x&&{className:x},...S&&{onClick:S},...C&&{onBlur:C},...w&&{onFocus:w},...T&&{onMouseEnter:T},...E&&{onMouseLeave:E},...D&&{onTouchStart:D}};let G=()=>{V===`intent`&&U()},pe=()=>{V===`intent`&&Q(r)};return{...oe,...L,...R,href:ue,ref:r,onClick:$([S,fe]),onBlur:$([C,pe]),onFocus:$([w,W]),onMouseEnter:$([T,W]),onMouseLeave:$([E,pe]),onTouchStart:$([D,G]),disabled:!!y,target:v,...z&&{style:z},...de&&{className:de},...y&&qe,...I&&Je}}var Ge={},Ke={className:`active`},qe={role:`link`,"aria-disabled":!0},Je={"data-status":`active`,"aria-current":`page`},Z=new WeakMap,Q=e=>{clearTimeout(Z.get(e)),Z.delete(e)},$=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function Ye(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function Xe(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var Ze=K.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=We(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return K.createElement(`a`,t,o)}return K.createElement(n,a,o)});function Qe(e){let t=Y();return X(t.stores.location,Fe(e,t))}function $e(e){let[t=``,n]=(e??``).split(`#`),[r=``,i]=t.split(`?`),a={pathname:r||`.`};return i&&(a.search=Object.fromEntries(new URLSearchParams(i))),n&&(a.hash=n),a}function et(){let e=Re(),t=Y();return(0,K.useCallback)((n,r)=>
1{if(typeof n==`number`){t.history.go(n);return}let{pathname:i,search:a,hash:o}=$e(n);e({to:i,...a===void 0?{}:{search:a},...o===void 0?{}:{hash:o},...r?.state===void 0?{}:{state:r.state},...r?.replace===void 0?{}:{replace:r.replace}})},[e,t])}function tt(){let e=Qe();return(0,K.useMemo)(()=>({pathname:e.pathname,search:e.searchStr?`?${e.searchStr}`:``,hash:e.hash??``,state:e.state??null,key:e.pathname+(e.searchStr??``)}),[e.pathname,e.searchStr,e.hash,e.state])}function nt(){return Le({strict:!1})}var rt=(0,K.forwardRef)(function({to:e,replace:t,state:n,children:r,...i},a){let{pathname:o,search:s,hash:c}=$e(e);return(0,q.jsx)(Ze,{ref:a,to:o,...s===void 0?{}:{search:s},...c===void 0?{}:{hash:c},...t===void 0?{}:{replace:t},...n===void 0?{}:{state:n},...i??{},children:r})});function it({to:e,replace:t,state:n}){let{pathname:r,search:i,hash:a}=$e(e);return(0,q.jsx)(ze,{to:r,...i===void 0?{}:{search:i},...a===void 0?{}:{hash:a},...n===void 0?{}:{state:n},...t===void 0?{}:{replace:t}})}export{N as A,C as B,U as C,ce as D,M as E,_ as F,a as H,ee as I,E as L,S as M,te as N,se as O,D as P,o as R,fe as S,F as T,d as U,v as V,f as W,xe as _,nt as a,V as b,Le as c,De as d,Y as f,be as g,J as h,et as i,O as j,oe as k,Ie as l,we as m,it as n,Ze as o,Ee as p,tt as r,Re as s,rt as t,X as u,he as v,W as w,me as x,_e as y,l as z}; 2//# sourceMappingURL=router-compat-CoyykMa1.js.map
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.