1import{S as l}from"./scroll-D17UXzQf.js";class a{constructor(){const t=document.querySelectorAll("a.js-smooth-scroll"),r=document.querySelectorAll(".js-smooth-scroll-attr");Array.from(t).forEach(o=>{this.initScrollTo(o)}),Array.from(r).forEach(o=>{this.initScrollToDataAttr(o)})}initScrollTo(t){t.classList.remove("js-smooth-scroll"),t.addEventListener("click",r=>{const o=t.getAttribute("href").split("#");if(o.length>1){const e=document.querySelector(`#${o[1]}`);e&&(r.preventDefault(),l.scrollToY(e,400))}})}initScrollToDataAttr(t){t.classList.remove("js-smooth-scroll-attr"),t.addEventListener("click",r=>{console.log(t);const o=t.getAttribute("data-scrollId");if(o.length>1){const e=document.querySelector(`#${o}`);e&&(r.preventDefault(),l.scrollToY(e,400))}})}}export{a 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.