@botfabrik/engine-webclient 4.104.33-alpha.8 → 4.104.37
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/dist/client/assets/index-Di6Q4o71.js +76 -0
- package/dist/client/assets/index-Di6Q4o71.js.map +1 -0
- package/dist/client/index.html +1 -1
- package/dist/embed/bundle.js +5 -5
- package/package.json +5 -5
- package/dist/client/assets/index-B43vVEbp.js +0 -134
- package/dist/client/assets/index-B43vVEbp.js.map +0 -1
package/dist/client/index.html
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<meta name="theme-color" content="#000000" />
|
|
14
14
|
<meta name="google" content="notranslate" />
|
|
15
15
|
<title>Bubble Chat Client</title>
|
|
16
|
-
<script type="module" crossorigin src="./assets/index-
|
|
16
|
+
<script type="module" crossorigin src="./assets/index-Di6Q4o71.js"></script>
|
|
17
17
|
<link rel="stylesheet" crossorigin href="./assets/index-CXSidNoh.css">
|
|
18
18
|
</head>
|
|
19
19
|
|
package/dist/embed/bundle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";const Be=!1;var wn=Array.isArray,bn=Array.prototype.indexOf,yn=Array.from,En=Object.defineProperty,ae=Object.getOwnPropertyDescriptor,kn=Object.getOwnPropertyDescriptors,xn=Object.prototype,Tn=Array.prototype,mt=Object.getPrototypeOf,wt=Object.isExtensible;function Sn(e){for(var t=0;t<e.length;t++)e[t]()}function bt(){var e,t,n=new Promise((i,r)=>{e=i,t=r});return{promise:n,resolve:e,reject:t}}const E=2,Te=4,Se=8,yt=1<<24,q=16,B=32,te=64,Ge=128,I=512,x=1024,T=2048,G=4096,z=8192,H=16384,He=32768,le=65536,Et=1<<17,Ye=1<<18,fe=1<<19,On=1<<20,ne=32768,Ve=1<<21,Ke=1<<22,J=1<<23,Oe=Symbol("$state"),Cn=Symbol("legacy props"),An=Symbol(""),ue=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Rn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Dn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Nn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function In(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ln(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Pn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Mn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Fn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Un(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Wn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function zn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const jn=1,qn=4,Bn=8,Gn=16,Hn=1,Yn=2,k=Symbol(),Vn="http://www.w3.org/1999/xhtml";function Kn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function kt(e){return e===this.v}function Xn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Zn(e){return!Xn(e,this.v)}let Jn=!1,R=null;function ce(e){R=e}function Ce(e,t=!1,n){R={p:R,i:!1,c:null,e:null,s:e,x:null,l:null}}function Ae(e){var t=R,n=t.e;if(n!==null){t.e=null;for(var i of n)zt(i)}return t.i=!0,R=t.p,{}}function xt(){return!0}let de=[];function Qn(){var e=de;de=[],Sn(e)}function he(e){if(de.length===0){var t=de;queueMicrotask(()=>{t===de&&Qn()})}de.push(e)}function Tt(e){var t=_;if(t===null)return v.f|=J,e;if((t.f&He)===0){if((t.f&Ge)===0)throw e;t.b.error(e)}else ve(e,t)}function ve(e,t){for(;t!==null;){if((t.f&Ge)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const $n=-7169;function w(e,t){e.f=e.f&$n|t}function Xe(e){(e.f&I)!==0||e.deps===null?w(e,x):w(e,G)}function St(e){if(e!==null)for(const t of e)(t.f&E)===0||(t.f&ne)===0||(t.f^=ne,St(t.deps))}function Ot(e,t,n){(e.f&T)!==0?t.add(e):(e.f&G)!==0&&n.add(e),St(e.deps),w(e,x)}const Re=new Set;let m=null,P=null,M=[],Ze=null,Je=!1;class Q{committed=!1;current=new Map;previous=new Map;#t=new Set;#o=new Set;#e=0;#i=0;#s=null;#r=new Set;#n=new Set;skipped_effects=new Set;is_fork=!1;#a=!1;is_deferred(){return this.is_fork||this.#i>0}process(t){M=[],this.apply();var n=[],i=[];for(const r of t)this.#l(r,n,i);if(this.is_deferred())this.#f(i),this.#f(n);else{for(const r of this.#t)r();this.#t.clear(),this.#e===0&&this.#u(),m=null,Ct(i),Ct(n),this.#s?.resolve()}P=null}#l(t,n,i){t.f^=x;for(var r=t.first,s=null;r!==null;){var o=r.f,a=(o&(B|te))!==0,l=a&&(o&x)!==0,f=l||(o&z)!==0||this.skipped_effects.has(r);if(!f&&r.fn!==null){a?r.f^=x:s!==null&&(o&(Te|Se|yt))!==0?s.b.defer_effect(r):(o&Te)!==0?n.push(r):Ee(r)&&((o&q)!==0&&this.#r.add(r),ke(r));var c=r.first;if(c!==null){r=c;continue}}var d=r.parent;for(r=r.next;r===null&&d!==null;)d===s&&(s=null),r=d.next,d=d.parent}}#f(t){for(var n=0;n<t.length;n+=1)Ot(t[n],this.#r,this.#n)}capture(t,n){n!==k&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&J)===0&&(this.current.set(t,t.v),P?.set(t,t.v))}activate(){m=this,this.apply()}deactivate(){m===this&&(m=null,P=null)}flush(){if(this.activate(),M.length>0){if(er(),m!==null&&m!==this)return}else this.#e===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#o)t(this);this.#o.clear()}#u(){if(Re.size>1){this.previous.clear();var t=P,n=!0;for(const r of Re){if(r===this){n=!1;continue}const s=[];for(const[a,l]of this.current){if(r.current.has(a))if(n&&l!==r.current.get(a))r.current.set(a,l);else continue;s.push(a)}if(s.length===0)continue;const o=[...r.current.keys()].filter(a=>!this.current.has(a));if(o.length>0){var i=M;M=[];const a=new Set,l=new Map;for(const f of s)At(f,o,a,l);if(M.length>0){m=r,r.apply();for(const f of M)r.#l(f,[],[]);r.deactivate()}M=i}}m=null,P=t}this.committed=!0,Re.delete(this)}increment(t){this.#e+=1,t&&(this.#i+=1)}decrement(t){this.#e-=1,t&&(this.#i-=1),!this.#a&&(this.#a=!0,he(()=>{this.#a=!1,this.is_deferred()?M.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#r)this.#n.delete(t),w(t,T),V(t);for(const t of this.#n)w(t,G),V(t);this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#o.add(t)}settled(){return(this.#s??=bt()).promise}static ensure(){if(m===null){const t=m=new Q;Re.add(m),he(()=>{m===t&&t.flush()})}return m}apply(){}}function er(){Je=!0;var e=null;try{for(var t=0;M.length>0;){var n=Q.ensure();if(t++>1e3){var i,r;tr()}n.process(M),$.clear()}}finally{Je=!1,Ze=null}}function tr(){try{Pn()}catch(e){ve(e,Ze)}}let Y=null;function Ct(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var i=e[n++];if((i.f&(H|z))===0&&Ee(i)&&(Y=new Set,ke(i),i.deps===null&&i.first===null&&i.nodes===null&&(i.teardown===null&&i.ac===null?Bt(i):i.fn=null),Y?.size>0)){$.clear();for(const r of Y){if((r.f&(H|z))!==0)continue;const s=[r];let o=r.parent;for(;o!==null;)Y.has(o)&&(Y.delete(o),s.push(o)),o=o.parent;for(let a=s.length-1;a>=0;a--){const l=s[a];(l.f&(H|z))===0&&ke(l)}}Y.clear()}}Y=null}}function At(e,t,n,i){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const r of e.reactions){const s=r.f;(s&E)!==0?At(r,t,n,i):(s&(Ke|q))!==0&&(s&T)===0&&Rt(r,t,i)&&(w(r,T),V(r))}}function Rt(e,t,n){const i=n.get(e);if(i!==void 0)return i;if(e.deps!==null)for(const r of e.deps){if(t.includes(r))return!0;if((r.f&E)!==0&&Rt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function V(e){for(var t=Ze=e;t.parent!==null;){t=t.parent;var n=t.f;if(Je&&t===_&&(n&q)!==0&&(n&Ye)===0)return;if((n&(te|B))!==0){if((n&x)===0)return;t.f^=x}}M.push(t)}function nr(e){let t=0,n=De(0),i;return()=>{rt()&&(S(n),kr(()=>(t===0&&(i=st(()=>e(()=>be(n)))),t+=1,()=>{he(()=>{t-=1,t===0&&(i?.(),i=void 0,be(n))})})))}}var rr=le|fe|Ge;function ir(e,t,n){new sr(e,t,n)}class sr{parent;is_pending=!1;#t;#o=null;#e;#i;#s;#r=null;#n=null;#a=null;#l=null;#f=null;#u=0;#d=0;#v=!1;#h=!1;#_=new Set;#p=new Set;#c=null;#y=nr(()=>(this.#c=De(this.#u),()=>{this.#c=null}));constructor(t,n,i){this.#t=t,this.#e=n,this.#i=i,this.parent=_.b,this.is_pending=!!this.#e.pending,this.#s=it(()=>{_.b=this;{var r=this.#w();try{this.#r=X(()=>i(r))}catch(s){this.error(s)}this.#d>0?this.#m():this.is_pending=!1}return()=>{this.#f?.remove()}},rr)}#E(){try{this.#r=X(()=>this.#i(this.#t))}catch(t){this.error(t)}}#k(){const t=this.#e.pending;t&&(this.#n=X(()=>t(this.#t)),he(()=>{var n=this.#w();this.#r=this.#g(()=>(Q.ensure(),X(()=>this.#i(n)))),this.#d>0?this.#m():(ye(this.#n,()=>{this.#n=null}),this.is_pending=!1)}))}#w(){var t=this.#t;return this.is_pending&&(this.#f=_e(),this.#t.before(this.#f),t=this.#f),t}defer_effect(t){Ot(t,this.#_,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#e.pending}#g(t){var n=_,i=v,r=R;j(this.#s),O(this.#s),ce(this.#s.ctx);try{return t()}catch(s){return Tt(s),null}finally{j(n),O(i),ce(r)}}#m(){const t=this.#e.pending;this.#r!==null&&(this.#l=document.createDocumentFragment(),this.#l.append(this.#f),Yt(this.#r,this.#l)),this.#n===null&&(this.#n=X(()=>t(this.#t)))}#b(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(t);return}if(this.#d+=t,this.#d===0){this.is_pending=!1;for(const n of this.#_)w(n,T),V(n);for(const n of this.#p)w(n,G),V(n);this.#_.clear(),this.#p.clear(),this.#n&&ye(this.#n,()=>{this.#n=null}),this.#l&&(this.#t.before(this.#l),this.#l=null)}}update_pending_count(t){this.#b(t),this.#u+=t,!(!this.#c||this.#v)&&(this.#v=!0,he(()=>{this.#v=!1,this.#c&&Ne(this.#c,this.#u)}))}get_effect_pending(){return this.#y(),S(this.#c)}error(t){var n=this.#e.onerror;let i=this.#e.failed;if(this.#h||!n&&!i)throw t;this.#r&&(D(this.#r),this.#r=null),this.#n&&(D(this.#n),this.#n=null),this.#a&&(D(this.#a),this.#a=null);var r=!1,s=!1;const o=()=>{if(r){Kn();return}r=!0,s&&zn(),Q.ensure(),this.#u=0,this.#a!==null&&ye(this.#a,()=>{this.#a=null}),this.is_pending=this.has_pending_snippet(),this.#r=this.#g(()=>(this.#h=!1,X(()=>this.#i(this.#t)))),this.#d>0?this.#m():this.is_pending=!1};var a=v;try{O(null),s=!0,n?.(t,o),s=!1}catch(l){ve(l,this.#s&&this.#s.parent)}finally{O(a)}i&&he(()=>{this.#a=this.#g(()=>{Q.ensure(),this.#h=!0;try{return X(()=>{i(this.#t,()=>t,()=>o)})}catch(l){return ve(l,this.#s.parent),null}finally{this.#h=!1}})})}}function or(e,t,n,i){const r=$e;var s=e.filter(u=>!u.settled);if(n.length===0&&s.length===0){i(t.map(r));return}var o=m,a=_,l=ar(),f=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(u=>u.promise)):null;function c(u){l();try{i(u)}catch(h){(a.f&H)===0&&ve(h,a)}o?.deactivate(),Qe()}if(n.length===0){f.then(()=>c(t.map(r)));return}function d(){l(),Promise.all(n.map(u=>lr(u))).then(u=>c([...t.map(r),...u])).catch(u=>ve(u,a))}f?f.then(d):d()}function ar(){var e=_,t=v,n=R,i=m;return function(s=!0){j(e),O(t),ce(n),s&&i?.activate()}}function Qe(){j(null),O(null),ce(null)}function $e(e){var t=E|T,n=v!==null&&(v.f&E)!==0?v:null;return _!==null&&(_.f|=fe),{ctx:R,deps:null,effects:null,equals:kt,f:t,fn:e,reactions:null,rv:0,v:k,wv:0,parent:n??_,ac:null}}function lr(e,t,n){let i=_;i===null&&Dn();var r=i.b,s=void 0,o=De(k),a=!v,l=new Map;return Er(()=>{var f=bt();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{c===m&&c.committed&&c.deactivate(),Qe()})}catch(h){f.reject(h),Qe()}var c=m;if(a){var d=r.is_rendered();r.update_pending_count(1),c.increment(d),l.get(c)?.reject(ue),l.delete(c),l.set(c,f)}const u=(h,p=void 0)=>{if(c.activate(),p)p!==ue&&(o.f|=J,Ne(o,p));else{(o.f&J)!==0&&(o.f^=J),Ne(o,h);for(const[b,y]of l){if(l.delete(b),b===c)break;y.reject(ue)}}a&&(r.update_pending_count(-1),c.decrement(d))};f.promise.then(u,h=>u(null,h||"unknown"))}),mr(()=>{for(const f of l.values())f.reject(ue)}),new Promise(f=>{function c(d){function u(){d===s?f(o):c(s)}d.then(u,u)}c(s)})}function fr(e){const t=$e(e);return t.equals=Zn,t}function Dt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)D(t[n])}}function ur(e){for(var t=e.parent;t!==null;){if((t.f&E)===0)return(t.f&H)===0?t:null;t=t.parent}return null}function et(e){var t,n=_;j(ur(e));try{e.f&=~ne,Dt(e),t=Qt(e)}finally{j(n)}return t}function Nt(e){var t=et(e);if(!e.equals(t)&&(e.wv=Zt(),(!m?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){w(e,x);return}ee||(P!==null?(rt()||m?.is_fork)&&P.set(e,t):Xe(e))}let tt=new Set;const $=new Map;let It=!1;function De(e,t){var n={f:0,v:e,reactions:null,equals:kt,rv:0,wv:0};return n}function F(e,t){const n=De(e);return Or(n),n}function U(e,t,n=!1){v!==null&&(!W||(v.f&Et)!==0)&&xt()&&(v.f&(E|q|Ke|Et))!==0&&!Z?.includes(e)&&Wn();let i=n?re(t):t;return Ne(e,i)}function Ne(e,t){if(!e.equals(t)){var n=e.v;ee?$.set(e,t):$.set(e,n),e.v=t;var i=Q.ensure();if(i.capture(e,n),(e.f&E)!==0){const r=e;(e.f&T)!==0&&et(r),Xe(r)}e.wv=Zt(),Lt(e,T),_!==null&&(_.f&x)!==0&&(_.f&(B|te))===0&&(L===null?Cr([e]):L.push(e)),!i.is_fork&&tt.size>0&&!It&&cr()}return t}function cr(){It=!1;for(const e of tt)(e.f&x)!==0&&w(e,G),Ee(e)&&ke(e);tt.clear()}function be(e){U(e,e.v+1)}function Lt(e,t){var n=e.reactions;if(n!==null)for(var i=n.length,r=0;r<i;r++){var s=n[r],o=s.f,a=(o&T)===0;if(a&&w(s,t),(o&E)!==0){var l=s;P?.delete(l),(o&ne)===0&&(o&I&&(s.f|=ne),Lt(l,G))}else a&&((o&q)!==0&&Y!==null&&Y.add(s),V(s))}}function re(e){if(typeof e!="object"||e===null||Oe in e)return e;const t=mt(e);if(t!==xn&&t!==Tn)return e;var n=new Map,i=wn(e),r=F(0),s=se,o=a=>{if(se===s)return a();var l=v,f=se;O(null),Xt(s);var c=a();return O(l),Xt(f),c};return i&&n.set("length",F(e.length)),new Proxy(e,{defineProperty(a,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Fn();var c=n.get(l);return c===void 0?c=o(()=>{var d=F(f.value);return n.set(l,d),d}):U(c,f.value,!0),!0},deleteProperty(a,l){var f=n.get(l);if(f===void 0){if(l in a){const c=o(()=>F(k));n.set(l,c),be(r)}}else U(f,k),be(r);return!0},get(a,l,f){if(l===Oe)return e;var c=n.get(l),d=l in a;if(c===void 0&&(!d||ae(a,l)?.writable)&&(c=o(()=>{var h=re(d?a[l]:k),p=F(h);return p}),n.set(l,c)),c!==void 0){var u=S(c);return u===k?void 0:u}return Reflect.get(a,l,f)},getOwnPropertyDescriptor(a,l){var f=Reflect.getOwnPropertyDescriptor(a,l);if(f&&"value"in f){var c=n.get(l);c&&(f.value=S(c))}else if(f===void 0){var d=n.get(l),u=d?.v;if(d!==void 0&&u!==k)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return f},has(a,l){if(l===Oe)return!0;var f=n.get(l),c=f!==void 0&&f.v!==k||Reflect.has(a,l);if(f!==void 0||_!==null&&(!c||ae(a,l)?.writable)){f===void 0&&(f=o(()=>{var u=c?re(a[l]):k,h=F(u);return h}),n.set(l,f));var d=S(f);if(d===k)return!1}return c},set(a,l,f,c){var d=n.get(l),u=l in a;if(i&&l==="length")for(var h=f;h<d.v;h+=1){var p=n.get(h+"");p!==void 0?U(p,k):h in a&&(p=o(()=>F(k)),n.set(h+"",p))}if(d===void 0)(!u||ae(a,l)?.writable)&&(d=o(()=>F(void 0)),U(d,re(f)),n.set(l,d));else{u=d.v!==k;var b=o(()=>re(f));U(d,b)}var y=Reflect.getOwnPropertyDescriptor(a,l);if(y?.set&&y.set.call(c,f),!u){if(i&&typeof l=="string"){var we=n.get("length"),g=Number(l);Number.isInteger(g)&&g>=we.v&&U(we,g+1)}be(r)}return!0},ownKeys(a){S(r);var l=Reflect.ownKeys(a).filter(d=>{var u=n.get(d);return u===void 0||u.v!==k});for(var[f,c]of n)c.v!==k&&!(f in a)&&l.push(f);return l},setPrototypeOf(){Un()}})}var Pt,Mt,Ft,Ut;function dr(){if(Pt===void 0){Pt=window,Mt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Ft=ae(t,"firstChild").get,Ut=ae(t,"nextSibling").get,wt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),wt(n)&&(n.__t=void 0)}}function _e(e=""){return document.createTextNode(e)}function Ie(e){return Ft.call(e)}function Le(e){return Ut.call(e)}function nt(e,t){return Ie(e)}function hr(e,t=!1){{var n=Ie(e);return n instanceof Comment&&n.data===""?Le(n):n}}function vr(e,t=1,n=!1){let i=e;for(;t--;)i=Le(i);return i}function _r(){return!1}function Wt(e){var t=v,n=_;O(null),j(null);try{return e()}finally{O(t),j(n)}}function pr(e){_===null&&(v===null&&Ln(),In()),ee&&Nn()}function gr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function K(e,t,n){var i=_;i!==null&&(i.f&z)!==0&&(e|=z);var r={ctx:R,deps:null,nodes:null,f:e|T|I,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{ke(r),r.f|=He}catch(a){throw D(r),a}else t!==null&&V(r);var s=r;if(n&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&fe)===0&&(s=s.first,(e&q)!==0&&(e&le)!==0&&s!==null&&(s.f|=le)),s!==null&&(s.parent=i,i!==null&&gr(s,i),v!==null&&(v.f&E)!==0&&(e&te)===0)){var o=v;(o.effects??=[]).push(s)}return r}function rt(){return v!==null&&!W}function mr(e){const t=K(Se,null,!1);return w(t,x),t.teardown=e,t}function wr(e){pr();var t=_.f,n=!v&&(t&B)!==0&&(t&He)===0;if(n){var i=R;(i.e??=[]).push(e)}else return zt(e)}function zt(e){return K(Te|On,e,!1)}function br(e){Q.ensure();const t=K(te|fe,e,!0);return(n={})=>new Promise(i=>{n.outro?ye(t,()=>{D(t),i(void 0)}):(D(t),i(void 0))})}function yr(e){return K(Te,e,!1)}function Er(e){return K(Ke|fe,e,!0)}function kr(e,t=0){return K(Se|t,e,!0)}function Pe(e,t=[],n=[],i=[]){or(i,t,n,r=>{K(Se,()=>e(...r.map(S)),!0)})}function it(e,t=0){var n=K(q|t,e,!0);return n}function X(e){return K(B|fe,e,!0)}function jt(e){var t=e.teardown;if(t!==null){const n=ee,i=v;Vt(!0),O(null);try{t.call(null)}finally{Vt(n),O(i)}}}function qt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const r=n.ac;r!==null&&Wt(()=>{r.abort(ue)});var i=n.next;(n.f&te)!==0?n.parent=null:D(n,t),n=i}}function xr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&B)===0&&D(t),t=n}}function D(e,t=!0){var n=!1;(t||(e.f&Ye)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Tr(e.nodes.start,e.nodes.end),n=!0),qt(e,t&&!n),Fe(e,0),w(e,H);var i=e.nodes&&e.nodes.t;if(i!==null)for(const s of i)s.stop();jt(e);var r=e.parent;r!==null&&r.first!==null&&Bt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Tr(e,t){for(;e!==null;){var n=e===t?null:Le(e);e.remove(),e=n}}function Bt(e){var t=e.parent,n=e.prev,i=e.next;n!==null&&(n.next=i),i!==null&&(i.prev=n),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=n))}function ye(e,t,n=!0){var i=[];Gt(e,i,!0);var r=()=>{n&&D(e),t&&t()},s=i.length;if(s>0){var o=()=>--s||r();for(var a of i)a.out(o)}else r()}function Gt(e,t,n){if((e.f&z)===0){e.f^=z;var i=e.nodes&&e.nodes.t;if(i!==null)for(const a of i)(a.is_global||n)&&t.push(a);for(var r=e.first;r!==null;){var s=r.next,o=(r.f&le)!==0||(r.f&B)!==0&&(e.f&q)!==0;Gt(r,t,o?n:!1),r=s}}}function Sr(e){Ht(e,!0)}function Ht(e,t){if((e.f&z)!==0){e.f^=z,(e.f&x)===0&&(w(e,T),V(e));for(var n=e.first;n!==null;){var i=n.next,r=(n.f&le)!==0||(n.f&B)!==0;Ht(n,r?t:!1),n=i}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function Yt(e,t){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end;n!==null;){var r=n===i?null:Le(n);t.append(n),n=r}}let Me=!1,ee=!1;function Vt(e){ee=e}let v=null,W=!1;function O(e){v=e}let _=null;function j(e){_=e}let Z=null;function Or(e){v!==null&&(Z===null?Z=[e]:Z.push(e))}let C=null,N=0,L=null;function Cr(e){L=e}let Kt=1,ie=0,se=ie;function Xt(e){se=e}function Zt(){return++Kt}function Ee(e){var t=e.f;if((t&T)!==0)return!0;if(t&E&&(e.f&=~ne),(t&G)!==0){for(var n=e.deps,i=n.length,r=0;r<i;r++){var s=n[r];if(Ee(s)&&Nt(s),s.wv>e.wv)return!0}(t&I)!==0&&P===null&&w(e,x)}return!1}function Jt(e,t,n=!0){var i=e.reactions;if(i!==null&&!Z?.includes(e))for(var r=0;r<i.length;r++){var s=i[r];(s.f&E)!==0?Jt(s,t,!1):t===s&&(n?w(s,T):(s.f&x)!==0&&w(s,G),V(s))}}function Qt(e){var t=C,n=N,i=L,r=v,s=Z,o=R,a=W,l=se,f=e.f;C=null,N=0,L=null,v=(f&(B|te))===0?e:null,Z=null,ce(e.ctx),W=!1,se=++ie,e.ac!==null&&(Wt(()=>{e.ac.abort(ue)}),e.ac=null);try{e.f|=Ve;var c=e.fn,d=c(),u=e.deps;if(C!==null){var h;if(Fe(e,N),u!==null&&N>0)for(u.length=N+C.length,h=0;h<C.length;h++)u[N+h]=C[h];else e.deps=u=C;if(rt()&&(e.f&I)!==0)for(h=N;h<u.length;h++)(u[h].reactions??=[]).push(e)}else u!==null&&N<u.length&&(Fe(e,N),u.length=N);if(xt()&&L!==null&&!W&&u!==null&&(e.f&(E|G|T))===0)for(h=0;h<L.length;h++)Jt(L[h],e);if(r!==null&&r!==e){if(ie++,r.deps!==null)for(let p=0;p<n;p+=1)r.deps[p].rv=ie;if(t!==null)for(const p of t)p.rv=ie;L!==null&&(i===null?i=L:i.push(...L))}return(e.f&J)!==0&&(e.f^=J),d}catch(p){return Tt(p)}finally{e.f^=Ve,C=t,N=n,L=i,v=r,Z=s,ce(o),W=a,se=l}}function Ar(e,t){let n=t.reactions;if(n!==null){var i=bn.call(n,e);if(i!==-1){var r=n.length-1;r===0?n=t.reactions=null:(n[i]=n[r],n.pop())}}if(n===null&&(t.f&E)!==0&&(C===null||!C.includes(t))){var s=t;(s.f&I)!==0&&(s.f^=I,s.f&=~ne),Xe(s),Dt(s),Fe(s,0)}}function Fe(e,t){var n=e.deps;if(n!==null)for(var i=t;i<n.length;i++)Ar(e,n[i])}function ke(e){var t=e.f;if((t&H)===0){w(e,x);var n=_,i=Me;_=e,Me=!0;try{(t&(q|yt))!==0?xr(e):qt(e),jt(e);var r=Qt(e);e.teardown=typeof r=="function"?r:null,e.wv=Kt;var s;Be&&Jn&&(e.f&T)!==0&&e.deps}finally{Me=i,_=n}}}function S(e){var t=e.f,n=(t&E)!==0;if(v!==null&&!W){var i=_!==null&&(_.f&H)!==0;if(!i&&!Z?.includes(e)){var r=v.deps;if((v.f&Ve)!==0)e.rv<ie&&(e.rv=ie,C===null&&r!==null&&r[N]===e?N++:C===null?C=[e]:C.push(e));else{(v.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[v]:s.includes(v)||s.push(v)}}}if(ee&&$.has(e))return $.get(e);if(n){var o=e;if(ee){var a=o.v;return((o.f&x)===0&&o.reactions!==null||en(o))&&(a=et(o)),$.set(o,a),a}var l=(o.f&I)===0&&!W&&v!==null&&(Me||(v.f&I)!==0),f=o.deps===null;Ee(o)&&(l&&(o.f|=I),Nt(o)),l&&!f&&$t(o)}if(P?.has(e))return P.get(e);if((e.f&J)!==0)throw e.v;return e.v}function $t(e){if(e.deps!==null){e.f|=I;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&E)!==0&&(t.f&I)===0&&$t(t)}}function en(e){if(e.v===k)return!0;if(e.deps===null)return!1;for(const t of e.deps)if($.has(t)||(t.f&E)!==0&&en(t))return!0;return!1}function st(e){var t=W;try{return W=!0,e()}finally{W=t}}const Rr=["touchstart","touchmove"];function Dr(e){return Rr.includes(e)}const tn=new Set,ot=new Set;function Nr(e){for(var t=0;t<e.length;t++)tn.add(e[t]);for(var n of ot)n(e)}let nn=null;function Ue(e){var t=this,n=t.ownerDocument,i=e.type,r=e.composedPath?.()||[],s=r[0]||e.target;nn=e;var o=0,a=nn===e&&e.__root;if(a){var l=r.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=r.indexOf(t);if(f===-1)return;l<=f&&(o=l)}if(s=r[o]||e.target,s!==t){En(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=v,d=_;O(null),j(null);try{for(var u,h=[];s!==null;){var p=s.assignedSlot||s.parentNode||s.host||null;try{var b=s["__"+i];b!=null&&(!s.disabled||e.target===s)&&b.call(s,e)}catch(y){u?h.push(y):u=y}if(e.cancelBubble||p===t||p===null)break;s=p}if(u){for(let y of h)queueMicrotask(()=>{throw y});throw u}}finally{e.__root=t,delete e.currentTarget,O(c),j(d)}}}function Ir(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function at(e,t){var n=_;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function xe(e,t){var n=(t&Hn)!==0,i=(t&Yn)!==0,r,s=!e.startsWith("<!>");return()=>{r===void 0&&(r=Ir(s?e:"<!>"+e),n||(r=Ie(r)));var o=i||Mt?document.importNode(r,!0):r.cloneNode(!0);if(n){var a=Ie(o),l=o.lastChild;at(a,l)}else at(o,o);return o}}function Lr(){var e=document.createDocumentFragment(),t=document.createComment(""),n=_e();return e.append(t,n),at(t,n),e}function pe(e,t){e!==null&&e.before(t)}function Pr(e,t){return Mr(e,t)}const ge=new Map;function Mr(e,{target:t,anchor:n,props:i={},events:r,context:s,intro:o=!0}){dr();var a=new Set,l=d=>{for(var u=0;u<d.length;u++){var h=d[u];if(!a.has(h)){a.add(h);var p=Dr(h);t.addEventListener(h,Ue,{passive:p});var b=ge.get(h);b===void 0?(document.addEventListener(h,Ue,{passive:p}),ge.set(h,1)):ge.set(h,b+1)}}};l(yn(tn)),ot.add(l);var f=void 0,c=br(()=>{var d=n??t.appendChild(_e());return ir(d,{pending:()=>{}},u=>{if(s){Ce({});var h=R;h.c=s}r&&(i.$$events=r),f=e(u,i)||{},s&&Ae()}),()=>{for(var u of a){t.removeEventListener(u,Ue);var h=ge.get(u);--h===0?(document.removeEventListener(u,Ue),ge.delete(u)):ge.set(u,h)}ot.delete(l),d!==n&&d.parentNode?.removeChild(d)}});return Fr.set(f,c),f}let Fr=new WeakMap;class Ur{anchor;#t=new Map;#o=new Map;#e=new Map;#i=new Set;#s=!0;constructor(t,n=!0){this.anchor=t,this.#s=n}#r=()=>{var t=m;if(this.#t.has(t)){var n=this.#t.get(t),i=this.#o.get(n);if(i)Sr(i),this.#i.delete(n);else{var r=this.#e.get(n);r&&(this.#o.set(n,r.effect),this.#e.delete(n),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),i=r.effect)}for(const[s,o]of this.#t){if(this.#t.delete(s),s===t)break;const a=this.#e.get(o);a&&(D(a.effect),this.#e.delete(o))}for(const[s,o]of this.#o){if(s===n||this.#i.has(s))continue;const a=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();Yt(o,f),f.append(_e()),this.#e.set(s,{effect:o,fragment:f})}else D(o);this.#i.delete(s),this.#o.delete(s)};this.#s||!i?(this.#i.add(s),ye(o,a,!1)):a()}}};#n=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[i,r]of this.#e)n.includes(i)||(D(r.effect),this.#e.delete(i))};ensure(t,n){var i=m,r=_r();if(n&&!this.#o.has(t)&&!this.#e.has(t))if(r){var s=document.createDocumentFragment(),o=_e();s.append(o),this.#e.set(t,{effect:X(()=>n(o)),fragment:s})}else this.#o.set(t,X(()=>n(this.anchor)));if(this.#t.set(i,t),r){for(const[a,l]of this.#o)a===t?i.skipped_effects.delete(l):i.skipped_effects.add(l);for(const[a,l]of this.#e)a===t?i.skipped_effects.delete(l.effect):i.skipped_effects.add(l.effect);i.oncommit(this.#r),i.ondiscard(this.#n)}else this.#r()}}function Wr(e,t,n=!1){var i=new Ur(e),r=n?le:0;function s(o,a){i.ensure(o,a)}it(()=>{var o=!1;t((a,l=!0)=>{o=!0,s(l,a)}),o||s(!1,null)},r)}function zr(e,t){var n;n=document.head.appendChild(_e()),it(()=>t(n),Ye)}function lt(e,t){yr(()=>{var n=e.getRootNode(),i=n.host?n:n.head??n.ownerDocument.head;if(!i.querySelector("#"+t.hash)){const r=document.createElement("style");r.id=t.hash,r.textContent=t.code,i.appendChild(r)}})}const rn=[...`
|
|
2
|
-
\r\f \v\uFEFF`];function
|
|
1
|
+
(function(){"use strict";const Be=!1;var Tn=Array.isArray,Sn=Array.prototype.indexOf,fe=Array.prototype.includes,On=Array.from,Cn=Object.defineProperty,ue=Object.getOwnPropertyDescriptor,An=Object.getOwnPropertyDescriptors,Rn=Object.prototype,Nn=Array.prototype,wt=Object.getPrototypeOf,mt=Object.isExtensible;const Dn=()=>{};function In(e){for(var t=0;t<e.length;t++)e[t]()}function bt(){var e,t,n=new Promise((i,r)=>{e=i,t=r});return{promise:n,resolve:e,reject:t}}const k=2,ye=4,Ce=8,yt=1<<24,V=16,q=32,ne=64,Et=128,D=512,E=1024,x=2048,F=4096,B=8192,K=16384,Ee=32768,ce=65536,kt=1<<17,Ge=1<<18,de=1<<19,Ln=1<<20,re=65536,Ye=1<<21,Ve=1<<22,Q=1<<23,Ae=Symbol("$state"),Mn=Symbol("legacy props"),Pn=Symbol(""),ie=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Fn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Un(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function zn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Wn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function jn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Hn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function qn(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Bn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Gn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Yn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Vn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Kn=1,Xn=4,Zn=8,Jn=16,Qn=1,$n=2,T=Symbol(),xt="http://www.w3.org/1999/xhtml";function er(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Tt(e){return e===this.v}function tr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function nr(e){return!tr(e,this.v)}let rr=!1,A=null;function he(e){A=e}function Re(e,t=!1,n){A={p:A,i:!1,c:null,e:null,s:e,x:null,l:null}}function Ne(e){var t=A,n=t.e;if(n!==null){t.e=null;for(var i of n)Bt(i)}return t.i=!0,A=t.p,{}}function St(){return!0}let ve=[];function ir(){var e=ve;ve=[],In(e)}function _e(e){if(ve.length===0){var t=ve;queueMicrotask(()=>{t===ve&&ir()})}ve.push(e)}function Ot(e){var t=g;if(t===null)return _.f|=Q,e;if((t.f&Ee)===0&&(t.f&ye)===0)throw e;pe(e,t)}function pe(e,t){for(;t!==null;){if((t.f&Et)!==0){if((t.f&Ee)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const sr=-7169;function b(e,t){e.f=e.f&sr|t}function Ke(e){(e.f&D)!==0||e.deps===null?b(e,E):b(e,F)}function Ct(e){if(e!==null)for(const t of e)(t.f&k)===0||(t.f&re)===0||(t.f^=re,Ct(t.deps))}function At(e,t,n){(e.f&x)!==0?t.add(e):(e.f&F)!==0&&n.add(e),Ct(e.deps),b(e,E)}const De=new Set;let m=null,U=null,I=[],Xe=null,Ze=!1;class ${committed=!1;current=new Map;previous=new Map;#t=new Set;#a=new Set;#e=0;#s=0;#o=null;#r=new Set;#n=new Set;#i=new Map;is_fork=!1;#l=!1;is_deferred(){return this.is_fork||this.#s>0}skip_effect(t){this.#i.has(t)||this.#i.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#i.get(t);if(n){this.#i.delete(t);for(var i of n.d)b(i,x),z(i);for(i of n.m)b(i,F),z(i)}}process(t){I=[],this.apply();var n=[],i=[];for(const r of t)this.#f(r,n,i);if(this.is_deferred()){this.#u(i),this.#u(n);for(const[r,s]of this.#i)It(r,s)}else{for(const r of this.#t)r();this.#t.clear(),this.#e===0&&this.#c(),m=null,Rt(i),Rt(n),this.#o?.resolve()}U=null}#f(t,n,i){t.f^=E;for(var r=t.first,s=null;r!==null;){var o=r.f,a=(o&(q|ne))!==0,l=a&&(o&E)!==0,f=l||(o&B)!==0||this.#i.has(r);if(!f&&r.fn!==null){a?r.f^=E:s!==null&&(o&(ye|Ce|yt))!==0?s.b.defer_effect(r):(o&ye)!==0?n.push(r):Te(r)&&((o&V)!==0&&this.#n.add(r),we(r));var c=r.first;if(c!==null){r=c;continue}}var d=r.parent;for(r=r.next;r===null&&d!==null;)d===s&&(s=null),r=d.next,d=d.parent}}#u(t){for(var n=0;n<t.length;n+=1)At(t[n],this.#r,this.#n)}capture(t,n){n!==T&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Q)===0&&(this.current.set(t,t.v),U?.set(t,t.v))}activate(){m=this,this.apply()}deactivate(){m===this&&(m=null,U=null)}flush(){if(this.activate(),I.length>0){if(or(),m!==null&&m!==this)return}else this.#e===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#a)t(this);this.#a.clear()}#c(){if(De.size>1){this.previous.clear();var t=U,n=!0;for(const r of De){if(r===this){n=!1;continue}const s=[];for(const[a,l]of this.current){if(r.current.has(a))if(n&&l!==r.current.get(a))r.current.set(a,l);else continue;s.push(a)}if(s.length===0)continue;const o=[...r.current.keys()].filter(a=>!this.current.has(a));if(o.length>0){var i=I;I=[];const a=new Set,l=new Map;for(const f of s)Nt(f,o,a,l);if(I.length>0){m=r,r.apply();for(const f of I)r.#f(f,[],[]);r.deactivate()}I=i}}m=null,U=t}this.committed=!0,De.delete(this)}increment(t){this.#e+=1,t&&(this.#s+=1)}decrement(t){this.#e-=1,t&&(this.#s-=1),!this.#l&&(this.#l=!0,_e(()=>{this.#l=!1,this.is_deferred()?I.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#r)this.#n.delete(t),b(t,x),z(t);for(const t of this.#n)b(t,F),z(t);this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#a.add(t)}settled(){return(this.#o??=bt()).promise}static ensure(){if(m===null){const t=m=new $;De.add(m),_e(()=>{m===t&&t.flush()})}return m}apply(){}}function or(){Ze=!0;var e=null;try{for(var t=0;I.length>0;){var n=$.ensure();if(t++>1e3){var i,r;ar()}n.process(I),ee.clear()}}finally{I=[],Ze=!1,Xe=null}}function ar(){try{Hn()}catch(e){pe(e,Xe)}}let X=null;function Rt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var i=e[n++];if((i.f&(K|B))===0&&Te(i)&&(X=new Set,we(i),i.deps===null&&i.first===null&&i.nodes===null&&i.teardown===null&&i.ac===null&&Yt(i),X?.size>0)){ee.clear();for(const r of X){if((r.f&(K|B))!==0)continue;const s=[r];let o=r.parent;for(;o!==null;)X.has(o)&&(X.delete(o),s.push(o)),o=o.parent;for(let a=s.length-1;a>=0;a--){const l=s[a];(l.f&(K|B))===0&&we(l)}}X.clear()}}X=null}}function Nt(e,t,n,i){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const r of e.reactions){const s=r.f;(s&k)!==0?Nt(r,t,n,i):(s&(Ve|V))!==0&&(s&x)===0&&Dt(r,t,i)&&(b(r,x),z(r))}}function Dt(e,t,n){const i=n.get(e);if(i!==void 0)return i;if(e.deps!==null)for(const r of e.deps){if(fe.call(t,r))return!0;if((r.f&k)!==0&&Dt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function z(e){for(var t=Xe=e;t.parent!==null;){t=t.parent;var n=t.f;if(Ze&&t===g&&(n&V)!==0&&(n&Ge)===0)return;if((n&(ne|q))!==0){if((n&E)===0)return;t.f^=E}}I.push(t)}function It(e,t){if(!((e.f&q)!==0&&(e.f&E)!==0)){(e.f&x)!==0?t.d.push(e):(e.f&F)!==0&&t.m.push(e),b(e,E);for(var n=e.first;n!==null;)It(n,t),n=n.next}}function lr(e){let t=0,n=Ie(0),i;return()=>{nt()&&(S(n),Nr(()=>(t===0&&(i=st(()=>e(()=>ke(n)))),t+=1,()=>{_e(()=>{t-=1,t===0&&(i?.(),i=void 0,ke(n))})})))}}var fr=ce|de|Et;function ur(e,t,n){new cr(e,t,n)}class cr{parent;is_pending=!1;#t;#a=null;#e;#s;#o;#r=null;#n=null;#i=null;#l=null;#f=null;#u=0;#c=0;#v=!1;#h=!1;#_=new Set;#p=new Set;#d=null;#y=lr(()=>(this.#d=Ie(this.#u),()=>{this.#d=null}));constructor(t,n,i){this.#t=t,this.#e=n,this.#s=i,this.parent=g.b,this.is_pending=!!this.#e.pending,this.#o=rt(()=>{g.b=this;{var r=this.#m();try{this.#r=J(()=>i(r))}catch(s){this.error(s)}this.#c>0?this.#w():this.is_pending=!1}return()=>{this.#f?.remove()}},fr)}#E(){try{this.#r=J(()=>this.#s(this.#t))}catch(t){this.error(t)}}#k(){const t=this.#e.pending;t&&(this.#n=J(()=>t(this.#t)),_e(()=>{var n=this.#m();this.#r=this.#g(()=>($.ensure(),J(()=>this.#s(n)))),this.#c>0?this.#w():(xe(this.#n,()=>{this.#n=null}),this.is_pending=!1)}))}#m(){var t=this.#t;return this.is_pending&&(this.#f=ge(),this.#t.before(this.#f),t=this.#f),t}defer_effect(t){At(t,this.#_,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#e.pending}#g(t){var n=g,i=_,r=A;G(this.#o),L(this.#o),he(this.#o.ctx);try{return t()}catch(s){return Ot(s),null}finally{G(n),L(i),he(r)}}#w(){const t=this.#e.pending;this.#r!==null&&(this.#l=document.createDocumentFragment(),this.#l.append(this.#f),Xt(this.#r,this.#l)),this.#n===null&&(this.#n=J(()=>t(this.#t)))}#b(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(t);return}if(this.#c+=t,this.#c===0){this.is_pending=!1;for(const n of this.#_)b(n,x),z(n);for(const n of this.#p)b(n,F),z(n);this.#_.clear(),this.#p.clear(),this.#n&&xe(this.#n,()=>{this.#n=null}),this.#l&&(this.#t.before(this.#l),this.#l=null)}}update_pending_count(t){this.#b(t),this.#u+=t,!(!this.#d||this.#v)&&(this.#v=!0,_e(()=>{this.#v=!1,this.#d&&Le(this.#d,this.#u)}))}get_effect_pending(){return this.#y(),S(this.#d)}error(t){var n=this.#e.onerror;let i=this.#e.failed;if(this.#h||!n&&!i)throw t;this.#r&&(R(this.#r),this.#r=null),this.#n&&(R(this.#n),this.#n=null),this.#i&&(R(this.#i),this.#i=null);var r=!1,s=!1;const o=()=>{if(r){er();return}r=!0,s&&Vn(),$.ensure(),this.#u=0,this.#i!==null&&xe(this.#i,()=>{this.#i=null}),this.is_pending=this.has_pending_snippet(),this.#r=this.#g(()=>(this.#h=!1,J(()=>this.#s(this.#t)))),this.#c>0?this.#w():this.is_pending=!1};_e(()=>{try{s=!0,n?.(t,o),s=!1}catch(a){pe(a,this.#o&&this.#o.parent)}i&&(this.#i=this.#g(()=>{$.ensure(),this.#h=!0;try{return J(()=>{i(this.#t,()=>t,()=>o)})}catch(a){return pe(a,this.#o.parent),null}finally{this.#h=!1}}))})}}function dr(e,t,n,i){const r=Qe;var s=e.filter(u=>!u.settled);if(n.length===0&&s.length===0){i(t.map(r));return}var o=m,a=g,l=hr(),f=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(u=>u.promise)):null;function c(u){l();try{i(u)}catch(h){(a.f&K)===0&&pe(h,a)}o?.deactivate(),Je()}if(n.length===0){f.then(()=>c(t.map(r)));return}function d(){l(),Promise.all(n.map(u=>vr(u))).then(u=>c([...t.map(r),...u])).catch(u=>pe(u,a))}f?f.then(d):d()}function hr(){var e=g,t=_,n=A,i=m;return function(s=!0){G(e),L(t),he(n),s&&i?.activate()}}function Je(){G(null),L(null),he(null)}function Qe(e){var t=k|x,n=_!==null&&(_.f&k)!==0?_:null;return g!==null&&(g.f|=de),{ctx:A,deps:null,effects:null,equals:Tt,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:n??g,ac:null}}function vr(e,t,n){let i=g;i===null&&Un();var r=i.b,s=void 0,o=Ie(T),a=!_,l=new Map;return Rr(()=>{var f=bt();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{c===m&&c.committed&&c.deactivate(),Je()})}catch(h){f.reject(h),Je()}var c=m;if(a){var d=r.is_rendered();r.update_pending_count(1),c.increment(d),l.get(c)?.reject(ie),l.delete(c),l.set(c,f)}const u=(h,v=void 0)=>{if(c.activate(),v)v!==ie&&(o.f|=Q,Le(o,v));else{(o.f&Q)!==0&&(o.f^=Q),Le(o,h);for(const[p,y]of l){if(l.delete(p),p===c)break;y.reject(ie)}}a&&(r.update_pending_count(-1),c.decrement(d))};f.promise.then(u,h=>u(null,h||"unknown"))}),Sr(()=>{for(const f of l.values())f.reject(ie)}),new Promise(f=>{function c(d){function u(){d===s?f(o):c(s)}d.then(u,u)}c(s)})}function _r(e){const t=Qe(e);return t.equals=nr,t}function pr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)R(t[n])}}function gr(e){for(var t=e.parent;t!==null;){if((t.f&k)===0)return(t.f&K)===0?t:null;t=t.parent}return null}function $e(e){var t,n=g;G(gr(e));try{e.f&=~re,pr(e),t=tn(e)}finally{G(n)}return t}function Lt(e){var t=$e(e);if(!e.equals(t)&&(e.wv=$t(),(!m?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){b(e,E);return}te||(U!==null?(nt()||m?.is_fork)&&U.set(e,t):Ke(e))}function wr(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(ie),t.teardown=Dn,t.ac=null,Se(t,0),it(t))}function Mt(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&we(t)}let et=new Set;const ee=new Map;let Pt=!1;function Ie(e,t){var n={f:0,v:e,reactions:null,equals:Tt,rv:0,wv:0};return n}function W(e,t){const n=Ie(e);return Mr(n),n}function j(e,t,n=!1){_!==null&&(!H||(_.f&kt)!==0)&&St()&&(_.f&(k|V|Ve|kt))!==0&&(M===null||!fe.call(M,e))&&Yn();let i=n?se(t):t;return Le(e,i)}function Le(e,t){if(!e.equals(t)){var n=e.v;te?ee.set(e,t):ee.set(e,n),e.v=t;var i=$.ensure();if(i.capture(e,n),(e.f&k)!==0){const r=e;(e.f&x)!==0&&$e(r),Ke(r)}e.wv=$t(),Ft(e,x),g!==null&&(g.f&E)!==0&&(g.f&(q|ne))===0&&(P===null?Pr([e]):P.push(e)),!i.is_fork&&et.size>0&&!Pt&&mr()}return t}function mr(){Pt=!1;for(const e of et)(e.f&E)!==0&&b(e,F),Te(e)&&we(e);et.clear()}function ke(e){j(e,e.v+1)}function Ft(e,t){var n=e.reactions;if(n!==null)for(var i=n.length,r=0;r<i;r++){var s=n[r],o=s.f,a=(o&x)===0;if(a&&b(s,t),(o&k)!==0){var l=s;U?.delete(l),(o&re)===0&&(o&D&&(s.f|=re),Ft(l,F))}else a&&((o&V)!==0&&X!==null&&X.add(s),z(s))}}function se(e){if(typeof e!="object"||e===null||Ae in e)return e;const t=wt(e);if(t!==Rn&&t!==Nn)return e;var n=new Map,i=Tn(e),r=W(0),s=ae,o=a=>{if(ae===s)return a();var l=_,f=ae;L(null),Qt(s);var c=a();return L(l),Qt(f),c};return i&&n.set("length",W(e.length)),new Proxy(e,{defineProperty(a,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Bn();var c=n.get(l);return c===void 0?o(()=>{var d=W(f.value);return n.set(l,d),d}):j(c,f.value,!0),!0},deleteProperty(a,l){var f=n.get(l);if(f===void 0){if(l in a){const c=o(()=>W(T));n.set(l,c),ke(r)}}else j(f,T),ke(r);return!0},get(a,l,f){if(l===Ae)return e;var c=n.get(l),d=l in a;if(c===void 0&&(!d||ue(a,l)?.writable)&&(c=o(()=>{var h=se(d?a[l]:T),v=W(h);return v}),n.set(l,c)),c!==void 0){var u=S(c);return u===T?void 0:u}return Reflect.get(a,l,f)},getOwnPropertyDescriptor(a,l){var f=Reflect.getOwnPropertyDescriptor(a,l);if(f&&"value"in f){var c=n.get(l);c&&(f.value=S(c))}else if(f===void 0){var d=n.get(l),u=d?.v;if(d!==void 0&&u!==T)return{enumerable:!0,configurable:!0,value:u,writable:!0}}return f},has(a,l){if(l===Ae)return!0;var f=n.get(l),c=f!==void 0&&f.v!==T||Reflect.has(a,l);if(f!==void 0||g!==null&&(!c||ue(a,l)?.writable)){f===void 0&&(f=o(()=>{var u=c?se(a[l]):T,h=W(u);return h}),n.set(l,f));var d=S(f);if(d===T)return!1}return c},set(a,l,f,c){var d=n.get(l),u=l in a;if(i&&l==="length")for(var h=f;h<d.v;h+=1){var v=n.get(h+"");v!==void 0?j(v,T):h in a&&(v=o(()=>W(T)),n.set(h+"",v))}if(d===void 0)(!u||ue(a,l)?.writable)&&(d=o(()=>W(void 0)),j(d,se(f)),n.set(l,d));else{u=d.v!==T;var p=o(()=>se(f));j(d,p)}var y=Reflect.getOwnPropertyDescriptor(a,l);if(y?.set&&y.set.call(c,f),!u){if(i&&typeof l=="string"){var Y=n.get("length"),w=Number(l);Number.isInteger(w)&&w>=Y.v&&j(Y,w+1)}ke(r)}return!0},ownKeys(a){S(r);var l=Reflect.ownKeys(a).filter(d=>{var u=n.get(d);return u===void 0||u.v!==T});for(var[f,c]of n)c.v!==T&&!(f in a)&&l.push(f);return l},setPrototypeOf(){Gn()}})}var Ut,zt,Wt,jt;function br(){if(Ut===void 0){Ut=window,zt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wt=ue(t,"firstChild").get,jt=ue(t,"nextSibling").get,mt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),mt(n)&&(n.__t=void 0)}}function ge(e=""){return document.createTextNode(e)}function Me(e){return Wt.call(e)}function Pe(e){return jt.call(e)}function tt(e,t){return Me(e)}function yr(e,t=!1){{var n=Me(e);return n instanceof Comment&&n.data===""?Pe(n):n}}function Er(e,t=1,n=!1){let i=e;for(;t--;)i=Pe(i);return i}function kr(){return!1}function Ht(e,t,n){return document.createElementNS(xt,e,void 0)}function qt(e){var t=_,n=g;L(null),G(null);try{return e()}finally{L(t),G(n)}}function xr(e){g===null&&(_===null&&jn(),Wn()),te&&zn()}function Tr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Z(e,t,n){var i=g;i!==null&&(i.f&B)!==0&&(e|=B);var r={ctx:A,deps:null,nodes:null,f:e|x|D,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{we(r)}catch(a){throw R(r),a}else t!==null&&z(r);var s=r;if(n&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&de)===0&&(s=s.first,(e&V)!==0&&(e&ce)!==0&&s!==null&&(s.f|=ce)),s!==null&&(s.parent=i,i!==null&&Tr(s,i),_!==null&&(_.f&k)!==0&&(e&ne)===0)){var o=_;(o.effects??=[]).push(s)}return r}function nt(){return _!==null&&!H}function Sr(e){const t=Z(Ce,null,!1);return b(t,E),t.teardown=e,t}function Or(e){xr();var t=g.f,n=!_&&(t&q)!==0&&(t&Ee)===0;if(n){var i=A;(i.e??=[]).push(e)}else return Bt(e)}function Bt(e){return Z(ye|Ln,e,!1)}function Cr(e){$.ensure();const t=Z(ne|de,e,!0);return(n={})=>new Promise(i=>{n.outro?xe(t,()=>{R(t),i(void 0)}):(R(t),i(void 0))})}function Ar(e){return Z(ye,e,!1)}function Rr(e){return Z(Ve|de,e,!0)}function Nr(e,t=0){return Z(Ce|t,e,!0)}function Fe(e,t=[],n=[],i=[]){dr(i,t,n,r=>{Z(Ce,()=>e(...r.map(S)),!0)})}function rt(e,t=0){var n=Z(V|t,e,!0);return n}function J(e){return Z(q|de,e,!0)}function Gt(e){var t=e.teardown;if(t!==null){const n=te,i=_;Zt(!0),L(null);try{t.call(null)}finally{Zt(n),L(i)}}}function it(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const r=n.ac;r!==null&&qt(()=>{r.abort(ie)});var i=n.next;(n.f&ne)!==0?n.parent=null:R(n,t),n=i}}function Dr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&q)===0&&R(t),t=n}}function R(e,t=!0){var n=!1;(t||(e.f&Ge)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Ir(e.nodes.start,e.nodes.end),n=!0),it(e,t&&!n),Se(e,0),b(e,K);var i=e.nodes&&e.nodes.t;if(i!==null)for(const s of i)s.stop();Gt(e);var r=e.parent;r!==null&&r.first!==null&&Yt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Ir(e,t){for(;e!==null;){var n=e===t?null:Pe(e);e.remove(),e=n}}function Yt(e){var t=e.parent,n=e.prev,i=e.next;n!==null&&(n.next=i),i!==null&&(i.prev=n),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=n))}function xe(e,t,n=!0){var i=[];Vt(e,i,!0);var r=()=>{n&&R(e),t&&t()},s=i.length;if(s>0){var o=()=>--s||r();for(var a of i)a.out(o)}else r()}function Vt(e,t,n){if((e.f&B)===0){e.f^=B;var i=e.nodes&&e.nodes.t;if(i!==null)for(const a of i)(a.is_global||n)&&t.push(a);for(var r=e.first;r!==null;){var s=r.next,o=(r.f&ce)!==0||(r.f&q)!==0&&(e.f&V)!==0;Vt(r,t,o?n:!1),r=s}}}function Lr(e){Kt(e,!0)}function Kt(e,t){if((e.f&B)!==0){e.f^=B,(e.f&E)===0&&(b(e,x),z(e));for(var n=e.first;n!==null;){var i=n.next,r=(n.f&ce)!==0||(n.f&q)!==0;Kt(n,r?t:!1),n=i}var s=e.nodes&&e.nodes.t;if(s!==null)for(const o of s)(o.is_global||t)&&o.in()}}function Xt(e,t){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end;n!==null;){var r=n===i?null:Pe(n);t.append(n),n=r}}let Ue=!1,te=!1;function Zt(e){te=e}let _=null,H=!1;function L(e){_=e}let g=null;function G(e){g=e}let M=null;function Mr(e){_!==null&&(M===null?M=[e]:M.push(e))}let O=null,N=0,P=null;function Pr(e){P=e}let Jt=1,oe=0,ae=oe;function Qt(e){ae=e}function $t(){return++Jt}function Te(e){var t=e.f;if((t&x)!==0)return!0;if(t&k&&(e.f&=~re),(t&F)!==0){for(var n=e.deps,i=n.length,r=0;r<i;r++){var s=n[r];if(Te(s)&&Lt(s),s.wv>e.wv)return!0}(t&D)!==0&&U===null&&b(e,E)}return!1}function en(e,t,n=!0){var i=e.reactions;if(i!==null&&!(M!==null&&fe.call(M,e)))for(var r=0;r<i.length;r++){var s=i[r];(s.f&k)!==0?en(s,t,!1):t===s&&(n?b(s,x):(s.f&E)!==0&&b(s,F),z(s))}}function tn(e){var t=O,n=N,i=P,r=_,s=M,o=A,a=H,l=ae,f=e.f;O=null,N=0,P=null,_=(f&(q|ne))===0?e:null,M=null,he(e.ctx),H=!1,ae=++oe,e.ac!==null&&(qt(()=>{e.ac.abort(ie)}),e.ac=null);try{e.f|=Ye;var c=e.fn,d=c();e.f|=Ee;var u=e.deps,h=m?.is_fork;if(O!==null){var v;if(h||Se(e,N),u!==null&&N>0)for(u.length=N+O.length,v=0;v<O.length;v++)u[N+v]=O[v];else e.deps=u=O;if(nt()&&(e.f&D)!==0)for(v=N;v<u.length;v++)(u[v].reactions??=[]).push(e)}else!h&&u!==null&&N<u.length&&(Se(e,N),u.length=N);if(St()&&P!==null&&!H&&u!==null&&(e.f&(k|F|x))===0)for(v=0;v<P.length;v++)en(P[v],e);if(r!==null&&r!==e){if(oe++,r.deps!==null)for(let p=0;p<n;p+=1)r.deps[p].rv=oe;if(t!==null)for(const p of t)p.rv=oe;P!==null&&(i===null?i=P:i.push(...P))}return(e.f&Q)!==0&&(e.f^=Q),d}catch(p){return Ot(p)}finally{e.f^=Ye,O=t,N=n,P=i,_=r,M=s,he(o),H=a,ae=l}}function Fr(e,t){let n=t.reactions;if(n!==null){var i=Sn.call(n,e);if(i!==-1){var r=n.length-1;r===0?n=t.reactions=null:(n[i]=n[r],n.pop())}}if(n===null&&(t.f&k)!==0&&(O===null||!fe.call(O,t))){var s=t;(s.f&D)!==0&&(s.f^=D,s.f&=~re),Ke(s),wr(s),Se(s,0)}}function Se(e,t){var n=e.deps;if(n!==null)for(var i=t;i<n.length;i++)Fr(e,n[i])}function we(e){var t=e.f;if((t&K)===0){b(e,E);var n=g,i=Ue;g=e,Ue=!0;try{(t&(V|yt))!==0?Dr(e):it(e),Gt(e);var r=tn(e);e.teardown=typeof r=="function"?r:null,e.wv=Jt;var s;Be&&rr&&(e.f&x)!==0&&e.deps}finally{Ue=i,g=n}}}function S(e){var t=e.f,n=(t&k)!==0;if(_!==null&&!H){var i=g!==null&&(g.f&K)!==0;if(!i&&(M===null||!fe.call(M,e))){var r=_.deps;if((_.f&Ye)!==0)e.rv<oe&&(e.rv=oe,O===null&&r!==null&&r[N]===e?N++:O===null?O=[e]:O.push(e));else{(_.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[_]:fe.call(s,_)||s.push(_)}}}if(te&&ee.has(e))return ee.get(e);if(n){var o=e;if(te){var a=o.v;return((o.f&E)===0&&o.reactions!==null||rn(o))&&(a=$e(o)),ee.set(o,a),a}var l=(o.f&D)===0&&!H&&_!==null&&(Ue||(_.f&D)!==0),f=(o.f&Ee)===0;Te(o)&&(l&&(o.f|=D),Lt(o)),l&&!f&&(Mt(o),nn(o))}if(U?.has(e))return U.get(e);if((e.f&Q)!==0)throw e.v;return e.v}function nn(e){if(e.f|=D,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&k)!==0&&(t.f&D)===0&&(Mt(t),nn(t))}function rn(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ee.has(t)||(t.f&k)!==0&&rn(t))return!0;return!1}function st(e){var t=H;try{return H=!0,e()}finally{H=t}}const Ur=["touchstart","touchmove"];function zr(e){return Ur.includes(e)}const sn=Symbol("events"),on=new Set,ot=new Set;function an(e,t,n){(t[sn]??={})[e]=n}function Wr(e){for(var t=0;t<e.length;t++)on.add(e[t]);for(var n of ot)n(e)}let ln=null;function fn(e){var t=this,n=t.ownerDocument,i=e.type,r=e.composedPath?.()||[],s=r[0]||e.target;ln=e;var o=0,a=ln===e&&e.__root;if(a){var l=r.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=r.indexOf(t);if(f===-1)return;l<=f&&(o=l)}if(s=r[o]||e.target,s!==t){Cn(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=_,d=g;L(null),G(null);try{for(var u,h=[];s!==null;){var v=s.assignedSlot||s.parentNode||s.host||null;try{var p=s[sn]?.[i];p!=null&&(!s.disabled||e.target===s)&&p.call(s,e)}catch(y){u?h.push(y):u=y}if(e.cancelBubble||v===t||v===null)break;s=v}if(u){for(let y of h)queueMicrotask(()=>{throw y});throw u}}finally{e.__root=t,delete e.currentTarget,L(c),G(d)}}}const jr=globalThis?.window?.trustedTypes?.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Hr(e){return jr?.createHTML(e)??e}function qr(e,t=!1){var n=Ht("template");return e=e.replaceAll("<!>","<!---->"),n.innerHTML=t?Hr(e):e,n.content}function at(e,t){var n=g;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Oe(e,t){var n=(t&Qn)!==0,i=(t&$n)!==0,r,s=!e.startsWith("<!>");return()=>{r===void 0&&(r=qr(s?e:"<!>"+e,!0),n||(r=Me(r)));var o=i||zt?document.importNode(r,!0):r.cloneNode(!0);if(n){var a=Me(o),l=o.lastChild;at(a,l)}else at(o,o);return o}}function Br(){var e=document.createDocumentFragment(),t=document.createComment(""),n=ge();return e.append(t,n),at(t,n),e}function me(e,t){e!==null&&e.before(t)}function Gr(e,t){return Yr(e,t)}const ze=new Map;function Yr(e,{target:t,anchor:n,props:i={},events:r,context:s,intro:o=!0}){br();var a=new Set,l=d=>{for(var u=0;u<d.length;u++){var h=d[u];if(!a.has(h)){a.add(h);var v=zr(h);for(const Y of[t,document]){var p=ze.get(Y);p===void 0&&(p=new Map,ze.set(Y,p));var y=p.get(h);y===void 0?(Y.addEventListener(h,fn,{passive:v}),p.set(h,1)):p.set(h,y+1)}}}};l(On(on)),ot.add(l);var f=void 0,c=Cr(()=>{var d=n??t.appendChild(ge());return ur(d,{pending:()=>{}},u=>{Re({});var h=A;s&&(h.c=s),r&&(i.$$events=r),f=e(u,i)||{},Ne()}),()=>{for(var u of a)for(const p of[t,document]){var h=ze.get(p),v=h.get(u);--v==0?(p.removeEventListener(u,fn),h.delete(u),h.size===0&&ze.delete(p)):h.set(u,v)}ot.delete(l),d!==n&&d.parentNode?.removeChild(d)}});return Vr.set(f,c),f}let Vr=new WeakMap;class Kr{anchor;#t=new Map;#a=new Map;#e=new Map;#s=new Set;#o=!0;constructor(t,n=!0){this.anchor=t,this.#o=n}#r=()=>{var t=m;if(this.#t.has(t)){var n=this.#t.get(t),i=this.#a.get(n);if(i)Lr(i),this.#s.delete(n);else{var r=this.#e.get(n);r&&(this.#a.set(n,r.effect),this.#e.delete(n),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),i=r.effect)}for(const[s,o]of this.#t){if(this.#t.delete(s),s===t)break;const a=this.#e.get(o);a&&(R(a.effect),this.#e.delete(o))}for(const[s,o]of this.#a){if(s===n||this.#s.has(s))continue;const a=()=>{if(Array.from(this.#t.values()).includes(s)){var f=document.createDocumentFragment();Xt(o,f),f.append(ge()),this.#e.set(s,{effect:o,fragment:f})}else R(o);this.#s.delete(s),this.#a.delete(s)};this.#o||!i?(this.#s.add(s),xe(o,a,!1)):a()}}};#n=t=>{this.#t.delete(t);const n=Array.from(this.#t.values());for(const[i,r]of this.#e)n.includes(i)||(R(r.effect),this.#e.delete(i))};ensure(t,n){var i=m,r=kr();if(n&&!this.#a.has(t)&&!this.#e.has(t))if(r){var s=document.createDocumentFragment(),o=ge();s.append(o),this.#e.set(t,{effect:J(()=>n(o)),fragment:s})}else this.#a.set(t,J(()=>n(this.anchor)));if(this.#t.set(i,t),r){for(const[a,l]of this.#a)a===t?i.unskip_effect(l):i.skip_effect(l);for(const[a,l]of this.#e)a===t?i.unskip_effect(l.effect):i.skip_effect(l.effect);i.oncommit(this.#r),i.ondiscard(this.#n)}else this.#r()}}function Xr(e,t,n=!1){var i=new Kr(e),r=n?ce:0;function s(o,a){i.ensure(o,a)}rt(()=>{var o=!1;t((a,l=0)=>{o=!0,s(l,a)}),o||s(!1,null)},r)}function Zr(e,t){var n;n=document.head.appendChild(ge()),rt(()=>t(n),Ge)}function lt(e,t){Ar(()=>{var n=e.getRootNode(),i=n.host?n:n.head??n.ownerDocument.head;if(!i.querySelector("#"+t.hash)){const r=Ht("style");r.id=t.hash,r.textContent=t.code,i.appendChild(r)}})}const un=[...`
|
|
2
|
+
\r\f \v\uFEFF`];function Jr(e,t,n){var i=e==null?"":""+e;if(t&&(i=i?i+" "+t:t),n){for(var r in n)if(n[r])i=i?i+" "+r:r;else if(i.length)for(var s=r.length,o=0;(o=i.indexOf(r,o))>=0;){var a=o+s;(o===0||un.includes(i[o-1]))&&(a===i.length||un.includes(i[a]))?i=(o===0?"":i.substring(0,o))+i.substring(a+1):o=a}}return i===""?null:i}function cn(e,t,n,i,r,s){var o=e.__className;if(o!==n||o===void 0){var a=Jr(n,i,s);a==null?e.removeAttribute("class"):e.className=a,e.__className=n}else if(s&&r!==s)for(var l in s){var f=!!s[l];(r==null||f!==!!r[l])&&e.classList.toggle(l,f)}return s}const Qr=Symbol("is custom element"),$r=Symbol("is html");function be(e,t,n,i){var r=ei(e);r[t]!==(r[t]=n)&&(t==="loading"&&(e[Pn]=n),n==null?e.removeAttribute(t):typeof n!="string"&&ti(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ei(e){return e.__attributes??={[Qr]:e.nodeName.includes("-"),[$r]:e.namespaceURI===xt}}var dn=new Map;function ti(e){var t=e.getAttribute("is")||e.nodeName,n=dn.get(t);if(n)return n;dn.set(t,n=[]);for(var i,r=e,s=Element.prototype;s!==r;){i=An(r);for(var o in i)i[o].set&&n.push(o);r=wt(r)}return n}let We=!1;function ni(e){var t=We;try{return We=!1,[e(),We]}finally{We=t}}function ft(e,t,n,i){var r=(n&Zn)!==0,s=(n&Jn)!==0,o=i,a=!0,l=()=>(a&&(a=!1,o=s?st(i):i),o),f;if(r){var c=Ae in e||Mn in e;f=ue(e,t)?.set??(c&&t in e?w=>e[t]=w:void 0)}var d,u=!1;r?[d,u]=ni(()=>e[t]):d=e[t],d===void 0&&i!==void 0&&(d=l(),f&&(qn(),f(d)));var h;if(h=()=>{var w=e[t];return w===void 0?l():(a=!0,w)},(n&Xn)===0)return h;if(f){var v=e.$$legacy;return(function(w,C){return arguments.length>0?((!C||v||u)&&f(C?h():w),w):h()})}var p=!1,y=((n&Kn)!==0?Qe:_r)(()=>(p=!1,h()));r&&S(y);var Y=g;return(function(w,C){if(arguments.length>0){const le=C?S(y):r?se(w):w;return j(y,le),p=!0,o!==void 0&&(o=le),w}return te&&p||(Y.f&K)!==0?y.v:S(y)})}function hn(e){A===null&&Fn(),Or(()=>{const t=st(e);if(typeof t=="function")return t})}const ri="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(ri);var ii=Oe('<div><iframe id="chat-frame" title="Chat" class="bot svelte-yhk8rr" frameborder="0" allow="microphone; clipboard-write" allowfullscreen=""></iframe></div>'),si=Oe(`<p class="svelte-yhk8rr">Please make sure that the script tag has 'id="chatbot"' and the attribute
|
|
3
3
|
'data-server' with the full qualified URL to the chatbot-server.</p> <pre class="svelte-yhk8rr">
|
|
4
4
|
<code class="svelte-yhk8rr">
|
|
5
5
|
<script
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<br class="svelte-yhk8rr"/>
|
|
13
13
|
src="https://server.com/webclient/embed/bundle.js"> </script>
|
|
14
14
|
</code>
|
|
15
|
-
</pre>`,1);const
|
|
15
|
+
</pre>`,1);const oi={hash:"svelte-yhk8rr",code:`.svelte-yhk8rr,
|
|
16
16
|
.svelte-yhk8rr:before,
|
|
17
17
|
.svelte-yhk8rr:after {box-sizing:border-box;}.bot-border.svelte-yhk8rr {position:fixed;display:flex;flex-direction:column;top:0;bottom:env(safe-area-inset-bottom);height:100%;max-height:100vh;width:100%;border-width:0;border-radius:var(--window-border-radius, 8px);box-shadow:rgba(0, 0, 0, 0.24) 0px 16px 40px;background:transparent;opacity:1;transition:transform 200ms,
|
|
18
18
|
opacity 100ms 100ms,
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
|
|
21
21
|
@media screen and (min-width: 768px) {#chat-frame.svelte-yhk8rr {border-radius:var(--window-border-radius, 8px);}.bot-border.svelte-yhk8rr {height:var(--window-height, 46em);max-height:var(--window-max-height, calc(100vh - 2em));width:var(--window-width, 26em);top:var(--window-top, auto);right:var(--window-right, 1em);bottom:var(--window-bottom, 1em);left:var(--window-left, auto);border-radius:var(--window-border-radius, 8px);}.bot-border.closed.svelte-yhk8rr {transform:translateY(var(--window-height, 46em));opacity:0;}
|
|
22
22
|
}p.svelte-yhk8rr,
|
|
23
|
-
pre.svelte-yhk8rr {max-width:300px;}pre.svelte-yhk8rr {font-size:0.6em;line-height:0.5;}`};function
|
|
23
|
+
pre.svelte-yhk8rr {max-width:300px;}pre.svelte-yhk8rr {font-size:0.6em;line-height:0.5;}`};function ai(e,t){Re(t,!0),lt(e,oi),hn(()=>{document.getElementById("chat-frame")?.addEventListener("load",t.onLoad)});var n=Br(),i=yr(n);{var r=o=>{var a=ii();let l;var f=tt(a);Fe(c=>{l=cn(a,1,"bot-border svelte-yhk8rr",null,l,{closed:!t.open}),be(a,"aria-hidden",t.open?"false":"true"),be(f,"src",c)},[()=>`${t.server}${t.server.indexOf("?")===-1?"?":"&"}referrer=${encodeURIComponent(t.referrer??"")}`]),me(o,a)},s=o=>{var a=si();me(o,a)};Xr(i,o=>{t.server?o(r):o(s,!1)})}me(e,n),Ne()}var li=Oe('<div class="chat-button-wrapper svelte-1xi58vz" tabindex="0" role="button" aria-label="Open chat window"><img class="chat-button svelte-1xi58vz" alt="Open chat window"/></div>');const fi={hash:"svelte-1xi58vz",code:`.svelte-1xi58vz,
|
|
24
24
|
.svelte-1xi58vz:before,
|
|
25
25
|
.svelte-1xi58vz:after {box-sizing:border-box;}.chat-button-wrapper.svelte-1xi58vz {position:fixed;top:var(--fab-top-mobile, var(--fab-top, auto));right:var(--fab-right-mobile, var(--fab-right, 1.5em));bottom:var(--fab-bottom-mobile, var(--fab-bottom, 1.5em));left:var(--fab-left-mobile, var(--fab-left, auto));width:var(--fab-size-mobile, var(--fab-size, 5em));height:var(--fab-size-mobile, var(--fab-size, 5em));z-index:999;}
|
|
26
26
|
|
|
27
27
|
@media screen and (min-width: 768px) {.chat-button-wrapper.svelte-1xi58vz {top:var(--fab-top, auto);right:var(--fab-right, 1.5em);bottom:var(--fab-bottom, 1.5em);left:var(--fab-left, auto);width:var(--fab-size, 6em);height:var(--fab-size, 6em);}
|
|
28
28
|
}.chat-button.svelte-1xi58vz {display:block;height:100%;cursor:pointer;border-radius:50%;box-shadow:9px 9px 16px rgba(0, 0, 0, 0.25);transition:transform 100ms,
|
|
29
|
-
box-shadow 100ms;}.chat-button.svelte-1xi58vz:hover {box-shadow:16px 16px 16px rgba(0, 0, 0, 0.2);transform:translateY(-2px);}`};function
|
|
29
|
+
box-shadow 100ms;}.chat-button.svelte-1xi58vz:hover {box-shadow:16px 16px 16px rgba(0, 0, 0, 0.2);transform:translateY(-2px);}`};function ui(e,t){Re(t,!0),lt(e,fi);function n(s){const o=s.key;(o==="ArrowDown"||o==="ArrowRight"||o==="Enter"||o===" "||o==="Space")&&(s.stopPropagation(),t.onToggle())}var i=li(),r=tt(i);Fe(()=>{be(i,"aria-expanded",t.open?"true":"false"),be(r,"src",`${t.assetsUrl}/fab.svg`)}),an("click",i,function(...s){t.onToggle?.apply(this,s)}),an("keydown",i,n),me(e,i),Ne()}Wr(["click","keydown"]);let vn=!1;function ci(e){vn=e}function di(){return vn}function je(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}var hi={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ut(e,t){function n(r,s,o){if(!(typeof document>"u")){o=je({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in o)o[l]&&(a+="; "+l,o[l]!==!0&&(a+="="+o[l].split(";")[0]));return document.cookie=r+"="+e.write(s,r)+a}}function i(r){if(!(typeof document>"u"||arguments.length&&!r)){for(var s=document.cookie?document.cookie.split("; "):[],o={},a=0;a<s.length;a++){var l=s[a].split("="),f=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=e.read(f,c),r===c)break}catch{}}return r?o[r]:o}}return Object.create({set:n,get:i,remove:function(r,s){n(r,"",je({},s,{expires:-1}))},withAttributes:function(r){return ut(this.converter,je({},this.attributes,r))},withConverter:function(r){return ut(je({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var _n=ut(hi,{path:"/"});const pn="bubble-chat-window-state",gn=()=>{switch(_n.get(pn)){case"open":return!0;case"closed":return!1;default:return}},wn=e=>{const t=new Date(new Date().getTime()+288e5);_n.set(pn,e,{expires:t})},ct=[];let dt=gn();function ht(){dt=!0,wn("open"),ct.forEach(function(e){e.call(window,!0)})}function He(){dt=!1,wn("closed"),ct.forEach(function(e){e.call(window,!1)})}function mn(){dt?He():ht()}function vi(){vt({type:"RESTART_CHAT"})}function _i(e){vt({type:"CHAT_MESSAGE_FROM_GUEST",text:e})}function pi(e){vt({type:"TRIGGER_STORY",story:e})}function bn(){return document.getElementById("chat-frame")}function gi(){const e=bn();if(e?.src)try{return new URL(e.src).origin}catch{return null}return null}function vt(e){const t=bn(),n=gi();if(!n){console.warn("Cannot send message: chat iframe origin could not be determined");return}t?.contentWindow?.postMessage(e,n)}function yn(e,t){if(e==="ON_CHAT_WINDOW_STATE_CHANGE")ct.push(t);else throw new Error("Unsupported event "+e)}const wi=Object.freeze(Object.defineProperty({__proto__:null,closeChatWindow:He,enterGuestMessage:_i,isChatbotLoaded:di,openChatWindow:ht,restartChat:vi,subscribe:yn,toggleChatWindow:mn,triggerStory:pi},Symbol.toStringTag,{value:"Module"})),mi=e=>{if(!e||typeof e!="object"||Array.isArray(e)){console.warn("Invalid tracking payload received:",e);return}"gtag"in window&&typeof window.gtag=="function"?window.gtag("event","",e):"dataLayer"in window&&Array.isArray(window.dataLayer)&&window.dataLayer.push(e)},bi=(e,t,n,i,r)=>{const s=()=>{const f=document.getElementById("chat-frame");if(f?.src)try{return new URL(f.src).origin}catch{return null}return null},o={CHAT_STARTED:"webclient.chat.started",CHAT_ENDED:"webclient.chat.ended",WINDOW_EXPAND:"webclient.window.expand",WINDOW_CLOSE:"webclient.window.close",CHANGE_URL:"webclient.change.url",GOOGLE_TAG_EVENT:"google.tag.event"},a=Object.values(o),l=f=>{if(!f.data?.type||!a.includes(f.data.type))return;const c=s();if(c&&f.origin!==c){console.warn("Rejected postMessage from untrusted origin:",f.origin);return}const d=f.data;switch(d.type){case o.CHAT_STARTED:e();break;case o.CHAT_ENDED:t();break;case o.WINDOW_EXPAND:n(d.devices,d.initial);break;case o.WINDOW_CLOSE:i();break;case o.CHANGE_URL:r(d.url);break;case o.GOOGLE_TAG_EVENT:mi(d.payload);break}};window.addEventListener("message",l,!1)},yi=e=>new Promise(t=>{const n=document.getElementById(e);n?(n.onload=()=>{t(!0)},n.onerror=()=>{console.error("Failed to load CSS file: custom.css"),t(!1)}):(console.error("No custom.css file found"),t(!1))});var Ei=Oe('<link rel="stylesheet"/>'),ki=Oe("<div><!> <!></div>");const xi={hash:"svelte-1n46o8q",code:".bubble-chat.svelte-1n46o8q {font-size:16px;visibility:hidden;opacity:0;}.bubble-chat.chatbot-ready.svelte-1n46o8q {visibility:visible;opacity:1;}"};function Ti(e,t){Re(t,!0),lt(e,xi);let n=ft(t,"assetsUrl",19,()=>t.server?t.server.split("?")[0]:void 0),i=ft(t,"linkHandling",3,"default"),r=ft(t,"chatStarted",7,!1);const s="chatbot-style";let o=W(!1),a=W(!1),l=W(se(gn()));yn("ON_CHAT_WINDOW_STATE_CHANGE",function(C){j(l,C,!0)});function f(){r(!0)}function c(){r(!1)}function d(w,C){const le=window.innerWidth,pt=w==null||w==="all",gt=w==="desktop"&&le>=768,Ri=w==="mobile"&&le<768,Ni=pt||gt||Ri;(!C||S(l)!==!1)&&Ni&&ht()}function u(){He()}function h(w){const C=window.innerWidth,le=window.location.hostname,pt=new URL(w).hostname,gt=le===pt;C<768&&He(),i()==="new-tab"?window.open(w,"_blank"):i()==="existing-tab"||gt?document.location.href=w:window.open(w,"_blank")}function v(){j(a,!0)}bi(f,c,d,u,h),hn(async()=>{j(o,await yi(s),!0)});var p=ki();Zr("1n46o8q",w=>{var C=Ei();be(C,"id",s),Fe(()=>be(C,"href",`${n()}/custom.css`)),me(w,C)});var y=tt(p);ui(y,{get assetsUrl(){return n()},get open(){return S(l)},get onToggle(){return mn}});var Y=Er(y,2);ai(Y,{get server(){return t.server},get referrer(){return t.referrer},get open(){return S(l)},onLoad:v}),Fe(()=>cn(p,1,`bubble-chat ${S(o)&&S(a)?"chatbot-ready":""}`,"svelte-1n46o8q")),me(e,p),Ne()}const Si=e=>e.replace(/\/embed\/bundle\.js/,""),Oi=e=>e.dataset?.server,Ci=e=>{if(e&&"src"in e&&typeof e.src=="string")return Oi(e)||Si(e.src)},_t=document.querySelector("script#chatbot"),En=Ci(_t),Ai=_t?.getAttribute("link-handling")?_t.getAttribute("link-handling"):"default";window.chatbot=wi;const kn=()=>{console.log("Chatbot is loading from",En),Gr(Ti,{target:document.body,props:{server:En,referrer:window.location.href,linkHandling:Ai}}),ci(!0)},xn=(e=0)=>{e>=3||document.readyState==="complete"?setTimeout(kn,500):setTimeout(()=>{xn(e+1)},500)};xn();const qe=document.getElementById("chatbot");qe&&"src"in qe&&typeof qe.src=="string"&&qe.src.indexOf("caller=bookmarklet")>0&&setTimeout(kn,500)})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@botfabrik/engine-webclient",
|
|
3
|
-
"version": "4.104.
|
|
3
|
+
"version": "4.104.37",
|
|
4
4
|
"description": "Webclient for Botfabriks Bot Engine",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"dev:embed": "tsx --watch ./run-embed-local.ts"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@botfabrik/engine-domain": "^4.104.
|
|
35
|
-
"@botfabrik/engine-transcript-export": "^4.104.
|
|
36
|
-
"@botfabrik/engine-utils": "^4.104.
|
|
34
|
+
"@botfabrik/engine-domain": "^4.104.37",
|
|
35
|
+
"@botfabrik/engine-transcript-export": "^4.104.37",
|
|
36
|
+
"@botfabrik/engine-utils": "^4.104.37",
|
|
37
37
|
"@google-cloud/speech": "^7.2.1",
|
|
38
38
|
"@node-saml/passport-saml": "^5.1.0",
|
|
39
39
|
"express": "^5.2.1",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"tsx": "^4.21.0",
|
|
51
51
|
"typescript": "5.9.3"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "7b285fdb90703c3ef640830d5962f0e5f2748ab2"
|
|
54
54
|
}
|