"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=(u,r)=>{let e=!1,l=null;function i(){clearTimeout(l),e=!0,l=setTimeout(()=>{e=!1},50)}return(o,c=!1)=>{const t=o<0&&u.value||o>0&&r.value;return c&&t?(clearTimeout(l),e=!1):(!t||e)&&i(),!e&&t}};exports.default=s;
