import{r as t,bs as f}from"./index-C8qz7c0N.js";const a="__QUEUE_KEY__";function d(){const e=t([]);function o(u){e.value.push(u)}function c(u){e.value=e.value.filter(s=>s.$.uid!==u.$.uid)}function i(u){e.value.forEach(s=>{s.$.uid!==u.$.uid&&s.$.exposed.close()})}function n(){e.value.forEach(u=>{u.$.exposed.close()})}return f(a,{queue:e,pushToQueue:o,removeFromQueue:c,closeOther:i,closeOutside:n}),{closeOther:i,closeOutside:n}}let r=[];function p(e){r.push(e)}function $(e){r=r.filter(o=>o.$.uid!==e.$.uid)}function h(e){r.forEach(o=>{o.$.uid!==e.$.uid&&o.$.exposed.close()})}export{h as c,p,a as q,$ as r,d as u};
