1import{r}from"./index-BnZ7SOLP.js";function f({speed:a=.3,maxOffset:i=150}={}){const[c,d]=r.useState(0),[o,l]=r.useState(!1);return r.useEffect(()=>{var s;const e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=()=>{const n=window.innerWidth>=768&&!e.matches;l(n),n||d(0)};return t(),window.addEventListener("resize",t,{passive:!0}),(s=e.addEventListener)==null||s.call(e,"change",t),()=>{var n;window.removeEventListener("resize",t),(n=e.removeEventListener)==null||n.call(e,"change",t)}},[]),r.useEffect(()=>{if(!o)return;let e=0;const t=()=>{e||(e=window.requestAnimationFrame(()=>{const s=Math.min(window.scrollY*a,i);d(n=>Math.abs(n-s)<1?n:s),e=0}))};return t(),window.addEventListener("scroll",t,{passive:!0}),()=>{e&&window.cancelAnimationFrame(e),window.removeEventListener("scroll",t)}},[o,a,i]),{offset:c,style:o?{transform:`translateY(${c}px) scale(1.04)`}:void 0}}export{f as u};
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.