import{ao as i,am as o,C as _,z as m,a7 as p}from"./lSTfC5u-.js";function u(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function x(e){o===null&&u(),_&&o.l!==null?d(o).m.push(e):i(()=>{const t=m(e);if(typeof t=="function")return t})}function v(e,t,{bubbles:c=!1,cancelable:a=!1}={}){return new CustomEvent(e,{detail:t,bubbles:c,cancelable:a})}function y(){const e=o;return e===null&&u(),(t,c,a)=>{var s;const n=(s=e.s.$$events)==null?void 0:s[t];if(n){const l=p(n)?n.slice():[n],r=v(t,c,a);for(const f of l)f.call(e.x,r);return!r.defaultPrevented}return!0}}function d(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}export{y as c,x as o};