@htmlbricks/hb-messages-list 0.62.0 → 0.62.2

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