PageSourceSearch

https://rotim.art/assets/index-BSXucXS-.js

js rotim.art collected 2026-10-10 02:09:44 UTC 133,214 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/routes-9BfRpwa4.js","assets/rolldown-runtime-CNC7AqOf.js","assets/fontawesome-Pcg3MWSB.js","assets/react-vendor-bbLDs_nY.js","assets/motion-CwXlqph6.js","assets/SectionHeader-A1o0HTIv.js","assets/SectionHeader-CGmq9_dR.css","assets/routes-BpvR3Ei7.css"])))=>i.map(i=>d[i]);
2import{a as e,t}from"./rolldown-runtime-CNC7AqOf.js";import{_ as n,d as r,f as i,g as a,h as o,o as s,s as c,u as l,v as u,y as d}from"./fontawesome-Pcg3MWSB.js";import{n as f,t as p}from"./react-vendor-bbLDs_nY.js";import{c as m,n as h,o as g,r as _,s as v,t as y}from"./motion-CwXlqph6.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var b=e(d(),1),x=b.use,S=typeof window<`u`?b.useLayoutEffect:b.useEffect;function C(e){let t=b.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function ee(e,t,n={},r={}){b.useEffect(()=>{if(!e.current||r.disabled||typeof IntersectionObserver!=`function`)return;let i=new IntersectionObserver(([e])=>{t(e)},n);return i.observe(e.current),()=>{i.disconnect()}},[t,n,r.disabled,e])}function te(e){let t=b.useRef(null);return b.useImperativeHandle(e,()=>t.current,[]),t}function w(e){return e[e.length-1]}function ne(e){return typeof e==`function`}function T(e,t){return ne(e)?e(t):e}var E=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable;function re(e){for(let t in e)if(E.call(e,t))return!0;return!1}var ie=()=>Object.create(null),ae=(e,t)=>O(e,t,ie);function O(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=le(e)&&le(i);if(!a&&!(se(e)&&se(i)))return i;let o=a?e:oe(e);if(!o)return i;let s=a?i:oe(i);if(!s)return i;let c=o.length,l=s.length,u=a?Array(l):n(),d=0;for(let t=0;t<l;t++){let o=a?t:s[t],l=e[o],f=i[o];if(l===f){u[o]=l,(a?t<c:E.call(e,o))&&d++;continue}if(l===null||f===null||typeof l!=`object`||typeof f!=`object`){u[o]=f;continue}let p=O(l,f,n,r+1);u[o]=p,p===l&&d++}return c===l&&d===c?e:u}function oe(e){let t=Object.getOwnPropertyNames(e);for(let n of t)if(!D.call(e,n))return!1;let n=Object.getOwnPropertySymbols(e);if(n.length===0)return t;let r=t;for(let t of n){if(!D.call(e,t))return!1;r.push(t)}return r}function se(e){if(!ce(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!ce(n)||!n.hasOwnProperty(`isPrototypeOf`))}function ce(e){return Object.prototype.toString.call(e)===`[object Object]`}function le(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function k(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(!k(e[r],t[r],n))return!1;return!0}if(se(e)&&se(t)){let r=n?.ignoreUndefined??!0;if(n?.partial){for(let i in t)if((!r||t[i]!==void 0)&&!k(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||!k(e[o],t[o],n)))return!1;return i===a}return!1}function ue(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});return r.status=`pending`,r.resolve=n=>{r.status=`resolved`,r.value=n,t(n),e?.(n)},r.reject=e=>{r.status=`rejected`,n(e)},r}function de(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}
2function A(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}var fe=/[\x00-\x1f\x7f"<>`{}]/g;function pe(e){return e.replace(fe,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function j(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 pe(t)}var M=[`http:`,`https:`,`mailto:`,`tel:`];function me(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}function N(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+=j(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=j(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function he(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function ge(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 P(){throw Error(`Invariant failed`)}function F(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 I=4,_e=5;function ve(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function ye(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=ve(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2<a.length&&a.charCodeAt(r+2)===36){let e=r+3,a=s;if(e<a)return n[0]=3,n[1]=t+r,n[2]=t+e,n[3]=t+a,n[4]=t+s+1,n[5]=i,n}}else if(c===36){let a=r+1,o=r+2;return o===s?(n[0]=2,n[1]=t+r,n[2]=t+a,n[3]=t+o,n[4]=t+s+1,n[5]=e.length,n):(n[0]=1,n[1]=t+r,n[2]=t+o,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 be(e,t,n,r,i,a,o){o?.(n);let s=r;{let r=n.fullPath??n.from,o=r.length,c=n.options?.caseSensitive??e,l=n.options?.params?.parse??n.options?.parseParams;for(;s<o;){let e=ye(r,s,t),o,u=s,d=e[5];switch(s=d+1,a++,e[0]){case 0:{let t=r.substring(e[2],e[3]);if(c){let e=i.static?.get(t);if(e)o=e;else{i.static??=new Map;let e=R(n.fullPath??n.from);e.parent=i,e.depth=a,o=e,i.static.set(t,e)}}else{let e=t.toLowerCase(),r=i.staticInsensitive?.get(e);if(r)o=r;else{i.staticInsensitive??=new Map;let t=R(n.fullPath??n.from);t.parent=i,t.depth=a,o=t,i.staticInsensitive.set(e,t)}}break}case 1:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.dynamic?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=Se(1,n.fullPath??n.from,f,p,m);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.optional?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=Se(3,n.fullPath??n.from,f,p,m);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),l=c&&!!(t||s),f=t?l?t:t.toLowerCase():void 0,p=s?l?s:s.toLowerCase():void 0,m=Se(2,n.fullPath??n.from,l,f,p);o=m,m.parent=i,m.depth=a,i.wildcard??=[],i.wildcard.push(m)}}i=o}if(l&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=R(n.fullPath??n.from);e.kind=_e,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let u=(n.path||!n.children)&&!n.isRoot;if(u&&r.endsWith(`/`)){let e=R(n.fullPath??n.from);e.kind=I,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=l??null,i.priority=n.options?.params?.priority??0,u&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)be(e,t,r,s,i,a,o)}function xe(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 L(e){if(e.pathless)for(let t of e.pathless)L(t);if(e.static)for(let t of e.static.values())L(t);
2if(e.staticInsensitive)for(let t of e.staticInsensitive.values())L(t);if(e.dynamic?.length){e.dynamic.sort(xe);for(let t of e.dynamic)L(t)}if(e.optional?.length){e.optional.sort(xe);for(let t of e.optional)L(t)}if(e.wildcard?.length){e.wildcard.sort(xe);for(let t of e.wildcard)L(t)}}function R(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 Se(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 z(e,t){let n=R(`/`),r=new Uint16Array(6);for(let t of e)be(!1,r,t,1,n,0);L(n),t.masksTree=n,t.flatCache=F(1e3)}function Ce(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=Oe(e,t.masksTree);return t.flatCache.set(e,r),r}function we(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=R(`/`),be(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),Oe(r,o,n)}function Te(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=Oe(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Ae(a.route)),t.matchCache.set(r,a),a}function Ee(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function De(e,t=!1,n){let r=R(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return be(t,i,e,1,r,0,e=>{if(n?.(e,s),e.id in a&&P(),a[e.id]=e,s!==0&&e.path){let t=Ee(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),L(r),{processedTree:{segmentTree:r,singleCache:F(1e3),matchCache:F(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function Oe(e,t,n=!1){let r=e.split(`/`),i=Me(e,r,t,n);if(!i)return null;let[a]=ke(e,r,i);return{route:i.node.route,rawParams:a}}function ke(e,t,n){let r=je(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===I)break;if(u.kind===_e){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??0;if(e.charCodeAt(t)===123){let n=u.suffix?.length??0,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??0,r=u.suffix?.length??0,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??0),e.length-(t.suffix?.length??0)),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 Ae(e){let t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function je(e){let t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Me(e,t,n,r){if(e===`/`&&n.index)return{node:n.index,skipped:0};let i=!w(t),a=i&&e!==`/`,o=t.length-+!!i,s=[{node:n,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}],c=null,l=null;for(;s.length;){let n=s.pop(),{node:i,index:u,skipped:d,depth:f,statics:p,dynamics:m,optionals:h}=n,{extract:g,rawParams:_}=n;if(i.kind===2&&i.route&&!Ie(l,n))continue;if(i.parse){if(!Fe(e,t,n))continue;_=n.rawParams,g=n.extract}r&&i.route&&i.kind!==I&&Ie(c,n)&&(c=n);let v=u===o;if(v&&(i.route&&(!a||i.kind===I||i.kind===2)&&Ie(l,n)&&(l=n),!i.optional&&!i.wildcard&&!i.index&&!i.pathless))continue;let y=v?void 0:t[u],b;if(v&&i.index){let n={node:i.index,index:u,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_},r=!0;if(i.index.parse&&(Fe(e,t,n)||(r=!1)),r){if(!m&&!h&&!d&&Pe(p,o))return n;Ie(l,n)&&(l=n)}}if(i.wildcard)for(let e=i.wildcard.length-1;e>=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(v||!(n.caseSensitive?y:b??=y.toLowerCase()).startsWith(r)))){if(a){if(v)continue;let e=t.slice(u).join(`/`).slice(-a.length);if((n.caseSensitive?e:e.toLowerCase())!==a)continue}s.push({node:n,index:o,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}if(i.optional){let e=d|1<<f,t=f+1;for(let n=i.optional.length-1;n>=0;n--){let r=i.optional[n];s.push({node:r,index:u,skipped:e,depth:t,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v)for(let e=i.optional.length-1;e>=0;e--){let n=i.optional[e],{prefix:r,suffix:a}=n;if(r||a){let e=n.caseSensitive?y:b??=y.toLowerCase();if(r&&!e.startsWith(r)||a&&!e.endsWith(a))continue}s.push({node:n,index:u+1,skipped:d,depth:t,statics:p,dynamics:m,optionals:h+Ne(o,u),extract:g,rawParams:_})}}if(!v&&i.dynamic&&y)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?y:b??=y.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,depth:f+1,statics:p,dynamics:m+Ne(o,u),optionals:h,extract:g,rawParams:_})}if(!v&&i.staticInsensitive){let e=i.staticInsensitive.get(b??=y.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+Ne(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v&&i.static){let e=i.static.get(y);e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+Ne(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(i.pathless){let e=f+1;for(let t=i.pathless.length-1;t>=0;t--){let n=i.pathless[t];s.push({node:n,index:u,skipped:d,depth:e,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;e<c.index;e++)n+=t[e].length;let r=n===e.length?`/`:e.slice(n);return c.rawParams??=Object.create(null),c.rawParams[`**`]=decodeURIComponent(r),c}return null}function Ne(e,t){return 2**(e-t-1)}function Pe(e,t){return e===2**(t-1)-1}function Fe(e,t,n){let r,i;try{[r,i]=ke(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 Ie(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===I)>(e.node.kind===I)||t.node.kind===I==(e.node.kind===I)&&t.depth>e.depth)))}function Le(e){return Re(e.filter(e=>e!==void 0).join(`/`))}function Re(e){return e.replace(/\/{2,}/g,`/`)}function ze(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function B(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function Be(e){return B(ze(e))}function Ve(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function He(e,t,n){return Ve(e,n)===Ve(t,n)}
2function Ue({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t.startsWith(`/`),a=!i&&t===`.`,o;if(r){o=i?t:a?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else if(i)s=t.split(`/`);else{for(s=e.split(`/`);s.length>1&&w(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.pop():r===`.`||s.push(r)}}s.length>1&&(w(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=Re(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function We(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=>qe(e,n)).join(`/`):qe(r,n):r}function Ke({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=ye(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 qe(e,t){let n=encodeURIComponent(e);return t?.(n)??n}function V(e){return e?.isNotFound===!0}function Je(){try{return sessionStorage}catch{return}}var Ye=`tsr-scroll-restoration-v1_3`,Xe=Je();function Ze(){try{return JSON.parse(Xe?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function Qe(){try{Xe?.setItem(Ye,JSON.stringify($e))}catch{}}var $e=Ze(),et=`data-scroll-restoration-id`,tt=e=>e.state.__TSR_key||e.href;function nt(e){let t=e.getAttribute(et);if(t)return`[${et}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var rt=!1,it=`window`;function at(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function ot(e){let t=new Set;for(let n of e){if(n===it)continue;let e=at(n);e&&t.add(e)}return t}function st(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||tt,a=new Set,o=e=>{let t=$e[e]||={};for(let e of a)e===document?t[it]={scrollX,scrollY}:e.isConnected&&(t[nt(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.restoration&&(r.restoration=!0,rt=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{rt||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{o(i(e.stores.resolvedLocation.get()??e.stores.location.get())),Qe()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c=r.hash,l;if(a.clear(),r.next=!0,r.hash=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.restoring&&d&&d!==u){let e=$e[d];if(e){let t=$e[u];for(let n in e){if(n===it){if(s)continue}else{let e=at(n);if(!e||s&&o&&(l??=ot(o),l.has(e)))continue}t||=$e[u]={},t[n]??=e[n]}}}rt=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=ot(o));let t=e&&i&&c,s=r.restoring?$e[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===it){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=at(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{rt=!1}}
2))}function ct(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function lt(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function ut(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=lt(r):Array.isArray(t)?t.push(lt(r)):n[e]=[t,lt(r)]}return n}var dt=pt(JSON.parse),ft=mt(JSON.stringify,JSON.parse);function pt(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=ut(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function mt(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=ct(e,r);return t?`?${t}`:``}}var ht=`__root__`;function gt(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function H(e){return e instanceof Response&&!!e.options}function _t(e){return{input:({url:t})=>{for(let n of e)t=yt(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=bt(e[n],t);return t}}}function vt(e){let t=Be(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=Le([`/`,t,e.pathname]),e)}}function yt(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function bt(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function xt(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>St(o,_.get())),x=r(()=>St(s,v.get())),S=r(()=>St(c,y.get())),C=r(()=>_.get()[0]),ee=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),te=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),w=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),ne=F(64);function T(e){let t=ne.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),ne.set(e,t)),t}let E={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:ee,matchRouteDeps:te,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:w,getRouteMatchStore:T,setMatches:D,setPending:re,setCached:ie};D(e.matches),a?.(E);function D(e){Ct(e,o,_,n,i)}function re(e){Ct(e,s,v,n,i)}function ie(e){Ct(e,c,y,n,i)}return E}function St(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function Ct(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}ge(n.get(),a)||n.set(a)})}var wt=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},Tt=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Et=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),U=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);
2i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},Dt=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},W=(e,t,n)=>{if(!(!H(n)&&!V(n)))throw H(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:H(n)?`redirected`:V(n)?`notFound`:r.status===`pending`?`success`:r.status,context:U(e,t.index),isFetching:!1,error:n})),V(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),H(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},Ot=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},kt=(e,t,n)=>{let r=U(e,n);e.updateMatch(t,e=>({...e,context:r}))},At=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,W(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,W(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!H(n)&&!V(n)&&(e.serialError??=n)},jt=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Et(e,t)&&(n.options.loader||n.options.beforeLoad||Ht(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{wt(e)},i);r._nonReactive.pendingTimeout=t}},Mt=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;jt(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&W(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Nt=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=ue(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&At(e,n,o),s&&At(e,n,s),jt(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=ue();let f={...U(e,n,!1),...i.__routeContext},{search:p,params:m,cause:h}=i,g=Et(e,t),_={search:p,abortController:c,params:m,preload:g,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:g?`preload`:h,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},v=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(H(r)||V(r))&&(u(),At(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},y;try{if(y=r.options.beforeLoad(_),A(y))return u(),y.catch(t=>{At(e,n,t)}).then(v)}catch(t){u(),At(e,n,t)}v(y)},Pt=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>Nt(e,n,t,i),s=()=>{if(Ot(e,n))return;let t=Mt(e,n,i);return A(t)?t.then(o):o()};return a()},Ft=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},It=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=U(e,r),d=Et(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},Lt=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{Vt(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(It(e,t,n,r,i)),l=!!s&&A(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;W(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:U(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>
2({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:U(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,V(t)&&await i.options.notFoundComponent?.preload?.(),W(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,W(e,e.router.getMatch(n),t)}!H(o)&&!V(o)&&await Vt(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:U(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),W(e,r,t)}},Rt=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(It(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await Lt(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){H(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await Lt(e,t,i,n,d):kt(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(Ot(e,i)){if(!e.router.getMatch(i))return e.matches[n];kt(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=Et(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&W(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=ue(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function zt(e){let t=e,n=[];Tt(t.router)&&wt(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=Pt(t,e);A(n)&&await n}catch(e){if(H(e))throw e;if(V(e))r=e;else if(!t.preload)throw e;break}if(t.serialError||t.firstBadMatchIndex!=null)break}let i=t.firstBadMatchIndex??t.matches.length,a=r&&!t.preload?Dt(t,r):void 0,o=r&&t.preload?0:a===void 0?i:Math.min(a+1,i),s,c;for(let e=0;e<o;e++)n.push(Rt(t,n,e));try{await Promise.all(n)}catch{let e=await Promise.allSettled(n);for(let t of e){if(t.status!==`rejected`)continue;let e=t.reason;if(H(e))throw e;V(e)?s??=e:c??=e}if(c!==void 0)throw c}let l=s??(r&&!t.preload?r:void 0),u=t.firstBadMatchIndex===void 0?t.matches.length-1:t.firstBadMatchIndex;if(!l&&r&&t.preload)return t.matches;if(l){let e=Dt(t,l);e===void 0&&P();let n=t.matches[e],r=t.router.looseRoutesById[n.routeId],i=t.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&i&&(r.options.notFoundComponent=i),l.routeId=n.routeId;let a=n.routeId===t.router.routeTree.id;t.updateMatch(n.id,e=>({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await Vt(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await Vt(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=Ft(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=wt(t);if(A(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function Bt(e,t){let n=t.map(t=>
2e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function Vt(e,t=Ut){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===Ut?(()=>{if(e._componentsPromise===void 0){let t=Bt(e,Ut);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():Bt(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function Ht(e){for(let t of Ut)if(e.options[t]?.preload)return!0;return!1}var Ut=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`],G=`__TSR_index`,Wt=`popstate`,Gt=`beforeunload`;function Kt(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=Xt(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[G];i=qt(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[G];i=qt(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[G]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function qt(e,t){t||={};let n=Zt();return{...t,key:n,__TSR_key:n,[G]:e}}function Jt(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>Xt(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=Zt();t.history.replaceState({[G]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=Xt(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[G]-l.state[G],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=Kt({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(Gt,S,{capture:!0}),t.removeEventListener(Wt,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(Gt,S,{capture:!0}),t.addEventListener(Wt,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function Yt(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function Xt(e,t){let n=Yt(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=Zt();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[G]:0,key:a,__TSR_key:a}}}function Zt(){return(Math.random()+1).toString(36).substring(7)}function Qt(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var $t=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=We(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Jt()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=F(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=xt(nn(this.latestLocation),e),st(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=Be(o);t&&t!==`/`&&e.push(vt({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:_t(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=De(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&z(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>
2{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:N(e).path,external:!1,searchStr:o,search:ae(t?.search,i),hash:N(r.slice(1)).path,state:O(t?.state,a)}}let o=new URL(i,this.origin),s=yt(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:N(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:ae(t?.search,c),hash:N(s.hash.slice(1)).path,state:O(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>Ue({base:e,to:t.includes(`//`)?Re(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>an({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,s=Object.assign(Object.create(null),r.params),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,u=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?s:Object.assign(s,T(t.params,s)),d=this.routesByPath[B(l)],f;if(d)f=this.getRouteBranch(d);else if(l.includes(`$`))f=[];else{let e=this.getMatchedRoutes(l);f=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(f=[...f,this.options.notFoundRoute])}if(f.length&&re(u))for(let e of f){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(u,t(u))}catch{}}let p=e.leaveParams?l:N(Ke({path:l,params:u,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,m=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};f.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,rn(t.options.validateSearch,{...e,...m}))}catch{}}),m=e}m=on({search:m,dest:t,destRoutes:f,_includeValidateSearch:e._includeValidateSearch}),m=ae(o,m);let h=this.options.stringifySearch(m),g=t.hash===!0?n.hash:t.hash?T(t.hash,n.hash):void 0,_=g?`#${g}`:``,v=t.state===!0?n.state:t.state?T(t.state,n.state):{};v=O(n.state,v);let y=`${p}${h}${_}`,b,x,S=!1;if(this.rewrite){let e=new URL(y,this.origin),t=bt(this.rewrite,e);b=e.href.replace(e.origin,``),t.origin===this.origin?x=t.pathname+t.search+t.hash:(x=t.href,S=!0)}else b=he(y),x=b;return{publicHref:x,href:b,pathname:p,search:m,searchStr:h,state:v,hash:g??``,external:S,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=Ce(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,T(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];
2e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=k(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=B(this.latestLocation.href)===B(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=ue(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=Xt(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=yt(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(me(t,this.protocolAllowlist))return;if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return}i.replace?window.location.replace(t):window.location.href=t;return}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t&&(this._scroll.hash=t===`PUSH`||t===`REPLACE`);let n=this.latestLocation,r=Qt(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await zt({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){H(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):V(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(Qt(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>
2{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&me(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`||e-t.updatedAt>=r}})},this.loadRouteChunk=Vt,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await zt({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(H(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});V(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=we(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!k(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?k(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??ft,parseSearch:e.parseSearch??dt,protocolAllowlist:e.protocolAllowlist??M}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=Ae(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParam
2s:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:B(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?cn(this.options.notFoundMode,a):void 0,c=Array(a.length),l=new Map;for(let e of this.stores.matchStores.values())e.routeId&&l.set(e.routeId,e.get());for(let n=0;n<a.length;n++){let r=a[n],o=c[n-1],u,d,f;{let n=o?.search??e.search,i=o?._strictSearch??void 0;try{let e=rn(r.options.validateSearch,{...n})??void 0;u={...n,...e},d={...i,...e},f=void 0}catch(e){let r=e;if(e instanceof en||(r=new en(e.message,{cause:e})),t?.throwOnError)throw r;u=n,d={},f=r}}let p=r.options.loaderDeps?.({search:u})??``,m=p?JSON.stringify(p):``,{interpolatedPath:h,usedParams:g}=Ke({path:r.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),_=r.id+h+m,v=this.getMatch(_),y=l.get(r.id),b=v?._strictParams??g,x;if(!v)try{ln(r,b)}catch(e){if(x=V(e)||H(e)?e:new tn(e.message,{cause:e}),t?.throwOnError)throw x}Object.assign(i,b);let S=y?`stay`:`enter`,C;if(v)C={...v,cause:S,params:y?.params??i,_strictParams:b,search:ae(y?y.search:v.search,u),_strictSearch:d};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||Ht(r)?`pending`:`success`;C={id:_,ssr:r.options.ssr,index:n,routeId:r.id,params:y?.params??i,_strictParams:b,pathname:h,updatedAt:Date.now(),search:y?ae(y.search,u):u,_strictSearch:d,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:x,__routeContext:void 0,_nonReactive:{loadPromise:ue()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:S,loaderDeps:y?O(y.loaderDeps,p):p,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:r.options.staticData||{},fullPath:r.fullPath}}t?.preload||(C.globalNotFound=s===r.id),C.searchError=f;let ee=this.getParentContext(o);C.context={...ee,...C.__routeContext,...C.__beforeLoadContext},c[n]=C}for(let t=0;t<c.length;t++){let n=c[t],r=this.looseRoutesById[n.routeId],a=this.getMatch(n.id),o=l.get(n.routeId);if(n.params=o?ae(o.params,i):i,!a){let i=c[t-1],a=this.getParentContext(i);if(r.options.context){let t={deps:n.loaderDeps,params:n.params,context:a??{},location:e,navigate:t=>this.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:c,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return c}matchRoutesLightweight(e){let t=w(this.stores.matchesId.get()),n=this.lightweightCache.get(e);if(n&&n[0]===t)return n[1];let{matchedRoutes:r,routeParams:i}=this.getMatchedRoutes(e.pathname),a=w(r),o={...e.search};for(let e of r)try{Object.assign(o,rn(e.options.validateSearch,o))}catch{}let s=t&&this.stores.matchStores.get(t)?.get(),c=s&&s.routeId===a.id&&s.pathname===e.pathname,l;if(c)l=s.params;else{let e=Object.assign(Object.create(null),i);for(let t of r)try{ln(t,e)}catch{}l=e}let u={matchedRoutes:r,fullPath:a.fullPath,search:o,params:l};return this.lightweightCache.set(e,[t,u]),u}},en=class extends Error{},tn=class extends Error{};function nn(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function rn(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new en(`Async validation not supported`);if(n.issues)throw new en(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function an({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=B(e),a,o=Te(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function on({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return sn(n)(e,t,r??!1)}function sn(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>
2t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=rn(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=T(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function cn(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return ht}function ln(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}var un=`Error preloading route! ☝️`,dn=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=ht:this.parentRoute||P();let r=n?ht:t?.path;r&&r!==`/`&&(r=ze(r));let i=t?.id||r,a=n?ht:Le([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=Le([`/`,a]));let o=a===`__root__`?`/`:Le([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=B(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>gt({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},fn=class extends dn{constructor(e){super(e)}},K=u();function pn(e){let t=e.errorComponent??hn;return(0,K.jsx)(mn,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?b.createElement(t,{error:n,reset:r}):e.children})}var mn=class extends b.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function hn({error:e}){let[t,n]=b.useState(!1);return(0,K.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,K.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,K.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,K.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,K.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,K.jsx)(`div`,{children:(0,K.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,K.jsx)(`code`,{children:e.message}):null})}):null]})}function gn({children:e,fallback:t=null}){return _n()?(0,K.jsx)(b.Fragment,{children:e}):(0,K.jsx)(b.Fragment,{children:t})}function _n(){return b.useSyncExternalStore(vn,()=>!0,()=>!1)}function vn(){return()=>{}}var yn=b.createContext(null);function q(e){return b.useContext(yn)}var bn=b.createContext(void 0),xn=b.createContext(void 0),J=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(J||{});function Sn({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;
2if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function Cn(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var wn=[],Tn=0,{link:En,unlink:Dn,propagate:On,checkDirty:kn,shallowPropagate:An}=Sn({update(e){return e._update()},notify(e){wn[Mn++]=e,e.flags&=~J.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=J.Mutable|J.Dirty,Fn(e))}}),jn=0,Mn=0,Y,Nn=0;function Pn(e){try{++Nn,e()}finally{--Nn||In()}}function Fn(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Dn(n,e)}function In(){if(!(Nn>0)){for(;jn<Mn;){let e=wn[jn];wn[jn++]=void 0,e.notify()}jn=0,Mn=0}}function Ln(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?J.None:J.Mutable,get(){return Y!==void 0&&En(i,Y,Tn),i._snapshot},subscribe(e){let t=Cn(e),n={current:!1},r=Rn(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Y,o=t?.compare??Object.is;if(n)Y=i,++Tn,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=J.Mutable|J.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Y=a,n&&(i.flags&=~J.RecursedCheck),Fn(i)}}};return n?(i.flags=J.Mutable|J.Dirty,i.get=function(){let e=i.flags;if(e&J.Dirty||e&J.Pending&&kn(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&An(e)}}else e&J.Pending&&(i.flags=e&~J.Pending);return Y!==void 0&&En(i,Y,Tn),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(On(e),An(e),In())}},i}function Rn(e){let t=()=>{let t=Y;Y=n,++Tn,n.depsTail=void 0,n.flags=J.Watching|J.RecursedCheck;try{return e()}finally{Y=t,n.flags&=~J.RecursedCheck,Fn(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:J.Watching|J.RecursedCheck,notify(){let e=this.flags;e&J.Dirty||e&J.Pending&&kn(this.deps,this)?t():this.flags=J.Watching},stop(){this.flags=J.None,this.depsTail=void 0,Fn(this)}};return t(),n}var zn=t((e=>{var t=d();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Bn=t(((e,t)=>{t.exports=zn()})),Vn=t((e=>{var t=d(),n=Bn();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),Hn=t(((e,t)=>{t.exports=Vn()}))();function Un(e,t){return e===t}function X(e,t,n=Un){let r=(0,b.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),i=(0,b.useCallback)(()=>e?.get(),[e]);return(0,Hn.useSyncExternalStoreWithSelector)(r,i,i,t,n)}var Wn={get(){},subscribe(){return{unsubscribe(){}}}};function Gn(e,t){let n=b.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=O(n.current,i):i}}function Z(e){let t=q(),n=b.useContext(e.from?xn:bn),r=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),i=Gn(e,t),a=X(r??Wn,e=>e?i(e):Wn);if(a!==Wn)return a;(e.shouldThrow??!0)&&P()}function Kn(e){return Z({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function qn(e){let{select:t,...n}=e;return Z({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function Jn(e){return Z({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 Yn(e){return Z({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function Xn(e){let t=q();return b.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function Zn(e){return Z({...e,select:t=>e.select?e.select(t.context):t.context})}var Qn=f();function $n(e,t){let n=q(),r=te(t),{activeProps:i,inactiveProps:a,activeOptions:o,to:s,preload:c,preloadDelay:l,preloadIntentProximity:u,hashScrollIntoView:d,replace:f,startTransition:p,resetScroll:m,viewTransition:h,children:g,target:_,disabled:v,style:y,className:x,onClick:S,onBlur:C,onFocus:w,onMouseEnter:ne,onMouseLeave:E,onTouchStart:D,ignoreBlocker:re,params:ie,search:ae,hash:O,state:oe,mask:se,reloadDocument:ce,unsafeRelative:le,from:ue,_fromLocation:de,...A}=e,fe=_n(),pe=b.useMemo(()=>e,[n,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),j=X(n.stores.location,e=>e,(e,t)=>e.href===t.href),M=b.useMemo(()=>{let e={_fromLocation:j,...pe};return n.buildLocation(e)},[n,j,pe]),N=M.maskedLocation?M.maskedLocation.publicHref:M.publicHref,he=M.maskedLocation?M.maskedLocation.external:M.external,ge=b.useMemo(()=>cr(N,he,n.history,v),[v,he,N,n.history]),P=b.useMemo(()=>
2{if(ge?.external)return me(ge.href,n.protocolAllowlist)?void 0:ge.href;if(!lr(s)&&!(typeof s!=`string`||s.indexOf(`:`)===-1))try{return new URL(s),me(s,n.protocolAllowlist)?void 0:s}catch{}},[s,ge,n.protocolAllowlist]),F=b.useMemo(()=>{if(P)return!1;if(o?.exact){if(!He(j.pathname,M.pathname,n.basepath))return!1}else{let e=Ve(j.pathname,n.basepath),t=Ve(M.pathname,n.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(o?.includeSearch??!0)&&!k(j.search,M.search,{partial:!o?.exact,ignoreUndefined:!o?.explicitUndefined})?!1:!o?.includeHash||fe&&j.hash===M.hash},[o?.exact,o?.explicitUndefined,o?.includeHash,o?.includeSearch,j,P,fe,M.hash,M.pathname,M.search,n.basepath]),I=F?T(i,{})??tr:er,_e=F?er:T(a,{})??er,ve=[x,I.className,_e.className].filter(Boolean).join(` `),ye=(y||I.style||_e.style)&&{...y,...I.style,..._e.style},[be,xe]=b.useState(!1),L=b.useRef(!1),R=e.reloadDocument||P?!1:c??n.options.defaultPreload,Se=l??n.options.defaultPreloadDelay??0,z=b.useCallback(()=>{n.preloadRoute({...pe,_builtLocation:M}).catch(e=>{console.warn(e),console.warn(un)})},[n,pe,M]);ee(r,b.useCallback(e=>{e?.isIntersecting&&z()},[z]),or,{disabled:!!v||R!==`viewport`}),b.useEffect(()=>{L.current||!v&&R===`render`&&(z(),L.current=!0)},[v,z,R]);let Ce=e=>{let t=e.currentTarget.getAttribute(`target`),r=_===void 0?t:_;if(!v&&!dr(e)&&!e.defaultPrevented&&(!r||r===`_self`)&&e.button===0){e.preventDefault(),(0,Qn.flushSync)(()=>{xe(!0)});let t=n.subscribe(`onResolved`,()=>{t(),xe(!1)});n.navigate({...pe,replace:f,resetScroll:m,hashScrollIntoView:d,startTransition:p,viewTransition:h,ignoreBlocker:re})}};if(P)return{...A,ref:r,href:P,...g&&{children:g},..._&&{target:_},...v&&{disabled:v},...y&&{style:y},...x&&{className:x},...S&&{onClick:S},...C&&{onBlur:C},...w&&{onFocus:w},...ne&&{onMouseEnter:ne},...E&&{onMouseLeave:E},...D&&{onTouchStart:D}};let we=e=>{if(v||R!==`intent`)return;if(!Se){z();return}let t=e.currentTarget;if(ar.has(t))return;let n=setTimeout(()=>{ar.delete(t),z()},Se);ar.set(t,n)},Te=e=>{v||R!==`intent`||z()},Ee=e=>{if(v||!R||!Se)return;let t=e.currentTarget,n=ar.get(t);n&&(clearTimeout(n),ar.delete(t))};return{...A,...I,..._e,href:ge?.href,ref:r,onClick:sr([S,Ce]),onBlur:sr([C,Ee]),onFocus:sr([w,we]),onMouseEnter:sr([ne,we]),onMouseLeave:sr([E,Ee]),onTouchStart:sr([D,Te]),disabled:!!v,target:_,...ye&&{style:ye},...ve&&{className:ve},...v&&nr,...F&&rr,...fe&&be&&ir}}var er={},tr={className:`active`},nr={role:`link`,"aria-disabled":!0},rr={"data-status":`active`,"aria-current":`page`},ir={"data-transitioning":`transitioning`},ar=new WeakMap,or={rootMargin:`100px`},sr=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function cr(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function lr(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var ur=b.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=$n(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return b.createElement(`a`,t,o)}return b.createElement(n,a,o)});function dr(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var fr=class extends dn{constructor(e){super(e),this.useMatch=e=>Z({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Zn({...e,from:this.id}),this.useSearch=e=>Yn({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Jn({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>qn({...e,from:this.id}),this.useLoaderData=e=>Kn({...e,from:this.id}),this.useNavigate=()=>Xn({from:this.fullPath}),this.Link=b.forwardRef((e,t)=>(0,K.jsx)(ur,{ref:t,from:this.fullPath,...e}))}};function pr(e){return new fr(e)}var mr=class extends fn{constructor(e){super(e),this.useMatch=e=>Z({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>Zn({...e,from:this.id}),this.useSearch=e=>Yn({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>Jn({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>qn({...e,from:this.id}),this.useLoaderData=e=>Kn({...e,from:this.id}),this.useNavigate=()=>Xn({from:this.fullPath}),this.Link=b.forwardRef((e,t)=>
2(0,K.jsx)(ur,{ref:t,from:this.fullPath,...e}))}};function hr(e){return new mr(e)}function gr(e){return new _r(e,{silent:!0}).createRoute}var _r=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=pr(e);return t.isRoot=!1,t},this.silent=t?.silent}};function vr(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,de(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(x)x(o());else throw o();return b.createElement(r,e)};return s.preload=o,s}function yr(e){let t=q(),n=`not-found-${X(t.stores.location,e=>e.pathname)}-${X(t.stores.status,e=>e)}`;return(0,K.jsx)(pn,{getResetKey:()=>n,onCatch:(t,n)=>{if(V(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(V(t))return e.fallback?.(t);throw t},children:e.children})}function br(){return(0,K.jsx)(`p`,{children:`Not Found`})}function xr(e){return(0,K.jsx)(K.Fragment,{children:e.children})}function Sr(e,t,n){return t.options.notFoundComponent?(0,K.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,K.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,K.jsx)(br,{})}var Cr=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,wr=(e,t)=>e[0]===t[0]&&e[1]===t[1],Tr=b.memo(function({matchId:e}){let t=q(),n=t.stores.matchStores.get(e);n||P();let r=X(t.stores.loadedAt,e=>e),i=X(n,e=>e,Cr);return(0,K.jsx)(Er,{router:t,matchId:e,resetKey:r,matchState:b.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function Er({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,K.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?b.Suspense:xr,f=s?pn:xr,p=l?yr:xr;return(0,K.jsxs)(i.isRoot?i.options.shellComponent??xr:xr,{children:[(0,K.jsx)(bn.Provider,{value:t,children:(0,K.jsx)(d,{fallback:o,children:(0,K.jsx)(f,{getResetKey:()=>n,errorComponent:s||hn,onCatch:(e,t)=>{if(V(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,K.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return b.createElement(l,e)},children:u||r._displayPending?(0,K.jsx)(gn,{fallback:o,children:(0,K.jsx)(Or,{matchId:t})}):(0,K.jsx)(Or,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Dr,{}),(e.options.scrollRestoration,null)]}):null]})}function Dr(){let e=q(),t=b.useRef();return S(()=>{let n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:`onRendered`,...Qt(e.stores.location.get(),r??n)}),t.current=n},[X(e.stores.resolvedLocation,e=>e?.state.__TSR_key),e]),null}var Or=b.memo(function({matchId:e}){let t=q(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||P();let i=X(r,e=>e),a=i.routeId,o=t.routesById[a],s=b.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=b.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,K.jsx)(e,{},s):(0,K.jsx)(kr,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);
2if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=ue();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return V(i.error)||P(),Sr(t,o,i.error);if(i.status===`redirected`)throw H(i.error)||P(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),kr=b.memo(function(){let e=q(),t=b.useContext(bn),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=X(a,e=>[e?.routeId,e?.globalNotFound??!1],wr),i=X(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,K.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||P(),Sr(e,a,void 0);if(!i)return null;let s=(0,K.jsx)(Tr,{matchId:i});return n===`__root__`?(0,K.jsx)(b.Suspense,{fallback:o,children:s}):s});function Ar(){let e=q(),t=b.useRef({router:e,mounted:!1}),[n,r]=b.useState(!1),i=X(e.stores.isLoading,e=>e),a=X(e.stores.hasPending,e=>e),o=C(i),s=i||n||a,c=C(s),l=i||a,u=C(l);return e.startTransition=e=>{r(!0),b.startTransition(()=>{e(),r(!1)})},b.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return B(e.latestLocation.publicHref)!==B(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),S(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),S(()=>{o&&!i&&e.emit({type:`onLoad`,...Qt(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),S(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...Qt(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),S(()=>{if(c&&!s){let t=Qt(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),Pn(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function jr(){let e=q(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,K.jsx)(t,{}):null,r=(0,K.jsxs)(typeof document<`u`&&e.ssr?xr:b.Suspense,{fallback:n,children:[(0,K.jsx)(Ar,{}),(0,K.jsx)(Mr,{})]});return e.options.InnerWrap?(0,K.jsx)(e.options.InnerWrap,{children:r}):r}function Mr(){let e=q(),t=X(e.stores.firstId,e=>e),n=X(e.stores.loadedAt,e=>e),r=t?(0,K.jsx)(Tr,{matchId:t}):null;return(0,K.jsx)(bn.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,K.jsx)(pn,{getResetKey:()=>n,errorComponent:hn,onCatch:void 0,children:r})})}var Nr=e=>({createMutableStore:Ln,createReadonlyStore:Ln,batch:Pn}),Pr=e=>new Fr(e),Fr=class extends $t{constructor(e){super(e,Nr)}};function Ir({router:e,children:t,...n}
2){re(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,K.jsx)(yn.Provider,{value:e,children:t});return e.options.Wrap?(0,K.jsx)(e.options.Wrap,{children:r}):r}function Lr({router:e,...t}){return(0,K.jsx)(Ir,{router:e,...t,children:(0,K.jsx)(jr,{})})}function Rr(e){let t=q({warn:e?.router===void 0}),n=e?.router||t;return X(n.stores.__store,Gn(e,n))}var zr=e(p(),1),Br=`1.3.25`;function Vr(e,t,n){return Math.max(e,Math.min(t,n))}function Hr(e,t,n){return(1-n)*e+n*t}function Ur(e,t,n,r){return Hr(e,t,1-Math.exp(-n*r))}function Wr(e,t){return(e%t+t)%t}var Gr=class{isRunning=!1;value=0;from=0;to=0;currentTime=0;lerp;duration;easing;onUpdate;advance(e){if(!this.isRunning)return;let t=!1;if(this.duration&&this.easing){this.currentTime+=e;let n=Vr(0,this.currentTime/this.duration,1);t=n>=1;let r=t?1:this.easing(n);this.value=this.from+(this.to-this.from)*r}else this.lerp?(this.value=Ur(this.value,this.to,this.lerp*60,e),Math.round(this.value)===Math.round(this.to)&&(this.value=this.to,t=!0)):(this.value=this.to,t=!0);t&&this.stop(),this.onUpdate?.(this.value,t)}stop(){this.isRunning=!1}fromTo(e,t,{lerp:n,duration:r,easing:i,onStart:a,onUpdate:o}){this.from=this.value=e,this.to=t,this.lerp=n,this.duration=r,this.easing=i,this.currentTime=0,this.isRunning=!0,a?.(),this.onUpdate=o}};function Kr(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>{n=void 0,e.apply(this,r)},t)}}var qr=class{width=0;height=0;scrollHeight=0;scrollWidth=0;debouncedResize;wrapperResizeObserver;contentResizeObserver;constructor(e,t,{autoResize:n=!0,debounce:r=250}={}){this.wrapper=e,this.content=t,n&&(this.debouncedResize=Kr(this.resize,r),this.wrapper instanceof Window?window.addEventListener(`resize`,this.debouncedResize):(this.wrapperResizeObserver=new ResizeObserver(this.debouncedResize),this.wrapperResizeObserver.observe(this.wrapper)),this.contentResizeObserver=new ResizeObserver(this.debouncedResize),this.contentResizeObserver.observe(this.content)),this.resize()}destroy(){this.wrapperResizeObserver?.disconnect(),this.contentResizeObserver?.disconnect(),this.wrapper===window&&this.debouncedResize&&window.removeEventListener(`resize`,this.debouncedResize)}resize=()=>{this.onWrapperResize(),this.onContentResize()};onWrapperResize=()=>{this.wrapper instanceof Window?(this.width=window.innerWidth,this.height=window.innerHeight):(this.width=this.wrapper.clientWidth,this.height=this.wrapper.clientHeight)};onContentResize=()=>{this.wrapper instanceof Window?(this.scrollHeight=this.content.scrollHeight,this.scrollWidth=this.content.scrollWidth):(this.scrollHeight=this.wrapper.scrollHeight,this.scrollWidth=this.wrapper.scrollWidth)};get limit(){return{x:this.scrollWidth-this.width,y:this.scrollHeight-this.height}}},Jr=class{events={};emit(e,...t){let n=this.events[e]||[];for(let e=0,r=n.length;e<r;e++)n[e]?.(...t)}on(e,t){return this.events[e]?this.events[e].push(t):this.events[e]=[t],()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}off(e,t){this.events[e]=this.events[e]?.filter(e=>t!==e)}destroy(){this.events={}}},Yr=100/6,Q={passive:!1};function Xr(e,t){return e===1?Yr:e===2?t:1}var Zr=class{touchStart={x:0,y:0};lastDelta={x:0,y:0};window={width:0,height:0};emitter=new Jr;constructor(e,t={wheelMultiplier:1,touchMultiplier:1}){this.element=e,this.options=t,window.addEventListener(`resize`,this.onWindowResize),this.onWindowResize(),this.element.addEventListener(`wheel`,this.onWheel,Q),this.element.addEventListener(`touchstart`,this.onTouchStart,Q),this.element.addEventListener(`touchmove`,this.onTouchMove,Q),this.element.addEventListener(`touchend`,this.onTouchEnd,Q)}on(e,t){return this.emitter.on(e,t)}destroy(){this.emitter.destroy(),window.removeEventListener(`resize`,this.onWindowResize),this.element.removeEventListener(`wheel`,this.onWheel,Q),this.element.removeEventListener(`touchstart`,this.onTouchStart,Q),this.element.removeEventListener(`touchmove`,this.onTouchMove,Q),this.element.removeEventListener(`touchend`,this.onTouchEnd,Q)}onTouchStart=e=>{let{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:0,y:0},this.emitter.emit(`scroll`,{deltaX:0,deltaY:0,event:e})};onTouchMove=e=>{let{clientX:t,clientY:n}=e.targetTouches?e.targetTouches[0]:e,r=-(t-this.touchStart.x)*this.options.touchMultiplier,i=-(n-this.touchStart.y)*this.options.touchMultiplier;this.touchStart.x=t,this.touchStart.y=n,this.lastDelta={x:r,y:i},this.emitter.emit(`scroll`,{deltaX:r,deltaY:i,event:e})};onTouchEnd=e=>{this.emitter.emit(`scroll`,{deltaX:this.lastDelta.x,deltaY:this.lastDelta.y,event:e})};onWheel=e=>{let{deltaX:t,deltaY:n,deltaMode:r}=e,i=Xr(r,this.window.width),a=Xr(r,this.window.height);t*=i,n*=a,t*=this.options.wheelMultiplier,n*=this.options.wheelMultiplier,this.emitter.emit(`scroll`,{deltaX:t,deltaY:n,event:e})};onWindowResize=()=>{this.window={width:window.innerWidth,height:window.innerHeight}}},Qr=e=>Math.min(1,1.001-2**(-10*e)),$r=class{_isScrolling=!1;_isStopped=!1;_isLocked=!1;_preventNextNativeScrollEvent=!1;_resetVelocityTimeout=null;_rafId=null;_isDraggingSelection=!1;isTouching;isIos;time=0;userData={};lastVelocity=0;velocity=0;direction=0;options;targetScroll;animatedScroll;animate=new Gr;emitter=new Jr;dimensions;virtualScroll;constructor({wrapper:e=window,content:t=document.documentElement,eventsTarget:n=e,smoothWheel:r=!0,syncTouch:i=!1,syncTouchLerp:a=.075,touchInertiaExponent:o=1.7,duration:s,easing:c,lerp:l=.1,infinite:u=!1,orientation:d=`vertical`,gestureOrientation:f=d===`horizontal`?`both`:`vertical`,touchMultiplier:p=1,wheelMultiplier:m=1,autoResize:h=!0,prevent:g,virtualScroll:_,overscroll:v=!0,autoRaf:y=!1,anchors:b=!1,autoToggle:x=!1,allowNestedScroll:S=!1,__experimental__naiveDimensions:C=!1,naiveDimensions:ee=C,stopInertiaOnNavigate:te=!1}={}){window.lenisVersion=Br,window.lenis||(window.lenis={}),window.lenis.version=Br,d===`horizontal`&&(window.lenis.horizontal=!0),i===!0&&(window.lenis.touch=!0),this.isIos=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),(!e||e===document.documentElement)&&(e=window),typeof s==`
2number`&&typeof c!=`function`?c=Qr:typeof c==`function`&&typeof s!=`number`&&(s=1),this.options={wrapper:e,content:t,eventsTarget:n,smoothWheel:r,syncTouch:i,syncTouchLerp:a,touchInertiaExponent:o,duration:s,easing:c,lerp:l,infinite:u,gestureOrientation:f,orientation:d,touchMultiplier:p,wheelMultiplier:m,autoResize:h,prevent:g,virtualScroll:_,overscroll:v,autoRaf:y,anchors:b,autoToggle:x,allowNestedScroll:S,naiveDimensions:ee,stopInertiaOnNavigate:te},this.dimensions=new qr(e,t,{autoResize:h}),this.updateClassName(),this.targetScroll=this.animatedScroll=this.actualScroll,this.options.wrapper.addEventListener(`scroll`,this.onNativeScroll),this.options.wrapper.addEventListener(`scrollend`,this.onScrollEnd,{capture:!0}),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.addEventListener(`click`,this.onClick),this.options.wrapper.addEventListener(`pointerdown`,this.onPointerDown),this.virtualScroll=new Zr(n,{touchMultiplier:p,wheelMultiplier:m}),this.virtualScroll.on(`scroll`,this.onVirtualScroll),this.options.autoToggle&&(this.checkOverflow(),this.rootElement.addEventListener(`transitionend`,this.onTransitionEnd)),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))}destroy(){this.emitter.destroy(),this.options.wrapper.removeEventListener(`scroll`,this.onNativeScroll),this.options.wrapper.removeEventListener(`scrollend`,this.onScrollEnd,{capture:!0}),this.options.wrapper.removeEventListener(`pointerdown`,this.onPointerDown),(this.options.anchors||this.options.stopInertiaOnNavigate)&&this.options.wrapper.removeEventListener(`click`,this.onClick),this.virtualScroll.destroy(),this.dimensions.destroy(),this.cleanUpClassName(),this._rafId&&cancelAnimationFrame(this._rafId)}on(e,t){return this.emitter.on(e,t)}off(e,t){return this.emitter.off(e,t)}onScrollEnd=e=>{e instanceof CustomEvent||(this.isScrolling===`smooth`||this.isScrolling===!1)&&e.stopPropagation()};dispatchScrollendEvent=()=>{this.options.wrapper.dispatchEvent(new CustomEvent(`scrollend`,{bubbles:this.options.wrapper===window,detail:{lenisScrollEnd:!0}}))};get overflow(){let e=this.isHorizontal?`overflow-x`:`overflow-y`;return getComputedStyle(this.rootElement)[e]}checkOverflow(){[`hidden`,`clip`].includes(this.overflow)?this.internalStop():this.internalStart()}onTransitionEnd=e=>{e.propertyName?.includes(`overflow`)&&e.target===this.rootElement&&this.checkOverflow()};setScroll(e){this.isHorizontal?this.options.wrapper.scrollTo({left:e,behavior:`instant`}):this.options.wrapper.scrollTo({top:e,behavior:`instant`})}onClick=e=>{let t=e.composedPath().filter(e=>e instanceof HTMLAnchorElement&&e.href).map(e=>new URL(e.href)),n=new URL(window.location.href);if(this.options.anchors){let e=t.find(e=>n.host===e.host&&n.pathname===e.pathname&&e.hash);if(e){let t=typeof this.options.anchors==`object`&&this.options.anchors?this.options.anchors:void 0,n=decodeURIComponent(e.hash);this.scrollTo(n,t);return}}if(this.options.stopInertiaOnNavigate&&t.some(e=>n.host===e.host&&n.pathname!==e.pathname)){this.reset();return}};onPointerDown=e=>{e.button===1&&this.reset()};isTouchOnSelectionHandle(e){let t=window.getSelection();if(!t||t.isCollapsed||t.rangeCount===0)return!1;let n=e.targetTouches[0]??e.changedTouches[0];if(!n)return!1;let r=t.getRangeAt(0).getClientRects();if(r.length===0)return!1;let i=r[0],a=r[r.length-1],o=Math.hypot(n.clientX-i.left,n.clientY-i.top)<=40,s=Math.hypot(n.clientX-a.right,n.clientY-a.bottom)<=40;return o||s}onVirtualScroll=e=>{if(typeof this.options.virtualScroll==`function`&&this.options.virtualScroll(e)===!1)return;let{deltaX:t,deltaY:n,event:r}=e;if(this.emitter.emit(`virtual-scroll`,{deltaX:t,deltaY:n,event:r}),r.ctrlKey||r.lenisStopPropagation)return;let i=r.type.includes(`touch`),a=r.type.includes(`wheel`);if(i&&this.isIos&&(r.type===`touchstart`&&(this._isDraggingSelection=this.isTouchOnSelectionHandle(r)),this._isDraggingSelection)){r.type===`touchend`&&(this._isDraggingSelection=!1);return}this.isTouching=r.type===`touchstart`||r.type===`touchmove`;let o=t===0&&n===0;if(this.options.syncTouch&&i&&r.type===`touchstart`&&o&&!this.isStopped&&!this.isLocked){this.reset();return}let s=this.options.gestureOrientation===`vertical`&&n===0||this.options.gestureOrientation===`horizontal`&&t===0;if(o||s)return;let c=r.composedPath();c=c.slice(0,c.indexOf(this.rootElement));let l=this.options.prevent,u=Math.abs(t)>=Math.abs(n)?`horizontal`:`vertical`;if(c.find(e=>e instanceof HTMLElement&&(typeof l==`function`&&l?.(e)||e.hasAttribute?.(`data-lenis-prevent`)||u===`vertical`&&e.hasAttribute?.(`data-lenis-prevent-vertical`)||u===`horizontal`&&e.hasAttribute?.(`data-lenis-prevent-horizontal`)||i&&e.hasAttribute?.(`data-lenis-prevent-touch`)||a&&e.hasAttribute?.(`data-lenis-prevent-wheel`)||this.options.allowNestedScroll&&this.hasNestedScroll(e,{deltaX:t,deltaY:n}))))return;if(this.isStopped||this.isLocked){r.cancelable&&r.preventDefault();return}if(!(this.options.syncTouch&&i||this.options.smoothWheel&&a)){this.isScrolling=`native`,this.animate.stop(),r.lenisStopPropagation=!0;return}let d=n;this.options.gestureOrientation===`both`?d=Math.abs(n)>Math.abs(t)?n:t:this.options.gestureOrientation===`horizontal`&&(d=t),(!this.options.overscroll||this.options.infinite||this.options.wrapper!==window&&this.limit>0&&(this.animatedScroll>0&&this.animatedScroll<this.limit||this.animatedScroll===0&&n>0||this.animatedScroll===this.limit&&n<0))&&(r.lenisStopPropagation=!0),r.cancelable&&r.preventDefault();let f=i&&this.options.syncTouch,p=i&&r.type===`touchend`;p&&(d=Math.sign(d)*Math.abs(this.velocity)**this.options.touchInertiaExponent),this.scrollTo(this.targetScroll+d,{programmatic:!1,...f?{lerp:p?this.options.syncTouchLerp:1}:{lerp:this.options.lerp,duration:this.options.duration,easing:this.options.easing}})};resize(){this.dimensions.resize(),this.animatedScroll=this.targetScroll=this.actualScroll,this.emit
vendor: 4,100 bytes, line 2
2()}emit(){this.emitter.emit(`scroll`,this)}onNativeScroll=()=>{if(this._resetVelocityTimeout!==null&&(clearTimeout(this._resetVelocityTimeout),this._resetVelocityTimeout=null),this._preventNextNativeScrollEvent){this._preventNextNativeScrollEvent=!1;return}if(this.isScrolling===!1||this.isScrolling===`native`){let e=this.animatedScroll;this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity,this.velocity=this.animatedScroll-e,this.direction=Math.sign(this.animatedScroll-e),this.isStopped||(this.isScrolling=`native`),this.emit(),this.velocity!==0&&(this._resetVelocityTimeout=setTimeout(()=>{this.lastVelocity=this.velocity,this.velocity=0,this.isScrolling=!1,this.emit()},400))}};reset(){this.isLocked=!1,this.isScrolling=!1,this.animatedScroll=this.targetScroll=this.actualScroll,this.lastVelocity=this.velocity=0,this.animate.stop()}start(){if(this.isStopped){if(this.options.autoToggle){this.rootElement.style.removeProperty(`overflow`);return}this.internalStart()}}internalStart(){this.isStopped&&(this.reset(),this.isStopped=!1,this.emit())}stop(){if(!this.isStopped){if(this.options.autoToggle){this.rootElement.style.setProperty(`overflow`,`clip`);return}this.internalStop()}}internalStop(){this.isStopped||(this.reset(),this.isStopped=!0,this.emit())}raf=e=>{let t=e-(this.time||e);this.time=e,this.animate.advance(t*.001),this.options.autoRaf&&(this._rafId=requestAnimationFrame(this.raf))};scrollTo(e,{offset:t=0,immediate:n=!1,lock:r=!1,programmatic:i=!0,lerp:a=i?this.options.lerp:void 0,duration:o=i?this.options.duration:void 0,easing:s=i?this.options.easing:void 0,onStart:c,onComplete:l,force:u=!1,userData:d}={}){if((this.isStopped||this.isLocked)&&!u)return;let f=e,p=t;if(typeof f==`string`&&[`top`,`left`,`start`,`#`].includes(f))f=0;else if(typeof f==`string`&&[`bottom`,`right`,`end`].includes(f))f=this.limit;else{let e=null;if(typeof f==`string`?(e=f.startsWith(`#`)?document.getElementById(f.slice(1)):document.querySelector(f),e||(f===`#top`?f=0:console.warn(`Lenis: Target not found`,f))):f instanceof HTMLElement&&f?.nodeType&&(e=f),e){if(this.options.wrapper!==window){let e=this.rootElement.getBoundingClientRect();p-=this.isHorizontal?e.left:e.top}let t=e.getBoundingClientRect(),n=getComputedStyle(e),r=this.isHorizontal?Number.parseFloat(n.scrollMarginLeft):Number.parseFloat(n.scrollMarginTop),i=getComputedStyle(this.rootElement),a=this.isHorizontal?Number.parseFloat(i.scrollPaddingLeft):Number.parseFloat(i.scrollPaddingTop);f=(this.isHorizontal?t.left:t.top)+this.animatedScroll-(Number.isNaN(r)?0:r)-(Number.isNaN(a)?0:a)}}if(typeof f==`number`){if(f+=p,this.options.infinite){if(i){this.targetScroll=this.animatedScroll=this.scroll;let e=f-this.animatedScroll;e>this.limit/2?f-=this.limit:e<-this.limit/2&&(f+=this.limit)}}else f=Vr(0,f,this.limit);if(f===this.targetScroll){c?.(this),l?.(this);return}if(this.userData=d??{},n){this.animatedScroll=this.targetScroll=f,this.setScroll(this.scroll),this.reset(),this.preventNextNativeScrollEvent(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()});return}i||(this.targetScroll=f),typeof o==`number`&&typeof s!=`function`?s=Qr:typeof s==`function`&&typeof o!=`number`&&(o=1),this.animate.fromTo(this.animatedScroll,f,{duration:o,easing:s,lerp:a,onStart:()=>{r&&(this.isLocked=!0),this.isScrolling=`smooth`,c?.(this)},onUpdate:(e,t)=>{this.isScrolling=`smooth`,this.lastVelocity=this.velocity,this.velocity=e-this.animatedScroll,this.direction=Math.sign(this.velocity),this.animatedScroll=e,this.setScroll(this.scroll),i&&(this.targetScroll=e),t||this.emit(),t&&(this.reset(),this.emit(),l?.(this),this.userData={},requestAnimationFrame(()=>{this.dispatchScrollendEvent()}),this.preventNextNativeScrollEvent())}})}}preventNextNativeScrollEvent(){this._preventNextNativeScrollEvent=!0,requestAnimationFrame(()=>{this._preventNextNativeScrollEvent=!1})}hasNestedScroll(e,{deltaX:t,deltaY:n}){let r=Date.now();e._lenis||={};let i=e._lenis,a,o,s,c,l,u,d,f,p,m;if(r-(i.time??0)>2e3){i.time=Date.now();let t=window.getComputedStyle(e);
2if(i.computedStyle=t,a=[`auto`,`overlay`,`scroll`].includes(t.overflowX),o=[`auto`,`overlay`,`scroll`].includes(t.overflowY),l=[`auto`].includes(t.overscrollBehaviorX),u=[`auto`].includes(t.overscrollBehaviorY),i.hasOverflowX=a,i.hasOverflowY=o,!(a||o))return!1;d=e.scrollWidth,f=e.scrollHeight,p=e.clientWidth,m=e.clientHeight,s=d>p,c=f>m,i.isScrollableX=s,i.isScrollableY=c,i.scrollWidth=d,i.scrollHeight=f,i.clientWidth=p,i.clientHeight=m,i.hasOverscrollBehaviorX=l,i.hasOverscrollBehaviorY=u}else s=i.isScrollableX,c=i.isScrollableY,a=i.hasOverflowX,o=i.hasOverflowY,d=i.scrollWidth,f=i.scrollHeight,p=i.clientWidth,m=i.clientHeight,l=i.hasOverscrollBehaviorX,u=i.hasOverscrollBehaviorY;if(!(a&&s||o&&c))return!1;let h=Math.abs(t)>=Math.abs(n)?`horizontal`:`vertical`,g,_,v,y,b,x;if(h===`horizontal`)g=Math.round(e.scrollLeft),_=d-p,v=t,y=a,b=s,x=l;else if(h===`vertical`)g=Math.round(e.scrollTop),_=f-m,v=n,y=o,b=c,x=u;else return!1;return!x&&(g>=_||g<=0)||(v>0?g<_:g>0)&&y&&b}get rootElement(){return this.options.wrapper===window?document.documentElement:this.options.wrapper}get limit(){return this.options.naiveDimensions?this.isHorizontal?this.rootElement.scrollWidth-this.rootElement.clientWidth:this.rootElement.scrollHeight-this.rootElement.clientHeight:this.dimensions.limit[this.isHorizontal?`x`:`y`]}get isHorizontal(){return this.options.orientation===`horizontal`}get actualScroll(){let e=this.options.wrapper;return this.isHorizontal?e.scrollX??e.scrollLeft:e.scrollY??e.scrollTop}get scroll(){return this.options.infinite?Wr(this.animatedScroll,this.limit):this.animatedScroll}get progress(){return this.limit===0?1:this.scroll/this.limit}get isScrolling(){return this._isScrolling}set isScrolling(e){this._isScrolling!==e&&(this._isScrolling=e,this.updateClassName())}get isStopped(){return this._isStopped}set isStopped(e){this._isStopped!==e&&(this._isStopped=e,this.updateClassName())}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked!==e&&(this._isLocked=e,this.updateClassName())}get isSmooth(){return this.isScrolling===`smooth`}get className(){let e=`lenis`;return this.options.autoToggle&&(e+=` lenis-autoToggle`),this.isStopped&&(e+=` lenis-stopped`),this.isLocked&&(e+=` lenis-locked`),this.isScrolling&&(e+=` lenis-scrolling`),this.isScrolling===`smooth`&&(e+=` lenis-smooth`),e}updateClassName(){this.cleanUpClassName(),this.className.split(` `).forEach(e=>{this.rootElement.classList.add(e)})}cleanUpClassName(){for(let e of Array.from(this.rootElement.classList))(e===`lenis`||e.startsWith(`lenis-`))&&this.rootElement.classList.remove(e)}},ei=(0,b.createContext)(null);function ti({children:e}){let t=(0,b.useRef)(null),n=(0,b.useRef)(null);(0,b.useEffect)(()=>{let e=new $r({duration:1.2,easing:e=>Math.min(1,1.001-2**(-10*e)),orientation:`vertical`,gestureOrientation:`vertical`,smoothWheel:!0});t.current=e;let r=n.current;if(r){let[t,i]=r;n.current=null,e.resize(),e.scrollTo(t,{...i,immediate:!0})}let i;function a(t){e.raf(t),i=requestAnimationFrame(a)}return i=requestAnimationFrame(a),()=>{cancelAnimationFrame(i),e.destroy(),t.current=null}},[]);let r=(0,b.useCallback)(()=>{t.current?.stop()},[]),i=(0,b.useCallback)(()=>{t.current?.start()},[]),a=(0,b.useCallback)((e,r)=>{if(!t.current){n.current=[e,r];return}t.current.resize(),t.current.scrollTo(e,r)},[]);return(0,K.jsx)(ei.Provider,{value:{stop:r,start:i,scrollTo:a},children:e})}var ni=e=>{if(typeof document>`u`||!document.hidden)return e(),()=>{};let t=()=>{document.hidden||(n(),e())},n=()=>document.removeEventListener(`visibilitychange`,t);return document.addEventListener(`visibilitychange`,t),n},ri=[.16,1,.3,1],ii=.3,ai=1.1,oi=1.55,si={hidden:{pathLength:0,fillOpacity:0,strokeOpacity:1},inked:e=>({pathLength:1,fillOpacity:1,strokeOpacity:0,transition:{pathLength:{delay:e,duration:.6,ease:ri},fillOpacity:{delay:ai,duration:.7},strokeOpacity:{delay:ai,duration:.7}}}),reink:e=>{let t=.44999999999999996,n=t+e+.6,r=2.25;return{pathLength:[null,1,0,0,1],fillOpacity:[null,0,0,1],strokeOpacity:[null,1,1,0],transition:{pathLength:{duration:n,times:[0,ii/n,t/n,(t+e)/n,1],ease:[`linear`,`easeIn`,`linear`,ri]},fillOpacity:{duration:r,times:[0,ii/r,1.55/r,1],ease:`easeOut`},strokeOpacity:{duration:r,times:[0,ii/r,1.55/r,1],ease:`easeOut`}}}}},ci={hidden:{opacity:0,x:-8},inked:{opacity:1,x:0,transition:{delay:oi,duration:.6,ease:ri}},reink:(()=>{let e=2.6;return{opacity:[null,0,0,1],x:[null,-8,-8,0],transition:{duration:e,times:[0,ii/e,2/e,1],ease:`easeOut`}}})()},li=[[`#603813`,0,`M107.23,0l-3.82,47.22L99.6,0,0,35.46c15.27,7.54,32.97,16.46,46.44,22.92,2.35,1.26,4.67,2.7,7.02,4.06,15.47,9.07,34.56,20.28,49.95,29.55,15.93-9.5,40.78-24.14,56.98-33.58,13.08-6.36,31.27-15.43,46.46-22.94L107.23,0Z`],[`#603813`,.1,`M153.6,144.02c-3.58.84-7.19,1.58-10.8,2.24-2.68-4.25-5.15-8.74-7.62-12.83-3.03,5.11-5.93,10.55-9.62,15.27-14.87,1.51-29.86,1.5-44.73-.04-3.28-4.93-6.23-10.36-9.17-15.23-2.52,4.24-4.94,8.7-7.79,12.79-3.31-.61-6.62-1.27-9.9-2.03l-.73-.17,20.74,45.21h58.89l20.74-45.21h0Z`],[`#8c6239`,.2,`M174.4,84.34c-.1-4.63.2-14.22,2.04-22.8-4.77,2.35-9.39,4.63-13.73,6.77-16.76,6.73-42.62,17.31-59.29,23.68-16.85-6.45-35.03-13.76-51.78-20.55-2.5-1.03-5.03-1.98-7.52-3.1-4.21-2.09-8.86-4.39-13.72-6.79,1.83,8.58,2.13,18.15,2.03,22.79-.26,8.08-.97,18.33-3.94,26.85.27.34.54.67.83,1.01,2.04-5.59,4.69-8.97,7.59-8.97,4.94,0,9.16,9.81,10.85,23.64,6.32,3.54,13.49,6.48,21.28,8.7.87-.87,1.74-1.72,2.61-2.54,1.44,1.39,2.87,2.82,4.29,4.28,8.61,1.89,17.85,2.92,27.47,2.92s18.84-1.03,27.44-2.92c1.43-1.48,2.88-2.92,4.32-4.28.87.84,1.73,1.68,2.59,2.54,7.79-2.22,14.97-5.16,21.29-8.7,1.69-13.83,5.91-23.64,10.85-23.64,2.9,0,5.55,3.38,7.59,8.97.28-.33.56-.67.83-1.01-2.97-8.51-3.67-18.76-3.94-26.85Z`],[`#754c24`,.28,`M178.52,95.31c.27,3.05.66,
26.08,1.19,9.07,1.35,8,7.01,24.85,13.99,9.67,3.96-9.29,4.96-19.64,5.23-29.7,0-1.98-.03-4.1-.11-6.29l-20.3,17.27Z`],[`#754c24`,.32,`M181.84,58.87c-.69,2.16-1.2,4.21-1.52,5.55-2.1,10-2.7,20.49-1.81,30.77l19.93-23.43c-.59-6.61-1.87-13.36-4.56-18.8-4.05,1.99-8.08,3.97-12.04,5.92Z`],[`#754c24`,.36,`M7.97,78.01c-.12,2.62-.13,4.84-.07,6.32.27,10.06,1.27,20.42,5.23,29.7,6.97,15.16,12.63-1.62,13.99-9.67.53-2.99.92-6.02,1.19-9.07l-20.34-17.3Z`],[`#754c24`,.4,`M24.99,58.88c-4-1.97-8.09-3.98-12.17-5.98-2.41,4.95-3.73,12.33-4.39,18.91l19.89,23.39c.89-10.27.28-20.77-1.81-30.77-.32-1.34-.83-3.4-1.52-5.55Z`],[`#754c24`,.46,`M74.94,80.82l-.35-.14c1.19,2.74,1.81,5.76,1.76,8.54.07-2.79-.43-5.7-1.42-8.4Z`],[`#754c24`,.5,`M62.37,106.73c-13.99-1.73-15.71-25.79-5.18-33.04-1.05-.43-2.09-.85-3.14-1.27-10.72,8.12-10.21,27.6,1.52,34.65,12.15,6.4,21.09-6.72,20.78-17.84.12,7.96-5.09,17.86-13.99,17.51Z`],[`#754c24`,.54,`M132.56,80.46c-1.21,2.93-1.84,6.17-1.75,9.26-.05-3.09.71-6.47,2.18-9.43-.14.06-.28.11-.42.17Z`],[`#754c24`,.58,`M152.44,72.44c-1.05.42-2.11.85-3.19,1.29,11.32,6.63,9.84,31.72-4.45,33.49-8.89.36-14.11-9.54-13.99-17.49-.3,11.14,8.61,24.25,20.79,17.85,11.98-7.19,12.24-27.33.84-35.13Z`],[`#fbb03b`,.64,`M52.89,71.94c-4.79,2.93-8.13,9.34-8.13,16.78,0,10.22,6.26,18.5,13.99,18.5.12,0,.25-.02.37-.02,1.05.33,2.13.52,3.26.52,7.73,0,13.99-8.28,13.99-18.5,0-3.05-.57-5.92-1.56-8.46-7.41-2.96-14.78-5.93-21.92-8.82Z`],[`#fbb03b`,.68,`M153.84,71.88c-.97.39-1.97.8-2.97,1.2,0,0,0,0,0,0-5.76,2.33-11.95,4.83-18.14,7.32-1.21,2.74-1.92,5.92-1.92,9.33,0,10.22,6.26,18.5,13.99,18.5,1.65,0,3.23-.4,4.7-1.09,7.06-.94,12.57-8.82,12.57-18.41,0-7.5-3.38-13.94-8.23-16.85Z`]],ui=[`M0,136.75V2.09h67.33c15.89,0,27.6,4.18,35.13,12.55,7.53,8.36,11.29,19.59,11.29,33.67,0,9.06-2.3,17.01-6.9,23.84-4.6,6.83-10.87,11.92-18.82,15.26,1.95,1.54,3.52,3.24,4.7,5.12,1.18,1.88,2.47,4.5,3.87,7.84l15.89,36.38h-35.13l-15.06-34.29c-1.25-2.93-2.86-5.05-4.81-6.38-1.95-1.32-4.74-1.99-8.36-1.99h-15.47v42.66H0ZM33.67,68.17h24.88c6.55,0,11.67-1.64,15.37-4.91,3.69-3.27,5.54-8.26,5.54-14.95,0-13.52-6.48-20.28-19.45-20.28h-26.35v40.15Z`,`M188.61,138.85c-21.89,0-38.55-5.57-49.98-16.73-11.43-11.15-17.15-28.51-17.15-52.07,0-24.95,5.71-42.87,17.15-53.74C150.06,5.44,166.72,0,188.61,0s38.54,5.44,49.98,16.31c11.43,10.87,17.15,28.79,17.15,53.74,0,23.56-5.72,40.92-17.15,52.07-11.43,11.16-28.09,16.73-49.98,16.73ZM188.61,110.2c11.29,0,19.55-3.24,24.78-9.72,5.23-6.48,7.84-16.62,7.84-30.42,0-15.06-2.61-25.68-7.84-31.89-5.23-6.2-13.49-9.31-24.78-9.31s-19.76,3.1-24.99,9.31c-5.23,6.2-7.84,16.83-7.84,31.89,0,13.8,2.61,23.94,7.84,30.42s13.56,9.72,24.99,9.72Z`,`M299.85,136.75V28.02h-39.52V2.09h112.71v25.93h-39.52v108.73h-33.67Z`,`M386,136.75V2.09h33.67v134.66h-33.67Z`,`M438.9,136.75V2.09h33.25l36.59,74.65L545.13,2.09h33.04v134.66h-33.67V59.39l-26.56,54.37h-18.61l-26.77-54.37v77.37h-33.67Z`,`M593.22,136.75v-24.67h26.97v24.67h-26.97Z`,`M631.07,136.75L682.51,2.09h36.38l51.44,134.66h-35.13l-12.13-30.53h-44.96l-11.92,30.53h-35.13ZM682.72,81.34h35.76l-17.98-46.84-17.77,46.84Z`,`M785.39,136.75V2.09h67.33c15.89,0,27.6,4.18,35.13,12.55,7.53,8.36,11.29,19.59,11.29,33.67,0,9.06-2.3,17.01-6.9,23.84-4.6,6.83-10.87,11.92-18.82,15.26,1.95,1.54,3.52,3.24,4.71,5.12,1.18,1.88,2.47,4.5,3.87,7.84l15.89,36.38h-35.13l-15.06-34.29c-1.25-2.93-2.86-5.05-4.81-6.38-1.95-1.32-4.74-1.99-8.36-1.99h-15.47v42.66h-33.67ZM819.05,68.17h24.88c6.55,0,11.67-1.64,15.37-4.91,3.69-3.27,5.54-8.26,5.54-14.95,0-13.52-6.48-20.28-19.45-20.28h-26.35v40.15Z`,`M945.35,136.75V28.02h-39.52V2.09h112.71v25.93h-39.52v108.73h-33.67Z`],di=()=>{let e=_(),t=h(),n=(0,b.useRef)(!1),r=(0,b.useRef)(0),i=async i=>{if(e||n.current)return;n.current=!0;let a=++r.current;try{if(await t.start(i),a!==r.current)return;t.set(`inked`)}finally{a===r.current&&(n.current=!1)}};return(0,b.useEffect)(()=>{let e=r,i=n;return()=>{e.current++,t.stop(),i.current=!1}},[t]),(0,b.useEffect)(()=>ni(()=>i(`inked`)),[]),(0,K.jsxs)(y.span,{className:`site-logo`,initial:!e&&`hidden`,animate:t,onHoverStart:()=>i(`reink`),children:[(0,K.jsx)(`svg`,{className:`site-logo__icon`,viewBox:`0 0 206.86 189.22`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:li.map(([e,t,n])=>(0,K.jsx)(y.path,{fill:e,custom:t,variants:si,d:n},n.slice(0,24)))}),(0,K.jsx)(y.svg,{className:`site-logo__word`,viewBox:`0 0 1018.54 138.85`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,variants:ci,children:(0,K.jsx)(`g`,{fill:`#df6c26`,children:ui.map(e=>(0,K.jsx)(`path`,{d:e},e.slice(0,24)))})})]})};function fi(){let e=(0,b.useContext)(ei);if(!e)throw Error(`useLenis must be used within a LenisProvider`);return e}function pi(e){let{stop:t,start:n}=fi();(0,b.useEffect)(()=>(e?t():n(),()=>{n()}),[e,t,n])}var mi=null,hi=()=>mi?.(),gi=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;let r=Number.parseFloat(getComputedStyle(e).scrollMarginTop)||0;return Math.max(0,t-r)},_i=()=>window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,vi=(e,t)=>{mi?.();let n=null,r=null,i=null,a=!1,o=!1,s=()=>{n!==null&&window.cancelAnimationFrame(n),r?.disconnect(),i!==null&&window.clearTimeout(i),window.removeEventListener(`wheel`,c),window.removeEventListener(`touchstart`,c),window.removeEventListener(`ke
2ydown`,l)},c=()=>{a||(a=!0,s(),mi===c&&(mi=null))},l=e=>{[`ArrowUp`,`ArrowDown`,`PageUp`,`PageDown`,`Home`,`End`,` `].includes(e.key)&&c()};mi=c,window.addEventListener(`wheel`,c,{passive:!0,once:!0}),window.addEventListener(`touchstart`,c,{passive:!0,once:!0}),window.addEventListener(`keydown`,l);let u=()=>{if(a)return;let n=document.getElementById(e);n&&t(gi(n),{duration:.9,immediate:_i()}),c()},d=()=>{a||o||(o=!0,r?.disconnect(),i!==null&&window.clearTimeout(i),n=window.requestAnimationFrame(u))},f=e===`about`?document.querySelector(`.galleryContainer`):null;return f?.getAttribute(`aria-busy`)===`true`?(r=new MutationObserver(()=>{f.getAttribute(`aria-busy`)!==`true`&&d()}),r.observe(f,{attributes:!0,attributeFilter:[`aria-busy`]}),i=window.setTimeout(d,1e4),f.getAttribute(`aria-busy`)!==`true`&&d()):d(),c},yi=({href:e,icon:t,label:r,showTooltip:i=!0})=>{let[a,o]=(0,b.useState)(!1);return(0,K.jsxs)(y.a,{href:e,target:`_blank`,rel:`noopener noreferrer`,className:`social-icon-wrapper`,onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),whileHover:{scale:1.1},transition:{duration:.2,ease:`easeOut`},"aria-label":r,children:[(0,K.jsx)(n,{icon:t,"aria-hidden":`true`}),i&&(0,K.jsx)(m,{children:a&&(0,K.jsx)(y.span,{className:`social-tooltip`,initial:{opacity:0,y:5},animate:{opacity:1,y:0},exit:{opacity:0,y:5},transition:{duration:.2,ease:[.22,1,.36,1]},children:r})})]})},bi=(e,t,n)=>n===e?`hover`:t===e?`active`:`rest`,xi=[{key:`gallery`,label:`Gallery`,accent:`#df6c26`},{key:`about`,label:`About`,accent:`#df6c26`}],Si=[{href:`https://rotim.art/bluesky`,icon:r,label:`Bluesky`},{href:`https://instagram.com/arukun14`,icon:i,label:`Instagram`},{href:`https://www.threads.net/arukun14`,icon:o,label:`Threads`},{href:`https://tumblr.com/rotim`,icon:a,label:`Tumblr`}],Ci=({section:e,activeSection:t,hoveredSection:n,setHoveredSection:r,setActiveSection:i,closeMenu:a})=>{let{key:o,label:s,accent:c}=e,{scrollTo:l}=fi(),u=bi(o,t,n),d=n===o||!n&&t===o,f={className:`nav-link nav-link--${o}`,"data-state":u,onMouseEnter:()=>r(o),onMouseLeave:()=>r(``),onFocus:()=>r(o),onBlur:()=>r(``)},p=(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`span`,{className:`nav-link__text`,children:s}),d&&(0,K.jsx)(y.span,{layoutId:`nav-underline`,initial:!1,animate:{backgroundColor:c},className:`nav-link__underline`,style:{backgroundColor:c},transition:{layout:{type:`spring`,stiffness:480,damping:40},backgroundColor:{duration:.25,ease:`easeInOut`}}})]});return(0,K.jsx)(ur,{to:`/`,hash:o,resetScroll:!1,hashScrollIntoView:!1,...f,onClick:e=>{i(o),a(),window.location.pathname===`/`&&window.location.hash===`#${o}`&&document.getElementById(o)&&(e.preventDefault(),vi(o,l))},children:p})},wi=()=>{let[e,t]=(0,b.useState)(!1),[r,i]=(0,b.useState)(window.innerWidth<768),{location:a}=Rr(),[o,s]=(0,b.useState)(()=>{if(a.pathname===`/`&&typeof window<`u`){let e=window.location.hash.replace(`#`,``);if(e===`gallery`||e===`about`)return e}return``}),u=(0,b.useRef)(o),[d,f]=(0,b.useState)(``),{scrollTo:p}=fi();(0,b.useEffect)(()=>{let e=()=>{i(window.innerWidth<768),window.innerWidth>=768&&t(!1)};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),(0,b.useEffect)(()=>{u.current=o},[o]),(0,b.useEffect)(()=>{a.pathname!==`/`&&s(``)},[a.pathname]),(0,b.useEffect)(()=>{f(``)},[a.pathname]),(0,b.useEffect)(()=>{e||f(``)},[e]),(0,b.useEffect)(()=>{if(a.pathname!==`/`||typeof window>`u`)return;let e=window.location.hash.replace(`#`,``);(e===`gallery`||e===`about`)&&s(e)},[a.pathname,a.href]),(0,b.useEffect)(()=>{if(a.pathname!==`/`||typeof window>`u`)return;let e=[{id:`gallery`,key:`gallery`},{id:`about`,key:`about`}],t=()=>{let t=window.scrollY+window.innerHeight/3,n=``;e.forEach(({id:e,key:r})=>{let i=document.getElementById(e);if(!i)return;let a=i.getBoundingClientRect(),o=a.top+window.scrollY,s=o+a.height;t>=o&&t<s&&(n=r)}),n!==u.current&&(u.current=n,s(n))};return t(),window.addEventListener(`scroll`,t,{passive:!0}),window.addEventListener(`resize`,t),()=>{window.removeEventListener(`scroll`,t),window.removeEventListener(`resize`,t)}},[a.pathname]);let h={activeSection:o,hoveredSection:d,setHoveredSection:f,setActiveSection:s,closeMenu:()=>t(!1)};return(0,K.jsx)(v,{children:(0,K.jsxs)(`nav`,{className:`nav`,children:[(0,K.jsxs)(`div`,{className:`container`,children:[(0,K.jsx)(`div`,{className:`logo-container`,children:(0,K.jsx)(ur,{to:`/`,"aria-label":`ROTIM.ART — back to top`,onClick:e=>{a.pathname===`/`&&!a.hash&&(e.preventDefault(),hi(),p(0,{duration:.9,immediate:_i()}),s(``))},children:(0,K.jsx)(di,{})})}),(0,K.jsx)(`button`,{type:`button`,className:`menu-button`,onClick:()=>t(!e),"aria-expanded":e,"aria-label":e?`Close menu`:`Open menu`,children:(0,K.jsx)(y.div,{animate:{rotate:e?180:0},transition:{duration:.5,ease:[.25,1,.5,1]},children:(0,K.jsx)(n,{icon:e?l:c,"aria-hidden":`true`})})}),!r&&(0,K.jsx)(`ul`,{className:`menu`,children:xi.map(e=>(0,K.jsx)(`li`,{children:(0,K.jsx)(Ci,{section:e,...h})},e.key))}
2),!r&&(0,K.jsx)(`div`,{className:`social-icons desktop`,children:Si.map(e=>(0,K.jsx)(yi,{...e},e.label))})]}),(0,K.jsx)(m,{children:r&&e&&(0,K.jsxs)(y.div,{className:`mobile-menu`,initial:{opacity:0,height:0},animate:{opacity:1,height:`auto`},exit:{opacity:0,height:0},transition:{duration:.35,ease:`easeOut`},children:[(0,K.jsx)(`ul`,{className:`mobile-menu-list`,children:xi.map(e=>(0,K.jsx)(`li`,{children:(0,K.jsx)(Ci,{section:e,...h})},e.key))}),(0,K.jsx)(`div`,{className:`social-icons`,children:Si.map(e=>(0,K.jsx)(yi,{...e,showTooltip:!1},e.label))})]})})]})})},Ti=()=>{let[e,t]=(0,b.useState)(!1),{scrollTo:r}=fi();return(0,b.useEffect)(()=>{let e=!1,n=()=>{e||=(window.requestAnimationFrame(()=>{t(document.documentElement.scrollTop>300),e=!1}),!0)};return window.addEventListener(`scroll`,n,{passive:!0}),()=>window.removeEventListener(`scroll`,n)},[]),(0,K.jsx)(`button`,{type:`button`,className:`back-to-top ${e?`visible`:`hidden`}`,onClick:()=>{hi(),r(0)},"aria-label":`Back to top`,children:(0,K.jsx)(n,{icon:s,size:`lg`,"aria-hidden":`true`})})},Ei=e=>String(Math.max(0,Math.round(e))).padStart(5,`0`),Di=()=>{let e=(0,b.useRef)(null),t=(0,b.useRef)(null),n=(0,b.useRef)(null),r=(0,b.useRef)(`Featured`),[i,a]=(0,b.useState)(`Featured`);return(0,b.useEffect)(()=>{let i=null,o=()=>{i=null;let o=document.documentElement.scrollHeight-window.innerHeight,s=window.scrollY,c=o>0?Math.min(100,Math.max(0,s/o*100)):0;e.current&&(e.current.textContent=Ei(s)),t.current&&(t.current.textContent=String(Math.round(c))),n.current&&(n.current.style.transform=`scaleX(${c/100})`);let l=window.scrollY+window.innerHeight/3,u=r.current;document.querySelectorAll(`[data-layer]`).forEach(e=>{let t=e.getBoundingClientRect(),n=t.top+window.scrollY;l>=n&&l<n+t.height&&(u=e.dataset.layer??u)}),u!==r.current&&(r.current=u,a(u))},s=()=>{i??=window.requestAnimationFrame(o)};return window.addEventListener(`scroll`,s,{passive:!0}),window.addEventListener(`resize`,s),o(),()=>{window.removeEventListener(`scroll`,s),window.removeEventListener(`resize`,s),i!=null&&window.cancelAnimationFrame(i)}},[]),(0,K.jsxs)(`div`,{className:`workshop-hud`,"aria-hidden":`true`,children:[(0,K.jsxs)(`span`,{className:`workshop-hud__cell workshop-hud__sys`,children:[(0,K.jsx)(`span`,{className:`workshop-hud__dot`}),`Rotim.sys`]}),(0,K.jsxs)(`span`,{className:`workshop-hud__cell workshop-hud__layer`,children:[`Layer:\xA0`,(0,K.jsx)(`span`,{className:`workshop-hud__value`,children:i})]}),(0,K.jsx)(`span`,{className:`workshop-hud__spacer`}),(0,K.jsxs)(`span`,{className:`workshop-hud__cell workshop-hud__y`,children:[`Y:`,(0,K.jsx)(`span`,{ref:e,children:`00000`})]}),(0,K.jsx)(`span`,{className:`workshop-hud__meter`,children:(0,K.jsx)(`span`,{className:`workshop-hud__bar`,ref:n})}),(0,K.jsxs)(`span`,{className:`workshop-hud__cell workshop-hud__pct`,children:[(0,K.jsx)(`span`,{ref:t,children:`0`}),`%`]})]})},Oi=[.16,1,.3,1],ki=.3,Ai=.9,ji=.7,$={hidden:{pathLength:0},drawn:e=>({pathLength:1,transition:{delay:e,duration:Ai,ease:Oi}}),redraw:e=>{let t=ki+e+Ai;return{pathLength:[null,0,0,1],transition:{duration:t,times:[0,ki/t,(ki+e)/t,1],ease:[`easeOut`,`linear`,Oi]}}}},Mi={hidden:{opacity:0},drawn:e=>({opacity:1,transition:{delay:e,duration:ji}}),redraw:e=>{let t=ki+e+ji;return{opacity:[null,0,0,1],transition:{duration:t,times:[0,ki/t,(ki+e)/t,1],ease:`easeOut`}}}},Ni=({className:e})=>{let t=_(),n=h(),r=(0,b.useRef)(!1),i=(0,b.useRef)(0),a=(0,b.useRef)(null),o=async e=>{if(t||r.current)return;r.current=!0;let a=++i.current;try{if(await n.start(e),a!==i.current)return;n.set(`drawn`)}finally{a===i.current&&(r.current=!1)}};return(0,b.useEffect)(()=>{let e=i,t=r;return()=>{e.current++,n.stop(),t.current=!1}},[n]),(0,b.useEffect)(()=>()=>a.current?.(),[]),(0,K.jsxs)(y.svg,{className:e,viewBox:`-26 -26 258.86 241.22`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,initial:!t&&`hidden`,animate:n,viewport:{once:!0,amount:.35},onViewportEnter:()=>{a.current?.(),a.current=ni(()=>o(`drawn`))},onHoverStart:()=>o(`redraw`),children:[(0,K.jsx)(y.line,{className:`mark-center`,custom:0,variants:Mi,x1:`103.43`,y1:`-22`,x2:`103.43`,y2:`211.22`}),(0,K.jsx)(y.line,{className:`mark-center`,custom:.1,variants:Mi,x1:`-22`,y1:`94.61`,x2:`228.86`,y2:`94.61`}),(0,K.jsx)(y.rect,{className:`mark-frame`,custom:.2,variants:Mi,x:`-12`,y:`-12`,width:`230.86`,height:`213.22`}),(0,K.jsx)(y.path,{className:`mark-tick`,custom:1.7,variants:$,d:`M-12,-4 L-12,-12 L-4,-12`}),(0,K.jsx)(y.path,{className:`mark-tick`,custom:1.8,variants:$,d:`M218.86,193.22 L218.86,201.22 L210.86,201.22`}),(0,K.jsx)(y.path,{className:`mark-ink`,custom:.25,variants:$,d:`M107.23,0l-3.82,47.22L99.6,0,0,35.46c15.27,7.54,32.97,16.46,46.44,22.92,2.35,1.26,4.67,2.7,7.02,4.06,15.47,9.07,34.56,20.28,49.95,29.55,15.93-9.5,40.78-24.14,56.98-33.58,13.08-6.36,31.27-15.43,46.46-22.94L107.23,0Z`}),(0,K.jsx)(y.path,{className:`mark-ink`,custom:.5,variants:$,d:`M153.6,144.02c-3.58.84-7.19,1.58-10.8,2.24-2.68-4.25-5.15-8.74-7.62-12.83-3.03,5.11-5.93,10.55-9.62,15.27-14.87,1.51-29.86,1.5-44.73-.04-3.28-4.93-6.23-10.36-9.17-15.23-2.52,4.24-4.94,8.7-7.79,12.79-3.31-.61-6.62-1.27-9.9-2.03l-.73-.17,20.74,45.21h58.89l20.74-45.21h0Z`}),(0,K.jsx)(y.path,{className:`mark-ink`,custom:.7,variants:$,d:`M174.4,84.34c-.1-4.63.2-14.22,2.04-22.8-4.77,2.35-9.39,4.63-13.73,6.77-16.76,6.73-42.62,17.31-59.29,23.68-16.85-6.45-35.03-13.76-51.78-20.55-2.5-1.03-5.03-1.98-7.52-3.1-4.21-2.09-8.86-4.39-13.72-6.79,1.83,8.58,2.13,18.15,2.03,22.79-.26,8.08-.97,18.33-3.94,26.85.27.34.54.67.83,1.01,2.04-5.59,4.69-8.97,7.59-8.97,4.94,0,9.16,9.81,10.85,23.64,6.32,3.54,13.49,6.48,21.28,8.7.87-.87,1.74-1.72,2.61-2.54,1.44,1.39,2.87,2.82,4.29,4.28,8.61,1.89,17.85,2.92,27.47,2.92s18.84-1.03,27.44-2.92c1.43-1.48,2.88-2.92,4.32-4.28.87.84,1.73,1.68,2.59,2.54,7.79-2.22,14.97-5.16,21.29-8.7,1.69-13.83,5.91-23.64,10.85-23.64,2.9,0,5.55,3.38,7.59,8.97.28-.33.56-.67.83-1.01-2.97-8.51-3.67-18.76-3.94-26.85Z`}),(0,K.jsx)(y.path,{className:`mark-ink`,custom:.9,variants:$,d:`M178.52,95.31c.27,3.05.66,
26.08,1.19,9.07,1.35,8,7.01,24.85,13.99,9.67,3.96-9.29,4.96-19.64,5.23-29.7,0-1.98-.03-4.1-.11-6.29l-20.3,17.27Z`}),(0,K.jsx)(y.path,{className:`mark-ink`,custom:.95,variants:$,d:`M181.84,58.87c-.69,2.16-1.2,4.21-1.52,5.55-2.1,10-2.7,20.49-1.81,30.77l19.93-23.43c-.59-6.61-1.87-13.36-4.56-18.8-4.05,1.99-8.08,3.97-12.04,5.92Z`}),(0,K.jsx)(y.path,{className:`mark-ink`,custom:1,variants:$,d:`M7.97,78.01c-.12,2.62-.13,4.84-.07,6.32.27,10.06,1.27,20.42,5.23,29.7,6.97,15.16,12.63-1.62,13.99-9.67.53-2.99.92-6.02,1.19-9.07l-20.34-17.3Z`}),(0,K.jsx)(y.path,{className:`mark-ink`,custom:1.05,variants:$,d:`M24.99,58.88c-4-1.97-8.09-3.98-12.17-5.98-2.41,4.95-3.73,12.33-4.39,18.91l19.89,23.39c.89-10.27.28-20.77-1.81-30.77-.32-1.34-.83-3.4-1.52-5.55Z`}),(0,K.jsx)(y.path,{className:`mark-ink`,custom:1.2,variants:$,d:`M74.94,80.82l-.35-.14c1.19,2.74,1.81,5.76,1.76,8.54.07-2.79-.43-5.7-1.42-8.4Z`}),(0,K.jsx)(y.path,{className:`mark-ink`,custom:1.25,variants:$,d:`M62.37,106.73c-13.99-1.73-15.71-25.79-5.18-33.04-1.05-.43-2.09-.85-3.14-1.27-10.72,8.12-10.21,27.6,1.52,34.65,12.15,6.4,21.09-6.72,20.78-17.84.12,7.96-5.09,17.86-13.99,17.51Z`}),(0,K.jsx)(y.path,{className:`mark-ink`,custom:1.3,variants:$,d:`M132.56,80.46c-1.21,2.93-1.84,6.17-1.75,9.26-.05-3.09.71-6.47,2.18-9.43-.14.06-.28.11-.42.17Z`}),(0,K.jsx)(y.path,{className:`mark-ink`,custom:1.35,variants:$,d:`M152.44,72.44c-1.05.42-2.11.85-3.19,1.29,11.32,6.63,9.84,31.72-4.45,33.49-8.89.36-14.11-9.54-13.99-17.49-.3,11.14,8.61,24.25,20.79,17.85,11.98-7.19,12.24-27.33.84-35.13Z`}),(0,K.jsx)(y.path,{className:`mark-eye`,custom:1.5,variants:$,d:`M52.89,71.94c-4.79,2.93-8.13,9.34-8.13,16.78,0,10.22,6.26,18.5,13.99,18.5.12,0,.25-.02.37-.02,1.05.33,2.13.52,3.26.52,7.73,0,13.99-8.28,13.99-18.5,0-3.05-.57-5.92-1.56-8.46-7.41-2.96-14.78-5.93-21.92-8.82Z`}),(0,K.jsx)(y.path,{className:`mark-eye`,custom:1.55,variants:$,d:`M153.84,71.88c-.97.39-1.97.8-2.97,1.2,0,0,0,0,0,0-5.76,2.33-11.95,4.83-18.14,7.32-1.21,2.74-1.92,5.92-1.92,9.33,0,10.22,6.26,18.5,13.99,18.5,1.65,0,3.23-.4,4.7-1.09,7.06-.94,12.57-8.82,12.57-18.41,0-7.5-3.38-13.94-8.23-16.85Z`})]})},Pi=[.16,1,.3,1],Fi=.3,Ii=.9,Li=.12,Ri=`-2 -2 1022.54 142.85`,zi={hidden:{pathLength:0},drawn:e=>({pathLength:1,transition:{delay:e*Li,duration:Ii,ease:Pi}}),redraw:e=>{let t=e*Li,n=Fi+t+Ii;return{pathLength:[null,0,0,1],transition:{duration:n,times:[0,Fi/n,(Fi+t)/n,1],ease:[`easeOut`,`linear`,Pi]}}}},Bi=[{outline:`M0,136.75V2.09h67.33c15.89,0,27.6,4.18,35.13,12.55,7.53,8.36,11.29,19.59,11.29,33.67,0,9.06-2.3,17.01-6.9,23.84-4.6,6.83-10.87,11.92-18.82,15.26,1.95,1.54,3.52,3.24,4.7,5.12,1.18,1.88,2.47,4.5,3.87,7.84l15.89,36.38h-35.13l-15.06-34.29c-1.25-2.93-2.86-5.05-4.81-6.38-1.95-1.32-4.74-1.99-8.36-1.99h-15.47v42.66H0Z`,counter:`M33.67,68.17h24.88c6.55,0,11.67-1.64,15.37-4.91,3.69-3.27,5.54-8.26,5.54-14.95,0-13.52-6.48-20.28-19.45-20.28h-26.35v40.15Z`},{outline:`M188.61,138.85c-21.89,0-38.55-5.57-49.98-16.73-11.43-11.15-17.15-28.51-17.15-52.07,0-24.95,5.71-42.87,17.15-53.74C150.06,5.44,166.72,0,188.61,0s38.54,5.44,49.98,16.31c11.43,10.87,17.15,28.79,17.15,53.74,0,23.56-5.72,40.92-17.15,52.07-11.43,11.16-28.09,16.73-49.98,16.73Z`,counter:`M188.61,110.2c11.29,0,19.55-3.24,24.78-9.72,5.23-6.48,7.84-16.62,7.84-30.42,0-15.06-2.61-25.68-7.84-31.89-5.23-6.2-13.49-9.31-24.78-9.31s-19.76,3.1-24.99,9.31c-5.23,6.2-7.84,16.83-7.84,31.89,0,13.8,2.61,23.94,7.84,30.42s13.56,9.72,24.99,9.72Z`},{outline:`M299.85,136.75V28.02h-39.52V2.09h112.71v25.93h-39.52v108.73h-33.67Z`},{outline:`M386,136.75V2.09h33.67v134.66h-33.67Z`},{outline:`M438.9,136.75V2.09h33.25l36.59,74.65L545.13,2.09h33.04v134.66h-33.67V59.39l-26.56,54.37h-18.61l-26.77-54.37v77.37h-33.67Z`},{outline:`M593.22,136.75v-24.67h26.97v24.67h-26.97Z`},{outline:`M631.07,136.75L682.51,2.09h36.38l51.44,134.66h-35.13l-12.13-30.53h-44.96l-11.92,30.53h-35.13Z`,counter:`M682.72,81.34h35.76l-17.98-46.84-17.77,46.84Z`},{outline:`M785.39,136.75V2.09h67.33c15.89,0,27.6,4.18,35.13,12.55,7.53,8.36,11.29,19.59,11.29,33.67,0,9.06-2.3,17.01-6.9,23.84-4.6,6.83-10.87,11.92-18.82,15.26,1.95,1.54,3.52,3.24,4.71,5.12,1.18,1.88,2.47,4.5,3.87,7.84l15.89,36.38h-35.13l-15.06-34.29c-1.25-2.93-2.86-5.05-4.81-6.38-1.95-1.32-4.74-1.99-8.36-1.99h-15.47v42.66h-33.67Z`,counter:`M819.05,68.17h24.88c6.55,0,11.67-1.64,15.37-4.91,3.69-3.27,5.54-8.26,5.54-14.95,0-13.52-6.48-20.28-19.45-20.28h-26.35v40.15Z`},{outline:`M945.35,136.75V28.02h-39.52V2.09h112.71v25.93h-39.52v108.73h-33.67Z`}],Vi=({className:e})=>{let t=_(),n=h(),r=(0,b.useRef)(!1),i=(0,b.useRef)(0),a=(0,b.useRef)(null),o=async e=>{if(t||r.current)return;r.current=!0;let a=++i.current;try{if(await n.start(e),a!==i.current)return;n.set(`drawn`)}finally{a===i.current&&(r.current=!1)}};return(0,b.useEffect)(()=>{let e=i,t=r;return()=>{e.current++,n.stop(),t.current=!1}},[n]),(0,b.useEffect)(()=>()=>a.current?.(),[]),(0,K.jsx)(y.svg,{className:e,viewBox:Ri,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,initial:!t&&`hidden`,animate:n,viewport:{once:!0,amount:.35},onViewportEnter:()=>{a.current?.(),a.current=ni(()=>o(`drawn`))},onHoverStart:()=>o(`redraw`),children:Bi.flatMap(({outline:e,counter:t},n)=>[(0,K.jsx)(y.path,{d:e,custom:n,variants:zi},`${n}-outline`),...t?[(0,K.jsx)(y.path,{d:t,custom:n+.5,variants:zi},`${n}-counter`)]:[]])})},Hi=`a[href], button:not([disabled]), input, select, textarea, [tabindex]:not
2([tabindex="-1"])`;function Ui(e,t,n){let r=(0,b.useRef)(t);(0,b.useEffect)(()=>{r.current=t},[t]),(0,b.useEffect)(()=>{if(!e)return;let t=document.activeElement;n.current?.focus();let i=e=>{if(e.key===`Escape`){r.current();return}if(e.key===`Tab`){let t=n.current;if(!t)return;let r=t.querySelectorAll(Hi);if(r.length===0)return;let i=r[0],a=r[r.length-1],o=document.activeElement;e.shiftKey&&(o===i||o===t)?(e.preventDefault(),a.focus()):!e.shiftKey&&o===a&&(e.preventDefault(),i.focus())}};return document.addEventListener(`keydown`,i),()=>{document.removeEventListener(`keydown`,i),t?.focus?.()}},[e,n])}var Wi=({isOpen:e,onClose:t})=>{let n=(0,b.useRef)(null);return pi(e),Ui(e,t,n),(0,K.jsx)(m,{children:e&&(0,K.jsxs)(y.div,{className:`artwork-usage-modal`,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:[(0,K.jsx)(y.div,{className:`artwork-usage-modal__backdrop`,onClick:t,"aria-hidden":`true`}),(0,K.jsxs)(y.section,{ref:n,id:`artwork-usage-dialog`,className:`artwork-usage-modal__panel`,initial:{opacity:0,y:20,scale:.97},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:12,scale:.98},transition:{duration:.25,ease:[.16,1,.3,1]},role:`dialog`,"aria-modal":`true`,"aria-labelledby":`artwork-usage-title`,"aria-describedby":`artwork-usage-description`,tabIndex:-1,"data-lenis-prevent":!0,children:[(0,K.jsxs)(`header`,{className:`artwork-usage-modal__header`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`span`,{className:`artwork-usage-modal__eyebrow`,children:`Authorship record // ROTIM.ART`}),(0,K.jsx)(`h2`,{id:`artwork-usage-title`,children:`Artwork & Usage`})]}),(0,K.jsxs)(`button`,{type:`button`,className:`artwork-usage-modal__close`,onClick:t,children:[`Close `,(0,K.jsx)(`span`,{"aria-hidden":`true`,children:`×`})]})]}),(0,K.jsxs)(`div`,{id:`artwork-usage-description`,className:`artwork-usage-modal__body`,children:[(0,K.jsxs)(`p`,{className:`artwork-usage-modal__owner`,children:[`Unless otherwise noted, all artwork on this site was created by`,(0,K.jsx)(`strong`,{children:` ROTIM (Tim Fangon)`}),`.`]}),(0,K.jsx)(`p`,{children:`Do not repost it or upload it to social media, reproduce, distribute, modify, sell, use it commercially, or include it in datasets or AI training without prior written permission—even with credit.`}),(0,K.jsx)(`p`,{className:`artwork-usage-modal__link-note`,children:`Linking to ROTIM.ART is welcome. Credit does not replace permission.`})]})]})]})})},Gi=()=>{let[e,t]=(0,b.useState)(!1),[n,r]=(0,b.useState)(!1),[i,a]=(0,b.useState)(!1),o=Rr({select:e=>e.location}),{scrollTo:s}=fi();return(0,b.useEffect)(()=>{let e=null,n=()=>{e||=window.requestAnimationFrame(()=>{let n=window.innerHeight+window.scrollY,i=document.documentElement.scrollHeight,a=window.scrollY;r(n>=i-100),t(a>20),e=null})};return window.addEventListener(`scroll`,n,{passive:!0}),n(),()=>{window.removeEventListener(`scroll`,n),e&&window.cancelAnimationFrame(e)}},[]),(0,b.useEffect)(()=>{if(typeof window>`u`)return;let e=o.hash||window.location.hash;if(e){let t=e.replace(`#`,``);if(t!==`gallery`&&t!==`about`){hi();return}return vi(t,s)}else hi(),s(0,{immediate:!0})},[o.hash,o.pathname,s]),(0,K.jsxs)(`div`,{className:`app-root`,children:[(0,K.jsx)(`a`,{className:`skip-link`,href:`#main-content`,children:`Skip to content`}),(0,K.jsx)(`div`,{className:`safari-tab-fix`,"aria-hidden":`true`,children:(0,K.jsx)(`div`,{className:`safari-tab-fix__overlay`})}),(0,K.jsx)(y.div,{className:`headerContainer ${e?`scrolled`:``}`,animate:{opacity:+!n,y:n?-50:0},transition:{duration:.3,ease:`easeInOut`},children:(0,K.jsx)(`div`,{className:`headerSticky`,children:(0,K.jsx)(`div`,{className:`menuContainer`,children:(0,K.jsx)(wi,{})})})}),(0,K.jsx)(`main`,{id:`main-content`,children:(0,K.jsx)(kr,{})}),(0,K.jsx)(Ti,{}),(0,K.jsx)(`footer`,{className:`site-footer`,"data-layer":`End`,children:(0,K.jsxs)(`div`,{className:`site-footer__inner`,children:[(0,K.jsxs)(`div`,{className:`site-footer__brand`,children:[(0,K.jsx)(Vi,{className:`site-footer__wordmark`}),(0,K.jsx)(Ni,{className:`site-footer__mark`})]}),(0,K.jsxs)(`div`,{className:`site-footer__meta`,children:[(0,K.jsxs)(`span`,{children:[`© `,new Date().getFullYear(),` ROTIM.ART - Tim Fangon - All Rights Reserved`]}),(0,K.jsx)(`span`,{className:`site-footer__network`,children:`Part of the Rotim x Sarth Network`}),(0,K.jsxs)(`button`,{type:`button`,className:`site-footer__link site-footer__link--button`,onClick:()=>a(!0),"aria-haspopup":`dialog`,"aria-controls":`artwork-usage-dialog`,children:[`Artwork & Usage `,(0,K.jsx)(`span`,{"aria-hidden":`true`,children:`[View notice]`})]}),(0,K.jsxs)(`a`,{className:`site-footer__link`,href:`https://chaoskrew.xyz`,target:`_blank`,rel:`noopener noreferrer`,children:[`Visit Chaos Krew `,(0,K.jsx)(`span`,{"aria-hidden":`true`,children:`↗`})]})]})]})}),(0,K.jsx)(Wi,{isOpen:i,onClose:()=>a(!1)}),(0,K.jsx)(Di,{})]})},Ki=hr({component:()=>(0,K.jsx)(Gi,{})}),qi=`modulepreload`,Ji=function(e){return`/`+e},Yi={},Xi=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Ji(t,n),t=s(t),t in Yi)return;Yi[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:qi,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n
2)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Zi={IndexRoute:gr(`/`)({component:vr(()=>Xi(()=>import(`./routes-9BfRpwa4.js`),__vite__mapDeps([0,1,2,3,4,5,6,7])),`component`)}).update({id:`/`,path:`/`,getParentRoute:()=>Ki})},Qi=Pr({routeTree:Ki._addFileChildren(Zi)._addFileTypes()}),$i=document.getElementById(`root`);$i.innerHTML||zr.createRoot($i).render((0,K.jsx)(b.StrictMode,{children:(0,K.jsx)(g,{reducedMotion:`user`,children:(0,K.jsx)(ti,{children:(0,K.jsx)(Lr,{router:Qi})})})}));export{_i as a,ni as c,gi as i,Ui as n,fi as o,hi as r,pi as s,Xi as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.