{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "eased-fixtures",
  "title": "Industry fixtures",
  "description": "Realistic, deterministic sample data per industry (AI, devtools, finance, crypto, SaaS, legal, e-commerce, real estate, health, HR), seeded and anchored to a fixed now, with Intl formatters. One file per industry, typed with the Eased cores.",
  "dependencies": [
    "diff"
  ],
  "registryDependencies": [
    "https://eased.dev/r/eased-tokens.json",
    "https://eased.dev/r/eased-thinking-core.json",
    "https://eased.dev/r/eased-flow-core.json",
    "https://eased.dev/r/eased-timeline-core.json",
    "https://eased.dev/r/eased-calendar-core.json",
    "https://eased.dev/r/eased-doc-core.json",
    "https://eased.dev/r/eased-realtime-core.json"
  ],
  "files": [
    {
      "path": "src/registry/eased/_primitives/fixtures/ai.ts",
      "content": "/** AI / agents: one product, \"Relay\", an agent workspace. */\nimport type { FlowGraph } from \"../flow-core/types\";\nimport type { Step, ToolState } from \"../thinking-core/types\";\nimport type { TimelineEvent } from \"../timeline-core/types\";\nimport { createRng, roundTo } from \"../realtime-core/rng\";\nimport { daysAgo, hoursAgo, lastDays, minutesAgo, series } from \"./shared\";\n\nexport type AiModel = { id: string; name: string; provider: string; contextTokens: number; inputPerMTok: number; outputPerMTok: number; p50LatencyMs: number; tier: \"frontier\" | \"fast\" | \"open\" };\n\nexport const aiModels: AiModel[] = [\n  { id: \"atlas-3-pro\", name: \"Atlas 3 Pro\", provider: \"Northwind AI\", contextTokens: 400_000, inputPerMTok: 5, outputPerMTok: 25, p50LatencyMs: 1840, tier: \"frontier\" },\n  { id: \"atlas-3-mini\", name: \"Atlas 3 Mini\", provider: \"Northwind AI\", contextTokens: 200_000, inputPerMTok: 0.8, outputPerMTok: 4, p50LatencyMs: 610, tier: \"fast\" },\n  { id: \"kestrel-2\", name: \"Kestrel 2\", provider: \"Fieldline\", contextTokens: 128_000, inputPerMTok: 2.5, outputPerMTok: 10, p50LatencyMs: 1120, tier: \"frontier\" },\n  { id: \"orca-70b\", name: \"Orca 70B\", provider: \"Open weights\", contextTokens: 64_000, inputPerMTok: 0.6, outputPerMTok: 0.6, p50LatencyMs: 890, tier: \"open\" },\n];\n\nconst t0 = minutesAgo(3);\n/** A finished research run: 7 steps, 45s, one with sub-steps. Feed it to Step Rail or `summarizeSteps`. */\nexport const agentRun: Step[] = [\n  { id: \"plan\", label: \"Planned the research\", status: \"complete\", detail: \"4 questions\", startedAt: t0, endedAt: t0 + 2_100 },\n  {\n    id: \"search\",\n    label: \"Searched the web\",\n    status: \"complete\",\n    detail: \"14 sources\",\n    startedAt: t0 + 2_100,\n    endedAt: t0 + 11_400,\n    steps: [\n      { id: \"search-1\", label: \"EU AI Act enforcement timeline\", status: \"complete\", startedAt: t0 + 2_100, endedAt: t0 + 6_000 },\n      { id: \"search-2\", label: \"GPAI code of practice signatories\", status: \"complete\", startedAt: t0 + 6_000, endedAt: t0 + 11_400 },\n    ],\n  },\n  { id: \"read\", label: \"Read 6 pages\", status: \"complete\", detail: \"digital-strategy.ec.europa.eu\", startedAt: t0 + 11_400, endedAt: t0 + 24_800 },\n  { id: \"query\", label: \"Queried the policy database\", status: \"complete\", detail: \"212 rows\", startedAt: t0 + 24_800, endedAt: t0 + 29_300 },\n  { id: \"draft\", label: \"Drafted the brief\", status: \"complete\", detail: \"1,180 words\", startedAt: t0 + 29_300, endedAt: t0 + 39_900 },\n  { id: \"cite\", label: \"Checked citations\", status: \"complete\", detail: \"11 of 11 verified\", startedAt: t0 + 39_900, endedAt: t0 + 43_200 },\n  { id: \"done\", label: \"Shared with Priya Raman\", status: \"complete\", startedAt: t0 + 43_200, endedAt: t0 + 45_000 },\n];\n\n/** One tool call of a live run: present-tense `label` while it runs, `doneLabel` once it lands. */\nexport type LiveToolCall = {\n  id: string;\n  name: string;\n  label: string;\n  doneLabel: string;\n  detail: string;\n  input: Record<string, unknown>;\n  output?: unknown;\n  /** Set when the call fails; the run may retry with the next call. */\n  errorText?: string;\n  count?: number;\n  countLabel?: string;\n};\n\n/** One step of a live run, before the clock stamps it: a console script activates and settles these in order. */\nexport type LiveStep = {\n  id: string;\n  label: string;\n  doneLabel: string;\n  /** The second line once the step settles. */\n  detail?: string;\n  /** Tokens the step adds to the run's usage when it settles. */\n  tokens: { input: number; output: number };\n  tools?: LiveToolCall[];\n};\n\n/**\n * The research run above as it happens, for Agent Run Console: the same seven steps in the\n * present tense, with each step's tool calls (one fails and is retried), the reasoning before\n * the first step, per-step token usage and the brief it produces. Timing belongs to the demo.\n */\nexport const liveRun = {\n  id: \"run_8f3k2\",\n  title: \"EU AI Act brief for legal\",\n  model: aiModels[0],\n  startedBy: \"Priya Raman\",\n  thinking: {\n    lines: [\"Reading the request\", \"Choosing sources\"],\n    reasoning:\n      \"Legal wants a two-page brief on GPAI obligations under the EU AI Act: the enforcement dates and who has signed the code of practice. Plan four questions, search for the timeline and the signatory list, read the Commission’s own pages rather than summaries, query the policy database for counts by country, and verify every citation before sharing.\",\n  },\n  steps: [\n    { id: \"plan\", label: \"Planning the research\", doneLabel: \"Planned the research\", detail: \"4 questions\", tokens: { input: 1_840, output: 320 } },\n    {\n      id: \"search\",\n      label: \"Searching the web\",\n      doneLabel: \"Searched the web\",\n      detail: \"14 sources\",\n      tokens: { input: 6_210, output: 480 },\n      tools: [\n        { id: \"s1\", name: \"web_search\", label: \"Searching\", doneLabel: \"Searched\", detail: \"“EU AI Act enforcement timeline”\", input: { query: \"EU AI Act GPAI enforcement timeline\" }, output: { results: 8, top: \"digital-strategy.ec.europa.eu\" }, count: 8, countLabel: \"sources\" },\n        { id: \"s2\", name: \"web_search\", label: \"Searching\", doneLabel: \"Searched\", detail: \"“GPAI code of practice signatories”\", input: { query: \"GPAI code of practice signatories\" }, output: { results: 6, top: \"artificialintelligenceact.eu\" }, count: 6, countLabel: \"sources\" },\n      ],\n    },\n    {\n      id: \"read\",\n      label: \"Reading 6 pages\",\n      doneLabel: \"Read 6 pages\",\n      detail: \"digital-strategy.ec.europa.eu\",\n      tokens: { input: 18_900, output: 640 },\n      tools: [\n        { id: \"r1\", name: \"fetch_page\", label: \"Reading\", doneLabel: \"Read\", detail: \"digital-strategy.ec.europa.eu/en/policies/ai-pact\", input: { url: \"https://digital-strategy.ec.europa.eu/en/policies/ai-pact\" }, output: { words: 4_812, title: \"AI Pact\" }, count: 4_812, countLabel: \"words\" },\n        { id: \"r2\", name: \"fetch_page\", label: \"Reading\", doneLabel: \"Read\", detail: \"artificialintelligenceact.eu/implementation-timeline\", input: { url: \"https://artificialintelligenceact.eu/implementation-timeline\" }, output: { words: 2_140, title: \"Implementation timeline\" }, count: 2_140, countLabel: \"words\" },\n      ],\n    },\n    {\n      id: \"query\",\n      label: \"Querying the policy database\",\n      doneLabel: \"Queried the policy database\",\n      detail: \"212 rows · 1 retry\",\n      tokens: { input: 2_300, output: 410 },\n      tools: [\n        { id: \"q1\", name: \"sql_query\", label: \"Querying\", doneLabel: \"Queried\", detail: \"signatories by country\", input: { sql: \"select country, count(*) from signatories group by 1\" }, errorText: \"permission denied for table signatories\" },\n        { id: \"q2\", name: \"sql_query\", label: \"Retrying\", doneLabel: \"Queried\", detail: \"signatories_public by country\", input: { sql: \"select country, count(*) from signatories_public group by 1\" }, output: { rows: 212 }, count: 212, countLabel: \"rows\" },\n      ],\n    },\n    { id: \"draft\", label: \"Drafting the brief\", doneLabel: \"Drafted the brief\", detail: \"1,180 words\", tokens: { input: 4_100, output: 2_950 } },\n    {\n      id: \"cite\",\n      label: \"Checking citations\",\n      doneLabel: \"Checked citations\",\n      detail: \"11 of 11 verified\",\n      tokens: { input: 3_600, output: 210 },\n      tools: [{ id: \"c1\", name: \"verify_citations\", label: \"Verifying\", doneLabel: \"Verified\", detail: \"11 citations\", input: { document: \"briefs/eu-ai-act-gpai.md\" }, output: { verified: 11, failed: 0 }, count: 11, countLabel: \"verified\" }],\n    },\n    {\n      id: \"share\",\n      label: \"Sharing with Priya Raman\",\n      doneLabel: \"Shared with Priya Raman\",\n      tokens: { input: 900, output: 60 },\n      tools: [{ id: \"sh1\", name: \"share_document\", label: \"Sharing\", doneLabel: \"Shared\", detail: \"priya@relay.dev\", input: { path: \"briefs/eu-ai-act-gpai.md\", with: [\"priya@relay.dev\"] }, output: { url: \"https://relay.dev/d/8f3k2\" } }],\n    },\n  ] as LiveStep[],\n  /** What the run produces, shown once it completes. */\n  result: {\n    title: \"AI Act brief: GPAI obligations\",\n    path: \"briefs/eu-ai-act-gpai.md\",\n    words: 1_180,\n    citations: 11,\n    excerpt:\n      \"Obligations for general-purpose AI providers apply from 2 August 2025; the Commission’s enforcement powers follow a year later. Twenty-six providers have signed the code of practice, with the largest holdout now in talks. Three obligations touch Relay directly: transparency documentation, a copyright policy and training-data summaries.\",\n  },\n};\n\n/** A finished tool call, as its row shows it. */\nexport type RecordedToolCall = {\n  id: string;\n  name: string;\n  label: string;\n  detail: string;\n  state: ToolState;\n  durationMs: number;\n  count?: number;\n  countLabel?: string;\n  input: Record<string, unknown>;\n  output?: unknown;\n  errorText?: string;\n};\n\n/** A settled step with its tool calls and token usage, timed on the fixture clock. */\nexport type RecordedStep = Step & { tokens: { input: number; output: number }; tools?: RecordedToolCall[] };\n\nexport type RunStatus = \"completed\" | \"failed\" | \"stopped\";\n\n/** A run as the console lists it: who ran what, when, with its full trace and what came of it. */\nexport type RunRecord = {\n  id: string;\n  title: string;\n  status: RunStatus;\n  model: AiModel;\n  startedBy: string;\n  startedAt: number;\n  endedAt: number;\n  thinking: { startedAt: number; endedAt: number; reasoning: string };\n  steps: RecordedStep[];\n  usage: { inputTokens: number; outputTokens: number; cost: number };\n  result?: { title: string; detail: string; excerpt: string };\n  error?: string;\n};\n\nconst costOf = (input: number, output: number, model: AiModel) => roundTo((input * model.inputPerMTok + output * model.outputPerMTok) / 1_000_000, 2);\n\n/** Lays steps end to end from `start`, each `seconds` long, so their times agree with their details. */\nfunction lay(start: number, items: (Omit<RecordedStep, \"startedAt\" | \"endedAt\"> & { seconds: number })[]): RecordedStep[] {\n  let t = start;\n  return items.map(({ seconds, ...step }) => {\n    const laid = { ...step, startedAt: t, endedAt: t + seconds * 1000 };\n    t = laid.endedAt;\n    return laid;\n  });\n}\n\nfunction record(\n  r: Omit<RunRecord, \"endedAt\" | \"steps\" | \"thinking\" | \"usage\"> & { thinkSeconds: number; reasoning: string; steps: (Omit<RecordedStep, \"startedAt\" | \"endedAt\"> & { seconds: number })[] },\n): RunRecord {\n  const { thinkSeconds, reasoning, steps: items, ...rest } = r;\n  const thinkEnd = r.startedAt + thinkSeconds * 1000;\n  const steps = lay(thinkEnd, items);\n  const inputTokens = steps.reduce((s, x) => s + x.tokens.input, 0);\n  const outputTokens = steps.reduce((s, x) => s + x.tokens.output, 0);\n  return {\n    ...rest,\n    thinking: { startedAt: r.startedAt, endedAt: thinkEnd, reasoning },\n    steps,\n    endedAt: steps[steps.length - 1].endedAt!,\n    usage: { inputTokens, outputTokens, cost: costOf(inputTokens, outputTokens, r.model) },\n  };\n}\n\n/** Earlier runs for the console's list, newest first; `liveRun` goes above them while it runs. Mixed endings. */\nexport const runs: RunRecord[] = [\n  record({\n    id: \"run_7c1d9\",\n    title: \"Q3 churn drivers by plan\",\n    status: \"completed\",\n    model: aiModels[0],\n    startedBy: \"Priya Raman\",\n    startedAt: hoursAgo(2),\n    thinkSeconds: 3,\n    reasoning: \"Churn rose on the Growth plan in Q3. Query churn by plan and cohort, compare against Q2, and look for the step where cancellations cluster before writing anything.\",\n    steps: [\n      { id: \"plan\", label: \"Planned the analysis\", status: \"complete\", detail: \"3 questions\", seconds: 2.4, tokens: { input: 1_620, output: 290 } },\n      {\n        id: \"query\",\n        label: \"Queried churn by plan\",\n        status: \"complete\",\n        detail: \"1,840 rows\",\n        seconds: 6.1,\n        tokens: { input: 2_980, output: 350 },\n        tools: [{ id: \"q1\", name: \"sql_query\", label: \"Queried\", detail: \"churn_events, Q3 by plan\", state: \"done\", durationMs: 1_210, count: 1_840, countLabel: \"rows\", input: { sql: \"select plan, cohort, count(*) from churn_events where quarter = '2026-Q3' group by 1, 2\" }, output: { rows: 1_840 } }],\n      },\n      {\n        id: \"compare\",\n        label: \"Compared Q3 cohorts with Q2\",\n        status: \"complete\",\n        detail: \"3 charts\",\n        seconds: 13.8,\n        tokens: { input: 6_400, output: 820 },\n        tools: [{ id: \"c1\", name: \"run_code\", label: \"Ran\", detail: \"cohort_compare.py\", state: \"done\", durationMs: 9_400, count: 3, countLabel: \"charts\", input: { file: \"cohort_compare.py\" }, output: { charts: 3, largestDelta: \"+2.1 pts, Growth, month 2\" } }],\n      },\n      { id: \"draft\", label: \"Drafted the summary\", status: \"complete\", detail: \"640 words\", seconds: 9.7, tokens: { input: 3_300, output: 950 } },\n    ],\n    result: {\n      title: \"Q3 churn: three drivers\",\n      detail: \"640 words · 3 charts\",\n      excerpt: \"Growth-plan churn rose 2.1 points in Q3, almost all of it in the second month after upgrade. Accounts that never invited a teammate churned at three times the rate of those that did; the price change explains less than half a point.\",\n    },\n  }),\n  record({\n    id: \"run_6b0a4\",\n    title: \"Refactor billing webhooks\",\n    status: \"failed\",\n    model: aiModels[0],\n    startedBy: \"Tomás Herrera\",\n    startedAt: hoursAgo(5),\n    thinkSeconds: 2,\n    reasoning: \"The Stripe handlers retry on every 5xx and re-process invoice.paid. Key each write on the event id so a retry is a no-op, then run the suite.\",\n    steps: [\n      {\n        id: \"read\",\n        label: \"Read the webhook handlers\",\n        status: \"complete\",\n        detail: \"2 files\",\n        seconds: 4.2,\n        tokens: { input: 5_100, output: 240 },\n        tools: [\n          { id: \"r1\", name: \"read_file\", label: \"Read\", detail: \"api/webhooks/stripe.ts\", state: \"done\", durationMs: 310, count: 312, countLabel: \"lines\", input: { path: \"api/webhooks/stripe.ts\" }, output: { lines: 312 } },\n          { id: \"r2\", name: \"read_file\", label: \"Read\", detail: \"lib/billing/invoices.ts\", state: \"done\", durationMs: 220, count: 148, countLabel: \"lines\", input: { path: \"lib/billing/invoices.ts\" }, output: { lines: 148 } },\n        ],\n      },\n      { id: \"plan\", label: \"Planned the change\", status: \"complete\", detail: \"Idempotency key on the event id\", seconds: 3.1, tokens: { input: 2_200, output: 410 } },\n      {\n        id: \"edit\",\n        label: \"Edited 2 files\",\n        status: \"complete\",\n        detail: \"+38 −12\",\n        seconds: 7.9,\n        tokens: { input: 7_900, output: 2_100 },\n        tools: [{ id: \"e1\", name: \"edit_file\", label: \"Edited\", detail: \"api/webhooks/stripe.ts\", state: \"done\", durationMs: 640, input: { path: \"api/webhooks/stripe.ts\", hunks: 3 }, output: { added: 38, removed: 12 } }],\n      },\n      {\n        id: \"test\",\n        label: \"Ran the test suite\",\n        status: \"error\",\n        detail: \"4 of 112 failed\",\n        seconds: 41,\n        tokens: { input: 7_600, output: 1_200 },\n        tools: [{ id: \"t1\", name: \"run_tests\", label: \"Ran\", detail: \"pnpm test billing\", state: \"error\", durationMs: 38_600, input: { command: \"pnpm test billing\" }, errorText: \"4 of 112 tests failed: invoice.paid is handled twice when a retry lands before the first write commits.\" }],\n      },\n    ],\n    error: \"4 of 112 tests failed: invoice.paid is handled twice when a retry lands before the first write commits.\",\n  }),\n  record({\n    id: \"run_5e9f1\",\n    title: \"Vendor DPA comparison\",\n    status: \"stopped\",\n    model: aiModels[0],\n    startedBy: \"Priya Raman\",\n    startedAt: daysAgo(1, 16, 12),\n    thinkSeconds: 2,\n    reasoning: \"Compare the three vendor DPAs on sub-processor notice, breach timelines and audit rights; flag anything weaker than our standard terms.\",\n    steps: [\n      { id: \"plan\", label: \"Planned the comparison\", status: \"complete\", detail: \"3 vendors, 6 clauses\", seconds: 1.9, tokens: { input: 1_400, output: 260 } },\n      {\n        id: \"read\",\n        label: \"Read 3 DPAs\",\n        status: \"complete\",\n        detail: \"2 of 3 read\",\n        seconds: 11.2,\n        tokens: { input: 7_900, output: 310 },\n        tools: [\n          { id: \"d1\", name: \"fetch_page\", label: \"Read\", detail: \"northwind.ai/legal/dpa\", state: \"done\", durationMs: 2_900, count: 6_120, countLabel: \"words\", input: { url: \"https://northwind.ai/legal/dpa\" }, output: { words: 6_120 } },\n          { id: \"d2\", name: \"fetch_page\", label: \"Read\", detail: \"fieldline.com/dpa\", state: \"done\", durationMs: 2_140, count: 4_480, countLabel: \"words\", input: { url: \"https://fieldline.com/dpa\" }, output: { words: 4_480 } },\n          { id: \"d3\", name: \"fetch_page\", label: \"Read\", detail: \"orca-weights.org/dpa\", state: \"denied\", durationMs: 0, input: { url: \"https://orca-weights.org/dpa\" } },\n        ],\n      },\n      { id: \"compare\", label: \"Comparing clauses\", status: \"skipped\", detail: \"Stopped by Priya Raman\", seconds: 0.6, tokens: { input: 600, output: 40 } },\n    ],\n  }),\n  record({\n    id: \"run_4d8e0\",\n    title: \"Onboarding email sequence\",\n    status: \"completed\",\n    model: aiModels[1],\n    startedBy: \"Mei Okafor\",\n    startedAt: daysAgo(1, 9, 40),\n    thinkSeconds: 1,\n    reasoning: \"Five emails over two weeks, one ask each: welcome, first integration, invite a teammate, reporting, a human check-in.\",\n    steps: [\n      { id: \"plan\", label: \"Planned the sequence\", status: \"complete\", detail: \"5 emails\", seconds: 1.8, tokens: { input: 1_100, output: 210 } },\n      {\n        id: \"read\",\n        label: \"Read the onboarding checklist\",\n        status: \"complete\",\n        detail: \"docs/onboarding.md\",\n        seconds: 3.4,\n        tokens: { input: 2_600, output: 120 },\n        tools: [{ id: \"r1\", name: \"read_file\", label: \"Read\", detail: \"docs/onboarding.md\", state: \"done\", durationMs: 180, count: 96, countLabel: \"lines\", input: { path: \"docs/onboarding.md\" }, output: { lines: 96 } }],\n      },\n      { id: \"draft\", label: \"Drafted 5 emails\", status: \"complete\", detail: \"1,420 words\", seconds: 14.6, tokens: { input: 4_900, output: 1_800 } },\n      {\n        id: \"check\",\n        label: \"Checked tone and links\",\n        status: \"complete\",\n        detail: \"9 of 9 links ok\",\n        seconds: 4,\n        tokens: { input: 2_600, output: 170 },\n        tools: [{ id: \"l1\", name: \"check_links\", label: \"Checked\", detail: \"9 links\", state: \"done\", durationMs: 2_300, count: 9, countLabel: \"links\", input: { document: \"emails/onboarding.md\" }, output: { ok: 9, broken: 0 } }],\n      },\n    ],\n    result: {\n      title: \"Onboarding sequence: 5 emails\",\n      detail: \"1,420 words · 9 links\",\n      excerpt: \"Day 0 welcomes and sets one goal; day 2 shows the first integration; day 5 asks for a teammate; day 9 covers reporting; day 14 checks in with a human. Every email has one link and one ask.\",\n    },\n  }),\n];\n\n/** The same run as a graph: two searches fan out and join. */\nexport const agentFlow: FlowGraph = {\n  nodes: [\n    { id: \"plan\", label: \"Plan\", detail: \"2.1s\" },\n    { id: \"search-1\", label: \"Search: enforcement\", detail: \"3.9s\" },\n    { id: \"search-2\", label: \"Search: signatories\", detail: \"5.4s\" },\n    { id: \"read\", label: \"Read sources\", detail: \"13.4s\" },\n    { id: \"draft\", label: \"Draft brief\", detail: \"10.6s\" },\n    { id: \"review\", label: \"Human review\", detail: \"Priya Raman\" },\n  ],\n  edges: [\n    { from: \"plan\", to: \"search-1\" },\n    { from: \"plan\", to: \"search-2\" },\n    { from: \"search-1\", to: \"read\" },\n    { from: \"search-2\", to: \"read\" },\n    { from: \"read\", to: \"draft\" },\n    { from: \"draft\", to: \"review\" },\n  ],\n};\n\nexport type ToolCall = { id: string; name: string; input: Record<string, unknown>; state: ToolState; durationMs?: number; summary?: string };\nexport const toolCalls: ToolCall[] = [\n  { id: \"tc1\", name: \"web_search\", input: { query: \"EU AI Act GPAI obligations August 2025\" }, state: \"done\", durationMs: 1_420, summary: \"8 results\" },\n  { id: \"tc2\", name: \"fetch_page\", input: { url: \"https://digital-strategy.ec.europa.eu/en/policies/ai-pact\" }, state: \"done\", durationMs: 2_310, summary: \"4,812 words\" },\n  { id: \"tc3\", name: \"sql_query\", input: { sql: \"select country, count(*) from signatories group by 1\" }, state: \"done\", durationMs: 380, summary: \"27 rows\" },\n  { id: \"tc4\", name: \"send_email\", input: { to: \"legal@relay.dev\", subject: \"AI Act brief: draft for review\" }, state: \"awaiting-approval\" },\n  { id: \"tc5\", name: \"create_ticket\", input: { project: \"COMPLY\", title: \"Map GPAI duties to vendors\" }, state: \"error\", durationMs: 920, summary: \"403: missing scope tickets:write\" },\n];\n\n/** Context window by source, tokens (of 200,000). */\nexport const contextWindow = [\n  { source: \"System prompt\", tokens: 3_240 },\n  { source: \"Tools\", tokens: 8_910 },\n  { source: \"Files\", tokens: 61_400 },\n  { source: \"Conversation\", tokens: 54_870 },\n  { source: \"Memory\", tokens: 2_150 },\n];\n\nconst days = lastDays(30);\n/** 30 days of usage: tokens (M), requests, p50 latency (ms), spend (USD). Mixed trends. */\nexport const usageDaily = {\n  days,\n  tokensM: series(\"ai/tokens\", { count: 30, start: 38, trend: 0.42, noise: 0.08, weekly: 0.22, decimals: 1 }),\n  requests: series(\"ai/requests\", { count: 30, start: 18_400, trend: 0.31, noise: 0.07, weekly: 0.25 }),\n  p50LatencyMs: series(\"ai/latency\", { count: 30, start: 1_260, trend: -0.14, noise: 0.05 }),\n  spendUsd: series(\"ai/spend\", { count: 30, start: 412, trend: 0.18, noise: 0.09, weekly: 0.2, decimals: 2 }),\n};\n\nexport type EvalRow = { id: string; suite: string; model: string; cases: number; passed: number; score: number; deltaVsLast: number };\nexport const evalResults: EvalRow[] = [\n  { id: \"e1\", suite: \"Contract QA\", model: \"Atlas 3 Pro\", cases: 240, passed: 221, score: 0.921, deltaVsLast: 0.018 },\n  { id: \"e2\", suite: \"Contract QA\", model: \"Kestrel 2\", cases: 240, passed: 204, score: 0.85, deltaVsLast: -0.006 },\n  { id: \"e3\", suite: \"Tool use\", model: \"Atlas 3 Pro\", cases: 180, passed: 163, score: 0.906, deltaVsLast: 0.041 },\n  { id: \"e4\", suite: \"Tool use\", model: \"Atlas 3 Mini\", cases: 180, passed: 139, score: 0.772, deltaVsLast: 0.012 },\n  { id: \"e5\", suite: \"Refusals\", model: \"Orca 70B\", cases: 120, passed: 97, score: 0.808, deltaVsLast: -0.025 },\n  { id: \"e6\", suite: \"Summaries\", model: \"Atlas 3 Mini\", cases: 300, passed: 271, score: 0.903, deltaVsLast: 0 },\n];\n\n/** Chat threads for a Session Sidebar (group with `groupByDay`). */\nexport const sessions: TimelineEvent[] = [\n  { id: \"s1\", at: minutesAgo(4), title: \"EU AI Act brief for legal\" },\n  { id: \"s2\", at: hoursAgo(2), title: \"Q3 churn drivers by plan\" },\n  { id: \"s3\", at: hoursAgo(5), title: \"Refactor billing webhooks\" },\n  { id: \"s4\", at: daysAgo(1, 16, 12), title: \"Vendor DPA comparison\" },\n  { id: \"s5\", at: daysAgo(1, 9, 40), title: \"Onboarding email sequence\" },\n  { id: \"s6\", at: daysAgo(3, 11, 5), title: \"Postgres index advice\" },\n  { id: \"s7\", at: daysAgo(6, 15, 20), title: \"Board update outline\" },\n  { id: \"s8\", at: daysAgo(12, 10, 0), title: \"Pricing page copy\" },\n];\n\n/** One delta of a streamed reply: when it landed (ms after the request was sent), its text and its output tokens. */\nexport type StreamChunk = { at: number; text: string; tokens: number };\n/** One model's reply to the compare prompt, as it streamed. `endedAt` is when the stream closed. */\nexport type CompareRun = { model: AiModel; chunks: StreamChunk[]; endedAt: number };\n\n/**\n * Splits a reply into the chunks a provider would stream: one or two words each, about four\n * characters a token, the first after `firstTokenMs`, then paced at `tokensPerSecond` with\n * seeded jitter and the odd stall, so two runs race the way real ones do.\n */\nfunction streamOf(seed: string, text: string, firstTokenMs: number, tokensPerSecond: number): { chunks: StreamChunk[]; endedAt: number } {\n  const rng = createRng(seed);\n  const words = text.match(/\\S+\\s*/g) ?? [];\n  const chunks: StreamChunk[] = [];\n  let at = firstTokenMs;\n  for (let i = 0; i < words.length; ) {\n    const take = rng.chance(0.35) ? 2 : 1;\n    const piece = words.slice(i, i + take).join(\"\");\n    i += take;\n    const tokens = Math.max(1, Math.round(piece.length / 4));\n    chunks.push({ at: Math.round(at), text: piece, tokens });\n    at += (tokens / tokensPerSecond) * 1000 * rng.range(0.6, 1.4) + (rng.chance(0.04) ? rng.range(120, 260) : 0);\n  }\n  return { chunks, endedAt: Math.round(at) };\n}\n\nconst atlasPro = aiModels.find((m) => m.id === \"atlas-3-pro\")!;\nconst kestrel = aiModels.find((m) => m.id === \"kestrel-2\")!;\n\n/**\n * One prompt sent to two models at once, for Multi-model Compare. Atlas 3 Pro answers later\n * and at more length; Kestrel 2 answers first, shorter and for about a third of the cost.\n * Neither is the obvious winner, which is why the person picks.\n */\nexport const modelCompare: { prompt: string; inputTokens: number; runs: CompareRun[] } = {\n  prompt: \"Our p95 API latency went from 180ms to 420ms after Tuesday's deploy. What should we check first? Keep it under 150 words.\",\n  inputTokens: 182,\n  runs: [\n    {\n      model: atlasPro,\n      ...streamOf(\n        \"ai/compare/atlas\",\n        [\n          \"Start with what changed on Tuesday, then work outward.\",\n          \"\",\n          \"1. **Query count.** Compare queries per request before and after the deploy. A relation now loaded in a loop is the usual cause of a jump this size.\",\n          \"2. **Connection pool.** If traffic grew but the pool didn't, requests queue for a connection. Check `pool_wait_ms` on the database dashboard.\",\n          \"3. **Cache keys.** A new field in a cache key empties the cache on deploy. A hit rate still below last week's points here.\",\n          \"4. **Who is slow.** If p50 barely moved, the slow requests share something: large accounts, one region or one endpoint.\",\n          \"\",\n          \"If ten traces from after the deploy don't narrow it down, roll back one service at a time.\",\n        ].join(\"\\n\"),\n        atlasPro.p50LatencyMs,\n        46,\n      ),\n    },\n    {\n      model: kestrel,\n      ...streamOf(\n        \"ai/compare/kestrel\",\n        [\n          \"Check these in order:\",\n          \"\",\n          \"- **Queries per request.** A lazy-loaded relation added in the deploy often doubles p95 while p50 barely moves.\",\n          \"- **Cache hit rate.** If a key format changed, the cache went cold on Tuesday and may not have recovered.\",\n          \"- **Pool wait time.** A saturated connection pool shows up as queueing, not as slow queries.\",\n          \"\",\n          \"Then pull ten slow traces from after the deploy and ten from before. The span that grew is your answer.\",\n        ].join(\"\\n\"),\n        kestrel.p50LatencyMs,\n        78,\n      ),\n    },\n  ],\n};\n\n/**\n * One step of a plan an agent proposes before it runs: the line to approve, what it will do, the\n * tools it may call, the log it prints and its result line. `failure` is a first attempt that\n * fails (its log and error), so a retry can succeed.\n */\nexport type PlanStep = {\n  id: string;\n  label: string;\n  description: string;\n  tools: string[];\n  output: string[];\n  result: string;\n  failure?: { output: string[]; error: string };\n};\n\n/**\n * The plan for Plan → Execute Board: Relay moves Sam’s Stripe webhooks to the v2 events API in\n * seven steps. The test run fails once on two stale fixtures; the changelog step is the one a\n * reviewer is likely to cancel. Timing belongs to the demo.\n */\nexport const webhookPlan = {\n  id: \"RLY-218\",\n  title: \"Move billing webhooks to Stripe v2 events\",\n  request: \"Move our Stripe webhooks to the v2 events API. We can’t drop any invoice events while it happens.\",\n  requestedBy: \"Sam Lindqvist\",\n  model: aiModels[0],\n  steps: [\n    {\n      id: \"snapshot\",\n      label: \"Back up the current webhook endpoints\",\n      description: \"Export the 14 endpoints with their event filters and signing secrets, so the switch can be rolled back in one command.\",\n      tools: [\"stripe.webhook_endpoints.list\", \"fs.write\"],\n      output: [\"$ stripe webhook_endpoints list --limit 100\", \"14 endpoints · 23 event types\", \"Wrote ops/webhooks-backup.json (6.2 kB)\"],\n      result: \"14 endpoints saved\",\n    },\n    {\n      id: \"map\",\n      label: \"Map v1 event types to v2 events\",\n      description: \"Match each of the 23 subscribed v1 types to its v2 event and flag any that were renamed or have no equivalent.\",\n      tools: [\"docs.search\", \"code.read\"],\n      output: [\"Reading src/billing/webhooks.ts\", \"23 types subscribed, 21 map one to one\", \"Renamed: invoice.upcoming → invoice.upcoming_v2\", \"Renamed: customer.source.expiring → payment_method.expiring\"],\n      result: \"21 mapped, 2 renamed\",\n    },\n    {\n      id: \"handler\",\n      label: \"Update the handler for v2 payloads\",\n      description: \"Edit the webhook handler to read thin events and fetch the full object only when a branch needs it.\",\n      tools: [\"code.edit\"],\n      output: [\"Edited src/billing/webhooks.ts\", \"Edited src/billing/events.ts\", \"Added src/billing/fetch-related.ts\", \"3 files changed, +142 −87\"],\n      result: \"3 files changed\",\n    },\n    {\n      id: \"tests\",\n      label: \"Run the billing test suite\",\n      description: \"Run the 148 webhook and invoice tests against the new handler, including replays of real payloads.\",\n      tools: [\"shell.run\"],\n      output: [\"$ pnpm test billing\", \"Regenerated 2 fixtures from v2 samples\", \"148 passed in 41.2s\"],\n      result: \"148 of 148 passed\",\n      failure: {\n        output: [\"$ pnpm test billing\", \"✕ invoice.paid replays once per event\", \"✕ invoice.payment_failed marks the account past due\", \"146 passed, 2 failed in 39.8s\", \"invoice_paid.json and payment_failed.json are still v1 payloads\"],\n        error: \"2 of 148 tests failed\",\n      },\n    },\n    {\n      id: \"changelog\",\n      label: \"Draft a changelog entry for the docs\",\n      description: \"Write a short entry for the public changelog that explains the new event names to integrators.\",\n      tools: [\"docs.write\"],\n      output: [\"Drafted docs/changelog/webhooks-v2.md\", \"182 words\"],\n      result: \"Draft saved\",\n    },\n    {\n      id: \"switch\",\n      label: \"Point the 14 endpoints at v2\",\n      description: \"Update each endpoint’s API version and keep the old signing secrets valid for 24 hours, so no delivery is rejected mid-switch.\",\n      tools: [\"stripe.webhook_endpoints.update\"],\n      output: [\"Updating 14 endpoints\", \"we_1Q8xK2 → 2026-09-30.v2\", \"we_1Q8xM7 → 2026-09-30.v2\", \"14 of 14 updated · old secrets expire in 24 hours\"],\n      result: \"14 of 14 updated\",\n    },\n    {\n      id: \"notify\",\n      label: \"Post a summary to #billing-eng\",\n      description: \"Share what changed, where the backup lives and the one command that rolls it back.\",\n      tools: [\"slack.post_message\"],\n      output: [\"Posted to #billing-eng\", \"relay.slack.com/archives/C04B1LLNG/p1760970412\"],\n      result: \"Posted to #billing-eng\",\n    },\n  ] as PlanStep[],\n};\n",
      "type": "registry:lib",
      "target": "@components/eased/_primitives/fixtures/ai.ts"
    },
    {
      "path": "src/registry/eased/_primitives/fixtures/ai-approvals.ts",
      "content": "/** Relay's approval queue: tool calls its agents are waiting on, and the ones already decided. Times are relative to FIXTURE_NOW. */\nimport { hoursAgo, minutesAgo } from \"./shared\";\n\n/** The glyph a request leads with in the queue. */\nexport type ApprovalKind = \"email\" | \"database\" | \"payment\" | \"message\" | \"code\" | \"tool\";\n\n/** One tool call waiting on a person: what it does, which agent asked, why, and the change as before/after text. */\nexport type ApprovalRecord = {\n  id: string;\n  title: string;\n  tool: string;\n  kind: ApprovalKind;\n  agent: string;\n  reason: string;\n  files: { path: string; before?: string; after: string }[];\n  requestedAt: number;\n};\n\n/** A request that has been decided: it shows in the Decided list only. */\nexport type DecidedApproval = Omit<ApprovalRecord, \"files\" | \"reason\"> & {\n  outcome: \"done\" | \"denied\" | \"expired\";\n  decidedAt: number;\n  edited?: boolean;\n};\n\n/** Waiting, oldest first: a migration, a spend cap, a customer email and a refund. */\nexport const approvalQueue: ApprovalRecord[] = [\n  {\n    id: \"apr_7h2k\",\n    title: \"Add an index on events.created_at\",\n    tool: \"run_migration\",\n    kind: \"database\",\n    agent: \"Data agent\",\n    reason: \"Dashboard queries scan 41M event rows; the index takes p95 from 2.8s to about 90ms. It builds concurrently, so writes are never locked.\",\n    files: [\n      {\n        path: \"db/migrations/0042_events_created_at.sql\",\n        after: \"-- Speeds up time-range queries on events.\\ncreate index concurrently if not exists events_created_at_idx\\n  on events (created_at desc);\\n\",\n      },\n    ],\n    requestedAt: minutesAgo(18),\n  },\n  {\n    id: \"apr_9m4t\",\n    title: \"Raise the GPU spend cap to $2,600 a month\",\n    tool: \"update_budget\",\n    kind: \"payment\",\n    agent: \"Infra agent\",\n    reason: \"Fine-tuning jobs hit the $2,000 cap on 14 October and were paused twice. The last three months averaged $2,340.\",\n    files: [\n      {\n        path: \"infra/budgets.yaml\",\n        before: \"gpu:\\n  provider: lambda\\n  monthly_cap_usd: 2000\\n  alert_at: 0.8\\n  pause_on_cap: true\\n\",\n        after: \"gpu:\\n  provider: lambda\\n  monthly_cap_usd: 2600\\n  alert_at: 0.85\\n  pause_on_cap: true\\n\",\n      },\n    ],\n    requestedAt: minutesAgo(11),\n  },\n  {\n    id: \"apr_3q8n\",\n    title: \"Send the renewal offer to Northwind\",\n    tool: \"send_email\",\n    kind: \"email\",\n    agent: \"Billing agent\",\n    reason: \"Their Team plan renews in 9 days and they have grown from 21 to 29 seats since March.\",\n    files: [\n      {\n        path: \"drafts/northwind-renewal.eml\",\n        after:\n          \"To: Dana Okafor <dana.okafor@northwind.co>\\nSubject: Your Relay renewal, with 20% off annual\\n\\nHi Dana,\\n\\nYour Team plan renews on 27 October. Your team has grown\\nfrom 21 to 29 seats since March, so we’d like to offer the\\nannual plan at 20% off: $5,568 a year instead of $6,960.\\n\\nReply to this email and I’ll switch it over before renewal.\\n\\nMaya, on behalf of Relay billing\\n\",\n      },\n    ],\n    requestedAt: minutesAgo(6),\n  },\n  {\n    id: \"apr_6d1r\",\n    title: \"Refund $1,240 to Halcyon Labs\",\n    tool: \"issue_refund\",\n    kind: \"payment\",\n    agent: \"Support agent\",\n    reason: \"Invoice INV-20931 was charged twice on 16 October. This refunds the duplicate charge only.\",\n    files: [\n      {\n        path: \"refunds/halcyon-labs.json\",\n        after: '{\\n  \"customer\": \"cus_Q8f2Lk\",\\n  \"invoice\": \"INV-20931\",\\n  \"amount\": 124000,\\n  \"currency\": \"usd\",\\n  \"reason\": \"duplicate\"\\n}\\n',\n      },\n    ],\n    requestedAt: minutesAgo(3),\n  },\n];\n\n/** A request that lands while the queue is open; its time is set when it arrives. */\nexport const incomingApproval: Omit<ApprovalRecord, \"requestedAt\"> = {\n  id: \"apr_2v7c\",\n  title: \"Post the incident summary to #status\",\n  tool: \"post_message\",\n  kind: \"message\",\n  agent: \"Support agent\",\n  reason: \"The API latency incident is resolved. This closes it out for customers following #status.\",\n  files: [\n    {\n      path: \"slack/status.md\",\n      after:\n        \"Resolved: API latency in us-east-1\\nFrom 13:02 to 13:41 UTC some API requests took up to 8s.\\nA cache node ran out of memory. It has been replaced and\\nalerts now fire at 80% memory. No data was lost.\\n\",\n    },\n  ],\n};\n\n/** Decided earlier today, newest first: approved (once with edits), denied and expired. */\nexport const decidedApprovals: DecidedApproval[] = [\n  { id: \"apr_1x9p\", title: \"Turn on annual billing for Team\", tool: \"edit_file\", kind: \"code\", agent: \"Billing agent\", outcome: \"done\", edited: true, requestedAt: minutesAgo(34), decidedAt: minutesAgo(29) },\n  { id: \"apr_8k3w\", title: \"Delete 1,204 stale trial accounts\", tool: \"delete_records\", kind: \"database\", agent: \"Data agent\", outcome: \"denied\", requestedAt: minutesAgo(52), decidedAt: minutesAgo(47) },\n  { id: \"apr_5n6b\", title: \"Send the September usage report to Orbit\", tool: \"send_email\", kind: \"email\", agent: \"Billing agent\", outcome: \"expired\", requestedAt: hoursAgo(3), decidedAt: hoursAgo(2) },\n  { id: \"apr_4j2m\", title: \"Deploy relay-api 2.14.0 to production\", tool: \"deploy\", kind: \"tool\", agent: \"Infra agent\", outcome: \"done\", requestedAt: hoursAgo(4), decidedAt: hoursAgo(4) },\n];\n",
      "type": "registry:lib",
      "target": "@components/eased/_primitives/fixtures/ai-approvals.ts"
    },
    {
      "path": "src/registry/eased/_primitives/fixtures/crypto.ts",
      "content": "/** Crypto / web3: one product, \"Tidepool\", a wallet and exchange. */\nimport type { FlowGraph } from \"../flow-core/types\";\nimport type { SeriesSpec } from \"../realtime-core/stream\";\nimport type { SyntheticBookOptions } from \"../realtime-core/orderbook\";\nimport type { TimelineEvent } from \"../timeline-core/types\";\nimport { hoursAgo, minutesAgo } from \"./shared\";\n\nexport type Token = { symbol: string; name: string; price: number; decimals: number; change24h: number; marketCap: number; volume24h: number; chain: string };\n/** Prices in USD on 18 Oct 2026; `change24h` is a share. */\nexport const tokens: Token[] = [\n  { symbol: \"BTC\", name: \"Bitcoin\", price: 67_321.5, decimals: 2, change24h: 0.0184, marketCap: 1_327_000_000_000, volume24h: 31_400_000_000, chain: \"Bitcoin\" },\n  { symbol: \"ETH\", name: \"Ether\", price: 3_418.27, decimals: 2, change24h: -0.0093, marketCap: 411_200_000_000, volume24h: 16_900_000_000, chain: \"Ethereum\" },\n  { symbol: \"SOL\", name: \"Solana\", price: 162.41, decimals: 2, change24h: 0.0412, marketCap: 76_300_000_000, volume24h: 3_800_000_000, chain: \"Solana\" },\n  { symbol: \"LINK\", name: \"Chainlink\", price: 14.682, decimals: 3, change24h: -0.0217, marketCap: 9_100_000_000, volume24h: 512_000_000, chain: \"Ethereum\" },\n  { symbol: \"ARB\", name: \"Arbitrum\", price: 0.8124, decimals: 4, change24h: 0.0066, marketCap: 3_300_000_000, volume24h: 288_000_000, chain: \"Arbitrum\" },\n  { symbol: \"USDC\", name: \"USD Coin\", price: 1.0001, decimals: 4, change24h: 0.0001, marketCap: 34_800_000_000, volume24h: 6_200_000_000, chain: \"Ethereum\" },\n];\n/** Token prices as stream series (USDC barely moves). */\nexport const tokenSeries: SeriesSpec[] = tokens.map((t) => ({ id: t.symbol, initial: t.price, decimals: t.decimals, volatility: t.symbol === \"USDC\" ? 0.00002 : t.symbol === \"BTC\" ? 0.0006 : 0.0011 }));\n\n/** Feed to `syntheticBook({ ...btcBook, mid, index })`. */\nexport const btcBook: Omit<SyntheticBookOptions, \"mid\" | \"index\"> = { seed: \"crypto/BTC-USD\", tickSize: 0.5, levels: 14, baseSize: 0.42, sizeDecimals: 4 };\n\nexport const wallet = {\n  address: \"0x7a3F9c21B4e8D05a6C1f93E2b7D4c8A90e15Bf62\",\n  ens: \"mara.eth\",\n  balances: [\n    { symbol: \"ETH\", amount: 4.2817 },\n    { symbol: \"USDC\", amount: 12_480.55 },\n    { symbol: \"ARB\", amount: 3_150 },\n    { symbol: \"LINK\", amount: 212.4 },\n  ],\n};\n\ntype CryptoTxn = { hash: string; confirmations: number; required: number; gasGwei: number; feeUsd: number; amount: number; symbol: string };\nexport const cryptoTransactions: TimelineEvent<CryptoTxn>[] = [\n  { id: \"x1\", at: minutesAgo(1), title: \"Swap 1,000 USDC → 0.2924 ETH\", status: \"active\", data: { hash: \"0x9f2e…a41c\", confirmations: 4, required: 12, gasGwei: 18, feeUsd: 2.84, amount: 1_000, symbol: \"USDC\" } },\n  { id: \"x2\", at: minutesAgo(26), title: \"Received 0.5 ETH from 0x41b…e09\", status: \"complete\", data: { hash: \"0x3c71…0b2d\", confirmations: 12, required: 12, gasGwei: 14, feeUsd: 1.12, amount: 0.5, symbol: \"ETH\" } },\n  { id: \"x3\", at: hoursAgo(3), title: \"Bridge 800 USDC to Arbitrum\", status: \"complete\", data: { hash: \"0xe8a0…77f3\", confirmations: 12, required: 12, gasGwei: 22, feeUsd: 4.1, amount: 800, symbol: \"USDC\" } },\n  { id: \"x4\", at: hoursAgo(7), title: \"Approve LINK spending\", status: \"error\", detail: \"Reverted: out of gas\", data: { hash: \"0x51d4…c9e8\", confirmations: 0, required: 12, gasGwei: 31, feeUsd: 3.66, amount: 0, symbol: \"LINK\" } },\n];\n\nexport const gasTiers = [\n  { id: \"slow\", label: \"Slow\", gwei: 12, etaSeconds: 180, feeUsd: 0.94 },\n  { id: \"normal\", label: \"Normal\", gwei: 18, etaSeconds: 45, feeUsd: 1.41 },\n  { id: \"fast\", label: \"Fast\", gwei: 27, etaSeconds: 15, feeUsd: 2.12 },\n];\n\n/** USDC → ETH split across two pools. */\nexport const swapRoute: FlowGraph<{ share?: number; fee?: number }> = {\n  nodes: [\n    { id: \"usdc\", label: \"USDC\", detail: \"1,000.00\" },\n    { id: \"uni\", label: \"Uniswap v3 · 0.05%\", data: { share: 0.7, fee: 0.0005 } },\n    { id: \"curve\", label: \"Curve tricrypto\", data: { share: 0.3, fee: 0.0004 } },\n    { id: \"eth\", label: \"ETH\", detail: \"≈ 0.2924\" },\n  ],\n  edges: [\n    { from: \"usdc\", to: \"uni\", label: \"70%\" },\n    { from: \"usdc\", to: \"curve\", label: \"30%\" },\n    { from: \"uni\", to: \"eth\" },\n    { from: \"curve\", to: \"eth\" },\n  ],\n};\n\nexport const staking = { symbol: \"ETH\", apy: 0.0352, lockOptionsDays: [0, 30, 90, 180], minStake: 0.01 };\n",
      "type": "registry:lib",
      "target": "@components/eased/_primitives/fixtures/crypto.ts"
    },
    {
      "path": "src/registry/eased/_primitives/fixtures/devtools.ts",
      "content": "/** Devtools: one product, \"Fathom\", a deploy platform; the repo is `fathom/web`. */\nimport type { FlowGraph } from \"../flow-core/types\";\nimport type { TimelineEvent } from \"../timeline-core/types\";\nimport { createRng } from \"../realtime-core/rng\";\nimport { daysAgo, hoursAgo, minutesAgo, series } from \"./shared\";\n\n/** A CI run mid-flight: install done, checks running in parallel, deploy waiting. */\nexport const pipeline: FlowGraph<{ durationMs?: number }> = {\n  nodes: [\n    { id: \"install\", label: \"Install\", status: \"complete\", detail: \"38s\", data: { durationMs: 38_000 } },\n    { id: \"lint\", label: \"Lint\", status: \"complete\", detail: \"21s\", data: { durationMs: 21_000 } },\n    { id: \"typecheck\", label: \"Typecheck\", status: \"active\", detail: \"Running…\" },\n    { id: \"unit\", label: \"Unit tests\", status: \"active\", detail: \"412 / 1,206\" },\n    { id: \"build\", label: \"Build\", status: \"pending\" },\n    { id: \"e2e\", label: \"E2E tests\", status: \"pending\", detail: \"Chromium\" },\n    { id: \"deploy\", label: \"Deploy\", status: \"pending\", detail: \"Production\" },\n  ],\n  edges: [\n    { from: \"install\", to: \"typecheck\" },\n    { from: \"install\", to: \"unit\" },\n    { from: \"lint\", to: \"build\" },\n    { from: \"typecheck\", to: \"build\" },\n    { from: \"unit\", to: \"build\" },\n    { from: \"build\", to: \"e2e\" },\n    { from: \"e2e\", to: \"deploy\" },\n  ],\n};\n\ntype LogData = { stage: string; level: \"info\" | \"warn\" | \"error\" };\nconst L = (i: number, stage: string, title: string, level: LogData[\"level\"] = \"info\"): TimelineEvent<LogData> => ({\n  id: `log-${i}`,\n  at: minutesAgo(6) + i * 1_350,\n  title,\n  kind: stage,\n  tone: level === \"error\" ? \"danger\" : level === \"warn\" ? \"warning\" : \"neutral\",\n  data: { stage, level },\n});\n/** A deploy log that fails in build (stream it line by line, oldest first). */\nexport const deployLog: TimelineEvent<LogData>[] = [\n  L(0, \"clone\", \"Cloning github.com/fathom/web (branch main, commit 4f9c2ab)\"),\n  L(1, \"clone\", \"Cloned in 1.8s\"),\n  L(2, \"install\", \"pnpm install --frozen-lockfile\"),\n  L(3, \"install\", \"Packages: +1,284\"),\n  L(4, \"install\", \"Done in 23.6s\"),\n  L(5, \"build\", \"next build\"),\n  L(6, \"build\", \"Creating an optimized production build…\"),\n  L(7, \"build\", \"⚠ Compiled with 2 warnings in 41s\", \"warn\"),\n  L(8, \"build\", \"Collecting page data…\"),\n  L(9, \"build\", \"Type error: Property 'currency' does not exist on type 'Invoice'.\", \"error\"),\n  L(10, \"build\", \"  at src/app/billing/invoice-row.tsx:42:18\", \"error\"),\n  L(11, \"build\", \"Build failed after 1m 12s\", \"error\"),\n];\n\n/** An incident, newest first. */\nexport const incident = {\n  id: \"INC-2291\",\n  title: \"Elevated 5xx on api.fathom.dev\",\n  severity: \"SEV-2\" as const,\n  startedAt: hoursAgo(1.6),\n  events: [\n    { id: \"i6\", at: minutesAgo(8), title: \"Monitoring: error rate back under 0.1%\", tone: \"success\", actor: { name: \"Status bot\" } },\n    { id: \"i5\", at: minutesAgo(19), title: \"Fix deployed: connection pool raised to 80\", tone: \"info\", actor: { name: \"Mateo Alvarez\" } },\n    { id: \"i4\", at: minutesAgo(41), title: \"Identified: pgbouncer pool exhausted after 2.14 deploy\", tone: \"warning\", actor: { name: \"Hana Kobayashi\" } },\n    { id: \"i3\", at: minutesAgo(63), title: \"Severity raised to SEV-2\", tone: \"danger\", actor: { name: \"Hana Kobayashi\" } },\n    { id: \"i2\", at: minutesAgo(81), title: \"Investigating elevated 502s in us-east-1\", tone: \"warning\", actor: { name: \"Mateo Alvarez\" } },\n    { id: \"i1\", at: minutesAgo(96), title: \"Alert: 5xx rate 4.2% (threshold 1%)\", tone: \"danger\", actor: { name: \"PagerDuty\" } },\n  ] satisfies TimelineEvent[],\n};\n\nconst up = createRng(\"devtools/uptime\");\n/** 90 days of daily uptime (0–1) per service, with a couple of real dips. */\nexport const uptime = [\"API\", \"Dashboard\", \"Edge network\", \"Webhooks\"].map((name, s) => ({\n  name,\n  days: Array.from({ length: 90 }, (_, d) => {\n    if (s === 0 && d === 89) return 0.9871;\n    if (s === 3 && d === 61) return 0.9934;\n    if (s === 2 && d === 23) return 0.9989;\n    return up.chance(0.05) ? 0.9995 : 1;\n  }),\n}));\n\nexport const envVars = [\n  { key: \"DATABASE_URL\", value: \"postgres://fathom:•••@db.internal:5432/web\", environments: [\"Production\", \"Preview\"], updatedAt: daysAgo(12) },\n  { key: \"STRIPE_SECRET_KEY\", value: \"sk_live_51Nx•••Q2c\", environments: [\"Production\"], updatedAt: daysAgo(40) },\n  { key: \"NEXT_PUBLIC_POSTHOG_KEY\", value: \"phc_8Jk2LmWq3\", environments: [\"Production\", \"Preview\", \"Development\"], updatedAt: daysAgo(3) },\n  { key: \"RESEND_API_KEY\", value: \"re_7bT•••Lp9\", environments: [\"Production\", \"Preview\"], updatedAt: hoursAgo(5) },\n];\n\nexport const apiKeys = [\n  { id: \"key_1\", name: \"Production server\", prefix: \"fth_live_9KQ2\", createdAt: daysAgo(120), lastUsedAt: minutesAgo(2), scopes: [\"deploy\", \"read\"] },\n  { id: \"key_2\", name: \"GitHub Actions\", prefix: \"fth_live_X3mA\", createdAt: daysAgo(45), lastUsedAt: hoursAgo(3), scopes: [\"deploy\"] },\n  { id: \"key_3\", name: \"Local dev (Hana)\", prefix: \"fth_test_p7Lr\", createdAt: daysAgo(9), lastUsedAt: daysAgo(2), scopes: [\"read\"] },\n];\n\n/** Commits for a Branch Graph: `parents` link them; two branches merge into main. */\nexport const commits = [\n  { sha: \"4f9c2ab\", message: \"Merge pull request #812 from fathom/invoice-currency\", author: \"Hana Kobayashi\", branch: \"main\", parents: [\"b71e0d3\", \"9a2c4f1\"], at: hoursAgo(1) },\n  { sha: \"9a2c4f1\", message: \"Show invoice currency on billing rows\", author: \"Mateo Alvarez\", branch: \"invoice-currency\", parents: [\"c03d9e8\"], at: hoursAgo(3) },\n  { sha: \"c03d9e8\", message: \"Add currency to Invoice type\", author: \"Mateo Alvarez\", branch: \"invoice-currency\", parents: [\"e5f61b0\"], at: hoursAgo(6) },\n  { sha: \"b71e0d3\", message: \"Bump next to 16.4.2\", author: \"Renovate\", branch: \"main\", parents: [\"e5f61b0\"], at: hoursAgo(9) },\n  { sha: \"e5f61b0\", message: \"Cache deploy logs at the edge\", author: \"Ama Owusu\", branch: \"main\", parents: [\"0d8a7c2\"], at: daysAgo(1, 17, 4) },\n  { sha: \"0d8a7c2\", message: \"Fix flaky webhook retry test\", author: \"Ama Owusu\", branch: \"main\", parents: [], at: daysAgo(1, 11, 30) },\n];\n\n/** One request's phases (ms), for a Request Inspector waterfall. */\nexport const requestPhases = [\n  { phase: \"DNS\", startMs: 0, durationMs: 12 },\n  { phase: \"TCP\", startMs: 12, durationMs: 18 },\n  { phase: \"TLS\", startMs: 30, durationMs: 27 },\n  { phase: \"Waiting (TTFB)\", startMs: 57, durationMs: 184 },\n  { phase: \"Download\", startMs: 241, durationMs: 36 },\n];\n\nexport const npmPackage = {\n  name: \"@fathom/sdk\",\n  version: \"4.12.0\",\n  previousVersion: \"4.11.3\",\n  weeklyDownloads: series(\"devtools/downloads\", { count: 12, start: 182_000, trend: 0.27, noise: 0.06 }),\n  /** Week starts (UTC), oldest first. */\n  weeks: Array.from({ length: 12 }, (_, i) => daysAgo((11 - i) * 7, 0, 0)),\n};\n",
      "type": "registry:lib",
      "target": "@components/eased/_primitives/fixtures/devtools.ts"
    },
    {
      "path": "src/registry/eased/_primitives/fixtures/ecommerce.ts",
      "content": "/**\n * E-commerce: one store, \"Fern & Field\", outdoor apparel. Prices in USD. Every block in the\n * pack (product card, variant picker, cart, wishlist, reviews, promo) reads from here, so the\n * demos look like one shop. Product imagery is drawn, not photographed: `art` names a\n * commerce-core `ProductArt` silhouette and each variant carries its colourway's hex.\n */\nimport type { TimelineEvent } from \"../timeline-core/types\";\nimport { daysAgo, daysFromNow, hoursAgo, minutesAgo } from \"./shared\";\n\n/** The silhouettes commerce-core's `ProductArt` draws. */\nexport type ProductArtKind = \"jacket\" | \"shell\" | \"crew\" | \"short\" | \"pack\" | \"beanie\";\n\n/** One buyable combination. `price` overrides the product's (a clearance colourway). */\nexport type Variant = { id: string; color: string; hex: string; size: string; stock: number; price?: number; compareAt?: number };\nexport type Product = {\n  id: string;\n  name: string;\n  /** One line under the name: material or the reason to buy. */\n  blurb: string;\n  art: ProductArtKind;\n  price: number;\n  compareAt?: number;\n  rating: number;\n  reviews: number;\n  /** A merchandising flag shown on the card. */\n  tag?: \"New\" | \"Bestseller\" | \"Last chance\";\n  variants: Variant[];\n};\n\nconst sizes = [\"XS\", \"S\", \"M\", \"L\", \"XL\"];\ntype Colorway = [color: string, hex: string, pricing?: { price: number; compareAt?: number }];\nconst variants = (pid: string, colors: Colorway[], stock: number[][]): Variant[] =>\n  colors.flatMap(([color, hex, pricing], c) => sizes.map((size, s) => ({ id: `${pid}-${c}-${size}`, color, hex, size, stock: stock[c][s], ...pricing })));\nconst oneSize = (pid: string, colors: [string, string, number][]): Variant[] =>\n  colors.map(([color, hex, stock], c) => ({ id: `${pid}-${c}`, color, hex, size: \"One size\", stock }));\n\nexport const products: Product[] = [\n  {\n    id: \"p1\",\n    name: \"Ridgeline Down Jacket\",\n    blurb: \"700-fill recycled down\",\n    art: \"jacket\",\n    price: 248,\n    compareAt: 310,\n    rating: 4.7,\n    reviews: 1_284,\n    tag: \"Bestseller\",\n    // Clay is the end-of-line colourway: deeper markdown, thin stock.\n    variants: variants(\"p1\", [[\"Moss\", \"#55663f\"], [\"Slate\", \"#4a535c\"], [\"Clay\", \"#a8623f\", { price: 198, compareAt: 310 }]], [[4, 12, 0, 7, 2], [9, 15, 21, 11, 3], [0, 2, 1, 0, 0]]),\n  },\n  {\n    id: \"p2\",\n    name: \"Trailhead Merino Crew\",\n    blurb: \"18.5 micron merino, 220 gsm\",\n    art: \"crew\",\n    price: 89,\n    rating: 4.5,\n    reviews: 642,\n    tag: \"New\",\n    variants: variants(\"p2\", [[\"Oat\", \"#d6c9b0\"], [\"Navy\", \"#28354b\"], [\"Rust\", \"#9a4a2c\"]], [[18, 22, 30, 14, 6], [11, 0, 19, 9, 4], [5, 8, 3, 0, 2]]),\n  },\n  { id: \"p3\", name: \"Canyon Hiking Short\", blurb: \"4-way stretch, 7″ inseam\", art: \"short\", price: 64, rating: 4.3, reviews: 311, variants: variants(\"p3\", [[\"Sand\", \"#c4ad86\"], [\"Olive\", \"#5f6440\"]], [[6, 9, 14, 8, 3], [2, 5, 7, 4, 0]]) },\n  { id: \"p4\", name: \"Basecamp 32L Pack\", blurb: \"Weatherproof, fits a 16″ laptop\", art: \"pack\", price: 179, rating: 4.8, reviews: 2_017, variants: oneSize(\"p4\", [[\"Black\", \"#232323\", 37], [\"Glacier\", \"#7d939b\", 6]]) },\n  { id: \"p5\", name: \"Summit Rib Beanie\", blurb: \"Lambswool, fold-over cuff\", art: \"beanie\", price: 38, rating: 4.6, reviews: 488, variants: oneSize(\"p5\", [[\"Ember\", \"#b4532f\", 24], [\"Charcoal\", \"#3b3d40\", 41], [\"Heather\", \"#9a9488\", 0]]) },\n  {\n    id: \"p6\",\n    name: \"Switchback Rain Shell\",\n    blurb: \"3-layer, 20K waterproof\",\n    art: \"shell\",\n    price: 198,\n    rating: 4.4,\n    reviews: 527,\n    tag: \"Last chance\",\n    variants: variants(\"p6\", [[\"Glacier\", \"#6f8a96\"], [\"Moss\", \"#55663f\"]], [[1, 3, 0, 2, 1], [0, 1, 2, 0, 0]]),\n  },\n];\n\nexport const productById = (id: string) => products.find((p) => p.id === id)!;\nexport const variantById = (id: string) => products.flatMap((p) => p.variants).find((v) => v.id === id)!;\n/** The price a variant actually sells at (its own, or the product's). */\nexport const variantPrice = (p: Product, v: Variant) => ({ price: v.price ?? p.price, compareAt: v.compareAt ?? p.compareAt });\n/** A product's variants in the shape the commerce blocks take (`ProductVariant`): swatch colour and resolved price. */\nexport const productVariants = (p: Product) => p.variants.map((v) => ({ id: v.id, color: v.color, swatch: v.hex, size: v.size, stock: v.stock, ...variantPrice(p, v) }));\n\n/** Rating histogram for the jacket (5★ first), and how its buyers say it fits. */\nexport const reviewsSummary = {\n  productId: \"p1\",\n  average: 4.7,\n  total: 1_284,\n  counts: [1_002, 191, 52, 21, 18],\n  /** Share of fit votes: runs small, true to size, runs large. */\n  fit: [0.14, 0.79, 0.07] as [number, number, number],\n  /** Share of reviewers who would recommend it. */\n  recommend: 0.94,\n};\n\nexport type Review = {\n  id: string;\n  author: string;\n  /** Where they wear it; stores show it under the name. */\n  location: string;\n  rating: 1 | 2 | 3 | 4 | 5;\n  title: string;\n  body: string;\n  at: number;\n  /** The variant they bought, as the store prints it. */\n  bought: string;\n  verified: boolean;\n  helpful: number;\n};\n\n/** The jacket's most helpful reviews, mixed on purpose: mostly glowing, two fair complaints, one bad batch. */\nexport const reviews: Review[] = [\n  { id: \"r1\", author: \"Hannah B.\", location: \"Boulder, CO\", rating: 5, title: \"Warm enough for a January sunrise hike\", body: \"Wore it at 14°F on Flagstaff with just a base layer underneath and never felt the wind. Packs into its own pocket, which I didn't expect at this warmth.\", at: daysAgo(3), bought: \"Moss · M\", verified: true, helpful: 48 },\n  { id: \"r2\", author: \"Kwame M.\", location: \"Toronto, ON\", rating: 4, title: \"Great jacket, sleeves run a touch long\", body: \"Loft is excellent and the hood actually fits over a beanie. Sleeves are about an inch long on me, so size down if you're between sizes.\", at: daysAgo(9), bought: \"Slate · L\", verified: true, helpful: 31 },\n  { id: \"r3\", author: \"Isabela R.\", location: \"Bend, OR\", rating: 5, title: \"Third winter, still lofts like new\", body: \"I wash it twice a season with down wash and tennis balls. No leaks, no flat spots, zips still smooth.\", at: daysAgo(21), bought: \"Clay · S\", verified: true, helpful: 112 },\n  { id: \"r4\", author: \"Oliver G.\", location: \"Leeds, UK\", rating: 3, title: \"Warm, but the shell scuffs easily\", body: \"Very warm for the weight. After one scramble the shoulders show pilling where my pack straps sit. Fine for town, less so for rock.\", at: daysAgo(34), bought: \"Slate · M\", verified: true, helpful: 19 },\n  { id: \"r5\", author: \"Yuki T.\", location: \"Sapporo, JP\", rating: 5, title: \"The one I grab every morning\", body: \"Light enough to wear on the train, warm enough for the walk after. The Moss colour is richer in person.\", at: daysAgo(46), bought: \"Moss · S\", verified: true, helpful: 27 },\n  { id: \"r6\", author: \"Daniel K.\", location: \"Minneapolis, MN\", rating: 2, title: \"Zip pull snapped in week two\", body: \"Support sent a replacement the same day, which I appreciate, but a zip shouldn't fail that quickly on a jacket at this price.\", at: daysAgo(58), bought: \"Slate · XL\", verified: true, helpful: 14 },\n  { id: \"r7\", author: \"Priya N.\", location: \"Denver, CO\", rating: 4, title: \"Cosy and well cut\", body: \"Fits true to size with room for a fleece. Wish the hand pockets were fleece-lined, but that's my only gripe.\", at: daysAgo(73), bought: \"Moss · M\", verified: false, helpful: 9 },\n  { id: \"r8\", author: \"Mateo G.\", location: \"Santiago, CL\", rating: 1, title: \"Feathers poking through\", body: \"Mine shed down from the seams from day one. Returned for a refund without any hassle, but disappointed.\", at: daysAgo(96), bought: \"Clay · L\", verified: true, helpful: 6 },\n];\n\nexport type CartLine = { id: string; productId: string; variantId: string; name: string; detail: string; price: number; compareAt?: number; qty: number };\nexport const cart = {\n  lines: [\n    { id: \"l1\", productId: \"p1\", variantId: \"p1-1-M\", name: \"Ridgeline Down Jacket\", detail: \"Slate · M\", price: 248, compareAt: 310, qty: 1 },\n    { id: \"l2\", productId: \"p2\", variantId: \"p2-0-L\", name: \"Trailhead Merino Crew\", detail: \"Oat · L\", price: 89, qty: 2 },\n    { id: \"l3\", productId: \"p5\", variantId: \"p5-0\", name: \"Summit Rib Beanie\", detail: \"Ember\", price: 38, qty: 1 },\n  ] as CartLine[],\n  shipping: 9,\n  /** Orders at or over this ship free. */\n  freeShippingAt: 500,\n  taxRate: 0.0875,\n  promo: { code: \"FIELD15\", off: 0.15 },\n};\n\nexport type WishlistEntry = { id: string; productId: string; variantId: string; savedAt: number; /** What it cost when saved, so a drop can be shown. */ savedPrice: number };\n/** Saved items: one has dropped in price since, one is down to the last few, one has sold out in the saved size. */\nexport const wishlist: WishlistEntry[] = [\n  { id: \"w1\", productId: \"p6\", variantId: \"p6-0-S\", savedAt: daysAgo(12), savedPrice: 248 },\n  { id: \"w2\", productId: \"p2\", variantId: \"p2-2-M\", savedAt: daysAgo(5), savedPrice: 89 },\n  { id: \"w3\", productId: \"p4\", variantId: \"p4-1\", savedAt: daysAgo(2), savedPrice: 179 },\n  { id: \"w4\", productId: \"p3\", variantId: \"p3-1-XL\", savedAt: hoursAgo(20), savedPrice: 64 },\n  { id: \"w5\", productId: \"p5\", variantId: \"p5-1\", savedAt: hoursAgo(3), savedPrice: 38 },\n];\n\nexport type Order = { number: string; customer: string; total: number; items: number; status: \"Unfulfilled\" | \"Packed\" | \"Shipped\" | \"Delivered\" | \"Returned\" };\nexport const orders: TimelineEvent<Order>[] = [\n  { id: \"o1\", at: minutesAgo(9), title: \"#10482\", data: { number: \"#10482\", customer: \"Hannah Becker\", total: 337, items: 2, status: \"Unfulfilled\" } },\n  { id: \"o2\", at: hoursAgo(1.5), title: \"#10481\", data: { number: \"#10481\", customer: \"Kwame Mensah\", total: 179, items: 1, status: \"Packed\" } },\n  { id: \"o3\", at: hoursAgo(6), title: \"#10480\", data: { number: \"#10480\", customer: \"Isabela Rocha\", total: 153, items: 2, status: \"Shipped\" } },\n  { id: \"o4\", at: daysAgo(1, 13, 10), title: \"#10476\", data: { number: \"#10476\", customer: \"Oliver Grant\", total: 496, items: 2, status: \"Delivered\" } },\n  { id: \"o5\", at: daysAgo(3, 9, 45), title: \"#10461\", data: { number: \"#10461\", customer: \"Yuki Tanaka\", total: 64, items: 1, status: \"Returned\" } },\n];\n\n/** Order #10480's shipment, for an Order Tracker. */\nexport const shipment = {\n  carrier: \"UPS\",\n  tracking: \"1Z 999 AA1 01 2345 6784\",\n  eta: daysFromNow(2, 18, 0),\n  steps: [\n    { id: \"placed\", label: \"Order placed\", status: \"complete\" as const, at: hoursAgo(6) },\n    { id: \"packed\", label: \"Packed\", status: \"complete\" as const, at: hoursAgo(4) },\n    { id: \"transit\", label: \"In transit · Louisville, KY\", status: \"active\" as const, at: hoursAgo(1) },\n    { id: \"out\", label: \"Out for delivery\", status: \"pending\" as const },\n    { id: \"delivered\", label: \"Delivered\", status: \"pending\" as const },\n  ],\n};\n\n/** Price distribution of the catalogue, $10 buckets from $20, for a Price Filter histogram. */\nexport const priceHistogram = { min: 20, step: 10, counts: [4, 9, 14, 22, 31, 27, 19, 16, 12, 9, 7, 5, 4, 3, 2, 2, 1, 1, 0, 1] };\n\n/** The season's sale (ends tomorrow night) and a short flash offer, for Promo Banner. */\nexport const promo = {\n  headline: \"End-of-season sale\",\n  detail: \"Up to 25% off outerwear and packs\",\n  code: \"FIELD25\",\n  endsAt: daysFromNow(1, 23, 59),\n  off: 0.25,\n  flash: { headline: \"Free express shipping\", detail: \"On orders over $500\", durationMs: 14_000 },\n};\n\n",
      "type": "registry:lib",
      "target": "@components/eased/_primitives/fixtures/ecommerce.ts"
    },
    {
      "path": "src/registry/eased/_primitives/fixtures/finance.ts",
      "content": "/** Finance / FX / banking: one product, \"Ledgerly\", a multi-currency business account. */\nimport type { SeriesSpec } from \"../realtime-core/stream\";\nimport type { TimelineEvent } from \"../timeline-core/types\";\nimport { daysAgo, daysFromNow, lastMonths, series } from \"./shared\";\n\nexport type FxPair = { id: string; base: string; quote: string; rate: number; decimals: number; change24h: number };\n/** Mid rates on 18 Oct 2026; `change24h` is a share. */\nexport const fxPairs: FxPair[] = [\n  { id: \"EURUSD\", base: \"EUR\", quote: \"USD\", rate: 1.0842, decimals: 4, change24h: 0.0021 },\n  { id: \"GBPUSD\", base: \"GBP\", quote: \"USD\", rate: 1.2718, decimals: 4, change24h: -0.0034 },\n  { id: \"USDJPY\", base: \"USD\", quote: \"JPY\", rate: 149.36, decimals: 2, change24h: 0.0047 },\n  { id: \"USDCHF\", base: \"USD\", quote: \"CHF\", rate: 0.8817, decimals: 4, change24h: -0.0012 },\n  { id: \"AUDUSD\", base: \"AUD\", quote: \"USD\", rate: 0.6631, decimals: 4, change24h: 0.0008 },\n  { id: \"USDCAD\", base: \"USD\", quote: \"CAD\", rate: 1.3794, decimals: 4, change24h: -0.0019 },\n  { id: \"EURGBP\", base: \"EUR\", quote: \"GBP\", rate: 0.8525, decimals: 4, change24h: 0.0055 },\n];\n/** The pairs as tick-stream series: `createTickStream({ seed: \"fx\", series: fxSeries, intervalMs: 1500 })`. */\nexport const fxSeries: SeriesSpec[] = fxPairs.map((p) => ({ id: p.id, initial: p.rate, decimals: p.decimals, volatility: 0.00012 }));\n\nexport const accounts = [\n  { id: \"acc-usd\", name: \"Operating\", currency: \"USD\", balance: 284_913.42, last4: \"4417\" },\n  { id: \"acc-eur\", name: \"EU payroll\", currency: \"EUR\", balance: 61_208.9, last4: \"0932\" },\n  { id: \"acc-gbp\", name: \"UK suppliers\", currency: \"GBP\", balance: 18_744.15, last4: \"7781\" },\n  { id: \"acc-sav\", name: \"Tax reserve\", currency: \"USD\", balance: 120_000, last4: \"2050\" },\n];\n\nexport type Txn = { amount: number; currency: string; category: string; merchant: string; status: \"pending\" | \"settled\" | \"failed\"; accountId: string };\nconst T = (id: string, at: number, merchant: string, amount: number, category: string, status: Txn[\"status\"] = \"settled\", currency = \"USD\", accountId = \"acc-usd\"): TimelineEvent<Txn> => ({\n  id,\n  at,\n  title: merchant,\n  kind: category,\n  tone: status === \"failed\" ? \"danger\" : status === \"pending\" ? \"warning\" : amount > 0 ? \"success\" : \"neutral\",\n  data: { amount, currency, category, merchant, status, accountId },\n});\n/** Transactions over 10 days (negative = money out). Group with `groupByDay`. */\nexport const transactions: TimelineEvent<Txn>[] = [\n  T(\"t01\", daysAgo(0, 13, 52), \"Amazon Web Services\", -4_812.37, \"Infrastructure\", \"pending\"),\n  T(\"t02\", daysAgo(0, 10, 14), \"Stripe payout\", 18_240.0, \"Revenue\"),\n  T(\"t03\", daysAgo(0, 8, 3), \"Figma\", -675.0, \"Software\"),\n  T(\"t04\", daysAgo(1, 17, 40), \"Delta Air Lines\", -1_284.6, \"Travel\"),\n  T(\"t05\", daysAgo(1, 12, 22), \"Blue Bottle Coffee\", -38.5, \"Meals\"),\n  T(\"t06\", daysAgo(2, 9, 0), \"Gusto payroll\", -96_420.18, \"Payroll\"),\n  T(\"t07\", daysAgo(2, 9, 1), \"Personio\", -2_310.0, \"Payroll\", \"settled\", \"EUR\", \"acc-eur\"),\n  T(\"t08\", daysAgo(3, 15, 47), \"WeWork\", -3_900.0, \"Rent\"),\n  T(\"t09\", daysAgo(3, 11, 30), \"Stripe payout\", 22_915.44, \"Revenue\"),\n  T(\"t10\", daysAgo(4, 14, 5), \"Google Workspace\", -1_152.0, \"Software\"),\n  T(\"t11\", daysAgo(5, 16, 18), \"Thornbury Print Ltd\", -842.2, \"Suppliers\", \"settled\", \"GBP\", \"acc-gbp\"),\n  T(\"t12\", daysAgo(6, 10, 44), \"Linear\", -480.0, \"Software\", \"failed\"),\n  T(\"t13\", daysAgo(7, 9, 15), \"Stripe payout\", 19_607.12, \"Revenue\"),\n  T(\"t14\", daysAgo(8, 13, 2), \"Uber\", -64.9, \"Travel\"),\n  T(\"t15\", daysAgo(9, 18, 31), \"HMRC VAT\", -12_480.0, \"Tax\", \"settled\", \"GBP\", \"acc-gbp\"),\n];\n\nexport const budgets = [\n  { category: \"Infrastructure\", budget: 18_000, spent: 14_906 },\n  { category: \"Software\", budget: 6_500, spent: 7_218 },\n  { category: \"Travel\", budget: 9_000, spent: 4_377 },\n  { category: \"Meals\", budget: 1_500, spent: 1_162 },\n  { category: \"Marketing\", budget: 22_000, spent: 16_840 },\n];\n\nconst months = lastMonths(12);\n/** 12 months of cash flow (USD); the last three are forecast. */\nexport const cashflow = {\n  months,\n  inflow: series(\"fin/in\", { count: 12, start: 212_000, trend: 0.36, noise: 0.05 }),\n  outflow: series(\"fin/out\", { count: 12, start: 188_000, trend: 0.21, noise: 0.04 }),\n  forecastFrom: 9,\n};\n\nexport const recurringPayments = [\n  { id: \"r1\", payee: \"WeWork\", amount: 3_900, currency: \"USD\", next: daysFromNow(2) },\n  { id: \"r2\", payee: \"Gusto payroll\", amount: 96_420.18, currency: \"USD\", next: daysFromNow(12) },\n  { id: \"r3\", payee: \"Google Workspace\", amount: 1_152, currency: \"USD\", next: daysFromNow(17) },\n  { id: \"r4\", payee: \"AWS\", amount: 4_800, currency: \"USD\", next: daysFromNow(14) },\n  { id: \"r5\", payee: \"Thornbury Print Ltd\", amount: 840, currency: \"GBP\", next: daysFromNow(5) },\n];\n\nexport const loan = { principal: 250_000, annualRate: 0.0725, termMonths: 60, currency: \"USD\" };\n",
      "type": "registry:lib",
      "target": "@components/eased/_primitives/fixtures/finance.ts"
    },
    {
      "path": "src/registry/eased/_primitives/fixtures/health.ts",
      "content": "/** Health: one clinic, \"Willow Health\", primary care. The patient is fictional. Units follow US conventions (mg/dL, bpm, mmHg). */\nimport type { SeriesSpec } from \"../realtime-core/stream\";\nimport type { TimelineEvent } from \"../timeline-core/types\";\nimport { createRng, roundTo } from \"../realtime-core/rng\";\nimport { daysAgo, daysFromNow, hoursAgo, lastDays, series } from \"./shared\";\n\nexport const patient = { id: \"pt-2041\", name: \"Elena Marsh\", dob: Date.UTC(1984, 2, 11), mrn: \"WH-0049217\", pcp: \"Dr. Samuel Achebe\", allergies: [\"Penicillin\"] };\n\n/** Live vitals as stream series: `createTickStream({ seed: \"vitals\", series: vitalsSeries, intervalMs: 1000 })`. */\nexport const vitalsSeries: SeriesSpec[] = [\n  { id: \"hr\", initial: 72, kind: \"level\", volatility: 0.025, meanRevert: 0.12, decimals: 0, min: 48, max: 160 },\n  { id: \"spo2\", initial: 98, kind: \"level\", volatility: 0.004, meanRevert: 0.3, decimals: 0, min: 90, max: 100 },\n  { id: \"rr\", initial: 15, kind: \"level\", volatility: 0.03, meanRevert: 0.2, decimals: 0, min: 8, max: 30 },\n];\n/** Normal ranges; outside reads warning. */\nexport const vitalRanges = { hr: { low: 50, high: 100, unit: \"bpm\" }, spo2: { low: 95, high: 100, unit: \"%\" }, rr: { low: 12, high: 20, unit: \"/min\" } };\n\nexport type LabResult = {\n  id: string;\n  test: string;\n  value: number;\n  unit: string;\n  /** Reference range. */\n  low: number;\n  high: number;\n  /** One value per `labDraws` entry, oldest first; the last is `value`. */\n  history: number[];\n  at: number;\n  /** Places shown. */\n  decimals?: number;\n  /** The span a range bar draws, wider than the reference range so a flag has room. */\n  scale?: [number, number];\n  panel?: string;\n};\n/** When each `history` value was drawn, oldest first. The last is the visit 3 days ago. */\nexport const labDraws = [daysAgo(361, 8, 20), daysAgo(255, 8, 45), daysAgo(131, 9, 10), daysAgo(3, 8, 40)];\nexport const labResults: LabResult[] = [\n  { id: \"lab1\", test: \"LDL cholesterol\", value: 142, unit: \"mg/dL\", low: 0, high: 130, history: [158, 138, 127, 142], at: daysAgo(3), decimals: 0, scale: [60, 190], panel: \"Lipid panel\" },\n  { id: \"lab2\", test: \"HbA1c\", value: 5.6, unit: \"%\", low: 4, high: 5.7, history: [5.9, 5.8, 5.6, 5.6], at: daysAgo(3), decimals: 1, scale: [4, 7], panel: \"Metabolic\" },\n  { id: \"lab3\", test: \"TSH\", value: 2.1, unit: \"mIU/L\", low: 0.4, high: 4, history: [1.8, 2.4, 2, 2.1], at: daysAgo(3), decimals: 1, scale: [0, 6], panel: \"Thyroid\" },\n  { id: \"lab4\", test: \"Vitamin D\", value: 24, unit: \"ng/mL\", low: 30, high: 100, history: [19, 28, 33, 24], at: daysAgo(3), decimals: 0, scale: [10, 110], panel: \"Vitamins\" },\n  { id: \"lab5\", test: \"Hemoglobin\", value: 13.4, unit: \"g/dL\", low: 12, high: 15.5, history: [11.8, 12.6, 13.2, 13.4], at: daysAgo(3), decimals: 1, scale: [10, 17], panel: \"Blood count\" },\n];\n\nexport type ProviderStatus = \"on-call\" | \"available\" | \"in-visit\" | \"away\";\nexport type Provider = {\n  id: string;\n  name: string;\n  /** Short name for tight rows: \"Dr. Achebe\". */\n  short: string;\n  role: string;\n  onCall: boolean;\n  status: ProviderStatus;\n  /** Shown beside the status: \"until 6 PM\", \"back Mon\". */\n  statusNote?: string;\n  /** Typical reply time for messages. */\n  replies: string;\n};\nexport const providers: Provider[] = [\n  { id: \"dr1\", name: \"Dr. Samuel Achebe\", short: \"Dr. Achebe\", role: \"Family medicine · PCP\", onCall: true, status: \"on-call\", statusNote: \"until 6 PM\", replies: \"Replies within a day\" },\n  { id: \"np1\", name: \"Marcus Webb, NP\", short: \"Marcus Webb\", role: \"Nurse practitioner\", onCall: true, status: \"in-visit\", statusNote: \"free at 3 PM\", replies: \"Replies within a day\" },\n  { id: \"rn1\", name: \"Priya Raman, RN\", short: \"Priya Raman\", role: \"Care coordinator\", onCall: false, status: \"available\", replies: \"Replies in about an hour\" },\n  { id: \"dr2\", name: \"Dr. Leah Goldberg\", short: \"Dr. Goldberg\", role: \"Cardiology\", onCall: false, status: \"away\", statusNote: \"back Mon\", replies: \"Replies within 2 days\" },\n  { id: \"rd1\", name: \"Tomás Ibarra, RD\", short: \"Tomás Ibarra\", role: \"Dietitian\", onCall: false, status: \"available\", replies: \"Replies within a day\" },\n];\n\n/** Booked appointments (timed items for `placeDayItems`). */\nexport const appointments = [\n  { id: \"ap1\", providerId: \"dr1\", patient: \"Elena Marsh\", reason: \"Follow-up: lipids\", start: daysFromNow(1, 9, 0), end: daysFromNow(1, 9, 20) },\n  { id: \"ap2\", providerId: \"dr1\", patient: \"Jamal Wright\", reason: \"Annual physical\", start: daysFromNow(1, 9, 30), end: daysFromNow(1, 10, 15) },\n  { id: \"ap3\", providerId: \"dr2\", patient: \"Grace Kim\", reason: \"Telehealth: BP review\", start: daysFromNow(1, 9, 40), end: daysFromNow(1, 10, 0) },\n  { id: \"ap4\", providerId: \"np1\", patient: \"Luis Ortega\", reason: \"Flu vaccine\", start: daysFromNow(1, 11, 0), end: daysFromNow(1, 11, 10) },\n  { id: \"ap5\", providerId: \"dr1\", patient: \"Anika Patel\", reason: \"New patient intake\", start: daysFromNow(2, 14, 0), end: daysFromNow(2, 15, 0) },\n];\n\nexport type Medication = {\n  id: string;\n  name: string;\n  dose: string;\n  /** Daily dose times, \"HH:MM\" clinic time. */\n  schedule: string[];\n  refillsLeft: number;\n  nextRefill: number;\n  /** How to take it: \"With dinner\". */\n  instructions?: string;\n  /** Doses on hand at the start of today. */\n  supply?: number;\n};\nexport const medications: Medication[] = [\n  { id: \"rx1\", name: \"Atorvastatin\", dose: \"20 mg\", schedule: [\"21:00\"], refillsLeft: 2, nextRefill: daysFromNow(6), instructions: \"1 tablet at bedtime\", supply: 7 },\n  { id: \"rx2\", name: \"Vitamin D3\", dose: \"2,000 IU\", schedule: [\"08:00\"], refillsLeft: 5, nextRefill: daysFromNow(24), instructions: \"1 capsule with breakfast\", supply: 25 },\n  { id: \"rx3\", name: \"Cetirizine\", dose: \"10 mg\", schedule: [\"08:00\"], refillsLeft: 0, nextRefill: daysFromNow(2), instructions: \"1 tablet in the morning\", supply: 3 },\n  { id: \"rx4\", name: \"Omega-3\", dose: \"1,000 mg\", schedule: [\"13:00\"], refillsLeft: 3, nextRefill: daysFromNow(17), instructions: \"1 softgel with lunch\", supply: 18 },\n];\n/** Today's dose log so far (FIXTURE_NOW is 2:30 PM): breakfast doses at 8:12, cetirizine not yet, lunch at 1:05. */\nexport const doseLog: { medId: string; time: string; takenAt: number }[] = [\n  { medId: \"rx2\", time: \"08:00\", takenAt: daysAgo(0, 8, 12) },\n  { medId: \"rx4\", time: \"13:00\", takenAt: daysAgo(0, 13, 5) },\n];\n/** How late a dose may be before it reads as missed, minutes. */\nexport const doseGraceMinutes = 120;\n\n/** Elena's chart history (newest first). */\nexport const patientTimeline: TimelineEvent[] = [\n  { id: \"pe1\", at: hoursAgo(20), title: \"Lab results posted\", kind: \"lab\", detail: \"LDL 142 mg/dL, above range\", tone: \"warning\" },\n  { id: \"pe2\", at: daysAgo(3, 8, 40), title: \"Blood draw\", kind: \"lab\" },\n  { id: \"pe3\", at: daysAgo(3, 8, 15), title: \"Office visit: Dr. Samuel Achebe\", kind: \"encounter\", detail: \"Annual physical\" },\n  { id: \"pe4\", at: daysAgo(48, 15, 0), title: \"Telehealth: seasonal allergies\", kind: \"encounter\", detail: \"Started cetirizine 10 mg\" },\n  { id: \"pe5\", at: daysAgo(190, 10, 20), title: \"Atorvastatin started\", kind: \"medication\" },\n];\n\nconst week = lastDays(7);\nconst sleepHours = series(\"health/sleep\", { count: 7, start: 7.2, noise: 0.08, decimals: 1 });\nconst bedRng = createRng(\"health/bedtime\");\nexport const activity = {\n  days: week,\n  steps: series(\"health/steps\", { count: 7, start: 7_400, trend: 0.12, noise: 0.22, weekly: 0.15 }),\n  sleepHours,\n  restingHr: series(\"health/rhr\", { count: 7, start: 64, trend: -0.03, noise: 0.02 }),\n  stepGoal: 8_000,\n  sleepGoal: 7.5,\n  /** Each night ending on that day: bedtime and wake as epoch ms (UTC clinic time). */\n  sleep: week.map((day, i) => {\n    const bed = day - Math.round(bedRng.range(35, 95) / 5) * 5 * 60_000; // 22:25–23:25 the night before\n    return { bed, wake: bed + Math.round((sleepHours[i] * 60) / 5) * 5 * 60_000 };\n  }),\n  /** Active minutes per day. */\n  activeMinutes: series(\"health/active\", { count: 7, start: 34, trend: 0.1, noise: 0.25 }).map((v) => roundTo(v, 0)),\n};\n\n/** Visit types for booking: length in minutes. */\nexport const visitTypes = [\n  { id: \"follow-up\", label: \"Follow-up\", minutes: 20 },\n  { id: \"physical\", label: \"Annual physical\", minutes: 40 },\n  { id: \"video\", label: \"Video visit\", minutes: 20 },\n];\n/** Bookable hours per weekday (clinic time) and the lunch hour nobody books. */\nexport const clinicHours = { start: \"08:30\", end: \"16:30\", lunch: [\"12:00\", \"13:00\"] as const, slotMinutes: 30 };\n/** Booked time per provider over the next five weekdays (Mon 19 – Fri 23 Oct), as busy intervals. */\nexport const providerBusy: Record<string, { start: number; end: number }[]> = Object.fromEntries(\n  [\"dr1\", \"np1\", \"dr2\"].map((id) => {\n    const rng = createRng(`health/busy/${id}`);\n    const busy: { start: number; end: number }[] = [];\n    for (let d = 1; d <= 5; d++) {\n      for (let slot = 0; slot < 14; slot++) {\n        const minutes = 8 * 60 + 30 + slot * 30 + (slot >= 7 ? 60 : 0);\n        if (rng.chance(id === \"dr1\" ? 0.55 : 0.4)) busy.push({ start: daysFromNow(d, 0, minutes), end: daysFromNow(d, 0, minutes + 30) });\n      }\n    }\n    return [id, busy];\n  }),\n);\n\nexport const queue = [\n  { id: \"q1\", name: \"Jamal W.\", checkedInAt: hoursAgo(0.45), reason: \"Annual physical\" },\n  { id: \"q2\", name: \"Grace K.\", checkedInAt: hoursAgo(0.3), reason: \"BP review\" },\n  { id: \"q3\", name: \"Luis O.\", checkedInAt: hoursAgo(0.1), reason: \"Vaccine\" },\n];\n",
      "type": "registry:lib",
      "target": "@components/eased/_primitives/fixtures/health.ts"
    },
    {
      "path": "src/registry/eased/_primitives/fixtures/hr.ts",
      "content": "/**\n * HR / recruiting: one company, \"Northpeak Systems\" (~180 people), hiring for one req at a\n * time. Every person is invented. Salaries are USD per year; payslips are monthly.\n */\nimport type { Interval } from \"../calendar-core/availability\";\nimport type { FlowGraph } from \"../flow-core/types\";\nimport { createRng } from \"../realtime-core/rng\";\nimport type { TimelineEvent } from \"../timeline-core/types\";\nimport { daysAgo, daysFromNow, hoursAgo } from \"./shared\";\n\n/* ---------- Hiring ----------------------------------------------------------------------- */\n\nexport const hiringStages = [\"Applied\", \"Screen\", \"Interview\", \"Offer\", \"Hired\"] as const;\nexport type HiringStage = (typeof hiringStages)[number];\n\n/** The open req every recruiting demo is about. */\nexport const opening = {\n  id: \"req-142\",\n  title: \"Senior Frontend Engineer\",\n  team: \"Apps\",\n  location: \"Remote, US\",\n  hiringManager: \"Ines Duarte\",\n  openedAt: daysAgo(38),\n};\n\nexport type Candidate = {\n  id: string;\n  name: string;\n  /** The role they applied for. */\n  role: string;\n  stage: HiringStage;\n  source: \"Referral\" | \"LinkedIn\" | \"Careers page\" | \"Agency\" | \"Wellfound\";\n  /** Their current title and company. */\n  current: string;\n  /** Mean interview rating on the 1–4 scale, once anyone has scored them. */\n  score?: number;\n  appliedAt: number;\n  /** When they entered their current stage. */\n  stageAt: number;\n};\n\n// Days in stage come from a seeded RNG so the board reads lived-in, the same on every render.\nconst rng = createRng(\"hr/pipeline\");\nconst inStage = (maxDays: number) => hoursAgo(rng.int(5, maxDays * 24));\n\nconst C = (id: string, name: string, stage: HiringStage, source: Candidate[\"source\"], current: string, applied: number, score?: number, maxDays = 6): Candidate => ({\n  id,\n  name,\n  role: opening.title,\n  stage,\n  source,\n  current,\n  score,\n  appliedAt: daysAgo(applied),\n  stageAt: inStage(Math.min(maxDays, applied)),\n});\n\n/** The req-142 pipeline, in each column's order. */\nexport const candidates: Candidate[] = [\n  C(\"cd4\", \"Diego Herrera\", \"Applied\", \"Careers page\", \"Frontend Engineer, Kestrel\", 1, undefined, 1),\n  C(\"cd8\", \"Priya Natarajan\", \"Applied\", \"LinkedIn\", \"UI Engineer, Brightline\", 2, undefined, 2),\n  C(\"cd9\", \"Owen Fitzgerald\", \"Applied\", \"Careers page\", \"Software Engineer, Halcyon\", 3, undefined, 3),\n  C(\"cd10\", \"Lena Vogel\", \"Applied\", \"Agency\", \"Senior Engineer, Tannery\", 4, undefined, 4),\n  C(\"cd2\", \"Tomasz Nowak\", \"Screen\", \"LinkedIn\", \"Staff Engineer, Quarry\", 9, 3.0),\n  C(\"cd6\", \"Ben Carter\", \"Screen\", \"Referral\", \"Frontend Lead, Marlow\", 7, 2.5),\n  C(\"cd11\", \"Sofia Marín\", \"Screen\", \"Wellfound\", \"Engineer, Pocketful\", 6),\n  C(\"cd1\", \"Aisha Bello\", \"Interview\", \"Referral\", \"Senior Engineer, Lumen Labs\", 16, 3.4),\n  C(\"cd5\", \"Fatima Zahra\", \"Interview\", \"Agency\", \"Frontend Engineer, Corvid\", 12, 3.1),\n  C(\"cd12\", \"Kenji Watanabe\", \"Interview\", \"LinkedIn\", \"Design Engineer, Arcadia\", 14, 2.9),\n  C(\"cd13\", \"Marcus Reed\", \"Offer\", \"Referral\", \"Senior Engineer, Fieldnote\", 27, 3.7, 4),\n  C(\"cd7\", \"Hannah Kowalski\", \"Hired\", \"LinkedIn\", \"Senior Engineer, Polaris\", 41, 3.6, 9),\n];\n\nexport const candidateById = (id: string) => candidates.find((c) => c.id === id);\n\n/** The 1–4 interview scale every scorecard uses (Greenhouse and Ashby use the same four). */\nexport const ratingScale = [\n  { value: 1, label: \"Strong no\" },\n  { value: 2, label: \"No\" },\n  { value: 3, label: \"Yes\" },\n  { value: 4, label: \"Strong yes\" },\n] as const;\nexport type Rating = (typeof ratingScale)[number][\"value\"];\n\nexport type Scorecard = {\n  id: string;\n  interviewer: string;\n  round: string;\n  /** Overall recommendation on the 1–4 scale. */\n  rating: Rating;\n  /** One line from their notes. */\n  note: string;\n  submittedAt: number;\n};\n\n/** Aisha's submitted scorecards. */\nexport const scorecards: Scorecard[] = [\n  { id: \"sc1\", interviewer: \"Jonas Lindqvist\", round: \"System design\", rating: 4, note: \"Drew the sync model unprompted; clear trade-offs.\", submittedAt: hoursAgo(3) },\n  { id: \"sc2\", interviewer: \"Mei Chen\", round: \"Technical\", rating: 3, note: \"Solid on rendering; light on testing strategy.\", submittedAt: hoursAgo(20) },\n  { id: \"sc3\", interviewer: \"Adaeze Okafor\", round: \"Product sense\", rating: 3, note: \"Good instincts, asked about the user first.\", submittedAt: daysAgo(1, 9, 40) },\n  { id: \"sc4\", interviewer: \"Rosa Delgado\", round: \"Recruiter screen\", rating: 3, note: \"Clear on why Northpeak; comp in band.\", submittedAt: daysAgo(5, 12, 10) },\n];\n\n/** The scorecard the viewer (Ines, the hiring manager) still has to fill in. */\nexport const scorecardTemplate = {\n  candidateId: \"cd1\",\n  round: \"Frontend craft\",\n  interviewer: \"Ines Duarte\",\n  criteria: [\n    { id: \"code\", label: \"Code quality\", hint: \"Readable, typed, tested where it matters\" },\n    { id: \"ui\", label: \"UI craft\", hint: \"States, motion, accessibility\" },\n    { id: \"debug\", label: \"Debugging\", hint: \"Finds the cause, not a workaround\" },\n    { id: \"comm\", label: \"Communication\", hint: \"Explains choices, takes feedback\" },\n  ],\n};\n\n/** Aisha's touchpoints, newest first. */\nexport const candidateTimeline: TimelineEvent[] = [\n  { id: \"ct1\", at: hoursAgo(3), title: \"Scorecard from Jonas Lindqvist\", detail: \"Strong yes · System design\", tone: \"success\", actor: { name: \"Jonas Lindqvist\" } },\n  { id: \"ct2\", at: daysAgo(1, 15, 0), title: \"Technical interview\", detail: \"60 min with Jonas Lindqvist and Mei Chen\", actor: { name: \"Mei Chen\" } },\n  { id: \"ct3\", at: daysAgo(2, 10, 15), title: \"Moved to Interview\", detail: \"by Ines Duarte\", actor: { name: \"Ines Duarte\" } },\n  { id: \"ct4\", at: daysAgo(5, 11, 0), title: \"Recruiter screen\", detail: \"Notice period 4 weeks · open to remote\", actor: { name: \"Rosa Delgado\" } },\n  { id: \"ct5\", at: daysAgo(9, 16, 20), title: \"Emailed about a screen\", detail: \"Replied within 2 hours\", actor: { name: \"Rosa Delgado\" } },\n  { id: \"ct6\", at: daysAgo(16, 9, 12), title: \"Referred by Lucas Moreau\", detail: \"“Worked with her at Lumen; best UI engineer I know.”\", actor: { name: \"Lucas Moreau\" } },\n];\n\n/* ---------- Interviews ------------------------------------------------------------------- */\n\nconst at = (day: number, hh: number, mm = 0) => daysFromNow(day, hh, mm);\nconst free = (day: number, ...spans: [number, number][]): Interval[] =>\n  spans.map(([a, b]) => ({ start: at(day, Math.floor(a), Math.round((a % 1) * 60)), end: at(day, Math.floor(b), Math.round((b % 1) * 60)) }));\n\n/** The panel for Aisha's onsite and when each of them is free over the next three working days (UTC). */\nexport const interviewPanel: { person: string; title: string; free: Interval[] }[] = [\n  {\n    person: \"Jonas Lindqvist\",\n    title: \"Eng Manager, Platform\",\n    free: [...free(1, [9, 12], [14, 17]), ...free(2, [9, 10.5], [13, 18]), ...free(3, [10, 16])],\n  },\n  {\n    person: \"Mei Chen\",\n    title: \"CTO\",\n    free: [...free(1, [10.5, 15.5]), ...free(2, [11, 12.5], [15, 17.5]), ...free(3, [9, 11], [13.5, 15])],\n  },\n  {\n    person: \"Adaeze Okafor\",\n    title: \"Design Lead\",\n    free: [...free(1, [8, 11.5], [14.5, 18]), ...free(2, [9, 12], [15.5, 18]), ...free(3, [9.5, 12], [13, 17])],\n  },\n];\n/** The working days the scheduler pages through. */\nexport const interviewDays = [daysFromNow(1, 0, 0), daysFromNow(2, 0, 0), daysFromNow(3, 0, 0)];\n/** Kept for older demos: the first day only. */\nexport const interviewAvailability = interviewPanel.map(({ person, free: f }) => ({ person, free: f.filter((i) => +i.start < daysFromNow(2, 0, 0)) }));\n\n/* ---------- People ----------------------------------------------------------------------- */\n\nexport type OrgPerson = { title: string; team: string; location: string };\n\nconst P = (id: string, label: string, title: string, team: string, location = \"Remote, US\") => ({ id, label, data: { title, team, location } });\n\n/** Org chart, top to bottom (`layoutFlow(orgChart, { direction: \"TB\" })`). */\nexport const orgChart: FlowGraph<OrgPerson> = {\n  nodes: [\n    P(\"ceo\", \"Arjun Mehta\", \"CEO\", \"Executive\", \"New York\"),\n    P(\"cto\", \"Mei Chen\", \"CTO\", \"Engineering\", \"San Francisco\"),\n    P(\"cpo\", \"Lucas Moreau\", \"VP Product\", \"Product\", \"New York\"),\n    P(\"cfo\", \"Rachel Stein\", \"CFO\", \"Finance\", \"New York\"),\n    P(\"eng1\", \"Jonas Lindqvist\", \"Eng Manager, Platform\", \"Engineering\"),\n    P(\"eng2\", \"Ines Duarte\", \"Eng Manager, Apps\", \"Engineering\", \"Austin\"),\n    P(\"sec\", \"Tariq Haddad\", \"Security Lead\", \"Engineering\"),\n    P(\"p1\", \"Noor Siddiqui\", \"Staff Engineer\", \"Platform\"),\n    P(\"p2\", \"Elliot Brandt\", \"Senior Engineer\", \"Platform\"),\n    P(\"p3\", \"Camila Reyes\", \"SRE\", \"Platform\"),\n    P(\"a1\", \"Hannah Kowalski\", \"Senior Frontend Engineer\", \"Apps\"),\n    P(\"a2\", \"Yusuf Demir\", \"Mobile Engineer\", \"Apps\"),\n    P(\"a3\", \"Chloé Martin\", \"Frontend Engineer\", \"Apps\"),\n    P(\"des\", \"Adaeze Okafor\", \"Design Lead\", \"Design\", \"London\"),\n    P(\"pm1\", \"Hana Sato\", \"Product Manager\", \"Product\"),\n    P(\"d1\", \"Mateo Rossi\", \"Product Designer\", \"Design\", \"London\"),\n    P(\"d2\", \"Grace Liu\", \"Product Designer\", \"Design\"),\n    P(\"ctl\", \"Daniel Osei\", \"Controller\", \"Finance\", \"New York\"),\n    P(\"ppl\", \"Rosa Delgado\", \"Head of People\", \"People\", \"Austin\"),\n    P(\"rec\", \"Sam Whitfield\", \"Recruiter\", \"People\", \"Austin\"),\n  ],\n  edges: [\n    [\"ceo\", \"cto\"], [\"ceo\", \"cpo\"], [\"ceo\", \"cfo\"],\n    [\"cto\", \"eng1\"], [\"cto\", \"eng2\"], [\"cto\", \"sec\"],\n    [\"eng1\", \"p1\"], [\"eng1\", \"p2\"], [\"eng1\", \"p3\"],\n    [\"eng2\", \"a1\"], [\"eng2\", \"a2\"], [\"eng2\", \"a3\"],\n    [\"cpo\", \"des\"], [\"cpo\", \"pm1\"],\n    [\"des\", \"d1\"], [\"des\", \"d2\"],\n    [\"cfo\", \"ctl\"], [\"cfo\", \"ppl\"],\n    [\"ppl\", \"rec\"],\n  ].map(([from, to]) => ({ from, to })),\n};\n\n/** Team absences (timed items: whole days, end exclusive). */\nexport const timeOff = [\n  { id: \"to1\", person: \"Jonas Lindqvist\", type: \"Vacation\", start: daysFromNow(3, 0, 0), end: daysFromNow(8, 0, 0) },\n  { id: \"to2\", person: \"Adaeze Okafor\", type: \"Sick\", start: daysAgo(1, 0, 0), end: daysFromNow(1, 0, 0) },\n  { id: \"to3\", person: \"Mei Chen\", type: \"Conference\", start: daysFromNow(10, 0, 0), end: daysFromNow(13, 0, 0) },\n  { id: \"to4\", person: \"Lucas Moreau\", type: \"Parental leave\", start: daysFromNow(20, 0, 0), end: daysFromNow(76, 0, 0) },\n];\nexport const timeOffBalance = { person: \"Aisha Bello\", vacationDays: 14.5, sickDays: 6 };\n\n/* ---------- Payroll ---------------------------------------------------------------------- */\n\n/** Jonas's October payslip inputs: $175,000 a year, paid monthly, California. */\nexport const payrollProfile = {\n  employee: \"Jonas Lindqvist\",\n  title: \"Eng Manager, Platform\",\n  period: { start: Date.UTC(2026, 9, 1), end: Date.UTC(2026, 9, 31), paidOn: Date.UTC(2026, 9, 30) },\n  gross: 14_583.33,\n  /** Pre-tax benefits: medical, dental and vision, plus transit. */\n  benefits: 306.25,\n  /** 401(k) contribution choices, as a share of gross. */\n  retirementRates: [0.04, 0.06, 0.1, 0.15] as const,\n  defaultRetirementRate: 0.06,\n  /** Effective rates on taxable pay (after 401(k) and benefits), close to a 2026 single filer in CA. */\n  federalRate: 0.2,\n  stateRate: 0.081,\n  /** Social Security + Medicare, on gross; 401(k) does not lower it. */\n  ficaRate: 0.0765,\n};\n\nexport type PayLine = { id: string; label: string; amount: number; kind: \"tax\" | \"retirement\" | \"benefit\" };\n\n/** The deductions for a 401(k) rate, largest first within their kind. Amounts are negative. */\nexport function payslip(retirementRate: number = payrollProfile.defaultRetirementRate): { gross: number; lines: PayLine[]; net: number } {\n  const p = payrollProfile;\n  const cents = (v: number) => Math.round(v * 100) / 100;\n  const retirement = cents(p.gross * retirementRate);\n  const taxable = p.gross - retirement - p.benefits;\n  const lines: PayLine[] = [\n    { id: \"federal\", label: \"Federal income tax\", amount: -cents(taxable * p.federalRate), kind: \"tax\" },\n    { id: \"fica\", label: \"Social Security and Medicare\", amount: -cents(p.gross * p.ficaRate), kind: \"tax\" },\n    { id: \"state\", label: \"California income tax\", amount: -cents(taxable * p.stateRate), kind: \"tax\" },\n    { id: \"401k\", label: \"401(k)\", amount: -retirement, kind: \"retirement\" },\n    { id: \"benefits\", label: \"Medical, dental and transit\", amount: -p.benefits, kind: \"benefit\" },\n  ];\n  return { gross: p.gross, lines, net: cents(p.gross + lines.reduce((s, l) => s + l.amount, 0)) };\n}\n\n/** Kept for older demos: October at the default rate. */\nexport const payroll = { period: \"Oct 2026\", ...payslip() };\n\n/* ---------- Reviews and offers ----------------------------------------------------------- */\n\nexport const reviewCycle = {\n  name: \"H2 2026 performance review\",\n  steps: [\n    { id: \"self\", label: \"Self review\", status: \"complete\" as const, due: daysAgo(10) },\n    { id: \"peer\", label: \"Peer feedback\", status: \"complete\" as const, due: daysAgo(3) },\n    { id: \"manager\", label: \"Manager review\", status: \"active\" as const, due: daysFromNow(5) },\n    { id: \"calibration\", label: \"Calibration\", status: \"pending\" as const, due: daysFromNow(14) },\n    { id: \"share\", label: \"Share results\", status: \"pending\" as const, due: daysFromNow(21) },\n  ],\n};\n\nexport const offer = { candidateId: \"cd13\", role: opening.title, base: 186_000, bonusTarget: 0.1, equityShares: 12_000, strikeUsd: 4.2, vestingYears: 4, cliffMonths: 12, startDate: daysFromNow(28, 0, 0) };\n",
      "type": "registry:lib",
      "target": "@components/eased/_primitives/fixtures/hr.ts"
    },
    {
      "path": "src/registry/eased/_primitives/fixtures/legal.ts",
      "content": "/** Legal: one product, \"Brief\", contract review for an in-house team at Northpeak Systems. */\nimport { anchorQuote, type Comment, type Suggestion } from \"../doc-core/anchors\";\nimport { numberClauses, type Doc } from \"../doc-core/types\";\nimport type { FlowGraph } from \"../flow-core/types\";\nimport type { TimelineEvent } from \"../timeline-core/types\";\nimport { daysAgo, daysFromNow, hoursAgo, minutesAgo } from \"./shared\";\n\n/** The Master Services Agreement, as Northpeak sent it (v3). */\nexport const msa: Doc = {\n  id: \"msa-halcyon\",\n  title: \"Master Services Agreement: Northpeak Systems × Halcyon Freight\",\n  version: \"v3\",\n  blocks: numberClauses([\n    { id: \"intro\", kind: \"paragraph\", text: \"This Master Services Agreement is entered into on 1 November 2026 between Northpeak Systems, Inc. (“Supplier”) and Halcyon Freight Ltd (“Customer”).\" },\n    { id: \"c-services\", kind: \"clause\", title: \"Services\", text: \"Supplier shall provide the services described in each Order Form in a professional manner consistent with industry standards.\" },\n    { id: \"c-fees\", kind: \"clause\", title: \"Fees and payment\", text: \"Customer shall pay all undisputed invoices within thirty (30) days of receipt. Late amounts accrue interest at 1.5% per month.\" },\n    { id: \"c-fees-tax\", kind: \"clause\", level: 2, text: \"Fees exclude taxes. Customer is responsible for all sales, use and value-added taxes.\" },\n    { id: \"c-term\", kind: \"clause\", title: \"Term and renewal\", text: \"This Agreement renews automatically for successive twelve (12) month terms unless either party gives notice at least thirty (30) days before renewal.\", risk: \"medium\" },\n    { id: \"c-liability\", kind: \"clause\", title: \"Limitation of liability\", text: \"Each party’s total liability under this Agreement shall not exceed the fees paid in the three (3) months preceding the claim.\", risk: \"high\" },\n    { id: \"c-indemnity\", kind: \"clause\", title: \"Indemnification\", text: \"Customer shall indemnify Supplier against all claims arising from Customer Data, without limitation.\", risk: \"high\" },\n    { id: \"c-data\", kind: \"clause\", title: \"Data protection\", text: \"Supplier shall process personal data only on Customer’s documented instructions and in accordance with the Data Processing Addendum.\" },\n    { id: \"c-law\", kind: \"clause\", title: \"Governing law\", text: \"This Agreement is governed by the laws of the State of Delaware.\", risk: \"low\" },\n  ]),\n};\n\n/** Halcyon’s counter-draft (v4): same block ids, so `diffDocs(msa, msaRevised)` lines up. */\nexport const msaRevised: Doc = {\n  ...msa,\n  version: \"v4\",\n  blocks: msa.blocks.map((b) => {\n    switch (b.id) {\n      case \"c-fees\":\n        return { ...b, text: \"Customer shall pay all undisputed invoices within forty-five (45) days of receipt. Late amounts accrue interest at 1% per month.\" };\n      case \"c-term\":\n        return { ...b, text: \"This Agreement renews automatically for successive twelve (12) month terms unless either party gives notice at least sixty (60) days before renewal.\" };\n      case \"c-liability\":\n        return { ...b, text: \"Each party’s total liability under this Agreement shall not exceed the fees paid in the twelve (12) months preceding the claim, except for breaches of Clause 6 (Data protection).\" };\n      case \"c-indemnity\":\n        return { ...b, text: \"Each party shall indemnify the other against third-party claims arising from its breach of this Agreement.\" };\n      case \"c-law\":\n        return { ...b, text: \"This Agreement is governed by the laws of England and Wales.\" };\n      default:\n        return b;\n    }\n  }),\n};\n\nconst suggest = (id: string, blockId: string, quote: string, replacement: string, rationale: string, confidence: number): Suggestion => ({\n  ...anchorQuote(msa, blockId, quote, { id })!,\n  kind: \"suggestion\",\n  replacement,\n  rationale,\n  confidence,\n  author: \"Brief AI\",\n  status: \"pending\",\n});\n/** AI redlines against Northpeak’s playbook. */\nexport const suggestions: Suggestion[] = [\n  suggest(\"s1\", \"c-liability\", \"three (3) months\", \"twelve (12) months\", \"Playbook §3: cap at 12 months’ fees; 3 months is below market for a freight customer.\", 0.93),\n  suggest(\"s2\", \"c-indemnity\", \"Customer shall indemnify Supplier against all claims arising from Customer Data, without limitation.\", \"Each party shall indemnify the other against third-party claims arising from its breach of this Agreement.\", \"One-sided and uncapped. Make it mutual and limited to third-party claims.\", 0.88),\n  suggest(\"s3\", \"c-term\", \"thirty (30) days\", \"sixty (60) days\", \"Customer procurement needs 60 days to run a renewal review.\", 0.71),\n];\n\nexport const comments: Comment[] = [\n  {\n    ...anchorQuote(msa, \"c-fees\", \"1.5% per month\", { id: \"k1\" })!,\n    kind: \"comment\",\n    author: \"Daniel Osei\",\n    body: \"Halcyon will push back on this; 1% is our usual fallback.\",\n    createdAt: hoursAgo(5),\n    replies: [{ id: \"k1r1\", author: \"Mei Lin\", body: \"Agreed. Accept 1% if they move on the cap.\", createdAt: hoursAgo(3) }],\n  },\n  { ...anchorQuote(msa, \"c-law\", \"State of Delaware\", { id: \"k2\" })!, kind: \"comment\", author: \"Mei Lin\", body: \"They’re UK-based; expect England and Wales.\", createdAt: daysAgo(1, 11, 20) },\n];\n\nexport type Matter = { id: string; name: string; client: string; practice: string; stage: \"Intake\" | \"Discovery\" | \"Negotiation\" | \"Trial prep\" | \"Closed\"; lead: string };\nexport const matters: Matter[] = [\n  { id: \"m1\", name: \"Halcyon Freight MSA\", client: \"Northpeak Systems\", practice: \"Commercial\", stage: \"Negotiation\", lead: \"Mei Lin\" },\n  { id: \"m2\", name: \"Okafor v. Brightline Logistics\", client: \"Brightline Logistics\", practice: \"Employment\", stage: \"Discovery\", lead: \"Daniel Osei\" },\n  { id: \"m3\", name: \"Series C financing\", client: \"Northpeak Systems\", practice: \"Corporate\", stage: \"Intake\", lead: \"Rachel Stein\" },\n  { id: \"m4\", name: \"Trademark opposition: ORBITAL\", client: \"Orbit Analytics\", practice: \"IP\", stage: \"Trial prep\", lead: \"Tomás Ferreira\" },\n];\n\n/** Okafor v. Brightline: filings, hearings and deadlines (past and upcoming). */\nexport const matterTimeline: TimelineEvent<{ matterId: string }>[] = [\n  { id: \"mt1\", at: daysAgo(64, 9, 0), title: \"Complaint filed\", kind: \"filing\", data: { matterId: \"m2\" } },\n  { id: \"mt2\", at: daysAgo(43, 16, 0), title: \"Answer served\", kind: \"filing\", data: { matterId: \"m2\" } },\n  { id: \"mt3\", at: daysAgo(21, 10, 30), title: \"Initial case management conference\", kind: \"hearing\", data: { matterId: \"m2\" } },\n  { id: \"mt4\", at: daysAgo(2, 17, 0), title: \"Document production due\", kind: \"deadline\", tone: \"warning\", status: \"error\", detail: \"Overdue by 2 days\", data: { matterId: \"m2\" } },\n  { id: \"mt5\", at: daysFromNow(9, 17, 0), title: \"Interrogatory responses due\", kind: \"deadline\", data: { matterId: \"m2\" } },\n  { id: \"mt6\", at: daysFromNow(23, 10, 0), title: \"Deposition: R. Castellano\", kind: \"hearing\", data: { matterId: \"m2\" } },\n  { id: \"mt7\", at: daysFromNow(58, 9, 30), title: \"Mediation\", kind: \"hearing\", data: { matterId: \"m2\" } },\n];\n\n/** Deadlines as timed items for a calendar (`itemsByDay`, `placeDayItems`). */\nexport const deadlines = [\n  { id: \"d1\", title: \"Halcyon redline back\", matterId: \"m1\", start: daysFromNow(1, 12, 0), end: daysFromNow(1, 13, 0) },\n  { id: \"d2\", title: \"Board consent: Series C\", matterId: \"m3\", start: daysFromNow(4, 15, 0), end: daysFromNow(4, 16, 0) },\n  { id: \"d3\", title: \"Interrogatory responses\", matterId: \"m2\", start: daysFromNow(9, 16, 0), end: daysFromNow(9, 17, 0) },\n  { id: \"d4\", title: \"Opposition evidence due\", matterId: \"m4\", start: daysFromNow(11, 9, 0), end: daysFromNow(11, 10, 0) },\n];\n\n/** Who signs off on the MSA, top to bottom. */\nexport const approvalChain: FlowGraph<{ role: string }> = {\n  nodes: [\n    { id: \"a1\", label: \"Mei Lin\", detail: \"Approved\", status: \"complete\", data: { role: \"Senior counsel\" } },\n    { id: \"a2\", label: \"Rachel Stein\", detail: \"Reviewing\", status: \"active\", data: { role: \"General counsel\" } },\n    { id: \"a3\", label: \"Arjun Mehta\", status: \"pending\", data: { role: \"CFO\" } },\n    { id: \"a4\", label: \"Signature\", status: \"pending\", data: { role: \"DocuSign\" } },\n  ],\n  edges: [\n    { from: \"a1\", to: \"a2\" },\n    { from: \"a2\", to: \"a3\" },\n    { from: \"a3\", to: \"a4\" },\n  ],\n};\n\nexport const timeEntries = [\n  { id: \"te1\", matterId: \"m1\", at: minutesAgo(40), minutes: 72, rate: 650, note: \"Review Halcyon redline v4; markup liability cap\" },\n  { id: \"te2\", matterId: \"m2\", at: hoursAgo(4), minutes: 108, rate: 520, note: \"Draft responses to interrogatories 1–14\" },\n  { id: \"te3\", matterId: \"m1\", at: daysAgo(1, 15, 0), minutes: 30, rate: 650, note: \"Call with D. Osei re fallback positions\" },\n  { id: \"te4\", matterId: \"m4\", at: daysAgo(1, 10, 0), minutes: 156, rate: 480, note: \"Compile evidence of prior use, ORBITAL mark\" },\n];\n\n/* ---------- The Halcyon deal, end to end (Contract Review → Clause Diff → E-sign → Obligations) ---------- */\n\n/** Northpeak’s reply (v5): keeps 45 days and the 12-month cap, meets in the middle on interest and law, adds insurance. */\nexport const msaFinal: Doc = {\n  ...msaRevised,\n  version: \"v5\",\n  blocks: numberClauses(\n    msaRevised.blocks.flatMap((b) => {\n      switch (b.id) {\n        case \"c-fees\":\n          return [{ ...b, text: \"Customer shall pay all undisputed invoices within forty-five (45) days of receipt. Late amounts accrue interest at 1.25% per month.\" }];\n        case \"c-liability\":\n          return [{ ...b, text: \"Each party’s total liability under this Agreement shall not exceed the fees paid in the twelve (12) months preceding the claim, except for breaches of Clause 6 (Data protection), which are capped at two times (2×) those fees.\" }];\n        case \"c-law\":\n          return [\n            { ...b, text: \"This Agreement is governed by the laws of the State of New York.\" },\n            { id: \"c-insurance\", kind: \"clause\" as const, title: \"Insurance\", text: \"Each party shall maintain commercial general liability insurance of at least $2,000,000 per occurrence and provide a certificate on request.\" },\n          ];\n        default:\n          return [b];\n      }\n    }),\n  ),\n};\n\n/** The executed agreement’s dates, for obligations and the renewal notice. */\nexport const msaTerm = { effective: Date.UTC(2026, 10, 1), renews: Date.UTC(2027, 10, 1) };\n\nexport type Signer = {\n  id: string;\n  name: string;\n  /** Title and company: \"COO, Halcyon Freight\". */\n  role: string;\n  email: string;\n  status: \"signed\" | \"current\" | \"waiting\";\n  /** When they signed (epoch ms). */\n  signedAt?: number;\n  /** The person viewing the envelope. */\n  you?: boolean;\n};\n\n/** The v5 envelope out for signature: Halcyon has signed, Rachel is next, Arjun countersigns. */\nexport const envelope = {\n  id: \"ENV-26-4417\",\n  title: \"Halcyon Freight MSA (v5)\",\n  pages: 9,\n  sentAt: hoursAgo(26),\n  signers: [\n    { id: \"sg1\", name: \"Priya Natarajan\", role: \"COO, Halcyon Freight\", email: \"priya.natarajan@halcyonfreight.co.uk\", status: \"signed\", signedAt: hoursAgo(3) },\n    { id: \"sg2\", name: \"Rachel Stein\", role: \"General counsel, Northpeak\", email: \"rachel.stein@northpeak.io\", status: \"current\", you: true },\n    { id: \"sg3\", name: \"Arjun Mehta\", role: \"CFO, Northpeak\", email: \"arjun.mehta@northpeak.io\", status: \"waiting\" },\n  ] satisfies Signer[],\n};\n\nexport type Obligation = {\n  id: string;\n  /** The clause it was read from (an id in `msaFinal`). */\n  blockId: string;\n  party: \"Customer\" | \"Supplier\" | \"Both\";\n  /** The duty in plain words. */\n  text: string;\n  /** When it falls due, as written: \"Within 45 days of invoice\". */\n  due?: string;\n  /** The words in the clause it rests on, verbatim. */\n  quote: string;\n  /** 0–1, the model’s confidence. Under 0.7 asks for review. */\n  confidence: number;\n  /** Why it is unsure, for low-confidence rows. */\n  note?: string;\n};\n\n/** What Brief AI pulls out of the executed v5, in reading order. */\nexport const obligations: Obligation[] = [\n  { id: \"o1\", blockId: \"c-services\", party: \"Supplier\", text: \"Provide the services in each Order Form to industry standards\", due: \"Ongoing\", quote: \"provide the services described in each Order Form\", confidence: 0.96 },\n  { id: \"o2\", blockId: \"c-fees\", party: \"Customer\", text: \"Pay undisputed invoices\", due: \"Within 45 days of invoice\", quote: \"pay all undisputed invoices within forty-five (45) days of receipt\", confidence: 0.98 },\n  { id: \"o3\", blockId: \"c-fees-tax\", party: \"Customer\", text: \"Pay sales, use and value-added taxes on fees\", due: \"With each invoice\", quote: \"responsible for all sales, use and value-added taxes\", confidence: 0.91 },\n  {\n    id: \"o4\",\n    blockId: \"c-term\",\n    party: \"Both\",\n    text: \"Give notice of non-renewal\",\n    due: \"By Sep 2, 2027\",\n    quote: \"gives notice at least sixty (60) days before renewal\",\n    confidence: 0.64,\n    note: \"“Before renewal” could mean the renewal date or the end of the notice period. Read as 60 days before Nov 1, 2027.\",\n  },\n  { id: \"o5\", blockId: \"c-indemnity\", party: \"Both\", text: \"Indemnify the other for third-party claims from its own breach\", due: \"On a claim\", quote: \"indemnify the other against third-party claims arising from its breach\", confidence: 0.87 },\n  { id: \"o6\", blockId: \"c-data\", party: \"Supplier\", text: \"Process personal data only on documented instructions\", due: \"Ongoing\", quote: \"process personal data only on Customer’s documented instructions\", confidence: 0.94 },\n  {\n    id: \"o7\",\n    blockId: \"c-data\",\n    party: \"Supplier\",\n    text: \"Notify Customer of a personal data breach\",\n    due: \"Per the DPA\",\n    quote: \"in accordance with the Data Processing Addendum\",\n    confidence: 0.52,\n    note: \"The notice window lives in the Data Processing Addendum, which wasn’t attached. Inferred, not quoted.\",\n  },\n  { id: \"o8\", blockId: \"c-insurance\", party: \"Both\", text: \"Keep $2M general liability cover; certificate on request\", due: \"Ongoing\", quote: \"maintain commercial general liability insurance of at least $2,000,000 per occurrence\", confidence: 0.92 },\n];\n\nexport type TrackedDeadline = {\n  id: string;\n  title: string;\n  matterId: string;\n  /** Epoch ms. */\n  due: number;\n  /** When the clock started (served, docketed, agreed): the ring is the share of that window left. */\n  openedAt: number;\n  kind: \"Court\" | \"Contract\" | \"Filing\" | \"Internal\";\n  owner: string;\n};\n\n/** Every open deadline across the team’s matters, in no particular order. */\nexport const trackedDeadlines: TrackedDeadline[] = [\n  { id: \"td1\", title: \"Interrogatory responses\", matterId: \"m2\", due: daysFromNow(9, 17, 0), openedAt: daysAgo(21, 9, 0), kind: \"Court\", owner: \"Daniel Osei\" },\n  { id: \"td2\", title: \"Halcyon redline back\", matterId: \"m1\", due: daysFromNow(1, 12, 0), openedAt: daysAgo(6, 10, 0), kind: \"Contract\", owner: \"Mei Lin\" },\n  { id: \"td3\", title: \"Opposition evidence\", matterId: \"m4\", due: daysFromNow(11, 9, 0), openedAt: daysAgo(40, 9, 0), kind: \"Filing\", owner: \"Tomás Ferreira\" },\n  { id: \"td4\", title: \"Document production\", matterId: \"m2\", due: daysAgo(2, 17, 0), openedAt: daysAgo(32, 9, 0), kind: \"Court\", owner: \"Daniel Osei\" },\n  { id: \"td5\", title: \"Board consent: Series C\", matterId: \"m3\", due: daysFromNow(4, 15, 0), openedAt: daysAgo(10, 9, 0), kind: \"Internal\", owner: \"Rachel Stein\" },\n  { id: \"td6\", title: \"Deposition: R. Castellano\", matterId: \"m2\", due: daysFromNow(23, 10, 0), openedAt: daysAgo(5, 9, 0), kind: \"Court\", owner: \"Daniel Osei\" },\n];\n\nexport type ConflictRecord = {\n  id: string;\n  /** As it appears in the matter records. */\n  name: string;\n  /** Other names it trades under. */\n  aliases?: string[];\n  role: \"Client\" | \"Former client\" | \"Adverse party\" | \"Counterparty\" | \"Witness\";\n  matterId?: string;\n  /** For former clients and closed matters: what and when. */\n  matterName?: string;\n  lead?: string;\n};\n\n/** The firm’s conflict index: every client, adverse party and related party on record. */\nexport const conflictIndex: ConflictRecord[] = [\n  { id: \"ci1\", name: \"Northpeak Systems, Inc.\", aliases: [\"Northpeak\"], role: \"Client\", matterId: \"m1\", lead: \"Mei Lin\" },\n  { id: \"ci2\", name: \"Halcyon Freight Ltd\", role: \"Counterparty\", matterId: \"m1\", lead: \"Mei Lin\" },\n  { id: \"ci3\", name: \"Brightline Logistics\", aliases: [\"Brightline\"], role: \"Client\", matterId: \"m2\", lead: \"Daniel Osei\" },\n  { id: \"ci4\", name: \"Ade Okafor\", role: \"Adverse party\", matterId: \"m2\", lead: \"Daniel Osei\" },\n  { id: \"ci5\", name: \"Rosa Castellano\", role: \"Witness\", matterId: \"m2\", lead: \"Daniel Osei\" },\n  { id: \"ci6\", name: \"Orbit Analytics\", role: \"Client\", matterId: \"m4\", lead: \"Tomás Ferreira\" },\n  { id: \"ci7\", name: \"Orbital Labs, Inc.\", role: \"Adverse party\", matterId: \"m4\", lead: \"Tomás Ferreira\" },\n  { id: \"ci8\", name: \"Kestrel Air Cargo\", role: \"Former client\", matterName: \"Fleet leasing, closed 2024\", lead: \"Rachel Stein\" },\n  { id: \"ci9\", name: \"Marlow Capital Partners\", aliases: [\"Marlow Capital\"], role: \"Counterparty\", matterId: \"m3\", lead: \"Rachel Stein\" },\n];\n\n/** A new matter waiting on conflicts: Kestrel buying a Brightline depot. */\nexport const conflictIntake = {\n  matter: \"Kestrel Air Cargo: Leeds depot acquisition\",\n  parties: [\n    { name: \"Kestrel Air Cargo\", side: \"client\" as const },\n    { name: \"Brightline Logistics Inc.\", side: \"adverse\" as const },\n    { name: \"Fenwick & Shaw LLP\", side: \"adverse\" as const },\n    { name: \"Leeds Depot Holdings Ltd\", side: \"adverse\" as const },\n    { name: \"Rosa Castellano\", side: \"adverse\" as const },\n  ],\n};\n",
      "type": "registry:lib",
      "target": "@components/eased/_primitives/fixtures/legal.ts"
    },
    {
      "path": "src/registry/eased/_primitives/fixtures/real-estate.ts",
      "content": "/**\n * Real estate / CRE: one brokerage, \"Meridian Partners\", office and industrial in Austin.\n * Areas in sq ft, rents in USD per sq ft per year (full service). The Lamar is the subject\n * building across the pack: its stacking plan, leases, comps and underwriting all agree.\n */\nimport { createRng } from \"../realtime-core/rng\";\nimport type { TimelineEvent } from \"../timeline-core/types\";\nimport { daysAgo, daysFromNow, hoursAgo, lastMonths, series } from \"./shared\";\n\nexport type Property = { id: string; name: string; address: string; type: \"Office\" | \"Industrial\" | \"Retail\"; sqft: number; askingRentPsf: number; occupancy: number; capRate?: number; price?: number };\nexport const properties: Property[] = [\n  { id: \"pr1\", name: \"The Lamar\", address: \"1120 N Lamar Blvd, Austin, TX\", type: \"Office\", sqft: 186_400, askingRentPsf: 52.5, occupancy: 0.795, capRate: 0.0625, price: 94_500_000 },\n  { id: \"pr2\", name: \"Riverside Commons\", address: \"2400 E Riverside Dr, Austin, TX\", type: \"Retail\", sqft: 64_200, askingRentPsf: 38, occupancy: 0.93, capRate: 0.0675, price: 31_200_000 },\n  { id: \"pr3\", name: \"Tech Ridge Logistics\", address: \"12800 Center Lake Dr, Austin, TX\", type: \"Industrial\", sqft: 312_000, askingRentPsf: 13.75, occupancy: 1, capRate: 0.0575, price: 68_000_000 },\n  { id: \"pr4\", name: \"Domain Tower II\", address: \"11601 Alterra Pkwy, Austin, TX\", type: \"Office\", sqft: 241_000, askingRentPsf: 58, occupancy: 0.71 },\n];\n\nexport const brokers = [\"Carmen Diaz\", \"Will Hartley\", \"Nia Brooks\", \"Owen Park\"] as const;\n\nexport type Deal = { id: string; name: string; tenant: string; sqft: number; valueUsd: number; broker: string; stage: string; updatedAt: number };\nexport const dealStages = [\"Prospect\", \"Tour\", \"Proposal\", \"LOI\", \"Lease out\", \"Closed\"] as const;\n/** Twelve live deals; `valueUsd` is the lease's total contract value. dl5 and dl8 have gone quiet. */\nexport const deals: Deal[] = [\n  { id: \"dl1\", name: \"Lamar · Fl 9\", tenant: \"Ripple Health\", sqft: 14_200, valueUsd: 3_727_500, broker: \"Carmen Diaz\", stage: \"LOI\", updatedAt: hoursAgo(3) },\n  { id: \"dl2\", name: \"Domain II · Fl 14–15\", tenant: \"Kinetic Labs\", sqft: 38_600, valueUsd: 11_194_000, broker: \"Will Hartley\", stage: \"Proposal\", updatedAt: daysAgo(1) },\n  { id: \"dl3\", name: \"Tech Ridge · Bldg B\", tenant: \"Parcelpoint\", sqft: 96_000, valueUsd: 6_600_000, broker: \"Carmen Diaz\", stage: \"Lease out\", updatedAt: daysAgo(2) },\n  { id: \"dl4\", name: \"Riverside · Suite 120\", tenant: \"Juniper Coffee\", sqft: 2_400, valueUsd: 456_000, broker: \"Nia Brooks\", stage: \"Tour\", updatedAt: daysAgo(4) },\n  { id: \"dl5\", name: \"Lamar · Fl 3\", tenant: \"Greystone Legal\", sqft: 9_800, valueUsd: 2_572_500, broker: \"Will Hartley\", stage: \"Prospect\", updatedAt: daysAgo(19) },\n  { id: \"dl6\", name: \"Domain II · Fl 6\", tenant: \"Atlas Robotics\", sqft: 21_000, valueUsd: 6_090_000, broker: \"Nia Brooks\", stage: \"Closed\", updatedAt: daysAgo(8) },\n  { id: \"dl7\", name: \"Domain II · Fl 9\", tenant: \"Northwind Media\", sqft: 12_400, valueUsd: 3_596_000, broker: \"Owen Park\", stage: \"Prospect\", updatedAt: daysAgo(3) },\n  { id: \"dl8\", name: \"Lamar · Suite 1110\", tenant: \"Fable Health\", sqft: 6_200, valueUsd: 1_627_500, broker: \"Owen Park\", stage: \"Tour\", updatedAt: daysAgo(16) },\n  { id: \"dl9\", name: \"Tech Ridge · Bldg A\", tenant: \"Coldchain Co.\", sqft: 54_000, valueUsd: 3_712_500, broker: \"Carmen Diaz\", stage: \"Tour\", updatedAt: hoursAgo(20) },\n  { id: \"dl10\", name: \"Lamar · Suite 730\", tenant: \"Copperline Design\", sqft: 7_300, valueUsd: 1_916_250, broker: \"Nia Brooks\", stage: \"Proposal\", updatedAt: daysAgo(5) },\n  { id: \"dl11\", name: \"Domain II · Fl 3\", tenant: \"Verity Bank\", sqft: 18_500, valueUsd: 6_438_000, broker: \"Will Hartley\", stage: \"LOI\", updatedAt: daysAgo(2) },\n  { id: \"dl12\", name: \"Riverside · Suite 210\", tenant: \"Bloom Pediatrics\", sqft: 3_100, valueUsd: 706_800, broker: \"Owen Park\", stage: \"Closed\", updatedAt: daysAgo(11) },\n];\n\nexport type LeaseOption = { at: number; kind: \"renewal\" | \"termination\" | \"expansion\"; label: string };\nexport type Suite = { id: string; sqft: number; tenant: string | null; rentPsf?: number; expiresAt: number | null; options?: LeaseOption[] };\nexport type Floor = { floor: number; suites: Suite[] };\n\nconst lease = (id: string, sqft: number, tenant: string, rentPsf: number, expiresInDays: number, options?: LeaseOption[]): Suite => ({\n  id,\n  sqft,\n  tenant,\n  rentPsf,\n  expiresAt: daysFromNow(expiresInDays, 0, 0),\n  options,\n});\nconst vacant = (id: string, sqft: number): Suite => ({ id, sqft, tenant: null, expiresAt: null });\n\n/** The Lamar's stacking plan, floors 12 down to 5 (23,300 SF each); suites west to east. */\nexport const stackingPlan: Floor[] = [\n  { floor: 12, suites: [lease(\"1200\", 23_300, \"Bluebonnet Capital\", 49, 820, [{ at: daysFromNow(640, 0, 0), kind: \"renewal\", label: \"Renewal notice, 5 yr\" }])] },\n  { floor: 11, suites: [lease(\"1100\", 7_700, \"Mosaic Studio\", 47.5, 95), vacant(\"1110\", 6_200), lease(\"1120\", 9_400, \"Pecan Street Ventures\", 51, 610)] },\n  { floor: 10, suites: [lease(\"1000\", 12_800, \"Ripple Health\", 44, 140, [{ at: daysFromNow(20, 0, 0), kind: \"renewal\", label: \"Renewal notice, 3 yr\" }]), vacant(\"1010\", 4_600), lease(\"1020\", 5_900, \"Lone Star Title\", 50.5, 1_100)] },\n  { floor: 9, suites: [vacant(\"900\", 14_200), lease(\"920\", 9_100, \"Cedar & Vine Architects\", 48, 520)] },\n  { floor: 8, suites: [lease(\"800\", 23_300, \"Halden & Co.\", 53, 1_460, [{ at: daysFromNow(730, 0, 0), kind: \"termination\", label: \"Termination right\" }])] },\n  { floor: 7, suites: [lease(\"700\", 7_800, \"Austin Dental Group\", 46, 410), lease(\"710\", 8_200, \"Trellis Insurance\", 49.5, 950), vacant(\"730\", 7_300)] },\n  { floor: 6, suites: [lease(\"600\", 11_500, \"Northfield Partners\", 47, 300, [{ at: daysFromNow(120, 0, 0), kind: \"expansion\", label: \"Expansion right, Fl 7\" }]), lease(\"620\", 11_800, \"Kestrel Analytics\", 54.5, 1_700)] },\n  { floor: 5, suites: [lease(\"500\", 9_800, \"Bright Path Learning\", 42, 60), vacant(\"510\", 6_000), lease(\"520\", 7_500, \"Sol Wellness\", 51.5, 780)] },\n];\n\n/** Lease starts are seeded so they look like a real rent roll: 3 to 10 year terms. */\nconst starts = createRng(\"cre/lease-starts\");\n\n/** Every lease in The Lamar as a span (`packLanes`, `timeAxis`), soonest expiry first. */\nexport const leases: TimelineEvent<{ suite: string; floor: number; sqft: number; rentPsf: number; options: LeaseOption[] }>[] = stackingPlan\n  .flatMap((f) => f.suites.filter((s) => s.tenant).map((s) => ({ f, s })))\n  .sort((a, b) => (a.s.expiresAt ?? 0) - (b.s.expiresAt ?? 0))\n  .map(({ f, s }) => {\n    const termYears = starts.int(3, 10);\n    const end = s.expiresAt ?? 0;\n    return {\n      id: `ls-${s.id}`,\n      at: end - Math.round(termYears * 365.25) * 86_400_000,\n      end,\n      title: s.tenant ?? \"\",\n      detail: `Suite ${s.id}`,\n      data: { suite: s.id, floor: f.floor, sqft: s.sqft, rentPsf: s.rentPsf ?? 0, options: s.options ?? [] },\n    };\n  });\n\n/** Signed lease comps around The Lamar: size is the lease, not the building. */\nexport type Comp = { id: string; building: string; tenant: string; distanceMi: number; sqft: number; rentPsf: number; termMonths: number; signedAt: number };\nconst compRng = createRng(\"cre/comps\");\nexport const comps: Comp[] = (\n  [\n    [\"cp1\", \"Shoal Creek Plaza\", \"Brightwave\", 0.6, 11_200, 50.25, 84, 48],\n    [\"cp2\", \"300 West 6th\", \"Halcyon Pay\", 1.4, 22_600, 61, 120, 90],\n    [\"cp3\", \"Northshore Annex\", \"Ironleaf Legal\", 1.9, 8_400, 47.5, 64, 130],\n    [\"cp4\", \"Mueller Office II\", \"Tandem Bio\", 3.2, 16_900, 44, 96, 22],\n    [\"cp5\", \"Seaholm Offices\", \"Quarry Studio\", 1.1, 6_800, 55.75, 60, 61],\n    [\"cp6\", \"Westlake Centre\", \"Pinyon Capital\", 4.6, 13_300, 49, 87, 176],\n    [\"cp7\", \"Plaza on the Lake\", \"Arbor Dental\", 2.7, 5_200, 52, 66, 35],\n  ] as const\n).map(([id, building, tenant, distanceMi, sqft, rentPsf, termMonths, days]) => ({\n  id,\n  building,\n  tenant,\n  distanceMi,\n  sqft,\n  rentPsf,\n  termMonths,\n  // Signed mid-morning to late afternoon, as real executions are.\n  signedAt: daysAgo(days, compRng.int(9, 17), compRng.pick([0, 15, 30, 45])),\n}));\n/** The subject the comps are pulled for: suite 900, quoted at The Lamar's asking rent. */\nexport const compSubject = { id: \"subject\", building: \"The Lamar\", tenant: \"Suite 900\", sqft: 14_200, rentPsf: 52.5, termMonths: 84 };\n\n/** Broker calendar for Mon 19 – Wed 21 Oct: busy blocks (UTC); 9:00–18:00 is the bookable window. */\nexport const tourBusy = [\n  { start: daysFromNow(1, 9, 0), end: daysFromNow(1, 10, 30) },\n  { start: daysFromNow(1, 13, 0), end: daysFromNow(1, 14, 0) },\n  { start: daysFromNow(2, 11, 0), end: daysFromNow(2, 12, 30) },\n  { start: daysFromNow(3, 15, 0), end: daysFromNow(3, 17, 0) },\n];\n\nexport const market = {\n  months: lastMonths(12),\n  vacancy: series(\"cre/vacancy\", { count: 12, start: 0.214, trend: -0.06, noise: 0.01, decimals: 4 }),\n  askingRentPsf: series(\"cre/rent\", { count: 12, start: 47.1, trend: 0.035, noise: 0.004, decimals: 2 }),\n  netAbsorptionSqft: series(\"cre/absorption\", { count: 12, start: 210_000, trend: 0.4, noise: 0.35, min: -150_000 }),\n};\n\n/** The Lamar, suite 900: Ripple Health's LOI at 4% of contract value, split four ways. */\nexport const commission = {\n  dealId: \"dl1\",\n  rate: 0.04,\n  base: 3_727_500,\n  parties: [\n    { id: \"cd\", name: \"Carmen Diaz\", role: \"Lead broker\", share: 0.45 },\n    { id: \"wh\", name: \"Will Hartley\", role: \"Co-broker\", share: 0.25 },\n    { id: \"op\", name: \"Owen Park\", role: \"Referral\", share: 0.1 },\n    { id: \"house\", name: \"Meridian Partners\", role: \"House\", share: 0.2 },\n  ],\n};\n/** @deprecated Use `commission.parties`. */\nexport const commissionSplit = commission.parties.map((p) => ({ broker: p.name, share: p.share }));\n\n/** Underwriting The Lamar at its ask: five-year hold, unlevered. Rates are shares. */\nexport const underwriting = {\n  propertyId: \"pr1\",\n  sqft: 186_400,\n  price: 94_500_000,\n  rentPsf: 52.5,\n  vacancy: 0.13,\n  opexPsf: 14,\n  rentGrowth: 0.03,\n  expenseGrowth: 0.03,\n  exitCap: 0.065,\n  holdYears: 5,\n  sellingCost: 0.02,\n  /** The fund's unlevered hurdle. */\n  targetIrr: 0.08,\n  /** Sensitivity axes: exit cap rows, rent growth columns. */\n  exitCaps: [0.06, 0.0625, 0.065, 0.0675, 0.07],\n  rentGrowths: [0.01, 0.02, 0.03, 0.04, 0.05],\n};\n",
      "type": "registry:lib",
      "target": "@components/eased/_primitives/fixtures/real-estate.ts"
    },
    {
      "path": "src/registry/eased/_primitives/fixtures/saas.ts",
      "content": "/** Analytics / SaaS admin: one product, \"Orbit\", a B2B analytics app. */\nimport type { TimelineEvent } from \"../timeline-core/types\";\nimport { FIXTURE_NOW, daysAgo, daysFromNow, hoursAgo, lastDays, lastMonths, minutesAgo, series } from \"./shared\";\n\nconst days = lastDays(90);\n/** 90 days of daily metrics. Revenue up, activation flat, churn edging down. */\nexport const metricsDaily = {\n  days,\n  mrr: series(\"saas/mrr\", { count: 90, start: 182_400, trend: 0.14, noise: 0.004 }),\n  activeUsers: series(\"saas/dau\", { count: 90, start: 8_920, trend: 0.22, noise: 0.04, weekly: 0.3 }),\n  signups: series(\"saas/signups\", { count: 90, start: 214, trend: 0.08, noise: 0.18, weekly: 0.35 }),\n  churnRate: series(\"saas/churn\", { count: 90, start: 0.031, trend: -0.18, noise: 0.05, decimals: 4 }),\n  /** Share of new workspaces that connect data in their first week: flat, a little noisy. */\n  activation: series(\"saas/activation\", { count: 90, start: 0.414, trend: -0.01, noise: 0.03, decimals: 4 }),\n};\n/** 180 days of the same metrics, so a 90-day range can compare against the 90 days before it. */\nexport const metricsHistory = {\n  days: lastDays(180),\n  mrr: series(\"saas/mrr-180\", { count: 180, start: 161_800, trend: 0.29, noise: 0.004 }),\n  activeUsers: series(\"saas/dau-180\", { count: 180, start: 7_340, trend: 0.48, noise: 0.04, weekly: 0.3 }),\n  signups: series(\"saas/signups-180\", { count: 180, start: 168, trend: 0.52, noise: 0.07, weekly: 0.25 }),\n  churnRate: series(\"saas/churn-180\", { count: 180, start: 0.036, trend: -0.3, noise: 0.025, decimals: 4 }),\n};\nexport const metricsMonthly = { months: lastMonths(12), mrr: series(\"saas/mrr-m\", { count: 12, start: 121_000, trend: 0.71, noise: 0.02 }) };\n\n/** Stat tiles: value now and the same period before. */\nexport const kpis = [\n  { id: \"mrr\", label: \"MRR\", value: 207_940, previous: 198_310, format: \"currency\" as const, currency: \"USD\" },\n  { id: \"active\", label: \"Weekly active\", value: 10_884, previous: 10_212, format: \"number\" as const },\n  { id: \"activation\", label: \"Activation\", value: 0.412, previous: 0.418, format: \"percent\" as const },\n  { id: \"churn\", label: \"Logo churn\", value: 0.026, previous: 0.029, format: \"percent\" as const, lowerIsBetter: true },\n];\n\nexport const funnel = [\n  { stage: \"Visited pricing\", count: 24_810 },\n  { stage: \"Started trial\", count: 3_942 },\n  { stage: \"Connected data\", count: 2_317 },\n  { stage: \"Invited a teammate\", count: 1_108 },\n  { stage: \"Converted\", count: 486 },\n];\n\nexport type Member = { id: string; name: string; email: string; role: \"Owner\" | \"Admin\" | \"Member\" | \"Viewer\"; lastActiveAt: number; avatarUrl?: string };\nexport const teamMembers: Member[] = [\n  { id: \"u1\", name: \"Priya Raman\", email: \"priya@orbit.app\", role: \"Owner\", lastActiveAt: minutesAgo(3) },\n  { id: \"u2\", name: \"Jonas Lindqvist\", email: \"jonas@orbit.app\", role: \"Admin\", lastActiveAt: hoursAgo(2) },\n  { id: \"u3\", name: \"Adaeze Okafor\", email: \"adaeze@orbit.app\", role: \"Member\", lastActiveAt: hoursAgo(26) },\n  { id: \"u4\", name: \"Lucas Moreau\", email: \"lucas@orbit.app\", role: \"Member\", lastActiveAt: daysAgo(4) },\n  { id: \"u5\", name: \"Sofia Esposito\", email: \"sofia.e@northpeak.io\", role: \"Viewer\", lastActiveAt: daysAgo(11) },\n];\n\nexport const plans = [\n  { id: \"starter\", name: \"Starter\", monthly: 29, yearly: 24, seats: 3, events: \"100K events / mo\" },\n  { id: \"growth\", name: \"Growth\", monthly: 99, yearly: 82, seats: 10, events: \"2M events / mo\", recommended: true },\n  { id: \"scale\", name: \"Scale\", monthly: 349, yearly: 290, seats: 50, events: \"25M events / mo\" },\n];\nexport const usage = { plan: \"growth\", eventsUsed: 1_642_000, eventsLimit: 2_000_000, seatsUsed: 7, seatsLimit: 10, renewsAt: daysAgo(-13, 0, 0), nextInvoiceUsd: 99 };\n\nexport const notifications: TimelineEvent<{ unread: boolean }>[] = [\n  { id: \"n1\", at: minutesAgo(6), title: \"Jonas commented on “Q3 retention”\", kind: \"comment\", data: { unread: true } },\n  { id: \"n2\", at: minutesAgo(48), title: \"Weekly digest is ready\", kind: \"report\", data: { unread: true } },\n  { id: \"n3\", at: hoursAgo(5), title: \"Snowflake sync failed: credentials expired\", kind: \"alert\", tone: \"danger\", data: { unread: true } },\n  { id: \"n4\", at: daysAgo(1, 15, 2), title: \"Adaeze shared “Activation by channel”\", kind: \"share\", data: { unread: false } },\n  { id: \"n5\", at: daysAgo(2, 10, 30), title: \"You’re at 82% of this month’s events\", kind: \"billing\", tone: \"warning\", data: { unread: false } },\n];\n\nexport const auditLog: TimelineEvent<{ target: string; before?: string; after?: string }>[] = [\n  { id: \"a1\", at: minutesAgo(12), title: \"Changed role\", actor: { name: \"Priya Raman\" }, data: { target: \"Lucas Moreau\", before: \"Viewer\", after: \"Member\" } },\n  { id: \"a2\", at: hoursAgo(3), title: \"Rotated API key\", actor: { name: \"Jonas Lindqvist\" }, data: { target: \"Ingest key (prod)\" } },\n  { id: \"a3\", at: hoursAgo(20), title: \"Updated retention policy\", actor: { name: \"Priya Raman\" }, data: { target: \"Raw events\", before: \"13 months\", after: \"25 months\" } },\n  { id: \"a4\", at: daysAgo(2, 9, 12), title: \"Enabled SAML SSO\", actor: { name: \"Jonas Lindqvist\" }, data: { target: \"okta.orbit.app\" } },\n  { id: \"a5\", at: daysAgo(5, 16, 40), title: \"Invited member\", actor: { name: \"Priya Raman\" }, data: { target: \"sofia.e@northpeak.io\" } },\n];\n\nexport const onboarding = [\n  { id: \"o1\", label: \"Install the snippet\", done: true, description: \"Paste one script tag, or add the npm package.\", action: \"View snippet\", minutes: 2 },\n  { id: \"o2\", label: \"Connect a data source\", done: true, description: \"Postgres, Snowflake, BigQuery or Stripe.\", action: \"Connect\", minutes: 5 },\n  { id: \"o3\", label: \"Build your first dashboard\", done: false, description: \"Start from the SaaS template or a blank canvas.\", action: \"Open template\", minutes: 4 },\n  { id: \"o4\", label: \"Invite your team\", done: false, description: \"Teammates see what you see. Viewers are free.\", action: \"Invite\", minutes: 1 },\n  { id: \"o5\", label: \"Set a weekly digest\", done: false, description: \"Monday 9:00 AM, straight to Slack or email.\", action: \"Schedule\", minutes: 1 },\n];\n\n/** Where each KPI comes from: the rows a drilldown shows under its chart. */\nexport const kpiBreakdown: Record<string, { id: string; label: string; value: number; previous: number }[]> = {\n  mrr: [\n    { id: \"scale\", label: \"Scale\", value: 96_420, previous: 89_310 },\n    { id: \"growth\", label: \"Growth\", value: 71_280, previous: 69_700 },\n    { id: \"starter\", label: \"Starter\", value: 26_150, previous: 26_980 },\n    { id: \"enterprise\", label: \"Enterprise\", value: 14_090, previous: 12_320 },\n  ],\n  active: [\n    { id: \"web\", label: \"Web app\", value: 7_412, previous: 7_018 },\n    { id: \"slack\", label: \"Slack digest\", value: 2_266, previous: 2_041 },\n    { id: \"api\", label: \"API\", value: 812, previous: 794 },\n    { id: \"mobile\", label: \"Mobile\", value: 394, previous: 359 },\n  ],\n  activation: [\n    { id: \"organic\", label: \"Organic search\", value: 0.468, previous: 0.461 },\n    { id: \"referral\", label: \"Referral\", value: 0.452, previous: 0.47 },\n    { id: \"paid\", label: \"Paid social\", value: 0.318, previous: 0.336 },\n    { id: \"partner\", label: \"Partners\", value: 0.401, previous: 0.389 },\n  ],\n  churn: [\n    { id: \"starter\", label: \"Starter\", value: 0.048, previous: 0.053 },\n    { id: \"growth\", label: \"Growth\", value: 0.021, previous: 0.024 },\n    { id: \"scale\", label: \"Scale\", value: 0.009, previous: 0.008 },\n    { id: \"enterprise\", label: \"Enterprise\", value: 0.004, previous: 0.006 },\n  ],\n};\n\n/**\n * Usage-based pricing: a platform fee, seats past the included ones, and graduated event\n * tiers priced per 1,000 events (each tier's rate applies only to the events inside it).\n */\nexport const usagePricing = {\n  currency: \"USD\",\n  platform: 49,\n  seats: { included: 3, unit: 15, max: 100 },\n  events: {\n    min: 100_000,\n    max: 100_000_000,\n    tiers: [\n      { upTo: 1_000_000, per1k: 0, label: \"Included\" },\n      { upTo: 10_000_000, per1k: 0.09, label: \"Growth\" },\n      { upTo: 50_000_000, per1k: 0.06, label: \"Volume\" },\n      { upTo: Infinity, per1k: 0.04, label: \"Scale\" },\n    ],\n  },\n  yearlyDiscount: 0.17,\n};\n\n/** The workspace's subscription, its upcoming invoice and payment method. */\nexport const billing = {\n  plan: \"Growth\",\n  interval: \"month\" as const,\n  renewsAt: daysFromNow(13, 0, 0),\n  card: { brand: \"Visa\", last4: \"4417\", expires: \"08/28\" },\n  lines: [\n    { id: \"plan\", label: \"Growth plan\", amount: 99 },\n    { id: \"sync\", label: \"Warehouse sync add-on\", amount: 30 },\n    { id: \"events\", label: \"Events over 2M (est.)\", amount: 0 },\n  ],\n  invoices: [\n    { id: \"INV-0931\", at: daysAgo(18, 0, 0), amount: 129, status: \"paid\" as const },\n    { id: \"INV-0874\", at: daysAgo(48, 0, 0), amount: 141.6, status: \"paid\" as const },\n    { id: \"INV-0812\", at: daysAgo(79, 0, 0), amount: 114, status: \"paid\" as const },\n  ],\n  cancelReasons: [\n    { id: \"price\", label: \"It costs too much\" },\n    { id: \"missing\", label: \"It’s missing something we need\" },\n    { id: \"switch\", label: \"We’re moving to another tool\" },\n    { id: \"pause\", label: \"We only need it seasonally\" },\n    { id: \"other\", label: \"Something else\" },\n  ],\n};\n\nexport type OrbitNotification = TimelineEvent<{ unread: boolean; context?: string }>;\n/** The notification feed: three days deep, mixed kinds, some unread. Newest first. */\nexport const notificationFeed: OrbitNotification[] = [\n  { id: \"f1\", at: minutesAgo(4), title: \"commented on Q3 retention\", actor: { name: \"Jonas Lindqvist\" }, kind: \"comment\", data: { unread: true, context: \"“Can we split this by plan?”\" } },\n  { id: \"f2\", at: minutesAgo(38), title: \"Weekly digest is ready\", kind: \"report\", data: { unread: true, context: \"MRR up 4.9%, churn down\" } },\n  { id: \"f3\", at: hoursAgo(3), title: \"Snowflake sync failed\", kind: \"alert\", tone: \"danger\", data: { unread: true, context: \"Credentials expired\" } },\n  { id: \"f4\", at: hoursAgo(6), title: \"shared Activation by channel\", actor: { name: \"Adaeze Okafor\" }, kind: \"share\", data: { unread: false, context: \"Dashboard\" } },\n  { id: \"f5\", at: daysAgo(1, 16, 12), title: \"You’re at 82% of this month’s events\", kind: \"billing\", tone: \"warning\", data: { unread: false, context: \"1.64M of 2M\" } },\n  { id: \"f6\", at: daysAgo(1, 11, 40), title: \"joined the workspace\", actor: { name: \"Sofia Esposito\" }, kind: \"member\", data: { unread: false, context: \"Viewer\" } },\n  { id: \"f7\", at: daysAgo(3, 9, 5), title: \"mentioned you in Pricing page funnel\", actor: { name: \"Lucas Moreau\" }, kind: \"comment\", data: { unread: false, context: \"“@Priya does this match Stripe?”\" } },\n  { id: \"f8\", at: daysAgo(4, 15, 30), title: \"Export finished\", kind: \"report\", data: { unread: false, context: \"events_sep.csv, 48 MB\" } },\n];\n/** What arrives while the feed is open, for live demos. */\nexport const incomingNotifications: OrbitNotification[] = [\n  { id: \"i1\", at: FIXTURE_NOW, title: \"replied to your comment\", actor: { name: \"Jonas Lindqvist\" }, kind: \"comment\", data: { unread: true, context: \"“Done, it’s on the second tab.”\" } },\n  { id: \"i2\", at: FIXTURE_NOW, title: \"Snowflake sync recovered\", kind: \"alert\", tone: \"success\", data: { unread: true, context: \"2.1M rows backfilled\" } },\n];\n",
      "type": "registry:lib",
      "target": "@components/eased/_primitives/fixtures/saas.ts"
    },
    {
      "path": "src/registry/eased/_primitives/fixtures/shared.ts",
      "content": "/**\n * What every industry fixture shares: the fixed \"now\", time helpers, seeded series and Intl\n * formatters (rule 93). Fixtures store raw numbers and epoch ms; format at render time with\n * these, so the server and the browser print the same thing.\n */\nimport { createRng, roundTo } from \"../realtime-core/rng\";\n\n/** Sunday 18 Oct 2026, 14:30 UTC. Every fixture's \"now\"; pass it as `now`/`today` to the cores. */\nexport const FIXTURE_NOW = Date.UTC(2026, 9, 18, 14, 30);\n/** Formatting defaults that don't depend on the viewer's machine. Override per call. */\nexport const FIXTURE_LOCALE = \"en-US\";\nexport const FIXTURE_TIME_ZONE = \"UTC\";\n\nconst MIN = 60_000;\nconst HOUR = 60 * MIN;\n/** Epoch ms `n` minutes / hours / days before `FIXTURE_NOW` (negative for the future). */\nexport const minutesAgo = (n: number) => FIXTURE_NOW - n * MIN;\nexport const hoursAgo = (n: number) => FIXTURE_NOW - n * HOUR;\n/** `n` days ago at `hh:mm` UTC. */\nexport const daysAgo = (n: number, hh = 14, mm = 30) => Date.UTC(2026, 9, 18 - n, hh, mm);\nexport const daysFromNow = (n: number, hh = 9, mm = 0) => daysAgo(-n, hh, mm);\n\nexport type SeriesOptions = {\n  count: number;\n  /** First value. */\n  start: number;\n  /** Total drift over the series as a share (0.18 = ends ≈ 18% up). Default 0. */\n  trend?: number;\n  /** Per-step noise as a share. Default 0.03. */\n  noise?: number;\n  /** Weekly seasonality amplitude as a share (dips on weekends). Default 0. */\n  weekly?: number;\n  decimals?: number;\n  min?: number;\n};\n\n/** A seeded, realistic metric series: a trend, noise and optional weekly rhythm. */\nexport function series(seed: string, { count, start, trend = 0, noise = 0.03, weekly = 0, decimals = 0, min = 0 }: SeriesOptions): number[] {\n  const rng = createRng(seed);\n  const out: number[] = [];\n  let level = start;\n  const step = Math.pow(1 + trend, 1 / Math.max(1, count - 1));\n  for (let i = 0; i < count; i++) {\n    // Day i counts back from Sunday's FIXTURE_NOW: (count - 1 - i) days ago.\n    const weekday = (7 - ((count - 1 - i) % 7)) % 7; // 0 = Sunday\n    const season = weekday === 0 || weekday === 6 ? 1 - weekly : 1 + weekly * 0.4;\n    out.push(roundTo(Math.max(min, level * season * (1 + noise * rng.normal())), decimals));\n    level *= step;\n  }\n  return out;\n}\n\n/** Day timestamps (UTC 00:00) for the last `count` days, oldest first, ending today. */\nexport const lastDays = (count: number) => Array.from({ length: count }, (_, i) => daysAgo(count - 1 - i, 0, 0));\n/** Month starts for the last `count` months, oldest first, ending this month. */\nexport const lastMonths = (count: number) => Array.from({ length: count }, (_, i) => Date.UTC(2026, 9 - (count - 1 - i), 1));\n\nconst cache = new Map<string, Intl.NumberFormat | Intl.DateTimeFormat>();\nconst nf = (locale: string, o: Intl.NumberFormatOptions) => {\n  const k = `n|${locale}|${JSON.stringify(o)}`;\n  let f = cache.get(k) as Intl.NumberFormat | undefined;\n  if (!f) cache.set(k, (f = new Intl.NumberFormat(locale, o)));\n  return f;\n};\nconst df = (locale: string, o: Intl.DateTimeFormatOptions) => {\n  const k = `d|${locale}|${JSON.stringify(o)}`;\n  let f = cache.get(k) as Intl.DateTimeFormat | undefined;\n  if (!f) cache.set(k, (f = new Intl.DateTimeFormat(locale, o)));\n  return f;\n};\n\ntype Loc = { locale?: string };\n/** `$1,284.50`, `€0.92`, `-$42.00`; `compact` gives `$4.2M`. Decimals follow the currency unless set. */\nexport const formatMoney = (v: number, currency = \"USD\", { locale = FIXTURE_LOCALE, compact = false, decimals }: Loc & { compact?: boolean; decimals?: number } = {}) =>\n  nf(locale, {\n    style: \"currency\",\n    currency,\n    notation: compact ? \"compact\" : \"standard\",\n    minimumFractionDigits: decimals,\n    maximumFractionDigits: decimals ?? (compact ? 1 : undefined),\n  }).format(v);\n/** `12,480`, `1.0842`, `4.2K` with `compact`. */\nexport const formatNumber = (v: number, { locale = FIXTURE_LOCALE, decimals, compact = false }: Loc & { decimals?: number; compact?: boolean } = {}) =>\n  nf(locale, { notation: compact ? \"compact\" : \"standard\", minimumFractionDigits: decimals, maximumFractionDigits: decimals ?? (compact ? 1 : 3) }).format(v);\n/** A share as a percent: `0.0342` → `3.4%`; `signed` gives `+3.4%` / `−1.2%`. */\nexport const formatPercent = (v: number, { locale = FIXTURE_LOCALE, decimals = 1, signed = false }: Loc & { decimals?: number; signed?: boolean } = {}) =>\n  nf(locale, { style: \"percent\", minimumFractionDigits: decimals, maximumFractionDigits: decimals, signDisplay: signed ? \"exceptZero\" : \"auto\" }).format(v);\n/** `Oct 18, 2026`; `short` gives `Oct 18`. */\nexport const formatDate = (t: number, { locale = FIXTURE_LOCALE, timeZone = FIXTURE_TIME_ZONE, short = false }: Loc & { timeZone?: string; short?: boolean } = {}) =>\n  df(locale, { month: \"short\", day: \"numeric\", year: short ? undefined : \"numeric\", timeZone }).format(t);\n/** `2:30 PM`. */\nexport const formatTime = (t: number, { locale = FIXTURE_LOCALE, timeZone = FIXTURE_TIME_ZONE }: Loc & { timeZone?: string } = {}) =>\n  df(locale, { hour: \"numeric\", minute: \"2-digit\", timeZone }).format(t);\n",
      "type": "registry:lib",
      "target": "@components/eased/_primitives/fixtures/shared.ts"
    }
  ],
  "type": "registry:lib"
}