${this.windowLabel(w.days)}
${w.count ?? 0} event${w.count === 1 ? '' : 's'}
${
domains.length > 0
? html`
${domains.map(
([dom, n]) => html`
${humanize(dom)} ${n}
`,
)}
`
: nothing
}
${
top.length > 0
? html`${top.map((e) => this.renderEvent(e))}
`
: html`No notable events.
`
}
`;
}
private renderEvent(e: DigestEvent) {
const sig = typeof e.significance === 'number' ? e.significance : 0;
return html`