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