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