var R=Object.defineProperty;var W=(t,e,n)=>e in t?R(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var N=(t,e,n)=>W(t,typeof e!="symbol"?e+"":e,n);function E(){}function G(t,e){for(const n in e)t[n]=e[n];return t}function P(t){return t()}function T(){return Object.create(null)}function y(t){t.forEach(P)}function q(t){return typeof t=="function"}function dt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let b;function ht(t,e){return t===e?!0:(b||(b=document.createElement("a")),b.href=e,t===b.href)}function J(t){return Object.keys(t).length===0}function B(t,...e){if(t==null){for(const r of e)r(void 0);return E}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function mt(t){let e;return B(t,n=>e=n)(),e}function pt(t,e,n){t.$$.on_destroy.push(B(e,n))}function $t(t,e,n,r){if(t){const i=L(t,e,n,r);return t[0](i)}}function L(t,e,n,r){return t[1]&&r?G(n.ctx.slice(),t[1](r(e))):n.ctx}function gt(t,e,n,r){return t[2],e.dirty}function yt(t,e,n,r,i,o){if(i){const c=L(e,n,r,o);t.p(c,i)}}function xt(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let r=0;r>1);n(i)<=r?t=i+1:e=i}return t}function X(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const s=[];for(let u=0;u0&&e[n[i]].claim_order<=u?i+1:V(1,i,x=>e[n[x]].claim_order,u))-1;r[s]=n[f]+1;const a=f+1;n[a]=s,i=Math.max(a,i)}const o=[],c=[];let l=e.length-1;for(let s=n[i]+1;s!=0;s=r[s-1]){for(o.push(e[s-1]);l>=s;l--)c.push(e[l]);l--}for(;l>=0;l--)c.push(e[l]);o.reverse(),c.sort((s,u)=>s.claim_order-u.claim_order);for(let s=0,u=0;s=o[u].claim_order;)u++;const f=ut.removeEventListener(e,n,r)}function Ct(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function St(t){return t.dataset.svelteH}function nt(t){return Array.from(t.childNodes)}function rt(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function M(t,e,n,r,i=!1){rt(t);const o=(()=>{for(let c=t.claim_info.last_index;c=0;c--){const l=t[c];if(e(l)){const s=n(l);return s===void 0?t.splice(c,1):t[c]=s,i?s===void 0&&t.claim_info.last_index--:t.claim_info.last_index=c,l}}return r()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function U(t,e,n,r){return M(t,i=>i.nodeName===e,i=>{const o=[];for(let c=0;ci.removeAttribute(c))},()=>r(e))}function kt(t,e,n){return U(t,e,n,tt)}function jt(t,e,n){return U(t,e,n,et)}function it(t,e){return M(t,n=>n.nodeType===3,n=>{const r=""+e;if(n.data.startsWith(r)){if(n.data.length!==r.length)return n.splitText(r.length)}else n.data=r},()=>k(e),!0)}function Dt(t){return it(t," ")}function Tt(t,e){e=""+e,t.data!==e&&(t.data=e)}function Ht(t,e,n,r){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function Ot(t,e,n){t.classList.toggle(e,!!n)}function ct(t,e,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}function Pt(t,e){const n=[];let r=0;for(const i of e.childNodes)if(i.nodeType===8){const o=i.textContent.trim();o===`HEAD_${t}_END`?(r-=1,n.push(i)):o===`HEAD_${t}_START`&&(r+=1,n.push(i))}else r>0&&n.push(i);return n}function qt(t,e){return new t(e)}let g;function $(t){g=t}function _(){if(!g)throw new Error("Function called outside component initialization");return g}function Bt(t){_().$$.before_update.push(t)}function Lt(t){_().$$.on_mount.push(t)}function Mt(t){_().$$.after_update.push(t)}function Ut(t){_().$$.on_destroy.push(t)}function zt(){const t=_();return(e,n,{cancelable:r=!1}={})=>{const i=t.$$.callbacks[e];if(i){const o=ct(e,n,{cancelable:r});return i.slice().forEach(c=>{c.call(t,o)}),!o.defaultPrevented}return!0}}function Ft(t,e){return _().$$.context.set(t,e),e}function It(t){return _().$$.context.get(t)}function Rt(){return _().$$.context}function Wt(t){return _().$$.context.has(t)}const m=[],H=[];let p=[];const O=[],z=Promise.resolve();let C=!1;function F(){C||(C=!0,z.then(I))}function Gt(){return F(),z}function S(t){p.push(t)}const A=new Set;let h=0;function I(){if(h!==0)return;const t=g;do{try{for(;ht.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),p=e}const v=new Set;let d;function Jt(){d={r:0,c:[],p:d}}function Kt(){d.r||y(d.c),d=d.p}function ot(t,e){t&&t.i&&(v.delete(t),t.i(e))}function Qt(t,e,n,r){if(t&&t.o){if(v.has(t))return;v.add(t),d.c.push(()=>{v.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}function Vt(t){t&&t.c()}function Xt(t,e){t&&t.l(e)}function lt(t,e,n){const{fragment:r,after_update:i}=t.$$;r&&r.m(e,n),S(()=>{const o=t.$$.on_mount.map(P).filter(q);t.$$.on_destroy?t.$$.on_destroy.push(...o):y(o),t.$$.on_mount=[]}),i.forEach(S)}function at(t,e){const n=t.$$;n.fragment!==null&&(ut(n.after_update),y(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ft(t,e){t.$$.dirty[0]===-1&&(m.push(t),F(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const D=j.length?j[0]:x;return u.ctx&&i(u.ctx[a],u.ctx[a]=D)&&(!u.skip_bound&&u.bound[a]&&u.bound[a](D),f&&ft(t,a)),x}):[],u.update(),f=!0,y(u.before_update),u.fragment=r?r(u.ctx):!1,e.target){if(e.hydrate){K();const a=nt(e.target);u.fragment&&u.fragment.l(a),a.forEach(Z)}else u.fragment&&u.fragment.c();e.intro&&ot(t.$$.fragment),lt(t,e.target,e.anchor),Q(),I()}$(s)}class Zt{constructor(){N(this,"$$");N(this,"$$set")}$destroy(){at(this,1),this.$destroy=E}$on(e,n){if(!q(n))return E;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i!==-1&&r.splice(i,1)}}$set(e){this.$$set&&!J(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}export{Rt as $,ht as A,G as B,bt as C,B as D,y as E,q as F,jt as G,et as H,Jt as I,Kt as J,Nt as K,Mt as L,Gt as M,qt as N,Ht as O,H as P,$t as Q,yt as R,Zt as S,xt as T,gt as U,At as V,zt as W,Ut as X,Et as Y,mt as Z,Bt as _,Tt as a,It as a0,Wt as a1,Ft as a2,vt as b,Y as c,Z as d,kt as e,nt as f,it as g,Dt as h,Yt as i,tt as j,wt as k,pt as l,at as m,E as n,Qt as o,ot as p,lt as q,Ct as r,dt as s,k as t,Pt as u,Xt as v,St as w,Vt as x,Lt as y,Ot as z};