@htmlbricks/hb-form-contact 0.61.47 → 0.61.48
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 +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
(function(mt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Rn=1,Cn=2,gt="[",yt="[!",wt="]",Ee={},E=Symbol(),An="http://www.w3.org/1999/xhtml",bt=!1;var $t=Array.isArray,xn=Array.prototype.indexOf,kn=Array.from,Ce=Object.keys,ce=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,Pn=Object.getOwnPropertyDescriptors,Ln=Object.prototype,jn=Array.prototype,Et=Object.getPrototypeOf,Tt=Object.isExtensible;function Nt(e){for(var t=0;t<e.length;t++)e[t]()}function Mn(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const P=2,He=4,Ue=8,he=16,B=32,V=64,St=128,j=256,Ae=512,O=1024,M=2048,X=4096,J=8192,te=16384,Be=32768,Ge=65536,Ot=1<<17,Dn=1<<18,de=1<<19,In=1<<20,Ve=1<<21,Xe=1<<22,ne=1<<23,Je=Symbol("$state"),qn=Symbol("legacy props"),Fn=Symbol(""),Ke=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Yn=3,xe=8;function Wn(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Hn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Un(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Bn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Gn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Vn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Xn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Jn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Kn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function zn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ze(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let T=!1;function K(e){T=e}let x;function _e(e){if(e===null)throw ze(),Ee;return x=e}function Ze(){return _e(ge(x))}function Zn(){for(var e=0,t=x;;){if(t.nodeType===xe){var n=t.data;if(n===wt){if(e===0)return t;e-=1}else(n===gt||n===yt)&&(e+=1)}var r=ge(t);t.remove(),t=r}}function Qn(e){if(!e||e.nodeType!==xe)throw ze(),Ee;return e.data}function Rt(e){return e===this.v}function er(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function tr(e){return!er(e,this.v)}let nr=!1,q=null;function ke(e){q=e}function Ct(e,t=!1,n){q={p:q,c:null,e:null,s:e,x:null,l:null}}function At(e){var t=q,n=t.e;if(n!==null){t.e=null;for(var r of n)Gt(r)}return e!==void 0&&(t.x=e),q=t.p,e??{}}function xt(){return!0}const rr=new WeakMap;function ir(e){var t=g;if(t===null)return y.f|=ne,e;if((t.f&Be)===0){if((t.f&St)===0)throw!t.parent&&e instanceof Error&&kt(e),e;t.b.error(e)}else Qe(e,t)}function Qe(e,t){for(;t!==null;){if((t.f&St)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&kt(e),e}function kt(e){const t=rr.get(e);t&&(ce(e,"message",{value:t.message}),ce(e,"stack",{value:t.stack}))}let Te=[],et=[];function Pt(){var e=Te;Te=[],Nt(e)}function sr(){var e=et;et=[],Nt(e)}function ar(e){Te.length===0&&queueMicrotask(Pt),Te.push(e)}function lr(){Te.length>0&&Pt(),et.length>0&&sr()}function or(){const e=g.b;return e===null&&Wn(),e}function tt(e){var t=P|M,n=y!==null&&(y.f&P)!==0?y:null;return g===null||n!==null&&(n.f&j)!==0?t|=j:g.f|=de,{ctx:q,deps:null,effects:null,equals:Rt,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:n??g,ac:null}}function ur(e,t){let n=g;n===null&&Hn();var r=n.b,i=void 0,s=st(E),a=null,l=!y;return Or(()=>{try{var o=e();a&&Promise.resolve(o).catch(()=>{})}catch(h){o=Promise.reject(h)}var u=()=>o;i=a?.then(u,u)??Promise.resolve(o),a=i;var f=N,v=r.is_pending();l&&(r.update_pending_count(1),v||f.increment());const c=(h,d=void 0)=>{a=null,v||f.activate(),d?d!==Ke&&(s.f|=ne,at(s,d)):((s.f&ne)!==0&&(s.f^=ne),at(s,h)),l&&(r.update_pending_count(-1),v||f.decrement()),Mt()};if(i.then(c,h=>c(null,h||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(o=>{function u(f){function v(){f===i?o(s):u(i)}f.then(v,v)}u(i)})}function fr(e){const t=tt(e);return nn(t),t}function Lt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Z(t[n])}}function cr(e){for(var t=e.parent;t!==null;){if((t.f&P)===0)return t;t=t.parent}return null}function nt(e){var t,n=g;U(cr(e));try{Lt(e),t=on(e)}finally{U(n)}return t}function jt(e){var t=nt(e);if(e.equals(t)||(e.v=t,e.wv=an()),!ae){var n=(Q||(e.f&j)!==0)&&e.deps!==null?X:O;k(e,n)}}function vr(e,t,n){const r=tt;if(t.length===0){n(e.map(r));return}var i=N,s=g,a=hr(),l=or();Promise.all(t.map(o=>ur(o))).then(o=>{i?.activate(),a();try{n([...e.map(r),...o])}catch(u){(s.f&te)===0&&Qe(u,s)}i?.deactivate(),Mt()}).catch(o=>{l.error(o)})}function hr(){var e=g,t=y,n=q,r=N;return function(){U(e),D(t),ke(n),r?.activate()}}function Mt(){U(null),D(null),ke(null)}const rt=new Set;let N=null,Dt=new Set,Pe=[];function It(){const e=Pe.shift();Pe.length>0&&queueMicrotask(It),e()}let re=[],Le=null,it=!1,je=!1;class ie{current=new Map;#t=new Map;#e=new Set;#n=0;#u=null;#f=!1;#i=[];#a=[];#s=[];#r=[];#l=[];#c=[];#v=[];skipped_effects=new Set;process(t){re=[];for(const i of t)this.#d(i);if(this.#i.length===0&&this.#n===0){this.#h();var n=this.#s,r=this.#r;this.#s=[],this.#r=[],this.#l=[],N=null,Ft(n),Ft(r),N===null?N=this:rt.delete(this),this.#u?.resolve()}else this.#o(this.#s),this.#o(this.#r),this.#o(this.#l);for(const i of this.#i)we(i);for(const i of this.#a)we(i);this.#i=[],this.#a=[]}#d(t){t.f^=O;for(var n=t.first;n!==null;){var r=n.f,i=(r&(B|V))!==0,s=i&&(r&O)!==0,a=s||(r&J)!==0||this.skipped_effects.has(n);if(!a&&n.fn!==null){if(i)n.f^=O;else if((r&He)!==0)this.#r.push(n);else if((r&O)===0)if((r&Xe)!==0){var l=n.b?.is_pending()?this.#a:this.#i;l.push(n)}else De(n)&&((n.f&he)!==0&&this.#l.push(n),we(n));var o=n.first;if(o!==null){n=o;continue}}var u=n.parent;for(n=n.next;n===null&&u!==null;)n=u.next,u=u.parent}}#o(t){for(const n of t)((n.f&M)!==0?this.#c:this.#v).push(n),k(n,O);t.length=0}capture(t,n){this.#t.has(t)||this.#t.set(t,n),this.current.set(t,t.v)}activate(){N=this}deactivate(){N=null;for(const t of Dt)if(Dt.delete(t),t(),N!==null)break}neuter(){this.#f=!0}flush(){re.length>0?qt():this.#h(),N===this&&(this.#n===0&&rt.delete(this),this.deactivate())}#h(){if(!this.#f)for(const t of this.#e)t();this.#e.clear()}increment(){this.#n+=1}decrement(){if(this.#n-=1,this.#n===0){for(const t of this.#c)k(t,M),pe(t);for(const t of this.#v)k(t,X),pe(t);this.#s=[],this.#r=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=Mn()).promise}static ensure(){if(N===null){const t=N=new ie;rt.add(N),je||ie.enqueue(()=>{N===t&&t.flush()})}return N}static enqueue(t){Pe.length===0&&queueMicrotask(It),Pe.unshift(t)}}function Ne(e){var t=je;je=!0;try{for(var n;;){if(lr(),re.length===0&&(N?.flush(),re.length===0))return Le=null,n;qt()}}finally{je=t}}function qt(){var e=ye;it=!0;try{var t=0;for(en(!0);re.length>0;){var n=ie.ensure();if(t++>1e3){var r,i;dr()}n.process(re),z.clear()}}finally{it=!1,en(e),Le=null}}function dr(){try{Vn()}catch(e){Qe(e,Le)}}let se=null;function Ft(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(te|J))===0&&De(r)&&(se=[],we(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Kt(r):r.fn=null),se?.length>0)){z.clear();for(const i of se)we(i);se=[]}}se=null}}function pe(e){for(var t=Le=e;t.parent!==null;){t=t.parent;var n=t.f;if(it&&t===g&&(n&he)!==0)return;if((n&(V|B))!==0){if((n&O)===0)return;t.f^=O}}re.push(t)}const z=new Map;function st(e,t){var n={f:0,v:e,reactions:null,equals:Rt,rv:0,wv:0};return n}function F(e,t){const n=st(e);return nn(n),n}function _r(e,t=!1,n=!0){const r=st(e);return t||(r.equals=tr),r}function W(e,t,n=!1){y!==null&&(!le||(y.f&Ot)!==0)&&xt()&&(y.f&(P|he|Xe|Ot))!==0&&!G?.includes(e)&&zn();let r=n?me(t):t;return at(e,r)}function at(e,t){if(!e.equals(t)){var n=e.v;ae?z.set(e,t):z.set(e,n),e.v=t;var r=ie.ensure();r.capture(e,n),(e.f&P)!==0&&((e.f&M)!==0&&nt(e),k(e,(e.f&j)===0?O:X)),e.wv=an(),Yt(e,M),g!==null&&(g.f&O)!==0&&(g.f&(B|V))===0&&(I===null?Lr([e]):I.push(e))}return t}function lt(e){W(e,e.v+1)}function Yt(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],a=s.f,l=(a&M)===0;l&&k(s,t),(a&P)!==0?Yt(s,X):l&&((a&he)!==0&&se!==null&&se.push(s),pe(s))}}function me(e){if(typeof e!="object"||e===null||Je in e)return e;const t=Et(e);if(t!==Ln&&t!==jn)return e;var n=new Map,r=$t(e),i=F(0),s=oe,a=l=>{if(oe===s)return l();var o=y,u=oe;D(null),sn(s);var f=l();return D(o),sn(u),f};return r&&n.set("length",F(e.length)),new Proxy(e,{defineProperty(l,o,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Jn();var f=n.get(o);return f===void 0?f=a(()=>{var v=F(u.value);return n.set(o,v),v}):W(f,u.value,!0),!0},deleteProperty(l,o){var u=n.get(o);if(u===void 0){if(o in l){const f=a(()=>F(E));n.set(o,f),lt(i)}}else W(u,E),lt(i);return!0},get(l,o,u){if(o===Je)return e;var f=n.get(o),v=o in l;if(f===void 0&&(!v||ve(l,o)?.writable)&&(f=a(()=>{var h=me(v?l[o]:E),d=F(h);return d}),n.set(o,f)),f!==void 0){var c=A(f);return c===E?void 0:c}return Reflect.get(l,o,u)},getOwnPropertyDescriptor(l,o){var u=Reflect.getOwnPropertyDescriptor(l,o);if(u&&"value"in u){var f=n.get(o);f&&(u.value=A(f))}else if(u===void 0){var v=n.get(o),c=v?.v;if(v!==void 0&&c!==E)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(l,o){if(o===Je)return!0;var u=n.get(o),f=u!==void 0&&u.v!==E||Reflect.has(l,o);if(u!==void 0||g!==null&&(!f||ve(l,o)?.writable)){u===void 0&&(u=a(()=>{var c=f?me(l[o]):E,h=F(c);return h}),n.set(o,u));var v=A(u);if(v===E)return!1}return f},set(l,o,u,f){var v=n.get(o),c=o in l;if(r&&o==="length")for(var h=u;h<v.v;h+=1){var d=n.get(h+"");d!==void 0?W(d,E):h in l&&(d=a(()=>F(E)),n.set(h+"",d))}if(v===void 0)(!c||ve(l,o)?.writable)&&(v=a(()=>F(void 0)),W(v,me(u)),n.set(o,v));else{c=v.v!==E;var p=a(()=>me(u));W(v,p)}var S=Reflect.getOwnPropertyDescriptor(l,o);if(S?.set&&S.set.call(f,u),!c){if(r&&typeof o=="string"){var R=n.get("length"),$=Number(o);Number.isInteger($)&&$>=R.v&&W(R,$+1)}lt(i)}return!0},ownKeys(l){A(i);var o=Reflect.ownKeys(l).filter(v=>{var c=n.get(v);return c===void 0||c.v!==E});for(var[u,f]of n)f.v!==E&&!(u in l)&&o.push(u);return o},setPrototypeOf(){Kn()}})}var Wt,Ht,Ut,Bt;function ot(){if(Wt===void 0){Wt=window,Ht=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Ut=ve(t,"firstChild").get,Bt=ve(t,"nextSibling").get,Tt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Tt(n)&&(n.__t=void 0)}}function ut(e=""){return document.createTextNode(e)}function Me(e){return Ut.call(e)}function ge(e){return Bt.call(e)}function pr(e,t){if(!T){var n=Me(e);return n instanceof Comment&&n.data===""?ge(n):n}return x}function mr(e,t=1,n=!1){let r=T?x:e;for(var i;t--;)i=r,r=ge(r);if(!T)return r;if(n&&r?.nodeType!==Yn){var s=ut();return r===null?i?.after(s):r.before(s),_e(s),s}return _e(r),r}function gr(e){e.textContent=""}function yr(){return!1}function ft(e){var t=y,n=g;D(null),U(null);try{return e()}finally{D(t),U(n)}}function wr(e){g===null&&y===null&&Gn(),y!==null&&(y.f&j)!==0&&g===null&&Bn(),ae&&Un()}function br(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function H(e,t,n,r=!0){var i=g;i!==null&&(i.f&J)!==0&&(e|=J);var s={ctx:q,deps:null,nodes_start:null,nodes_end:null,f:e|M,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(n)try{we(s),s.f|=Be}catch(o){throw Z(s),o}else t!==null&&pe(s);if(r){var a=s;if(n&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&de)===0&&(a=a.first),a!==null&&(a.parent=i,i!==null&&br(a,i),y!==null&&(y.f&P)!==0&&(e&V)===0)){var l=y;(l.effects??=[]).push(a)}}return s}function $r(e){const t=H(Ue,null,!1);return k(t,O),t.teardown=e,t}function Er(e){wr();var t=g.f,n=!y&&(t&B)!==0&&(t&Be)===0;if(n){var r=q;(r.e??=[]).push(e)}else return Gt(e)}function Gt(e){return H(He|In,e,!1)}function Tr(e){ie.ensure();const t=H(V|de,e,!0);return()=>{Z(t)}}function Nr(e){ie.ensure();const t=H(V|de,e,!0);return(n={})=>new Promise(r=>{n.outro?zt(t,()=>{Z(t),r(void 0)}):(Z(t),r(void 0))})}function Sr(e){return H(He,e,!1)}function Or(e){return H(Xe|de,e,!0)}function Rr(e,t=0){return H(Ue|t,e,!0)}function Vt(e,t=[],n=[]){vr(t,n,r=>{H(Ue,()=>e(...r.map(A)),!0)})}function Cr(e,t=0){var n=H(he|t,e,!0);return n}function ct(e,t=!0){return H(B|de,e,!0,t)}function Xt(e){var t=e.teardown;if(t!==null){const n=ae,r=y;tn(!0),D(null);try{t.call(null)}finally{tn(n),D(r)}}}function Jt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&ft(()=>{i.abort(Ke)});var r=n.next;(n.f&V)!==0?n.parent=null:Z(n,t),n=r}}function Ar(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&B)===0&&Z(t),t=n}}function Z(e,t=!0){var n=!1;(t||(e.f&Dn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(xr(e.nodes_start,e.nodes_end),n=!0),Jt(e,t&&!n),Ie(e,0),k(e,te);var r=e.transitions;if(r!==null)for(const s of r)s.stop();Xt(e);var i=e.parent;i!==null&&i.first!==null&&Kt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function xr(e,t){for(;e!==null;){var n=e===t?null:ge(e);e.remove(),e=n}}function Kt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function zt(e,t){var n=[];Zt(e,n,!0),kr(n,()=>{Z(e),t&&t()})}function kr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function Zt(e,t,n){if((e.f&J)===0){if(e.f^=J,e.transitions!==null)for(const a of e.transitions)(a.is_global||n)&&t.push(a);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Ge)!==0||(r.f&B)!==0;Zt(r,t,s?n:!1),r=i}}}function Pr(e){Qt(e,!0)}function Qt(e,t){if((e.f&J)!==0){e.f^=J,(e.f&O)===0&&(k(e,M),pe(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Ge)!==0||(n.f&B)!==0;Qt(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let ye=!1;function en(e){ye=e}let ae=!1;function tn(e){ae=e}let y=null,le=!1;function D(e){y=e}let g=null;function U(e){g=e}let G=null;function nn(e){y!==null&&(G===null?G=[e]:G.push(e))}let C=null,L=0,I=null;function Lr(e){I=e}let rn=1,Se=0,oe=Se;function sn(e){oe=e}let Q=!1;function an(){return++rn}function De(e){var t=e.f;if((t&M)!==0)return!0;if((t&X)!==0){var n=e.deps,r=(t&j)!==0;if(n!==null){var i,s,a=(t&Ae)!==0,l=r&&g!==null&&!Q,o=n.length;if((a||l)&&(g===null||(g.f&te)===0)){var u=e,f=u.parent;for(i=0;i<o;i++)s=n[i],(a||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);a&&(u.f^=Ae),l&&f!==null&&(f.f&j)===0&&(u.f^=j)}for(i=0;i<o;i++)if(s=n[i],De(s)&&jt(s),s.wv>e.wv)return!0}(!r||g!==null&&!Q)&&k(e,O)}return!1}function ln(e,t,n=!0){var r=e.reactions;if(r!==null&&!G?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&P)!==0?ln(s,t,!1):t===s&&(n?k(s,M):(s.f&O)!==0&&k(s,X),pe(s))}}function on(e){var t=C,n=L,r=I,i=y,s=Q,a=G,l=q,o=le,u=oe,f=e.f;C=null,L=0,I=null,Q=(f&j)!==0&&(le||!ye||y===null),y=(f&(B|V))===0?e:null,G=null,ke(e.ctx),le=!1,oe=++Se,e.ac!==null&&(ft(()=>{e.ac.abort(Ke)}),e.ac=null);try{e.f|=Ve;var v=e.fn,c=v(),h=e.deps;if(C!==null){var d;if(Ie(e,L),h!==null&&L>0)for(h.length=L+C.length,d=0;d<C.length;d++)h[L+d]=C[d];else e.deps=h=C;if(!Q||(f&P)!==0&&e.reactions!==null)for(d=L;d<h.length;d++)(h[d].reactions??=[]).push(e)}else h!==null&&L<h.length&&(Ie(e,L),h.length=L);if(xt()&&I!==null&&!le&&h!==null&&(e.f&(P|X|M))===0)for(d=0;d<I.length;d++)ln(I[d],e);return i!==null&&i!==e&&(Se++,I!==null&&(r===null?r=I:r.push(...I))),(e.f&ne)!==0&&(e.f^=ne),c}catch(p){return ir(p)}finally{e.f^=Ve,C=t,L=n,I=r,y=i,Q=s,G=a,ke(l),le=o,oe=u}}function jr(e,t){let n=t.reactions;if(n!==null){var r=xn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&P)!==0&&(C===null||!C.includes(t))&&(k(t,X),(t.f&(j|Ae))===0&&(t.f^=Ae),Lt(t),Ie(t,0))}function Ie(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)jr(e,n[r])}function we(e){var t=e.f;if((t&te)===0){k(e,O);var n=g,r=ye;g=e,ye=!0;try{(t&he)!==0?Ar(e):Jt(e),Xt(e);var i=on(e);e.teardown=typeof i=="function"?i:null,e.wv=rn;var s;bt&&nr&&(e.f&M)!==0&&e.deps}finally{ye=r,g=n}}}function A(e){var t=e.f,n=(t&P)!==0;if(y!==null&&!le){var r=g!==null&&(g.f&te)!==0;if(!r&&!G?.includes(e)){var i=y.deps;if((y.f&Ve)!==0)e.rv<Se&&(e.rv=Se,C===null&&i!==null&&i[L]===e?L++:C===null?C=[e]:(!Q||!C.includes(e))&&C.push(e));else{(y.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[y]:s.includes(y)||s.push(y)}}}else if(n&&e.deps===null&&e.effects===null){var a=e,l=a.parent;l!==null&&(l.f&j)===0&&(a.f^=j)}if(ae){if(z.has(e))return z.get(e);if(n){a=e;var o=a.v;return((a.f&O)===0&&a.reactions!==null||un(a))&&(o=nt(a)),z.set(a,o),o}}else n&&(a=e,De(a)&&jt(a));if((e.f&ne)!==0)throw e.v;return e.v}function un(e){if(e.v===E)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(z.has(t)||(t.f&P)!==0&&un(t))return!0;return!1}const Mr=-7169;function k(e,t){e.f=e.f&Mr|t}const Dr=new Set,fn=new Set;function Ir(e,t,n,r={}){function i(s){if(r.capture||Oe.call(t,s),!s.cancelBubble)return ft(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ar(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function vt(e,t,n,r,i){var s={capture:r,passive:i},a=Ir(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&$r(()=>{t.removeEventListener(e,a,s)})}let cn=null;function Oe(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;cn=e;var a=0,l=cn===e&&e.__root;if(l){var o=i.indexOf(l);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;o<=u&&(a=o)}if(s=i[a]||e.target,s!==t){ce(e,"currentTarget",{configurable:!0,get(){return s||n}});var f=y,v=g;D(null),U(null);try{for(var c,h=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var p=s["__"+r];if(p!=null&&(!s.disabled||e.target===s))if($t(p)){var[S,...R]=p;S.apply(s,[e,...R])}else p.call(s,e)}catch($){c?h.push($):c=$}if(e.cancelBubble||d===t||d===null)break;s=d}if(c){for(let $ of h)queueMicrotask(()=>{throw $});throw c}}finally{e.__root=t,delete e.currentTarget,D(f),U(v)}}}function qr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function qe(e,t){var n=g;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function ht(e,t){var n=(t&Rn)!==0,r=(t&Cn)!==0,i,s=!e.startsWith("<!>");return()=>{if(T)return qe(x,null),x;i===void 0&&(i=qr(s?e:"<!>"+e),n||(i=Me(i)));var a=r||Ht?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=Me(a),o=a.lastChild;qe(l,o)}else qe(a,a);return a}}function Fe(e,t){if(T){g.nodes_end=x,Ze();return}e!==null&&e.before(t)}const Fr=["touchstart","touchmove"];function Yr(e){return Fr.includes(e)}function vn(e,t){return hn(e,t)}function Wr(e,t){ot(),t.intro=t.intro??!1;const n=t.target,r=T,i=x;try{for(var s=Me(n);s&&(s.nodeType!==xe||s.data!==gt);)s=ge(s);if(!s)throw Ee;K(!0),_e(s),Ze();const a=hn(e,{...t,anchor:s});if(x===null||x.nodeType!==xe||x.data!==wt)throw ze(),Ee;return K(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Ee&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Xn(),ot(),gr(n),K(!1),vn(e,t)}finally{K(r),_e(i)}}const be=new Map;function hn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0}){ot();var l=new Set,o=v=>{for(var c=0;c<v.length;c++){var h=v[c];if(!l.has(h)){l.add(h);var d=Yr(h);t.addEventListener(h,Oe,{passive:d});var p=be.get(h);p===void 0?(document.addEventListener(h,Oe,{passive:d}),be.set(h,1)):be.set(h,p+1)}}};o(kn(Dr)),fn.add(o);var u=void 0,f=Nr(()=>{var v=n??t.appendChild(ut());return ct(()=>{if(s){Ct({});var c=q;c.c=s}i&&(r.$$events=i),T&&qe(v,null),u=e(v,r)||{},T&&(g.nodes_end=x),s&&At()}),()=>{for(var c of l){t.removeEventListener(c,Oe);var h=be.get(c);--h===0?(document.removeEventListener(c,Oe),be.delete(c)):be.set(c,h)}fn.delete(o),v!==n&&v.parentNode?.removeChild(v)}});return dt.set(u,f),u}let dt=new WeakMap;function Hr(e,t){const n=dt.get(e);return n?(dt.delete(e),n(t)):Promise.resolve()}function dn(e,t,n=!1){T&&Ze();var r=e,i=null,s=null,a=E,l=n?Ge:0,o=!1;const u=(h,d=!0)=>{o=!0,c(d,h)};var f=null;function v(){f!==null&&(f.lastChild.remove(),r.before(f),f=null);var h=a?i:s,d=a?s:i;h&&Pr(h),d&&zt(d,()=>{a?s=null:i=null})}const c=(h,d)=>{if(a===(a=h))return;let p=!1;if(T){const w=Qn(r)===yt;!!a===w&&(r=Zn(),_e(r),K(!1),p=!0)}var S=yr(),R=r;if(S&&(f=document.createDocumentFragment(),f.append(R=ut())),a?i??=d&&ct(()=>d(R)):s??=d&&ct(()=>d(R)),S){var $=N,fe=a?i:s,_=a?s:i;fe&&$.skipped_effects.delete(fe),_&&$.skipped_effects.add(_),$.add_callback(v)}else v();p&&K(!0)};Cr(()=>{o=!1,t(u),o||c(null,null)},l),T&&(r=x)}function Ur(e,t){Sr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function Br(e,t){return e==null?null:String(e)}function Gr(e,t,n,r){var i=e.__style;if(T||i!==t){var s=Br(t);(!T||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const Vr=Symbol("is custom element"),Xr=Symbol("is html");function Jr(e,t,n,r){var i=Kr(e);T&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Fn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&pn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function _n(e,t,n){var r=y,i=g;let s=T;T&&K(!1),D(null),U(null);try{t!=="style"&&(_t.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?pn(e).includes(t):n&&typeof n=="object")?e[t]=n:Jr(e,t,n==null?n:String(n))}finally{D(r),U(i),s&&K(!0)}}function Kr(e){return e.__attributes??={[Vr]:e.nodeName.includes("-"),[Xr]:e.namespaceURI===An}}var _t=new Map;function pn(e){var t=e.getAttribute("is")||e.nodeName,n=_t.get(t);if(n)return n;_t.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Pn(i);for(var a in r)r[a].set&&n.push(a);i=Et(i)}return n}function Ye(e,t,n,r){var i=r,s=!0,a=()=>(s&&(s=!1,i=r),i),l;l=e[t],l===void 0&&r!==void 0&&(l=a());var o;o=()=>{var c=e[t];return c===void 0?a():(s=!0,c)};var u=!1,f=tt(()=>(u=!1,o())),v=g;return(function(c,h){if(arguments.length>0){const d=h?A(f):c;return W(f,d),u=!0,i!==void 0&&(i=d),c}return ae&&u||(v.f&te)!==0?f.v:A(f)})}function zr(e){return new Zr(e)}class Zr{#t;#e;constructor(t){var n=new Map,r=(s,a)=>{var l=_r(a,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return A(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===qn?!0:(A(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return W(n.get(a)??r(a,l),l),Reflect.set(s,a,l)}});this.#e=(t.hydrate?Wr:vn)(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)&&Ne(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||ce(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=()=>{Hr(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let mn;typeof HTMLElement=="function"&&(mn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),Fe(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Qr(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=We(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=zr({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Tr(()=>{Rr(()=>{this.$$r=!0;for(const r of Ce(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=We(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=We(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ce(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function We(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Qr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function ei(e,t,n,r,i,s){let a=class extends mn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Ce(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Ce(t).forEach(l=>{ce(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=We(l,o,t),this.$$d[l]=o;var u=this.$$c;if(u){var f=ve(u,l)?.get;f?u[l]=o:u.$set({[l]:o})}}})}),r.forEach(l=>{ce(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}function ti(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ue={},gn;function ni(){if(gn)return ue;gn=1,Object.defineProperty(ue,"__esModule",{value:!0}),ue.LanguageTranslator=void 0,ue.getChildStyleToPass=e,ue.addComponent=t;function e(r,i){var s,a,l="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(c){return Object.keys(r).includes(c.name)}))===null||a===void 0)&&a.length))for(var o=function(c){var h=i?.filter(function(d){return d.name===c&&d.defaultValue!==r[c]});h&&(l+="".concat(c,":").concat(r[c],";"))},u=0,f=Object.keys(r);u<f.length;u++){var v=f[u];o(v)}}catch(c){console.error("error getting child style to pass",c)}finally{return l}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var a=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var l=document.createElement("script");if(l.id=s+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(a),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var o=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(o+"-",""),"/").concat(a)}document.head.appendChild(l)}catch(u){console.warn(u)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,a){return r.formatDate(i,s,a||this.lang)},r.getDefaultLang=function(){var i,s,a,l,o,u="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)&&(u=(o=(l=navigator.languages[0])===null||l===void 0?void 0:l.split("-")[0])===null||o===void 0?void 0:o.toLowerCase()),u},r.getDictionaryWord=function(i,s,a){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((l=s[a])===null||l===void 0)&&l[i]))return s[a][i];var o="",u=r.getDefaultLang();if(!a||u!==a){var f=s?.[u];f?.[i]&&(o=f[i])}return o},r.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(a||r.getDefaultLang(),s);return l.format(i)},r})();return ue.LanguageTranslator=n,ue}var yn=ni();const wn={version:"0.61.47"};var $e={},pt,bn;function ri(){if(bn)return pt;bn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,o=`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Ee&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Xn(),ot(),gr(n),K(!1),vn(e,t)}finally{K(r),_e(i)}}const be=new Map;function hn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0}){ot();var l=new Set,o=v=>{for(var c=0;c<v.length;c++){var h=v[c];if(!l.has(h)){l.add(h);var d=Yr(h);t.addEventListener(h,Oe,{passive:d});var p=be.get(h);p===void 0?(document.addEventListener(h,Oe,{passive:d}),be.set(h,1)):be.set(h,p+1)}}};o(kn(Dr)),fn.add(o);var u=void 0,f=Nr(()=>{var v=n??t.appendChild(ut());return ct(()=>{if(s){Ct({});var c=q;c.c=s}i&&(r.$$events=i),T&&qe(v,null),u=e(v,r)||{},T&&(g.nodes_end=x),s&&At()}),()=>{for(var c of l){t.removeEventListener(c,Oe);var h=be.get(c);--h===0?(document.removeEventListener(c,Oe),be.delete(c)):be.set(c,h)}fn.delete(o),v!==n&&v.parentNode?.removeChild(v)}});return dt.set(u,f),u}let dt=new WeakMap;function Hr(e,t){const n=dt.get(e);return n?(dt.delete(e),n(t)):Promise.resolve()}function dn(e,t,n=!1){T&&Ze();var r=e,i=null,s=null,a=E,l=n?Ge:0,o=!1;const u=(h,d=!0)=>{o=!0,c(d,h)};var f=null;function v(){f!==null&&(f.lastChild.remove(),r.before(f),f=null);var h=a?i:s,d=a?s:i;h&&Pr(h),d&&zt(d,()=>{a?s=null:i=null})}const c=(h,d)=>{if(a===(a=h))return;let p=!1;if(T){const w=Qn(r)===yt;!!a===w&&(r=Zn(),_e(r),K(!1),p=!0)}var S=yr(),R=r;if(S&&(f=document.createDocumentFragment(),f.append(R=ut())),a?i??=d&&ct(()=>d(R)):s??=d&&ct(()=>d(R)),S){var $=N,fe=a?i:s,_=a?s:i;fe&&$.skipped_effects.delete(fe),_&&$.skipped_effects.add(_),$.add_callback(v)}else v();p&&K(!0)};Cr(()=>{o=!1,t(u),o||c(null,null)},l),T&&(r=x)}function Ur(e,t){Sr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function Br(e,t){return e==null?null:String(e)}function Gr(e,t,n,r){var i=e.__style;if(T||i!==t){var s=Br(t);(!T||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const Vr=Symbol("is custom element"),Xr=Symbol("is html");function Jr(e,t,n,r){var i=Kr(e);T&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Fn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&pn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function _n(e,t,n){var r=y,i=g;let s=T;T&&K(!1),D(null),U(null);try{t!=="style"&&(_t.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?pn(e).includes(t):n&&typeof n=="object")?e[t]=n:Jr(e,t,n==null?n:String(n))}finally{D(r),U(i),s&&K(!0)}}function Kr(e){return e.__attributes??={[Vr]:e.nodeName.includes("-"),[Xr]:e.namespaceURI===An}}var _t=new Map;function pn(e){var t=e.getAttribute("is")||e.nodeName,n=_t.get(t);if(n)return n;_t.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Pn(i);for(var a in r)r[a].set&&n.push(a);i=Et(i)}return n}function Ye(e,t,n,r){var i=r,s=!0,a=()=>(s&&(s=!1,i=r),i),l;l=e[t],l===void 0&&r!==void 0&&(l=a());var o;o=()=>{var c=e[t];return c===void 0?a():(s=!0,c)};var u=!1,f=tt(()=>(u=!1,o())),v=g;return(function(c,h){if(arguments.length>0){const d=h?A(f):c;return W(f,d),u=!0,i!==void 0&&(i=d),c}return ae&&u||(v.f&te)!==0?f.v:A(f)})}function zr(e){return new Zr(e)}class Zr{#t;#e;constructor(t){var n=new Map,r=(s,a)=>{var l=_r(a,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return A(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===qn?!0:(A(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return W(n.get(a)??r(a,l),l),Reflect.set(s,a,l)}});this.#e=(t.hydrate?Wr:vn)(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)&&Ne(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||ce(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=()=>{Hr(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let mn;typeof HTMLElement=="function"&&(mn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),Fe(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Qr(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=We(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=zr({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Tr(()=>{Rr(()=>{this.$$r=!0;for(const r of Ce(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=We(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=We(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ce(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function We(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Qr(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function ei(e,t,n,r,i,s){let a=class extends mn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Ce(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Ce(t).forEach(l=>{ce(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=We(l,o,t),this.$$d[l]=o;var u=this.$$c;if(u){var f=ve(u,l)?.get;f?u[l]=o:u.$set({[l]:o})}}})}),r.forEach(l=>{ce(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}function ti(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ue={},gn;function ni(){if(gn)return ue;gn=1,Object.defineProperty(ue,"__esModule",{value:!0}),ue.LanguageTranslator=void 0,ue.getChildStyleToPass=e,ue.addComponent=t;function e(r,i){var s,a,l="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(c){return Object.keys(r).includes(c.name)}))===null||a===void 0)&&a.length))for(var o=function(c){var h=i?.filter(function(d){return d.name===c&&d.defaultValue!==r[c]});h&&(l+="".concat(c,":").concat(r[c],";"))},u=0,f=Object.keys(r);u<f.length;u++){var v=f[u];o(v)}}catch(c){console.error("error getting child style to pass",c)}finally{return l}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var a=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var l=document.createElement("script");if(l.id=s+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(a),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var o=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(o+"-",""),"/").concat(a)}document.head.appendChild(l)}catch(u){console.warn(u)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,a){return r.formatDate(i,s,a||this.lang)},r.getDefaultLang=function(){var i,s,a,l,o,u="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)&&(u=(o=(l=navigator.languages[0])===null||l===void 0?void 0:l.split("-")[0])===null||o===void 0?void 0:o.toLowerCase()),u},r.getDictionaryWord=function(i,s,a){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((l=s[a])===null||l===void 0)&&l[i]))return s[a][i];var o="",u=r.getDefaultLang();if(!a||u!==a){var f=s?.[u];f?.[i]&&(o=f[i])}return o},r.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(a||r.getDefaultLang(),s);return l.format(i)},r})();return ue.LanguageTranslator=n,ue}var yn=ni();const wn={version:"0.61.48"};var $e={},pt,bn;function ri(){if(bn)return pt;bn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,o=`
|
|
3
3
|
`,u="/",f="*",v="",c="comment",h="declaration";pt=function(p,S){if(typeof p!="string")throw new TypeError("First argument must be a string");if(!p)return[];S=S||{};var R=1,$=1;function fe(b){var m=b.match(t);m&&(R+=m.length);var Y=b.lastIndexOf(o);$=~Y?b.length-Y:$+b.length}function _(){var b={line:R,column:$};return function(m){return m.position=new w(b),Nn(),m}}function w(b){this.start=b,this.end={line:R,column:$},this.source=S.source}w.prototype.content=p;function ee(b){var m=new Error(S.source+":"+R+":"+$+": "+b);if(m.reason=b,m.filename=S.source,m.line=R,m.column=$,m.source=p,!S.silent)throw m}function Re(b){var m=b.exec(p);if(m){var Y=m[0];return fe(Y),p=p.slice(Y.length),m}}function Nn(){Re(n)}function Sn(b){var m;for(b=b||[];m=On();)m!==!1&&b.push(m);return b}function On(){var b=_();if(!(u!=p.charAt(0)||f!=p.charAt(1))){for(var m=2;v!=p.charAt(m)&&(f!=p.charAt(m)||u!=p.charAt(m+1));)++m;if(m+=2,v===p.charAt(m-1))return ee("End of comment missing");var Y=p.slice(2,m-2);return $+=2,fe(Y),p=p.slice(m),$+=2,b({type:c,comment:Y})}}function fi(){var b=_(),m=Re(r);if(m){if(On(),!Re(i))return ee("property missing ':'");var Y=Re(s),vi=b({type:h,property:d(m[0].replace(e,v)),value:Y?d(Y[0].replace(e,v)):v});return Re(a),vi}}function ci(){var b=[];Sn(b);for(var m;m=fi();)m!==!1&&(b.push(m),Sn(b));return b}return Nn(),ci()};function d(p){return p?p.replace(l,v):v}return pt}var $n;function ii(){if($n)return $e;$n=1;var e=$e&&$e.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty($e,"__esModule",{value:!0}),$e.default=n;var t=e(ri());function n(r,i){var s=null;if(!r||typeof r!="string")return s;var a=(0,t.default)(r),l=typeof i=="function";return a.forEach(function(o){if(o.type==="declaration"){var u=o.property,f=o.value;l?i(u,f,o):f&&(s=s||{},s[u]=f)}}),s}return $e}var si=ii();const En=ti(si);En.default;var ai=ht("<hb-captcha-google-recaptcha-v2-invisible></hb-captcha-google-recaptcha-v2-invisible>",2),li=ht("<hb-form></hb-form>",2),oi=ht("<!> <!>",1);const ui={hash:"svelte-a6mk1p",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");:host {font-family:"Roboto", sans-serif;display:block;margin:40px 0px 40px 0px;}'};function Tn(e,t){Ct(t,!0),Ur(e,ui);let n=F("");me({});let r=Ye(t,"id",7,""),i=Ye(t,"informations",7,void 0),s=Ye(t,"privacy_policy",7,void 0),a=Ye(t,"captcha",7,void 0),l,o=F(!1);Er(()=>{if(typeof a()=="string")try{a(JSON.parse(a()))}catch(_){console.error("error parsing captcha",_)}if(typeof i()=="string")try{i(JSON.parse(i()))}catch(_){console.error("error parsing informations",_)}if(typeof s()=="string")try{s(JSON.parse(s()))}catch(_){console.error("error parsing privacy_policy",_)}});let u=fr(()=>{const _=[];if(!i()||typeof i()!="object")return[];if(i()?.name){const w={id:"name",name:"name",label:i().name.label||"Name",type:"text",required:!!i().name.required,placeholder:i().name.placeholder||"Your name",value:i().name.value||"",validation:{min:{value:3,message:"Name must be at least 3 characters long"}}};_.push(w)}if(i()?.email){const w={id:"email",name:"email",label:i().email.label||"email",type:"email",required:!!i().email.required,placeholder:i().email.placeholder||"Your email",value:i().email.value||"",validation:{min:{value:3,message:"email must be at least 3 characters long"}}};_.push(w)}if(i()?.phone){const w={id:"phone",name:"phone",label:i().phone.label||"phone",type:"text",required:!!i().phone.required,placeholder:i().phone.placeholder||"Your phone",value:i().phone.value||"",validation:{min:{value:3,message:"phone must be at least 3 characters long"}}};_.push(w)}if(i()?.subject){const w={id:"subject",name:"subject",label:i().subject.label||"Subject",type:"text",required:!!i().subject.required,placeholder:i().subject.placeholder||"Email Subject",value:i().subject.value||"",validation:{min:{value:3,message:"Name must be at least 3 characters long"}}};_.push(w)}if(i()?.message){const w={id:"message",name:"message",label:i().message.label||"Message",type:"textarea",required:!!i().message.required,placeholder:i().message.placeholder||"Your message here...",value:i().message.value||"",validation:{min:{value:3,message:"Name must be at least 3 characters long"}}};_.push(w)}if(s()?.input){const w={id:"policy",name:"policy",label:s().input,type:"checkbox",required:s().required,value:!1,valid:!1,error:""};_.push(w)}return _});yn.addComponent({repoName:"@htmlbricks/hb-form",version:wn.version}),yn.addComponent({repoName:"@htmlbricks/hb-captcha-google-recaptcha-v2-invisible",version:wn.version});function f(_,w){t.$$host.dispatchEvent(new CustomEvent(_,{detail:w}))}function v(_){if(!_._valid)return console.error("is not yet valid!",_);console.log("submit",a()),a()?.siteKey?(W(o,!0),l=_):f("formContactSubmit",_)}function c(_){console.log(_)}function h(_){f("formContactSubmitWithCaptcha",Object.assign({response:_.response,type:"recaptcha-v2-invisible"},l))}var d={get id(){return r()},set id(_=""){r(_),Ne()},get informations(){return i()},set informations(_=void 0){i(_),Ne()},get privacy_policy(){return s()},set privacy_policy(_=void 0){s(_),Ne()},get captcha(){return a()},set captcha(_=void 0){a(_),Ne()}},p=oi(),S=pr(p);{var R=_=>{var w=ai();Vt(()=>_n(w,"api_key",a().siteKey)),vt("googleRecaptchaV2Response",w,ee=>h(ee.detail)),Fe(_,w)};dn(S,_=>{a()?.siteKey&&A(o)&&_(R)})}var $=mr(S,2);{var fe=_=>{var w=li();Gr(w,A(n)),Vt(()=>_n(w,"schema",JSON.stringify(A(u)))),vt("submit",w,ee=>v(ee.detail)),vt("update",w,ee=>c(ee.detail)),Fe(_,w)};dn($,_=>{A(u)&&typeof A(u)=="object"&&A(u).length&&_(fe)})}return Fe(e,p),At(d)}customElements.define("hb-form-contact",ei(Tn,{id:{},informations:{},privacy_policy:{},captcha:{}},[],[],!0)),mt.Component=Tn,Object.defineProperty(mt,Symbol.toStringTag,{value:"Module"})})(this["form-contact"]=this["form-contact"]||{});
|
|
4
4
|
//# sourceMappingURL=main.iife.js.map
|
package/manifest.json
CHANGED