import{r as $,n as g,d as T,f as B,i as v,e as P,g as E,h as j,j as I,k as A,l as D,m as G,p as O}from"./scheduler.Xk2bTahw.js";let p=!1;function R(){p=!0}function q(){p=!1}function z(t,e,n,i){for(;t>1);n(s)<=i?t=s+1:e=s}return t}function U(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const r=[];for(let a=0;a0&&e[n[s]].claim_order<=a?s+1:z(1,s,_=>e[n[_]].claim_order,a))-1;i[r]=n[u]+1;const o=u+1;n[o]=r,s=Math.max(o,s)}const c=[],l=[];let f=e.length-1;for(let r=n[s]+1;r!=0;r=i[r-1]){for(c.push(e[r-1]);f>=r;f--)l.push(e[f]);f--}for(;f>=0;f--)l.push(e[f]);c.reverse(),l.sort((r,a)=>r.claim_order-a.claim_order);for(let r=0,a=0;r=c[a].claim_order;)a++;const u=at.removeEventListener(e,n,i)}function J(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function at(t,e,n){const i=e.toLowerCase();i in t?t[i]=typeof t[i]=="boolean"&&n===""?!0:n:e in t?t[e]=typeof t[e]=="boolean"&&n===""?!0:n:J(t,e,n)}function K(t){return Array.from(t.childNodes)}function C(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function H(t,e,n,i,s=!1){C(t);const c=(()=>{for(let l=t.claim_info.last_index;l=0;l--){const f=t[l];if(e(f)){const r=n(f);return r===void 0?t.splice(l,1):t[l]=r,s?r===void 0&&t.claim_info.last_index--:t.claim_info.last_index=l,f}}return i()})();return c.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,c}function M(t,e,n,i){return H(t,s=>s.nodeName===e,s=>{const c=[];for(let l=0;ls.removeAttribute(l))},()=>i(e))}function ct(t,e,n){return M(t,e,n,L)}function ft(t,e,n){return M(t,e,n,S)}function Q(t,e){return H(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},()=>x(e),!0)}function ot(t){return Q(t," ")}function b(t,e,n){for(let i=n;i{h.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}function gt(t){t&&t.c()}function xt(t,e){t&&t.l(e)}function Z(t,e,n){const{fragment:i,after_update:s}=t.$$;i&&i.m(e,n),E(()=>{const c=t.$$.on_mount.map(D).filter(v);t.$$.on_destroy?t.$$.on_destroy.push(...c):$(c),t.$$.on_mount=[]}),s.forEach(E)}function k(t,e){const n=t.$$;n.fragment!==null&&(j(n.after_update),$(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function tt(t,e){t.$$.dirty[0]===-1&&(G.push(t),O(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const N=w.length?w[0]:_;return a.ctx&&s(a.ctx[o],a.ctx[o]=N)&&(!a.skip_bound&&a.bound[o]&&a.bound[o](N),u&&tt(t,o)),_}):[],a.update(),u=!0,$(a.before_update),a.fragment=i?i(a.ctx):!1,e.target){if(e.hydrate){R();const o=K(e.target);a.fragment&&a.fragment.l(o),o.forEach(m)}else a.fragment&&a.fragment.c();e.intro&&Y(t.$$.fragment),Z(t,e.target,e.anchor),q(),B()}A(r)}class Nt{$$=void 0;$$set=void 0;$destroy(){k(this,1),this.$destroy=g}$on(e,n){if(!v(n))return g;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&&!P(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const et="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(et);export{at as A,it as B,S as C,ft as D,lt as E,y as H,Nt as S,K as a,Q as b,ct as c,m as d,L as e,ot as f,F as g,V as h,wt as i,dt as j,rt as k,yt as l,pt as m,Y as n,J as o,_t as p,$t as q,mt as r,st as s,x as t,gt as u,xt as v,Z as w,k as x,ut as y,ht as z};