import{S as wt,i as xt,s as bt,a0 as Ht,e as F,c as O,a as L,d as N,b as D,f as W,g as Z,F as P,J as Ut,E as lt,Z as Xt,v as Kt,O as Jt,w as At,x as St,y as kt,q as X,o as Q,B as Ct,t as J,k as H,h as Y,R as Yt,m as U,p as Zt,G as Qt,H as Gt,n as jt}from"../chunks/index-6191a390.js";import{a as $t,c as te}from"../chunks/Event-02d76521.js";import{b as ee}from"../chunks/stores-9e69a8a9.js";import{g as ne}from"../chunks/_commonjsHelpers-c771f69b.js";import"../chunks/Avatar-a90bc8ec.js";import"../chunks/Link-79f22491.js";import"../chunks/index-7ffe3f10.js";var re={value:function(){}};function Mt(){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}})}G.prototype=Mt.prototype={constructor:G,on:function(t,e){var n=this._,r=ie(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,j=1<<11,le=function(){var t=[256,256],e=ue,n=fe,r=he,i=ft,o=ft,s=me,a=de,c=Et,h=[],f=1/0,y=ce("word","end"),v=null,b=Math.random,l={},E=xe;l.canvas=function(u){return arguments.length?(E=V(u),l):E},l.start=function(){var u=z(E()),m=we((t[0]>>5)*t[1]),d=null,k=h.length,_=-1,S=[],w=h.map(function(x,g){return x.text=e.call(this,x,g),x.font=n.call(this,x,g),x.style=i.call(this,x,g),x.weight=o.call(this,x,g),x.rotate=s.call(this,x,g),x.size=~~r.call(this,x,g),x.padding=a.call(this,x,g),x}).sort(function(x,g){return g.size-x.size});return v&&clearInterval(v),v=setInterval(A,0),A(),l;function A(){for(var x=Date.now();Date.now()-x>1,g.y=t[1]*(b()+.5)>>1,ye(u,g,w,_),g.hasText&&M(m,g,d)&&(S.push(g),y.call("word",l,g),d?pe(d,g):d=[{x:g.x+g.x0,y:g.y+g.y0},{x:g.x+g.x1,y:g.y+g.y1}],g.x-=t[0]>>1,g.y-=t[1]>>1)}_>=k&&(l.stop(),y.call("end",l,S,d))}},l.stop=function(){return v&&(clearInterval(v),v=null),l};function z(u){u.width=u.height=1;var m=Math.sqrt(u.getContext("2d").getImageData(0,0,1,1).data.length>>2);u.width=(K<<5)/m,u.height=j/m;var d=u.getContext("2d");return d.fillStyle=d.strokeStyle="red",d.textAlign="center",{context:d,ratio:m}}function M(u,m,d){t[0],t[1];for(var k=m.x,_=m.y,S=Math.sqrt(t[0]*t[0]+t[1]*t[1]),w=c(t),A=b()<.5?1:-1,x=-A,g,I,q;(g=w(x+=A))&&(I=~~g[0],q=~~g[1],!(Math.min(Math.abs(I),Math.abs(q))>=S));)if(m.x=k+I,m.y=_+q,!(m.x+m.x0<0||m.y+m.y0<0||m.x+m.x1>t[0]||m.y+m.y1>t[1])&&(!d||!_e(m,u,t[0]))&&(!d||ve(m,d))){for(var p=m.sprite,C=m.width>>5,ot=t[0]>>5,st=m.x-(C<<4),at=st&127,Wt=32-at,Bt=m.y1-m.y0,ct=(m.y+m.y0)*ot+(st>>5),tt,et=0;et>>at:0);ct+=ot}return delete m.sprite,!0}return!1}return l.timeInterval=function(u){return arguments.length?(f=u==null?1/0:u,l):f},l.words=function(u){return arguments.length?(h=u,l):h},l.size=function(u){return arguments.length?(t=[+u[0],+u[1]],l):t},l.font=function(u){return arguments.length?(n=V(u),l):n},l.fontStyle=function(u){return arguments.length?(i=V(u),l):i},l.fontWeight=function(u){return arguments.length?(o=V(u),l):o},l.rotate=function(u){return arguments.length?(s=V(u),l):s},l.text=function(u){return arguments.length?(e=V(u),l):e},l.spiral=function(u){return arguments.length?(c=be[u]||u,l):c},l.fontSize=function(u){return arguments.length?(r=V(u),l):r},l.padding=function(u){return arguments.length?(a=V(u),l):a},l.random=function(u){return arguments.length?(b=u,l):b},l.on=function(){var u=y.on.apply(y,arguments);return u===y?l:u},l};function ue(t){return t.text}function fe(){return"serif"}function ft(){return"normal"}function he(t){return Math.sqrt(t.value)}function me(){return(~~(Math.random()*6)-3)*30}function de(){return 1}function ye(t,e,n,r){if(!e.sprite){var i=t.context,o=t.ratio;i.clearRect(0,0,(K<<5)/o,j/o);var s=0,a=0,c=0,h=n.length;for(--r;++r>5<<5,y=~~Math.max(Math.abs(E+z),Math.abs(E-z))}else f=f+31>>5<<5;if(y>c&&(c=y),s+f>=K<<5&&(s=0,a+=c,c=0),a+y>=j)break;i.translate((s+(f>>1))/o,(a+(y>>1))/o),e.rotate&&i.rotate(e.rotate*nt),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=y,e.xoff=s,e.yoff=a,e.x1=f>>1,e.y1=y>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,s+=f}for(var u=i.getImageData(0,0,(K<<5)/o,j/o).data,m=[];--r>=0;)if(e=n[r],!!e.hasText){for(var f=e.width,d=f>>5,y=e.y1-e.y0,k=0;k>5),x=u[(a+w)*(K<<5)+(s+k)<<2]?1<<31-k%32:0;m[A]|=x,_|=x}_?S=w:(e.y0++,y--,w--,a++)}e.y1=e.y0+S,e.sprite=m.slice(0,(e.y1-e.y0)*d)}}}function _e(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,h=(t.y+t.y0)*n+(o>>5),f,y=0;y>>s:0))&e[h+v])return!0;h+=n}return!1}function pe(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 ve(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)),ht.hasOwnProperty(e)?{space:ht[e],local:t}:t}function Ae(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===rt&&e.documentElement.namespaceURI===rt?e.createElement(t):e.createElementNS(n,t)}}function Se(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Pt(t){var e=zt(t);return(e.local?Se:Ae)(e)}function ke(){}function Nt(t){return t==null?ke:function(){return this.querySelector(t)}}function Ce(t){typeof t!="function"&&(t=Nt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=m&&(m=u+1);!(k=z[m])&&++m=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function $e(t){t||(t=tn);function e(y,v){return y&&v?t(y.__data__,v.__data__):!y-!v}for(var n=this._groups,r=n.length,i=new Array(r),o=0;oe?1:t>=e?0:NaN}function en(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function nn(){return Array.from(this)}function rn(){for(var t=this._groups,e=0,n=t.length;e1?this.each((e==null?yn:typeof e=="function"?pn:_n)(t,e,n==null?"":n)):gn(this.node(),t)}function gn(t,e){return t.style.getPropertyValue(e)||Rt(t).getComputedStyle(t,null).getPropertyValue(e)}function wn(t){return function(){delete this[t]}}function xn(t,e){return function(){this[t]=e}}function bn(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function An(t,e){return arguments.length>1?this.each((e==null?wn:typeof e=="function"?bn:xn)(t,e)):this.node()[t]}function It(t){return t.trim().split(/^|\s+/)}function it(t){return t.classList||new Ft(t)}function Ft(t){this._node=t,this._names=It(t.getAttribute("class")||"")}Ft.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 Ot(t,e){for(var n=it(t),r=-1,i=e.length;++r=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function Gn(t){return function(){var e=this.__on;if(!!e){for(var n=0,r=-1,i=e.length,o;np.counta("click",p),d=p=>a("mouseover",p),k=p=>a("mouseout",p),_=p=>a("mousemove",p);function S(){return le().size([o,s]).words(f).padding(M).rotate(()=>~~(Math.random()*E)+l).font(v).fontSize(p=>p.count+15)}let w=null;function A(p){mt("#wordcloud").selectAll("*").remove(),mt("#wordcloud").append("svg").attr("width",w.size()[0]).attr("height",w.size()[1]).append("g").attr("transform","translate("+w.size()[0]/2+","+w.size()[1]/2+")").selectAll("text").data(p).enter().append("text").style("font-size",C=>C.size+"px").style("font-family",v).style("fill","#393F67").attr("text-anchor","middle").attr("transform",C=>"translate("+[C.x,C.y]+")rotate("+C.rotate+")").text(C=>C.text).on("click",m).on("mouseover",d).on("mouseout",k).on("mousemove",_)}function x(){w=S().on("end",A),w.start()}let g=!1,I=null;Kt(async()=>{let p=0;setTimeout(()=>{I=setInterval(()=>{r!==p&&(x(),p=r)},100)},0),setTimeout(()=>{n(3,g=!0)},100)}),Jt(()=>{clearTimeout(I)});function q(){n(5,i=window.innerWidth),n(1,r=window.outerWidth)}return t.$$set=p=>{"width"in p&&n(6,h=p.width),"words"in p&&n(7,f=p.words),"height"in p&&n(8,y=p.height),"font"in p&&n(9,v=p.font),"maxFontSize"in p&&n(10,b=p.maxFontSize),"minRotate"in p&&n(11,l=p.minRotate),"maxRotate"in p&&n(12,E=p.maxRotate),"scheme"in p&&n(13,z=p.scheme),"padding"in p&&n(14,M=p.padding),"backgroundColor"in p&&n(0,u=p.backgroundColor)},t.$$.update=()=>{t.$$.dirty&2&&n(2,o=r>1152?1e3:r>500?r-100:r-50),t.$$.dirty&4&&n(4,s=o<800?400:o<500?600:250)},n(1,r=0),n(5,i=0),[u,r,o,g,s,i,h,f,y,v,b,l,E,z,M,q]}class br extends wt{constructor(e){super();xt(this,e,xr,wr,bt,{width:6,words:7,height:8,font:9,maxFontSize:10,minRotate:11,maxRotate:12,scheme:13,padding:14,backgroundColor:0})}}function pt(t,e,n){const r=t.slice();return r[4]=e[n],r}function vt(t){let e,n;return e=new $t({props:{event:t[4]}}),{c(){At(e.$$.fragment)},l(r){St(e.$$.fragment,r)},m(r,i){kt(e,r,i),n=!0},p(r,i){const o={};i&1&&(o.event=r[4]),e.$set(o)},i(r){n||(X(e.$$.fragment,r),n=!0)},o(r){Q(e.$$.fragment,r),n=!1},d(r){Ct(e,r)}}}function Ar(t){let e,n,r,i,o,s,a,c,h,f,y,v,b,l,E,z,M,u;v=new br({props:{words:t[1]}}),v.$on("click",kr);let m=t[0].spec.events.filter(gt),d=[];for(let _=0;_Q(d[_],1,1,()=>{d[_]=null});return{c(){e=J("o"),n=H(),r=F("section"),i=F("h1"),o=J("Program"),s=H(),a=F("div"),c=F("p"),h=J(`Program st\xE1le p\u0159ipravujeme, aktu\xE1ln\u011B je zde vyps\xE1no zhruba 40% obsahu. \u010Casov\xFD rozpis bude zve\u0159ejn\u011Bn cca 2 t\xFDdny p\u0159ed konferenc\xED.`),f=H(),y=F("div"),At(v.$$.fragment),b=H(),l=F("h1"),E=J("Seznam ud\xE1lost\xED"),z=H(),M=F("div");for(let _=0;_{!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)),n}function kr(t){console.log(t.detail.path[0].innerHTML)}const gt=t=>!t.parent;function Cr(t,e,n){let r,i;Gt(t,ee,s=>n(0,i=s));function o(s){return s?s.spec.events.reduce((a,c)=>a+(te(c,s)||0),0):null}return t.$$.update=()=>{t.$$.dirty&1&&n(1,r=Sr(i)),t.$$.dirty&1&&o(i)},[i,r]}class Ir extends wt{constructor(e){super();xt(this,e,Cr,Ar,bt,{})}}export{Ir as default,Rr as prerender};