/* Lazy classic chunk; its executing singleton stays pinned until reload. */ (window.YT ||= {}).StatsView = { render: async function renderStats() { try { await Lazy.load('feature:stats'); } catch (error) { toast(error.message); return; } if (view.type !== 'stats') return; StatsTrack.flush(); els.listTitle.textContent = 'Stats'; resetListHeaderExtras(); els.listActions.innerHTML = ''; els.status.classList.add('hidden'); const c = els.cards; const S = StatsCore.summarize(data.stats); if (!S.totalPlays && S.totalSec < 60) { c.innerHTML = `
Stats start counting now — a song counts as played after 30 seconds. They sync with your online profile.
| Day | Minutes |
|---|---|
| ${fmtDay(x.date)} | ${x.minutes} |
| No listening in this window. | |