require(typeofp.reviewed==='string'&&/^\d{4}-\d{2}-\d{2}$/.test(p.reviewed)&&Number.isFinite(Date.parse(p.reviewed))&&newDate(p.reviewed).toISOString().slice(0,10)===p.reviewed,'profile.reviewed: expected a valid ISO date');
for(constkeyof['github','gitea','school','qualification'])require(safeHTTPS(p[key]),`profile.${key}: expected a safe HTTPS URL`);
require(/^https:\/\/github\.com\/[A-Za-z0-9_-]+$/.test(p.github),'profile.github: expected a GitHub profile');
require(/^https:\/\/codealvin\.xyz\/[A-Za-z0-9_-]+$/.test(p.gitea),'profile.gitea: expected a Gitea profile');
require(/^https:\/\/github\.com\/[A-Za-z0-9_-]+\/[A-Za-z0-9_.-]+$/.test(p.school)&&!['.','..'].includes(p.school.split('/').pop()),'profile.school: expected a GitHub repository');
require(typeofsettings.revision==='string'&&/^[a-f0-9]{40}$/.test(settings.revision),'revision: expected a full lowercase commit SHA');
require(Array.isArray(settings.processes),'processes: expected an array');
require(typeofprocess.code==='string'&&/^B[1-9]\d*-K[1-9]\d*-W[1-9]\d*$/.test(process.code)&&!codes.has(process.code),'process.code: invalid or duplicate code');
codes.add(process.code);
require(pair(process.title)&&pair(process.description),'process: provide Dutch and English title and description');
for(constkeyof['stack','nodes'])require(Array.isArray(p[key])&&p[key].length>0&&p[key].every(v=>typeofv==='string'&&v.trim()),`${p.id}.${key}: provide text entries`);
require(p.nodes.length===3,`${p.id}.nodes: provide three diagram labels`);
require(r&&/^https:\/\/(github\.com|codealvin\.xyz)\/[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(r.url)&&/^[a-f0-9]{40}$/.test(r.revision)&&['github','gitea'].includes(r.forge)&&(r.forge==='github')===r.url.startsWith('https://github.com/'),`${p.id}.repository: provide a supported repository and pinned commit`);
}
require(path(p.path)||(p.repository&&p.path===''),`${p.id}.path: provide a repository-relative path`);
require(p.setting===undefined||pair(p.setting),`${p.id}.setting: provide Dutch and English text`);