import{h,a5 as b,a6 as C,a7 as L,a8 as N,a9 as V,aa as w,a3 as F,ab as U,ac as $,q as G,ad as z,ae as J,af as K,k as f,d as W,ag as M,s as A,ah as O,H as Q,ai as X,aj as R,g as T,ak as Z,al as ee,am as re,an as te,ao as ae,j as ne,M as ie,c as oe,T as se}from"./DnREidt8.js";const ue=["touchstart","touchmove"];function fe(e){return ue.includes(e)}function pe(e){h&&b(e)!==null&&C(e)}let k=!1;function ce(){k||(k=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var r;if(!e.defaultPrevented)for(const t of e.target.elements)(r=t.__on_r)==null||r.call(t)})},{capture:!0}))}function j(e){var r=V,t=w;L(null),N(null);try{return e()}finally{L(r),N(t)}}function ge(e,r,t,i=t){e.addEventListener(r,()=>j(t));const n=e.__on_r;n?e.__on_r=()=>{n(),i(!0)}:e.__on_r=()=>i(!0),ce()}const q=new Set,P=new Set;function de(e,r,t,i={}){function n(a){if(i.capture||y.call(r,a),!a.cancelBubble)return j(()=>t==null?void 0:t.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?G(()=>{r.addEventListener(e,n,i)}):r.addEventListener(e,n,i),n}function me(e,r,t,i,n){var a={capture:i,passive:n},o=de(e,r,t,a);(r===document.body||r===window||r===document||r instanceof HTMLMediaElement)&&$(()=>{r.removeEventListener(e,o,a)})}function ye(e){for(var r=0;r<e.length;r++)q.add(e[r]);for(var t of P)t(e)}function y(e){var I;var r=this,t=r.ownerDocument,i=e.type,n=((I=e.composedPath)==null?void 0:I.call(e))||[],a=n[0]||e.target,o=0,_=e.__root;if(_){var d=n.indexOf(_);if(d!==-1&&(r===document||r===window)){e.__root=r;return}var g=n.indexOf(r);if(g===-1)return;d<=g&&(o=d)}if(a=n[o]||e.target,a!==r){F(e,"currentTarget",{configurable:!0,get(){return a||t}});var S=V,c=w;L(null),N(null);try{for(var s,u=[];a!==null;){var l=a.assignedSlot||a.parentNode||a.host||null;try{var p=a["__"+i];if(p!=null&&(!a.disabled||e.target===a))if(U(p)){var[Y,...x]=p;Y.apply(a,[e,...x])}else p.call(a,e)}catch(E){s?u.push(E):s=E}if(e.cancelBubble||l===r||l===null)break;a=l}if(s){for(let E of u)queueMicrotask(()=>{throw E});throw s}}finally{e.__root=r,delete e.currentTarget,L(S),N(c)}}}function le(e){var r=document.createElement("template");return r.innerHTML=e.replaceAll("<!>","<!---->"),r.content}function v(e,r){var t=w;t.nodes_start===null&&(t.nodes_start=e,t.nodes_end=r)}function we(e,r){var t=(r&J)!==0,i=(r&K)!==0,n,a=!e.startsWith("<!>");return()=>{if(h)return v(f,null),f;n===void 0&&(n=le(a?e:"<!>"+e),t||(n=b(n)));var o=i||z?document.importNode(n,!0):n.cloneNode(!0);if(t){var _=b(o),d=o.lastChild;v(_,d)}else v(o,o);return o}}function Ee(e=""){if(!h){var r=M(e+"");return v(r,r),r}var t=f;return t.nodeType!==3&&(t.before(t=M()),A(t)),v(t,t),t}function Te(){if(h)return v(f,null),f;var e=document.createDocumentFragment(),r=document.createComment(""),t=M();return e.append(r,t),v(r,t),e}function be(e,r){if(h){w.nodes_end=f,W();return}e!==null&&e.before(r)}function Le(e,r){var t=r==null?"":typeof r=="object"?r+"":r;t!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=t,e.nodeValue=t+"")}function _e(e,r){return B(e,r)}function Ne(e,r){O(),r.intro=r.intro??!1;const t=r.target,i=h,n=f;try{for(var a=b(t);a&&(a.nodeType!==8||a.data!==Q);)a=X(a);if(!a)throw R;T(!0),A(a),W();const o=B(e,{...r,anchor:a});if(f===null||f.nodeType!==8||f.data!==Z)throw ee(),R;return T(!1),o}catch(o){if(o===R)return r.recover===!1&&re(),O(),C(t),T(!1),_e(e,r);throw o}finally{T(i),A(n)}}const m=new Map;function B(e,{target:r,anchor:t,props:i={},events:n,context:a,intro:o=!0}){O();var _=new Set,d=c=>{for(var s=0;s<c.length;s++){var u=c[s];if(!_.has(u)){_.add(u);var l=fe(u);r.addEventListener(u,y,{passive:l});var p=m.get(u);p===void 0?(document.addEventListener(u,y,{passive:l}),m.set(u,1)):m.set(u,p+1)}}};d(te(q)),P.add(d);var g=void 0,S=ae(()=>{var c=t??r.appendChild(M());return ne(()=>{if(a){ie({});var s=oe;s.c=a}n&&(i.$$events=n),h&&v(c,null),g=e(c,i)||{},h&&(w.nodes_end=f),a&&se()}),()=>{var l;for(var s of _){r.removeEventListener(s,y);var u=m.get(s);--u===0?(document.removeEventListener(s,y),m.delete(s)):m.set(s,u)}P.delete(d),c!==t&&((l=c.parentNode)==null||l.removeChild(c))}});return D.set(g,S),g}let D=new WeakMap;function Me(e,r){const t=D.get(e);return t?(D.delete(e),t(r)):Promise.resolve()}const ve="5";var H;typeof window<"u"&&((H=window.__svelte??(window.__svelte={})).v??(H.v=new Set)).add(ve);export{be as a,ce as b,Te as c,ye as d,me as e,we as f,Ne as h,ge as l,_e as m,pe as r,Le as s,Ee as t,Me as u};
