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