// data.mjs — the single source of truth for "The Charge That Crept".
// The page inlines a copy of this data (verify.mjs §6 asserts the copy is identical),
// the OG card draws from this file, and every citation lives here.
// Check trail: facts.md (pillars A–F). Units: value_esu / err_esu in 10⁻¹⁰ esu.
//
// errType — the convention THE SOURCE ITSELF used (never silently converted):
//   'lim' = stated limits of uncertainty (Millikan 1913: explicitly NOT a probable error)
//   'pe'  = probable error (0.6745σ)   'sd' = standard error / standard uncertainty
//   '3sd' = three-standard-deviation "error limit" (the 1963 NBS/NAS-NRC sheet)
//   'q'   = as quoted in the per-DOI compilation; convention unstated
// cls — 'oil' (oil-drop measurement) · 'xray' (X-ray/crystal route) · 'review'
//   (a review/adjustment's recommended value) · 'exact' (the 2019 definition).
// value_C (10⁻¹⁹ C) is carried where the source stated one; verify.mjs cross-checks
// the conversion at 2.99792458 (exact statC bridge; pre-SI-era rounding ≤ 0.002 flagged).

// ── the modern anchors (exact) ──────────────────────────────────────────────
export const MODERN = {
  e_coulomb: 1.602176634e-19,   // C — EXACT since the 2019 SI redefinition (26th CGPM)
  c_cm_s: 2.99792458e10,        // cm/s — exact (1983 definition of the metre)
  e_esu_e10: 4.80320471,        // = e_coulomb × (c_cm_s/10) / 1e-10, recomputed in verify §1
};

// ── Millikan's primary numbers (facts.md pillar A) ──────────────────────────
export const MILLIKAN = {
  value_esu: 4.774,             // "We have then finally: e = 4.774 ± .009 × 10⁻¹⁰" (1913, p.138)
  err_esu: 0.009,               // explicitly "estimated limits of uncertainty rather than
                                //   the so-called 'probable errors'" (1913, Table XXI caveat)
  err_esu_1917: 0.005,          // The Electron (1917) / Nobel lecture — the tightened ±
  value_esu_1911: 4.891,        // his own earlier oil-drop value (Phys. Rev. 32, 349, 1911)
  cite: 'R. A. Millikan, Phys. Rev. 2, 109–143 (1913)',
};

// ── the viscosity record (facts.md pillar B), in 10⁻⁴ poise at 23 °C ────────
export const VISCOSITY = {
  millikan_e4: 1.8240,          // his adopted mean of five determinations (1913 §2)
  millikan_later_e4: 1.8227,    // the figure the Kellström-correction literature quotes
                                //   (Harrington 1923 / Millikan's ~1930 adoption)
  kellstrom_e4: 1.8348,         // Kellström 1935–37, ±0.0030 (rotating cylinder, Uppsala)
  kellstrom_err_e4: 0.0030,
  kellstrom_e_lo: 4.815,        // secondary sources print his oil-drop recompute as
  kellstrom_e_hi: 4.819,        //   4.816–4.818 (±0.011–0.013); no single canonical figure —
                                //   the page reports the spread, never one number (facts B1)
  modern_e4: 1.835,             // dry air, 23 °C — interpolated from Lemmon & Jacobsen 2004
                                //   (18.5230 μPa·s at 300 K) and Kadoya et al. 1985 (18.57 at
                                //   300 K); named as an interpolation, spread ~0.3%
  millikan_frac_low: 0.006,     // (1.835−1.824)/1.835 ≈ 0.60% — how low his η was
  dial_lo: 1.8180,              // slider range for instrument ii, 10⁻⁴ poise
  dial_hi: 1.8400,
  cites: [
    'G. Kellström, Nature 136, 682 (1935); Phys. Rev. 50, 190 (1936); Phil. Mag. (7) 23, 313–338 (1937)',
    'W. N. Bond, Proc. Phys. Soc. 49, 205 (1937); J. A. Bearden, Phys. Rev. 56, 1023 (1939)',
    'E. W. Lemmon & R. T Jacobsen, Int. J. Thermophys. 25, 21–69 (2004), Table V',
    'Y. Kadoya, N. Matsunaga & A. Nagashima, J. Phys. Chem. Ref. Data 14, 947–970 (1985), Table 8',
  ],
};

