@htmlbricks/hb-messages-send 0.66.6 → 0.66.7
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 +2 -2
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(Ei){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const Jr=1,Xr=2,Ai=4,Zr=8,Qr=16,tn=1,en=4,rn=8,nn=16,on=2,Ri="[",Ye="[!",zi="[?",Ve="]",Kt={},L=Symbol(),Ti="http://www.w3.org/1999/xhtml",vn=!1;var Si=Array.isArray,ln=Array.prototype.indexOf,Jt=Array.prototype.includes,_e=Array.from,ke=Object.keys,$e=Object.defineProperty,It=Object.getOwnPropertyDescriptor,an=Object.getOwnPropertyDescriptors,sn=Object.prototype,pn=Array.prototype,Ci=Object.getPrototypeOf,Mi=Object.isExtensible;const bn=()=>{};function mn(t){for(var e=0;e<t.length;e++)t[e]()}function Ni(){var t,e,i=new Promise((r,n)=>{t=r,e=n});return{promise:i,resolve:t,reject:e}}const O=2,Xt=4,je=8,Bi=1<<24,$t=16,vt=32,jt=64,We=128,J=512,N=1024,I=2048,mt=4096,V=8192,X=16384,Et=32768,qe=1<<25,Zt=65536,Oi=1<<17,Pi=1<<18,At=1<<19,dn=1<<20,dt=1<<25,Dt=65536,Ke=1<<21,Je=1<<22,Rt=1<<23,be=Symbol("$state"),Gi=Symbol("legacy props"),gn=Symbol(""),ht=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},fn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Ee=3,Qt=8;function cn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function un(t,e,i){throw new Error("https://svelte.dev/e/each_key_duplicate")}function xn(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function hn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function yn(t){throw new Error("https://svelte.dev/e/effect_orphan")}function wn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function _n(){throw new Error("https://svelte.dev/e/hydration_failed")}function kn(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function $n(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function jn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function En(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function An(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Ae(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function Rn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let w=!1;function lt(t){w=t}let $;function D(t){if(t===null)throw Ae(),Kt;return $=t}function Re(){return D(Z($))}function B(t){if(w){if(Z($)!==null)throw Ae(),Kt;$=t}}function Li(t=1){if(w){for(var e=t,i=$;e--;)i=Z(i);$=i}}function ze(t=!0){for(var e=0,i=$;;){if(i.nodeType===Qt){var r=i.data;if(r===Ve){if(e===0)return i;e-=1}else(r===Ri||r===Ye||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(e+=1)}var n=Z(i);t&&i.remove(),i=n}}function Ii(t){if(!t||t.nodeType!==Qt)throw Ae(),Kt;return t.data}function Di(t){return t===this.v}function zn(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Hi(t){return!zn(t,this.v)}let Tn=!1,W=null;function te(t){W=t}function Fi(t,e=!1,i){W={p:W,i:!1,c:null,e:null,s:t,x:null,r:k,l:null}}function Ui(t){var e=W,i=e.e;if(i!==null){e.e=null;for(var r of i)cr(r)}return t!==void 0&&(e.x=t),e.i=!0,W=e.p,t??{}}function Yi(){return!0}let Ht=[];function Vi(){var t=Ht;Ht=[],mn(t)}function zt(t){if(Ht.length===0&&!me){var e=Ht;queueMicrotask(()=>{e===Ht&&Vi()})}Ht.push(t)}function Sn(){for(;Ht.length>0;)Vi()}function Wi(t){var e=k;if(e===null)return _.f|=Rt,t;if((e.f&Et)===0&&(e.f&Xt)===0)throw t;Tt(t,e)}function Tt(t,e){for(;e!==null;){if((e.f&We)!==0){if((e.f&Et)===0)throw t;try{e.b.error(t);return}catch(i){t=i}}e=e.parent}throw t}const Cn=-7169;function C(t,e){t.f=t.f&Cn|e}function Xe(t){(t.f&J)!==0||t.deps===null?C(t,N):C(t,mt)}function qi(t){if(t!==null)for(const e of t)(e.f&O)===0||(e.f&Dt)===0||(e.f^=Dt,qi(e.deps))}function Ki(t,e,i){(t.f&I)!==0?e.add(t):(t.f&mt)!==0&&i.add(t),qi(t.deps),C(t,N)}let Te=!1;function Mn(t){var e=Te;try{return Te=!1,[t(),Te]}finally{Te=e}}const St=new Set;let E=null,at=null,Ze=null,me=!1,Qe=!1,ee=null,Se=null;var Ji=0;let Nn=1;class yt{id=Nn++;current=new Map;previous=new Map;#t=new Set;#i=new Set;#e=new Map;#n=new Map;#o=null;#r=[];#v=new Set;#l=new Set;#a=new Map;is_fork=!1;#b=!1;#s=new Set;#m(){return this.is_fork||this.#n.size>0}#g(){for(const r of this.#s)for(const n of r.#n.keys()){for(var e=!1,i=n;i.parent!==null;){if(this.#a.has(i)){e=!0;break}i=i.parent}if(!e)return!0}return!1}skip_effect(e){this.#a.has(e)||this.#a.set(e,{d:[],m:[]})}unskip_effect(e){var i=this.#a.get(e);if(i){this.#a.delete(e);for(var r of i.d)C(r,I),this.schedule(r);for(r of i.m)C(r,mt),this.schedule(r)}}#d(){if(Ji++>1e3&&(St.delete(this),Bn()),!this.#m()){for(const l of this.#v)this.#l.delete(l),C(l,I),this.schedule(l);for(const l of this.#l)C(l,mt),this.schedule(l)}const e=this.#r;this.#r=[],this.apply();var i=ee=[],r=[],n=Se=[];for(const l of e)try{this.#p(l,i,r)}catch(a){throw er(l),a}if(E=null,n.length>0){var o=yt.ensure();for(const l of n)o.schedule(l)}if(ee=null,Se=null,this.#m()||this.#g()){this.#f(r),this.#f(i);for(const[l,a]of this.#a)tr(l,a)}else{this.#e.size===0&&St.delete(this),this.#v.clear(),this.#l.clear();for(const l of this.#t)l(this);this.#t.clear(),Xi(r),Xi(i),this.#o?.resolve()}var v=E;if(this.#r.length>0){const l=v??=this;l.#r.push(...this.#r.filter(a=>!l.#r.includes(a)))}v!==null&&(St.add(v),v.#d()),St.has(this)||this.#c()}#p(e,i,r){e.f^=N;for(var n=e.first;n!==null;){var o=n.f,v=(o&(vt|jt))!==0,l=v&&(o&N)!==0,a=l||(o&V)!==0||this.#a.has(n);if(!a&&n.fn!==null){v?n.f^=N:(o&Xt)!==0?i.push(n):fe(n)&&((o&$t)!==0&&this.#l.add(n),re(n));var s=n.first;if(s!==null){n=s;continue}}for(;n!==null;){var p=n.next;if(p!==null){n=p;break}n=n.parent}}}#f(e){for(var i=0;i<e.length;i+=1)Ki(e[i],this.#v,this.#l)}capture(e,i,r=!1){i!==L&&!this.previous.has(e)&&this.previous.set(e,i),(e.f&Rt)===0&&(this.current.set(e,[e.v,r]),at?.set(e,e.v))}activate(){E=this}deactivate(){E=null,at=null}flush(){try{Qe=!0,E=this,this.#d()}finally{Ji=0,Ze=null,ee=null,Se=null,Qe=!1,E=null,at=null,Ct.clear()}}discard(){for(const e of this.#i)e(this);this.#i.clear(),St.delete(this)}#c(){for(const s of St){var e=s.id<this.id,i=[];for(const[p,[c,b]]of this.current){if(s.current.has(p)){var r=s.current.get(p)[0];if(e&&c!==r)s.current.set(p,[c,b]);else continue}i.push(p)}var n=[...s.current.keys()].filter(p=>!this.current.has(p));if(n.length===0)e&&s.discard();else if(i.length>0){s.activate();var o=new Set,v=new Map;for(var l of i)Zi(l,n,o,v);if(s.#r.length>0){s.apply();for(var a of s.#r)s.#p(a,[],[]);s.#r=[]}s.deactivate()}}for(const s of St)s.#s.has(this)&&(s.#s.delete(this),s.#s.size===0&&!s.#m()&&(s.activate(),s.#d()))}increment(e,i){let r=this.#e.get(i)??0;if(this.#e.set(i,r+1),e){let n=this.#n.get(i)??0;this.#n.set(i,n+1)}}decrement(e,i,r){let n=this.#e.get(i)??0;if(n===1?this.#e.delete(i):this.#e.set(i,n-1),e){let o=this.#n.get(i)??0;o===1?this.#n.delete(i):this.#n.set(i,o-1)}this.#b||r||(this.#b=!0,zt(()=>{this.#b=!1,this.flush()}))}transfer_effects(e,i){for(const r of e)this.#v.add(r);for(const r of i)this.#l.add(r);e.clear(),i.clear()}oncommit(e){this.#t.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#o??=Ni()).promise}static ensure(){if(E===null){const e=E=new yt;Qe||(St.add(E),me||zt(()=>{E===e&&e.flush()}))}return E}apply(){{at=null;return}}schedule(e){if(Ze=e,e.b?.is_pending&&(e.f&(Xt|je|Bi))!==0&&(e.f&Et)===0){e.b.defer_effect(e);return}for(var i=e;i.parent!==null;){i=i.parent;var r=i.f;if(ee!==null&&i===k&&(_===null||(_.f&O)===0))return;if((r&(jt|vt))!==0){if((r&N)===0)return;i.f^=N}}this.#r.push(i)}}function Ft(t){var e=me;me=!0;try{for(var i;;){if(Sn(),E===null)return i;E.flush()}}finally{me=e}}function Bn(){try{wn()}catch(t){Tt(t,Ze)}}let wt=null;function Xi(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var r=t[i++];if((r.f&(X|V))===0&&fe(r)&&(wt=new Set,re(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&hr(r),wt?.size>0)){Ct.clear();for(const n of wt){if((n.f&(X|V))!==0)continue;const o=[n];let v=n.parent;for(;v!==null;)wt.has(v)&&(wt.delete(v),o.push(v)),v=v.parent;for(let l=o.length-1;l>=0;l--){const a=o[l];(a.f&(X|V))===0&&re(a)}}wt.clear()}}wt=null}}function Zi(t,e,i,r){if(!i.has(t)&&(i.add(t),t.reactions!==null))for(const n of t.reactions){const o=n.f;(o&O)!==0?Zi(n,e,i,r):(o&(Je|$t))!==0&&(o&I)===0&&Qi(n,e,r)&&(C(n,I),ti(n))}}function Qi(t,e,i){const r=i.get(t);if(r!==void 0)return r;if(t.deps!==null)for(const n of t.deps){if(Jt.call(e,n))return!0;if((n.f&O)!==0&&Qi(n,e,i))return i.set(n,!0),!0}return i.set(t,!1),!1}function ti(t){E.schedule(t)}function tr(t,e){if(!((t.f&vt)!==0&&(t.f&N)!==0)){(t.f&I)!==0?e.d.push(t):(t.f&mt)!==0&&e.m.push(t),C(t,N);for(var i=t.first;i!==null;)tr(i,e),i=i.next}}function er(t){C(t,N);for(var e=t.first;e!==null;)er(e),e=e.next}function On(t){let e=0,i=Ut(0),r;return()=>{li()&&(g(i),Be(()=>(e===0&&(r=Ge(()=>t(()=>de(i)))),e+=1,()=>{zt(()=>{e-=1,e===0&&(r?.(),r=void 0,de(i))})})))}}var Pn=Zt|At;function Gn(t,e,i,r){new Ln(t,e,i,r)}class Ln{parent;is_pending=!1;transform_error;#t;#i=w?$:null;#e;#n;#o;#r=null;#v=null;#l=null;#a=null;#b=0;#s=0;#m=!1;#g=new Set;#d=new Set;#p=null;#f=On(()=>(this.#p=Ut(this.#b),()=>{this.#p=null}));constructor(e,i,r,n){this.#t=e,this.#e=i,this.#n=o=>{var v=k;v.b=this,v.f|=We,r(o)},this.parent=k.b,this.transform_error=n??this.parent?.transform_error??(o=>o),this.#o=Oe(()=>{if(w){const o=this.#i;Re();const v=o.data===Ye;if(o.data.startsWith(zi)){const a=JSON.parse(o.data.slice(zi.length));this.#w(a)}else v?this.#_():this.#c()}else this.#h()},Pn),w&&(this.#t=$)}#c(){try{this.#r=Q(()=>this.#n(this.#t))}catch(e){this.error(e)}}#w(e){const i=this.#e.failed;i&&(this.#l=Q(()=>{i(this.#t,()=>e,()=>()=>{})}))}#_(){const e=this.#e.pending;e&&(this.is_pending=!0,this.#v=Q(()=>e(this.#t)),zt(()=>{var i=this.#a=document.createDocumentFragment(),r=q();i.append(r),this.#r=this.#x(()=>Q(()=>this.#n(r))),this.#s===0&&(this.#t.before(i),this.#a=null,Yt(this.#v,()=>{this.#v=null}),this.#u(E))}))}#h(){try{if(this.is_pending=this.has_pending_snippet(),this.#s=0,this.#b=0,this.#r=Q(()=>{this.#n(this.#t)}),this.#s>0){var e=this.#a=document.createDocumentFragment();pi(this.#r,e);const i=this.#e.pending;this.#v=Q(()=>i(this.#t))}else this.#u(E)}catch(i){this.error(i)}}#u(e){this.is_pending=!1,e.transfer_effects(this.#g,this.#d)}defer_effect(e){Ki(e,this.#g,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#e.pending}#x(e){var i=k,r=_,n=W;ct(this.#o),tt(this.#o),te(this.#o.ctx);try{return yt.ensure(),e()}catch(o){return Wi(o),null}finally{ct(i),tt(r),te(n)}}#y(e,i){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(e,i);return}this.#s+=e,this.#s===0&&(this.#u(i),this.#v&&Yt(this.#v,()=>{this.#v=null}),this.#a&&(this.#t.before(this.#a),this.#a=null))}update_pending_count(e,i){this.#y(e,i),this.#b+=e,!(!this.#p||this.#m)&&(this.#m=!0,zt(()=>{this.#m=!1,this.#p&&ie(this.#p,this.#b)}))}get_effect_pending(){return this.#f(),g(this.#p)}error(e){var i=this.#e.onerror;let r=this.#e.failed;if(!i&&!r)throw e;this.#r&&(F(this.#r),this.#r=null),this.#v&&(F(this.#v),this.#v=null),this.#l&&(F(this.#l),this.#l=null),w&&(D(this.#i),Li(),D(ze()));var n=!1,o=!1;const v=()=>{if(n){Rn();return}n=!0,o&&An(),this.#l!==null&&Yt(this.#l,()=>{this.#l=null}),this.#x(()=>{this.#h()})},l=a=>{try{o=!0,i?.(a,v),o=!1}catch(s){Tt(s,this.#o&&this.#o.parent)}r&&(this.#l=this.#x(()=>{try{return Q(()=>{var s=k;s.b=this,s.f|=We,r(this.#t,()=>a,()=>v)})}catch(s){return Tt(s,this.#o.parent),null}}))};zt(()=>{var a;try{a=this.transform_error(e)}catch(s){Tt(s,this.#o&&this.#o.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(l,s=>Tt(s,this.#o&&this.#o.parent)):l(a)})}}function In(t,e,i,r){const n=Me;var o=t.filter(b=>!b.settled);if(i.length===0&&o.length===0){r(e.map(n));return}var v=k,l=Dn(),a=o.length===1?o[0].promise:o.length>1?Promise.all(o.map(b=>b.promise)):null;function s(b){l();try{r(b)}catch(u){(v.f&X)===0&&Tt(u,v)}Ce()}if(i.length===0){a.then(()=>s(e.map(n)));return}var p=ir();function c(){Promise.all(i.map(b=>Hn(b))).then(b=>s([...e.map(n),...b])).catch(b=>Tt(b,v)).finally(()=>p())}a?a.then(()=>{l(),c(),Ce()}):c()}function Dn(){var t=k,e=_,i=W,r=E;return function(o=!0){ct(t),tt(e),te(i),o&&(t.f&X)===0&&(r?.activate(),r?.apply())}}function Ce(t=!0){ct(null),tt(null),te(null),t&&E?.deactivate()}function ir(){var t=k,e=t.b,i=E,r=e.is_rendered();return e.update_pending_count(1,i),i.increment(r,t),(n=!1)=>{e.update_pending_count(-1,i),i.decrement(r,t,n)}}function Me(t){var e=O|I,i=_!==null&&(_.f&O)!==0?_:null;return k!==null&&(k.f|=At),{ctx:W,deps:null,effects:null,equals:Di,f:e,fn:t,reactions:null,rv:0,v:L,wv:0,parent:i??k,ac:null}}function Hn(t,e,i){let r=k;r===null&&cn();var n=void 0,o=Ut(L),v=!_,l=new Map;return io(()=>{var a=k,s=Ni();n=s.promise;try{Promise.resolve(t()).then(s.resolve,s.reject).finally(Ce)}catch(u){s.reject(u),Ce()}var p=E;if(v){if((a.f&Et)!==0)var c=ir();if(r.b.is_rendered())l.get(p)?.reject(ht),l.delete(p);else{for(const u of l.values())u.reject(ht);l.clear()}l.set(p,s)}const b=(u,f=void 0)=>{if(c){var h=f===ht;c(h)}if(!(f===ht||(a.f&X)!==0)){if(p.activate(),f)o.f|=Rt,ie(o,f);else{(o.f&Rt)!==0&&(o.f^=Rt),ie(o,u);for(const[d,y]of l){if(l.delete(d),d===p)break;y.reject(ht)}}p.deactivate()}};s.promise.then(b,u=>b(null,u||"unknown"))}),fr(()=>{for(const a of l.values())a.reject(ht)}),new Promise(a=>{function s(p){function c(){p===n?a(o):s(n)}p.then(c,c)}s(n)})}function Fn(t){const e=Me(t);return kr(e),e}function rr(t){const e=Me(t);return e.equals=Hi,e}function Un(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)F(e[i])}}function Yn(t){for(var e=t.parent;e!==null;){if((e.f&O)===0)return(e.f&X)===0?e:null;e=e.parent}return null}function ei(t){var e,i=k;ct(Yn(t));try{t.f&=~Dt,Un(t),e=Rr(t)}finally{ct(i)}return e}function nr(t){var e=t.v,i=ei(t);if(!t.equals(i)&&(t.wv=Er(),(!E?.is_fork||t.deps===null)&&(t.v=i,E?.capture(t,e,!0),t.deps===null))){C(t,N);return}Bt||(at!==null?(li()||E?.is_fork)&&at.set(t,i):Xe(t))}function Vn(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac?.abort(ht),e.teardown=bn,e.ac=null,ce(e,0),ai(e))}function or(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&re(e)}let ii=new Set;const Ct=new Map;let vr=!1;function Ut(t,e){var i={f:0,v:t,reactions:null,equals:Di,rv:0,wv:0};return i}function H(t,e){const i=Ut(t);return kr(i),i}function lr(t,e=!1,i=!0){const r=Ut(t);return e||(r.equals=Hi),r}function S(t,e,i=!1){_!==null&&(!st||(_.f&Oi)!==0)&&Yi()&&(_.f&(O|$t|Je|Oi))!==0&&(et===null||!Jt.call(et,t))&&En();let r=i?Mt(e):e;return ie(t,r,Se)}function ie(t,e,i=null){if(!t.equals(e)){var r=t.v;Bt?Ct.set(t,e):Ct.set(t,r),t.v=e;var n=yt.ensure();if(n.capture(t,r),(t.f&O)!==0){const o=t;(t.f&I)!==0&&ei(o),at===null&&Xe(o)}t.wv=Er(),ar(t,I,i),k!==null&&(k.f&N)!==0&&(k.f&(vt|jt))===0&&(it===null?oo([t]):it.push(t)),!n.is_fork&&ii.size>0&&!vr&&Wn()}return e}function Wn(){vr=!1;for(const t of ii)(t.f&N)!==0&&C(t,mt),fe(t)&&re(t);ii.clear()}function de(t){S(t,t.v+1)}function ar(t,e,i){var r=t.reactions;if(r!==null)for(var n=r.length,o=0;o<n;o++){var v=r[o],l=v.f,a=(l&I)===0;if(a&&C(v,e),(l&O)!==0){var s=v;at?.delete(s),(l&Dt)===0&&(l&J&&(v.f|=Dt),ar(s,mt,i))}else if(a){var p=v;(l&$t)!==0&&wt!==null&&wt.add(p),i!==null?i.push(p):ti(p)}}}function Mt(t){if(typeof t!="object"||t===null||be in t)return t;const e=Ci(t);if(e!==sn&&e!==pn)return t;var i=new Map,r=Si(t),n=H(0),o=Wt,v=l=>{if(Wt===o)return l();var a=_,s=Wt;tt(null),jr(o);var p=l();return tt(a),jr(s),p};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)&&$n();var p=i.get(a);return p===void 0?v(()=>{var c=H(s.value);return i.set(a,c),c}):S(p,s.value,!0),!0},deleteProperty(l,a){var s=i.get(a);if(s===void 0){if(a in l){const p=v(()=>H(L));i.set(a,p),de(n)}}else S(s,L),de(n);return!0},get(l,a,s){if(a===be)return t;var p=i.get(a),c=a in l;if(p===void 0&&(!c||It(l,a)?.writable)&&(p=v(()=>{var u=Mt(c?l[a]:L),f=H(u);return f}),i.set(a,p)),p!==void 0){var b=g(p);return b===L?void 0:b}return Reflect.get(l,a,s)},getOwnPropertyDescriptor(l,a){var s=Reflect.getOwnPropertyDescriptor(l,a);if(s&&"value"in s){var p=i.get(a);p&&(s.value=g(p))}else if(s===void 0){var c=i.get(a),b=c?.v;if(c!==void 0&&b!==L)return{enumerable:!0,configurable:!0,value:b,writable:!0}}return s},has(l,a){if(a===be)return!0;var s=i.get(a),p=s!==void 0&&s.v!==L||Reflect.has(l,a);if(s!==void 0||k!==null&&(!p||It(l,a)?.writable)){s===void 0&&(s=v(()=>{var b=p?Mt(l[a]):L,u=H(b);return u}),i.set(a,s));var c=g(s);if(c===L)return!1}return p},set(l,a,s,p){var c=i.get(a),b=a in l;if(r&&a==="length")for(var u=s;u<c.v;u+=1){var f=i.get(u+"");f!==void 0?S(f,L):u in l&&(f=v(()=>H(L)),i.set(u+"",f))}if(c===void 0)(!b||It(l,a)?.writable)&&(c=v(()=>H(void 0)),S(c,Mt(s)),i.set(a,c));else{b=c.v!==L;var h=v(()=>Mt(s));S(c,h)}var d=Reflect.getOwnPropertyDescriptor(l,a);if(d?.set&&d.set.call(p,s),!b){if(r&&typeof a=="string"){var y=i.get("length"),T=Number(a);Number.isInteger(T)&&T>=y.v&&S(y,T+1)}de(n)}return!0},ownKeys(l){g(n);var a=Reflect.ownKeys(l).filter(c=>{var b=i.get(c);return b===void 0||b.v!==L});for(var[s,p]of i)p.v!==L&&!(s in l)&&a.push(s);return a},setPrototypeOf(){jn()}})}var sr,pr,br,mr;function ri(){if(sr===void 0){sr=window,pr=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;br=It(e,"firstChild").get,mr=It(e,"nextSibling").get,Mi(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Mi(i)&&(i.__t=void 0)}}function q(t=""){return document.createTextNode(t)}function Nt(t){return br.call(t)}function Z(t){return mr.call(t)}function P(t,e){if(!w)return Nt(t);var i=Nt($);if(i===null)i=$.appendChild(q());else if(e&&i.nodeType!==Ee){var r=q();return i?.before(r),D(r),r}return e&&vi(i),D(i),i}function qn(t,e=!1){if(!w){var i=Nt(t);return i instanceof Comment&&i.data===""?Z(i):i}if(e){if($?.nodeType!==Ee){var r=q();return $?.before(r),D(r),r}vi($)}return $}function gt(t,e=1,i=!1){let r=w?$:t;for(var n;e--;)n=r,r=Z(r);if(!w)return r;if(i){if(r?.nodeType!==Ee){var o=q();return r===null?n?.after(o):r.before(o),D(o),o}vi(r)}return D(r),r}function ni(t){t.textContent=""}function dr(){return!1}function oi(t,e,i){return document.createElementNS(Ti,t,void 0)}function vi(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===Ee;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function Kn(t){w&&Nt(t)!==null&&ni(t)}let gr=!1;function Jn(){gr||(gr=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(const e of t.target.elements)e.__on_r?.()})},{capture:!0}))}function Ne(t){var e=_,i=k;tt(null),ct(null);try{return t()}finally{tt(e),ct(i)}}function Xn(t,e,i,r=i){t.addEventListener(e,()=>Ne(i));const n=t.__on_r;n?t.__on_r=()=>{n(),r(!0)}:t.__on_r=()=>r(!0),Jn()}function Zn(t){k===null&&(_===null&&yn(),hn()),Bt&&xn()}function Qn(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ft(t,e){var i=k;i!==null&&(i.f&V)!==0&&(t|=V);var r={ctx:W,deps:null,nodes:null,f:t|I|J,first:null,fn:e,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null},n=r;if((t&Xt)!==0)ee!==null?ee.push(r):yt.ensure().schedule(r);else if(e!==null){try{re(r)}catch(v){throw F(r),v}n.deps===null&&n.teardown===null&&n.nodes===null&&n.first===n.last&&(n.f&At)===0&&(n=n.first,(t&$t)!==0&&(t&Zt)!==0&&n!==null&&(n.f|=Zt))}if(n!==null&&(n.parent=i,i!==null&&Qn(n,i),_!==null&&(_.f&O)!==0&&(t&jt)===0)){var o=_;(o.effects??=[]).push(n)}return r}function li(){return _!==null&&!st}function fr(t){const e=ft(je,null);return C(e,N),e.teardown=t,e}function ge(t){Zn();var e=k.f,i=!_&&(e&vt)!==0&&(e&Et)===0;if(i){var r=W;(r.e??=[]).push(t)}else return cr(t)}function cr(t){return ft(Xt|dn,t)}function to(t){yt.ensure();const e=ft(jt|At,t);return()=>{F(e)}}function eo(t){yt.ensure();const e=ft(jt|At,t);return(i={})=>new Promise(r=>{i.outro?Yt(e,()=>{F(e),r(void 0)}):(F(e),r(void 0))})}function ur(t){return ft(Xt,t)}function io(t){return ft(Je|At,t)}function Be(t,e=0){return ft(je|e,t)}function _t(t,e=[],i=[],r=[]){In(r,e,i,n=>{ft(je,()=>t(...n.map(g)))})}function Oe(t,e=0){var i=ft($t|e,t);return i}function Q(t){return ft(vt|At,t)}function xr(t){var e=t.teardown;if(e!==null){const i=Bt,r=_;_r(!0),tt(null);try{e.call(null)}finally{_r(i),tt(r)}}}function ai(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const n=i.ac;n!==null&&Ne(()=>{n.abort(ht)});var r=i.next;(i.f&jt)!==0?i.parent=null:F(i,e),i=r}}function ro(t){for(var e=t.first;e!==null;){var i=e.next;(e.f&vt)===0&&F(e),e=i}}function F(t,e=!0){var i=!1;(e||(t.f&Pi)!==0)&&t.nodes!==null&&t.nodes.end!==null&&(no(t.nodes.start,t.nodes.end),i=!0),C(t,qe),ai(t,e&&!i),ce(t,0);var r=t.nodes&&t.nodes.t;if(r!==null)for(const o of r)o.stop();xr(t),t.f^=qe,t.f|=X;var n=t.parent;n!==null&&n.first!==null&&hr(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function no(t,e){for(;t!==null;){var i=t===e?null:Z(t);t.remove(),t=i}}function hr(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 Yt(t,e,i=!0){var r=[];yr(t,r,!0);var n=()=>{i&&F(t),e&&e()},o=r.length;if(o>0){var v=()=>--o||n();for(var l of r)l.out(v)}else n()}function yr(t,e,i){if((t.f&V)===0){t.f^=V;var r=t.nodes&&t.nodes.t;if(r!==null)for(const l of r)(l.is_global||i)&&e.push(l);for(var n=t.first;n!==null;){var o=n.next,v=(n.f&Zt)!==0||(n.f&vt)!==0&&(t.f&$t)!==0;yr(n,e,v?i:!1),n=o}}}function si(t){wr(t,!0)}function wr(t,e){if((t.f&V)!==0){t.f^=V,(t.f&N)===0&&(C(t,I),yt.ensure().schedule(t));for(var i=t.first;i!==null;){var r=i.next,n=(i.f&Zt)!==0||(i.f&vt)!==0;wr(i,n?e:!1),i=r}var o=t.nodes&&t.nodes.t;if(o!==null)for(const v of o)(v.is_global||e)&&v.in()}}function pi(t,e){if(t.nodes)for(var i=t.nodes.start,r=t.nodes.end;i!==null;){var n=i===r?null:Z(i);e.append(i),i=n}}let Pe=!1,Bt=!1;function _r(t){Bt=t}let _=null,st=!1;function tt(t){_=t}let k=null;function ct(t){k=t}let et=null;function kr(t){_!==null&&(et===null?et=[t]:et.push(t))}let Y=null,K=0,it=null;function oo(t){it=t}let $r=1,Vt=0,Wt=Vt;function jr(t){Wt=t}function Er(){return++$r}function fe(t){var e=t.f;if((e&I)!==0)return!0;if(e&O&&(t.f&=~Dt),(e&mt)!==0){for(var i=t.deps,r=i.length,n=0;n<r;n++){var o=i[n];if(fe(o)&&nr(o),o.wv>t.wv)return!0}(e&J)!==0&&at===null&&C(t,N)}return!1}function Ar(t,e,i=!0){var r=t.reactions;if(r!==null&&!(et!==null&&Jt.call(et,t)))for(var n=0;n<r.length;n++){var o=r[n];(o.f&O)!==0?Ar(o,e,!1):e===o&&(i?C(o,I):(o.f&N)!==0&&C(o,mt),ti(o))}}function Rr(t){var e=Y,i=K,r=it,n=_,o=et,v=W,l=st,a=Wt,s=t.f;Y=null,K=0,it=null,_=(s&(vt|jt))===0?t:null,et=null,te(t.ctx),st=!1,Wt=++Vt,t.ac!==null&&(Ne(()=>{t.ac.abort(ht)}),t.ac=null);try{t.f|=Ke;var p=t.fn,c=p();t.f|=Et;var b=t.deps,u=E?.is_fork;if(Y!==null){var f;if(u||ce(t,K),b!==null&&K>0)for(b.length=K+Y.length,f=0;f<Y.length;f++)b[K+f]=Y[f];else t.deps=b=Y;if(li()&&(t.f&J)!==0)for(f=K;f<b.length;f++)(b[f].reactions??=[]).push(t)}else!u&&b!==null&&K<b.length&&(ce(t,K),b.length=K);if(Yi()&&it!==null&&!st&&b!==null&&(t.f&(O|mt|I))===0)for(f=0;f<it.length;f++)Ar(it[f],t);if(n!==null&&n!==t){if(Vt++,n.deps!==null)for(let h=0;h<i;h+=1)n.deps[h].rv=Vt;if(e!==null)for(const h of e)h.rv=Vt;it!==null&&(r===null?r=it:r.push(...it))}return(t.f&Rt)!==0&&(t.f^=Rt),c}catch(h){return Wi(h)}finally{t.f^=Ke,Y=e,K=i,it=r,_=n,et=o,te(v),st=l,Wt=a}}function vo(t,e){let i=e.reactions;if(i!==null){var r=ln.call(i,t);if(r!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[r]=i[n],i.pop())}}if(i===null&&(e.f&O)!==0&&(Y===null||!Jt.call(Y,e))){var o=e;(o.f&J)!==0&&(o.f^=J,o.f&=~Dt),Xe(o),Vn(o),ce(o,0)}}function ce(t,e){var i=t.deps;if(i!==null)for(var r=e;r<i.length;r++)vo(t,i[r])}function re(t){var e=t.f;if((e&X)===0){C(t,N);var i=k,r=Pe;k=t,Pe=!0;try{(e&($t|Bi))!==0?ro(t):ai(t),xr(t);var n=Rr(t);t.teardown=typeof n=="function"?n:null,t.wv=$r;var o;vn&&Tn&&(t.f&I)!==0&&t.deps}finally{Pe=r,k=i}}}async function lo(){await Promise.resolve(),Ft()}function g(t){var e=t.f,i=(e&O)!==0;if(_!==null&&!st){var r=k!==null&&(k.f&X)!==0;if(!r&&(et===null||!Jt.call(et,t))){var n=_.deps;if((_.f&Ke)!==0)t.rv<Vt&&(t.rv=Vt,Y===null&&n!==null&&n[K]===t?K++:Y===null?Y=[t]:Y.push(t));else{(_.deps??=[]).push(t);var o=t.reactions;o===null?t.reactions=[_]:Jt.call(o,_)||o.push(_)}}}if(Bt&&Ct.has(t))return Ct.get(t);if(i){var v=t;if(Bt){var l=v.v;return((v.f&N)===0&&v.reactions!==null||Tr(v))&&(l=ei(v)),Ct.set(v,l),l}var a=(v.f&J)===0&&!st&&_!==null&&(Pe||(_.f&J)!==0),s=(v.f&Et)===0;fe(v)&&(a&&(v.f|=J),nr(v)),a&&!s&&(or(v),zr(v))}if(at?.has(t))return at.get(t);if((t.f&Rt)!==0)throw t.v;return t.v}function zr(t){if(t.f|=J,t.deps!==null)for(const e of t.deps)(e.reactions??=[]).push(t),(e.f&O)!==0&&(e.f&J)===0&&(or(e),zr(e))}function Tr(t){if(t.v===L)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Ct.has(e)||(e.f&O)!==0&&Tr(e))return!0;return!1}function Ge(t){var e=st;try{return st=!0,t()}finally{st=e}}const ue=Symbol("events"),Sr=new Set,bi=new Set;function ao(t,e,i,r={}){function n(o){if(r.capture||mi.call(e,o),!o.cancelBubble)return Ne(()=>i?.call(this,o))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?zt(()=>{e.addEventListener(t,n,r)}):e.addEventListener(t,n,r),n}function so(t,e,i,r,n){var o={capture:r,passive:n},v=ao(t,e,i,o);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&fr(()=>{e.removeEventListener(t,v,o)})}function qt(t,e,i){(e[ue]??={})[t]=i}function po(t){for(var e=0;e<t.length;e++)Sr.add(t[e]);for(var i of bi)i(t)}let Cr=null;function mi(t){var e=this,i=e.ownerDocument,r=t.type,n=t.composedPath?.()||[],o=n[0]||t.target;Cr=t;var v=0,l=Cr===t&&t[ue];if(l){var a=n.indexOf(l);if(a!==-1&&(e===document||e===window)){t[ue]=e;return}var s=n.indexOf(e);if(s===-1)return;a<=s&&(v=a)}if(o=n[v]||t.target,o!==e){$e(t,"currentTarget",{configurable:!0,get(){return o||i}});var p=_,c=k;tt(null),ct(null);try{for(var b,u=[];o!==null;){var f=o.assignedSlot||o.parentNode||o.host||null;try{var h=o[ue]?.[r];h!=null&&(!o.disabled||t.target===o)&&h.call(o,t)}catch(d){b?u.push(d):b=d}if(t.cancelBubble||f===e||f===null)break;o=f}if(b){for(let d of u)queueMicrotask(()=>{throw d});throw b}}finally{t[ue]=e,delete t.currentTarget,tt(p),ct(c)}}}const bo=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function mo(t){return bo?.createHTML(t)??t}function go(t){var e=oi("template");return e.innerHTML=mo(t.replaceAll("<!>","<!---->")),e.content}function xe(t,e){var i=k;i.nodes===null&&(i.nodes={start:t,end:e,a:null,t:null})}function ut(t,e){var i=(e&on)!==0,r,n=!t.startsWith("<!>");return()=>{if(w)return xe($,null),$;r===void 0&&(r=go(n?t:"<!>"+t),r=Nt(r));var o=i||pr?document.importNode(r,!0):r.cloneNode(!0);return xe(o,o),o}}function fo(){if(w)return xe($,null),$;var t=document.createDocumentFragment(),e=document.createComment(""),i=q();return t.append(e,i),xe(e,i),t}function rt(t,e){if(w){var i=k;((i.f&Et)===0||i.nodes.end===null)&&(i.nodes.end=$),Re();return}t!==null&&t.before(e)}const co=["touchstart","touchmove"];function uo(t){return co.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 Mr(t,e){return Nr(t,e)}function xo(t,e){ri(),e.intro=e.intro??!1;const i=e.target,r=w,n=$;try{for(var o=Nt(i);o&&(o.nodeType!==Qt||o.data!==Ri);)o=Z(o);if(!o)throw Kt;lt(!0),D(o);const v=Nr(t,{...e,anchor:o});return lt(!1),v}catch(v){if(v instanceof Error&&v.message.split(`
|
|
2
|
-
`).some(
|
|
3
|
-
\r\f \v\uFEFF`];function Eo(t,e,i){var r=t==null?"":""+t;if(e&&(r=r?r+" "+e:e),i){for(var n of Object.keys(i))if(i[n])r=r?r+" "+n:n;else if(r.length)for(var o=n.length,v=0;(v=r.indexOf(n,v))>=0;){var l=v+o;(v===0||Pr.includes(r[v-1]))&&(l===r.length||Pr.includes(r[l]))?r=(v===0?"":r.substring(0,v))+r.substring(l+1):v=l}}return r===""?null:r}function Ao(t,e){return t==null?null:String(t)}function oe(t,e,i,r,n,o){var v=t.__className;if(w||v!==i||v===void 0){var l=Eo(i,r,o);(!w||l!==t.getAttribute("class"))&&(l==null?t.removeAttribute("class"):t.className=l),t.__className=i}else if(o&&n!==o)for(var a in o){var s=!!o[a];(n==null||s!==!!n[a])&&t.classList.toggle(a,s)}return o}function De(t,e,i,r){var n=t.__style;if(w||n!==e){var o=Ao(e);(!w||o!==t.getAttribute("style"))&&(o==null?t.removeAttribute("style"):t.style.cssText=o),t.__style=e}return r}const Ro=Symbol("is custom element"),zo=Symbol("is html"),To=fn?"link":"LINK";function ve(t,e,i,r){var n=So(t);w&&(n[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===To)||n[e]!==(n[e]=i)&&(e==="loading"&&(t[gn]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Co(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function So(t){return t.__attributes??={[Ro]:t.nodeName.includes("-"),[zo]:t.namespaceURI===Ti}}var Gr=new Map;function Co(t){var e=t.getAttribute("is")||t.nodeName,i=Gr.get(e);if(i)return i;Gr.set(e,i=[]);for(var r,n=t,o=Element.prototype;o!==n;){r=an(n);for(var v in r)r[v].set&&i.push(v);n=Ci(n)}return i}function Mo(t,e,i=e){var r=new WeakSet;Xn(t,"input",async n=>{var o=n?t.defaultValue:t.value;if(o=fi(t)?ci(o):o,i(o),E!==null&&r.add(E),await lo(),o!==(o=e())){var v=t.selectionStart,l=t.selectionEnd,a=t.value.length;if(t.value=o??"",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))}}}),(w&&t.defaultValue!==t.value||Ge(e)==null&&t.value)&&(i(fi(t)?ci(t.value):t.value),E!==null&&r.add(E)),Be(()=>{var n=e();if(t===document.activeElement){var o=E;if(r.has(o))return}fi(t)&&n===ci(t.value)||t.type==="date"&&!n&&!t.value||n!==t.value&&(t.value=n??"")})}function fi(t){var e=t.type;return e==="number"||e==="range"}function ci(t){return t===""?null:+t}function Lr(t,e){return t===e||t?.[be]===e}function Ir(t={},e,i,r){var n=W.r,o=k;return ur(()=>{var v,l;return Be(()=>{v=l,l=[],Ge(()=>{t!==i(...l)&&(e(t,...l),v&&Lr(i(...v),t)&&e(null,...v))})}),()=>{let a=o;for(;a!==n&&a.parent!==null&&a.parent.f&qe;)a=a.parent;const s=()=>{l&&Lr(i(...l),t)&&e(null,...l)},p=a.teardown;a.teardown=()=>{s(),p?.()}}}),t}function we(t,e,i,r){var n=(i&rn)!==0,o=(i&nn)!==0,v=r,l=!0,a=()=>(l&&(l=!1,v=o?Ge(r):r),v);let s;if(n){var p=be in t||Gi in t;s=It(t,e)?.set??(p&&e in t?T=>t[e]=T:void 0)}var c,b=!1;n?[c,b]=Mn(()=>t[e]):c=t[e],c===void 0&&r!==void 0&&(c=a(),s&&(kn(),s(c)));var u;if(u=()=>{var T=t[e];return T===void 0?a():(l=!0,T)},(i&en)===0)return u;if(s){var f=t.$$legacy;return(function(T,z){return arguments.length>0?((!z||f||b)&&s(z?u():T),T):u()})}var h=!1,d=((i&tn)!==0?Me:rr)(()=>(h=!1,u()));n&&g(d);var y=k;return(function(T,z){if(arguments.length>0){const G=z?g(d):n?Mt(T):T;return S(d,G),h=!0,v!==void 0&&(v=G),T}return Bt&&h||(y.f&X)!==0?d.v:g(d)})}function No(t){return new Bo(t)}class Bo{#t;#i;constructor(e){var i=new Map,r=(o,v)=>{var l=lr(v,!1,!1);return i.set(o,l),l};const n=new Proxy({...e.props||{},$$events:{}},{get(o,v){return g(i.get(v)??r(v,Reflect.get(o,v)))},has(o,v){return v===Gi?!0:(g(i.get(v)??r(v,Reflect.get(o,v))),Reflect.has(o,v))},set(o,v,l){return S(i.get(v)??r(v,l),l),Reflect.set(o,v,l)}});this.#i=(e.hydrate?xo:Mr)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&Ft(),this.#t=n.$$events;for(const o of Object.keys(this.#i))o==="$set"||o==="$destroy"||o==="$on"||$e(this,o,{get(){return this.#i[o]},set(v){this.#i[o]=v},enumerable:!0});this.#i.$set=o=>{Object.assign(n,o)},this.#i.$destroy=()=>{ho(this.#i)}}$set(e){this.#i.$set(e)}$on(e,i){this.#t[e]=this.#t[e]||[];const r=(...n)=>i.call(this,...n);return this.#t[e].push(r),()=>{this.#t[e]=this.#t[e].filter(n=>n!==r)}}$destroy(){this.#i.$destroy()}}let Dr;typeof HTMLElement=="function"&&(Dr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&(this.$$shadowRoot=this.attachShadow(i))}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 n=>{const o=oi("slot");r!=="default"&&(o.name=r),rt(n,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},i=Oo(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 n=this.$$g_p(r.name);n in this.$$d||(this.$$d[n]=He(n,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=No({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:e,$$host:this}}),this.$$me=to(()=>{Be(()=>{this.$$r=!0;for(const r of ke(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const n=He(r,this.$$d[r],this.$$p_d,"toAttribute");n==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,n)}this.$$r=!1})});for(const r in this.$$l)for(const n of this.$$l[r]){const o=this.$$c.$on(r,n);this.$$l_u.set(n,o)}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 ke(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 n=i[t]?.type;if(e=n==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!i[t])return e;if(r==="toAttribute")switch(n){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(n){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Oo(t){const e={};return t.childNodes.forEach(i=>{e[i.slot||"default"]=!0}),e}function Po(t,e,i,r,n,o){let v=class extends Dr{constructor(){super(t,i,n),this.$$p_d=e}static get observedAttributes(){return ke(e).map(l=>(e[l].attribute||l).toLowerCase())}};return ke(e).forEach(l=>{$e(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 p=It(s,l)?.get;p?s[l]=a:s.$set({[l]:a})}}})}),r.forEach(l=>{$e(v.prototype,l,{get(){return this.$$c?.[l]}})}),t.element=v,v}var Go=ut('<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1p3vbiv"/>'),Lo=ut('<img class="file-image svelte-1p3vbiv"/>'),Io=ut("<i></i>"),Do=ut('<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>'),Ho=ut('<div id="files-display" class="svelte-1p3vbiv"><div class="row g-2 svelte-1p3vbiv"></div></div>'),Fo=ut('<button id="maximize-button" type="button"><i></i></button>'),Uo=ut('<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>'),Yo=ut('<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>'),Vo=ut('<button type="button"><i></i> </button>'),Wo=ut('<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 qo={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(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);var t={},n=Symbol(),r=`http://www.w3.org/1999/xhtml`,i=Array.isArray,a=Array.prototype.indexOf,o=Array.prototype.includes,s=Array.from,c=Object.keys,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyDescriptors,f=Object.prototype,p=Array.prototype,m=Object.getPrototypeOf,h=Object.isExtensible,g=()=>{};function _(e){for(var t=0;t<e.length;t++)e[t]()}function v(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var y=1024,b=2048,x=4096,S=8192,ee=16384,te=32768,ne=1<<25,re=65536,ie=1<<18,ae=1<<19,oe=1<<20,se=1<<25,ce=65536,le=1<<21,ue=1<<22,de=1<<23,fe=Symbol(`$state`),pe=Symbol(`legacy props`),me=Symbol(``),C=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},he=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function ge(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function _e(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function ve(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ye(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function be(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function xe(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Se(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Ce(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function we(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Te(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ee(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function De(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}function Oe(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function ke(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var w=!1;function T(e){w=e}var E;function D(e){if(e===null)throw Oe(),t;return E=e}function Ae(){return D(R(E))}function O(e){if(w){if(R(E)!==null)throw Oe(),t;E=e}}function je(e=1){if(w){for(var t=e,n=E;t--;)n=R(n);E=n}}function Me(e=!0){for(var t=0,n=E;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=R(n);e&&n.remove(),n=i}}function Ne(e){if(!e||e.nodeType!==8)throw Oe(),t;return e.data}function Pe(e){return e===this.v}function Fe(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ie(e){return!Fe(e,this.v)}var k=!1,Le=!1,A=null;function Re(e){A=e}function ze(e,t=!1,n){A={p:A,i:!1,c:null,e:null,s:e,x:null,r:K,l:Le&&!t?{s:null,u:null,$:[]}:null}}function Be(e){var t=A,n=t.e;if(n!==null){t.e=null;for(var r of n)gn(r)}return e!==void 0&&(t.x=e),t.i=!0,A=t.p,e??{}}function Ve(){return!Le||A!==null&&A.l===null}var He=[];function Ue(){var e=He;He=[],_(e)}function We(e){if(He.length===0&&!rt){var t=He;queueMicrotask(()=>{t===He&&Ue()})}He.push(e)}function Ge(){for(;He.length>0;)Ue()}function Ke(e){var t=K;if(t===null)return U.f|=de,e;if(!(t.f&32768)&&!(t.f&4))throw e;qe(e,t)}function qe(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Je=~(b|x|y);function j(e,t){e.f=e.f&Je|t}function Ye(e){e.f&512||e.deps===null?j(e,y):j(e,x)}function Xe(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ce,Xe(t.deps))}function Ze(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Xe(e.deps),j(e,y)}var Qe=!1,$e=!1;function et(e){var t=$e;try{return $e=!1,[e(),$e]}finally{$e=t}}var M=new Set,N=null,tt=null,P=null,nt=null,rt=!1,it=!1,at=null,ot=null,st=0,ct=1,lt=class e{id=ct++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)j(n,b),this.schedule(n);for(n of t.m)j(n,x),this.schedule(n)}}#p(){if(st++>1e3&&(M.delete(this),dt()),!this.#d()){for(let e of this.#o)this.#s.delete(e),j(e,b),this.schedule(e);for(let e of this.#s)j(e,x),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=at=[],r=[],i=ot=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw vt(e),t}if(N=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(at=null,ot=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)_t(e,t)}else{this.#n.size===0&&M.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),tt=this,pt(r),pt(n),tt=null,this.#i?.resolve()}var o=N;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(M.add(o),o.#p()),M.has(this)||this.#g()}#m(e,t,n){e.f^=y;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=y:i&4?t.push(r):k&&i&16777224?n.push(r):Kn(r)&&(i&16&&this.#s.add(r),Zn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)Ze(e[t],this.#o,this.#s)}capture(e,t,r=!1){t!==n&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,r]),P?.set(e,e.v))}activate(){N=this}deactivate(){N=null,P=null}flush(){try{it=!0,N=this,this.#p()}finally{st=0,nt=null,at=null,ot=null,it=!1,N=null,P=null,Rt.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),M.delete(this)}#g(){for(let c of M){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)mt(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of M)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,We(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=v()).promise}static ensure(){if(N===null){let t=N=new e;it||(M.add(N),rt||We(()=>{N===t&&t.flush()}))}return N}apply(){if(!k||!this.is_fork&&M.size===1){P=null;return}P=new Map;for(let[e,[t]]of this.current)P.set(e,t);for(let n of M)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)P.has(e)||P.set(e,t)}}schedule(e){if(nt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(at!==null&&t===K&&(k||(U===null||!(U.f&2))&&!Qe))return;if(n&96){if(!(n&1024))return;t.f^=y}}this.#a.push(t)}};function ut(e){var t=rt;rt=!0;try{var n;for(e&&(N!==null&&!N.is_fork&&N.flush(),n=e());;){if(Ge(),N===null)return n;N.flush()}}finally{rt=t}}function dt(){try{xe()}catch(e){qe(e,nt)}}var ft=null;function pt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Kn(r)&&(ft=new Set,Zn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&On(r),ft?.size>0)){Rt.clear();for(let e of ft){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)ft.has(n)&&(ft.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Zn(n)}}ft.clear()}}ft=null}}function mt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?mt(i,t,n,r):e&4194320&&!(e&2048)&&ht(i,t,r)&&(j(i,b),gt(i))}}function ht(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(o.call(t,r))return!0;if(r.f&2&&ht(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function gt(e){N.schedule(e)}function _t(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),j(e,y);for(var n=e.first;n!==null;)_t(n,t),n=n.next}}function vt(e){j(e,y);for(var t=e.first;t!==null;)vt(t),t=t.next}function yt(e){let t=0,n=Bt(0),r;return()=>{pn()&&(Z(n),xn(()=>(t===0&&(r=tr(()=>e(()=>Wt(n)))),t+=1,()=>{We(()=>{--t,t===0&&(r?.(),r=void 0,Wt(n))})})))}}var bt=re|ae;function xt(e,t,n,r){new St(e,t,n,r)}var St=class{parent;is_pending=!1;transform_error;#e;#t=w?E:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=yt(()=>(this.#m=Bt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=K;t.b=this,t.f|=128,n(e)},this.parent=K.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=Cn(()=>{if(w){let e=this.#t;Ae();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},bt),w&&(this.#e=E)}#g(){try{this.#a=V(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=V(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=V(()=>e(this.#e)),We(()=>{var e=this.#c=document.createDocumentFragment(),t=L();e.append(t),this.#a=this.#x(()=>V(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,kn(this.#o,()=>{this.#o=null}),this.#b(N))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=V(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Nn(this.#a,e);let t=this.#n.pending;this.#o=V(()=>t(this.#e))}else this.#b(N)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Ze(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=K,n=U,r=A;Rn(this.#i),G(this.#i),Re(this.#i.ctx);try{return lt.ensure(),e()}catch(e){return Ke(e),null}finally{Rn(t),G(n),Re(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&kn(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,We(()=>{this.#d=!1,this.#m&&Ht(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Z(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(H(this.#a),null),this.#o&&=(H(this.#o),null),this.#s&&=(H(this.#s),null),w&&(D(this.#t),je(),D(Me()));var r=!1,i=!1;let a=()=>{if(r){ke();return}r=!0,i&&De(),this.#s!==null&&kn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){qe(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return V(()=>{var t=K;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return qe(e,this.#i.parent),null}}))};We(()=>{var t;try{t=this.transform_error(e)}catch(e){qe(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>qe(e,this.#i&&this.#i.parent)):o(t)})}};function Ct(e,t,n,r){let i=Ve()?Dt:At;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=K,s=wt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||qe(e,o)}Tt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Et();function d(){Promise.all(n.map(e=>Ot(e))).then(e=>l([...t.map(i),...e])).catch(e=>qe(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Tt()}):d()}function wt(){var e=K,t=U,n=A,r=N;return function(i=!0){Rn(e),G(t),Re(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Tt(e=!0){Rn(null),G(null),Re(null),e&&N?.deactivate()}function Et(){var e=K,t=e.b,n=N,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Dt(e){var t=2|b,r=U!==null&&U.f&2?U:null;return K!==null&&(K.f|=ae),{ctx:A,deps:null,effects:null,equals:Pe,f:t,fn:e,reactions:null,rv:0,v:n,wv:0,parent:r??K,ac:null}}function Ot(e,t,r){let i=K;i===null&&ge();var a=void 0,o=Bt(n),s=!U,c=new Map;return bn(()=>{var t=K,n=v();a=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Tt)}catch(e){n.reject(e),Tt()}var r=N;if(s){if(t.f&32768)var l=Et();if(i.b.is_rendered())c.get(r)?.reject(C),c.delete(r);else{for(let e of c.values())e.reject(C);c.clear()}c.set(r,n)}let u=(e,n=void 0)=>{if(l&&l(n===C),!(n===C||t.f&16384)){if(r.activate(),n)o.f|=de,Ht(o,n);else{o.f&8388608&&(o.f^=de),Ht(o,e);for(let[e,t]of c){if(c.delete(e),e===r)break;t.reject(C)}}r.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),mn(()=>{for(let e of c.values())e.reject(C)}),new Promise(e=>{function t(n){function r(){n===a?e(o):t(a)}n.then(r,r)}t(a)})}function kt(e){let t=Dt(e);return k||zn(t),t}function At(e){let t=Dt(e);return t.equals=Ie,t}function jt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function Mt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Nt(e){var t,n=K;Rn(Mt(e));try{e.f&=~ce,jt(e),t=Jn(e)}finally{Rn(n)}return t}function Pt(e){var t=e.v,n=Nt(e);if(!e.equals(n)&&(e.wv=Gn(),(!N?.is_fork||e.deps===null)&&(e.v=n,N?.capture(e,t,!0),e.deps===null))){j(e,y);return}In||(P===null?Ye(e):(pn()||N?.is_fork)&&P.set(e,n))}function Ft(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(C),t.teardown=g,t.ac=null,Xn(t,0),Tn(t))}function It(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&Zn(t)}var Lt=new Set,Rt=new Map,zt=!1;function Bt(e,t){return{f:0,v:e,reactions:null,equals:Pe,rv:0,wv:0}}function F(e,t){let n=Bt(e,t);return zn(n),n}function Vt(e,t=!1,n=!0){let r=Bt(e);return t||(r.equals=Ie),Le&&n&&A!==null&&A.l!==null&&(A.l.s??=[]).push(r),r}function I(e,t,n=!1){return U!==null&&(!W||U.f&131072)&&Ve()&&U.f&4325394&&(q===null||!o.call(q,e))&&Ee(),Ht(e,n?Kt(t):t,ot)}function Ht(e,t,n=null){if(!e.equals(t)){var r=e.v;In?Rt.set(e,t):Rt.set(e,r),e.v=t;var i=lt.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Nt(t),P===null&&Ye(t)}e.wv=Gn(),Gt(e,b,n),Ve()&&K!==null&&K.f&1024&&!(K.f&96)&&(X===null?Bn([e]):X.push(e)),!i.is_fork&&Lt.size>0&&!zt&&Ut()}return t}function Ut(){zt=!1;for(let e of Lt)e.f&1024&&j(e,x),Kn(e)&&Zn(e);Lt.clear()}function Wt(e){I(e,e.v+1)}function Gt(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ve(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===K)){var l=(c&b)===0;if(l&&j(s,t),c&2){var u=s;P?.delete(u),c&65536||(c&512&&(s.f|=ce),Gt(u,x,n))}else if(l){var d=s;c&16&&ft!==null&&ft.add(d),n===null?gt(d):n.push(d)}}}}function Kt(e){if(typeof e!=`object`||!e||fe in e)return e;let t=m(e);if(t!==f&&t!==p)return e;var r=new Map,a=i(e),o=F(0),s=null,c=Un,l=e=>{if(Un===c)return e();var t=U,n=Un;G(null),Wn(c);var r=e();return G(t),Wn(n),r};return a&&r.set(`length`,F(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&we();var i=r.get(t);return i===void 0?l(()=>{var e=F(n.value,s);return r.set(t,e),e}):I(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(i===void 0){if(t in e){let e=l(()=>F(n,s));r.set(t,e),Wt(o)}}else I(i,n),Wt(o);return!0},get(t,i,a){if(i===fe)return e;var o=r.get(i),c=i in t;if(o===void 0&&(!c||u(t,i)?.writable)&&(o=l(()=>F(Kt(c?t[i]:n),s)),r.set(i,o)),o!==void 0){var d=Z(o);return d===n?void 0:d}return Reflect.get(t,i,a)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&`value`in i){var a=r.get(t);a&&(i.value=Z(a))}else if(i===void 0){var o=r.get(t),s=o?.v;if(o!==void 0&&s!==n)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return i},has(e,t){if(t===fe)return!0;var i=r.get(t),a=i!==void 0&&i.v!==n||Reflect.has(e,t);return(i!==void 0||K!==null&&(!a||u(e,t)?.writable))&&(i===void 0&&(i=l(()=>F(a?Kt(e[t]):n,s)),r.set(t,i)),Z(i)===n)?!1:a},set(e,t,i,c){var d=r.get(t),f=t in e;if(a&&t===`length`)for(var p=i;p<d.v;p+=1){var m=r.get(p+``);m===void 0?p in e&&(m=l(()=>F(n,s)),r.set(p+``,m)):I(m,n)}if(d===void 0)(!f||u(e,t)?.writable)&&(d=l(()=>F(void 0,s)),I(d,Kt(i)),r.set(t,d));else{f=d.v!==n;var h=l(()=>Kt(i));I(d,h)}var g=Reflect.getOwnPropertyDescriptor(e,t);if(g?.set&&g.set.call(c,i),!f){if(a&&typeof t==`string`){var _=r.get(`length`),v=Number(t);Number.isInteger(v)&&v>=_.v&&I(_,v+1)}Wt(o)}return!0},ownKeys(e){Z(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==n});for(var[i,a]of r)a.v!==n&&!(i in e)&&t.push(i);return t},setPrototypeOf(){Te()}})}var qt,Jt,Yt,Xt;function Zt(){if(qt===void 0){qt=window,Jt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Yt=u(t,`firstChild`).get,Xt=u(t,`nextSibling`).get,h(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),h(n)&&(n.__t=void 0)}}function L(e=``){return document.createTextNode(e)}function Qt(e){return Yt.call(e)}function R(e){return Xt.call(e)}function z(e,t){if(!w)return Qt(e);var n=Qt(E);if(n===null)n=E.appendChild(L());else if(t&&n.nodeType!==3){var r=L();return n?.before(r),D(r),r}return t&&an(n),D(n),n}function $t(e,t=!1){if(!w){var n=Qt(e);return n instanceof Comment&&n.data===``?R(n):n}if(t){if(E?.nodeType!==3){var r=L();return E?.before(r),D(r),r}an(E)}return E}function en(e,t=1,n=!1){let r=w?E:e;for(var i;t--;)i=r,r=R(r);if(!w)return r;if(n){if(r?.nodeType!==3){var a=L();return r===null?i?.after(a):r.before(a),D(a),a}an(r)}return D(r),r}function tn(e){e.textContent=``}function nn(){return!k||ft!==null?!1:(K.f&te)!==0}function rn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function an(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function on(e){w&&Qt(e)!==null&&tn(e)}var sn=!1;function cn(){sn||(sn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function ln(e){var t=U,n=K;G(null),Rn(null);try{return e()}finally{G(t),Rn(n)}}function un(e,t,n,r=n){e.addEventListener(t,()=>ln(n));let i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),cn()}function dn(e){K===null&&(U===null&&be(e),ye()),In&&ve(e)}function fn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function B(e,t){var n=K;n!==null&&n.f&8192&&(e|=S);var r={ctx:A,deps:null,nodes:null,f:e|b|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)at===null?lt.ensure().schedule(r):at.push(r);else if(t!==null){try{Zn(r)}catch(e){throw H(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=re))}if(i!==null&&(i.parent=n,n!==null&&fn(i,n),U!==null&&U.f&2&&!(e&64))){var a=U;(a.effects??=[]).push(i)}return r}function pn(){return U!==null&&!W}function mn(e){let t=B(8,null);return j(t,y),t.teardown=e,t}function hn(e){dn(`$effect`);var t=K.f;if(!U&&t&32&&!(t&32768)){var n=A;(n.e??=[]).push(e)}else return gn(e)}function gn(e){return B(4|oe,e)}function _n(e){lt.ensure();let t=B(64|ae,e);return()=>{H(t)}}function vn(e){lt.ensure();let t=B(64|ae,e);return(e={})=>new Promise(n=>{e.outro?kn(t,()=>{H(t),n(void 0)}):(H(t),n(void 0))})}function yn(e){return B(4,e)}function bn(e){return B(ue|ae,e)}function xn(e,t=0){return B(8|t,e)}function Sn(e,t=[],n=[],r=[]){Ct(r,t,n,t=>{B(8,()=>e(...t.map(Z)))})}function Cn(e,t=0){return B(16|t,e)}function V(e){return B(32|ae,e)}function wn(e){var t=e.teardown;if(t!==null){let e=In,n=U;Ln(!0),G(null);try{t.call(null)}finally{Ln(e),G(n)}}}function Tn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&ln(()=>{e.abort(C)});var r=n.next;n.f&64?n.parent=null:H(n,t),n=r}}function En(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||H(t),t=n}}function H(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Dn(e.nodes.start,e.nodes.end),n=!0),j(e,ne),Tn(e,t&&!n),Xn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();wn(e),e.f^=ne,e.f|=ee;var i=e.parent;i!==null&&i.first!==null&&On(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Dn(e,t){for(;e!==null;){var n=e===t?null:R(e);e.remove(),e=n}}function On(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function kn(e,t,n=!0){var r=[];An(e,r,!0);var i=()=>{n&&H(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function An(e,t,n){if(!(e.f&8192)){e.f^=S;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;An(i,t,o?n:!1),i=a}}}function jn(e){Mn(e,!0)}function Mn(e,t){if(e.f&8192){e.f^=S,e.f&1024||(j(e,b),lt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Mn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Nn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:R(n);t.append(n),n=i}}var Pn=null,Fn=!1,In=!1;function Ln(e){In=e}var U=null,W=!1;function G(e){U=e}var K=null;function Rn(e){K=e}var q=null;function zn(e){U!==null&&(!k||U.f&2)&&(q===null?q=[e]:q.push(e))}var J=null,Y=0,X=null;function Bn(e){X=e}var Vn=1,Hn=0,Un=Hn;function Wn(e){Un=e}function Gn(){return++Vn}function Kn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ce),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Kn(a)&&Pt(a),a.wv>e.wv)return!0}t&512&&P===null&&j(e,y)}return!1}function qn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!k&&q!==null&&o.call(q,e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?qn(a,t,!1):t===a&&(n?j(a,b):a.f&1024&&j(a,x),gt(a))}}function Jn(e){var t=J,n=Y,r=X,i=U,a=q,o=A,s=W,c=Un,l=e.f;J=null,Y=0,X=null,U=l&96?null:e,q=null,Re(e.ctx),W=!1,Un=++Hn,e.ac!==null&&(ln(()=>{e.ac.abort(C)}),e.ac=null);try{e.f|=le;var u=e.fn,d=u();e.f|=te;var f=e.deps,p=N?.is_fork;if(J!==null){var m;if(p||Xn(e,Y),f!==null&&Y>0)for(f.length=Y+J.length,m=0;m<J.length;m++)f[Y+m]=J[m];else e.deps=f=J;if(pn()&&e.f&512)for(m=Y;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Y<f.length&&(Xn(e,Y),f.length=Y);if(Ve()&&X!==null&&!W&&f!==null&&!(e.f&6146))for(m=0;m<X.length;m++)qn(X[m],e);if(i!==null&&i!==e){if(Hn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Hn;if(t!==null)for(let e of t)e.rv=Hn;X!==null&&(r===null?r=X:r.push(...X))}return e.f&8388608&&(e.f^=de),d}catch(e){return Ke(e)}finally{e.f^=le,J=t,Y=n,X=r,U=i,q=a,Re(o),W=s,Un=c}}function Yn(e,t){let n=t.reactions;if(n!==null){var r=a.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(J===null||!o.call(J,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~ce),Ye(s),Ft(s),Xn(s,0)}}function Xn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Yn(e,n[r])}function Zn(e){var t=e.f;if(!(t&16384)){j(e,y);var n=K,r=Fn;K=e,Fn=!0;try{t&16777232?En(e):Tn(e),wn(e);var i=Jn(e);e.teardown=typeof i==`function`?i:null,e.wv=Vn}finally{Fn=r,K=n}}}async function Qn(){if(k)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),ut()}function Z(e){var t=(e.f&2)!=0;if(Pn?.add(e),U!==null&&!W&&!(K!==null&&K.f&16384)&&(q===null||!o.call(q,e))){var n=U.deps;if(U.f&2097152)e.rv<Hn&&(e.rv=Hn,J===null&&n!==null&&n[Y]===e?Y++:J===null?J=[e]:J.push(e));else{(U.deps??=[]).push(e);var r=e.reactions;r===null?e.reactions=[U]:o.call(r,U)||r.push(U)}}if(In&&Rt.has(e))return Rt.get(e);if(t){var i=e;if(In){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||er(i))&&(a=Nt(i)),Rt.set(i,a),a}var s=(i.f&512)==0&&!W&&U!==null&&(Fn||(U.f&512)!=0),c=(i.f&te)===0;Kn(i)&&(s&&(i.f|=512),Pt(i)),s&&!c&&(It(i),$n(i))}if(P?.has(e))return P.get(e);if(e.f&8388608)throw e.v;return e.v}function $n(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(It(t),$n(t))}function er(e){if(e.v===n)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Rt.has(t)||t.f&2&&er(t))return!0;return!1}function tr(e){var t=W;try{return W=!0,e()}finally{W=t}}var nr=Symbol(`events`),rr=new Set,ir=new Set;function ar(e,t,n,r={}){function i(e){if(r.capture||ur.call(t,e),!e.cancelBubble)return ln(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?We(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function or(e,t,n,r,i){var a={capture:r,passive:i},o=ar(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&mn(()=>{t.removeEventListener(e,o,a)})}function sr(e,t,n){(t[nr]??={})[e]=n}function cr(e){for(var t=0;t<e.length;t++)rr.add(e[t]);for(var n of ir)n(e)}var lr=null;function ur(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;lr=e;var o=0,s=lr===e&&e[nr];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[nr]=t;return}var u=i.indexOf(t);if(u===-1)return;c<=u&&(o=c)}if(a=i[o]||e.target,a!==t){l(e,`currentTarget`,{configurable:!0,get(){return a||n}});var d=U,f=K;G(null),Rn(null);try{for(var p,m=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var g=a[nr]?.[r];g!=null&&(!a.disabled||e.target===a)&&g.call(a,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;a=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[nr]=t,delete e.currentTarget,G(d),Rn(f)}}}var dr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function fr(e){return dr?.createHTML(e)??e}function pr(e){var t=rn(`template`);return t.innerHTML=fr(e.replaceAll(`<!>`,`<!---->`)),t.content}function mr(e,t){var n=K;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Q(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(w)return mr(E,null),E;i===void 0&&(i=pr(a?e:`<!>`+e),n||(i=Qt(i)));var t=r||Jt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=Qt(t),s=t.lastChild;mr(o,s)}else mr(t,t);return t}}function hr(){if(w)return mr(E,null),E;var e=document.createDocumentFragment(),t=document.createComment(``),n=L();return e.append(t,n),mr(t,n),e}function $(e,t){if(w){var n=K;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=E),Ae();return}e!==null&&e.before(t)}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var gr=[`touchstart`,`touchmove`];function _r(e){return gr.includes(e)}function vr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function yr(e,t){return Sr(e,t)}function br(e,n){Zt(),n.intro=n.intro??!1;let r=n.target,i=w,a=E;try{for(var o=Qt(r);o&&(o.nodeType!==8||o.data!==`[`);)o=R(o);if(!o)throw t;T(!0),D(o);let i=Sr(e,{...n,anchor:o});return T(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
|
|
2
|
+
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw i;return i!==t&&console.warn(`Failed to hydrate: `,i),n.recover===!1&&Se(),Zt(),tn(r),T(!1),yr(e,n)}finally{T(i),D(a)}}var xr=new Map;function Sr(e,{target:n,anchor:r,props:i={},events:a,context:o,intro:c=!0,transformError:l}){Zt();var u=void 0,d=vn(()=>{var c=r??n.appendChild(L());xt(c,{pending:()=>{}},n=>{ze({});var r=A;if(o&&(r.c=o),a&&(i.$$events=a),w&&mr(n,null),u=e(n,i)||{},w&&(K.nodes.end=E,E===null||E.nodeType!==8||E.data!==`]`))throw Oe(),t;Be()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=_r(r);for(let e of[n,document]){var a=xr.get(e);a===void 0&&(a=new Map,xr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,ur,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return f(s(rr)),ir.add(f),()=>{for(var e of d)for(let r of[n,document]){var t=xr.get(r),i=t.get(e);--i==0?(r.removeEventListener(e,ur),t.delete(e),t.size===0&&xr.delete(r)):t.set(e,i)}ir.delete(f),c!==r&&c.parentNode?.removeChild(c)}});return Cr.set(u,d),u}var Cr=new WeakMap;function wr(e,t){let n=Cr.get(e);return n?(Cr.delete(e),n(t)):Promise.resolve()}var Tr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)jn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(H(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Nn(r,t),t.append(L()),this.#n.set(e,{effect:r,fragment:t})}else H(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),kn(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(H(n.effect),this.#n.delete(e))};ensure(e,t){var n=N,r=nn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=L();i.append(a),this.#n.set(e,{effect:V(()=>t(a)),fragment:i})}else this.#t.set(e,V(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else w&&(this.anchor=E),this.#a(n)}};function Er(e,t,n=!1){var r;w&&(r=E,Ae());var i=new Tr(e),a=n?re:0;function o(e,t){if(w){var n=Ne(r);if(e!==parseInt(n.substring(1))){var a=Me();D(a),i.anchor=a,T(!1),i.ensure(e,t),T(!0);return}}i.ensure(e,t)}Cn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function Dr(e,t,n){for(var r=[],i=t.length,a,o=t.length,c=0;c<i;c++){let n=t[c];kn(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;Or(e,s(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;tn(d),d.append(u),e.items.clear()}Or(e,t,!l)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Or(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=se,Nn(a,document.createDocumentFragment())):H(t[i],n)}}var kr;function Ar(e,t,n,r,a,o=null){var c=e,l=new Map;if(t&4){var u=e;c=w?D(Qt(u)):u.appendChild(L())}w&&Ae();var d=null,f=At(()=>{var e=n();return i(e)?e:e==null?[]:s(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Mr(v,p,c,t,r),d!==null&&(p.length===0?d.f&33554432?(d.f^=se,Pr(d,null,c)):jn(d):kn(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:Cn(()=>{p=Z(f);var e=p.length;let i=!1;w&&Ne(c)===`[!`!=(e===0)&&(c=Me(),D(c),T(!1),i=!0);for(var s=new Set,u=N,v=nn(),y=0;y<e;y+=1){w&&E.nodeType===8&&E.data===`]`&&(c=E,i=!0,T(!1));var b=p[y],x=r(b,y),S=h?null:l.get(x);S?(S.v&&Ht(S.v,b),S.i&&Ht(S.i,y),v&&u.unskip_effect(S.e)):(S=Nr(l,h?c:kr??=L(),b,x,y,a,t,n),h||(S.e.f|=se),l.set(x,S)),s.add(x)}if(e===0&&o&&!d&&(h?d=V(()=>o(c)):(d=V(()=>o(kr??=L())),d.f|=se)),e>s.size&&_e(``,``,``),w&&e>0&&D(Me()),!h)if(m.set(u,s),v){for(let[e,t]of l)s.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);i&&T(!0),Z(f)}),flags:t,items:l,pending:m,outrogroups:null,fallback:d};h=!1,w&&(c=E)}function jr(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Mr(e,t,n,r,i){var a=(r&8)!=0,o=t.length,c=e.items,l=jr(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(a)for(v=0;v<o;v+=1)h=t[v],g=i(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<o;v+=1){if(h=t[v],g=i(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(jn(_),a&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=se,_===l)Pr(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Fr(e,d,_),Fr(e,_,y),Pr(_,y,n),d=_,p=[],m=[],l=jr(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],ee=p[p.length-1];for(x=0;x<p.length;x+=1)Pr(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Fr(e,S.prev,ee.next),Fr(e,d,S),Fr(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),Pr(_,l,n),Fr(e,_.prev,_.next),Fr(e,_,d===null?e.effect.first:d.next),Fr(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=jr(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=jr(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Or(e,s(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var te=[];if(u!==void 0)for(_ of u)_.f&8192||te.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&te.push(l),l=jr(l.next);var ne=te.length;if(ne>0){var re=r&4&&o===0?n:null;if(a){for(v=0;v<ne;v+=1)te[v].nodes?.a?.measure();for(v=0;v<ne;v+=1)te[v].nodes?.a?.fix()}Dr(e,te,re)}}a&&We(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Nr(e,t,n,r,i,a,o,s){var c=o&1?o&16?Bt(n):Vt(n,!1,!1):null,l=o&2?Bt(i):null;return{v:c,i:l,e:V(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Pr(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=R(r);if(a.before(r),r===i)return;r=o}}function Fr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Ir(e,t){let n=null,r=w;var i;if(w){n=E;for(var a=Qt(document.head);a!==null&&(a.nodeType!==8||a.data!==e);)a=R(a);if(a===null)T(!1);else{var o=R(a);a.remove(),D(o)}}w||(i=document.head.appendChild(L()));try{Cn(()=>t(i),ie|ae)}finally{r&&(T(!0),D(n))}}function Lr(e,t){yn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector(`#`+t.hash)){let e=rn(`style`);e.id=t.hash,e.textContent=t.code,r.appendChild(e)}})}var Rr=[...`
|
|
3
|
+
\r\f\xA0\v`];function zr(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Rr.includes(r[o-1]))&&(s===r.length||Rr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Br(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function Vr(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function Hr(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(Vr)),i&&c.push(...Object.keys(i).map(Vr));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=Vr(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Br(r)),i&&(n+=Br(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Ur(e,t,n,r,i,a){var o=e.__className;if(w||o!==n||o===void 0){var s=zr(n,r,a);(!w||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Wr(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function Gr(e,t,n,r){var i=e.__style;if(w||i!==t){var a=Hr(t,r);(!w||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(Wr(e,n?.[0],r[0]),Wr(e,n?.[1],r[1],`important`)):Wr(e,n,r));return r}var Kr=Symbol(`is custom element`),qr=Symbol(`is html`),Jr=he?`link`:`LINK`;function Yr(e,t,n,r){var i=Xr(e);w&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Jr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[me]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Qr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Xr(e){return e.__attributes??={[Kr]:e.nodeName.includes(`-`),[qr]:e.namespaceURI===r}}var Zr=new Map;function Qr(e){var t=e.getAttribute(`is`)||e.nodeName,n=Zr.get(t);if(n)return n;Zr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=d(i),r)r[o].set&&n.push(o);i=m(i)}return n}function $r(e,t,n=t){var r=new WeakSet;un(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=ei(e)?ti(a):a,n(a),N!==null&&r.add(N),await Qn(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(w&&e.defaultValue!==e.value||tr(t)==null&&e.value)&&(n(ei(e)?ti(e.value):e.value),N!==null&&r.add(N)),xn(()=>{var n=t();if(e===document.activeElement){var i=k?tt:N;if(r.has(i))return}ei(e)&&n===ti(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function ei(e){var t=e.type;return t===`number`||t===`range`}function ti(e){return e===``?null:+e}function ni(e,t){return e===t||e?.[fe]===t}function ri(e={},t,n,r){var i=A.r,a=K;return yn(()=>{var o,s;return xn(()=>{o=s,s=r?.()||[],tr(()=>{e!==n(...s)&&(t(e,...s),o&&ni(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&ni(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function ii(e,t,n,r){var i=!Le||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=()=>(c&&(c=!1,s=o?tr(r):r),s);let d;if(a){var f=fe in e||pe in e;d=u(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=et(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=l(),d&&(i&&Ce(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?l():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?Dt:At)(()=>(_=!1,h()));a&&Z(v);var y=K;return(function(e,t){if(arguments.length>0){let n=t?Z(v):i&&a?Kt(e):e;return I(v,n),_=!0,s!==void 0&&(s=n),e}return In&&_||y.f&16384?v.v:Z(v)})}function ai(e){return new oi(e)}var oi=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=Vt(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Z(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===pe?!0:(Z(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return I(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?br:yr)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!k&&(!e?.props?.$$host||e.sync===!1)&&ut(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||l(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{wr(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}},si;typeof HTMLElement==`function`&&(si=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){let e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function e(e){return t=>{let n=rn(`slot`);e!==`default`&&(n.name=e),$(t,n)}}let t={},n=li(this);for(let r of this.$$s)r in n&&(r===`default`&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(let e of this.attributes){let t=this.$$g_p(e.name);t in this.$$d||(this.$$d[t]=ci(t,e.value,this.$$p_d,`toProp`))}for(let e in this.$$p_d)!(e in this.$$d)&&this[e]!==void 0&&(this.$$d[e]=this[e],delete this[e]);this.$$c=ai({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=_n(()=>{xn(()=>{this.$$r=!0;for(let e of c(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];let t=ci(e,this.$$d[e],this.$$p_d,`toAttribute`);t==null?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(let e in this.$$l)for(let t of this.$$l[e]){let n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=ci(e,n,this.$$p_d,`toProp`),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return c(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function ci(e,t,n,r){let i=n[e]?.type;if(t=i===`Boolean`&&typeof t!=`boolean`?t!=null:t,!r||!n[e])return t;if(r===`toAttribute`)switch(i){case`Object`:case`Array`:return t==null?null:JSON.stringify(t);case`Boolean`:return t?``:null;case`Number`:return t??null;default:return t}else switch(i){case`Object`:case`Array`:return t&&JSON.parse(t);case`Boolean`:return t;case`Number`:return t==null?t:+t;default:return t}}function li(e){let t={};return e.childNodes.forEach(e=>{t[e.slot||`default`]=!0}),t}function ui(e,t,n,r,i,a){let o=class extends si{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return c(t).map(e=>(t[e].attribute||e).toLowerCase())}};return c(t).forEach(e=>{l(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=ci(e,n,t),this.$$d[e]=n;var r=this.$$c;r&&(u(r,e)?.get?r[e]=n:r.$set({[e]:n}))}})}),r.forEach(e=>{l(o.prototype,e,{get(){return this.$$c?.[e]}})}),a&&(o=a(o)),e.element=o,o}var di=Q(`<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css" class="svelte-1p3vbiv"/>`),fi=Q(`<img class="file-image svelte-1p3vbiv"/>`),pi=Q(`<i></i>`),mi=Q(`<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>`),hi=Q(`<div id="files-display" class="svelte-1p3vbiv"><div class="row g-2 svelte-1p3vbiv"></div></div>`),gi=Q(`<button id="maximize-button" type="button"><i></i></button>`),_i=Q(`<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>`),vi=Q(`<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>`),yi=Q(`<button type="button"><i></i> </button>`),bi=Q(`<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>`),xi={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/)
|
|
@@ -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
|
|
190
|
-
//# sourceMappingURL=main.iife.js.map
|
|
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 Si(e,t){ze(t,!0),Lr(e,xi);function n(e,n){t.$$host.dispatchEvent(new CustomEvent(e,{detail:n}))}let r=ii(t,`id`,7,``),i=ii(t,`text`,7,``),a=ii(t,`expandable`,7,!1),o=ii(t,`tags`,23,()=>[]),s=ii(t,`files`,7),c=F(Kt([])),l=F(130),u=F(0),d=F(0),f,p,m=F(!1),h=F(!1),g=F(Kt([]));function _(){let e=[`#e74c3c`,`#3498db`,`#2ecc71`,`#f39c12`,`#9b59b6`,`#1abc9c`,`#34495e`,`#e67e22`,`#95a5a6`,`#f1c40f`,`#e91e63`,`#00bcd4`,`#4caf50`,`#ff9800`,`#673ab7`];return e[Math.floor(Math.random()*e.length)]}function v(e){return e.color||_()}hn(()=>{if(typeof o()==`string`)try{o(JSON.parse(o()))}catch(e){console.error(`error parsing buttons`,e)}if(typeof s()==`string`)try{s(JSON.parse(s()))}catch(e){console.error(`error parsing files`,e)}typeof a()==`string`&&a(a()===`yes`||a()===`true`)}),hn(()=>{f&&i()&&setTimeout(()=>{se()},0)}),hn(()=>{if(p){let e=new ResizeObserver(e=>{for(let t of e)I(d,t.contentRect.width,!0)});return e.observe(p),I(d,p.offsetWidth,!0),()=>{e.disconnect()}}}),hn(()=>{if(Z(c).length>0){let e=y(Z(d)),t=Math.ceil(Z(c).length/e),n=t>1?(t-1)*8:0,r=t*108+n+16;I(u,Math.min(r,250),!0)}else I(u,0);f&&se()}),hn(()=>{s()?.mode===`single`&&Z(c).length>1&&I(c,[Z(c)[0]],!0)});function y(e){return e>=992?4:e>=768?3:2}function b(){return Date.now().toString(36)+Math.random().toString(36).substr(2)}function x(e){let t=e.target,n=t.files;if(n)if(s()?.mode===`single`){let e=n[0];I(c,[{id:b(),name:e.name,mimetype:e.type,fileSize:e.size,content:e,objectUrl:e.type.startsWith(`image/`)?URL.createObjectURL(e):void 0}],!0)}else for(let e=0;e<n.length;e++){let t=n[e],r={id:b(),name:t.name,mimetype:t.type,fileSize:t.size,content:t,objectUrl:t.type.startsWith(`image/`)?URL.createObjectURL(t):void 0};I(c,[...Z(c),r],!0)}t.value=``}function S(e){let t=Z(c).find(t=>t.id===e);t&&t.objectUrl&&URL.revokeObjectURL(t.objectUrl),I(c,Z(c).filter(t=>t.id!==e),!0)}function ee(e){return e.startsWith(`image/`)?`bi-image`:e.startsWith(`video/`)?`bi-play-circle`:e.startsWith(`audio/`)?`bi-music-note`:e.includes(`pdf`)?`bi-file-pdf`:e.includes(`word`)||e.includes(`document`)?`bi-file-word`:e.includes(`excel`)||e.includes(`spreadsheet`)?`bi-file-excel`:e.includes(`powerpoint`)||e.includes(`presentation`)?`bi-file-ppt`:e.includes(`zip`)||e.includes(`rar`)||e.includes(`archive`)?`bi-file-zip`:`bi-file-earmark`}function te(e){if(e===0)return`0 B`;let t=1024,n=[`B`,`KB`,`MB`,`GB`,`TB`],r=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/t**+r).toFixed(1))+` `+n[r]}function ne(){if(!i()?.length&&!Z(c).length)return console.warn(`no message to send`);console.log(`send message `+i()),n(`sendMessage`,{text:i(),id:r(),files:Z(c),tags:Z(g)||[]})}function re(e){I(g,Z(g).includes(e)?Z(g).filter(t=>t!==e):[...Z(g),e],!0)}function ie(e){e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),ne())}function ae(){a()&&!Z(m)&&se()}function oe(){I(m,!Z(m)),Z(m)?(f.style.height=`400px`,f.style.maxHeight=`400px`,f.style.minHeight=`400px`,f.style.overflowY=`auto`,I(l,484+Z(u))):(f.style.maxHeight=``,f.style.minHeight=``,f.style.height=`140px`,f.style.overflowY=`auto`,I(l,224+Z(u)),I(h,!0))}function se(){if(f&&!Z(m)){f.style.height=`auto`;let e=f.scrollHeight,t=40;a()&&(t=Math.max(e,80));let n=Math.min(Math.max(e,t),140);f.style.height=n+`px`,e>140?f.style.overflowY=`auto`:f.style.overflowY=`hidden`,I(l,Math.max(32+n+52+Z(u),130),!0),I(h,n>=140)}}var ce={get id(){return r()},set id(e=``){r(e),ut()},get text(){return i()},set text(e=``){i(e),ut()},get expandable(){return a()},set expandable(e=!1){a(e),ut()},get tags(){return o()},set tags(e=[]){o(e),ut()},get files(){return s()},set files(e){s(e),ut()}},le=bi();Ir(`1p3vbiv`,e=>{$(e,di())});var ue=z(le),de=z(ue),fe=e=>{var t=hi(),n=z(t);Ar(n,21,()=>Z(c),e=>e.id,(e,t)=>{var n=mi(),r=z(n),i=z(r),a=z(i),o=e=>{var n=fi();Sn(()=>{Yr(n,`src`,Z(t).objectUrl),Yr(n,`alt`,Z(t).name)}),$(e,n)},s=kt(()=>Z(t).mimetype.startsWith(`image/`)&&Z(t).objectUrl),c=e=>{var n=pi();Sn(e=>Ur(n,1,`bi ${e??``} file-icon`,`svelte-1p3vbiv`),[()=>ee(Z(t).mimetype)]),$(e,n)};Er(a,e=>{Z(s)?e(o):e(c,-1)}),O(i);var l=en(i,2),u=z(l),d=z(u,!0);O(u);var f=en(u,2),p=z(f),m=z(p,!0);O(p),O(f),O(l);var h=en(l,2);O(r),O(n),Sn(e=>{Yr(u,`title`,Z(t).name),vr(d,Z(t).name),vr(m,e)},[()=>te(Z(t).fileSize)]),sr(`click`,h,()=>S(Z(t).id)),$(e,n)}),O(n),O(t),Sn(()=>Gr(t,`height: ${Z(u)??``}px;`)),$(e,t)};Er(de,e=>{Z(c).length>0&&e(fe)});var pe=en(de,2),me=z(pe);on(me);let C;ri(me,e=>f=e,()=>f);var he=en(me,2),ge=e=>{var t=gi();let n;var r=z(t);O(t),Sn(()=>{Yr(t,`aria-label`,Z(m)?`Minimize textarea`:`Maximize textarea`),Yr(t,`title`,Z(m)?`Minimize textarea`:`Maximize textarea`),n=Ur(t,1,`svelte-1p3vbiv`,null,n,{maximized:Z(m)}),Ur(r,1,`bi bi-${Z(m)?`arrows-angle-contract`:`arrows-angle-expand`}`,`svelte-1p3vbiv`)}),sr(`click`,t,oe),$(e,t)};Er(he,e=>{Z(h)&&e(ge)}),O(pe);var _e=en(pe,2),ve=z(_e),ye=z(ve),be=e=>{var t=vi(),n=z(t),r=en(n,4),i=e=>{var t=_i(),n=z(t);je(),O(t),Sn(()=>vr(n,`${Z(c).length??``} `)),$(e,t)};Er(r,e=>{Z(c).length>0&&e(i)}),O(t),Sn(()=>n.multiple=s()?.mode!==`single`),sr(`change`,n,x),$(e,t)};Er(ye,e=>{typeof s()==`object`&&e(be)});var xe=en(ye,2),Se=e=>{var t=hr();Ar($t(t),17,o,e=>e.id,(e,t)=>{var n=yi();let r;var i=z(n),a=en(i);O(n),Sn((e,o)=>{r=Ur(n,1,`btn tag-button btn-sm svelte-1p3vbiv`,null,r,e),Gr(n,`--tag-color: ${o??``}`),Yr(n,`aria-label`,`Use ${Z(t).label}`),Ur(i,1,`bi bi-${Z(t).icon??``}`,`svelte-1p3vbiv`),vr(a,` ${Z(t).label??``}`)},[()=>({"tag-selected":Z(g).includes(Z(t).id)}),()=>v(Z(t))]),sr(`click`,n,()=>re(Z(t).id)),$(e,n)}),$(e,t)};Er(xe,e=>{o()?.length&&typeof o()==`object`&&e(Se)}),O(ve);var Ce=en(ve,2),we=z(Ce);return O(Ce),O(_e),O(ue),O(le),ri(le,e=>p=e,()=>p),Sn(()=>{Gr(ue,`height: ${Z(l)??``}px;`),C=Ur(me,1,`svelte-1p3vbiv`,null,C,{expandable:a(),maximized:Z(m)}),we.disabled=!(i()?.length||Z(c).length),Gr(we,`opacity:${i()?.length||Z(c).length?`1`:`0.25`}`)}),sr(`keydown`,me,ie),sr(`input`,me,se),or(`focus`,me,ae),$r(me,i),sr(`click`,we,()=>ne()),$(e,le),Be(ce)}cr([`click`,`keydown`,`input`,`change`]),customElements.define(`hb-messages-send`,ui(Si,{id:{},text:{},expandable:{},tags:{},files:{}},[],[],{mode:`open`})),e.Component=Si})(this[`messages-send`]=this[`messages-send`]||{});
|
|
190
|
+
//# sourceMappingURL=main.iife.js.map
|