var Je=Object.defineProperty;var Jt=Object.getOwnPropertySymbols;var Qe=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable;var Qt=(t,e,n)=>e in t?Je(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,at=(t,e)=>{for(var n in e||(e={}))Qe.call(e,n)&&Qt(t,n,e[n]);if(Jt)for(var n of Jt(e))Ze.call(e,n)&&Qt(t,n,e[n]);return t};import{S as ye,i as ve,s as xe,a0 as je,e as F,c as D,a as z,d as L,b as P,f as ht,g as ut,F as A,J as Et,E as kt,Y as $e,v as tn,O as en,l as Zt,q as Z,w as we,x as be,y as Me,o as it,B as Ee,p as Lt,k as $,t as q,R as nn,m as tt,h as J,_ as jt,j as Tt,G as ke,Z as rn,H as $t,n as Ot}from"../chunks/index-f961f29d.js";import{a as sn,c as on}from"../chunks/Event-d12d19a1.js";import{p as te}from"../chunks/stores-d7e9d57e.js";import{g as Ct}from"../chunks/navigation-0e6511d1.js";import{l as cn,b as ee}from"../chunks/stores-2b13be7a.js";import{g as an}from"../chunks/_commonjsHelpers-c771f69b.js";import"../chunks/Avatar-ae188221.js";import"../chunks/singletons-d1fb5791.js";import"../chunks/index-f562cf15.js";var ln={value:function(){}};function Ae(){for(var t=0,e=arguments.length,n={},s;t=0&&(s=n.slice(r+1),n=n.slice(0,r)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:s}})}bt.prototype=Ae.prototype={constructor:bt,on:function(t,e){var n=this._,s=un(t+"",n),r,i=-1,o=s.length;if(arguments.length<2){for(;++i0)for(var n=new Array(r),s=0,r,i;s>5,Mt=1<<11,gn=function(){var t=[256,256],e=mn,n=_n,s=yn,r=re,i=re,o=vn,c=xn,a=Se,l=[],u=1/0,h=pn("word","end"),p=null,g=Math.random,f={},v=Sn;f.canvas=function(d){return arguments.length?(v=st(d),f):v},f.start=function(){var d=E(v()),m=An((t[0]>>5)*t[1]),x=null,b=l.length,N=-1,C=[],S=l.map(function(I,M){return I.text=e.call(this,I,M),I.font=n.call(this,I,M),I.style=r.call(this,I,M),I.weight=i.call(this,I,M),I.rotate=o.call(this,I,M),I.size=~~s.call(this,I,M),I.padding=c.call(this,I,M),I}).sort(function(I,M){return M.size-I.size});return p&&clearInterval(p),p=setInterval(O,0),O(),f;function O(){for(var I=Date.now();Date.now()-I>1,M.y=t[1]*(g()+.5)>>1,wn(d,M,S,N),M.hasText&&_(m,M,x)&&(C.push(M),h.call("word",f,M),x?Mn(x,M):x=[{x:M.x+M.x0,y:M.y+M.y0},{x:M.x+M.x1,y:M.y+M.y1}],M.x-=t[0]>>1,M.y-=t[1]>>1)}N>=b&&(f.stop(),h.call("end",f,C,x))}},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=(_t<<5)/m,d.height=Mt/m;var x=d.getContext("2d");return x.fillStyle=x.strokeStyle="red",x.textAlign="center",{context:x,ratio:m}}function _(d,m,x){t[0],t[1];for(var b=m.x,N=m.y,C=Math.sqrt(t[0]*t[0]+t[1]*t[1]),S=a(t),O=g()<.5?1:-1,I=-O,M,W,U;(M=S(I+=O))&&(W=~~M[0],U=~~M[1],!(Math.min(Math.abs(W),Math.abs(U))>=C));)if(m.x=b+W,m.y=N+U,!(m.x+m.x0<0||m.y+m.y0<0||m.x+m.x1>t[0]||m.y+m.y1>t[1])&&(!x||!bn(m,d,t[0]))&&(!x||En(m,x))){for(var y=m.sprite,R=m.width>>5,B=t[0]>>5,rt=m.x-(R<<4),pt=rt&127,yt=32-pt,Q=m.y1-m.y0,gt=(m.y+m.y0)*B+(rt>>5),G,T=0;T>>pt:0);gt+=B}return delete m.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=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=In[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 mn(t){return t.text}function _n(){return"serif"}function re(){return"normal"}function yn(t){return Math.sqrt(t.value)}function vn(){return(~~(Math.random()*6)-3)*30}function xn(){return 1}function wn(t,e,n,s){if(!e.sprite){var r=t.context,i=t.ratio;r.clearRect(0,0,(_t<<5)/i,Mt/i);var o=0,c=0,a=0,l=n.length;for(--s;++s>5<<5,h=~~Math.max(Math.abs(v+E),Math.abs(v-E))}else u=u+31>>5<<5;if(h>a&&(a=h),o+u>=_t<<5&&(o=0,c+=a,a=0),c+h>=Mt)break;r.translate((o+(u>>1))/i,(c+(h>>1))/i),e.rotate&&r.rotate(e.rotate*Rt),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,(_t<<5)/i,Mt/i).data,m=[];--s>=0;)if(e=n[s],!!e.hasText){for(var u=e.width,x=u>>5,h=e.y1-e.y0,b=0;b>5),I=d[(c+S)*(_t<<5)+(o+b)<<2]?1<<31-b%32:0;m[O]|=I,N|=I}N?C=S:(e.y0++,h--,S--,c++)}e.y1=e.y0+C,e.sprite=m.slice(0,(e.y1-e.y0)*x)}}}function bn(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>>o:0))&e[l+p])return!0;l+=n}return!1}function Mn(t,e){var n=t[0],s=t[1];e.x+e.x0s.x&&(s.x=e.x+e.x1),e.y+e.y1>s.y&&(s.y=e.y+e.y1)}function En(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)),se.hasOwnProperty(e)?{space:se[e],local:t}:t}function Cn(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Pt&&e.documentElement.namespaceURI===Pt?e.createElement(t):e.createElementNS(n,t)}}function Rn(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ce(t){var e=Ie(t);return(e.local?Rn:Cn)(e)}function Nn(){}function Re(t){return t==null?Nn:function(){return this.querySelector(t)}}function Ln(t){typeof t!="function"&&(t=Re(t));for(var e=this._groups,n=e.length,s=new Array(n),r=0;r=m&&(m=d+1);!(b=E[m])&&++m=0;)(o=s[r])&&(i&&o.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(o,i),i=o);return this}function ir(t){t||(t=or);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;ie?1:t>=e?0:NaN}function cr(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function ar(){return Array.from(this)}function lr(){for(var t=this._groups,e=0,n=t.length;e1?this.each((e==null?xr:typeof e=="function"?br:wr)(t,e,n==null?"":n)):Er(this.node(),t)}function Er(t,e){return t.style.getPropertyValue(e)||Te(t).getComputedStyle(t,null).getPropertyValue(e)}function kr(t){return function(){delete this[t]}}function Ar(t,e){return function(){this[t]=e}}function Sr(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Ir(t,e){return arguments.length>1?this.each((e==null?kr:typeof e=="function"?Sr:Ar)(t,e)):this.node()[t]}function Oe(t){return t.trim().split(/^|\s+/)}function Ht(t){return t.classList||new Pe(t)}function Pe(t){this._node=t,this._names=Oe(t.getAttribute("class")||"")}Pe.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 Fe(t,e){for(var n=Ht(t),s=-1,r=e.length;++s=0&&(n=e.slice(s+1),e=e.slice(0,s)),{type:e,name:n}})}function ns(t){return function(){var e=this.__on;if(!!e){for(var n=0,s=-1,r=e.length,i;ny.countc("click",y),x=y=>c("mouseover",y),b=y=>c("mouseout",y),N=y=>c("mousemove",y);let C=null;async function S(){const y=[i,o].join(":");let R=null;return await cn.update(B=>(B&&B[y]?R=B[y]:(R=gn().size([i,o]).words(u).padding(_).rotate(()=>~~(Math.random()*v)+f).font(p).fontSize(rt=>rt.count+15),B[y]=R),B)),R}function O(y){fs("#wordcloud").append("svg").attr("width",C.size()[0]).attr("height",C.size()[1]).append("g").attr("transform","translate("+C.size()[0]/2+","+C.size()[1]/2+")").selectAll("text").data(y).enter().append("text").style("font-size",R=>R.size+"px").style("font-family",p).style("fill","#393F67").style("cursor","pointer").attr("text-anchor","middle").attr("transform",R=>"translate("+[R.x,R.y]+")rotate("+R.rotate+")").text(R=>R.text).on("click",m).on("mouseover",x).on("mouseout",b).on("mousemove",N)}async function I(){C=(await S()).on("end",O),C.start()}let M=!1,W=null;tn(async()=>{let y=0;setTimeout(()=>{W=setInterval(()=>{s!==y&&(I(),y=s)},500)},100),setTimeout(()=>{I(),y=s,n(3,M=!0)},0)}),en(()=>{clearTimeout(W)});function U(){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,g=y.maxFontSize),"minRotate"in y&&n(11,f=y.minRotate),"maxRotate"in y&&n(12,v=y.maxRotate),"scheme"in y&&n(13,E=y.scheme),"padding"in y&&n(14,_=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,M,o,r,l,u,h,p,g,f,v,E,_,U]}class Is extends ye{constructor(e){super();ve(this,e,Ss,As,xe,{width:6,words:7,height:8,font:9,maxFontSize:10,minRotate:11,maxRotate:12,scheme:13,padding:14,backgroundColor:0})}}function nt(t){return Array.isArray?Array.isArray(t):He(t)==="[object Array]"}const Cs=1/0;function Rs(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-Cs?"-0":e}function Ns(t){return t==null?"":Rs(t)}function et(t){return typeof t=="string"}function We(t){return typeof t=="number"}function Ls(t){return t===!0||t===!1||Ts(t)&&He(t)=="[object Boolean]"}function Be(t){return typeof t=="object"}function Ts(t){return Be(t)&&t!==null}function Y(t){return t!=null}function Nt(t){return!t.trim().length}function He(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Os="Incorrect 'index' type",Ps=t=>`Invalid value for key ${t}`,Fs=t=>`Pattern length exceeds max of ${t}.`,Ds=t=>`Missing ${t} property in key`,zs=t=>`Property 'weight' in key '${t}' must be a positive integer`,ae=Object.prototype.hasOwnProperty;class Vs{constructor(e){this._keys=[],this._keyMap={};let n=0;e.forEach(s=>{let r=Ke(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 Ke(t){let e=null,n=null,s=null,r=1;if(et(t)||nt(t))s=t,e=le(t),n=Ft(t);else{if(!ae.call(t,"name"))throw new Error(Ds("name"));const i=t.name;if(s=i,ae.call(t,"weight")&&(r=t.weight,r<=0))throw new Error(zs(i));e=le(i),n=Ft(i)}return{path:e,id:n,weight:r,src:s}}function le(t){return nt(t)?t:t.split(".")}function Ft(t){return nt(t)?t.join("."):t}function Ws(t,e){let n=[],s=!1;const r=(i,o,c)=>{if(!!Y(i))if(!o[c])n.push(i);else{let a=o[c];const l=i[a];if(!Y(l))return;if(c===o.length-1&&(et(l)||We(l)||Ls(l)))n.push(Ns(l));else if(nt(l)){s=!0;for(let u=0,h=l.length;ut.score===e.score?t.idx{this._keysMap[n.id]=s})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,et(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();et(e)?this._addString(e,n):this._addObject(e,n)}removeAt(e){this.records.splice(e,1);for(let n=e,s=this.size();n{let o=this.getFn(e,r.path);if(!!Y(o)){if(nt(o)){let c=[];const a=[{nestedArrIndex:-1,value:o}];for(;a.length;){const{nestedArrIndex:l,value:u}=a.pop();if(!!Y(u))if(et(u)&&!Nt(u)){let h={v:u,i:l,n:this.norm.get(u)};c.push(h)}else nt(u)&&u.forEach((h,p)=>{a.push({nestedArrIndex:p,value:h})})}s.$[i]=c}else if(!Nt(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 Ue(t,e,{getFn:n=w.getFn,fieldNormWeight:s=w.fieldNormWeight}={}){const r=new Kt({getFn:n,fieldNormWeight:s});return r.setKeys(t.map(Ke)),r.setSources(e),r.create(),r}function Gs(t,{getFn:e=w.getFn,fieldNormWeight:n=w.fieldNormWeight}={}){const{keys:s,records:r}=t,i=new Kt({getFn:e,fieldNormWeight:n});return i.setKeys(s),i.setIndexRecords(r),i}function wt(t,{errors:e=0,currentLocation:n=0,expectedLocation:s=0,distance:r=w.distance,ignoreLocation:i=w.ignoreLocation}={}){const o=e/t.length;if(i)return o;const c=Math.abs(s-n);return r?o+c/r:c?1:o}function qs(t=[],e=w.minMatchCharLength){let n=[],s=-1,r=-1,i=0;for(let o=t.length;i=e&&n.push([s,r]),s=-1)}return t[i-1]&&i-s>=e&&n.push([s,i-1]),n}const lt=32;function Js(t,e,n,{location:s=w.location,distance:r=w.distance,threshold:i=w.threshold,findAllMatches:o=w.findAllMatches,minMatchCharLength:c=w.minMatchCharLength,includeMatches:a=w.includeMatches,ignoreLocation:l=w.ignoreLocation}={}){if(e.length>lt)throw new Error(Fs(lt));const u=e.length,h=t.length,p=Math.max(0,Math.min(s,h));let g=i,f=p;const v=c>1||a,E=v?Array(h):[];let _;for(;(_=t.indexOf(e,f))>-1;){let C=wt(e,{currentLocation:_,expectedLocation:p,distance:r,ignoreLocation:l});if(g=Math.min(C,g),f=_+u,v){let S=0;for(;S=I;y-=1){let R=y-1,B=n[t.charAt(R)];if(v&&(E[R]=+!!B),W[y]=(W[y+1]<<1|1)&B,C&&(W[y]|=(d[y+1]|d[y])<<1|1|d[y+1]),W[y]&b&&(m=wt(e,{errors:C,currentLocation:R,expectedLocation:p,distance:r,ignoreLocation:l}),m<=g)){if(g=m,f=R,f<=p)break;I=Math.max(1,2*p-f)}}if(wt(e,{errors:C+1,currentLocation:p,expectedLocation:p,distance:r,ignoreLocation:l})>g)break;d=W}const N={isMatch:f>=0,score:Math.max(.001,m)};if(v){const C=qs(E,c);C.length?a&&(N.indices=C):N.isMatch=!1}return N}function Qs(t){let e={};for(let n=0,s=t.length;n{this.chunks.push({pattern:p,alphabet:Qs(p),startIndex:g})},h=this.pattern.length;if(h>lt){let p=0;const g=h%lt,f=h-g;for(;p{const{isMatch:_,score:d,indices:m}=Js(e,f,v,{location:r+E,distance:i,threshold:o,findAllMatches:c,minMatchCharLength:a,includeMatches:s,ignoreLocation:l});_&&(p=!0),h+=d,_&&m&&(u=[...u,...m])});let g={isMatch:p,score:p?h/this.chunks.length:1};return p&&s&&(g.indices=u),g}}class ot{constructor(e){this.pattern=e}static isMultiMatch(e){return ue(e,this.multiRegex)}static isSingleMatch(e){return ue(e,this.singleRegex)}search(){}}function ue(t,e){const n=t.match(e);return n?n[1]:null}class Zs extends ot{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 js extends ot{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 $s extends ot{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 ti extends ot{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 ei extends ot{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 ni extends ot{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 Xe extends ot{constructor(e,{location:n=w.location,threshold:s=w.threshold,distance:r=w.distance,includeMatches:i=w.includeMatches,findAllMatches:o=w.findAllMatches,minMatchCharLength:c=w.minMatchCharLength,isCaseSensitive:a=w.isCaseSensitive,ignoreLocation:l=w.ignoreLocation}={}){super(e);this._bitapSearch=new Ye(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 Ge extends ot{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 Dt=[Zs,Ge,$s,ti,ni,ei,js,Xe],fe=Dt.length,ri=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/,si="|";function ii(t,e={}){return t.split(si).map(n=>{let s=n.trim().split(ri).filter(i=>i&&!!i.trim()),r=[];for(let i=0,o=s.length;i!!(t[St.AND]||t[St.OR]),li=t=>!!t[Wt.PATH],ui=t=>!nt(t)&&Be(t)&&!Bt(t),he=t=>({[St.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=li(r);if(!o&&i.length>1&&!Bt(r))return s(he(r));if(ui(r)){const a=o?r[Wt.PATH]:i[0],l=o?r[Wt.PATTERN]:r[a];if(!et(l))throw new Error(Ps(a));const u={keyId:Ft(a),pattern:l};return n&&(u.searcher=Vt(l,e)),u}let c={children:[],operator:i[0]};return i.forEach(a=>{const l=r[a];nt(l)&&l.forEach(u=>{c.children.push(s(u))})}),c};return Bt(t)||(t=he(t)),s(t)}function fi(t,{ignoreFieldNorm:e=w.ignoreFieldNorm}){t.forEach(n=>{let s=1;n.matches.forEach(({key:r,norm:i,score:o})=>{const c=r?r.weight:null;s*=Math.pow(o===0&&c?Number.EPSILON:o,(c||1)*(e?1:i))}),n.score=s})}function hi(t,e){const n=t.matches;e.matches=[],Y(n)&&n.forEach(s=>{if(!Y(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 di(t,e){e.score=t.score}function pi(t,e,{includeMatches:n=w.includeMatches,includeScore:s=w.includeScore}={}){const r=[];return n&&r.push(hi),s&&r.push(di),t.map(i=>{const{idx:o}=i,c={item:e[o],refIndex:o};return r.length&&r.forEach(a=>{a(i,c)}),c})}class dt{constructor(e,n={},s){this.options=at(at({},w),n),this.options.useExtendedSearch,this._keyStore=new Vs(this.options.keys),this.setCollection(e,s)}setCollection(e,n){if(this._docs=e,n&&!(n instanceof Kt))throw new Error(Os);this._myIndex=n||Ue(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){!Y(e)||(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const n=[];for(let s=0,r=this._docs.length;s-1&&(a=a.slice(0,n)),pi(a,this._docs,{includeMatches:s,includeScore:r})}_searchStringList(e){const n=Vt(e,this.options),{records:s}=this._myIndex,r=[];return s.forEach(({v:i,i:o,n:c})=>{if(!Y(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=qe(e,this.options),s=(c,a,l)=>{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:l,item:a,matches:g}]:[]}const u=[];for(let h=0,p=c.children.length;h{if(Y(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=Vt(e,this.options),{keys:s,records:r}=this._myIndex,i=[];return r.forEach(({$:o,i:c})=>{if(!Y(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(!Y(n))return[];let r=[];if(nt(n))n.forEach(({v:i,i:o,n:c})=>{if(!Y(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}}dt.version="6.5.3";dt.createIndex=Ue;dt.parseIndex=Gs;dt.config=w;dt.parseQuery=qe;ai(ci);function de(t,e,n){const s=t.slice();return s[16]=e[n],s}function pe(t,e,n){const s=t.slice();return s[19]=e[n],s}function gi(t){let e,n,s;return n=new Is({props:{words:t[4]}}),n.$on("click",t[5]),{c(){e=F("div"),we(n.$$.fragment),this.h()},l(r){e=D(r,"DIV",{class:!0});var i=z(e);be(n.$$.fragment,i),i.forEach(L),this.h()},h(){P(e,"class","mt-6 lg:mt-10 flex sm:justify-center overflow-auto")},m(r,i){ut(r,e,i),Me(n,e,null),s=!0},p(r,i){const o={};i&16&&(o.words=r[4]),n.$set(o)},i(r){s||(Z(n.$$.fragment,r),s=!0)},o(r){it(n.$$.fragment,r),s=!1},d(r){r&&L(e),Ee(n)}}}function mi(t){let e,n,s,r,i,o,c,a,l,u,h,p,g=t[0],f=[];for(let v=0;v{r=null}),Lt())},i(i){s||(Z(r),s=!0)},o(i){it(r),s=!1},d(i){r&&r.d(i),i&&L(n)}}}function _i(t){let e,n,s,r,i,o,c,a,l,u,h,p,g,f,v,E,_=t[3].length+"",d,m,x=t[1].spec.events.length+"",b,N,C,S,O,I,M,W,U,y,R,B,rt,pt;const yt=[mi,gi],Q=[];function gt(k,V){return k[0].length>0?0:1}u=gt(t),h=Q[u]=yt[u](t);let G=t[1].spec.events,T=[];for(let k=0;kit(T[k],1,1,()=>{T[k]=null});return{c(){e=$(),n=F("section"),s=F("h1"),r=q("Program"),i=$(),o=F("div"),c=F("p"),a=q(`Program st\xE1le p\u0159ipravujeme, aktu\xE1ln\u011B je zde vyps\xE1na jenom \u010D\xE1st obsahu. \u010Casov\xFD rozpis bude zve\u0159ejn\u011Bn cca 2 t\xFDdny p\u0159ed konferenc\xED.`),l=$(),h.c(),p=$(),g=F("div"),f=F("div"),v=F("h1"),E=q("Seznam ud\xE1lost\xED ("),d=q(_),m=q("/"),b=q(x),N=q(")"),C=$(),S=F("div"),O=F("div"),I=q("Hledat:"),M=$(),W=F("div"),U=F("input"),y=$(),R=F("div");for(let k=0;k{Q[H]=null}),Lt(),h=Q[u],h?h.p(k,V):(h=Q[u]=yt[u](k),h.c()),Z(h,1),h.m(n,p)),(!B||V&8)&&_!==(_=k[3].length+"")&&Tt(d,_),(!B||V&2)&&x!==(x=k[1].spec.events.length+"")&&Tt(b,x),V&4&&U.value!==k[2]&&jt(U,k[2]),V&10){G=k[1].spec.events;let K;for(K=0;K{!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 vi(t,e,n){let s,r,i,o,c;$t(t,ee,_=>n(1,o=_)),$t(t,te,_=>n(8,c=_));let a=null,l="";function u(_){return _?_.spec.events.reduce((d,m)=>d+(on(m,_)||0),0):null}function h(_){const d=_.detail.path[0].innerHTML;return d&&Ct(`/program?tag=${d}`),!0}function p(_,d){const m=_.url.searchParams;let x=[];if(m.get("tag")&&x.push({type:"tag",title:`Tag: #${m.get("tag")}`,key:m.get("tag")}),m.get("track")){const b=d.spec.tracks.find(N=>N.id===m.get("track"));if(!b)return Ct("/program");x.push({type:"track",title:`Sekce: ${b.name}`,key:b.id})}return l&&x.push({type:"text",title:`Text: "${l}"`,key:l}),x}function g(_,d,m){if(!d||!m)return[];let x=m.spec.events;for(const b of _)if(b.type==="tag"&&(x=x.filter(N=>N.tags&&N.tags.includes(b.key))),b.type==="track"&&(x=x.filter(N=>N.track===b.key)),b.type==="text"){const N=a.search(b.key);if(N.length>0){const C=N.map(S=>S.item.id);x=x.filter(S=>C.includes(S.id))}}return n(3,i=x.map(b=>b.id)),x}ee.subscribe(_=>{a=new dt(_.spec.events,{minMatchCharLength:3,threshold:.3,keys:[{name:"name",weight:1},{name:"speakers",weight:1},{name:"description",weight:2},{name:"track",weight:3},{name:"tags",weight:3}]})}),te.subscribe(()=>{n(2,l="")});function f(){n(0,r=p(c,o))}function v(){n(2,l=""),n(0,r=p(c,o)),Ct("/program")}function E(){l=this.value,n(2,l)}return t.$$.update=()=>{t.$$.dirty&2&&n(4,s=yi(o)),t.$$.dirty&2&&u(o),t.$$.dirty&258&&n(0,r=p(c,o)),t.$$.dirty&259&&g(r,c,o)},n(3,i=[]),[r,o,l,i,s,h,f,v,c,E]}class Ni extends ye{constructor(e){super();ve(this,e,vi,_i,xe,{})}}export{Ni as default,Ri as prerender};