@htmlbricks/hb-navbar 0.61.54 → 0.61.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
(function(St){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const jn=1,In=2,Ct="[",ft="[!",Nt="]",me={},$=Symbol(),Bn="http://www.w3.org/1999/xhtml",Ot=!1;var Yn=Array.isArray,Hn=Array.prototype.indexOf,Un=Array.from,We=Object.keys,ze=Object.defineProperty,we=Object.getOwnPropertyDescriptor,Vn=Object.getOwnPropertyDescriptors,Wn=Object.prototype,zn=Array.prototype,Rt=Object.getPrototypeOf,Dt=Object.isExtensible;function Gn(e){for(var t=0;t<e.length;t++)e[t]()}function qt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const E=2,Ge=4,at=8,G=16,J=32,re=64,Je=128,j=512,x=1024,S=2048,K=4096,Y=8192,ie=16384,ut=32768,ye=65536,Lt=1<<17,Mt=1<<18,fe=1<<19,Jn=1<<20,Ne=32768,ct=1<<21,ht=1<<22,se=1<<23,dt=Symbol("$state"),Kn=Symbol("legacy props"),Xn=Symbol(""),be=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},vt=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 or(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function fr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let g=!1;function le(e){g=e}let m;function I(e){if(e===null)throw Ke(),me;return m=e}function Xe(){return I(ee(m))}function N(e){if(g){if(ee(m)!==null)throw Ke(),me;m=e}}function ar(e=1){if(g){for(var t=e,n=m;t--;)n=ee(n);m=n}}function Pt(e=!0){for(var t=0,n=m;;){if(n.nodeType===Oe){var r=n.data;if(r===Nt){if(t===0)return n;t-=1}else(r===Ct||r===ft)&&(t+=1)}var i=ee(n);e&&n.remove(),n=i}}function ur(e){if(!e||e.nodeType!==Oe)throw Ke(),me;return e.data}function Ft(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 hr(e){return!cr(e,this.v)}let dr=!1,q=null;function $e(e){q=e}function jt(e,t=!1,n){q={p:q,i:!1,c:null,e:null,s:e,x:null,l:null}}function It(e){var t=q,n=t.e;if(n!==null){t.e=null;for(var r of n)ln(r)}return e!==void 0&&(t.x=e),t.i=!0,q=t.p,e??{}}function Bt(){return!0}let ae=[];function Yt(){var e=ae;ae=[],Gn(e)}function Ze(e){if(ae.length===0&&!Re){var t=ae;queueMicrotask(()=>{t===ae&&Yt()})}ae.push(e)}function vr(){for(;ae.length>0;)Yt()}function Ht(e){var t=_;if(t===null)return v.f|=se,e;if((t.f&ut)===0){if((t.f&Je)===0)throw e;t.b.error(e)}else Ee(e,t)}function Ee(e,t){for(;t!==null;){if((t.f&Je)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Qe=new Set;let y=null,O=null,H=[],et=null,_t=!1,Re=!1;class B{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#f=null;#l=[];#o=[];skipped_effects=new Set;is_fork=!1;process(t){H=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#i(r,n);this.is_fork||this.#a(),this.#r>0||this.is_fork?(this.#s(n.effects),this.#s(n.render_effects),this.#s(n.block_effects)):(y=null,Vt(n.render_effects),Vt(n.effects),this.#f?.resolve()),O=null}#i(t,n){t.f^=x;for(var r=t.first;r!==null;){var i=r.f,s=(i&(J|re))!==0,l=s&&(i&x)!==0,o=l||(i&Y)!==0||this.skipped_effects.has(r);if((r.f&Je)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!o&&r.fn!==null){s?r.f^=x:(i&Ge)!==0?n.effects.push(r):Pe(r)&&((r.f&G)!==0&&n.block_effects.push(r),Fe(r));var f=r.first;if(f!==null){r=f;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)a===n.effect&&(this.#s(n.effects),this.#s(n.render_effects),this.#s(n.block_effects),n=n.parent),r=a.next,a=a.parent}}#s(t){for(const n of t)((n.f&S)!==0?this.#l:this.#o).push(n),k(n,x)}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&se)===0&&(this.current.set(t,t.v),O?.set(t,t.v))}activate(){y=this,this.apply()}deactivate(){y=null,O=null}flush(){if(this.activate(),H.length>0){if(Ut(),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()}#a(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#u()}#u(){if(Qe.size>1){this.previous.clear();var t=O,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const i of Qe){if(i===this){n=!1;continue}const s=[];for(const[o,f]of this.current){if(i.current.has(o))if(n&&f!==i.current.get(o))i.current.set(o,f);else continue;s.push(o)}if(s.length===0)continue;const l=[...i.current.keys()].filter(o=>!this.current.has(o));if(l.length>0){const o=new Set,f=new Map;for(const a of s)Wt(a,l,o,f);if(H.length>0){y=i,i.apply();for(const a of H)i.#i(a,r);H=[],i.deactivate()}}}y=null,O=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.#l)k(t,S),ce(t);for(const t of this.#o)k(t,K),ce(t);this.#l=[],this.#o=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#f??=qt()).promise}static ensure(){if(y===null){const t=y=new B;Qe.add(y),Re||B.enqueue(()=>{y===t&&t.flush()})}return y}static enqueue(t){Ze(t)}apply(){}}function ue(e){var t=Re;Re=!0;try{for(var n;;){if(vr(),H.length===0&&(y?.flush(),H.length===0))return et=null,n;Ut()}}finally{Re=t}}function Ut(){var e=he;_t=!0;try{var t=0;for(_n(!0);H.length>0;){var n=B.ensure();if(t++>1e3){var r,i;_r()}n.process(H),oe.clear()}}finally{_t=!1,_n(e),et=null}}function _r(){try{nr()}catch(e){Ee(e,et)}}let X=null;function Vt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ie|Y))===0&&Pe(r)&&(X=new Set,Fe(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?cn(r):r.fn=null),X?.size>0)){oe.clear();for(const i of X){if((i.f&(ie|Y))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)X.has(l)&&(X.delete(l),s.push(l)),l=l.parent;for(let o=s.length-1;o>=0;o--){const f=s[o];(f.f&(ie|Y))===0&&Fe(f)}}X.clear()}}X=null}}function Wt(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&E)!==0?Wt(i,t,n,r):(s&(ht|G))!==0&&(s&S)===0&&zt(i,t,r)&&(k(i,S),ce(i))}}function zt(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&E)!==0&&zt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function ce(e){for(var t=et=e;t.parent!==null;){t=t.parent;var n=t.f;if(_t&&t===_&&(n&G)!==0&&(n&Mt)===0)return;if((n&(re|J))!==0){if((n&x)===0)return;t.f^=x}}H.push(t)}function pr(e){let t=0,n=De(0),r;return()=>{rt()&&(P(n),on(()=>(t===0&&(r=Yr(()=>e(()=>qe(n)))),t+=1,()=>{Ze(()=>{t-=1,t===0&&(r?.(),r=void 0,qe(n))})})))}}var gr=ye|fe|Je;function mr(e,t,n){new wr(e,t,n)}class wr{parent;#t=!1;#e;#n=g?m:null;#r;#f;#l;#o=null;#i=null;#s=null;#a=null;#u=null;#d=0;#c=0;#v=!1;#h=null;#w=pr(()=>(this.#h=De(this.#d),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#f=r,this.parent=_.b,this.#t=!!this.#r.pending,this.#l=fn(()=>{if(_.b=this,g){const s=this.#n;Xe(),s.nodeType===Oe&&s.data===ft?this.#b():this.#y()}else{var i=this.#g();try{this.#o=te(()=>r(i))}catch(s){this.error(s)}this.#c>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},gr),g&&(this.#e=m)}#y(){try{this.#o=te(()=>this.#f(this.#e))}catch(t){this.error(t)}this.#t=!1}#b(){const t=this.#r.pending;t&&(this.#i=te(()=>t(this.#e)),B.enqueue(()=>{var n=this.#g();this.#o=this.#_(()=>(B.ensure(),te(()=>this.#f(n)))),this.#c>0?this.#p():(Le(this.#i,()=>{this.#i=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#u=Q(),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=q;L(this.#l),T(this.#l),$e(this.#l.ctx);try{return t()}catch(s){return Ht(s),null}finally{L(n),T(r),$e(i)}}#p(){const t=this.#r.pending;this.#o!==null&&(this.#a=document.createDocumentFragment(),this.#a.append(this.#u),vn(this.#o,this.#a)),this.#i===null&&(this.#i=te(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#c+=t,this.#c===0&&(this.#t=!1,this.#i&&Le(this.#i,()=>{this.#i=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t){this.#m(t),this.#d+=t,this.#h&&nt(this.#h,this.#d)}get_effect_pending(){return this.#w(),P(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#o&&(C(this.#o),this.#o=null),this.#i&&(C(this.#i),this.#i=null),this.#s&&(C(this.#s),this.#s=null),g&&(I(this.#n),ar(),I(Pt()));var i=!1,s=!1;const l=()=>{if(i){fr();return}i=!0,s&&or(),B.ensure(),this.#d=0,this.#s!==null&&Le(this.#s,()=>{this.#s=null}),this.#t=this.has_pending_snippet(),this.#o=this.#_(()=>(this.#v=!1,te(()=>this.#f(this.#e)))),this.#c>0?this.#p():this.#t=!1};var o=v;try{T(null),s=!0,n?.(t,l),s=!1}catch(f){Ee(f,this.#l&&this.#l.parent)}finally{T(o)}r&&Ze(()=>{this.#s=this.#_(()=>{B.ensure(),this.#v=!0;try{return te(()=>{r(this.#e,()=>t,()=>l)})}catch(f){return Ee(f,this.#l.parent),null}finally{this.#v=!1}})})}}function yr(e,t,n,r){const i=Gt;if(n.length===0&&e.length===0){r(t.map(i));return}var s=y,l=_,o=br();function f(){Promise.all(n.map(a=>$r(a))).then(a=>{o();try{r([...t.map(i),...a])}catch(c){(l.f&ie)===0&&Ee(c,l)}s?.deactivate(),tt()}).catch(a=>{Ee(a,l)})}e.length>0?Promise.all(e).then(()=>{o();try{return f()}finally{s?.deactivate(),tt()}}):f()}function br(){var e=_,t=v,n=q,r=y;return function(s=!0){L(e),T(t),$e(n),s&&r?.activate()}}function tt(){L(null),T(null),$e(null)}function Gt(e){var t=E|S,n=v!==null&&(v.f&E)!==0?v:null;return _!==null&&(_.f|=fe),{ctx:q,deps:null,effects:null,equals:Ft,f:t,fn:e,reactions:null,rv:0,v:$,wv:0,parent:n??_,ac:null}}function $r(e,t){let n=_;n===null&&Zn();var r=n.b,i=void 0,s=De($),l=!v,o=new Map;return qr(()=>{var f=qt();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{a===y&&a.committed&&a.deactivate(),tt()})}catch(u){f.reject(u),tt()}var a=y;if(l){var c=!r.is_pending();r.update_pending_count(1),a.increment(c),o.get(a)?.reject(be),o.delete(a),o.set(a,f)}const d=(u,h=void 0)=>{if(a.activate(),h)h!==be&&(s.f|=se,nt(s,h));else{(s.f&se)!==0&&(s.f^=se),nt(s,u);for(const[p,F]of o){if(o.delete(p),p===a)break;F.reject(be)}}l&&(r.update_pending_count(-1),a.decrement(c))};f.promise.then(d,u=>d(null,u||"unknown"))}),sn(()=>{for(const f of o.values())f.reject(be)}),new Promise(f=>{function a(c){function d(){c===i?f(s):a(i)}c.then(d,d)}a(i)})}function Jt(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&E)===0)return t;t=t.parent}return null}function pt(e){var t,n=_;L(Er(e));try{e.f&=~Ne,Jt(e),t=bn(e)}finally{L(n)}return t}function Kt(e){var t=pt(e);if(e.equals(t)||(e.v=t,e.wv=wn()),!de)if(O!==null)rt()&&O.set(e,e.v);else{var n=(e.f&j)===0?K:x;k(e,n)}}let gt=new Set;const oe=new Map;let Xt=!1;function De(e,t){var n={f:0,v:e,reactions:null,equals:Ft,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=hr),r}function Z(e,t,n=!1){v!==null&&(!W||(v.f&Lt)!==0)&&Bt()&&(v.f&(E|G|ht|Lt))!==0&&!ne?.includes(e)&&lr();let r=n?xe(t):t;return nt(e,r)}function nt(e,t){if(!e.equals(t)){var n=e.v;de?oe.set(e,t):oe.set(e,n),e.v=t;var r=B.ensure();r.capture(e,n),(e.f&E)!==0&&((e.f&S)!==0&&pt(e),k(e,(e.f&j)!==0?x:K)),e.wv=wn(),Zt(e,S),_!==null&&(_.f&x)!==0&&(_.f&(J|re))===0&&(M===null?Ir([e]):M.push(e)),!r.is_fork&>.size>0&&!Xt&&Tr()}return t}function Tr(){Xt=!1;const e=Array.from(gt);for(const t of e)(t.f&x)!==0&&k(t,K),Pe(t)&&Fe(t);gt.clear()}function qe(e){Z(e,e.v+1)}function Zt(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,o=(l&S)===0;if(o&&k(s,t),(l&E)!==0){var f=s;O?.delete(f),(l&Ne)===0&&(l&j&&(s.f|=Ne),Zt(f,K))}else o&&((l&G)!==0&&X!==null&&X.add(s),ce(s))}}function xe(e){if(typeof e!="object"||e===null||dt in e)return e;const t=Rt(e);if(t!==Wn&&t!==zn)return e;var n=new Map,r=Yn(e),i=U(0),s=ve,l=o=>{if(ve===s)return o();var f=v,a=ve;T(null),mn(s);var c=o();return T(f),mn(a),c};return r&&n.set("length",U(e.length)),new Proxy(e,{defineProperty(o,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&ir();var c=n.get(f);return c===void 0?c=l(()=>{var d=U(a.value);return n.set(f,d),d}):Z(c,a.value,!0),!0},deleteProperty(o,f){var a=n.get(f);if(a===void 0){if(f in o){const c=l(()=>U($));n.set(f,c),qe(i)}}else Z(a,$),qe(i);return!0},get(o,f,a){if(f===dt)return e;var c=n.get(f),d=f in o;if(c===void 0&&(!d||we(o,f)?.writable)&&(c=l(()=>{var h=xe(d?o[f]:$),p=U(h);return p}),n.set(f,c)),c!==void 0){var u=P(c);return u===$?void 0:u}return Reflect.get(o,f,a)},getOwnPropertyDescriptor(o,f){var a=Reflect.getOwnPropertyDescriptor(o,f);if(a&&"value"in a){var c=n.get(f);c&&(a.value=P(c))}else if(a===void 0){var d=n.get(f),u=d?.v;if(d!==void 0&&u!==$)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return a},has(o,f){if(f===dt)return!0;var a=n.get(f),c=a!==void 0&&a.v!==$||Reflect.has(o,f);if(a!==void 0||_!==null&&(!c||we(o,f)?.writable)){a===void 0&&(a=l(()=>{var u=c?xe(o[f]):$,h=U(u);return h}),n.set(f,a));var d=P(a);if(d===$)return!1}return c},set(o,f,a,c){var d=n.get(f),u=f in o;if(r&&f==="length")for(var h=a;h<d.v;h+=1){var p=n.get(h+"");p!==void 0?Z(p,$):h in o&&(p=l(()=>U($)),n.set(h+"",p))}if(d===void 0)(!u||we(o,f)?.writable)&&(d=l(()=>U(void 0)),Z(d,xe(a)),n.set(f,d));else{u=d.v!==$;var F=l(()=>xe(a));Z(d,F)}var z=Reflect.getOwnPropertyDescriptor(o,f);if(z?.set&&z.set.call(c,a),!u){if(r&&typeof f=="string"){var Ye=n.get("length"),He=Number(f);Number.isInteger(He)&&He>=Ye.v&&Z(Ye,He+1)}qe(i)}return!0},ownKeys(o){P(i);var f=Reflect.ownKeys(o).filter(d=>{var u=n.get(d);return u===void 0||u.v!==$});for(var[a,c]of n)c.v!==$&&!(a in o)&&f.push(a);return f},setPrototypeOf(){sr()}})}var Qt,en,tn,nn;function mt(){if(Qt===void 0){Qt=window,en=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;tn=we(t,"firstChild").get,nn=we(t,"nextSibling").get,Dt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Dt(n)&&(n.__t=void 0)}}function Q(e=""){return document.createTextNode(e)}function Te(e){return tn.call(e)}function ee(e){return nn.call(e)}function R(e,t){if(!g)return Te(e);var n=Te(m);return n===null&&(n=m.appendChild(Q())),I(n),n}function rn(e,t=!1){if(!g){var n=Te(e);return n instanceof Comment&&n.data===""?ee(n):n}if(t&&m?.nodeType!==vt){var r=Q();return m?.before(r),I(r),r}return m}function ke(e,t=1,n=!1){let r=g?m:e;for(var i;t--;)i=r,r=ee(r);if(!g)return r;if(n&&r?.nodeType!==vt){var s=Q();return r===null?i?.after(s):r.before(s),I(s),s}return I(r),r}function kr(e){e.textContent=""}function Ar(){return!1}function wt(e){var t=v,n=_;T(null),L(null);try{return e()}finally{T(t),L(n)}}function Sr(e){_===null&&(v===null&&tr(),er()),de&&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,r=!0){var i=_;i!==null&&(i.f&Y)!==0&&(e|=Y);var s={ctx:q,deps:null,nodes_start:null,nodes_end:null,f:e|S|j,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Fe(s),s.f|=ut}catch(f){throw C(s),f}else t!==null&&ce(s);if(r){var l=s;if(n&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&fe)===0&&(l=l.first,(e&G)!==0&&(e&ye)!==0&&l!==null&&(l.f|=ye)),l!==null&&(l.parent=i,i!==null&&Cr(l,i),v!==null&&(v.f&E)!==0&&(e&re)===0)){var o=v;(o.effects??=[]).push(l)}}return s}function rt(){return v!==null&&!W}function sn(e){const t=V(at,null,!1);return k(t,x),t.teardown=e,t}function Nr(e){Sr();var t=_.f,n=!v&&(t&J)!==0&&(t&ut)===0;if(n){var r=q;(r.e??=[]).push(e)}else return ln(e)}function ln(e){return V(Ge|Jn,e,!1)}function Or(e){B.ensure();const t=V(re|fe,e,!0);return()=>{C(t)}}function Rr(e){B.ensure();const t=V(re|fe,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(Ge,e,!1)}function qr(e){return V(ht|fe,e,!0)}function on(e,t=0){return V(at|t,e,!0)}function it(e,t=[],n=[],r=[],i=!1){yr(r,t,n,s=>{V(i?Ge:at,()=>e(...s.map(P)),!0)})}function fn(e,t=0){var n=V(G|t,e,!0);return n}function te(e,t=!0){return V(J|fe,e,!0,t)}function an(e){var t=e.teardown;if(t!==null){const n=de,r=v;pn(!0),T(null);try{t.call(null)}finally{pn(n),T(r)}}}function un(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&wt(()=>{i.abort(be)});var r=n.next;(n.f&re)!==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&Mt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Mr(e.nodes_start,e.nodes_end),n=!0),un(e,t&&!n),st(e,0),k(e,ie);var r=e.transitions;if(r!==null)for(const s of r)s.stop();an(e);var i=e.parent;i!==null&&i.first!==null&&cn(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:ee(e);e.remove(),e=n}}function cn(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&Y)===0){if(e.f^=Y,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&ye)!==0||(r.f&J)!==0&&(e.f&G)!==0;hn(r,t,s?n:!1),r=i}}}function Fr(e){dn(e,!0)}function dn(e,t){if((e.f&Y)!==0){e.f^=Y,(e.f&x)===0&&(k(e,S),ce(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&ye)!==0||(n.f&J)!==0;dn(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function vn(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:ee(n);t.append(n),n=i}}let he=!1;function _n(e){he=e}let de=!1;function pn(e){de=e}let v=null,W=!1;function T(e){v=e}let _=null;function L(e){_=e}let ne=null;function jr(e){v!==null&&(ne===null?ne=[e]:ne.push(e))}let A=null,D=0,M=null;function Ir(e){M=e}let gn=1,Me=0,ve=Me;function mn(e){ve=e}function wn(){return++gn}function Pe(e){var t=e.f;if((t&S)!==0)return!0;if(t&E&&(e.f&=~Ne),(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)&&Kt(s),s.wv>e.wv)return!0}(t&j)!==0&&O===null&&k(e,x)}return!1}function yn(e,t,n=!0){var r=e.reactions;if(r!==null&&!ne?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&E)!==0?yn(s,t,!1):t===s&&(n?k(s,S):(s.f&x)!==0&&k(s,K),ce(s))}}function bn(e){var t=A,n=D,r=M,i=v,s=ne,l=q,o=W,f=ve,a=e.f;A=null,D=0,M=null,v=(a&(J|re))===0?e:null,ne=null,$e(e.ctx),W=!1,ve=++Me,e.ac!==null&&(wt(()=>{e.ac.abort(be)}),e.ac=null);try{e.f|=ct;var c=e.fn,d=c(),u=e.deps;if(A!==null){var h;if(st(e,D),u!==null&&D>0)for(u.length=D+A.length,h=0;h<A.length;h++)u[D+h]=A[h];else e.deps=u=A;if(he&&rt()&&(e.f&j)!==0)for(h=D;h<u.length;h++)(u[h].reactions??=[]).push(e)}else u!==null&&D<u.length&&(st(e,D),u.length=D);if(Bt()&&M!==null&&!W&&u!==null&&(e.f&(E|K|S))===0)for(h=0;h<M.length;h++)yn(M[h],e);return i!==null&&i!==e&&(Me++,M!==null&&(r===null?r=M:r.push(...M))),(e.f&se)!==0&&(e.f^=se),d}catch(p){return Ht(p)}finally{e.f^=ct,A=t,D=n,M=r,v=i,ne=s,$e(l),W=o,ve=f}}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&E)!==0&&(A===null||!A.includes(t))&&(k(t,K),(t.f&j)!==0&&(t.f^=j,t.f&=~Ne),Jt(t),st(t,0))}function st(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&ie)===0){k(e,x);var n=_,r=he;_=e,he=!0;try{(t&G)!==0?Lr(e):un(e),an(e);var i=bn(e);e.teardown=typeof i=="function"?i:null,e.wv=gn;var s;Ot&&dr&&(e.f&S)!==0&&e.deps}finally{he=r,_=n}}}function P(e){var t=e.f,n=(t&E)!==0;if(v!==null&&!W){var r=_!==null&&(_.f&ie)!==0;if(!r&&!ne?.includes(e)){var i=v.deps;if((v.f&ct)!==0)e.rv<Me&&(e.rv=Me,A===null&&i!==null&&i[D]===e?D++:A===null?A=[e]:A.includes(e)||A.push(e));else{(v.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[v]:s.includes(v)||s.push(v)}}}if(de){if(oe.has(e))return oe.get(e);if(n){var l=e,o=l.v;return((l.f&x)===0&&l.reactions!==null||En(l))&&(o=pt(l)),oe.set(l,o),o}}else if(n){if(l=e,O?.has(l))return O.get(l);Pe(l)&&Kt(l),he&&rt()&&(l.f&j)===0&&$n(l)}else if(O?.has(e))return O.get(e);if((e.f&se)!==0)throw e.v;return e.v}function $n(e){if(e.deps!==null){e.f^=j;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&E)!==0&&(t.f&j)===0&&$n(t)}}function En(e){if(e.v===$)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(oe.has(t)||(t.f&E)!==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,yt=new Set;function Ur(e,t,n,r={}){function i(s){if(r.capture||je.call(t,s),!s.cancelBubble)return wt(()=>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)&&sn(()=>{t.removeEventListener(e,l,s)})}function Wr(e){for(var t=0;t<e.length;t++)xn.add(e[t]);for(var n of yt)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,o=Tn===e&&e.__root;if(o){var f=i.indexOf(o);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var a=i.indexOf(t);if(a===-1)return;f<=a&&(l=f)}if(s=i[l]||e.target,s!==t){ze(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=v,d=_;T(null),L(null);try{for(var u,h=[];s!==null;){var p=s.assignedSlot||s.parentNode||s.host||null;try{var F=s["__"+r];F!=null&&(!s.disabled||e.target===s)&&F.call(s,e)}catch(z){u?h.push(z):u=z}if(e.cancelBubble||p===t||p===null)break;s=p}if(u){for(let z of h)queueMicrotask(()=>{throw z});throw u}}finally{e.__root=t,delete e.currentTarget,T(c),L(d)}}}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=Te(i)));var l=r||en?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Te(l),f=l.lastChild;Ae(o,f)}else Ae(l,l);return l}}function Gr(e=""){if(!g){var t=Q(e+"");return Ae(t,t),t}var n=m;return n.nodeType!==vt&&(n.before(n=Q()),I(n)),Ae(n,n),n}function _e(e,t){if(g){_.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 An(e,t)}function Zr(e,t){mt(),t.intro=t.intro??!1;const n=t.target,r=g,i=m;try{for(var s=Te(n);s&&(s.nodeType!==Oe||s.data!==Ct);)s=ee(s);if(!s)throw me;le(!0),I(s);const l=An(e,{...t,anchor:s});return le(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
-
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==me&&console.warn("Failed to hydrate: ",l),t.recover===!1&&rr(),mt(),kr(n),le(!1),kn(e,t)}finally{le(r),I(i)}}const Se=new Map;function An(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0}){mt();var o=new Set,f=d=>{for(var u=0;u<d.length;u++){var h=d[u];if(!o.has(h)){o.add(h);var p=Kr(h);t.addEventListener(h,je,{passive:p});var F=Se.get(h);F===void 0?(document.addEventListener(h,je,{passive:p}),Se.set(h,1)):Se.set(h,F+1)}}};f(Un(xn)),yt.add(f);var a=void 0,c=Rr(()=>{var d=n??t.appendChild(Q());return mr(d,{pending:()=>{}},u=>{if(s){jt({});var h=q;h.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!==Nt))throw Ke(),me;s&&It()}),()=>{for(var u of o){t.removeEventListener(u,je);var h=Se.get(u);--h===0?(document.removeEventListener(u,je),Se.delete(u)):Se.set(u,h)}yt.delete(f),d!==n&&d.parentNode?.removeChild(d)}});return bt.set(a,c),a}let bt=new WeakMap;function Qr(e,t){const n=bt.get(e);return n?(bt.delete(e),n(t)):Promise.resolve()}class ei{anchor;#t=new Map;#e=new Map;#n=new Map;#r=!0;constructor(t,n=!0){this.anchor=t,this.#r=n}#f=()=>{var t=y;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)Fr(r);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 o=this.#n.get(l);o&&(C(o.effect),this.#n.delete(l))}for(const[s,l]of this.#e){if(s===n)continue;const o=()=>{if(Array.from(this.#t.values()).includes(s)){var a=document.createDocumentFragment();vn(l,a),a.append(Q()),this.#n.set(s,{effect:l,fragment:a})}else C(l);this.#e.delete(s)};this.#r||!r?Le(l,o,!1):o()}}};#l=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=Ar();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(i){var s=document.createDocumentFragment(),l=Q();s.append(l),this.#n.set(t,{effect:te(()=>n(l)),fragment:s})}else this.#e.set(t,te(()=>n(this.anchor)));if(this.#t.set(r,t),i){for(const[o,f]of this.#e)o===t?r.skipped_effects.delete(f):r.skipped_effects.add(f);for(const[o,f]of this.#n)o===t?r.skipped_effects.delete(f.effect):r.skipped_effects.add(f.effect);r.oncommit(this.#f),r.ondiscard(this.#l)}else g&&(this.anchor=m),this.#f()}}function $t(e,t,n=!1){g&&Xe();var r=new ei(e),i=n?ye:0;function s(l,o){if(g){const a=ur(e)===ft;if(l===a){var f=Pt();I(f),r.anchor=f,le(!1),r.ensure(l,o),le(!0);return}}r.ensure(l,o)}fn(()=>{var l=!1;t((o,f=!0)=>{l=!0,s(f,o)}),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 Et(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 Sn(e,t,n){var r=v,i=_;let s=g;g&&le(!1),T(null),L(null);try{t!=="style"&&(xt.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:Et(e,t,n==null?n:String(n))}finally{T(r),L(i),s&&le(!0)}}function li(e){return e.__attributes??={[ii]:e.nodeName.includes("-"),[si]:e.namespaceURI===Bn}}var xt=new Map;function Cn(e){var t=e.getAttribute("is")||e.nodeName,n=xt.get(t);if(n)return n;xt.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=Rt(i)}return n}function Ce(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 f;f=()=>{var u=e[t];return u===void 0?l():(s=!0,u)};var a=!1,c=Gt(()=>(a=!1,f())),d=_;return(function(u,h){if(arguments.length>0){const p=h?P(c):u;return Z(c,p),a=!0,i!==void 0&&(i=p),u}return de&&a||(d.f&ie)!==0?c.v:P(c)})}function oi(e){return new fi(e)}class fi{#t;#e;constructor(t){var n=new Map,r=(s,l)=>{var o=xr(l,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return P(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===Kn?!0:(P(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,o){return Z(n.get(l)??r(l,o),o),Reflect.set(s,l,o)}});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)&&ue(),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),_e(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]=lt(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=oi({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=lt(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]=lt(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 lt(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(o=>(t[o].attribute||o).toLowerCase())}};return We(t).forEach(o=>{ze(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(f){f=lt(o,f,t),this.$$d[o]=f;var a=this.$$c;if(a){var c=we(a,o)?.get;c?a[o]=f:a.$set({[o]:f})}}})}),r.forEach(o=>{ze(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const ci={version:"0.61.54"};var pe={},On;function hi(){if(On)return pe;On=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.LanguageTranslator=void 0,pe.getChildStyleToPass=e,pe.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(u){return Object.keys(r).includes(u.name)}))===null||l===void 0)&&l.length))for(var f=function(u){var h=i?.filter(function(p){return p.name===u&&p.defaultValue!==r[u]});h&&(o+="".concat(u,":").concat(r[u],";"))},a=0,c=Object.keys(r);a<c.length;a++){var d=c[a];f(d)}}catch(u){console.error("error getting child style to pass",u)}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 f=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(f+"-",""),"/").concat(l)}document.head.appendChild(o)}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,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 f="",a=r.getDefaultLang();if(!l||a!==l){var c=s?.[a];c?.[i]&&(f=c[i])}return f},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 pe.LanguageTranslator=n,pe}var di=hi(),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){jt(t,!0),ti(e,wi);xe({});let n=U(""),r=Ce(t,"id",7,""),i=Ce(t,"noburger",7,void 0),s=Ce(t,"usermenu",7,void 0),l=Ce(t,"companybrandname",7,""),o=Ce(t,"companylogouri",7,""),f=Ce(t,"switchopen",7,void 0),a;Nr(()=>{!f()||f()==="no"?(f("no"),a=!1):a=!0,typeof s()=="string"&&s(JSON.parse(s()))}),di.addComponent({repoName:"@htmlbricks/hb-dropdown-simple",version:ci.version});function c(w,b){t.$$host.dispatchEvent(new CustomEvent(w,{detail:b}))}function d(){a=!a,c("navmenuswitch",{isOpen:a})}var u={get id(){return r()},set id(w=""){r(w),ue()},get noburger(){return i()},set noburger(w=void 0){i(w),ue()},get usermenu(){return s()},set usermenu(w=void 0){s(w),ue()},get companybrandname(){return l()},set companybrandname(w=""){l(w),ue()},get companylogouri(){return o()},set companylogouri(w=""){o(w),ue()},get switchopen(){return f()},set switchopen(w=void 0){f(w),ue()}},h=mi(),p=rn(h),F=R(p),z=R(F),Ye=R(z);{var He=w=>{var b=vi();b.__click=()=>d();var ge=R(b);Be(ge,t,"nav-switcher",{},Ue=>{var Ve=Gr("☰");_e(Ue,Ve)}),N(b),_e(w,b)};$t(Ye,w=>{i()||w(He)})}var Tt=ke(Ye,2);Tt.__click=()=>c("navbarSlotClick",{side:"left"});var yi=R(Tt);Be(yi,t,"left-slot",{},null),N(Tt),N(z),N(F),N(p);var kt=ke(p,2),Dn=R(kt),ot=R(Dn);ot.__click=()=>c("navbarSlotClick",{side:"center"});var bi=R(ot);Be(bi,t,"brand",{},w=>{var b=pi(),ge=rn(b);{var Ue=At=>{var Fn=_i();it(()=>Et(Fn,"src",o())),_e(At,Fn)};$t(ge,At=>{o()&&At(Ue)})}var Ve=ke(ge);it(()=>Xr(Ve,` ${l()??""}`)),_e(w,b)}),N(ot);var $i=ke(ot,2);Be($i,t,"center-slot",{},null),N(Dn),N(kt);var qn=ke(kt,2),Ln=R(qn),Mn=R(Ln),Pn=R(Mn);Be(Pn,t,"right-slot",{},w=>{});var Ei=ke(Pn,2);{var xi=w=>{var b=gi();ri(b,P(n)),it(()=>Sn(b,"list",JSON.stringify(s().list))),Sn(b,"position","right");var ge=R(b),Ue=R(ge);N(ge),N(b),it(()=>Et(Ue,"src",s().imgUri)),Vr("dropDownClick",b,Ve=>c("navbarDropDownClick",Ve.detail?.key)),_e(w,b)};$t(Ei,w=>{s()&&w(xi)})}return N(Mn),N(Ln),N(qn),_e(e,h),It(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)),St.Component=Rn,Object.defineProperty(St,Symbol.toStringTag,{value:"Module"})})(this.navbar=this.navbar||{});
|
|
2
|
+
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw l;return l!==me&&console.warn("Failed to hydrate: ",l),t.recover===!1&&rr(),mt(),kr(n),le(!1),kn(e,t)}finally{le(r),I(i)}}const Se=new Map;function An(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0}){mt();var o=new Set,f=d=>{for(var u=0;u<d.length;u++){var h=d[u];if(!o.has(h)){o.add(h);var p=Kr(h);t.addEventListener(h,je,{passive:p});var F=Se.get(h);F===void 0?(document.addEventListener(h,je,{passive:p}),Se.set(h,1)):Se.set(h,F+1)}}};f(Un(xn)),yt.add(f);var a=void 0,c=Rr(()=>{var d=n??t.appendChild(Q());return mr(d,{pending:()=>{}},u=>{if(s){jt({});var h=q;h.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!==Nt))throw Ke(),me;s&&It()}),()=>{for(var u of o){t.removeEventListener(u,je);var h=Se.get(u);--h===0?(document.removeEventListener(u,je),Se.delete(u)):Se.set(u,h)}yt.delete(f),d!==n&&d.parentNode?.removeChild(d)}});return bt.set(a,c),a}let bt=new WeakMap;function Qr(e,t){const n=bt.get(e);return n?(bt.delete(e),n(t)):Promise.resolve()}class ei{anchor;#t=new Map;#e=new Map;#n=new Map;#r=!0;constructor(t,n=!0){this.anchor=t,this.#r=n}#f=()=>{var t=y;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)Fr(r);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 o=this.#n.get(l);o&&(C(o.effect),this.#n.delete(l))}for(const[s,l]of this.#e){if(s===n)continue;const o=()=>{if(Array.from(this.#t.values()).includes(s)){var a=document.createDocumentFragment();vn(l,a),a.append(Q()),this.#n.set(s,{effect:l,fragment:a})}else C(l);this.#e.delete(s)};this.#r||!r?Le(l,o,!1):o()}}};#l=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=Ar();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(i){var s=document.createDocumentFragment(),l=Q();s.append(l),this.#n.set(t,{effect:te(()=>n(l)),fragment:s})}else this.#e.set(t,te(()=>n(this.anchor)));if(this.#t.set(r,t),i){for(const[o,f]of this.#e)o===t?r.skipped_effects.delete(f):r.skipped_effects.add(f);for(const[o,f]of this.#n)o===t?r.skipped_effects.delete(f.effect):r.skipped_effects.add(f.effect);r.oncommit(this.#f),r.ondiscard(this.#l)}else g&&(this.anchor=m),this.#f()}}function $t(e,t,n=!1){g&&Xe();var r=new ei(e),i=n?ye:0;function s(l,o){if(g){const a=ur(e)===ft;if(l===a){var f=Pt();I(f),r.anchor=f,le(!1),r.ensure(l,o),le(!0);return}}r.ensure(l,o)}fn(()=>{var l=!1;t((o,f=!0)=>{l=!0,s(f,o)}),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 Et(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 Sn(e,t,n){var r=v,i=_;let s=g;g&&le(!1),T(null),L(null);try{t!=="style"&&(xt.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:Et(e,t,n==null?n:String(n))}finally{T(r),L(i),s&&le(!0)}}function li(e){return e.__attributes??={[ii]:e.nodeName.includes("-"),[si]:e.namespaceURI===Bn}}var xt=new Map;function Cn(e){var t=e.getAttribute("is")||e.nodeName,n=xt.get(t);if(n)return n;xt.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=Rt(i)}return n}function Ce(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 f;f=()=>{var u=e[t];return u===void 0?l():(s=!0,u)};var a=!1,c=Gt(()=>(a=!1,f())),d=_;return(function(u,h){if(arguments.length>0){const p=h?P(c):u;return Z(c,p),a=!0,i!==void 0&&(i=p),u}return de&&a||(d.f&ie)!==0?c.v:P(c)})}function oi(e){return new fi(e)}class fi{#t;#e;constructor(t){var n=new Map,r=(s,l)=>{var o=xr(l,!1,!1);return n.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return P(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===Kn?!0:(P(n.get(l)??r(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,o){return Z(n.get(l)??r(l,o),o),Reflect.set(s,l,o)}});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)&&ue(),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),_e(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]=lt(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=oi({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=lt(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]=lt(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 lt(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(o=>(t[o].attribute||o).toLowerCase())}};return We(t).forEach(o=>{ze(l.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(f){f=lt(o,f,t),this.$$d[o]=f;var a=this.$$c;if(a){var c=we(a,o)?.get;c?a[o]=f:a.$set({[o]:f})}}})}),r.forEach(o=>{ze(l.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=l,l}const ci={version:"0.61.57"};var pe={},On;function hi(){if(On)return pe;On=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.LanguageTranslator=void 0,pe.getChildStyleToPass=e,pe.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(u){return Object.keys(r).includes(u.name)}))===null||l===void 0)&&l.length))for(var f=function(u){var h=i?.filter(function(p){return p.name===u&&p.defaultValue!==r[u]});h&&(o+="".concat(u,":").concat(r[u],";"))},a=0,c=Object.keys(r);a<c.length;a++){var d=c[a];f(d)}}catch(u){console.error("error getting child style to pass",u)}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 f=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(f+"-",""),"/").concat(l)}document.head.appendChild(o)}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,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 f="",a=r.getDefaultLang();if(!l||a!==l){var c=s?.[a];c?.[i]&&(f=c[i])}return f},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 pe.LanguageTranslator=n,pe}var di=hi(),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){jt(t,!0),ti(e,wi);xe({});let n=U(""),r=Ce(t,"id",7,""),i=Ce(t,"noburger",7,void 0),s=Ce(t,"usermenu",7,void 0),l=Ce(t,"companybrandname",7,""),o=Ce(t,"companylogouri",7,""),f=Ce(t,"switchopen",7,void 0),a;Nr(()=>{!f()||f()==="no"?(f("no"),a=!1):a=!0,typeof s()=="string"&&s(JSON.parse(s()))}),di.addComponent({repoName:"@htmlbricks/hb-dropdown-simple",version:ci.version});function c(w,b){t.$$host.dispatchEvent(new CustomEvent(w,{detail:b}))}function d(){a=!a,c("navmenuswitch",{isOpen:a})}var u={get id(){return r()},set id(w=""){r(w),ue()},get noburger(){return i()},set noburger(w=void 0){i(w),ue()},get usermenu(){return s()},set usermenu(w=void 0){s(w),ue()},get companybrandname(){return l()},set companybrandname(w=""){l(w),ue()},get companylogouri(){return o()},set companylogouri(w=""){o(w),ue()},get switchopen(){return f()},set switchopen(w=void 0){f(w),ue()}},h=mi(),p=rn(h),F=R(p),z=R(F),Ye=R(z);{var He=w=>{var b=vi();b.__click=()=>d();var ge=R(b);Be(ge,t,"nav-switcher",{},Ue=>{var Ve=Gr("☰");_e(Ue,Ve)}),N(b),_e(w,b)};$t(Ye,w=>{i()||w(He)})}var Tt=ke(Ye,2);Tt.__click=()=>c("navbarSlotClick",{side:"left"});var yi=R(Tt);Be(yi,t,"left-slot",{},null),N(Tt),N(z),N(F),N(p);var kt=ke(p,2),Dn=R(kt),ot=R(Dn);ot.__click=()=>c("navbarSlotClick",{side:"center"});var bi=R(ot);Be(bi,t,"brand",{},w=>{var b=pi(),ge=rn(b);{var Ue=At=>{var Fn=_i();it(()=>Et(Fn,"src",o())),_e(At,Fn)};$t(ge,At=>{o()&&At(Ue)})}var Ve=ke(ge);it(()=>Xr(Ve,` ${l()??""}`)),_e(w,b)}),N(ot);var $i=ke(ot,2);Be($i,t,"center-slot",{},null),N(Dn),N(kt);var qn=ke(kt,2),Ln=R(qn),Mn=R(Ln),Pn=R(Mn);Be(Pn,t,"right-slot",{},w=>{});var Ei=ke(Pn,2);{var xi=w=>{var b=gi();ri(b,P(n)),it(()=>Sn(b,"list",JSON.stringify(s().list))),Sn(b,"position","right");var ge=R(b),Ue=R(ge);N(ge),N(b),it(()=>Et(Ue,"src",s().imgUri)),Vr("dropDownClick",b,Ve=>c("navbarDropDownClick",Ve.detail?.key)),_e(w,b)};$t(Ei,w=>{s()&&w(xi)})}return N(Mn),N(Ln),N(qn),_e(e,h),It(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)),St.Component=Rn,Object.defineProperty(St,Symbol.toStringTag,{value:"Module"})})(this.navbar=this.navbar||{});
|
|
3
3
|
//# sourceMappingURL=main.iife.js.map
|
package/manifest.json
CHANGED