import{w as s}from"./index.G3yBo0_P.js";import{s as a,g as l}from"./scheduler.5WtVptCO.js";const n="modalStore";function f(){const t=l(n);if(!t)throw new Error("modalStore is not initialized. Please ensure that `initializeStores()` is invoked in the root layout file of this app!");return t}function g(){const t=u();return a(n,t)}function u(){const{subscribe:t,set:i,update:o}=s([]);return{subscribe:t,set:i,update:o,trigger:e=>o(r=>(r.push(e),r)),close:()=>o(e=>(e.length>0&&e.shift(),e)),clear:()=>i([])}}export{f as g,g as i}; | |