1import{r as c}from"./loader-Cqyox1Tj.js";import{c as m}from"./index-CUz0Qfsh.js";import{L as g}from"./siteRoutes-BrWVF6Zw.js";function v(){var t=c.useRef(!0);return t.current?(t.current=!1,!0):t.current}var y=function(t,e){var s=v();c.useEffect(function(){if(!s)return t()},e)};const C=(t,e)=>e-t<=1;function R(t){const e=c.useRef(null),[s,f]=c.useState(!1),i=(t==null?void 0:t.stuckFn)??C,o=(t==null?void 0:t.position)??"top",r=o;return c.useEffect(()=>{const n=g(e.current);if(!n)return;const a=()=>{const u=e.current;if(!u)return;const l=parseInt(window.getComputedStyle(u)[r]),d="getBoundingClientRect"in n?n.getBoundingClientRect()[r]:0,S=u.getBoundingClientRect()[r]-d,k=i(l,S);f(k)};return n.addEventListener("scroll",a),()=>{n.removeEventListener("scroll",a)}},[e,i,r]),[e,{isStuck:s,className:m("sticky",(t==null?void 0:t.zIndexClassName)??"z-10",o==="left"?"left-0":"top-0")}]}export{y as a,R 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.