const f=(r,u)=>{let e=!1,t=null;function l(){clearTimeout(t)}function a(s){if(!e||s===!0){if(r()===!1)return;e=!0,l(),t=setTimeout(()=>{e=!1},u.value)}else l(),t=setTimeout(()=>{e=!1,a()},u.value)}return[a,()=>{e=!1,l()}]};export{f as default};
