(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{45:e=>{e.exports={style:{fontFamily:"'Inter', 'Inter Fallback'",fontStyle:"normal"},className:"__className_e8ce0c",variable:"__variable_e8ce0c"}},973:e=>{e.exports={style:{fontFamily:"'JetBrains Mono', 'JetBrains Mono Fallback'",fontStyle:"normal"},className:"__className_3c557b",variable:"__variable_3c557b"}},1362:(e,t,r)=>{"use strict";r.d(t,{D:()=>c,N:()=>m});var a=r(2115),n=(e,t,r,a,n,s,l,o)=>{let i=document.documentElement,c=["light","dark"];function m(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,a=r&&s?n.map(e=>s[e]||e):n;r?(i.classList.remove(...a),i.classList.add(s&&s[t]?s[t]:t)):i.setAttribute(e,t)}),r=t,o&&c.includes(r)&&(i.style.colorScheme=r)}if(a)m(a);else try{let e=localStorage.getItem(t)||r,a=l&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;m(a)}catch(e){}},s=["light","dark"],l="(prefers-color-scheme: dark)",o=a.createContext(void 0),i={setTheme:e=>{},themes:[]},c=()=>{var e;return null!=(e=a.useContext(o))?e:i},m=e=>a.useContext(o)?a.createElement(a.Fragment,null,e.children):a.createElement(u,{...e}),d=["light","dark"],u=e=>{let{forcedTheme:t,disableTransitionOnChange:r=!1,enableSystem:n=!0,enableColorScheme:i=!0,storageKey:c="theme",themes:m=d,defaultTheme:u=n?"system":"light",attribute:v="data-theme",value:p,children:g,nonce:_,scriptProps:S}=e,[k,E]=a.useState(()=>y(c,u)),[w,C]=a.useState(()=>"system"===k?f():k),T=p?Object.values(p):m,N=a.useCallback(e=>{let t=e;if(!t)return;"system"===e&&n&&(t=f());let a=p?p[t]:t,l=r?b(_):null,o=document.documentElement,c=e=>{"class"===e?(o.classList.remove(...T),a&&o.classList.add(a)):e.startsWith("data-")&&(a?o.setAttribute(e,a):o.removeAttribute(e))};if(Array.isArray(v)?v.forEach(c):c(v),i){let e=s.includes(u)?u:null,r=s.includes(t)?t:e;o.style.colorScheme=r}null==l||l()},[_]),L=a.useCallback(e=>{let t="function"==typeof e?e(k):e;E(t);try{localStorage.setItem(c,t)}catch(e){}},[k]),P=a.useCallback(e=>{C(f(e)),"system"===k&&n&&!t&&N("system")},[k,t]);a.useEffect(()=>{let e=window.matchMedia(l);return e.addListener(P),P(e),()=>e.removeListener(P)},[P]),a.useEffect(()=>{let e=e=>{e.key===c&&(e.newValue?E(e.newValue):L(u))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[L]),a.useEffect(()=>{N(null!=t?t:k)},[t,k]);let A=a.useMemo(()=>({theme:k,setTheme:L,forcedTheme:t,resolvedTheme:"system"===k?w:k,themes:n?[...m,"system"]:m,systemTheme:n?w:void 0}),[k,L,t,w,n,m]);return a.createElement(o.Provider,{value:A},a.createElement(h,{forcedTheme:t,storageKey:c,attribute:v,enableSystem:n,enableColorScheme:i,defaultTheme:u,value:p,themes:m,nonce:_,scriptProps:S}),g)},h=a.memo(e=>{let{forcedTheme:t,storageKey:r,attribute:s,enableSystem:l,enableColorScheme:o,defaultTheme:i,value:c,themes:m,nonce:d,scriptProps:u}=e,h=JSON.stringify([s,r,i,t,m,c,l,o]).slice(1,-1);return a.createElement("script",{...u,suppressHydrationWarning:!0,nonce:"",dangerouslySetInnerHTML:{__html:"(".concat(n.toString(),")(").concat(h,")")}})}),y=(e,t)=>{let r;try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t},b=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},f=e=>(e||(e=window.matchMedia(l)),e.matches?"dark":"light")},8457:(e,t,r)=>{Promise.resolve().then(r.bind(r,9304)),Promise.resolve().then(r.t.bind(r,45,23)),Promise.resolve().then(r.t.bind(r,973,23)),Promise.resolve().then(r.t.bind(r,9324,23))},9304:(e,t,r)=>{"use strict";r.d(t,{ThemeProvider:()=>s});var a=r(5155);r(2115);var n=r(1362);function s(e){let{children:t,...r}=e;return(0,a.jsx)(n.N,{...r,children:t})}},9324:()=>{}},e=>{var t=t=>e(e.s=t);e.O(0,[75,441,684,358],()=>t(8457)),_N_E=e.O()}]);