(async () => { const timers = await fetchTimers(); if (Array.isArray(timers[1]) && timers[1].length > 0) { window.location.href = './timer/'; } else { const urlCookie = await cookieStore.get("last_used_url"); if (urlCookie) { window.location.href = `./start/?machine=${urlCookie.value}`; } else { window.location.href = './status/' } } })();