@htmlbricks/hb-navbar 0.65.23 → 0.66.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,3 +1,3 @@
1
- (function(Nt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const jn=1,In=2,Ot="[",at="[!",Rt="]",we={},E=Symbol(),Bn="http://www.w3.org/1999/xhtml",ut=!1;var Yn=Array.isArray,Hn=Array.prototype.indexOf,Un=Array.from,We=Object.keys,ze=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,Vn=Object.getOwnPropertyDescriptors,Wn=Object.prototype,zn=Array.prototype,Dt=Object.getPrototypeOf,qt=Object.isExtensible;function Gn(e){for(var t=0;t<e.length;t++)e[t]()}function Lt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const b=2,ct=4,dt=8,G=16,J=32,ie=64,Ge=128,I=512,x=1024,A=2048,K=4096,H=8192,X=16384,Je=32768,be=65536,Mt=1<<17,Pt=1<<18,ae=1<<19,Jn=1<<20,ue=32768,ht=1<<21,vt=1<<22,se=1<<23,_t=Symbol("$state"),Kn=Symbol("legacy props"),Xn=Symbol(""),$e=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},pt=3,Oe=8;function Zn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Qn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function er(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function tr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function nr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function rr(){throw new Error("https://svelte.dev/e/hydration_failed")}function ir(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function sr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function lr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function fr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function or(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let g=!1;function le(e){g=e}let m;function B(e){if(e===null)throw Ke(),we;return m=e}function Xe(){return B(te(m))}function N(e){if(g){if(te(m)!==null)throw Ke(),we;m=e}}function ar(e=1){if(g){for(var t=e,n=m;t--;)n=te(n);m=n}}function Ft(e=!0){for(var t=0,n=m;;){if(n.nodeType===Oe){var r=n.data;if(r===Rt){if(t===0)return n;t-=1}else(r===Ot||r===at)&&(t+=1)}var i=te(n);e&&n.remove(),n=i}}function ur(e){if(!e||e.nodeType!==Oe)throw Ke(),we;return e.data}function jt(e){return e===this.v}function cr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function dr(e){return!cr(e,this.v)}let hr=!1,D=null;function Ee(e){D=e}function It(e,t=!1,n){D={p:D,i:!1,c:null,e:null,s:e,x:null,l:null}}function Bt(e){var t=D,n=t.e;if(n!==null){t.e=null;for(var r of n)fn(r)}return e!==void 0&&(t.x=e),t.i=!0,D=t.p,e??{}}function Yt(){return!0}let ce=[];function Ht(){var e=ce;ce=[],Gn(e)}function Ze(e){if(ce.length===0&&!Re){var t=ce;queueMicrotask(()=>{t===ce&&Ht()})}ce.push(e)}function vr(){for(;ce.length>0;)Ht()}function Ut(e){var t=_;if(t===null)return v.f|=se,e;if((t.f&Je)===0){if((t.f&Ge)===0)throw e;t.b.error(e)}else xe(e,t)}function xe(e,t){for(;t!==null;){if((t.f&Ge)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Qe=new Set;let y=null,q=null,L=[],et=null,gt=!1,Re=!1;class Y{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#o=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){L=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#l(r,n);this.is_fork||this.#u(),this.is_deferred()?(this.#f(n.effects),this.#f(n.render_effects),this.#f(n.block_effects)):(y=null,Wt(n.render_effects),Wt(n.effects),this.#o?.resolve()),q=null}#l(t,n){t.f^=x;for(var r=t.first;r!==null;){var i=r.f,s=(i&(J|ie))!==0,l=s&&(i&x)!==0,f=l||(i&H)!==0||this.skipped_effects.has(r);if((r.f&Ge)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!f&&r.fn!==null){s?r.f^=x:(i&ct)!==0?n.effects.push(r):Pe(r)&&((r.f&G)!==0&&n.block_effects.push(r),Fe(r));var o=r.first;if(o!==null){r=o;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)a===n.effect&&(this.#f(n.effects),this.#f(n.render_effects),this.#f(n.block_effects),n=n.parent),r=a.next,a=a.parent}}#f(t){for(const n of t)((n.f&A)!==0?this.#s:this.#i).push(n),this.#a(n.deps),k(n,x)}#a(t){if(t!==null)for(const n of t)(n.f&b)===0||(n.f&ue)===0||(n.f^=ue,this.#a(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&se)===0&&(this.current.set(t,t.v),q?.set(t,t.v))}activate(){y=this,this.apply()}deactivate(){y===this&&(y=null,q=null)}flush(){if(this.activate(),L.length>0){if(Vt(),y!==null&&y!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#c()}#c(){if(Qe.size>1){this.previous.clear();var t=q,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Qe){if(s===this){n=!1;continue}const l=[];for(const[o,a]of this.current){if(s.current.has(o))if(n&&a!==s.current.get(o))s.current.set(o,a);else continue;l.push(o)}if(l.length===0)continue;const f=[...s.current.keys()].filter(o=>!this.current.has(o));if(f.length>0){var i=L;L=[];const o=new Set,a=new Map;for(const c of l)zt(c,f,o,a);if(L.length>0){y=s,s.apply();for(const c of L)s.#l(c,r);s.deactivate()}L=i}}y=null,q=t}this.committed=!0,Qe.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#s)k(t,A),he(t);for(const t of this.#i)k(t,K),he(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#o??=Lt()).promise}static ensure(){if(y===null){const t=y=new Y;Qe.add(y),Re||Y.enqueue(()=>{y===t&&t.flush()})}return y}static enqueue(t){Ze(t)}apply(){}}function de(e){var t=Re;Re=!0;try{for(var n;;){if(vr(),L.length===0&&(y?.flush(),L.length===0))return et=null,n;Vt()}}finally{Re=t}}function Vt(){var e=oe;gt=!0;var t=null;try{var n=0;for(st(!0);L.length>0;){var r=Y.ensure();if(n++>1e3){var i,s;_r()}r.process(L),fe.clear()}}finally{gt=!1,st(e),et=null}}function _r(){try{nr()}catch(e){xe(e,et)}}let Z=null;function Wt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(X|H))===0&&Pe(r)&&(Z=new Set,Fe(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?dn(r):r.fn=null),Z?.size>0)){fe.clear();for(const i of Z){if((i.f&(X|H))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)Z.has(l)&&(Z.delete(l),s.push(l)),l=l.parent;for(let f=s.length-1;f>=0;f--){const o=s[f];(o.f&(X|H))===0&&Fe(o)}}Z.clear()}}Z=null}}function zt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&b)!==0?zt(i,t,n,r):(s&(vt|G))!==0&&(s&A)===0&&Gt(i,t,r)&&(k(i,A),he(i))}}function Gt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&b)!==0&&Gt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function he(e){for(var t=et=e;t.parent!==null;){t=t.parent;var n=t.f;if(gt&&t===_&&(n&G)!==0&&(n&Pt)===0)return;if((n&(ie|J))!==0){if((n&x)===0)return;t.f^=x}}L.push(t)}function pr(e){let t=0,n=De(0),r;return()=>{rt()&&(F(n),on(()=>(t===0&&(r=Yr(()=>e(()=>qe(n)))),t+=1,()=>{Ze(()=>{t-=1,t===0&&(r?.(),r=void 0,qe(n))})})))}}var gr=be|ae|Ge;function mr(e,t,n){new wr(e,t,n)}class wr{parent;#t=!1;#e;#n=g?m:null;#r;#o;#s;#i=null;#l=null;#f=null;#a=null;#u=null;#c=0;#d=0;#v=!1;#h=null;#w=pr(()=>(this.#h=De(this.#c),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#o=r,this.parent=_.b,this.#t=!!this.#r.pending,this.#s=an(()=>{if(_.b=this,g){const s=this.#n;Xe(),s.nodeType===Oe&&s.data===at?this.#b():this.#y()}else{var i=this.#g();try{this.#i=ne(()=>r(i))}catch(s){this.error(s)}this.#d>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},gr),g&&(this.#e=m)}#y(){try{this.#i=ne(()=>this.#o(this.#e))}catch(t){this.error(t)}this.#t=!1}#b(){const t=this.#r.pending;t&&(this.#l=ne(()=>t(this.#e)),Y.enqueue(()=>{var n=this.#g();this.#i=this.#_(()=>(Y.ensure(),ne(()=>this.#o(n)))),this.#d>0?this.#p():(Le(this.#l,()=>{this.#l=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#u=ee(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#_(t){var n=_,r=v,i=D;M(this.#s),T(this.#s),Ee(this.#s.ctx);try{return t()}catch(s){return Ut(s),null}finally{M(n),T(r),Ee(i)}}#p(){const t=this.#r.pending;this.#i!==null&&(this.#a=document.createDocumentFragment(),this.#a.append(this.#u),_n(this.#i,this.#a)),this.#l===null&&(this.#l=ne(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#l&&Le(this.#l,()=>{this.#l=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t){this.#m(t),this.#c+=t,this.#h&&nt(this.#h,this.#c)}get_effect_pending(){return this.#w(),F(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#i&&(C(this.#i),this.#i=null),this.#l&&(C(this.#l),this.#l=null),this.#f&&(C(this.#f),this.#f=null),g&&(B(this.#n),ar(),B(Ft()));var i=!1,s=!1;const l=()=>{if(i){or();return}i=!0,s&&fr(),Y.ensure(),this.#c=0,this.#f!==null&&Le(this.#f,()=>{this.#f=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,ne(()=>this.#o(this.#e)))),this.#d>0?this.#p():this.#t=!1};var f=v;try{T(null),s=!0,n?.(t,l),s=!1}catch(o){xe(o,this.#s&&this.#s.parent)}finally{T(f)}r&&Ze(()=>{this.#f=this.#_(()=>{Y.ensure(),this.#v=!0;try{return ne(()=>{r(this.#e,()=>t,()=>l)})}catch(o){return xe(o,this.#s.parent),null}finally{this.#v=!1}})})}}function yr(e,t,n,r){const i=Jt;if(n.length===0&&e.length===0){r(t.map(i));return}var s=y,l=_,f=br();function o(){Promise.all(n.map(a=>$r(a))).then(a=>{f();try{r([...t.map(i),...a])}catch(c){(l.f&X)===0&&xe(c,l)}s?.deactivate(),tt()}).catch(a=>{xe(a,l)})}e.length>0?Promise.all(e).then(()=>{f();try{return o()}finally{s?.deactivate(),tt()}}):o()}function br(){var e=_,t=v,n=D,r=y;return function(s=!0){M(e),T(t),Ee(n),s&&r?.activate()}}function tt(){M(null),T(null),Ee(null)}function Jt(e){var t=b|A,n=v!==null&&(v.f&b)!==0?v:null;return _!==null&&(_.f|=ae),{ctx:D,deps:null,effects:null,equals:jt,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:n??_,ac:null}}function $r(e,t){let n=_;n===null&&Zn();var r=n.b,i=void 0,s=De(E),l=!v,f=new Map;return qr(()=>{var o=Lt();i=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{a===y&&a.committed&&a.deactivate(),tt()})}catch(u){o.reject(u),tt()}var a=y;if(l){var c=!r.is_pending();r.update_pending_count(1),a.increment(c),f.get(a)?.reject($e),f.delete(a),f.set(a,o)}const h=(u,d=void 0)=>{if(a.activate(),d)d!==$e&&(s.f|=se,nt(s,d));else{(s.f&se)!==0&&(s.f^=se),nt(s,u);for(const[p,j]of f){if(f.delete(p),p===a)break;j.reject($e)}}l&&(r.update_pending_count(-1),a.decrement(c))};o.promise.then(h,u=>h(null,u||"unknown"))}),ln(()=>{for(const o of f.values())o.reject($e)}),new Promise(o=>{function a(c){function h(){c===i?o(s):a(i)}c.then(h,h)}a(i)})}function Kt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)C(t[n])}}function Er(e){for(var t=e.parent;t!==null;){if((t.f&b)===0)return(t.f&X)===0?t:null;t=t.parent}return null}function mt(e){var t,n=_;M(Er(e));try{e.f&=~ue,Kt(e),t=bn(e)}finally{M(n)}return t}function Xt(e){var t=mt(e);if(e.equals(t)||(y?.is_fork||(e.v=t),e.wv=wn()),!ve)if(q!==null)rt()&&q.set(e,t);else{var n=(e.f&I)===0?K:x;k(e,n)}}let wt=new Set;const fe=new Map;let Zt=!1;function De(e,t){var n={f:0,v:e,reactions:null,equals:jt,rv:0,wv:0};return n}function U(e,t){const n=De(e);return jr(n),n}function xr(e,t=!1,n=!0){const r=De(e);return t||(r.equals=dr),r}function Q(e,t,n=!1){v!==null&&(!W||(v.f&Mt)!==0)&&Yt()&&(v.f&(b|G|vt|Mt))!==0&&!re?.includes(e)&&lr();let r=n?Te(t):t;return nt(e,r)}function nt(e,t){if(!e.equals(t)){var n=e.v;ve?fe.set(e,t):fe.set(e,n),e.v=t;var r=Y.ensure();r.capture(e,n),(e.f&b)!==0&&((e.f&A)!==0&&mt(e),k(e,(e.f&I)!==0?x:K)),e.wv=wn(),Qt(e,A),_!==null&&(_.f&x)!==0&&(_.f&(J|ie))===0&&(P===null?Ir([e]):P.push(e)),!r.is_fork&&wt.size>0&&!Zt&&Tr()}return t}function Tr(){Zt=!1;var e=oe;st(!0);const t=Array.from(wt);try{for(const n of t)(n.f&x)!==0&&k(n,K),Pe(n)&&Fe(n)}finally{st(e)}wt.clear()}function qe(e){Q(e,e.v+1)}function Qt(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],l=s.f,f=(l&A)===0;if(f&&k(s,t),(l&b)!==0){var o=s;q?.delete(o),(l&ue)===0&&(l&I&&(s.f|=ue),Qt(o,K))}else f&&((l&G)!==0&&Z!==null&&Z.add(s),he(s))}}function Te(e){if(typeof e!="object"||e===null||_t in e)return e;const t=Dt(e);if(t!==Wn&&t!==zn)return e;var n=new Map,r=Yn(e),i=U(0),s=_e,l=f=>{if(_e===s)return f();var o=v,a=_e;T(null),mn(s);var c=f();return T(o),mn(a),c};return r&&n.set("length",U(e.length)),new Proxy(e,{defineProperty(f,o,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&ir();var c=n.get(o);return c===void 0?c=l(()=>{var h=U(a.value);return n.set(o,h),h}):Q(c,a.value,!0),!0},deleteProperty(f,o){var a=n.get(o);if(a===void 0){if(o in f){const c=l(()=>U(E));n.set(o,c),qe(i)}}else Q(a,E),qe(i);return!0},get(f,o,a){if(o===_t)return e;var c=n.get(o),h=o in f;if(c===void 0&&(!h||ye(f,o)?.writable)&&(c=l(()=>{var d=Te(h?f[o]:E),p=U(d);return p}),n.set(o,c)),c!==void 0){var u=F(c);return u===E?void 0:u}return Reflect.get(f,o,a)},getOwnPropertyDescriptor(f,o){var a=Reflect.getOwnPropertyDescriptor(f,o);if(a&&"value"in a){var c=n.get(o);c&&(a.value=F(c))}else if(a===void 0){var h=n.get(o),u=h?.v;if(h!==void 0&&u!==E)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return a},has(f,o){if(o===_t)return!0;var a=n.get(o),c=a!==void 0&&a.v!==E||Reflect.has(f,o);if(a!==void 0||_!==null&&(!c||ye(f,o)?.writable)){a===void 0&&(a=l(()=>{var u=c?Te(f[o]):E,d=U(u);return d}),n.set(o,a));var h=F(a);if(h===E)return!1}return c},set(f,o,a,c){var h=n.get(o),u=o in f;if(r&&o==="length")for(var d=a;d<h.v;d+=1){var p=n.get(d+"");p!==void 0?Q(p,E):d in f&&(p=l(()=>U(E)),n.set(d+"",p))}if(h===void 0)(!u||ye(f,o)?.writable)&&(h=l(()=>U(void 0)),Q(h,Te(a)),n.set(o,h));else{u=h.v!==E;var j=l(()=>Te(a));Q(h,j)}var z=Reflect.getOwnPropertyDescriptor(f,o);if(z?.set&&z.set.call(c,a),!u){if(r&&typeof o=="string"){var Ye=n.get("length"),He=Number(o);Number.isInteger(He)&&He>=Ye.v&&Q(Ye,He+1)}qe(i)}return!0},ownKeys(f){F(i);var o=Reflect.ownKeys(f).filter(h=>{var u=n.get(h);return u===void 0||u.v!==E});for(var[a,c]of n)c.v!==E&&!(a in f)&&o.push(a);return o},setPrototypeOf(){sr()}})}var en,tn,nn,rn;function yt(){if(en===void 0){en=window,tn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;nn=ye(t,"firstChild").get,rn=ye(t,"nextSibling").get,qt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),qt(n)&&(n.__t=void 0)}}function ee(e=""){return document.createTextNode(e)}function ke(e){return nn.call(e)}function te(e){return rn.call(e)}function O(e,t){if(!g)return ke(e);var n=ke(m);return n===null&&(n=m.appendChild(ee())),B(n),n}function sn(e,t=!1){if(!g){var n=ke(e);return n instanceof Comment&&n.data===""?te(n):n}if(t&&m?.nodeType!==pt){var r=ee();return m?.before(r),B(r),r}return m}function Se(e,t=1,n=!1){let r=g?m:e;for(var i;t--;)i=r,r=te(r);if(!g)return r;if(n&&r?.nodeType!==pt){var s=ee();return r===null?i?.after(s):r.before(s),B(s),s}return B(r),r}function kr(e){e.textContent=""}function Sr(){return!1}function bt(e){var t=v,n=_;T(null),M(null);try{return e()}finally{T(t),M(n)}}function Ar(e){_===null&&(v===null&&tr(),er()),ve&&Qn()}function Cr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function V(e,t,n){var r=_;r!==null&&(r.f&H)!==0&&(e|=H);var i={ctx:D,deps:null,nodes_start:null,nodes_end:null,f:e|A|I,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Fe(i),i.f|=Je}catch(f){throw C(i),f}else t!==null&&he(i);var s=i;if(n&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&ae)===0&&(s=s.first,(e&G)!==0&&(e&be)!==0&&s!==null&&(s.f|=be)),s!==null&&(s.parent=r,r!==null&&Cr(s,r),v!==null&&(v.f&b)!==0&&(e&ie)===0)){var l=v;(l.effects??=[]).push(s)}return i}function rt(){return v!==null&&!W}function ln(e){const t=V(dt,null,!1);return k(t,x),t.teardown=e,t}function Nr(e){Ar();var t=_.f,n=!v&&(t&J)!==0&&(t&Je)===0;if(n){var r=D;(r.e??=[]).push(e)}else return fn(e)}function fn(e){return V(ct|Jn,e,!1)}function Or(e){Y.ensure();const t=V(ie|ae,e,!0);return()=>{C(t)}}function Rr(e){Y.ensure();const t=V(ie|ae,e,!0);return(n={})=>new Promise(r=>{n.outro?Le(t,()=>{C(t),r(void 0)}):(C(t),r(void 0))})}function Dr(e){return V(ct,e,!1)}function qr(e){return V(vt|ae,e,!0)}function on(e,t=0){return V(dt|t,e,!0)}function it(e,t=[],n=[],r=[]){yr(r,t,n,i=>{V(dt,()=>e(...i.map(F)),!0)})}function an(e,t=0){var n=V(G|t,e,!0);return n}function ne(e){return V(J|ae,e,!0)}function un(e){var t=e.teardown;if(t!==null){const n=ve,r=v;pn(!0),T(null);try{t.call(null)}finally{pn(n),T(r)}}}function cn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&bt(()=>{i.abort($e)});var r=n.next;(n.f&ie)!==0?n.parent=null:C(n,t),n=r}}function Lr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&J)===0&&C(t),t=n}}function C(e,t=!0){var n=!1;(t||(e.f&Pt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Mr(e.nodes_start,e.nodes_end),n=!0),cn(e,t&&!n),lt(e,0),k(e,X);var r=e.transitions;if(r!==null)for(const s of r)s.stop();un(e);var i=e.parent;i!==null&&i.first!==null&&dn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Mr(e,t){for(;e!==null;){var n=e===t?null:te(e);e.remove(),e=n}}function dn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Le(e,t,n=!0){var r=[];hn(e,r,!0),Pr(r,()=>{n&&C(e),t&&t()})}function Pr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function hn(e,t,n){if((e.f&H)===0){if(e.f^=H,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&be)!==0||(r.f&J)!==0&&(e.f&G)!==0;hn(r,t,s?n:!1),r=i}}}function Fr(e){vn(e,!0)}function vn(e,t){if((e.f&H)!==0){e.f^=H,(e.f&x)===0&&(k(e,A),he(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&be)!==0||(n.f&J)!==0;vn(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function _n(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:te(n);t.append(n),n=i}}let oe=!1;function st(e){oe=e}let ve=!1;function pn(e){ve=e}let v=null,W=!1;function T(e){v=e}let _=null;function M(e){_=e}let re=null;function jr(e){v!==null&&(re===null?re=[e]:re.push(e))}let S=null,R=0,P=null;function Ir(e){P=e}let gn=1,Me=0,_e=Me;function mn(e){_e=e}function wn(){return++gn}function Pe(e){var t=e.f;if((t&A)!==0)return!0;if(t&b&&(e.f&=~ue),(t&K)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i];if(Pe(s)&&Xt(s),s.wv>e.wv)return!0}(t&I)!==0&&q===null&&k(e,x)}return!1}function yn(e,t,n=!0){var r=e.reactions;if(r!==null&&!re?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&b)!==0?yn(s,t,!1):t===s&&(n?k(s,A):(s.f&x)!==0&&k(s,K),he(s))}}function bn(e){var t=S,n=R,r=P,i=v,s=re,l=D,f=W,o=_e,a=e.f;S=null,R=0,P=null,v=(a&(J|ie))===0?e:null,re=null,Ee(e.ctx),W=!1,_e=++Me,e.ac!==null&&(bt(()=>{e.ac.abort($e)}),e.ac=null);try{e.f|=ht;var c=e.fn,h=c(),u=e.deps;if(S!==null){var d;if(lt(e,R),u!==null&&R>0)for(u.length=R+S.length,d=0;d<S.length;d++)u[R+d]=S[d];else e.deps=u=S;if(oe&&rt()&&(e.f&I)!==0)for(d=R;d<u.length;d++)(u[d].reactions??=[]).push(e)}else u!==null&&R<u.length&&(lt(e,R),u.length=R);if(Yt()&&P!==null&&!W&&u!==null&&(e.f&(b|K|A))===0)for(d=0;d<P.length;d++)yn(P[d],e);return i!==null&&i!==e&&(Me++,P!==null&&(r===null?r=P:r.push(...P))),(e.f&se)!==0&&(e.f^=se),h}catch(p){return Ut(p)}finally{e.f^=ht,S=t,R=n,P=r,v=i,re=s,Ee(l),W=f,_e=o}}function Br(e,t){let n=t.reactions;if(n!==null){var r=Hn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&b)!==0&&(S===null||!S.includes(t))&&(k(t,K),(t.f&I)!==0&&(t.f^=I,t.f&=~ue),Kt(t),lt(t,0))}function lt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Br(e,n[r])}function Fe(e){var t=e.f;if((t&X)===0){k(e,x);var n=_,r=oe;_=e,oe=!0;try{(t&G)!==0?Lr(e):cn(e),un(e);var i=bn(e);e.teardown=typeof i=="function"?i:null,e.wv=gn;var s;ut&&hr&&(e.f&A)!==0&&e.deps}finally{oe=r,_=n}}}function F(e){var t=e.f,n=(t&b)!==0;if(v!==null&&!W){var r=_!==null&&(_.f&X)!==0;if(!r&&!re?.includes(e)){var i=v.deps;if((v.f&ht)!==0)e.rv<Me&&(e.rv=Me,S===null&&i!==null&&i[R]===e?R++:S===null?S=[e]:S.includes(e)||S.push(e));else{(v.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[v]:s.includes(v)||s.push(v)}}}if(ve){if(fe.has(e))return fe.get(e);if(n){var l=e,f=l.v;return((l.f&x)===0&&l.reactions!==null||En(l))&&(f=mt(l)),fe.set(l,f),f}}else n&&!q?.has(e)&&(l=e,Pe(l)&&Xt(l),oe&&rt()&&(l.f&I)===0&&$n(l));if(q?.has(e))return q.get(e);if((e.f&se)!==0)throw e.v;return e.v}function $n(e){if(e.deps!==null){e.f^=I;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&b)!==0&&(t.f&I)===0&&$n(t)}}function En(e){if(e.v===E)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(fe.has(t)||(t.f&b)!==0&&En(t))return!0;return!1}function Yr(e){var t=W;try{return W=!0,e()}finally{W=t}}const Hr=-7169;function k(e,t){e.f=e.f&Hr|t}const xn=new Set,$t=new Set;function Ur(e,t,n,r={}){function i(s){if(r.capture||je.call(t,s),!s.cancelBubble)return bt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ze(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Vr(e,t,n,r,i){var s={capture:r,passive:i},l=Ur(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ln(()=>{t.removeEventListener(e,l,s)})}function Wr(e){for(var t=0;t<e.length;t++)xn.add(e[t]);for(var n of $t)n(e)}let Tn=null;function je(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Tn=e;var l=0,f=Tn===e&&e.__root;if(f){var o=i.indexOf(f);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var a=i.indexOf(t);if(a===-1)return;o<=a&&(l=o)}if(s=i[l]||e.target,s!==t){ze(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=v,h=_;T(null),M(null);try{for(var u,d=[];s!==null;){var p=s.assignedSlot||s.parentNode||s.host||null;try{var j=s["__"+r];j!=null&&(!s.disabled||e.target===s)&&j.call(s,e)}catch(z){u?d.push(z):u=z}if(e.cancelBubble||p===t||p===null)break;s=p}if(u){for(let z of d)queueMicrotask(()=>{throw z});throw u}}finally{e.__root=t,delete e.currentTarget,T(c),M(h)}}}function zr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ae(e,t){var n=_;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Ie(e,t){var n=(t&jn)!==0,r=(t&In)!==0,i,s=!e.startsWith("<!>");return()=>{if(g)return Ae(m,null),m;i===void 0&&(i=zr(s?e:"<!>"+e),n||(i=ke(i)));var l=r||tn?document.importNode(i,!0):i.cloneNode(!0);if(n){var f=ke(l),o=l.lastChild;Ae(f,o)}else Ae(l,l);return l}}function Gr(e=""){if(!g){var t=ee(e+"");return Ae(t,t),t}var n=m;return n.nodeType!==pt&&(n.before(n=ee()),B(n)),Ae(n,n),n}function pe(e,t){if(g){var n=_;((n.f&Je)===0||n.nodes_end===null)&&(n.nodes_end=m),Xe();return}e!==null&&e.before(t)}const Jr=["touchstart","touchmove"];function Kr(e){return Jr.includes(e)}function Xr(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function kn(e,t){return Sn(e,t)}function Zr(e,t){yt(),t.intro=t.intro??!1;const n=t.target,r=g,i=m;try{for(var s=ke(n);s&&(s.nodeType!==Oe||s.data!==Ot);)s=te(s);if(!s)throw we;le(!0),B(s);const l=Sn(e,{...t,anchor:s});return le(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(f=>f.startsWith("https://svelte.dev/e/")))throw l;return l!==we&&console.warn("Failed to hydrate: ",l),t.recover===!1&&rr(),yt(),kr(n),le(!1),kn(e,t)}finally{le(r),B(i)}}const Ce=new Map;function Sn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0}){yt();var f=new Set,o=h=>{for(var u=0;u<h.length;u++){var d=h[u];if(!f.has(d)){f.add(d);var p=Kr(d);t.addEventListener(d,je,{passive:p});var j=Ce.get(d);j===void 0?(document.addEventListener(d,je,{passive:p}),Ce.set(d,1)):Ce.set(d,j+1)}}};o(Un(xn)),$t.add(o);var a=void 0,c=Rr(()=>{var h=n??t.appendChild(ee());return mr(h,{pending:()=>{}},u=>{if(s){It({});var d=D;d.c=s}if(i&&(r.$$events=i),g&&Ae(u,null),a=e(u,r)||{},g&&(_.nodes_end=m,m===null||m.nodeType!==Oe||m.data!==Rt))throw Ke(),we;s&&Bt()}),()=>{for(var u of f){t.removeEventListener(u,je);var d=Ce.get(u);--d===0?(document.removeEventListener(u,je),Ce.delete(u)):Ce.set(u,d)}$t.delete(o),h!==n&&h.parentNode?.removeChild(h)}});return Et.set(a,c),a}let Et=new WeakMap;function Qr(e,t){const n=Et.get(e);return n?(Et.delete(e),n(t)):Promise.resolve()}class ei{anchor;#t=new Map;#e=new Map;#n=new Map;#r=new Set;#o=!0;constructor(t,n=!0){this.anchor=t,this.#o=n}#s=()=>{var t=y;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)Fr(r),this.#r.delete(n);else{var i=this.#n.get(n);i&&(this.#e.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,l]of this.#t){if(this.#t.delete(s),s===t)break;const f=this.#n.get(l);f&&(C(f.effect),this.#n.delete(l))}for(const[s,l]of this.#e){if(s===n||this.#r.has(s))continue;const f=()=>{if(Array.from(this.#t.values()).includes(s)){var a=document.createDocumentFragment();_n(l,a),a.append(ee()),this.#n.set(s,{effect:l,fragment:a})}else C(l);this.#r.delete(s),this.#e.delete(s)};this.#o||!r?(this.#r.add(s),Le(l,f,!1)):f()}}};#i=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,i]of this.#n)n.includes(r)||(C(i.effect),this.#n.delete(r))};ensure(t,n){var r=y,i=Sr();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(i){var s=document.createDocumentFragment(),l=ee();s.append(l),this.#n.set(t,{effect:ne(()=>n(l)),fragment:s})}else this.#e.set(t,ne(()=>n(this.anchor)));if(this.#t.set(r,t),i){for(const[f,o]of this.#e)f===t?r.skipped_effects.delete(o):r.skipped_effects.add(o);for(const[f,o]of this.#n)f===t?r.skipped_effects.delete(o.effect):r.skipped_effects.add(o.effect);r.oncommit(this.#s),r.ondiscard(this.#i)}else g&&(this.anchor=m),this.#s()}}function xt(e,t,n=!1){g&&Xe();var r=new ei(e),i=n?be:0;function s(l,f){if(g){const a=ur(e)===at;if(l===a){var o=Ft();B(o),r.anchor=o,le(!1),r.ensure(l,f),le(!0);return}}r.ensure(l,f)}an(()=>{var l=!1;t((f,o=!0)=>{l=!0,s(o,f)}),l||s(!1,null)},i)}function Be(e,t,n,r,i){g&&Xe();var s=t.$$slots?.[n],l=!1;s===!0&&(s=t[n==="default"?"children":n],l=!0),s===void 0?i!==null&&i(e):s(e,l?()=>r:r)}function ti(e,t){Dr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function ni(e,t){return e==null?null:String(e)}function ri(e,t,n,r){var i=e.__style;if(g||i!==t){var s=ni(t);(!g||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const ii=Symbol("is custom element"),si=Symbol("is html");function Tt(e,t,n,r){var i=li(e);g&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Xn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Cn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function An(e,t,n){var r=v,i=_;let s=g;g&&le(!1),T(null),M(null);try{t!=="style"&&(kt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Cn(e).includes(t):n&&typeof n=="object")?e[t]=n:Tt(e,t,n==null?n:String(n))}finally{T(r),M(i),s&&le(!0)}}function li(e){return e.__attributes??={[ii]:e.nodeName.includes("-"),[si]:e.namespaceURI===Bn}}var kt=new Map;function Cn(e){var t=e.getAttribute("is")||e.nodeName,n=kt.get(t);if(n)return n;kt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Vn(i);for(var l in r)r[l].set&&n.push(l);i=Dt(i)}return n}function Ne(e,t,n,r){var i=r,s=!0,l=()=>(s&&(s=!1,i=r),i),f;f=e[t],f===void 0&&r!==void 0&&(f=l());var o;o=()=>{var u=e[t];return u===void 0?l():(s=!0,u)};var a=!1,c=Jt(()=>(a=!1,o())),h=_;return(function(u,d){if(arguments.length>0){const p=d?F(c):u;return Q(c,p),a=!0,i!==void 0&&(i=p),u}return ve&&a||(h.f&X)!==0?c.v:F(c)})}function fi(e){return new oi(e)}class oi{#t;#e;constructor(t){var n=new Map,r=(s,l)=>{var f=xr(l,!1,!1);return n.set(s,f),f};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return F(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===Kn?!0:(F(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,f){return Q(n.get(l)??r(l,f),f),Reflect.set(s,l,f)}});this.#e=(t.hydrate?Zr:kn)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&de(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||ze(this,s,{get(){return this.#e[s]},set(l){this.#e[s]=l},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{Qr(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...i)=>n.call(this,...i);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(i=>i!==r)}}$destroy(){this.#e.$destroy()}}let Nn;typeof HTMLElement=="function"&&(Nn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=document.createElement("slot");r!=="default"&&(s.name=r),pe(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=ai(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=ft(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=fi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Or(()=>{on(()=>{this.$$r=!0;for(const r of We(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=ft(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ft(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return We(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ft(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ai(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function ui(e,t,n,r,i,s){let l=class extends Nn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return We(t).map(f=>(t[f].attribute||f).toLowerCase())}};return We(t).forEach(f=>{ze(l.prototype,f,{get(){return this.$$c&&f in this.$$c?this.$$c[f]:this.$$d[f]},set(o){o=ft(f,o,t),this.$$d[f]=o;var a=this.$$c;if(a){var c=ye(a,f)?.get;c?a[f]=o:a.$set({[f]:o})}}})}),r.forEach(f=>{ze(l.prototype,f,{get(){return this.$$c?.[f]}})}),e.element=l,l}const ci={version:"0.65.23"};var ge={},On;function di(){if(On)return ge;On=1,Object.defineProperty(ge,"__esModule",{value:!0}),ge.LanguageTranslator=void 0,ge.getChildStyleToPass=e,ge.addComponent=t;function e(r,i){var s,l,f="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((l=i?.filter(function(u){return Object.keys(r).includes(u.name)}))===null||l===void 0)&&l.length))for(var o=function(u){var d=i?.filter(function(p){return p.name===u&&p.defaultValue!==r[u]});d&&(f+="".concat(u,":").concat(r[u],";"))},a=0,c=Object.keys(r);a<c.length;a++){var h=c[a];o(h)}}catch(u){console.error("error getting child style to pass",u)}finally{return f}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var l=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var f=document.createElement("script");if(f.id=s+"-script",f.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(l),r?.local)f.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var o=s.split("-")[0];f.src="http://localhost:6006/webcomponents/".concat(s.replace(o+"-",""),"/").concat(l)}document.head.appendChild(f)}catch(a){console.warn(a)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,l){return r.formatDate(i,s,l||this.lang)},r.getDefaultLang=function(){var i,s,l,f="en";return navigator?.languages&&(!((l=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||l===void 0)&&l.length)&&(f=navigator.languages[0].split("-")[0].toLowerCase()),f},r.getDictionaryWord=function(i,s,l){var f;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(l&&(!((f=s[l])===null||f===void 0)&&f[i]))return s[l][i];var o="",a=r.getDefaultLang();if(!l||a!==l){var c=s?.[a];c?.[i]&&(o=c[i])}return o},r.formatDate=function(i,s,l){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var f=new Intl.DateTimeFormat(l||r.getDefaultLang(),s);return f.format(i)},r})();return ge.LanguageTranslator=n,ge}var hi=di(),vi=Ie('<button style="font-size:20px;border:none"><!></button>'),_i=Ie('<img style="height: 30px;vertical-align: middle;" alt=""/>'),pi=Ie("<!> ",1),gi=Ie('<hb-dropdown-simple><span slot="dropdownbutton"><img style="height: 30px;vertical-align: middle;" alt=""/></span></hb-dropdown-simple>',2),mi=Ie('<div id="left_side" class="navitem svelte-6l0qqc" part="left-slot"><div style="padding-left: 10px;"><div id="left_side_content" class="side svelte-6l0qqc"><!> <span style="cursor:pointer"><!></span></div></div></div> <div id="center_side" part="center-slot" class="navitem svelte-6l0qqc"><div class="side svelte-6l0qqc" style="margin:auto;max-width: 100%;"><span style="cursor:pointer"><!></span> <!></div></div> <div id="rigth_side" part="right-slot" class="navitem svelte-6l0qqc"><div id="rigth_side_content" class="svelte-6l0qqc"><div class="side svelte-6l0qqc"><!> <!></div></div></div>',1);const wi={hash:"svelte-6l0qqc",code:'@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;width:100%;display:block;background-color:#f1f1f1;width:100%;height:30px;display:block;padding:10px 0px 10px 0px;}.side.svelte-6l0qqc {position:relative;z-index:1;max-width:33%;}#left_side.svelte-6l0qqc {text-align:left;}#center_side.svelte-6l0qqc {text-align:center;}#rigth_side.svelte-6l0qqc {text-align:right;}#rigth_side_content.svelte-6l0qqc {display:inline-block;padding-right:10px;z-index:3;}#left_side_content.svelte-6l0qqc {z-index:3;position:relative;}.navitem.svelte-6l0qqc {position:absolute;width:100%;color:white;line-height:30px;font-size:22px;color:black;}'};function Rn(e,t){It(t,!0),ti(e,wi);Te({});let n=U(""),r=Ne(t,"id",7,""),i=Ne(t,"noburger",7,void 0),s=Ne(t,"usermenu",7,void 0),l=Ne(t,"companybrandname",7,""),f=Ne(t,"companylogouri",7,""),o=Ne(t,"switchopen",7,void 0),a;Nr(()=>{!o()||o()==="no"?(o("no"),a=!1):a=!0,typeof s()=="string"&&s(JSON.parse(s()))}),hi.addComponent({repoName:"@htmlbricks/hb-dropdown-simple",version:ci.version});function c(w,$){t.$$host.dispatchEvent(new CustomEvent(w,{detail:$}))}function h(){a=!a,c("navmenuswitch",{isOpen:a})}var u={get id(){return r()},set id(w=""){r(w),de()},get noburger(){return i()},set noburger(w=void 0){i(w),de()},get usermenu(){return s()},set usermenu(w=void 0){s(w),de()},get companybrandname(){return l()},set companybrandname(w=""){l(w),de()},get companylogouri(){return f()},set companylogouri(w=""){f(w),de()},get switchopen(){return o()},set switchopen(w=void 0){o(w),de()}},d=mi(),p=sn(d),j=O(p),z=O(j),Ye=O(z);{var He=w=>{var $=vi();$.__click=()=>h();var me=O($);Be(me,t,"nav-switcher",{},Ue=>{var Ve=Gr("☰");pe(Ue,Ve)}),N($),pe(w,$)};xt(Ye,w=>{i()||w(He)})}var St=Se(Ye,2);St.__click=()=>c("navbarSlotClick",{side:"left"});var yi=O(St);Be(yi,t,"left-slot",{},null),N(St),N(z),N(j),N(p);var At=Se(p,2),Dn=O(At),ot=O(Dn);ot.__click=()=>c("navbarSlotClick",{side:"center"});var bi=O(ot);Be(bi,t,"brand",{},w=>{var $=pi(),me=sn($);{var Ue=Ct=>{var Fn=_i();it(()=>Tt(Fn,"src",f())),pe(Ct,Fn)};xt(me,Ct=>{f()&&Ct(Ue)})}var Ve=Se(me);it(()=>Xr(Ve,` ${l()??""}`)),pe(w,$)}),N(ot);var $i=Se(ot,2);Be($i,t,"center-slot",{},null),N(Dn),N(At);var qn=Se(At,2),Ln=O(qn),Mn=O(Ln),Pn=O(Mn);Be(Pn,t,"right-slot",{},w=>{});var Ei=Se(Pn,2);{var xi=w=>{var $=gi();ri($,F(n)),it(()=>An($,"list",JSON.stringify(s().list))),An($,"position","right");var me=O($),Ue=O(me);N(me),N($),it(()=>Tt(Ue,"src",s().imgUri)),Vr("dropDownClick",$,Ve=>c("navbarDropDownClick",Ve.detail?.key)),pe(w,$)};xt(Ei,w=>{s()&&w(xi)})}return N(Mn),N(Ln),N(qn),pe(e,d),Bt(u)}Wr(["click"]),customElements.define("hb-navbar",ui(Rn,{id:{},noburger:{},usermenu:{},companybrandname:{},companylogouri:{},switchopen:{}},["nav-switcher","left-slot","brand","center-slot","right-slot"],[],!0)),Nt.Component=Rn,Object.defineProperty(Nt,Symbol.toStringTag,{value:"Module"})})(this.navbar=this.navbar||{});
1
+ (function(Lt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Zn=1,Qn=2,qt="[",Pt="[!",It="[?",Ft="]",Te={},k=Symbol(),jt="http://www.w3.org/1999/xhtml",er=!1;var tr=Array.isArray,nr=Array.prototype.indexOf,xe=Array.prototype.includes,rr=Array.from,Je=Object.keys,Ke=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,ir=Object.getOwnPropertyDescriptors,sr=Object.prototype,lr=Array.prototype,Ht=Object.getPrototypeOf,Bt=Object.isExtensible;const or=()=>{};function ar(e){for(var t=0;t<e.length;t++)e[t]()}function Vt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const x=2,Ne=4,Xe=8,Yt=1<<24,ie=16,U=32,se=64,ut=128,q=512,E=1024,N=2048,W=4096,G=8192,H=16384,le=32768,zt=1<<25,Se=65536,Ut=1<<17,fr=1<<18,ve=1<<19,ur=1<<20,_e=65536,ct=1<<21,dt=1<<22,oe=1<<23,ht=Symbol("$state"),cr=Symbol("legacy props"),dr=Symbol(""),X=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},hr=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Ze=3,Qe=8;function vr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function _r(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function pr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function gr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function mr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function wr(){throw new Error("https://svelte.dev/e/hydration_failed")}function yr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function br(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function $r(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Er(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function et(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Tr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let y=!1;function ae(e){y=e}let m;function B(e){if(e===null)throw et(),Te;return m=e}function tt(){return B(ne(m))}function O(e){if(y){if(ne(m)!==null)throw et(),Te;m=e}}function xr(e=1){if(y){for(var t=e,n=m;t--;)n=ne(n);m=n}}function Wt(e=!0){for(var t=0,n=m;;){if(n.nodeType===Qe){var r=n.data;if(r===Ft){if(t===0)return n;t-=1}else(r===qt||r===Pt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=ne(n);e&&n.remove(),n=i}}function kr(e){if(!e||e.nodeType!==Qe)throw et(),Te;return e.data}function Gt(e){return e===this.v}function Nr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Sr(e){return!Nr(e,this.v)}let Ar=!1,P=null;function Ae(e){P=e}function Jt(e,t=!1,n){P={p:P,i:!1,c:null,e:null,s:e,x:null,r:p,l:null}}function Kt(e){var t=P,n=t.e;if(n!==null){t.e=null;for(var r of n)bn(r)}return e!==void 0&&(t.x=e),t.i=!0,P=t.p,e??{}}function Xt(){return!0}let pe=[];function Zt(){var e=pe;pe=[],ar(e)}function ge(e){if(pe.length===0&&!qe){var t=pe;queueMicrotask(()=>{t===pe&&Zt()})}pe.push(e)}function Cr(){for(;pe.length>0;)Zt()}function Qt(e){var t=p;if(t===null)return _.f|=oe,e;if((t.f&le)===0&&(t.f&Ne)===0)throw e;fe(e,t)}function fe(e,t){for(;t!==null;){if((t.f&ut)!==0){if((t.f&le)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Rr=-7169;function $(e,t){e.f=e.f&Rr|t}function vt(e){(e.f&q)!==0||e.deps===null?$(e,E):$(e,W)}function en(e){if(e!==null)for(const t of e)(t.f&x)===0||(t.f&_e)===0||(t.f^=_e,en(t.deps))}function tn(e,t,n){(e.f&N)!==0?t.add(e):(e.f&W)!==0&&n.add(e),en(e.deps),$(e,E)}const ue=new Set;let w=null,V=null,_t=null,qe=!1,pt=!1,Ce=null,nt=null;var nn=0;let Or=1;class Z{id=Or++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#l=new Set;#o=new Set;#a=new Map;is_fork=!1;#c=!1;#f=new Set;#d(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#f)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#a.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#a.get(t);if(n){this.#a.delete(t);for(var r of n.d)$(r,N),this.schedule(r);for(r of n.m)$(r,W),this.schedule(r)}}#h(){if(nn++>1e3&&(ue.delete(this),Dr()),!this.#d()){for(const o of this.#l)this.#o.delete(o),$(o,N),this.schedule(o);for(const o of this.#o)$(o,W),this.schedule(o)}const t=this.#r;this.#r=[],this.apply();var n=Ce=[],r=[],i=nt=[];for(const o of t)try{this.#u(o,n,r)}catch(a){throw an(o),a}if(w=null,i.length>0){var s=Z.ensure();for(const o of i)s.schedule(o)}if(Ce=null,nt=null,this.#d()||this.#v()){this.#_(r),this.#_(n);for(const[o,a]of this.#a)on(o,a)}else{this.#t.size===0&&ue.delete(this),this.#l.clear(),this.#o.clear();for(const o of this.#e)o(this);this.#e.clear(),rn(r),rn(n),this.#s?.resolve()}var l=w;if(this.#r.length>0){const o=l??=this;o.#r.push(...this.#r.filter(a=>!o.#r.includes(a)))}l!==null&&(ue.add(l),l.#h()),ue.has(this)||this.#p()}#u(t,n,r){t.f^=E;for(var i=t.first;i!==null;){var s=i.f,l=(s&(U|se))!==0,o=l&&(s&E)!==0,a=o||(s&G)!==0||this.#a.has(i);if(!a&&i.fn!==null){l?i.f^=E:(s&Ne)!==0?n.push(i):He(i)&&((s&ie)!==0&&this.#o.add(i),De(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#_(t){for(var n=0;n<t.length;n+=1)tn(t[n],this.#l,this.#o)}capture(t,n,r=!1){n!==k&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&oe)===0&&(this.current.set(t,[t.v,r]),V?.set(t,t.v))}activate(){w=this}deactivate(){w=null,V=null}flush(){try{pt=!0,w=this,this.#h()}finally{nn=0,_t=null,Ce=null,nt=null,pt=!1,w=null,V=null,ce.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),ue.delete(this)}#p(){for(const f of ue){var t=f.id<this.id,n=[];for(const[u,[h,c]]of this.current){if(f.current.has(u)){var r=f.current.get(u)[0];if(t&&h!==r)f.current.set(u,[h,c]);else continue}n.push(u)}var i=[...f.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&f.discard();else if(n.length>0){f.activate();var s=new Set,l=new Map;for(var o of n)sn(o,i,s,l);if(f.#r.length>0){f.apply();for(var a of f.#r)f.#u(a,[],[]);f.#r=[]}f.deactivate()}}for(const f of ue)f.#f.has(this)&&(f.#f.delete(this),f.#f.size===0&&!f.#d()&&(f.activate(),f.#h()))}increment(t,n){let r=this.#t.get(n)??0;if(this.#t.set(n,r+1),t){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(t,n,r){let i=this.#t.get(n)??0;if(i===1?this.#t.delete(n):this.#t.set(n,i-1),t){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#c||r||(this.#c=!0,ge(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#l.add(r);for(const r of n)this.#o.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=Vt()).promise}static ensure(){if(w===null){const t=w=new Z;pt||(ue.add(w),qe||ge(()=>{w===t&&t.flush()}))}return w}apply(){{V=null;return}}schedule(t){if(_t=t,t.b?.is_pending&&(t.f&(Ne|Xe|Yt))!==0&&(t.f&le)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(Ce!==null&&n===p&&(_===null||(_.f&x)===0))return;if((r&(se|U))!==0){if((r&E)===0)return;n.f^=E}}this.#r.push(n)}}function me(e){var t=qe;qe=!0;try{for(var n;;){if(Cr(),w===null)return n;w.flush()}}finally{qe=t}}function Dr(){try{mr()}catch(e){fe(e,_t)}}let Q=null;function rn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(H|G))===0&&He(r)&&(Q=new Set,De(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&xn(r),Q?.size>0)){ce.clear();for(const i of Q){if((i.f&(H|G))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)Q.has(l)&&(Q.delete(l),s.push(l)),l=l.parent;for(let o=s.length-1;o>=0;o--){const a=s[o];(a.f&(H|G))===0&&De(a)}}Q.clear()}}Q=null}}function sn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&x)!==0?sn(i,t,n,r):(s&(dt|ie))!==0&&(s&N)===0&&ln(i,t,r)&&($(i,N),gt(i))}}function ln(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(xe.call(t,i))return!0;if((i.f&x)!==0&&ln(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function gt(e){w.schedule(e)}function on(e,t){if(!((e.f&U)!==0&&(e.f&E)!==0)){(e.f&N)!==0?t.d.push(e):(e.f&W)!==0&&t.m.push(e),$(e,E);for(var n=e.first;n!==null;)on(n,t),n=n.next}}function an(e){$(e,E);for(var t=e.first;t!==null;)an(t),t=t.next}function Mr(e){let t=0,n=Pe(0),r;return()=>{Tt()&&(z(n),$n(()=>(t===0&&(r=oi(()=>e(()=>Ie(n)))),t+=1,()=>{ge(()=>{t-=1,t===0&&(r?.(),r=void 0,Ie(n))})})))}}var Lr=Se|ve;function qr(e,t,n,r){new Pr(e,t,n,r)}class Pr{parent;is_pending=!1;transform_error;#e;#n=y?m:null;#t;#i;#s;#r=null;#l=null;#o=null;#a=null;#c=0;#f=0;#d=!1;#v=new Set;#h=new Set;#u=null;#_=Mr(()=>(this.#u=Pe(this.#c),()=>{this.#u=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var l=p;l.b=this,l.f|=ut,r(s)},this.parent=p.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=En(()=>{if(y){const s=this.#n;tt();const l=s.data===Pt;if(s.data.startsWith(It)){const a=JSON.parse(s.data.slice(It.length));this.#b(a)}else l?this.#$():this.#p()}else this.#w()},Lr),y&&(this.#e=m)}#p(){try{this.#r=re(()=>this.#i(this.#e))}catch(t){this.error(t)}}#b(t){const n=this.#t.failed;n&&(this.#o=re(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#l=re(()=>t(this.#e)),ge(()=>{var n=this.#a=document.createDocumentFragment(),r=te();n.append(r),this.#r=this.#m(()=>re(()=>this.#i(r))),this.#f===0&&(this.#e.before(n),this.#a=null,je(this.#l,()=>{this.#l=null}),this.#g(w))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#r=re(()=>{this.#i(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();Sn(this.#r,t);const n=this.#t.pending;this.#l=re(()=>n(this.#e))}else this.#g(w)}catch(n){this.error(n)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#h)}defer_effect(t){tn(t,this.#v,this.#h)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var n=p,r=_,i=P;I(this.#s),C(this.#s),Ae(this.#s.ctx);try{return Z.ensure(),t()}catch(s){return Qt(s),null}finally{I(n),C(r),Ae(i)}}#y(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t,n);return}this.#f+=t,this.#f===0&&(this.#g(n),this.#l&&je(this.#l,()=>{this.#l=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,n){this.#y(t,n),this.#c+=t,!(!this.#u||this.#d)&&(this.#d=!0,ge(()=>{this.#d=!1,this.#u&&it(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),z(this.#u)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(A(this.#r),this.#r=null),this.#l&&(A(this.#l),this.#l=null),this.#o&&(A(this.#o),this.#o=null),y&&(B(this.#n),xr(),B(Wt()));var i=!1,s=!1;const l=()=>{if(i){Tr();return}i=!0,s&&Er(),this.#o!==null&&je(this.#o,()=>{this.#o=null}),this.#m(()=>{this.#w()})},o=a=>{try{s=!0,n?.(a,l),s=!1}catch(f){fe(f,this.#s&&this.#s.parent)}r&&(this.#o=this.#m(()=>{try{return re(()=>{var f=p;f.b=this,f.f|=ut,r(this.#e,()=>a,()=>l)})}catch(f){return fe(f,this.#s.parent),null}}))};ge(()=>{var a;try{a=this.transform_error(t)}catch(f){fe(f,this.#s&&this.#s.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(o,f=>fe(f,this.#s&&this.#s.parent)):o(a)})}}function Ir(e,t,n,r){const i=un;var s=e.filter(c=>!c.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var l=p,o=Fr(),a=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function f(c){o();try{r(c)}catch(v){(l.f&H)===0&&fe(v,l)}rt()}if(n.length===0){a.then(()=>f(t.map(i)));return}var u=fn();function h(){Promise.all(n.map(c=>jr(c))).then(c=>f([...t.map(i),...c])).catch(c=>fe(c,l)).finally(()=>u())}a?a.then(()=>{o(),h(),rt()}):h()}function Fr(){var e=p,t=_,n=P,r=w;return function(s=!0){I(e),C(t),Ae(n),s&&(e.f&H)===0&&(r?.activate(),r?.apply())}}function rt(e=!0){I(null),C(null),Ae(null),e&&w?.deactivate()}function fn(){var e=p,t=e.b,n=w,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function un(e){var t=x|N,n=_!==null&&(_.f&x)!==0?_:null;return p!==null&&(p.f|=ve),{ctx:P,deps:null,effects:null,equals:Gt,f:t,fn:e,reactions:null,rv:0,v:k,wv:0,parent:n??p,ac:null}}function jr(e,t,n){let r=p;r===null&&vr();var i=void 0,s=Pe(k),l=!_,o=new Map;return ei(()=>{var a=p,f=Vt();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(rt)}catch(v){f.reject(v),rt()}var u=w;if(l){if((a.f&le)!==0)var h=fn();if(r.b.is_rendered())o.get(u)?.reject(X),o.delete(u);else{for(const v of o.values())v.reject(X);o.clear()}o.set(u,f)}const c=(v,d=void 0)=>{if(h){var g=d===X;h(g)}if(!(d===X||(a.f&H)!==0)){if(u.activate(),d)s.f|=oe,it(s,d);else{(s.f&oe)!==0&&(s.f^=oe),it(s,v);for(const[T,L]of o){if(o.delete(T),T===u)break;L.reject(X)}}u.deactivate()}};f.promise.then(c,v=>c(null,v||"unknown"))}),yn(()=>{for(const a of o.values())a.reject(X)}),new Promise(a=>{function f(u){function h(){u===i?a(s):f(i)}u.then(h,h)}f(i)})}function Hr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)A(t[n])}}function Br(e){for(var t=e.parent;t!==null;){if((t.f&x)===0)return(t.f&H)===0?t:null;t=t.parent}return null}function mt(e){var t,n=p;I(Br(e));try{e.f&=~_e,Hr(e),t=Mn(e)}finally{I(n)}return t}function cn(e){var t=e.v,n=mt(e);if(!e.equals(n)&&(e.wv=On(),(!w?.is_fork||e.deps===null)&&(e.v=n,w?.capture(e,t,!0),e.deps===null))){$(e,E);return}he||(V!==null?(Tt()||w?.is_fork)&&V.set(e,n):vt(e))}function Vr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(X),t.teardown=or,t.ac=null,Be(t,0),xt(t))}function dn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&De(t)}let wt=new Set;const ce=new Map;let hn=!1;function Pe(e,t){var n={f:0,v:e,reactions:null,equals:Gt,rv:0,wv:0};return n}function de(e,t){const n=Pe(e);return ii(n),n}function Yr(e,t=!1,n=!0){const r=Pe(e);return t||(r.equals=Sr),r}function ee(e,t,n=!1){_!==null&&(!Y||(_.f&Ut)!==0)&&Xt()&&(_.f&(x|ie|dt|Ut))!==0&&(F===null||!xe.call(F,e))&&$r();let r=n?Fe(t):t;return it(e,r,nt)}function it(e,t,n=null){if(!e.equals(t)){var r=e.v;he?ce.set(e,t):ce.set(e,r),e.v=t;var i=Z.ensure();if(i.capture(e,r),(e.f&x)!==0){const s=e;(e.f&N)!==0&&mt(s),V===null&&vt(s)}e.wv=On(),vn(e,N,n),p!==null&&(p.f&E)!==0&&(p.f&(U|se))===0&&(j===null?si([e]):j.push(e)),!i.is_fork&&wt.size>0&&!hn&&zr()}return t}function zr(){hn=!1;for(const e of wt)(e.f&E)!==0&&$(e,W),He(e)&&De(e);wt.clear()}function Ie(e){ee(e,e.v+1)}function vn(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var l=r[s],o=l.f,a=(o&N)===0;if(a&&$(l,t),(o&x)!==0){var f=l;V?.delete(f),(o&_e)===0&&(o&q&&(l.f|=_e),vn(f,W,n))}else if(a){var u=l;(o&ie)!==0&&Q!==null&&Q.add(u),n!==null?n.push(u):gt(u)}}}function Fe(e){if(typeof e!="object"||e===null||ht in e)return e;const t=Ht(e);if(t!==sr&&t!==lr)return e;var n=new Map,r=tr(e),i=de(0),s=ye,l=o=>{if(ye===s)return o();var a=_,f=ye;C(null),Rn(s);var u=o();return C(a),Rn(f),u};return r&&n.set("length",de(e.length)),new Proxy(e,{defineProperty(o,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&yr();var u=n.get(a);return u===void 0?l(()=>{var h=de(f.value);return n.set(a,h),h}):ee(u,f.value,!0),!0},deleteProperty(o,a){var f=n.get(a);if(f===void 0){if(a in o){const u=l(()=>de(k));n.set(a,u),Ie(i)}}else ee(f,k),Ie(i);return!0},get(o,a,f){if(a===ht)return e;var u=n.get(a),h=a in o;if(u===void 0&&(!h||ke(o,a)?.writable)&&(u=l(()=>{var v=Fe(h?o[a]:k),d=de(v);return d}),n.set(a,u)),u!==void 0){var c=z(u);return c===k?void 0:c}return Reflect.get(o,a,f)},getOwnPropertyDescriptor(o,a){var f=Reflect.getOwnPropertyDescriptor(o,a);if(f&&"value"in f){var u=n.get(a);u&&(f.value=z(u))}else if(f===void 0){var h=n.get(a),c=h?.v;if(h!==void 0&&c!==k)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(o,a){if(a===ht)return!0;var f=n.get(a),u=f!==void 0&&f.v!==k||Reflect.has(o,a);if(f!==void 0||p!==null&&(!u||ke(o,a)?.writable)){f===void 0&&(f=l(()=>{var c=u?Fe(o[a]):k,v=de(c);return v}),n.set(a,f));var h=z(f);if(h===k)return!1}return u},set(o,a,f,u){var h=n.get(a),c=a in o;if(r&&a==="length")for(var v=f;v<h.v;v+=1){var d=n.get(v+"");d!==void 0?ee(d,k):v in o&&(d=l(()=>de(k)),n.set(v+"",d))}if(h===void 0)(!c||ke(o,a)?.writable)&&(h=l(()=>de(void 0)),ee(h,Fe(f)),n.set(a,h));else{c=h.v!==k;var g=l(()=>Fe(f));ee(h,g)}var T=Reflect.getOwnPropertyDescriptor(o,a);if(T?.set&&T.set.call(u,f),!c){if(r&&typeof a=="string"){var L=n.get("length"),K=Number(a);Number.isInteger(K)&&K>=L.v&&ee(L,K+1)}Ie(i)}return!0},ownKeys(o){z(i);var a=Reflect.ownKeys(o).filter(h=>{var c=n.get(h);return c===void 0||c.v!==k});for(var[f,u]of n)u.v!==k&&!(f in o)&&a.push(f);return a},setPrototypeOf(){br()}})}var _n,pn,gn,mn;function yt(){if(_n===void 0){_n=window,pn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;gn=ke(t,"firstChild").get,mn=ke(t,"nextSibling").get,Bt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Bt(n)&&(n.__t=void 0)}}function te(e=""){return document.createTextNode(e)}function Re(e){return gn.call(e)}function ne(e){return mn.call(e)}function D(e,t){if(!y)return Re(e);var n=Re(m);return n===null&&(n=m.appendChild(te())),B(n),n}function wn(e,t=!1){if(!y){var n=Re(e);return n instanceof Comment&&n.data===""?ne(n):n}if(t){if(m?.nodeType!==Ze){var r=te();return m?.before(r),B(r),r}$t(m)}return m}function Oe(e,t=1,n=!1){let r=y?m:e;for(var i;t--;)i=r,r=ne(r);if(!y)return r;if(n){if(r?.nodeType!==Ze){var s=te();return r===null?i?.after(s):r.before(s),B(s),s}$t(r)}return B(r),r}function Ur(e){e.textContent=""}function Wr(){return!1}function bt(e,t,n){return document.createElementNS(jt,e,void 0)}function $t(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Ze;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Et(e){var t=_,n=p;C(null),I(null);try{return e()}finally{C(t),I(n)}}function Gr(e){p===null&&(_===null&&gr(),pr()),he&&_r()}function Jr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function J(e,t){var n=p;n!==null&&(n.f&G)!==0&&(e|=G);var r={ctx:P,deps:null,nodes:null,f:e|N|q,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&Ne)!==0)Ce!==null?Ce.push(r):Z.ensure().schedule(r);else if(t!==null){try{De(r)}catch(l){throw A(r),l}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&ve)===0&&(i=i.first,(e&ie)!==0&&(e&Se)!==0&&i!==null&&(i.f|=Se))}if(i!==null&&(i.parent=n,n!==null&&Jr(i,n),_!==null&&(_.f&x)!==0&&(e&se)===0)){var s=_;(s.effects??=[]).push(i)}return r}function Tt(){return _!==null&&!Y}function yn(e){const t=J(Xe,null);return $(t,E),t.teardown=e,t}function Kr(e){Gr();var t=p.f,n=!_&&(t&U)!==0&&(t&le)===0;if(n){var r=P;(r.e??=[]).push(e)}else return bn(e)}function bn(e){return J(Ne|ur,e)}function Xr(e){Z.ensure();const t=J(se|ve,e);return()=>{A(t)}}function Zr(e){Z.ensure();const t=J(se|ve,e);return(n={})=>new Promise(r=>{n.outro?je(t,()=>{A(t),r(void 0)}):(A(t),r(void 0))})}function Qr(e){return J(Ne,e)}function ei(e){return J(dt|ve,e)}function $n(e,t=0){return J(Xe|t,e)}function st(e,t=[],n=[],r=[]){Ir(r,t,n,i=>{J(Xe,()=>e(...i.map(z)))})}function En(e,t=0){var n=J(ie|t,e);return n}function re(e){return J(U|ve,e)}function Tn(e){var t=e.teardown;if(t!==null){const n=he,r=_;An(!0),C(null);try{t.call(null)}finally{An(n),C(r)}}}function xt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Et(()=>{i.abort(X)});var r=n.next;(n.f&se)!==0?n.parent=null:A(n,t),n=r}}function ti(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&U)===0&&A(t),t=n}}function A(e,t=!0){var n=!1;(t||(e.f&fr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(ni(e.nodes.start,e.nodes.end),n=!0),$(e,zt),xt(e,t&&!n),Be(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();Tn(e),e.f^=zt,e.f|=H;var i=e.parent;i!==null&&i.first!==null&&xn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function ni(e,t){for(;e!==null;){var n=e===t?null:ne(e);e.remove(),e=n}}function xn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function je(e,t,n=!0){var r=[];kn(e,r,!0);var i=()=>{n&&A(e),t&&t()},s=r.length;if(s>0){var l=()=>--s||i();for(var o of r)o.out(l)}else i()}function kn(e,t,n){if((e.f&G)===0){e.f^=G;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var i=e.first;i!==null;){var s=i.next,l=(i.f&Se)!==0||(i.f&U)!==0&&(e.f&ie)!==0;kn(i,t,l?n:!1),i=s}}}function ri(e){Nn(e,!0)}function Nn(e,t){if((e.f&G)!==0){e.f^=G,(e.f&E)===0&&($(e,N),Z.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Se)!==0||(n.f&U)!==0;Nn(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const l of s)(l.is_global||t)&&l.in()}}function Sn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:ne(n);t.append(n),n=i}}let lt=!1,he=!1;function An(e){he=e}let _=null,Y=!1;function C(e){_=e}let p=null;function I(e){p=e}let F=null;function ii(e){_!==null&&(F===null?F=[e]:F.push(e))}let R=null,M=0,j=null;function si(e){j=e}let Cn=1,we=0,ye=we;function Rn(e){ye=e}function On(){return++Cn}function He(e){var t=e.f;if((t&N)!==0)return!0;if(t&x&&(e.f&=~_e),(t&W)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(He(s)&&cn(s),s.wv>e.wv)return!0}(t&q)!==0&&V===null&&$(e,E)}return!1}function Dn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(F!==null&&xe.call(F,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&x)!==0?Dn(s,t,!1):t===s&&(n?$(s,N):(s.f&E)!==0&&$(s,W),gt(s))}}function Mn(e){var t=R,n=M,r=j,i=_,s=F,l=P,o=Y,a=ye,f=e.f;R=null,M=0,j=null,_=(f&(U|se))===0?e:null,F=null,Ae(e.ctx),Y=!1,ye=++we,e.ac!==null&&(Et(()=>{e.ac.abort(X)}),e.ac=null);try{e.f|=ct;var u=e.fn,h=u();e.f|=le;var c=e.deps,v=w?.is_fork;if(R!==null){var d;if(v||Be(e,M),c!==null&&M>0)for(c.length=M+R.length,d=0;d<R.length;d++)c[M+d]=R[d];else e.deps=c=R;if(Tt()&&(e.f&q)!==0)for(d=M;d<c.length;d++)(c[d].reactions??=[]).push(e)}else!v&&c!==null&&M<c.length&&(Be(e,M),c.length=M);if(Xt()&&j!==null&&!Y&&c!==null&&(e.f&(x|W|N))===0)for(d=0;d<j.length;d++)Dn(j[d],e);if(i!==null&&i!==e){if(we++,i.deps!==null)for(let g=0;g<n;g+=1)i.deps[g].rv=we;if(t!==null)for(const g of t)g.rv=we;j!==null&&(r===null?r=j:r.push(...j))}return(e.f&oe)!==0&&(e.f^=oe),h}catch(g){return Qt(g)}finally{e.f^=ct,R=t,M=n,j=r,_=i,F=s,Ae(l),Y=o,ye=a}}function li(e,t){let n=t.reactions;if(n!==null){var r=nr.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&x)!==0&&(R===null||!xe.call(R,t))){var s=t;(s.f&q)!==0&&(s.f^=q,s.f&=~_e),vt(s),Vr(s),Be(s,0)}}function Be(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)li(e,n[r])}function De(e){var t=e.f;if((t&H)===0){$(e,E);var n=p,r=lt;p=e,lt=!0;try{(t&(ie|Yt))!==0?ti(e):xt(e),Tn(e);var i=Mn(e);e.teardown=typeof i=="function"?i:null,e.wv=Cn;var s;er&&Ar&&(e.f&N)!==0&&e.deps}finally{lt=r,p=n}}}function z(e){var t=e.f,n=(t&x)!==0;if(_!==null&&!Y){var r=p!==null&&(p.f&H)!==0;if(!r&&(F===null||!xe.call(F,e))){var i=_.deps;if((_.f&ct)!==0)e.rv<we&&(e.rv=we,R===null&&i!==null&&i[M]===e?M++:R===null?R=[e]:R.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:xe.call(s,_)||s.push(_)}}}if(he&&ce.has(e))return ce.get(e);if(n){var l=e;if(he){var o=l.v;return((l.f&E)===0&&l.reactions!==null||qn(l))&&(o=mt(l)),ce.set(l,o),o}var a=(l.f&q)===0&&!Y&&_!==null&&(lt||(_.f&q)!==0),f=(l.f&le)===0;He(l)&&(a&&(l.f|=q),cn(l)),a&&!f&&(dn(l),Ln(l))}if(V?.has(e))return V.get(e);if((e.f&oe)!==0)throw e.v;return e.v}function Ln(e){if(e.f|=q,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&x)!==0&&(t.f&q)===0&&(dn(t),Ln(t))}function qn(e){if(e.v===k)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ce.has(t)||(t.f&x)!==0&&qn(t))return!0;return!1}function oi(e){var t=Y;try{return Y=!0,e()}finally{Y=t}}const Ve=Symbol("events"),Pn=new Set,kt=new Set;function ai(e,t,n,r={}){function i(s){if(r.capture||St.call(t,s),!s.cancelBubble)return Et(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ge(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function fi(e,t,n,r,i){var s={capture:r,passive:i},l=ai(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&yn(()=>{t.removeEventListener(e,l,s)})}function Nt(e,t,n){(t[Ve]??={})[e]=n}function ui(e){for(var t=0;t<e.length;t++)Pn.add(e[t]);for(var n of kt)n(e)}let In=null;function St(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;In=e;var l=0,o=In===e&&e[Ve];if(o){var a=i.indexOf(o);if(a!==-1&&(t===document||t===window)){e[Ve]=t;return}var f=i.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(s=i[l]||e.target,s!==t){Ke(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=_,h=p;C(null),I(null);try{for(var c,v=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var g=s[Ve]?.[r];g!=null&&(!s.disabled||e.target===s)&&g.call(s,e)}catch(T){c?v.push(T):c=T}if(e.cancelBubble||d===t||d===null)break;s=d}if(c){for(let T of v)queueMicrotask(()=>{throw T});throw c}}finally{e[Ve]=t,delete e.currentTarget,C(u),I(h)}}}const ci=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function di(e){return ci?.createHTML(e)??e}function hi(e){var t=bt("template");return t.innerHTML=di(e.replaceAll("<!>","<!---->")),t.content}function Me(e,t){var n=p;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Ye(e,t){var n=(t&Zn)!==0,r=(t&Qn)!==0,i,s=!e.startsWith("<!>");return()=>{if(y)return Me(m,null),m;i===void 0&&(i=hi(s?e:"<!>"+e),n||(i=Re(i)));var l=r||pn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Re(l),a=l.lastChild;Me(o,a)}else Me(l,l);return l}}function vi(e=""){if(!y){var t=te(e+"");return Me(t,t),t}var n=m;return n.nodeType!==Ze?(n.before(n=te()),B(n)):$t(n),Me(n,n),n}function be(e,t){if(y){var n=p;((n.f&le)===0||n.nodes.end===null)&&(n.nodes.end=m),tt();return}e!==null&&e.before(t)}const _i=["touchstart","touchmove"];function pi(e){return _i.includes(e)}function gi(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function Fn(e,t){return jn(e,t)}function mi(e,t){yt(),t.intro=t.intro??!1;const n=t.target,r=y,i=m;try{for(var s=Re(n);s&&(s.nodeType!==Qe||s.data!==qt);)s=ne(s);if(!s)throw Te;ae(!0),B(s);const l=jn(e,{...t,anchor:s});return ae(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
+ `).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==Te&&console.warn("Failed to hydrate: ",l),t.recover===!1&&wr(),yt(),Ur(n),ae(!1),Fn(e,t)}finally{ae(r),B(i)}}const ot=new Map;function jn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0,transformError:o}){yt();var a=void 0,f=Zr(()=>{var u=n??t.appendChild(te());qr(u,{pending:()=>{}},v=>{Jt({});var d=P;if(s&&(d.c=s),i&&(r.$$events=i),y&&Me(v,null),a=e(v,r)||{},y&&(p.nodes.end=m,m===null||m.nodeType!==Qe||m.data!==Ft))throw et(),Te;Kt()},o);var h=new Set,c=v=>{for(var d=0;d<v.length;d++){var g=v[d];if(!h.has(g)){h.add(g);var T=pi(g);for(const Ue of[t,document]){var L=ot.get(Ue);L===void 0&&(L=new Map,ot.set(Ue,L));var K=L.get(g);K===void 0?(Ue.addEventListener(g,St,{passive:T}),L.set(g,1)):L.set(g,K+1)}}}};return c(rr(Pn)),kt.add(c),()=>{for(var v of h)for(const T of[t,document]){var d=ot.get(T),g=d.get(v);--g==0?(T.removeEventListener(v,St),d.delete(v),d.size===0&&ot.delete(T)):d.set(v,g)}kt.delete(c),u!==n&&u.parentNode?.removeChild(u)}});return At.set(a,f),a}let At=new WeakMap;function wi(e,t){const n=At.get(e);return n?(At.delete(e),n(t)):Promise.resolve()}class yi{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)ri(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,l]of this.#e){if(this.#e.delete(s),s===t)break;const o=this.#t.get(l);o&&(A(o.effect),this.#t.delete(l))}for(const[s,l]of this.#n){if(s===n||this.#i.has(s))continue;const o=()=>{if(Array.from(this.#e.values()).includes(s)){var f=document.createDocumentFragment();Sn(l,f),f.append(te()),this.#t.set(s,{effect:l,fragment:f})}else A(l);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),je(l,o,!1)):o()}}};#l=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(A(i.effect),this.#t.delete(r))};ensure(t,n){var r=w,i=Wr();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),l=te();s.append(l),this.#t.set(t,{effect:re(()=>n(l)),fragment:s})}else this.#n.set(t,re(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[o,a]of this.#n)o===t?r.unskip_effect(a):r.skip_effect(a);for(const[o,a]of this.#t)o===t?r.unskip_effect(a.effect):r.skip_effect(a.effect);r.oncommit(this.#r),r.ondiscard(this.#l)}else y&&(this.anchor=m),this.#r(r)}}function Ct(e,t,n=!1){var r;y&&(r=m,tt());var i=new yi(e),s=n?Se:0;function l(o,a){if(y){var f=kr(r);if(o!==parseInt(f.substring(1))){var u=Wt();B(u),i.anchor=u,ae(!1),i.ensure(o,a),ae(!0);return}}i.ensure(o,a)}En(()=>{var o=!1;t((a,f=0)=>{o=!0,l(f,a)}),o||l(-1,null)},s)}function ze(e,t,n,r,i){y&&tt();var s=t.$$slots?.[n],l=!1;s===!0&&(s=t[n==="default"?"children":n],l=!0),s===void 0?i!==null&&i(e):s(e,l?()=>r:r)}function bi(e,t){Qr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=bt("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}const $i=Symbol("is custom element"),Ei=Symbol("is html"),Ti=hr?"link":"LINK";function Rt(e,t,n,r){var i=xi(e);y&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Ti)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[dr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Bn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Hn(e,t,n){var r=_,i=p;let s=y;y&&ae(!1),C(null),I(null);try{t!=="style"&&(Ot.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Bn(e).includes(t):n&&typeof n=="object")?e[t]=n:Rt(e,t,n==null?n:String(n))}finally{C(r),I(i),s&&ae(!0)}}function xi(e){return e.__attributes??={[$i]:e.nodeName.includes("-"),[Ei]:e.namespaceURI===jt}}var Ot=new Map;function Bn(e){var t=e.getAttribute("is")||e.nodeName,n=Ot.get(t);if(n)return n;Ot.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=ir(i);for(var l in r)r[l].set&&n.push(l);i=Ht(i)}return n}function Le(e,t,n,r){var i=r,s=!0,l=()=>(s&&(s=!1,i=r),i),o;o=e[t],o===void 0&&r!==void 0&&(o=l());var a;a=()=>{var c=e[t];return c===void 0?l():(s=!0,c)};var f=!1,u=un(()=>(f=!1,a())),h=p;return(function(c,v){if(arguments.length>0){const d=v?z(u):c;return ee(u,d),f=!0,i!==void 0&&(i=d),c}return he&&f||(h.f&H)!==0?u.v:z(u)})}function ki(e){return new Ni(e)}class Ni{#e;#n;constructor(t){var n=new Map,r=(s,l)=>{var o=Yr(l,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return z(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===cr?!0:(z(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,o){return ee(n.get(l)??r(l,o),o),Reflect.set(s,l,o)}});this.#n=(t.hydrate?mi:Fn)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&me(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||Ke(this,s,{get(){return this.#n[s]},set(l){this.#n[s]=l},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{wi(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let Vn;typeof HTMLElement=="function"&&(Vn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=bt("slot");r!=="default"&&(s.name=r),be(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Si(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=at(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=ki({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Xr(()=>{$n(()=>{this.$$r=!0;for(const r of Je(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=at(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=at(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Je(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function at(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Si(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Ai(e,t,n,r,i,s){let l=class extends Vn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Je(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Je(t).forEach(o=>{Ke(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(a){a=at(o,a,t),this.$$d[o]=a;var f=this.$$c;if(f){var u=ke(f,o)?.get;u?f[o]=a:f.$set({[o]:a})}}})}),r.forEach(o=>{Ke(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const Ci={version:"0.66.1"};var $e={},Yn;function Ri(){if(Yn)return $e;Yn=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.LanguageTranslator=void 0,$e.getChildStyleToPass=e,$e.addComponent=t;function e(r,i){var s,l,o="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((l=i?.filter(function(c){return Object.keys(r).includes(c.name)}))===null||l===void 0)&&l.length))for(var a=function(c){var v=i?.filter(function(d){return d.name===c&&d.defaultValue!==r[c]});v&&(o+="".concat(c,":").concat(r[c],";"))},f=0,u=Object.keys(r);f<u.length;f++){var h=u[f];a(h)}}catch(c){console.error("error getting child style to pass",c)}finally{return o}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var l=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(l),r?.local)o.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var a=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(a+"-",""),"/").concat(l)}document.head.appendChild(o)}catch(f){console.warn(f)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,l){return r.formatDate(i,s,l||this.lang)},r.getDefaultLang=function(){var i,s,l,o="en";return navigator?.languages&&(!((l=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||l===void 0)&&l.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},r.getDictionaryWord=function(i,s,l){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(l&&(!((o=s[l])===null||o===void 0)&&o[i]))return s[l][i];var a="",f=r.getDefaultLang();if(!l||f!==l){var u=s?.[f];u?.[i]&&(a=u[i])}return a},r.formatDate=function(i,s,l){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(l||r.getDefaultLang(),s);return o.format(i)},r})();return $e.LanguageTranslator=n,$e}var Oi=Ri(),Di=Ye('<button style="font-size:20px;border:none"><!></button>'),Mi=Ye('<img style="height: 30px;vertical-align: middle;" alt=""/>'),Li=Ye("<!> ",1),qi=Ye('<hb-dropdown-simple><span slot="dropdownbutton"><img style="height: 30px;vertical-align: middle;" alt=""/></span></hb-dropdown-simple>',2),Pi=Ye('<div id="left_side" class="navitem svelte-6l0qqc" part="left-slot"><div style="padding-left: 10px;"><div id="left_side_content" class="side svelte-6l0qqc"><!> <span style="cursor:pointer"><!></span></div></div></div> <div id="center_side" part="center-slot" class="navitem svelte-6l0qqc"><div class="side svelte-6l0qqc" style="margin:auto;max-width: 100%;"><span style="cursor:pointer"><!></span> <!></div></div> <div id="rigth_side" part="right-slot" class="navitem svelte-6l0qqc"><div id="rigth_side_content" class="svelte-6l0qqc"><div class="side svelte-6l0qqc"><!> <!></div></div></div>',1);const Ii={hash:"svelte-6l0qqc",code:'@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;width:100%;display:block;background-color:#f1f1f1;width:100%;height:30px;display:block;padding:10px 0px 10px 0px;}.side.svelte-6l0qqc {position:relative;z-index:1;max-width:33%;}#left_side.svelte-6l0qqc {text-align:left;}#center_side.svelte-6l0qqc {text-align:center;}#rigth_side.svelte-6l0qqc {text-align:right;}#rigth_side_content.svelte-6l0qqc {display:inline-block;padding-right:10px;z-index:3;}#left_side_content.svelte-6l0qqc {z-index:3;position:relative;}.navitem.svelte-6l0qqc {position:absolute;width:100%;color:white;line-height:30px;font-size:22px;color:black;}'};function zn(e,t){Jt(t,!0),bi(e,Ii);let n=Le(t,"id",7,""),r=Le(t,"noburger",7,void 0),i=Le(t,"usermenu",7,void 0),s=Le(t,"companybrandname",7,""),l=Le(t,"companylogouri",7,""),o=Le(t,"switchopen",7,void 0),a;Kr(()=>{!o()||o()==="no"?(o("no"),a=!1):a=!0,typeof i()=="string"&&i(JSON.parse(i()))}),Oi.addComponent({repoName:"@htmlbricks/hb-dropdown-simple",version:Ci.version});function f(b,S){t.$$host.dispatchEvent(new CustomEvent(b,{detail:S}))}function u(){a=!a,f("navmenuswitch",{isOpen:a})}var h={get id(){return n()},set id(b=""){n(b),me()},get noburger(){return r()},set noburger(b=void 0){r(b),me()},get usermenu(){return i()},set usermenu(b=void 0){i(b),me()},get companybrandname(){return s()},set companybrandname(b=""){s(b),me()},get companylogouri(){return l()},set companylogouri(b=""){l(b),me()},get switchopen(){return o()},set switchopen(b=void 0){o(b),me()}},c=Pi(),v=wn(c),d=D(v),g=D(d),T=D(g);{var L=b=>{var S=Di(),Ee=D(S);ze(Ee,t,"nav-switcher",{},We=>{var Ge=vi("☰");be(We,Ge)}),O(S),Nt("click",S,()=>u()),be(b,S)};Ct(T,b=>{r()||b(L)})}var K=Oe(T,2),Ue=D(K);ze(Ue,t,"left-slot",{},null),O(K),O(g),O(d),O(v);var Dt=Oe(v,2),Un=D(Dt),ft=D(Un),Fi=D(ft);ze(Fi,t,"brand",{},b=>{var S=Li(),Ee=wn(S);{var We=Mt=>{var Xn=Mi();st(()=>Rt(Xn,"src",l())),be(Mt,Xn)};Ct(Ee,Mt=>{l()&&Mt(We)})}var Ge=Oe(Ee);st(()=>gi(Ge,` ${s()??""}`)),be(b,S)}),O(ft);var ji=Oe(ft,2);ze(ji,t,"center-slot",{},null),O(Un),O(Dt);var Wn=Oe(Dt,2),Gn=D(Wn),Jn=D(Gn),Kn=D(Jn);ze(Kn,t,"right-slot",{},b=>{});var Hi=Oe(Kn,2);{var Bi=b=>{var S=qi();st(()=>Hn(S,"list",JSON.stringify(i().list))),Hn(S,"position","right");var Ee=D(S),We=D(Ee);O(Ee),O(S),st(()=>Rt(We,"src",i().imgUri)),fi("dropDownClick",S,Ge=>f("navbarDropDownClick",Ge.detail?.key)),be(b,S)};Ct(Hi,b=>{i()&&b(Bi)})}return O(Jn),O(Gn),O(Wn),Nt("click",K,()=>f("navbarSlotClick",{side:"left"})),Nt("click",ft,()=>f("navbarSlotClick",{side:"center"})),be(e,c),Kt(h)}ui(["click"]),customElements.define("hb-navbar",Ai(zn,{id:{},noburger:{},usermenu:{},companybrandname:{},companylogouri:{},switchopen:{}},["nav-switcher","left-slot","brand","center-slot","right-slot"],[],{mode:"open"})),Lt.Component=zn,Object.defineProperty(Lt,Symbol.toStringTag,{value:"Module"})})(this.navbar=this.navbar||{});
3
3
  //# sourceMappingURL=main.iife.js.map