@htmlbricks/hb-sidebar-cards-navigator 0.66.6 → 0.66.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main.iife.js CHANGED
@@ -1,4 +1,5 @@
1
- (function(Bt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const vr=1,_r=2,zt=4,pr=8,gr=16,mr=1,wr=4,br=8,$r=16,yr=1,Er=2,Yt="[",_t="[!",qt="[?",pt="]",Ie={},C=Symbol(),Ut="http://www.w3.org/1999/xhtml",Tr=!1;var Vt=Array.isArray,Sr=Array.prototype.indexOf,Oe=Array.prototype.includes,Je=Array.from,Xe=Object.keys,Ze=Object.defineProperty,Te=Object.getOwnPropertyDescriptor,Ar=Object.getOwnPropertyDescriptors,Nr=Object.prototype,kr=Array.prototype,Gt=Object.getPrototypeOf,Kt=Object.isExtensible;const xr=()=>{};function Cr(e){for(var t=0;t<e.length;t++)e[t]()}function Wt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const x=2,Pe=4,Qe=8,Jt=1<<24,ce=16,X=32,he=64,gt=128,B=512,N=1024,I=2048,ne=4096,D=8192,z=16384,de=32768,Xt=1<<25,Me=65536,Zt=1<<17,Qt=1<<18,ve=1<<19,Rr=1<<20,re=1<<25,Se=65536,mt=1<<21,wt=1<<22,_e=1<<23,et=Symbol("$state"),en=Symbol("legacy props"),Ir=Symbol(""),fe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Or=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),bt=3,Le=8;function Pr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Mr(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Lr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Dr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Fr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function jr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Hr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Br(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function zr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Yr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function qr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ur(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function tt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Vr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let $=!1;function F(e){$=e}let T;function O(e){if(e===null)throw tt(),Ie;return T=e}function nt(){return O(q(T))}function rt(e){if($){if(q(T)!==null)throw tt(),Ie;T=e}}function tn(e=1){if($){for(var t=e,n=T;t--;)n=q(n);T=n}}function it(e=!0){for(var t=0,n=T;;){if(n.nodeType===Le){var r=n.data;if(r===pt){if(t===0)return n;t-=1}else(r===Yt||r===_t||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=q(n);e&&n.remove(),n=i}}function nn(e){if(!e||e.nodeType!==Le)throw tt(),Ie;return e.data}function rn(e){return e===this.v}function Gr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function sn(e){return!Gr(e,this.v)}let Kr=!1,Y=null;function De(e){Y=e}function ln(e,t=!1,n){Y={p:Y,i:!1,c:null,e:null,s:e,x:null,r:w,l:null}}function fn(e){var t=Y,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,Y=t.p,e??{}}function an(){return!0}let Ae=[];function on(){var e=Ae;Ae=[],Cr(e)}function pe(e){if(Ae.length===0&&!qe){var t=Ae;queueMicrotask(()=>{t===Ae&&on()})}Ae.push(e)}function Wr(){for(;Ae.length>0;)on()}function un(e){var t=w;if(t===null)return m.f|=_e,e;if((t.f&de)===0&&(t.f&Pe)===0)throw e;ge(e,t)}function ge(e,t){for(;t!==null;){if((t.f&gt)!==0){if((t.f&de)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const Jr=-7169;function A(e,t){e.f=e.f&Jr|t}function $t(e){(e.f&B)!==0||e.deps===null?A(e,N):A(e,ne)}function cn(e){if(e!==null)for(const t of e)(t.f&x)===0||(t.f&Se)===0||(t.f^=Se,cn(t.deps))}function hn(e,t,n){(e.f&I)!==0?t.add(e):(e.f&ne)!==0&&n.add(e),cn(e.deps),A(e,N)}let st=!1;function Xr(e){var t=st;try{return st=!1,[e(),st]}finally{st=t}}const me=new Set;let S=null,Z=null,yt=null,qe=!1,Et=!1,Fe=null,lt=null;var dn=0;let Zr=1;class ae{id=Zr++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=new Map;#i=new Map;#s=null;#r=[];#l=new Set;#f=new Set;#a=new Map;is_fork=!1;#c=!1;#o=new Set;#h(){return this.is_fork||this.#i.size>0}#v(){for(const r of this.#o)for(const i of r.#i.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#a.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#a.get(t);if(n){this.#a.delete(t);for(var r of n.d)A(r,I),this.schedule(r);for(r of n.m)A(r,ne),this.schedule(r)}}#d(){if(dn++>1e3&&(me.delete(this),Qr()),!this.#h()){for(const f of this.#l)this.#f.delete(f),A(f,I),this.schedule(f);for(const f of this.#f)A(f,ne),this.schedule(f)}const t=this.#r;this.#r=[],this.apply();var n=Fe=[],r=[],i=lt=[];for(const f of t)try{this.#u(f,n,r)}catch(a){throw mn(f),a}if(S=null,i.length>0){var s=ae.ensure();for(const f of i)s.schedule(f)}if(Fe=null,lt=null,this.#h()||this.#v()){this.#_(r),this.#_(n);for(const[f,a]of this.#a)gn(f,a)}else{this.#t.size===0&&me.delete(this),this.#l.clear(),this.#f.clear();for(const f of this.#e)f(this);this.#e.clear(),vn(r),vn(n),this.#s?.resolve()}var l=S;if(this.#r.length>0){const f=l??=this;f.#r.push(...this.#r.filter(a=>!f.#r.includes(a)))}l!==null&&(me.add(l),l.#d()),me.has(this)||this.#p()}#u(t,n,r){t.f^=N;for(var i=t.first;i!==null;){var s=i.f,l=(s&(X|he))!==0,f=l&&(s&N)!==0,a=f||(s&D)!==0||this.#a.has(i);if(!a&&i.fn!==null){l?i.f^=N:(s&Pe)!==0?n.push(i):Ve(i)&&((s&ce)!==0&&this.#f.add(i),Be(i));var o=i.first;if(o!==null){i=o;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#_(t){for(var n=0;n<t.length;n+=1)hn(t[n],this.#l,this.#f)}capture(t,n,r=!1){n!==C&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&_e)===0&&(this.current.set(t,[t.v,r]),Z?.set(t,t.v))}activate(){S=this}deactivate(){S=null,Z=null}flush(){try{Et=!0,S=this,this.#d()}finally{dn=0,yt=null,Fe=null,lt=null,Et=!1,S=null,Z=null,we.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),me.delete(this)}#p(){for(const o of me){var t=o.id<this.id,n=[];for(const[u,[_,d]]of this.current){if(o.current.has(u)){var r=o.current.get(u)[0];if(t&&_!==r)o.current.set(u,[_,d]);else continue}n.push(u)}var i=[...o.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&o.discard();else if(n.length>0){o.activate();var s=new Set,l=new Map;for(var f of n)_n(f,i,s,l);if(o.#r.length>0){o.apply();for(var a of o.#r)o.#u(a,[],[]);o.#r=[]}o.deactivate()}}for(const o of me)o.#o.has(this)&&(o.#o.delete(this),o.#o.size===0&&!o.#h()&&(o.activate(),o.#d()))}increment(t,n){let r=this.#t.get(n)??0;if(this.#t.set(n,r+1),t){let i=this.#i.get(n)??0;this.#i.set(n,i+1)}}decrement(t,n,r){let i=this.#t.get(n)??0;if(i===1?this.#t.delete(n):this.#t.set(n,i-1),t){let s=this.#i.get(n)??0;s===1?this.#i.delete(n):this.#i.set(n,s-1)}this.#c||r||(this.#c=!0,pe(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#l.add(r);for(const r of n)this.#f.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=Wt()).promise}static ensure(){if(S===null){const t=S=new ae;Et||(me.add(S),qe||pe(()=>{S===t&&t.flush()}))}return S}apply(){{Z=null;return}}schedule(t){if(yt=t,t.b?.is_pending&&(t.f&(Pe|Qe|Jt))!==0&&(t.f&de)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(Fe!==null&&n===w&&(m===null||(m.f&x)===0))return;if((r&(he|X))!==0){if((r&N)===0)return;n.f^=N}}this.#r.push(n)}}function Tt(e){var t=qe;qe=!0;try{for(var n;;){if(Wr(),S===null)return n;S.flush()}}finally{qe=t}}function Qr(){try{jr()}catch(e){ge(e,yt)}}let oe=null;function vn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(z|D))===0&&Ve(r)&&(oe=new Set,Be(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&jn(r),oe?.size>0)){we.clear();for(const i of oe){if((i.f&(z|D))!==0)continue;const s=[i];let l=i.parent;for(;l!==null;)oe.has(l)&&(oe.delete(l),s.push(l)),l=l.parent;for(let f=s.length-1;f>=0;f--){const a=s[f];(a.f&(z|D))===0&&Be(a)}}oe.clear()}}oe=null}}function _n(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&x)!==0?_n(i,t,n,r):(s&(wt|ce))!==0&&(s&I)===0&&pn(i,t,r)&&(A(i,I),St(i))}}function pn(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(Oe.call(t,i))return!0;if((i.f&x)!==0&&pn(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function St(e){S.schedule(e)}function gn(e,t){if(!((e.f&X)!==0&&(e.f&N)!==0)){(e.f&I)!==0?t.d.push(e):(e.f&ne)!==0&&t.m.push(e),A(e,N);for(var n=e.first;n!==null;)gn(n,t),n=n.next}}function mn(e){A(e,N);for(var t=e.first;t!==null;)mn(t),t=t.next}function ei(e){let t=0,n=Ne(0),r;return()=>{It()&&(E(n),Dn(()=>(t===0&&(r=Xn(()=>e(()=>Ue(n)))),t+=1,()=>{pe(()=>{t-=1,t===0&&(r?.(),r=void 0,Ue(n))})})))}}var ti=Me|ve;function ni(e,t,n,r){new ri(e,t,n,r)}class ri{parent;is_pending=!1;transform_error;#e;#n=$?T:null;#t;#i;#s;#r=null;#l=null;#f=null;#a=null;#c=0;#o=0;#h=!1;#v=new Set;#d=new Set;#u=null;#_=ei(()=>(this.#u=Ne(this.#c),()=>{this.#u=null}));constructor(t,n,r,i){this.#e=t,this.#t=n,this.#i=s=>{var l=w;l.b=this,l.f|=gt,r(s)},this.parent=w.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#s=ot(()=>{if($){const s=this.#n;nt();const l=s.data===_t;if(s.data.startsWith(qt)){const a=JSON.parse(s.data.slice(qt.length));this.#$(a)}else l?this.#y():this.#p()}else this.#w()},ti),$&&(this.#e=T)}#p(){try{this.#r=U(()=>this.#i(this.#e))}catch(t){this.error(t)}}#$(t){const n=this.#t.failed;n&&(this.#f=U(()=>{n(this.#e,()=>t,()=>()=>{})}))}#y(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#l=U(()=>t(this.#e)),pe(()=>{var n=this.#a=document.createDocumentFragment(),r=ee();n.append(r),this.#r=this.#m(()=>U(()=>this.#i(r))),this.#o===0&&(this.#e.before(n),this.#a=null,ke(this.#l,()=>{this.#l=null}),this.#g(S))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#o=0,this.#c=0,this.#r=U(()=>{this.#i(this.#e)}),this.#o>0){var t=this.#a=document.createDocumentFragment();Lt(this.#r,t);const n=this.#t.pending;this.#l=U(()=>n(this.#e))}else this.#g(S)}catch(n){this.error(n)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#d)}defer_effect(t){hn(t,this.#v,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var n=w,r=m,i=Y;V(this.#s),M(this.#s),De(this.#s.ctx);try{return ae.ensure(),t()}catch(s){return un(s),null}finally{V(n),M(r),De(i)}}#b(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(t,n);return}this.#o+=t,this.#o===0&&(this.#g(n),this.#l&&ke(this.#l,()=>{this.#l=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,n){this.#b(t,n),this.#c+=t,!(!this.#u||this.#h)&&(this.#h=!0,pe(()=>{this.#h=!1,this.#u&&je(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),E(this.#u)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#r&&(P(this.#r),this.#r=null),this.#l&&(P(this.#l),this.#l=null),this.#f&&(P(this.#f),this.#f=null),$&&(O(this.#n),tn(),O(it()));var i=!1,s=!1;const l=()=>{if(i){Vr();return}i=!0,s&&Ur(),this.#f!==null&&ke(this.#f,()=>{this.#f=null}),this.#m(()=>{this.#w()})},f=a=>{try{s=!0,n?.(a,l),s=!1}catch(o){ge(o,this.#s&&this.#s.parent)}r&&(this.#f=this.#m(()=>{try{return U(()=>{var o=w;o.b=this,o.f|=gt,r(this.#e,()=>a,()=>l)})}catch(o){return ge(o,this.#s.parent),null}}))};pe(()=>{var a;try{a=this.transform_error(t)}catch(o){ge(o,this.#s&&this.#s.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(f,o=>ge(o,this.#s&&this.#s.parent)):f(a)})}}function ii(e,t,n,r){const i=at;var s=e.filter(d=>!d.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var l=w,f=si(),a=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(d=>d.promise)):null;function o(d){f();try{r(d)}catch(c){(l.f&z)===0&&ge(c,l)}ft()}if(n.length===0){a.then(()=>o(t.map(i)));return}var u=wn();function _(){Promise.all(n.map(d=>li(d))).then(d=>o([...t.map(i),...d])).catch(d=>ge(d,l)).finally(()=>u())}a?a.then(()=>{f(),_(),ft()}):_()}function si(){var e=w,t=m,n=Y,r=S;return function(s=!0){V(e),M(t),De(n),s&&(e.f&z)===0&&(r?.activate(),r?.apply())}}function ft(e=!0){V(null),M(null),De(null),e&&S?.deactivate()}function wn(){var e=w,t=e.b,n=S,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function at(e){var t=x|I,n=m!==null&&(m.f&x)!==0?m:null;return w!==null&&(w.f|=ve),{ctx:Y,deps:null,effects:null,equals:rn,f:t,fn:e,reactions:null,rv:0,v:C,wv:0,parent:n??w,ac:null}}function li(e,t,n){let r=w;r===null&&Pr();var i=void 0,s=Ne(C),l=!m,f=new Map;return mi(()=>{var a=w,o=Wt();i=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).finally(ft)}catch(c){o.reject(c),ft()}var u=S;if(l){if((a.f&de)!==0)var _=wn();if(r.b.is_rendered())f.get(u)?.reject(fe),f.delete(u);else{for(const c of f.values())c.reject(fe);f.clear()}f.set(u,o)}const d=(c,v=void 0)=>{if(_){var p=v===fe;_(p)}if(!(v===fe||(a.f&z)!==0)){if(u.activate(),v)s.f|=_e,je(s,v);else{(s.f&_e)!==0&&(s.f^=_e),je(s,c);for(const[h,g]of f){if(f.delete(h),h===u)break;g.reject(fe)}}u.deactivate()}};o.promise.then(d,c=>d(null,c||"unknown"))}),Mn(()=>{for(const a of f.values())a.reject(fe)}),new Promise(a=>{function o(u){function _(){u===i?a(s):o(i)}u.then(_,_)}o(i)})}function fi(e){const t=at(e);return Yn(t),t}function bn(e){const t=at(e);return t.equals=sn,t}function ai(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)P(t[n])}}function oi(e){for(var t=e.parent;t!==null;){if((t.f&x)===0)return(t.f&z)===0?t:null;t=t.parent}return null}function At(e){var t,n=w;V(oi(e));try{e.f&=~Se,ai(e),t=Kn(e)}finally{V(n)}return t}function $n(e){var t=e.v,n=At(e);if(!e.equals(n)&&(e.wv=Vn(),(!S?.is_fork||e.deps===null)&&(e.v=n,S?.capture(e,t,!0),e.deps===null))){A(e,N);return}$e||(Z!==null?(It()||S?.is_fork)&&Z.set(e,n):$t(e))}function ui(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(fe),t.teardown=xr,t.ac=null,Ge(t,0),Pt(t))}function yn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Be(t)}let Nt=new Set;const we=new Map;let En=!1;function Ne(e,t){var n={f:0,v:e,reactions:null,equals:rn,rv:0,wv:0};return n}function ue(e,t){const n=Ne(e);return Yn(n),n}function Tn(e,t=!1,n=!0){const r=Ne(e);return t||(r.equals=sn),r}function Q(e,t,n=!1){m!==null&&(!te||(m.f&Zt)!==0)&&an()&&(m.f&(x|ce|wt|Zt))!==0&&(G===null||!Oe.call(G,e))&&qr();let r=n?He(t):t;return je(e,r,lt)}function je(e,t,n=null){if(!e.equals(t)){var r=e.v;$e?we.set(e,t):we.set(e,r),e.v=t;var i=ae.ensure();if(i.capture(e,r),(e.f&x)!==0){const s=e;(e.f&I)!==0&&At(s),Z===null&&$t(s)}e.wv=Vn(),Sn(e,I,n),w!==null&&(w.f&N)!==0&&(w.f&(X|he))===0&&(K===null?$i([e]):K.push(e)),!i.is_fork&&Nt.size>0&&!En&&ci()}return t}function ci(){En=!1;for(const e of Nt)(e.f&N)!==0&&A(e,ne),Ve(e)&&Be(e);Nt.clear()}function Ue(e){Q(e,e.v+1)}function Sn(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var l=r[s],f=l.f,a=(f&I)===0;if(a&&A(l,t),(f&x)!==0){var o=l;Z?.delete(o),(f&Se)===0&&(f&B&&(l.f|=Se),Sn(o,ne,n))}else if(a){var u=l;(f&ce)!==0&&oe!==null&&oe.add(u),n!==null?n.push(u):St(u)}}}function He(e){if(typeof e!="object"||e===null||et in e)return e;const t=Gt(e);if(t!==Nr&&t!==kr)return e;var n=new Map,r=Vt(e),i=ue(0),s=Ce,l=f=>{if(Ce===s)return f();var a=m,o=Ce;M(null),Un(s);var u=f();return M(a),Un(o),u};return r&&n.set("length",ue(e.length)),new Proxy(e,{defineProperty(f,a,o){(!("value"in o)||o.configurable===!1||o.enumerable===!1||o.writable===!1)&&zr();var u=n.get(a);return u===void 0?l(()=>{var _=ue(o.value);return n.set(a,_),_}):Q(u,o.value,!0),!0},deleteProperty(f,a){var o=n.get(a);if(o===void 0){if(a in f){const u=l(()=>ue(C));n.set(a,u),Ue(i)}}else Q(o,C),Ue(i);return!0},get(f,a,o){if(a===et)return e;var u=n.get(a),_=a in f;if(u===void 0&&(!_||Te(f,a)?.writable)&&(u=l(()=>{var c=He(_?f[a]:C),v=ue(c);return v}),n.set(a,u)),u!==void 0){var d=E(u);return d===C?void 0:d}return Reflect.get(f,a,o)},getOwnPropertyDescriptor(f,a){var o=Reflect.getOwnPropertyDescriptor(f,a);if(o&&"value"in o){var u=n.get(a);u&&(o.value=E(u))}else if(o===void 0){var _=n.get(a),d=_?.v;if(_!==void 0&&d!==C)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return o},has(f,a){if(a===et)return!0;var o=n.get(a),u=o!==void 0&&o.v!==C||Reflect.has(f,a);if(o!==void 0||w!==null&&(!u||Te(f,a)?.writable)){o===void 0&&(o=l(()=>{var d=u?He(f[a]):C,c=ue(d);return c}),n.set(a,o));var _=E(o);if(_===C)return!1}return u},set(f,a,o,u){var _=n.get(a),d=a in f;if(r&&a==="length")for(var c=o;c<_.v;c+=1){var v=n.get(c+"");v!==void 0?Q(v,C):c in f&&(v=l(()=>ue(C)),n.set(c+"",v))}if(_===void 0)(!d||Te(f,a)?.writable)&&(_=l(()=>ue(void 0)),Q(_,He(o)),n.set(a,_));else{d=_.v!==C;var p=l(()=>He(o));Q(_,p)}var h=Reflect.getOwnPropertyDescriptor(f,a);if(h?.set&&h.set.call(u,o),!d){if(r&&typeof a=="string"){var g=n.get("length"),y=Number(a);Number.isInteger(y)&&y>=g.v&&Q(g,y+1)}Ue(i)}return!0},ownKeys(f){E(i);var a=Reflect.ownKeys(f).filter(_=>{var d=n.get(_);return d===void 0||d.v!==C});for(var[o,u]of n)u.v!==C&&!(o in f)&&a.push(o);return a},setPrototypeOf(){Yr()}})}var An,Nn,kn,xn;function kt(){if(An===void 0){An=window,Nn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;kn=Te(t,"firstChild").get,xn=Te(t,"nextSibling").get,Kt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Kt(n)&&(n.__t=void 0)}}function ee(e=""){return document.createTextNode(e)}function be(e){return kn.call(e)}function q(e){return xn.call(e)}function xt(e,t){if(!$)return be(e);var n=be(T);return n===null&&(n=T.appendChild(ee())),O(n),n}function Cn(e,t=!1){if(!$){var n=be(e);return n instanceof Comment&&n.data===""?q(n):n}if(t){if(T?.nodeType!==bt){var r=ee();return T?.before(r),O(r),r}Pn(T)}return T}function Rn(e,t=1,n=!1){let r=$?T:e;for(var i;t--;)i=r,r=q(r);if(!$)return r;if(n){if(r?.nodeType!==bt){var s=ee();return r===null?i?.after(s):r.before(s),O(s),s}Pn(r)}return O(r),r}function In(e){e.textContent=""}function On(){return!1}function Ct(e,t,n){return document.createElementNS(Ut,e,void 0)}function Pn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===bt;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Rt(e){var t=m,n=w;M(null),V(null);try{return e()}finally{M(t),V(n)}}function hi(e){w===null&&(m===null&&Fr(),Dr()),$e&&Lr()}function di(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ie(e,t){var n=w;n!==null&&(n.f&D)!==0&&(e|=D);var r={ctx:Y,deps:null,nodes:null,f:e|I|B,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&Pe)!==0)Fe!==null?Fe.push(r):ae.ensure().schedule(r);else if(t!==null){try{Be(r)}catch(l){throw P(r),l}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&ve)===0&&(i=i.first,(e&ce)!==0&&(e&Me)!==0&&i!==null&&(i.f|=Me))}if(i!==null&&(i.parent=n,n!==null&&di(i,n),m!==null&&(m.f&x)!==0&&(e&he)===0)){var s=m;(s.effects??=[]).push(i)}return r}function It(){return m!==null&&!te}function Mn(e){const t=ie(Qe,null);return A(t,N),t.teardown=e,t}function vi(e){hi();var t=w.f,n=!m&&(t&X)!==0&&(t&de)===0;if(n){var r=Y;(r.e??=[]).push(e)}else return Ln(e)}function Ln(e){return ie(Pe|Rr,e)}function _i(e){ae.ensure();const t=ie(he|ve,e);return()=>{P(t)}}function pi(e){ae.ensure();const t=ie(he|ve,e);return(n={})=>new Promise(r=>{n.outro?ke(t,()=>{P(t),r(void 0)}):(P(t),r(void 0))})}function gi(e){return ie(Pe,e)}function mi(e){return ie(wt|ve,e)}function Dn(e,t=0){return ie(Qe|t,e)}function Ot(e,t=[],n=[],r=[]){ii(r,t,n,i=>{ie(Qe,()=>e(...i.map(E)))})}function ot(e,t=0){var n=ie(ce|t,e);return n}function U(e){return ie(X|ve,e)}function Fn(e){var t=e.teardown;if(t!==null){const n=$e,r=m;zn(!0),M(null);try{t.call(null)}finally{zn(n),M(r)}}}function Pt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Rt(()=>{i.abort(fe)});var r=n.next;(n.f&he)!==0?n.parent=null:P(n,t),n=r}}function wi(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&X)===0&&P(t),t=n}}function P(e,t=!0){var n=!1;(t||(e.f&Qt)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(bi(e.nodes.start,e.nodes.end),n=!0),A(e,Xt),Pt(e,t&&!n),Ge(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();Fn(e),e.f^=Xt,e.f|=z;var i=e.parent;i!==null&&i.first!==null&&jn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function bi(e,t){for(;e!==null;){var n=e===t?null:q(e);e.remove(),e=n}}function jn(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 ke(e,t,n=!0){var r=[];Hn(e,r,!0);var i=()=>{n&&P(e),t&&t()},s=r.length;if(s>0){var l=()=>--s||i();for(var f of r)f.out(l)}else i()}function Hn(e,t,n){if((e.f&D)===0){e.f^=D;var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)(f.is_global||n)&&t.push(f);for(var i=e.first;i!==null;){var s=i.next,l=(i.f&Me)!==0||(i.f&X)!==0&&(e.f&ce)!==0;Hn(i,t,l?n:!1),i=s}}}function Mt(e){Bn(e,!0)}function Bn(e,t){if((e.f&D)!==0){e.f^=D,(e.f&N)===0&&(A(e,I),ae.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Me)!==0||(n.f&X)!==0;Bn(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const l of s)(l.is_global||t)&&l.in()}}function Lt(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:q(n);t.append(n),n=i}}let ut=!1,$e=!1;function zn(e){$e=e}let m=null,te=!1;function M(e){m=e}let w=null;function V(e){w=e}let G=null;function Yn(e){m!==null&&(G===null?G=[e]:G.push(e))}let L=null,j=0,K=null;function $i(e){K=e}let qn=1,xe=0,Ce=xe;function Un(e){Ce=e}function Vn(){return++qn}function Ve(e){var t=e.f;if((t&I)!==0)return!0;if(t&x&&(e.f&=~Se),(t&ne)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Ve(s)&&$n(s),s.wv>e.wv)return!0}(t&B)!==0&&Z===null&&A(e,N)}return!1}function Gn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(G!==null&&Oe.call(G,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&x)!==0?Gn(s,t,!1):t===s&&(n?A(s,I):(s.f&N)!==0&&A(s,ne),St(s))}}function Kn(e){var t=L,n=j,r=K,i=m,s=G,l=Y,f=te,a=Ce,o=e.f;L=null,j=0,K=null,m=(o&(X|he))===0?e:null,G=null,De(e.ctx),te=!1,Ce=++xe,e.ac!==null&&(Rt(()=>{e.ac.abort(fe)}),e.ac=null);try{e.f|=mt;var u=e.fn,_=u();e.f|=de;var d=e.deps,c=S?.is_fork;if(L!==null){var v;if(c||Ge(e,j),d!==null&&j>0)for(d.length=j+L.length,v=0;v<L.length;v++)d[j+v]=L[v];else e.deps=d=L;if(It()&&(e.f&B)!==0)for(v=j;v<d.length;v++)(d[v].reactions??=[]).push(e)}else!c&&d!==null&&j<d.length&&(Ge(e,j),d.length=j);if(an()&&K!==null&&!te&&d!==null&&(e.f&(x|ne|I))===0)for(v=0;v<K.length;v++)Gn(K[v],e);if(i!==null&&i!==e){if(xe++,i.deps!==null)for(let p=0;p<n;p+=1)i.deps[p].rv=xe;if(t!==null)for(const p of t)p.rv=xe;K!==null&&(r===null?r=K:r.push(...K))}return(e.f&_e)!==0&&(e.f^=_e),_}catch(p){return un(p)}finally{e.f^=mt,L=t,j=n,K=r,m=i,G=s,De(l),te=f,Ce=a}}function yi(e,t){let n=t.reactions;if(n!==null){var r=Sr.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&x)!==0&&(L===null||!Oe.call(L,t))){var s=t;(s.f&B)!==0&&(s.f^=B,s.f&=~Se),$t(s),ui(s),Ge(s,0)}}function Ge(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)yi(e,n[r])}function Be(e){var t=e.f;if((t&z)===0){A(e,N);var n=w,r=ut;w=e,ut=!0;try{(t&(ce|Jt))!==0?wi(e):Pt(e),Fn(e);var i=Kn(e);e.teardown=typeof i=="function"?i:null,e.wv=qn;var s;Tr&&Kr&&(e.f&I)!==0&&e.deps}finally{ut=r,w=n}}}function E(e){var t=e.f,n=(t&x)!==0;if(m!==null&&!te){var r=w!==null&&(w.f&z)!==0;if(!r&&(G===null||!Oe.call(G,e))){var i=m.deps;if((m.f&mt)!==0)e.rv<xe&&(e.rv=xe,L===null&&i!==null&&i[j]===e?j++:L===null?L=[e]:L.push(e));else{(m.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[m]:Oe.call(s,m)||s.push(m)}}}if($e&&we.has(e))return we.get(e);if(n){var l=e;if($e){var f=l.v;return((l.f&N)===0&&l.reactions!==null||Jn(l))&&(f=At(l)),we.set(l,f),f}var a=(l.f&B)===0&&!te&&m!==null&&(ut||(m.f&B)!==0),o=(l.f&de)===0;Ve(l)&&(a&&(l.f|=B),$n(l)),a&&!o&&(yn(l),Wn(l))}if(Z?.has(e))return Z.get(e);if((e.f&_e)!==0)throw e.v;return e.v}function Wn(e){if(e.f|=B,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&x)!==0&&(t.f&B)===0&&(yn(t),Wn(t))}function Jn(e){if(e.v===C)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(we.has(t)||(t.f&x)!==0&&Jn(t))return!0;return!1}function Xn(e){var t=te;try{return te=!0,e()}finally{te=t}}const ct=Symbol("events"),Ei=new Set,Zn=new Set;function Ti(e,t,n,r={}){function i(s){if(r.capture||Dt.call(t,s),!s.cancelBubble)return Rt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?pe(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Qn(e,t,n,r,i){var s={capture:r,passive:i},l=Ti(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Mn(()=>{t.removeEventListener(e,l,s)})}let er=null;function Dt(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;er=e;var l=0,f=er===e&&e[ct];if(f){var a=i.indexOf(f);if(a!==-1&&(t===document||t===window)){e[ct]=t;return}var o=i.indexOf(t);if(o===-1)return;a<=o&&(l=a)}if(s=i[l]||e.target,s!==t){Ze(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=m,_=w;M(null),V(null);try{for(var d,c=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var p=s[ct]?.[r];p!=null&&(!s.disabled||e.target===s)&&p.call(s,e)}catch(h){d?c.push(h):d=h}if(e.cancelBubble||v===t||v===null)break;s=v}if(d){for(let h of c)queueMicrotask(()=>{throw h});throw d}}finally{e[ct]=t,delete e.currentTarget,M(u),V(_)}}}const Si=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Ai(e){return Si?.createHTML(e)??e}function Ni(e){var t=Ct("template");return t.innerHTML=Ai(e.replaceAll("<!>","<!---->")),t.content}function ht(e,t){var n=w;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function ze(e,t){var n=(t&yr)!==0,r=(t&Er)!==0,i,s=!e.startsWith("<!>");return()=>{if($)return ht(T,null),T;i===void 0&&(i=Ni(s?e:"<!>"+e),n||(i=be(i)));var l=r||Nn?document.importNode(i,!0):i.cloneNode(!0);if(n){var f=be(l),a=l.lastChild;ht(f,a)}else ht(l,l);return l}}function Re(e,t){if($){var n=w;((n.f&de)===0||n.nodes.end===null)&&(n.nodes.end=T),nt();return}e!==null&&e.before(t)}const ki=["touchstart","touchmove"];function xi(e){return ki.includes(e)}function tr(e,t){return nr(e,t)}function Ci(e,t){kt(),t.intro=t.intro??!1;const n=t.target,r=$,i=T;try{for(var s=be(n);s&&(s.nodeType!==Le||s.data!==Yt);)s=q(s);if(!s)throw Ie;F(!0),O(s);const l=nr(e,{...t,anchor:s});return F(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(f=>f.startsWith("https://svelte.dev/e/")))throw l;return l!==Ie&&console.warn("Failed to hydrate: ",l),t.recover===!1&&Hr(),kt(),In(n),F(!1),tr(e,t)}finally{F(r),O(i)}}const dt=new Map;function nr(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:l=!0,transformError:f}){kt();var a=void 0,o=pi(()=>{var u=n??t.appendChild(ee());ni(u,{pending:()=>{}},c=>{ln({});var v=Y;if(s&&(v.c=s),i&&(r.$$events=i),$&&ht(c,null),a=e(c,r)||{},$&&(w.nodes.end=T,T===null||T.nodeType!==Le||T.data!==pt))throw tt(),Ie;fn()},f);var _=new Set,d=c=>{for(var v=0;v<c.length;v++){var p=c[v];if(!_.has(p)){_.add(p);var h=xi(p);for(const b of[t,document]){var g=dt.get(b);g===void 0&&(g=new Map,dt.set(b,g));var y=g.get(p);y===void 0?(b.addEventListener(p,Dt,{passive:h}),g.set(p,1)):g.set(p,y+1)}}}};return d(Je(Ei)),Zn.add(d),()=>{for(var c of _)for(const h of[t,document]){var v=dt.get(h),p=v.get(c);--p==0?(h.removeEventListener(c,Dt),v.delete(c),v.size===0&&dt.delete(h)):v.set(c,p)}Zn.delete(d),u!==n&&u.parentNode?.removeChild(u)}});return Ft.set(a,o),a}let Ft=new WeakMap;function Ri(e,t){const n=Ft.get(e);return n?(Ft.delete(e),n(t)):Promise.resolve()}class Ii{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#n.get(n);if(r)Mt(r),this.#i.delete(n);else{var i=this.#t.get(n);i&&(this.#n.set(n,i.effect),this.#t.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,l]of this.#e){if(this.#e.delete(s),s===t)break;const f=this.#t.get(l);f&&(P(f.effect),this.#t.delete(l))}for(const[s,l]of this.#n){if(s===n||this.#i.has(s))continue;const f=()=>{if(Array.from(this.#e.values()).includes(s)){var o=document.createDocumentFragment();Lt(l,o),o.append(ee()),this.#t.set(s,{effect:l,fragment:o})}else P(l);this.#i.delete(s),this.#n.delete(s)};this.#s||!r?(this.#i.add(s),ke(l,f,!1)):f()}}};#l=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,i]of this.#t)n.includes(r)||(P(i.effect),this.#t.delete(r))};ensure(t,n){var r=S,i=On();if(n&&!this.#n.has(t)&&!this.#t.has(t))if(i){var s=document.createDocumentFragment(),l=ee();s.append(l),this.#t.set(t,{effect:U(()=>n(l)),fragment:s})}else this.#n.set(t,U(()=>n(this.anchor)));if(this.#e.set(r,t),i){for(const[f,a]of this.#n)f===t?r.unskip_effect(a):r.skip_effect(a);for(const[f,a]of this.#t)f===t?r.unskip_effect(a.effect):r.skip_effect(a.effect);r.oncommit(this.#r),r.ondiscard(this.#l)}else $&&(this.anchor=T),this.#r(r)}}function rr(e,t,n=!1){var r;$&&(r=T,nt());var i=new Ii(e),s=n?Me:0;function l(f,a){if($){var o=nn(r);if(f!==parseInt(o.substring(1))){var u=it();O(u),i.anchor=u,F(!1),i.ensure(f,a),F(!0);return}}i.ensure(f,a)}ot(()=>{var f=!1;t((a,o=0)=>{f=!0,l(o,a)}),f||l(-1,null)},s)}function Oi(e,t,n){for(var r=[],i=t.length,s,l=t.length,f=0;f<i;f++){let _=t[f];ke(_,()=>{if(s){if(s.pending.delete(_),s.done.add(_),s.pending.size===0){var d=e.outrogroups;jt(e,Je(s.done)),d.delete(s),d.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var a=r.length===0&&n!==null;if(a){var o=n,u=o.parentNode;In(u),u.append(o),e.items.clear()}jt(e,t,!a)}else s={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(s)}function jt(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const l of e.pending.values())for(const f of l)r.add(e.items.get(f).e)}for(var i=0;i<t.length;i++){var s=t[i];if(r?.has(s)){s.f|=re;const l=document.createDocumentFragment();Lt(s,l)}else P(t[i],n)}}var ir;function sr(e,t,n,r,i,s=null){var l=e,f=new Map,a=(t&zt)!==0;if(a){var o=e;l=$?O(be(o)):o.appendChild(ee())}$&&nt();var u=null,_=bn(()=>{var b=n();return Vt(b)?b:b==null?[]:Je(b)}),d,c=new Map,v=!0;function p(b){(y.effect.f&z)===0&&(y.pending.delete(b),y.fallback=u,Pi(y,d,l,t,r),u!==null&&(d.length===0?(u.f&re)===0?Mt(u):(u.f^=re,We(u,null,l)):ke(u,()=>{u=null})))}function h(b){y.pending.delete(b)}var g=ot(()=>{d=E(_);var b=d.length;let k=!1;if($){var Ye=nn(l)===_t;Ye!==(b===0)&&(l=it(),O(l),F(!1),k=!0)}for(var se=new Set,R=S,le=On(),W=0;W<b;W+=1){$&&T.nodeType===Le&&T.data===pt&&(l=T,k=!0,F(!1));var H=d[W],Ee=r(H,W),J=v?null:f.get(Ee);J?(J.v&&je(J.v,H),J.i&&je(J.i,W),le&&R.unskip_effect(J.e)):(J=Mi(f,v?l:ir??=ee(),H,Ee,W,i,t,n),v||(J.e.f|=re),f.set(Ee,J)),se.add(Ee)}if(b===0&&s&&!u&&(v?u=U(()=>s(l)):(u=U(()=>s(ir??=ee())),u.f|=re)),b>se.size&&Mr(),$&&b>0&&O(it()),!v)if(c.set(R,se),le){for(const[dr,is]of f)se.has(dr)||R.skip_effect(is.e);R.oncommit(p),R.ondiscard(h)}else p(R);k&&F(!0),E(_)}),y={effect:g,items:f,pending:c,outrogroups:null,fallback:u};v=!1,$&&(l=T)}function Ke(e){for(;e!==null&&(e.f&X)===0;)e=e.next;return e}function Pi(e,t,n,r,i){var s=(r&pr)!==0,l=t.length,f=e.items,a=Ke(e.effect.first),o,u=null,_,d=[],c=[],v,p,h,g;if(s)for(g=0;g<l;g+=1)v=t[g],p=i(v,g),h=f.get(p).e,(h.f&re)===0&&(h.nodes?.a?.measure(),(_??=new Set).add(h));for(g=0;g<l;g+=1){if(v=t[g],p=i(v,g),h=f.get(p).e,e.outrogroups!==null)for(const H of e.outrogroups)H.pending.delete(h),H.done.delete(h);if((h.f&D)!==0&&(Mt(h),s&&(h.nodes?.a?.unfix(),(_??=new Set).delete(h))),(h.f&re)!==0)if(h.f^=re,h===a)We(h,null,n);else{var y=u?u.next:a;h===e.effect.last&&(e.effect.last=h.prev),h.prev&&(h.prev.next=h.next),h.next&&(h.next.prev=h.prev),ye(e,u,h),ye(e,h,y),We(h,y,n),u=h,d=[],c=[],a=Ke(u.next);continue}if(h!==a){if(o!==void 0&&o.has(h)){if(d.length<c.length){var b=c[0],k;u=b.prev;var Ye=d[0],se=d[d.length-1];for(k=0;k<d.length;k+=1)We(d[k],b,n);for(k=0;k<c.length;k+=1)o.delete(c[k]);ye(e,Ye.prev,se.next),ye(e,u,Ye),ye(e,se,b),a=b,u=se,g-=1,d=[],c=[]}else o.delete(h),We(h,a,n),ye(e,h.prev,h.next),ye(e,h,u===null?e.effect.first:u.next),ye(e,u,h),u=h;continue}for(d=[],c=[];a!==null&&a!==h;)(o??=new Set).add(a),c.push(a),a=Ke(a.next);if(a===null)continue}(h.f&re)===0&&d.push(h),u=h,a=Ke(h.next)}if(e.outrogroups!==null){for(const H of e.outrogroups)H.pending.size===0&&(jt(e,Je(H.done)),e.outrogroups?.delete(H));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||o!==void 0){var R=[];if(o!==void 0)for(h of o)(h.f&D)===0&&R.push(h);for(;a!==null;)(a.f&D)===0&&a!==e.fallback&&R.push(a),a=Ke(a.next);var le=R.length;if(le>0){var W=(r&zt)!==0&&l===0?n:null;if(s){for(g=0;g<le;g+=1)R[g].nodes?.a?.measure();for(g=0;g<le;g+=1)R[g].nodes?.a?.fix()}Oi(e,R,W)}}s&&pe(()=>{if(_!==void 0)for(h of _)h.nodes?.a?.apply()})}function Mi(e,t,n,r,i,s,l,f){var a=(l&vr)!==0?(l&gr)===0?Tn(n,!1,!1):Ne(n):null,o=(l&_r)!==0?Ne(i):null;return{v:a,i:o,e:U(()=>(s(t,a??n,o??i,f),()=>{e.delete(r)}))}}function We(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&(t.f&re)===0?t.nodes.start:n;r!==null;){var l=q(r);if(s.before(r),r===i)return;r=l}}function ye(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Li(e,t){let n=null,r=$;var i;if($){n=T;for(var s=be(document.head);s!==null&&(s.nodeType!==Le||s.data!==e);)s=q(s);if(s===null)F(!1);else{var l=q(s);s.remove(),O(l)}}$||(i=document.head.appendChild(ee()));try{ot(()=>t(i),Qt|ve)}finally{r&&(F(!0),O(n))}}function Di(e,t){gi(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=Ct("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function Fi(e,t,n){var r=e==null?"":""+e;return r===""?null:r}function ji(e,t){return e==null?null:String(e)}function Hi(e,t,n,r,i,s){var l=e.__className;if($||l!==n||l===void 0){var f=Fi(n);(!$||f!==e.getAttribute("class"))&&(f==null?e.removeAttribute("class"):e.className=f),e.__className=n}return s}function Bi(e,t,n,r){var i=e.__style;if($||i!==t){var s=ji(t);(!$||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const zi=Symbol("is custom element"),Yi=Symbol("is html"),qi=Or?"link":"LINK";function Ui(e,t,n,r){var i=Vi(e);$&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===qi)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Ir]=n),n==null?e.removeAttribute(t):typeof n!="string"&&fr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function lr(e,t,n){var r=m,i=w;let s=$;$&&F(!1),M(null),V(null);try{t!=="style"&&(Ht.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?fr(e).includes(t):n&&typeof n=="object")?e[t]=n:Ui(e,t,n==null?n:String(n))}finally{M(r),V(i),s&&F(!0)}}function Vi(e){return e.__attributes??={[zi]:e.nodeName.includes("-"),[Yi]:e.namespaceURI===Ut}}var Ht=new Map;function fr(e){var t=e.getAttribute("is")||e.nodeName,n=Ht.get(t);if(n)return n;Ht.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Ar(i);for(var l in r)r[l].set&&n.push(l);i=Gt(i)}return n}function ar(e,t,n,r){var i=(n&br)!==0,s=(n&$r)!==0,l=r,f=!0,a=()=>(f&&(f=!1,l=s?Xn(r):r),l);let o;if(i){var u=et in e||en in e;o=Te(e,t)?.set??(u&&t in e?y=>e[t]=y:void 0)}var _,d=!1;i?[_,d]=Xr(()=>e[t]):_=e[t],_===void 0&&r!==void 0&&(_=a(),o&&(Br(),o(_)));var c;if(c=()=>{var y=e[t];return y===void 0?a():(f=!0,y)},(n&wr)===0)return c;if(o){var v=e.$$legacy;return(function(y,b){return arguments.length>0?((!b||v||d)&&o(b?c():y),y):c()})}var p=!1,h=((n&mr)!==0?at:bn)(()=>(p=!1,c()));i&&E(h);var g=w;return(function(y,b){if(arguments.length>0){const k=b?E(h):i?He(y):y;return Q(h,k),p=!0,l!==void 0&&(l=k),y}return $e&&p||(g.f&z)!==0?h.v:E(h)})}function Gi(e){return new Ki(e)}class Ki{#e;#n;constructor(t){var n=new Map,r=(s,l)=>{var f=Tn(l,!1,!1);return n.set(s,f),f};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return E(n.get(l)??r(l,Reflect.get(s,l)))},has(s,l){return l===en?!0:(E(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.#n=(t.hydrate?Ci:tr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Tt(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||Ze(this,s,{get(){return this.#n[s]},set(l){this.#n[s]=l},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{Ri(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let or;typeof HTMLElement=="function"&&(or=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=Ct("slot");r!=="default"&&(s.name=r),Re(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Wi(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]=vt(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=Gi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=_i(()=>{Dn(()=>{this.$$r=!0;for(const r of Xe(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=vt(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]=vt(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 Xe(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function vt(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 Wi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Ji(e,t,n,r,i,s){let l=class extends or{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Xe(t).map(f=>(t[f].attribute||f).toLowerCase())}};return Xe(t).forEach(f=>{Ze(l.prototype,f,{get(){return this.$$c&&f in this.$$c?this.$$c[f]:this.$$d[f]},set(a){a=vt(f,a,t),this.$$d[f]=a;var o=this.$$c;if(o){var u=Te(o,f)?.get;u?o[f]=a:o.$set({[f]:a})}}})}),r.forEach(f=>{Ze(l.prototype,f,{get(){return this.$$c?.[f]}})}),e.element=l,l}const ur={version:"0.66.6"};function cr(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const n=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const r=document.createElement("script");if(r.id=t+"-script",r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const i=t.split("-")[0];r.src=`http://localhost:6006/webcomponents/${t.replace(i+"-","")}/${n}`}document.head.appendChild(r)}catch(r){console.warn(r)}}var Xi=ze('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css"/>'),Zi=ze('<div class="sidebar-card-row"><hb-sidenav-button></hb-sidenav-button></div>',2),Qi=ze('<div class="sidebar-card-rows-container"></div>'),es=ze('<div class="sidebar-card-container"><!></div>'),ts=ze('<hb-navbar><i slot="nav-switcher"></i></hb-navbar> <!>',3),ns=ze('to be done, ref <a href="https://web.telegram.org/z/">https://web.telegram.com</a> left panel <!>',1);const rs={hash:"svelte-1l0lk50",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");
3
- @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host {font-family:"Roboto", sans-serif;}`};function hr(e,t){ln(t,!0),Di(e,rs);function n(c,v){t.$$host.dispatchEvent(new CustomEvent(c,{detail:v}))}let r=ar(t,"id",7,""),i=ar(t,"panels",23,()=>[]),s=ue(""),l=fi(()=>E(s)?i().find(c=>c.id===E(s)):i()?.find?.(c=>c.main)||i()?.find?.(c=>!c.parentPanelId));vi(()=>{if(r()||r(""),typeof i()=="string")try{i(JSON.parse(i()))}catch(c){console.error("error parsing panels",c)}});function f(c,v){const p=E(l)?.cards.find(g=>g.id===v),h=p?.rows.find(g=>g.key===c);if(h){const g=Object.assign({},E(l));delete g.cards;const y=Object.assign({},p);delete g.rows;const b={id:r(),row:h,panel:g,card:y};n("itemClick",b),h.switchToPanelId&&Q(s,h.switchToPanelId,!0)}}cr({repoName:"@htmlbricks/hb-navbar",version:ur.version}),cr({repoName:"@htmlbricks/hb-sidenav-button",version:ur.version});function a(c){const v={text:c.text,key:c.key};return c.bootstrapIcon&&(v.bootstrapIcon=c.bootstrapIcon),c.badge&&(v.badge=c.badge),v}var o={get id(){return r()},set id(c=""){r(c),Tt()},get panels(){return i()},set panels(c=[]){i(c),Tt()}};tn();var u=ns();Li("1l0lk50",c=>{var v=Xi();Re(c,v)});var _=Rn(Cn(u),3);{var d=c=>{var v=ts(),p=Cn(v);Ot(()=>lr(p,"companybrandname",E(l).title));var h=xt(p);rt(p);var g=Rn(p,2);sr(g,17,()=>E(l).cards,y=>y.id+"_c_"+E(l).id,(y,b)=>{var k=es(),Ye=xt(k);{var se=R=>{var le=Qi();sr(le,21,()=>E(b).rows,W=>W.key+"_r_"+E(b).id,(W,H)=>{var Ee=Zi(),J=xt(Ee);Ot(()=>lr(J,"navlink",JSON.stringify(a(E(H))))),rt(Ee),Qn("pageChange",J,dr=>{f(E(H).key,E(b).id)}),Re(W,Ee)}),rt(le),Re(R,le)};rr(Ye,R=>{E(b).rows&&E(b).rows.length>0&&R(se)})}rt(k),Re(y,k)}),Ot(()=>{Bi(h,`font-weight:bold;cursor:${E(l).parentPanelId?"pointer":""}`),Hi(h,1,`bi bi-${E(l).parentPanelId?"arrow-left":"list"}`)}),Qn("navmenuswitch",p,y=>{E(l)?.parentPanelId&&Q(s,E(l)?.parentPanelId,!0)}),Re(c,v)};rr(_,c=>{E(l)&&c(d)})}return Re(e,u),fn(o)}customElements.define("hb-sidebar-cards-navigator",Ji(hr,{id:{},panels:{}},[],[],{mode:"open"})),Bt.Component=hr,Object.defineProperty(Bt,Symbol.toStringTag,{value:"Module"})})(this["sidebar-cards-navigator"]=this["sidebar-cards-navigator"]||{});
4
- //# sourceMappingURL=main.iife.js.map
1
+ (function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=`http://www.w3.org/1999/xhtml`,i=Array.isArray,a=Array.prototype.indexOf,o=Array.prototype.includes,s=Array.from,c=Object.keys,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyDescriptors,f=Object.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,g=()=>{};function _(e){for(var t=0;t<e.length;t++)e[t]()}function v(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var y=1024,b=2048,x=4096,S=8192,ee=16384,C=32768,te=1<<25,ne=65536,re=1<<18,ie=1<<19,ae=1<<20,oe=1<<25,se=65536,ce=1<<21,le=1<<22,ue=1<<23,de=Symbol(`$state`),fe=Symbol(`legacy props`),pe=Symbol(``),w=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},me=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function he(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function ge(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function _e(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ve(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function ye(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function be(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function xe(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Se(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function Ce(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function we(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Te(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Ee(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function De(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Oe(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var T=!1;function E(e){T=e}var D;function O(e){if(e===null)throw De(),t;return D=e}function ke(){return O(B(D))}function Ae(e){if(T){if(B(D)!==null)throw De(),t;D=e}}function je(e=1){if(T){for(var t=e,n=D;t--;)n=B(n);D=n}}function Me(e=!0){for(var t=0,n=D;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=B(n);e&&n.remove(),n=i}}function Ne(e){if(!e||e.nodeType!==8)throw De(),t;return e.data}function Pe(e){return e===this.v}function Fe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ie(e){return!Fe(e,this.v)}var Le=!1,Re=!1,k=null;function ze(e){k=e}function Be(e,t=!1,n){k={p:k,i:!1,c:null,e:null,s:e,x:null,r:q,l:Re&&!t?{s:null,u:null,$:[]}:null}}function Ve(e){var t=k,n=t.e;if(n!==null){t.e=null;for(var r of n)un(r)}return e!==void 0&&(t.x=e),t.i=!0,k=t.p,e??{}}function He(){return!Re||k!==null&&k.l===null}var Ue=[];function We(){var e=Ue;Ue=[],_(e)}function Ge(e){if(Ue.length===0&&!nt){var t=Ue;queueMicrotask(()=>{t===Ue&&We()})}Ue.push(e)}function Ke(){for(;Ue.length>0;)We()}function qe(e){var t=q;if(t===null)return W.f|=ue,e;if(!(t.f&32768)&&!(t.f&4))throw e;A(e,t)}function A(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Je=~(b|x|y);function j(e,t){e.f=e.f&Je|t}function Ye(e){e.f&512||e.deps===null?j(e,y):j(e,x)}function Xe(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=se,Xe(t.deps))}function Ze(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Xe(e.deps),j(e,y)}var Qe=!1,$e=!1;function et(e){var t=$e;try{return $e=!1,[e(),$e]}finally{$e=t}}var M=new Set,N=null,P=null,tt=null,nt=!1,rt=!1,it=null,at=null,ot=0,st=1,ct=class e{id=st++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)j(n,b),this.schedule(n);for(n of t.m)j(n,x),this.schedule(n)}}#p(){if(ot++>1e3&&(M.delete(this),ut()),!this.#d()){for(let e of this.#o)this.#s.delete(e),j(e,b),this.schedule(e);for(let e of this.#s)j(e,x),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=it=[],r=[],i=at=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw gt(e),t}if(N=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(it=null,at=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)ht(e,t)}else{this.#n.size===0&&M.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),dt(r),dt(n),this.#i?.resolve()}var o=N;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(M.add(o),o.#p()),M.has(this)||this.#g()}#m(e,t,n){e.f^=y;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=y:i&4?t.push(r):Le&&i&16777224?n.push(r):zn(r)&&(i&16&&this.#s.add(r),Wn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)Ze(e[t],this.#o,this.#s)}capture(e,t,r=!1){t!==n&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,r]),P?.set(e,e.v))}activate(){N=this}deactivate(){N=null,P=null}flush(){try{rt=!0,N=this,this.#p()}finally{ot=0,tt=null,it=null,at=null,rt=!1,N=null,P=null,I.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),M.delete(this)}#g(){for(let c of M){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)ft(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of M)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,Ge(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=v()).promise}static ensure(){if(N===null){let t=N=new e;rt||(M.add(N),nt||Ge(()=>{N===t&&t.flush()}))}return N}apply(){if(!Le||!this.is_fork&&M.size===1){P=null;return}P=new Map;for(let[e,[t]]of this.current)P.set(e,t);for(let n of M)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)P.has(e)||P.set(e,t)}}schedule(e){if(tt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(it!==null&&t===q&&(Le||(W===null||!(W.f&2))&&!Qe))return;if(n&96){if(!(n&1024))return;t.f^=y}}this.#a.push(t)}};function lt(e){var t=nt;nt=!0;try{var n;for(e&&(N!==null&&!N.is_fork&&N.flush(),n=e());;){if(Ke(),N===null)return n;N.flush()}}finally{nt=t}}function ut(){try{be()}catch(e){A(e,tt)}}var F=null;function dt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&zn(r)&&(F=new Set,Wn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Sn(r),F?.size>0)){I.clear();for(let e of F){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)F.has(n)&&(F.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Wn(n)}}F.clear()}}F=null}}function ft(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?ft(i,t,n,r):e&4194320&&!(e&2048)&&pt(i,t,r)&&(j(i,b),mt(i))}}function pt(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(o.call(t,r))return!0;if(r.f&2&&pt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function mt(e){N.schedule(e)}function ht(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),j(e,y);for(var n=e.first;n!==null;)ht(n,t),n=n.next}}function gt(e){j(e,y);for(var t=e.first;t!==null;)gt(t),t=t.next}function _t(e){let t=0,n=Lt(0),r;return()=>{sn()&&($(n),hn(()=>(t===0&&(r=qn(()=>e(()=>Vt(n)))),t+=1,()=>{Ge(()=>{--t,t===0&&(r?.(),r=void 0,Vt(n))})})))}}var vt=ne|ie;function yt(e,t,n,r){new bt(e,t,n,r)}var bt=class{parent;is_pending=!1;transform_error;#e;#t=T?D:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=_t(()=>(this.#m=Lt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=q;t.b=this,t.f|=128,n(e)},this.parent=q.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=_n(()=>{if(T){let e=this.#t;ke();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},vt),T&&(this.#e=D)}#g(){try{this.#a=H(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=H(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=H(()=>e(this.#e)),Ge(()=>{var e=this.#c=document.createDocumentFragment(),t=z();e.append(t),this.#a=this.#x(()=>H(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Cn(this.#o,()=>{this.#o=null}),this.#b(N))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=H(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Dn(this.#a,e);let t=this.#n.pending;this.#o=H(()=>t(this.#e))}else this.#b(N)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Ze(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=q,n=W,r=k;J(this.#i),K(this.#i),ze(this.#i.ctx);try{return ct.ensure(),e()}catch(e){return qe(e),null}finally{J(t),K(n),ze(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&Cn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ge(()=>{this.#d=!1,this.#m&&zt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),$(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(U(this.#a),null),this.#o&&=(U(this.#o),null),this.#s&&=(U(this.#s),null),T&&(O(this.#t),je(),O(Me()));var r=!1,i=!1;let a=()=>{if(r){Oe();return}r=!0,i&&Ee(),this.#s!==null&&Cn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){A(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return H(()=>{var t=q;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return A(e,this.#i.parent),null}}))};Ge(()=>{var t;try{t=this.transform_error(e)}catch(e){A(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>A(e,this.#i&&this.#i.parent)):o(t)})}};function xt(e,t,n,r){let i=He()?Tt:Ot;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=q,s=St(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||A(e,o)}Ct()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=wt();function d(){Promise.all(n.map(e=>Et(e))).then(e=>l([...t.map(i),...e])).catch(e=>A(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Ct()}):d()}function St(){var e=q,t=W,n=k,r=N;return function(i=!0){J(e),K(t),ze(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Ct(e=!0){J(null),K(null),ze(null),e&&N?.deactivate()}function wt(){var e=q,t=e.b,n=N,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Tt(e){var t=2|b,r=W!==null&&W.f&2?W:null;return q!==null&&(q.f|=ie),{ctx:k,deps:null,effects:null,equals:Pe,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??q,ac:null}}function Et(e,t,r){let i=q;i===null&&he();var a=void 0,o=Lt(n),s=!W,c=new Map;return mn(()=>{var t=q,n=v();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Ct)}catch(e){n.reject(e),Ct()}var r=N;if(s){if(t.f&32768)var l=wt();if(i.b.is_rendered())c.get(r)?.reject(w),c.delete(r);else{for(let e of c.values())e.reject(w);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===w),!(n===w||t.f&16384)){if(r.activate(),n)o.f|=ue,zt(o,n);else{o.f&8388608&&(o.f^=ue),zt(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(w)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),cn(()=>{for(let e of c.values())e.reject(w)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function Dt(e){let t=Tt(e);return Le||Mn(t),t}function Ot(e){let t=Tt(e);return t.equals=Ie,t}function kt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)U(t[n])}}function At(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function jt(e){var t,n=q;J(At(e));try{e.f&=~se,kt(e),t=Vn(e)}finally{J(n)}return t}function Mt(e){var t=e.v,n=jt(e);if(!e.equals(n)&&(e.wv=Rn(),(!N?.is_fork||e.deps===null)&&(e.v=n,N?.capture(e,t,!0),e.deps===null))){j(e,y);return}An||(P===null?Ye(e):(sn()||N?.is_fork)&&P.set(e,n))}function Nt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(w),t.teardown=g,t.ac=null,Un(t,0),yn(t))}function Pt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Wn(t)}var Ft=new Set,I=new Map,It=!1;function Lt(e,t){return{f:0,v:e,reactions:null,equals:Pe,rv:0,wv:0}}function L(e,t){let n=Lt(e,t);return Mn(n),n}function Rt(e,t=!1,n=!0){let r=Lt(e);return t||(r.equals=Ie),Re&&n&&k!==null&&k.l!==null&&(k.l.s??=[]).push(r),r}function R(e,t,n=!1){return W!==null&&(!G||W.f&131072)&&He()&&W.f&4325394&&(Y===null||!o.call(Y,e))&&Te(),zt(e,n?Ut(t):t,at)}function zt(e,t,n=null){if(!e.equals(t)){var r=e.v;An?I.set(e,t):I.set(e,r),e.v=t;var i=ct.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&jt(t),P===null&&Ye(t)}e.wv=Rn(),Ht(e,b,n),He()&&q!==null&&q.f&1024&&!(q.f&96)&&(Q===null?Nn([e]):Q.push(e)),!i.is_fork&&Ft.size>0&&!It&&Bt()}return t}function Bt(){It=!1;for(let e of Ft)e.f&1024&&j(e,x),zn(e)&&Wn(e);Ft.clear()}function Vt(e){R(e,e.v+1)}function Ht(e,t,n){var r=e.reactions;if(r!==null)for(var i=He(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===q)){var l=(c&b)===0;if(l&&j(s,t),c&2){var u=s;P?.delete(u),c&65536||(c&512&&(s.f|=se),Ht(u,x,n))}else if(l){var d=s;c&16&&F!==null&&F.add(d),n===null?mt(d):n.push(d)}}}}function Ut(e){if(typeof e!=`object`||!e||de in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,a=i(e),o=L(0),s=null,c=In,l=e=>{if(In===c)return e();var t=W,n=In;K(null),Ln(c);var r=e();return K(t),Ln(n),r};return a&&r.set(`length`,L(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Ce();var i=r.get(t);return i===void 0?l(()=>{var e=L(n.value,s);return r.set(t,e),e}):R(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>L(n,s));r.set(t,e),Vt(o)}}else R(i,n),Vt(o);return!0},get(t,i,a){if(i===de)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||u(t,i)?.writable)&&(o=l(()=>L(Ut(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var d=$(o);return d===n?void 0:d}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&`value`in i){var a=r.get(t);a&&(i.value=$(a))}else if(i===void 0){var o=r.get(t),s=o?.v;if(o!==void 0&&s!==n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===de)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||q!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>L(a?Ut(e[t]):n,s)),r.set(t,i)),$(i)===n)?!1:a},set(e,t,i,c){var d=r.get(t),f=t in e;if(a&&t===`length`)for(var p=i;p<d.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>L(n,s)),r.set(p+``,m)):R(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>L(void 0,s)),R(d,Ut(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>Ut(i));R(d,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,i),!f){if(a&&typeof t==`string`){var _=r.get(`length`),v=Number(t);Number.isInteger(v)&&v>=_.v&&R(_,v+1)}Vt(o)}return!0},ownKeys(e){$(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==n});for(var[i,a]of r)a.v!==n&&!(i in e)&&t.push(i);return t},setPrototypeOf(){we()}})}var Wt,Gt,Kt,qt;function Jt(){if(Wt===void 0){Wt=window,Gt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Kt=u(t,`firstChild`).get,qt=u(t,`nextSibling`).get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function z(e=``){return document.createTextNode(e)}function Yt(e){return Kt.call(e)}function B(e){return qt.call(e)}function Xt(e,t){if(!T)return Yt(e);var n=Yt(D);if(n===null)n=D.appendChild(z());else if(t&&n.nodeType!==3){var r=z();return n?.before(r),O(r),r}return t&&nn(n),O(n),n}function Zt(e,t=!1){if(!T){var n=Yt(e);return n instanceof Comment&&n.data===``?B(n):n}if(t){if(D?.nodeType!==3){var r=z();return D?.before(r),O(r),r}nn(D)}return D}function Qt(e,t=1,n=!1){let r=T?D:e;for(var i;t--;)i=r,r=B(r);if(!T)return r;if(n){if(r?.nodeType!==3){var a=z();return r===null?i?.after(a):r.before(a),O(a),a}nn(r)}return O(r),r}function $t(e){e.textContent=``}function en(){return!Le||F!==null?!1:(q.f&C)!==0}function tn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function nn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function rn(e){var t=W,n=q;K(null),J(null);try{return e()}finally{K(t),J(n)}}function an(e){q===null&&(W===null&&ye(e),ve()),An&&_e(e)}function on(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){var n=q;n!==null&&n.f&8192&&(e|=S);var r={ctx:k,deps:null,nodes:null,f:e|b|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)it===null?ct.ensure().schedule(r):it.push(r);else if(t!==null){try{Wn(r)}catch(e){throw U(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ne))}if(i!==null&&(i.parent=n,n!==null&&on(i,n),W!==null&&W.f&2&&!(e&64))){var a=W;(a.effects??=[]).push(i)}return r}function sn(){return W!==null&&!G}function cn(e){let t=V(8,null);return j(t,y),t.teardown=e,t}function ln(e){an(`$effect`);var t=q.f;if(!W&&t&32&&!(t&32768)){var n=k;(n.e??=[]).push(e)}else return un(e)}function un(e){return V(4|ae,e)}function dn(e){ct.ensure();let t=V(64|ie,e);return()=>{U(t)}}function fn(e){ct.ensure();let t=V(64|ie,e);return(e={})=>new Promise(n=>{e.outro?Cn(t,()=>{U(t),n(void 0)}):(U(t),n(void 0))})}function pn(e){return V(4,e)}function mn(e){return V(le|ie,e)}function hn(e,t=0){return V(8|t,e)}function gn(e,t=[],n=[],r=[]){xt(r,t,n,t=>{V(8,()=>e(...t.map($)))})}function _n(e,t=0){return V(16|t,e)}function H(e){return V(32|ie,e)}function vn(e){var t=e.teardown;if(t!==null){let e=An,n=W;jn(!0),K(null);try{t.call(null)}finally{jn(e),K(n)}}}function yn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&rn(()=>{e.abort(w)});var r=n.next;n.f&64?n.parent=null:U(n,t),n=r}}function bn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||U(t),t=n}}function U(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(xn(e.nodes.start,e.nodes.end),n=!0),j(e,te),yn(e,t&&!n),Un(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();vn(e),e.f^=te,e.f|=ee;var i=e.parent;i!==null&&i.first!==null&&Sn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function xn(e,t){for(;e!==null;){var n=e===t?null:B(e);e.remove(),e=n}}function Sn(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 Cn(e,t,n=!0){var r=[];wn(e,r,!0);var i=()=>{n&&U(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function wn(e,t,n){if(!(e.f&8192)){e.f^=S;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;wn(i,t,o?n:!1),i=a}}}function Tn(e){En(e,!0)}function En(e,t){if(e.f&8192){e.f^=S,e.f&1024||(j(e,b),ct.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;En(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Dn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:B(n);t.append(n),n=i}}var On=null,kn=!1,An=!1;function jn(e){An=e}var W=null,G=!1;function K(e){W=e}var q=null;function J(e){q=e}var Y=null;function Mn(e){W!==null&&(!Le||W.f&2)&&(Y===null?Y=[e]:Y.push(e))}var X=null,Z=0,Q=null;function Nn(e){Q=e}var Pn=1,Fn=0,In=Fn;function Ln(e){In=e}function Rn(){return++Pn}function zn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~se),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(zn(a)&&Mt(a),a.wv>e.wv)return!0}t&512&&P===null&&j(e,y)}return!1}function Bn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!Le&&Y!==null&&o.call(Y,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Bn(a,t,!1):t===a&&(n?j(a,b):a.f&1024&&j(a,x),mt(a))}}function Vn(e){var t=X,n=Z,r=Q,i=W,a=Y,o=k,s=G,c=In,l=e.f;X=null,Z=0,Q=null,W=l&96?null:e,Y=null,ze(e.ctx),G=!1,In=++Fn,e.ac!==null&&(rn(()=>{e.ac.abort(w)}),e.ac=null);try{e.f|=ce;var u=e.fn,d=u();e.f|=C;var f=e.deps,p=N?.is_fork;if(X!==null){var m;if(p||Un(e,Z),f!==null&&Z>0)for(f.length=Z+X.length,m=0;m<X.length;m++)f[Z+m]=X[m];else e.deps=f=X;if(sn()&&e.f&512)for(m=Z;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Z<f.length&&(Un(e,Z),f.length=Z);if(He()&&Q!==null&&!G&&f!==null&&!(e.f&6146))for(m=0;m<Q.length;m++)Bn(Q[m],e);if(i!==null&&i!==e){if(Fn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Fn;if(t!==null)for(let e of t)e.rv=Fn;Q!==null&&(r===null?r=Q:r.push(...Q))}return e.f&8388608&&(e.f^=ue),d}catch(e){return qe(e)}finally{e.f^=ce,X=t,Z=n,Q=r,W=i,Y=a,ze(o),G=s,In=c}}function Hn(e,t){let n=t.reactions;if(n!==null){var r=a.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(X===null||!o.call(X,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~se),Ye(s),Nt(s),Un(s,0)}}function Un(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Hn(e,n[r])}function Wn(e){var t=e.f;if(!(t&16384)){j(e,y);var n=q,r=kn;q=e,kn=!0;try{t&16777232?bn(e):yn(e),vn(e);var i=Vn(e);e.teardown=typeof i==`function`?i:null,e.wv=Pn}finally{kn=r,q=n}}}function $(e){var t=(e.f&2)!=0;if(On?.add(e),W!==null&&!G&&!(q!==null&&q.f&16384)&&(Y===null||!o.call(Y,e))){var n=W.deps;if(W.f&2097152)e.rv<Fn&&(e.rv=Fn,X===null&&n!==null&&n[Z]===e?Z++:X===null?X=[e]:X.push(e));else{(W.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[W]:o.call(r,W)||r.push(W)}}if(An&&I.has(e))return I.get(e);if(t){var i=e;if(An){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Kn(i))&&(a=jt(i)),I.set(i,a),a}var s=(i.f&512)==0&&!G&&W!==null&&(kn||(W.f&512)!=0),c=(i.f&C)===0;zn(i)&&(s&&(i.f|=512),Mt(i)),s&&!c&&(Pt(i),Gn(i))}if(P?.has(e))return P.get(e);if(e.f&8388608)throw e.v;return e.v}function Gn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Pt(t),Gn(t))}function Kn(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(I.has(t)||t.f&2&&Kn(t))return!0;return!1}function qn(e){var t=G;try{return G=!0,e()}finally{G=t}}var Jn=Symbol(`events`),Yn=new Set,Xn=new Set;function Zn(e,t,n,r={}){function i(e){if(r.capture||er.call(t,e),!e.cancelBubble)return rn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Ge(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Qn(e,t,n,r,i){var a={capture:r,passive:i},o=Zn(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&cn(()=>{t.removeEventListener(e,o,a)})}var $n=null;function er(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;$n=e;var o=0,s=$n===e&&e[Jn];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Jn]=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(o=c)}if(a=i[o]||e.target,a!==t){l(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=W,f=q;K(null),J(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[Jn]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[Jn]=t,delete e.currentTarget,K(d),J(f)}}}var tr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function nr(e){return tr?.createHTML(e)??e}function rr(e){var t=tn(`template`);return t.innerHTML=nr(e.replaceAll(`<!>`,`<!---->`)),t.content}function ir(e,t){var n=q;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function ar(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(T)return ir(D,null),D;i===void 0&&(i=rr(a?e:`<!>`+e),n||(i=Yt(i)));var t=r||Gt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Yt(t),s=t.lastChild;ir(o,s)}else ir(t,t);return t}}function or(e,t){if(T){var n=q;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=D),ke();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var sr=[`touchstart`,`touchmove`];function cr(e){return sr.includes(e)}function lr(e,t){return fr(e,t)}function ur(e,n){Jt(),n.intro=n.intro??!1;let r=n.target,i=T,a=D;try{for(var o=Yt(r);o&&(o.nodeType!==8||o.data!==`[`);)o=B(o);if(!o)throw t;E(!0),O(o);let i=fr(e,{...n,anchor:o});return E(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
+ `).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==t&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&xe(),Jt(),$t(r),E(!1),lr(e,n)}finally{E(i),O(a)}}var dr=new Map;function fr(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){Jt();var u=void 0,d=fn(()=>{var c=r??n.appendChild(z());yt(c,{pending:()=>{}},n=>{Be({});var r=k;if(o&&(r.c=o),a&&(i.$$events=a),T&&ir(n,null),u=e(n,i)||{},T&&(q.nodes.end=D,D===null||D.nodeType!==8||D.data!==`]`))throw De(),t;Ve()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=cr(r);for(let e of[n,document]){var a=dr.get(e);a===void 0&&(a=new Map,dr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,er,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s(Yn)),Xn.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=dr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,er),t.delete(e),t.size===0&&dr.delete(r)):t.set(e,i)}Xn.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return pr.set(u,d),u}var pr=new WeakMap;function mr(e,t){let n=pr.get(e);return n?(pr.delete(e),n(t)):Promise.resolve()}var hr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Tn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(U(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Dn(r,t),t.append(z()),this.#n.set(e,{effect:r,fragment:t})}else U(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Cn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(U(n.effect),this.#n.delete(e))};ensure(e,t){var n=N,r=en();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=z();i.append(a),this.#n.set(e,{effect:H(()=>t(a)),fragment:i})}else this.#t.set(e,H(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else T&&(this.anchor=D),this.#a(n)}};function gr(e,t,n=!1){var r;T&&(r=D,ke());var i=new hr(e),a=n?ne:0;function o(e,t){if(T){var n=Ne(r);if(e!==parseInt(n.substring(1))){var a=Me();O(a),i.anchor=a,E(!1),i.ensure(e,t),E(!0);return}}i.ensure(e,t)}_n(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function _r(e,t,n){for(var r=[],i=t.length,a,o=t.length,c=0;c<i;c++){let n=t[c];Cn(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;vr(e,s(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;$t(d),d.append(u),e.items.clear()}vr(e,t,!l)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function vr(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=oe,Dn(a,document.createDocumentFragment())):U(t[i],n)}}var yr;function br(e,t,n,r,a,o=null){var c=e,l=new Map;if(t&4){var u=e;c=T?O(Yt(u)):u.appendChild(z())}T&&ke();var d=null,f=Ot(()=>{var e=n();return i(e)?e:e==null?[]:s(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Sr(v,p,c,t,r),d!==null&&(p.length===0?d.f&33554432?(d.f^=oe,wr(d,null,c)):Tn(d):Cn(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:_n(()=>{p=$(f);var e=p.length;let i=!1;T&&Ne(c)===`[!`!=(e===0)&&(c=Me(),O(c),E(!1),i=!0);for(var s=new Set,u=N,v=en(),y=0;y<e;y+=1){T&&D.nodeType===8&&D.data===`]`&&(c=D,i=!0,E(!1));var b=p[y],x=r(b,y),S=h?null:l.get(x);S?(S.v&&zt(S.v,b),S.i&&zt(S.i,y),v&&u.unskip_effect(S.e)):(S=Cr(l,h?c:yr??=z(),b,x,y,a,t,n),h||(S.e.f|=oe),l.set(x,S)),s.add(x)}if(e===0&&o&&!d&&(h?d=H(()=>o(c)):(d=H(()=>o(yr??=z())),d.f|=oe)),e>s.size&&ge(``,``,``),T&&e>0&&O(Me()),!h)if(m.set(u,s),v){for(let[e,t]of l)s.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);i&&E(!0),$(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,T&&(c=D)}function xr(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Sr(e,t,n,r,i){var a=(r&8)!=0,o=t.length,c=e.items,l=xr(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(a)for(v=0;v<o;v+=1)h=t[v],g=i(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<o;v+=1){if(h=t[v],g=i(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(Tn(_),a&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=oe,_===l)wr(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Tr(e,d,_),Tr(e,_,y),wr(_,y,n),d=_,p=[],m=[],l=xr(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],ee=p[p.length-1];for(x=0;x<p.length;x+=1)wr(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Tr(e,S.prev,ee.next),Tr(e,d,S),Tr(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),wr(_,l,n),Tr(e,_.prev,_.next),Tr(e,_,d===null?e.effect.first:d.next),Tr(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=xr(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=xr(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(vr(e,s(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var C=[];if(u!==void 0)for(_ of u)_.f&8192||C.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&C.push(l),l=xr(l.next);var te=C.length;if(te>0){var ne=r&4&&o===0?n:null;if(a){for(v=0;v<te;v+=1)C[v].nodes?.a?.measure();for(v=0;v<te;v+=1)C[v].nodes?.a?.fix()}_r(e,C,ne)}}a&&Ge(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Cr(e,t,n,r,i,a,o,s){var c=o&1?o&16?Lt(n):Rt(n,!1,!1):null,l=o&2?Lt(i):null;return{v:c,i:l,e:H(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function wr(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=B(r);if(a.before(r),r===i)return;r=o}}function Tr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Er(e,t){let n=null,r=T;var i;if(T){n=D;for(var a=Yt(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=B(a);if(a===null)E(!1);else{var o=B(a);a.remove(),O(o)}}T||(i=document.head.appendChild(z()));try{_n(()=>t(i),re|ie)}finally{r&&(E(!0),O(n))}}function Dr(e,t){pn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=tn(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var Or=[...`
3
+ \r\f\xA0\v`];function kr(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Or.includes(r[o-1]))&&(s===r.length||Or.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Ar(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function jr(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Mr(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(jr)),i&&c.push(...Object.keys(i).map(jr));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=jr(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Ar(r)),i&&(n+=Ar(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Nr(e,t,n,r,i,a){var o=e.__className;if(T||o!==n||o===void 0){var s=kr(n,r,a);(!T||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Pr(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Fr(e,t,n,r){var i=e.__style;if(T||i!==t){var a=Mr(t,r);(!T||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(Pr(e,n?.[0],r[0]),Pr(e,n?.[1],r[1],`important`)):Pr(e,n,r));return r}var Ir=Symbol(`is custom element`),Lr=Symbol(`is html`),Rr=me?`link`:`LINK`;function zr(e,t,n,r){var i=Vr(e);T&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Rr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[pe]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Ur(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Br(e,t,n){var r=W,i=q;let a=T;T&&E(!1),K(null),J(null);try{t!==`style`&&(Hr.has(e.getAttribute(`is`)||e.nodeName)||!customElements||customElements.get(e.getAttribute(`is`)||e.nodeName.toLowerCase())?Ur(e).includes(t):n&&typeof n==`object`)?e[t]=n:zr(e,t,n==null?n:String(n))}finally{K(r),J(i),a&&E(!0)}}function Vr(e){return e.__attributes??={[Ir]:e.nodeName.includes(`-`),[Lr]:e.namespaceURI===r}}var Hr=new Map;function Ur(e){var t=e.getAttribute(`is`)||e.nodeName,n=Hr.get(t);if(n)return n;Hr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=d(i),r)r[o].set&&n.push(o);i=m(i)}return n}function Wr(e,t,n,r){var i=!Re||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?qn(r):r),s);let d;if(a){var f=de in e||fe in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=et(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&Se(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?Tt:Ot)(()=>(_=!1,h()));a&&$(v);var y=q;return(function(e,t){if(arguments.length>0){let n=t?$(v):i&&a?Ut(e):e;return R(v,n),_=!0,s!==void 0&&(s=n),e}return An&&_||y.f&16384?v.v:$(v)})}function Gr(e){return new Kr(e)}var Kr=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Rt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return $(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===fe?!0:($(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return R(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?ur:lr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!Le&&(!e?.props?.$$host||e.sync===!1)&&lt(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||l(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{mr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},qr;typeof HTMLElement==`function`&&(qr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=tn(`slot`);e!==`default`&&(n.name=e),or(t,n)}}let t={},n=Yr(this);for(let 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(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=Jr(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=Gr({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=dn(()=>{hn(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=Jr(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Jr(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 c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Jr(e,t,n,r){let 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 Yr(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function Xr(e,t,n,r,i,a){let o=class extends qr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{l(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Jr(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(u(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{l(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var Zr={name:`@htmlbricks/svelte-webcomponent`,private:!0,version:`0.66.7`,type:`module`,scripts:{dev:`vite --open`,build:`vite build`,"publish:wc":`node publish.ts`,"build:wc":`node build.ts`,"watch:wc":`node watch.ts`,preview:`vite preview`,check:`svelte-check --tsconfig ./tsconfig.app.json && tsc -p tsconfig.node.json`,"release:patch":`npm version patch && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:minor":`npm version minor && git push && git push --tags && npm run build:wc && npm run publish:wc`,"release:major":`npm version major && git push && git push --tags && npm run build:wc && npm run publish:wc`},devDependencies:{"@google-pay/button-element":`^3.2.1`,"@paypal/paypal-js":`^9.5.0`,"@sveltejs/vite-plugin-svelte":`^7.0.0`,"@tsconfig/svelte":`^5.0.8`,"@types/debounce":`^1.2.4`,"@types/node":`^24.10.1`,"@types/rgb-hex":`^3.0.0`,"chart.js":`^4.5.1`,"date-holidays":`^3.26.12`,dayjs:`^1.11.20`,"hls.js":`^1.6.15`,"html5-joystick-new":`^0.0.6`,ol:`^10.8.0`,"perfect-freehand":`^1.2.3`,prettier:`^3.8.1`,"rollup-plugin-terser":`^7.0.2`,"sass-embedded":`^1.98.0`,"simple-serverless-auth-client":`^0.0.6`,"simple-webrtc-element":`^0.0.1`,"simple-webrtc-element-whep":`^0.2.3`,"style-to-object":`^1.0.14`,svelte:`^5.55.0`,"svelte-check":`^4.4.5`,terser:`^5.46.1`,"ts-json-schema-generator":`^2.9.0`,typescript:`^6.0.2`,vite:`^8.0.3`},dependencies:{"@floating-ui/dom":`^1.7.6`,"@popperjs/core":`^2.11.8`,bootstrap:`^5.3.8`,debounce:`^3.0.0`,"html-colors":`^0.0.6`,marked:`^17.0.5`,raphael:`^2.3.0`,"rgb-hex":`^4.1.0`,"wc-js-utils":`^0.4.7`}};function Qr(e){let t=e?.repoName.split(`/`)?.[1]||e?.repoName;if(!t)throw Error(`wrong componentPath `+e?.repoName);if(!e?.version)throw Error(`wrong version `+e?.version);let n=e?.iifePath||`main.iife.js`;if(!document.getElementById(t+`-script`))try{let r=document.createElement(`script`);if(r.id=t+`-script`,r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes(`localhost:6006`)){let e=t.split(`-`)[0];r.src=`http://localhost:6006/webcomponents/${t.replace(e+`-`,``)}/${n}`}document.head.appendChild(r)}catch(e){console.warn(e)}}var $r=ar(`<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css"/>`),ei=ar(`<div class="sidebar-card-row"><hb-sidenav-button></hb-sidenav-button></div>`,2),ti=ar(`<div class="sidebar-card-rows-container"></div>`),ni=ar(`<div class="sidebar-card-container"><!></div>`),ri=ar(`<hb-navbar><i slot="nav-switcher"></i></hb-navbar> <!>`,3),ii=ar(`to be done, ref <a href="https://web.telegram.org/z/">https://web.telegram.com</a> left panel <!>`,1),ai={hash:`svelte-1l0lk50`,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");
4
+ @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host {font-family:"Roboto", sans-serif;}`};function oi(e,t){Be(t,!0),Dr(e,ai);function n(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n}))}let r=Wr(t,`id`,7,``),i=Wr(t,`panels`,23,()=>[]),a=L(``),o=Dt(()=>$(a)?i().find(e=>e.id===$(a)):i()?.find?.(e=>e.main)||i()?.find?.(e=>!e.parentPanelId));ln(()=>{if(r()||r(``),typeof i()==`string`)try{i(JSON.parse(i()))}catch(e){console.error(`error parsing panels`,e)}});function s(e,t){let i=$(o)?.cards.find(e=>e.id===t),s=i?.rows.find(t=>t.key===e);if(s){let e=Object.assign({},$(o));delete e.cards;let t=Object.assign({},i);delete e.rows,n(`itemClick`,{id:r(),row:s,panel:e,card:t}),s.switchToPanelId&&R(a,s.switchToPanelId,!0)}}Qr({repoName:`@htmlbricks/hb-navbar`,version:Zr.version}),Qr({repoName:`@htmlbricks/hb-sidenav-button`,version:Zr.version});function c(e){let t={text:e.text,key:e.key};return e.bootstrapIcon&&(t.bootstrapIcon=e.bootstrapIcon),e.badge&&(t.badge=e.badge),t}var l={get id(){return r()},set id(e=``){r(e),lt()},get panels(){return i()},set panels(e=[]){i(e),lt()}};je();var u=ii();Er(`1l0lk50`,e=>{or(e,$r())});var d=Qt(Zt(u),3),f=e=>{var t=ri(),n=Zt(t);gn(()=>Br(n,`companybrandname`,$(o).title));var r=Xt(n);Ae(n),br(Qt(n,2),17,()=>$(o).cards,e=>e.id+`_c_`+$(o).id,(e,t)=>{var n=ni(),r=Xt(n),i=e=>{var n=ti();br(n,21,()=>$(t).rows,e=>e.key+`_r_`+$(t).id,(e,n)=>{var r=ei(),i=Xt(r);gn(()=>Br(i,`navlink`,JSON.stringify(c($(n))))),Ae(r),Qn(`pageChange`,i,e=>{s($(n).key,$(t).id)}),or(e,r)}),Ae(n),or(e,n)};gr(r,e=>{$(t).rows&&$(t).rows.length>0&&e(i)}),Ae(n),or(e,n)}),gn(()=>{Fr(r,`font-weight:bold;cursor:${$(o).parentPanelId?`pointer`:``}`),Nr(r,1,`bi bi-${$(o).parentPanelId?`arrow-left`:`list`}`)}),Qn(`navmenuswitch`,n,e=>{$(o)?.parentPanelId&&R(a,$(o)?.parentPanelId,!0)}),or(e,t)};return gr(d,e=>{$(o)&&e(f)}),or(e,u),Ve(l)}customElements.define(`hb-sidebar-cards-navigator`,Xr(oi,{id:{},panels:{}},[],[],{mode:`open`})),e.Component=oi})(this[`sidebar-cards-navigator`]=this[`sidebar-cards-navigator`]||{});
5
+ //# sourceMappingURL=main.iife.js.map