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