var vitalsCache = null; export function loadVitalsData() { if (vitalsCache) return Promise.resolve(vitalsCache); return fetch('/data/calculators/vitals.json', { credentials: 'same-origin' }) .then(function(response) { if (!response.ok) throw new Error('Failed to load vitals data'); return response.json(); }) .then(function(data) { vitalsCache = data.ageGroups || {}; return vitalsCache; }); } export function renderVitalsResult(v) { return '' + '