@htmlbricks/hb-form 0.65.23 → 0.66.1
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 +4 -4
- package/main.iife.js.map +1 -1
- package/manifest.json +2 -39
- package/package.json +1 -1
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>)!==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>)===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>)!==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>)!==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(Jn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const ri=1,ii=2,Bn=4,si=8,oi=16,ai=1,li=2,Hn="[",Zt="[!",zn="[?",Qt="]",lt={},K=Symbol(),Yn="http://www.w3.org/1999/xhtml",ui=!1;var Un=Array.isArray,fi=Array.prototype.indexOf,ut=Array.prototype.includes,Mt=Array.from,Dt=Object.keys,Lt=Object.defineProperty,ft=Object.getOwnPropertyDescriptor,ci=Object.getOwnPropertyDescriptors,di=Object.prototype,hi=Array.prototype,Wn=Object.getPrototypeOf,Gn=Object.isExtensible;const vi=()=>{};function pi(e){for(var t=0;t<e.length;t++)e[t]()}function Kn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const U=2,ct=4,Vt=8,Xn=1<<24,Re=16,ge=32,Me=64,en=128,ce=512,Y=1024,Z=2048,xe=4096,oe=8192,de=16384,De=32768,Zn=1<<25,dt=65536,Qn=1<<17,_i=1<<18,Ke=1<<19,bi=1<<20,ke=1<<25,Xe=65536,tn=1<<21,nn=1<<22,Le=1<<23,rn=Symbol("$state"),mi=Symbol("legacy props"),gi=Symbol(""),Se=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},wi=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),It=3,Et=8;function yi(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ji(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Ei(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function xi(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ki(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ni(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function $i(){throw new Error("https://svelte.dev/e/hydration_failed")}function Si(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ti(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function qi(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Oi(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Pt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ci(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let R=!1;function we(e){R=e}let D;function re(e){if(e===null)throw Pt(),lt;return D=e}function xt(){return re(Ne(D))}function Te(e){if(R){if(Ne(D)!==null)throw Pt(),lt;D=e}}function Ai(e=1){if(R){for(var t=e,n=D;t--;)n=Ne(n);D=n}}function Ft(e=!0){for(var t=0,n=D;;){if(n.nodeType===Et){var r=n.data;if(r===Qt){if(t===0)return n;t-=1}else(r===Hn||r===Zt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=Ne(n);e&&n.remove(),n=i}}function er(e){if(!e||e.nodeType!==Et)throw Pt(),lt;return e.data}function tr(e){return e===this.v}function Ri(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function nr(e){return!Ri(e,this.v)}let Mi=!1,he=null;function ht(e){he=e}function rr(e,t=!1,n){he={p:he,i:!1,c:null,e:null,s:e,x:null,r:C,l:null}}function ir(e){var t=he,n=t.e;if(n!==null){t.e=null;for(var r of n)Tr(r)}return e!==void 0&&(t.x=e),t.i=!0,he=t.p,e??{}}function sr(){return!0}let Ze=[];function or(){var e=Ze;Ze=[],pi(e)}function Ve(e){if(Ze.length===0&&!kt){var t=Ze;queueMicrotask(()=>{t===Ze&&or()})}Ze.push(e)}function Di(){for(;Ze.length>0;)or()}function ar(e){var t=C;if(t===null)return O.f|=Le,e;if((t.f&De)===0&&(t.f&ct)===0)throw e;Ie(e,t)}function Ie(e,t){for(;t!==null;){if((t.f&en)!==0){if((t.f&De)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Li=-7169;function H(e,t){e.f=e.f&Li|t}function sn(e){(e.f&ce)!==0||e.deps===null?H(e,Y):H(e,xe)}function lr(e){if(e!==null)for(const t of e)(t.f&U)===0||(t.f&Xe)===0||(t.f^=Xe,lr(t.deps))}function ur(e,t,n){(e.f&Z)!==0?t.add(e):(e.f&xe)!==0&&n.add(e),lr(e.deps),H(e,Y)}const Pe=new Set;let P=null,ye=null,on=null,kt=!1,an=!1,vt=null,Jt=null;var fr=0;let Vi=1;class qe{id=Vi++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#o=new Set;#a=new Set;#l=new Map;is_fork=!1;#c=!1;#u=new Set;#d(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#u)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#l.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#l.has(t)||this.#l.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#l.get(t);if(n){this.#l.delete(t);for(var r of n.d)H(r,Z),this.schedule(r);for(r of n.m)H(r,xe),this.schedule(r)}}#h(){if(fr++>1e3&&(Pe.delete(this),Ii()),!this.#d()){for(const o of this.#o)this.#a.delete(o),H(o,Z),this.schedule(o);for(const o of this.#a)H(o,xe),this.schedule(o)}const t=this.#r;this.#r=[],this.apply();var n=vt=[],r=[],i=Jt=[];for(const o of t)try{this.#f(o,n,r)}catch(l){throw pr(o),l}if(P=null,i.length>0){var s=qe.ensure();for(const o of i)s.schedule(o)}if(vt=null,Jt=null,this.#d()||this.#v()){this.#p(r),this.#p(n);for(const[o,l]of this.#l)vr(o,l)}else{this.#t.size===0&&Pe.delete(this),this.#o.clear(),this.#a.clear();for(const o of this.#e)o(this);this.#e.clear(),cr(r),cr(n),this.#s?.resolve()}var a=P;if(this.#r.length>0){const o=a??=this;o.#r.push(...this.#r.filter(l=>!o.#r.includes(l)))}a!==null&&(Pe.add(a),a.#h()),Pe.has(this)||this.#_()}#f(t,n,r){t.f^=Y;for(var i=t.first;i!==null;){var s=i.f,a=(s&(ge|Me))!==0,o=a&&(s&Y)!==0,l=o||(s&oe)!==0||this.#l.has(i);if(!l&&i.fn!==null){a?i.f^=Y:(s&ct)!==0?n.push(i):St(i)&&((s&Re)!==0&&this.#a.add(i),_t(i));var u=i.first;if(u!==null){i=u;continue}}for(;i!==null;){var f=i.next;if(f!==null){i=f;break}i=i.parent}}}#p(t){for(var n=0;n<t.length;n+=1)ur(t[n],this.#o,this.#a)}capture(t,n,r=!1){n!==K&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Le)===0&&(this.current.set(t,[t.v,r]),ye?.set(t,t.v))}activate(){P=this}deactivate(){P=null,ye=null}flush(){try{an=!0,P=this,this.#h()}finally{fr=0,on=null,vt=null,Jt=null,an=!1,P=null,ye=null,Je.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),Pe.delete(this)}#_(){for(const u of Pe){var t=u.id<this.id,n=[];for(const[f,[_,v]]of this.current){if(u.current.has(f)){var r=u.current.get(f)[0];if(t&&_!==r)u.current.set(f,[_,v]);else continue}n.push(f)}var i=[...u.current.keys()].filter(f=>!this.current.has(f));if(i.length===0)t&&u.discard();else if(n.length>0){u.activate();var s=new Set,a=new Map;for(var o of n)dr(o,i,s,a);if(u.#r.length>0){u.apply();for(var l of u.#r)u.#f(l,[],[]);u.#r=[]}u.deactivate()}}for(const u of Pe)u.#u.has(this)&&(u.#u.delete(this),u.#u.size===0&&!u.#d()&&(u.activate(),u.#h()))}increment(t,n){let r=this.#t.get(n)??0;if(this.#t.set(n,r+1),t){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(t,n,r){let i=this.#t.get(n)??0;if(i===1?this.#t.delete(n):this.#t.set(n,i-1),t){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#c||r||(this.#c=!0,Ve(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#o.add(r);for(const r of n)this.#a.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=Kn()).promise}static ensure(){if(P===null){const t=P=new qe;an||(Pe.add(P),kt||Ve(()=>{P===t&&t.flush()}))}return P}apply(){{ye=null;return}}schedule(t){if(on=t,t.b?.is_pending&&(t.f&(ct|Vt|Xn))!==0&&(t.f&De)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(vt!==null&&n===C&&(O===null||(O.f&U)===0))return;if((r&(Me|ge))!==0){if((r&Y)===0)return;n.f^=Y}}this.#r.push(n)}}function Fe(e){var t=kt;kt=!0;try{for(var n;;){if(Di(),P===null)return n;P.flush()}}finally{kt=t}}function Ii(){try{Ni()}catch(e){Ie(e,on)}}let Oe=null;function cr(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(de|oe))===0&&St(r)&&(Oe=new Set,_t(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Cr(r),Oe?.size>0)){Je.clear();for(const i of Oe){if((i.f&(de|oe))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)Oe.has(a)&&(Oe.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const l=s[o];(l.f&(de|oe))===0&&_t(l)}}Oe.clear()}}Oe=null}}function dr(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&U)!==0?dr(i,t,n,r):(s&(nn|Re))!==0&&(s&Z)===0&&hr(i,t,r)&&(H(i,Z),ln(i))}}function hr(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(ut.call(t,i))return!0;if((i.f&U)!==0&&hr(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function ln(e){P.schedule(e)}function vr(e,t){if(!((e.f&ge)!==0&&(e.f&Y)!==0)){(e.f&Z)!==0?t.d.push(e):(e.f&xe)!==0&&t.m.push(e),H(e,Y);for(var n=e.first;n!==null;)vr(n,t),n=n.next}}function pr(e){H(e,Y);for(var t=e.first;t!==null;)pr(t),t=t.next}function Pi(e){let t=0,n=Qe(0),r;return()=>{_n()&&(h(n),qr(()=>(t===0&&(r=us(()=>e(()=>$t(n)))),t+=1,()=>{Ve(()=>{t-=1,t===0&&(r?.(),r=void 0,$t(n))})})))}}var Fi=dt|Ke;function Ji(e,t,n,r){new Bi(e,t,n,r)}class Bi{parent;is_pending=!1;transform_error;#e;#n=R?D:null;#t;#i;#s;#r=null;#o=null;#a=null;#l=null;#c=0;#u=0;#d=!1;#v=new Set;#h=new Set;#f=null;#p=Pi(()=>(this.#f=Qe(this.#c),()=>{this.#f=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var a=C;a.b=this,a.f|=en,r(s)},this.parent=C.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=bn(()=>{if(R){const s=this.#n;xt();const a=s.data===Zt;if(s.data.startsWith(zn)){const l=JSON.parse(s.data.slice(zn.length));this.#y(l)}else a?this.#j():this.#_()}else this.#g()},Fi),R&&(this.#e=D)}#_(){try{this.#r=pe(()=>this.#i(this.#e))}catch(t){this.error(t)}}#y(t){const n=this.#t.failed;n&&(this.#a=pe(()=>{n(this.#e,()=>t,()=>()=>{})}))}#j(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=pe(()=>t(this.#e)),Ve(()=>{var n=this.#l=document.createDocumentFragment(),r=le();n.append(r),this.#r=this.#m(()=>pe(()=>this.#i(r))),this.#u===0&&(this.#e.before(n),this.#l=null,tt(this.#o,()=>{this.#o=null}),this.#b(P))}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#c=0,this.#r=pe(()=>{this.#i(this.#e)}),this.#u>0){var t=this.#l=document.createDocumentFragment();wn(this.#r,t);const n=this.#t.pending;this.#o=pe(()=>n(this.#e))}else this.#b(P)}catch(n){this.error(n)}}#b(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){ur(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var n=C,r=O,i=he;_e(this.#s),ie(this.#s),ht(this.#s.ctx);try{return qe.ensure(),t()}catch(s){return ar(s),null}finally{_e(n),ie(r),ht(i)}}#w(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t,n);return}this.#u+=t,this.#u===0&&(this.#b(n),this.#o&&tt(this.#o,()=>{this.#o=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t,n){this.#w(t,n),this.#c+=t,!(!this.#f||this.#d)&&(this.#d=!0,Ve(()=>{this.#d=!1,this.#f&&pt(this.#f,this.#c)}))}get_effect_pending(){return this.#p(),h(this.#f)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(Q(this.#r),this.#r=null),this.#o&&(Q(this.#o),this.#o=null),this.#a&&(Q(this.#a),this.#a=null),R&&(re(this.#n),Ai(),re(Ft()));var i=!1,s=!1;const a=()=>{if(i){Ci();return}i=!0,s&&Oi(),this.#a!==null&&tt(this.#a,()=>{this.#a=null}),this.#m(()=>{this.#g()})},o=l=>{try{s=!0,n?.(l,a),s=!1}catch(u){Ie(u,this.#s&&this.#s.parent)}r&&(this.#a=this.#m(()=>{try{return pe(()=>{var u=C;u.b=this,u.f|=en,r(this.#e,()=>l,()=>a)})}catch(u){return Ie(u,this.#s.parent),null}}))};Ve(()=>{var l;try{l=this.transform_error(t)}catch(u){Ie(u,this.#s&&this.#s.parent);return}l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(o,u=>Ie(u,this.#s&&this.#s.parent)):o(l)})}}function Hi(e,t,n,r){const i=Ht;var s=e.filter(v=>!v.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var a=C,o=zi(),l=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(v=>v.promise)):null;function u(v){o();try{r(v)}catch(p){(a.f&de)===0&&Ie(p,a)}Bt()}if(n.length===0){l.then(()=>u(t.map(i)));return}var f=_r();function _(){Promise.all(n.map(v=>Yi(v))).then(v=>u([...t.map(i),...v])).catch(v=>Ie(v,a)).finally(()=>f())}l?l.then(()=>{o(),_(),Bt()}):_()}function zi(){var e=C,t=O,n=he,r=P;return function(s=!0){_e(e),ie(t),ht(n),s&&(e.f&de)===0&&(r?.activate(),r?.apply())}}function Bt(e=!0){_e(null),ie(null),ht(null),e&&P?.deactivate()}function _r(){var e=C,t=e.b,n=P,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Ht(e){var t=U|Z,n=O!==null&&(O.f&U)!==0?O:null;return C!==null&&(C.f|=Ke),{ctx:he,deps:null,effects:null,equals:tr,f:t,fn:e,reactions:null,rv:0,v:K,wv:0,parent:n??C,ac:null}}function Yi(e,t,n){let r=C;r===null&&yi();var i=void 0,s=Qe(K),a=!O,o=new Map;return is(()=>{var l=C,u=Kn();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).finally(Bt)}catch(p){u.reject(p),Bt()}var f=P;if(a){if((l.f&De)!==0)var _=_r();if(r.b.is_rendered())o.get(f)?.reject(Se),o.delete(f);else{for(const p of o.values())p.reject(Se);o.clear()}o.set(f,u)}const v=(p,w=void 0)=>{if(_){var A=w===Se;_(A)}if(!(w===Se||(l.f&de)!==0)){if(f.activate(),w)s.f|=Le,pt(s,w);else{(s.f&Le)!==0&&(s.f^=Le),pt(s,p);for(const[m,M]of o){if(o.delete(m),m===f)break;M.reject(Se)}}f.deactivate()}};u.promise.then(v,p=>v(null,p||"unknown"))}),Sr(()=>{for(const l of o.values())l.reject(Se)}),new Promise(l=>{function u(f){function _(){f===i?l(s):u(i)}f.then(_,_)}u(i)})}function Nt(e){const t=Ht(e);return Dr(t),t}function Ui(e){const t=Ht(e);return t.equals=nr,t}function Wi(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Q(t[n])}}function Gi(e){for(var t=e.parent;t!==null;){if((t.f&U)===0)return(t.f&de)===0?t:null;t=t.parent}return null}function un(e){var t,n=C;_e(Gi(e));try{e.f&=~Xe,Wi(e),t=Fr(e)}finally{_e(n)}return t}function br(e){var t=e.v,n=un(e);if(!e.equals(n)&&(e.wv=Ir(),(!P?.is_fork||e.deps===null)&&(e.v=n,P?.capture(e,t,!0),e.deps===null))){H(e,Y);return}ze||(ye!==null?(_n()||P?.is_fork)&&ye.set(e,n):sn(e))}function Ki(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Se),t.teardown=vi,t.ac=null,Tt(t,0),mn(t))}function mr(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&_t(t)}let fn=new Set;const Je=new Map;let gr=!1;function Qe(e,t){var n={f:0,v:e,reactions:null,equals:tr,rv:0,wv:0};return n}function ve(e,t){const n=Qe(e);return Dr(n),n}function wr(e,t=!1,n=!0){const r=Qe(e);return t||(r.equals=nr),r}function ae(e,t,n=!1){O!==null&&(!je||(O.f&Qn)!==0)&&sr()&&(O.f&(U|Re|nn|Qn))!==0&&(be===null||!ut.call(be,e))&&qi();let r=n?Be(t):t;return pt(e,r,Jt)}function pt(e,t,n=null){if(!e.equals(t)){var r=e.v;ze?Je.set(e,t):Je.set(e,r),e.v=t;var i=qe.ensure();if(i.capture(e,r),(e.f&U)!==0){const s=e;(e.f&Z)!==0&&un(s),ye===null&&sn(s)}e.wv=Ir(),yr(e,Z,n),C!==null&&(C.f&Y)!==0&&(C.f&(ge|Me))===0&&(me===null?as([e]):me.push(e)),!i.is_fork&&fn.size>0&&!gr&&Xi()}return t}function Xi(){gr=!1;for(const e of fn)(e.f&Y)!==0&&H(e,xe),St(e)&&_t(e);fn.clear()}function $t(e){ae(e,e.v+1)}function yr(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var a=r[s],o=a.f,l=(o&Z)===0;if(l&&H(a,t),(o&U)!==0){var u=a;ye?.delete(u),(o&Xe)===0&&(o&ce&&(a.f|=Xe),yr(u,xe,n))}else if(l){var f=a;(o&Re)!==0&&Oe!==null&&Oe.add(f),n!==null?n.push(f):ln(f)}}}function Be(e){if(typeof e!="object"||e===null||rn in e)return e;const t=Wn(e);if(t!==di&&t!==hi)return e;var n=new Map,r=Un(e),i=ve(0),s=rt,a=o=>{if(rt===s)return o();var l=O,u=rt;ie(null),Vr(s);var f=o();return ie(l),Vr(u),f};return r&&n.set("length",ve(e.length)),new Proxy(e,{defineProperty(o,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Si();var f=n.get(l);return f===void 0?a(()=>{var _=ve(u.value);return n.set(l,_),_}):ae(f,u.value,!0),!0},deleteProperty(o,l){var u=n.get(l);if(u===void 0){if(l in o){const f=a(()=>ve(K));n.set(l,f),$t(i)}}else ae(u,K),$t(i);return!0},get(o,l,u){if(l===rn)return e;var f=n.get(l),_=l in o;if(f===void 0&&(!_||ft(o,l)?.writable)&&(f=a(()=>{var p=Be(_?o[l]:K),w=ve(p);return w}),n.set(l,f)),f!==void 0){var v=h(f);return v===K?void 0:v}return Reflect.get(o,l,u)},getOwnPropertyDescriptor(o,l){var u=Reflect.getOwnPropertyDescriptor(o,l);if(u&&"value"in u){var f=n.get(l);f&&(u.value=h(f))}else if(u===void 0){var _=n.get(l),v=_?.v;if(_!==void 0&&v!==K)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return u},has(o,l){if(l===rn)return!0;var u=n.get(l),f=u!==void 0&&u.v!==K||Reflect.has(o,l);if(u!==void 0||C!==null&&(!f||ft(o,l)?.writable)){u===void 0&&(u=a(()=>{var v=f?Be(o[l]):K,p=ve(v);return p}),n.set(l,u));var _=h(u);if(_===K)return!1}return f},set(o,l,u,f){var _=n.get(l),v=l in o;if(r&&l==="length")for(var p=u;p<_.v;p+=1){var w=n.get(p+"");w!==void 0?ae(w,K):p in o&&(w=a(()=>ve(K)),n.set(p+"",w))}if(_===void 0)(!v||ft(o,l)?.writable)&&(_=a(()=>ve(void 0)),ae(_,Be(u)),n.set(l,_));else{v=_.v!==K;var A=a(()=>Be(u));ae(_,A)}var m=Reflect.getOwnPropertyDescriptor(o,l);if(m?.set&&m.set.call(f,u),!v){if(r&&typeof l=="string"){var M=n.get("length"),B=Number(l);Number.isInteger(B)&&B>=M.v&&ae(M,B+1)}$t(i)}return!0},ownKeys(o){h(i);var l=Reflect.ownKeys(o).filter(_=>{var v=n.get(_);return v===void 0||v.v!==K});for(var[u,f]of n)f.v!==K&&!(u in o)&&l.push(u);return l},setPrototypeOf(){Ti()}})}var jr,Er,xr,kr;function cn(){if(jr===void 0){jr=window,Er=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;xr=ft(t,"firstChild").get,kr=ft(t,"nextSibling").get,Gn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Gn(n)&&(n.__t=void 0)}}function le(e=""){return document.createTextNode(e)}function et(e){return xr.call(e)}function Ne(e){return kr.call(e)}function He(e,t){if(!R)return et(e);var n=et(D);return n===null&&(n=D.appendChild(le())),re(n),n}function dn(e,t=!1){if(!R){var n=et(e);return n instanceof Comment&&n.data===""?Ne(n):n}if(t){if(D?.nodeType!==It){var r=le();return D?.before(r),re(r),r}vn(D)}return D}function zt(e,t=1,n=!1){let r=R?D:e;for(var i;t--;)i=r,r=Ne(r);if(!R)return r;if(n){if(r?.nodeType!==It){var s=le();return r===null?i?.after(s):r.before(s),re(s),s}vn(r)}return re(r),r}function Nr(e){e.textContent=""}function $r(){return!1}function hn(e,t,n){return document.createElementNS(Yn,e,void 0)}function vn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===It;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function pn(e){var t=O,n=C;ie(null),_e(null);try{return e()}finally{ie(t),_e(n)}}function Zi(e){C===null&&(O===null&&ki(),xi()),ze&&Ei()}function Qi(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function $e(e,t){var n=C;n!==null&&(n.f&oe)!==0&&(e|=oe);var r={ctx:he,deps:null,nodes:null,f:e|Z|ce,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&ct)!==0)vt!==null?vt.push(r):qe.ensure().schedule(r);else if(t!==null){try{_t(r)}catch(a){throw Q(r),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Ke)===0&&(i=i.first,(e&Re)!==0&&(e&dt)!==0&&i!==null&&(i.f|=dt))}if(i!==null&&(i.parent=n,n!==null&&Qi(i,n),O!==null&&(O.f&U)!==0&&(e&Me)===0)){var s=O;(s.effects??=[]).push(i)}return r}function _n(){return O!==null&&!je}function Sr(e){const t=$e(Vt,null);return H(t,Y),t.teardown=e,t}function es(e){Zi();var t=C.f,n=!O&&(t&ge)!==0&&(t&De)===0;if(n){var r=he;(r.e??=[]).push(e)}else return Tr(e)}function Tr(e){return $e(ct|bi,e)}function ts(e){qe.ensure();const t=$e(Me|Ke,e);return()=>{Q(t)}}function ns(e){qe.ensure();const t=$e(Me|Ke,e);return(n={})=>new Promise(r=>{n.outro?tt(t,()=>{Q(t),r(void 0)}):(Q(t),r(void 0))})}function rs(e){return $e(ct,e)}function is(e){return $e(nn|Ke,e)}function qr(e,t=0){return $e(Vt|t,e)}function g(e,t=[],n=[],r=[]){Hi(r,t,n,i=>{$e(Vt,()=>e(...i.map(h)))})}function bn(e,t=0){var n=$e(Re|t,e);return n}function pe(e){return $e(ge|Ke,e)}function Or(e){var t=e.teardown;if(t!==null){const n=ze,r=O;Mr(!0),ie(null);try{t.call(null)}finally{Mr(n),ie(r)}}}function mn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&pn(()=>{i.abort(Se)});var r=n.next;(n.f&Me)!==0?n.parent=null:Q(n,t),n=r}}function ss(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ge)===0&&Q(t),t=n}}function Q(e,t=!0){var n=!1;(t||(e.f&_i)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(os(e.nodes.start,e.nodes.end),n=!0),H(e,Zn),mn(e,t&&!n),Tt(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();Or(e),e.f^=Zn,e.f|=de;var i=e.parent;i!==null&&i.first!==null&&Cr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function os(e,t){for(;e!==null;){var n=e===t?null:Ne(e);e.remove(),e=n}}function Cr(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 tt(e,t,n=!0){var r=[];Ar(e,r,!0);var i=()=>{n&&Q(e),t&&t()},s=r.length;if(s>0){var a=()=>--s||i();for(var o of r)o.out(a)}else i()}function Ar(e,t,n){if((e.f&oe)===0){e.f^=oe;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next,a=(i.f&dt)!==0||(i.f&ge)!==0&&(e.f&Re)!==0;Ar(i,t,a?n:!1),i=s}}}function gn(e){Rr(e,!0)}function Rr(e,t){if((e.f&oe)!==0){e.f^=oe,(e.f&Y)===0&&(H(e,Z),qe.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&dt)!==0||(n.f&ge)!==0;Rr(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const a of s)(a.is_global||t)&&a.in()}}function wn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:Ne(n);t.append(n),n=i}}let Yt=!1,ze=!1;function Mr(e){ze=e}let O=null,je=!1;function ie(e){O=e}let C=null;function _e(e){C=e}let be=null;function Dr(e){O!==null&&(be===null?be=[e]:be.push(e))}let se=null,ue=0,me=null;function as(e){me=e}let Lr=1,nt=0,rt=nt;function Vr(e){rt=e}function Ir(){return++Lr}function St(e){var t=e.f;if((t&Z)!==0)return!0;if(t&U&&(e.f&=~Xe),(t&xe)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(St(s)&&br(s),s.wv>e.wv)return!0}(t&ce)!==0&&ye===null&&H(e,Y)}return!1}function Pr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(be!==null&&ut.call(be,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&U)!==0?Pr(s,t,!1):t===s&&(n?H(s,Z):(s.f&Y)!==0&&H(s,xe),ln(s))}}function Fr(e){var t=se,n=ue,r=me,i=O,s=be,a=he,o=je,l=rt,u=e.f;se=null,ue=0,me=null,O=(u&(ge|Me))===0?e:null,be=null,ht(e.ctx),je=!1,rt=++nt,e.ac!==null&&(pn(()=>{e.ac.abort(Se)}),e.ac=null);try{e.f|=tn;var f=e.fn,_=f();e.f|=De;var v=e.deps,p=P?.is_fork;if(se!==null){var w;if(p||Tt(e,ue),v!==null&&ue>0)for(v.length=ue+se.length,w=0;w<se.length;w++)v[ue+w]=se[w];else e.deps=v=se;if(_n()&&(e.f&ce)!==0)for(w=ue;w<v.length;w++)(v[w].reactions??=[]).push(e)}else!p&&v!==null&&ue<v.length&&(Tt(e,ue),v.length=ue);if(sr()&&me!==null&&!je&&v!==null&&(e.f&(U|xe|Z))===0)for(w=0;w<me.length;w++)Pr(me[w],e);if(i!==null&&i!==e){if(nt++,i.deps!==null)for(let A=0;A<n;A+=1)i.deps[A].rv=nt;if(t!==null)for(const A of t)A.rv=nt;me!==null&&(r===null?r=me:r.push(...me))}return(e.f&Le)!==0&&(e.f^=Le),_}catch(A){return ar(A)}finally{e.f^=tn,se=t,ue=n,me=r,O=i,be=s,ht(a),je=o,rt=l}}function ls(e,t){let n=t.reactions;if(n!==null){var r=fi.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&U)!==0&&(se===null||!ut.call(se,t))){var s=t;(s.f&ce)!==0&&(s.f^=ce,s.f&=~Xe),sn(s),Ki(s),Tt(s,0)}}function Tt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ls(e,n[r])}function _t(e){var t=e.f;if((t&de)===0){H(e,Y);var n=C,r=Yt;C=e,Yt=!0;try{(t&(Re|Xn))!==0?ss(e):mn(e),Or(e);var i=Fr(e);e.teardown=typeof i=="function"?i:null,e.wv=Lr;var s;ui&&Mi&&(e.f&Z)!==0&&e.deps}finally{Yt=r,C=n}}}function h(e){var t=e.f,n=(t&U)!==0;if(O!==null&&!je){var r=C!==null&&(C.f&de)!==0;if(!r&&(be===null||!ut.call(be,e))){var i=O.deps;if((O.f&tn)!==0)e.rv<nt&&(e.rv=nt,se===null&&i!==null&&i[ue]===e?ue++:se===null?se=[e]:se.push(e));else{(O.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[O]:ut.call(s,O)||s.push(O)}}}if(ze&&Je.has(e))return Je.get(e);if(n){var a=e;if(ze){var o=a.v;return((a.f&Y)===0&&a.reactions!==null||Br(a))&&(o=un(a)),Je.set(a,o),o}var l=(a.f&ce)===0&&!je&&O!==null&&(Yt||(O.f&ce)!==0),u=(a.f&De)===0;St(a)&&(l&&(a.f|=ce),br(a)),l&&!u&&(mr(a),Jr(a))}if(ye?.has(e))return ye.get(e);if((e.f&Le)!==0)throw e.v;return e.v}function Jr(e){if(e.f|=ce,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&U)!==0&&(t.f&ce)===0&&(mr(t),Jr(t))}function Br(e){if(e.v===K)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Je.has(t)||(t.f&U)!==0&&Br(t))return!0;return!1}function us(e){var t=je;try{return je=!0,e()}finally{je=t}}const qt=Symbol("events"),Hr=new Set,yn=new Set;function fs(e,t,n,r={}){function i(s){if(r.capture||jn.call(t,s),!s.cancelBubble)return pn(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ve(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function S(e,t,n,r,i){var s={capture:r,passive:i},a=fs(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Sr(()=>{t.removeEventListener(e,a,s)})}function cs(e,t,n){(t[qt]??={})[e]=n}function ds(e){for(var t=0;t<e.length;t++)Hr.add(e[t]);for(var n of yn)n(e)}let zr=null;function jn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;zr=e;var a=0,o=zr===e&&e[qt];if(o){var l=i.indexOf(o);if(l!==-1&&(t===document||t===window)){e[qt]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(a=l)}if(s=i[a]||e.target,s!==t){Lt(e,"currentTarget",{configurable:!0,get(){return s||n}});var f=O,_=C;ie(null),_e(null);try{for(var v,p=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var A=s[qt]?.[r];A!=null&&(!s.disabled||e.target===s)&&A.call(s,e)}catch(m){v?p.push(m):v=m}if(e.cancelBubble||w===t||w===null)break;s=w}if(v){for(let m of p)queueMicrotask(()=>{throw m});throw v}}finally{e[qt]=t,delete e.currentTarget,ie(f),_e(_)}}}const hs=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function vs(e){return hs?.createHTML(e)??e}function ps(e){var t=hn("template");return t.innerHTML=vs(e.replaceAll("<!>","<!---->")),t.content}function Ye(e,t){var n=C;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function q(e,t){var n=(t&ai)!==0,r=(t&li)!==0,i,s=!e.startsWith("<!>");return()=>{if(R)return Ye(D,null),D;i===void 0&&(i=ps(s?e:"<!>"+e),n||(i=et(i)));var a=r||Er?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=et(a),l=a.lastChild;Ye(o,l)}else Ye(a,a);return a}}function _s(e=""){if(!R){var t=le(e+"");return Ye(t,t),t}var n=D;return n.nodeType!==It?(n.before(n=le()),re(n)):vn(n),Ye(n,n),n}function Yr(){if(R)return Ye(D,null),D;var e=document.createDocumentFragment(),t=document.createComment(""),n=le();return e.append(t,n),Ye(t,n),e}function $(e,t){if(R){var n=C;((n.f&De)===0||n.nodes.end===null)&&(n.nodes.end=D),xt();return}e!==null&&e.before(t)}const bs=["touchstart","touchmove"];function ms(e){return bs.includes(e)}function Ur(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function Wr(e,t){return Gr(e,t)}function gs(e,t){cn(),t.intro=t.intro??!1;const n=t.target,r=R,i=D;try{for(var s=et(n);s&&(s.nodeType!==Et||s.data!==Hn);)s=Ne(s);if(!s)throw lt;we(!0),re(s);const a=Gr(e,{...t,anchor:s});return we(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
+
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==lt&&console.warn("Failed to hydrate: ",a),t.recover===!1&&$i(),cn(),Nr(n),we(!1),Wr(e,t)}finally{we(r),re(i)}}const Ut=new Map;function Gr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0,transformError:o}){cn();var l=void 0,u=ns(()=>{var f=n??t.appendChild(le());Ji(f,{pending:()=>{}},p=>{rr({});var w=he;if(s&&(w.c=s),i&&(r.$$events=i),R&&Ye(p,null),l=e(p,r)||{},R&&(C.nodes.end=D,D===null||D.nodeType!==Et||D.data!==Qt))throw Pt(),lt;ir()},o);var _=new Set,v=p=>{for(var w=0;w<p.length;w++){var A=p[w];if(!_.has(A)){_.add(A);var m=ms(A);for(const F of[t,document]){var M=Ut.get(F);M===void 0&&(M=new Map,Ut.set(F,M));var B=M.get(A);B===void 0?(F.addEventListener(A,jn,{passive:m}),M.set(A,1)):M.set(A,B+1)}}}};return v(Mt(Hr)),yn.add(v),()=>{for(var p of _)for(const m of[t,document]){var w=Ut.get(m),A=w.get(p);--A==0?(m.removeEventListener(p,jn),w.delete(p),w.size===0&&Ut.delete(m)):w.set(p,A)}yn.delete(v),f!==n&&f.parentNode?.removeChild(f)}});return En.set(l,u),l}let En=new WeakMap;function ws(e,t){const n=En.get(e);return n?(En.delete(e),n(t)):Promise.resolve()}class ys{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)gn(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,a]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#t.get(a);o&&(Q(o.effect),this.#t.delete(a))}for(const[s,a]of this.#n){if(s===n||this.#i.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var u=document.createDocumentFragment();wn(a,u),u.append(le()),this.#t.set(s,{effect:a,fragment:u})}else Q(a);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),tt(a,o,!1)):o()}}};#o=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(Q(i.effect),this.#t.delete(r))};ensure(t,n){var r=P,i=$r();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),a=le();s.append(a),this.#t.set(t,{effect:pe(()=>n(a)),fragment:s})}else this.#n.set(t,pe(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[o,l]of this.#n)o===t?r.unskip_effect(l):r.skip_effect(l);for(const[o,l]of this.#t)o===t?r.unskip_effect(l.effect):r.skip_effect(l.effect);r.oncommit(this.#r),r.ondiscard(this.#o)}else R&&(this.anchor=D),this.#r(r)}}function Ue(e,t,n=!1){var r;R&&(r=D,xt());var i=new ys(e),s=n?dt:0;function a(o,l){if(R){var u=er(r);if(o!==parseInt(u.substring(1))){var f=Ft();re(f),i.anchor=f,we(!1),i.ensure(o,l),we(!0);return}}i.ensure(o,l)}bn(()=>{var o=!1;t((l,u=0)=>{o=!0,a(u,l)}),o||a(-1,null)},s)}function js(e,t,n){for(var r=[],i=t.length,s,a=t.length,o=0;o<i;o++){let _=t[o];tt(_,()=>{if(s){if(s.pending.delete(_),s.done.add(_),s.pending.size===0){var v=e.outrogroups;xn(e,Mt(s.done)),v.delete(s),v.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var l=r.length===0&&n!==null;if(l){var u=n,f=u.parentNode;Nr(f),f.append(u),e.items.clear()}xn(e,t,!l)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function xn(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const a of e.pending.values())for(const o of a)r.add(e.items.get(o).e)}for(var i=0;i<t.length;i++){var s=t[i];if(r?.has(s)){s.f|=ke;const a=document.createDocumentFragment();wn(s,a)}else Q(t[i],n)}}var Kr;function Xr(e,t,n,r,i,s=null){var a=e,o=new Map,l=(t&Bn)!==0;if(l){var u=e;a=R?re(et(u)):u.appendChild(le())}R&&xt();var f=null,_=Ui(()=>{var F=n();return Un(F)?F:F==null?[]:Mt(F)}),v,p=new Map,w=!0;function A(F){(B.effect.f&de)===0&&(B.pending.delete(F),B.fallback=f,Es(B,v,a,t,r),f!==null&&(v.length===0?(f.f&ke)===0?gn(f):(f.f^=ke,Ct(f,null,a)):tt(f,()=>{f=null})))}function m(F){B.pending.delete(F)}var M=bn(()=>{v=h(_);var F=v.length;let ne=!1;if(R){var bt=er(a)===Zt;bt!==(F===0)&&(a=Ft(),re(a),we(!1),ne=!0)}for(var Ee=new Set,X=P,Ce=$r(),J=0;J<F;J+=1){R&&D.nodeType===Et&&D.data===Qt&&(a=D,ne=!0,we(!1));var T=v[J],mt=r(T,J),fe=w?null:o.get(mt);fe?(fe.v&&pt(fe.v,T),fe.i&&pt(fe.i,J),Ce&&X.unskip_effect(fe.e)):(fe=xs(o,w?a:Kr??=le(),T,mt,J,i,t,n),w||(fe.e.f|=ke),o.set(mt,fe)),Ee.add(mt)}if(F===0&&s&&!f&&(w?f=pe(()=>s(a)):(f=pe(()=>s(Kr??=le())),f.f|=ke)),F>Ee.size&&ji(),R&&F>0&&re(Ft()),!w)if(p.set(X,Ee),Ce){for(const[Sn,Tn]of o)Ee.has(Sn)||X.skip_effect(Tn.e);X.oncommit(A),X.ondiscard(m)}else A(X);ne&&we(!0),h(_)}),B={effect:M,items:o,pending:p,outrogroups:null,fallback:f};w=!1,R&&(a=D)}function Ot(e){for(;e!==null&&(e.f&ge)===0;)e=e.next;return e}function Es(e,t,n,r,i){var s=(r&si)!==0,a=t.length,o=e.items,l=Ot(e.effect.first),u,f=null,_,v=[],p=[],w,A,m,M;if(s)for(M=0;M<a;M+=1)w=t[M],A=i(w,M),m=o.get(A).e,(m.f&ke)===0&&(m.nodes?.a?.measure(),(_??=new Set).add(m));for(M=0;M<a;M+=1){if(w=t[M],A=i(w,M),m=o.get(A).e,e.outrogroups!==null)for(const T of e.outrogroups)T.pending.delete(m),T.done.delete(m);if((m.f&oe)!==0&&(gn(m),s&&(m.nodes?.a?.unfix(),(_??=new Set).delete(m))),(m.f&ke)!==0)if(m.f^=ke,m===l)Ct(m,null,n);else{var B=f?f.next:l;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),We(e,f,m),We(e,m,B),Ct(m,B,n),f=m,v=[],p=[],l=Ot(f.next);continue}if(m!==l){if(u!==void 0&&u.has(m)){if(v.length<p.length){var F=p[0],ne;f=F.prev;var bt=v[0],Ee=v[v.length-1];for(ne=0;ne<v.length;ne+=1)Ct(v[ne],F,n);for(ne=0;ne<p.length;ne+=1)u.delete(p[ne]);We(e,bt.prev,Ee.next),We(e,f,bt),We(e,Ee,F),l=F,f=Ee,M-=1,v=[],p=[]}else u.delete(m),Ct(m,l,n),We(e,m.prev,m.next),We(e,m,f===null?e.effect.first:f.next),We(e,f,m),f=m;continue}for(v=[],p=[];l!==null&&l!==m;)(u??=new Set).add(l),p.push(l),l=Ot(l.next);if(l===null)continue}(m.f&ke)===0&&v.push(m),f=m,l=Ot(m.next)}if(e.outrogroups!==null){for(const T of e.outrogroups)T.pending.size===0&&(xn(e,Mt(T.done)),e.outrogroups?.delete(T));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var X=[];if(u!==void 0)for(m of u)(m.f&oe)===0&&X.push(m);for(;l!==null;)(l.f&oe)===0&&l!==e.fallback&&X.push(l),l=Ot(l.next);var Ce=X.length;if(Ce>0){var J=(r&Bn)!==0&&a===0?n:null;if(s){for(M=0;M<Ce;M+=1)X[M].nodes?.a?.measure();for(M=0;M<Ce;M+=1)X[M].nodes?.a?.fix()}js(e,X,J)}}s&&Ve(()=>{if(_!==void 0)for(m of _)m.nodes?.a?.apply()})}function xs(e,t,n,r,i,s,a,o){var l=(a&ri)!==0?(a&oi)===0?wr(n,!1,!1):Qe(n):null,u=(a&ii)!==0?Qe(i):null;return{v:l,i:u,e:pe(()=>(s(t,l??n,u??i,o),()=>{e.delete(r)}))}}function Ct(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&(t.f&ke)===0?t.nodes.start:n;r!==null;){var a=Ne(r);if(s.before(r),r===i)return;r=a}}function We(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function kn(e,t,n,r,i){R&&xt();var s=t.$$slots?.[n],a=!1;s===!0&&(s=t[n==="default"?"children":n],a=!0),s===void 0?i!==null&&i(e):s(e,a?()=>r:r)}function ks(e,t){rs(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=hn("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function Ns(e,t,n){var r=e==null?"":""+e;return r===""?null:r}function $s(e,t){return e==null?null:String(e)}function I(e,t,n,r,i,s){var a=e.__className;if(R||a!==n||a===void 0){var o=Ns(n);(!R||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=n}return s}function Ss(e,t,n,r){var i=e.__style;if(R||i!==t){var s=$s(t);(!R||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const Ts=Symbol("is custom element"),qs=Symbol("is html"),Os=wi?"link":"LINK";function Nn(e,t,n,r){var i=Cs(e);R&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Os)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[gi]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Zr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function y(e,t,n){var r=O,i=C;let s=R;R&&we(!1),ie(null),_e(null);try{t!=="style"&&($n.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Zr(e).includes(t):n&&typeof n=="object")?e[t]=n:Nn(e,t,n==null?n:String(n))}finally{ie(r),_e(i),s&&we(!0)}}function Cs(e){return e.__attributes??={[Ts]:e.nodeName.includes("-"),[qs]:e.namespaceURI===Yn}}var $n=new Map;function Zr(e){var t=e.getAttribute("is")||e.nodeName,n=$n.get(t);if(n)return n;$n.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=ci(i);for(var a in r)r[a].set&&n.push(a);i=Wn(i)}return n}function it(e,t,n,r){var i=r,s=!0,a=()=>(s&&(s=!1,i=r),i),o;o=e[t],o===void 0&&r!==void 0&&(o=a());var l;l=()=>{var v=e[t];return v===void 0?a():(s=!0,v)};var u=!1,f=Ht(()=>(u=!1,l())),_=C;return(function(v,p){if(arguments.length>0){const w=p?h(f):v;return ae(f,w),u=!0,i!==void 0&&(i=w),v}return ze&&u||(_.f&de)!==0?f.v:h(f)})}function As(e){return new Rs(e)}class Rs{#e;#n;constructor(t){var n=new Map,r=(s,a)=>{var o=wr(a,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return h(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===mi?!0:(h(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return ae(n.get(a)??r(a,o),o),Reflect.set(s,a,o)}});this.#n=(t.hydrate?gs:Wr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Fe(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||Lt(this,s,{get(){return this.#n[s]},set(a){this.#n[s]=a},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{ws(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let Qr;typeof HTMLElement=="function"&&(Qr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}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 i=>{const s=hn("slot");r!=="default"&&(s.name=r),$(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Ms(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 i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Wt(i,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=As({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ts(()=>{qr(()=>{this.$$r=!0;for(const r of Dt(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Wt(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Wt(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 Dt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Wt(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="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 Ms(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Ds(e,t,n,r,i,s){let a=class extends Qr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Dt(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Dt(t).forEach(o=>{Lt(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){l=Wt(o,l,t),this.$$d[o]=l;var u=this.$$c;if(u){var f=ft(u,o)?.get;f?u[o]=l:u.$set({[o]:l})}}})}),r.forEach(o=>{Lt(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}const ee={version:"0.66.1"},Ls=(e,t)=>e.reduce((n,r)=>{for(const i of t(r))(n[i]=n[i]||[]).push(r);return n},{});var st={},ei;function Vs(){if(ei)return st;ei=1,Object.defineProperty(st,"__esModule",{value:!0}),st.LanguageTranslator=void 0,st.getChildStyleToPass=e,st.addComponent=t;function e(r,i){var s,a,o="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(v){return Object.keys(r).includes(v.name)}))===null||a===void 0)&&a.length))for(var l=function(v){var p=i?.filter(function(w){return w.name===v&&w.defaultValue!==r[v]});p&&(o+="".concat(v,":").concat(r[v],";"))},u=0,f=Object.keys(r);u<f.length;u++){var _=f[u];l(_)}}catch(v){console.error("error getting child style to pass",v)}finally{return o}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)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(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-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=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(l+"-",""),"/").concat(a)}document.head.appendChild(o)}catch(u){console.warn(u)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,a){return r.formatDate(i,s,a||this.lang)},r.getDefaultLang=function(){var i,s,a,o="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)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},r.getDictionaryWord=function(i,s,a){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((o=s[a])===null||o===void 0)&&o[i]))return s[a][i];var l="",u=r.getDefaultLang();if(!a||u!==a){var f=s?.[u];f?.[i]&&(l=f[i])}return l},r.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 o=new Intl.DateTimeFormat(a||r.getDefaultLang(),s);return o.format(i)},r})();return st.LanguageTranslator=n,st}var te=Vs(),Is=q('<label class="svelte-yjqjiw"> </label>'),Ps=q("<hb-input-array-objects></hb-input-array-objects>",2),Fs=q("<hb-input-array-tags></hb-input-array-tags>",2),Js=q("<hb-input-text></hb-input-text>",2),Bs=q("<hb-input-color></hb-input-color>",2),Hs=q("<hb-input-range></hb-input-range>",2),zs=q("<hb-input-file></hb-input-file>",2),Ys=q("<hb-input-email></hb-input-email>",2),Us=q("<hb-input-date></hb-input-date>",2),Ws=q("<hb-input-datetime></hb-input-datetime>",2),Gs=q("<hb-input-checkbox></hb-input-checkbox>",2),Ks=q("<hb-input-number></hb-input-number>",2),Xs=q("<hb-input-area></hb-input-area>",2),Zs=q("<hb-input-radio></hb-input-radio>",2),Qs=q("<hb-input-select></hb-input-select>",2),eo=q("<hb-input-coords></hb-input-coords>",2),to=q('<div class="col mb-3 svelte-yjqjiw"><!> <!></div>'),no=q('<div class="row svelte-yjqjiw"></div>'),ro=q('<label class="svelte-yjqjiw"> </label>'),io=q("<hb-input-text></hb-input-text>",2),so=q("<hb-input-array-objects></hb-input-array-objects>",2),oo=q("<hb-input-array-tags></hb-input-array-tags>",2),ao=q("<hb-input-color></hb-input-color>",2),lo=q("<hb-input-range></hb-input-range>",2),uo=q("<hb-input-file></hb-input-file>",2),fo=q("<hb-input-email></hb-input-email>",2),co=q("<hb-input-date></hb-input-date>",2),ho=q("<hb-input-datetime></hb-input-datetime>",2),vo=q("<hb-input-checkbox></hb-input-checkbox>",2),po=q("<hb-input-number></hb-input-number>",2),_o=q("<hb-input-area></hb-input-area>",2),bo=q("<hb-input-radio></hb-input-radio>",2),mo=q("<hb-input-select></hb-input-select>",2),go=q("<hb-input-coords></hb-input-coords>",2),wo=q('<div class="col mb-3 svelte-yjqjiw"><!> <!></div>'),yo=q('<button part="main_button" type="button" class="btn btn-primary svelte-yjqjiw"><!></button>'),jo=q('<div id="button_container" part="button_container" class="svelte-yjqjiw"><span class="svelte-yjqjiw"><!></span> <!></div>'),Eo=q("<!> <!>",1),xo=q('<div class="container-fluid svelte-yjqjiw"><!></div>');const ko={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
|
-
|
|
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 ti(e,t){rr(t,!0),ks(e,ko);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=Nt(()=>{const b={};for(const E of s())if(E.type!=="row")b[E.id]=E.value;else if(E.type==="row"&&E.params?.columns?.length)for(const z of E.params.columns)b[z.id]=z.value;return b}),i=it(t,"id",7,""),s=it(t,"schema"),a=it(t,"i18nlang"),o=it(t,"show_validation",7,"no"),l=it(t,"hide_submit",7,!1),u=it(t,"submitted",7,"no"),f=it(t,"getvals",7,"no"),_=ve(Be({})),v=ve(Be({})),p=ve(Be({})),w=Nt(()=>{const b=[];for(const E of s())E.type==="row"&&E.params?.columns?.length?b.push(...E.params.columns):b.push(E);return Ls(b.filter(E=>E.dependencies?.length),E=>E.dependencies.map(z=>z.id))});function A(b){b?.forEach?.(E=>{const z=n[E.type];if(!z)throw new Error(`FormRenderer: Tried to render an unknown component type ${E.type}!`);z.options?.row&&A(E.params?.columns??[]),h(_)[E.id]=h(_)[E.id]||!E.dependencies?.length})}function m(b){return b?.map?.(E=>{const z=n[E.type];if(!z)throw new Error(`FormRenderer: Tried to render an unknown component type ${E.type}!`);return z.options?.row?{entry:E,columns:m(E.params?.columns??[]),options:z.options}:{entry:E,component:z.component,options:z.options||{}}})||[]}let M=Nt(()=>m(s()));l()===!0||l()==="yes"||l()==="true"?l(!0):l(!1),s()||console.warn("no schema provided"),es(()=>{if(typeof s()=="string")try{s(JSON.parse(s())),ae(v,{},!0),ae(p,{},!0),ae(_,{},!0),u()&&u()==="yes"&&s()&&typeof s()!="string"?J():u()==="yes"&&u("no"),console.log("effectform"),A(s())}catch(b){console.error("error with schema",s(),b)}});let B=Nt(()=>!h(v)||!Object.entries(h(v))?.length?!0:!!Object.entries(h(v)).find(([b,E])=>!E&&h(_)&&h(_)[b]));const F=b=>{console.log("canShow",b);for(const E of b.dependencies||[])if(h(_)&&!h(_)[E.id]||h(r)&&!h(r)[E.id]||h(r)&&E?.values&&!E?.values?.includes(h(r)[E.id]))return!1;return!0},ne=b=>{F(b)?bt(b,b.value):Ee(b)},bt=(b,E)=>{h(_)[b.id]=!0,b.type!=="row"&&(h(r)[b.id]=h(p)[b.id]??E);for(const z of h(w)[b.id]||[])ne(z)},Ee=b=>{h(_)[b.id]=!1,delete h(r)[b.id];for(const E of h(w)[b.id]||[])Ee(E)};te.addComponent({repoName:"@htmlbricks/hb-input-text",version:ee.version}),te.addComponent({repoName:"@htmlbricks/hb-input-date",version:ee.version}),te.addComponent({repoName:"@htmlbricks/hb-input-email",version:ee.version}),te.addComponent({repoName:"@htmlbricks/hb-input-checkbox",version:ee.version}),te.addComponent({repoName:"@htmlbricks/hb-input-number",version:ee.version}),te.addComponent({repoName:"@htmlbricks/hb-input-area",version:ee.version}),te.addComponent({repoName:"@htmlbricks/hb-input-radio",version:ee.version}),te.addComponent({repoName:"@htmlbricks/hb-input-select",version:ee.version}),te.addComponent({repoName:"@htmlbricks/hb-input-file",version:ee.version}),te.addComponent({repoName:"@htmlbricks/hb-input-color",version:ee.version}),te.addComponent({repoName:"@htmlbricks/hb-input-range",version:ee.version}),te.addComponent({repoName:"@htmlbricks/hb-input-datetime",version:ee.version}),te.addComponent({repoName:"@htmlbricks/hb-input-array-objects",version:ee.version}),te.addComponent({repoName:"@htmlbricks/hb-input-array-tags",version:ee.version}),te.addComponent({repoName:"@htmlbricks/hb-input-coords",version:ee.version});let X=ve(void 0);function Ce(b,E){b==="update"?(console.log("update",E),h(X)&&clearTimeout(h(X)),ae(X,setTimeout(()=>{t.$$host.dispatchEvent(new CustomEvent(b,{detail:E}))},300),!0)):t.$$host.dispatchEvent(new CustomEvent(b,{detail:E}))}const J=()=>{if(console.log("submitting form"),o("yes"),u("no"),console.log(h(B),JSON.stringify(h(v)),h(_),h(r)),h(B))return console.warn("Form is invalid");const b=Object.assign({_valid:!h(B)},h(r));Ce("submit",b)};function T(b){console.info("setValByMessage",b);let E;if(h(p)[b.id]!==b.value){if(h(p)[b.id]=b.value,h(_)[b.id]&&(h(r)[b.id]=b.value),h(w)[b.id])for(const z of h(w)[b.id])ne(z);E=Object.assign({_valid:!h(B),_id:i()},h(r))}h(v)[b.id]!==b.valid&&(h(v)[b.id]=b.valid,E=Object.assign({_valid:!h(B),_id:i()},h(r))),E&&Ce("update",E)}var mt={get id(){return i()},set id(b=""){i(b),Fe()},get schema(){return s()},set schema(b){s(b),Fe()},get i18nlang(){return a()},set i18nlang(b){a(b),Fe()},get show_validation(){return o()},set show_validation(b="no"){o(b),Fe()},get hide_submit(){return l()},set hide_submit(b=!1){l(b),Fe()},get submitted(){return u()},set submitted(b="no"){u(b),Fe()},get getvals(){return f()},set getvals(b="no"){f(b),Fe()}},fe=xo(),Sn=He(fe);{var Tn=b=>{var E=Eo(),z=dn(E);Xr(z,17,()=>h(M),({entry:ot,component:Ae,options:j,columns:W})=>ot.id,(ot,Ae)=>{let j=()=>h(Ae).entry,W=()=>h(Ae).component,Gt=()=>h(Ae).options,At=()=>h(Ae).columns;var gt=Yr(),qn=dn(gt);{var On=Ge=>{var at=no();Xr(at,21,At,({entry:wt,component:yt,options:An})=>wt.id,(wt,yt,An,ni)=>{let x=()=>h(yt).entry,G=()=>h(yt).component,Rn=()=>h(yt).options;var Kt=Yr(),Mn=dn(Kt);{var Dn=Rt=>{var jt=to(),Xt=He(jt);{var Ln=N=>{var d=Is(),V=He(d);Te(d),g(()=>{Nn(d,"for",x().id),Ur(V,`${x().label??""}${x().required?"*":""}`)}),$(N,d)};Ue(Xt,N=>{Rn().labelIsHandledByComponent||N(Ln)})}var Vn=zt(Xt,2);{var In=N=>{var d=Ps();g(()=>y(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>y(d,"show_validation",o())),I(d,1,"svelte-yjqjiw"),S("setVal",d,V=>T(V.detail)),$(N,d)},Pn=N=>{var d=Fs();g(()=>y(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>y(d,"show_validation",o())),I(d,1,"svelte-yjqjiw"),S("setVal",d,V=>T(V.detail)),$(N,d)},Fn=N=>{var d=Js();g(()=>y(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>y(d,"show_validation",o())),I(d,1,"svelte-yjqjiw"),S("setVal",d,V=>T(V.detail)),S("clickEnter",d,()=>J()),$(N,d)},k=N=>{var d=Bs();g(()=>y(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>y(d,"show_validation",o())),I(d,1,"svelte-yjqjiw"),S("setVal",d,V=>T(V.detail)),$(N,d)},c=N=>{var d=Hs();g(()=>y(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>y(d,"show_validation",o())),I(d,1,"svelte-yjqjiw"),S("setVal",d,V=>T(V.detail)),$(N,d)},L=N=>{var d=zs();g(()=>y(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>y(d,"show_validation",o())),I(d,1,"svelte-yjqjiw"),S("setVal",d,V=>T(V.detail)),$(N,d)},To=N=>{var d=Ys();g(()=>y(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>y(d,"show_validation",o())),I(d,1,"svelte-yjqjiw"),S("setVal",d,V=>T(V.detail)),S("clickEnter",d,()=>J()),$(N,d)},qo=N=>{var d=Us();g(()=>y(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>y(d,"show_validation",o())),I(d,1,"svelte-yjqjiw"),S("setVal",d,V=>T(V.detail)),S("clickEnter",d,()=>J()),$(N,d)},Oo=N=>{var d=Ws();g(()=>y(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>y(d,"show_validation",o())),I(d,1,"svelte-yjqjiw"),S("setVal",d,V=>T(V.detail)),S("clickEnter",d,()=>J()),$(N,d)},Co=N=>{var d=Gs();I(d,1,"checkbox-inline svelte-yjqjiw"),g(()=>y(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>y(d,"show_validation",o())),S("setVal",d,V=>T(V.detail)),$(N,d)},Ao=N=>{var d=Ks();g(()=>y(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>y(d,"show_validation",o())),I(d,1,"svelte-yjqjiw"),S("setVal",d,V=>T(V.detail)),S("clickEnter",d,()=>J()),$(N,d)},Ro=N=>{var d=Xs();g(()=>y(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>y(d,"show_validation",o())),I(d,1,"svelte-yjqjiw"),S("setVal",d,V=>T(V.detail)),S("clickEnter",d,()=>J()),$(N,d)},Mo=N=>{var d=Zs();g(()=>y(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>y(d,"show_validation",o())),I(d,1,"svelte-yjqjiw"),S("setVal",d,V=>T(V.detail)),$(N,d)},Do=N=>{var d=Qs();g(()=>y(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>y(d,"show_validation",o())),I(d,1,"svelte-yjqjiw"),S("setVal",d,V=>T(V.detail)),$(N,d)},Lo=N=>{var d=eo();g(()=>y(d,"schemaentry",JSON.stringify({...x(),value:h(p)[x().id]??x().value}))),g(()=>y(d,"i18nlang",a())),g(()=>y(d,"show_validation",o())),I(d,1,"svelte-yjqjiw"),S("setVal",d,V=>T(V.detail)),$(N,d)};Ue(Vn,N=>{G()==="hb-array-objects"?N(In):G()==="hb-input-array-tags"?N(Pn,1):G()==="hb-input-text"?N(Fn,2):G()==="hb-input-color"?N(k,3):G()==="hb-input-range"?N(c,4):G()==="hb-input-file"?N(L,5):G()==="hb-input-email"?N(To,6):G()==="hb-input-date"?N(qo,7):G()==="hb-input-datetime"?N(Oo,8):G()==="hb-input-checkbox"?N(Co,9):G()==="hb-input-number"?N(Ao,10):G()==="hb-input-area"?N(Ro,11):G()==="hb-input-radio"?N(Mo,12):G()==="hb-input-select"?N(Do,13):G()==="hb-input-coords"&&N(Lo,14)})}Te(jt),g(()=>Ss(jt,G()==="hb-input-checkbox"?"line-height:52px;":"")),$(Rt,jt)};Ue(Mn,Rt=>{h(_)[x().id]&&Rt(Dn)})}$(wt,Kt)}),Te(at),$(Ge,at)},Cn=Nt(()=>Gt()?.row&&(h(_)[j().id]||h(_)[j().id]!==!1)&&At()?.length?At().some(Ge=>h(_)[Ge.entry.id]):!1),So=Ge=>{var at=wo(),wt=He(at);{var yt=k=>{var c=ro(),L=He(c);Te(c),g(()=>{Nn(c,"for",j().id),Ur(L,`${j().label??""}${j().required?"*":""}`)}),$(k,c)};Ue(wt,k=>{Gt()?.labelIsHandledByComponent||k(yt)})}var An=zt(wt,2);{var ni=k=>{var c=io();g(()=>y(c,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>y(c,"show_validation",o())),I(c,1,"svelte-yjqjiw"),S("setVal",c,L=>T(L.detail)),S("clickEnter",c,()=>J()),$(k,c)},x=k=>{var c=so();g(()=>y(c,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>y(c,"show_validation",o())),I(c,1,"svelte-yjqjiw"),S("setVal",c,L=>T(L.detail)),$(k,c)},G=k=>{var c=oo();g(()=>y(c,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>y(c,"show_validation",o())),I(c,1,"svelte-yjqjiw"),S("setVal",c,L=>T(L.detail)),$(k,c)},Rn=k=>{var c=ao();g(()=>y(c,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>y(c,"show_validation",o())),I(c,1,"svelte-yjqjiw"),S("setVal",c,L=>T(L.detail)),$(k,c)},Kt=k=>{var c=lo();g(()=>y(c,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>y(c,"show_validation",o())),I(c,1,"svelte-yjqjiw"),S("setVal",c,L=>T(L.detail)),$(k,c)},Mn=k=>{var c=uo();g(()=>y(c,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>y(c,"show_validation",o())),I(c,1,"svelte-yjqjiw"),S("setVal",c,L=>T(L.detail)),$(k,c)},Dn=k=>{var c=fo();g(()=>y(c,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>y(c,"show_validation",o())),I(c,1,"svelte-yjqjiw"),S("setVal",c,L=>T(L.detail)),S("clickEnter",c,()=>J()),$(k,c)},Rt=k=>{var c=co();g(()=>y(c,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>y(c,"show_validation",o())),I(c,1,"svelte-yjqjiw"),S("setVal",c,L=>T(L.detail)),S("clickEnter",c,()=>J()),$(k,c)},jt=k=>{var c=ho();g(()=>y(c,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>y(c,"show_validation",o())),I(c,1,"svelte-yjqjiw"),S("setVal",c,L=>T(L.detail)),S("clickEnter",c,()=>J()),$(k,c)},Xt=k=>{var c=vo();g(()=>y(c,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>y(c,"show_validation",o())),I(c,1,"svelte-yjqjiw"),S("setVal",c,L=>T(L.detail)),$(k,c)},Ln=k=>{var c=po();g(()=>y(c,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>y(c,"show_validation",o())),I(c,1,"svelte-yjqjiw"),S("setVal",c,L=>T(L.detail)),S("clickEnter",c,()=>J()),$(k,c)},Vn=k=>{var c=_o();g(()=>y(c,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>y(c,"show_validation",o())),I(c,1,"svelte-yjqjiw"),S("setVal",c,L=>T(L.detail)),S("clickEnter",c,()=>J()),$(k,c)},In=k=>{var c=bo();g(()=>y(c,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>y(c,"show_validation",o())),I(c,1,"svelte-yjqjiw"),S("setVal",c,L=>T(L.detail)),$(k,c)},Pn=k=>{var c=mo();g(()=>y(c,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>y(c,"show_validation",o())),I(c,1,"svelte-yjqjiw"),S("setVal",c,L=>T(L.detail)),$(k,c)},Fn=k=>{var c=go();g(()=>y(c,"schemaentry",JSON.stringify({...j(),value:h(p)[j().id]??j().value},null,0))),g(()=>y(c,"i18nlang",a())),g(()=>y(c,"show_validation",o())),I(c,1,"svelte-yjqjiw"),S("setVal",c,L=>T(L.detail)),$(k,c)};Ue(An,k=>{W()==="hb-input-text"?k(ni):W()==="hb-input-array-objects"?k(x,1):W()==="hb-input-array-tags"?k(G,2):W()==="hb-input-color"?k(Rn,3):W()==="hb-input-range"?k(Kt,4):W()==="hb-input-file"?k(Mn,5):W()==="hb-input-email"?k(Dn,6):W()==="hb-input-date"?k(Rt,7):W()==="hb-input-datetime"?k(jt,8):W()==="hb-input-checkbox"?k(Xt,9):W()==="hb-input-number"?k(Ln,10):W()==="hb-input-area"?k(Vn,11):W()==="hb-input-radio"?k(In,12):W()==="hb-input-select"?k(Pn,13):W()==="hb-input-coords"&&k(Fn,14)})}Te(at),$(Ge,at)};Ue(qn,Ge=>{h(Cn)?Ge(On):h(_)&&h(_)[j().id]&&Ge(So,1)})}$(ot,gt)});var No=zt(z,2);{var $o=ot=>{var Ae=jo(),j=He(Ae),W=He(j);kn(W,t,"submit_button",{},At=>{var gt=yo(),qn=He(gt);kn(qn,t,"submit_label",{},On=>{var Cn=_s("Submit");$(On,Cn)}),Te(gt),$(At,gt)}),Te(j);var Gt=zt(j,2);kn(Gt,t,"other_buttons",{},null),Te(Ae),cs("click",j,()=>J()),$(ot,Ae)};Ue(No,ot=>{l()||ot($o)})}$(b,E)};Ue(Sn,b=>{s()&&typeof s()=="object"&&s()?.length&&b(Tn)})}return Te(fe),$(e,fe),ir(mt)}ds(["click"]),customElements.define("hb-form",Ds(ti,{id:{},schema:{},i18nlang:{},show_validation:{},hide_submit:{},submitted:{},getvals:{}},["submit_button","submit_label","other_buttons"],[],{mode:"open"})),Jn.Component=ti,Object.defineProperty(Jn,Symbol.toStringTag,{value:"Module"})})(this.form=this.form||{});
|
|
99
99
|
//# sourceMappingURL=main.iife.js.map
|