@htmlbricks/hb-input-email 0.66.0 → 0.66.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(mt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const xr=1,kr=2,bt="[",Xe="[!",gt="]",ce={},E=Symbol(),Tr="http://www.w3.org/1999/xhtml",Ze=!1;var Sr=Array.isArray,Ar=Array.prototype.indexOf,Rr=Array.from,Me=Object.keys,Le=Object.defineProperty,de=Object.getOwnPropertyDescriptor,Nr=Object.getOwnPropertyDescriptors,Cr=Object.prototype,Or=Array.prototype,wt=Object.getPrototypeOf,yt=Object.isExtensible;function Mr(e){for(var t=0;t<e.length;t++)e[t]()}function $t(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const $=2,Qe=4,et=8,H=16,z=32,te=64,Pe=128,D=512,x=1024,S=2048,U=4096,q=8192,W=16384,De=32768,he=65536,Et=1<<17,xt=1<<18,se=1<<19,Lr=1<<20,le=32768,tt=1<<21,rt=1<<22,re=1<<23,nt=Symbol("$state"),Pr=Symbol("legacy props"),Dr=Symbol(""),ve=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},it=3,ye=8;function Fr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ir(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function jr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function qr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Br(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Vr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Yr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Hr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function zr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ur(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Fe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Wr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function _e(e){w=e}let m;function F(e){if(e===null)throw Fe(),ce;return m=e}function st(){return F(X(m))}function Kr(e){if(w){if(X(m)!==null)throw Fe(),ce;m=e}}function Gr(e=1){if(w){for(var t=e,r=m;t--;)r=X(r);m=r}}function kt(e=!0){for(var t=0,r=m;;){if(r.nodeType===ye){var n=r.data;if(n===gt){if(t===0)return r;t-=1}else(n===bt||n===Xe)&&(t+=1)}var s=X(r);e&&r.remove(),r=s}}function Jr(e){if(!e||e.nodeType!==ye)throw Fe(),ce;return e.data}function Tt(e){return e===this.v}function Xr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Zr(e){return!Xr(e,this.v)}let Qr=!1,C=null;function pe(e){C=e}function St(e,t=!1,r){C={p:C,i:!1,c:null,e:null,s:e,x:null,l:null}}function At(e){var t=C,r=t.e;if(r!==null){t.e=null;for(var n of r)Jt(n)}return e!==void 0&&(t.x=e),t.i=!0,C=t.p,e??{}}function Rt(){return!0}let oe=[];function Nt(){var e=oe;oe=[],Mr(e)}function $e(e){if(oe.length===0&&!Ee){var t=oe;queueMicrotask(()=>{t===oe&&Nt()})}oe.push(e)}function en(){for(;oe.length>0;)Nt()}function Ct(e){var t=p;if(t===null)return v.f|=re,e;if((t.f&De)===0){if((t.f&Pe)===0)throw e;t.b.error(e)}else me(e,t)}function me(e,t){for(;t!==null;){if((t.f&Pe)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Ie=new Set;let b=null,je=null,O=null,M=[],qe=null,lt=!1,Ee=!1;class I{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#a=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){M=[],je=null,this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#l(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#o(r.effects),this.#o(r.render_effects),this.#o(r.block_effects)):(je=this,b=null,Mt(r.render_effects),Mt(r.effects),je=null,this.#a?.resolve()),O=null}#l(t,r){t.f^=x;for(var n=t.first;n!==null;){var s=n.f,i=(s&(z|te))!==0,l=i&&(s&x)!==0,o=l||(s&q)!==0||this.skipped_effects.has(n);if((n.f&Pe)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!o&&n.fn!==null){i?n.f^=x:(s&Qe)!==0?r.effects.push(n):Ne(n)&&((n.f&H)!==0&&r.block_effects.push(n),Ce(n));var a=n.first;if(a!==null){n=a;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)f===r.effect&&(this.#o(r.effects),this.#o(r.render_effects),this.#o(r.block_effects),r=r.parent),n=f.next,f=f.parent}}#o(t){for(const r of t)((r.f&S)!==0?this.#s:this.#i).push(r),this.#f(r.deps),k(r,x)}#f(t){if(t!==null)for(const r of t)(r.f&$)===0||(r.f&le)===0||(r.f^=le,this.#f(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&re)===0&&(this.current.set(t,t.v),O?.set(t,t.v))}activate(){b=this,this.apply()}deactivate(){b===this&&(b=null,O=null)}flush(){if(this.activate(),M.length>0){if(Ot(),b!==null&&b!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#c()}#c(){if(Ie.size>1){this.previous.clear();var t=O,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Ie){if(i===this){r=!1;continue}const l=[];for(const[a,f]of this.current){if(i.current.has(a))if(r&&f!==i.current.get(a))i.current.set(a,f);else continue;l.push(a)}if(l.length===0)continue;const o=[...i.current.keys()].filter(a=>!this.current.has(a));if(o.length>0){var s=M;M=[];const a=new Set,f=new Map;for(const d of l)Lt(d,o,a,f);if(M.length>0){b=i,i.apply();for(const d of M)i.#l(d,n);i.deactivate()}M=s}}b=null,O=t}this.committed=!0,Ie.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#s)k(t,S),ae(t);for(const t of this.#i)k(t,U),ae(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#a??=$t()).promise}static ensure(){if(b===null){const t=b=new I;Ie.add(b),Ee||I.enqueue(()=>{b===t&&t.flush()})}return b}static enqueue(t){$e(t)}apply(){}}function xe(e){var t=Ee;Ee=!0;try{for(var r;;){if(en(),M.length===0&&(b?.flush(),M.length===0))return qe=null,r;Ot()}}finally{Ee=t}}function Ot(){var e=ie;lt=!0;var t=null;try{var r=0;for(ze(!0);M.length>0;){var n=I.ensure();if(r++>1e3){var s,i;tn()}n.process(M),ne.clear()}}finally{lt=!1,ze(e),qe=null}}function tn(){try{Br()}catch(e){me(e,qe)}}let K=null;function Mt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(W|q))===0&&Ne(n)&&(K=new Set,Ce(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?tr(n):n.fn=null),K?.size>0)){ne.clear();for(const s of K){if((s.f&(W|q))!==0)continue;const i=[s];let l=s.parent;for(;l!==null;)K.has(l)&&(K.delete(l),i.push(l)),l=l.parent;for(let o=i.length-1;o>=0;o--){const a=i[o];(a.f&(W|q))===0&&Ce(a)}}K.clear()}}K=null}}function Lt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&$)!==0?Lt(s,t,r,n):(i&(rt|H))!==0&&(i&S)===0&&Pt(s,t,n)&&(k(s,S),ae(s))}}function Pt(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&$)!==0&&Pt(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function ae(e){for(var t=qe=e;t.parent!==null;){t=t.parent;var r=t.f;if(lt&&t===p&&(r&H)!==0&&(r&xt)===0)return;if((r&(te|z))!==0){if((r&x)===0)return;t.f^=x}}M.push(t)}function rn(e){let t=0,r=ke(0),n;return()=>{He()&&(_(r),ct(()=>(t===0&&(n=vr(()=>e(()=>Te(r)))),t+=1,()=>{$e(()=>{t-=1,t===0&&(n?.(),n=void 0,Te(r))})})))}}var nn=he|se|Pe;function sn(e,t,r){new ln(e,t,r)}class ln{parent;#t=!1;#e;#r=w?m:null;#n;#a;#s;#i=null;#l=null;#o=null;#f=null;#u=null;#c=0;#d=0;#v=!1;#h=null;#g=rn(()=>(this.#h=ke(this.#c),()=>{this.#h=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#a=n,this.parent=p.b,this.#t=!!this.#n.pending,this.#s=Zt(()=>{if(p.b=this,w){const i=this.#r;st(),i.nodeType===ye&&i.data===Xe?this.#y():this.#w()}else{var s=this.#m();try{this.#i=Z(()=>n(s))}catch(i){this.error(i)}this.#d>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},nn),w&&(this.#e=m)}#w(){try{this.#i=Z(()=>this.#a(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#n.pending;t&&(this.#l=Z(()=>t(this.#e)),I.enqueue(()=>{var r=this.#m();this.#i=this.#_(()=>(I.ensure(),Z(()=>this.#a(r)))),this.#d>0?this.#p():(Ae(this.#l,()=>{this.#l=null}),this.#t=!1)}))}#m(){var t=this.#e;return this.#t&&(this.#u=J(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#_(t){var r=p,n=v,s=C;Y(this.#s),R(this.#s),pe(this.#s.ctx);try{return t()}catch(i){return Ct(i),null}finally{Y(r),R(n),pe(s)}}#p(){const t=this.#n.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),ir(this.#i,this.#f)),this.#l===null&&(this.#l=Z(()=>t(this.#e)))}#b(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#l&&Ae(this.#l,()=>{this.#l=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#b(t),this.#c+=t,this.#h&&Ve(this.#h,this.#c)}get_effect_pending(){return this.#g(),_(this.#h)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#v||!r&&!n)throw t;this.#i&&(A(this.#i),this.#i=null),this.#l&&(A(this.#l),this.#l=null),this.#o&&(A(this.#o),this.#o=null),w&&(F(this.#r),Gr(),F(kt()));var s=!1,i=!1;const l=()=>{if(s){Wr();return}s=!0,i&&Ur(),I.ensure(),this.#c=0,this.#o!==null&&Ae(this.#o,()=>{this.#o=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,Z(()=>this.#a(this.#e)))),this.#d>0?this.#p():this.#t=!1};var o=v;try{R(null),i=!0,r?.(t,l),i=!1}catch(a){me(a,this.#s&&this.#s.parent)}finally{R(o)}n&&$e(()=>{this.#o=this.#_(()=>{I.ensure(),this.#v=!0;try{return Z(()=>{n(this.#e,()=>t,()=>l)})}catch(a){return me(a,this.#s.parent),null}finally{this.#v=!1}})})}}function on(e,t,r,n){const s=ot;if(r.length===0&&e.length===0){n(t.map(s));return}var i=b,l=p,o=an();function a(){Promise.all(r.map(f=>fn(f))).then(f=>{o();try{n([...t.map(s),...f])}catch(d){(l.f&W)===0&&me(d,l)}i?.deactivate(),Be()}).catch(f=>{me(f,l)})}e.length>0?Promise.all(e).then(()=>{o();try{return a()}finally{i?.deactivate(),Be()}}):a()}function an(){var e=p,t=v,r=C,n=b;return function(i=!0){Y(e),R(t),pe(r),i&&n?.activate()}}function Be(){Y(null),R(null),pe(null)}function ot(e){var t=$|S,r=v!==null&&(v.f&$)!==0?v:null;return p!==null&&(p.f|=se),{ctx:C,deps:null,effects:null,equals:Tt,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:r??p,ac:null}}function fn(e,t){let r=p;r===null&&Fr();var n=r.b,s=void 0,i=ke(E),l=!v,o=new Map;return En(()=>{var a=$t();s=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).then(()=>{f===b&&f.committed&&f.deactivate(),Be()})}catch(c){a.reject(c),Be()}var f=b;if(l){var d=!n.is_pending();n.update_pending_count(1),f.increment(d),o.get(f)?.reject(ve),o.delete(f),o.set(f,a)}const h=(c,u=void 0)=>{if(f.activate(),u)u!==ve&&(i.f|=re,Ve(i,u));else{(i.f&re)!==0&&(i.f^=re),Ve(i,c);for(const[g,y]of o){if(o.delete(g),g===f)break;y.reject(ve)}}l&&(n.update_pending_count(-1),f.decrement(d))};a.promise.then(h,c=>h(null,c||"unknown"))}),Kt(()=>{for(const a of o.values())a.reject(ve)}),new Promise(a=>{function f(d){function h(){d===s?a(i):f(s)}d.then(h,h)}f(s)})}function Dt(e){const t=ot(e);return lr(t),t}function Ft(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)A(t[r])}}function un(e){for(var t=e.parent;t!==null;){if((t.f&$)===0)return(t.f&W)===0?t:null;t=t.parent}return null}function at(e){var t,r=p;Y(un(e));try{e.f&=~le,Ft(e),t=cr(e)}finally{Y(r)}return t}function It(e){var t=at(e);if(e.equals(t)||(b?.is_fork||(e.v=t),e.wv=fr()),!fe)if(O!==null)He()&&O.set(e,t);else{var r=(e.f&D)===0?U:x;k(e,r)}}let ft=new Set;const ne=new Map;let jt=!1;function ke(e,t){var r={f:0,v:e,reactions:null,equals:Tt,rv:0,wv:0};return r}function G(e,t){const r=ke(e);return lr(r),r}function cn(e,t=!1,r=!0){const n=ke(e);return t||(n.equals=Zr),n}function j(e,t,r=!1){v!==null&&(!V||(v.f&Et)!==0)&&Rt()&&(v.f&($|H|rt|Et))!==0&&!Q?.includes(e)&&zr();let n=r?Se(t):t;return Ve(e,n)}function Ve(e,t){if(!e.equals(t)){var r=e.v;fe?ne.set(e,t):ne.set(e,r),e.v=t;var n=I.ensure();n.capture(e,r),(e.f&$)!==0&&((e.f&S)!==0&&at(e),k(e,(e.f&D)!==0?x:U)),e.wv=fr(),qt(e,S),p!==null&&(p.f&x)!==0&&(p.f&(z|te))===0&&(L===null?An([e]):L.push(e)),!n.is_fork&&ft.size>0&&!jt&&dn()}return t}function dn(){jt=!1;var e=ie;ze(!0);const t=Array.from(ft);try{for(const r of t)(r.f&x)!==0&&k(r,U),Ne(r)&&Ce(r)}finally{ze(e)}ft.clear()}function Te(e){j(e,e.v+1)}function qt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s],l=i.f,o=(l&S)===0;if(o&&k(i,t),(l&$)!==0){var a=i;O?.delete(a),(l&le)===0&&(l&D&&(i.f|=le),qt(a,U))}else o&&((l&H)!==0&&K!==null&&K.add(i),ae(i))}}function Se(e){if(typeof e!="object"||e===null||nt in e)return e;const t=wt(e);if(t!==Cr&&t!==Or)return e;var r=new Map,n=Sr(e),s=G(0),i=ue,l=o=>{if(ue===i)return o();var a=v,f=ue;R(null),ar(i);var d=o();return R(a),ar(f),d};return n&&r.set("length",G(e.length)),new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Yr();var d=r.get(a);return d===void 0?d=l(()=>{var h=G(f.value);return r.set(a,h),h}):j(d,f.value,!0),!0},deleteProperty(o,a){var f=r.get(a);if(f===void 0){if(a in o){const d=l(()=>G(E));r.set(a,d),Te(s)}}else j(f,E),Te(s);return!0},get(o,a,f){if(a===nt)return e;var d=r.get(a),h=a in o;if(d===void 0&&(!h||de(o,a)?.writable)&&(d=l(()=>{var u=Se(h?o[a]:E),g=G(u);return g}),r.set(a,d)),d!==void 0){var c=_(d);return c===E?void 0:c}return Reflect.get(o,a,f)},getOwnPropertyDescriptor(o,a){var f=Reflect.getOwnPropertyDescriptor(o,a);if(f&&"value"in f){var d=r.get(a);d&&(f.value=_(d))}else if(f===void 0){var h=r.get(a),c=h?.v;if(h!==void 0&&c!==E)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(o,a){if(a===nt)return!0;var f=r.get(a),d=f!==void 0&&f.v!==E||Reflect.has(o,a);if(f!==void 0||p!==null&&(!d||de(o,a)?.writable)){f===void 0&&(f=l(()=>{var c=d?Se(o[a]):E,u=G(c);return u}),r.set(a,f));var h=_(f);if(h===E)return!1}return d},set(o,a,f,d){var h=r.get(a),c=a in o;if(n&&a==="length")for(var u=f;u<h.v;u+=1){var g=r.get(u+"");g!==void 0?j(g,E):u in o&&(g=l(()=>G(E)),r.set(u+"",g))}if(h===void 0)(!c||de(o,a)?.writable)&&(h=l(()=>G(void 0)),j(h,Se(f)),r.set(a,h));else{c=h.v!==E;var y=l(()=>Se(f));j(h,y)}var ee=Reflect.getOwnPropertyDescriptor(o,a);if(ee?.set&&ee.set.call(d,f),!c){if(n&&typeof a=="string"){var Je=r.get("length"),P=Number(a);Number.isInteger(P)&&P>=Je.v&&j(Je,P+1)}Te(s)}return!0},ownKeys(o){_(s);var a=Reflect.ownKeys(o).filter(h=>{var c=r.get(h);return c===void 0||c.v!==E});for(var[f,d]of r)d.v!==E&&!(f in o)&&a.push(f);return a},setPrototypeOf(){Hr()}})}var Bt,Vt,Yt,Ht;function ut(){if(Bt===void 0){Bt=window,Vt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Yt=de(t,"firstChild").get,Ht=de(t,"nextSibling").get,yt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),yt(r)&&(r.__t=void 0)}}function J(e=""){return document.createTextNode(e)}function be(e){return Yt.call(e)}function X(e){return Ht.call(e)}function hn(e,t){if(!w)return be(e);var r=be(m);if(r===null)r=m.appendChild(J());else if(r.nodeType!==it){var n=J();return r?.before(n),F(n),n}return F(r),r}function zt(e,t=!1){if(!w){var r=be(e);return r instanceof Comment&&r.data===""?X(r):r}if(t&&m?.nodeType!==it){var n=J();return m?.before(n),F(n),n}return m}function vn(e,t=1,r=!1){let n=w?m:e;for(var s;t--;)s=n,n=X(n);if(!w)return n;if(r&&n?.nodeType!==it){var i=J();return n===null?s?.after(i):n.before(i),F(i),i}return F(n),n}function _n(e){e.textContent=""}function pn(){return!1}let Ut=!1;function Wt(){Ut||(Ut=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Ye(e){var t=v,r=p;R(null),Y(null);try{return e()}finally{R(t),Y(r)}}function mn(e,t,r,n=r){e.addEventListener(t,()=>Ye(r));const s=e.__on_r;s?e.__on_r=()=>{s(),n(!0)}:e.__on_r=()=>n(!0),Wt()}function bn(e){p===null&&(v===null&&qr(),jr()),fe&&Ir()}function gn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function B(e,t,r){var n=p;n!==null&&(n.f&q)!==0&&(e|=q);var s={ctx:C,deps:null,nodes_start:null,nodes_end:null,f:e|S|D,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Ce(s),s.f|=De}catch(o){throw A(s),o}else t!==null&&ae(s);var i=s;if(r&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&se)===0&&(i=i.first,(e&H)!==0&&(e&he)!==0&&i!==null&&(i.f|=he)),i!==null&&(i.parent=n,n!==null&&gn(i,n),v!==null&&(v.f&$)!==0&&(e&te)===0)){var l=v;(l.effects??=[]).push(i)}return s}function He(){return v!==null&&!V}function Kt(e){const t=B(et,null,!1);return k(t,x),t.teardown=e,t}function Gt(e){bn();var t=p.f,r=!v&&(t&z)!==0&&(t&De)===0;if(r){var n=C;(n.e??=[]).push(e)}else return Jt(e)}function Jt(e){return B(Qe|Lr,e,!1)}function wn(e){I.ensure();const t=B(te|se,e,!0);return()=>{A(t)}}function yn(e){I.ensure();const t=B(te|se,e,!0);return(r={})=>new Promise(n=>{r.outro?Ae(t,()=>{A(t),n(void 0)}):(A(t),n(void 0))})}function $n(e){return B(Qe,e,!1)}function En(e){return B(rt|se,e,!0)}function ct(e,t=0){return B(et|t,e,!0)}function Xt(e,t=[],r=[],n=[]){on(n,t,r,s=>{B(et,()=>e(...s.map(_)),!0)})}function Zt(e,t=0){var r=B(H|t,e,!0);return r}function Z(e){return B(z|se,e,!0)}function Qt(e){var t=e.teardown;if(t!==null){const r=fe,n=v;sr(!0),R(null);try{t.call(null)}finally{sr(r),R(n)}}}function er(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Ye(()=>{s.abort(ve)});var n=r.next;(r.f&te)!==0?r.parent=null:A(r,t),r=n}}function xn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&z)===0&&A(t),t=r}}function A(e,t=!0){var r=!1;(t||(e.f&xt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(kn(e.nodes_start,e.nodes_end),r=!0),er(e,t&&!r),Ue(e,0),k(e,W);var n=e.transitions;if(n!==null)for(const i of n)i.stop();Qt(e);var s=e.parent;s!==null&&s.first!==null&&tr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function kn(e,t){for(;e!==null;){var r=e===t?null:X(e);e.remove(),e=r}}function tr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Ae(e,t,r=!0){var n=[];rr(e,n,!0),Tn(n,()=>{r&&A(e),t&&t()})}function Tn(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function rr(e,t,r){if((e.f&q)===0){if(e.f^=q,e.transitions!==null)for(const l of e.transitions)(l.is_global||r)&&t.push(l);for(var n=e.first;n!==null;){var s=n.next,i=(n.f&he)!==0||(n.f&z)!==0&&(e.f&H)!==0;rr(n,t,i?r:!1),n=s}}}function Sn(e){nr(e,!0)}function nr(e,t){if((e.f&q)!==0){e.f^=q,(e.f&x)===0&&(k(e,S),ae(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&he)!==0||(r.f&z)!==0;nr(r,s?t:!1),r=n}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function ir(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var s=r===n?null:X(r);t.append(r),r=s}}let ie=!1;function ze(e){ie=e}let fe=!1;function sr(e){fe=e}let v=null,V=!1;function R(e){v=e}let p=null;function Y(e){p=e}let Q=null;function lr(e){v!==null&&(Q===null?Q=[e]:Q.push(e))}let T=null,N=0,L=null;function An(e){L=e}let or=1,Re=0,ue=Re;function ar(e){ue=e}function fr(){return++or}function Ne(e){var t=e.f;if((t&S)!==0)return!0;if(t&$&&(e.f&=~le),(t&U)!==0){var r=e.deps;if(r!==null)for(var n=r.length,s=0;s<n;s++){var i=r[s];if(Ne(i)&&It(i),i.wv>e.wv)return!0}(t&D)!==0&&O===null&&k(e,x)}return!1}function ur(e,t,r=!0){var n=e.reactions;if(n!==null&&!Q?.includes(e))for(var s=0;s<n.length;s++){var i=n[s];(i.f&$)!==0?ur(i,t,!1):t===i&&(r?k(i,S):(i.f&x)!==0&&k(i,U),ae(i))}}function cr(e){var t=T,r=N,n=L,s=v,i=Q,l=C,o=V,a=ue,f=e.f;T=null,N=0,L=null,v=(f&(z|te))===0?e:null,Q=null,pe(e.ctx),V=!1,ue=++Re,e.ac!==null&&(Ye(()=>{e.ac.abort(ve)}),e.ac=null);try{e.f|=tt;var d=e.fn,h=d(),c=e.deps;if(T!==null){var u;if(Ue(e,N),c!==null&&N>0)for(c.length=N+T.length,u=0;u<T.length;u++)c[N+u]=T[u];else e.deps=c=T;if(ie&&He()&&(e.f&D)!==0)for(u=N;u<c.length;u++)(c[u].reactions??=[]).push(e)}else c!==null&&N<c.length&&(Ue(e,N),c.length=N);if(Rt()&&L!==null&&!V&&c!==null&&(e.f&($|U|S))===0)for(u=0;u<L.length;u++)ur(L[u],e);return s!==null&&s!==e&&(Re++,L!==null&&(n===null?n=L:n.push(...L))),(e.f&re)!==0&&(e.f^=re),h}catch(g){return Ct(g)}finally{e.f^=tt,T=t,N=r,L=n,v=s,Q=i,pe(l),V=o,ue=a}}function Rn(e,t){let r=t.reactions;if(r!==null){var n=Ar.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(t.f&$)!==0&&(T===null||!T.includes(t))&&(k(t,U),(t.f&D)!==0&&(t.f^=D,t.f&=~le),Ft(t),Ue(t,0))}function Ue(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Rn(e,r[n])}function Ce(e){var t=e.f;if((t&W)===0){k(e,x);var r=p,n=ie;p=e,ie=!0;try{(t&H)!==0?xn(e):er(e),Qt(e);var s=cr(e);e.teardown=typeof s=="function"?s:null,e.wv=or;var i;Ze&&Qr&&(e.f&S)!==0&&e.deps}finally{ie=n,p=r}}}async function Nn(){await Promise.resolve(),xe()}function _(e){var t=e.f,r=(t&$)!==0;if(v!==null&&!V){var n=p!==null&&(p.f&W)!==0;if(!n&&!Q?.includes(e)){var s=v.deps;if((v.f&tt)!==0)e.rv<Re&&(e.rv=Re,T===null&&s!==null&&s[N]===e?N++:T===null?T=[e]:T.includes(e)||T.push(e));else{(v.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[v]:i.includes(v)||i.push(v)}}}if(fe){if(ne.has(e))return ne.get(e);if(r){var l=e,o=l.v;return((l.f&x)===0&&l.reactions!==null||hr(l))&&(o=at(l)),ne.set(l,o),o}}else r&&!O?.has(e)&&(l=e,Ne(l)&&It(l),ie&&He()&&(l.f&D)===0&&dr(l));if(O?.has(e))return O.get(e);if((e.f&re)!==0)throw e.v;return e.v}function dr(e){if(e.deps!==null){e.f^=D;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&$)!==0&&(t.f&D)===0&&dr(t)}}function hr(e){if(e.v===E)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ne.has(t)||(t.f&$)!==0&&hr(t))return!0;return!1}function vr(e){var t=V;try{return V=!0,e()}finally{V=t}}const Cn=-7169;function k(e,t){e.f=e.f&Cn|t}const On=new Set,_r=new Set;function Mn(e,t,r,n={}){function s(i){if(n.capture||Oe.call(t,i),!i.cancelBubble)return Ye(()=>r?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?$e(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function Ln(e,t,r,n,s){var i={capture:n,passive:s},l=Mn(e,t,r,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Kt(()=>{t.removeEventListener(e,l,i)})}let pr=null;function Oe(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;pr=e;var l=0,o=pr===e&&e.__root;if(o){var a=s.indexOf(o);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var f=s.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(i=s[l]||e.target,i!==t){Le(e,"currentTarget",{configurable:!0,get(){return i||r}});var d=v,h=p;R(null),Y(null);try{for(var c,u=[];i!==null;){var g=i.assignedSlot||i.parentNode||i.host||null;try{var y=i["__"+n];y!=null&&(!i.disabled||e.target===i)&&y.call(i,e)}catch(ee){c?u.push(ee):c=ee}if(e.cancelBubble||g===t||g===null)break;i=g}if(c){for(let ee of u)queueMicrotask(()=>{throw ee});throw c}}finally{e.__root=t,delete e.currentTarget,R(d),Y(h)}}}function Pn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function ge(e,t){var r=p;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function mr(e,t){var r=(t&xr)!==0,n=(t&kr)!==0,s,i=!e.startsWith("<!>");return()=>{if(w)return ge(m,null),m;s===void 0&&(s=Pn(i?e:"<!>"+e),r||(s=be(s)));var l=n||Vt?document.importNode(s,!0):s.cloneNode(!0);if(r){var o=be(l),a=l.lastChild;ge(o,a)}else ge(l,l);return l}}function Dn(){if(w)return ge(m,null),m;var e=document.createDocumentFragment(),t=document.createComment(""),r=J();return e.append(t,r),ge(t,r),e}function We(e,t){if(w){var r=p;((r.f&De)===0||r.nodes_end===null)&&(r.nodes_end=m),st();return}e!==null&&e.before(t)}const Fn=["touchstart","touchmove"];function In(e){return Fn.includes(e)}function jn(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function br(e,t){return gr(e,t)}function qn(e,t){ut(),t.intro=t.intro??!1;const r=t.target,n=w,s=m;try{for(var i=be(r);i&&(i.nodeType!==ye||i.data!==bt);)i=X(i);if(!i)throw ce;_e(!0),F(i);const l=gr(e,{...t,anchor:i});return _e(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
-
`).some(
|
|
1
|
+
(function(wt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Dr=1,Pr=2,yt="[",$t="[!",xt="[?",Et="]",pe={},T=Symbol(),kt="http://www.w3.org/1999/xhtml",Ir=!1;var Fr=Array.isArray,jr=Array.prototype.indexOf,me=Array.prototype.includes,Br=Array.from,De=Object.keys,Pe=Object.defineProperty,be=Object.getOwnPropertyDescriptor,qr=Object.getOwnPropertyDescriptors,zr=Object.prototype,Vr=Array.prototype,Tt=Object.getPrototypeOf,St=Object.isExtensible;const Hr=()=>{};function Yr(e){for(var t=0;t<e.length;t++)e[t]()}function At(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const E=2,ge=4,Ie=8,Nt=1<<24,te=16,V=32,re=64,Xe=128,M=512,x=1024,S=2048,H=4096,Y=8192,F=16384,ne=32768,Rt=1<<25,we=65536,Ot=1<<17,Wr=1<<18,ue=1<<19,Ur=1<<20,ce=65536,Ze=1<<21,Qe=1<<22,ie=1<<23,et=Symbol("$state"),Gr=Symbol("legacy props"),Kr=Symbol(""),G=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Jr=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Fe=3,je=8;function Xr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Zr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Qr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function en(e){throw new Error("https://svelte.dev/e/effect_orphan")}function tn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function rn(){throw new Error("https://svelte.dev/e/hydration_failed")}function nn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function sn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ln(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function on(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Be(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function an(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let y=!1;function ye(e){y=e}let w;function j(e){if(e===null)throw Be(),pe;return w=e}function tt(){return j(Q(w))}function fn(e){if(y){if(Q(w)!==null)throw Be(),pe;w=e}}function un(e=1){if(y){for(var t=e,r=w;t--;)r=Q(r);w=r}}function Ct(e=!0){for(var t=0,r=w;;){if(r.nodeType===je){var n=r.data;if(n===Et){if(t===0)return r;t-=1}else(n===yt||n===$t||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=Q(r);e&&r.remove(),r=i}}function cn(e){if(!e||e.nodeType!==je)throw Be(),pe;return e.data}function Mt(e){return e===this.v}function dn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function hn(e){return!dn(e,this.v)}let vn=!1,L=null;function $e(e){L=e}function Lt(e,t=!1,r){L={p:L,i:!1,c:null,e:null,s:e,x:null,r:p,l:null}}function Dt(e){var t=L,r=t.e;if(r!==null){t.e=null;for(var n of r)ar(n)}return e!==void 0&&(t.x=e),t.i=!0,L=t.p,e??{}}function Pt(){return!0}let de=[];function It(){var e=de;de=[],Yr(e)}function se(e){if(de.length===0&&!Se){var t=de;queueMicrotask(()=>{t===de&&It()})}de.push(e)}function _n(){for(;de.length>0;)It()}function Ft(e){var t=p;if(t===null)return _.f|=ie,e;if((t.f&ne)===0&&(t.f&ge)===0)throw e;le(e,t)}function le(e,t){for(;t!==null;){if((t.f&Xe)!==0){if((t.f&ne)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const pn=-7169;function $(e,t){e.f=e.f&pn|t}function rt(e){(e.f&M)!==0||e.deps===null?$(e,x):$(e,H)}function jt(e){if(e!==null)for(const t of e)(t.f&E)===0||(t.f&ce)===0||(t.f^=ce,jt(t.deps))}function Bt(e,t,r){(e.f&S)!==0?t.add(e):(e.f&H)!==0&&r.add(e),jt(e.deps),$(e,x)}const oe=new Set;let g=null,B=null,nt=null,Se=!1,it=!1,xe=null,qe=null;var qt=0;let mn=1;class K{id=mn++;current=new Map;previous=new Map;#e=new Set;#r=new Set;#t=new Map;#i=new Map;#s=null;#n=[];#l=new Set;#o=new Set;#a=new Map;is_fork=!1;#c=!1;#f=new Set;#d(){return this.is_fork||this.#i.size>0}#v(){for(const n of this.#f)for(const i of n.#i.keys()){for(var t=!1,r=i;r.parent!==null;){if(this.#a.has(r)){t=!0;break}r=r.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#a.get(t);if(r){this.#a.delete(t);for(var n of r.d)$(n,S),this.schedule(n);for(n of r.m)$(n,H),this.schedule(n)}}#h(){if(qt++>1e3&&(oe.delete(this),bn()),!this.#d()){for(const l of this.#l)this.#o.delete(l),$(l,S),this.schedule(l);for(const l of this.#o)$(l,H),this.schedule(l)}const t=this.#n;this.#n=[],this.apply();var r=xe=[],n=[],i=qe=[];for(const l of t)try{this.#u(l,r,n)}catch(a){throw Wt(l),a}if(g=null,i.length>0){var s=K.ensure();for(const l of i)s.schedule(l)}if(xe=null,qe=null,this.#d()||this.#v()){this.#_(n),this.#_(r);for(const[l,a]of this.#a)Yt(l,a)}else{this.#t.size===0&&oe.delete(this),this.#l.clear(),this.#o.clear();for(const l of this.#e)l(this);this.#e.clear(),zt(n),zt(r),this.#s?.resolve()}var o=g;if(this.#n.length>0){const l=o??=this;l.#n.push(...this.#n.filter(a=>!l.#n.includes(a)))}o!==null&&(oe.add(o),o.#h()),oe.has(this)||this.#p()}#u(t,r,n){t.f^=x;for(var i=t.first;i!==null;){var s=i.f,o=(s&(V|re))!==0,l=o&&(s&x)!==0,a=l||(s&Y)!==0||this.#a.has(i);if(!a&&i.fn!==null){o?i.f^=x:(s&ge)!==0?r.push(i):Me(i)&&((s&te)!==0&&this.#o.add(i),ke(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#_(t){for(var r=0;r<t.length;r+=1)Bt(t[r],this.#l,this.#o)}capture(t,r,n=!1){r!==T&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&ie)===0&&(this.current.set(t,[t.v,n]),B?.set(t,t.v))}activate(){g=this}deactivate(){g=null,B=null}flush(){try{it=!0,g=this,this.#h()}finally{qt=0,nt=null,xe=null,qe=null,it=!1,g=null,B=null,ae.clear()}}discard(){for(const t of this.#r)t(this);this.#r.clear(),oe.delete(this)}#p(){for(const f of oe){var t=f.id<this.id,r=[];for(const[u,[v,c]]of this.current){if(f.current.has(u)){var n=f.current.get(u)[0];if(t&&v!==n)f.current.set(u,[v,c]);else continue}r.push(u)}var i=[...f.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&f.discard();else if(r.length>0){f.activate();var s=new Set,o=new Map;for(var l of r)Vt(l,i,s,o);if(f.#n.length>0){f.apply();for(var a of f.#n)f.#u(a,[],[]);f.#n=[]}f.deactivate()}}for(const f of oe)f.#f.has(this)&&(f.#f.delete(this),f.#f.size===0&&!f.#d()&&(f.activate(),f.#h()))}increment(t,r){let n=this.#t.get(r)??0;if(this.#t.set(r,n+1),t){let i=this.#i.get(r)??0;this.#i.set(r,i+1)}}decrement(t,r,n){let i=this.#t.get(r)??0;if(i===1?this.#t.delete(r):this.#t.set(r,i-1),t){let s=this.#i.get(r)??0;s===1?this.#i.delete(r):this.#i.set(r,s-1)}this.#c||n||(this.#c=!0,se(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,r){for(const n of t)this.#l.add(n);for(const n of r)this.#o.add(n);t.clear(),r.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#r.add(t)}settled(){return(this.#s??=At()).promise}static ensure(){if(g===null){const t=g=new K;it||(oe.add(g),Se||se(()=>{g===t&&t.flush()}))}return g}apply(){{B=null;return}}schedule(t){if(nt=t,t.b?.is_pending&&(t.f&(ge|Ie|Nt))!==0&&(t.f&ne)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(xe!==null&&r===p&&(_===null||(_.f&E)===0))return;if((n&(re|V))!==0){if((n&x)===0)return;r.f^=x}}this.#n.push(r)}}function Ae(e){var t=Se;Se=!0;try{for(var r;;){if(_n(),g===null)return r;g.flush()}}finally{Se=t}}function bn(){try{tn()}catch(e){le(e,nt)}}let J=null;function zt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(F|Y))===0&&Me(n)&&(J=new Set,ke(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&dr(n),J?.size>0)){ae.clear();for(const i of J){if((i.f&(F|Y))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)J.has(o)&&(J.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const a=s[l];(a.f&(F|Y))===0&&ke(a)}}J.clear()}}J=null}}function Vt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&E)!==0?Vt(i,t,r,n):(s&(Qe|te))!==0&&(s&S)===0&&Ht(i,t,n)&&($(i,S),st(i))}}function Ht(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(me.call(t,i))return!0;if((i.f&E)!==0&&Ht(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function st(e){g.schedule(e)}function Yt(e,t){if(!((e.f&V)!==0&&(e.f&x)!==0)){(e.f&S)!==0?t.d.push(e):(e.f&H)!==0&&t.m.push(e),$(e,x);for(var r=e.first;r!==null;)Yt(r,t),r=r.next}}function Wt(e){$(e,x);for(var t=e.first;t!==null;)Wt(t),t=t.next}function gn(e){let t=0,r=Ne(0),n;return()=>{dt()&&(b(r),ht(()=>(t===0&&(n=kr(()=>e(()=>Re(r)))),t+=1,()=>{se(()=>{t-=1,t===0&&(n?.(),n=void 0,Re(r))})})))}}var wn=we|ue;function yn(e,t,r,n){new $n(e,t,r,n)}class $n{parent;is_pending=!1;transform_error;#e;#r=y?w:null;#t;#i;#s;#n=null;#l=null;#o=null;#a=null;#c=0;#f=0;#d=!1;#v=new Set;#h=new Set;#u=null;#_=gn(()=>(this.#u=Ne(this.#c),()=>{this.#u=null}));constructor(t,r,n,i){this.#e=t,this.#t=r,this.#i=s=>{var o=p;o.b=this,o.f|=Xe,n(s)},this.parent=p.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=ur(()=>{if(y){const s=this.#r;tt();const o=s.data===$t;if(s.data.startsWith(xt)){const a=JSON.parse(s.data.slice(xt.length));this.#y(a)}else o?this.#$():this.#p()}else this.#g()},wn),y&&(this.#e=w)}#p(){try{this.#n=ee(()=>this.#i(this.#e))}catch(t){this.error(t)}}#y(t){const r=this.#t.failed;r&&(this.#o=ee(()=>{r(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#l=ee(()=>t(this.#e)),se(()=>{var r=this.#a=document.createDocumentFragment(),n=Z();r.append(n),this.#n=this.#b(()=>ee(()=>this.#i(n))),this.#f===0&&(this.#e.before(r),this.#a=null,Ce(this.#l,()=>{this.#l=null}),this.#m(g))}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#n=ee(()=>{this.#i(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();_r(this.#n,t);const r=this.#t.pending;this.#l=ee(()=>r(this.#e))}else this.#m(g)}catch(r){this.error(r)}}#m(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){Bt(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#b(t){var r=p,n=_,i=L;U(this.#s),D(this.#s),$e(this.#s.ctx);try{return K.ensure(),t()}catch(s){return Ft(s),null}finally{U(r),D(n),$e(i)}}#w(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t,r);return}this.#f+=t,this.#f===0&&(this.#m(r),this.#l&&Ce(this.#l,()=>{this.#l=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,r){this.#w(t,r),this.#c+=t,!(!this.#u||this.#d)&&(this.#d=!0,se(()=>{this.#d=!1,this.#u&&Ve(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),b(this.#u)}error(t){var r=this.#t.onerror;let n=this.#t.failed;if(!r&&!n)throw t;this.#n&&(N(this.#n),this.#n=null),this.#l&&(N(this.#l),this.#l=null),this.#o&&(N(this.#o),this.#o=null),y&&(j(this.#r),un(),j(Ct()));var i=!1,s=!1;const o=()=>{if(i){an();return}i=!0,s&&on(),this.#o!==null&&Ce(this.#o,()=>{this.#o=null}),this.#b(()=>{this.#g()})},l=a=>{try{s=!0,r?.(a,o),s=!1}catch(f){le(f,this.#s&&this.#s.parent)}n&&(this.#o=this.#b(()=>{try{return ee(()=>{var f=p;f.b=this,f.f|=Xe,n(this.#e,()=>a,()=>o)})}catch(f){return le(f,this.#s.parent),null}}))};se(()=>{var a;try{a=this.transform_error(t)}catch(f){le(f,this.#s&&this.#s.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(l,f=>le(f,this.#s&&this.#s.parent)):l(a)})}}function xn(e,t,r,n){const i=lt;var s=e.filter(c=>!c.settled);if(r.length===0&&s.length===0){n(t.map(i));return}var o=p,l=En(),a=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function f(c){l();try{n(c)}catch(d){(o.f&F)===0&&le(d,o)}ze()}if(r.length===0){a.then(()=>f(t.map(i)));return}var u=Ut();function v(){Promise.all(r.map(c=>kn(c))).then(c=>f([...t.map(i),...c])).catch(c=>le(c,o)).finally(()=>u())}a?a.then(()=>{l(),v(),ze()}):v()}function En(){var e=p,t=_,r=L,n=g;return function(s=!0){U(e),D(t),$e(r),s&&(e.f&F)===0&&(n?.activate(),n?.apply())}}function ze(e=!0){U(null),D(null),$e(null),e&&g?.deactivate()}function Ut(){var e=p,t=e.b,r=g,n=t.is_rendered();return t.update_pending_count(1,r),r.increment(n,e),(i=!1)=>{t.update_pending_count(-1,r),r.decrement(n,e,i)}}function lt(e){var t=E|S,r=_!==null&&(_.f&E)!==0?_:null;return p!==null&&(p.f|=ue),{ctx:L,deps:null,effects:null,equals:Mt,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:r??p,ac:null}}function kn(e,t,r){let n=p;n===null&&Xr();var i=void 0,s=Ne(T),o=!_,l=new Map;return qn(()=>{var a=p,f=At();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(ze)}catch(d){f.reject(d),ze()}var u=g;if(o){if((a.f&ne)!==0)var v=Ut();if(n.b.is_rendered())l.get(u)?.reject(G),l.delete(u);else{for(const d of l.values())d.reject(G);l.clear()}l.set(u,f)}const c=(d,h=void 0)=>{if(v){var m=h===G;v(m)}if(!(h===G||(a.f&F)!==0)){if(u.activate(),h)s.f|=ie,Ve(s,h);else{(s.f&ie)!==0&&(s.f^=ie),Ve(s,d);for(const[k,C]of l){if(l.delete(k),k===u)break;C.reject(G)}}u.deactivate()}};f.promise.then(c,d=>c(null,d||"unknown"))}),lr(()=>{for(const a of l.values())a.reject(G)}),new Promise(a=>{function f(u){function v(){u===i?a(s):f(i)}u.then(v,v)}f(i)})}function Gt(e){const t=lt(e);return mr(t),t}function Tn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)N(t[r])}}function Sn(e){for(var t=e.parent;t!==null;){if((t.f&E)===0)return(t.f&F)===0?t:null;t=t.parent}return null}function ot(e){var t,r=p;U(Sn(e));try{e.f&=~ce,Tn(e),t=$r(e)}finally{U(r)}return t}function Kt(e){var t=e.v,r=ot(e);if(!e.equals(r)&&(e.wv=wr(),(!g?.is_fork||e.deps===null)&&(e.v=r,g?.capture(e,t,!0),e.deps===null))){$(e,x);return}fe||(B!==null?(dt()||g?.is_fork)&&B.set(e,r):rt(e))}function An(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(G),t.teardown=Hr,t.ac=null,Le(t,0),vt(t))}function Jt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&ke(t)}let at=new Set;const ae=new Map;let Xt=!1;function Ne(e,t){var r={f:0,v:e,reactions:null,equals:Mt,rv:0,wv:0};return r}function X(e,t){const r=Ne(e);return mr(r),r}function Nn(e,t=!1,r=!0){const n=Ne(e);return t||(n.equals=hn),n}function q(e,t,r=!1){_!==null&&(!z||(_.f&Ot)!==0)&&Pt()&&(_.f&(E|te|Qe|Ot))!==0&&(P===null||!me.call(P,e))&&ln();let n=r?Oe(t):t;return Ve(e,n,qe)}function Ve(e,t,r=null){if(!e.equals(t)){var n=e.v;fe?ae.set(e,t):ae.set(e,n),e.v=t;var i=K.ensure();if(i.capture(e,n),(e.f&E)!==0){const s=e;(e.f&S)!==0&&ot(s),B===null&&rt(s)}e.wv=wr(),Zt(e,S,r),p!==null&&(p.f&x)!==0&&(p.f&(V|re))===0&&(I===null?Yn([e]):I.push(e)),!i.is_fork&&at.size>0&&!Xt&&Rn()}return t}function Rn(){Xt=!1;for(const e of at)(e.f&x)!==0&&$(e,H),Me(e)&&ke(e);at.clear()}function Re(e){q(e,e.v+1)}function Zt(e,t,r){var n=e.reactions;if(n!==null)for(var i=n.length,s=0;s<i;s++){var o=n[s],l=o.f,a=(l&S)===0;if(a&&$(o,t),(l&E)!==0){var f=o;B?.delete(f),(l&ce)===0&&(l&M&&(o.f|=ce),Zt(f,H,r))}else if(a){var u=o;(l&te)!==0&&J!==null&&J.add(u),r!==null?r.push(u):st(u)}}}function Oe(e){if(typeof e!="object"||e===null||et in e)return e;const t=Tt(e);if(t!==zr&&t!==Vr)return e;var r=new Map,n=Fr(e),i=X(0),s=ve,o=l=>{if(ve===s)return l();var a=_,f=ve;D(null),gr(s);var u=l();return D(a),gr(f),u};return n&&r.set("length",X(e.length)),new Proxy(e,{defineProperty(l,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&nn();var u=r.get(a);return u===void 0?o(()=>{var v=X(f.value);return r.set(a,v),v}):q(u,f.value,!0),!0},deleteProperty(l,a){var f=r.get(a);if(f===void 0){if(a in l){const u=o(()=>X(T));r.set(a,u),Re(i)}}else q(f,T),Re(i);return!0},get(l,a,f){if(a===et)return e;var u=r.get(a),v=a in l;if(u===void 0&&(!v||be(l,a)?.writable)&&(u=o(()=>{var d=Oe(v?l[a]:T),h=X(d);return h}),r.set(a,u)),u!==void 0){var c=b(u);return c===T?void 0:c}return Reflect.get(l,a,f)},getOwnPropertyDescriptor(l,a){var f=Reflect.getOwnPropertyDescriptor(l,a);if(f&&"value"in f){var u=r.get(a);u&&(f.value=b(u))}else if(f===void 0){var v=r.get(a),c=v?.v;if(v!==void 0&&c!==T)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(l,a){if(a===et)return!0;var f=r.get(a),u=f!==void 0&&f.v!==T||Reflect.has(l,a);if(f!==void 0||p!==null&&(!u||be(l,a)?.writable)){f===void 0&&(f=o(()=>{var c=u?Oe(l[a]):T,d=X(c);return d}),r.set(a,f));var v=b(f);if(v===T)return!1}return u},set(l,a,f,u){var v=r.get(a),c=a in l;if(n&&a==="length")for(var d=f;d<v.v;d+=1){var h=r.get(d+"");h!==void 0?q(h,T):d in l&&(h=o(()=>X(T)),r.set(d+"",h))}if(v===void 0)(!c||be(l,a)?.writable)&&(v=o(()=>X(void 0)),q(v,Oe(f)),r.set(a,v));else{c=v.v!==T;var m=o(()=>Oe(f));q(v,m)}var k=Reflect.getOwnPropertyDescriptor(l,a);if(k?.set&&k.set.call(u,f),!c){if(n&&typeof a=="string"){var C=r.get("length"),A=Number(a);Number.isInteger(A)&&A>=C.v&&q(C,A+1)}Re(i)}return!0},ownKeys(l){b(i);var a=Reflect.ownKeys(l).filter(v=>{var c=r.get(v);return c===void 0||c.v!==T});for(var[f,u]of r)u.v!==T&&!(f in l)&&a.push(f);return a},setPrototypeOf(){sn()}})}var Qt,er,tr,rr;function ft(){if(Qt===void 0){Qt=window,er=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;tr=be(t,"firstChild").get,rr=be(t,"nextSibling").get,St(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),St(r)&&(r.__t=void 0)}}function Z(e=""){return document.createTextNode(e)}function Ee(e){return tr.call(e)}function Q(e){return rr.call(e)}function On(e,t){if(!y)return Ee(e);var r=Ee(w);if(r===null)r=w.appendChild(Z());else if(r.nodeType!==Fe){var n=Z();return r?.before(n),j(n),n}return ct(r),j(r),r}function nr(e,t=!1){if(!y){var r=Ee(e);return r instanceof Comment&&r.data===""?Q(r):r}if(t){if(w?.nodeType!==Fe){var n=Z();return w?.before(n),j(n),n}ct(w)}return w}function Cn(e,t=1,r=!1){let n=y?w:e;for(var i;t--;)i=n,n=Q(n);if(!y)return n;if(r){if(n?.nodeType!==Fe){var s=Z();return n===null?i?.after(s):n.before(s),j(s),s}ct(n)}return j(n),n}function Mn(e){e.textContent=""}function Ln(){return!1}function ut(e,t,r){return document.createElementNS(kt,e,void 0)}function ct(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Fe;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}let ir=!1;function sr(){ir||(ir=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function He(e){var t=_,r=p;D(null),U(null);try{return e()}finally{D(t),U(r)}}function Dn(e,t,r,n=r){e.addEventListener(t,()=>He(r));const i=e.__on_r;i?e.__on_r=()=>{i(),n(!0)}:e.__on_r=()=>n(!0),sr()}function Pn(e){p===null&&(_===null&&en(),Qr()),fe&&Zr()}function In(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function W(e,t){var r=p;r!==null&&(r.f&Y)!==0&&(e|=Y);var n={ctx:L,deps:null,nodes:null,f:e|S|M,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null},i=n;if((e&ge)!==0)xe!==null?xe.push(n):K.ensure().schedule(n);else if(t!==null){try{ke(n)}catch(o){throw N(n),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&ue)===0&&(i=i.first,(e&te)!==0&&(e&we)!==0&&i!==null&&(i.f|=we))}if(i!==null&&(i.parent=r,r!==null&&In(i,r),_!==null&&(_.f&E)!==0&&(e&re)===0)){var s=_;(s.effects??=[]).push(i)}return n}function dt(){return _!==null&&!z}function lr(e){const t=W(Ie,null);return $(t,x),t.teardown=e,t}function or(e){Pn();var t=p.f,r=!_&&(t&V)!==0&&(t&ne)===0;if(r){var n=L;(n.e??=[]).push(e)}else return ar(e)}function ar(e){return W(ge|Ur,e)}function Fn(e){K.ensure();const t=W(re|ue,e);return()=>{N(t)}}function jn(e){K.ensure();const t=W(re|ue,e);return(r={})=>new Promise(n=>{r.outro?Ce(t,()=>{N(t),n(void 0)}):(N(t),n(void 0))})}function Bn(e){return W(ge,e)}function qn(e){return W(Qe|ue,e)}function ht(e,t=0){return W(Ie|t,e)}function fr(e,t=[],r=[],n=[]){xn(n,t,r,i=>{W(Ie,()=>e(...i.map(b)))})}function ur(e,t=0){var r=W(te|t,e);return r}function ee(e){return W(V|ue,e)}function cr(e){var t=e.teardown;if(t!==null){const r=fe,n=_;pr(!0),D(null);try{t.call(null)}finally{pr(r),D(n)}}}function vt(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&He(()=>{i.abort(G)});var n=r.next;(r.f&re)!==0?r.parent=null:N(r,t),r=n}}function zn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&V)===0&&N(t),t=r}}function N(e,t=!0){var r=!1;(t||(e.f&Wr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Vn(e.nodes.start,e.nodes.end),r=!0),$(e,Rt),vt(e,t&&!r),Le(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();cr(e),e.f^=Rt,e.f|=F;var i=e.parent;i!==null&&i.first!==null&&dr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Vn(e,t){for(;e!==null;){var r=e===t?null:Q(e);e.remove(),e=r}}function dr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Ce(e,t,r=!0){var n=[];hr(e,n,!0);var i=()=>{r&&N(e),t&&t()},s=n.length;if(s>0){var o=()=>--s||i();for(var l of n)l.out(o)}else i()}function hr(e,t,r){if((e.f&Y)===0){e.f^=Y;var n=e.nodes&&e.nodes.t;if(n!==null)for(const l of n)(l.is_global||r)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&we)!==0||(i.f&V)!==0&&(e.f&te)!==0;hr(i,t,o?r:!1),i=s}}}function Hn(e){vr(e,!0)}function vr(e,t){if((e.f&Y)!==0){e.f^=Y,(e.f&x)===0&&($(e,S),K.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&we)!==0||(r.f&V)!==0;vr(r,i?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function _r(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:Q(r);t.append(r),r=i}}let Ye=!1,fe=!1;function pr(e){fe=e}let _=null,z=!1;function D(e){_=e}let p=null;function U(e){p=e}let P=null;function mr(e){_!==null&&(P===null?P=[e]:P.push(e))}let R=null,O=0,I=null;function Yn(e){I=e}let br=1,he=0,ve=he;function gr(e){ve=e}function wr(){return++br}function Me(e){var t=e.f;if((t&S)!==0)return!0;if(t&E&&(e.f&=~ce),(t&H)!==0){for(var r=e.deps,n=r.length,i=0;i<n;i++){var s=r[i];if(Me(s)&&Kt(s),s.wv>e.wv)return!0}(t&M)!==0&&B===null&&$(e,x)}return!1}function yr(e,t,r=!0){var n=e.reactions;if(n!==null&&!(P!==null&&me.call(P,e)))for(var i=0;i<n.length;i++){var s=n[i];(s.f&E)!==0?yr(s,t,!1):t===s&&(r?$(s,S):(s.f&x)!==0&&$(s,H),st(s))}}function $r(e){var t=R,r=O,n=I,i=_,s=P,o=L,l=z,a=ve,f=e.f;R=null,O=0,I=null,_=(f&(V|re))===0?e:null,P=null,$e(e.ctx),z=!1,ve=++he,e.ac!==null&&(He(()=>{e.ac.abort(G)}),e.ac=null);try{e.f|=Ze;var u=e.fn,v=u();e.f|=ne;var c=e.deps,d=g?.is_fork;if(R!==null){var h;if(d||Le(e,O),c!==null&&O>0)for(c.length=O+R.length,h=0;h<R.length;h++)c[O+h]=R[h];else e.deps=c=R;if(dt()&&(e.f&M)!==0)for(h=O;h<c.length;h++)(c[h].reactions??=[]).push(e)}else!d&&c!==null&&O<c.length&&(Le(e,O),c.length=O);if(Pt()&&I!==null&&!z&&c!==null&&(e.f&(E|H|S))===0)for(h=0;h<I.length;h++)yr(I[h],e);if(i!==null&&i!==e){if(he++,i.deps!==null)for(let m=0;m<r;m+=1)i.deps[m].rv=he;if(t!==null)for(const m of t)m.rv=he;I!==null&&(n===null?n=I:n.push(...I))}return(e.f&ie)!==0&&(e.f^=ie),v}catch(m){return Ft(m)}finally{e.f^=Ze,R=t,O=r,I=n,_=i,P=s,$e(o),z=l,ve=a}}function Wn(e,t){let r=t.reactions;if(r!==null){var n=jr.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&(t.f&E)!==0&&(R===null||!me.call(R,t))){var s=t;(s.f&M)!==0&&(s.f^=M,s.f&=~ce),rt(s),An(s),Le(s,0)}}function Le(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Wn(e,r[n])}function ke(e){var t=e.f;if((t&F)===0){$(e,x);var r=p,n=Ye;p=e,Ye=!0;try{(t&(te|Nt))!==0?zn(e):vt(e),cr(e);var i=$r(e);e.teardown=typeof i=="function"?i:null,e.wv=br;var s;Ir&&vn&&(e.f&S)!==0&&e.deps}finally{Ye=n,p=r}}}async function Un(){await Promise.resolve(),Ae()}function b(e){var t=e.f,r=(t&E)!==0;if(_!==null&&!z){var n=p!==null&&(p.f&F)!==0;if(!n&&(P===null||!me.call(P,e))){var i=_.deps;if((_.f&Ze)!==0)e.rv<he&&(e.rv=he,R===null&&i!==null&&i[O]===e?O++:R===null?R=[e]:R.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:me.call(s,_)||s.push(_)}}}if(fe&&ae.has(e))return ae.get(e);if(r){var o=e;if(fe){var l=o.v;return((o.f&x)===0&&o.reactions!==null||Er(o))&&(l=ot(o)),ae.set(o,l),l}var a=(o.f&M)===0&&!z&&_!==null&&(Ye||(_.f&M)!==0),f=(o.f&ne)===0;Me(o)&&(a&&(o.f|=M),Kt(o)),a&&!f&&(Jt(o),xr(o))}if(B?.has(e))return B.get(e);if((e.f&ie)!==0)throw e.v;return e.v}function xr(e){if(e.f|=M,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&E)!==0&&(t.f&M)===0&&(Jt(t),xr(t))}function Er(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ae.has(t)||(t.f&E)!==0&&Er(t))return!0;return!1}function kr(e){var t=z;try{return z=!0,e()}finally{z=t}}const We=Symbol("events"),Gn=new Set,Tr=new Set;function Kn(e,t,r,n={}){function i(s){if(n.capture||_t.call(t,s),!s.cancelBubble)return He(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?se(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function Jn(e,t,r,n,i){var s={capture:n,passive:i},o=Kn(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&lr(()=>{t.removeEventListener(e,o,s)})}let Sr=null;function _t(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Sr=e;var o=0,l=Sr===e&&e[We];if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e[We]=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(o=a)}if(s=i[o]||e.target,s!==t){Pe(e,"currentTarget",{configurable:!0,get(){return s||r}});var u=_,v=p;D(null),U(null);try{for(var c,d=[];s!==null;){var h=s.assignedSlot||s.parentNode||s.host||null;try{var m=s[We]?.[n];m!=null&&(!s.disabled||e.target===s)&&m.call(s,e)}catch(k){c?d.push(k):c=k}if(e.cancelBubble||h===t||h===null)break;s=h}if(c){for(let k of d)queueMicrotask(()=>{throw k});throw c}}finally{e[We]=t,delete e.currentTarget,D(u),U(v)}}}const Xn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Zn(e){return Xn?.createHTML(e)??e}function Qn(e){var t=ut("template");return t.innerHTML=Zn(e.replaceAll("<!>","<!---->")),t.content}function Te(e,t){var r=p;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Ar(e,t){var r=(t&Dr)!==0,n=(t&Pr)!==0,i,s=!e.startsWith("<!>");return()=>{if(y)return Te(w,null),w;i===void 0&&(i=Qn(s?e:"<!>"+e),r||(i=Ee(i)));var o=n||er?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=Ee(o),a=o.lastChild;Te(l,a)}else Te(o,o);return o}}function ei(){if(y)return Te(w,null),w;var e=document.createDocumentFragment(),t=document.createComment(""),r=Z();return e.append(t,r),Te(t,r),e}function Ue(e,t){if(y){var r=p;((r.f&ne)===0||r.nodes.end===null)&&(r.nodes.end=w),tt();return}e!==null&&e.before(t)}const ti=["touchstart","touchmove"];function ri(e){return ti.includes(e)}function ni(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=`${r}`)}function Nr(e,t){return Rr(e,t)}function ii(e,t){ft(),t.intro=t.intro??!1;const r=t.target,n=y,i=w;try{for(var s=Ee(r);s&&(s.nodeType!==je||s.data!==yt);)s=Q(s);if(!s)throw pe;ye(!0),j(s);const o=Rr(e,{...t,anchor:s});return ye(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==pe&&console.warn("Failed to hydrate: ",o),t.recover===!1&&rn(),ft(),Mn(r),ye(!1),Nr(e,t)}finally{ye(n),j(i)}}const Ge=new Map;function Rr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:o=!0,transformError:l}){ft();var a=void 0,f=jn(()=>{var u=r??t.appendChild(Z());yn(u,{pending:()=>{}},d=>{Lt({});var h=L;if(s&&(h.c=s),i&&(n.$$events=i),y&&Te(d,null),a=e(d,n)||{},y&&(p.nodes.end=w,w===null||w.nodeType!==je||w.data!==Et))throw Be(),pe;Dt()},l);var v=new Set,c=d=>{for(var h=0;h<d.length;h++){var m=d[h];if(!v.has(m)){v.add(m);var k=ri(m);for(const _e of[t,document]){var C=Ge.get(_e);C===void 0&&(C=new Map,Ge.set(_e,C));var A=C.get(m);A===void 0?(_e.addEventListener(m,_t,{passive:k}),C.set(m,1)):C.set(m,A+1)}}}};return c(Br(Gn)),Tr.add(c),()=>{for(var d of v)for(const k of[t,document]){var h=Ge.get(k),m=h.get(d);--m==0?(k.removeEventListener(d,_t),h.delete(d),h.size===0&&Ge.delete(k)):h.set(d,m)}Tr.delete(c),u!==r&&u.parentNode?.removeChild(u)}});return pt.set(a,f),a}let pt=new WeakMap;function si(e,t){const r=pt.get(e);return r?(pt.delete(e),r(t)):Promise.resolve()}class li{anchor;#e=new Map;#r=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,r=!0){this.anchor=t,this.#s=r}#n=t=>{if(this.#e.has(t)){var r=this.#e.get(t),n=this.#r.get(r);if(n)Hn(n),this.#i.delete(r);else{var i=this.#t.get(r);i&&(this.#r.set(r,i.effect),this.#t.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,o]of this.#e){if(this.#e.delete(s),s===t)break;const l=this.#t.get(o);l&&(N(l.effect),this.#t.delete(o))}for(const[s,o]of this.#r){if(s===r||this.#i.has(s))continue;const l=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();_r(o,f),f.append(Z()),this.#t.set(s,{effect:o,fragment:f})}else N(o);this.#i.delete(s),this.#r.delete(s)};this.#s||!n?(this.#i.add(s),Ce(o,l,!1)):l()}}};#l=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[n,i]of this.#t)r.includes(n)||(N(i.effect),this.#t.delete(n))};ensure(t,r){var n=g,i=Ln();if(r&&!this.#r.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),o=Z();s.append(o),this.#t.set(t,{effect:ee(()=>r(o)),fragment:s})}else this.#r.set(t,ee(()=>r(this.anchor)));if(this.#e.set(n,t),i){for(const[l,a]of this.#r)l===t?n.unskip_effect(a):n.skip_effect(a);for(const[l,a]of this.#t)l===t?n.unskip_effect(a.effect):n.skip_effect(a.effect);n.oncommit(this.#n),n.ondiscard(this.#l)}else y&&(this.anchor=w),this.#n(n)}}function Or(e,t,r=!1){var n;y&&(n=w,tt());var i=new li(e),s=r?we:0;function o(l,a){if(y){var f=cn(n);if(l!==parseInt(f.substring(1))){var u=Ct();j(u),i.anchor=u,ye(!1),i.ensure(l,a),ye(!0);return}}i.ensure(l,a)}ur(()=>{var l=!1;t((a,f=0)=>{l=!0,o(f,a)}),l||o(-1,null)},s)}function oi(e,t){Bn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=ut("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function ai(e,t,r){var n=e==null?"":""+e;return n=n?n+" "+t:t,n===""?null:n}function fi(e,t,r,n,i,s){var o=e.__className;if(y||o!==r||o===void 0){var l=ai(r,n);(!y||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=r}return s}const ui=Symbol("is custom element"),ci=Symbol("is html"),di=Jr?"link":"LINK";function hi(e){if(y){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;Ke(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var i=e.checked;Ke(e,"checked",null),e.checked=i}}};e.__on_r=r,se(r),sr()}}function Ke(e,t,r,n){var i=vi(e);y&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===di)||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Kr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&_i(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function vi(e){return e.__attributes??={[ui]:e.nodeName.includes("-"),[ci]:e.namespaceURI===kt}}var Cr=new Map;function _i(e){var t=e.getAttribute("is")||e.nodeName,r=Cr.get(t);if(r)return r;Cr.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=qr(i);for(var o in n)n[o].set&&r.push(o);i=Tt(i)}return r}function pi(e,t,r=t){var n=new WeakSet;Dn(e,"input",async i=>{var s=i?e.defaultValue:e.value;if(s=mt(e)?bt(s):s,r(s),g!==null&&n.add(g),await Un(),s!==(s=t())){var o=e.selectionStart,l=e.selectionEnd,a=e.value.length;if(e.value=s??"",l!==null){var f=e.value.length;o===l&&l===a&&f>a?(e.selectionStart=f,e.selectionEnd=f):(e.selectionStart=o,e.selectionEnd=Math.min(l,f))}}}),(y&&e.defaultValue!==e.value||kr(t)==null&&e.value)&&(r(mt(e)?bt(e.value):e.value),g!==null&&n.add(g)),ht(()=>{var i=t();if(e===document.activeElement){var s=g;if(n.has(s))return}mt(e)&&i===bt(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function mt(e){var t=e.type;return t==="number"||t==="range"}function bt(e){return e===""?null:+e}function gt(e,t,r,n){var i=n,s=!0,o=()=>(s&&(s=!1,i=n),i),l;l=e[t],l===void 0&&n!==void 0&&(l=o());var a;a=()=>{var c=e[t];return c===void 0?o():(s=!0,c)};var f=!1,u=lt(()=>(f=!1,a())),v=p;return(function(c,d){if(arguments.length>0){const h=d?b(u):c;return q(u,h),f=!0,i!==void 0&&(i=h),c}return fe&&f||(v.f&F)!==0?u.v:b(u)})}function mi(e){return new bi(e)}class bi{#e;#r;constructor(t){var r=new Map,n=(s,o)=>{var l=Nn(o,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return b(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===Gr?!0:(b(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return q(r.get(o)??n(o,l),l),Reflect.set(s,o,l)}});this.#r=(t.hydrate?ii:Nr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Ae(),this.#e=i.$$events;for(const s of Object.keys(this.#r))s==="$set"||s==="$destroy"||s==="$on"||Pe(this,s,{get(){return this.#r[s]},set(o){this.#r[s]=o},enumerable:!0});this.#r.$set=s=>{Object.assign(i,s)},this.#r.$destroy=()=>{si(this.#r)}}$set(t){this.#r.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const n=(...i)=>r.call(this,...i);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(i=>i!==n)}}$destroy(){this.#r.$destroy()}}let Mr;typeof HTMLElement=="function"&&(Mr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&(this.$$shadowRoot=this.attachShadow(r))}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=ut("slot");n!=="default"&&(s.name=n),Ue(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=gi(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Je(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=mi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Fn(()=>{ht(()=>{this.$$r=!0;for(const n of De(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Je(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Je(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return De(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Je(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function gi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function wi(e,t,r,n,i,s){let o=class extends Mr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return De(t).map(l=>(t[l].attribute||l).toLowerCase())}};return De(t).forEach(l=>{Pe(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=Je(l,a,t),this.$$d[l]=a;var f=this.$$c;if(f){var u=be(f,l)?.get;u?f[l]=a:f.$set({[l]:a})}}})}),n.forEach(l=>{Pe(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}var yi=Ar('<div part="invalid-feedback" class="invalid-feedback mb-1 svelte-839bx3"> </div>'),$i=Ar('<input type="email"/> <!>',1);const xi={hash:"svelte-839bx3",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
|
3
3
|
/*!
|
|
4
4
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
5
5
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
@media (min-width: 1200px) {
|
|
73
73
|
}
|
|
74
74
|
@media (min-width: 1400px) {
|
|
75
|
-
}:host {font-family:"Roboto", sans-serif;}`};function
|
|
75
|
+
}:host {font-family:"Roboto", sans-serif;}`};function Lr(e,t){Lt(t,!0),oi(e,xi);let r=gt(t,"schemaentry"),n=gt(t,"show_validation",7,"no"),i=gt(t,"id",7,void 0),s=X(""),o=Gt(()=>{try{return r()&&typeof r()=="object"&&r()?.validationRegex?new RegExp(r().validationRegex):void 0}catch{return}}),l=Gt(()=>{try{return r()&&typeof r()=="object"?r().required?b(s)?.length&&b(s).includes("@")&&b(s).includes(".")&&!b(s).includes(".@")&&!b(s).includes("@.")&&!b(s).includes(" ")&&!b(s).endsWith(".")&&!b(s).endsWith("@")&&!b(s).startsWith(".")&&!b(s).startsWith("@")?b(o)&&!b(o).test(b(s))||r().params?.min&&!(b(s).length>=r().params.min)?!1:!(r().params?.max&&!(b(s).length<=r().params.max)):!1:!0:!1}catch{return!1}});function a(d,h){t.$$host.dispatchEvent(new CustomEvent(d,{detail:h}))}or(()=>{if(r()&&typeof r()=="string")try{r(JSON.parse(r())),q(s,r()?.value||"",!0),i(r()?.id||"")}catch{}console.log("setval",b(s))}),or(()=>{a("setVal",{value:b(s),valid:b(l),id:i()})});var f={get schemaentry(){return r()},set schemaentry(d){r(d),Ae()},get show_validation(){return n()},set show_validation(d="no"){n(d),Ae()},get id(){return i()},set id(d=void 0){i(d),Ae()}},u=ei(),v=nr(u);{var c=d=>{var h=$i(),m=nr(h);hi(m);var k=Cn(m,2);{var C=A=>{var _e=yi(),Ei=On(_e);fn(_e),fr(()=>ni(Ei,r().validationTip)),Ue(A,_e)};Or(k,A=>{r()?.validationTip&&n()==="yes"&&A(C)})}fr(()=>{fi(m,1,`form-control ${n()==="yes"&&r()?.required?b(l)?"is-valid":"is-invalid":""}`,"svelte-839bx3"),Ke(m,"id",r()?.id),m.required=r()?.required,Ke(m,"placeholder",r()?.placeholder),m.readOnly=r()?.readonly}),Jn("keypress",m,A=>{A.key==="Enter"&&(A.preventDefault(),a("clickEnter",{value:b(s),valid:b(l),id:i()}))}),pi(m,()=>b(s),A=>q(s,A)),Ue(d,h)};Or(v,d=>{r()&&typeof r()=="object"&&d(c)})}return Ue(e,u),Dt(f)}customElements.define("hb-input-email",wi(Lr,{schemaentry:{},show_validation:{},id:{}},[],[],{mode:"open"})),wt.Component=Lr,Object.defineProperty(wt,Symbol.toStringTag,{value:"Module"})})(this["input-email"]=this["input-email"]||{});
|
|
76
76
|
//# sourceMappingURL=main.iife.js.map
|