const s=(r,u)=>{let e=!1,l=null;function c(){clearTimeout(l),e=!0,l=setTimeout(()=>{e=!1},50)}return(t,i=!1)=>{const o=t<0&&r.value||t>0&&u.value;return i&&o?(clearTimeout(l),e=!1):(!o||e)&&c(),!e&&o}};export{s as default};
