1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3299],{33299:(e,t,a)=>{a.r(t),a.d(t,{ThemeToggle:()=>m});var s=a(95155),r=a(70460),n=a(12115),l=a(89239),o=a(51900),c=a(36999),i=a(40980);function m({className:e,variant:t="icon"}){let{theme:a,setTheme:m}=(0,r.D)(),[d,h]=(0,n.useState)(!1);if((0,n.useEffect)(()=>{h(!0)},[]),!d)return(0,s.jsx)("div",{"aria-hidden":!0,suppressHydrationWarning:!0,className:(0,i.cn)("w-9 h-9",e)});let u="dark"===a;return"full"===t?(0,s.jsxs)("button",{onClick:()=>m(u?"light":"dark"),className:(0,i.cn)("flex items-center gap-3 text-base sm:text-lg font-medium py-2 px-3 sm:px-4 rounded-lg transition-colors hover:bg-muted w-full",e),children:[u?(0,s.jsx)(o.A,{className:"w-5 h-5"}):(0,s.jsx)(c.A,{className:"w-5 h-5"}),u?"Light Mode":"Dark Mode"]}):(0,s.jsxs)(l.$,{variant:"ghost",size:"icon",onClick:()=>m(u?"light":"dark"),className:(0,i.cn)("w-9 h-9 relative",e),"aria-label":u?"Switch to light mode":"Switch to dark mode",children:[(0,s.jsx)(o.A,{className:(0,i.cn)("h-4 w-4 transition-all",u?"rotate-0 scale-100":"rotate-90 scale-0")}),(0,s.jsx)(c.A,{className:(0,i.cn)("absolute h-4 w-4 transition-all",u?"rotate-90 scale-0":"rotate-0 scale-100")})]})}},36999:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(78340).A)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]])},51900:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(78340).A)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]])},70460:(e,t,a)=>{a.d(t,{D:()=>i,N:()=>m});var s=a(12115),r=(e,t,a,s,r,n,l,o)=>{let c=document.documentElement,i=["light","dark"];function m(t){var a;(Array.isArray(e)?e:[e]).forEach(e=>{let a="class"===e,s=a&&n?r.map(e=>n[e]||e):r;a?(c.classList.remove(...s),c.classList.add(n&&n[t]?n[t]:t)):c.setAttribute(e,t)}),a=t,o&&i.includes(a)&&(c.style.colorScheme=a)}if(s)m(s);else try{let e=localStorage.getItem(t)||a,s=l&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;m(s)}catch(e){}},n=["light","dark"],l="(prefers-color-scheme: dark)",o=s.createContext(void 0),c={setTheme:e=>{},themes:[]},i=()=>{var e;return null!=(e=s.useContext(o))?e:c},m=e=>s.useContext(o)?s.createElement(s.Fragment,null,e.children):s.createElement(h,{...e}),d=["light","dark"],h=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:a=!0,enableColorScheme:r=!0,storageKey:c="theme",themes:i=d,defaultTheme:m=a?"system":"light",attribute:h="data-theme",value:g,children:k,nonce:v,scriptProps:b})=>{let[w,S]=s.useState(()=>y(c,m)),[x,C]=s.useState(()=>"system"===w?f():w),E=g?Object.values(g):i,T=s.useCallback(e=>{let s=e;if(!s)return;"system"===e&&a&&(s=f());let l=g?g[s]:s,o=t?p(v):null,c=document.documentElement,i=e=>{"class"===e?(c.classList.remove(...E),l&&c.classList.add(l)):e.startsWith("data-")&&(l?c.setAttribute(e,l):c.removeAttribute(e))};if(Array.isArray(h)?h.forEach(i):i(h),r){let e=n.includes(m)?m:null,t=n.includes(s)?s:e;c.style.colorScheme=t}null==o||o()},[v]),A=s.useCallback(e=>{let t="function"==typeof e?e(w):e;S(t);try{localStorage.setItem(c,t)}catch(e){}},[w]),M=s.useCallback(t=>{C(f(t)),"system"===w&&a&&!e&&T("system")},[w,e]);s.useEffect(()=>{let e=window.matchMedia(l);return e.addListener(M),M(e),()=>e.removeListener(M)},[M]),s.useEffect(()=>{let e=e=>{e.key===c&&(e.newValue?S(e.newValue):A(m))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[A]),s.useEffect(()=>{T(null!=e?e:w)},[e,w]);let N=s.useMemo(()=>({theme:w,setTheme:A,forcedTheme:e,resolvedTheme:"system"===w?x:w,themes:a?[...i,"system"]:i,systemTheme:a?x:void 0}),[w,A,e,x,a,i]);return s.createElement(o.Provider,{value:N},s.createElement(u,{forcedTheme:e,storageKey:c,attribute:h,enableSystem:a,enableColorScheme:r,defaultTheme:m,value:g,themes:i,nonce:v,scriptProps:b}),k)},u=s.memo(({forcedTheme:e,storageKey:t,attribute:a,enableSystem:n,enableColorScheme:l,defaultTheme:o,value:c,themes:i,nonce:m,scriptProps:d})=>{let h=JSON.stringify([a,t,o,e,i,c,n,l]).slice(1,-1);return s.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"",dangerouslySetInnerHTML:{__html:`(${r.toString()})(${h}
1)`}})}),y=(e,t)=>{let a;try{a=localStorage.getItem(e)||void 0}catch(e){}return a||t},p=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")}}]);
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.