@htmlbricks/hb-messages-topics-card 0.65.23 → 0.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +4 -4
- package/main.iife.js.map +1 -1
- package/manifest.json +28 -22
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
(function(Dt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Ur=1,Hr=2,Vr=16,Yr=1,Wr=4,Gr=8,Jr=16,Kr=2,Mt="[",He="[!",ht="]",Se={},T=Symbol(),Xr="http://www.w3.org/1999/xhtml",vt=!1;var Pt=Array.isArray,Zr=Array.prototype.indexOf,_t=Array.from,Ve=Object.keys,Ye=Object.defineProperty,_e=Object.getOwnPropertyDescriptor,Qr=Object.getOwnPropertyDescriptors,en=Object.prototype,tn=Array.prototype,Lt=Object.getPrototypeOf,It=Object.isExtensible;function rn(e){for(var t=0;t<e.length;t++)e[t]()}function Ft(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const x=2,pt=4,bt=8,ee=16,te=32,fe=64,We=128,V=512,S=1024,N=2048,re=4096,D=8192,ne=16384,Ge=32768,Ae=65536,jt=1<<17,Bt=1<<18,pe=1<<19,nn=1<<20,be=32768,gt=1<<21,mt=1<<22,ue=1<<23,Je=Symbol("$state"),qt=Symbol("legacy props"),sn=Symbol(""),Ce=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},wt=3,ze=8;function an(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function on(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ln(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function fn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function un(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function cn(){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 vn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function _n(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function pn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function bn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function ie(e){w=e}let b;function M(e){if(e===null)throw Ke(),Se;return b=e}function Xe(){return M(J(b))}function ce(e){if(w){if(J(b)!==null)throw Ke(),Se;b=e}}function gn(e=1){if(w){for(var t=e,r=b;t--;)r=J(r);b=r}}function Ze(e=!0){for(var t=0,r=b;;){if(r.nodeType===ze){var n=r.data;if(n===ht){if(t===0)return r;t-=1}else(n===Mt||n===He)&&(t+=1)}var i=J(r);e&&r.remove(),r=i}}function Ut(e){if(!e||e.nodeType!==ze)throw Ke(),Se;return e.data}function Ht(e){return e===this.v}function mn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Vt(e){return!mn(e,this.v)}let wn=!1,I=null;function Ne(e){I=e}function Yt(e,t=!1,r){I={p:I,i:!1,c:null,e:null,s:e,x:null,l:null}}function Wt(e){var t=I,r=t.e;if(r!==null){t.e=null;for(var n of r)_r(n)}return e!==void 0&&(t.x=e),t.i=!0,I=t.p,e??{}}function Gt(){return!0}let ge=[];function Jt(){var e=ge;ge=[],rn(e)}function yt(e){if(ge.length===0&&!Me){var t=ge;queueMicrotask(()=>{t===ge&&Jt()})}ge.push(e)}function yn(){for(;ge.length>0;)Jt()}function Kt(e){var t=p;if(t===null)return _.f|=ue,e;if((t.f&Ge)===0){if((t.f&We)===0)throw e;t.b.error(e)}else Re(e,t)}function Re(e,t){for(;t!==null;){if((t.f&We)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const Qe=new Set;let E=null,F=null,j=[],et=null,$t=!1,Me=!1;class Y{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#r=0;#n=0;#l=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#n>0}process(t){j=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of t)this.#a(n,r);this.is_fork||this.#u(),this.is_deferred()?(this.#o(r.effects),this.#o(r.render_effects),this.#o(r.block_effects)):(E=null,Zt(r.render_effects),Zt(r.effects),this.#l?.resolve()),F=null}#a(t,r){t.f^=S;for(var n=t.first;n!==null;){var i=n.f,s=(i&(te|fe))!==0,a=s&&(i&S)!==0,o=a||(i&D)!==0||this.skipped_effects.has(n);if((n.f&We)!==0&&n.b?.is_pending()&&(r={parent:r,effect:n,effects:[],render_effects:[],block_effects:[]}),!o&&n.fn!==null){s?n.f^=S:(i&pt)!==0?r.effects.push(n):je(n)&&((n.f&ee)!==0&&r.block_effects.push(n),Be(n));var f=n.first;if(f!==null){n=f;continue}}var l=n.parent;for(n=n.next;n===null&&l!==null;)l===r.effect&&(this.#o(r.effects),this.#o(r.render_effects),this.#o(r.block_effects),r=r.parent),n=l.next,l=l.parent}}#o(t){for(const r of t)((r.f&N)!==0?this.#s:this.#i).push(r),this.#f(r.deps),A(r,S)}#f(t){if(t!==null)for(const r of t)(r.f&x)===0||(r.f&be)===0||(r.f^=be,this.#f(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&ue)===0&&(this.current.set(t,t.v),F?.set(t,t.v))}activate(){E=this,this.apply()}deactivate(){E===this&&(E=null,F=null)}flush(){if(this.activate(),j.length>0){if(Xt(),E!==null&&E!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#n===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#c()}#c(){if(Qe.size>1){this.previous.clear();var t=F,r=!0,n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Qe){if(s===this){r=!1;continue}const a=[];for(const[f,l]of this.current){if(s.current.has(f))if(r&&l!==s.current.get(f))s.current.set(f,l);else continue;a.push(f)}if(a.length===0)continue;const o=[...s.current.keys()].filter(f=>!this.current.has(f));if(o.length>0){var i=j;j=[];const f=new Set,l=new Map;for(const u of a)Qt(u,o,f,l);if(j.length>0){E=s,s.apply();for(const u of j)s.#a(u,n);s.deactivate()}j=i}}E=null,F=t}this.committed=!0,Qe.delete(this)}increment(t){this.#r+=1,t&&(this.#n+=1)}decrement(t){this.#r-=1,t&&(this.#n-=1),this.revive()}revive(){for(const t of this.#s)A(t,N),me(t);for(const t of this.#i)A(t,re),me(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#l??=Ft()).promise}static ensure(){if(E===null){const t=E=new Y;Qe.add(E),Me||Y.enqueue(()=>{E===t&&t.flush()})}return E}static enqueue(t){yt(t)}apply(){}}function Et(e){var t=Me;Me=!0;try{for(var r;;){if(yn(),j.length===0&&(E?.flush(),j.length===0))return et=null,r;Xt()}}finally{Me=t}}function Xt(){var e=ve;$t=!0;var t=null;try{var r=0;for(it(!0);j.length>0;){var n=Y.ensure();if(r++>1e3){var i,s;$n()}n.process(j),de.clear()}}finally{$t=!1,it(e),et=null}}function $n(){try{un()}catch(e){Re(e,et)}}let se=null;function Zt(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(ne|D))===0&&je(n)&&(se=new Set,Be(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?mr(n):n.fn=null),se?.size>0)){de.clear();for(const i of se){if((i.f&(ne|D))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)se.has(a)&&(se.delete(a),s.push(a)),a=a.parent;for(let o=s.length-1;o>=0;o--){const f=s[o];(f.f&(ne|D))===0&&Be(f)}}se.clear()}}se=null}}function Qt(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&x)!==0?Qt(i,t,r,n):(s&(mt|ee))!==0&&(s&N)===0&&er(i,t,n)&&(A(i,N),me(i))}}function er(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&x)!==0&&er(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function me(e){for(var t=et=e;t.parent!==null;){t=t.parent;var r=t.f;if($t&&t===p&&(r&ee)!==0&&(r&Bt)===0)return;if((r&(fe|te))!==0){if((r&S)===0)return;t.f^=S}}j.push(t)}function En(e){let t=0,r=we(0),n;return()=>{nt()&&($(r),pr(()=>(t===0&&(n=Nr(()=>e(()=>Le(r)))),t+=1,()=>{yt(()=>{t-=1,t===0&&(n?.(),n=void 0,Le(r))})})))}}var xn=Ae|pe|We;function kn(e,t,r){new Tn(e,t,r)}class Tn{parent;#t=!1;#e;#r=w?b:null;#n;#l;#s;#i=null;#a=null;#o=null;#f=null;#u=null;#c=0;#d=0;#v=!1;#h=null;#m=En(()=>(this.#h=we(this.#c),()=>{this.#h=null}));constructor(t,r,n){this.#e=t,this.#n=r,this.#l=n,this.parent=p.b,this.#t=!!this.#n.pending,this.#s=Ct(()=>{if(p.b=this,w){const s=this.#r;Xe(),s.nodeType===ze&&s.data===He?this.#y():this.#w()}else{var i=this.#b();try{this.#i=B(()=>n(i))}catch(s){this.error(s)}this.#d>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},xn),w&&(this.#e=b)}#w(){try{this.#i=B(()=>this.#l(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#n.pending;t&&(this.#a=B(()=>t(this.#e)),Y.enqueue(()=>{var r=this.#b();this.#i=this.#_(()=>(Y.ensure(),B(()=>this.#l(r)))),this.#d>0?this.#p():(Oe(this.#a,()=>{this.#a=null}),this.#t=!1)}))}#b(){var t=this.#e;return this.#t&&(this.#u=W(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#n.pending}#_(t){var r=p,n=_,i=I;Z(this.#s),R(this.#s),Ne(this.#s.ctx);try{return t()}catch(s){return Kt(s),null}finally{Z(r),R(n),Ne(i)}}#p(){const t=this.#n.pending;this.#i!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#u),$r(this.#i,this.#f)),this.#a===null&&(this.#a=B(()=>t(this.#e)))}#g(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#g(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#a&&Oe(this.#a,()=>{this.#a=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t){this.#g(t),this.#c+=t,this.#h&&Pe(this.#h,this.#c)}get_effect_pending(){return this.#m(),$(this.#h)}error(t){var r=this.#n.onerror;let n=this.#n.failed;if(this.#v||!r&&!n)throw t;this.#i&&(C(this.#i),this.#i=null),this.#a&&(C(this.#a),this.#a=null),this.#o&&(C(this.#o),this.#o=null),w&&(M(this.#r),gn(),M(Ze()));var i=!1,s=!1;const a=()=>{if(i){bn();return}i=!0,s&&pn(),Y.ensure(),this.#c=0,this.#o!==null&&Oe(this.#o,()=>{this.#o=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,B(()=>this.#l(this.#e)))),this.#d>0?this.#p():this.#t=!1};var o=_;try{R(null),s=!0,r?.(t,a),s=!1}catch(f){Re(f,this.#s&&this.#s.parent)}finally{R(o)}n&&yt(()=>{this.#o=this.#_(()=>{Y.ensure(),this.#v=!0;try{return B(()=>{n(this.#e,()=>t,()=>a)})}catch(f){return Re(f,this.#s.parent),null}finally{this.#v=!1}})})}}function Sn(e,t,r){for(var n=[],i=t.length,s=0;s<i;s++)zt(t[s].e,n,!0);wr(n,()=>{var a=n.length===0&&r!==null;if(a){var o=r,f=o.parentNode;dr(f),f.append(o),e.items.clear(),G(e,t[0].prev,t[i-1].next)}for(var l=0;l<i;l++){var u=t[l];a||(e.items.delete(u.k),G(e,u.prev,u.next)),C(u.e,!a)}e.first===t[0]&&(e.first=t[0].prev)})}function An(e,t,r,n,i,s=null){var a=e,o=new Map,f=null;w&&Xe();var l=null,u=tr(()=>{var g=r();return Pt(g)?g:g==null?[]:_t(g)}),d,c=!0;function h(){Cn(y,d,a,t,n),l!==null&&(d.length===0?(l.fragment?(a.before(l.fragment),l.fragment=null):Nt(l.effect),v.first=l.effect):Oe(l.effect,()=>{l=null}))}var v=Ct(()=>{d=$(u);var g=d.length;let k=!1;if(w){var m=Ut(a)===He;m!==(g===0)&&(a=Ze(),M(a),ie(!1),k=!0)}for(var U=new Set,O=E,Q=null,ke=hr(),H=0;H<g;H+=1){w&&b.nodeType===ze&&b.data===ht&&(a=b,k=!0,ie(!1));var Ue=d[H],Te=n(Ue,H),L=c?null:o.get(Te);L?(Pe(L.v,Ue),L.i=H,ke&&O.skipped_effects.delete(L.e)):(L=zn(c?a:null,Q,Ue,Te,H,i,t,r),c&&(L.o=!0,Q===null?f=L:Q.next=L,Q=L),o.set(Te,L)),U.add(Te)}if(g===0&&s&&!l)if(c)l={fragment:null,effect:B(()=>s(a))};else{var ct=document.createDocumentFragment(),dt=W();ct.append(dt),l={fragment:ct,effect:B(()=>s(dt))}}if(w&&g>0&&M(Ze()),!c)if(ke){for(const[yi,$i]of o)U.has(yi)||O.skipped_effects.add($i.e);O.oncommit(h),O.ondiscard(()=>{})}else h();k&&ie(!0),$(u)}),y={effect:v,items:o,first:f};c=!1,w&&(a=b)}function Cn(e,t,r,n,i){var s=t.length,a=e.items,o=e.first,f,l=null,u=[],d=[],c,h,v,y;for(y=0;y<s;y+=1){if(c=t[y],h=i(c,y),v=a.get(h),e.first??=v,!v.o){v.o=!0;var g=l?l.next:o;G(e,l,v),G(e,v,g),xt(v,g,r),l=v,u=[],d=[],o=l.next;continue}if((v.e.f&D)!==0&&Nt(v.e),v!==o){if(f!==void 0&&f.has(v)){if(u.length<d.length){var k=d[0],m;l=k.prev;var U=u[0],O=u[u.length-1];for(m=0;m<u.length;m+=1)xt(u[m],k,r);for(m=0;m<d.length;m+=1)f.delete(d[m]);G(e,U.prev,O.next),G(e,l,U),G(e,O,k),o=k,l=O,y-=1,u=[],d=[]}else f.delete(v),xt(v,o,r),G(e,v.prev,v.next),G(e,v,l===null?e.first:l.next),G(e,l,v),l=v;continue}for(u=[],d=[];o!==null&&o.k!==h;)(o.e.f&D)===0&&(f??=new Set).add(o),d.push(o),o=o.next;if(o===null)continue;v=o}u.push(v),l=v,o=v.next}if(o!==null||f!==void 0){for(var Q=f===void 0?[]:_t(f);o!==null;)(o.e.f&D)===0&&Q.push(o),o=o.next;var ke=Q.length;if(ke>0){var H=null;Sn(e,Q,H)}}}function zn(e,t,r,n,i,s,a,o){var f=(a&Ur)!==0,l=(a&Vr)===0,u=f?l?sr(r,!1,!1):we(r):r,d=(a&Hr)===0?i:we(i),c={i:d,v:u,k:n,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var h=document.createDocumentFragment();h.append(e=W())}return c.e=B(()=>s(e,u,d,o)),t!==null&&(t.next=c),c}finally{}}function xt(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==null&&s!==n;){var a=J(s);i.before(s),s=a}}function G(e,t,r){t===null?(e.first=r,e.effect.first=r&&r.e):(t.e.next&&(t.e.next.prev=null),t.next=r,t.e.next=r&&r.e),r===null?e.effect.last=t&&t.e:(r.e.prev&&(r.e.prev.next=null),r.prev=t,r.e.prev=t&&t.e)}function Nn(e,t,r,n){const i=kt;if(r.length===0&&e.length===0){n(t.map(i));return}var s=E,a=p,o=Rn();function f(){Promise.all(r.map(l=>On(l))).then(l=>{o();try{n([...t.map(i),...l])}catch(u){(a.f&ne)===0&&Re(u,a)}s?.deactivate(),tt()}).catch(l=>{Re(l,a)})}e.length>0?Promise.all(e).then(()=>{o();try{return f()}finally{s?.deactivate(),tt()}}):f()}function Rn(){var e=p,t=_,r=I,n=E;return function(s=!0){Z(e),R(t),Ne(r),s&&n?.activate()}}function tt(){Z(null),R(null),Ne(null)}function kt(e){var t=x|N,r=_!==null&&(_.f&x)!==0?_:null;return p!==null&&(p.f|=pe),{ctx:I,deps:null,effects:null,equals:Ht,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:r??p,ac:null}}function On(e,t){let r=p;r===null&&an();var n=r.b,i=void 0,s=we(T),a=!_,o=new Map;return Un(()=>{var f=Ft();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{l===E&&l.committed&&l.deactivate(),tt()})}catch(c){f.reject(c),tt()}var l=E;if(a){var u=!n.is_pending();n.update_pending_count(1),l.increment(u),o.get(l)?.reject(Ce),o.delete(l),o.set(l,f)}const d=(c,h=void 0)=>{if(l.activate(),h)h!==Ce&&(s.f|=ue,Pe(s,h));else{(s.f&ue)!==0&&(s.f^=ue),Pe(s,c);for(const[v,y]of o){if(o.delete(v),v===l)break;y.reject(Ce)}}a&&(n.update_pending_count(-1),l.decrement(u))};f.promise.then(d,c=>d(null,c||"unknown"))}),In(()=>{for(const f of o.values())f.reject(Ce)}),new Promise(f=>{function l(u){function d(){u===i?f(s):l(i)}u.then(d,d)}l(i)})}function tr(e){const t=kt(e);return t.equals=Vt,t}function rr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)C(t[r])}}function Dn(e){for(var t=e.parent;t!==null;){if((t.f&x)===0)return(t.f&ne)===0?t:null;t=t.parent}return null}function Tt(e){var t,r=p;Z(Dn(e));try{e.f&=~be,rr(e),t=Ar(e)}finally{Z(r)}return t}function nr(e){var t=Tt(e);if(e.equals(t)||(E?.is_fork||(e.v=t),e.wv=Tr()),!$e)if(F!==null)nt()&&F.set(e,t);else{var r=(e.f&V)===0?re:S;A(e,r)}}let St=new Set;const de=new Map;let ir=!1;function we(e,t){var r={f:0,v:e,reactions:null,equals:Ht,rv:0,wv:0};return r}function ae(e,t){const r=we(e);return Wn(r),r}function sr(e,t=!1,r=!0){const n=we(e);return t||(n.equals=Vt),n}function oe(e,t,r=!1){_!==null&&(!X||(_.f&jt)!==0)&&Gt()&&(_.f&(x|ee|mt|jt))!==0&&!le?.includes(e)&&_n();let n=r?ye(t):t;return Pe(e,n)}function Pe(e,t){if(!e.equals(t)){var r=e.v;$e?de.set(e,t):de.set(e,r),e.v=t;var n=Y.ensure();n.capture(e,r),(e.f&x)!==0&&((e.f&N)!==0&&Tt(e),A(e,(e.f&V)!==0?S:re)),e.wv=Tr(),ar(e,N),p!==null&&(p.f&S)!==0&&(p.f&(te|fe))===0&&(q===null?Gn([e]):q.push(e)),!n.is_fork&&St.size>0&&!ir&&Mn()}return t}function Mn(){ir=!1;var e=ve;it(!0);const t=Array.from(St);try{for(const r of t)(r.f&S)!==0&&A(r,re),je(r)&&Be(r)}finally{it(e)}St.clear()}function Le(e){oe(e,e.v+1)}function ar(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i],a=s.f,o=(a&N)===0;if(o&&A(s,t),(a&x)!==0){var f=s;F?.delete(f),(a&be)===0&&(a&V&&(s.f|=be),ar(f,re))}else o&&((a&ee)!==0&&se!==null&&se.add(s),me(s))}}function ye(e){if(typeof e!="object"||e===null||Je in e)return e;const t=Lt(e);if(t!==en&&t!==tn)return e;var r=new Map,n=Pt(e),i=ae(0),s=Ee,a=o=>{if(Ee===s)return o();var f=_,l=Ee;R(null),kr(s);var u=o();return R(f),kr(l),u};return n&&r.set("length",ae(e.length)),new Proxy(e,{defineProperty(o,f,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&hn();var u=r.get(f);return u===void 0?u=a(()=>{var d=ae(l.value);return r.set(f,d),d}):oe(u,l.value,!0),!0},deleteProperty(o,f){var l=r.get(f);if(l===void 0){if(f in o){const u=a(()=>ae(T));r.set(f,u),Le(i)}}else oe(l,T),Le(i);return!0},get(o,f,l){if(f===Je)return e;var u=r.get(f),d=f in o;if(u===void 0&&(!d||_e(o,f)?.writable)&&(u=a(()=>{var h=ye(d?o[f]:T),v=ae(h);return v}),r.set(f,u)),u!==void 0){var c=$(u);return c===T?void 0:c}return Reflect.get(o,f,l)},getOwnPropertyDescriptor(o,f){var l=Reflect.getOwnPropertyDescriptor(o,f);if(l&&"value"in l){var u=r.get(f);u&&(l.value=$(u))}else if(l===void 0){var d=r.get(f),c=d?.v;if(d!==void 0&&c!==T)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return l},has(o,f){if(f===Je)return!0;var l=r.get(f),u=l!==void 0&&l.v!==T||Reflect.has(o,f);if(l!==void 0||p!==null&&(!u||_e(o,f)?.writable)){l===void 0&&(l=a(()=>{var c=u?ye(o[f]):T,h=ae(c);return h}),r.set(f,l));var d=$(l);if(d===T)return!1}return u},set(o,f,l,u){var d=r.get(f),c=f in o;if(n&&f==="length")for(var h=l;h<d.v;h+=1){var v=r.get(h+"");v!==void 0?oe(v,T):h in o&&(v=a(()=>ae(T)),r.set(h+"",v))}if(d===void 0)(!c||_e(o,f)?.writable)&&(d=a(()=>ae(void 0)),oe(d,ye(l)),r.set(f,d));else{c=d.v!==T;var y=a(()=>ye(l));oe(d,y)}var g=Reflect.getOwnPropertyDescriptor(o,f);if(g?.set&&g.set.call(u,l),!c){if(n&&typeof f=="string"){var k=r.get("length"),m=Number(f);Number.isInteger(m)&&m>=k.v&&oe(k,m+1)}Le(i)}return!0},ownKeys(o){$(i);var f=Reflect.ownKeys(o).filter(d=>{var c=r.get(d);return c===void 0||c.v!==T});for(var[l,u]of r)u.v!==T&&!(l in o)&&f.push(l);return f},setPrototypeOf(){vn()}})}var or,lr,fr,ur;function At(){if(or===void 0){or=window,lr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;fr=_e(t,"firstChild").get,ur=_e(t,"nextSibling").get,It(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),It(r)&&(r.__t=void 0)}}function W(e=""){return document.createTextNode(e)}function Ie(e){return fr.call(e)}function J(e){return ur.call(e)}function he(e,t){if(!w)return Ie(e);var r=Ie(b);if(r===null)r=b.appendChild(W());else if(t&&r.nodeType!==wt){var n=W();return r?.before(n),M(n),n}return M(r),r}function cr(e,t=!1){if(!w){var r=Ie(e);return r instanceof Comment&&r.data===""?J(r):r}if(t&&b?.nodeType!==wt){var n=W();return b?.before(n),M(n),n}return b}function rt(e,t=1,r=!1){let n=w?b:e;for(var i;t--;)i=n,n=J(n);if(!w)return n;if(r&&n?.nodeType!==wt){var s=W();return n===null?i?.after(s):n.before(s),M(s),s}return M(n),n}function dr(e){e.textContent=""}function hr(){return!1}function vr(e){var t=_,r=p;R(null),Z(null);try{return e()}finally{R(t),Z(r)}}function Pn(e){p===null&&(_===null&&fn(),ln()),$e&&on()}function Ln(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function K(e,t,r){var n=p;n!==null&&(n.f&D)!==0&&(e|=D);var i={ctx:I,deps:null,nodes_start:null,nodes_end:null,f:e|N|V,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Be(i),i.f|=Ge}catch(o){throw C(i),o}else t!==null&&me(i);var s=i;if(r&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&pe)===0&&(s=s.first,(e&ee)!==0&&(e&Ae)!==0&&s!==null&&(s.f|=Ae)),s!==null&&(s.parent=n,n!==null&&Ln(s,n),_!==null&&(_.f&x)!==0&&(e&fe)===0)){var a=_;(a.effects??=[]).push(s)}return i}function nt(){return _!==null&&!X}function In(e){const t=K(bt,null,!1);return A(t,S),t.teardown=e,t}function Fn(e){Pn();var t=p.f,r=!_&&(t&te)!==0&&(t&Ge)===0;if(r){var n=I;(n.e??=[]).push(e)}else return _r(e)}function _r(e){return K(pt|nn,e,!1)}function jn(e){Y.ensure();const t=K(fe|pe,e,!0);return()=>{C(t)}}function Bn(e){Y.ensure();const t=K(fe|pe,e,!0);return(r={})=>new Promise(n=>{r.outro?Oe(t,()=>{C(t),n(void 0)}):(C(t),n(void 0))})}function qn(e){return K(pt,e,!1)}function Un(e){return K(mt|pe,e,!0)}function pr(e,t=0){return K(bt|t,e,!0)}function Hn(e,t=[],r=[],n=[]){Nn(n,t,r,i=>{K(bt,()=>e(...i.map($)),!0)})}function Ct(e,t=0){var r=K(ee|t,e,!0);return r}function B(e){return K(te|pe,e,!0)}function br(e){var t=e.teardown;if(t!==null){const r=$e,n=_;Er(!0),R(null);try{t.call(null)}finally{Er(r),R(n)}}}function gr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&vr(()=>{i.abort(Ce)});var n=r.next;(r.f&fe)!==0?r.parent=null:C(r,t),r=n}}function Vn(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&te)===0&&C(t),t=r}}function C(e,t=!0){var r=!1;(t||(e.f&Bt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Yn(e.nodes_start,e.nodes_end),r=!0),gr(e,t&&!r),st(e,0),A(e,ne);var n=e.transitions;if(n!==null)for(const s of n)s.stop();br(e);var i=e.parent;i!==null&&i.first!==null&&mr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Yn(e,t){for(;e!==null;){var r=e===t?null:J(e);e.remove(),e=r}}function mr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Oe(e,t,r=!0){var n=[];zt(e,n,!0),wr(n,()=>{r&&C(e),t&&t()})}function wr(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function zt(e,t,r){if((e.f&D)===0){if(e.f^=D,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var n=e.first;n!==null;){var i=n.next,s=(n.f&Ae)!==0||(n.f&te)!==0&&(e.f&ee)!==0;zt(n,t,s?r:!1),n=i}}}function Nt(e){yr(e,!0)}function yr(e,t){if((e.f&D)!==0){e.f^=D,(e.f&S)===0&&(A(e,N),me(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Ae)!==0||(r.f&te)!==0;yr(r,i?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function $r(e,t){for(var r=e.nodes_start,n=e.nodes_end;r!==null;){var i=r===n?null:J(r);t.append(r),r=i}}let ve=!1;function it(e){ve=e}let $e=!1;function Er(e){$e=e}let _=null,X=!1;function R(e){_=e}let p=null;function Z(e){p=e}let le=null;function Wn(e){_!==null&&(le===null?le=[e]:le.push(e))}let z=null,P=0,q=null;function Gn(e){q=e}let xr=1,Fe=0,Ee=Fe;function kr(e){Ee=e}function Tr(){return++xr}function je(e){var t=e.f;if((t&N)!==0)return!0;if(t&x&&(e.f&=~be),(t&re)!==0){var r=e.deps;if(r!==null)for(var n=r.length,i=0;i<n;i++){var s=r[i];if(je(s)&&nr(s),s.wv>e.wv)return!0}(t&V)!==0&&F===null&&A(e,S)}return!1}function Sr(e,t,r=!0){var n=e.reactions;if(n!==null&&!le?.includes(e))for(var i=0;i<n.length;i++){var s=n[i];(s.f&x)!==0?Sr(s,t,!1):t===s&&(r?A(s,N):(s.f&S)!==0&&A(s,re),me(s))}}function Ar(e){var t=z,r=P,n=q,i=_,s=le,a=I,o=X,f=Ee,l=e.f;z=null,P=0,q=null,_=(l&(te|fe))===0?e:null,le=null,Ne(e.ctx),X=!1,Ee=++Fe,e.ac!==null&&(vr(()=>{e.ac.abort(Ce)}),e.ac=null);try{e.f|=gt;var u=e.fn,d=u(),c=e.deps;if(z!==null){var h;if(st(e,P),c!==null&&P>0)for(c.length=P+z.length,h=0;h<z.length;h++)c[P+h]=z[h];else e.deps=c=z;if(ve&&nt()&&(e.f&V)!==0)for(h=P;h<c.length;h++)(c[h].reactions??=[]).push(e)}else c!==null&&P<c.length&&(st(e,P),c.length=P);if(Gt()&&q!==null&&!X&&c!==null&&(e.f&(x|re|N))===0)for(h=0;h<q.length;h++)Sr(q[h],e);return i!==null&&i!==e&&(Fe++,q!==null&&(n===null?n=q:n.push(...q))),(e.f&ue)!==0&&(e.f^=ue),d}catch(v){return Kt(v)}finally{e.f^=gt,z=t,P=r,q=n,_=i,le=s,Ne(a),X=o,Ee=f}}function Jn(e,t){let r=t.reactions;if(r!==null){var n=Zr.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&x)!==0&&(z===null||!z.includes(t))&&(A(t,re),(t.f&V)!==0&&(t.f^=V,t.f&=~be),rr(t),st(t,0))}function st(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Jn(e,r[n])}function Be(e){var t=e.f;if((t&ne)===0){A(e,S);var r=p,n=ve;p=e,ve=!0;try{(t&ee)!==0?Vn(e):gr(e),br(e);var i=Ar(e);e.teardown=typeof i=="function"?i:null,e.wv=xr;var s;vt&&wn&&(e.f&N)!==0&&e.deps}finally{ve=n,p=r}}}function $(e){var t=e.f,r=(t&x)!==0;if(_!==null&&!X){var n=p!==null&&(p.f&ne)!==0;if(!n&&!le?.includes(e)){var i=_.deps;if((_.f>)!==0)e.rv<Fe&&(e.rv=Fe,z===null&&i!==null&&i[P]===e?P++:z===null?z=[e]:z.includes(e)||z.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:s.includes(_)||s.push(_)}}}if($e){if(de.has(e))return de.get(e);if(r){var a=e,o=a.v;return((a.f&S)===0&&a.reactions!==null||zr(a))&&(o=Tt(a)),de.set(a,o),o}}else r&&!F?.has(e)&&(a=e,je(a)&&nr(a),ve&&nt()&&(a.f&V)===0&&Cr(a));if(F?.has(e))return F.get(e);if((e.f&ue)!==0)throw e.v;return e.v}function Cr(e){if(e.deps!==null){e.f^=V;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&x)!==0&&(t.f&V)===0&&Cr(t)}}function zr(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(de.has(t)||(t.f&x)!==0&&zr(t))return!0;return!1}function Nr(e){var t=X;try{return X=!0,e()}finally{X=t}}const Kn=-7169;function A(e,t){e.f=e.f&Kn|t}const Rr=new Set,Rt=new Set;function Xn(e){for(var t=0;t<e.length;t++)Rr.add(e[t]);for(var r of Rt)r(e)}let Or=null;function at(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Or=e;var a=0,o=Or===e&&e.__root;if(o){var f=i.indexOf(o);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var l=i.indexOf(t);if(l===-1)return;f<=l&&(a=f)}if(s=i[a]||e.target,s!==t){Ye(e,"currentTarget",{configurable:!0,get(){return s||r}});var u=_,d=p;R(null),Z(null);try{for(var c,h=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var y=s["__"+n];y!=null&&(!s.disabled||e.target===s)&&y.call(s,e)}catch(g){c?h.push(g):c=g}if(e.cancelBubble||v===t||v===null)break;s=v}if(c){for(let g of h)queueMicrotask(()=>{throw g});throw c}}finally{e.__root=t,delete e.currentTarget,R(u),Z(d)}}}function Zn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function qe(e,t){var r=p;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Qn(e,t){var r=(t&Kr)!==0,n,i=!e.startsWith("<!>");return()=>{if(w)return qe(b,null),b;n===void 0&&(n=Zn(i?e:"<!>"+e),n=Ie(n));var s=r||lr?document.importNode(n,!0):n.cloneNode(!0);return qe(s,s),s}}function Dr(){if(w)return qe(b,null),b;var e=document.createDocumentFragment(),t=document.createComment(""),r=W();return e.append(t,r),qe(t,r),e}function ot(e,t){if(w){var r=p;((r.f&Ge)===0||r.nodes_end===null)&&(r.nodes_end=b),Xe();return}e!==null&&e.before(t)}const ei=["touchstart","touchmove"];function ti(e){return ei.includes(e)}function lt(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Mr(e,t){return Pr(e,t)}function ri(e,t){At(),t.intro=t.intro??!1;const r=t.target,n=w,i=b;try{for(var s=Ie(r);s&&(s.nodeType!==ze||s.data!==Mt);)s=J(s);if(!s)throw Se;ie(!0),M(s);const a=Pr(e,{...t,anchor:s});return ie(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
-
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw a;return a!==Se&&console.warn("Failed to hydrate: ",a),t.recover===!1&&cn(),At(),dr(r),ie(!1),Mr(e,t)}finally{ie(n),M(i)}}const De=new Map;function Pr(e,{target:t,anchor:r,props:n={},events:i,context:s,intro:a=!0}){At();var o=new Set,f=d=>{for(var c=0;c<d.length;c++){var h=d[c];if(!o.has(h)){o.add(h);var v=ti(h);t.addEventListener(h,at,{passive:v});var y=De.get(h);y===void 0?(document.addEventListener(h,at,{passive:v}),De.set(h,1)):De.set(h,y+1)}}};f(_t(Rr)),Rt.add(f);var l=void 0,u=Bn(()=>{var d=r??t.appendChild(W());return kn(d,{pending:()=>{}},c=>{if(s){Yt({});var h=I;h.c=s}if(i&&(n.$$events=i),w&&qe(c,null),l=e(c,n)||{},w&&(p.nodes_end=b,b===null||b.nodeType!==ze||b.data!==ht))throw Ke(),Se;s&&Wt()}),()=>{for(var c of o){t.removeEventListener(c,at);var h=De.get(c);--h===0?(document.removeEventListener(c,at),De.delete(c)):De.set(c,h)}Rt.delete(f),d!==r&&d.parentNode?.removeChild(d)}});return Ot.set(l,u),l}let Ot=new WeakMap;function ni(e,t){const r=Ot.get(e);return r?(Ot.delete(e),r(t)):Promise.resolve()}class ii{anchor;#t=new Map;#e=new Map;#r=new Map;#n=new Set;#l=!0;constructor(t,r=!0){this.anchor=t,this.#l=r}#s=()=>{var t=E;if(this.#t.has(t)){var r=this.#t.get(t),n=this.#e.get(r);if(n)Nt(n),this.#n.delete(r);else{var i=this.#r.get(r);i&&(this.#e.set(r,i.effect),this.#r.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[s,a]of this.#t){if(this.#t.delete(s),s===t)break;const o=this.#r.get(a);o&&(C(o.effect),this.#r.delete(a))}for(const[s,a]of this.#e){if(s===r||this.#n.has(s))continue;const o=()=>{if(Array.from(this.#t.values()).includes(s)){var l=document.createDocumentFragment();$r(a,l),l.append(W()),this.#r.set(s,{effect:a,fragment:l})}else C(a);this.#n.delete(s),this.#e.delete(s)};this.#l||!n?(this.#n.add(s),Oe(a,o,!1)):o()}}};#i=t=>{this.#t.delete(t);const r=Array.from(this.#t.values());for(const[n,i]of this.#r)r.includes(n)||(C(i.effect),this.#r.delete(n))};ensure(t,r){var n=E,i=hr();if(r&&!this.#e.has(t)&&!this.#r.has(t))if(i){var s=document.createDocumentFragment(),a=W();s.append(a),this.#r.set(t,{effect:B(()=>r(a)),fragment:s})}else this.#e.set(t,B(()=>r(this.anchor)));if(this.#t.set(n,t),i){for(const[o,f]of this.#e)o===t?n.skipped_effects.delete(f):n.skipped_effects.add(f);for(const[o,f]of this.#r)o===t?n.skipped_effects.delete(f.effect):n.skipped_effects.add(f.effect);n.oncommit(this.#s),n.ondiscard(this.#i)}else w&&(this.anchor=b),this.#s()}}function si(e,t,r=!1){w&&Xe();var n=new ii(e),i=r?Ae:0;function s(a,o){if(w){const l=Ut(e)===He;if(a===l){var f=Ze();M(f),n.anchor=f,ie(!1),n.ensure(a,o),ie(!0);return}}n.ensure(a,o)}Ct(()=>{var a=!1;t((o,f=!0)=>{a=!0,s(f,o)}),a||s(!1,null)},i)}function ai(e,t){qn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function oi(e,t){return e==null?null:String(e)}function li(e,t,r,n){var i=e.__style;if(w||i!==t){var s=oi(t);(!w||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return n}const fi=Symbol("is custom element"),ui=Symbol("is html");function Lr(e,t,r,n){var i=ci(e);w&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[sn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&di(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function ci(e){return e.__attributes??={[fi]:e.nodeName.includes("-"),[ui]:e.namespaceURI===Xr}}var Ir=new Map;function di(e){var t=e.getAttribute("is")||e.nodeName,r=Ir.get(t);if(r)return r;Ir.set(t,r=[]);for(var n,i=e,s=Element.prototype;s!==i;){n=Qr(i);for(var a in n)n[a].set&&r.push(a);i=Lt(i)}return r}let ft=!1;function hi(e){var t=ft;try{return ft=!1,[e(),ft]}finally{ft=t}}function Fr(e,t,r,n){var i=(r&Gr)!==0,s=(r&Jr)!==0,a=n,o=!0,f=()=>(o&&(o=!1,a=s?Nr(n):n),a),l;if(i){var u=Je in e||qt in e;l=_e(e,t)?.set??(u&&t in e?m=>e[t]=m:void 0)}var d,c=!1;i?[d,c]=hi(()=>e[t]):d=e[t],d===void 0&&n!==void 0&&(d=f(),l&&(dn(),l(d)));var h;if(h=()=>{var m=e[t];return m===void 0?f():(o=!0,m)},(r&Wr)===0)return h;if(l){var v=e.$$legacy;return(function(m,U){return arguments.length>0?((!U||v||c)&&l(U?h():m),m):h()})}var y=!1,g=((r&Yr)!==0?kt:tr)(()=>(y=!1,h()));i&&$(g);var k=p;return(function(m,U){if(arguments.length>0){const O=U?$(g):i?ye(m):m;return oe(g,O),y=!0,a!==void 0&&(a=O),m}return $e&&y||(k.f&ne)!==0?g.v:$(g)})}function vi(e){return new _i(e)}class _i{#t;#e;constructor(t){var r=new Map,n=(s,a)=>{var o=sr(a,!1,!1);return r.set(s,o),o};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return $(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===qt?!0:($(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,o){return oe(r.get(a)??n(a,o),o),Reflect.set(s,a,o)}});this.#e=(t.hydrate?ri:Mr)(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)&&Et(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ye(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=()=>{ni(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...i)=>r.call(this,...i);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(i=>i!==n)}}$destroy(){this.#e.$destroy()}}let jr;typeof HTMLElement=="function"&&(jr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const s=document.createElement("slot");n!=="default"&&(s.name=n),ot(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=pi(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=ut(i,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=vi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=jn(()=>{pr(()=>{this.$$r=!0;for(const n of Ve(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=ut(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const s=this.$$c.$on(n,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ut(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ve(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ut(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="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 pi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function bi(e,t,r,n,i,s){let a=class extends jr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Ve(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Ve(t).forEach(o=>{Ye(a.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(f){f=ut(o,f,t),this.$$d[o]=f;var l=this.$$c;if(l){var u=_e(l,o)?.get;u?l[o]=f:l.$set({[o]:f})}}})}),n.forEach(o=>{Ye(a.prototype,o,{get(){return this.$$c?.[o]}})}),e.element=a,a}var xe={},Br;function gi(){if(Br)return xe;Br=1,Object.defineProperty(xe,"__esModule",{value:!0}),xe.LanguageTranslator=void 0,xe.getChildStyleToPass=e,xe.addComponent=t;function e(n,i){var s,a,o="";try{if(n&&i?.length&&(!((s=Object.keys(n))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(c){return Object.keys(n).includes(c.name)}))===null||a===void 0)&&a.length))for(var f=function(c){var h=i?.filter(function(v){return v.name===c&&v.defaultValue!==n[c]});h&&(o+="".concat(c,":").concat(n[c],";"))},l=0,u=Object.keys(n);l<u.length;l++){var d=u[l];f(d)}}catch(c){console.error("error getting child style to pass",c)}finally{return o}}function t(n){var i,s=((i=n?.repoName.split("/"))===null||i===void 0?void 0:i[1])||n?.repoName;if(!s)throw new Error("wrong componentPath "+n?.repoName);if(!n?.version)throw new Error("wrong version "+n?.version);var a=n?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var o=document.createElement("script");if(o.id=s+"-script",o.src="https://cdn.jsdelivr.net/npm/".concat(n.repoName,"@").concat(n.version,"/").concat(a),n?.local)o.src="".concat(n.local);else if(location.href.includes("localhost:6006")){var f=s.split("-")[0];o.src="http://localhost:6006/webcomponents/".concat(s.replace(f+"-",""),"/").concat(a)}document.head.appendChild(o)}catch(l){console.warn(l)}}var r=(function(){function n(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return n.prototype.setLang=function(i){i||(i=n.getDefaultLang()),this.lang=i},n.prototype.translateWord=function(i,s){return n.getDictionaryWord(i,this.dictionary,s||this.lang)},n.prototype.translateDate=function(i,s,a){return n.formatDate(i,s,a||this.lang)},n.getDefaultLang=function(){var i,s,a,o="en";return navigator?.languages&&(!((a=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||a===void 0)&&a.length)&&(o=navigator.languages[0].split("-")[0].toLowerCase()),o},n.getDictionaryWord=function(i,s,a){var o;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((o=s[a])===null||o===void 0)&&o[i]))return s[a][i];var f="",l=n.getDefaultLang();if(!a||l!==a){var u=s?.[l];u?.[i]&&(f=u[i])}return f},n.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var o=new Intl.DateTimeFormat(a||n.getDefaultLang(),s);return o.format(i)},n})();return xe.LanguageTranslator=r,xe}gi();var mi=Qn('<div class="grid svelte-5z4pea"><img class="svelte-5z4pea"/> <div class="header svelte-5z4pea"><span class="text-item title svelte-5z4pea"> </span> <span class="text-item right time svelte-5z4pea"> </span></div> <div class="details svelte-5z4pea"><span class="description text-item svelte-5z4pea"> </span> <span class="counter text-item right svelte-5z4pea"><span class="badge rounded-pill bg-secondary svelte-5z4pea"> </span></span></div></div>');const wi={hash:"svelte-5z4pea",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");
|
|
1
|
+
(function(Dt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Un=1,Vn=2,Yn=16,Wn=1,Gn=4,Jn=8,Kn=16,Xn=2,Pt="[",Ue="[!",ht="]",ke={},k=Symbol(),Zn="http://www.w3.org/1999/xhtml",vt=!1;var Lt=Array.isArray,Qn=Array.prototype.indexOf,_t=Array.from,Ve=Object.keys,Ye=Object.defineProperty,_e=Object.getOwnPropertyDescriptor,er=Object.getOwnPropertyDescriptors,tr=Object.prototype,nr=Array.prototype,Mt=Object.getPrototypeOf,It=Object.isExtensible;function rr(e){for(var t=0;t<e.length;t++)e[t]()}function Ft(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const x=2,pt=4,gt=8,ee=16,te=32,fe=64,We=128,V=512,S=1024,N=2048,ne=4096,D=8192,re=16384,Ge=32768,Se=65536,jt=1<<17,Bt=1<<18,pe=1<<19,ir=1<<20,ge=32768,mt=1<<21,bt=1<<22,oe=1<<23,Je=Symbol("$state"),qt=Symbol("legacy props"),sr=Symbol(""),Ae=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},wt=3,ze=8;function ar(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function lr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function fr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function or(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ur(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function cr(){throw new Error("https://svelte.dev/e/hydration_failed")}function dr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function hr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function vr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function _r(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function pr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ke(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function gr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function ie(e){w=e}let g;function P(e){if(e===null)throw Ke(),ke;return g=e}function Xe(){return P(J(g))}function ue(e){if(w){if(J(g)!==null)throw Ke(),ke;g=e}}function mr(e=1){if(w){for(var t=e,n=g;t--;)n=J(n);g=n}}function Ze(e=!0){for(var t=0,n=g;;){if(n.nodeType===ze){var r=n.data;if(r===ht){if(t===0)return n;t-=1}else(r===Pt||r===Ue)&&(t+=1)}var i=J(n);e&&n.remove(),n=i}}function Ht(e){if(!e||e.nodeType!==ze)throw Ke(),ke;return e.data}function Ut(e){return e===this.v}function br(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Vt(e){return!br(e,this.v)}let wr=!1,I=null;function Ce(e){I=e}function Yt(e,t=!1,n){I={p:I,i:!1,c:null,e:null,s:e,x:null,l:null}}function Wt(e){var t=I,n=t.e;if(n!==null){t.e=null;for(var r of n)pn(r)}return e!==void 0&&(t.x=e),t.i=!0,I=t.p,e??{}}function Gt(){return!0}let me=[];function Jt(){var e=me;me=[],rr(e)}function yt(e){if(me.length===0&&!Pe){var t=me;queueMicrotask(()=>{t===me&&Jt()})}me.push(e)}function yr(){for(;me.length>0;)Jt()}function Kt(e){var t=p;if(t===null)return _.f|=oe,e;if((t.f&Ge)===0){if((t.f&We)===0)throw e;t.b.error(e)}else Ne(e,t)}function Ne(e,t){for(;t!==null;){if((t.f&We)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Qe=new Set;let E=null,F=null,j=[],et=null,$t=!1,Pe=!1;class Y{committed=!1;current=new Map;previous=new Map;#t=new Set;#e=new Set;#n=0;#r=0;#f=null;#s=[];#i=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){j=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of t)this.#a(r,n);this.is_fork||this.#u(),this.is_deferred()?(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects)):(E=null,Zt(n.render_effects),Zt(n.effects),this.#f?.resolve()),F=null}#a(t,n){t.f^=S;for(var r=t.first;r!==null;){var i=r.f,s=(i&(te|fe))!==0,a=s&&(i&S)!==0,l=a||(i&D)!==0||this.skipped_effects.has(r);if((r.f&We)!==0&&r.b?.is_pending()&&(n={parent:n,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){s?r.f^=S:(i&pt)!==0?n.effects.push(r):je(r)&&((r.f&ee)!==0&&n.block_effects.push(r),Be(r));var o=r.first;if(o!==null){r=o;continue}}var f=r.parent;for(r=r.next;r===null&&f!==null;)f===n.effect&&(this.#l(n.effects),this.#l(n.render_effects),this.#l(n.block_effects),n=n.parent),r=f.next,f=f.parent}}#l(t){for(const n of t)((n.f&N)!==0?this.#s:this.#i).push(n),this.#o(n.deps),A(n,S)}#o(t){if(t!==null)for(const n of t)(n.f&x)===0||(n.f&ge)===0||(n.f^=ge,this.#o(n.deps))}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&oe)===0&&(this.current.set(t,t.v),F?.set(t,t.v))}activate(){E=this,this.apply()}deactivate(){E===this&&(E=null,F=null)}flush(){if(this.activate(),j.length>0){if(Xt(),E!==null&&E!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#e)t(this);this.#e.clear()}#u(){if(this.#r===0){for(const t of this.#t)t();this.#t.clear()}this.#n===0&&this.#c()}#c(){if(Qe.size>1){this.previous.clear();var t=F,n=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const s of Qe){if(s===this){n=!1;continue}const a=[];for(const[o,f]of this.current){if(s.current.has(o))if(n&&f!==s.current.get(o))s.current.set(o,f);else continue;a.push(o)}if(a.length===0)continue;const l=[...s.current.keys()].filter(o=>!this.current.has(o));if(l.length>0){var i=j;j=[];const o=new Set,f=new Map;for(const u of a)Qt(u,l,o,f);if(j.length>0){E=s,s.apply();for(const u of j)s.#a(u,r);s.deactivate()}j=i}}E=null,F=t}this.committed=!0,Qe.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#s)A(t,N),be(t);for(const t of this.#i)A(t,ne),be(t);this.#s=[],this.#i=[],this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#e.add(t)}settled(){return(this.#f??=Ft()).promise}static ensure(){if(E===null){const t=E=new Y;Qe.add(E),Pe||Y.enqueue(()=>{E===t&&t.flush()})}return E}static enqueue(t){yt(t)}apply(){}}function Et(e){var t=Pe;Pe=!0;try{for(var n;;){if(yr(),j.length===0&&(E?.flush(),j.length===0))return et=null,n;Xt()}}finally{Pe=t}}function Xt(){var e=ve;$t=!0;var t=null;try{var n=0;for(it(!0);j.length>0;){var r=Y.ensure();if(n++>1e3){var i,s;$r()}r.process(j),ce.clear()}}finally{$t=!1,it(e),et=null}}function $r(){try{ur()}catch(e){Ne(e,et)}}let se=null;function Zt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(re|D))===0&&je(r)&&(se=new Set,Be(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?wn(r):r.fn=null),se?.size>0)){ce.clear();for(const i of se){if((i.f&(re|D))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)se.has(a)&&(se.delete(a),s.push(a)),a=a.parent;for(let l=s.length-1;l>=0;l--){const o=s[l];(o.f&(re|D))===0&&Be(o)}}se.clear()}}se=null}}function Qt(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?Qt(i,t,n,r):(s&(bt|ee))!==0&&(s&N)===0&&en(i,t,r)&&(A(i,N),be(i))}}function en(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(t.includes(i))return!0;if((i.f&x)!==0&&en(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function be(e){for(var t=et=e;t.parent!==null;){t=t.parent;var n=t.f;if($t&&t===p&&(n&ee)!==0&&(n&Bt)===0)return;if((n&(fe|te))!==0){if((n&S)===0)return;t.f^=S}}j.push(t)}function Er(e){let t=0,n=we(0),r;return()=>{rt()&&($(n),gn(()=>(t===0&&(r=Rn(()=>e(()=>Me(n)))),t+=1,()=>{yt(()=>{t-=1,t===0&&(r?.(),r=void 0,Me(n))})})))}}var xr=Se|pe|We;function Tr(e,t,n){new kr(e,t,n)}class kr{parent;#t=!1;#e;#n=w?g:null;#r;#f;#s;#i=null;#a=null;#l=null;#o=null;#u=null;#c=0;#d=0;#v=!1;#h=null;#b=Er(()=>(this.#h=we(this.#c),()=>{this.#h=null}));constructor(t,n,r){this.#e=t,this.#r=n,this.#f=r,this.parent=p.b,this.#t=!!this.#r.pending,this.#s=zt(()=>{if(p.b=this,w){const s=this.#n;Xe(),s.nodeType===ze&&s.data===Ue?this.#y():this.#w()}else{var i=this.#g();try{this.#i=B(()=>r(i))}catch(s){this.error(s)}this.#d>0?this.#p():this.#t=!1}return()=>{this.#u?.remove()}},xr),w&&(this.#e=g)}#w(){try{this.#i=B(()=>this.#f(this.#e))}catch(t){this.error(t)}this.#t=!1}#y(){const t=this.#r.pending;t&&(this.#a=B(()=>t(this.#e)),Y.enqueue(()=>{var n=this.#g();this.#i=this.#_(()=>(Y.ensure(),B(()=>this.#f(n)))),this.#d>0?this.#p():(Oe(this.#a,()=>{this.#a=null}),this.#t=!1)}))}#g(){var t=this.#e;return this.#t&&(this.#u=W(),this.#e.before(this.#u),t=this.#u),t}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#_(t){var n=p,r=_,i=I;Z(this.#s),R(this.#s),Ce(this.#s.ctx);try{return t()}catch(s){return Kt(s),null}finally{Z(n),R(r),Ce(i)}}#p(){const t=this.#r.pending;this.#i!==null&&(this.#o=document.createDocumentFragment(),this.#o.append(this.#u),En(this.#i,this.#o)),this.#a===null&&(this.#a=B(()=>t(this.#e)))}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#d+=t,this.#d===0&&(this.#t=!1,this.#a&&Oe(this.#a,()=>{this.#a=null}),this.#o&&(this.#e.before(this.#o),this.#o=null))}update_pending_count(t){this.#m(t),this.#c+=t,this.#h&&Le(this.#h,this.#c)}get_effect_pending(){return this.#b(),$(this.#h)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#v||!n&&!r)throw t;this.#i&&(z(this.#i),this.#i=null),this.#a&&(z(this.#a),this.#a=null),this.#l&&(z(this.#l),this.#l=null),w&&(P(this.#n),mr(),P(Ze()));var i=!1,s=!1;const a=()=>{if(i){gr();return}i=!0,s&&pr(),Y.ensure(),this.#c=0,this.#l!==null&&Oe(this.#l,()=>{this.#l=null}),this.#t=this.has_pending_snippet(),this.#i=this.#_(()=>(this.#v=!1,B(()=>this.#f(this.#e)))),this.#d>0?this.#p():this.#t=!1};var l=_;try{R(null),s=!0,n?.(t,a),s=!1}catch(o){Ne(o,this.#s&&this.#s.parent)}finally{R(l)}r&&yt(()=>{this.#l=this.#_(()=>{Y.ensure(),this.#v=!0;try{return B(()=>{r(this.#e,()=>t,()=>a)})}catch(o){return Ne(o,this.#s.parent),null}finally{this.#v=!1}})})}}function Sr(e,t,n){for(var r=[],i=t.length,s=0;s<i;s++)Ct(t[s].e,r,!0);yn(r,()=>{var a=r.length===0&&n!==null;if(a){var l=n,o=l.parentNode;hn(o),o.append(l),e.items.clear(),G(e,t[0].prev,t[i-1].next)}for(var f=0;f<i;f++){var u=t[f];a||(e.items.delete(u.k),G(e,u.prev,u.next)),z(u.e,!a)}e.first===t[0]&&(e.first=t[0].prev)})}function Ar(e,t,n,r,i,s=null){var a=e,l=new Map,o=null;w&&Xe();var f=null,u=tn(()=>{var m=n();return Lt(m)?m:m==null?[]:_t(m)}),d,c=!0;function h(){zr(y,d,a,t,r),f!==null&&(d.length===0?(f.fragment?(a.before(f.fragment),f.fragment=null):Nt(f.effect),v.first=f.effect):Oe(f.effect,()=>{f=null}))}var v=zt(()=>{d=$(u);var m=d.length;let T=!1;if(w){var b=Ht(a)===Ue;b!==(m===0)&&(a=Ze(),P(a),ie(!1),T=!0)}for(var H=new Set,O=E,Q=null,xe=vn(),U=0;U<m;U+=1){w&&g.nodeType===ze&&g.data===ht&&(a=g,T=!0,ie(!1));var He=d[U],Te=r(He,U),M=c?null:l.get(Te);M?(Le(M.v,He),M.i=U,xe&&O.skipped_effects.delete(M.e)):(M=Cr(c?a:null,Q,He,Te,U,i,t,n),c&&(M.o=!0,Q===null?o=M:Q.next=M,Q=M),l.set(Te,M)),H.add(Te)}if(m===0&&s&&!f)if(c)f={fragment:null,effect:B(()=>s(a))};else{var ct=document.createDocumentFragment(),dt=W();ct.append(dt),f={fragment:ct,effect:B(()=>s(dt))}}if(w&&m>0&&P(Ze()),!c)if(xe){for(const[yi,$i]of l)H.has(yi)||O.skipped_effects.add($i.e);O.oncommit(h),O.ondiscard(()=>{})}else h();T&&ie(!0),$(u)}),y={effect:v,items:l,first:o};c=!1,w&&(a=g)}function zr(e,t,n,r,i){var s=t.length,a=e.items,l=e.first,o,f=null,u=[],d=[],c,h,v,y;for(y=0;y<s;y+=1){if(c=t[y],h=i(c,y),v=a.get(h),e.first??=v,!v.o){v.o=!0;var m=f?f.next:l;G(e,f,v),G(e,v,m),xt(v,m,n),f=v,u=[],d=[],l=f.next;continue}if((v.e.f&D)!==0&&Nt(v.e),v!==l){if(o!==void 0&&o.has(v)){if(u.length<d.length){var T=d[0],b;f=T.prev;var H=u[0],O=u[u.length-1];for(b=0;b<u.length;b+=1)xt(u[b],T,n);for(b=0;b<d.length;b+=1)o.delete(d[b]);G(e,H.prev,O.next),G(e,f,H),G(e,O,T),l=T,f=O,y-=1,u=[],d=[]}else o.delete(v),xt(v,l,n),G(e,v.prev,v.next),G(e,v,f===null?e.first:f.next),G(e,f,v),f=v;continue}for(u=[],d=[];l!==null&&l.k!==h;)(l.e.f&D)===0&&(o??=new Set).add(l),d.push(l),l=l.next;if(l===null)continue;v=l}u.push(v),f=v,l=v.next}if(l!==null||o!==void 0){for(var Q=o===void 0?[]:_t(o);l!==null;)(l.e.f&D)===0&&Q.push(l),l=l.next;var xe=Q.length;if(xe>0){var U=null;Sr(e,Q,U)}}}function Cr(e,t,n,r,i,s,a,l){var o=(a&Un)!==0,f=(a&Yn)===0,u=o?f?an(n,!1,!1):we(n):n,d=(a&Vn)===0?i:we(i),c={i:d,v:u,k:r,a:null,e:null,o:!1,prev:t,next:null};try{if(e===null){var h=document.createDocumentFragment();h.append(e=W())}return c.e=B(()=>s(e,u,d,l)),t!==null&&(t.next=c),c}finally{}}function xt(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=J(s);i.before(s),s=a}}function G(e,t,n){t===null?(e.first=n,e.effect.first=n&&n.e):(t.e.next&&(t.e.next.prev=null),t.next=n,t.e.next=n&&n.e),n===null?e.effect.last=t&&t.e:(n.e.prev&&(n.e.prev.next=null),n.prev=t,n.e.prev=t&&t.e)}function Nr(e,t,n,r){const i=Tt;if(n.length===0&&e.length===0){r(t.map(i));return}var s=E,a=p,l=Rr();function o(){Promise.all(n.map(f=>Or(f))).then(f=>{l();try{r([...t.map(i),...f])}catch(u){(a.f&re)===0&&Ne(u,a)}s?.deactivate(),tt()}).catch(f=>{Ne(f,a)})}e.length>0?Promise.all(e).then(()=>{l();try{return o()}finally{s?.deactivate(),tt()}}):o()}function Rr(){var e=p,t=_,n=I,r=E;return function(s=!0){Z(e),R(t),Ce(n),s&&r?.activate()}}function tt(){Z(null),R(null),Ce(null)}function Tt(e){var t=x|N,n=_!==null&&(_.f&x)!==0?_:null;return p!==null&&(p.f|=pe),{ctx:I,deps:null,effects:null,equals:Ut,f:t,fn:e,reactions:null,rv:0,v:k,wv:0,parent:n??p,ac:null}}function Or(e,t){let n=p;n===null&&ar();var r=n.b,i=void 0,s=we(k),a=!_,l=new Map;return Hr(()=>{var o=Ft();i=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{f===E&&f.committed&&f.deactivate(),tt()})}catch(c){o.reject(c),tt()}var f=E;if(a){var u=!r.is_pending();r.update_pending_count(1),f.increment(u),l.get(f)?.reject(Ae),l.delete(f),l.set(f,o)}const d=(c,h=void 0)=>{if(f.activate(),h)h!==Ae&&(s.f|=oe,Le(s,h));else{(s.f&oe)!==0&&(s.f^=oe),Le(s,c);for(const[v,y]of l){if(l.delete(v),v===f)break;y.reject(Ae)}}a&&(r.update_pending_count(-1),f.decrement(u))};o.promise.then(d,c=>d(null,c||"unknown"))}),Ir(()=>{for(const o of l.values())o.reject(Ae)}),new Promise(o=>{function f(u){function d(){u===i?o(s):f(i)}u.then(d,d)}f(i)})}function tn(e){const t=Tt(e);return t.equals=Vt,t}function nn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)z(t[n])}}function Dr(e){for(var t=e.parent;t!==null;){if((t.f&x)===0)return(t.f&re)===0?t:null;t=t.parent}return null}function kt(e){var t,n=p;Z(Dr(e));try{e.f&=~ge,nn(e),t=zn(e)}finally{Z(n)}return t}function rn(e){var t=kt(e);if(e.equals(t)||(E?.is_fork||(e.v=t),e.wv=Sn()),!ye)if(F!==null)rt()&&F.set(e,t);else{var n=(e.f&V)===0?ne:S;A(e,n)}}let St=new Set;const ce=new Map;let sn=!1;function we(e,t){var n={f:0,v:e,reactions:null,equals:Ut,rv:0,wv:0};return n}function de(e,t){const n=we(e);return Wr(n),n}function an(e,t=!1,n=!0){const r=we(e);return t||(r.equals=Vt),r}function ae(e,t,n=!1){_!==null&&(!X||(_.f&jt)!==0)&&Gt()&&(_.f&(x|ee|bt|jt))!==0&&!le?.includes(e)&&_r();let r=n?Re(t):t;return Le(e,r)}function Le(e,t){if(!e.equals(t)){var n=e.v;ye?ce.set(e,t):ce.set(e,n),e.v=t;var r=Y.ensure();r.capture(e,n),(e.f&x)!==0&&((e.f&N)!==0&&kt(e),A(e,(e.f&V)!==0?S:ne)),e.wv=Sn(),ln(e,N),p!==null&&(p.f&S)!==0&&(p.f&(te|fe))===0&&(q===null?Gr([e]):q.push(e)),!r.is_fork&&St.size>0&&!sn&&Pr()}return t}function Pr(){sn=!1;var e=ve;it(!0);const t=Array.from(St);try{for(const n of t)(n.f&S)!==0&&A(n,ne),je(n)&&Be(n)}finally{it(e)}St.clear()}function Me(e){ae(e,e.v+1)}function ln(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&N)===0;if(l&&A(s,t),(a&x)!==0){var o=s;F?.delete(o),(a&ge)===0&&(a&V&&(s.f|=ge),ln(o,ne))}else l&&((a&ee)!==0&&se!==null&&se.add(s),be(s))}}function Re(e){if(typeof e!="object"||e===null||Je in e)return e;const t=Mt(e);if(t!==tr&&t!==nr)return e;var n=new Map,r=Lt(e),i=de(0),s=$e,a=l=>{if($e===s)return l();var o=_,f=$e;R(null),kn(s);var u=l();return R(o),kn(f),u};return r&&n.set("length",de(e.length)),new Proxy(e,{defineProperty(l,o,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&hr();var u=n.get(o);return u===void 0?u=a(()=>{var d=de(f.value);return n.set(o,d),d}):ae(u,f.value,!0),!0},deleteProperty(l,o){var f=n.get(o);if(f===void 0){if(o in l){const u=a(()=>de(k));n.set(o,u),Me(i)}}else ae(f,k),Me(i);return!0},get(l,o,f){if(o===Je)return e;var u=n.get(o),d=o in l;if(u===void 0&&(!d||_e(l,o)?.writable)&&(u=a(()=>{var h=Re(d?l[o]:k),v=de(h);return v}),n.set(o,u)),u!==void 0){var c=$(u);return c===k?void 0:c}return Reflect.get(l,o,f)},getOwnPropertyDescriptor(l,o){var f=Reflect.getOwnPropertyDescriptor(l,o);if(f&&"value"in f){var u=n.get(o);u&&(f.value=$(u))}else if(f===void 0){var d=n.get(o),c=d?.v;if(d!==void 0&&c!==k)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return f},has(l,o){if(o===Je)return!0;var f=n.get(o),u=f!==void 0&&f.v!==k||Reflect.has(l,o);if(f!==void 0||p!==null&&(!u||_e(l,o)?.writable)){f===void 0&&(f=a(()=>{var c=u?Re(l[o]):k,h=de(c);return h}),n.set(o,f));var d=$(f);if(d===k)return!1}return u},set(l,o,f,u){var d=n.get(o),c=o in l;if(r&&o==="length")for(var h=f;h<d.v;h+=1){var v=n.get(h+"");v!==void 0?ae(v,k):h in l&&(v=a(()=>de(k)),n.set(h+"",v))}if(d===void 0)(!c||_e(l,o)?.writable)&&(d=a(()=>de(void 0)),ae(d,Re(f)),n.set(o,d));else{c=d.v!==k;var y=a(()=>Re(f));ae(d,y)}var m=Reflect.getOwnPropertyDescriptor(l,o);if(m?.set&&m.set.call(u,f),!c){if(r&&typeof o=="string"){var T=n.get("length"),b=Number(o);Number.isInteger(b)&&b>=T.v&&ae(T,b+1)}Me(i)}return!0},ownKeys(l){$(i);var o=Reflect.ownKeys(l).filter(d=>{var c=n.get(d);return c===void 0||c.v!==k});for(var[f,u]of n)u.v!==k&&!(f in l)&&o.push(f);return o},setPrototypeOf(){vr()}})}var fn,on,un,cn;function At(){if(fn===void 0){fn=window,on=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;un=_e(t,"firstChild").get,cn=_e(t,"nextSibling").get,It(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),It(n)&&(n.__t=void 0)}}function W(e=""){return document.createTextNode(e)}function Ie(e){return un.call(e)}function J(e){return cn.call(e)}function he(e,t){if(!w)return Ie(e);var n=Ie(g);if(n===null)n=g.appendChild(W());else if(t&&n.nodeType!==wt){var r=W();return n?.before(r),P(r),r}return P(n),n}function dn(e,t=!1){if(!w){var n=Ie(e);return n instanceof Comment&&n.data===""?J(n):n}if(t&&g?.nodeType!==wt){var r=W();return g?.before(r),P(r),r}return g}function nt(e,t=1,n=!1){let r=w?g:e;for(var i;t--;)i=r,r=J(r);if(!w)return r;if(n&&r?.nodeType!==wt){var s=W();return r===null?i?.after(s):r.before(s),P(s),s}return P(r),r}function hn(e){e.textContent=""}function vn(){return!1}function _n(e){var t=_,n=p;R(null),Z(null);try{return e()}finally{R(t),Z(n)}}function Lr(e){p===null&&(_===null&&or(),fr()),ye&&lr()}function Mr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function K(e,t,n){var r=p;r!==null&&(r.f&D)!==0&&(e|=D);var i={ctx:I,deps:null,nodes_start:null,nodes_end:null,f:e|N|V,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{Be(i),i.f|=Ge}catch(l){throw z(i),l}else t!==null&&be(i);var s=i;if(n&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&pe)===0&&(s=s.first,(e&ee)!==0&&(e&Se)!==0&&s!==null&&(s.f|=Se)),s!==null&&(s.parent=r,r!==null&&Mr(s,r),_!==null&&(_.f&x)!==0&&(e&fe)===0)){var a=_;(a.effects??=[]).push(s)}return i}function rt(){return _!==null&&!X}function Ir(e){const t=K(gt,null,!1);return A(t,S),t.teardown=e,t}function Fr(e){Lr();var t=p.f,n=!_&&(t&te)!==0&&(t&Ge)===0;if(n){var r=I;(r.e??=[]).push(e)}else return pn(e)}function pn(e){return K(pt|ir,e,!1)}function jr(e){Y.ensure();const t=K(fe|pe,e,!0);return()=>{z(t)}}function Br(e){Y.ensure();const t=K(fe|pe,e,!0);return(n={})=>new Promise(r=>{n.outro?Oe(t,()=>{z(t),r(void 0)}):(z(t),r(void 0))})}function qr(e){return K(pt,e,!1)}function Hr(e){return K(bt|pe,e,!0)}function gn(e,t=0){return K(gt|t,e,!0)}function Ur(e,t=[],n=[],r=[]){Nr(r,t,n,i=>{K(gt,()=>e(...i.map($)),!0)})}function zt(e,t=0){var n=K(ee|t,e,!0);return n}function B(e){return K(te|pe,e,!0)}function mn(e){var t=e.teardown;if(t!==null){const n=ye,r=_;xn(!0),R(null);try{t.call(null)}finally{xn(n),R(r)}}}function bn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&_n(()=>{i.abort(Ae)});var r=n.next;(n.f&fe)!==0?n.parent=null:z(n,t),n=r}}function Vr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&te)===0&&z(t),t=n}}function z(e,t=!0){var n=!1;(t||(e.f&Bt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Yr(e.nodes_start,e.nodes_end),n=!0),bn(e,t&&!n),st(e,0),A(e,re);var r=e.transitions;if(r!==null)for(const s of r)s.stop();mn(e);var i=e.parent;i!==null&&i.first!==null&&wn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Yr(e,t){for(;e!==null;){var n=e===t?null:J(e);e.remove(),e=n}}function wn(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 Oe(e,t,n=!0){var r=[];Ct(e,r,!0),yn(r,()=>{n&&z(e),t&&t()})}function yn(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function Ct(e,t,n){if((e.f&D)===0){if(e.f^=D,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&Se)!==0||(r.f&te)!==0&&(e.f&ee)!==0;Ct(r,t,s?n:!1),r=i}}}function Nt(e){$n(e,!0)}function $n(e,t){if((e.f&D)!==0){e.f^=D,(e.f&S)===0&&(A(e,N),be(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Se)!==0||(n.f&te)!==0;$n(n,i?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}function En(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:J(n);t.append(n),n=i}}let ve=!1;function it(e){ve=e}let ye=!1;function xn(e){ye=e}let _=null,X=!1;function R(e){_=e}let p=null;function Z(e){p=e}let le=null;function Wr(e){_!==null&&(le===null?le=[e]:le.push(e))}let C=null,L=0,q=null;function Gr(e){q=e}let Tn=1,Fe=0,$e=Fe;function kn(e){$e=e}function Sn(){return++Tn}function je(e){var t=e.f;if((t&N)!==0)return!0;if(t&x&&(e.f&=~ge),(t&ne)!==0){var n=e.deps;if(n!==null)for(var r=n.length,i=0;i<r;i++){var s=n[i];if(je(s)&&rn(s),s.wv>e.wv)return!0}(t&V)!==0&&F===null&&A(e,S)}return!1}function An(e,t,n=!0){var r=e.reactions;if(r!==null&&!le?.includes(e))for(var i=0;i<r.length;i++){var s=r[i];(s.f&x)!==0?An(s,t,!1):t===s&&(n?A(s,N):(s.f&S)!==0&&A(s,ne),be(s))}}function zn(e){var t=C,n=L,r=q,i=_,s=le,a=I,l=X,o=$e,f=e.f;C=null,L=0,q=null,_=(f&(te|fe))===0?e:null,le=null,Ce(e.ctx),X=!1,$e=++Fe,e.ac!==null&&(_n(()=>{e.ac.abort(Ae)}),e.ac=null);try{e.f|=mt;var u=e.fn,d=u(),c=e.deps;if(C!==null){var h;if(st(e,L),c!==null&&L>0)for(c.length=L+C.length,h=0;h<C.length;h++)c[L+h]=C[h];else e.deps=c=C;if(ve&&rt()&&(e.f&V)!==0)for(h=L;h<c.length;h++)(c[h].reactions??=[]).push(e)}else c!==null&&L<c.length&&(st(e,L),c.length=L);if(Gt()&&q!==null&&!X&&c!==null&&(e.f&(x|ne|N))===0)for(h=0;h<q.length;h++)An(q[h],e);return i!==null&&i!==e&&(Fe++,q!==null&&(r===null?r=q:r.push(...q))),(e.f&oe)!==0&&(e.f^=oe),d}catch(v){return Kt(v)}finally{e.f^=mt,C=t,L=n,q=r,_=i,le=s,Ce(a),X=l,$e=o}}function Jr(e,t){let n=t.reactions;if(n!==null){var r=Qn.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&x)!==0&&(C===null||!C.includes(t))&&(A(t,ne),(t.f&V)!==0&&(t.f^=V,t.f&=~ge),nn(t),st(t,0))}function st(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Jr(e,n[r])}function Be(e){var t=e.f;if((t&re)===0){A(e,S);var n=p,r=ve;p=e,ve=!0;try{(t&ee)!==0?Vr(e):bn(e),mn(e);var i=zn(e);e.teardown=typeof i=="function"?i:null,e.wv=Tn;var s;vt&&wr&&(e.f&N)!==0&&e.deps}finally{ve=r,p=n}}}function $(e){var t=e.f,n=(t&x)!==0;if(_!==null&&!X){var r=p!==null&&(p.f&re)!==0;if(!r&&!le?.includes(e)){var i=_.deps;if((_.f&mt)!==0)e.rv<Fe&&(e.rv=Fe,C===null&&i!==null&&i[L]===e?L++:C===null?C=[e]:C.includes(e)||C.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:s.includes(_)||s.push(_)}}}if(ye){if(ce.has(e))return ce.get(e);if(n){var a=e,l=a.v;return((a.f&S)===0&&a.reactions!==null||Nn(a))&&(l=kt(a)),ce.set(a,l),l}}else n&&!F?.has(e)&&(a=e,je(a)&&rn(a),ve&&rt()&&(a.f&V)===0&&Cn(a));if(F?.has(e))return F.get(e);if((e.f&oe)!==0)throw e.v;return e.v}function Cn(e){if(e.deps!==null){e.f^=V;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&x)!==0&&(t.f&V)===0&&Cn(t)}}function Nn(e){if(e.v===k)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ce.has(t)||(t.f&x)!==0&&Nn(t))return!0;return!1}function Rn(e){var t=X;try{return X=!0,e()}finally{X=t}}const Kr=-7169;function A(e,t){e.f=e.f&Kr|t}const On=new Set,Rt=new Set;function Xr(e){for(var t=0;t<e.length;t++)On.add(e[t]);for(var n of Rt)n(e)}let Dn=null;function at(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Dn=e;var a=0,l=Dn===e&&e.__root;if(l){var o=i.indexOf(l);if(o!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;o<=f&&(a=o)}if(s=i[a]||e.target,s!==t){Ye(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=_,d=p;R(null),Z(null);try{for(var c,h=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var y=s["__"+r];y!=null&&(!s.disabled||e.target===s)&&y.call(s,e)}catch(m){c?h.push(m):c=m}if(e.cancelBubble||v===t||v===null)break;s=v}if(c){for(let m of h)queueMicrotask(()=>{throw m});throw c}}finally{e.__root=t,delete e.currentTarget,R(u),Z(d)}}}function Zr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function qe(e,t){var n=p;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Qr(e,t){var n=(t&Xn)!==0,r,i=!e.startsWith("<!>");return()=>{if(w)return qe(g,null),g;r===void 0&&(r=Zr(i?e:"<!>"+e),r=Ie(r));var s=n||on?document.importNode(r,!0):r.cloneNode(!0);return qe(s,s),s}}function Pn(){if(w)return qe(g,null),g;var e=document.createDocumentFragment(),t=document.createComment(""),n=W();return e.append(t,n),qe(t,n),e}function lt(e,t){if(w){var n=p;((n.f&Ge)===0||n.nodes_end===null)&&(n.nodes_end=g),Xe();return}e!==null&&e.before(t)}const ei=["touchstart","touchmove"];function ti(e){return ei.includes(e)}function ft(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Ln(e,t){return Mn(e,t)}function ni(e,t){At(),t.intro=t.intro??!1;const n=t.target,r=w,i=g;try{for(var s=Ie(n);s&&(s.nodeType!==ze||s.data!==Pt);)s=J(s);if(!s)throw ke;ie(!0),P(s);const a=Mn(e,{...t,anchor:s});return ie(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==ke&&console.warn("Failed to hydrate: ",a),t.recover===!1&&cr(),At(),hn(n),ie(!1),Ln(e,t)}finally{ie(r),P(i)}}const De=new Map;function Mn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0}){At();var l=new Set,o=d=>{for(var c=0;c<d.length;c++){var h=d[c];if(!l.has(h)){l.add(h);var v=ti(h);t.addEventListener(h,at,{passive:v});var y=De.get(h);y===void 0?(document.addEventListener(h,at,{passive:v}),De.set(h,1)):De.set(h,y+1)}}};o(_t(On)),Rt.add(o);var f=void 0,u=Br(()=>{var d=n??t.appendChild(W());return Tr(d,{pending:()=>{}},c=>{if(s){Yt({});var h=I;h.c=s}if(i&&(r.$$events=i),w&&qe(c,null),f=e(c,r)||{},w&&(p.nodes_end=g,g===null||g.nodeType!==ze||g.data!==ht))throw Ke(),ke;s&&Wt()}),()=>{for(var c of l){t.removeEventListener(c,at);var h=De.get(c);--h===0?(document.removeEventListener(c,at),De.delete(c)):De.set(c,h)}Rt.delete(o),d!==n&&d.parentNode?.removeChild(d)}});return Ot.set(f,u),f}let Ot=new WeakMap;function ri(e,t){const n=Ot.get(e);return n?(Ot.delete(e),n(t)):Promise.resolve()}class ii{anchor;#t=new Map;#e=new Map;#n=new Map;#r=new Set;#f=!0;constructor(t,n=!0){this.anchor=t,this.#f=n}#s=()=>{var t=E;if(this.#t.has(t)){var n=this.#t.get(t),r=this.#e.get(n);if(r)Nt(r),this.#r.delete(n);else{var i=this.#n.get(n);i&&(this.#e.set(n,i.effect),this.#n.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,a]of this.#t){if(this.#t.delete(s),s===t)break;const l=this.#n.get(a);l&&(z(l.effect),this.#n.delete(a))}for(const[s,a]of this.#e){if(s===n||this.#r.has(s))continue;const l=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();En(a,f),f.append(W()),this.#n.set(s,{effect:a,fragment:f})}else z(a);this.#r.delete(s),this.#e.delete(s)};this.#f||!r?(this.#r.add(s),Oe(a,l,!1)):l()}}};#i=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[r,i]of this.#n)n.includes(r)||(z(i.effect),this.#n.delete(r))};ensure(t,n){var r=E,i=vn();if(n&&!this.#e.has(t)&&!this.#n.has(t))if(i){var s=document.createDocumentFragment(),a=W();s.append(a),this.#n.set(t,{effect:B(()=>n(a)),fragment:s})}else this.#e.set(t,B(()=>n(this.anchor)));if(this.#t.set(r,t),i){for(const[l,o]of this.#e)l===t?r.skipped_effects.delete(o):r.skipped_effects.add(o);for(const[l,o]of this.#n)l===t?r.skipped_effects.delete(o.effect):r.skipped_effects.add(o.effect);r.oncommit(this.#s),r.ondiscard(this.#i)}else w&&(this.anchor=g),this.#s()}}function si(e,t,n=!1){w&&Xe();var r=new ii(e),i=n?Se:0;function s(a,l){if(w){const f=Ht(e)===Ue;if(a===f){var o=Ze();P(o),r.anchor=o,ie(!1),r.ensure(a,l),ie(!0);return}}r.ensure(a,l)}zt(()=>{var a=!1;t((l,o=!0)=>{a=!0,s(o,l)}),a||s(!1,null)},i)}function ai(e,t){qr(()=>{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 li(e,t){return e==null?null:String(e)}function fi(e,t,n,r){var i=e.__style;if(w||i!==t){var s=li(t);(!w||s!==e.getAttribute("style"))&&(s==null?e.removeAttribute("style"):e.style.cssText=s),e.__style=t}return r}const oi=Symbol("is custom element"),ui=Symbol("is html");function In(e,t,n,r){var i=ci(e);w&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=n)&&(t==="loading"&&(e[sr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&di(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ci(e){return e.__attributes??={[oi]:e.nodeName.includes("-"),[ui]:e.namespaceURI===Zn}}var Fn=new Map;function di(e){var t=e.getAttribute("is")||e.nodeName,n=Fn.get(t);if(n)return n;Fn.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=er(i);for(var a in r)r[a].set&&n.push(a);i=Mt(i)}return n}let ot=!1;function hi(e){var t=ot;try{return ot=!1,[e(),ot]}finally{ot=t}}function jn(e,t,n,r){var i=(n&Jn)!==0,s=(n&Kn)!==0,a=r,l=!0,o=()=>(l&&(l=!1,a=s?Rn(r):r),a),f;if(i){var u=Je in e||qt in e;f=_e(e,t)?.set??(u&&t in e?b=>e[t]=b:void 0)}var d,c=!1;i?[d,c]=hi(()=>e[t]):d=e[t],d===void 0&&r!==void 0&&(d=o(),f&&(dr(),f(d)));var h;if(h=()=>{var b=e[t];return b===void 0?o():(l=!0,b)},(n&Gn)===0)return h;if(f){var v=e.$$legacy;return(function(b,H){return arguments.length>0?((!H||v||c)&&f(H?h():b),b):h()})}var y=!1,m=((n&Wn)!==0?Tt:tn)(()=>(y=!1,h()));i&&$(m);var T=p;return(function(b,H){if(arguments.length>0){const O=H?$(m):i?Re(b):b;return ae(m,O),y=!0,a!==void 0&&(a=O),b}return ye&&y||(T.f&re)!==0?m.v:$(m)})}function vi(e){return new _i(e)}class _i{#t;#e;constructor(t){var n=new Map,r=(s,a)=>{var l=an(a,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return $(n.get(a)??r(a,Reflect.get(s,a)))},has(s,a){return a===qt?!0:($(n.get(a)??r(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return ae(n.get(a)??r(a,l),l),Reflect.set(s,a,l)}});this.#e=(t.hydrate?ni:Ln)(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)&&Et(),this.#t=i.$$events;for(const s of Object.keys(this.#e))s==="$set"||s==="$destroy"||s==="$on"||Ye(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=()=>{ri(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 Bn;typeof HTMLElement=="function"&&(Bn=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),lt(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=pi(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]=ut(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=vi({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=jr(()=>{gn(()=>{this.$$r=!0;for(const r of Ve(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=ut(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]=ut(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ve(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ut(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 pi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function gi(e,t,n,r,i,s){let a=class extends Bn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Ve(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Ve(t).forEach(l=>{Ye(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(o){o=ut(l,o,t),this.$$d[l]=o;var f=this.$$c;if(f){var u=_e(f,l)?.get;u?f[l]=o:f.$set({[l]:o})}}})}),r.forEach(l=>{Ye(a.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=a,a}var Ee={},qn;function mi(){if(qn)return Ee;qn=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.LanguageTranslator=void 0,Ee.getChildStyleToPass=e,Ee.addComponent=t;function e(r,i){var s,a,l="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((a=i?.filter(function(c){return Object.keys(r).includes(c.name)}))===null||a===void 0)&&a.length))for(var o=function(c){var h=i?.filter(function(v){return v.name===c&&v.defaultValue!==r[c]});h&&(l+="".concat(c,":").concat(r[c],";"))},f=0,u=Object.keys(r);f<u.length;f++){var d=u[f];o(d)}}catch(c){console.error("error getting child style to pass",c)}finally{return l}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var a=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var l=document.createElement("script");if(l.id=s+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(a),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var o=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(o+"-",""),"/").concat(a)}document.head.appendChild(l)}catch(f){console.warn(f)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,a){return r.formatDate(i,s,a||this.lang)},r.getDefaultLang=function(){var i,s,a,l="en";return navigator?.languages&&(!((a=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||a===void 0)&&a.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},r.getDictionaryWord=function(i,s,a){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(a&&(!((l=s[a])===null||l===void 0)&&l[i]))return s[a][i];var o="",f=r.getDefaultLang();if(!a||f!==a){var u=s?.[f];u?.[i]&&(o=u[i])}return o},r.formatDate=function(i,s,a){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(a||r.getDefaultLang(),s);return l.format(i)},r})();return Ee.LanguageTranslator=n,Ee}mi();var bi=Qr('<div class="grid svelte-5z4pea"><img class="svelte-5z4pea"/> <div class="header svelte-5z4pea"><span class="text-item title svelte-5z4pea"> </span> <span class="text-item right time svelte-5z4pea"> </span></div> <div class="details svelte-5z4pea"><span class="description text-item svelte-5z4pea"> </span> <span class="counter text-item right svelte-5z4pea"><span class="badge rounded-pill bg-secondary svelte-5z4pea"> </span></span></div></div>');const wi={hash:"svelte-5z4pea",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
3
|
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host {font-family:"Roboto", sans-serif;width:100%;display:block;--hb-topics-card-selected-background-color: #e9ecef;--hb-topics-card-hover-background-color: #f5f5f5;--hb-topics-card-size: calc(1vw + 1vh + 12px);--hb-topics-card-padding: 4px;--hb-topics-card-double-size: calc(var(--hb-topics-card-size) * 2);--hb-topics-card-double-padding: calc(var(--hb-topics-card-padding) * 2);}.grid.svelte-5z4pea {display:grid;grid-template-areas:"img header" "img details";grid-template-columns:var(--hb-topics-card-double-size) calc(100% - var(--hb-topics-card-double-size));grid-template-rows:calc(var(--hb-topics-card-size) + var(--hb-topics-card-double-padding)) calc(var(--hb-topics-card-size) + var(--hb-topics-card-padding));}.grid.svelte-5z4pea:hover {background-color:var(--hb-topics-card-hover-background-color);}img.svelte-5z4pea {padding:var(--hb-topics-card-padding);grid-area:img;height:calc(var(--hb-topics-card-size) + var(--hb-topics-card-double-padding) + var(--hb-topics-card-size) + var(--hb-topics-card-padding));width:calc(var(--hb-topics-card-size) + var(--hb-topics-card-double-padding) + var(--hb-topics-card-size) + var(--hb-topics-card-padding));border-radius:50%;}.header.svelte-5z4pea {grid-area:header;padding:var(--hb-topics-card-padding) var(--hb-topics-card-padding) var(--hb-topics-card-padding) 10px;line-height:calc(var(--hb-topics-card-size) + 0px);}.details.svelte-5z4pea {padding:var(--hb-topics-card-padding) var(--hb-topics-card-padding) var(--hb-topics-card-padding) 10px;grid-area:details;line-height:calc(var(--hb-topics-card-size) - var(--hb-topics-card-double-padding));}.title.svelte-5z4pea {font-size:1.5em;font-weight:600;}.description.svelte-5z4pea {font-size:1em;font-weight:300;opacity:0.8;}.time.svelte-5z4pea {font-size:0.8em;font-weight:300;opacity:0.6;}.right.svelte-5z4pea {position:absolute;right:var(--hb-topics-card-padding);}.text-item.svelte-5z4pea {margin-left:12px;margin-right:6px;}
|
|
4
4
|
/*!
|
|
5
5
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
6
6
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
7
7
|
* Copyright 2011-2021 Twitter, Inc.
|
|
8
8
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
9
|
-
|
|
9
|
+
*/.svelte-5z4pea,
|
|
10
10
|
.svelte-5z4pea::before,
|
|
11
11
|
.svelte-5z4pea::after {box-sizing:border-box;}
|
|
12
12
|
@media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
@media (min-width: 1200px) {
|
|
51
51
|
}
|
|
52
52
|
@media print {
|
|
53
|
-
}`};function
|
|
53
|
+
}`};function Hn(e,t){Yt(t,!0),ai(e,wi);function n(u,d){t.$$host.dispatchEvent(new CustomEvent(u,{detail:d}))}let r=jn(t,"id",7,""),i=jn(t,"chats",23,()=>[]);Fr(()=>{if(typeof i()=="string")try{i(JSON.parse(i()))}catch(u){console.error("error parsing chat",u)}i().forEach(u=>{u.localeTimeString||(u.localeTimeString=u.time?new Date(u.time).getHours().toString().padStart(2,"0")+":"+new Date(u.time).getMinutes().toString().padStart(2,"0"):"")})});function s(u){i().forEach(d=>{d.chat_id!==u.chat_id?d._selected=!1:d._selected=!0}),i([...i()]),n("select",u)}var a={get id(){return r()},set id(u=""){r(u),Et()},get chats(){return i()},set chats(u=[]){i(u),Et()}},l=Pn(),o=dn(l);{var f=u=>{var d=Pn(),c=dn(d);Ar(c,17,i,h=>h.chat_id,(h,v)=>{var y=bi();y.__click=()=>{s($(v))};var m=he(y),T=nt(m,2),b=he(T),H=he(b,!0);ue(b);var O=nt(b,2),Q=he(O,!0);ue(O),ue(T);var xe=nt(T,2),U=he(xe),He=he(U,!0);ue(U);var Te=nt(U,2),M=he(Te),ct=he(M,!0);ue(M),ue(Te),ue(xe),ue(y),Ur(dt=>{fi(y,$(v)._selected?"background-color: var(--hb-topics-card-selected-background-color);":""),In(m,"src",$(v).img_uri),In(m,"alt",$(v).img_uri),ft(H,$(v).title),ft(Q,$(v).localeTimeString),ft(He,$(v).text),ft(ct,dt)},[()=>$(v).counter?$(v).counter.toString():"0"]),lt(h,y)}),lt(u,d)};si(o,u=>{i()&&u(f)})}return lt(e,l),Wt(a)}Xr(["click"]),customElements.define("hb-messages-topics-card",gi(Hn,{id:{},chats:{}},[],[],!0)),Dt.Component=Hn,Object.defineProperty(Dt,Symbol.toStringTag,{value:"Module"})})(this["messages-topics-card"]=this["messages-topics-card"]||{});
|
|
54
54
|
//# sourceMappingURL=main.iife.js.map
|