@htmlbricks/hb-messages-send 0.60.18 → 0.60.20

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,77 @@
1
- (function(gt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Nn=1,Cn=2,Xe="[",$t="[!",yt="]",ce={},T=Symbol(),Pn="http://www.w3.org/1999/xhtml",bt=!1;var wt=Array.isArray,Mn=Array.prototype.indexOf,In=Array.from,qe=Object.keys,ve=Object.defineProperty,de=Object.getOwnPropertyDescriptor,Ln=Object.prototype,Dn=Array.prototype,jn=Object.getPrototypeOf,Et=Object.isExtensible;function xt(e){for(var t=0;t<e.length;t++)e[t]()}function Fn(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const O=2,Ke=4,Tt=8,he=16,K=32,z=64,kt=128,D=256,Ae=512,q=1024,M=2048,J=4096,Z=8192,ie=16384,St=32768,ze=65536,Rt=1<<17,qt=1<<18,_e=1<<19,Yn=1<<20,Je=1<<21,Ze=1<<22,le=1<<23,Qe=Symbol("$state"),Gn=Symbol("legacy props"),Hn=Symbol(""),et=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Un=3,Ee=8;function Vn(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Bn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Wn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Xn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Kn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function zn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Jn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Oe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let b=!1;function Q(e){b=e}let x;function V(e){if(e===null)throw Oe(),ce;return x=e}function tt(){return V(B(x))}function Ne(e){if(b){if(B(x)!==null)throw Oe(),ce;x=e}}function Zn(){for(var e=0,t=x;;){if(t.nodeType===Ee){var n=t.data;if(n===yt){if(e===0)return t;e-=1}else(n===Xe||n===$t)&&(e+=1)}var r=B(t);t.remove(),t=r}}function Qn(e){if(!e||e.nodeType!==Ee)throw Oe(),ce;return e.data}function At(e){return e===this.v}function er(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function tr(e){return!er(e,this.v)}let nr=!1,F=null;function Ce(e){F=e}function Ot(e,t=!1,n){F={p:F,c:null,e:null,s:e,x:null,l:null}}function Nt(e){var t=F,n=t.e;if(n!==null){t.e=null;for(var r of n)br(r)}return e!==void 0&&(t.x=e),F=t.p,e??{}}function Ct(){return!0}const rr=new WeakMap;function sr(e){var t=m;if(t===null)return g.f|=le,e;if((t.f&St)===0){if((t.f&kt)===0)throw!t.parent&&e instanceof Error&&Pt(e),e;t.b.error(e)}else nt(e,t)}function nt(e,t){for(;t!==null;){if((t.f&kt)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&Pt(e),e}function Pt(e){const t=rr.get(e);t&&(ve(e,"message",{value:t.message}),ve(e,"stack",{value:t.stack}))}const ir=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;let rt=[],xe=[];function lr(){var e=rt;rt=[],xt(e)}function Mt(){var e=xe;xe=[],xt(e)}function ar(e){xe.length===0&&ir(Mt),xe.push(e)}function ur(){rt.length>0&&lr(),xe.length>0&&Mt()}function fr(){const e=m.b;return e===null&&Vn(),e}function It(e){var t=O|M,n=g!==null&&(g.f&O)!==0?g:null;return m===null||n!==null&&(n.f&D)!==0?t|=D:m.f|=_e,{ctx:F,deps:null,effects:null,equals:At,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:n??m,ac:null}}function or(e,t){let n=m;n===null&&Bn();var r=n.b,s=void 0,i=at(T),l=null,u=!g;return Tr(()=>{try{var a=e();l&&Promise.resolve(a).catch(()=>{})}catch(c){a=Promise.reject(c)}var f=()=>a;s=l?.then(f,f)??Promise.resolve(a),l=s;var o=w,v=r.is_pending();u&&(r.update_pending_count(1),v||o.increment());const h=(c,d=void 0)=>{l=null,v||o.activate(),d?d!==et&&(i.f|=le,ut(i,d)):((i.f&le)!==0&&(i.f^=le),ut(i,c)),u&&(r.update_pending_count(-1),v||o.decrement()),jt()};if(s.then(h,c=>h(null,c||"unknown")),o)return()=>{queueMicrotask(()=>o.neuter())}}),new Promise(a=>{function f(o){function v(){o===s?a(i):f(s)}o.then(v,v)}f(s)})}function Lt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)ne(t[n])}}function cr(e){for(var t=e.parent;t!==null;){if((t.f&O)===0)return t;t=t.parent}return null}function st(e){var t,n=m;re(cr(e));try{Lt(e),t=dn(e)}finally{re(n)}return t}function Dt(e){var t=st(e);if(e.equals(t)||(e.v=t,e.wv=cn()),!$e){var n=(se||(e.f&D)!==0)&&e.deps!==null?J:q;C(e,n)}}function vr(e,t,n){const r=It;if(t.length===0){n(e.map(r));return}var s=w,i=m,l=dr(),u=fr();Promise.all(t.map(a=>or(a))).then(a=>{s?.activate(),l();try{n([...e.map(r),...a])}catch(f){(i.f&ie)===0&&nt(f,i)}s?.deactivate(),jt()}).catch(a=>{u.error(a)})}function dr(){var e=m,t=g,n=F,r=w;return function(){re(e),U(t),Ce(n),r?.activate()}}function jt(){re(null),U(null),Ce(null)}const it=new Set;let w=null,Pe=null,Ft=new Set,Me=[];function Yt(){const e=Me.shift();Me.length>0&&queueMicrotask(Yt),e()}let ae=[],Ie=null,lt=!1,Le=!1;class ue{current=new Map;#t=new Map;#e=new Set;#n=0;#f=null;#o=!1;#s=[];#l=[];#i=[];#r=[];#a=[];#c=[];#v=[];skipped_effects=new Set;process(t){ae=[],Pe=null;for(const s of t)this.#h(s);if(this.#s.length===0&&this.#n===0){this.#d();var n=this.#i,r=this.#r;this.#i=[],this.#r=[],this.#a=[],Pe=w,w=null,Ht(n),Ht(r),w===null?w=this:it.delete(this),this.#f?.resolve()}else this.#u(this.#i),this.#u(this.#r),this.#u(this.#a);for(const s of this.#s)ye(s);for(const s of this.#l)ye(s);this.#s=[],this.#l=[]}#h(t){t.f^=q;for(var n=t.first;n!==null;){var r=n.f,s=(r&(K|z))!==0,i=s&&(r&q)!==0,l=i||(r&Z)!==0||this.skipped_effects.has(n);if(!l&&n.fn!==null){if(s)n.f^=q;else if((r&Ke)!==0)this.#r.push(n);else if((r&q)===0)if((r&Ze)!==0){var u=n.b?.is_pending()?this.#l:this.#s;u.push(n)}else Ye(n)&&((n.f&he)!==0&&this.#a.push(n),ye(n));var a=n.first;if(a!==null){n=a;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)n=f.next,f=f.parent}}#u(t){for(const n of t)((n.f&M)!==0?this.#c:this.#v).push(n),C(n,q);t.length=0}capture(t,n){this.#t.has(t)||this.#t.set(t,n),this.current.set(t,t.v)}activate(){w=this}deactivate(){w=null,Pe=null;for(const t of Ft)if(Ft.delete(t),t(),w!==null)break}neuter(){this.#o=!0}flush(){ae.length>0?Gt():this.#d(),w===this&&(this.#n===0&&it.delete(this),this.deactivate())}#d(){if(!this.#o)for(const t of this.#e)t();this.#e.clear()}increment(){this.#n+=1}decrement(){if(this.#n-=1,this.#n===0){for(const t of this.#c)C(t,M),pe(t);for(const t of this.#v)C(t,J),pe(t);this.#i=[],this.#r=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#f??=Fn()).promise}static ensure(){if(w===null){const t=w=new ue;it.add(w),Le||ue.enqueue(()=>{w===t&&t.flush()})}return w}static enqueue(t){Me.length===0&&queueMicrotask(Yt),Me.unshift(t)}}function De(e){var t=Le;Le=!0;try{for(var n;;){if(ur(),ae.length===0&&(w?.flush(),ae.length===0))return Ie=null,n;Gt()}}finally{Le=t}}function Gt(){var e=ge;lt=!0;try{var t=0;for(an(!0);ae.length>0;){var n=ue.ensure();if(t++>1e3){var r,s;hr()}n.process(ae),ee.clear()}}finally{lt=!1,an(e),Ie=null}}function hr(){try{Wn()}catch(e){nt(e,Ie)}}let fe=null;function Ht(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ie|Z))===0&&Ye(r)&&(fe=[],ye(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?nn(r):r.fn=null),fe?.length>0)){ee.clear();for(const s of fe)ye(s);fe=[]}}fe=null}}function pe(e){for(var t=Ie=e;t.parent!==null;){t=t.parent;var n=t.f;if(lt&&t===m&&(n&he)!==0)return;if((n&(z|K))!==0){if((n&q)===0)return;t.f^=q}}ae.push(t)}const ee=new Map;function at(e,t){var n={f:0,v:e,reactions:null,equals:At,rv:0,wv:0};return n}function Y(e,t){const n=at(e);return Or(n),n}function _r(e,t=!1,n=!0){const r=at(e);return t||(r.equals=tr),r}function G(e,t,n=!1){g!==null&&(!H||(g.f&Rt)!==0)&&Ct()&&(g.f&(O|he|Ze|Rt))!==0&&!X?.includes(e)&&Jn();let r=n?me(t):t;return ut(e,r)}function ut(e,t){if(!e.equals(t)){var n=e.v;$e?ee.set(e,t):ee.set(e,n),e.v=t;var r=ue.ensure();r.capture(e,n),(e.f&O)!==0&&((e.f&M)!==0&&st(e),C(e,(e.f&D)===0?q:J)),e.wv=cn(),Ut(e,M),m!==null&&(m.f&q)!==0&&(m.f&(K|z))===0&&(I===null?Nr([e]):I.push(e))}return t}function ft(e){G(e,e.v+1)}function Ut(e,t){var n=e.reactions;if(n!==null)for(var r=n.length,s=0;s<r;s++){var i=n[s],l=i.f,u=(l&M)===0;u&&C(i,t),(l&O)!==0?Ut(i,J):u&&((l&he)!==0&&fe!==null&&fe.push(i),pe(i))}}function me(e){if(typeof e!="object"||e===null||Qe in e)return e;const t=jn(e);if(t!==Ln&&t!==Dn)return e;var n=new Map,r=wt(e),s=Y(0),i=oe,l=u=>{if(oe===i)return u();var a=g,f=oe;U(null),on(i);var o=u();return U(a),on(f),o};return r&&n.set("length",Y(e.length)),new Proxy(e,{defineProperty(u,a,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Kn();var o=n.get(a);return o===void 0?o=l(()=>{var v=Y(f.value);return n.set(a,v),v}):G(o,f.value,!0),!0},deleteProperty(u,a){var f=n.get(a);if(f===void 0){if(a in u){const o=l(()=>Y(T));n.set(a,o),ft(s)}}else G(f,T),ft(s);return!0},get(u,a,f){if(a===Qe)return e;var o=n.get(a),v=a in u;if(o===void 0&&(!v||de(u,a)?.writable)&&(o=l(()=>{var c=me(v?u[a]:T),d=Y(c);return d}),n.set(a,o)),o!==void 0){var h=k(o);return h===T?void 0:h}return Reflect.get(u,a,f)},getOwnPropertyDescriptor(u,a){var f=Reflect.getOwnPropertyDescriptor(u,a);if(f&&"value"in f){var o=n.get(a);o&&(f.value=k(o))}else if(f===void 0){var v=n.get(a),h=v?.v;if(v!==void 0&&h!==T)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return f},has(u,a){if(a===Qe)return!0;var f=n.get(a),o=f!==void 0&&f.v!==T||Reflect.has(u,a);if(f!==void 0||m!==null&&(!o||de(u,a)?.writable)){f===void 0&&(f=l(()=>{var h=o?me(u[a]):T,c=Y(h);return c}),n.set(a,f));var v=k(f);if(v===T)return!1}return o},set(u,a,f,o){var v=n.get(a),h=a in u;if(r&&a==="length")for(var c=f;c<v.v;c+=1){var d=n.get(c+"");d!==void 0?G(d,T):c in u&&(d=l(()=>Y(T)),n.set(c+"",d))}if(v===void 0)(!h||de(u,a)?.writable)&&(v=l(()=>Y(void 0)),G(v,me(f)),n.set(a,v));else{h=v.v!==T;var _=l(()=>me(f));G(v,_)}var S=Reflect.getOwnPropertyDescriptor(u,a);if(S?.set&&S.set.call(o,f),!h){if(r&&typeof a=="string"){var R=n.get("length"),y=Number(a);Number.isInteger(y)&&y>=R.v&&G(R,y+1)}ft(s)}return!0},ownKeys(u){k(s);var a=Reflect.ownKeys(u).filter(v=>{var h=n.get(v);return h===void 0||h.v!==T});for(var[f,o]of n)o.v!==T&&!(f in u)&&a.push(f);return a},setPrototypeOf(){zn()}})}var Vt,Bt,Wt,Xt;function ot(){if(Vt===void 0){Vt=window,Bt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wt=de(t,"firstChild").get,Xt=de(t,"nextSibling").get,Et(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Et(n)&&(n.__t=void 0)}}function Te(e=""){return document.createTextNode(e)}function te(e){return Wt.call(e)}function B(e){return Xt.call(e)}function je(e,t){if(!b)return te(e);var n=te(x);return n===null&&(n=x.appendChild(Te())),V(n),n}function pr(e,t){if(!b){var n=te(e);return n instanceof Comment&&n.data===""?B(n):n}return x}function Fe(e,t=1,n=!1){let r=b?x:e;for(var s;t--;)s=r,r=B(r);if(!b)return r;if(n&&r?.nodeType!==Un){var i=Te();return r===null?s?.after(i):r.before(i),V(i),i}return V(r),r}function Kt(e){e.textContent=""}function mr(){return!1}function gr(e){b&&te(e)!==null&&Kt(e)}let zt=!1;function Jt(){zt||(zt=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function ct(e){var t=g,n=m;U(null),re(null);try{return e()}finally{U(t),re(n)}}function $r(e,t,n,r=n){e.addEventListener(t,()=>ct(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),Jt()}function yr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function W(e,t,n,r=!0){var s=m;s!==null&&(s.f&Z)!==0&&(e|=Z);var i={ctx:F,deps:null,nodes_start:null,nodes_end:null,f:e|M,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{ye(i),i.f|=St}catch(a){throw ne(i),a}else t!==null&&pe(i);if(r){var l=i;if(n&&l.deps===null&&l.teardown===null&&l.nodes_start===null&&l.first===l.last&&(l.f&_e)===0&&(l=l.first),l!==null&&(l.parent=s,s!==null&&yr(l,s),g!==null&&(g.f&O)!==0&&(e&z)===0)){var u=g;(u.effects??=[]).push(l)}}return i}function br(e){return W(Ke|Yn,e,!1)}function wr(e){ue.ensure();const t=W(z|_e,e,!0);return()=>{ne(t)}}function Er(e){ue.ensure();const t=W(z|_e,e,!0);return(n={})=>new Promise(r=>{n.outro?rn(t,()=>{ne(t),r(void 0)}):(ne(t),r(void 0))})}function xr(e){return W(Ke,e,!1)}function Tr(e){return W(Ze|_e,e,!0)}function Zt(e,t=0){return W(Tt|t,e,!0)}function kr(e,t=[],n=[]){vr(t,n,r=>{W(Tt,()=>e(...r.map(k)),!0)})}function Qt(e,t=0){var n=W(he|t,e,!0);return n}function vt(e,t=!0){return W(K|_e,e,!0,t)}function en(e){var t=e.teardown;if(t!==null){const n=$e,r=g;un(!0),U(null);try{t.call(null)}finally{un(n),U(r)}}}function tn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&ct(()=>{s.abort(et)});var r=n.next;(n.f&z)!==0?n.parent=null:ne(n,t),n=r}}function Sr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&K)===0&&ne(t),t=n}}function ne(e,t=!0){var n=!1;(t||(e.f&qt)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Rr(e.nodes_start,e.nodes_end),n=!0),tn(e,t&&!n),Ge(e,0),C(e,ie);var r=e.transitions;if(r!==null)for(const i of r)i.stop();en(e);var s=e.parent;s!==null&&s.first!==null&&nn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Rr(e,t){for(;e!==null;){var n=e===t?null:B(e);e.remove(),e=n}}function nn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function rn(e,t){var n=[];sn(e,n,!0),qr(n,()=>{ne(e),t&&t()})}function qr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var s of e)s.out(r)}else t()}function sn(e,t,n){if((e.f&Z)===0){if(e.f^=Z,e.transitions!==null)for(const l of e.transitions)(l.is_global||n)&&t.push(l);for(var r=e.first;r!==null;){var s=r.next,i=(r.f&ze)!==0||(r.f&K)!==0;sn(r,t,i?n:!1),r=s}}}function Ar(e){ln(e,!0)}function ln(e,t){if((e.f&Z)!==0){e.f^=Z,(e.f&q)===0&&(C(e,M),pe(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&ze)!==0||(n.f&K)!==0;ln(n,s?t:!1),n=r}if(e.transitions!==null)for(const i of e.transitions)(i.is_global||t)&&i.in()}}let ge=!1;function an(e){ge=e}let $e=!1;function un(e){$e=e}let g=null,H=!1;function U(e){g=e}let m=null;function re(e){m=e}let X=null;function Or(e){g!==null&&(X===null?X=[e]:X.push(e))}let A=null,N=0,I=null;function Nr(e){I=e}let fn=1,ke=0,oe=ke;function on(e){oe=e}let se=!1;function cn(){return++fn}function Ye(e){var t=e.f;if((t&M)!==0)return!0;if((t&J)!==0){var n=e.deps,r=(t&D)!==0;if(n!==null){var s,i,l=(t&Ae)!==0,u=r&&m!==null&&!se,a=n.length;if((l||u)&&(m===null||(m.f&ie)===0)){var f=e,o=f.parent;for(s=0;s<a;s++)i=n[s],(l||!i?.reactions?.includes(f))&&(i.reactions??=[]).push(f);l&&(f.f^=Ae),u&&o!==null&&(o.f&D)===0&&(f.f^=D)}for(s=0;s<a;s++)if(i=n[s],Ye(i)&&Dt(i),i.wv>e.wv)return!0}(!r||m!==null&&!se)&&C(e,q)}return!1}function vn(e,t,n=!0){var r=e.reactions;if(r!==null&&!X?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&O)!==0?vn(i,t,!1):t===i&&(n?C(i,M):(i.f&q)!==0&&C(i,J),pe(i))}}function dn(e){var t=A,n=N,r=I,s=g,i=se,l=X,u=F,a=H,f=oe,o=e.f;A=null,N=0,I=null,se=(o&D)!==0&&(H||!ge||g===null),g=(o&(K|z))===0?e:null,X=null,Ce(e.ctx),H=!1,oe=++ke,e.ac!==null&&(ct(()=>{e.ac.abort(et)}),e.ac=null);try{e.f|=Je;var v=e.fn,h=v(),c=e.deps;if(A!==null){var d;if(Ge(e,N),c!==null&&N>0)for(c.length=N+A.length,d=0;d<A.length;d++)c[N+d]=A[d];else e.deps=c=A;if(!se||(o&O)!==0&&e.reactions!==null)for(d=N;d<c.length;d++)(c[d].reactions??=[]).push(e)}else c!==null&&N<c.length&&(Ge(e,N),c.length=N);if(Ct()&&I!==null&&!H&&c!==null&&(e.f&(O|J|M))===0)for(d=0;d<I.length;d++)vn(I[d],e);return s!==null&&s!==e&&(ke++,I!==null&&(r===null?r=I:r.push(...I))),(e.f&le)!==0&&(e.f^=le),h}catch(_){return sr(_)}finally{e.f^=Je,A=t,N=n,I=r,g=s,se=i,X=l,Ce(u),H=a,oe=f}}function Cr(e,t){let n=t.reactions;if(n!==null){var r=Mn.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&O)!==0&&(A===null||!A.includes(t))&&(C(t,J),(t.f&(D|Ae))===0&&(t.f^=Ae),Lt(t),Ge(t,0))}function Ge(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Cr(e,n[r])}function ye(e){var t=e.f;if((t&ie)===0){C(e,q);var n=m,r=ge;m=e,ge=!0;try{(t&he)!==0?Sr(e):tn(e),en(e);var s=dn(e);e.teardown=typeof s=="function"?s:null,e.wv=fn;var i;bt&&nr&&(e.f&M)!==0&&e.deps}finally{ge=r,m=n}}}async function Pr(){await Promise.resolve(),De()}function k(e){var t=e.f,n=(t&O)!==0;if(g!==null&&!H){var r=m!==null&&(m.f&ie)!==0;if(!r&&!X?.includes(e)){var s=g.deps;if((g.f&Je)!==0)e.rv<ke&&(e.rv=ke,A===null&&s!==null&&s[N]===e?N++:A===null?A=[e]:(!se||!A.includes(e))&&A.push(e));else{(g.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[g]:i.includes(g)||i.push(g)}}}else if(n&&e.deps===null&&e.effects===null){var l=e,u=l.parent;u!==null&&(u.f&D)===0&&(l.f^=D)}if($e){if(ee.has(e))return ee.get(e);if(n){l=e;var a=l.v;return((l.f&q)===0&&l.reactions!==null||hn(l))&&(a=st(l)),ee.set(l,a),a}}else n&&(l=e,Ye(l)&&Dt(l));if((e.f&le)!==0)throw e.v;return e.v}function hn(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ee.has(t)||(t.f&O)!==0&&hn(t))return!0;return!1}function Mr(e){var t=H;try{return H=!0,e()}finally{H=t}}const Ir=-7169;function C(e,t){e.f=e.f&Ir|t}const _n=new Set,dt=new Set;function Lr(e){for(var t=0;t<e.length;t++)_n.add(e[t]);for(var n of dt)n(e)}let pn=null;function He(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;pn=e;var l=0,u=pn===e&&e.__root;if(u){var a=s.indexOf(u);if(a!==-1&&(t===document||t===window)){e.__root=t;return}var f=s.indexOf(t);if(f===-1)return;a<=f&&(l=a)}if(i=s[l]||e.target,i!==t){ve(e,"currentTarget",{configurable:!0,get(){return i||n}});var o=g,v=m;U(null),re(null);try{for(var h,c=[];i!==null;){var d=i.assignedSlot||i.parentNode||i.host||null;try{var _=i["__"+r];if(_!=null&&(!i.disabled||e.target===i))if(wt(_)){var[S,...R]=_;S.apply(i,[e,...R])}else _.call(i,e)}catch(y){h?c.push(y):h=y}if(e.cancelBubble||d===t||d===null)break;i=d}if(h){for(let y of c)queueMicrotask(()=>{throw y});throw h}}finally{e.__root=t,delete e.currentTarget,U(o),re(v)}}}let L;function Dr(){L=void 0}function jr(e){let t=null,n=b;var r;if(b){for(t=x,L===void 0&&(L=te(document.head));L!==null&&(L.nodeType!==Ee||L.data!==Xe);)L=B(L);L===null?Q(!1):L=V(B(L))}b||(r=document.head.appendChild(Te()));try{Qt(()=>e(r),qt)}finally{n&&(Q(!0),L=x,V(t))}}function Fr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ue(e,t){var n=m;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Ve(e,t){var n=(t&Nn)!==0,r=(t&Cn)!==0,s,i=!e.startsWith("<!>");return()=>{if(b)return Ue(x,null),x;s===void 0&&(s=Fr(i?e:"<!>"+e),n||(s=te(s)));var l=r||Bt?document.importNode(s,!0):s.cloneNode(!0);if(n){var u=te(l),a=l.lastChild;Ue(u,a)}else Ue(l,l);return l}}function Se(e,t){if(b){m.nodes_end=x,tt();return}e!==null&&e.before(t)}const Yr=["touchstart","touchmove"];function Gr(e){return Yr.includes(e)}function mn(e,t){return gn(e,t)}function Hr(e,t){ot(),t.intro=t.intro??!1;const n=t.target,r=b,s=x;try{for(var i=te(n);i&&(i.nodeType!==Ee||i.data!==Xe);)i=B(i);if(!i)throw ce;Q(!0),V(i),tt();const l=gn(e,{...t,anchor:i});if(x===null||x.nodeType!==Ee||x.data!==yt)throw Oe(),ce;return Q(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
- `).some(u=>u.startsWith("https://svelte.dev/e/")))throw l;return l!==ce&&console.warn("Failed to hydrate: ",l),t.recover===!1&&Xn(),ot(),Kt(n),Q(!1),mn(e,t)}finally{Q(r),V(s),Dr()}}const be=new Map;function gn(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:l=!0}){ot();var u=new Set,a=v=>{for(var h=0;h<v.length;h++){var c=v[h];if(!u.has(c)){u.add(c);var d=Gr(c);t.addEventListener(c,He,{passive:d});var _=be.get(c);_===void 0?(document.addEventListener(c,He,{passive:d}),be.set(c,1)):be.set(c,_+1)}}};a(In(_n)),dt.add(a);var f=void 0,o=Er(()=>{var v=n??t.appendChild(Te());return vt(()=>{if(i){Ot({});var h=F;h.c=i}s&&(r.$$events=s),b&&Ue(v,null),f=e(v,r)||{},b&&(m.nodes_end=x),i&&Nt()}),()=>{for(var h of u){t.removeEventListener(h,He);var c=be.get(h);--c===0?(document.removeEventListener(h,He),be.delete(h)):be.set(h,c)}dt.delete(a),v!==n&&v.parentNode?.removeChild(v)}});return ht.set(f,o),f}let ht=new WeakMap;function Ur(e,t){const n=ht.get(e);return n?(ht.delete(e),n(t)):Promise.resolve()}function Vr(e,t,n=!1){b&&tt();var r=e,s=null,i=null,l=T,u=n?ze:0,a=!1;const f=(c,d=!0)=>{a=!0,h(d,c)};var o=null;function v(){o!==null&&(o.lastChild.remove(),r.before(o),o=null);var c=l?s:i,d=l?i:s;c&&Ar(c),d&&rn(d,()=>{l?i=null:s=null})}const h=(c,d)=>{if(l===(l=c))return;let _=!1;if(b){const We=Qn(r)===$t;!!l===We&&(r=Zn(),V(r),Q(!1),_=!0)}var S=mr(),R=r;if(S&&(o=document.createDocumentFragment(),o.append(R=Te())),l?s??=d&&vt(()=>d(R)):i??=d&&vt(()=>d(R)),S){var y=w,E=l?s:i,P=l?i:s;E&&y.skipped_effects.delete(E),P&&y.skipped_effects.add(P),y.add_callback(v)}else v();_&&Q(!0)};Qt(()=>{a=!1,t(f),a||h(null,null)},u),b&&(r=x)}function Br(e,t){xr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,r.appendChild(s)}})}function Wr(e,t){return e==null?null:String(e)}function $n(e,t,n,r){var s=e.__style;if(b||s!==t){var i=Wr(t);(!b||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e.__style=t}return r}const Xr=Symbol("is custom element"),Kr=Symbol("is html");function zr(e){if(b){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var r=e.value;yn(e,"value",null),e.value=r}if(e.hasAttribute("checked")){var s=e.checked;yn(e,"checked",null),e.checked=s}}};e.__on_r=n,ar(n),Jt()}}function yn(e,t,n,r){var s=Jr(e);b&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=n)&&(t==="loading"&&(e[Hn]=n),e.removeAttribute(t))}function Jr(e){return e.__attributes??={[Xr]:e.nodeName.includes("-"),[Kr]:e.namespaceURI===Pn}}function bn(e,t,n=t){var r=new WeakSet;$r(e,"input",async s=>{var i=s?e.defaultValue:e.value;if(i=_t(e)?pt(i):i,n(i),w!==null&&r.add(w),await Pr(),i!==(i=t())){var l=e.selectionStart,u=e.selectionEnd;e.value=i??"",u!==null&&(e.selectionStart=l,e.selectionEnd=Math.min(u,e.value.length))}}),(b&&e.defaultValue!==e.value||Mr(t)==null&&e.value)&&(n(_t(e)?pt(e.value):e.value),w!==null&&r.add(w)),Zt(()=>{var s=t();if(e===document.activeElement){var i=Pe??w;if(r.has(i))return}_t(e)&&s===pt(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function _t(e){var t=e.type;return t==="number"||t==="range"}function pt(e){return e===""?null:+e}function wn(e,t,n,r){var s=r,i=!0,l=()=>(i&&(i=!1,s=r),s),u;u=e[t],u===void 0&&r!==void 0&&(u=l());var a;a=()=>{var h=e[t];return h===void 0?l():(i=!0,h)};var f=!1,o=It(()=>(f=!1,a())),v=m;return(function(h,c){if(arguments.length>0){const d=c?k(o):h;return G(o,d),f=!0,s!==void 0&&(s=d),h}return $e&&f||(v.f&ie)!==0?o.v:k(o)})}function Zr(e){return new Qr(e)}class Qr{#t;#e;constructor(t){var n=new Map,r=(i,l)=>{var u=_r(l,!1,!1);return n.set(i,u),u};const s=new Proxy({...t.props||{},$$events:{}},{get(i,l){return k(n.get(l)??r(l,Reflect.get(i,l)))},has(i,l){return l===Gn?!0:(k(n.get(l)??r(l,Reflect.get(i,l))),Reflect.has(i,l))},set(i,l,u){return G(n.get(l)??r(l,u),u),Reflect.set(i,l,u)}});this.#e=(t.hydrate?Hr:mn)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&De(),this.#t=s.$$events;for(const i of Object.keys(this.#e))i==="$set"||i==="$destroy"||i==="$on"||ve(this,i,{get(){return this.#e[i]},set(l){this.#e[i]=l},enumerable:!0});this.#e.$set=i=>{Object.assign(s,i)},this.#e.$destroy=()=>{Ur(this.#e)}}$set(t){this.#e.$set(t)}$on(t,n){this.#t[t]=this.#t[t]||[];const r=(...s)=>n.call(this,...s);return this.#t[t].push(r),()=>{this.#t[t]=this.#t[t].filter(s=>s!==r)}}$destroy(){this.#e.$destroy()}}let En;typeof HTMLElement=="function"&&(En=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&this.attachShadow({mode:"open"})}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{const i=document.createElement("slot");r!=="default"&&(i.name=r),Se(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=es(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=Be(s,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=Zr({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=wr(()=>{Zt(()=>{this.$$r=!0;for(const r of qe(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=Be(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Be(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return qe(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Be(e,t,n,r){const s=n[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function es(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function ts(e,t,n,r,s,i){let l=class extends En{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return qe(t).map(u=>(t[u].attribute||u).toLowerCase())}};return qe(t).forEach(u=>{ve(l.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(a){a=Be(u,a,t),this.$$d[u]=a;var f=this.$$c;if(f){var o=de(f,u)?.get;o?f[u]=a:f.$set({[u]:a})}}})}),r.forEach(u=>{ve(l.prototype,u,{get(){return this.$$c?.[u]}})}),e.element=l,l}function ns(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var we={},mt,xn;function rs(){if(xn)return mt;xn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g,a=`
3
- `,f="/",o="*",v="",h="comment",c="declaration";mt=function(_,S){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];S=S||{};var R=1,y=1;function E($){var p=$.match(t);p&&(R+=p.length);var j=$.lastIndexOf(a);y=~j?$.length-j:y+$.length}function P(){var $={line:R,column:y};return function(p){return p.position=new We($),qn(),p}}function We($){this.start=$,this.end={line:R,column:y},this.source=S.source}We.prototype.content=_;function Rn($){var p=new Error(S.source+":"+R+":"+y+": "+$);if(p.reason=$,p.filename=S.source,p.line=R,p.column=y,p.source=_,!S.silent)throw p}function Re($){var p=$.exec(_);if(p){var j=p[0];return E(j),_=_.slice(j.length),p}}function qn(){Re(n)}function An($){var p;for($=$||[];p=On();)p!==!1&&$.push(p);return $}function On(){var $=P();if(!(f!=_.charAt(0)||o!=_.charAt(1))){for(var p=2;v!=_.charAt(p)&&(o!=_.charAt(p)||f!=_.charAt(p+1));)++p;if(p+=2,v===_.charAt(p-1))return Rn("End of comment missing");var j=_.slice(2,p-2);return y+=2,E(j),_=_.slice(p),y+=2,$({type:h,comment:j})}}function vs(){var $=P(),p=Re(r);if(p){if(On(),!Re(s))return Rn("property missing ':'");var j=Re(i),hs=$({type:c,property:d(p[0].replace(e,v)),value:j?d(j[0].replace(e,v)):v});return Re(l),hs}}function ds(){var $=[];An($);for(var p;p=vs();)p!==!1&&($.push(p),An($));return $}return qn(),ds()};function d(_){return _?_.replace(u,v):v}return mt}var Tn;function ss(){if(Tn)return we;Tn=1;var e=we&&we.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(we,"__esModule",{value:!0}),we.default=n;var t=e(rs());function n(r,s){var i=null;if(!r||typeof r!="string")return i;var l=(0,t.default)(r),u=typeof s=="function";return l.forEach(function(a){if(a.type==="declaration"){var f=a.property,o=a.value;u?s(f,o,a):o&&(i=i||{},i[f]=o)}}),i}return we}var is=ss();const kn=ns(is);kn.default;var ls=Ve('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css"/>'),as=Ve('<i class="bi bi-paperclip"></i>'),us=Ve('<i class="bi bi-file-earmark-check-fill"></i>'),fs=(e,t)=>t(),os=Ve('<div class="column left svelte-1fqqevd"></div> <div class="column middle svelte-1fqqevd"><textarea class="send-message-text svelte-1fqqevd"></textarea></div> <div class="column right svelte-1fqqevd"><div class="message-buttons svelte-1fqqevd"><label class="upload-file svelte-1fqqevd"><input type="file" class="svelte-1fqqevd"/> <!></label> <button type="button" class="send-message-button btn-info svelte-1fqqevd" aria-label="Send message"><i class="bi bi-send-fill svelte-1fqqevd"></i></button></div></div>',1);const cs={hash:"svelte-1fqqevd",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
4
- @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host {font-family:"Roboto", sans-serif;display:block;height:100px;background-color:#eee;}.column.svelte-1fqqevd {float:left;height:100%;}.left.svelte-1fqqevd {width:140px;}.right.svelte-1fqqevd {width:180px;height:100%;display:flex;justify-content:center;align-items:center;}.middle.svelte-1fqqevd {width:calc(100% - 320px);}.message-buttons.svelte-1fqqevd {width:100%;}.upload-file.svelte-1fqqevd {height:30px;font-size:20px;margin-left:40px;}label.upload-file.svelte-1fqqevd input[type=file]:where(.svelte-1fqqevd) {position:fixed;top:-10000000px;}.send-message-button.svelte-1fqqevd {width:35px;height:35px;margin-left:40px;border:1px solid rgba(0, 0, 0, 0.05);outline:none;font-weight:600;border-radius:50%;padding:0;opacity:0.5;background-color:inherit;}.send-message-button.svelte-1fqqevd > i:where(.svelte-1fqqevd) {font-size:16px;margin:0 0 0 -2px;}textarea.svelte-1fqqevd {width:100%;height:100%;background-color:white;border-radius:5px;font-size:13px;resize:vertical;outline:none;border:0px;font-family:"Roboto", sans-serif;max-height:100%;overflow-y:auto;}`};function Sn(e,t){Ot(t,!0),Br(e,cs);function n(E,P){t.$$host.dispatchEvent(new CustomEvent(E,{detail:P}))}let r=wn(t,"id",7,""),s=wn(t,"text",7,""),i=Y(void 0);me({});function l(){if(!s()?.length&&!k(i))return console.warn("no message to send");console.log("send message "+s()),n("sendMessage",{text:s(),id:r(),file:k(i)})}var u={get id(){return r()},set id(E=""){r(E),De()},get text(){return s()},set text(E=""){s(E),De()}},a=os();jr(E=>{var P=ls();Se(E,P)});var f=Fe(pr(a),2),o=je(f);gr(o),Ne(f);var v=Fe(f,2),h=je(v),c=je(h),d=je(c);zr(d);var _=Fe(d,2);{var S=E=>{var P=as();Se(E,P)},R=E=>{var P=us();Se(E,P)};Vr(_,E=>{k(i)?E(R,!1):E(S)})}Ne(c);var y=Fe(c,2);return y.__click=[fs,l],Ne(h),Ne(v),kr(()=>{$n(c,`opacity:${k(i)?"0.5":"0.25"}`),d.disabled=!!k(i),y.disabled=!(s()?.length||k(i)),$n(y,`opacity:${s()?.length||k(i)?"1":"0.25"}`)}),bn(o,s),bn(d,()=>k(i),E=>G(i,E)),Se(e,a),Nt(u)}Lr(["click"]),customElements.define("hb-messages-send",ts(Sn,{id:{},text:{}},[],[],!0)),gt.Component=Sn,Object.defineProperty(gt,Symbol.toStringTag,{value:"Module"})})(this["messages-send"]=this["messages-send"]||{});
1
+ (function(lr){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Rn=1,Tn=2,Sn=16,Nn=1,Cn=4,On=8,Bn=16,In=2,xt="[",kt="[!",$t="]",Me={},B=Symbol(),Mn="http://www.w3.org/1999/xhtml",dr=!1;var Et=Array.isArray,Pn=Array.prototype.indexOf,At=Array.from,nt=Object.keys,Pe=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,Gn=Object.getOwnPropertyDescriptors,Ln=Object.prototype,Dn=Array.prototype,br=Object.getPrototypeOf,cr=Object.isExtensible;function fr(e){for(var t=0;t<e.length;t++)e[t]()}function Fn(){var e,t,r=new Promise((n,s)=>{e=n,t=s});return{promise:r,resolve:e,reject:t}}const q=2,Rt=4,Tt=8,Ge=16,be=32,he=64,ur=128,V=256,st=512,I=1024,W=2048,ge=4096,J=8192,$e=16384,St=32768,Nt=65536,vr=1<<17,hr=1<<18,Le=1<<19,jn=1<<20,Ct=1<<21,Ot=1<<22,Ee=1<<23,We=Symbol("$state"),gr=Symbol("legacy props"),zn=Symbol(""),Bt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},qn=3,De=8;function Hn(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Yn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Un(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Vn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Wn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Xn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Kn(){throw new Error("https://svelte.dev/e/hydration_failed")}function Jn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Zn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Qn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function es(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ot(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let k=!1;function Z(e){k=e}let R;function Q(e){if(e===null)throw ot(),Me;return R=e}function it(){return Q(te(R))}function ce(e){if(k){if(te(R)!==null)throw ot(),Me;R=e}}function ts(e=1){if(k){for(var t=e,r=R;t--;)r=te(r);R=r}}function It(){for(var e=0,t=R;;){if(t.nodeType===De){var r=t.data;if(r===$t){if(e===0)return t;e-=1}else(r===xt||r===kt)&&(e+=1)}var n=te(t);t.remove(),t=n}}function pr(e){if(!e||e.nodeType!==De)throw ot(),Me;return e.data}function mr(e){return e===this.v}function rs(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function _r(e){return!rs(e,this.v)}let ns=!1,ee=null;function at(e){ee=e}function yr(e,t=!1,r){ee={p:ee,c:null,e:null,s:e,x:null,l:null}}function wr(e){var t=ee,r=t.e;if(r!==null){t.e=null;for(var n of r)Ur(n)}return e!==void 0&&(t.x=e),ee=t.p,e??{}}function xr(){return!0}const ss=new WeakMap;function os(e){var t=w;if(t===null)return $.f|=Ee,e;if((t.f&St)===0){if((t.f&ur)===0)throw!t.parent&&e instanceof Error&&kr(e),e;t.b.error(e)}else Mt(e,t)}function Mt(e,t){for(;t!==null;){if((t.f&ur)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e instanceof Error&&kr(e),e}function kr(e){const t=ss.get(e);t&&(Pe(e,"message",{value:t.message}),Pe(e,"stack",{value:t.stack}))}const is=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;let Xe=[],Ke=[];function $r(){var e=Xe;Xe=[],fr(e)}function Er(){var e=Ke;Ke=[],fr(e)}function Ar(e){Xe.length===0&&queueMicrotask($r),Xe.push(e)}function as(e){Ke.length===0&&is(Er),Ke.push(e)}function ls(){Xe.length>0&&$r(),Ke.length>0&&Er()}function ds(){const e=w.b;return e===null&&Hn(),e}function lt(e){var t=q|W,r=$!==null&&($.f&q)!==0?$:null;return w===null||r!==null&&(r.f&V)!==0?t|=V:w.f|=Le,{ctx:ee,deps:null,effects:null,equals:mr,f:t,fn:e,reactions:null,rv:0,v:B,wv:0,parent:r??w,ac:null}}function bs(e,t){let r=w;r===null&&Yn();var n=r.b,s=void 0,o=Je(B),i=null,a=!$;return ks(()=>{try{var l=e();i&&Promise.resolve(l).catch(()=>{})}catch(v){l=Promise.reject(v)}var d=()=>l;s=i?.then(d,d)??Promise.resolve(l),i=s;var b=S,h=n.is_pending();a&&(n.update_pending_count(1),h||b.increment());const c=(v,f=void 0)=>{i=null,h||b.activate(),f?f!==Bt&&(o.f|=Ee,ut(o,f)):((o.f&Ee)!==0&&(o.f^=Ee),ut(o,v)),a&&(n.update_pending_count(-1),h||b.decrement()),Cr()};if(s.then(c,v=>c(null,v||"unknown")),b)return()=>{queueMicrotask(()=>b.neuter())}}),new Promise(l=>{function d(b){function h(){b===s?l(o):d(s)}b.then(h,h)}d(s)})}function Rr(e){const t=lt(e);return rn(t),t}function Tr(e){const t=lt(e);return t.equals=_r,t}function Sr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ne(t[r])}}function cs(e){for(var t=e.parent;t!==null;){if((t.f&q)===0)return t;t=t.parent}return null}function Pt(e){var t,r=w;_e(cs(e));try{Sr(e),t=ln(e)}finally{_e(r)}return t}function Nr(e){var t=Pt(e);if(e.equals(t)||(e.v=t,e.wv=on()),!Ce){var r=(ye||(e.f&V)!==0)&&e.deps!==null?ge:I;L(e,r)}}function fs(e,t,r){const n=lt;if(t.length===0){r(e.map(n));return}var s=S,o=w,i=us(),a=ds();Promise.all(t.map(l=>bs(l))).then(l=>{s?.activate(),i();try{r([...e.map(n),...l])}catch(d){(o.f&$e)===0&&Mt(d,o)}s?.deactivate(),Cr()}).catch(l=>{a.error(l)})}function us(){var e=w,t=$,r=ee,n=S;return function(){_e(e),oe(t),at(r),n?.activate()}}function Cr(){_e(null),oe(null),at(null)}const Gt=new Set;let S=null,dt=null,Or=new Set,bt=[];function Br(){const e=bt.shift();bt.length>0&&queueMicrotask(Br),e()}let Ae=[],ct=null,Lt=!1,ft=!1;class Re{current=new Map;#t=new Map;#e=new Set;#r=0;#d=null;#b=!1;#s=[];#i=[];#o=[];#n=[];#a=[];#c=[];#f=[];skipped_effects=new Set;process(t){Ae=[],dt=null;for(const s of t)this.#v(s);if(this.#s.length===0&&this.#r===0){this.#u();var r=this.#o,n=this.#n;this.#o=[],this.#n=[],this.#a=[],dt=S,S=null,Mr(r),Mr(n),S===null?S=this:Gt.delete(this),this.#d?.resolve()}else this.#l(this.#o),this.#l(this.#n),this.#l(this.#a);for(const s of this.#s)He(s);for(const s of this.#i)He(s);this.#s=[],this.#i=[]}#v(t){t.f^=I;for(var r=t.first;r!==null;){var n=r.f,s=(n&(be|he))!==0,o=s&&(n&I)!==0,i=o||(n&J)!==0||this.skipped_effects.has(r);if(!i&&r.fn!==null){if(s)r.f^=I;else if((n&Rt)!==0)this.#n.push(r);else if((n&I)===0)if((n&Ot)!==0){var a=r.b?.is_pending()?this.#i:this.#s;a.push(r)}else gt(r)&&((r.f&Ge)!==0&&this.#a.push(r),He(r));var l=r.first;if(l!==null){r=l;continue}}var d=r.parent;for(r=r.next;r===null&&d!==null;)r=d.next,d=d.parent}}#l(t){for(const r of t)((r.f&W)!==0?this.#c:this.#f).push(r),L(r,I);t.length=0}capture(t,r){this.#t.has(t)||this.#t.set(t,r),this.current.set(t,t.v)}activate(){S=this}deactivate(){S=null,dt=null;for(const t of Or)if(Or.delete(t),t(),S!==null)break}neuter(){this.#b=!0}flush(){Ae.length>0?Ir():this.#u(),S===this&&(this.#r===0&&Gt.delete(this),this.deactivate())}#u(){if(!this.#b)for(const t of this.#e)t();this.#e.clear()}increment(){this.#r+=1}decrement(){if(this.#r-=1,this.#r===0){for(const t of this.#c)L(t,W),je(t);for(const t of this.#f)L(t,ge),je(t);this.#o=[],this.#n=[],this.flush()}else this.deactivate()}add_callback(t){this.#e.add(t)}settled(){return(this.#d??=Fn()).promise}static ensure(){if(S===null){const t=S=new Re;Gt.add(S),ft||Re.enqueue(()=>{S===t&&t.flush()})}return S}static enqueue(t){bt.length===0&&queueMicrotask(Br),bt.unshift(t)}}function Fe(e){var t=ft;ft=!0;try{for(var r;;){if(ls(),Ae.length===0&&(S?.flush(),Ae.length===0))return ct=null,r;Ir()}}finally{ft=t}}function Ir(){var e=qe;Lt=!0;try{var t=0;for(en(!0);Ae.length>0;){var r=Re.ensure();if(t++>1e3){var n,s;vs()}r.process(Ae),pe.clear()}}finally{Lt=!1,en(e),ct=null}}function vs(){try{Xn()}catch(e){Mt(e,ct)}}let Te=null;function Mr(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&($e|J))===0&&gt(n)&&(Te=[],He(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null&&n.ac===null?Jr(n):n.fn=null),Te?.length>0)){pe.clear();for(const s of Te)He(s);Te=[]}}Te=null}}function je(e){for(var t=ct=e;t.parent!==null;){t=t.parent;var r=t.f;if(Lt&&t===w&&(r&Ge)!==0)return;if((r&(he|be))!==0){if((r&I)===0)return;t.f^=I}}Ae.push(t)}const pe=new Map;function Je(e,t){var r={f:0,v:e,reactions:null,equals:mr,rv:0,wv:0};return r}function H(e,t){const r=Je(e);return rn(r),r}function Pr(e,t=!1,r=!0){const n=Je(e);return t||(n.equals=_r),n}function M(e,t,r=!1){$!==null&&(!se||($.f&vr)!==0)&&xr()&&($.f&(q|Ge|Ot|vr))!==0&&!ue?.includes(e)&&es();let n=r?me(t):t;return ut(e,n)}function ut(e,t){if(!e.equals(t)){var r=e.v;Ce?pe.set(e,t):pe.set(e,r),e.v=t;var n=Re.ensure();n.capture(e,r),(e.f&q)!==0&&((e.f&W)!==0&&Pt(e),L(e,(e.f&V)===0?I:ge)),e.wv=on(),Gr(e,W),w!==null&&(w.f&I)!==0&&(w.f&(be|he))===0&&(X===null?As([e]):X.push(e))}return t}function Dt(e){M(e,e.v+1)}function Gr(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,s=0;s<n;s++){var o=r[s],i=o.f,a=(i&W)===0;a&&L(o,t),(i&q)!==0?Gr(o,ge):a&&((i&Ge)!==0&&Te!==null&&Te.push(o),je(o))}}function me(e){if(typeof e!="object"||e===null||We in e)return e;const t=br(e);if(t!==Ln&&t!==Dn)return e;var r=new Map,n=Et(e),s=H(0),o=Oe,i=a=>{if(Oe===o)return a();var l=$,d=Oe;oe(null),sn(o);var b=a();return oe(l),sn(d),b};return n&&r.set("length",H(e.length)),new Proxy(e,{defineProperty(a,l,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Zn();var b=r.get(l);return b===void 0?b=i(()=>{var h=H(d.value);return r.set(l,h),h}):M(b,d.value,!0),!0},deleteProperty(a,l){var d=r.get(l);if(d===void 0){if(l in a){const b=i(()=>H(B));r.set(l,b),Dt(s)}}else M(d,B),Dt(s);return!0},get(a,l,d){if(l===We)return e;var b=r.get(l),h=l in a;if(b===void 0&&(!h||ke(a,l)?.writable)&&(b=i(()=>{var v=me(h?a[l]:B),f=H(v);return f}),r.set(l,b)),b!==void 0){var c=x(b);return c===B?void 0:c}return Reflect.get(a,l,d)},getOwnPropertyDescriptor(a,l){var d=Reflect.getOwnPropertyDescriptor(a,l);if(d&&"value"in d){var b=r.get(l);b&&(d.value=x(b))}else if(d===void 0){var h=r.get(l),c=h?.v;if(h!==void 0&&c!==B)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return d},has(a,l){if(l===We)return!0;var d=r.get(l),b=d!==void 0&&d.v!==B||Reflect.has(a,l);if(d!==void 0||w!==null&&(!b||ke(a,l)?.writable)){d===void 0&&(d=i(()=>{var c=b?me(a[l]):B,v=H(c);return v}),r.set(l,d));var h=x(d);if(h===B)return!1}return b},set(a,l,d,b){var h=r.get(l),c=l in a;if(n&&l==="length")for(var v=d;v<h.v;v+=1){var f=r.get(v+"");f!==void 0?M(f,B):v in a&&(f=i(()=>H(B)),r.set(v+"",f))}if(h===void 0)(!c||ke(a,l)?.writable)&&(h=i(()=>H(void 0)),M(h,me(d)),r.set(l,h));else{c=h.v!==B;var u=i(()=>me(d));M(h,u)}var _=Reflect.getOwnPropertyDescriptor(a,l);if(_?.set&&_.set.call(b,d),!c){if(n&&typeof l=="string"){var T=r.get("length"),g=Number(l);Number.isInteger(g)&&g>=T.v&&M(T,g+1)}Dt(s)}return!0},ownKeys(a){x(s);var l=Reflect.ownKeys(a).filter(h=>{var c=r.get(h);return c===void 0||c.v!==B});for(var[d,b]of r)b.v!==B&&!(d in a)&&l.push(d);return l},setPrototypeOf(){Qn()}})}var Lr,Dr,Fr,jr;function Ft(){if(Lr===void 0){Lr=window,Dr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Fr=ke(t,"firstChild").get,jr=ke(t,"nextSibling").get,cr(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),cr(r)&&(r.__t=void 0)}}function Se(e=""){return document.createTextNode(e)}function Ne(e){return Fr.call(e)}function te(e){return jr.call(e)}function fe(e,t){if(!k)return Ne(e);var r=Ne(R);return r===null&&(r=R.appendChild(Se())),Q(r),r}function zr(e,t){if(!k){var r=Ne(e);return r instanceof Comment&&r.data===""?te(r):r}return R}function vt(e,t=1,r=!1){let n=k?R:e;for(var s;t--;)s=n,n=te(n);if(!k)return n;if(r&&n?.nodeType!==qn){var o=Se();return n===null?s?.after(o):n.before(o),Q(o),o}return Q(n),n}function jt(e){e.textContent=""}function qr(){return!1}function hs(e){k&&Ne(e)!==null&&jt(e)}let Hr=!1;function Yr(){Hr||(Hr=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function ht(e){var t=$,r=w;oe(null),_e(null);try{return e()}finally{oe(t),_e(r)}}function gs(e,t,r,n=r){e.addEventListener(t,()=>ht(r));const s=e.__on_r;s?e.__on_r=()=>{s(),n(!0)}:e.__on_r=()=>n(!0),Yr()}function ps(e){w===null&&$===null&&Wn(),$!==null&&($.f&V)!==0&&w===null&&Vn(),Ce&&Un()}function ms(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function re(e,t,r,n=!0){var s=w;s!==null&&(s.f&J)!==0&&(e|=J);var o={ctx:ee,deps:null,nodes_start:null,nodes_end:null,f:e|W,first:null,fn:t,last:null,next:null,parent:s,b:s&&s.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{He(o),o.f|=St}catch(l){throw ne(o),l}else t!==null&&je(o);if(n){var i=o;if(r&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&Le)===0&&(i=i.first),i!==null&&(i.parent=s,s!==null&&ms(i,s),$!==null&&($.f&q)!==0&&(e&he)===0)){var a=$;(a.effects??=[]).push(i)}}return o}function _s(e){const t=re(Tt,null,!1);return L(t,I),t.teardown=e,t}function ys(e){ps();var t=w.f,r=!$&&(t&be)!==0&&(t&St)===0;if(r){var n=ee;(n.e??=[]).push(e)}else return Ur(e)}function Ur(e){return re(Rt|jn,e,!1)}function ws(e){Re.ensure();const t=re(he|Le,e,!0);return()=>{ne(t)}}function xs(e){Re.ensure();const t=re(he|Le,e,!0);return(r={})=>new Promise(n=>{r.outro?Ht(t,()=>{ne(t),n(void 0)}):(ne(t),n(void 0))})}function Vr(e){return re(Rt,e,!1)}function ks(e){return re(Ot|Le,e,!0)}function zt(e,t=0){return re(Tt|t,e,!0)}function Wr(e,t=[],r=[]){fs(t,r,n=>{re(Tt,()=>e(...n.map(x)),!0)})}function qt(e,t=0){var r=re(Ge|t,e,!0);return r}function ze(e,t=!0){return re(be|Le,e,!0,t)}function Xr(e){var t=e.teardown;if(t!==null){const r=Ce,n=$;tn(!0),oe(null);try{t.call(null)}finally{tn(r),oe(n)}}}function Kr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&ht(()=>{s.abort(Bt)});var n=r.next;(r.f&he)!==0?r.parent=null:ne(r,t),r=n}}function $s(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&be)===0&&ne(t),t=r}}function ne(e,t=!0){var r=!1;(t||(e.f&hr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Es(e.nodes_start,e.nodes_end),r=!0),Kr(e,t&&!r),pt(e,0),L(e,$e);var n=e.transitions;if(n!==null)for(const o of n)o.stop();Xr(e);var s=e.parent;s!==null&&s.first!==null&&Jr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Es(e,t){for(;e!==null;){var r=e===t?null:te(e);e.remove(),e=r}}function Jr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Ht(e,t){var r=[];Yt(e,r,!0),Zr(r,()=>{ne(e),t&&t()})}function Zr(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var s of e)s.out(n)}else t()}function Yt(e,t,r){if((e.f&J)===0){if(e.f^=J,e.transitions!==null)for(const i of e.transitions)(i.is_global||r)&&t.push(i);for(var n=e.first;n!==null;){var s=n.next,o=(n.f&Nt)!==0||(n.f&be)!==0;Yt(n,t,o?r:!1),n=s}}}function Ut(e){Qr(e,!0)}function Qr(e,t){if((e.f&J)!==0){e.f^=J,(e.f&I)===0&&(L(e,W),je(e));for(var r=e.first;r!==null;){var n=r.next,s=(r.f&Nt)!==0||(r.f&be)!==0;Qr(r,s?t:!1),r=n}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}let qe=!1;function en(e){qe=e}let Ce=!1;function tn(e){Ce=e}let $=null,se=!1;function oe(e){$=e}let w=null;function _e(e){w=e}let ue=null;function rn(e){$!==null&&(ue===null?ue=[e]:ue.push(e))}let P=null,Y=0,X=null;function As(e){X=e}let nn=1,Ze=0,Oe=Ze;function sn(e){Oe=e}let ye=!1;function on(){return++nn}function gt(e){var t=e.f;if((t&W)!==0)return!0;if((t&ge)!==0){var r=e.deps,n=(t&V)!==0;if(r!==null){var s,o,i=(t&st)!==0,a=n&&w!==null&&!ye,l=r.length;if((i||a)&&(w===null||(w.f&$e)===0)){var d=e,b=d.parent;for(s=0;s<l;s++)o=r[s],(i||!o?.reactions?.includes(d))&&(o.reactions??=[]).push(d);i&&(d.f^=st),a&&b!==null&&(b.f&V)===0&&(d.f^=V)}for(s=0;s<l;s++)if(o=r[s],gt(o)&&Nr(o),o.wv>e.wv)return!0}(!n||w!==null&&!ye)&&L(e,I)}return!1}function an(e,t,r=!0){var n=e.reactions;if(n!==null&&!ue?.includes(e))for(var s=0;s<n.length;s++){var o=n[s];(o.f&q)!==0?an(o,t,!1):t===o&&(r?L(o,W):(o.f&I)!==0&&L(o,ge),je(o))}}function ln(e){var t=P,r=Y,n=X,s=$,o=ye,i=ue,a=ee,l=se,d=Oe,b=e.f;P=null,Y=0,X=null,ye=(b&V)!==0&&(se||!qe||$===null),$=(b&(be|he))===0?e:null,ue=null,at(e.ctx),se=!1,Oe=++Ze,e.ac!==null&&(ht(()=>{e.ac.abort(Bt)}),e.ac=null);try{e.f|=Ct;var h=e.fn,c=h(),v=e.deps;if(P!==null){var f;if(pt(e,Y),v!==null&&Y>0)for(v.length=Y+P.length,f=0;f<P.length;f++)v[Y+f]=P[f];else e.deps=v=P;if(!ye||(b&q)!==0&&e.reactions!==null)for(f=Y;f<v.length;f++)(v[f].reactions??=[]).push(e)}else v!==null&&Y<v.length&&(pt(e,Y),v.length=Y);if(xr()&&X!==null&&!se&&v!==null&&(e.f&(q|ge|W))===0)for(f=0;f<X.length;f++)an(X[f],e);return s!==null&&s!==e&&(Ze++,X!==null&&(n===null?n=X:n.push(...X))),(e.f&Ee)!==0&&(e.f^=Ee),c}catch(u){return os(u)}finally{e.f^=Ct,P=t,Y=r,X=n,$=s,ye=o,ue=i,at(a),se=l,Oe=d}}function Rs(e,t){let r=t.reactions;if(r!==null){var n=Pn.call(r,e);if(n!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[n]=r[s],r.pop())}}r===null&&(t.f&q)!==0&&(P===null||!P.includes(t))&&(L(t,ge),(t.f&(V|st))===0&&(t.f^=st),Sr(t),pt(t,0))}function pt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Rs(e,r[n])}function He(e){var t=e.f;if((t&$e)===0){L(e,I);var r=w,n=qe;w=e,qe=!0;try{(t&Ge)!==0?$s(e):Kr(e),Xr(e);var s=ln(e);e.teardown=typeof s=="function"?s:null,e.wv=nn;var o;dr&&ns&&(e.f&W)!==0&&e.deps}finally{qe=n,w=r}}}async function Ts(){await Promise.resolve(),Fe()}function x(e){var t=e.f,r=(t&q)!==0;if($!==null&&!se){var n=w!==null&&(w.f&$e)!==0;if(!n&&!ue?.includes(e)){var s=$.deps;if(($.f&Ct)!==0)e.rv<Ze&&(e.rv=Ze,P===null&&s!==null&&s[Y]===e?Y++:P===null?P=[e]:(!ye||!P.includes(e))&&P.push(e));else{($.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[$]:o.includes($)||o.push($)}}}else if(r&&e.deps===null&&e.effects===null){var i=e,a=i.parent;a!==null&&(a.f&V)===0&&(i.f^=V)}if(Ce){if(pe.has(e))return pe.get(e);if(r){i=e;var l=i.v;return((i.f&I)===0&&i.reactions!==null||dn(i))&&(l=Pt(i)),pe.set(i,l),l}}else r&&(i=e,gt(i)&&Nr(i));if((e.f&Ee)!==0)throw e.v;return e.v}function dn(e){if(e.v===B)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(pe.has(t)||(t.f&q)!==0&&dn(t))return!0;return!1}function Vt(e){var t=se;try{return se=!0,e()}finally{se=t}}const Ss=-7169;function L(e,t){e.f=e.f&Ss|t}const bn=new Set,Wt=new Set;function Ns(e,t,r,n={}){function s(o){if(n.capture||Qe.call(t,o),!o.cancelBubble)return ht(()=>r?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ar(()=>{t.addEventListener(e,s,n)}):t.addEventListener(e,s,n),s}function cn(e,t,r,n,s){var o={capture:n,passive:s},i=Ns(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&_s(()=>{t.removeEventListener(e,i,o)})}function Cs(e){for(var t=0;t<e.length;t++)bn.add(e[t]);for(var r of Wt)r(e)}let fn=null;function Qe(e){var t=this,r=t.ownerDocument,n=e.type,s=e.composedPath?.()||[],o=s[0]||e.target;fn=e;var i=0,a=fn===e&&e.__root;if(a){var l=s.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var d=s.indexOf(t);if(d===-1)return;l<=d&&(i=l)}if(o=s[i]||e.target,o!==t){Pe(e,"currentTarget",{configurable:!0,get(){return o||r}});var b=$,h=w;oe(null),_e(null);try{for(var c,v=[];o!==null;){var f=o.assignedSlot||o.parentNode||o.host||null;try{var u=o["__"+n];if(u!=null&&(!o.disabled||e.target===o))if(Et(u)){var[_,...T]=u;_.apply(o,[e,...T])}else u.call(o,e)}catch(g){c?v.push(g):c=g}if(e.cancelBubble||f===t||f===null)break;o=f}if(c){for(let g of v)queueMicrotask(()=>{throw g});throw c}}finally{e.__root=t,delete e.currentTarget,oe(b),_e(h)}}}let K;function Os(){K=void 0}function Bs(e){let t=null,r=k;var n;if(k){for(t=R,K===void 0&&(K=Ne(document.head));K!==null&&(K.nodeType!==De||K.data!==xt);)K=te(K);K===null?Z(!1):K=Q(te(K))}k||(n=document.head.appendChild(Se()));try{qt(()=>e(n),hr)}finally{r&&(Z(!0),K=R,Q(t))}}function Is(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function et(e,t){var r=w;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Be(e,t){var r=(t&In)!==0,n,s=!e.startsWith("<!>");return()=>{if(k)return et(R,null),R;n===void 0&&(n=Is(s?e:"<!>"+e),n=Ne(n));var o=r||Dr?document.importNode(n,!0):n.cloneNode(!0);return et(o,o),o}}function un(){if(k)return et(R,null),R;var e=document.createDocumentFragment(),t=document.createComment(""),r=Se();return e.append(t,r),et(t,r),e}function ie(e,t){if(k){w.nodes_end=R,it();return}e!==null&&e.before(t)}const Ms=["touchstart","touchmove"];function Ps(e){return Ms.includes(e)}function Gs(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function vn(e,t){return hn(e,t)}function Ls(e,t){Ft(),t.intro=t.intro??!1;const r=t.target,n=k,s=R;try{for(var o=Ne(r);o&&(o.nodeType!==De||o.data!==xt);)o=te(o);if(!o)throw Me;Z(!0),Q(o),it();const i=hn(e,{...t,anchor:o});if(R===null||R.nodeType!==De||R.data!==$t)throw ot(),Me;return Z(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
2
+ `).some(a=>a.startsWith("https://svelte.dev/e/")))throw i;return i!==Me&&console.warn("Failed to hydrate: ",i),t.recover===!1&&Kn(),Ft(),jt(r),Z(!1),vn(e,t)}finally{Z(n),Q(s),Os()}}const Ye=new Map;function hn(e,{target:t,anchor:r,props:n={},events:s,context:o,intro:i=!0}){Ft();var a=new Set,l=h=>{for(var c=0;c<h.length;c++){var v=h[c];if(!a.has(v)){a.add(v);var f=Ps(v);t.addEventListener(v,Qe,{passive:f});var u=Ye.get(v);u===void 0?(document.addEventListener(v,Qe,{passive:f}),Ye.set(v,1)):Ye.set(v,u+1)}}};l(At(bn)),Wt.add(l);var d=void 0,b=xs(()=>{var h=r??t.appendChild(Se());return ze(()=>{if(o){yr({});var c=ee;c.c=o}s&&(n.$$events=s),k&&et(h,null),d=e(h,n)||{},k&&(w.nodes_end=R),o&&wr()}),()=>{for(var c of a){t.removeEventListener(c,Qe);var v=Ye.get(c);--v===0?(document.removeEventListener(c,Qe),Ye.delete(c)):Ye.set(c,v)}Wt.delete(l),h!==r&&h.parentNode?.removeChild(h)}});return Xt.set(d,b),d}let Xt=new WeakMap;function Ds(e,t){const r=Xt.get(e);return r?(Xt.delete(e),r(t)):Promise.resolve()}function mt(e,t,r=!1){k&&it();var n=e,s=null,o=null,i=B,a=r?Nt:0,l=!1;const d=(v,f=!0)=>{l=!0,c(f,v)};var b=null;function h(){b!==null&&(b.lastChild.remove(),n.before(b),b=null);var v=i?s:o,f=i?o:s;v&&Ut(v),f&&Ht(f,()=>{i?o=null:s=null})}const c=(v,f)=>{if(i===(i=v))return;let u=!1;if(k){const C=pr(n)===kt;!!i===C&&(n=It(),Q(n),Z(!1),u=!0)}var _=qr(),T=n;if(_&&(b=document.createDocumentFragment(),b.append(T=Se())),i?s??=f&&ze(()=>f(T)):o??=f&&ze(()=>f(T)),_){var g=S,y=i?s:o,E=i?o:s;y&&g.skipped_effects.delete(y),E&&g.skipped_effects.add(E),g.add_callback(h)}else h();u&&Z(!0)};qt(()=>{l=!1,t(d),l||c(null,null)},a),k&&(n=R)}function Fs(e,t,r){for(var n=e.items,s=[],o=t.length,i=0;i<o;i++)Yt(t[i].e,s,!0);var a=o>0&&s.length===0&&r!==null;if(a){var l=r.parentNode;jt(l),l.append(r),n.clear(),ae(e,t[0].prev,t[o-1].next)}Zr(s,()=>{for(var d=0;d<o;d++){var b=t[d];a||(n.delete(b.k),ae(e,b.prev,b.next)),ne(b.e,!a)}})}function js(e,t,r,n,s,o=null){var i=e,a={flags:t,items:new Map,first:null};k&&it();var l=null,d=!1,b=new Map,h=Tr(()=>{var u=r();return Et(u)?u:u==null?[]:At(u)}),c,v;function f(){zs(v,c,a,b,i,s,t,n,r),o!==null&&(c.length===0?l?Ut(l):l=ze(()=>o(i)):l!==null&&Ht(l,()=>{l=null}))}qt(()=>{v??=w,c=x(h);var u=c.length;if(d&&u===0)return;d=u===0;let _=!1;if(k){var T=pr(i)===kt;T!==(u===0)&&(i=It(),Q(i),Z(!1),_=!0)}if(k){for(var g=null,y,E=0;E<u;E++){if(R.nodeType===De&&R.data===$t){i=R,_=!0,Z(!1);break}var C=c[E],O=n(C,E);y=Kt(R,a,g,null,C,O,E,s,t,r),a.items.set(O,y),g=y}u>0&&Q(It())}if(k)u===0&&o&&(l=ze(()=>o(i)));else if(qr()){var D=new Set,F=S;for(E=0;E<u;E+=1){C=c[E],O=n(C,E);var N=a.items.get(O)??b.get(O);N?gn(N,C,E):(y=Kt(null,a,null,null,C,O,E,s,t,r,!0),b.set(O,y)),D.add(O)}for(const[le,de]of a.items)D.has(le)||F.skipped_effects.add(de.e);F.add_callback(f)}else f();_&&Z(!0),x(h)}),k&&(i=R)}function zs(e,t,r,n,s,o,i,a,l){var d=t.length,b=r.items,h=r.first,c=h,v,f=null,u=[],_=[],T,g,y,E;for(E=0;E<d;E+=1){if(T=t[E],g=a(T,E),y=b.get(g),y===void 0){var C=n.get(g);if(C!==void 0){n.delete(g),b.set(g,C);var O=f?f.next:c;ae(r,f,C),ae(r,C,O),Jt(C,O,s),f=C}else{var D=c?c.e.nodes_start:s;f=Kt(D,r,f,f===null?r.first:f.next,T,g,E,o,i,l)}b.set(g,f),u=[],_=[],c=f.next;continue}if(gn(y,T,E),(y.e.f&J)!==0&&Ut(y.e),y!==c){if(v!==void 0&&v.has(y)){if(u.length<_.length){var F=_[0],N;f=F.prev;var le=u[0],de=u[u.length-1];for(N=0;N<u.length;N+=1)Jt(u[N],F,s);for(N=0;N<_.length;N+=1)v.delete(_[N]);ae(r,le.prev,de.next),ae(r,f,le),ae(r,de,F),c=F,f=de,E-=1,u=[],_=[]}else v.delete(y),Jt(y,c,s),ae(r,y.prev,y.next),ae(r,y,f===null?r.first:f.next),ae(r,f,y),f=y;continue}for(u=[],_=[];c!==null&&c.k!==g;)(c.e.f&J)===0&&(v??=new Set).add(c),_.push(c),c=c.next;if(c===null)continue;y=c}u.push(y),f=y,c=y.next}if(c!==null||v!==void 0){for(var ve=v===void 0?[]:At(v);c!==null;)(c.e.f&J)===0&&ve.push(c),c=c.next;var A=ve.length;if(A>0){var m=null;Fs(r,ve,m)}}e.first=r.first&&r.first.e,e.last=f&&f.e;for(var G of n.values())ne(G.e);n.clear()}function gn(e,t,r,n){ut(e.v,t),e.i=r}function Kt(e,t,r,n,s,o,i,a,l,d,b){var h=(l&Rn)!==0,c=(l&Sn)===0,v=h?c?Pr(s,!1,!1):Je(s):s,f=(l&Tn)===0?i:Je(i),u={i:f,v,k:o,a:null,e:null,prev:r,next:n};try{if(e===null){var _=document.createDocumentFragment();_.append(e=Se())}return u.e=ze(()=>a(e,v,f,d),k),u.e.prev=r&&r.e,u.e.next=n&&n.e,r===null?b||(t.first=u):(r.next=u,r.e.next=u.e),n!==null&&(n.prev=u,n.e.prev=u.e),u}finally{}}function Jt(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,s=t?t.e.nodes_start:r,o=e.e.nodes_start;o!==null&&o!==n;){var i=te(o);s.before(o),o=i}}function ae(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function qs(e,t){Vr(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const s=document.createElement("style");s.id=t.hash,s.textContent=t.code,n.appendChild(s)}})}const pn=[...`
3
+ \r\f \v\uFEFF`];function Hs(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var s in r)if(r[s])n=n?n+" "+s:s;else if(n.length)for(var o=s.length,i=0;(i=n.indexOf(s,i))>=0;){var a=i+o;(i===0||pn.includes(n[i-1]))&&(a===n.length||pn.includes(n[a]))?n=(i===0?"":n.substring(0,i))+n.substring(a+1):i=a}}return n===""?null:n}function Ys(e,t){return e==null?null:String(e)}function Zt(e,t,r,n,s,o){var i=e.__className;if(k||i!==r||i===void 0){var a=Hs(r,n,o);(!k||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):e.className=a),e.__className=r}else if(o&&s!==o)for(var l in o){var d=!!o[l];(s==null||d!==!!s[l])&&e.classList.toggle(l,d)}return o}function Qt(e,t,r,n){var s=e.__style;if(k||s!==t){var o=Ys(t);(!k||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}return n}const Us=Symbol("is custom element"),Vs=Symbol("is html");function Ws(e){if(k){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;er(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var s=e.checked;er(e,"checked",null),e.checked=s}}};e.__on_r=r,as(r),Yr()}}function er(e,t,r,n){var s=Xs(e);k&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||s[t]!==(s[t]=r)&&(t==="loading"&&(e[zn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ks(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Xs(e){return e.__attributes??={[Us]:e.nodeName.includes("-"),[Vs]:e.namespaceURI===Mn}}var mn=new Map;function Ks(e){var t=e.getAttribute("is")||e.nodeName,r=mn.get(t);if(r)return r;mn.set(t,r=[]);for(var n,s=e,o=Element.prototype;o!==s;){n=Gn(s);for(var i in n)n[i].set&&r.push(i);s=br(s)}return r}function _n(e,t,r=t){var n=new WeakSet;gs(e,"input",async s=>{var o=s?e.defaultValue:e.value;if(o=tr(e)?rr(o):o,r(o),S!==null&&n.add(S),await Ts(),o!==(o=t())){var i=e.selectionStart,a=e.selectionEnd;e.value=o??"",a!==null&&(e.selectionStart=i,e.selectionEnd=Math.min(a,e.value.length))}}),(k&&e.defaultValue!==e.value||Vt(t)==null&&e.value)&&(r(tr(e)?rr(e.value):e.value),S!==null&&n.add(S)),zt(()=>{var s=t();if(e===document.activeElement){var o=dt??S;if(n.has(o))return}tr(e)&&s===rr(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function tr(e){var t=e.type;return t==="number"||t==="range"}function rr(e){return e===""?null:+e}function yn(e,t){return e===t||e?.[We]===t}function Js(e={},t,r,n){return Vr(()=>{var s,o;return zt(()=>{s=o,o=[],Vt(()=>{e!==r(...o)&&(t(e,...o),s&&yn(r(...s),e)&&t(null,...s))})}),()=>{Ar(()=>{o&&yn(r(...o),e)&&t(null,...o)})}}),e}let _t=!1;function Zs(e){var t=_t;try{return _t=!1,[e(),_t]}finally{_t=t}}function yt(e,t,r,n){var s=(r&On)!==0,o=(r&Bn)!==0,i=n,a=!0,l=()=>(a&&(a=!1,i=o?Vt(n):n),i),d;if(s){var b=We in e||gr in e;d=ke(e,t)?.set??(b&&t in e?g=>e[t]=g:void 0)}var h,c=!1;s?[h,c]=Zs(()=>e[t]):h=e[t],h===void 0&&n!==void 0&&(h=l(),d&&(Jn(),d(h)));var v;if(v=()=>{var g=e[t];return g===void 0?l():(a=!0,g)},(r&Cn)===0)return v;if(d){var f=e.$$legacy;return(function(g,y){return arguments.length>0?((!y||f||c)&&d(y?v():g),g):v()})}var u=!1,_=((r&Nn)!==0?lt:Tr)(()=>(u=!1,v()));s&&x(_);var T=w;return(function(g,y){if(arguments.length>0){const E=y?x(_):s?me(g):g;return M(_,E),u=!0,i!==void 0&&(i=E),g}return Ce&&u||(T.f&$e)!==0?_.v:x(_)})}function Qs(e){return new eo(e)}class eo{#t;#e;constructor(t){var r=new Map,n=(o,i)=>{var a=Pr(i,!1,!1);return r.set(o,a),a};const s=new Proxy({...t.props||{},$$events:{}},{get(o,i){return x(r.get(i)??n(i,Reflect.get(o,i)))},has(o,i){return i===gr?!0:(x(r.get(i)??n(i,Reflect.get(o,i))),Reflect.has(o,i))},set(o,i,a){return M(r.get(i)??n(i,a),a),Reflect.set(o,i,a)}});this.#e=(t.hydrate?Ls:vn)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&Fe(),this.#t=s.$$events;for(const o of Object.keys(this.#e))o==="$set"||o==="$destroy"||o==="$on"||Pe(this,o,{get(){return this.#e[o]},set(i){this.#e[o]=i},enumerable:!0});this.#e.$set=o=>{Object.assign(s,o)},this.#e.$destroy=()=>{Ds(this.#e)}}$set(t){this.#e.$set(t)}$on(t,r){this.#t[t]=this.#t[t]||[];const n=(...s)=>r.call(this,...s);return this.#t[t].push(n),()=>{this.#t[t]=this.#t[t].filter(s=>s!==n)}}$destroy(){this.#e.$destroy()}}let wn;typeof HTMLElement=="function"&&(wn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&this.attachShadow({mode:"open"})}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return s=>{const o=document.createElement("slot");n!=="default"&&(o.name=n),ie(s,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=to(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=wt(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Qs({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=ws(()=>{zt(()=>{this.$$r=!0;for(const n of nt(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const s=wt(n,this.$$d[n],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,s)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const o=this.$$c.$on(n,s);this.$$l_u.set(s,o)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=wt(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return nt(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function wt(e,t,r,n){const s=r[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function to(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function ro(e,t,r,n,s,o){let i=class extends wn{constructor(){super(e,r,s),this.$$p_d=t}static get observedAttributes(){return nt(t).map(a=>(t[a].attribute||a).toLowerCase())}};return nt(t).forEach(a=>{Pe(i.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){l=wt(a,l,t),this.$$d[a]=l;var d=this.$$c;if(d){var b=ke(d,a)?.get;b?d[a]=l:d.$set({[a]:l})}}})}),n.forEach(a=>{Pe(i.prototype,a,{get(){return this.$$c?.[a]}})}),e.element=i,i}function no(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ue={},nr,xn;function so(){if(xn)return nr;xn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,i=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
4
+ `,d="/",b="*",h="",c="comment",v="declaration";nr=function(u,_){if(typeof u!="string")throw new TypeError("First argument must be a string");if(!u)return[];_=_||{};var T=1,g=1;function y(A){var m=A.match(t);m&&(T+=m.length);var G=A.lastIndexOf(l);g=~G?A.length-G:g+A.length}function E(){var A={line:T,column:g};return function(m){return m.position=new C(A),F(),m}}function C(A){this.start=A,this.end={line:T,column:g},this.source=_.source}C.prototype.content=u;function O(A){var m=new Error(_.source+":"+T+":"+g+": "+A);if(m.reason=A,m.filename=_.source,m.line=T,m.column=g,m.source=u,!_.silent)throw m}function D(A){var m=A.exec(u);if(m){var G=m[0];return y(G),u=u.slice(G.length),m}}function F(){D(r)}function N(A){var m;for(A=A||[];m=le();)m!==!1&&A.push(m);return A}function le(){var A=E();if(!(d!=u.charAt(0)||b!=u.charAt(1))){for(var m=2;h!=u.charAt(m)&&(b!=u.charAt(m)||d!=u.charAt(m+1));)++m;if(m+=2,h===u.charAt(m-1))return O("End of comment missing");var G=u.slice(2,m-2);return g+=2,y(G),u=u.slice(m),g+=2,A({type:c,comment:G})}}function de(){var A=E(),m=D(n);if(m){if(le(),!D(s))return O("property missing ':'");var G=D(o),sr=A({type:v,property:f(m[0].replace(e,h)),value:G?f(G[0].replace(e,h)):h});return D(i),sr}}function ve(){var A=[];N(A);for(var m;m=de();)m!==!1&&(A.push(m),N(A));return A}return F(),ve()};function f(u){return u?u.replace(a,h):h}return nr}var kn;function oo(){if(kn)return Ue;kn=1;var e=Ue&&Ue.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.default=r;var t=e(so());function r(n,s){var o=null;if(!n||typeof n!="string")return o;var i=(0,t.default)(n),a=typeof s=="function";return i.forEach(function(l){if(l.type==="declaration"){var d=l.property,b=l.value;a?s(d,b,l):b&&(o=o||{},o[d]=b)}}),o}return Ue}var io=oo();const $n=no(io);$n.default;function ao(e,t){e.key==="Enter"&&!e.shiftKey&&(e.preventDefault(),t())}var lo=Be('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1dn2md7"/>'),bo=Be('<label id="upload-file" class="btn file-button btn-sm svelte-1dn2md7" style="--tag-color: var(--bs-primary, #007bff)"><input type="file" class="svelte-1dn2md7"/> <i class="bi bi-paperclip svelte-1dn2md7"></i></label>'),co=(e,t)=>M(t,void 0),fo=Be('<i class="bi bi-x-lg svelte-1dn2md7"></i>'),uo=Be('<i class="bi bi-file-earmark-check-fill svelte-1dn2md7"></i>'),vo=Be('<button type="button" class="btn file-button file-selected btn-sm svelte-1dn2md7" style="--tag-color: var(--bs-primary, #007bff)" aria-label="Remove file"><!></button>'),ho=(e,t,r)=>t(x(r).id),go=Be('<button type="button"><i></i> </button>'),po=(e,t)=>t(),mo=Be('<div id="chat-container" class="svelte-1dn2md7"><div id="chat-box" class="svelte-1dn2md7"><div id="textarea-container" class="svelte-1dn2md7"><textarea id="send-message-text" placeholder="Type your message..."></textarea></div> <div id="buttons-container" class="svelte-1dn2md7"><div id="left-buttons" class="svelte-1dn2md7"><!> <!></div> <div id="right-buttons" class="svelte-1dn2md7"><button type="button" id="send-message-button" aria-label="Send message" class="svelte-1dn2md7"><i class="bi bi-send-fill svelte-1dn2md7"></i></button></div></div></div></div>');const _o={hash:"svelte-1dn2md7",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");
5
+ @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
6
+ /*!
7
+ * Bootstrap v5.1.2 (https://getbootstrap.com/)
8
+ * Copyright 2011-2021 The Bootstrap Authors
9
+ * Copyright 2011-2021 Twitter, Inc.
10
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
11
+ */:host {--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #0d6efd;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 13, 110, 253;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-primary-text-emphasis: rgb(5.2, 44, 101.2);--bs-secondary-text-emphasis: rgb(43.2, 46.8, 50);--bs-success-text-emphasis: rgb(10, 54, 33.6);--bs-info-text-emphasis: rgb(5.2, 80.8, 96);--bs-warning-text-emphasis: rgb(102, 77.2, 2.8);--bs-danger-text-emphasis: rgb(88, 21.2, 27.6);--bs-light-text-emphasis: #495057;--bs-dark-text-emphasis: #495057;--bs-primary-bg-subtle: rgb(206.6, 226, 254.6);--bs-secondary-bg-subtle: rgb(225.6, 227.4, 229);--bs-success-bg-subtle: rgb(209, 231, 220.8);--bs-info-bg-subtle: rgb(206.6, 244.4, 252);--bs-warning-bg-subtle: rgb(255, 242.6, 205.4);--bs-danger-bg-subtle: rgb(248, 214.6, 217.8);--bs-light-bg-subtle: rgb(251.5, 252, 252.5);--bs-dark-bg-subtle: #ced4da;--bs-primary-border-subtle: rgb(158.2, 197, 254.2);--bs-secondary-border-subtle: rgb(196.2, 199.8, 203);--bs-success-border-subtle: rgb(163, 207, 186.6);--bs-info-border-subtle: rgb(158.2, 233.8, 249);--bs-warning-border-subtle: rgb(255, 230.2, 155.8);--bs-danger-border-subtle: rgb(241, 174.2, 180.6);--bs-light-border-subtle: #e9ecef;--bs-dark-border-subtle: #adb5bd;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg: #fff;--bs-body-bg-rgb: 255, 255, 255;--bs-emphasis-color: #000;--bs-emphasis-color-rgb: 0, 0, 0;--bs-secondary-color: rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb: 33, 37, 41;--bs-secondary-bg: #e9ecef;--bs-secondary-bg-rgb: 233, 236, 239;--bs-tertiary-color: rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb: 33, 37, 41;--bs-tertiary-bg: #f8f9fa;--bs-tertiary-bg-rgb: 248, 249, 250;--bs-heading-color: inherit;--bs-link-color: #0d6efd;--bs-link-color-rgb: 13, 110, 253;--bs-link-decoration: underline;--bs-link-hover-color: rgb(10.4, 88, 202.4);--bs-link-hover-color-rgb: 10, 88, 202;--bs-code-color: #d63384;--bs-highlight-color: #212529;--bs-highlight-bg: rgb(255, 242.6, 205.4);--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, 0.175);--bs-border-radius: 0.375rem;--bs-border-radius-sm: 0.25rem;--bs-border-radius-lg: 0.5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-xxl: 2rem;--bs-border-radius-2xl: var(--bs-border-radius-xxl);--bs-border-radius-pill: 50rem;--bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width: 0.25rem;--bs-focus-ring-opacity: 0.25;--bs-focus-ring-color: rgba(13, 110, 253, 0.25);--bs-form-valid-color: #198754;--bs-form-valid-border-color: #198754;--bs-form-invalid-color: #dc3545;--bs-form-invalid-border-color: #dc3545;}.svelte-1dn2md7,
12
+ .svelte-1dn2md7::before,
13
+ .svelte-1dn2md7::after {box-sizing:border-box;}
14
+ @media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
15
+ }
16
+ @media (min-width: 1200px) {
17
+ }
18
+ @media (min-width: 1200px) {
19
+ }
20
+ @media (min-width: 1200px) {
21
+ }
22
+ @media (min-width: 1200px) {
23
+ }label.svelte-1dn2md7 {display:inline-block;}button.svelte-1dn2md7 {border-radius:0;}button.svelte-1dn2md7:focus:not(:focus-visible) {outline:0;}input.svelte-1dn2md7,
24
+ button.svelte-1dn2md7,
25
+ textarea.svelte-1dn2md7 {margin:0;font-family:inherit;font-size:inherit;line-height:inherit;}button.svelte-1dn2md7 {text-transform:none;}button.svelte-1dn2md7,
26
+ [type=button].svelte-1dn2md7 {-webkit-appearance:button;}button.svelte-1dn2md7:not(:disabled),
27
+ [type=button].svelte-1dn2md7:not(:disabled) {cursor:pointer;}.svelte-1dn2md7::-moz-focus-inner {padding:0;border-style:none;}textarea.svelte-1dn2md7 {resize:vertical;}
28
+ @media (min-width: 1200px) {
29
+ }.svelte-1dn2md7::-webkit-datetime-edit-fields-wrapper,
30
+ .svelte-1dn2md7::-webkit-datetime-edit-text,
31
+ .svelte-1dn2md7::-webkit-datetime-edit-minute,
32
+ .svelte-1dn2md7::-webkit-datetime-edit-hour-field,
33
+ .svelte-1dn2md7::-webkit-datetime-edit-day-field,
34
+ .svelte-1dn2md7::-webkit-datetime-edit-month-field,
35
+ .svelte-1dn2md7::-webkit-datetime-edit-year-field {padding:0;}.svelte-1dn2md7::-webkit-inner-spin-button {height:auto;}
36
+ /* rtl:raw:
37
+ [type="tel"],
38
+ [type="url"],
39
+ [type="email"],
40
+ [type="number"] {
41
+ direction: ltr;
42
+ }
43
+ */.svelte-1dn2md7::-webkit-search-decoration {-webkit-appearance:none;}.svelte-1dn2md7::-webkit-color-swatch-wrapper {padding:0;}.svelte-1dn2md7::file-selector-button {font:inherit;-webkit-appearance:button;}.btn.svelte-1dn2md7 {--bs-btn-padding-x: 0.75rem;--bs-btn-padding-y: 0.375rem;--bs-btn-font-family: ;--bs-btn-font-size: 1rem;--bs-btn-font-weight: 400;--bs-btn-line-height: 1.5;--bs-btn-color: var(--bs-body-color);--bs-btn-bg: transparent;--bs-btn-border-width: var(--bs-border-width);--bs-btn-border-color: transparent;--bs-btn-border-radius: var(--bs-border-radius);--bs-btn-hover-border-color: transparent;--bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);--bs-btn-disabled-opacity: 0.65;--bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;}
44
+ @media (prefers-reduced-motion: reduce) {.btn.svelte-1dn2md7 {transition:none;}
45
+ }.btn.svelte-1dn2md7:hover {color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);}.btn.svelte-1dn2md7:focus-visible {color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow);} .svelte-1dn2md7:not(.btn-check) + .btn:where(.svelte-1dn2md7):active, .btn.svelte-1dn2md7:first-child:active, .btn.active.svelte-1dn2md7, .btn.show.svelte-1dn2md7 {color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color);} .svelte-1dn2md7:not(.btn-check) + .btn:where(.svelte-1dn2md7):active:focus-visible, .btn.svelte-1dn2md7:first-child:active:focus-visible, .btn.active.svelte-1dn2md7:focus-visible, .btn.show.svelte-1dn2md7:focus-visible {box-shadow:var(--bs-btn-focus-box-shadow);}.btn.svelte-1dn2md7:disabled, .btn.disabled.svelte-1dn2md7 {color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity);}.btn-primary.svelte-1dn2md7 {--bs-btn-color: #fff;--bs-btn-bg: #0d6efd;--bs-btn-border-color: #0d6efd;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(11.05, 93.5, 215.05);--bs-btn-hover-border-color: rgb(10.4, 88, 202.4);--bs-btn-focus-shadow-rgb: 49, 132, 253;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(10.4, 88, 202.4);--bs-btn-active-border-color: rgb(9.75, 82.5, 189.75);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #0d6efd;--bs-btn-disabled-border-color: #0d6efd;}.btn-secondary.svelte-1dn2md7 {--bs-btn-color: #fff;--bs-btn-bg: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(91.8, 99.45, 106.25);--bs-btn-hover-border-color: rgb(86.4, 93.6, 100);--bs-btn-focus-shadow-rgb: 130, 138, 145;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(86.4, 93.6, 100);--bs-btn-active-border-color: rgb(81, 87.75, 93.75);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #6c757d;--bs-btn-disabled-border-color: #6c757d;}.btn-success.svelte-1dn2md7 {--bs-btn-color: #fff;--bs-btn-bg: #198754;--bs-btn-border-color: #198754;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(21.25, 114.75, 71.4);--bs-btn-hover-border-color: rgb(20, 108, 67.2);--bs-btn-focus-shadow-rgb: 60, 153, 110;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(20, 108, 67.2);--bs-btn-active-border-color: rgb(18.75, 101.25, 63);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #198754;--bs-btn-disabled-border-color: #198754;}.btn-info.svelte-1dn2md7 {--bs-btn-color: #000;--bs-btn-bg: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: rgb(49.3, 209.95, 242.25);--bs-btn-hover-border-color: rgb(37.2, 207.3, 241.5);--bs-btn-focus-shadow-rgb: 11, 172, 204;--bs-btn-active-color: #000;--bs-btn-active-bg: rgb(61.4, 212.6, 243);--bs-btn-active-border-color: rgb(37.2, 207.3, 241.5);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #0dcaf0;--bs-btn-disabled-border-color: #0dcaf0;}.btn-warning.svelte-1dn2md7 {--bs-btn-color: #000;--bs-btn-bg: #ffc107;--bs-btn-border-color: #ffc107;--bs-btn-hover-color: #000;--bs-btn-hover-bg: rgb(255, 202.3, 44.2);--bs-btn-hover-border-color: rgb(255, 199.2, 31.8);--bs-btn-focus-shadow-rgb: 217, 164, 6;--bs-btn-active-color: #000;--bs-btn-active-bg: rgb(255, 205.4, 56.6);--bs-btn-active-border-color: rgb(255, 199.2, 31.8);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #ffc107;--bs-btn-disabled-border-color: #ffc107;}.btn-danger.svelte-1dn2md7 {--bs-btn-color: #fff;--bs-btn-bg: #dc3545;--bs-btn-border-color: #dc3545;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(187, 45.05, 58.65);--bs-btn-hover-border-color: rgb(176, 42.4, 55.2);--bs-btn-focus-shadow-rgb: 225, 83, 97;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(176, 42.4, 55.2);--bs-btn-active-border-color: rgb(165, 39.75, 51.75);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #dc3545;--bs-btn-disabled-border-color: #dc3545;}.btn-light.svelte-1dn2md7 {--bs-btn-color: #000;--bs-btn-bg: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: rgb(210.8, 211.65, 212.5);--bs-btn-hover-border-color: rgb(198.4, 199.2, 200);--bs-btn-focus-shadow-rgb: 211, 212, 213;--bs-btn-active-color: #000;--bs-btn-active-bg: rgb(198.4, 199.2, 200);--bs-btn-active-border-color: rgb(186, 186.75, 187.5);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #f8f9fa;--bs-btn-disabled-border-color: #f8f9fa;}.btn-dark.svelte-1dn2md7 {--bs-btn-color: #fff;--bs-btn-bg: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: rgb(66.3, 69.7, 73.1);--bs-btn-hover-border-color: rgb(55.2, 58.8, 62.4);--bs-btn-focus-shadow-rgb: 66, 70, 73;--bs-btn-active-color: #fff;--bs-btn-active-bg: rgb(77.4, 80.6, 83.8);--bs-btn-active-border-color: rgb(55.2, 58.8, 62.4);--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #212529;--bs-btn-disabled-border-color: #212529;}.btn-outline-primary.svelte-1dn2md7 {--bs-btn-color: #0d6efd;--bs-btn-border-color: #0d6efd;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #0d6efd;--bs-btn-hover-border-color: #0d6efd;--bs-btn-focus-shadow-rgb: 13, 110, 253;--bs-btn-active-color: #fff;--bs-btn-active-bg: #0d6efd;--bs-btn-active-border-color: #0d6efd;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #0d6efd;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0d6efd;--bs-gradient: none;}.btn-outline-secondary.svelte-1dn2md7 {--bs-btn-color: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #6c757d;--bs-btn-hover-border-color: #6c757d;--bs-btn-focus-shadow-rgb: 108, 117, 125;--bs-btn-active-color: #fff;--bs-btn-active-bg: #6c757d;--bs-btn-active-border-color: #6c757d;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #6c757d;--bs-gradient: none;}.btn-outline-success.svelte-1dn2md7 {--bs-btn-color: #198754;--bs-btn-border-color: #198754;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #198754;--bs-btn-hover-border-color: #198754;--bs-btn-focus-shadow-rgb: 25, 135, 84;--bs-btn-active-color: #fff;--bs-btn-active-bg: #198754;--bs-btn-active-border-color: #198754;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #198754;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #198754;--bs-gradient: none;}.btn-outline-info.svelte-1dn2md7 {--bs-btn-color: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #0dcaf0;--bs-btn-hover-border-color: #0dcaf0;--bs-btn-focus-shadow-rgb: 13, 202, 240;--bs-btn-active-color: #000;--bs-btn-active-bg: #0dcaf0;--bs-btn-active-border-color: #0dcaf0;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #0dcaf0;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0dcaf0;--bs-gradient: none;}.btn-outline-warning.svelte-1dn2md7 {--bs-btn-color: #ffc107;--bs-btn-border-color: #ffc107;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #ffc107;--bs-btn-hover-border-color: #ffc107;--bs-btn-focus-shadow-rgb: 255, 193, 7;--bs-btn-active-color: #000;--bs-btn-active-bg: #ffc107;--bs-btn-active-border-color: #ffc107;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #ffc107;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #ffc107;--bs-gradient: none;}.btn-outline-danger.svelte-1dn2md7 {--bs-btn-color: #dc3545;--bs-btn-border-color: #dc3545;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #dc3545;--bs-btn-hover-border-color: #dc3545;--bs-btn-focus-shadow-rgb: 220, 53, 69;--bs-btn-active-color: #fff;--bs-btn-active-bg: #dc3545;--bs-btn-active-border-color: #dc3545;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #dc3545;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #dc3545;--bs-gradient: none;}.btn-outline-light.svelte-1dn2md7 {--bs-btn-color: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #f8f9fa;--bs-btn-hover-border-color: #f8f9fa;--bs-btn-focus-shadow-rgb: 248, 249, 250;--bs-btn-active-color: #000;--bs-btn-active-bg: #f8f9fa;--bs-btn-active-border-color: #f8f9fa;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #f8f9fa;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #f8f9fa;--bs-gradient: none;}.btn-outline-dark.svelte-1dn2md7 {--bs-btn-color: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #212529;--bs-btn-hover-border-color: #212529;--bs-btn-focus-shadow-rgb: 33, 37, 41;--bs-btn-active-color: #fff;--bs-btn-active-bg: #212529;--bs-btn-active-border-color: #212529;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color: #212529;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #212529;--bs-gradient: none;}.btn-link.svelte-1dn2md7 {--bs-btn-font-weight: 400;--bs-btn-color: var(--bs-link-color);--bs-btn-bg: transparent;--bs-btn-border-color: transparent;--bs-btn-hover-color: var(--bs-link-hover-color);--bs-btn-hover-border-color: transparent;--bs-btn-active-color: var(--bs-link-hover-color);--bs-btn-active-border-color: transparent;--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-border-color: transparent;--bs-btn-box-shadow: 0 0 0 #000;--bs-btn-focus-shadow-rgb: 49, 132, 253;text-decoration:underline;}.btn-link.svelte-1dn2md7:focus-visible {color:var(--bs-btn-color);}.btn-link.svelte-1dn2md7:hover {color:var(--bs-btn-hover-color);}.btn-lg.svelte-1dn2md7 {--bs-btn-padding-y: 0.5rem;--bs-btn-padding-x: 1rem;--bs-btn-font-size: 1.25rem;--bs-btn-border-radius: var(--bs-border-radius-lg);}.btn-sm.svelte-1dn2md7 {--bs-btn-padding-y: 0.25rem;--bs-btn-padding-x: 0.5rem;--bs-btn-font-size: 0.875rem;--bs-btn-border-radius: var(--bs-border-radius-sm);}.placeholder.svelte-1dn2md7 {display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:0.5;}.placeholder.btn.svelte-1dn2md7::before {display:inline-block;content:"";}.placeholder-xs.svelte-1dn2md7 {min-height:0.6em;}.placeholder-sm.svelte-1dn2md7 {min-height:0.8em;}.placeholder-lg.svelte-1dn2md7 {min-height:1.2em;}
46
+ @keyframes svelte-1dn2md7-placeholder-glow {
47
+ 50% {
48
+ opacity: 0.2;
49
+ }
50
+ }.placeholder-wave.svelte-1dn2md7 {mask-image:linear-gradient(130deg, #000 55%, rgba(0, 0, 0, 0.8) 75%, #000 95%);mask-size:200% 100%;
51
+ animation: svelte-1dn2md7-placeholder-wave 2s linear infinite;}
52
+ @keyframes svelte-1dn2md7-placeholder-wave {
53
+ 100% {
54
+ mask-position: -200% 0%;
55
+ }
56
+ }.clearfix.svelte-1dn2md7::after {display:block;clear:both;content:"";}.text-bg-primary.svelte-1dn2md7 {color:#fff !important;background-color:RGBA(var(--bs-primary-rgb), var(--bs-bg-opacity, 1)) !important;}.text-bg-secondary.svelte-1dn2md7 {color:#fff !important;background-color:RGBA(var(--bs-secondary-rgb), var(--bs-bg-opacity, 1)) !important;}.text-bg-success.svelte-1dn2md7 {color:#fff !important;background-color:RGBA(var(--bs-success-rgb), var(--bs-bg-opacity, 1)) !important;}.text-bg-info.svelte-1dn2md7 {color:#000 !important;background-color:RGBA(var(--bs-info-rgb), var(--bs-bg-opacity, 1)) !important;}.text-bg-warning.svelte-1dn2md7 {color:#000 !important;background-color:RGBA(var(--bs-warning-rgb), var(--bs-bg-opacity, 1)) !important;}.text-bg-danger.svelte-1dn2md7 {color:#fff !important;background-color:RGBA(var(--bs-danger-rgb), var(--bs-bg-opacity, 1)) !important;}.text-bg-light.svelte-1dn2md7 {color:#000 !important;background-color:RGBA(var(--bs-light-rgb), var(--bs-bg-opacity, 1)) !important;}.text-bg-dark.svelte-1dn2md7 {color:#fff !important;background-color:RGBA(var(--bs-dark-rgb), var(--bs-bg-opacity, 1)) !important;}.link-primary.svelte-1dn2md7 {color:RGBA(var(--bs-primary-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-primary-rgb), var(--bs-link-underline-opacity, 1)) !important;}.link-primary.svelte-1dn2md7:hover, .link-primary.svelte-1dn2md7:focus {color:RGBA(10, 88, 202, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(10, 88, 202, var(--bs-link-underline-opacity, 1)) !important;}.link-secondary.svelte-1dn2md7 {color:RGBA(var(--bs-secondary-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-secondary-rgb), var(--bs-link-underline-opacity, 1)) !important;}.link-secondary.svelte-1dn2md7:hover, .link-secondary.svelte-1dn2md7:focus {color:RGBA(86, 94, 100, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(86, 94, 100, var(--bs-link-underline-opacity, 1)) !important;}.link-success.svelte-1dn2md7 {color:RGBA(var(--bs-success-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-success-rgb), var(--bs-link-underline-opacity, 1)) !important;}.link-success.svelte-1dn2md7:hover, .link-success.svelte-1dn2md7:focus {color:RGBA(20, 108, 67, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(20, 108, 67, var(--bs-link-underline-opacity, 1)) !important;}.link-info.svelte-1dn2md7 {color:RGBA(var(--bs-info-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-info-rgb), var(--bs-link-underline-opacity, 1)) !important;}.link-info.svelte-1dn2md7:hover, .link-info.svelte-1dn2md7:focus {color:RGBA(61, 213, 243, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(61, 213, 243, var(--bs-link-underline-opacity, 1)) !important;}.link-warning.svelte-1dn2md7 {color:RGBA(var(--bs-warning-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-warning-rgb), var(--bs-link-underline-opacity, 1)) !important;}.link-warning.svelte-1dn2md7:hover, .link-warning.svelte-1dn2md7:focus {color:RGBA(255, 205, 57, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(255, 205, 57, var(--bs-link-underline-opacity, 1)) !important;}.link-danger.svelte-1dn2md7 {color:RGBA(var(--bs-danger-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-danger-rgb), var(--bs-link-underline-opacity, 1)) !important;}.link-danger.svelte-1dn2md7:hover, .link-danger.svelte-1dn2md7:focus {color:RGBA(176, 42, 55, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(176, 42, 55, var(--bs-link-underline-opacity, 1)) !important;}.link-light.svelte-1dn2md7 {color:RGBA(var(--bs-light-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-light-rgb), var(--bs-link-underline-opacity, 1)) !important;}.link-light.svelte-1dn2md7:hover, .link-light.svelte-1dn2md7:focus {color:RGBA(249, 250, 251, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(249, 250, 251, var(--bs-link-underline-opacity, 1)) !important;}.link-dark.svelte-1dn2md7 {color:RGBA(var(--bs-dark-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-dark-rgb), var(--bs-link-underline-opacity, 1)) !important;}.link-dark.svelte-1dn2md7:hover, .link-dark.svelte-1dn2md7:focus {color:RGBA(26, 30, 33, var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(26, 30, 33, var(--bs-link-underline-opacity, 1)) !important;}.link-body-emphasis.svelte-1dn2md7 {color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-opacity, 1)) !important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-underline-opacity, 1)) !important;}.link-body-emphasis.svelte-1dn2md7:hover, .link-body-emphasis.svelte-1dn2md7:focus {color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-opacity, 0.75)) !important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb), var(--bs-link-underline-opacity, 0.75)) !important;}.focus-ring.svelte-1dn2md7:focus {outline:0;box-shadow:var(--bs-focus-ring-x, 0) var(--bs-focus-ring-y, 0) var(--bs-focus-ring-blur, 0) var(--bs-focus-ring-width) var(--bs-focus-ring-color);}.icon-link.svelte-1dn2md7 {display:inline-flex;gap:0.375rem;align-items:center;text-decoration-color:rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 0.5));text-underline-offset:0.25em;backface-visibility:hidden;}
57
+ @media (prefers-reduced-motion: reduce) {
58
+ }.ratio.svelte-1dn2md7 {position:relative;width:100%;}.ratio.svelte-1dn2md7::before {display:block;padding-top:var(--bs-aspect-ratio);content:"";}.ratio-1x1.svelte-1dn2md7 {--bs-aspect-ratio: 100%;}.ratio-4x3.svelte-1dn2md7 {--bs-aspect-ratio: 75%;}.ratio-16x9.svelte-1dn2md7 {--bs-aspect-ratio: 56.25%;}.ratio-21x9.svelte-1dn2md7 {--bs-aspect-ratio: 42.8571428571%;}.fixed-top.svelte-1dn2md7 {position:fixed;top:0;right:0;left:0;z-index:1030;}.fixed-bottom.svelte-1dn2md7 {position:fixed;right:0;bottom:0;left:0;z-index:1030;}.sticky-top.svelte-1dn2md7 {position:sticky;top:0;z-index:1020;}.sticky-bottom.svelte-1dn2md7 {position:sticky;bottom:0;z-index:1020;}
59
+ @media (min-width: 576px) {.sticky-sm-top.svelte-1dn2md7 {position:sticky;top:0;z-index:1020;}.sticky-sm-bottom.svelte-1dn2md7 {position:sticky;bottom:0;z-index:1020;}
60
+ }
61
+ @media (min-width: 768px) {.sticky-md-top.svelte-1dn2md7 {position:sticky;top:0;z-index:1020;}.sticky-md-bottom.svelte-1dn2md7 {position:sticky;bottom:0;z-index:1020;}
62
+ }
63
+ @media (min-width: 992px) {.sticky-lg-top.svelte-1dn2md7 {position:sticky;top:0;z-index:1020;}.sticky-lg-bottom.svelte-1dn2md7 {position:sticky;bottom:0;z-index:1020;}
64
+ }
65
+ @media (min-width: 1200px) {.sticky-xl-top.svelte-1dn2md7 {position:sticky;top:0;z-index:1020;}.sticky-xl-bottom.svelte-1dn2md7 {position:sticky;bottom:0;z-index:1020;}
66
+ }
67
+ @media (min-width: 1400px) {.sticky-xxl-top.svelte-1dn2md7 {position:sticky;top:0;z-index:1020;}.sticky-xxl-bottom.svelte-1dn2md7 {position:sticky;bottom:0;z-index:1020;}
68
+ }.hstack.svelte-1dn2md7 {display:flex;flex-direction:row;align-items:center;align-self:stretch;}.vstack.svelte-1dn2md7 {display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch;}.visually-hidden.svelte-1dn2md7,
69
+ .visually-hidden-focusable.svelte-1dn2md7:not(:focus):not(:focus-within) {width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important;}.visually-hidden.svelte-1dn2md7:not(caption),
70
+ .visually-hidden-focusable.svelte-1dn2md7:not(:focus):not(:focus-within):not(caption) {position:absolute !important;}.stretched-link.svelte-1dn2md7::after {position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:"";}.text-truncate.svelte-1dn2md7 {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.vr.svelte-1dn2md7 {display:inline-block;align-self:stretch;width:var(--bs-border-width);min-height:1em;background-color:currentcolor;opacity:0.25;}:host {font-family:"Roboto", sans-serif;display:block;width:100%;padding:20px;box-sizing:border-box;}#chat-container.svelte-1dn2md7 {width:100%;margin:0 auto;}#chat-box.svelte-1dn2md7 {border:2px solid #e0e0e0;border-radius:12px;background-color:#ffffff;transition:border-color 0.3s ease, height 0.3s ease;overflow:hidden;min-height:124px;}#chat-box.svelte-1dn2md7:focus-within {border-color:#007bff;box-shadow:0 0 0 3px rgba(0, 123, 255, 0.1);}#textarea-container.svelte-1dn2md7 {padding:16px;border-bottom:1px solid #e0e0e0;}#send-message-text.svelte-1dn2md7 {width:100%;height:40px;min-height:40px;max-height:140px;border:none;outline:none;font-family:"Roboto", sans-serif;font-size:14px;line-height:1.5;resize:vertical;background-color:transparent;overflow-y:hidden;}#send-message-text.svelte-1dn2md7::placeholder {color:#999;}#send-message-text.svelte-1dn2md7:focus {outline:none;}#send-message-text.expandable.svelte-1dn2md7 {transition:height 0.3s ease;}#send-message-text.expandable.svelte-1dn2md7:focus {height:80px;min-height:80px;overflow-y:auto;}#buttons-container.svelte-1dn2md7 {display:flex;align-items:center;justify-content:space-between;padding:5px 16px;background-color:#f8f9fa;min-height:36px;}#left-buttons.svelte-1dn2md7 {display:flex;align-items:center;gap:12px;}#right-buttons.svelte-1dn2md7 {display:flex;align-items:center;gap:12px;}label#upload-file.svelte-1dn2md7 input[type=file]:where(.svelte-1dn2md7) {position:absolute;top:-10000000px;left:-10000000px;opacity:0;pointer-events:none;}.tag-button.svelte-1dn2md7,
71
+ .file-button.svelte-1dn2md7 {border:2px solid var(--tag-color);background-color:transparent;color:var(--tag-color);transition:all 0.2s ease;}.tag-button.svelte-1dn2md7:hover,
72
+ .file-button.svelte-1dn2md7:hover {background-color:var(--tag-color);color:white;transform:translateY(-1px);box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.tag-button.tag-selected.svelte-1dn2md7, .tag-button.file-selected.svelte-1dn2md7,
73
+ .file-button.tag-selected.svelte-1dn2md7,
74
+ .file-button.file-selected.svelte-1dn2md7 {background-color:var(--tag-color);color:white;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.tag-button.tag-selected.svelte-1dn2md7:hover, .tag-button.file-selected.svelte-1dn2md7:hover,
75
+ .file-button.tag-selected.svelte-1dn2md7:hover,
76
+ .file-button.file-selected.svelte-1dn2md7:hover {background-color:var(--tag-color);opacity:0.9;}#send-message-button.svelte-1dn2md7 {display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;border-radius:50%;background-color:var(--bs-primary, #007bff);color:white;cursor:pointer;transition:all 0.2s ease;font-size:14px;}#send-message-button.svelte-1dn2md7:hover:not(:disabled) {background-color:var(--bs-primary, #0056b3);transform:scale(1.05);}#send-message-button.svelte-1dn2md7:active:not(:disabled) {transform:scale(0.95);}#send-message-button.svelte-1dn2md7:disabled {background-color:var(--bs-secondary, #6c757d);cursor:not-allowed;transform:none;}#send-message-button.svelte-1dn2md7 > i:where(.svelte-1dn2md7) {margin:0;}`};function En(e,t){yr(t,!0),qs(e,_o);function r(p,j){t.$$host.dispatchEvent(new CustomEvent(p,{detail:j}))}let n=yt(t,"id",7,""),s=yt(t,"text",7,""),o=yt(t,"expandable",7,"no"),i=yt(t,"tags",23,()=>[]),a=H(void 0),l=H(!1),d=H(124),b;me({});let h=H(me([]));function c(){const p=["#e74c3c","#3498db","#2ecc71","#f39c12","#9b59b6","#1abc9c","#34495e","#e67e22","#95a5a6","#f1c40f","#e91e63","#00bcd4","#4caf50","#ff9800","#673ab7"];return p[Math.floor(Math.random()*p.length)]}function v(p){return p.color||c()}ys(()=>{if(typeof i()=="string")try{i(JSON.parse(i()))}catch(p){console.error("error parsing buttons",p)}});let f=Rr(()=>i()?.find?.(p=>p.type==="file")),u=Rr(()=>i()?.filter?.(p=>p.type==="toggle")||[]);function _(){if(!s()?.length&&!x(a))return console.warn("no message to send");console.log("send message "+s()),r("sendMessage",{text:s(),id:n(),file:x(a),tags:x(h)||[]})}function T(p){M(h,x(h).includes(p)?x(h).filter(j=>j!==p):[...x(h),p],!0)}function g(){M(l,!0)}function y(){M(l,!1)}function E(){if(b){b.style.height="auto";const p=b.scrollHeight,j=140,Ve=Math.min(Math.max(p,40),j);b.style.height=Ve+"px",p>j?b.style.overflowY="auto":b.style.overflowY="hidden",M(d,82+Ve)}}var C={get id(){return n()},set id(p=""){n(p),Fe()},get text(){return s()},set text(p=""){s(p),Fe()},get expandable(){return o()},set expandable(p="no"){o(p),Fe()},get tags(){return i()},set tags(p=[]){i(p),Fe()}},O=mo();Bs(p=>{var j=lo();ie(p,j)});var D=fe(O),F=fe(D),N=fe(F);hs(N),N.__keydown=[ao,_],N.__input=E;let le;Js(N,p=>b=p,()=>b),ce(F);var de=vt(F,2),ve=fe(de),A=fe(ve);{var m=p=>{var j=un(),Ve=zr(j);{var tt=z=>{var U=bo(),Ie=fe(U);Ws(Ie),ts(2),ce(U),_n(Ie,()=>x(a),rt=>M(a,rt)),ie(z,U)},we=z=>{var U=vo();U.__click=[co,a];var Ie=fe(U);{var rt=xe=>{var ar=fo();ie(xe,ar)},ir=xe=>{var ar=uo();ie(xe,ar)};mt(Ie,xe=>{x(l)?xe(rt):xe(ir,!1)})}ce(U),cn("mouseenter",U,g),cn("mouseleave",U,y),ie(z,U)};mt(Ve,z=>{x(a)?z(we,!1):z(tt)})}ie(p,j)};mt(A,p=>{x(f)&&p(m)})}var G=vt(A,2);{var sr=p=>{var j=un(),Ve=zr(j);js(Ve,17,()=>x(u),tt=>tt.id,(tt,we)=>{var z=go();let U;z.__click=[ho,T,we];var Ie=fe(z),rt=vt(Ie);ce(z),Wr((ir,xe)=>{U=Zt(z,1,"btn tag-button btn-sm svelte-1dn2md7",null,U,ir),Qt(z,`--tag-color: ${xe??""}`),er(z,"aria-label",`Use ${x(we).label}`),Zt(Ie,1,`bi bi-${x(we).icon??""}`,"svelte-1dn2md7"),Gs(rt,` ${x(we).label??""}`)},[()=>({"tag-selected":x(h).includes(x(we).id)}),()=>v(x(we))]),ie(tt,z)}),ie(p,j)};mt(G,p=>{x(u).length&&p(sr)})}ce(ve);var An=vt(ve,2),or=fe(An);return or.__click=[po,_],ce(An),ce(de),ce(D),ce(O),Wr(p=>{Qt(D,`height: ${x(d)??""}px;`),le=Zt(N,1,"svelte-1dn2md7",null,le,p),or.disabled=!(s()?.length||x(a)),Qt(or,`opacity:${s()?.length||x(a)?"1":"0.25"}`)},[()=>({expandable:o()==="yes"})]),_n(N,s),ie(e,O),wr(C)}Cs(["keydown","input","click"]),customElements.define("hb-messages-send",ro(En,{id:{},text:{},expandable:{},tags:{}},[],[],!0)),lr.Component=En,Object.defineProperty(lr,Symbol.toStringTag,{value:"Module"})})(this["messages-send"]=this["messages-send"]||{});
5
77
  //# sourceMappingURL=main.iife.js.map