import{S as Ut,i as Xt,s as Jt,e as z,c as N,a as P,d as k,b as I,f as Pt,g as wt,E as Rt,Y as he,v as de,w as Kt,x as Yt,y as Qt,q as lt,o as mt,B as Zt,k as H,t as Q,R as me,m as U,h as Z,F as y,j as gt,p as ve,G as _e,H as pe,n as ye}from"../chunks/index-e45cd9d1.js";import{a as ge,c as xe}from"../chunks/Event-500bdf0e.js";import{b as we}from"../chunks/stores-adaa4006.js";import{g as be}from"../chunks/_commonjsHelpers-c771f69b.js";import"../chunks/Avatar-f71fd69a.js";import"../chunks/index-c650cd5f.js";var Ae={value:function(){}};function Gt(){for(var t=0,e=arguments.length,n={},r;t=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}vt.prototype=Gt.prototype={constructor:vt,on:function(t,e){var n=this._,r=Se(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r>5,_t=1<<11,De=function(){var t=[256,256],e=Ie,n=ze,r=Ne,i=Vt,o=Vt,s=Pe,a=Re,c=jt,l=[],f=1/0,v=Ce("word","end"),p=null,w=Math.random,d={},M=Be;d.canvas=function(u){return arguments.length?(M=j(u),d):M},d.start=function(){var u=V(M()),m=Le((t[0]>>5)*t[1]),b=null,h=l.length,A=-1,T=[],R=l.map(function(g,_){return g.text=e.call(this,g,_),g.font=n.call(this,g,_),g.style=i.call(this,g,_),g.weight=o.call(this,g,_),g.rotate=s.call(this,g,_),g.size=~~r.call(this,g,_),g.padding=a.call(this,g,_),g}).sort(function(g,_){return _.size-g.size});return p&&clearInterval(p),p=setInterval(L,0),L(),d;function L(){for(var g=Date.now();Date.now()-g>1,_.y=t[1]*(w()+.5)>>1,Te(u,_,R,A),_.hasText&&O(m,_,b)&&(T.push(_),v.call("word",d,_),b?Fe(b,_):b=[{x:_.x+_.x0,y:_.y+_.y0},{x:_.x+_.x1,y:_.y+_.y1}],_.x-=t[0]>>1,_.y-=t[1]>>1)}A>=h&&(d.stop(),v.call("end",d,T,b))}},d.stop=function(){return p&&(clearInterval(p),p=null),d};function V(u){u.width=u.height=1;var m=Math.sqrt(u.getContext("2d").getImageData(0,0,1,1).data.length>>2);u.width=(ut<<5)/m,u.height=_t/m;var b=u.getContext("2d");return b.fillStyle=b.strokeStyle="red",b.textAlign="center",{context:b,ratio:m}}function O(u,m,b){t[0],t[1];for(var h=m.x,A=m.y,T=Math.sqrt(t[0]*t[0]+t[1]*t[1]),R=c(t),L=w()<.5?1:-1,g=-L,_,J,G;(_=R(g+=L))&&(J=~~_[0],G=~~_[1],!(Math.min(Math.abs(J),Math.abs(G))>=T));)if(m.x=h+J,m.y=A+G,!(m.x+m.x0<0||m.y+m.y0<0||m.x+m.x1>t[0]||m.y+m.y1>t[1])&&(!b||!Ve(m,u,t[0]))&&(!b||Oe(m,b))){for(var st=m.sprite,B=m.width>>5,rt=t[0]>>5,it=m.x-(B<<4),K=it&127,W=32-K,at=m.y1-m.y0,Y=(m.y+m.y0)*rt+(it>>5),$,tt=0;tt>>K:0);Y+=rt}return delete m.sprite,!0}return!1}return d.timeInterval=function(u){return arguments.length?(f=u==null?1/0:u,d):f},d.words=function(u){return arguments.length?(l=u,d):l},d.size=function(u){return arguments.length?(t=[+u[0],+u[1]],d):t},d.font=function(u){return arguments.length?(n=j(u),d):n},d.fontStyle=function(u){return arguments.length?(i=j(u),d):i},d.fontWeight=function(u){return arguments.length?(o=j(u),d):o},d.rotate=function(u){return arguments.length?(s=j(u),d):s},d.text=function(u){return arguments.length?(e=j(u),d):e},d.spiral=function(u){return arguments.length?(c=We[u]||u,d):c},d.fontSize=function(u){return arguments.length?(r=j(u),d):r},d.padding=function(u){return arguments.length?(a=j(u),d):a},d.random=function(u){return arguments.length?(w=u,d):w},d.on=function(){var u=v.on.apply(v,arguments);return u===v?d:u},d};function Ie(t){return t.text}function ze(){return"serif"}function Vt(){return"normal"}function Ne(t){return Math.sqrt(t.value)}function Pe(){return(~~(Math.random()*6)-3)*30}function Re(){return 1}function Te(t,e,n,r){if(!e.sprite){var i=t.context,o=t.ratio;i.clearRect(0,0,(ut<<5)/o,_t/o);var s=0,a=0,c=0,l=n.length;for(--r;++r>5<<5,v=~~Math.max(Math.abs(M+V),Math.abs(M-V))}else f=f+31>>5<<5;if(v>c&&(c=v),s+f>=ut<<5&&(s=0,a+=c,c=0),a+v>=_t)break;i.translate((s+(f>>1))/o,(a+(v>>1))/o),e.rotate&&i.rotate(e.rotate*xt),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=f,e.height=v,e.xoff=s,e.yoff=a,e.x1=f>>1,e.y1=v>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,s+=f}for(var u=i.getImageData(0,0,(ut<<5)/o,_t/o).data,m=[];--r>=0;)if(e=n[r],!!e.hasText){for(var f=e.width,b=f>>5,v=e.y1-e.y0,h=0;h>5),g=u[(a+R)*(ut<<5)+(s+h)<<2]?1<<31-h%32:0;m[L]|=g,A|=g}A?T=R:(e.y0++,v--,R--,a++)}e.y1=e.y0+T,e.sprite=m.slice(0,(e.y1-e.y0)*b)}}}function Ve(t,e,n){n>>=5;for(var r=t.sprite,i=t.width>>5,o=t.x-(i<<4),s=o&127,a=32-s,c=t.y1-t.y0,l=(t.y+t.y0)*n+(o>>5),f,v=0;v>>s:0))&e[l+p])return!0;l+=n}return!1}function Fe(t,e){var n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function Oe(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0e[0].y&&t.y+t.y0=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Ft.hasOwnProperty(e)?{space:Ft[e],local:t}:t}function He(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===bt&&e.documentElement.namespaceURI===bt?e.createElement(t):e.createElementNS(n,t)}}function Ue(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function te(t){var e=$t(t);return(e.local?Ue:He)(e)}function Xe(){}function ee(t){return t==null?Xe:function(){return this.querySelector(t)}}function Je(t){typeof t!="function"&&(t=ee(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=m&&(m=u+1);!(h=V[m])&&++m=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function xn(t){t||(t=wn);function e(v,p){return v&&p?t(v.__data__,p.__data__):!v-!p}for(var n=this._groups,r=n.length,i=new Array(r),o=0;oe?1:t>=e?0:NaN}function bn(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function An(){return Array.from(this)}function Sn(){for(var t=this._groups,e=0,n=t.length;e1?this.each((e==null?Tn:typeof e=="function"?Fn:Vn)(t,e,n==null?"":n)):qn(this.node(),t)}function qn(t,e){return t.style.getPropertyValue(e)||ie(t).getComputedStyle(t,null).getPropertyValue(e)}function Ln(t){return function(){delete this[t]}}function Bn(t,e){return function(){this[t]=e}}function Wn(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Hn(t,e){return arguments.length>1?this.each((e==null?Ln:typeof e=="function"?Wn:Bn)(t,e)):this.node()[t]}function oe(t){return t.trim().split(/^|\s+/)}function At(t){return t.classList||new se(t)}function se(t){this._node=t,this._names=oe(t.getAttribute("class")||"")}se.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 ae(t,e){for(var n=At(t),r=-1,i=e.length;++r=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function pr(t){return function(){var e=this.__on;if(!!e){for(var n=0,r=-1,i=e.length,o;nh.countr("click",h),V=h=>r("mouseover",h),O=h=>r("mouseout",h),u=h=>r("mousemove",h),m=De().size([s,a]).words(o).padding(w).rotate(()=>~~(Math.random()*v)+f).font(c).fontSize(h=>h.count+15).on("end",b);function b(h){Er("#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(h).enter().append("text").style("font-size",A=>A.size+"px").style("font-family",c).style("fill","#393F67").attr("text-anchor","middle").attr("transform",A=>"translate("+[A.x,A.y]+")rotate("+A.rotate+")").text(A=>A.text).on("click",M).on("mouseover",V).on("mouseout",O).on("mousemove",u)}return de(async()=>{m.start()}),t.$$set=h=>{"words"in h&&n(1,o=h.words),"width"in h&&n(2,s=h.width),"height"in h&&n(3,a=h.height),"font"in h&&n(4,c=h.font),"maxFontSize"in h&&n(5,l=h.maxFontSize),"minRotate"in h&&n(6,f=h.minRotate),"maxRotate"in h&&n(7,v=h.maxRotate),"scheme"in h&&n(8,p=h.scheme),"padding"in h&&n(9,w=h.padding),"backgroundColor"in h&&n(0,d=h.backgroundColor)},[d,o,s,a,c,l,f,v,p,w]}class Hr extends Ut{constructor(e){super();Xt(this,e,Wr,Br,Jt,{words:1,width:2,height:3,font:4,maxFontSize:5,minRotate:6,maxRotate:7,scheme:8,padding:9,backgroundColor:0})}}function Bt(t,e,n){const r=t.slice();return r[4]=e[n],r}function Wt(t){let e,n;return e=new ge({props:{event:t[4]}}),{c(){Kt(e.$$.fragment)},l(r){Yt(e.$$.fragment,r)},m(r,i){Qt(e,r,i),n=!0},p(r,i){const o={};i&1&&(o.event=r[4]),e.$set(o)},i(r){n||(lt(e.$$.fragment,r),n=!0)},o(r){mt(e.$$.fragment,r),n=!1},d(r){Zt(e,r)}}}function Ur(t){let e,n,r,i,o,s,a,c,l,f,v,p=t[0].spec.events.length+"",w,d,M,V,O,u,m,b=t[0].spec.speakers.length+"",h,A,T,R,L,g,_,J=Math.round(t[1]/60*100)/100+"",G,st,B,rt,it,K,W,at,Y,$,tt,F,et;W=new Hr({props:{words:t[2]}}),W.$on("click",Jr);let nt=t[0].spec.events.filter(Ht),S=[];for(let x=0;xmt(S[x],1,1,()=>{S[x]=null});return{c(){e=H(),n=z("section"),r=z("h1"),i=Q("Program"),o=H(),s=z("div"),a=Q(`Program st\xE1le p\u0159ipravujeme. Jeho kone\u010Dn\xE1 podoba bude zve\u0159ejn\u011Bna p\xE1r t\xFDdn\u016F p\u0159ed konferenc\xED.`),c=H(),l=z("div"),f=z("div"),v=z("div"),w=Q(p),d=H(),M=z("div"),V=Q("ud\xE1lost\xED"),O=H(),u=z("div"),m=z("div"),h=Q(b),A=H(),T=z("div"),R=Q("p\u0159edn\xE1\u0161ej\xEDc\xEDch"),L=H(),g=z("div"),_=z("div"),G=Q(J),st=H(),B=z("div"),rt=Q("hodin obsahu"),it=H(),K=z("div"),Kt(W.$$.fragment),at=H(),Y=z("h1"),$=Q("Seznam ud\xE1lost\xED"),tt=H(),F=z("div");for(let x=0;x{!i.tags||i.tags.forEach(o=>{e[o]||(e[o]={text:o,count:0}),e[o].count+=1})});let n=Object.keys(e).map(i=>e[i]);const r=n.reduce((i,o)=>o.count>i?o.count:i,0);return n=n.map(i=>(i.count=Math.round(i.count/(r/40)),i)),console.log(n),n}function Jr(t){console.log(t.detail.path[0].innerHTML)}const Ht=t=>!t.parent;function Kr(t,e,n){let r,i,o;pe(t,we,a=>n(0,o=a));function s(a){return a?a.spec.events.reduce((c,l)=>c+(xe(l,a)||0),0):null}return t.$$.update=()=>{t.$$.dirty&1&&n(2,r=Xr(o)),t.$$.dirty&1&&n(1,i=s(o))},[o,i,r]}class ei extends Ut{constructor(e){super();Xt(this,e,Kr,Ur,Jt,{})}}export{ei as default,ti as prerender};