import{R as X,z as q,ap as P,J as z,P as D,A as N,aP as m,b0 as x,b1 as r0,V as e0,b2 as t0,g as f0,b3 as i0,G as U,b4 as s0,b5 as a0,b6 as u0,b7 as l0,U as o0,b8 as c0,b9 as n0,ba as v0,bb as d0,bc as b0,bd as g0}from"./bc36GTfJ.js";function _0(r,f){if(f){const e=document.body;r.autofocus=!0,X(()=>{document.activeElement===e&&r.focus()})}}let V=!1;function h0(){V||(V=!0,document.addEventListener("reset",r=>{Promise.resolve().then(()=>{if(!r.defaultPrevented)for(const f of r.target.elements)f.__on_r?.()})},{capture:!0}))}function A0(r,f){var e=void 0,t;q(()=>{e!==(e=f())&&(t&&(P(t),t=null),e&&(t=z(()=>{D(()=>e(r))})))})}function G(r){var f,e,t="";if(typeof r=="string"||typeof r=="number")t+=r;else if(typeof r=="object")if(Array.isArray(r)){var i=r.length;for(f=0;f=0;){var n=l+s;(l===0||R.includes(t[l-1]))&&(n===t.length||R.includes(t[n]))?t=(l===0?"":t.substring(0,l))+t.substring(n+1):l=n}}return t===""?null:t}function B(r,f=!1){var e=f?" !important;":";",t="";for(var i in r){var s=r[i];s!=null&&s!==""&&(t+=" "+i+": "+s+e)}return t}function O(r){return r[0]!=="-"||r[1]!=="-"?r.toLowerCase():r}function S0(r,f){if(f){var e="",t,i;if(Array.isArray(f)?(t=f[0],i=f[1]):t=f,r){r=String(r).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,l=0,n=!1,c=[];t&&c.push(...Object.keys(t).map(O)),i&&c.push(...Object.keys(i).map(O));var v=0,p=-1;const L=r.length;for(var d=0;d{C(r,r.__value)});f.observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),e0(()=>{f.disconnect()})}function H(r){return"__value"in r?r.__value:r.value}const y=Symbol("class"),E=Symbol("style"),K=Symbol("is custom element"),F=Symbol("is html");function T0(r){if(N){var f=!1,e=()=>{if(!f){if(f=!0,r.hasAttribute("value")){var t=r.value;T(r,"value",null),r.value=t}if(r.hasAttribute("checked")){var i=r.checked;T(r,"checked",null),r.checked=i}}};r.__on_r=e,c0(e),h0()}}function I0(r,f){f?r.hasAttribute("selected")||r.setAttribute("selected",""):r.removeAttribute("selected")}function T(r,f,e,t){var i=J(r);N&&(i[f]=r.getAttribute(f),f==="src"||f==="srcset"||f==="href"&&r.nodeName==="LINK")||i[f]!==(i[f]=e)&&(f==="loading"&&(r[d0]=e),e==null?r.removeAttribute(f):typeof e!="string"&&Z(r).includes(f)?r[f]=e:r.setAttribute(f,e))}function O0(r,f,e,t,i=!1,s=!1){if(N&&i&&r.tagName==="INPUT"){var l=r,n=l.type==="checkbox"?"defaultChecked":"defaultValue";n in e||T0(l)}var c=J(r),v=c[K],p=!c[F];let d=N&&v;d&&U(!1);var a=f||{},A=r.tagName==="OPTION";for(var S in f)S in e||(e[S]=null);e.class?e.class=L0(e.class):e[y]&&(e.class=null),e[E]&&(e.style??=null);var L=Z(r);for(const u in e){let o=e[u];if(A&&u==="value"&&o==null){r.value=r.__value="",a[u]=o;continue}if(u==="class"){var h=r.namespaceURI==="http://www.w3.org/1999/xhtml";w0(r,h,o,t,f?.[y],e[y]),a[u]=o,a[y]=e[y];continue}if(u==="style"){y0(r,o,f?.[E],e[E]),a[u]=o,a[E]=e[E];continue}var k=a[u];if(!(o===k&&!(o===void 0&&r.hasAttribute(u)))){a[u]=o;var $=u[0]+u[1];if($!=="$$")if($==="on"){const _={},w="$$"+u;let b=u.slice(2);var I=b0(b);if(s0(b)&&(b=b.slice(0,-7),_.capture=!0),!I&&k){if(o!=null)continue;r.removeEventListener(b,a[w],_),a[w]=null}if(o!=null)if(I)r[`__${b}`]=o,u0([b]);else{let Q=function(W){a[u].call(this,W)};a[w]=a0(b,r,Q,_)}else I&&(r[`__${b}`]=void 0)}else if(u==="style")T(r,u,o);else if(u==="autofocus")_0(r,!!o);else if(!v&&(u==="__value"||u==="value"&&o!=null))r.value=r.__value=o;else if(u==="selected"&&A)I0(r,o);else{var g=u;p||(g=l0(g));var j=g==="defaultValue"||g==="defaultChecked";if(o==null&&!v&&!j)if(c[u]=null,g==="value"||g==="checked"){let _=r;const w=f===void 0;if(g==="value"){let b=_.defaultValue;_.removeAttribute(g),_.defaultValue=b,_.value=_.__value=w?b:null}else{let b=_.defaultChecked;_.removeAttribute(g),_.defaultChecked=b,_.checked=w?b:!1}}else r.removeAttribute(u);else j||L.includes(g)&&(v||typeof o!="string")?(r[g]=o,g in c&&(c[g]=o0)):typeof o!="function"&&T(r,g,o)}}}return d&&U(!0),a}function P0(r,f,e=[],t=[],i,s=!1,l=!1){t0(e,t,n=>{var c=void 0,v={},p=r.nodeName==="SELECT",d=!1;if(q(()=>{var A=f(...n.map(f0)),S=O0(r,c,A,i,s,l);d&&p&&"value"in A&&C(r,A.value);for(let h of Object.getOwnPropertySymbols(v))A[h]||P(v[h]);for(let h of Object.getOwnPropertySymbols(A)){var L=A[h];h.description===i0&&(!c||L!==c[h])&&(v[h]&&P(v[h]),v[h]=z(()=>A0(r,()=>L))),S[h]=L}c=S}),p){var a=r;D(()=>{C(a,c.value,!0),E0(a)})}d=!0})}function J(r){return r.__attributes??={[K]:r.nodeName.includes("-"),[F]:r.namespaceURI===n0}}var Y=new Map;function Z(r){var f=r.getAttribute("is")||r.nodeName,e=Y.get(f);if(e)return e;Y.set(f,e=[]);for(var t,i=r,s=Element.prototype;s!==i;){t=g0(i);for(var l in t)t[l].set&&e.push(l);i=v0(i)}return e}const C0="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='107'%20height='128'%20viewBox='0%200%20107%20128'%3e%3ctitle%3esvelte-logo%3c/title%3e%3cpath%20d='M94.157%2022.819c-10.4-14.885-30.94-19.297-45.792-9.835L22.282%2029.608A29.92%2029.92%200%200%200%208.764%2049.65a31.5%2031.5%200%200%200%203.108%2020.231%2030%2030%200%200%200-4.477%2011.183%2031.9%2031.9%200%200%200%205.448%2024.116c10.402%2014.887%2030.942%2019.297%2045.791%209.835l26.083-16.624A29.92%2029.92%200%200%200%2098.235%2078.35a31.53%2031.53%200%200%200-3.105-20.232%2030%2030%200%200%200%204.474-11.182%2031.88%2031.88%200%200%200-5.447-24.116'%20style='fill:%23ff3e00'/%3e%3cpath%20d='M45.817%20106.582a20.72%2020.72%200%200%201-22.237-8.243%2019.17%2019.17%200%200%201-3.277-14.503%2018%2018%200%200%201%20.624-2.435l.49-1.498%201.337.981a33.6%2033.6%200%200%200%2010.203%205.098l.97.294-.09.968a5.85%205.85%200%200%200%201.052%203.878%206.24%206.24%200%200%200%206.695%202.485%205.8%205.8%200%200%200%201.603-.704L69.27%2076.28a5.43%205.43%200%200%200%202.45-3.631%205.8%205.8%200%200%200-.987-4.371%206.24%206.24%200%200%200-6.698-2.487%205.7%205.7%200%200%200-1.6.704l-9.953%206.345a19%2019%200%200%201-5.296%202.326%2020.72%2020.72%200%200%201-22.237-8.243%2019.17%2019.17%200%200%201-3.277-14.502%2017.99%2017.99%200%200%201%208.13-12.052l26.081-16.623a19%2019%200%200%201%205.3-2.329%2020.72%2020.72%200%200%201%2022.237%208.243%2019.17%2019.17%200%200%201%203.277%2014.503%2018%2018%200%200%201-.624%202.435l-.49%201.498-1.337-.98a33.6%2033.6%200%200%200-10.203-5.1l-.97-.294.09-.968a5.86%205.86%200%200%200-1.052-3.878%206.24%206.24%200%200%200-6.696-2.485%205.8%205.8%200%200%200-1.602.704L37.73%2051.72a5.42%205.42%200%200%200-2.449%203.63%205.79%205.79%200%200%200%20.986%204.372%206.24%206.24%200%200%200%206.698%202.486%205.8%205.8%200%200%200%201.602-.704l9.952-6.342a19%2019%200%200%201%205.295-2.328%2020.72%2020.72%200%200%201%2022.237%208.242%2019.17%2019.17%200%200%201%203.277%2014.503%2018%2018%200%200%201-8.13%2012.053l-26.081%2016.622a19%2019%200%200%201-5.3%202.328'%20style='fill:%23fff'/%3e%3c/svg%3e";export{P0 as a,w0 as b,L0 as c,C0 as f,T as s};