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