function M(){}function nt(t,e){for(const n in e)t[n]=e[n];return t}function K(t){return t()}function I(){return Object.create(null)}function v(t){t.forEach(K)}function it(t){return typeof t=="function"}function $t(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function rt(t){return Object.keys(t).length===0}function ct(t,...e){if(t==null)return M;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function vt(t,e,n){t.$$.on_destroy.push(ct(e,n))}function Et(t,e,n,i){if(t){const r=Q(t,e,n,i);return t[0](r)}}function Q(t,e,n,i){return t[1]&&i?nt(n.ctx.slice(),t[1](i(e))):n.ctx}function St(t,e,n,i){if(t[2]&&i){const r=t[2](i(n));if(e.dirty===void 0)return r;if(typeof r=="object"){const u=[],c=Math.max(e.dirty.length,r.length);for(let o=0;o32){const e=[],n=t.ctx.length/32;for(let i=0;iwindow.performance.now():()=>Date.now(),R=W?t=>requestAnimationFrame(t):M;const w=new Set;function U(t){w.forEach(e=>{e.c(t)||(w.delete(e),e.f())}),w.size!==0&&R(U)}function Mt(t){let e;return w.size===0&&R(U),{promise:new Promise(n=>{w.add(e={c:t,f:n})}),abort(){w.delete(e)}}}let j=!1;function st(){j=!0}function lt(){j=!1}function ot(t,e,n,i){for(;t>1);n(r)<=i?t=r+1:e=r}return t}function ut(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const s=[];for(let l=0;l0&&e[n[r]].claim_order<=l?r+1:ot(1,r,d=>e[n[d]].claim_order,l))-1;i[s]=n[f]+1;const _=f+1;n[_]=s,r=Math.max(_,r)}const u=[],c=[];let o=e.length-1;for(let s=n[r]+1;s!=0;s=i[s-1]){for(u.push(e[s-1]);o>=s;o--)c.push(e[o]);o--}for(;o>=0;o--)c.push(e[o]);u.reverse(),c.sort((s,l)=>s.claim_order-l.claim_order);for(let s=0,l=0;s=u[l].claim_order;)l++;const f=lt.removeEventListener(e,n,i)}function Bt(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function ht(t){return Array.from(t.childNodes)}function mt(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function V(t,e,n,i,r=!1){mt(t);const u=(()=>{for(let c=t.claim_info.last_index;c=0;c--){const o=t[c];if(e(o)){const s=n(o);return s===void 0?t.splice(c,1):t[c]=s,r?s===void 0&&t.claim_info.last_index--:t.claim_info.last_index=c,o}}return i()})();return u.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,u}function X(t,e,n,i){return V(t,r=>r.nodeName===e,r=>{const u=[];for(let c=0;cr.removeAttribute(c))},()=>i(e))}function Dt(t,e,n){return X(t,e,n,dt)}function Lt(t,e,n){return X(t,e,n,_t)}function pt(t,e){return V(t,n=>n.nodeType===3,n=>{const i=""+e;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>T(e),!0)}function Ot(t){return pt(t," ")}function Tt(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function qt(t,e,n,i){n===null?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}let $;function b(t){$=t}function q(){if(!$)throw new Error("Function called outside component initialization");return $}function Ft(t){q().$$.on_mount.push(t)}function Ht(t){q().$$.after_update.push(t)}function It(t){q().$$.on_destroy.push(t)}const x=[],G=[],k=[],J=[],Y=Promise.resolve();let L=!1;function Z(){L||(L=!0,Y.then(tt))}function Gt(){return Z(),Y}function O(t){k.push(t)}const D=new Set;let N=0;function tt(){const t=$;do{for(;N{A.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}function Qt(t,e){gt(t,1,1,()=>{e.delete(t.key)})}function Wt(t,e,n,i,r,u,c,o,s,l,f,_){let d=t.length,m=u.length,h=d;const C={};for(;h--;)C[t[h].key]=h;const E=[],P=new Map,z=new Map;for(h=m;h--;){const a=_(r,u,h),p=n(a);let y=c.get(p);y?i&&y.p(a,e):(y=l(p,a),y.c()),P.set(p,E[h]=y),p in C&&z.set(p,Math.abs(h-C[p]))}const F=new Set,H=new Set;function B(a){et(a,1),a.m(o,f),c.set(a.key,a),f=a.first,m--}for(;d&&m;){const a=E[m-1],p=t[d-1],y=a.key,S=p.key;a===p?(f=a.first,d--,m--):P.has(S)?!c.has(y)||F.has(y)?B(a):H.has(S)?d--:z.get(y)>z.get(S)?(H.add(y),B(a)):(F.add(S),d--):(s(p,c),d--)}for(;d--;){const a=t[d];P.has(a.key)||s(a,c)}for(;m;)B(E[m-1]);return E}function Rt(t){t&&t.c()}function Ut(t,e){t&&t.l(e)}function wt(t,e,n,i){const{fragment:r,on_mount:u,on_destroy:c,after_update:o}=t.$$;r&&r.m(e,n),i||O(()=>{const s=u.map(K).filter(it);c?c.push(...s):v(s),t.$$.on_mount=[]}),o.forEach(O)}function xt(t,e){const n=t.$$;n.fragment!==null&&(v(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function bt(t,e){t.$$.dirty[0]===-1&&(x.push(t),Z(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const h=m.length?m[0]:d;return l.ctx&&r(l.ctx[_],l.ctx[_]=h)&&(!l.skip_bound&&l.bound[_]&&l.bound[_](h),f&&bt(t,_)),d}):[],l.update(),f=!0,v(l.before_update),l.fragment=i?i(l.ctx):!1,e.target){if(e.hydrate){st();const _=ht(e.target);l.fragment&&l.fragment.l(_),_.forEach(ft)}else l.fragment&&l.fragment.c();e.intro&&et(t.$$.fragment),wt(t,e.target,e.anchor,e.customElement),lt(),tt()}b(s)}class Xt{$destroy(){xt(this,1),this.$destroy=M}$on(e,n){const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(e){this.$$set&&!rt(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}export{M as A,Et as B,Nt as C,kt as D,St as E,at as F,vt as G,At as H,Mt as I,_t as J,Lt as K,G as L,zt as M,v as N,It as O,Wt as P,Qt as Q,Xt as S,Ct as a,jt as b,Ot as c,Kt as d,Pt as e,et as f,Jt as g,ft as h,Vt as i,Ht as j,dt as k,Dt as l,ht as m,Bt as n,Ft as o,qt as p,T as q,pt as r,$t as s,gt as t,Tt as u,Rt as v,Ut as w,wt as x,xt as y,Gt as z};