import{S as ue,i as de,s as _e,e as w,c as D,a as T,d,b as k,g as S,t as C,k as j,h as N,m as M,F as u,J as pe,j as R,G as K,R as me,E as G,H as ve,l as F}from"../chunks/index-12086f65.js";import{b as ge}from"../chunks/stores-52bca5f8.js";import{c as be,l as X}from"../chunks/index-7f2b6b77.js";import{f as B}from"../chunks/index-921d3fdd.js";import"../chunks/index-3ca188ce.js";function Y(n,e,t){const l=n.slice();return l[6]=e[t],l}function z(n,e,t){const l=n.slice();return l[9]=e[t],l}function Q(n,e,t){const l=n.slice();return l[12]=e[t],l}function W(n,e,t){const l=n.slice();return l[15]=e[t][0],l[16]=e[t][1],l}function Z(n,e,t){const l=n.slice();return l[12]=e[t],l}function x(n,e,t){const l=n.slice();return l[21]=e[t],l[23]=t,l}function ee(n){let e,t=n[1].spec["schedule-candidates"],l=[];for(let s=0;sn.spec.speakers.find(l=>l.id===t).name).join(", ")}function ce(n,e){return e.type==="lightning-series"?n.spec.events.filter(t=>t.parent===e.id).map(t=>`${t.name} (${oe(n,t)})`).join(", "):oe(n,e)}function fe(n){return n.scheduleTimes.map(e=>{const[t,l]=e.split("/"),[s,r]=l.split("-"),a=n.dates[t-1];return{date:a,period:{start:new Date(`${a}T${s}`),end:new Date(`${a}T${r}`)}}})}function he(n,e){const t=n.spec.events.find(l=>l.id===e);if(!t)return null;switch(t.type){case"panel":t.color="bg-orange-400/20 hover:bg-orange-400/40";break;case"talk":t.color="bg-custom-green/20 hover:bg-custom-green/40";break;case"workshop":t.color="bg-custom-blue/20 hover:bg-custom-blue/40";break;case"campfire":t.color="bg-purple-400/20 hover:bg-purple-400/40";break;case"lightning-series":t.color="bg-yellow-400/20 hover:bg-yellow-400/40";break;default:t.color="bg-white hover:bg-gray-500/10"}return t}function He(n,e,t){let l,s;ve(n,ge,i=>t(1,s=i));let r=0;function a(i,b,_){let p=b.start;const V=b.end,A=[],E={};for(;be(p,V)===-1;){const c={};for(const v of _.spec.stages){if(E[v.id]>0){c[v.id]=null,E[v.id]--;continue}const g=i.schedule.find(f=>new Date(f.period.start).getTime()===new Date(p).getTime()&&f.stage===v.id);if(c[v.id]=g,g){const f=Math.floor((new Date(g.period.end).getTime()-new Date(g.period.start).getTime())/6e4/30);g.span=f,f>1&&(E[v.id]=f-1)}}A.push({title:B(p,"HH:mm"),stages:c}),p=new Date(p.getTime()+30*60*1e3)}return A}const o=i=>t(0,r=i),h=(i,b)=>`${b}=${Math.round(i.metrics[b]*1e3)/1e3}`;return n.$$.update=()=>{n.$$.dirty&3&&t(2,l=s?s.spec["schedule-candidates"][r]:null)},[r,s,l,a,o,h]}class $e extends ue{constructor(e){super();de(this,e,He,Te,_e,{})}}export{$e as default,Se as prerender};