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