@htmlbricks/hb-sidebar-cards-navigator 0.50.0-alpha.9 → 0.60.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
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
var yi=Object.defineProperty;var Br=R=>{throw TypeError(R)};var bi=(R,S,x)=>S in R?yi(R,S,{enumerable:!0,configurable:!0,writable:!0,value:x}):R[S]=x;var Q=(R,S,x)=>bi(R,typeof S!="symbol"?S+"":S,x),Vr=(R,S,x)=>S.has(R)||Br("Cannot "+x);var q=(R,S,x)=>(Vr(R,S,"read from private field"),x?x.call(R):S.get(R)),kt=(R,S,x)=>S.has(R)?Br("Cannot add the same private member more than once"):S instanceof WeakSet?S.add(R):S.set(R,x),Lt=(R,S,x,Ee)=>(Vr(R,S,"write to private field"),Ee?Ee.call(R,x):S.set(R,x),x);(function(R){"use strict";var oe,X;const S="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(S);const x=1,Ee=2,Dt=4,Gr=8,Ur=16,Wr=1,Xr=4,Kr=8,Jr=16,zr=1,Zr=2,lt="[",at="[!",ut="]",Re={},M=Symbol(),ft=!1,K=2,Mt=4,Me=8,ot=16,se=32,ye=64,je=128,V=256,qe=512,L=1024,le=2048,be=4096,ae=8192,Fe=16384,Qr=32768,ct=65536,jt=1<<19,qt=1<<20,He=Symbol("$state"),Ft=Symbol("legacy props"),en=Symbol("");var vt=Array.isArray,tn=Array.prototype.indexOf,_t=Array.from,Ye=Object.keys,Be=Object.defineProperty,pe=Object.getOwnPropertyDescriptor,rn=Object.getOwnPropertyDescriptors,nn=Object.prototype,sn=Array.prototype,Ht=Object.getPrototypeOf;function ln(e){for(var t=0;t<e.length;t++)e[t]()}let Ve=!1,dt=[];function Yt(){Ve=!1;const e=dt.slice();dt=[],ln(e)}function ht(e){Ve||(Ve=!0,queueMicrotask(Yt)),dt.push(e)}function an(){Ve&&Yt()}function Bt(e){return e===this.v}function un(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function $t(e){return!un(e,this.v)}function fn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function on(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function cn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function vn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function _n(){throw new Error("https://svelte.dev/e/hydration_failed")}function dn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function hn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function $n(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function pn(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function mn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let gn=!1;function G(e,t){var r={f:0,v:e,reactions:null,equals:Bt,rv:0,wv:0};return r}function Vt(e){return wn(G(e))}function pt(e,t=!1){const r=G(e);return t||(r.equals=$t),r}function wn(e){return O!==null&&!ee&&O.f&K&&(ne===null?An([e]):ne.push(e)),e}function F(e,t){return O!==null&&!ee&&Er()&&O.f&(K|ot)&&(ne===null||!ne.includes(e))&&mn(),mt(e,t)}function mt(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=lr(),Gt(e,le),N!==null&&N.f&L&&!(N.f&(se|ye))&&(ue===null?On([e]):ue.push(e))),t}function Gt(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,n=0;n<i;n++){var s=r[n],l=s.f;l&le||(ie(s,t),l&(L|V)&&(l&K?Gt(s,be):Ze(s)))}}function gt(e){var t=K|le,r=O!==null&&O.f&K?O:null;return N===null||r!==null&&r.f&V?t|=V:N.f|=qt,{ctx:B,deps:null,effects:null,equals:Bt,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??N}}function En(e){const t=gt(e);return t.equals=$t,t}function Ut(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)fe(t[r])}}function yn(e){for(var t=e.parent;t!==null;){if(!(t.f&K))return t;t=t.parent}return null}function bn(e){var t,r=N;re(yn(e));try{Ut(e),t=ur(e)}finally{re(r)}return t}function Wt(e){var t=bn(e),r=(de||e.f&V)&&e.deps!==null?be:L;ie(e,r),e.equals(t)||(e.v=t,e.wv=lr())}function wt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let b=!1;function H(e){b=e}let C;function U(e){if(e===null)throw wt(),Re;return C=e}function Ge(){return U(z(C))}function Ue(e){if(b){if(z(C)!==null)throw wt(),Re;C=e}}function Tn(e=1){if(b){for(var t=e,r=C;t--;)r=z(r);C=r}}function Et(){for(var e=0,t=C;;){if(t.nodeType===8){var r=t.data;if(r===ut){if(e===0)return t;e-=1}else(r===lt||r===at)&&(e+=1)}var i=z(t);t.remove(),t=i}}function J(e,t=null,r){if(typeof e!="object"||e===null||He in e)return e;const i=Ht(e);if(i!==nn&&i!==sn)return e;var n=new Map,s=vt(e),l=G(0);s&&n.set("length",G(e.length));var a;return new Proxy(e,{defineProperty(v,f,c){(!("value"in c)||c.configurable===!1||c.enumerable===!1||c.writable===!1)&&hn();var _=n.get(f);return _===void 0?(_=G(c.value),n.set(f,_)):F(_,J(c.value,a)),!0},deleteProperty(v,f){var c=n.get(f);if(c===void 0)f in v&&n.set(f,G(M));else{if(s&&typeof f=="string"){var _=n.get("length"),u=Number(f);Number.isInteger(u)&&u<_.v&&F(_,u)}F(c,M),Xt(l)}return!0},get(v,f,c){var d;if(f===He)return e;var _=n.get(f),u=f in v;if(_===void 0&&(!u||(d=pe(v,f))!=null&&d.writable)&&(_=G(J(u?v[f]:M,a)),n.set(f,_)),_!==void 0){var o=y(_);return o===M?void 0:o}return Reflect.get(v,f,c)},getOwnPropertyDescriptor(v,f){var c=Reflect.getOwnPropertyDescriptor(v,f);if(c&&"value"in c){var _=n.get(f);_&&(c.value=y(_))}else if(c===void 0){var u=n.get(f),o=u==null?void 0:u.v;if(u!==void 0&&o!==M)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return c},has(v,f){var o;if(f===He)return!0;var c=n.get(f),_=c!==void 0&&c.v!==M||Reflect.has(v,f);if(c!==void 0||N!==null&&(!_||(o=pe(v,f))!=null&&o.writable)){c===void 0&&(c=G(_?J(v[f],a):M),n.set(f,c));var u=y(c);if(u===M)return!1}return _},set(v,f,c,_){var g;var u=n.get(f),o=f in v;if(s&&f==="length")for(var d=c;d<u.v;d+=1){var h=n.get(d+"");h!==void 0?F(h,M):d in v&&(h=G(M),n.set(d+"",h))}u===void 0?(!o||(g=pe(v,f))!=null&&g.writable)&&(u=G(void 0),F(u,J(c,a)),n.set(f,u)):(o=u.v!==M,F(u,J(c,a)));var m=Reflect.getOwnPropertyDescriptor(v,f);if(m!=null&&m.set&&m.set.call(_,c),!o){if(s&&typeof f=="string"){var A=n.get("length"),p=Number(f);Number.isInteger(p)&&p>=A.v&&F(A,p+1)}Xt(l)}return!0},ownKeys(v){y(l);var f=Reflect.ownKeys(v).filter(u=>{var o=n.get(u);return o===void 0||o.v!==M});for(var[c,_]of n)_.v!==M&&!(c in v)&&f.push(c);return f},setPrototypeOf(){$n()}})}function Xt(e,t=1){F(e,e.v+t)}var Kt,Jt,zt,Zt;function yt(){if(Kt===void 0){Kt=window,Jt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype;zt=pe(t,"firstChild").get,Zt=pe(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0}}function Se(e=""){return document.createTextNode(e)}function _e(e){return zt.call(e)}function z(e){return Zt.call(e)}function bt(e,t){if(!b)return _e(e);var r=_e(C);return r===null&&(r=C.appendChild(Se())),U(r),r}function Qt(e,t){if(!b){var r=_e(e);return r instanceof Comment&&r.data===""?z(r):r}return C}function er(e,t=1,r=!1){let i=b?C:e;for(var n;t--;)n=i,i=z(i);if(!b)return i;var s=i==null?void 0:i.nodeType;if(r&&s!==3){var l=Se();return i===null?n==null||n.after(l):i.before(l),U(l),l}return U(i),i}function tr(e){e.textContent=""}const rr=0,Nn=1;let We=!1,Xe=rr,Ie=!1,Pe=null,Te=!1,Tt=!1;function nr(e){Te=e}function ir(e){Tt=e}let me=[],Ne=0,Ti=[],O=null,ee=!1;function te(e){O=e}let N=null;function re(e){N=e}let ne=null;function An(e){ne=e}let D=null,Y=0,ue=null;function On(e){ue=e}let sr=1,Ke=0,de=!1;function lr(){return++sr}function xe(e){var _;var t=e.f;if(t&le)return!0;if(t&be){var r=e.deps,i=(t&V)!==0;if(r!==null){var n,s,l=(t&qe)!==0,a=i&&N!==null&&!de,v=r.length;if(l||a){var f=e,c=f.parent;for(n=0;n<v;n++)s=r[n],(l||!((_=s==null?void 0:s.reactions)!=null&&_.includes(f)))&&(s.reactions??(s.reactions=[])).push(f);l&&(f.f^=qe),a&&c!==null&&!(c.f&V)&&(f.f^=V)}for(n=0;n<v;n++)if(s=r[n],xe(s)&&Wt(s),s.wv>e.wv)return!0}(!i||N!==null&&!de)&&ie(e,L)}return!1}function Cn(e,t){for(var r=t;r!==null;){if(r.f&je)try{r.fn(e);return}catch{r.f^=je}r=r.parent}throw We=!1,e}function Rn(e){return(e.f&Fe)===0&&(e.parent===null||(e.parent.f&je)===0)}function Je(e,t,r,i){if(We){if(r===null&&(We=!1),Rn(t))throw e;return}r!==null&&(We=!0);{Cn(e,t);return}}function ar(e,t,r=!0){var i=e.reactions;if(i!==null)for(var n=0;n<i.length;n++){var s=i[n];s.f&K?ar(s,t,!1):t===s&&(r?ie(s,le):s.f&L&&ie(s,be),Ze(s))}}function ur(e){var o;var t=D,r=Y,i=ue,n=O,s=de,l=ne,a=B,v=ee,f=e.f;D=null,Y=0,ue=null,O=f&(se|ye)?null:e,de=(f&V)!==0&&(!Te||n===null||v),ne=null,mr(e.ctx),ee=!1,Ke++;try{var c=(0,e.fn)(),_=e.deps;if(D!==null){var u;if(ze(e,Y),_!==null&&Y>0)for(_.length=Y+D.length,u=0;u<D.length;u++)_[Y+u]=D[u];else e.deps=_=D;if(!de)for(u=Y;u<_.length;u++)((o=_[u]).reactions??(o.reactions=[])).push(e)}else _!==null&&Y<_.length&&(ze(e,Y),_.length=Y);if(Er()&&ue!==null&&!ee&&_!==null&&!(e.f&(K|be|le)))for(u=0;u<ue.length;u++)ar(ue[u],e);return n!==null&&Ke++,c}finally{D=t,Y=r,ue=i,O=n,de=s,ne=l,mr(a),ee=v}}function Sn(e,t){let r=t.reactions;if(r!==null){var i=tn.call(r,e);if(i!==-1){var n=r.length-1;n===0?r=t.reactions=null:(r[i]=r[n],r.pop())}}r===null&&t.f&K&&(D===null||!D.includes(t))&&(ie(t,be),t.f&(V|qe)||(t.f^=qe),Ut(t),ze(t,0))}function ze(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)Sn(e,r[i])}function Nt(e){var t=e.f;if(!(t&Fe)){ie(e,L);var r=N,i=B;N=e;try{t&ot?Yn(e):dr(e),_r(e);var n=ur(e);e.teardown=typeof n=="function"?n:null,e.wv=sr;var s=e.deps,l;ft&&gn&&e.f&le}catch(a){Je(a,e,r,i||e.ctx)}finally{N=r}}}function fr(){if(Ne>1e3){Ne=0;try{vn()}catch(e){if(Pe!==null)Je(e,Pe,null);else throw e}}Ne++}function or(e){var t=e.length;if(t!==0){fr();var r=Te;Te=!0;try{for(var i=0;i<t;i++){var n=e[i];n.f&L||(n.f^=L);var s=xn(n);In(s)}}finally{Te=r}}}function In(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var i=e[r];if(!(i.f&(Fe|ae)))try{xe(i)&&(Nt(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?hr(i):i.fn=null))}catch(n){Je(n,i,null,i.ctx)}}}function Pn(){if(Ie=!1,Ne>1001)return;const e=me;me=[],or(e),Ie||(Ne=0,Pe=null)}function Ze(e){Xe===rr&&(Ie||(Ie=!0,queueMicrotask(Pn))),Pe=e;for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&(ye|se)){if(!(r&L))return;t.f^=L}}me.push(t)}function xn(e){var t=[],r=e.first;e:for(;r!==null;){var i=r.f,n=(i&se)!==0,s=n&&(i&L)!==0,l=r.next;if(!s&&!(i&ae)){if(i&Mt)t.push(r);else if(n)r.f^=L;else{var a=O;try{O=r,xe(r)&&Nt(r)}catch(c){Je(c,r,null,r.ctx)}finally{O=a}}var v=r.first;if(v!==null){r=v;continue}}if(l===null){let c=r.parent;for(;c!==null;){if(e===c)break e;var f=c.next;if(f!==null){r=f;continue e}c=c.parent}}r=l}return t}function ke(e){var t=Xe,r=me;try{fr();const n=[];Xe=Nn,me=n,Ie=!1,or(r);var i=e==null?void 0:e();return an(),(me.length>0||n.length>0)&&ke(),Ne=0,Pe=null,i}finally{Xe=t,me=r}}function y(e){var t=e.f,r=(t&K)!==0;if(O!==null&&!ee){ne!==null&&ne.includes(e)&&pn();var i=O.deps;e.rv<Ke&&(e.rv=Ke,D===null&&i!==null&&i[Y]===e?Y++:D===null?D=[e]:(!de||!D.includes(e))&&D.push(e))}else if(r&&e.deps===null&&e.effects===null){var n=e,s=n.parent;s!==null&&!(s.f&V)&&(n.f^=V)}return r&&(n=e,xe(n)&&Wt(n)),e.v}function cr(e){var t=ee;try{return ee=!0,e()}finally{ee=t}}const kn=-7169;function ie(e,t){e.f=e.f&kn|t}function Ln(e){N===null&&O===null&&cn(),O!==null&&O.f&V&&N===null&&on(),Tt&&fn()}function Dn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ge(e,t,r,i=!0){var n=(e&ye)!==0,s=N,l={ctx:B,deps:null,nodes_start:null,nodes_end:null,f:e|le,first:null,fn:t,last:null,next:null,parent:n?null:s,prev:null,teardown:null,transitions:null,wv:0};if(r){var a=Te;try{nr(!0),Nt(l),l.f|=Qr}catch(c){throw fe(l),c}finally{nr(a)}}else t!==null&&Ze(l);var v=r&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&(qt|je))===0;if(!v&&!n&&i&&(s!==null&&Dn(l,s),O!==null&&O.f&K)){var f=O;(f.effects??(f.effects=[])).push(l)}return l}function Mn(e){const t=ge(Me,null,!1);return ie(t,L),t.teardown=e,t}function jn(e){Ln();var t=N!==null&&(N.f&se)!==0&&B!==null&&!B.m;if(t){var r=B;(r.e??(r.e=[])).push({fn:e,effect:N,reaction:O})}else{var i=vr(e);return i}}function qn(e){const t=ge(ye,e,!0);return()=>{fe(t)}}function Fn(e){const t=ge(ye,e,!0);return(r={})=>new Promise(i=>{r.outro?et(t,()=>{fe(t),i(void 0)}):(fe(t),i(void 0))})}function vr(e){return ge(Mt,e,!1)}function Hn(e){return ge(Me,e,!0)}function At(e,t=[],r=gt){const i=t.map(r);return Qe(()=>e(...i.map(y)))}function Qe(e,t=0){return ge(Me|ot|t,e,!0)}function Le(e,t=!0){return ge(Me|se,e,!0,t)}function _r(e){var t=e.teardown;if(t!==null){const r=Tt,i=O;ir(!0),te(null);try{t.call(null)}finally{ir(r),te(i)}}}function dr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var i=r.next;fe(r,t),r=i}}function Yn(e){for(var t=e.first;t!==null;){var r=t.next;t.f&se||fe(t),t=r}}function fe(e,t=!0){var r=!1;if((t||e.f&jt)&&e.nodes_start!==null){for(var i=e.nodes_start,n=e.nodes_end;i!==null;){var s=i===n?null:z(i);i.remove(),i=s}r=!0}dr(e,t&&!r),ze(e,0),ie(e,Fe);var l=e.transitions;if(l!==null)for(const v of l)v.stop();_r(e);var a=e.parent;a!==null&&a.first!==null&&hr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function hr(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function et(e,t){var r=[];Ot(e,r,!0),$r(r,()=>{fe(e),t&&t()})}function $r(e,t){var r=e.length;if(r>0){var i=()=>--r||t();for(var n of e)n.out(i)}else t()}function Ot(e,t,r){if(!(e.f&ae)){if(e.f^=ae,e.transitions!==null)for(const l of e.transitions)(l.is_global||r)&&t.push(l);for(var i=e.first;i!==null;){var n=i.next,s=(i.f&ct)!==0||(i.f&se)!==0;Ot(i,t,s?r:!1),i=n}}}function tt(e){pr(e,!0)}function pr(e,t){if(e.f&ae){e.f^=ae,e.f&L||(e.f^=L),xe(e)&&(ie(e,le),Ze(e));for(var r=e.first;r!==null;){var i=r.next,n=(r.f&ct)!==0||(r.f&se)!==0;pr(r,n?t:!1),r=i}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let B=null;function mr(e){B=e}function gr(e,t=!1,r){B={p:B,c:null,e:null,m:!1,s:e,x:null,l:null}}function wr(e){const t=B;if(t!==null){e!==void 0&&(t.x=e);const l=t.e;if(l!==null){var r=N,i=O;t.e=null;try{for(var n=0;n<l.length;n++){var s=l[n];re(s.effect),te(s.reaction),vr(s.fn)}}finally{re(r),te(i)}}B=t.p,t.m=!0}return e||{}}function Er(){return!0}const Bn=["touchstart","touchmove"];function Vn(e){return Bn.includes(e)}function Gn(e){var t=O,r=N;te(null),re(null);try{return e()}finally{te(t),re(r)}}const Un=new Set,yr=new Set;function Wn(e,t,r,i={}){function n(s){if(i.capture||De.call(t,s),!s.cancelBubble)return Gn(()=>r==null?void 0:r.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ht(()=>{t.addEventListener(e,n,i)}):t.addEventListener(e,n,i),n}function br(e,t,r,i,n){var s={capture:i,passive:n},l=Wn(e,t,r,s);(t===document.body||t===window||t===document)&&Mn(()=>{t.removeEventListener(e,l,s)})}function De(e){var p;var t=this,r=t.ownerDocument,i=e.type,n=((p=e.composedPath)==null?void 0:p.call(e))||[],s=n[0]||e.target,l=0,a=e.__root;if(a){var v=n.indexOf(a);if(v!==-1&&(t===document||t===window)){e.__root=t;return}var f=n.indexOf(t);if(f===-1)return;v<=f&&(l=v)}if(s=n[l]||e.target,s!==t){Be(e,"currentTarget",{configurable:!0,get(){return s||r}});var c=O,_=N;te(null),re(null);try{for(var u,o=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var h=s["__"+i];if(h!==void 0&&!s.disabled)if(vt(h)){var[m,...A]=h;m.apply(s,[e,...A])}else h.call(s,e)}catch(g){u?o.push(g):u=g}if(e.cancelBubble||d===t||d===null)break;s=d}if(u){for(let g of o)queueMicrotask(()=>{throw g});throw u}}finally{e.__root=t,delete e.currentTarget,te(c),re(_)}}}let W;function Xn(){W=void 0}function Kn(e){let t=null,r=b;var i;if(b){for(t=C,W===void 0&&(W=_e(document.head));W!==null&&(W.nodeType!==8||W.data!==lt);)W=z(W);W===null?H(!1):W=U(z(W))}b||(i=document.head.appendChild(Se()));try{Qe(()=>e(i),jt)}finally{r&&(H(!0),W=C,U(t))}}function Jn(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function rt(e,t){var r=N;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Ae(e,t){var r=(t&zr)!==0,i=(t&Zr)!==0,n,s=!e.startsWith("<!>");return()=>{if(b)return rt(C,null),C;n===void 0&&(n=Jn(s?e:"<!>"+e),r||(n=_e(n)));var l=i||Jt?document.importNode(n,!0):n.cloneNode(!0);if(r){var a=_e(l),v=l.lastChild;rt(a,v)}else rt(l,l);return l}}function we(e,t){if(b){N.nodes_end=C,Ge();return}e!==null&&e.before(t)}function Tr(e,t){return Nr(e,t)}function zn(e,t){yt(),t.intro=t.intro??!1;const r=t.target,i=b,n=C;try{for(var s=_e(r);s&&(s.nodeType!==8||s.data!==lt);)s=z(s);if(!s)throw Re;H(!0),U(s),Ge();const l=Nr(e,{...t,anchor:s});if(C===null||C.nodeType!==8||C.data!==ut)throw wt(),Re;return H(!1),l}catch(l){if(l===Re)return t.recover===!1&&_n(),yt(),tr(r),H(!1),Tr(e,t);throw l}finally{H(i),U(n),Xn()}}const Oe=new Map;function Nr(e,{target:t,anchor:r,props:i={},events:n,context:s,intro:l=!0}){yt();var a=new Set,v=_=>{for(var u=0;u<_.length;u++){var o=_[u];if(!a.has(o)){a.add(o);var d=Vn(o);t.addEventListener(o,De,{passive:d});var h=Oe.get(o);h===void 0?(document.addEventListener(o,De,{passive:d}),Oe.set(o,1)):Oe.set(o,h+1)}}};v(_t(Un)),yr.add(v);var f=void 0,c=Fn(()=>{var _=r??t.appendChild(Se());return Le(()=>{if(s){gr({});var u=B;u.c=s}n&&(i.$$events=n),b&&rt(_,null),f=e(_,i)||{},b&&(N.nodes_end=C),s&&wr()}),()=>{var d;for(var u of a){t.removeEventListener(u,De);var o=Oe.get(u);--o===0?(document.removeEventListener(u,De),Oe.delete(u)):Oe.set(u,o)}yr.delete(v),_!==r&&((d=_.parentNode)==null||d.removeChild(_))}});return Ct.set(f,c),f}let Ct=new WeakMap;function Zn(e,t){const r=Ct.get(e);return r?(Ct.delete(e),r(t)):Promise.resolve()}function Ar(e,t,r=!1){b&&Ge();var i=e,n=null,s=null,l=M,a=r?ct:0,v=!1;const f=(_,u=!0)=>{v=!0,c(u,_)},c=(_,u)=>{if(l===(l=_))return;let o=!1;if(b){const d=i.data===at;!!l===d&&(i=Et(),U(i),H(!1),o=!0)}l?(n?tt(n):u&&(n=Le(()=>u(i))),s&&et(s,()=>{s=null})):(s?tt(s):u&&(s=Le(()=>u(i))),n&&et(n,()=>{n=null})),o&&H(!0)};Qe(()=>{v=!1,t(f),v||c(null,null)},a),b&&(i=C)}function Qn(e,t,r,i){for(var n=[],s=t.length,l=0;l<s;l++)Ot(t[l].e,n,!0);var a=s>0&&n.length===0&&r!==null;if(a){var v=r.parentNode;tr(v),v.append(r),i.clear(),he(e,t[0].prev,t[s-1].next)}$r(n,()=>{for(var f=0;f<s;f++){var c=t[f];a||(i.delete(c.k),he(e,c.prev,c.next)),fe(c.e,!a)}})}function Or(e,t,r,i,n,s=null){var l=e,a={items:new Map,first:null},v=(t&Dt)!==0;if(v){var f=e;l=b?U(_e(f)):f.appendChild(Se())}b&&Ge();var c=null,_=!1,u=En(()=>{var o=r();return vt(o)?o:o==null?[]:_t(o)});Qe(()=>{var o=y(u),d=o.length;if(_&&d===0)return;_=d===0;let h=!1;if(b){var m=l.data===at;m!==(d===0)&&(l=Et(),U(l),H(!1),h=!0)}if(b){for(var A=null,p,g=0;g<d;g++){if(C.nodeType===8&&C.data===ut){l=C,h=!0,H(!1);break}var $=o[g],E=i($,g);p=Cr(C,a,A,null,$,E,g,n,t,r),a.items.set(E,p),A=p}d>0&&U(Et())}b||ei(o,a,l,n,t,i,r),s!==null&&(d===0?c?tt(c):c=Le(()=>s(l)):c!==null&&et(c,()=>{c=null})),h&&H(!0),y(u)}),b&&(l=C)}function ei(e,t,r,i,n,s,l){var w,j,st,Hr;var a=(n&Gr)!==0,v=(n&(x|Ee))!==0,f=e.length,c=t.items,_=t.first,u=_,o,d=null,h,m=[],A=[],p,g,$,E;if(a)for(E=0;E<f;E+=1)p=e[E],g=s(p,E),$=c.get(g),$!==void 0&&((w=$.a)==null||w.measure(),(h??(h=new Set)).add($));for(E=0;E<f;E+=1){if(p=e[E],g=s(p,E),$=c.get(g),$===void 0){var I=u?u.e.nodes_start:r;d=Cr(I,t,d,d===null?t.first:d.next,p,g,E,i,n,l),c.set(g,d),m=[],A=[],u=d.next;continue}if(v&&ti($,p,E,n),$.e.f&ae&&(tt($.e),a&&((j=$.a)==null||j.unfix(),(h??(h=new Set)).delete($))),$!==u){if(o!==void 0&&o.has($)){if(m.length<A.length){var P=A[0],k;d=P.prev;var ce=m[0],ve=m[m.length-1];for(k=0;k<m.length;k+=1)Rr(m[k],P,r);for(k=0;k<A.length;k+=1)o.delete(A[k]);he(t,ce.prev,ve.next),he(t,d,ce),he(t,ve,P),u=P,d=ve,E-=1,m=[],A=[]}else o.delete($),Rr($,u,r),he(t,$.prev,$.next),he(t,$,d===null?t.first:d.next),he(t,d,$),d=$;continue}for(m=[],A=[];u!==null&&u.k!==g;)u.e.f&ae||(o??(o=new Set)).add(u),A.push(u),u=u.next;if(u===null)continue;$=u}m.push($),d=$,u=$.next}if(u!==null||o!==void 0){for(var Z=o===void 0?[]:_t(o);u!==null;)u.e.f&ae||Z.push(u),u=u.next;var $e=Z.length;if($e>0){var T=n&Dt&&f===0?r:null;if(a){for(E=0;E<$e;E+=1)(st=Z[E].a)==null||st.measure();for(E=0;E<$e;E+=1)(Hr=Z[E].a)==null||Hr.fix()}Qn(t,Z,T,c)}}a&&ht(()=>{var Yr;if(h!==void 0)for($ of h)(Yr=$.a)==null||Yr.apply()}),N.first=t.first&&t.first.e,N.last=d&&d.e}function ti(e,t,r,i){i&x&&mt(e.v,t),i&Ee?mt(e.i,r):e.i=r}function Cr(e,t,r,i,n,s,l,a,v,f){var c=(v&x)!==0,_=(v&Ur)===0,u=c?_?pt(n):G(n):n,o=v&Ee?G(l):l,d={i:o,v:u,k:s,a:null,e:null,prev:r,next:i};try{return d.e=Le(()=>a(e,u,o,f),b),d.e.prev=r&&r.e,d.e.next=i&&i.e,r===null?t.first=d:(r.next=d,r.e.next=d.e),i!==null&&(i.prev=d,i.e.prev=d.e),d}finally{}}function Rr(e,t,r){for(var i=e.next?e.next.e.nodes_start:r,n=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==i;){var l=z(s);n.before(s),s=l}}function he(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function ri(e,t){ht(()=>{var r=e.getRootNode(),i=r.host?r:r.head??r.ownerDocument.head;if(!i.querySelector("#"+t.hash)){const n=document.createElement("style");n.id=t.hash,n.textContent=t.code,i.appendChild(n)}})}function Sr(e,t,r,i){var n=e.__attributes??(e.__attributes={});b&&(n[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||n[t]!==(n[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[en]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Pr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ir(e,t,r){var i=O,n=N;let s=b;b&&H(!1),te(null),re(null);try{(Rt.has(e.nodeName)||!customElements||customElements.get(e.tagName.toLowerCase())?Pr(e).includes(t):r&&typeof r=="object")?e[t]=r:Sr(e,t,r==null?r:String(r))}finally{te(i),re(n),s&&H(!0)}}var Rt=new Map;function Pr(e){var t=Rt.get(e.nodeName);if(t)return t;Rt.set(e.nodeName,t=[]);for(var r,i=e,n=Element.prototype;n!==i;){r=rn(i);for(var s in r)r[s].set&&t.push(s);i=Ht(i)}return t}function ni(e,t,r){var i=e.__className,n=ii(t);b&&e.className===n?e.__className=n:(i!==n||b&&e.className!==n)&&(t==null?e.removeAttribute("class"):e.className=n,e.__className=n)}function ii(e,t){return(e??"")+""}let nt=!1;function si(e){var t=nt;try{return nt=!1,[e(),nt]}finally{nt=t}}function St(e,t,r,i){var E;var n=(r&Wr)!==0,s=!0,l=(r&Kr)!==0,a=(r&Jr)!==0,v=!1,f;l?[f,v]=si(()=>e[t]):f=e[t];var c=He in e||Ft in e,_=l&&(((E=pe(e,t))==null?void 0:E.set)??(c&&t in e&&(I=>e[t]=I)))||void 0,u=i,o=!0,d=!1,h=()=>(d=!0,o&&(o=!1,a?u=cr(i):u=i),u);f===void 0&&i!==void 0&&(_&&s&&dn(),f=h(),_&&_(f));var m;if(m=()=>{var I=e[t];return I===void 0?h():(o=!0,d=!1,I)},!(r&Xr))return m;if(_){var A=e.$$legacy;return function(I,P){return arguments.length>0?((!P||A||v)&&_(P?m():I),I):m()}}var p=!1,g=pt(f),$=gt(()=>{var I=m(),P=y(g);return p?(p=!1,P):g.v=I});return n||($.equals=$t),function(I,P){if(arguments.length>0){const k=P?y($):l?J(I):I;return $.equals(k)||(p=!0,F(g,k),d&&u!==void 0&&(u=k),cr(()=>y($))),I}return y($)}}function li(e){return new ai(e)}class ai{constructor(t){kt(this,oe);kt(this,X);var s;var r=new Map,i=(l,a)=>{var v=pt(a);return r.set(l,v),v};const n=new Proxy({...t.props||{},$$events:{}},{get(l,a){return y(r.get(a)??i(a,Reflect.get(l,a)))},has(l,a){return a===Ft?!0:(y(r.get(a)??i(a,Reflect.get(l,a))),Reflect.has(l,a))},set(l,a,v){return F(r.get(a)??i(a,v),v),Reflect.set(l,a,v)}});Lt(this,X,(t.hydrate?zn:Tr)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((s=t==null?void 0:t.props)!=null&&s.$$host)||t.sync===!1)&&ke(),Lt(this,oe,n.$$events);for(const l of Object.keys(q(this,X)))l==="$set"||l==="$destroy"||l==="$on"||Be(this,l,{get(){return q(this,X)[l]},set(a){q(this,X)[l]=a},enumerable:!0});q(this,X).$set=l=>{Object.assign(n,l)},q(this,X).$destroy=()=>{Zn(q(this,X))}}$set(t){q(this,X).$set(t)}$on(t,r){q(this,oe)[t]=q(this,oe)[t]||[];const i=(...n)=>r.call(this,...n);return q(this,oe)[t].push(i),()=>{q(this,oe)[t]=q(this,oe)[t].filter(n=>n!==i)}}$destroy(){q(this,X).$destroy()}}oe=new WeakMap,X=new WeakMap;let xr;typeof HTMLElement=="function"&&(xr=class extends HTMLElement{constructor(t,r,i){super();Q(this,"$$ctor");Q(this,"$$s");Q(this,"$$c");Q(this,"$$cn",!1);Q(this,"$$d",{});Q(this,"$$r",!1);Q(this,"$$p_d",{});Q(this,"$$l",{});Q(this,"$$l_u",new Map);Q(this,"$$me");this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return s=>{const l=document.createElement("slot");n!=="default"&&(l.name=n),we(s,l)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=ui(this);for(const n of this.$$s)n in i&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),r.default=!0):r[n]=t(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=it(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=li({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=qn(()=>{Hn(()=>{var n;this.$$r=!0;for(const s of Ye(this.$$c)){if(!((n=this.$$p_d[s])!=null&&n.reflect))continue;this.$$d[s]=this.$$c[s];const l=it(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const l=this.$$c.$on(n,s);this.$$l_u.set(s,l)}this.$$l={}}}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=it(t,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Ye(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function it(e,t,r,i){var s;const n=(s=r[e])==null?void 0:s.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(n){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(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ui(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function fi(e,t,r,i,n,s){let l=class extends xr{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return Ye(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Ye(t).forEach(a=>{Be(l.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(v){var _;v=it(a,v,t),this.$$d[a]=v;var f=this.$$c;if(f){var c=(_=pe(f,a))==null?void 0:_.get;c?f[a]=v:f.$set({[a]:v})}}})}),i.forEach(a=>{Be(l.prototype,a,{get(){var v;return(v=this.$$c)==null?void 0:v[a]}})}),e.element=l,l}const kr={version:"0.50.0-alpha.009"};function oi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ce={},It,Lr;function ci(){if(Lr)return It;Lr=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,v=`
|
|
2
|
-
`,f="/",c="*",_="",u="comment",o="declaration";It=function(h,m){if(typeof h!="string")throw new TypeError("First argument must be a string");if(!h)return[];m=m||{};var A=1,p=1;function g(T){var w=T.match(t);w&&(A+=w.length);var j=T.lastIndexOf(v);p=~j?T.length-j:p+T.length}function $(){var T={line:A,column:p};return function(w){return w.position=new E(T),k(),w}}function E(T){this.start=T,this.end={line:A,column:p},this.source=m.source}E.prototype.content=h;function I(T){var w=new Error(m.source+":"+A+":"+p+": "+T);if(w.reason=T,w.filename=m.source,w.line=A,w.column=p,w.source=h,!m.silent)throw w}function P(T){var w=T.exec(h);if(w){var j=w[0];return g(j),h=h.slice(j.length),w}}function k(){P(r)}function ce(T){var w;for(T=T||[];w=ve();)w!==!1&&T.push(w);return T}function ve(){var T=$();if(!(f!=h.charAt(0)||c!=h.charAt(1))){for(var w=2;_!=h.charAt(w)&&(c!=h.charAt(w)||f!=h.charAt(w+1));)++w;if(w+=2,_===h.charAt(w-1))return I("End of comment missing");var j=h.slice(2,w-2);return p+=2,g(j),h=h.slice(w),p+=2,T({type:u,comment:j})}}function Z(){var T=$(),w=P(i);if(w){if(ve(),!P(n))return I("property missing ':'");var j=P(s),st=T({type:o,property:d(w[0].replace(e,_)),value:j?d(j[0].replace(e,_)):_});return P(l),st}}function $e(){var T=[];ce(T);for(var w;w=Z();)w!==!1&&(T.push(w),ce(T));return T}return k(),$e()};function d(h){return h?h.replace(a,_):_}return It}var Dr;function vi(){if(Dr)return Ce;Dr=1;var e=Ce&&Ce.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.default=r;var t=e(ci());function r(i,n){var s=null;if(!i||typeof i!="string")return s;var l=(0,t.default)(i),a=typeof n=="function";return l.forEach(function(v){if(v.type==="declaration"){var f=v.property,c=v.value;a?n(f,c,v):c&&(s=s||{},s[f]=c)}}),s}return Ce}var _i=vi();const Mr=oi(_i),di=Mr.default||Mr;function jr(e,t){var i,n;let r="";if(e&&(t!=null&&t.length)&&((i=Object.keys(e))!=null&&i.length)&&((n=t==null?void 0:t.filter(s=>Object.keys(e).includes(s.name)))!=null&&n.length))for(const s of Object.keys(e))(t==null?void 0:t.filter(a=>a.name===s&&a.defaultValue!==e[s]))&&(r+=`${s}:${e[s]};`);return r}function qr(e){var i;const t=((i=e==null?void 0:e.repoName.split("/"))==null?void 0:i[1])||(e==null?void 0:e.repoName);if(!t)throw new Error("wrong componentPath "+(e==null?void 0:e.repoName));if(!(e!=null&&e.version))throw new Error("wrong version "+(e==null?void 0:e.version));const r=(e==null?void 0:e.iifePath)||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e!=null&&e.local&&location.href.includes("localhost")&&(n.src=`${e.local}`),document.head.appendChild(n)}catch(n){console.warn(n)}}const Pt={vars:[]},xt={vars:[{name:"--bs-primary",defaultValue:"#07689f",valueType:"color",theme:"bootstrap"}]};var hi=Ae('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css">'),$i=Ae('<div class="sidebar-card-row"><hb-sidenav-button></hb-sidenav-button></div>',2),pi=Ae('<div class="sidebar-card-rows-container"></div>'),mi=Ae('<div class="sidebar-card-container"><!></div>'),gi=Ae('<hb-navbar><i slot="nav-switcher"></i></hb-navbar> <!>',3),wi=Ae('to be done, ref <a href="https://web.telegram.org/z/">https://web.telegram.com</a> left panel <!>',1);const Ei={hash:"svelte-isd2cr",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
|
-
|
|
1
|
+
(function(qt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Be=1,Ue=2,Ht=4,nr=8,rr=16,ir=1,sr=4,ar=8,lr=16,fr=1,ur=2,at="[",lt="[!",ft="]",Se={},x=Symbol(),or="http://www.w3.org/1999/xhtml",Yt=!1;var ut=Array.isArray,cr=Array.prototype.indexOf,ot=Array.from,Ge=Object.keys,Ae=Object.defineProperty,_e=Object.getOwnPropertyDescriptor,vr=Object.getOwnPropertyDescriptors,dr=Object.prototype,hr=Array.prototype,Bt=Object.getPrototypeOf,Ut=Object.isExtensible;function Gt(e){for(var t=0;t<e.length;t++)e[t]()}function _r(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const F=2,ct=4,vt=8,Ne=16,le=32,ue=64,Vt=128,Y=256,Ve=512,M=1024,B=2048,oe=4096,K=8192,pe=16384,dt=32768,ht=65536,Wt=1<<17,Xt=1<<18,Oe=1<<19,pr=1<<20,_t=1<<21,pt=1<<22,me=1<<23,We=Symbol("$state"),Kt=Symbol("legacy props"),mr=Symbol(""),mt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},wr=3,Re=8;function gr(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function $r(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Er(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function br(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function yr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Tr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Sr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ar(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Nr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Or(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Rr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Xe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let T=!1;function j(e){T=e}let O;function U(e){if(e===null)throw Xe(),Se;return O=e}function Ke(){return U(Z(O))}function Je(e){if(T){if(Z(O)!==null)throw Xe(),Se;O=e}}function Cr(e=1){if(T){for(var t=e,n=O;t--;)n=Z(n);O=n}}function wt(){for(var e=0,t=O;;){if(t.nodeType===Re){var n=t.data;if(n===ft){if(e===0)return t;e-=1}else(n===at||n===lt)&&(e+=1)}var r=Z(t);t.remove(),t=r}}function Jt(e){if(!e||e.nodeType!==Re)throw Xe(),Se;return e.data}function zt(e){return e===this.v}function Ir(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Zt(e){return!Ir(e,this.v)}let Pr=!1,J=null;function ze(e){J=e}function Qt(e,t=!1,n){J={p:J,c:null,e:null,s:e,x:null,l:null}}function en(e){var t=J,n=t.e;if(n!==null){t.e=null;for(var r of n)Tn(r)}return e!==void 0&&(t.x=e),J=t.p,e??{}}function tn(){return!0}const xr=new WeakMap;function kr(e){var t=b;if(t===null)return y.f|=me,e;if((t.f&dt)===0){if((t.f&Vt)===0)throw!t.parent&&e instanceof Error&&nn(e),e;t.b.error(e)}else gt(e,t)}function gt(e,t){for(;t!==null;){if((t.f&Vt)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&nn(e),e}function nn(e){const t=xr.get(e);t&&(Ae(e,"message",{value:t.message}),Ae(e,"stack",{value:t.stack}))}let De=[],$t=[];function rn(){var e=De;De=[],Gt(e)}function Mr(){var e=$t;$t=[],Gt(e)}function sn(e){De.length===0&&queueMicrotask(rn),De.push(e)}function Lr(){De.length>0&&rn(),$t.length>0&&Mr()}function Dr(){const e=b.b;return e===null&&gr(),e}function Et(e){var t=F|B,n=y!==null&&(y.f&F)!==0?y:null;return b===null||n!==null&&(n.f&Y)!==0?t|=Y:b.f|=Oe,{ctx:J,deps:null,effects:null,equals:zt,f:t,fn:e,reactions:null,rv:0,v:x,wv:0,parent:n??b,ac:null}}function Fr(e,t){let n=b;n===null&&$r();var r=n.b,i=void 0,s=Fe(x),a=null,l=!y;return Jr(()=>{try{var f=e();a&&Promise.resolve(f).catch(()=>{})}catch(d){f=Promise.reject(d)}var u=()=>f;i=a?.then(u,u)??Promise.resolve(f),a=i;var v=P,h=r.is_pending();l&&(r.update_pending_count(1),h||v.increment());const c=(d,o=void 0)=>{a=null,h||v.activate(),o?o!==mt&&(s.f|=me,je(s,o)):((s.f&me)!==0&&(s.f^=me),je(s,d)),l&&(r.update_pending_count(-1),h||v.decrement()),un()};if(i.then(c,d=>c(null,d||"unknown")),v)return()=>{queueMicrotask(()=>v.neuter())}}),new Promise(f=>{function u(v){function h(){v===i?f(s):u(i)}v.then(h,h)}u(i)})}function an(e){const t=Et(e);return t.equals=Zt,t}function ln(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)re(t[n])}}function jr(e){for(var t=e.parent;t!==null;){if((t.f&F)===0)return t;t=t.parent}return null}function bt(e){var t,n=b;se(jr(e));try{ln(e),t=Ln(e)}finally{se(n)}return t}function fn(e){var t=bt(e);if(e.equals(t)||(e.v=t,e.wv=kn()),!be){var n=(he||(e.f&Y)!==0)&&e.deps!==null?oe:M;D(e,n)}}function qr(e,t,n){const r=Et;if(t.length===0){n(e.map(r));return}var i=P,s=b,a=Hr(),l=Dr();Promise.all(t.map(f=>Fr(f))).then(f=>{i?.activate(),a();try{n([...e.map(r),...f])}catch(u){(s.f&pe)===0&>(u,s)}i?.deactivate(),un()}).catch(f=>{l.error(f)})}function Hr(){var e=b,t=y,n=J,r=P;return function(){se(e),G(t),ze(n),r?.activate()}}function un(){se(null),G(null),ze(null)}const yt=new Set;let P=null,on=new Set,Ze=[];function cn(){const e=Ze.shift();Ze.length>0&&queueMicrotask(cn),e()}let we=[],Qe=null,Tt=!1,et=!1;class ge{current=new Map;#t=new Map;#e=new Set;#n=0;#u=null;#o=!1;#i=[];#a=[];#s=[];#r=[];#l=[];#c=[];#v=[];skipped_effects=new Set;process(t){we=[];for(const i of t)this.#h(i);if(this.#i.length===0&&this.#n===0){this.#d();var n=this.#s,r=this.#r;this.#s=[],this.#r=[],this.#l=[],P=null,dn(n),dn(r),P===null?P=this:yt.delete(this),this.#u?.resolve()}else this.#f(this.#s),this.#f(this.#r),this.#f(this.#l);for(const i of this.#i)xe(i);for(const i of this.#a)xe(i);this.#i=[],this.#a=[]}#h(t){t.f^=M;for(var n=t.first;n!==null;){var r=n.f,i=(r&(le|ue))!==0,s=i&&(r&M)!==0,a=s||(r&K)!==0||this.skipped_effects.has(n);if(!a&&n.fn!==null){if(i)n.f^=M;else if((r&ct)!==0)this.#r.push(n);else if((r&M)===0)if((r&pt)!==0){var l=n.b?.is_pending()?this.#a:this.#i;l.push(n)}else tt(n)&&((n.f&Ne)!==0&&this.#l.push(n),xe(n));var f=n.first;if(f!==null){n=f;continue}}var u=n.parent;for(n=n.next;n===null&&u!==null;)n=u.next,u=u.parent}}#f(t){for(const n of t)((n.f&B)!==0?this.#c:this.#v).push(n),D(n,M);t.length=0}capture(t,n){this.#t.has(t)||this.#t.set(t,n),this.current.set(t,t.v)}activate(){P=this}deactivate(){P=null;for(const t of on)if(on.delete(t),t(),P!==null)break}neuter(){this.#o=!0}flush(){we.length>0?vn():this.#d(),P===this&&(this.#n===0&&yt.delete(this),this.deactivate())}#d(){if(!this.#o)for(const t of this.#e)t();this.#e.clear()}increment(){this.#n+=1}decrement(){if(this.#n-=1,this.#n===0){for(const t of this.#c)D(t,B),Ce(t);for(const t of this.#v)D(t,oe),Ce(t);this.#s=[],this.#r=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#u??=_r()).promise}static ensure(){if(P===null){const t=P=new ge;yt.add(P),et||ge.enqueue(()=>{P===t&&t.flush()})}return P}static enqueue(t){Ze.length===0&&queueMicrotask(cn),Ze.unshift(t)}}function St(e){var t=et;et=!0;try{for(var n;;){if(Lr(),we.length===0&&(P?.flush(),we.length===0))return Qe=null,n;vn()}}finally{et=t}}function vn(){var e=Pe;Tt=!0;try{var t=0;for(Cn(!0);we.length>0;){var n=ge.ensure();if(t++>1e3){var r,i;Yr()}n.process(we),ce.clear()}}finally{Tt=!1,Cn(e),Qe=null}}function Yr(){try{Tr()}catch(e){gt(e,Qe)}}let $e=null;function dn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(pe|K))===0&&tt(r)&&($e=[],xe(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Nn(r):r.fn=null),$e?.length>0)){ce.clear();for(const i of $e)xe(i);$e=[]}}$e=null}}function Ce(e){for(var t=Qe=e;t.parent!==null;){t=t.parent;var n=t.f;if(Tt&&t===b&&(n&Ne)!==0)return;if((n&(ue|le))!==0){if((n&M)===0)return;t.f^=M}}we.push(t)}const ce=new Map;function Fe(e,t){var n={f:0,v:e,reactions:null,equals:zt,rv:0,wv:0};return n}function te(e,t){const n=Fe(e);return ei(n),n}function hn(e,t=!1,n=!0){const r=Fe(e);return t||(r.equals=Zt),r}function z(e,t,n=!1){y!==null&&(!ie||(y.f&Wt)!==0)&&tn()&&(y.f&(F|Ne|pt|Wt))!==0&&!fe?.includes(e)&&Rr();let r=n?ve(t):t;return je(e,r)}function je(e,t){if(!e.equals(t)){var n=e.v;be?ce.set(e,t):ce.set(e,n),e.v=t;var r=ge.ensure();r.capture(e,n),(e.f&F)!==0&&((e.f&B)!==0&&bt(e),D(e,(e.f&Y)===0?M:oe)),e.wv=kn(),_n(e,B),b!==null&&(b.f&M)!==0&&(b.f&(le|ue))===0&&(V===null?ti([e]):V.push(e))}return t}function At(e){z(e,e.v+1)}function _n(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i],a=s.f,l=(a&B)===0;l&&D(s,t),(a&F)!==0?_n(s,oe):l&&((a&Ne)!==0&&$e!==null&&$e.push(s),Ce(s))}}function ve(e){if(typeof e!="object"||e===null||We in e)return e;const t=Bt(e);if(t!==dr&&t!==hr)return e;var n=new Map,r=ut(e),i=te(0),s=ye,a=l=>{if(ye===s)return l();var f=y,u=ye;G(null),xn(s);var v=l();return G(f),xn(u),v};return r&&n.set("length",te(e.length)),new Proxy(e,{defineProperty(l,f,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Nr();var v=n.get(f);return v===void 0?v=a(()=>{var h=te(u.value);return n.set(f,h),h}):z(v,u.value,!0),!0},deleteProperty(l,f){var u=n.get(f);if(u===void 0){if(f in l){const v=a(()=>te(x));n.set(f,v),At(i)}}else z(u,x),At(i);return!0},get(l,f,u){if(f===We)return e;var v=n.get(f),h=f in l;if(v===void 0&&(!h||_e(l,f)?.writable)&&(v=a(()=>{var d=ve(h?l[f]:x),o=te(d);return o}),n.set(f,v)),v!==void 0){var c=A(v);return c===x?void 0:c}return Reflect.get(l,f,u)},getOwnPropertyDescriptor(l,f){var u=Reflect.getOwnPropertyDescriptor(l,f);if(u&&"value"in u){var v=n.get(f);v&&(u.value=A(v))}else if(u===void 0){var h=n.get(f),c=h?.v;if(h!==void 0&&c!==x)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(l,f){if(f===We)return!0;var u=n.get(f),v=u!==void 0&&u.v!==x||Reflect.has(l,f);if(u!==void 0||b!==null&&(!v||_e(l,f)?.writable)){u===void 0&&(u=a(()=>{var c=v?ve(l[f]):x,d=te(c);return d}),n.set(f,u));var h=A(u);if(h===x)return!1}return v},set(l,f,u,v){var h=n.get(f),c=f in l;if(r&&f==="length")for(var d=u;d<h.v;d+=1){var o=n.get(d+"");o!==void 0?z(o,x):d in l&&(o=a(()=>te(x)),n.set(d+"",o))}if(h===void 0)(!c||_e(l,f)?.writable)&&(h=a(()=>te(void 0)),z(h,ve(u)),n.set(f,h));else{c=h.v!==x;var _=a(()=>ve(u));z(h,_)}var m=Reflect.getOwnPropertyDescriptor(l,f);if(m?.set&&m.set.call(v,u),!c){if(r&&typeof f=="string"){var g=n.get("length"),p=Number(f);Number.isInteger(p)&&p>=g.v&&z(g,p+1)}At(i)}return!0},ownKeys(l){A(i);var f=Reflect.ownKeys(l).filter(h=>{var c=n.get(h);return c===void 0||c.v!==x});for(var[u,v]of n)v.v!==x&&!(u in l)&&f.push(u);return f},setPrototypeOf(){Or()}})}var pn,mn,wn,gn;function Nt(){if(pn===void 0){pn=window,mn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;wn=_e(t,"firstChild").get,gn=_e(t,"nextSibling").get,Ut(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ut(n)&&(n.__t=void 0)}}function Ee(e=""){return document.createTextNode(e)}function de(e){return wn.call(e)}function Z(e){return gn.call(e)}function Ot(e,t){if(!T)return de(e);var n=de(O);return n===null&&(n=O.appendChild(Ee())),U(n),n}function $n(e,t){if(!T){var n=de(e);return n instanceof Comment&&n.data===""?Z(n):n}return O}function En(e,t=1,n=!1){let r=T?O:e;for(var i;t--;)i=r,r=Z(r);if(!T)return r;if(n&&r?.nodeType!==wr){var s=Ee();return r===null?i?.after(s):r.before(s),U(s),s}return U(r),r}function bn(e){e.textContent=""}function yn(){return!1}function Rt(e){var t=y,n=b;G(null),se(null);try{return e()}finally{G(t),se(n)}}function Br(e){b===null&&y===null&&yr(),y!==null&&(y.f&Y)!==0&&b===null&&br(),be&&Er()}function Ur(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ne(e,t,n,r=!0){var i=b;i!==null&&(i.f&K)!==0&&(e|=K);var s={ctx:J,deps:null,nodes_start:null,nodes_end:null,f:e|B,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{xe(s),s.f|=dt}catch(f){throw re(s),f}else t!==null&&Ce(s);if(r){var a=s;if(n&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&Oe)===0&&(a=a.first),a!==null&&(a.parent=i,i!==null&&Ur(a,i),y!==null&&(y.f&F)!==0&&(e&ue)===0)){var l=y;(l.effects??=[]).push(a)}}return s}function Gr(e){const t=ne(vt,null,!1);return D(t,M),t.teardown=e,t}function Vr(e){Br();var t=b.f,n=!y&&(t&le)!==0&&(t&dt)===0;if(n){var r=J;(r.e??=[]).push(e)}else return Tn(e)}function Tn(e){return ne(ct|pr,e,!1)}function Wr(e){ge.ensure();const t=ne(ue|Oe,e,!0);return()=>{re(t)}}function Xr(e){ge.ensure();const t=ne(ue|Oe,e,!0);return(n={})=>new Promise(r=>{n.outro?Pt(t,()=>{re(t),r(void 0)}):(re(t),r(void 0))})}function Kr(e){return ne(ct,e,!1)}function Jr(e){return ne(pt|Oe,e,!0)}function zr(e,t=0){return ne(vt|t,e,!0)}function Ct(e,t=[],n=[]){qr(t,n,r=>{ne(vt,()=>e(...r.map(A)),!0)})}function It(e,t=0){var n=ne(Ne|t,e,!0);return n}function Ie(e,t=!0){return ne(le|Oe,e,!0,t)}function Sn(e){var t=e.teardown;if(t!==null){const n=be,r=y;In(!0),G(null);try{t.call(null)}finally{In(n),G(r)}}}function An(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Rt(()=>{i.abort(mt)});var r=n.next;(n.f&ue)!==0?n.parent=null:re(n,t),n=r}}function Zr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&le)===0&&re(t),t=n}}function re(e,t=!0){var n=!1;(t||(e.f&Xt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Qr(e.nodes_start,e.nodes_end),n=!0),An(e,t&&!n),nt(e,0),D(e,pe);var r=e.transitions;if(r!==null)for(const s of r)s.stop();Sn(e);var i=e.parent;i!==null&&i.first!==null&&Nn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Qr(e,t){for(;e!==null;){var n=e===t?null:Z(e);e.remove(),e=n}}function Nn(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 Pt(e,t){var n=[];xt(e,n,!0),On(n,()=>{re(e),t&&t()})}function On(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function xt(e,t,n){if((e.f&K)===0){if(e.f^=K,e.transitions!==null)for(const a of e.transitions)(a.is_global||n)&&t.push(a);for(var r=e.first;r!==null;){var i=r.next,s=(r.f&ht)!==0||(r.f&le)!==0;xt(r,t,s?n:!1),r=i}}}function kt(e){Rn(e,!0)}function Rn(e,t){if((e.f&K)!==0){e.f^=K,(e.f&M)===0&&(D(e,B),Ce(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&ht)!==0||(n.f&le)!==0;Rn(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let Pe=!1;function Cn(e){Pe=e}let be=!1;function In(e){be=e}let y=null,ie=!1;function G(e){y=e}let b=null;function se(e){b=e}let fe=null;function ei(e){y!==null&&(fe===null?fe=[e]:fe.push(e))}let L=null,q=0,V=null;function ti(e){V=e}let Pn=1,qe=0,ye=qe;function xn(e){ye=e}let he=!1;function kn(){return++Pn}function tt(e){var t=e.f;if((t&B)!==0)return!0;if((t&oe)!==0){var n=e.deps,r=(t&Y)!==0;if(n!==null){var i,s,a=(t&Ve)!==0,l=r&&b!==null&&!he,f=n.length;if((a||l)&&(b===null||(b.f&pe)===0)){var u=e,v=u.parent;for(i=0;i<f;i++)s=n[i],(a||!s?.reactions?.includes(u))&&(s.reactions??=[]).push(u);a&&(u.f^=Ve),l&&v!==null&&(v.f&Y)===0&&(u.f^=Y)}for(i=0;i<f;i++)if(s=n[i],tt(s)&&fn(s),s.wv>e.wv)return!0}(!r||b!==null&&!he)&&D(e,M)}return!1}function Mn(e,t,n=!0){var r=e.reactions;if(r!==null&&!fe?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&F)!==0?Mn(s,t,!1):t===s&&(n?D(s,B):(s.f&M)!==0&&D(s,oe),Ce(s))}}function Ln(e){var t=L,n=q,r=V,i=y,s=he,a=fe,l=J,f=ie,u=ye,v=e.f;L=null,q=0,V=null,he=(v&Y)!==0&&(ie||!Pe||y===null),y=(v&(le|ue))===0?e:null,fe=null,ze(e.ctx),ie=!1,ye=++qe,e.ac!==null&&(Rt(()=>{e.ac.abort(mt)}),e.ac=null);try{e.f|=_t;var h=e.fn,c=h(),d=e.deps;if(L!==null){var o;if(nt(e,q),d!==null&&q>0)for(d.length=q+L.length,o=0;o<L.length;o++)d[q+o]=L[o];else e.deps=d=L;if(!he||(v&F)!==0&&e.reactions!==null)for(o=q;o<d.length;o++)(d[o].reactions??=[]).push(e)}else d!==null&&q<d.length&&(nt(e,q),d.length=q);if(tn()&&V!==null&&!ie&&d!==null&&(e.f&(F|oe|B))===0)for(o=0;o<V.length;o++)Mn(V[o],e);return i!==null&&i!==e&&(qe++,V!==null&&(r===null?r=V:r.push(...V))),(e.f&me)!==0&&(e.f^=me),c}catch(_){return kr(_)}finally{e.f^=_t,L=t,q=n,V=r,y=i,he=s,fe=a,ze(l),ie=f,ye=u}}function ni(e,t){let n=t.reactions;if(n!==null){var r=cr.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&F)!==0&&(L===null||!L.includes(t))&&(D(t,oe),(t.f&(Y|Ve))===0&&(t.f^=Ve),ln(t),nt(t,0))}function nt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ni(e,n[r])}function xe(e){var t=e.f;if((t&pe)===0){D(e,M);var n=b,r=Pe;b=e,Pe=!0;try{(t&Ne)!==0?Zr(e):An(e),Sn(e);var i=Ln(e);e.teardown=typeof i=="function"?i:null,e.wv=Pn;var s;Yt&&Pr&&(e.f&B)!==0&&e.deps}finally{Pe=r,b=n}}}function A(e){var t=e.f,n=(t&F)!==0;if(y!==null&&!ie){var r=b!==null&&(b.f&pe)!==0;if(!r&&!fe?.includes(e)){var i=y.deps;if((y.f&_t)!==0)e.rv<qe&&(e.rv=qe,L===null&&i!==null&&i[q]===e?q++:L===null?L=[e]:(!he||!L.includes(e))&&L.push(e));else{(y.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[y]:s.includes(y)||s.push(y)}}}else if(n&&e.deps===null&&e.effects===null){var a=e,l=a.parent;l!==null&&(l.f&Y)===0&&(a.f^=Y)}if(be){if(ce.has(e))return ce.get(e);if(n){a=e;var f=a.v;return((a.f&M)===0&&a.reactions!==null||Dn(a))&&(f=bt(a)),ce.set(a,f),f}}else n&&(a=e,tt(a)&&fn(a));if((e.f&me)!==0)throw e.v;return e.v}function Dn(e){if(e.v===x)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ce.has(t)||(t.f&F)!==0&&Dn(t))return!0;return!1}function ri(e){var t=ie;try{return ie=!0,e()}finally{ie=t}}const ii=-7169;function D(e,t){e.f=e.f&ii|t}const si=new Set,Fn=new Set;function ai(e,t,n,r={}){function i(s){if(r.capture||He.call(t,s),!s.cancelBubble)return Rt(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?sn(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function jn(e,t,n,r,i){var s={capture:r,passive:i},a=ai(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Gr(()=>{t.removeEventListener(e,a,s)})}let qn=null;function He(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;qn=e;var a=0,l=qn===e&&e.__root;if(l){var f=i.indexOf(l);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;f<=u&&(a=f)}if(s=i[a]||e.target,s!==t){Ae(e,"currentTarget",{configurable:!0,get(){return s||n}});var v=y,h=b;G(null),se(null);try{for(var c,d=[];s!==null;){var o=s.assignedSlot||s.parentNode||s.host||null;try{var _=s["__"+r];if(_!=null&&(!s.disabled||e.target===s))if(ut(_)){var[m,...g]=_;m.apply(s,[e,...g])}else _.call(s,e)}catch(p){c?d.push(p):c=p}if(e.cancelBubble||o===t||o===null)break;s=o}if(c){for(let p of d)queueMicrotask(()=>{throw p});throw c}}finally{e.__root=t,delete e.currentTarget,G(v),se(h)}}}let W;function li(){W=void 0}function fi(e){let t=null,n=T;var r;if(T){for(t=O,W===void 0&&(W=de(document.head));W!==null&&(W.nodeType!==Re||W.data!==at);)W=Z(W);W===null?j(!1):W=U(Z(W))}T||(r=document.head.appendChild(Ee()));try{It(()=>e(r),Xt)}finally{n&&(j(!0),W=O,U(t))}}function ui(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function rt(e,t){var n=b;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function ke(e,t){var n=(t&fr)!==0,r=(t&ur)!==0,i,s=!e.startsWith("<!>");return()=>{if(T)return rt(O,null),O;i===void 0&&(i=ui(s?e:"<!>"+e),n||(i=de(i)));var a=r||mn?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=de(a),f=a.lastChild;rt(l,f)}else rt(a,a);return a}}function Te(e,t){if(T){b.nodes_end=O,Ke();return}e!==null&&e.before(t)}const oi=["touchstart","touchmove"];function ci(e){return oi.includes(e)}function Hn(e,t){return Yn(e,t)}function vi(e,t){Nt(),t.intro=t.intro??!1;const n=t.target,r=T,i=O;try{for(var s=de(n);s&&(s.nodeType!==Re||s.data!==at);)s=Z(s);if(!s)throw Se;j(!0),U(s),Ke();const a=Yn(e,{...t,anchor:s});if(O===null||O.nodeType!==Re||O.data!==ft)throw Xe(),Se;return j(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==Se&&console.warn("Failed to hydrate: ",a),t.recover===!1&&Sr(),Nt(),bn(n),j(!1),Hn(e,t)}finally{j(r),U(i),li()}}const Me=new Map;function Yn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0}){Nt();var l=new Set,f=h=>{for(var c=0;c<h.length;c++){var d=h[c];if(!l.has(d)){l.add(d);var o=ci(d);t.addEventListener(d,He,{passive:o});var _=Me.get(d);_===void 0?(document.addEventListener(d,He,{passive:o}),Me.set(d,1)):Me.set(d,_+1)}}};f(ot(si)),Fn.add(f);var u=void 0,v=Xr(()=>{var h=n??t.appendChild(Ee());return Ie(()=>{if(s){Qt({});var c=J;c.c=s}i&&(r.$$events=i),T&&rt(h,null),u=e(h,r)||{},T&&(b.nodes_end=O),s&&en()}),()=>{for(var c of l){t.removeEventListener(c,He);var d=Me.get(c);--d===0?(document.removeEventListener(c,He),Me.delete(c)):Me.set(c,d)}Fn.delete(f),h!==n&&h.parentNode?.removeChild(h)}});return Mt.set(u,v),u}let Mt=new WeakMap;function di(e,t){const n=Mt.get(e);return n?(Mt.delete(e),n(t)):Promise.resolve()}function Bn(e,t,n=!1){T&&Ke();var r=e,i=null,s=null,a=x,l=n?ht:0,f=!1;const u=(d,o=!0)=>{f=!0,c(o,d)};var v=null;function h(){v!==null&&(v.lastChild.remove(),r.before(v),v=null);var d=a?i:s,o=a?s:i;d&&kt(d),o&&Pt(o,()=>{a?s=null:i=null})}const c=(d,o)=>{if(a===(a=d))return;let _=!1;if(T){const R=Jt(r)===lt;!!a===R&&(r=wt(),U(r),j(!1),_=!0)}var m=yn(),g=r;if(m&&(v=document.createDocumentFragment(),v.append(g=Ee())),a?i??=o&&Ie(()=>o(g)):s??=o&&Ie(()=>o(g)),m){var p=P,N=a?i:s,C=a?s:i;N&&p.skipped_effects.delete(N),C&&p.skipped_effects.add(C),p.add_callback(h)}else h();_&&j(!0)};It(()=>{f=!1,t(u),f||c(null,null)},l),T&&(r=O)}function hi(e,t,n){for(var r=e.items,i=[],s=t.length,a=0;a<s;a++)xt(t[a].e,i,!0);var l=s>0&&i.length===0&&n!==null;if(l){var f=n.parentNode;bn(f),f.append(n),r.clear(),ae(e,t[0].prev,t[s-1].next)}On(i,()=>{for(var u=0;u<s;u++){var v=t[u];l||(r.delete(v.k),ae(e,v.prev,v.next)),re(v.e,!l)}})}function Un(e,t,n,r,i,s=null){var a=e,l={flags:t,items:new Map,first:null},f=(t&Ht)!==0;if(f){var u=e;a=T?U(de(u)):u.appendChild(Ee())}T&&Ke();var v=null,h=!1,c=new Map,d=an(()=>{var g=n();return ut(g)?g:g==null?[]:ot(g)}),o,_;function m(){_i(_,o,l,c,a,i,t,r,n),s!==null&&(o.length===0?v?kt(v):v=Ie(()=>s(a)):v!==null&&Pt(v,()=>{v=null}))}It(()=>{_??=b,o=A(d);var g=o.length;if(h&&g===0)return;h=g===0;let p=!1;if(T){var N=Jt(a)===lt;N!==(g===0)&&(a=wt(),U(a),j(!1),p=!0)}if(T){for(var C=null,R,w=0;w<g;w++){if(O.nodeType===Re&&O.data===ft){a=O,p=!0,j(!1);break}var E=o[w],I=r(E,w);R=Lt(O,l,C,null,E,I,w,i,t,n),l.items.set(I,R),C=R}g>0&&U(wt())}if(T)g===0&&s&&(v=Ie(()=>s(a)));else if(yn()){var Q=new Set,ee=P;for(w=0;w<g;w+=1){E=o[w],I=r(E,w);var X=l.items.get(I)??c.get(I);X?(t&(Be|Ue))!==0&&Gn(X,E,w,t):(R=Lt(null,l,null,null,E,I,w,i,t,n,!0),c.set(I,R)),Q.add(I)}for(const[H,S]of l.items)Q.has(H)||ee.skipped_effects.add(S.e);ee.add_callback(m)}else m();p&&j(!0),A(d)}),T&&(a=O)}function _i(e,t,n,r,i,s,a,l,f){var u=(a&nr)!==0,v=(a&(Be|Ue))!==0,h=t.length,c=n.items,d=n.first,o=d,_,m=null,g,p=[],N=[],C,R,w,E;if(u)for(E=0;E<h;E+=1)C=t[E],R=l(C,E),w=c.get(R),w!==void 0&&(w.a?.measure(),(g??=new Set).add(w));for(E=0;E<h;E+=1){if(C=t[E],R=l(C,E),w=c.get(R),w===void 0){var I=r.get(R);if(I!==void 0){r.delete(R),c.set(R,I);var Q=m?m.next:o;ae(n,m,I),ae(n,I,Q),Dt(I,Q,i),m=I}else{var ee=o?o.e.nodes_start:i;m=Lt(ee,n,m,m===null?n.first:m.next,C,R,E,s,a,f)}c.set(R,m),p=[],N=[],o=m.next;continue}if(v&&Gn(w,C,E,a),(w.e.f&K)!==0&&(kt(w.e),u&&(w.a?.unfix(),(g??=new Set).delete(w))),w!==o){if(_!==void 0&&_.has(w)){if(p.length<N.length){var X=N[0],H;m=X.prev;var S=p[0],$=p[p.length-1];for(H=0;H<p.length;H+=1)Dt(p[H],X,i);for(H=0;H<N.length;H+=1)_.delete(N[H]);ae(n,S.prev,$.next),ae(n,m,S),ae(n,$,X),o=X,m=$,E-=1,p=[],N=[]}else _.delete(w),Dt(w,o,i),ae(n,w.prev,w.next),ae(n,w,m===null?n.first:m.next),ae(n,m,w),m=w;continue}for(p=[],N=[];o!==null&&o.k!==R;)(o.e.f&K)===0&&(_??=new Set).add(o),N.push(o),o=o.next;if(o===null)continue;w=o}p.push(w),m=w,o=w.next}if(o!==null||_!==void 0){for(var k=_===void 0?[]:ot(_);o!==null;)(o.e.f&K)===0&&k.push(o),o=o.next;var Ye=k.length;if(Ye>0){var Hi=(a&Ht)!==0&&h===0?i:null;if(u){for(E=0;E<Ye;E+=1)k[E].a?.measure();for(E=0;E<Ye;E+=1)k[E].a?.fix()}hi(n,k,Hi)}}u&&sn(()=>{if(g!==void 0)for(w of g)w.a?.apply()}),e.first=n.first&&n.first.e,e.last=m&&m.e;for(var Yi of r.values())re(Yi.e);r.clear()}function Gn(e,t,n,r){(r&Be)!==0&&je(e.v,t),(r&Ue)!==0?je(e.i,n):e.i=n}function Lt(e,t,n,r,i,s,a,l,f,u,v){var h=(f&Be)!==0,c=(f&rr)===0,d=h?c?hn(i,!1,!1):Fe(i):i,o=(f&Ue)===0?a:Fe(a),_={i:o,v:d,k:s,a:null,e:null,prev:n,next:r};try{if(e===null){var m=document.createDocumentFragment();m.append(e=Ee())}return _.e=Ie(()=>l(e,d,o,u),T),_.e.prev=n&&n.e,_.e.next=r&&r.e,n===null?v||(t.first=_):(n.next=_,n.e.next=_.e),r!==null&&(r.prev=_,r.e.prev=_.e),_}finally{}}function Dt(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,i=t?t.e.nodes_start:n,s=e.e.nodes_start;s!==null&&s!==r;){var a=Z(s);i.before(s),s=a}}function ae(e,t,n){t===null?e.first=n:(t.next=n,t.e.next=n&&n.e),n!==null&&(n.prev=t,n.e.prev=t&&t.e)}function pi(e,t){Kr(()=>{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 mi(e,t,n){var r=e==null?"":""+e;return r===""?null:r}function wi(e,t){return e==null?null:String(e)}function gi(e,t,n,r,i,s){var a=e.__className;if(T||a!==n||a===void 0){var l=mi(n);(!T||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=n}return s}function $i(e,t,n,r){var i=e.__style;if(T||i!==t){var s=wi(t);(!T||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const Ei=Symbol("is custom element"),bi=Symbol("is html");function yi(e,t,n,r){var i=Ti(e);T&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[mr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Wn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Vn(e,t,n){var r=y,i=b;let s=T;T&&j(!1),G(null),se(null);try{t!=="style"&&(Ft.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.tagName.toLowerCase())?Wn(e).includes(t):n&&typeof n=="object")?e[t]=n:yi(e,t,n==null?n:String(n))}finally{G(r),se(i),s&&j(!0)}}function Ti(e){return e.__attributes??={[Ei]:e.nodeName.includes("-"),[bi]:e.namespaceURI===or}}var Ft=new Map;function Wn(e){var t=e.getAttribute("is")||e.nodeName,n=Ft.get(t);if(n)return n;Ft.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=vr(i);for(var a in r)r[a].set&&n.push(a);i=Bt(i)}return n}let it=!1;function Si(e){var t=it;try{return it=!1,[e(),it]}finally{it=t}}function Xn(e,t,n,r){var i=(n&ar)!==0,s=(n&lr)!==0,a=r,l=!0,f=()=>(l&&(l=!1,a=s?ri(r):r),a),u;if(i){var v=We in e||Kt in e;u=_e(e,t)?.set??(v&&t in e?p=>e[t]=p:void 0)}var h,c=!1;i?[h,c]=Si(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=f(),u&&(Ar(),u(h)));var d;if(d=()=>{var p=e[t];return p===void 0?f():(l=!0,p)},(n&sr)===0)return d;if(u){var o=e.$$legacy;return(function(p,N){return arguments.length>0?((!N||o||c)&&u(N?d():p),p):d()})}var _=!1,m=((n&ir)!==0?Et:an)(()=>(_=!1,d()));i&&A(m);var g=b;return(function(p,N){if(arguments.length>0){const C=N?A(m):i?ve(p):p;return z(m,C),_=!0,a!==void 0&&(a=C),p}return be&&_||(g.f&pe)!==0?m.v:A(m)})}function Ai(e){return new Ni(e)}class Ni{#t;#e;constructor(t){var n=new Map,r=(s,a)=>{var l=hn(a,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return A(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===Kt?!0:(A(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return z(n.get(a)??r(a,l),l),Reflect.set(s,a,l)}});this.#e=(t.hydrate?vi:Hn)(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)&&St(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ae(this,s,{get(){return this.#e[s]},set(a){this.#e[s]=a},enumerable:!0});this.#e.$set=s=>{Object.assign(i,s)},this.#e.$destroy=()=>{di(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 Kn;typeof HTMLElement=="function"&&(Kn=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),Te(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=Oi(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]=st(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=Ai({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Wr(()=>{zr(()=>{this.$$r=!0;for(const r of Ge(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=st(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]=st(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 Ge(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function st(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 Oi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function Ri(e,t,n,r,i,s){let a=class extends Kn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Ge(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Ge(t).forEach(l=>{Ae(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=st(l,f,t),this.$$d[l]=f;var u=this.$$c;if(u){var v=_e(u,l)?.get;v?u[l]=f:u.$set({[l]:f})}}})}),r.forEach(l=>{Ae(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}const Jn={version:"0.60.0"};function Ci(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Le={},jt,zn;function Ii(){if(zn)return jt;zn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,f=`
|
|
3
|
+
`,u="/",v="*",h="",c="comment",d="declaration";jt=function(_,m){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];m=m||{};var g=1,p=1;function N(S){var $=S.match(t);$&&(g+=$.length);var k=S.lastIndexOf(f);p=~k?S.length-k:p+S.length}function C(){var S={line:g,column:p};return function($){return $.position=new R(S),I(),$}}function R(S){this.start=S,this.end={line:g,column:p},this.source=m.source}R.prototype.content=_;function w(S){var $=new Error(m.source+":"+g+":"+p+": "+S);if($.reason=S,$.filename=m.source,$.line=g,$.column=p,$.source=_,!m.silent)throw $}function E(S){var $=S.exec(_);if($){var k=$[0];return N(k),_=_.slice(k.length),$}}function I(){E(n)}function Q(S){var $;for(S=S||[];$=ee();)$!==!1&&S.push($);return S}function ee(){var S=C();if(!(u!=_.charAt(0)||v!=_.charAt(1))){for(var $=2;h!=_.charAt($)&&(v!=_.charAt($)||u!=_.charAt($+1));)++$;if($+=2,h===_.charAt($-1))return w("End of comment missing");var k=_.slice(2,$-2);return p+=2,N(k),_=_.slice($),p+=2,S({type:c,comment:k})}}function X(){var S=C(),$=E(r);if($){if(ee(),!E(i))return w("property missing ':'");var k=E(s),Ye=S({type:d,property:o($[0].replace(e,h)),value:k?o(k[0].replace(e,h)):h});return E(a),Ye}}function H(){var S=[];Q(S);for(var $;$=X();)$!==!1&&(S.push($),Q(S));return S}return I(),H()};function o(_){return _?_.replace(l,h):h}return jt}var Zn;function Pi(){if(Zn)return Le;Zn=1;var e=Le&&Le.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Le,"__esModule",{value:!0}),Le.default=n;var t=e(Ii());function n(r,i){var s=null;if(!r||typeof r!="string")return s;var a=(0,t.default)(r),l=typeof i=="function";return a.forEach(function(f){if(f.type==="declaration"){var u=f.property,v=f.value;l?i(u,v,f):v&&(s=s||{},s[u]=v)}}),s}return Le}var xi=Pi();const Qn=Ci(xi);Qn.default;function er(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 ki=ke('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css"/>'),Mi=ke('<div class="sidebar-card-row"><hb-sidenav-button></hb-sidenav-button></div>',2),Li=ke('<div class="sidebar-card-rows-container"></div>'),Di=ke('<div class="sidebar-card-container"><!></div>'),Fi=ke('<hb-navbar><i slot="nav-switcher"></i></hb-navbar> <!>',3),ji=ke('to be done, ref <a href="https://web.telegram.org/z/">https://web.telegram.com</a> left panel <!>',1);const qi={hash:"svelte-isd2cr",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 tr(e,t){Qt(t,!0),pi(e,qi);function n(c,d){t.$$host.dispatchEvent(new CustomEvent(c,{detail:d}))}let r=Xn(t,"id",7,""),i=Xn(t,"panels",23,()=>[]);ve({});let s=te(ve(i().find(c=>c.main)||i().find(c=>!c.parentPanelId)));Vr(()=>{if(r()||r(""),typeof i()=="string")try{i(JSON.parse(i()))}catch(c){console.error("error parsing panels",c)}});function a(c,d){const o=A(s)?.cards.find(m=>m.id===d),_=o?.rows.find(m=>m.key===c);if(_){const m=Object.assign({},A(s));delete m.cards;const g=Object.assign({},o);delete m.rows;const p={id:r(),row:_,panel:m,card:g};if(n("itemClick",p),_.switchToPanelId){const N=i().find(C=>C.id===_.switchToPanelId);N&&z(s,N,!0)}}}er({repoName:"@htmlbricks/hb-navbar",version:Jn.version}),er({repoName:"@htmlbricks/hb-sidenav-button",version:Jn.version});function l(c){const d={text:c.text,key:c.key};return c.bootstrapIcon&&(d.bootstrapIcon=c.bootstrapIcon),c.badge&&(d.badge=c.badge),d}var f={get id(){return r()},set id(c=""){r(c),St()},get panels(){return i()},set panels(c=[]){i(c),St()}};Cr();var u=ji();fi(c=>{var d=ki();Te(c,d)});var v=En($n(u),3);{var h=c=>{var d=Fi(),o=$n(d);Ct(()=>Vn(o,"companybrandname",A(s).title));var _=Ot(o);Je(o);var m=En(o,2);Un(m,17,()=>A(s).cards,g=>g.id+"_c_"+A(s).id,(g,p)=>{var N=Di(),C=Ot(N);{var R=w=>{var E=Li();Un(E,21,()=>A(p).rows,I=>I.key+"_r_"+A(p).id,(I,Q)=>{var ee=Mi(),X=Ot(ee);Ct(()=>Vn(X,"navlink",JSON.stringify(l(A(Q))))),Je(ee),jn("pageChange",X,H=>{a(A(Q).key,A(p).id)}),Te(I,ee)}),Je(E),Te(w,E)};Bn(C,w=>{A(p).rows&&A(p).rows.length>0&&w(R)})}Je(N),Te(g,N)}),Ct(()=>{$i(_,`font-weight:bold;cursor:${A(s).parentPanelId?"pointer":""}`),gi(_,1,`bi bi-${A(s).parentPanelId?"arrow-left":"list"}`)}),jn("navmenuswitch",o,g=>{A(s)?.parentPanelId&&z(s,i().find(p=>p.id===A(s)?.parentPanelId),!0)}),Te(c,d)};Bn(v,c=>{A(s)&&c(h)})}return Te(e,u),en(f)}customElements.define("hb-sidebar-cards-navigator",Ri(tr,{id:{},panels:{}},[],[],!0)),qt.Component=tr,Object.defineProperty(qt,Symbol.toStringTag,{value:"Module"})})(this["sidebar-cards-navigator"]=this["sidebar-cards-navigator"]||{});
|
|
5
|
+
//# sourceMappingURL=main.iife.js.map
|