function g(){}function k(t,n){for(const e in n)t[e]=n[e];return t}function w(t){return t()}function F(){return Object.create(null)}function j(t){t.forEach(w)}function E(t){return typeof t=="function"}function P(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}function S(t){return Object.keys(t).length===0}function v(t,...n){if(t==null){for(const o of n)o(void 0);return g}const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function U(t,n,e){t.$$.on_destroy.push(v(n,e))}function A(t,n,e,o){if(t){const r=y(t,n,e,o);return t[0](r)}}function y(t,n,e,o){return t[1]&&o?k(e.ctx.slice(),t[1](o(n))):e.ctx}function B(t,n,e,o){if(t[2]&&o){const r=t[2](o(e));if(n.dirty===void 0)return r;if(typeof r=="object"){const i=[],f=Math.max(n.dirty.length,r.length);for(let s=0;s<f;s+=1)i[s]=n.dirty[s]|r[s];return i}return n.dirty|r}return n.dirty}function C(t,n,e,o,r,i){if(r){const f=y(n,e,o,i);t.p(f,r)}}function D(t){if(t.ctx.length>32){const n=[],e=t.ctx.length/32;for(let o=0;o<e;o++)n[o]=-1;return n}return-1}function G(t){return t??""}function H(t){return t&&E(t.destroy)?t.destroy:g}let a;function d(t){a=t}function m(){if(!a)throw new Error("Function called outside component initialization");return a}function I(t){m().$$.on_mount.push(t)}function J(t){m().$$.after_update.push(t)}const l=[],p=[];let u=[];const b=[],x=Promise.resolve();let h=!1;function O(){h||(h=!0,x.then(M))}function K(){return O(),x}function q(t){u.push(t)}const _=new Set;let c=0;function M(){if(c!==0)return;const t=a;do{try{for(;c<l.length;){const n=l[c];c++,d(n),z(n.$$)}}catch(n){throw l.length=0,c=0,n}for(d(null),l.length=0,c=0;p.length;)p.pop()();for(let n=0;n<u.length;n+=1){const e=u[n];_.has(e)||(_.add(e),e())}u.length=0}while(l.length);for(;b.length;)b.pop()();h=!1,_.clear(),d(t)}function z(t){if(t.fragment!==null){t.update(),j(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(q)}}function L(t){const n=[],e=[];u.forEach(o=>t.indexOf(o)===-1?n.push(o):e.push(o)),e.forEach(o=>o()),u=n}export{J as a,p as b,U as c,A as d,B as e,H as f,D as g,G as h,E as i,F as j,M as k,S as l,q as m,g as n,I as o,L as p,a as q,j as r,P as s,K as t,C as u,d as v,w,l as x,O as y};
