@htmlbricks/hb-footer 0.66.0 → 0.66.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,5 +1,5 @@
1
- (function(Xn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Zn=1,Qn=2,tr=4,oi=8,li=16,ai=1,si=4,mi=8,pi=16,di=1,vi=2,er="[",en="[!",Rn="]",je={},X=Symbol(),ci="http://www.w3.org/1999/xhtml",Sn=!1;var nr=Array.isArray,gi=Array.prototype.indexOf,Nn=Array.from,nn=Object.keys,rn=Object.defineProperty,se=Object.getOwnPropertyDescriptor,fi=Object.getOwnPropertyDescriptors,bi=Object.prototype,ki=Array.prototype,rr=Object.getPrototypeOf,ir=Object.isExtensible;function ui(t){for(var e=0;e<t.length;e++)t[e]()}function or(){var t,e,n=new Promise((r,i)=>{t=r,e=i});return{promise:n,resolve:t,reject:e}}const Y=2,Tn=4,On=8,It=16,Ft=32,te=64,on=128,Rt=512,Z=1024,pt=2048,Jt=4096,vt=8192,Ut=16384,ln=32768,$e=65536,lr=1<<17,zn=1<<18,me=1<<19,xi=1<<20,pe=32768,Cn=1<<21,Bn=1<<22,ee=1<<23,an=Symbol("$state"),ar=Symbol("legacy props"),hi=Symbol(""),Ee=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},sn=3,de=8;function yi(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function wi(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function _i(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ji(t){throw new Error("https://svelte.dev/e/effect_orphan")}function $i(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ei(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ai(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ri(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Si(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ni(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ti(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function mn(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function Oi(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function ct(t){w=t}let E;function H(t){if(t===null)throw mn(),je;return E=t}function Je(){return H(ht(E))}function k(t){if(w){if(ht(E)!==null)throw mn(),je;E=t}}function zi(t=1){if(w){for(var e=t,n=E;e--;)n=ht(n);E=n}}function pn(t=!0){for(var e=0,n=E;;){if(n.nodeType===de){var r=n.data;if(r===Rn){if(e===0)return n;e-=1}else(r===er||r===en)&&(e+=1)}var i=ht(n);t&&n.remove(),n=i}}function sr(t){if(!t||t.nodeType!==de)throw mn(),je;return t.data}function mr(t){return t===this.v}function Ci(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function pr(t){return!Ci(t,this.v)}let Bi=!1,kt=null;function Ae(t){kt=t}function dr(t,e=!1,n){kt={p:kt,i:!1,c:null,e:null,s:t,x:null,l:null}}function vr(t){var e=kt,n=e.e;if(n!==null){e.e=null;for(var r of n)zr(r)}return t!==void 0&&(e.x=t),e.i=!0,kt=e.p,t??{}}function cr(){return!0}let ve=[];function gr(){var t=ve;ve=[],ui(t)}function dn(t){if(ve.length===0&&!Ue){var e=ve;queueMicrotask(()=>{e===ve&&gr()})}ve.push(t)}function Di(){for(;ve.length>0;)gr()}function fr(t){var e=A;if(e===null)return _.f|=ee,t;if((e.f&ln)===0){if((e.f&on)===0)throw t;e.b.error(t)}else Re(t,e)}function Re(t,e){for(;e!==null;){if((e.f&on)!==0)try{e.b.error(t);return}catch(n){t=n}e=e.parent}throw t}const vn=new Set;let D=null,ut=null,xt=[],cn=null,Dn=!1,Ue=!1;class St{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#s=null;#o=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(e){xt=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of e)this.#l(r,n);this.is_fork||this.#p(),this.is_deferred()?(this.#a(n.effects),this.#a(n.render_effects),this.#a(n.block_effects)):(D=null,kr(n.render_effects),kr(n.effects),this.#s?.resolve()),ut=null}#l(e,n){e.f^=Z;for(var r=e.first;r!==null;){var i=r.f,o=(i&(Ft|te))!==0,l=o&&(i&Z)!==0,s=l||(i&vt)!==0||this.skipped_effects.has(r);if((r.f&on)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!s&&r.fn!==null){o?r.f^=Z:(i&Tn)!==0?n.effects.push(r):He(r)&&((r.f&It)!==0&&n.block_effects.push(r),Ve(r));var a=r.first;if(a!==null){r=a;continue}}var m=r.parent;for(r=r.next;r===null&&m!==null;)m===n.effect&&(this.#a(n.effects),this.#a(n.render_effects),this.#a(n.block_effects),n=n.parent),r=m.next,m=m.parent}}#a(e){for(const n of e)((n.f&pt)!==0?this.#o:this.#i).push(n),this.#m(n.deps),tt(n,Z)}#m(e){if(e!==null)for(const n of e)(n.f&Y)===0||(n.f&pe)===0||(n.f^=pe,this.#m(n.deps))}capture(e,n){this.previous.has(e)||this.previous.set(e,n),(e.f&ee)===0&&(this.current.set(e,e.v),ut?.set(e,e.v))}activate(){D=this,this.apply()}deactivate(){D===this&&(D=null,ut=null)}flush(){if(this.activate(),xt.length>0){if(br(),D!==null&&D!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const e of this.#t)e(this);this.#t.clear()}#p(){if(this.#r===0){for(const e of this.#e)e();this.#e.clear()}this.#n===0&&this.#d()}#d(){if(vn.size>1){this.previous.clear();var e=ut,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const o of vn){if(o===this){n=!1;continue}const l=[];for(const[a,m]of this.current){if(o.current.has(a))if(n&&m!==o.current.get(a))o.current.set(a,m);else continue;l.push(a)}if(l.length===0)continue;const s=[...o.current.keys()].filter(a=>!this.current.has(a));if(s.length>0){var i=xt;xt=[];const a=new Set,m=new Map;for(const p of l)ur(p,s,a,m);if(xt.length>0){D=o,o.apply();for(const p of xt)o.#l(p,r);o.deactivate()}xt=i}}D=null,ut=e}this.committed=!0,vn.delete(this)}increment(e){this.#n+=1,e&&(this.#r+=1)}decrement(e){this.#n-=1,e&&(this.#r-=1),this.revive()}revive(){for(const e of this.#o)tt(e,pt),ce(e);for(const e of this.#i)tt(e,Jt),ce(e);this.#o=[],this.#i=[],this.flush()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#s??=or()).promise}static ensure(){if(D===null){const e=D=new St;vn.add(D),Ue||St.enqueue(()=>{D===e&&e.flush()})}return D}static enqueue(e){dn(e)}apply(){}}function zt(t){var e=Ue;Ue=!0;try{for(var n;;){if(Di(),xt.length===0&&(D?.flush(),xt.length===0))return cn=null,n;br()}}finally{Ue=e}}function br(){var t=ie;Dn=!0;var e=null;try{var n=0;for(kn(!0);xt.length>0;){var r=St.ensure();if(n++>1e3){var i,o;Pi()}r.process(xt),ne.clear()}}finally{Dn=!1,kn(t),cn=null}}function Pi(){try{$i()}catch(t){Re(t,cn)}}let qt=null;function kr(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&(Ut|vt))===0&&He(r)&&(qt=new Set,Ve(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Pr(r):r.fn=null),qt?.size>0)){ne.clear();for(const i of qt){if((i.f&(Ut|vt))!==0)continue;const o=[i];let l=i.parent;for(;l!==null;)qt.has(l)&&(qt.delete(l),o.push(l)),l=l.parent;for(let s=o.length-1;s>=0;s--){const a=o[s];(a.f&(Ut|vt))===0&&Ve(a)}}qt.clear()}}qt=null}}function ur(t,e,n,r){if(!n.has(t)&&(n.add(t),t.reactions!==null))for(const i of t.reactions){const o=i.f;(o&Y)!==0?ur(i,e,n,r):(o&(Bn|It))!==0&&(o&pt)===0&&xr(i,e,r)&&(tt(i,pt),ce(i))}}function xr(t,e,n){const r=n.get(t);if(r!==void 0)return r;if(t.deps!==null)for(const i of t.deps){if(e.includes(i))return!0;if((i.f&Y)!==0&&xr(i,e,n))return n.set(i,!0),!0}return n.set(t,!1),!1}function ce(t){for(var e=cn=t;e.parent!==null;){e=e.parent;var n=e.f;if(Dn&&e===A&&(n&It)!==0&&(n&zn)===0)return;if((n&(te|Ft))!==0){if((n&Z)===0)return;e.f^=Z}}xt.push(e)}function Li(t){let e=0,n=fe(0),r;return()=>{fn()&&(y(n),Cr(()=>(e===0&&(r=Wr(()=>t(()=>qe(n)))),e+=1,()=>{dn(()=>{e-=1,e===0&&(r?.(),r=void 0,qe(n))})})))}}var Mi=$e|me|on;function Gi(t,e,n){new Ii(t,e,n)}class Ii{parent;#e=!1;#t;#n=w?E:null;#r;#s;#o;#i=null;#l=null;#a=null;#m=null;#p=null;#d=0;#v=0;#g=!1;#c=null;#x=Li(()=>(this.#c=fe(this.#d),()=>{this.#c=null}));constructor(e,n,r){this.#t=e,this.#r=n,this.#s=r,this.parent=A.b,this.#e=!!this.#r.pending,this.#o=bn(()=>{if(A.b=this,w){const o=this.#n;Je(),o.nodeType===de&&o.data===en?this.#y():this.#h()}else{var i=this.#k();try{this.#i=yt(()=>r(i))}catch(o){this.error(o)}this.#v>0?this.#b():this.#e=!1}return()=>{this.#p?.remove()}},Mi),w&&(this.#t=E)}#h(){try{this.#i=yt(()=>this.#s(this.#t))}catch(e){this.error(e)}this.#e=!1}#y(){const e=this.#r.pending;e&&(this.#l=yt(()=>e(this.#t)),St.enqueue(()=>{var n=this.#k();this.#i=this.#f(()=>(St.ensure(),yt(()=>this.#s(n)))),this.#v>0?this.#b():(Te(this.#l,()=>{this.#l=null}),this.#e=!1)}))}#k(){var e=this.#t;return this.#e&&(this.#p=it(),this.#t.before(this.#p),e=this.#p),e}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#f(e){var n=A,r=_,i=kt;wt(this.#o),Q(this.#o),Ae(this.#o.ctx);try{return e()}catch(o){return fr(o),null}finally{wt(n),Q(r),Ae(i)}}#b(){const e=this.#r.pending;this.#i!==null&&(this.#m=document.createDocumentFragment(),this.#m.append(this.#p),Gr(this.#i,this.#m)),this.#l===null&&(this.#l=yt(()=>e(this.#t)))}#u(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#u(e);return}this.#v+=e,this.#v===0&&(this.#e=!1,this.#l&&Te(this.#l,()=>{this.#l=null}),this.#m&&(this.#t.before(this.#m),this.#m=null))}update_pending_count(e){this.#u(e),this.#d+=e,this.#c&&Se(this.#c,this.#d)}get_effect_pending(){return this.#x(),y(this.#c)}error(e){var n=this.#r.onerror;let r=this.#r.failed;if(this.#g||!n&&!r)throw e;this.#i&&(ot(this.#i),this.#i=null),this.#l&&(ot(this.#l),this.#l=null),this.#a&&(ot(this.#a),this.#a=null),w&&(H(this.#n),zi(),H(pn()));var i=!1,o=!1;const l=()=>{if(i){Oi();return}i=!0,o&&Ti(),St.ensure(),this.#d=0,this.#a!==null&&Te(this.#a,()=>{this.#a=null}),this.#e=this.has_pending_snippet(),this.#i=this.#f(()=>(this.#g=!1,yt(()=>this.#s(this.#t)))),this.#v>0?this.#b():this.#e=!1};var s=_;try{Q(null),o=!0,n?.(e,l),o=!1}catch(a){Re(a,this.#o&&this.#o.parent)}finally{Q(s)}r&&dn(()=>{this.#a=this.#f(()=>{St.ensure(),this.#g=!0;try{return yt(()=>{r(this.#t,()=>e,()=>l)})}catch(a){return Re(a,this.#o.parent),null}finally{this.#g=!1}})})}}function Fi(t,e,n){for(var r=[],i=e.length,o=0;o<i;o++)Fn(e[o].e,r,!0);Lr(r,()=>{var l=r.length===0&&n!==null;if(l){var s=n,a=s.parentNode;Nr(a),a.append(s),t.items.clear(),Ct(t,e[0].prev,e[i-1].next)}for(var m=0;m<i;m++){var p=e[m];l||(t.items.delete(p.k),Ct(t,p.prev,p.next)),ot(p.e,!l)}t.first===e[0]&&(t.first=e[0].prev)})}function ge(t,e,n,r,i,o=null){var l=t,s=new Map,a=null,m=(e&tr)!==0,p=(e&Zn)!==0,c=(e&Qn)!==0;if(m){var d=t;l=w?H(re(d)):d.appendChild(it())}w&&Je();var v=null,$=hr(()=>{var b=n();return nr(b)?b:b==null?[]:Nn(b)}),N,f=!0;function T(){Ji(x,N,l,e,r),v!==null&&(N.length===0?(v.fragment?(l.before(v.fragment),v.fragment=null):Jn(v.effect),C.first=v.effect):Te(v.effect,()=>{v=null}))}var C=bn(()=>{N=y($);var b=N.length;let B=!1;if(w){var Pt=sr(l)===en;Pt!==(b===0)&&(l=pn(),H(l),ct(!1),B=!0)}for(var jt=new Set,J=D,dt=null,ft=Tr(),W=0;W<b;W+=1){w&&E.nodeType===de&&E.data===Rn&&(l=E,B=!0,ct(!1));var $t=N[W],Ot=r($t,W),U=f?null:s.get(Ot);U?(p&&Se(U.v,$t),c?Se(U.i,W):U.i=W,ft&&J.skipped_effects.delete(U.e)):(U=Ui(f?l:null,dt,$t,Ot,W,i,e,n),f&&(U.o=!0,dt===null?a=U:dt.next=U,dt=U),s.set(Ot,U)),jt.add(Ot)}if(b===0&&o&&!v)if(f)v={fragment:null,effect:yt(()=>o(l))};else{var Lt=document.createDocumentFragment(),xe=it();Lt.append(xe),v={fragment:Lt,effect:yt(()=>o(xe))}}if(w&&b>0&&H(pn()),!f)if(ft){for(const[ze,Ke]of s)jt.has(ze)||J.skipped_effects.add(Ke.e);J.oncommit(T),J.ondiscard(()=>{})}else T();B&&ct(!0),y($)}),x={effect:C,items:s,first:a};f=!1,w&&(l=E)}function Ji(t,e,n,r,i){var o=(r&oi)!==0,l=e.length,s=t.items,a=t.first,m,p=null,c,d=[],v=[],$,N,f,T;if(o)for(T=0;T<l;T+=1)$=e[T],N=i($,T),f=s.get(N),f.a?.measure(),(c??=new Set).add(f);for(T=0;T<l;T+=1){if($=e[T],N=i($,T),f=s.get(N),t.first??=f,!f.o){f.o=!0;var C=p?p.next:a;Ct(t,p,f),Ct(t,f,C),Pn(f,C,n),p=f,d=[],v=[],a=p.next;continue}if((f.e.f&vt)!==0&&(Jn(f.e),o&&(f.a?.unfix(),(c??=new Set).delete(f))),f!==a){if(m!==void 0&&m.has(f)){if(d.length<v.length){var x=v[0],b;p=x.prev;var B=d[0],Pt=d[d.length-1];for(b=0;b<d.length;b+=1)Pn(d[b],x,n);for(b=0;b<v.length;b+=1)m.delete(v[b]);Ct(t,B.prev,Pt.next),Ct(t,p,B),Ct(t,Pt,x),a=x,p=Pt,T-=1,d=[],v=[]}else m.delete(f),Pn(f,a,n),Ct(t,f.prev,f.next),Ct(t,f,p===null?t.first:p.next),Ct(t,p,f),p=f;continue}for(d=[],v=[];a!==null&&a.k!==N;)(a.e.f&vt)===0&&(m??=new Set).add(a),v.push(a),a=a.next;if(a===null)continue;f=a}d.push(f),p=f,a=f.next}if(a!==null||m!==void 0){for(var jt=m===void 0?[]:Nn(m);a!==null;)(a.e.f&vt)===0&&jt.push(a),a=a.next;var J=jt.length;if(J>0){var dt=(r&tr)!==0&&l===0?n:null;if(o){for(T=0;T<J;T+=1)jt[T].a?.measure();for(T=0;T<J;T+=1)jt[T].a?.fix()}Fi(t,jt,dt)}}o&&dn(()=>{if(c!==void 0)for(f of c)f.a?.apply()})}function Ui(t,e,n,r,i,o,l,s){var a=(l&Zn)!==0,m=(l&li)===0,p=a?m?jr(n,!1,!1):fe(n):n,c=(l&Qn)===0?i:fe(i),d={i:c,v:p,k:r,a:null,e:null,o:!1,prev:e,next:null};try{if(t===null){var v=document.createDocumentFragment();v.append(t=it())}return d.e=yt(()=>o(t,p,c,s)),e!==null&&(e.next=d),d}finally{}}function Pn(t,e,n){for(var r=t.next?t.next.e.nodes_start:n,i=e?e.e.nodes_start:n,o=t.e.nodes_start;o!==null&&o!==r;){var l=ht(o);i.before(o),o=l}}function Ct(t,e,n){e===null?(t.first=n,t.effect.first=n&&n.e):(e.e.next&&(e.e.next.prev=null),e.next=n,e.e.next=n&&n.e),n===null?t.effect.last=e&&e.e:(n.e.prev&&(n.e.prev.next=null),n.prev=e,n.e.prev=e&&e.e)}function qi(t,e,n,r){const i=Ln;if(n.length===0&&t.length===0){r(e.map(i));return}var o=D,l=A,s=Yi();function a(){Promise.all(n.map(m=>Hi(m))).then(m=>{s();try{r([...e.map(i),...m])}catch(p){(l.f&Ut)===0&&Re(p,l)}o?.deactivate(),gn()}).catch(m=>{Re(m,l)})}t.length>0?Promise.all(t).then(()=>{s();try{return a()}finally{o?.deactivate(),gn()}}):a()}function Yi(){var t=A,e=_,n=kt,r=D;return function(o=!0){wt(t),Q(e),Ae(n),o&&r?.activate()}}function gn(){wt(null),Q(null),Ae(null)}function Ln(t){var e=Y|pt,n=_!==null&&(_.f&Y)!==0?_:null;return A!==null&&(A.f|=me),{ctx:kt,deps:null,effects:null,equals:mr,f:e,fn:t,reactions:null,rv:0,v:X,wv:0,parent:n??A,ac:null}}function Hi(t,e){let n=A;n===null&&yi();var r=n.b,i=void 0,o=fe(X),l=!_,s=new Map;return ro(()=>{var a=or();i=a.promise;try{Promise.resolve(t()).then(a.resolve,a.reject).then(()=>{m===D&&m.committed&&m.deactivate(),gn()})}catch(d){a.reject(d),gn()}var m=D;if(l){var p=!r.is_pending();r.update_pending_count(1),m.increment(p),s.get(m)?.reject(Ee),s.delete(m),s.set(m,a)}const c=(d,v=void 0)=>{if(m.activate(),v)v!==Ee&&(o.f|=ee,Se(o,v));else{(o.f&ee)!==0&&(o.f^=ee),Se(o,d);for(const[$,N]of s){if(s.delete($),$===m)break;N.reject(Ee)}}l&&(r.update_pending_count(-1),m.decrement(p))};a.promise.then(c,d=>c(null,d||"unknown"))}),Zi(()=>{for(const a of s.values())a.reject(Ee)}),new Promise(a=>{function m(p){function c(){p===i?a(o):m(i)}p.then(c,c)}m(i)})}function hr(t){const e=Ln(t);return e.equals=pr,e}function yr(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)ot(e[n])}}function Vi(t){for(var e=t.parent;e!==null;){if((e.f&Y)===0)return(e.f&Ut)===0?e:null;e=e.parent}return null}function Mn(t){var e,n=A;wt(Vi(t));try{t.f&=~pe,yr(t),e=Yr(t)}finally{wt(n)}return e}function wr(t){var e=Mn(t);if(t.equals(e)||(D?.is_fork||(t.v=e),t.wv=Ur()),!be)if(ut!==null)fn()&&ut.set(t,e);else{var n=(t.f&Rt)===0?Jt:Z;tt(t,n)}}let Gn=new Set;const ne=new Map;let _r=!1;function fe(t,e){var n={f:0,v:t,reactions:null,equals:mr,rv:0,wv:0};return n}function Yt(t,e){const n=fe(t);return lo(n),n}function jr(t,e=!1,n=!0){const r=fe(t);return e||(r.equals=pr),r}function Nt(t,e,n=!1){_!==null&&(!Dt||(_.f&lr)!==0)&&cr()&&(_.f&(Y|It|Bn|lr))!==0&&!Ht?.includes(t)&&Ni();let r=n?Ne(e):e;return Se(t,r)}function Se(t,e){if(!t.equals(e)){var n=t.v;be?ne.set(t,e):ne.set(t,n),t.v=e;var r=St.ensure();r.capture(t,n),(t.f&Y)!==0&&((t.f&pt)!==0&&Mn(t),tt(t,(t.f&Rt)!==0?Z:Jt)),t.wv=Ur(),$r(t,pt),A!==null&&(A.f&Z)!==0&&(A.f&(Ft|te))===0&&(_t===null?ao([t]):_t.push(t)),!r.is_fork&&Gn.size>0&&!_r&&Wi()}return e}function Wi(){_r=!1;var t=ie;kn(!0);const e=Array.from(Gn);try{for(const n of e)(n.f&Z)!==0&&tt(n,Jt),He(n)&&Ve(n)}finally{kn(t)}Gn.clear()}function qe(t){Nt(t,t.v+1)}function $r(t,e){var n=t.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var o=n[i],l=o.f,s=(l&pt)===0;if(s&&tt(o,e),(l&Y)!==0){var a=o;ut?.delete(a),(l&pe)===0&&(l&Rt&&(o.f|=pe),$r(a,Jt))}else s&&((l&It)!==0&&qt!==null&&qt.add(o),ce(o))}}function Ne(t){if(typeof t!="object"||t===null||an in t)return t;const e=rr(t);if(e!==bi&&e!==ki)return t;var n=new Map,r=nr(t),i=Yt(0),o=ke,l=s=>{if(ke===o)return s();var a=_,m=ke;Q(null),Jr(o);var p=s();return Q(a),Jr(m),p};return r&&n.set("length",Yt(t.length)),new Proxy(t,{defineProperty(s,a,m){(!("value"in m)||m.configurable===!1||m.enumerable===!1||m.writable===!1)&&Ri();var p=n.get(a);return p===void 0?p=l(()=>{var c=Yt(m.value);return n.set(a,c),c}):Nt(p,m.value,!0),!0},deleteProperty(s,a){var m=n.get(a);if(m===void 0){if(a in s){const p=l(()=>Yt(X));n.set(a,p),qe(i)}}else Nt(m,X),qe(i);return!0},get(s,a,m){if(a===an)return t;var p=n.get(a),c=a in s;if(p===void 0&&(!c||se(s,a)?.writable)&&(p=l(()=>{var v=Ne(c?s[a]:X),$=Yt(v);return $}),n.set(a,p)),p!==void 0){var d=y(p);return d===X?void 0:d}return Reflect.get(s,a,m)},getOwnPropertyDescriptor(s,a){var m=Reflect.getOwnPropertyDescriptor(s,a);if(m&&"value"in m){var p=n.get(a);p&&(m.value=y(p))}else if(m===void 0){var c=n.get(a),d=c?.v;if(c!==void 0&&d!==X)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return m},has(s,a){if(a===an)return!0;var m=n.get(a),p=m!==void 0&&m.v!==X||Reflect.has(s,a);if(m!==void 0||A!==null&&(!p||se(s,a)?.writable)){m===void 0&&(m=l(()=>{var d=p?Ne(s[a]):X,v=Yt(d);return v}),n.set(a,m));var c=y(m);if(c===X)return!1}return p},set(s,a,m,p){var c=n.get(a),d=a in s;if(r&&a==="length")for(var v=m;v<c.v;v+=1){var $=n.get(v+"");$!==void 0?Nt($,X):v in s&&($=l(()=>Yt(X)),n.set(v+"",$))}if(c===void 0)(!d||se(s,a)?.writable)&&(c=l(()=>Yt(void 0)),Nt(c,Ne(m)),n.set(a,c));else{d=c.v!==X;var N=l(()=>Ne(m));Nt(c,N)}var f=Reflect.getOwnPropertyDescriptor(s,a);if(f?.set&&f.set.call(p,m),!d){if(r&&typeof a=="string"){var T=n.get("length"),C=Number(a);Number.isInteger(C)&&C>=T.v&&Nt(T,C+1)}qe(i)}return!0},ownKeys(s){y(i);var a=Reflect.ownKeys(s).filter(c=>{var d=n.get(c);return d===void 0||d.v!==X});for(var[m,p]of n)p.v!==X&&!(m in s)&&a.push(m);return a},setPrototypeOf(){Si()}})}var Er,Ar,Rr,Sr;function In(){if(Er===void 0){Er=window,Ar=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;Rr=se(e,"firstChild").get,Sr=se(e,"nextSibling").get,ir(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),ir(n)&&(n.__t=void 0)}}function it(t=""){return document.createTextNode(t)}function re(t){return Rr.call(t)}function ht(t){return Sr.call(t)}function u(t,e){if(!w)return re(t);var n=re(E);if(n===null)n=E.appendChild(it());else if(e&&n.nodeType!==sn){var r=it();return n?.before(r),H(r),r}return H(n),n}function F(t,e=!1){if(!w){var n=re(t);return n instanceof Comment&&n.data===""?ht(n):n}if(e&&E?.nodeType!==sn){var r=it();return E?.before(r),H(r),r}return E}function O(t,e=1,n=!1){let r=w?E:t;for(var i;e--;)i=r,r=ht(r);if(!w)return r;if(n&&r?.nodeType!==sn){var o=it();return r===null?i?.after(o):r.before(o),H(o),o}return H(r),r}function Nr(t){t.textContent=""}function Tr(){return!1}function Or(t){var e=_,n=A;Q(null),wt(null);try{return t()}finally{Q(e),wt(n)}}function Ki(t){A===null&&(_===null&&ji(),_i()),be&&wi()}function Xi(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function Bt(t,e,n){var r=A;r!==null&&(r.f&vt)!==0&&(t|=vt);var i={ctx:kt,deps:null,nodes_start:null,nodes_end:null,f:t|pt|Rt,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Ve(i),i.f|=ln}catch(s){throw ot(i),s}else e!==null&&ce(i);var o=i;if(n&&o.deps===null&&o.teardown===null&&o.nodes_start===null&&o.first===o.last&&(o.f&me)===0&&(o=o.first,(t&It)!==0&&(t&$e)!==0&&o!==null&&(o.f|=$e)),o!==null&&(o.parent=r,r!==null&&Xi(o,r),_!==null&&(_.f&Y)!==0&&(t&te)===0)){var l=_;(l.effects??=[]).push(o)}return i}function fn(){return _!==null&&!Dt}function Zi(t){const e=Bt(On,null,!1);return tt(e,Z),e.teardown=t,e}function Qi(t){Ki();var e=A.f,n=!_&&(e&Ft)!==0&&(e&ln)===0;if(n){var r=kt;(r.e??=[]).push(t)}else return zr(t)}function zr(t){return Bt(Tn|xi,t,!1)}function to(t){St.ensure();const e=Bt(te|me,t,!0);return()=>{ot(e)}}function eo(t){St.ensure();const e=Bt(te|me,t,!0);return(n={})=>new Promise(r=>{n.outro?Te(e,()=>{ot(e),r(void 0)}):(ot(e),r(void 0))})}function no(t){return Bt(Tn,t,!1)}function ro(t){return Bt(Bn|me,t,!0)}function Cr(t,e=0){return Bt(On|e,t,!0)}function L(t,e=[],n=[],r=[]){qi(r,e,n,i=>{Bt(On,()=>t(...i.map(y)),!0)})}function bn(t,e=0){var n=Bt(It|e,t,!0);return n}function yt(t){return Bt(Ft|me,t,!0)}function Br(t){var e=t.teardown;if(e!==null){const n=be,r=_;Ir(!0),Q(null);try{e.call(null)}finally{Ir(n),Q(r)}}}function Dr(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const i=n.ac;i!==null&&Or(()=>{i.abort(Ee)});var r=n.next;(n.f&te)!==0?n.parent=null:ot(n,e),n=r}}function io(t){for(var e=t.first;e!==null;){var n=e.next;(e.f&Ft)===0&&ot(e),e=n}}function ot(t,e=!0){var n=!1;(e||(t.f&zn)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(oo(t.nodes_start,t.nodes_end),n=!0),Dr(t,e&&!n),un(t,0),tt(t,Ut);var r=t.transitions;if(r!==null)for(const o of r)o.stop();Br(t);var i=t.parent;i!==null&&i.first!==null&&Pr(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function oo(t,e){for(;t!==null;){var n=t===e?null:ht(t);t.remove(),t=n}}function Pr(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function Te(t,e,n=!0){var r=[];Fn(t,r,!0),Lr(r,()=>{n&&ot(t),e&&e()})}function Lr(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var i of t)i.out(r)}else e()}function Fn(t,e,n){if((t.f&vt)===0){if(t.f^=vt,t.transitions!==null)for(const l of t.transitions)(l.is_global||n)&&e.push(l);for(var r=t.first;r!==null;){var i=r.next,o=(r.f&$e)!==0||(r.f&Ft)!==0&&(t.f&It)!==0;Fn(r,e,o?n:!1),r=i}}}function Jn(t){Mr(t,!0)}function Mr(t,e){if((t.f&vt)!==0){t.f^=vt,(t.f&Z)===0&&(tt(t,pt),ce(t));for(var n=t.first;n!==null;){var r=n.next,i=(n.f&$e)!==0||(n.f&Ft)!==0;Mr(n,i?e:!1),n=r}if(t.transitions!==null)for(const o of t.transitions)(o.is_global||e)&&o.in()}}function Gr(t,e){for(var n=t.nodes_start,r=t.nodes_end;n!==null;){var i=n===r?null:ht(n);e.append(n),n=i}}let ie=!1;function kn(t){ie=t}let be=!1;function Ir(t){be=t}let _=null,Dt=!1;function Q(t){_=t}let A=null;function wt(t){A=t}let Ht=null;function lo(t){_!==null&&(Ht===null?Ht=[t]:Ht.push(t))}let lt=null,gt=0,_t=null;function ao(t){_t=t}let Fr=1,Ye=0,ke=Ye;function Jr(t){ke=t}function Ur(){return++Fr}function He(t){var e=t.f;if((e&pt)!==0)return!0;if(e&Y&&(t.f&=~pe),(e&Jt)!==0){var n=t.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var o=n[i];if(He(o)&&wr(o),o.wv>t.wv)return!0}(e&Rt)!==0&&ut===null&&tt(t,Z)}return!1}function qr(t,e,n=!0){var r=t.reactions;if(r!==null&&!Ht?.includes(t))for(var i=0;i<r.length;i++){var o=r[i];(o.f&Y)!==0?qr(o,e,!1):e===o&&(n?tt(o,pt):(o.f&Z)!==0&&tt(o,Jt),ce(o))}}function Yr(t){var e=lt,n=gt,r=_t,i=_,o=Ht,l=kt,s=Dt,a=ke,m=t.f;lt=null,gt=0,_t=null,_=(m&(Ft|te))===0?t:null,Ht=null,Ae(t.ctx),Dt=!1,ke=++Ye,t.ac!==null&&(Or(()=>{t.ac.abort(Ee)}),t.ac=null);try{t.f|=Cn;var p=t.fn,c=p(),d=t.deps;if(lt!==null){var v;if(un(t,gt),d!==null&&gt>0)for(d.length=gt+lt.length,v=0;v<lt.length;v++)d[gt+v]=lt[v];else t.deps=d=lt;if(ie&&fn()&&(t.f&Rt)!==0)for(v=gt;v<d.length;v++)(d[v].reactions??=[]).push(t)}else d!==null&&gt<d.length&&(un(t,gt),d.length=gt);if(cr()&&_t!==null&&!Dt&&d!==null&&(t.f&(Y|Jt|pt))===0)for(v=0;v<_t.length;v++)qr(_t[v],t);return i!==null&&i!==t&&(Ye++,_t!==null&&(r===null?r=_t:r.push(..._t))),(t.f&ee)!==0&&(t.f^=ee),c}catch($){return fr($)}finally{t.f^=Cn,lt=e,gt=n,_t=r,_=i,Ht=o,Ae(l),Dt=s,ke=a}}function so(t,e){let n=e.reactions;if(n!==null){var r=gi.call(n,t);if(r!==-1){var i=n.length-1;i===0?n=e.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(e.f&Y)!==0&&(lt===null||!lt.includes(e))&&(tt(e,Jt),(e.f&Rt)!==0&&(e.f^=Rt,e.f&=~pe),yr(e),un(e,0))}function un(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)so(t,n[r])}function Ve(t){var e=t.f;if((e&Ut)===0){tt(t,Z);var n=A,r=ie;A=t,ie=!0;try{(e&It)!==0?io(t):Dr(t),Br(t);var i=Yr(t);t.teardown=typeof i=="function"?i:null,t.wv=Fr;var o;Sn&&Bi&&(t.f&pt)!==0&&t.deps}finally{ie=r,A=n}}}function y(t){var e=t.f,n=(e&Y)!==0;if(_!==null&&!Dt){var r=A!==null&&(A.f&Ut)!==0;if(!r&&!Ht?.includes(t)){var i=_.deps;if((_.f&Cn)!==0)t.rv<Ye&&(t.rv=Ye,lt===null&&i!==null&&i[gt]===t?gt++:lt===null?lt=[t]:lt.includes(t)||lt.push(t));else{(_.deps??=[]).push(t);var o=t.reactions;o===null?t.reactions=[_]:o.includes(_)||o.push(_)}}}if(be){if(ne.has(t))return ne.get(t);if(n){var l=t,s=l.v;return((l.f&Z)===0&&l.reactions!==null||Vr(l))&&(s=Mn(l)),ne.set(l,s),s}}else n&&!ut?.has(t)&&(l=t,He(l)&&wr(l),ie&&fn()&&(l.f&Rt)===0&&Hr(l));if(ut?.has(t))return ut.get(t);if((t.f&ee)!==0)throw t.v;return t.v}function Hr(t){if(t.deps!==null){t.f^=Rt;for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&Y)!==0&&(e.f&Rt)===0&&Hr(e)}}function Vr(t){if(t.v===X)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(ne.has(e)||(e.f&Y)!==0&&Vr(e))return!0;return!1}function Wr(t){var e=Dt;try{return Dt=!0,t()}finally{Dt=e}}const mo=-7169;function tt(t,e){t.f=t.f&mo|e}const Kr=new Set,Un=new Set;function po(t){for(var e=0;e<t.length;e++)Kr.add(t[e]);for(var n of Un)n(t)}let Xr=null;function xn(t){var e=this,n=e.ownerDocument,r=t.type,i=t.composedPath?.()||[],o=i[0]||t.target;Xr=t;var l=0,s=Xr===t&&t.__root;if(s){var a=i.indexOf(s);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var m=i.indexOf(e);if(m===-1)return;a<=m&&(l=a)}if(o=i[l]||t.target,o!==e){rn(t,"currentTarget",{configurable:!0,get(){return o||n}});var p=_,c=A;Q(null),wt(null);try{for(var d,v=[];o!==null;){var $=o.assignedSlot||o.parentNode||o.host||null;try{var N=o["__"+r];N!=null&&(!o.disabled||t.target===o)&&N.call(o,t)}catch(f){d?v.push(f):d=f}if(t.cancelBubble||$===e||$===null)break;o=$}if(d){for(let f of v)queueMicrotask(()=>{throw f});throw d}}finally{t.__root=e,delete t.currentTarget,Q(p),wt(c)}}}function vo(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function oe(t,e){var n=A;n.nodes_start===null&&(n.nodes_start=t,n.nodes_end=e)}function j(t,e){var n=(e&di)!==0,r=(e&vi)!==0,i,o=!t.startsWith("<!>");return()=>{if(w)return oe(E,null),E;i===void 0&&(i=vo(o?t:"<!>"+t),n||(i=re(i)));var l=r||Ar?document.importNode(i,!0):i.cloneNode(!0);if(n){var s=re(l),a=l.lastChild;oe(s,a)}else oe(l,l);return l}}function co(t=""){if(!w){var e=it(t+"");return oe(e,e),e}var n=E;return n.nodeType!==sn&&(n.before(n=it()),H(n)),oe(n,n),n}function V(){if(w)return oe(E,null),E;var t=document.createDocumentFragment(),e=document.createComment(""),n=it();return t.append(e,n),oe(e,n),t}function g(t,e){if(w){var n=A;((n.f&ln)===0||n.nodes_end===null)&&(n.nodes_end=E),Je();return}t!==null&&t.before(e)}const go=["touchstart","touchmove"];function fo(t){return go.includes(t)}function Tt(t,e){var n=e==null?"":typeof e=="object"?e+"":e;n!==(t.__t??=t.nodeValue)&&(t.__t=n,t.nodeValue=n+"")}function Zr(t,e){return Qr(t,e)}function bo(t,e){In(),e.intro=e.intro??!1;const n=e.target,r=w,i=E;try{for(var o=re(n);o&&(o.nodeType!==de||o.data!==er);)o=ht(o);if(!o)throw je;ct(!0),H(o);const l=Qr(t,{...e,anchor:o});return ct(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(s=>s.startsWith("https://svelte.dev/e/")))throw l;return l!==je&&console.warn("Failed to hydrate: ",l),e.recover===!1&&Ei(),In(),Nr(n),ct(!1),Zr(t,e)}finally{ct(r),H(i)}}const Oe=new Map;function Qr(t,{target:e,anchor:n,props:r={},events:i,context:o,intro:l=!0}){In();var s=new Set,a=c=>{for(var d=0;d<c.length;d++){var v=c[d];if(!s.has(v)){s.add(v);var $=fo(v);e.addEventListener(v,xn,{passive:$});var N=Oe.get(v);N===void 0?(document.addEventListener(v,xn,{passive:$}),Oe.set(v,1)):Oe.set(v,N+1)}}};a(Nn(Kr)),Un.add(a);var m=void 0,p=eo(()=>{var c=n??e.appendChild(it());return Gi(c,{pending:()=>{}},d=>{if(o){dr({});var v=kt;v.c=o}if(i&&(r.$$events=i),w&&oe(d,null),m=t(d,r)||{},w&&(A.nodes_end=E,E===null||E.nodeType!==de||E.data!==Rn))throw mn(),je;o&&vr()}),()=>{for(var d of s){e.removeEventListener(d,xn);var v=Oe.get(d);--v===0?(document.removeEventListener(d,xn),Oe.delete(d)):Oe.set(d,v)}Un.delete(a),c!==n&&c.parentNode?.removeChild(c)}});return qn.set(m,p),m}let qn=new WeakMap;function ko(t,e){const n=qn.get(t);return n?(qn.delete(t),n(e)):Promise.resolve()}class uo{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#s=!0;constructor(e,n=!0){this.anchor=e,this.#s=n}#o=()=>{var e=D;if(this.#e.has(e)){var n=this.#e.get(e),r=this.#t.get(n);if(r)Jn(r),this.#r.delete(n);else{var i=this.#n.get(n);i&&(this.#t.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[o,l]of this.#e){if(this.#e.delete(o),o===e)break;const s=this.#n.get(l);s&&(ot(s.effect),this.#n.delete(l))}for(const[o,l]of this.#t){if(o===n||this.#r.has(o))continue;const s=()=>{if(Array.from(this.#e.values()).includes(o)){var m=document.createDocumentFragment();Gr(l,m),m.append(it()),this.#n.set(o,{effect:l,fragment:m})}else ot(l);this.#r.delete(o),this.#t.delete(o)};this.#s||!r?(this.#r.add(o),Te(l,s,!1)):s()}}};#i=e=>{this.#e.delete(e);const n=Array.from(this.#e.values());for(const[r,i]of this.#n)n.includes(r)||(ot(i.effect),this.#n.delete(r))};ensure(e,n){var r=D,i=Tr();if(n&&!this.#t.has(e)&&!this.#n.has(e))if(i){var o=document.createDocumentFragment(),l=it();o.append(l),this.#n.set(e,{effect:yt(()=>n(l)),fragment:o})}else this.#t.set(e,yt(()=>n(this.anchor)));if(this.#e.set(r,e),i){for(const[s,a]of this.#t)s===e?r.skipped_effects.delete(a):r.skipped_effects.add(a);for(const[s,a]of this.#n)s===e?r.skipped_effects.delete(a.effect):r.skipped_effects.add(a.effect);r.oncommit(this.#o),r.ondiscard(this.#i)}else w&&(this.anchor=E),this.#o()}}function R(t,e,n=!1){w&&Je();var r=new uo(t),i=n?$e:0;function o(l,s){if(w){const m=sr(t)===en;if(l===m){var a=pn();H(a),r.anchor=a,ct(!1),r.ensure(l,s),ct(!0);return}}r.ensure(l,s)}bn(()=>{var l=!1;e((s,a=!0)=>{l=!0,o(a,s)}),l||o(!1,null)},i)}function We(t,e,n,r,i){w&&Je();var o=e.$$slots?.[n],l=!1;o===!0&&(o=e[n==="default"?"children":n],l=!0),o===void 0?i!==null&&i(t):o(t,l?()=>r:r)}function xo(t,e){let n=null,r=w;var i;if(w){n=E;for(var o=re(document.head);o!==null&&(o.nodeType!==de||o.data!==t);)o=ht(o);if(o===null)ct(!1);else{var l=ht(o);o.remove(),H(l)}}w||(i=document.head.appendChild(it()));try{bn(()=>e(i),zn)}finally{r&&(ct(!0),H(n))}}function ho(t,e){no(()=>{var n=t.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const i=document.createElement("style");i.id=e.hash,i.textContent=e.code,r.appendChild(i)}})}function yo(t,e,n){var r=t==null?"":""+t;return e&&(r=r?r+" "+e:e),r===""?null:r}function G(t,e,n,r,i,o){var l=t.__className;if(w||l!==n||l===void 0){var s=yo(n,r);(!w||s!==t.getAttribute("class"))&&(s==null?t.removeAttribute("class"):t.className=s),t.__className=n}return o}const wo=Symbol("is custom element"),_o=Symbol("is html");function hn(t,e,n,r){var i=jo(t);w&&(i[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||i[e]!==(i[e]=n)&&(e==="loading"&&(t[hi]=n),n==null?t.removeAttribute(e):typeof n!="string"&&ti(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function at(t,e,n){var r=_,i=A;let o=w;w&&ct(!1),Q(null),wt(null);try{e!=="style"&&(Yn.has(t.getAttribute("is")||t.nodeName)||!customElements||customElements.get(t.getAttribute("is")||t.tagName.toLowerCase())?ti(t).includes(e):n&&typeof n=="object")?t[e]=n:hn(t,e,n==null?n:String(n))}finally{Q(r),wt(i),o&&ct(!0)}}function jo(t){return t.__attributes??={[wo]:t.nodeName.includes("-"),[_o]:t.namespaceURI===ci}}var Yn=new Map;function ti(t){var e=t.getAttribute("is")||t.nodeName,n=Yn.get(e);if(n)return n;Yn.set(e,n=[]);for(var r,i=t,o=Element.prototype;o!==i;){r=fi(i);for(var l in r)r[l].set&&n.push(l);i=rr(i)}return n}let yn=!1;function $o(t){var e=yn;try{return yn=!1,[t(),yn]}finally{yn=e}}function Vt(t,e,n,r){var i=(n&mi)!==0,o=(n&pi)!==0,l=r,s=!0,a=()=>(s&&(s=!1,l=o?Wr(r):r),l),m;if(i){var p=an in t||ar in t;m=se(t,e)?.set??(p&&e in t?C=>t[e]=C:void 0)}var c,d=!1;i?[c,d]=$o(()=>t[e]):c=t[e],c===void 0&&r!==void 0&&(c=a(),m&&(Ai(),m(c)));var v;if(v=()=>{var C=t[e];return C===void 0?a():(s=!0,C)},(n&si)===0)return v;if(m){var $=t.$$legacy;return(function(C,x){return arguments.length>0?((!x||$||d)&&m(x?v():C),C):v()})}var N=!1,f=((n&ai)!==0?Ln:hr)(()=>(N=!1,v()));i&&y(f);var T=A;return(function(C,x){if(arguments.length>0){const b=x?y(f):i?Ne(C):C;return Nt(f,b),N=!0,l!==void 0&&(l=b),C}return be&&N||(T.f&Ut)!==0?f.v:y(f)})}function Eo(t){return new Ao(t)}class Ao{#e;#t;constructor(e){var n=new Map,r=(o,l)=>{var s=jr(l,!1,!1);return n.set(o,s),s};const i=new Proxy({...e.props||{},$$events:{}},{get(o,l){return y(n.get(l)??r(l,Reflect.get(o,l)))},has(o,l){return l===ar?!0:(y(n.get(l)??r(l,Reflect.get(o,l))),Reflect.has(o,l))},set(o,l,s){return Nt(n.get(l)??r(l,s),s),Reflect.set(o,l,s)}});this.#t=(e.hydrate?bo:Zr)(e.component,{target:e.target,anchor:e.anchor,props:i,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&zt(),this.#e=i.$$events;for(const o of Object.keys(this.#t))o==="$set"||o==="$destroy"||o==="$on"||rn(this,o,{get(){return this.#t[o]},set(l){this.#t[o]=l},enumerable:!0});this.#t.$set=o=>{Object.assign(i,o)},this.#t.$destroy=()=>{ko(this.#t)}}$set(e){this.#t.$set(e)}$on(e,n){this.#e[e]=this.#e[e]||[];const r=(...i)=>n.call(this,...i);return this.#e[e].push(r),()=>{this.#e[e]=this.#e[e].filter(i=>i!==r)}}$destroy(){this.#t.$destroy()}}let ei;typeof HTMLElement=="function"&&(ei=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return i=>{const o=document.createElement("slot");r!=="default"&&(o.name=r),g(i,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=Ro(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=wn(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=Eo({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=to(()=>{Cr(()=>{this.$$r=!0;for(const r of nn(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=wn(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 o=this.$$c.$on(r,i);this.$$l_u.set(i,o)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=wn(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return nn(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function wn(t,e,n,r){const i=n[t]?.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Ro(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function So(t,e,n,r,i,o){let l=class extends ei{constructor(){super(t,n,i),this.$$p_d=e}static get observedAttributes(){return nn(e).map(s=>(e[s].attribute||s).toLowerCase())}};return nn(e).forEach(s=>{rn(l.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(a){a=wn(s,a,e),this.$$d[s]=a;var m=this.$$c;if(m){var p=se(m,s)?.get;p?m[s]=a:m.$set({[s]:a})}}})}),r.forEach(s=>{rn(l.prototype,s,{get(){return this.$$c?.[s]}})}),t.element=l,l}const No={version:"0.66.0"};var ue={},ni;function To(){if(ni)return ue;ni=1,Object.defineProperty(ue,"__esModule",{value:!0}),ue.LanguageTranslator=void 0,ue.getChildStyleToPass=t,ue.addComponent=e;function t(r,i){var o,l,s="";try{if(r&&i?.length&&(!((o=Object.keys(r))===null||o===void 0)&&o.length)&&(!((l=i?.filter(function(d){return Object.keys(r).includes(d.name)}))===null||l===void 0)&&l.length))for(var a=function(d){var v=i?.filter(function($){return $.name===d&&$.defaultValue!==r[d]});v&&(s+="".concat(d,":").concat(r[d],";"))},m=0,p=Object.keys(r);m<p.length;m++){var c=p[m];a(c)}}catch(d){console.error("error getting child style to pass",d)}finally{return s}}function e(r){var i,o=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!o)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var l=r?.iifePath||"main.iife.js";if(!document.getElementById(o+"-script"))try{var s=document.createElement("script");if(s.id=o+"-script",s.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(l),r?.local)s.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var a=o.split("-")[0];s.src="http://localhost:6006/webcomponents/".concat(o.replace(a+"-",""),"/").concat(l)}document.head.appendChild(s)}catch(m){console.warn(m)}}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,o){return r.getDictionaryWord(i,this.dictionary,o||this.lang)},r.prototype.translateDate=function(i,o,l){return r.formatDate(i,o,l||this.lang)},r.getDefaultLang=function(){var i,o,l,s="en";return navigator?.languages&&(!((l=(o=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||o===void 0?void 0:o.toLowerCase())===null||l===void 0)&&l.length)&&(s=navigator.languages[0].split("-")[0].toLowerCase()),s},r.getDictionaryWord=function(i,o,l){var s;if(!i)throw new Error("no wordKey provided");if(!o)throw new Error("no dictionary provided");if(l&&(!((s=o[l])===null||s===void 0)&&s[i]))return o[l][i];var a="",m=r.getDefaultLang();if(!l||m!==l){var p=o?.[m];p?.[i]&&(a=p[i])}return a},r.formatDate=function(i,o,l){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var s=new Intl.DateTimeFormat(l||r.getDefaultLang(),o);return s.format(i)},r})();return ue.LanguageTranslator=n,ue}var Oo=To(),zo=j('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1tntk73"/>'),Co=j('<div class="expand_from_small_footer svelte-1tntk73"><i class="bi bi-arrow-up-square-fill svelte-1tntk73"></i></div>'),Bo=j('<span class="svelte-1tntk73"><img style="height: 100%;" alt="" class="svelte-1tntk73"/></span>'),Do=j('<div style="max-height:40px;height:40px;margin:10px auto 5px auto" class="svelte-1tntk73"><!> </div>'),Po=j('<div class="container-fluid svelte-1tntk73"><div class="container svelte-1tntk73" style="position:relative"><!> <div id="footer_small_content" class="svelte-1tntk73"><!></div></div></div>'),Lo=j('<div class="container-fluid svelte-1tntk73"><div class="container svelte-1tntk73" style="position:relative"><div style="margin-top:10px;" class="expand_from_small_footer svelte-1tntk73"><i class="bi bi-arrow-down-square-fill svelte-1tntk73"></i></div></div></div>'),Mo=j('<span class="svelte-1tntk73"><img style="height: 40px" alt="" class="svelte-1tntk73"/></span>'),Go=j('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),Io=j('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),Fo=j('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),Jo=j('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),Uo=j('<div style="padding:20px 20px"><h5 style="margin-bottom:20px" class="svelte-1tntk73">Contatti</h5> <ul class="list-unstyled svelte-1tntk73"><!> <!> <!> <!></ul></div>'),qo=j('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),Yo=j('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),Ho=j('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),Vo=j('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),Wo=j('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),Ko=j('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),Xo=j('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),Zo=j('<div style="padding:20px 20px"><h5 style="margin-bottom:20px" class="svelte-1tntk73">Social</h5> <ul class="list-unstyled svelte-1tntk73"><!> <!> <!> <!> <!> <!> <!></ul></div>'),Qo=j('<li class="svelte-1tntk73"><button part="column-cell-button-content" style="padding:0px" class="btn text-small svelte-1tntk73"> </button></li>'),tl=j('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),el=j('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),nl=j('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),rl=j('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),il=j('<li class="svelte-1tntk73"><button part="column-cell-button-content" style="padding:0px" class="btn text-small svelte-1tntk73"> </button></li>'),ol=j('<div style="padding:20px 20px"><h5 style="margin-bottom:20px" class="svelte-1tntk73"> </h5> <ul class="list-unstyled svelte-1tntk73"></ul></div>'),ll=j('<div class="row svelte-1tntk73"><div style="padding:20px 20px"><div class="row svelte-1tntk73"><div class="col svelte-1tntk73"><!> </div></div> <div id="description" style="margin:20px auto 10px auto" class="svelte-1tntk73"> </div> <div id="company" style="margin:20px auto 10px auto" class="svelte-1tntk73"> </div> <div id="fiscal" style="margin:20px auto 10px auto" class="svelte-1tntk73"> </div></div> <!> <!> <!></div>'),al=j('<a target="_blank" class="btn btn-link svelte-1tntk73"> </a>'),sl=j('<button class="btn btn-link svelte-1tntk73"> </button>'),ml=j('<div class="col svelte-1tntk73" style="margin:20px auto 20px auto;max-height:20px;text-align:center;font-size:0.9rem;"><!></div>'),pl=j('<div class="col svelte-1tntk73" style="max-height:20px;text-align:center;font-size:0.8rem;margin:10px auto 5px auto"> </div>'),dl=j('<!> <div class="container svelte-1tntk73"><!> <!> <div class="row svelte-1tntk73"><!></div> <div class="row svelte-1tntk73"><!></div></div>',1),vl=j('<footer class="svelte-1tntk73"><!></footer>');const cl={hash:"svelte-1tntk73",code:`@charset "UTF-8";
1
+ (function(Fn){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const oo=1,io=2,Jn=4,lo=8,ao=16,so=1,mo=4,po=8,vo=16,go=1,co=2,Un="[",un="[!",qn="[?",hn="]",Ae={},K=Symbol(),Hn="http://www.w3.org/1999/xhtml",fo=!1;var Yn=Array.isArray,bo=Array.prototype.indexOf,Se=Array.prototype.includes,tn=Array.from,en=Object.keys,nn=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,ko=Object.getOwnPropertyDescriptors,uo=Object.prototype,ho=Array.prototype,Vn=Object.getPrototypeOf,Wn=Object.isExtensible;const xo=()=>{};function yo(t){for(var e=0;e<t.length;e++)t[e]()}function Kn(){var t,e,n=new Promise((r,o)=>{t=r,e=o});return{promise:n,resolve:t,reject:e}}const Y=2,Ne=4,rn=8,Xn=1<<24,te=16,Nt=32,ee=64,xn=128,ut=512,F=1024,tt=2048,It=4096,ft=8192,ht=16384,ne=32768,Zn=1<<25,Re=65536,Qn=1<<17,tr=1<<18,re=1<<19,wo=1<<20,Lt=1<<25,fe=65536,yn=1<<21,wn=1<<22,oe=1<<23,on=Symbol("$state"),er=Symbol("legacy props"),_o=Symbol(""),Ut=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},$o=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Le=3,Te=8;function jo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Eo(t,e,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Ao(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function So(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function No(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Ro(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function To(){throw new Error("https://svelte.dev/e/hydration_failed")}function zo(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Oo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Co(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Bo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Do(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ln(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function Mo(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let E=!1;function bt(t){E=t}let N;function X(t){if(t===null)throw ln(),Ae;return N=t}function Pe(){return X(yt(N))}function k(t){if(E){if(yt(N)!==null)throw ln(),Ae;N=t}}function Io(t=1){if(E){for(var e=t,n=N;e--;)n=yt(n);N=n}}function an(t=!0){for(var e=0,n=N;;){if(n.nodeType===Te){var r=n.data;if(r===hn){if(e===0)return n;e-=1}else(r===Un||r===un||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(e+=1)}var o=yt(n);t&&n.remove(),n=o}}function nr(t){if(!t||t.nodeType!==Te)throw ln(),Ae;return t.data}function rr(t){return t===this.v}function Lo(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function or(t){return!Lo(t,this.v)}let Po=!1,xt=null;function ze(t){xt=t}function ir(t,e=!1,n){xt={p:xt,i:!1,c:null,e:null,s:t,x:null,r:A,l:null}}function lr(t){var e=xt,n=e.e;if(n!==null){e.e=null;for(var r of n)zr(r)}return t!==void 0&&(e.x=t),e.i=!0,xt=e.p,t??{}}function ar(){return!0}let be=[];function sr(){var t=be;be=[],yo(t)}function ke(t){if(be.length===0&&!Ge){var e=be;queueMicrotask(()=>{e===be&&sr()})}be.push(t)}function Go(){for(;be.length>0;)sr()}function mr(t){var e=A;if(e===null)return $.f|=oe,t;if((e.f&ne)===0&&(e.f&Ne)===0)throw t;ie(t,e)}function ie(t,e){for(;e!==null;){if((e.f&xn)!==0){if((e.f&ne)===0)throw t;try{e.b.error(t);return}catch(n){t=n}}e=e.parent}throw t}const Fo=-7169;function G(t,e){t.f=t.f&Fo|e}function _n(t){(t.f&ut)!==0||t.deps===null?G(t,F):G(t,It)}function pr(t){if(t!==null)for(const e of t)(e.f&Y)===0||(e.f&fe)===0||(e.f^=fe,pr(e.deps))}function dr(t,e,n){(t.f&tt)!==0?e.add(t):(t.f&It)!==0&&n.add(t),pr(t.deps),G(t,F)}let sn=!1;function Jo(t){var e=sn;try{return sn=!1,[t(),sn]}finally{sn=e}}const le=new Set;let C=null,Rt=null,$n=null,Ge=!1,jn=!1,Oe=null,mn=null;var vr=0;let Uo=1;class qt{id=Uo++;current=new Map;previous=new Map;#t=new Set;#n=new Set;#e=new Map;#o=new Map;#i=null;#r=[];#l=new Set;#a=new Set;#s=new Map;is_fork=!1;#d=!1;#m=new Set;#v(){return this.is_fork||this.#o.size>0}#c(){for(const r of this.#m)for(const o of r.#o.keys()){for(var e=!1,n=o;n.parent!==null;){if(this.#s.has(n)){e=!0;break}n=n.parent}if(!e)return!0}return!1}skip_effect(e){this.#s.has(e)||this.#s.set(e,{d:[],m:[]})}unskip_effect(e){var n=this.#s.get(e);if(n){this.#s.delete(e);for(var r of n.d)G(r,tt),this.schedule(r);for(r of n.m)G(r,It),this.schedule(r)}}#g(){if(vr++>1e3&&(le.delete(this),qo()),!this.#v()){for(const a of this.#l)this.#a.delete(a),G(a,tt),this.schedule(a);for(const a of this.#a)G(a,It),this.schedule(a)}const e=this.#r;this.#r=[],this.apply();var n=Oe=[],r=[],o=mn=[];for(const a of e)try{this.#p(a,n,r)}catch(s){throw kr(a),s}if(C=null,o.length>0){var i=qt.ensure();for(const a of o)i.schedule(a)}if(Oe=null,mn=null,this.#v()||this.#c()){this.#f(r),this.#f(n);for(const[a,s]of this.#s)br(a,s)}else{this.#e.size===0&&le.delete(this),this.#l.clear(),this.#a.clear();for(const a of this.#t)a(this);this.#t.clear(),gr(r),gr(n),this.#i?.resolve()}var l=C;if(this.#r.length>0){const a=l??=this;a.#r.push(...this.#r.filter(s=>!a.#r.includes(s)))}l!==null&&(le.add(l),l.#g()),le.has(this)||this.#b()}#p(e,n,r){e.f^=F;for(var o=e.first;o!==null;){var i=o.f,l=(i&(Nt|ee))!==0,a=l&&(i&F)!==0,s=a||(i&ft)!==0||this.#s.has(o);if(!s&&o.fn!==null){l?o.f^=F:(i&Ne)!==0?n.push(o):Je(o)&&((i&te)!==0&&this.#a.add(o),De(o));var m=o.first;if(m!==null){o=m;continue}}for(;o!==null;){var p=o.next;if(p!==null){o=p;break}o=o.parent}}}#f(e){for(var n=0;n<e.length;n+=1)dr(e[n],this.#l,this.#a)}capture(e,n,r=!1){n!==K&&!this.previous.has(e)&&this.previous.set(e,n),(e.f&oe)===0&&(this.current.set(e,[e.v,r]),Rt?.set(e,e.v))}activate(){C=this}deactivate(){C=null,Rt=null}flush(){try{jn=!0,C=this,this.#g()}finally{vr=0,$n=null,Oe=null,mn=null,jn=!1,C=null,Rt=null,ae.clear()}}discard(){for(const e of this.#n)e(this);this.#n.clear(),le.delete(this)}#b(){for(const m of le){var e=m.id<this.id,n=[];for(const[p,[g,d]]of this.current){if(m.current.has(p)){var r=m.current.get(p)[0];if(e&&g!==r)m.current.set(p,[g,d]);else continue}n.push(p)}var o=[...m.current.keys()].filter(p=>!this.current.has(p));if(o.length===0)e&&m.discard();else if(n.length>0){m.activate();var i=new Set,l=new Map;for(var a of n)cr(a,o,i,l);if(m.#r.length>0){m.apply();for(var s of m.#r)m.#p(s,[],[]);m.#r=[]}m.deactivate()}}for(const m of le)m.#m.has(this)&&(m.#m.delete(this),m.#m.size===0&&!m.#v()&&(m.activate(),m.#g()))}increment(e,n){let r=this.#e.get(n)??0;if(this.#e.set(n,r+1),e){let o=this.#o.get(n)??0;this.#o.set(n,o+1)}}decrement(e,n,r){let o=this.#e.get(n)??0;if(o===1?this.#e.delete(n):this.#e.set(n,o-1),e){let i=this.#o.get(n)??0;i===1?this.#o.delete(n):this.#o.set(n,i-1)}this.#d||r||(this.#d=!0,ke(()=>{this.#d=!1,this.flush()}))}transfer_effects(e,n){for(const r of e)this.#l.add(r);for(const r of n)this.#a.add(r);e.clear(),n.clear()}oncommit(e){this.#t.add(e)}ondiscard(e){this.#n.add(e)}settled(){return(this.#i??=Kn()).promise}static ensure(){if(C===null){const e=C=new qt;jn||(le.add(C),Ge||ke(()=>{C===e&&e.flush()}))}return C}apply(){{Rt=null;return}}schedule(e){if($n=e,e.b?.is_pending&&(e.f&(Ne|rn|Xn))!==0&&(e.f&ne)===0){e.b.defer_effect(e);return}for(var n=e;n.parent!==null;){n=n.parent;var r=n.f;if(Oe!==null&&n===A&&($===null||($.f&Y)===0))return;if((r&(ee|Nt))!==0){if((r&F)===0)return;n.f^=F}}this.#r.push(n)}}function Pt(t){var e=Ge;Ge=!0;try{for(var n;;){if(Go(),C===null)return n;C.flush()}}finally{Ge=e}}function qo(){try{Ro()}catch(t){ie(t,$n)}}let Ht=null;function gr(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var r=t[n++];if((r.f&(ht|ft))===0&&Je(r)&&(Ht=new Set,De(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Br(r),Ht?.size>0)){ae.clear();for(const o of Ht){if((o.f&(ht|ft))!==0)continue;const i=[o];let l=o.parent;for(;l!==null;)Ht.has(l)&&(Ht.delete(l),i.push(l)),l=l.parent;for(let a=i.length-1;a>=0;a--){const s=i[a];(s.f&(ht|ft))===0&&De(s)}}Ht.clear()}}Ht=null}}function cr(t,e,n,r){if(!n.has(t)&&(n.add(t),t.reactions!==null))for(const o of t.reactions){const i=o.f;(i&Y)!==0?cr(o,e,n,r):(i&(wn|te))!==0&&(i&tt)===0&&fr(o,e,r)&&(G(o,tt),En(o))}}function fr(t,e,n){const r=n.get(t);if(r!==void 0)return r;if(t.deps!==null)for(const o of t.deps){if(Se.call(e,o))return!0;if((o.f&Y)!==0&&fr(o,e,n))return n.set(o,!0),!0}return n.set(t,!1),!1}function En(t){C.schedule(t)}function br(t,e){if(!((t.f&Nt)!==0&&(t.f&F)!==0)){(t.f&tt)!==0?e.d.push(t):(t.f&It)!==0&&e.m.push(t),G(t,F);for(var n=t.first;n!==null;)br(n,e),n=n.next}}function kr(t){G(t,F);for(var e=t.first;e!==null;)kr(e),e=e.next}function Ho(t){let e=0,n=ue(0),r;return()=>{zn()&&(x(n),Or(()=>(e===0&&(r=Hr(()=>t(()=>Fe(n)))),e+=1,()=>{ke(()=>{e-=1,e===0&&(r?.(),r=void 0,Fe(n))})})))}}var Yo=Re|re;function Vo(t,e,n,r){new Wo(t,e,n,r)}class Wo{parent;is_pending=!1;transform_error;#t;#n=E?N:null;#e;#o;#i;#r=null;#l=null;#a=null;#s=null;#d=0;#m=0;#v=!1;#c=new Set;#g=new Set;#p=null;#f=Ho(()=>(this.#p=ue(this.#d),()=>{this.#p=null}));constructor(e,n,r,o){this.#t=e,this.#e=n,this.#o=i=>{var l=A;l.b=this,l.f|=xn,r(i)},this.parent=A.b,this.transform_error=o??this.parent?.transform_error??(i=>i),this.#i=vn(()=>{if(E){const i=this.#n;Pe();const l=i.data===un;if(i.data.startsWith(qn)){const s=JSON.parse(i.data.slice(qn.length));this.#y(s)}else l?this.#w():this.#b()}else this.#h()},Yo),E&&(this.#t=N)}#b(){try{this.#r=wt(()=>this.#o(this.#t))}catch(e){this.error(e)}}#y(e){const n=this.#e.failed;n&&(this.#a=wt(()=>{n(this.#t,()=>e,()=>()=>{})}))}#w(){const e=this.#e.pending;e&&(this.is_pending=!0,this.#l=wt(()=>e(this.#t)),ke(()=>{var n=this.#s=document.createDocumentFragment(),r=nt();n.append(r),this.#r=this.#u(()=>wt(()=>this.#o(r))),this.#m===0&&(this.#t.before(n),this.#s=null,he(this.#l,()=>{this.#l=null}),this.#k(C))}))}#h(){try{if(this.is_pending=this.has_pending_snippet(),this.#m=0,this.#d=0,this.#r=wt(()=>{this.#o(this.#t)}),this.#m>0){var e=this.#s=document.createDocumentFragment();Bn(this.#r,e);const n=this.#e.pending;this.#l=wt(()=>n(this.#t))}else this.#k(C)}catch(n){this.error(n)}}#k(e){this.is_pending=!1,e.transfer_effects(this.#c,this.#g)}defer_effect(e){dr(e,this.#c,this.#g)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#e.pending}#u(e){var n=A,r=$,o=xt;_t(this.#i),mt(this.#i),ze(this.#i.ctx);try{return qt.ensure(),e()}catch(i){return mr(i),null}finally{_t(n),mt(r),ze(o)}}#x(e,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#x(e,n);return}this.#m+=e,this.#m===0&&(this.#k(n),this.#l&&he(this.#l,()=>{this.#l=null}),this.#s&&(this.#t.before(this.#s),this.#s=null))}update_pending_count(e,n){this.#x(e,n),this.#d+=e,!(!this.#p||this.#v)&&(this.#v=!0,ke(()=>{this.#v=!1,this.#p&&Ce(this.#p,this.#d)}))}get_effect_pending(){return this.#f(),x(this.#p)}error(e){var n=this.#e.onerror;let r=this.#e.failed;if(!n&&!r)throw e;this.#r&&(rt(this.#r),this.#r=null),this.#l&&(rt(this.#l),this.#l=null),this.#a&&(rt(this.#a),this.#a=null),E&&(X(this.#n),Io(),X(an()));var o=!1,i=!1;const l=()=>{if(o){Mo();return}o=!0,i&&Do(),this.#a!==null&&he(this.#a,()=>{this.#a=null}),this.#u(()=>{this.#h()})},a=s=>{try{i=!0,n?.(s,l),i=!1}catch(m){ie(m,this.#i&&this.#i.parent)}r&&(this.#a=this.#u(()=>{try{return wt(()=>{var m=A;m.b=this,m.f|=xn,r(this.#t,()=>s,()=>l)})}catch(m){return ie(m,this.#i.parent),null}}))};ke(()=>{var s;try{s=this.transform_error(e)}catch(m){ie(m,this.#i&&this.#i.parent);return}s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(a,m=>ie(m,this.#i&&this.#i.parent)):a(s)})}}function Ko(t,e,n,r){const o=An;var i=t.filter(d=>!d.settled);if(n.length===0&&i.length===0){r(e.map(o));return}var l=A,a=Xo(),s=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(d=>d.promise)):null;function m(d){a();try{r(d)}catch(c){(l.f&ht)===0&&ie(c,l)}pn()}if(n.length===0){s.then(()=>m(e.map(o)));return}var p=ur();function g(){Promise.all(n.map(d=>Zo(d))).then(d=>m([...e.map(o),...d])).catch(d=>ie(d,l)).finally(()=>p())}s?s.then(()=>{a(),g(),pn()}):g()}function Xo(){var t=A,e=$,n=xt,r=C;return function(i=!0){_t(t),mt(e),ze(n),i&&(t.f&ht)===0&&(r?.activate(),r?.apply())}}function pn(t=!0){_t(null),mt(null),ze(null),t&&C?.deactivate()}function ur(){var t=A,e=t.b,n=C,r=e.is_rendered();return e.update_pending_count(1,n),n.increment(r,t),(o=!1)=>{e.update_pending_count(-1,n),n.decrement(r,t,o)}}function An(t){var e=Y|tt,n=$!==null&&($.f&Y)!==0?$:null;return A!==null&&(A.f|=re),{ctx:xt,deps:null,effects:null,equals:rr,f:e,fn:t,reactions:null,rv:0,v:K,wv:0,parent:n??A,ac:null}}function Zo(t,e,n){let r=A;r===null&&jo();var o=void 0,i=ue(K),l=!$,a=new Map;return pi(()=>{var s=A,m=Kn();o=m.promise;try{Promise.resolve(t()).then(m.resolve,m.reject).finally(pn)}catch(c){m.reject(c),pn()}var p=C;if(l){if((s.f&ne)!==0)var g=ur();if(r.b.is_rendered())a.get(p)?.reject(Ut),a.delete(p);else{for(const c of a.values())c.reject(Ut);a.clear()}a.set(p,m)}const d=(c,f=void 0)=>{if(g){var y=f===Ut;g(y)}if(!(f===Ut||(s.f&ht)!==0)){if(p.activate(),f)i.f|=oe,Ce(i,f);else{(i.f&oe)!==0&&(i.f^=oe),Ce(i,c);for(const[v,j]of a){if(a.delete(v),v===p)break;j.reject(Ut)}}p.deactivate()}};m.promise.then(d,c=>d(null,c||"unknown"))}),ii(()=>{for(const s of a.values())s.reject(Ut)}),new Promise(s=>{function m(p){function g(){p===o?s(i):m(o)}p.then(g,g)}m(o)})}function hr(t){const e=An(t);return e.equals=or,e}function Qo(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)rt(e[n])}}function ti(t){for(var e=t.parent;e!==null;){if((e.f&Y)===0)return(e.f&ht)===0?e:null;e=e.parent}return null}function Sn(t){var e,n=A;_t(ti(t));try{t.f&=~fe,Qo(t),e=Jr(t)}finally{_t(n)}return e}function xr(t){var e=t.v,n=Sn(t);if(!t.equals(n)&&(t.wv=Gr(),(!C?.is_fork||t.deps===null)&&(t.v=n,C?.capture(t,e,!0),t.deps===null))){G(t,F);return}me||(Rt!==null?(zn()||C?.is_fork)&&Rt.set(t,n):_n(t))}function ei(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac?.abort(Ut),e.teardown=xo,e.ac=null,Ue(e,0),On(e))}function yr(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&De(e)}let Nn=new Set;const ae=new Map;let wr=!1;function ue(t,e){var n={f:0,v:t,reactions:null,equals:rr,rv:0,wv:0};return n}function Yt(t,e){const n=ue(t);return gi(n),n}function _r(t,e=!1,n=!0){const r=ue(t);return e||(r.equals=or),r}function Tt(t,e,n=!1){$!==null&&(!Ot||($.f&Qn)!==0)&&ar()&&($.f&(Y|te|wn|Qn))!==0&&($t===null||!Se.call($t,t))&&Bo();let r=n?Be(e):e;return Ce(t,r,mn)}function Ce(t,e,n=null){if(!t.equals(e)){var r=t.v;me?ae.set(t,e):ae.set(t,r),t.v=e;var o=qt.ensure();if(o.capture(t,r),(t.f&Y)!==0){const i=t;(t.f&tt)!==0&&Sn(i),Rt===null&&_n(i)}t.wv=Gr(),$r(t,tt,n),A!==null&&(A.f&F)!==0&&(A.f&(Nt|ee))===0&&(jt===null?ci([t]):jt.push(t)),!o.is_fork&&Nn.size>0&&!wr&&ni()}return e}function ni(){wr=!1;for(const t of Nn)(t.f&F)!==0&&G(t,It),Je(t)&&De(t);Nn.clear()}function Fe(t){Tt(t,t.v+1)}function $r(t,e,n){var r=t.reactions;if(r!==null)for(var o=r.length,i=0;i<o;i++){var l=r[i],a=l.f,s=(a&tt)===0;if(s&&G(l,e),(a&Y)!==0){var m=l;Rt?.delete(m),(a&fe)===0&&(a&ut&&(l.f|=fe),$r(m,It,n))}else if(s){var p=l;(a&te)!==0&&Ht!==null&&Ht.add(p),n!==null?n.push(p):En(p)}}}function Be(t){if(typeof t!="object"||t===null||on in t)return t;const e=Vn(t);if(e!==uo&&e!==ho)return t;var n=new Map,r=Yn(t),o=Yt(0),i=ye,l=a=>{if(ye===i)return a();var s=$,m=ye;mt(null),Pr(i);var p=a();return mt(s),Pr(m),p};return r&&n.set("length",Yt(t.length)),new Proxy(t,{defineProperty(a,s,m){(!("value"in m)||m.configurable===!1||m.enumerable===!1||m.writable===!1)&&Oo();var p=n.get(s);return p===void 0?l(()=>{var g=Yt(m.value);return n.set(s,g),g}):Tt(p,m.value,!0),!0},deleteProperty(a,s){var m=n.get(s);if(m===void 0){if(s in a){const p=l(()=>Yt(K));n.set(s,p),Fe(o)}}else Tt(m,K),Fe(o);return!0},get(a,s,m){if(s===on)return t;var p=n.get(s),g=s in a;if(p===void 0&&(!g||ce(a,s)?.writable)&&(p=l(()=>{var c=Be(g?a[s]:K),f=Yt(c);return f}),n.set(s,p)),p!==void 0){var d=x(p);return d===K?void 0:d}return Reflect.get(a,s,m)},getOwnPropertyDescriptor(a,s){var m=Reflect.getOwnPropertyDescriptor(a,s);if(m&&"value"in m){var p=n.get(s);p&&(m.value=x(p))}else if(m===void 0){var g=n.get(s),d=g?.v;if(g!==void 0&&d!==K)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return m},has(a,s){if(s===on)return!0;var m=n.get(s),p=m!==void 0&&m.v!==K||Reflect.has(a,s);if(m!==void 0||A!==null&&(!p||ce(a,s)?.writable)){m===void 0&&(m=l(()=>{var d=p?Be(a[s]):K,c=Yt(d);return c}),n.set(s,m));var g=x(m);if(g===K)return!1}return p},set(a,s,m,p){var g=n.get(s),d=s in a;if(r&&s==="length")for(var c=m;c<g.v;c+=1){var f=n.get(c+"");f!==void 0?Tt(f,K):c in a&&(f=l(()=>Yt(K)),n.set(c+"",f))}if(g===void 0)(!d||ce(a,s)?.writable)&&(g=l(()=>Yt(void 0)),Tt(g,Be(m)),n.set(s,g));else{d=g.v!==K;var y=l(()=>Be(m));Tt(g,y)}var v=Reflect.getOwnPropertyDescriptor(a,s);if(v?.set&&v.set.call(p,m),!d){if(r&&typeof s=="string"){var j=n.get("length"),z=Number(s);Number.isInteger(z)&&z>=j.v&&Tt(j,z+1)}Fe(o)}return!0},ownKeys(a){x(o);var s=Reflect.ownKeys(a).filter(g=>{var d=n.get(g);return d===void 0||d.v!==K});for(var[m,p]of n)p.v!==K&&!(m in a)&&s.push(m);return s},setPrototypeOf(){Co()}})}var jr,Er,Ar,Sr;function Rn(){if(jr===void 0){jr=window,Er=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;Ar=ce(e,"firstChild").get,Sr=ce(e,"nextSibling").get,Wn(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Wn(n)&&(n.__t=void 0)}}function nt(t=""){return document.createTextNode(t)}function se(t){return Ar.call(t)}function yt(t){return Sr.call(t)}function u(t,e){if(!E)return se(t);var n=se(N);if(n===null)n=N.appendChild(nt());else if(e&&n.nodeType!==Le){var r=nt();return n?.before(r),X(r),r}return e&&dn(n),X(n),n}function zt(t,e=!1){if(!E){var n=se(t);return n instanceof Comment&&n.data===""?yt(n):n}if(e){if(N?.nodeType!==Le){var r=nt();return N?.before(r),X(r),r}dn(N)}return N}function D(t,e=1,n=!1){let r=E?N:t;for(var o;e--;)o=r,r=yt(r);if(!E)return r;if(n){if(r?.nodeType!==Le){var i=nt();return r===null?o?.after(i):r.before(i),X(i),i}dn(r)}return X(r),r}function Nr(t){t.textContent=""}function Rr(){return!1}function Tn(t,e,n){return document.createElementNS(Hn,t,void 0)}function dn(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===Le;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function Tr(t){var e=$,n=A;mt(null),_t(null);try{return t()}finally{mt(e),_t(n)}}function ri(t){A===null&&($===null&&No(),So()),me&&Ao()}function oi(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function Gt(t,e){var n=A;n!==null&&(n.f&ft)!==0&&(t|=ft);var r={ctx:xt,deps:null,nodes:null,f:t|tt|ut,first:null,fn:e,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},o=r;if((t&Ne)!==0)Oe!==null?Oe.push(r):qt.ensure().schedule(r);else if(e!==null){try{De(r)}catch(l){throw rt(r),l}o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&re)===0&&(o=o.first,(t&te)!==0&&(t&Re)!==0&&o!==null&&(o.f|=Re))}if(o!==null&&(o.parent=n,n!==null&&oi(o,n),$!==null&&($.f&Y)!==0&&(t&ee)===0)){var i=$;(i.effects??=[]).push(o)}return r}function zn(){return $!==null&&!Ot}function ii(t){const e=Gt(rn,null);return G(e,F),e.teardown=t,e}function li(t){ri();var e=A.f,n=!$&&(e&Nt)!==0&&(e&ne)===0;if(n){var r=xt;(r.e??=[]).push(t)}else return zr(t)}function zr(t){return Gt(Ne|wo,t)}function ai(t){qt.ensure();const e=Gt(ee|re,t);return()=>{rt(e)}}function si(t){qt.ensure();const e=Gt(ee|re,t);return(n={})=>new Promise(r=>{n.outro?he(e,()=>{rt(e),r(void 0)}):(rt(e),r(void 0))})}function mi(t){return Gt(Ne,t)}function pi(t){return Gt(wn|re,t)}function Or(t,e=0){return Gt(rn|e,t)}function L(t,e=[],n=[],r=[]){Ko(r,e,n,o=>{Gt(rn,()=>t(...o.map(x)))})}function vn(t,e=0){var n=Gt(te|e,t);return n}function wt(t){return Gt(Nt|re,t)}function Cr(t){var e=t.teardown;if(e!==null){const n=me,r=$;Ir(!0),mt(null);try{e.call(null)}finally{Ir(n),mt(r)}}}function On(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const o=n.ac;o!==null&&Tr(()=>{o.abort(Ut)});var r=n.next;(n.f&ee)!==0?n.parent=null:rt(n,e),n=r}}function di(t){for(var e=t.first;e!==null;){var n=e.next;(e.f&Nt)===0&&rt(e),e=n}}function rt(t,e=!0){var n=!1;(e||(t.f&tr)!==0)&&t.nodes!==null&&t.nodes.end!==null&&(vi(t.nodes.start,t.nodes.end),n=!0),G(t,Zn),On(t,e&&!n),Ue(t,0);var r=t.nodes&&t.nodes.t;if(r!==null)for(const i of r)i.stop();Cr(t),t.f^=Zn,t.f|=ht;var o=t.parent;o!==null&&o.first!==null&&Br(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function vi(t,e){for(;t!==null;){var n=t===e?null:yt(t);t.remove(),t=n}}function Br(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function he(t,e,n=!0){var r=[];Dr(t,r,!0);var o=()=>{n&&rt(t),e&&e()},i=r.length;if(i>0){var l=()=>--i||o();for(var a of r)a.out(l)}else o()}function Dr(t,e,n){if((t.f&ft)===0){t.f^=ft;var r=t.nodes&&t.nodes.t;if(r!==null)for(const a of r)(a.is_global||n)&&e.push(a);for(var o=t.first;o!==null;){var i=o.next,l=(o.f&Re)!==0||(o.f&Nt)!==0&&(t.f&te)!==0;Dr(o,e,l?n:!1),o=i}}}function Cn(t){Mr(t,!0)}function Mr(t,e){if((t.f&ft)!==0){t.f^=ft,(t.f&F)===0&&(G(t,tt),qt.ensure().schedule(t));for(var n=t.first;n!==null;){var r=n.next,o=(n.f&Re)!==0||(n.f&Nt)!==0;Mr(n,o?e:!1),n=r}var i=t.nodes&&t.nodes.t;if(i!==null)for(const l of i)(l.is_global||e)&&l.in()}}function Bn(t,e){if(t.nodes)for(var n=t.nodes.start,r=t.nodes.end;n!==null;){var o=n===r?null:yt(n);e.append(n),n=o}}let gn=!1,me=!1;function Ir(t){me=t}let $=null,Ot=!1;function mt(t){$=t}let A=null;function _t(t){A=t}let $t=null;function gi(t){$!==null&&($t===null?$t=[t]:$t.push(t))}let pt=null,kt=0,jt=null;function ci(t){jt=t}let Lr=1,xe=0,ye=xe;function Pr(t){ye=t}function Gr(){return++Lr}function Je(t){var e=t.f;if((e&tt)!==0)return!0;if(e&Y&&(t.f&=~fe),(e&It)!==0){for(var n=t.deps,r=n.length,o=0;o<r;o++){var i=n[o];if(Je(i)&&xr(i),i.wv>t.wv)return!0}(e&ut)!==0&&Rt===null&&G(t,F)}return!1}function Fr(t,e,n=!0){var r=t.reactions;if(r!==null&&!($t!==null&&Se.call($t,t)))for(var o=0;o<r.length;o++){var i=r[o];(i.f&Y)!==0?Fr(i,e,!1):e===i&&(n?G(i,tt):(i.f&F)!==0&&G(i,It),En(i))}}function Jr(t){var e=pt,n=kt,r=jt,o=$,i=$t,l=xt,a=Ot,s=ye,m=t.f;pt=null,kt=0,jt=null,$=(m&(Nt|ee))===0?t:null,$t=null,ze(t.ctx),Ot=!1,ye=++xe,t.ac!==null&&(Tr(()=>{t.ac.abort(Ut)}),t.ac=null);try{t.f|=yn;var p=t.fn,g=p();t.f|=ne;var d=t.deps,c=C?.is_fork;if(pt!==null){var f;if(c||Ue(t,kt),d!==null&&kt>0)for(d.length=kt+pt.length,f=0;f<pt.length;f++)d[kt+f]=pt[f];else t.deps=d=pt;if(zn()&&(t.f&ut)!==0)for(f=kt;f<d.length;f++)(d[f].reactions??=[]).push(t)}else!c&&d!==null&&kt<d.length&&(Ue(t,kt),d.length=kt);if(ar()&&jt!==null&&!Ot&&d!==null&&(t.f&(Y|It|tt))===0)for(f=0;f<jt.length;f++)Fr(jt[f],t);if(o!==null&&o!==t){if(xe++,o.deps!==null)for(let y=0;y<n;y+=1)o.deps[y].rv=xe;if(e!==null)for(const y of e)y.rv=xe;jt!==null&&(r===null?r=jt:r.push(...jt))}return(t.f&oe)!==0&&(t.f^=oe),g}catch(y){return mr(y)}finally{t.f^=yn,pt=e,kt=n,jt=r,$=o,$t=i,ze(l),Ot=a,ye=s}}function fi(t,e){let n=e.reactions;if(n!==null){var r=bo.call(n,t);if(r!==-1){var o=n.length-1;o===0?n=e.reactions=null:(n[r]=n[o],n.pop())}}if(n===null&&(e.f&Y)!==0&&(pt===null||!Se.call(pt,e))){var i=e;(i.f&ut)!==0&&(i.f^=ut,i.f&=~fe),_n(i),ei(i),Ue(i,0)}}function Ue(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)fi(t,n[r])}function De(t){var e=t.f;if((e&ht)===0){G(t,F);var n=A,r=gn;A=t,gn=!0;try{(e&(te|Xn))!==0?di(t):On(t),Cr(t);var o=Jr(t);t.teardown=typeof o=="function"?o:null,t.wv=Lr;var i;fo&&Po&&(t.f&tt)!==0&&t.deps}finally{gn=r,A=n}}}function x(t){var e=t.f,n=(e&Y)!==0;if($!==null&&!Ot){var r=A!==null&&(A.f&ht)!==0;if(!r&&($t===null||!Se.call($t,t))){var o=$.deps;if(($.f&yn)!==0)t.rv<xe&&(t.rv=xe,pt===null&&o!==null&&o[kt]===t?kt++:pt===null?pt=[t]:pt.push(t));else{($.deps??=[]).push(t);var i=t.reactions;i===null?t.reactions=[$]:Se.call(i,$)||i.push($)}}}if(me&&ae.has(t))return ae.get(t);if(n){var l=t;if(me){var a=l.v;return((l.f&F)===0&&l.reactions!==null||qr(l))&&(a=Sn(l)),ae.set(l,a),a}var s=(l.f&ut)===0&&!Ot&&$!==null&&(gn||($.f&ut)!==0),m=(l.f&ne)===0;Je(l)&&(s&&(l.f|=ut),xr(l)),s&&!m&&(yr(l),Ur(l))}if(Rt?.has(t))return Rt.get(t);if((t.f&oe)!==0)throw t.v;return t.v}function Ur(t){if(t.f|=ut,t.deps!==null)for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&Y)!==0&&(e.f&ut)===0&&(yr(e),Ur(e))}function qr(t){if(t.v===K)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(ae.has(e)||(e.f&Y)!==0&&qr(e))return!0;return!1}function Hr(t){var e=Ot;try{return Ot=!0,t()}finally{Ot=e}}const qe=Symbol("events"),Yr=new Set,Dn=new Set;function He(t,e,n){(e[qe]??={})[t]=n}function bi(t){for(var e=0;e<t.length;e++)Yr.add(t[e]);for(var n of Dn)n(t)}let Vr=null;function Wr(t){var e=this,n=e.ownerDocument,r=t.type,o=t.composedPath?.()||[],i=o[0]||t.target;Vr=t;var l=0,a=Vr===t&&t[qe];if(a){var s=o.indexOf(a);if(s!==-1&&(e===document||e===window)){t[qe]=e;return}var m=o.indexOf(e);if(m===-1)return;s<=m&&(l=s)}if(i=o[l]||t.target,i!==e){nn(t,"currentTarget",{configurable:!0,get(){return i||n}});var p=$,g=A;mt(null),_t(null);try{for(var d,c=[];i!==null;){var f=i.assignedSlot||i.parentNode||i.host||null;try{var y=i[qe]?.[r];y!=null&&(!i.disabled||t.target===i)&&y.call(i,t)}catch(v){d?c.push(v):d=v}if(t.cancelBubble||f===e||f===null)break;i=f}if(d){for(let v of c)queueMicrotask(()=>{throw v});throw d}}finally{t[qe]=e,delete t.currentTarget,mt(p),_t(g)}}}const ki=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function ui(t){return ki?.createHTML(t)??t}function hi(t){var e=Tn("template");return e.innerHTML=ui(t.replaceAll("<!>","<!---->")),e.content}function pe(t,e){var n=A;n.nodes===null&&(n.nodes={start:t,end:e,a:null,t:null})}function R(t,e){var n=(e&go)!==0,r=(e&co)!==0,o,i=!t.startsWith("<!>");return()=>{if(E)return pe(N,null),N;o===void 0&&(o=hi(i?t:"<!>"+t),n||(o=se(o)));var l=r||Er?document.importNode(o,!0):o.cloneNode(!0);if(n){var a=se(l),s=l.lastChild;pe(a,s)}else pe(l,l);return l}}function xi(t=""){if(!E){var e=nt(t+"");return pe(e,e),e}var n=N;return n.nodeType!==Le?(n.before(n=nt()),X(n)):dn(n),pe(n,n),n}function Ft(){if(E)return pe(N,null),N;var t=document.createDocumentFragment(),e=document.createComment(""),n=nt();return t.append(e,n),pe(e,n),t}function h(t,e){if(E){var n=A;((n.f&ne)===0||n.nodes.end===null)&&(n.nodes.end=N),Pe();return}t!==null&&t.before(e)}const yi=["touchstart","touchmove"];function wi(t){return yi.includes(t)}function Ct(t,e){var n=e==null?"":typeof e=="object"?`${e}`:e;n!==(t.__t??=t.nodeValue)&&(t.__t=n,t.nodeValue=`${n}`)}function Kr(t,e){return Xr(t,e)}function _i(t,e){Rn(),e.intro=e.intro??!1;const n=e.target,r=E,o=N;try{for(var i=se(n);i&&(i.nodeType!==Te||i.data!==Un);)i=yt(i);if(!i)throw Ae;bt(!0),X(i);const l=Xr(t,{...e,anchor:i});return bt(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
+ `).some(a=>a.startsWith("https://svelte.dev/e/")))throw l;return l!==Ae&&console.warn("Failed to hydrate: ",l),e.recover===!1&&To(),Rn(),Nr(n),bt(!1),Kr(t,e)}finally{bt(r),X(o)}}const cn=new Map;function Xr(t,{target:e,anchor:n,props:r={},events:o,context:i,intro:l=!0,transformError:a}){Rn();var s=void 0,m=si(()=>{var p=n??e.appendChild(nt());Vo(p,{pending:()=>{}},c=>{ir({});var f=xt;if(i&&(f.c=i),o&&(r.$$events=o),E&&pe(c,null),s=t(c,r)||{},E&&(A.nodes.end=N,N===null||N.nodeType!==Te||N.data!==hn))throw ln(),Ae;lr()},a);var g=new Set,d=c=>{for(var f=0;f<c.length;f++){var y=c[f];if(!g.has(y)){g.add(y);var v=wi(y);for(const T of[e,document]){var j=cn.get(T);j===void 0&&(j=new Map,cn.set(T,j));var z=j.get(y);z===void 0?(T.addEventListener(y,Wr,{passive:v}),j.set(y,1)):j.set(y,z+1)}}}};return d(tn(Yr)),Dn.add(d),()=>{for(var c of g)for(const v of[e,document]){var f=cn.get(v),y=f.get(c);--y==0?(v.removeEventListener(c,Wr),f.delete(c),f.size===0&&cn.delete(v)):f.set(c,y)}Dn.delete(d),p!==n&&p.parentNode?.removeChild(p)}});return Mn.set(s,m),s}let Mn=new WeakMap;function $i(t,e){const n=Mn.get(t);return n?(Mn.delete(t),n(e)):Promise.resolve()}class ji{anchor;#t=new Map;#n=new Map;#e=new Map;#o=new Set;#i=!0;constructor(e,n=!0){this.anchor=e,this.#i=n}#r=e=>{if(this.#t.has(e)){var n=this.#t.get(e),r=this.#n.get(n);if(r)Cn(r),this.#o.delete(n);else{var o=this.#e.get(n);o&&(this.#n.set(n,o.effect),this.#e.delete(n),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),r=o.effect)}for(const[i,l]of this.#t){if(this.#t.delete(i),i===e)break;const a=this.#e.get(l);a&&(rt(a.effect),this.#e.delete(l))}for(const[i,l]of this.#n){if(i===n||this.#o.has(i))continue;const a=()=>{if(Array.from(this.#t.values()).includes(i)){var m=document.createDocumentFragment();Bn(l,m),m.append(nt()),this.#e.set(i,{effect:l,fragment:m})}else rt(l);this.#o.delete(i),this.#n.delete(i)};this.#i||!r?(this.#o.add(i),he(l,a,!1)):a()}}};#l=e=>{this.#t.delete(e);const n=Array.from(this.#t.values());for(const[r,o]of this.#e)n.includes(r)||(rt(o.effect),this.#e.delete(r))};ensure(e,n){var r=C,o=Rr();if(n&&!this.#n.has(e)&&!this.#e.has(e))if(o){var i=document.createDocumentFragment(),l=nt();i.append(l),this.#e.set(e,{effect:wt(()=>n(l)),fragment:i})}else this.#n.set(e,wt(()=>n(this.anchor)));if(this.#t.set(r,e),o){for(const[a,s]of this.#n)a===e?r.unskip_effect(s):r.skip_effect(s);for(const[a,s]of this.#e)a===e?r.unskip_effect(s.effect):r.skip_effect(s.effect);r.oncommit(this.#r),r.ondiscard(this.#l)}else E&&(this.anchor=N),this.#r(r)}}function M(t,e,n=!1){var r;E&&(r=N,Pe());var o=new ji(t),i=n?Re:0;function l(a,s){if(E){var m=nr(r);if(a!==parseInt(m.substring(1))){var p=an();X(p),o.anchor=p,bt(!1),o.ensure(a,s),bt(!0);return}}o.ensure(a,s)}vn(()=>{var a=!1;e((s,m=0)=>{a=!0,l(m,s)}),a||l(-1,null)},i)}function Ei(t,e,n){for(var r=[],o=e.length,i,l=e.length,a=0;a<o;a++){let g=e[a];he(g,()=>{if(i){if(i.pending.delete(g),i.done.add(g),i.pending.size===0){var d=t.outrogroups;In(t,tn(i.done)),d.delete(i),d.size===0&&(t.outrogroups=null)}}else l-=1},!1)}if(l===0){var s=r.length===0&&n!==null;if(s){var m=n,p=m.parentNode;Nr(p),p.append(m),t.items.clear()}In(t,e,!s)}else i={pending:new Set(e),done:new Set},(t.outrogroups??=new Set).add(i)}function In(t,e,n=!0){var r;if(t.pending.size>0){r=new Set;for(const l of t.pending.values())for(const a of l)r.add(t.items.get(a).e)}for(var o=0;o<e.length;o++){var i=e[o];if(r?.has(i)){i.f|=Lt;const l=document.createDocumentFragment();Bn(i,l)}else rt(e[o],n)}}var Zr;function we(t,e,n,r,o,i=null){var l=t,a=new Map,s=(e&Jn)!==0;if(s){var m=t;l=E?X(se(m)):m.appendChild(nt())}E&&Pe();var p=null,g=hr(()=>{var T=n();return Yn(T)?T:T==null?[]:tn(T)}),d,c=new Map,f=!0;function y(T){(z.effect.f&ht)===0&&(z.pending.delete(T),z.fallback=p,Ai(z,d,l,e,r),p!==null&&(d.length===0?(p.f&Lt)===0?Cn(p):(p.f^=Lt,Ve(p,null,l)):he(p,()=>{p=null})))}function v(T){z.pending.delete(T)}var j=vn(()=>{d=x(g);var T=d.length;let b=!1;if(E){var S=nr(l)===un;S!==(T===0)&&(l=an(),X(l),bt(!1),b=!0)}for(var B=new Set,V=C,Bt=Rr(),dt=0;dt<T;dt+=1){E&&N.nodeType===Te&&N.data===hn&&(l=N,b=!0,bt(!1));var it=d[dt],vt=r(it,dt),Z=f?null:a.get(vt);Z?(Z.v&&Ce(Z.v,it),Z.i&&Ce(Z.i,dt),Bt&&V.unskip_effect(Z.e)):(Z=Si(a,f?l:Zr??=nt(),it,vt,dt,o,e,n),f||(Z.e.f|=Lt),a.set(vt,Z)),B.add(vt)}if(T===0&&i&&!p&&(f?p=wt(()=>i(l)):(p=wt(()=>i(Zr??=nt())),p.f|=Lt)),T>B.size&&Eo(),E&&T>0&&X(an()),!f)if(c.set(V,B),Bt){for(const[Me,Ke]of a)B.has(Me)||V.skip_effect(Ke.e);V.oncommit(y),V.ondiscard(v)}else y(V);b&&bt(!0),x(g)}),z={effect:j,items:a,pending:c,outrogroups:null,fallback:p};f=!1,E&&(l=N)}function Ye(t){for(;t!==null&&(t.f&Nt)===0;)t=t.next;return t}function Ai(t,e,n,r,o){var i=(r&lo)!==0,l=e.length,a=t.items,s=Ye(t.effect.first),m,p=null,g,d=[],c=[],f,y,v,j;if(i)for(j=0;j<l;j+=1)f=e[j],y=o(f,j),v=a.get(y).e,(v.f&Lt)===0&&(v.nodes?.a?.measure(),(g??=new Set).add(v));for(j=0;j<l;j+=1){if(f=e[j],y=o(f,j),v=a.get(y).e,t.outrogroups!==null)for(const it of t.outrogroups)it.pending.delete(v),it.done.delete(v);if((v.f&ft)!==0&&(Cn(v),i&&(v.nodes?.a?.unfix(),(g??=new Set).delete(v))),(v.f&Lt)!==0)if(v.f^=Lt,v===s)Ve(v,null,n);else{var z=p?p.next:s;v===t.effect.last&&(t.effect.last=v.prev),v.prev&&(v.prev.next=v.next),v.next&&(v.next.prev=v.prev),de(t,p,v),de(t,v,z),Ve(v,z,n),p=v,d=[],c=[],s=Ye(p.next);continue}if(v!==s){if(m!==void 0&&m.has(v)){if(d.length<c.length){var T=c[0],b;p=T.prev;var S=d[0],B=d[d.length-1];for(b=0;b<d.length;b+=1)Ve(d[b],T,n);for(b=0;b<c.length;b+=1)m.delete(c[b]);de(t,S.prev,B.next),de(t,p,S),de(t,B,T),s=T,p=B,j-=1,d=[],c=[]}else m.delete(v),Ve(v,s,n),de(t,v.prev,v.next),de(t,v,p===null?t.effect.first:p.next),de(t,p,v),p=v;continue}for(d=[],c=[];s!==null&&s!==v;)(m??=new Set).add(s),c.push(s),s=Ye(s.next);if(s===null)continue}(v.f&Lt)===0&&d.push(v),p=v,s=Ye(v.next)}if(t.outrogroups!==null){for(const it of t.outrogroups)it.pending.size===0&&(In(t,tn(it.done)),t.outrogroups?.delete(it));t.outrogroups.size===0&&(t.outrogroups=null)}if(s!==null||m!==void 0){var V=[];if(m!==void 0)for(v of m)(v.f&ft)===0&&V.push(v);for(;s!==null;)(s.f&ft)===0&&s!==t.fallback&&V.push(s),s=Ye(s.next);var Bt=V.length;if(Bt>0){var dt=(r&Jn)!==0&&l===0?n:null;if(i){for(j=0;j<Bt;j+=1)V[j].nodes?.a?.measure();for(j=0;j<Bt;j+=1)V[j].nodes?.a?.fix()}Ei(t,V,dt)}}i&&ke(()=>{if(g!==void 0)for(v of g)v.nodes?.a?.apply()})}function Si(t,e,n,r,o,i,l,a){var s=(l&oo)!==0?(l&ao)===0?_r(n,!1,!1):ue(n):null,m=(l&io)!==0?ue(o):null;return{v:s,i:m,e:wt(()=>(i(e,s??n,m??o,a),()=>{t.delete(r)}))}}function Ve(t,e,n){if(t.nodes)for(var r=t.nodes.start,o=t.nodes.end,i=e&&(e.f&Lt)===0?e.nodes.start:n;r!==null;){var l=yt(r);if(i.before(r),r===o)return;r=l}}function de(t,e,n){e===null?t.effect.first=n:e.next=n,n===null?t.effect.last=e:n.prev=e}function We(t,e,n,r,o){E&&Pe();var i=e.$$slots?.[n],l=!1;i===!0&&(i=e[n==="default"?"children":n],l=!0),i===void 0?o!==null&&o(t):i(t,l?()=>r:r)}function Ni(t,e){let n=null,r=E;var o;if(E){n=N;for(var i=se(document.head);i!==null&&(i.nodeType!==Te||i.data!==t);)i=yt(i);if(i===null)bt(!1);else{var l=yt(i);i.remove(),X(l)}}E||(o=document.head.appendChild(nt()));try{vn(()=>e(o),tr|re)}finally{r&&(bt(!0),X(n))}}function Ri(t,e){mi(()=>{var n=t.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const o=Tn("style");o.id=e.hash,o.textContent=e.code,r.appendChild(o)}})}function Ti(t,e,n){var r=t==null?"":""+t;return e&&(r=r?r+" "+e:e),r===""?null:r}function J(t,e,n,r,o,i){var l=t.__className;if(E||l!==n||l===void 0){var a=Ti(n,r);(!E||a!==t.getAttribute("class"))&&(a==null?t.removeAttribute("class"):t.className=a),t.__className=n}return i}const zi=Symbol("is custom element"),Oi=Symbol("is html"),Ci=$o?"link":"LINK";function fn(t,e,n,r){var o=Bi(t);E&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===Ci)||o[e]!==(o[e]=n)&&(e==="loading"&&(t[_o]=n),n==null?t.removeAttribute(e):typeof n!="string"&&Qr(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function ot(t,e,n){var r=$,o=A;let i=E;E&&bt(!1),mt(null),_t(null);try{e!=="style"&&(Ln.has(t.getAttribute("is")||t.nodeName)||!customElements||customElements.get(t.getAttribute("is")||t.nodeName.toLowerCase())?Qr(t).includes(e):n&&typeof n=="object")?t[e]=n:fn(t,e,n==null?n:String(n))}finally{mt(r),_t(o),i&&bt(!0)}}function Bi(t){return t.__attributes??={[zi]:t.nodeName.includes("-"),[Oi]:t.namespaceURI===Hn}}var Ln=new Map;function Qr(t){var e=t.getAttribute("is")||t.nodeName,n=Ln.get(e);if(n)return n;Ln.set(e,n=[]);for(var r,o=t,i=Element.prototype;i!==o;){r=ko(o);for(var l in r)r[l].set&&n.push(l);o=Vn(o)}return n}function Vt(t,e,n,r){var o=(n&po)!==0,i=(n&vo)!==0,l=r,a=!0,s=()=>(a&&(a=!1,l=i?Hr(r):r),l);let m;if(o){var p=on in t||er in t;m=ce(t,e)?.set??(p&&e in t?z=>t[e]=z:void 0)}var g,d=!1;o?[g,d]=Jo(()=>t[e]):g=t[e],g===void 0&&r!==void 0&&(g=s(),m&&(zo(),m(g)));var c;if(c=()=>{var z=t[e];return z===void 0?s():(a=!0,z)},(n&mo)===0)return c;if(m){var f=t.$$legacy;return(function(z,T){return arguments.length>0?((!T||f||d)&&m(T?c():z),z):c()})}var y=!1,v=((n&so)!==0?An:hr)(()=>(y=!1,c()));o&&x(v);var j=A;return(function(z,T){if(arguments.length>0){const b=T?x(v):o?Be(z):z;return Tt(v,b),y=!0,l!==void 0&&(l=b),z}return me&&y||(j.f&ht)!==0?v.v:x(v)})}function Di(t){return new Mi(t)}class Mi{#t;#n;constructor(e){var n=new Map,r=(i,l)=>{var a=_r(l,!1,!1);return n.set(i,a),a};const o=new Proxy({...e.props||{},$$events:{}},{get(i,l){return x(n.get(l)??r(l,Reflect.get(i,l)))},has(i,l){return l===er?!0:(x(n.get(l)??r(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,a){return Tt(n.get(l)??r(l,a),a),Reflect.set(i,l,a)}});this.#n=(e.hydrate?_i:Kr)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&Pt(),this.#t=o.$$events;for(const i of Object.keys(this.#n))i==="$set"||i==="$destroy"||i==="$on"||nn(this,i,{get(){return this.#n[i]},set(l){this.#n[i]=l},enumerable:!0});this.#n.$set=i=>{Object.assign(o,i)},this.#n.$destroy=()=>{$i(this.#n)}}$set(e){this.#n.$set(e)}$on(e,n){this.#t[e]=this.#t[e]||[];const r=(...o)=>n.call(this,...o);return this.#t[e].push(r),()=>{this.#t[e]=this.#t[e].filter(o=>o!==r)}}$destroy(){this.#n.$destroy()}}let to;typeof HTMLElement=="function"&&(to=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(t,e,n){super(),this.$$ctor=t,this.$$s=e,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return o=>{const i=Tn("slot");r!=="default"&&(i.name=r),h(o,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},n=Ii(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const o=this.$$g_p(r.name);o in this.$$d||(this.$$d[o]=bn(o,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=Di({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=ai(()=>{Or(()=>{this.$$r=!0;for(const r of en(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const o=bn(r,this.$$d[r],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,o)}this.$$r=!1})});for(const r in this.$$l)for(const o of this.$$l[r]){const i=this.$$c.$on(r,o);this.$$l_u.set(o,i)}this.$$l={}}}attributeChangedCallback(t,e,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=bn(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return en(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function bn(t,e,n,r){const o=n[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Ii(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function Li(t,e,n,r,o,i){let l=class extends to{constructor(){super(t,n,o),this.$$p_d=e}static get observedAttributes(){return en(e).map(a=>(e[a].attribute||a).toLowerCase())}};return en(e).forEach(a=>{nn(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(s){s=bn(a,s,e),this.$$d[a]=s;var m=this.$$c;if(m){var p=ce(m,a)?.get;p?m[a]=s:m.$set({[a]:s})}}})}),r.forEach(a=>{nn(l.prototype,a,{get(){return this.$$c?.[a]}})}),t.element=l,l}const Pi={version:"0.66.1"};var _e={},eo;function Gi(){if(eo)return _e;eo=1,Object.defineProperty(_e,"__esModule",{value:!0}),_e.LanguageTranslator=void 0,_e.getChildStyleToPass=t,_e.addComponent=e;function t(r,o){var i,l,a="";try{if(r&&o?.length&&(!((i=Object.keys(r))===null||i===void 0)&&i.length)&&(!((l=o?.filter(function(d){return Object.keys(r).includes(d.name)}))===null||l===void 0)&&l.length))for(var s=function(d){var c=o?.filter(function(f){return f.name===d&&f.defaultValue!==r[d]});c&&(a+="".concat(d,":").concat(r[d],";"))},m=0,p=Object.keys(r);m<p.length;m++){var g=p[m];s(g)}}catch(d){console.error("error getting child style to pass",d)}finally{return a}}function e(r){var o,i=((o=r?.repoName.split("/"))===null||o===void 0?void 0:o[1])||r?.repoName;if(!i)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var l=r?.iifePath||"main.iife.js";if(!document.getElementById(i+"-script"))try{var a=document.createElement("script");if(a.id=i+"-script",a.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(l),r?.local)a.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var s=i.split("-")[0];a.src="http://localhost:6006/webcomponents/".concat(i.replace(s+"-",""),"/").concat(l)}document.head.appendChild(a)}catch(m){console.warn(m)}}var n=(function(){function r(o){if(this.lang="",!o?.dictionary)throw new Error("no dictionary provided");this.dictionary=o.dictionary,this.setLang(o?.lang)}return r.prototype.setLang=function(o){o||(o=r.getDefaultLang()),this.lang=o},r.prototype.translateWord=function(o,i){return r.getDictionaryWord(o,this.dictionary,i||this.lang)},r.prototype.translateDate=function(o,i,l){return r.formatDate(o,i,l||this.lang)},r.getDefaultLang=function(){var o,i,l,a="en";return navigator?.languages&&(!((l=(i=(o=navigator.languages[0])===null||o===void 0?void 0:o.split("-")[0])===null||i===void 0?void 0:i.toLowerCase())===null||l===void 0)&&l.length)&&(a=navigator.languages[0].split("-")[0].toLowerCase()),a},r.getDictionaryWord=function(o,i,l){var a;if(!o)throw new Error("no wordKey provided");if(!i)throw new Error("no dictionary provided");if(l&&(!((a=i[l])===null||a===void 0)&&a[o]))return i[l][o];var s="",m=r.getDefaultLang();if(!l||m!==l){var p=i?.[m];p?.[o]&&(s=p[o])}return s},r.formatDate=function(o,i,l){if(!o)throw new Error("no date provided");if(typeof o.getMonth!="function")throw new Error("wrong date format");var a=new Intl.DateTimeFormat(l||r.getDefaultLang(),i);return a.format(o)},r})();return _e.LanguageTranslator=n,_e}var Fi=Gi(),Ji=R('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1tntk73"/>'),Ui=R('<div class="expand_from_small_footer svelte-1tntk73"><i class="bi bi-arrow-up-square-fill svelte-1tntk73"></i></div>'),qi=R('<span class="svelte-1tntk73"><img style="height: 100%;" alt="" class="svelte-1tntk73"/></span>'),Hi=R('<div style="max-height:40px;height:40px;margin:10px auto 5px auto" class="svelte-1tntk73"><!> </div>'),Yi=R('<div class="container-fluid svelte-1tntk73"><div class="container svelte-1tntk73" style="position:relative"><!> <div id="footer_small_content" class="svelte-1tntk73"><!></div></div></div>'),Vi=R('<div class="container-fluid svelte-1tntk73"><div class="container svelte-1tntk73" style="position:relative"><div style="margin-top:10px;" class="expand_from_small_footer svelte-1tntk73"><i class="bi bi-arrow-down-square-fill svelte-1tntk73"></i></div></div></div>'),Wi=R('<span class="svelte-1tntk73"><img style="height: 40px" alt="" class="svelte-1tntk73"/></span>'),Ki=R('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),Xi=R('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),Zi=R('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),Qi=R('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),tl=R('<div style="padding:20px 20px"><h5 style="margin-bottom:20px" class="svelte-1tntk73">Contatti</h5> <ul class="list-unstyled svelte-1tntk73"><!> <!> <!> <!></ul></div>'),el=R('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),nl=R('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),rl=R('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),ol=R('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),il=R('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),ll=R('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),al=R('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),sl=R('<div style="padding:20px 20px"><h5 style="margin-bottom:20px" class="svelte-1tntk73">Social</h5> <ul class="list-unstyled svelte-1tntk73"><!> <!> <!> <!> <!> <!> <!></ul></div>'),ml=R('<li class="svelte-1tntk73"><button part="column-cell-button-content" style="padding:0px" class="btn text-small svelte-1tntk73"> </button></li>'),pl=R('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),dl=R('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),vl=R('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),gl=R('<li class="svelte-1tntk73"><hb-contact-item></hb-contact-item></li>',2),cl=R('<li class="svelte-1tntk73"><button part="column-cell-button-content" style="padding:0px" class="btn text-small svelte-1tntk73"> </button></li>'),fl=R('<div style="padding:20px 20px"><h5 style="margin-bottom:20px" class="svelte-1tntk73"> </h5> <ul class="list-unstyled svelte-1tntk73"></ul></div>'),bl=R('<div class="row svelte-1tntk73"><div style="padding:20px 20px"><div class="row svelte-1tntk73"><div class="col svelte-1tntk73"><!> </div></div> <div id="description" style="margin:20px auto 10px auto" class="svelte-1tntk73"> </div> <div id="company" style="margin:20px auto 10px auto" class="svelte-1tntk73"> </div> <div id="fiscal" style="margin:20px auto 10px auto" class="svelte-1tntk73"> </div></div> <!> <!> <!></div>'),kl=R('<a target="_blank" class="btn btn-link svelte-1tntk73"> </a>'),ul=R('<button class="btn btn-link svelte-1tntk73"> </button>'),hl=R('<div class="col svelte-1tntk73" style="margin:20px auto 20px auto;max-height:20px;text-align:center;font-size:0.9rem;"><!></div>'),xl=R('<div class="col svelte-1tntk73" style="max-height:20px;text-align:center;font-size:0.8rem;margin:10px auto 5px auto"> </div>'),yl=R('<!> <div class="container svelte-1tntk73"><!> <!> <div class="row svelte-1tntk73"><!></div> <div class="row svelte-1tntk73"><!></div></div>',1),wl=R('<footer class="svelte-1tntk73"><!></footer>');const _l={hash:"svelte-1tntk73",code:`@charset "UTF-8";
3
3
  @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
4
  @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
5
5
  /*!
@@ -181,5 +181,5 @@ button.svelte-1tntk73 {margin:0;font-family:inherit;font-size:inherit;line-heigh
181
181
  @media (min-width: 1200px) {.fs-1.svelte-1tntk73 {font-size:2.5rem !important;}.fs-2.svelte-1tntk73 {font-size:2rem !important;}.fs-3.svelte-1tntk73 {font-size:1.75rem !important;}.fs-4.svelte-1tntk73 {font-size:1.5rem !important;}
182
182
  }
183
183
  @media print {.d-print-inline.svelte-1tntk73 {display:inline !important;}.d-print-inline-block.svelte-1tntk73 {display:inline-block !important;}.d-print-block.svelte-1tntk73 {display:block !important;}.d-print-grid.svelte-1tntk73 {display:grid !important;}.d-print-inline-grid.svelte-1tntk73 {display:inline-grid !important;}.d-print-table.svelte-1tntk73 {display:table !important;}.d-print-table-row.svelte-1tntk73 {display:table-row !important;}.d-print-table-cell.svelte-1tntk73 {display:table-cell !important;}.d-print-flex.svelte-1tntk73 {display:flex !important;}.d-print-inline-flex.svelte-1tntk73 {display:inline-flex !important;}.d-print-none.svelte-1tntk73 {display:none !important;}
184
- }:host {font-family:"Roboto", sans-serif;padding-top:80px;background-color:inherit;}.expand_from_small_footer.svelte-1tntk73 {position:absolute;top:0px;right:0px;cursor:pointer;width:25px;text-align:center;}#footer_small_content.svelte-1tntk73 {height:50px;}hb-contact-item.svelte-1tntk73 {display:block;margin-bottom:20px;}`};function ri(t,e){dr(e,!0),ho(t,cl);let n=Vt(e,"id",7,""),r=Vt(e,"type",7,"regular"),i=Vt(e,"company",7),o=Vt(e,"brandandcontacts",7,void 0),l=Vt(e,"columns",23,()=>[]),s=Vt(e,"disable_expanding_small",7,!1),a=Vt(e,"socials",7,void 0),m=Vt(e,"contacts",7,void 0),p=Vt(e,"policies",7,void 0),c=Yt(!1);Qi(()=>{if(r()!=="small"&&r()!=="regular"&&r()!=="large"&&r("regular"),typeof s()=="string"&&(s()==="yes"||s()==="true"?s(!0):s(!1)),!i())console.warn("no company provided!");else if(typeof i()=="string")try{i(JSON.parse(i()))}catch{console.warn("company is not a valid JSON")}if(typeof l()=="string")try{l(JSON.parse(l()))}catch{console.warn("columns is not a valid JSON")}let x=0;for(const b of l())b._id||(b._id="ccc_"+x.toString()),x++;if(typeof o()=="string")try{o(JSON.parse(o()))}catch{}if(typeof a()=="string")try{a(JSON.parse(a()))}catch{console.warn("socials is not a valid JSON")}if(typeof m()=="string")try{m(JSON.parse(m()));let b=0;if(m().phones?.length)for(const B of m().phones)b++,B._id||(B._id=b.toString());if(m().emails?.length)for(const B of m().emails)b++,B._id||(B._id=b.toString());if(m().addresses?.length)for(const B of m().addresses)b++,B._id||(B._id=b.toString());if(m().sites?.length)for(const B of m().sites)b++,B._id||(B._id=b.toString())}catch{}if(typeof p()=="string")try{p(JSON.parse(p()))}catch{}});function d(x,b){e.$$host.dispatchEvent(new CustomEvent(x,{detail:b}))}function v(x){d("footerClick",{elClick:x})}Oo.addComponent({repoName:"@htmlbricks/hb-contact-item",version:No.version});var $={get id(){return n()},set id(x=""){n(x),zt()},get type(){return r()},set type(x="regular"){r(x),zt()},get company(){return i()},set company(x){i(x),zt()},get brandandcontacts(){return o()},set brandandcontacts(x=void 0){o(x),zt()},get columns(){return l()},set columns(x=[]){l(x),zt()},get disable_expanding_small(){return s()},set disable_expanding_small(x=!1){s(x),zt()},get socials(){return a()},set socials(x=void 0){a(x),zt()},get contacts(){return m()},set contacts(x=void 0){m(x),zt()},get policies(){return p()},set policies(x=void 0){p(x),zt()}},N=vl();xo("1tntk73",x=>{var b=zo();g(x,b)});var f=u(N);{var T=x=>{var b=Po(),B=u(b),Pt=u(B);{var jt=ft=>{var W=Co();W.__click=()=>{Nt(c,!0)},g(ft,W)};R(Pt,ft=>{s()||ft(jt)})}var J=O(Pt,2),dt=u(J);We(dt,e,"footer_small",{},ft=>{var W=V(),$t=F(W);{var Ot=U=>{var Lt=Do(),xe=u(Lt);{var ze=et=>{var K=Bo(),bt=u(K);k(K),L(()=>hn(bt,"src",i().logoUri)),g(et,K)};R(xe,et=>{i().logoUri&&et(ze)})}var Ke=O(xe);k(Lt),L(et=>Tt(Ke,` ${et??""}`),[()=>new Date().getFullYear().toString()+" "+(i()?.companyName?" - "+(i()?.companyName||""):"")]),g(U,Lt)};R($t,U=>{i()?.siteName&&U(Ot)})}g(ft,W)}),k(J),k(B),k(b),g(x,b)},C=x=>{var b=V(),B=F(b);{var Pt=J=>{var dt=dl(),ft=F(dt);{var W=et=>{var K=Lo(),bt=u(K),Wt=u(bt);Wt.__click=()=>{Nt(c,!1)},k(bt),k(K),g(et,K)};R(ft,et=>{y(c)&&et(W)})}var $t=O(ft,2),Ot=u($t);We(Ot,e,"footerheader",{class:"row"},et=>{});var U=O(Ot,2);We(U,e,"footercontent",{},et=>{var K=ll(),bt=u(K),Wt=u(bt),Mt=u(Wt),Kt=u(Mt);{var Xe=st=>{var nt=Mo(),Zt=u(nt);k(nt),L(()=>hn(Zt,"src",i().logoUri)),g(st,nt)};R(Kt,st=>{i()?.logoUri&&st(Xe)})}var he=O(Kt);k(Mt),k(Wt);var Xt=O(Wt,2),Ze=u(Xt,!0);k(Xt);var Qe=O(Xt,2),Hn=u(Qe,!0);k(Qe);var _n=O(Qe,2),le=u(_n,!0);k(_n),k(bt);var Et=O(bt,2);{var tn=st=>{var nt=Uo(),Zt=O(u(nt),2),Qt=u(Zt);{var ye=M=>{var mt=V(),At=F(mt);ge(At,17,()=>m().phones,I=>I._id,(I,rt)=>{var z=Go(),h=u(z);L(()=>at(h,"phone",JSON.stringify(y(rt)))),G(h,1,"svelte-1tntk73"),k(z),g(I,z)}),g(M,mt)};R(Qt,M=>{m().phones?.length&&M(ye)})}var Gt=O(Qt,2);{var we=M=>{var mt=V(),At=F(mt);ge(At,17,()=>m().addresses,I=>I._id,(I,rt)=>{var z=Io(),h=u(z);L(()=>at(h,"address",JSON.stringify(y(rt)))),G(h,1,"svelte-1tntk73"),k(z),g(I,z)}),g(M,mt)};R(Gt,M=>{m().addresses?.length&&M(we)})}var _e=O(Gt,2);{var Ce=M=>{var mt=V(),At=F(mt);ge(At,17,()=>m().emails,I=>I._id,(I,rt)=>{var z=Fo(),h=u(z);L(()=>at(h,"email",JSON.stringify(y(rt)))),G(h,1,"svelte-1tntk73"),k(z),g(I,z)}),g(M,mt)};R(_e,M=>{m().emails?.length&&M(Ce)})}var ae=O(_e,2);{var q=M=>{var mt=V(),At=F(mt);ge(At,17,()=>m().sites,I=>I._id,(I,rt)=>{var z=Jo(),h=u(z);L(()=>at(h,"site",JSON.stringify(y(rt)))),G(h,1,"svelte-1tntk73"),k(z),g(I,z)}),g(M,mt)};R(ae,M=>{m().sites?.length&&M(q)})}k(Zt),k(nt),L(()=>G(nt,1,`col-md-${12/(1+(m()?1:0)+(a()?1:0)+(l()?.length?l().length:0))}`,"svelte-1tntk73")),g(st,nt)};R(Et,st=>{m()&&st(tn)})}var ii=O(Et,2);{var gl=st=>{var nt=Zo(),Zt=O(u(nt),2),Qt=u(Zt);{var ye=h=>{var S=qo(),P=u(S);at(P,"social",JSON.stringify({name:"facebook",label:"pagina facebook",pageUri:"https://facebook.com"})),G(P,1,"svelte-1tntk73"),k(S),g(h,S)};R(Qt,h=>{a().facebook&&h(ye)})}var Gt=O(Qt,2);{var we=h=>{var S=Yo(),P=u(S);at(P,"social",JSON.stringify({name:"gmail",label:"pagina gmail",pageUri:"https://gmail.com"})),G(P,1,"svelte-1tntk73"),k(S),g(h,S)};R(Gt,h=>{a()?.gmail&&h(we)})}var _e=O(Gt,2);{var Ce=h=>{var S=Ho(),P=u(S);at(P,"social",JSON.stringify({name:"twitter",label:"pagina twitter",pageUri:"https://twitter.com"})),G(P,1,"svelte-1tntk73"),k(S),g(h,S)};R(_e,h=>{a()?.twitter&&h(Ce)})}var ae=O(_e,2);{var q=h=>{var S=Vo(),P=u(S);L(()=>at(P,"social",JSON.stringify({name:"github",label:"pagina github",pageUri:a().github}))),G(P,1,"svelte-1tntk73"),k(S),g(h,S)};R(ae,h=>{a()?.github&&h(q)})}var M=O(ae,2);{var mt=h=>{var S=Wo(),P=u(S);at(P,"social",JSON.stringify({name:"twitch",label:"pagina twitch",pageUri:"https://twitch.com"})),G(P,1,"svelte-1tntk73"),k(S),g(h,S)};R(M,h=>{a()?.twitch&&h(mt)})}var At=O(M,2);{var I=h=>{var S=Ko(),P=u(S);at(P,"social",JSON.stringify({name:"youtube",label:"pagina youtube",pageUri:"https://youtube.com"})),G(P,1,"svelte-1tntk73"),k(S),g(h,S)};R(At,h=>{a()?.youtube&&h(I)})}var rt=O(At,2);{var z=h=>{var S=Xo(),P=u(S);at(P,"social",JSON.stringify({name:"discord",label:"pagina discord",pageUri:"https://discord.com"})),G(P,1,"svelte-1tntk73"),k(S),g(h,S)};R(rt,h=>{a()?.discord&&h(z)})}k(Zt),k(nt),L(()=>G(nt,1,`col-md-${12/(1+(m()?1:0)+(a()?1:0)+(l()?.length?l().length:0))}`,"svelte-1tntk73")),g(st,nt)};R(ii,st=>{a()&&st(gl)})}var fl=O(ii,2);{var bl=st=>{var nt=V(),Zt=F(nt);ge(Zt,17,l,Qt=>Qt._id,(Qt,ye)=>{var Gt=ol(),we=u(Gt),_e=u(we,!0);k(we);var Ce=O(we,2);ge(Ce,21,()=>y(ye).cells,ae=>ae._id,(ae,q)=>{var M=V(),mt=F(M);{var At=rt=>{var z=Qo(),h=u(z);h.__click=()=>v(y(q)._id);var S=u(h,!0);k(h),k(z),L(()=>Tt(S,y(q).label)),g(rt,z)},I=rt=>{var z=V(),h=F(z);{var S=Be=>{var De=tl(),jn=u(De);L(()=>at(jn,"phone",JSON.stringify(y(q).phone))),G(jn,1,"svelte-1tntk73"),k(De),g(Be,De)},P=Be=>{var De=V(),jn=F(De);{var kl=Pe=>{var Le=el(),$n=u(Le);L(()=>at($n,"address",JSON.stringify(y(q).address))),G($n,1,"svelte-1tntk73"),k(Le),g(Pe,Le)},ul=Pe=>{var Le=V(),$n=F(Le);{var xl=Me=>{var Ge=nl(),En=u(Ge);L(()=>at(En,"email",JSON.stringify(y(q).email))),G(En,1,"svelte-1tntk73"),k(Ge),g(Me,Ge)},hl=Me=>{var Ge=V(),En=F(Ge);{var yl=Ie=>{var Fe=rl(),An=u(Fe);L(()=>at(An,"site",JSON.stringify(y(q).site))),G(An,1,"svelte-1tntk73"),k(Fe),g(Ie,Fe)},wl=Ie=>{var Fe=V(),An=F(Fe);{var _l=Vn=>{var Wn=il(),Kn=u(Wn);Kn.__click=()=>v(y(q)._id);var jl=u(Kn,!0);k(Kn),k(Wn),L(()=>Tt(jl,y(q).label)),g(Vn,Wn)};R(An,Vn=>{y(q).label&&Vn(_l)},!0)}g(Ie,Fe)};R(En,Ie=>{y(q).site?Ie(yl):Ie(wl,!1)},!0)}g(Me,Ge)};R($n,Me=>{y(q).email?Me(xl):Me(hl,!1)},!0)}g(Pe,Le)};R(jn,Pe=>{y(q).address?Pe(kl):Pe(ul,!1)},!0)}g(Be,De)};R(h,Be=>{y(q).phone?Be(S):Be(P,!1)},!0)}g(rt,z)};R(mt,rt=>{y(q).label?rt(At):rt(I,!1)})}g(ae,M)}),k(Ce),k(Gt),L(()=>{G(Gt,1,`col-md-${12/(1+(m()?1:0)+(a()?1:0)+(l()?.length?l().length:0))}`,"svelte-1tntk73"),Tt(_e,y(ye).title?y(ye).title:"")}),g(Qt,Gt)}),g(st,nt)};R(fl,st=>{l()?.length&&st(bl)})}k(K),L(()=>{G(bt,1,`col-md-${12/(1+(m()?1:0)+(a()?1:0)+(l()?.length?l().length:0))}`,"svelte-1tntk73"),Tt(he,` ${(i()?.siteName||"")??""}`),Tt(Ze,i()?.description||""),Tt(Hn,i()?.companyName||""),Tt(le,i()?.vatNumber||i()?.fiscalCode||"")}),g(et,K)});var Lt=O(U,2),xe=u(Lt);We(xe,e,"footerpolicy",{},et=>{var K=V(),bt=F(K);{var Wt=Mt=>{var Kt=V(),Xe=F(Kt);ge(Xe,17,p,he=>he.key,(he,Xt)=>{var Ze=ml(),Qe=u(Ze);{var Hn=le=>{var Et=al(),tn=u(Et,!0);k(Et),L(()=>{hn(Et,"href",y(Xt).link),Tt(tn,y(Xt).label)}),g(le,Et)},_n=le=>{var Et=sl();Et.__click=()=>v(y(Xt).key);var tn=u(Et,!0);k(Et),L(()=>Tt(tn,y(Xt).label)),g(le,Et)};R(Qe,le=>{y(Xt).link?le(Hn):le(_n,!1)})}k(Ze),g(he,Ze)}),g(Mt,Kt)};R(bt,Mt=>{p()?.length&&Mt(Wt)})}g(et,K)}),k(Lt);var ze=O(Lt,2),Ke=u(ze);We(Ke,e,"footerbottom",{},et=>{var K=V(),bt=F(K);{var Wt=Mt=>{var Kt=pl(),Xe=u(Kt,!0);k(Kt),L(he=>Tt(Xe,he),[()=>i()?.registration?.text||(i().since?`${i().since?.toString()} - `:"")+new Date().getFullYear().toString()+" "+(i()?.companyName?" - "+(i()?.companyName||""):"")]),g(Mt,Kt)};R(bt,Mt=>{i()?.siteName&&Mt(Wt)})}g(et,K)}),k(ze),k($t),g(J,dt)},jt=J=>{var dt=V(),ft=F(dt);{var W=$t=>{var Ot=co("large");g($t,Ot)};R(ft,$t=>{r()==="large"&&$t(W)},!0)}g(J,dt)};R(B,J=>{r()==="regular"||r()==="small"&&y(c)?J(Pt):J(jt,!1)},!0)}g(x,b)};R(f,x=>{r()==="small"&&!y(c)?x(T):x(C,!1)})}return k(N),g(t,N),vr($)}po(["click"]),customElements.define("hb-footer",So(ri,{id:{},type:{},company:{},brandandcontacts:{},columns:{},disable_expanding_small:{},socials:{},contacts:{},policies:{}},["footer_small","footerheader","footercontent","footerpolicy","footerbottom"],[],!0)),Xn.Component=ri,Object.defineProperty(Xn,Symbol.toStringTag,{value:"Module"})})(this.footer=this.footer||{});
184
+ }:host {font-family:"Roboto", sans-serif;padding-top:80px;background-color:inherit;}.expand_from_small_footer.svelte-1tntk73 {position:absolute;top:0px;right:0px;cursor:pointer;width:25px;text-align:center;}#footer_small_content.svelte-1tntk73 {height:50px;}hb-contact-item.svelte-1tntk73 {display:block;margin-bottom:20px;}`};function no(t,e){ir(e,!0),Ri(t,_l);let n=Vt(e,"id",7,""),r=Vt(e,"type",7,"regular"),o=Vt(e,"company",7),i=Vt(e,"brandandcontacts",7,void 0),l=Vt(e,"columns",23,()=>[]),a=Vt(e,"disable_expanding_small",7,!1),s=Vt(e,"socials",7,void 0),m=Vt(e,"contacts",7,void 0),p=Vt(e,"policies",7,void 0),g=Yt(!1);li(()=>{if(r()!=="small"&&r()!=="regular"&&r()!=="large"&&r("regular"),typeof a()=="string"&&(a()==="yes"||a()==="true"?a(!0):a(!1)),!o())console.warn("no company provided!");else if(typeof o()=="string")try{o(JSON.parse(o()))}catch{console.warn("company is not a valid JSON")}if(typeof l()=="string")try{l(JSON.parse(l()))}catch{console.warn("columns is not a valid JSON")}let b=0;for(const S of l())S._id||(S._id="ccc_"+b.toString()),b++;if(typeof i()=="string")try{i(JSON.parse(i()))}catch{}if(typeof s()=="string")try{s(JSON.parse(s()))}catch{console.warn("socials is not a valid JSON")}if(typeof m()=="string")try{m(JSON.parse(m()));let S=0;if(m().phones?.length)for(const B of m().phones)S++,B._id||(B._id=S.toString());if(m().emails?.length)for(const B of m().emails)S++,B._id||(B._id=S.toString());if(m().addresses?.length)for(const B of m().addresses)S++,B._id||(B._id=S.toString());if(m().sites?.length)for(const B of m().sites)S++,B._id||(B._id=S.toString())}catch{}if(typeof p()=="string")try{p(JSON.parse(p()))}catch{}});function d(b,S){e.$$host.dispatchEvent(new CustomEvent(b,{detail:S}))}function c(b){d("footerClick",{elClick:b})}Fi.addComponent({repoName:"@htmlbricks/hb-contact-item",version:Pi.version});var f={get id(){return n()},set id(b=""){n(b),Pt()},get type(){return r()},set type(b="regular"){r(b),Pt()},get company(){return o()},set company(b){o(b),Pt()},get brandandcontacts(){return i()},set brandandcontacts(b=void 0){i(b),Pt()},get columns(){return l()},set columns(b=[]){l(b),Pt()},get disable_expanding_small(){return a()},set disable_expanding_small(b=!1){a(b),Pt()},get socials(){return s()},set socials(b=void 0){s(b),Pt()},get contacts(){return m()},set contacts(b=void 0){m(b),Pt()},get policies(){return p()},set policies(b=void 0){p(b),Pt()}},y=wl();Ni("1tntk73",b=>{var S=Ji();h(b,S)});var v=u(y);{var j=b=>{var S=Yi(),B=u(S),V=u(B);{var Bt=vt=>{var Z=Ui();He("click",Z,()=>{Tt(g,!0)}),h(vt,Z)};M(V,vt=>{a()||vt(Bt)})}var dt=D(V,2),it=u(dt);We(it,e,"footer_small",{},vt=>{var Z=Ft(),Me=zt(Z);{var Ke=gt=>{var Q=Hi(),ct=u(Q);{var Dt=lt=>{var Wt=qi(),Kt=u(Wt);k(Wt),L(()=>fn(Kt,"src",o().logoUri)),h(lt,Wt)};M(ct,lt=>{o().logoUri&&lt(Dt)})}var Et=D(ct);k(Q),L(lt=>Ct(Et,` ${lt??""}`),[()=>new Date().getFullYear().toString()+" "+(o()?.companyName?" - "+(o()?.companyName||""):"")]),h(gt,Q)};M(Me,gt=>{o()?.siteName&&gt(Ke)})}h(vt,Z)}),k(dt),k(B),k(S),h(b,S)},z=b=>{var S=yl(),B=zt(S);{var V=gt=>{var Q=Vi(),ct=u(Q),Dt=u(ct);k(ct),k(Q),He("click",Dt,()=>{Tt(g,!1)}),h(gt,Q)};M(B,gt=>{x(g)&&gt(V)})}var Bt=D(B,2),dt=u(Bt);We(dt,e,"footerheader",{class:"row"},gt=>{});var it=D(dt,2);We(it,e,"footercontent",{},gt=>{var Q=bl(),ct=u(Q),Dt=u(ct),Et=u(Dt),lt=u(Et);{var Wt=at=>{var et=Wi(),Zt=u(et);k(et),L(()=>fn(Zt,"src",o().logoUri)),h(at,et)};M(lt,at=>{o()?.logoUri&&at(Wt)})}var Kt=D(lt);k(Et),k(Dt);var Xt=D(Dt,2),Xe=u(Xt,!0);k(Xt);var Ze=D(Xt,2),Pn=u(Ze,!0);k(Ze);var kn=D(Ze,2),ve=u(kn,!0);k(kn),k(ct);var At=D(ct,2);{var Qe=at=>{var et=tl(),Zt=D(u(et),2),Qt=u(Zt);{var $e=P=>{var st=Ft(),St=zt(st);we(St,17,()=>m().phones,U=>U._id,(U,Mt)=>{var q=Ki(),w=u(q);L(()=>ot(w,"phone",JSON.stringify(x(Mt)))),J(w,1,"svelte-1tntk73"),k(q),h(U,q)}),h(P,st)};M(Qt,P=>{m().phones?.length&&P($e)})}var Jt=D(Qt,2);{var je=P=>{var st=Ft(),St=zt(st);we(St,17,()=>m().addresses,U=>U._id,(U,Mt)=>{var q=Xi(),w=u(q);L(()=>ot(w,"address",JSON.stringify(x(Mt)))),J(w,1,"svelte-1tntk73"),k(q),h(U,q)}),h(P,st)};M(Jt,P=>{m().addresses?.length&&P(je)})}var Ee=D(Jt,2);{var Ie=P=>{var st=Ft(),St=zt(st);we(St,17,()=>m().emails,U=>U._id,(U,Mt)=>{var q=Zi(),w=u(q);L(()=>ot(w,"email",JSON.stringify(x(Mt)))),J(w,1,"svelte-1tntk73"),k(q),h(U,q)}),h(P,st)};M(Ee,P=>{m().emails?.length&&P(Ie)})}var ge=D(Ee,2);{var W=P=>{var st=Ft(),St=zt(st);we(St,17,()=>m().sites,U=>U._id,(U,Mt)=>{var q=Qi(),w=u(q);L(()=>ot(w,"site",JSON.stringify(x(Mt)))),J(w,1,"svelte-1tntk73"),k(q),h(U,q)}),h(P,st)};M(ge,P=>{m().sites?.length&&P(W)})}k(Zt),k(et),L(()=>J(et,1,`col-md-${12/(1+(m()?1:0)+(s()?1:0)+(l()?.length?l().length:0))}`,"svelte-1tntk73")),h(at,et)};M(At,at=>{m()&&at(Qe)})}var ro=D(At,2);{var $l=at=>{var et=sl(),Zt=D(u(et),2),Qt=u(Zt);{var $e=w=>{var O=el(),_=u(O);ot(_,"social",JSON.stringify({name:"facebook",label:"pagina facebook",pageUri:"https://facebook.com"})),J(_,1,"svelte-1tntk73"),k(O),h(w,O)};M(Qt,w=>{s().facebook&&w($e)})}var Jt=D(Qt,2);{var je=w=>{var O=nl(),_=u(O);ot(_,"social",JSON.stringify({name:"gmail",label:"pagina gmail",pageUri:"https://gmail.com"})),J(_,1,"svelte-1tntk73"),k(O),h(w,O)};M(Jt,w=>{s()?.gmail&&w(je)})}var Ee=D(Jt,2);{var Ie=w=>{var O=rl(),_=u(O);ot(_,"social",JSON.stringify({name:"twitter",label:"pagina twitter",pageUri:"https://twitter.com"})),J(_,1,"svelte-1tntk73"),k(O),h(w,O)};M(Ee,w=>{s()?.twitter&&w(Ie)})}var ge=D(Ee,2);{var W=w=>{var O=ol(),_=u(O);L(()=>ot(_,"social",JSON.stringify({name:"github",label:"pagina github",pageUri:s().github}))),J(_,1,"svelte-1tntk73"),k(O),h(w,O)};M(ge,w=>{s()?.github&&w(W)})}var P=D(ge,2);{var st=w=>{var O=il(),_=u(O);ot(_,"social",JSON.stringify({name:"twitch",label:"pagina twitch",pageUri:"https://twitch.com"})),J(_,1,"svelte-1tntk73"),k(O),h(w,O)};M(P,w=>{s()?.twitch&&w(st)})}var St=D(P,2);{var U=w=>{var O=ll(),_=u(O);ot(_,"social",JSON.stringify({name:"youtube",label:"pagina youtube",pageUri:"https://youtube.com"})),J(_,1,"svelte-1tntk73"),k(O),h(w,O)};M(St,w=>{s()?.youtube&&w(U)})}var Mt=D(St,2);{var q=w=>{var O=al(),_=u(O);ot(_,"social",JSON.stringify({name:"discord",label:"pagina discord",pageUri:"https://discord.com"})),J(_,1,"svelte-1tntk73"),k(O),h(w,O)};M(Mt,w=>{s()?.discord&&w(q)})}k(Zt),k(et),L(()=>J(et,1,`col-md-${12/(1+(m()?1:0)+(s()?1:0)+(l()?.length?l().length:0))}`,"svelte-1tntk73")),h(at,et)};M(ro,at=>{s()&&at($l)})}var jl=D(ro,2);{var El=at=>{var et=Ft(),Zt=zt(et);we(Zt,17,l,Qt=>Qt._id,(Qt,$e)=>{var Jt=fl(),je=u(Jt),Ee=u(je,!0);k(je);var Ie=D(je,2);we(Ie,21,()=>x($e).cells,ge=>ge._id,(ge,W)=>{var P=Ft(),st=zt(P);{var St=_=>{var I=ml(),H=u(I),Gn=u(H,!0);k(H),k(I),L(()=>Ct(Gn,x(W).label)),He("click",H,()=>c(x(W)._id)),h(_,I)},U=_=>{var I=pl(),H=u(I);L(()=>ot(H,"phone",JSON.stringify(x(W).phone))),J(H,1,"svelte-1tntk73"),k(I),h(_,I)},Mt=_=>{var I=dl(),H=u(I);L(()=>ot(H,"address",JSON.stringify(x(W).address))),J(H,1,"svelte-1tntk73"),k(I),h(_,I)},q=_=>{var I=vl(),H=u(I);L(()=>ot(H,"email",JSON.stringify(x(W).email))),J(H,1,"svelte-1tntk73"),k(I),h(_,I)},w=_=>{var I=gl(),H=u(I);L(()=>ot(H,"site",JSON.stringify(x(W).site))),J(H,1,"svelte-1tntk73"),k(I),h(_,I)},O=_=>{var I=cl(),H=u(I),Gn=u(H,!0);k(H),k(I),L(()=>Ct(Gn,x(W).label)),He("click",H,()=>c(x(W)._id)),h(_,I)};M(st,_=>{x(W).label?_(St):x(W).phone?_(U,1):x(W).address?_(Mt,2):x(W).email?_(q,3):x(W).site?_(w,4):x(W).label&&_(O,5)})}h(ge,P)}),k(Ie),k(Jt),L(()=>{J(Jt,1,`col-md-${12/(1+(m()?1:0)+(s()?1:0)+(l()?.length?l().length:0))}`,"svelte-1tntk73"),Ct(Ee,x($e).title?x($e).title:"")}),h(Qt,Jt)}),h(at,et)};M(jl,at=>{l()?.length&&at(El)})}k(Q),L(()=>{J(ct,1,`col-md-${12/(1+(m()?1:0)+(s()?1:0)+(l()?.length?l().length:0))}`,"svelte-1tntk73"),Ct(Kt,` ${(o()?.siteName||"")??""}`),Ct(Xe,o()?.description||""),Ct(Pn,o()?.companyName||""),Ct(ve,o()?.vatNumber||o()?.fiscalCode||"")}),h(gt,Q)});var vt=D(it,2),Z=u(vt);We(Z,e,"footerpolicy",{},gt=>{var Q=Ft(),ct=zt(Q);{var Dt=Et=>{var lt=Ft(),Wt=zt(lt);we(Wt,17,p,Kt=>Kt.key,(Kt,Xt)=>{var Xe=hl(),Ze=u(Xe);{var Pn=ve=>{var At=kl(),Qe=u(At,!0);k(At),L(()=>{fn(At,"href",x(Xt).link),Ct(Qe,x(Xt).label)}),h(ve,At)},kn=ve=>{var At=ul(),Qe=u(At,!0);k(At),L(()=>Ct(Qe,x(Xt).label)),He("click",At,()=>c(x(Xt).key)),h(ve,At)};M(Ze,ve=>{x(Xt).link?ve(Pn):ve(kn,-1)})}k(Xe),h(Kt,Xe)}),h(Et,lt)};M(ct,Et=>{p()?.length&&Et(Dt)})}h(gt,Q)}),k(vt);var Me=D(vt,2),Ke=u(Me);We(Ke,e,"footerbottom",{},gt=>{var Q=Ft(),ct=zt(Q);{var Dt=Et=>{var lt=xl(),Wt=u(lt,!0);k(lt),L(Kt=>Ct(Wt,Kt),[()=>o()?.registration?.text||(o().since?`${o().since?.toString()} - `:"")+new Date().getFullYear().toString()+" "+(o()?.companyName?" - "+(o()?.companyName||""):"")]),h(Et,lt)};M(ct,Et=>{o()?.siteName&&Et(Dt)})}h(gt,Q)}),k(Me),k(Bt),h(b,S)},T=b=>{var S=xi("large");h(b,S)};M(v,b=>{r()==="small"&&!x(g)?b(j):r()==="regular"||r()==="small"&&x(g)?b(z,1):r()==="large"&&b(T,2)})}return k(y),h(t,y),lr(f)}bi(["click"]),customElements.define("hb-footer",Li(no,{id:{},type:{},company:{},brandandcontacts:{},columns:{},disable_expanding_small:{},socials:{},contacts:{},policies:{}},["footer_small","footerheader","footercontent","footerpolicy","footerbottom"],[],{mode:"open"})),Fn.Component=no,Object.defineProperty(Fn,Symbol.toStringTag,{value:"Module"})})(this.footer=this.footer||{});
185
185
  //# sourceMappingURL=main.iife.js.map