@htmlbricks/hb-messages-list 0.60.54 → 0.60.55
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 +66 -58
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(ir){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const cn=1,fn=2,un=16,zn=1,xn=4,hn=8,yn=16,wn=1,_n=2,Ae="[",Me="[!",Ee="]",qt={},L=Symbol(),kn="http://www.w3.org/1999/xhtml",ar=!1;var $e=Array.isArray,jn=Array.prototype.indexOf,Ie=Array.from,me=Object.keys,Ut=Object.defineProperty,Tt=Object.getOwnPropertyDescriptor,An=Object.getOwnPropertyDescriptors,Mn=Object.prototype,En=Array.prototype,lr=Object.getPrototypeOf,sr=Object.isExtensible;function br(t){for(var e=0;e<t.length;e++)t[e]()}function $n(){var t,e,r=new Promise((n,o)=>{t=n,e=o});return{promise:r,resolve:t,reject:e}}const V=2,Te=4,mr=8,Wt=16,zt=32,jt=64,pr=128,nt=256,pe=512,q=1024,ot=2048,At=4096,st=8192,Rt=16384,Re=32768,Ne=65536,dr=1<<17,vr=1<<18,Jt=1<<19,In=1<<20,Se=1<<21,Ce=1<<22,Nt=1<<23,de=Symbol("$state"),gr=Symbol("legacy props"),Tn=Symbol(""),Oe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},cr=3,Xt=8;function Rn(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Nn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Sn(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Cn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function On(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Dn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Pn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Gn(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Bn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ln(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Yn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ve(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let N=!1;function bt(t){N=t}let S;function it(t){if(t===null)throw ve(),qt;return S=t}function ge(){return it(dt(S))}function I(t){if(N){if(dt(S)!==null)throw ve(),qt;S=t}}function De(){for(var t=0,e=S;;){if(e.nodeType===Xt){var r=e.data;if(r===Ee){if(t===0)return e;t-=1}else(r===Ae||r===Me)&&(t+=1)}var n=dt(e);e.remove(),e=n}}function fr(t){if(!t||t.nodeType!==Xt)throw ve(),qt;return t.data}function ur(t){return t===this.v}function Fn(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function zr(t){return!Fn(t,this.v)}let Zn=!1,mt=null;function ce(t){mt=t}function xr(t,e=!1,r){mt={p:mt,c:null,e:null,s:t,x:null,l:null}}function hr(t){var e=mt,r=e.e;if(r!==null){e.e=null;for(var n of r)Br(n)}return t!==void 0&&(e.x=t),mt=e.p,t??{}}function yr(){return!0}const Hn=new WeakMap;function qn(t){var e=_;if(e===null)return A.f|=Nt,t;if((e.f&Re)===0){if((e.f&pr)===0)throw!e.parent&&t instanceof Error&&wr(t),t;e.b.error(t)}else Pe(t,e)}function Pe(t,e){for(;e!==null;){if((e.f&pr)!==0)try{e.b.error(t);return}catch(r){t=r}e=e.parent}throw t instanceof Error&&wr(t),t}function wr(t){const e=Hn.get(t);e&&(Ut(t,"message",{value:e.message}),Ut(t,"stack",{value:e.stack}))}let Ge=[],Be=[];function Un(){var t=Ge;Ge=[],br(t)}function Wn(){var t=Be;Be=[],br(t)}function Jn(){Ge.length>0&&Un(),Be.length>0&&Wn()}function Xn(){const t=_.b;return t===null&&Rn(),t}function fe(t){var e=V|ot,r=A!==null&&(A.f&V)!==0?A:null;return _===null||r!==null&&(r.f&nt)!==0?e|=nt:_.f|=Jt,{ctx:mt,deps:null,effects:null,equals:ur,f:e,fn:t,reactions:null,rv:0,v:L,wv:0,parent:r??_,ac:null}}function Qn(t,e){let r=_;r===null&&Nn();var n=r.b,o=void 0,i=ie(L),a=null,l=!A;return so(()=>{try{var s=t();a&&Promise.resolve(s).catch(()=>{})}catch(g){s=Promise.reject(g)}var p=()=>s;o=a?.then(p,p)??Promise.resolve(s),a=o;var v=G,c=n.is_pending();l&&(n.update_pending_count(1),c||v.increment());const d=(g,m=void 0)=>{a=null,c||v.activate(),m?m!==Oe&&(i.f|=Nt,he(i,m)):((i.f&Nt)!==0&&(i.f^=Nt),he(i,g)),l&&(n.update_pending_count(-1),c||v.decrement()),Ar()};if(o.then(d,g=>d(null,g||"unknown")),v)return()=>{queueMicrotask(()=>v.neuter())}}),new Promise(s=>{function p(v){function c(){v===o?s(i):p(o)}v.then(c,c)}p(o)})}function Vn(t){const e=fe(t);return Wr(e),e}function _r(t){const e=fe(t);return e.equals=zr,e}function kr(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)gt(e[r])}}function Kn(t){for(var e=t.parent;e!==null;){if((e.f&V)===0)return e;e=e.parent}return null}function Le(t){var e,r=_;$t(Kn(t));try{kr(t),e=Kr(t)}finally{$t(r)}return e}function jr(t){var e=Le(t);if(t.equals(e)||(t.v=e,t.wv=Qr()),!Gt){var r=(It||(t.f&nt)!==0)&&t.deps!==null?At:q;tt(t,r)}}function to(t,e,r){const n=fe;if(e.length===0){r(t.map(n));return}var o=G,i=_,a=eo(),l=Xn();Promise.all(e.map(s=>Qn(s))).then(s=>{o?.activate(),a();try{r([...t.map(n),...s])}catch(p){(i.f&Rt)===0&&Pe(p,i)}o?.deactivate(),Ar()}).catch(s=>{l.error(s)})}function eo(){var t=_,e=A,r=mt,n=G;return function(){$t(t),ft(e),ce(r),n?.activate()}}function Ar(){$t(null),ft(null),ce(null)}const Ye=new Set;let G=null,Mr=new Set,ue=[];function Er(){const t=ue.shift();ue.length>0&&queueMicrotask(Er),t()}let St=[],ze=null,Fe=!1,xe=!1;class Ct{current=new Map;#e=new Map;#t=new Set;#r=0;#b=null;#m=!1;#o=[];#a=[];#i=[];#n=[];#l=[];#p=[];#d=[];skipped_effects=new Set;process(e){St=[];for(const o of e)this.#g(o);if(this.#o.length===0&&this.#r===0){this.#v();var r=this.#i,n=this.#n;this.#i=[],this.#n=[],this.#l=[],G=null,Ir(r),Ir(n),G===null?G=this:Ye.delete(this),this.#b?.resolve()}else this.#s(this.#i),this.#s(this.#n),this.#s(this.#l);for(const o of this.#o)ee(o);for(const o of this.#a)ee(o);this.#o=[],this.#a=[]}#g(e){e.f^=q;for(var r=e.first;r!==null;){var n=r.f,o=(n&(zt|jt))!==0,i=o&&(n&q)!==0,a=i||(n&st)!==0||this.skipped_effects.has(r);if(!a&&r.fn!==null){if(o)r.f^=q;else if((n&Te)!==0)this.#n.push(r);else if((n&q)===0)if((n&Ce)!==0){var l=r.b?.is_pending()?this.#a:this.#o;l.push(r)}else ye(r)&&((r.f&Wt)!==0&&this.#l.push(r),ee(r));var s=r.first;if(s!==null){r=s;continue}}var p=r.parent;for(r=r.next;r===null&&p!==null;)r=p.next,p=p.parent}}#s(e){for(const r of e)((r.f&ot)!==0?this.#p:this.#d).push(r),tt(r,q);e.length=0}capture(e,r){this.#e.has(e)||this.#e.set(e,r),this.current.set(e,e.v)}activate(){G=this}deactivate(){G=null;for(const e of Mr)if(Mr.delete(e),e(),G!==null)break}neuter(){this.#m=!0}flush(){St.length>0?$r():this.#v(),G===this&&(this.#r===0&&Ye.delete(this),this.deactivate())}#v(){if(!this.#m)for(const e of this.#t)e();this.#t.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const e of this.#p)tt(e,ot),Vt(e);for(const e of this.#d)tt(e,At),Vt(e);this.#i=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(e){this.#t.add(e)}settled(){return(this.#b??=$n()).promise}static ensure(){if(G===null){const e=G=new Ct;Ye.add(G),xe||Ct.enqueue(()=>{G===e&&e.flush()})}return G}static enqueue(e){ue.length===0&&queueMicrotask(Er),ue.unshift(e)}}function Qt(t){var e=xe;xe=!0;try{for(var r;;){if(Jn(),St.length===0&&(G?.flush(),St.length===0))return ze=null,r;$r()}}finally{xe=e}}function $r(){var t=te;Fe=!0;try{var e=0;for(qr(!0);St.length>0;){var r=Ct.ensure();if(e++>1e3){var n,o;ro()}r.process(St),Mt.clear()}}finally{Fe=!1,qr(t),ze=null}}function ro(){try{Dn()}catch(t){Pe(t,ze)}}let Ot=null;function Ir(t){var e=t.length;if(e!==0){for(var r=0;r<e;){var n=t[r++];if((n.f&(Rt|st))===0&&ye(n)&&(Ot=[],ee(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Fr(n):n.fn=null),Ot?.length>0)){Mt.clear();for(const o of Ot)ee(o);Ot=[]}}Ot=null}}function Vt(t){for(var e=ze=t;e.parent!==null;){e=e.parent;var r=e.f;if(Fe&&e===_&&(r&Wt)!==0)return;if((r&(jt|zt))!==0){if((r&q)===0)return;e.f^=q}}St.push(e)}const Mt=new Map;function ie(t,e){var r={f:0,v:t,reactions:null,equals:ur,rv:0,wv:0};return r}function xt(t,e){const r=ie(t);return Wr(r),r}function Tr(t,e=!1,r=!0){const n=ie(t);return e||(n.equals=zr),n}function ht(t,e,r=!1){A!==null&&(!ct||(A.f&dr)!==0)&&yr()&&(A.f&(V|Wt|Ce|dr))!==0&&!wt?.includes(t)&&Yn();let n=r?Dt(e):e;return he(t,n)}function he(t,e){if(!t.equals(e)){var r=t.v;Gt?Mt.set(t,e):Mt.set(t,r),t.v=e;var n=Ct.ensure();n.capture(t,r),(t.f&V)!==0&&((t.f&ot)!==0&&Le(t),tt(t,(t.f&nt)===0?q:At)),t.wv=Qr(),Rr(t,ot),_!==null&&(_.f&q)!==0&&(_.f&(zt|jt))===0&&(at===null?vo([t]):at.push(t))}return e}function Ze(t){ht(t,t.v+1)}function Rr(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,o=0;o<n;o++){var i=r[o],a=i.f,l=(a&ot)===0;l&&tt(i,e),(a&V)!==0?Rr(i,At):l&&((a&Wt)!==0&&Ot!==null&&Ot.push(i),Vt(i))}}function Dt(t){if(typeof t!="object"||t===null||de in t)return t;const e=lr(t);if(e!==Mn&&e!==En)return t;var r=new Map,n=$e(t),o=xt(0),i=Bt,a=l=>{if(Bt===i)return l();var s=A,p=Bt;ft(null),Xr(i);var v=l();return ft(s),Xr(p),v};return n&&r.set("length",xt(t.length)),new Proxy(t,{defineProperty(l,s,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&Bn();var v=r.get(s);return v===void 0?v=a(()=>{var c=xt(p.value);return r.set(s,c),c}):ht(v,p.value,!0),!0},deleteProperty(l,s){var p=r.get(s);if(p===void 0){if(s in l){const v=a(()=>xt(L));r.set(s,v),Ze(o)}}else ht(p,L),Ze(o);return!0},get(l,s,p){if(s===de)return t;var v=r.get(s),c=s in l;if(v===void 0&&(!c||Tt(l,s)?.writable)&&(v=a(()=>{var g=Dt(c?l[s]:L),m=xt(g);return m}),r.set(s,v)),v!==void 0){var d=f(v);return d===L?void 0:d}return Reflect.get(l,s,p)},getOwnPropertyDescriptor(l,s){var p=Reflect.getOwnPropertyDescriptor(l,s);if(p&&"value"in p){var v=r.get(s);v&&(p.value=f(v))}else if(p===void 0){var c=r.get(s),d=c?.v;if(c!==void 0&&d!==L)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return p},has(l,s){if(s===de)return!0;var p=r.get(s),v=p!==void 0&&p.v!==L||Reflect.has(l,s);if(p!==void 0||_!==null&&(!v||Tt(l,s)?.writable)){p===void 0&&(p=a(()=>{var d=v?Dt(l[s]):L,g=xt(d);return g}),r.set(s,p));var c=f(p);if(c===L)return!1}return v},set(l,s,p,v){var c=r.get(s),d=s in l;if(n&&s==="length")for(var g=p;g<c.v;g+=1){var m=r.get(g+"");m!==void 0?ht(m,L):g in l&&(m=a(()=>xt(L)),r.set(g+"",m))}if(c===void 0)(!d||Tt(l,s)?.writable)&&(c=a(()=>xt(void 0)),ht(c,Dt(p)),r.set(s,c));else{d=c.v!==L;var b=a(()=>Dt(p));ht(c,b)}var z=Reflect.getOwnPropertyDescriptor(l,s);if(z?.set&&z.set.call(v,p),!d){if(n&&typeof s=="string"){var R=r.get("length"),u=Number(s);Number.isInteger(u)&&u>=R.v&&ht(R,u+1)}Ze(o)}return!0},ownKeys(l){f(o);var s=Reflect.ownKeys(l).filter(c=>{var d=r.get(c);return d===void 0||d.v!==L});for(var[p,v]of r)v.v!==L&&!(p in l)&&s.push(p);return s},setPrototypeOf(){Ln()}})}var Nr,Sr,Cr,Or;function He(){if(Nr===void 0){Nr=window,Sr=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;Cr=Tt(e,"firstChild").get,Or=Tt(e,"nextSibling").get,sr(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),sr(r)&&(r.__t=void 0)}}function Et(t=""){return document.createTextNode(t)}function Pt(t){return Cr.call(t)}function dt(t){return Or.call(t)}function T(t,e){if(!N)return Pt(t);var r=Pt(S);if(r===null)r=S.appendChild(Et());else if(e&&r.nodeType!==cr){var n=Et();return r?.before(n),it(n),n}return it(r),r}function qe(t,e){if(!N){var r=Pt(t);return r instanceof Comment&&r.data===""?dt(r):r}return S}function vt(t,e=1,r=!1){let n=N?S:t;for(var o;e--;)o=n,n=dt(n);if(!N)return n;if(r&&n?.nodeType!==cr){var i=Et();return n===null?o?.after(i):n.before(i),it(i),i}return it(n),n}function Dr(t){t.textContent=""}function Pr(){return!1}function Gr(t){var e=A,r=_;ft(null),$t(null);try{return t()}finally{ft(e),$t(r)}}function no(t){_===null&&A===null&&On(),A!==null&&(A.f&nt)!==0&&_===null&&Cn(),Gt&&Sn()}function oo(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function yt(t,e,r,n=!0){var o=_;o!==null&&(o.f&st)!==0&&(t|=st);var i={ctx:mt,deps:null,nodes_start:null,nodes_end:null,f:t|ot,first:null,fn:e,last:null,next:null,parent:o,b:o&&o.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{ee(i),i.f|=Re}catch(s){throw gt(i),s}else e!==null&&Vt(i);if(n){var a=i;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&Jt)===0&&(a=a.first),a!==null&&(a.parent=o,o!==null&&oo(a,o),A!==null&&(A.f&V)!==0&&(t&jt)===0)){var l=A;(l.effects??=[]).push(a)}}return i}function Ue(t){no();var e=_.f,r=!A&&(e&zt)!==0&&(e&Re)===0;if(r){var n=mt;(n.e??=[]).push(t)}else return Br(t)}function Br(t){return yt(Te|In,t,!1)}function io(t){Ct.ensure();const e=yt(jt|Jt,t,!0);return()=>{gt(e)}}function ao(t){Ct.ensure();const e=yt(jt|Jt,t,!0);return(r={})=>new Promise(n=>{r.outro?Je(e,()=>{gt(e),n(void 0)}):(gt(e),n(void 0))})}function lo(t){return yt(Te,t,!1)}function so(t){return yt(Ce|Jt,t,!0)}function bo(t,e=0){return yt(mr|e,t,!0)}function U(t,e=[],r=[]){to(e,r,n=>{yt(mr,()=>t(...n.map(f)),!0)})}function We(t,e=0){var r=yt(Wt|e,t,!0);return r}function Kt(t,e=!0){return yt(zt|Jt,t,!0,e)}function Lr(t){var e=t.teardown;if(e!==null){const r=Gt,n=A;Ur(!0),ft(null);try{e.call(null)}finally{Ur(r),ft(n)}}}function Yr(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const o=r.ac;o!==null&&Gr(()=>{o.abort(Oe)});var n=r.next;(r.f&jt)!==0?r.parent=null:gt(r,e),r=n}}function mo(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&zt)===0&>(e),e=r}}function gt(t,e=!0){var r=!1;(e||(t.f&vr)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(po(t.nodes_start,t.nodes_end),r=!0),Yr(t,e&&!r),we(t,0),tt(t,Rt);var n=t.transitions;if(n!==null)for(const i of n)i.stop();Lr(t);var o=t.parent;o!==null&&o.first!==null&&Fr(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function po(t,e){for(;t!==null;){var r=t===e?null:dt(t);t.remove(),t=r}}function Fr(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Je(t,e){var r=[];Xe(t,r,!0),Zr(r,()=>{gt(t),e&&e()})}function Zr(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var o of t)o.out(n)}else e()}function Xe(t,e,r){if((t.f&st)===0){if(t.f^=st,t.transitions!==null)for(const a of t.transitions)(a.is_global||r)&&e.push(a);for(var n=t.first;n!==null;){var o=n.next,i=(n.f&Ne)!==0||(n.f&zt)!==0;Xe(n,e,i?r:!1),n=o}}}function Qe(t){Hr(t,!0)}function Hr(t,e){if((t.f&st)!==0){t.f^=st,(t.f&q)===0&&(tt(t,ot),Vt(t));for(var r=t.first;r!==null;){var n=r.next,o=(r.f&Ne)!==0||(r.f&zt)!==0;Hr(r,o?e:!1),r=n}if(t.transitions!==null)for(const i of t.transitions)(i.is_global||e)&&i.in()}}let te=!1;function qr(t){te=t}let Gt=!1;function Ur(t){Gt=t}let A=null,ct=!1;function ft(t){A=t}let _=null;function $t(t){_=t}let wt=null;function Wr(t){A!==null&&(wt===null?wt=[t]:wt.push(t))}let W=null,K=0,at=null;function vo(t){at=t}let Jr=1,ae=0,Bt=ae;function Xr(t){Bt=t}let It=!1;function Qr(){return++Jr}function ye(t){var e=t.f;if((e&ot)!==0)return!0;if((e&At)!==0){var r=t.deps,n=(e&nt)!==0;if(r!==null){var o,i,a=(e&pe)!==0,l=n&&_!==null&&!It,s=r.length;if((a||l)&&(_===null||(_.f&Rt)===0)){var p=t,v=p.parent;for(o=0;o<s;o++)i=r[o],(a||!i?.reactions?.includes(p))&&(i.reactions??=[]).push(p);a&&(p.f^=pe),l&&v!==null&&(v.f&nt)===0&&(p.f^=nt)}for(o=0;o<s;o++)if(i=r[o],ye(i)&&jr(i),i.wv>t.wv)return!0}(!n||_!==null&&!It)&&tt(t,q)}return!1}function Vr(t,e,r=!0){var n=t.reactions;if(n!==null&&!wt?.includes(t))for(var o=0;o<n.length;o++){var i=n[o];(i.f&V)!==0?Vr(i,e,!1):e===i&&(r?tt(i,ot):(i.f&q)!==0&&tt(i,At),Vt(i))}}function Kr(t){var e=W,r=K,n=at,o=A,i=It,a=wt,l=mt,s=ct,p=Bt,v=t.f;W=null,K=0,at=null,It=(v&nt)!==0&&(ct||!te||A===null),A=(v&(zt|jt))===0?t:null,wt=null,ce(t.ctx),ct=!1,Bt=++ae,t.ac!==null&&(Gr(()=>{t.ac.abort(Oe)}),t.ac=null);try{t.f|=Se;var c=t.fn,d=c(),g=t.deps;if(W!==null){var m;if(we(t,K),g!==null&&K>0)for(g.length=K+W.length,m=0;m<W.length;m++)g[K+m]=W[m];else t.deps=g=W;if(!It||(v&V)!==0&&t.reactions!==null)for(m=K;m<g.length;m++)(g[m].reactions??=[]).push(t)}else g!==null&&K<g.length&&(we(t,K),g.length=K);if(yr()&&at!==null&&!ct&&g!==null&&(t.f&(V|At|ot))===0)for(m=0;m<at.length;m++)Vr(at[m],t);return o!==null&&o!==t&&(ae++,at!==null&&(n===null?n=at:n.push(...at))),(t.f&Nt)!==0&&(t.f^=Nt),d}catch(b){return qn(b)}finally{t.f^=Se,W=e,K=r,at=n,A=o,It=i,wt=a,ce(l),ct=s,Bt=p}}function go(t,e){let r=e.reactions;if(r!==null){var n=jn.call(r,t);if(n!==-1){var o=r.length-1;o===0?r=e.reactions=null:(r[n]=r[o],r.pop())}}r===null&&(e.f&V)!==0&&(W===null||!W.includes(e))&&(tt(e,At),(e.f&(nt|pe))===0&&(e.f^=pe),kr(e),we(e,0))}function we(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)go(t,r[n])}function ee(t){var e=t.f;if((e&Rt)===0){tt(t,q);var r=_,n=te;_=t,te=!0;try{(e&Wt)!==0?mo(t):Yr(t),Lr(t);var o=Kr(t);t.teardown=typeof o=="function"?o:null,t.wv=Jr;var i;ar&&Zn&&(t.f&ot)!==0&&t.deps}finally{te=n,_=r}}}function f(t){var e=t.f,r=(e&V)!==0;if(A!==null&&!ct){var n=_!==null&&(_.f&Rt)!==0;if(!n&&!wt?.includes(t)){var o=A.deps;if((A.f&Se)!==0)t.rv<ae&&(t.rv=ae,W===null&&o!==null&&o[K]===t?K++:W===null?W=[t]:(!It||!W.includes(t))&&W.push(t));else{(A.deps??=[]).push(t);var i=t.reactions;i===null?t.reactions=[A]:i.includes(A)||i.push(A)}}}else if(r&&t.deps===null&&t.effects===null){var a=t,l=a.parent;l!==null&&(l.f&nt)===0&&(a.f^=nt)}if(Gt){if(Mt.has(t))return Mt.get(t);if(r){a=t;var s=a.v;return((a.f&q)===0&&a.reactions!==null||tn(a))&&(s=Le(a)),Mt.set(a,s),s}}else r&&(a=t,ye(a)&&jr(a));if((t.f&Nt)!==0)throw t.v;return t.v}function tn(t){if(t.v===L)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Mt.has(e)||(e.f&V)!==0&&tn(e))return!0;return!1}function co(t){var e=ct;try{return ct=!0,t()}finally{ct=e}}const fo=-7169;function tt(t,e){t.f=t.f&fo|e}const en=new Set,Ve=new Set;function uo(t){for(var e=0;e<t.length;e++)en.add(t[e]);for(var r of Ve)r(t)}let rn=null;function _e(t){var e=this,r=e.ownerDocument,n=t.type,o=t.composedPath?.()||[],i=o[0]||t.target;rn=t;var a=0,l=rn===t&&t.__root;if(l){var s=o.indexOf(l);if(s!==-1&&(e===document||e===window)){t.__root=e;return}var p=o.indexOf(e);if(p===-1)return;s<=p&&(a=s)}if(i=o[a]||t.target,i!==e){Ut(t,"currentTarget",{configurable:!0,get(){return i||r}});var v=A,c=_;ft(null),$t(null);try{for(var d,g=[];i!==null;){var m=i.assignedSlot||i.parentNode||i.host||null;try{var b=i["__"+n];if(b!=null&&(!i.disabled||t.target===i))if($e(b)){var[z,...R]=b;z.apply(i,[t,...R])}else b.call(i,t)}catch(u){d?g.push(u):d=u}if(t.cancelBubble||m===e||m===null)break;i=m}if(d){for(let u of g)queueMicrotask(()=>{throw u});throw d}}finally{t.__root=e,delete t.currentTarget,ft(v),$t(c)}}}let lt;function zo(){lt=void 0}function xo(t){let e=null,r=N;var n;if(N){for(e=S,lt===void 0&&(lt=Pt(document.head));lt!==null&&(lt.nodeType!==Xt||lt.data!==Ae);)lt=dt(lt);lt===null?bt(!1):lt=it(dt(lt))}N||(n=document.head.appendChild(Et()));try{We(()=>t(n),vr)}finally{r&&(bt(!0),lt=S,it(e))}}function ho(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function re(t,e){var r=_;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function O(t,e){var r=(e&wn)!==0,n=(e&_n)!==0,o,i=!t.startsWith("<!>");return()=>{if(N)return re(S,null),S;o===void 0&&(o=ho(i?t:"<!>"+t),r||(o=Pt(o)));var a=n||Sr?document.importNode(o,!0):o.cloneNode(!0);if(r){var l=Pt(a),s=a.lastChild;re(l,s)}else re(a,a);return a}}function nn(){if(N)return re(S,null),S;var t=document.createDocumentFragment(),e=document.createComment(""),r=Et();return t.append(e,r),re(e,r),t}function C(t,e){if(N){_.nodes_end=S,ge();return}t!==null&&t.before(e)}const yo=["touchstart","touchmove"];function wo(t){return yo.includes(t)}function _t(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function on(t,e){return an(t,e)}function _o(t,e){He(),e.intro=e.intro??!1;const r=e.target,n=N,o=S;try{for(var i=Pt(r);i&&(i.nodeType!==Xt||i.data!==Ae);)i=dt(i);if(!i)throw qt;bt(!0),it(i),ge();const a=an(t,{...e,anchor:i});if(S===null||S.nodeType!==Xt||S.data!==Ee)throw ve(),qt;return bt(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==qt&&console.warn("Failed to hydrate: ",a),e.recover===!1&&Pn(),He(),Dr(r),bt(!1),on(t,e)}finally{bt(n),it(o),zo()}}const ne=new Map;function an(t,{target:e,anchor:r,props:n={},events:o,context:i,intro:a=!0}){He();var l=new Set,s=c=>{for(var d=0;d<c.length;d++){var g=c[d];if(!l.has(g)){l.add(g);var m=wo(g);e.addEventListener(g,_e,{passive:m});var b=ne.get(g);b===void 0?(document.addEventListener(g,_e,{passive:m}),ne.set(g,1)):ne.set(g,b+1)}}};s(Ie(en)),Ve.add(s);var p=void 0,v=ao(()=>{var c=r??e.appendChild(Et());return Kt(()=>{if(i){xr({});var d=mt;d.c=i}o&&(n.$$events=o),N&&re(c,null),p=t(c,n)||{},N&&(_.nodes_end=S),i&&hr()}),()=>{for(var d of l){e.removeEventListener(d,_e);var g=ne.get(d);--g===0?(document.removeEventListener(d,_e),ne.delete(d)):ne.set(d,g)}Ve.delete(s),c!==r&&c.parentNode?.removeChild(c)}});return Ke.set(p,v),p}let Ke=new WeakMap;function ko(t,e){const r=Ke.get(t);return r?(Ke.delete(t),r(e)):Promise.resolve()}function H(t,e,r=!1){N&&ge();var n=t,o=null,i=null,a=L,l=r?Ne:0,s=!1;const p=(g,m=!0)=>{s=!0,d(m,g)};var v=null;function c(){v!==null&&(v.lastChild.remove(),n.before(v),v=null);var g=a?o:i,m=a?i:o;g&&Qe(g),m&&Je(m,()=>{a?i=null:o=null})}const d=(g,m)=>{if(a===(a=g))return;let b=!1;if(N){const D=fr(n)===Me;!!a===D&&(n=De(),it(n),bt(!1),b=!0)}var z=Pr(),R=n;if(z&&(v=document.createDocumentFragment(),v.append(R=Et())),a?o??=m&&Kt(()=>m(R)):i??=m&&Kt(()=>m(R)),z){var u=G,x=a?o:i,k=a?i:o;x&&u.skipped_effects.delete(x),k&&u.skipped_effects.add(k),u.add_callback(c)}else c();b&&bt(!0)};We(()=>{s=!1,e(p),s||d(null,null)},l),N&&(n=S)}function jo(t,e){return e}function Ao(t,e,r){for(var n=t.items,o=[],i=e.length,a=0;a<i;a++)Xe(e[a].e,o,!0);var l=i>0&&o.length===0&&r!==null;if(l){var s=r.parentNode;Dr(s),s.append(r),n.clear(),ut(t,e[0].prev,e[i-1].next)}Zr(o,()=>{for(var p=0;p<i;p++){var v=e[p];l||(n.delete(v.k),ut(t,v.prev,v.next)),gt(v.e,!l)}})}function ln(t,e,r,n,o,i=null){var a=t,l={flags:e,items:new Map,first:null};N&&ge();var s=null,p=!1,v=new Map,c=_r(()=>{var b=r();return $e(b)?b:b==null?[]:Ie(b)}),d,g;function m(){Mo(g,d,l,v,a,o,e,n,r),i!==null&&(d.length===0?s?Qe(s):s=Kt(()=>i(a)):s!==null&&Je(s,()=>{s=null}))}We(()=>{g??=_,d=f(c);var b=d.length;if(p&&b===0)return;p=b===0;let z=!1;if(N){var R=fr(a)===Me;R!==(b===0)&&(a=De(),it(a),bt(!1),z=!0)}if(N){for(var u=null,x,k=0;k<b;k++){if(S.nodeType===Xt&&S.data===Ee){a=S,z=!0,bt(!1);break}var D=d[k],P=n(D,k);x=tr(S,l,u,null,D,P,k,o,e,r),l.items.set(P,x),u=x}b>0&&it(De())}if(N)b===0&&i&&(s=Kt(()=>i(a)));else if(Pr()){var Y=new Set,J=G;for(k=0;k<b;k+=1){D=d[k],P=n(D,k);var B=l.items.get(P)??v.get(P);B?sn(B,D,k):(x=tr(null,l,null,null,D,P,k,o,e,r,!0),v.set(P,x)),Y.add(P)}for(const[pt,kt]of l.items)Y.has(pt)||J.skipped_effects.add(kt.e);J.add_callback(m)}else m();z&&bt(!0),f(c)}),N&&(a=S)}function Mo(t,e,r,n,o,i,a,l,s){var p=e.length,v=r.items,c=r.first,d=c,g,m=null,b=[],z=[],R,u,x,k;for(k=0;k<p;k+=1){if(R=e[k],u=l(R,k),x=v.get(u),x===void 0){var D=n.get(u);if(D!==void 0){n.delete(u),v.set(u,D);var P=m?m.next:d;ut(r,m,D),ut(r,D,P),er(D,P,o),m=D}else{var Y=d?d.e.nodes_start:o;m=tr(Y,r,m,m===null?r.first:m.next,R,u,k,i,a,s)}v.set(u,m),b=[],z=[],d=m.next;continue}if(sn(x,R,k),(x.e.f&st)!==0&&Qe(x.e),x!==d){if(g!==void 0&&g.has(x)){if(b.length<z.length){var J=z[0],B;m=J.prev;var pt=b[0],kt=b[b.length-1];for(B=0;B<b.length;B+=1)er(b[B],J,o);for(B=0;B<z.length;B+=1)g.delete(z[B]);ut(r,pt.prev,kt.next),ut(r,m,pt),ut(r,kt,J),d=J,m=kt,k-=1,b=[],z=[]}else g.delete(x),er(x,d,o),ut(r,x.prev,x.next),ut(r,x,m===null?r.first:m.next),ut(r,m,x),m=x;continue}for(b=[],z=[];d!==null&&d.k!==u;)(d.e.f&st)===0&&(g??=new Set).add(d),z.push(d),d=d.next;if(d===null)continue;x=d}b.push(x),m=x,d=x.next}if(d!==null||g!==void 0){for(var Yt=g===void 0?[]:Ie(g);d!==null;)(d.e.f&st)===0&&Yt.push(d),d=d.next;var E=Yt.length;if(E>0){var h=null;Ao(r,Yt,h)}}t.first=r.first&&r.first.e,t.last=m&&m.e;for(var y of n.values())gt(y.e);n.clear()}function sn(t,e,r,n){he(t.v,e),t.i=r}function tr(t,e,r,n,o,i,a,l,s,p,v){var c=(s&cn)!==0,d=(s&un)===0,g=c?d?Tr(o,!1,!1):ie(o):o,m=(s&fn)===0?a:ie(a),b={i:m,v:g,k:i,a:null,e:null,prev:r,next:n};try{if(t===null){var z=document.createDocumentFragment();z.append(t=Et())}return b.e=Kt(()=>l(t,g,m,p),N),b.e.prev=r&&r.e,b.e.next=n&&n.e,r===null?v||(e.first=b):(r.next=b,r.e.next=b.e),n!==null&&(n.prev=b,n.e.prev=b.e),b}finally{}}function er(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,o=e?e.e.nodes_start:r,i=t.e.nodes_start;i!==null&&i!==n;){var a=dt(i);o.before(i),i=a}}function ut(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function Eo(t,e){lo(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const o=document.createElement("style");o.id=e.hash,o.textContent=e.code,n.appendChild(o)}})}function $o(t,e,r){var n=t==null?"":""+t;return n=n?n+" "+e:e,n===""?null:n}function Lt(t,e,r,n,o,i){var a=t.__className;if(N||a!==r||a===void 0){var l=$o(r,n);(!N||l!==t.getAttribute("class"))&&(l==null?t.removeAttribute("class"):t.className=l),t.__className=r}return i}const Io=Symbol("is custom element"),To=Symbol("is html");function le(t,e,r,n){var o=Ro(t);N&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||o[e]!==(o[e]=r)&&(e==="loading"&&(t[Tn]=r),r==null?t.removeAttribute(e):typeof r!="string"&&No(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function Ro(t){return t.__attributes??={[Io]:t.nodeName.includes("-"),[To]:t.namespaceURI===kn}}var bn=new Map;function No(t){var e=t.getAttribute("is")||t.nodeName,r=bn.get(e);if(r)return r;bn.set(e,r=[]);for(var n,o=t,i=Element.prototype;i!==o;){n=An(o);for(var a in n)n[a].set&&r.push(a);o=lr(o)}return r}let ke=!1;function So(t){var e=ke;try{return ke=!1,[t(),ke]}finally{ke=e}}function se(t,e,r,n){var o=(r&hn)!==0,i=(r&yn)!==0,a=n,l=!0,s=()=>(l&&(l=!1,a=i?co(n):n),a),p;if(o){var v=de in t||gr in t;p=Tt(t,e)?.set??(v&&e in t?u=>t[e]=u:void 0)}var c,d=!1;o?[c,d]=So(()=>t[e]):c=t[e],c===void 0&&n!==void 0&&(c=s(),p&&(Gn(),p(c)));var g;if(g=()=>{var u=t[e];return u===void 0?s():(l=!0,u)},(r&xn)===0)return g;if(p){var m=t.$$legacy;return(function(u,x){return arguments.length>0?((!x||m||d)&&p(x?g():u),u):g()})}var b=!1,z=((r&zn)!==0?fe:_r)(()=>(b=!1,g()));o&&f(z);var R=_;return(function(u,x){if(arguments.length>0){const k=x?f(z):o?Dt(u):u;return ht(z,k),b=!0,a!==void 0&&(a=k),u}return Gt&&b||(R.f&Rt)!==0?z.v:f(z)})}function Co(t){return new Oo(t)}class Oo{#e;#t;constructor(e){var r=new Map,n=(i,a)=>{var l=Tr(a,!1,!1);return r.set(i,l),l};const o=new Proxy({...e.props||{},$$events:{}},{get(i,a){return f(r.get(a)??n(a,Reflect.get(i,a)))},has(i,a){return a===gr?!0:(f(r.get(a)??n(a,Reflect.get(i,a))),Reflect.has(i,a))},set(i,a,l){return ht(r.get(a)??n(a,l),l),Reflect.set(i,a,l)}});this.#t=(e.hydrate?_o:on)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Qt(),this.#e=o.$$events;for(const i of Object.keys(this.#t))i==="$set"||i==="$destroy"||i==="$on"||Ut(this,i,{get(){return this.#t[i]},set(a){this.#t[i]=a},enumerable:!0});this.#t.$set=i=>{Object.assign(o,i)},this.#t.$destroy=()=>{ko(this.#t)}}$set(e){this.#t.$set(e)}$on(e,r){this.#e[e]=this.#e[e]||[];const n=(...o)=>r.call(this,...o);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(o=>o!==n)}}$destroy(){this.#t.$destroy()}}let mn;typeof HTMLElement=="function"&&(mn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,r){super(),this.$$ctor=t,this.$$s=e,r&&this.attachShadow({mode:"open"})}addEventListener(t,e,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,r)}removeEventListener(t,e,r){if(super.removeEventListener(t,e,r),this.$$c){const n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return o=>{const i=document.createElement("slot");n!=="default"&&(i.name=n),C(o,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=Do(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),e.default=!0):e[n]=t(n));for(const n of this.attributes){const o=this.$$g_p(n.name);o in this.$$d||(this.$$d[o]=je(o,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=Co({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=io(()=>{bo(()=>{this.$$r=!0;for(const n of me(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const o=je(n,this.$$d[n],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,o)}this.$$r=!1})});for(const n in this.$$l)for(const o of this.$$l[n]){const i=this.$$c.$on(n,o);this.$$l_u.set(o,i)}this.$$l={}}}attributeChangedCallback(t,e,r){this.$$r||(t=this.$$g_p(t),this.$$d[t]=je(t,r,this.$$p_d,"toProp"),this.$$c?.$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 me(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function je(t,e,r,n){const o=r[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Do(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function Po(t,e,r,n,o,i){let a=class extends mn{constructor(){super(t,r,o),this.$$p_d=e}static get observedAttributes(){return me(e).map(l=>(e[l].attribute||l).toLowerCase())}};return me(e).forEach(l=>{Ut(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(s){s=je(l,s,e),this.$$d[l]=s;var p=this.$$c;if(p){var v=Tt(p,l)?.get;v?p[l]=s:p.$set({[l]:s})}}})}),n.forEach(l=>{Ut(a.prototype,l,{get(){return this.$$c?.[l]}})}),t.element=a,a}function Go(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var oe={},rr,pn;function Bo(){if(pn)return rr;pn=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,s=`
|
|
3
|
-
`,p="/",v="*",c="",d="comment",g="declaration";rr=function(b,z){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];z=z||{};var R=1,u=1;function x(
|
|
1
|
+
(function(ir){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const cn=1,fn=2,un=16,zn=1,xn=4,hn=8,yn=16,wn=1,_n=2,Ae="[",Me="[!",Ee="]",qt={},L=Symbol(),kn="http://www.w3.org/1999/xhtml",ar=!1;var $e=Array.isArray,jn=Array.prototype.indexOf,Ie=Array.from,me=Object.keys,Ut=Object.defineProperty,Tt=Object.getOwnPropertyDescriptor,An=Object.getOwnPropertyDescriptors,Mn=Object.prototype,En=Array.prototype,lr=Object.getPrototypeOf,sr=Object.isExtensible;function br(t){for(var e=0;e<t.length;e++)t[e]()}function $n(){var t,e,r=new Promise((n,o)=>{t=n,e=o});return{promise:r,resolve:t,reject:e}}const V=2,Te=4,mr=8,Wt=16,zt=32,jt=64,pr=128,nt=256,pe=512,q=1024,ot=2048,At=4096,st=8192,Rt=16384,Re=32768,Ne=65536,dr=1<<17,vr=1<<18,Jt=1<<19,In=1<<20,Se=1<<21,Ce=1<<22,Nt=1<<23,de=Symbol("$state"),gr=Symbol("legacy props"),Tn=Symbol(""),Oe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},cr=3,Xt=8;function Rn(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Nn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Sn(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Cn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function On(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Dn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Pn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Gn(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Bn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ln(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Yn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ve(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let N=!1;function bt(t){N=t}let S;function it(t){if(t===null)throw ve(),qt;return S=t}function ge(){return it(dt(S))}function I(t){if(N){if(dt(S)!==null)throw ve(),qt;S=t}}function De(){for(var t=0,e=S;;){if(e.nodeType===Xt){var r=e.data;if(r===Ee){if(t===0)return e;t-=1}else(r===Ae||r===Me)&&(t+=1)}var n=dt(e);e.remove(),e=n}}function fr(t){if(!t||t.nodeType!==Xt)throw ve(),qt;return t.data}function ur(t){return t===this.v}function Fn(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function zr(t){return!Fn(t,this.v)}let Zn=!1,mt=null;function ce(t){mt=t}function xr(t,e=!1,r){mt={p:mt,c:null,e:null,s:t,x:null,l:null}}function hr(t){var e=mt,r=e.e;if(r!==null){e.e=null;for(var n of r)Br(n)}return t!==void 0&&(e.x=t),mt=e.p,t??{}}function yr(){return!0}const Hn=new WeakMap;function qn(t){var e=_;if(e===null)return A.f|=Nt,t;if((e.f&Re)===0){if((e.f&pr)===0)throw!e.parent&&t instanceof Error&&wr(t),t;e.b.error(t)}else Pe(t,e)}function Pe(t,e){for(;e!==null;){if((e.f&pr)!==0)try{e.b.error(t);return}catch(r){t=r}e=e.parent}throw t instanceof Error&&wr(t),t}function wr(t){const e=Hn.get(t);e&&(Ut(t,"message",{value:e.message}),Ut(t,"stack",{value:e.stack}))}let Ge=[],Be=[];function Un(){var t=Ge;Ge=[],br(t)}function Wn(){var t=Be;Be=[],br(t)}function Jn(){Ge.length>0&&Un(),Be.length>0&&Wn()}function Xn(){const t=_.b;return t===null&&Rn(),t}function fe(t){var e=V|ot,r=A!==null&&(A.f&V)!==0?A:null;return _===null||r!==null&&(r.f&nt)!==0?e|=nt:_.f|=Jt,{ctx:mt,deps:null,effects:null,equals:ur,f:e,fn:t,reactions:null,rv:0,v:L,wv:0,parent:r??_,ac:null}}function Qn(t,e){let r=_;r===null&&Nn();var n=r.b,o=void 0,i=ae(L),a=null,l=!A;return so(()=>{try{var s=t();a&&Promise.resolve(s).catch(()=>{})}catch(g){s=Promise.reject(g)}var p=()=>s;o=a?.then(p,p)??Promise.resolve(s),a=o;var v=G,c=n.is_pending();l&&(n.update_pending_count(1),c||v.increment());const d=(g,m=void 0)=>{a=null,c||v.activate(),m?m!==Oe&&(i.f|=Nt,he(i,m)):((i.f&Nt)!==0&&(i.f^=Nt),he(i,g)),l&&(n.update_pending_count(-1),c||v.decrement()),Ar()};if(o.then(d,g=>d(null,g||"unknown")),v)return()=>{queueMicrotask(()=>v.neuter())}}),new Promise(s=>{function p(v){function c(){v===o?s(i):p(o)}v.then(c,c)}p(o)})}function Vn(t){const e=fe(t);return Wr(e),e}function _r(t){const e=fe(t);return e.equals=zr,e}function kr(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)gt(e[r])}}function Kn(t){for(var e=t.parent;e!==null;){if((e.f&V)===0)return e;e=e.parent}return null}function Le(t){var e,r=_;$t(Kn(t));try{kr(t),e=Kr(t)}finally{$t(r)}return e}function jr(t){var e=Le(t);if(t.equals(e)||(t.v=e,t.wv=Qr()),!Gt){var r=(It||(t.f&nt)!==0)&&t.deps!==null?At:q;tt(t,r)}}function to(t,e,r){const n=fe;if(e.length===0){r(t.map(n));return}var o=G,i=_,a=eo(),l=Xn();Promise.all(e.map(s=>Qn(s))).then(s=>{o?.activate(),a();try{r([...t.map(n),...s])}catch(p){(i.f&Rt)===0&&Pe(p,i)}o?.deactivate(),Ar()}).catch(s=>{l.error(s)})}function eo(){var t=_,e=A,r=mt,n=G;return function(){$t(t),ft(e),ce(r),n?.activate()}}function Ar(){$t(null),ft(null),ce(null)}const Ye=new Set;let G=null,Mr=new Set,ue=[];function Er(){const t=ue.shift();ue.length>0&&queueMicrotask(Er),t()}let St=[],ze=null,Fe=!1,xe=!1;class Ct{current=new Map;#e=new Map;#t=new Set;#r=0;#b=null;#m=!1;#o=[];#a=[];#i=[];#n=[];#l=[];#p=[];#d=[];skipped_effects=new Set;process(e){St=[];for(const o of e)this.#g(o);if(this.#o.length===0&&this.#r===0){this.#v();var r=this.#i,n=this.#n;this.#i=[],this.#n=[],this.#l=[],G=null,Ir(r),Ir(n),G===null?G=this:Ye.delete(this),this.#b?.resolve()}else this.#s(this.#i),this.#s(this.#n),this.#s(this.#l);for(const o of this.#o)ee(o);for(const o of this.#a)ee(o);this.#o=[],this.#a=[]}#g(e){e.f^=q;for(var r=e.first;r!==null;){var n=r.f,o=(n&(zt|jt))!==0,i=o&&(n&q)!==0,a=i||(n&st)!==0||this.skipped_effects.has(r);if(!a&&r.fn!==null){if(o)r.f^=q;else if((n&Te)!==0)this.#n.push(r);else if((n&q)===0)if((n&Ce)!==0){var l=r.b?.is_pending()?this.#a:this.#o;l.push(r)}else ye(r)&&((r.f&Wt)!==0&&this.#l.push(r),ee(r));var s=r.first;if(s!==null){r=s;continue}}var p=r.parent;for(r=r.next;r===null&&p!==null;)r=p.next,p=p.parent}}#s(e){for(const r of e)((r.f&ot)!==0?this.#p:this.#d).push(r),tt(r,q);e.length=0}capture(e,r){this.#e.has(e)||this.#e.set(e,r),this.current.set(e,e.v)}activate(){G=this}deactivate(){G=null;for(const e of Mr)if(Mr.delete(e),e(),G!==null)break}neuter(){this.#m=!0}flush(){St.length>0?$r():this.#v(),G===this&&(this.#r===0&&Ye.delete(this),this.deactivate())}#v(){if(!this.#m)for(const e of this.#t)e();this.#t.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const e of this.#p)tt(e,ot),Vt(e);for(const e of this.#d)tt(e,At),Vt(e);this.#i=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(e){this.#t.add(e)}settled(){return(this.#b??=$n()).promise}static ensure(){if(G===null){const e=G=new Ct;Ye.add(G),xe||Ct.enqueue(()=>{G===e&&e.flush()})}return G}static enqueue(e){ue.length===0&&queueMicrotask(Er),ue.unshift(e)}}function Qt(t){var e=xe;xe=!0;try{for(var r;;){if(Jn(),St.length===0&&(G?.flush(),St.length===0))return ze=null,r;$r()}}finally{xe=e}}function $r(){var t=te;Fe=!0;try{var e=0;for(qr(!0);St.length>0;){var r=Ct.ensure();if(e++>1e3){var n,o;ro()}r.process(St),Mt.clear()}}finally{Fe=!1,qr(t),ze=null}}function ro(){try{Dn()}catch(t){Pe(t,ze)}}let Ot=null;function Ir(t){var e=t.length;if(e!==0){for(var r=0;r<e;){var n=t[r++];if((n.f&(Rt|st))===0&&ye(n)&&(Ot=[],ee(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Fr(n):n.fn=null),Ot?.length>0)){Mt.clear();for(const o of Ot)ee(o);Ot=[]}}Ot=null}}function Vt(t){for(var e=ze=t;e.parent!==null;){e=e.parent;var r=e.f;if(Fe&&e===_&&(r&Wt)!==0)return;if((r&(jt|zt))!==0){if((r&q)===0)return;e.f^=q}}St.push(e)}const Mt=new Map;function ae(t,e){var r={f:0,v:t,reactions:null,equals:ur,rv:0,wv:0};return r}function xt(t,e){const r=ae(t);return Wr(r),r}function Tr(t,e=!1,r=!0){const n=ae(t);return e||(n.equals=zr),n}function ht(t,e,r=!1){A!==null&&(!ct||(A.f&dr)!==0)&&yr()&&(A.f&(V|Wt|Ce|dr))!==0&&!wt?.includes(t)&&Yn();let n=r?Dt(e):e;return he(t,n)}function he(t,e){if(!t.equals(e)){var r=t.v;Gt?Mt.set(t,e):Mt.set(t,r),t.v=e;var n=Ct.ensure();n.capture(t,r),(t.f&V)!==0&&((t.f&ot)!==0&&Le(t),tt(t,(t.f&nt)===0?q:At)),t.wv=Qr(),Rr(t,ot),_!==null&&(_.f&q)!==0&&(_.f&(zt|jt))===0&&(at===null?vo([t]):at.push(t))}return e}function Ze(t){ht(t,t.v+1)}function Rr(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,o=0;o<n;o++){var i=r[o],a=i.f,l=(a&ot)===0;l&&tt(i,e),(a&V)!==0?Rr(i,At):l&&((a&Wt)!==0&&Ot!==null&&Ot.push(i),Vt(i))}}function Dt(t){if(typeof t!="object"||t===null||de in t)return t;const e=lr(t);if(e!==Mn&&e!==En)return t;var r=new Map,n=$e(t),o=xt(0),i=Bt,a=l=>{if(Bt===i)return l();var s=A,p=Bt;ft(null),Xr(i);var v=l();return ft(s),Xr(p),v};return n&&r.set("length",xt(t.length)),new Proxy(t,{defineProperty(l,s,p){(!("value"in p)||p.configurable===!1||p.enumerable===!1||p.writable===!1)&&Bn();var v=r.get(s);return v===void 0?v=a(()=>{var c=xt(p.value);return r.set(s,c),c}):ht(v,p.value,!0),!0},deleteProperty(l,s){var p=r.get(s);if(p===void 0){if(s in l){const v=a(()=>xt(L));r.set(s,v),Ze(o)}}else ht(p,L),Ze(o);return!0},get(l,s,p){if(s===de)return t;var v=r.get(s),c=s in l;if(v===void 0&&(!c||Tt(l,s)?.writable)&&(v=a(()=>{var g=Dt(c?l[s]:L),m=xt(g);return m}),r.set(s,v)),v!==void 0){var d=f(v);return d===L?void 0:d}return Reflect.get(l,s,p)},getOwnPropertyDescriptor(l,s){var p=Reflect.getOwnPropertyDescriptor(l,s);if(p&&"value"in p){var v=r.get(s);v&&(p.value=f(v))}else if(p===void 0){var c=r.get(s),d=c?.v;if(c!==void 0&&d!==L)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return p},has(l,s){if(s===de)return!0;var p=r.get(s),v=p!==void 0&&p.v!==L||Reflect.has(l,s);if(p!==void 0||_!==null&&(!v||Tt(l,s)?.writable)){p===void 0&&(p=a(()=>{var d=v?Dt(l[s]):L,g=xt(d);return g}),r.set(s,p));var c=f(p);if(c===L)return!1}return v},set(l,s,p,v){var c=r.get(s),d=s in l;if(n&&s==="length")for(var g=p;g<c.v;g+=1){var m=r.get(g+"");m!==void 0?ht(m,L):g in l&&(m=a(()=>xt(L)),r.set(g+"",m))}if(c===void 0)(!d||Tt(l,s)?.writable)&&(c=a(()=>xt(void 0)),ht(c,Dt(p)),r.set(s,c));else{d=c.v!==L;var b=a(()=>Dt(p));ht(c,b)}var z=Reflect.getOwnPropertyDescriptor(l,s);if(z?.set&&z.set.call(v,p),!d){if(n&&typeof s=="string"){var R=r.get("length"),u=Number(s);Number.isInteger(u)&&u>=R.v&&ht(R,u+1)}Ze(o)}return!0},ownKeys(l){f(o);var s=Reflect.ownKeys(l).filter(c=>{var d=r.get(c);return d===void 0||d.v!==L});for(var[p,v]of r)v.v!==L&&!(p in l)&&s.push(p);return s},setPrototypeOf(){Ln()}})}var Nr,Sr,Cr,Or;function He(){if(Nr===void 0){Nr=window,Sr=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;Cr=Tt(e,"firstChild").get,Or=Tt(e,"nextSibling").get,sr(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),sr(r)&&(r.__t=void 0)}}function Et(t=""){return document.createTextNode(t)}function Pt(t){return Cr.call(t)}function dt(t){return Or.call(t)}function T(t,e){if(!N)return Pt(t);var r=Pt(S);if(r===null)r=S.appendChild(Et());else if(e&&r.nodeType!==cr){var n=Et();return r?.before(n),it(n),n}return it(r),r}function qe(t,e){if(!N){var r=Pt(t);return r instanceof Comment&&r.data===""?dt(r):r}return S}function vt(t,e=1,r=!1){let n=N?S:t;for(var o;e--;)o=n,n=dt(n);if(!N)return n;if(r&&n?.nodeType!==cr){var i=Et();return n===null?o?.after(i):n.before(i),it(i),i}return it(n),n}function Dr(t){t.textContent=""}function Pr(){return!1}function Gr(t){var e=A,r=_;ft(null),$t(null);try{return t()}finally{ft(e),$t(r)}}function no(t){_===null&&A===null&&On(),A!==null&&(A.f&nt)!==0&&_===null&&Cn(),Gt&&Sn()}function oo(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function yt(t,e,r,n=!0){var o=_;o!==null&&(o.f&st)!==0&&(t|=st);var i={ctx:mt,deps:null,nodes_start:null,nodes_end:null,f:t|ot,first:null,fn:e,last:null,next:null,parent:o,b:o&&o.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{ee(i),i.f|=Re}catch(s){throw gt(i),s}else e!==null&&Vt(i);if(n){var a=i;if(r&&a.deps===null&&a.teardown===null&&a.nodes_start===null&&a.first===a.last&&(a.f&Jt)===0&&(a=a.first),a!==null&&(a.parent=o,o!==null&&oo(a,o),A!==null&&(A.f&V)!==0&&(t&jt)===0)){var l=A;(l.effects??=[]).push(a)}}return i}function Ue(t){no();var e=_.f,r=!A&&(e&zt)!==0&&(e&Re)===0;if(r){var n=mt;(n.e??=[]).push(t)}else return Br(t)}function Br(t){return yt(Te|In,t,!1)}function io(t){Ct.ensure();const e=yt(jt|Jt,t,!0);return()=>{gt(e)}}function ao(t){Ct.ensure();const e=yt(jt|Jt,t,!0);return(r={})=>new Promise(n=>{r.outro?Je(e,()=>{gt(e),n(void 0)}):(gt(e),n(void 0))})}function lo(t){return yt(Te,t,!1)}function so(t){return yt(Ce|Jt,t,!0)}function bo(t,e=0){return yt(mr|e,t,!0)}function U(t,e=[],r=[]){to(e,r,n=>{yt(mr,()=>t(...n.map(f)),!0)})}function We(t,e=0){var r=yt(Wt|e,t,!0);return r}function Kt(t,e=!0){return yt(zt|Jt,t,!0,e)}function Lr(t){var e=t.teardown;if(e!==null){const r=Gt,n=A;Ur(!0),ft(null);try{e.call(null)}finally{Ur(r),ft(n)}}}function Yr(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const o=r.ac;o!==null&&Gr(()=>{o.abort(Oe)});var n=r.next;(r.f&jt)!==0?r.parent=null:gt(r,e),r=n}}function mo(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&zt)===0&>(e),e=r}}function gt(t,e=!0){var r=!1;(e||(t.f&vr)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(po(t.nodes_start,t.nodes_end),r=!0),Yr(t,e&&!r),we(t,0),tt(t,Rt);var n=t.transitions;if(n!==null)for(const i of n)i.stop();Lr(t);var o=t.parent;o!==null&&o.first!==null&&Fr(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function po(t,e){for(;t!==null;){var r=t===e?null:dt(t);t.remove(),t=r}}function Fr(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Je(t,e){var r=[];Xe(t,r,!0),Zr(r,()=>{gt(t),e&&e()})}function Zr(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var o of t)o.out(n)}else e()}function Xe(t,e,r){if((t.f&st)===0){if(t.f^=st,t.transitions!==null)for(const a of t.transitions)(a.is_global||r)&&e.push(a);for(var n=t.first;n!==null;){var o=n.next,i=(n.f&Ne)!==0||(n.f&zt)!==0;Xe(n,e,i?r:!1),n=o}}}function Qe(t){Hr(t,!0)}function Hr(t,e){if((t.f&st)!==0){t.f^=st,(t.f&q)===0&&(tt(t,ot),Vt(t));for(var r=t.first;r!==null;){var n=r.next,o=(r.f&Ne)!==0||(r.f&zt)!==0;Hr(r,o?e:!1),r=n}if(t.transitions!==null)for(const i of t.transitions)(i.is_global||e)&&i.in()}}let te=!1;function qr(t){te=t}let Gt=!1;function Ur(t){Gt=t}let A=null,ct=!1;function ft(t){A=t}let _=null;function $t(t){_=t}let wt=null;function Wr(t){A!==null&&(wt===null?wt=[t]:wt.push(t))}let W=null,K=0,at=null;function vo(t){at=t}let Jr=1,le=0,Bt=le;function Xr(t){Bt=t}let It=!1;function Qr(){return++Jr}function ye(t){var e=t.f;if((e&ot)!==0)return!0;if((e&At)!==0){var r=t.deps,n=(e&nt)!==0;if(r!==null){var o,i,a=(e&pe)!==0,l=n&&_!==null&&!It,s=r.length;if((a||l)&&(_===null||(_.f&Rt)===0)){var p=t,v=p.parent;for(o=0;o<s;o++)i=r[o],(a||!i?.reactions?.includes(p))&&(i.reactions??=[]).push(p);a&&(p.f^=pe),l&&v!==null&&(v.f&nt)===0&&(p.f^=nt)}for(o=0;o<s;o++)if(i=r[o],ye(i)&&jr(i),i.wv>t.wv)return!0}(!n||_!==null&&!It)&&tt(t,q)}return!1}function Vr(t,e,r=!0){var n=t.reactions;if(n!==null&&!wt?.includes(t))for(var o=0;o<n.length;o++){var i=n[o];(i.f&V)!==0?Vr(i,e,!1):e===i&&(r?tt(i,ot):(i.f&q)!==0&&tt(i,At),Vt(i))}}function Kr(t){var e=W,r=K,n=at,o=A,i=It,a=wt,l=mt,s=ct,p=Bt,v=t.f;W=null,K=0,at=null,It=(v&nt)!==0&&(ct||!te||A===null),A=(v&(zt|jt))===0?t:null,wt=null,ce(t.ctx),ct=!1,Bt=++le,t.ac!==null&&(Gr(()=>{t.ac.abort(Oe)}),t.ac=null);try{t.f|=Se;var c=t.fn,d=c(),g=t.deps;if(W!==null){var m;if(we(t,K),g!==null&&K>0)for(g.length=K+W.length,m=0;m<W.length;m++)g[K+m]=W[m];else t.deps=g=W;if(!It||(v&V)!==0&&t.reactions!==null)for(m=K;m<g.length;m++)(g[m].reactions??=[]).push(t)}else g!==null&&K<g.length&&(we(t,K),g.length=K);if(yr()&&at!==null&&!ct&&g!==null&&(t.f&(V|At|ot))===0)for(m=0;m<at.length;m++)Vr(at[m],t);return o!==null&&o!==t&&(le++,at!==null&&(n===null?n=at:n.push(...at))),(t.f&Nt)!==0&&(t.f^=Nt),d}catch(b){return qn(b)}finally{t.f^=Se,W=e,K=r,at=n,A=o,It=i,wt=a,ce(l),ct=s,Bt=p}}function go(t,e){let r=e.reactions;if(r!==null){var n=jn.call(r,t);if(n!==-1){var o=r.length-1;o===0?r=e.reactions=null:(r[n]=r[o],r.pop())}}r===null&&(e.f&V)!==0&&(W===null||!W.includes(e))&&(tt(e,At),(e.f&(nt|pe))===0&&(e.f^=pe),kr(e),we(e,0))}function we(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)go(t,r[n])}function ee(t){var e=t.f;if((e&Rt)===0){tt(t,q);var r=_,n=te;_=t,te=!0;try{(e&Wt)!==0?mo(t):Yr(t),Lr(t);var o=Kr(t);t.teardown=typeof o=="function"?o:null,t.wv=Jr;var i;ar&&Zn&&(t.f&ot)!==0&&t.deps}finally{te=n,_=r}}}function f(t){var e=t.f,r=(e&V)!==0;if(A!==null&&!ct){var n=_!==null&&(_.f&Rt)!==0;if(!n&&!wt?.includes(t)){var o=A.deps;if((A.f&Se)!==0)t.rv<le&&(t.rv=le,W===null&&o!==null&&o[K]===t?K++:W===null?W=[t]:(!It||!W.includes(t))&&W.push(t));else{(A.deps??=[]).push(t);var i=t.reactions;i===null?t.reactions=[A]:i.includes(A)||i.push(A)}}}else if(r&&t.deps===null&&t.effects===null){var a=t,l=a.parent;l!==null&&(l.f&nt)===0&&(a.f^=nt)}if(Gt){if(Mt.has(t))return Mt.get(t);if(r){a=t;var s=a.v;return((a.f&q)===0&&a.reactions!==null||tn(a))&&(s=Le(a)),Mt.set(a,s),s}}else r&&(a=t,ye(a)&&jr(a));if((t.f&Nt)!==0)throw t.v;return t.v}function tn(t){if(t.v===L)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Mt.has(e)||(e.f&V)!==0&&tn(e))return!0;return!1}function co(t){var e=ct;try{return ct=!0,t()}finally{ct=e}}const fo=-7169;function tt(t,e){t.f=t.f&fo|e}const en=new Set,Ve=new Set;function uo(t){for(var e=0;e<t.length;e++)en.add(t[e]);for(var r of Ve)r(t)}let rn=null;function _e(t){var e=this,r=e.ownerDocument,n=t.type,o=t.composedPath?.()||[],i=o[0]||t.target;rn=t;var a=0,l=rn===t&&t.__root;if(l){var s=o.indexOf(l);if(s!==-1&&(e===document||e===window)){t.__root=e;return}var p=o.indexOf(e);if(p===-1)return;s<=p&&(a=s)}if(i=o[a]||t.target,i!==e){Ut(t,"currentTarget",{configurable:!0,get(){return i||r}});var v=A,c=_;ft(null),$t(null);try{for(var d,g=[];i!==null;){var m=i.assignedSlot||i.parentNode||i.host||null;try{var b=i["__"+n];if(b!=null&&(!i.disabled||t.target===i))if($e(b)){var[z,...R]=b;z.apply(i,[t,...R])}else b.call(i,t)}catch(u){d?g.push(u):d=u}if(t.cancelBubble||m===e||m===null)break;i=m}if(d){for(let u of g)queueMicrotask(()=>{throw u});throw d}}finally{t.__root=e,delete t.currentTarget,ft(v),$t(c)}}}let lt;function zo(){lt=void 0}function xo(t){let e=null,r=N;var n;if(N){for(e=S,lt===void 0&&(lt=Pt(document.head));lt!==null&&(lt.nodeType!==Xt||lt.data!==Ae);)lt=dt(lt);lt===null?bt(!1):lt=it(dt(lt))}N||(n=document.head.appendChild(Et()));try{We(()=>t(n),vr)}finally{r&&(bt(!0),lt=S,it(e))}}function ho(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function re(t,e){var r=_;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function O(t,e){var r=(e&wn)!==0,n=(e&_n)!==0,o,i=!t.startsWith("<!>");return()=>{if(N)return re(S,null),S;o===void 0&&(o=ho(i?t:"<!>"+t),r||(o=Pt(o)));var a=n||Sr?document.importNode(o,!0):o.cloneNode(!0);if(r){var l=Pt(a),s=a.lastChild;re(l,s)}else re(a,a);return a}}function nn(){if(N)return re(S,null),S;var t=document.createDocumentFragment(),e=document.createComment(""),r=Et();return t.append(e,r),re(e,r),t}function C(t,e){if(N){_.nodes_end=S,ge();return}t!==null&&t.before(e)}const yo=["touchstart","touchmove"];function wo(t){return yo.includes(t)}function _t(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=r+"")}function on(t,e){return an(t,e)}function _o(t,e){He(),e.intro=e.intro??!1;const r=e.target,n=N,o=S;try{for(var i=Pt(r);i&&(i.nodeType!==Xt||i.data!==Ae);)i=dt(i);if(!i)throw qt;bt(!0),it(i),ge();const a=an(t,{...e,anchor:i});if(S===null||S.nodeType!==Xt||S.data!==Ee)throw ve(),qt;return bt(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==qt&&console.warn("Failed to hydrate: ",a),e.recover===!1&&Pn(),He(),Dr(r),bt(!1),on(t,e)}finally{bt(n),it(o),zo()}}const ne=new Map;function an(t,{target:e,anchor:r,props:n={},events:o,context:i,intro:a=!0}){He();var l=new Set,s=c=>{for(var d=0;d<c.length;d++){var g=c[d];if(!l.has(g)){l.add(g);var m=wo(g);e.addEventListener(g,_e,{passive:m});var b=ne.get(g);b===void 0?(document.addEventListener(g,_e,{passive:m}),ne.set(g,1)):ne.set(g,b+1)}}};s(Ie(en)),Ve.add(s);var p=void 0,v=ao(()=>{var c=r??e.appendChild(Et());return Kt(()=>{if(i){xr({});var d=mt;d.c=i}o&&(n.$$events=o),N&&re(c,null),p=t(c,n)||{},N&&(_.nodes_end=S),i&&hr()}),()=>{for(var d of l){e.removeEventListener(d,_e);var g=ne.get(d);--g===0?(document.removeEventListener(d,_e),ne.delete(d)):ne.set(d,g)}Ve.delete(s),c!==r&&c.parentNode?.removeChild(c)}});return Ke.set(p,v),p}let Ke=new WeakMap;function ko(t,e){const r=Ke.get(t);return r?(Ke.delete(t),r(e)):Promise.resolve()}function H(t,e,r=!1){N&&ge();var n=t,o=null,i=null,a=L,l=r?Ne:0,s=!1;const p=(g,m=!0)=>{s=!0,d(m,g)};var v=null;function c(){v!==null&&(v.lastChild.remove(),n.before(v),v=null);var g=a?o:i,m=a?i:o;g&&Qe(g),m&&Je(m,()=>{a?i=null:o=null})}const d=(g,m)=>{if(a===(a=g))return;let b=!1;if(N){const D=fr(n)===Me;!!a===D&&(n=De(),it(n),bt(!1),b=!0)}var z=Pr(),R=n;if(z&&(v=document.createDocumentFragment(),v.append(R=Et())),a?o??=m&&Kt(()=>m(R)):i??=m&&Kt(()=>m(R)),z){var u=G,x=a?o:i,k=a?i:o;x&&u.skipped_effects.delete(x),k&&u.skipped_effects.add(k),u.add_callback(c)}else c();b&&bt(!0)};We(()=>{s=!1,e(p),s||d(null,null)},l),N&&(n=S)}function jo(t,e){return e}function Ao(t,e,r){for(var n=t.items,o=[],i=e.length,a=0;a<i;a++)Xe(e[a].e,o,!0);var l=i>0&&o.length===0&&r!==null;if(l){var s=r.parentNode;Dr(s),s.append(r),n.clear(),ut(t,e[0].prev,e[i-1].next)}Zr(o,()=>{for(var p=0;p<i;p++){var v=e[p];l||(n.delete(v.k),ut(t,v.prev,v.next)),gt(v.e,!l)}})}function ln(t,e,r,n,o,i=null){var a=t,l={flags:e,items:new Map,first:null};N&&ge();var s=null,p=!1,v=new Map,c=_r(()=>{var b=r();return $e(b)?b:b==null?[]:Ie(b)}),d,g;function m(){Mo(g,d,l,v,a,o,e,n,r),i!==null&&(d.length===0?s?Qe(s):s=Kt(()=>i(a)):s!==null&&Je(s,()=>{s=null}))}We(()=>{g??=_,d=f(c);var b=d.length;if(p&&b===0)return;p=b===0;let z=!1;if(N){var R=fr(a)===Me;R!==(b===0)&&(a=De(),it(a),bt(!1),z=!0)}if(N){for(var u=null,x,k=0;k<b;k++){if(S.nodeType===Xt&&S.data===Ee){a=S,z=!0,bt(!1);break}var D=d[k],P=n(D,k);x=tr(S,l,u,null,D,P,k,o,e,r),l.items.set(P,x),u=x}b>0&&it(De())}if(N)b===0&&i&&(s=Kt(()=>i(a)));else if(Pr()){var Y=new Set,J=G;for(k=0;k<b;k+=1){D=d[k],P=n(D,k);var B=l.items.get(P)??v.get(P);B?sn(B,D,k):(x=tr(null,l,null,null,D,P,k,o,e,r,!0),v.set(P,x)),Y.add(P)}for(const[pt,kt]of l.items)Y.has(pt)||J.skipped_effects.add(kt.e);J.add_callback(m)}else m();z&&bt(!0),f(c)}),N&&(a=S)}function Mo(t,e,r,n,o,i,a,l,s){var p=e.length,v=r.items,c=r.first,d=c,g,m=null,b=[],z=[],R,u,x,k;for(k=0;k<p;k+=1){if(R=e[k],u=l(R,k),x=v.get(u),x===void 0){var D=n.get(u);if(D!==void 0){n.delete(u),v.set(u,D);var P=m?m.next:d;ut(r,m,D),ut(r,D,P),er(D,P,o),m=D}else{var Y=d?d.e.nodes_start:o;m=tr(Y,r,m,m===null?r.first:m.next,R,u,k,i,a,s)}v.set(u,m),b=[],z=[],d=m.next;continue}if(sn(x,R,k),(x.e.f&st)!==0&&Qe(x.e),x!==d){if(g!==void 0&&g.has(x)){if(b.length<z.length){var J=z[0],B;m=J.prev;var pt=b[0],kt=b[b.length-1];for(B=0;B<b.length;B+=1)er(b[B],J,o);for(B=0;B<z.length;B+=1)g.delete(z[B]);ut(r,pt.prev,kt.next),ut(r,m,pt),ut(r,kt,J),d=J,m=kt,k-=1,b=[],z=[]}else g.delete(x),er(x,d,o),ut(r,x.prev,x.next),ut(r,x,m===null?r.first:m.next),ut(r,m,x),m=x;continue}for(b=[],z=[];d!==null&&d.k!==u;)(d.e.f&st)===0&&(g??=new Set).add(d),z.push(d),d=d.next;if(d===null)continue;x=d}b.push(x),m=x,d=x.next}if(d!==null||g!==void 0){for(var Yt=g===void 0?[]:Ie(g);d!==null;)(d.e.f&st)===0&&Yt.push(d),d=d.next;var $=Yt.length;if($>0){var h=null;Ao(r,Yt,h)}}t.first=r.first&&r.first.e,t.last=m&&m.e;for(var y of n.values())gt(y.e);n.clear()}function sn(t,e,r,n){he(t.v,e),t.i=r}function tr(t,e,r,n,o,i,a,l,s,p,v){var c=(s&cn)!==0,d=(s&un)===0,g=c?d?Tr(o,!1,!1):ae(o):o,m=(s&fn)===0?a:ae(a),b={i:m,v:g,k:i,a:null,e:null,prev:r,next:n};try{if(t===null){var z=document.createDocumentFragment();z.append(t=Et())}return b.e=Kt(()=>l(t,g,m,p),N),b.e.prev=r&&r.e,b.e.next=n&&n.e,r===null?v||(e.first=b):(r.next=b,r.e.next=b.e),n!==null&&(n.prev=b,n.e.prev=b.e),b}finally{}}function er(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,o=e?e.e.nodes_start:r,i=t.e.nodes_start;i!==null&&i!==n;){var a=dt(i);o.before(i),i=a}}function ut(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function Eo(t,e){lo(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const o=document.createElement("style");o.id=e.hash,o.textContent=e.code,n.appendChild(o)}})}function $o(t,e,r){var n=t==null?"":""+t;return n=n?n+" "+e:e,n===""?null:n}function Lt(t,e,r,n,o,i){var a=t.__className;if(N||a!==r||a===void 0){var l=$o(r,n);(!N||l!==t.getAttribute("class"))&&(l==null?t.removeAttribute("class"):t.className=l),t.__className=r}return i}const Io=Symbol("is custom element"),To=Symbol("is html");function oe(t,e,r,n){var o=Ro(t);N&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||o[e]!==(o[e]=r)&&(e==="loading"&&(t[Tn]=r),r==null?t.removeAttribute(e):typeof r!="string"&&No(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function Ro(t){return t.__attributes??={[Io]:t.nodeName.includes("-"),[To]:t.namespaceURI===kn}}var bn=new Map;function No(t){var e=t.getAttribute("is")||t.nodeName,r=bn.get(e);if(r)return r;bn.set(e,r=[]);for(var n,o=t,i=Element.prototype;i!==o;){n=An(o);for(var a in n)n[a].set&&r.push(a);o=lr(o)}return r}let ke=!1;function So(t){var e=ke;try{return ke=!1,[t(),ke]}finally{ke=e}}function se(t,e,r,n){var o=(r&hn)!==0,i=(r&yn)!==0,a=n,l=!0,s=()=>(l&&(l=!1,a=i?co(n):n),a),p;if(o){var v=de in t||gr in t;p=Tt(t,e)?.set??(v&&e in t?u=>t[e]=u:void 0)}var c,d=!1;o?[c,d]=So(()=>t[e]):c=t[e],c===void 0&&n!==void 0&&(c=s(),p&&(Gn(),p(c)));var g;if(g=()=>{var u=t[e];return u===void 0?s():(l=!0,u)},(r&xn)===0)return g;if(p){var m=t.$$legacy;return(function(u,x){return arguments.length>0?((!x||m||d)&&p(x?g():u),u):g()})}var b=!1,z=((r&zn)!==0?fe:_r)(()=>(b=!1,g()));o&&f(z);var R=_;return(function(u,x){if(arguments.length>0){const k=x?f(z):o?Dt(u):u;return ht(z,k),b=!0,a!==void 0&&(a=k),u}return Gt&&b||(R.f&Rt)!==0?z.v:f(z)})}function Co(t){return new Oo(t)}class Oo{#e;#t;constructor(e){var r=new Map,n=(i,a)=>{var l=Tr(a,!1,!1);return r.set(i,l),l};const o=new Proxy({...e.props||{},$$events:{}},{get(i,a){return f(r.get(a)??n(a,Reflect.get(i,a)))},has(i,a){return a===gr?!0:(f(r.get(a)??n(a,Reflect.get(i,a))),Reflect.has(i,a))},set(i,a,l){return ht(r.get(a)??n(a,l),l),Reflect.set(i,a,l)}});this.#t=(e.hydrate?_o:on)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Qt(),this.#e=o.$$events;for(const i of Object.keys(this.#t))i==="$set"||i==="$destroy"||i==="$on"||Ut(this,i,{get(){return this.#t[i]},set(a){this.#t[i]=a},enumerable:!0});this.#t.$set=i=>{Object.assign(o,i)},this.#t.$destroy=()=>{ko(this.#t)}}$set(e){this.#t.$set(e)}$on(e,r){this.#e[e]=this.#e[e]||[];const n=(...o)=>r.call(this,...o);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(o=>o!==n)}}$destroy(){this.#t.$destroy()}}let mn;typeof HTMLElement=="function"&&(mn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,r){super(),this.$$ctor=t,this.$$s=e,r&&this.attachShadow({mode:"open"})}addEventListener(t,e,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const n=this.$$c.$on(t,e);this.$$l_u.set(e,n)}super.addEventListener(t,e,r)}removeEventListener(t,e,r){if(super.removeEventListener(t,e,r),this.$$c){const n=this.$$l_u.get(e);n&&(n(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return o=>{const i=document.createElement("slot");n!=="default"&&(i.name=n),C(o,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},r=Do(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),e.default=!0):e[n]=t(n));for(const n of this.attributes){const o=this.$$g_p(n.name);o in this.$$d||(this.$$d[o]=je(o,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=Co({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=io(()=>{bo(()=>{this.$$r=!0;for(const n of me(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const o=je(n,this.$$d[n],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,o)}this.$$r=!1})});for(const n in this.$$l)for(const o of this.$$l[n]){const i=this.$$c.$on(n,o);this.$$l_u.set(o,i)}this.$$l={}}}attributeChangedCallback(t,e,r){this.$$r||(t=this.$$g_p(t),this.$$d[t]=je(t,r,this.$$p_d,"toProp"),this.$$c?.$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 me(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function je(t,e,r,n){const o=r[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Do(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function Po(t,e,r,n,o,i){let a=class extends mn{constructor(){super(t,r,o),this.$$p_d=e}static get observedAttributes(){return me(e).map(l=>(e[l].attribute||l).toLowerCase())}};return me(e).forEach(l=>{Ut(a.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(s){s=je(l,s,e),this.$$d[l]=s;var p=this.$$c;if(p){var v=Tt(p,l)?.get;v?p[l]=s:p.$set({[l]:s})}}})}),n.forEach(l=>{Ut(a.prototype,l,{get(){return this.$$c?.[l]}})}),t.element=a,a}function Go(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ie={},rr,pn;function Bo(){if(pn)return rr;pn=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,s=`
|
|
3
|
+
`,p="/",v="*",c="",d="comment",g="declaration";rr=function(b,z){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];z=z||{};var R=1,u=1;function x($){var h=$.match(e);h&&(R+=h.length);var y=$.lastIndexOf(s);u=~y?$.length-y:u+$.length}function k(){var $={line:R,column:u};return function(h){return h.position=new D($),J(),h}}function D($){this.start=$,this.end={line:R,column:u},this.source=z.source}D.prototype.content=b;function P($){var h=new Error(z.source+":"+R+":"+u+": "+$);if(h.reason=$,h.filename=z.source,h.line=R,h.column=u,h.source=b,!z.silent)throw h}function Y($){var h=$.exec(b);if(h){var y=h[0];return x(y),b=b.slice(y.length),h}}function J(){Y(r)}function B($){var h;for($=$||[];h=pt();)h!==!1&&$.push(h);return $}function pt(){var $=k();if(!(p!=b.charAt(0)||v!=b.charAt(1))){for(var h=2;c!=b.charAt(h)&&(v!=b.charAt(h)||p!=b.charAt(h+1));)++h;if(h+=2,c===b.charAt(h-1))return P("End of comment missing");var y=b.slice(2,h-2);return u+=2,x(y),b=b.slice(h),u+=2,$({type:d,comment:y})}}function kt(){var $=k(),h=Y(n);if(h){if(pt(),!Y(o))return P("property missing ':'");var y=Y(i),M=$({type:g,property:m(h[0].replace(t,c)),value:y?m(y[0].replace(t,c)):c});return Y(a),M}}function Yt(){var $=[];B($);for(var h;h=kt();)h!==!1&&($.push(h),B($));return $}return J(),Yt()};function m(b){return b?b.replace(l,c):c}return rr}var dn;function Lo(){if(dn)return ie;dn=1;var t=ie&&ie.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(ie,"__esModule",{value:!0}),ie.default=r;var e=t(Bo());function r(n,o){var i=null;if(!n||typeof n!="string")return i;var a=(0,e.default)(n),l=typeof o=="function";return a.forEach(function(s){if(s.type==="declaration"){var p=s.property,v=s.value;l?o(p,v,s):v&&(i=i||{},i[p]=v)}}),i}return ie}var Yo=Lo();const vn=Go(Yo);vn.default;var Fo=O('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1bzr01n"/>'),Zo=O('<div class="author-name-spacer me-2 svelte-1bzr01n"></div>'),Ho=O('<div class="author-name-spacer ms-2 svelte-1bzr01n"></div>'),qo=O('<div><!> <div class="author-name-content flex-grow-1 svelte-1bzr01n"><span> </span></div> <!></div>'),Uo=O('<span class="badge bg-primary position-absolute top-0 end-0 translate-middle rounded-pill svelte-1bzr01n">AI</span>'),Wo=O('<div class="avatar-container position-relative svelte-1bzr01n"><img class="rounded-circle svelte-1bzr01n" width="40" height="40"/> <!></div>'),Jo=O('<div class="avatar-spacer svelte-1bzr01n"></div>'),Xo=O('<div class="message-avatar me-2 svelte-1bzr01n"><!></div>'),Qo=O('<div class="code-header d-flex justify-content-between align-items-center mb-2 svelte-1bzr01n"><span class="badge bg-secondary svelte-1bzr01n"> </span></div>'),Vo=O('<div class="code-block svelte-1bzr01n"><!> <pre class="bg-dark text-light p-3 rounded-2 mb-0 svelte-1bzr01n"><code class="svelte-1bzr01n"> </code></pre></div>'),Ko=O('<div class="message-text svelte-1bzr01n"> </div>'),ti=O('<div><div part="message-body" class="message-body svelte-1bzr01n"><!></div></div>'),ei=O('<div class="code-header d-flex justify-content-between align-items-center mb-2 svelte-1bzr01n"><span class="badge bg-secondary svelte-1bzr01n"> </span></div>'),ri=O('<div class="code-block svelte-1bzr01n"><!> <pre class="bg-dark text-light p-3 rounded-2 mb-0 svelte-1bzr01n"><code class="svelte-1bzr01n"> </code></pre></div>'),ni=O('<div class="message-text svelte-1bzr01n"> </div>'),oi=O('<div part="message" class="message-bubble bg-secondary-subtle border rounded-3 p-3 shadow-sm svelte-1bzr01n"><div part="message-body" class="message-body svelte-1bzr01n"><!></div></div>'),ii=(t,e,r,n)=>e("action",{messageId:f(r).id,action:f(n).name}),ai=O('<button class="btn btn-sm btn-outline-secondary rounded-circle p-1 svelte-1bzr01n"><i></i></button>'),li=O('<div part="message-timestamp" class="message-timestamp ms-2 svelte-1bzr01n"> </div>'),si=O("<div><!> <!></div>"),bi=O('<div><div part="message-timestamp" class="message-timestamp svelte-1bzr01n"> </div></div>'),mi=O('<img alt="You" class="rounded-circle svelte-1bzr01n" width="40" height="40"/>'),pi=O('<div class="avatar-spacer svelte-1bzr01n"></div>'),di=O('<div class="message-avatar ms-2 svelte-1bzr01n"><!></div>'),vi=O('<!> <div><!> <div class="message-content position-relative svelte-1bzr01n"><!> <!></div> <!></div>',1);const gi={hash:"svelte-1bzr01n",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
4
|
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
|
|
5
5
|
/*!
|
|
6
6
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
@@ -180,5 +180,5 @@ button.svelte-1bzr01n {margin:0;font-family:inherit;font-size:inherit;line-heigh
|
|
|
180
180
|
@media print {.d-print-inline.svelte-1bzr01n {display:inline !important;}.d-print-inline-block.svelte-1bzr01n {display:inline-block !important;}.d-print-block.svelte-1bzr01n {display:block !important;}.d-print-grid.svelte-1bzr01n {display:grid !important;}.d-print-inline-grid.svelte-1bzr01n {display:inline-grid !important;}.d-print-table.svelte-1bzr01n {display:table !important;}.d-print-table-row.svelte-1bzr01n {display:table-row !important;}.d-print-table-cell.svelte-1bzr01n {display:table-cell !important;}.d-print-flex.svelte-1bzr01n {display:flex !important;}.d-print-inline-flex.svelte-1bzr01n {display:inline-flex !important;}.d-print-none.svelte-1bzr01n {display:none !important;}
|
|
181
181
|
}:host {font-family:"Roboto", sans-serif;width:100%;padding:1rem;max-height:600px;}:host .message-wrapper.svelte-1bzr01n:hover .message-bubble:where(.svelte-1bzr01n) {box-shadow:0 4px 12px rgba(0, 0, 0, 0.15) !important;}:host .author-name-wrapper.svelte-1bzr01n {width:100%;align-items:center;}:host .author-name-wrapper.svelte-1bzr01n .author-name-spacer:where(.svelte-1bzr01n) {flex-shrink:0;width:40px;}:host .author-name-wrapper.svelte-1bzr01n .author-name-content:where(.svelte-1bzr01n) span:where(.svelte-1bzr01n) {font-size:1.1rem;line-height:1.2;display:block;padding:0.25rem 0.5rem;border-radius:0.25rem;}:host .author-name-wrapper.d-flex.justify-content-end.svelte-1bzr01n .author-name-content:where(.svelte-1bzr01n) {text-align:right;}:host .author-name-wrapper.d-flex.justify-content-start.svelte-1bzr01n .author-name-content:where(.svelte-1bzr01n) {text-align:left;}:host .message-bubble.svelte-1bzr01n {position:relative;word-wrap:break-word;}:host .message-bubble.bg-primary.svelte-1bzr01n {background:linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;}:host .message-bubble.bg-light.svelte-1bzr01n {background-color:#f8f9fa !important;border:1px solid #dee2e6 !important;}:host .message-bubble.bg-secondary-subtle.svelte-1bzr01n {background-color:#f8f9fa !important;border:1px solid #dee2e6 !important;color:inherit;}:host .code-block.svelte-1bzr01n pre:where(.svelte-1bzr01n) {background-color:#1e1e1e !important;border:1px solid #333;font-family:"Monaco", "Menlo", "Ubuntu Mono", monospace;font-size:0.875rem;overflow-x:auto;}:host .code-block.svelte-1bzr01n pre:where(.svelte-1bzr01n) code:where(.svelte-1bzr01n) {color:#d4d4d4;}:host .message-actions.svelte-1bzr01n button:where(.svelte-1bzr01n) {backdrop-filter:blur(4px);border:1px solid rgba(255, 255, 255, 0.2);background-color:rgba(255, 255, 255, 0.9);width:24px;height:24px;font-size:10px;}:host .message-actions.svelte-1bzr01n button:where(.svelte-1bzr01n):hover {transform:scale(1.1);box-shadow:0 2px 8px rgba(0, 0, 0, 0.15);background-color:rgb(255, 255, 255);}:host .avatar-container.svelte-1bzr01n .badge:where(.svelte-1bzr01n) {font-size:8px !important;padding:2px 4px !important;line-height:1;}:host .avatar-spacer.svelte-1bzr01n {width:40px;}:host .message-timestamp.svelte-1bzr01n {font-size:0.75rem;color:#6c757d;line-height:1;display:flex;align-items:center;white-space:nowrap;}:host .message-timestamp-only.svelte-1bzr01n .message-timestamp:where(.svelte-1bzr01n) {font-size:0.75rem;color:#6c757d;line-height:1;display:flex;align-items:center;white-space:nowrap;}
|
|
182
182
|
@media (max-width: 768px) {:host .message-bubble.svelte-1bzr01n {max-width:85% !important;}:host .message-actions.svelte-1bzr01n {margin-top:0.5rem;}
|
|
183
|
-
}`};function gn(t,e){xr(e,!0),Eo(t,gi);function r(m,b){e.$$host.dispatchEvent(new CustomEvent(m,{detail:b}))}const n={showTimestamp:!0,showActions:!0,showAvatar:!0,showName:!0,bubbles:!1};let o=se(e,"id",7,""),i=se(e,"messages",7),a=se(e,"authors",7),l=se(e,"options",7,n),s=se(e,"actions",23,()=>[]);function p(m=!1){return m?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyMCIgY3k9IjIwIiByPSIyMCIgZmlsbD0iIzYzNjZGMCIvPjxwYXRoIGQ9Ik0yMCAxMEMxNS41OCAxMCAxMiAxMy41OCAxMiAxOEMxMiAyMi40MiAxNS41OCAyNiAyMCAyNkMyNC40MiAyNiAyOCAyMi40MiAyOCAxOEMyOCAxMy41OCAyNC40MiAxMCAyMCAxMFpNMjAgMjRDMTYuNjkgMjQgMTQgMjEuMzEgMTQgMThDMTQgMTQuNjkgMTYuNjkgMTIgMjAgMTJDMjMuMzEgMTIgMjYgMTQuNjkgMjYgMThDMjYgMjEuMzEgMjMuMzEgMjQgMjAgMjRaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik0xNiAxNkgxNlYxOEgxNlYxNloiIGZpbGw9IndoaXRlIi8+PHBhdGggZD0iTTI0IDE2SDI0VjE4SDI0VjE2WiIgZmlsbD0id2hpdGUiLz48cGF0aCBkPSJNMTggMjBIMjJWMjJIMThWMjBaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyMCIgY3k9IjIwIiByPSIyMCIgZmlsbD0iIzZDNzU3NyIvPjxwYXRoIGQ9Ik0yMCAxMEMxNS41OCAxMCAxMiAxMy41OCAxMiAxOEMxMiAyMi40MiAxNS41OCAyNiAyMCAyNkMyNC40MiAyNiAyOCAyMi40MiAyOCAxOEMyOCAxMy41OCAyNC40MiAxMCAyMCAxMFpNMjAgMjRDMTYuNjkgMjQgMTQgMjEuMzEgMTQgMThDMTQgMTQuNjkgMTYuNjkgMTIgMjAgMTJDMjMuMzEgMTIgMjYgMTQuNjkgMjYgMThDMjYgMjEuMzEgMjMuMzEgMjQgMjAgMjRaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik0xNiAxNkgxNlYxOEgxNlYxNloiIGZpbGw9IndoaXRlIi8+PHBhdGggZD0iTTI0IDE2SDI0VjE4SDI0VjE2WiIgZmlsbD0id2hpdGUiLz48cGF0aCBkPSJNMTggMjBIMjJWMjJIMThWMjBaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg=="}let v=Vn(()=>!i()||!a()?[]:i()?.filter?.(b=>a()?.find?.(z=>z?.id&&b?.authorId&&z.id===b.authorId)?.id)?.map?.((b,z)=>{const R=a()?.find?.(pt=>pt.id===b.authorId),u=new Date(b.timestamp).toDateString()===new Date().toDateString(),x=new Date(b.timestamp),k=x.toLocaleTimeString().split(":")[0]+":"+x.toLocaleTimeString().split(":")[1],D=x.toLocaleString().split(" ")[0]+" "+x.toLocaleTimeString().split(":")[0]+":"+x.toLocaleTimeString().split(":")[1],P=u?k:D,Y=z>0?i()[z-1]:null,J=!!(Y&&Y.authorId===b.authorId&&new Date(b.timestamp).getTime()-new Date(Y.timestamp).getTime()<3e5),B=!!(l().showAvatar&&(!J||z===0));return{...b,author:R,dateString:P,showAvatar:B,isConsecutive:J}})||[]);Dt({}),Ue(()=>{if(typeof i()=="string")try{i(JSON.parse(i()))}catch(m){console.error("error parsing messages",m)}if(typeof s()=="string")try{s(JSON.parse(s()))}catch(m){console.error("error parsing actions",m)}}),Ue(()=>{if(typeof l()=="string")try{l(JSON.parse(l())),l({...n,...l()})}catch(m){console.error("error parsing options",m)}}),Ue(()=>{if(typeof a()=="string")try{a(JSON.parse(a()))}catch(m){console.error("error parsing authors",m)}});var c={get id(){return o()},set id(m=""){o(m),Qt()},get messages(){return i()},set messages(m){i(m),Qt()},get authors(){return a()},set authors(m){a(m),Qt()},get options(){return l()},set options(m=n){l(m),Qt()},get actions(){return s()},set actions(m=[]){s(m),Qt()}},d=nn();xo(m=>{var b=Fo();C(m,b)});var g=qe(d);return ln(g,17,()=>f(v),m=>m.id,(m,b)=>{var z=vi(),R=qe(z);{var u=y=>{var
|
|
183
|
+
}`};function gn(t,e){xr(e,!0),Eo(t,gi);function r(m,b){e.$$host.dispatchEvent(new CustomEvent(m,{detail:b}))}const n={showTimestamp:!0,showActions:!0,showAvatar:!0,showName:!0,bubbles:!1};let o=se(e,"id",7,""),i=se(e,"messages",7),a=se(e,"authors",7),l=se(e,"options",7,n),s=se(e,"actions",23,()=>[]);function p(m=!1){return m?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyMCIgY3k9IjIwIiByPSIyMCIgZmlsbD0iIzYzNjZGMCIvPjxwYXRoIGQ9Ik0yMCAxMEMxNS41OCAxMCAxMiAxMy41OCAxMiAxOEMxMiAyMi40MiAxNS41OCAyNiAyMCAyNkMyNC40MiAyNiAyOCAyMi40MiAyOCAxOEMyOCAxMy41OCAyNC40MiAxMCAyMCAxMFpNMjAgMjRDMTYuNjkgMjQgMTQgMjEuMzEgMTQgMThDMTQgMTQuNjkgMTYuNjkgMTIgMjAgMTJDMjMuMzEgMTIgMjYgMTQuNjkgMjYgMThDMjYgMjEuMzEgMjMuMzEgMjQgMjAgMjRaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik0xNiAxNkgxNlYxOEgxNlYxNloiIGZpbGw9IndoaXRlIi8+PHBhdGggZD0iTTI0IDE2SDI0VjE4SDI0VjE2WiIgZmlsbD0id2hpdGUiLz48cGF0aCBkPSJNMTggMjBIMjJWMjJIMThWMjBaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg==":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyMCIgY3k9IjIwIiByPSIyMCIgZmlsbD0iIzZDNzU3NyIvPjxwYXRoIGQ9Ik0yMCAxMEMxNS41OCAxMCAxMiAxMy41OCAxMiAxOEMxMiAyMi40MiAxNS41OCAyNiAyMCAyNkMyNC40MiAyNiAyOCAyMi40MiAyOCAxOEMyOCAxMy41OCAyNC40MiAxMCAyMCAxMFpNMjAgMjRDMTYuNjkgMjQgMTQgMjEuMzEgMTQgMThDMTQgMTQuNjkgMTYuNjkgMTIgMjAgMTJDMjMuMzEgMTIgMjYgMTQuNjkgMjYgMThDMjYgMjEuMzEgMjMuMzEgMjQgMjAgMjRaIiBmaWxsPSJ3aGl0ZSIvPjxwYXRoIGQ9Ik0xNiAxNkgxNlYxOEgxNlYxNloiIGZpbGw9IndoaXRlIi8+PHBhdGggZD0iTTI0IDE2SDI0VjE4SDI0VjE2WiIgZmlsbD0id2hpdGUiLz48cGF0aCBkPSJNMTggMjBIMjJWMjJIMThWMjBaIiBmaWxsPSJ3aGl0ZSIvPjwvc3ZnPg=="}let v=Vn(()=>!i()||!a()?[]:i()?.filter?.(b=>a()?.find?.(z=>z?.id&&b?.authorId&&z.id===b.authorId)?.id)?.map?.((b,z)=>{const R=a()?.find?.(pt=>pt.id===b.authorId),u=new Date(b.timestamp).toDateString()===new Date().toDateString(),x=new Date(b.timestamp),k=x.toLocaleTimeString().split(":")[0]+":"+x.toLocaleTimeString().split(":")[1],D=x.toLocaleString().split(" ")[0]+" "+x.toLocaleTimeString().split(":")[0]+":"+x.toLocaleTimeString().split(":")[1],P=u?k:D,Y=z>0?i()[z-1]:null,J=!!(Y&&Y.authorId===b.authorId&&new Date(b.timestamp).getTime()-new Date(Y.timestamp).getTime()<3e5),B=!!(l().showAvatar&&(!J||z===0));return{...b,author:R,dateString:P,showAvatar:B,isConsecutive:J}})||[]);Dt({}),Ue(()=>{if(typeof i()=="string")try{i(JSON.parse(i()))}catch(m){console.error("error parsing messages",m)}if(typeof s()=="string")try{s(JSON.parse(s()))}catch(m){console.error("error parsing actions",m)}}),Ue(()=>{if(typeof l()=="string")try{l(JSON.parse(l())),l({...n,...l()})}catch(m){console.error("error parsing options",m)}}),Ue(()=>{if(typeof a()=="string")try{a(JSON.parse(a()))}catch(m){console.error("error parsing authors",m)}});var c={get id(){return o()},set id(m=""){o(m),Qt()},get messages(){return i()},set messages(m){i(m),Qt()},get authors(){return a()},set authors(m){a(m),Qt()},get options(){return l()},set options(m=n){l(m),Qt()},get actions(){return s()},set actions(m=[]){s(m),Qt()}},d=nn();xo(m=>{var b=Fo();C(m,b)});var g=qe(d);return ln(g,17,()=>f(v),m=>m.id,(m,b)=>{var z=vi(),R=qe(z);{var u=y=>{var M=qo(),F=T(M);{var et=rt=>{var Q=Zo();C(rt,Q)};H(F,rt=>{!f(b).author.me&&l().showAvatar&&rt(et)})}var Z=vt(F,2),E=T(Z),w=T(E,!0);I(E),I(Z);var j=vt(Z,2);{var X=rt=>{var Q=Ho();C(rt,Q)};H(j,rt=>{f(b).author.me&&l().showAvatar&&rt(X)})}I(M),U(()=>{Lt(M,1,`author-name-wrapper d-flex ${f(b).author.me?"justify-content-end":"justify-content-start"} mb-1 w-100`,"svelte-1bzr01n"),Lt(E,1,`fw-semibold ${f(b).author.me?"text-secondary":"text-primary"}`,"svelte-1bzr01n"),_t(w,f(b).author.me?"You":f(b).author.name)}),C(y,M)};H(R,y=>{l().showName&&y(u)})}var x=vt(R,2),k=T(x);{var D=y=>{var M=Xo(),F=T(M);{var et=E=>{var w=Wo(),j=T(w),X=vt(j,2);{var rt=Q=>{var Ft=Uo();C(Q,Ft)};H(X,Q=>{f(b).author.isAI&&Q(rt)})}I(w),U(Q=>{oe(j,"src",Q),oe(j,"alt",f(b).author.name)},[()=>f(b).author.avatar||p(f(b).author.isAI)]),C(E,w)},Z=E=>{var w=Jo();C(E,w)};H(F,E=>{f(b).showAvatar?E(et):E(Z,!1)})}I(M),C(y,M)};H(k,y=>{!f(b).author.me&&l().showAvatar&&y(D)})}var P=vt(k,2),Y=T(P);{var J=y=>{var M=ti(),F=T(M),et=T(F);{var Z=w=>{var j=Vo(),X=T(j);{var rt=Zt=>{var Ht=Qo(),be=T(Ht),or=T(be,!0);I(be),I(Ht),U(()=>_t(or,f(b).language)),C(Zt,Ht)};H(X,Zt=>{f(b).language&&Zt(rt)})}var Q=vt(X,2),Ft=T(Q),nr=T(Ft,!0);I(Ft),I(Q),I(j),U(()=>_t(nr,f(b).text)),C(w,j)},E=w=>{var j=Ko(),X=T(j,!0);I(j),U(()=>_t(X,f(b).text)),C(w,j)};H(et,w=>{f(b).type==="code"?w(Z):w(E,!1)})}I(F),I(M),U(()=>{oe(M,"part",`message-bubble-${f(b).author.me?"me":"them"}`),Lt(M,1,`message-bubble ${f(b).author.me?"bg-primary text-white":"bg-light border"} rounded-3 p-3 shadow-sm`,"svelte-1bzr01n")}),C(y,M)},B=y=>{var M=oi(),F=T(M),et=T(F);{var Z=w=>{var j=ri(),X=T(j);{var rt=Zt=>{var Ht=ei(),be=T(Ht),or=T(be,!0);I(be),I(Ht),U(()=>_t(or,f(b).language)),C(Zt,Ht)};H(X,Zt=>{f(b).language&&Zt(rt)})}var Q=vt(X,2),Ft=T(Q),nr=T(Ft,!0);I(Ft),I(Q),I(j),U(()=>_t(nr,f(b).text)),C(w,j)},E=w=>{var j=ni(),X=T(j,!0);I(j),U(()=>_t(X,f(b).text)),C(w,j)};H(et,w=>{f(b).type==="code"?w(Z):w(E,!1)})}I(F),I(M),C(y,M)};H(Y,y=>{l().bubbles?y(J):y(B,!1)})}var pt=vt(Y,2);{var kt=y=>{var M=si(),F=T(M);ln(F,17,s,jo,(E,w)=>{var j=ai();j.__click=[ii,r,b,w];var X=T(j);I(j),U(()=>{oe(j,"title",f(w).name),oe(j,"aria-label",f(w).name),Lt(X,1,`bi bi-${f(w).icon??""}`,"svelte-1bzr01n")}),C(E,j)});var et=vt(F,2);{var Z=E=>{var w=li(),j=T(w,!0);I(w),U(()=>_t(j,f(b).dateString)),C(E,w)};H(et,E=>{l().showTimestamp&&E(Z)})}I(M),U(()=>Lt(M,1,`message-actions d-flex gap-1 ${f(b).author.me?"justify-content-end":"justify-content-start"} mt-2`,"svelte-1bzr01n")),C(y,M)},Yt=y=>{var M=nn(),F=qe(M);{var et=Z=>{var E=bi(),w=T(E),j=T(w,!0);I(w),I(E),U(()=>{Lt(E,1,`message-timestamp-only d-flex ${f(b).author.me?"justify-content-end":"justify-content-start"} mt-1`,"svelte-1bzr01n"),_t(j,f(b).dateString)}),C(Z,E)};H(F,Z=>{l().showTimestamp&&Z(et)},!0)}C(y,M)};H(pt,y=>{s()?.length?y(kt):y(Yt,!1)})}I(P);var $=vt(P,2);{var h=y=>{var M=di(),F=T(M);{var et=E=>{var w=mi();U(j=>oe(w,"src",j),[()=>f(b).author.avatar||p(!1)]),C(E,w)},Z=E=>{var w=pi();C(E,w)};H(F,E=>{f(b).showAvatar?E(et):E(Z,!1)})}I(M),C(y,M)};H($,y=>{f(b).author.me&&l().showAvatar&&y(h)})}I(x),U(()=>Lt(x,1,`message-wrapper d-flex ${f(b).author.me?"justify-content-end":"justify-content-start"} mb-3 w-100`,"svelte-1bzr01n")),C(m,z)}),C(t,d),hr(c)}uo(["click"]),customElements.define("hb-messages-list",Po(gn,{id:{},messages:{},authors:{},options:{},actions:{}},[],[],!0)),ir.Component=gn,Object.defineProperty(ir,Symbol.toStringTag,{value:"Module"})})(this["messages-list"]=this["messages-list"]||{});
|
|
184
184
|
//# sourceMappingURL=main.iife.js.map
|