@htmlbricks/hb-form-contact 0.61.35 → 0.61.36

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