`;
}
if (Array.isArray(s.basis) && s.basis.length) {
html += `
Основание:
`;
html += `
`;
for (const b of s.basis) {
const parts = [];
if (b.author) parts.push('автор: ' + esc(b.author));
if (b.resident) parts.push('резидент: ' + esc(b.resident));
if (b.created_at) parts.push(fmtInstant(b.created_at));
if (b.id) parts.push('#' + esc(b.id));
html += `