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