@htmlbricks/hb-messages-send 0.65.22 → 0.66.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.iife.js +5 -5
- package/main.iife.js.map +1 -1
- package/manifest.json +24 -5
- package/package.json +2 -2
package/main.iife.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
(function(wi){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const _i=1,ki=2,$i=4,Pr=8,Dr=16,Gr=1,Ir=4,Hr=8,Fr=16,Ur=2,ji="[",he="[!",qe="]",Wt={},O=Symbol(),Yr="http://www.w3.org/1999/xhtml",We=!1;var Ei=Array.isArray,qr=Array.prototype.indexOf,Ve=Array.from,ye=Object.keys,we=Object.defineProperty,Bt=Object.getOwnPropertyDescriptor,Wr=Object.getOwnPropertyDescriptors,Vr=Object.prototype,Kr=Array.prototype,Ai=Object.getPrototypeOf,Ri=Object.isExtensible;function Jr(t){for(var e=0;e<t.length;e++)t[e]()}function zi(){var t,e,i=new Promise((r,o)=>{t=r,e=o});return{promise:i,resolve:t,reject:e}}const N=2,Ke=4,Je=8,ft=16,ct=32,Et=64,_e=128,nt=512,L=1024,U=2048,ut=4096,q=8192,xt=16384,ke=32768,Vt=65536,Ti=1<<17,Xe=1<<18,Nt=1<<19,Xr=1<<20,Ot=32768,Ze=1<<21,Qe=1<<22,At=1<<23,ae=Symbol("$state"),Si=Symbol("legacy props"),Zr=Symbol(""),Kt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ti=3,Lt=8;function Qr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function tn(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function en(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function rn(t){throw new Error("https://svelte.dev/e/effect_orphan")}function nn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function on(){throw new Error("https://svelte.dev/e/hydration_failed")}function vn(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function an(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ln(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function sn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function pn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function $e(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function bn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let h=!1;function ot(t){h=t}let _;function P(t){if(t===null)throw $e(),Wt;return _=t}function je(){return P(Q(_))}function M(t){if(h){if(Q(_)!==null)throw $e(),Wt;_=t}}function Ci(t=1){if(h){for(var e=t,i=_;e--;)i=Q(i);_=i}}function Ee(t=!0){for(var e=0,i=_;;){if(i.nodeType===Lt){var r=i.data;if(r===qe){if(e===0)return i;e-=1}else(r===ji||r===he)&&(e+=1)}var o=Q(i);t&&i.remove(),i=o}}function Mi(t){if(!t||t.nodeType!==Lt)throw $e(),Wt;return t.data}function Bi(t){return t===this.v}function mn(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ni(t){return!mn(t,this.v)}let dn=!1,J=null;function Jt(t){J=t}function Oi(t,e=!1,i){J={p:J,i:!1,c:null,e:null,s:t,x:null,l:null}}function Li(t){var e=J,i=e.e;if(i!==null){e.e=null;for(var r of i)or(r)}return t!==void 0&&(e.x=t),e.i=!0,J=e.p,t??{}}function Pi(){return!0}let Pt=[];function Di(){var t=Pt;Pt=[],Jr(t)}function Xt(t){if(Pt.length===0&&!le){var e=Pt;queueMicrotask(()=>{e===Pt&&Di()})}Pt.push(t)}function gn(){for(;Pt.length>0;)Di()}function Gi(t){var e=k;if(e===null)return y.f|=At,t;if((e.f&ke)===0){if((e.f&_e)===0)throw t;e.b.error(t)}else Zt(t,e)}function Zt(t,e){for(;e!==null;){if((e.f&_e)!==0)try{e.b.error(t);return}catch(i){t=i}e=e.parent}throw t}const Ae=new Set;let R=null,Re=null,X=null,Z=[],ze=null,ei=!1,le=!1;class vt{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#i=0;#r=0;#l=null;#o=[];#n=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(e){Z=[],Re=null,this.apply();var i={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of e)this.#v(r,i);this.is_fork||this.#p(),this.is_deferred()?(this.#a(i.effects),this.#a(i.render_effects),this.#a(i.block_effects)):(Re=this,R=null,Hi(i.render_effects),Hi(i.effects),Re=null,this.#l?.resolve()),X=null}#v(e,i){e.f^=L;for(var r=e.first;r!==null;){var o=r.f,n=(o&(ct|Et))!==0,v=n&&(o&L)!==0,l=v||(o&q)!==0||this.skipped_effects.has(r);if((r.f&_e)!==0&&r.b?.is_pending()&&(i={parent:i,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){n?r.f^=L:(o&Ke)!==0?i.effects.push(r):me(r)&&((r.f&ft)!==0&&i.block_effects.push(r),de(r));var a=r.first;if(a!==null){r=a;continue}}var s=r.parent;for(r=r.next;r===null&&s!==null;)s===i.effect&&(this.#a(i.effects),this.#a(i.render_effects),this.#a(i.block_effects),i=i.parent),r=s.next,s=s.parent}}#a(e){for(const i of e)((i.f&U)!==0?this.#o:this.#n).push(i),this.#s(i.deps),G(i,L)}#s(e){if(e!==null)for(const i of e)(i.f&N)===0||(i.f&Ot)===0||(i.f^=Ot,this.#s(i.deps))}capture(e,i){this.previous.has(e)||this.previous.set(e,i),(e.f&At)===0&&(this.current.set(e,e.v),X?.set(e,e.v))}activate(){R=this,this.apply()}deactivate(){R===this&&(R=null,X=null)}flush(){if(this.activate(),Z.length>0){if(Ii(),R!==null&&R!==this)return}else this.#i===0&&this.process([]);this.deactivate()}discard(){for(const e of this.#t)e(this);this.#t.clear()}#p(){if(this.#r===0){for(const e of this.#e)e();this.#e.clear()}this.#i===0&&this.#b()}#b(){if(Ae.size>1){this.previous.clear();var e=X,i=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of Ae){if(n===this){i=!1;continue}const v=[];for(const[a,s]of this.current){if(n.current.has(a))if(i&&s!==n.current.get(a))n.current.set(a,s);else continue;v.push(a)}if(v.length===0)continue;const l=[...n.current.keys()].filter(a=>!this.current.has(a));if(l.length>0){var o=Z;Z=[];const a=new Set,s=new Map;for(const m of v)Fi(m,l,a,s);if(Z.length>0){R=n,n.apply();for(const m of Z)n.#v(m,r);n.deactivate()}Z=o}}R=null,X=e}this.committed=!0,Ae.delete(this)}increment(e){this.#i+=1,e&&(this.#r+=1)}decrement(e){this.#i-=1,e&&(this.#r-=1),this.revive()}revive(){for(const e of this.#o)G(e,U),Gt(e);for(const e of this.#n)G(e,ut),Gt(e);this.#o=[],this.#n=[],this.flush()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#l??=zi()).promise}static ensure(){if(R===null){const e=R=new vt;Ae.add(R),le||vt.enqueue(()=>{R===e&&e.flush()})}return R}static enqueue(e){Xt(e)}apply(){}}function Dt(t){var e=le;le=!0;try{for(var i;;){if(gn(),Z.length===0&&(R?.flush(),Z.length===0))return ze=null,i;Ii()}}finally{le=e}}function Ii(){var t=Tt;ei=!0;var e=null;try{var i=0;for(Ne(!0);Z.length>0;){var r=vt.ensure();if(i++>1e3){var o,n;fn()}r.process(Z),Rt.clear()}}finally{ei=!1,Ne(t),ze=null}}function fn(){try{nn()}catch(t){Zt(t,ze)}}let ht=null;function Hi(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var r=t[i++];if((r.f&(xt|q))===0&&me(r)&&(ht=new Set,de(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?sr(r):r.fn=null),ht?.size>0)){Rt.clear();for(const o of ht){if((o.f&(xt|q))!==0)continue;const n=[o];let v=o.parent;for(;v!==null;)ht.has(v)&&(ht.delete(v),n.push(v)),v=v.parent;for(let l=n.length-1;l>=0;l--){const a=n[l];(a.f&(xt|q))===0&&de(a)}}ht.clear()}}ht=null}}function Fi(t,e,i,r){if(!i.has(t)&&(i.add(t),t.reactions!==null))for(const o of t.reactions){const n=o.f;(n&N)!==0?Fi(o,e,i,r):(n&(Qe|ft))!==0&&(n&U)===0&&Ui(o,e,r)&&(G(o,U),Gt(o))}}function Ui(t,e,i){const r=i.get(t);if(r!==void 0)return r;if(t.deps!==null)for(const o of t.deps){if(e.includes(o))return!0;if((o.f&N)!==0&&Ui(o,e,i))return i.set(o,!0),!0}return i.set(t,!1),!1}function Gt(t){for(var e=ze=t;e.parent!==null;){e=e.parent;var i=e.f;if(ei&&e===k&&(i&ft)!==0&&(i&Xe)===0)return;if((i&(Et|ct))!==0){if((i&L)===0)return;e.f^=L}}Z.push(e)}function cn(t){let e=0,i=It(0),r;return()=>{Ce()&&(g(i),Me(()=>(e===0&&(r=Le(()=>t(()=>se(i)))),e+=1,()=>{Xt(()=>{e-=1,e===0&&(r?.(),r=void 0,se(i))})})))}}var un=Vt|Nt|_e;function xn(t,e,i){new hn(t,e,i)}class hn{parent;#e=!1;#t;#i=h?_:null;#r;#l;#o;#n=null;#v=null;#a=null;#s=null;#p=null;#b=0;#m=0;#g=!1;#d=null;#h=cn(()=>(this.#d=It(this.#b),()=>{this.#d=null}));constructor(e,i,r){this.#t=e,this.#r=i,this.#l=r,this.parent=k.b,this.#e=!!this.#r.pending,this.#o=Be(()=>{if(k.b=this,h){const n=this.#i;je(),n.nodeType===Lt&&n.data===he?this.#w():this.#y()}else{var o=this.#u();try{this.#n=tt(()=>r(o))}catch(n){this.error(n)}this.#m>0?this.#c():this.#e=!1}return()=>{this.#p?.remove()}},un),h&&(this.#t=_)}#y(){try{this.#n=tt(()=>this.#l(this.#t))}catch(e){this.error(e)}this.#e=!1}#w(){const e=this.#r.pending;e&&(this.#v=tt(()=>e(this.#t)),vt.enqueue(()=>{var i=this.#u();this.#n=this.#f(()=>(vt.ensure(),tt(()=>this.#l(i)))),this.#m>0?this.#c():(te(this.#v,()=>{this.#v=null}),this.#e=!1)}))}#u(){var e=this.#t;return this.#e&&(this.#p=W(),this.#t.before(this.#p),e=this.#p),e}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#f(e){var i=k,r=y,o=J;bt(this.#o),Y(this.#o),Jt(this.#o.ctx);try{return e()}catch(n){return Gi(n),null}finally{bt(i),Y(r),Jt(o)}}#c(){const e=this.#r.pending;this.#n!==null&&(this.#s=document.createDocumentFragment(),this.#s.append(this.#p),mr(this.#n,this.#s)),this.#v===null&&(this.#v=tt(()=>e(this.#t)))}#x(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#x(e);return}this.#m+=e,this.#m===0&&(this.#e=!1,this.#v&&te(this.#v,()=>{this.#v=null}),this.#s&&(this.#t.before(this.#s),this.#s=null))}update_pending_count(e){this.#x(e),this.#b+=e,this.#d&&Qt(this.#d,this.#b)}get_effect_pending(){return this.#h(),g(this.#d)}error(e){var i=this.#r.onerror;let r=this.#r.failed;if(this.#g||!i&&!r)throw e;this.#n&&(H(this.#n),this.#n=null),this.#v&&(H(this.#v),this.#v=null),this.#a&&(H(this.#a),this.#a=null),h&&(P(this.#i),Ci(),P(Ee()));var o=!1,n=!1;const v=()=>{if(o){bn();return}o=!0,n&&pn(),vt.ensure(),this.#b=0,this.#a!==null&&te(this.#a,()=>{this.#a=null}),this.#e=this.has_pending_snippet(),this.#n=this.#f(()=>(this.#g=!1,tt(()=>this.#l(this.#t)))),this.#m>0?this.#c():this.#e=!1};var l=y;try{Y(null),n=!0,i?.(e,v),n=!1}catch(a){Zt(a,this.#o&&this.#o.parent)}finally{Y(l)}r&&Xt(()=>{this.#a=this.#f(()=>{vt.ensure(),this.#g=!0;try{return tt(()=>{r(this.#t,()=>e,()=>v)})}catch(a){return Zt(a,this.#o.parent),null}finally{this.#g=!1}})})}}function yn(t,e,i){for(var r=[],o=e.length,n=0;n<o;n++)li(e[n].e,r,!0);pr(r,()=>{var v=r.length===0&&i!==null;if(v){var l=i,a=l.parentNode;ai(a),a.append(l),t.items.clear(),at(t,e[0].prev,e[o-1].next)}for(var s=0;s<o;s++){var m=e[s];v||(t.items.delete(m.k),at(t,m.prev,m.next)),H(m.e,!v)}t.first===e[0]&&(t.first=e[0].prev)})}function Yi(t,e,i,r,o,n=null){var v=t,l=new Map,a=null,s=(e&$i)!==0,m=(e&_i)!==0,f=(e&ki)!==0;if(s){var p=t;v=h?P(zt(p)):p.appendChild(W())}h&&je();var d=null,x=qi(()=>{var T=i();return Ei(T)?T:T==null?[]:Ve(T)}),E,c=!0;function A(){wn(K,E,v,e,r),d!==null&&(E.length===0?(d.fragment?(v.before(d.fragment),d.fragment=null):si(d.effect),S.first=d.effect):te(d.effect,()=>{d=null}))}var S=Be(()=>{E=g(x);var T=E.length;let St=!1;if(h){var Yt=Mi(v)===he;Yt!==(T===0)&&(v=Ee(),P(v),ot(!1),St=!0)}for(var dt=new Set,gt=R,kt=null,He=ir(),$t=0;$t<T;$t+=1){h&&_.nodeType===Lt&&_.data===qe&&(v=_,St=!0,ot(!1));var ue=E[$t],oe=r(ue,$t),I=c?null:l.get(oe);I?(m&&Qt(I.v,ue),f?Qt(I.i,$t):I.i=$t,He&>.skipped_effects.delete(I.e)):(I=_n(c?v:null,kt,ue,oe,$t,o,e,i),c&&(I.o=!0,kt===null?a=I:kt.next=I,kt=I),l.set(oe,I)),dt.add(oe)}if(T===0&&n&&!d)if(c)d={fragment:null,effect:tt(()=>n(v))};else{var Fe=document.createDocumentFragment(),qt=W();Fe.append(qt),d={fragment:Fe,effect:tt(()=>n(qt))}}if(h&&T>0&&P(Ee()),!c)if(He){for(const[xe,Ue]of l)dt.has(xe)||gt.skipped_effects.add(Ue.e);gt.oncommit(A),gt.ondiscard(()=>{})}else A();St&&ot(!0),g(x)}),K={effect:S,items:l,first:a};c=!1,h&&(v=_)}function wn(t,e,i,r,o){var n=(r&Pr)!==0,v=e.length,l=t.items,a=t.first,s,m=null,f,p=[],d=[],x,E,c,A;if(n)for(A=0;A<v;A+=1)x=e[A],E=o(x,A),c=l.get(E),c.a?.measure(),(f??=new Set).add(c);for(A=0;A<v;A+=1){if(x=e[A],E=o(x,A),c=l.get(E),t.first??=c,!c.o){c.o=!0;var S=m?m.next:a;at(t,m,c),at(t,c,S),ii(c,S,i),m=c,p=[],d=[],a=m.next;continue}if((c.e.f&q)!==0&&(si(c.e),n&&(c.a?.unfix(),(f??=new Set).delete(c))),c!==a){if(s!==void 0&&s.has(c)){if(p.length<d.length){var K=d[0],T;m=K.prev;var St=p[0],Yt=p[p.length-1];for(T=0;T<p.length;T+=1)ii(p[T],K,i);for(T=0;T<d.length;T+=1)s.delete(d[T]);at(t,St.prev,Yt.next),at(t,m,St),at(t,Yt,K),a=K,m=Yt,A-=1,p=[],d=[]}else s.delete(c),ii(c,a,i),at(t,c.prev,c.next),at(t,c,m===null?t.first:m.next),at(t,m,c),m=c;continue}for(p=[],d=[];a!==null&&a.k!==E;)(a.e.f&q)===0&&(s??=new Set).add(a),d.push(a),a=a.next;if(a===null)continue;c=a}p.push(c),m=c,a=c.next}if(a!==null||s!==void 0){for(var dt=s===void 0?[]:Ve(s);a!==null;)(a.e.f&q)===0&&dt.push(a),a=a.next;var gt=dt.length;if(gt>0){var kt=(r&$i)!==0&&v===0?i:null;if(n){for(A=0;A<gt;A+=1)dt[A].a?.measure();for(A=0;A<gt;A+=1)dt[A].a?.fix()}yn(t,dt,kt)}}n&&Xt(()=>{if(f!==void 0)for(c of f)c.a?.apply()})}function _n(t,e,i,r,o,n,v,l){var a=(v&_i)!==0,s=(v&Dr)===0,m=a?s?Ji(i,!1,!1):It(i):i,f=(v&ki)===0?o:It(o),p={i:f,v:m,k:r,a:null,e:null,o:!1,prev:e,next:null};try{if(t===null){var d=document.createDocumentFragment();d.append(t=W())}return p.e=tt(()=>n(t,m,f,l)),e!==null&&(e.next=p),p}finally{}}function ii(t,e,i){for(var r=t.next?t.next.e.nodes_start:i,o=e?e.e.nodes_start:i,n=t.e.nodes_start;n!==null&&n!==r;){var v=Q(n);o.before(n),n=v}}function at(t,e,i){e===null?(t.first=i,t.effect.first=i&&i.e):(e.e.next&&(e.e.next.prev=null),e.next=i,e.e.next=i&&i.e),i===null?t.effect.last=e&&e.e:(i.e.prev&&(i.e.prev.next=null),i.prev=e,i.e.prev=e&&e.e)}function kn(t,e,i,r){const o=ri;if(i.length===0&&t.length===0){r(e.map(o));return}var n=R,v=k,l=$n();function a(){Promise.all(i.map(s=>jn(s))).then(s=>{l();try{r([...e.map(o),...s])}catch(m){(v.f&xt)===0&&Zt(m,v)}n?.deactivate(),Te()}).catch(s=>{Zt(s,v)})}t.length>0?Promise.all(t).then(()=>{l();try{return a()}finally{n?.deactivate(),Te()}}):a()}function $n(){var t=k,e=y,i=J,r=R;return function(n=!0){bt(t),Y(e),Jt(i),n&&r?.activate()}}function Te(){bt(null),Y(null),Jt(null)}function ri(t){var e=N|U,i=y!==null&&(y.f&N)!==0?y:null;return k!==null&&(k.f|=Nt),{ctx:J,deps:null,effects:null,equals:Bi,f:e,fn:t,reactions:null,rv:0,v:O,wv:0,parent:i??k,ac:null}}function jn(t,e){let i=k;i===null&&Qr();var r=i.b,o=void 0,n=It(O),v=!y,l=new Map;return On(()=>{var a=zi();o=a.promise;try{Promise.resolve(t()).then(a.resolve,a.reject).then(()=>{s===R&&s.committed&&s.deactivate(),Te()})}catch(p){a.reject(p),Te()}var s=R;if(v){var m=!r.is_pending();r.update_pending_count(1),s.increment(m),l.get(s)?.reject(Kt),l.delete(s),l.set(s,a)}const f=(p,d=void 0)=>{if(s.activate(),d)d!==Kt&&(n.f|=At,Qt(n,d));else{(n.f&At)!==0&&(n.f^=At),Qt(n,p);for(const[x,E]of l){if(l.delete(x),x===s)break;E.reject(Kt)}}v&&(r.update_pending_count(-1),s.decrement(m))};a.promise.then(f,p=>f(null,p||"unknown"))}),nr(()=>{for(const a of l.values())a.reject(Kt)}),new Promise(a=>{function s(m){function f(){m===o?a(n):s(o)}m.then(f,f)}s(o)})}function qi(t){const e=ri(t);return e.equals=Ni,e}function Wi(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)H(e[i])}}function En(t){for(var e=t.parent;e!==null;){if((e.f&N)===0)return(e.f&xt)===0?e:null;e=e.parent}return null}function ni(t){var e,i=k;bt(En(t));try{t.f&=~Ot,Wi(t),e=xr(t)}finally{bt(i)}return e}function Vi(t){var e=ni(t);if(t.equals(e)||(R?.is_fork||(t.v=e),t.wv=cr()),!Ht)if(X!==null)Ce()&&X.set(t,e);else{var i=(t.f&nt)===0?ut:L;G(t,i)}}let oi=new Set;const Rt=new Map;let Ki=!1;function It(t,e){var i={f:0,v:t,reactions:null,equals:Bi,rv:0,wv:0};return i}function D(t,e){const i=It(t);return Dn(i),i}function Ji(t,e=!1,i=!0){const r=It(t);return e||(r.equals=Ni),r}function z(t,e,i=!1){y!==null&&(!pt||(y.f&Ti)!==0)&&Pi()&&(y.f&(N|ft|Qe|Ti))!==0&&!_t?.includes(t)&&sn();let r=i?yt(e):e;return Qt(t,r)}function Qt(t,e){if(!t.equals(e)){var i=t.v;Ht?Rt.set(t,e):Rt.set(t,i),t.v=e;var r=vt.ensure();r.capture(t,i),(t.f&N)!==0&&((t.f&U)!==0&&ni(t),G(t,(t.f&nt)!==0?L:ut)),t.wv=cr(),Xi(t,U),k!==null&&(k.f&L)!==0&&(k.f&(ct|Et))===0&&(et===null?Gn([t]):et.push(t)),!r.is_fork&&oi.size>0&&!Ki&&An()}return e}function An(){Ki=!1;var t=Tt;Ne(!0);const e=Array.from(oi);try{for(const i of e)(i.f&L)!==0&&G(i,ut),me(i)&&de(i)}finally{Ne(t)}oi.clear()}function se(t){z(t,t.v+1)}function Xi(t,e){var i=t.reactions;if(i!==null)for(var r=i.length,o=0;o<r;o++){var n=i[o],v=n.f,l=(v&U)===0;if(l&&G(n,e),(v&N)!==0){var a=n;X?.delete(a),(v&Ot)===0&&(v&nt&&(n.f|=Ot),Xi(a,ut))}else l&&((v&ft)!==0&&ht!==null&&ht.add(n),Gt(n))}}function yt(t){if(typeof t!="object"||t===null||ae in t)return t;const e=Ai(t);if(e!==Vr&&e!==Kr)return t;var i=new Map,r=Ei(t),o=D(0),n=Ft,v=l=>{if(Ft===n)return l();var a=y,s=Ft;Y(null),fr(n);var m=l();return Y(a),fr(s),m};return r&&i.set("length",D(t.length)),new Proxy(t,{defineProperty(l,a,s){(!("value"in s)||s.configurable===!1||s.enumerable===!1||s.writable===!1)&&an();var m=i.get(a);return m===void 0?m=v(()=>{var f=D(s.value);return i.set(a,f),f}):z(m,s.value,!0),!0},deleteProperty(l,a){var s=i.get(a);if(s===void 0){if(a in l){const m=v(()=>D(O));i.set(a,m),se(o)}}else z(s,O),se(o);return!0},get(l,a,s){if(a===ae)return t;var m=i.get(a),f=a in l;if(m===void 0&&(!f||Bt(l,a)?.writable)&&(m=v(()=>{var d=yt(f?l[a]:O),x=D(d);return x}),i.set(a,m)),m!==void 0){var p=g(m);return p===O?void 0:p}return Reflect.get(l,a,s)},getOwnPropertyDescriptor(l,a){var s=Reflect.getOwnPropertyDescriptor(l,a);if(s&&"value"in s){var m=i.get(a);m&&(s.value=g(m))}else if(s===void 0){var f=i.get(a),p=f?.v;if(f!==void 0&&p!==O)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return s},has(l,a){if(a===ae)return!0;var s=i.get(a),m=s!==void 0&&s.v!==O||Reflect.has(l,a);if(s!==void 0||k!==null&&(!m||Bt(l,a)?.writable)){s===void 0&&(s=v(()=>{var p=m?yt(l[a]):O,d=D(p);return d}),i.set(a,s));var f=g(s);if(f===O)return!1}return m},set(l,a,s,m){var f=i.get(a),p=a in l;if(r&&a==="length")for(var d=s;d<f.v;d+=1){var x=i.get(d+"");x!==void 0?z(x,O):d in l&&(x=v(()=>D(O)),i.set(d+"",x))}if(f===void 0)(!p||Bt(l,a)?.writable)&&(f=v(()=>D(void 0)),z(f,yt(s)),i.set(a,f));else{p=f.v!==O;var E=v(()=>yt(s));z(f,E)}var c=Reflect.getOwnPropertyDescriptor(l,a);if(c?.set&&c.set.call(m,s),!p){if(r&&typeof a=="string"){var A=i.get("length"),S=Number(a);Number.isInteger(S)&&S>=A.v&&z(A,S+1)}se(o)}return!0},ownKeys(l){g(o);var a=Reflect.ownKeys(l).filter(f=>{var p=i.get(f);return p===void 0||p.v!==O});for(var[s,m]of i)m.v!==O&&!(s in l)&&a.push(s);return a},setPrototypeOf(){ln()}})}var Zi,Qi,tr,er;function vi(){if(Zi===void 0){Zi=window,Qi=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;tr=Bt(e,"firstChild").get,er=Bt(e,"nextSibling").get,Ri(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Ri(i)&&(i.__t=void 0)}}function W(t=""){return document.createTextNode(t)}function zt(t){return tr.call(t)}function Q(t){return er.call(t)}function B(t,e){if(!h)return zt(t);var i=zt(_);if(i===null)i=_.appendChild(W());else if(e&&i.nodeType!==ti){var r=W();return i?.before(r),P(r),r}return P(i),i}function Rn(t,e=!1){if(!h){var i=zt(t);return i instanceof Comment&&i.data===""?Q(i):i}if(e&&_?.nodeType!==ti){var r=W();return _?.before(r),P(r),r}return _}function lt(t,e=1,i=!1){let r=h?_:t;for(var o;e--;)o=r,r=Q(r);if(!h)return r;if(i&&r?.nodeType!==ti){var n=W();return r===null?o?.after(n):r.before(n),P(n),n}return P(r),r}function ai(t){t.textContent=""}function ir(){return!1}function zn(t){h&&zt(t)!==null&&ai(t)}let rr=!1;function Tn(){rr||(rr=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function Se(t){var e=y,i=k;Y(null),bt(null);try{return t()}finally{Y(e),bt(i)}}function Sn(t,e,i,r=i){t.addEventListener(e,()=>Se(i));const o=t.__on_r;o?t.__on_r=()=>{o(),r(!0)}:t.__on_r=()=>r(!0),Tn()}function Cn(t){k===null&&(y===null&&rn(),en()),Ht&&tn()}function Mn(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function st(t,e,i){var r=k;r!==null&&(r.f&q)!==0&&(t|=q);var o={ctx:J,deps:null,nodes_start:null,nodes_end:null,f:t|U|nt,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(i)try{de(o),o.f|=ke}catch(l){throw H(o),l}else e!==null&&Gt(o);var n=o;if(i&&n.deps===null&&n.teardown===null&&n.nodes_start===null&&n.first===n.last&&(n.f&Nt)===0&&(n=n.first,(t&ft)!==0&&(t&Vt)!==0&&n!==null&&(n.f|=Vt)),n!==null&&(n.parent=r,r!==null&&Mn(n,r),y!==null&&(y.f&N)!==0&&(t&Et)===0)){var v=y;(v.effects??=[]).push(n)}return o}function Ce(){return y!==null&&!pt}function nr(t){const e=st(Je,null,!1);return G(e,L),e.teardown=t,e}function pe(t){Cn();var e=k.f,i=!y&&(e&ct)!==0&&(e&ke)===0;if(i){var r=J;(r.e??=[]).push(t)}else return or(t)}function or(t){return st(Ke|Xr,t,!1)}function Bn(t){vt.ensure();const e=st(Et|Nt,t,!0);return()=>{H(e)}}function Nn(t){vt.ensure();const e=st(Et|Nt,t,!0);return(i={})=>new Promise(r=>{i.outro?te(e,()=>{H(e),r(void 0)}):(H(e),r(void 0))})}function vr(t){return st(Ke,t,!1)}function On(t){return st(Qe|Nt,t,!0)}function Me(t,e=0){return st(Je|e,t,!0)}function wt(t,e=[],i=[],r=[]){kn(r,e,i,o=>{st(Je,()=>t(...o.map(g)),!0)})}function Be(t,e=0){var i=st(ft|e,t,!0);return i}function tt(t){return st(ct|Nt,t,!0)}function ar(t){var e=t.teardown;if(e!==null){const i=Ht,r=y;dr(!0),Y(null);try{e.call(null)}finally{dr(i),Y(r)}}}function lr(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const o=i.ac;o!==null&&Se(()=>{o.abort(Kt)});var r=i.next;(i.f&Et)!==0?i.parent=null:H(i,e),i=r}}function Ln(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&ct)===0&&H(e),e=i}}function H(t,e=!0){var i=!1;(e||(t.f&Xe)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Pn(t.nodes_start,t.nodes_end),i=!0),lr(t,e&&!i),Oe(t,0),G(t,xt);var r=t.transitions;if(r!==null)for(const n of r)n.stop();ar(t);var o=t.parent;o!==null&&o.first!==null&&sr(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function Pn(t,e){for(;t!==null;){var i=t===e?null:Q(t);t.remove(),t=i}}function sr(t){var e=t.parent,i=t.prev,r=t.next;i!==null&&(i.next=r),r!==null&&(r.prev=i),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=i))}function te(t,e,i=!0){var r=[];li(t,r,!0),pr(r,()=>{i&&H(t),e&&e()})}function pr(t,e){var i=t.length;if(i>0){var r=()=>--i||e();for(var o of t)o.out(r)}else e()}function li(t,e,i){if((t.f&q)===0){if(t.f^=q,t.transitions!==null)for(const v of t.transitions)(v.is_global||i)&&e.push(v);for(var r=t.first;r!==null;){var o=r.next,n=(r.f&Vt)!==0||(r.f&ct)!==0&&(t.f&ft)!==0;li(r,e,n?i:!1),r=o}}}function si(t){br(t,!0)}function br(t,e){if((t.f&q)!==0){t.f^=q,(t.f&L)===0&&(G(t,U),Gt(t));for(var i=t.first;i!==null;){var r=i.next,o=(i.f&Vt)!==0||(i.f&ct)!==0;br(i,o?e:!1),i=r}if(t.transitions!==null)for(const n of t.transitions)(n.is_global||e)&&n.in()}}function mr(t,e){for(var i=t.nodes_start,r=t.nodes_end;i!==null;){var o=i===r?null:Q(i);e.append(i),i=o}}let Tt=!1;function Ne(t){Tt=t}let Ht=!1;function dr(t){Ht=t}let y=null,pt=!1;function Y(t){y=t}let k=null;function bt(t){k=t}let _t=null;function Dn(t){y!==null&&(_t===null?_t=[t]:_t.push(t))}let F=null,V=0,et=null;function Gn(t){et=t}let gr=1,be=0,Ft=be;function fr(t){Ft=t}function cr(){return++gr}function me(t){var e=t.f;if((e&U)!==0)return!0;if(e&N&&(t.f&=~Ot),(e&ut)!==0){var i=t.deps;if(i!==null)for(var r=i.length,o=0;o<r;o++){var n=i[o];if(me(n)&&Vi(n),n.wv>t.wv)return!0}(e&nt)!==0&&X===null&&G(t,L)}return!1}function ur(t,e,i=!0){var r=t.reactions;if(r!==null&&!_t?.includes(t))for(var o=0;o<r.length;o++){var n=r[o];(n.f&N)!==0?ur(n,e,!1):e===n&&(i?G(n,U):(n.f&L)!==0&&G(n,ut),Gt(n))}}function xr(t){var e=F,i=V,r=et,o=y,n=_t,v=J,l=pt,a=Ft,s=t.f;F=null,V=0,et=null,y=(s&(ct|Et))===0?t:null,_t=null,Jt(t.ctx),pt=!1,Ft=++be,t.ac!==null&&(Se(()=>{t.ac.abort(Kt)}),t.ac=null);try{t.f|=Ze;var m=t.fn,f=m(),p=t.deps;if(F!==null){var d;if(Oe(t,V),p!==null&&V>0)for(p.length=V+F.length,d=0;d<F.length;d++)p[V+d]=F[d];else t.deps=p=F;if(Tt&&Ce()&&(t.f&nt)!==0)for(d=V;d<p.length;d++)(p[d].reactions??=[]).push(t)}else p!==null&&V<p.length&&(Oe(t,V),p.length=V);if(Pi()&&et!==null&&!pt&&p!==null&&(t.f&(N|ut|U))===0)for(d=0;d<et.length;d++)ur(et[d],t);return o!==null&&o!==t&&(be++,et!==null&&(r===null?r=et:r.push(...et))),(t.f&At)!==0&&(t.f^=At),f}catch(x){return Gi(x)}finally{t.f^=Ze,F=e,V=i,et=r,y=o,_t=n,Jt(v),pt=l,Ft=a}}function In(t,e){let i=e.reactions;if(i!==null){var r=qr.call(i,t);if(r!==-1){var o=i.length-1;o===0?i=e.reactions=null:(i[r]=i[o],i.pop())}}i===null&&(e.f&N)!==0&&(F===null||!F.includes(e))&&(G(e,ut),(e.f&nt)!==0&&(e.f^=nt,e.f&=~Ot),Wi(e),Oe(e,0))}function Oe(t,e){var i=t.deps;if(i!==null)for(var r=e;r<i.length;r++)In(t,i[r])}function de(t){var e=t.f;if((e&xt)===0){G(t,L);var i=k,r=Tt;k=t,Tt=!0;try{(e&ft)!==0?Ln(t):lr(t),ar(t);var o=xr(t);t.teardown=typeof o=="function"?o:null,t.wv=gr;var n;We&&dn&&(t.f&U)!==0&&t.deps}finally{Tt=r,k=i}}}async function Hn(){await Promise.resolve(),Dt()}function g(t){var e=t.f,i=(e&N)!==0;if(y!==null&&!pt){var r=k!==null&&(k.f&xt)!==0;if(!r&&!_t?.includes(t)){var o=y.deps;if((y.f&Ze)!==0)t.rv<be&&(t.rv=be,F===null&&o!==null&&o[V]===t?V++:F===null?F=[t]:F.includes(t)||F.push(t));else{(y.deps??=[]).push(t);var n=t.reactions;n===null?t.reactions=[y]:n.includes(y)||n.push(y)}}}if(Ht){if(Rt.has(t))return Rt.get(t);if(i){var v=t,l=v.v;return((v.f&L)===0&&v.reactions!==null||yr(v))&&(l=ni(v)),Rt.set(v,l),l}}else i&&!X?.has(t)&&(v=t,me(v)&&Vi(v),Tt&&Ce()&&(v.f&nt)===0&&hr(v));if(X?.has(t))return X.get(t);if((t.f&At)!==0)throw t.v;return t.v}function hr(t){if(t.deps!==null){t.f^=nt;for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&N)!==0&&(e.f&nt)===0&&hr(e)}}function yr(t){if(t.v===O)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Rt.has(e)||(e.f&N)!==0&&yr(e))return!0;return!1}function Le(t){var e=pt;try{return pt=!0,t()}finally{pt=e}}const Fn=-7169;function G(t,e){t.f=t.f&Fn|e}const wr=new Set,pi=new Set;function Un(t,e,i,r={}){function o(n){if(r.capture||ge.call(e,n),!n.cancelBubble)return Se(()=>i?.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Xt(()=>{e.addEventListener(t,o,r)}):e.addEventListener(t,o,r),o}function Yn(t,e,i,r,o){var n={capture:r,passive:o},v=Un(t,e,i,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&nr(()=>{e.removeEventListener(t,v,n)})}function qn(t){for(var e=0;e<t.length;e++)wr.add(t[e]);for(var i of pi)i(t)}let _r=null;function ge(t){var e=this,i=e.ownerDocument,r=t.type,o=t.composedPath?.()||[],n=o[0]||t.target;_r=t;var v=0,l=_r===t&&t.__root;if(l){var a=o.indexOf(l);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var s=o.indexOf(e);if(s===-1)return;a<=s&&(v=a)}if(n=o[v]||t.target,n!==e){we(t,"currentTarget",{configurable:!0,get(){return n||i}});var m=y,f=k;Y(null),bt(null);try{for(var p,d=[];n!==null;){var x=n.assignedSlot||n.parentNode||n.host||null;try{var E=n["__"+r];E!=null&&(!n.disabled||t.target===n)&&E.call(n,t)}catch(c){p?d.push(c):p=c}if(t.cancelBubble||x===e||x===null)break;n=x}if(p){for(let c of d)queueMicrotask(()=>{throw c});throw p}}finally{t.__root=e,delete t.currentTarget,Y(m),bt(f)}}}function Wn(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function fe(t,e){var i=k;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function mt(t,e){var i=(e&Ur)!==0,r,o=!t.startsWith("<!>");return()=>{if(h)return fe(_,null),_;r===void 0&&(r=Wn(o?t:"<!>"+t),r=zt(r));var n=i||Qi?document.importNode(r,!0):r.cloneNode(!0);return fe(n,n),n}}function Vn(){if(h)return fe(_,null),_;var t=document.createDocumentFragment(),e=document.createComment(""),i=W();return t.append(e,i),fe(e,i),t}function it(t,e){if(h){var i=k;((i.f&ke)===0||i.nodes_end===null)&&(i.nodes_end=_),je();return}t!==null&&t.before(e)}const Kn=["touchstart","touchmove"];function Jn(t){return Kn.includes(t)}function Pe(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function kr(t,e){return $r(t,e)}function Xn(t,e){vi(),e.intro=e.intro??!1;const i=e.target,r=h,o=_;try{for(var n=zt(i);n&&(n.nodeType!==Lt||n.data!==ji);)n=Q(n);if(!n)throw Wt;ot(!0),P(n);const v=$r(t,{...e,anchor:n});return ot(!1),v}catch(v){if(v instanceof Error&&v.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw v;return v!==Wt&&console.warn("Failed to hydrate: ",v),e.recover===!1&&on(),vi(),ai(i),ot(!1),kr(t,e)}finally{ot(r),
|
|
3
|
-
\r\f \v\uFEFF`];function io(t,e,i){var r=t==null?"":""+t;if(e&&(r=r?r+" "+e:e),i){for(var o in i)if(i[o])r=r?r+" "+o:o;else if(r.length)for(var n=o.length,v=0;(v=r.indexOf(o,v))>=0;){var l=v+n;(v===0||jr.includes(r[v-1]))&&(l===r.length||jr.includes(r[l]))?r=(v===0?"":r.substring(0,v))+r.substring(l+1):v=l}}return r===""?null:r}function ro(t,e){return t==null?null:String(t)}function re(t,e,i,r,o,n){var v=t.__className;if(h||v!==i||v===void 0){var l=io(i,r,n);(!h||l!==t.getAttribute("class"))&&(l==null?t.removeAttribute("class"):t.className=l),t.__className=i}else if(n&&o!==n)for(var a in n){var s=!!n[a];(o==null||s!==!!o[a])&&t.classList.toggle(a,s)}return n}function De(t,e,i,r){var o=t.__style;if(h||o!==e){var n=ro(e);(!h||n!==t.getAttribute("style"))&&(n==null?t.removeAttribute("style"):t.style.cssText=n),t.__style=e}return r}const no=Symbol("is custom element"),oo=Symbol("is html");function ne(t,e,i,r){var o=vo(t);h&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||o[e]!==(o[e]=i)&&(e==="loading"&&(t[Zr]=i),i==null?t.removeAttribute(e):typeof i!="string"&&ao(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function vo(t){return t.__attributes??={[no]:t.nodeName.includes("-"),[oo]:t.namespaceURI===Yr}}var Er=new Map;function ao(t){var e=t.getAttribute("is")||t.nodeName,i=Er.get(e);if(i)return i;Er.set(e,i=[]);for(var r,o=t,n=Element.prototype;n!==o;){r=Wr(o);for(var v in r)r[v].set&&i.push(v);o=Ai(o)}return i}function lo(t,e,i=e){var r=new WeakSet;Sn(t,"input",async o=>{var n=o?t.defaultValue:t.value;if(n=mi(t)?di(n):n,i(n),R!==null&&r.add(R),await Hn(),n!==(n=e())){var v=t.selectionStart,l=t.selectionEnd,a=t.value.length;if(t.value=n??"",l!==null){var s=t.value.length;v===l&&l===a&&s>a?(t.selectionStart=s,t.selectionEnd=s):(t.selectionStart=v,t.selectionEnd=Math.min(l,s))}}}),(h&&t.defaultValue!==t.value||Le(e)==null&&t.value)&&(i(mi(t)?di(t.value):t.value),R!==null&&r.add(R)),Me(()=>{var o=e();if(t===document.activeElement){var n=Re??R;if(r.has(n))return}mi(t)&&o===di(t.value)||t.type==="date"&&!o&&!t.value||o!==t.value&&(t.value=o??"")})}function mi(t){var e=t.type;return e==="number"||e==="range"}function di(t){return t===""?null:+t}function Ar(t,e){return t===e||t?.[ae]===e}function Rr(t={},e,i,r){return vr(()=>{var o,n;return Me(()=>{o=n,n=[],Le(()=>{t!==i(...n)&&(e(t,...n),o&&Ar(i(...o),t)&&e(null,...o))})}),()=>{Xt(()=>{n&&Ar(i(...n),t)&&e(null,...n)})}}),t}let Ge=!1;function so(t){var e=Ge;try{return Ge=!1,[t(),Ge]}finally{Ge=e}}function ce(t,e,i,r){var o=(i&Hr)!==0,n=(i&Fr)!==0,v=r,l=!0,a=()=>(l&&(l=!1,v=n?Le(r):r),v),s;if(o){var m=ae in t||Si in t;s=Bt(t,e)?.set??(m&&e in t?S=>t[e]=S:void 0)}var f,p=!1;o?[f,p]=so(()=>t[e]):f=t[e],f===void 0&&r!==void 0&&(f=a(),s&&(vn(),s(f)));var d;if(d=()=>{var S=t[e];return S===void 0?a():(l=!0,S)},(i&Ir)===0)return d;if(s){var x=t.$$legacy;return(function(S,K){return arguments.length>0?((!K||x||p)&&s(K?d():S),S):d()})}var E=!1,c=((i&Gr)!==0?ri:qi)(()=>(E=!1,d()));o&&g(c);var A=k;return(function(S,K){if(arguments.length>0){const T=K?g(c):o?yt(S):S;return z(c,T),E=!0,v!==void 0&&(v=T),S}return Ht&&E||(A.f&xt)!==0?c.v:g(c)})}function po(t){return new bo(t)}class bo{#e;#t;constructor(e){var i=new Map,r=(n,v)=>{var l=Ji(v,!1,!1);return i.set(n,l),l};const o=new Proxy({...e.props||{},$$events:{}},{get(n,v){return g(i.get(v)??r(v,Reflect.get(n,v)))},has(n,v){return v===Si?!0:(g(i.get(v)??r(v,Reflect.get(n,v))),Reflect.has(n,v))},set(n,v,l){return z(i.get(v)??r(v,l),l),Reflect.set(n,v,l)}});this.#t=(e.hydrate?Xn:kr)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Dt(),this.#e=o.$$events;for(const n of Object.keys(this.#t))n==="$set"||n==="$destroy"||n==="$on"||we(this,n,{get(){return this.#t[n]},set(v){this.#t[n]=v},enumerable:!0});this.#t.$set=n=>{Object.assign(o,n)},this.#t.$destroy=()=>{Zn(this.#t)}}$set(e){this.#t.$set(e)}$on(e,i){this.#e[e]=this.#e[e]||[];const r=(...o)=>i.call(this,...o);return this.#e[e].push(r),()=>{this.#e[e]=this.#e[e].filter(o=>o!==r)}}$destroy(){this.#t.$destroy()}}let zr;typeof HTMLElement=="function"&&(zr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return o=>{const n=document.createElement("slot");r!=="default"&&(n.name=r),it(o,n)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},i=mo(this);for(const r of this.$$s)r in i&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const o=this.$$g_p(r.name);o in this.$$d||(this.$$d[o]=Ie(o,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=po({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Bn(()=>{Me(()=>{this.$$r=!0;for(const r of ye(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const o=Ie(r,this.$$d[r],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,o)}this.$$r=!1})});for(const r in this.$$l)for(const o of this.$$l[r]){const n=this.$$c.$on(r,o);this.$$l_u.set(o,n)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ie(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return ye(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function Ie(t,e,i,r){const o=i[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!i[t])return e;if(r==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function mo(t){const e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function go(t,e,i,r,o,n){let v=class extends zr{constructor(){super(t,i,o),this.$$p_d=e}static get observedAttributes(){return ye(e).map(l=>(e[l].attribute||l).toLowerCase())}};return ye(e).forEach(l=>{we(v.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=Ie(l,a,e),this.$$d[l]=a;var s=this.$$c;if(s){var m=Bt(s,l)?.get;m?s[l]=a:s.$set({[l]:a})}}})}),r.forEach(l=>{we(v.prototype,l,{get(){return this.$$c?.[l]}})}),t.element=v,v}var Ut={},Tr;function fo(){if(Tr)return Ut;Tr=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.LanguageTranslator=void 0,Ut.getChildStyleToPass=t,Ut.addComponent=e;function t(r,o){var n,v,l="";try{if(r&&o?.length&&(!((n=Object.keys(r))===null||n===void 0)&&n.length)&&(!((v=o?.filter(function(p){return Object.keys(r).includes(p.name)}))===null||v===void 0)&&v.length))for(var a=function(p){var d=o?.filter(function(x){return x.name===p&&x.defaultValue!==r[p]});d&&(l+="".concat(p,":").concat(r[p],";"))},s=0,m=Object.keys(r);s<m.length;s++){var f=m[s];a(f)}}catch(p){console.error("error getting child style to pass",p)}finally{return l}}function e(r){var o,n=((o=r?.repoName.split("/"))===null||o===void 0?void 0:o[1])||r?.repoName;if(!n)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var v=r?.iifePath||"main.iife.js";if(!document.getElementById(n+"-script"))try{var l=document.createElement("script");if(l.id=n+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(v),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var a=n.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(n.replace(a+"-",""),"/").concat(v)}document.head.appendChild(l)}catch(s){console.warn(s)}}var i=(function(){function r(o){if(this.lang="",!o?.dictionary)throw new Error("no dictionary provided");this.dictionary=o.dictionary,this.setLang(o?.lang)}return r.prototype.setLang=function(o){o||(o=r.getDefaultLang()),this.lang=o},r.prototype.translateWord=function(o,n){return r.getDictionaryWord(o,this.dictionary,n||this.lang)},r.prototype.translateDate=function(o,n,v){return r.formatDate(o,n,v||this.lang)},r.getDefaultLang=function(){var o,n,v,l="en";return navigator?.languages&&(!((v=(n=(o=navigator.languages[0])===null||o===void 0?void 0:o.split("-")[0])===null||n===void 0?void 0:n.toLowerCase())===null||v===void 0)&&v.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},r.getDictionaryWord=function(o,n,v){var l;if(!o)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(v&&(!((l=n[v])===null||l===void 0)&&l[o]))return n[v][o];var a="",s=r.getDefaultLang();if(!v||s!==v){var m=n?.[s];m?.[o]&&(a=m[o])}return a},r.formatDate=function(o,n,v){if(!o)throw new Error("no date provided");if(typeof o.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(v||r.getDefaultLang(),n);return l.format(o)},r})();return Ut.LanguageTranslator=i,Ut}fo();var co=mt('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1p3vbiv"/>'),uo=mt('<img class="file-image svelte-1p3vbiv"/>'),xo=mt("<i></i>"),ho=mt('<div class="col-6 col-md-4 col-lg-3 svelte-1p3vbiv"><div class="file-card svelte-1p3vbiv"><div class="file-preview svelte-1p3vbiv"><!></div> <div class="file-details svelte-1p3vbiv"><div class="file-name svelte-1p3vbiv"> </div> <div class="file-meta svelte-1p3vbiv"><span class="file-size svelte-1p3vbiv"> </span></div></div> <button type="button" class="btn btn-sm btn-outline-danger remove-file-btn svelte-1p3vbiv" aria-label="Remove file" title="Remove file"><i class="bi bi-x svelte-1p3vbiv"></i></button></div></div>'),yo=mt('<div id="files-display" class="svelte-1p3vbiv"><div class="row g-2 svelte-1p3vbiv"></div></div>'),wo=mt('<button id="maximize-button" type="button"><i></i></button>'),_o=mt('<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger svelte-1p3vbiv"> <span class="visually-hidden svelte-1p3vbiv">selected files</span></span>'),ko=mt('<label id="upload-file" class="btn file-button btn-sm position-relative svelte-1p3vbiv" style="--tag-color: var(--bs-primary, #007bff)"><input type="file" class="svelte-1p3vbiv"/> <i class="bi bi-paperclip svelte-1p3vbiv"></i> <!></label>'),$o=mt('<button type="button"><i></i> </button>'),jo=mt('<div id="chat-container" class="svelte-1p3vbiv"><div id="chat-box" class="svelte-1p3vbiv"><!> <div id="textarea-container" class="svelte-1p3vbiv"><textarea id="send-message-text" placeholder="Type your message..."></textarea> <!></div> <div id="buttons-container" class="svelte-1p3vbiv"><div id="left-buttons" class="svelte-1p3vbiv"><!> <!></div> <div id="right-buttons" class="svelte-1p3vbiv"><button type="button" id="send-message-button" aria-label="Send message" class="svelte-1p3vbiv"><i class="bi bi-send-fill svelte-1p3vbiv"></i></button></div></div></div></div>');const Eo={hash:"svelte-1p3vbiv",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
|
1
|
+
(function(wi){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const _i=1,ki=2,$i=4,Lr=8,Dr=16,Gr=1,Hr=4,Ir=8,Fr=16,Ur=2,ji="[",he="[!",qe="]",Wt={},O=Symbol(),Yr="http://www.w3.org/1999/xhtml",We=!1;var Ei=Array.isArray,qr=Array.prototype.indexOf,Ve=Array.from,ye=Object.keys,we=Object.defineProperty,Bt=Object.getOwnPropertyDescriptor,Wr=Object.getOwnPropertyDescriptors,Vr=Object.prototype,Kr=Array.prototype,Ai=Object.getPrototypeOf,Ri=Object.isExtensible;function Jr(t){for(var e=0;e<t.length;e++)t[e]()}function zi(){var t,e,i=new Promise((r,o)=>{t=r,e=o});return{promise:i,resolve:t,reject:e}}const N=2,Ke=4,Je=8,ft=16,ct=32,jt=64,_e=128,nt=512,P=1024,U=2048,ut=4096,q=8192,xt=16384,ke=32768,Vt=65536,Ti=1<<17,Xe=1<<18,Nt=1<<19,Xr=1<<20,Ot=32768,Ze=1<<21,Qe=1<<22,Et=1<<23,ae=Symbol("$state"),Si=Symbol("legacy props"),Zr=Symbol(""),Kt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ti=3,Pt=8;function Qr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function tn(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function en(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function rn(t){throw new Error("https://svelte.dev/e/effect_orphan")}function nn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function on(){throw new Error("https://svelte.dev/e/hydration_failed")}function vn(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function an(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ln(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function sn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function pn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function $e(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function bn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let h=!1;function ot(t){h=t}let _;function L(t){if(t===null)throw $e(),Wt;return _=t}function je(){return L(Q(_))}function M(t){if(h){if(Q(_)!==null)throw $e(),Wt;_=t}}function Ci(t=1){if(h){for(var e=t,i=_;e--;)i=Q(i);_=i}}function Ee(t=!0){for(var e=0,i=_;;){if(i.nodeType===Pt){var r=i.data;if(r===qe){if(e===0)return i;e-=1}else(r===ji||r===he)&&(e+=1)}var o=Q(i);t&&i.remove(),i=o}}function Mi(t){if(!t||t.nodeType!==Pt)throw $e(),Wt;return t.data}function Bi(t){return t===this.v}function mn(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Ni(t){return!mn(t,this.v)}let dn=!1,J=null;function Jt(t){J=t}function Oi(t,e=!1,i){J={p:J,i:!1,c:null,e:null,s:t,x:null,l:null}}function Pi(t){var e=J,i=e.e;if(i!==null){e.e=null;for(var r of i)or(r)}return t!==void 0&&(e.x=t),e.i=!0,J=e.p,t??{}}function Li(){return!0}let Lt=[];function Di(){var t=Lt;Lt=[],Jr(t)}function Xt(t){if(Lt.length===0&&!le){var e=Lt;queueMicrotask(()=>{e===Lt&&Di()})}Lt.push(t)}function gn(){for(;Lt.length>0;)Di()}function Gi(t){var e=k;if(e===null)return y.f|=Et,t;if((e.f&ke)===0){if((e.f&_e)===0)throw t;e.b.error(t)}else Zt(t,e)}function Zt(t,e){for(;e!==null;){if((e.f&_e)!==0)try{e.b.error(t);return}catch(i){t=i}e=e.parent}throw t}const Ae=new Set;let R=null,Re=null,X=null,Z=[],ze=null,ei=!1,le=!1;class vt{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#i=0;#r=0;#l=null;#o=[];#n=[];skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(e){Z=[],Re=null,this.apply();var i={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of e)this.#v(r,i);this.is_fork||this.#p(),this.is_deferred()?(this.#a(i.effects),this.#a(i.render_effects),this.#a(i.block_effects)):(Re=this,R=null,Ii(i.render_effects),Ii(i.effects),Re=null,this.#l?.resolve()),X=null}#v(e,i){e.f^=P;for(var r=e.first;r!==null;){var o=r.f,n=(o&(ct|jt))!==0,v=n&&(o&P)!==0,l=v||(o&q)!==0||this.skipped_effects.has(r);if((r.f&_e)!==0&&r.b?.is_pending()&&(i={parent:i,effect:r,effects:[],render_effects:[],block_effects:[]}),!l&&r.fn!==null){n?r.f^=P:(o&Ke)!==0?i.effects.push(r):me(r)&&((r.f&ft)!==0&&i.block_effects.push(r),de(r));var a=r.first;if(a!==null){r=a;continue}}var s=r.parent;for(r=r.next;r===null&&s!==null;)s===i.effect&&(this.#a(i.effects),this.#a(i.render_effects),this.#a(i.block_effects),i=i.parent),r=s.next,s=s.parent}}#a(e){for(const i of e)((i.f&U)!==0?this.#o:this.#n).push(i),this.#s(i.deps),D(i,P)}#s(e){if(e!==null)for(const i of e)(i.f&N)===0||(i.f&Ot)===0||(i.f^=Ot,this.#s(i.deps))}capture(e,i){this.previous.has(e)||this.previous.set(e,i),(e.f&Et)===0&&(this.current.set(e,e.v),X?.set(e,e.v))}activate(){R=this,this.apply()}deactivate(){R===this&&(R=null,X=null)}flush(){if(this.activate(),Z.length>0){if(Hi(),R!==null&&R!==this)return}else this.#i===0&&this.process([]);this.deactivate()}discard(){for(const e of this.#t)e(this);this.#t.clear()}#p(){if(this.#r===0){for(const e of this.#e)e();this.#e.clear()}this.#i===0&&this.#b()}#b(){if(Ae.size>1){this.previous.clear();var e=X,i=!0,r={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of Ae){if(n===this){i=!1;continue}const v=[];for(const[a,s]of this.current){if(n.current.has(a))if(i&&s!==n.current.get(a))n.current.set(a,s);else continue;v.push(a)}if(v.length===0)continue;const l=[...n.current.keys()].filter(a=>!this.current.has(a));if(l.length>0){var o=Z;Z=[];const a=new Set,s=new Map;for(const m of v)Fi(m,l,a,s);if(Z.length>0){R=n,n.apply();for(const m of Z)n.#v(m,r);n.deactivate()}Z=o}}R=null,X=e}this.committed=!0,Ae.delete(this)}increment(e){this.#i+=1,e&&(this.#r+=1)}decrement(e){this.#i-=1,e&&(this.#r-=1),this.revive()}revive(){for(const e of this.#o)D(e,U),Gt(e);for(const e of this.#n)D(e,ut),Gt(e);this.#o=[],this.#n=[],this.flush()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#l??=zi()).promise}static ensure(){if(R===null){const e=R=new vt;Ae.add(R),le||vt.enqueue(()=>{R===e&&e.flush()})}return R}static enqueue(e){Xt(e)}apply(){}}function Dt(t){var e=le;le=!0;try{for(var i;;){if(gn(),Z.length===0&&(R?.flush(),Z.length===0))return ze=null,i;Hi()}}finally{le=e}}function Hi(){var t=Tt;ei=!0;var e=null;try{var i=0;for(Ne(!0);Z.length>0;){var r=vt.ensure();if(i++>1e3){var o,n;fn()}r.process(Z),At.clear()}}finally{ei=!1,Ne(t),ze=null}}function fn(){try{nn()}catch(t){Zt(t,ze)}}let ht=null;function Ii(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var r=t[i++];if((r.f&(xt|q))===0&&me(r)&&(ht=new Set,de(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?sr(r):r.fn=null),ht?.size>0)){At.clear();for(const o of ht){if((o.f&(xt|q))!==0)continue;const n=[o];let v=o.parent;for(;v!==null;)ht.has(v)&&(ht.delete(v),n.push(v)),v=v.parent;for(let l=n.length-1;l>=0;l--){const a=n[l];(a.f&(xt|q))===0&&de(a)}}ht.clear()}}ht=null}}function Fi(t,e,i,r){if(!i.has(t)&&(i.add(t),t.reactions!==null))for(const o of t.reactions){const n=o.f;(n&N)!==0?Fi(o,e,i,r):(n&(Qe|ft))!==0&&(n&U)===0&&Ui(o,e,r)&&(D(o,U),Gt(o))}}function Ui(t,e,i){const r=i.get(t);if(r!==void 0)return r;if(t.deps!==null)for(const o of t.deps){if(e.includes(o))return!0;if((o.f&N)!==0&&Ui(o,e,i))return i.set(o,!0),!0}return i.set(t,!1),!1}function Gt(t){for(var e=ze=t;e.parent!==null;){e=e.parent;var i=e.f;if(ei&&e===k&&(i&ft)!==0&&(i&Xe)===0)return;if((i&(jt|ct))!==0){if((i&P)===0)return;e.f^=P}}Z.push(e)}function cn(t){let e=0,i=Ht(0),r;return()=>{Ce()&&(g(i),Me(()=>(e===0&&(r=Pe(()=>t(()=>se(i)))),e+=1,()=>{Xt(()=>{e-=1,e===0&&(r?.(),r=void 0,se(i))})})))}}var un=Vt|Nt|_e;function xn(t,e,i){new hn(t,e,i)}class hn{parent;#e=!1;#t;#i=h?_:null;#r;#l;#o;#n=null;#v=null;#a=null;#s=null;#p=null;#b=0;#m=0;#g=!1;#d=null;#h=cn(()=>(this.#d=Ht(this.#b),()=>{this.#d=null}));constructor(e,i,r){this.#t=e,this.#r=i,this.#l=r,this.parent=k.b,this.#e=!!this.#r.pending,this.#o=Be(()=>{if(k.b=this,h){const n=this.#i;je(),n.nodeType===Pt&&n.data===he?this.#w():this.#y()}else{var o=this.#u();try{this.#n=tt(()=>r(o))}catch(n){this.error(n)}this.#m>0?this.#c():this.#e=!1}return()=>{this.#p?.remove()}},un),h&&(this.#t=_)}#y(){try{this.#n=tt(()=>this.#l(this.#t))}catch(e){this.error(e)}this.#e=!1}#w(){const e=this.#r.pending;e&&(this.#v=tt(()=>e(this.#t)),vt.enqueue(()=>{var i=this.#u();this.#n=this.#f(()=>(vt.ensure(),tt(()=>this.#l(i)))),this.#m>0?this.#c():(te(this.#v,()=>{this.#v=null}),this.#e=!1)}))}#u(){var e=this.#t;return this.#e&&(this.#p=W(),this.#t.before(this.#p),e=this.#p),e}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#f(e){var i=k,r=y,o=J;bt(this.#o),Y(this.#o),Jt(this.#o.ctx);try{return e()}catch(n){return Gi(n),null}finally{bt(i),Y(r),Jt(o)}}#c(){const e=this.#r.pending;this.#n!==null&&(this.#s=document.createDocumentFragment(),this.#s.append(this.#p),mr(this.#n,this.#s)),this.#v===null&&(this.#v=tt(()=>e(this.#t)))}#x(e){if(!this.has_pending_snippet()){this.parent&&this.parent.#x(e);return}this.#m+=e,this.#m===0&&(this.#e=!1,this.#v&&te(this.#v,()=>{this.#v=null}),this.#s&&(this.#t.before(this.#s),this.#s=null))}update_pending_count(e){this.#x(e),this.#b+=e,this.#d&&Qt(this.#d,this.#b)}get_effect_pending(){return this.#h(),g(this.#d)}error(e){var i=this.#r.onerror;let r=this.#r.failed;if(this.#g||!i&&!r)throw e;this.#n&&(I(this.#n),this.#n=null),this.#v&&(I(this.#v),this.#v=null),this.#a&&(I(this.#a),this.#a=null),h&&(L(this.#i),Ci(),L(Ee()));var o=!1,n=!1;const v=()=>{if(o){bn();return}o=!0,n&&pn(),vt.ensure(),this.#b=0,this.#a!==null&&te(this.#a,()=>{this.#a=null}),this.#e=this.has_pending_snippet(),this.#n=this.#f(()=>(this.#g=!1,tt(()=>this.#l(this.#t)))),this.#m>0?this.#c():this.#e=!1};var l=y;try{Y(null),n=!0,i?.(e,v),n=!1}catch(a){Zt(a,this.#o&&this.#o.parent)}finally{Y(l)}r&&Xt(()=>{this.#a=this.#f(()=>{vt.ensure(),this.#g=!0;try{return tt(()=>{r(this.#t,()=>e,()=>v)})}catch(a){return Zt(a,this.#o.parent),null}finally{this.#g=!1}})})}}function yn(t,e,i){for(var r=[],o=e.length,n=0;n<o;n++)li(e[n].e,r,!0);pr(r,()=>{var v=r.length===0&&i!==null;if(v){var l=i,a=l.parentNode;ai(a),a.append(l),t.items.clear(),at(t,e[0].prev,e[o-1].next)}for(var s=0;s<o;s++){var m=e[s];v||(t.items.delete(m.k),at(t,m.prev,m.next)),I(m.e,!v)}t.first===e[0]&&(t.first=e[0].prev)})}function Yi(t,e,i,r,o,n=null){var v=t,l=new Map,a=null,s=(e&$i)!==0,m=(e&_i)!==0,f=(e&ki)!==0;if(s){var p=t;v=h?L(zt(p)):p.appendChild(W())}h&&je();var d=null,x=qi(()=>{var T=i();return Ei(T)?T:T==null?[]:Ve(T)}),E,c=!0;function A(){wn(K,E,v,e,r),d!==null&&(E.length===0?(d.fragment?(v.before(d.fragment),d.fragment=null):si(d.effect),S.first=d.effect):te(d.effect,()=>{d=null}))}var S=Be(()=>{E=g(x);var T=E.length;let St=!1;if(h){var Yt=Mi(v)===he;Yt!==(T===0)&&(v=Ee(),L(v),ot(!1),St=!0)}for(var dt=new Set,gt=R,_t=null,Ie=ir(),kt=0;kt<T;kt+=1){h&&_.nodeType===Pt&&_.data===qe&&(v=_,St=!0,ot(!1));var ue=E[kt],oe=r(ue,kt),G=c?null:l.get(oe);G?(m&&Qt(G.v,ue),f?Qt(G.i,kt):G.i=kt,Ie&>.skipped_effects.delete(G.e)):(G=_n(c?v:null,_t,ue,oe,kt,o,e,i),c&&(G.o=!0,_t===null?a=G:_t.next=G,_t=G),l.set(oe,G)),dt.add(oe)}if(T===0&&n&&!d)if(c)d={fragment:null,effect:tt(()=>n(v))};else{var Fe=document.createDocumentFragment(),qt=W();Fe.append(qt),d={fragment:Fe,effect:tt(()=>n(qt))}}if(h&&T>0&&L(Ee()),!c)if(Ie){for(const[xe,Ue]of l)dt.has(xe)||gt.skipped_effects.add(Ue.e);gt.oncommit(A),gt.ondiscard(()=>{})}else A();St&&ot(!0),g(x)}),K={effect:S,items:l,first:a};c=!1,h&&(v=_)}function wn(t,e,i,r,o){var n=(r&Lr)!==0,v=e.length,l=t.items,a=t.first,s,m=null,f,p=[],d=[],x,E,c,A;if(n)for(A=0;A<v;A+=1)x=e[A],E=o(x,A),c=l.get(E),c.a?.measure(),(f??=new Set).add(c);for(A=0;A<v;A+=1){if(x=e[A],E=o(x,A),c=l.get(E),t.first??=c,!c.o){c.o=!0;var S=m?m.next:a;at(t,m,c),at(t,c,S),ii(c,S,i),m=c,p=[],d=[],a=m.next;continue}if((c.e.f&q)!==0&&(si(c.e),n&&(c.a?.unfix(),(f??=new Set).delete(c))),c!==a){if(s!==void 0&&s.has(c)){if(p.length<d.length){var K=d[0],T;m=K.prev;var St=p[0],Yt=p[p.length-1];for(T=0;T<p.length;T+=1)ii(p[T],K,i);for(T=0;T<d.length;T+=1)s.delete(d[T]);at(t,St.prev,Yt.next),at(t,m,St),at(t,Yt,K),a=K,m=Yt,A-=1,p=[],d=[]}else s.delete(c),ii(c,a,i),at(t,c.prev,c.next),at(t,c,m===null?t.first:m.next),at(t,m,c),m=c;continue}for(p=[],d=[];a!==null&&a.k!==E;)(a.e.f&q)===0&&(s??=new Set).add(a),d.push(a),a=a.next;if(a===null)continue;c=a}p.push(c),m=c,a=c.next}if(a!==null||s!==void 0){for(var dt=s===void 0?[]:Ve(s);a!==null;)(a.e.f&q)===0&&dt.push(a),a=a.next;var gt=dt.length;if(gt>0){var _t=(r&$i)!==0&&v===0?i:null;if(n){for(A=0;A<gt;A+=1)dt[A].a?.measure();for(A=0;A<gt;A+=1)dt[A].a?.fix()}yn(t,dt,_t)}}n&&Xt(()=>{if(f!==void 0)for(c of f)c.a?.apply()})}function _n(t,e,i,r,o,n,v,l){var a=(v&_i)!==0,s=(v&Dr)===0,m=a?s?Ji(i,!1,!1):Ht(i):i,f=(v&ki)===0?o:Ht(o),p={i:f,v:m,k:r,a:null,e:null,o:!1,prev:e,next:null};try{if(t===null){var d=document.createDocumentFragment();d.append(t=W())}return p.e=tt(()=>n(t,m,f,l)),e!==null&&(e.next=p),p}finally{}}function ii(t,e,i){for(var r=t.next?t.next.e.nodes_start:i,o=e?e.e.nodes_start:i,n=t.e.nodes_start;n!==null&&n!==r;){var v=Q(n);o.before(n),n=v}}function at(t,e,i){e===null?(t.first=i,t.effect.first=i&&i.e):(e.e.next&&(e.e.next.prev=null),e.next=i,e.e.next=i&&i.e),i===null?t.effect.last=e&&e.e:(i.e.prev&&(i.e.prev.next=null),i.prev=e,i.e.prev=e&&e.e)}function kn(t,e,i,r){const o=ri;if(i.length===0&&t.length===0){r(e.map(o));return}var n=R,v=k,l=$n();function a(){Promise.all(i.map(s=>jn(s))).then(s=>{l();try{r([...e.map(o),...s])}catch(m){(v.f&xt)===0&&Zt(m,v)}n?.deactivate(),Te()}).catch(s=>{Zt(s,v)})}t.length>0?Promise.all(t).then(()=>{l();try{return a()}finally{n?.deactivate(),Te()}}):a()}function $n(){var t=k,e=y,i=J,r=R;return function(n=!0){bt(t),Y(e),Jt(i),n&&r?.activate()}}function Te(){bt(null),Y(null),Jt(null)}function ri(t){var e=N|U,i=y!==null&&(y.f&N)!==0?y:null;return k!==null&&(k.f|=Nt),{ctx:J,deps:null,effects:null,equals:Bi,f:e,fn:t,reactions:null,rv:0,v:O,wv:0,parent:i??k,ac:null}}function jn(t,e){let i=k;i===null&&Qr();var r=i.b,o=void 0,n=Ht(O),v=!y,l=new Map;return On(()=>{var a=zi();o=a.promise;try{Promise.resolve(t()).then(a.resolve,a.reject).then(()=>{s===R&&s.committed&&s.deactivate(),Te()})}catch(p){a.reject(p),Te()}var s=R;if(v){var m=!r.is_pending();r.update_pending_count(1),s.increment(m),l.get(s)?.reject(Kt),l.delete(s),l.set(s,a)}const f=(p,d=void 0)=>{if(s.activate(),d)d!==Kt&&(n.f|=Et,Qt(n,d));else{(n.f&Et)!==0&&(n.f^=Et),Qt(n,p);for(const[x,E]of l){if(l.delete(x),x===s)break;E.reject(Kt)}}v&&(r.update_pending_count(-1),s.decrement(m))};a.promise.then(f,p=>f(null,p||"unknown"))}),nr(()=>{for(const a of l.values())a.reject(Kt)}),new Promise(a=>{function s(m){function f(){m===o?a(n):s(o)}m.then(f,f)}s(o)})}function qi(t){const e=ri(t);return e.equals=Ni,e}function Wi(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)I(e[i])}}function En(t){for(var e=t.parent;e!==null;){if((e.f&N)===0)return(e.f&xt)===0?e:null;e=e.parent}return null}function ni(t){var e,i=k;bt(En(t));try{t.f&=~Ot,Wi(t),e=xr(t)}finally{bt(i)}return e}function Vi(t){var e=ni(t);if(t.equals(e)||(R?.is_fork||(t.v=e),t.wv=cr()),!It)if(X!==null)Ce()&&X.set(t,e);else{var i=(t.f&nt)===0?ut:P;D(t,i)}}let oi=new Set;const At=new Map;let Ki=!1;function Ht(t,e){var i={f:0,v:t,reactions:null,equals:Bi,rv:0,wv:0};return i}function H(t,e){const i=Ht(t);return Dn(i),i}function Ji(t,e=!1,i=!0){const r=Ht(t);return e||(r.equals=Ni),r}function z(t,e,i=!1){y!==null&&(!pt||(y.f&Ti)!==0)&&Li()&&(y.f&(N|ft|Qe|Ti))!==0&&!wt?.includes(t)&&sn();let r=i?Rt(e):e;return Qt(t,r)}function Qt(t,e){if(!t.equals(e)){var i=t.v;It?At.set(t,e):At.set(t,i),t.v=e;var r=vt.ensure();r.capture(t,i),(t.f&N)!==0&&((t.f&U)!==0&&ni(t),D(t,(t.f&nt)!==0?P:ut)),t.wv=cr(),Xi(t,U),k!==null&&(k.f&P)!==0&&(k.f&(ct|jt))===0&&(et===null?Gn([t]):et.push(t)),!r.is_fork&&oi.size>0&&!Ki&&An()}return e}function An(){Ki=!1;var t=Tt;Ne(!0);const e=Array.from(oi);try{for(const i of e)(i.f&P)!==0&&D(i,ut),me(i)&&de(i)}finally{Ne(t)}oi.clear()}function se(t){z(t,t.v+1)}function Xi(t,e){var i=t.reactions;if(i!==null)for(var r=i.length,o=0;o<r;o++){var n=i[o],v=n.f,l=(v&U)===0;if(l&&D(n,e),(v&N)!==0){var a=n;X?.delete(a),(v&Ot)===0&&(v&nt&&(n.f|=Ot),Xi(a,ut))}else l&&((v&ft)!==0&&ht!==null&&ht.add(n),Gt(n))}}function Rt(t){if(typeof t!="object"||t===null||ae in t)return t;const e=Ai(t);if(e!==Vr&&e!==Kr)return t;var i=new Map,r=Ei(t),o=H(0),n=Ft,v=l=>{if(Ft===n)return l();var a=y,s=Ft;Y(null),fr(n);var m=l();return Y(a),fr(s),m};return r&&i.set("length",H(t.length)),new Proxy(t,{defineProperty(l,a,s){(!("value"in s)||s.configurable===!1||s.enumerable===!1||s.writable===!1)&&an();var m=i.get(a);return m===void 0?m=v(()=>{var f=H(s.value);return i.set(a,f),f}):z(m,s.value,!0),!0},deleteProperty(l,a){var s=i.get(a);if(s===void 0){if(a in l){const m=v(()=>H(O));i.set(a,m),se(o)}}else z(s,O),se(o);return!0},get(l,a,s){if(a===ae)return t;var m=i.get(a),f=a in l;if(m===void 0&&(!f||Bt(l,a)?.writable)&&(m=v(()=>{var d=Rt(f?l[a]:O),x=H(d);return x}),i.set(a,m)),m!==void 0){var p=g(m);return p===O?void 0:p}return Reflect.get(l,a,s)},getOwnPropertyDescriptor(l,a){var s=Reflect.getOwnPropertyDescriptor(l,a);if(s&&"value"in s){var m=i.get(a);m&&(s.value=g(m))}else if(s===void 0){var f=i.get(a),p=f?.v;if(f!==void 0&&p!==O)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return s},has(l,a){if(a===ae)return!0;var s=i.get(a),m=s!==void 0&&s.v!==O||Reflect.has(l,a);if(s!==void 0||k!==null&&(!m||Bt(l,a)?.writable)){s===void 0&&(s=v(()=>{var p=m?Rt(l[a]):O,d=H(p);return d}),i.set(a,s));var f=g(s);if(f===O)return!1}return m},set(l,a,s,m){var f=i.get(a),p=a in l;if(r&&a==="length")for(var d=s;d<f.v;d+=1){var x=i.get(d+"");x!==void 0?z(x,O):d in l&&(x=v(()=>H(O)),i.set(d+"",x))}if(f===void 0)(!p||Bt(l,a)?.writable)&&(f=v(()=>H(void 0)),z(f,Rt(s)),i.set(a,f));else{p=f.v!==O;var E=v(()=>Rt(s));z(f,E)}var c=Reflect.getOwnPropertyDescriptor(l,a);if(c?.set&&c.set.call(m,s),!p){if(r&&typeof a=="string"){var A=i.get("length"),S=Number(a);Number.isInteger(S)&&S>=A.v&&z(A,S+1)}se(o)}return!0},ownKeys(l){g(o);var a=Reflect.ownKeys(l).filter(f=>{var p=i.get(f);return p===void 0||p.v!==O});for(var[s,m]of i)m.v!==O&&!(s in l)&&a.push(s);return a},setPrototypeOf(){ln()}})}var Zi,Qi,tr,er;function vi(){if(Zi===void 0){Zi=window,Qi=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;tr=Bt(e,"firstChild").get,er=Bt(e,"nextSibling").get,Ri(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Ri(i)&&(i.__t=void 0)}}function W(t=""){return document.createTextNode(t)}function zt(t){return tr.call(t)}function Q(t){return er.call(t)}function B(t,e){if(!h)return zt(t);var i=zt(_);if(i===null)i=_.appendChild(W());else if(e&&i.nodeType!==ti){var r=W();return i?.before(r),L(r),r}return L(i),i}function Rn(t,e=!1){if(!h){var i=zt(t);return i instanceof Comment&&i.data===""?Q(i):i}if(e&&_?.nodeType!==ti){var r=W();return _?.before(r),L(r),r}return _}function lt(t,e=1,i=!1){let r=h?_:t;for(var o;e--;)o=r,r=Q(r);if(!h)return r;if(i&&r?.nodeType!==ti){var n=W();return r===null?o?.after(n):r.before(n),L(n),n}return L(r),r}function ai(t){t.textContent=""}function ir(){return!1}function zn(t){h&&zt(t)!==null&&ai(t)}let rr=!1;function Tn(){rr||(rr=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function Se(t){var e=y,i=k;Y(null),bt(null);try{return t()}finally{Y(e),bt(i)}}function Sn(t,e,i,r=i){t.addEventListener(e,()=>Se(i));const o=t.__on_r;o?t.__on_r=()=>{o(),r(!0)}:t.__on_r=()=>r(!0),Tn()}function Cn(t){k===null&&(y===null&&rn(),en()),It&&tn()}function Mn(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function st(t,e,i){var r=k;r!==null&&(r.f&q)!==0&&(t|=q);var o={ctx:J,deps:null,nodes_start:null,nodes_end:null,f:t|U|nt,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(i)try{de(o),o.f|=ke}catch(l){throw I(o),l}else e!==null&&Gt(o);var n=o;if(i&&n.deps===null&&n.teardown===null&&n.nodes_start===null&&n.first===n.last&&(n.f&Nt)===0&&(n=n.first,(t&ft)!==0&&(t&Vt)!==0&&n!==null&&(n.f|=Vt)),n!==null&&(n.parent=r,r!==null&&Mn(n,r),y!==null&&(y.f&N)!==0&&(t&jt)===0)){var v=y;(v.effects??=[]).push(n)}return o}function Ce(){return y!==null&&!pt}function nr(t){const e=st(Je,null,!1);return D(e,P),e.teardown=t,e}function pe(t){Cn();var e=k.f,i=!y&&(e&ct)!==0&&(e&ke)===0;if(i){var r=J;(r.e??=[]).push(t)}else return or(t)}function or(t){return st(Ke|Xr,t,!1)}function Bn(t){vt.ensure();const e=st(jt|Nt,t,!0);return()=>{I(e)}}function Nn(t){vt.ensure();const e=st(jt|Nt,t,!0);return(i={})=>new Promise(r=>{i.outro?te(e,()=>{I(e),r(void 0)}):(I(e),r(void 0))})}function vr(t){return st(Ke,t,!1)}function On(t){return st(Qe|Nt,t,!0)}function Me(t,e=0){return st(Je|e,t,!0)}function yt(t,e=[],i=[],r=[]){kn(r,e,i,o=>{st(Je,()=>t(...o.map(g)),!0)})}function Be(t,e=0){var i=st(ft|e,t,!0);return i}function tt(t){return st(ct|Nt,t,!0)}function ar(t){var e=t.teardown;if(e!==null){const i=It,r=y;dr(!0),Y(null);try{e.call(null)}finally{dr(i),Y(r)}}}function lr(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const o=i.ac;o!==null&&Se(()=>{o.abort(Kt)});var r=i.next;(i.f&jt)!==0?i.parent=null:I(i,e),i=r}}function Pn(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&ct)===0&&I(e),e=i}}function I(t,e=!0){var i=!1;(e||(t.f&Xe)!==0)&&t.nodes_start!==null&&t.nodes_end!==null&&(Ln(t.nodes_start,t.nodes_end),i=!0),lr(t,e&&!i),Oe(t,0),D(t,xt);var r=t.transitions;if(r!==null)for(const n of r)n.stop();ar(t);var o=t.parent;o!==null&&o.first!==null&&sr(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function Ln(t,e){for(;t!==null;){var i=t===e?null:Q(t);t.remove(),t=i}}function sr(t){var e=t.parent,i=t.prev,r=t.next;i!==null&&(i.next=r),r!==null&&(r.prev=i),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=i))}function te(t,e,i=!0){var r=[];li(t,r,!0),pr(r,()=>{i&&I(t),e&&e()})}function pr(t,e){var i=t.length;if(i>0){var r=()=>--i||e();for(var o of t)o.out(r)}else e()}function li(t,e,i){if((t.f&q)===0){if(t.f^=q,t.transitions!==null)for(const v of t.transitions)(v.is_global||i)&&e.push(v);for(var r=t.first;r!==null;){var o=r.next,n=(r.f&Vt)!==0||(r.f&ct)!==0&&(t.f&ft)!==0;li(r,e,n?i:!1),r=o}}}function si(t){br(t,!0)}function br(t,e){if((t.f&q)!==0){t.f^=q,(t.f&P)===0&&(D(t,U),Gt(t));for(var i=t.first;i!==null;){var r=i.next,o=(i.f&Vt)!==0||(i.f&ct)!==0;br(i,o?e:!1),i=r}if(t.transitions!==null)for(const n of t.transitions)(n.is_global||e)&&n.in()}}function mr(t,e){for(var i=t.nodes_start,r=t.nodes_end;i!==null;){var o=i===r?null:Q(i);e.append(i),i=o}}let Tt=!1;function Ne(t){Tt=t}let It=!1;function dr(t){It=t}let y=null,pt=!1;function Y(t){y=t}let k=null;function bt(t){k=t}let wt=null;function Dn(t){y!==null&&(wt===null?wt=[t]:wt.push(t))}let F=null,V=0,et=null;function Gn(t){et=t}let gr=1,be=0,Ft=be;function fr(t){Ft=t}function cr(){return++gr}function me(t){var e=t.f;if((e&U)!==0)return!0;if(e&N&&(t.f&=~Ot),(e&ut)!==0){var i=t.deps;if(i!==null)for(var r=i.length,o=0;o<r;o++){var n=i[o];if(me(n)&&Vi(n),n.wv>t.wv)return!0}(e&nt)!==0&&X===null&&D(t,P)}return!1}function ur(t,e,i=!0){var r=t.reactions;if(r!==null&&!wt?.includes(t))for(var o=0;o<r.length;o++){var n=r[o];(n.f&N)!==0?ur(n,e,!1):e===n&&(i?D(n,U):(n.f&P)!==0&&D(n,ut),Gt(n))}}function xr(t){var e=F,i=V,r=et,o=y,n=wt,v=J,l=pt,a=Ft,s=t.f;F=null,V=0,et=null,y=(s&(ct|jt))===0?t:null,wt=null,Jt(t.ctx),pt=!1,Ft=++be,t.ac!==null&&(Se(()=>{t.ac.abort(Kt)}),t.ac=null);try{t.f|=Ze;var m=t.fn,f=m(),p=t.deps;if(F!==null){var d;if(Oe(t,V),p!==null&&V>0)for(p.length=V+F.length,d=0;d<F.length;d++)p[V+d]=F[d];else t.deps=p=F;if(Tt&&Ce()&&(t.f&nt)!==0)for(d=V;d<p.length;d++)(p[d].reactions??=[]).push(t)}else p!==null&&V<p.length&&(Oe(t,V),p.length=V);if(Li()&&et!==null&&!pt&&p!==null&&(t.f&(N|ut|U))===0)for(d=0;d<et.length;d++)ur(et[d],t);return o!==null&&o!==t&&(be++,et!==null&&(r===null?r=et:r.push(...et))),(t.f&Et)!==0&&(t.f^=Et),f}catch(x){return Gi(x)}finally{t.f^=Ze,F=e,V=i,et=r,y=o,wt=n,Jt(v),pt=l,Ft=a}}function Hn(t,e){let i=e.reactions;if(i!==null){var r=qr.call(i,t);if(r!==-1){var o=i.length-1;o===0?i=e.reactions=null:(i[r]=i[o],i.pop())}}i===null&&(e.f&N)!==0&&(F===null||!F.includes(e))&&(D(e,ut),(e.f&nt)!==0&&(e.f^=nt,e.f&=~Ot),Wi(e),Oe(e,0))}function Oe(t,e){var i=t.deps;if(i!==null)for(var r=e;r<i.length;r++)Hn(t,i[r])}function de(t){var e=t.f;if((e&xt)===0){D(t,P);var i=k,r=Tt;k=t,Tt=!0;try{(e&ft)!==0?Pn(t):lr(t),ar(t);var o=xr(t);t.teardown=typeof o=="function"?o:null,t.wv=gr;var n;We&&dn&&(t.f&U)!==0&&t.deps}finally{Tt=r,k=i}}}async function In(){await Promise.resolve(),Dt()}function g(t){var e=t.f,i=(e&N)!==0;if(y!==null&&!pt){var r=k!==null&&(k.f&xt)!==0;if(!r&&!wt?.includes(t)){var o=y.deps;if((y.f&Ze)!==0)t.rv<be&&(t.rv=be,F===null&&o!==null&&o[V]===t?V++:F===null?F=[t]:F.includes(t)||F.push(t));else{(y.deps??=[]).push(t);var n=t.reactions;n===null?t.reactions=[y]:n.includes(y)||n.push(y)}}}if(It){if(At.has(t))return At.get(t);if(i){var v=t,l=v.v;return((v.f&P)===0&&v.reactions!==null||yr(v))&&(l=ni(v)),At.set(v,l),l}}else i&&!X?.has(t)&&(v=t,me(v)&&Vi(v),Tt&&Ce()&&(v.f&nt)===0&&hr(v));if(X?.has(t))return X.get(t);if((t.f&Et)!==0)throw t.v;return t.v}function hr(t){if(t.deps!==null){t.f^=nt;for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&N)!==0&&(e.f&nt)===0&&hr(e)}}function yr(t){if(t.v===O)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(At.has(e)||(e.f&N)!==0&&yr(e))return!0;return!1}function Pe(t){var e=pt;try{return pt=!0,t()}finally{pt=e}}const Fn=-7169;function D(t,e){t.f=t.f&Fn|e}const wr=new Set,pi=new Set;function Un(t,e,i,r={}){function o(n){if(r.capture||ge.call(e,n),!n.cancelBubble)return Se(()=>i?.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Xt(()=>{e.addEventListener(t,o,r)}):e.addEventListener(t,o,r),o}function Yn(t,e,i,r,o){var n={capture:r,passive:o},v=Un(t,e,i,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&nr(()=>{e.removeEventListener(t,v,n)})}function qn(t){for(var e=0;e<t.length;e++)wr.add(t[e]);for(var i of pi)i(t)}let _r=null;function ge(t){var e=this,i=e.ownerDocument,r=t.type,o=t.composedPath?.()||[],n=o[0]||t.target;_r=t;var v=0,l=_r===t&&t.__root;if(l){var a=o.indexOf(l);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var s=o.indexOf(e);if(s===-1)return;a<=s&&(v=a)}if(n=o[v]||t.target,n!==e){we(t,"currentTarget",{configurable:!0,get(){return n||i}});var m=y,f=k;Y(null),bt(null);try{for(var p,d=[];n!==null;){var x=n.assignedSlot||n.parentNode||n.host||null;try{var E=n["__"+r];E!=null&&(!n.disabled||t.target===n)&&E.call(n,t)}catch(c){p?d.push(c):p=c}if(t.cancelBubble||x===e||x===null)break;n=x}if(p){for(let c of d)queueMicrotask(()=>{throw c});throw p}}finally{t.__root=e,delete t.currentTarget,Y(m),bt(f)}}}function Wn(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function fe(t,e){var i=k;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function mt(t,e){var i=(e&Ur)!==0,r,o=!t.startsWith("<!>");return()=>{if(h)return fe(_,null),_;r===void 0&&(r=Wn(o?t:"<!>"+t),r=zt(r));var n=i||Qi?document.importNode(r,!0):r.cloneNode(!0);return fe(n,n),n}}function Vn(){if(h)return fe(_,null),_;var t=document.createDocumentFragment(),e=document.createComment(""),i=W();return t.append(e,i),fe(e,i),t}function it(t,e){if(h){var i=k;((i.f&ke)===0||i.nodes_end===null)&&(i.nodes_end=_),je();return}t!==null&&t.before(e)}const Kn=["touchstart","touchmove"];function Jn(t){return Kn.includes(t)}function Le(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??=t.nodeValue)&&(t.__t=i,t.nodeValue=i+"")}function kr(t,e){return $r(t,e)}function Xn(t,e){vi(),e.intro=e.intro??!1;const i=e.target,r=h,o=_;try{for(var n=zt(i);n&&(n.nodeType!==Pt||n.data!==ji);)n=Q(n);if(!n)throw Wt;ot(!0),L(n);const v=$r(t,{...e,anchor:n});return ot(!1),v}catch(v){if(v instanceof Error&&v.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw v;return v!==Wt&&console.warn("Failed to hydrate: ",v),e.recover===!1&&on(),vi(),ai(i),ot(!1),kr(t,e)}finally{ot(r),L(o)}}const ee=new Map;function $r(t,{target:e,anchor:i,props:r={},events:o,context:n,intro:v=!0}){vi();var l=new Set,a=f=>{for(var p=0;p<f.length;p++){var d=f[p];if(!l.has(d)){l.add(d);var x=Jn(d);e.addEventListener(d,ge,{passive:x});var E=ee.get(d);E===void 0?(document.addEventListener(d,ge,{passive:x}),ee.set(d,1)):ee.set(d,E+1)}}};a(Ve(wr)),pi.add(a);var s=void 0,m=Nn(()=>{var f=i??e.appendChild(W());return xn(f,{pending:()=>{}},p=>{if(n){Oi({});var d=J;d.c=n}if(o&&(r.$$events=o),h&&fe(p,null),s=t(p,r)||{},h&&(k.nodes_end=_,_===null||_.nodeType!==Pt||_.data!==qe))throw $e(),Wt;n&&Pi()}),()=>{for(var p of l){e.removeEventListener(p,ge);var d=ee.get(p);--d===0?(document.removeEventListener(p,ge),ee.delete(p)):ee.set(p,d)}pi.delete(a),f!==i&&f.parentNode?.removeChild(f)}});return bi.set(s,m),s}let bi=new WeakMap;function Zn(t,e){const i=bi.get(t);return i?(bi.delete(t),i(e)):Promise.resolve()}class Qn{anchor;#e=new Map;#t=new Map;#i=new Map;#r=new Set;#l=!0;constructor(e,i=!0){this.anchor=e,this.#l=i}#o=()=>{var e=R;if(this.#e.has(e)){var i=this.#e.get(e),r=this.#t.get(i);if(r)si(r),this.#r.delete(i);else{var o=this.#i.get(i);o&&(this.#t.set(i,o.effect),this.#i.delete(i),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),r=o.effect)}for(const[n,v]of this.#e){if(this.#e.delete(n),n===e)break;const l=this.#i.get(v);l&&(I(l.effect),this.#i.delete(v))}for(const[n,v]of this.#t){if(n===i||this.#r.has(n))continue;const l=()=>{if(Array.from(this.#e.values()).includes(n)){var s=document.createDocumentFragment();mr(v,s),s.append(W()),this.#i.set(n,{effect:v,fragment:s})}else I(v);this.#r.delete(n),this.#t.delete(n)};this.#l||!r?(this.#r.add(n),te(v,l,!1)):l()}}};#n=e=>{this.#e.delete(e);const i=Array.from(this.#e.values());for(const[r,o]of this.#i)i.includes(r)||(I(o.effect),this.#i.delete(r))};ensure(e,i){var r=R,o=ir();if(i&&!this.#t.has(e)&&!this.#i.has(e))if(o){var n=document.createDocumentFragment(),v=W();n.append(v),this.#i.set(e,{effect:tt(()=>i(v)),fragment:n})}else this.#t.set(e,tt(()=>i(this.anchor)));if(this.#e.set(r,e),o){for(const[l,a]of this.#t)l===e?r.skipped_effects.delete(a):r.skipped_effects.add(a);for(const[l,a]of this.#i)l===e?r.skipped_effects.delete(a.effect):r.skipped_effects.add(a.effect);r.oncommit(this.#o),r.ondiscard(this.#n)}else h&&(this.anchor=_),this.#o()}}function ie(t,e,i=!1){h&&je();var r=new Qn(t),o=i?Vt:0;function n(v,l){if(h){const s=Mi(t)===he;if(v===s){var a=Ee();L(a),r.anchor=a,ot(!1),r.ensure(v,l),ot(!0);return}}r.ensure(v,l)}Be(()=>{var v=!1;e((l,a=!0)=>{v=!0,n(a,l)}),v||n(!1,null)},o)}function to(t,e){let i=null,r=h;var o;if(h){i=_;for(var n=zt(document.head);n!==null&&(n.nodeType!==Pt||n.data!==t);)n=Q(n);if(n===null)ot(!1);else{var v=Q(n);n.remove(),L(v)}}h||(o=document.head.appendChild(W()));try{Be(()=>e(o),Xe)}finally{r&&(ot(!0),L(i))}}function eo(t,e){vr(()=>{var i=t.getRootNode(),r=i.host?i:i.head??i.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const o=document.createElement("style");o.id=e.hash,o.textContent=e.code,r.appendChild(o)}})}const jr=[...`
|
|
3
|
+
\r\f \v\uFEFF`];function io(t,e,i){var r=t==null?"":""+t;if(e&&(r=r?r+" "+e:e),i){for(var o in i)if(i[o])r=r?r+" "+o:o;else if(r.length)for(var n=o.length,v=0;(v=r.indexOf(o,v))>=0;){var l=v+n;(v===0||jr.includes(r[v-1]))&&(l===r.length||jr.includes(r[l]))?r=(v===0?"":r.substring(0,v))+r.substring(l+1):v=l}}return r===""?null:r}function ro(t,e){return t==null?null:String(t)}function re(t,e,i,r,o,n){var v=t.__className;if(h||v!==i||v===void 0){var l=io(i,r,n);(!h||l!==t.getAttribute("class"))&&(l==null?t.removeAttribute("class"):t.className=l),t.__className=i}else if(n&&o!==n)for(var a in n){var s=!!n[a];(o==null||s!==!!o[a])&&t.classList.toggle(a,s)}return n}function De(t,e,i,r){var o=t.__style;if(h||o!==e){var n=ro(e);(!h||n!==t.getAttribute("style"))&&(n==null?t.removeAttribute("style"):t.style.cssText=n),t.__style=e}return r}const no=Symbol("is custom element"),oo=Symbol("is html");function ne(t,e,i,r){var o=vo(t);h&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||o[e]!==(o[e]=i)&&(e==="loading"&&(t[Zr]=i),i==null?t.removeAttribute(e):typeof i!="string"&&ao(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function vo(t){return t.__attributes??={[no]:t.nodeName.includes("-"),[oo]:t.namespaceURI===Yr}}var Er=new Map;function ao(t){var e=t.getAttribute("is")||t.nodeName,i=Er.get(e);if(i)return i;Er.set(e,i=[]);for(var r,o=t,n=Element.prototype;n!==o;){r=Wr(o);for(var v in r)r[v].set&&i.push(v);o=Ai(o)}return i}function lo(t,e,i=e){var r=new WeakSet;Sn(t,"input",async o=>{var n=o?t.defaultValue:t.value;if(n=mi(t)?di(n):n,i(n),R!==null&&r.add(R),await In(),n!==(n=e())){var v=t.selectionStart,l=t.selectionEnd,a=t.value.length;if(t.value=n??"",l!==null){var s=t.value.length;v===l&&l===a&&s>a?(t.selectionStart=s,t.selectionEnd=s):(t.selectionStart=v,t.selectionEnd=Math.min(l,s))}}}),(h&&t.defaultValue!==t.value||Pe(e)==null&&t.value)&&(i(mi(t)?di(t.value):t.value),R!==null&&r.add(R)),Me(()=>{var o=e();if(t===document.activeElement){var n=Re??R;if(r.has(n))return}mi(t)&&o===di(t.value)||t.type==="date"&&!o&&!t.value||o!==t.value&&(t.value=o??"")})}function mi(t){var e=t.type;return e==="number"||e==="range"}function di(t){return t===""?null:+t}function Ar(t,e){return t===e||t?.[ae]===e}function Rr(t={},e,i,r){return vr(()=>{var o,n;return Me(()=>{o=n,n=[],Pe(()=>{t!==i(...n)&&(e(t,...n),o&&Ar(i(...o),t)&&e(null,...o))})}),()=>{Xt(()=>{n&&Ar(i(...n),t)&&e(null,...n)})}}),t}let Ge=!1;function so(t){var e=Ge;try{return Ge=!1,[t(),Ge]}finally{Ge=e}}function ce(t,e,i,r){var o=(i&Ir)!==0,n=(i&Fr)!==0,v=r,l=!0,a=()=>(l&&(l=!1,v=n?Pe(r):r),v),s;if(o){var m=ae in t||Si in t;s=Bt(t,e)?.set??(m&&e in t?S=>t[e]=S:void 0)}var f,p=!1;o?[f,p]=so(()=>t[e]):f=t[e],f===void 0&&r!==void 0&&(f=a(),s&&(vn(),s(f)));var d;if(d=()=>{var S=t[e];return S===void 0?a():(l=!0,S)},(i&Hr)===0)return d;if(s){var x=t.$$legacy;return(function(S,K){return arguments.length>0?((!K||x||p)&&s(K?d():S),S):d()})}var E=!1,c=((i&Gr)!==0?ri:qi)(()=>(E=!1,d()));o&&g(c);var A=k;return(function(S,K){if(arguments.length>0){const T=K?g(c):o?Rt(S):S;return z(c,T),E=!0,v!==void 0&&(v=T),S}return It&&E||(A.f&xt)!==0?c.v:g(c)})}function po(t){return new bo(t)}class bo{#e;#t;constructor(e){var i=new Map,r=(n,v)=>{var l=Ji(v,!1,!1);return i.set(n,l),l};const o=new Proxy({...e.props||{},$$events:{}},{get(n,v){return g(i.get(v)??r(v,Reflect.get(n,v)))},has(n,v){return v===Si?!0:(g(i.get(v)??r(v,Reflect.get(n,v))),Reflect.has(n,v))},set(n,v,l){return z(i.get(v)??r(v,l),l),Reflect.set(n,v,l)}});this.#t=(e.hydrate?Xn:kr)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Dt(),this.#e=o.$$events;for(const n of Object.keys(this.#t))n==="$set"||n==="$destroy"||n==="$on"||we(this,n,{get(){return this.#t[n]},set(v){this.#t[n]=v},enumerable:!0});this.#t.$set=n=>{Object.assign(o,n)},this.#t.$destroy=()=>{Zn(this.#t)}}$set(e){this.#t.$set(e)}$on(e,i){this.#e[e]=this.#e[e]||[];const r=(...o)=>i.call(this,...o);return this.#e[e].push(r),()=>{this.#e[e]=this.#e[e].filter(o=>o!==r)}}$destroy(){this.#t.$destroy()}}let zr;typeof HTMLElement=="function"&&(zr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(r){return o=>{const n=document.createElement("slot");r!=="default"&&(n.name=r),it(o,n)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},i=mo(this);for(const r of this.$$s)r in i&&(r==="default"&&!this.$$d.children?(this.$$d.children=t(r),e.default=!0):e[r]=t(r));for(const r of this.attributes){const o=this.$$g_p(r.name);o in this.$$d||(this.$$d[o]=He(o,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=po({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=Bn(()=>{Me(()=>{this.$$r=!0;for(const r of ye(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const o=He(r,this.$$d[r],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,o)}this.$$r=!1})});for(const r in this.$$l)for(const o of this.$$l[r]){const n=this.$$c.$on(r,o);this.$$l_u.set(o,n)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=He(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return ye(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function He(t,e,i,r){const o=i[t]?.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!i[t])return e;if(r==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function mo(t){const e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function go(t,e,i,r,o,n){let v=class extends zr{constructor(){super(t,i,o),this.$$p_d=e}static get observedAttributes(){return ye(e).map(l=>(e[l].attribute||l).toLowerCase())}};return ye(e).forEach(l=>{we(v.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=He(l,a,e),this.$$d[l]=a;var s=this.$$c;if(s){var m=Bt(s,l)?.get;m?s[l]=a:s.$set({[l]:a})}}})}),r.forEach(l=>{we(v.prototype,l,{get(){return this.$$c?.[l]}})}),t.element=v,v}var Ut={},Tr;function fo(){if(Tr)return Ut;Tr=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.LanguageTranslator=void 0,Ut.getChildStyleToPass=t,Ut.addComponent=e;function t(r,o){var n,v,l="";try{if(r&&o?.length&&(!((n=Object.keys(r))===null||n===void 0)&&n.length)&&(!((v=o?.filter(function(p){return Object.keys(r).includes(p.name)}))===null||v===void 0)&&v.length))for(var a=function(p){var d=o?.filter(function(x){return x.name===p&&x.defaultValue!==r[p]});d&&(l+="".concat(p,":").concat(r[p],";"))},s=0,m=Object.keys(r);s<m.length;s++){var f=m[s];a(f)}}catch(p){console.error("error getting child style to pass",p)}finally{return l}}function e(r){var o,n=((o=r?.repoName.split("/"))===null||o===void 0?void 0:o[1])||r?.repoName;if(!n)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var v=r?.iifePath||"main.iife.js";if(!document.getElementById(n+"-script"))try{var l=document.createElement("script");if(l.id=n+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(v),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var a=n.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(n.replace(a+"-",""),"/").concat(v)}document.head.appendChild(l)}catch(s){console.warn(s)}}var i=(function(){function r(o){if(this.lang="",!o?.dictionary)throw new Error("no dictionary provided");this.dictionary=o.dictionary,this.setLang(o?.lang)}return r.prototype.setLang=function(o){o||(o=r.getDefaultLang()),this.lang=o},r.prototype.translateWord=function(o,n){return r.getDictionaryWord(o,this.dictionary,n||this.lang)},r.prototype.translateDate=function(o,n,v){return r.formatDate(o,n,v||this.lang)},r.getDefaultLang=function(){var o,n,v,l="en";return navigator?.languages&&(!((v=(n=(o=navigator.languages[0])===null||o===void 0?void 0:o.split("-")[0])===null||n===void 0?void 0:n.toLowerCase())===null||v===void 0)&&v.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},r.getDictionaryWord=function(o,n,v){var l;if(!o)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(v&&(!((l=n[v])===null||l===void 0)&&l[o]))return n[v][o];var a="",s=r.getDefaultLang();if(!v||s!==v){var m=n?.[s];m?.[o]&&(a=m[o])}return a},r.formatDate=function(o,n,v){if(!o)throw new Error("no date provided");if(typeof o.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(v||r.getDefaultLang(),n);return l.format(o)},r})();return Ut.LanguageTranslator=i,Ut}fo();var co=mt('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1p3vbiv"/>'),uo=mt('<img class="file-image svelte-1p3vbiv"/>'),xo=mt("<i></i>"),ho=mt('<div class="col-6 col-md-4 col-lg-3 svelte-1p3vbiv"><div class="file-card svelte-1p3vbiv"><div class="file-preview svelte-1p3vbiv"><!></div> <div class="file-details svelte-1p3vbiv"><div class="file-name svelte-1p3vbiv"> </div> <div class="file-meta svelte-1p3vbiv"><span class="file-size svelte-1p3vbiv"> </span></div></div> <button type="button" class="btn btn-sm btn-outline-danger remove-file-btn svelte-1p3vbiv" aria-label="Remove file" title="Remove file"><i class="bi bi-x svelte-1p3vbiv"></i></button></div></div>'),yo=mt('<div id="files-display" class="svelte-1p3vbiv"><div class="row g-2 svelte-1p3vbiv"></div></div>'),wo=mt('<button id="maximize-button" type="button"><i></i></button>'),_o=mt('<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger svelte-1p3vbiv"> <span class="visually-hidden svelte-1p3vbiv">selected files</span></span>'),ko=mt('<label id="upload-file" class="btn file-button btn-sm position-relative svelte-1p3vbiv" style="--tag-color: var(--bs-primary, #007bff)"><input type="file" class="svelte-1p3vbiv"/> <i class="bi bi-paperclip svelte-1p3vbiv"></i> <!></label>'),$o=mt('<button type="button"><i></i> </button>'),jo=mt('<div id="chat-container" class="svelte-1p3vbiv"><div id="chat-box" class="svelte-1p3vbiv"><!> <div id="textarea-container" class="svelte-1p3vbiv"><textarea id="send-message-text" placeholder="Type your message..."></textarea> <!></div> <div id="buttons-container" class="svelte-1p3vbiv"><div id="left-buttons" class="svelte-1p3vbiv"><!> <!></div> <div id="right-buttons" class="svelte-1p3vbiv"><button type="button" id="send-message-button" aria-label="Send message" class="svelte-1p3vbiv"><i class="bi bi-send-fill svelte-1p3vbiv"></i></button></div></div></div></div>');const Eo={hash:"svelte-1p3vbiv",code:`@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
|
|
4
4
|
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
|
|
5
5
|
/*!
|
|
6
6
|
* Bootstrap v5.1.2 (https://getbootstrap.com/)
|
|
7
7
|
* Copyright 2011-2021 The Bootstrap Authors
|
|
8
8
|
* Copyright 2011-2021 Twitter, Inc.
|
|
9
9
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
10
|
-
|
|
10
|
+
*/.svelte-1p3vbiv,
|
|
11
11
|
.svelte-1p3vbiv::before,
|
|
12
12
|
.svelte-1p3vbiv::after {box-sizing:border-box;}
|
|
13
13
|
@media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
|
|
@@ -186,5 +186,5 @@ textarea.svelte-1p3vbiv {margin:0;font-family:inherit;font-size:inherit;line-hei
|
|
|
186
186
|
.file-button.tag-selected.svelte-1p3vbiv,
|
|
187
187
|
.file-button.file-selected.svelte-1p3vbiv {background-color:var(--tag-color);color:white;box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);}.tag-button.tag-selected.svelte-1p3vbiv:hover, .tag-button.file-selected.svelte-1p3vbiv:hover,
|
|
188
188
|
.file-button.tag-selected.svelte-1p3vbiv:hover,
|
|
189
|
-
.file-button.file-selected.svelte-1p3vbiv:hover {background-color:var(--tag-color);opacity:0.9;}#send-message-button.svelte-1p3vbiv {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-1p3vbiv:hover:not(:disabled) {background-color:var(--bs-primary, #0056b3);transform:scale(1.05);}#send-message-button.svelte-1p3vbiv:active:not(:disabled) {transform:scale(0.95);}#send-message-button.svelte-1p3vbiv:disabled {background-color:var(--bs-secondary, #6c757d);cursor:not-allowed;transform:none;}#send-message-button.svelte-1p3vbiv > i:where(.svelte-1p3vbiv) {margin:0;}#maximize-button.svelte-1p3vbiv {position:absolute;top:20px;right:20px;width:24px;height:24px;border:none;border-radius:4px;color:var(--bs-primary, #007bff);background-color:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;transition:all 0.2s ease;z-index:10;}#maximize-button.svelte-1p3vbiv:hover {color:var(--bs-primary, #007bff);transform:scale(1.1);box-shadow:0 2px 6px rgba(0, 0, 0, 0.15);}#maximize-button.svelte-1p3vbiv:active {transform:scale(0.95);}#maximize-button.maximized.svelte-1p3vbiv {color:var(--bs-primary, #007bff);}#maximize-button.maximized.svelte-1p3vbiv:hover {background-color:rgba(0, 123, 255, 0.2);}#maximize-button.svelte-1p3vbiv > i:where(.svelte-1p3vbiv) {margin:0;}`};function Sr(t,e){Oi(e,!0),eo(t,Eo);function i(b,u){e.$$host.dispatchEvent(new CustomEvent(b,{detail:u}))}let r=ce(e,"id",7,""),o=ce(e,"text",7,""),n=ce(e,"expandable",7,!1),v=ce(e,"tags",23,()=>[]),l=ce(e,"files",7),a=
|
|
189
|
+
.file-button.file-selected.svelte-1p3vbiv:hover {background-color:var(--tag-color);opacity:0.9;}#send-message-button.svelte-1p3vbiv {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-1p3vbiv:hover:not(:disabled) {background-color:var(--bs-primary, #0056b3);transform:scale(1.05);}#send-message-button.svelte-1p3vbiv:active:not(:disabled) {transform:scale(0.95);}#send-message-button.svelte-1p3vbiv:disabled {background-color:var(--bs-secondary, #6c757d);cursor:not-allowed;transform:none;}#send-message-button.svelte-1p3vbiv > i:where(.svelte-1p3vbiv) {margin:0;}#maximize-button.svelte-1p3vbiv {position:absolute;top:20px;right:20px;width:24px;height:24px;border:none;border-radius:4px;color:var(--bs-primary, #007bff);background-color:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;transition:all 0.2s ease;z-index:10;}#maximize-button.svelte-1p3vbiv:hover {color:var(--bs-primary, #007bff);transform:scale(1.1);box-shadow:0 2px 6px rgba(0, 0, 0, 0.15);}#maximize-button.svelte-1p3vbiv:active {transform:scale(0.95);}#maximize-button.maximized.svelte-1p3vbiv {color:var(--bs-primary, #007bff);}#maximize-button.maximized.svelte-1p3vbiv:hover {background-color:rgba(0, 123, 255, 0.2);}#maximize-button.svelte-1p3vbiv > i:where(.svelte-1p3vbiv) {margin:0;}`};function Sr(t,e){Oi(e,!0),eo(t,Eo);function i(b,u){e.$$host.dispatchEvent(new CustomEvent(b,{detail:u}))}let r=ce(e,"id",7,""),o=ce(e,"text",7,""),n=ce(e,"expandable",7,!1),v=ce(e,"tags",23,()=>[]),l=ce(e,"files",7),a=H(Rt([])),s=H(130),m=H(0),f=H(0),p,d,x=H(!1),E=H(!1),c=H(Rt([]));function A(){const b=["#e74c3c","#3498db","#2ecc71","#f39c12","#9b59b6","#1abc9c","#34495e","#e67e22","#95a5a6","#f1c40f","#e91e63","#00bcd4","#4caf50","#ff9800","#673ab7"];return b[Math.floor(Math.random()*b.length)]}function S(b){return b.color||A()}pe(()=>{if(typeof v()=="string")try{v(JSON.parse(v()))}catch(b){console.error("error parsing buttons",b)}if(typeof l()=="string")try{l(JSON.parse(l()))}catch(b){console.error("error parsing files",b)}typeof n()=="string"&&n(n()==="yes"||n()==="true")}),pe(()=>{p&&o()&&setTimeout(()=>{G()},0)}),pe(()=>{if(d){const b=new ResizeObserver(u=>{for(const $ of u)z(f,$.contentRect.width,!0)});return b.observe(d),z(f,d.offsetWidth,!0),()=>{b.disconnect()}}}),pe(()=>{if(g(a).length>0){const j=K(g(f)),w=Math.ceil(g(a).length/j),C=w>1?(w-1)*8:0,rt=w*108+C+16;z(m,Math.min(rt,250),!0)}else z(m,0);p&&G()}),pe(()=>{l()?.mode==="single"&&g(a).length>1&&z(a,[g(a)[0]],!0)});function K(b){return b>=992?4:b>=768?3:2}function T(){return Date.now().toString(36)+Math.random().toString(36).substr(2)}function St(b){const u=b.target,$=u.files;if($)if(l()?.mode==="single"){const j=$[0],w={id:T(),name:j.name,mimetype:j.type,fileSize:j.size,content:j,objectUrl:j.type.startsWith("image/")?URL.createObjectURL(j):void 0};z(a,[w],!0)}else for(let j=0;j<$.length;j++){const w=$[j],C={id:T(),name:w.name,mimetype:w.type,fileSize:w.size,content:w,objectUrl:w.type.startsWith("image/")?URL.createObjectURL(w):void 0};z(a,[...g(a),C],!0)}u.value=""}function Yt(b){const u=g(a).find($=>$.id===b);u&&u.objectUrl&&URL.revokeObjectURL(u.objectUrl),z(a,g(a).filter($=>$.id!==b),!0)}function dt(b){return b.startsWith("image/")?"bi-image":b.startsWith("video/")?"bi-play-circle":b.startsWith("audio/")?"bi-music-note":b.includes("pdf")?"bi-file-pdf":b.includes("word")||b.includes("document")?"bi-file-word":b.includes("excel")||b.includes("spreadsheet")?"bi-file-excel":b.includes("powerpoint")||b.includes("presentation")?"bi-file-ppt":b.includes("zip")||b.includes("rar")||b.includes("archive")?"bi-file-zip":"bi-file-earmark"}function gt(b){if(b===0)return"0 B";const u=1024,$=["B","KB","MB","GB","TB"],j=Math.floor(Math.log(b)/Math.log(u));return parseFloat((b/Math.pow(u,j)).toFixed(1))+" "+$[j]}function _t(){if(!o()?.length&&!g(a).length)return console.warn("no message to send");console.log("send message "+o()),i("sendMessage",{text:o(),id:r(),files:g(a),tags:g(c)||[]})}function Ie(b){z(c,g(c).includes(b)?g(c).filter(u=>u!==b):[...g(c),b],!0)}function kt(b){b.key==="Enter"&&!b.shiftKey&&(b.preventDefault(),_t())}function ue(){n()&&!g(x)&&G()}function oe(){if(z(x,!g(x)),g(x))p.style.height="400px",p.style.maxHeight="400px",p.style.minHeight="400px",p.style.overflowY="auto",z(s,484+g(m));else{p.style.maxHeight="",p.style.minHeight="";const b=140,u=32,$=52;p.style.height=b+"px",p.style.overflowY="auto",z(s,u+b+$+g(m)),z(E,!0)}}function G(){if(p&&!g(x)){p.style.height="auto";const b=p.scrollHeight,u=140;let $=40;n()&&($=Math.max(b,80));const j=Math.min(Math.max(b,$),u);p.style.height=j+"px",b>u?p.style.overflowY="auto":p.style.overflowY="hidden",z(s,Math.max(32+j+52+g(m),130),!0),z(E,j>=u)}}var Fe={get id(){return r()},set id(b=""){r(b),Dt()},get text(){return o()},set text(b=""){o(b),Dt()},get expandable(){return n()},set expandable(b=!1){n(b),Dt()},get tags(){return v()},set tags(b=[]){v(b),Dt()},get files(){return l()},set files(b){l(b),Dt()}},qt=jo();to("1p3vbiv",b=>{var u=co();it(b,u)});var xe=B(qt),Ue=B(xe);{var Ao=b=>{var u=yo(),$=B(u);Yi($,21,()=>g(a),j=>j.id,(j,w)=>{var C=ho(),rt=B(C),$t=B(rt),ui=B($t);{var xi=Mt=>{var ve=uo();yt(()=>{ne(ve,"src",g(w).objectUrl),ne(ve,"alt",g(w).name)}),it(Mt,ve)},hi=Mt=>{var ve=xo();yt(Oo=>re(ve,1,`bi ${Oo??""} file-icon`,"svelte-1p3vbiv"),[()=>dt(g(w).mimetype)]),it(Mt,ve)};ie(ui,Mt=>{g(w).mimetype.startsWith("image/")&&g(w).objectUrl?Mt(xi):Mt(hi,!1)})}M($t);var yi=lt($t,2),Ye=B(yi),Mo=B(Ye,!0);M(Ye);var Or=lt(Ye,2),Pr=B(Or),Bo=B(Pr,!0);M(Pr),M(Or),M(yi);var No=lt(yi,2);No.__click=()=>Yt(g(w).id),M(rt),M(C),yt(Mt=>{ne(Ye,"title",g(w).name),Le(Mo,g(w).name),Le(Bo,Mt)},[()=>gt(g(w).fileSize)]),it(j,C)}),M($),M(u),yt(()=>De(u,`height: ${g(m)??""}px;`)),it(b,u)};ie(Ue,b=>{g(a).length>0&&b(Ao)})}var gi=lt(Ue,2),Ct=B(gi);zn(Ct),Ct.__keydown=kt,Ct.__input=G;let Cr;Rr(Ct,b=>p=b,()=>p);var Ro=lt(Ct,2);{var zo=b=>{var u=wo();u.__click=oe;let $;var j=B(u);M(u),yt(()=>{ne(u,"aria-label",g(x)?"Minimize textarea":"Maximize textarea"),ne(u,"title",g(x)?"Minimize textarea":"Maximize textarea"),$=re(u,1,"svelte-1p3vbiv",null,$,{maximized:g(x)}),re(j,1,`bi bi-${g(x)?"arrows-angle-contract":"arrows-angle-expand"}`,"svelte-1p3vbiv")}),it(b,u)};ie(Ro,b=>{g(E)&&b(zo)})}M(gi);var Mr=lt(gi,2),fi=B(Mr),Br=B(fi);{var To=b=>{var u=ko(),$=B(u);$.__change=St;var j=lt($,4);{var w=C=>{var rt=_o(),$t=B(rt);Ci(),M(rt),yt(()=>Le($t,`${g(a).length??""} `)),it(C,rt)};ie(j,C=>{g(a).length>0&&C(w)})}M(u),yt(()=>$.multiple=l()?.mode!=="single"),it(b,u)};ie(Br,b=>{typeof l()=="object"&&b(To)})}var So=lt(Br,2);{var Co=b=>{var u=Vn(),$=Rn(u);Yi($,17,v,j=>j.id,(j,w)=>{var C=$o();let rt;C.__click=()=>Ie(g(w).id);var $t=B(C),ui=lt($t);M(C),yt((xi,hi)=>{rt=re(C,1,"btn tag-button btn-sm svelte-1p3vbiv",null,rt,xi),De(C,`--tag-color: ${hi??""}`),ne(C,"aria-label",`Use ${g(w).label}`),re($t,1,`bi bi-${g(w).icon??""}`,"svelte-1p3vbiv"),Le(ui,` ${g(w).label??""}`)},[()=>({"tag-selected":g(c).includes(g(w).id)}),()=>S(g(w))]),it(j,C)}),it(b,u)};ie(So,b=>{v()?.length&&typeof v()=="object"&&b(Co)})}M(fi);var Nr=lt(fi,2),ci=B(Nr);return ci.__click=()=>_t(),M(Nr),M(Mr),M(xe),M(qt),Rr(qt,b=>d=b,()=>d),yt(()=>{De(xe,`height: ${g(s)??""}px;`),Cr=re(Ct,1,"svelte-1p3vbiv",null,Cr,{expandable:n(),maximized:g(x)}),ci.disabled=!(o()?.length||g(a).length),De(ci,`opacity:${o()?.length||g(a).length?"1":"0.25"}`)}),Yn("focus",Ct,ue),lo(Ct,o),it(t,qt),Pi(Fe)}qn(["click","keydown","input","change"]),customElements.define("hb-messages-send",go(Sr,{id:{},text:{},expandable:{},tags:{},files:{}},[],[],!0)),wi.Component=Sr,Object.defineProperty(wi,Symbol.toStringTag,{value:"Module"})})(this["messages-send"]=this["messages-send"]||{});
|
|
190
190
|
//# sourceMappingURL=main.iife.js.map
|