function S(){}function C(t){return t()}function j(){return Object.create(null)}function m(t){t.forEach(C)}function O(t){return typeof t=="function"}function L(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}function M(t){return Object.keys(t).length===0}function Q(t,n){t.appendChild(n)}function R(t,n,e){t.insertBefore(n,e||null)}function z(t){t.parentNode.removeChild(t)}function U(t){return document.createElement(t)}function B(t){return document.createTextNode(t)}function V(){return B(" ")}function W(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function F(t){return Array.from(t.childNodes)}let l;function f(t){l=t}function P(){if(!l)throw new Error("Function called outside component initialization");return l}function X(t){P().$$.on_mount.push(t)}const a=[],v=[],h=[],A=[],T=Promise.resolve();let y=!1;function q(){y||(y=!0,T.then(N))}function x(t){h.push(t)}const $=new Set;let d=0;function N(){const t=l;do{for(;d{_.delete(t),o&&(e&&t.d(1),o())}),t.o(n)}}function Z(t){t&&t.c()}function I(t,n,e,o){const{fragment:u,on_mount:p,on_destroy:i,after_update:g}=t.$$;u&&u.m(n,e),o||x(()=>{const s=p.map(C).filter(O);i?i.push(...s):m(s),t.$$.on_mount=[]}),g.forEach(x)}function J(t,n){const e=t.$$;e.fragment!==null&&(m(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function K(t,n){t.$$.dirty[0]===-1&&(a.push(t),q(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<{const k=E.length?E[0]:w;return r.ctx&&u(r.ctx[c],r.ctx[c]=k)&&(!r.skip_bound&&r.bound[c]&&r.bound[c](k),b&&K(t,c)),w}):[],r.update(),b=!0,m(r.before_update),r.fragment=o?o(r.ctx):!1,n.target){if(n.hydrate){const c=F(n.target);r.fragment&&r.fragment.l(c),c.forEach(z)}else r.fragment&&r.fragment.c();n.intro&&H(t.$$.fragment),I(t,n.target,n.anchor,n.customElement),N()}f(s)}class nt{$destroy(){J(this,1),this.$destroy=S}$on(n,e){const o=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return o.push(e),()=>{const u=o.indexOf(e);u!==-1&&o.splice(u,1)}}$set(n){this.$$set&&!M(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}export{nt as S,V as a,R as b,v as c,z as d,U as e,Z as f,W as g,Q as h,tt as i,Y as j,J as k,I as m,S as n,X as o,L as s,H as t};