{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "live-ticker",
  "title": "Live Ticker",
  "description": "A big comma-separated counter rolls its digits up like a live ticker with a feed above.",
  "dependencies": ["remotion", "@remotion/google-fonts"],
  "files": [
    {
      "path": "registry/remocn/live-ticker/index.tsx",
      "content": "\"use client\";\n\nimport { loadFont } from \"@remotion/google-fonts/Geist\";\nimport { loadFont as loadMono } from \"@remotion/google-fonts/GeistMono\";\nimport { loadFont as loadSerif } from \"@remotion/google-fonts/InstrumentSerif\";\nimport { loadFont as loadManrope } from \"@remotion/google-fonts/Manrope\";\nimport type React from \"react\";\nimport { useId, useMemo } from \"react\";\nimport {\n  AbsoluteFill,\n  Easing,\n  interpolate,\n  useCurrentFrame,\n  useVideoConfig,\n} from \"remotion\";\n\nconst { fontFamily: sans } = loadFont(\"normal\", {\n  weights: [\"300\", \"400\"],\n  subsets: [\"latin\"],\n});\nconst { fontFamily: mono } = loadMono(\"normal\", {\n  weights: [\"400\", \"500\"],\n  subsets: [\"latin\"],\n});\nconst { fontFamily: serif } = loadSerif(\"italic\", {\n  weights: [\"400\"],\n  subsets: [\"latin\"],\n});\nconst manrope = loadManrope(\"normal\", {\n  weights: [\"500\", \"600\"],\n  subsets: [\"latin\"],\n});\n\nconst REMOCN_R_PATH =\n  \"M 0.01 0.81 C 0.01 1.73, 0.36 2.79, 1.09 4.13 C 4.91 11.04, 13.45 17.16, 21.7 18.9 C 22.94 19.16, 23.18 19.16, 51.39 19.27 C 76.07 19.36, 80.02 19.4, 81.32 19.57 C 89.89 20.69, 96.2 24.68, 99.38 31.01 C 103.19 38.56, 102.53 50.1, 97.91 57.07 C 94.66 61.96, 89.68 64.99, 83.26 66 C 82.81 66.07, 70.18 66.83, 55.2 67.69 C 24.82 69.43, 27.03 69.23, 24.18 70.4 C 19.9 72.15, 14.84 75.7, 10.65 79.89 C 4.86 85.68, 1.3 91.91, 0.25 98.13 C 0.12 98.85, 0.08 103.13, 0.04 116.66 L 0 134.26 9.5 134.26 L 19 134.26 19.05 119.41 C 19.1 103.27, 19.08 103.82, 19.82 101.04 C 21.79 93.65, 27.86 88.75, 36.45 87.63 C 37.23 87.53, 39.41 87.5, 43.57 87.53 C 50.12 87.59, 50.75 87.65, 53.22 88.45 C 56.61 89.56, 59.67 91.86, 62.02 95.07 C 62.52 95.76, 69.35 103.85, 77.2 113.07 C 85.04 122.28, 91.63 130.04, 91.85 130.32 C 92.07 130.59, 92.5 131.34, 92.82 131.97 C 93.52 133.35, 94.11 133.93, 95.06 134.13 C 95.5 134.23, 98.97 134.26, 106.36 134.23 L 117.01 134.19 100.82 113.07 C 91.91 101.45, 84.52 91.78, 84.39 91.57 C 83.36 89.89, 83.66 87.53, 85.09 86 C 85.79 85.25, 86.36 84.94, 88.07 84.38 C 96.18 81.72, 104.15 76.62, 109.97 70.36 C 120.59 58.93, 124.06 44.32, 119.44 30.43 C 114.59 15.81, 101.93 4.02, 87.64 0.83 C 83.93 0.01, 88.09 0.08, 41.85 0.04 L 0.01 0 0.01 0.81 Z\";\n\n/** Full logo as on remocn.dev: R mark (0.76em tall, baseline-aligned) + \"emocn\" in Manrope 600. */\nfunction RemocnLogo({ fontSize, color }: { fontSize: number; color: string }) {\n  return (\n    <div\n      style={{\n        display: \"flex\",\n        alignItems: \"baseline\",\n        color,\n        fontFamily: manrope.fontFamily,\n        fontWeight: 600,\n        fontSize,\n        letterSpacing: \"-0.025em\",\n        lineHeight: 1,\n      }}\n    >\n      <svg\n        viewBox=\"0 0 124.06 134.26\"\n        style={{ height: \"0.76em\", width: \"auto\" }}\n        aria-hidden\n      >\n        <path fill=\"currentColor\" d={REMOCN_R_PATH} />\n      </svg>\n      <span style={{ marginLeft: \"0.04em\" }}>emocn</span>\n    </div>\n  );\n}\n\nexport interface LiveTickerProps {\n  /** Where the counter lands and freezes. */\n  value?: number;\n  /** Serif italic word under the frozen number. */\n  unit?: string;\n  /** Product after \"on\"; \"remocn\" renders the real logo. */\n  name?: string;\n  /** Replaces the logo / name in the label. */\n  logo?: React.ReactNode;\n  /** Small caps tag above the number while it runs. */\n  kicker?: string;\n  /** Customer names riding the transaction pills. */\n  feed?: string[];\n  accent?: string;\n  /** Playback multiplier. */\n  speed?: number;\n  theme?: \"dark\" | \"light\";\n}\n\n// Geist (wght 300) figures with `tnum`: every digit advances 0.6em, the comma 0.188em.\nconst DIGIT_ADV = 0.6;\nconst COMMA_ADV = 0.19;\nconst TRACK = -0.035;\nconst CAP = 0.71;\n\nconst EASE_OUT = Easing.bezier(0.22, 1, 0.36, 1);\nconst EASE_IO = Easing.bezier(0.65, 0, 0.35, 1);\nconst CLAMP = {\n  extrapolateLeft: \"clamp\",\n  extrapolateRight: \"clamp\",\n} as const;\n\n// Beat sheet (30fps, speed 1):\n//   0–18   columns rise into place one by one, already ticking; streams running\n//   0–70   full rate: the low digits smear, pills and dots slide in from both\n//          edges and get swallowed by the number, each one a small bump\n//  70–104  streams dry up, the rate brakes, columns settle one by one\n//   104    frozen on `value`; label rises under it, poster holds to the end\nconst BRAKE_AT = 70;\nconst FREEZE_AT = 104;\nconst LAST_SPAWN = 70;\n/** Digits per frame above which a column flips instead of rolling. */\nconst FAST = 0.2;\n\n// gradients.sh \"mesh\" (bg #0a0d24): #ecdcf2 #8796ee #2e45b7 #0e1645.\nconst THEMES = {\n  dark: {\n    bg: \"#0A0A0B\",\n    fg: \"#F3F2EF\",\n    muted: \"#8B8A90\",\n    hair: [243, 242, 239] as const,\n    base: \"#8796EE\",\n    blobs: [\"#ECDCF2\", \"#8796EE\", \"#ECDCF2\", \"#5D72E4\"],\n    flash: \"#FFFFFF\",\n    band: [\"#2E45B7\", \"#8796EE\", \"#2E45B7\"],\n    bandAlpha: 0.42,\n    pillFill: \"#18181B\",\n    pillLine: \"rgba(243,242,239,0.16)\",\n    pillText: \"rgba(243,242,239,0.74)\",\n    grain: 0.05,\n  },\n  light: {\n    bg: \"#F5F4F0\",\n    fg: \"#121214\",\n    muted: \"#6E6C67\",\n    hair: [18, 18, 20] as const,\n    base: \"#2E45B7\",\n    blobs: [\"#0E1645\", \"#2E45B7\", \"#5D72E4\", \"#1B2A7A\"],\n    flash: \"#8796EE\",\n    band: [\"#C4CBF6\", \"#ECDCF2\", \"#C4CBF6\"],\n    bandAlpha: 0.6,\n    pillFill: \"#FFFFFF\",\n    pillLine: \"rgba(18,18,20,0.14)\",\n    pillText: \"rgba(18,18,20,0.72)\",\n    grain: 0.035,\n  },\n} as const;\n\nconst FORMATS = [\"4K\", \"1080p\", \"9:16\", \"60fps\", \"ProRes\", \"1:1\"];\n\nfunction hash(n: number) {\n  const s = Math.sin(n * 127.1 + 311.7) * 43758.5453;\n  return s - Math.floor(s);\n}\n\nfunction smooth(x: number) {\n  const c = Math.max(0, Math.min(1, x));\n  return c * c * (3 - 2 * c);\n}\n\nfunction bez(a: number, b: number, c: number, d: number, s: number) {\n  const m = 1 - s;\n  return m * m * m * a + 3 * m * m * s * b + 3 * m * s * s * c + s * s * s * d;\n}\n\ninterface Lane {\n  side: 0 | 1;\n  /** start, in frame fractions */\n  x0: number;\n  y0: number;\n  /** enters from the side edge (h) or from the top/bottom edge (v) */\n  from: \"h\" | \"v\";\n  /** landing height on the number, in cap heights from its middle */\n  off: number;\n  /** carries labelled pills between its dots */\n  pills: boolean;\n}\n\n// Five lanes per side fanning into the number's ends; the outer ones start\n// at the top and bottom edges so the streams fill the frame.\nconst LANES: Lane[] = [\n  { side: 0, x0: -0.02, y0: 0.5, from: \"h\", off: 0, pills: false },\n  { side: 0, x0: -0.02, y0: 0.27, from: \"h\", off: -0.22, pills: false },\n  { side: 0, x0: 0.135, y0: -0.05, from: \"v\", off: -0.44, pills: true },\n  { side: 0, x0: -0.02, y0: 0.74, from: \"h\", off: 0.22, pills: false },\n  { side: 0, x0: 0.155, y0: 1.05, from: \"v\", off: 0.44, pills: true },\n  { side: 1, x0: 1.02, y0: 0.44, from: \"h\", off: 0, pills: false },\n  { side: 1, x0: 0.86, y0: -0.05, from: \"v\", off: -0.44, pills: true },\n  { side: 1, x0: 1.02, y0: 0.2, from: \"h\", off: -0.22, pills: false },\n  { side: 1, x0: 1.02, y0: 0.7, from: \"h\", off: 0.22, pills: false },\n  { side: 1, x0: 0.875, y0: 1.05, from: \"v\", off: 0.44, pills: true },\n];\n\ninterface Item {\n  lane: number;\n  spawn: number;\n  dur: number;\n  pill: boolean;\n  text: string;\n  bump: number;\n}\n\nfunction Grain({ opacity }: { opacity: number }) {\n  const id = `g${useId().replace(/[^a-zA-Z0-9_-]/g, \"\")}`;\n  return (\n    <svg\n      width=\"100%\"\n      height=\"100%\"\n      style={{ position: \"absolute\", inset: 0, opacity }}\n      aria-hidden\n    >\n      <filter id={id}>\n        <feTurbulence\n          type=\"fractalNoise\"\n          baseFrequency=\"0.9\"\n          numOctaves={2}\n          seed={7}\n          stitchTiles=\"stitch\"\n        />\n        <feColorMatrix values=\"0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0.9 0\" />\n      </filter>\n      <rect width=\"100%\" height=\"100%\" filter={`url(#${id})`} />\n    </svg>\n  );\n}\n\nexport function LiveTicker({\n  value = 12480312,\n  unit = \"renders\",\n  name = \"remocn\",\n  logo,\n  kicker = \"Live\",\n  feed = [\"Lumen\", \"Kite\", \"Orbit\", \"Halden\", \"Nova\", \"Ferro\", \"Vela\", \"Pico\"],\n  accent = \"#3B5BFD\",\n  speed = 1,\n  theme = \"dark\",\n}: LiveTickerProps) {\n  const t = useCurrentFrame() * speed;\n  const { width: W, height: H } = useVideoConfig();\n  const u = H / 720;\n  const p = THEMES[theme];\n  const uid = useId().replace(/[^a-zA-Z0-9_-]/g, \"\");\n\n  const target = Math.max(0, Math.round(value));\n  const n = String(target).length;\n  // column x offsets in em, commas between thousands groups\n  const cols = useMemo(() => {\n    const out: Array<{ x: number; place: number }> = [];\n    const commas: Array<{ x: number; col: number }> = [];\n    let x = 0;\n    for (let i = 0; i < n; i++) {\n      const place = n - 1 - i;\n      out.push({ x, place });\n      x += DIGIT_ADV + TRACK;\n      if (place > 0 && place % 3 === 0) {\n        commas.push({ x, col: i });\n        x += COMMA_ADV + TRACK;\n      }\n    }\n    return { out, commas, width: x - TRACK };\n  }, [n]);\n\n  const fs = Math.min((W * 0.64) / cols.width, H * 0.32);\n  const numW = cols.width * fs;\n  const numLeft = (W - numW) / 2;\n  const cap = CAP * fs;\n  const lift = interpolate(t, [FREEZE_AT, FREEZE_AT + 22], [0, 1], {\n    ...CLAMP,\n    easing: EASE_IO,\n  });\n  const baseline = H * 0.555 - lift * 24 * u;\n  const numTop = baseline - cap;\n  const cy = baseline - cap / 2;\n\n  // ---------------------------------------------------------------- feed\n  const rise = Math.min(target * 0.05, 6000);\n  const scale = rise / 6000;\n\n  const items = useMemo(() => {\n    const out: Item[] = [];\n    let k = 0;\n    LANES.forEach((lane, li) => {\n      const dur = 34 + Math.floor(hash(li * 3.1 + 2) * 10);\n      // dots: a quick steady stream\n      const dotGap = 7 + Math.floor(hash(li * 7.3) * 5);\n      for (\n        let s = -dur + Math.floor(hash(li * 1.7) * dotGap);\n        s <= LAST_SPAWN + 6;\n        s += dotGap\n      ) {\n        out.push({ lane: li, spawn: s, dur, pill: false, text: \"\", bump: 30 });\n      }\n      if (!lane.pills) return;\n      const period = 24 + Math.floor(hash(li * 5.3 + 1) * 10);\n      for (\n        let s = -dur + Math.floor(hash(li * 1.9 + 5) * period) + 3;\n        s <= LAST_SPAWN;\n        s += period\n      ) {\n        const count = 1 + Math.floor(hash(k * 5.7) * 3);\n        out.push({\n          lane: li,\n          spawn: s,\n          dur,\n          pill: true,\n          text: `+${count} · ${feed[k % Math.max(1, feed.length)] ?? \"\"} · ${FORMATS[(k * 7) % FORMATS.length]}`,\n          bump: 120 + 60 * count,\n        });\n        k++;\n      }\n    });\n    return out;\n  }, [feed]);\n\n  // ---------------------------------------------------------------- value\n  const r0 = 34 * scale;\n  const brakeLen = FREEZE_AT - BRAKE_AT;\n  const baseRemaining = (tt: number) => {\n    if (tt >= FREEZE_AT) return 0;\n    if (tt >= BRAKE_AT)\n      return (r0 * (FREEZE_AT - tt) ** 3) / (3 * brakeLen ** 2);\n    return r0 * (BRAKE_AT - tt) + (r0 * brakeLen) / 3;\n  };\n  const hits = items\n    .map((it) => ({ at: it.spawn + it.dur, amt: it.bump * scale, it }))\n    .filter((h) => h.at < FREEZE_AT - 8);\n  const valueAt = (tt: number) => {\n    let rem = baseRemaining(tt);\n    for (const h of hits) {\n      const k = Math.max(0, Math.min(1, (tt - h.at) / 6));\n      rem += h.amt * (1 - EASE_OUT(k));\n    }\n    return target - rem;\n  };\n\n  /**\n   * Column position in digits. Slow columns sit still and snap to the next\n   * digit in ~6 frames; fast ones flip a whole digit per frame (no half-rolled\n   * glyphs on a paused frame) and smear vertically instead.\n   */\n  const rate = (tt: number, place: number) =>\n    Math.abs(valueAt(tt + 0.5) - valueAt(tt - 0.5)) / 10 ** place;\n  const columnPos = (tt: number, place: number) => {\n    const x = valueAt(tt) / 10 ** place;\n    const v = rate(tt, place);\n    const w = Math.min(1, Math.max(0.0001, 4.5 * v));\n    const f = x - Math.floor(x);\n    if (v >= FAST) return Math.floor(x);\n    return Math.floor(x) + smooth((f - (1 - w)) / w);\n  };\n\n  // hits light the number's end they enter, and nudge it a hair\n  const flash = [0, 0];\n  let nudge = 0;\n  for (const h of hits) {\n    const d = t - h.at;\n    if (d < 0 || d > 14) continue;\n    const e = Math.exp(-d / 4) * (h.it.pill ? 1 : 0.4);\n    const side = LANES[h.it.lane].side;\n    flash[side] = Math.max(flash[side], e);\n    nudge += Math.sin(Math.min(1, d / 10) * Math.PI) * (h.it.pill ? 1 : 0.35);\n  }\n  nudge = Math.min(nudge, 1.5);\n\n  // ---------------------------------------------------------------- beats\n  const settled = t >= FREEZE_AT;\n  const kickIn = interpolate(t, [0, 14], [0.25, 1], {\n    ...CLAMP,\n    easing: EASE_OUT,\n  });\n  const label = (d: number) =>\n    interpolate(t, [FREEZE_AT + 2 + d, FREEZE_AT + 22 + d], [0, 1], {\n      ...CLAMP,\n      easing: EASE_OUT,\n    });\n  const streamsOut = interpolate(\n    t,\n    [FREEZE_AT - 12, FREEZE_AT + 16],\n    [1, 0.45],\n    {\n      ...CLAMP,\n      easing: EASE_IO,\n    },\n  );\n  const drift = interpolate(t, [0, 150], [0, 1], CLAMP);\n\n  // pills disappear into the number's ends\n  const edgeL = numLeft - 0.012 * W;\n  const edgeR = numLeft + numW + 0.012 * W;\n  const feather = 46 * u;\n\n  const lanePts = (lane: Lane) => {\n    const x0 = lane.x0 * W;\n    const y0 = lane.y0 * H;\n    const x3 = lane.side === 0 ? edgeL + feather : edgeR - feather;\n    const y3 = cy + lane.off * cap;\n    const x1 = lane.from === \"h\" ? x0 + (x3 - x0) * 0.5 : x0;\n    const y1 = lane.from === \"h\" ? y0 : y0 + (y3 - y0) * 0.75;\n    const x2 = x3 - (x3 - x0) * 0.48;\n    return { x0, y0, x1, y1, x2, y2: y3, x3, y3 };\n  };\n  const at = (lane: Lane, s: number) => {\n    const q = lanePts(lane);\n    return {\n      x: bez(q.x0, q.x1, q.x2, q.x3, s),\n      y: bez(q.y0, q.y1, q.y2, q.y3, s),\n    };\n  };\n\n  const pillH = 28 * u;\n  const pillFs = 13 * u;\n  const pillW = (it: Item) =>\n    it.pill ? it.text.length * 0.6 * pillFs + 34 * u : 0;\n  /** Where an item is now; past the lane's end it keeps its speed into the sink. */\n  const itemPoint = (it: Item) => {\n    const lane = LANES[it.lane];\n    const life = (t - it.spawn) / it.dur;\n    if (life <= 0) return null;\n    if (life < 1) return { ...at(lane, life ** 1.15), s: life ** 1.15 };\n    const q = lanePts(lane);\n    const vEnd = (3 * 1.15 * Math.abs(q.x3 - q.x2)) / it.dur;\n    const over = (t - it.spawn - it.dur) * vEnd;\n    if (over > feather + 12 * u) return null;\n    return { x: q.x3 + (lane.side === 0 ? 1 : -1) * over, y: q.y3, s: 1 };\n  };\n\n  // ---------------------------------------------------------------- render\n  const blobs = [\n    { x: 0.16 + 0.06 * drift, y: 0.2, r: 0.55 },\n    { x: 0.84 - 0.05 * drift, y: 0.3, r: 0.5 },\n    { x: 0.62 - 0.08 * drift, y: 0.9, r: 0.45 },\n    { x: 0.3 + 0.1 * drift, y: 0.85, r: 0.4 },\n  ];\n  const gx = (k: number) => numLeft + numW * k;\n  const gy = (k: number) => numTop - cap * 0.2 + cap * 1.4 * k;\n  const step = cap + 0.2 * fs;\n  const hair = (a: number) =>\n    `rgba(${p.hair[0]},${p.hair[1]},${p.hair[2]},${a})`;\n\n  return (\n    <AbsoluteFill style={{ background: p.bg, overflow: \"hidden\" }}>\n      <svg\n        width={W}\n        height={H}\n        viewBox={`0 0 ${W} ${H}`}\n        style={{ position: \"absolute\", inset: 0 }}\n        role=\"img\"\n        aria-label={`${target.toLocaleString(\"en-US\")} ${unit}`}\n      >\n        <defs>\n          {blobs.map((b, i) => (\n            <radialGradient\n              key={`b${b.r}`}\n              id={`${uid}b${i}`}\n              gradientUnits=\"userSpaceOnUse\"\n              cx={gx(b.x)}\n              cy={gy(b.y)}\n              r={numW * b.r}\n            >\n              <stop offset=\"0\" stopColor={p.blobs[i]} />\n              <stop offset=\"0.7\" stopColor={p.blobs[i]} stopOpacity={0} />\n            </radialGradient>\n          ))}\n          {[0, 1].map((side) => (\n            <radialGradient\n              key={`f${side}`}\n              id={`${uid}f${side}`}\n              gradientUnits=\"userSpaceOnUse\"\n              cx={side === 0 ? numLeft : numLeft + numW}\n              cy={cy}\n              r={fs * 1.4}\n            >\n              <stop offset=\"0\" stopColor={p.flash} stopOpacity={0.9} />\n              <stop offset=\"1\" stopColor={p.flash} stopOpacity={0} />\n            </radialGradient>\n          ))}\n          {/* the band: the same palette, wide and low, behind the number */}\n          {p.band.map((c, i) => (\n            <radialGradient\n              key={`band${c}${i}`}\n              id={`${uid}band${i}`}\n              gradientUnits=\"userSpaceOnUse\"\n              cx={W * (0.26 + 0.24 * i + 0.04 * Math.sin(drift * 3 + i * 2))}\n              cy={cy}\n              r={W * (i === 1 ? 0.22 : 0.34)}\n              gradientTransform={`translate(0 ${cy}) scale(1 0.3) translate(0 ${-cy})`}\n            >\n              <stop offset=\"0\" stopColor={c} />\n              <stop offset=\"1\" stopColor={c} stopOpacity={0} />\n            </radialGradient>\n          ))}\n          <linearGradient id={`${uid}feather`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n            <stop offset=\"0\" stopColor=\"#fff\" stopOpacity={0} />\n            <stop offset=\"0.12\" stopColor=\"#fff\" />\n            <stop offset=\"0.88\" stopColor=\"#fff\" />\n            <stop offset=\"1\" stopColor=\"#fff\" stopOpacity={0} />\n          </linearGradient>\n          <linearGradient\n            id={`${uid}sink`}\n            gradientUnits=\"userSpaceOnUse\"\n            x1={0}\n            y1={0}\n            x2={W}\n            y2={0}\n          >\n            <stop offset={(edgeL - feather) / W} stopColor=\"#fff\" />\n            <stop offset={edgeL / W} stopColor=\"#000\" />\n            <stop offset={edgeR / W} stopColor=\"#000\" />\n            <stop offset={(edgeR + feather) / W} stopColor=\"#fff\" />\n          </linearGradient>\n          <mask\n            id={`${uid}streams`}\n            maskUnits=\"userSpaceOnUse\"\n            x={0}\n            y={0}\n            width={W}\n            height={H}\n          >\n            <rect width={W} height={H} fill={`url(#${uid}sink)`} />\n          </mask>\n          <mask\n            id={`${uid}win`}\n            maskUnits=\"userSpaceOnUse\"\n            x={0}\n            y={0}\n            width={W}\n            height={H}\n          >\n            <rect\n              x={0}\n              y={numTop - 0.1 * fs}\n              width={W}\n              height={cap + 0.2 * fs}\n              fill={`url(#${uid}feather)`}\n            />\n          </mask>\n          {cols.out.map((c) => {\n            const v = settled ? 0 : rate(t, c.place);\n            const roll = Math.abs(\n              columnPos(t + 0.5, c.place) - columnPos(t - 0.5, c.place),\n            );\n            const sd =\n              (v >= FAST\n                ? Math.min(0.04, 0.008 + v * 0.01)\n                : Math.min(0.04, roll * 0.12 * (settled ? 0 : 1))) * fs;\n            return (\n              <filter\n                key={`blur${c.place}`}\n                id={`${uid}blur${c.place}`}\n                filterUnits=\"userSpaceOnUse\"\n                x={0}\n                y={0}\n                width={W}\n                height={H}\n              >\n                <feGaussianBlur stdDeviation={`0 ${sd.toFixed(2)}`} />\n              </filter>\n            );\n          })}\n          <mask\n            id={`${uid}num`}\n            maskUnits=\"userSpaceOnUse\"\n            x={0}\n            y={0}\n            width={W}\n            height={H}\n          >\n            <g\n              fill=\"#fff\"\n              fontFamily={sans}\n              fontWeight={300}\n              fontSize={fs}\n              textAnchor=\"middle\"\n              style={{ fontVariantNumeric: \"tabular-nums\" }}\n              transform={`translate(0 ${-nudge * 2.2 * u})`}\n            >\n              <g mask={`url(#${uid}win)`}>\n                {cols.out.map((c, i) => {\n                  const enter = interpolate(\n                    t,\n                    [i * 1.5 - 14, i * 1.5 + 6],\n                    [0, 1],\n                    { ...CLAMP, easing: EASE_OUT },\n                  );\n                  const pos = settled\n                    ? Math.floor(target / 10 ** c.place)\n                    : columnPos(t, c.place);\n                  const base = Math.floor(pos);\n                  const f = pos - base;\n                  const cx = numLeft + (c.x + DIGIT_ADV / 2) * fs;\n                  const digit = (d: number) => ((d % 10) + 10) % 10;\n                  return (\n                    <g\n                      key={`c${c.place}`}\n                      opacity={enter}\n                      filter={`url(#${uid}blur${c.place})`}\n                      transform={`translate(0 ${(1 - enter) * 0.6 * fs - f * step})`}\n                    >\n                      <text x={cx} y={baseline}>\n                        {digit(base)}\n                      </text>\n                      {f > 0.001 ? (\n                        <text x={cx} y={baseline + step}>\n                          {digit(base + 1)}\n                        </text>\n                      ) : null}\n                    </g>\n                  );\n                })}\n              </g>\n              {cols.commas.map((c) => {\n                const enter = interpolate(\n                  t,\n                  [c.col * 1.5 - 13, c.col * 1.5 + 7],\n                  [0, 1],\n                  { ...CLAMP, easing: EASE_OUT },\n                );\n                return (\n                  <text\n                    key={`comma${c.x}`}\n                    x={numLeft + (c.x + COMMA_ADV / 2) * fs}\n                    y={baseline + (1 - enter) * 0.3 * fs}\n                    opacity={enter}\n                  >\n                    ,\n                  </text>\n                );\n              })}\n            </g>\n          </mask>\n        </defs>\n\n        {/* gradient band behind the number */}\n        <g opacity={p.bandAlpha * kickIn}>\n          {p.band.map((c, i) => (\n            <rect\n              key={`bandr${c}${i}`}\n              width={W}\n              height={H}\n              fill={`url(#${uid}band${i})`}\n            />\n          ))}\n        </g>\n\n        <g mask={`url(#${uid}streams)`}>\n          {/* lanes */}\n          <g fill=\"none\" opacity={streamsOut}>\n            {LANES.map((lane) => {\n              const q = lanePts(lane);\n              return (\n                <path\n                  key={`lane${lane.side}${lane.y0}`}\n                  d={`M${q.x0} ${q.y0} C${q.x1} ${q.y1} ${q.x2} ${q.y2} ${q.x3} ${q.y3} L${lane.side === 0 ? edgeL + 1 : edgeR - 1} ${q.y3}`}\n                  stroke={hair(lane.pills ? 0.15 : 0.1)}\n                  strokeWidth={Math.max(1, u)}\n                />\n              );\n            })}\n          </g>\n\n          {/* dots under the pills */}\n          {items.map((it, k) => {\n            if (it.pill) return null;\n            const pt = itemPoint(it);\n            if (!pt) return null;\n            const acc = k % 4 === 0;\n            return (\n              <circle\n                key={`d${it.lane}-${it.spawn}`}\n                cx={pt.x}\n                cy={pt.y}\n                r={(acc ? 3.4 : 2.6) * u}\n                fill={acc ? accent : p.fg}\n                opacity={acc ? 1 : 0.5}\n              />\n            );\n          })}\n          {/* pills: read on the way in, then fold into a dot */}\n          <g fontFamily={mono} fontSize={pillFs} fontWeight={400}>\n            {items.map((it) => {\n              if (!it.pill) return null;\n              const pt = itemPoint(it);\n              if (!pt) return null;\n              const dir = LANES[it.lane].side === 0 ? 1 : -1;\n              const fullW = pillW(it);\n              const c = smooth((pt.s - 0.58) / 0.26);\n              const dotD = 7 * u;\n              const w = fullW + (dotD - fullW) * c;\n              const h = pillH + (dotD - pillH) * smooth((pt.s - 0.7) / 0.14);\n              // the leading edge rides the lane, the pill folds up behind it\n              const x = dir === 1 ? pt.x - w : pt.x;\n              const textX = dir === 1 ? 24 * u - (fullW - w) : 24 * u;\n              return (\n                <g\n                  key={`p${it.lane}-${it.spawn}`}\n                  transform={`translate(0 ${pt.y})`}\n                >\n                  <rect\n                    x={x}\n                    y={-h / 2}\n                    width={w}\n                    height={h}\n                    rx={h / 2}\n                    fill={p.pillFill}\n                    stroke={p.pillLine}\n                    strokeWidth={Math.max(1, u) * (1 - c)}\n                  />\n                  <rect\n                    x={x}\n                    y={-h / 2}\n                    width={w}\n                    height={h}\n                    rx={h / 2}\n                    fill={accent}\n                    opacity={smooth((c - 0.5) / 0.5)}\n                  />\n                  <svg\n                    x={x}\n                    y={-h / 2}\n                    width={w}\n                    height={h}\n                    overflow=\"hidden\"\n                    opacity={1 - smooth((c - 0.2) / 0.6)}\n                  >\n                    <circle\n                      cx={textX - 10 * u}\n                      cy={h / 2}\n                      r={3 * u}\n                      fill={accent}\n                    />\n                    <text\n                      x={textX}\n                      y={h / 2 + pillFs * 0.36}\n                      fill={p.pillText}\n                      style={{ whiteSpace: \"pre\" }}\n                    >\n                      {it.text}\n                    </text>\n                  </svg>\n                </g>\n              );\n            })}\n          </g>\n        </g>\n\n        {/* the number: mesh gradient poured through the digits */}\n        <g mask={`url(#${uid}num)`}>\n          <rect width={W} height={H} fill={p.base} />\n          {blobs.map((b, i) => (\n            <rect\n              key={`nb${b.r}`}\n              width={W}\n              height={H}\n              fill={`url(#${uid}b${i})`}\n            />\n          ))}\n          {[0, 1].map((side) => (\n            <rect\n              key={`fl${side}`}\n              width={W}\n              height={H}\n              fill={`url(#${uid}f${side})`}\n              opacity={flash[side] * 0.75}\n            />\n          ))}\n        </g>\n      </svg>\n\n      {/* kicker */}\n      <div\n        style={{\n          position: \"absolute\",\n          left: numLeft + 0.04 * fs,\n          top: numTop - 0.3 * fs - 13 * u,\n          display: \"flex\",\n          alignItems: \"center\",\n          gap: 11 * u,\n          fontFamily: mono,\n          fontWeight: 500,\n          fontSize: 13 * u,\n          letterSpacing: \"0.14em\",\n          textTransform: \"uppercase\",\n          color: p.fg,\n          opacity: kickIn,\n          lineHeight: 1,\n        }}\n      >\n        <div\n          style={{\n            width: 8 * u,\n            height: 8 * u,\n            borderRadius: 99,\n            background: accent,\n            opacity: settled ? 1 : 0.6 + 0.4 * Math.cos((t / 24) * Math.PI * 2),\n            boxShadow: `0 0 0 ${4 * u}px ${accent}38`,\n          }}\n        />\n        <span>{kicker}</span>\n      </div>\n\n      {/* poster label */}\n      <div\n        style={{\n          position: \"absolute\",\n          left: 0,\n          right: 0,\n          top: baseline + 0.22 * fs,\n          display: \"flex\",\n          justifyContent: \"center\",\n          alignItems: \"baseline\",\n          gap: 15 * u,\n          lineHeight: 1,\n        }}\n      >\n        <span\n          style={{\n            fontFamily: serif,\n            fontStyle: \"italic\",\n            fontWeight: 400,\n            fontSize: 60 * u,\n            letterSpacing: \"-0.01em\",\n            color: p.fg,\n            opacity: label(0),\n            transform: `translateY(${(1 - label(0)) * 16 * u}px)`,\n          }}\n        >\n          {unit}\n        </span>\n        <span\n          style={{\n            fontFamily: sans,\n            fontWeight: 400,\n            fontSize: 34 * u,\n            letterSpacing: \"-0.02em\",\n            color: p.muted,\n            opacity: label(4),\n            transform: `translateY(${(1 - label(4)) * 16 * u}px)`,\n          }}\n        >\n          on\n        </span>\n        <div\n          style={{\n            opacity: label(7),\n            transform: `translateY(${(1 - label(7)) * 16 * u}px)`,\n          }}\n        >\n          {logo ??\n            (name.trim().toLowerCase() === \"remocn\" ? (\n              <RemocnLogo fontSize={38 * u} color={p.fg} />\n            ) : (\n              <span\n                style={{\n                  fontFamily: sans,\n                  fontWeight: 500,\n                  fontSize: 38 * u,\n                  letterSpacing: \"-0.03em\",\n                  color: p.fg,\n                }}\n              >\n                {name}\n              </span>\n            ))}\n        </div>\n      </div>\n\n      <Grain opacity={p.grain} />\n    </AbsoluteFill>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/live-ticker.tsx"
    }
  ],
  "type": "registry:component"
}
