@htmlbricks/hb-form 0.65.23 → 0.66.0

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,11 +1,11 @@
1
- (function(Qn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const ei=1,ti=2,ri=4,fs=8,cs=16,ds=1,vs=2,ni="[",Gr="[!",mn="]",fr={},X=Symbol(),hs="http://www.w3.org/1999/xhtml",gn=!1;var ii=Array.isArray,bs=Array.prototype.indexOf,yn=Array.from,Kr=Object.keys,Xr=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,_s=Object.getOwnPropertyDescriptors,ps=Object.prototype,ms=Array.prototype,si=Object.getPrototypeOf,ai=Object.isExtensible;function gs(e){for(var t=0;t<e.length;t++)e[t]()}function oi(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const G=2,wn=4,jn=8,mt=16,gt=32,qt=64,Zr=128,De=512,Z=1024,le=2048,yt=4096,de=8192,wt=16384,Qr=32768,dr=65536,li=1<<17,ui=1<<18,Xt=1<<19,ys=1<<20,Zt=32768,xn=1<<21,En=1<<22,Ct=1<<23,kn=Symbol("$state"),ws=Symbol("legacy props"),js=Symbol(""),vr=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Sn=3,hr=8;function xs(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Es(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ks(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ss(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ns(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ts(){throw new Error("https://svelte.dev/e/hydration_failed")}function $s(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function qs(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Cs(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Os(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function en(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function As(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let T=!1;function Ve(e){T=e}let R;function ue(e){if(e===null)throw en(),fr;return R=e}function Er(){return ue(nt(R))}function jt(e){if(T){if(nt(R)!==null)throw en(),fr;R=e}}function Rs(e=1){if(T){for(var t=e,r=R;t--;)r=nt(r);R=r}}function tn(e=!0){for(var t=0,r=R;;){if(r.nodeType===hr){var n=r.data;if(n===mn){if(t===0)return r;t-=1}else(n===ni||n===Gr)&&(t+=1)}var i=nt(r);e&&r.remove(),r=i}}function fi(e){if(!e||e.nodeType!==hr)throw en(),fr;return e.data}function ci(e){return e===this.v}function Ms(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function di(e){return!Ms(e,this.v)}let Ls=!1,pe=null;function br(e){pe=e}function vi(e,t=!1,r){pe={p:pe,i:!1,c:null,e:null,s:e,x:null,l:null}}function hi(e){var t=pe,r=t.e;if(r!==null){t.e=null;for(var n of r)Mi(n)}return e!==void 0&&(t.x=e),t.i=!0,pe=t.p,e??{}}function bi(){return!0}let Qt=[];function _i(){var e=Qt;Qt=[],gs(e)}function kr(e){if(Qt.length===0&&!Sr){var t=Qt;queueMicrotask(()=>{t===Qt&&_i()})}Qt.push(e)}function Ds(){for(;Qt.length>0;)_i()}function pi(e){var t=A;if(t===null)return C.f|=Ct,e;if((t.f&Qr)===0){if((t.f&Zr)===0)throw e;t.b.error(e)}else _r(e,t)}function _r(e,t){for(;t!==null;){if((t.f&Zr)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const rn=new Set;let J=null,me=null,ge=[],nn=null,Nn=!1,Sr=!1;class Ie{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#l=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){ge=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#a(n,r);this.is_fork||this.#f(),this.is_deferred()?(this.#o(r.effects),this.#o(r.render_effects),this.#o(r.block_effects)):(J=null,gi(r.render_effects),gi(r.effects),this.#l?.resolve()),me=null}#a(t,r){t.f^=Z;for(var n=t.first;n!==null;){var i=n.f,s=(i&(gt|qt))!==0,a=s&&(i&Z)!==0,l=a||(i&de)!==0||this.skipped_effects.has(n);if((n.f&Zr)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!l&&n.fn!==null){s?n.f^=Z:(i&wn)!==0?r.effects.push(n):$r(n)&&((n.f&mt)!==0&&r.block_effects.push(n),qr(n));var o=n.first;if(o!==null){n=o;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&le)!==0?this.#s:this.#i).push(r),this.#u(r.deps),ee(r,Z)}#u(t){if(t!==null)for(const r of t)(r.f&G)===0||(r.f&Zt)===0||(r.f^=Zt,this.#u(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&Ct)===0&&(this.current.set(t,t.v),me?.set(t,t.v))}activate(){J=this,this.apply()}deactivate(){J===this&&(J=null,me=null)}flush(){if(this.activate(),ge.length>0){if(mi(),J!==null&&J!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#f(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#c()}#c(){if(rn.size>1){this.previous.clear();var t=me,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of rn){if(s===this){r=!1;continue}const a=[];for(const[o,f]of this.current){if(s.current.has(o))if(r&&f!==s.current.get(o))s.current.set(o,f);else continue;a.push(o)}if(a.length===0)continue;const l=[...s.current.keys()].filter(o=>!this.current.has(o));if(l.length>0){var i=ge;ge=[];const o=new Set,f=new Map;for(const d of a)yi(d,l,o,f);if(ge.length>0){J=s,s.apply();for(const d of ge)s.#a(d,n);s.deactivate()}ge=i}}J=null,me=t}this.committed=!0,rn.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)ee(t,le),er(t);for(const t of this.#i)ee(t,yt),er(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=oi()).promise}static ensure(){if(J===null){const t=J=new Ie;rn.add(J),Sr||Ie.enqueue(()=>{J===t&&t.flush()})}return J}static enqueue(t){kr(t)}apply(){}}function Ot(e){var t=Sr;Sr=!0;try{for(var r;;){if(Ds(),ge.length===0&&(J?.flush(),ge.length===0))return nn=null,r;mi()}}finally{Sr=t}}function mi(){var e=Mt;Nn=!0;var t=null;try{var r=0;for(fn(!0);ge.length>0;){var n=Ie.ensure();if(r++>1e3){var i,s;Vs()}n.process(ge),At.clear()}}finally{Nn=!1,fn(e),nn=null}}function Vs(){try{Ns()}catch(e){_r(e,nn)}}let xt=null;function gi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(wt|de))===0&&$r(n)&&(xt=new Set,qr(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Ii(n):n.fn=null),xt?.size>0)){At.clear();for(const i of xt){if((i.f&(wt|de))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)xt.has(a)&&(xt.delete(a),s.push(a)),a=a.parent;for(let l=s.length-1;l>=0;l--){const o=s[l];(o.f&(wt|de))===0&&qr(o)}}xt.clear()}}xt=null}}function yi(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&G)!==0?yi(i,t,r,n):(s&(En|mt))!==0&&(s&le)===0&&wi(i,t,n)&&(ee(i,le),er(i))}}function wi(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(t.includes(i))return!0;if((i.f&G)!==0&&wi(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function er(e){for(var t=nn=e;t.parent!==null;){t=t.parent;var r=t.f;if(Nn&&t===A&&(r&mt)!==0&&(r&ui)===0)return;if((r&(qt|gt))!==0){if((r&Z)===0)return;t.f^=Z}}ge.push(t)}function Is(e){let t=0,r=tr(0),n;return()=>{un()&&(u(r),Li(()=>(t===0&&(n=ua(()=>e(()=>Nr(r)))),t+=1,()=>{kr(()=>{t-=1,t===0&&(n?.(),n=void 0,Nr(r))})})))}}var Ps=dr|Xt|Zr;function Fs(e,t,r){new Js(e,t,r)}class Js{parent;#t=!1;#e;#r=T?R:null;#n;#l;#s;#i=null;#a=null;#o=null;#u=null;#f=null;#c=0;#d=0;#h=!1;#v=null;#g=Is(()=>(this.#v=tr(this.#c),()=>{this.#v=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=A.b,this.#t=!!this.#n.pending,this.#s=An(()=>{if(A.b=this,T){const s=this.#r;Er(),s.nodeType===hr&&s.data===Gr?this.#w():this.#y()}else{var i=this.#p();try{this.#i=ye(()=>n(i))}catch(s){this.error(s)}this.#d>0?this.#_():this.#t=!1}return()=>{this.#f?.remove()}},Ps),T&&(this.#e=R)}#y(){try{this.#i=ye(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#w(){const t=this.#n.pending;t&&(this.#a=ye(()=>t(this.#e)),Ie.enqueue(()=>{var r=this.#p();this.#i=this.#b(()=>(Ie.ensure(),ye(()=>this.#l(r)))),this.#d>0?this.#_():(mr(this.#a,()=>{this.#a=null}),this.#t=!1)}))}#p(){var t=this.#e;return this.#t&&(this.#f=he(),this.#e.before(this.#f),t=this.#f),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#b(t){var r=A,n=C,i=pe;we(this.#s),Q(this.#s),br(this.#s.ctx);try{return t()}catch(s){return pi(s),null}finally{we(r),Q(n),br(i)}}#_(){const t=this.#n.pending;this.#i!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#f),Ji(this.#i,this.#u)),this.#a===null&&(this.#a=ye(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#a&&mr(this.#a,()=>{this.#a=null}),this.#u&&(this.#e.before(this.#u),this.#u=null))}update_pending_count(t){this.#m(t),this.#c+=t,this.#v&&pr(this.#v,this.#c)}get_effect_pending(){return this.#g(),u(this.#v)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#h||!r&&!n)throw t;this.#i&&(ne(this.#i),this.#i=null),this.#a&&(ne(this.#a),this.#a=null),this.#o&&(ne(this.#o),this.#o=null),T&&(ue(this.#r),Rs(),ue(tn()));var i=!1,s=!1;const a=()=>{if(i){As();return}i=!0,s&&Os(),Ie.ensure(),this.#c=0,this.#o!==null&&mr(this.#o,()=>{this.#o=null}),this.#t=this.has_pending_snippet(),this.#i=this.#b(()=>(this.#h=!1,ye(()=>this.#l(this.#e)))),this.#d>0?this.#_():this.#t=!1};var l=C;try{Q(null),s=!0,r?.(t,a),s=!1}catch(o){_r(o,this.#s&&this.#s.parent)}finally{Q(l)}n&&kr(()=>{this.#o=this.#b(()=>{Ie.ensure(),this.#h=!0;try{return ye(()=>{n(this.#e,()=>t,()=>a)})}catch(o){return _r(o,this.#s.parent),null}finally{this.#h=!1}})})}}function Bs(e,t,r){for(var n=[],i=t.length,s=0;s<i;s++)Rn(t[s].e,n,!0);Pi(n,()=>{var a=n.length===0&&r!==null;if(a){var l=r,o=l.parentNode;Oi(o),o.append(l),e.items.clear(),rt(e,t[0].prev,t[i-1].next)}for(var f=0;f<i;f++){var d=t[f];a||(e.items.delete(d.k),rt(e,d.prev,d.next)),ne(d.e,!a)}e.first===t[0]&&(e.first=t[0].prev)})}function ji(e,t,r,n,i,s=null){var a=e,l=new Map,o=null,f=(t&ri)!==0,d=(t&ei)!==0,g=(t&ti)!==0;if(f){var c=e;a=T?ue(rr(c)):c.appendChild(he())}T&&Er();var v=null,$=Gs(()=>{var q=r();return ii(q)?q:q==null?[]:yn(q)}),F,j=!0;function P(){Hs(Pe,F,a,t,n),v!==null&&(F.length===0?(v.fragment?(a.before(v.fragment),v.fragment=null):Mn(v.effect),B.first=v.effect):mr(v.effect,()=>{v=null}))}var B=An(()=>{F=u($);var q=F.length;let Fe=!1;if(T){var k=fi(a)===Gr;k!==(q===0)&&(a=tn(),ue(a),Ve(!1),Fe=!0)}for(var K=new Set,te=J,St=null,H=Ai(),oe=0;oe<q;oe+=1){T&&R.nodeType===hr&&R.data===mn&&(a=R,Fe=!0,Ve(!1));var S=F[oe],Nt=n(S,oe),fe=j?null:l.get(Nt);fe?(d&&pr(fe.v,S),g?pr(fe.i,oe):fe.i=oe,H&&te.skipped_effects.delete(fe.e)):(fe=Us(j?a:null,St,S,Nt,oe,i,t,r),j&&(fe.o=!0,St===null?o=fe:St.next=fe,St=fe),l.set(Nt,fe)),K.add(Nt)}if(q===0&&s&&!v)if(j)v={fragment:null,effect:ye(()=>s(a))};else{var Or=document.createDocumentFragment(),vn=he();Or.append(vn),v={fragment:Or,effect:ye(()=>s(vn))}}if(T&&q>0&&ue(tn()),!j)if(H){for(const[or,Fn]of l)K.has(or)||te.skipped_effects.add(Fn.e);te.oncommit(P),te.ondiscard(()=>{})}else P();Fe&&Ve(!0),u($)}),Pe={effect:B,items:l,first:o};j=!1,T&&(a=R)}function Hs(e,t,r,n,i){var s=(n&fs)!==0,a=t.length,l=e.items,o=e.first,f,d=null,g,c=[],v=[],$,F,j,P;if(s)for(P=0;P<a;P+=1)$=t[P],F=i($,P),j=l.get(F),j.a?.measure(),(g??=new Set).add(j);for(P=0;P<a;P+=1){if($=t[P],F=i($,P),j=l.get(F),e.first??=j,!j.o){j.o=!0;var B=d?d.next:o;rt(e,d,j),rt(e,j,B),Tn(j,B,r),d=j,c=[],v=[],o=d.next;continue}if((j.e.f&de)!==0&&(Mn(j.e),s&&(j.a?.unfix(),(g??=new Set).delete(j))),j!==o){if(f!==void 0&&f.has(j)){if(c.length<v.length){var Pe=v[0],q;d=Pe.prev;var Fe=c[0],k=c[c.length-1];for(q=0;q<c.length;q+=1)Tn(c[q],Pe,r);for(q=0;q<v.length;q+=1)f.delete(v[q]);rt(e,Fe.prev,k.next),rt(e,d,Fe),rt(e,k,Pe),o=Pe,d=k,P-=1,c=[],v=[]}else f.delete(j),Tn(j,o,r),rt(e,j.prev,j.next),rt(e,j,d===null?e.first:d.next),rt(e,d,j),d=j;continue}for(c=[],v=[];o!==null&&o.k!==F;)(o.e.f&de)===0&&(f??=new Set).add(o),v.push(o),o=o.next;if(o===null)continue;j=o}c.push(j),d=j,o=j.next}if(o!==null||f!==void 0){for(var K=f===void 0?[]:yn(f);o!==null;)(o.e.f&de)===0&&K.push(o),o=o.next;var te=K.length;if(te>0){var St=(n&ri)!==0&&a===0?r:null;if(s){for(P=0;P<te;P+=1)K[P].a?.measure();for(P=0;P<te;P+=1)K[P].a?.fix()}Bs(e,K,St)}}s&&kr(()=>{if(g!==void 0)for(j of g)j.a?.apply()})}function Us(e,t,r,n,i,s,a,l){var o=(a&ei)!==0,f=(a&cs)===0,d=o?f?Si(r,!1,!1):tr(r):r,g=(a&ti)===0?i:tr(i),c={i:g,v:d,k:n,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var v=document.createDocumentFragment();v.append(e=he())}return c.e=ye(()=>s(e,d,g,l)),t!==null&&(t.next=c),c}finally{}}function Tn(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==null&&s!==n;){var a=nt(s);i.before(s),s=a}}function rt(e,t,r){t===null?(e.first=r,e.effect.first=r&&r.e):(t.e.next&&(t.e.next.prev=null),t.next=r,t.e.next=r&&r.e),r===null?e.effect.last=t&&t.e:(r.e.prev&&(r.e.prev.next=null),r.prev=t,r.e.prev=t&&t.e)}function Ys(e,t,r,n){const i=an;if(r.length===0&&e.length===0){n(t.map(i));return}var s=J,a=A,l=zs();function o(){Promise.all(r.map(f=>Ws(f))).then(f=>{l();try{n([...t.map(i),...f])}catch(d){(a.f&wt)===0&&_r(d,a)}s?.deactivate(),sn()}).catch(f=>{_r(f,a)})}e.length>0?Promise.all(e).then(()=>{l();try{return o()}finally{s?.deactivate(),sn()}}):o()}function zs(){var e=A,t=C,r=pe,n=J;return function(s=!0){we(e),Q(t),br(r),s&&n?.activate()}}function sn(){we(null),Q(null),br(null)}function an(e){var t=G|le,r=C!==null&&(C.f&G)!==0?C:null;return A!==null&&(A.f|=Xt),{ctx:pe,deps:null,effects:null,equals:ci,f:t,fn:e,reactions:null,rv:0,v:X,wv:0,parent:r??A,ac:null}}function Ws(e,t){let r=A;r===null&&xs();var n=r.b,i=void 0,s=tr(X),a=!C,l=new Map;return ia(()=>{var o=oi();i=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{f===J&&f.committed&&f.deactivate(),sn()})}catch(c){o.reject(c),sn()}var f=J;if(a){var d=!n.is_pending();n.update_pending_count(1),f.increment(d),l.get(f)?.reject(vr),l.delete(f),l.set(f,o)}const g=(c,v=void 0)=>{if(f.activate(),v)v!==vr&&(s.f|=Ct,pr(s,v));else{(s.f&Ct)!==0&&(s.f^=Ct),pr(s,c);for(const[$,F]of l){if(l.delete($),$===f)break;F.reject(vr)}}a&&(n.update_pending_count(-1),f.decrement(d))};o.promise.then(g,c=>g(null,c||"unknown"))}),Ri(()=>{for(const o of l.values())o.reject(vr)}),new Promise(o=>{function f(d){function g(){d===i?o(s):f(i)}d.then(g,g)}f(i)})}function on(e){const t=an(e);return Hi(t),t}function Gs(e){const t=an(e);return t.equals=di,t}function xi(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ne(t[r])}}function Ks(e){for(var t=e.parent;t!==null;){if((t.f&G)===0)return(t.f&wt)===0?t:null;t=t.parent}return null}function $n(e){var t,r=A;we(Ks(e));try{e.f&=~Zt,xi(e),t=Gi(e)}finally{we(r)}return t}function Ei(e){var t=$n(e);if(e.equals(t)||(J?.is_fork||(e.v=t),e.wv=zi()),!nr)if(me!==null)un()&&me.set(e,t);else{var r=(e.f&De)===0?yt:Z;ee(e,r)}}let qn=new Set;const At=new Map;let ki=!1;function tr(e,t){var r={f:0,v:e,reactions:null,equals:ci,rv:0,wv:0};return r}function I(e,t){const r=tr(e);return Hi(r),r}function Si(e,t=!1,r=!0){const n=tr(e);return t||(n.equals=di),n}function ve(e,t,r=!1){C!==null&&(!st||(C.f&li)!==0)&&bi()&&(C.f&(G|mt|En|li))!==0&&!kt?.includes(e)&&Cs();let n=r?Et(t):t;return pr(e,n)}function pr(e,t){if(!e.equals(t)){var r=e.v;nr?At.set(e,t):At.set(e,r),e.v=t;var n=Ie.ensure();n.capture(e,r),(e.f&G)!==0&&((e.f&le)!==0&&$n(e),ee(e,(e.f&De)!==0?Z:yt)),e.wv=zi(),Ni(e,le),A!==null&&(A.f&Z)!==0&&(A.f&(gt|qt))===0&&(je===null?oa([e]):je.push(e)),!n.is_fork&&qn.size>0&&!ki&&Xs()}return t}function Xs(){ki=!1;var e=Mt;fn(!0);const t=Array.from(qn);try{for(const r of t)(r.f&Z)!==0&&ee(r,yt),$r(r)&&qr(r)}finally{fn(e)}qn.clear()}function Nr(e){ve(e,e.v+1)}function Ni(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,l=(a&le)===0;if(l&&ee(s,t),(a&G)!==0){var o=s;me?.delete(o),(a&Zt)===0&&(a&De&&(s.f|=Zt),Ni(o,yt))}else l&&((a&mt)!==0&&xt!==null&&xt.add(s),er(s))}}function Et(e){if(typeof e!="object"||e===null||kn in e)return e;const t=si(e);if(t!==ps&&t!==ms)return e;var r=new Map,n=ii(e),i=I(0),s=ir,a=l=>{if(ir===s)return l();var o=C,f=ir;Q(null),Yi(s);var d=l();return Q(o),Yi(f),d};return n&&r.set("length",I(e.length)),new Proxy(e,{defineProperty(l,o,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&$s();var d=r.get(o);return d===void 0?d=a(()=>{var g=I(f.value);return r.set(o,g),g}):ve(d,f.value,!0),!0},deleteProperty(l,o){var f=r.get(o);if(f===void 0){if(o in l){const d=a(()=>I(X));r.set(o,d),Nr(i)}}else ve(f,X),Nr(i);return!0},get(l,o,f){if(o===kn)return e;var d=r.get(o),g=o in l;if(d===void 0&&(!g||cr(l,o)?.writable)&&(d=a(()=>{var v=Et(g?l[o]:X),$=I(v);return $}),r.set(o,d)),d!==void 0){var c=u(d);return c===X?void 0:c}return Reflect.get(l,o,f)},getOwnPropertyDescriptor(l,o){var f=Reflect.getOwnPropertyDescriptor(l,o);if(f&&"value"in f){var d=r.get(o);d&&(f.value=u(d))}else if(f===void 0){var g=r.get(o),c=g?.v;if(g!==void 0&&c!==X)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(l,o){if(o===kn)return!0;var f=r.get(o),d=f!==void 0&&f.v!==X||Reflect.has(l,o);if(f!==void 0||A!==null&&(!d||cr(l,o)?.writable)){f===void 0&&(f=a(()=>{var c=d?Et(l[o]):X,v=I(c);return v}),r.set(o,f));var g=u(f);if(g===X)return!1}return d},set(l,o,f,d){var g=r.get(o),c=o in l;if(n&&o==="length")for(var v=f;v<g.v;v+=1){var $=r.get(v+"");$!==void 0?ve($,X):v in l&&($=a(()=>I(X)),r.set(v+"",$))}if(g===void 0)(!c||cr(l,o)?.writable)&&(g=a(()=>I(void 0)),ve(g,Et(f)),r.set(o,g));else{c=g.v!==X;var F=a(()=>Et(f));ve(g,F)}var j=Reflect.getOwnPropertyDescriptor(l,o);if(j?.set&&j.set.call(d,f),!c){if(n&&typeof o=="string"){var P=r.get("length"),B=Number(o);Number.isInteger(B)&&B>=P.v&&ve(P,B+1)}Nr(i)}return!0},ownKeys(l){u(i);var o=Reflect.ownKeys(l).filter(g=>{var c=r.get(g);return c===void 0||c.v!==X});for(var[f,d]of r)d.v!==X&&!(f in l)&&o.push(f);return o},setPrototypeOf(){qs()}})}var Ti,$i,qi,Ci;function Cn(){if(Ti===void 0){Ti=window,$i=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;qi=cr(t,"firstChild").get,Ci=cr(t,"nextSibling").get,ai(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ai(r)&&(r.__t=void 0)}}function he(e=""){return document.createTextNode(e)}function rr(e){return qi.call(e)}function nt(e){return Ci.call(e)}function Rt(e,t){if(!T)return rr(e);var r=rr(R);return r===null&&(r=R.appendChild(he())),ue(r),r}function O(e,t=!1){if(!T){var r=rr(e);return r instanceof Comment&&r.data===""?nt(r):r}if(t&&R?.nodeType!==Sn){var n=he();return R?.before(n),ue(n),n}return R}function ln(e,t=1,r=!1){let n=T?R:e;for(var i;t--;)i=n,n=nt(n);if(!T)return n;if(r&&n?.nodeType!==Sn){var s=he();return n===null?i?.after(s):n.before(s),ue(s),s}return ue(n),n}function Oi(e){e.textContent=""}function Ai(){return!1}function On(e){var t=C,r=A;Q(null),we(null);try{return e()}finally{Q(t),we(r)}}function Zs(e){A===null&&(C===null&&Ss(),ks()),nr&&Es()}function Qs(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function it(e,t,r){var n=A;n!==null&&(n.f&de)!==0&&(e|=de);var i={ctx:pe,deps:null,nodes_start:null,nodes_end:null,f:e|le|De,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{qr(i),i.f|=Qr}catch(l){throw ne(i),l}else t!==null&&er(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&Xt)===0&&(s=s.first,(e&mt)!==0&&(e&dr)!==0&&s!==null&&(s.f|=dr)),s!==null&&(s.parent=n,n!==null&&Qs(s,n),C!==null&&(C.f&G)!==0&&(e&qt)===0)){var a=C;(a.effects??=[]).push(s)}return i}function un(){return C!==null&&!st}function Ri(e){const t=it(jn,null,!1);return ee(t,Z),t.teardown=e,t}function ea(e){Zs();var t=A.f,r=!C&&(t&gt)!==0&&(t&Qr)===0;if(r){var n=pe;(n.e??=[]).push(e)}else return Mi(e)}function Mi(e){return it(wn|ys,e,!1)}function ta(e){Ie.ensure();const t=it(qt|Xt,e,!0);return()=>{ne(t)}}function ra(e){Ie.ensure();const t=it(qt|Xt,e,!0);return(r={})=>new Promise(n=>{r.outro?mr(t,()=>{ne(t),n(void 0)}):(ne(t),n(void 0))})}function na(e){return it(wn,e,!1)}function ia(e){return it(En|Xt,e,!0)}function Li(e,t=0){return it(jn|t,e,!0)}function _(e,t=[],r=[],n=[]){Ys(n,t,r,i=>{it(jn,()=>e(...i.map(u)),!0)})}function An(e,t=0){var r=it(mt|t,e,!0);return r}function ye(e){return it(gt|Xt,e,!0)}function Di(e){var t=e.teardown;if(t!==null){const r=nr,n=C;Bi(!0),Q(null);try{t.call(null)}finally{Bi(r),Q(n)}}}function Vi(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&On(()=>{i.abort(vr)});var n=r.next;(r.f&qt)!==0?r.parent=null:ne(r,t),r=n}}function sa(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&gt)===0&&ne(t),t=r}}function ne(e,t=!0){var r=!1;(t||(e.f&ui)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(aa(e.nodes_start,e.nodes_end),r=!0),Vi(e,t&&!r),cn(e,0),ee(e,wt);var n=e.transitions;if(n!==null)for(const s of n)s.stop();Di(e);var i=e.parent;i!==null&&i.first!==null&&Ii(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function aa(e,t){for(;e!==null;){var r=e===t?null:nt(e);e.remove(),e=r}}function Ii(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 mr(e,t,r=!0){var n=[];Rn(e,n,!0),Pi(n,()=>{r&&ne(e),t&&t()})}function Pi(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Rn(e,t,r){if((e.f&de)===0){if(e.f^=de,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&dr)!==0||(n.f&gt)!==0&&(e.f&mt)!==0;Rn(n,t,s?r:!1),n=i}}}function Mn(e){Fi(e,!0)}function Fi(e,t){if((e.f&de)!==0){e.f^=de,(e.f&Z)===0&&(ee(e,le),er(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&dr)!==0||(r.f&gt)!==0;Fi(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function Ji(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:nt(r);t.append(r),r=i}}let Mt=!1;function fn(e){Mt=e}let nr=!1;function Bi(e){nr=e}let C=null,st=!1;function Q(e){C=e}let A=null;function we(e){A=e}let kt=null;function Hi(e){C!==null&&(kt===null?kt=[e]:kt.push(e))}let ie=null,be=0,je=null;function oa(e){je=e}let Ui=1,Tr=0,ir=Tr;function Yi(e){ir=e}function zi(){return++Ui}function $r(e){var t=e.f;if((t&le)!==0)return!0;if(t&G&&(e.f&=~Zt),(t&yt)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if($r(s)&&Ei(s),s.wv>e.wv)return!0}(t&De)!==0&&me===null&&ee(e,Z)}return!1}function Wi(e,t,r=!0){var n=e.reactions;if(n!==null&&!kt?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&G)!==0?Wi(s,t,!1):t===s&&(r?ee(s,le):(s.f&Z)!==0&&ee(s,yt),er(s))}}function Gi(e){var t=ie,r=be,n=je,i=C,s=kt,a=pe,l=st,o=ir,f=e.f;ie=null,be=0,je=null,C=(f&(gt|qt))===0?e:null,kt=null,br(e.ctx),st=!1,ir=++Tr,e.ac!==null&&(On(()=>{e.ac.abort(vr)}),e.ac=null);try{e.f|=xn;var d=e.fn,g=d(),c=e.deps;if(ie!==null){var v;if(cn(e,be),c!==null&&be>0)for(c.length=be+ie.length,v=0;v<ie.length;v++)c[be+v]=ie[v];else e.deps=c=ie;if(Mt&&un()&&(e.f&De)!==0)for(v=be;v<c.length;v++)(c[v].reactions??=[]).push(e)}else c!==null&&be<c.length&&(cn(e,be),c.length=be);if(bi()&&je!==null&&!st&&c!==null&&(e.f&(G|yt|le))===0)for(v=0;v<je.length;v++)Wi(je[v],e);return i!==null&&i!==e&&(Tr++,je!==null&&(n===null?n=je:n.push(...je))),(e.f&Ct)!==0&&(e.f^=Ct),g}catch($){return pi($)}finally{e.f^=xn,ie=t,be=r,je=n,C=i,kt=s,br(a),st=l,ir=o}}function la(e,t){let r=t.reactions;if(r!==null){var n=bs.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&G)!==0&&(ie===null||!ie.includes(t))&&(ee(t,yt),(t.f&De)!==0&&(t.f^=De,t.f&=~Zt),xi(t),cn(t,0))}function cn(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)la(e,r[n])}function qr(e){var t=e.f;if((t&wt)===0){ee(e,Z);var r=A,n=Mt;A=e,Mt=!0;try{(t&mt)!==0?sa(e):Vi(e),Di(e);var i=Gi(e);e.teardown=typeof i=="function"?i:null,e.wv=Ui;var s;gn&&Ls&&(e.f&le)!==0&&e.deps}finally{Mt=n,A=r}}}function u(e){var t=e.f,r=(t&G)!==0;if(C!==null&&!st){var n=A!==null&&(A.f&wt)!==0;if(!n&&!kt?.includes(e)){var i=C.deps;if((C.f&xn)!==0)e.rv<Tr&&(e.rv=Tr,ie===null&&i!==null&&i[be]===e?be++:ie===null?ie=[e]:ie.includes(e)||ie.push(e));else{(C.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[C]:s.includes(C)||s.push(C)}}}if(nr){if(At.has(e))return At.get(e);if(r){var a=e,l=a.v;return((a.f&Z)===0&&a.reactions!==null||Xi(a))&&(l=$n(a)),At.set(a,l),l}}else r&&!me?.has(e)&&(a=e,$r(a)&&Ei(a),Mt&&un()&&(a.f&De)===0&&Ki(a));if(me?.has(e))return me.get(e);if((e.f&Ct)!==0)throw e.v;return e.v}function Ki(e){if(e.deps!==null){e.f^=De;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&G)!==0&&(t.f&De)===0&&Ki(t)}}function Xi(e){if(e.v===X)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(At.has(t)||(t.f&G)!==0&&Xi(t))return!0;return!1}function ua(e){var t=st;try{return st=!0,e()}finally{st=t}}const fa=-7169;function ee(e,t){e.f=e.f&fa|t}const Zi=new Set,Ln=new Set;function ca(e,t,r,n={}){function i(s){if(n.capture||Cr.call(t,s),!s.cancelBubble)return On(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?kr(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function x(e,t,r,n,i){var s={capture:n,passive:i},a=ca(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ri(()=>{t.removeEventListener(e,a,s)})}function da(e){for(var t=0;t<e.length;t++)Zi.add(e[t]);for(var r of Ln)r(e)}let Qi=null;function Cr(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Qi=e;var a=0,l=Qi===e&&e.__root;if(l){var o=i.indexOf(l);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;o<=f&&(a=o)}if(s=i[a]||e.target,s!==t){Xr(e,"currentTarget",{configurable:!0,get(){return s||r}});var d=C,g=A;Q(null),we(null);try{for(var c,v=[];s!==null;){var $=s.assignedSlot||s.parentNode||s.host||null;try{var F=s["__"+n];F!=null&&(!s.disabled||e.target===s)&&F.call(s,e)}catch(j){c?v.push(j):c=j}if(e.cancelBubble||$===t||$===null)break;s=$}if(c){for(let j of v)queueMicrotask(()=>{throw j});throw c}}finally{e.__root=t,delete e.currentTarget,Q(d),we(g)}}}function va(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Lt(e,t){var r=A;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function E(e,t){var r=(t&ds)!==0,n=(t&vs)!==0,i,s=!e.startsWith("<!>");return()=>{if(T)return Lt(R,null),R;i===void 0&&(i=va(s?e:"<!>"+e),r||(i=rr(i)));var a=n||$i?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=rr(a),o=a.lastChild;Lt(l,o)}else Lt(a,a);return a}}function ha(e=""){if(!T){var t=he(e+"");return Lt(t,t),t}var r=R;return r.nodeType!==Sn&&(r.before(r=he()),ue(r)),Lt(r,r),r}function M(){if(T)return Lt(R,null),R;var e=document.createDocumentFragment(),t=document.createComment(""),r=he();return e.append(t,r),Lt(t,r),e}function h(e,t){if(T){var r=A;((r.f&Qr)===0||r.nodes_end===null)&&(r.nodes_end=R),Er();return}e!==null&&e.before(t)}const ba=["touchstart","touchmove"];function _a(e){return ba.includes(e)}function es(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function ts(e,t){return rs(e,t)}function pa(e,t){Cn(),t.intro=t.intro??!1;const r=t.target,n=T,i=R;try{for(var s=rr(r);s&&(s.nodeType!==hr||s.data!==ni);)s=nt(s);if(!s)throw fr;Ve(!0),ue(s);const a=rs(e,{...t,anchor:s});return Ve(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==fr&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Ts(),Cn(),Oi(r),Ve(!1),ts(e,t)}finally{Ve(n),ue(i)}}const gr=new Map;function rs(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){Cn();var l=new Set,o=g=>{for(var c=0;c<g.length;c++){var v=g[c];if(!l.has(v)){l.add(v);var $=_a(v);t.addEventListener(v,Cr,{passive:$});var F=gr.get(v);F===void 0?(document.addEventListener(v,Cr,{passive:$}),gr.set(v,1)):gr.set(v,F+1)}}};o(yn(Zi)),Ln.add(o);var f=void 0,d=ra(()=>{var g=r??t.appendChild(he());return Fs(g,{pending:()=>{}},c=>{if(s){vi({});var v=pe;v.c=s}if(i&&(n.$$events=i),T&&Lt(c,null),f=e(c,n)||{},T&&(A.nodes_end=R,R===null||R.nodeType!==hr||R.data!==mn))throw en(),fr;s&&hi()}),()=>{for(var c of l){t.removeEventListener(c,Cr);var v=gr.get(c);--v===0?(document.removeEventListener(c,Cr),gr.delete(c)):gr.set(c,v)}Ln.delete(o),g!==r&&g.parentNode?.removeChild(g)}});return Dn.set(f,d),f}let Dn=new WeakMap;function ma(e,t){const r=Dn.get(e);return r?(Dn.delete(e),r(t)):Promise.resolve()}class ga{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#l=!0;constructor(t,r=!0){this.anchor=t,this.#l=r}#s=()=>{var t=J;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)Mn(n),this.#n.delete(r);else{var i=this.#r.get(r);i&&(this.#e.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of this.#t){if(this.#t.delete(s),s===t)break;const l=this.#r.get(a);l&&(ne(l.effect),this.#r.delete(a))}for(const[s,a]of this.#e){if(s===r||this.#n.has(s))continue;const l=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();Ji(a,f),f.append(he()),this.#r.set(s,{effect:a,fragment:f})}else ne(a);this.#n.delete(s),this.#e.delete(s)};this.#l||!n?(this.#n.add(s),mr(a,l,!1)):l()}}};#i=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,i]of this.#r)r.includes(n)||(ne(i.effect),this.#r.delete(n))};ensure(t,r){var n=J,i=Ai();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),a=he();s.append(a),this.#r.set(t,{effect:ye(()=>r(a)),fragment:s})}else this.#e.set(t,ye(()=>r(this.anchor)));if(this.#t.set(n,t),i){for(const[l,o]of this.#e)l===t?n.skipped_effects.delete(o):n.skipped_effects.add(o);for(const[l,o]of this.#r)l===t?n.skipped_effects.delete(o.effect):n.skipped_effects.add(o.effect);n.oncommit(this.#s),n.ondiscard(this.#i)}else T&&(this.anchor=R),this.#s()}}function N(e,t,r=!1){T&&Er();var n=new ga(e),i=r?dr:0;function s(a,l){if(T){const f=fi(e)===Gr;if(a===f){var o=tn();ue(o),n.anchor=o,Ve(!1),n.ensure(a,l),Ve(!0);return}}n.ensure(a,l)}An(()=>{var a=!1;t((l,o=!0)=>{a=!0,s(o,l)}),a||s(!1,null)},i)}function Vn(e,t,r,n,i){T&&Er();var s=t.$$slots?.[r],a=!1;s===!0&&(s=t[r==="default"?"children":r],a=!0),s===void 0?i!==null&&i(e):s(e,a?()=>n:n)}function ya(e,t){na(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function wa(e,t,r){var n=e==null?"":""+e;return n===""?null:n}function ja(e,t){return e==null?null:String(e)}function D(e,t,r,n,i,s){var a=e.__className;if(T||a!==r||a===void 0){var l=wa(r);(!T||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=r}return s}function L(e,t,r,n){var i=e.__style;if(T||i!==t){var s=ja(t);(!T||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const xa=Symbol("is custom element"),Ea=Symbol("is html");function In(e,t,r,n){var i=ka(e);T&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[js]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ns(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function p(e,t,r){var n=C,i=A;let s=T;T&&Ve(!1),Q(null),we(null);try{t!=="style"&&(Pn.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?ns(e).includes(t):r&&typeof r=="object")?e[t]=r:In(e,t,r==null?r:String(r))}finally{Q(n),we(i),s&&Ve(!0)}}function ka(e){return e.__attributes??={[xa]:e.nodeName.includes("-"),[Ea]:e.namespaceURI===hs}}var Pn=new Map;function ns(e){var t=e.getAttribute("is")||e.nodeName,r=Pn.get(t);if(r)return r;Pn.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=_s(i);for(var a in n)n[a].set&&r.push(a);i=si(i)}return r}function sr(e,t,r,n){var i=n,s=!0,a=()=>(s&&(s=!1,i=n),i),l;l=e[t],l===void 0&&n!==void 0&&(l=a());var o;o=()=>{var c=e[t];return c===void 0?a():(s=!0,c)};var f=!1,d=an(()=>(f=!1,o())),g=A;return(function(c,v){if(arguments.length>0){const $=v?u(d):c;return ve(d,$),f=!0,i!==void 0&&(i=$),c}return nr&&f||(g.f&wt)!==0?d.v:u(d)})}function Sa(e){return new Na(e)}class Na{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var l=Si(a,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return u(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===ws?!0:(u(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return ve(r.get(a)??n(a,l),l),Reflect.set(s,a,l)}});this.#e=(t.hydrate?pa:ts)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Ot(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Xr(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{ma(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let is;typeof HTMLElement=="function"&&(is=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}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=document.createElement("slot");n!=="default"&&(s.name=n),h(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=Ta(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]=dn(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=Sa({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ta(()=>{Li(()=>{this.$$r=!0;for(const n of Kr(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=dn(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]=dn(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 Kr(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function dn(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 Ta(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function $a(e,t,r,n,i,s){let a=class extends is{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Kr(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Kr(t).forEach(l=>{Xr(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=dn(l,o,t),this.$$d[l]=o;var f=this.$$c;if(f){var d=cr(f,l)?.get;d?f[l]=o:f.$set({[l]:o})}}})}),n.forEach(l=>{Xr(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}const se={version:"0.65.23"},qa=(e,t)=>e.reduce((r,n)=>{for(const i of t(n))(r[i]=r[i]||[]).push(n);return r},{});var ar={},ss;function Ca(){if(ss)return ar;ss=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.LanguageTranslator=void 0,ar.getChildStyleToPass=e,ar.addComponent=t;function e(n,i){var s,a,l="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(c){return Object.keys(n).includes(c.name)}))===null||a===void 0)&&a.length))for(var o=function(c){var v=i?.filter(function($){return $.name===c&&$.defaultValue!==n[c]});v&&(l+="".concat(c,":").concat(n[c],";"))},f=0,d=Object.keys(n);f<d.length;f++){var g=d[f];o(g)}}catch(c){console.error("error getting child style to pass",c)}finally{return l}}function t(n){var i,s=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!s)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var a=n?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var l=document.createElement("script");if(l.id=s+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(a),n?.local)l.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var o=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(o+"-",""),"/").concat(a)}document.head.appendChild(l)}catch(f){console.warn(f)}}var r=(function(){function n(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return n.prototype.setLang=function(i){i||(i=n.getDefaultLang()),this.lang=i},n.prototype.translateWord=function(i,s){return n.getDictionaryWord(i,this.dictionary,s||this.lang)},n.prototype.translateDate=function(i,s,a){return n.formatDate(i,s,a||this.lang)},n.getDefaultLang=function(){var i,s,a,l="en";return navigator?.languages&&(!((a=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||a===void 0)&&a.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},n.getDictionaryWord=function(i,s,a){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((l=s[a])===null||l===void 0)&&l[i]))return s[a][i];var o="",f=n.getDefaultLang();if(!a||f!==a){var d=s?.[f];d?.[i]&&(o=d[i])}return o},n.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(a||n.getDefaultLang(),s);return l.format(i)},n})();return ar.LanguageTranslator=r,ar}var ae=Ca(),Oa=E('<label class="svelte-yjqjiw"> </label>'),Aa=E("<hb-input-array-objects></hb-input-array-objects>",2),Ra=E("<hb-input-array-tags></hb-input-array-tags>",2),Ma=E("<hb-input-text></hb-input-text>",2),La=E("<hb-input-color></hb-input-color>",2),Da=E("<hb-input-range></hb-input-range>",2),Va=E("<hb-input-file></hb-input-file>",2),Ia=E("<hb-input-email></hb-input-email>",2),Pa=E("<hb-input-date></hb-input-date>",2),Fa=E("<hb-input-datetime></hb-input-datetime>",2),Ja=E("<hb-input-checkbox></hb-input-checkbox>",2),Ba=E("<hb-input-number></hb-input-number>",2),Ha=E("<hb-input-area></hb-input-area>",2),Ua=E("<hb-input-radio></hb-input-radio>",2),Ya=E("<hb-input-select></hb-input-select>",2),za=E("<hb-input-coords></hb-input-coords>",2),Wa=E('<div class="col mb-3 svelte-yjqjiw"><!> <!></div>'),Ga=E('<div class="row svelte-yjqjiw"></div>'),Ka=E('<label class="svelte-yjqjiw"> </label>'),Xa=E("<hb-input-text></hb-input-text>",2),Za=E("<hb-input-array-objects></hb-input-array-objects>",2),Qa=E("<hb-input-array-tags></hb-input-array-tags>",2),eo=E("<hb-input-color></hb-input-color>",2),to=E("<hb-input-range></hb-input-range>",2),ro=E("<hb-input-file></hb-input-file>",2),no=E("<hb-input-email></hb-input-email>",2),io=E("<hb-input-date></hb-input-date>",2),so=E("<hb-input-datetime></hb-input-datetime>",2),ao=E("<hb-input-checkbox></hb-input-checkbox>",2),oo=E("<hb-input-number></hb-input-number>",2),lo=E("<hb-input-area></hb-input-area>",2),uo=E("<hb-input-radio></hb-input-radio>",2),fo=E("<hb-input-select></hb-input-select>",2),co=E("<hb-input-coords></hb-input-coords>",2),vo=E('<div class="col mb-3 svelte-yjqjiw"><!> <!></div>'),ho=E('<button part="main_button" type="button" class="btn btn-primary svelte-yjqjiw"><!></button>'),bo=E('<div id="button_container" part="button_container" class="svelte-yjqjiw"><span class="svelte-yjqjiw"><!></span> <!></div>'),_o=E("<!> <!>",1),po=E('<div class="container-fluid svelte-yjqjiw"><!></div>');const mo={hash:"svelte-yjqjiw",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");
1
+ (function(Yr){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Ur=1,zr=2,Wr=4,Qi=8,es=16,ts=1,ns=2,Gr="[",Yn="[!",dr="]",sn={},Y=Symbol(),rs="http://www.w3.org/1999/xhtml",vr=!1;var Kr=Array.isArray,is=Array.prototype.indexOf,hr=Array.from,Un=Object.keys,zn=Object.defineProperty,an=Object.getOwnPropertyDescriptor,ss=Object.getOwnPropertyDescriptors,as=Object.prototype,os=Array.prototype,Xr=Object.getPrototypeOf,Zr=Object.isExtensible;function ls(e){for(var t=0;t<e.length;t++)e[t]()}function Qr(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const H=2,_r=4,pr=8,ct=16,dt=32,wt=64,Wn=128,we=512,U=1024,te=2048,vt=4096,re=8192,ht=16384,Gn=32768,on=65536,ei=1<<17,ti=1<<18,Ut=1<<19,us=1<<20,zt=32768,br=1<<21,mr=1<<22,yt=1<<23,gr=Symbol("$state"),fs=Symbol("legacy props"),cs=Symbol(""),ln=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},wr=3,un=8;function ds(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function vs(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function hs(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function _s(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ps(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function bs(){throw new Error("https://svelte.dev/e/hydration_failed")}function ms(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function gs(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ws(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ys(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Kn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function js(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let $=!1;function ye(e){$=e}let O;function ne(e){if(e===null)throw Kn(),sn;return O=e}function yn(){return ne(Le(O))}function _t(e){if($){if(Le(O)!==null)throw Kn(),sn;O=e}}function Es(e=1){if($){for(var t=e,n=O;t--;)n=Le(n);O=n}}function Xn(e=!0){for(var t=0,n=O;;){if(n.nodeType===un){var r=n.data;if(r===dr){if(t===0)return n;t-=1}else(r===Gr||r===Yn)&&(t+=1)}var s=Le(n);e&&n.remove(),n=s}}function ni(e){if(!e||e.nodeType!==un)throw Kn(),sn;return e.data}function ri(e){return e===this.v}function xs(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ii(e){return!xs(e,this.v)}let ks=!1,le=null;function fn(e){le=e}function si(e,t=!1,n){le={p:le,i:!1,c:null,e:null,s:e,x:null,l:null}}function ai(e){var t=le,n=t.e;if(n!==null){t.e=null;for(var r of n)$i(r)}return e!==void 0&&(t.x=e),t.i=!0,le=t.p,e??{}}function oi(){return!0}let Wt=[];function li(){var e=Wt;Wt=[],ls(e)}function jn(e){if(Wt.length===0&&!En){var t=Wt;queueMicrotask(()=>{t===Wt&&li()})}Wt.push(e)}function Ns(){for(;Wt.length>0;)li()}function ui(e){var t=C;if(t===null)return q.f|=yt,e;if((t.f&Gn)===0){if((t.f&Wn)===0)throw e;t.b.error(e)}else cn(e,t)}function cn(e,t){for(;t!==null;){if((t.f&Wn)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Zn=new Set;let D=null,ue=null,fe=[],Qn=null,yr=!1,En=!1;class je{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#l=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){fe=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#a(r,n);this.is_fork||this.#f(),this.is_deferred()?(this.#o(n.effects),this.#o(n.render_effects),this.#o(n.block_effects)):(D=null,ci(n.render_effects),ci(n.effects),this.#l?.resolve()),ue=null}#a(t,n){t.f^=U;for(var r=t.first;r!==null;){var s=r.f,i=(s&(dt|wt))!==0,a=i&&(s&U)!==0,o=a||(s&re)!==0||this.skipped_effects.has(r);if((r.f&Wn)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!o&&r.fn!==null){i?r.f^=U:(s&_r)!==0?n.effects.push(r):Nn(r)&&((r.f&ct)!==0&&n.block_effects.push(r),$n(r));var l=r.first;if(l!==null){r=l;continue}}var u=r.parent;for(r=r.next;r===null&&u!==null;)u===n.effect&&(this.#o(n.effects),this.#o(n.render_effects),this.#o(n.block_effects),n=n.parent),r=u.next,u=u.parent}}#o(t){for(const n of t)((n.f&te)!==0?this.#s:this.#i).push(n),this.#u(n.deps),W(n,U)}#u(t){if(t!==null)for(const n of t)(n.f&H)===0||(n.f&zt)===0||(n.f^=zt,this.#u(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&yt)===0&&(this.current.set(t,t.v),ue?.set(t,t.v))}activate(){D=this,this.apply()}deactivate(){D===this&&(D=null,ue=null)}flush(){if(this.activate(),fe.length>0){if(fi(),D!==null&&D!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#f(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#c()}#c(){if(Zn.size>1){this.previous.clear();var t=ue,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Zn){if(i===this){n=!1;continue}const a=[];for(const[l,u]of this.current){if(i.current.has(l))if(n&&u!==i.current.get(l))i.current.set(l,u);else continue;a.push(l)}if(a.length===0)continue;const o=[...i.current.keys()].filter(l=>!this.current.has(l));if(o.length>0){var s=fe;fe=[];const l=new Set,u=new Map;for(const v of a)di(v,o,l,u);if(fe.length>0){D=i,i.apply();for(const v of fe)i.#a(v,r);i.deactivate()}fe=s}}D=null,ue=t}this.committed=!0,Zn.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#s)W(t,te),Gt(t);for(const t of this.#i)W(t,vt),Gt(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=Qr()).promise}static ensure(){if(D===null){const t=D=new je;Zn.add(D),En||je.enqueue(()=>{D===t&&t.flush()})}return D}static enqueue(t){jn(t)}apply(){}}function jt(e){var t=En;En=!0;try{for(var n;;){if(Ns(),fe.length===0&&(D?.flush(),fe.length===0))return Qn=null,n;fi()}}finally{En=t}}function fi(){var e=Nt;yr=!0;var t=null;try{var n=0;for(sr(!0);fe.length>0;){var r=je.ensure();if(n++>1e3){var s,i;$s()}r.process(fe),Et.clear()}}finally{yr=!1,sr(e),Qn=null}}function $s(){try{ps()}catch(e){cn(e,Qn)}}let pt=null;function ci(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ht|re))===0&&Nn(r)&&(pt=new Set,$n(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Ci(r):r.fn=null),pt?.size>0)){Et.clear();for(const s of pt){if((s.f&(ht|re))!==0)continue;const i=[s];let a=s.parent;for(;a!==null;)pt.has(a)&&(pt.delete(a),i.push(a)),a=a.parent;for(let o=i.length-1;o>=0;o--){const l=i[o];(l.f&(ht|re))===0&&$n(l)}}pt.clear()}}pt=null}}function di(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&H)!==0?di(s,t,n,r):(i&(mr|ct))!==0&&(i&te)===0&&vi(s,t,r)&&(W(s,te),Gt(s))}}function vi(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&H)!==0&&vi(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function Gt(e){for(var t=Qn=e;t.parent!==null;){t=t.parent;var n=t.f;if(yr&&t===C&&(n&ct)!==0&&(n&ti)===0)return;if((n&(wt|dt))!==0){if((n&U)===0)return;t.f^=U}}fe.push(t)}function qs(e){let t=0,n=Kt(0),r;return()=>{ir()&&(c(n),qi(()=>(t===0&&(r=Zs(()=>e(()=>xn(n)))),t+=1,()=>{jn(()=>{t-=1,t===0&&(r?.(),r=void 0,xn(n))})})))}}var Ss=on|Ut|Wn;function Ts(e,t,n){new Cs(e,t,n)}class Cs{parent;#t=!1;#e;#n=$?O:null;#r;#l;#s;#i=null;#a=null;#o=null;#u=null;#f=null;#c=0;#d=0;#h=!1;#v=null;#g=qs(()=>(this.#v=Kt(this.#c),()=>{this.#v=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#l=r,this.parent=C.b,this.#t=!!this.#r.pending,this.#s=$r(()=>{if(C.b=this,$){const i=this.#n;yn(),i.nodeType===un&&i.data===Yn?this.#y():this.#w()}else{var s=this.#b();try{this.#i=de(()=>r(s))}catch(i){this.error(i)}this.#d>0?this.#p():this.#t=!1}return()=>{this.#f?.remove()}},Ss),$&&(this.#e=O)}#w(){try{this.#i=de(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#r.pending;t&&(this.#a=de(()=>t(this.#e)),je.enqueue(()=>{var n=this.#b();this.#i=this.#_(()=>(je.ensure(),de(()=>this.#l(n)))),this.#d>0?this.#p():(vn(this.#a,()=>{this.#a=null}),this.#t=!1)}))}#b(){var t=this.#e;return this.#t&&(this.#f=se(),this.#e.before(this.#f),t=this.#f),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#_(t){var n=C,r=q,s=le;ve(this.#s),z(this.#s),fn(this.#s.ctx);try{return t()}catch(i){return ui(i),null}finally{ve(n),z(r),fn(s)}}#p(){const t=this.#r.pending;this.#i!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#f),Ri(this.#i,this.#u)),this.#a===null&&(this.#a=de(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#a&&vn(this.#a,()=>{this.#a=null}),this.#u&&(this.#e.before(this.#u),this.#u=null))}update_pending_count(t){this.#m(t),this.#c+=t,this.#v&&dn(this.#v,this.#c)}get_effect_pending(){return this.#g(),c(this.#v)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#h||!n&&!r)throw t;this.#i&&(G(this.#i),this.#i=null),this.#a&&(G(this.#a),this.#a=null),this.#o&&(G(this.#o),this.#o=null),$&&(ne(this.#n),Es(),ne(Xn()));var s=!1,i=!1;const a=()=>{if(s){js();return}s=!0,i&&ys(),je.ensure(),this.#c=0,this.#o!==null&&vn(this.#o,()=>{this.#o=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#h=!1,de(()=>this.#l(this.#e)))),this.#d>0?this.#p():this.#t=!1};var o=q;try{z(null),i=!0,n?.(t,a),i=!1}catch(l){cn(l,this.#s&&this.#s.parent)}finally{z(o)}r&&jn(()=>{this.#o=this.#_(()=>{je.ensure(),this.#h=!0;try{return de(()=>{r(this.#e,()=>t,()=>a)})}catch(l){return cn(l,this.#s.parent),null}finally{this.#h=!1}})})}}function Os(e,t,n){for(var r=[],s=t.length,i=0;i<s;i++)qr(t[i].e,r,!0);Oi(r,()=>{var a=r.length===0&&n!==null;if(a){var o=n,l=o.parentNode;xi(l),l.append(o),e.items.clear(),Me(e,t[0].prev,t[s-1].next)}for(var u=0;u<s;u++){var v=t[u];a||(e.items.delete(v.k),Me(e,v.prev,v.next)),G(v.e,!a)}e.first===t[0]&&(e.first=t[0].prev)})}function hi(e,t,n,r,s,i=null){var a=e,o=new Map,l=null,u=(t&Wr)!==0,v=(t&Ur)!==0,p=(t&zr)!==0;if(u){var d=e;a=$?ne(Xt(d)):d.appendChild(se())}$&&yn();var f=null,N=Vs(()=>{var I=n();return Kr(I)?I:I==null?[]:hr(I)}),L,j=!0;function M(){As(qt,L,a,t,r),f!==null&&(L.length===0?(f.fragment?(a.before(f.fragment),f.fragment=null):Sr(f.effect),Q.first=f.effect):vn(f.effect,()=>{f=null}))}var Q=$r(()=>{L=c(N);var I=L.length;let St=!1;if($){var Tt=ni(a)===Yn;Tt!==(I===0)&&(a=Xn(),ne(a),ye(!1),St=!0)}for(var _e=new Set,Ee=D,P=null,S=ki(),mt=0;mt<I;mt+=1){$&&O.nodeType===un&&O.data===dr&&(a=O,St=!0,ye(!1));var nn=L[mt],_n=r(nn,mt),oe=j?null:o.get(_n);oe?(v&&dn(oe.v,nn),p?dn(oe.i,mt):oe.i=mt,S&&Ee.skipped_effects.delete(oe.e)):(oe=Rs(j?a:null,P,nn,_n,mt,s,t,n),j&&(oe.o=!0,P===null?l=oe:P.next=oe,P=oe),o.set(_n,oe)),_e.add(_n)}if(I===0&&i&&!f)if(j)f={fragment:null,effect:de(()=>i(a))};else{var h=document.createDocumentFragment(),w=se();h.append(w),f={fragment:h,effect:de(()=>i(w))}}if($&&I>0&&ne(Xn()),!j)if(S){for(const[V,Mr]of o)_e.has(V)||Ee.skipped_effects.add(Mr.e);Ee.oncommit(M),Ee.ondiscard(()=>{})}else M();St&&ye(!0),c(N)}),qt={effect:Q,items:o,first:l};j=!1,$&&(a=O)}function As(e,t,n,r,s){var i=(r&Qi)!==0,a=t.length,o=e.items,l=e.first,u,v=null,p,d=[],f=[],N,L,j,M;if(i)for(M=0;M<a;M+=1)N=t[M],L=s(N,M),j=o.get(L),j.a?.measure(),(p??=new Set).add(j);for(M=0;M<a;M+=1){if(N=t[M],L=s(N,M),j=o.get(L),e.first??=j,!j.o){j.o=!0;var Q=v?v.next:l;Me(e,v,j),Me(e,j,Q),jr(j,Q,n),v=j,d=[],f=[],l=v.next;continue}if((j.e.f&re)!==0&&(Sr(j.e),i&&(j.a?.unfix(),(p??=new Set).delete(j))),j!==l){if(u!==void 0&&u.has(j)){if(d.length<f.length){var qt=f[0],I;v=qt.prev;var St=d[0],Tt=d[d.length-1];for(I=0;I<d.length;I+=1)jr(d[I],qt,n);for(I=0;I<f.length;I+=1)u.delete(f[I]);Me(e,St.prev,Tt.next),Me(e,v,St),Me(e,Tt,qt),l=qt,v=Tt,M-=1,d=[],f=[]}else u.delete(j),jr(j,l,n),Me(e,j.prev,j.next),Me(e,j,v===null?e.first:v.next),Me(e,v,j),v=j;continue}for(d=[],f=[];l!==null&&l.k!==L;)(l.e.f&re)===0&&(u??=new Set).add(l),f.push(l),l=l.next;if(l===null)continue;j=l}d.push(j),v=j,l=j.next}if(l!==null||u!==void 0){for(var _e=u===void 0?[]:hr(u);l!==null;)(l.e.f&re)===0&&_e.push(l),l=l.next;var Ee=_e.length;if(Ee>0){var P=(r&Wr)!==0&&a===0?n:null;if(i){for(M=0;M<Ee;M+=1)_e[M].a?.measure();for(M=0;M<Ee;M+=1)_e[M].a?.fix()}Os(e,_e,P)}}i&&jn(()=>{if(p!==void 0)for(j of p)j.a?.apply()})}function Rs(e,t,n,r,s,i,a,o){var l=(a&Ur)!==0,u=(a&es)===0,v=l?u?mi(n,!1,!1):Kt(n):n,p=(a&zr)===0?s:Kt(s),d={i:p,v,k:r,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var f=document.createDocumentFragment();f.append(e=se())}return d.e=de(()=>i(e,v,p,o)),t!==null&&(t.next=d),d}finally{}}function jr(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,s=t?t.e.nodes_start:n,i=e.e.nodes_start;i!==null&&i!==r;){var a=Le(i);s.before(i),i=a}}function Me(e,t,n){t===null?(e.first=n,e.effect.first=n&&n.e):(t.e.next&&(t.e.next.prev=null),t.next=n,t.e.next=n&&n.e),n===null?e.effect.last=t&&t.e:(n.e.prev&&(n.e.prev.next=null),n.prev=t,n.e.prev=t&&t.e)}function Ms(e,t,n,r){const s=tr;if(n.length===0&&e.length===0){r(t.map(s));return}var i=D,a=C,o=Ls();function l(){Promise.all(n.map(u=>Ds(u))).then(u=>{o();try{r([...t.map(s),...u])}catch(v){(a.f&ht)===0&&cn(v,a)}i?.deactivate(),er()}).catch(u=>{cn(u,a)})}e.length>0?Promise.all(e).then(()=>{o();try{return l()}finally{i?.deactivate(),er()}}):l()}function Ls(){var e=C,t=q,n=le,r=D;return function(i=!0){ve(e),z(t),fn(n),i&&r?.activate()}}function er(){ve(null),z(null),fn(null)}function tr(e){var t=H|te,n=q!==null&&(q.f&H)!==0?q:null;return C!==null&&(C.f|=Ut),{ctx:le,deps:null,effects:null,equals:ri,f:t,fn:e,reactions:null,rv:0,v:Y,wv:0,parent:n??C,ac:null}}function Ds(e,t){let n=C;n===null&&ds();var r=n.b,s=void 0,i=Kt(Y),a=!q,o=new Map;return zs(()=>{var l=Qr();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{u===D&&u.committed&&u.deactivate(),er()})}catch(d){l.reject(d),er()}var u=D;if(a){var v=!r.is_pending();r.update_pending_count(1),u.increment(v),o.get(u)?.reject(ln),o.delete(u),o.set(u,l)}const p=(d,f=void 0)=>{if(u.activate(),f)f!==ln&&(i.f|=yt,dn(i,f));else{(i.f&yt)!==0&&(i.f^=yt),dn(i,d);for(const[N,L]of o){if(o.delete(N),N===u)break;L.reject(ln)}}a&&(r.update_pending_count(-1),u.decrement(v))};l.promise.then(p,d=>p(null,d||"unknown"))}),Ni(()=>{for(const l of o.values())l.reject(ln)}),new Promise(l=>{function u(v){function p(){v===s?l(i):u(s)}v.then(p,p)}u(s)})}function nr(e){const t=tr(e);return Li(t),t}function Vs(e){const t=tr(e);return t.equals=ii,t}function _i(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)G(t[n])}}function Is(e){for(var t=e.parent;t!==null;){if((t.f&H)===0)return(t.f&ht)===0?t:null;t=t.parent}return null}function Er(e){var t,n=C;ve(Is(e));try{e.f&=~zt,_i(e),t=Fi(e)}finally{ve(n)}return t}function pi(e){var t=Er(e);if(e.equals(t)||(D?.is_fork||(e.v=t),e.wv=Ii()),!Zt)if(ue!==null)ir()&&ue.set(e,t);else{var n=(e.f&we)===0?vt:U;W(e,n)}}let xr=new Set;const Et=new Map;let bi=!1;function Kt(e,t){var n={f:0,v:e,reactions:null,equals:ri,rv:0,wv:0};return n}function ce(e,t){const n=Kt(e);return Li(n),n}function mi(e,t=!1,n=!0){const r=Kt(e);return t||(r.equals=ii),r}function ie(e,t,n=!1){q!==null&&(!Ve||(q.f&ei)!==0)&&oi()&&(q.f&(H|ct|mr|ei))!==0&&!bt?.includes(e)&&ws();let r=n?xt(t):t;return dn(e,r)}function dn(e,t){if(!e.equals(t)){var n=e.v;Zt?Et.set(e,t):Et.set(e,n),e.v=t;var r=je.ensure();r.capture(e,n),(e.f&H)!==0&&((e.f&te)!==0&&Er(e),W(e,(e.f&we)!==0?U:vt)),e.wv=Ii(),gi(e,te),C!==null&&(C.f&U)!==0&&(C.f&(dt|wt))===0&&(he===null?Ks([e]):he.push(e)),!r.is_fork&&xr.size>0&&!bi&&Ps()}return t}function Ps(){bi=!1;var e=Nt;sr(!0);const t=Array.from(xr);try{for(const n of t)(n.f&U)!==0&&W(n,vt),Nn(n)&&$n(n)}finally{sr(e)}xr.clear()}function xn(e){ie(e,e.v+1)}function gi(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],a=i.f,o=(a&te)===0;if(o&&W(i,t),(a&H)!==0){var l=i;ue?.delete(l),(a&zt)===0&&(a&we&&(i.f|=zt),gi(l,vt))}else o&&((a&ct)!==0&&pt!==null&&pt.add(i),Gt(i))}}function xt(e){if(typeof e!="object"||e===null||gr in e)return e;const t=Xr(e);if(t!==as&&t!==os)return e;var n=new Map,r=Kr(e),s=ce(0),i=Qt,a=o=>{if(Qt===i)return o();var l=q,u=Qt;z(null),Vi(i);var v=o();return z(l),Vi(u),v};return r&&n.set("length",ce(e.length)),new Proxy(e,{defineProperty(o,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&ms();var v=n.get(l);return v===void 0?v=a(()=>{var p=ce(u.value);return n.set(l,p),p}):ie(v,u.value,!0),!0},deleteProperty(o,l){var u=n.get(l);if(u===void 0){if(l in o){const v=a(()=>ce(Y));n.set(l,v),xn(s)}}else ie(u,Y),xn(s);return!0},get(o,l,u){if(l===gr)return e;var v=n.get(l),p=l in o;if(v===void 0&&(!p||an(o,l)?.writable)&&(v=a(()=>{var f=xt(p?o[l]:Y),N=ce(f);return N}),n.set(l,v)),v!==void 0){var d=c(v);return d===Y?void 0:d}return Reflect.get(o,l,u)},getOwnPropertyDescriptor(o,l){var u=Reflect.getOwnPropertyDescriptor(o,l);if(u&&"value"in u){var v=n.get(l);v&&(u.value=c(v))}else if(u===void 0){var p=n.get(l),d=p?.v;if(p!==void 0&&d!==Y)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return u},has(o,l){if(l===gr)return!0;var u=n.get(l),v=u!==void 0&&u.v!==Y||Reflect.has(o,l);if(u!==void 0||C!==null&&(!v||an(o,l)?.writable)){u===void 0&&(u=a(()=>{var d=v?xt(o[l]):Y,f=ce(d);return f}),n.set(l,u));var p=c(u);if(p===Y)return!1}return v},set(o,l,u,v){var p=n.get(l),d=l in o;if(r&&l==="length")for(var f=u;f<p.v;f+=1){var N=n.get(f+"");N!==void 0?ie(N,Y):f in o&&(N=a(()=>ce(Y)),n.set(f+"",N))}if(p===void 0)(!d||an(o,l)?.writable)&&(p=a(()=>ce(void 0)),ie(p,xt(u)),n.set(l,p));else{d=p.v!==Y;var L=a(()=>xt(u));ie(p,L)}var j=Reflect.getOwnPropertyDescriptor(o,l);if(j?.set&&j.set.call(v,u),!d){if(r&&typeof l=="string"){var M=n.get("length"),Q=Number(l);Number.isInteger(Q)&&Q>=M.v&&ie(M,Q+1)}xn(s)}return!0},ownKeys(o){c(s);var l=Reflect.ownKeys(o).filter(p=>{var d=n.get(p);return d===void 0||d.v!==Y});for(var[u,v]of n)v.v!==Y&&!(u in o)&&l.push(u);return l},setPrototypeOf(){gs()}})}var wi,yi,ji,Ei;function kr(){if(wi===void 0){wi=window,yi=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;ji=an(t,"firstChild").get,Ei=an(t,"nextSibling").get,Zr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Zr(n)&&(n.__t=void 0)}}function se(e=""){return document.createTextNode(e)}function Xt(e){return ji.call(e)}function Le(e){return Ei.call(e)}function kt(e,t){if(!$)return Xt(e);var n=Xt(O);return n===null&&(n=O.appendChild(se())),ne(n),n}function T(e,t=!1){if(!$){var n=Xt(e);return n instanceof Comment&&n.data===""?Le(n):n}if(t&&O?.nodeType!==wr){var r=se();return O?.before(r),ne(r),r}return O}function rr(e,t=1,n=!1){let r=$?O:e;for(var s;t--;)s=r,r=Le(r);if(!$)return r;if(n&&r?.nodeType!==wr){var i=se();return r===null?s?.after(i):r.before(i),ne(i),i}return ne(r),r}function xi(e){e.textContent=""}function ki(){return!1}function Nr(e){var t=q,n=C;z(null),ve(null);try{return e()}finally{z(t),ve(n)}}function Fs(e){C===null&&(q===null&&_s(),hs()),Zt&&vs()}function Js(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function De(e,t,n){var r=C;r!==null&&(r.f&re)!==0&&(e|=re);var s={ctx:le,deps:null,nodes_start:null,nodes_end:null,f:e|te|we,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{$n(s),s.f|=Gn}catch(o){throw G(s),o}else t!==null&&Gt(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&Ut)===0&&(i=i.first,(e&ct)!==0&&(e&on)!==0&&i!==null&&(i.f|=on)),i!==null&&(i.parent=r,r!==null&&Js(i,r),q!==null&&(q.f&H)!==0&&(e&wt)===0)){var a=q;(a.effects??=[]).push(i)}return s}function ir(){return q!==null&&!Ve}function Ni(e){const t=De(pr,null,!1);return W(t,U),t.teardown=e,t}function Bs(e){Fs();var t=C.f,n=!q&&(t&dt)!==0&&(t&Gn)===0;if(n){var r=le;(r.e??=[]).push(e)}else return $i(e)}function $i(e){return De(_r|us,e,!1)}function Hs(e){je.ensure();const t=De(wt|Ut,e,!0);return()=>{G(t)}}function Ys(e){je.ensure();const t=De(wt|Ut,e,!0);return(n={})=>new Promise(r=>{n.outro?vn(t,()=>{G(t),r(void 0)}):(G(t),r(void 0))})}function Us(e){return De(_r,e,!1)}function zs(e){return De(mr|Ut,e,!0)}function qi(e,t=0){return De(pr|t,e,!0)}function b(e,t=[],n=[],r=[]){Ms(r,t,n,s=>{De(pr,()=>e(...s.map(c)),!0)})}function $r(e,t=0){var n=De(ct|t,e,!0);return n}function de(e){return De(dt|Ut,e,!0)}function Si(e){var t=e.teardown;if(t!==null){const n=Zt,r=q;Mi(!0),z(null);try{t.call(null)}finally{Mi(n),z(r)}}}function Ti(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Nr(()=>{s.abort(ln)});var r=n.next;(n.f&wt)!==0?n.parent=null:G(n,t),n=r}}function Ws(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&dt)===0&&G(t),t=n}}function G(e,t=!0){var n=!1;(t||(e.f&ti)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Gs(e.nodes_start,e.nodes_end),n=!0),Ti(e,t&&!n),ar(e,0),W(e,ht);var r=e.transitions;if(r!==null)for(const i of r)i.stop();Si(e);var s=e.parent;s!==null&&s.first!==null&&Ci(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Gs(e,t){for(;e!==null;){var n=e===t?null:Le(e);e.remove(),e=n}}function Ci(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function vn(e,t,n=!0){var r=[];qr(e,r,!0),Oi(r,()=>{n&&G(e),t&&t()})}function Oi(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function qr(e,t,n){if((e.f&re)===0){if(e.f^=re,e.transitions!==null)for(const a of e.transitions)(a.is_global||n)&&t.push(a);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&on)!==0||(r.f&dt)!==0&&(e.f&ct)!==0;qr(r,t,i?n:!1),r=s}}}function Sr(e){Ai(e,!0)}function Ai(e,t){if((e.f&re)!==0){e.f^=re,(e.f&U)===0&&(W(e,te),Gt(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&on)!==0||(n.f&dt)!==0;Ai(n,s?t:!1),n=r}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}function Ri(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var s=n===r?null:Le(n);t.append(n),n=s}}let Nt=!1;function sr(e){Nt=e}let Zt=!1;function Mi(e){Zt=e}let q=null,Ve=!1;function z(e){q=e}let C=null;function ve(e){C=e}let bt=null;function Li(e){q!==null&&(bt===null?bt=[e]:bt.push(e))}let K=null,ae=0,he=null;function Ks(e){he=e}let Di=1,kn=0,Qt=kn;function Vi(e){Qt=e}function Ii(){return++Di}function Nn(e){var t=e.f;if((t&te)!==0)return!0;if(t&H&&(e.f&=~zt),(t&vt)!==0){var n=e.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s];if(Nn(i)&&pi(i),i.wv>e.wv)return!0}(t&we)!==0&&ue===null&&W(e,U)}return!1}function Pi(e,t,n=!0){var r=e.reactions;if(r!==null&&!bt?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&H)!==0?Pi(i,t,!1):t===i&&(n?W(i,te):(i.f&U)!==0&&W(i,vt),Gt(i))}}function Fi(e){var t=K,n=ae,r=he,s=q,i=bt,a=le,o=Ve,l=Qt,u=e.f;K=null,ae=0,he=null,q=(u&(dt|wt))===0?e:null,bt=null,fn(e.ctx),Ve=!1,Qt=++kn,e.ac!==null&&(Nr(()=>{e.ac.abort(ln)}),e.ac=null);try{e.f|=br;var v=e.fn,p=v(),d=e.deps;if(K!==null){var f;if(ar(e,ae),d!==null&&ae>0)for(d.length=ae+K.length,f=0;f<K.length;f++)d[ae+f]=K[f];else e.deps=d=K;if(Nt&&ir()&&(e.f&we)!==0)for(f=ae;f<d.length;f++)(d[f].reactions??=[]).push(e)}else d!==null&&ae<d.length&&(ar(e,ae),d.length=ae);if(oi()&&he!==null&&!Ve&&d!==null&&(e.f&(H|vt|te))===0)for(f=0;f<he.length;f++)Pi(he[f],e);return s!==null&&s!==e&&(kn++,he!==null&&(r===null?r=he:r.push(...he))),(e.f&yt)!==0&&(e.f^=yt),p}catch(N){return ui(N)}finally{e.f^=br,K=t,ae=n,he=r,q=s,bt=i,fn(a),Ve=o,Qt=l}}function Xs(e,t){let n=t.reactions;if(n!==null){var r=is.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&H)!==0&&(K===null||!K.includes(t))&&(W(t,vt),(t.f&we)!==0&&(t.f^=we,t.f&=~zt),_i(t),ar(t,0))}function ar(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Xs(e,n[r])}function $n(e){var t=e.f;if((t&ht)===0){W(e,U);var n=C,r=Nt;C=e,Nt=!0;try{(t&ct)!==0?Ws(e):Ti(e),Si(e);var s=Fi(e);e.teardown=typeof s=="function"?s:null,e.wv=Di;var i;vr&&ks&&(e.f&te)!==0&&e.deps}finally{Nt=r,C=n}}}function c(e){var t=e.f,n=(t&H)!==0;if(q!==null&&!Ve){var r=C!==null&&(C.f&ht)!==0;if(!r&&!bt?.includes(e)){var s=q.deps;if((q.f&br)!==0)e.rv<kn&&(e.rv=kn,K===null&&s!==null&&s[ae]===e?ae++:K===null?K=[e]:K.includes(e)||K.push(e));else{(q.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[q]:i.includes(q)||i.push(q)}}}if(Zt){if(Et.has(e))return Et.get(e);if(n){var a=e,o=a.v;return((a.f&U)===0&&a.reactions!==null||Bi(a))&&(o=Er(a)),Et.set(a,o),o}}else n&&!ue?.has(e)&&(a=e,Nn(a)&&pi(a),Nt&&ir()&&(a.f&we)===0&&Ji(a));if(ue?.has(e))return ue.get(e);if((e.f&yt)!==0)throw e.v;return e.v}function Ji(e){if(e.deps!==null){e.f^=we;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&H)!==0&&(t.f&we)===0&&Ji(t)}}function Bi(e){if(e.v===Y)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Et.has(t)||(t.f&H)!==0&&Bi(t))return!0;return!1}function Zs(e){var t=Ve;try{return Ve=!0,e()}finally{Ve=t}}const Qs=-7169;function W(e,t){e.f=e.f&Qs|t}const Hi=new Set,Tr=new Set;function ea(e,t,n,r={}){function s(i){if(r.capture||qn.call(t,i),!i.cancelBubble)return Nr(()=>n?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?jn(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function E(e,t,n,r,s){var i={capture:r,passive:s},a=ea(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ni(()=>{t.removeEventListener(e,a,i)})}function ta(e){for(var t=0;t<e.length;t++)Hi.add(e[t]);for(var n of Tr)n(e)}let Yi=null;function qn(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Yi=e;var a=0,o=Yi===e&&e.__root;if(o){var l=s.indexOf(o);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=s.indexOf(t);if(u===-1)return;l<=u&&(a=l)}if(i=s[a]||e.target,i!==t){zn(e,"currentTarget",{configurable:!0,get(){return i||n}});var v=q,p=C;z(null),ve(null);try{for(var d,f=[];i!==null;){var N=i.assignedSlot||i.parentNode||i.host||null;try{var L=i["__"+r];L!=null&&(!i.disabled||e.target===i)&&L.call(i,e)}catch(j){d?f.push(j):d=j}if(e.cancelBubble||N===t||N===null)break;i=N}if(d){for(let j of f)queueMicrotask(()=>{throw j});throw d}}finally{e.__root=t,delete e.currentTarget,z(v),ve(p)}}}function na(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function $t(e,t){var n=C;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function x(e,t){var n=(t&ts)!==0,r=(t&ns)!==0,s,i=!e.startsWith("<!>");return()=>{if($)return $t(O,null),O;s===void 0&&(s=na(i?e:"<!>"+e),n||(s=Xt(s)));var a=r||yi?document.importNode(s,!0):s.cloneNode(!0);if(n){var o=Xt(a),l=a.lastChild;$t(o,l)}else $t(a,a);return a}}function ra(e=""){if(!$){var t=se(e+"");return $t(t,t),t}var n=O;return n.nodeType!==wr&&(n.before(n=se()),ne(n)),$t(n,n),n}function A(){if($)return $t(O,null),O;var e=document.createDocumentFragment(),t=document.createComment(""),n=se();return e.append(t,n),$t(t,n),e}function _(e,t){if($){var n=C;((n.f&Gn)===0||n.nodes_end===null)&&(n.nodes_end=O),yn();return}e!==null&&e.before(t)}const ia=["touchstart","touchmove"];function sa(e){return ia.includes(e)}function Ui(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function zi(e,t){return Wi(e,t)}function aa(e,t){kr(),t.intro=t.intro??!1;const n=t.target,r=$,s=O;try{for(var i=Xt(n);i&&(i.nodeType!==un||i.data!==Gr);)i=Le(i);if(!i)throw sn;ye(!0),ne(i);const a=Wi(e,{...t,anchor:i});return ye(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==sn&&console.warn("Failed to hydrate: ",a),t.recover===!1&&bs(),kr(),xi(n),ye(!1),zi(e,t)}finally{ye(r),ne(s)}}const hn=new Map;function Wi(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:a=!0}){kr();var o=new Set,l=p=>{for(var d=0;d<p.length;d++){var f=p[d];if(!o.has(f)){o.add(f);var N=sa(f);t.addEventListener(f,qn,{passive:N});var L=hn.get(f);L===void 0?(document.addEventListener(f,qn,{passive:N}),hn.set(f,1)):hn.set(f,L+1)}}};l(hr(Hi)),Tr.add(l);var u=void 0,v=Ys(()=>{var p=n??t.appendChild(se());return Ts(p,{pending:()=>{}},d=>{if(i){si({});var f=le;f.c=i}if(s&&(r.$$events=s),$&&$t(d,null),u=e(d,r)||{},$&&(C.nodes_end=O,O===null||O.nodeType!==un||O.data!==dr))throw Kn(),sn;i&&ai()}),()=>{for(var d of o){t.removeEventListener(d,qn);var f=hn.get(d);--f===0?(document.removeEventListener(d,qn),hn.delete(d)):hn.set(d,f)}Tr.delete(l),p!==n&&p.parentNode?.removeChild(p)}});return Cr.set(u,v),u}let Cr=new WeakMap;function oa(e,t){const n=Cr.get(e);return n?(Cr.delete(e),n(t)):Promise.resolve()}class la{anchor;#t=new Map;#e=new Map;#n=new Map;#r=new Set;#l=!0;constructor(t,n=!0){this.anchor=t,this.#l=n}#s=()=>{var t=D;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)Sr(r),this.#r.delete(n);else{var s=this.#n.get(n);s&&(this.#e.set(n,s.effect),this.#n.delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,a]of this.#t){if(this.#t.delete(i),i===t)break;const o=this.#n.get(a);o&&(G(o.effect),this.#n.delete(a))}for(const[i,a]of this.#e){if(i===n||this.#r.has(i))continue;const o=()=>{if(Array.from(this.#t.values()).includes(i)){var u=document.createDocumentFragment();Ri(a,u),u.append(se()),this.#n.set(i,{effect:a,fragment:u})}else G(a);this.#r.delete(i),this.#e.delete(i)};this.#l||!r?(this.#r.add(i),vn(a,o,!1)):o()}}};#i=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,s]of this.#n)n.includes(r)||(G(s.effect),this.#n.delete(r))};ensure(t,n){var r=D,s=ki();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(s){var i=document.createDocumentFragment(),a=se();i.append(a),this.#n.set(t,{effect:de(()=>n(a)),fragment:i})}else this.#e.set(t,de(()=>n(this.anchor)));if(this.#t.set(r,t),s){for(const[o,l]of this.#e)o===t?r.skipped_effects.delete(l):r.skipped_effects.add(l);for(const[o,l]of this.#n)o===t?r.skipped_effects.delete(l.effect):r.skipped_effects.add(l.effect);r.oncommit(this.#s),r.ondiscard(this.#i)}else $&&(this.anchor=O),this.#s()}}function k(e,t,n=!1){$&&yn();var r=new la(e),s=n?on:0;function i(a,o){if($){const u=ni(e)===Yn;if(a===u){var l=Xn();ne(l),r.anchor=l,ye(!1),r.ensure(a,o),ye(!0);return}}r.ensure(a,o)}$r(()=>{var a=!1;t((o,l=!0)=>{a=!0,i(l,o)}),a||i(!1,null)},s)}function Or(e,t,n,r,s){$&&yn();var i=t.$$slots?.[n],a=!1;i===!0&&(i=t[n==="default"?"children":n],a=!0),i===void 0?s!==null&&s(e):i(e,a?()=>r:r)}function ua(e,t){Us(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,r.appendChild(s)}})}function fa(e,t,n){var r=e==null?"":""+e;return r===""?null:r}function ca(e,t){return e==null?null:String(e)}function R(e,t,n,r,s,i){var a=e.__className;if($||a!==n||a===void 0){var o=fa(n);(!$||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=n}return i}function da(e,t,n,r){var s=e.__style;if($||s!==t){var i=ca(t);(!$||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return r}const va=Symbol("is custom element"),ha=Symbol("is html");function Ar(e,t,n,r){var s=_a(e);$&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=n)&&(t==="loading"&&(e[cs]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Gi(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function m(e,t,n){var r=q,s=C;let i=$;$&&ye(!1),z(null),ve(null);try{t!=="style"&&(Rr.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Gi(e).includes(t):n&&typeof n=="object")?e[t]=n:Ar(e,t,n==null?n:String(n))}finally{z(r),ve(s),i&&ye(!0)}}function _a(e){return e.__attributes??={[va]:e.nodeName.includes("-"),[ha]:e.namespaceURI===rs}}var Rr=new Map;function Gi(e){var t=e.getAttribute("is")||e.nodeName,n=Rr.get(t);if(n)return n;Rr.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=ss(s);for(var a in r)r[a].set&&n.push(a);s=Xr(s)}return n}function en(e,t,n,r){var s=r,i=!0,a=()=>(i&&(i=!1,s=r),s),o;o=e[t],o===void 0&&r!==void 0&&(o=a());var l;l=()=>{var d=e[t];return d===void 0?a():(i=!0,d)};var u=!1,v=tr(()=>(u=!1,l())),p=C;return(function(d,f){if(arguments.length>0){const N=f?c(v):d;return ie(v,N),u=!0,s!==void 0&&(s=N),d}return Zt&&u||(p.f&ht)!==0?v.v:c(v)})}function pa(e){return new ba(e)}class ba{#t;#e;constructor(t){var n=new Map,r=(i,a)=>{var o=mi(a,!1,!1);return n.set(i,o),o};const s=new Proxy({...t.props||{},$$events:{}},{get(i,a){return c(n.get(a)??r(a,Reflect.get(i,a)))},has(i,a){return a===fs?!0:(c(n.get(a)??r(a,Reflect.get(i,a))),Reflect.has(i,a))},set(i,a,o){return ie(n.get(a)??r(a,o),o),Reflect.set(i,a,o)}});this.#e=(t.hydrate?aa:zi)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&jt(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||zn(this,i,{get(){return this.#e[i]},set(a){this.#e[i]=a},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{oa(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...s)=>n.call(this,...s);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(s=>s!==r)}}$destroy(){this.#e.$destroy()}}let Ki;typeof HTMLElement=="function"&&(Ki=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{const i=document.createElement("slot");r!=="default"&&(i.name=r),_(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=ma(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=or(s,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=pa({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Hs(()=>{qi(()=>{this.$$r=!0;for(const r of Un(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=or(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=or(e,n,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 Un(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function or(e,t,n,r){const s=n[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(s){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(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ma(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function ga(e,t,n,r,s,i){let a=class extends Ki{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return Un(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Un(t).forEach(o=>{zn(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=or(o,l,t),this.$$d[o]=l;var u=this.$$c;if(u){var v=an(u,o)?.get;v?u[o]=l:u.$set({[o]:l})}}})}),r.forEach(o=>{zn(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}const X={version:"0.66.0"},wa=(e,t)=>e.reduce((n,r)=>{for(const s of t(r))(n[s]=n[s]||[]).push(r);return n},{});var tn={},Xi;function ya(){if(Xi)return tn;Xi=1,Object.defineProperty(tn,"__esModule",{value:!0}),tn.LanguageTranslator=void 0,tn.getChildStyleToPass=e,tn.addComponent=t;function e(r,s){var i,a,o="";try{if(r&&s?.length&&(!((i=Object.keys(r))===null||i===void 0)&&i.length)&&(!((a=s?.filter(function(d){return Object.keys(r).includes(d.name)}))===null||a===void 0)&&a.length))for(var l=function(d){var f=s?.filter(function(N){return N.name===d&&N.defaultValue!==r[d]});f&&(o+="".concat(d,":").concat(r[d],";"))},u=0,v=Object.keys(r);u<v.length;u++){var p=v[u];l(p)}}catch(d){console.error("error getting child style to pass",d)}finally{return o}}function t(r){var s,i=((s=r?.repoName.split("/"))===null||s===void 0?void 0:s[1])||r?.repoName;if(!i)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var a=r?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var o=document.createElement("script");if(o.id=i+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(a),r?.local)o.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var l=i.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(i.replace(l+"-",""),"/").concat(a)}document.head.appendChild(o)}catch(u){console.warn(u)}}var n=(function(){function r(s){if(this.lang="",!s?.dictionary)throw new Error("no dictionary provided");this.dictionary=s.dictionary,this.setLang(s?.lang)}return r.prototype.setLang=function(s){s||(s=r.getDefaultLang()),this.lang=s},r.prototype.translateWord=function(s,i){return r.getDictionaryWord(s,this.dictionary,i||this.lang)},r.prototype.translateDate=function(s,i,a){return r.formatDate(s,i,a||this.lang)},r.getDefaultLang=function(){var s,i,a,o="en";return navigator?.languages&&(!((a=(i=(s=navigator.languages[0])===null||s===void 0?void 0:s.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||a===void 0)&&a.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},r.getDictionaryWord=function(s,i,a){var o;if(!s)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(a&&(!((o=i[a])===null||o===void 0)&&o[s]))return i[a][s];var l="",u=r.getDefaultLang();if(!a||u!==a){var v=i?.[u];v?.[s]&&(l=v[s])}return l},r.formatDate=function(s,i,a){if(!s)throw new Error("no date provided");if(typeof s.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(a||r.getDefaultLang(),i);return o.format(s)},r})();return tn.LanguageTranslator=n,tn}var Z=ya(),ja=x('<label class="svelte-yjqjiw"> </label>'),Ea=x("<hb-input-array-objects></hb-input-array-objects>",2),xa=x("<hb-input-array-tags></hb-input-array-tags>",2),ka=x("<hb-input-text></hb-input-text>",2),Na=x("<hb-input-color></hb-input-color>",2),$a=x("<hb-input-range></hb-input-range>",2),qa=x("<hb-input-file></hb-input-file>",2),Sa=x("<hb-input-email></hb-input-email>",2),Ta=x("<hb-input-date></hb-input-date>",2),Ca=x("<hb-input-datetime></hb-input-datetime>",2),Oa=x("<hb-input-checkbox></hb-input-checkbox>",2),Aa=x("<hb-input-number></hb-input-number>",2),Ra=x("<hb-input-area></hb-input-area>",2),Ma=x("<hb-input-radio></hb-input-radio>",2),La=x("<hb-input-select></hb-input-select>",2),Da=x("<hb-input-coords></hb-input-coords>",2),Va=x('<div class="col mb-3 svelte-yjqjiw"><!> <!></div>'),Ia=x('<div class="row svelte-yjqjiw"></div>'),Pa=x('<label class="svelte-yjqjiw"> </label>'),Fa=x("<hb-input-text></hb-input-text>",2),Ja=x("<hb-input-array-objects></hb-input-array-objects>",2),Ba=x("<hb-input-array-tags></hb-input-array-tags>",2),Ha=x("<hb-input-color></hb-input-color>",2),Ya=x("<hb-input-range></hb-input-range>",2),Ua=x("<hb-input-file></hb-input-file>",2),za=x("<hb-input-email></hb-input-email>",2),Wa=x("<hb-input-date></hb-input-date>",2),Ga=x("<hb-input-datetime></hb-input-datetime>",2),Ka=x("<hb-input-checkbox></hb-input-checkbox>",2),Xa=x("<hb-input-number></hb-input-number>",2),Za=x("<hb-input-area></hb-input-area>",2),Qa=x("<hb-input-radio></hb-input-radio>",2),eo=x("<hb-input-select></hb-input-select>",2),to=x("<hb-input-coords></hb-input-coords>",2),no=x('<div class="col mb-3 svelte-yjqjiw"><!> <!></div>'),ro=x('<button part="main_button" type="button" class="btn btn-primary svelte-yjqjiw"><!></button>'),io=x('<div id="button_container" part="button_container" class="svelte-yjqjiw"><span class="svelte-yjqjiw"><!></span> <!></div>'),so=x("<!> <!>",1),ao=x('<div class="container-fluid svelte-yjqjiw"><!></div>');const oo={hash:"svelte-yjqjiw",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
6
6
  * Copyright 2011-2021 Twitter, Inc.
7
7
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
8
- */:host {--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #0d6efd;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 13, 110, 253;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-primary-text-emphasis: rgb(5.2, 44, 101.2);--bs-secondary-text-emphasis: rgb(43.2, 46.8, 50);--bs-success-text-emphasis: rgb(10, 54, 33.6);--bs-info-text-emphasis: rgb(5.2, 80.8, 96);--bs-warning-text-emphasis: rgb(102, 77.2, 2.8);--bs-danger-text-emphasis: rgb(88, 21.2, 27.6);--bs-light-text-emphasis: #495057;--bs-dark-text-emphasis: #495057;--bs-primary-bg-subtle: rgb(206.6, 226, 254.6);--bs-secondary-bg-subtle: rgb(225.6, 227.4, 229);--bs-success-bg-subtle: rgb(209, 231, 220.8);--bs-info-bg-subtle: rgb(206.6, 244.4, 252);--bs-warning-bg-subtle: rgb(255, 242.6, 205.4);--bs-danger-bg-subtle: rgb(248, 214.6, 217.8);--bs-light-bg-subtle: rgb(251.5, 252, 252.5);--bs-dark-bg-subtle: #ced4da;--bs-primary-border-subtle: rgb(158.2, 197, 254.2);--bs-secondary-border-subtle: rgb(196.2, 199.8, 203);--bs-success-border-subtle: rgb(163, 207, 186.6);--bs-info-border-subtle: rgb(158.2, 233.8, 249);--bs-warning-border-subtle: rgb(255, 230.2, 155.8);--bs-danger-border-subtle: rgb(241, 174.2, 180.6);--bs-light-border-subtle: #e9ecef;--bs-dark-border-subtle: #adb5bd;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg: #fff;--bs-body-bg-rgb: 255, 255, 255;--bs-emphasis-color: #000;--bs-emphasis-color-rgb: 0, 0, 0;--bs-secondary-color: rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb: 33, 37, 41;--bs-secondary-bg: #e9ecef;--bs-secondary-bg-rgb: 233, 236, 239;--bs-tertiary-color: rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb: 33, 37, 41;--bs-tertiary-bg: #f8f9fa;--bs-tertiary-bg-rgb: 248, 249, 250;--bs-heading-color: inherit;--bs-link-color: #0d6efd;--bs-link-color-rgb: 13, 110, 253;--bs-link-decoration: underline;--bs-link-hover-color: rgb(10.4, 88, 202.4);--bs-link-hover-color-rgb: 10, 88, 202;--bs-code-color: #d63384;--bs-highlight-color: #212529;--bs-highlight-bg: rgb(255, 242.6, 205.4);--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, 0.175);--bs-border-radius: 0.375rem;--bs-border-radius-sm: 0.25rem;--bs-border-radius-lg: 0.5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-xxl: 2rem;--bs-border-radius-2xl: var(--bs-border-radius-xxl);--bs-border-radius-pill: 50rem;--bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width: 0.25rem;--bs-focus-ring-opacity: 0.25;--bs-focus-ring-color: rgba(13, 110, 253, 0.25);--bs-form-valid-color: #198754;--bs-form-valid-border-color: #198754;--bs-form-invalid-color: #dc3545;--bs-form-invalid-border-color: #dc3545;}.svelte-yjqjiw,
8
+ */.svelte-yjqjiw,
9
9
  .svelte-yjqjiw::before,
10
10
  .svelte-yjqjiw::after {box-sizing:border-box;}
11
11
  @media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
@@ -95,5 +95,5 @@ button.svelte-yjqjiw {margin:0;font-family:inherit;font-size:inherit;line-height
95
95
  @media (min-width: 1200px) {
96
96
  }
97
97
  @media (min-width: 1400px) {
98
- }:host {font-family:"Roboto", sans-serif;}`};function as(e,t){vi(t,!0),ya(e,mo);Et({});let r=I(""),n=I(""),i=I(""),s=I(""),a=I(""),l=I(""),o=I(""),f=I(""),d=I(""),g=I(""),c=I(""),v=I(""),$=I(""),F=I(""),j=I("");const P={row:{component:void 0,options:{row:!0}},select:{component:"hb-input-select"},arrayobjects:{component:"hb-input-array-objects"},arraytags:{component:"hb-input-array-tags"},date:{component:"hb-input-date"},datetime:{component:"hb-input-datetime"},text:{component:"hb-input-text"},number:{component:"hb-input-number"},email:{component:"hb-input-email"},color:{component:"hb-input-color"},file:{component:"hb-input-file"},textarea:{component:"hb-input-area"},range:{component:"hb-input-range"},checkbox:{component:"hb-input-checkbox",options:{labelIsHandledByComponent:!0}},radio:{component:"hb-input-radio"},coords:{component:"hb-input-coords"}};let B=on(()=>{const b={};for(const y of q())if(y.type!=="row")b[y.id]=y.value;else if(y.type==="row"&&y.params?.columns?.length)for(const U of y.params.columns)b[U.id]=U.value;return b}),Pe=sr(t,"id",7,""),q=sr(t,"schema"),Fe=sr(t,"i18nlang"),k=sr(t,"show_validation",7,"no"),K=sr(t,"hide_submit",7,!1),te=sr(t,"submitted",7,"no"),St=sr(t,"getvals",7,"no"),H=I(Et({})),oe=I(Et({})),S=I(Et({})),Nt=on(()=>{const b=[];for(const y of q())y.type==="row"&&y.params?.columns?.length?b.push(...y.params.columns):b.push(y);return qa(b.filter(y=>y.dependencies?.length),y=>y.dependencies.map(U=>U.id))});function fe(b){b?.forEach?.(y=>{const U=P[y.type];if(!U)throw new Error(`FormRenderer: Tried to render an unknown component type ${y.type}!`);U.options?.row&&fe(y.params?.columns??[]),u(H)[y.id]=u(H)[y.id]||!y.dependencies?.length})}function Or(b){return b?.map?.(y=>{const U=P[y.type];if(!U)throw new Error(`FormRenderer: Tried to render an unknown component type ${y.type}!`);return U.options?.row?{entry:y,columns:Or(y.params?.columns??[]),options:U.options}:{entry:y,component:U.component,options:U.options||{}}})||[]}let vn=on(()=>Or(q()));K()===!0||K()==="yes"||K()==="true"?K(!0):K(!1),q()||console.warn("no schema provided"),ea(()=>{if(typeof q()=="string")try{q(JSON.parse(q())),ve(oe,{},!0),ve(S,{},!0),ve(H,{},!0),te()&&te()==="yes"&&q()&&typeof q()!="string"?ce():te()==="yes"&&te("no"),console.log("effectform"),fe(q())}catch(b){console.error("error with schema",q(),b)}});let or=on(()=>!u(oe)||!Object.entries(u(oe))?.length?!0:!!Object.entries(u(oe)).find(([b,y])=>!y&&u(H)&&u(H)[b]));const Fn=b=>{console.log("canShow",b);for(const y of b.dependencies||[])if(u(H)&&!u(H)[y.id]||u(B)&&!u(B)[y.id]||u(B)&&y?.values&&!y?.values?.includes(u(B)[y.id]))return!1;return!0},os=b=>{Fn(b)?go(b,b.value):ls(b)},go=(b,y)=>{u(H)[b.id]=!0,b.type!=="row"&&(u(B)[b.id]=u(S)[b.id]??y);for(const U of u(Nt)[b.id]||[])os(U)},ls=b=>{u(H)[b.id]=!1,delete u(B)[b.id];for(const y of u(Nt)[b.id]||[])ls(y)};ae.addComponent({repoName:"@htmlbricks/hb-input-text",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-date",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-email",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-checkbox",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-number",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-area",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-radio",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-select",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-file",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-color",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-range",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-datetime",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-array-objects",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-array-tags",version:se.version}),ae.addComponent({repoName:"@htmlbricks/hb-input-coords",version:se.version});let Jn=I(void 0);function us(b,y){b==="update"?(console.log("update",y),u(Jn)&&clearTimeout(u(Jn)),ve(Jn,setTimeout(()=>{t.$$host.dispatchEvent(new CustomEvent(b,{detail:y}))},300),!0)):t.$$host.dispatchEvent(new CustomEvent(b,{detail:y}))}const ce=()=>{if(console.log("submitting form"),k("yes"),te("no"),console.log(u(or),JSON.stringify(u(oe)),u(H),u(B)),u(or))return console.warn("Form is invalid");const b=Object.assign({_valid:!u(or)},u(B));us("submit",b)};function V(b){console.info("setValByMessage",b);let y;if(u(S)[b.id]!==b.value){if(u(S)[b.id]=b.value,u(H)[b.id]&&(u(B)[b.id]=b.value),u(Nt)[b.id])for(const U of u(Nt)[b.id])os(U);y=Object.assign({_valid:!u(or),_id:Pe()},u(B))}u(oe)[b.id]!==b.valid&&(u(oe)[b.id]=b.valid,y=Object.assign({_valid:!u(or),_id:Pe()},u(B))),y&&us("update",y)}var yo={get id(){return Pe()},set id(b=""){Pe(b),Ot()},get schema(){return q()},set schema(b){q(b),Ot()},get i18nlang(){return Fe()},set i18nlang(b){Fe(b),Ot()},get show_validation(){return k()},set show_validation(b="no"){k(b),Ot()},get hide_submit(){return K()},set hide_submit(b=!1){K(b),Ot()},get submitted(){return te()},set submitted(b="no"){te(b),Ot()},get getvals(){return St()},set getvals(b="no"){St(b),Ot()}},Bn=po(),wo=Rt(Bn);{var jo=b=>{var y=_o(),U=O(y);ji(U,17,()=>u(vn),({entry:lr,component:Tt,options:m,columns:z})=>lr.id,(lr,Tt)=>{let m=()=>u(Tt).entry,z=()=>u(Tt).component,hn=()=>u(Tt).options,Ar=()=>u(Tt).columns;var yr=M(),Hn=O(yr);{var Un=wr=>{var Dt=Ga();ji(Dt,21,Ar,({entry:Rr,component:jr,options:Mr})=>Rr.id,(Rr,jr,Mr,bn)=>{let w=()=>u(jr).entry,W=()=>u(jr).component,zn=()=>u(jr).options;var _n=M(),Wn=O(_n);{var xe=Y=>{var at=Wa(),pn=Rt(at);{var Gn=Ee=>{var re=Oa(),ke=Rt(re);jt(re),_(()=>{In(re,"for",w().id),es(ke,`${w().label??""}${w().required?"*":""}`)}),h(Ee,re)};N(pn,Ee=>{zn().labelIsHandledByComponent||Ee(Gn)})}var Vt=ln(pn,2);{var Je=Ee=>{var re=Aa();L(re,u($)),_(()=>p(re,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(re,"show_validation",k())),D(re,1,"svelte-yjqjiw"),x("setVal",re,ke=>V(ke.detail)),h(Ee,re)},Lr=Ee=>{var re=M(),ke=O(re);{var Be=It=>{var He=Ra();L(He,u(F)),_(()=>p(He,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(He,"show_validation",k())),D(He,1,"svelte-yjqjiw"),x("setVal",He,ot=>V(ot.detail)),h(It,He)},Dr=It=>{var He=M(),ot=O(He);{var Ue=Pt=>{var Se=Ma();L(Se,u(a)),_(()=>p(Se,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(Se,"show_validation",k())),D(Se,1,"svelte-yjqjiw"),x("setVal",Se,lt=>V(lt.detail)),x("clickEnter",Se,()=>ce()),h(Pt,Se)},Vr=Pt=>{var Se=M(),lt=O(Se);{var Ye=Ft=>{var ze=La();L(ze,u(f)),_(()=>p(ze,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(ze,"show_validation",k())),D(ze,1,"svelte-yjqjiw"),x("setVal",ze,ut=>V(ut.detail)),h(Ft,ze)},Ir=Ft=>{var ze=M(),ut=O(ze);{var We=Jt=>{var Ge=Da();L(Ge,u(v)),_(()=>p(Ge,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(Ge,"show_validation",k())),D(Ge,1,"svelte-yjqjiw"),x("setVal",Ge,ft=>V(ft.detail)),h(Jt,Ge)},Pr=Jt=>{var Ge=M(),ft=O(Ge);{var Ne=Bt=>{var Ke=Va();L(Ke,u(d)),_(()=>p(Ke,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(Ke,"show_validation",k())),D(Ke,1,"svelte-yjqjiw"),x("setVal",Ke,ct=>V(ct.detail)),h(Bt,Ke)},Fr=Bt=>{var Ke=M(),ct=O(Ke);{var Te=Ht=>{var $e=Ia();L($e,u(o)),_(()=>p($e,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p($e,"show_validation",k())),D($e,1,"svelte-yjqjiw"),x("setVal",$e,dt=>V(dt.detail)),x("clickEnter",$e,()=>ce()),h(Ht,$e)},Jr=Ht=>{var $e=M(),dt=O($e);{var qe=Ut=>{var Ce=Pa();L(Ce,u(n)),_(()=>p(Ce,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(Ce,"show_validation",k())),D(Ce,1,"svelte-yjqjiw"),x("setVal",Ce,vt=>V(vt.detail)),x("clickEnter",Ce,()=>ce()),h(Ut,Ce)},Br=Ut=>{var Ce=M(),vt=O(Ce);{var Xe=Yt=>{var Oe=Fa();L(Oe,u(i)),_(()=>p(Oe,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(Oe,"show_validation",k())),D(Oe,1,"svelte-yjqjiw"),x("setVal",Oe,ht=>V(ht.detail)),x("clickEnter",Oe,()=>ce()),h(Yt,Oe)},Hr=Yt=>{var Oe=M(),ht=O(Oe);{var Ae=zt=>{var Ze=Ja();L(Ze,u(g)),D(Ze,1,"checkbox-inline svelte-yjqjiw"),_(()=>p(Ze,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(Ze,"show_validation",k())),x("setVal",Ze,bt=>V(bt.detail)),h(zt,Ze)},Ur=zt=>{var Ze=M(),bt=O(Ze);{var Re=Wt=>{var Me=Ba();L(Me,u(l)),_(()=>p(Me,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(Me,"show_validation",k())),D(Me,1,"svelte-yjqjiw"),x("setVal",Me,_t=>V(_t.detail)),x("clickEnter",Me,()=>ce()),h(Wt,Me)},Yr=Wt=>{var Me=M(),_t=O(Me);{var Qe=Gt=>{var Le=Ha();L(Le,u(s)),_(()=>p(Le,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(Le,"show_validation",k())),D(Le,1,"svelte-yjqjiw"),x("setVal",Le,pt=>V(pt.detail)),x("clickEnter",Le,()=>ce()),h(Gt,Le)},zr=Gt=>{var Le=M(),pt=O(Le);{var et=Kt=>{var _e=Ua();L(_e,u(c)),_(()=>p(_e,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(_e,"show_validation",k())),D(_e,1,"svelte-yjqjiw"),x("setVal",_e,tt=>V(tt.detail)),h(Kt,_e)},Wr=Kt=>{var _e=M(),tt=O(_e);{var Kn=xr=>{var $t=Ya();L($t,u(r)),_(()=>p($t,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p($t,"show_validation",k())),D($t,1,"svelte-yjqjiw"),x("setVal",$t,Xn=>V(Xn.detail)),h(xr,$t)},ko=xr=>{var $t=M(),Xn=O($t);{var So=Zn=>{var ur=za();L(ur,u(j)),_(()=>p(ur,"schemaentry",JSON.stringify({...w(),value:u(S)[w().id]??w().value}))),_(()=>p(ur,"i18nlang",Fe())),_(()=>p(ur,"show_validation",k())),D(ur,1,"svelte-yjqjiw"),x("setVal",ur,No=>V(No.detail)),h(Zn,ur)};N(Xn,Zn=>{W()==="hb-input-coords"&&Zn(So)},!0)}h(xr,$t)};N(tt,xr=>{W()==="hb-input-select"?xr(Kn):xr(ko,!1)},!0)}h(Kt,_e)};N(pt,Kt=>{W()==="hb-input-radio"?Kt(et):Kt(Wr,!1)},!0)}h(Gt,Le)};N(_t,Gt=>{W()==="hb-input-area"?Gt(Qe):Gt(zr,!1)},!0)}h(Wt,Me)};N(bt,Wt=>{W()==="hb-input-number"?Wt(Re):Wt(Yr,!1)},!0)}h(zt,Ze)};N(ht,zt=>{W()==="hb-input-checkbox"?zt(Ae):zt(Ur,!1)},!0)}h(Yt,Oe)};N(vt,Yt=>{W()==="hb-input-datetime"?Yt(Xe):Yt(Hr,!1)},!0)}h(Ut,Ce)};N(dt,Ut=>{W()==="hb-input-date"?Ut(qe):Ut(Br,!1)},!0)}h(Ht,$e)};N(ct,Ht=>{W()==="hb-input-email"?Ht(Te):Ht(Jr,!1)},!0)}h(Bt,Ke)};N(ft,Bt=>{W()==="hb-input-file"?Bt(Ne):Bt(Fr,!1)},!0)}h(Jt,Ge)};N(ut,Jt=>{W()==="hb-input-range"?Jt(We):Jt(Pr,!1)},!0)}h(Ft,ze)};N(lt,Ft=>{W()==="hb-input-color"?Ft(Ye):Ft(Ir,!1)},!0)}h(Pt,Se)};N(ot,Pt=>{W()==="hb-input-text"?Pt(Ue):Pt(Vr,!1)},!0)}h(It,He)};N(ke,It=>{W()==="hb-input-array-tags"?It(Be):It(Dr,!1)},!0)}h(Ee,re)};N(Vt,Ee=>{W()==="hb-array-objects"?Ee(Je):Ee(Lr,!1)})}jt(at),_(()=>L(at,W()==="hb-input-checkbox"?"line-height:52px;":"")),h(Y,at)};N(Wn,Y=>{u(H)[w().id]&&Y(xe)})}h(Rr,_n)}),jt(Dt),h(wr,Dt)},Yn=wr=>{var Dt=M(),Rr=O(Dt);{var jr=Mr=>{var bn=vo(),w=Rt(bn);{var W=xe=>{var Y=Ka(),at=Rt(Y);jt(Y),_(()=>{In(Y,"for",m().id),es(at,`${m().label??""}${m().required?"*":""}`)}),h(xe,Y)};N(w,xe=>{hn()?.labelIsHandledByComponent||xe(W)})}var zn=ln(w,2);{var _n=xe=>{var Y=Xa();L(Y,u(a)),_(()=>p(Y,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Y,"show_validation",k())),D(Y,1,"svelte-yjqjiw"),x("setVal",Y,at=>V(at.detail)),x("clickEnter",Y,()=>ce()),h(xe,Y)},Wn=xe=>{var Y=M(),at=O(Y);{var pn=Vt=>{var Je=Za();L(Je,u($)),_(()=>p(Je,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Je,"show_validation",k())),D(Je,1,"svelte-yjqjiw"),x("setVal",Je,Lr=>V(Lr.detail)),h(Vt,Je)},Gn=Vt=>{var Je=M(),Lr=O(Je);{var Ee=ke=>{var Be=Qa();L(Be,u(F)),_(()=>p(Be,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Be,"show_validation",k())),D(Be,1,"svelte-yjqjiw"),x("setVal",Be,Dr=>V(Dr.detail)),h(ke,Be)},re=ke=>{var Be=M(),Dr=O(Be);{var It=ot=>{var Ue=eo();L(Ue,u(f)),_(()=>p(Ue,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Ue,"show_validation",k())),D(Ue,1,"svelte-yjqjiw"),x("setVal",Ue,Vr=>V(Vr.detail)),h(ot,Ue)},He=ot=>{var Ue=M(),Vr=O(Ue);{var Pt=lt=>{var Ye=to();L(Ye,u(v)),_(()=>p(Ye,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Ye,"show_validation",k())),D(Ye,1,"svelte-yjqjiw"),x("setVal",Ye,Ir=>V(Ir.detail)),h(lt,Ye)},Se=lt=>{var Ye=M(),Ir=O(Ye);{var Ft=ut=>{var We=ro();L(We,u(d)),_(()=>p(We,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(We,"show_validation",k())),D(We,1,"svelte-yjqjiw"),x("setVal",We,Pr=>V(Pr.detail)),h(ut,We)},ze=ut=>{var We=M(),Pr=O(We);{var Jt=ft=>{var Ne=no();L(Ne,u(o)),_(()=>p(Ne,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Ne,"show_validation",k())),D(Ne,1,"svelte-yjqjiw"),x("setVal",Ne,Fr=>V(Fr.detail)),x("clickEnter",Ne,()=>ce()),h(ft,Ne)},Ge=ft=>{var Ne=M(),Fr=O(Ne);{var Bt=ct=>{var Te=io();L(Te,u(n)),_(()=>p(Te,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Te,"show_validation",k())),D(Te,1,"svelte-yjqjiw"),x("setVal",Te,Jr=>V(Jr.detail)),x("clickEnter",Te,()=>ce()),h(ct,Te)},Ke=ct=>{var Te=M(),Jr=O(Te);{var Ht=dt=>{var qe=so();L(qe,u(n)),_(()=>p(qe,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(qe,"show_validation",k())),D(qe,1,"svelte-yjqjiw"),x("setVal",qe,Br=>V(Br.detail)),x("clickEnter",qe,()=>ce()),h(dt,qe)},$e=dt=>{var qe=M(),Br=O(qe);{var Ut=vt=>{var Xe=ao();L(Xe,u(g)),_(()=>p(Xe,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Xe,"show_validation",k())),D(Xe,1,"svelte-yjqjiw"),x("setVal",Xe,Hr=>V(Hr.detail)),h(vt,Xe)},Ce=vt=>{var Xe=M(),Hr=O(Xe);{var Yt=ht=>{var Ae=oo();L(Ae,u(l)),_(()=>p(Ae,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Ae,"show_validation",k())),D(Ae,1,"svelte-yjqjiw"),x("setVal",Ae,Ur=>V(Ur.detail)),x("clickEnter",Ae,()=>ce()),h(ht,Ae)},Oe=ht=>{var Ae=M(),Ur=O(Ae);{var zt=bt=>{var Re=lo();L(Re,u(s)),_(()=>p(Re,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Re,"show_validation",k())),D(Re,1,"svelte-yjqjiw"),x("setVal",Re,Yr=>V(Yr.detail)),x("clickEnter",Re,()=>ce()),h(bt,Re)},Ze=bt=>{var Re=M(),Yr=O(Re);{var Wt=_t=>{var Qe=uo();L(Qe,u(c)),_(()=>p(Qe,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(Qe,"show_validation",k())),D(Qe,1,"svelte-yjqjiw"),x("setVal",Qe,zr=>V(zr.detail)),h(_t,Qe)},Me=_t=>{var Qe=M(),zr=O(Qe);{var Gt=pt=>{var et=fo();L(et,u(r)),_(()=>p(et,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(et,"show_validation",k())),D(et,1,"svelte-yjqjiw"),x("setVal",et,Wr=>V(Wr.detail)),h(pt,et)},Le=pt=>{var et=M(),Wr=O(et);{var Kt=_e=>{var tt=co();L(tt,u(j)),_(()=>p(tt,"schemaentry",JSON.stringify({...m(),value:u(S)[m().id]??m().value},null,0))),_(()=>p(tt,"i18nlang",Fe())),_(()=>p(tt,"show_validation",k())),D(tt,1,"svelte-yjqjiw"),x("setVal",tt,Kn=>V(Kn.detail)),h(_e,tt)};N(Wr,_e=>{z()==="hb-input-coords"&&_e(Kt)},!0)}h(pt,et)};N(zr,pt=>{z()==="hb-input-select"?pt(Gt):pt(Le,!1)},!0)}h(_t,Qe)};N(Yr,_t=>{z()==="hb-input-radio"?_t(Wt):_t(Me,!1)},!0)}h(bt,Re)};N(Ur,bt=>{z()==="hb-input-area"?bt(zt):bt(Ze,!1)},!0)}h(ht,Ae)};N(Hr,ht=>{z()==="hb-input-number"?ht(Yt):ht(Oe,!1)},!0)}h(vt,Xe)};N(Br,vt=>{z()==="hb-input-checkbox"?vt(Ut):vt(Ce,!1)},!0)}h(dt,qe)};N(Jr,dt=>{z()==="hb-input-datetime"?dt(Ht):dt($e,!1)},!0)}h(ct,Te)};N(Fr,ct=>{z()==="hb-input-date"?ct(Bt):ct(Ke,!1)},!0)}h(ft,Ne)};N(Pr,ft=>{z()==="hb-input-email"?ft(Jt):ft(Ge,!1)},!0)}h(ut,We)};N(Ir,ut=>{z()==="hb-input-file"?ut(Ft):ut(ze,!1)},!0)}h(lt,Ye)};N(Vr,lt=>{z()==="hb-input-range"?lt(Pt):lt(Se,!1)},!0)}h(ot,Ue)};N(Dr,ot=>{z()==="hb-input-color"?ot(It):ot(He,!1)},!0)}h(ke,Be)};N(Lr,ke=>{z()==="hb-input-array-tags"?ke(Ee):ke(re,!1)},!0)}h(Vt,Je)};N(at,Vt=>{z()==="hb-input-array-objects"?Vt(pn):Vt(Gn,!1)},!0)}h(xe,Y)};N(zn,xe=>{z()==="hb-input-text"?xe(_n):xe(Wn,!1)})}jt(bn),h(Mr,bn)};N(Rr,Mr=>{u(H)&&u(H)[m().id]&&Mr(jr)},!0)}h(wr,Dt)};N(Hn,wr=>{hn()?.row&&(u(H)[m().id]||u(H)[m().id]!==!1)&&Ar()?.length&&Ar().some(Dt=>u(H)[Dt.entry.id])?wr(Un):wr(Yn,!1)})}h(lr,yr)});var xo=ln(U,2);{var Eo=lr=>{var Tt=bo(),m=Rt(Tt);m.__click=()=>ce();var z=Rt(m);Vn(z,t,"submit_button",{},Ar=>{var yr=ho(),Hn=Rt(yr);Vn(Hn,t,"submit_label",{},Un=>{var Yn=ha("Submit");h(Un,Yn)}),jt(yr),h(Ar,yr)}),jt(m);var hn=ln(m,2);Vn(hn,t,"other_buttons",{},null),jt(Tt),h(lr,Tt)};N(xo,lr=>{K()||lr(Eo)})}h(b,y)};N(wo,b=>{q()&&typeof q()=="object"&&q()?.length&&b(jo)})}return jt(Bn),h(e,Bn),hi(yo)}da(["click"]),customElements.define("hb-form",$a(as,{id:{},schema:{},i18nlang:{},show_validation:{},hide_submit:{},submitted:{},getvals:{}},["submit_button","submit_label","other_buttons"],[],!0)),Qn.Component=as,Object.defineProperty(Qn,Symbol.toStringTag,{value:"Module"})})(this.form=this.form||{});
98
+ }:host {font-family:"Roboto", sans-serif;}`};function Zi(e,t){si(t,!0),ua(e,oo);const n={row:{component:void 0,options:{row:!0}},select:{component:"hb-input-select"},arrayobjects:{component:"hb-input-array-objects"},arraytags:{component:"hb-input-array-tags"},date:{component:"hb-input-date"},datetime:{component:"hb-input-datetime"},text:{component:"hb-input-text"},number:{component:"hb-input-number"},email:{component:"hb-input-email"},color:{component:"hb-input-color"},file:{component:"hb-input-file"},textarea:{component:"hb-input-area"},range:{component:"hb-input-range"},checkbox:{component:"hb-input-checkbox",options:{labelIsHandledByComponent:!0}},radio:{component:"hb-input-radio"},coords:{component:"hb-input-coords"}};let r=nr(()=>{const h={};for(const w of i())if(w.type!=="row")h[w.id]=w.value;else if(w.type==="row"&&w.params?.columns?.length)for(const V of w.params.columns)h[V.id]=V.value;return h}),s=en(t,"id",7,""),i=en(t,"schema"),a=en(t,"i18nlang"),o=en(t,"show_validation",7,"no"),l=en(t,"hide_submit",7,!1),u=en(t,"submitted",7,"no"),v=en(t,"getvals",7,"no"),p=ce(xt({})),d=ce(xt({})),f=ce(xt({})),N=nr(()=>{const h=[];for(const w of i())w.type==="row"&&w.params?.columns?.length?h.push(...w.params.columns):h.push(w);return wa(h.filter(w=>w.dependencies?.length),w=>w.dependencies.map(V=>V.id))});function L(h){h?.forEach?.(w=>{const V=n[w.type];if(!V)throw new Error(`FormRenderer: Tried to render an unknown component type ${w.type}!`);V.options?.row&&L(w.params?.columns??[]),c(p)[w.id]=c(p)[w.id]||!w.dependencies?.length})}function j(h){return h?.map?.(w=>{const V=n[w.type];if(!V)throw new Error(`FormRenderer: Tried to render an unknown component type ${w.type}!`);return V.options?.row?{entry:w,columns:j(w.params?.columns??[]),options:V.options}:{entry:w,component:V.component,options:V.options||{}}})||[]}let M=nr(()=>j(i()));l()===!0||l()==="yes"||l()==="true"?l(!0):l(!1),i()||console.warn("no schema provided"),Bs(()=>{if(typeof i()=="string")try{i(JSON.parse(i())),ie(d,{},!0),ie(f,{},!0),ie(p,{},!0),u()&&u()==="yes"&&i()&&typeof i()!="string"?P():u()==="yes"&&u("no"),console.log("effectform"),L(i())}catch(h){console.error("error with schema",i(),h)}});let Q=nr(()=>!c(d)||!Object.entries(c(d))?.length?!0:!!Object.entries(c(d)).find(([h,w])=>!w&&c(p)&&c(p)[h]));const qt=h=>{console.log("canShow",h);for(const w of h.dependencies||[])if(c(p)&&!c(p)[w.id]||c(r)&&!c(r)[w.id]||c(r)&&w?.values&&!w?.values?.includes(c(r)[w.id]))return!1;return!0},I=h=>{qt(h)?St(h,h.value):Tt(h)},St=(h,w)=>{c(p)[h.id]=!0,h.type!=="row"&&(c(r)[h.id]=c(f)[h.id]??w);for(const V of c(N)[h.id]||[])I(V)},Tt=h=>{c(p)[h.id]=!1,delete c(r)[h.id];for(const w of c(N)[h.id]||[])Tt(w)};Z.addComponent({repoName:"@htmlbricks/hb-input-text",version:X.version}),Z.addComponent({repoName:"@htmlbricks/hb-input-date",version:X.version}),Z.addComponent({repoName:"@htmlbricks/hb-input-email",version:X.version}),Z.addComponent({repoName:"@htmlbricks/hb-input-checkbox",version:X.version}),Z.addComponent({repoName:"@htmlbricks/hb-input-number",version:X.version}),Z.addComponent({repoName:"@htmlbricks/hb-input-area",version:X.version}),Z.addComponent({repoName:"@htmlbricks/hb-input-radio",version:X.version}),Z.addComponent({repoName:"@htmlbricks/hb-input-select",version:X.version}),Z.addComponent({repoName:"@htmlbricks/hb-input-file",version:X.version}),Z.addComponent({repoName:"@htmlbricks/hb-input-color",version:X.version}),Z.addComponent({repoName:"@htmlbricks/hb-input-range",version:X.version}),Z.addComponent({repoName:"@htmlbricks/hb-input-datetime",version:X.version}),Z.addComponent({repoName:"@htmlbricks/hb-input-array-objects",version:X.version}),Z.addComponent({repoName:"@htmlbricks/hb-input-array-tags",version:X.version}),Z.addComponent({repoName:"@htmlbricks/hb-input-coords",version:X.version});let _e=ce(void 0);function Ee(h,w){h==="update"?(console.log("update",w),c(_e)&&clearTimeout(c(_e)),ie(_e,setTimeout(()=>{t.$$host.dispatchEvent(new CustomEvent(h,{detail:w}))},300),!0)):t.$$host.dispatchEvent(new CustomEvent(h,{detail:w}))}const P=()=>{if(console.log("submitting form"),o("yes"),u("no"),console.log(c(Q),JSON.stringify(c(d)),c(p),c(r)),c(Q))return console.warn("Form is invalid");const h=Object.assign({_valid:!c(Q)},c(r));Ee("submit",h)};function S(h){console.info("setValByMessage",h);let w;if(c(f)[h.id]!==h.value){if(c(f)[h.id]=h.value,c(p)[h.id]&&(c(r)[h.id]=h.value),c(N)[h.id])for(const V of c(N)[h.id])I(V);w=Object.assign({_valid:!c(Q),_id:s()},c(r))}c(d)[h.id]!==h.valid&&(c(d)[h.id]=h.valid,w=Object.assign({_valid:!c(Q),_id:s()},c(r))),w&&Ee("update",w)}var mt={get id(){return s()},set id(h=""){s(h),jt()},get schema(){return i()},set schema(h){i(h),jt()},get i18nlang(){return a()},set i18nlang(h){a(h),jt()},get show_validation(){return o()},set show_validation(h="no"){o(h),jt()},get hide_submit(){return l()},set hide_submit(h=!1){l(h),jt()},get submitted(){return u()},set submitted(h="no"){u(h),jt()},get getvals(){return v()},set getvals(h="no"){v(h),jt()}},nn=ao(),_n=kt(nn);{var oe=h=>{var w=so(),V=T(w);hi(V,17,()=>c(M),({entry:rn,component:gt,options:g,columns:F})=>rn.id,(rn,gt)=>{let g=()=>c(gt).entry,F=()=>c(gt).component,lr=()=>c(gt).options,Sn=()=>c(gt).columns;var pn=A(),Lr=T(pn);{var Dr=bn=>{var Ct=Ia();hi(Ct,21,Sn,({entry:Tn,component:mn,options:Cn})=>Tn.id,(Tn,mn,Cn,ur)=>{let y=()=>c(mn).entry,J=()=>c(mn).component,Ir=()=>c(mn).options;var fr=A(),Pr=T(fr);{var pe=B=>{var Ie=Va(),cr=kt(Ie);{var Fr=be=>{var ee=ja(),me=kt(ee);_t(ee),b(()=>{Ar(ee,"for",y().id),Ui(me,`${y().label??""}${y().required?"*":""}`)}),_(be,ee)};k(cr,be=>{Ir().labelIsHandledByComponent||be(Fr)})}var Ot=rr(cr,2);{var Pe=be=>{var ee=Ea();b(()=>m(ee,"schemaentry",JSON.stringify({...y(),value:c(f)[y().id]??y().value}))),b(()=>m(ee,"show_validation",o())),R(ee,1,"svelte-yjqjiw"),E("setVal",ee,me=>S(me.detail)),_(be,ee)},On=be=>{var ee=A(),me=T(ee);{var Fe=At=>{var Je=xa();b(()=>m(Je,"schemaentry",JSON.stringify({...y(),value:c(f)[y().id]??y().value}))),b(()=>m(Je,"show_validation",o())),R(Je,1,"svelte-yjqjiw"),E("setVal",Je,Be=>S(Be.detail)),_(At,Je)},An=At=>{var Je=A(),Be=T(Je);{var He=Rt=>{var xe=ka();b(()=>m(xe,"schemaentry",JSON.stringify({...y(),value:c(f)[y().id]??y().value}))),b(()=>m(xe,"show_validation",o())),R(xe,1,"svelte-yjqjiw"),E("setVal",xe,Ye=>S(Ye.detail)),E("clickEnter",xe,()=>P()),_(Rt,xe)},Rn=Rt=>{var xe=A(),Ye=T(xe);{var Ue=Mt=>{var ze=Na();b(()=>m(ze,"schemaentry",JSON.stringify({...y(),value:c(f)[y().id]??y().value}))),b(()=>m(ze,"show_validation",o())),R(ze,1,"svelte-yjqjiw"),E("setVal",ze,We=>S(We.detail)),_(Mt,ze)},Mn=Mt=>{var ze=A(),We=T(ze);{var Ge=Lt=>{var Ke=$a();b(()=>m(Ke,"schemaentry",JSON.stringify({...y(),value:c(f)[y().id]??y().value}))),b(()=>m(Ke,"show_validation",o())),R(Ke,1,"svelte-yjqjiw"),E("setVal",Ke,Xe=>S(Xe.detail)),_(Lt,Ke)},Ln=Lt=>{var Ke=A(),Xe=T(Ke);{var ke=Dt=>{var Ze=qa();b(()=>m(Ze,"schemaentry",JSON.stringify({...y(),value:c(f)[y().id]??y().value}))),b(()=>m(Ze,"show_validation",o())),R(Ze,1,"svelte-yjqjiw"),E("setVal",Ze,Qe=>S(Qe.detail)),_(Dt,Ze)},Dn=Dt=>{var Ze=A(),Qe=T(Ze);{var Ne=Vt=>{var $e=Sa();b(()=>m($e,"schemaentry",JSON.stringify({...y(),value:c(f)[y().id]??y().value}))),b(()=>m($e,"show_validation",o())),R($e,1,"svelte-yjqjiw"),E("setVal",$e,et=>S(et.detail)),E("clickEnter",$e,()=>P()),_(Vt,$e)},Vn=Vt=>{var $e=A(),et=T($e);{var qe=It=>{var Se=Ta();b(()=>m(Se,"schemaentry",JSON.stringify({...y(),value:c(f)[y().id]??y().value}))),b(()=>m(Se,"show_validation",o())),R(Se,1,"svelte-yjqjiw"),E("setVal",Se,tt=>S(tt.detail)),E("clickEnter",Se,()=>P()),_(It,Se)},In=It=>{var Se=A(),tt=T(Se);{var nt=Pt=>{var Te=Ca();b(()=>m(Te,"schemaentry",JSON.stringify({...y(),value:c(f)[y().id]??y().value}))),b(()=>m(Te,"show_validation",o())),R(Te,1,"svelte-yjqjiw"),E("setVal",Te,rt=>S(rt.detail)),E("clickEnter",Te,()=>P()),_(Pt,Te)},Pn=Pt=>{var Te=A(),rt=T(Te);{var Ce=Ft=>{var it=Oa();R(it,1,"checkbox-inline svelte-yjqjiw"),b(()=>m(it,"schemaentry",JSON.stringify({...y(),value:c(f)[y().id]??y().value}))),b(()=>m(it,"show_validation",o())),E("setVal",it,st=>S(st.detail)),_(Ft,it)},Fn=Ft=>{var it=A(),st=T(it);{var Oe=Jt=>{var Ae=Aa();b(()=>m(Ae,"schemaentry",JSON.stringify({...y(),value:c(f)[y().id]??y().value}))),b(()=>m(Ae,"show_validation",o())),R(Ae,1,"svelte-yjqjiw"),E("setVal",Ae,at=>S(at.detail)),E("clickEnter",Ae,()=>P()),_(Jt,Ae)},Jn=Jt=>{var Ae=A(),at=T(Ae);{var ot=Bt=>{var Re=Ra();b(()=>m(Re,"schemaentry",JSON.stringify({...y(),value:c(f)[y().id]??y().value}))),b(()=>m(Re,"show_validation",o())),R(Re,1,"svelte-yjqjiw"),E("setVal",Re,lt=>S(lt.detail)),E("clickEnter",Re,()=>P()),_(Bt,Re)},Bn=Bt=>{var Re=A(),lt=T(Re);{var ut=Ht=>{var ge=Ma();b(()=>m(ge,"schemaentry",JSON.stringify({...y(),value:c(f)[y().id]??y().value}))),b(()=>m(ge,"show_validation",o())),R(ge,1,"svelte-yjqjiw"),E("setVal",ge,ft=>S(ft.detail)),_(Ht,ge)},Hn=Ht=>{var ge=A(),ft=T(ge);{var Jr=gn=>{var Yt=La();b(()=>m(Yt,"schemaentry",JSON.stringify({...y(),value:c(f)[y().id]??y().value}))),b(()=>m(Yt,"show_validation",o())),R(Yt,1,"svelte-yjqjiw"),E("setVal",Yt,Br=>S(Br.detail)),_(gn,Yt)},uo=gn=>{var Yt=A(),Br=T(Yt);{var fo=Hr=>{var wn=Da();b(()=>m(wn,"schemaentry",JSON.stringify({...y(),value:c(f)[y().id]??y().value}))),b(()=>m(wn,"i18nlang",a())),b(()=>m(wn,"show_validation",o())),R(wn,1,"svelte-yjqjiw"),E("setVal",wn,co=>S(co.detail)),_(Hr,wn)};k(Br,Hr=>{J()==="hb-input-coords"&&Hr(fo)},!0)}_(gn,Yt)};k(ft,gn=>{J()==="hb-input-select"?gn(Jr):gn(uo,!1)},!0)}_(Ht,ge)};k(lt,Ht=>{J()==="hb-input-radio"?Ht(ut):Ht(Hn,!1)},!0)}_(Bt,Re)};k(at,Bt=>{J()==="hb-input-area"?Bt(ot):Bt(Bn,!1)},!0)}_(Jt,Ae)};k(st,Jt=>{J()==="hb-input-number"?Jt(Oe):Jt(Jn,!1)},!0)}_(Ft,it)};k(rt,Ft=>{J()==="hb-input-checkbox"?Ft(Ce):Ft(Fn,!1)},!0)}_(Pt,Te)};k(tt,Pt=>{J()==="hb-input-datetime"?Pt(nt):Pt(Pn,!1)},!0)}_(It,Se)};k(et,It=>{J()==="hb-input-date"?It(qe):It(In,!1)},!0)}_(Vt,$e)};k(Qe,Vt=>{J()==="hb-input-email"?Vt(Ne):Vt(Vn,!1)},!0)}_(Dt,Ze)};k(Xe,Dt=>{J()==="hb-input-file"?Dt(ke):Dt(Dn,!1)},!0)}_(Lt,Ke)};k(We,Lt=>{J()==="hb-input-range"?Lt(Ge):Lt(Ln,!1)},!0)}_(Mt,ze)};k(Ye,Mt=>{J()==="hb-input-color"?Mt(Ue):Mt(Mn,!1)},!0)}_(Rt,xe)};k(Be,Rt=>{J()==="hb-input-text"?Rt(He):Rt(Rn,!1)},!0)}_(At,Je)};k(me,At=>{J()==="hb-input-array-tags"?At(Fe):At(An,!1)},!0)}_(be,ee)};k(Ot,be=>{J()==="hb-array-objects"?be(Pe):be(On,!1)})}_t(Ie),b(()=>da(Ie,J()==="hb-input-checkbox"?"line-height:52px;":"")),_(B,Ie)};k(Pr,B=>{c(p)[y().id]&&B(pe)})}_(Tn,fr)}),_t(Ct),_(bn,Ct)},Vr=bn=>{var Ct=A(),Tn=T(Ct);{var mn=Cn=>{var ur=no(),y=kt(ur);{var J=pe=>{var B=Pa(),Ie=kt(B);_t(B),b(()=>{Ar(B,"for",g().id),Ui(Ie,`${g().label??""}${g().required?"*":""}`)}),_(pe,B)};k(y,pe=>{lr()?.labelIsHandledByComponent||pe(J)})}var Ir=rr(y,2);{var fr=pe=>{var B=Fa();b(()=>m(B,"schemaentry",JSON.stringify({...g(),value:c(f)[g().id]??g().value},null,0))),b(()=>m(B,"show_validation",o())),R(B,1,"svelte-yjqjiw"),E("setVal",B,Ie=>S(Ie.detail)),E("clickEnter",B,()=>P()),_(pe,B)},Pr=pe=>{var B=A(),Ie=T(B);{var cr=Ot=>{var Pe=Ja();b(()=>m(Pe,"schemaentry",JSON.stringify({...g(),value:c(f)[g().id]??g().value},null,0))),b(()=>m(Pe,"show_validation",o())),R(Pe,1,"svelte-yjqjiw"),E("setVal",Pe,On=>S(On.detail)),_(Ot,Pe)},Fr=Ot=>{var Pe=A(),On=T(Pe);{var be=me=>{var Fe=Ba();b(()=>m(Fe,"schemaentry",JSON.stringify({...g(),value:c(f)[g().id]??g().value},null,0))),b(()=>m(Fe,"show_validation",o())),R(Fe,1,"svelte-yjqjiw"),E("setVal",Fe,An=>S(An.detail)),_(me,Fe)},ee=me=>{var Fe=A(),An=T(Fe);{var At=Be=>{var He=Ha();b(()=>m(He,"schemaentry",JSON.stringify({...g(),value:c(f)[g().id]??g().value},null,0))),b(()=>m(He,"show_validation",o())),R(He,1,"svelte-yjqjiw"),E("setVal",He,Rn=>S(Rn.detail)),_(Be,He)},Je=Be=>{var He=A(),Rn=T(He);{var Rt=Ye=>{var Ue=Ya();b(()=>m(Ue,"schemaentry",JSON.stringify({...g(),value:c(f)[g().id]??g().value},null,0))),b(()=>m(Ue,"show_validation",o())),R(Ue,1,"svelte-yjqjiw"),E("setVal",Ue,Mn=>S(Mn.detail)),_(Ye,Ue)},xe=Ye=>{var Ue=A(),Mn=T(Ue);{var Mt=We=>{var Ge=Ua();b(()=>m(Ge,"schemaentry",JSON.stringify({...g(),value:c(f)[g().id]??g().value},null,0))),b(()=>m(Ge,"show_validation",o())),R(Ge,1,"svelte-yjqjiw"),E("setVal",Ge,Ln=>S(Ln.detail)),_(We,Ge)},ze=We=>{var Ge=A(),Ln=T(Ge);{var Lt=Xe=>{var ke=za();b(()=>m(ke,"schemaentry",JSON.stringify({...g(),value:c(f)[g().id]??g().value},null,0))),b(()=>m(ke,"show_validation",o())),R(ke,1,"svelte-yjqjiw"),E("setVal",ke,Dn=>S(Dn.detail)),E("clickEnter",ke,()=>P()),_(Xe,ke)},Ke=Xe=>{var ke=A(),Dn=T(ke);{var Dt=Qe=>{var Ne=Wa();b(()=>m(Ne,"schemaentry",JSON.stringify({...g(),value:c(f)[g().id]??g().value},null,0))),b(()=>m(Ne,"show_validation",o())),R(Ne,1,"svelte-yjqjiw"),E("setVal",Ne,Vn=>S(Vn.detail)),E("clickEnter",Ne,()=>P()),_(Qe,Ne)},Ze=Qe=>{var Ne=A(),Vn=T(Ne);{var Vt=et=>{var qe=Ga();b(()=>m(qe,"schemaentry",JSON.stringify({...g(),value:c(f)[g().id]??g().value},null,0))),b(()=>m(qe,"show_validation",o())),R(qe,1,"svelte-yjqjiw"),E("setVal",qe,In=>S(In.detail)),E("clickEnter",qe,()=>P()),_(et,qe)},$e=et=>{var qe=A(),In=T(qe);{var It=tt=>{var nt=Ka();b(()=>m(nt,"schemaentry",JSON.stringify({...g(),value:c(f)[g().id]??g().value},null,0))),b(()=>m(nt,"show_validation",o())),R(nt,1,"svelte-yjqjiw"),E("setVal",nt,Pn=>S(Pn.detail)),_(tt,nt)},Se=tt=>{var nt=A(),Pn=T(nt);{var Pt=rt=>{var Ce=Xa();b(()=>m(Ce,"schemaentry",JSON.stringify({...g(),value:c(f)[g().id]??g().value},null,0))),b(()=>m(Ce,"show_validation",o())),R(Ce,1,"svelte-yjqjiw"),E("setVal",Ce,Fn=>S(Fn.detail)),E("clickEnter",Ce,()=>P()),_(rt,Ce)},Te=rt=>{var Ce=A(),Fn=T(Ce);{var Ft=st=>{var Oe=Za();b(()=>m(Oe,"schemaentry",JSON.stringify({...g(),value:c(f)[g().id]??g().value},null,0))),b(()=>m(Oe,"show_validation",o())),R(Oe,1,"svelte-yjqjiw"),E("setVal",Oe,Jn=>S(Jn.detail)),E("clickEnter",Oe,()=>P()),_(st,Oe)},it=st=>{var Oe=A(),Jn=T(Oe);{var Jt=at=>{var ot=Qa();b(()=>m(ot,"schemaentry",JSON.stringify({...g(),value:c(f)[g().id]??g().value},null,0))),b(()=>m(ot,"show_validation",o())),R(ot,1,"svelte-yjqjiw"),E("setVal",ot,Bn=>S(Bn.detail)),_(at,ot)},Ae=at=>{var ot=A(),Bn=T(ot);{var Bt=lt=>{var ut=eo();b(()=>m(ut,"schemaentry",JSON.stringify({...g(),value:c(f)[g().id]??g().value},null,0))),b(()=>m(ut,"show_validation",o())),R(ut,1,"svelte-yjqjiw"),E("setVal",ut,Hn=>S(Hn.detail)),_(lt,ut)},Re=lt=>{var ut=A(),Hn=T(ut);{var Ht=ge=>{var ft=to();b(()=>m(ft,"schemaentry",JSON.stringify({...g(),value:c(f)[g().id]??g().value},null,0))),b(()=>m(ft,"i18nlang",a())),b(()=>m(ft,"show_validation",o())),R(ft,1,"svelte-yjqjiw"),E("setVal",ft,Jr=>S(Jr.detail)),_(ge,ft)};k(Hn,ge=>{F()==="hb-input-coords"&&ge(Ht)},!0)}_(lt,ut)};k(Bn,lt=>{F()==="hb-input-select"?lt(Bt):lt(Re,!1)},!0)}_(at,ot)};k(Jn,at=>{F()==="hb-input-radio"?at(Jt):at(Ae,!1)},!0)}_(st,Oe)};k(Fn,st=>{F()==="hb-input-area"?st(Ft):st(it,!1)},!0)}_(rt,Ce)};k(Pn,rt=>{F()==="hb-input-number"?rt(Pt):rt(Te,!1)},!0)}_(tt,nt)};k(In,tt=>{F()==="hb-input-checkbox"?tt(It):tt(Se,!1)},!0)}_(et,qe)};k(Vn,et=>{F()==="hb-input-datetime"?et(Vt):et($e,!1)},!0)}_(Qe,Ne)};k(Dn,Qe=>{F()==="hb-input-date"?Qe(Dt):Qe(Ze,!1)},!0)}_(Xe,ke)};k(Ln,Xe=>{F()==="hb-input-email"?Xe(Lt):Xe(Ke,!1)},!0)}_(We,Ge)};k(Mn,We=>{F()==="hb-input-file"?We(Mt):We(ze,!1)},!0)}_(Ye,Ue)};k(Rn,Ye=>{F()==="hb-input-range"?Ye(Rt):Ye(xe,!1)},!0)}_(Be,He)};k(An,Be=>{F()==="hb-input-color"?Be(At):Be(Je,!1)},!0)}_(me,Fe)};k(On,me=>{F()==="hb-input-array-tags"?me(be):me(ee,!1)},!0)}_(Ot,Pe)};k(Ie,Ot=>{F()==="hb-input-array-objects"?Ot(cr):Ot(Fr,!1)},!0)}_(pe,B)};k(Ir,pe=>{F()==="hb-input-text"?pe(fr):pe(Pr,!1)})}_t(ur),_(Cn,ur)};k(Tn,Cn=>{c(p)&&c(p)[g().id]&&Cn(mn)},!0)}_(bn,Ct)};k(Lr,bn=>{lr()?.row&&(c(p)[g().id]||c(p)[g().id]!==!1)&&Sn()?.length&&Sn().some(Ct=>c(p)[Ct.entry.id])?bn(Dr):bn(Vr,!1)})}_(rn,pn)});var Mr=rr(V,2);{var lo=rn=>{var gt=io(),g=kt(gt);g.__click=()=>P();var F=kt(g);Or(F,t,"submit_button",{},Sn=>{var pn=ro(),Lr=kt(pn);Or(Lr,t,"submit_label",{},Dr=>{var Vr=ra("Submit");_(Dr,Vr)}),_t(pn),_(Sn,pn)}),_t(g);var lr=rr(g,2);Or(lr,t,"other_buttons",{},null),_t(gt),_(rn,gt)};k(Mr,rn=>{l()||rn(lo)})}_(h,w)};k(_n,h=>{i()&&typeof i()=="object"&&i()?.length&&h(oe)})}return _t(nn),_(e,nn),ai(mt)}ta(["click"]),customElements.define("hb-form",ga(Zi,{id:{},schema:{},i18nlang:{},show_validation:{},hide_submit:{},submitted:{},getvals:{}},["submit_button","submit_label","other_buttons"],[],!0)),Yr.Component=Zi,Object.defineProperty(Yr,Symbol.toStringTag,{value:"Module"})})(this.form=this.form||{});
99
99
  //# sourceMappingURL=main.iife.js.map