(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,911322,e=>{"use strict";var t=e.i(88636),n=e.i(670786),i=e.i(124892);function a(){let e=i.default.useRef(null),a=i.default.useRef(null),[r,s]=i.default.useState(!0),[o,l]=i.default.useState(!1),c=!r&&o;return i.default.useEffect(()=>{let t=e.current,n=a.current;if(!t||!n)return;let i=e=>{if(e?.sourceCapabilities?.firesTouchEvents){s(!0),l(!1);return}let i=t.getBoundingClientRect(),a=n.getBoundingClientRect(),r=e.clientX>=a.left&&e.clientX<=a.right&&e.clientY>=a.top&&e.clientY<=a.bottom,o=e.clientX,c=e.clientY,u=i.left,d=i.top;t.style.setProperty("--tx",`${o-u}px`),t.style.setProperty("--ty",`${c-d}px`),s(!1),l(r)};function r(){s(!0)}return window.addEventListener("touchstart",r),window.addEventListener("mousemove",i),()=>{window.removeEventListener("touchstart",r),window.removeEventListener("mousemove",i)}},[]),(0,t.jsxs)("div",{ref:e,"aria-hidden":!0,className:(0,n.cn)("pointer-events-none absolute inset-0 overflow-hidden transition-opacity","backdrop-brightness-200 backdrop-contrast-125",c&&"opacity-100 duration-500",!c&&"opacity-0 duration-1000"),children:[(0,t.jsx)("div",{className:(0,n.cn)("absolute aspect-square min-w-[200vw] min-h-[200vh] translate-x-[calc(var(--tx)-50%)] translate-y-[calc(var(--ty)-50%)]"),children:(0,t.jsx)("div",{className:(0,n.cn)("absolute inset-0 bg-center bg-no-repeat","[background-image:radial-gradient(300px_300px_at_center,transparent,rgba(0,0,0,.9)_70%)]")})}),(0,t.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 pointer-events-none container",children:(0,t.jsx)("div",{ref:a,className:"w-full h-full"})})]})}e.s(["Spotlight",()=>a])}]);