PageSourceSearch

https://www.swissgpu.ch/assets/index-rH1kvWgV.js

js swissgpu.ch collected 2026-10-04 05:19:09 UTC 654,000 bytes, 85 lines download raw bytes

1import{n as e,r as t,t as n}from"./rolldown-runtime-hePW80VL.js";import{a as r,c as i,i as a,l as o,n as s,o as c,r as l,s as u,t as d,u as f}from"./charting-BjkhyzO5.js";import{_ as p,a as m,b as h,c as g,d as _,f as v,g as y,h as b,i as x,l as S,m as C,n as w,o as T,p as ee,r as te,s as ne,t as re,u as E,v as ie,x as ae,y as oe}from"./query-D74_ft1b.js";import{A as se,B as D,C as O,D as ce,E as le,F as ue,G as de,H as k,I as A,K as fe,L as pe,M as j,N as me,O as he,P as ge,R as _e,S as ve,T as ye,U as be,V as xe,W as Se,_ as Ce,a as we,b as Te,c as Ee,d as De,f as Oe,g as ke,h as Ae,i as je,j as Me,k as Ne,l as Pe,m as Fe,n as Ie,o as Le,p as Re,q as ze,r as Be,s as Ve,t as He,u as Ue,v as We,w as Ge,x as Ke,y as qe,z as Je}from"./icons-DrnwbhHe.js";import{$ as Ye,A as Xe,B as Ze,C as Qe,D as $e,E as et,F as tt,G as nt,H as rt,I as it,J as at,K as ot,L as st,M as ct,N as lt,O as ut,P as dt,Q as ft,R as pt,S as mt,T as ht,U as gt,V as _t,W as vt,X as yt,Y as bt,Z as xt,_ as St,a as Ct,at as wt,b as Tt,c as Et,ct as Dt,d as Ot,dt as kt,et as At,f as jt,ft as Mt,g as Nt,h as Pt,i as Ft,it as It,j as Lt,k as Rt,l as zt,lt as Bt,m as Vt,n as Ht,nt as Ut,o as Wt,ot as Gt,p as Kt,pt as qt,q as Jt,r as Yt,rt as Xt,s as Zt,st as Qt,t as $t,tt as en,u as tn,ut as nn,v as rn,w as an,x as on,y as sn,z as cn}from"./radix-CgXdQRzo.js";import{n as ln,r as un,t as dn}from"./forms-Dlvk_Mbi.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),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var fn=`modulepreload`,pn=function(e){return`/`+e},mn={},hn=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=function(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))},i=function(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href},a=document.getElementsByTagName(`link`),o=document.querySelector(`meta[property=csp-nonce]`),s=o?.nonce||o?.getAttribute(`nonce`);r=e(t.map(e=>{if(e=pn(e,n),e=i(e),e in mn)return;mn[e]=!0;let t=e.endsWith(`.css`);for(let n=a.length-1;n>=0;n--){let r=a[n];if(r.href===e&&(!t||r.rel===`stylesheet`))return}let r=document.createElement(`link`);if(r.rel=t?`stylesheet`:fn,t||(r.as=`script`),r.crossOrigin=``,r.href=e,s&&r.setAttribute(`nonce`,s),document.head.appendChild(r),t)return new Promise((t,n)=>{r.addEventListener(`load`,t),r.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${e}`)))})}))}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)})},M=t(f(),1),gn=`popstate`;function _n(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function vn(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return Cn(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:wn(t)}return En(t,n,null,e)}function yn(e,t){if(e===!1||e==null)throw Error(t)}function bn(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function xn(){return Math.random().toString(36).substring(2,10)}function Sn(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Cn(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?Tn(t):t,state:n,key:t&&t.key||r||xn(),mask:i}}function wn({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function Tn(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function En(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=_n(e)?e:Cn(h.location,e,t);n&&n(r,e),l=u()+1;let d=Sn(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=_n(e)?e:Cn(h.location,e,t);n&&n(r,e),l=u();let i=Sn(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return Dn(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(gn,d),c=e,()=>{i.removeEventListener(gn,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function Dn(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),yn(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:wn(t);return i=i.replace(/ $/,`%20`),!n&&i.startsWith(`//`)&&(i=r+i),new URL(i,r)}function On(e,t,n=`/`){return kn(e,t,n,!1)}function kn(e,t,n,r,i){let a=qn((typeof t==`string`?Tn(t):t).pathname||`/`,n);if(a==null)return null;let o=i??An(e),s=null,c=Kn(a);for(let e=0;s==null&&e<o.length;++e)s=Un(o[e],c,r);return s}function An(e){let t=jn(e);return Nn(t),t}function jn(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;yn(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}
1" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=nr([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(yn(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),jn(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:Vn(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of Mn(e.path))a(e,t,!0,n)}),t}function Mn(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=Mn(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function Nn(e){e.sort((e,t)=>e.score===t.score?Hn(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var Pn=/^:[\w-]+$/,Fn=3,In=2,Ln=1,Rn=10,zn=-2,Bn=e=>e===`*`;function Vn(e,t){let n=e.split(`/`),r=n.length;return n.some(Bn)&&(r+=zn),t&&(r+=In),n.filter(e=>!Bn(e)).reduce((e,t)=>e+(Pn.test(t)?Fn:t===``?Ln:Rn),r)}function Hn(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Un(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=Wn({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=Wn({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;
1Object.assign(i,u.params),o.push({params:i,pathname:nr([a,u.pathname]),pathnameBase:ir(nr([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=nr([a,u.pathnameBase]))}return o}function Wn(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Gn(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Gn(e,t=!1,n=!0){bn(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Kn(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return bn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function qn(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}var Jn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Yn(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?Tn(e):e,a;return n?(n=tr(n),a=n.startsWith(`/`)?Xn(n.substring(1),`/`):Xn(n,t)):a=t,{pathname:a,search:ar(r),hash:or(i)}}function Xn(e,t){let n=rr(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Zn(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Qn(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function $n(e){let t=Qn(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function er(e,t,n,r=!1){let i;typeof e==`string`?i=Tn(e):(i={...e},yn(!i.pathname||!i.pathname.includes(`?`),Zn(`?`,`pathname`,`search`,i)),yn(!i.pathname||!i.pathname.includes(`#`),Zn(`#`,`pathname`,`hash`,i)),yn(!i.search||!i.search.includes(`#`),Zn(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Yn(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var tr=e=>e.replace(/\/\/+/g,`/`),nr=e=>tr(e.join(`/`)),rr=e=>e.replace(/\/+$/,``),ir=e=>rr(e).replace(/^\/*/,`/`),ar=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,or=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,sr=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function cr(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function lr(e){return nr(e.map(e=>e.route.path).filter(Boolean))||`/`}var ur=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function dr(e,t){let n=e;if(typeof n!=`string`||!Jn.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(ur)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=qn(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{bn(!1,`<Link to="${n}">
1 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var fr=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(fr);var pr=[`GET`,...fr];new Set(pr);var mr=M.createContext(null);mr.displayName=`DataRouter`;var hr=M.createContext(null);hr.displayName=`DataRouterState`;var gr=M.createContext(!1);function _r(){return M.useContext(gr)}var vr=M.createContext({isTransitioning:!1});vr.displayName=`ViewTransition`;var yr=M.createContext(new Map);yr.displayName=`Fetchers`;var br=M.createContext(null);br.displayName=`Await`;var xr=M.createContext(null);xr.displayName=`Navigation`;var Sr=M.createContext(null);Sr.displayName=`Location`;var Cr=M.createContext({outlet:null,matches:[],isDataRoute:!1});Cr.displayName=`Route`;var wr=M.createContext(null);wr.displayName=`RouteError`;var Tr=`REACT_ROUTER_ERROR`,Er=`REDIRECT`,Dr=`ROUTE_ERROR_RESPONSE`;function Or(e){if(e.startsWith(`${Tr}:${Er}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function kr(e){if(e.startsWith(`${Tr}:${Dr}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new sr(t.status,t.statusText,t.data)}catch{}}function Ar(e,{relative:t}={}){yn(jr(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=M.useContext(xr),{hash:i,pathname:a,search:o}=Br(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:nr([n,a])),r.createHref({pathname:s,search:o,hash:i})}function jr(){return M.useContext(Sr)!=null}function Mr(){return yn(jr(),`useLocation() may be used only in the context of a <Router> component.`),M.useContext(Sr).location}var Nr=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Pr(e){M.useContext(xr).static||M.useLayoutEffect(e)}function Fr(){let{isDataRoute:e}=M.useContext(Cr);return e?ri():Ir()}function Ir(){yn(jr(),`useNavigate() may be used only in the context of a <Router> component.`);let e=M.useContext(mr),{basename:t,navigator:n}=M.useContext(xr),{matches:r}=M.useContext(Cr),{pathname:i}=Mr(),a=JSON.stringify($n(r)),o=M.useRef(!1);return Pr(()=>{o.current=!0}),M.useCallback((r,s={})=>{if(bn(o.current,Nr),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=er(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:nr([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var Lr=M.createContext(null);function Rr(e){let t=M.useContext(Cr).outlet;return M.useMemo(()=>t&&M.createElement(Lr.Provider,{value:e},t),[t,e])}function zr(){let{matches:e}=M.useContext(Cr);return e[e.length-1]?.params??{}}function Br(e,{relative:t}={}){let{matches:n}=M.useContext(Cr),{pathname:r}=Mr(),i=JSON.stringify($n(n));return M.useMemo(()=>er(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Vr(e,t){return Hr(e,t)}function Hr(e,t,n){yn(jr(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=M.useContext(xr),{matches:i}=M.useContext(Cr),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;ai(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
2
3Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=Mr(),d;if(t){let e=typeof t==`string`?Tn(t):t;yn(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):On(e,{pathname:p});bn(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),bn(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=Yr(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:nr([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:nr([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?M.createElement(Sr.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function Ur(){let e=ni(),t=cr(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=M.createElement(M.Fragment,null,M.createElement(`p`,null,`💿 Hey developer 👋`),M.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,M.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,M.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),M.createElement(M.Fragment,null,M.createElement(`h2`,null,`Unexpected Application 
3Error!`),M.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?M.createElement(`pre`,{style:i},n):null,o)}var Wr=M.createElement(Ur,null),Gr=class extends M.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=kr(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:M.createElement(Cr.Provider,{value:this.props.routeContext},M.createElement(wr.Provider,{value:e,children:this.props.component}));return this.context?M.createElement(qr,{error:e},t):t}};Gr.contextType=gr;var Kr=new WeakMap;function qr({children:e,error:t}){let{basename:n}=M.useContext(xr);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Or(t.digest);if(e){let r=Kr.get(t);if(r)throw r;let i=dr(e.location,n);if(ur&&!Kr.get(t)){if(i.isExternal||e.reloadDocument)window.location.href=i.absoluteURL||i.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw Kr.set(t,n),n}}return M.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${i.absoluteURL||i.to}`})}}return e}function Jr({routeContext:e,match:t,children:n}){let r=M.useContext(mr);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),M.createElement(Cr.Provider,{value:e},n)}function Yr(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);yn(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:lr(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Wr,o&&(s<0&&c===0?(ai(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?M.createElement(n.route.Component,null):n.route.element?n.route.element:e,M.createElement(Jr,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?M.createElement(Gr,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Xr(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zr(e){let t=M.useContext(mr);return yn(t,Xr(e)),t}function Qr(e){let t=M.useContext(hr);return yn(t,Xr(e)),t}function $r(e){let t=M.useContext(Cr);return yn(t,Xr(e)),t}function ei(e){let t=$r(e),n=t.matches[t.matches.length-1];return yn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function ti(){return ei(`useRouteId`)}function ni(){let e=M.useContext(wr),t=Qr(`useRouteError`),n=ei(`useRouteError`);return e===void 0?t.errors?.[n]:e}function ri(){let{router:e}=Zr(`useNavigate`),t=ei(`useNavigate`),n=M.useRef(!1);return Pr(()=>{n.current=!0}),M.useCallback(async(r,i={})=>{bn(n.current,Nr),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var ii={};function ai(e,t,n){!t&&!ii[e]&&(ii[e]=!0,bn(!1,n))}M.memo(oi);function oi({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Hr(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function si({to:e,replace:t,state:n,relative:r}){yn(jr(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=M.useContext(xr);bn(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:a}=M.useContext(Cr),{pathname:o}=Mr(),s=Fr(),c=er(e,$n(a),o,r===`path`),l=JSON.stringify(c);return M.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function ci(e){return Rr(e.context)}function N(e){yn(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function li({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){yn(!jr(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=M.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=Tn(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=M.useMemo(()=>{let e=qn(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);
3return bn(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:M.createElement(xr.Provider,{value:c},M.createElement(Sr.Provider,{children:t,value:h}))}function ui({children:e,location:t}){return Vr(di(e),t)}M.Component;function di(e,t=[]){let n=[];return M.Children.forEach(e,(e,r)=>{if(!M.isValidElement(e))return;let i=[...t,r];if(e.type===M.Fragment){n.push.apply(n,di(e.props.children,i));return}yn(e.type===N,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),yn(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=di(e.props.children,i)),n.push(a)}),n}var fi=`get`,pi=`application/x-www-form-urlencoded`;function mi(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function hi(e){return mi(e)&&e.tagName.toLowerCase()===`button`}function gi(e){return mi(e)&&e.tagName.toLowerCase()===`form`}function _i(e){return mi(e)&&e.tagName.toLowerCase()===`input`}function vi(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function yi(e,t){return e.button===0&&(!t||t===`_self`)&&!vi(e)}function bi(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function xi(e,t){let n=bi(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var Si=null;function Ci(){if(Si===null)try{new FormData(document.createElement(`form`),0),Si=!1}catch{Si=!0}return Si}var wi=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Ti(e){return e!=null&&!wi.has(e)?(bn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${pi}"`),null):e}function Ei(e,t){let n,r,i,a,o;if(gi(e)){let o=e.getAttribute(`action`);r=o?qn(o,t):null,n=e.getAttribute(`method`)||fi,i=Ti(e.getAttribute(`enctype`))||pi,a=new FormData(e)}else if(hi(e)||_i(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?qn(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||fi,i=Ti(e.getAttribute(`formenctype`))||Ti(o.getAttribute(`enctype`))||pi,a=new FormData(o,e),!Ci()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(mi(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=fi,r=null,i=pi,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function Di(e,t){if(e===!1||e==null)throw Error(t)}function Oi(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&qn(i.pathname,t)===`/`?`${rr(t)}/_root.${r}`:`${rr(i.pathname)}.${r}`,i}async function ki(e,t){if(e.id in t)return t[e.id];try{let n=await hn(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.
3isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ai(e){return e!=null&&typeof e.page==`string`}function ji(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Mi(e,t,n){return Li((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await ki(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(ji).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Ni(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Pi(e,t,{includeHydrateFallback:n}={}){return Fi(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Fi(e){return[...new Set(e)]}function Ii(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Li(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Ai(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Ii(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Ri(){let e=M.useContext(mr);return Di(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function P(){let e=M.useContext(hr);return Di(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var zi=M.createContext(void 0);zi.displayName=`FrameworkContext`;function Bi(){let e=M.useContext(zi);return Di(e,`You must render this element inside a <HydratedRouter> element`),e}function Vi(e,t){let n=M.useContext(zi),[r,i]=M.useState(!1),[a,o]=M.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=M.useRef(null);M.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),M.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Hi(s,p),onBlur:Hi(c,m),onMouseEnter:Hi(l,p),onMouseLeave:Hi(u,m),onTouchStart:Hi(d,p)}]:[a,f,{}]:[!1,f,{}]}function Hi(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ui({page:e,...t}){let n=_r(),{router:r}=Ri(),i=M.useMemo(()=>On(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?n?M.createElement(Gi,{page:e,matches:i,...t}):M.createElement(Ki,{page:e,matches:i,...t}):null}function Wi(e){let{manifest:t,routeModules:n}=Bi(),[r,i]=M.useState([]);return M.useEffect(()=>{let r=!1;return Mi(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Gi({page:e,matches:t,...n}){let r=Mr(),{future:i}=Bi(),{basename:a}=Ri(),o=M.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Oi(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return M.createElement(M.Fragment,null,o.map(e=>M.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Ki({page:e,matches:t,...n}){let r=Mr(),{future:i,manifest:a,routeModules:o}=Bi(),{basename:s}=Ri(),{loaderData:c,matches:l}=P(),u=M.useMemo(()=>Ni(e,t,l,a,r,`data`),[e,t,l,a,r]),d=M.useMemo(()=>Ni(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=M.useMemo(()=>
3{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=Oi(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=M.useMemo(()=>Pi(d,a),[d,a]),m=Wi(d);return M.createElement(M.Fragment,null,f.map(e=>M.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>M.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>M.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function qi(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}M.Component;var Ji=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Ji&&(window.__reactRouterVersion=`7.17.0`)}catch{}function Yi({basename:e,children:t,useTransitions:n,window:r}){let i=M.useRef();i.current??=vn({window:r,v5Compat:!0});let a=i.current,[o,s]=M.useState({action:a.action,location:a.location}),c=M.useCallback(e=>{n===!1?s(e):M.startTransition(()=>s(e))},[n]);return M.useLayoutEffect(()=>a.listen(c),[a,c]),M.createElement(li,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var Xi=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,F=M.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=M.useContext(xr),v=typeof l==`string`&&Xi.test(l),y=dr(l,h);l=y.to;let b=Ar(l,{relative:r}),x=Mr(),S=null;if(o){let e=er(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:nr([h,e.pathname])),S=g.createHref(e)}let[C,w,T]=Vi(n,p),ee=ta(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function te(t){e&&e(t),t.defaultPrevented||ee(t)}let ne=!(y.isExternal||i),re=M.createElement(`a`,{...p,...T,href:(ne?S:void 0)||y.absoluteURL||b,onClick:ne?te:e,ref:qi(m,w),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?M.createElement(M.Fragment,null,re,M.createElement(Ui,{page:b})):re});F.displayName=`Link`;var Zi=M.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Br(a,{relative:c.relative}),d=Mr(),f=M.useContext(hr),{navigator:p,basename:m}=M.useContext(xr),h=f!=null&&sa(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=qn(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return M.createElement(F,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)});Zi.displayName=`NavLink`;var Qi=M.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=fi,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=M.useContext(xr),g=aa(),_=oa(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&Xi.test(s);return M.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?M.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Qi.displayName=`Form`;function $i(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ea(e){let t=M.useContext(mr);return yn(t,$i(e)),t}function ta(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Fr(),d=Mr(),f=Br(e,{relative:o});return M.useCallback(p=>{if(yi(p,t)){p.preventDefault();let t=n===void 0?wn(d)===wn(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?M.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function na(e){bn(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=M.useRef(bi(e)),n=M.useRef(!1),r=Mr(),i=M.useMemo(()=>xi(r.search,n.current?null:t.current),[r.search]),a=Fr();return[i,M.useCallback((e,t)=>{let r=bi(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var ra=0,ia=()=>`__${String(++ra)}__`;function aa(){let{router:e}
3=ea(`useSubmit`),{basename:t}=M.useContext(xr),n=ti(),r=e.fetch,i=e.navigate;return M.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Ei(e,t);if(a.navigate===!1){let e=a.fetcherKey||ia();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function oa(e,{relative:t}={}){let{basename:n}=M.useContext(xr),r=M.useContext(Cr);yn(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Br(e||`.`,{relative:t})},o=Mr();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:nr([n,a.pathname])),wn(a)}function sa(e,{relative:t}={}){let n=M.useContext(vr);yn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ea(`useViewTransitionState`),i=Br(e,{relative:t});if(!n.isTransitioning)return!1;let a=qn(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=qn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Wn(i.pathname,o)!=null||Wn(i.pathname,a)!=null}var ca=class extends ae{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new T({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=la(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=la(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=la(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=la(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>
3t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){S.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>C(t,e))}findAll(e={}){return this.getAll().filter(t=>C(e,t))}notify(e){S.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return S.batch(()=>Promise.all(e.map(e=>e.continue().catch(y))))}};function la(e){return e.options.scope?.id}var ua=class extends ae{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??v(r,t),a=this.get(i);return a||(a=new ne({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){S.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>b(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>b(e,t)):t}notify(e){S.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){S.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){S.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},da=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new ua,this.#t=e.mutationCache||new ca,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=h.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=g.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ie(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=E(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return S.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;S.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return S.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=S.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(y).catch(y)}invalidateQueries(e,t={}){return S.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=S.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(y)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(y)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(ie(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(y).catch(y)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(y).catch(y)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return g.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(_(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{p(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(_(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{p(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=v(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===oe&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},fa=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,pa=i,ma=(e,t)=>n=>{if(t?.variants==null)return pa(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=fa(t)||fa(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>
3{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return pa(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},ha=768;function ga(){let[e,t]=M.useState(()=>typeof window>`u`?!1:window.innerWidth<ha);return M.useEffect(()=>{let e=window.matchMedia(`(max-width: 767px)`),n=()=>{t(window.innerWidth<ha)};return e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[]),e}var _a=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},va=(e,t)=>({classGroupId:e,validator:t}),ya=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ba=`-`,xa=[],Sa=`arbitrary..`,Ca=e=>{let t=Ea(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Ta(e);let n=e.split(ba);return wa(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?_a(i,t):t:i||xa}return n[e]||xa}}},wa=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=wa(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(ba):e.slice(t).join(ba),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Ta=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Sa+r:void 0})(),Ea=e=>{let{theme:t,classGroups:n}=e;return Da(n,t)},Da=(e,t)=>{let n=ya();for(let r in e){let i=e[r];Oa(i,n,r,t)}return n},Oa=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];ka(i,t,n,r)}},ka=(e,t,n,r)=>{if(typeof e==`string`){Aa(e,t,n);return}if(typeof e==`function`){ja(e,t,n,r);return}Ma(e,t,n,r)},Aa=(e,t,n)=>{let r=e===``?t:Na(t,e);r.classGroupId=n},ja=(e,t,n,r)=>{if(Pa(e)){Oa(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(va(n,e))},Ma=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Oa(o,Na(t,a),n,r)}},Na=(e,t)=>{let n=e,r=t.split(ba),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=ya(),n.nextPart.set(t,i)),n=i}return n},Pa=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Fa=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Ia=`!`,La=`:`,Ra=[],za=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Ba=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===La){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Ia)?(c=s.slice(0,-1),l=!0):s.startsWith(Ia)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return za(t,l,c,u)};if(t){let e=t+La,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):za(Ra,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Va=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Ha=e=>({cache:Fa(e.cacheSize),parseClassName:Ba(e),sortModifiers:Va(e),postfixLookupClassGroupIds:Ua(e),...Ca(e)}),Ua=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Wa=/\s+/,Ga=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Wa),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Ia:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Ka=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=qa(n))&&(i&&(i+=` `),i+=r);return i},qa=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=qa(e[r]))&&(n&&(n+=` `),n+=t);return n},Ja=(e,...t)=>{let n,r,i,a,o=o=>(n=Ha(t.reduce((e,t)=>
vendor: 10,416 bytes, line 3
3t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Ga(e,n);return i(e,a),a};return a=o,(...e)=>a(Ka(...e))},Ya=[],Xa=e=>{let t=t=>t[e]||Ya;return t.isThemeGetter=!0,t},Za=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Qa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$a=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,eo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,to=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,no=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ro=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,io=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ao=e=>$a.test(e),I=e=>!!e&&!Number.isNaN(Number(e)),oo=e=>!!e&&Number.isInteger(Number(e)),so=e=>e.endsWith(`%`)&&I(e.slice(0,-1)),co=e=>eo.test(e),lo=()=>!0,uo=e=>to.test(e)&&!no.test(e),fo=()=>!1,po=e=>ro.test(e),mo=e=>io.test(e),ho=e=>!R(e)&&!z(e),L=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),go=e=>jo(e,Fo,fo),R=e=>Za.test(e),_o=e=>jo(e,Io,uo),vo=e=>jo(e,Lo,I),yo=e=>jo(e,zo,lo),bo=e=>jo(e,Ro,fo),xo=e=>jo(e,No,fo),So=e=>jo(e,Po,mo),Co=e=>jo(e,Bo,po),z=e=>Qa.test(e),wo=e=>Mo(e,Io),To=e=>Mo(e,Ro),Eo=e=>Mo(e,No),Do=e=>Mo(e,Fo),Oo=e=>Mo(e,Po),ko=e=>Mo(e,Bo,!0),Ao=e=>Mo(e,zo,!0),jo=(e,t,n)=>{let r=Za.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Mo=(e,t,n=!1)=>{let r=Qa.exec(e);return r?r[1]?t(r[1]):n:!1},No=e=>e===`position`||e===`percentage`,Po=e=>e===`image`||e===`url`,Fo=e=>e===`length`||e===`size`||e===`bg-size`,Io=e=>e===`length`,Lo=e=>e===`number`,Ro=e=>e===`family-name`,zo=e=>e===`number`||e===`weight`,Bo=e=>e===`shadow`,Vo=Ja(()=>{let e=Xa(`color`),t=Xa(`font`),n=Xa(`text`),r=Xa(`font-weight`),i=Xa(`tracking`),a=Xa(`leading`),o=Xa(`breakpoint`),s=Xa(`container`),c=Xa(`spacing`),l=Xa(`radius`),u=Xa(`shadow`),d=Xa(`inset-shadow`),f=Xa(`text-shadow`),p=Xa(`drop-shadow`),m=Xa(`blur`),h=Xa(`perspective`),g=Xa(`aspect`),_=Xa(`ease`),v=Xa(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),z,R],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[z,R,c],T=()=>[ao,`full`,`auto`,...w()],ee=()=>[oo,`none`,`subgrid`,z,R],te=()=>[`auto`,{span:[`full`,oo,z,R]},oo,z,R],ne=()=>[oo,`auto`,z,R],re=()=>[`auto`,`min`,`max`,`fr`,z,R],E=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],ie=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],ae=()=>[`auto`,...w()],oe=()=>[ao,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],se=()=>[ao,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],D=()=>[ao,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],O=()=>[e,z,R],ce=()=>[...b(),Eo,xo,{position:[z,R]}],le=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ue=()=>[`auto`,`cover`,`contain`,Do,go,{size:[z,R]}],de=()=>[so,wo,_o],k=()=>[``,`none`,`full`,l,z,R],A=()=>[``,I,wo,_o],fe=()=>[`solid`,`dashed`,`dotted`,`double`],pe=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],j=()=>[I,so,Eo,xo],me=()=>[``,`none`,m,z,R],he=()=>[`none`,I,z,R],ge=()=>[`none`,I,z,R],_e=()=>[I,z,R],ve=()=>[ao,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[co],breakpoint:[co],color:[lo],container:[co],"drop-shadow":[co],ease:[`in`,`out`,`in-out`],font:[ho],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[co],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[co],shadow:[co],spacing:[`px`,I],text:[co],"text-shadow":[co],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,ao,R,z,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,z,R]}],"container-named":[L],columns:[{columns:[I,R,z,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[oo,`auto`,z,R]}],basis:[{basis:[ao,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[I,ao,`auto`,`initial`,`none`,R]}],grow:[{grow:[``,I,z,R]}],shrink:[{shrink:[``,I,z,R]}],order:[{order:[oo,`first`,`last`,`none`,z,R]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":ne()}],"col-end":[{"col-end":ne()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":ne()}],"row-end":[{"row-end":ne()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":re()}],"auto-rows":[{"auto-rows":re()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...E(),`normal`]}],"justify-items":[{"justify-items":[...ie(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...ie()]}],"align-content":[{content:[`normal`,...E()]}],"align-items":[{items:[...ie(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...ie(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":E()}],"place-items":[{"place-items":[...ie(),`baseline`]}],"place-self":[{"place-self":[`auto`,...ie()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:ae()}],mx:[{mx:ae()}],my:[{my:ae()}],ms:[{ms:ae()}],me:[{me:ae()}],mbs:[{mbs:ae()}],mbe:[{mbe:ae()}],mt:[{mt:ae()}],mr:[{mr:ae()}],mb:[{mb:ae()}],ml:[{ml:ae()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:oe()}],"inline-size":[{inline:[`auto`,...se()]}],"min-inline-size":[{"min-inline":[`auto`,...se()]}],"max-inline-size":[{"max-inline":[`none`,...se()]}],"block-size":[{block:[`auto`,...D()]}],"min-block-size":[{"min-block":[`auto`,...D()]}],"max-block-size":[{"max-block":[`none`,...D()]}],w:[{w:[s,`screen`,...oe()]}],"min-w":[{"min-w":[s,`screen`,`none`,...oe()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...oe()]}],h:[{h:[`screen`,`lh`,...oe()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...oe()]}],"max-h":[{"max-h":[`screen`,`lh`,...oe()]}],"font-size":[{text:[`base`,n,wo,_o]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Ao,yo]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,so,R]}],"font-family":[{font:[To,bo,t]}],"font-features":[{"font-features":[R]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,z,R]}],"line-clamp":[{"line-clamp":[I,`none`,z,vo]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,z,R]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,z,R]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...fe(),`wavy`]}],"text-decoration-thickness":[{decoration:[I,`from-font`,`auto`,z,_o]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[I,`auto`,z,R]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[oo,z,R]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,z,R]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,z,R]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ce()}],"bg-repeat":[{bg:le()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},oo,z,R],radial:[``,z,R],conic:[oo,z,R]},Oo,So]}],"bg-color":[{bg:O()}
vendor: 7,812 bytes, line 3
3],"gradient-from-pos":[{from:de()}],"gradient-via-pos":[{via:de()}],"gradient-to-pos":[{to:de()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:A()}],"border-w-x":[{"border-x":A()}],"border-w-y":[{"border-y":A()}],"border-w-s":[{"border-s":A()}],"border-w-e":[{"border-e":A()}],"border-w-bs":[{"border-bs":A()}],"border-w-be":[{"border-be":A()}],"border-w-t":[{"border-t":A()}],"border-w-r":[{"border-r":A()}],"border-w-b":[{"border-b":A()}],"border-w-l":[{"border-l":A()}],"divide-x":[{"divide-x":A()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":A()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...fe(),`hidden`,`none`]}],"divide-style":[{divide:[...fe(),`hidden`,`none`]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-bs":[{"border-bs":O()}],"border-color-be":[{"border-be":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...fe(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[I,z,R]}],"outline-w":[{outline:[``,I,wo,_o]}],"outline-color":[{outline:O()}],shadow:[{shadow:[``,`none`,u,ko,Co]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":[`none`,d,ko,Co]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:A()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[I,_o]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":A()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":[`none`,f,ko,Co]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[I,z,R]}],"mix-blend":[{"mix-blend":[...pe(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":pe()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[I]}],"mask-image-linear-from-pos":[{"mask-linear-from":j()}],"mask-image-linear-to-pos":[{"mask-linear-to":j()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":j()}],"mask-image-t-to-pos":[{"mask-t-to":j()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":j()}],"mask-image-r-to-pos":[{"mask-r-to":j()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":j()}],"mask-image-b-to-pos":[{"mask-b-to":j()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":j()}],"mask-image-l-to-pos":[{"mask-l-to":j()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":j()}],"mask-image-x-to-pos":[{"mask-x-to":j()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":j()}],"mask-image-y-to-pos":[{"mask-y-to":j()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[z,R]}],"mask-image-radial-from-pos":[{"mask-radial-from":j()}],"mask-image-radial-to-pos":[{"mask-radial-to":j()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[I]}],"mask-image-conic-from-pos":[{"mask-conic-from":j()}],"mask-image-conic-to-pos":[{"mask-conic-to":j()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ce()}],"mask-repeat":[{mask:le()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,z,R]}],filter:[{filter:[``,`none`,z,R]}],blur:[{blur:me()}],brightness:[{brightness:[I,z,R]}],contrast:[{contrast:[I,z,R]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,ko,Co]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:[``,I,z,R]}],"hue-rotate":[{"hue-rotate":[I,z,R]}],invert:[{invert:[``,I,z,R]}],saturate:[{saturate:[I,z,R]}],sepia:[{sepia:[``,I,z,R]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,z,R]}],"backdrop-blur":[{"backdrop-blur":me()}],"backdrop-brightness":[{"backdrop-brightness":[I,z,R]}],"backdrop-contrast":[{"backdrop-contrast":[I,z,R]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,I,z,R]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[I,z,R]}],"backdrop-invert":[{"backdrop-invert":[``,I,z,R]}],"backdrop-opacity":[{"backdrop-opacity":[I,z,R]}],"backdrop-saturate":[{"backdrop-saturate":[I,z,R]}],"backdrop-sepia":[{"backdrop-sepia":[``,I,z,R]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,z,R]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[I,`initial`,z,R]}],ease:[{ease:[`linear`,`initial`,_,z,R]}],delay:[{delay:[I,z,R]}],animate:[{animate:[`none`,v,z,R]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,z,R]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:he()}],"rotate-x":[{"rotate-x":he()}],"rotate-y":[{"rotate-y":he()}],"rotate-z":[{"rotate-z":he()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":[`scale-3d`],skew:[{skew:_e()}],"skew-x":[{"skew-x":_e()}],"skew-y":[{"skew-y":_e()}],transform:[{transform:[z,R,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ve()}],"translate-x":[{"translate-x":ve()}],"translate-y":[{"translate-y":ve()}],"translate-z":[{"translate-z":ve()}],"translate-none":[`translate-none`],zoom:[{zoom:[oo,z,R]}],accent:[{accent:O()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:O()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom
3-in`,`zoom-out`,z,R]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":O()}],"scrollbar-track-color":[{"scrollbar-track":O()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}
3],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,z,R]}],fill:[{fill:[`none`,...O()]}],"stroke-w":[{stroke:[I,wo,_o,vo]}],stroke:[{stroke:[`none`,...O()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function B(...e){return Vo(i(e))}function Ho(e){return`CHF ${e.toFixed(2)}`}function Uo(e){return Ho(e/100)}var Wo=Intl.DateTimeFormat().resolvedOptions().timeZone;function Go(e,t){let n=new Intl.DateTimeFormat(`sv-SE`,{timeZone:Wo,year:`numeric`,month:`2-digit`,day:`2-digit`,hour12:!1,...t?{hour:`2-digit`,minute:`2-digit`,second:`2-digit`}:{}}).formatToParts(e),r=e=>n.find(t=>t.type===e)?.value??``,i=`${r(`year`)}-${r(`month`)}-${r(`day`)}`;return t?`${i} ${r(`hour`)}:${r(`minute`)}:${r(`second`)}`:i}function Ko(e){return Go(new Date(e),!0)}function qo(e){switch(e){case`ipxe`:case`mqtt`:return`bg-red-500 dark:bg-red-600`;case`installing`:case`waiting`:return`bg-yellow-500 dark:bg-yellow-600`;case`rented`:return`bg-green-500 dark:bg-green-600`;case`maintenance`:return`bg-blue-500 dark:bg-blue-600`;default:return`bg-green-500 dark:bg-green-600`}}function Jo(e,t){return t<=7?Array.from({length:t},(e,t)=>t+1):e<=4?[1,2,3,4,5,`ellipsis`,t]:e>=t-3?[1,`ellipsis`,t-4,t-3,t-2,t-1,t]:[1,`ellipsis`,e-1,e,e+1,`ellipsis`,t]}function Yo(e,t=`—`,n=!1){if(!e)return t;let r=new Date(e);return Number.isNaN(r.getTime())?t:Go(r,n)}function Xo(e){if(e===null||!e||e.length===0)return``;let t=e.map(e=>Number(e)).filter(e=>Number.isFinite(e)),n=e.filter(e=>!Number.isFinite(Number(e))),r=Array.from(new Set(t)).sort((e,t)=>
3e-t);if(r.length===0)return n.join(`, `);let i=[],a=r[0],o=r[0];for(let e=1;e<r.length;e+=1){let t=r[e];t===o+1?o=t:(i.push({start:a,end:o}),a=t,o=t)}return i.push({start:a,end:o}),[...i.map(e=>e.start===e.end?`${e.start}`:`${e.start}-${e.end}`),...n].join(`, `)}var V=m(),Zo=ma(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-xs hover:bg-primary/90`,destructive:`bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60`,outline:`border border-primary bg-background text-primary shadow-xs hover:bg-primary/10 hover:text-primary dark:bg-input/30 dark:border-primary dark:hover:bg-primary/20`,accent:`border border-accent bg-background text-accent shadow-xs hover:bg-accent/10 hover:text-accent dark:bg-input/30 dark:border-accent dark:hover:bg-accent/20`,secondary:`bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80`,ghost:`hover:bg-accent`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,sm:`h-6 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`}},defaultVariants:{variant:`default`,size:`default`}}),H=M.forwardRef(function({className:e,variant:t,size:n,asChild:r=!1,...i},a){let o=r?qt:`button`;return(0,V.jsx)(o,{ref:a,"data-slot":`button`,className:B(Zo({variant:t,size:n,className:e})),...i})});function Qo({className:e,type:t,...n}){return(0,V.jsx)(`input`,{type:t,"data-slot":`input`,className:B(`file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground border-input bg-input/60 text-foreground flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,`focus-visible:border-primary focus-visible:ring-primary/50 focus-visible:ring-[3px]`,`aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,e),...n})}function $o({className:e,orientation:t=`horizontal`,decorative:n=!0,...r}){return(0,V.jsx)(St,{"data-slot":`separator`,decorative:n,orientation:t,className:B(`bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px`,e),...r})}function es({...e}){return(0,V.jsx)(At,{"data-slot":`sheet`,...e})}function ts({...e}){return(0,V.jsx)(wt,{"data-slot":`sheet-portal`,...e})}function ns({className:e,...t}){return(0,V.jsx)(It,{"data-slot":`sheet-overlay`,className:B(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-background/50`,e),...t})}function rs({className:e,children:t,side:n=`right`,...r}){return(0,V.jsxs)(ts,{children:[(0,V.jsx)(ns,{}),(0,V.jsxs)(Ut,{"data-slot":`sheet-content`,className:B(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500`,n===`right`&&`data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm`,n===`left`&&`data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm`,n===`top`&&`data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b`,
3n===`bottom`&&`data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t`,e),...r,children:[t,(0,V.jsxs)(en,{className:`ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none`,children:[(0,V.jsx)(Le,{className:`size-4`}),(0,V.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function is({className:e,...t}){return(0,V.jsx)(`div`,{"data-slot":`sheet-header`,className:B(`flex flex-col gap-1.5 p-4`,e),...t})}function as({className:e,...t}){return(0,V.jsx)(Gt,{"data-slot":`sheet-title`,className:B(`text-foreground font-semibold`,e),...t})}function os({className:e,...t}){return(0,V.jsx)(Xt,{"data-slot":`sheet-description`,className:B(`text-muted-foreground text-sm`,e),...t})}function ss({delayDuration:e=0,...t}){return(0,V.jsx)(Ft,{"data-slot":`tooltip-provider`,delayDuration:e,...t})}function cs({...e}){return(0,V.jsx)(ss,{children:(0,V.jsx)(Ct,{"data-slot":`tooltip`,...e})})}function ls({...e}){return(0,V.jsx)(Wt,{"data-slot":`tooltip-trigger`,...e})}function us({className:e,sideOffset:t=0,children:n,...r}){return(0,V.jsx)(Yt,{children:(0,V.jsxs)(Ht,{"data-slot":`tooltip-content`,sideOffset:t,className:B(`bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance`,e),...r,children:[n,(0,V.jsx)($t,{className:`bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]`})]})})}var ds=`sidebar_state`,fs=604800,ps=`16rem`,ms=`18rem`,hs=`3rem`,gs=`b`,_s=M.createContext(null);function vs(){let e=M.useContext(_s);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function ys({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...o}){let s=ga(),[c,l]=M.useState(!1),[u,d]=M.useState(e),f=t??u,p=M.useCallback(e=>{let t=typeof e==`function`?e(f):e;n?n(t):d(t),document.cookie=`${ds}=${t}; path=/; max-age=${fs}`},[n,f]),m=M.useCallback(()=>s?l(e=>!e):p(e=>!e),[s,p,l]);M.useEffect(()=>{let e=e=>{e.key===gs&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),m())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[m]);let h=f?`expanded`:`collapsed`,g=M.useMemo(()=>({state:h,open:f,setOpen:p,isMobile:s,openMobile:c,setOpenMobile:l,toggleSidebar:m}),[h,f,p,s,c,l,m]);return(0,V.jsx)(_s.Provider,{value:g,children:(0,V.jsx)(ss,{delayDuration:0,children:(0,V.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":ps,"--sidebar-width-icon":hs,...i},className:B(`group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full`,r),...o,children:a})})})}function bs({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,...a}){let{isMobile:o,state:s,openMobile:c,setOpenMobile:l}=vs();return n===`none`?(0,V.jsx)(`div`,{"data-slot":`sidebar`,className:B(`text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col`,r),...a,children:i}):o?(0,V.jsx)(es,{open:c,onOpenChange:l,...a,children:(0,V.jsxs)(rs,{"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:{"--sidebar-width":ms},side:e,children:[(0,V.jsxs)(is,{className:`sr-only`,children:[(0,V.jsx)(as,{children:`Sidebar`}),(0,V.jsx)(os,{children:`Displays the mobile sidebar.`})]}),(0,V.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):(0,V.jsxs)(`div`,{className:`group peer text-sidebar-foreground hidden md:block`,"data-state":s,"data-collapsible":s===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,V.jsx)(`div`,{"data-slot":`sidebar-gap`,className:B(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,V.jsx)(`div`,{"data-slot":`sidebar-container`,className:B(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex`,e===`left`?`left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]`:`right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,r),...a,children:(0,V.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:`group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm`,children:i})})]})}function xs({className:e,onClick:t,...n}){let{toggleSidebar:r}=vs();return(0,V.jsxs)(H,{"data-sidebar":`trigger`,"data-slot":`sidebar-tr
3igger`,variant:`ghost`,size:`icon`,className:B(`size-7`,e),onClick:e=>{t?.(e),r()},...n,children:[(0,V.jsx)(We,{}),(0,V.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`})]})}function Ss({className:e,...t}){let{toggleSidebar:n}=vs();return(0,V.jsx)(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":`Toggle Sidebar`,tabIndex:-1,onClick:n,title:`Toggle Sidebar`,className:B(`hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex`,`in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize`,`hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full`,`[[data-side=left][data-collapsible=offcanvas]_&]:-right-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-left-2`,e),...t})}function Cs({className:e,...t}){return(0,V.jsx)(`main`,{"data-slot":`sidebar-inset`,className:B(`relative flex w-full flex-1 flex-col`,`md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2`,e),...t})}function ws({className:e,...t}){return(0,V.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:B(`flex flex-col gap-2 p-2`,e),...t})}function Ts({className:e,...t}){return(0,V.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:B(`flex flex-col gap-2 p-2`,e),...t})}function Es({className:e,...t}){return(0,V.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:B(`flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function Ds({className:e,...t}){return(0,V.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:B(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function Os({className:e,asChild:t=!1,...n}){let r=t?qt:`div`;return(0,V.jsx)(r,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:B(`text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0`,e),...n})}function ks({className:e,...t}){return(0,V.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:B(`flex w-full min-w-0 flex-col gap-1`,e),...t})}function As({className:e,...t}){return(0,V.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:B(`group/menu-item relative`,e),...t})}var js=ma(`peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function Ms({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:i,className:a,...o}){let s=e?qt:`button`,{isMobile:c,state:l}=vs(),u=(0,V.jsx)(s,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":r,"data-active":t,className:B(js({variant:n,size:r}),a),...o});return i?(typeof i==`string`&&(i={children:i}),(0,V.jsxs)(cs,{children:[(0,V.jsx)(ls,{asChild:!0,children:u}),(0,V.jsx)(us,{side:`right`,align:`center`,hidden:l!==`collapsed`||c,...i})]})):u}function Ns({className:e,asChild:t=!1,showOnHover:n=!1,...r}){let i=t?qt:`button`;return(0,V.jsx)(i,{"data-slot":`sidebar-menu-action`,"data-sidebar":`menu-action`,className:B(`text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,`after:absolute after:-inset-2 md:after:hidden`,`peer-data-[size=sm]/menu-button:top-1`,`peer-data-[size=default]/menu-button:top-1.5`,`peer-data-[size=lg]/menu-button:top-2.5`,`group-data-[collapsible=icon]:hidden`,n&&`peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0`,e),...r})}function Ps({className:e,...t}){return(0,V.jsx)(rt,{"data-slot":`avatar`,className:B(`relative flex size-8 shrink-0 overflow-hidden rounded-full`,e),...t})}function Fs({className:e,...t}){return(0,V.jsx)(vt,{"data-slot":`avatar-image`,className:B(`aspect-square size-full`,e),...t})}function Is({className:e,...t}){return(0,V.jsx)(gt,{"data-slot":`avatar-fallback`,className:B(`bg-muted flex size-full items-center justify-center rounded-full`,e),...t})}function Ls(){return(0,V.jsx)(`span`,{className:`inline-block cursor-pointer`,children:(0,V.jsxs)(`span`,{className:`font-sans font-bold text-2xl leading-none tracking-wider`,children:[(0,V.jsx)(`span`,{className:`text-accent`,children:`Swiss`}),(0,V.jsx)(`span`,{className:`text-foreground`,children:`GPU`})]})})}var Rs=t(o(),1);function zs(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var Bs=e=>{switch(e){case`success`:return Us;case`info`:return Gs;case`warning`:return Ws;case`error`:return Ks;default:return null}},Vs=Array(12).fill(0),Hs=({visible:e,className:t})=>M.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(
3Boolean).join(` `),"data-visible":e},M.createElement(`div`,{className:`sonner-spinner`},Vs.map((e,t)=>M.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),Us=M.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},M.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),Ws=M.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`},M.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),Gs=M.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},M.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),Ks=M.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`},M.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),qs=M.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`},M.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),M.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),Js=()=>{let[e,t]=M.useState(document.hidden);return M.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>window.removeEventListener(`visibilitychange`,e)},[]),e},Ys=1,Xs=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{let{message:t,...n}=e,r=typeof e?.id==`number`||e.id?.length>0?e.id:Ys++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0||e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>
3this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],M.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(Qs(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!M.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!M.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!M.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!M.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=t?.id||Ys++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Zs=(e,t)=>{let n=t?.id||Ys++;return Xs.addToast({title:e,...t,id:n}),n},Qs=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,U=Object.assign(Zs,{success:Xs.success,info:Xs.info,warning:Xs.warning,error:Xs.error,custom:Xs.custom,message:Xs.message,promise:Xs.promise,dismiss:Xs.dismiss,loading:Xs.loading},{getHistory:()=>Xs.toasts,getToasts:()=>Xs.getActiveToasts()});zs(`
vendor: 14,859 bytes, line 3
3[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
3`);function $s(e){return e.label!==void 0}var ec=3,tc=`24px`,nc=`16px`,rc=4e3,ic=356,ac=14,oc=45,sc=200;function cc(...e){return e.filter(Boolean).join(` `)}function lc(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var uc=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,expandByDefault:S,classNames:C,icons:w,closeButtonAriaLabel:T=`Close toast`}=e,[ee,te]=M.useState(null),[ne,re]=M.useState(null),[E,ie]=M.use
3State(!1),[ae,oe]=M.useState(!1),[se,D]=M.useState(!1),[O,ce]=M.useState(!1),[le,ue]=M.useState(!1),[de,k]=M.useState(0),[A,fe]=M.useState(0),pe=M.useRef(n.duration||y||rc),j=M.useRef(null),me=M.useRef(null),he=c===0,ge=c+1<=o,_e=n.type,ve=n.dismissible!==!1,ye=n.className||``,be=n.descriptionClassName||``,xe=M.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),Se=M.useMemo(()=>n.closeButton??p,[n.closeButton,p]),Ce=M.useMemo(()=>n.duration||y||rc,[n.duration,y]),we=M.useRef(0),Te=M.useRef(0),Ee=M.useRef(0),De=M.useRef(null),[Oe,ke]=b.split(`-`),Ae=M.useMemo(()=>s.reduce((e,t,n)=>n>=xe?e:e+t.height,0),[s,xe]),je=Js(),Me=n.invert||t,Ne=_e===`loading`;Te.current=M.useMemo(()=>xe*x+Ae,[xe,Ae]),M.useEffect(()=>{pe.current=Ce},[Ce]),M.useEffect(()=>{ie(!0)},[]),M.useEffect(()=>{let e=me.current;if(e){let t=e.getBoundingClientRect().height;return fe(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),M.useLayoutEffect(()=>{if(!E)return;let e=me.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,fe(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[E,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let Pe=M.useCallback(()=>{oe(!0),k(Te.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},sc)},[n,d,a,Te]);M.useEffect(()=>{if(n.promise&&_e===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||je?(()=>{if(Ee.current<we.current){let e=new Date().getTime()-we.current;pe.current-=e}Ee.current=new Date().getTime()})():pe.current!==1/0&&(we.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),Pe()},pe.current)),()=>clearTimeout(e)},[u,i,n,_e,je,Pe]),M.useEffect(()=>{n.delete&&(Pe(),n.onDismiss==null||n.onDismiss.call(n,n))},[Pe,n.delete]);function Fe(){return w?.loading?M.createElement(`div`,{className:cc(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":_e===`loading`},w.loading):M.createElement(Hs,{className:cc(C?.loader,n?.classNames?.loader),visible:_e===`loading`})}let Ie=n.icon||w?.[_e]||Bs(_e);return M.createElement(`li`,{tabIndex:0,ref:me,className:cc(_,ye,C?.toast,n?.classNames?.toast,C?.default,C?.[_e],n?.classNames?.[_e]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":E,"data-promise":!!n.promise,"data-swiped":le,"data-removed":ae,"data-visible":ge,"data-y-position":Oe,"data-x-position":ke,"data-index":c,"data-front":he,"data-swiping":se,"data-dismissible":ve,"data-type":_e,"data-invert":Me,"data-swipe-out":O,"data-swipe-direction":ne,"data-expanded":!!(u||S&&E),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${ae?de:Te.current}px`,"--initial-height":S?`auto`:`${A}px`,...m,...n.style},onDragEnd:()=>{D(!1),te(null),De.current=null},onPointerDown:e=>{e.button!==2&&!Ne&&ve&&(j.current=new Date,k(Te.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(D(!0),De.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{if(O||!ve)return;De.current=null;let e=Number(me.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(me.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-j.current?.getTime(),i=ee===`x`?e:t,a=Math.abs(i)/r;if(Math.abs(i)>=oc||a>.11){k(Te.current),n.onDismiss==null||n.onDismiss.call(n,n),re(ee===`x`?e>0?`right`:`left`:t>0?`down`:`up`),Pe(),ce(!0);return}var o,s;(o=me.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=me.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`),ue(!1),D(!1),te(null)},onPointerMove:t=>{var n,r;if(!De.current||!ve||window.getSelection()?.toString().length>0)return;let i=t.clientY-De.current.y,a=t.clientX-De.current.x,o=e.swipeDirections??lc(b);!ee&&(Math.abs(a)>1||Math.abs(i)>1)&&te(Math.abs(a)>Math.abs(i)?`x`:`y`);let s={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if(ee===`y`){if(o.includes(`top`)||o.includes(`bottom`)){if(o.includes(`top`)&&i<0||o.includes(`bottom`)&&i>0)s.y=i;else{let e=i*c(i);s.y=Math.abs(e)<Math.abs(i)?e:i}}}else if(ee===`x`&&(o.includes(`left`)||o.includes(`right`))){if(o.includes(`left`)&&a<0||o.includes(`right`)&&a>0)s.x=a;else{let e=a*c(a);s.x=Math.abs(e)<Math.abs(a)?e:a}}(Math.abs(s.x)>0||Math.abs(s.y)>0)&&ue(!0),(n=me.current)==null||n.style.setProperty(`--swipe-amount-x`,`${s.x}px`),(r=me.current)==null||r.style.setProperty(`--swipe-amount-y`,`${s.y}px`)}},Se&&!n.jsx&&_e!==`loading`?M.createElement(`button`,{"aria-label":T,"data-disabled":Ne,"data-close-button":!0,onClick:Ne||!ve?()=>{}:()=>{Pe(),n.onDismiss==null||n.onDismiss.call(n,n)},className:cc(C?.closeButton,n?.classNames?.closeButton)},w?.close??qs):null,(_e||n.icon||n.promise)&&n.icon!==null&&(w?.[_e]!==null||n.icon)?M.createElement(`div`,{"data-icon":``,className:cc(C?.icon,n?.classNames?.icon)},n.promise||n.type===`loading`&&!n.icon?n.icon||Fe():null,n.type===`loading`?null:Ie):null,M.createElement(`div`,{"data-content":``,className:cc(C?.content,n?.classNames?.content)},M.createElement(`div`,{"data-title":``,className:cc(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?M.createElement(`div`,{"data-description":``,className:cc(v,be,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),M.isValidElement(n.cancel)?n.c
3ancel:n.cancel&&$s(n.cancel)?M.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{$s(n.cancel)&&ve&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),Pe())},className:cc(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,M.isValidElement(n.action)?n.action:n.action&&$s(n.action)?M.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{$s(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&Pe())},className:cc(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function dc(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function fc(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?nc:tc;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var pc=M.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=ec,toastOptions:g,dir:_=dc(),gap:v=ac,icons:y,containerAriaLabel:b=`Notifications`}=e,[x,S]=M.useState([]),C=M.useMemo(()=>n?x.filter(e=>e.toasterId===n):x.filter(e=>!e.toasterId),[x,n]),w=M.useMemo(()=>Array.from(new Set([i].concat(C.filter(e=>e.position).map(e=>e.position)))),[C,i]),[T,ee]=M.useState([]),[te,ne]=M.useState(!1),[re,E]=M.useState(!1),[ie,ae]=M.use
3State(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),oe=M.useRef(null),se=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),D=M.useRef(null),O=M.useRef(!1),ce=M.useCallback(e=>{S(t=>(t.find(t=>t.id===e.id)?.delete||Xs.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return M.useEffect(()=>Xs.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{S(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{Rs.flushSync(()=>{S(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[x]),M.useEffect(()=>{if(d!==`system`){ae(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?ae(`dark`):ae(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{ae(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{ae(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),M.useEffect(()=>{x.length<=1&&ne(!1)},[x]),M.useEffect(()=>{let e=e=>{if(a.every(t=>e[t]||e.code===t)){var t;ne(!0),(t=oe.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===oe.current||oe.current?.contains(document.activeElement))&&ne(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),M.useEffect(()=>{if(oe.current)return()=>{D.current&&(D.current.focus({preventScroll:!0}),D.current=null,O.current=!1)}},[oe.current]),M.createElement(`section`,{ref:t,"aria-label":`${b} ${se}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0},w.map((t,n)=>{let[i,a]=t.split(`-`);return C.length?M.createElement(`ol`,{key:t,dir:_===`auto`?dc():_,tabIndex:-1,ref:oe,className:c,"data-sonner-toaster":!0,"data-sonner-theme":ie,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${T[0]?.height||0}px`,"--width":`${ic}px`,"--gap":`${v}px`,...m,...fc(l,u)},onBlur:e=>{O.current&&!e.currentTarget.contains(e.relatedTarget)&&(O.current=!1,D.current&&=(D.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||O.current||(O.current=!0,D.current=e.relatedTarget)},onMouseEnter:()=>ne(!0),onMouseMove:()=>ne(!0),onMouseLeave:()=>{re||ne(!1)},onDragEnd:()=>ne(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||E(!0)},onPointerUp:()=>E(!1)},C.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>M.createElement(uc,{key:n.id,icons:y,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:re,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:ce,toasts:C.filter(e=>e.position==n.position),heights:T.filter(e=>e.position==n.position),setHeights:ee,expandByDefault:o,gap:v,expanded:te,swipeDirections:e.swipeDirections}))):null}))}),mc=`/api`;function hc(e){if(!Array.isArray(e))return null;let t=e.map(e=>{if(typeof e!=`object`||!e)return null;let t=e,n=Array.isArray(t.loc)?t.loc.filter(e=>e!==`body`).join(`.`):``,r=typeof t.msg==`string`?t.msg:null;return r?n?`${n}: ${r}`:r:null}).filter(e=>!!e);return t.length>0?t.join(`; `):null}async function gc(e){let t=`Request failed with status ${e.status}`;if(e.headers.get(`content-type`)?.includes(`application/json`))try{let t=await e.json();if(typeof t==`string`&&t.trim().length>0)return t;if(typeof t==`object`&&t){let e=t.detail;if(typeof e==`string`&&e.trim().length>0)return e;let n=hc(e);if(n)return n}}catch(e){console.error(`Failed to parse error response`,e)}else try{let t=await e.text();if(t.trim().length>0)return t}catch(e){console.error(`Failed to read error response body`,e)}return t}async function W(e,t=`GET`,n,r){let i={method:t,credentials:`include`};n!==void 0&&(i.headers={"Content-Type":`application/json`},i.body=JSON.stringify(n));let a;try{a=await fetch(`${mc}${e}`,i)}catch(e){let t=e instanceof Error?e.message:`Failed to reach the server`;throw r?.suppressToast||U.error(t),e}if(!a.ok){let e=await gc(a);throw r?.suppressToast||U.error(e),Error(e)}if(a.status===204)return null;let o=a.headers.get(`content-type`);return a.headers.get(`content-length`)===`0`||!o?.includes(`application/json`)?null:a.json()}var _c=[`me`];function vc(){return w({queryKey:_c,queryFn:async()=>{try{return await W(`/me`,`GET`,void 0,{suppressToast:!0})}catch{return null}}})}var yc=(0,M.createContext)(void 0);function bc(){let e=(0,M.useContext)(yc);if(!e)throw Error(`useUser must be used within a UserProvider`);return e}
3async function xc(e){await Promise.all([e.invalidateQueries({queryKey:_c}),e.invalidateQueries({queryKey:[`assigned-servers`]}),e.invalidateQueries({queryKey:[`rent-capacity`]})])}function Sc(e){let t=x(),n=vc(),r=n.data??null,i=r?.balance??null,a=!!r?.isadmin,o=n.isLoading,s=n.isLoading||n.isFetching;async function c(){window.location.href=`${mc}/login/github`}async function l(){window.location.href=`${mc}/login/google`}async function u(e,n){await W(`/auth/mail/login`,`POST`,{email:e,password:n}),await xc(t)}async function d(e){await W(`/auth/mail/register`,`POST`,{email:e})}let f=re({mutationFn:e=>W(`/me`,`POST`,e),onSuccess:async()=>{await xc(t)}}),p=re({mutationFn:()=>W(`/logout`,`POST`),onSuccess:async()=>{await Promise.all([t.resetQueries({queryKey:_c}),t.resetQueries({queryKey:[`assigned-servers`]}),t.resetQueries({queryKey:[`rent-capacity`]})])}}),m={current:r,initializing:o,balance:i,balanceLoading:s,isAdmin:a,reloadBalance:async()=>{await t.invalidateQueries({queryKey:_c})},loginWithGitHub:c,loginWithGoogle:l,loginWithMail:u,registerWithMail:d,updateProfile:async e=>{await f.mutateAsync(e)},logout:async()=>{await p.mutateAsync()}};return(0,V.jsx)(yc.Provider,{value:m,children:e.children})}function Cc(){let{isMobile:e,setOpenMobile:t}=vs();return(0,V.jsxs)(F,{to:`/`,className:`flex w-full items-center justify-center gap-2 px-2 group-data-[collapsible=icon]:px-0`,onClick:()=>{e&&t(!1)},children:[(0,V.jsx)(`img`,{src:`/logo_dark.png`,alt:`SwissGPU logo`,className:`hidden size-7 rounded-sm object-cover group-data-[collapsible=icon]:block`}),(0,V.jsx)(`span`,{className:`group-data-[collapsible=icon]:hidden`,children:(0,V.jsx)(Ls,{})})]})}function wc(){let{current:e,logout:t}=bc();if(!e)return null;let n=e.avatar??``;return(0,V.jsx)(ks,{children:(0,V.jsxs)(As,{children:[(0,V.jsxs)(Ms,{size:`lg`,children:[(0,V.jsxs)(Ps,{className:`h-8 w-8 rounded`,children:[(0,V.jsx)(Fs,{src:n,alt:e.email}),(0,V.jsx)(Is,{className:`rounded-lg`,children:e.email.substring(0,2).toUpperCase()})]}),(0,V.jsxs)(`div`,{className:`grid flex-1 text-left text-sm leading-tight`,children:[(0,V.jsx)(`span`,{className:`truncate font-medium`,children:e.name}),(0,V.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:e.email})]})]}),(0,V.jsx)(Ns,{onClick:t,className:`h-6/10 cursor-pointer`,children:(0,V.jsx)(Te,{})})]})})}function Tc({...e}){let t=Mr(),{current:n}=bc(),{isMobile:r,setOpenMobile:i}=vs(),a=x(),o=()=>{a.invalidateQueries(),r&&i(!1)};return(0,V.jsxs)(bs,{collapsible:`icon`,...e,children:[(0,V.jsx)(ws,{className:`mt-4`,children:(0,V.jsx)(Cc,{})}),(0,V.jsxs)(Es,{children:[(0,V.jsxs)(Ds,{children:[(0,V.jsx)(Os,{children:`Rent`}),(0,V.jsx)(ks,{children:(0,V.jsx)(As,{children:(0,V.jsx)(Ms,{asChild:!0,isActive:t.pathname.startsWith(`/rent`),children:(0,V.jsxs)(F,{to:`/rent`,onClick:o,children:[(0,V.jsx)(Ge,{}),(0,V.jsx)(`span`,{children:`Bare Metal`})]})})})})]}),(0,V.jsxs)(Ds,{className:`py-1`,children:[(0,V.jsx)(Os,{children:`Manage`}),(0,V.jsxs)(ks,{children:[(0,V.jsx)(As,{children:(0,V.jsx)(Ms,{asChild:!0,isActive:t.pathname.startsWith(`/servers`),children:(0,V.jsxs)(F,{to:`/servers`,onClick:o,children:[(0,V.jsx)(De,{}),(0,V.jsx)(`span`,{children:`Servers`})]})})}),(0,V.jsx)(As,{children:(0,V.jsx)(Ms,{asChild:!0,isActive:t.pathname.startsWith(`/account`),children:(0,V.jsxs)(F,{to:`/account`,onClick:o,children:[(0,V.jsx)(Ue,{}),(0,V.jsx)(`span`,{children:`Account`})]})})}),(0,V.jsx)(As,{children:(0,V.jsx)(Ms,{asChild:!0,isActive:t.pathname.startsWith(`/transactions`),children:(0,V.jsxs)(F,{to:`/transactions`,onClick:o,children:[(0,V.jsx)(Ae,{}),(0,V.jsx)(`span`,{children:`Transactions`})]})})})]})]}),(0,V.jsxs)(Ds,{className:`py-1`,children:[(0,V.jsx)(Os,{children:`Resources`}),(0,V.jsxs)(ks,{children:[(0,V.jsx)(As,{children:(0,V.jsx)(Ms,{asChild:!0,className:`focus-visible:ring-0`,children:(0,V.jsxs)(`a`,{href:`/roadmap`,target:`_blank`,rel:`noreferrer`,children:[(0,V.jsx)(Se,{}),(0,V.jsx)(`span`,{children:`Roadmap`}),(0,V.jsx)(Me,{className:`ml-auto group-data-[collapsible=icon]:hidden`})]})})}),(0,V.jsx)(As,{children:(0,V.jsx)(Ms,{asChild:!0,className:`focus-visible:ring-0`,children:(0,V.jsxs)(`a`,{href:`/docs`,target:`_blank`,rel:`noreferrer`,children:[(0,V.jsx)(ce,{}),(0,V.jsx)(`span`,{children:`Documentation`}),(0,V.jsx)(Me,{className:`ml-auto group-data-[collapsible=icon]:hidden`})]})})})]})]}),n?.isadmin&&(0,V.jsxs)(Ds,{className:`py-1`,children:[(0,V.jsx)(Os,{children:`Admin`}),(0,V.jsxs)(ks,{children:[(0,V.jsx)(As,{children:(0,V.jsx)(Ms,{asChild:!0,isActive:t.pathname.startsWith(`/admin/nodes`),children:(0,V.jsxs)(F,{to:`/admin/nodes`,onClick:o,children:[(0,V.jsx)(me,{}),(0,V.jsx)(`span`,{children:`Nodes`})]})})}),(0,V.jsx)(As,{children:(0,V.jsx)(Ms,{asChild:!0,isActive:t.pathname.startsWith(`/admin/users`),children:(0,V.jsxs)(F,{to:`/admin/users`,onClick:o,children:[(0,V.jsx)(Ee,{}),(0,V.jsx)(`span`,{children:`Users`})]})})}),(0,V.jsx)(As,{children:(0,V.jsx)(Ms,{asChild:!0,isActive:t.pathname.startsWith(`/admin/longterm`),children:(0,V.jsxs)(F,{to:`/admin/longterm`,onClick:o,children:[(0,V.jsx)(be,{}),(0,V.jsx)(`span`,{children:`Longterm`})]})})}),(0,V.jsx)(As,{children:(0,V.jsx)(Ms,{asChild:!0,isActive:t.pathname.startsWith(`/admin/documents`),children:(0,V.jsxs)(F,{to:`/admin/documents`,onClick:o,children:[(0,V.jsx)(ce,{}),(0,V.jsx)(`span`,{children:`Documents`})]})})})]})]})]}),(0,V.jsx)(Ts,{children:(0,V.jsx)(wc,{})}),(0,V.jsx)(Ss,{})]})}function Ec({...e}){return(0,V.jsx)(`nav`,{"aria-label":`breadcrumb`,"data-slot":`breadcrumb`,...e})}function Dc({className:e,...t}){return(0,V.jsx)(`ol`,{"data-slot":`breadcrumb-list`,className:B(`text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5`,e),...t})}function Oc({className:e,...t}){return(0,V.jsx)(`li`,{"data-slot":`breadcrumb-item`,className:B(`inline-flex items-center gap-1.5`,e),...t})}function kc({asChild:e,className:t,...n}){let r=e?qt:`a`;return(0,V.jsx)(r,{"data-slot":`breadcrumb-link`,className:B(`hover:text-foreground transition-colors`,t),...n})}function Ac({className:e,...t}){return(0,V.jsx)(`span`,{"data-slot":`breadcrumb-page`,role:`link`,"aria-disabled":`true`,"aria-current":`page`,className:B(`text-foreground font-normal`,e),...t})}function jc({children:e,className:t,...n}){return(0,V.jsx)(`li`,{"data-slot":`breadcrumb-separator`,role:`presentation`,"aria-hidden":`true`,className:B(`[&>svg]:size-3.5`,t),...n,children:e??(0,V.jsx)(Je,{})})}function Mc(e){return e===`account`?`Account`:e===`rent`?`Rent`:e===`bare-metal`?`Bare Metal`:e===`servers`?`Servers`:e===`admin`?`Admin`:e===`nodes`?`Servers`:e===`power`?`Power`:e===`users`?`Users`:e===`user`?`User`:e===`transactions`?`Transactions`
3:e===`roadmap`?`Roadmap`:e===`docs`?`About Us`:e===`ssh`?`SSH`:e===`rdp`?`RDP`:e===`moonlight`?`Moonlight`:e===`vscode`?`VS Code`:/^\d+$/.test(e)?`Server ${e}`:e===`login`?`Login`:/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(e)?e:e.charAt(0).toUpperCase()+e.slice(1)}function Nc(){let e=Mr(),t=e.pathname.split(`/`).filter(Boolean),n=e.state,r=t.map((e,n)=>({segment:e,path:`/`+t.slice(0,n+1).join(`/`)})),i=r[r.length-1],a=t[t.length-1],o=n?.label?n.label:i?Mc(i.segment):a?Mc(a):null;if(!o)return null;let s=n?.label?i?.segment??a:void 0;return(0,V.jsx)(Ec,{children:(0,V.jsx)(Dc,{children:r.map((e,t)=>{let n=t===r.length-1,i=n?o:Mc(e.segment);return(0,V.jsxs)(M.Fragment,{children:[(0,V.jsx)(Oc,{children:n?(0,V.jsxs)(Ac,{title:s,children:[i,s&&(0,V.jsx)(`span`,{className:`ml-1 text-muted-foreground text-xs`,children:s})]}):(0,V.jsx)(kc,{asChild:!0,children:(0,V.jsx)(F,{to:e.path,children:i})})}),!n&&(0,V.jsx)(jc,{})]},e.path)})})})}function Pc({heading:e,subtitle:t,className:n,...r}){return(0,V.jsxs)(`div`,{className:B(`flex flex-col items-center gap-2`,n),...r,children:[e?(0,V.jsxs)(`h1`,{className:`text-2xl font-bold`,children:[e,` `,(0,V.jsx)(Ls,{})]}):(0,V.jsx)(Ls,{}),t&&(0,V.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:t})]})}function Fc({className:e,...t}){return(0,V.jsx)(`div`,{className:B(`text-muted-foreground text-xs text-balance`,e),...t})}var G=Object.assign(function({children:e,className:t,...n}){return(0,V.jsx)(`div`,{className:B(`flex flex-col items-center justify-center gap-2 text-center`,t),...n,children:e})},{Header:Pc,Footer:Fc});function Ic({className:e,...t}){return(0,V.jsx)(dt,{"data-slot":`label`,className:B(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,e),...t})}function Lc({className:e,...t}){return(0,V.jsx)(Ke,{className:B(`animate-spin`,e),...t})}var Rc=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function zc({className:e,...t}){let n=bc(),[r,i]=na(),a=(0,M.useRef)(!1),o=w({queryKey:[`auth-availability`],queryFn:()=>W(`/auth/availability`,`GET`,void 0,{suppressToast:!0}),enabled:!n.current,retry:!1}),[s,c]=(0,M.useState)(``),[l,u]=(0,M.useState)(``),[d,f]=(0,M.useState)(!1),[p,m]=(0,M.useState)(null),[h,g]=(0,M.useState)(null),[_,v]=(0,M.useState)(!1),[y,b]=(0,M.useState)(null),[x,S]=(0,M.useState)(!1);if((0,M.useEffect)(()=>{if(r.get(`error`)!==`banned`||a.current)return;a.current=!0,U.error(`Your account is currently banned.`);let e=new URLSearchParams(r);e.delete(`error`),i(e,{replace:!0})},[r,i]),n.current)return(0,V.jsx)(si,{to:`/`,replace:!0});if(o.isLoading)return(0,V.jsx)(G,{className:B(e),...t,children:(0,V.jsx)(`div`,{className:`flex justify-center p-6`,children:(0,V.jsx)(Lc,{className:`size-6 text-muted-foreground`})})});if(o.data?.available===!1)return(0,V.jsxs)(G,{className:B(e),...t,children:[(0,V.jsx)(G.Header,{heading:`SwissGPU is not available in your country`}),(0,V.jsxs)(`p`,{className:`text-center text-sm text-muted-foreground`,children:[`Check the`,` `,(0,V.jsx)(`a`,{href:`/api/legal/gpu-end-user-compliance-certificate`,target:`_blank`,rel:`noreferrer noopener`,className:`text-accent underline`,children:`GPU End User Compliance Certificate`}),`.`]})]});async function C(){if(y===null)return;let e=s.trim().toLowerCase(),t=null,r=null;if(e?Rc.test(e)||(t=`Enter a valid email address`):t=`Email is required`,y===`login`&&!l&&(r=`Password is required`),m(t),g(r),!(t||r)){v(!0);try{y===`register`?(await n.registerWithMail(e),S(!0)):await n.loginWithMail(e,l)}catch{}finally{v(!1)}}}async function T(){let e=s.trim().toLowerCase();if(!e){m(`Email is required`);return}if(!Rc.test(e)){m(`Enter a valid email address`);return}m(null),v(!0);try{await W(`/auth/mail/forgot-password`,`POST`,{email:e}),U.success(`If an account exists for this email, a reset link has been sent.`)}catch{}finally{v(!1)}}function ee(e){e.preventDefault(),C()}return(0,V.jsxs)(G,{className:B(e),...t,children:[(0,V.jsx)(G.Header,{heading:`Welcome to`}),(0,V.jsxs)(`div`,{className:`flex w-full flex-col gap-4`,children:[(0,V.jsx)($o,{className:`bg-foreground
3/30`}),y===null?(0,V.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,V.jsx)(H,{variant:`outline`,type:`button`,className:`w-full`,onClick:()=>b(`login`),children:`Sign in with Email`}),(0,V.jsx)(H,{variant:`outline`,type:`button`,className:`w-full`,onClick:n.loginWithGitHub,children:`Continue with GitHub`}),(0,V.jsx)(H,{variant:`outline`,type:`button`,className:`w-full`,onClick:n.loginWithGoogle,children:`Continue with Google`}),(0,V.jsxs)(`div`,{className:`flex items-center gap-3 py-2`,children:[(0,V.jsx)($o,{className:`flex-1 bg-foreground/30`}),(0,V.jsxs)(`p`,{className:`whitespace-nowrap text-sm text-muted-foreground`,children:[`New to SwissGPU?`,` `,(0,V.jsx)(`button`,{type:`button`,className:`cursor-pointer text-foreground underline`,onClick:()=>b(`register`),children:`Create account`})]}),(0,V.jsx)($o,{className:`flex-1 bg-foreground/30`})]})]}):(0,V.jsx)(V.Fragment,{children:x?(0,V.jsxs)(`div`,{className:`grid gap-3 text-center`,children:[(0,V.jsx)(`p`,{className:`whitespace-nowrap text-sm text-muted-foreground`,children:`Check your inbox and open the confirmation link to create your account.`}),(0,V.jsx)(H,{variant:`outline`,type:`button`,disabled:_,onClick:()=>void C(),children:`Resend confirmation email`}),(0,V.jsx)(`button`,{type:`button`,className:`cursor-pointer text-sm text-foreground underline`,onClick:()=>{b(null),S(!1)},children:`Back`})]}):(0,V.jsxs)(`form`,{className:`grid gap-3`,onSubmit:ee,children:[(0,V.jsxs)(`div`,{className:`grid gap-2`,children:[(0,V.jsx)(Ic,{htmlFor:`mail-email`,children:`Email`}),(0,V.jsx)(Qo,{id:`mail-email`,name:`email`,type:`email`,autoComplete:`username`,required:!0,spellCheck:!1,autoCapitalize:`none`,"aria-invalid":p?`true`:`false`,value:s,onChange:e=>{c(e.target.value),p&&m(null)}}),p?(0,V.jsx)(`p`,{className:`text-sm text-destructive`,children:p}):null]}),y===`login`?(0,V.jsxs)(`div`,{className:`grid gap-2`,children:[(0,V.jsx)(Ic,{htmlFor:`mail-password`,children:`Password`}),(0,V.jsxs)(`div`,{className:`relative`,children:[(0,V.jsx)(Qo,{id:`mail-password`,name:`password`,type:d?`text`:`password`,autoComplete:`current-password`,required:!0,"aria-invalid":h?`true`:`false`,className:`pr-10`,value:l,onChange:e=>{u(e.target.value),h&&g(null)}}),(0,V.jsx)(`button`,{type:`button`,className:`absolute inset-y-0 right-0 flex h-9 items-center justify-center px-3 text-muted-foreground transition-colors hover:text-foreground`,"aria-label":d?`Hide password`:`Show password`,onClick:()=>f(e=>!e),children:d?(0,V.jsx)(se,{className:`size-4`}):(0,V.jsx)(Ne,{className:`size-4`})})]}),h?(0,V.jsx)(`p`,{className:`text-sm text-destructive`,children:h}):null]}):null,(0,V.jsx)(H,{variant:`outline`,type:`submit`,className:`w-full`,disabled:_,children:y===`register`?`Send confirmation email`:`Sign in`}),(0,V.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,V.jsx)(`button`,{type:`button`,className:`cursor-pointer text-sm text-foreground underline`,onClick:()=>b(null),children:`Back`}),y===`login`?(0,V.jsx)(`button`,{type:`button`,className:`cursor-pointer text-sm text-foreground underline`,onClick:T,children:`Forgot password`}):null]})]})})]}),(0,V.jsxs)(G.Footer,{children:[`By continuing, you agree to our`,` `,(0,V.jsx)(F,{to:`/terms`,className:`text-accent underline`,children:`Terms of Service`}),` `,`and`,` `,(0,V.jsx)(F,{to:`/privacy`,className:`text-accent underline`,children:`Privacy Policy`})]})]})}function Bc(){let{current:e,initializing:t}=bc(),n=Mr(),r=n.pathname===`/reset-password`||n.pathname===`/create-password`;return(0,V.jsxs)(ys,{children:[(0,V.jsx)(Tc,{}),(0,V.jsxs)(Cs,{children:[!t&&e&&!e.email_confirmed?(0,V.jsx)(`div`,{className:`bg-accent/20 text-sm text-primary`,children:(0,V.jsx)(`div`,{className:`mx-auto w-full leading-6 p-2 px-4`,children:`Please confirm your email address to keep your account active.`})}):null,(0,V.jsx)(`header`,{className:`flex h-16 shrink-0 items-center gap-2 transition-[width,height] ease-linear group-has-data-[collapsible=icon]/sidebar-wrapper:h-12`,children:(0,V.jsxs)(`div`,{className:`flex items-center gap-2 px-4`,children:[(0,V.jsx)(xs,{className:`-ml-1`}),(0,V.jsx)($o,{orientation:`vertical`,className:`mr-2 data-[orientation=vertical]:h-4`}),(0,V.jsx)(Nc,{})]})}),(0,V.jsx)(`div`,{className:`flex flex-1 justify-center`,children:t?(0,V.jsx)(`div`,{className:`container flex min-h-[calc(100svh-10rem)] items-center justify-center p-6 md:p-10 mx-auto w-full max-w-[1200px]`,children:(0,V.jsx)(Lc,{className:`size-6 text-muted-foreground`})}):e?(0,V.jsx)(`div`,{className:`container flex flex-col gap-4 p-4 pt-0 mx-auto w-full max-w-[1100px]`,children:(0,V.jsx)(ci,{})}):r?(0,V.jsx)(`div`,{className:`container flex min-h-[calc(100svh-10rem)] flex-col items-center justify-center gap-6 p-6 md:p-10 mx-auto w-full max-w-[1200px]`,children:(0,V.jsx)(ci,{})}):(0,V.jsx)(`div`,{className:`container flex min-h-[calc(100svh-10rem)] flex-col items-center justify-start gap-6 p-6 pt-16 md:justify-center md:p-10 mx-auto w-full max-w-[1200px]`,children:(0,V.jsx)(`div`,{className:`w-full max-w-sm`,children:(0,V.jsx)(zc,{})})})})]})]})}function Vc(){return(0,V.jsx)(`section`,{className:`pt-20 md:pt-32`,children:(0,V.jsxs)(`div`,{className:`site-page-shell`,children:[(0,V.jsxs)(`div`,{className:`flex w-full flex-col items-center justify-between gap-10 text-center lg:flex-row lg:items-start lg:text-left`,children:[(0,V.jsxs)(`div`,{className:`flex w-full flex-col items-center justify-between gap-6 lg:items-start`,children:[(0,V.jsx)(`div`,{className:`flex items-center gap-2 lg:justify-start`,children:(0,V.jsx)(Ls,{})}),(0,V.jsxs)(`ul`,{className:`text-muted-foreground flex items-center justify-center space-x-6`,children:[(0,V.jsx)(`li`,{className:`hover:text-accent transition-colors font-medium`,children:(0,V.jsx)(`a`,{href:`https://www.linkedin.com/company/swissgpu`,"aria-label":`LinkedIn`,target:`_blank`,rel:`noopener noreferrer`,children:(0,V.jsx)(Be,{className:`size-5`})})}),(0,V.jsx)(`li`,{className:`hover:text-accent transition-colors font-medium`,children:(0,V.jsx)(`a`,{href:`https://x.com/SwissGPU`,"aria-label":`X`,target:`_blank`,rel:`noopener noreferrer`,children:(0,V.jsx)(He,{className:`size-5`})})}),(0,V.jsx)(`li`,{className:`hover:text-accent transition-colors font-medium`,children:(0,V.jsx)(`a`,{href:`https://www.reddit.com/r/swissgpu/`,"aria-label":`Reddit`,target:`_blank`,rel:`noopener noreferrer`,children:(0,V.jsx)(je,{className:`size-5`})})}),(0,V.jsx)(`li`,{className:`hover:text-accent transition-colors font-medium`,children:(0,V.jsx)(`a`,{href:`https://discord.gg/79Qg3NhYjc`,"aria-label":`Discord`,target:`_blank`,rel:`noopener noreferrer`,children:(0,V.jsx)(Ie,{className:`size-5`})})})]})]}),(0,V.jsx)(`div`,{className:`grid w-full gap-6 lg:items-end lg:text-right`,children:(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`h3`,{className:`mb-4 font-bold`,children:`Resources`}),(0,V.jsxs)(`ul`,{className:`text-muted-foreground flex flex-col items-center gap-3 text-sm sm:flex-row sm:justify-center sm:gap-4 lg:justify-end`,children:[(0,V.jsx)(`li`,{className:`hover:text-accent transition-colors font-medium`,children:(0,V.jsx)(F,{to:`/pricing`,children:`Pricing`})}),(0,V.jsx)(`li`,{className:`hover:text-accent transition-colors font-medium`,children:(0,V.jsx)(F,{to:`/roadmap`,children:`Roadmap`})}),(0,V.jsx)(`li`,{className:`hover:text-accent transition-colors font-medium`,children:(0,V.jsx)(F,{to:`/docs`,children:`Documentation`})}),(0,V.jsx)(`li`,{className:`hover:text-accent transition-colors font-medium`,children:(0,V.jsx)(F,{to:`/contact`,children:`Contact`})})]})]})})]}),(0,V.jsxs)(`div`,{className:`text-muted-foreground mt-8 flex flex-col justify-between gap-4 border-t border-white/10 py-8 text-center text-xs font-medium md:flex-row md:items-center md:text-left`,children:[(0,V.jsxs)(`p`,{className:`order-2 lg:order-1`,children:[`LongLink SAGL`,` - v0.8.5`,` - All Rights Reserved`]}),(0,V.jsxs)(`ul`,{className:`order-1 flex flex-col gap-2 md:order-2 md:flex-row`,children:[(0,V.jsx)(`li`,{className:`hover:text-accent transition-colors`,children:(0,V.jsx)(F,{to:`/terms`,children:` Terms of Service`})}),(0,V.jsx)(`li`,{className:`hover:text-accent transition-colors`,children:(0,V.jsx)(F,{to:`/privacy`,children:` Privacy Policy`})}),(0,V.jsx)(`li`,{className:`hover:text-accent transition-colors`,children:(0,V.jsx)(F,{to:`/impressum`,children:` Impressum`})})]})]})]})})}function Hc(){return(0,V.jsx)(`header`,{className:`py-4`,children:(0,V.jsx)(`div`,{children:(0,V.jsxs)(`nav`,{className:`grid grid-cols-[1fr_auto] items-center gap-4 md:grid-cols-3`,"aria-label":`Main navigation`,children:[(0,V.jsx)(F,{to:`/`,className:`flex items-center gap-2`,"aria-label":`SwissGPU home`,children:(0,V.jsx)(Ls,{})}),(0,V.jsxs)(`ul`,{className:`hidden items-center justify-center gap-8 md:flex`,children:[(0,V.jsx)(`li`,{className:`font-medium hover:text-accent transition-colors`,children:(0,V.jsx)(F,{to:`/pricing`,className:`whitespace-nowrap`,children:`Pricing`})}),(0,V.jsx)(`li`,{className:`font-medium hover:text-accent transition-colors`,children:(0,V.jsx)(F,{to:`/roadmap`,className:`whitespace-nowrap`,children:`Roadmap`})}),(0,V.jsx)(`li`,{className:`font-medium hover:text-accent transition-colors`,children:(0,V.jsx)(F,{to:`/docs`,className:`whitespace-nowrap`,children:`Documentation`})})]}),(0,V.jsx)(H,{asChild:!0,variant:`accent`,className:`ml-auto w-32`,children:(0,V.jsx)(F,{to:`/rent`,children:`Get Started`})})]})})})}function Uc(){let{isMobile:e,setOpenMobile:t}=vs();return(0,V.jsx)(F,{to:`/`,className:`flex items-center px-2`,onClick:()=>{e&&t(!1)},children:(0,V.jsx)(Ls,{})})}function Wc({sections:e}){let{pathname:t}=Mr(),{isMobile:n,setOpenMobile:r}=vs(),i=()=>{n&&r(!1)};
3return n?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(bs,{collapsible:`icon`,children:[(0,V.jsx)(ws,{className:`mt-4`,children:(0,V.jsx)(Uc,{})}),(0,V.jsx)(Es,{children:e.map(e=>(0,V.jsxs)(Ds,{children:[(0,V.jsx)(Os,{children:e.label}),(0,V.jsx)(ks,{children:e.items.filter(e=>e.mobileOnly!==!1).map(e=>(0,V.jsx)(As,{children:(0,V.jsx)(Ms,{asChild:!0,isActive:t===e.to,children:(0,V.jsx)(F,{to:e.to,onClick:i,children:(0,V.jsx)(`span`,{children:e.label})})})},e.to))})]},e.label))}),(0,V.jsx)(Ss,{})]}),(0,V.jsxs)(Cs,{children:[(0,V.jsxs)(`header`,{className:`flex h-16 shrink-0 items-center justify-between gap-2 px-4`,children:[(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,V.jsx)(xs,{className:`-ml-1`}),(0,V.jsx)($o,{orientation:`vertical`,className:`mr-2 data-[orientation=vertical]:h-4`}),(0,V.jsx)(Uc,{})]}),(0,V.jsx)(H,{asChild:!0,variant:`accent`,className:`w-32`,children:(0,V.jsx)(F,{to:`/rent`,children:`Get Started`})})]}),(0,V.jsx)(`div`,{className:`flex flex-1 justify-center`,children:(0,V.jsx)(`div`,{className:`container mx-auto w-full max-w-[1100px] p-4 pt-0 space-y-6 blueprint`,children:(0,V.jsx)(ci,{})})}),(0,V.jsx)(Vc,{})]})]}):(0,V.jsxs)(`div`,{className:`w-full`,children:[(0,V.jsx)(`div`,{className:`site-page-shell`,children:(0,V.jsx)(Hc,{})}),(0,V.jsxs)(`main`,{className:`w-full`,children:[(0,V.jsx)(`section`,{className:`bg-background-primary`,children:(0,V.jsx)(`div`,{className:`site-page-shell`,children:(0,V.jsxs)(`div`,{className:`relative flex w-full justify-center`,children:[(0,V.jsx)(`nav`,{className:`mr-6 h-fit w-72 rounded-xl pb-14 pt-8`,children:(0,V.jsx)(`div`,{className:`space-y-4`,children:e.map(e=>(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`div`,{className:`mb-2 text-lg font-semibold text-white`,children:e.label}),(0,V.jsx)(`div`,{className:`space-y-1`,children:e.items.filter(e=>!e.mobileOnly).map(e=>{let n=t===e.to;return(0,V.jsxs)(F,{to:e.to,className:`relative flex items-center gap-3 rounded-lg py-2 pr-3 pl-4 text-xs transition-colors ${n?`bg-white/6 text-white shadow-[inset_0_0_0_1px_rgba(255,255,255,0.06)]`:`text-white/50 hover:bg-white/5 hover:text-white`}`,children:[(0,V.jsx)(`span`,{"aria-hidden":`true`,className:`absolute left-1 top-1/2 h-7 w-[3px] -translate-y-1/2 rounded-full bg-sidebar-primary transition-opacity ${n?`opacity-100`:`opacity-0`}`}),(0,V.jsx)(`span`,{children:e.label})]},e.to)})})]},e.label))})}),(0,V.jsx)(`div`,{className:`w-full max-w-[1000px]`,children:(0,V.jsx)(`div`,{className:`pt-6 space-y-6 blueprint`,children:(0,V.jsx)(ci,{})})})]})})}),(0,V.jsx)(Vc,{})]})]})}var Gc=[{label:`Introduction`,items:[{to:`/docs`,label:`About Us`}]},{label:`Connection`,items:[{to:`/docs/ssh`,label:`SSH`}]},{label:`Workflows`,items:[{to:`/docs/vscode`,label:`Visual Studio Code`}]},{label:`Guides`,items:[{to:`/guides/isaac-sim`,label:`Isaac Sim`},{to:`/guides/openclaw`,label:`OpenClaw`},{to:`/guides/carla`,label:`Carla`},{to:`/guides/comfyui`,label:`ComfyUI`},{to:`/guides/blender`,label:`Blender`},{to:`/guides/unreal-engine`,label:`Unreal Engine`},{to:`/guides/unity`,label:`Unity`},{to:`/guides/steam`,label:`Steam`},{to:`/guides/ollama`,label:`Ollama`},{to:`/guides/cudf`,label:`cuDF`},{to:`/guides/cuvs`,label:`cuVS`},{to:`/guides/cudnn`,label:`cuDNN`},{to:`/guides/cuopt`,label:`cuOpt`},{to:`/guides/tensorflow`,label:`TensorFlow`},{to:`/guides/cupy`,label:`CuPy`},{to:`/guides/pytorch`,label:`PyTorch`}]}];function Kc(){return(0,V.jsx)(ys,{children:(0,V.jsx)(Wc,{sections:Gc})})}var qc=[{label:`About us`,items:[{to:`/guides`,label:`Guides`},{to:`/docs`,label:`Documentation`,mobileOnly:!0}]},{label:`Simulation`,items:[{to:`/guides/isaac-sim`,label:`Isaac Sim`},{to:`/guides/openclaw`,label:`OpenClaw`},{to:`/guides/carla`,label:`Carla`}]},{label:`3D Creation`,items:[{to:`/guides/comfyui`,label:`ComfyUI`},{to:`/guides/blender`,label:`Blender`},{to:`/guides/unreal-engine`,label:`Unreal Engine`},{to:`/guides/unity`,label:`Unity`}]},{label:`Gaming`,items:[{to:`/guides/steam`,label:`Steam`}]},{label:`Data Science`,items:[{to:`/guides/ollama`,label:`Ollama`},{to:`/guides/cudf`,label:`cuDF`},{to:`/guides/cuvs`,label:`cuVS`},{to:`/guides/cudnn`,label:`cuDNN`},{to:`/guides/cuopt`,label:`cuOpt`},{to:`/guides/tensorflow`,label:`TensorFlow`},{to:`/guides/cupy`,label:`CuPy`},{to:`/guides/pytorch`,label:`PyTorch`}]}];
3function Jc(){return(0,V.jsx)(ys,{children:(0,V.jsx)(Wc,{sections:qc})})}function Yc(){let{pathname:e}=Mr();return(0,M.useEffect)(()=>{window.scrollTo({top:0,left:0,behavior:`auto`})},[e]),null}var Xc=[{src:`/eduid.svg`,alt:`EduID logo`},{src:`/liset-capital.jpg`,alt:`Liset Capital logo`},{src:`/sph.png`,alt:`SPH logo`},{src:`/equilibrio_logo.svg`,alt:`Equilibrio logo`}],Zc=Array.from({length:8},(e,t)=>Xc[t%Xc.length]);function Qc(){return(0,V.jsxs)(`div`,{className:`w-full`,children:[(0,V.jsx)(`div`,{className:`site-page-shell`,children:(0,V.jsx)(Hc,{})}),(0,V.jsxs)(`section`,{className:`relative flex min-h-[calc(100svh-4.5rem)] flex-col overflow-hidden bg-background-primary pt-[10svh] text-foreground md:min-h-[100svh] md:pt-[14svh] md:pb-30 xl:min-h-0 xl:pt-16 xl:pb-20`,children:[(0,V.jsx)(`div`,{className:`relative z-10 site-page-shell w-full`,children:(0,V.jsx)(`div`,{className:`flex flex-col gap-6 text-left`,children:(0,V.jsxs)(`div`,{children:[(0,V.jsxs)(`h1`,{className:`mb-6 text-pretty text-4xl font-bold tracking-tight sm:text-5xl lg:text-7xl`,children:[(0,V.jsx)(`span`,{className:`text-accent`,children:`Swiss`}),` Based GPU Servers`]}),(0,V.jsx)(`p`,{className:`max-w-4xl text-pretty text-lg font-medium leading-relaxed text-foreground/85 sm:text-2xl`,children:`Bare-metal GPU servers, fully hosted in Switzerland, with low latency and pricing that does not feel Swiss.`}),(0,V.jsx)(`div`,{className:`mt-6 mb-2 text-left md:mt-8 md:mb-12`,children:(0,V.jsx)(H,{asChild:!0,size:`lg`,className:`w-full bg-white text-black hover:bg-white/90 sm:w-auto sm:min-w-56`,children:(0,V.jsxs)(F,{to:`/rent`,className:`inline-flex items-center gap-2`,children:[(0,V.jsx)(`span`,{children:`Our available servers`}),(0,V.jsx)(fe,{className:`size-4`})]})})})]})})}),(0,V.jsxs)(`div`,{className:`relative z-10 mt-auto w-full bg-background-primary pb-2 md:pb-24`,children:[(0,V.jsx)(`div`,{className:`site-page-shell`,children:(0,V.jsx)(`div`,{className:`flex flex-col gap-3`,children:(0,V.jsx)(`h2`,{className:`text-2xl font-semibold tracking-tight sm:text-3xl`,children:`Our Partners`})})}),(0,V.jsxs)(`div`,{className:`relative mt-3 overflow-hidden md:mt-8`,children:[(0,V.jsx)(`div`,{className:`pointer-events-none absolute inset-y-0 left-0 z-10 w-16 bg-linear-to-r from-background-primary to-transparent sm:w-28`}),(0,V.jsx)(`div`,{className:`pointer-events-none absolute inset-y-0 right-0 z-10 w-16 bg-linear-to-l from-background-primary to-transparent sm:w-28`}),(0,V.jsx)(`div`,{className:`partner-marquee-track`,children:[0,1].map(e=>(0,V.jsx)(`div`,{className:`partner-marquee-group`,"aria-hidden":e===1,children:Zc.map((t,n)=>(0,V.jsx)(`div`,{className:`flex h-26 min-w-[12rem] items-center justify-center px-4 sm:h-30 sm:min-w-[15rem] sm:px-6 lg:min-w-[17rem]`,children:(0,V.jsx)(`img`,{src:t.src,alt:t.alt,className:`max-h-14 max-w-[10rem] object-contain sm:max-h-[4.5rem] sm:max-w-[12rem]`,loading:`lazy`})},`${e}-${t.alt}-${n}`))},e))})]})]})]}),(0,V.jsx)(`section`,{className:`relative w-full overflow-hidden bg-background-secondary py-8 md:py-36 md:-mt-10 md:[clip-path:polygon(-1%_12%,101%_0,101%_100%,-1%_90%)]`,children:(0,V.jsxs)(`div`,{className:`relative z-10 site-page-shell`,children:[(0,V.jsxs)(`div`,{className:`grid items-center gap-8 mt-4 mb-10 md:grid-cols-3 md:gap-12 md:mt-10`,children:[(0,V.jsx)(`div`,{className:`order-1 md:order-3 md:col-span-1 md:justify-self-end`,children:(0,V.jsx)(`img`,{src:`/hosting.png`,alt:`Remote work setup icon`,className:`mx-auto w-full max-w-[12rem] object-contain md:mx-0 md:max-w-[12rem]`,loading:`lazy`})}),(0,V.jsxs)(`div`,{className:`order-2 text-center md:order-1 md:col-span-2 md:justify-self-start md:max-w-[46rem] md:text-left`,children:[(0,V.jsx)(`h2`,{className:`mb-4 mt-8 text-3xl font-semibold tracking-tight sm:text-4xl`,children:`Fully hosted in Switzerland`}),(0,V.jsxs)(`p`,{className:`text-base text-foreground/80 sm:text-xl`,children:[`All our servers, data, and operations are Swiss-based.`,(0,V.jsx)(`br`,{}),(0,V.jsx)(`span`,{className:`block h-2`}),`When you end a server rental, everything is permanently wiped, including all data and the OS.`]}),(0,V.jsx)(`div`,{className:`mt-6 flex justify-center md:mt-8 md:justify-start`,children:(0,V.jsx)(H,{asChild:!0,variant:`outline`,size:`lg`,children:(0,V.jsxs)(F,{to:`/contact`,className:`inline-flex items-center gap-2`,children:[(0,V.jsx)(`span`,{children:`Contact us for technical details`}),(0,V.jsx)(fe,{className:`size-4`})]})})})]})]}),(0,V.jsxs)(`div`,{className:`grid items-center gap-8 md:grid-cols-3 md:gap-12 mt-16 mb-10`,children:[(0,V.jsx)(`div`,{className:`order-1 md:col-span-1 md:justify-self-start`,children:(0,V.jsx)(`img`,{src:`/metal.png`,alt:`Bare metal server icon`,className:`mx-auto w-full max-w-[12rem] object-contain md:mx-0 md:max-w-[12rem]`,loading:`lazy`})}),(0,V.jsxs)(`div`,{className:`order-2 text-center md:col-span-2 md:justify-self-end md:max-w-[46rem] md:text-right`,children:[(0,V.jsx)(`h2`,{className:`mb-4 mt-8 text-3xl font-semibold tracking-tight sm:text-4xl`,children:`High-performance workloads`}
3),(0,V.jsxs)(`p`,{className:`text-base text-foreground/80 sm:text-xl`,children:[`Every machine is fully dedicated to you, with direct access to the underlying GPU, CPU, memory, and storage resources.`,(0,V.jsx)(`br`,{}),(0,V.jsx)(`span`,{className:`block h-2`}),`Develop, render, and run AI workloads on isolated GPU infrastructure with secure SSH access and ultra-low latency desktops that feel just like working locally.`]})]})]})]})}),(0,V.jsx)(`section`,{className:`relative z-20 w-full overflow-hidden bg-background-tertiary py-20 md:-mt-24 md:py-14 md:pt-20 md:[clip-path:polygon(-1%_0,101%_12%,101%_100%,-1%_100%)]`,children:(0,V.jsx)(`div`,{className:`relative z-10 site-page-shell`,children:(0,V.jsxs)(`div`,{className:`mx-auto flex max-w-4xl flex-col items-center text-center`,children:[(0,V.jsx)(`p`,{className:`text-sm font-medium uppercase tracking-[0.22em] text-accent/80`,children:`Pricing`}),(0,V.jsx)(`h2`,{className:`mt-3 text-3xl font-semibold tracking-tight sm:text-4xl lg:text-5xl`,children:`Switzerland's most affordable GPUs`}),(0,V.jsx)(`p`,{className:`mt-4 max-w-2xl text-base text-foreground/80 sm:text-xl`,children:`If you are still paying enterprise prices for GPU capacity, that is a choice.`}),(0,V.jsxs)(`div`,{className:`mt-8 flex flex-col items-center justify-center gap-4 sm:flex-row`,children:[(0,V.jsx)(H,{asChild:!0,variant:`outline`,size:`lg`,className:`w-full sm:w-62`,children:(0,V.jsxs)(F,{to:`/pricing`,className:`inline-flex items-center gap-2`,children:[(0,V.jsx)(`span`,{children:`Pricing and billing details`}),(0,V.jsx)(fe,{className:`size-4`})]})}),(0,V.jsx)(H,{asChild:!0,size:`lg`,className:`w-full bg-white text-black hover:bg-white/90 sm:w-62`,children:(0,V.jsxs)(F,{to:`/rent`,className:`inline-flex items-center gap-2`,children:[(0,V.jsx)(`span`,{children:`Our available servers`}),(0,V.jsx)(fe,{className:`size-4`})]})})]})]})})}),(0,V.jsx)(`div`,{className:`-mt-px bg-background-tertiary`,children:(0,V.jsx)(Vc,{})})]})}function $c({className:e,containerClassName:t,...n}){return(0,V.jsx)(`div`,{"data-slot":`table-container`,className:B(`relative w-full overflow-x-auto`,t),children:(0,V.jsx)(`table`,{"data-slot":`table`,className:B(`w-full caption-bottom text-sm`,e),...n})})}function el({className:e,...t}){return(0,V.jsx)(`thead`,{"data-slot":`table-header`,className:B(`[&_tr]:border-b`,e),...t})}function tl({className:e,...t}){return(0,V.jsx)(`tbody`,{"data-slot":`table-body`,className:B(`[&_tr:last-child]:border-0`,e),...t})}function nl({className:e,...t}){return(0,V.jsx)(`tr`,{"data-slot":`table-row`,className:B(`hover:bg-muted/80 data-[state=selected]:bg-muted border-b transition-colors`,e),...t})}function rl({className:e,...t}){return(0,V.jsx)(`th`,{"data-slot":`table-head`,className:B(`text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,e),...t})}function il({className:e,...t}){return(0,V.jsx)(`td`,{"data-slot":`table-cell`,className:B(`p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,e),...t})}var al=[{gpu:`RTX 4080`,architecture:`Ada Lovelace`,apiGpu:`RTX4080`,vram:`16`,vcpu:`12`,ram:`32`,disk:`1 TB`,hourly:`0.20`,href:`https://www.nvidia.com/en-eu/geforce/graphics-cards/40-series/rtx-4080-family/`},{gpu:`RTX 5080`,architecture:`Blackwell`,apiGpu:`RTX5080`,vram:`16`,vcpu:`16`,ram:`32`,disk:`1 TB`,hourly:`0.25`,href:`https://www.nvidia.com/en-eu/geforce/graphics-cards/50-series/rtx-5080/`},{gpu:`RTX 3090`,architecture:`Ampere`,apiGpu:`RTX3090`,vram:`24`,vcpu:`12`,ram:`32`,disk:`1 TB`,hourly:`0.25`,href:`https://www.nvidia.com/en-eu/geforce/graphics-cards/30-series/rtx-3090-3090ti/`},{gpu:`RTX 4090`,architecture:`Ada Lovelace`,apiGpu:`RTX4090`,vram:`24`,vcpu:`16`,ram:`32`,disk:`1 TB`,hourly:`0.40`,href:`https://www.nvidia.com/en-eu/geforce/graphics-cards/40-series/rtx-4090/`},{gpu:`RTX 5090`,architecture:`Blackwell`,apiGpu:`RTX5090`,vram:`32`,vcpu:`16`,ram:`32`,disk:`1 TB`,hourly:`0.50`,href:`https://www.nvidia.com/en-eu/geforce/graphics-cards/50-series/rtx-5090/`},{gpu:`RTX 6000 ADA`,architecture:`Ada Lovelace`,apiGpu:`RTX6000ADA`,vram:`48`,vcpu:`20`,ram:`64`,disk:`2 TB`,hourly:`1.00`,href:`https://www.nvidia.com/en-eu/products/workstations/rtx-6000/`},{gpu:`RTX 6000 PRO`,architecture:`Blackwell`,apiGpu:`RTX6000PRO`,vram:`96`,vcpu:`20`,ram:`64`,disk:`4 TB`,hourly:`1.50`,href:`https://www.nvidia.com/en-eu/products/workstations/professional-desktop-gpus/rtx-pro-6000/`}];function ol({gpu:e,architecture:t,vram:n,vcpu:r,ram:i,disk:a,hourly:o,href:s}){return(0,V.jsxs)(nl,{className:`border-none hover:bg-transparent`,children:[(0,V.jsx)(il,{className:`border-y border-l border-white/8 bg-background-primary px-4 py-3`,children:(0,V.jsxs)(`div`,{className:`flex flex-col`,children:[(0,V.jsx)(`div`,{className:`text-base font-semibold text-foreground`,children:s?(0,V.jsxs)(`a`,{href:s,target:`_blank`,rel:`noopener noreferrer`,className:`text-primary hover:underline`,children:[`Nvidia `,e]}):(0,V.jsxs)(V.Fragment,{children:[`Nvidia `,e]})}
3),(0,V.jsxs)(`span`,{className:`text-xs text-foreground/60`,children:[t,` - `,n,` GB`]})]})}),(0,V.jsxs)(il,{className:`border-y border-white/8 bg-background-primary px-4 py-3`,children:[`CPU: `,r,` cores`,(0,V.jsx)(`br`,{}),(0,V.jsxs)(`span`,{className:`text-xs text-foreground/60`,children:[`RAM: `,i,` GB - DISK: `,a,` NVMe`]})]}),(0,V.jsx)(il,{className:`border-y border-r border-white/8 bg-background-primary px-4 py-3 text-right`,children:(0,V.jsxs)(`div`,{className:`flex flex-col`,children:[(0,V.jsxs)(`div`,{className:`font-semibold text-accent`,children:[o,` CHF/h`]}),(0,V.jsx)(`span`,{className:`text-xs text-foreground/60`,children:`+0.30 CHF/kWh`})]})})]})}function sl(){return(0,V.jsxs)(`div`,{className:`w-full`,children:[(0,V.jsx)(`div`,{className:`site-page-shell`,children:(0,V.jsx)(Hc,{})}),(0,V.jsxs)(`main`,{children:[(0,V.jsx)(`section`,{className:`relative overflow-hidden bg-background-primary py-20 md:py-28`,children:(0,V.jsx)(`div`,{className:`relative z-10 site-page-shell`,children:(0,V.jsxs)(`div`,{className:`max-w-4xl`,children:[(0,V.jsx)(`p`,{className:`text-sm font-medium uppercase tracking-[0.22em] text-accent/80`,children:`Pricing`}),(0,V.jsx)(`h1`,{className:`mt-3 text-4xl font-bold tracking-tight sm:text-5xl`,children:`Billing Details`}),(0,V.jsxs)(`div`,{className:`mt-5 max-w-3xl space-y-4 text-base leading-relaxed text-foreground/80 sm:text-xl`,children:[(0,V.jsx)(`p`,{children:`We use simple per-minute billing, so you only pay for the exact time your server is running.`}),(0,V.jsx)(`p`,{children:`You can add credits directly on the platform at any time. All payments are securely processed via Stripe, and we never handle or store your full payment details.`}),(0,V.jsx)(`p`,{children:`You rent a full dedicated physical server, and billing stops as soon as you power it off. There are no additional charges for storage or network usage.`}),(0,V.jsx)(`p`,{children:`Electricity is billed separately at CHF 0.30 per kWh, and a small CHF 0.50 fee applies when reinstalling the operating system to prevent abuse.`})]})]})})}),(0,V.jsx)(`section`,{className:`relative w-full overflow-hidden bg-background-secondary py-20 md:py-22 md:-mt-10 md:[clip-path:polygon(-1%_12%,101%_0,101%_100%,-1%_100%)]`,children:(0,V.jsx)(`div`,{className:`relative z-10 site-page-shell`,children:(0,V.jsxs)(`div`,{className:`mt-10 mb-10 flex flex-col gap-8 md:gap-10`,children:[(0,V.jsx)(`div`,{className:`flex flex-col gap-6 lg:flex-row lg:items-end lg:justify-end`,children:(0,V.jsxs)(`div`,{className:`max-w-3xl text-left lg:ml-auto lg:text-right`,children:[(0,V.jsx)(`h2`,{className:`mt-3 text-3xl font-semibold tracking-tight sm:text-4xl`,children:`Our Pricing`}),(0,V.jsxs)(`p`,{className:`mt-4 ml-auto max-w-2xl text-sm text-foreground/80 sm:text-base`,children:[`For custom configurations and long term commitments, contact us at`,` `,(0,V.jsx)(`a`,{href:`mailto:[email protected]`,className:`text-primary hover:underline`,children:`[email protected]`}),`.`]})]})}),(0,V.jsxs)($c,{className:`w-full border-separate border-spacing-y-3 text-base`,containerClassName:`md:hidden border border-white/8 bg-[#0d0d10] px-3 py-1 sm:px-5 sm:py-2 [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden`,children:[(0,V.jsx)(el,{children:(0,V.jsxs)(nl,{className:`border-none hover:bg-transparent`,children:[(0,V.jsx)(rl,{className:`px-4 py-3 text-sm font-semibold text-foreground/60`,children:`Specs`}),(0,V.jsx)(rl,{className:`px-4 py-3 text-right text-sm font-semibold text-foreground/60`,children:`Price`})]})}),(0,V.jsx)(tl,{children:al.map(e=>(0,V.jsxs)(nl,{className:`border-none hover:bg-transparent`,children:[(0,V.jsx)(il,{className:`border-y border-l border-white/8 bg-background-primary px-4 py-3`,children:(0,V.jsxs)(`div`,{className:`flex flex-col`,children:[(0,V.jsx)(`div`,{className:`text-base font-semibold text-foreground`,children:e.href?(0,V.jsxs)(`a`,{href:e.href,target:`_blank`,rel:`noopener noreferrer`,className:`text-primary hover:underline`,children:[`Nvidia `,e.gpu]}):(0,V.jsxs)(V.Fragment,{children:[`Nvidia `,e.gpu]})}
3),(0,V.jsxs)(`span`,{className:`text-xs text-foreground/60`,children:[`CPU: `,e.vcpu,` cores`,(0,V.jsx)(`br`,{}),`RAM: `,e.ram,` GB - SSD: `,e.disk,` NVMe`]})]})}),(0,V.jsx)(il,{className:`border-y border-r border-white/8 bg-background-primary px-4 py-3 text-right`,children:(0,V.jsxs)(`div`,{className:`flex flex-col`,children:[(0,V.jsxs)(`div`,{className:`font-semibold text-accent`,children:[e.hourly,` CHF/h`]}),(0,V.jsx)(`span`,{className:`text-xs text-foreground/60`,children:`+0.30 CHF/kWh`})]})})]},e.apiGpu))})]}),(0,V.jsxs)($c,{className:`min-w-[680px] border-separate border-spacing-y-3 text-base`,containerClassName:`hidden border border-white/8 bg-[#0d0d10] px-3 py-1 sm:px-5 sm:py-2 md:block [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden`,children:[(0,V.jsx)(el,{children:(0,V.jsxs)(nl,{className:`border-none hover:bg-transparent`,children:[(0,V.jsx)(rl,{className:`px-4 py-3 text-sm font-semibold text-foreground/60`,children:`GPU`}),(0,V.jsx)(rl,{className:`px-4 py-3 text-sm font-semibold text-foreground/60`,children:`Specs`}),(0,V.jsx)(rl,{className:`px-4 py-3 text-right text-sm font-semibold text-foreground/60`,children:`Price`})]})}),(0,V.jsx)(tl,{children:al.map(e=>(0,V.jsx)(ol,{gpu:e.gpu,architecture:e.architecture,vram:e.vram,vcpu:e.vcpu,ram:e.ram,disk:e.disk,hourly:e.hourly,href:e.href},e.apiGpu))})]})]})})})]}),(0,V.jsx)(`div`,{className:`bg-background-tertiary`,children:(0,V.jsx)(Vc,{})})]})}function cl(){return(0,V.jsxs)(`div`,{className:`w-full`,children:[(0,V.jsx)(`div`,{className:`site-page-shell`,children:(0,V.jsx)(Hc,{})}),(0,V.jsx)(`main`,{children:(0,V.jsx)(`section`,{className:`relative overflow-hidden bg-background-primary py-20 md:py-28`,children:(0,V.jsxs)(`div`,{className:`relative z-10 site-page-shell`,children:[(0,V.jsxs)(`div`,{className:`max-w-4xl`,children:[(0,V.jsx)(`p`,{className:`text-sm font-medium uppercase tracking-[0.22em] text-accent/80`,children:`Roadmap`}),(0,V.jsx)(`h1`,{className:`mt-3 text-4xl font-bold tracking-tight sm:text-5xl`,children:`What we are building next`}),(0,V.jsx)(`p`,{className:`mt-5 max-w-3xl text-base leading-relaxed text-foreground/80 sm:text-xl`,children:`A simple look at the next improvements planned for SwissGPU.`})]}),(0,V.jsxs)(`div`,{className:`mt-12 max-w-4xl border-y border-white/8`,children:[(0,V.jsxs)(`div`,{className:`grid gap-4 border-b border-white/8 py-7 sm:grid-cols-[8rem_1fr] sm:gap-8`,children:[(0,V.jsxs)(`div`,{className:`flex items-start gap-3 self-start`,children:[(0,V.jsx)(`span`,{className:`mt-1 size-2.5 bg-yellow-400`,"aria-hidden":!0}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`p`,{className:`font-mono text-sm text-foreground/60`,children:`v0.8.0`}),(0,V.jsx)(`p`,{className:`mt-1 text-xs text-foreground/40`,children:`ETA Q3 2026`})]})]}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold tracking-tight`,children:`More RTX PRO 6000 capacity`}),(0,V.jsx)(`p`,{className:`mt-2 leading-relaxed text-foreground/70`,children:`Expanding our RTX PRO 6000 fleet to make more high-performance capacity available.`})]})]}),(0,V.jsxs)(`div`,{className:`grid gap-4 border-b border-white/8 py-7 sm:grid-cols-[8rem_1fr] sm:gap-8`,children:[(0,V.jsxs)(`div`,{className:`flex items-start gap-3 self-start`,children:[(0,V.jsx)(`span`,{className:`mt-1 size-2.5 bg-yellow-400`,"aria-hidden":!0}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`p`,{className:`font-mono text-sm text-foreground/60`,children:`v0.9.0`}),(0,V.jsx)(`p`,{className:`mt-1 text-xs text-foreground/40`,children:`ETA Q4 2026`})]})]}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold tracking-tight`,children:`Virtual machines and templates`}),(0,V.jsx)(`p`,{className:`mt-2 leading-relaxed text-foreground/70`,children:`Launch preconfigured virtual machines from reusable templates for faster setup.`})]})]}),(0,V.jsxs)(`div`,{className:`grid gap-4 border-b border-white/8 py-7 sm:grid-cols-[8rem_1fr] sm:gap-8`,children:[(0,V.jsxs)(`div`,{className:`flex items-start gap-3 self-start`,children:[(0,V.jsx)(`span`,{className:`mt-1 size-2.5 bg-yellow-400`,"aria-hidden":!0}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`p`,{className:`font-mono text-sm text-foreground
3/60`,children:`v0.9.5`}),(0,V.jsx)(`p`,{className:`mt-1 text-xs text-foreground/40`,children:`ETA Q4 2026`})]})]}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold tracking-tight`,children:`Backups and paused instances`}),(0,V.jsx)(`p`,{className:`mt-2 leading-relaxed text-foreground/70`,children:`Protect your work with backups and pause instances when they are not in use.`})]})]}),(0,V.jsxs)(`div`,{className:`grid gap-4 py-7 sm:grid-cols-[8rem_1fr] sm:gap-8`,children:[(0,V.jsxs)(`div`,{className:`flex items-start gap-3 self-start`,children:[(0,V.jsx)(`span`,{className:`mt-1 size-2.5 bg-yellow-400`,"aria-hidden":!0}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`p`,{className:`font-mono text-sm text-foreground/60`,children:`v0.9.10`}),(0,V.jsx)(`p`,{className:`mt-1 text-xs text-foreground/40`,children:`ETA Q4 2026`})]})]}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold tracking-tight`,children:`Windows 11 support`}),(0,V.jsx)(`p`,{className:`mt-2 leading-relaxed text-foreground/70`,children:`Deploy Windows 11 instances for compatible desktop and GPU workloads.`})]})]})]})]})})}),(0,V.jsx)(`div`,{className:`-mt-px bg-background-primary`,children:(0,V.jsx)(Vc,{})})]})}function ll({...e}){return(0,V.jsx)(kt,{"data-slot":`accordion`,...e})}function ul({className:e,...t}){return(0,V.jsx)(nn,{"data-slot":`accordion-item`,className:B(`border-b last:border-b-0`,e),...t})}function dl({className:e,children:t,...n}){return(0,V.jsx)(Bt,{className:`flex`,children:(0,V.jsxs)(Mt,{"data-slot":`accordion-trigger`,className:B(`focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180`,e),...n,children:[t,(0,V.jsx)(xe,{className:`text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200`})]})})}function fl({className:e,children:t,...n}){return(0,V.jsx)(Dt,{"data-slot":`accordion-content`,className:`data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm`,...n,children:(0,V.jsx)(`div`,{className:B(`pt-0 pb-4`,e),children:t})})}function pl(){return(0,V.jsxs)(`div`,{className:`w-full`,children:[(0,V.jsx)(`div`,{className:`site-page-shell`,children:(0,V.jsx)(Hc,{})}),(0,V.jsxs)(`main`,{children:[(0,V.jsx)(`section`,{className:`relative w-full bg-background-primary py-16 md:py-22`,children:(0,V.jsx)(`div`,{className:`relative z-10 site-page-shell`,children:(0,V.jsx)(`div`,{className:`grid items-start gap-12`,children:(0,V.jsxs)(`div`,{className:`mx-auto w-full max-w-4xl space-y-6`,children:[(0,V.jsxs)(`div`,{className:`space-y-2`,children:[(0,V.jsx)(`h2`,{className:`text-3xl font-semibold tracking-tight sm:text-4xl`,children:`FAQ`}),(0,V.jsx)(`p`,{className:`text-muted-foreground`,children:`Common questions about SwissGPU rentals, access, and billing.`})]}),(0,V.jsxs)(ll,{type:`single`,collapsible:!0,className:`w-full`,children:[(0,V.jsxs)(ul,{value:`item-1`,children:[(0,V.jsx)(dl,{children:`What is SwissGPU?`}),(0,V.jsx)(fl,{children:`SwissGPU is a platform where you rent dedicated GPU servers in Switzerland. You get the full physical machine, not a shared VM, so resources are not split between multiple customers.`})]}),(0,V.jsxs)(ul,{value:`item-2`,children:[(0,V.jsx)(dl,{children:`How does SwissGPU work?`}),(0,V.jsx)(fl,{children:`SwissGPU is operated by LongLink Sagl and built by a small Swiss team with backgrounds in computer science, finance, and pharma, with years of experience in research and IT systems.`})]}),(0,V.jsxs)(ul,{value:`item-3`,children:[(0,V.jsx)(dl,{children:`What do I actually get when I rent a server from SwissGPU?`}),(0,V.jsx)(fl,{children:`You rent one full GPU server on demand and manage it from your account dashboard. You can choose a template, deploy it, connect over SSH for Linux workflows, or use remote desktop for desktop workloads. The service is built around direct access to a dedicated machine, straightforward controls, and clear usage tracking in one place.`})]}),(0,V.jsxs)(ul,{value:`item-4`,children:[(0,V.jsx)(dl,{children:`How does billing work, and what extra fees should I expect?`}),(0,V.jsx)(fl,{children:`Billing runs per minute while your server is on, and it stops when you power the server off. The listed server price covers the machine itself, and there are no separate storage or network add-ons. Reinstalling the operating system currently has a CHF 0.50 fee. Important: when you power a server off, it does not resume the same running session automatically. We are actively working on a resume-style feature to improve this.`})]}),(0,V.jsxs)(ul,{value:`item-5`,children:[(0,V.jsx)(dl,{children:`Which server configurations are available right now?`}),(0,V.jsx)(fl,{children:`Availability changes with inventory, so the Rent page is the source of truth. Every listing shows the GPU model, CPU, RAM, SSD, ports, and hourly cost so you can compare machines before renting. On the public pricing page, examples already listed include RTX 5090 and RTX 4090 entries, and more models are shown as inventory is added.`})]}),(0,V.jsxs)(ul,{value:`item-6`,children:[(0,V.jsx)(dl,{children:`Where are SwissGPU servers hosted?`}),(0,V.jsx)(fl,{children:`All the Servers are hosted in Switzerland. All the infrastru
3cture is owned and operated directly by the SwissGPU team. We do not sublet any resources from third parties, so you get direct access to the physical machines we manage in our facility.`})]})]})]})})})}),(0,V.jsx)(`section`,{className:`relative z-20 w-full overflow-hidden py-20 -mt-16 [clip-path:polygon(-1%_-2%,101%_10%,101%_100%,-1%_100%)] md:py-14 md:-mt-24 md:pt-20 md:[clip-path:polygon(-1%_0,101%_12%,101%_100%,-1%_100%)]`,children:(0,V.jsx)(`div`,{className:`relative z-10 site-page-shell`,children:(0,V.jsxs)(`div`,{className:`mx-auto flex max-w-4xl flex-col items-center text-center`,children:[(0,V.jsx)(`p`,{className:`text-sm font-medium uppercase tracking-[0.22em] text-accent/80`,children:`Contact`}),(0,V.jsx)(`h2`,{className:`mt-3 text-3xl font-semibold tracking-tight sm:text-4xl lg:text-5xl`,children:`Contact information`}),(0,V.jsx)(`p`,{className:`mt-4 max-w-2xl text-base text-foreground/80 sm:text-xl`}),(0,V.jsxs)(`div`,{className:`mt-8 flex w-full flex-col items-center gap-4`,children:[(0,V.jsxs)(`div`,{className:`space-y-1`,children:[(0,V.jsx)(`h3`,{className:`text-lg font-bold`,children:`General inquiry`}),(0,V.jsx)(`p`,{children:(0,V.jsx)(`a`,{className:`underline`,href:`mailto:[email protected]`,children:`[email protected]`})})]}),(0,V.jsxs)(`div`,{className:`space-y-1`,children:[(0,V.jsx)(`h3`,{className:`text-lg font-bold`,children:`Contact support`}),(0,V.jsx)(`p`,{children:(0,V.jsx)(`a`,{className:`underline`,href:`mailto:[email protected]`,children:`[email protected]`})})]}),(0,V.jsxs)(`p`,{className:`max-w-2xl text-muted-foreground`,children:[`You can also reach us via`,` `,(0,V.jsx)(`a`,{className:`underline`,href:`https://discord.gg/79Qg3NhYjc`,target:`_blank`,rel:`noopener noreferrer`,children:`Discord`}),` `,`or`,` `,(0,V.jsx)(`a`,{className:`underline`,href:`https://www.linkedin.com/company/swissgpu`,target:`_blank`,rel:`noopener noreferrer`,children:`LinkedIn`}),`.`]})]})]})})})]}),(0,V.jsx)(`div`,{className:`bg-background-primary`,children:(0,V.jsx)(Vc,{})})]})}function ml(){return(0,V.jsxs)(`div`,{className:`flex min-h-screen flex-col`,children:[(0,V.jsx)(`div`,{className:`site-page-shell`,children:(0,V.jsx)(Hc,{})}),(0,V.jsxs)(`main`,{className:`site-page-shell blueprint w-full space-y-6 py-10 md:space-y-8 md:py-20`,children:[(0,V.jsx)(`h1`,{children:`Terms of Service`}),(0,V.jsx)(`p`,{children:`Last updated: September 6, 2026`}),(0,V.jsx)(`h2`,{children:`1. Provider, acceptance and eligibility`}),(0,V.jsxs)(`p`,{children:[`SwissGPU is operated by `,(0,V.jsx)(`b`,{children:`LongLink\xA0sagl`}),` ("SwissGPU", "we", "us" or "our"), la Stráda\xA0Valdaé\xA09, 6963\xA0Cureggia (Lugano), Switzerland, UID CHE-150.642.313. Contact:`,` `,(0,V.jsx)(`a`,{href:`mailto:[email protected]`,children:`[email protected]`}),`.`]}),(0,V.jsx)(`p`,{children:`These Terms form a binding agreement between you and LongLink sagl. You accept them when you create an account, add funds, rent a Server or otherwise use the Service. You must be at least 18 years old and legally capable of entering into this agreement. If you use the Service for an organisation, you confirm that you have authority to bind it. The Service is not directed to minors.`}),(0,V.jsx)(`p`,{children:`A "consumer" is an individual using the Service mainly for personal or household purposes. A "business user" is anyone using it mainly for professional or commercial purposes. Provisions that expressly apply to business users do not apply to consumers.`}),(0,V.jsx)(`h2`,{children:`2. Definitions and contract documents`}),(0,V.jsx)(`p`,{children:`"Service" means SwissGPU's on-demand access to dedicated bare-metal GPU servers and the related website, software, APIs, networking and documentation. "Server" means a physical server allocated to your account. "Content" means data, code, datasets, models, prompts, outputs and other material that you or your users upload, create or process through the Service. "Paid Credits" means account balance purchased with money. "Promotional Credits" means balance provided without payment.`}),(0,V.jsx)(`p`,{children:`The applicable order, pricing shown when you start a rental, and any written order form, DPA, SLA or other agreement signed by both parties are part of the agreement. A signed document prevails over these Terms only for a direct conflict. These Terms prevail over inconsistent marketing material or documentation.`}),(0,V.jsx)(`h2`,{children:`3. Service and beta status`}),(0,V.jsxs)(`p`,{children:[`The Service provides remote access to dedicated bare-metal hardware. Hardware configurations, capacity, templates and features may change, and availability is not guaranteed. The Service is in`,` `,(0,V.jsx)(`b`,{children:`active beta`}),`; defects, interruptions and data loss may occur. No service-level commitment applies unless we agree to one in writing.`]}
3),(0,V.jsx)(`p`,{children:`We may modify, replace or discontinue features where reasonably necessary for security, legal, technical or commercial reasons. We will provide reasonable advance notice of a material reduction affecting an active paid rental where practicable.`}),(0,V.jsxs)(`p`,{children:[(0,V.jsx)(`b`,{children:`Not for high-risk use.`}),` You must not use the Service for life support, emergency services, critical infrastructure, autonomous weapons, safety-critical control or any activity where failure could reasonably cause death, personal injury or substantial physical or environmental damage.`]}),(0,V.jsx)(`h2`,{children:`4. Accounts and security`}),(0,V.jsxs)(`p`,{children:[`You must provide accurate account information and keep it current. You are responsible for activity through your account and for users whom you authorise. You must protect passwords, OAuth access, API credentials and SSH keys, use reasonable access controls, and notify`,` `,(0,V.jsx)(`a`,{href:`mailto:[email protected]`,children:`[email protected]`}),` promptly if you suspect compromise.`]}),(0,V.jsx)(`p`,{children:`You are responsible for configuring and hardening your Server, applying updates, managing encryption and keys, restricting network access, checking software licences and maintaining independent backups. We may isolate a Server, revoke credentials or suspend access where reasonably necessary to contain a security incident.`}),(0,V.jsx)(`h2`,{children:`5. Acceptable use`}),(0,V.jsx)(`p`,{children:`You must use the Service lawfully and within the technical and rental limits shown to you. You must not:`}),(0,V.jsxs)(`ul`,{children:[(0,V.jsx)(`li`,{children:`resell, sublicense, sublease or provide the Service to third parties without our prior written approval;`}),(0,V.jsx)(`li`,{children:`deploy malware, botnets, phishing, spam, denial-of-service attacks, credential theft, intrusion, unauthorised scanning or other harmful or deceptive activity;`}),(0,V.jsx)(`li`,{children:`access or interfere with another person's systems, data or accounts without lawful, documented authorisation;`}),(0,V.jsx)(`li`,{children:`upload, generate, process or distribute unlawful Content, child sexual abuse material, stolen data, or Content that infringes privacy, intellectual property or other rights;`}),(0,V.jsx)(`li`,{children:`bypass or interfere with authentication, isolation, security controls, logging, metering, rate limits, firmware, BIOS, BMC/IPMI, the network stack or other platform protections;`}),(0,V.jsx)(`li`,{children:`conduct destructive stress tests, sustained hardware-abuse workloads or cryptocurrency mining without our prior written approval;`}),(0,V.jsx)(`li`,{children:`use anonymisation, proxy, VPN, Tor or similar tools to facilitate unlawful activity, evade abuse controls or conceal the source of attacks; or`}),(0,V.jsx)(`li`,{children:`violate applicable sanctions, export-control rules or restrictions on prohibited users, territories or end uses.`})]}),(0,V.jsx)(`p`,{children:`You may not reverse engineer or circumvent the Service except to the limited extent that applicable law expressly permits and does not allow that right to be waived. You are responsible for obtaining all rights and licences required for your Content, software, datasets and models, and for reviewing outputs before relying on or distributing them.`}),(0,V.jsxs)(`p`,{children:[`We have no general obligation to monitor Content. We may review technical metadata and investigate, preserve, quarantine, restrict or remove Content or Servers where reasonably and proportionately necessary to address suspected abuse, fraud, security threats or legal violations, protect users or infrastru
3cture, or comply with a binding legal request. Our handling of personal data is described in the `,(0,V.jsx)(F,{to:`/privacy`,children:`Privacy Policy`}),`.`]}),(0,V.jsx)(`p`,{children:`Network usage is subject to fair use; excessive or abusive usage may be throttled.`}),(0,V.jsx)(`h2`,{children:`6. Rentals, metering and fees`}),(0,V.jsx)(`p`,{children:`Prices are in Swiss francs (CHF). The rate and Server configuration displayed when you confirm a rental apply to that rental. Usage is generally metered by time while a Server is allocated and marked active or rented. Billing ends only when the dashboard confirms that the Server has been released. Shutting down an operating system, disconnecting or leaving a workload idle does not by itself release the Server or necessarily stop billing.`}),(0,V.jsx)(`p`,{children:`Electricity consumption, operating-system reinstallation and other clearly identified items may be charged separately at the rate disclosed before the charge is incurred. Prices include or identify applicable taxes and mandatory charges as required by law. You authorise Stripe and its supported payment methods, including TWINT where available, to charge the amounts you approve.`}),(0,V.jsx)(`p`,{children:`Charges are deducted from your balance periodically and may be posted after the relevant usage. You remain liable for valid usage charges that exceed your balance, including usage between meter updates. We may stop and release a Server when your balance is exhausted, which may cause immediate loss of Content on that Server.`}),(0,V.jsx)(`p`,{children:`Our metering and transaction records determine charges unless there is a manifest error. You must report a suspected billing error within 30 days after it appears in your account or invoice, with enough information for us to investigate. This deadline does not limit rights that cannot lawfully be waived. Overdue amounts accrue default interest at 5% per year, and business users must reimburse reasonable recovery costs to the extent permitted by law.`}),(0,V.jsx)(`h2`,{children:`7. Credits, refunds and consumer cancellation rights`}),(0,V.jsx)(`p`,{children:`Paid Credits are a closed account balance usable only for the Service. They are not legal tender, earn no interest and may not be sold or transferred. Paid Credits do not expire unless an expiry was clearly disclosed when purchased. Promotional Credits may be subject to stated expiry dates and may be withdrawn if obtained through error, fraud or abuse.`}),(0,V.jsx)(`p`,{children:`Except where these Terms or mandatory law provide otherwise, completed top-ups and properly charged usage are non-refundable. We may issue service credits at our discretion, but doing so does not create a continuing obligation. Any refund is reduced by valid charges and amounts you owe and is normally returned to the original payment method.`}),(0,V.jsx)(`p`,{children:`Nothing in these Terms excludes a consumer's mandatory cancellation, refund, price-reduction or other statutory rights. If mandatory law gives you a withdrawal period, by launching or using a Server during that period you expressly request immediate performance. To the extent permitted by that law, you must pay for the proportion of Service supplied before withdrawal and may lose the withdrawal right once the requested Service has been fully performed.`}),(0,V.jsx)(`h2`,{children:`8. Content, privacy and data processing`}),(0,V.jsx)(`p`,{children:`As between you and us, you retain your rights in Content. You grant us a non-exclusive, worldwide, royalty-free licence to host, copy, transmit, access and otherwise process Content only as needed to provide, secure and support the Service, enforce this agreement and comply with law. You confirm that you have the rights and lawful basis needed for the Content and these instructions.`}),(0,V.jsx)(`p`,{children:`For personal data contained in Content, you are the controller and we act as your processor, unless the law assigns different roles. These Terms are your instruction for us to process that data for the duration of the rental solely to provide, secure and support the Service. The subject matter, data types and data subjects are determined by the C
3ontent and your use. You are responsible for notices, legal bases, data-subject requests and assessing whether the Service is suitable for your processing.`}),(0,V.jsx)(`p`,{children:`We will require personnel with access to Content to protect its confidentiality, apply appropriate technical and organisational security measures, notify you without undue delay after becoming aware of a personal-data breach affecting Content, and reasonably assist with legally required data-subject requests, security assessments and breach obligations. Assistance beyond standard Service functionality may be charged at a reasonable rate. We will provide information reasonably necessary to demonstrate these commitments; any audit must be legally required or reasonably justified, coordinated in advance, protective of other customers and our security, and at your cost.`}),(0,V.jsx)(`p`,{children:`You generally authorise the subprocessors needed to operate the Service. We remain responsible for their processing to the extent required by law and will impose materially equivalent data-protection duties. We will give reasonable notice of a material new subprocessor where required, allowing you to object on documented data-protection grounds. If the parties cannot resolve the objection, you may stop the affected use. Cross-border transfers will use safeguards required by applicable law.`}),(0,V.jsx)(`p`,{children:`Do not process health data, special-category or highly sensitive personal data, regulated secrets, payment-card data, or data subject to sector-specific localisation or retention duties unless we have expressly agreed in a signed DPA or order. You must encrypt sensitive Content where appropriate and must not rely on the Service as your only copy.`}),(0,V.jsx)(`p`,{children:`Server storage is not a backup service. Reinstallation, release, suspension, loss of power or termination may erase Content without a recovery period. You are responsible for exporting Content and, where possible, securely deleting it before releasing a Server. We may reimage or sanitise released storage in our ordinary provisioning process, but you should use encryption and your own deletion procedures for Content requiring assured destruction. We may retain data only where required by law, for security evidence, or in temporary system records that are deleted in the ordinary course.`}),(0,V.jsxs)(`p`,{children:[`We act as controller for account, billing, support, security and operational data, as explained in our `,(0,V.jsx)(F,{to:`/privacy`,children:`Privacy Policy`}),`.`]}),(0,V.jsx)(`h2`,{children:`9. Our technology and feedback`}),(0,V.jsx)(`p`,{children:`We and our licensors retain all rights in the Service, documentation, branding and underlying technology. These Terms grant only the limited right to use the Service during the agreement. If you voluntarily provide feedback, we may use it without restriction or payment, provided we do not identify you publicly without permission. Third-party software remains subject to its own licence.`}),(0,V.jsx)(`h2`,{children:`10. Availability and third-party services`}),(0,V.jsx)(`p`,{children:`We may perform maintenance, reboot or isolate hardware, change network routes, or migrate or stop workloads to protect the Service. OAuth providers, payment processors, network carriers, template publishers and other third parties are outside our control and may change or discontinue their services. You are responsible for verifying that third-party software and templates are suitable and properly licensed for your use.`}),(0,V.jsx)(`h2`,{children:`11. Warranties`}),(0,V.jsxs)(`p`,{children:[`To the fullest extent permitted by law, the beta Service is provided`,` `,(0,V.jsx)(`b`,{children:`"as is" and "as available"`}),`. We do not warrant uninterrupted, error-free or secure operation, any particular performance, compatibility or result, or that Content will be preserved. For business users, we disclaim implied warranties of merchantability, satisfactory quality, fitness for purpose and non-infringement to the fullest extent permitted by law. Mandatory consumer warranties remain unaffected.`]}),(0,V.jsx)(`h2`,{children:`12. Limitation of liability`}),(0,V.jsx)(`p`,{children:`Nothing in these Terms excludes or limits liability for wilful misconduct or gross negligence (Article\xA0100(1) of the Swiss Code of Obligations), fraud, or any liability that cannot lawfully be excluded or limited.`}),(0,V.jsx)(`p`,{children:`For business users, to the fullest extent permitted by law: (a) we are not liable for indirect, incidental, special, consequential or punitive loss, or for lost profit, revenue, business, opportunity, goodwill, anticipated savings or data; and (b) our total aggregate liability arising from or related to the Service is limited to the fees paid or payable for the affected Service in the three months immediately before the event giving rise to the claim, capped at CHF\xA01,000. Liability for auxiliaries is excluded to the extent permitted by Art
3icle\xA0101(2) of the Swiss Code of Obligations.`}),(0,V.jsx)(`p`,{children:`For consumers, exclusions and limits apply only to the extent permitted by mandatory law and do not restrict mandatory remedies. In all cases, you must take reasonable steps to avoid and reduce loss, including maintaining backups and promptly responding to security and balance notices.`}),(0,V.jsx)(`h2`,{children:`13. Indemnity for business users`}),(0,V.jsx)(`p`,{children:`If you are a business user, you will defend, indemnify and hold harmless LongLink sagl and its personnel from third-party claims, damages, penalties and reasonable legal costs arising from your Content, your users, your breach of these Terms, or your infringement of law or third-party rights. This does not apply to the extent the claim was caused by our wilful misconduct or gross negligence. We will notify you reasonably promptly, allow you to control the defence and settlement, and provide reasonable cooperation at your cost. You may not settle a claim in a way that admits liability for us or imposes obligations on us without our written consent.`}),(0,V.jsx)(`h2`,{children:`14. Suspension, release and termination`}),(0,V.jsx)(`p`,{children:`You may stop using the Service at any time and may request account closure. Releasing a Server is irreversible and may immediately erase its Content. You remain responsible for charges incurred before release and any outstanding balance.`}),(0,V.jsx)(`p`,{children:`We may immediately suspend access, stop or release a Server, remove Content, or terminate the agreement if you materially breach these Terms, fail to pay, create a security or legal risk, use the Service fraudulently or abusively, or if required by law. Where the issue is reasonably capable of cure and does not require urgent action, we will ordinarily give notice and a reasonable opportunity to cure. We may also terminate the Service for convenience on at least 30 days' notice.`}),(0,V.jsx)(`p`,{children:`If we terminate for convenience, we will refund unused Paid Credits after deducting valid charges. If we terminate for your breach, unused Paid Credits will be handled as required by mandatory law after deducting amounts you owe; Promotional Credits expire. Sections that by their nature should survive termination do so, including payment obligations, intellectual property, liability, indemnity and governing law.`}),(0,V.jsx)(`h2`,{children:`15. Changes to these Terms`}),(0,V.jsx)(`p`,{children:`We may update these Terms for legal, security, technical or commercial reasons. We will give at least 30 days' notice of a material adverse change by email or through the dashboard. Changes needed urgently for law or security may take effect sooner, with notice as soon as reasonably practicable. Changes apply from their effective date and do not retroactively change completed usage.`}),(0,V.jsx)(`p`,{children:`If you do not agree to a material change, you must stop using the Service before it takes effect and may request closure and a refund of unused Paid Credits after valid charges are deducted. Continued use after the effective date constitutes acceptance where permitted by law.`}),(0,V.jsx)(`h2`,{children:`16. Force majeure`}),(0,V.jsx)(`p`,{children:`Neither party is liable for delay or failure caused by events beyond its reasonable control, including power, carrier or internet failures, supplier outages, natural disasters, labour disputes, war, cyberattacks or government action. This does not excuse your obligation to pay charges already incurred. The affected party will take reasonable steps to reduce the impact.`}),(0,V.jsx)(`h2`,{children:`17. General and governing law`}),(0,V.jsx)(`p`,{children:`These Terms and the incorporated documents are the entire agreement about the Service and replace prior statements on that subject. If a provision is invalid or unenforceable, it will be enforced to the maximum lawful extent and the remaining provisions remain effective. A failure to enforce a right is not a waiver. You may not assign this agreement without our written consent. We may assign it as part of a merger, reorganisation or transfer of the relevant business, provided this does not reduce mandatory consumer rights.`}),(0,V.jsx)(`p`,{children:`Swiss substantive law governs, excluding its conflict-of-law rules. For business users, the courts of Lugano, Canton Ticino, Switzerland have exclusive jurisdiction. For consumers, this choice of law and forum does not deprive you of mandatory protections or access to any court available under applicable consumer or jurisdiction law.`}),(0,V.jsx)(`h2`,{children:`18. Contact`}),(0,V.jsxs)(`p`,{children:[`Legal and general enquiries: `,(0,V.jsx)(`a`,{href:`mailto:[email protected]`,children:`[email protected]`}),`. Technical and billing support: `,(0,V.jsx)(`a`,{href:`mailto:[email protected]`,children:`[email protected]`}),`.`]}),(0,V.jsx)(`p`,{children:`LongLink\xA0sagl (operating "SwissGPU"), la Stráda\xA0Valdaé\xA09, 6963\xA0Cureggia (Lugano), Switzerland, UID CHE-150.642.313.`})]}),(0,V.jsx)(Vc,{})]})}function hl(){return(0,V.jsxs)(`div`,{className:`flex min-h-screen flex-col`,children:[(0,V.jsx)(`div`,{className:`site-page-shell`,children:(0,V.jsx)(Hc,{})}),(0,V.jsxs)(`main`,{className:`site-page-shell blueprint w-full space-y-6 py-10 md:space-y-8 md:py-20`,children:[(0,V.jsx)(`h1`,{children:`Privacy Policy`}),(0,V.jsx)(`p`,{children:`Last updated: June 20, 2026`}),(0,V.jsx)(`h2`,{children:`1. Scope and controller`}),(0,V.jsx)(`p`,{children:`This Privacy Policy explains how SwissGPU handles personal data when you visit our website, create an account, rent a Server, make a payment, contact us or otherwise use the Service.`}),(0,V.jsxs)(`p`,{children:[`The controller is `,(0,V.jsx)(`b`,{children:`LongLink\xA0sagl`}),` (operating "SwissGPU"), la Stráda\xA0Valdaé\xA09, 6963\xA0Cureggia (Lugano), Switzerland, UID CHE-150.642.313. Privacy enquiries and requests may be sent to `,(0,V.jsx)(`a`,{href:`mailto:[email protected]`,children:`[email protected]`}),`.`]}),(0,V.jsxs)(`p`,{children:[`The definitions in our `,(0,V.jsx)(F,{to:`/terms`,children:`Terms of Service`}),` also apply to this Policy where relevant.`]}
3),(0,V.jsx)(`h2`,{children:`2. Our roles`}),(0,V.jsx)(`p`,{children:`We act as controller for personal data used to operate accounts, authentication, billing, support, security, abuse prevention and our business. This Policy primarily describes those activities.`}),(0,V.jsxs)(`p`,{children:[`When a customer places personal data in Content on a rented Server, the customer generally decides why and how that data is processed and is the controller. SwissGPU generally acts as processor for that Content. The data-processing provisions in the `,(0,V.jsx)(F,{to:`/terms`,children:`Terms of Service`}),` or a signed DPA govern that processing. Customers are responsible for providing their own notices and establishing a lawful basis for personal data they process through the Service.`]}),(0,V.jsx)(`h2`,{children:`3. Personal data we process`}),(0,V.jsxs)(`ul`,{children:[(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`b`,{children:`Account and identity data:`}),` internal account ID, authentication provider and provider ID, name, email address, optional avatar URL, country, latest successful-login IP address, account creation and last-login times, email confirmation status, role, account status and account preferences.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`b`,{children:`Authentication data:`}),` a password hash for email/password accounts, or profile information returned by the OAuth provider you choose. We use OAuth tokens during sign-in but do not intentionally store them in our account database.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`b`,{children:`Connection and log data:`}),` IP address, request method and path, timestamps, response status, duration, errors, session information and security events. We derive and store a country code from the IP address at login.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`b`,{children:`Billing and transaction data:`}),` Stripe customer ID, payment or refund identifiers, account balance, top-up and grant amounts, usage, electricity and installation charges, related Server ID and transaction dates. Stripe and the selected payment method process full card, bank and payer details; SwissGPU does not receive or store full card or bank-account credentials.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`b`,{children:`Rental and operational data:`}),` allocated Server and hardware details, rental and release times, status, selected operating-system image, network ports, installation state, metered energy use, availability and fault information, and access configuration required to provision and support the Server.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`b`,{children:`Notification data:`}),` low-balance thresholds, requested hardware-availability alerts and records needed to send service and account notifications.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`b`,{children:`Communications:`}),` messages, attachments and related contact details when you contact support or otherwise communicate with us.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`b`,{children:`Customer Content:`}),` data stored or processed on a Server. We do not routinely inspect Content, but authorised personnel may access it where reasonably necessary to provide requested support, investigate abuse or a security incident, enforce the Terms, or comply with law.`]})]}),(0,V.jsx)(`p`,{children:`We receive data directly from you, from your use of the Service, from the OAuth provider you use, from Stripe and payment-method providers, and from our infrastructure and security systems. The country code associated with an IP address is obtained from an IP geolocation provider.`}),(0,V.jsx)(`p`,{children:`We do not sell personal data. We do not currently use third-party advertising trackers or analytics to build advertising profiles about visitors.`}),(0,V.jsx)(`h2`,{children:`4. Why we process personal data`}),(0,V.jsxs)(`ul`,{children:[(0,V.jsx)(`li`,{children:`create and administer accounts and authenticate users;`}),(0,V.jsx)(`li`,{children:`allocate, provision, meter, bill, maintain and support Servers;`}),(0,V.jsx)(`li`,{children:`process top-ups, payments, refunds, invoices and accounting records;`}),(0,V.jsx)(`li`,{children:`send confirmation, machine-ready, low-balance, credit and service messages;`}
3),(0,V.jsx)(`li`,{children:`secure accounts and infrastructure and prevent fraud, abuse and prohibited use;`}),(0,V.jsx)(`li`,{children:`diagnose errors, monitor reliability and improve the Service;`}),(0,V.jsx)(`li`,{children:`respond to support requests, complaints and legal-rights requests;`}),(0,V.jsx)(`li`,{children:`establish, exercise or defend legal claims; and`}),(0,V.jsx)(`li`,{children:`comply with accounting, tax, sanctions, regulatory and other legal obligations.`})]}),(0,V.jsx)(`p`,{children:`Swiss data-protection law generally permits private-sector processing unless it unlawfully infringes personality rights. Where another law requires a legal basis, including where the EU or UK GDPR applies, we rely as appropriate on performance of a contract, compliance with legal obligations, our legitimate interests in operating and protecting the Service, or consent for an optional use that specifically requests it. You may withdraw consent at any time, without affecting earlier processing.`}),(0,V.jsx)(`h2`,{children:`5. Service providers and other recipients`}),(0,V.jsx)(`p`,{children:`We disclose only the data reasonably needed for the recipient's role:`}),(0,V.jsxs)(`ul`,{children:[(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`b`,{children:`OAuth providers:`}),` authentication when you select a third-party provider. They receive the information required for sign-in and return your provider ID, name, email and, where available, avatar.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`b`,{children:`Stripe and payment-method providers, including TWINT where selected:`}),` customer creation, checkout, payment processing, refunds, fraud prevention and legally required financial records. We send Stripe your name and email when an account is created, even if you have not yet made a payment.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`b`,{children:`Infomaniak:`}
3),` email delivery and DNS or infrastructure services. Email delivery involves your email address, name and the content of the service message.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`b`,{children:`IP geolocation provider:`}),` receives the login IP address and returns a country code for account administration and security.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`b`,{children:`Logging and monitoring providers:`}),` incident investigation, security and service reliability. Log data may include IP addresses, request paths, Server identifiers and error information.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`b`,{children:`Internal communications providers:`}),` restricted operational alerts. Alerts may include an account name, Server ID and configuration, and top-up or credit amount, but not full payment credentials or Customer Content.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`b`,{children:`Professional advisers and authorities:`}),` legal, accounting, audit, insurance or regulatory recipients where reasonably necessary, and public authorities where disclosure is required or permitted by law.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`b`,{children:`Corporate transactions:`}),` a prospective or actual buyer, investor or successor in a merger, financing, reorganisation or transfer of all or part of the business, subject to appropriate confidentiality and legal safeguards.`]})]}),(0,V.jsx)(`p`,{children:`Some recipients, particularly payment and authentication providers, also act as independent controllers for their own security, fraud-prevention and legal obligations. Their privacy policies govern those activities.`}),(0,V.jsx)(`h2`,{children:`6. International transfers`}),(0,V.jsx)(`p`,{children:`Our Servers and primary application infrastructure are hosted in Switzerland. Some providers or their subprocessors may process personal data in the European Economic Area, the United States or other countries where they operate. This applies in particular to authentication, payment, monitoring and communications providers.`}),(0,V.jsx)(`p`,{children:`Where required, transfers are based on a destination recognised as providing adequate protection, the Swiss-US Data Privacy Framework for a certified recipient, recognised standard contractual clauses adapted for Swiss law, or another safeguard or exception permitted by applicable law. You may contact us for more information about the safeguards relevant to a particular transfer.`}),(0,V.jsx)(`h2`,{children:`7. Cookies and similar storage`}),(0,V.jsx)(`p`,{children:`We currently use only storage needed for the Service. A signed, HTTP-only session cookie keeps you authenticated and contains session account information. OAuth and payment providers may set their own cookies when you visit them.`}),(0,V.jsx)(`p`,{children:`You can block or delete cookies through your browser, but blocking the session cookie prevents account login. We do not currently set advertising or cross-site behavioural-tracking cookies. If that changes, we will update this Policy and provide any choices required by law before using them.`}),(0,V.jsx)(`h2`,{children:`8. Retention`}),(0,V.jsx)(`p`,{children:`We keep personal data only for as long as reasonably necessary for the stated purposes:`}),(0,V.jsxs)(`ul`,{children:[(0,V.jsx)(`li`,{children:`account, profile and preference data are generally kept while the account is active and then deleted or anonymised when no longer required for security, disputes or legal obligations;`}),(0,V.jsx)(`li`,{children:`transaction, invoice, payment-reconciliation and related accounting records are generally kept for 10 years in accordance with Swiss record-keeping requirements;`}),(0,V.jsx)(`li`,{children:`application, access and security logs are generally kept for up to 12 months, but may be kept longer where necessary to investigate an incident, abuse or legal claim;`}),(0,V.jsx)(`li`,{children:`support communications are generally kept for up to three years after resolution;`}),(0,V.jsx)(`li`,{children:`active Server allocation and access-configuration data are kept while needed to provide the rental; transaction records linked to a Server follow the accounting period above; and`}),(0,V.jsx)(`li`,{children:`Customer Content may be erased without a recovery period when a Server is reinstalled, released, suspended or terminated. You are responsible for backups and exporting Content before release.`})]}),(0,V.jsx)(`p`,{children:`Data may remain for a limited period in protected backups or with a provider under its own legally required retention schedule. When deletion is due, we delete, anonymise or securely isolate the data until deletion from backups occurs in the ordinary cycle.`}
3),(0,V.jsx)(`h2`,{children:`9. Automated operational actions`}),(0,V.jsxs)(`p`,{children:[`The Service automatically calculates charges from rental time and measured electricity use, sends configured balance notifications, and may stop and release a Server when the account balance is exhausted. These actions use rental status, metering and balance data rather than behavioural profiling. A release may cause immediate loss of Content. Contact`,` `,(0,V.jsx)(`a`,{href:`mailto:[email protected]`,children:`[email protected]`}),` if you believe an automated action or charge was incorrect and want human review.`]}),(0,V.jsx)(`p`,{children:`We do not otherwise use personal data for automated decisions that produce legal or similarly significant effects.`}),(0,V.jsx)(`h2`,{children:`10. Security and data incidents`}),(0,V.jsx)(`p`,{children:`We use technical and organisational measures appropriate to the nature and risk of the processing, including access controls, transport encryption, network segmentation, credential hashing or encryption where appropriate, logging and restricted administrative access. No system is completely secure, and you are responsible for securing and backing up Content as described in the Terms.`}),(0,V.jsx)(`p`,{children:`We assess personal-data breaches and notify the Federal Data Protection and Information Commissioner (FDPIC) where a breach is likely to result in a high risk to a person's personality or fundamental rights. We notify affected individuals where required by law or where notification is necessary for their protection.`}),(0,V.jsx)(`h2`,{children:`11. Your rights`}),(0,V.jsx)(`p`,{children:`Subject to applicable conditions and exceptions, you may request access to personal data we hold about you, correction of inaccurate data, deletion or restriction, object to processing, and receive or transfer certain data in a commonly used machine-readable format. You may also request account closure and withdraw consent where processing relies on consent.`}),(0,V.jsxs)(`p`,{children:[`Send requests to `,(0,V.jsx)(`a`,{href:`mailto:[email protected]`,children:`[email protected]`}),`. We may ask for information reasonably needed to verify your identity and protect the account. We generally respond within 30 days. Access is normally free, although the law permits a fee for manifestly unfounded, excessive or disproportionately burdensome requests. We may retain or withhold information where permitted or required by law and will explain an applicable restriction.`]}),(0,V.jsxs)(`p`,{children:[`You may lodge a complaint with the`,` `,(0,V.jsx)(`a`,{href:`https://www.edoeb.admin.ch/en`,target:`_blank`,rel:`noopener noreferrer`,children:`Federal Data Protection and Information Commissioner (FDPIC)`}),` `,`or another competent data-protection authority.`]}),(0,V.jsx)(`h2`,{children:`12. Children`}),(0,V.jsx)(`p`,{children:`The Service is for users aged 18 or older. We do not knowingly collect personal data from children. Contact us if you believe a child has provided personal data so that we can investigate and take appropriate action.`}),(0,V.jsx)(`h2`,{children:`13. Changes to this Policy`}),(0,V.jsx)(`p`,{children:`We may update this Policy as the Service, providers or legal requirements change. We will post the revised Policy with a new update date. If a change materially affects how we use existing account data, we will provide reasonable advance notice through email or the Service where required.`}),(0,V.jsx)(`h2`,{children:`14. Contact`}),(0,V.jsx)(`p`,{children:`LongLink\xA0sagl (operating "SwissGPU"), la Stráda\xA0Valdaé\xA09, 6963\xA0Cureggia (Lugano), Switzerland, UID CHE-150.642.313.`}),(0,V.jsxs)(`p`,{children:[`Privacy: `,(0,V.jsx)(`a`,{href:`mailto:[email protected]`,children:`[email protected]`}),`. Technical and account support:`,` `,(0,V.jsx)(`a`,{href:`mailto:[email protected]`,children:`[email protected]`}),`.`]})]}),(0,V.jsx)(Vc,{})]})}function gl(){return(0,V.jsxs)(`div`,{className:`flex min-h-screen flex-col`,children:[(0,V.jsx)(`div`,{className:`site-page-shell`,children:(0,V.jsx)(Hc,{})}),(0,V.jsxs)(`div`,{className:`site-page-shell blueprint w-full space-y-6 py-10 md:space-y-8 md:py-20`,children:[(0,V.jsx)(`h1`,{children:`Impressum`}),(0,V.jsx)(`p`,{children:`Last updated: January 5, 2026`}),(0,V.jsx)(`h2`,{children:`LongLink SAGL`}),(0,V.jsxs)(`div`,{className:`space-y-1`,children:[(0,V.jsx)(`p`,{children:`la Stráda Valdaé 9`}),(0,V.jsx)(`p`,{children:`6963 Cureggia`}),(0,V.jsx)(`p`,{children:`Switzerland`})]}),(0,V.jsxs)(`div`,{className:`space-y-1`,children:[(0,V.jsx)(`p`,{children:`Company registration number (UID): CHE-150.642.313`}),(0,V.jsx)(`p`,{children:`Legal form: Limited liability company (Sagl)`}),(0,V.jsx)(`p`,{children:`Registered office: Lugano, Canton Ticino, Switzerland`}),(0,V.jsxs)(`p`,{children:[`Email: `,(0,V.jsx)(`a`,{href:`mailto:[email protected]`,children:`[email protected]`})]})]})]}),(0,V.jsx)(Vc,{})]})}var _l=12,vl=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`,yl=/^(?=.*[A-Z])(?=.*\d)(?=.*[^A-Za-z0-9\s]).{8,}$/,bl=e=>Math.max(8,Math.min(128,Math.floor(Number.isFinite(e)?e:_l))),xl=(e={})=>{let t=bl(e.length??_l),n=e.charset?.trim()||vl,r=new Uint32Array(t);crypto.getRandomValues(r);let i=[`ABCDEFGHIJKLMNOPQRSTUVWXYZ`[r[0]%26],`!@#$%^&*()-_=+[]{};:,.?/|~`[r[1]%26],`0123456789`[r[2]%10],...Array.from(r.slice(3),e=>n[e%n.length])];for(let e=i.length-1;e>0;--e){let t=r[e]%(e+1),n=i[e];i[e]=i[t],i[t]=n}return i.join(``)};function Sl({endpoint:e,submitLabel:t,token:n}){let r=Fr(),i=x(),[a,o]=(0,M.useState)(``),[s,c]=(0,M.useState)(!1),[l,u]=(0,M.useState)(!1),d=a.length>=8,f=/[A-Z]/.test(a),p=/[^A-Za-z0-9\s]/.test(a),m=/\d/.test(a),h=yl.test(a),g=[{label:`Contains 1 capital letter`,met:f},{label:`Contains 1 special character`,met:p},{label:`Contains 1 number`,met:m},{label:`At least 8 characters`,met:d}];async function _(t){if(t.preventDefault(),h){u(!0);try{await W(e,`POST`,{token:n,password:a}),await Promise.all([i.invalidateQueries({queryKey:[`me`]}),i.invalidateQueries({queryKey:[`assigned-servers`]}),i.invalidateQueries({queryKey:[`rent-capacity`]})]),r(`/servers`,{replace:!0})}catch{}finally{u(!1)}}}return(0,V.jsx)(`div`,{className:`flex w-full items-center justify-center`,children:(0,V.jsx)(`div`,{className:`w-full max-w-sm`,children:(0,V.jsxs)(G,{children:[(0,V.jsx)(G.Header,{heading:`Welcome to`}),(0,V.jsx)(`div`,{className:`flex w-full flex-col gap-4`,children:(0,V.jsxs)(`form`,{className:`grid gap-3`,onSubmit:_,children:[(0,V.jsxs)(`div`,{className:`grid gap-2`,children:[(0,V.jsx)(Ic,{htmlFor:`password`,children:`Choose a password`}),(0,V.jsxs)(`div`,{className:`relative`,children:[(0,V.jsx)(Qo,{id:`password`,type:s?`text`:`password`,autoComplete:`new-password`,required:!0,className:`pr-20`,"aria-invalid":h?`false`:`true`,value:a,onChange:e=>o(e.target.value)}),(0,V.jsx)(`button`,{type:`button`,onClick:()=>o(xl()),className:`text-muted-foreground absolute right-8 top-1/2 -translate-y-1/2 cursor-pointer`,"aria-label":`Generate password`,children:(0,V.jsx)(Fe,{className:`size-4`})}),(0,V.jsx)(`button`,{type:`button`,onClick:()=>c(!s),className:`text-muted-foreground absolute right-2 top-1/2 -translate-y-1/2 cursor-pointer`,"aria-label":s?`Hide password`:`Show password`,children:s?(0,V.jsx)(se,{className:`size-4`}):(0,V.jsx)(Ne,{className:`size-4`})})]}),(0,V.jsx)(`ul`,{className:`grid gap-1 text-xs sm:grid-cols-2`,children:g.map(e=>(0,V.jsxs)(`li`,{className:e.met?`flex items-center gap-2 text-emerald-500`:`flex items-center gap-2 text-muted-foreground`,children:[(0,V.jsx)(k,{className:`size-3 shrink-0`}),(0,V.jsx)(`span`,{children:e.label})]},e.label))})]}),(0,V.jsx)(H,{variant:`outline`,type:`submit`,className:`w-full`,disabled:l||!h,children:t})]})}),(0,V.jsxs)(G.Footer,{children:[`By continuing, you agree to our`,` `,(0,V.jsx)(F,{to:`/terms`,className:`text-accent underline`,children:`Terms of Service`}),` `,`and`,` `,(0,V.jsx)(F,{to:`/privacy`,className:`text-accent underline`,children:`Privacy Policy`})]})]})})})}function Cl(){let[e]=na(),t=e.get(`token`);return t?(0,V.jsx)(Sl,{endpoint:`/auth/mail/reset-password`,submitLabel:`Reset password`,token:t}):(0,V.jsx)(si,{to:`/`,replace:!0})}function wl(){let[e]=na(),t=e.get(`token`);return t?(0,V.jsx)(Sl,{endpoint:`/auth/mail/complete-registration`,submitLabel:`Create account`,token:t}):(0,V.jsx)(si,{to:`/`,replace:!0})}function Tl(){return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`h1`,{children:`About Us`}),(0,V.jsx)(`p`,{children:`At SwissGPU, our goal is to make working on a remote server equipped with the latest generation GPUs feel as seamless and intuitive as using a local computer. You can think of it as a powerful workstation in the cloud that you control remotely. This section explains how to connect to your SwissGPU machine and get started quickly. With dedicated bare-metal systems and streaming tools, you can work remotely with minimal latency and a smooth desktop experience.`}),(0,V.jsx)(`p`,{children:`Our approach is simple: every system runs on a fully dedicated physical machine. There is no virtualization layer and n
3o shared GPU resources — you have complete control over the hardware. Data privacy is a core principle for us; all infrastructure is hosted entirely in Switzerland. We believe that access to affordable, locally hosted compute is essential for our country's digital transformation and technological sovereignty.`}),(0,V.jsx)(`p`,{children:`With SwissGPU it is possible to run a wide range of applications, including machine learning, data science, software development, robotics, autonomous driving, 3D rendering, gaming, and more. Whether you are exploring and prototyping or working at the cutting edge of technology, we are here to provide the resources to make it happen.`}),(0,V.jsxs)(`p`,{children:[`We are constantly improving our systems. If you encounter issues or have suggestions, or if you would like to share what you are building with SwissGPU, feel free to reach us at`,` `,(0,V.jsx)(`a`,{href:`mailto:[email protected]`,className:`text-primary hover:underline font-bold`,children:`[email protected]`}),`.`]})]})}function El(){return(0,V.jsxs)(G,{className:`min-h-[calc(100svh-10rem)] w-full px-6 py-10`,children:[(0,V.jsx)(G.Header,{heading:`Page Not Found`}),(0,V.jsx)(`p`,{className:`text-muted-foreground`,children:`The page you are looking for does not exist or has been moved.`}),(0,V.jsxs)(`div`,{className:`flex w-full max-w-sm flex-col gap-2`,children:[(0,V.jsx)(H,{asChild:!0,variant:`outline`,className:`w-full`,children:(0,V.jsx)(F,{to:`/`,children:`Go Home`})}),(0,V.jsx)(H,{asChild:!0,variant:`outline`,className:`w-full`,children:(0,V.jsx)(F,{to:`/servers`,children:`My Servers`})})]})]})}function K({code:e,language:t,infoHref:n,infoLabel:r=`Open tutorial`,hideCopyButton:i=!1,preClassName:a=``}){let[o,s]=(0,M.useState)(!1);return(0,V.jsxs)(`div`,{className:`relative`,children:[!i&&(0,V.jsx)(`button`,{onClick:async()=>{await navigator.clipboard.writeText(e),s(!0),U.success(`Code copied to clipboard`),setTimeout(()=>{s(!1)},2e3)},className:`absolute top-2 cursor-pointer rounded bg-gray-700 p-2 text-white transition-colors hover:bg-gray-600 ${n?`right-12`:`right-2`}`,title:o?`Copied!`:`Copy to clipboard`,"aria-label":o?`Copied`:`Copy code`,children:o?(0,V.jsx)(k,{className:`h-4 w-4`}):(0,V.jsx)(ge,{className:`h-4 w-4`})}),n&&(0,V.jsx)(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,className:`absolute right-2 top-2 rounded bg-gray-700 p-2 text-white transition-colors hover:bg-gray-600`,title:r,"aria-label":r,children:(0,V.jsx)(A,{className:`h-4 w-4`})}),(0,V.jsx)(`pre`,{className:`overflow-x-auto rounded-md bg-[#1e1e1e] p-4 text-sm text-white ${a}`,children:(0,V.jsx)(`code`,{"data-language":t,children:e})})]})}function Dl(){let[e]=na(),t=e.get(`name`)||`<pcname>`;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`h1`,{children:`How to connect using SSH`}),(0,V.jsxs)(`p`,{children:[(0,V.jsx)(`a`,{href:`https://en.wikipedia.org/wiki/Secure_Shell`,target:`_blank`,rel:`noopener noreferrer`,children:`SSH`}),` `,` (Secure Shell) is the most widely used protocol for securely accessing and managing remote computers from a terminal. It creates an encrypted connection between your local machine and a remote server, ensuring that login credentials, commands, and transferred data cannot be intercepted or modified by third parties.`]}),(0,V.jsxs)(`p`,{children:[`To connect via SSH you need the server `,(0,V.jsx)(`strong`,{children:`hostname`}),` (or `,(0,V.jsx)(`strong`,{children:`IP address`}),`) and the `,(0,V.jsx)(`strong`,{children:`username`}),`. SwissGPU servers use the default SSH port `,(0,V.jsx)(`strong`,{children:`22`}),`.`]}),(0,V.jsxs)(`p`,{children:[`At SwissGPU we assign a `,(0,V.jsx)(`strong`,{children:`mnemonic domain`}),` to each server in the format`,(0,V.jsx)(`strong`,{children:` name.swissgpu.ch`}),`, where `,(0,V.jsx)(`strong`,{children:`name`}),` identifies the specific machine. This makes it easier to remember and connect to servers without needing to recall IP addresses.`]}),(0,V.jsx)(`h2`,{children:`Connect to Your Server`}),(0,V.jsx)(`p`,{children:`Open a terminal and run the following command:`}),(0,V.jsx)(K,{code:`ssh ubuntu@${t}.swissgpu.ch`,language:`bash`}),(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Troubleshooting`}),(0,V.jsxs)(`p`,{children:[`If a server was reinstalled after you previously connected to it, the SSH host key will have changed. In this situation SSH may display a `,(0,V.jsx)(`strong`,{children:`host key verification warning`}),`.`]}),(0,V.jsxs)(`p`,{children:[`Remove the old host key from your local `,(0,V.jsx)(`strong`,{children:`known_hosts`}),` file and connect again.`]}),(0,V.jsx)(K,{code:`ssh-keygen -R ${t}.swissgpu.ch`,language:`bash`}
3),(0,V.jsx)(`p`,{children:`After removing the old entry, connect again and accept the new host key when prompted.`})]})}function Ol(){let[e]=na(),t=e.get(`port`)||`3389`,n=e.get(`name`)||`<pcname>`,r=e.get(`user`)||`ubuntu`;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`h1`,{children:`How to connect using RDP`}),(0,V.jsxs)(`p`,{children:[(0,V.jsx)(`a`,{href:`https://en.wikipedia.org/wiki/Remote_Desktop_Protocol`,target:`_blank`,rel:`noopener noreferrer`,children:`RDP`}),` `,`(Remote Desktop Protocol) allows you to access a remote computer through a graphical desktop environment. This makes it possible to use a SwissGPU workstation as if it were a local Ubuntu desktop directly from your computer.`]}),(0,V.jsx)(`div`,{className:`bg-background-secondary border-l-4 border-accent p-4 rounded`,children:(0,V.jsxs)(`p`,{children:[(0,V.jsx)(`strong`,{children:`Note:`}),` For low-latency interaction and high frame rates, we recommend using our`,` `,(0,V.jsx)(`a`,{href:`/docs/moonlight`,children:`Moonlight`}),` setup instead.`]})}),(0,V.jsxs)(`p`,{children:[`To connect via RDP you need three parameters: the server `,(0,V.jsx)(`strong`,{children:`hostname`}),`, the`,(0,V.jsx)(`strong`,{children:` username`}),`, and the `,(0,V.jsx)(`strong`,{children:`RDP port`}),` (port `,(0,V.jsx)(`strong`,{children:`3389`}),` by default).`]}),(0,V.jsxs)(`p`,{children:[`At SwissGPU we assign a `,(0,V.jsx)(`strong`,{children:`mnemonic domain`}),` to each server in the format`,(0,V.jsx)(`strong`,{children:` name.swissgpu.ch`}),`, where `,(0,V.jsx)(`strong`,{children:`name`}),` identifies the specific machine. This makes it easier to remember and connect to servers without needing to recall IP addresses.`]}),(0,V.jsx)(`h2`,{children:`Connect Using a Terminal`}),(0,V.jsxs)(`p`,{children:[`Use the following command with a`,` `,(0,V.jsx)(`a`,{href:`https://www.freerdp.com/`,target:`_blank`,rel:`noopener noreferrer`,children:`FreeRDP`}),`-compatible client:`]}),(0,V.jsx)(K,{code:`xfreerdp /v:${n}.swissgpu.ch:${t} /u:${r}`,language:`bash`}),(0,V.jsx)(`h2`,{children:`Connect using a .rdp File`}),(0,V.jsxs)(`p`,{children:[`Many remote desktop clients support the `,(0,V.jsx)(`strong`,{children:`.rdp`}),` configuration format. You can create a file containing the connection parameters and open it directly with your RDP client.`]}),(0,V.jsxs)(`p`,{children:[`Create a file called `,(0,V.jsx)(`strong`,{children:`server.rdp`}),` with the following content:`]}),(0,V.jsx)(K,{code:`full address:s:${n}.swissgpu.ch:${t}\nusername:s:${r}`,language:`text`}),(0,V.jsxs)(`p`,{children:[`Save the file and open it with any RDP client. The client will automatically connect to`,(0,V.jsxs)(`strong`,{children:[` `,n,`.swissgpu.ch `]}),` using the specified username.`]})]})}function q({className:e,...t}){return(0,V.jsx)(`kbd`,{"data-slot":`kbd`,className:B(`bg-muted text-muted-foreground in-data-[slot=tooltip-content]:bg-background/20 in-data-[slot=tooltip-content]:text-background dark:in-data-[slot=tooltip-content]:bg-background/10 h-5 w-fit min-w-5 gap-1 rounded-sm px-1 font-sans text-xs font-medium [&_svg:not([class*='size-'])]:size-3 pointer-events-none inline-flex items-center justify-center select-none`,e),...t})}function kl({className:e,...t}){return(0,V.jsx)(`kbd`,{"data-slot":`kbd-group`,className:B(`gap-1 inline-flex items-center`,e),...t})}function Al(){let[e]=na(),t=e.get(`name`)||`<pcname>`,n=e.get(`port`)||`47989`;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`h1`,{children:`How to connect using Moonlight`}),(0,V.jsxs)(`p`,{children:[(0,V.jsx)(`a`,{href:`https://moonlight-stream.org`,target:`_blank`,rel:`noopener noreferrer`,children:`Moonlight`}),` `,`is an open-source application that lets you remotely access a workstation with very low latency and high image quality. It is particularly well suited for GPU workloads, visualization, and interactive applications.`]}),(0,V.jsxs)(`p`,{children:[`Your SwissGPU workstation runs`,` `,(0,V.jsx)(`a`,{href:`https://app.lizardbyte.dev/Sunshine`,target:`_blank`,rel:`noopener noreferrer`,children:`Sunshine`}),`, an open-source GameStream-compatible server. Sunshine captures the workstation’s de
3sktop and encodes it using the GPU so that Moonlight can stream it efficiently to your device.`]}),(0,V.jsx)(`h2`,{children:`Step 1 — Install Moonlight`}),(0,V.jsx)(`p`,{children:`Download and install the Moonlight client on your local computer:`}),(0,V.jsx)(`p`,{children:(0,V.jsx)(`a`,{href:`https://github.com/moonlight-stream/moonlight-qt/releases`,target:`_blank`,rel:`noopener noreferrer`,children:`Moonlight official releases`})}),(0,V.jsx)(`h2`,{children:`Step 2 — Add your workstation`}),(0,V.jsxs)(`p`,{children:[`Open Moonlight and click the `,(0,V.jsx)(`strong`,{children:`Add PC`}),` button in the top-right corner. Enter the hostname of your SwissGPU workstation followed by the port number.`]}),(0,V.jsx)(K,{code:`${t}.swissgpu.ch:${n}`,language:`bash`}),(0,V.jsx)(`p`,{children:`After adding it, the workstation will appear in the Moonlight interface.`}),(0,V.jsx)(`h2`,{children:`Step 3 — Pair the client`}),(0,V.jsxs)(`p`,{children:[`Click on the workstation in Moonlight. A `,(0,V.jsx)(`strong`,{children:`4-digit PIN`}),` will appear. This PIN is required to securely pair your device with the workstation.`]}),(0,V.jsxs)(`p`,{children:[`Open the server dashboard and click the`,` `,(0,V.jsx)(H,{variant:`outline`,className:`inline-flex h-7 px-3 align-baseline`,asChild:!0,children:(0,V.jsx)(F,{to:`/servers`,children:`Pair`})}),` `,`button. Enter the PIN displayed in Moonlight to complete the pairing process.`]}),(0,V.jsx)(`p`,{children:`Once the pairing is completed, simply click the workstation in Moonlight to start streaming your desktop.`}),(0,V.jsx)(`h2`,{children:`Keyboard shortcuts`}),(0,V.jsxs)(`ul`,{className:`space-y-2`,children:[(0,V.jsxs)(`li`,{className:`flex flex-wrap items-start gap-2`,children:[(0,V.jsxs)(kl,{children:[(0,V.jsx)(q,{children:`Ctrl`}),(0,V.jsx)(q,{children:`Alt`}),(0,V.jsx)(q,{children:`Shift`}),(0,V.jsx)(q,{children:`Q`})]}),(0,V.jsx)(`span`,{children:`Quit the streaming session (the session continues running on the host)`})]}),(0,V.jsxs)(`li`,{className:`flex flex-wrap items-start gap-2`,children:[(0,V.jsxs)(kl,{children:[(0,V.jsx)(q,{children:`Ctrl`}),(0,V.jsx)(q,{children:`Alt`}),(0,V.jsx)(q,{children:`Shift`}),(0,V.jsx)(q,{children:`Z`})]}),(0,V.jsx)(`span`,{children:`Enable or disable mouse and keyboard capture`})]}),(0,V.jsxs)(`li`,{className:`flex flex-wrap items-start gap-2`,children:[(0,V.jsxs)(kl,{children:[(0,V.jsx)(q,{children:`Ctrl`}),(0,V.jsx)(q,{children:`Alt`}),(0,V.jsx)(q,{children:`Shift`}),(0,V.jsx)(q,{children:`X`})]}),(0,V.jsx)(`span`,{children:`Switch between fullscreen and windowed mode`})]}),(0,V.jsxs)(`li`,{className:`flex flex-wrap items-start gap-2`,children:[(0,V.jsxs)(kl,{children:[(0,V.jsx)(q,{children:`Ctrl`}),(0,V.jsx)(q,{children:`Alt`}),(0,V.jsx)(q,{children:`Shift`}),(0,V.jsx)(q,{children:`S`})]}),(0,V.jsx)(`span`,{children:`Show performance statistics overlay`})]}),(0,V.jsxs)(`li`,{className:`flex flex-wrap items-start gap-2`,children:[(0,V.jsxs)(kl,{children:[(0,V.jsx)(q,{children:`Ctrl`}),(0,V.jsx)(q,{children:`Alt`}),(0,V.jsx)(q,{children:`Shift`}),(0,V.jsx)(q,{children:`M`})]}),(0,V.jsx)(`span`,{children:`Toggle mouse control mode`})]}),(0,V.jsxs)(`li`,{className:`flex flex-wrap items-start gap-2`,children:[(0,V.jsxs)(kl,{children:[(0,V.jsx)(q,{children:`Ctrl`}),(0,V.jsx)(q,{children:`Alt`}),(0,V.jsx)(q,{children:`Shift`}),(0,V.jsx)(q,{children:`V`})]}),(0,V.jsx)(`span`,{children:`Paste clipboard text into the host machine`})]}),(0,V.jsxs)(`li`,{className:`flex flex-wrap items-start gap-2`,children:[(0,V.jsxs)(kl,{children:[(0,V.jsx)(q,{children:`Ctrl`}),(0,V.jsx)(q,{children:`Alt`}),(0,V.jsx)(q,{children:`Shift`}),(0,V.jsx)(q,{children:`D`})]}),(0,V.jsx)(`span`,{children:`Minimize the stream window`})]}),(0,V.jsxs)(`li`,{className:`flex flex-wrap items-start gap-2`,children:[(0,V.jsxs)(kl,{children:[(0,V.jsx)(q,{children:`Ctrl`}),(0,V.jsx)(q,{children:`Alt`}),(0,V.jsx)(q,{children:`Shift`}),(0,V.jsx)(q,{children:`C`})]}),(0,V.jsx)(`span`,{children:`Toggle the local cursor display`})]}),(0,V.jsxs)(`li`,{className:`flex flex-wrap items-start gap-2`,children:[(0,V.jsxs)(kl,{children:[(0,V.jsx)(q,{children:`Ctrl`}),(0,V.jsx)(q,{children:`Alt`}),(0,V.jsx)(q,{children:`Shift`}),(0,V.jsx)(q,{children:`L`})]}),(0,V.jsx)(`span`,{children:`Lock the mouse pointer inside the streaming window`})]})]}),(0,V.jsx)(`h2`,{children:`Additional resources`}),(0,V.jsx)(`p`,{children:(0,V.jsx)(`a`,{href:`https://github.com/moonlight-stream/moonlight-docs/wiki/Setup-Guide`,target:`_blank`,rel:`noopener noreferrer`,children:`Moonlight setup guide`})})]})}function jl(){return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`h1`,{children:`Visual Studio Code Remote Workflow`}),(0,V.jsx)(`p`,{children:`You can connect Visual Studio Code to a SwissGPU workstation using SSH. You can edit files, open terminals, install extensions, and run development tools directly in the editor.`}),(0,V.jsx)(`p`,{children:`Visual Studio Code runs on your local computer. Ap
3plications run on the SwissGPU workstation. This setup allows you to develop locally while using the full hardware resources of the machine.`}),(0,V.jsxs)(`p`,{children:[`This workflow works well for GPU compute libraries and machine learning frameworks such as`,` `,(0,V.jsx)(`a`,{href:`/guides/pytorch`,children:`PyTorch`}),`, `,(0,V.jsx)(`a`,{href:`/guides/tensorflow`,children:`TensorFlow`}),`,`,` `,(0,V.jsx)(`a`,{href:`/guides/cupy`,children:`CuPy`}),`, `,(0,V.jsx)(`a`,{href:`/guides/cudnn`,children:`cuDNN`}),`, and`,` `,(0,V.jsx)(`a`,{href:`/guides/cudf`,children:`cuDF / RAPIDS`}),`.`]}),(0,V.jsx)(`h2`,{children:`Sources and Useful Links`}),(0,V.jsxs)(`ul`,{children:[(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh`,rel:`noreferrer`,target:`_blank`,children:`Remote - SSH extension (Visual Studio Marketplace)`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://code.visualstudio.com/`,rel:`noreferrer`,target:`_blank`,children:`Visual Studio Code`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://marketplace.visualstudio.com/items?itemName=ms-python.python`,rel:`noreferrer`,target:`_blank`,children:`Python extension for Visual Studio Code`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter`,rel:`noreferrer`,target:`_blank`,children:`Jupyter extension for Visual Studio Code`})})]})]})}function Ml(){return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`img`,{src:`/blender.png`,alt:`Blender banner`,className:`h-28 w-full max-w-3xl object-contain`}),(0,V.jsx)(`h1`,{children:`Blender`}),(0,V.jsx)(`p`,{children:`Blender is a free and open-source 3D creation suite used for a wide range of graphics workflows, including 3D modeling, animation, visual effects, simulation, and rendering. Blender supports the complete 3D production pipeline, allowing users to design objects, animate scenes, simulate physics, and generate final images or videos in a single environment. Blender is widely used by artists, designers, and studios to create digital content for films, games, visualizations, and product design.`}),(0,V.jsx)(`p`,{children:`One of Blender's main advantages is the rendering system. Blender includes multiple rendering engines, including Cycles and Eevee, allowing users to produce photorealistic output or real-time visuals depending on project requirements. Cycles supports GPU-accelerated rendering, which allows complex scenes and lighting calculations to run significantly faster by using the parallel processing capabilities of modern GPUs.`}),(0,V.jsx)(`p`,{children:`GPU rendering can significantly reduce rendering time compared to CPU-based workflows. Blender supports several GPU technologies such as CUDA and OptiX for NVIDIA hardware, allowing rendering computations to run directly on the GPU. This makes it possible to render complex scenes, large animations, and photorealistic images more efficiently.`}),(0,V.jsx)(`p`,{children:`SwissGPU workstations provide dedicated NVIDIA GPUs running on bare-metal hardware, which makes the infrastructure well suited for Blender workloads. Users can install Blender on the workstation and use GPU rendering to accelerate animation and rendering tasks. Because each machine provides exclusive access to the GPU and system resources, Blender can use the full hardware capacity to render complex scenes faster and handle demanding 3D projects.`}),(0,V.jsx)(`h2`,{children:`Resources`}),(0,V.jsxs)(`ul`,{children:[(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://www.blender.org/`,target:`_blank`,rel:`noopener noreferrer`,children:`Blender Official Website`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://docs.blender.org/manual/en/latest/render/cycles/gpu_rendering.html`,target:`_blank`,rel:`noopener noreferrer`,children:`Blender GPU Rendering Documentation`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://www.blender.org/download/`,target:`_blank`,rel:`noopener noreferrer`,children:`Blender Download`})})]})]})}function Nl(){return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`img`,{src:`/carla.jpg`,alt:`CARLA banner`,className:`h-28 w-full max-w-3xl rounded-lg border border-white/10 bg-black/20 object-cover`}),(0,V.jsx)(`h1`,{children:` CARLA `}),(0,V.jsx)(`p`,{children:`CARLA is an open-source simulation platform designed for autonomous driving research and development. CARLA provides a realistic virtual environment where researchers and engineers can test, train, and validate self-driving systems without using physical vehicles or public roads. The simulator includes detailed urban environments such as cities, highways, vehicles, pedestrians, and traffic behavior that represent real-world driving scenarios.`}),(0,V.jsx)(`p`,{children:`CARLA supports the full autonomous driving workflow. The simulator can generate synthetic data from virtual sensors including RGB cameras, depth cameras, LiDAR, radar, and GNSS. This synthetic data can be used to train machine learning models, evaluate perception pipelines, and test planning or control algorithms in repeatable conditions. Controlled simulation conditions also make it easier to test edge cases and safety-critical situations that are difficult to reproduce on physical roads.`}),(0,V.jsx)(`p`,{children:`CARLA uses a client-server architecture. The simulation server handles physics, rendering, and world state, while external 
3client applications connect through APIs to control scenarios and collect data. CARLA provides Python and C++ APIs, which makes integration straightforward for machine learning frameworks, robotics stacks, and custom autonomous driving tooling.`}),(0,V.jsx)(`p`,{children:`SwissGPU workstations provide dedicated NVIDIA GPUs running on bare-metal hardware, which makes the infrastructure suitable for CARLA simulation workloads. You can install CARLA on the workstation and run high-fidelity simulation environments, generate training datasets, and train autonomous driving models directly on the same machine. Because each workstation provides exclusive access to GPU and system resources, CARLA workloads can run with predictable performance and consistent runtime behavior.`}),(0,V.jsx)(`h2`,{children:`Resources`}),(0,V.jsxs)(`ul`,{children:[(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://carla.org/`,target:`_blank`,rel:`noopener noreferrer`,children:`CARLA Official Website`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://carla.readthedocs.io/en/latest/`,target:`_blank`,rel:`noopener noreferrer`,children:`CARLA Documentation`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://github.com/carla-simulator/carla`,target:`_blank`,rel:`noopener noreferrer`,children:`CARLA GitHub Repository`})})]})]})}function Pl(){return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`img`,{src:`/RAPIDS.png`,alt:`RAPIDS banner`,className:`h-28 w-full max-w-3xl object-contain`}),(0,V.jsx)(`h1`,{children:` Rapids - CuDF `}),(0,V.jsx)(`p`,{children:`CuDF is a GPU-accelerated DataFrame library developed as part of the NVIDIA RAPIDS ecosystem. cuDF provides a Python interface similar to pandas, allowing users to load, process, and analyze tabular data using familiar DataFrame operations such as filtering, joining, aggregations, and transformations. Unlike traditional data processing tools that run on CPUs, cuDF executes these operations directly on NVIDIA GPUs using CUDA, enabling highly parallel computation and much higher memory bandwidth. CuDF can be up to 50x faster than pandas for large-scale data processing workloads.`}),(0,V.jsx)(`p`,{children:`The main benefit of cuDF is performance. By moving data processing workloads from the CPU to the GPU, many analytics workflows can run significantly faster, often achieving large speed improvements for operations on large datasets. This allows data scientists and engineers to process more data, iterate faster, and build scalable data pipelines without rewriting large portions of existing code. In many cases, workflows written for pandas can be adapted with minimal changes while still benefiting from GPU acceleration.`}),(0,V.jsx)(`p`,{children:`CuDF integrates well with the broader Python data ecosystem and can work alongside libraries such as CuPy, Numba, and machine learning frameworks within the RAPIDS stack. This makes it possible to build end-to-e
3nd GPU-accelerated data science workflows, from data preparation and feature engineering to machine learning and analytics.`}),(0,V.jsx)(`p`,{children:`SwissGPU workstations provide dedicated NVIDIA GPUs running on bare-metal hardware, which makes the infrastructure well suited for libraries such as CuDF. Users can install RAPIDS and run GPU-accelerated DataFrame workloads directly on the workstation. Because each machine provides exclusive access to the GPU and system resources, CuDF can use the full compute and memory capacity of the hardware to process large datasets efficiently.`}),(0,V.jsx)(`h2`,{children:`Resources`}),(0,V.jsxs)(`ul`,{children:[(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://rapids.ai/`,target:`_blank`,rel:`noopener noreferrer`,children:`RAPIDS Official Website`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://docs.rapids.ai/api/cudf/stable/`,target:`_blank`,rel:`noopener noreferrer`,children:`cuDF Documentation`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://github.com/rapidsai/cudf`,target:`_blank`,rel:`noopener noreferrer`,children:`cuDF GitHub Repository`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://developer.nvidia.com/rapids`,target:`_blank`,rel:`noopener noreferrer`,children:`NVIDIA RAPIDS Developer Hub`})})]})]})}function Fl(){return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`img`,{src:`/cupy.png`,alt:`CuPy banner`,className:`h-28 w-full max-w-3xl object-contain`}),(0,V.jsx)(`h1`,{children:`CuPy`}),(0,V.jsx)(`p`,{children:`CuPy is a GPU-accelerated array library for Python that provides a NumPy-compatible interface for numerical computing. The library allows users to create and manipulate multi-dimensional arrays and perform mathematical operations using syntax that closely matches the NumPy API. Instead of executing computations on the CPU, CuPy runs operations on the GPU using NVIDIA CUDA, enabling highly parallel execution for numerical workloads.`}),(0,V.jsx)(`p`,{children:`The main benefit of CuPy is performance. GPUs contain thousands of processing cores designed for parallel workloads, which makes the hardware particularly effective for array operations, matrix calculations, and scientific computing tasks. By replacing NumPy with CuPy in existing Python code, many numerical workflows can be accelerated with minimal code changes while maintaining a familiar programming model.`}),(0,V.jsx)(`p`,{children:`CuPy also integrates well with the Python scientific computing ecosystem. The library supports common numerical capabilities such as linear algebra, random number generation, Fourier transforms, sparse matrices, and other scientific computing routines. Because the API mirrors NumPy and parts of SciPy, existing CPU-based code can often be migrated to GPU execution by switching the array library.`}),(0,V.jsx)(`p`,{children:`SwissGPU workstations provide dedicated NVIDIA GPUs running directly on bare-metal hardware, which makes the infrastructure well suited for libraries such as CuPy. Users can install CuPy and run GPU-accelerated numerical workloads directly on the workstation. Because each machine provides exclusive access to the GPU and system resources, CuPy can use the full compute capability of the hardware to accelerate array processing, simulations, and large-scale numerical workloads.`}),(0,V.jsx)(`h2`,{children:`Resources`}),(0,V.jsxs)(`ul`,{children:[(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://cupy.dev/`,target:`_blank`,rel:`noopener noreferrer`,children:`CuPy Official Website`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://docs.cupy.dev/en/stable/`,target:`_blank`,rel:`noopener noreferrer`,children:`CuPy Documentation`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://github.com/cupy/cupy`,target:`_blank`,rel:`noopener noreferrer`,children:`CuPy GitHub Repository`})})]})]})}function Il(){return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`h1`,{children:`cuVS`}),(0,V.jsx)(`p`,{children:`cuVS is an open-source library from NVIDIA for GPU-accelerated vector search and data clustering. The library is designed for workloads that need to search large collections of embeddings quickly. Typical use cases include semantic search, recommendation systems, and retrieval-augmented generation.`}),(0,V.jsx)(`p`,{children:`The library focuses on vector embeddings, which are numerical representations of data such as text, images, and audio. cuVS provides exact and approximate nearest neighbor search methods so the user can balance speed, memory use, and search quality for a specific workload.`}),(0,V.jsx)(`p`,{children:`cuVS includes indexing approaches such as IVF-Flat, IVF-PQ, and graph-based search. These methods are useful when the system must search very large datasets with low latency. Because cuVS runs on NVIDIA GPUs with CUDA, the library can reduce both query time and index build time compared with CPU-only workflows.`}),(0,V.jsx)(`p`,{children:`cuVS can fit into existing data and AI stacks. The library can be used alongside tools and platforms such as FAISS, Milvus, and Lucene. NVIDIA provides interfaces for several languages, including C, C++, Python, Rust, Java, and Go, which makes the library suitable for both systems programming and application development.`}),(0,V.jsx)(`p`,{children:`SwissGPU workstations provide dedicated NVIDIA GPUs running on bare-metal hardware, which makes them well suited for cuVS workloads. You can install cuVS as part of a CUDA-based software stack and run vector search pipelines, retrieval systems, or clustering jobs directly on the workstation. Because each machine provides exclusive access to GPU, CPU, memory, and storage resources, the system can use the full hardware capacity for large embedding datasets and low-latency search services.`}),(0,V.jsx)(`h2`,{children:`Resources`}),(0,V.jsxs)(`ul`,{children:[(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://developer.nvidia.com/cuvs`,target:`_blank`,rel:`noopener noreferrer`,children:`NVIDIA cuVS Overview`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://github.com/rapidsai/cuvs`,target:`_blank`,rel:`noopener noreferrer`,children:`cuVS GitHub Repository`})})]})]})}function Ll(){return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`h1`,{children:`cuDNN`}),(0,V.jsx)(`p`,{children:`cuDNN is a GPU-accelerated library developed by NVIDIA for deep learning workloads. The library provides optimized implementations of operations commonly used in neural networks. These operations include convolutions, pooling, normalization, and activation functions. Deep learning frameworks can use these implementations to run training and inference more efficiently on NVIDIA GPUs.`}),(0,V.jsx)(`p`,{children:`cuDNN is often used indirectly through frameworks such as TensorFlow and PyTorch. The framework calls cuDNN to execute low-level neural network operations on the GPU. This allows developers to use high-level machine learning APIs without manually implementing GPU kernels. It also helps the frameworks achieve strong performance across different NVIDIA GPU architectures.`}),(0,V.jsx)(`p`,{children:`NVIDIA designed cuDNN to select efficient kernels for a given workload. The library can tune and choose algorithms based on the model, tensor shapes, and GPU hardware. cuDNN also supports mixed-precision computation, which can reduce memory usage and improve throughput for many deep learning workloads.`}),(0,V.jsx)(`p`,{children:`SwissGPU workstations provide dedicated NVIDIA GPUs running on bare-metal hardware. This makes the platform well suited for workloads that depend on CUDA and cuDNN. You can install cuDNN alongside CUDA and a framework such as TensorFlow or PyTorch to train models, run inference jobs, and test deep learning pipelines on a dedicated workstation.`}),(0,V.jsx)(`h2`,{children:`Resources`}),(0,V.jsxs)(`ul`,{children:[(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://developer.nvidia.com/cudnn`,target:`_blank`,rel:`noopener noreferrer`,children:`NVIDIA cuDNN Overview`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://docs.nvidia.com/deeplearning/cudnn/`,target:`_blank`,rel:`noopener noreferrer`,children:`cuDNN Documentation`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://docs.nvidia.com/deeplearning/frameworks/support-matrix/index.html`,target:`_blank`,rel:`noopener noreferrer`,children:`NVIDIA Framework Support Matrix`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://developer.nvidia.com/cuda-toolkit`,target:`_blank`,rel:`noopener noreferrer`,children:`CUDA Toolkit`})})]})]})}function J(){return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`h1`,{children:`cuOpt`}),(0,V.jsx)(`p`,{children:`cuOpt is a GPU-accelerated decision optimization library developed by NVIDIA. The library is designed to solve large optimization problems such as logistics planning, routing, and resource allocation. It uses the parallel processing capabilities of NVIDIA GPUs to reduce solution times for workloads that are often too slow on CPU-only systems.`}),(0,V.jsx)(`p`,{children:`cuOpt focuses on optimization domains such as linear programming, mixed-integer programming, and vehicle routing problems. These problem types are common in supply chains, transportation systems, manufacturing, energy planning, and financial modeling. The library can process very large numbers of variables and constraints while still producing results fast enough for operational decision-making.`}),(0,V.jsx)(`p`,{children:`NVIDIA provides cuOpt with GPU-accelerated barrier methods and heuristics. This allows the library to support both exact optimization workflows and faster approximate methods when a system needs quick answers. cuOpt can also recompute solutions as inputs change, which is useful for dynamic routing, scheduling, and other near real-time applications.`}),(0,V.jsx)(`p`,{children:`cuOpt integrates with tools such as AMPL, CVXPY, Pyomo, PuLP, and SciPy. This makes it possible to adapt existing optimization models without rebuilding an entire workflow from scratch. The library can run as a standalone solver or as part of a larger application that combines simulation, automation, and machine learning.`}),(0,V.jsx)(`p`,{children:`SwissGPU provides dedicated NVIDIA GPU workstations hosted on bare metal. This infrastru
3cture is well suited for cuOpt workloads that need reliable access to GPU compute resources. You can install cuOpt in a CUDA-based software environment and run optimization tasks such as route planning, scheduling, or resource allocation directly on the workstation.`}),(0,V.jsx)(`h2`,{children:`Resources`}),(0,V.jsxs)(`ul`,{children:[(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://www.nvidia.com/en-us/ai-data-science/products/cuopt/`,target:`_blank`,rel:`noopener noreferrer`,children:`NVIDIA cuOpt Overview`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://docs.nvidia.com/cuopt/`,target:`_blank`,rel:`noopener noreferrer`,children:`cuOpt Documentation`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://github.com/NVIDIA/cuopt-examples`,target:`_blank`,rel:`noopener noreferrer`,children:`cuOpt Examples`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://developer.nvidia.com/cuda-toolkit`,target:`_blank`,rel:`noopener noreferrer`,children:`CUDA Toolkit`})})]})]})}function Y(){return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`img`,{src:`/isaac-sim.jpg`,alt:`Isaac Sim banner`,className:`h-28 w-full max-w-3xl rounded-lg border border-white/10 bg-black/20 object-cover`}),(0,V.jsx)(`h1`,{children:`Isaac Sim`}),(0,V.jsx)(`p`,{children:`Isaac Sim is a robotics simulation platform developed by NVIDIA and built on the NVIDIA Omniverse framework. The software allows you to design, simulate, and test AI-driven robots inside physically accurate virtual environments. Using realistic 3D scenes and physics simulation, Isaac Sim makes it possible to develop robotics systems without needing access to physical robots during early development stages.`}),(0,V.jsx)(`p`,{children:`The platform includes tools to simulate robotic sensors such as cameras, LiDAR, radar, and contact sensors. These simulated sensors generate synthetic data that can be used to train machine learning models and test perception systems. Isaac Sim also supports common robotics workflows such as reinforcement learning, environment simulation, and large-scale data generation for robotics research.`}),(0,V.jsx)(`p`,{children:`Isaac Sim uses GPU-accelerated physics and RTX rendering to simulate robot movement, environments, and sensor outputs with high fidelity. This allows complex robotics experiments to run efficiently and enables developers to test robot behavior, navigation systems, and control algorithms in realistic scenarios before deploying them to real hardware.`}),(0,V.jsx)(`p`,{children:`SwissGPU workstations provide dedicated NVIDIA GPUs running directly on bare-metal hardware, which makes them well suited for Isaac Sim workloads. You can install Isaac Sim on the workstation and run robotics simulations, generate training data, or develop autonomous robot systems directly on the machine. Because the system provides exclusive access to the GPU and hardware resources, you can run high-fidelity robotics simulations and AI training pipelines efficiently.`}),(0,V.jsx)(`h2`,{children:`Resources`}),(0,V.jsxs)(`ul`,{children:[(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://developer.nvidia.com/isaac/sim`,target:`_blank`,rel:`noopener noreferrer`,children:`NVIDIA Isaac Sim Overview`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://docs.isaacsim.omniverse.nvidia.com/latest/index.html`,target:`_blank`,rel:`noopener noreferrer`,children:`Isaac Sim Documentation`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://forums.developer.nvidia.com/c/omniverse/300`,target:`_blank`,rel:`noopener noreferrer`,children:`NVIDIA Omniverse Developer Forums`})})]})]})}var Rl=`git clone https://github.com/comfyanonymous/ComfyUI.git
4cd ComfyUI`,zl=`python3 -m venv venv
5source venv/bin/activate`,Bl=`pip install torch torchvision torchaudio \\
6  --index-url https://download.pytorch.org/whl/cu128`,Vl=`pip install -r requirements.txt`,Hl=`python main.py --listen 0.0.0.0 --port 8188 --enable-manager`,Ul=`cd ComfyUI
7git pull
8pip install -r requirements.txt`,Wl=`ComfyUI/models/checkpoints
9ComfyUI/models/vae
10ComfyUI/models/loras
11ComfyUI/models/controlnet`,Gl=`my_models:
12    base_path: /srv/ai-models
13    checkpoints: checkpoints
14    vae: vae
15    loras: loras
16    controlnet: controlnet`,Kl=`[Unit]
17Description=ComfyUI
18After=network-online.target
19
20[Service]
21User=%i
22WorkingDirectory=/home/%i/ComfyUI
23ExecStart=/home/%i/ComfyUI/venv/bin/python main.py \\
24  --listen 0.0.0.0 --port 8188 --enable-manager
25Restart=always
26
27[Install]
28WantedBy=multi-user.target`,ql=`journalctl -u comfyui@$(whoami) -f`;function Jl(){return(0,V.jsxs)(`div`,{className:`space-y-8 text-sm text-white/80`,children:[(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h1`,{className:`text-2xl font-semibold text-white`,children:`ComfyUI on SwissGPU`}),(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Introduction`}),(0,V.jsxs)(`p`,{children:[`ComfyUI is a node-based interface for running diffusion and image generation workflows. On a SwissGPU server it can be installed directly over SSH, started on port`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`8188`}),`, load your own models, and keep the setup simple to maintain.`]}),(0,V.jsx)(`p`,{children:`A manual Linux installation works well on remote GPU servers because it gives direct control over Python, PyTorch, model storage, and startup behavior.`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`What You Need`}),(0,V.jsxs)(`ul`,{className:`list-disc space-y-2 pl-6`,children:[(0,V.jsx)(`li`,{children:`An active SwissGPU Linux server with an NVIDIA GPU.`}),(0,V.jsx)(`li`,{children:`Working SSH access.`}),(0,V.jsx)(`li`,{children:`Python 3 and Git installed on the server.`}),(0,V.jsxs)(`li`,{children:[`An open port you can use for the web UI, typically`,` `,(0,V.jsx)(`span`,{className:`font-mono text-white`,children:`8188`}),`.`]}),(0,V.jsx)(`li`,{children:`At least one compatible checkpoint model to load after installation.`})]})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 1: Verify GPU Availability`}),(0,V.jsx)(K,{code:`nvidia-smi`,language:`bash`}),(0,V.jsx)(`p`,{children:`Confirm that the server sees the GPU before installing any Python dependencies.`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 2: Clone ComfyUI`}),(0,V.jsx)(K,{code:Rl,language:`bash`}),(0,V.jsx)(`p`,{children:`The official ComfyUI docs recommend cloning the repository and installing dependencies inside a dedicated environment.`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 3: Create an Isolated Python Environment`}),(0,V.jsx)(K,{code:zl,language:`bash`}),(0,V.jsx)(`p`,{children:`This keeps ComfyUI dependencies separate from the rest of the system.`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 4: Install PyTorch and ComfyUI Dependencies`}),(0,V.jsx)(`p`,{children:`On a modern NVIDIA server, install the CUDA-enabled PyTorch wheels first:`}),(0,V.jsx)(K,{code:Bl,language:`bash`}),(0,V.jsx)(`p`,{children:`Then install ComfyUI requirements:`}),(0,V.jsx)(K,{code:Vl,language:`bash`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 5: Start ComfyUI`}),(0,V.jsx)(K,{code:Hl,language:`bash`}),(0,V.jsxs)(`p`,{children:[`Once it starts, open`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`http://<server-host>:8188`}),`in your browser.`]}),(0,V.jsxs)(`p`,{children:[`The `,(0,V.jsx)(`span`,{className:`font-mono text-white`,children:`--enable-manager`}),` flag turns on ComfyUI-Manager, which makes custom node installation much easier later.`]})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 6: Add Models`}),(0,V.jsx)(`p`,{children:`At minimum, ComfyUI needs a checkpoint model. Common model folders are:`}),(0,V.jsx)(K,{code:Wl,language:`text`}),(0,V.jsxs)(`p`,{children:[`The usual starting point is to place your main checkpoint file in`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`ComfyUI/models/checkpoints`}),`and refresh the browser after the file is present.`]})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 7: Reuse a Shared Model Directory`}),(0,V.jsxs)(`p`,{children:[`If you keep models outside the ComfyUI repository, create`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`extra_model_paths.yaml`}),`in the ComfyUI root and add entries like this:`]}),(0,V.jsx)(K,{code:Gl,language:`yaml`}),(0,V.jsx)(`p`,{children:`This is useful when you want ComfyUI to share checkpoints and LoRAs with other tools.`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 8: Keep ComfyUI Running as a Service`}),(0,V.jsx)(`p`,{children:`If you want ComfyUI to survive shell disconnects and reboots, create a user service template:`}),(0,V.jsx)(K,{code:Kl,language:`ini`}),(0,V.jsxs)(`p`,{children:[`Save it as `,(0,V.jsx)(`span`,{className:`font-mono text-white`,children:`/etc/systemd/system/[email protected]`}),`, then enable it for your user:`]}),(0,V.jsx)(K,{code:`sudo systemctl daemon-reload\\nsudo systemctl enable --now comfyui@$(wh
28oami)`,language:`bash`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 9: Update ComfyUI Later`}),(0,V.jsx)(K,{code:Ul,language:`bash`}),(0,V.jsx)(`p`,{children:`Updating regularly is useful because ComfyUI moves quickly, especially around nodes, workflows, and frontend changes.`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Practical First Steps in the UI`}),(0,V.jsxs)(`ul`,{className:`list-disc space-y-2 pl-6`,children:[(0,V.jsx)(`li`,{children:`Open the web UI and load a basic text-to-image workflow.`}),(0,V.jsx)(`li`,{children:`Select a checkpoint from the loader node.`}),(0,V.jsx)(`li`,{children:`Set a small resolution first to verify the pipeline works.`}),(0,V.jsxs)(`li`,{children:[`Queue one generation and monitor GPU usage with`,` `,(0,V.jsx)(`span`,{className:`font-mono text-white`,children:`nvidia-smi`}),`.`]}),(0,V.jsx)(`li`,{children:`Only after the basic workflow works should you add custom nodes or larger models.`})]})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Troubleshooting`}),(0,V.jsx)(K,{code:ql,language:`bash`}),(0,V.jsxs)(`ul`,{className:`list-disc space-y-2 pl-6`,children:[(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`span`,{className:`font-semibold text-white`,children:`Blank page or cannot connect:`}),` confirm the process is still running and that the selected port is reachable.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`span`,{className:`font-semibold text-white`,children:`No models in the checkpoint loader:`}),` verify the files are in `,(0,V.jsx)(`span`,{className:`font-mono text-white`,children:`models/checkpoints`}),` or correctly mapped through `,(0,V.jsx)(`span`,{className:`font-mono text-white`,children:`extra_model_paths.yaml`}),`.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`span`,{className:`font-semibold text-white`,children:`Torch or CUDA errors:`}),` reinstall the PyTorch wheels that match the server GPU and driver stack.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`span`,{className:`font-semibold text-white`,children:`Out-of-memory errors:`}),` lower resolution, use a smaller checkpoint, or reduce batch size.`]})]})]})]})}var Yl=`curl -fsSL https://openclaw.ai/install.sh | bash`,Xl=`openclaw onboard --install-daemon`,Zl=`export PATH="$HOME/.npm-global/bin:$PATH"
29echo 'export PATH="$HOME/.npm-global/bin:$PATH"' >> ~/.bashrc
30source ~/.bashrc`,Ql=`systemctl --user enable --now openclaw-gateway.service
31openclaw gateway status
32openclaw health
33curl -I http://127.0.0.1:18789/`,$l=`openclaw gateway install
34openclaw config set gateway.mode '"local"'
35openclaw config set gateway.bind '"loopback"'
36openclaw config validate`,eu=`openclaw config get gateway.auth.token`,tu=`sudo loginctl enable-linger "$USER"`,nu=`ssh -N -L 18789:127.0.0.1:18789 <your-existing-ssh-target>`,ru=`curl -fsSL https://ollama.com/install.sh | sh`,iu=`sudo systemctl status --no-pager ollama
37ollama --version`,au=`ollama pull llama3.2:1b`,ou=`cat >/tmp/ollama-test.json <<'EOF'
38{
39  "model": "llama3.2:1b",
40  "prompt": "Reply only: OK",
41  "stream": false,
42  "keep_alive": "5m"
43}
44EOF
45curl -s http://127.0.0.1:11434/api/generate -d @/tmp/ollama-test.json
46ollama ps`,su=`openclaw configure --section model`,cu=`Provider: Ollama
47Base URL: http://127.0.0.1:11434
48API key: ollama-local
49Model: llama3.2:1b`,lu=`sudo apt-get update
50sudo apt-get install -y python3-pip python3.12-venv`,uu=`python3 -m venv ~/vllm-test-env
51source ~/vllm-test-env/bin/activate
52python -m pip install --upgrade pip
53python -m pip install vllm`,du=`ollama stop llama3.2:1b`,fu=`vllm serve Qwen/Qwen2.5-0.5B-Instruct \\
54  --host 127.0.0.1 \\
55  --port 8000 \\
56  --api-key vllm-local \\
57  --gpu-memory-utilization 0.8`,pu=`curl -s http://127.0.0.1:8000/v1/models -H 'Authorization: Bearer vllm-local'`,mu=`Provider: vLLM
58Base URL: http://127.0.0.1:8000/v1
59API key: vllm-local
60Model: Qwen/Qwen2.5-0.5B-Instruct`,hu=`openclaw gateway status
61journalctl --user -u openclaw-gateway.service -n 100 --no-pager
62ollama ps
63tail -n 120 /tmp/vllm.log
64nvidia-smi`;function gu(){return(0,V.jsxs)(`div`,{className:`space-y-8 text-sm text-white/80`,children:[(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h1`,{className:`text-2xl font-semibold text-white`,children:`OpenClaw on SwissGPU`}),(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Introduction`}),(0,V.jsx)(`p`,{children:`OpenClaw is a self-hosted gateway for AI agents. It runs as a single gateway process on your server and provides a browser control UI for chat, sessions, configuration, and model setup.`}),(0,V.jsx)(`p`,{children:`It can be used directly in the browser, or connected to channels such as WhatsApp, Telegram, Discord, and iMessage. The main benefit is control: the gateway, workspace, and model connection stay on your own machine instead of depending on a hosted service.`}),(0,V.jsx)(`p`,{children:`On a SwissGPU server, OpenClaw works well as the control layer in front of local GPU-backed model runtimes such as Ollama or vLLM. The usual setup is to install OpenClaw, c
64omplete the onboarding wizard, confirm that the gateway is running, and then connect a local model provider on the same machine.`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`What You Need`}),(0,V.jsxs)(`ul`,{className:`list-disc space-y-2 pl-6`,children:[(0,V.jsx)(`li`,{children:`An active SwissGPU Linux server with an NVIDIA GPU.`}),(0,V.jsx)(`li`,{children:`Working SSH access.`}),(0,V.jsxs)(`li`,{children:[`A user account with `,(0,V.jsx)(`span`,{className:`font-mono text-white`,children:`sudo`}),` privileges.`]}),(0,V.jsx)(`li`,{children:`Enough disk space for OpenClaw and at least one local model.`})]})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 1: Verify GPU Availability`}),(0,V.jsx)(`p`,{children:`After logging in by SSH, check that the GPU is visible:`}),(0,V.jsx)(K,{code:`nvidia-smi`,language:`bash`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 2: Install OpenClaw`}),(0,V.jsx)(K,{code:Yl,language:`bash`}),(0,V.jsxs)(`p`,{children:[`The installer sets up OpenClaw and may ask for`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`sudo`}),`so it can install Node.js and the base packages OpenClaw needs.`]})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 3: Complete the Onboarding Wizard`}),(0,V.jsx)(`p`,{children:`After installation, OpenClaw opens its onboarding wizard automatically. The wizard is the simplest way to accept the security notice, choose a local gateway, and configure a first model provider.`}),(0,V.jsx)(`p`,{children:`If you close it or want to run it again later, start it with:`}),(0,V.jsx)(K,{code:Xl,language:`bash`}),(0,V.jsxs)(`p`,{children:[`For a local setup, choose`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`Local (this machine)`}),`when OpenClaw asks where the gateway should run.`]})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 4: Put OpenClaw on PATH`}),(0,V.jsx)(`p`,{children:`To make the OpenClaw command available in new shells, add the npm user bin directory to your shell path:`}),(0,V.jsx)(K,{code:Zl,language:`bash`}),(0,V.jsxs)(`p`,{children:[`If your server uses`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`zsh`}),`instead of`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`bash`}),`, write the same export line to`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`~/.zshrc`}),`instead.`]})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 5: Confirm the Local Gateway`}),(0,V.jsx)(K,{code:Ql,language:`bash`}),(0,V.jsxs)(`p`,{children:[`Once the gateway is running, the local dashboard is available on`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`127.0.0.1:18789`}),`.`]}),(0,V.jsx)(`p`,{children:`If you want OpenClaw to keep running after logout and reboot, enable linger once:`}),(0,V.jsx)(K,{code:tu,language:`bash`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 6: Manual Gateway Setup`}),(0,V.jsx)(`p`,{children:`If the wizard did not create the local gateway, or if you want to recreate it manually, run:`}),(0,V.jsx)(K,{code:$l,language:`bash`}),(0,V.jsx)(`p`,{children:`You can print the gateway token later with:`}),(0,V.jsx)(K,{code:eu,language:`bash`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 7: Optional Browser Access`}),(0,V.jsx)(`p`,{children:`If you want to open the OpenClaw UI in a browser on the local machine, forward the local gateway port:`}),(0,V.jsx)(K,{code:nu,language:`bash`}),(0,V.jsxs)(`p`,{children:[`Once the tunnel is open, the local browser can use`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`http://127.0.0.1:18789/`}),`.`]})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 8: Install Ollama`}),(0,V.jsx)(K,{code:ru,language:`bash`}),(0,V.jsx)(`p`,{children:`The official Linux installer sets up the Ollama binary and systemd service.`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 9: Pull and Test an Ollama Model`}),(0,V.jsx)(`p`,{children:`Check that the service is active:`}),(0,V.jsx)(K,{code:iu,language:`bash`}),(0,V.jsx)(`p`,{children:`Download a small model first:`}),(0,V.jsx)(K,{code:au,language:`bash`}),(0,V.jsx)(`p`,{children:`Then test the local API and confirm the model is using the GPU:`}),(0,V.jsx)(K,{code:ou,language:`bash`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 10: Connect Ollama to OpenClaw`}),(0,V.jsx)(`p`,{children:`If the onboarding wizard already configured Ollama, you can skip this 
64step.`}),(0,V.jsx)(`p`,{children:`Otherwise run the focused model configuration flow:`}),(0,V.jsx)(K,{code:su,language:`bash`}),(0,V.jsxs)(`p`,{children:[`Choose`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`Local (this machine)`}),`for the gateway location, then choose`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`Ollama`}),`as the provider.`]}),(0,V.jsx)(`p`,{children:`Use these values when OpenClaw asks for the local provider details:`}),(0,V.jsx)(K,{code:cu,language:`text`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 11: Install vLLM Prerequisites`}),(0,V.jsxs)(`p`,{children:[`A clean Ubuntu server does not always include the packages needed for`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`python3 -m venv`}),`and`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`pip`}),`. Install them first:`]}),(0,V.jsx)(K,{code:lu,language:`bash`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 12: Install and Start vLLM`}),(0,V.jsx)(`p`,{children:`Create an isolated environment and install vLLM:`}),(0,V.jsx)(K,{code:uu,language:`bash`}),(0,V.jsx)(`p`,{children:`If Ollama is still holding a model in GPU memory, unload it before starting vLLM on the same GPU:`}),(0,V.jsx)(K,{code:du,language:`bash`}),(0,V.jsx)(`p`,{children:`Start the server:`}),(0,V.jsx)(K,{code:fu,language:`bash`}),(0,V.jsx)(`p`,{children:`Once the model is loaded, confirm that the OpenAI-compatible endpoint is available:`}),(0,V.jsx)(K,{code:pu,language:`bash`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 13: Connect vLLM to OpenClaw`}),(0,V.jsx)(`p`,{children:`If the onboarding wizard already configured vLLM, you can skip this step.`}),(0,V.jsx)(`p`,{children:`Otherwise run the focused model configuration flow again:`}),(0,V.jsx)(K,{code:su,language:`bash`}),(0,V.jsxs)(`p`,{children:[`Choose`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`Local (this machine)`}),`for the gateway location, then choose`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`vLLM`}),`as the provider.`]}),(0,V.jsx)(`p`,{children:`Use these values for the vLLM provider:`}),(0,V.jsx)(K,{code:mu,language:`text`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Troubleshooting`}),(0,V.jsx)(K,{code:hu,language:`bash`}),(0,V.jsxs)(`ul`,{className:`list-disc space-y-2 pl-6`,children:[(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`span`,{className:`font-semibold text-white`,children:`OpenClaw is not found in a new shell:`}),` add`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`~/.npm-global/bin`}),`to the shell path and reload the shell.`]}
64),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`span`,{className:`font-semibold text-white`,children:`The gateway service starts and exits:`}),` confirm that`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`gateway.mode`}),`is set to`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`local`}),`and`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`gateway.bind`}),`is set to`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`loopback`}),`.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`span`,{className:`font-semibold text-white`,children:`The gateway probe fails right after restart:`}),` `,`wait a few seconds and run the status command again.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`span`,{className:`font-semibold text-white`,children:`Python venv creation fails:`}),` install`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`python3.12-venv`}),`first.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`span`,{className:`font-semibold text-white`,children:`vLLM fails with a GPU memory error:`}),` stop the loaded Ollama model or lower`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`--gpu-memory-utilization`}),`.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`span`,{className:`font-semibold text-white`,children:`The vLLM models endpoint returns Unauthorized:`}),` `,`pass the bearer token header in the`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`curl`}),`request.`]})]})]})]})}var _u=`curl -fsSL https://ollama.com/install.sh | sh`,vu=`sudo systemctl start ollama
65sudo systemctl status ollama`,yu=`ollama pull gpt-oss:20b`,bu=`ollama run gpt-oss:20b`,xu=`ollama ps`,Su=`curl http://localhost:11434/api/generate -d '{
66  "model": "gpt-oss:20b",
67  "prompt": "Write a one-sentence hello from Ollama."
68}'`,Cu=`[Service]
69Environment="OLLAMA_HOST=0.0.0.0:11434"`,wu=`sudo systemctl daemon-reload
70sudo systemctl restart ollama`,Tu=`journalctl -e -u ollama`;function Eu(){return(0,V.jsxs)(`div`,{className:`space-y-8 text-sm text-white/80`,children:[(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h1`,{className:`text-2xl font-semibold text-white`,children:`Ollama on SwissGPU`}),(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Introduction`}),(0,V.jsx)(`p`,{children:`Ollama is one of the simplest ways to run local language models on a GPU server. It installs quickly, exposes a small HTTP API, and makes it easy to pull and test models directly from the terminal.`}),(0,V.jsx)(`p`,{children:`On a SwissGPU machine, the usual flow is to install Ollama, start the service, pull a model, confirm that it loads on the GPU, and optionally expose the API on a reachable port.`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`What You Need`}),(0,V.jsxs)(`ul`,{className:`list-disc space-y-2 pl-6`,children:[(0,V.jsx)(`li`,{children:`An active SwissGPU Linux server with an NVIDIA GPU.`}),(0,V.jsx)(`li`,{children:`Working SSH access.`}),(0,V.jsx)(`li`,{children:`Enough VRAM for the model you plan to run.`}),(0,V.jsx)(`li`,{children:`A reachable port if you want to access the API directly from outside the server.`})]})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 1: Verify GPU Availability`}),(0,V.jsx)(`p`,{children:`After logging in by SSH, check that the GPU is visible:`}),(0,V.jsx)(K,{code:`nvidia-smi`,language:`bash`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 2: Install Ollama`}),(0,V.jsx)(K,{code:_u,language:`bash`}),(0,V.jsx)(`p`,{children:`The official Linux installer sets up the Ollama binary and systemd service.`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 3: Start the Service`}),(0,V.jsx)(K,{code:vu,language:`bash`}),(0,V.jsxs)(`p`,{children:[`Once the service is active, the local API is available on port`,` `,(0,V.jsx)(`span`,{className:`font-mono text-white`,children:`11434`}),`.`]})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 4: Pull and Run a Model`}),(0,V.jsx)(`p`,{children:`Download a model first:`}),(0,V.jsx)(K,{code:yu,language:`bash`}),(0,V.jsx)(`p`,{children:`Then launch it interactively:`}),(0,V.jsx)(K,{code:bu,language:`bash`}),(0,V.jsx)(`p`,{children:`For a quick first test, ask a short prompt and confirm that text is generated 
70without errors.`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 5: Confirm the Model Is Using the GPU`}),(0,V.jsx)(K,{code:xu,language:`bash`}),(0,V.jsx)(`p`,{children:`The processor column shows whether the active model is running on GPU, CPU, or split across both.`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 6: Test the HTTP API`}),(0,V.jsx)(`p`,{children:`Ollama exposes a simple local API by default. Test it directly on the server with:`}),(0,V.jsx)(K,{code:Su,language:`bash`})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Step 7: Optional Direct Network Access`}),(0,V.jsx)(`p`,{children:`If your server already has open ports and you want to reach Ollama directly, edit the systemd override:`}),(0,V.jsx)(K,{code:`sudo systemctl edit ollama`,language:`bash`}),(0,V.jsx)(`p`,{children:`Add this content:`}),(0,V.jsx)(K,{code:Cu,language:`ini`}),(0,V.jsx)(`p`,{children:`Then reload and restart the service:`}),(0,V.jsx)(K,{code:wu,language:`bash`}),(0,V.jsxs)(`p`,{children:[`After that, the API can be reached at`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`http://<server-host>:11434`}),`.`]})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Common Commands`}),(0,V.jsxs)(`ul`,{className:`list-disc space-y-2 pl-6`,children:[(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`span`,{className:`font-mono text-white`,children:`ollama list`}),` shows downloaded models.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`span`,{className:`font-mono text-white`,children:`ollama ps`}),` shows loaded models and where they run.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`span`,{className:`font-mono text-white`,children:`ollama pull <model>`}),` downloads a new model.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`span`,{className:`font-mono text-white`,children:`ollama run <model>`}),` starts an interactive session.`]})]})]}),(0,V.jsxs)(`section`,{className:`space-y-3`,children:[(0,V.jsx)(`h2`,{className:`text-xl font-semibold text-white`,children:`Troubleshooting`}),(0,V.jsx)(K,{code:Tu,language:`bash`}),(0,V.jsxs)(`ul`,{className:`list-disc space-y-2 pl-6`,children:[(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`span`,{className:`font-semibold text-white`,children:`Model loads on CPU only:`}),` confirm GPU drivers with `,(0,V.jsx)(`span`,{className:`font-mono text-white`,children:`nvidia-smi`}),` and choose a model that fits in available VRAM.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`span`,{className:`font-semibold text-white`,children:`API not reachable:`}),` verify the service is running and check whether you kept the default local bind or switched to`,(0,V.jsx)(`span`,{className:`mx-1 font-mono text-white`,children:`0.0.0.0:11434`}),`.`]}),(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`span`,{className:`font-semibold text-white`,children:`Pull fails:`}),` verify outbound Internet access from the server.`]})]})]})]})}function Du(){return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`img`,{src:`/pytorch.png`,alt:`PyTorch banner`,className:`h-28 w-full max-w-3xl rounded-lg object-contain`}),(0,V.jsx)(`h1`,{children:`PyTorch`}),(0,V.jsx)(`p`,{children:`PyTorch is an open-source machine learning framework used to build and train deep learning models. The framework provides a flexible Python interface for working with tensors, neural networks, and automatic differentiation, which are core components of modern artificial intelligence systems. PyTorch is widely used in research and production to develop applications such as computer vision models, natural language processing systems, and large language models.`}),(0,V.jsx)(`p`,{children:`One of the main advantages of PyTorch is ease of use and flexibility. The framework uses a dynamic computation graph, which means models are built and executed step by step during runtime. This approach makes experimentation, debugging, and model development easier than static graph frameworks. PyTorch also integrates naturally with Python, allowing developers to use familiar tools and libraries while building machine learning pipelines.`}),(0,V.jsx)(`p`,{children:`PyTorch is designed to take advantage of GPU acceleration. Tensors and neural network operations can run directly on GPUs using NVIDIA CUDA, enabling highly parallel computation for training and inference workloads. GPU execution significantly reduces training time for large models and allows complex neural networks to process large datasets efficie
70ntly.`}),(0,V.jsx)(`p`,{children:`SwissGPU workstations provide dedicated NVIDIA GPUs running directly on bare-metal hardware, which makes the infrastructure well suited for PyTorch workloads. Users can install PyTorch on the workstation and train machine learning models directly on the dedicated GPU. Because each machine provides exclusive access to the GPU and system resources, users can run large training jobs, experiment with deep learning models, and process large datasets efficiently.`}),(0,V.jsx)(`h2`,{children:`Practice with TorchCode`}),(0,V.jsxs)(`p`,{children:[(0,V.jsx)(`a`,{href:`https://github.com/duoan/TorchCode`,target:`_blank`,rel:`noopener noreferrer`,children:`TorchCode`}),` `,`is an open-source project focused on practical PyTorch workflows. The project can help the user start faster with examples and implementation patterns that are useful when building and training models on a dedicated GPU workstation.`]}),(0,V.jsx)(`h2`,{children:`Resources`}),(0,V.jsxs)(`ul`,{children:[(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://pytorch.org/`,target:`_blank`,rel:`noopener noreferrer`,children:`PyTorch Official Website`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://docs.pytorch.org/`,target:`_blank`,rel:`noopener noreferrer`,children:`PyTorch Documentation`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://github.com/pytorch/pytorch`,target:`_blank`,rel:`noopener noreferrer`,children:`PyTorch GitHub Repository`})})]})]})}function Ou(){return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`img`,{src:`/steam.png`,alt:`Steam banner`,className:`h-28 w-full max-w-3xl object-contain`}),(0,V.jsx)(`h1`,{children:`Steam`}),(0,V.jsx)(`p`,{children:`Steam is a digital distribution platform for video games developed by Valve Corporation. The platform allows users to buy, download, install, and manage games through the Steam client application. Each purchased game is added to a personal library where the game can be downloaded and launched on demand.`}),(0,V.jsx)(`p`,{children:`Steam was released in 2003 to provide automatic updates for Valve games. Steam later expanded into a large software marketplace where thousands of developers publish games and software. The platform now includes a very large catalog and a global user base.`}),(0,V.jsx)(`p`,{children:`Steam provides features beyond software distribution. The platform includes automatic updates, cloud saves, multiplayer matchmaking, and community features such as friends lists, chat, forums, and game streaming. These services allow users to manage game libraries and interact with other players in one interface.`}),(0,V.jsx)(`p`,{children:`SwissGPU workstations provide dedicated NVIDIA GPUs on bare-metal hardware, which makes the infrastructure suitable for modern PC games and GPU-intensive applications. Users can install Steam on a SwissGPU workstation and download games directly to the system. Exclusive access to the GPU, CPU, memory, and storage allows demanding games and graphics workloads to run with full hardware performance.`}),(0,V.jsx)(`h2`,{children:`Resources`}),(0,V.jsxs)(`ul`,{children:[(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://store.steampowered.com/`,target:`_blank`,rel:`noopener noreferrer`,children:`Steam Store`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://help.steampowered.com/`,target:`_blank`,rel:`noopener noreferrer`,children:`Steam Support`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://steamcommunity.com/`,target:`_blank`,rel:`noopener noreferrer`,children:`Steam Community`})})]})]})}function ku(){return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`img`,{src:`/tensorflow.png`,alt:`TensorFlow banner`,className:`h-28 w-full max-w-3xl rounded-lg object-contain`}),(0,V.jsx)(`h1`,{children:`TensorFlow`}),(0,V.jsx)(`p`,{children:`TensorFlow is an open-source machine learning framework originally developed by Google. TensorFlow provides tools and libraries to build, train, and deploy machine learning and deep learning models. The framework uses tensors, which are multi-dimensional arrays of data, and represents computations as graphs of mathematical operations. This architecture allows complex machine learning algorithms to be defined and executed efficie
70ntly across different computing devices.`}),(0,V.jsx)(`p`,{children:`TensorFlow is widely used in areas such as computer vision, natural language processing, robotics, and recommendation systems. The framework includes APIs for building neural networks, processing large datasets, and evaluating model performance. TensorFlow also supports automatic differentiation, which allows TensorFlow to compute gradients automatically when training neural networks. These capabilities simplify the process of developing and optimizing machine learning models.`}),(0,V.jsx)(`p`,{children:`A major advantage of TensorFlow is hardware acceleration support. TensorFlow can run computations on CPUs, GPUs, and other accelerators. Deep learning operations such as matrix multiplications and convolutions benefit significantly from GPU parallel processing. By using NVIDIA CUDA-enabled GPUs, training workloads that would normally take days on CPUs can often be completed much faster.`}),(0,V.jsx)(`p`,{children:`SwissGPU workstations provide dedicated NVIDIA GPUs running directly on bare-metal hardware, which makes the infrastructure well suited for TensorFlow workloads. Users can install TensorFlow on the workstation and train machine learning models directly on the dedicated GPU. Because each machine provides exclusive access to GPU, CPU, memory, and storage resources, users can run large training jobs and deep learning experiments efficiently.`}),(0,V.jsx)(`h2`,{children:`Resources`}),(0,V.jsxs)(`ul`,{children:[(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://www.tensorflow.org/`,target:`_blank`,rel:`noopener noreferrer`,children:`TensorFlow Official Website`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://www.tensorflow.org/guide`,target:`_blank`,rel:`noopener noreferrer`,children:`TensorFlow Guide`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://github.com/tensorflow/tensorflow`,target:`_blank`,rel:`noopener noreferrer`,children:`TensorFlow GitHub Repository`})})]})]})}function Au(){return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`img`,{src:`/unreal.jpg`,alt:`Unreal Engine banner`,className:`h-28 w-full max-w-3xl rounded-lg border border-white/10 bg-black/20 object-cover`}),(0,V.jsx)(`h1`,{children:`Unreal Engine`}),(0,V.jsx)(`p`,{children:`Unreal Engine is a real-time 3D development platform created by Epic Games. The platform is widely used to build video games, interactive simulations, virtual production environments, and high-quality visualizations. The engine provides a complete toolset for creating 3D scenes, including rendering, physics simulation, animation systems, audio tools, and visual scripting. Developers can build applications using C++ or the visual Blueprint system, which allows complex behaviors to be designed without writing code.`}),(0,V.jsx)(`p`,{children:`One of the main strengths of Unreal Engine is advanced real-time rendering technology. The engine includes features such as physically based rendering, real-time global illumination, large-scale environment rendering, and cinematic lighting systems. Modern versions also introduce technologies such as Nanite for high-detail geometry and Lumen for dynamic global illumination, which allows highly realistic scenes to run in real time.`}),(0,V.jsx)(`p`,{children:`Unreal Engine benefits significantly from powerful GPUs. Many rendering and visualization tasks rely on GPU processing to display complex scenes at high frame rates. High-performance graphics hardware allows developers and artists to work with larger environments, detailed assets, and real-time lighting while maintaining interactive performance.`}),(0,V.jsx)(`p`,{children:`SwissGPU workstations provide dedicated NVIDIA GPUs running directly on bare-metal hardware, which makes the infrastructure well suited for Unreal Engine workloads. Users can install Unreal Engine on the workstation and develop, test, or render real-time 3D scenes directly on the machine. Because each system provides exclusive access to the GPU and system resources, Unreal Engine can fully use the available hardware to handle demanding projects such as game development, virtual production, and large-scale simulations.`}),(0,V.jsx)(`h2`,{children:`Resources`}),(0,V.jsxs)(`ul`,{children:[(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://www.unrealengine.com/`,target:`_blank`,rel:`noopener noreferrer`,children:`Unreal Engine Official Website`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://dev.epicgames.com/documentation/en-us/unreal-engine`,target:`_blank`,rel:`noopener noreferrer`,children:`Unreal Engine Documentation`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://dev.epicgames.com/community/`,target:`_blank`,rel:`noopener noreferrer`,children:`Epic Developer Community`})})]})]})}function ju(){return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`img`,{src:`/unity.png`,alt:`Unity banner`,className:`h-28 w-full max-w-3xl rounded-lg object-contain`}),(0,V.jsx)(`h1`,{children:` Unity `}),(0,V.jsx)(`p`,{children:`Unity is a real-time 3D development platform used to build interactive applications such as video games, simulations, virtual reality experiences, and visualization tools. The engine provides a complete environment for designing scenes, creating assets, scripting gameplay logic, and rendering interactive graphics. You can develop projects using the C# programming language together with the Unity Editor, which offers tools for scene design, animation, physics simulation, and user interface development.`}),(0,V.jsx)(`p`,{children:`One of the main advantages of Unity is flexibility and cross-platform support. You can build both 2D and 3D applications and deploy them to many platforms including desktop systems, mobile devices, consoles, web browsers, and VR or AR environments. The engine also includes different rendering pipelines and graphics features such as dynamic lighting, post-processing effects, and advanced material systems to create visually rich environments.`}),(0,V.jsx)(`p`,{children:`Unity uses real-time rendering technology, which allows scenes to be updated and visualized instantly while you work on them. This makes it possible to quickly test changes, iterate on de
70signs, and interact with environments during development. Real-time 3D workflows are widely used not only in gaming but also in architecture, automotive design, simulation, and digital twins.`}),(0,V.jsx)(`p`,{children:`SwissGPU workstations provide dedicated NVIDIA GPUs running on bare-metal hardware, which makes them suitable for Unity development and real-time rendering workloads. You can install Unity on the workstation and build or test interactive 3D applications directly on the machine. Because the system provides exclusive access to the GPU and hardware resources, you can run complex scenes, lighting systems, and large development projects with high performance.`}),(0,V.jsx)(`h2`,{children:`Resources`}),(0,V.jsxs)(`ul`,{children:[(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://unity.com/`,target:`_blank`,rel:`noopener noreferrer`,children:`Unity Official Website`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://docs.unity3d.com/Manual/index.html`,target:`_blank`,rel:`noopener noreferrer`,children:`Unity Documentation`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://unity.com/download`,target:`_blank`,rel:`noopener noreferrer`,children:`Unity Hub & Downloads`})}),(0,V.jsx)(`li`,{children:(0,V.jsx)(`a`,{href:`https://learn.unity.com/`,target:`_blank`,rel:`noopener noreferrer`,children:`Unity Learn`})})]})]})}function Mu({title:e,subtitle:t,icon:n,action:r}){return(0,V.jsxs)(`div`,{className:`flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between sm:gap-4`,children:[(0,V.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,V.jsx)(Ps,{className:`h-12 w-12 rounded`,children:(0,V.jsx)(Is,{className:`rounded-lg text-muted-foreground [&>svg]:size-6`,children:n})}),(0,V.jsxs)(`div`,{className:`min-w-0`,children:[(0,V.jsx)(`h2`,{className:`text-lg font-semibold text-white`,children:e}),(0,V.jsx)(`p`,{className:`text-sm text-white/60`,children:t})]})]}),r?(0,V.jsx)(`div`,{className:`sm:shrink-0`,children:r}):null]})}var Nu=e=>`/rent/${e}`,Pu=e=>`/servers/${e}`,Fu=e=>`/admin/nodes/${e}`,Iu=e=>`/admin/users/${e}`,Lu=new da({defaultOptions:{queries:{staleTime:3e4,gcTime:3e5,retry:1,refetchOnWindowFocus:!1}}});function Ru(){let e=Fr(),t=re({mutationFn:e=>W(`/me`,`POST`,{notifyme:e}),onSuccess:async()=>{await Lu.invalidateQueries({queryKey:[`me`]}),U.success(`We will notify you when stock is back.`)}}),{data:n,isLoading:r}=w({queryKey:[`rent-capacity`],queryFn:()=>W(`/rent`)});return r?(0,V.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-10`,children:(0,V.jsx)(Lc,{className:`size-6`})}):(0,V.jsxs)(`div`,{className:`flex flex-1 flex-col gap-3`,children:[(0,V.jsx)(`section`,{children:(0,V.jsx)(Mu,{icon:(0,V.jsx)(Ge,{className:`size-6`}),title:`Rent Dedicated GPU Servers`,subtitle:`Choose the server that matches our pricing specs and deploy instantly.`})}),(0,V.jsxs)(`div`,{className:`space-y-3`,children:[(0,V.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border border-primary/20 bg-muted/40 px-3 py-2 text-xs text-muted-foreground`,children:[(0,V.jsx)(O,{className:`mt-0.5 size-3.5 shrink-0 text-accent`,"aria-hidden":`true`}),(0,V.jsx)(`p`,{children:`Demand is currently high, so available servers may be rented quickly. Capacity expansion is underway, with additional capacity expected by the end of September or in October. Click Notify me on any out-of-stock server to receive an availability update.`})]}),(0,V.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border border-primary/20 bg-muted/40 px-3 py-2 text-xs text-muted-foreground`,children:[(0,V.jsx)(O,{className:`mt-0.5 size-3.5 shrink-0 text-accent`,"aria-hidden":`true`}),(0,V.jsxs)(`p`,{children:[`A limited number of Windows servers are currently available. Email`,` `,(0,V.jsx)(`a`,{href:`mailto:[email protected]`,className:`text-accent underline`,children:`[email protected]`}),` `,`for a quote.`]})]}),(0,V.jsx)(`div`,{className:`space-y-0 rounded-md border border-primary/20 md:hidden`,children:al.map(r=>{let i=((n??{})[r.apiGpu]??0)<=0;return(0,V.jsxs)(`div`,{className:`border-t border-primary/10 p-3 first:border-t-0`,children:[(0,V.jsxs)(`div`,{className:`text-sm`,children:[`Nvidia `,r.gpu,` - `,r.vcpu,` cores - `,r.ram,` GB - `,r.disk]}),(0,V.jsxs)(`div`,{className:`mt-1 text-sm text-muted-foreground`,children:[r.hourly,` CHF/h +0.30 CHF/kWh`]}),(0,V.jsxs)(`div`,{className:`mt-3 ml-auto inline-flex flex-col items-center`,children:[(0,V.jsx)(H,{size:`sm`,variant:i?`outline`:`default`,onClick:()=>
70{if(i){t.mutate(r.gpu);return}e(Nu(r.apiGpu.toLowerCase()))},children:i?`Notify me`:`Deploy`}),i?(0,V.jsx)(`span`,{className:`mt-1 w-full text-center text-xs text-muted-foreground`,children:`Out of Stock`}):null]})]},r.apiGpu)})}),(0,V.jsx)(`div`,{className:`hidden overflow-x-auto rounded-md border border-primary/20 md:block`,children:(0,V.jsxs)(`table`,{className:`w-full text-sm`,children:[(0,V.jsx)(`thead`,{className:`bg-muted/40`,children:(0,V.jsxs)(`tr`,{children:[(0,V.jsx)(`th`,{className:`px-4 py-3 text-left font-semibold`,children:`GPU`}),(0,V.jsx)(`th`,{className:`px-4 py-3 text-left font-semibold`,children:`Specs`}),(0,V.jsx)(`th`,{className:`px-4 py-3 text-left font-semibold`,children:`Price`}),(0,V.jsx)(`th`,{className:`px-4 py-3 `})]})}),(0,V.jsx)(`tbody`,{children:al.map(r=>{let i=((n??{})[r.apiGpu]??0)<=0;return(0,V.jsxs)(`tr`,{className:`border-t border-primary/10`,children:[(0,V.jsx)(`td`,{className:`px-4 py-3`,children:(0,V.jsxs)(`div`,{className:`flex flex-col`,children:[r.href?(0,V.jsxs)(`a`,{href:r.href,target:`_blank`,rel:`noopener noreferrer`,className:`text-primary hover:underline`,children:[`Nvidia `,r.gpu]}):(0,V.jsxs)(`span`,{children:[`Nvidia `,r.gpu]}),(0,V.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[r.architecture,` - `,r.vram,` GB`]})]})}),(0,V.jsxs)(`td`,{className:`px-4 py-3`,children:[`CPU: `,r.vcpu,` cores`,(0,V.jsx)(`br`,{}),(0,V.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[`RAM: `,r.ram,` GB - DISK: `,r.disk,` NVMe`]})]}),(0,V.jsxs)(`td`,{className:`px-4 py-3`,children:[r.hourly,` CHF/h`,(0,V.jsx)(`br`,{}),(0,V.jsx)(F,{to:`/pricing`,className:`text-xs text-muted-foreground hover:underline`,children:`+0.30 CHF/kWh`})]}),(0,V.jsx)(`td`,{className:`px-4 py-3 text-right`,children:(0,V.jsxs)(`div`,{className:`ml-auto inline-flex flex-col items-center`,children:[(0,V.jsx)(H,{size:`sm`,variant:i?`outline`:`default`,onClick:()=>{if(i){t.mutate(r.gpu);return}e(Nu(r.apiGpu.toLowerCase()))},children:i?`Notify me`:`Deploy`}),i?(0,V.jsx)(`span`,{className:`mt-1 w-full text-center text-xs text-muted-foreground`,children:`Out of Stock`}):null]})})]},r.apiGpu)})})]})}),(0,V.jsxs)(`p`,{className:`text-xs text-muted-foreground text-center`,children:[`For custom configuration, contact us at`,` `,(0,V.jsx)(`a`,{href:`mailto:[email protected]`,className:`text-accent underline`,children:`[email protected]`})]})]})]})}function zu({className:e,children:t,...n}){return(0,V.jsx)(`div`,{"data-slot":`card`,className:B(`h-full overflow-hidden border bg-card transition-colors hover:bg-card/95`,`text-card-foreground flex flex-col gap-6 p-0 shadow-sm`,e),...n,children:(0,V.jsx)(`div`,{className:`flex flex-col gap-6 py-6`,children:t})})}function Bu({className:e,...t}){return(0,V.jsx)(`div`,{"data-slot":`card-header`,className:B(`@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6`,e),...t})}function Vu({className:e,...t}){return(0,V.jsx)(`div`,{"data-slot":`card-title`,className:B(`leading-none font-semibold`,e),...t})}function Hu({className:e,...t}){return(0,V.jsx)(`div`,{"data-slot":`card-action`,className:B(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,e),...t})}function Uu({className:e,...t}){return(0,V.jsx)(`div`,{"data-slot":`card-content`,className:B(`px-6`,e),...t})}var Wu=ma(`inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90`,secondary:`border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90`,destructive:`border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60`,outline:`text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground`}},defaultVariants:{variant:`default`}});function X({className:e,variant:t,asChild:n=!1,...r}){let i=n?qt:`span`;return(0,V.jsx)(i,{"data-slot":`badge`,className:B(Wu({variant:t}),e),...r})}function Gu(e){let t=e.cost==null?void 0:`${Ho(e.cost/100)}/h`;return{...e,uuid:String(e.id),price:t}}function Ku(e,t){let n=t.trim().toLowerCase();return n.length===0?e:e.filter(e=>[e.uuid,Ju(e.uuid),e.cpu,e.gpu,e.price,e.cost,e.os,e.ssd,e.ram,e.ports===null?`ipv6 all ports open`:e.ports.join(` `)].filter(e=>e!=null).join(` `).toLowerCase().includes(n))}
70function qu(e){return e.split(` `).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `)}function Ju(e){return e?e.split(`-`).filter(Boolean).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `):`Unknown Server`}function Yu(e){return e?qu(e):`Unknown CPU`}function Xu({server:e,onSelect:t,showImageBadge:n=!0}){let r=qo(e.status),i=Xo(e.ports),a=e.os??null;return(0,V.jsxs)(zu,{className:`flex h-full flex-col hover:shadow-lg transition-shadow bg-muted`,children:[(0,V.jsxs)(Bu,{children:[(0,V.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,V.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,V.jsx)(Vu,{className:`text-4xl`,children:e.gpu??`Unknown GPU`})}),(0,V.jsx)(`div`,{children:(0,V.jsx)(`span`,{className:`ml-2 text-accent font-bold text-lg`,children:e.price})})]}),(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,V.jsx)(X,{variant:`outline`,className:`h-4 min-w-4 px-2 rounded-full text-[0.65rem] ${r}`,children:e.status}),n&&a&&(0,V.jsx)(X,{variant:`outline`,className:`h-4 min-w-4 px-2 rounded-full text-[0.65rem] border-secondary/70 bg-secondary/20 text-secondary-foreground`,children:a})]})]}),(0,V.jsxs)(Uu,{className:`flex flex-1 flex-col mt-3`,children:[(0,V.jsxs)(`ul`,{className:`text-sm grid grid-cols-1 gap-2`,children:[(0,V.jsxs)(`li`,{className:`flex items-center`,children:[(0,V.jsxs)(cs,{children:[(0,V.jsx)(ls,{asChild:!0,children:(0,V.jsx)(`span`,{className:`inline-flex`,children:(0,V.jsx)(me,{className:`w-4 h-4 mr-2`})})}),(0,V.jsx)(us,{children:`CPU`})]}),Yu(e.cpu)]}),(0,V.jsxs)(`li`,{className:`flex items-center`,children:[(0,V.jsxs)(cs,{children:[(0,V.jsx)(ls,{asChild:!0,children:(0,V.jsx)(`span`,{className:`inline-flex`,children:(0,V.jsx)(Ge,{className:`w-4 h-4 mr-2`})})}),(0,V.jsx)(us,{children:`SSD`})]}),e.ssd===null?`Pending detection`:`${e.ssd} GB`]}),(0,V.jsxs)(`li`,{className:`flex items-center`,children:[(0,V.jsxs)(cs,{children:[(0,V.jsx)(ls,{asChild:!0,children:(0,V.jsx)(`span`,{className:`inline-flex`,children:(0,V.jsx)(qe,{className:`w-4 h-4 mr-2`})})}),(0,V.jsx)(us,{children:`RAM`})]}),e.ram===null?`Pending detection`:`${e.ram} GB`]}),i&&(0,V.jsxs)(`li`,{className:`flex items-center`,children:[(0,V.jsxs)(cs,{children:[(0,V.jsx)(ls,{asChild:!0,children:(0,V.jsx)(`span`,{className:`inline-flex`,children:(0,V.jsx)(ve,{className:`w-4 h-4 mr-2`})})}),(0,V.jsx)(us,{children:`Ports`})]}),i]})]}),(0,V.jsx)(`div`,{className:`mt-8`,children:(0,V.jsx)(H,{variant:`outline`,size:`sm`,className:`w-full`,onClick:()=>t&&t(e),children:`Select`})})]})]})}function Zu(){return(0,V.jsxs)(G,{className:`min-h-[calc(100svh-10rem)] w-full px-6 py-10`,children:[(0,V.jsx)(G.Header,{heading:`Welcome to`}),(0,V.jsxs)(`div`,{className:`flex w-full max-w-sm items-center gap-3 text-[0.65rem] font-semibold uppercase tracking-[0.28em] text-muted-foreground`,children:[(0,V.jsx)(`span`,{className:`h-px flex-1 bg-border/80`}),(0,V.jsx)(`span`,{className:`bg-background px-3 py-1 text-center`,children:`Actions`}),(0,V.jsx)(`span`,{className:`h-px flex-1 bg-border/80`})]}),(0,V.jsxs)(`div`,{className:`flex w-full max-w-sm flex-col gap-2`,children:[(0,V.jsx)(H,{asChild:!0,variant:`outline`,className:`w-full`,children:(0,V.jsx)(F,{to:`/account`,children:`Load Credits`})}),(0,V.jsx)(H,{asChild:!0,variant:`outline`,className:`w-full`,children:(0,V.jsx)(F,{to:`/rent`,children:`Rent a Server`})})]}),(0,V.jsx)(G.Footer,{className:`w-full max-w-sm`,children:(0,V.jsxs)(`div`,{className:`flex w-full flex-col gap-1`,children:[(0,V.jsx)(`div`,{className:`my-1 h-px w-full bg-border/80`}),(0,V.jsx)(`span`,{children:`Need more details or have questions?`}),(0,V.jsxs)(`span`,{children:[`Contact us at`,` `,(0,V.jsx)(`a`,{href:`mailto:[email protected]`,className:`text-accent underline`,children:`[email protected]`})]})]})})]})}function Qu(){let{current:e}=bc(),t=Fr(),[n,r]=(0,M.useState)(``),{data:i=[],isLoading:a}=w({queryKey:[`assigned-servers`],queryFn:async()=>{let[e,t,n]=await Promise.all([W(`/nodes?status=rented`),W(`/nodes?status=installing`),W(`/nodes?status=maintenance`)]);
70return[...e??[],...t??[],...n??[]].filter((e,t,n)=>n.findIndex(t=>t.id===e.id)===t).map(Gu)},enabled:!!e?.id}),o=(0,M.useMemo)(()=>Ku(i,n),[i,n]),s=e=>{t(`/servers/${e.uuid}`)};if(a)return(0,V.jsx)(`div`,{className:`flex flex-1 justify-center items-center p-10`,children:(0,V.jsx)(Lc,{className:`size-6`})});let c=i.length>0;return(0,V.jsxs)(`div`,{className:`flex flex-1 flex-col gap-4`,children:[c&&(0,V.jsx)(`section`,{children:(0,V.jsx)(Mu,{icon:(0,V.jsx)(De,{className:`size-6`}),title:`Your Dedicated Servers`,subtitle:`Monitor and access your active bare-metal GPU servers in one place.`})}),c?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Qo,{placeholder:`Search servers...`,value:n,onChange:e=>r(e.target.value)}),(0,V.jsx)(`div`,{className:`grid gap-3 sm:grid-cols-2 lg:grid-cols-3`,children:o.map(e=>(0,V.jsx)(Xu,{server:e,onSelect:s},e.uuid))})]}):(0,V.jsx)(Zu,{})]})}function $u({template:e,isSelected:t,isAdmin:n,onSelect:r,onTutorialClick:i}){let a=e.available===!1&&!n||!e.os,o=e.logo;return(0,V.jsxs)(zu,{className:B(`flex flex-col bg-muted transition-colors [&>div]:gap-4 [&>div]:py-4`,a?`cursor-not-allowed opacity-60`:`cursor-pointer`,t&&!a&&`border-2 border-primary`),onClick:()=>{a||r&&r(e.id)},"aria-disabled":a,children:[(0,V.jsxs)(Bu,{className:`flex flex-row items-center justify-between gap-3 px-4`,children:[(0,V.jsx)(Vu,{className:`leading-none`,children:e.name}),e.tutorialPath&&i&&(0,V.jsx)(H,{type:`button`,size:`icon`,variant:`ghost`,className:`size-8 bg-transparent text-muted-foreground hover:bg-transparent hover:text-white focus-visible:bg-transparent active:bg-transparent`,onClick:t=>{t.stopPropagation(),i(e)},"aria-label":`Open tutorial for ${e.name}`,children:(0,V.jsx)(A,{className:`size-5`})})]}),(0,V.jsxs)(Uu,{className:`flex flex-col gap-3 px-4`,children:[o?(0,V.jsx)(`div`,{className:`flex items-center justify-center`,children:(0,V.jsx)(o,{"aria-hidden":`true`,className:`h-32`})}):e.icons.length>0?(0,V.jsx)(`div`,{className:`flex items-center justify-center`,children:e.icons.map((e,t)=>(0,V.jsxs)(M.Fragment,{children:[t>0&&(0,V.jsx)($o,{orientation:`vertical`,className:`mx-4 h-8`}),(0,V.jsx)(`img`,{src:e,alt:``,className:`h-32`})]},e))}):(0,V.jsx)(`p`,{className:`text-center text-sm text-muted-foreground`,children:e.description??`More templates coming soon.`}),e.description&&(o||e.icons.length>0)&&(0,V.jsx)(`p`,{className:`text-center text-sm text-muted-foreground`,children:e.description})]})]})}var ed=e=>(0,V.jsxs)(`svg`,{...e,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 100 100`,children:[(0,V.jsx)(`circle`,{cx:`50`,cy:`50`,r:`45`,fill:`#f47421`}),(0,V.jsx)(`circle`,{cx:`50`,cy:`50`,r:`21.8`,fill:`none`,stroke:`#fff`,strokeWidth:`8.6`}),(0,V.jsxs)(`g`,{id:`ubuntu__a`,children:[(0,V.jsx)(`circle`,{cx:`19.4`,cy:`50`,r:`8.4`,fill:`#f47421`}),(0,V.jsx)(`path`,{stroke:`#f47421`,strokeWidth:`3.2`,d:`M67 50h10`}),(0,V.jsx)(`circle`,{cx:`19.4`,cy:`50`,r:`6`,fill:`#fff`})]}),(0,V.jsx)(`use`,{xlinkHref:`#ubuntu__a`,transform:`rotate(120 50 50)`}),(0,V.jsx)(`use`,{xlinkHref:`#ubuntu__a`,transform:`rotate(240 50 50)`})]}),td=e=>(0,V.jsx)(`svg`,{...e,viewBox:`0 0 88 88`,children:(0,V.jsx)(`path`,{d:`m0 12.402 35.687-4.86.016 34.423-35.67.203zm35.67 33.529.028 34.453L.028 75.48.026 45.7zm4.326-39.025L87.314 0v41.527l-47.318.376zm47.329 39.349-.011 41.34-47.318-6.678-.066-34.739z`,fill:`#00adef`})}),nd=[{id:1,name:`Ubuntu 24.04 LTS`,icons:[],logo:ed,description:`Long-term support Ubuntu release.`,os:`ubuntu:24.04`,available:!0},{id:2,name:`Ubuntu 26.04 LTS`,icons:[],logo:ed,description:`The latest stable Ubuntu version.`,os:`ubuntu:26.04`,available:!0},{id:3,name:`Windows 11`,icons:[],logo:td,description:`The Windows 11 image is not automated. Please reach out to [email protected].`}];function rd({...e}){return(0,V.jsx)(xt,{"data-slot":`alert-dialog`,...e})}function id({...e}){return(0,V.jsx)(Ye,{"data-slot":`alert-dialog-trigger`,...e})}function ad({...e}){return(0,V.jsx)(yt,{"data-slot":`alert-dialog-portal`,...e})}function od({className:e,...t}){return(0,V.jsx)(bt,{"data-slot":`alert-dialog-overlay`,className:B(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-background/50 backdrop-blur-sm`,e),...t})}function sd({className:e,...t}){return(0,V.jsxs)(ad,{children:[(0,V.jsx)(od,{}),(0,V.jsx)(Jt,{"data-slot":`alert-dialog-content`,className:B(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 roun
70ded-lg p-6 shadow-[0_0_28px_rgba(255,255,255,0.15),0_25px_50px_-12px_rgba(0,0,0,0.35)] duration-200 sm:max-w-lg`,e),...t})]})}function cd({className:e,...t}){return(0,V.jsx)(`div`,{"data-slot":`alert-dialog-header`,className:B(`flex flex-col gap-2 text-center sm:text-left`,e),...t})}function ld({className:e,...t}){return(0,V.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:B(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t})}function ud({className:e,...t}){return(0,V.jsx)(ft,{"data-slot":`alert-dialog-title`,className:B(`text-lg font-semibold`,e),...t})}function dd({className:e,...t}){return(0,V.jsx)(at,{"data-slot":`alert-dialog-description`,className:B(`text-muted-foreground text-sm`,e),...t})}function fd({className:e,...t}){return(0,V.jsx)(nt,{className:B(Zo(),e),...t})}function pd({className:e,...t}){return(0,V.jsx)(ot,{className:B(Zo({variant:`outline`}),e),...t})}function md({disabled:e,onDeploy:t}){let[n,r]=(0,M.useState)(``),[i,a]=(0,M.useState)(!1),o=n.length>=8,s=/[A-Z]/.test(n),c=/[^A-Za-z0-9\s]/.test(n),l=/\d/.test(n),u=yl.test(n),d=e||!u;return(0,V.jsxs)(rd,{children:[(0,V.jsx)(id,{asChild:!0,children:(0,V.jsx)(H,{variant:e?`outline`:`default`,disabled:e,children:`Deploy`})}),(0,V.jsxs)(sd,{children:[(0,V.jsxs)(cd,{children:[(0,V.jsx)(ud,{children:`Deploy template`}),(0,V.jsx)(dd,{children:`Enter a password to confirm deployment. This will be the password used to access the server.`}),(0,V.jsxs)(`div`,{className:`relative`,children:[(0,V.jsx)(Qo,{type:i?`text`:`password`,value:n,onChange:e=>r(e.target.value),className:`pr-20`,"aria-invalid":u?`false`:`true`}),(0,V.jsx)(`button`,{type:`button`,onClick:()=>r(xl()),className:`text-muted-foreground absolute right-8 top-1/2 -translate-y-1/2 cursor-pointer`,"aria-label":`Generate password`,children:(0,V.jsx)(Fe,{className:`size-4`})}),(0,V.jsx)(`button`,{type:`button`,onClick:()=>a(!i),className:`text-muted-foreground absolute right-2 top-1/2 -translate-y-1/2 cursor-pointer`,"aria-label":i?`Hide password`:`Show password`,children:i?(0,V.jsx)(se,{className:`size-4`}):(0,V.jsx)(Ne,{className:`size-4`})})]}),(0,V.jsx)(`ul`,{className:`grid gap-2 text-xs sm:grid-cols-2`,children:[{label:`Contains 1 capital letter`,met:s},{label:`Contains 1 special character`,met:c},{label:`Contains 1 number`,met:l},{label:`At least 8 characters`,met:o}].map(e=>(0,V.jsxs)(`li`,{className:e.met?`flex items-center gap-2 text-emerald-500`:`flex items-center gap-2 text-muted-foreground`,children:[(0,V.jsx)(k,{className:`size-3.5 shrink-0`}),(0,V.jsx)(`span`,{children:e.label})]},e.label))})]}),(0,V.jsxs)(ld,{children:[(0,V.jsx)(pd,{children:`Cancel`}),(0,V.jsx)(fd,{onClick:()=>t(n),disabled:d,children:`Confirm`})]})]})]})}function hd(){let e=zr(),t=Fr(),{isAdmin:n}=bc(),r=e.uuid,i=e.gpuName,a=n?nd:nd.filter(e=>e.available!==!1),o=(0,M.useMemo)(()=>a.find(e=>e.available!==!1)?.id??null,[a]),[s,c]=(0,M.useState)(o),l=(0,M.useMemo)(()=>a.find(e=>e.id===s)??null,[s,a]),u=re({mutationFn:async e=>{if(!l?.os)throw Error(`No template selected`);let t=r;if(!t){await W(`/rent/type/${i}`,`POST`,{password:e,os:l.os});return}await W(`/rent/uuid/${t}`,`POST`,{password:e,os:l.os})},onSuccess:async()=>{await Promise.all([Lu.invalidateQueries({queryKey:[`assigned-servers`]}),Lu.invalidateQueries({queryKey:[`rent-capacity`]})]),U.success(`Your server will be ready in about 10 minutes.`),t(`/servers`)},onError:e=>{console.error(`Failed to deploy server`,e)}}),d=l==null||!l.os||!n&&l.available===!1||!r&&!i,f=async e=>{!d&&e.trim()!==``&&yl.test(e)&&await u.mutateAsync(e)},p=e=>{e.tutorialPath&&window.location.assign(e.tutorialPath)};return(0,V.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,V.jsx)(Qo,{value:l?.name??``,disabled:!0}),(0,V.jsx)(md,{disabled:d,onDeploy:f})]}),(0,V.jsx)(`div`,{className:`grid gap-4 md:grid-cols-3`,children:a.map(e=>(0,V.jsx)($u,{template:e,isSelected:e.id===l?.id,isAdmin:n,onSelect:e=>c(e),onTutorialClick:p},e.id))}),(0,V.jsxs)(`p`,{className:`text-center text-sm text-muted-foreground`,children:[`More templates are coming soon. For special requirements, email us at`,` `,(0,V.jsx)(`a`,{className:`text-accent underline`,href:`mailto:[email protected]`,children:`[email protected]`})]})]})}async function gd(e,t,n,r=!1){return W(`/admin/users?page=${e}&page_size=${t}${n&&n.trim().length>0?`&search=${encodeURIComponent(n.trim())}`:``}${r?`&longterm=true`:``}`)}async function _d(e){return W(`/admin/users/${e}`)}async function vd(e,t,n){return W(`/admin/users/${e}/transactions?page=${t}&page_size=${n}`)}async function yd(e,t){return W(`/admin/users/${e}/notifyme`,`POST`,{gpu:t})}async function Z(e,t){return W(`/admin/users/${e}`,`POST`,t)}async function bd(e,t){return W(`/admin/users/${e}/grant`,`POST`,{amount:t})}async function xd(e){return W(`/balance/notify`,`POST`,{notification:e})}async function Sd(){return W(`/auth/mail/resend-confirmation`,`PO
70ST`)}function Cd({...e}){return(0,V.jsx)(At,{"data-slot":`dialog`,...e})}function wd({...e}){return(0,V.jsx)(Qt,{"data-slot":`dialog-trigger`,...e})}function Td({...e}){return(0,V.jsx)(wt,{"data-slot":`dialog-portal`,...e})}function Ed({className:e,...t}){return(0,V.jsx)(It,{"data-slot":`dialog-overlay`,className:B(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-background/50 backdrop-blur-sm`,e),...t})}function Dd({className:e,children:t,showCloseButton:n=!0,...r}){return(0,V.jsxs)(Td,{"data-slot":`dialog-portal`,children:[(0,V.jsx)(Ed,{}),(0,V.jsxs)(Ut,{"data-slot":`dialog-content`,className:B(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg p-6 shadow-[0_0_28px_rgba(255,255,255,0.15),0_25px_50px_-12px_rgba(0,0,0,0.35)] duration-200 sm:max-w-lg`,e),...r,children:[t,n&&(0,V.jsxs)(en,{"data-slot":`dialog-close`,className:`ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 cursor-pointer rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,children:[(0,V.jsx)(Le,{}),(0,V.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})}function Od({className:e,...t}){return(0,V.jsx)(`div`,{"data-slot":`dialog-header`,className:B(`flex flex-col gap-2 text-center sm:text-left`,e),...t})}function kd({className:e,...t}){return(0,V.jsx)(`div`,{"data-slot":`dialog-footer`,className:B(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,e),...t})}function Ad({className:e,...t}){return(0,V.jsx)(Gt,{"data-slot":`dialog-title`,className:B(`text-lg leading-none font-semibold`,e),...t})}function jd({className:e,...t}){return(0,V.jsx)(Xt,{"data-slot":`dialog-description`,className:B(`text-muted-foreground text-sm`,e),...t})}var Md=[10,20,50,100,200],Nd=10;function Pd({open:e,onOpenChange:t,onContinue:n}){let[r,i]=(0,M.useState)(String(Md[1])),[a,o]=(0,M.useState)(``);function s(e){e||(i(String(Md[1])),o(``)),t(e)}let c=(0,M.useMemo)(()=>r===`custom`?Number.parseInt(a||`0`,10):Number.parseInt(r,10),[r,a]);return(0,V.jsxs)(Cd,{open:e,onOpenChange:s,children:[(0,V.jsx)(wd,{asChild:!0,children:(0,V.jsx)(H,{variant:`default`,children:`Add Credits`})}),(0,V.jsxs)(Dd,{children:[(0,V.jsxs)(Od,{children:[(0,V.jsx)(Ad,{children:`Select Amount (CHF)`}),(0,V.jsxs)(jd,{children:[`The amount will be converted in SwissGPU credits (minimum `,Nd,` CHF)`]})]}),(0,V.jsxs)(`div`,{className:`space-y-4`,children:[(0,V.jsx)(`div`,{className:`flex flex-wrap items-center gap-2`,children:Md.map(e=>(0,V.jsx)(H,{variant:r===String(e)?`default`:`outline`,onClick:()=>{i(String(e)),o(``)},children:e},e))}),(0,V.jsxs)(`div`,{className:`space-y-2`,children:[(0,V.jsx)(`p`,{className:`text-xs uppercase tracking-wide text-muted-foreground`,children:`Or`}),(0,V.jsx)(Qo,{type:`number`,placeholder:`Enter custom amount`,min:Nd,value:a,onChange:e=>{let t=e.target.value;if(t===``){o(``),i(`custom`);return}let n=Number.parseInt(t,10);Number.isNaN(n)||n<Nd||(o(String(n)),i(`custom`))}})]})]}),(0,V.jsx)(kd,{children:(0,V.jsx)(H,{onClick:()=>{!Number.isNaN(c)&&c>=Nd&&n(c),t(!1)},children:`Continue`})})]})]})}function Fd({className:e,...t}){return(0,V.jsx)(Ze,{"data-slot":`checkbox`,className:B(`peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50`,e),...t,children:(0,V.jsx)(_t,{"data-slot":`checkbox-indicator`,className:`flex items-center justify-center text-current transition-none`,children:(0,V.jsx)(k,{className:`size-3.5`})})})}function Id(){let{current:e,balance:t,balanceLoading:n,updateProfile:r}=bc(),[i,a]=(0,M.useState)(!1),[o,s]=(0,M.useState)(null),[c,l]=(0,M.useState)(null),[u,d]=(0,M.useState)(!1),[f,p]=(0,M.useState)(!1),m=c??!!(e?.notification&&e.notification>0);async function h(e){try{let t=await W(`/balance`,`POST`,{amount:e*100});t?.url&&window.open(t.url,`_blank`,`noopener`)}catch(e){console.error(`Failed to create payment link`,e)}}async function g(t){let n=m;l(t),d(!0);let r=e?.notification&&e.notification>0?e.notification:500;try{(await xd(t?r:0)).success?U.success(`Balance notification preference updated`):(U.error(`Failed to update balance notification preference`),l(n))}catch{l(n)}finally{d(!1)}}async function _(e){try{await r(e),U.success(`Profile updated`)}catch{U.error(`Failed to update profile`)}}async function v(){p(!0);try{(await Sd()).success&&U.success(`Confirmation email sent`)}catch{}finally{p(!1)}}if(!e)return(0,V.jsx)(`div`,{className:`bg-background flex min-h-[calc(100svh-10rem)] flex-col items-center justify-start gap-6 p-6 pt-16 md:justify-center md:p-10 mx-auto w-full max-w-[1200px]`,children:(0,V.jsx)(`div`,{className:`w-full max-w-sm`,children:(0,V.jsx)(zc,{})})});let y=e.email_confirmed,b=o??e.name;return(0,V.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,V.jsx)(`section`,{children:(0,V.jsx)(Mu,{icon:(0,V.jsx)(Ue,{className:`size-6`}),title:`Your Account`,subtitle:`Manage profile details and top up your SwissGPU credits.`})}),(0,V.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,V.jsxs)(zu,{className:`bg-muted`,children:[(0,V.jsxs)(Bu,{children:[(0,V.jsx)(Vu,{children:`Profile`}),(0,V.jsx)(Hu,{children:(0,V.jsx)(X,{variant:`outline`,className:`curs
70or-pointer`,onClick:()=>{e&&(navigator.clipboard.writeText(e.id),U.success(`User ID copied`))},children:e?.id})})]}),(0,V.jsxs)(Uu,{className:`space-y-3`,children:[(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`label`,{className:`text-sm font-medium`,children:`Name`}),(0,V.jsxs)(`div`,{className:`flex items-end gap-2`,children:[(0,V.jsx)(Qo,{className:`flex-1 border-primary`,value:b,onChange:e=>s(e.target.value)}),b!==e.name&&(0,V.jsxs)(H,{size:`icon`,variant:`outline`,onClick:()=>_({name:b}),children:[(0,V.jsx)(Oe,{className:`size-4`}),(0,V.jsx)(`span`,{className:`sr-only`,children:`Save name`})]})]})]}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`label`,{className:`text-sm font-medium`,children:`Email`}),(0,V.jsx)(`div`,{className:`flex items-end gap-2`,children:(0,V.jsx)(Qo,{className:`flex-1 border-primary`,value:e.email,readOnly:!0})})]})]})]}),(0,V.jsxs)(zu,{className:`bg-muted flex h-full flex-col`,children:[(0,V.jsxs)(Bu,{className:`flex flex-row items-start justify-between space-y-0`,children:[(0,V.jsxs)(`div`,{className:`space-y-3`,children:[(0,V.jsx)(Vu,{children:`Current Credits`}),(0,V.jsx)(`div`,{className:`text-2xl font-bold`,children:n?(0,V.jsx)(Lc,{className:`size-6`}):t===null?`—`:Uo(t)})]}),(0,V.jsx)(Hu,{children:y?(0,V.jsx)(Pd,{open:i,onOpenChange:a,onContinue:h}):(0,V.jsx)(H,{type:`button`,variant:`outline`,disabled:f,onClick:v,children:f?`Sending...`:`Verify email to add credits`})})]}),(0,V.jsxs)(Uu,{className:`flex flex-1 flex-col gap-4`,children:[(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,V.jsx)(Fd,{id:`balance-notification`,checked:m,disabled:u,onCheckedChange:e=>g(e===!0),className:`border-muted-foreground/70 data-[state=checked]:border-primary`}),(0,V.jsx)(`label`,{htmlFor:`balance-notification`,className:`text-sm font-medium text-foreground`,children:`Notify me when the credits are running out`})]}),!y&&(0,V.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Confirm your email address before loading credits.`}),(0,V.jsx)(`div`,{className:`mt-auto pt-10`,children:(0,V.jsxs)(`p`,{className:`text-sm font-medium text-muted-foreground`,children:[`Follow us on`,` `,(0,V.jsx)(`a`,{href:`https://www.linkedin.com/company/swissgpu`,target:`_blank`,rel:`noreferrer noopener`,className:`text-primary underline underline-offset-2`,children:`LinkedIn`}),` `,`and get 10% more credits on your next top-up.`]})})]})]}),(0,V.jsxs)(zu,{className:`bg-muted`,children:[(0,V.jsx)(Bu,{children:(0,V.jsx)(Vu,{children:`Legal Resources`})}),(0,V.jsxs)(Uu,{className:`flex flex-col gap-3 text-sm`,children:[(0,V.jsx)(`a`,{href:`/api/legal/gpu-end-user-compliance-certificate`,target:`_blank`,rel:`noreferrer noopener`,className:`text-primary underline underline-offset-2`,children:`SwissGPU End User Certificate`}),(0,V.jsx)(F,{to:`/terms`,className:`text-primary underline underline-offset-2`,children:`Terms and Conditions`}),(0,V.jsx)(F,{to:`/privacy`,className:`text-primary underline underline-offset-2`,children:`Privacy Policy`})]})]})]})]})}var Ld={load:`Load credits`,grant:`Admin credit`,refund:`Refund`,installation:`Node installation fee`,electricity:`Electricity Details`};function Rd(e){return e.type===`usage`?zd(e.duration):e.type===`electricity`?Bd(e.power_usage_kwh):Ld[e.type]??`-`}function zd(e){if(!e)return`Usage`;let t=e/3600;return`Usage (${t>=1?`${t.toFixed(1)}h`:`${Math.round(e/60)}m`})`}function Bd(e){return e==null?`Electricity Details`:`Electricity Details (${e.toFixed(2)} kWh)`}function Vd(e){let t=new Date(e.timestamp),n=Ko(e.timestamp);return!e.duration||Number.isNaN(t.getTime())?{start:null,end:n}:{start:Ko(new Date(t.getTime()-e.duration*1e3).toISOString()),end:n}}var Hd={load:{icon:pe},grant:{icon:Pe},refund:{icon:Re},usage:{icon:le},installation:{icon:Ve},electricity:{icon:we},default:{icon:pe}};function Ud({transactions:e}){let t=(e,t)=>{navigator.clipboard.writeText(t),U.success(`${e} copied`)};return(0,V.jsxs)($c,{className:`overflow-hidden rounded-md border border-border`,children:[(0,V.jsx)(el,{className:`bg-background-tertiary`,children:(0,V.jsxs)(nl,{children:[(0,V.jsx)(rl,{children:`Details`}),(0,V.jsx)(rl,{children:`Date`}),(0,V.jsx)(rl,{children:`Node`}),(0,V.jsx)(rl,{children:`Amount`})]})}),(0,V.jsx)(tl,{className:`bg-secondary/20`,children:e.map(e=>{let n=(Hd[e.type]??Hd.default).icon;return(0,V.jsxs)(nl,{className:`hover:bg-muted/80`,children:[(0,V.jsx)(il,{className:`px-2 py-2 align-middle`,children:(0,V.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,V.jsx)(Ps,{className:`h-8 w-8 rounded`,children:(0,V.jsx)(Is,{className:`rounded-lg text-muted-foreground`,children:(0,V.jsx)(n,{className:`size-4`})})}),(0,V.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-1`,children:[(0,V.jsx)(`span`,{className:`leading-tight`,children:Rd(e)}),(0,V.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-xs leading-none text-muted-foreground cursor-pointer`,onClick:()=>t(`Transaction ID`,String(e.id)),children:[(0,V.jsx)(ue,{className:`h-3 w-3`}),e.id]})]})]})}),(0,V.jsx)(il,{className:`px-2 py-2`,children:(()=>{let t=Vd(e);return t.start?(0,V.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,V.jsxs)(`span`,{className:`text-muted-foreground`,children:[`End: `,(0,V.jsx)(`span`,{className:`text-foreground`,children:t.end})]}),(0,V.jsxs)(`span`,{className:`text-muted-foreground`,children:[`Start: `,(0,V.jsx)(`span`,{className:`text-foreground`,children:t.start})]})]}):(0,V.jsx)(`span`,{children:t.end})})()}),(0,V.jsx)(il,{className:`px-2 py-2`,children:e.node?(0,V.jsx)(F,{className:`underline`,to:Pu(e.node),children:e.node}):`-`}),(0,V.jsx)(il,{className:`px-2 py-2`,children:Uo(Math.abs(e.amount))})]},e.id)})})]})}function Wd({className:e,defaultValue:t,value:n,min:r=0,max:i=100,...a}){let o=M.useMemo(()=>Array.isArray(n)?n:Array.isArray(t)?t:[r,i],[n,t,r,i]);return(0,V.jsxs)(Kt,{"data-slot":`slider`,defaultValue:t,value:n,min:r,max:i,className:B(`relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col`,e),...a,children:[(0,V.jsx)(Nt,{"data-slot":`slider-track`,className:B(`bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5`),children:(0,V.jsx)(Vt,{"data-slot":`slider-range`,className:B(`bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full`)})}),Array.from({length:o.length},(e,t)=>(0,V.jsx)(Pt,{"data-slot":`slider-thumb`,className:`border-primary bg-background ring-ring/50 block size-4 shrink-0 cursor-pointer rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50`},t))]})}var Gd=365;function Kd(e){let t=new Date,n=Gd-e;return t.setDate(t.getDate()-n),t.toLocaleDateString(void 0,{year:`numeric`,month:`short`,day:`numeric`})}function qd(e){let t=new Date,n=Gd-e;return t.setDate(t.getDate()-n),Math.floor(t.getTime()/1e3)}var Jd={load:0,grant:0,refund:0,usage:0,electricity:0,installation:0},Yd=[{key:`load`,icon:pe,label:`Load`},{key:`grant`,icon:Pe,label:`Grant`},{key:`refund`,icon:Re,label:`Refund`},{key:`usage`,icon:le,label:`Usage`},{key:`electricity`,icon:we,label:`Electricity`},{key:`installation`,icon:Ve,label:`Installation`}];function Xd({reportPath:e=`/report/transactions`,title:t=`Export Transactions`}){let[n,r]=(0,M.useState)(!1),[i,a]=(0,M.useState)(()=>[335,Gd]),[o,s]=(0,M.useState)(()=>[335,Gd]),[c,l]=(0,M.useState)(Jd),[u,d]=(0,M.useState)(!1),f=`${mc}${e}?start=${qd(o[0])}&end=${qd(o[1])}`;return(0,M.useEffect)(()=>
70{if(!n)return;let t=!0;async function r(){d(!0);try{let n=await W(`${e}/summary?start=${qd(o[0])}&end=${qd(o[1])}`,`GET`,void 0,{suppressToast:!0});t&&n&&l(n)}catch(e){t&&l(Jd),console.error(`Failed to fetch transaction summary`,e)}finally{t&&d(!1)}}return r(),()=>{t=!1}},[o,n,e]),(0,V.jsxs)(Cd,{open:n,onOpenChange:r,children:[(0,V.jsx)(wd,{asChild:!0,children:(0,V.jsxs)(H,{variant:`outline`,children:[(0,V.jsx)(he,{className:`size-4`}),`Export`]})}),(0,V.jsxs)(Dd,{children:[(0,V.jsx)(Od,{children:(0,V.jsx)(Ad,{children:t})}),(0,V.jsxs)(`div`,{className:`space-y-4`,children:[(0,V.jsxs)(`div`,{className:`flex items-center justify-between text-sm text-muted-foreground`,children:[(0,V.jsxs)(`span`,{children:[`Start: `,Kd(i[0])]}),(0,V.jsxs)(`span`,{children:[`End: `,Kd(i[1])]})]}),(0,V.jsx)(Wd,{min:0,max:Gd,step:1,value:i,onValueChange:e=>a(e),onValueCommit:e=>s(e)}),(0,V.jsxs)($c,{containerClassName:`rounded-md border`,children:[(0,V.jsx)(el,{className:`bg-muted/50`,children:(0,V.jsxs)(nl,{children:[(0,V.jsx)(rl,{children:`Category`}),(0,V.jsx)(rl,{className:`text-right`,children:`Total`})]})}),(0,V.jsx)(tl,{children:Yd.map(e=>{let t=e.icon;return(0,V.jsxs)(nl,{children:[(0,V.jsx)(il,{children:(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,V.jsx)(t,{className:`size-4 text-muted-foreground`}),(0,V.jsx)(`span`,{children:e.label})]})}),(0,V.jsx)(il,{className:`text-right`,children:u?`Loading...`:Uo(c[e.key])})]},e.key)})})]})]}),(0,V.jsx)(kd,{children:(0,V.jsx)(H,{asChild:!0,children:(0,V.jsx)(`a`,{href:f,target:`_blank`,rel:`noopener noreferrer`,onClick:()=>r(!1),children:`Export`})})})]})]})}function Zd({className:e,...t}){return(0,V.jsx)(`nav`,{role:`navigation`,"aria-label":`pagination`,"data-slot":`pagination`,className:B(`mx-auto flex w-full justify-center`,e),...t})}function Qd({className:e,...t}){return(0,V.jsx)(`ul`,{"data-slot":`pagination-content`,className:B(`flex flex-row items-center gap-1`,e),...t})}function $d({...e}){return(0,V.jsx)(`li`,{"data-slot":`pagination-item`,...e})}function ef({className:e,isActive:t,size:n=`icon`,...r}){return(0,V.jsx)(`a`,{"aria-current":t?`page`:void 0,"data-slot":`pagination-link`,"data-active":t,className:B(Zo({variant:t?`outline`:`ghost`,size:n}),e),...r})}function tf({className:e,...t}){return(0,V.jsxs)(ef,{"aria-label":`Go to previous page`,size:`default`,className:B(`gap-1 px-2.5 sm:pl-2.5`,e),...t,children:[(0,V.jsx)(D,{}),(0,V.jsx)(`span`,{className:`hidden sm:block`,children:`Previous`})]})}function nf({className:e,...t}){return(0,V.jsxs)(ef,{"aria-label":`Go to next page`,size:`default`,className:B(`gap-1 px-2.5 sm:pr-2.5`,e),...t,children:[(0,V.jsx)(`span`,{className:`hidden sm:block`,children:`Next`}),(0,V.jsx)(Je,{})]})}function rf({className:e,...t}){return(0,V.jsxs)(`span`,{"aria-hidden":!0,"data-slot":`pagination-ellipsis`,className:B(`flex size-9 items-center justify-center`,e),...t,children:[(0,V.jsx)(j,{className:`size-4`}),(0,V.jsx)(`span`,{className:`sr-only`,children:`More pages`})]})}function af(){let[e,t]=(0,M.useState)(1),n=w({queryKey:[`transactions`,e],queryFn:()=>W(`/transactions?page=${e}&page_size=10`)}),r=n.data?.items??[],i=n.data?.total??0,a=n.isLoading,o=Math.max(1,Math.ceil(i/10)),s=Jo(e,o);function c(e){e<1||e>o||t(e)}return(0,V.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,V.jsx)(`section`,{children:(0,V.jsx)(Mu,{icon:(0,V.jsx)(Ae,{className:`size-6`}),title:`Transactions`,subtitle:`Review billing history, usage charges, and export records when needed.`,action:(0,V.jsx)(Xd,{})})}),a?(0,V.jsx)(`div`,{className:`flex justify-center p-4`,children:(0,V.jsx)(Lc,{className:`size-6`})}):r.length===0?(0,V.jsx)(`p`,{className:`p-4`,children:`No transactions found.`}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Ud,{transactions:r}),o>1&&(0,V.jsx)(Zd,{className:`mt-4`,children:(0,V.jsxs)(Qd,{children:[(0,V.jsx)($d,{children:(0,V.jsx)(tf,{href:`#`,className:e===1?`pointer-events-none opacity-50`:void 0,onClick:t=>{t.preventDefault(),c(e-1)}})}),s.map((t,n)=>t===`ellipsis`?(0,V.jsx)($d,{children:(0,V.jsx)(rf,{})},`ellipsis-${n}`):(0,V.jsx)($d,{children:(0,V.jsx)(ef,{href:`#`,isActive:e===t,onClick:e=>{e.preventDefault(),c(t)},children:t})},t)),(0,V.jsx)($d,{children:(0,V.jsx)(nf,{href:`#`,className:e>=o?`pointer-events-none opacity-50`:void 0,onClick:t=>{t.preventDefault(),c(e+1)}})})]})})]})]})}var of=ma(`relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90`}},defaultVariants:{variant:`default`}});function sf({className:e,variant:t,...n}){return(0,V.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:B(of({variant:t}),e),...n})}function cf({className:e,...t}){return(0,V.jsx)(`div`,{"data-slot":`alert-title`,className:B(`col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight`,e),...t})}function lf({className:e,...t}){return(0,V.jsx)(`div`,{"data-slot":`alert-description`,className:B(`text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed`,e),...t})}function uf({onConfirm:e}){return(0,V.jsxs)(rd,{children:[(0,V.jsx)(id,{asChild:!0,children:(0,V.jsx)(H,{variant:`destructive`,className:`sm:w-auto`,children:`Unrent`})}),(0,V.jsxs)(sd,{children:[(0,V.jsxs)(cd,{children:[(0,V.jsx)(ud,{children:`Unrent and remove all server data?`}),(0,V.jsx)(dd,{children:`Unrenting this server will remove all existing data from the server and you will not be able to access it anymore.`})]}),(0,V.jsxs)(ld,{children:[(0,V.jsx)(pd,{children:`Cancel`}),(0,V.jsx)(fd,{onClick:e,children:`Unrent`})]})]})]})}function df({onContinue:e}){return(0,V.jsxs)(rd,{children:[(0,V.jsx)(id,{asChild:!0,children:(0,V.jsx)(H,{className:`sm:w-auto`,children:`Update Image`})}),(0,V.jsxs)(sd,{children:[(0,V.jsxs)(cd,{children:[(0,V.jsx)(ud,{children:`Reinstall OS and delete data?`}),(0,V.jsx)(dd,{children:`Updating the image will wipe all data on this server and reinstall the OS. Make sure you have backups before continuing.`})]}),(0,V.jsxs)(ld,{children:[(0,V.jsx)(pd,{children:`Cancel`}),(0,V.jsx)(fd,{onClick:e,children:`Continue`})]})]})]})}function ff(){let e=zr(),t=Fr(),{current:n,isAdmin:r}=bc(),i=x(),a=e.uuid,[o,s]=(0,M.useState)(null),[c,l]=(0,M.useState)(!0),[u,d]=(0,M.useState)(!1),f=o?`${o.id}.swissgpu.ch`:``,p=f?`ssh ubuntu@${f}`:``;(0,M.useEffect)(()=>{(async()=>
70{if(a)try{let e=await W(`/nodes/${a}`),r=e.status!==`listed`;d(n?r:!1),s({id:String(e.id),uuid:String(e.id),gpu:e.gpu,cpu:e.cpu,ram:e.ram===null?`Pending detection`:`${e.ram} GB`,ssd:e.ssd===null?`Pending detection`:`${e.ssd} GB`,status:e.status,ports:e.ports,price:`${(e.cost/100).toFixed(2)} CHF/h`,os:e.os}),t(`.`,{replace:!0})}catch(e){console.error(`Failed to fetch server`,e)}finally{l(!1)}})()},[a,n,r,t]);let m=async()=>{if(a)try{await W(`/nodes/${a}`,`PATCH`),await Promise.all([i.invalidateQueries({queryKey:[`assigned-servers`]}),i.invalidateQueries({queryKey:[`rent-capacity`]})]),t(`/servers`)}catch(e){console.error(`Failed to unassign server`,e)}};if(c||!o)return(0,V.jsx)(`div`,{className:`flex flex-1 items-center justify-center p-10`,children:(0,V.jsx)(Lc,{className:`size-6`})});let h=qo(o?.status??``),g=Xo(o.ports),_=o.status===`installing`;return(0,V.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[_&&(0,V.jsxs)(sf,{className:`border-primary/40 bg-linear-to-r from-primary/15 via-card to-card text-card-foreground shadow-[0_0_0_1px_rgba(255,255,255,0.03)]`,children:[(0,V.jsx)(de,{className:`text-primary`}),(0,V.jsx)(cf,{className:`text-base font-semibold text-foreground`,children:`This server is still being installed`}),(0,V.jsxs)(lf,{className:`gap-2 text-sm text-muted-foreground`,children:[(0,V.jsx)(`p`,{children:`SwissGPU is preparing the workstation and finishing the selected image setup.`}),(0,V.jsx)(`p`,{children:`You will receive an email as soon as the server is ready to use.`})]})]}),(0,V.jsxs)(zu,{className:`bg-muted`,children:[(0,V.jsxs)(Bu,{children:[(0,V.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,V.jsx)(`div`,{className:`flex items-center gap-2`,children:(0,V.jsx)(Vu,{className:`text-4xl`,children:Ju(o.uuid)})}),(0,V.jsx)(`div`,{children:(0,V.jsx)(`span`,{className:`ml-2 text-lg font-bold text-primary`,children:o.price})})]}),(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,V.jsx)(X,{variant:`outline`,className:`h-4 min-w-4 rounded-full px-2 text-[0.65rem] ${h}`,children:o.status}),o.os&&(0,V.jsx)(X,{variant:`outline`,className:`h-4 min-w-4 rounded-full border-secondary/70 bg-secondary/20 px-2 text-[0.65rem] text-secondary-foreground`,children:o.os})]})]}),(0,V.jsxs)(Uu,{className:`space-y-6`,children:[(0,V.jsx)(`div`,{className:`grid gap-3`,children:(0,V.jsxs)(`ul`,{className:`grid gap-2 text-sm`,children:[g&&(0,V.jsxs)(`li`,{className:`flex items-center text-foreground`,children:[(0,V.jsx)(ve,{className:`mr-2 h-4 w-4 text-muted-foreground`}),`Ports: `,g]}),(0,V.jsxs)(`li`,{className:`flex items-center text-foreground`,children:[(0,V.jsx)(me,{className:`mr-2 h-4 w-4 text-muted-foreground`}),`CPU: `,o.cpu??`Pending detection`]}),(0,V.jsxs)(`li`,{className:`flex items-center text-foreground`,children:[(0,V.jsx)(ye,{className:`mr-2 h-4 w-4 text-muted-foreground`}),`GPU: `,o.gpu??`Pending detection`]}),(0,V.jsxs)(`li`,{className:`flex items-center text-foreground`,children:[(0,V.jsx)(qe,{className:`mr-2 h-4 w-4 text-muted-foreground`}),`RAM: `,o.ram]}),(0,V.jsxs)(`li`,{className:`flex items-center text-foreground`,children:[(0,V.jsx)(Ge,{className:`mr-2 h-4 w-4 text-muted-foreground`}),`SSD: `,o.ssd]})]})}),(0,V.jsx)(`div`,{className:`flex justify-center`,children:(0,V.jsx)(`div`,{className:`relative flex w-full max-w-none flex-col gap-2`,children:(0,V.jsx)(`div`,{className:`flex flex-col gap-4`,children:(0,V.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,V.jsx)(`h3`,{className:`text-sm font-medium text-foreground`,children:`Connect using ssh`}),(0,V.jsx)(K,{code:p,language:`bash`,infoHref:`/docs/ssh?name=${o.id}`,infoLabel:`Open SSH connection tutorial`,preClassName:`bg-background-tertiary`})]})})})}),(0,V.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row sm:justify-end`,children:[u&&(0,V.jsx)(uf,{onConfirm:m}),(0,V.jsx)(df,{onContinue:()=>t(`/servers/${o.uuid}/template`)})]})]})]})]})}function pf({...e}){return(0,V.jsx)(pt,{"data-slot":`dropdown-menu`,...e})}function mf({...e}){return(0,V.jsx)(cn,{"data-slot":`dropdown-menu-trigger`,...e})}function hf({className:e,sideOffset:t=4,...n}){return(0,V.jsx)(st,{children:(0,V.jsx)(tt,{"data-slot":`dropdown-menu-content`,sideOffset:t,className:B(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
70de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md`,e),...n})})}function gf({className:e,inset:t,variant:n=`default`,...r}){return(0,V.jsx)(it,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":n,className:B(`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r})}async function _f(e,t,n){let r=n&&n.trim().length>0?`&search=${encodeURIComponent(n.trim())}`:``,[i,a,o,s]=await Promise.all([W(`/admin/nodes?page=${e}&page_size=${t}${r}`),W(`/lists/gpus`),W(`/lists/status`),W(`/lists/locations`)]);return{nodes:i,gpus:a,statuses:o,locations:s}}async function vf(e){return W(`/admin/nodes/${e}`)}async function yf(){return W(`/admin/power`)}async function bf(e,t){return W(`/admin/power/${e}/history?days=${t}`)}async function xf(e){return W(`/admin/nodes/automatic`,`POST`,e)}async function Sf(e){return W(`/admin/nodes/manual`,`POST`,e)}async function Cf(e,t){return W(`/admin/nodes/${e}`,`PUT`,t)}async function wf(e,t){await W(`/admin/nodes/power/${e}`,`POST`,{state:t})}async function Tf(e){return W(`/admin/nodes/${e}/reinstall`,`POST`)}async function Ef(e){await W(`/admin/nodes/${e}`,`DELETE`)}function Df({className:e,...t}){return(0,V.jsx)(zt,{"data-slot":`tabs`,className:B(`flex flex-col gap-2`,e),...t})}function Of({className:e,...t}){return(0,V.jsx)(Et,{"data-slot":`tabs-list`,className:B(`bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]`,e),...t})}function kf({className:e,...t}){return(0,V.jsx)(tn,{"data-slot":`tabs-trigger`,className:B(`data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...t})}function Af({className:e,...t}){return(0,V.jsx)(Zt,{"data-slot":`tabs-content`,className:B(`flex-1 outline-none`,e),...t})}function jf({...e}){return(0,V.jsx)(rn,{"data-slot":`select`,...e})}function Mf({...e}){return(0,V.jsx)(ut,{"data-slot":`select-value`,...e})}function Nf({className:e,size:t=`default`,children:n,...r}){return(0,V.jsxs)($e,{"data-slot":`select-trigger`,"data-size":t,className:B(`border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit cursor-pointer items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...r,children:[n,(0,V.jsx)(Tt,{asChild:!0,children:(0,V.jsx)(xe,{className:`size-4 opacity-50`})})]})}function Pf({className:e,children:t,position:n=`popper`,...r}){return(0,V.jsx)(an,{children:(0,V.jsxs)(sn,{"data-slot":`select-content`,className:B(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
70de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:n,...r,children:[(0,V.jsx)(If,{}),(0,V.jsx)(Rt,{className:B(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:t}),(0,V.jsx)(Lf,{})]})})}function Ff({className:e,children:t,...n}){return(0,V.jsxs)(on,{"data-slot":`select-item`,className:B(`focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-pointer items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,V.jsx)(`span`,{className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,V.jsx)(mt,{children:(0,V.jsx)(k,{className:`size-4`})})}),(0,V.jsx)(Qe,{children:t})]})}function If({className:e,...t}){return(0,V.jsx)(et,{"data-slot":`select-scroll-up-button`,className:B(`flex cursor-pointer items-center justify-center py-1`,e),...t,children:(0,V.jsx)(_e,{className:`size-4`})})}function Lf({className:e,...t}){return(0,V.jsx)(ht,{"data-slot":`select-scroll-down-button`,className:B(`flex cursor-pointer items-center justify-center py-1`,e),...t,children:(0,V.jsx)(xe,{className:`size-4`})})}function Rf({open:e,onOpenChange:t,gpuOptions:n,locationOptions:r,onCreate:i}){let[a,o]=(0,M.useState)(`automatic`),{register:s,handleSubmit:c,control:l,formState:{errors:u,isSubmitting:d},reset:f}=ln({defaultValues:{mode:`automatic`,name:``,cpu:``,gpu:``,ram:``,ssd:``,location:``,cost:``}});(0,M.useEffect)(()=>{e||(f(),o(`automatic`))},[e,f]);async function p(e){await i({...e,mode:a})&&f()}return(0,V.jsxs)(Cd,{open:e,onOpenChange:t,children:[(0,V.jsx)(wd,{asChild:!0,children:(0,V.jsxs)(H,{variant:`outline`,children:[(0,V.jsx)(ke,{className:`size-4 mr-1`}),` Add a new server`]})}),(0,V.jsxs)(Dd,{className:`sm:max-w-3xl`,children:[(0,V.jsx)(Od,{children:(0,V.jsx)(Ad,{children:`Add Server`})}),(0,V.jsxs)(`form`,{onSubmit:c(p),children:[(0,V.jsxs)(Df,{value:a,onValueChange:e=>{(e===`automatic`||e===`manual`)&&o(e)},children:[(0,V.jsxs)(Of,{"aria-label":`Server setup mode`,className:`grid h-11 w-full grid-cols-2 rounded-md border border-border bg-muted p-1`,children:[(0,V.jsx)(kf,{value:`automatic`,className:`h-9 border ${a===`automatic`?`border-white bg-primary text-primary-foreground hover:bg-primary/90`:`border-transparent bg-transparent text-muted-foreground`}`,style:a===`automatic`?{borderColor:`#ffffff`,boxShadow:`inset 0 0 0 1px #ffffff`}:void 0,children:`Automatic`}),(0,V.jsx)(kf,{value:`manual`,className:`h-9 border ${a===`manual`?`border-white bg-primary text-primary-foreground hover:bg-primary/90`:`border-transparent bg-transparent text-muted-foreground`}`,style:a===`manual`?{borderColor:`#ffffff`,boxShadow:`inset 0 0 0 1px #ffffff`}:void 0,children:`Manual`})]}),(0,V.jsxs)(Af,{value:`manual`,className:`grid gap-2 py-2`,children:[(0,V.jsxs)(`div`,{className:`grid gap-2 sm:grid-cols-4`,children:[(0,V.jsxs)(`div`,{className:`grid gap-1`,children:[(0,V.jsx)(Ic,{htmlFor:`node-cpu`,children:`CPU`}),(0,V.jsx)(Qo,{id:`node-cpu`,placeholder:`CPU`,...s(`cpu`,{required:a===`manual`})})]}),(0,V.jsxs)(`div`,{className:`grid gap-1`,children:[(0,V.jsx)(Ic,{htmlFor:`node-ram`,children:`RAM (GB)`}),(0,V.jsx)(Qo,{id:`node-ram`,type:`number`,min:`1`,...s(`ram`,{required:a===`manual`,min:1})})]}),(0,V.jsxs)(`div`,{className:`grid gap-1`,children:[(0,V.jsx)(Ic,{htmlFor:`node-ssd`,children:`Disk (GB)`}),(0,V.jsx)(Qo,{id:`node-ssd`,type:`number`,min:`1`,...s(`ssd`,{required:a===`manual`,min:1})})]}),(0,V.jsx)(dn,{control:l,name:`gpu`,rules:{required:a===`manual`},render:({field:e})=>(0,V.jsxs)(`div`,{className:`grid gap-1`,children:[(0,V.jsx)(Ic,{children:`GPU`}),(0,V.jsxs)(jf,{value:e.value,onValueChange:e.onChange,children:[(0,V.jsx)(Nf,{className:`w-full`,children:(0,V.jsx)(Mf,{placeholder:`GPU`})}),(0,V.jsx)(Pf,{children:n.map(e=>(0,V.jsx)(Ff,{value:e,children:e},e))})]})]})})]}),(u.cpu||u.gpu||u.ram||u.ssd)&&(0,V.jsx)(`p`,{className:`text-sm text-destructive`,children:`Complete all manual server details.`})]}),(0,V.jsxs)(`div`,{className:`grid gap-2 py-2`,children:[(0,V.jsxs)(`div`,{className:`grid gap-1`,children:[(0,V.jsx)(Ic,{htmlFor:`node-name`,children:`N
70ame`}),(0,V.jsx)(Qo,{id:`node-name`,placeholder:`Name`,...s(`name`,{required:!0})})]}),u.name&&(0,V.jsx)(`p`,{className:`text-sm text-destructive`,children:`Name is required.`}),(0,V.jsx)(dn,{control:l,name:`location`,rules:{required:!0},render:({field:e})=>(0,V.jsxs)(`div`,{className:`grid gap-1`,children:[(0,V.jsx)(Ic,{children:`Location`}),(0,V.jsxs)(jf,{value:e.value,onValueChange:e.onChange,children:[(0,V.jsx)(Nf,{className:`w-full`,children:(0,V.jsx)(Mf,{placeholder:`Location`})}),(0,V.jsx)(Pf,{children:r.map(e=>(0,V.jsx)(Ff,{value:e,children:e},e))})]})]})}),u.location&&(0,V.jsx)(`p`,{className:`text-sm text-destructive`,children:`Location is required.`}),(0,V.jsxs)(`div`,{className:`grid gap-1`,children:[(0,V.jsx)(Ic,{htmlFor:`node-cost`,children:`Cost (cents per hour)`}),(0,V.jsx)(Qo,{id:`node-cost`,type:`number`,placeholder:`Cost (Cents/h)`,...s(`cost`,{required:!0,min:1})})]}),u.cost&&(0,V.jsx)(`p`,{className:`text-sm text-destructive`,children:`Cost is required.`})]})]}),(0,V.jsx)(kd,{children:(0,V.jsx)(H,{type:`submit`,disabled:d,children:`Submit`})})]})]})]})}var zf={cpu:``,ram:``,disk:``,gpu:``,os:`none`,location:``,cost:``,status:``,userId:``},Bf=[{value:`ubuntu:24.04`,name:`Ubuntu`,version:`24.04 LTS`,Logo:ed},{value:`ubuntu:26.04`,name:`Ubuntu`,version:`26.04 LTS`,Logo:ed},{value:`windows:11`,name:`Windows`,version:`11`,Logo:td}];function Vf({open:e,onOpenChange:t,node:n,gpuOptions:r,locationOptions:i,statusOptions:a,onDelete:o,onUpdate:s}){let[c,l]=(0,M.useState)(!1),[u,d]=(0,M.useState)(null),{register:f,handleSubmit:p,control:m,reset:h,formState:{errors:g,isSubmitting:_}}=ln({defaultValues:zf}),v=un({control:m,name:`status`})===`listed`&&!!n?.user;(0,M.useEffect)(()=>{if(!e){h(zf);return}n&&h({cpu:n.cpu??``,ram:n.ram==null?``:String(n.ram),disk:n.ssd==null?``:String(n.ssd),gpu:n.gpu??``,os:n.os??`none`,location:n.location,cost:n.cost==null?``:String(n.cost),status:n.status||``,userId:n.user_id??``})},[n,e,h]);async function y(e){if(v){d(e),l(!0);return}await s(e)}async function b(){if(!u){l(!1);return}l(!1),await s(u),d(null)}function x(e){l(e),e||d(null)}return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Cd,{open:e,onOpenChange:t,children:(0,V.jsxs)(Dd,{className:`sm:max-w-3xl`,children:[(0,V.jsx)(Od,{children:(0,V.jsx)(Ad,{children:`Update Server`})}),(0,V.jsxs)(`form`,{onSubmit:p(y),children:[(0,V.jsxs)(`div`,{className:`grid gap-2 py-2`,children:[(0,V.jsxs)(`div`,{className:`grid gap-2 sm:grid-cols-4`,children:[(0,V.jsxs)(`div`,{className:`grid gap-1`,children:[(0,V.jsx)(Ic,{htmlFor:`node-cpu`,children:`CPU`}),(0,V.jsx)(Qo,{id:`node-cpu`,placeholder:`CPU`,...f(`cpu`)})]}),(0,V.jsxs)(`div`,{className:`grid gap-1`,children:[(0,V.jsx)(Ic,{htmlFor:`node-ram`,children:`RAM (GB)`}),(0,V.jsx)(Qo,{id:`node-ram`,type:`number`,min:`1`,placeholder:`RAM`,...f(`ram`)})]}),(0,V.jsxs)(`div`,{className:`grid gap-1`,children:[(0,V.jsx)(Ic,{htmlFor:`node-disk`,children:`Disk (GB)`}),(0,V.jsx)(Qo,{id:`node-disk`,type:`number`,min:`1`,placeholder:`Disk`,...f(`disk`)})]}),(0,V.jsx)(dn,{control:m,name:`gpu`,render:({field:e})=>(0,V.jsxs)(`div`,{className:`grid gap-1`,children:[(0,V.jsx)(Ic,{children:`GPU`}),(0,V.jsxs)(jf,{value:e.value,onValueChange:e.onChange,children:[(0,V.jsx)(Nf,{className:`w-full`,children:(0,V.jsx)(Mf,{placeholder:`GPU`})}),(0,V.jsx)(Pf,{children:r.map(e=>(0,V.jsx)(Ff,{value:e,children:e},e))})]})]})})]}),(0,V.jsx)(dn,{control:m,name:`location`,render:({field:e})=>(0,V.jsxs)(`div`,{className:`grid gap-1`,children:[(0,V.jsx)(Ic,{children:`Location`}),(0,V.jsxs)(jf,{value:e.value,onValueChange:e.onChange,children:[(0,V.jsx)(Nf,{className:`w-full`,children:(0,V.jsx)(Mf,{placeholder:`Location`})}),(0,V.jsx)(Pf,{children:i.map(e=>(0,V.jsx)(Ff,{value:e,children:e},e))})]})]})}),(0,V.jsxs)(`div`,{className:`grid gap-1`,children:[(0,V.jsx)(Ic,{htmlFor:`node-cost`,children:`Cost (cents per hour)`}),(0,V.jsx)(Qo,{id:`node-cost`,type:`number`,placeholder:`Cost`,...f(`cost`,{required:!0,min:1})})]}),g.cost&&(0,V.jsx)(`p`,{className:`text-sm text-destructive`,children:`Cost must be at least 1 cent.`}),(0,V.jsxs)(`div`,{className:`grid gap-1`,children:[(0,V.jsx)(Ic,{htmlFor:`node-user-id`,children:`Assigned User ID`}),(0,V.jsx)(Qo,{id:`node-user-id`,placeholder:`User UUID`,...f(`userId`)}),(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Leave blank to unassign the server.`})]}),(0,V.jsxs)(`div`,{className:`grid gap-2 sm:grid-cols-2`,children:[(0,V.jsx)(dn,{control:m,name:`status`,render:({field:e})=>(0,V.jsxs)(`div`,{className:`grid gap-1`,children:[(0,V.jsx)(Ic,{children:`Status`}),(0,V.jsxs)(jf,{value:e.value,onValueChange:e.onChange,children:[(0,V.jsx)(Nf,{className:`w-full`,children:(0,V.jsx)(Mf,{placeholder:`Status`})}),(0,V.jsx)(Pf,{children:a.map(e=>(0,V.jsx)(Ff,{value:e,children:e},e))})]})]})}),(0,V.jsx)(dn,{control:m,name:`os`,render:({field:e})=>(0,V.jsxs)(`div`,{className:`grid gap-1`,children:[(0,V.jsx)(Ic,{children:`Operating System`}),(0,V.jsxs)(jf,{value:e.value,onValueChange:e.onChange,children:[(0,V.jsx)(Nf,{className:`w-full cursor-pointer`,children:(0,V.jsx)(Mf,{placeholder:`Operating System`})}),(0,V.jsxs)(Pf,{children:[(0,V.jsx)(Ff,{value:`none`,children:`No operating system`}
70),Bf.map(({value:e,name:t,version:n,Logo:r})=>(0,V.jsxs)(Ff,{value:e,children:[(0,V.jsx)(r,{"aria-hidden":`true`,className:`size-4`}),(0,V.jsx)(`span`,{children:t}),(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:n})]},e))]})]})]})})]})]}),(0,V.jsxs)(kd,{className:`mt-4`,children:[(0,V.jsxs)(rd,{children:[(0,V.jsx)(id,{asChild:!0,children:(0,V.jsx)(H,{size:`sm`,variant:`destructive`,type:`button`,children:`Remove`})}),(0,V.jsxs)(sd,{children:[(0,V.jsx)(cd,{children:(0,V.jsx)(ud,{children:`Remove this server?`})}),(0,V.jsxs)(ld,{children:[(0,V.jsx)(pd,{children:`Cancel`}),(0,V.jsx)(fd,{onClick:o,children:`Remove`})]})]})]}),(0,V.jsx)(H,{size:`sm`,type:`submit`,disabled:_,children:`Update`})]})]})]})}),(0,V.jsx)(rd,{open:c,onOpenChange:x,children:(0,V.jsxs)(sd,{children:[(0,V.jsx)(cd,{children:(0,V.jsx)(ud,{children:`Set status to listed?`})}),(0,V.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`This will remove the assigned user from the server.`}),(0,V.jsxs)(ld,{children:[(0,V.jsx)(pd,{children:`Cancel`}),(0,V.jsx)(fd,{onClick:b,children:`Continue`})]})]})})]})}function Hf({node:e,onSelect:t}){return(0,V.jsx)(il,{className:`px-2 py-2 font-medium`,children:(0,V.jsxs)(`div`,{className:`flex flex-col items-start gap-1`,children:[(0,V.jsx)(`button`,{type:`button`,className:`cursor-pointer text-left hover:underline`,onClick:n=>{n.stopPropagation(),t(e)},children:e.id}),(0,V.jsxs)(`span`,{className:`flex items-center gap-1 text-xs font-normal text-muted-foreground`,children:[`status:`,(0,V.jsx)(X,{variant:`outline`,className:`rounded-full border-cyan-500/30 bg-cyan-500/10 px-1.5 py-0 text-[10px] capitalize text-cyan-700 dark:text-cyan-300`,children:e.status})]})]})})}function Uf({value:e,children:t,onCopy:n}){return(0,V.jsxs)(`button`,{type:`button`,className:`flex cursor-pointer items-center gap-1 text-muted-foreground`,onClick:t=>{t.stopPropagation(),n(e)},children:[(0,V.jsx)(ue,{className:`h-3 w-3`}),t]})}function Wf(e,t=`NA`){if(!e)return t;let n=e.trim().split(/\s+/).filter(Boolean);return n.length===0?t:n.length===1?n[0].slice(0,2).toUpperCase():`${n[0][0]}${n[1][0]}`.toUpperCase()}
70function Gf({user:e,onSelect:t,onCopyEmail:n,showDetails:r=!1}){let i=[r&&e.country?{label:e.country,className:`rounded-full border-sky-500/30 bg-sky-500/10 px-1.5 py-0 text-[10px] font-semibold uppercase text-sky-700 dark:text-sky-300`}:null,r&&e.isadmin?{label:`Admin`,className:`rounded-full border-orange-500/30 bg-orange-500/10 px-1.5 py-0 text-[10px] text-orange-700 dark:text-orange-300`}:null,e.longterm?{label:`longterm`,className:`rounded-full border-emerald-500/30 bg-emerald-500/10 px-1.5 py-0 text-[10px] text-emerald-700 dark:text-emerald-300`}:null,r&&e.banned?{label:`banned`,className:`rounded-full border-emerald-500/30 bg-emerald-500/10 px-1.5 py-0 text-[10px] text-emerald-700 dark:text-emerald-300`}:null].filter(e=>e!==null);return(0,V.jsx)(il,{className:`px-2 py-2`,children:(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,V.jsxs)(Ps,{className:`h-8 w-8 rounded`,children:[(0,V.jsx)(Fs,{src:e.avatar??``,alt:e.email}),(0,V.jsx)(Is,{className:`rounded-lg`,children:Wf(e.name)})]}),(0,V.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,V.jsxs)(`div`,{className:r?`flex items-center gap-2`:void 0,children:[(0,V.jsx)(`button`,{type:`button`,className:`cursor-pointer text-left hover:underline`,onClick:n=>{n.stopPropagation(),t(e.id)},children:e.name}),i.map(e=>(0,V.jsx)(X,{variant:`outline`,className:e.className,children:e.label},e.label))]}),n?(0,V.jsx)(Uf,{value:e.email,onCopy:n,children:e.email}):(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:e.email})]})]})})}var Kf=25,qf=[`rented`,`maintenance`,`listed`],Jf=(e,t)=>[`admin-nodes`,e,t];function Yf(e){let t=Number(e);if(!Number.isInteger(t)||t<=0)throw Error(`Cost must be a positive integer`);return t}async function Xf(e,t){let[{nodes:n,gpus:r,statuses:i,locations:a},o]=await Promise.all([_f(e,Kf,t),yf()]);return{nodes:n.nodes,total:n.total,powerDevices:o,gpuOptions:r,statusOptions:i,locationOptions:a}}function Zf(){let{balanceLoading:e,isAdmin:t}=bc(),n=Fr(),r=x(),[i,a]=(0,M.useState)(1),[o,s]=(0,M.useState)(``),c=Jf(i,o),l=w({queryKey:c,queryFn:()=>Xf(i,o),enabled:!e&&t,placeholderData:ee}),u=l.isLoading&&l.data===void 0,d=l.data?.gpuOptions??[],f=l.data?.locationOptions??[],p=l.data?.nodes??[],m=l.data?.powerDevices??{},h=l.data?.total??0,g=(0,M.useMemo)(()=>Math.max(1,Math.ceil(h/Kf)),[h]),_=Jo(i,g),v=(l.data?.statusOptions??[]).filter(e=>qf.includes(e)),y=v.length>0?v:qf,b=(0,M.useCallback)(async()=>{await r.invalidateQueries({queryKey:[`admin-nodes`]})},[r]),[S,C]=(0,M.useState)(!1),[T,te]=(0,M.useState)(!1),[ne,re]=(0,M.useState)(!1),[E,ie]=(0,M.useState)(null),[ae,oe]=(0,M.useState)(!1),[se,D]=(0,M.useState)(null),[O,ce]=(0,M.useState)(null);if(e)return(0,V.jsx)(`div`,{className:`flex min-h-[60vh] items-center justify-center`,children:(0,V.jsx)(Lc,{className:`size-6`})});if(!t)return(0,V.jsx)(El,{});async function le(e){try{return e.mode===`manual`?await Sf({id:e.name,cpu:e.cpu,gpu:e.gpu,ram:Number(e.ram),ssd:Number(e.ssd),location:e.location,cost:Yf(e.cost),ports:null}):await xf({id:e.name,location:e.location,cost:Yf(e.cost),ports:null}),await b(),C(!1),!0}catch(e){return console.error(`Failed to create server`,e),!1}}function ue(e){return e==null?`—`:`${(e/100).toFixed(2)} CHF/h`}function de(e){return e==null?`—`:`${new Intl.NumberFormat(void 0,{maximumFractionDigits:2}).format(e)} W`}function k(e){n(Fu(String(e.id)))}function A(e){ce(e),te(!0)}async function fe(e){if(!O)return;let t=Yf(e.cost),n=e.cpu.trim().length>0?e.cpu.trim():null,i=e.ram.trim().length>0?Number(e.ram):null,a=e.disk.trim().length>0?Number(e.disk):null,o=e.gpu.trim().length>0?e.gpu.trim():null,s=e.os===`none`?null:e.os,c=e.userId.trim().length>0?e.userId.trim():null,l={};if(n!==O.cpu&&(l.cpu=n),i!==O.ram&&(l.ram=i),a!==O.ssd&&(l.ssd=a),o!==O.gpu&&(l.gpu=o),s!==O.os&&(l.os=s),e.location!==O.location&&(l.location=e.location),t!==O.cost&&(l.cost=t),e.status!==O.status&&(l.status=e.status),c!==O.user_id&&(l.user_id=c),Object.keys(l).length===0){te(!1),ce(null);return}await Cf(O.id,l),await b(),await r.invalidateQueries({queryKey:[`admin-node`,O.id]}),te(!1),ce(null)}async function pe(){O&&(await Ef(O.id),await b(),te(!1),ce(null))}async function me(){if(E)try{re(!0),await wf(E.node.id,E.state),await b(),await r.invalidateQueries({queryKey:[`admin-node`,E.node.id]}),ie(null)}catch(e){console.error(`Failed to power ${E.state} server`,e)}finally{re(!1)}}async function he(){if(se)try{oe(!0),await Tf(se.id),await b(),await r.invalidateQueries({queryKey:[`admin-node`,se.id]}),D(null)}catch(e){console.error(`Failed to reinstall server`,e)}finally{oe(!1)}}return u?(0,V.jsx)(`div`,{className:`flex flex-1 justify-center items-center p-10`,children:(0,V.jsx)(Lc,{className:`size-6`})}):(0,V.jsxs)(`div`,{className:`container p-4 mx-auto w-full max-w-[1200px] flex flex-col gap-3`,children:[(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,V.jsx)(Qo,{placeholder:`Search nodes...`,value:o,onChange:e=>{s(e.target.value),a(1)}}),(0,V.jsx)(`div`,{className:`shrink-0`,children:(0,V.jsx)(Rf,{open:S,onOpenChange:C,gpuOptions:d,locationOptions:f,onCreate:le})})]}),(0,V.jsx)(Vf,{open:T,onOpenChange:te,node:O,gpuOptions:d,locationOptions:f,statusOptions:y,onUpdate:fe,onDelete:pe}),(0,V.jsx)(rd,{open:E!==null,onOpenChange:e=>!e&&!ne&&ie(null),children:(0,V.jsxs)(sd,{children:[(0,V.jsxs)(cd,{children:[(0,V.jsx)(ud,{children:E?.state===`on`?`Power on server?`:`Power off server?`}),(0,V.jsx)(dd,{children:E?`This will power ${E.state} ${E.node.id}.`:`Confirm this power action.`})]}),(0,V.jsxs)(ld,{children:[(0,V.jsx)(pd,{disabled:ne,children:`Cancel`}),(0,V.jsx)(fd,{disabled:ne,onClick:e=>{e.preventDefault(),me()},children:E?.state===`on`?`Power On`:`Power Off`})]})]})}),(0,V.jsx)(rd,{open:se!==null,onOpenChange:e=>!e&&!ae&&D(null),children:(0,V.jsxs)(sd,{children:[(0,V.jsxs)(cd,{children:[(0,V.jsx)(ud,{children:`Reinstall node?`}),(0,V.jsx)(dd,{children:se?`This will wipe ${se.id}, keep its current OS and password, and power-cycle the node into installation.`:`Confirm this reinstall action.`})]}),(0,V.jsxs)(ld,{children:[(0,V.jsx)(pd,{disabled:ae,children:`Cancel`}),(0,V.jsx)(fd,{disabled:ae,onClick:e=>{e.preventDefault(),he()},children:`Reinstall`})]})]})}),(0,V.jsxs)($c,{className:`overflow-hidden rounded-md border border-border`,children:[(0,V.jsx)(el,{className:`bg-background-tertiary`,children:(0,V.jsxs)(nl,{children:[(0,V.jsx)(rl,{children:`ID`}),(0,V.jsx)(rl,{children:`Assigned User`}),(0,V.jsx)(rl,{children:`Power`}),(0,V.jsx)(rl,{children:`Cost`}),(0,V.jsx)(rl,{children:`Location`}),(0,V.jsx)(rl,{children:`Specs`}),(0,V.jsx)(rl,{className:`w-12 text-right`,children:`Action`})]})}),(0,V.jsx)(tl,{className:`bg-secondary/20`,children:p.map(e=>(0,V.jsxs)(nl,{className:`hover:bg-muted/80`,children:[(0,V.jsx)(Hf,{node:e,onSelect:k}),e.user?(0,V.jsx)(Gf,{user:e.user,onSelect:e=>n(Iu(e))}):(0,V.jsx)(il,{className:`px-2 py-2`,children:`—`}),(0,V.jsx)(il,{className:`px-2 py-2`,children:de(m[e.id]?.power)}),(0,V.jsx)(il,{className:`px-2 py-2`,children:ue(e.cost??null)}),(0,V.jsx)(il,{className:`px-2 py-2`,children:e.location}),(0,V.jsx)(il,{className:`px-2 py-2`,children:(0,V.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,V.jsx)(`span`,{children:e.cpu??`Pending`}),(0,V.jsx)(`span`,{children:`${e.gpu??`Pending`} - RAM ${e.ram??`Pending`} GB - DISK ${e.ssd??`Pending`} GB`})]})}),(0,V.jsx)(il,{className:`px-2 py-2 text-right`,children:(0,V.jsxs)(pf,{children:[(0,V.jsx)(mf,{asChild:!0,children:(0,V.jsxs)(H,{variant:`ghost`,size:`icon`,className:`text-white hover:text-white`,onClick:e=>e.stopPropagation(),children:[(0,V.jsx)(j,{className:`size-4`}),(0,V.jsx)(`span`,{className:`sr-only`,children:`Open action menu`})]})}),(0,V.jsxs)(hf,{align:`end`,children:[(0,V.jsxs)(gf,{onSelect:()=>A(e),children:[(0,V.jsx)(Ce,{className:`size-4`}),`Update`]}),(0,V.jsxs)(gf,{disabled:!e.os||e.os===`windows:11`,onSelect:()=>D(e),children:[(0,V.jsx)(Fe,{className:`size-4`}),`Reinstall`]}),(0,V.jsx)(gf,{variant:`destructive`,onSelect:()=>ie({node:e,state:`off`}),children:`Power Off`}),(0,V.jsx)(gf,{onSelect:()=>ie({node:e,state:`on`}),children:`Power On`})]})]})})]},e.id))})]}),g>1&&(0,V.jsx)(Zd,{className:`mt-4`,children:(0,V.jsxs)(Qd,{children:[(0,V.jsx)($d,{children:(0,V.jsx)(tf,{href:`#`,className:i<=1?`pointer-events-none opacity-50`:`cursor-pointer`,onClick:e=>{e.preventDefault(),a(e=>Math.max(1,e-1))}})}),_.map((e,t)=>e===`ellipsis`?(0,V.jsx)($d,{children:(0,V.jsx)(rf,{})},`ellipsis-${t}`):(0,V.jsx)($d,{children:(0,V.jsx)(ef,{href:`#`,isActive:i===e,onClick:t=>{t.preventDefault(),a(e)},children:e})},e)),(0,V.jsx)($d,{children:(0,V.jsx)(nf,{href:`#`,className:i>=g?`pointer-events-none opacity-50`:`cursor-pointer`,onClick:e=>{e.preventDefault(),a(e=>Math.min(g,e+1))}})})]})})]})}var Qf={light:``,dark:`.dark`},$f=M.createContext(null);function ep(){let e=M.useContext($f);if(!e)throw Error(`useChart must be used within a <ChartContainer />`);return e}function tp({id:e,className:t,children:n,config:r,...i}){let a=M.useId(),o=`chart-${e||a.replace(/:/g,``)}`;return(0,V.jsx)($f.Provider,{value:{config:r},children:(0,V.jsxs)(`div`,{"data-slot":`chart`,"data-chart":o,className:B(`[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden`,t),...i,children:[(0,V.jsx)(np,{id:o,config:r}),(0,V.jsx)(u,{children:n})]})})}var np=({id:e,config:t})=>{let n=Object.entries(t).filter(([,e])=>e.theme||e.color);return n.length?(0,V.jsx)(`style`,{dangerouslySetInnerHTML:{__html:Object.entries(Qf).map(([t,r])=>`
71${r} [data-chart=${e}] {
72${n.map(([e,n])=>{let r=n.theme?.[t]||n.color;return r?`  --color-${e}: ${r};`:null}).join(`
73`)}
74}
75`).join(`
76`)}}):null},rp=c;function ip({active:e,payload:t,className:n,indicator:r=`dot`,hideLabel:i=!1,hideIndicator:a=!1,label:o,labelFormatter:s,labelClassName:c,formatter:l,color:u,nameKey:d,labelKey:f}){let{config:p}=ep(),m=M.useMemo(()=>
76{if(i||!t?.length)return null;let[e]=t,n=`${f||e?.dataKey||e?.name||`value`}`,r=ap(p,e,n),a=!f&&typeof o==`string`?p[o]?.label||o:r?.label;return s?(0,V.jsx)(`div`,{className:B(`font-medium`,c),children:s(a,t)}):a?(0,V.jsx)(`div`,{className:B(`font-medium`,c),children:a}):null},[o,s,t,i,c,p,f]);if(!e||!t?.length)return null;let h=t.length===1&&r!==`dot`;return(0,V.jsxs)(`div`,{className:B(`border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl`,n),children:[h?null:m,(0,V.jsx)(`div`,{className:`grid gap-1.5`,children:t.map((e,t)=>{let n=`${d||e.name||e.dataKey||`value`}`,i=ap(p,e,n),o=u||e.payload.fill||e.color;return(0,V.jsx)(`div`,{className:B(`[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5`,r===`dot`&&`items-center`),children:l&&e?.value!==void 0&&e.name?l(e.value,e.name,e,t,e.payload):(0,V.jsxs)(V.Fragment,{children:[i?.icon?(0,V.jsx)(i.icon,{}):!a&&(0,V.jsx)(`div`,{className:B(`shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)`,{"h-2.5 w-2.5":r===`dot`,"w-1":r===`line`,"w-0 border-[1.5px] border-dashed bg-transparent":r===`dashed`,"my-0.5":h&&r===`dashed`}),style:{"--color-bg":o,"--color-border":o}}),(0,V.jsxs)(`div`,{className:B(`flex flex-1 justify-between leading-none`,h?`items-end`:`items-center`),children:[(0,V.jsxs)(`div`,{className:`grid gap-1.5`,children:[h?m:null,(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:i?.label||e.name})]}),e.value&&(0,V.jsx)(`span`,{className:`text-foreground font-mono font-medium tabular-nums`,children:e.value.toLocaleString()})]})]})},`${t}-${String(e.dataKey??e.name??`value`)}`)})})]})}function ap(e,t,n){if(typeof t!=`object`||!t)return;let r=`payload`in t&&typeof t.payload==`object`&&t.payload!==null?t.payload:void 0,i=n;return n in t&&typeof t[n]==`string`?i=t[n]:r&&n in r&&typeof r[n]==`string`&&(i=r[n]),i in e?e[i]:e[n]}var op={power:{label:`Power (W)`,color:`var(--chart-1)`}},sp=[{label:`Last day`,days:1},{label:`Last 30 days`,days:30},{label:`Last year`,days:365}],cp=[];function lp(){let{nodeId:e}=zr(),t=Fr(),{balanceLoading:n,isAdmin:i}=bc(),o=e??``,[c,u]=(0,M.useState)(sp[0].days),f=w({queryKey:[`admin-node`,o],queryFn:()=>vf(o),enabled:!n&&i&&o.length>0}),p=w({queryKey:[`admin-node-power-history`,o,c],queryFn:()=>bf(o,c),enabled:!n&&i&&o.length>0}),m=f.data??null,h=p.data??cp,g=h.map(e=>({time:Yo(e.created_at,`—`,!0),power:e.power===null?null:Math.round(e.power)}));return n||f.isLoading?(0,V.jsx)(`div`,{className:`flex min-h-[60vh] items-center justify-center`,children:(0,V.jsx)(Lc,{className:`size-6`})}):!i||!o||!m?(0,V.jsx)(El,{}):(0,V.jsxs)(`div`,{className:`container mx-auto flex w-full max-w-[1100px] flex-col gap-4 p-4`,children:[(0,V.jsx)(`div`,{children:(0,V.jsxs)(H,{variant:`ghost`,onClick:()=>t(`/admin/nodes`),children:[(0,V.jsx)(ze,{className:`size-4`}),`Back to nodes`]})}),(0,V.jsxs)(zu,{children:[(0,V.jsxs)(Bu,{children:[(0,V.jsx)(Vu,{children:`Power History`}),(0,V.jsx)(Hu,{className:`flex flex-wrap justify-end gap-2`,children:sp.map(e=>(0,V.jsx)(H,{type:`button`,size:`sm`,variant:c===e.days?`secondary`:`ghost`,onClick:()=>u(e.days),children:e.label},e.days))})]}),(0,V.jsx)(Uu,{children:p.isLoading?(0,V.jsx)(`div`,{className:`flex h-[260px] items-center justify-center`,children:(0,V.jsx)(Lc,{className:`size-6`})}):h.length>0?(0,V.jsx)(tp,{config:op,className:`h-[260px] w-full`,children:(0,V.jsxs)(d,{data:g,margin:{left:0,right:12},children:[(0,V.jsx)(r,{vertical:!1}),(0,V.jsx)(l,{dataKey:`time`,tickLine:!1,axisLine:!1,tickMargin:8,minTickGap:32}),(0,V.jsx)(s,{tickLine:!1,axisLine:!1,tickMargin:8,width:48}),(0,V.jsx)(rp,{cursor:!1,content:e=>(0,V.jsx)(ip,{...e,content:void 0,indicator:`line`})}),(0,V.jsx)(a,{dataKey:`power`,type:`natural`,fill:`var(--color-power)`,fillOpacity:.25,stroke:`var(--color-power)`})]})}):(0,V.jsx)(`div`,{className:`flex h-[260px] items-center justify-center rounded-md border border-dashed text-sm text-muted-foreground`,children:`No power history is available for this node.`})})]})]})}function up(e,t,n,r){let i=new URLSearchParams({investor_name:e,investor_address:t,amount:n,percentage:r});window.open(`${mc}/admin/documents/investor-agreement?${i}`,`_blank`,`noopener`)}function dp({className:e,...t}){return(0,V.jsx)(`textarea`,{"data-slot":`textarea`,className:B(`border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,e),...t})}function fp({open:e,onOpenChange:t}){let[n,r]=(0,M.useState)(``),[i,a]=(0,M.useState)(``),[o,s]=(0,M.useState)(``),[c,l]=(0,M.useState)(``);function u(e){e.preventDefault(),up(n.trim(),i.trim(),o,c),t(!1)}return(0,V.jsx)(Cd,{open:e,onOpenChange:t,children:(0,V.jsxs)(Dd,{children:[(0,V.jsxs)(Od,{children:[(0,V.jsx)(Ad,{children:`Investor agreement`}),(0,V.jsx)(jd,{children:`Enter the investor details to generate the agreement PDF.`})]}),(0,V.jsxs)(`form`,{className:`space-y-5`,onSubmit:u,children:[(0,V.jsxs)(`div`,{className:`space-y-2`,children:[(0,V.jsx)(Ic,{htmlFor:`investor-name`,children:`Investor name or company`}),(0,V.jsx)(Qo,{id:`investor-name`,value:n,onChange:e=>r(e.target.value),placeholder:`Example SA`,required:!0})]}),(0,V.jsxs)(`div`,{className:`space-y-2`,children:[(0,V.jsx)(Ic,{htmlFor:`investor-address`,children:`Investor address`}),(0,V.jsx)(dp,{id:`investor-address`,value:i,onChange:e=>a(e.target.value),placeholder:`Example Street 1
776900 Lugano`,required:!0})]}),(0,V.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2`,children:[(0,V.jsxs)(`div`,{className:`space-y-2`,children:[(0,V.jsx)(Ic,{htmlFor:`investment-amount`,children:`Investment amount (CHF)`}),(0,V.jsx)(Qo,{id:`investment-amount`,type:`number`,min:`0.01`,step:`0.01`,value:o,onChange:e=>s(e.target.value),placeholder:`12500.00`,required:!0})]}),(0,V.jsxs)(`div`,{className:`space-y-2`,children:[(0,V.jsx)(Ic,{htmlFor:`investor-percentage`,children:`Investor share (%)`}),(0,V.jsx)(Qo,{id:`investor-percentage`,type:`number`,min:`0.01`,max:`100`,step:`0.01`,value:c,onChange:e=>l(e.target.value),placeholder:`65`,required:!0})]})]}),(0,V.jsx)(kd,{children:(0,V.jsxs)(H,{type:`submit`,children:[(0,V.jsx)(Me,{}),`Open agreement`]})})]})]})})}function pp(){let{balanceLoading:e,isAdmin:t}=bc(),[n,r]=(0,M.useState)(!1);return e?(0,V.jsx)(`div`,{className:`flex min-h-[60vh] items-center justify-center`,children:(0,V.jsx)(Lc,{className:`size-6`})}):t?(0,V.jsxs)(`div`,{className:`container mx-auto flex w-full max-w-[1200px] flex-col gap-3 p-4`,children:[(0,V.jsxs)($c,{className:`overflow-hidden rounded-md border border-border`,children:[(0,V.jsx)(el,{className:`bg-background-tertiary`,children:(0,V.jsxs)(nl,{children:[(0,V.jsx)(rl,{children:`Document`}),(0,V.jsx)(rl,{className:`w-24 text-right`,children:`Action`})]})}),(0,V.jsx)(tl,{className:`bg-secondary/20`,children:(0,V.jsxs)(nl,{className:`hover:bg-muted/80`,children:[(0,V.jsx)(il,{className:`px-2 py-3 font-medium`,children:(0,V.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[(0,V.jsx)(`button`,{type:`button`,className:`curs
77or-pointer text-left hover:underline`,onClick:()=>r(!0),children:`Investor agreement`}),(0,V.jsx)(`span`,{className:`text-sm font-normal text-muted-foreground`,children:`Generate an investor agreement PDF.`})]})}),(0,V.jsx)(il,{className:`px-2 py-3 text-right`,children:(0,V.jsxs)(pf,{children:[(0,V.jsx)(mf,{asChild:!0,children:(0,V.jsxs)(H,{variant:`ghost`,size:`icon`,className:`text-white hover:text-white`,children:[(0,V.jsx)(j,{className:`size-4`}),(0,V.jsx)(`span`,{className:`sr-only`,children:`Open action menu`})]})}),(0,V.jsx)(hf,{align:`end`,children:(0,V.jsx)(gf,{onSelect:()=>r(!0),children:`Open`})})]})})]})})]}),(0,V.jsx)(fp,{open:n,onOpenChange:r})]}):(0,V.jsx)(El,{})}function mp({provider:e,userId:t,onCopyUserId:n}){return(0,V.jsx)(il,{className:`px-2 py-2`,children:(0,V.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,V.jsx)(`span`,{children:e}),(0,V.jsx)(Uf,{value:t,onCopy:n,children:t.length>8?`${t.slice(0,4)}...${t.slice(-4)}`:t})]})})}function hp({balance:e,stripe:t,onCopyStripe:n}){return(0,V.jsx)(il,{className:`px-2 py-2`,children:(0,V.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,V.jsx)(`span`,{children:Uo(e)}),t?(0,V.jsx)(Uf,{value:t,onCopy:n,children:t}):(0,V.jsx)(`span`,{className:`text-muted-foreground`,children:`—`})]})})}function gp({creationDate:e,lastLogin:t}){return(0,V.jsx)(il,{className:`px-2 py-2`,children:(0,V.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,V.jsxs)(`span`,{children:[`Created: `,Yo(e)]}),(0,V.jsxs)(`span`,{className:`text-muted-foreground`,children:[`Last Login: `,Yo(t,`Never`,!0)]})]})})}var _p=25;function vp(e,t){let{balanceLoading:n,isAdmin:r}=bc(),[i,a]=(0,M.useState)(1),o=w({queryKey:[`users`,i,e,t],queryFn:()=>gd(i,_p,e,t),enabled:!n&&r,placeholderData:ee}),s=o.data?.users??[],c=o.data?.total??0,l=(0,M.useMemo)(()=>Math.max(1,Math.ceil(c/_p)),[c]);return{balanceLoading:n,isAdmin:r,loading:o.isLoading&&o.data===void 0,page:i,setPage:a,totalPages:l,users:s}}function yp({longtermOnly:e=!1}){let t=Fr(),n=x(),[r,i]=(0,M.useState)(``),[a,o]=(0,M.useState)(null),{balanceLoading:s,isAdmin:c,loading:l,page:u,setPage:d,totalPages:f,users:p}=vp(r,e),m=Jo(u,f),h=re({mutationFn:({userId:e,gpu:t})=>yd(e,t),onSuccess:async()=>{await n.invalidateQueries({queryKey:[`users`]}),U.success(`Availability email sent`)},onError:e=>{console.error(`Failed to send availability email`,e),U.error(`Unable to send availability email`)},onSettled:()=>{o(null)}});if(s)return(0,V.jsx)(`div`,{className:`flex min-h-[60vh] items-center justify-center`,children:(0,V.jsx)(Lc,{className:`size-6`})});if(!c)return(0,V.jsx)(El,{});if(l)return(0,V.jsx)(`div`,{className:`flex flex-1 justify-center items-center p-10`,children:(0,V.jsx)(Lc,{className:`size-6`})});let g=(e,t)=>{navigator.clipboard.writeText(t),U.success(`${e} copied`)};function _(e,t){o(`${e}:${t}`),h.mutate({userId:e,gpu:t})}return(0,V.jsxs)(`div`,{className:`container mx-auto flex w-full max-w-[1200px] flex-col gap-3 p-4`,children:[(0,V.jsx)(Qo,{placeholder:`Search users...`,value:r,onChange:e=>{i(e.target.value),d(1)}}),(0,V.jsxs)($c,{className:`overflow-hidden rounded-md border border-border`,children:[(0,V.jsx)(el,{className:`bg-background-tertiary`,children:(0,V.jsxs)(nl,{children:[(0,V.jsx)(rl,{children:`User`}),(0,V.jsx)(rl,{children:`Provider`}),(0,V.jsx)(rl,{children:`Balance`}),(0,V.jsx)(rl,{children:`NotifyMe`}),(0,V.jsx)(rl,{children:`Timestamp`})]})}),(0,V.jsx)(tl,{className:`bg-secondary/20`,children:p.map(e=>(0,V.jsxs)(nl,{className:`hover:bg-muted/80`,children:[(0,V.jsx)(Gf,{user:e,showDetails:!0,onSelect:e=>t(Iu(e)),onCopyEmail:e=>g(`Email`,e)}),(0,V.jsx)(mp,{provider:e.provider,userId:e.id,onCopyUserId:e=>g(`User ID`,e)}),(0,V.jsx)(hp,{balance:e.balance,stripe:e.stripe,onCopyStripe:e=>g(`Stripe ID`,e)}),(0,V.jsx)(il,{className:`px-2 py-2`,children:(0,V.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:e.notifyme.map(t=>(0,V.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,V.jsx)(X,{variant:`outline`,className:`rounded-full border-cyan-500/30 bg-cyan-500/10 px-1.5 py-0 text-[10px] text-cyan-700 dark:text-cyan-300`,children:t}),(0,V.jsx)(H,{size:`sm`,variant:`outline`,className:`h-6 px-2 text-[10px]`,disabled:a===`${e.id}:${t}`,onClick:n=>{n.stopPropagation(),_(e.id,t)},children:a===`${e.id}:${t}`?`Sending...`:`Send email`})]},t))})}),(0,V.jsx)(gp,{creationDate:e.creation_date,lastLogin:e.last_login})]},e.id))})]}),f>1&&(0,V.jsx)(Zd,{className:`mt-4`,children:(0,V.jsxs)(Qd,{children:[(0,V.jsx)($d,{children:(0,V.jsx)(tf,{href:`#`,className:u<=1?`pointer-events-none opacity-50`:`cursor-pointer`,onClick:e=>{e.preventDefault(),d(e=>Math.max(1,e-1))}})}),m.map((e,t)=>e===`ellipsis`?(0,V.jsx)($d,{children:(0,V.jsx)(rf,{})},`ellipsis-${t}`):(0,V.jsx)($d,{children:(0,V.jsx)(ef,{href:`#`,isActive:u===e,onClick:t=>{t.preventDefault(),d(e)},children:e})},e)),(0,V.jsx)($d,{children:(0,V.jsx)(nf,{href:`#`,className:u>=f?`pointer-events-none opacity-50`:`cursor-pointer`,onClick:e=>{e.preventDefault(),d(e=>Math.min(f,e+1))}})})]})})]})}var bp=365.2425,xp=6048e5,Sp=864e5,Cp=6e4,wp=36e5,Tp=86400;Tp*7,Tp*bp/12*3;var Ep=Symbol.for(`constructDateFrom`);function Dp(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Ep in e?e[Ep](t):e instanceof Date?new e.constructor(t):new Date(t)}function Q(e,t){return Dp(t||e,e)}function Op(e,t,n){let r=Q(e,n?.in);return isNaN(t)?Dp(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}
vendor: 7,880 bytes, line 77
77function kp(e,t,n){let r=Q(e,n?.in);if(isNaN(t))return Dp(n?.in||e,NaN);if(!t)return r;let i=r.getDate(),a=Dp(n?.in||e,r.getTime());return a.setMonth(r.getMonth()+t+1,0),i>=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}var Ap={};function jp(){return Ap}function Mp(e,t){let n=jp(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Q(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Np(e,t){return Mp(e,{...t,weekStartsOn:1})}function Pp(e,t){let n=Q(e,t?.in),r=n.getFullYear(),i=Dp(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=Np(i),o=Dp(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=Np(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Fp(e){let t=Q(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-n}function Ip(e,...t){let n=Dp.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function Lp(e,t){let n=Q(e,t?.in);return n.setHours(0,0,0,0),n}function Rp(e,t,n){let[r,i]=Ip(n?.in,e,t),a=Lp(r),o=Lp(i),s=+a-Fp(a),c=+o-Fp(o);return Math.round((s-c)/Sp)}function zp(e,t){let n=Pp(e,t),r=Dp(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Np(r)}function Bp(e,t,n){return Op(e,t*7,n)}function Vp(e,t,n){return kp(e,t*12,n)}function Hp(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=Dp.bind(null,e));let t=Q(e,r);(!n||n<t||isNaN(+t))&&(n=t)}),Dp(r,n||NaN)}function Up(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=Dp.bind(null,e));let t=Q(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),Dp(r,n||NaN)}function Wp(e,t,n){let[r,i]=Ip(n?.in,e,t);return+Lp(r)==+Lp(i)}function Gp(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function Kp(e){return!(!Gp(e)&&typeof e!=`number`||isNaN(+Q(e)))}function qp(e,t,n){let[r,i]=Ip(n?.in,e,t),a=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return a*12+o}function Jp(e,t){let n=Q(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Yp(e,t){let[n,r]=Ip(e,t.start,t.end);return{start:n,end:r}}function Xp(e,t){let{start:n,end:r}=Yp(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setDate(1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(Dp(n,o)),o.setMonth(o.getMonth()+s);return i?c.reverse():c}function Zp(e,t){let n=Q(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Qp(e,t){let n=Q(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function $p(e,t){let n=Q(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function em(e,t){let{start:n,end:r}=Yp(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setMonth(0,1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(Dp(n,o)),o.setFullYear(o.getFullYear()+s);return i?c.reverse():c}function tm(e,t){let n=jp(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Q(e,t?.in),a=i.getDay(),o=(a<r?-7:0)+6-(a-r);return i.setDate(i.getDate()+o),i.setHours(23,59,59,999),i}function nm(e,t){return tm(e,{...t,weekStartsOn:1})}var rm={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},im=(e,t,n)=>{let r,i=rm[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function am(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var om={date:am({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:am({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:am({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},sm={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},cm=(e,t,n,r)=>sm[e];function lm(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var um={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:lm({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:lm({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:lm({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:lm({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:lm({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function dm(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?pm(s,e=>e.test(o)):fm(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}
vendor: 10,803 bytes, line 77
77}function fm(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function pm(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function mm(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var hm={code:`en-US`,formatDistance:im,formatLong:om,formatRelative:cm,localize:um,match:{ordinalNumber:mm({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:dm({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:dm({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:dm({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:dm({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:dm({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function gm(e,t){let n=Q(e,t?.in);return Rp(n,$p(n))+1}function _m(e,t){let n=Q(e,t?.in),r=+Np(n)-zp(n);return Math.round(r/xp)+1}function vm(e,t){let n=Q(e,t?.in),r=n.getFullYear(),i=jp(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=Dp(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=Mp(o,t),c=Dp(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=Mp(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function ym(e,t){let n=jp(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=vm(e,t),a=Dp(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Mp(a,t)}function bm(e,t){let n=Q(e,t?.in),r=+Mp(n,t)-ym(n,t);return Math.round(r/xp)+1}function xm(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var Sm={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return xm(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):xm(n+1,2)},d(e,t){return xm(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return xm(e.getHours()%12||12,t.length)},H(e,t){return xm(e.getHours(),t.length)},m(e,t){return xm(e.getMinutes(),t.length)},s(e,t){return xm(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return xm(Math.trunc(r*10**(n-3)),t.length)}},Cm={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wm={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return Sm.y(e,t)},Y:function(e,t,n,r){let i=vm(e,r),a=i>0?i:1-i;return t===`YY`?xm(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):xm(a,t.length)},R:function(e,t){return xm(Pp(e),t.length)},u:function(e,t){return xm(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return xm(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return xm(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return Sm.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return xm(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=bm(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):xm(i,t.length)},I:function(e,t,n){let r=_m(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):xm(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):Sm.d(e,t)},D:function(e,t,n){let r=gm(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):xm(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return xm(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return xm(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return xm(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?Cm.noon:r===0?Cm.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?Cm.evening:r>=12?Cm.afternoon:r>=4?Cm.morning:Cm.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return Sm.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):Sm.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):xm(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):xm(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):Sm.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):Sm.s(e,t)},S:function(e,t){return Sm.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return Em(r);case`XXXX`:case`XX`:return Dm(r);default:return Dm(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return Em(r);case`xxxx`:case`xx`:return Dm(r);default:return Dm(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+Tm(r,`:`);default:return`GMT`+Dm(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+Tm(r,`:`);default:return`GMT`+Dm(r,`:`)}},t:function(e,t,n){return xm(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return xm(+e,t.length)}};function Tm(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+xm(a,2)}function Em(e,t){return e%60==0?(e>0?`-`:`+`)+xm(Math.abs(e)/60,2):Dm(e,t)}function Dm(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=xm(Math.trunc(r/60),2),a=xm(r%60,2);return n+i+t+a}var Om=(e,t)=>
vendor: 5,715 bytes, line 77
77{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},km=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},Am={p:km,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Om(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`})}return a.replace(`{{date}}`,Om(r,t)).replace(`{{time}}`,km(i,t))}},jm=/^D+$/,Mm=/^Y+$/,Nm=[`D`,`DD`,`YY`,`YYYY`];function Pm(e){return jm.test(e)}function Fm(e){return Mm.test(e)}function Im(e,t,n){let r=Lm(e,t,n);if(console.warn(r),Nm.includes(e))throw RangeError(r)}function Lm(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Rm=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Bm=/^'([^]*?)'?$/,Vm=/''/g,Hm=/[a-zA-Z]/;function Um(e,t,n){let r=jp(),i=n?.locale??r.locale??hm,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=Q(e,n?.in);if(!Kp(s))throw RangeError(`Invalid time value`);let c=t.match(zm).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=Am[t];return n(e,i.formatLong)}return e}).join(``).match(Rm).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:Wm(e)};if(wm[t])return{isToken:!0,value:e};if(t.match(Hm))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&Fm(a)||!n?.useAdditionalDayOfYearTokens&&Pm(a))&&Im(a,t,String(e));let o=wm[a[0]];return o(s,a,i.localize,l)}).join(``)}function Wm(e){let t=e.match(Bm);return t?t[1].replace(Vm,`'`):e}function Gm(e,t){let n=Q(e,t?.in),r=n.getFullYear(),i=n.getMonth(),a=Dp(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function Km(e,t){return Q(e,t?.in).getMonth()}function qm(e,t){return Q(e,t?.in).getFullYear()}function Jm(e,t){return+Q(e)>+Q(t)}function Ym(e,t){return+Q(e)<+Q(t)}function Xm(e,t,n){let[r,i]=Ip(n?.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function Zm(e,t,n){let[r,i]=Ip(n?.in,e,t);return r.getFullYear()===i.getFullYear()}function Qm(e,t){let n=()=>Dp(t?.in,NaN),r=t?.additionalDigits??2,i=rh(e),a;if(i.date){let e=ih(i.date,r);a=ah(e.restDateString,e.year)}if(!a||isNaN(+a))return n();let o=+a,s=0,c;if(i.time&&(s=sh(i.time),isNaN(s)))return n();if(i.timezone){if(c=lh(i.timezone),isNaN(c))return n()}else{let e=new Date(o+s),n=Q(0,t?.in);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}return Q(o+s+c,t?.in)}var $m={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},eh=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,th=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,nh=/^([+-])(\d{2})(?::?(\d{2}))?$/;function rh(e){let t={},n=e.split($m.dateTimeDelimiter),r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],$m.timeZoneDelimiter.test(t.date)&&(t.date=e.split($m.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){let e=$m.timezone.exec(r);e?(t.time=r.replace(e[1],``),t.timezone=e[1]):t.time=r}return t}function ih(e,t){let n=RegExp(`^(?:(\\d{4}|[+-]\\d{`+(4+t)+`})|(\\d{2}|[+-]\\d{`+(2+t)+`})$)`),r=e.match(n);if(!r)return{year:NaN,restDateString:``};let i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function ah(e,t){if(t===null)return new Date(NaN);let n=e.match(eh);if(!n)return new Date(NaN);let r=!!n[4],i=oh(n[1]),a=oh(n[2])-1,o=oh(n[3]),s=oh(n[4]),c=oh(n[5])-1;if(r)return hh(t,s,c)?uh(t,s,c):new Date(NaN);{let e=new Date(0);return!ph(t,a,o)||!mh(t,i)?new Date(NaN):(e.setUTCFullYear(t,a,Math.max(i,o)),e)}}function oh(e){return e?parseInt(e):1}function sh(e){let t=e.match(th);if(!t)return NaN;let n=ch(t[1]),r=ch(t[2]),i=ch(t[3]);return gh(n,r,i)?n*wp+r*Cp+i*1e3:NaN}function ch(e){return e&&parseFloat(e.replace(`,`,`.`))||0}function lh(e){if(e===`Z`)return 0;let t=e.match(nh);if(!t)return 0;let n=t[1]===`+`?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return _h(r,i)?n*(r*wp+i*Cp):NaN}function uh(e,t,n){let r=new Date(0);r.setUTCFullYear(e,0,4);let i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}var dh=[31,null,31,30,31,30,31,31,30,31,30,31];function fh(e){return e%400==0||e%4==0&&e%100!=0}function ph(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(dh[t]||(fh(e)?29:28))}function mh(e,t){return t>=1&&t<=(fh(e)?366:365)}function hh(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function gh(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function _h(e,t){return t>=0&&t<=59}function vh(e,t,n){let r=Q(e,n?.in),i=r.getFullYear(),a=r.getDate(),o=Dp(n?.in||e,0);o.setFullYear(i,t,15),o.setHours(0,0,0,0);let s=Gm(o);return r.setMonth(t,Math.min(a,s)),r}
vendor: 43,949 bytes, line 77
77function yh(e,t,n){let r=Q(e,n?.in);return isNaN(+r)?Dp(n?.in||e,NaN):(r.setFullYear(t),r)}function bh(e,t,n=`long`){return new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(` `)}var xh={},Sh={};function Ch(e,t){try{let n=(xh[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in Sh?Sh[n]:Th(n,n.split(`:`))}catch{if(e in Sh)return Sh[e];let t=e?.match(wh);return t?Th(e,t.slice(1)):NaN}}var wh=/([+-]\d\d):?(\d\d)?/;function Th(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return Sh[e]=n*60+r>0?n*60+r+i:n*60-r-i}var Eh=class e extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]==`string`&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(Ch(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]==`number`&&(e.length===1||e.length===2&&typeof e[1]!=`number`)?this.setTime(e[0]):typeof e[0]==`string`?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),Ah(this,e)):this.setTime(Date.now())}static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let e=-Ch(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Oh(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},Dh=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Dh.test(e))return;let t=e.replace(Dh,`$1UTC`);Eh.prototype[t]&&(e.startsWith(`get`)?Eh.prototype[e]=function(){return this.internal[t]()}:(Eh.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),kh(this),+this},Eh.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Oh(this),+this}))});function Oh(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-Ch(e.timeZone,e)*60))}function kh(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),Ah(e)}function Ah(e,t){let n=Array.isArray(t)?jh(t):+e.internal,r=Ch(e.timeZone,e),i=r>0?Math.floor(r):Math.ceil(r),a=new Date(+e);a.setUTCHours(a.getUTCHours()-1);let o=-new Date(+e).getTimezoneOffset(),s=-new Date(+a).getTimezoneOffset(),c=o-s,l=o;if(c&&o!==i&&Date.prototype.getHours.apply(e)!==(Array.isArray(t)?t[3]||0:e.internal.getUTCHours())){let t=new Date(+e),n=o-i;n&&t.setUTCMinutes(t.getUTCMinutes()+n);let r=Ch(e.timeZone,t);(r>0?Math.floor(r):Math.ceil(r))===i&&(l=s)}let u=l-i;u&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+u);let d=new Date(+e);d.setUTCSeconds(0);let f=o>0?d.getSeconds():(d.getSeconds()-60)%60,p=Math.round(-(Ch(e.timeZone,e)*60))%60;(p||f)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+p+f);let m=Ch(e.timeZone,e),h=m>0?Math.floor(m):Math.ceil(m),g=-new Date(+e).getTimezoneOffset()-h,_=h!==i,v=g-u,y=h-i,b=n-h*60*1e3,x=y>0&&Mh(e)-n===y*60*1e3&&Mh(e,b)!==n;if(_&&v&&!x){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);let t=Ch(e.timeZone,e),n=h-(t>0?Math.floor(t):Math.ceil(t));n&&v<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n)}Oh(e);let S=(t?n:n+p*1e3)-+e.internal;S&&Math.abs(S)<18e5&&(Date.prototype.setTime.call(e,+e+S),Oh(e))}function jh(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function Mh(e,t){let n=new Date(t??+e);return n.setUTCSeconds(n.getUTCSeconds()-Math.round(-Ch(e.timeZone,n)*60)),+n}var Nh=class e extends Eh{static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}toISOString(){let[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,r]=this.internal.toUTCString().split(` `);return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){let e=this.internal.toUTCString().split(` `)[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${bh(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset();return[e>0?`-`:`+`,String(Math.floor(Math.abs(e)/60)).padStart(2,`0`),String(Math.abs(e)%60).padStart(2,`0`)]}withTimeZone(t){return new e(+this,t)}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},Ph=5,Fh=4;function Ih(e,t){let n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,i=t.addDays(e,-r+1),a=t.addDays(i,34);return t.getMonth(e)===t.getMonth(a)?Ph:Fh}function Lh(e,t){let n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function Rh(e,t){let n=Lh(e,t),r=Ih(e,t);return t.addDays(n,r*7-1)}var zh={...hm,labels:{labelDayButton:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>Um(e,t,{locale:hm,...n});let a=i(e,`PPPP`);return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a},labelMonthDropdown:`Choose the Month`,labelNext:`Go to the Next Month`,labelPrevious:`Go to the Previous Month`,labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:`Choose the Year`,labelGrid:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>Um(e,n,{locale:hm,...t}),r(e,`LLLL yyyy`)},labelGridcell:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>Um(e,t,{locale:hm,...n});let a=i(e,`PPPP`);return t?.today&&(a=`Today, ${a}`),a},labelNav:`Navigation bar`,labelWeekNumberHeader:`Week Number`,labelWeekday:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>Um(e,n,{locale:hm,...t}),r(e,`cccc`)}}},Bh=class e{constructor(e,t){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?Nh.tz(this.options.timeZone):new this.Date,this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new Nh(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):Op(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):kp(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):Bp(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):Vp(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):Rp(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):qp(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):Xp(e),this.eachYearOfInterval=e=>{let t=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(e):em(e),n=new Set(t.map(e=>this.getYear(e)));if(n.size===t.length)return t;let r=[];return n.forEach(e=>{r.push(new Date(e,0,1))}),r},this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e):Rh(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):nm(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):Jp(e),this.endOfWeek=(e,t)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,t):tm(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):Qp(e),this.format=(e,t,n)=>{let r=this.overrides?.format?this.overrides.format(e,t,this.options):Um(e,t,this.options);return this.options.numerals&&this.options.numerals!==`latn`?this.replaceDigits(r):r},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):_m(e),this.getMonth=(e,t)=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):Km(e,this.options),this.getYear=(e,t)=>this.overrides?.getYear?this.overrides.getYear(e,this.options):qm(e,this.options),this.getWeek=(e,t)=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):bm(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):Jm(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):Ym(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):Gp(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):Wp(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):Xm(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):Zm(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):Hp(e),this.min=e=>this.overrides?.min?this.overrides.min(e):Up(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):vh(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):yh(e,t),this.startOfBroadcastWeek=(e,t)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):Lh(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):Lp(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):Np(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):Zp(e),this.startOfWeek=(e,t)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):Mp(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):$p(e),this.options={locale:zh,...e},this.overrides=t}getDigitMap(){let{numerals:e=`latn`}=this.options,t=new Intl.NumberFormat(`en-US`,{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){let t=this.getDigitMap();return e.replace(/\d/g,e=>t[e]||e)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){let t=this.options.locale?.code;return t&&e.yearFirstLocales.has(t)?`year-first`:`month-first`}formatMonthYear(t){let{locale:n,timeZone:r,numerals:i}=this.options,a=n?.code;if(a&&e.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:`long`,year:`numeric`,timeZone:r,numberingSystem:i}).format(t)}catch{}let o=this.getMonthYearOrder()===`year-first`?`y LLLL`:`LLLL y`;return this.format(t,o)}};Bh.yearFirstLocales=new Set([`eu`,`hu`,`ja`,`ja-Hira`,`ja-JP`,`ko`,`ko-KR`,`lt`,`lt-LT`,`lv`,`lv-LV`,`mn`,`mn-MN`,`zh`,`zh-CN`,`zh-HK`,`zh-TW`]);var Vh=new Bh,Hh=class{constructor(e,t,n=Vh){this.date=e,this.displayMonth=t,this.outside=!(!t||n.isSameMonth(e,t)),this.dateLib=n,this.isoDate=n.format(e,`yyyy-MM-dd`),this.displayMonthId=n.format(t,`yyyy-MM`),this.dateMonthId=n.format(e,`yyyy-MM`)}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}},Uh=class{constructor(e,t){this.date=e,this.weeks=t}},Wh=class{constructor(e,t){this.days=t,this.weekNumber=e}};function Gh(e){return M.createElement(`button`,{...e})}function Kh(e){return M.createElement(`span`,{...e})}function qh(e){let{size:t=24,orientation:n=`left`,className:r}=e;return M.createElement(`svg`,{className:r,width:t,height:t,viewBox:`0 0 24 24`},n===`up`&&M.createElement(`polygon`,{points:`6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28`}),n===`down`&&M.createElement(`polygon`,{points:`6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72`}),n===`left`&&M.createElement(`polygon`,{points:`16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20`}),n===`right`&&M.createElement(`polygon`,{points:`8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20`}))}function Jh(e){let{day:t,modifiers:n,...r}=e;return M.createElement(`td`,{...r})}function Yh(e){let{day:t,modifiers:n,...r}=e,i=M.useRef(null);return M.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),M.createElement(`button`,{ref:i,...r})}var $;(function(e){e.Root=`root`,e.Chevron=`chevron`,e.Day=`day`,e.DayButton=`day_button`,e.CaptionLabel=`caption_label`,e.Dropdowns=`dropdowns`,e.Dropdown=`dropdown`,e.DropdownRoot=`dropdown_root`,e.Footer=`footer`,e.MonthGrid=`month_grid`,e.MonthCaption=`month_caption`,e.MonthsDropdown=`months_dropdown`,e.Month=`month`,e.Months=`months`,e.Nav=`nav`,e.NextMonthButton=`button_next`,e.PreviousMonthButton=`button_previous`,e.Week=`week`,e.Weeks=`weeks`,e.Weekday=`weekday`,e.Weekdays=`weekdays`,e.WeekNumber=`week_number`,e.WeekNumberHeader=`week_number_header`,e.YearsDropdown=`years_dropdown`})($||={});var Xh;(function(e){e.disabled=`disabled`,e.hidden=`hidden`,e.outside=`outside`,e.focused=`focused`,e.today=`today`})(Xh||={});var Zh;(function(e){e.range_end=`range_end`,e.range_middle=`range_middle`,e.range_start=`range_start`,e.selected=`selected`})(Zh||={});var Qh;(function(e){e.weeks_before_enter=`weeks_before_enter`,e.weeks_before_exit=`weeks_before_exit`,e.weeks_after_enter=`weeks_after_enter`,e.weeks_after_exit=`weeks_after_exit`,e.caption_after_enter=`caption_after_enter`,e.caption_after_exit=`caption_after_exit`,e.caption_before_enter=`caption_before_enter`,e.caption_before_exit=`caption_before_exit`})(Qh||={});function $h(e){let{options:t,className:n,components:r,classNames:i,...a}=e,o=[i[$.Dropdown],n].join(` `),s=t?.find(({value:e})=>e===a.value);return M.createElement(`span`,{"data-disabled":a.disabled,className:i[$.DropdownRoot]},M.createElement(r.Select,{className:o,...a},t?.map(({value:e,label:t,disabled:n})=>M.createElement(r.Option,{key:e,value:e,disabled:n},t))),M.createElement(`span`,{className:i[$.CaptionLabel],"aria-hidden":!0},s?.label,M.createElement(r.Chevron,{orientation:`down`,size:18,className:i[$.Chevron]})))}function eg(e){return M.createElement(`div`,{...e})}function tg(e){return M.createElement(`div`,{...e})}function ng(e){let{calendarMonth:t,displayIndex:n,...r}=e;return M.createElement(`div`,{...r},e.children)}function rg(e){let{calendarMonth:t,displayIndex:n,...r}=e;return M.createElement(`div`,{...r})}function ig(e){return M.createElement(`table`,{...e})}function ag(e){return M.createElement(`div`,{...e})}var og=(0,M.createContext)(void 0);function sg(){let e=(0,M.useContext)(og);if(e===void 0)throw Error(`useDayPicker() must be used within a custom component.`);return e}function cg(e){let{components:t}=sg();return M.createElement(t.Dropdown,{...e})}function lg(e){let{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:i,...a}=e,{components:o,classNames:s,labels:{labelPrevious:c,labelNext:l}}=sg(),u=(0,M.useCallback)(e=>{i&&n?.(e)},[i,n]),d=(0,M.useCallback)(e=>{r&&t?.(e)},[r,t]);return M.createElement(`nav`,{...a},M.createElement(o.PreviousMonthButton,{type:`button`,className:s[$.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":!r||void 0,"aria-label":c(r),onClick:d},M.createElement(o.Chevron,{disabled:!r||void 0,className:s[$.Chevron],orientation:`left`})),M.createElement(o.NextMonthButton,{type:`button`,className:s[$.NextMonthButton],tabIndex:i?void 0:-1,"aria-disabled":!i||void 0,"aria-label":l(i),onClick:u},M.createElement(o.Chevron,{disabled:!i||void 0,orientation:`right`,className:s[$.Chevron]})))}function ug(e){let{components:t}=sg();return M.createElement(t.Button,{...e})}function dg(e){return M.createElement(`option`,{...e})}function fg(e){let{components:t}=sg();return M.createElement(t.Button,{...e})}function pg(e){let{rootRef:t,...n}=e;return M.createElement(`div`,{...n,ref:t})}function mg(e){return M.createElement(`select`,{...e})}function hg(e){let{week:t,...n}=e;return M.createElement(`tr`,{...n})}function gg(e){return M.createElement(`th`,{...e})}function _g(e){return M.createElement(`thead`,{"aria-hidden":!0},M.createElement(`tr`,{...e}))}function vg(e){let{week:t,...n}=e;return M.createElement(`th`,{...n})}function yg(e){return M.createElement(`th`,{...e})}function bg(e){return M.createElement(`tbody`,{...e})}function xg(e){let{components:t}=sg();return M.createElement(t.Dropdown,{...e})}var Sg=e({Button:()=>Gh,CaptionLabel:()=>Kh,Chevron:()=>qh,Day:()=>Jh,DayButton:()=>Yh,Dropdown:()=>$h,DropdownNav:()=>eg,Footer:()=>tg,Month:()=>ng,MonthCaption:()=>rg,MonthGrid:()=>ig,Months:()=>ag,MonthsDropdown:()=>cg,Nav:()=>lg,NextMonthButton:()=>ug,Option:()=>dg,PreviousMonthButton:()=>fg,Root:()=>pg,Select:()=>mg,Week:()=>hg,WeekNumber:()=>vg,WeekNumberHeader:()=>yg,Weekday:()=>gg,Weekdays:()=>_g,Weeks:()=>bg,YearsDropdown:()=>xg});function Cg(e,t,n=!1,r=Vh){let{from:i,to:a}=e,{differenceInCalendarDays:o,isSameDay:s}=r;return i&&a?(o(a,i)<0&&([i,a]=[a,i]),o(t,i)>=+!!n&&o(a,t)>=+!!n):!n&&a?s(a,t):!n&&i?s(i,t):!1}function wg(e){return!!(e&&typeof e==`object`&&`before`in e&&`after`in e)}function Tg(e){return!!(e&&typeof e==`object`&&`from`in e)}function Eg(e){return!!(e&&typeof e==`object`&&`after`in e)}function Dg(e){return!!(e&&typeof e==`object`&&`before`in e)}function Og(e){return!!(e&&typeof e==`object`&&`dayOfWeek`in e)}function kg(e,t){return Array.isArray(e)&&e.every(t.isDate)}function Ag(e,t,n=Vh){let r=Array.isArray(t)?t:[t],{isSameDay:i,differenceInCalendarDays:a,isAfter:o}=n;return r.some(t=>{if(typeof t==`boolean`)return t;if(n.isDate(t))return i(e,t);if(kg(t,n))return t.some(t=>i(e,t));if(Tg(t))return Cg(t,e,!1,n);if(Og(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(wg(t)){let n=a(t.before,e),r=a(t.after,e),i=n>0,s=r<0;return o(t.before,t.after)?s&&i:i||s}return Eg(t)?a(e,t.after)>0:Dg(t)?a(t.before,e)>0:typeof t==`function`&&t(e)})}function jg(e,t,n,r,i){let{disabled:a,hidden:o,modifiers:s,showOutsideDays:c,broadcastCalendar:l,today:u=i.today()}=t,{isSameDay:d,isSameMonth:f,startOfMonth:p,isBefore:m,endOfMonth:h,isAfter:g}=i,_=n&&p(n),v=r&&h(r),y={[Xh.focused]:[],[Xh.outside]:[],[Xh.disabled]:[],[Xh.hidden]:[],[Xh.today]:[]},b={};for(let t of e){let{date:e,displayMonth:n}=t,r=!(!n||f(e,n)),p=!!(_&&m(e,_)),h=!!(v&&g(e,v)),x=!!(a&&Ag(e,a,i)),S=!!(o&&Ag(e,o,i))||p||h||!l&&!c&&r||l&&c===!1&&r,C=d(e,u);r&&y.outside.push(t),x&&y.disabled.push(t),S&&y.hidden.push(t),C&&y.today.push(t),s&&Object.keys(s).forEach(n=>{let r=s?.[n];r&&Ag(e,r,i)&&(b[n]?b[n].push(t):b[n]=[t])})}return e=>{let t={[Xh.focused]:!1,[Xh.disabled]:!1,[Xh.hidden]:!1,[Xh.outside]:!1,[Xh.today]:!1},n={};for(let n in y)t[n]=y[n].some(t=>t===e);for(let t in b)n[t]=b[t].some(t=>t===e);return{...t,...n}}}function Mg(e,t,n={}){return Object.entries(e).filter(([,e])=>e===!0).reduce((e,[r])=>(n[r]?e.push(n[r]):t[Xh[r]]?e.push(t[Xh[r]]):t[Zh[r]]&&e.push(t[Zh[r]]),e),[t[$.Day]])}function Ng(e){return{...Sg,...e}}function Pg(e){let t={"data-mode":e.mode??void 0,"data-required":`required`in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([e,n])=>{e.startsWith(`data-`)&&(t[e]=n)}),t}function Fg(){let e={};for(let t in $)e[$[t]]=`rdp-${$[t]}`;for(let t in Xh)e[Xh[t]]=`rdp-${Xh[t]}`;for(let t in Zh)e[Zh[t]]=`rdp-${Zh[t]}`;for(let t in Qh)e[Qh[t]]=`rdp-${Qh[t]}`;return e}function Ig(e,t,n){return(n??new Bh(t)).formatMonthYear(e)}var Lg=Ig;function Rg(e,t,n){return(n??new Bh(t)).format(e,`d`)}function zg(e,t=Vh){return t.format(e,`LLLL`)}function Bg(e,t,n){return(n??new Bh(t)).format(e,`cccccc`)}function Vg(e,t=Vh){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function Hg(){return``}function Ug(e,t=Vh){return t.format(e,`yyyy`)}var Wg=Ug,Gg=e({formatCaption:()=>Ig,formatDay:()=>Rg,formatMonthCaption:()=>Lg,formatMonthDropdown:()=>zg,formatWeekNumber:()=>Vg,formatWeekNumberHeader:()=>Hg,formatWeekdayName:()=>Bg,formatYearCaption:()=>Wg,formatYearDropdown:()=>Ug});function Kg(e){return e?.formatMonthCaption&&!e.formatCaption&&(e.formatCaption=e.formatMonthCaption),e?.formatYearCaption&&!e.formatYearDropdown&&(e.formatYearDropdown=e.formatYearCaption),{...Gg,...e}}function qg(e,t,n,r){let i=(r??new Bh(n)).format(e,`PPPP`);return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i}var Jg=qg;function Yg(e,t,n){return(n??new Bh(t)).formatMonthYear(e)}var Xg=Yg;function Zg(e,t,n,r){let i=(r??new Bh(n)).format(e,`PPPP`);return t?.today&&(i=`Today, ${i}`),i}function Qg(e){return`Choose the Month`}function $g(){return``}var e_=`Go to the Next Month`;function t_(e,t){return e_}function n_(e){return`Go to the Previous Month`}function r_(e,t,n){return(n??new Bh(t)).format(e,`cccc`)}function i_(e,t){return`Week ${e}`}function a_(e){return`Week Number`}function o_(e){return`Choose the Year`}var s_=e({labelCaption:()=>Xg,labelDay:()=>Jg,labelDayButton:()=>qg,labelGrid:()=>Yg,labelGridcell:()=>Zg,labelMonthDropdown:()=>Qg,labelNav:()=>$g,labelNext:()=>t_,labelPrevious:()=>n_,labelWeekNumber:()=>i_,labelWeekNumberHeader:()=>a_,labelWeekday:()=>r_,labelYearDropdown:()=>o_}),c_=(e,t,n)=>t||(n?typeof n==`function`?n:(...e)=>n:e);function l_(e,t){let n=t.locale?.labels??{};return{...s_,...e??{},labelDayButton:c_(qg,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:c_(Qg,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:c_(t_,e?.labelNext,n.labelNext),labelPrevious:c_(n_,e?.labelPrevious,n.labelPrevious),labelWeekNumber:c_(i_,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:c_(o_,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:c_(Yg,e?.labelGrid,n.labelGrid),labelGridcell:c_(Zg,e?.labelGridcell,n.labelGridcell),labelNav:c_($g,e?.labelNav,n.labelNav),labelWeekNumberHeader:c_(a_,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:c_(r_,e?.labelWeekday,n.labelWeekday)}}function u_(e,t,n,r,i){let{startOfMonth:a,startOfYear:o,endOfYear:s,eachMonthOfInterval:c,getMonth:l}=i;return c({start:o(e),end:s(e)}).map(e=>{let o=r.formatMonthDropdown(e,i);return{value:l(e),label:o,disabled:t&&e<a(t)||n&&e>a(n)||!1}})}function d_(e,t={},n={}){let r={...t?.[$.Day]};return Object.entries(e).filter(([,e])=>e===!0).forEach(([e])=>{r={...r,...n?.[e]}}),r}function f_(e,t,n,r){let i=r??e.today(),a=n?e.startOfBroadcastWeek(i,e):t?e.startOfISOWeek(i):e.startOfWeek(i),o=[];for(let t=0;t<7;t++){let n=e.addDays(a,t);o.push(n)}return o}function p_(e,t,n,r,i=!1){if(!e||!t)return;let{startOfYear:a,endOfYear:o,eachYearOfInterval:s,getYear:c}=r,l=s({start:a(e),end:o(t)});return i&&l.reverse(),l.map(e=>{let t=n.formatYearDropdown(e,r);return{value:c(e),label:t,disabled:!1}})}function m_(e,t={}){let{weekStartsOn:n,locale:r}=t,i=n??r?.options?.weekStartsOn??0,a=t=>{let n=typeof t==`number`||typeof t==`string`?new Date(t):t;return new Nh(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0,e)},o=e=>{let t=a(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)};return{today:()=>a(Nh.tz(e)),newDate:(t,n,r)=>new Nh(t,n,r,12,0,0,e),startOfDay:e=>a(e),startOfWeek:(e,t)=>{let n=a(e),r=t?.weekStartsOn??i,o=(n.getDay()-r+7)%7;return n.setDate(n.getDate()-o),n},startOfISOWeek:e=>{let t=a(e),n=(t.getDay()-1+7)%7;return t.setDate(t.getDate()-n),t},startOfMonth:e=>{let t=a(e);return t.setDate(1),t},startOfYear:e=>{let t=a(e);return t.setMonth(0,1),t},endOfWeek:(e,t)=>{let n=a(e),r=(((t?.weekStartsOn??i)+6)%7-n.getDay()+7)%7;return n.setDate(n.getDate()+r),n},endOfISOWeek:e=>{let t=a(e),n=(7-t.getDay())%7;return t.setDate(t.getDate()+n),t},endOfMonth:e=>{let t=a(e);return t.setMonth(t.getMonth()+1,0),t},endOfYear:e=>{let t=a(e);return t.setMonth(11,31),t},eachMonthOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new Nh(n.getFullYear(),n.getMonth(),1,12,0,0,e),s=r.getFullYear()*12+r.getMonth();for(;o.getFullYear()*12+o.getMonth()<=s;)i.push(new Nh(o,e)),o.setMonth(o.getMonth()+1,1);return i},addDays:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t),n},addWeeks:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t*7),n},addMonths:(e,t)=>{let n=a(e);return n.setMonth(n.getMonth()+t),n},addYears:(e,t)=>{let n=a(e);return n.setFullYear(n.getFullYear()+t),n},eachYearOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new Nh(n.getFullYear(),0,1,12,0,0,e);for(;o.getFullYear()<=r.getFullYear();)i.push(new Nh(o,e)),o.setFullYear(o.getFullYear()+1,0,1);return i},getWeek:(e,t)=>bm(o(e),{weekStartsOn:t?.weekStartsOn??i,firstWeekContainsDate:t?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1}),getISOWeek:e=>_m(o(e)),differenceInCalendarDays:(e,t)=>Rp(o(e),o(t)),differenceInCalendarMonths:(e,t)=>qp(o(e),o(t))}}var h_=e=>e instanceof HTMLElement?e:null,g_=e=>[...e.querySelectorAll(`[data-animated-month]`)??[]],__=e=>h_(e.querySelector(`[data-animated-month]`)),v_=e=>h_(e.querySelector(`[data-animated-caption]`)),y_=e=>h_(e.querySelector(`[data-animated-weeks]`)),b_=e=>h_(e.querySelector(`[data-animated-nav]`)),x_=e=>h_(e.querySelector(`[data-animated-weekdays]`));function S_(e,t,{classNames:n,months:r,focused:i,dateLib:a}){let o=(0,M.useRef)(null),s=(0,M.useRef)(r),c=(0,M.useRef)(!1);(0,M.useLayoutEffect)(()=>{let l=s.current;if(s.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||l.length===0||r.length!==l.length)return;let u=a.isSameMonth(r[0].date,l[0].date),d=a.isAfter(r[0].date,l[0].date),f=d?n[Qh.caption_after_enter]:n[Qh.caption_before_enter],p=d?n[Qh.weeks_after_enter]:n[Qh.weeks_before_enter],m=o.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement?(g_(h).forEach(e=>{if(!(e instanceof HTMLElement))return;let t=__(e);t&&e.contains(t)&&e.removeChild(t);let n=v_(e);n&&n.classList.remove(f);let r=y_(e);r&&r.classList.remove(p)}),o.current=h):o.current=null,c.current||u||i)return;let g=m instanceof HTMLElement?g_(m):[],_=g_(e.current);if(_?.every(e=>e instanceof HTMLElement)&&g&&g.every(e=>e instanceof HTMLElement)){c.current=!0;let t=[];e.current.style.isolation=`isolate`;let r=b_(e.current);r&&(r.style.zIndex=`1`),_.forEach((i,a)=>{let o=g[a];if(!o)return;i.style.position=`relative`,i.style.overflow=`hidden`;let s=v_(i);s&&s.classList.add(f);let l=y_(i);l&&l.classList.add(p);let u=()=>{c.current=!1,e.current&&(e.current.style.isolation=``),r&&(r.style.zIndex=``),s&&s.classList.remove(f),l&&l.classList.remove(p),i.style.position=``,i.style.overflow=``,i.contains(o)&&i.removeChild(o)};t.push(u),o.style.pointerEvents=`none`,o.style.position=`absolute`,o.style.overflow=`hidden`,o.setAttribute(`aria-hidden`,`true`);let m=x_(o);m&&(m.style.opacity=`0`);let h=v_(o);h&&(h.classList.add(d?n[Qh.caption_before_exit]:n[Qh.caption_after_exit]),h.addEventListener(`animationend`,u));let _=y_(o);_&&_.classList.add(d?n[Qh.weeks_before_exit]:n[Qh.weeks_after_exit]),i.insertBefore(o,i.firstChild)})}})}function C_(e,t,n,r){let i=e[0],a=e[e.length-1],{ISOWeek:o,fixedWeeks:s,broadcastCalendar:c}=n??{},{addDays:l,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:p,endOfMonth:m,endOfWeek:h,isAfter:g,startOfBroadcastWeek:_,startOfISOWeek:v,startOfWeek:y}=r,b=c?_(i,r):o?v(i):y(i),x=c?f(a):o?p(m(a)):h(m(a)),S=t&&(c?f(t):o?p(t):h(t)),C=u(S&&g(x,S)?S:x,b),w=d(a,i)+1,T=[];for(let e=0;e<=C;e++){let t=l(b,e);T.push(t)}let ee=(c?35:42)*w;if(s&&T.length<ee){let e=ee-T.length;for(let t=0;t<e;t++){let e=l(T[T.length-1],1);T.push(e)}}return T}function w_(e){let t=[];return e.reduce((e,n)=>{let r=n.weeks.reduce((e,t)=>e.concat(t.days.slice()),t.slice());return e.concat(r.slice())},t.slice())}function T_(e,t,n,r){let{numberOfMonths:i=1}=n,a=[];for(let n=0;n<i;n++){let i=r.addMonths(e,n);if(t&&i>t)break;a.push(i)}return a}function E_(e,t,n,r){let{month:i,defaultMonth:a,today:o=r.today(),numberOfMonths:s=1}=e,c=i||a||o,{differenceInCalendarMonths:l,addMonths:u,startOfMonth:d}=r;return n&&l(n,c)<s-1&&(c=u(n,-1*(s-1))),t&&l(c,t)<0&&(c=t),d(c)}function D_(e,t,n,r){let{addDays:i,endOfBroadcastWeek:a,endOfISOWeek:o,endOfMonth:s,endOfWeek:c,getISOWeek:l,getWeek:u,startOfBroadcastWeek:d,startOfISOWeek:f,startOfWeek:p}=r,m=e.reduce((e,m)=>{let h=n.broadcastCalendar?d(m,r):n.ISOWeek?f(m):p(m),g=n.broadcastCalendar?a(m):n.ISOWeek?o(s(m)):c(s(m)),_=t.filter(e=>e>=h&&e<=g),v=n.broadcastCalendar?35:42;if(n.fixedWeeks&&_.length<v){let e=t.filter(e=>{let t=v-_.length;return e>g&&e<=i(g,t)});_.push(...e)}let y=new Uh(m,_.reduce((e,t)=>{let i=n.ISOWeek?l(t):u(t),a=e.find(e=>e.weekNumber===i),o=new Hh(t,m,r);return a?a.days.push(o):e.push(new Wh(i,[o])),e},[]));return e.push(y),e},[]);return n.reverseMonths?m.reverse():m}function O_(e,t){let{startMonth:n,endMonth:r}=e,{startOfYear:i,startOfDay:a,startOfMonth:o,endOfMonth:s,addYears:c,endOfYear:l,newDate:u,today:d}=t,{fromYear:f,toYear:p,fromMonth:m,toMonth:h}=e;!n&&m&&(n=m),!n&&f&&(n=t.newDate(f,0,1)),!r&&h&&(r=h),!r&&p&&(r=u(p,11,31));let g=e.captionLayout===`dropdown`||e.captionLayout===`dropdown-years`;return n?n=o(n):f?n=u(f,0,1):!n&&g&&(n=i(c(e.today??d(),-100))),r?r=s(r):p?r=u(p,11,31):!r&&g&&(r=l(e.today??d())),[n&&a(n),r&&a(r)]}function k_(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a=1}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:c}=r,l=i?a:1,u=o(e);if(!t||!(c(t,e)<a))return s(u,l)}function A_(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:c}=r,l=i?a??1:1,u=o(e);if(!t||!(c(u,t)<=0))return s(u,-l)}function j_(e){return e.reduce((e,t)=>e.concat(t.weeks.slice()),[].slice())}function M_(e,t){let[n,r]=(0,M.useState)(e);return[t===void 0?n:t,r]}function N_(e,t){let[n,r]=O_(e,t),{startOfMonth:i,endOfMonth:a}=t,o=E_(e,n,r,t),[s,c]=M_(o,e.month?o:void 0);(0,M.useEffect)(()=>{let i=E_(e,n,r,t);c(i)},[e.timeZone]);let{months:l,weeks:u,days:d,previousMonth:f,nextMonth:p}=(0,M.useMemo)(()=>{let i=T_(s,r,{numberOfMonths:e.numberOfMonths},t),o=D_(i,C_(i,e.endMonth?a(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t);return{months:o,weeks:j_(o),days:w_(o),previousMonth:A_(s,n,e,t),nextMonth:k_(s,r,e,t)}},[t,s.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:m,onMonthChange:h}=e,g=e=>u.some(t=>t.days.some(t=>t.isEqualTo(e))),_=e=>{if(m)return;let t=i(e);n&&t<i(n)&&(t=i(n)),r&&t>i(r)&&(t=i(r)),c(t),h?.(t)};return{months:l,weeks:u,days:d,navStart:n,navEnd:r,previousMonth:f,nextMonth:p,goToMonth:_,goToDay:e=>{g(e)||_(e.date)}}}var P_;(function(e){e[e.Today=0]=`Today`,e[e.Selected=1]=`Selected`,e[e.LastFocused=2]=`LastFocused`,e[e.FocusedModifier=3]=`FocusedModifier`})(P_||={});function F_(e){return!e[Xh.disabled]&&!e[Xh.hidden]&&!e[Xh.outside]}function I_(e,t,n,r){let i,a=-1;for(let o of e){let e=t(o);F_(e)&&(e[Xh.focused]&&a<P_.FocusedModifier?(i=o,a=P_.FocusedModifier):r?.isEqualTo(o)&&a<P_.LastFocused?(i=o,a=P_.LastFocused):n(o.date)&&a<P_.Selected?(i=o,a=P_.Selected):e[Xh.today]&&a<P_.Today&&(i=o,a=P_.Today))}return i||=e.find(e=>F_(t(e))),i}function L_(e,t,n,r,i,a,o){let{ISOWeek:s,broadcastCalendar:c}=a,{addDays:l,addMonths:u,addWeeks:d,addYears:f,endOfBroadcastWeek:p,endOfISOWeek:m,endOfWeek:h,max:g,min:_,startOfBroadcastWeek:v,startOfISOWeek:y,startOfWeek:b}=o,x={day:l,week:d,month:u,year:f,startOfWeek:e=>c?v(e,o):s?y(e):b(e),endOfWeek:e=>c?p(e):s?m(e):h(e)}[e](n,t===`after`?1:-1);return t===`before`&&r?x=g([r,x]):t===`after`&&i&&(x=_([i,x])),x}function R_(e,t,n,r,i,a,o,s=0){if(s>365)return;let c=L_(e,t,n.date,r,i,a,o),l=!!(a.disabled&&Ag(c,a.disabled,o)),u=!!(a.hidden&&Ag(c,a.hidden,o)),d=new Hh(c,c,o);return!l&&!u?d:R_(e,t,d,r,i,a,o,s+1)}function z_(e,t,n,r,i){let{autoFocus:a}=e,[o,s]=(0,M.useState)(),c=I_(t.days,n,r||(()=>!1),o),[l,u]=(0,M.useState)(a?c:void 0);return{isFocusTarget:e=>!!c?.isEqualTo(e),setFocused:u,focused:l,blur:()=>{s(l),u(void 0)},moveFocus:(n,r)=>{if(!l)return;let a=R_(n,r,l,t.navStart,t.navEnd,e,i);a&&(!e.disableNavigation||t.days.some(e=>e.isEqualTo(a)))&&(t.goToDay(a),u(a))}}}function B_(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=M_(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t,l=e=>s?.some(t=>c(t,e))??!1,{min:u,max:d}=e;return{selected:s,select:(e,t,n)=>{let a=[...s??[]];if(l(e)){if(s?.length===u||r&&s?.length===1)return;a=s?.filter(t=>!c(t,e))}else a=s?.length===d?[e]:[...a,e];return i||o(a),i?.(a,e,t,n),a},isSelected:l}}function V_(e,t,n=0,r=0,i=!1,a=Vh){let{from:o,to:s}=t||{},{isSameDay:c,isAfter:l,isBefore:u}=a,d;if(!o&&!s)d={from:e,to:n>0?void 0:e};else if(o&&!s)d=c(o,e)?n===0?{from:o,to:e}:i?{from:o,to:void 0}:void 0:u(e,o)?{from:e,to:o}:{from:o,to:e};else if(o&&s){if(c(o,e)&&c(s,e))d=i?{from:o,to:s}:void 0;else if(c(o,e))d={from:o,to:n>0?void 0:e};else if(c(s,e))d={from:e,to:n>0?void 0:e};else if(u(e,o))d={from:e,to:s};else if(l(e,o))d={from:o,to:e};else if(l(e,s))d={from:o,to:e};else throw Error(`Invalid range`)}if(d?.from&&d?.to){let t=a.differenceInCalendarDays(d.to,d.from);(r>0&&t>r||n>1&&t<n)&&(d={from:e,to:void 0})}return d}function H_(e,t,n=Vh){let r=Array.isArray(t)?t:[t],i=e.from,a=n.differenceInCalendarDays(e.to,e.from),o=Math.min(a,6);for(let e=0;e<=o;e++){if(r.includes(i.getDay()))return!0;i=n.addDays(i,1)}return!1}function U_(e,t,n=Vh){return Cg(e,t.from,!1,n)||Cg(e,t.to,!1,n)||Cg(t,e.from,!1,n)||Cg(t,e.to,!1,n)}function W_(e,t,n=Vh){let r=Array.isArray(t)?t:[t];if(r.filter(e=>typeof e!=`function`).some(t=>typeof t==`boolean`?t:n.isDate(t)?Cg(e,t,!1,n):kg(t,n)?t.some(t=>Cg(e,t,!1,n)):Tg(t)?t.from&&t.to?U_(e,{from:t.from,to:t.to},n):!1:Og(t)?H_(e,t.dayOfWeek,n):wg(t)?n.isAfter(t.before,t.after)?U_(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):Ag(e.from,t,n)||Ag(e.to,t,n):Eg(t)||Dg(t)?Ag(e.from,t,n)||Ag(e.to,t,n):!1))return!0;let i=r.filter(e=>typeof e==`function`);if(i.length){let t=e.from,r=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=r;e++){if(i.some(e=>e(t)))return!0;t=n.addDays(t,1)}}return!1}function G_(e,t){let{disabled:n,excludeDisabled:r,resetOnSelect:i,selected:a,required:o,onSelect:s}=e,[c,l]=M_(a,s?a:void 0),u=s?a:c;return{selected:u,select:(a,c,d)=>{let{min:f,max:p}=e,m;if(a){let e=u?.from,n=u?.to,r=!!e&&!!n,s=!!e&&!!n&&t.isSameDay(e,n)&&t.isSameDay(a,e);m=i&&(r||!u?.from)?!o&&s?void 0:{from:a,to:void 0}:V_(a,u,f,p,o,t)}return r&&n&&m?.from&&m.to&&W_({from:m.from,to:m.to},n,t)&&(m.from=a,m.to=void 0),s||l(m),s?.(m,a,c,d),m},isSelected:e=>u&&Cg(u,e,!1,t)}}function K_(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=M_(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t;return{selected:s,select:(e,t,n)=>{let a=e;return!r&&s&&s&&c(e,s)&&(a=void 0),i||o(a),i?.(a,e,t,n),a},isSelected:e=>s?c(s,e):!1}}function q_(e,t){let n=K_(e,t),r=B_(e,t),i=G_(e,t);switch(e.mode){case`single`:return n;case`multiple`:return r;case`range`:return i;default:return}}function J_(e,t){return e instanceof Nh&&e.timeZone===t?e:new Nh(e,t)}function Y_(e,t,n){if(!n)return J_(e,t);let r=J_(e,t),i=new Nh(r.getFullYear(),r.getMonth(),r.getDate(),12,0,0,t);return new Date(i.getTime())}function X_(e,t,n){return typeof e==`boolean`||typeof e==`function`?e:e instanceof Date?Y_(e,t,n):Array.isArray(e)?e.map(e=>e instanceof Date?Y_(e,t,n):e):Tg(e)?{...e,from:e.from?J_(e.from,t):e.from,to:e.to?J_(e.to,t):e.to}:wg(e)?{before:Y_(e.before,t,n),after:Y_(e.after,t,n)}:Eg(e)?{after:Y_(e.after,t,n)}:Dg(e)?{before:Y_(e.before,t,n)}:e}function Z_(e,t,n){return e&&(Array.isArray(e)?e.map(e=>X_(e,t,n)):X_(e,t,n))}function Q_(e){let t=e,n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=J_(t.today,n)),t.month&&(t.month=J_(t.month,n)),t.defaultMonth&&(t.defaultMonth=J_(t.defaultMonth,n)),t.startMonth&&(t.startMonth=J_(t.startMonth,n)),t.endMonth&&(t.endMonth=J_(t.endMonth,n)),t.mode===`single`&&t.selected?t.selected=J_(t.selected,n):t.mode===`multiple`&&t.selected?t.selected=t.selected?.map(e=>J_(e,n)):t.mode===`range`&&t.selected&&(t.selected={from:t.selected.from?J_(t.selected.from,n):t.selected.from,to:t.selected.to?J_(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=Z_(t.disabled,n)),t.hidden!==void 0&&(t.hidden=Z_(t.hidden,n)),t.modifiers)){let e={};Object.keys(t.modifiers).forEach(r=>{e[r]=Z_(t.modifiers?.[r],n)}),t.modifiers=e}let{components:r,formatters:i,labels:a,dateLib:o,locale:s,classNames:c}=(0,M.useMemo)(()=>{let e={...zh,...t.locale},n=t.broadcastCalendar?1:t.weekStartsOn,r=t.noonSafe&&t.timeZone?m_(t.timeZone,{weekStartsOn:n,locale:e}):void 0,i=t.dateLib&&r?{...r,...t.dateLib}:t.dateLib??r,a=new Bh({locale:e,weekStartsOn:n,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},i);return{dateLib:a,components:Ng(t.components),formatters:Kg(t.formatters),labels:l_(t.labels,a.options),locale:e,classNames:{...Fg(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:o.today()});let{captionLayout:l,mode:u,navLayout:d,numberOfMonths:f=1,onDayBlur:p,onDayClick:m,onDayFocus:h,onDayKeyDown:g,onDayMouseEnter:_,onDayMouseLeave:v,onNextClick:y,onPrevClick:b,showWeekNumber:x,styles:S}=t,{formatCaption:C,formatDay:w,formatMonthDropdown:T,formatWeekNumber:ee,formatWeekNumberHeader:te,formatWeekdayName:ne,formatYearDropdown:re}=i,E=N_(t,o),{days:ie,months:ae,navStart:oe,navEnd:se,previousMonth:D,nextMonth:O,goToMonth:ce}=E,le=jg(ie,t,oe,se,o),{isSelected:ue,select:de,selected:k}=q_(t,o)??{},{blur:A,focused:fe,isFocusTarget:pe,moveFocus:j,setFocused:me}=z_(t,E,le,ue??(()=>!1),o),{labelDayButton:he,labelGridcell:ge,labelGrid:_e,labelMonthDropdown:ve,labelNav:ye,labelPrevious:be,labelNext:xe,labelWeekday:Se,labelWeekNumber:Ce,labelWeekNumberHeader:we,labelYearDropdown:Te}=a,Ee=(0,M.useMemo)(()=>f_(o,t.ISOWeek,t.broadcastCalendar,t.today),[o,t.ISOWeek,t.broadcastCalendar,t.today]),De=u!==void 0||m!==void 0,Oe=(0,M.useCallback)(()=>{D&&(ce(D),b?.(D))},[D,ce,b]),ke=(0,M.useCallback)(()=>{O&&(ce(O),y?.(O))},[ce,O,y]),Ae=(0,M.useCallback)((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),me(e),!t.disabled&&(de?.(e.date,t,n),m?.(e.date,t,n))},[de,m,me]),je=(0,M.useCallback)((e,t)=>n=>{me(e),h?.(e.date,t,n)},[h,me]),Me=(0,M.useCallback)((e,t)=>n=>{A(),p?.(e.date,t,n)},[A,p]),Ne=(0,M.useCallback)((e,n)=>r=>{let i={ArrowLeft:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`after`:`before`],ArrowRight:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`before`:`after`],ArrowDown:[r.shiftKey?`year`:`week`,`after`],ArrowUp:[r.shiftKey?`year`:`week`,`before`],PageUp:[r.shiftKey?`year`:`month`,`before`],PageDown:[r.shiftKey?`year`:`month`,`after`],Home:[`startOfWeek`,`before`],End:[`endOfWeek`,`after`]};if(i[r.key]){r.preventDefault(),r.stopPropagation();let[e,t]=i[r.key];j(e,t)}g?.(e.date,n,r)},[j,g,t.dir]),Pe=(0,M.useCallback)((e,t)=>n=>{_?.(e.date,t,n)},[_]),Fe=(0,M.useCallback)((e,t)=>n=>{v?.(e.date,t,n)},[v]),Ie=(0,M.useCallback)(e=>t=>{let n=Number(t.target.value),r=o.setMonth(o.startOfMonth(e),n);ce(r)},[o,ce]),Le=(0,M.useCallback)(e=>t=>{let n=Number(t.target.value),r=o.setYear(o.startOfMonth(e),n);ce(r)},[o,ce]),{className:Re,style:ze}=(0,M.useMemo)(()=>({className:[c[$.Root],t.className].filter(Boolean).join(` `),style:{...S?.[$.Root],...t.style}}),[c,t.className,t.style,S]),Be=Pg(t),Ve=(0,M.useRef)(null);S_(Ve,!!t.animate,{classNames:c,months:ae,focused:fe,dateLib:o});let He={dayPickerProps:t,selected:k,select:de,isSelected:ue,months:ae,nextMonth:O,previousMonth:D,goToMonth:ce,getModifiers:le,components:r,classNames:c,styles:S,labels:a,formatters:i};return M.createElement(og.Provider,{value:He},M.createElement(r.Root,{rootRef:t.animate?Ve:void 0,className:Re,style:ze,dir:t.dir,id:t.id,lang:t.lang??s.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t[`aria-label`],"aria-labelledby":t[`aria-labelledby`],...Be},M.createElement(r.Months,{className:c[$.Months],style:S?.[$.Months]},!t.hideNavigation&&!d&&M.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[$.Nav],style:S?.[$.Nav],"aria-label":ye(),onPreviousClick:Oe,onNextClick:ke,previousMonth:D,nextMonth:O}),ae.map((e,n)=>M.createElement(r.Month,{"data-animated-month":t.animate?`true`:void 0,className:c[$.Month],style:S?.[$.Month],key:n,displayIndex:n,calendarMonth:e},d===`around`&&!t.hideNavigation&&n===0&&M.createElement(r.PreviousMonthButton,{type:`button`,className:c[$.PreviousMonthButton],tabIndex:D?void 0:-1,"aria-disabled":!D||void 0,"aria-label":be(D),onClick:Oe,"data-animated-button":t.animate?`true`:void 0},M.createElement(r.Chevron,{disabled:!D||void 0,className:c[$.Chevron],orientation:t.dir===`rtl`?`right`:`left`})),M.createElement(r.MonthCaption,{"data-animated-caption":t.animate?`true`:void 0,className:c[$.MonthCaption],style:S?.[$.MonthCaption],calendarMonth:e,displayIndex:n},l?.startsWith(`dropdown`)?M.createElement(r.DropdownNav,{className:c[$.Dropdowns],style:S?.[$.Dropdowns]},(()=>{let n=l===`dropdown`||l===`dropdown-months`?M.createElement(r.MonthsDropdown,{key:`month`,className:c[$.MonthsDropdown],"aria-label":ve(),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:Ie(e.date),options:u_(e.date,oe,se,i,o),style:S?.[$.Dropdown],value:o.getMonth(e.date)}):M.createElement(`span`,{key:`month`},T(e.date,o)),a=l===`dropdown`||l===`dropdown-years`?M.createElement(r.YearsDropdown,{key:`year`,className:c[$.YearsDropdown],"aria-label":Te(o.options),classNames:c,components:r,disabled:!!t.disableNavigation,onChange:Le(e.date),options:p_(oe,se,i,o,!!t.reverseYears),style:S?.[$.Dropdown],value:o.getYear(e.date)}):M.createElement(`span`,{key:`year`},re(e.date,o));return o.getMonthYearOrder()===`year-first`?[a,n]:[n,a]})(),M.createElement(`span`,{role:`status`,"aria-live":`polite`,style:{border:0,clip:`rect(0 0 0 0)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`,wordWrap:`normal`}},C(e.date,o.options,o))):M.createElement(r.CaptionLabel,{className:c[$.CaptionLabel],role:`status`,"aria-live":`polite`},C(e.date,o.options,o))),d===`around`&&!t.hideNavigation&&n===f-1&&M.createElement(r.NextMonthButton,{type:`button`,className:c[$.NextMonthButton],tabIndex:O?void 0:-1,"aria-disabled":!O||void 0,"aria-label":xe(O),onClick:ke,"data-animated-button":t.animate?`true`:void 0},M.createElement(r.Chevron,{disabled:!O||void 0,className:c[$.Chevron],orientation:t.dir===`rtl`?`left`:`right`})),n===f-1&&d===`after`&&!t.hideNavigation&&M.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[$.Nav],style:S?.[$.Nav],"aria-label":ye(),onPreviousClick:Oe,onNextClick:ke,previousMonth:D,nextMonth:O}),M.createElement(r.MonthGrid,{role:`grid`,"aria-multiselectable":u===`multiple`||u===`range`,"aria-label":_e(e.date,o.options,o)||void 0,className:c[$.MonthGrid],style:S?.[$.MonthGrid]},!t.hideWeekdays&&M.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?`true`:void 0,className:c[$.Weekdays],style:S?.[$.Weekdays]},x&&M.createElement(r.WeekNumberHeader,{"aria-label":we(o.options),className:c[$.WeekNumberHeader],style:S?.[$.WeekNumberHeader],scope:`col`},te()),Ee.map(e=>M.createElement(r.Weekday,{"aria-label":Se(e,o.options,o),className:c[$.Weekday],key:String(e),style:S?.[$.Weekday],scope:`col`},ne(e,o.options,o)))),M.createElement(r.Weeks,{"data-animated-weeks":t.animate?`true`:void 0,className:c[$.Weeks],style:S?.[$.Weeks]},e.weeks.map(e=>M.createElement(r.Week,{className:c[$.Week],key:e.weekNumber,style:S?.[$.Week],week:e},x&&M.createElement(r.WeekNumber,{week:e,style:S?.[$.WeekNumber],"aria-label":Ce(e.weekNumber,{locale:s}),className:c[$.WeekNumber],scope:`row`,role:`rowheader`},ee(e.weekNumber,o)),e.days.map(e=>{let{date:n}=e,i=le(e);
77if(i[Xh.focused]=!i.hidden&&!!fe?.isEqualTo(e),i[Zh.selected]=ue?.(n)||i.selected,Tg(k)){let{from:e,to:t}=k;i[Zh.range_start]=!!(e&&t&&o.isSameDay(n,e)),i[Zh.range_end]=!!(e&&t&&o.isSameDay(n,t)),i[Zh.range_middle]=Cg(k,n,!0,o)}let a=d_(i,S,t.modifiersStyles),s=Mg(i,c,t.modifiersClassNames),l=!De&&!i.hidden?ge(n,i,o.options,o):void 0;return M.createElement(r.Day,{key:`${e.isoDate}_${e.displayMonthId}`,day:e,modifiers:i,className:s.join(` `),style:a,role:`gridcell`,"aria-selected":i.selected||void 0,"aria-label":l,"data-day":e.isoDate,"data-month":e.outside?e.dateMonthId:void 0,"data-selected":i.selected||void 0,"data-disabled":i.disabled||void 0,"data-hidden":i.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":i.focused||void 0,"data-today":i.today||void 0},!i.hidden&&De?M.createElement(r.DayButton,{className:c[$.DayButton],style:S?.[$.DayButton],type:`button`,day:e,modifiers:i,disabled:!i.focused&&i.disabled||void 0,"aria-disabled":i.focused&&i.disabled||void 0,tabIndex:pe(e)?0:-1,"aria-label":he(n,i,o.options,o),onClick:Ae(e,i),onBlur:Me(e,i),onFocus:je(e,i),onKeyDown:Ne(e,i),onMouseEnter:Pe(e,i),onMouseLeave:Fe(e,i)},w(n,o.options,o)):!i.hidden&&w(e.date,o.options,o))})))))))),t.footer&&M.createElement(r.Footer,{className:c[$.Footer],style:S?.[$.Footer],role:`status`,"aria-live":`polite`},t.footer)))}function $_({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r=`label`,buttonVariant:i=`ghost`,locale:a,formatters:o,components:s,...c}){let l=Fg();return(0,V.jsx)(Q_,{showOutsideDays:n,className:B(`group/calendar bg-background p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent`,String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:r,locale:a,formatters:{formatMonthDropdown:e=>e.toLocaleString(a?.code,{month:`short`}),...o},classNames:{root:B(`w-fit`,l.root),months:B(`relative flex flex-col gap-4 md:flex-row`,l.months),month:B(`flex w-full flex-col gap-4`,l.month),nav:B(`absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1`,l.nav),button_previous:B(Zo({variant:i}),`size-(--cell-size) p-0 select-none aria-disabled:opacity-50`,l.button_previous),button_next:B(Zo({variant:i}),`size-(--cell-size) p-0 select-none aria-disabled:opacity-50`,l.button_next),month_caption:B(`flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)`,l.month_caption),dropdowns:B(`flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium`,l.dropdowns),dropdown_root:B(`cn-calendar-dropdown-root relative rounded-(--cell-radius)`,l.dropdown_root),dropdown:B(`absolute inset-0 bg-popover opacity-0`,l.dropdown),caption_label:B(`font-medium select-none`,r===`label`?`cn-calendar-caption text-sm`:`cn-calendar-caption-label flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground`,l.caption_label),table:`w-full border-collapse`,weekdays:B(`flex`,l.weekdays),weekday:B(`flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal text-muted-foreground select-none`,l.weekday),week:B(`mt-2 flex w-full`,l.week),week_number_header:B(`w-(--cell-size) select-none`,l.week_number_header),week_number:B(`text-[0.8rem] text-muted-foreground select-none`,l.week_number),day:B(`group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-(--cell-radius)`,c.showWeekNumber?`[&:nth-child(2)[data-selected=true]_button]:rounded-l-(--cell-radius)`:`[&:first-child[data-selected=true]_button]:rounded-l-(--cell-radius)`,l.day),range_start:B(`relative isolate z-0 rounded-l-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:right-0 after:w-4 after:bg-muted`,l.range_start),range_middle:B(`rounded-none`,l.range_middle),range_end:B(`relative isolate z-0 rounded-r-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:left-0 after:w-4 after:bg-muted`,l.range_end),today:B(`rounded-(--cell-radius) bg-muted text-foreground data-[selected=true]:rounded-none`,l.today),outside:B(`text-muted-foreground aria-selected:text-muted-foreground`,l.outside),disabled:B(`text-muted-foreground opacity-50`,l.disabled),hidden:B(`invisible`,l.hidden),...t}
77,components:{Root:({className:e,rootRef:t,...n})=>(0,V.jsx)(`div`,{"data-slot":`calendar`,ref:t,className:B(e),...n}),Chevron:({className:e,orientation:t,...n})=>t===`left`?(0,V.jsx)(D,{className:B(`cn-rtl-flip size-4`,e),...n}):t===`right`?(0,V.jsx)(Je,{className:B(`cn-rtl-flip size-4`,e),...n}):(0,V.jsx)(xe,{className:B(`size-4`,e),...n}),DayButton:({...e})=>(0,V.jsx)(ev,{locale:a,...e}),WeekNumber:({children:e,...t})=>(0,V.jsx)(`td`,{...t,children:(0,V.jsx)(`div`,{className:`flex size-(--cell-size) items-center justify-center text-center`,children:e})}),...s},...c})}function ev({className:e,day:t,modifiers:n,locale:r,...i}){let a=Fg(),o=M.useRef(null);return M.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),(0,V.jsx)(H,{ref:o,variant:`ghost`,size:`icon`,"data-day":t.date.toLocaleDateString(r?.code),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:B(`relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-r-(--cell-radius) data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-l-(--cell-radius) data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-foreground [&>span]:text-xs [&>span]:opacity-70`,a.day,e),...i})}function tv({...e}){return(0,V.jsx)(ct,{"data-slot":`popover`,...e})}function nv({...e}){return(0,V.jsx)(lt,{"data-slot":`popover-trigger`,...e})}function rv({className:e,align:t=`center`,sideOffset:n=4,...r}){return(0,V.jsx)(Lt,{children:(0,V.jsx)(Xe,{"data-slot":`popover-content`,align:t,sideOffset:n,className:B(`bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden`,e),...r})})}function iv({className:e,...t}){return(0,V.jsx)(Ot,{"data-slot":`switch`,className:B(`peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50`,e),...t,children:(0,V.jsx)(jt,{"data-slot":`switch-thumb`,className:B(`bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0`)})})}function av(){let{userId:e}=zr(),t=e??``,{balanceLoading:n,isAdmin:r}=bc(),[i,a]=(0,M.useState)(null),[o,s]=(0,M.useState)([]),[c,l]=(0,M.useState)(0),[u,d]=(0,M.useState)(!0),[f,p]=(0,M.useState)(!0),[m,h]=(0,M.useState)(``),[g,_]=(0,M.useState)(!1),[v,y]=(0,M.useState)(null),[b,x]=(0,M.useState)(!1),[S,C]=(0,M.useState)(``),[w,T]=(0,M.useState)(!1),[ee,te]=(0,M.useState)(!1),[ne,re]=(0,M.useState)(!1),[E,ie]=(0,M.useState)(void 0),[ae,oe]=(0,M.useState)(``),[se,D]=(0,M.useState)(!1),[O,ce]=(0,M.useState)(!1),[le,ue]=(0,M.useState)(!1),[de,k]=(0,M.useState)(void 0),[A,fe]=(0,M.useState)(null),[pe,j]=(0,M.useState)(1);if((0,M.useEffect)(()=>
77{if(!r||!t)return;async function e(){d(!0);try{let e=await _d(t);a(e),T(!!e.banned),C(e.banned??``),D(!!e.longterm),oe(e.longterm??``)}catch(e){console.error(`Failed to fetch user profile`,e),a(null),T(!1),C(``),D(!1),oe(``)}finally{d(!1)}}e()},[r,t]),(0,M.useEffect)(()=>{if(!r||!t)return;async function e(){p(!0);try{let e=await vd(t,pe,10);s(e.items),l(e.total)}catch(e){console.error(`Failed to fetch user transactions`,e),s([]),l(0)}finally{p(!1)}}e()},[r,pe,t]),n||u)return(0,V.jsx)(`div`,{className:`flex min-h-[60vh] items-center justify-center`,children:(0,V.jsx)(Lc,{className:`size-6`})});if(!r||!e||!i)return(0,V.jsx)(El,{});let me=Math.max(1,Math.ceil(c/10)),he=e=>{e<1||e>me||j(e)},ge=e=>{if(e){k(ae?Qm(ae):void 0),ue(!0);return}i&&se&&(async()=>{try{ce(!0);let e=await Z(i.id,{longterm:null});a(t=>t&&{...t,longterm:e.longterm}),oe(e.longterm??``),D(!1),U.success(`Long-term contract updated`)}catch(e){console.error(`Failed to update long-term contract`,e),U.error(`Unable to update long-term contract`)}finally{ce(!1)}})()},_e=e=>{if(e){ie(S?Qm(S):void 0),re(!0);return}i&&w&&(async()=>{try{te(!0);let e=await Z(i.id,{banned:null});a(t=>t&&{...t,banned:e.banned}),C(e.banned??``),T(!1),U.success(`Ban updated`)}catch(e){console.error(`Failed to update ban`,e),U.error(`Unable to update ban`)}finally{te(!1)}})()},ve=async()=>{if(!i)return;if(!de){U.error(`Select an end date for the long-term contract`);return}let e=Um(de,`yyyy-MM-dd`);try{ce(!0);let t=await Z(i.id,{longterm:e});a(e=>e&&{...e,longterm:t.longterm}),oe(t.longterm??``),D(!!t.longterm),U.success(`Long-term contract updated`),ue(!1),k(void 0)}catch(e){console.error(`Failed to update long-term contract`,e),U.error(`Unable to update long-term contract`)}finally{ce(!1)}},ye=async()=>{if(!i)return;if(!E){U.error(`Select an end date for the ban`);return}let e=Um(E,`yyyy-MM-dd`);try{te(!0);let t=await Z(i.id,{banned:e});a(e=>e&&{...e,banned:t.banned}),C(t.banned??``),T(!!t.banned),U.success(`Ban updated`),re(!1),ie(void 0)}catch(e){console.error(`Failed to update ban`,e),U.error(`Unable to update ban`)}finally{te(!1)}},be=()=>{let e=Number.parseInt(m,10);return Number.isNaN(e)?(U.error(`Grant amount must be an integer value`),null):e===0?(U.error(`Grant amount must not be zero`),null):e},xe=()=>{if(!i)return;let e=be();e!==null&&(y(e),x(!0))},Se=async()=>{if(!i||v===null){x(!1);return}try{_(!0);let e=await bd(i.id,v);a(t=>t&&{...t,balance:e.balance}),h(``),U.success(`Credit updated`)}catch(e){console.error(`Failed to grant credit`,e),U.error(`Unable to grant credit`)}finally{_(!1),y(null),x(!1)}};async function Ce(e){if(i)try{fe(e);let t=await yd(i.id,e);a(t),U.success(`Availability email sent`)}catch(e){console.error(`Failed to send availability email`,e),U.error(`Unable to send availability email`)}finally{fe(null)}}return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(rd,{open:b,onOpenChange:e=>{x(e),e||y(null)},children:(0,V.jsxs)(sd,{children:[(0,V.jsxs)(cd,{children:[(0,V.jsx)(ud,{children:`Confirm balance grant`}),(0,V.jsx)(dd,{children:v===null?`No amount selected.`:`Grant ${Uo(v)} to ${i.email}?`})]}),(0,V.jsxs)(ld,{children:[(0,V.jsx)(pd,{disabled:g,children:`Cancel`}),(0,V.jsx)(fd,{onClick:Se,disabled:g,children:g?`Submitting...`:`Confirm`})]})]})}),(0,V.jsx)(rd,{open:ne,onOpenChange:e=>{re(e),e||ie(void 0)},children:(0,V.jsxs)(sd,{children:[(0,V.jsxs)(cd,{children:[(0,V.jsx)(ud,{children:`Set ban`}),(0,V.jsx)(dd,{children:E?`Ban ${i.email} until ${Um(E,`PPP`)}?`:`Choose an end date for ${i.email}.`})]}),(0,V.jsxs)(`div`,{className:`space-y-2 py-2`,children:[(0,V.jsx)(Ic,{children:`Valid until`}),(0,V.jsxs)(tv,{children:[(0,V.jsx)(nv,{asChild:!0,children:(0,V.jsx)(H,{id:`banned-until`,type:`button`,variant:`outline`,"data-empty":!E,disabled:ee,className:`w-[212px] justify-between text-left font-normal data-[empty=true]:text-muted-foreground`,children:E?Um(E,`PPP`):(0,V.jsx)(`span`,{children:`Pick a date`})})}),(0,V.jsx)(rv,{className:`w-auto p-0`,align:`start`,children:(0,V.jsx)($_,{mode:`single`,selected:E,onSelect:ie,defaultMonth:E})})]})]}),(0,V.jsxs)(ld,{children:[(0,V.jsx)(pd,{disabled:ee,children:`Cancel`}),(0,V.jsx)(fd,{onClick:ye,disabled:ee||!E,children:ee?`Updating...`:`Confirm`})]})]})}),(0,V.jsx)(rd,{open:le,onOpenChange:e=>{ue(e),e||k(void 0)},children:(0,V.jsxs)(sd,{children:[(0,V.jsxs)(cd,{children:[(0,V.jsx)(ud,{children:`Set long-term contract`}),(0,V.jsx)(dd,{children:de?`Set long-term contract until ${Um(de,`PPP`)} for ${i.email}?`:`Choose an end date for ${i.email}.`})]}),(0,V.jsxs)(`div`,{className:`space-y-2 py-2`,children:[(0,V.jsx)(Ic,{children:`Valid until`}),(0,V.jsxs)(tv,{children:[(0,V.jsx)(nv,{asChild:!0,children:(0,V.jsx)(H,{id:`longterm-until`,type:`button`,variant:`outline`,"data-empty":!de,disabled:O,className:`w-[212px] justify-between text-left font-normal data-[empty=true]:text-muted-foreground`,children:de?Um(de,`PPP`):(0,V.jsx)(`span`,{children:`Pick a date`})})}),(0,V.jsx)(rv,{className:`w-auto p-0`,align:`start`,children:(0,V.jsx)($_,{mode:`single`,selected:de,onSelect:k,defaultMonth:de})})]})]}),(0,V.jsxs)(ld,{children:[(0,V.jsx)(pd,{disabled:O,children:`Cancel`}),(0,V.jsx)(fd,{onClick:ve,disabled:O||!de,children:O?`Updating...`:`Confirm`})]})]})}),(0,V.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,V.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,V.jsxs)(zu,{className:`bg-muted`,children:[(0,V.jsxs)(Bu,{children:[(0,V.jsx)(Vu,{children:`Profile`}),(0,V.jsx)(Hu,{children:(0,V.jsx)(X,{variant:`outline`,className:`curs
77or-pointer`,onClick:()=>{navigator.clipboard.writeText(i.id),U.success(`User ID copied`)},children:(0,V.jsx)(`span`,{className:`break-all`,children:i.id})})})]}),(0,V.jsxs)(Uu,{className:`space-y-2 text-sm`,children:[(0,V.jsxs)(`p`,{children:[(0,V.jsx)(`span`,{className:`font-medium`,children:`Name:`}),` `,i.name]}),(0,V.jsxs)(`p`,{className:`break-all`,children:[(0,V.jsx)(`span`,{className:`font-medium`,children:`Email:`}),` `,i.email]}),(0,V.jsxs)(`p`,{children:[(0,V.jsx)(`span`,{className:`font-medium`,children:`Provider:`}),` `,i.provider]}),(0,V.jsxs)(`p`,{children:[(0,V.jsx)(`span`,{className:`font-medium`,children:`Last login IP:`}),` `,i.ip??`Not recorded`]}),(0,V.jsxs)(`div`,{className:`space-y-1`,children:[(0,V.jsx)(`p`,{className:`font-medium`,children:`NotifyMe:`}),(0,V.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:i.notifyme.length>0?i.notifyme.map(e=>(0,V.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,V.jsx)(X,{variant:`outline`,className:`rounded-full border-cyan-500/30 bg-cyan-500/10 px-1.5 py-0 text-[10px] text-cyan-700 dark:text-cyan-300`,children:e}),(0,V.jsx)(H,{size:`sm`,variant:`outline`,className:`h-6 px-2 text-[10px]`,disabled:A===e,onClick:()=>{Ce(e)},children:A===e?`Sending...`:`Send email`})]},e)):(0,V.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:`No pending requests`})})]}),(0,V.jsx)(`div`,{className:`space-y-2 rounded-md border p-3`,children:(0,V.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,V.jsxs)(`div`,{className:`space-y-1`,children:[(0,V.jsx)(Ic,{htmlFor:`longterm`,children:`Long-term contract`}),(0,V.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Current value: ${i.longterm??`Not set`}`})]}),(0,V.jsx)(iv,{id:`longterm`,checked:se,onCheckedChange:ge,disabled:O})]})}),(0,V.jsx)(`div`,{className:`space-y-2 rounded-md border p-3`,children:(0,V.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,V.jsxs)(`div`,{className:`space-y-1`,children:[(0,V.jsx)(Ic,{htmlFor:`banned`,children:`Banned`}),(0,V.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`Current value: ${i.banned??`Not set`}`})]}),(0,V.jsx)(iv,{id:`banned`,checked:w,onCheckedChange:_e,disabled:ee})]})})]})]}),(0,V.jsxs)(zu,{className:`bg-muted`,children:[(0,V.jsxs)(Bu,{children:[(0,V.jsx)(Vu,{children:`Balance`}),(0,V.jsx)(Hu,{children:i.stripe?(0,V.jsx)(X,{variant:`outline`,className:`cursor-pointer`,onClick:()=>{navigator.clipboard.writeText(i.stripe??``),U.success(`Stripe ID copied`)},children:(0,V.jsx)(`span`,{className:`break-all`,children:i.stripe})}):(0,V.jsx)(X,{variant:`outline`,children:`No Stripe ID`})})]}),(0,V.jsxs)(Uu,{className:`space-y-3`,children:[(0,V.jsx)(`div`,{className:`text-3xl font-semibold`,children:Uo(i.balance)}),(0,V.jsx)(`p`,{className:`pt-2 text-sm text-muted-foreground`,children:`Current user credit.`}),(0,V.jsxs)(`div`,{className:`space-y-2`,children:[(0,V.jsx)(`p`,{className:`text-sm font-medium`,children:`Grant credits (in cents)`}),(0,V.jsxs)(`div`,{className:`flex gap-2`,children:[(0,V.jsx)(Qo,{type:`number`,placeholder:`1000`,value:m,onChange:e=>h(e.target.value)}),(0,V.jsx)(H,{onClick:xe,disabled:g||m.trim().length===0,children:g?`Submitting...`:`Submit`})]})]})]})]})]}),(0,V.jsxs)(zu,{className:`bg-muted`,children:[(0,V.jsxs)(Bu,{children:[(0,V.jsx)(Vu,{children:`Transactions`}),(0,V.jsx)(Hu,{children:(0,V.jsx)(Xd,{reportPath:`/report/transactions/user/${i.id}`,title:`Export User Transactions`})})]}),(0,V.jsx)(Uu,{children:f?(0,V.jsx)(`div`,{className:`flex justify-center py-8`,children:(0,V.jsx)(Lc,{className:`size-5`})}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Ud,{transactions:o}),me>1&&(0,V.jsx)(Zd,{className:`mt-4`,children:(0,V.jsxs)(Qd,{children:[(0,V.jsx)($d,{children:(0,V.jsx)(tf,{onClick:()=>he(pe-1),className:pe<=1?`pointer-events-none opacity-50`:`cursor-pointer`})}),(0,V.jsx)($d,{children:(0,V.jsx)(`span`,{className:`px-3 text-sm text-muted-foreground`,children:`Page ${pe} of ${me}`})}),(0,V.jsx)($d,{children:(0,V.jsx)(nf,{onClick:()=>he(pe+1),className:pe>=me?`pointer-events-none opacity-50`:`cursor-pointer`})})]})})]})})]})]})]})}function ov(){return(0,V.jsxs)(`div`,{className:`relative min-h-screen overflow-hidden bg-background text-foreground`,children:[(0,V.jsx)(`div`,{className:`app-grid`,"aria-hidden":!0}),(0,V.jsxs)(`div`,{className:`relative z-10`,children:[(0,V.jsx)(Yc,{}
vendor: 10,633 bytes, line 77
77),(0,V.jsxs)(ui,{children:[(0,V.jsx)(N,{path:`/`,element:(0,V.jsx)(Qc,{})}),(0,V.jsx)(N,{path:`/pricing`,element:(0,V.jsx)(sl,{})}),(0,V.jsx)(N,{path:`/roadmap`,element:(0,V.jsx)(cl,{})}),(0,V.jsx)(N,{path:`/contact`,element:(0,V.jsx)(pl,{})}),(0,V.jsx)(N,{path:`/contacts`,element:(0,V.jsx)(si,{to:`/contact`,replace:!0})}),(0,V.jsx)(N,{path:`/faq`,element:(0,V.jsx)(si,{to:`/contact`,replace:!0})}),(0,V.jsx)(N,{path:`/terms`,element:(0,V.jsx)(ml,{})}),(0,V.jsx)(N,{path:`/privacy`,element:(0,V.jsx)(hl,{})}),(0,V.jsx)(N,{path:`/impressum`,element:(0,V.jsx)(gl,{})}),(0,V.jsxs)(N,{path:`/docs`,element:(0,V.jsx)(Kc,{}),children:[(0,V.jsx)(N,{index:!0,element:(0,V.jsx)(Tl,{})}),(0,V.jsx)(N,{path:`ssh`,element:(0,V.jsx)(Dl,{})}),(0,V.jsx)(N,{path:`rdp`,element:(0,V.jsx)(Ol,{})}),(0,V.jsx)(N,{path:`moonlight`,element:(0,V.jsx)(Al,{})}),(0,V.jsx)(N,{path:`vscode`,element:(0,V.jsx)(jl,{})})]}),(0,V.jsxs)(N,{path:`/guides`,element:(0,V.jsx)(Jc,{}),children:[(0,V.jsx)(N,{index:!0,element:(0,V.jsx)(si,{to:`/docs`,replace:!0})}),(0,V.jsx)(N,{path:`isaac-sim`,element:(0,V.jsx)(Y,{})}),(0,V.jsx)(N,{path:`openclaw`,element:(0,V.jsx)(gu,{})}),(0,V.jsx)(N,{path:`ollama`,element:(0,V.jsx)(Eu,{})}),(0,V.jsx)(N,{path:`carla`,element:(0,V.jsx)(Nl,{})}),(0,V.jsx)(N,{path:`blender`,element:(0,V.jsx)(Ml,{})}),(0,V.jsx)(N,{path:`unreal-engine`,element:(0,V.jsx)(Au,{})}),(0,V.jsx)(N,{path:`unity`,element:(0,V.jsx)(ju,{})}),(0,V.jsx)(N,{path:`comfyui`,element:(0,V.jsx)(Jl,{})}),(0,V.jsx)(N,{path:`steam`,element:(0,V.jsx)(Ou,{})}),(0,V.jsx)(N,{path:`cudf`,element:(0,V.jsx)(Pl,{})}),(0,V.jsx)(N,{path:`cudnn`,element:(0,V.jsx)(Ll,{})}),(0,V.jsx)(N,{path:`cuopt`,element:(0,V.jsx)(J,{})}),(0,V.jsx)(N,{path:`tensorflow`,element:(0,V.jsx)(ku,{})}),(0,V.jsx)(N,{path:`cupy`,element:(0,V.jsx)(Fl,{})}),(0,V.jsx)(N,{path:`cuvs`,element:(0,V.jsx)(Il,{})}),(0,V.jsx)(N,{path:`pytorch`,element:(0,V.jsx)(Du,{})})]}),(0,V.jsxs)(N,{element:(0,V.jsx)(Sc,{children:(0,V.jsx)(Bc,{})}),children:[(0,V.jsx)(N,{path:`/rent`,element:(0,V.jsx)(Ru,{})}),(0,V.jsx)(N,{path:`/rent/:gpuName`,element:(0,V.jsx)(hd,{})}),(0,V.jsx)(N,{path:`/servers`,element:(0,V.jsx)(Qu,{})}),(0,V.jsx)(N,{path:`/servers/:uuid`,element:(0,V.jsx)(ff,{})}),(0,V.jsx)(N,{path:`/servers/:uuid/template`,element:(0,V.jsx)(hd,{})}),(0,V.jsx)(N,{path:`/admin/nodes`,element:(0,V.jsx)(Zf,{})}),(0,V.jsx)(N,{path:`/admin/nodes/:nodeId`,element:(0,V.jsx)(lp,{})}),(0,V.jsx)(N,{path:`/admin/users`,element:(0,V.jsx)(yp,{})}),(0,V.jsx)(N,{path:`/admin/longterm`,element:(0,V.jsx)(yp,{longtermOnly:!0})}),(0,V.jsx)(N,{path:`/admin/documents`,element:(0,V.jsx)(pp,{})}),(0,V.jsx)(N,{path:`/admin/users/:userId`,element:(0,V.jsx)(av,{})}),(0,V.jsx)(N,{path:`/account`,element:(0,V.jsx)(Id,{})}),(0,V.jsx)(N,{path:`/transactions`,element:(0,V.jsx)(af,{})}),(0,V.jsx)(N,{path:`/reset-password`,element:(0,V.jsx)(Cl,{})}),(0,V.jsx)(N,{path:`/create-password`,element:(0,V.jsx)(wl,{})}),(0,V.jsx)(N,{path:`*`,element:(0,V.jsx)(El,{})})]})]})]})]})}var sv=({toastOptions:e,...t})=>(0,V.jsx)(pc,{theme:`dark`,richColors:!0,className:`toaster group`,toastOptions:{...e,classNames:{...e?.classNames,toast:`group toast bg-popover text-popover-foreground border-border`,success:`group-[.toast]:bg-green-500 group-[.toast]:text-white group-[.toast]:border-green-500`,error:`group-[.toast]:bg-red-600 group-[.toast]:text-white group-[.toast]:border-red-600`}},...t}),cv=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,ne());else{var t=n(l);t!==null&&ie(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function ee(){return g?!0:!(e.unstable_now()-T<w)}function te(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ee());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ie(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ne():S=!1}}}var ne;if(typeof y==`function`)ne=function(){y(te)};else if(typeof MessageChannel<`u`){var re=new MessageChannel,E=re.port2;re.port1.onmessage=te,ne=function(){E.postMessage(null)}}else ne=function(){_(te,0)};function ie(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ie(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,ne()))),r},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),lv=n(((e,t)=>{t.exports=cv()})),uv=n((e=>{var t=lv(),n=f(),r=o();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function c(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function u(e){if(s(e)!==e)throw Error(i(188))}function d(e){var t=e.alternate;if(!t){if(t=s(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return u(a),e;if(o===r)return u(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var c=!1,l=a.child;l;){if(l===n){c=!0,n=a,r=o;break}if(l===r){c=!0,r=a,n=o;break}l=l.sibling}if(!c){for(l=o.child;l;){if(l===n){c=!0,n=o,r=a;break}if(l===r){c=!0,r=o,n=a;break}l=l.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function p(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=p(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,h=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),x=Symbol.for(`react.consumer`),S=Symbol.for(`react.context`),C=Symbol.for(`react.forward_ref`),w=Symbol.for(`react.suspense`),T=Symbol.for(`react.suspense_list`),ee=Symbol.for(`react.memo`),te=Symbol.for(`react.lazy`),ne=Symbol.for(`react.activity`),re=Symbol.for(`react.memo_cache_sentinel`),E=Symbol.iterator;function ie(e){return typeof e!=`object`||!e?null:(e=E&&e[E]||e[`@@iterator`],typeof e==`function`?e:null)}var ae=Symbol.for(`react.client.reference`);function oe(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ae?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case w:return`Suspense`;case T:return`SuspenseList`;case ne:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case _:return`Portal`;case S:return e.displayName||`Context`;case x:return(e._context.displayName||`Context`)+`.Consumer`;case C:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ee:return t=e.displayName||null,t===null?oe(e.type)||`Memo`:t;case te:t=e._payload,e=e._init;try{return oe(e(t))}catch{}}return null}var se=Array.isArray,D=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},le=[],ue=-1;function de(e){return{current:e}}function k(e){0>ue||(e.current=le[ue],le[ue]=null,ue--)}function A(e,t){ue++,le[ue]=e.current,e.current=t}var fe=de(null),pe=de(null),j=de(null),me=de(null);function he(e,t){switch(A(j,t),A(pe,e),A(fe,null),t.nodeType){case 9:case 11:e=(e
vendor: 7,635 bytes, lines 77-84
77=t.documentElement)&&(e=e.namespaceURI)?Hd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Hd(t),e=Ud(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}k(fe),A(fe,e)}function ge(){k(fe),k(pe),k(j)}function _e(e){e.memoizedState!==null&&A(me,e);var t=fe.current,n=Ud(t,e.type);t!==n&&(A(pe,e),A(fe,n))}function ve(e){pe.current===e&&(k(fe),k(pe)),me.current===e&&(k(me),$f._currentValue=ce)}var ye,be;function xe(e){if(ye===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ye=t&&t[1]||``,be=-1<e.stack.indexOf(`
78    at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
79`+ye+e+be}var Se=!1;function Ce(e,t){if(!e||Se)return``;Se=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
80`),l=s.split(`
81`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
82`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Se=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?xe(n):``}function we(e,t){switch(e.tag){case 26:case 27:case 5:return xe(e.type);case 16:return xe(`Lazy`);case 13:return e.child!==t&&t!==null?xe(`Suspense Fallback`):xe(`Suspense`);case 19:return xe(`SuspenseList`);case 0:case 15:return Ce(e.type,!1);case 11:return Ce(e.type.render,!1);case 1:return Ce(e.type,!0);case 31:return xe(`Activity`);default:return``}}function Te(e){try{var t=``,n=null;do t+=we(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
83Error generating stack: `+e.message+`
84`+e.stack}}var Ee=Object.prototype.hasOwnProperty,De=t.unstable_scheduleCallback,Oe=t.unstable_cancelCallback,ke=t.unstable_shouldYield,Ae=t.unstable_requestPaint,je=t.unstable_now,Me=t.unstable_getCurrentPriorityLevel,Ne=t.unstable_ImmediatePriority,Pe=t.unstable_UserBlockingPriority,Fe=t.unstable_NormalPriority,Ie=t.unstable_LowPriority,Le=t.unstable_IdlePriority,Re=t.log,ze=t.unstable_setDisableYieldValue,Be=null,Ve=null;function He(e){if(typeof Re==`function`&&ze(e),Ve&&typeof Ve.setStrictMode==`function`)try{Ve.setStrictMode(Be,e)}catch{}}var Ue=Math.clz32?Math.clz32:Ke,We=Math.log,Ge=Math.LN2;function Ke(e){return e>>>=0,e===0?32:31-(We(e)/Ge|0)|0}var qe=256,Je=262144,Ye=4194304;function Xe(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ze(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Xe(n))):i=Xe(o):i=Xe(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Xe(n))):i=Xe(o)):i=Xe(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Qe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $e(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function et(){var e=Ye;return Ye<<=1,!(Ye&62914560)&&(Ye=4194304),e}function tt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function nt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ue(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&it(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function it(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ue(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function at(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ue(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ot(e,t){var n=t&-t;return n=n&42?1:st(n),(n&(e.suspendedLanes|t))===0?n:0}function st(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ct(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function lt(){var e=O.p;return e===0?(e=window.event,e===void 0?32:hp(e.type)):e}function ut(e,t){var n=O.p;try{return O.p=e,t()}finally{O.p=n}}var dt=Math.random().toString(36).slice(2),ft=`__reactFiber$`+dt,pt=`__reactProps$`+dt,mt=`__reactContainer$`+dt,ht=`__reactEvents$`+dt,gt=`__reactListeners$`+dt,_t=`__reactHandles$`+dt,vt=`__reactResources$`+dt,yt=`__reactMarker$`+dt;function bt(e){delete e[ft],delete e[pt],delete e[ht],delete e[gt],delete e[_t]}function xt(e){var t=e[ft];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mt]||n[ft]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ff(e);e!==null;){if(n=e[ft])return n;e=ff(e)}return t}e=n,n=e.parentNode}return null}function St(e){if(e=e[ft]||e[mt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ct(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function wt(e){var t=e[vt];return t||=e[vt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Tt(e){e[yt]=!0}var Et=new Set,Dt={};function Ot(e,t){kt(e,t),kt(e+`Capture`,t)}function kt(e,t){for(Dt[e]=t,e=0;e<t.length;e++)Et.add(t[e])}var At=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
84037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),jt={},Mt={};function Nt(e){return Ee.call(Mt,e)?!0:Ee.call(jt,e)?!1:At.test(e)?Mt[e]=!0:(jt[e]=!0,!1)}function Pt(e,t,n){if(Nt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}}function Ft(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function It(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Lt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Rt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function zt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bt(e){if(!e._valueTracker){var t=Rt(e)?`checked`:`value`;e._valueTracker=zt(e,t,``+e[t])}}function Vt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Rt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Ht(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Ut=/[\n"\\]/g;function Wt(e){return e.replace(Ut,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Gt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Lt(t)):e.value!==``+Lt(t)&&(e.value=``+Lt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):qt(e,o,Lt(n)):qt(e,o,Lt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Lt(s):e.removeAttribute(`name`)}function Kt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Bt(e);return}n=n==null?``:``+Lt(n),t=t==null?n:``+Lt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Bt(e)}function qt(e,t,n){t===`number`&&Ht(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Jt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Lt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Yt(e,t,n){if(t!=null&&(t=``+Lt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Lt(n)}function Xt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(se(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}
vendor: 9,502 bytes, line 84
84n=Lt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Bt(e)}function Zt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function $t(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Qt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function en(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&$t(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&$t(e,o,t[o])}function tn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var nn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),rn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function an(e){return rn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function on(){}var sn=null;function cn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ln=null,un=null;function dn(e){var t=St(e);if(t&&(e=t.stateNode)){var n=e[pt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Gt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Wt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[pt]||null;if(!a)throw Error(i(90));Gt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Vt(r)}break a;case`textarea`:Yt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Jt(e,!!n.multiple,t,!1)}}}var fn=!1;function pn(e,t,n){if(fn)return e(t,n);fn=!0;try{return e(t)}finally{if(fn=!1,(ln!==null||un!==null)&&(bu(),ln&&(t=ln,e=un,un=ln=null,dn(t),e)))for(t=0;t<e.length;t++)dn(e[t])}}function mn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[pt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var hn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),M=!1;if(hn)try{var gn={};Object.defineProperty(gn,"passive",{get:function(){M=!0}}),window.addEventListener(`test`,gn,gn),window.removeEventListener(`test`,gn,gn)}catch{M=!1}var _n=null,vn=null,yn=null;function bn(){if(yn)return yn;var e,t=vn,n=t.length,r,i=`value`in _n?_n.value:_n.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return yn=i.slice(e,1<r?1-r:void 0)}function xn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Sn(){return!0}function Cn(){return!1}function wn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Sn:Cn,this.isPropagationStopped=Cn,this}return m(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Sn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Sn)},persist:function(){},isPersistent:Sn}),t}var Tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},En=wn(Tn),Dn=m({},Tn,{view:0,detail:0}),On=wn(Dn),kn,An,jn,Mn=m({},Dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Un,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==jn&&(jn&&e.type===`mousemove`?(kn=e.screenX-jn.screenX,An=e.screenY-jn.screenY):An=kn=0,jn=e),kn)},movementY:function(e){return`movementY`in e?e.movementY:An}}),Nn=wn(Mn),Pn=wn(m({},Mn,{dataTransfer:0})),Fn=wn(m({},Dn,{relatedTarget:0})),In=wn(m({},Tn,{animationName:0,elapsedTime:0,pseudoElement:0})),Ln=wn(m({},Tn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Rn=wn(m({},Tn,{data:0})),zn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Bn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F
845`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Vn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Hn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Vn[e])?!!t[e]:!1}function Un(){return Hn}var Wn=wn(m({},Dn,{key:function(e){if(e.key){var t=zn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=xn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Bn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Un,charCode:function(e){return e.type===`keypress`?xn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?xn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Gn=wn(m({},Mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Kn=wn(m({},Dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Un})),qn=wn(m({},Tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Jn=wn(m({},Mn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Yn=wn(m({},Tn,{newState:0,oldState:0})),Xn=[9,13,27,32],Zn=hn&&`CompositionEvent`in window,Qn=null;hn&&`documentMode`in document&&(Qn=document.documentMode);var $n=hn&&`TextEvent`in window&&!Qn,er=hn&&(!Zn||Qn&&8<Qn&&11>=Qn),tr=` `,nr=!1;function rr(e,t){switch(e){case`keyup`:return Xn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function ir(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var ar=!1;function or(e,t){switch(e){case`compositionend`:return ir(t);case`keypress`:return t.which===32?(nr=!0,tr):null;case`textInput`:return e=t.data,e===tr&&nr?null:e;default:return null}}function sr(e,t){if(ar)return e===`compositionend`||!Zn&&rr(e,t)?(e=bn(),yn=vn=_n=null,ar=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return er&&t.locale!==`ko`?null:t.data;default:return null}}var cr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function lr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!cr[e.type]:t===`textarea`}function ur(e,t,n,r){ln?un?un.push(r):un=[r]:ln=r,t=Ed(t,`onChange`),0<t.length&&(n=new En(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var dr=null,fr=null;function pr(e){yd(e,0)}function mr(e){if(Vt(Ct(e)))return e}function hr(e,t){if(e===`change`)return t}var gr=!1;if(hn){var _r;if(hn){var vr=`oninput`in document;if(!vr){var yr=document.createElement(`div`);yr.setAttribute(`oninput`,`return;`),vr=typeof yr.oninput==`function`}_r=vr}else _r=!1;gr=_r&&(!document.documentMode||9<document.documentMode)}function br(){dr&&(dr.detachEvent(`onpropertychange`,xr),fr=dr=null)}function xr(e){if(e.propertyName===`value`&&mr(fr)){var t=[];ur(t,fr,e,cn(e)),pn(pr,t)}}function Sr(e,t,n){e===`focusin`?(br(),dr=t,fr=n,dr.attachEvent(`onpropertychange`,xr)):e===`focusout`&&br()}function Cr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return mr(fr)}function wr(e,t){if(e===`click`)return mr(t)}function Tr(e,t){if(e===`input`||e===`change`)return mr(t)}function Er(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Dr=typeof Object.is==`function`?Object.is:Er;function Or(e,t){if(Dr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ee.call(t,i)||!Dr(e[i],t[i]))return!1}return!0}function kr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ar(e,t){var n=kr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=kr(n)}}function jr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ht(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ht(e.document)}return t}function Nr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Pr=hn&&`documentMode`in document&&11>=document.documentMode,Fr=null,Ir=null,Lr=null,Rr=!1;function zr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rr||Fr==null||Fr!==Ht(r)||(r=Fr,`selectionStart`in r&&Nr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 100,594 bytes, line 84
84sNode:r.focusNode,focusOffset:r.focusOffset}),Lr&&Or(Lr,r)||(Lr=r,r=Ed(Ir,`onSelect`),0<r.length&&(t=new En(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Fr)))}function Br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Vr={animationend:Br(`Animation`,`AnimationEnd`),animationiteration:Br(`Animation`,`AnimationIteration`),animationstart:Br(`Animation`,`AnimationStart`),transitionrun:Br(`Transition`,`TransitionRun`),transitionstart:Br(`Transition`,`TransitionStart`),transitioncancel:Br(`Transition`,`TransitionCancel`),transitionend:Br(`Transition`,`TransitionEnd`)},Hr={},Ur={};hn&&(Ur=document.createElement(`div`).style,`AnimationEvent`in window||(delete Vr.animationend.animation,delete Vr.animationiteration.animation,delete Vr.animationstart.animation),`TransitionEvent`in window||delete Vr.transitionend.transition);function Wr(e){if(Hr[e])return Hr[e];if(!Vr[e])return e;var t=Vr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ur)return Hr[e]=t[n];return e}var Gr=Wr(`animationend`),Kr=Wr(`animationiteration`),qr=Wr(`animationstart`),Jr=Wr(`transitionrun`),Yr=Wr(`transitionstart`),Xr=Wr(`transitioncancel`),Zr=Wr(`transitionend`),Qr=new Map,$r=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);$r.push(`scrollEnd`);function ei(e,t){Qr.set(e,t),Ot(t,[e])}var ti=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},ni=[],ri=0,ii=0;function ai(){for(var e=ri,t=ii=ri=0;t<e;){var n=ni[t];ni[t++]=null;var r=ni[t];ni[t++]=null;var i=ni[t];ni[t++]=null;var a=ni[t];if(ni[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&N(n,i,a)}}function oi(e,t,n,r){ni[ri++]=e,ni[ri++]=t,ni[ri++]=n,ni[ri++]=r,ii|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function si(e,t,n,r){return oi(e,t,n,r),li(e)}function ci(e,t){return oi(e,null,null,t),li(e)}function N(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ue(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function li(e){if(50<du)throw du=0,fu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ui={};function di(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fi(e,t,n,r){return new di(e,t,n,r)}function pi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mi(e,t){var n=e.alternate;return n===null?(n=fi(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function hi(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function gi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)pi(e)&&(s=1);else if(typeof e==`string`)s=Wf(e,n,fe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case ne:return e=fi(31,n,t,a),e.elementType=ne,e.lanes=o,e;case v:return _i(n.children,a,o,t);case y:s=8,a|=24;break;case b:return e=fi(12,n,t,a|2),e.elementType=b,e.lanes=o,e;case w:return e=fi(13,n,t,a),e.elementType=w,e.lanes=o,e;case T:return e=fi(19,n,t,a),e.elementType=T,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case S:s=10;break a;case x:s=9;break a;case C:s=11;break a;case ee:s=14;break a;case te:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=fi(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function _i(e,t,n,r){return e=fi(7,e,r,t),e.lanes=n,e}function vi(e,t,n){return e=fi(6,e,null,t),e.lanes=n,e}function yi(e){var t=fi(18,null,null,0);return t.stateNode=e,t}function bi(e,t,n){return t=fi(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var xi=new WeakMap;function Si(e,t){if(typeof e==`object`&&e){var n=xi.get(e);return n===void 0?(t={value:e,source:t,stack:Te(t)},xi.set(e,t),t):n}return{value:e,source:t,stack:Te(t)}}var Ci=[],wi=0,Ti=null,Ei=0,Di=[],Oi=0,ki=null,Ai=1,ji=``;function Mi(e,t){Ci[wi++]=Ei,Ci[wi++]=Ti,Ti=e,Ei=t}function Ni(e,t,n){Di[Oi++]=Ai,Di[Oi++]=ji,Di[Oi++]=ki,ki=e;var r=Ai;e=ji;var i=32-Ue(r)-1;r&=~(1<<i),n+=1;var a=32-Ue(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ai=1<<32-Ue(t)+i|n<<i|r,ji=a+e}else Ai=1<<a|n<<i|r,ji=e}function Pi(e){e.return!==null&&(Mi(e,1),Ni(e,1,0))}function Fi(e){for(;e===Ti;)Ti=Ci[--wi],Ci[wi]=null,Ei=Ci[--wi],Ci[wi]=null;for(;e===ki;)ki=Di[--Oi],Di[Oi]=null,ji=Di[--Oi],Di[Oi]=null,Ai=Di[--Oi],Di[Oi]=null}function Ii(e,t){Di[Oi++]=Ai,Di[Oi++]=ji,Di[Oi++]=ki,Ai=t.id,ji=t.overflow,ki=e}var Li=null,Ri=null,P=!1,zi=null,Bi=!1,Vi=Error(i(519));function Hi(e){throw Ji(Si(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Vi}function Ui(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ft]=e,t[pt]=r,n){case`dialog`:Z(`cancel`,t),Z(`close`,t);break;case`iframe`:case`object`:case`embed`:Z(`load`,t);break;case`video`:case`audio`:for(n=0;n<_d.length;n++)Z(_d[n],t);break;case`source`:Z(`error`,t);break;case`img`:case`image`:case`link`:Z(`error`,t),Z(`load`,t);break;case`details`:Z(`toggle`,t);break;case`input`:Z(`invalid`,t),Kt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Z(`invalid`,t);break;case`textarea`:Z(`invalid`,t),Xt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Md(t.textContent,n)?(r.popover!=null&&(Z(`beforetoggle`,t),Z(`toggle`,t)),r.onScroll!=null&&Z(`scroll`,t),r.onScrollEnd!=null&&Z(`scrollend`,t),r.onClick!=null&&(t.onclick=on),t=!0):t=!1,t||Hi(e,!0)}function Wi(e){for(Li=e.return;Li;)switch(Li.tag){case 5:case 31:case 13:Bi=!1;return;case 27:case 3:Bi=!0;return;default:Li=Li.return}}function Gi(e){if(e!==Li)return!1;if(!P)return Wi(e),P=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Wd(e.type,e.memoizedProps)),n=!n),n&&Ri&&Hi(e),Wi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ri=df(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ri=df(e)}else t===27?(t=Ri,Qd(e.type)?(e=uf,uf=null,Ri=e):Ri=t):Ri=Li?lf(e.stateNode.nextSibling):null;return!0}function Ki(){Ri=Li=null,P=!1}function qi(){var e=zi;return e!==null&&(Zl===null?Zl=e:Zl.push.apply(Zl,e),zi=null),e}function Ji(e){zi===null?zi=[e]:zi.push(e)}var Yi=de(null),Xi=null,F=null;function Zi(e,t,n){A(Yi,t._currentValue),t._currentValue=n}function Qi(e){e._currentValue=Yi.current,k(Yi)}function $i(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ea(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),$i(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),$i(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function ta(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Dr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===me.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[$f]:e.push($f))}a=a.return}e!==null&&ea(t,e,n,r),t.flags|=262144}function na(e){for(e=e.firstContext;e!==null;){if(!Dr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ra(e){Xi=e,F=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ia(e){return oa(Xi,e)}function aa(e,t){return Xi===null&&ra(e),oa(e,t)}function oa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},F===null){if(e===null)throw Error(i(308));F=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else F=F.next=t;return n}var sa=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ca=t.unstable_scheduleCallback,la=t.unstable_NormalPriority,ua={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function da(){return{controller:new sa,data:new Map,refCount:0}}function fa(e){e.refCount--,e.refCount===0&&ca(la,function(){e.controller.abort()})}var pa=null,ma=0,ha=0,ga=null;function _a(e,t){if(pa===null){var n=pa=[];ma=0,ha=dd(),ga={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ma++,t.then(va,va),t}function va(){if(--ma===0&&pa!==null){ga!==null&&(ga.status=`fulfilled`);var e=pa;pa=null,ha=0,ga=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ya(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ba=D.S;D.S=function(e,t){eu=je(),typeof t==`object`&&t&&typeof t.then==`function`&&_a(e,t),ba!==null&&ba(e,t)};var xa=de(null);function Sa(){var e=xa.current;return e===null?Ll.pooledCache:e}function Ca(e,t){t===null?A(xa,xa.current):A(xa,t.pool)}function wa(){var e=Sa();return e===null?null:{parent:ua._currentValue,pool:e}}var Ta=Error(i(460)),Ea=Error(i(474)),Da=Error(i(542)),Oa={then:function(){}};function ka(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Aa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(on,on),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Pa(e),e;default:if(typeof t.status==`string`)t.then(on,on);else{if(e=Ll,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Pa(e),e}throw Ma=t,Ta}}function ja(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ma=e,Ta):e}}var Ma=null;function Na(){if(Ma===null)throw Error(i(459));var e=Ma;return Ma=null,e}function Pa(e){if(e===Ta||e===Da)throw Error(i(483))}var Fa=null,Ia=0;function La(e){var t=Ia;return Ia+=1,Fa===null&&(Fa=[]),Aa(Fa,e,t)}function Ra(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function za(e,t){throw t.$$typeof===h?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ba(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=mi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=vi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===v?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===te&&ja(i)===t.type)?(t=a(t,n.props),Ra(t,n),t.return=e,t):(t=gi(n.type,n.key,n.props,null,e.mode,r),Ra(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=bi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=_i(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=vi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case g:return n=gi(t.type,t.key,t.props,null,e.mode,n),Ra(n,t),n.return=e,n;case _:return t=bi(t,e.mode,n),t.return=e,t;case te:return t=ja(t),f(e,t,n)}if(se(t)||ie(t))return t=_i(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,La(t),n);if(t.$$typeof===S)return f(e,aa(e,t),n);za(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case g:return n.key===i?l(e,t,n,r):null;case _:return n.key===i?u(e,t,n,r):null;case te:return n=ja(n),p(e,t,n,r)}if(se(n)||ie(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,La(n),r);if(n.$$typeof===S)return p(e,t,aa(e,n),r);za(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case g:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case _:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case te:return r=ja(r),m(e,t,n,r,i)}if(se(r)||ie(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,La(r),i);if(r.$$typeof===S)return m(e,t,n,aa(t,r),i);za(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),P&&Mi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return P&&Mi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),P&&Mi(i,h),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),P&&Mi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return P&&Mi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),P&&Mi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===v&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case g:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===v){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===te&&ja(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ra(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===v?(c=_i(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=gi(o.type,o.key,o.props,null,e.mode,c),Ra(c,o),c.return=e,e=c)}return s(e);case _:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=bi(o,e.mode,c),c.return=e,e=c}return s(e);case te:return o=ja(o),b(e,r,o,c)}if(se(o))return h(e,r,o,c);if(ie(o)){if(l=ie(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,La(o),c);if(o.$$typeof===S)return b(e,r,aa(e,o),c);za(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=vi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ia=0;var i=b(e,t,n,r);return Fa=null,i}catch(t){if(t===Ta||t===Da)throw t;var a=fi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Va=Ba(!0),Ha=Ba(!1),Ua=!1;function Wa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ga(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ka(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function qa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Il&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=li(e),N(e,null,n),t}return oi(e,r,t,n),li(e)}function Ja(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,at(e,n)}}function Ya(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Xa=!1;function Za(){if(Xa){var e=ga;if(e!==null)throw e}}function Qa(e,t,n,r){Xa=!1;var i=e.updateQueue;Ua=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Y&f)===f:(r&f)===f){f!==0&&f===ha&&(Xa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Ua=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Gl|=o,e.lanes=o,e.memoizedState=d}}function $a(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function eo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)$a(n[e],t)}var to=de(null),no=de(0);function ro(e,t){e=Ul,A(no,e),A(to,t),Ul=e|t.baseLanes}function io(){A(no,Ul),A(to,to.current)}function ao(){Ul=no.current,k(to),k(no)}var I=de(null),oo=null;function so(e){var t=e.alternate;A(po,po.current&1),A(I,e),oo===null&&(t===null||to.current!==null||t.memoizedState!==null)&&(oo=e)}function co(e){A(po,po.current),A(I,e),oo===null&&(oo=e)}function lo(e){e.tag===22?(A(po,po.current),A(I,e),oo===null&&(oo=e)):uo(e)}function uo(){A(po,po.current),A(I,I.current)}function fo(e){k(I),oo===e&&(oo=null),k(po)}var po=de(0);function mo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||of(n)||sf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ho=0,L=null,go=null,R=null,_o=!1,vo=!1,yo=!1,bo=0,xo=0,So=null,Co=0;function z(){throw Error(i(321))}function wo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Dr(e[n],t[n]))return!1;return!0}function To(e,t,n,r,i,a){return ho=a,L=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?zs:Bs,yo=!1,a=n(r,i),yo=!1,vo&&(a=Do(t,n,r,i)),Eo(e),a}function Eo(e){D.H=Rs;var t=go!==null&&go.next!==null;if(ho=0,R=go=L=null,_o=!1,xo=0,So=null,t)throw Error(i(300));e===null||nc||(e=e.dependencies,e!==null&&na(e)&&(nc=!0))}function Do(e,t,n,r){L=e;var a=0;do{if(vo&&(So=null),xo=0,vo=!1,25<=a)throw Error(i(301));if(a+=1,R=go=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}D.H=Vs,o=t(n,r)}while(vo);return o}function Oo(){var e=D.H,t=e.useState()[0];return t=typeof t.then==`function`?Fo(t):t,e=e.useState()[0],(go===null?null:go.memoizedState)!==e&&(L.flags|=1024),t}function ko(){var e=bo!==0;return bo=0,e}function Ao(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function jo(e){if(_o){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}_o=!1}ho=0,R=go=L=null,vo=!1,xo=bo=0,So=null}function Mo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return R===null?L.memoizedState=R=e:R=R.next=e,R}function No(){if(go===null){var e=L.alternate;e=e===null?null:e.memoizedState}else e=go.next;var t=R===null?L.memoizedState:R.next;if(t!==null)R=t,go=e;else{if(e===null)throw L.alternate===null?Error(i(467)):Error(i(310));go=e,e={memoizedState:go.memoizedState,baseState:go.baseState,baseQueue:go.baseQueue,queue:go.queue,next:null},R===null?L.memoizedState=R=e:R=R.next=e}return R}function Po(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fo(e){var t=xo;return xo+=1,So===null&&(So=[]),e=Aa(So,e,t),t=L,(R===null?t.memoizedState:R.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?zs:Bs),e}function Io(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Fo(e);if(e.$$typeof===S)return ia(e)}throw Error(i(438,String(e)))}function Lo(e){var t=null,n=L.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=L.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Po(),L.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=re;return t.index++,n}function Ro(e,t){return typeof t==`function`?t(e):t}function zo(e){return Bo(No(),go,e)}function Bo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(ho&f)===f:(Y&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ha&&(d=!0);else if((ho&p)===p){u=u.next,p===ha&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,L.lanes|=p,Gl|=p;f=u.action,yo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,L.lanes|=f,Gl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Dr(o,e.memoizedState)&&(nc=!0,d&&(n=ga,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Vo(e){var t=No(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Dr(o,t.memoizedState)||(nc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function B(e,t,n){var r=L,a=No(),o=P;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Dr((go||a).memoizedState,n);if(s&&(a.memoizedState=n,nc=!0),a=a.queue,us(Wo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||R!==null&&R.memoizedState.tag&1){if(r.flags|=2048,as(9,{destroy:void 0},Uo.bind(null,r,a,n,t),null),Ll===null)throw Error(i(349));o||ho&127||Ho(r,t,n)}return n}function Ho(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=L.updateQueue,t===null?(t=Po(),L.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Uo(e,t,n,r){t.value=n,t.getSnapshot=r,Go(t)&&Ko(e)}function Wo(e,t,n){return n(function(){Go(t)&&Ko(e)})}function Go(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Dr(e,n)}catch{return!0}}function Ko(e){var t=ci(e,2);t!==null&&hu(t,e,2)}function qo(e){var t=Mo();if(typeof e==`function`){var n=e;if(e=n(),yo){He(!0);try{n()}finally{He(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:e},t}function Jo(e,t,n,r){return e.baseState=n,Bo(e,go,typeof r==`function`?r:Ro)}function Yo(e,t,n,r,a){if(Fs(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};D.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Xo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Xo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=D.T,o={};D.T=o;try{var s=n(i,r),c=D.S;c!==null&&c(o,s),V(e,t,s)}catch(n){H(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),D.T=a}}else try{a=n(i,r),V(e,t,a)}catch(n){H(e,t,n)}}function V(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Zo(e,t,n)},function(n){return H(e,t,n)}):Zo(e,t,n)}function Zo(e,t,n){t.status=`fulfilled`,t.value=n,Qo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Xo(e,n)))}function H(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Qo(t),t=t.next;while(t!==r)}e.action=null}function Qo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function $o(e,t){return t}function es(e,t){if(P){var n=Ll.formState;if(n!==null){a:{var r=L;if(P){if(Ri){b:{for(var i=Ri,a=Bi;i.nodeType!==8;){if(!a){i=null;break b}if(i=lf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ri=lf(i.nextSibling),r=i.data===`F!`;break a}}Hi(r)}r=!1}r&&(t=n[0])}}return n=Mo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:t},n.queue=r,n=Ms.bind(null,L,r),r.dispatch=n,r=qo(!1),a=Ps.bind(null,L,!1,r.queue),r=Mo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Yo.bind(null,L,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ts(e){return ns(No(),go,e)}function ns(e,t,n){if(t=Bo(e,t,$o)[0],e=zo(Ro)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Fo(t)}catch(e){throw e===Ta?Da:e}else r=t;t=No();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(L.flags|=2048,as(9,{destroy:void 0},rs.bind(null,i,n),null)),[r,a,e]}function rs(e,t){e.action=t}function is(e){var t=No(),n=go;if(n!==null)return ns(t,n,e);No(),t=t.memoizedState,n=No();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function as(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=L.updateQueue,t===null&&(t=Po(),L.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function os(){return No().memoizedState}function ss(e,t,n,r){var i=Mo();L.flags|=e,i.memoizedState=as(1|t,{destroy:void 0},n,r===void 0?null:r)}function cs(e,t,n,r){var i=No();r=r===void 0?null:r;var a=i.memoizedState.inst;go!==null&&r!==null&&wo(r,go.memoizedState.deps)?i.memoizedState=as(t,a,n,r):(L.flags|=e,i.memoizedState=as(1|t,a,n,r))}function ls(e,t){ss(8390656,8,e,t)}function us(e,t){cs(2048,8,e,t)}function ds(e){L.flags|=4;var t=L.updateQueue;if(t===null)t=Po(),L.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function fs(e){var t=No().memoizedState;return ds({ref:t,nextImpl:e}),function(){if(Il&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ps(e,t){return cs(4,2,e,t)}function ms(e,t){return cs(4,4,e,t)}function hs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function gs(e,t,n){n=n==null?null:n.concat([e]),cs(4,4,hs.bind(null,t,e),n)}function _s(){}function vs(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&wo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ys(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&wo(t,r[1]))return r[0];if(r=e(),yo){He(!0);try{e()}finally{He(!1)}}return n.memoizedState=[r,t],r}function bs(e,t,n){return n===void 0||ho&1073741824&&!(Y&261930)?e.memoizedState=t:(e.memoizedState=n,e=mu(),L.lanes|=e,Gl|=e,n)}function xs(e,t,n,r){return Dr(n,t)?n:to.current===null?!(ho&42)||ho&1073741824&&!(Y&261930)?(nc=!0,e.memoizedState=n):(e=mu(),L.lanes|=e,Gl|=e,t):(e=bs(e,n,r),Dr(e,t)||(nc=!0),e)}function Ss(e,t,n,r,i){var a=O.p;O.p=a!==0&&8>a?a:8;var o=D.T,s={};D.T=s,Ps(e,!1,t,n);try{var c=i(),l=D.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ns(e,t,ya(c,r),pu(e)):Ns(e,t,r,pu(e))}catch(n){Ns(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{O.p=a,o!==null&&s.types!==null&&(o.types=s.types),D.T=o}}function Cs(){}function ws(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Ts(e).queue;Ss(e,a,t,ce,n===null?Cs:function(){return Es(e),n(r)})}function Ts(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:ce},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ro,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Es(e){var t=Ts(e);t.next===null&&(t=e.alternate.memoizedState),Ns(e,t.next.queue,{},pu())}function Ds(){return ia($f)}function Os(){return No().memoizedState}function ks(){return No().memoizedState}function As(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=Ka(n);var r=qa(t,e,n);r!==null&&(hu(r,t,n),Ja(r,t,n)),t={cache:da()},e.payload=t;return}t=t.return}}function js(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Fs(e)?Is(t,n):(n=si(e,t,n,r),n!==null&&(hu(n,e,r),Ls(n,t,r)))}function Ms(e,t,n){Ns(e,t,n,pu())}function Ns(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Fs(e))Is(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Dr(s,o))return oi(e,t,i,0),Ll===null&&ai(),!1}catch{}if(n=si(e,t,i,r),n!==null)return hu(n,e,r),Ls(n,t,r),!0}return!1}function Ps(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Fs(e)){if(t)throw Error(i(479))}else t=si(e,n,r,2),t!==null&&hu(t,e,2)}function Fs(e){var t=e.alternate;return e===L||t!==null&&t===L}function Is(e,t){vo=_o=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ls(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,at(e,n)}}var Rs={readContext:ia,use:Io,useCallback:z,useContext:z,useEffect:z,useImperativeHandle:z,useLayoutEffect:z,useInsertionEffect:z,useMemo:z,useReducer:z,useRef:z,useState:z,useDebugValue:z,useDeferredValue:z,useTransition:z,useSyncExternalStore:z,useId:z,useHostTransitionStatus:z,useFormState:z,useActionState:z,useOptimistic:z,useMemoCache:z,useCacheRefresh:z};Rs.useEffectEvent=z;var zs={readContext:ia,use:Io,useCallback:function(e,t){return Mo().memoizedState=[e,t===void 0?null:t],e},useContext:ia,useEffect:ls,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ss(4194308,4,hs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ss(4194308,4,e,t)},useInsertionEffect:function(e,t){ss(4,2,e,t)},useMemo:function(e,t){var n=Mo();t=t===void 0?null:t;var r=e();if(yo){He(!0);try{e()}finally{He(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Mo();if(n!==void 0){var i=n(t);if(yo){He(!0);try{n(t)}finally{He(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=js.bind(null,L,e),[r.memoizedState,e]},useRef:function(e){var t=Mo();return e={current:e},t.memoizedState=e},useState:function(e){e=qo(e);var t=e.queue,n=Ms.bind(null,L,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:_s,useDeferredValue:function(e,t){return bs(Mo(),e,t)},useTransition:function(){var e=qo(!1);return e=Ss.bind(null,L,e.queue,!0,!1),Mo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=L,a=Mo();if(P){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Ll===null)throw Error(i(349));Y&127||Ho(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ls(Wo.bind(null,r,o,e),[e]),r.flags|=2048,as(9,{destroy:void 0},Uo.bind(null,r,o,n,t),null),n},useId:function(){var e=Mo(),t=Ll.identifierPrefix;if(P){var n=ji,r=Ai;n=(r&~(1<<32-Ue(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=bo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Co++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ds,useFormState:es,useActionState:es,useOptimistic:function(e){var t=Mo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ps.bind(null,L,!0,n),n.dispatch=t,[e,t]},useMemoCache:Lo,useCacheRefresh:function(){return Mo().memoizedState=As.bind(null,L)},useEffectEvent:function(e){var t=Mo(),n={impl:e};return t.memoizedState=n,function(){if(Il&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Bs={readContext:ia,use:Io,useCallback:vs,useContext:ia,useEffect:us,useImperativeHandle:gs,useInsertionEffect:ps,useLayoutEffect:ms,useMemo:ys,useReducer:zo,useRef:os,useState:function(){return zo(Ro)},useDebugValue:_s,useDeferredValue:function(e,t){return xs(No(),go.memoizedState,e,t)},useTransition:function(){var e=zo(Ro)[0],t=No().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:B,useId:Os,useHostTransitionStatus:Ds,useFormState:ts,useActionState:ts,useOptimistic:function(e,t){return Jo(No(),go,e,t)},useMemoCache:Lo,useCacheRefresh:ks};Bs.useEffectEvent=fs;var Vs={readContext:ia,use:Io,useCallback:vs,useContext:ia,useEffect:us,useImperativeHandle:gs,useInsertionEffect:ps,useLayoutEffect:ms,useMemo:ys,useReducer:Vo,useRef:os,useState:function(){return Vo(Ro)},useDebugValue:_s,useDeferredValue:function(e,t){var n=No();return go===null?bs(n,e,t):xs(n,go.memoizedState,e,t)},useTransition:function(){var e=Vo(Ro)[0],t=No().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:B,useId:Os,useHostTransitionStatus:Ds,useFormState:is,useActionState:is,useOptimistic:function(e,t){var n=No();return go===null?(n.baseState=e,[e,n.queue.dispatch]):Jo(n,go,e,t)},useMemoCache:Lo,useCacheRefresh:ks};Vs.useEffectEvent=fs;function Hs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:m({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Us={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pu(),i=Ka(r);i.payload=t,n!=null&&(i.callback=n),t=qa(e,i,r),t!==null&&(hu(t,e,r),Ja(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pu(),i=Ka(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=qa(e,i,r),t!==null&&(hu(t,e,r),Ja(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pu(),r=Ka(n);r.tag=2,t!=null&&(r.callback=t),t=qa(e,r,n),t!==null&&(hu(t,e,n),Ja(t,e,n))}};function Ws(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Or(n,r)||!Or(i,a):!0}function Gs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Us.enqueueReplaceState(t,t.state,null)}function Ks(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=m({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function qs(e){ti(e)}function Js(e){console.error(e)}function Ys(e){ti(e)}function Xs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Zs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Qs(e,t,n){return n=Ka(n),n.tag=3,n.payload={element:null},n.callback=function(){Xs(e,t)},n}function U(e){return e=Ka(e),e.tag=3,e}function $s(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Zs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Zs(t,n,r),typeof i!=`function`&&(ru===null?ru=new Set([this]):ru.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function ec(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ta(t,n,a,!0),n=I.current,n!==null){switch(n.tag){case 31:case 13:return oo===null?Du():n.alternate===null&&Wl===0&&(Wl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Oa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Gu(e,r,a)),!1;case 22:return n.flags|=65536,r===Oa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Gu(e,r,a)),!1}throw Error(i(435,n.tag))}return Gu(e,r,a),Du(),!1}if(P)return t=I.current,t===null?(r!==Vi&&(t=Error(i(423),{cause:r}),Ji(Si(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Si(r,n),a=Qs(e.stateNode,r,a),Ya(e,a),Wl!==4&&(Wl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Vi&&(e=Error(i(422),{cause:r}),Ji(Si(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Si(o,n),Xl===null?Xl=[o]:Xl.push(o),Wl!==4&&(Wl=2),t===null)return!0;r=Si(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Qs(n.stateNode,r,e),Ya(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(ru===null||!ru.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=U(a),$s(a,e,n,r),Ya(n,a),!1}n=n.return}while(n!==null);return!1}var tc=Error(i(461)),nc=!1;function rc(e,t,n,r){t.child=e===null?Ha(t,null,n,r):Va(t,e.child,n,r)}function ic(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ra(t),r=To(e,t,n,o,a,i),s=ko(),e!==null&&!nc?(Ao(e,t,i),Dc(e,t,i)):(P&&s&&Pi(t),t.flags|=1,rc(e,t,r,i),t.child)}function ac(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!pi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,oc(e,t,a,r,i)):(e=gi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Oc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Or:n,n(o,r)&&e.ref===t.ref)return Dc(e,t,i)}return t.flags|=1,e=mi(a,r),e.ref=t.ref,e.return=t,t.child=e}function oc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Or(a,r)&&e.ref===t.ref){if(nc=!1,t.pendingProps=r=a,Oc(e,i))e.flags&131072&&(nc=!0);else return t.lanes=e.lanes,Dc(e,t,i)}}return mc(e,t,n,r,i)}function sc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return lc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ca(t,a===null?null:a.cachePool),a===null?io():ro(t,a),lo(t);else return r=t.lanes=536870912,lc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ca(t,null),io(),uo(t)):(Ca(t,a.cachePool),ro(t,a),uo(t),t.memoizedState=null);return rc(e,t,i,n),t.child}function cc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function lc(e,t,n,r,i){var a=Sa();return a=a===null?null:{parent:ua._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ca(t,null),io(),lo(t),e!==null&&ta(e,t,r,!0),t.childLanes=i,null}function uc(e,t){return t=Sc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function dc(e,t,n){return Va(t,e.child,null,n),e=uc(t,t.pendingProps),e.flags|=2,fo(t),t.memoizedState=null,e}function fc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(P){if(r.mode===`hidden`)return e=uc(t,r),t.lanes=536870912,cc(null,e);if(co(t),(e=Ri)?(e=af(e,Bi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ki===null?null:{id:Ai,overflow:ji},retryLane:536870912,hydrationErrors:null},n=yi(e),n.return=t,t.child=n,Li=t,Ri=null)):e=null,e===null)throw Hi(t);return t.lanes=536870912,null}return uc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(co(t),a){if(t.flags&256)t.flags&=-257,t=dc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(nc||ta(e,t,n,!1),a=(n&e.childLanes)!==0,nc||a){if(r=Ll,r!==null&&(s=ot(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ci(e,s),hu(r,e,s),tc;Du(),t=dc(e,t,n)}else e=o.treeContext,Ri=lf(s.nextSibling),Li=t,P=!0,zi=null,Bi=!1,e!==null&&Ii(t,e),t=uc(t,r),t.flags|=4096;return t}return e=mi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function pc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function mc(e,t,n,r,i){return ra(t),n=To(e,t,n,r,void 0,i),r=ko(),e!==null&&!nc?(Ao(e,t,i),Dc(e,t,i)):(P&&r&&Pi(t),t.flags|=1,rc(e,t,n,i),t.child)}function hc(e,t,n,r,i,a){return ra(t),t.updateQueue=null,n=Do(t,r,n,i),Eo(e),r=ko(),e!==null&&!nc?(Ao(e,t,a),Dc(e,t,a)):(P&&r&&Pi(t),t.flags|=1,rc(e,t,n,a),t.child)}function gc(e,t,n,r,i){if(ra(t),t.stateNode===null){var a=ui,o=n.contextType;typeof o==`object`&&o&&(a=ia(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Us,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Wa(t),o=n.contextType,a.context=typeof o==`object`&&o?ia(o):ui,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Hs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Us.enqueueReplaceState(a,a.state,null),Qa(t,r,a,i),Za(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Ks(n,s);a.props=c;var l=a.context,u=n.contextType;o=ui,typeof u==`object`&&u&&(o=ia(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Gs(t,a,r,o),Ua=!1;var f=t.memoizedState;a.state=f,Qa(t,r,a,i),Za(),l=t.memoizedState,s||f!==l||Ua?(typeof d==`function`&&(Hs(t,n,d,r),l=t.memoizedState),(c=Ua||Ws(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ga(e,t),o=t.memoizedProps,u=Ks(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ui,typeof l==`object`&&l&&(c=ia(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Gs(t,a,r,c),Ua=!1,f=t.memoizedState,a.state=f,Qa(t,r,a,i),Za();var p=t.memoizedState;o!==d||f!==p||Ua||e!==null&&e.dependencies!==null&&na(e.dependencies)?(typeof s==`function`&&(Hs(t,n,s,r),p=t.memoizedState),(u=Ua||Ws(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&na(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,pc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Va(t,e.child,null,i),t.child=Va(t,null,n,i)):rc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Dc(e,t,i),e}function W(e,t,n,r){return Ki(),t.flags|=256,rc(e,t,n,r),t.child}var _c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vc(e){return{baseLanes:e,cachePool:wa()}}function yc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Jl),e}function bc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(po.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(P){if(a?so(t):uo(t),(e=Ri)?(e=af(e,Bi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ki===null?null:{id:Ai,overflow:ji},retryLane:536870912,hydrationErrors:null},n=yi(e),n.return=t,t.child=n,Li=t,Ri=null)):e=null,e===null)throw Hi(t);return sf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(uo(t),a=t.mode,c=Sc({mode:`hidden`,children:c},a),r=_i(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=vc(n),r.childLanes=yc(e,s,n),t.memoizedState=_c,cc(null,r)):(so(t),xc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(so(t),t.flags&=-257,t=Cc(e,t,n)):t.memoizedState===null?(uo(t),c=r.fallback,a=t.mode,r=Sc({mode:`visible`,children:r.children},a),c=_i(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Va(t,e.child,null,n),r=t.child,r.memoizedState=vc(n),r.childLanes=yc(e,s,n),t.memoizedState=_c,t=cc(null,r)):(uo(t),t.child=e.child,t.flags|=128,t=null);else if(so(t),sf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Ji({value:r,source:null,stack:null}),t=Cc(e,t,n)}else if(nc||ta(e,t,n,!1),s=(n&e.childLanes)!==0,nc||s){if(s=Ll,s!==null&&(r=ot(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ci(e,r),hu(s,e,r),tc;of(c)||Du(),t=Cc(e,t,n)}else of(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ri=lf(c.nextSibling),Li=t,P=!0,zi=null,Bi=!1,e!==null&&Ii(t,e),t=xc(t,r.children),t.flags|=4096);return t}return a?(uo(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=mi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=_i(c,a,n,null),c.flags|=2):c=mi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,cc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=vc(n):(a=c.cachePool,a===null?a=wa():(l=ua._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=yc(e,s,n),t.memoizedState=_c,cc(e.child,r)):(so(t),n=e.child,e=n.sibling,n=mi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function xc(e,t){return t=Sc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Sc(e,t){return e=fi(22,e,null,t),e.lanes=0,e}function Cc(e,t,n){return Va(t,e.child,null,n),e=xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),$i(e.return,t,n)}function Tc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Ec(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=po.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,A(po,o),rc(e,t,r,n),r=P?Ei:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wc(e,n,t);else if(e.tag===19)wc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&mo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Tc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&mo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Tc(t,!0,n,null,a,r);break;case`together`:Tc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Dc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Gl|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ta(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=mi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=mi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Oc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&na(e)))}function kc(e,t,n){switch(t.tag){case 3:he(t,t.stateNode.containerInfo),Zi(t,ua,e.memoizedState.cache),Ki();break;case 27:case 5:_e(t);break;case 4:he(t,t.stateNode.containerInfo);break;case 10:Zi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,co(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(so(t),e=Dc(e,t,n),e===null?null:e.sibling):bc(e,t,n):(so(t),t.flags|=128,null);so(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(ta(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Ec(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),A(po,po.current),r)break;return null;case 22:return t.lanes=0,sc(e,t,n,t.pendingProps);case 24:Zi(t,ua,e.memoizedState.cache)}return Dc(e,t,n)}function Ac(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)nc=!0;else{if(!Oc(e,n)&&!(t.flags&128))return nc=!1,kc(e,t,n);nc=!!(e.flags&131072)}}else nc=!1,P&&t.flags&1048576&&Ni(t,Ei,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ja(t.elementType),t.type=e,typeof e==`function`)pi(e)?(r=Ks(e,r),t.tag=1,t=gc(null,t,e,r,n)):(t.tag=0,t=mc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===C){t.tag=11,t=ic(null,t,e,r,n);break a}if(a===ee){t.tag=14,t=ac(null,t,e,r,n);break a}}throw t=oe(e)||e,Error(i(306,t,``))}}return t;case 0:return mc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ks(r,t.pendingProps),gc(e,t,r,a,n);case 3:a:{if(he(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ga(e,t),Qa(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Zi(t,ua,r),r!==o.cache&&ea(t,[ua],n,!0),Za(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=W(e,t,r,n);break a}if(r!==a){a=Si(Error(i(424)),t),Ji(a),t=W(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ri=lf(e.firstChild),Li=t,P=!0,zi=null,Bi=!0,n=Ha(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ki(),r===a){t=Dc(e,t,n);break a}rc(e,t,r,n)}t=t.child}return t;case 26:return pc(e,t),e===null?(n=Af(t.type,null,t.pendingProps,null))?t.memoizedState=n:P||(n=t.type,e=t.pendingProps,r=Vd(j.current).createElement(n),r[ft]=t,r[pt]=e,Fd(r,n,e),Tt(r),t.stateNode=r):t.memoizedState=Af(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return _e(t),e===null&&P&&(r=t.stateNode=pf(t.type,t.pendingProps,j.current),Li=t,Bi=!0,a=Ri,Qd(t.type)?(uf=a,Ri=lf(r.firstChild)):Ri=a),rc(e,t,t.pendingProps.children,n),pc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&P&&((a=r=Ri)&&(r=nf(r,t.type,t.pendingProps,Bi),r===null?a=!1:(t.stateNode=r,Li=t,Ri=lf(r.firstChild),Bi=!1,a=!0)),a||Hi(t)),_e(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Wd(a,o)?r=null:s!==null&&Wd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=To(e,t,Oo,null,null,n),$f._currentValue=a),pc(e,t),rc(e,t,r,n),t.child;case 6:return e===null&&P&&((e=n=Ri)&&(n=rf(n,t.pendingProps,Bi),n===null?e=!1:(t.stateNode=n,Li=t,Ri=null,e=!0)),e||Hi(t)),null;case 13:return bc(e,t,n);case 4:return he(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Va(t,null,r,n):rc(e,t,r,n),t.child;case 11:return ic(e,t,t.type,t.pendingProps,n);case 7:return rc(e,t,t.pendingProps,n),t.child;case 8:return rc(e,t,t.pendingProps.children,n),t.child;case 12:return rc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Zi(t,t.type,r.value),rc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ra(t),a=ia(a),r=r(a),t.flags|=1,rc(e,t,r,n),t.child;case 14:return ac(e,t,t.type,t.pendingProps,n);case 15:return oc(e,t,t.type,t.pendingProps,n);case 19:return Ec(e,t,n);case 31:return fc(e,t,n);case 22:return sc(e,t,n,t.pendingProps);case 24:return ra(t),r=ia(ua),e===null?(a=Sa(),a===null&&(a=Ll,o=da(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Wa(t),Zi(t,ua,a)):((e.lanes&n)!==0&&(Ga(e,t),Qa(t,null,null,n),Za()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Zi(t,ua,r),r!==a.cache&&ea(t,[ua],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Zi(t,ua,r))),rc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function jc(e){e.flags|=4}function Mc(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(wu())e.flags|=8192;else throw Ma=Oa,Ea}}else e.flags&=-16777217}function Nc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Gf(t)){if(wu())e.flags|=8192;else throw Ma=Oa,Ea}}function Pc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:et(),e.lanes|=t,Yl|=t)}function Fc(e,t){if(!P)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function G(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ic(e,t,n){var r=t.pendingProps;switch(Fi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return G(t),null;case 1:return G(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Qi(ua),ge(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Gi(t)?jc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,qi())),G(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(jc(t),o===null?(G(t),Mc(t,a,null,r,n)):(G(t),Nc(t,o))):o?o===e.memoizedState?(G(t),t.flags&=-16777217):(jc(t),G(t),Nc(t,o)):(e=e.memoizedProps,e!==r&&jc(t),G(t),Mc(t,a,e,r,n)),null;case 27:if(ve(t),n=j.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return G(t),null}e=fe.current,Gi(t)?Ui(t,e):(e=pf(a,r,n),t.stateNode=e,jc(t))}return G(t),null;case 5:if(ve(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return G(t),null}if(o=fe.current,Gi(t))Ui(t,o);else{var s=Vd(j.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ft]=t,o[pt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Fd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&jc(t)}}return G(t),Mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=j.current,Gi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Li,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ft]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||Hi(t,!0)}else e=Vd(e).createTextNode(r),e[ft]=t,t.stateNode=e}return G(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Gi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ft]=t}else Ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;G(t),e=!1}else n=qi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(fo(t),t):(fo(t),null);if(t.flags&128)throw Error(i(558))}return G(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Gi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ft]=t}else Ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;G(t),a=!1}else a=qi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(fo(t),t):(fo(t),null)}return fo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Pc(t,t.updateQueue),G(t),null);case 4:return ge(),e===null&&Sd(t.stateNode.containerInfo),G(t),null;case 10:return Qi(t.type),G(t),null;case 19:if(k(po),r=t.memoizedState,r===null)return G(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)Fc(r,!1);else{if(Wl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=mo(e),o!==null){for(t.flags|=128,Fc(r,!1),e=o.updateQueue,t.updateQueue=e,Pc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)hi(n,e),n=n.sibling;return A(po,po.current&1|2),P&&Mi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&je()>tu&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304)}}else{if(!a){if(e=mo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Pc(t,e),Fc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!P)return G(t),null}else 2*je()-r.renderingStartTime>tu&&n!==536870912&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(G(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=je(),e.sibling=null,n=po.current,A(po,a?n&1|2:n&1),P&&Mi(t,r.treeForkCount),e);case 22:case 23:return fo(t),ao(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(G(t),t.subtreeFlags&6&&(t.flags|=8192)):G(t),n=t.updateQueue,n!==null&&Pc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&k(xa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Qi(ua),G(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Lc(e,t){switch(Fi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qi(ua),ge(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ve(t),null;case 31:if(t.memoizedState!==null){if(fo(t),t.alternate===null)throw Error(i(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(fo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return k(po),null;case 4:return ge(),null;case 10:return Qi(t.type),null;case 22:case 23:return fo(t),ao(),e!==null&&k(xa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Qi(ua),null;case 25:return null;default:return null}}function Rc(e,t){switch(Fi(t),t.tag){case 3:Qi(ua),ge();break;case 26:case 27:case 5:ve(t);break;case 4:ge();break;case 31:t.memoizedState!==null&&fo(t);break;case 13:fo(t);break;case 19:k(po);break;case 10:Qi(t.type);break;case 22:case 23:fo(t),ao(),e!==null&&k(xa);break;case 24:Qi(ua)}}function zc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){X(t,t.return,e)}}function Bc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){X(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){X(t,t.return,e)}}function Vc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{eo(t,n)}catch(t){X(e,e.return,t)}}}function Hc(e,t,n){n.props=Ks(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){X(e,t,n)}}function Uc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){X(e,t,n)}}function Wc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){X(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){X(e,t,n)}else n.current=null}}function Gc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){X(e,e.return,t)}}function Kc(e,t,n){try{var r=e.stateNode;Id(r,e.type,n,t),r[pt]=t}catch(t){X(e,e.return,t)}}function qc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qd(e.type)||e.tag===4}function Jc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||qc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=on));else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Yc(e,t,n),e=e.sibling;e!==null;)Yc(e,t,n),e=e.sibling}function Xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Qd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Fd(t,r,n),t[ft]=e,t[pt]=n}catch(t){X(e,e.return,t)}}var Qc=!1,$c=!1,el=!1,tl=typeof WeakSet==`function`?WeakSet:Set,nl=null;function rl(e,t){if(e=e.containerInfo,zd=cp,e=Mr(e),Nr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Bd={focusedElem:e,selectionRange:n},cp=!1,nl=t;nl!==null;)if(t=nl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,nl=e;else for(;nl!==null;){switch(t=nl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Ks(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){X(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)tf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:tf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,nl=e;break}nl=t.return}}function il(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:yl(e,n),r&4&&zc(5,n);break;case 1:if(yl(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){X(n,n.return,e)}else{var i=Ks(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){X(n,n.return,e)}}}r&64&&Vc(n),r&512&&Uc(n,n.return);break;case 3:if(yl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{eo(e,t)}catch(e){X(n,n.return,e)}}break;case 27:t===null&&r&4&&Zc(n);case 26:case 5:yl(e,n),t===null&&r&4&&Gc(n),r&512&&Uc(n,n.return);break;case 12:yl(e,n);break;case 31:yl(e,n),r&4&&ul(e,n);break;case 13:yl(e,n),r&4&&dl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ju.bind(null,n),cf(e,n))));break;case 22:if(r=n.memoizedState!==null||Qc,!r){t=t!==null&&t.memoizedState!==null||$c,i=Qc;var a=$c;Qc=r,($c=t)&&!a?xl(e,n,!!(n.subtreeFlags&8772)):yl(e,n),Qc=i,$c=a}break;case 30:break;default:yl(e,n)}}function al(e){var t=e.alternate;t!==null&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&bt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ol=null,sl=!1;function cl(e,t,n){for(n=n.child;n!==null;)ll(e,t,n),n=n.sibling}function ll(e,t,n){if(Ve&&typeof Ve.onCommitFiberUnmount==`function`)try{Ve.onCommitFiberUnmount(Be,n)}catch{}switch(n.tag){case 26:$c||Wc(n,t),cl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:$c||Wc(n,t);var r=ol,i=sl;Qd(n.type)&&(ol=n.stateNode,sl=!1),cl(e,t,n),mf(n.stateNode),ol=r,sl=i;break;case 5:$c||Wc(n,t);case 6:if(r=ol,i=sl,ol=null,cl(e,t,n),ol=r,sl=i,ol!==null){if(sl)try{(ol.nodeType===9?ol.body:ol.nodeName===`HTML`?ol.ownerDocument.body:ol).removeChild(n.stateNode)}catch(e){X(n,t,e)}else try{ol.removeChild(n.stateNode)}catch(e){X(n,t,e)}}break;case 18:ol!==null&&(sl?(e=ol,$d(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):$d(ol,n.stateNode));break;case 4:r=ol,i=sl,ol=n.stateNode.containerInfo,sl=!0,cl(e,t,n),ol=r,sl=i;break;case 0:case 11:case 14:case 15:Bc(2,n,t),$c||Bc(4,n,t),cl(e,t,n);break;case 1:$c||(Wc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Hc(n,t,r)),cl(e,t,n);break;case 21:cl(e,t,n);break;case 22:$c=(r=$c)||n.memoizedState!==null,cl(e,t,n),$c=r;break;default:cl(e,t,n)}}function ul(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){X(t,t.return,e)}}}function dl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){X(t,t.return,e)}}function fl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new tl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new tl),t;default:throw Error(i(435,e.tag))}}function pl(e,t){var n=fl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Yu.bind(null,e,t);t.then(r,r)}})}function ml(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Qd(c.type)){ol=c.stateNode,sl=!1;break a}break;case 5:ol=c.stateNode,sl=!1;break a;case 3:case 4:ol=c.stateNode.containerInfo,sl=!0;break a}c=c.return}if(ol===null)throw Error(i(160));ll(o,s,a),ol=null,sl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)gl(t,e),t=t.sibling}var hl=null;function gl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ml(t,e),_l(e),r&4&&(Bc(3,e,e.return),zc(3,e),Bc(5,e,e.return));break;case 1:ml(t,e),_l(e),r&512&&($c||n===null||Wc(n,n.return)),r&64&&Qc&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=hl;if(ml(t,e),_l(e),r&512&&($c||n===null||Wc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null){if(r===null){if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[yt]||o[ft]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Fd(o,r,n),o[ft]=e,Tt(o),r=o;break a;case`link`:var s=Hf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Fd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Hf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Fd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ft]=e,Tt(o),r=o}e.stateNode=r}else Uf(a,e.type,e.stateNode)}else e.stateNode=Lf(a,r,e.memoizedProps)}else o===r?r===null&&e.stateNode!==null&&Kc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Uf(a,e.type,e.stateNode):Lf(a,r,e.memoizedProps))}break;case 27:ml(t,e),_l(e),r&512&&($c||n===null||Wc(n,n.return)),n!==null&&r&4&&Kc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ml(t,e),_l(e),r&512&&($c||n===null||Wc(n,n.return)),e.flags&32){a=e.stateNode;try{Zt(a,``)}catch(t){X(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Kc(e,a,n===null?a:n.memoizedProps)),r&1024&&(el=!0);break;case 6:if(ml(t,e),_l(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){X(e,e.return,t)}}break;case 3:if(Vf=null,a=hl,hl=_f(t.containerInfo),ml(t,e),hl=a,_l(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){X(e,e.return,t)}el&&(el=!1,vl(e));break;case 4:r=hl,hl=_f(e.stateNode.containerInfo),ml(t,e),_l(e),hl=r;break;case 12:ml(t,e),_l(e);break;case 31:ml(t,e),_l(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,pl(e,r)));break;case 13:ml(t,e),_l(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&($l=je()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,pl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=Qc,d=$c;if(Qc=u||a,$c=d||l,ml(t,e),$c=d,Qc=u,_l(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Qc||$c||bl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){X(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){X(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?ef(m,!0):ef(l.stateNode,!1)}catch(e){X(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,pl(e,n))));break;case 19:ml(t,e),_l(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,pl(e,r)));break;case 30:break;case 21:break;default:ml(t,e),_l(e)}}function _l(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(qc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Xc(e,Jc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Zt(o,``),n.flags&=-33),Xc(e,Jc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Yc(e,Jc(e),s);break;default:throw Error(i(161))}}catch(t){X(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function yl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)il(e,t.alternate,t),t=t.sibling}function bl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Bc(4,t,t.return),bl(t);break;case 1:Wc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Hc(t,t.return,n),bl(t);break;case 27:mf(t.stateNode);case 26:case 5:Wc(t,t.return),bl(t);break;case 22:t.memoizedState===null&&bl(t);break;case 30:bl(t);break;default:bl(t)}e=e.sibling}}function xl(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:xl(i,a,n),zc(4,a);break;case 1:if(xl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){X(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)$a(c[i],s)}catch(e){X(r,r.return,e)}}n&&o&64&&Vc(a),Uc(a,a.return);break;case 27:Zc(a);case 26:case 5:xl(i,a,n),n&&r===null&&o&4&&Gc(a),Uc(a,a.return);break;case 12:xl(i,a,n);break;case 31:xl(i,a,n),n&&o&4&&ul(i,a);break;case 13:xl(i,a,n),n&&o&4&&dl(i,a);break;case 22:a.memoizedState===null&&xl(i,a,n),Uc(a,a.return);break;case 30:break;default:xl(i,a,n)}t=t.sibling}}function Sl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&fa(n))}function Cl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fa(e))}function wl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Tl(e,t,n,r),t=t.sibling}function Tl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:wl(e,t,n,r),i&2048&&zc(9,t);break;case 1:wl(e,t,n,r);break;case 3:wl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fa(e)));break;case 12:if(i&2048){wl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){X(t,t.return,e)}}else wl(e,t,n,r);break;case 31:wl(e,t,n,r);break;case 13:wl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?wl(e,t,n,r):(a._visibility|=2,El(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?wl(e,t,n,r):K(e,t),i&2048&&Sl(o,t);break;case 24:wl(e,t,n,r),i&2048&&Cl(t.alternate,t);break;default:wl(e,t,n,r)}}function El(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:El(a,o,s,c,i),zc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,El(a,o,s,c,i)):u._visibility&2?El(a,o,s,c,i):K(a,o),i&&l&2048&&Sl(o.alternate,o);break;case 24:El(a,o,s,c,i),i&&l&2048&&Cl(o.alternate,o);break;default:El(a,o,s,c,i)}t=t.sibling}}function K(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:K(n,r),i&2048&&Sl(r.alternate,r);break;case 24:K(n,r),i&2048&&Cl(r.alternate,r);break;default:K(n,r)}t=t.sibling}}var Dl=8192;function Ol(e,t,n){if(e.subtreeFlags&Dl)for(e=e.child;e!==null;)q(e,t,n),e=e.sibling}function q(e,t,n){switch(e.tag){case 26:Ol(e,t,n),e.flags&Dl&&e.memoizedState!==null&&Kf(n,hl,e.memoizedState,e.memoizedProps);break;case 5:Ol(e,t,n);break;case 3:case 4:var r=hl;hl=_f(e.stateNode.containerInfo),Ol(e,t,n),hl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Dl,Dl=16777216,Ol(e,t,n),Dl=r):Ol(e,t,n));break;default:Ol(e,t,n)}}function kl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Al(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];nl=r,Nl(r,e)}kl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jl(e),e=e.sibling}function jl(e){switch(e.tag){case 0:case 11:case 15:Al(e),e.flags&2048&&Bc(9,e,e.return);break;case 3:Al(e);break;case 12:Al(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ml(e)):Al(e);break;default:Al(e)}}function Ml(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];nl=r,Nl(r,e)}kl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Bc(8,t,t.return),Ml(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ml(t));break;default:Ml(t)}e=e.sibling}}function Nl(e,t){for(;nl!==null;){var n=nl;switch(n.tag){case 0:case 11:case 15:Bc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:fa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,nl=r;else a:for(n=e;nl!==null;){r=nl;var i=r.sibling,a=r.return;if(al(r),r===n){nl=null;break a}if(i!==null){i.return=a,nl=i;break a}nl=a}}}var Pl={getCacheForType:function(e){var t=ia(ua),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ia(ua).controller.signal}},Fl=typeof WeakMap==`function`?WeakMap:Map,Il=0,Ll=null,J=null,Y=0,Rl=0,zl=null,Bl=!1,Vl=!1,Hl=!1,Ul=0,Wl=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=null,Zl=null,Ql=!1,$l=0,eu=0,tu=1/0,nu=null,ru=null,iu=0,au=null,ou=null,su=0,cu=0,lu=null,uu=null,du=0,fu=null;function pu(){return Il&2&&Y!==0?Y&-Y:D.T===null?lt():dd()}function mu(){if(Jl===0){if(!(Y&536870912)||P){var e=Je;Je<<=1,!(Je&3932160)&&(Je=262144),Jl=e}else Jl=536870912}return e=I.current,e!==null&&(e.flags|=32),Jl}function hu(e,t,n){(e===Ll&&(Rl===2||Rl===9)||e.cancelPendingCommit!==null)&&(Su(e,0),yu(e,Y,Jl,!1)),nt(e,n),(!(Il&2)||e!==Ll)&&(e===Ll&&(!(Il&2)&&(Kl|=n),Wl===4&&yu(e,Y,Jl,!1)),rd(e))}function gu(e,t,n){if(Il&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||Qe(e,t),a=r?Au(e,t):Ou(e,t,!0),o=r;do{if(a===0){Vl&&!r&&yu(e,t,0,!1);break}if(n=e.current.alternate,o&&!vu(n)){a=Ou(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Xl;var l=c.current.memoizedState.isDehydrated;if(l&&(Su(c,s).flags|=256),s=Ou(c,s,!1),s!==2){if(Hl&&!l){c.errorRecoveryDisabledLanes|=o,Kl|=o,a=4;break a}o=Zl,Zl=a,o!==null&&(Zl===null?Zl=o:Zl.push.apply(Zl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Su(e,0),yu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:yu(r,t,Jl,!Bl);break a;case 2:Zl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=$l+300-je(),10<a)){if(yu(r,t,Jl,!Bl),Ze(r,0,!0)!==0)break a;su=t,r.timeoutHandle=qd(_u.bind(null,r,n,Zl,nu,Ql,t,Jl,Kl,Yl,Bl,o,`Throttled`,-0,0),a);break a}_u(r,n,Zl,nu,Ql,t,Jl,Kl,Yl,Bl,o,null,-0,0)}break}while(1);rd(e)}function _u(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:on},q(t,a,d);var m=(a&62914560)===a?$l-je():(a&4194048)===a?eu-je():0;if(m=Jf(d,m),m!==null){su=a,e.cancelPendingCommit=m(Lu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),yu(e,a,o,!l);return}}Lu(e,t,a,n,r,i,o,s,c)}function vu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Dr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function yu(e,t,n,r){t&=~ql,t&=~Kl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ue(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&it(e,n,t)}function bu(){return Il&6?!0:(id(0,!1),!1)}function xu(){if(J!==null){if(Rl===0)var e=J.return;else e=J,F=Xi=null,jo(e),Fa=null,Ia=0,e=J;for(;e!==null;)Rc(e.alternate,e),e=e.return;J=null}}function Su(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Jd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),su=0,xu(),Ll=e,J=n=mi(e.current,null),Y=t,Rl=0,zl=null,Bl=!1,Vl=Qe(e,t),Hl=!1,Yl=Jl=ql=Kl=Gl=Wl=0,Zl=Xl=null,Ql=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ue(r),a=1<<i;t|=e[i],r&=~a}return Ul=t,ai(),n}function Cu(e,t){L=null,D.H=Rs,t===Ta||t===Da?(t=Na(),Rl=3):t===Ea?(t=Na(),Rl=4):Rl=t===tc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,zl=t,J===null&&(Wl=1,Xs(e,Si(t,e.current)))}function wu(){var e=I.current;return e===null?!0:(Y&4194048)===Y?oo===null:(Y&62914560)===Y||Y&536870912?e===oo:!1}function Tu(){var e=D.H;return D.H=Rs,e===null?Rs:e}function Eu(){var e=D.A;return D.A=Pl,e}function Du(){Wl=4,Bl||(Y&4194048)!==Y&&I.current!==null||(Vl=!0),!(Gl&134217727)&&!(Kl&134217727)||Ll===null||yu(Ll,Y,Jl,!1)}function Ou(e,t,n){var r=Il;Il|=2;var i=Tu(),a=Eu();(Ll!==e||Y!==t)&&(nu=null,Su(e,t)),t=!1;var o=Wl;a:do try{if(Rl!==0&&J!==null){var s=J,c=zl;switch(Rl){case 8:xu(),o=6;break a;case 3:case 2:case 9:case 6:I.current===null&&(t=!0);var l=Rl;if(Rl=0,zl=null,Pu(e,s,c,l),n&&Vl){o=0;break a}break;default:l=Rl,Rl=0,zl=null,Pu(e,s,c,l)}}ku(),o=Wl;break}catch(t){Cu(e,t)}while(1);return t&&e.shellSuspendCounter++,F=Xi=null,Il=r,D.H=i,D.A=a,J===null&&(Ll=null,Y=0,ai()),o}function ku(){for(;J!==null;)Mu(J)}function Au(e,t){var n=Il;Il|=2;var r=Tu(),a=Eu();Ll!==e||Y!==t?(nu=null,tu=je()+500,Su(e,t)):Vl=Qe(e,t);a:do try{if(Rl!==0&&J!==null){t=J;var o=zl;b:switch(Rl){case 1:Rl=0,zl=null,Pu(e,t,o,1);break;case 2:case 9:if(ka(o)){Rl=0,zl=null,Nu(t);break}t=function(){Rl!==2&&Rl!==9||Ll!==e||(Rl=7),rd(e)},o.then(t,t);break a;case 3:Rl=7;break a;case 4:Rl=5;break a;case 7:ka(o)?(Rl=0,zl=null,Nu(t)):(Rl=0,zl=null,Pu(e,t,o,7));break;case 5:var s=null;switch(J.tag){case 26:s=J.memoizedState;case 5:case 27:var c=J;if(s?Gf(s):c.stateNode.complete){Rl=0,zl=null;var l=c.sibling;if(l!==null)J=l;else{var u=c.return;u===null?J=null:(J=u,Fu(u))}break b}}Rl=0,zl=null,Pu(e,t,o,5);break;case 6:Rl=0,zl=null,Pu(e,t,o,6);break;case 8:xu(),Wl=6;break a;default:throw Error(i(462))}}ju();break}catch(t){Cu(e,t)}while(1);return F=Xi=null,D.H=r,D.A=a,Il=n,J===null?(Ll=null,Y=0,ai(),Wl):0}function ju(){for(;J!==null&&!ke();)Mu(J)}function Mu(e){var t=Ac(e.alternate,e,Ul);e.memoizedProps=e.pendingProps,t===null?Fu(e):J=t}function Nu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=hc(n,t,t.pendingProps,t.type,void 0,Y);break;case 11:t=hc(n,t,t.pendingProps,t.type.render,t.ref,Y);break;case 5:jo(t);default:Rc(n,t),t=J=hi(t,Ul),t=Ac(n,t,Ul)}e.memoizedProps=e.pendingProps,t===null?Fu(e):J=t}function Pu(e,t,n,r){F=Xi=null,jo(t),Fa=null,Ia=0;var i=t.return;try{if(ec(e,i,t,n,Y)){Wl=1,Xs(e,Si(n,e.current)),J=null;return}}catch(t){if(i!==null)throw J=i,t;Wl=1,Xs(e,Si(n,e.current)),J=null;return}t.flags&32768?(P||r===1?e=!0:Vl||Y&536870912?e=!1:(Bl=e=!0,(r===2||r===9||r===3||r===6)&&(r=I.current,r!==null&&r.tag===13&&(r.flags|=16384))),Iu(t,e)):Fu(t)}function Fu(e){var t=e;do{if(t.flags&32768){Iu(t,Bl);return}e=t.return;var n=Ic(t.alternate,t,Ul);if(n!==null){J=n;return}if(t=t.sibling,t!==null){J=t;return}J=t=e}while(t!==null);Wl===0&&(Wl=5)}function Iu(e,t){do{var n=Lc(e.alternate,e);if(n!==null){n.flags&=32767,J=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){J=e;return}J=e=n}while(e!==null);Wl=6,J=null}function Lu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Hu();while(iu!==0);if(Il&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=ii,rt(e,n,o,s,c,l),e===Ll&&(J=Ll=null,Y=0),ou=t,au=e,su=n,cu=o,lu=a,uu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Xu(Fe,function(){return Uu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=D.T,D.T=null,a=O.p,O.p=2,s=Il,Il|=4;try{rl(e,t,n)}finally{Il=s,O.p=a,D.T=r}}iu=1,Ru(),zu(),Bu()}}function Ru(){if(iu===1){iu=0;var e=au,t=ou,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=D.T,D.T=null;var r=O.p;O.p=2;var i=Il;Il|=4;try{gl(t,e);var a=Bd,o=Mr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&jr(s.ownerDocument.documentElement,s)){if(c!==null&&Nr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Ar(s,h),v=Ar(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}cp=!!zd,Bd=zd=null}finally{Il=i,O.p=r,D.T=n}}e.current=t,iu=2}}function zu(){if(iu===2){iu=0;var e=au,t=ou,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=D.T,D.T=null;var r=O.p;O.p=2;var i=Il;Il|=4;try{il(e,t.alternate,t)}finally{Il=i,O.p=r,D.T=n}}iu=3}}function Bu(){if(iu===4||iu===3){iu=0,Ae();var e=au,t=ou,n=su,r=uu;t.subtreeFlags&10256||t.flags&10256?iu=5:(iu=0,ou=au=null,Vu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ru=null),ct(n),t=t.stateNode,Ve&&typeof Ve.onCommitFiberRoot==`function`)try{Ve.onCommitFiberRoot(Be,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=D.T,i=O.p,O.p=2,D.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{D.T=t,O.p=i}}su&3&&Hu(),rd(e),i=e.pendingLanes,n&261930&&i&42?e===fu?du++:(du=0,fu=e):du=0,id(0,!1)}}function Vu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fa(t)))}function Hu(){return Ru(),zu(),Bu(),Uu()}function Uu(){if(iu!==5)return!1;var e=au,t=cu;cu=0;var n=ct(su),r=D.T,a=O.p;try{O.p=32>n?32:n,D.T=null,n=lu,lu=null;var o=au,s=su;if(iu=0,ou=au=null,su=0,Il&6)throw Error(i(331));var c=Il;if(Il|=4,jl(o.current),Tl(o,o.current,s,n),Il=c,id(0,!1),Ve&&typeof Ve.onPostCommitFiberRoot==`function`)try{Ve.onPostCommitFiberRoot(Be,o)}catch{}return!0}finally{O.p=a,D.T=r,Vu(e,t)}}function Wu(e,t,n){t=Si(n,t),t=Qs(e.stateNode,t,2),e=qa(e,t,2),e!==null&&(nt(e,2),rd(e))}function X(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ru===null||!ru.has(r))){e=Si(n,e),n=U(2),r=qa(t,n,2),r!==null&&($s(n,r,t,e),nt(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Fl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Hl=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ll===e&&(Y&n)===n&&(Wl===4||Wl===3&&(Y&62914560)===Y&&300>je()-$l?!(Il&2)&&Su(e,0):ql|=n,Yl===Y&&(Yl=0)),rd(e)}function qu(e,t){t===0&&(t=et()),e=ci(e,t),e!==null&&(nt(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return De(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ue(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=Y,a=Ze(r,r===Ll?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Qe(r,a)||(n=!0,ld(r,a))}r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&Kd()&&(e=nd);for(var t=je(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}iu!==0&&iu!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ue(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=$e(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Ll,n=Y,n=Ze(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Rl===2||Rl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Oe(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Qe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Oe(r),ct(n)){case 2:case 8:n=Pe;break;case 32:n=Fe;break;case 268435456:n=Le;break;default:n=Fe}return r=cd.bind(null,e),n=De(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Oe(r),e.callbackPriority=2,e.callbackNode=null,2}function cd(e,t){if(iu!==0&&iu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Hu()&&e.callbackNode!==n)return null;var r=Y;return r=Ze(e,e===Ll?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(gu(e,r,t),sd(e,je()),e.callbackNode!=null&&e.callbackNode===n?cd.bind(null,e):null)}function ld(e,t){if(Hu())return null;gu(e,t,!0)}function ud(){Xd(function(){Il&6?De(Ne,ad):od()})}function dd(){if(nd===0){var e=ha;e===0&&(e=qe,qe<<=1,!(qe&261888)&&(qe=256)),nd=e}return nd}function fd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:an(``+e)}function pd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function md(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=fd((i[pt]||null).action),o=r.submitter;o&&(t=(t=o[pt]||null)?fd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new En(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(nd!==0){var e=o?pd(i,o):new FormData(i);ws(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?pd(i,o):new FormData(i),ws(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var hd=0;hd<$r.length;hd++){var gd=$r[hd];ei(gd.toLowerCase(),`on`+(gd[0].toUpperCase()+gd.slice(1)))}ei(Gr,`onAnimationEnd`),ei(Kr,`onAnimationIteration`),ei(qr,`onAnimationStart`),ei(`dblclick`,`onDoubleClick`),ei(`focusin`,`onFocus`),ei(`focusout`,`onBlur`),ei(Jr,`onTransitionRun`),ei(Yr,`onTransitionStart`),ei(Xr,`onTransitionCancel`),ei(Zr,`onTransitionEnd`),kt(`onMouseEnter`,[`mouseout`,`mouseover`]),kt(`onMouseLeave`,[`mouseout`,`mouseover`]),kt(`onPointerEnter`,[`pointerout`,`pointerover`]),kt(`onPointerLeave`,[`pointerout`,`pointerover`]),Ot(`onCh
84ange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Ot(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Ot(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Ot(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Ot(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Ot(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var _d=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),vd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(_d));function yd(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ti(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){ti(e)}i.currentTarget=null,a=c}}}}function Z(e,t){var n=t[ht];n===void 0&&(n=t[ht]=new Set);var r=e+`__bubble`;n.has(r)||(Cd(t,e,2,!1),n.add(r))}function bd(e,t,n){var r=0;t&&(r|=4),Cd(n,e,r,t)}var xd=`_reactListening`+Math.random().toString(36).slice(2);function Sd(e){if(!e[xd]){e[xd]=!0,Et.forEach(function(t){t!==`selectionchange`&&(vd.has(t)||bd(t,!1,e),bd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xd]||(t[xd]=!0,bd(`selectionchange`,!1,t))}}function Cd(e,t,n,r){switch(hp(t)){case 2:var i=lp;break;case 8:i=up;break;default:i=dp}n=i.bind(null,t,n,e),i=void 0,!M||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function wd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var c=r.stateNode.containerInfo;if(c===i)break;if(o===4)for(o=r.return;o!==null;){var l=o.tag;if((l===3||l===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;c!==null;){if(o=xt(c),o===null)return;if(l=o.tag,l===5||l===6||l===26||l===27){r=a=o;continue a}c=c.parentNode}}r=r.return}pn(function(){var r=a,i=cn(n),o=[];a:{var c=Qr.get(e);if(c!==void 0){var l=En,u=e;switch(e){case`keypress`:if(xn(n)===0)break a;case`keydown`:case`keyup`:l=Wn;break;case`focusin`:u=`focus`,l=Fn;break;case`focusout`:u=`blur`,l=Fn;break;case`beforeblur`:case`afterblur`:l=Fn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Nn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Pn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Kn;break;case Gr:case Kr:case qr:l=In;break;case Zr:l=qn;break;case`scroll`:case`scrollend`:l=On;break;case`wheel`:l=Jn;break;case`copy`:case`cut`:case`paste`:l=Ln;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Gn;break;case`toggle`:case`beforetoggle`:l=Yn}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=mn(m,p),g!=null&&d.push(Td(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),o.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==sn&&(u=n.relatedTarget||n.fromElement)&&(xt(u)||u[mt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?xt(u):null,u!==null&&(f=s(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Nn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Gn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:Ct(l),h=u==null?c:Ct(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,xt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Dd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Od(o,c,l,d,!1),u!==null&&f!==null&&Od(o,f,u,d,!0)}}a:{if(c=r?Ct(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=hr;else if(lr(c)){if(gr)v=Tr;else{v=Cr;var y=Sr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&tn(r.elementType)&&(v=hr):v=wr;if(v&&=v(e,r)){ur(o,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&qt(c,`number`,c.value)}switch(y=r?Ct(r):window,e){case`focusin`:(lr(y)||y.contentEditable===`true`)&&(Fr=y,Ir=r,Lr=null);break;case`focusout`:Lr=Ir=Fr=null;break;case`mousedown`:Rr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Rr=!1,zr(o,n,i);break;case`selectionchange`:if(Pr)break;case`keydown`:case`keyup`:zr(o,n,i)}var b;if(Zn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else ar?rr(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(er&&n.locale!==`ko`&&(ar||x!==`onCompositionStart`?x===`onCompositionEnd`&&ar&&(b=bn()):(_n=i,vn=`value`in _n?_n.value:_n.textContent,ar=!0)),y=Ed(r,x),0<y.length&&(x=new Rn(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=ir(n),b!==null&&(x.data=b)))),(b=$n?or(e,n):sr(e,n))&&(x=Ed(r,`onBeforeInput`),0<x.length&&(y=new Rn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),md(o,e,r,n,i)}yd(o,t)})}function Td(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ed(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=mn(e,n),i!=null&&r.unshift(Td(e,i,a)),i=mn(e,t),i!=null&&r.push(Td(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Dd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Od(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=mn(n,a),l!=null&&o.unshift(Td(n,l,c))):i||(l=mn(n,a),l!=null&&o.push(Td(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var kd=/\r\n?/g,Ad=/\u0000|\uFFFD/g;
vendor: 35,817 bytes, lines 84-85
84function jd(e){return(typeof e==`string`?e:``+e).replace(kd,`
85`).replace(Ad,``)}function Md(e,t){return t=jd(t),jd(e)===t}function Nd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Zt(e,``+r);break;case`className`:Ft(e,`class`,r);break;case`tabIndex`:Ft(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ft(e,n,r);break;case`style`:en(e,r,o);break;case`data`:if(t!==`object`){Ft(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=an(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Nd(e,t,`name`,a.name,a,null),Nd(e,t,`formEncType`,a.formEncType,a,null),Nd(e,t,`formMethod`,a.formMethod,a,null),Nd(e,t,`formTarget`,a.formTarget,a,null)):(Nd(e,t,`encType`,a.encType,a,null),Nd(e,t,`method`,a.method,a,null),Nd(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=an(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=on);break;case`onScroll`:r!=null&&Z(`scroll`,e);break;case`onScrollEnd`:r!=null&&Z(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=an(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Z(`beforetoggle`,e),Z(`toggle`,e),Pt(e,`popover`,r);break;case`xlinkActuate`:It(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:It(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:It(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:It(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:It(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:It(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:It(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:It(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:It(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Pt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=nn.get(n)||n,Pt(e,n,r))}}function Pd(e,t,n,r,a,o){switch(n){case`style`:en(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Zt(e,``+r);break;case`onScroll`:r!=null&&Z(`scroll`,e);break;case`onScrollEnd`:r!=null&&Z(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=on);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!Dt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[pt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Pt(e,n,r)}}}function Fd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Z(`error`,e),Z(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Nd(e,t,o,s,n,null)}}a&&Nd(e,t,`srcSet`,n.srcSet,n,null),r&&Nd(e,t,`src`,n.src,n,null);return;case`input`:Z(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Nd(e,t,r,d,n,null)}}Kt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Z(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Nd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Jt(e,!!r,n,!0):Jt(e,!!r,t,!1);return;case`textarea`:for(s in Z(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Nd(e,t,s,c,n,null)}Xt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Nd(e,t,l,r,n,null)}return;case`dialog`:Z(`beforetoggle`,e),Z(`toggle`,e),Z(`cancel`,e),Z(`close`,e);break;case`iframe`:case`object`:Z(`load`,e);break;case`video`:case`audio`:for(r=0;r<_d.length;r++)Z(_d[r],e);break;case`image`:Z(`error`,e),Z(`load`,e);break;case`details`:Z(`toggle`,e);break;case`embed`:case`source`:case`link`:Z(`error`,e),Z(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Nd(e,t,u,r,n,null)}return;default:if(tn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Pd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Nd(e,t,c,r,n,null))}function Id(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Nd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Nd(e,t,p,m,r,f)}}Gt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Nd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Nd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Jt(e,!!n,n?[]:``,!1):Jt(e,!!n,t,!0)):Jt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Nd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Nd(e,t,s,a,r,o)}Yt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Nd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Nd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Nd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Nd(e,t,u,p,r,m)}return;default:if(tn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Pd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Pd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Nd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Nd(e,t,f,p,r,m)}function Ld(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Rd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Ld(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Ld(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var zd=null,Bd=null;function Vd(e){return e.nodeType===9?e:e.ownerDocument}function Hd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Ud(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Wd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gd=null;function Kd(){var e=window.event;return e&&e.type===`popstate`?e!==Gd&&(Gd=e,!0):(Gd=null,!1)}var qd=typeof setTimeout==`function`?setTimeout:void 0,Jd=typeof clearTimeout==`function`?clearTimeout:void 0,Yd=typeof Promise==`function`?Promise:void 0,Xd=typeof queueMicrotask==`function`?queueMicrotask:Yd===void 0?qd:function(e){return Yd.resolve(null).then(e).catch(Zd)};function Zd(e){setTimeout(function(){throw e})}function Qd(e){return e===`head`}function $d(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)mf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,mf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[yt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&mf(e.ownerDocument.body)}n=i}while(n);Np(t)}function ef(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function tf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:tf(n),bt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function nf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[yt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=lf(e.nextSibling),e===null)break}return null}function rf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lf(e.nextSibling),e===null))return null;return e}function af(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lf(e.nextSibling),e===null))return null;return e}function of(e){return e.data===`$?`||e.data===`$~`}function sf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function lf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var uf=null;function df(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function ff(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function pf(e,t,n){switch(t=Vd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function mf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);bt(e)}var hf=new Map,gf=new Set;function _f(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var vf=O.d;O.d={f:yf,r:bf,D:Cf,C:wf,L:Tf,m:Ef,X:Of,S:Df,M:kf};function yf(){var e=vf.f(),t=bu();return e||t}function bf(e){var t=St(e);t!==null&&t.tag===5&&t.type===`form`?Es(t):vf.r(e)}var xf=typeof document>`u`?null:document;function Sf(e,t,n){var r=xf;if(r&&typeof t==`string`&&t){var i=Wt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),gf.has(i)||(gf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Fd(t,`link`,e),Tt(t),r.head.appendChild(t)))}}function Cf(e){vf.D(e),Sf(`dns-prefetch`,e,null)}function wf(e,t){vf.C(e,t),Sf(`preconnect`,e,t)}function Tf(e,t,n){vf.L(e,t,n);var r=xf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Wt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Wt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Wt(n.imageSizes)+`"]`)):i+=`[href="`+Wt(e)+`"]`;var a=i;switch(t){case`style`:a=jf(e);break;case`script`:a=Ff(e)}hf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),hf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Mf(a))||t===`script`&&r.querySelector(If(a))||(t=r.createElement(`link`),Fd(t,`link`,e),Tt(t),r.head.appendChild(t)))}}function Ef(e,t){vf.m(e,t);var n=xf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Wt(r)+`"][href="`+Wt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Ff(e)}if(!hf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),hf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(If(a)))return}r=n.createElement(`link`),Fd(r,`link`,e),Tt(r),n.head.appendChild(r)}}}function Df(e,t,n){vf.S(e,t,n);var r=xf;if(r&&e){var i=wt(r).hoistableStyles,a=jf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Mf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=hf.get(a))&&zf(e,n);var c=o=r.createElement(`link`);Tt(c),Fd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Rf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Of(e,t){vf.X(e,t);var n=xf;if(n&&e){var r=wt(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=m({src:e,async:!0},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),Tt(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t){vf.M(e,t);var n=xf;if(n&&e){var r=wt(n).hoistableScripts,i=Ff(e),a=r.get(i);a||(a=n.querySelector(If(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=hf.get(i))&&Bf(e,t),a=n.createElement(`script`),Tt(a),Fd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t,n,r){var a=(a=j.current)?_f(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=jf(n.href),n=wt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=jf(n.href);var o=wt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Mf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),hf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hf.set(e,n),o||Pf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Ff(n),n=wt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function jf(e){return`href="`+Wt(e)+`"`}function Mf(e){return`link[rel="stylesheet"][`+e+`]`}function Nf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Pf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Fd(t,`link`,n),Tt(t),e.head.appendChild(t))}function Ff(e){return`[src="`+Wt(e)+`"]`}function If(e){return`script[async]`+e}function Lf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Wt(n.href)+`"]`);if(r)return t.instance=r,Tt(r),r;var a=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Tt(r),Fd(r,`style`,a),Rf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=jf(n.href);var o=e.querySelector(Mf(a));if(o)return t.state.loading|=4,t.instance=o,Tt(o),o;r=Nf(n),(a=hf.get(a))&&zf(r,a),o=(e.ownerDocument||e).createElement(`link`),Tt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Fd(o,`link`,r),t.state.loading|=4,Rf(o,n.precedence,e),t.instance=o;case`script`:return o=Ff(n.src),(a=e.querySelector(If(o)))?(t.instance=a,Tt(a),a):(r=n,(a=hf.get(o))&&(r=m({},n),Bf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Tt(a),Fd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Rf(r,n.precedence,e));return t.instance}function Rf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Bf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Vf=null;function Hf(e,t,n){if(Vf===null){var r=new Map,i=Vf=new Map;i.set(n,r)}else i=Vf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[yt]||a[ft]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Uf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Wf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Gf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Kf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=jf(r.href),a=t.querySelector(Mf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Yf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Tt(a);return}a=t.ownerDocument||t,r=Nf(r),(i=hf.get(i))&&zf(r,i),a=a.createElement(`link`),Tt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Fd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Yf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var qf=0;function Jf(e,t){return e.stylesheets&&e.count===0&&Zf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&qf===0&&(qf=62500*Rd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>qf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Yf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xf=null;function Zf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xf=new Map,t.forEach(Qf,e),Xf=null,Yf.call(e))}function Qf(e,t){if(!(t.state.loading&4)){var n=Xf.get(e);if(n)var r=n.get(null);else{n=new Map,Xf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Yf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var $f={$$typeof:S,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function ep(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=tt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tt(0),this.hiddenUpdates=tt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function tp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ep(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=fi(3,null,null,t),e.current=a,a.stateNode=e,t=da(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Wa(a),e}function np(e){return e?(e=ui,e):ui}function rp(e,t,n,r,i,a){i=np(i),r.context===null?r.context=i:r.pendingContext=i,r=Ka(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=qa(e,r,t),n!==null&&(hu(n,e,t),Ja(n,e,t))}function ip(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ap(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}function op(e){if(e.tag===13||e.tag===31){var t=ci(e,67108864);t!==null&&hu(t,e,67108864),ap(e,67108864)}}function sp(e){if(e.tag===13||e.tag===31){var t=pu();t=st(t);var n=ci(e,t);n!==null&&hu(n,e,t),ap(e,t)}}var cp=!0;function lp(e,t,n,r){var i=D.T;D.T=null;var a=O.p;try{O.p=2,dp(e,t,n,r)}finally{O.p=a,D.T=i}}function up(e,t,n,r){var i=D.T;D.T=null;var a=O.p;try{O.p=8,dp(e,t,n,r)}finally{O.p=a,D.T=i}}function dp(e,t,n,r){if(cp){var i=fp(r);if(i===null)wd(e,t,r,pp,n),wp(e,r);else if(Ep(i,e,t,n,r))r.stopPropagation();else if(wp(e,r),t&4&&-1<Cp.indexOf(e)){for(;i!==null;){var a=St(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Xe(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ue(o);s.entanglements[1]|=c,o&=~c}rd(a),!(Il&6)&&(tu=je()+500,id(0,!1))}}break;case 31:case 13:s=ci(a,2),s!==null&&hu(s,a,2),bu(),ap(a,2)}if(a=fp(r),a===null&&wd(e,t,r,pp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else wd(e,t,r,null,n)}}function fp(e){return e=cn(e),mp(e)}var pp=null;function mp(e){if(pp=null,e=xt(e),e!==null){var t=s(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=c(t),e!==null)return e;e=null}else if(n===31){if(e=l(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return pp=e,null}function hp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Me()){case Ne:return 2;case Pe:return 8;case Fe:case Ie:return 32;case Le:return 268435456;default:return 32}default:return 32}}var gp=!1,_p=null,vp=null,yp=null,bp=new Map,xp=new Map,Sp=[],Cp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function wp(e,t){switch(e){case`focusin`:case`focusout`:_p=null;break;case`dragenter`:case`dragleave`:vp=null;break;case`mouseover`:case`mouseout`:yp=null;break;case`pointerover`:case`pointerout`:bp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:xp.delete(t.pointerId)}}function Tp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=St(t),t!==null&&op(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ep(e,t,n,r,i){switch(t){case`focusin`:return _p=Tp(_p,e,t,n,r,i),!0;case`dragenter`:return vp=Tp(vp,e,t,n,r,i),!0;case`mouseover`:return yp=Tp(yp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return bp.set(a,Tp(bp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,xp.set(a,Tp(xp.get(a)||null,e,t,n,r,i)),!0}return!1}function Dp(e){var t=xt(e.target);if(t!==null){var n=s(t);if(n!==null){if(t=n.tag,t===13){if(t=c(n),t!==null){e.blockedOn=t,ut(e.priority,function(){sp(n)});return}}else if(t===31){if(t=l(n),t!==null){e.blockedOn=t,ut(e.priority,function(){sp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Q(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=fp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);sn=r,n.target.dispatchEvent(r),sn=null}else return t=St(n),t!==null&&op(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Q(e)&&n.delete(t)}function kp(){gp=!1,_p!==null&&Q(_p)&&(_p=null),vp!==null&&Q(vp)&&(vp=null),yp!==null&&Q(yp)&&(yp=null),bp.forEach(Op),xp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,gp||(gp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(mp(r||n)===null)continue;break}var a=St(n);a!==null&&(e.splice(t,3),t-=3,ws(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp!==null&&Ap(yp,e),bp.forEach(t),xp.forEach(t);for(var n=0;n<Sp.length;n++){var r=Sp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Sp.length&&(n=Sp[0],n.blockedOn===null);)Dp(n),n.blockedOn===null&&Sp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[pt]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[pt]||null)s=o.formAction;else if(mp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;rp(n,pu(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rp(e.current,2,null,e,null,null),bu(),t[mt]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=lt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Sp.length&&t!==0&&t<Sp[n].priority;n++);Sp.splice(n,0,e),n===0&&Dp(e)}};var Lp=n.version;if(Lp!==`19.2.8`)throw Error(i(527,Lp,`19.2.8`));O.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:p(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:D,reconcilerVersion:`19.2.8`};
85if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{Be=zp.inject(Rp),Ve=zp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=qs,s=Js,c=Ys;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=tp(e,1,!1,null,null,n,r,null,o,s,c,Pp),e[mt]=t.current,Sd(e),new Fp(t)},e.hydrateRoot=function(e,t,n){if(!a(e))throw Error(i(299));var r=!1,o=``,s=qs,c=Js,l=Ys,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=tp(e,1,!0,t,n??null,r,o,u,s,c,l,Pp),t.context=np(null),n=t.current,r=pu(),r=st(r),o=Ka(r),o.callback=null,qa(n,o,r),n=r,t.current.lanes=n,nt(t,n),rd(t),e[mt]=t.current,Sd(e),new Ip(t)}})),dv=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=uv()}))(),fv=document.getElementById(`root`);if(!fv)throw Error(`Application root is missing`);var pv=(0,V.jsx)(M.StrictMode,{children:(0,V.jsx)(te,{client:Lu,children:(0,V.jsxs)(Yi,{children:[(0,V.jsx)(ov,{}),(0,V.jsx)(sv,{position:`bottom-right`})]})})});fv.hasChildNodes()?(0,dv.hydrateRoot)(fv,pv):(0,dv.createRoot)(fv).render(pv);

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.