import{Oa as T,fa as g}from"./chunk-RISKGE32.js";import{a as c,f as d,g as v}from"./chunk-GQY3J744.js";import{d as s,g as r,n as o}from"./chunk-CLPINNGF.js";o();r();var l=s(v()),a=s(g());d();o();r();var n=s(v());function i(e){let t=(0,n.useRef)(e);return(0,n.useEffect)(()=>{t.current=e},[e]),t.current}var M=()=>{let{useCurrentCursor:e}=T,[t,h]=c(null),[f,A]=c(null),S=i(t),C=i(f),u=e(),R=(0,l.useCallback)((0,a.default)(m=>{if(m){let E=m?.ref?.ref,p=m?.ref?.highlightInfo?.scrollElement??window;E!==S&&h(E),p!==C&&A(p)}},200),[]);return(0,l.useEffect)(()=>{R(u)},[u]),{activeElement:t,activeScrollElement:f}};export{M as a};
//# sourceMappingURL=chunk-7XGTX76V.js.map
