utxo22-web/_app/pages/program.svelte-5b320dfa.js

4 řádky
48 KiB
JavaScript

var qe=Object.defineProperty;var qt=Object.getOwnPropertySymbols;var Je=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable;var Jt=(t,e,n)=>e in t?qe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,it=(t,e)=>{for(var n in e||(e={}))Je.call(e,n)&&Jt(t,n,e[n]);if(qt)for(var n of qt(e))Qe.call(e,n)&&Jt(t,n,e[n]);return t};import{S as _e,i as ye,s as ve,a0 as Ze,e as F,c as D,a as z,d as T,b as P,f as ut,g as ht,F as I,J as Et,E as kt,Y as je,v as $e,O as tn,w as xe,x as we,y as be,q as ot,o as ft,B as Me,k as Z,t as q,R as en,m as j,h as J,_ as Qt,p as Zt,j as Tt,G as Ee,Z as nn,H as Ct,n as jt}from"../chunks/index-f961f29d.js";import{a as rn,c as sn}from"../chunks/Event-607166b3.js";import{p as $t}from"../chunks/stores-d7e9d57e.js";import{g as Rt}from"../chunks/navigation-0e6511d1.js";import{b as te,l as on}from"../chunks/stores-85b9805a.js";import{g as cn}from"../chunks/_commonjsHelpers-c771f69b.js";import"../chunks/Avatar-ae188221.js";import"../chunks/singletons-d1fb5791.js";import"../chunks/index-f562cf15.js";var an={value:function(){}};function ke(){for(var t=0,e=arguments.length,n={},s;t<e;++t){if(!(s=arguments[t]+"")||s in n||/[\s.]/.test(s))throw new Error("illegal type: "+s);n[s]=[]}return new bt(n)}function bt(t){this._=t}function ln(t,e){return t.trim().split(/^|\s+/).map(function(n){var s="",r=n.indexOf(".");if(r>=0&&(s=n.slice(r+1),n=n.slice(0,r)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:s}})}bt.prototype=ke.prototype={constructor:bt,on:function(t,e){var n=this._,s=ln(t+"",n),r,i=-1,o=s.length;if(arguments.length<2){for(;++i<o;)if((r=(t=s[i]).type)&&(r=un(n[r],t.name)))return r;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++i<o;)if(r=(t=s[i]).type)n[r]=ee(n[r],t.name,e);else if(e==null)for(r in n)n[r]=ee(n[r],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new bt(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var n=new Array(r),s=0,r,i;s<r;++s)n[s]=arguments[s+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(i=this._[t],s=0,r=i.length;s<r;++s)i[s].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var s=this._[t],r=0,i=s.length;r<i;++r)s[r].value.apply(e,n)}};function un(t,e){for(var n=0,s=t.length,r;n<s;++n)if((r=t[n]).name===e)return r.value}function ee(t,e,n){for(var s=0,r=t.length;s<r;++s)if(t[s].name===e){t[s]=an,t=t.slice(0,s).concat(t.slice(s+1));break}return n!=null&&t.push({name:e,value:n}),t}var fn=Object.freeze(Object.defineProperty({__proto__:null,dispatch:ke},Symbol.toStringTag,{value:"Module"})),hn=cn(fn),dn=hn.dispatch,Nt=Math.PI/180,_t=1<<11>>5,Mt=1<<11,gn=function(){var t=[256,256],e=pn,n=mn,s=_n,r=ne,i=ne,o=yn,c=vn,a=Ae,u=[],l=1/0,f=dn("word","end"),d=null,m=Math.random,h={},_=An;h.canvas=function(g){return arguments.length?(_=nt(g),h):_},h.start=function(){var g=A(_()),p=kn((t[0]>>5)*t[1]),v=null,E=u.length,R=-1,b=[],k=u.map(function(C,M){return C.text=e.call(this,C,M),C.font=n.call(this,C,M),C.style=r.call(this,C,M),C.weight=i.call(this,C,M),C.rotate=o.call(this,C,M),C.size=~~s.call(this,C,M),C.padding=c.call(this,C,M),C}).sort(function(C,M){return M.size-C.size});return d&&clearInterval(d),d=setInterval(N,0),N(),h;function N(){for(var C=Date.now();Date.now()-C<l&&++R<E&&d;){var M=k[R];M.x=t[0]*(m()+.5)>>1,M.y=t[1]*(m()+.5)>>1,xn(g,M,k,R),M.hasText&&x(p,M,v)&&(b.push(M),f.call("word",h,M),v?bn(v,M):v=[{x:M.x+M.x0,y:M.y+M.y0},{x:M.x+M.x1,y:M.y+M.y1}],M.x-=t[0]>>1,M.y-=t[1]>>1)}R>=E&&(h.stop(),f.call("end",h,b,v))}},h.stop=function(){return d&&(clearInterval(d),d=null),h};function A(g){g.width=g.height=1;var p=Math.sqrt(g.getContext("2d").getImageData(0,0,1,1).data.length>>2);g.width=(_t<<5)/p,g.height=Mt/p;var v=g.getContext("2d");return v.fillStyle=v.strokeStyle="red",v.textAlign="center",{context:v,ratio:p}}function x(g,p,v){t[0],t[1];for(var E=p.x,R=p.y,b=Math.sqrt(t[0]*t[0]+t[1]*t[1]),k=a(t),N=m()<.5?1:-1,C=-N,M,W,K;(M=k(C+=N))&&(W=~~M[0],K=~~M[1],!(Math.min(Math.abs(W),Math.abs(K))>=b));)if(p.x=E+W,p.y=R+K,!(p.x+p.x0<0||p.y+p.y0<0||p.x+p.x1>t[0]||p.y+p.y1>t[1])&&(!v||!wn(p,g,t[0]))&&(!v||Mn(p,v))){for(var y=p.sprite,L=p.width>>5,Y=t[0]>>5,at=p.x-(L<<4),gt=at&127,yt=32-gt,Q=p.y1-p.y0,pt=(p.y+p.y0)*Y+(at>>5),G,O=0;O<Q;O++){G=0;for(var st=0;st<=L;st++)g[pt+st]|=G<<yt|(st<L?(G=y[O*L+st])>>>gt:0);pt+=Y}return delete p.sprite,!0}return!1}return h.timeInterval=function(g){return arguments.length?(l=g==null?1/0:g,h):l},h.words=function(g){return arguments.length?(u=g,h):u},h.size=function(g){return arguments.length?(t=[+g[0],+g[1]],h):t},h.font=function(g){return arguments.length?(n=nt(g),h):n},h.fontStyle=function(g){return arguments.length?(r=nt(g),h):r},h.fontWeight=function(g){return arguments.length?(i=nt(g),h):i},h.rotate=function(g){return arguments.length?(o=nt(g),h):o},h.text=function(g){return arguments.length?(e=nt(g),h):e},h.spiral=function(g){return arguments.length?(a=Sn[g]||g,h):a},h.fontSize=function(g){return arguments.length?(s=nt(g),h):s},h.padding=function(g){return arguments.length?(c=nt(g),h):c},h.random=function(g){return arguments.length?(m=g,h):m},h.on=function(){var g=f.on.apply(f,arguments);return g===f?h:g},h};function pn(t){return t.text}function mn(){return"serif"}function ne(){return"normal"}function _n(t){return Math.sqrt(t.value)}function yn(){return(~~(Math.random()*6)-3)*30}function vn(){return 1}function xn(t,e,n,s){if(!e.sprite){var r=t.context,i=t.ratio;r.clearRect(0,0,(_t<<5)/i,Mt/i);var o=0,c=0,a=0,u=n.length;for(--s;++s<u;){e=n[s],r.save(),r.font=e.style+" "+e.weight+" "+~~((e.size+1)/i)+"px "+e.font;var l=r.measureText(e.text+"m").width*i,f=e.size<<1;if(e.rotate){var d=Math.sin(e.rotate*Nt),m=Math.cos(e.rotate*Nt),h=l*m,_=l*d,A=f*m,x=f*d;l=Math.max(Math.abs(h+x),Math.abs(h-x))+31>>5<<5,f=~~Math.max(Math.abs(_+A),Math.abs(_-A))}else l=l+31>>5<<5;if(f>a&&(a=f),o+l>=_t<<5&&(o=0,c+=a,a=0),c+f>=Mt)break;r.translate((o+(l>>1))/i,(c+(f>>1))/i),e.rotate&&r.rotate(e.rotate*Nt),r.fillText(e.text,0,0),e.padding&&(r.lineWidth=2*e.padding,r.strokeText(e.text,0,0)),r.restore(),e.width=l,e.height=f,e.xoff=o,e.yoff=c,e.x1=l>>1,e.y1=f>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,o+=l}for(var g=r.getImageData(0,0,(_t<<5)/i,Mt/i).data,p=[];--s>=0;)if(e=n[s],!!e.hasText){for(var l=e.width,v=l>>5,f=e.y1-e.y0,E=0;E<f*v;E++)p[E]=0;if(o=e.xoff,o==null)return;c=e.yoff;for(var R=0,b=-1,k=0;k<f;k++){for(var E=0;E<l;E++){var N=v*k+(E>>5),C=g[(c+k)*(_t<<5)+(o+E)<<2]?1<<31-E%32:0;p[N]|=C,R|=C}R?b=k:(e.y0++,f--,k--,c++)}e.y1=e.y0+b,e.sprite=p.slice(0,(e.y1-e.y0)*v)}}}function wn(t,e,n){n>>=5;for(var s=t.sprite,r=t.width>>5,i=t.x-(r<<4),o=i&127,c=32-o,a=t.y1-t.y0,u=(t.y+t.y0)*n+(i>>5),l,f=0;f<a;f++){l=0;for(var d=0;d<=r;d++)if((l<<c|(d<r?(l=s[f*r+d])>>>o:0))&e[u+d])return!0;u+=n}return!1}function bn(t,e){var n=t[0],s=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>s.x&&(s.x=e.x+e.x1),e.y+e.y1>s.y&&(s.y=e.y+e.y1)}function Mn(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0<e[1].x&&t.y+t.y1>e[0].y&&t.y+t.y0<e[1].y}function Ae(t){var e=t[0]/t[1];return function(n){return[e*(n*=.1)*Math.cos(n),n*Math.sin(n)]}}function En(t){var e=4,n=e*t[0]/t[1],s=0,r=0;return function(i){var o=i<0?-1:1;switch(Math.sqrt(1+4*o*i)-o&3){case 0:s+=n;break;case 1:r+=e;break;case 2:s-=n;break;default:r-=e;break}return[s,r]}}function kn(t){for(var e=[],n=-1;++n<t;)e[n]=0;return e}function An(){return document.createElement("canvas")}function nt(t){return typeof t=="function"?t:function(){return t}}var Sn={archimedean:Ae,rectangular:En},Ot="http://www.w3.org/1999/xhtml",re={svg:"http://www.w3.org/2000/svg",xhtml:Ot,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Se(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),re.hasOwnProperty(e)?{space:re[e],local:t}:t}function In(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Ot&&e.documentElement.namespaceURI===Ot?e.createElement(t):e.createElementNS(n,t)}}function Cn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ie(t){var e=Se(t);return(e.local?Cn:In)(e)}function Rn(){}function Ce(t){return t==null?Rn:function(){return this.querySelector(t)}}function Nn(t){typeof t!="function"&&(t=Ce(t));for(var e=this._groups,n=e.length,s=new Array(n),r=0;r<n;++r)for(var i=e[r],o=i.length,c=s[r]=new Array(o),a,u,l=0;l<o;++l)(a=i[l])&&(u=t.call(a,a.__data__,l,i))&&("__data__"in a&&(u.__data__=a.__data__),c[l]=u);return new X(s,this._parents)}function Ln(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Tn(){return[]}function On(t){return t==null?Tn:function(){return this.querySelectorAll(t)}}function Pn(t){return function(){return Ln(t.apply(this,arguments))}}function Fn(t){typeof t=="function"?t=Pn(t):t=On(t);for(var e=this._groups,n=e.length,s=[],r=[],i=0;i<n;++i)for(var o=e[i],c=o.length,a,u=0;u<c;++u)(a=o[u])&&(s.push(t.call(a,a.__data__,u,o)),r.push(a));return new X(s,r)}function Dn(t){return function(){return this.matches(t)}}function Re(t){return function(e){return e.matches(t)}}var zn=Array.prototype.find;function Vn(t){return function(){return zn.call(this.children,t)}}function Wn(){return this.firstElementChild}function Bn(t){return this.select(t==null?Wn:Vn(typeof t=="function"?t:Re(t)))}var Hn=Array.prototype.filter;function Kn(){return Array.from(this.children)}function Un(t){return function(){return Hn.call(this.children,t)}}function Yn(t){return this.selectAll(t==null?Kn:Un(typeof t=="function"?t:Re(t)))}function Xn(t){typeof t!="function"&&(t=Dn(t));for(var e=this._groups,n=e.length,s=new Array(n),r=0;r<n;++r)for(var i=e[r],o=i.length,c=s[r]=[],a,u=0;u<o;++u)(a=i[u])&&t.call(a,a.__data__,u,i)&&c.push(a);return new X(s,this._parents)}function Ne(t){return new Array(t.length)}function Gn(){return new X(this._enter||this._groups.map(Ne),this._parents)}function At(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}At.prototype={constructor:At,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function qn(t){return function(){return t}}function Jn(t,e,n,s,r,i){for(var o=0,c,a=e.length,u=i.length;o<u;++o)(c=e[o])?(c.__data__=i[o],s[o]=c):n[o]=new At(t,i[o]);for(;o<a;++o)(c=e[o])&&(r[o]=c)}function Qn(t,e,n,s,r,i,o){var c,a,u=new Map,l=e.length,f=i.length,d=new Array(l),m;for(c=0;c<l;++c)(a=e[c])&&(d[c]=m=o.call(a,a.__data__,c,e)+"",u.has(m)?r[c]=a:u.set(m,a));for(c=0;c<f;++c)m=o.call(t,i[c],c,i)+"",(a=u.get(m))?(s[c]=a,a.__data__=i[c],u.delete(m)):n[c]=new At(t,i[c]);for(c=0;c<l;++c)(a=e[c])&&u.get(d[c])===a&&(r[c]=a)}function Zn(t){return t.__data__}function jn(t,e){if(!arguments.length)return Array.from(this,Zn);var n=e?Qn:Jn,s=this._parents,r=this._groups;typeof t!="function"&&(t=qn(t));for(var i=r.length,o=new Array(i),c=new Array(i),a=new Array(i),u=0;u<i;++u){var l=s[u],f=r[u],d=f.length,m=$n(t.call(l,l&&l.__data__,u,s)),h=m.length,_=c[u]=new Array(h),A=o[u]=new Array(h),x=a[u]=new Array(d);n(l,f,_,A,x,m,e);for(var g=0,p=0,v,E;g<h;++g)if(v=_[g]){for(g>=p&&(p=g+1);!(E=A[p])&&++p<h;);v._next=E||null}}return o=new X(o,s),o._enter=c,o._exit=a,o}function $n(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function tr(){return new X(this._exit||this._groups.map(Ne),this._parents)}function er(t,e,n){var s=this.enter(),r=this,i=this.exit();return typeof t=="function"?(s=t(s),s&&(s=s.selection())):s=s.append(t+""),e!=null&&(r=e(r),r&&(r=r.selection())),n==null?i.remove():n(i),s&&r?s.merge(r).order():r}function nr(t){for(var e=t.selection?t.selection():t,n=this._groups,s=e._groups,r=n.length,i=s.length,o=Math.min(r,i),c=new Array(r),a=0;a<o;++a)for(var u=n[a],l=s[a],f=u.length,d=c[a]=new Array(f),m,h=0;h<f;++h)(m=u[h]||l[h])&&(d[h]=m);for(;a<r;++a)c[a]=n[a];return new X(c,this._parents)}function rr(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var s=t[e],r=s.length-1,i=s[r],o;--r>=0;)(o=s[r])&&(i&&o.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(o,i),i=o);return this}function sr(t){t||(t=ir);function e(f,d){return f&&d?t(f.__data__,d.__data__):!f-!d}for(var n=this._groups,s=n.length,r=new Array(s),i=0;i<s;++i){for(var o=n[i],c=o.length,a=r[i]=new Array(c),u,l=0;l<c;++l)(u=o[l])&&(a[l]=u);a.sort(e)}return new X(r,this._parents).order()}function ir(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function or(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function cr(){return Array.from(this)}function ar(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var s=t[e],r=0,i=s.length;r<i;++r){var o=s[r];if(o)return o}return null}function lr(){let t=0;for(const e of this)++t;return t}function ur(){return!this.node()}function fr(t){for(var e=this._groups,n=0,s=e.length;n<s;++n)for(var r=e[n],i=0,o=r.length,c;i<o;++i)(c=r[i])&&t.call(c,c.__data__,i,r);return this}function hr(t){return function(){this.removeAttribute(t)}}function dr(t){return function(){this.removeAttributeNS(t.space,t.local)}}function gr(t,e){return function(){this.setAttribute(t,e)}}function pr(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function mr(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function _r(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function yr(t,e){var n=Se(t);if(arguments.length<2){var s=this.node();return n.local?s.getAttributeNS(n.space,n.local):s.getAttribute(n)}return this.each((e==null?n.local?dr:hr:typeof e=="function"?n.local?_r:mr:n.local?pr:gr)(n,e))}function Le(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function vr(t){return function(){this.style.removeProperty(t)}}function xr(t,e,n){return function(){this.style.setProperty(t,e,n)}}function wr(t,e,n){return function(){var s=e.apply(this,arguments);s==null?this.style.removeProperty(t):this.style.setProperty(t,s,n)}}function br(t,e,n){return arguments.length>1?this.each((e==null?vr:typeof e=="function"?wr:xr)(t,e,n==null?"":n)):Mr(this.node(),t)}function Mr(t,e){return t.style.getPropertyValue(e)||Le(t).getComputedStyle(t,null).getPropertyValue(e)}function Er(t){return function(){delete this[t]}}function kr(t,e){return function(){this[t]=e}}function Ar(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Sr(t,e){return arguments.length>1?this.each((e==null?Er:typeof e=="function"?Ar:kr)(t,e)):this.node()[t]}function Te(t){return t.trim().split(/^|\s+/)}function Bt(t){return t.classList||new Oe(t)}function Oe(t){this._node=t,this._names=Te(t.getAttribute("class")||"")}Oe.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Pe(t,e){for(var n=Bt(t),s=-1,r=e.length;++s<r;)n.add(e[s])}function Fe(t,e){for(var n=Bt(t),s=-1,r=e.length;++s<r;)n.remove(e[s])}function Ir(t){return function(){Pe(this,t)}}function Cr(t){return function(){Fe(this,t)}}function Rr(t,e){return function(){(e.apply(this,arguments)?Pe:Fe)(this,t)}}function Nr(t,e){var n=Te(t+"");if(arguments.length<2){for(var s=Bt(this.node()),r=-1,i=n.length;++r<i;)if(!s.contains(n[r]))return!1;return!0}return this.each((typeof e=="function"?Rr:e?Ir:Cr)(n,e))}function Lr(){this.textContent=""}function Tr(t){return function(){this.textContent=t}}function Or(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Pr(t){return arguments.length?this.each(t==null?Lr:(typeof t=="function"?Or:Tr)(t)):this.node().textContent}function Fr(){this.innerHTML=""}function Dr(t){return function(){this.innerHTML=t}}function zr(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function Vr(t){return arguments.length?this.each(t==null?Fr:(typeof t=="function"?zr:Dr)(t)):this.node().innerHTML}function Wr(){this.nextSibling&&this.parentNode.appendChild(this)}function Br(){return this.each(Wr)}function Hr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Kr(){return this.each(Hr)}function Ur(t){var e=typeof t=="function"?t:Ie(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Yr(){return null}function Xr(t,e){var n=typeof t=="function"?t:Ie(t),s=e==null?Yr:typeof e=="function"?e:Ce(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),s.apply(this,arguments)||null)})}function Gr(){var t=this.parentNode;t&&t.removeChild(this)}function qr(){return this.each(Gr)}function Jr(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Qr(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Zr(t){return this.select(t?Qr:Jr)}function jr(t){return arguments.length?this.property("__data__",t):this.node().__data__}function $r(t){return function(e){t.call(this,e,this.__data__)}}function ts(t){return t.trim().split(/^|\s+/).map(function(e){var n="",s=e.indexOf(".");return s>=0&&(n=e.slice(s+1),e=e.slice(0,s)),{type:e,name:n}})}function es(t){return function(){var e=this.__on;if(!!e){for(var n=0,s=-1,r=e.length,i;n<r;++n)i=e[n],(!t.type||i.type===t.type)&&i.name===t.name?this.removeEventListener(i.type,i.listener,i.options):e[++s]=i;++s?e.length=s:delete this.__on}}}function ns(t,e,n){return function(){var s=this.__on,r,i=$r(e);if(s){for(var o=0,c=s.length;o<c;++o)if((r=s[o]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=i,r.options=n),r.value=e;return}}this.addEventListener(t.type,i,n),r={type:t.type,name:t.name,value:e,listener:i,options:n},s?s.push(r):this.__on=[r]}}function rs(t,e,n){var s=ts(t+""),r,i=s.length,o;if(arguments.length<2){var c=this.node().__on;if(c){for(var a=0,u=c.length,l;a<u;++a)for(r=0,l=c[a];r<i;++r)if((o=s[r]).type===l.type&&o.name===l.name)return l.value}return}for(c=e?ns:es,r=0;r<i;++r)this.each(c(s[r],e,n));return this}function De(t,e,n){var s=Le(t),r=s.CustomEvent;typeof r=="function"?r=new r(e,n):(r=s.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function ss(t,e){return function(){return De(this,t,e)}}function is(t,e){return function(){return De(this,t,e.apply(this,arguments))}}function os(t,e){return this.each((typeof e=="function"?is:ss)(t,e))}function*cs(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var s=t[e],r=0,i=s.length,o;r<i;++r)(o=s[r])&&(yield o)}var as=[null];function X(t,e){this._groups=t,this._parents=e}function ls(){return this}X.prototype={constructor:X,select:Nn,selectAll:Fn,selectChild:Bn,selectChildren:Yn,filter:Xn,data:jn,enter:Gn,exit:tr,join:er,merge:nr,selection:ls,order:rr,sort:sr,call:or,nodes:cr,node:ar,size:lr,empty:ur,each:fr,attr:yr,style:br,property:Sr,classed:Nr,text:Pr,html:Vr,raise:Br,lower:Kr,append:Ur,insert:Xr,remove:qr,clone:Zr,datum:jr,on:rs,dispatch:os,[Symbol.iterator]:cs};function se(t){return typeof t=="string"?new X([[document.querySelector(t)]],[document.documentElement]):new X([[t]],as)}class ie extends Map{constructor(e,n=hs){super();if(Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[s,r]of e)this.set(s,r)}get(e){return super.get(oe(this,e))}has(e){return super.has(oe(this,e))}set(e,n){return super.set(us(this,e),n)}delete(e){return super.delete(fs(this,e))}}function oe({_intern:t,_key:e},n){const s=e(n);return t.has(s)?t.get(s):n}function us({_intern:t,_key:e},n){const s=e(n);return t.has(s)?t.get(s):(t.set(s,n),n)}function fs({_intern:t,_key:e},n){const s=e(n);return t.has(s)&&(n=t.get(s),t.delete(s)),n}function hs(t){return t!==null&&typeof t=="object"?t.valueOf():t}function ds(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const ce=Symbol("implicit");function ze(){var t=new ie,e=[],n=[],s=ce;function r(i){let o=t.get(i);if(o===void 0){if(s!==ce)return s;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return r.domain=function(i){if(!arguments.length)return e.slice();e=[],t=new ie;for(const o of i)t.has(o)||t.set(o,e.push(o)-1);return r},r.range=function(i){return arguments.length?(n=Array.from(i),r):n.slice()},r.unknown=function(i){return arguments.length?(s=i,r):s},r.copy=function(){return ze(e,n).unknown(s)},ds.apply(r,arguments),r}function $(t){for(var e=t.length/6|0,n=new Array(e),s=0;s<e;)n[s]="#"+t.slice(s*6,++s*6);return n}var gs=$("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),ps=$("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),ms=$("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),_s=$("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),ys=$("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),vs=$("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),xs=$("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),ws=$("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),bs=$("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Ms=$("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function Es(t){let e,n,s,r,i,o;return Ze(t[15]),{c(){e=F("div"),n=F("div"),this.h()},l(c){e=D(c,"DIV",{class:!0});var a=z(e);n=D(a,"DIV",{id:!0,style:!0,class:!0}),z(n).forEach(T),a.forEach(T),this.h()},h(){P(n,"id","wordcloud"),ut(n,"background-color",t[0]),ut(n,"width",t[2]+"px"),ut(n,"height",t[4]+"px"),P(n,"class",s="justify-end "+(t[3]?"opacity-100":"opacity-0")+" transition transition-all transition-fast svelte-wza7b"),P(e,"class",r="height: "+t[4]+"px;")},m(c,a){ht(c,e,a),I(e,n),i||(o=Et(window,"resize",t[15]),i=!0)},p(c,[a]){a&1&&ut(n,"background-color",c[0]),a&4&&ut(n,"width",c[2]+"px"),a&16&&ut(n,"height",c[4]+"px"),a&8&&s!==(s="justify-end "+(c[3]?"opacity-100":"opacity-0")+" transition transition-all transition-fast svelte-wza7b")&&P(n,"class",s),a&16&&r!==(r="height: "+c[4]+"px;")&&P(e,"class",r)},i:kt,o:kt,d(c){c&&T(e),i=!1,o()}}}function ks(t,e,n){let s,r,i,o;const c=je(),a={schemeCategory10:gs,schemeAccent:ps,schemeDark2:ms,schemePaired:_s,schemePastel1:ys,schemePastel2:vs,schemeSet1:xs,schemeSet2:ws,schemeSet3:bs,schemeTableau10:Ms};let{width:u=900}=e,{words:l=[]}=e,{height:f=250}=e,{font:d="Montserrat"}=e,{maxFontSize:m=40}=e,{minRotate:h=0}=e,{maxRotate:_=0}=e,{scheme:A="schemeTableau10"}=e,{padding:x=2}=e,{backgroundColor:g="#fff"}=e;l.reduce((y,L)=>y.count<L.count?y.count:L.count),ze(a[A]);const p=y=>c("click",y),v=y=>c("mouseover",y),E=y=>c("mouseout",y),R=y=>c("mousemove",y);let b=null;async function k(){return gn().size([i,o]).words(l).padding(x).rotate(()=>~~(Math.random()*_)+h).font(d).fontSize(y=>y.count+15)}function N(y){se("#wordcloud").selectAll("*").remove(),se("#wordcloud").append("svg").attr("width",b.size()[0]).attr("height",b.size()[1]).append("g").attr("transform","translate("+b.size()[0]/2+","+b.size()[1]/2+")").selectAll("text").data(y).enter().append("text").style("font-size",L=>L.size+"px").style("font-family",d).style("fill","#393F67").style("cursor","pointer").attr("text-anchor","middle").attr("transform",L=>"translate("+[L.x,L.y]+")rotate("+L.rotate+")").text(L=>L.text).on("click",p).on("mouseover",v).on("mouseout",E).on("mousemove",R)}async function C(){b=(await k()).on("end",N),b.start()}let M=!1,W=null;$e(async()=>{let y=0;setTimeout(()=>{W=setInterval(()=>{s!==y&&(C(),y=s)},500)},1),setTimeout(()=>{C(),y=s,n(3,M=!0)},0)}),tn(()=>{clearTimeout(W)});function K(){n(5,r=window.innerWidth),n(1,s=window.outerWidth)}return t.$$set=y=>{"width"in y&&n(6,u=y.width),"words"in y&&n(7,l=y.words),"height"in y&&n(8,f=y.height),"font"in y&&n(9,d=y.font),"maxFontSize"in y&&n(10,m=y.maxFontSize),"minRotate"in y&&n(11,h=y.minRotate),"maxRotate"in y&&n(12,_=y.maxRotate),"scheme"in y&&n(13,A=y.scheme),"padding"in y&&n(14,x=y.padding),"backgroundColor"in y&&n(0,g=y.backgroundColor)},t.$$.update=()=>{t.$$.dirty&2&&n(2,i=s>1152?1e3:s>500?s-100:s-50),t.$$.dirty&4&&n(4,o=i<800?400:i<500?600:250)},n(1,s=0),n(5,r=0),[g,s,i,M,o,r,u,l,f,d,m,h,_,A,x,K]}class As extends _e{constructor(e){super();ye(this,e,ks,Es,ve,{width:6,words:7,height:8,font:9,maxFontSize:10,minRotate:11,maxRotate:12,scheme:13,padding:14,backgroundColor:0})}}function et(t){return Array.isArray?Array.isArray(t):Be(t)==="[object Array]"}const Ss=1/0;function Is(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-Ss?"-0":e}function Cs(t){return t==null?"":Is(t)}function tt(t){return typeof t=="string"}function Ve(t){return typeof t=="number"}function Rs(t){return t===!0||t===!1||Ns(t)&&Be(t)=="[object Boolean]"}function We(t){return typeof t=="object"}function Ns(t){return We(t)&&t!==null}function U(t){return t!=null}function Lt(t){return!t.trim().length}function Be(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Ls="Incorrect 'index' type",Ts=t=>`Invalid value for key ${t}`,Os=t=>`Pattern length exceeds max of ${t}.`,Ps=t=>`Missing ${t} property in key`,Fs=t=>`Property 'weight' in key '${t}' must be a positive integer`,ae=Object.prototype.hasOwnProperty;class Ds{constructor(e){this._keys=[],this._keyMap={};let n=0;e.forEach(s=>{let r=He(s);n+=r.weight,this._keys.push(r),this._keyMap[r.id]=r,n+=r.weight}),this._keys.forEach(s=>{s.weight/=n})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function He(t){let e=null,n=null,s=null,r=1;if(tt(t)||et(t))s=t,e=le(t),n=Pt(t);else{if(!ae.call(t,"name"))throw new Error(Ps("name"));const i=t.name;if(s=i,ae.call(t,"weight")&&(r=t.weight,r<=0))throw new Error(Fs(i));e=le(i),n=Pt(i)}return{path:e,id:n,weight:r,src:s}}function le(t){return et(t)?t:t.split(".")}function Pt(t){return et(t)?t.join("."):t}function zs(t,e){let n=[],s=!1;const r=(i,o,c)=>{if(!!U(i))if(!o[c])n.push(i);else{let a=o[c];const u=i[a];if(!U(u))return;if(c===o.length-1&&(tt(u)||Ve(u)||Rs(u)))n.push(Cs(u));else if(et(u)){s=!0;for(let l=0,f=u.length;l<f;l+=1)r(u[l],o,c+1)}else o.length&&r(u,o,c+1)}};return r(t,tt(e)?e.split("."):e,0),s?n:n[0]}const Vs={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Ws={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},Bs={location:0,threshold:.6,distance:100},Hs={useExtendedSearch:!1,getFn:zs,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var w=it(it(it(it({},Ws),Vs),Bs),Hs);const Ks=/[^ ]+/g;function Us(t=1,e=3){const n=new Map,s=Math.pow(10,e);return{get(r){const i=r.match(Ks).length;if(n.has(i))return n.get(i);const o=1/Math.pow(i,.5*t),c=parseFloat(Math.round(o*s)/s);return n.set(i,c),c},clear(){n.clear()}}}class Ht{constructor({getFn:e=w.getFn,fieldNormWeight:n=w.fieldNormWeight}={}){this.norm=Us(n,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((n,s)=>{this._keysMap[n.id]=s})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,tt(this.docs[0])?this.docs.forEach((e,n)=>{this._addString(e,n)}):this.docs.forEach((e,n)=>{this._addObject(e,n)}),this.norm.clear())}add(e){const n=this.size();tt(e)?this._addString(e,n):this._addObject(e,n)}removeAt(e){this.records.splice(e,1);for(let n=e,s=this.size();n<s;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(e,n){return e[this._keysMap[n]]}size(){return this.records.length}_addString(e,n){if(!U(e)||Lt(e))return;let s={v:e,i:n,n:this.norm.get(e)};this.records.push(s)}_addObject(e,n){let s={i:n,$:{}};this.keys.forEach((r,i)=>{let o=this.getFn(e,r.path);if(!!U(o)){if(et(o)){let c=[];const a=[{nestedArrIndex:-1,value:o}];for(;a.length;){const{nestedArrIndex:u,value:l}=a.pop();if(!!U(l))if(tt(l)&&!Lt(l)){let f={v:l,i:u,n:this.norm.get(l)};c.push(f)}else et(l)&&l.forEach((f,d)=>{a.push({nestedArrIndex:d,value:f})})}s.$[i]=c}else if(!Lt(o)){let c={v:o,n:this.norm.get(o)};s.$[i]=c}}}),this.records.push(s)}toJSON(){return{keys:this.keys,records:this.records}}}function Ke(t,e,{getFn:n=w.getFn,fieldNormWeight:s=w.fieldNormWeight}={}){const r=new Ht({getFn:n,fieldNormWeight:s});return r.setKeys(t.map(He)),r.setSources(e),r.create(),r}function Ys(t,{getFn:e=w.getFn,fieldNormWeight:n=w.fieldNormWeight}={}){const{keys:s,records:r}=t,i=new Ht({getFn:e,fieldNormWeight:n});return i.setKeys(s),i.setIndexRecords(r),i}function wt(t,{errors:e=0,currentLocation:n=0,expectedLocation:s=0,distance:r=w.distance,ignoreLocation:i=w.ignoreLocation}={}){const o=e/t.length;if(i)return o;const c=Math.abs(s-n);return r?o+c/r:c?1:o}function Xs(t=[],e=w.minMatchCharLength){let n=[],s=-1,r=-1,i=0;for(let o=t.length;i<o;i+=1){let c=t[i];c&&s===-1?s=i:!c&&s!==-1&&(r=i-1,r-s+1>=e&&n.push([s,r]),s=-1)}return t[i-1]&&i-s>=e&&n.push([s,i-1]),n}const ct=32;function Gs(t,e,n,{location:s=w.location,distance:r=w.distance,threshold:i=w.threshold,findAllMatches:o=w.findAllMatches,minMatchCharLength:c=w.minMatchCharLength,includeMatches:a=w.includeMatches,ignoreLocation:u=w.ignoreLocation}={}){if(e.length>ct)throw new Error(Os(ct));const l=e.length,f=t.length,d=Math.max(0,Math.min(s,f));let m=i,h=d;const _=c>1||a,A=_?Array(f):[];let x;for(;(x=t.indexOf(e,h))>-1;){let b=wt(e,{currentLocation:x,expectedLocation:d,distance:r,ignoreLocation:u});if(m=Math.min(b,m),h=x+l,_){let k=0;for(;k<l;)A[x+k]=1,k+=1}}h=-1;let g=[],p=1,v=l+f;const E=1<<l-1;for(let b=0;b<l;b+=1){let k=0,N=v;for(;k<N;)wt(e,{errors:b,currentLocation:d+N,expectedLocation:d,distance:r,ignoreLocation:u})<=m?k=N:v=N,N=Math.floor((v-k)/2+k);v=N;let C=Math.max(1,d-N+1),M=o?f:Math.min(d+N,f)+l,W=Array(M+2);W[M+1]=(1<<b)-1;for(let y=M;y>=C;y-=1){let L=y-1,Y=n[t.charAt(L)];if(_&&(A[L]=+!!Y),W[y]=(W[y+1]<<1|1)&Y,b&&(W[y]|=(g[y+1]|g[y])<<1|1|g[y+1]),W[y]&E&&(p=wt(e,{errors:b,currentLocation:L,expectedLocation:d,distance:r,ignoreLocation:u}),p<=m)){if(m=p,h=L,h<=d)break;C=Math.max(1,2*d-h)}}if(wt(e,{errors:b+1,currentLocation:d,expectedLocation:d,distance:r,ignoreLocation:u})>m)break;g=W}const R={isMatch:h>=0,score:Math.max(.001,p)};if(_){const b=Xs(A,c);b.length?a&&(R.indices=b):R.isMatch=!1}return R}function qs(t){let e={};for(let n=0,s=t.length;n<s;n+=1){const r=t.charAt(n);e[r]=(e[r]||0)|1<<s-n-1}return e}class Ue{constructor(e,{location:n=w.location,threshold:s=w.threshold,distance:r=w.distance,includeMatches:i=w.includeMatches,findAllMatches:o=w.findAllMatches,minMatchCharLength:c=w.minMatchCharLength,isCaseSensitive:a=w.isCaseSensitive,ignoreLocation:u=w.ignoreLocation}={}){if(this.options={location:n,threshold:s,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:c,isCaseSensitive:a,ignoreLocation:u},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(d,m)=>{this.chunks.push({pattern:d,alphabet:qs(d),startIndex:m})},f=this.pattern.length;if(f>ct){let d=0;const m=f%ct,h=f-m;for(;d<h;)l(this.pattern.substr(d,ct),d),d+=ct;if(m){const _=f-ct;l(this.pattern.substr(_),_)}}else l(this.pattern,0)}searchIn(e){const{isCaseSensitive:n,includeMatches:s}=this.options;if(n||(e=e.toLowerCase()),this.pattern===e){let h={isMatch:!0,score:0};return s&&(h.indices=[[0,e.length-1]]),h}const{location:r,distance:i,threshold:o,findAllMatches:c,minMatchCharLength:a,ignoreLocation:u}=this.options;let l=[],f=0,d=!1;this.chunks.forEach(({pattern:h,alphabet:_,startIndex:A})=>{const{isMatch:x,score:g,indices:p}=Gs(e,h,_,{location:r+A,distance:i,threshold:o,findAllMatches:c,minMatchCharLength:a,includeMatches:s,ignoreLocation:u});x&&(d=!0),f+=g,x&&p&&(l=[...l,...p])});let m={isMatch:d,score:d?f/this.chunks.length:1};return d&&s&&(m.indices=l),m}}class rt{constructor(e){this.pattern=e}static isMultiMatch(e){return ue(e,this.multiRegex)}static isSingleMatch(e){return ue(e,this.singleRegex)}search(){}}function ue(t,e){const n=t.match(e);return n?n[1]:null}class Js extends rt{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const n=e===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Qs extends rt{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const s=e.indexOf(this.pattern)===-1;return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class Zs extends rt{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const n=e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class js extends rt{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const n=!e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class $s extends rt{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const n=e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class ti extends rt{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const n=!e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class Ye extends rt{constructor(e,{location:n=w.location,threshold:s=w.threshold,distance:r=w.distance,includeMatches:i=w.includeMatches,findAllMatches:o=w.findAllMatches,minMatchCharLength:c=w.minMatchCharLength,isCaseSensitive:a=w.isCaseSensitive,ignoreLocation:u=w.ignoreLocation}={}){super(e);this._bitapSearch=new Ue(e,{location:n,threshold:s,distance:r,includeMatches:i,findAllMatches:o,minMatchCharLength:c,isCaseSensitive:a,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Xe extends rt{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let n=0,s;const r=[],i=this.pattern.length;for(;(s=e.indexOf(this.pattern,n))>-1;)n=s+i,r.push([s,n-1]);const o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}const Ft=[Js,Xe,Zs,js,ti,$s,Qs,Ye],fe=Ft.length,ei=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/,ni="|";function ri(t,e={}){return t.split(ni).map(n=>{let s=n.trim().split(ei).filter(i=>i&&!!i.trim()),r=[];for(let i=0,o=s.length;i<o;i+=1){const c=s[i];let a=!1,u=-1;for(;!a&&++u<fe;){const l=Ft[u];let f=l.isMultiMatch(c);f&&(r.push(new l(f,e)),a=!0)}if(!a)for(u=-1;++u<fe;){const l=Ft[u];let f=l.isSingleMatch(c);if(f){r.push(new l(f,e));break}}}return r})}const si=new Set([Ye.type,Xe.type]);class ii{constructor(e,{isCaseSensitive:n=w.isCaseSensitive,includeMatches:s=w.includeMatches,minMatchCharLength:r=w.minMatchCharLength,ignoreLocation:i=w.ignoreLocation,findAllMatches:o=w.findAllMatches,location:c=w.location,threshold:a=w.threshold,distance:u=w.distance}={}){this.query=null,this.options={isCaseSensitive:n,includeMatches:s,minMatchCharLength:r,findAllMatches:o,ignoreLocation:i,location:c,threshold:a,distance:u},this.pattern=n?e:e.toLowerCase(),this.query=ri(this.pattern,this.options)}static condition(e,n){return n.useExtendedSearch}searchIn(e){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:s,isCaseSensitive:r}=this.options;e=r?e:e.toLowerCase();let i=0,o=[],c=0;for(let a=0,u=n.length;a<u;a+=1){const l=n[a];o.length=0,i=0;for(let f=0,d=l.length;f<d;f+=1){const m=l[f],{isMatch:h,indices:_,score:A}=m.search(e);if(h){if(i+=1,c+=A,s){const x=m.constructor.type;si.has(x)?o=[...o,..._]:o.push(_)}}else{c=0,i=0,o.length=0;break}}if(i){let f={isMatch:!0,score:c/i};return s&&(f.indices=o),f}}return{isMatch:!1,score:1}}}const Dt=[];function oi(...t){Dt.push(...t)}function zt(t,e){for(let n=0,s=Dt.length;n<s;n+=1){let r=Dt[n];if(r.condition(t,e))return new r(t,e)}return new Ue(t,e)}const St={AND:"$and",OR:"$or"},Vt={PATH:"$path",PATTERN:"$val"},Wt=t=>!!(t[St.AND]||t[St.OR]),ci=t=>!!t[Vt.PATH],ai=t=>!et(t)&&We(t)&&!Wt(t),he=t=>({[St.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function Ge(t,e,{auto:n=!0}={}){const s=r=>{let i=Object.keys(r);const o=ci(r);if(!o&&i.length>1&&!Wt(r))return s(he(r));if(ai(r)){const a=o?r[Vt.PATH]:i[0],u=o?r[Vt.PATTERN]:r[a];if(!tt(u))throw new Error(Ts(a));const l={keyId:Pt(a),pattern:u};return n&&(l.searcher=zt(u,e)),l}let c={children:[],operator:i[0]};return i.forEach(a=>{const u=r[a];et(u)&&u.forEach(l=>{c.children.push(s(l))})}),c};return Wt(t)||(t=he(t)),s(t)}function li(t,{ignoreFieldNorm:e=w.ignoreFieldNorm}){t.forEach(n=>{let s=1;n.matches.forEach(({key:r,norm:i,score:o})=>{const c=r?r.weight:null;s*=Math.pow(o===0&&c?Number.EPSILON:o,(c||1)*(e?1:i))}),n.score=s})}function ui(t,e){const n=t.matches;e.matches=[],U(n)&&n.forEach(s=>{if(!U(s.indices)||!s.indices.length)return;const{indices:r,value:i}=s;let o={indices:r,value:i};s.key&&(o.key=s.key.src),s.idx>-1&&(o.refIndex=s.idx),e.matches.push(o)})}function fi(t,e){e.score=t.score}function hi(t,e,{includeMatches:n=w.includeMatches,includeScore:s=w.includeScore}={}){const r=[];return n&&r.push(ui),s&&r.push(fi),t.map(i=>{const{idx:o}=i,c={item:e[o],refIndex:o};return r.length&&r.forEach(a=>{a(i,c)}),c})}class dt{constructor(e,n={},s){this.options=it(it({},w),n),this.options.useExtendedSearch,this._keyStore=new Ds(this.options.keys),this.setCollection(e,s)}setCollection(e,n){if(this._docs=e,n&&!(n instanceof Ht))throw new Error(Ls);this._myIndex=n||Ke(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){!U(e)||(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const n=[];for(let s=0,r=this._docs.length;s<r;s+=1){const i=this._docs[s];e(i,s)&&(this.removeAt(s),s-=1,r-=1,n.push(i))}return n}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:n=-1}={}){const{includeMatches:s,includeScore:r,shouldSort:i,sortFn:o,ignoreFieldNorm:c}=this.options;let a=tt(e)?tt(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return li(a,{ignoreFieldNorm:c}),i&&a.sort(o),Ve(n)&&n>-1&&(a=a.slice(0,n)),hi(a,this._docs,{includeMatches:s,includeScore:r})}_searchStringList(e){const n=zt(e,this.options),{records:s}=this._myIndex,r=[];return s.forEach(({v:i,i:o,n:c})=>{if(!U(i))return;const{isMatch:a,score:u,indices:l}=n.searchIn(i);a&&r.push({item:i,idx:o,matches:[{score:u,value:i,norm:c,indices:l}]})}),r}_searchLogical(e){const n=Ge(e,this.options),s=(c,a,u)=>{if(!c.children){const{keyId:f,searcher:d}=c,m=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(a,f),searcher:d});return m&&m.length?[{idx:u,item:a,matches:m}]:[]}const l=[];for(let f=0,d=c.children.length;f<d;f+=1){const m=c.children[f],h=s(m,a,u);if(h.length)l.push(...h);else if(c.operator===St.AND)return[]}return l},r=this._myIndex.records,i={},o=[];return r.forEach(({$:c,i:a})=>{if(U(c)){let u=s(n,c,a);u.length&&(i[a]||(i[a]={idx:a,item:c,matches:[]},o.push(i[a])),u.forEach(({matches:l})=>{i[a].matches.push(...l)}))}}),o}_searchObjectList(e){const n=zt(e,this.options),{keys:s,records:r}=this._myIndex,i=[];return r.forEach(({$:o,i:c})=>{if(!U(o))return;let a=[];s.forEach((u,l)=>{a.push(...this._findMatches({key:u,value:o[l],searcher:n}))}),a.length&&i.push({idx:c,item:o,matches:a})}),i}_findMatches({key:e,value:n,searcher:s}){if(!U(n))return[];let r=[];if(et(n))n.forEach(({v:i,i:o,n:c})=>{if(!U(i))return;const{isMatch:a,score:u,indices:l}=s.searchIn(i);a&&r.push({score:u,key:e,value:i,idx:o,norm:c,indices:l})});else{const{v:i,n:o}=n,{isMatch:c,score:a,indices:u}=s.searchIn(i);c&&r.push({score:a,key:e,value:i,norm:o,indices:u})}return r}}dt.version="6.5.3";dt.createIndex=Ke;dt.parseIndex=Ys;dt.config=w;dt.parseQuery=Ge;oi(ii);function de(t,e,n){const s=t.slice();return s[18]=e[n],s}function ge(t,e,n){const s=t.slice();return s[21]=e[n],s}function di(t){let e,n,s;return n=new As({props:{words:t[4]}}),n.$on("click",t[6]),{c(){e=F("div"),xe(n.$$.fragment),this.h()},l(r){e=D(r,"DIV",{class:!0});var i=z(e);we(n.$$.fragment,i),i.forEach(T),this.h()},h(){P(e,"class","mt-6 lg:mt-10 flex sm:justify-center overflow-auto")},m(r,i){ht(r,e,i),be(n,e,null),s=!0},p(r,i){const o={};i&16&&(o.words=r[4]),n.$set(o)},i(r){s||(ot(n.$$.fragment,r),s=!0)},o(r){ft(n.$$.fragment,r),s=!1},d(r){r&&T(e),Me(n)}}}function gi(t){let e,n,s,r,i,o,c,a,u,l,f,d,m=t[0],h=[];for(let _=0;_<m.length;_+=1)h[_]=pe(ge(t,m,_));return{c(){e=F("div"),n=F("div"),s=q("Filtry:"),r=Z(),i=F("div");for(let _=0;_<h.length;_+=1)h[_].c();o=Z(),c=F("div"),a=F("a"),u=F("i"),l=q(" Zru\u0161it filtr"),this.h()},l(_){e=D(_,"DIV",{class:!0});var A=z(e);n=D(A,"DIV",{class:!0});var x=z(n);s=J(x,"Filtry:"),x.forEach(T),r=j(A),i=D(A,"DIV",{class:!0});var g=z(i);for(let E=0;E<h.length;E+=1)h[E].l(g);g.forEach(T),o=j(A),c=D(A,"DIV",{class:!0});var p=z(c);a=D(p,"A",{href:!0});var v=z(a);u=D(v,"I",{class:!0}),z(u).forEach(T),l=J(v," Zru\u0161it filtr"),v.forEach(T),p.forEach(T),A.forEach(T),this.h()},h(){P(n,"class","my-auto"),P(i,"class","text-sm my-auto flex gap-1"),P(u,"class","fa-solid fa-xmark text-red-500 mr-1"),P(a,"href",""),P(c,"class","ml-3 my-auto"),P(e,"class","mt-6 flex flex-wrap gap-3")},m(_,A){ht(_,e,A),I(e,n),I(n,s),I(e,r),I(e,i);for(let x=0;x<h.length;x+=1)h[x].m(i,null);I(e,o),I(e,c),I(c,a),I(a,u),I(a,l),f||(d=Et(a,"click",t[8]),f=!0)},p(_,A){if(A&1){m=_[0];let x;for(x=0;x<m.length;x+=1){const g=ge(_,m,x);h[x]?h[x].p(g,A):(h[x]=pe(g),h[x].c(),h[x].m(i,null))}for(;x<h.length;x+=1)h[x].d(1);h.length=m.length}},i:kt,o:kt,d(_){_&&T(e),Ee(h,_),f=!1,d()}}}function pe(t){let e,n=t[21].title+"",s,r;return{c(){e=F("div"),s=q(n),r=Z(),this.h()},l(i){e=D(i,"DIV",{class:!0});var o=z(e);s=J(o,n),r=j(o),o.forEach(T),this.h()},h(){P(e,"class","py-1 px-2 rounded bg-blue-web/60 text-white")},m(i,o){ht(i,e,o),I(e,s),I(e,r)},p(i,o){o&1&&n!==(n=i[21].title+"")&&Tt(s,n)},d(i){i&&T(e)}}}function me(t){let e,n;function s(...r){return t[11](t[18],...r)}return e=new rn({props:{event:t[1].spec.events.find(s)}}),{c(){xe(e.$$.fragment)},l(r){we(e.$$.fragment,r)},m(r,i){be(e,r,i),n=!0},p(r,i){t=r;const o={};i&10&&(o.event=t[1].spec.events.find(s)),e.$set(o)},i(r){n||(ot(e.$$.fragment,r),n=!0)},o(r){ft(e.$$.fragment,r),n=!1},d(r){Me(e,r)}}}function pi(t){let e,n,s,r,i,o,c,a,u,l,f,d,m,h,_,A,x=t[3].length+"",g,p,v=t[1].spec.events.length+"",E,R,b,k,N,C,M,W,K,y,L,Y,at,gt;const yt=[gi,di],Q=[];function pt(S,V){return S[0].length>0?0:S[5].loaded?1:-1}~(l=pt(t))&&(f=Q[l]=yt[l](t));let G=t[3],O=[];for(let S=0;S<G.length;S+=1)O[S]=me(de(t,G,S));const st=S=>ft(O[S],1,1,()=>{O[S]=null});return{c(){e=Z(),n=F("section"),s=F("h1"),r=q("Program"),i=Z(),o=F("div"),c=F("p"),a=q(`Program st\xE1le p\u0159ipravujeme, aktu\xE1ln\u011B je zde vyps\xE1na jenom \u010D\xE1st obsahu.
\u010Casov\xFD rozpis bude zve\u0159ejn\u011Bn cca 2 t\xFDdny p\u0159ed konferenc\xED.`),u=Z(),f&&f.c(),d=Z(),m=F("div"),h=F("div"),_=F("h1"),A=q("Seznam ud\xE1lost\xED ("),g=q(x),p=q("/"),E=q(v),R=q(")"),b=Z(),k=F("div"),N=F("div"),C=q("Hledat:"),M=Z(),W=F("div"),K=F("input"),y=Z(),L=F("div");for(let S=0;S<O.length;S+=1)O[S].c();this.h()},l(S){en('[data-svelte="svelte-124umcn"]',document.head).forEach(T),e=j(S),n=D(S,"SECTION",{class:!0});var B=z(n);s=D(B,"H1",{class:!0});var H=z(s);r=J(H,"Program"),H.forEach(T),i=j(B),o=D(B,"DIV",{class:!0});var mt=z(o);c=D(mt,"P",{});var Kt=z(c);a=J(Kt,`Program st\xE1le p\u0159ipravujeme, aktu\xE1ln\u011B je zde vyps\xE1na jenom \u010D\xE1st obsahu.
\u010Casov\xFD rozpis bude zve\u0159ejn\u011Bn cca 2 t\xFDdny p\u0159ed konferenc\xED.`),Kt.forEach(T),mt.forEach(T),u=j(B),f&&f.l(B),d=j(B),m=D(B,"DIV",{class:!0});var vt=z(m);h=D(vt,"DIV",{class:!0});var Ut=z(h);_=D(Ut,"H1",{class:!0});var lt=z(_);A=J(lt,"Seznam ud\xE1lost\xED ("),g=J(lt,x),p=J(lt,"/"),E=J(lt,v),R=J(lt,")"),lt.forEach(T),Ut.forEach(T),b=j(vt),k=D(vt,"DIV",{class:!0});var xt=z(k);N=D(xt,"DIV",{class:!0});var Yt=z(N);C=J(Yt,"Hledat:"),Yt.forEach(T),M=j(xt),W=D(xt,"DIV",{});var Xt=z(W);K=D(Xt,"INPUT",{type:!0,class:!0}),Xt.forEach(T),xt.forEach(T),vt.forEach(T),y=j(B),L=D(B,"DIV",{class:!0});var Gt=z(L);for(let It=0;It<O.length;It+=1)O[It].l(Gt);Gt.forEach(T),B.forEach(T),this.h()},h(){document.title="Program | UTXO.22",P(s,"class","uppercase text-2xl font-bold"),P(o,"class","mt-2 text-sm"),P(_,"class","uppercase text-lg font-semibold"),P(h,"class","my-auto flex-1"),P(N,"class","my-auto"),P(K,"type","text"),P(K,"class","border rounded border-blue-web/30 px-1.5 py-1"),P(k,"class","my-auto flex gap-2 mt-2 sm:mt-0"),P(m,"class","mt-6 sm:flex"),P(L,"class","mt-4"),P(n,"class","relative mx-auto py-6 sm:py-10 px-6 max-w-6xl text-blue-web")},m(S,V){ht(S,e,V),ht(S,n,V),I(n,s),I(s,r),I(n,i),I(n,o),I(o,c),I(c,a),I(n,u),~l&&Q[l].m(n,null),I(n,d),I(n,m),I(m,h),I(h,_),I(_,A),I(_,g),I(_,p),I(_,E),I(_,R),I(m,b),I(m,k),I(k,N),I(N,C),I(k,M),I(k,W),I(W,K),Qt(K,t[2]),I(n,y),I(n,L);for(let B=0;B<O.length;B+=1)O[B].m(L,null);Y=!0,at||(gt=[Et(K,"input",t[10]),Et(K,"input",t[7])],at=!0)},p(S,[V]){let B=l;if(l=pt(S),l===B?~l&&Q[l].p(S,V):(f&&(jt(),ft(Q[B],1,1,()=>{Q[B]=null}),Zt()),~l?(f=Q[l],f?f.p(S,V):(f=Q[l]=yt[l](S),f.c()),ot(f,1),f.m(n,d)):f=null),(!Y||V&8)&&x!==(x=S[3].length+"")&&Tt(g,x),(!Y||V&2)&&v!==(v=S[1].spec.events.length+"")&&Tt(E,v),V&4&&K.value!==S[2]&&Qt(K,S[2]),V&10){G=S[3];let H;for(H=0;H<G.length;H+=1){const mt=de(S,G,H);O[H]?(O[H].p(mt,V),ot(O[H],1)):(O[H]=me(mt),O[H].c(),ot(O[H],1),O[H].m(L,null))}for(jt(),H=G.length;H<O.length;H+=1)st(H);Zt()}},i(S){if(!Y){ot(f);for(let V=0;V<G.length;V+=1)ot(O[V]);Y=!0}},o(S){ft(f),O=O.filter(Boolean);for(let V=0;V<O.length;V+=1)ft(O[V]);Y=!1},d(S){S&&T(e),S&&T(n),~l&&Q[l].d(),Ee(O,S),at=!1,nn(gt)}}}const Ii=!0;function mi(t){let e={};t.spec.events.forEach(r=>{!r.tags||r.tags.forEach(i=>{e[i]||(e[i]={text:i,count:0}),e[i].count+=1})});let n=Object.keys(e).map(r=>e[r]);const s=n.reduce((r,i)=>i.count>r?i.count:r,0);return n=n.map(r=>(r.count=Math.round(r.count/(s/40)),r)),n}function _i(t,e,n){let s,r,i,o,c,a;Ct(t,te,p=>n(1,o=p)),Ct(t,$t,p=>n(9,c=p)),Ct(t,on,p=>n(5,a=p));let u=null,l="";function f(p){return p?p.spec.events.reduce((v,E)=>v+(sn(E,p)||0),0):null}function d(p){const v=p.detail.path[0].innerHTML;return v&&Rt(`/program?tag=${v}`),!0}function m(p,v){const E=p.url.searchParams;let R=[];if(E.get("tag")&&R.push({type:"tag",title:`Tag: #${E.get("tag")}`,key:E.get("tag")}),E.get("track")){const b=v.spec.tracks.find(k=>k.id===E.get("track"));if(!b)return Rt("/program");R.push({type:"track",title:`Sekce: ${b.name}`,key:b.id})}return l&&R.push({type:"text",title:`Text: "${l}"`,key:l}),R}function h(p,v,E){if(!v||!E)return[];let R=E.spec.events;for(const b of p)if(b.type==="tag"&&(R=R.filter(k=>k.tags&&k.tags.includes(b.key))),b.type==="track"&&(R=R.filter(k=>k.track===b.key)),b.type==="text"){const k=u.search(b.key);k.length>0?R=k.map(N=>R.find(C=>C.id===N.item.id)).filter(N=>N):R=[]}return n(3,i=R.map(b=>b.id)),R}te.subscribe(p=>{u=new dt(p.spec.events,{threshold:.4,keys:[{name:"name",weight:10},{name:"description",weight:7},{name:"speakers",weight:5},{name:"speakersInfo.nickname",weight:5},{name:"track",weight:2},{name:"tags",weight:2},{name:"speakersInfo.bio",weight:1},{name:"speakersInfo.orgs",weight:1},{name:"speakersInfo.description",weight:1}]})}),$t.subscribe(()=>{n(2,l="")});function _(){n(0,r=m(c,o))}function A(){n(2,l=""),n(0,r=m(c,o)),Rt("/program")}function x(){l=this.value,n(2,l)}const g=(p,v)=>v.id===p;return t.$$.update=()=>{t.$$.dirty&2&&n(4,s=mi(o)),t.$$.dirty&2&&f(o),t.$$.dirty&514&&n(0,r=m(c,o)),t.$$.dirty&515&&h(r,c,o)},n(3,i=[]),[r,o,l,i,s,a,d,_,A,c,x,g]}class Ci extends _e{constructor(e){super();ye(this,e,_i,pi,ve,{})}}export{Ci as default,Ii as prerender};