1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2670],{42670:(t,e,i)=>{i.r(e),i.d(e,{AI_HOLD_END:()=>a,AI_HOLD_VH:()=>r,AI_ZOOM_END:()=>s,AI_ZOOM_VH:()=>n,mount:()=>l});var o=i(55304),r=.36,n=.48,a=.3,s=.54;function l(){var t=document.getElementById("ai-lab-intro-track")||document.getElementById("ai-letter-track"),e=document.getElementById("ai-letter-sticky"),i=document.getElementById("ai-lab-intro"),a=e&&e.querySelector(".ai-letter-cut"),s=document.querySelector(".ai-word-ai");if(!t||!e)return function(){};var l=null,d=!1;function m(){if(s){var t=document.createRange();t.selectNodeContents(s);var e=t.getBoundingClientRect();if(t.detach(),!(e.width<4)&&!(e.height<4)){var i=window.getComputedStyle(s),o=parseFloat(i.fontSize)||e.height,r=parseFloat(i.letterSpacing)||0;l={w:window.innerWidth,h:window.innerHeight,x:e.left+e.width/2,y:e.top+e.height/2,fs:o,lsEm:o?r/o:0,fw:i.fontWeight||"700",ff:i.fontFamily||"Inter, system-ui, sans-serif"},function(){if(l){c(1,1);var t=document.getElementById("ai-zoom-layer"),e=t&&t.querySelector(".ai-zoom-text");if(e)try{var i=e.getBBox();if(i.width<2||i.height<2)return;l.x+=l.x-(i.x+i.width/2),l.y+=l.y-(i.y+i.height/2)}catch(t){}}}()}}}function c(t,e){var i,r=((i=document.getElementById("ai-zoom-layer"))||((i=document.createElement("div")).id="ai-zoom-layer",i.setAttribute("aria-hidden","true"),i.innerHTML='<svg class="ai-zoom-svg" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><defs><mask id="ai-zoom-mask" maskUnits="userSpaceOnUse"><rect class="ai-zoom-mask-bg" fill="#fff"/><g class="ai-zoom-g"><text class="ai-zoom-text" fill="#000" text-anchor="middle" dominant-baseline="central">AI</text></g></mask></defs><rect class="ai-zoom-fill" fill="#0a0514" mask="url(#ai-zoom-mask)"/></svg>',document.body.appendChild(i)),i),n=r.querySelector(".ai-zoom-svg"),a=r.querySelector(".ai-zoom-text"),s=r.querySelector(".ai-zoom-g"),d=r.querySelector(".ai-zoom-mask-bg"),m=r.querySelector(".ai-zoom-fill");if(!n||!a||!l)return void r.classList.remove("is-on");if(e<=0){r.style.opacity="",r.classList.remove("is-on");return}n.setAttribute("viewBox","0 0 "+l.w+" "+l.h),d&&(d.setAttribute("width",String(l.w)),d.setAttribute("height",String(l.h))),m&&(m.setAttribute("width",String(l.w)),m.setAttribute("height",String(l.h))),s&&s.removeAttribute("transform");var c=(l.fs*t).toFixed(2);a.setAttribute("x",l.x.toFixed(2)),a.setAttribute("y",l.y.toFixed(2)),a.setAttribute("font-size",c),a.setAttribute("font-weight",l.fw),a.setAttribute("font-family",l.ff),a.setAttribute("letter-spacing",l.lsEm.toFixed(4)+"em"),r.style.opacity=String(Number((0,o.qE)(e,0,1).toFixed(3))),r.classList.add("is-on")}function u(t,o,r,n){e.style.setProperty("--ai-zoom",String(t)),e.style.setProperty("--ai-veil",String(n)),i&&(i.style.setProperty("--intro-rest-op",String(o)),i.style.setProperty("--intro-ai-op",String(r))),a&&(a.style.opacity="0"),c(t,n)}if((0,o.Oe)())return u(16,0,0,0),function(){e.style.removeProperty("--ai-zoom"),e.style.removeProperty("--ai-veil")};function f(){var i=window.innerHeight,a=t.getBoundingClientRect(),s=Math.max(1,a.height-i),c=(0,o.qE)(-a.top,0,s),f=Math.min(i*r,.42*s),g=Math.min(i*n,.4*s);if(c<=f){d=!1,l=null,u(1,1,1,0),e&&e.classList.remove("is-ai-zooming");return}d||(m(),d=!0);var y=(0,o.qE)((c-f)/Math.max(g,1),0,1);e&&e.classList.add("is-ai-zooming");var h=Math.max(2,1.25*Math.hypot(window.innerWidth,window.innerHeight)/l.fs),w=(0,o.qE)(1-y/.45,0,1),v=y<=.55?0:(0,o.qE)((y-.55)/.44999999999999996,0,1),p=(0,o.qE)(y/.18,0,1);u(1+y*y*y*(h-1),w,0,(1-v)*p)}var g=window.__updateAiScroll;function y(){"function"==typeof g&&g(),f()}return window.__updateAiScroll=y,window.addEventListener("scroll",f,{passive:!0}),window.addEventListener("resize",f),m(),f(),function(){window.removeEventListener("scroll",f),window.removeEventListener("resize",f),e.classList.remove("is-ai-zooming");var t=document.getElementById("ai-zoom-layer");t&&t.parentNode&&t.parentNode.removeChild(t),window.__updateAiScroll===y&&(window.__updateAiScroll=g)}}}}]); 2//# sourceMappingURL=2670.f1741c2f10dce5fb.js.map
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.