import{onBeforeUnmount as e}from"vue";function t(t=250){let n=null,r;e(()=>{clearTimeout(r)});function i(e){(e||n===null)&&(n=e),clearTimeout(r),r=setTimeout(()=>{n=null},t)}return[()=>n,i]}export{t as default};