utxo22-web/_app/pages/program.svelte-c7c0449d.js

6 řádky
48 KiB
JavaScript

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