{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"sign-in","title":"Sign in","description":"Sign In Page Block for React and shadcn. Google or GitHub in one press, or a code by email. Then pick a workspace and you’re in.","type":"registry:block","author":"Detent","dependencies":["motion","simple-icons"],"registryDependencies":["https://detentui.com/r/theme.json"],"files":[{"path":"components/detent/blocks/signin/SignIn.tsx","target":"components/detent/blocks/signin/SignIn.tsx","type":"registry:block","content":"'use client'\n\nimport { useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react'\nimport type { ReactNode, RefObject } from 'react'\nimport { AnimatePresence, motion } from 'motion/react'\nimport { ArrowLeft, Check, ChevronDown, Lock, Mail, Plus } from '@/components/detent/blocks/kit/icons'\nimport { ease, press, spring, dur } from '@/components/detent/lib/motion'\nimport { tap } from '@/components/detent/lib/feel'\nimport { CodeInput } from '@/components/detent/components/code/CodeInput'\nimport type { CodeHandle } from '@/components/detent/components/code/CodeInput'\nimport { Bloom, DrawnCheck } from '@/components/detent/ui/Outcome'\nimport { Spinner } from '@/components/detent/ui/Spinner'\nimport { useDirector } from '@/components/detent/blocks/kit/director'\nimport { BrandMark } from '@/components/detent/blocks/kit/AppIcon'\nimport { DetentMark, ProductMark } from '@/components/detent/ui/DetentMark'\nimport { Orb } from '@/components/detent/ui/Orb'\nimport { Names, accentVars, useNames } from '@/components/detent/blocks/kit/props'\nimport type { BlockProps } from '@/components/detent/blocks/kit/props'\n\ntype Stage = 'start' | 'code' | 'workspace' | 'done'\nconst CODE = '482913'\nconst EMAIL = 'maya@harbor.dev'\nexport type Workspace = { id: string; name: string; note: string; hue?: number }\nexport type Provider = 'google' | 'github'\nconst SPACES: Workspace[] = [\n  { id: 'harbor', name: 'Harbor', note: '24 members · Admin', hue: 250 },\n  { id: 'fieldwork', name: 'Fieldwork', note: '8 members · Member', hue: 150 },\n]\nexport type Waiting = { id: string; who: string; hue?: number; agent?: boolean; title: string; note: string; when: string }\nconst WAITING: Waiting[] = [\n  { id: 'eval', who: 'Detent', agent: true, title: 'Detent finished the refund eval', note: 'v13 passes 70% · 2 regressions to decide', when: '2h' },\n  { id: 'review', who: 'Priya Raman', hue: 160, title: 'Priya asked for your review', note: '#1291 · Batch inventory lookups', when: '5h' },\n  { id: 'drafts', who: 'Detent', agent: true, title: 'Detent drafted 12 replies', note: 'Support inbox · ready for you to send', when: 'Yesterday' },\n  { id: 'mention', who: 'Leo Okafor', hue: 28, title: 'Leo mentioned you', note: 'Launch checklist · “Can you sign off the copy?”', when: 'Mon' },\n]\nconst COUNT = ['none', 'one', 'two', 'three', 'four', 'five']\nconst slug = (s: string) => s.toLowerCase().replace(/[^a-z0-9]+/g, '-')\n\nexport type SignInProps = BlockProps & {\n  product?: string\n  providers?: Provider[]\n  workspaces?: Workspace[]\n  waiting?: Waiting[]\n  onComplete?: (workspace: Workspace) => void\n}\n\nexport function SignIn({ autoplay = true, accent, product = 'Detent', providers = ['google', 'github'], workspaces = SPACES, waiting = WAITING, onComplete, className = '' }: SignInProps) {\n  const names = useMemo(() => ({ assistant: 'Detent', product }), [product])\n  const done = useRef(onComplete)\n  useLayoutEffect(() => {\n    done.current = onComplete\n  })\n  const handedRef = useRef(!autoplay)\n  const [stage, setStage] = useState<Stage>('start')\n  const [email, setEmail] = useState('')\n  const [sending, setSending] = useState(false)\n  const [error, setError] = useState<string | null>(null)\n  const [sheet, setSheet] = useState<'ask' | 'going' | null>(null)\n  const [mail, setMail] = useState(false)\n  const [picking, setPicking] = useState<string | null>(null)\n  const [doneAt, setDoneAt] = useState<number | null>(null)\n  const [run, setRun] = useState(0)\n  const code = useRef<CodeHandle>(null)\n  const alive = useRef(true)\n  useEffect(() => {\n    alive.current = true\n    return () => {\n      alive.current = false\n    }\n  }, [])\n  const later = (ms: number, f: () => void) => setTimeout(() => alive.current && f(), ms)\n\n  const reset = () => {\n    setStage('start')\n    setEmail('')\n    setSending(false)\n    setError(null)\n    setSheet(null)\n    setMail(false)\n    setPicking(null)\n    setDoneAt(null)\n    setRun((r) => r + 1)\n  }\n\n  const sendCode = (value = email) => {\n    if (!/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(value.trim())) return setError('Enter a work email, like you@company.com')\n    setError(null)\n    setSending(true)\n    later(700, () => {\n      setSending(false)\n      setStage('code')\n      later(1100, () => setMail(true))\n    })\n  }\n\n  const github = () => {\n    tap()\n    setSheet('ask')\n  }\n  const authorize = () => {\n    tap()\n    setSheet('going')\n    later(900, () => {\n      setSheet(null)\n      setStage('workspace')\n    })\n  }\n\n  const pick = (id: string) => {\n    tap()\n    setPicking(id)\n    const space = workspaces.find((s) => s.id === id)\n    if (space && handedRef.current) done.current?.(space)\n    later(900, () => {\n      setStage('done')\n      setDoneAt(Date.now())\n    })\n  }\n\n  const director = useDirector(\n    async (wait, pass) => {\n      if (pass > 0) {\n        reset()\n        await wait(700)\n      }\n      await wait(1200)\n      if (pass % 2 === 0 || !providers.includes('github')) {\n        for (let i = 1; i <= EMAIL.length; i++) {\n          setEmail(EMAIL.slice(0, i))\n          await wait(EMAIL[i - 1] === '@' ? 140 : 42 + Math.random() * 30)\n        }\n        await wait(380)\n        tap()\n        sendCode(EMAIL)\n        await wait(700 + 1100 + 1300)\n        setMail(false)\n        code.current?.type(CODE)\n        await wait(2300)\n        setStage('workspace')\n      } else {\n        github()\n        await wait(1900)\n        authorize()\n        await wait(1100)\n      }\n      await wait(1300)\n      if (workspaces[0]) pick(workspaces[0].id)\n      await wait(900 + 3200)\n    },\n    autoplay,\n    () => {\n      handedRef.current = true\n    },\n  )\n\n  return (\n    <Names.Provider value={names}>\n      <div className={`pro-app @container relative flex h-full w-full overflow-hidden bg-surface text-ink ${className}`} style={accentVars(accent)} onPointerDownCapture={director.onPointerDownCapture} onPointerUpCapture={director.onPointerUpCapture} onKeyDownCapture={director.onKeyDownCapture}>\n        <div className=\"relative min-w-0 flex-1\">\n          <div className=\"absolute left-5 top-5 flex items-center gap-2.5 @4xl:left-8 @4xl:top-8\">\n            <Mark />\n            <span className=\"text-headline\">{product}</span>\n          </div>\n\n          <AnimatePresence initial={false}>\n            <motion.div\n              key={`${stage}-${run}`}\n              className=\"absolute inset-0 flex items-center justify-center px-6\"\n              initial={{ opacity: 0, y: 10 }}\n              animate={{ opacity: 1, y: 0, transition: { duration: 0.4, ease: ease.out, delay: 0.08 } }}\n              exit={{ opacity: 0, y: -8, transition: { duration: 0.18, ease: ease.out } }}\n            >\n              <div className=\"w-full max-w-[360px]\">\n                {stage === 'start' && <Start email={email} setEmail={(v) => (setEmail(v), setError(null))} error={error} sending={sending} providers={providers} onGitHub={github} onEmail={() => (tap(), sendCode())} />}\n                {stage === 'code' && <Code email={email || EMAIL} codeRef={code} onBack={reset} onVerified={() => later(900, () => setStage('workspace'))} suggest={mail} />}\n                {stage === 'workspace' && <Workspaces spaces={workspaces} picking={picking} onPick={pick} />}\n                {stage === 'done' && <Done at={doneAt} name={workspaces.find((s) => s.id === picking)?.name} />}\n              </div>\n            </motion.div>\n          </AnimatePresence>\n\n          <p className=\"absolute inset-x-0 bottom-5 text-center text-caption text-ink-3 @4xl:bottom-8\">\n            By continuing you agree to the <span className=\"text-[var(--dt-accent-ink)] underline decoration-[color-mix(in_oklch,var(--dt-accent)_35%,transparent)] underline-offset-2\">Terms</span> and{' '}\n            <span className=\"text-[var(--dt-accent-ink)] underline decoration-[color-mix(in_oklch,var(--dt-accent)_35%,transparent)] underline-offset-2\">Privacy Policy</span>.\n          </p>\n        </div>\n\n        {waiting.length > 0 && <Away items={waiting} stage={stage} email={email || EMAIL} space={workspaces.find((s) => s.id === picking) ?? workspaces[0]} />}\n\n        <AnimatePresence>{mail && stage === 'code' && <MailToast onOpen={() => (setMail(false), code.current?.type(CODE))} />}</AnimatePresence>\n        <AnimatePresence>{sheet && <OAuthSheet going={sheet === 'going'} onAuthorize={authorize} onCancel={() => setSheet(null)} />}</AnimatePresence>\n      </div>\n    </Names.Provider>\n  )\n}\n\nfunction Start({ email, setEmail, error, sending, providers, onGitHub, onEmail }: { email: string; setEmail: (v: string) => void; error: string | null; sending: boolean; providers: Provider[]; onGitHub: () => void; onEmail: () => void }) {\n  const { product } = useNames()\n  return (\n    <div>\n      <h2 className=\"text-large text-ink\">Sign in to {product}</h2>\n      <p className=\"mt-2 text-callout text-ink-3\">Welcome back. Pick up where you left off.</p>\n      {providers.length > 0 && (\n        <>\n          <div className=\"mt-8 grid gap-2\">\n            {providers.map((p) => (\n              <motion.button\n                key={p}\n                type=\"button\"\n                whileTap={press}\n                onClick={p === 'github' ? onGitHub : undefined}\n                className=\"ring-focus flex h-11 w-full items-center justify-center gap-2.5 rounded-[9px] lit bg-[color-mix(in_oklch,var(--ink)_5.5%,transparent)] hover:bg-[color-mix(in_oklch,var(--ink)_9%,transparent)] text-callout font-medium text-ink transition-colors ease-detent\"\n              >\n                <BrandMark brand={p} size={17} />\n                Continue with {p === 'github' ? 'GitHub' : 'Google'}\n              </motion.button>\n            ))}\n          </div>\n          <div className=\"my-5 flex items-center gap-3 text-caption text-ink-3\">\n            <span className=\"h-px flex-1 bg-line\" />\n            or with email\n            <span className=\"h-px flex-1 bg-line\" />\n          </div>\n        </>\n      )}\n      {providers.length === 0 && <div className=\"h-8\" />}\n      <form\n        onSubmit={(e) => {\n          e.preventDefault()\n          onEmail()\n        }}\n        noValidate\n      >\n        <label className=\"text-footnote font-medium text-ink-2\" htmlFor=\"signin-email\">\n          Work email\n        </label>\n        <input\n          id=\"signin-email\"\n          type=\"email\"\n          inputMode=\"email\"\n          autoComplete=\"email\"\n          spellCheck={false}\n          value={email}\n          onChange={(e) => setEmail(e.target.value)}\n          placeholder=\"you@company.com\"\n          aria-invalid={!!error}\n          aria-describedby=\"signin-hint\"\n          className={`mt-1.5 block h-11 w-full rounded-[9px] px-3.5 text-body text-ink outline-none transition-[background-color,box-shadow] ease-detent placeholder:text-ink-3 ${error ? 'bg-plate shadow-field-error' : 'bg-[color-mix(in_oklch,var(--ink)_4.5%,transparent)] focus:bg-plate focus:shadow-[0_0_0_1px_color-mix(in_oklch,var(--dt-accent)_50%,transparent),0_0_0_4px_color-mix(in_oklch,var(--dt-accent)_13%,transparent)]'}`}\n        />\n        <p id=\"signin-hint\" aria-live=\"polite\" className={`mt-1.5 h-[18px] text-caption ${error ? 'text-danger' : 'text-ink-3'}`}>\n          {error ?? 'We’ll email you a 6-digit code.'}\n        </p>\n        <motion.button type=\"submit\" whileTap={press} className=\"ring-focus mt-3 grid h-11 w-full items-center rounded-[9px] bg-ink text-callout font-medium text-surface shadow-[inset_0_1px_0_rgb(255_255_255/0.14),0_1px_2px_rgb(0_0_0/0.18)] transition-opacity ease-detent hover:opacity-90\">\n          <span className={`col-start-1 row-start-1 transition-opacity ease-detent ${sending ? 'opacity-0' : ''}`}>Continue with email</span>\n          <span className={`col-start-1 row-start-1 flex justify-center transition-opacity ease-detent ${sending ? '' : 'opacity-0'}`}>\n            <Spinner size={16} />\n          </span>\n        </motion.button>\n      </form>\n      <motion.button whileTap={press} type=\"button\" className=\"ring-focus mt-3 h-9 w-full rounded-[7px] text-footnote text-[var(--dt-accent-ink)] hover:underline\">\n        Use single sign-on\n      </motion.button>\n      <p className=\"mt-6 text-center text-footnote text-ink-3\">\n        New to {product}? <span className=\"font-medium text-[var(--dt-accent-ink)]\">Create a workspace</span>\n      </p>\n    </div>\n  )\n}\n\nfunction Code({ email, codeRef, onBack, onVerified, suggest }: { email: string; codeRef: RefObject<CodeHandle | null>; onBack: () => void; onVerified: () => void; suggest: boolean }) {\n  return (\n    <div>\n      <motion.button whileTap={press} type=\"button\" onClick={onBack} className=\"ring-focus -ml-2 flex h-8 items-center gap-1.5 rounded-full px-2 text-footnote text-ink-2 hover:bg-surface-2 hover:text-ink\">\n        <ArrowLeft size={14} />\n        Back\n      </motion.button>\n      <span className=\"mt-5 flex size-11 items-center justify-center rounded-[10px] bg-surface text-ink-2 shadow-raised\">\n        <Mail size={19} />\n      </span>\n      <h2 className=\"mt-5 text-large text-ink\">Check your email</h2>\n      <p className=\"mb-6 mt-2 text-callout text-ink-3\">\n        Enter the code we sent to <span className=\"text-ink\">{email}</span>\n      </p>\n      <CodeInput\n        ref={codeRef}\n        onVerify={async (c) => {\n          await new Promise((r) => setTimeout(r, 900))\n          return c === CODE\n        }}\n        onVerified={onVerified}\n      />\n      <div className=\"relative mt-4 h-8\">\n        <AnimatePresence initial={false}>\n          {suggest ? (\n            <motion.button\n              key=\"suggest\"\n              type=\"button\"\n              whileTap={press}\n              onClick={() => codeRef.current?.type(CODE)}\n              className=\"ring-focus absolute left-0 top-0 flex h-8 items-center gap-2 rounded-full bg-surface-2 pl-2 pr-3 text-footnote text-ink\"\n              initial={{ opacity: 0, y: 4 }}\n              animate={{ opacity: 1, y: 0 }}\n              exit={{ opacity: 0, transition: { duration: dur.exit, ease: ease.out } }} transition={spring.snappy}\n            >\n              <span className=\"flex size-5 items-center justify-center rounded-[6px] bg-[#3b82f6] text-white\">\n                <Mail size={11} />\n              </span>\n              From Mail <span className=\"tnum font-medium tracking-[0.08em]\">{CODE}</span>\n            </motion.button>\n          ) : (\n            <span key=\"none\" />\n          )}\n        </AnimatePresence>\n      </div>\n    </div>\n  )\n}\n\nfunction Workspaces({ spaces, picking, onPick }: { spaces: Workspace[]; picking: string | null; onPick: (id: string) => void }) {\n  return (\n    <div>\n      <h2 className=\"text-large text-ink\">Choose a workspace</h2>\n      <p className=\"mt-2 text-callout text-ink-3\">{spaces.length === 1 ? 'You’re a member of one.' : `You’re a member of ${COUNT[spaces.length] ?? spaces.length}.`} You can switch any time.</p>\n      <ul className=\"mt-7 flex flex-col gap-2\">\n        {spaces.map((s, i) => (\n          <li key={s.id}>\n            <motion.button\n              type=\"button\"\n              whileTap={press}\n              onClick={() => onPick(s.id)}\n              disabled={!!picking}\n              className={`ring-focus flex h-16 w-full items-center gap-3 rounded-[10px] px-3 text-left transition-colors ease-detent ${picking === s.id ? 'bg-[color-mix(in_oklch,var(--ink)_9%,transparent)]' : 'lit bg-[color-mix(in_oklch,var(--ink)_5.5%,transparent)] hover:bg-[color-mix(in_oklch,var(--ink)_9%,transparent)]'}`}\n            >\n              <Orb seed={s.name} hue={s.hue ?? (250 + i * 100) % 360} size={40} />\n              <span className=\"min-w-0 flex-1\">\n                <span className=\"block text-callout font-medium text-ink\">{s.name}</span>\n                <span className=\"block text-caption text-ink-3\">{s.note}</span>\n              </span>\n              <span className=\"flex size-6 items-center justify-center text-ink-3\">{picking === s.id ? <Spinner size={15} /> : <ChevronDown size={14} className=\"-rotate-90\" />}</span>\n            </motion.button>\n          </li>\n        ))}\n        <li>\n          <button type=\"button\" className=\"ring-focus flex h-12 w-full items-center gap-3 rounded-[10px] px-3 text-callout text-ink-2 hover:bg-surface-2 hover:text-ink\">\n            <span className=\"flex size-10 items-center justify-center rounded-[8px] shadow-[inset_0_0_0_1.5px_var(--line-strong)]\">\n              <Plus size={15} />\n            </span>\n            Create a workspace\n          </button>\n        </li>\n      </ul>\n    </div>\n  )\n}\n\nfunction Done({ at, name }: { at: number | null; name?: string }) {\n  return (\n    <div className=\"flex flex-col items-center text-center\">\n      <span className=\"relative flex size-14 items-center justify-center rounded-full bg-ok text-white\">\n        <DrawnCheck size={22} delay={0.15} strokeWidth={2.6} />\n        <Bloom k={at} radius={999} spread={14} delay={0.1} />\n      </span>\n      <h2 className=\"mt-6 text-large text-ink\">You’re in</h2>\n      <p className=\"mt-2 text-callout text-ink-3\">Taking you to {name ?? 'your workspace'}…</p>\n      <span className=\"mt-6 h-1 w-40 overflow-hidden rounded-full bg-surface-2\">\n        <motion.span className=\"block h-full origin-left rounded-full bg-ink\" initial={{ scaleX: 0 }} animate={{ scaleX: 1 }} transition={{ duration: 2.4, ease: ease.inOut }} />\n      </span>\n    </div>\n  )\n}\n\nfunction Away({ items, stage, email, space }: { items: Waiting[]; stage: Stage; email: string; space?: Workspace }) {\n  const open = stage === 'workspace' || stage === 'done'\n  const n = COUNT[items.length] ?? String(items.length)\n  const lead = n[0].toUpperCase() + n.slice(1)\n  const note = open ? `Signed in as ${email}` : stage === 'code' ? 'Checking it’s you…' : 'Hidden until you sign in'\n  return (\n    <aside aria-label=\"While you were away\" className=\"hidden w-[46%] max-w-[600px] shrink-0 p-3 @4xl:flex\">\n      <div className=\"flex flex-1 items-center justify-center rounded-[18px] bg-dt-card px-10\">\n        <div className=\"w-full max-w-[400px]\">\n          <p className=\"flex items-center gap-2 text-footnote text-ink-2\">\n            {space && <Orb seed={space.name} hue={space.hue ?? 250} size={18} />}\n            {space?.name}\n          </p>\n          <div className=\"mt-4 grid\">\n            <Swap on={!open} className=\"text-title text-ink\">\n              {lead} {items.length === 1 ? 'thing is' : 'things are'} waiting for you\n            </Swap>\n            <Swap on={open} className=\"text-title text-ink\">\n              Here’s where you left off\n            </Swap>\n          </div>\n          <p className=\"mt-1.5 text-callout text-ink-3\">Your team kept going while you were away.</p>\n\n          <ul className=\"mt-7 overflow-hidden rounded-[14px] bg-surface shadow-raised\">\n            {items.map((w, i) => (\n              <li key={w.id} className={`flex h-[68px] items-center gap-3 px-4 ${i ? 'shadow-[inset_0_1px_0_var(--line)]' : ''}`}>\n                <span className=\"relative shrink-0\">\n                  {w.agent ? <ProductMark name={w.who} size={32} round /> : <Orb seed={w.who} hue={w.hue} size={32} />}\n                  <span className=\"absolute inset-0 rounded-full bg-surface-3 transition-opacity ease-detent duration-500\" style={{ opacity: open ? 0 : 1, transitionDelay: open ? `${i * 90}ms` : '0ms' }} />\n                </span>\n                <span className=\"min-w-0 flex-1\">\n                  <Redacted text={w.title} open={open} at={i} className=\"text-footnote font-medium text-ink\" />\n                  <Redacted text={w.note} open={open} at={i} className=\"text-caption text-ink-3\" />\n                </span>\n                <span className=\"tnum shrink-0 self-start pt-[15px] text-caption text-ink-3\">{w.when}</span>\n              </li>\n            ))}\n          </ul>\n\n          <p className=\"mt-4 grid h-5 text-caption text-ink-3\">\n            {(['Hidden until you sign in', 'Checking it’s you…', `Signed in as ${email}`] as const).map((t) => (\n              <span key={t} aria-hidden={t !== note} className={`col-start-1 row-start-1 flex items-center gap-1.5 transition-opacity ease-detent duration-300 ${t === note ? '' : 'opacity-0'}`}>\n                {t.startsWith('Signed') ? <Check size={12} strokeWidth={2.6} className=\"text-ok\" /> : <Lock size={12} />}\n                <span className=\"truncate\">{t}</span>\n              </span>\n            ))}\n          </p>\n        </div>\n      </div>\n    </aside>\n  )\n}\n\nfunction Swap({ on, className, children }: { on: boolean; className: string; children: ReactNode }) {\n  return (\n    <span aria-hidden={!on} className={`col-start-1 row-start-1 transition-[opacity,translate] ease-detent duration-500 ${on ? '' : 'translate-y-1 opacity-0'} ${className}`}>\n      {children}\n    </span>\n  )\n}\n\nfunction Redacted({ text, open, at, className }: { text: string; open: boolean; at: number; className: string }) {\n  const delay = { transitionDelay: open ? `${120 + at * 90}ms` : '0ms' }\n  return (\n    <span className={`grid ${className}`}>\n      <span aria-hidden={!open} className={`col-start-1 row-start-1 truncate transition-opacity ease-detent duration-500 ${open ? '' : 'opacity-0'}`} style={delay}>\n        {text}\n      </span>\n      <span aria-hidden className={`col-start-1 row-start-1 flex items-center transition-opacity ease-detent duration-500 ${open ? 'opacity-0' : ''}`} style={delay}>\n        <span className=\"h-2 rounded-full bg-[color-mix(in_oklch,var(--ink)_9%,transparent)]\" style={{ width: `min(100%, ${text.length * 0.9}ch)` }} />\n      </span>\n    </span>\n  )\n}\n\nfunction MailToast({ onOpen }: { onOpen: () => void }) {\n  const { product } = useNames()\n  return (\n    <motion.button\n      type=\"button\"\n      onClick={onOpen}\n      className=\"absolute right-3 top-3 z-20 flex w-[min(320px,calc(100%-24px))] items-start gap-3 rounded-[12px] bg-surface p-3 text-left shadow-modal\"\n      initial={{ opacity: 0, y: -24, scale: 0.96 }}\n      animate={{ opacity: 1, y: 0, scale: 1 }}\n      exit={{ opacity: 0, y: -16, scale: 0.98, transition: { duration: 0.2, ease: ease.out } }}\n      transition={spring.soft}\n    >\n      <span className=\"flex size-9 shrink-0 items-center justify-center rounded-[7px] bg-[#3b82f6] text-white\">\n        <Mail size={17} />\n      </span>\n      <span className=\"min-w-0 flex-1\">\n        <span className=\"flex items-center justify-between text-caption text-ink-3\">\n          <span>Mail</span>\n          <span>now</span>\n        </span>\n        <span className=\"block text-footnote font-medium text-ink\">Your {product} sign-in code</span>\n        <span className=\"block text-footnote text-ink-2\">\n          Use <span className=\"tnum font-medium tracking-[0.06em] text-ink\">{CODE}</span> to sign in. It expires in 10 minutes.\n        </span>\n      </span>\n    </motion.button>\n  )\n}\n\nfunction OAuthSheet({ going, onAuthorize, onCancel }: { going: boolean; onAuthorize: () => void; onCancel: () => void }) {\n  const { product } = useNames()\n  const org = `${slug(product)}-labs`\n  return (\n    <>\n      <motion.div className=\"absolute inset-0 z-30 bg-black/25\" initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }} onClick={onCancel} transition={{ duration: dur.enter, ease: ease.out }} />\n      <motion.div\n        role=\"dialog\"\n        aria-label={`Authorize ${product} on GitHub`}\n        className=\"absolute left-1/2 top-1/2 z-40 w-[340px] max-w-[calc(100%-32px)] -translate-x-1/2 -translate-y-1/2 overflow-hidden rounded-[14px] bg-surface shadow-modal\"\n        initial={{ opacity: 0, scale: 0.95 }}\n        animate={{ opacity: 1, scale: 1 }}\n        exit={{ opacity: 0, scale: 0.98, transition: { duration: dur.exit, ease: ease.out } }}\n        transition={spring.soft}\n      >\n        <div className=\"flex h-9 items-center justify-center gap-2 bg-[light-dark(#f6f8fa,#161b22)] text-footnote text-ink-2 shadow-[inset_0_-1px_0_var(--line)]\">\n          <BrandMark brand=\"github\" size={14} />\n          github.com\n        </div>\n        <div className=\"flex flex-col items-center px-6 pb-6 pt-5 text-center\">\n          <div className=\"flex items-center gap-3\">\n            <Mark size={44} />\n            <span className=\"flex gap-1 text-ink-3\" aria-hidden>\n              <span className=\"size-1 rounded-full bg-current\" />\n              <span className=\"size-1 rounded-full bg-current opacity-60\" />\n              <span className=\"size-1 rounded-full bg-current opacity-30\" />\n            </span>\n            <span className=\"flex size-11 items-center justify-center rounded-full bg-[#181717] text-white\">\n              <BrandMark brand=\"github\" size={24} />\n            </span>\n          </div>\n          <p className=\"mt-4 text-headline text-ink\">Authorize {product}</p>\n          <p className=\"mt-1 text-footnote text-ink-3\">\n            {product} by {org} wants to access your account\n          </p>\n          <ul className=\"mt-4 w-full rounded-[9px] p-3 text-left text-footnote shadow-border\">\n            {[\n              ['Personal user data', 'Email addresses (read-only)'],\n              ['Organizations', 'Read your membership in harbor-labs'],\n            ].map(([t, d], n) => (\n              <li key={t} className={`flex gap-2.5 ${n ? 'mt-2.5' : ''}`}>\n                <Check size={13} strokeWidth={2.6} className=\"mt-0.5 shrink-0 text-ink-3\" />\n                <span>\n                  <span className=\"block font-medium text-ink\">{t}</span>\n                  <span className=\"block text-caption text-ink-3\">{d}</span>\n                </span>\n              </li>\n            ))}\n          </ul>\n          <motion.button type=\"button\" whileTap={press} onClick={onAuthorize} className=\"ring-focus relative mt-5 flex h-9 w-full items-center justify-center rounded-[7px] bg-[#1f883d] text-callout font-medium text-white shadow-[inset_0_1px_0_rgb(255_255_255/0.18)]\">\n            <span className={`transition-opacity ease-detent ${going ? 'opacity-0' : ''}`}>Authorize {org}</span>\n            <span className={`absolute inset-0 flex items-center justify-center transition-opacity ease-detent ${going ? '' : 'opacity-0'}`}>\n              <Spinner size={15} />\n            </span>\n          </motion.button>\n          <button type=\"button\" onClick={onCancel} className=\"ring-focus mt-2 h-8 w-full rounded-[7px] text-footnote text-ink-2 hover:bg-surface-2\">\n            Cancel\n          </button>\n          <p className=\"mt-3 text-caption text-ink-3\">Authorizing will redirect to {slug(product)}.app</p>\n        </div>\n      </motion.div>\n    </>\n  )\n}\n\nfunction Mark({ size = 28, className = '' }: { size?: number; className?: string }) {\n  return <DetentMark size={size} className={className} />\n}\n"},{"path":"components/detent/blocks/kit/props.tsx","target":"components/detent/blocks/kit/props.tsx","type":"registry:block","content":"'use client'\n\nimport { createContext, useContext } from 'react'\nimport type { CSSProperties } from 'react'\n\nexport type BlockProps = {\n  autoplay?: boolean\n  accent?: string\n  className?: string\n}\n\nexport const Names = createContext({ assistant: 'Detent', product: 'Detent' })\nexport const useNames = () => useContext(Names)\n\nexport const handle = (s: string) => s.toLowerCase().replace(/[^a-z0-9]+/g, '-')\n\nexport function accentVars(accent?: string): CSSProperties | undefined {\n  if (!accent) return undefined\n  return {\n    ['--dt-accent' as string]: accent,\n    ['--dt-accent-ink' as string]: `light-dark(color-mix(in oklch, ${accent} 82%, black), color-mix(in oklch, ${accent} 60%, white))`,\n  }\n}\n"},{"path":"components/detent/ui/DetentMark.tsx","target":"components/detent/ui/DetentMark.tsx","type":"registry:block","content":"import { Orb } from '@/components/detent/ui/Orb'\n\nexport function DetentMark({ size = 28, round = false, className = '' }: { size?: number; round?: boolean; className?: string }) {\n  return (\n    <svg aria-hidden width={size} height={size} viewBox=\"0 0 24 24\" className={`shrink-0 ${className}`}>\n      <rect width=\"24\" height=\"24\" rx={round ? 12 : 7} fill=\"var(--ink)\" />\n      <g transform={`translate(12 12) scale(${round ? 0.54 : 0.6}) translate(-12 -12)`} fill=\"var(--surface)\">\n        <rect x=\"3.75\" y=\"3\" width=\"5.5\" height=\"18\" rx=\"1.1\" />\n        <path d=\"M11.25 3a9 9 0 0 1 0 18z\" />\n      </g>\n    </svg>\n  )\n}\n\nexport function ProductMark({ name, size = 20, round = false, hue = 250, className = '' }: { name: string; size?: number; round?: boolean; hue?: number; className?: string }) {\n  return name === 'Detent' ? <DetentMark size={size} round={round} className={className} /> : <Orb seed={name} hue={hue} size={size} className={className} />\n}\n"},{"path":"components/detent/blocks/kit/icons.tsx","target":"components/detent/blocks/kit/icons.tsx","type":"registry:block","content":"import { useId } from 'react'\nimport type { SVGProps } from 'react'\n\ntype P = SVGProps<SVGSVGElement> & { size?: number }\n\nfunction Svg({ size = 18, children, ...rest }: P) {\n  return (\n    <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.5} strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden {...rest}>\n      {children}\n    </svg>\n  )\n}\n\nexport const Check = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M5 12.5l4.5 4.5L19 7.5\" />\n  </Svg>\n)\n\nexport const ChevronDown = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M6.5 9.5 12 15l5.5-5.5\" />\n  </Svg>\n)\n\nexport const ChevronRight = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M9.5 6.5 15 12l-5.5 5.5\" />\n  </Svg>\n)\n\nexport const ChevronLeft = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M14.5 6.5 9 12l5.5 5.5\" />\n  </Svg>\n)\n\nexport const Reset = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M4.5 12a7.5 7.5 0 1 0 2.2-5.3\" />\n    <path d=\"M4.5 4.5v4h4\" />\n  </Svg>\n)\n\nexport const Close = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M6.5 6.5l11 11M17.5 6.5l-11 11\" />\n  </Svg>\n)\n\nexport const Plus = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M12 5.5v13M5.5 12h13\" />\n  </Svg>\n)\n\nexport const Search = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"11\" cy=\"11\" r=\"6.25\" />\n    <path d=\"m15.75 15.75 3.75 3.75\" />\n  </Svg>\n)\n\nexport const Orbit = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M18.06 8.5A7 7 0 1 1 15.5 5.94\" />\n    <circle cx=\"16.95\" cy=\"7.05\" r=\"1.9\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Refresh = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M19.5 12a7.5 7.5 0 1 1-2.2-5.3\" />\n    <path d=\"M19.5 4.5v4h-4\" />\n  </Svg>\n)\n\nexport const Note = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"5\" y=\"3.5\" width=\"14\" height=\"17\" rx=\"2.5\" />\n    <path d=\"M8.75 8.5h6.5M8.75 12h6.5M8.75 15.5h3.5\" />\n  </Svg>\n)\n\nexport const FilePage = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M13.5 3.5H8A2.5 2.5 0 0 0 5.5 6v12A2.5 2.5 0 0 0 8 20.5h8a2.5 2.5 0 0 0 2.5-2.5V8.5Z\" />\n    <path d=\"M13.5 3.5v5h5\" />\n  </Svg>\n)\n\nexport const Copy = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"8.5\" y=\"8.5\" width=\"11\" height=\"11\" rx=\"2.5\" />\n    <path d=\"M15.5 8.5v-2a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h2\" />\n  </Svg>\n)\n\nexport const ArrowUp = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M12 19V5.5M6.5 11 12 5.5l5.5 5.5\" />\n  </Svg>\n)\n\nexport const ArrowRight = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M5 12h13.5M13 6.5l5.5 5.5-5.5 5.5\" />\n  </Svg>\n)\n\nexport const ArrowLeft = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M19 12H5.5M11 6.5 5.5 12l5.5 5.5\" />\n  </Svg>\n)\n\nexport const Return = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M18.5 5.5V11a3 3 0 0 1-3 3H5.5M10 9.5 5.5 14l4.5 4.5\" />\n  </Svg>\n)\n\nexport const ArrowUpRight = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M7.5 16.5l9-9M9 7.5h7.5V15\" />\n  </Svg>\n)\n\nexport const Pencil = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M11.5 4.5H7A2.5 2.5 0 0 0 4.5 7v10A2.5 2.5 0 0 0 7 19.5h10a2.5 2.5 0 0 0 2.5-2.5v-4.5\" />\n    <path d=\"M17.6 3.9a1.9 1.9 0 0 1 2.7 2.7l-7.8 7.8-3.5.8.8-3.5Z\" />\n  </Svg>\n)\n\nexport const Folder = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M3.5 7.5A2.5 2.5 0 0 1 6 5h3.4c.6 0 1.1.2 1.5.6l1.2 1.2c.4.4.9.6 1.5.6H18a2.5 2.5 0 0 1 2.5 2.5v6.6A2.5 2.5 0 0 1 18 19H6a2.5 2.5 0 0 1-2.5-2.5Z\" />\n  </Svg>\n)\n\nexport const Code = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M8.5 7.5 4 12l4.5 4.5M15.5 7.5 20 12l-4.5 4.5\" />\n  </Svg>\n)\n\nexport const Download = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M12 4.5v11M7.5 11l4.5 4.5 4.5-4.5M5 19.5h14\" />\n  </Svg>\n)\n\nexport const Upload = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M12 15.5v-11M7.5 9 12 4.5 16.5 9M5 19.5h14\" />\n  </Svg>\n)\n\nexport const Thumb = ({ down, ...p }: P & { down?: boolean }) => (\n  <Svg {...p} style={{ transform: down ? 'scale(1, -1)' : undefined, ...p.style }}>\n    <path d=\"M7.5 10.5 11 4a1.8 1.8 0 0 1 3.3 1.3l-.8 3.7h4.9a2 2 0 0 1 2 2.4l-1.2 6.4a2 2 0 0 1-2 1.7H7.5Z\" />\n    <path d=\"M4.5 10.5h3v9h-3a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1Z\" />\n  </Svg>\n)\n\nexport const Sun = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"12\" cy=\"12\" r=\"4\" />\n    <path d=\"M12 3v1.5M12 19.5V21M3 12h1.5M19.5 12H21M5.6 5.6l1.1 1.1M17.3 17.3l1.1 1.1M5.6 18.4l1.1-1.1M17.3 6.7l1.1-1.1\" />\n  </Svg>\n)\n\nexport const Moon = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M19.5 14.5A7.5 7.5 0 0 1 9.5 4.5a7.5 7.5 0 1 0 10 10Z\" />\n  </Svg>\n)\n\nexport const Stop = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"7\" y=\"7\" width=\"10\" height=\"10\" rx=\"2.25\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Pause = (p: P) => (\n  <Svg {...p} strokeWidth={p.strokeWidth ?? 2}>\n    <path d=\"M9 7v10M15 7v10\" />\n  </Svg>\n)\n\nexport const Mail = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"3.5\" y=\"5.5\" width=\"17\" height=\"13\" rx=\"2.5\" />\n    <path d=\"m4.5 7.5 7.5 5.25 7.5-5.25\" />\n  </Svg>\n)\n\nexport const Expand = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M14.5 4.5h5v5M9.5 19.5h-5v-5M19.5 4.5l-6 6M4.5 19.5l6-6\" />\n  </Svg>\n)\n\nexport const Card = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"3.5\" y=\"5.5\" width=\"17\" height=\"13\" rx=\"2.5\" />\n    <path d=\"M3.5 10h17M7 15h3\" />\n  </Svg>\n)\n\nexport const Bolt = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M13 3.5 5.5 13.5h6l-1 7 7.5-10h-6Z\" />\n  </Svg>\n)\n\nexport const People = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"9\" cy=\"8.5\" r=\"3\" />\n    <path d=\"M3.5 19a5.5 5.5 0 0 1 11 0\" />\n    <path d=\"M15.5 5.6a3 3 0 0 1 0 5.8M17.5 14.3a5.5 5.5 0 0 1 3 4.7\" />\n  </Svg>\n)\n\nexport const Person = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"12\" cy=\"8\" r=\"3.5\" />\n    <path d=\"M5 19.5a7 7 0 0 1 14 0\" />\n  </Svg>\n)\n\nexport const Sliders = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M4.5 7.5h8.5M17 7.5h2.5M4.5 16.5H7M11 16.5h8.5\" />\n    <circle cx=\"15\" cy=\"7.5\" r=\"2\" />\n    <circle cx=\"9\" cy=\"16.5\" r=\"2\" />\n  </Svg>\n)\n\nexport const Key = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"8\" cy=\"15.5\" r=\"3.75\" />\n    <path d=\"M10.7 12.8 19 4.5M16 7.5l2.5 2.5M13.75 9.75l2 2\" />\n  </Svg>\n)\n\nexport const Shield = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M12 3.5 5 6.5v5c0 4.3 3 7.6 7 9 4-1.4 7-4.7 7-9v-5Z\" />\n    <path d=\"m9.25 12 2 2 3.5-3.75\" />\n  </Svg>\n)\n\nexport const Lock = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"5.5\" y=\"10.5\" width=\"13\" height=\"9.5\" rx=\"2.5\" />\n    <path d=\"M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5\" />\n  </Svg>\n)\n\nexport const Sidebar = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"3\" />\n    <path d=\"M9.5 4.5v15\" />\n  </Svg>\n)\n\nexport const PullRequest = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"6.5\" cy=\"6\" r=\"2\" />\n    <circle cx=\"6.5\" cy=\"18\" r=\"2\" />\n    <circle cx=\"17.5\" cy=\"18\" r=\"2\" />\n    <path d=\"M6.5 8v8M17.5 16v-6.5a3 3 0 0 0-3-3H11\" />\n    <path d=\"m13 4.5-2 2 2 2\" />\n  </Svg>\n)\n\nexport const Clock = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"12\" cy=\"12\" r=\"8\" />\n    <path d=\"M12 7.5V12l3 2\" />\n  </Svg>\n)\n\nexport const Terminal = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"3\" />\n    <path d=\"m7.5 9.5 2.5 2.5-2.5 2.5M12.5 14.5h4\" />\n  </Svg>\n)\n\nexport const Filter = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M4.5 7h15M7.5 12h9M10.5 17h3\" />\n  </Svg>\n)\n\nexport const Mic = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"9\" y=\"3.5\" width=\"6\" height=\"11\" rx=\"3\" />\n    <path d=\"M5.5 11.5a6.5 6.5 0 0 0 13 0M12 18v2.5\" />\n  </Svg>\n)\n\nexport const MicOff = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M15 9.5V6.5a3 3 0 0 0-5.6-1.5M9 9v2.5a3 3 0 0 0 4.9 2.3\" />\n    <path d=\"M5.5 11.5a6.5 6.5 0 0 0 10.6 5M18.4 13a6.5 6.5 0 0 0 .1-1.5M12 18v2.5M4 4l16 16\" />\n  </Svg>\n)\n\nexport const Captions = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"3.5\" y=\"5.5\" width=\"17\" height=\"13\" rx=\"3\" />\n    <path d=\"M7.5 13.5h5M14.5 13.5h2M7.5 10.5h2M11.5 10.5h5\" />\n  </Svg>\n)\n\nfunction Solid({ size = 22, children, ...rest }: P) {\n  return (\n    <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden {...rest}>\n      {children}\n    </svg>\n  )\n}\n\nconst HANDSET = 'M2.75 12.9C2.75 9.55 6.9 7.6 12 7.6S21.25 9.55 21.25 12.9v1.55c0 .95-.8 1.65-1.75 1.5l-2.6-.4a1.6 1.6 0 0 1-1.35-1.58v-1.4A12.6 12.6 0 0 0 12 11.9c-1.25 0-2.4.18-3.55.67v1.4a1.6 1.6 0 0 1-1.35 1.58l-2.6.4c-.95.15-1.75-.55-1.75-1.5Z'\n\nexport const MicSolid = (p: P) => (\n  <Solid {...p}>\n    <rect x=\"8.25\" y=\"2.5\" width=\"7.5\" height=\"12.5\" rx=\"3.75\" />\n    <path d=\"M5.25 11.25a6.75 6.75 0 0 0 13.5 0M12 18v3.25\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.9} strokeLinecap=\"round\" />\n  </Solid>\n)\n\nexport function MicOffSolid(p: P) {\n  const id = useId()\n  return (\n    <Solid {...p}>\n      <mask id={id}>\n        <rect width=\"24\" height=\"24\" fill=\"#fff\" />\n        <path d=\"M4.5 3.5 19.5 20.5\" stroke=\"#000\" strokeWidth={5} strokeLinecap=\"round\" />\n      </mask>\n      <g mask={`url(#${id})`}>\n        <rect x=\"8.25\" y=\"2.5\" width=\"7.5\" height=\"12.5\" rx=\"3.75\" />\n        <path d=\"M5.25 11.25a6.75 6.75 0 0 0 13.5 0M12 18v3.25\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.9} strokeLinecap=\"round\" />\n      </g>\n      <path d=\"M4.5 3.5 19.5 20.5\" stroke=\"currentColor\" strokeWidth={1.9} strokeLinecap=\"round\" />\n    </Solid>\n  )\n}\n\nexport const Handset = (p: P) => (\n  <Solid {...p}>\n    <path d={HANDSET} />\n  </Solid>\n)\n\nexport function CaptionsSolid(p: P) {\n  const id = useId()\n  return (\n    <Solid {...p}>\n      <mask id={id}>\n        <rect width=\"24\" height=\"24\" fill=\"#fff\" />\n        <path d=\"M6.75 10.25h3.5M12.25 10.25h5M6.75 13.75h7.5M16.25 13.75h1\" stroke=\"#000\" strokeWidth={1.9} strokeLinecap=\"round\" />\n      </mask>\n      <rect x=\"3\" y=\"5.5\" width=\"18\" height=\"13\" rx=\"3.75\" mask={`url(#${id})`} />\n    </Solid>\n  )\n}\n\nexport const Calendar = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"4\" y=\"5.5\" width=\"16\" height=\"14.5\" rx=\"3\" />\n    <path d=\"M4 10h16M8.5 3.5v4M15.5 3.5v4\" />\n  </Svg>\n)\n\nexport const Undo = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M9 14 4.5 9.5 9 5\" />\n    <path d=\"M4.5 9.5H14a5.5 5.5 0 0 1 0 11h-3\" />\n  </Svg>\n)\n\nexport const Chart = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M5 19.5v-7M10 19.5v-15M15 19.5v-9M20 19.5v-12\" />\n  </Svg>\n)\n\nexport const Chats = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M7.5 4.5h9A2.5 2.5 0 0 1 19 7v6.5a2.5 2.5 0 0 1-2.5 2.5H10.5L6.5 19.5V16A2.5 2.5 0 0 1 5 13.5V7a2.5 2.5 0 0 1 2.5-2.5Z\" />\n  </Svg>\n)\n\nexport const Share = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M12 14V3.5M8.25 7.25 12 3.5l3.75 3.75\" />\n    <path d=\"M8.5 10.5h-1A2.5 2.5 0 0 0 5 13v4.5A2.5 2.5 0 0 0 7.5 20h9a2.5 2.5 0 0 0 2.5-2.5V13a2.5 2.5 0 0 0-2.5-2.5h-1\" />\n  </Svg>\n)\n\nexport const Link = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M10.5 13.5a3.5 3.5 0 0 0 5 0l3-3a3.5 3.5 0 0 0-5-5l-1 1\" />\n    <path d=\"M13.5 10.5a3.5 3.5 0 0 0-5 0l-3 3a3.5 3.5 0 0 0 5 5l1-1\" />\n  </Svg>\n)\n\nexport const Trash = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M4.5 7h15M9.5 7V5.5a1.5 1.5 0 0 1 1.5-1.5h2a1.5 1.5 0 0 1 1.5 1.5V7M6.5 7l.8 11a2 2 0 0 0 2 1.9h5.4a2 2 0 0 0 2-1.9l.8-11\" />\n  </Svg>\n)\n\nexport const LogOut = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M14 4.5H7A2.5 2.5 0 0 0 4.5 7v10A2.5 2.5 0 0 0 7 19.5h7M10.5 12h9M16.5 8.5 20 12l-3.5 3.5\" />\n  </Svg>\n)\n\nexport const Help = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"12\" cy=\"12\" r=\"8\" />\n    <path d=\"M9.75 9.75a2.25 2.25 0 1 1 3.1 2.08c-.5.2-.85.68-.85 1.22v.45\" />\n    <path d=\"M12 16.5h.01\" strokeWidth={2.2} />\n  </Svg>\n)\n\nexport const Grid = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"4.5\" y=\"4.5\" width=\"6\" height=\"6\" rx=\"1.75\" />\n    <rect x=\"13.5\" y=\"4.5\" width=\"6\" height=\"6\" rx=\"1.75\" />\n    <rect x=\"4.5\" y=\"13.5\" width=\"6\" height=\"6\" rx=\"1.75\" />\n    <rect x=\"13.5\" y=\"13.5\" width=\"6\" height=\"6\" rx=\"1.75\" />\n  </Svg>\n)\n\nexport const Paperclip = (p: P) => (\n  <Svg {...p}>\n    <path d=\"m19 11.5-7.1 7.1a4.5 4.5 0 0 1-6.4-6.4l7.6-7.6a3 3 0 0 1 4.25 4.25l-7.4 7.4a1.5 1.5 0 0 1-2.1-2.1l6.7-6.7\" />\n  </Svg>\n)\n\nexport const Photo = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"4\" y=\"5\" width=\"16\" height=\"14\" rx=\"3\" />\n    <circle cx=\"9\" cy=\"10\" r=\"1.5\" />\n    <path d=\"m20 15.5-4.2-4.2a1.5 1.5 0 0 0-2.1 0L6 19\" />\n  </Svg>\n)\n\nexport const Plan = (p: P) => (\n  <Svg {...p}>\n    <path d=\"m4.5 7 1.5 1.5L8.75 5.75M4.5 15l1.5 1.5 2.75-2.75M11.5 7.5h8M11.5 15.5h8\" />\n  </Svg>\n)\n\nexport const At = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"12\" cy=\"12\" r=\"3.25\" />\n    <path d=\"M15.25 12v1.5a2.25 2.25 0 0 0 4.5 0V12a7.75 7.75 0 1 0-3.1 6.2\" />\n  </Svg>\n)\n\nexport const Slash = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"4.5\" />\n    <path d=\"m14 8-4 8\" />\n  </Svg>\n)\n"},{"path":"components/detent/lib/motion.ts","target":"components/detent/lib/motion.ts","type":"registry:block","content":"export const ease = {\n  out: [0.2, 0.9, 0.25, 1] as const,\n  inOut: [0.6, 0, 0.3, 1] as const,\n}\n\nexport const dur = {\n  exit: 0.12,\n  hover: 0.15,\n  enter: 0.2,\n  swap: 0.24,\n  panel: 0.34,\n}\n\nexport const spring = {\n  snappy: { type: 'spring', stiffness: 560, damping: 42, mass: 0.6 } as const,\n  smooth: { type: 'spring', bounce: 0, duration: 0.36 } as const,\n  soft: { type: 'spring', bounce: 0.12, duration: 0.5 } as const,\n  release: { type: 'spring', stiffness: 320, damping: 32 } as const,\n  move: { type: 'spring', stiffness: 420, damping: 38 } as const,\n  data: { type: 'spring', stiffness: 170, damping: 26 } as const,\n  pop: { type: 'spring', bounce: 0.3, duration: 0.4 } as const,\n}\n\nexport const appear = {\n  initial: { opacity: 0, scale: 0.96 },\n  animate: { opacity: 1, scale: 1, transition: { duration: dur.swap, ease: ease.out } },\n  exit: { opacity: 0, scale: 0.97, transition: { duration: dur.exit, ease: ease.out } },\n}\n\nexport const slide = {\n  enter: (dir: number) => ({ x: dir * 24, opacity: 0 }),\n  center: { x: 0, opacity: 1 },\n  exit: (dir: number) => ({ x: dir * -24, opacity: 0 }),\n}\n\nexport const press = { scale: 0.97 }\n\nexport const staggerFor = (count: number) => Math.min(0.04, 0.2 / Math.max(1, count))\n"},{"path":"components/detent/lib/feel.ts","target":"components/detent/lib/feel.ts","type":"registry:block","content":"export const tap = () => {\n  if (typeof window !== 'undefined') window.dispatchEvent(new Event('detent:tap'))\n}\n\nlet keyed = true\nif (typeof window !== 'undefined') {\n  window.addEventListener('keydown', () => void (keyed = true), true)\n  window.addEventListener('pointerdown', () => void (keyed = false), true)\n}\nexport const byKey = () => keyed\n"},{"path":"components/detent/components/code/CodeInput.tsx","target":"components/detent/components/code/CodeInput.tsx","type":"registry:block","content":"'use client'\n\nimport { useEffect, useImperativeHandle, useLayoutEffect, useRef, useState } from 'react'\nimport type { Ref } from 'react'\nimport { AnimatePresence, motion, useAnimationControls, useReducedMotion } from 'motion/react'\nimport { Check } from '@/components/detent/icons'\nimport { useSize } from '@/components/detent/lib/hooks'\nimport { ease, spring } from '@/components/detent/lib/motion'\nimport { RollingText } from '@/components/detent/ui/RollingText'\nimport { Bloom, DrawnCheck, Sweep } from '@/components/detent/ui/Outcome'\n\nconst CELL = 52\nconst H = 60\nconst GAP = 8\nconst SPLIT = 18\n\ntype Status = 'idle' | 'checking' | 'error' | 'done'\nexport type CodeHandle = { type(code: string): void }\n\nexport function CodeInput({\n  length = 6,\n  onVerify,\n  onVerified,\n  resendAfter = 30,\n  onResend,\n  ref,\n}: {\n  length?: number\n  onVerify: (code: string) => Promise<boolean> | boolean\n  onVerified?: () => void\n  resendAfter?: number\n  onResend?: () => void\n  ref?: Ref<CodeHandle>\n}) {\n  const [value, setValue] = useState('')\n  const [status, setStatus] = useState<Status>('idle')\n  const [focused, setFocused] = useState(false)\n  const [pasteFrom, setPasteFrom] = useState(-1)\n  const [clearing, setClearing] = useState(false)\n  const input = useRef<HTMLInputElement>(null)\n  const row = useAnimationControls()\n  const [driven, setDriven] = useState(false)\n  const drivenRef = useRef(false)\n  const reduce = useReducedMotion()\n  const alive = useRef(true)\n  useEffect(() => {\n    alive.current = true\n    return () => {\n      alive.current = false\n    }\n  }, [])\n\n  const half = length % 2 === 0 ? length / 2 : -1\n  const box = useRef<HTMLDivElement>(null)\n  const { w: room } = useSize(box)\n  const gaps = (length - 1) * GAP + (half > 0 ? SPLIT - GAP : 0)\n  const cell = room ? Math.max(32, Math.min(CELL, (room - gaps) / length)) : CELL\n  const x = (i: number) => i * (cell + GAP) + (half > 0 && i >= half ? SPLIT - GAP : 0)\n  const width = x(length - 1) + cell\n  const fused = width / length\n\n  const verify = async (code: string) => {\n    setStatus('checking')\n    const ok = await onVerify(code)\n    if (!alive.current) return\n    if (ok) {\n      setStatus('done')\n      onVerified?.()\n      return\n    }\n    setStatus('error')\n    if (!reduce) row.start({ x: [0, -7, 6, -4, 3, 0], transition: { duration: 0.36, ease: ease.out } })\n    window.setTimeout(() => {\n      if (!alive.current) return\n      setClearing(true)\n      setValue('')\n      if (!drivenRef.current) input.current?.focus()\n      window.setTimeout(() => setClearing(false), 60 * length + 300)\n    }, 650)\n  }\n\n  const change = (raw: string) => {\n    if (status === 'checking' || status === 'done') return\n    const next = raw.replace(/\\D/g, '').slice(0, length)\n    if (status === 'error' && next.length > value.length) setStatus('idle')\n    setPasteFrom(next.length - value.length > 1 ? value.length : -1)\n    setValue(next)\n    if (next.length === length) verify(next)\n  }\n\n  const latest = useRef(change)\n  useLayoutEffect(() => {\n    latest.current = change\n  })\n  useImperativeHandle(ref, () => ({\n    type: (code) => {\n      drivenRef.current = true\n      setDriven(true)\n      latest.current(code)\n    },\n  }))\n\n  const active = Math.min(value.length, length - 1)\n  const showRing = (focused || driven) && (status === 'idle' || status === 'error') && value.length < length\n  const done = status === 'done'\n\n  return (\n    <div ref={box} style={{ width: length * CELL + gaps, maxWidth: '100%' }}>\n      <motion.div animate={row} className=\"relative\" style={{ height: H }}>\n        <motion.div\n          className=\"absolute inset-0 overflow-hidden rounded-row\"\n          initial={false}\n          animate={{ opacity: done ? 1 : 0 }}\n          transition={{ duration: 0.25, delay: done ? 0.12 : 0, ease: ease.out }}\n          style={{ background: 'color-mix(in oklch, var(--ok) 11%, var(--surface))', boxShadow: '0 0 0 1px color-mix(in oklch, var(--ok) 22%, transparent)' }}\n        >\n          <Sweep k={done ? 'verified' : null} delay={0.42} />\n        </motion.div>\n        <Bloom k={done ? 'verified' : null} radius=\"var(--radius-row)\" delay={0.36} />\n\n        {Array.from({ length }, (_, i) => {\n          const ch = value[i]\n          const first = i === 0\n          const last = i === length - 1\n          const r = (on: boolean) => (on ? 14 : done ? 0 : 14)\n          return (\n            <motion.div\n              key={i}\n              className=\"absolute top-0 flex items-center justify-center overflow-hidden bg-surface\"\n              initial={false}\n              animate={{\n                left: done ? i * fused : x(i),\n                width: done ? fused : cell,\n                borderTopLeftRadius: r(first),\n                borderBottomLeftRadius: r(first),\n                borderTopRightRadius: r(last),\n                borderBottomRightRadius: r(last),\n                opacity: done ? 0 : 1,\n                boxShadow:\n                  status === 'error'\n                    ? '0 0 0 1.5px color-mix(in oklch, var(--danger) 60%, transparent), 0 1px 2px rgb(0 0 0 / 0.05)'\n                    : done\n                      ? '0 0 0 0px transparent, 0 0 0 0 transparent'\n                      : 'var(--elev-raised)',\n              }}\n              transition={{ ...spring.smooth, opacity: { duration: 0.2, delay: done ? 0.22 : 0, ease: ease.out }, boxShadow: { duration: 0.2, ease: ease.out } }}\n              style={{ height: H }}\n            >\n              <AnimatePresence initial={false} custom={clearing ? (length - 1 - i) * 0.05 : 0}>\n                {ch && (\n                  <motion.span\n                    key={`${i}${ch}`}\n                    className={`tnum text-large ${status === 'error' ? 'text-danger' : 'text-ink'}`}\n                    variants={{\n                      in: { opacity: 0, y: 10 },\n                      show: (s: number) => ({ opacity: 1, y: 0, transition: { duration: 0.22, ease: ease.out, delay: s } }),\n                      out: (d: number) => ({ opacity: 0, y: -10, transition: { duration: 0.18, ease: ease.out, delay: d } }),\n                    }}\n                    custom={pasteFrom >= 0 && i >= pasteFrom ? (i - pasteFrom) * 0.045 : 0}\n                    initial=\"in\"\n                    animate=\"show\"\n                    exit=\"out\"\n                  >\n                    <motion.span\n                      className=\"block\"\n                      animate={status === 'checking' && !reduce ? { opacity: [1, 0.3, 1] } : { opacity: 1 }}\n                      transition={status === 'checking' ? { duration: 0.9, repeat: Infinity, delay: i * 0.09, ease: ease.inOut } : { duration: 0.15, ease: ease.out }}\n                    >\n                      {ch}\n                    </motion.span>\n                  </motion.span>\n                )}\n              </AnimatePresence>\n            </motion.div>\n          )\n        })}\n\n        <motion.div\n          aria-hidden\n          className=\"pointer-events-none absolute top-0 flex items-center justify-center rounded-row\"\n          style={{\n            width: cell,\n            height: H,\n            boxShadow: `0 0 0 1.5px color-mix(in oklch, var(${status === 'error' ? '--danger' : '--dt-accent'}) 65%, transparent), 0 0 0 5px color-mix(in oklch, var(${status === 'error' ? '--danger' : '--dt-accent'}) 14%, transparent)`,\n          }}\n          initial={false}\n          animate={{ x: x(active), opacity: showRing ? 1 : 0 }}\n          transition={{ x: spring.snappy, opacity: { duration: 0.15, ease: ease.out } }}\n        >\n          <span className=\"h-6 w-[2px] rounded-full bg-ink motion-safe:animate-[caret_1.05s_infinite]\" />\n        </motion.div>\n\n        <AnimatePresence>\n          {done && (\n            <motion.div\n              className=\"absolute inset-0 flex items-center justify-center gap-2 text-callout font-semibold text-[color-mix(in_oklch,var(--ok),var(--ink)_30%)]\"\n              initial={{ opacity: 0 }}\n              animate={{ opacity: 1, transition: { delay: 0.3, duration: 0.26, ease: ease.out } }}\n            >\n              <motion.span\n                className=\"flex size-[22px] items-center justify-center rounded-full bg-ok text-white\"\n                initial={{ scale: 0.5 }}\n                animate={{ scale: 1, transition: { ...spring.pop, delay: 0.32 } }}\n              >\n                <DrawnCheck size={13} delay={0.5} />\n              </motion.span>\n              Verified\n            </motion.div>\n          )}\n        </AnimatePresence>\n\n        <input\n          ref={input}\n          value={value}\n          onChange={(e) => change(e.target.value)}\n          onFocus={() => setFocused(true)}\n          onBlur={() => setFocused(false)}\n          onSelect={(e) => {\n            const el = e.currentTarget\n            if (el.selectionStart !== el.value.length) el.setSelectionRange(el.value.length, el.value.length)\n          }}\n          disabled={status === 'checking' || done}\n          autoComplete=\"one-time-code\"\n          inputMode=\"numeric\"\n          pattern=\"[0-9]*\"\n          maxLength={length}\n          aria-label={`${length}-digit code`}\n          aria-invalid={status === 'error'}\n          className=\"absolute inset-0 z-10 w-full cursor-text bg-transparent text-transparent caret-transparent opacity-0 outline-none disabled:cursor-default\"\n          style={{ fontSize: 16 }}\n        />\n      </motion.div>\n\n      <Footer status={status} resendAfter={resendAfter} onResend={onResend} />\n    </div>\n  )\n}\n\nfunction Footer({ status, resendAfter, onResend }: {\n  status: Status\n  resendAfter: number\n  onResend?: () => void\n}) {\n  const [left, setLeft] = useState(resendAfter)\n  const [sent, setSent] = useState(false)\n\n  useEffect(() => {\n    if (left <= 0) return\n    const t = window.setTimeout(() => setLeft((n) => n - 1), 1000)\n    return () => clearTimeout(t)\n  }, [left])\n\n  const resend = () => {\n    onResend?.()\n    setSent(true)\n    window.setTimeout(() => {\n      setSent(false)\n      setLeft(resendAfter)\n    }, 1800)\n  }\n\n  const key = status === 'error' ? 'error' : status === 'checking' ? 'checking' : status === 'done' ? 'done' : sent ? 'sent' : left > 0 ? 'wait' : 'resend'\n\n  return (\n    <div className=\"relative mt-4 h-6 text-footnote\" aria-live=\"polite\">\n      <AnimatePresence initial={false}>\n        <motion.div\n          key={key}\n          className=\"absolute inset-0 flex items-center gap-1.5 whitespace-nowrap\"\n          initial={{ opacity: 0, y: 5 }}\n          animate={{ opacity: 1, y: 0 }}\n          exit={{ opacity: 0, y: -5 }}\n          transition={{ duration: 0.2, ease: ease.out }}\n        >\n          {key === 'error' && <span className=\"text-danger\">That code didn’t work. Try again.</span>}\n          {key === 'checking' && <span className=\"sheen\">Checking your code</span>}\n          {key === 'done' && <span className=\"text-ink-2\">You’re in.</span>}\n          {key === 'sent' && (\n            <span className=\"flex items-center gap-1.5 text-ink-2\">\n              <Check size={14} strokeWidth={2.6} className=\"text-ok\" />\n              New code sent\n            </span>\n          )}\n          {key === 'wait' && (\n            <span className=\"flex items-center gap-1 text-ink-3\">\n              Didn’t get it? Resend in <RollingText text={`0:${String(left).padStart(2, '0')}`} />\n            </span>\n          )}\n          {key === 'resend' && (\n            <span className=\"text-ink-3\">\n              Didn’t get it?{' '}\n              <button\n                type=\"button\"\n                onClick={resend}\n                className=\"ring-focus rounded-[4px] font-medium text-ink underline decoration-line-strong underline-offset-[3px] transition-colors ease-detent hover:decoration-ink\"\n              >\n                Send a new code\n              </button>\n            </span>\n          )}\n        </motion.div>\n      </AnimatePresence>\n    </div>\n  )\n}\n"},{"path":"components/detent/ui/Outcome.tsx","target":"components/detent/ui/Outcome.tsx","type":"registry:block","content":"'use client'\n\nimport { AnimatePresence, motion } from 'motion/react'\nimport { ease } from '@/components/detent/lib/motion'\n\nexport function Bloom({ k, color = 'var(--ok)', radius, spread = 12, delay = 0 }: { k: string | number | null; color?: string; radius: number | string; spread?: number; delay?: number }) {\n  if (k === null) return null\n  return <span key={k} aria-hidden className=\"bloom pointer-events-none absolute inset-0\" style={{ borderRadius: radius, animationDelay: `${delay}s`, ['--bloom' as string]: color, ['--bloom-spread' as string]: `${spread}px` }} />\n}\n\nexport function DrawnCheck({ size = 13, delay = 0.12, strokeWidth = 3 }: { size?: number; delay?: number; strokeWidth?: number }) {\n  return (\n    <svg aria-hidden width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth={strokeWidth} strokeLinecap=\"round\" strokeLinejoin=\"round\">\n      <motion.path d=\"M5 12.5l4.5 4.5L19 7.5\" initial={{ pathLength: 0 }} animate={{ pathLength: 1 }} transition={{ duration: 0.32, ease: ease.out, delay }} />\n    </svg>\n  )\n}\n\nexport function Sweep({ k, color = 'var(--ok)', delay = 0, axis = 'x' }: { k: string | number | null; color?: string; delay?: number; axis?: 'x' | 'y' }) {\n  const across = axis === 'x'\n  const band = (deg: number) => `linear-gradient(${deg}deg, transparent 15%, color-mix(in oklch, ${color} 26%, transparent) 42%, color-mix(in oklch, ${color} 40%, rgb(255 255 255 / 0.5)) 50%, color-mix(in oklch, ${color} 26%, transparent) 58%, transparent 85%)`\n  return (\n    <span aria-hidden className=\"pointer-events-none absolute inset-0 overflow-hidden motion-reduce:hidden\" style={{ borderRadius: 'inherit' }}>\n      <AnimatePresence>\n        {k !== null && (\n          <motion.span\n            key={k}\n            className={across ? 'absolute inset-y-0 left-0 w-1/2' : 'absolute inset-x-0 top-0 h-1/2'}\n            style={{ background: band(across ? 100 : 180) }}\n            initial={across ? { x: '-110%' } : { y: '-110%' }}\n            animate={across ? { x: '230%' } : { y: '230%' }}\n            exit={{ opacity: 0 }}\n            transition={{ duration: across ? 0.85 : 0.9, ease: ease.inOut, delay }}\n          />\n        )}\n      </AnimatePresence>\n    </span>\n  )\n}\n"},{"path":"components/detent/ui/Spinner.tsx","target":"components/detent/ui/Spinner.tsx","type":"registry:block","content":"'use client'\n\nexport function Spinner({ size = 16, className = '' }: { size?: number; className?: string }) {\n  return (\n    <svg width={size} height={size} viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden className={`motion-safe:animate-spin ${className}`} style={{ animationDuration: '0.7s' }}>\n      <circle cx=\"8\" cy=\"8\" r=\"6.25\" stroke=\"currentColor\" strokeOpacity=\"0.22\" strokeWidth=\"1.75\" />\n      <path d=\"M14.25 8A6.25 6.25 0 0 0 8 1.75\" stroke=\"currentColor\" strokeWidth=\"1.75\" strokeLinecap=\"round\" />\n    </svg>\n  )\n}\n"},{"path":"components/detent/blocks/kit/director.ts","target":"components/detent/blocks/kit/director.ts","type":"registry:block","content":"'use client'\n\nimport { createContext, useContext, useEffect, useLayoutEffect, useRef, useState } from 'react'\nimport type { PointerEvent } from 'react'\nimport { pressed } from '@/components/detent/lib/hand'\n\nexport const STOP = Symbol('stop')\nexport type Wait = (ms: number) => Promise<void>\n\nexport const InPlay = createContext(true)\n\nexport function useDirector(script: (wait: Wait, pass: number) => Promise<void>, autoplay = true, onTakeOver?: () => void) {\n  const play = useContext(InPlay)\n  const touched = useRef(!autoplay)\n  const latest = useRef(script)\n  useLayoutEffect(() => {\n    latest.current = script\n  })\n  const [begun, setBegun] = useState(play)\n  if (play && !begun) setBegun(true)\n  const gate = useRef(play)\n  const held = useRef<(() => void)[]>([])\n  useLayoutEffect(() => {\n    gate.current = play\n    if (!play) return\n    const resume = held.current\n    held.current = []\n    resume.forEach((go) => go())\n  }, [play])\n  useEffect(() => {\n    if (!autoplay || !begun) return\n    let on = true\n    const wait: Wait = (ms) =>\n      new Promise((r, x) => {\n        const go = () => (!on || touched.current ? x(STOP) : gate.current ? r() : held.current.push(go))\n        setTimeout(go, ms)\n      })\n    ;(async () => {\n      for (let pass = 0; ; pass++) await latest.current(wait, pass)\n    })().catch(() => {})\n    return () => {\n      on = false\n    }\n  }, [autoplay, begun])\n  const takeOver = () => {\n    if (!touched.current) onTakeOver?.()\n    touched.current = true\n  }\n  // Build the press handlers per event so takeOver is only handed over outside render.\n  const onPointerDownCapture = (e?: PointerEvent) => pressed(takeOver).onPointerDownCapture(e)\n  const onPointerUpCapture = (e?: PointerEvent) => pressed(takeOver).onPointerUpCapture(e)\n  return { onPointerDownCapture, onPointerUpCapture, onKeyDownCapture: takeOver, touched }\n}\n\nexport const sleeper = (ok: () => boolean) => (ms: number) => new Promise<void>((r, x) => setTimeout(() => (ok() ? r() : x(STOP)), ms))\n"},{"path":"components/detent/blocks/kit/AppIcon.tsx","target":"components/detent/blocks/kit/AppIcon.tsx","type":"registry:block","content":"'use client'\n\nimport type { CSSProperties, ReactNode } from 'react'\nimport { siGithub, siGrafana, siIntercom, siLinear, siNotion, siPagerduty, siTypeform, siGooglemeet } from 'simple-icons'\nimport { Orbit } from '@/components/detent/blocks/kit/icons'\nimport { Orb } from '@/components/detent/ui/Orb'\n\nexport type App = 'grafana' | 'linear' | 'github' | 'pagerduty' | 'notion' | 'meet' | 'typeform' | 'intercom' | 'agents'\n\ntype Mark = { path: string } | { glyph: (p: { size?: number }) => ReactNode }\nconst APPS: Record<App, { fill: string; ink?: string; mark: Mark; scale?: number }> = {\n  grafana: { fill: 'linear-gradient(160deg, #ff8a2b, #f46800 70%)', mark: siGrafana },\n  linear: { fill: 'linear-gradient(160deg, #7c86ec, #5e6ad2 70%)', mark: siLinear, scale: 0.54 },\n  github: { fill: 'linear-gradient(160deg, #3b3b40, #181717 75%)', mark: siGithub },\n  pagerduty: { fill: 'linear-gradient(160deg, #1fd05a, #06ac38 75%)', mark: siPagerduty, scale: 0.5 },\n  notion: { fill: 'linear-gradient(160deg, #ffffff, #f0f0f0)', ink: '#111111', mark: siNotion },\n  meet: { fill: 'linear-gradient(160deg, #1fb59f, #00897b 75%)', mark: siGooglemeet, scale: 0.56 },\n  typeform: { fill: 'linear-gradient(160deg, #3c3c3e, #262627 75%)', mark: siTypeform, scale: 0.5 },\n  intercom: { fill: 'linear-gradient(160deg, #3a8dff, #1b5fe0 75%)', mark: siIntercom, scale: 0.54 },\n  agents: { fill: 'linear-gradient(160deg, #b18cff, #6a3df0 75%)', mark: { glyph: Orbit } },\n}\n\nexport function AppIcon({ app, size = 20, className = '', style }: { app: App; size?: number; className?: string; style?: CSSProperties }) {\n  const a = APPS[app]\n  const g = Math.round(size * (a.scale ?? 0.58))\n  return (\n    <span\n      aria-hidden\n      className={`relative flex shrink-0 items-center justify-center overflow-hidden ${className}`}\n      style={{\n        width: size,\n        height: size,\n        borderRadius: size * 0.27,\n        background: a.fill,\n        color: a.ink ?? '#fff',\n        boxShadow: 'inset 0 0.5px 0 rgb(255 255 255 / 0.45), 0 0 0 0.5px rgb(0 0 0 / 0.14), 0 1px 1.5px rgb(0 0 0 / 0.12)',\n        ...style,\n      }}\n    >\n      <span className=\"absolute inset-x-0 top-0 h-1/2 bg-[linear-gradient(to_bottom,rgb(255_255_255/0.2),transparent)]\" />\n      <span className=\"relative flex\">\n        {'path' in a.mark ? (\n          <svg width={g} height={g} viewBox=\"0 0 24 24\" fill=\"currentColor\">\n            <path d={a.mark.path} />\n          </svg>\n        ) : (\n          <a.mark.glyph size={g} />\n        )}\n      </span>\n    </span>\n  )\n}\n\nexport function BrandMark({ brand, size = 16 }: { brand: 'github' | 'google'; size?: number }) {\n  if (brand === 'github')\n    return (\n      <svg aria-hidden width={size} height={size} viewBox=\"0 0 24 24\" fill=\"currentColor\">\n        <path d={siGithub.path} />\n      </svg>\n    )\n  return (\n    <svg aria-hidden width={size} height={size} viewBox=\"0 0 24 24\">\n      <path fill=\"#4285F4\" d=\"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z\" />\n      <path fill=\"#34A853\" d=\"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z\" />\n      <path fill=\"#FBBC05\" d=\"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z\" />\n      <path fill=\"#EA4335\" d=\"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z\" />\n    </svg>\n  )\n}\n\nexport function Person({ name, hue, size = 28, quiet = false, className = '' }: { name: string; hue: number; size?: number; quiet?: boolean; className?: string }) {\n  return <Orb seed={name} hue={hue} size={size} quiet={quiet} className={className} />\n}\n"},{"path":"components/detent/ui/Orb.tsx","target":"components/detent/ui/Orb.tsx","type":"registry:block","content":"import type { CSSProperties } from 'react'\n\nfunction hash(s: string) {\n  let h = 2166136261\n  for (let i = 0; i < s.length; i++) h = Math.imul(h ^ s.charCodeAt(i), 16777619)\n  return h >>> 0\n}\n\nconst at = (r: number, deg: number) => {\n  const a = (deg * Math.PI) / 180\n  return `${(50 + r * Math.cos(a)).toFixed(1)}% ${(50 + r * Math.sin(a)).toFixed(1)}%`\n}\n\nexport function Orb({ seed, hue, size = 32, quiet = false, className = '', style }: { seed: string; hue?: number; size?: number; quiet?: boolean; className?: string; style?: CSSProperties }) {\n  const n = hash(seed)\n  const h = hue ?? n % 360\n  const turn = n % 360\n  const comp = (h + 160 + (n % 40)) % 360\n  const warm = (h + 30 + ((n >> 6) % 30)) % 360\n  const glint = (h + 190 + ((n >> 11) % 40)) % 360\n  const c = (v: number) => (quiet ? v * 0.32 : v).toFixed(3)\n  return (\n    <span aria-hidden className={`relative block shrink-0 overflow-hidden rounded-full ${className}`} style={{ width: size, height: size, ...style }}>\n      <span\n        className=\"absolute -inset-[18%] block\"\n        style={{\n          background: [\n            `radial-gradient(circle at 46% 42%, oklch(0.84 ${c(0.15)} ${h}) 0%, transparent 60%)`,\n            `radial-gradient(circle at ${at(50, turn + 165)}, oklch(0.84 ${c(0.15)} ${comp}) 0%, transparent 40%)`,\n            `radial-gradient(circle at ${at(50, turn + 45)}, oklch(${quiet ? 0.66 : 0.7} ${c(0.19)} ${warm}) 0%, transparent 42%)`,\n            `radial-gradient(circle at ${at(52, turn - 65)}, oklch(0.88 ${c(0.1)} ${glint}) 0%, transparent 28%)`,\n            `oklch(${quiet ? 0.72 : 0.78} ${c(0.15)} ${h})`,\n          ].join(', '),\n          filter: `blur(${Math.max(1.5, size * 0.1)}px)`,\n        }}\n      />\n      <span\n        className=\"absolute inset-0 block rounded-full\"\n        style={{\n          background: 'radial-gradient(circle at 34% 26%, rgb(255 255 255 / 0.42) 0%, rgb(255 255 255 / 0.12) 26%, transparent 46%)',\n          boxShadow: `inset 0 ${-size * 0.1}px ${size * 0.22}px oklch(0.4 0.12 ${h} / 0.2), inset 0 0 0 0.5px rgb(0 0 0 / 0.07)`,\n        }}\n      />\n    </span>\n  )\n}\n"},{"path":"components/detent/icons/index.tsx","target":"components/detent/icons/index.tsx","type":"registry:block","content":"import type { SVGProps } from 'react'\n\ntype P = SVGProps<SVGSVGElement> & { size?: number }\n\nfunction Svg({ size = 20, children, ...rest }: P) {\n  return (\n    <svg width={size} height={size} viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth={2} strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden {...rest}>\n      {children}\n    </svg>\n  )\n}\n\nexport const Close = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M7 7l10 10M17 7 7 17\" />\n  </Svg>\n)\n\nexport const Check = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M5 12.5l4.5 4.5L19 7.5\" />\n  </Svg>\n)\n\nexport const Plus = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M12 5v14M5 12h14\" />\n  </Svg>\n)\n\nexport const Bin = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"4\" y=\"4.5\" width=\"16\" height=\"3.6\" rx=\"1.8\" fill=\"currentColor\" stroke=\"none\" />\n    <path d=\"M9.5 4.5V3.8a1.3 1.3 0 0 1 1.3-1.3h2.4a1.3 1.3 0 0 1 1.3 1.3v.7\" />\n    <path d=\"M6 10.5l.8 8.4A2.2 2.2 0 0 0 9 21h6a2.2 2.2 0 0 0 2.2-2.1l.8-8.4\" />\n    <path d=\"M10.3 13v4.5M13.7 13v4.5\" />\n  </Svg>\n)\n\nexport const Undo = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M9 9h6.5a4.5 4.5 0 0 1 0 9H10\" />\n    <path d=\"M9.6 4.6 4.6 9l5 4.4z\" fill=\"currentColor\" />\n  </Svg>\n)\n\nexport const Pause = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"6\" y=\"5\" width=\"4\" height=\"14\" rx=\"1.6\" fill=\"currentColor\" stroke=\"none\" />\n    <rect x=\"14\" y=\"5\" width=\"4\" height=\"14\" rx=\"1.6\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Upload = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M4 14.5v2.3A3.2 3.2 0 0 0 7.2 20h9.6a3.2 3.2 0 0 0 3.2-3.2v-2.3\" />\n    <path d=\"M12 15V7\" />\n    <path d=\"M12 3.2 7.6 8.2h8.8z\" fill=\"currentColor\" />\n  </Svg>\n)\n\nexport const FilePage = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M13.5 3H8a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V8.5\" />\n    <path d=\"M13.5 3v3.5a2 2 0 0 0 2 2H19z\" fill=\"currentColor\" />\n  </Svg>\n)\n\nexport const Picture = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"4\" />\n    <path d=\"M3.8 16.5 9 11.6a1.5 1.5 0 0 1 2.1 0l3.2 3 1.6-1.5a1.5 1.5 0 0 1 2.1 0l2.2 2.1V16a3.5 3.5 0 0 1-3.5 3.5H8A4 4 0 0 1 3.8 16.5z\" fill=\"currentColor\" stroke=\"none\" />\n    <circle cx=\"15.5\" cy=\"8.8\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Film = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"4\" />\n    <path d=\"M10.2 9.2v5.6a.7.7 0 0 0 1 .6l4.4-2.8a.7.7 0 0 0 0-1.2l-4.4-2.8a.7.7 0 0 0-1 .6z\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Bubble = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M12 4c4.7 0 8.5 3.1 8.5 7s-3.8 7-8.5 7c-1 0-2-.1-2.9-.4L5 19.5l1.1-3.6C4.6 14.6 3.5 12.9 3.5 11c0-3.9 3.8-7 8.5-7z\" />\n    <circle cx=\"8.6\" cy=\"11\" r=\"1.15\" fill=\"currentColor\" stroke=\"none\" />\n    <circle cx=\"12\" cy=\"11\" r=\"1.15\" fill=\"currentColor\" stroke=\"none\" />\n    <circle cx=\"15.4\" cy=\"11\" r=\"1.15\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Card = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"3\" y=\"5.5\" width=\"18\" height=\"13\" rx=\"3.5\" />\n    <rect x=\"3\" y=\"8.6\" width=\"18\" height=\"3\" fill=\"currentColor\" stroke=\"none\" />\n    <path d=\"M7 15h3\" />\n  </Svg>\n)\n\nexport const Bell = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M6 15.5V11a6 6 0 1 1 12 0v4.5l1.5 2H4.5z\" />\n    <path d=\"M9.6 19.5a2.6 2.6 0 0 0 4.8 0z\" fill=\"currentColor\" />\n  </Svg>\n)\n\nexport const Ship = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M5 20h14\" />\n    <path d=\"M12 16V9\" />\n    <path d=\"M12 3.5 7 9.2h10z\" fill=\"currentColor\" />\n  </Svg>\n)\n\nexport const Mention = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"12\" cy=\"12\" r=\"3.4\" fill=\"currentColor\" stroke=\"none\" />\n    <path d=\"M15.4 12v1.4a2.6 2.6 0 0 0 5.1.7A8.5 8.5 0 1 0 16 19.5\" />\n  </Svg>\n)\n\nexport const Calendar = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"3.5\" y=\"5\" width=\"17\" height=\"15.5\" rx=\"4\" />\n    <path d=\"M3.5 9A4 4 0 0 1 7.5 5h9a4 4 0 0 1 4 4v1H3.5z\" fill=\"currentColor\" stroke=\"none\" />\n    <path d=\"M8 3v3M16 3v3\" />\n  </Svg>\n)\n\nexport const ChevronDown = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M6.5 9.5 12 15l5.5-5.5\" />\n  </Svg>\n)\n\nexport const ArrowUpRight = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M8 16 16 8\" />\n    <path d=\"M9.5 6.8h7.7v7.7z\" fill=\"currentColor\" />\n  </Svg>\n)\n\nexport const Sun = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"12\" cy=\"12\" r=\"4.2\" fill=\"currentColor\" stroke=\"none\" />\n    {[0, 45, 90, 135, 180, 225, 270, 315].map((a) => {\n      const r = (a * Math.PI) / 180\n      return <circle key={a} cx={12 + Math.cos(r) * 8.4} cy={12 + Math.sin(r) * 8.4} r=\"1.1\" fill=\"currentColor\" stroke=\"none\" />\n    })}\n  </Svg>\n)\n\nexport const Moon = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M19.5 14.6A8 8 0 0 1 9.4 4.5a8 8 0 1 0 10.1 10.1z\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Expand = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M14 4h6v6M10 20H4v-6\" />\n    <path d=\"M20 4l-6 6M4 20l6-6\" />\n  </Svg>\n)\n\nexport const Inspect = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M4 9V6.5A2.5 2.5 0 0 1 6.5 4H9M15 4h2.5A2.5 2.5 0 0 1 20 6.5V9M4 15v2.5A2.5 2.5 0 0 0 6.5 20H9\" />\n    <path d=\"M13.2 13.2l7.3 2.5-3.1 1.3-1.3 3.1z\" fill=\"currentColor\" strokeWidth={1.5} />\n  </Svg>\n)\n\nexport const Folder = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M3.5 9.5V17a3 3 0 0 0 3 3h11a3 3 0 0 0 3-3v-6.5a3 3 0 0 0-3-3h-6\" />\n    <path d=\"M3.5 7A2.5 2.5 0 0 1 6 4.5h3.2a2 2 0 0 1 1.6.8l1.5 2.2H3.5z\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Copy = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"4\" y=\"4\" width=\"11\" height=\"11\" rx=\"3\" fill=\"currentColor\" stroke=\"none\" />\n    <rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"3\" fill=\"var(--icon-cutout, white)\" />\n  </Svg>\n)\n\nexport const Cookie = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M20.6 12.6a8.6 8.6 0 1 1-9.2-9.2 3 3 0 0 0 3.6 3.6 3 3 0 0 0 5.6 5.6z\" />\n    <circle cx=\"9.2\" cy=\"10.4\" r=\"1.7\" fill=\"currentColor\" stroke=\"none\" />\n    <circle cx=\"14.5\" cy=\"15.3\" r=\"1.1\" fill=\"currentColor\" stroke=\"none\" />\n    <circle cx=\"8.8\" cy=\"15.6\" r=\"0.9\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Clock = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"12\" cy=\"12\" r=\"8.5\" />\n    <path d=\"M12 7.2v5.2l3.4 2.1\" strokeWidth={2.4} />\n  </Svg>\n)\n\nexport const ArrowLeft = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M19 12H7\" />\n    <path d=\"M10.5 6.5 4.5 12l6 5.5z\" fill=\"currentColor\" />\n  </Svg>\n)\n\nexport const Mail = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"3.5\" y=\"5.5\" width=\"17\" height=\"13\" rx=\"3.5\" />\n    <path d=\"M4.4 7.6A3.5 3.5 0 0 1 7 5.5h10a3.5 3.5 0 0 1 2.6 2.1L12 13z\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const ArrowUp = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M12 20v-9\" />\n    <path d=\"M12 3.8 6.6 10.2h10.8z\" fill=\"currentColor\" />\n  </Svg>\n)\n\nexport const Stop = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"6.5\" y=\"6.5\" width=\"11\" height=\"11\" rx=\"3\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Bolt = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M13.2 3.2 5.8 13h5.6l-.6 7.8 7.4-9.8h-5.6z\" fill=\"currentColor\" strokeWidth={1.6} />\n  </Svg>\n)\n\nexport const Orbit = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M18.06 8.5A7 7 0 1 1 15.5 5.94\" />\n    <circle cx=\"16.95\" cy=\"7.05\" r=\"2.1\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Search = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"10.5\" cy=\"10.5\" r=\"6.2\" />\n    <path d=\"M14.9 17.1a1.55 1.55 0 0 1 2.2-2.2l3 3a1.55 1.55 0 0 1-2.2 2.2z\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Minus = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M5 12h14\" />\n  </Svg>\n)\n\nexport const Chevrons = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M8 9.5 12 5.5l4 4M8 14.5l4 4 4-4\" />\n  </Svg>\n)\n\nexport const Pencil = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M14.5 5.5 18.5 9.5 9 19H5v-4z\" />\n    <path d=\"M16.2 3.8a2 2 0 0 1 2.8 0l1.2 1.2a2 2 0 0 1 0 2.8l-1.4 1.4-4-4z\" fill=\"currentColor\" />\n  </Svg>\n)\n\nexport const ArrowRight = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M5 12h12\" />\n    <path d=\"M13.5 6.5 19.5 12l-6 5.5z\" fill=\"currentColor\" />\n  </Svg>\n)\n\nexport const Cup = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M5 8h11v6a5 5 0 0 1-5 5h-1a5 5 0 0 1-5-5z\" />\n    <path d=\"M16 10h1.5a2.5 2.5 0 0 1 0 5H16\" />\n    <path d=\"M5 8h11v3H5z\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Bag = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M5.5 8h13l-1 11.2a2 2 0 0 1-2 1.8h-7a2 2 0 0 1-2-1.8z\" />\n    <path d=\"M9 11V7a3 3 0 0 1 6 0v4\" />\n    <path d=\"M5.6 8h12.8l-.25 3H5.85z\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Note = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"3\" y=\"6\" width=\"18\" height=\"12\" rx=\"3\" />\n    <circle cx=\"12\" cy=\"12\" r=\"2.6\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Plane = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M20.5 3.5 3.5 10.6l6.3 2.9 2.9 6.3z\" />\n    <path d=\"M20.5 3.5 9.8 13.5l2.9 6.3z\" fill=\"currentColor\" />\n  </Svg>\n)\n\nexport const Building = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M5 21V6a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v15M16 10h2a2 2 0 0 1 2 2v9M3 21h18\" />\n    <rect x=\"8.5\" y=\"15.5\" width=\"4\" height=\"5.5\" rx=\"1\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const FolderOpen = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M3.5 16.5V7A2.5 2.5 0 0 1 6 4.5h3.2a2 2 0 0 1 1.6.8l1.5 2.2H17a2.5 2.5 0 0 1 2.5 2.5v1\" />\n    <path d=\"M3.5 7A2.5 2.5 0 0 1 6 4.5h3.2a2 2 0 0 1 1.6.8l1.5 2.2H3.5z\" fill=\"currentColor\" stroke=\"none\" />\n    <path d=\"M5.6 11.5h15a1 1 0 0 1 .96 1.27l-1.55 5.6A2.2 2.2 0 0 1 17.9 20H6.1a2.6 2.6 0 0 1-2.6-2.6v-3.8a2.1 2.1 0 0 1 2.1-2.1z\" />\n  </Svg>\n)\n\nexport const Code = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M8 7.5 3.5 12 8 16.5M16 7.5l4.5 4.5-4.5 4.5\" />\n    <path d=\"M13.2 4.6a1 1 0 0 1 1.9.6l-4.3 14.2a1 1 0 0 1-1.9-.6z\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Wrench = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M15.4 3.6a4.6 4.6 0 0 0-4.3 6.1l-6.6 6.6a2.2 2.2 0 1 0 3.1 3.1l6.6-6.6a4.6 4.6 0 0 0 6.1-4.3l-2.9 2.9-2.6-.6-.6-2.6z\" />\n    <circle cx=\"6\" cy=\"17.9\" r=\"1.1\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Prompt = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M5 7.5 9.5 12 5 16.5\" />\n    <rect x=\"11.5\" y=\"15\" width=\"8\" height=\"2.4\" rx=\"1.2\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Node = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"12\" cy=\"12\" r=\"8\" />\n    <circle cx=\"12\" cy=\"12\" r=\"3.2\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Refresh = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M19.2 13.2A7.4 7.4 0 1 1 16.8 6\" />\n    <path d=\"M19.6 3.4v6.2h-6.2z\" fill=\"currentColor\" />\n  </Svg>\n)\n\nexport const Thumb = ({ down, ...p }: P & { down?: boolean }) => (\n  <Svg {...p} style={{ transform: down ? 'scale(1, -1)' : undefined, ...p.style }}>\n    <path d=\"M8 10.5 11.5 4a1.7 1.7 0 0 1 3.1 1.2l-.7 4h5a2 2 0 0 1 2 2.4l-1.2 6.3A2 2 0 0 1 17.7 19.5H8\" />\n    <rect x=\"3\" y=\"10.5\" width=\"5\" height=\"9\" rx=\"1.6\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Chart = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M3.5 17.5 8.5 12l3.5 3.5 5-6\" />\n    <circle cx=\"19.2\" cy=\"7\" r=\"2.6\" fill=\"currentColor\" stroke=\"none\" />\n    <path d=\"M3.5 20.5h17\" />\n  </Svg>\n)\n\nexport const Table = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"3.5\" />\n    <path d=\"M3.5 8a3.5 3.5 0 0 1 3.5-3.5h10A3.5 3.5 0 0 1 20.5 8v1.5h-17z\" fill=\"currentColor\" stroke=\"none\" />\n    <path d=\"M10 9.5v10M3.5 14.5h17\" />\n  </Svg>\n)\n\nexport const Play = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M8 5.8v12.4l9.6-6.2z\" fill=\"currentColor\" />\n  </Svg>\n)\n\nexport const Grip = (p: P) => (\n  <Svg {...p} strokeWidth={3.2}>\n    <path d=\"M9 6.5h.01M15 6.5h.01M9 12h.01M15 12h.01M9 17.5h.01M15 17.5h.01\" />\n  </Svg>\n)\n\nexport const Mic = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"9\" y=\"3\" width=\"6\" height=\"11.5\" rx=\"3\" fill=\"currentColor\" stroke=\"none\" />\n    <path d=\"M5.5 11.5a6.5 6.5 0 0 0 13 0M12 18v3\" />\n  </Svg>\n)\n\nexport const Speaker = ({ muted, ...p }: P & { muted?: boolean }) => (\n  <Svg {...p}>\n    <path d=\"M4 9.5h3.2L12 5.5v13l-4.8-4H4z\" fill=\"currentColor\" />\n    {muted ? <path d=\"M16 9.5l4.5 5M20.5 9.5l-4.5 5\" /> : <path d=\"M15.5 9a4.2 4.2 0 0 1 0 6M18.2 6.5a8 8 0 0 1 0 11\" />}\n  </Svg>\n)\n\nexport const ChevronRight = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M10 6.5l5.5 5.5-5.5 5.5\" />\n  </Svg>\n)\n\nexport const Layers = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M8 4.5h9.5A2.5 2.5 0 0 1 20 7v9.5\" />\n    <rect x=\"4\" y=\"8\" width=\"12\" height=\"12\" rx=\"2.5\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Link = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M10.5 13.5a3.5 3.5 0 0 0 5 0l3-3a3.5 3.5 0 0 0-5-5l-.8.8\" />\n    <path d=\"M13.5 10.5a3.5 3.5 0 0 0-5 0l-3 3a3.5 3.5 0 0 0 5 5l.8-.8\" />\n    <circle cx=\"12\" cy=\"12\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const More = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"6\" cy=\"12\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\" />\n    <circle cx=\"12\" cy=\"12\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\" />\n    <circle cx=\"18\" cy=\"12\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Eye = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z\" />\n    <circle cx=\"12\" cy=\"12\" r=\"3\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const EyeOff = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M6.6 7.2C4 8.9 2.5 12 2.5 12S6 18.5 12 18.5c1.9 0 3.5-.6 4.9-1.5M10 5.7c.6-.1 1.3-.2 2-.2 6 0 9.5 6.5 9.5 6.5s-.8 1.5-2.3 3.1\" />\n    <path d=\"M4 4l16 16\" strokeWidth={2.4} />\n  </Svg>\n)\n\nexport const Alert = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"12\" cy=\"12\" r=\"9\" />\n    <path d=\"M12 7.5v5.5\" />\n    <circle cx=\"12\" cy=\"16.4\" r=\"1.25\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Spark = (p: P) => (\n  <Svg {...p}>\n    <circle cx=\"12\" cy=\"12\" r=\"9\" />\n    <path d=\"M12.8 6.5 8.6 12.6h3.1l-.6 4.9 4.3-6.2h-3.1z\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Cube = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M12 3.2 19.6 7.4v9.2L12 20.8l-7.6-4.2V7.4z\" />\n    <path d=\"M12 3.2 19.6 7.4 12 11.6 4.4 7.4z\" fill=\"currentColor\" stroke=\"none\" />\n    <path d=\"M12 11.6v9.2\" />\n  </Svg>\n)\n\nexport const Plug = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M6.5 9.5h11v2.5a5.5 5.5 0 0 1-11 0z\" />\n    <path d=\"M12 17.5V21\" />\n    <rect x=\"8.2\" y=\"3\" width=\"2.2\" height=\"6\" rx=\"1.1\" fill=\"currentColor\" stroke=\"none\" />\n    <rect x=\"13.6\" y=\"3\" width=\"2.2\" height=\"6\" rx=\"1.1\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Fork = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M4 12h6\" />\n    <path d=\"M10 12c3 0 4-5.5 8.5-5.5M10 12c3 0 4 5.5 8.5 5.5\" />\n    <path d=\"M16.5 4.5l2.2 2-2.2 2M16.5 15.5l2.2 2-2.2 2\" />\n    <circle cx=\"10\" cy=\"12\" r=\"2.2\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Shield = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M12 3 19 5.8v5.4c0 4.4-3 7.9-7 9.8-4-1.9-7-5.4-7-9.8V5.8z\" />\n    <path d=\"m8.6 11.8 2.4 2.4 4.6-4.8\" strokeWidth={2.4} />\n  </Svg>\n)\n\nexport const Send = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M20.5 3.5 3.5 10.3l6.6 2.9 2.9 6.6z\" />\n    <path d=\"M20.5 3.5 10.1 13.2l2.9 6.6z\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Redo = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M15 9H8.5a4.5 4.5 0 0 0 0 9H14\" />\n    <path d=\"M14.4 4.6 19.4 9l-5 4.4z\" fill=\"currentColor\" />\n  </Svg>\n)\n\nexport const Captions = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"3.5\" y=\"5.5\" width=\"17\" height=\"13\" rx=\"3.5\" />\n    <path d=\"M7.6 11.2h4.2a1.2 1.2 0 0 1 0 2.4H7.6a1.2 1.2 0 0 1 0-2.4zM7.6 14.6h8.8a1.2 1.2 0 0 1 0 2.4H7.6a1.2 1.2 0 0 1 0-2.4z\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Sliders = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M4 8h16M4 16h16\" />\n    <path d=\"M9 5.2a2.8 2.8 0 1 1 0 5.6 2.8 2.8 0 0 1 0-5.6zM15 13.2a2.8 2.8 0 1 1 0 5.6 2.8 2.8 0 0 1 0-5.6z\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Pip = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"3.5\" y=\"5.5\" width=\"17\" height=\"13\" rx=\"3.5\" />\n    <rect x=\"11.5\" y=\"11\" width=\"6.5\" height=\"5\" rx=\"1.4\" fill=\"currentColor\" stroke=\"none\" />\n  </Svg>\n)\n\nexport const Shrink = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M10 4v6H4M14 20v-6h6\" />\n    <path d=\"M4 4l6 6M20 20l-6-6\" />\n  </Svg>\n)\n\nexport const RotateLeft = (p: P) => (\n  <Svg {...p}>\n    <rect x=\"9\" y=\"9.5\" width=\"11\" height=\"10.5\" rx=\"2.4\" />\n    <path d=\"M12.5 5.5H9a5 5 0 0 0-5 5v2\" />\n    <path d=\"M12.2 2.6 15.6 5.5l-3.4 2.9z\" fill=\"currentColor\" />\n  </Svg>\n)\n\nexport const FlipH = (p: P) => (\n  <Svg {...p}>\n    <path d=\"M12 3.5v17\" strokeDasharray=\"2 2.6\" />\n    <path d=\"M9 7.5 3.5 17H9z\" />\n    <path d=\"M15 7.5 20.5 17H15z\" fill=\"currentColor\" />\n  </Svg>\n)\n"},{"path":"components/detent/lib/hooks.ts","target":"components/detent/lib/hooks.ts","type":"registry:block","content":"'use client'\n\nimport { useCallback, useEffect, useLayoutEffect, useRef, useState, useSyncExternalStore } from 'react'\nimport type { RefObject } from 'react'\n\nexport function useFrame(cb: (dt: number, t: number) => void, active = true) {\n  const ref = useRef(cb)\n  useLayoutEffect(() => {\n    ref.current = cb\n  })\n  useEffect(() => {\n    if (!active) return\n    let raf = 0\n    let last = performance.now()\n    const loop = (t: number) => {\n      const dt = Math.min(48, t - last)\n      last = t\n      ref.current(dt, t)\n      raf = requestAnimationFrame(loop)\n    }\n    raf = requestAnimationFrame(loop)\n    return () => cancelAnimationFrame(raf)\n  }, [active])\n}\n\nexport function useSize(ref: RefObject<HTMLElement | null>) {\n  const [size, setSize] = useState({ w: 0, h: 0 })\n  useLayoutEffect(() => {\n    const el = ref.current\n    if (!el) return\n    const measure = () => setSize({ w: el.clientWidth, h: el.clientHeight })\n    measure()\n    const ro = new ResizeObserver(measure)\n    ro.observe(el)\n    return () => ro.disconnect()\n  }, [ref])\n  return size\n}\n\nconst stacked = new WeakMap<Element, number>()\nexport const stackTop = (el: Element) => stacked.get(el) ?? 0\nconst stacks = new WeakMap<Element, () => void>()\n\nexport function useStack(ref: RefObject<HTMLElement | null>, gap = 0, onPlace?: () => void) {\n  const follow = useRef(onPlace)\n  useLayoutEffect(() => {\n    follow.current = onPlace\n  })\n  const place = useCallback(() => {\n    const box = ref.current\n    if (!box) return\n    const cs = getComputedStyle(box)\n    if (cs.position === 'static') box.style.position = 'relative'\n    const [top, right, bottom, left] = ['top', 'right', 'bottom', 'left'].map((k) => parseFloat(cs.getPropertyValue(`padding-${k}`)))\n    const edges = top + bottom + parseFloat(cs.borderTopWidth) + parseFloat(cs.borderBottomWidth)\n    let y = 0\n    for (const el of Array.from(box.children) as HTMLElement[]) {\n      Object.assign(el.style, { position: 'absolute', top: `${top}px`, left: `${left}px`, right: `${right}px`, translate: `0 ${y}px` })\n      const s = getComputedStyle(el)\n      const mt = parseFloat(s.marginTop) || 0\n      stacked.set(el, top + y + mt)\n      y += mt + parseFloat(s.height) + (parseFloat(s.marginBottom) || 0) + gap\n    }\n    const was = box.style.height\n    box.style.height = `${Math.max(0, y - gap) + (cs.boxSizing === 'border-box' ? edges : 0)}px`\n    if (box.style.height === was) return\n    follow.current?.()\n    for (let el = box.parentElement; el; el = el.parentElement) {\n      const outer = stacks.get(el)\n      if (outer) return outer()\n    }\n  }, [ref, gap])\n  useLayoutEffect(place)\n  useLayoutEffect(() => {\n    const box = ref.current\n    if (!box) return\n    stacks.set(box, place)\n    const ro = new ResizeObserver(place)\n    const watch = () => {\n      ro.disconnect()\n      for (const el of Array.from(box.children)) ro.observe(el)\n    }\n    const mo = new MutationObserver(() => {\n      watch()\n      place()\n    })\n    watch()\n    mo.observe(box, { childList: true })\n    return () => {\n      stacks.delete(box)\n      ro.disconnect()\n      mo.disconnect()\n    }\n  }, [ref, place])\n}\n\nexport const layoutPx = (v: string) => Math.round(parseFloat(v) * 64) / 64\n\nexport function useRow(ref: RefObject<HTMLElement | null>, onPlace?: () => void) {\n  const follow = useRef(onPlace)\n  useLayoutEffect(() => {\n    follow.current = onPlace\n  })\n  const place = useCallback(() => {\n    const box = ref.current\n    if (!box) return\n    if (getComputedStyle(box).position === 'static') box.style.position = 'relative'\n    const kids = Array.from(box.children) as HTMLElement[]\n    for (const el of kids) Object.assign(el.style, { position: 'absolute', left: '0px', whiteSpace: 'nowrap' })\n    const sizes = kids.map((el) => {\n      const cs = getComputedStyle(el)\n      return { w: layoutPx(cs.width), h: layoutPx(cs.height), before: layoutPx(cs.marginLeft), after: layoutPx(cs.marginRight) }\n    })\n    const tall = Math.max(0, ...sizes.map((s) => s.h))\n    let x = 0\n    kids.forEach((el, i) => {\n      el.style.translate = `${x}px`\n      x += sizes[i].before + sizes[i].w + sizes[i].after\n    })\n    box.style.height = `${tall}px`\n    const was = box.style.width\n    box.style.width = `${x}px`\n    if (box.style.width !== was) follow.current?.()\n  }, [ref])\n  useLayoutEffect(place)\n  useLayoutEffect(() => {\n    const box = ref.current\n    if (!box) return\n    const ro = new ResizeObserver(place)\n    const watch = () => {\n      ro.disconnect()\n      for (const el of Array.from(box.children)) ro.observe(el)\n    }\n    const mo = new MutationObserver(() => {\n      watch()\n      place()\n    })\n    watch()\n    mo.observe(box, { childList: true })\n    return () => {\n      ro.disconnect()\n      mo.disconnect()\n    }\n  }, [ref, place])\n}\n\nconst readTheme = () => (document.documentElement.dataset.theme === 'dark' ? 'dark' : 'light')\nconst watchTheme = (on: () => void) => {\n  const mo = new MutationObserver(on)\n  mo.observe(document.documentElement, { attributes: true, attributeFilter: ['data-theme'] })\n  return () => mo.disconnect()\n}\nexport function useTheme() {\n  return useSyncExternalStore<'light' | 'dark'>(watchTheme, readTheme, () => 'light')\n}\n\nexport function fitCanvas(canvas: HTMLCanvasElement, w: number, h: number) {\n  const dpr = Math.min(2, window.devicePixelRatio || 1)\n  canvas.width = Math.round(w * dpr)\n  canvas.height = Math.round(h * dpr)\n  const ctx = canvas.getContext('2d')!\n  ctx.setTransform(dpr, 0, 0, dpr, 0, 0)\n  return ctx\n}\n\nexport const mod = (n: number, m: number) => ((n % m) + m) % m\nexport const clamp = (v: number, lo: number, hi: number) => Math.min(hi, Math.max(lo, v))\nexport const smoothstep = (a: number, b: number, x: number) => {\n  const t = clamp((x - a) / (b - a), 0, 1)\n  return t * t * (3 - 2 * t)\n}\n"},{"path":"components/detent/ui/RollingText.tsx","target":"components/detent/ui/RollingText.tsx","type":"registry:block","content":"'use client'\n\nimport { useLayoutEffect, useRef, useState } from 'react'\nimport { animate, motion, useMotionValue } from 'motion/react'\n\nconst roll = { type: 'spring', stiffness: 380, damping: 34, mass: 0.8 } as const\n\nexport function RollingText({ text, className = '', proportional = false, still = false }: { text: string; className?: string; proportional?: boolean; still?: boolean }) {\n  const chars = [...text]\n  const probe = useRef<HTMLSpanElement>(null)\n  const [widths, setWidths] = useState<number[] | null>(null)\n\n  useLayoutEffect(() => {\n    if (!proportional || !probe.current) return\n    const read = () => {\n      const box = probe.current\n      if (!box) return\n      const z = box.offsetWidth ? box.getBoundingClientRect().width / box.offsetWidth : 1\n      const em = parseFloat(getComputedStyle(box).fontSize) || 16\n      setWidths([...box.children].map((c) => (c as HTMLElement).getBoundingClientRect().width / z / em))\n    }\n    read()\n    document.fonts?.ready.then(read)\n  }, [proportional])\n\n  return (\n    <span className={`relative inline-flex ${proportional ? '' : 'tnum'} ${className}`} style={{ lineHeight: '1.25em', height: '1.25em' }}>\n      <span className=\"sr-only\">{text}</span>\n      {proportional && (\n        <span aria-hidden className=\"pointer-events-none absolute left-0 top-0 size-0 overflow-hidden\">\n          <span ref={probe} className=\"invisible flex w-max whitespace-pre\">\n            {Array.from({ length: 10 }, (_, n) => (\n              <span key={n}>{n}</span>\n            ))}\n          </span>\n        </span>\n      )}\n      {chars.map((c, i) => {\n        const key = chars.length - i\n        return /\\d/.test(c) ? (\n          <Digit key={key} d={+c} width={proportional && widths ? widths[+c] : undefined} still={still} />\n        ) : (\n          <span key={`${key}${c}`} aria-hidden className=\"whitespace-pre\">\n            {c}\n          </span>\n        )\n      })}\n    </span>\n  )\n}\n\nfunction Digit({ d, width, still }: { d: number; width?: number; still: boolean }) {\n  const w = useMotionValue<string>(width === undefined ? '1ch' : `${width}em`)\n  const had = useRef(width !== undefined)\n  useLayoutEffect(() => {\n    if (width === undefined) return\n    if (!had.current) {\n      had.current = true\n      w.set(`${width}em`)\n      return\n    }\n    const ctl = animate(w, `${width}em`, roll)\n    return () => ctl.stop()\n  }, [width, w])\n\n  return (\n    <motion.span aria-hidden className=\"relative inline-block overflow-hidden\" style={{ height: '1.25em', width: w }}>\n      <motion.span className=\"absolute inset-x-0 top-0 flex flex-col items-center\" initial={false} animate={{ y: `${-d * 10}%` }} transition={still ? { duration: 0 } : roll}>\n        {Array.from({ length: 10 }, (_, n) => (\n          <span key={n} className=\"block\" style={{ height: '1.25em' }}>\n            {n}\n          </span>\n        ))}\n      </motion.span>\n    </motion.span>\n  )\n}\n"},{"path":"components/detent/lib/hand.ts","target":"components/detent/lib/hand.ts","type":"registry:block","content":"import type { PointerEvent, RefObject } from 'react'\n\nconst HOLD = 3000\nconst CONTROL = 'button,a,input,textarea,select,label,[role=\"button\"],[role=\"tab\"],[role=\"option\"],[role=\"slider\"],[role=\"switch\"],[contenteditable],[draggable]'\nconst timers = new WeakMap<object, ReturnType<typeof setTimeout>>()\nlet downAt: [number, number] | null = null\n\nexport const hover = (held: RefObject<boolean>) => ({\n  onPointerEnter: (e: PointerEvent) => {\n    if (e.pointerType === 'touch') return\n    held.current = true\n    clearTimeout(timers.get(held))\n    timers.set(held, setTimeout(() => (held.current = false), HOLD))\n  },\n  onPointerLeave: () => {\n    clearTimeout(timers.get(held))\n    held.current = false\n  },\n})\n\nexport const pressed = (take: () => void) => ({\n  onPointerDownCapture: (e?: PointerEvent) => {\n    if (e?.pointerType === 'touch') downAt = [e.clientX, e.clientY]\n    else take()\n  },\n  onPointerUpCapture: (e?: PointerEvent) => {\n    if (e?.pointerType !== 'touch' || !downAt) return\n    const moved = Math.hypot(e.clientX - downAt[0], e.clientY - downAt[1]) > 10\n    downAt = null\n    if (moved || (e.target as Element).closest?.(CONTROL)) take()\n  },\n})\n"}],"docs":"Usage, props and when to use it: https://detentui.com/blocks/sign-in.md . Wrap your root layout once in <MotionConfig reducedMotion=\"user\"> from motion/react so the motion respects reduced-motion settings.","meta":{"tier":"free","docs":"https://detentui.com/blocks/sign-in.md"}}