function l(n,{offset:e=80,behavior:r="smooth",timeoutMs:c=2e3}={}){const s=performance.now(),o=()=>{const t=document.getElementById(n);if(t){const i=t.getBoundingClientRect().top+window.scrollY-e;window.scrollTo({top:i,behavior:r});return}performance.now()-s>=c||requestAnimationFrame(o)};o()}export{l as s};
