1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./react-DiVRNtpo.js";import{t as n}from"./invariant-DEEwAagU.js";import{t as r}from"./jsx-runtime-BdxMnOeJ.js";import{a as i,i as a,l as o,o as s,t as c}from"./useSelector-CZh_0VLF.js";function l(e){return e[e.length-1]}function u(e,t){return typeof e==`function`?e(t):e}var d=Object.prototype.hasOwnProperty;function f(e){for(let t in e)if(d.call(e,t))return!0;return!1}var p=()=>Object.create(null),m=(e,t)=>h(e,t,!0);function h(e,t,n,r=0){if(e===t)return e;if(r++>500)return t;let i=Array.isArray(e)&&Array.isArray(t);if(!i&&!(g(e)&&g(t)))return t;let a=Object.keys(e),o=a.length,s=Object.keys(t),c=s.length;if(i?o!==e.length||c!==t.length||o&&l(a)!==`${o-1}`||c&&l(s)!==`${c-1}`:o!==Object.getOwnPropertyNames(e).length||c!==Object.getOwnPropertyNames(t).length||Object.getOwnPropertySymbols(t).length)return t;let u=0,f,m,_;if(i){for(;u<c&&(_=u,m=e[_],f=t[_],f=m===f?m:typeof m==`object`?h(m,f,n,r):f,f===m);u++);if(u===c&&o===c)return e}else{let i=o===c,l=!0;for(;u<c;u++){_=s[u],m=e[_];let o=t[_];f=m===o?m:typeof m==`object`?h(m,o,n,r):o,i&&=f===m&&(a[u]===_||d.call(e,_)),l&&=Object.is(f,o),a[u]=f}if(i)return Object.getOwnPropertySymbols(e).length?t:e;if(l)return t}let v=i?s.fill(0):n?p():{};for(let o=0;o<c;o++)_=i?o:s[o],i?(m=e[_],o>u&&(f=t[_],f=m===f?m:typeof m==`object`?h(m,f,n,r):f),v[_]=o<u?m:f):v[_]=a[o];return v}function g(e){return!e||typeof e!=`object`?!1:(Object.getPrototypeOf(e)?.constructor??Object)===Object}function _(e,t,n,r){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,a=e.length;i<a;i++){let a=e[i],o=t[i];if(a!==o&&!_(a,o,n,r))return!1}return!0}if(g(e)&&g(t)){if(n){for(let i in t)if((r||t[i]!==void 0)&&!_(e[i],t[i],n,r))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++;for(let a in t)if((r||t[a]!==void 0)&&(i--===0||!_(e[a],t[a],n,r)))return!1;return i===0}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 ee(e){return e.replace(y,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function b(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 ee(t)}var x=[`http:`,`https:`,`mailto:`,`tel:`];function S(e){if(e[0]!==`/`&&e.includes(`:`))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(e)?.[1]?.replace(/[\t\n\r]/g,``).toLowerCase()}var C=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function w(e,t){if(!e)return!1;if(C.test(e))return!0;let n=S(e);return n?!t.has(n):!1}var te={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},T=/[&><\u2028\u2029]/g;function E(e){return e.replace(T,e=>te[e])}function D(e){if(!e)return e;let t=e;if(/[%\\\x00-\x1f\x7f]/.test(e)){let n=/%25|%5C/gi,r=0,i;for(t=``;(i=n.exec(e))!==null;)t+=b(e.slice(r,i.index))+i[0],r=n.lastIndex;t+=b(r?e.slice(r):e)}return t}function O(e){return/[\s\u0080-\uFFFF]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function k(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 A(e){return e.replace(/\/{2,}/g,`/`)}function j(e){return e===`/`?e:e.replace(/^\/+/,``)}function M(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/+$/,``):e}function N(e){return M(j(e))}function P(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function F(e,t,n=`never`,r){if(t.includes(`//`)&&(t=A(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===`.`,a;if(r){a=i?e:e+`\0`+t;let n=r.get(a);if(n)return n}let o;if(i)o=e.split(`/`);else{for(e.includes(`//`)&&(e=A(e)),o=e.split(`/`);o.length>1&&l(o)===``;)o.pop();let n=t.split(`/`);for(let e=0,t=n.length;e<t;e++){let r=n[e];r===``?e?e===t-1&&o.push(r):o=[r]:r===`..`?o.length>1?o.pop():o=[``]:r===`.`||o.push(r)}}o.length>1&&(l(o)===``?n===`never`&&o.pop():n===`always`&&o.push(``));let s=o.join(`/`),c=(i?A(s):s)||`/`;return a&&r&&r.set(a,c),c}function I(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=new RegExp([...t.keys()].join(`|`).replace(/[.*()]/g,`\\$&`),`g`);return e=>e.replace(n,e=>t.get(e)??e)}function L(e){return e==null||e===``}function R(e,t,n){if(typeof t!=`string`)return``+(t??void 0);let r=e===`_splat`;if(r&&(!t||/^[a-zA-Z0-9\-._~!/]*$/.test(t)))return t;let i=encodeURIComponent(t);return r&&(i=i.replaceAll(`%2F`,`/`)),n?n(i):i}function z(e,t,n,r,i){let a=e.endsWith(`/`)?`/`:``,o=``;for(let e of t){if(typeof e==`string`){o+=e;continue}let[t,s,c,l]=e,u=t===2,d=u&&l!==void 0?l+a:l,f=n[s];if(t!==3||f!=null){if(i&&(i[s]=f,u&&(i[`*`]=f)),u&&L(f)){if(c===`/`&&!d)continue;f=``}o+=c+R(s,f,r)+(d||``)}}return o+a||`/`}var B=`Error preloading route! âï¸`,V=e(t(),1),H=V.use,U=V.useLayoutEffect,W={};function G(e,t){let n=V.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=h(n.current,i):i}}function K(e){let t=s(),r=V.useContext(e.from?a:i),o=e.from??r,l=t.stores.getMatchStore(o),u=G(e,t),d=c(l,e=>e?u(e):W);if(d!==W)return d;(e.shouldThrow??!0)&&n()}function q(e){return K({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 J(e){let t=s();return V.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function ne(e){let t=s(),n=J(),r=V.useRef(null);return U(()=>{r.current!==e&&(n(e),r.current=e)},[t,e,n]),null}var re=r();function ie(...e){let t=V.useRef(e),n=t.current;return e.forEach((e,t)=>{_(n[t],e,!1,!0)||(n[t]=e)}),t.current}function Y(e,t){e.preloadRoute(t).catch(e=>{console.warn(e),console.warn(B)})}var ae={compare:(e,t)=>e[0]===t[0]&&e[1]===t[1]};function oe(e,t){let n=typeof e==`string`&&S(e);if(n)return t.has(n)?e:null}function se(e,t,n,r,i){let a=P(e.pathname,r),o=P(t.pathname,r);return(n?.exact?a!==o:!(a.startsWith(o)&&(a.length===o.length||a[o.length]===`/`)))||(n?.includeSearch??!0)&&!_(e.search,t.search,!n?.exact,n?.explicitUndef
1ined)?!1:!n?.includeHash||i&&e.hash===t.hash}function ce(e,t,n){let r=s(),i=V.useRef(null),a=V.useCallback(e=>{if(i.current=e,typeof t==`function`)return t(e);t&&(t.current=e)},[t]),{activeOptions:l,to:u,preload:d,preloadDelay:f,hashScrollIntoView:p,replace:m,startTransition:h,resetScroll:g,viewTransition:_,ignoreBlocker:v,disabled:y,target:ee,onClick:b,onBlur:x,onFocus:C,onMouseEnter:w,onMouseLeave:te,onTouchStart:T}=e,E=o(!!l?.includeHash),[D,O,k]=ie(e.search,e.params,l),[A,j]=V.useMemo(()=>[e,{...e}],[r,e.from,e._fromLocation,e.hash,e.to,D,O,e.state,e.mask,e.unsafeRelative]),M=V.useMemo(()=>{let e=oe(u,r.protocolAllowlist);if(e!==void 0){let t=[e??void 0];return()=>t}let t,n;return e=>{A._fromLocation||(j._fromLocation=e);let i=r.buildLocation(j),a=me(i,r,y);return(!t||t[0]!==a)&&(t=[a,!(y||a&&!S(a))&&void 0],n=[a,!0]),t[1]!==void 0&&se(e,i,k,r.basepath,E)?n:t}},[k,y,E,A,j,r,u]),[N,P]=c(r.stores.location,M,ae),F=P===void 0&&N,I=y||N===void 0,L=V.useRef(!1),R=e.reloadDocument||F||I?!1:d??r.options.defaultPreload,z=f??r.options.defaultPreloadDelay??0,B=V.useCallback(e=>{let t=e?.isIntersecting;if(!(t??R===`intent`)){t===!1&&Z(i);return}if(!z){Y(r,A);return}X.has(i)||X.set(i,setTimeout(()=>{X.delete(i),Y(r,A)},z))},[r,A,i,R,z]);V.useEffect(()=>{if(!R)return;R===`render`&&!L.current&&(L.current=!0,Y(r,A));let e=!0,t;return R===`viewport`&&i.current&&typeof IntersectionObserver==`function`&&(t=new IntersectionObserver(t=>{e&&B(t.pop())},{rootMargin:`100px`}),t.observe(i.current)),()=>{e=!1,t?.disconnect(),Z(i)}},[r,A,R,B,i]);let H=fe(e,n);if(H.ref=t?a:i,F)return H.href=F,H;let U=e=>{let t=ee??e.currentTarget.getAttribute(`target`);!I&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(!t||t===`_self`)&&e.button===0&&(e.preventDefault(),r.navigate({...A,replace:m,resetScroll:g,hashScrollIntoView:p,startTransition:h,viewTransition:_,ignoreBlocker:v}))},W=()=>{R===`intent`&&Y(r,A)},G=()=>{R===`intent`&&Z(i)};return H.onClick=Q(b,U),H.onBlur=Q(x,G),H.onFocus=Q(C,B),H.onMouseEnter=Q(w,B),H.onMouseLeave=Q(te,G),H.onTouchStart=Q(T,W),pe(H,e,P,N,I,n)}var le={},ue={className:`active`},de=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`_fromLocation`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function fe(e,t){let n={};for(let r in e)de.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function pe(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:d}=t,f=u(n?o:s,{})??(n?ue:le);Object.assign(e,f),e.href=r,a!==`a`&&(e.disabled=i),e.target=d;let p=f.style;(l||p)&&(e.style=l&&p?{...l,...p}:l||p);let m=f.className;return(c||m)&&(e.className=c?m?`${c} ${m}`:c:m),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}var X=new WeakMap,Z=e=>{clearTimeout(X.get(e)),X.delete(e)},Q=(e,t)=>e?n=>n.defaultPrevented||(e(n),n.defaultPrevented||t(n)):t;function me(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!((r.external||i!==r.publicHref)&&w(i,t.protocolAllowlist)))return i}var he=V.memo(V.forwardRef((e,t)=>{let n=e._asChild||`a`,r=ce(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return V.createElement(n,r,i)}),ge);function ge(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!de.has(r)||!_(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}function _e(e){let t=s();return c(t.stores.location,G(e,t))}function $(e){if(typeof e==`object`){let t=(e.search??``).replace(/^\?/,``);return{pathname:e.pathname||`.`,search:t?Object.fromEntries(new URLSearchParams(t)):void 0,hash:e.hash?e.hash.replace(/^#/,``):void 0}}let[t=``,n]=(e??``).split(`#`),[r,i]=t.split(`?`);return{pathname:r||`.`,search:i?Object.fromEntries(new URLSearchParams(i)):void 0,hash:n||void 0}}function ve(){let e=J(),t=s();return(0,V.useCallback)((n,r)=>
1{if(typeof n==`number`){t.history.go(n);return}let{pathname:i,search:a,hash:o}=$(n);e({to:i,...a?{search:a}:{},...o?{hash:o}:{},...r?.state===void 0?{}:{state:r.state},...r?.replace===void 0?{}:{replace:r.replace},...r?.preventScrollReset?{resetScroll:!1}:{}})},[e,t])}function ye(){let e=_e();return(0,V.useMemo)(()=>({pathname:e.pathname,search:e.searchStr?`?${e.searchStr}`:``,hash:e.hash?`#${e.hash}`:``,state:e.state??{},key:e.pathname+(e.searchStr??``)}),[e.pathname,e.searchStr,e.hash,e.state])}function be(){return q({strict:!1})}function xe(){let e=_e(),t=J(),n=s();return[(0,V.useMemo)(()=>new URLSearchParams(e.searchStr??``),[e.searchStr]),(0,V.useCallback)((e,r)=>{let i=n.state.location,a=new URLSearchParams(i.searchStr??``),o=typeof e==`function`?e(a):e instanceof URLSearchParams?e:new URLSearchParams(e),s={};o.forEach((e,t)=>{s[t]=e}),t({to:i.pathname,search:s,resetScroll:!1,...r?.replace===void 0?{}:{replace:r.replace}})},[t,n])]}var Se=(0,V.forwardRef)(function({to:e,replace:t,state:n,preventScrollReset:r,reloadDocument:i,children:a,...o},s){let{pathname:c,search:l,hash:u}=$(e);return(0,re.jsx)(he,{ref:s,to:c,...l?{search:l}:{},...u?{hash:u}:{},...n===void 0?{}:{state:n},...t===void 0?{}:{replace:t},...r?{resetScroll:!1}:{},...o,children:a})});function Ce({to:e,replace:t,state:n}){let{pathname:r,search:i,hash:a}=$(e);return(0,re.jsx)(ne,{to:r,...i?{search:i}:{},...a?{hash:a}:{},...n===void 0?{}:{state:n},...t===void 0?{}:{replace:t}})}export{f as A,p as C,E as D,O as E,m as F,C as I,h as L,w as M,v as N,u as O,l as P,k as S,_ as T,F as _,be as a,M as b,J as c,G as d,H as f,z as g,I as h,ve as i,d as j,S as k,q as l,A as m,Ce as n,xe as o,U as p,ye as r,he as s,Se as t,K as u,N as v,D as w,x,j as y};
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.