@htmlbricks/hb-messages-box 0.66.3 → 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 +50 -48
- package/package.json +1 -1
package/main.iife.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(wt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const kn=1,Ln=4,Pn=8,Mn=16,Dn=2,yt="[",bt="[!",$t="[?",Et="]",Ne={},N=Symbol(),Tt="http://www.w3.org/1999/xhtml",In=!1;var jn=Array.isArray,Fn=Array.prototype.indexOf,me=Array.prototype.includes,qn=Array.from,Le=Object.keys,Pe=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,Bn=Object.getOwnPropertyDescriptors,Hn=Object.prototype,Yn=Array.prototype,xt=Object.getPrototypeOf,Nt=Object.isExtensible;const Un=()=>{};function Vn(e){for(var t=0;t<e.length;t++)e[t]()}function St(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const E=2,we=4,Me=8,At=1<<24,J=16,V=32,K=64,Ke=128,L=512,T=1024,S=2048,Y=4096,X=8192,F=16384,Z=32768,Rt=1<<25,De=65536,Ot=1<<17,zn=1<<18,fe=1<<19,Wn=1<<20,ue=65536,Xe=1<<21,Ze=1<<22,Q=1<<23,Ie=Symbol("$state"),Ct=Symbol("legacy props"),Gn=Symbol(""),z=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"),kt=3,Qe=8;function Kn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Xn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Zn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Qn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function er(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function tr(){throw new Error("https://svelte.dev/e/hydration_failed")}function nr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function rr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ir(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function sr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function lr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function et(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function or(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let y=!1;function ye(e){y=e}let b;function ee(e){if(e===null)throw et(),Ne;return b=e}function Lt(){return ee(se(b))}function tt(e){if(y){if(se(b)!==null)throw et(),Ne;b=e}}function ar(e=1){if(y){for(var t=e,n=b;t--;)n=se(n);b=n}}function fr(e=!0){for(var t=0,n=b;;){if(n.nodeType===Qe){var r=n.data;if(r===Et){if(t===0)return n;t-=1}else(r===yt||r===bt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=se(n);e&&n.remove(),n=i}}function Pt(e){return e===this.v}function ur(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Mt(e){return!ur(e,this.v)}let cr=!1,P=null;function be(e){P=e}function Dt(e,t=!1,n){P={p:P,i:!1,c:null,e:null,s:e,x:null,r:g,l:null}}function It(e){var t=P,n=t.e;if(n!==null){t.e=null;for(var r of n)ln(r)}return e!==void 0&&(t.x=e),t.i=!0,P=t.p,e??{}}function jt(){return!0}let ce=[];function Ft(){var e=ce;ce=[],Vn(e)}function he(e){if(ce.length===0&&!Se){var t=ce;queueMicrotask(()=>{t===ce&&Ft()})}ce.push(e)}function hr(){for(;ce.length>0;)Ft()}function qt(e){var t=g;if(t===null)return p.f|=Q,e;if((t.f&Z)===0&&(t.f&we)===0)throw e;te(e,t)}function te(e,t){for(;t!==null;){if((t.f&Ke)!==0){if((t.f&Z)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const dr=-7169;function $(e,t){e.f=e.f&dr|t}function nt(e){(e.f&L)!==0||e.deps===null?$(e,T):$(e,Y)}function Bt(e){if(e!==null)for(const t of e)(t.f&E)===0||(t.f&ue)===0||(t.f^=ue,Bt(t.deps))}function Ht(e,t,n){(e.f&S)!==0?t.add(e):(e.f&Y)!==0&&n.add(e),Bt(e.deps),$(e,T)}let je=!1;function vr(e){var t=je;try{return je=!1,[e(),je]}finally{je=t}}const ne=new Set;let w=null,q=null,rt=null,Se=!1,it=!1,$e=null,Fe=null;var Yt=0;let _r=1;class re{id=_r++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#s=new Map;#a=new Map;#l=null;#t=[];#r=new Set;#i=new Set;#o=new Map;is_fork=!1;#c=!1;#f=new Set;#h(){return this.is_fork||this.#a.size>0}#v(){for(const r of this.#f)for(const i of r.#a.keys()){for(var t=!1,n=i;n.parent!==null;){if(this.#o.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#o.has(t)||this.#o.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#o.get(t);if(n){this.#o.delete(t);for(var r of n.d)$(r,S),this.schedule(r);for(r of n.m)$(r,Y),this.schedule(r)}}#d(){if(Yt++>1e3&&(ne.delete(this),pr()),!this.#h()){for(const l of this.#r)this.#i.delete(l),$(l,S),this.schedule(l);for(const l of this.#i)$(l,Y),this.schedule(l)}const t=this.#t;this.#t=[],this.apply();var n=$e=[],r=[],i=Fe=[];for(const l of t)try{this.#u(l,n,r)}catch(f){throw Gt(l),f}if(w=null,i.length>0){var s=re.ensure();for(const l of i)s.schedule(l)}if($e=null,Fe=null,this.#h()||this.#v()){this.#_(r),this.#_(n);for(const[l,f]of this.#o)Wt(l,f)}else{this.#s.size===0&&ne.delete(this),this.#r.clear(),this.#i.clear();for(const l of this.#e)l(this);this.#e.clear(),Ut(r),Ut(n),this.#l?.resolve()}var o=w;if(this.#t.length>0){const l=o??=this;l.#t.push(...this.#t.filter(f=>!l.#t.includes(f)))}o!==null&&(ne.add(o),o.#d()),ne.has(this)||this.#p()}#u(t,n,r){t.f^=T;for(var i=t.first;i!==null;){var s=i.f,o=(s&(V|K))!==0,l=o&&(s&T)!==0,f=l||(s&X)!==0||this.#o.has(i);if(!f&&i.fn!==null){o?i.f^=T:(s&we)!==0?n.push(i):Oe(i)&&((s&J)!==0&&this.#i.add(i),xe(i));var a=i.first;if(a!==null){i=a;continue}}for(;i!==null;){var u=i.next;if(u!==null){i=u;break}i=i.parent}}}#_(t){for(var n=0;n<t.length;n+=1)Ht(t[n],this.#r,this.#i)}capture(t,n,r=!1){n!==N&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Q)===0&&(this.current.set(t,[t.v,r]),q?.set(t,t.v))}activate(){w=this}deactivate(){w=null,q=null}flush(){try{it=!0,w=this,this.#d()}finally{Yt=0,rt=null,$e=null,Fe=null,it=!1,w=null,q=null,ie.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),ne.delete(this)}#p(){for(const a of ne){var t=a.id<this.id,n=[];for(const[u,[h,c]]of this.current){if(a.current.has(u)){var r=a.current.get(u)[0];if(t&&h!==r)a.current.set(u,[h,c]);else continue}n.push(u)}var i=[...a.current.keys()].filter(u=>!this.current.has(u));if(i.length===0)t&&a.discard();else if(n.length>0){a.activate();var s=new Set,o=new Map;for(var l of n)Vt(l,i,s,o);if(a.#t.length>0){a.apply();for(var f of a.#t)a.#u(f,[],[]);a.#t=[]}a.deactivate()}}for(const a of ne)a.#f.has(this)&&(a.#f.delete(this),a.#f.size===0&&!a.#h()&&(a.activate(),a.#d()))}increment(t,n){let r=this.#s.get(n)??0;if(this.#s.set(n,r+1),t){let i=this.#a.get(n)??0;this.#a.set(n,i+1)}}decrement(t,n,r){let i=this.#s.get(n)??0;if(i===1?this.#s.delete(n):this.#s.set(n,i-1),t){let s=this.#a.get(n)??0;s===1?this.#a.delete(n):this.#a.set(n,s-1)}this.#c||r||(this.#c=!0,he(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#r.add(r);for(const r of n)this.#i.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#l??=St()).promise}static ensure(){if(w===null){const t=w=new re;it||(ne.add(w),Se||he(()=>{w===t&&t.flush()}))}return w}apply(){{q=null;return}}schedule(t){if(rt=t,t.b?.is_pending&&(t.f&(we|Me|At))!==0&&(t.f&Z)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if($e!==null&&n===g&&(p===null||(p.f&E)===0))return;if((r&(K|V))!==0){if((r&T)===0)return;n.f^=T}}this.#t.push(n)}}function Ee(e){var t=Se;Se=!0;try{for(var n;;){if(hr(),w===null)return n;w.flush()}}finally{Se=t}}function pr(){try{er()}catch(e){te(e,rt)}}let W=null;function Ut(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(F|X))===0&&Oe(r)&&(W=new Set,xe(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&fn(r),W?.size>0)){ie.clear();for(const i of W){if((i.f&(F|X))!==0)continue;const s=[i];let o=i.parent;for(;o!==null;)W.has(o)&&(W.delete(o),s.push(o)),o=o.parent;for(let l=s.length-1;l>=0;l--){const f=s[l];(f.f&(F|X))===0&&xe(f)}}W.clear()}}W=null}}function Vt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&E)!==0?Vt(i,t,n,r):(s&(Ze|J))!==0&&(s&S)===0&&zt(i,t,r)&&($(i,S),st(i))}}function zt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(me.call(t,i))return!0;if((i.f&E)!==0&&zt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function st(e){w.schedule(e)}function Wt(e,t){if(!((e.f&V)!==0&&(e.f&T)!==0)){(e.f&S)!==0?t.d.push(e):(e.f&Y)!==0&&t.m.push(e),$(e,T);for(var n=e.first;n!==null;)Wt(n,t),n=n.next}}function Gt(e){$(e,T);for(var t=e.first;t!==null;)Gt(t),t=t.next}function gr(e){let t=0,n=Ae(0),r;return()=>{dt()&&(k(n),on(()=>(t===0&&(r=wn(()=>e(()=>Re(n)))),t+=1,()=>{he(()=>{t-=1,t===0&&(r?.(),r=void 0,Re(n))})})))}}var mr=De|fe;function wr(e,t,n,r){new yr(e,t,n,r)}class yr{parent;is_pending=!1;transform_error;#e;#n=y?b:null;#s;#a;#l;#t=null;#r=null;#i=null;#o=null;#c=0;#f=0;#h=!1;#v=new Set;#d=new Set;#u=null;#_=gr(()=>(this.#u=Ae(this.#c),()=>{this.#u=null}));constructor(t,n,r,i){this.#e=t,this.#s=n,this.#a=s=>{var o=g;o.b=this,o.f|=Ke,r(s)},this.parent=g.b,this.transform_error=i??this.parent?.transform_error??(s=>s),this.#l=qr(()=>{if(y){const s=this.#n;Lt();const o=s.data===bt;if(s.data.startsWith($t)){const f=JSON.parse(s.data.slice($t.length));this.#b(f)}else o?this.#$():this.#p()}else this.#w()},mr),y&&(this.#e=b)}#p(){try{this.#t=de(()=>this.#a(this.#e))}catch(t){this.error(t)}}#b(t){const n=this.#s.failed;n&&(this.#i=de(()=>{n(this.#e,()=>t,()=>()=>{})}))}#$(){const t=this.#s.pending;t&&(this.is_pending=!0,this.#r=de(()=>t(this.#e)),he(()=>{var n=this.#o=document.createDocumentFragment(),r=He();n.append(r),this.#t=this.#m(()=>de(()=>this.#a(r))),this.#f===0&&(this.#e.before(n),this.#o=null,Ve(this.#r,()=>{this.#r=null}),this.#g(w))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#c=0,this.#t=de(()=>{this.#a(this.#e)}),this.#f>0){var t=this.#o=document.createDocumentFragment();Yr(this.#t,t);const n=this.#s.pending;this.#r=de(()=>n(this.#e))}else this.#g(w)}catch(n){this.error(n)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#v,this.#d)}defer_effect(t){Ht(t,this.#v,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#s.pending}#m(t){var n=g,r=p,i=P;D(this.#l),R(this.#l),be(this.#l.ctx);try{return re.ensure(),t()}catch(s){return qt(s),null}finally{D(n),R(r),be(i)}}#y(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t,n);return}this.#f+=t,this.#f===0&&(this.#g(n),this.#r&&Ve(this.#r,()=>{this.#r=null}),this.#o&&(this.#e.before(this.#o),this.#o=null))}update_pending_count(t,n){this.#y(t,n),this.#c+=t,!(!this.#u||this.#h)&&(this.#h=!0,he(()=>{this.#h=!1,this.#u&&Be(this.#u,this.#c)}))}get_effect_pending(){return this.#_(),k(this.#u)}error(t){var n=this.#s.onerror;let r=this.#s.failed;if(!n&&!r)throw t;this.#t&&(B(this.#t),this.#t=null),this.#r&&(B(this.#r),this.#r=null),this.#i&&(B(this.#i),this.#i=null),y&&(ee(this.#n),ar(),ee(fr()));var i=!1,s=!1;const o=()=>{if(i){or();return}i=!0,s&&lr(),this.#i!==null&&Ve(this.#i,()=>{this.#i=null}),this.#m(()=>{this.#w()})},l=f=>{try{s=!0,n?.(f,o),s=!1}catch(a){te(a,this.#l&&this.#l.parent)}r&&(this.#i=this.#m(()=>{try{return de(()=>{var a=g;a.b=this,a.f|=Ke,r(this.#e,()=>f,()=>o)})}catch(a){return te(a,this.#l.parent),null}}))};he(()=>{var f;try{f=this.transform_error(t)}catch(a){te(a,this.#l&&this.#l.parent);return}f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(l,a=>te(a,this.#l&&this.#l.parent)):l(f)})}}function br(e,t,n,r){const i=lt;var s=e.filter(c=>!c.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var o=g,l=$r(),f=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(c=>c.promise)):null;function a(c){l();try{r(c)}catch(d){(o.f&F)===0&&te(d,o)}qe()}if(n.length===0){f.then(()=>a(t.map(i)));return}var u=Jt();function h(){Promise.all(n.map(c=>Er(c))).then(c=>a([...t.map(i),...c])).catch(c=>te(c,o)).finally(()=>u())}f?f.then(()=>{l(),h(),qe()}):h()}function $r(){var e=g,t=p,n=P,r=w;return function(s=!0){D(e),R(t),be(n),s&&(e.f&F)===0&&(r?.activate(),r?.apply())}}function qe(e=!0){D(null),R(null),be(null),e&&w?.deactivate()}function Jt(){var e=g,t=e.b,n=w,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function lt(e){var t=E|S,n=p!==null&&(p.f&E)!==0?p:null;return g!==null&&(g.f|=fe),{ctx:P,deps:null,effects:null,equals:Pt,f:t,fn:e,reactions:null,rv:0,v:N,wv:0,parent:n??g,ac:null}}function Er(e,t,n){let r=g;r===null&&Kn();var i=void 0,s=Ae(N),o=!p,l=new Map;return Fr(()=>{var f=g,a=St();i=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).finally(qe)}catch(d){a.reject(d),qe()}var u=w;if(o){if((f.f&Z)!==0)var h=Jt();if(r.b.is_rendered())l.get(u)?.reject(z),l.delete(u);else{for(const d of l.values())d.reject(z);l.clear()}l.set(u,a)}const c=(d,v=void 0)=>{if(h){var m=v===z;h(m)}if(!(v===z||(f.f&F)!==0)){if(u.activate(),v)s.f|=Q,Be(s,v);else{(s.f&Q)!==0&&(s.f^=Q),Be(s,d);for(const[_,A]of l){if(l.delete(_),_===u)break;A.reject(z)}}u.deactivate()}};a.promise.then(c,d=>c(null,d||"unknown"))}),sn(()=>{for(const f of l.values())f.reject(z)}),new Promise(f=>{function a(u){function h(){u===i?f(s):a(i)}u.then(h,h)}a(i)})}function Tr(e){const t=lt(e);return t.equals=Mt,t}function xr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)B(t[n])}}function Nr(e){for(var t=e.parent;t!==null;){if((t.f&E)===0)return(t.f&F)===0?t:null;t=t.parent}return null}function ot(e){var t,n=g;D(Nr(e));try{e.f&=~ue,xr(e),t=pn(e)}finally{D(n)}return t}function Kt(e){var t=e.v,n=ot(e);if(!e.equals(n)&&(e.wv=vn(),(!w?.is_fork||e.deps===null)&&(e.v=n,w?.capture(e,t,!0),e.deps===null))){$(e,T);return}le||(q!==null?(dt()||w?.is_fork)&&q.set(e,n):nt(e))}function Sr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(z),t.teardown=Un,t.ac=null,Ce(t,0),vt(t))}function Xt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&xe(t)}let at=new Set;const ie=new Map;let Zt=!1;function Ae(e,t){var n={f:0,v:e,reactions:null,equals:Pt,rv:0,wv:0};return n}function G(e,t){const n=Ae(e);return Ur(n),n}function Ar(e,t=!1,n=!0){const r=Ae(e);return t||(r.equals=Mt),r}function M(e,t,n=!1){p!==null&&(!H||(p.f&Ot)!==0)&&jt()&&(p.f&(E|J|Ze|Ot))!==0&&(I===null||!me.call(I,e))&&sr();let r=n?Te(t):t;return Be(e,r,Fe)}function Be(e,t,n=null){if(!e.equals(t)){var r=e.v;le?ie.set(e,t):ie.set(e,r),e.v=t;var i=re.ensure();if(i.capture(e,r),(e.f&E)!==0){const s=e;(e.f&S)!==0&&ot(s),q===null&&nt(s)}e.wv=vn(),Qt(e,S,n),g!==null&&(g.f&T)!==0&&(g.f&(V|K))===0&&(j===null?Vr([e]):j.push(e)),!i.is_fork&&at.size>0&&!Zt&&Rr()}return t}function Rr(){Zt=!1;for(const e of at)(e.f&T)!==0&&$(e,Y),Oe(e)&&xe(e);at.clear()}function Re(e){M(e,e.v+1)}function Qt(e,t,n){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],l=o.f,f=(l&S)===0;if(f&&$(o,t),(l&E)!==0){var a=o;q?.delete(a),(l&ue)===0&&(l&L&&(o.f|=ue),Qt(a,Y,n))}else if(f){var u=o;(l&J)!==0&&W!==null&&W.add(u),n!==null?n.push(u):st(u)}}}function Te(e){if(typeof e!="object"||e===null||Ie in e)return e;const t=xt(e);if(t!==Hn&&t!==Yn)return e;var n=new Map,r=jn(e),i=G(0),s=_e,o=l=>{if(_e===s)return l();var f=p,a=_e;R(null),dn(s);var u=l();return R(f),dn(a),u};return r&&n.set("length",G(e.length)),new Proxy(e,{defineProperty(l,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&rr();var u=n.get(f);return u===void 0?o(()=>{var h=G(a.value);return n.set(f,h),h}):M(u,a.value,!0),!0},deleteProperty(l,f){var a=n.get(f);if(a===void 0){if(f in l){const u=o(()=>G(N));n.set(f,u),Re(i)}}else M(a,N),Re(i);return!0},get(l,f,a){if(f===Ie)return e;var u=n.get(f),h=f in l;if(u===void 0&&(!h||ae(l,f)?.writable)&&(u=o(()=>{var d=Te(h?l[f]:N),v=G(d);return v}),n.set(f,u)),u!==void 0){var c=k(u);return c===N?void 0:c}return Reflect.get(l,f,a)},getOwnPropertyDescriptor(l,f){var a=Reflect.getOwnPropertyDescriptor(l,f);if(a&&"value"in a){var u=n.get(f);u&&(a.value=k(u))}else if(a===void 0){var h=n.get(f),c=h?.v;if(h!==void 0&&c!==N)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return a},has(l,f){if(f===Ie)return!0;var a=n.get(f),u=a!==void 0&&a.v!==N||Reflect.has(l,f);if(a!==void 0||g!==null&&(!u||ae(l,f)?.writable)){a===void 0&&(a=o(()=>{var c=u?Te(l[f]):N,d=G(c);return d}),n.set(f,a));var h=k(a);if(h===N)return!1}return u},set(l,f,a,u){var h=n.get(f),c=f in l;if(r&&f==="length")for(var d=a;d<h.v;d+=1){var v=n.get(d+"");v!==void 0?M(v,N):d in l&&(v=o(()=>G(N)),n.set(d+"",v))}if(h===void 0)(!c||ae(l,f)?.writable)&&(h=o(()=>G(void 0)),M(h,Te(a)),n.set(f,h));else{c=h.v!==N;var m=o(()=>Te(a));M(h,m)}var _=Reflect.getOwnPropertyDescriptor(l,f);if(_?.set&&_.set.call(u,a),!c){if(r&&typeof f=="string"){var A=n.get("length"),x=Number(f);Number.isInteger(x)&&x>=A.v&&M(A,x+1)}Re(i)}return!0},ownKeys(l){k(i);var f=Reflect.ownKeys(l).filter(h=>{var c=n.get(h);return c===void 0||c.v!==N});for(var[a,u]of n)u.v!==N&&!(a in l)&&f.push(a);return f},setPrototypeOf(){ir()}})}var en,tn,nn,rn;function ft(){if(en===void 0){en=window,tn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;nn=ae(t,"firstChild").get,rn=ae(t,"nextSibling").get,Nt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Nt(n)&&(n.__t=void 0)}}function He(e=""){return document.createTextNode(e)}function Ye(e){return nn.call(e)}function se(e){return rn.call(e)}function ut(e,t){if(!y)return Ye(e);var n=Ye(b);return n===null&&(n=b.appendChild(He())),ee(n),n}function Or(e,t=1,n=!1){let r=y?b:e;for(var i;t--;)i=r,r=se(r);if(!y)return r;if(n){if(r?.nodeType!==kt){var s=He();return r===null?i?.after(s):r.before(s),ee(s),s}kr(r)}return ee(r),r}function Cr(e){e.textContent=""}function ct(e,t,n){return document.createElementNS(Tt,e,void 0)}function kr(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===kt;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function ht(e){var t=p,n=g;R(null),D(null);try{return e()}finally{R(t),D(n)}}function Lr(e){g===null&&(p===null&&Qn(),Zn()),le&&Xn()}function Pr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function U(e,t){var n=g;n!==null&&(n.f&X)!==0&&(e|=X);var r={ctx:P,deps:null,nodes:null,f:e|S|L,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if((e&we)!==0)$e!==null?$e.push(r):re.ensure().schedule(r);else if(t!==null){try{xe(r)}catch(o){throw B(r),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&fe)===0&&(i=i.first,(e&J)!==0&&(e&De)!==0&&i!==null&&(i.f|=De))}if(i!==null&&(i.parent=n,n!==null&&Pr(i,n),p!==null&&(p.f&E)!==0&&(e&K)===0)){var s=p;(s.effects??=[]).push(i)}return r}function dt(){return p!==null&&!H}function sn(e){const t=U(Me,null);return $(t,T),t.teardown=e,t}function Mr(e){Lr();var t=g.f,n=!p&&(t&V)!==0&&(t&Z)===0;if(n){var r=P;(r.e??=[]).push(e)}else return ln(e)}function ln(e){return U(we|Wn,e)}function Dr(e){re.ensure();const t=U(K|fe,e);return()=>{B(t)}}function Ir(e){re.ensure();const t=U(K|fe,e);return(n={})=>new Promise(r=>{n.outro?Ve(t,()=>{B(t),r(void 0)}):(B(t),r(void 0))})}function jr(e){return U(we,e)}function Fr(e){return U(Ze|fe,e)}function on(e,t=0){return U(Me|t,e)}function Ue(e,t=[],n=[],r=[]){br(r,t,n,i=>{U(Me,()=>e(...i.map(k)))})}function qr(e,t=0){var n=U(J|t,e);return n}function de(e){return U(V|fe,e)}function an(e){var t=e.teardown;if(t!==null){const n=le,r=p;cn(!0),R(null);try{t.call(null)}finally{cn(n),R(r)}}}function vt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&ht(()=>{i.abort(z)});var r=n.next;(n.f&K)!==0?n.parent=null:B(n,t),n=r}}function Br(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&V)===0&&B(t),t=n}}function B(e,t=!0){var n=!1;(t||(e.f&zn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Hr(e.nodes.start,e.nodes.end),n=!0),$(e,Rt),vt(e,t&&!n),Ce(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();an(e),e.f^=Rt,e.f|=F;var i=e.parent;i!==null&&i.first!==null&&fn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Hr(e,t){for(;e!==null;){var n=e===t?null:se(e);e.remove(),e=n}}function fn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Ve(e,t,n=!0){var r=[];un(e,r,!0);var i=()=>{n&&B(e),t&&t()},s=r.length;if(s>0){var o=()=>--s||i();for(var l of r)l.out(o)}else i()}function un(e,t,n){if((e.f&X)===0){e.f^=X;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var i=e.first;i!==null;){var s=i.next,o=(i.f&De)!==0||(i.f&V)!==0&&(e.f&J)!==0;un(i,t,o?n:!1),i=s}}}function Yr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:se(n);t.append(n),n=i}}let ze=!1,le=!1;function cn(e){le=e}let p=null,H=!1;function R(e){p=e}let g=null;function D(e){g=e}let I=null;function Ur(e){p!==null&&(I===null?I=[e]:I.push(e))}let O=null,C=0,j=null;function Vr(e){j=e}let hn=1,ve=0,_e=ve;function dn(e){_e=e}function vn(){return++hn}function Oe(e){var t=e.f;if((t&S)!==0)return!0;if(t&E&&(e.f&=~ue),(t&Y)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Oe(s)&&Kt(s),s.wv>e.wv)return!0}(t&L)!==0&&q===null&&$(e,T)}return!1}function _n(e,t,n=!0){var r=e.reactions;if(r!==null&&!(I!==null&&me.call(I,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&E)!==0?_n(s,t,!1):t===s&&(n?$(s,S):(s.f&T)!==0&&$(s,Y),st(s))}}function pn(e){var t=O,n=C,r=j,i=p,s=I,o=P,l=H,f=_e,a=e.f;O=null,C=0,j=null,p=(a&(V|K))===0?e:null,I=null,be(e.ctx),H=!1,_e=++ve,e.ac!==null&&(ht(()=>{e.ac.abort(z)}),e.ac=null);try{e.f|=Xe;var u=e.fn,h=u();e.f|=Z;var c=e.deps,d=w?.is_fork;if(O!==null){var v;if(d||Ce(e,C),c!==null&&C>0)for(c.length=C+O.length,v=0;v<O.length;v++)c[C+v]=O[v];else e.deps=c=O;if(dt()&&(e.f&L)!==0)for(v=C;v<c.length;v++)(c[v].reactions??=[]).push(e)}else!d&&c!==null&&C<c.length&&(Ce(e,C),c.length=C);if(jt()&&j!==null&&!H&&c!==null&&(e.f&(E|Y|S))===0)for(v=0;v<j.length;v++)_n(j[v],e);if(i!==null&&i!==e){if(ve++,i.deps!==null)for(let m=0;m<n;m+=1)i.deps[m].rv=ve;if(t!==null)for(const m of t)m.rv=ve;j!==null&&(r===null?r=j:r.push(...j))}return(e.f&Q)!==0&&(e.f^=Q),h}catch(m){return qt(m)}finally{e.f^=Xe,O=t,C=n,j=r,p=i,I=s,be(o),H=l,_e=f}}function zr(e,t){let n=t.reactions;if(n!==null){var r=Fn.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&E)!==0&&(O===null||!me.call(O,t))){var s=t;(s.f&L)!==0&&(s.f^=L,s.f&=~ue),nt(s),Sr(s),Ce(s,0)}}function Ce(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)zr(e,n[r])}function xe(e){var t=e.f;if((t&F)===0){$(e,T);var n=g,r=ze;g=e,ze=!0;try{(t&(J|At))!==0?Br(e):vt(e),an(e);var i=pn(e);e.teardown=typeof i=="function"?i:null,e.wv=hn;var s;In&&cr&&(e.f&S)!==0&&e.deps}finally{ze=r,g=n}}}function k(e){var t=e.f,n=(t&E)!==0;if(p!==null&&!H){var r=g!==null&&(g.f&F)!==0;if(!r&&(I===null||!me.call(I,e))){var i=p.deps;if((p.f&Xe)!==0)e.rv<ve&&(e.rv=ve,O===null&&i!==null&&i[C]===e?C++:O===null?O=[e]:O.push(e));else{(p.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[p]:me.call(s,p)||s.push(p)}}}if(le&&ie.has(e))return ie.get(e);if(n){var o=e;if(le){var l=o.v;return((o.f&T)===0&&o.reactions!==null||mn(o))&&(l=ot(o)),ie.set(o,l),l}var f=(o.f&L)===0&&!H&&p!==null&&(ze||(p.f&L)!==0),a=(o.f&Z)===0;Oe(o)&&(f&&(o.f|=L),Kt(o)),f&&!a&&(Xt(o),gn(o))}if(q?.has(e))return q.get(e);if((e.f&Q)!==0)throw e.v;return e.v}function gn(e){if(e.f|=L,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&E)!==0&&(t.f&L)===0&&(Xt(t),gn(t))}function mn(e){if(e.v===N)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ie.has(t)||(t.f&E)!==0&&mn(t))return!0;return!1}function wn(e){var t=H;try{return H=!0,e()}finally{H=t}}const We=Symbol("events"),Wr=new Set,yn=new Set;function Gr(e,t,n,r={}){function i(s){if(r.capture||_t.call(t,s),!s.cancelBubble)return ht(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?he(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Jr(e,t,n,r,i){var s={capture:r,passive:i},o=Gr(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&sn(()=>{t.removeEventListener(e,o,s)})}let bn=null;function _t(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;bn=e;var o=0,l=bn===e&&e[We];if(l){var f=i.indexOf(l);if(f!==-1&&(t===document||t===window)){e[We]=t;return}var a=i.indexOf(t);if(a===-1)return;f<=a&&(o=f)}if(s=i[o]||e.target,s!==t){Pe(e,"currentTarget",{configurable:!0,get(){return s||n}});var u=p,h=g;R(null),D(null);try{for(var c,d=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var m=s[We]?.[r];m!=null&&(!s.disabled||e.target===s)&&m.call(s,e)}catch(_){c?d.push(_):c=_}if(e.cancelBubble||v===t||v===null)break;s=v}if(c){for(let _ of d)queueMicrotask(()=>{throw _});throw c}}finally{e[We]=t,delete e.currentTarget,R(u),D(h)}}}const Kr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Xr(e){return Kr?.createHTML(e)??e}function Zr(e){var t=ct("template");return t.innerHTML=Xr(e.replaceAll("<!>","<!---->")),t.content}function pt(e,t){var n=g;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Qr(e,t){var n=(t&Dn)!==0,r,i=!e.startsWith("<!>");return()=>{if(y)return pt(b,null),b;r===void 0&&(r=Zr(i?e:"<!>"+e),r=Ye(r));var s=n||tn?document.importNode(r,!0):r.cloneNode(!0);return pt(s,s),s}}function $n(e,t){if(y){var n=g;((n.f&Z)===0||n.nodes.end===null)&&(n.nodes.end=b),Lt();return}e!==null&&e.before(t)}const ei=["touchstart","touchmove"];function ti(e){return ei.includes(e)}function En(e,t){return Tn(e,t)}function ni(e,t){ft(),t.intro=t.intro??!1;const n=t.target,r=y,i=b;try{for(var s=Ye(n);s&&(s.nodeType!==Qe||s.data!==yt);)s=se(s);if(!s)throw Ne;ye(!0),ee(s);const o=Tn(e,{...t,anchor:s});return ye(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw o;return o!==Ne&&console.warn("Failed to hydrate: ",o),t.recover===!1&&tr(),ft(),Cr(n),ye(!1),En(e,t)}finally{ye(r),ee(i)}}const Ge=new Map;function Tn(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:o=!0,transformError:l}){ft();var f=void 0,a=Ir(()=>{var u=n??t.appendChild(He());wr(u,{pending:()=>{}},d=>{Dt({});var v=P;if(s&&(v.c=s),i&&(r.$$events=i),y&&pt(d,null),f=e(d,r)||{},y&&(g.nodes.end=b,b===null||b.nodeType!==Qe||b.data!==Et))throw et(),Ne;It()},l);var h=new Set,c=d=>{for(var v=0;v<d.length;v++){var m=d[v];if(!h.has(m)){h.add(m);var _=ti(m);for(const oe of[t,document]){var A=Ge.get(oe);A===void 0&&(A=new Map,Ge.set(oe,A));var x=A.get(m);x===void 0?(oe.addEventListener(m,_t,{passive:_}),A.set(m,1)):A.set(m,x+1)}}}};return c(qn(Wr)),yn.add(c),()=>{for(var d of h)for(const _ of[t,document]){var v=Ge.get(_),m=v.get(d);--m==0?(_.removeEventListener(d,_t),v.delete(d),v.size===0&&Ge.delete(_)):v.set(d,m)}yn.delete(c),u!==n&&u.parentNode?.removeChild(u)}});return gt.set(f,a),f}let gt=new WeakMap;function ri(e,t){const n=gt.get(e);return n?(gt.delete(e),n(t)):Promise.resolve()}function ii(e,t){jr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const i=ct("style");i.id=t.hash,i.textContent=t.code,r.appendChild(i)}})}function si(e,t,n){var r=""+e;return r}function li(e,t,n,r,i,s){var o=e.__className;if(y||o!==n||o===void 0){var l=si(n);(!y||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=n}return s}const oi=Symbol("is custom element"),ai=Symbol("is html"),fi=Jn?"link":"LINK";function ui(e,t,n,r){var i=ci(e);y&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===fi)||i[t]!==(i[t]=n)&&(t==="loading"&&(e[Gn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&xn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function pe(e,t,n){var r=p,i=g;let s=y;y&&ye(!1),R(null),D(null);try{t!=="style"&&(mt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?xn(e).includes(t):n&&typeof n=="object")?e[t]=n:ui(e,t,n==null?n:String(n))}finally{R(r),D(i),s&&ye(!0)}}function ci(e){return e.__attributes??={[oi]:e.nodeName.includes("-"),[ai]:e.namespaceURI===Tt}}var mt=new Map;function xn(e){var t=e.getAttribute("is")||e.nodeName,n=mt.get(t);if(n)return n;mt.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=Bn(i);for(var o in r)r[o].set&&n.push(o);i=xt(i)}return n}function ke(e,t,n,r){var i=(n&Pn)!==0,s=(n&Mn)!==0,o=r,l=!0,f=()=>(l&&(l=!1,o=s?wn(r):r),o);let a;if(i){var u=Ie in e||Ct in e;a=ae(e,t)?.set??(u&&t in e?x=>e[t]=x:void 0)}var h,c=!1;i?[h,c]=vr(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=f(),a&&(nr(),a(h)));var d;if(d=()=>{var x=e[t];return x===void 0?f():(l=!0,x)},(n&Ln)===0)return d;if(a){var v=e.$$legacy;return(function(x,oe){return arguments.length>0?((!oe||v||c)&&a(oe?d():x),x):d()})}var m=!1,_=((n&kn)!==0?lt:Tr)(()=>(m=!1,d()));i&&k(_);var A=g;return(function(x,oe){if(arguments.length>0){const Cn=oe?k(_):i?Te(x):x;return M(_,Cn),m=!0,o!==void 0&&(o=Cn),x}return le&&m||(A.f&F)!==0?_.v:k(_)})}function hi(e){return new di(e)}class di{#e;#n;constructor(t){var n=new Map,r=(s,o)=>{var l=Ar(o,!1,!1);return n.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return k(n.get(o)??r(o,Reflect.get(s,o)))},has(s,o){return o===Ct?!0:(k(n.get(o)??r(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return M(n.get(o)??r(o,l),l),Reflect.set(s,o,l)}});this.#n=(t.hydrate?ni:En)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&Ee(),this.#e=i.$$events;for(const s of Object.keys(this.#n))s==="$set"||s==="$destroy"||s==="$on"||Pe(this,s,{get(){return this.#n[s]},set(o){this.#n[s]=o},enumerable:!0});this.#n.$set=s=>{Object.assign(i,s)},this.#n.$destroy=()=>{ri(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...i)=>n.call(this,...i);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(i=>i!==r)}}$destroy(){this.#n.$destroy()}}let Nn;typeof HTMLElement=="function"&&(Nn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return i=>{const s=ct("slot");r!=="default"&&(s.name=r),$n(i,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=vi(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const i=this.$$g_p(r.name);i in this.$$d||(this.$$d[i]=Je(i,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=hi({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Dr(()=>{on(()=>{this.$$r=!0;for(const r of Le(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const i=Je(r,this.$$d[r],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,i)}this.$$r=!1})});for(const r in this.$$l)for(const i of this.$$l[r]){const s=this.$$c.$on(r,i);this.$$l_u.set(i,s)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Je(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Le(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Je(e,t,n,r){const i=n[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function vi(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function _i(e,t,n,r,i,s){let o=class extends Nn{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return Le(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Le(t).forEach(l=>{Pe(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(f){f=Je(l,f,t),this.$$d[l]=f;var a=this.$$c;if(a){var u=ae(a,l)?.get;u?a[l]=f:a.$set({[l]:f})}}})}),r.forEach(l=>{Pe(o.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=o,o}const Sn={version:"0.66.3"};var ge={},An;function pi(){if(An)return ge;An=1,Object.defineProperty(ge,"__esModule",{value:!0}),ge.LanguageTranslator=void 0,ge.getChildStyleToPass=e,ge.addComponent=t;function e(r,i){var s,o,l="";try{if(r&&i?.length&&(!((s=Object.keys(r))===null||s===void 0)&&s.length)&&(!((o=i?.filter(function(c){return Object.keys(r).includes(c.name)}))===null||o===void 0)&&o.length))for(var f=function(c){var d=i?.filter(function(v){return v.name===c&&v.defaultValue!==r[c]});d&&(l+="".concat(c,":").concat(r[c],";"))},a=0,u=Object.keys(r);a<u.length;a++){var h=u[a];f(h)}}catch(c){console.error("error getting child style to pass",c)}finally{return l}}function t(r){var i,s=((i=r?.repoName.split("/"))===null||i===void 0?void 0:i[1])||r?.repoName;if(!s)throw new Error("wrong componentPath "+r?.repoName);if(!r?.version)throw new Error("wrong version "+r?.version);var o=r?.iifePath||"main.iife.js";if(!document.getElementById(s+"-script"))try{var l=document.createElement("script");if(l.id=s+"-script",l.src="https://cdn.jsdelivr.net/npm/".concat(r.repoName,"@").concat(r.version,"/").concat(o),r?.local)l.src="".concat(r.local);else if(location.href.includes("localhost:6006")){var f=s.split("-")[0];l.src="http://localhost:6006/webcomponents/".concat(s.replace(f+"-",""),"/").concat(o)}document.head.appendChild(l)}catch(a){console.warn(a)}}var n=(function(){function r(i){if(this.lang="",!i?.dictionary)throw new Error("no dictionary provided");this.dictionary=i.dictionary,this.setLang(i?.lang)}return r.prototype.setLang=function(i){i||(i=r.getDefaultLang()),this.lang=i},r.prototype.translateWord=function(i,s){return r.getDictionaryWord(i,this.dictionary,s||this.lang)},r.prototype.translateDate=function(i,s,o){return r.formatDate(i,s,o||this.lang)},r.getDefaultLang=function(){var i,s,o,l="en";return navigator?.languages&&(!((o=(s=(i=navigator.languages[0])===null||i===void 0?void 0:i.split("-")[0])===null||s===void 0?void 0:s.toLowerCase())===null||o===void 0)&&o.length)&&(l=navigator.languages[0].split("-")[0].toLowerCase()),l},r.getDictionaryWord=function(i,s,o){var l;if(!i)throw new Error("no wordKey provided");if(!s)throw new Error("no dictionary provided");if(o&&(!((l=s[o])===null||l===void 0)&&l[i]))return s[o][i];var f="",a=r.getDefaultLang();if(!o||a!==o){var u=s?.[a];u?.[i]&&(f=u[i])}return f},r.formatDate=function(i,s,o){if(!i)throw new Error("no date provided");if(typeof i.getMonth!="function")throw new Error("wrong date format");var l=new Intl.DateTimeFormat(o||r.getDefaultLang(),s);return l.format(i)},r})();return ge.LanguageTranslator=n,ge}var Rn=pi(),gi=Qr('<div id="compocontainer" class="svelte-11p6sry"><div id="list" class="svelte-11p6sry"><hb-messages-list></hb-messages-list></div> <div id="prompt" class="svelte-11p6sry"><hb-messages-send></hb-messages-send></div></div>',2);const mi={hash:"svelte-11p6sry",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
|
-
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host {font-family:"Roboto", sans-serif;display:block;overflow:hidden;height:fit-content;min-height:100px;}#compocontainer.svelte-11p6sry {display:grid;grid-template-areas:"messages" "prompt";overflow:hidden;grid-template-rows:1fr 180px;height:100%;min-height:200px;}#list.svelte-11p6sry {overflow-y:auto;grid-area:messages;min-height:0;height:100%;}#list.svelte-11p6sry hb-messages-list:where(.svelte-11p6sry) {height:100%;display:block;}#prompt.svelte-11p6sry {grid-area:prompt;width:90%;max-width:1600px;margin:0 auto;}.msglist.svelte-11p6sry {width:90%;max-width:1400px;margin:0 auto;}`};function
|
|
1
|
+
(function(mt){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const On=1,kn=4,Cn=8,Pn=16,Mn=2,wt="[",yt="[!",$t="[?",bt="]",xe={},S=Symbol(),Et="http://www.w3.org/1999/xhtml",In=!1;var Ln=Array.isArray,Dn=Array.prototype.indexOf,ge=Array.prototype.includes,jn=Array.from,Ce=Object.keys,Pe=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,Fn=Object.getOwnPropertyDescriptors,Bn=Object.prototype,Hn=Array.prototype,Tt=Object.getPrototypeOf,xt=Object.isExtensible;const Yn=()=>{};function qn(e){for(var t=0;t<e.length;t++)e[t]()}function St(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const E=2,me=4,Me=8,Nt=1<<24,W=16,V=32,J=64,We=128,P=512,T=1024,N=2048,q=4096,X=8192,F=16384,Z=32768,At=1<<25,Ie=65536,Rt=1<<17,Un=1<<18,ae=1<<19,Vn=1<<20,ue=65536,Je=1<<21,Xe=1<<22,Q=1<<23,Le=Symbol("$state"),Ot=Symbol("legacy props"),zn=Symbol(""),z=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Gn=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),kt=3,Ze=8;function Kn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Wn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Jn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Xn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Zn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Qn(){throw new Error("https://svelte.dev/e/hydration_failed")}function er(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function tr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function nr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function rr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function sr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Qe(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function ir(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let y=!1;function we(e){y=e}let $;function ee(e){if(e===null)throw Qe(),xe;return $=e}function Ct(){return ee(ie($))}function et(e){if(y){if(ie($)!==null)throw Qe(),xe;$=e}}function lr(e=1){if(y){for(var t=e,n=$;t--;)n=ie(n);$=n}}function fr(e=!0){for(var t=0,n=$;;){if(n.nodeType===Ze){var r=n.data;if(r===bt){if(t===0)return n;t-=1}else(r===wt||r===yt||r[0]==="["&&!isNaN(Number(r.slice(1))))&&(t+=1)}var s=ie(n);e&&n.remove(),n=s}}function Pt(e){return e===this.v}function or(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Mt(e){return!or(e,this.v)}let ar=!1,M=null;function ye(e){M=e}function It(e,t=!1,n){M={p:M,i:!1,c:null,e:null,s:e,x:null,r:g,l:null}}function Lt(e){var t=M,n=t.e;if(n!==null){t.e=null;for(var r of n)sn(r)}return e!==void 0&&(t.x=e),t.i=!0,M=t.p,e??{}}function Dt(){return!0}let ce=[];function jt(){var e=ce;ce=[],qn(e)}function he(e){if(ce.length===0&&!Se){var t=ce;queueMicrotask(()=>{t===ce&&jt()})}ce.push(e)}function ur(){for(;ce.length>0;)jt()}function Ft(e){var t=g;if(t===null)return p.f|=Q,e;if((t.f&Z)===0&&(t.f&me)===0)throw e;te(e,t)}function te(e,t){for(;t!==null;){if((t.f&We)!==0){if((t.f&Z)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const cr=-7169;function b(e,t){e.f=e.f&cr|t}function tt(e){(e.f&P)!==0||e.deps===null?b(e,T):b(e,q)}function Bt(e){if(e!==null)for(const t of e)(t.f&E)===0||(t.f&ue)===0||(t.f^=ue,Bt(t.deps))}function Ht(e,t,n){(e.f&N)!==0?t.add(e):(e.f&q)!==0&&n.add(e),Bt(e.deps),b(e,T)}let De=!1;function hr(e){var t=De;try{return De=!1,[e(),De]}finally{De=t}}const ne=new Set;let w=null,B=null,nt=null,Se=!1,rt=!1,$e=null,je=null;var Yt=0;let dr=1;class re{id=dr++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#i=new Map;#o=new Map;#l=null;#t=[];#r=new Set;#s=new Set;#f=new Map;is_fork=!1;#c=!1;#a=new Set;#h(){return this.is_fork||this.#o.size>0}#_(){for(const r of this.#a)for(const s of r.#o.keys()){for(var t=!1,n=s;n.parent!==null;){if(this.#f.has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1}skip_effect(t){this.#f.has(t)||this.#f.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#f.get(t);if(n){this.#f.delete(t);for(var r of n.d)b(r,N),this.schedule(r);for(r of n.m)b(r,q),this.schedule(r)}}#d(){if(Yt++>1e3&&(ne.delete(this),_r()),!this.#h()){for(const l of this.#r)this.#s.delete(l),b(l,N),this.schedule(l);for(const l of this.#s)b(l,q),this.schedule(l)}const t=this.#t;this.#t=[],this.apply();var n=$e=[],r=[],s=je=[];for(const l of t)try{this.#u(l,n,r)}catch(a){throw Gt(l),a}if(w=null,s.length>0){var i=re.ensure();for(const l of s)i.schedule(l)}if($e=null,je=null,this.#h()||this.#_()){this.#v(r),this.#v(n);for(const[l,a]of this.#f)zt(l,a)}else{this.#i.size===0&&ne.delete(this),this.#r.clear(),this.#s.clear();for(const l of this.#e)l(this);this.#e.clear(),qt(r),qt(n),this.#l?.resolve()}var f=w;if(this.#t.length>0){const l=f??=this;l.#t.push(...this.#t.filter(a=>!l.#t.includes(a)))}f!==null&&(ne.add(f),f.#d()),ne.has(this)||this.#p()}#u(t,n,r){t.f^=T;for(var s=t.first;s!==null;){var i=s.f,f=(i&(V|J))!==0,l=f&&(i&T)!==0,a=l||(i&X)!==0||this.#f.has(s);if(!a&&s.fn!==null){f?s.f^=T:(i&me)!==0?n.push(s):Re(s)&&((i&W)!==0&&this.#s.add(s),Te(s));var o=s.first;if(o!==null){s=o;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}}#v(t){for(var n=0;n<t.length;n+=1)Ht(t[n],this.#r,this.#s)}capture(t,n,r=!1){n!==S&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Q)===0&&(this.current.set(t,[t.v,r]),B?.set(t,t.v))}activate(){w=this}deactivate(){w=null,B=null}flush(){try{rt=!0,w=this,this.#d()}finally{Yt=0,nt=null,$e=null,je=null,rt=!1,w=null,B=null,se.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear(),ne.delete(this)}#p(){for(const o of ne){var t=o.id<this.id,n=[];for(const[u,[h,c]]of this.current){if(o.current.has(u)){var r=o.current.get(u)[0];if(t&&h!==r)o.current.set(u,[h,c]);else continue}n.push(u)}var s=[...o.current.keys()].filter(u=>!this.current.has(u));if(s.length===0)t&&o.discard();else if(n.length>0){o.activate();var i=new Set,f=new Map;for(var l of n)Ut(l,s,i,f);if(o.#t.length>0){o.apply();for(var a of o.#t)o.#u(a,[],[]);o.#t=[]}o.deactivate()}}for(const o of ne)o.#a.has(this)&&(o.#a.delete(this),o.#a.size===0&&!o.#h()&&(o.activate(),o.#d()))}increment(t,n){let r=this.#i.get(n)??0;if(this.#i.set(n,r+1),t){let s=this.#o.get(n)??0;this.#o.set(n,s+1)}}decrement(t,n,r){let s=this.#i.get(n)??0;if(s===1?this.#i.delete(n):this.#i.set(n,s-1),t){let i=this.#o.get(n)??0;i===1?this.#o.delete(n):this.#o.set(n,i-1)}this.#c||r||(this.#c=!0,he(()=>{this.#c=!1,this.flush()}))}transfer_effects(t,n){for(const r of t)this.#r.add(r);for(const r of n)this.#s.add(r);t.clear(),n.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#l??=St()).promise}static ensure(){if(w===null){const t=w=new re;rt||(ne.add(w),Se||he(()=>{w===t&&t.flush()}))}return w}apply(){{B=null;return}}schedule(t){if(nt=t,t.b?.is_pending&&(t.f&(me|Me|Nt))!==0&&(t.f&Z)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if($e!==null&&n===g&&(p===null||(p.f&E)===0))return;if((r&(J|V))!==0){if((r&T)===0)return;n.f^=T}}this.#t.push(n)}}function be(e){var t=Se;Se=!0;try{for(var n;;){if(ur(),w===null)return n;w.flush()}}finally{Se=t}}function _r(){try{Zn()}catch(e){te(e,nt)}}let G=null;function qt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(F|X))===0&&Re(r)&&(G=new Set,Te(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&on(r),G?.size>0)){se.clear();for(const s of G){if((s.f&(F|X))!==0)continue;const i=[s];let f=s.parent;for(;f!==null;)G.has(f)&&(G.delete(f),i.push(f)),f=f.parent;for(let l=i.length-1;l>=0;l--){const a=i[l];(a.f&(F|X))===0&&Te(a)}}G.clear()}}G=null}}function Ut(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&E)!==0?Ut(s,t,n,r):(i&(Xe|W))!==0&&(i&N)===0&&Vt(s,t,r)&&(b(s,N),st(s))}}function Vt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(ge.call(t,s))return!0;if((s.f&E)!==0&&Vt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function st(e){w.schedule(e)}function zt(e,t){if(!((e.f&V)!==0&&(e.f&T)!==0)){(e.f&N)!==0?t.d.push(e):(e.f&q)!==0&&t.m.push(e),b(e,T);for(var n=e.first;n!==null;)zt(n,t),n=n.next}}function Gt(e){b(e,T);for(var t=e.first;t!==null;)Gt(t),t=t.next}function vr(e){let t=0,n=Ne(0),r;return()=>{ht()&&(C(n),ln(()=>(t===0&&(r=mn(()=>e(()=>Ae(n)))),t+=1,()=>{he(()=>{t-=1,t===0&&(r?.(),r=void 0,Ae(n))})})))}}var pr=Ie|ae;function gr(e,t,n,r){new mr(e,t,n,r)}class mr{parent;is_pending=!1;transform_error;#e;#n=y?$:null;#i;#o;#l;#t=null;#r=null;#s=null;#f=null;#c=0;#a=0;#h=!1;#_=new Set;#d=new Set;#u=null;#v=vr(()=>(this.#u=Ne(this.#c),()=>{this.#u=null}));constructor(t,n,r,s){this.#e=t,this.#i=n,this.#o=i=>{var f=g;f.b=this,f.f|=We,r(i)},this.parent=g.b,this.transform_error=s??this.parent?.transform_error??(i=>i),this.#l=jr(()=>{if(y){const i=this.#n;Ct();const f=i.data===yt;if(i.data.startsWith($t)){const a=JSON.parse(i.data.slice($t.length));this.#$(a)}else f?this.#b():this.#p()}else this.#w()},pr),y&&(this.#e=$)}#p(){try{this.#t=de(()=>this.#o(this.#e))}catch(t){this.error(t)}}#$(t){const n=this.#i.failed;n&&(this.#s=de(()=>{n(this.#e,()=>t,()=>()=>{})}))}#b(){const t=this.#i.pending;t&&(this.is_pending=!0,this.#r=de(()=>t(this.#e)),he(()=>{var n=this.#f=document.createDocumentFragment(),r=He();n.append(r),this.#t=this.#m(()=>de(()=>this.#o(r))),this.#a===0&&(this.#e.before(n),this.#f=null,Ue(this.#r,()=>{this.#r=null}),this.#g(w))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#a=0,this.#c=0,this.#t=de(()=>{this.#o(this.#e)}),this.#a>0){var t=this.#f=document.createDocumentFragment();Hr(this.#t,t);const n=this.#i.pending;this.#r=de(()=>n(this.#e))}else this.#g(w)}catch(n){this.error(n)}}#g(t){this.is_pending=!1,t.transfer_effects(this.#_,this.#d)}defer_effect(t){Ht(t,this.#_,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#i.pending}#m(t){var n=g,r=p,s=M;L(this.#l),R(this.#l),ye(this.#l.ctx);try{return re.ensure(),t()}catch(i){return Ft(i),null}finally{L(n),R(r),ye(s)}}#y(t,n){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t,n);return}this.#a+=t,this.#a===0&&(this.#g(n),this.#r&&Ue(this.#r,()=>{this.#r=null}),this.#f&&(this.#e.before(this.#f),this.#f=null))}update_pending_count(t,n){this.#y(t,n),this.#c+=t,!(!this.#u||this.#h)&&(this.#h=!0,he(()=>{this.#h=!1,this.#u&&Be(this.#u,this.#c)}))}get_effect_pending(){return this.#v(),C(this.#u)}error(t){var n=this.#i.onerror;let r=this.#i.failed;if(!n&&!r)throw t;this.#t&&(H(this.#t),this.#t=null),this.#r&&(H(this.#r),this.#r=null),this.#s&&(H(this.#s),this.#s=null),y&&(ee(this.#n),lr(),ee(fr()));var s=!1,i=!1;const f=()=>{if(s){ir();return}s=!0,i&&sr(),this.#s!==null&&Ue(this.#s,()=>{this.#s=null}),this.#m(()=>{this.#w()})},l=a=>{try{i=!0,n?.(a,f),i=!1}catch(o){te(o,this.#l&&this.#l.parent)}r&&(this.#s=this.#m(()=>{try{return de(()=>{var o=g;o.b=this,o.f|=We,r(this.#e,()=>a,()=>f)})}catch(o){return te(o,this.#l.parent),null}}))};he(()=>{var a;try{a=this.transform_error(t)}catch(o){te(o,this.#l&&this.#l.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(l,o=>te(o,this.#l&&this.#l.parent)):l(a)})}}function wr(e,t,n,r){const s=it;var i=e.filter(c=>!c.settled);if(n.length===0&&i.length===0){r(t.map(s));return}var f=g,l=yr(),a=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(c=>c.promise)):null;function o(c){l();try{r(c)}catch(d){(f.f&F)===0&&te(d,f)}Fe()}if(n.length===0){a.then(()=>o(t.map(s)));return}var u=Kt();function h(){Promise.all(n.map(c=>$r(c))).then(c=>o([...t.map(s),...c])).catch(c=>te(c,f)).finally(()=>u())}a?a.then(()=>{l(),h(),Fe()}):h()}function yr(){var e=g,t=p,n=M,r=w;return function(i=!0){L(e),R(t),ye(n),i&&(e.f&F)===0&&(r?.activate(),r?.apply())}}function Fe(e=!0){L(null),R(null),ye(null),e&&w?.deactivate()}function Kt(){var e=g,t=e.b,n=w,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(s=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,s)}}function it(e){var t=E|N,n=p!==null&&(p.f&E)!==0?p:null;return g!==null&&(g.f|=ae),{ctx:M,deps:null,effects:null,equals:Pt,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:n??g,ac:null}}function $r(e,t,n){let r=g;r===null&&Kn();var s=void 0,i=Ne(S),f=!p,l=new Map;return Dr(()=>{var a=g,o=St();s=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).finally(Fe)}catch(d){o.reject(d),Fe()}var u=w;if(f){if((a.f&Z)!==0)var h=Kt();if(r.b.is_rendered())l.get(u)?.reject(z),l.delete(u);else{for(const d of l.values())d.reject(z);l.clear()}l.set(u,o)}const c=(d,_=void 0)=>{if(h){var m=_===z;h(m)}if(!(_===z||(a.f&F)!==0)){if(u.activate(),_)i.f|=Q,Be(i,_);else{(i.f&Q)!==0&&(i.f^=Q),Be(i,d);for(const[v,A]of l){if(l.delete(v),v===u)break;A.reject(z)}}u.deactivate()}};o.promise.then(c,d=>c(null,d||"unknown"))}),rn(()=>{for(const a of l.values())a.reject(z)}),new Promise(a=>{function o(u){function h(){u===s?a(i):o(s)}u.then(h,h)}o(s)})}function br(e){const t=it(e);return t.equals=Mt,t}function Er(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function Tr(e){for(var t=e.parent;t!==null;){if((t.f&E)===0)return(t.f&F)===0?t:null;t=t.parent}return null}function lt(e){var t,n=g;L(Tr(e));try{e.f&=~ue,Er(e),t=vn(e)}finally{L(n)}return t}function Wt(e){var t=e.v,n=lt(e);if(!e.equals(n)&&(e.wv=dn(),(!w?.is_fork||e.deps===null)&&(e.v=n,w?.capture(e,t,!0),e.deps===null))){b(e,T);return}le||(B!==null?(ht()||w?.is_fork)&&B.set(e,n):tt(e))}function xr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(z),t.teardown=Yn,t.ac=null,Oe(t,0),dt(t))}function Jt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Te(t)}let ft=new Set;const se=new Map;let Xt=!1;function Ne(e,t){var n={f:0,v:e,reactions:null,equals:Pt,rv:0,wv:0};return n}function K(e,t){const n=Ne(e);return Yr(n),n}function Sr(e,t=!1,n=!0){const r=Ne(e);return t||(r.equals=Mt),r}function I(e,t,n=!1){p!==null&&(!Y||(p.f&Rt)!==0)&&Dt()&&(p.f&(E|W|Xe|Rt))!==0&&(D===null||!ge.call(D,e))&&rr();let r=n?Ee(t):t;return Be(e,r,je)}function Be(e,t,n=null){if(!e.equals(t)){var r=e.v;le?se.set(e,t):se.set(e,r),e.v=t;var s=re.ensure();if(s.capture(e,r),(e.f&E)!==0){const i=e;(e.f&N)!==0&<(i),B===null&&tt(i)}e.wv=dn(),Zt(e,N,n),g!==null&&(g.f&T)!==0&&(g.f&(V|J))===0&&(j===null?qr([e]):j.push(e)),!s.is_fork&&ft.size>0&&!Xt&&Nr()}return t}function Nr(){Xt=!1;for(const e of ft)(e.f&T)!==0&&b(e,q),Re(e)&&Te(e);ft.clear()}function Ae(e){I(e,e.v+1)}function Zt(e,t,n){var r=e.reactions;if(r!==null)for(var s=r.length,i=0;i<s;i++){var f=r[i],l=f.f,a=(l&N)===0;if(a&&b(f,t),(l&E)!==0){var o=f;B?.delete(o),(l&ue)===0&&(l&P&&(f.f|=ue),Zt(o,q,n))}else if(a){var u=f;(l&W)!==0&&G!==null&&G.add(u),n!==null?n.push(u):st(u)}}}function Ee(e){if(typeof e!="object"||e===null||Le in e)return e;const t=Tt(e);if(t!==Bn&&t!==Hn)return e;var n=new Map,r=Ln(e),s=K(0),i=ve,f=l=>{if(ve===i)return l();var a=p,o=ve;R(null),hn(i);var u=l();return R(a),hn(o),u};return r&&n.set("length",K(e.length)),new Proxy(e,{defineProperty(l,a,o){(!("value"in o)||o.configurable===!1||o.enumerable===!1||o.writable===!1)&&tr();var u=n.get(a);return u===void 0?f(()=>{var h=K(o.value);return n.set(a,h),h}):I(u,o.value,!0),!0},deleteProperty(l,a){var o=n.get(a);if(o===void 0){if(a in l){const u=f(()=>K(S));n.set(a,u),Ae(s)}}else I(o,S),Ae(s);return!0},get(l,a,o){if(a===Le)return e;var u=n.get(a),h=a in l;if(u===void 0&&(!h||oe(l,a)?.writable)&&(u=f(()=>{var d=Ee(h?l[a]:S),_=K(d);return _}),n.set(a,u)),u!==void 0){var c=C(u);return c===S?void 0:c}return Reflect.get(l,a,o)},getOwnPropertyDescriptor(l,a){var o=Reflect.getOwnPropertyDescriptor(l,a);if(o&&"value"in o){var u=n.get(a);u&&(o.value=C(u))}else if(o===void 0){var h=n.get(a),c=h?.v;if(h!==void 0&&c!==S)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return o},has(l,a){if(a===Le)return!0;var o=n.get(a),u=o!==void 0&&o.v!==S||Reflect.has(l,a);if(o!==void 0||g!==null&&(!u||oe(l,a)?.writable)){o===void 0&&(o=f(()=>{var c=u?Ee(l[a]):S,d=K(c);return d}),n.set(a,o));var h=C(o);if(h===S)return!1}return u},set(l,a,o,u){var h=n.get(a),c=a in l;if(r&&a==="length")for(var d=o;d<h.v;d+=1){var _=n.get(d+"");_!==void 0?I(_,S):d in l&&(_=f(()=>K(S)),n.set(d+"",_))}if(h===void 0)(!c||oe(l,a)?.writable)&&(h=f(()=>K(void 0)),I(h,Ee(o)),n.set(a,h));else{c=h.v!==S;var m=f(()=>Ee(o));I(h,m)}var v=Reflect.getOwnPropertyDescriptor(l,a);if(v?.set&&v.set.call(u,o),!c){if(r&&typeof a=="string"){var A=n.get("length"),x=Number(a);Number.isInteger(x)&&x>=A.v&&I(A,x+1)}Ae(s)}return!0},ownKeys(l){C(s);var a=Reflect.ownKeys(l).filter(h=>{var c=n.get(h);return c===void 0||c.v!==S});for(var[o,u]of n)u.v!==S&&!(o in l)&&a.push(o);return a},setPrototypeOf(){nr()}})}var Qt,en,tn,nn;function ot(){if(Qt===void 0){Qt=window,en=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;tn=oe(t,"firstChild").get,nn=oe(t,"nextSibling").get,xt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),xt(n)&&(n.__t=void 0)}}function He(e=""){return document.createTextNode(e)}function Ye(e){return tn.call(e)}function ie(e){return nn.call(e)}function at(e,t){if(!y)return Ye(e);var n=Ye($);return n===null&&(n=$.appendChild(He())),ee(n),n}function Ar(e,t=1,n=!1){let r=y?$:e;for(var s;t--;)s=r,r=ie(r);if(!y)return r;if(n){if(r?.nodeType!==kt){var i=He();return r===null?s?.after(i):r.before(i),ee(i),i}Or(r)}return ee(r),r}function Rr(e){e.textContent=""}function ut(e,t,n){return document.createElementNS(Et,e,void 0)}function Or(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===kt;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function ct(e){var t=p,n=g;R(null),L(null);try{return e()}finally{R(t),L(n)}}function kr(e){g===null&&(p===null&&Xn(),Jn()),le&&Wn()}function Cr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function U(e,t){var n=g;n!==null&&(n.f&X)!==0&&(e|=X);var r={ctx:M,deps:null,nodes:null,f:e|N|P,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},s=r;if((e&me)!==0)$e!==null?$e.push(r):re.ensure().schedule(r);else if(t!==null){try{Te(r)}catch(f){throw H(r),f}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&ae)===0&&(s=s.first,(e&W)!==0&&(e&Ie)!==0&&s!==null&&(s.f|=Ie))}if(s!==null&&(s.parent=n,n!==null&&Cr(s,n),p!==null&&(p.f&E)!==0&&(e&J)===0)){var i=p;(i.effects??=[]).push(s)}return r}function ht(){return p!==null&&!Y}function rn(e){const t=U(Me,null);return b(t,T),t.teardown=e,t}function Pr(e){kr();var t=g.f,n=!p&&(t&V)!==0&&(t&Z)===0;if(n){var r=M;(r.e??=[]).push(e)}else return sn(e)}function sn(e){return U(me|Vn,e)}function Mr(e){re.ensure();const t=U(J|ae,e);return()=>{H(t)}}function Ir(e){re.ensure();const t=U(J|ae,e);return(n={})=>new Promise(r=>{n.outro?Ue(t,()=>{H(t),r(void 0)}):(H(t),r(void 0))})}function Lr(e){return U(me,e)}function Dr(e){return U(Xe|ae,e)}function ln(e,t=0){return U(Me|t,e)}function qe(e,t=[],n=[],r=[]){wr(r,t,n,s=>{U(Me,()=>e(...s.map(C)))})}function jr(e,t=0){var n=U(W|t,e);return n}function de(e){return U(V|ae,e)}function fn(e){var t=e.teardown;if(t!==null){const n=le,r=p;un(!0),R(null);try{t.call(null)}finally{un(n),R(r)}}}function dt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&ct(()=>{s.abort(z)});var r=n.next;(n.f&J)!==0?n.parent=null:H(n,t),n=r}}function Fr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&V)===0&&H(t),t=n}}function H(e,t=!0){var n=!1;(t||(e.f&Un)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Br(e.nodes.start,e.nodes.end),n=!0),b(e,At),dt(e,t&&!n),Oe(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const i of r)i.stop();fn(e),e.f^=At,e.f|=F;var s=e.parent;s!==null&&s.first!==null&&on(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Br(e,t){for(;e!==null;){var n=e===t?null:ie(e);e.remove(),e=n}}function on(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Ue(e,t,n=!0){var r=[];an(e,r,!0);var s=()=>{n&&H(e),t&&t()},i=r.length;if(i>0){var f=()=>--i||s();for(var l of r)l.out(f)}else s()}function an(e,t,n){if((e.f&X)===0){e.f^=X;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var s=e.first;s!==null;){var i=s.next,f=(s.f&Ie)!==0||(s.f&V)!==0&&(e.f&W)!==0;an(s,t,f?n:!1),s=i}}}function Hr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:ie(n);t.append(n),n=s}}let Ve=!1,le=!1;function un(e){le=e}let p=null,Y=!1;function R(e){p=e}let g=null;function L(e){g=e}let D=null;function Yr(e){p!==null&&(D===null?D=[e]:D.push(e))}let O=null,k=0,j=null;function qr(e){j=e}let cn=1,_e=0,ve=_e;function hn(e){ve=e}function dn(){return++cn}function Re(e){var t=e.f;if((t&N)!==0)return!0;if(t&E&&(e.f&=~ue),(t&q)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var i=n[s];if(Re(i)&&Wt(i),i.wv>e.wv)return!0}(t&P)!==0&&B===null&&b(e,T)}return!1}function _n(e,t,n=!0){var r=e.reactions;if(r!==null&&!(D!==null&&ge.call(D,e)))for(var s=0;s<r.length;s++){var i=r[s];(i.f&E)!==0?_n(i,t,!1):t===i&&(n?b(i,N):(i.f&T)!==0&&b(i,q),st(i))}}function vn(e){var t=O,n=k,r=j,s=p,i=D,f=M,l=Y,a=ve,o=e.f;O=null,k=0,j=null,p=(o&(V|J))===0?e:null,D=null,ye(e.ctx),Y=!1,ve=++_e,e.ac!==null&&(ct(()=>{e.ac.abort(z)}),e.ac=null);try{e.f|=Je;var u=e.fn,h=u();e.f|=Z;var c=e.deps,d=w?.is_fork;if(O!==null){var _;if(d||Oe(e,k),c!==null&&k>0)for(c.length=k+O.length,_=0;_<O.length;_++)c[k+_]=O[_];else e.deps=c=O;if(ht()&&(e.f&P)!==0)for(_=k;_<c.length;_++)(c[_].reactions??=[]).push(e)}else!d&&c!==null&&k<c.length&&(Oe(e,k),c.length=k);if(Dt()&&j!==null&&!Y&&c!==null&&(e.f&(E|q|N))===0)for(_=0;_<j.length;_++)_n(j[_],e);if(s!==null&&s!==e){if(_e++,s.deps!==null)for(let m=0;m<n;m+=1)s.deps[m].rv=_e;if(t!==null)for(const m of t)m.rv=_e;j!==null&&(r===null?r=j:r.push(...j))}return(e.f&Q)!==0&&(e.f^=Q),h}catch(m){return Ft(m)}finally{e.f^=Je,O=t,k=n,j=r,p=s,D=i,ye(f),Y=l,ve=a}}function Ur(e,t){let n=t.reactions;if(n!==null){var r=Dn.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&E)!==0&&(O===null||!ge.call(O,t))){var i=t;(i.f&P)!==0&&(i.f^=P,i.f&=~ue),tt(i),xr(i),Oe(i,0)}}function Oe(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ur(e,n[r])}function Te(e){var t=e.f;if((t&F)===0){b(e,T);var n=g,r=Ve;g=e,Ve=!0;try{(t&(W|Nt))!==0?Fr(e):dt(e),fn(e);var s=vn(e);e.teardown=typeof s=="function"?s:null,e.wv=cn;var i;In&&ar&&(e.f&N)!==0&&e.deps}finally{Ve=r,g=n}}}function C(e){var t=e.f,n=(t&E)!==0;if(p!==null&&!Y){var r=g!==null&&(g.f&F)!==0;if(!r&&(D===null||!ge.call(D,e))){var s=p.deps;if((p.f&Je)!==0)e.rv<_e&&(e.rv=_e,O===null&&s!==null&&s[k]===e?k++:O===null?O=[e]:O.push(e));else{(p.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[p]:ge.call(i,p)||i.push(p)}}}if(le&&se.has(e))return se.get(e);if(n){var f=e;if(le){var l=f.v;return((f.f&T)===0&&f.reactions!==null||gn(f))&&(l=lt(f)),se.set(f,l),l}var a=(f.f&P)===0&&!Y&&p!==null&&(Ve||(p.f&P)!==0),o=(f.f&Z)===0;Re(f)&&(a&&(f.f|=P),Wt(f)),a&&!o&&(Jt(f),pn(f))}if(B?.has(e))return B.get(e);if((e.f&Q)!==0)throw e.v;return e.v}function pn(e){if(e.f|=P,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&E)!==0&&(t.f&P)===0&&(Jt(t),pn(t))}function gn(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(se.has(t)||(t.f&E)!==0&&gn(t))return!0;return!1}function mn(e){var t=Y;try{return Y=!0,e()}finally{Y=t}}const ze=Symbol("events"),Vr=new Set,wn=new Set;function zr(e,t,n,r={}){function s(i){if(r.capture||_t.call(t,i),!i.cancelBubble)return ct(()=>n?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?he(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function Gr(e,t,n,r,s){var i={capture:r,passive:s},f=zr(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&rn(()=>{t.removeEventListener(e,f,i)})}let yn=null;function _t(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;yn=e;var f=0,l=yn===e&&e[ze];if(l){var a=s.indexOf(l);if(a!==-1&&(t===document||t===window)){e[ze]=t;return}var o=s.indexOf(t);if(o===-1)return;a<=o&&(f=a)}if(i=s[f]||e.target,i!==t){Pe(e,"currentTarget",{configurable:!0,get(){return i||n}});var u=p,h=g;R(null),L(null);try{for(var c,d=[];i!==null;){var _=i.assignedSlot||i.parentNode||i.host||null;try{var m=i[ze]?.[r];m!=null&&(!i.disabled||e.target===i)&&m.call(i,e)}catch(v){c?d.push(v):c=v}if(e.cancelBubble||_===t||_===null)break;i=_}if(c){for(let v of d)queueMicrotask(()=>{throw v});throw c}}finally{e[ze]=t,delete e.currentTarget,R(u),L(h)}}}const Kr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Wr(e){return Kr?.createHTML(e)??e}function Jr(e){var t=ut("template");return t.innerHTML=Wr(e.replaceAll("<!>","<!---->")),t.content}function vt(e,t){var n=g;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Xr(e,t){var n=(t&Mn)!==0,r,s=!e.startsWith("<!>");return()=>{if(y)return vt($,null),$;r===void 0&&(r=Jr(s?e:"<!>"+e),r=Ye(r));var i=n||en?document.importNode(r,!0):r.cloneNode(!0);return vt(i,i),i}}function $n(e,t){if(y){var n=g;((n.f&Z)===0||n.nodes.end===null)&&(n.nodes.end=$),Ct();return}e!==null&&e.before(t)}const Zr=["touchstart","touchmove"];function Qr(e){return Zr.includes(e)}function bn(e,t){return En(e,t)}function es(e,t){ot(),t.intro=t.intro??!1;const n=t.target,r=y,s=$;try{for(var i=Ye(n);i&&(i.nodeType!==Ze||i.data!==wt);)i=ie(i);if(!i)throw xe;we(!0),ee(i);const f=En(e,{...t,anchor:i});return we(!1),f}catch(f){if(f instanceof Error&&f.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw f;return f!==xe&&console.warn("Failed to hydrate: ",f),t.recover===!1&&Qn(),ot(),Rr(n),we(!1),bn(e,t)}finally{we(r),ee(s)}}const Ge=new Map;function En(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:f=!0,transformError:l}){ot();var a=void 0,o=Ir(()=>{var u=n??t.appendChild(He());gr(u,{pending:()=>{}},d=>{It({});var _=M;if(i&&(_.c=i),s&&(r.$$events=s),y&&vt(d,null),a=e(d,r)||{},y&&(g.nodes.end=$,$===null||$.nodeType!==Ze||$.data!==bt))throw Qe(),xe;Lt()},l);var h=new Set,c=d=>{for(var _=0;_<d.length;_++){var m=d[_];if(!h.has(m)){h.add(m);var v=Qr(m);for(const fe of[t,document]){var A=Ge.get(fe);A===void 0&&(A=new Map,Ge.set(fe,A));var x=A.get(m);x===void 0?(fe.addEventListener(m,_t,{passive:v}),A.set(m,1)):A.set(m,x+1)}}}};return c(jn(Vr)),wn.add(c),()=>{for(var d of h)for(const v of[t,document]){var _=Ge.get(v),m=_.get(d);--m==0?(v.removeEventListener(d,_t),_.delete(d),_.size===0&&Ge.delete(v)):_.set(d,m)}wn.delete(c),u!==n&&u.parentNode?.removeChild(u)}});return pt.set(a,o),a}let pt=new WeakMap;function ts(e,t){const n=pt.get(e);return n?(pt.delete(e),n(t)):Promise.resolve()}function ns(e,t){Lr(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const s=ut("style");s.id=t.hash,s.textContent=t.code,r.appendChild(s)}})}function rs(e,t,n){var r=""+e;return r}function ss(e,t,n,r,s,i){var f=e.__className;if(y||f!==n||f===void 0){var l=rs(n);(!y||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):e.className=l),e.__className=n}return i}const is=Symbol("is custom element"),ls=Symbol("is html"),fs=Gn?"link":"LINK";function os(e,t,n,r){var s=as(e);y&&(s[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===fs)||s[t]!==(s[t]=n)&&(t==="loading"&&(e[zn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Tn(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function pe(e,t,n){var r=p,s=g;let i=y;y&&we(!1),R(null),L(null);try{t!=="style"&&(gt.has(e.getAttribute("is")||e.nodeName)||!customElements||customElements.get(e.getAttribute("is")||e.nodeName.toLowerCase())?Tn(e).includes(t):n&&typeof n=="object")?e[t]=n:os(e,t,n==null?n:String(n))}finally{R(r),L(s),i&&we(!0)}}function as(e){return e.__attributes??={[is]:e.nodeName.includes("-"),[ls]:e.namespaceURI===Et}}var gt=new Map;function Tn(e){var t=e.getAttribute("is")||e.nodeName,n=gt.get(t);if(n)return n;gt.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=Fn(s);for(var f in r)r[f].set&&n.push(f);s=Tt(s)}return n}function ke(e,t,n,r){var s=(n&Cn)!==0,i=(n&Pn)!==0,f=r,l=!0,a=()=>(l&&(l=!1,f=i?mn(r):r),f);let o;if(s){var u=Le in e||Ot in e;o=oe(e,t)?.set??(u&&t in e?x=>e[t]=x:void 0)}var h,c=!1;s?[h,c]=hr(()=>e[t]):h=e[t],h===void 0&&r!==void 0&&(h=a(),o&&(er(),o(h)));var d;if(d=()=>{var x=e[t];return x===void 0?a():(l=!0,x)},(n&kn)===0)return d;if(o){var _=e.$$legacy;return(function(x,fe){return arguments.length>0?((!fe||_||c)&&o(fe?d():x),x):d()})}var m=!1,v=((n&On)!==0?it:br)(()=>(m=!1,d()));s&&C(v);var A=g;return(function(x,fe){if(arguments.length>0){const Rn=fe?C(v):s?Ee(x):x;return I(v,Rn),m=!0,f!==void 0&&(f=Rn),x}return le&&m||(A.f&F)!==0?v.v:C(v)})}function us(e){return new cs(e)}class cs{#e;#n;constructor(t){var n=new Map,r=(i,f)=>{var l=Sr(f,!1,!1);return n.set(i,l),l};const s=new Proxy({...t.props||{},$$events:{}},{get(i,f){return C(n.get(f)??r(f,Reflect.get(i,f)))},has(i,f){return f===Ot?!0:(C(n.get(f)??r(f,Reflect.get(i,f))),Reflect.has(i,f))},set(i,f,l){return I(n.get(f)??r(f,l),l),Reflect.set(i,f,l)}});this.#n=(t.hydrate?es:bn)(t.component,{target:t.target,anchor:t.anchor,props:s,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&be(),this.#e=s.$$events;for(const i of Object.keys(this.#n))i==="$set"||i==="$destroy"||i==="$on"||Pe(this,i,{get(){return this.#n[i]},set(f){this.#n[i]=f},enumerable:!0});this.#n.$set=i=>{Object.assign(s,i)},this.#n.$destroy=()=>{ts(this.#n)}}$set(t){this.#n.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const r=(...s)=>n.call(this,...s);return this.#e[t].push(r),()=>{this.#e[t]=this.#e[t].filter(s=>s!==r)}}$destroy(){this.#n.$destroy()}}let xn;typeof HTMLElement=="function"&&(xn=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const r=this.$$c.$on(e,t);this.$$l_u.set(t,r)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const r=this.$$l_u.get(t);r&&(r(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(r){return s=>{const i=ut("slot");r!=="default"&&(i.name=r),$n(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},n=hs(this);for(const r of this.$$s)r in n&&(r==="default"&&!this.$$d.children?(this.$$d.children=e(r),t.default=!0):t[r]=e(r));for(const r of this.attributes){const s=this.$$g_p(r.name);s in this.$$d||(this.$$d[s]=Ke(s,r.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)!(r in this.$$d)&&this[r]!==void 0&&(this.$$d[r]=this[r],delete this[r]);this.$$c=us({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Mr(()=>{ln(()=>{this.$$r=!0;for(const r of Ce(this.$$c)){if(!this.$$p_d[r]?.reflect)continue;this.$$d[r]=this.$$c[r];const s=Ke(r,this.$$d[r],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[r].attribute||r):this.setAttribute(this.$$p_d[r].attribute||r,s)}this.$$r=!1})});for(const r in this.$$l)for(const s of this.$$l[r]){const i=this.$$c.$on(r,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ke(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Ce(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Ke(e,t,n,r){const s=n[e]?.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!r||!n[e])return t;if(r==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function hs(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}function ds(e,t,n,r,s,i){let f=class extends xn{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return Ce(t).map(l=>(t[l].attribute||l).toLowerCase())}};return Ce(t).forEach(l=>{Pe(f.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){a=Ke(l,a,t),this.$$d[l]=a;var o=this.$$c;if(o){var u=oe(o,l)?.get;u?o[l]=a:o.$set({[l]:a})}}})}),r.forEach(l=>{Pe(f.prototype,l,{get(){return this.$$c?.[l]}})}),e.element=f,f}const Sn={version:"0.66.4"};function Nn(e){const t=e?.repoName.split("/")?.[1]||e?.repoName;if(!t)throw new Error("wrong componentPath "+e?.repoName);if(!e?.version)throw new Error("wrong version "+e?.version);const n=e?.iifePath||"main.iife.js";if(!document.getElementById(t+"-script"))try{const r=document.createElement("script");if(r.id=t+"-script",r.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${n}`,e?.local)r.src=`${e.local}`;else if(location.href.includes("localhost:6006")){const s=t.split("-")[0];r.src=`http://localhost:6006/webcomponents/${t.replace(s+"-","")}/${n}`}document.head.appendChild(r)}catch(r){console.warn(r)}}var _s=Xr('<div id="compocontainer" class="svelte-11p6sry"><div id="list" class="svelte-11p6sry"><hb-messages-list></hb-messages-list></div> <div id="prompt" class="svelte-11p6sry"><hb-messages-send></hb-messages-send></div></div>',2);const vs={hash:"svelte-11p6sry",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
|
+
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host {font-family:"Roboto", sans-serif;display:block;overflow:hidden;height:fit-content;min-height:100px;}#compocontainer.svelte-11p6sry {display:grid;grid-template-areas:"messages" "prompt";overflow:hidden;grid-template-rows:1fr 180px;height:100%;min-height:200px;}#list.svelte-11p6sry {overflow-y:auto;grid-area:messages;min-height:0;height:100%;}#list.svelte-11p6sry hb-messages-list:where(.svelte-11p6sry) {height:100%;display:block;}#prompt.svelte-11p6sry {grid-area:prompt;width:90%;max-width:1600px;margin:0 auto;}.msglist.svelte-11p6sry {width:90%;max-width:1400px;margin:0 auto;}`};function An(e,t){It(t,!0),ns(e,vs);function n(v,A){t.$$host.dispatchEvent(new CustomEvent(v,{detail:A}))}let r=ke(t,"id",7,""),s=ke(t,"messages",7),i=ke(t,"authors",7),f=ke(t,"options",7),l=ke(t,"message",23,()=>({text:""})),a=K("");Pr(()=>{if(typeof l()=="string")try{l(JSON.parse(l())),I(a,l()?.text?l().text:"",!0)}catch(v){console.error("error parsing message",v)}});function o(v){if(!v?.file&&!v?.text)return console.warn("no message to received",v);n("sendMessage",v),I(a,v.text,!0),I(a,"")}Nn({repoName:"@htmlbricks/hb-messages-list",version:Sn.version}),Nn({repoName:"@htmlbricks/hb-messages-send",version:Sn.version});var u={get id(){return r()},set id(v=""){r(v),be()},get messages(){return s()},set messages(v){s(v),be()},get authors(){return i()},set authors(v){i(v),be()},get options(){return f()},set options(v){f(v),be()},get message(){return l()},set message(v={text:""}){l(v),be()}},h=_s(),c=at(h),d=at(c);pe(d,"id","message-list"),qe(()=>pe(d,"messages",s())),qe(()=>pe(d,"authors",i())),qe(()=>pe(d,"options",f())),ss(d,1,"msglist svelte-11p6sry"),pe(d,"part","msglist"),et(c);var _=Ar(c,2),m=at(_);return qe(()=>pe(m,"text",C(a))),pe(m,"part","msgsend"),et(_),et(h),Gr("sendMessage",m,v=>o(v.detail)),$n(e,h),Lt(u)}customElements.define("hb-messages-box",ds(An,{id:{},messages:{},authors:{},options:{},message:{}},[],[],{mode:"open"})),mt.Component=An,Object.defineProperty(mt,Symbol.toStringTag,{value:"Module"})})(this["messages-box"]=this["messages-box"]||{});
|
|
4
4
|
//# sourceMappingURL=main.iife.js.map
|