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