import{O as E,Q as W,R as j,n as x,k,l as S,T as D,V as q,W as F,X as G,Y as L,x as Q,L as X,N as Z,e as z,Z as J,f as K,_ as P,$ as ee}from"./runtime.CIcZ2ZRC.js";function ne(){console.warn("hydration_mismatch")}let d=!1;function T(n){d=n}let u=null;function te(n){u=n}function N(n){if(n.nodeType!==8)return n;var e=n;if((e==null?void 0:e.data)!==E)return n;for(var t=[],r=0;(e=e.nextSibling)!==null;){if(e.nodeType===8){var o=e.data;if(o===E)r+=1;else if(o[0]===W){if(r===0)return u=t,e;r-=1}}t.push(e)}j()}var p,y,R,I,V,M,Y,$;function re(){p===void 0&&(p=Node.prototype,y=Element.prototype,R=Text.prototype,p.appendChild,I=p.cloneNode,y.__click=void 0,R.__nodeValue=" ",y.__className="",y.__attributes=null,V=x(p,"firstChild").get,M=x(p,"nextSibling").get,Y=x(p,"textContent").set,$=x(y,"className").set)}function ae(n,e){return I.call(n,e)}function g(){return document.createTextNode("")}function ce(n){const e=V.call(n);return d?e===null?n.appendChild(g()):N(e):e}function de(n,e){if(!d)return V.call(n);const t=n[0];return N(t)}function _e(n,e=!1){const t=M.call(n);if(!d)return t;if(e&&(t==null?void 0:t.nodeType)!==3){const r=g();if(t){const o=u.indexOf(t);u.splice(o,0,r),t.before(r)}else u.push(r);return r}return N(t)}function pe(n,e){$.call(n,e)}function oe(n){Y.call(n,"")}function he(n){for(var e=0;e<n.length;e++)B.add(n[e]);for(var t of O)t(n)}function A(n,e){var _;var t=n.ownerDocument,r=e.type,o=((_=e.composedPath)==null?void 0:_.call(e))||[],a=o[0]||e.target;e.target!==a&&k(e,"target",{configurable:!0,value:a});var v=0,f=e.__root;if(f){var h=o.indexOf(f);if(h!==-1&&(n===document||n===window)){e.__root=n;return}var b=o.indexOf(n);if(b===-1)return;h<=b&&(v=h+1)}a=o[v]||e.target,k(e,"currentTarget",{configurable:!0,get(){return a||t}});function m(s){var i=s.parentNode||s.host||null;try{var l=s["__"+r];if(l!==void 0&&!s.disabled)if(S(l)){var[c,...U]=l;c.apply(s,[e,...U])}else l.call(s,e)}finally{!e.cancelBubble&&i!==n&&i!==null&&s!==n&&m(i)}}try{m(a)}finally{e.__root=n,a=n}}const B=new Set,O=new Set;function me(n,e){const t=n.__nodeValue,r=ie(e);d&&n.nodeValue===r?n.__nodeValue=r:t!==r&&(n.nodeValue=r,n.__nodeValue=r)}function ve(n,e,t,r){e===void 0||e(n,t)}function ie(n){return typeof n=="string"?n:n==null?"":n+""}function se(n,e){const t=e.anchor??e.target.appendChild(g());return D(()=>H(n,{...e,anchor:t}),!1)}function ye(n,e){const t=e.target,r=u;let o=!1;try{return D(()=>{T(!0);for(var a=t.firstChild;a&&(a.nodeType!==8||a.data!==E);)a=a.nextSibling;a||q();const v=N(a),f=H(n,{...e,anchor:v});return T(!1),o=!0,f},!1)}catch(a){if(!o&&e.recover!==!1)return ne(),oe(t),T(!1),se(n,e);throw a}finally{T(!!r),te(r)}}function H(n,{target:e,anchor:t,props:r={},events:o,context:a,intro:v=!1}){re();const f=new Set,h=A.bind(null,e),b=A.bind(null,document),m=i=>{for(let l=0;l<i.length;l++){const c=i[l];f.has(c)||(f.add(c),e.addEventListener(c,h,L.includes(c)?{passive:!0}:void 0),document.addEventListener(c,b,L.includes(c)?{passive:!0}:void 0))}};m(F(B)),O.add(m);let _;const s=G(()=>(Q(()=>{if(a){X({});var i=z;i.c=a}o&&(r.$$events=o),_=n(t,r)||{},a&&Z()}),()=>{for(const i of f)e.removeEventListener(i,h);O.delete(m),C.delete(_)}));return C.set(_,s),_}let C=new WeakMap;function ge(n){const e=C.get(n);e==null||e()}function w(n,e=K){var t=e.dom;return t===null?e.dom=n:(S(t)||(t=e.dom=[t]),S(n)?t.push(...n):t.push(n)),n}function ue(n,e){var t=(e&P)!==0,r=(e&ee)!==0,o;return()=>{if(d)return w(t?u:u[0]);o||(o=J(n),t||(o=o.firstChild));var a=r?document.importNode(o,!0):ae(o,!0);return w(t?[...a.childNodes]:a),a}}function be(n){if(!d)return w(g());var e=u[0];return e||n.before(e=g()),w(e)}const xe=ue("<!>",P);function Te(n,e){d||n.before(e)}const fe="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(fe);export{u as a,Te as b,me as c,ce as d,_e as e,de as f,he as g,d as h,ve as i,ye as j,xe as k,be as l,se as m,g as n,N as o,w as p,pe as q,ie as r,T as s,ue as t,ge as u};
