PageSourceSearch

https://www.alzchem.com/static/alzchem/assets/index-B6AHK7xA.js

js alzchem.com collected 2026-10-02 10:45:25 UTC 2,643 bytes, 1 lines download raw bytes

1var l=Object.defineProperty;var d=(n,e,t)=>e in n?l(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var i=(n,e,t)=>d(n,typeof e!="symbol"?e+"":e,t);import{B as m,g as r,a as k}from"./alzchem-B8Vlwgj5.js";r.registerPlugin(k);class f extends m{constructor(){super(...arguments);i(this,"observer");i(this,"section");i(this,"mask");i(this,"arrow");i(this,"initialized",!1);i(this,"tracked",!1);i(this,"position",[0,0]);i(this,"size",0);i(this,"handlers",{})}run(){this.section=this.element.querySelector(".hero__section:nth-child(1)"),this.mask=this.element.querySelector(".hero__mask"),this.arrow=this.element.querySelector(".hero__arrow"),this.handlers.mouseMove=this.onMouseMove.bind(this),this.handlers.sectionIntersect=this.onSectionIntersect.bind(this),this.handlers.arrowClick=this.onArrowClick.bind(this),this.bind(),this.init()}track(){if(this.mask){if(this.element.addEventListener("mousemove",this.handlers.mouseMove),this.tracked=!0,this.section){const s=this.section.clientWidth/5-150,o=this.section.clientHeight/3-300/2;this.size=300,this.position=[s,o]}this.render()}}untrack(){if(this.mask){if(window.document.removeEventListener("click",this.handlers.click),this.element.removeEventListener("mousemove",this.handlers.mouseMove),this.tracked=!1,this.section){const t=Math.max(this.section.clientWidth,this.section.clientHeight)*3,s=this.section.clientWidth/2-t/2,o=this.section.clientHeight/2-t/2;this.size=t,this.position=[s,o]}this.render()}}bind(){this.section&&(this.observer=new IntersectionObserver(this.handlers.sectionIntersect,{threshold:.66})),this.arrow&&this.arrow.addEventListener("click",this.handlers.arrowClick)}init(){this.initialized=!0,this.observer&&this.section&&this.observer.observe(this.section),this.render()}render(){this.initialized?this.element.classList.add("is-active"):this.element.classList.remove("is-active"),this.tracked?this.element.classList.add("is-tracked"):this.element.classList.remove("is-tracked"),this.mask&&this.position&&this.size&&r.to(this.mask,{maskPosition:`${this.position[0]}px ${this.position[1]}px`,maskSize:`${this.size}px ${this.size}px`,duration:.5,ease:this.tracked?"ease.out":"sine.in",force3D:!0})}onMouseMove(t){if(this.mask){const s=this.mask.getBoundingClientRect(),o=Math.sqrt(t.movementX*t.movementX+t.movementY*t.movementY),h=300+300*Math.min(o,100)/100,c=t.clientX-s.left-h/2,a=t.clientY-s.top-h/2;this.size=h,this.position=[c,a],this.render()}}onSectionIntersect(t){for(const s of t)s.isIntersecting?this.track():this.untrack()}onArrowClick(){this.section&&window.scrollTo({top:this.section.clientHeight,behavior:"smooth"})}}export{f as default};

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.