@htmlbricks/hb-footer 0.66.3 → 0.66.4

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