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