{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "waitlist-swarm",
  "title": "Waitlist Swarm",
  "description": "Cursors and avatar dots swarm to form an R while the waitlist count rolls up.",
  "dependencies": ["remotion", "@remotion/google-fonts", "@remotion/paths"],
  "registryDependencies": ["@remocn/gsh"],
  "files": [
    {
      "path": "registry/remocn/waitlist-swarm/index.tsx",
      "content": "\"use client\";\n\nimport { loadFont } from \"@remotion/google-fonts/BricolageGrotesque\";\nimport { getLength, getPointAtLength, getSubpaths } from \"@remotion/paths\";\nimport type React from \"react\";\nimport { useMemo } from \"react\";\nimport {\n  AbsoluteFill,\n  Easing,\n  interpolate,\n  spring,\n  useCurrentFrame,\n  useVideoConfig,\n} from \"remotion\";\nimport type { GradientParams } from \"@/lib/remocn/gsh/gradient-engine\";\nimport { GshGround } from \"@/lib/remocn/gsh/gsh-ground\";\nimport type { GshPresetId } from \"@/lib/remocn/gsh/presets\";\n\nconst { fontFamily: sans } = loadFont(\"normal\", {\n  weights: [\"300\", \"400\"],\n  subsets: [\"latin\"],\n});\n\nexport interface SwarmShapePart {\n  d: string;\n  accent?: boolean;\n}\n\nexport interface WaitlistSwarmProps {\n  shape?: string | SwarmShapePart[];\n  value?: number;\n  label?: string;\n  count?: number;\n  accent?: string;\n  speed?: number;\n  theme?: \"dark\" | \"light\";\n  ground?: GshPresetId;\n  groundParams?: Partial<GradientParams>;\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\nconst DEFAULT_SHAPE: SwarmShapePart[] = [{ d: REMOCN_R_PATH }];\nconst MESH = {\n  dark: [\"#ECDCF2\", \"#8796EE\", \"#2E45B7\", \"#8796EE\", \"#ECDCF2\"],\n  light: [\"#8796EE\", \"#2E45B7\", \"#0E1645\", \"#2E45B7\", \"#8796EE\"],\n} as const;\nconst MESH_POS = [\n  [0.16, 0.2],\n  [0.84, 0.26],\n  [0.72, 0.86],\n  [0.22, 0.8],\n  [0.52, 0.48],\n] as const;\n\nconst EASE_IO = Easing.bezier(0.65, 0, 0.35, 1);\nconst EASE_OUT = Easing.bezier(0.22, 1, 0.36, 1);\nconst FLIGHT = Easing.bezier(0.65, 0, 0.35, 1);\nconst CAMERA = Easing.bezier(0.87, 0, 0.13, 1);\nconst CARD = { mass: 0.8, damping: 18, stiffness: 160 };\nconst CHIP = { mass: 0.5, damping: 12, stiffness: 200 };\nconst LIGHT_GLASS: Partial<GradientParams> = {\n  colors: [\"#a9bbff\", \"#3b5bfd\", \"#1a2a9e\", \"#8fa6ff\"],\n};\nconst CLAMP = {\n  extrapolateLeft: \"clamp\",\n  extrapolateRight: \"clamp\",\n} as const;\n\nconst THEMES = {\n  dark: {\n    bg: \"#020309\",\n    ground: \"spotlight\" as GshPresetId,\n    fg: \"#F3F2EF\",\n    muted: \"rgba(243,242,239,0.55)\",\n    scrim: \"2,3,9\",\n    scrimA: 0.35,\n  },\n  light: {\n    bg: \"#EEF0F6\",\n    ground: \"glasswork\" as GshPresetId,\n    fg: \"#121214\",\n    muted: \"rgba(18,18,20,0.55)\",\n    scrim: \"244,244,247\",\n    scrimA: 0.82,\n  },\n} as const;\nconst CURSOR = \"M0 0L0 14.2L3.6 10.9L6.1 16.4L8.6 15.3L6.1 9.9L11 9.9Z\";\n\nfunction hexRgb(hex: string): [number, number, number] {\n  const n = Number.parseInt(hex.replace(\"#\", \"\"), 16);\n  return [(n >> 16) & 255, (n >> 8) & 255, n & 255];\n}\nfunction meshAt(\n  ux: number,\n  uy: number,\n  cols: readonly [number, number, number][],\n  drift: number,\n) {\n  let r = 0;\n  let g = 0;\n  let b = 0;\n  let wsum = 0;\n  for (let i = 0; i < cols.length; i++) {\n    const [bx, by] = MESH_POS[i];\n    const dx = ux - (bx + Math.sin(drift + i * 1.7) * 0.04);\n    const dy = uy - (by + Math.cos(drift * 0.8 + i * 2.3) * 0.04);\n    const w = Math.exp(-(dx * dx + dy * dy) / 0.06);\n    r += cols[i][0] * w;\n    g += cols[i][1] * w;\n    b += cols[i][2] * w;\n    wsum += w;\n  }\n  return [r / wsum, g / wsum, b / wsum] as const;\n}\n\nfunction hash(n: number) {\n  const x = Math.sin(n * 127.1 + 311.7) * 43758.5453;\n  return x - Math.floor(x);\n}\n\ntype Poly = [number, number][];\n\nfunction insideEvenOdd(px: number, py: number, polys: Poly[]) {\n  let inside = false;\n  for (const poly of polys) {\n    for (let i = 0, j = poly.length - 1; i < poly.length; j = i++) {\n      const [xi, yi] = poly[i];\n      const [xj, yj] = poly[j];\n      if (\n        yi > py !== yj > py &&\n        px < ((xj - xi) * (py - yi)) / (yj - yi) + xi\n      ) {\n        inside = !inside;\n      }\n    }\n  }\n  return inside;\n}\n\ninterface Target {\n  x: number;\n  y: number;\n  accent: boolean;\n  edge: boolean;\n}\nfunction sampleTargets(parts: SwarmShapePart[], count: number) {\n  const flat = parts.map((part) => {\n    const polys: Poly[] = [];\n    const outlines: { poly: Poly; len: number }[] = [];\n    for (const sub of getSubpaths(part.d)) {\n      const len = getLength(sub);\n      if (len <= 0) continue;\n      const n = Math.max(16, Math.min(500, Math.ceil(len / 0.5)));\n      const poly: Poly = [];\n      for (let i = 0; i <= n; i++) {\n        const p = getPointAtLength(sub, (len * i) / n);\n        if (p) poly.push([p.x, p.y]);\n      }\n      polys.push(poly);\n      outlines.push({ poly, len });\n    }\n    return { polys, outlines, accent: Boolean(part.accent) };\n  });\n\n  let minX = Number.POSITIVE_INFINITY;\n  let minY = Number.POSITIVE_INFINITY;\n  let maxX = Number.NEGATIVE_INFINITY;\n  let maxY = Number.NEGATIVE_INFINITY;\n  for (const part of flat) {\n    for (const poly of part.polys) {\n      for (const [x, y] of poly) {\n        minX = Math.min(minX, x);\n        minY = Math.min(minY, y);\n        maxX = Math.max(maxX, x);\n        maxY = Math.max(maxY, y);\n      }\n    }\n  }\n  const bw = maxX - minX || 1;\n  const bh = maxY - minY || 1;\n  const which = (x: number, y: number) => {\n    for (let k = flat.length - 1; k >= 0; k--) {\n      if (insideEvenOdd(x, y, flat[k].polys)) return k;\n    }\n    return -1;\n  };\n  const g = 80;\n  let hits = 0;\n  for (let i = 0; i < g; i++) {\n    for (let j = 0; j < g; j++) {\n      if (which(minX + ((i + 0.5) / g) * bw, minY + ((j + 0.5) / g) * bh) >= 0)\n        hits++;\n    }\n  }\n  const area = (hits / (g * g)) * bw * bh;\n  const perimeter = flat.reduce(\n    (s, p) => s + p.outlines.reduce((a, o) => a + o.len, 0),\n    0,\n  );\n  const a = count;\n  const b = -perimeter / 0.9;\n  const c = -area / 0.866;\n  const spacing = (-b + Math.sqrt(b * b - 4 * a * c)) / (2 * a);\n\n  const out: Target[] = [];\n  for (const part of flat) {\n    for (const { poly, len } of part.outlines) {\n      const n = Math.max(6, Math.round(len / (spacing * 0.9)));\n      for (let i = 0; i < n; i++) {\n        const idx = Math.floor((i / n) * (poly.length - 1));\n        const [ax, ay] = poly[Math.max(0, idx - 1)];\n        const [bx, by] = poly[Math.min(poly.length - 1, idx + 1)];\n        const l = Math.hypot(bx - ax, by - ay) || 1;\n        let nx = -(by - ay) / l;\n        let ny = (bx - ax) / l;\n        const [px, py] = poly[idx];\n        if (!insideEvenOdd(px + nx * 0.05, py + ny * 0.05, part.polys)) {\n          nx = -nx;\n          ny = -ny;\n        }\n        out.push({\n          x: px + nx * spacing * 0.3,\n          y: py + ny * spacing * 0.3,\n          accent: part.accent,\n          edge: true,\n        });\n      }\n    }\n  }\n  const edgeCount = out.length;\n  const rowH = spacing * 0.866;\n  let row = 0;\n  for (let y = minY + rowH * 0.6; y < maxY; y += rowH, row++) {\n    const off = row % 2 ? spacing / 2 : 0;\n    for (let x = minX + off + spacing * 0.5; x < maxX; x += spacing) {\n      const k = out.length * 13 + row * 7;\n      const jx = x + (hash(k + 0.31) - 0.5) * spacing * 0.3;\n      const jy = y + (hash(k + 0.77) - 0.5) * spacing * 0.3;\n      const part = which(jx, jy);\n      if (part < 0) continue;\n      let near = false;\n      for (let e = 0; e < edgeCount; e++) {\n        const dx = out[e].x - jx;\n        const dy = out[e].y - jy;\n        if (dx * dx + dy * dy < spacing * spacing * 0.42) {\n          near = true;\n          break;\n        }\n      }\n      if (!near)\n        out.push({ x: jx, y: jy, accent: flat[part].accent, edge: false });\n    }\n  }\n  const cx = minX + bw / 2;\n  const cy = minY + bh / 2;\n  return {\n    points: out.map((p) => ({ ...p, x: (p.x - cx) / bh, y: (p.y - cy) / bh })),\n    spacing: spacing / bh,\n    aspect: bw / bh,\n  };\n}\n\ninterface Particle {\n  tx: number;\n  ty: number;\n  sx: number;\n  sy: number;\n  cx: number;\n  cy: number;\n  start: number;\n  dur: number;\n  arrive: number;\n  cursor: boolean;\n  size: number;\n  ux: number;\n  uy: number;\n  tone: number;\n  depth: number;\n  phase: number;\n  accent: boolean;\n}\n\nfunction formatNumber(n: number) {\n  return Math.round(n)\n    .toString()\n    .replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\");\n}\n\nfunction bezier(p: Particle, e: number) {\n  const k = 1 - e;\n  return {\n    x: k * k * p.sx + 2 * k * e * p.cx + e * e * p.tx,\n    y: k * k * p.sy + 2 * k * e * p.cy + e * e * p.ty,\n  };\n}\n\nexport function WaitlistSwarm({\n  shape = DEFAULT_SHAPE,\n  value = 12480,\n  label = \"on the waitlist\",\n  count = 760,\n  accent = \"#3B5BFD\",\n  speed = 1,\n  theme = \"dark\",\n  ground,\n  groundParams,\n}: WaitlistSwarmProps) {\n  const t = useCurrentFrame() * speed;\n  const { width, height, fps } = useVideoConfig();\n  const tall = height > width;\n  const u = height / 720;\n  const pal = THEMES[theme];\n\n  const parts = useMemo(\n    () => (typeof shape === \"string\" ? [{ d: shape }] : shape),\n    [shape],\n  );\n  const sampled = useMemo(() => sampleTargets(parts, count), [parts, count]);\n\n  const markH = tall ? width * 0.62 : height * 0.56;\n  const fx = tall ? width / 2 : width * 0.33;\n  const fy = tall ? height * 0.34 : height * 0.5;\n  const sp = sampled.spacing * markH;\n\n  const particles = useMemo(() => {\n    const list: Particle[] = sampled.points.map((pt, i) => {\n      const h1 = hash(i + 1.1);\n      const h2 = hash(i + 2.3);\n      const h3 = hash(i + 3.7);\n      const h4 = hash(i + 4.9);\n      const tx = fx + pt.x * markH;\n      const ty = fy + pt.y * markH;\n      const base = Math.atan2(pt.y, pt.x * 0.8);\n      const ang = base + (h1 - 0.5) * 2.4;\n      const dx = Math.cos(ang);\n      const dy = Math.sin(ang);\n      const reach = Math.min(\n        Math.abs((width / 2 + 60 * u) / (dx || 1e-3)),\n        Math.abs((height / 2 + 60 * u) / (dy || 1e-3)),\n      );\n      const far = reach + h2 * 260 * u;\n      const sx = width / 2 + dx * far;\n      const sy = height / 2 + dy * far;\n      const mx = (sx + tx) / 2;\n      const my = (sy + ty) / 2;\n      const field =\n        Math.sin(mx / (210 * u) + 1.3) * 1.4 +\n        Math.cos(my / (170 * u) - 0.7) * 1.2 +\n        Math.sin((mx + my) / (330 * u) + 2.1);\n      const dist = Math.hypot(tx - sx, ty - sy);\n      const bend = dist * (0.32 + h3 * 0.14);\n      const ccx = mx + Math.cos(field) * bend;\n      const ccy = my + Math.sin(field) * bend;\n      const radial = Math.min(1, Math.hypot(pt.x, pt.y) / 0.6);\n      const start = -22 + (1 - radial) * 20 + h4 * 34;\n      const dur = 40 + h3 * 18 + (far / (width * 0.7)) * 10;\n      const cursor = !pt.accent && hash(i + 9.1) < 0.12;\n      return {\n        tx,\n        ty,\n        sx,\n        sy,\n        cx: ccx,\n        cy: ccy,\n        start,\n        dur,\n        arrive: start + dur,\n        cursor,\n        size: pt.edge ? 0.8 + h2 * 0.16 : 0.62 + hash(i + 7.7) ** 1.4 * 0.42,\n        ux: pt.x / sampled.aspect + 0.5,\n        uy: pt.y + 0.5,\n        tone: pt.edge ? 1.04 : 0.8 + hash(i + 5.3) * 0.3,\n        depth: hash(i + 8.2),\n        phase: h1 * Math.PI * 2,\n        accent: pt.accent,\n      };\n    });\n    return list.sort((a, b) => a.depth - b.depth);\n  }, [sampled, fx, fy, markH, width, height, u]);\n  const meshCols = useMemo(() => MESH[theme].map(hexRgb), [theme]);\n  const drift = t / 60;\n\n  const arrivals = useMemo(\n    () => particles.map((p) => p.arrive).sort((a, b) => a - b),\n    [particles],\n  );\n  const firstArrival = arrivals[Math.floor(arrivals.length * 0.04)];\n  const lastArrival = arrivals[arrivals.length - 1];\n  let landed = 0;\n  for (const a of arrivals) if (a <= t) landed++;\n  const fill = landed / arrivals.length;\n  const pack = 1 + 0.06 * (1 - EASE_IO(fill));\n  const cam = interpolate(t, [0, 170], [1.07, 1], {\n    ...CLAMP,\n    easing: CAMERA,\n  });\n  const camY = interpolate(t, [0, 170], [10 * u, 0], {\n    ...CLAMP,\n    easing: CAMERA,\n  });\n  const pulseStart = lastArrival + 8;\n  const origin = useMemo(() => {\n    const acc = particles.filter((p) => p.accent);\n    const pts = acc.length > 8 ? acc : particles;\n    return {\n      x: pts.reduce((s, p) => s + p.tx, 0) / pts.length,\n      y: pts.reduce((s, p) => s + p.ty, 0) / pts.length,\n    };\n  }, [particles]);\n  const pulseR = (t - pulseStart) * 11 * u;\n  const pulseW = 54 * u;\n  const pulseOn = t > pulseStart && pulseR < markH * 1.6;\n\n  const els: React.ReactNode[] = [];\n  const ghosts: React.ReactNode[] = [];\n  for (let i = 0; i < particles.length; i++) {\n    const p = particles[i];\n    const raw = (t - p.start) / p.dur;\n    if (raw <= 0) continue;\n    const prog = Math.min(1, raw);\n    const e = FLIGHT(prog);\n    const pos = bezier(p, e);\n    const ptx = fx + (p.tx - fx) * pack;\n    const pty = fy + (p.ty - fy) * pack;\n    let x = pos.x + (ptx - p.tx) * e;\n    let y = pos.y + (pty - p.ty) * e;\n    const docked = interpolate(t - p.arrive, [0, 20], [0, 1], CLAMP);\n    x += Math.sin(t / 19 + p.phase) * 0.5 * u * docked;\n    y += Math.cos(t / 23 + p.phase) * 0.5 * u * docked;\n\n    let scale = 1 + (1 - e) * p.depth * 1.5;\n    let opacity = interpolate(raw, [0, 0.12], [0, 1], CLAMP);\n    opacity *= 0.55 + 0.45 * Math.min(1, e * 1.4);\n\n    let glow = 0;\n    if (pulseOn) {\n      const d = Math.hypot(p.tx - origin.x, p.ty - origin.y);\n      glow = Math.exp(-(((d - pulseR) / pulseW) ** 2));\n      const fade = interpolate(\n        pulseR,\n        [markH * 1.1, markH * 1.6],\n        [1, 0],\n        CLAMP,\n      );\n      glow *= fade;\n      const nx = (p.tx - origin.x) / (d || 1);\n      const ny = (p.ty - origin.y) / (d || 1);\n      x += nx * glow * 4 * u;\n      y += ny * glow * 4 * u;\n      scale *= 1 + glow * 0.5;\n    }\n    const rest = p.accent ? 1 : 1 - docked * 0.16;\n    opacity *= rest + (1 - rest) * glow;\n\n    const r = (sp * p.size * scale) / 2;\n    const [mr, mg, mb] = p.accent\n      ? hexRgb(accent)\n      : meshAt(p.ux, p.uy, meshCols, drift);\n    const tk = theme === \"dark\" ? p.tone : 2 - p.tone;\n    const color =\n      theme === \"dark\"\n        ? `rgb(${Math.min(255, mr * tk)},${Math.min(255, mg * tk)},${Math.min(255, mb * tk)})`\n        : `rgb(${mr + (245 - mr) * (tk - 1) * 0.9},${mg + (244 - mg) * (tk - 1) * 0.9},${mb + (240 - mb) * (tk - 1) * 0.9})`;\n    if (prog < 0.92) {\n      for (let k = 1; k <= 2; k++) {\n        const pe = FLIGHT(Math.max(0, (t - k * 1.4 - p.start) / p.dur));\n        const gp = bezier(p, pe);\n        const sx = gp.x + (ptx - p.tx) * pe;\n        const sy = gp.y + (pty - p.ty) * pe;\n        if (Math.hypot(sx - x, sy - y) < r * 0.8) continue;\n        ghosts.push(\n          <circle\n            key={`g${i}-${k}`}\n            cx={sx}\n            cy={sy}\n            r={r * (p.cursor ? 0.5 : 0.85)}\n            fill={color}\n            opacity={opacity * (k === 1 ? 0.22 : 0.09)}\n          />,\n        );\n      }\n    }\n    const morph = p.cursor ? interpolate(prog, [0.78, 1], [0, 1], CLAMP) : 1;\n    if (p.cursor && morph < 1) {\n      const s = (sp * 1.35 * scale * (1 - morph * 0.4)) / 16;\n      const vx =\n        x - bezier(p, FLIGHT(Math.max(0, (t - 1 - p.start) / p.dur))).x;\n      const tilt = Math.max(-14, Math.min(14, -vx * 0.6)) * (1 - e);\n      els.push(\n        <path\n          key={`c${i}`}\n          d={CURSOR}\n          fill={color}\n          stroke={pal.bg}\n          strokeWidth={1.1 / s}\n          strokeLinejoin=\"round\"\n          opacity={opacity * (1 - morph)}\n          transform={`translate(${x - 4 * s} ${y - 8 * s}) rotate(${tilt}) scale(${s})`}\n        />,\n      );\n    }\n    if (morph > 0) {\n      els.push(\n        <circle\n          key={i}\n          cx={x}\n          cy={y}\n          r={r * (0.7 + morph * 0.3)}\n          fill={color}\n          stroke={pal.bg}\n          strokeWidth={Math.max(0.8, r * 0.22)}\n          opacity={opacity * morph}\n        />,\n      );\n      if (glow > 0.04 && !p.accent) {\n        els.push(\n          <circle\n            key={`p${i}`}\n            cx={x}\n            cy={y}\n            r={r * (0.7 + morph * 0.3)}\n            fill={accent}\n            opacity={glow * 0.45}\n          />,\n        );\n      }\n    }\n  }\n  const shown =\n    landed >= arrivals.length ? value : Math.min(value - 1, value * fill);\n  const counterRise = spring({\n    frame: t - (firstArrival - 16),\n    fps,\n    config: CARD,\n  });\n  const counterIn = interpolate(\n    t,\n    [firstArrival - 16, firstArrival + 2],\n    [0, 1],\n    { ...CLAMP, easing: EASE_OUT },\n  );\n  const labelIn = interpolate(\n    t,\n    [firstArrival - 10, firstArrival + 10],\n    [0, 1],\n    { ...CLAMP, easing: EASE_OUT },\n  );\n  const punch =\n    t >= lastArrival\n      ? 1 + 0.05 * (1 - spring({ frame: t - lastArrival, fps, config: CHIP }))\n      : 1;\n  const numFs = tall ? height * 0.1 : height * 0.18;\n  const labelFs = tall ? height * 0.03 : height * 0.05;\n  const counterBox: React.CSSProperties = tall\n    ? {\n        left: 0,\n        right: 0,\n        top: fy + markH / 2 + height * 0.07,\n        alignItems: \"center\",\n      }\n    : {\n        left: width * 0.56,\n        top: fy - numFs * 0.72,\n        alignItems: \"flex-start\",\n      };\n\n  return (\n    <AbsoluteFill style={{ background: pal.bg, overflow: \"hidden\" }}>\n      <GshGround\n        preset={groundParams ? undefined : (ground ?? pal.ground)}\n        params={\n          groundParams ??\n          (theme === \"light\" && !ground ? LIGHT_GLASS : undefined)\n        }\n        timeOffset={theme === \"dark\" ? 2 : 11}\n        timeScale={0.45}\n      />\n      <AbsoluteFill\n        style={{\n          background: `radial-gradient(${tall ? \"95% 48%\" : \"70% 80%\"} at ${tall ? 50 : 45}% ${tall ? 42 : 50}%, rgba(${pal.scrim},${pal.scrimA}) 0%, rgba(${pal.scrim},0) 100%)`,\n        }}\n      />\n      <AbsoluteFill\n        style={{\n          transform: `translateY(${camY}px) scale(${cam})`,\n          transformOrigin: `${(fx / width) * 100}% ${(fy / height) * 100}%`,\n        }}\n      >\n        <svg\n          width={width}\n          height={height}\n          viewBox={`0 0 ${width} ${height}`}\n          style={{ position: \"absolute\", inset: 0, overflow: \"visible\" }}\n          aria-hidden\n        >\n          <g>{ghosts}</g>\n          <g>{els}</g>\n        </svg>\n      </AbsoluteFill>\n\n      <div\n        style={{\n          position: \"absolute\",\n          ...counterBox,\n          display: \"flex\",\n          flexDirection: \"column\",\n          gap: labelFs * 0.5,\n          fontFamily: sans,\n          color: pal.fg,\n        }}\n      >\n        <span\n          style={{\n            fontWeight: 300,\n            fontSize: numFs,\n            lineHeight: 1,\n            letterSpacing: \"-0.045em\",\n            fontVariantNumeric: \"tabular-nums\",\n            opacity: counterIn,\n            transformOrigin: tall ? \"50% 60%\" : \"0% 60%\",\n            transform: `translateY(${(1 - counterRise) * 0.18 * numFs}px) scale(${punch})`,\n            filter: `blur(${(1 - counterIn) * 6 * u}px)`,\n          }}\n        >\n          {formatNumber(shown)}\n        </span>\n        <span\n          style={{\n            fontWeight: 400,\n            fontSize: labelFs,\n            lineHeight: 1.1,\n            letterSpacing: \"-0.01em\",\n            paddingLeft: tall ? 0 : numFs * 0.05,\n            color: pal.muted,\n            opacity: labelIn,\n            transform: `translateY(${(1 - labelIn) * 0.4 * labelFs}px)`,\n          }}\n        >\n          {label}\n        </span>\n      </div>\n    </AbsoluteFill>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/remocn/waitlist-swarm.tsx"
    }
  ],
  "type": "registry:component"
}
