utxo22-web/_app/pages/program.svelte-068337d9.js

4 řádky
50 KiB
JavaScript

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