// ── the historical series (facts.md pillar E) ───────────────────────────────
// Measurements (cls oil/xray) show the SPLIT; reviews (cls review) show the CREEP.
// 'x' is a plot-only jitter for same-year points; 'conf' is the research confidence.
// Birge's 1941/1944 rows were EXCLUDED — could not be verified (facts.md E-note).
export const SERIES = [
  { year: 1913, source: 'Millikan (oil drop)', value_esu: 4.774, err_esu: 0.009, errType: 'lim', cls: 'oil',
    method: 'oil drop', cite: 'Phys. Rev. 2, 109 (1913)', conf: 'VP',
    note: 'the anchor; error stated as “limits of uncertainty,” explicitly not a probable error' },
  { year: 1917, source: 'Millikan, The Electron', value_esu: 4.774, err_esu: 0.005, errType: 'pe', cls: 'oil',
    method: 'oil drop (re-determination)', cite: 'The Electron (1917); Phil. Mag. 34, 1', conf: 'VS',
    note: 'same value, tighter error' },
  { year: 1928, source: 'Wadlund', value_esu: 4.774, err_esu: 0.007, errType: 'q', cls: 'xray',
    method: 'X-ray / crystal', value_C: 1.5924, err_C: 0.0023,
    cite: 'Phys. Rev. 32 (1928); via Hill’s per-DOI compilation', conf: 'VS',
    note: 'the earliest X-ray value — still at the oil-drop level' },
  { year: 1929, x: 1928.7, source: 'Bäcklin', value_esu: 4.7931, err_esu: 0.0144, errType: 'q', cls: 'xray',
    method: 'X-ray / crystal', value_C: 1.5988, err_C: 0.0048,
    cite: 'Nature 123 (1929); via Hill', conf: 'VS',
    note: 'the first high X-ray value — down-weighted by Birge’s 1929 review' },
  { year: 1929, x: 1929.4, source: 'Birge (first review)', value_esu: 4.770, err_esu: 0.005, errType: 'pe', cls: 'review',
    method: 'review — recommended value', cite: 'Rev. Mod. Phys. 1, 1 (1929)', conf: 'VS',
    note: 'BELOW Millikan — the anchor pulled from both sides; rejected Bäcklin’s high X-ray value' },
  { year: 1931, source: 'Bearden', value_esu: 4.8060, err_esu: 0.0030, errType: 'q', cls: 'xray',
    method: 'X-ray, ruled gratings', value_C: 1.6031, err_C: 0.0010,
    cite: 'Phys. Rev. 37 (1931); via Hill', conf: 'VS',
    note: 'the jump — already at (slightly past) the modern value, resisted for half a decade' },
  { year: 1935, x: 1934.5, source: 'Bäcklin', value_esu: 4.8051, err_esu: 0.0024, errType: 'q', cls: 'xray',
    method: 'X-ray / crystal', value_C: 1.6028, err_C: 0.0008, cite: 'Nature 135 (1935); via Hill', conf: 'VS' },
  { year: 1935, source: 'Bearden', value_esu: 4.8036, err_esu: 0.0005, errType: 'q', cls: 'xray',
    method: 'X-ray, ruled gratings', value_C: 1.6023, err_C: 0.00017, cite: 'Phys. Rev. 48 (1935); via Hill', conf: 'VS' },
  { year: 1935, x: 1935.5, source: 'Söderman', value_esu: 4.8057, err_esu: 0.0030, errType: 'q', cls: 'xray',
    method: 'X-ray / crystal', value_C: 1.6030, err_C: 0.0010, cite: 'Nature 135 (1935); via Hill', conf: 'VS' },
  { year: 1936, x: 1936.1, source: 'Kellström', value_esu: 4.8180, err_esu: 0.0111, errType: 'q', cls: 'oil',
    method: 'oil drop, re-measured viscosity', value_C: 1.6071, err_C: 0.0037,
    cite: 'Phys. Rev. 50, 190 (1936); via Hill', conf: 'VS',
    note: 'Millikan’s method with the corrected air — lands high, error bar containing the modern value' },
  { year: 1936, x: 1936.6, source: 'Bäcklin & Flemberg', value_esu: 4.7517, err_esu: 0.0081, errType: 'q', cls: 'oil',
    method: 'oil drop', value_C: 1.5850, err_C: 0.0027,
    cite: 'Nature 137 (1936); via Hill', conf: 'VS',
    note: 'an oil-drop value BELOW Millikan, the same year — the method still scattered low' },
  { year: 1939, source: 'Dunnington (survey)', value_esu: 4.8025, err_esu: 0.0004, errType: 'pe', cls: 'review',
    method: 'review — recommended value', cite: 'Rev. Mod. Phys. 11, 65 (1939)', conf: 'VS',
    note: 'the step, consolidated: the recommendation moves to the X-ray neighbourhood' },
  { year: 1947, source: 'DuMond & Cohen', value_esu: 4.80214, err_esu: 0.00047, errType: 'pe', cls: 'review',
    method: 'least-squares adjustment', cite: 'Rev. Mod. Phys. 20, 82 (1948)', conf: 'VP' },
  { year: 1950, source: 'DuMond & Cohen (Dec. 1950)', value_esu: 4.80223, err_esu: 0.00007, errType: 'pe', cls: 'review',
    method: 'least-squares adjustment', cite: 'Phys. Rev. 82, 555 (1951)', conf: 'VP',
    note: 'the worst overconfidence in the series — the truth lies ~14 of these quoted probable errors away' },
  { year: 1952, source: 'DuMond & Cohen', value_esu: 4.80288, err_esu: 0.00021, errType: 'sd', cls: 'review',
    method: 'least-squares adjustment', cite: 'Rev. Mod. Phys. 25, 691 (1953)', conf: 'VS' },
  { year: 1955, source: 'Cohen, DuMond, Layton & Rollett', value_esu: 4.80286, err_esu: 0.00009, errType: 'sd', cls: 'review',
    method: 'least-squares adjustment', cite: 'Rev. Mod. Phys. 27, 363 (1955)', conf: 'VS' },
  { year: 1963, source: 'NAS-NRC (Cohen & DuMond)', value_esu: 4.80298, err_esu: 0.00020, errType: '3sd', cls: 'review',
    method: 'recommended value', cite: 'NBS Tech. News Bull. Oct. 1963; Rev. Mod. Phys. 37, 537 (1965)', conf: 'VP',
    note: 'the ±0.00020 is a THREE-σ “error limit” (often misread as 1σ)' },
  { year: 1969, source: 'Taylor, Parker & Langenberg', value_esu: 4.80324988, err_esu: 0.000021, errType: 'sd', cls: 'review',
    method: 'least-squares adjustment', value_C: 1.6021917, err_C: 0.0000070,
    cite: 'Rev. Mod. Phys. 41, 375 (1969)', conf: 'VS',
    note: 'the overshoot — now ABOVE the eventual exact value' },
  { year: 1973, source: 'CODATA (Cohen & Taylor)', value_esu: 4.80324238, err_esu: 0.0000138, errType: 'sd', cls: 'review',
    method: 'CODATA adjustment', value_C: 1.6021892, err_C: 0.0000046,
    cite: 'J. Phys. Chem. Ref. Data 2, 663 (1973)', conf: 'VS' },
  { year: 1986, source: 'CODATA', value_esu: 4.80320680, err_esu: 0.0000015, errType: 'sd', cls: 'review',
    method: 'CODATA adjustment', value_C: 1.60217733, err_C: 0.00000049,
    cite: 'Rev. Mod. Phys. 59, 1121 (1987)', conf: 'VP' },
  { year: 1998, source: 'CODATA (Mohr & Taylor)', value_esu: 4.80320420, err_esu: 0.00000019, errType: 'sd', cls: 'review',
    method: 'CODATA adjustment', value_C: 1.602176462, err_C: 0.000000063,
    cite: 'Rev. Mod. Phys. 72, 351 (2000)', conf: 'VP' },
  { year: 2006, source: 'CODATA (Mohr, Taylor & Newell)', value_esu: 4.80320427, err_esu: 0.00000012, errType: 'sd', cls: 'review',
    method: 'CODATA adjustment', value_C: 1.602176487, err_C: 0.000000040,
    cite: 'Rev. Mod. Phys. 80, 633 (2008)', conf: 'VP',
    note: 'still 3.7 of its own standard uncertainties from the eventual exact value (the watt-balance vs silicon tension)' },
  { year: 2014, source: 'CODATA', value_esu: 4.80320467, err_esu: 0.0000000294, errType: 'sd', cls: 'review',
    method: 'CODATA adjustment', value_C: 1.6021766208, err_C: 0.0000000098,
    cite: 'Rev. Mod. Phys. 88, 035009 (2016)', conf: 'VP' },
  { year: 2019, source: 'SI redefinition', value_esu: 4.80320471, err_esu: 0, errType: 'sd', cls: 'exact',
    method: 'defined exactly', value_C: 1.602176634, err_C: 0,
    cite: '9th SI Brochure (26th CGPM, 2019)', conf: 'VP',
    note: 'e is now exact by definition; the esu bridge factor is conventional post-2019' },
];
