function $(){}function lt(t,e){for(const n in e)t[n]=e[n];return t}function V(t){return t()}function J(){return Object.create(null)}function E(t){t.forEach(V)}function F(t){return typeof t=="function"}function kt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let k;function Mt(t,e){return k||(k=document.createElement("a")),k.href=e,t===k.href}function ot(t){return Object.keys(t).length===0}function at(t,...e){if(t==null)return $;const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function St(t,e,n){t.$$.on_destroy.push(at(e,n))}function Lt(t,e,n,i){if(t){const s=X(t,e,n,i);return t[0](s)}}function X(t,e,n,i){return t[1]&&i?lt(n.ctx.slice(),t[1](i(e))):n.ctx}function Ct(t,e,n,i){if(t[2]&&i){const s=t[2](i(n));if(e.dirty===void 0)return s;if(typeof s=="object"){const l=[],r=Math.max(e.dirty.length,s.length);for(let a=0;a<r;a+=1)l[a]=e.dirty[a]|s[a];return l}return e.dirty|s}return e.dirty}function Ht(t,e,n,i,s,l){if(s){const r=X(e,n,i,l);t.p(r,s)}}function jt(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let i=0;i<n;i++)e[i]=-1;return e}return-1}function Dt(t,e,n){return t.set(n),e}function Pt(t){return t&&F(t.destroy)?t.destroy:$}const ut=typeof window<"u";let qt=ut?t=>requestAnimationFrame(t):$,L=!1;function ft(){L=!0}function dt(){L=!1}function _t(t,e,n,i){for(;t<e;){const s=t+(e-t>>1);n(s)<=i?t=s+1:e=s}return t}function ht(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const c=[];for(let o=0;o<e.length;o++){const f=e[o];f.claim_order!==void 0&&c.push(f)}e=c}const n=new Int32Array(e.length+1),i=new Int32Array(e.length);n[0]=-1;let s=0;for(let c=0;c<e.length;c++){const o=e[c].claim_order,f=(s>0&&e[n[s]].claim_order<=o?s+1:_t(1,s,d=>e[n[d]].claim_order,o))-1;i[c]=n[f]+1;const _=f+1;n[_]=c,s=Math.max(_,s)}const l=[],r=[];let a=e.length-1;for(let c=n[s]+1;c!=0;c=i[c-1]){for(l.push(e[c-1]);a>=c;a--)r.push(e[a]);a--}for(;a>=0;a--)r.push(e[a]);l.reverse(),r.sort((c,o)=>c.claim_order-o.claim_order);for(let c=0,o=0;c<r.length;c++){for(;o<l.length&&r[c].claim_order>=l[o].claim_order;)o++;const f=o<l.length?l[o]:null;t.insertBefore(r[c],f)}}function mt(t,e){if(L){for(ht(t),(t.actual_end_child===void 0||t.actual_end_child!==null&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);t.actual_end_child!==null&&t.actual_end_child.claim_order===void 0;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?(e.claim_order!==void 0||e.parentNode!==t)&&t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else(e.parentNode!==t||e.nextSibling!==null)&&t.appendChild(e)}function pt(t,e,n){t.insertBefore(e,n||null)}function yt(t,e,n){L&&!n?mt(t,e):(e.parentNode!==t||e.nextSibling!=n)&&t.insertBefore(e,n||null)}function S(t){t.parentNode&&t.parentNode.removeChild(t)}function Bt(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function Y(t){return document.createElement(t)}function Z(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function G(t){return document.createTextNode(t)}function Ot(){return G(" ")}function Ft(){return G("")}function Gt(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function Rt(t){return function(e){return e.preventDefault(),t.call(this,e)}}function zt(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Wt(t,e,n){t.setAttributeNS("http://www.w3.org/1999/xlink",e,n)}function gt(t){return Array.from(t.childNodes)}function tt(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function et(t,e,n,i,s=!1){tt(t);const l=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const a=t[r];if(e(a)){const c=n(a);return c===void 0?t.splice(r,1):t[r]=c,s||(t.claim_info.last_index=r),a}}for(let r=t.claim_info.last_index-1;r>=0;r--){const a=t[r];if(e(a)){const c=n(a);return c===void 0?t.splice(r,1):t[r]=c,s?c===void 0&&t.claim_info.last_index--:t.claim_info.last_index=r,a}}return i()})();return l.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,l}function nt(t,e,n,i){return et(t,s=>s.nodeName===e,s=>{const l=[];for(let r=0;r<s.attributes.length;r++){const a=s.attributes[r];n[a.name]||l.push(a.name)}l.forEach(r=>s.removeAttribute(r))},()=>i(e))}function It(t,e,n){return nt(t,e,n,Y)}function Jt(t,e,n){return nt(t,e,n,Z)}function xt(t,e){return et(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},()=>G(e),!0)}function Kt(t){return xt(t," ")}function K(t,e,n){for(let i=n;i<t.length;i+=1){const s=t[i];if(s.nodeType===8&&s.textContent.trim()===e)return i}return t.length}function Qt(t,e){const n=K(t,"HTML_TAG_START",0),i=K(t,"HTML_TAG_END",n);if(n===i)return new Q(void 0,e);tt(t);const s=t.splice(n,i-n+1);S(s[0]),S(s[s.length-1]);const l=s.slice(1,s.length-1);for(const r of l)r.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1;return new Q(l,e)}function Ut(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Vt(t,e,n,i){n===null?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}function Xt(t,e,n){t.classList[n?"add":"remove"](e)}function bt(t,e,{bubbles:n=!1,cancelable:i=!1}={}){const s=document.createEvent("CustomEvent");return s.initCustomEvent(t,n,i,e),s}function Yt(t,e){const n=[];let i=0;for(const s of e.childNodes)if(s.nodeType===8){const l=s.textContent.trim();l===`HEAD_${t}_END`?(i-=1,n.push(s)):l===`HEAD_${t}_START`&&(i+=1,n.push(s))}else i>0&&n.push(s);return n}class wt{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,i=null){this.e||(this.is_svg?this.e=Z(n.nodeName):this.e=Y(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(i)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;n<this.n.length;n+=1)pt(this.t,this.n[n],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(S)}}class Q extends wt{constructor(e,n=!1){super(n),this.e=this.n=null,this.l=e}c(e){this.l?this.n=this.l:super.c(e)}i(e){for(let n=0;n<this.n.length;n+=1)yt(this.t,this.n[n],e)}}function Zt(t,e){return new t(e)}let T;function v(t){T=t}function R(){if(!T)throw new Error("Function called outside component initialization");return T}function te(t){R().$$.on_mount.push(t)}function ee(t){R().$$.after_update.push(t)}function ne(){const t=R();return(e,n,{cancelable:i=!1}={})=>{const s=t.$$.callbacks[e];if(s){const l=bt(e,n,{cancelable:i});return s.slice().forEach(r=>{r.call(t,l)}),!l.defaultPrevented}return!0}}function ie(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(i=>i.call(this,e))}const b=[],U=[];let w=[];const q=[],it=Promise.resolve();let B=!1;function st(){B||(B=!0,it.then(rt))}function se(){return st(),it}function O(t){w.push(t)}function re(t){q.push(t)}const P=new Set;let x=0;function rt(){if(x!==0)return;const t=T;do{try{for(;x<b.length;){const e=b[x];x++,v(e),$t(e.$$)}}catch(e){throw b.length=0,x=0,e}for(v(null),b.length=0,x=0;U.length;)U.pop()();for(let e=0;e<w.length;e+=1){const n=w[e];P.has(n)||(P.add(n),n())}w.length=0}while(b.length);for(;q.length;)q.pop()();B=!1,P.clear(),v(t)}function $t(t){if(t.fragment!==null){t.update(),E(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(O)}}function Et(t){const e=[],n=[];w.forEach(i=>t.indexOf(i)===-1?e.push(i):n.push(i)),n.forEach(i=>i()),w=e}const M=new Set;let g;function ce(){g={r:0,c:[],p:g}}function le(){g.r||E(g.c),g=g.p}function ct(t,e){t&&t.i&&(M.delete(t),t.i(e))}function vt(t,e,n,i){if(t&&t.o){if(M.has(t))return;M.add(t),g.c.push(()=>{M.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}const oe=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function ae(t,e){vt(t,1,1,()=>{e.delete(t.key)})}function ue(t,e,n,i,s,l,r,a,c,o,f,_){let d=t.length,m=l.length,h=d;const C={};for(;h--;)C[t[h].key]=h;const N=[],H=new Map,j=new Map,z=[];for(h=m;h--;){const u=_(s,l,h),p=n(u);let y=r.get(p);y?i&&z.push(()=>y.p(u,e)):(y=o(p,u),y.c()),H.set(p,N[h]=y),p in C&&j.set(p,Math.abs(h-C[p]))}const W=new Set,I=new Set;function D(u){ct(u,1),u.m(a,f),r.set(u.key,u),f=u.first,m--}for(;d&&m;){const u=N[m-1],p=t[d-1],y=u.key,A=p.key;u===p?(f=u.first,d--,m--):H.has(A)?!r.has(y)||W.has(y)?D(u):I.has(A)?d--:j.get(y)>j.get(A)?(I.add(y),D(u)):(W.add(A),d--):(c(p,r),d--)}for(;d--;){const u=t[d];H.has(u.key)||c(u,r)}for(;m;)D(N[m-1]);return E(z),N}function fe(t,e,n){const i=t.$$.props[e];i!==void 0&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function de(t){t&&t.c()}function _e(t,e){t&&t.l(e)}function Tt(t,e,n,i){const{fragment:s,after_update:l}=t.$$;s&&s.m(e,n),i||O(()=>{const r=t.$$.on_mount.map(V).filter(F);t.$$.on_destroy?t.$$.on_destroy.push(...r):E(r),t.$$.on_mount=[]}),l.forEach(O)}function Nt(t,e){const n=t.$$;n.fragment!==null&&(Et(n.after_update),E(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function At(t,e){t.$$.dirty[0]===-1&&(b.push(t),st(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function he(t,e,n,i,s,l,r,a=[-1]){const c=T;v(t);const o=t.$$={fragment:null,ctx:[],props:l,update:$,not_equal:s,bound:J(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:J(),dirty:a,skip_bound:!1,root:e.target||c.$$.root};r&&r(o.root);let f=!1;if(o.ctx=n?n(t,e.props||{},(_,d,...m)=>{const h=m.length?m[0]:d;return o.ctx&&s(o.ctx[_],o.ctx[_]=h)&&(!o.skip_bound&&o.bound[_]&&o.bound[_](h),f&&At(t,_)),d}):[],o.update(),f=!0,E(o.before_update),o.fragment=i?i(o.ctx):!1,e.target){if(e.hydrate){ft();const _=gt(e.target);o.fragment&&o.fragment.l(_),_.forEach(S)}else o.fragment&&o.fragment.c();e.intro&&ct(t.$$.fragment),Tt(t,e.target,e.anchor,e.customElement),dt(),rt()}v(c)}class me{$destroy(){Nt(this,1),this.$destroy=$}$on(e,n){if(!F(n))return $;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}$set(e){this.$$set&&!ot(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}export{re as $,_e as A,Tt as B,Nt as C,Z as D,Jt as E,mt as F,Lt as G,Xt as H,Gt as I,Ht as J,jt as K,Ct as L,E as M,oe as N,Rt as O,St as P,Dt as Q,Pt as R,me as S,Bt as T,Wt as U,ue as V,ne as W,ae as X,ie as Y,Yt as Z,fe as _,Ot as a,Mt as a0,O as a1,qt as a2,Q as a3,Qt as a4,yt as b,Kt as c,vt as d,Ft as e,le as f,ct as g,S as h,he as i,ee as j,Y as k,It as l,gt as m,$ as n,te as o,zt as p,Vt as q,G as r,kt as s,se as t,xt as u,Ut as v,ce as w,U as x,Zt as y,de as z};
