import{K as e}from"./app-C984PpLk.js";var t=e({items:[]}),n=0;function r(){return t}function i(e,r=`success`,i=2600){let o=++n;return t.items.push({id:o,message:e,type:r}),i>0&&setTimeout(()=>a(o),i),o}function a(e){let n=t.items.findIndex(t=>t.id===e);n!==-1&&t.items.splice(n,1)}export{i as n,r,a as t};