linear-grab 0.25.0 → 0.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -270,14 +270,14 @@ of the other sections.`,hD="- FIRST, self-orient in the repo checkout (skip any
270
270
  `);f(e=>`${e?`${e}\n`:``}${t}\n`),uj(`capture`)});let y=async()=>{m(!0);try{let{block:e,failed:t}=await f$();e&&f(t=>`${t?`${t}\n`:``}${e}\n`),t.length&&f(e=>`${e}\n<!-- upload issues: ${t.join(` · `)} -->\n`)}finally{m(!1)}},b=_r(()=>({mutationFn:e=>IO(e.id,e.text),onSuccess:()=>{f(``),l()}})),x=_r(()=>({mutationFn:e=>LO(e.id,e.model),onSuccess:t=>{e.setQueryData([`bridge-tasks`],e=>e?.map(e=>e.id===t.id?t:e)),l()}})),S=_r(()=>({mutationFn:e=>zO(e),onSuccess:l})),C,w=!0,E=()=>{C&&(w=C.scrollTop+C.clientHeight>=C.scrollHeight-48)};O(()=>{let e=s.data?.tail?.length??0;r(),!(!C||!e||!w)&&requestAnimationFrame(()=>{C&&(C.scrollTop=C.scrollHeight)})});let[ee,A]=T(null),j=async e=>{try{await navigator.clipboard.writeText(YO(e)),A(e.id),setTimeout(()=>A(null),1800)}catch{}},te=e=>e===`running`?`var(--color-accent)`:e===`done`?`var(--color-success)`:e===`stopped`?`var(--color-warn)`:`var(--color-danger)`,ne=e=>{let t=e.line.kind,n=k(()=>S$(e.line.text));return t===`user`?(()=>{var e=V1(),t=e.firstChild.nextSibling;return D(()=>t.innerHTML=n()),e})():t===`assistant`||t===`result`?(()=>{var e=H1(),r=e.firstChild,i=r.nextSibling;return ot(e,`bg-surface rounded-lg border px-2.5 py-1.5 ${t===`result`?`border-success/40`:`border-border`}`),ot(r,`mb-0.5 text-[9.5px] font-semibold tracking-wide uppercase ${t===`result`?`text-success`:`text-text-faint`}`),F(r,t===`result`?`Result`:`Claude`),D(()=>i.innerHTML=n()),e})():(()=>{var n=U1();return ot(n,`font-mono px-1 text-[10px] leading-relaxed break-words ${t===`subagent`?`text-warn`:t===`stderr`?`text-danger`:`text-text-faint`}`),F(n,()=>e.line.text),n})()};return(()=>{var e=K1(),a=e.firstChild;a.firstChild;var l=a.nextSibling;return F(a,M(N,{get when(){return t.data?.ok},get fallback(){return M(zj,{class:`text-danger`,children:`bridge offline`})},get children(){return[M(N,{get when(){return C0(t.data.version,`0.15.1`)},get children(){return M(zj,{class:`text-warn`,title:`Ctrl+C the old process, then: npx linear-grab-bridge`,get children(){return[`v`,Qe(()=>t.data.version),` outdated — restart`]}})}}),(()=>{var e=W1(),r=e.firstChild,i=r.nextSibling;return i.nextSibling,F(e,()=>t.data.active,r),F(e,()=>{let e=(n.data??[]).reduce((e,t)=>e+(t.usage?.costUsd??0),0);return e>0?` · Σ $${e.toFixed(2)}`:``},i),F(e,()=>t.data.cwd.split(`/`).slice(-2).join(`/`),null),D(()=>rt(e,`title`,t.data?.cwd)),e})()]}}),null),F(l,M(N,{get when(){return t.data?.ok},get fallback(){return M(Vj,{title:`Bridge not running`,get children(){return[`Start it in your repo's terminal:`,q1(),`Then delegate from the Draft tab ("Local Claude Code") or watch tasks here. Sessions stay interactive — send follow-ups, switch models, interrupt, resume in your terminal. History persists across restarts.`]}})},get children(){return M(N,{get when(){return(n.data??[]).length>0},get fallback(){return M(Vj,{title:`No local tasks yet`,children:`Create an issue in Draft with "Delegate to → Local Claude Code", and it appears here with live status and a conversation view.`})},get children(){var e=G1();return F(e,M(We,{get each(){return n.data},children:e=>(()=>{var t=l0(),n=t.firstChild,a=n.firstChild,l=a.nextSibling,m=n.nextSibling,h=m.nextSibling,g=h.nextSibling;return F(n,M(N,{get when(){return e().status===`running`},get fallback(){return(()=>{var t=u0();return D(n=>ut(t,`background`,te(e().status))),t})()},get children(){return M(Aj,{})}}),a),F(a,()=>e().title),F(l,()=>Wj(e().startedAt)),F(m,()=>e().lastText),F(h,M(zj,{get color(){return te(e().status)},get children(){return e().status}}),null),F(h,M(zj,{get children(){return e().model??`default model`}}),null),F(h,M(N,{get when(){return e().pendingModel},get children(){return M(zj,{class:`text-warn`,get children(){return[`→ `,Qe(()=>e().pendingModel),` next msg`]}})}}),null),F(h,M(N,{get when(){return e().subagents>0},get children(){return M(zj,{class:`text-warn`,get children(){return[`⛓ `,Qe(()=>e().subagents),` subagents`]}})}}),null),F(h,M(N,{get when(){return e().usage},get children(){var t=J1(),n=t.firstChild.nextSibling;return n.nextSibling,F(t,()=>w0(e().usage.contextTokens),n),F(t,()=>w0(e().usage.outputTokens),null),F(t,(()=>{var t=Qe(()=>!!e().usage.costUsd);return()=>t()?` · $${e().usage.costUsd.toFixed(2)}`:``})(),null),t}}),null),F(t,M(N,{get when(){return o(e())},children:e=>(()=>{var t=d0();return F(t,M(zj,{get children(){return e().state.name}}),null),F(t,M(Ij,{get href(){return e().url},children:`Open in Linear`}),null),t})()}),g),F(t,M(N,{get when(){return Qe(()=>!!e().worktree)()&&!e().worktree.removed},get children(){var t=Y1(),n=t.firstChild;return F(t,M(zj,{class:`text-warn`,children:`⎇ worktree`}),n),F(n,()=>e().worktree.branch),F(t,M(N,{get when(){return e().status!==`running`},get children(){return M(kj,{variant:`ghost`,class:`ml-auto h-6 shrink-0 px-2 text-[11px]`,get loading(){return S.isPending},get title(){return`Remove the worktree at ${e().worktree.path} — the branch (and PR) survive`},onClick:()=>S.mutate(e().id),children:`Remove`})}}),null),D(()=>rt(n,`title`,e().worktree.path)),t}}),g),F(g,M(Nj,{class:`h-7 w-auto min-w-0 flex-1 text-[11px]`,get value(){return e().pendingModel??e().model??``},onChange:t=>x.mutate({id:e().id,model:t.currentTarget.value}),title:`Model — applies from the next message`,get children(){return[M(Ue,{each:S0,children:t=>(()=>{var n=f0();return F(n,()=>t.label),D(()=>n.selected=(e().pendingModel??e().model??``)===t.id),D(()=>n.value=t.id),n})()}),M(N,{get when(){return!S0.some(t=>t.id===(e().pendingModel??e().model??``))},get children(){var t=X1();return F(t,()=>e().pendingModel??e().model),D(()=>t.value=e().pendingModel??e().model??``),t}})]}}),null),F(g,M(N,{get when(){return Qe(()=>e().status!==`running`)()&&e().sessionId},get children(){return M(kj,{variant:`ghost`,class:`size-7 px-0`,get loading(){return b.isPending},get title(){return`Resume — continues this session${e().pendingModel?` on ${e().pendingModel}`:``}`},"aria-label":`Resume session`,onClick:()=>b.mutate({id:e().id,text:`Continue where you left off. If the work is already complete, finish any remaining closeout steps (PR, Linear update, announcement).`}),get children(){return Z1()}})}}),null),F(g,M(N,{get when(){return o(e())},children:e=>M(kj,{variant:`ghost`,class:`size-7 px-0`,title:`Open the issue's Activity thread`,onClick:()=>oj(`activity`,e().id),get children(){return p0()}})}),null),F(g,M(kj,{variant:`ghost`,class:`size-7 px-0`,get disabled(){return!e().sessionId},get title(){return Qe(()=>!!e().sessionId)()?`Copy resume command · session ${e().sessionId.slice(0,8)}…`:`No session yet`},onClick:()=>void j(e()),get children(){return M(N,{get when(){return ee()===e().id},get fallback(){return m0()},get children(){return Q1()}})}}),null),F(g,M(kj,{variant:`ghost`,class:`size-7 px-0`,get title(){return r()===e().id?`Hide thread`:`Open thread — chat & changes`},onClick:()=>i(r()===e().id?null:e().id),get children(){return $1()}}),null),F(g,M(N,{get when(){return e().status===`running`},get children(){return M(kj,{variant:`danger`,class:`size-7 px-0`,get loading(){return u.isPending},title:`Interrupt — the session stays resumable`,onClick:()=>u.mutate(e().id),get children(){return e0()}})}}),null),F(t,M(N,{get when(){return r()===e().id},get children(){return[M(N,{get when(){return Qe(()=>!!c.data)()&&(c.data.files.length||c.data.untracked.length||c.data.prs.length)},get children(){var e=n0(),t=e.firstChild,n=t.firstChild.nextSibling,r=n.firstChild;r.firstChild;var i=r.nextSibling.nextSibling;return i.firstChild,F(t,M(N,{get when(){return c.data.branch},get children(){var e=t0();return F(e,()=>c.data.branch),e}}),n),F(r,()=>c.data.totalAdded,null),F(i,()=>c.data.totalDeleted,null),F(e,M(Ue,{get each(){return c.data.files},children:e=>(()=>{var t=_0(),n=t.firstChild,r=n.nextSibling;return F(n,()=>e.path),F(r,M(N,{get when(){return!e.binary},get fallback(){return v0()},get children(){return[(()=>{var t=h0();return t.firstChild,F(t,()=>e.added,null),t})(),` `,(()=>{var t=g0();return t.firstChild,F(t,()=>e.deleted,null),t})()]}})),D(()=>rt(n,`title`,e.path)),t})()}),null),F(e,M(Ue,{get each(){return c.data.untracked},children:e=>(()=>{var t=y0(),n=t.firstChild;return rt(n,`title`,e),F(n,e),t})()}),null),F(e,M(Ue,{get each(){return c.data.prs},children:e=>(()=>{var t=b0(),n=t.firstChild;return F(t,M(zj,{class:`text-accent`,get children(){return[`PR · `,Qe(()=>e.state.toLowerCase())]}}),n),F(n,()=>e.title),D(t=>{var r=e.url,i=e.title;return r!==t.e&&rt(n,`href`,t.e=r),i!==t.t&&rt(n,`title`,t.t=i),t},{e:void 0,t:void 0}),t})()}),null),e}}),(()=>{var e=r0();return e.addEventListener(`scroll`,E),ft(e=>{C=e,w=!0},e),F(e,M(N,{get when(){return(s.data?.tail??[]).length>0},get fallback(){return x0()},get children(){return M(We,{get each(){return s.data?.tail??[]},children:e=>M(ne,{get line(){return e()}})})}})),e})(),(()=>{var t=c0(),n=t.firstChild,r=n.firstChild;return F(t,M(Mj,{rows:2,get placeholder(){return e().status===`running`?`Message the working agent — it queues into the live session…`:`Follow-up — resumes the session…`},get value(){return d()},onInput:e=>f(e.currentTarget.value)}),n),F(r,(()=>{var t=Qe(()=>!!e().alive);return()=>t()?`live session`:e().sessionId?`resumes on send`:`no session`})()),F(n,M(kj,{variant:`ghost`,class:`size-7 shrink-0 px-0`,title:`Pick elements on the page — refs drop into this message`,"aria-label":`Pick element`,onClick:v,get children(){return i0()}}),null),F(n,M(kj,{variant:`ghost`,class:`size-7 shrink-0 px-0`,get loading(){return p()},title:`Attach captures — element refs, screenshots, region shots, recording GIF`,"aria-label":`Attach captures`,onClick:()=>void y(),get children(){return a0()}}),null),F(n,M(kj,{variant:`ghost`,class:`size-7 shrink-0 px-0`,get disabled(){return Qe(()=>!e().alive)()&&!e().sessionId},title:`Compact the session — frees context (sends /compact)`,"aria-label":`Compact session`,onClick:()=>b.mutate({id:e().id,text:`/compact`}),get children(){return o0()}}),null),F(n,M(kj,{variant:`primary`,class:`shrink-0`,get loading(){return b.isPending},get disabled(){return!d().trim()||!e().alive&&!e().sessionId},onClick:()=>b.mutate({id:e().id,text:d().trim()}),get children(){return s0()}}),null),t})()]}}),null),t})()})),e}})}})),e})()}zr();var E0=P(`<span class="text-text-faint text-[10.5px] tabular-nums">/<!> from your issues`),D0=P(`<div class="flex flex-col gap-1.5">`),O0=P(`<div class="flex h-full flex-col"><div class="border-border flex shrink-0 items-center justify-between border-b px-3 py-2"><span class="text-text text-[12px] font-semibold">Pull requests</span></div><div class="border-border flex shrink-0 items-center gap-1.5 border-b px-3 py-1.5"><div class="bg-surface-2 border-border flex shrink-0 rounded-md border p-0.5"></div></div><div class="min-h-0 flex-1 overflow-y-auto pt-2 pb-3 pl-2 pr-3">`),k0=P(`<span class="text-warn text-[10.5px]"title="Merge states come from gh via the bridge">states unknown — restart the bridge`),A0=P(`<button>`),j0=P(`<span class="text-success text-[11px]">✓`),M0=P(`<span class="text-[12px] leading-none">✓`),N0=P(`<svg width=13 height=13 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round aria-hidden><circle cx=8 cy=8 r=6></circle><circle cx=8 cy=8 r=1.6 fill=currentColor stroke=none>`),P0=P(`<span class="text-success text-[12px] leading-none">✓`),F0=P(`<div class="bg-surface border-border flex flex-col gap-1.5 rounded-lg border p-2.5"><a target=_blank rel=noreferrer class="text-accent truncate text-[12.5px] font-medium hover:underline"></a><div class="flex min-w-0 items-center gap-1.5"><span class="font-mono text-text-dim shrink-0 text-[11px]"></span><span class="text-text-dim truncate text-[11.5px]"></span><span class="text-text-faint ml-auto shrink-0 text-[10.5px] tabular-nums"></span></div><div class="flex min-w-0 flex-wrap items-center gap-1.5"><div class="ml-auto flex shrink-0 items-center gap-1">`),I0=P(`<svg width=12 height=12 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden><path d="M8 2 14 5.5 8 9 2 5.5 8 2Z"></path><path d="M2 10.5 8 14l6-3.5">`),L0=P(`<svg width=13 height=13 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round aria-hidden><circle cx=4 cy=3.5 r=1.5></circle><circle cx=4 cy=12.5 r=1.5></circle><circle cx=12 cy=8 r=1.5></circle><path d="M4 5v6M4 6.5c0 2 2 3 4.5 3h2">`),R0=P(`<svg width=13 height=13 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.5 stroke-linejoin=round aria-hidden><rect x=5.5 y=5.5 width=9 height=9 rx=1.5></rect><path d="M10.5 5.5v-2a2 2 0 0 0-2-2h-5a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h2">`),z0=/github\.com\/[^/]+\/[^/]+\/pull\/\d+/i;function B0(e){let t=gr(()=>({queryKey:[`my-issues`],queryFn:fO,refetchInterval:15e3})),n=k(()=>(t.data??[]).flatMap(e=>(e.attachments??[]).filter(e=>z0.test(e.url)).map(t=>({issue:e,attachment:t})))),r=gr(()=>({queryKey:[`bridge-tasks`],queryFn:NO,refetchInterval:1e4,retry:0})),i=gr(()=>({queryKey:[`pr-status`,n().map(e=>e.attachment.url).sort().join(`|`)],queryFn:()=>HO(n().map(e=>e.attachment.url)),refetchInterval:3e4,retry:0,enabled:n().length>0})),[a,o]=T(new Set),s=e=>a().has(e.attachment.url)?`MERGED`:i.data?.statuses[e.attachment.url],c=e=>!!r.data?.some(t=>t.title.startsWith(e.issue.identifier)),[l,u]=T(`all`),[d,f]=T(``),p=k(()=>{let e=d().trim().toLowerCase();return n().filter(t=>{let n=t.issue.state.type,r=s(t);return!(l()===`review`&&(n!==`started`||r===`MERGED`||r===`CLOSED`)||l()===`open`&&(r===`MERGED`||r===`CLOSED`||!(n===`started`||n===`unstarted`||n===`backlog`))||l()===`done`&&!(n===`completed`||r===`MERGED`||r===`CLOSED`)||e&&![t.attachment.title,t.issue.title,t.issue.identifier].join(` `).toLowerCase().includes(e))})}),m=gr(()=>({queryKey:[`settings`],queryFn:wr})),h=()=>m.data?.stagingBranch?.trim()||`staging`,[g,_]=T(null),[v,y]=T(new Set),[b,x]=T(null),S=async e=>{_(e),x(null);try{await UO(e,h()),y(t=>new Set(t).add(e))}catch(e){x(e instanceof Error?e.message:String(e))}finally{_(null)}},[C,w]=T(null),[E,O]=T(null),ee=async e=>{O(e);try{await qO(e),o(t=>new Set(t).add(e))}catch{}finally{O(null)}},A=async e=>{try{await navigator.clipboard.writeText(e.attachment.url),w(e.attachment.id),setTimeout(()=>w(null),1500)}catch{}};return(()=>{var r=O0(),o=r.firstChild;o.firstChild;var m=o.nextSibling,_=m.firstChild,y=m.nextSibling;return F(o,M(N,{get when(){return!i.isError},get fallback(){return k0()},get children(){var e=E0(),t=e.firstChild,r=t.nextSibling;return r.nextSibling,F(e,()=>p().length,t),F(e,()=>n().length,r),e}}),null),F(_,M(Ue,{each:[{id:`all`,label:`All`},{id:`review`,label:`Review`},{id:`open`,label:`Open`},{id:`done`,label:`Done`}],children:e=>(()=>{var t=A0();return t.$$click=()=>u(e.id),F(t,()=>e.label),D(()=>ot(t,`rounded-[5px] px-2 py-0.5 text-[11px] font-medium transition-colors ${l()===e.id?`bg-surface-3 text-text`:`text-text-dim hover:text-text cursor-pointer`}`)),t})()})),F(m,M(jj,{class:`h-6 min-w-0 flex-1 text-[11px]`,placeholder:`Search PRs…`,get value(){return d()},onInput:e=>f(e.currentTarget.value)}),null),F(y,M(N,{get when(){return p().length>0},get fallback(){return M(Vj,{title:`No PRs yet`,get children(){return Qe(()=>!!t.isError)()?`Connect Linear in Settings.`:n().length>0?`No PRs match the current filter.`:`PRs opened by delegated agents appear here as soon as they link back to your issues.`}})},get children(){var t=D0();return F(t,M(Ue,{get each(){return p()},children:t=>(()=>{var n=F0(),r=n.firstChild,o=r.nextSibling,l=o.firstChild,u=l.nextSibling,d=u.nextSibling,f=o.nextSibling,p=f.firstChild;return F(r,()=>t.attachment.title||t.attachment.url),F(n,M(N,{get when(){return i.data?.previews[t.attachment.url]},get children(){return M(Ij,{get href(){return i.data.previews[t.attachment.url]},class:`shrink-0 self-start`,title:`Vercel deploy preview of this PR's branch`,children:`Preview`})}}),o),F(o,M(Bj,{get color(){return t.issue.state.color}}),l),F(l,()=>t.issue.identifier),F(u,()=>t.issue.title),F(d,()=>Wj(t.issue.updatedAt)),F(f,M(zj,{get children(){return t.issue.state.name}}),p),F(f,M(N,{get when(){return t.issue.delegate},get children(){return M(zj,{class:`text-accent`,get children(){return[M(Pj,{}),` `,Qe(()=>t.issue.delegate.displayName)]}})}}),p),F(f,M(N,{get when(){return c(t)},get children(){return M(zj,{class:`text-warn`,get children(){return[M(Fj,{}),` local`]}})}}),p),F(f,M(Ij,{get href(){return t.issue.url},class:`shrink-0`,title:`Open the issue in Linear`,children:`Linear`}),p),F(p,M(N,{get when(){return Qe(()=>!!s(t))()&&s(t)!==`OPEN`},get children(){return M(zj,{get class(){return s(t)===`MERGED`?`text-success`:`text-text-faint`},get children(){return s(t)===`MERGED`?`✓ merged`:`closed`}})}}),null),F(p,M(kj,{variant:`ghost`,class:`size-7 shrink-0 px-0`,get loading(){return g()===t.attachment.url},get disabled(){return v().has(t.attachment.url)},get title(){return Qe(()=>!!v().has(t.attachment.url))()?`On ${h()} — staging preview deploying`:`Merge into ${h()} — deploys the staging preview domain`},"aria-label":`Merge to staging`,onClick:()=>void S(t.attachment.url),get children(){return M(N,{get when(){return v().has(t.attachment.url)},get fallback(){return I0()},get children(){return j0()}})}}),null),F(p,M(kj,{variant:`primary`,class:`size-7 px-0`,get classList(){return{hidden:!!s(t)&&s(t)!==`OPEN`}},get loading(){return E()===t.attachment.url},get disabled(){return a().has(t.attachment.url)},get title(){return a().has(t.attachment.url)?`Merged`:`Squash-merge this PR (bridge gh)`},"aria-label":`Merge PR`,onClick:()=>void ee(t.attachment.url),get children(){return M(N,{get when(){return a().has(t.attachment.url)},get fallback(){return L0()},get children(){return M0()}})}}),null),F(p,M(kj,{variant:`ghost`,class:`size-7 px-0`,title:`Open the issue's Activity thread`,"aria-label":`Open issue activity`,onClick:()=>{oj(`activity`,t.issue.id),e.onOpenIssue()},get children(){return N0()}}),null),F(p,M(kj,{variant:`ghost`,class:`size-7 px-0`,title:`Copy PR URL`,"aria-label":`Copy PR URL`,onClick:()=>void A(t),get children(){return M(N,{get when(){return C()===t.attachment.id},get fallback(){return R0()},get children(){return P0()}})}}),null),F(f,M(N,{get when(){return v().has(t.attachment.url)},get children(){return M(u$,{get url(){return t.attachment.url},get base(){return h()}})}}),null),D(e=>{var n=t.attachment.url,i=t.attachment.title;return n!==e.e&&rt(r,`href`,e.e=n),i!==e.t&&rt(r,`title`,e.t=i),e},{e:void 0,t:void 0}),n})()})),t}})),r})()}nt([`click`]);var V0=[`display`,`align-items`,`justify-content`,`gap`,`padding`,`margin`,`width`,`height`,`font-size`,`font-weight`,`line-height`,`letter-spacing`,`color`,`background-color`,`border-radius`,`border-width`,`border-color`,`box-shadow`,`opacity`,`transform`,`transition-property`,`transition-duration`],H0=new Set([`color`,`background-color`,`border-color`]),U0={margin:new Set([`0px`]),padding:new Set([`0px`]),gap:new Set([`normal`,`0px`]),"box-shadow":new Set([`none`]),transform:new Set([`none`]),"border-width":new Set([`0px`]),"border-radius":new Set([`0px`]),"letter-spacing":new Set([`normal`]),opacity:new Set([`1`]),"transition-property":new Set([`all`,`none`]),"transition-duration":new Set([`0s`]),width:new Set([`auto`]),height:new Set([`auto`])},W0=null;function G0(e){try{return W0||(W0=document.createElement(`span`),W0.style.display=`none`,document.body.appendChild(W0)),W0.style.color=``,W0.style.color=e,W0.style.color?getComputedStyle(W0).color:null}catch{return null}}var K0=null;function q0(){if(K0)return K0;let e=new Map,t=getComputedStyle(document.documentElement),n=new Set;for(let r of Array.from(document.styleSheets)){let i;try{i=r.cssRules}catch{continue}for(let r of Array.from(i)){let i=r.style;if(i)for(let r=0;r<i.length;r++){let a=i.item(r);if(!a.startsWith(`--`)||n.has(a))continue;n.add(a);let o=t.getPropertyValue(a).trim()||i.getPropertyValue(a).trim();if(!o||o.length>80)continue;let s=G0(o);s&&!e.has(s)&&e.set(s,a)}}}return K0=e,e}function J0(e){let t=e.getBoundingClientRect();if(t.width<2&&t.height<2)return!1;let n=getComputedStyle(e);return n.display!==`none`&&n.visibility!==`hidden`}function Y0(e){let t=[],n=e.getAttribute(`role`);n&&t.push(n);for(let n of[`data-state`,`data-highlighted`,`aria-expanded`,`aria-selected`,`data-active`]){let r=e.getAttribute(n);r!=null&&t.push(`${n.replace(/^(data|aria)-/,``)}=${r||`true`}`)}return t.join(` `)}async function X0(){try{return(await Promise.resolve().then(()=>(RZ(),AZ))).getGlobalApi()?.getDisplayName??null}catch{return null}}function Z0(e,t){let n=null;try{n=t?.(e)??null}catch{}let r=Y0(e),i=n||e.tagName.toLowerCase();return r?`${i} [${r}]`:i}function Q0(e,t){let n=getComputedStyle(e),r={},i={};for(let e of V0){let a=n.getPropertyValue(e).trim();if(!(!a||U0[e]?.has(a)))if(H0.has(e)){let n=G0(a);if(n===`rgba(0, 0, 0, 0)`)continue;let o=n?t.get(n):void 0;o&&(i[e]=o),r[e]=a}else r[e]=a}return{styles:r,tok:i}}var $0=40;async function e2(e){let t=q0(),n=await X0(),r=[],i=new Map,a=e=>{if(r.length>=$0||!J0(e))return;let o=typeof e.className==`string`?e.className:``,s=`${e.tagName}|${o}`,c=i.get(s);if(c)c.count+=1;else{let{styles:a,tok:c}=Q0(e,t),l={label:Z0(e,n),count:1,classes:o,styles:a,tokens:c};i.set(s,l),r.push(l)}for(let t of Array.from(e.children))a(t)};return a(e),{title:r[0]?.label??e.tagName.toLowerCase(),pageUrl:location.href,extractedAt:Date.now(),nodes:r,states:[]}}var t2={active:!1,msLeft:0,total:0,byTrigger:{}},n2=new Set;function r2(e){t2={...t2,...e};for(let e of n2)e(t2)}function i2(e){return n2.add(e),e(t2),()=>void n2.delete(e)}var a2=null;function o2(){a2?.()}function s2(e){return e===`hover`||e===`focus`?e:`open`}async function c2(e,t,n){let r=q0(),i=await X0(),a=[],o=new Set,s=new Map,c=e=>Q0(e,r).styles,l=e=>{if(!(s.size>=120)){s.set(e,c(e));for(let t of Array.from(e.children))l(t)}};l(e);let u=(e,t)=>{let n=s.get(e);if(!n)return;let r=c(e),l={};for(let e of new Set([...Object.keys(n),...Object.keys(r)])){let t=n[e]??`(unset)`,i=r[e]??`(unset)`;t!==i&&(l[e]={from:t,to:i})}if(Object.keys(l).length===0)return;let u=Z0(e,i),d=`${t}|${u}|${Object.keys(l).join(`,`)}`;if(o.has(d))return;o.add(d),a.push({trigger:t,label:u,changed:l});let f=s2(t);r2({total:t2.total+1,byTrigger:{...t2.byTrigger,[f]:(t2.byTrigger[f]??0)+1}})},d=e=>{let t=e.target;t instanceof Element&&s.has(t)&&setTimeout(()=>u(t,`hover`),50)},f=e=>{let t=e.target;t instanceof Element&&s.has(t)&&setTimeout(()=>u(t,`focus`),50)};e.addEventListener(`pointerover`,d,!0),e.addEventListener(`focusin`,f,!0);let p=new MutationObserver(e=>{for(let t of e){if(t.type!==`attributes`||!(t.target instanceof Element))continue;let e=t.target,n=t.attributeName??``,r=e.getAttribute(n)??``;setTimeout(()=>u(e,`attr:${n}=${r||`true`}`),50)}});p.observe(e,{subtree:!0,attributes:!0,attributeFilter:[`class`,`data-state`,`data-highlighted`,`aria-expanded`,`aria-selected`,`open`]});let m=new MutationObserver(t=>{for(let n of t)for(let t of Array.from(n.addedNodes))!(t instanceof Element)||e.contains(t)||t.id===`linear-grab-root`||t.closest?.(`#linear-grab-root`)||setTimeout(()=>{if(!t.isConnected||!J0(t))return;let{styles:e}=Q0(t,r);if(Object.keys(e).length===0)return;let n=Z0(t,i),s=`appeared|${n}`;if(o.has(s))return;o.add(s);let c={};for(let[t,n]of Object.entries(e))c[t]={from:`(absent)`,to:n};a.push({trigger:`appeared (portal/open)`,label:n,changed:c}),r2({total:t2.total+1,byTrigger:{...t2.byTrigger,open:(t2.byTrigger.open??0)+1}})},50)});m.observe(document.body,{childList:!0,subtree:!1}),r2({active:!0,msLeft:t,total:0,byTrigger:{}});let h=setInterval(()=>{let e=t-(Date.now()-g);n?.(Math.max(0,e)),r2({msLeft:Math.max(0,e)})},250),g=Date.now();return await new Promise(e=>{let n=setTimeout(e,t);a2=()=>{clearTimeout(n),e()}}),a2=null,r2({active:!1,msLeft:0}),clearInterval(h),e.removeEventListener(`pointerover`,d,!0),e.removeEventListener(`focusin`,f,!0),p.disconnect(),m.disconnect(),a}function l2(e){let t=[`# Design genome: ${e.title}`,`Extracted from ${e.pageUrl}`,``,`## Structure`];for(let n of e.nodes){t.push(`### ${n.label}${n.count>1?` ×${n.count}`:``}`),n.classes&&t.push(`classes: \`${n.classes}\``);let e=Object.entries(n.styles).map(([e,t])=>{let r=n.tokens[e];return`${e}: ${t}${r?` ← var(${r})`:``}`});e.length&&t.push("```",...e,"```")}if(e.states.length){t.push(``,`## Interaction states`);for(let n of e.states)t.push(`### ${n.label} — ${n.trigger}`),t.push("```",...Object.entries(n.changed).map(([e,t])=>`${e}: ${t.from} → ${t.to}`),"```")}return t.join(`
271
271
  `)}function u2(){return new Promise(e=>{let t=document.createElement(`div`);t.style.cssText=`position:fixed;z-index:2147483647;pointer-events:none;border:1.5px solid #5e6ad2;border-radius:4px;background:rgba(94,106,210,0.08);display:none;`,document.body.appendChild(t);let n=null,r=e=>{let t=document.elementFromPoint(e.clientX,e.clientY);return!t||t.closest(`#linear-grab-root`)?null:t},i=e=>{let i=r(e);if(n=i,!i){t.style.display=`none`;return}let a=i.getBoundingClientRect();t.style.display=`block`,t.style.left=`${a.left-2}px`,t.style.top=`${a.top-2}px`,t.style.width=`${a.width+4}px`,t.style.height=`${a.height+4}px`},a=n=>{t.remove(),window.removeEventListener(`mousemove`,i,!0),window.removeEventListener(`click`,o,!0),window.removeEventListener(`keydown`,s,!0),e(n)},o=e=>{e.preventDefault(),e.stopPropagation(),a(n)},s=e=>{e.key===`Escape`&&(e.stopPropagation(),a(null))};window.addEventListener(`mousemove`,i,!0),window.addEventListener(`click`,o,!0),window.addEventListener(`keydown`,s,!0)})}function d2(e){return e.split(`,`).map(e=>{let t=e.trim();return t.endsWith(`ms`)?parseFloat(t)||0:t.endsWith(`s`)?(parseFloat(t)||0)*1e3:0})}var f2=new Set(`width.height.min-width.min-height.max-width.max-height.top.left.right.bottom.inset.margin.margin-top.margin-right.margin-bottom.margin-left.padding.padding-top.padding-right.padding-bottom.padding-left.font-size.line-height.letter-spacing.box-shadow.filter.background-position.grid-template-columns.grid-template-rows.flex-basis.gap`.split(`.`));function p2(e){return e.includes(`all`)?[`all (includes layout/paint props)`]:e.filter(e=>f2.has(e))}function m2(e){let t=h2(e);if(t===`ease-in`||t===`ease-in-out`)return t;let n=t.match(/cubic-bezier\(\s*([\d.]+)\s*,\s*(-?[\d.]+)/);if(n){let e=parseFloat(n[1]),r=parseFloat(n[2]);if(e>=.4&&r<e/2)return t}return null}function h2(e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];if(r===`(`)t++;else if(r===`)`)t--;else if(r===`,`&&t===0)return e.slice(0,n).trim()}return e.trim()}var g2=`[data-slot*="content"], [role="menu"], [role="dialog"], [role="listbox"]`,_2=new Set([`width`,`height`,`flex-basis`,`grid-template-columns`,`grid-template-rows`,`grid-template-areas`]);function v2(e,t){if(e instanceof SVGElement)return!0;try{if(e.closest(`svg`))return!0}catch{}try{if(e.closest(g2))return!0}catch{}try{if(e.closest(`[data-panel]`))return!t||t.length===0||t.every(e=>_2.has(e))}catch{}return!1}function y2(e){let t=e.id?`#${e.id}`:``,n=typeof e.className==`string`&&e.className?`.${e.className.split(/\s+/).filter(Boolean).slice(0,2).join(`.`)}`:``;return`${e.tagName.toLowerCase()}${t}${n}`}var b2=200;function x2(e){if(typeof e.className!=`string`)return;let t=e.className.split(/\s+/).filter(e=>/^(transition|duration-|delay-|ease-)/.test(e));return t.length?t.join(` `):void 0}function S2(e,t,n,r,i,a){let o=[];return n>0&&o.push(`remove the ${Math.round(n)}ms transition-delay`),(r?.includes(`transition-all`)||e.includes(`all`))&&o.push(`scope 'transition-all' to the intended properties (e.g. transition-colors)`),a?.length&&o.push(`JANK: transitions LAYOUT/PAINT props (${a.join(`, `)}) — reflow/repaint every frame; animate transform/opacity instead (box-shadow → animate a pseudo-element's opacity)`),i&&o.push(`easing '${i}' starts slow — §42 bans ease-in/ease-in-out on UI, use ease-out`),t>500?o.push(`${Math.round(t)}ms is over the 500ms HARD CAP for UI feedback`):t>300?o.push(`${Math.round(t)}ms is over the 300ms UI cap`):t>100&&o.push(`shorten ${Math.round(t)}ms → ≤100ms`),o.push(`make PRESS feedback instant: 'active:transition-none' (and data-[state=…]:transition-none for toggles) — animate only hover in/out`),o.join(`; `)}async function C2(){try{return(await Promise.resolve().then(()=>(RZ(),AZ))).getGlobalApi()??null}catch{return null}}async function w2(e){let t=await C2(),n=null,r=null;try{n=t?.getDisplayName?.(e)??null}catch{}try{let n=await t?.getSource?.(e);n?.filePath&&(r=`${n.filePath}${n.lineNumber==null?``:`:${n.lineNumber}`}`)}catch{}return{component:n,source:r}}var T2=[],E2=null;function D2(e){T2.push(e),E2??=setTimeout(()=>{E2=null;let e=T2.slice(0,50).map(e=>({kind:`css-slowdown`,...e}));T2=[],JO().then(t=>fetch(`${t}/scan/events`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({events:e}),keepalive:!0})).catch(()=>{})},1500)}var O2=[],k2=new Set;function A2(e){let t=e.mode===`live`?O2.find(t=>t.mode===`live`&&t.element===e.element&&(t.classHint??``)===(e.classHint??``)&&t.properties.join()===e.properties.join()):void 0;t?(t.count+=1,t.at=e.at,t.sinceInputMs=e.sinceInputMs,O2=[...O2]):O2=[e,...O2].slice(0,100);for(let e of k2)e(O2);D2(e)}function j2(e){return k2.add(e),e(O2),()=>void k2.delete(e)}function M2(){O2=[];for(let e of k2)e(O2)}var N2=!0;try{N2=localStorage.getItem(`linear-grab:css-watch`)!==`0`}catch{}var P2=new Set;function F2(){return N2}function I2(e){N2=e;try{localStorage.setItem(`linear-grab:css-watch`,e?`1`:`0`)}catch{}for(let t of P2)t(e)}function L2(e){return P2.add(e),e(N2),()=>void P2.delete(e)}var R2=!1;function z2(){if(R2||typeof window>`u`)return;R2=!0;let e=0,t=()=>{e=performance.now()};for(let e of[`pointerdown`,`pointerup`,`keydown`])window.addEventListener(e,t,{capture:!0,passive:!0});let n=new Map,r=new Map;window.addEventListener(`transitionrun`,t=>{if(!N2)return;let i=performance.now()-e;if(i>b2)return;let a=t.target;if(!(a instanceof Element)||a.closest(`#linear-grab-root`)||a===document.documentElement||a===document.body||t.propertyName.startsWith(`--`))return;let o=getComputedStyle(a),s=o.transitionProperty.split(`,`).map(e=>e.trim());if(v2(a,s))return;let c=d2(o.transitionDuration),l=d2(o.transitionDelay),u=Math.max(0,s.indexOf(t.propertyName)),d=c[u%c.length]??c[0]??0,f=l[u%l.length]??l[0]??0;if(d+f<=100)return;let p=r.get(a);if(p){p.props.add(t.propertyName),p.duration=Math.max(p.duration,d),p.delay=Math.max(p.delay,f);return}let m={props:new Set([t.propertyName]),duration:d,delay:f,since:i,timer:setTimeout(()=>{r.delete(a);let e=y2(a),t=Date.now();if(t-(n.get(e)??0)<5e3)return;n.set(e,t);let i=x2(a),o=[...m.props],s=a.isConnected?m2(getComputedStyle(a).transitionTimingFunction):null,c=p2(o);w2(a).then(({component:n,source:r})=>{A2({mode:`live`,page:location.pathname,element:e,component:n,source:r,properties:o,durationMs:Math.round(m.duration),delayMs:Math.round(m.delay),sinceInputMs:Math.round(m.since),count:1,classHint:i,easing:s??void 0,jankProps:c.length?c:void 0,suggestion:S2(o,m.duration,m.delay,i,s,c),at:t})})},300)};r.set(a,m)},{capture:!0,passive:!0})}var B2=`button, a, input, select, textarea, [role], [tabindex], [data-state], [aria-expanded]`;async function V2(){let e=new Map,t=Array.from(document.querySelectorAll(B2)).slice(0,3e3);for(let n of t){if(n.closest(`#linear-grab-root`))continue;let t=n.getBoundingClientRect();if(t.width<2&&t.height<2)continue;let r=getComputedStyle(n);if(r.cursor!==`pointer`&&!n.matches(`button, a, input, select, textarea`))continue;let i=r.transitionProperty.split(`,`).map(e=>e.trim());if(v2(n,i))continue;let a=d2(r.transitionDuration),o=d2(r.transitionDelay),s=Math.max(...a,0)+Math.max(...o,0);if(s<=100)continue;let c=x2(n),l=`${n.tagName}|${c??i.join()}|${Math.round(s)}`,u=e.get(l);if(u){u.finding.count+=1;continue}let d=m2(r.transitionTimingFunction),f=p2(i);e.set(l,{example:n,finding:{mode:`audit`,page:location.pathname,element:y2(n),component:null,source:null,properties:i,durationMs:Math.round(Math.max(...a,0)),delayMs:Math.round(Math.max(...o,0)),count:1,classHint:c,easing:d??void 0,jankProps:f.length?f:void 0,suggestion:S2(i,Math.max(...a,0),Math.max(...o,0),c,d,f),at:Date.now()}})}let n=[];for(let{finding:t,example:r}of e.values()){let{component:e,source:i}=await w2(r);t.component=e,t.source=i,n.push(t)}n.sort((e,t)=>t.durationMs+t.delayMs-(e.durationMs+e.delayMs)||t.count-e.count),O2=[...n,...O2.filter(e=>e.mode===`live`)].slice(0,100);for(let e of k2)e(O2);for(let e of n)D2(e);return n}function H2(e){return[`Below is a CSS-slowdown report from my running app (live-captured on real input + full-page audit).`,`Goal: ALL interaction feedback must be instant. Rules:`,``,`1. Most of these come from SHARED design-system variants — fix the VARIANT`,` DEFINITIONS, not the call sites. Grep for the exact class recipes in the`," findings' `classes:` lines (e.g. `transition-all`, `transition-colors duration-150`).","2. Press/toggle state changes get NO transition: add `active:transition-none`"," and `data-[state=on]:transition-none` / `data-[state=open]:transition-none`.",` Hover in/out may keep a transition but shorten it: duration-150 → duration-100`,` (duration-75 for small controls like tabs and icon buttons).`,"3. Replace every `transition-all` with the scoped variant (transition-colors /",` transition-transform / transition-opacity — per what actually changes).`,`3b. Findings marked ⚠ layout/paint: NEVER transition width/height/top/left/`,` margin/padding/box-shadow — they reflow or repaint every frame. Use`,` transform: translate/scale, and animate a pseudo-element's opacity for shadows.`,`3c. Findings marked ⚠ easing: never ease-in OR ease-in-out on UI (§42 bans`,` both) — replace with ease-out (house curve: cubic-bezier(.2,0,.1,1), the`,` theme default).`,`3d. Press must be instant GLOBALLY: keep the unlayered §42 rule in globals.css`," — `button:active, a:active, [role=button/tab/menuitem/option]:active"," { transition-duration: 0s }` — so pointer-down feedback snaps and only the",` release animates back. If a control still animates on press, that global`,` rule is missing or overridden.`,`4. Where a finding's source looks like a generic fallback (one file:line repeated`," for many components), locate the code by the `classes:` line instead.",`5. Do NOT touch entry/exit animations of popovers/menus or icon micro-motion`,` (chevron rotate etc.) — that is intentional; only input FEEDBACK must be instant.`,`6. PROOF REQUIRED: after the change I will re-run the audit — it must show zero`,` interactive elements ≥100ms and clicking must produce no live findings.`,` Do not claim done without stating what you changed per variant.`,``,`---`,``,U2(e)].join(`
272
272
  `)}function U2(e){let t=[`# CSS slowdowns on ${location.host}${location.pathname}`,`Threshold: 100ms (interaction feedback should be instant).`,``];for(let n of e)t.push(`## ${n.component??n.element}${n.count>1?` ×${n.count}`:``} — ${n.durationMs}ms${n.delayMs?` +${n.delayMs}ms delay`:``}`),n.source&&t.push(`- source: ${n.source}`),t.push(`- transitions: ${n.properties.join(`, `)}`),n.classHint&&t.push(`- classes: \`${n.classHint}\``),n.jankProps?.length&&t.push(`- ⚠ layout/paint transition (reflows every frame): ${n.jankProps.join(`, `)}`),n.easing&&t.push(`- ⚠ easing: ${n.easing} (§42 bans ease-in/ease-in-out — use ease-out)`),n.sinceInputMs!=null&&t.push(`- fired ${n.sinceInputMs}ms after user input (live capture)`),t.push(`- fix: ${n.suggestion}`,``);return t.join(`
273
- `)}function W2(e,t,n){return{ruleId:e.id,part:e.part,severity:e.severity,description:e.description,selector:y2(t),evidence:n,el:typeof WeakRef<`u`?new WeakRef(t):void 0}}function G2(e){return e.getBoundingClientRect()}function K2(e){return e.split(`/`)[0].trim().split(/\s+/).filter(Boolean).map(e=>e.endsWith(`px`)?parseFloat(e):NaN)}function q2(e){let t=e.match(/rgba?\(([^)]+)\)/);return t?t[1].split(`,`).map(e=>e.trim()).join(`,`):null}function J2(e,t){let n=t,r=n.maskImage||n.webkitMaskImage||``;if(r&&r!==`none`)return r;let i=(e.getAttribute(`style`)??``).match(/(?:^|;|\s)(?:-webkit-)?mask-image\s*:\s*([^;]+)/i);return i&&i[1].trim()&&i[1].trim()!==`none`?i[1].trim():``}var Y2=new Set([0,8,12,16]),X2={light:q2(`rgb(240, 240, 241)`),dark:q2(`rgb(35, 35, 37)`)},Z2=new Set([`#50e3c2`,`#ee0000`,`#f5a623`]),Q2=`button, a, [role="button"], [role="tab"], [role="menuitem"], [role="option"], input, textarea, select`;function $2(e){let t=[],n=e=>{for(let r of Array.from(e)){let e=r;if(e.cssRules&&e.cssRules.length){n(e.cssRules);continue}let i=r.selectorText;i&&i.includes(`:hover`)&&t.push(i.replace(/:hover/g,``))}};for(let t of Array.from(e.styleSheets))try{n(t.cssRules)}catch{}return t}function e4(e,t){for(let n of t)if(n.trim())try{if(e.matches(n))return!0}catch{}return!1}function t4(e){return!e.matches(`button, [role="button"]`)||e.querySelectorAll(`svg`).length===0?!1:(e.textContent??``).trim().length===0}function n4(e){let t=e.parentElement;for(;t;){try{let e=r4(t).overflowY;if(e===`auto`||e===`scroll`)return t}catch{}t=t.parentElement}return null}var r4=e=>getComputedStyle(e),i4={id:`radius-vocabulary`,part:`§40`,severity:`error`,description:`§40: radius vocabulary is {8, 12, 16, full} — never rounded-md/[4px]/[6px]/[10px]. Off-vocabulary radius.`,check(e){let t=[];for(let n of e.els){let r=e.css(n).borderRadius;if(!r||r===`0px`)continue;let i=K2(r);if(i.some(e=>Number.isNaN(e)))continue;let a=Math.max(...i);if(a===0)continue;let o=G2(n),s=Math.min(o.width||0,o.height||0);s>0&&a>=s/2-.5||i.every(e=>Y2.has(e))||t.push(W2(this,n,`border-radius: ${r}`))}return t}},a4={id:`row-radius-token`,part:`§40`,severity:`error`,description:`§40: list rows consume --row-radius (8px) or 0 — no bespoke per-surface row radius.`,check(e){let t=[];for(let n of e.els){let r=G2(n).height;if(r<26||r>50||!n4(n))continue;let i=n.parentElement;if(!i||Array.from(i.children).filter(e=>{let t=G2(e);return Math.abs(t.height-r)<2}).length<3)continue;let a=K2(e.css(n).borderRadius);if(a.some(e=>Number.isNaN(e)))continue;let o=Math.max(0,...a);o===0||o===8||t.push(W2(this,n,`row radius ${e.css(n).borderRadius} (want 0 or var(--row-radius)=8px)`))}return t}},o4={id:`active-fill-token`,part:`§11`,severity:`error`,description:`§11: active/selected fill must be var(--selected) (theme-safe) — never bg-secondary (#F0F0F1 / #232325).`,check(e){let t=[],n=null;try{let t=e.root.documentElement??document.documentElement;t&&(n=q2(e.css(t).getPropertyValue(`--selected`).trim()))}catch{}let r=[X2.light,X2.dark].filter(Boolean);if(n&&r.includes(n)){let t=e.root.documentElement??document.documentElement;return[W2({id:this.id,part:this.part,severity:`warn`,description:`§11: active-fill-token unverifiable — --selected resolves EQUAL to bg-secondary this theme; cannot distinguish the token from the anti-pattern.`},t??e.els[0],`--selected == bg-secondary (${n})`)]}for(let n of e.els){if(!(n.matches(`[role="tab"], [role="button"], [aria-selected], [role="option"]`)||n.closest(`[role="tablist"], [role="menu"], [data-rail], nav`)))continue;let i=q2(e.css(n).backgroundColor);i&&r.includes(i)&&t.push(W2(this,n,`background bg-secondary (${e.css(n).backgroundColor}) — use var(--selected)`))}return t}},s4={id:`inline-style-state`,part:`§40`,severity:`error`,description:`§40: the shared row-action class owns ALL visual states; inline styles carry LAYOUT ONLY — an inline background/color kills the class state.`,check(e){let t=[];for(let n of e.els){let e=typeof n.className==`string`?n.className:``;if(!/pb-row-action|row-action/.test(e))continue;let r=n.getAttribute(`style`)??``;/(^|;|\s)(background|color)\s*:/.test(r)&&t.push(W2(this,n,`inline style="${r}" on a row-action element`))}return t}},c4={id:`icon-button-no-hover`,part:`§40`,severity:`warn`,description:`§40/Part 10: every interactive control changes color on hover — icon-only button with no :hover rule and no .pb-row-action.`,check(e){let t=[],n=$2(e.root.styleSheets?e.root:document);for(let r of e.els){if(!t4(r))continue;let i=typeof r.className==`string`?r.className:``;/pb-row-action|row-action/.test(i)||r.hasAttribute(`data-framer-appear-id`)||Array.from(r.attributes).some(e=>e.name.startsWith(`data-framer`))||e.css(r).willChange.includes(`transform`)||e4(r,n)||t.push(W2(this,r,`icon-only ${r.tagName.toLowerCase()} with no hover rule / .pb-row-action`))}return t}},l4={id:`icon-button-no-tooltip`,part:`§7`,severity:`warn`,description:`§7: every icon-only button gets the shared Tooltip — needs aria-describedby / data-slot="tooltip-trigger" (menu-row title exempt).`,check(e){let t=[];for(let n of e.els)t4(n)&&(n.hasAttribute(`aria-describedby`)||n.getAttribute(`data-slot`)===`tooltip-trigger`||n.closest(`[data-slot="tooltip-trigger"]`)||n.closest(`[role="menuitem"]`)&&n.hasAttribute(`title`)||t.push(W2(this,n,`icon-only ${n.tagName.toLowerCase()} with no tooltip trigger / aria-describedby`)));return t}},u4={id:`unvirtualized-scroller`,part:`§0`,severity:`error`,description:`§0: every dynamic-length scrolling list virtualizes — a tall scroller with 60+ direct children is unvirtualized.`,check(e){let t=[];for(let n of e.els){let r=e.css(n);if(![r.overflowY,r.overflowX,r.overflow].some(e=>e===`auto`||e===`scroll`)||n.scrollHeight<=2*n.clientHeight)continue;let i=n.children.length;i<=60||t.push(W2(this,n,`${i} direct children, scrollHeight ${n.scrollHeight} > 2×clientHeight ${n.clientHeight}`))}return t}},d4={id:`scroll-no-fade`,part:`§1`,severity:`warn`,description:`§1: a horizontal scroller needs a truthful scroll fade — no scroll-fade-x/scroll-fade-x-js class and no mask-image.`,check(e){let t=[];for(let n of e.els){if(n.scrollWidth<=n.clientWidth+8)continue;let r=typeof n.className==`string`?n.className:``;/scroll-fade-x(-js)?/.test(r)||J2(n,e.css(n))||t.push(W2(this,n,`horizontal scroller (scrollWidth ${n.scrollWidth} > clientWidth ${n.clientWidth}) with no fade`))}return t}},f4={id:`phantom-fade`,part:`§1`,severity:`warn`,description:`§1: a fade must NEVER paint when nothing is hidden — mask-image present but scrollWidth ≤ clientWidth (the fade lies).`,check(e){let t=[];for(let n of e.els)J2(n,e.css(n))&&(n.scrollWidth>n.clientWidth||t.push(W2(this,n,`mask-image fade but scrollWidth ${n.scrollWidth} ≤ clientWidth ${n.clientWidth}`)));return t}},p4={id:`scrollbar-flush`,part:`Part 5`,severity:`warn`,description:`Part 5: scrollables carry asymmetric right padding so content clears the scrollbar — padding-right < 8px while overflowing vertically with content reaching the right edge.`,check(e){let t=[];for(let n of e.els){let r=e.css(n);if(![r.overflowY,r.overflow].some(e=>e===`auto`||e===`scroll`)||n.scrollHeight<=n.clientHeight)continue;let i=parseFloat(r.paddingRight)||0;if(i>=8)continue;let a=G2(n);Array.from(n.children).some(e=>{let t=G2(e);return a.right-t.right<=4})&&t.push(W2(this,n,`padding-right ${i}px (<8px) with content flush to the scrollbar`))}return t}},m4=/^("?(Geist|Geist Mono)"?|ui-monospace|ui-sans-serif|-apple-system|system-ui)/i,h4={id:`font-family`,part:`Part 5`,severity:`warn`,description:`Part 5: Geist / Geist Mono ONLY — computed font-family does not start with the Geist / ui-monospace fallback chain.`,check(e){let t=[];for(let n of e.els){if(!O4(n))continue;let r=e.css(n).fontFamily;r&&(m4.test(r.trim())||t.push(W2(this,n,`font-family: ${r}`)))}return t}},g4={id:`uppercase-label`,part:`§25`,severity:`error`,description:`§25: group/section labels are sentence-case — never uppercase (text-transform: uppercase on small <13px text).`,check(e){let t=[];for(let n of e.els){if(!O4(n))continue;let r=e.css(n);r.textTransform===`uppercase`&&((parseFloat(r.fontSize)||0)>=13||t.push(W2(this,n,`text-transform: uppercase at ${r.fontSize}`)))}return t}},_4={id:`hardcoded-status-hex`,part:`Part 5`,severity:`warn`,description:`Part 5: raw hex only for the status trio (#50E3C2/#EE0000/#F5A623) — a saturated non-token color on small UI text.`,check(e){let t=[];for(let n of e.els){if(!O4(n))continue;let r=(n.getAttribute(`style`)??``).match(/#[0-9a-fA-F]{6}/g)??[],i=e.css(n);if((parseFloat(i.fontSize)||0)>=16)continue;for(let e of r)Z2.has(e.toLowerCase())||t.push(W2(this,n,`hardcoded ${e} (not the brand status trio)`));let a=q2(i.color);if(a&&r.length===0){let[e,r,o]=a.split(`,`).map(e=>parseFloat(e));Number.isFinite(e)&&k4(e,r,o)&&t.push(W2(this,n,`saturated non-token color ${i.color} on small UI text`))}}return t}},v4={id:`editor-shadow`,part:`Part 5`,severity:`error`,description:`Part 5: editor surfaces are FLAT — box-shadow that is not a 0.5px hairline ring / approved popover/card/input token shadow.`,check(e){let t=[];if(!(e.root.querySelector?.(`[data-editor-surface]`)||typeof location<`u`&&/\/editor\//.test(location.pathname)))return t;for(let n of e.els){if(!n.closest(`[data-editor-surface]`)&&!/\/editor\//.test(typeof location<`u`?location.pathname:``))continue;let r=e.css(n).boxShadow;!r||r===`none`||A4(r)||t.push(W2(this,n,`box-shadow: ${r}`))}return t}},y4={id:`focusring-clip`,part:`§24`,severity:`warn`,description:`§24/Part 5: focus rings never clip — a focusable element whose nearest overflow-hidden ancestor sits <4px from its border box.`,check(e){let t=[];for(let n of e.els){if(!n.matches(Q2)&&n.getAttribute(`tabindex`)==null)continue;let r=n.parentElement;for(;r;){let t=e.css(r);if([t.overflow,t.overflowX,t.overflowY].some(e=>e===`hidden`))break;r=r.parentElement}if(!r)continue;let i=G2(n),a=G2(r);if(i.width===0&&i.height===0)continue;let o=Math.min(i.left-a.left,a.right-i.right,i.top-a.top,a.bottom-i.bottom);o>=4||t.push(W2(this,n,`overflow-hidden ancestor ${o.toFixed(1)}px from border box — focus ring will clip`))}return t}},b4={id:`fixed-width-in-pane`,part:`§24`,severity:`warn`,description:`§24: no fixed field widths in resizable panes — w-[Npx] (N ≥ 200) inside a [data-panel] / flex-basis sibling clips at the pane edge.`,check(e){let t=[];for(let n of e.els){if(!n.closest(`[data-panel]`))continue;let e=typeof n.className==`string`?n.className:``,r=n.getAttribute(`style`)??``,i=e.match(/w-\[(\d+)px\]/)??r.match(/(?:^|;|\s)width\s*:\s*(\d+)px/);if(!i)continue;let a=parseFloat(i[1]);a<200||t.push(W2(this,n,`fixed width ${a}px inside a resizable pane — use w-full max-w-[${a}px]`))}return t}},x4={id:`menu-icons-all-or-none`,part:`§21`,severity:`error`,description:`§21: within one menu ALL items carry a leading icon or NONE do — a mixed set reads broken.`,check(e){let t=[],n=Array.from(e.root.querySelectorAll(`[role="menu"]`));for(let e of n){let n=Array.from(e.querySelectorAll(`[role="menuitem"]`));if(n.length<2)continue;let r=n.filter(e=>e.querySelector(`svg`)).length;r===0||r===n.length||t.push(W2(this,e,`${r}/${n.length} menu items have a leading icon`))}return t}},S4={id:`menu-icon-mixed-weight`,part:`§21`,severity:`warn`,description:`§21: menu icons are ONE stroke family — some filled (fill=currentColor) and some stroke-based, or rendered sizes differing >2px, mixes two design systems.`,check(e){let t=[],n=Array.from(e.root.querySelectorAll(`[role="menu"]`));for(let e of n){let n=Array.from(e.querySelectorAll(`[role="menuitem"] svg`));if(n.length<2)continue;let r=0,i=0,a=[];for(let e of n){Array.from(e.querySelectorAll(`path, circle, rect, polygon`)).some(e=>{let t=(e.getAttribute(`fill`)??``).toLowerCase();return t===`currentcolor`||t&&t!==`none`})?r++:i++;let t=G2(e);a.push(Math.max(t.width,t.height))}let o=Math.max(...a),s=Math.min(...a),c=r>0&&i>0,l=o>0&&o-s>2;!c&&!l||t.push(W2(this,e,c?`${r} filled + ${i} stroke-based icons in one menu`:`icon sizes differ by ${(o-s).toFixed(1)}px`))}return t}},C4={id:`chrome-selectable`,part:`Part 5`,severity:`warn`,description:`Part 5: chrome (rails/pills/tabs) is select-none — a rail/pill/tab without user-select:none.`,check(e){let t=[];for(let n of e.els){if(!(n.matches(`[role="tab"]`)||n.closest(`[role="tablist"], [data-rail], nav`)||/\bpill\b/.test(typeof n.className==`string`?n.className:``)))continue;let r=e.css(n).userSelect||e.css(n).webkitUserSelect;r!==`none`&&t.push(W2(this,n,`chrome element without user-select:none (user-select: ${r||`auto`})`))}return t}},w4={id:`cursor-mismatch`,part:`Part 5`,severity:`warn`,description:`Part 5: cursor semantics — buttons get pointer, static text gets default. A button with cursor:text, or static text with cursor:pointer and no interactive ancestor.`,check(e){let t=[];for(let n of e.els){let r=e.css(n).cursor;if(n.matches(`button, [role="button"]`)&&r===`text`){t.push(W2(this,n,`interactive control with cursor:text`));continue}if(r===`pointer`&&n.matches(`p, h1, h2, h3, h4, h5, h6, span, label`)){if(n.closest(`button, a, [role="button"], [onclick]`)||n.matches(`button, a, [role="button"]`))continue;t.push(W2(this,n,`static ${n.tagName.toLowerCase()} with cursor:pointer and no interactive ancestor`))}}return t}};function T4(e){let t=e.transitionProperty.split(`,`).map(e=>e.trim()).filter(Boolean);return t.length===1&&t[0]===`none`?[]:t}var E4=[i4,a4,o4,s4,c4,l4,u4,d4,f4,p4,h4,g4,_4,v4,y4,b4,x4,S4,C4,w4,{id:`transition-all`,part:`§42`,severity:`error`,description:`§42: never transition-all — scope to what changes (transition-colors / transition-[transform,...]).`,check(e){let t=[];for(let n of e.els){if(!n.matches(Q2))continue;let r=T4(e.css(n));r.includes(`all`)&&(v2(n,r)||t.push(W2(this,n,`transition-property: all`)))}return t}},{id:`transition-paint-prop`,part:`§42`,severity:`error`,description:`§42: never transition layout/paint props (box-shadow, width, height, top/left, margin, padding) — they reflow/repaint every frame; focus rings SNAP, shadows animate a pseudo-element opacity.`,check(e){let t=[];for(let n of e.els){let r=T4(e.css(n)),i=p2(r).filter(e=>e!==`all (includes layout/paint props)`);i.length!==0&&(v2(n,r)||t.push(W2(this,n,`transitions layout/paint props: ${i.join(`, `)}`)))}return t}},{id:`transition-too-slow`,part:`§42`,severity:`error`,description:`§42: interaction feedback is ≤100ms (duration-75 for small controls) — the 100ms theme default is fine; an explicit duration-150+ crept in.`,check(e){let t=[];for(let n of e.els){if(!n.matches(Q2))continue;let r=e.css(n),i=T4(r);if(i.length===0||v2(n,i))continue;let a=d2(r.transitionDuration),o=Math.max(0,...a);o<=100||t.push(W2(this,n,`transition-duration ${o}ms (>100ms) on [${i.join(`, `)}]`))}return t}},{id:`ease-in-feedback`,part:`§42`,severity:`warn`,description:`§42: house curve is cubic-bezier(.2,0,.1,1) ease-out — never ease-in / ease-in-out (or an ease-in-shaped bezier) on feedback.`,check(e){let t=[];for(let n of e.els){if(!n.matches(Q2))continue;let r=e.css(n),i=T4(r);if(i.length===0||v2(n,i))continue;let a=m2(r.transitionTimingFunction);a&&t.push(W2(this,n,`transition-timing-function: ${a}`))}return t}},{id:`press-instant-rule-missing`,part:`§42`,severity:`error`,description:"§42: the global press-instant rule (globals.css) must exist — `button:active{transition-duration:0s}` (or transition:none). Absent = press feedback animates instead of snapping.",check(e){let t=e.root.styleSheets?e.root:document,n=!1,r=e=>{for(let t of Array.from(e)){if(n)return;let e=t;if(e.cssRules&&e.cssRules.length){r(e.cssRules);continue}let i=t,a=i.selectorText;if(a&&/:active\b/.test(a)&&/(^|[\s,])(button|a|\[role=("|')?(button|tab|menuitem|option)("|')?\])/i.test(a))try{let e=i.style.transitionDuration,t=i.style.transition;if(e===`0s`||/(^|\s)none(\s|$)/.test(t)||/\b0s\b/.test(t)){n=!0;return}}catch{}}};try{for(let e of Array.from(t.styleSheets)){if(n)break;try{r(e.cssRules)}catch{}}}catch{}if(n)return[];let i=e.root.documentElement??e.els[0]??document.documentElement;return[W2(this,i,"no `button:active { transition-duration: 0s }` rule on this page")]}}],D4=[];function O4(e){for(let t of Array.from(e.childNodes))if(t.nodeType===3&&(t.textContent??``).trim().length>0)return!0;return!1}function k4(e,t,n){let r=Math.max(e,t,n);return r<40?!1:r-Math.min(e,t,n)>60}function A4(e){return!!(/\b0px\s+0px\s+0px\s+0?\.?5px\b/.test(e)||/\b0px?\s+0px?\s+0px?\s+0?\.?5px\b/.test(e))}function j4(e=typeof document<`u`?document:{}){let t=new Map,n=e=>{let n=t.get(e);return n||(n=getComputedStyle(e),t.set(e,n)),n};r4=n;let r=Array.from(e.querySelectorAll(`*`)),i=[],a=e.documentElement??null,o=e.body??null;for(let e of r){if(e===a||e===o||e.closest(`#linear-grab-root, #claude-agent-glow-border, [id^="react-scan"]`))continue;let t=G2(e);t.width===0&&t.height===0&&e.children.length===0||i.push(e)}let s={root:e,els:i,css:n},c=[];for(let e of[...E4,...D4])try{c.push(...e.check(s))}catch{}return r4=e=>getComputedStyle(e),c}function M4(e){let t=new Map;for(let n of e){let e=t.get(n.ruleId);e?e.push(n):t.set(n.ruleId,[n])}let n=Array.from(t.entries()).sort((e,t)=>{let n=e[1][0].severity===`error`?0:1,r=t[1][0].severity===`error`?0:1;return n===r?t[1].length===e[1].length?e[0].localeCompare(t[0]):t[1].length-e[1].length:n-r}),r=e.length,i=e.filter(e=>e.severity===`error`).length,a=new Set(e.map(e=>e.page).filter(Boolean)).size>1,o=[`# Slop scan — ${i} error${i===1?``:`s`}, ${r-i} warn (${r} total)`,``];for(let[e,t]of n){let n=t[0];o.push(`## ${e} — ${n.severity} ×${t.length} [${n.part}]`),o.push(n.description);for(let e of t)o.push(`- ${a&&e.page?`\`${e.page}\` `:``}\`${e.selector}\` — ${e.evidence}`);o.push(``)}return o.join(`
274
- `)}function N4(e){return[`Below is a design-system SLOP report from my running app — each finding is a`,"live-DOM violation of the Linear/Protocolbase primitives contract (`Linear","-primitives.md`). Every rule cites its §id. Goal: zero errors. Rules:",``,`1. Fix at the TOKEN / VARIANT level, not the call sites. Most of these come`,` from shared row/button/menu variants — change --row-radius, --selected,`,` .pb-row-action, the Button/Input variant, or the globals.css §42 rules —`,` not one component at a time.`,`2. Cite the primitives §id in your fix (each finding carries it). Radius →`,` §40 vocabulary {8,12,16,full}; active fill → §11 var(--selected); menus →`,` §21 all-or-none icons + one stroke family; uppercase labels → §25;`,` editor flatness → Part 5; scrollers → §0–1 virtualize + truthful fade.`,`3. §42 group (transition-all / paint-prop / too-slow / ease-in / press-`,` instant): scope transitions to what changes, drop box-shadow/width/height`,` from transition lists, keep feedback ≤100ms (duration-75 small controls),`,` use ease-out (cubic-bezier(.2,0,.1,1)), and keep the global`," `button:active{transition-duration:0s}` press-instant rule.",`4. Do NOT touch EXEMPT intentional motion — popover/menu/dialog entry-exit,`,` svg icon micro-motion, and panel width/height transitions are §42-blessed.`,` The scan already excludes them; do not "fix" them.`,`5. 'unverifiable' warnings mean the token collapsed to the anti-pattern this`,` theme — verify the intent in BOTH themes, do not just silence it.`,`6. PROOF REQUIRED: after the change I will re-run the scan — it must show 0`,` errors. State what you changed per token/variant; do not claim done blind.`,``,`---`,``,M4(e)].join(`
275
- `)}var P4=[],F4=new Set;function I4(e){return F4.add(e),e(P4),()=>void F4.delete(e)}function L4(){P4=[];for(let e of F4)e(P4)}function R4(){let e=location.pathname,t=j4(document).map(t=>({...t,page:e}));P4=[...t,...P4.filter(t=>t.page!==e)];for(let e of F4)e(P4);return z4(t),t}function z4(e){if(e.length===0)return;let t=Date.now(),n=e.slice(0,200).map(({el:e,...n})=>({kind:`slop-scan`,at:t,...n}));JO().then(e=>fetch(`${e}/scan/events`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({events:n}),keepalive:!0})).catch(()=>{})}var B4=!1;try{B4=localStorage.getItem(`linear-grab:slop-live`)===`1`}catch{}var V4=new Set;function H4(){return B4}function U4(e){B4=e;try{localStorage.setItem(`linear-grab:slop-live`,e?`1`:`0`)}catch{}for(let t of V4)t(e);e&&K4(300)}function W4(e){return V4.add(e),e(B4),()=>void V4.delete(e)}var G4=null;function K4(e){G4&&clearTimeout(G4),G4=setTimeout(()=>{if(G4=null,B4)try{R4()}catch{}},e)}var q4=!1;function J4(){if(q4||typeof window>`u`)return;q4=!0;let e=location.pathname;setInterval(()=>{location.pathname!==e&&(e=location.pathname,B4&&K4(1e3))},500)}var Y4=P(`<span class="inline-block min-w-[7ch] text-center">Extract`),X4=P(`<div class="relative flex flex-col gap-2 pl-4"><div class="bg-border absolute top-1 bottom-1 left-[5px] w-px"aria-hidden>`),Z4=P(`<span class="text-success text-[12px] leading-none">✓`),Q4=P(`<svg width=12 height=12 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round aria-hidden><path d="M4 4l8 8M12 4l-8 8">`),$4=P(`<div class="flex items-center justify-end gap-1 px-1">`),e3=P(`<span class="relative inline-flex items-center justify-center"><svg width=12 height=12 viewBox="0 0 16 16"fill=currentColor aria-hidden><rect x=3.5 y=3 width=3.2 height=10 rx=1></rect><rect x=9.3 y=3 width=3.2 height=10 rx=1></rect></svg><span class="bg-success absolute -top-0.5 -right-0.5 size-1.5 animate-pulse rounded-full"aria-hidden>`),t3=P(`<span class="inline-block min-w-[5ch] text-center">Audit`),n3=P(`<div class="flex max-h-72 flex-col gap-1.5 overflow-y-auto pr-2">`),r3=P(`<span class="text-[12px] leading-none">✓`),i3=P(`<div class="flex items-center gap-1 px-1">`),a3=P(`<span class="text-text-faint font-normal tabular-nums"> · <!> pages`),o3=P(`<span class="inline-block min-w-[4ch] text-center">Scan`),s3=P(`<div class="flex items-center gap-1 px-1"><button class="border-border cursor-pointer rounded-full border px-2 py-0.5 text-[10px] font-medium tabular-nums"> errors</button><button class="border-border cursor-pointer rounded-full border px-2 py-0.5 text-[10px] font-medium tabular-nums"> warns`),c3=P(`<div class="flex h-full flex-col gap-3 overflow-y-auto pt-3 pb-4 pr-3 pl-2"><div class="flex items-center justify-between gap-2 px-1"><div class=min-w-0><p class="text-text text-[12.5px] font-semibold">Design genomes</p><p class="text-text-faint text-[10.5px] leading-snug">Point at a component → get its structure, tokens and interaction states as a spec you can hand to an agent.</p></div></div><div class="border-border mt-1 flex flex-col gap-2 border-t pt-3"><div class="flex items-center justify-between gap-2 px-1"><div class=min-w-0><p class="text-text text-[12.5px] font-semibold">CSS slowdowns</p><p class="text-text-faint text-[10.5px] leading-snug">Transitions/delays over the 100ms house cap (§42) on interactive elements — feedback that animates instead of being instant. Live hits appear as you use the app; Audit sweeps the whole page.</p></div><div class="flex shrink-0 items-center gap-1"></div></div></div><div class="border-border mt-1 flex flex-col gap-2 border-t pt-3"><div class="flex items-center justify-between gap-2 px-1"><div class=min-w-0><p class="text-text text-[12.5px] font-semibold">Slop scan</p><p class="text-text-faint text-[10.5px] leading-snug">Design-contract drift — Linear-primitives rules checked against the live DOM. Results accumulate per page as you navigate; re-scanning a page overwrites only that page's findings.</p></div><div class="flex shrink-0 items-center gap-1">`),l3=P(`<p class="text-text mt-1 text-[11px] font-semibold">Interaction states`),u3=P(`<svg width=12 height=12 viewBox="0 0 16 16"aria-hidden><rect x=3.5 y=3.5 width=9 height=9 rx=1.5 fill=currentColor>`),d3=P(`<span class="text-warn text-[10.5px] font-medium tabular-nums">s · <!> states`),f3=P(`<div class="border-border flex flex-col gap-2 border-t px-2.5 py-2"><p class="text-text-faint truncate text-[10px]"></p><div class="flex max-h-64 flex-col gap-2 overflow-y-auto pr-2"></div><div class="flex items-center gap-1">`),p3=P(`<div class=relative><span class="border-border bg-surface absolute top-3 -left-[13.5px] size-[9px] rounded-full border"aria-hidden></span><div class="bg-surface border-border flex flex-col rounded-lg border"><button class="flex w-full cursor-pointer items-center gap-2 px-2.5 py-2 text-left"><span class="text-accent min-w-0 truncate font-mono text-[12px]"></span><span class="text-text-faint ml-auto shrink-0 text-[10.5px] tabular-nums"> roles<!> · </span><svg width=10 height=10 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.5 class="text-text-faint shrink-0 transition-transform"aria-hidden><path d="m4 6 4 4 4-4">`),m3=P(`<span class=text-text-faint> ×`),h3=P(`<div class="flex flex-col gap-0.5"><p class="text-text text-[11px] font-medium">`),g3=P(`<span class=text-accent> ← var(<!>)`),_3=P(`<p class="text-text-dim font-mono text-[10px] leading-snug break-all">: `),v3=P(`<div class="flex flex-col gap-0.5"><p class="text-warn text-[10.5px] font-medium"> — `),y3=P(`<p class="text-text-dim font-mono text-[10px] leading-snug break-all">: <!> → `),b3=P(`<svg width=13 height=13 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round aria-hidden><circle cx=8 cy=8 r=6></circle><circle cx=8 cy=8 r=2 fill=currentColor stroke=none>`),x3=P(`<svg width=13 height=13 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.5 stroke-linejoin=round aria-hidden><rect x=5.5 y=5.5 width=9 height=9 rx=1.5></rect><path d="M10.5 5.5v-2a2 2 0 0 0-2-2h-5a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h2">`),S3=P(`<svg width=12 height=12 viewBox="0 0 16 16"fill=currentColor aria-hidden><path d="M4.5 2.5v11l9-5.5z">`),C3=P(`<p class="text-text-faint px-1 text-[10.5px]">Nothing caught yet — interact with the app, or run Audit.`),w3=P(`<span class="text-text-dim font-mono text-[10px] break-all">`),T3=P(`<span class="text-danger text-[10px] leading-snug">⚠ layout/paint transition: `),E3=P(`<span class="text-danger text-[10px] leading-snug">⚠ ease-in easing: `),D3=P(`<div class="bg-surface border-border flex flex-col gap-0.5 rounded-lg border p-2"><div class="flex items-center gap-2"><span class="text-warn shrink-0 text-[10px] font-semibold tracking-wide uppercase"></span><span class="text-accent min-w-0 truncate font-mono text-[11.5px]"></span><span class="text-text ml-auto shrink-0 text-[11px] font-medium tabular-nums">ms</span></div><span class="text-text-dim text-[10px] leading-snug"></span><span class="text-text-faint text-[10px] leading-snug">`),O3=P(`<svg width=13 height=13 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden><path d="M8 1.5 9.6 6l4.4 1.6L9.6 9.2 8 13.7 6.4 9.2 2 7.6 6.4 6Z"></path><path d="M13 11.5l.6 1.7 1.7.6-1.7.6-.6 1.7-.6-1.7-1.7-.6 1.7-.6Z">`),k3=P(`<p class="text-text-faint px-1 text-[10.5px]">No scan yet — click Scan to audit this page against the contract.`),A3=P(`<div class="border-border flex flex-col gap-1 border-t px-2 py-1.5"><p class="text-text-dim text-[10px] leading-snug">`),j3=P(`<div class="bg-surface border-border flex flex-col rounded-lg border"><button class="flex w-full cursor-pointer items-center gap-2 px-2 py-1.5 text-left"><span class="size-1.5 shrink-0 rounded-full"aria-hidden></span><span class="text-accent min-w-0 truncate font-mono text-[11.5px]"></span><span class="text-text-faint ml-auto shrink-0 text-[10.5px] tabular-nums">×</span><svg width=10 height=10 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.5 class="text-text-faint shrink-0 transition-transform"aria-hidden><path d="m4 6 4 4 4-4">`),M3=P(`<span class=text-accent> `),N3=P(`<button class="hover:bg-surface-2 flex w-full cursor-pointer flex-col gap-0.5 rounded px-1 py-0.5 text-left"title="Reveal on the page"><span class="text-text min-w-0 truncate font-mono text-[10.5px]"></span><span class="text-text-faint font-mono text-[10px] leading-snug break-all">`),P3=`linear-grab:genomes:v1`,F3=30;function I3(){try{return JSON.parse(localStorage.getItem(P3)??`[]`)}catch{return[]}}function L3(e){try{localStorage.setItem(P3,JSON.stringify(e.slice(0,F3)))}catch{}}var R3=new Map;function z3(e){let t=e.el?.deref();if(!(t instanceof HTMLElement)||!t.isConnected)return!1;t.scrollIntoView({block:`center`,behavior:`smooth`});let n=t.style.outline,r=t.style.outlineOffset;return t.style.outline=`2px solid #e5a13a`,t.style.outlineOffset=`2px`,setTimeout(()=>{t.style.outline=n,t.style.outlineOffset=r},1400),!0}function B3(){let[e,t]=T(I3()),[n,r]=T(null),[i,a]=T(null),[o,s]=T(null),[c,l]=T(null),[u,d]=T(null),[f,p]=T({active:!1,msLeft:0,total:0,byTrigger:{}});ie(i2(p));let[m,h]=T([]);ie(j2(h));let[g,_]=T(F2());ie(L2(_));let[v,y]=T(!1),[b,x]=T(!1),S=async()=>{y(!0);try{await V2()}finally{y(!1)}},C=async()=>{try{await navigator.clipboard.writeText(U2(m())),x(!0),setTimeout(()=>x(!1),1600)}catch{l(`Clipboard was blocked — click Copy again.`)}},[w,E]=T(!1),O=async()=>{try{await navigator.clipboard.writeText(H2(m())),E(!0),setTimeout(()=>E(!1),1600)}catch{l(`Clipboard was blocked — click Copy again.`)}},[k,ee]=T([]);ie(I4(ee));let[A,j]=T(H4());ie(W4(j));let[te,ne]=T(!1),[re,ae]=T(null),[oe,se]=T(!0),[ce,le]=T(!0),[ue,de]=T(!1),[fe,pe]=T(!1),me=()=>{l(null),ne(!0);try{R4(),ae(null)}catch(e){l(e instanceof Error?e.message:String(e))}finally{ne(!1)}},he=()=>{L4(),ae(null)},ge=()=>new Set(k().map(e=>e.page)).size,_e=()=>k().filter(e=>e.severity===`error`?oe():ce()),ve=()=>{let e=new Map;for(let t of _e()){let n=e.get(t.ruleId);n?n.push(t):e.set(t.ruleId,[t])}return[...e.values()].sort((e,t)=>Number(t[0].severity===`error`)-Number(e[0].severity===`error`)||t.length-e.length)},ye=()=>k().filter(e=>e.severity===`error`).length,be=()=>k().length-ye(),xe=async()=>{try{await navigator.clipboard.writeText(M4(_e())),de(!0),setTimeout(()=>de(!1),1600)}catch{l(`Clipboard was blocked — click Copy again.`)}},Se=async()=>{try{await navigator.clipboard.writeText(N4(_e())),pe(!0),setTimeout(()=>pe(!1),1600)}catch{l(`Clipboard was blocked — click Copy again.`)}},Ce=e=>{t(e),L3(e)},we=async()=>{l(null),a(`extract`),window.dispatchEvent(new CustomEvent(BZ));try{let t=await u2();if(!t)return;let n=await e2(t),i=Date.now();R3.set(i,new WeakRef(t)),Ce([{id:i,genome:n},...e()]),r(i)}catch(e){l(e instanceof Error?e.message:String(e))}finally{a(null),oj(`design`),window.dispatchEvent(new CustomEvent(VZ))}},Te=async t=>{l(null),a(t.id),window.dispatchEvent(new CustomEvent(BZ));try{let n=R3.get(t.id)?.deref()??null;if(!n||!n.isConnected){if(n=await u2(),!n)return;R3.set(t.id,new WeakRef(n))}let r=await c2(n,8e3,e=>s(Math.ceil(e/1e3)));r.length===0&&l(`No state changes captured — hover/open the component while the 8s window runs.`),Ce(e().map(e=>e.id===t.id?{...e,genome:{...e.genome,states:[...e.genome.states,...r]}}:e))}catch(e){l(e instanceof Error?e.message:String(e))}finally{a(null),s(null),oj(`design`),window.dispatchEvent(new CustomEvent(VZ))}},Ee=async e=>{try{await navigator.clipboard.writeText(l2(e.genome)),d(e.id),setTimeout(()=>d(null),1600)}catch{l(`Clipboard was blocked — click Copy again.`)}},De=t=>{R3.delete(t),Ce(e().filter(e=>e.id!==t))},[Oe,ke]=T(!1),Ae=async()=>{try{let t=e().map(e=>l2(e.genome)).join(`
273
+ `)}function W2(e,t,n){return{ruleId:e.id,part:e.part,severity:e.severity,description:e.description,selector:y2(t),evidence:n,el:typeof WeakRef<`u`?new WeakRef(t):void 0}}function G2(e){return e.getBoundingClientRect()}function K2(e){return e.split(`/`)[0].trim().split(/\s+/).filter(Boolean).map(e=>e.endsWith(`px`)?parseFloat(e):NaN)}function q2(e){let t=e.match(/rgba?\(([^)]+)\)/);return t?t[1].split(`,`).map(e=>e.trim()).join(`,`):null}function J2(e,t){let n=t,r=n.maskImage||n.webkitMaskImage||``;if(r&&r!==`none`)return r;let i=(e.getAttribute(`style`)??``).match(/(?:^|;|\s)(?:-webkit-)?mask-image\s*:\s*([^;]+)/i);return i&&i[1].trim()&&i[1].trim()!==`none`?i[1].trim():``}var Y2=new Set([0,8,12,16]),X2={light:q2(`rgb(240, 240, 241)`),dark:q2(`rgb(35, 35, 37)`)},Z2=new Set([`#50e3c2`,`#ee0000`,`#f5a623`]),Q2=`button, a, [role="button"], [role="tab"], [role="menuitem"], [role="option"], input, textarea, select`;function $2(e){let t=[],n=e=>{for(let r of Array.from(e)){let e=r;if(e.cssRules&&e.cssRules.length){n(e.cssRules);continue}let i=r.selectorText;i&&i.includes(`:hover`)&&t.push(i.replace(/:hover/g,``))}};for(let t of Array.from(e.styleSheets))try{n(t.cssRules)}catch{}return t}function e4(e,t){for(let n of t)if(n.trim())try{if(e.matches(n))return!0}catch{}return!1}function t4(e){return!e.matches(`button, [role="button"]`)||e.querySelectorAll(`svg`).length===0?!1:(e.textContent??``).trim().length===0}function n4(e){let t=e.parentElement;for(;t;){try{let e=r4(t).overflowY;if(e===`auto`||e===`scroll`)return t}catch{}t=t.parentElement}return null}var r4=e=>getComputedStyle(e),i4={id:`radius-vocabulary`,part:`§40`,severity:`error`,description:`§40: radius vocabulary is {8, 12, 16, full} — never rounded-md/[4px]/[6px]/[10px]. Off-vocabulary radius.`,check(e){let t=[];for(let n of e.els){let r=e.css(n).borderRadius;if(!r||r===`0px`)continue;let i=K2(r);if(i.some(e=>Number.isNaN(e)))continue;let a=Math.max(...i);if(a===0)continue;let o=G2(n),s=Math.min(o.width||0,o.height||0);s>0&&a>=s/2-.5||i.every(e=>Y2.has(e))||t.push(W2(this,n,`border-radius: ${r}`))}return t}},a4={id:`row-radius-token`,part:`§40`,severity:`error`,description:`§40: list rows consume --row-radius (8px) or 0 — no bespoke per-surface row radius.`,check(e){let t=[];for(let n of e.els){let r=G2(n).height;if(r<26||r>50||!n4(n))continue;let i=n.parentElement;if(!i||Array.from(i.children).filter(e=>{let t=G2(e);return Math.abs(t.height-r)<2}).length<3)continue;let a=K2(e.css(n).borderRadius);if(a.some(e=>Number.isNaN(e)))continue;let o=Math.max(0,...a);o===0||o===8||t.push(W2(this,n,`row radius ${e.css(n).borderRadius} (want 0 or var(--row-radius)=8px)`))}return t}},o4={id:`active-fill-token`,part:`§11`,severity:`error`,description:`§11: active/selected fill must be var(--selected) (theme-safe) — never bg-secondary (#F0F0F1 / #232325).`,check(e){let t=[],n=null;try{let t=e.root.documentElement??document.documentElement;t&&(n=q2(e.css(t).getPropertyValue(`--selected`).trim()))}catch{}let r=[X2.light,X2.dark].filter(Boolean);if(n&&r.includes(n)){let t=e.root.documentElement??document.documentElement;return[W2({id:this.id,part:this.part,severity:`warn`,description:`§11: active-fill-token unverifiable — --selected resolves EQUAL to bg-secondary this theme; cannot distinguish the token from the anti-pattern.`},t??e.els[0],`--selected == bg-secondary (${n})`)]}for(let n of e.els){if(!(n.matches(`[role="tab"], [role="button"], [aria-selected], [role="option"]`)||n.closest(`[role="tablist"], [role="menu"], [data-rail], nav`)))continue;let i=q2(e.css(n).backgroundColor);i&&r.includes(i)&&t.push(W2(this,n,`background bg-secondary (${e.css(n).backgroundColor}) — use var(--selected)`))}return t}},s4={id:`inline-style-state`,part:`§40`,severity:`error`,description:`§40: the shared row-action class owns ALL visual states; inline styles carry LAYOUT ONLY — an inline background/color kills the class state.`,check(e){let t=[];for(let n of e.els){let e=typeof n.className==`string`?n.className:``;if(!/pb-row-action|row-action/.test(e))continue;let r=n.getAttribute(`style`)??``;/(^|;|\s)(background|color)\s*:/.test(r)&&t.push(W2(this,n,`inline style="${r}" on a row-action element`))}return t}},c4={id:`icon-button-no-hover`,part:`§40`,severity:`warn`,description:`§40/Part 10: every interactive control changes color on hover — icon-only button with no :hover rule and no .pb-row-action.`,check(e){let t=[],n=$2(e.root.styleSheets?e.root:document);for(let r of e.els){if(!t4(r))continue;let i=typeof r.className==`string`?r.className:``;/pb-row-action|row-action/.test(i)||r.hasAttribute(`data-framer-appear-id`)||Array.from(r.attributes).some(e=>e.name.startsWith(`data-framer`))||e.css(r).willChange.includes(`transform`)||e4(r,n)||t.push(W2(this,r,`icon-only ${r.tagName.toLowerCase()} with no hover rule / .pb-row-action`))}return t}},l4={id:`icon-button-no-tooltip`,part:`§7`,severity:`warn`,description:`§7: every icon-only button gets the shared Tooltip — needs aria-describedby / data-slot="tooltip-trigger" (menu-row title exempt).`,check(e){let t=[];for(let n of e.els)t4(n)&&(n.hasAttribute(`aria-describedby`)||n.getAttribute(`data-slot`)===`tooltip-trigger`||n.closest(`[data-slot="tooltip-trigger"]`)||n.closest(`[role="menuitem"]`)&&n.hasAttribute(`title`)||t.push(W2(this,n,`icon-only ${n.tagName.toLowerCase()} with no tooltip trigger / aria-describedby`)));return t}},u4={id:`unvirtualized-scroller`,part:`§0`,severity:`error`,description:`§0: every dynamic-length scrolling list virtualizes — a tall scroller with 60+ direct children is unvirtualized.`,check(e){let t=[];for(let n of e.els){let r=e.css(n);if(![r.overflowY,r.overflowX,r.overflow].some(e=>e===`auto`||e===`scroll`)||n.scrollHeight<=2*n.clientHeight)continue;let i=n.children.length;i<=60||t.push(W2(this,n,`${i} direct children, scrollHeight ${n.scrollHeight} > 2×clientHeight ${n.clientHeight}`))}return t}},d4={id:`scroll-no-fade`,part:`§1`,severity:`warn`,description:`§1: a horizontal scroller needs a truthful scroll fade — no scroll-fade-x/scroll-fade-x-js class and no mask-image.`,check(e){let t=[];for(let n of e.els){if(n.scrollWidth<=n.clientWidth+8)continue;let r=typeof n.className==`string`?n.className:``;/scroll-fade-x(-js)?/.test(r)||J2(n,e.css(n))||t.push(W2(this,n,`horizontal scroller (scrollWidth ${n.scrollWidth} > clientWidth ${n.clientWidth}) with no fade`))}return t}},f4={id:`phantom-fade`,part:`§1`,severity:`warn`,description:`§1: a fade must NEVER paint when nothing is hidden — mask-image present but scrollWidth ≤ clientWidth (the fade lies).`,check(e){let t=[];for(let n of e.els)J2(n,e.css(n))&&(n.scrollWidth>n.clientWidth||t.push(W2(this,n,`mask-image fade but scrollWidth ${n.scrollWidth} ≤ clientWidth ${n.clientWidth}`)));return t}},p4={id:`scrollbar-flush`,part:`Part 5`,severity:`warn`,description:`Part 5: scrollables carry asymmetric right padding so content clears the scrollbar — padding-right < 8px while overflowing vertically with content reaching the right edge.`,check(e){let t=[];for(let n of e.els){let r=e.css(n);if(![r.overflowY,r.overflow].some(e=>e===`auto`||e===`scroll`)||n.scrollHeight<=n.clientHeight)continue;let i=parseFloat(r.paddingRight)||0;if(i>=8)continue;let a=G2(n);Array.from(n.children).some(e=>{let t=G2(e);return a.right-t.right<=4})&&t.push(W2(this,n,`padding-right ${i}px (<8px) with content flush to the scrollbar`))}return t}},m4=/^("?(Geist|Geist Mono)"?|ui-monospace|ui-sans-serif|-apple-system|system-ui)/i,h4={id:`font-family`,part:`Part 5`,severity:`warn`,description:`Part 5: Geist / Geist Mono ONLY — computed font-family does not start with the Geist / ui-monospace fallback chain.`,check(e){let t=[];for(let n of e.els){if(!O4(n))continue;let r=e.css(n).fontFamily;r&&(m4.test(r.trim())||t.push(W2(this,n,`font-family: ${r}`)))}return t}},g4={id:`uppercase-label`,part:`§25`,severity:`error`,description:`§25: group/section labels are sentence-case — never uppercase (text-transform: uppercase on small <13px text).`,check(e){let t=[];for(let n of e.els){if(!O4(n))continue;let r=e.css(n);r.textTransform===`uppercase`&&((parseFloat(r.fontSize)||0)>=13||t.push(W2(this,n,`text-transform: uppercase at ${r.fontSize}`)))}return t}},_4={id:`hardcoded-status-hex`,part:`Part 5`,severity:`warn`,description:`Part 5: raw hex only for the status trio (#50E3C2/#EE0000/#F5A623) — a saturated non-token color on small UI text.`,check(e){let t=[];for(let n of e.els){if(!O4(n))continue;let r=(n.getAttribute(`style`)??``).match(/#[0-9a-fA-F]{6}/g)??[],i=e.css(n);if((parseFloat(i.fontSize)||0)>=16)continue;for(let e of r)Z2.has(e.toLowerCase())||t.push(W2(this,n,`hardcoded ${e} (not the brand status trio)`));let a=q2(i.color);if(a&&r.length===0){let[e,r,o]=a.split(`,`).map(e=>parseFloat(e));Number.isFinite(e)&&k4(e,r,o)&&t.push(W2(this,n,`saturated non-token color ${i.color} on small UI text`))}}return t}},v4={id:`editor-shadow`,part:`Part 5`,severity:`error`,description:`Part 5: editor surfaces are FLAT — box-shadow that is not a 0.5px hairline ring / approved popover/card/input token shadow.`,check(e){let t=[];if(!(e.root.querySelector?.(`[data-editor-surface]`)||typeof location<`u`&&/\/editor\//.test(location.pathname)))return t;for(let n of e.els){if(!n.closest(`[data-editor-surface]`)&&!/\/editor\//.test(typeof location<`u`?location.pathname:``))continue;let r=e.css(n).boxShadow;!r||r===`none`||A4(r)||t.push(W2(this,n,`box-shadow: ${r}`))}return t}},y4={id:`focusring-clip`,part:`§24`,severity:`warn`,description:`§24/Part 5: focus rings never clip — a focusable element whose nearest overflow-hidden ancestor sits <4px from its border box.`,check(e){let t=[];for(let n of e.els){if(!n.matches(Q2)&&n.getAttribute(`tabindex`)==null)continue;let r=n.parentElement;for(;r;){let t=e.css(r);if([t.overflow,t.overflowX,t.overflowY].some(e=>e===`hidden`))break;r=r.parentElement}if(!r)continue;let i=G2(n),a=G2(r);if(i.width===0&&i.height===0)continue;let o=Math.min(i.left-a.left,a.right-i.right,i.top-a.top,a.bottom-i.bottom);o>=4||t.push(W2(this,n,`overflow-hidden ancestor ${o.toFixed(1)}px from border box — focus ring will clip`))}return t}},b4={id:`fixed-width-in-pane`,part:`§24`,severity:`warn`,description:`§24: no fixed field widths in resizable panes — w-[Npx] (N ≥ 200) inside a [data-panel] / flex-basis sibling clips at the pane edge.`,check(e){let t=[];for(let n of e.els){if(!n.closest(`[data-panel]`))continue;let e=typeof n.className==`string`?n.className:``,r=n.getAttribute(`style`)??``,i=e.match(/w-\[(\d+)px\]/)??r.match(/(?:^|;|\s)width\s*:\s*(\d+)px/);if(!i)continue;let a=parseFloat(i[1]);a<200||t.push(W2(this,n,`fixed width ${a}px inside a resizable pane — use w-full max-w-[${a}px]`))}return t}},x4={id:`menu-icons-all-or-none`,part:`§21`,severity:`error`,description:`§21: within one menu ALL items carry a leading icon or NONE do — a mixed set reads broken.`,check(e){let t=[],n=Array.from(e.root.querySelectorAll(`[role="menu"]`));for(let e of n){let n=Array.from(e.querySelectorAll(`[role="menuitem"]`));if(n.length<2)continue;let r=n.filter(e=>e.querySelector(`svg`)).length;r===0||r===n.length||t.push(W2(this,e,`${r}/${n.length} menu items have a leading icon`))}return t}},S4={id:`menu-icon-mixed-weight`,part:`§21`,severity:`warn`,description:`§21: menu icons are ONE stroke family — some filled (fill=currentColor) and some stroke-based, or rendered sizes differing >2px, mixes two design systems.`,check(e){let t=[],n=Array.from(e.root.querySelectorAll(`[role="menu"]`));for(let e of n){let n=Array.from(e.querySelectorAll(`[role="menuitem"] svg`));if(n.length<2)continue;let r=0,i=0,a=[];for(let e of n){Array.from(e.querySelectorAll(`path, circle, rect, polygon`)).some(e=>{let t=(e.getAttribute(`fill`)??``).toLowerCase();return t===`currentcolor`||t&&t!==`none`})?r++:i++;let t=G2(e);a.push(Math.max(t.width,t.height))}let o=Math.max(...a),s=Math.min(...a),c=r>0&&i>0,l=o>0&&o-s>2;!c&&!l||t.push(W2(this,e,c?`${r} filled + ${i} stroke-based icons in one menu`:`icon sizes differ by ${(o-s).toFixed(1)}px`))}return t}},C4={id:`chrome-selectable`,part:`Part 5`,severity:`warn`,description:`Part 5: chrome (rails/pills/tabs) is select-none — a rail/pill/tab without user-select:none.`,check(e){let t=[];for(let n of e.els){if(!(n.matches(`[role="tab"]`)||n.closest(`[role="tablist"], [data-rail], nav`)||/\bpill\b/.test(typeof n.className==`string`?n.className:``)))continue;let r=e.css(n).userSelect||e.css(n).webkitUserSelect;r!==`none`&&t.push(W2(this,n,`chrome element without user-select:none (user-select: ${r||`auto`})`))}return t}},w4={id:`cursor-mismatch`,part:`Part 5`,severity:`warn`,description:`Part 5: cursor semantics — buttons get pointer, static text gets default. A button with cursor:text, or static text with cursor:pointer and no interactive ancestor.`,check(e){let t=[];for(let n of e.els){let r=e.css(n).cursor;if(n.matches(`button, [role="button"]`)&&r===`text`){t.push(W2(this,n,`interactive control with cursor:text`));continue}if(r===`pointer`&&n.matches(`p, h1, h2, h3, h4, h5, h6, span, label`)){if(n.closest(`button, a, [role="button"], [onclick]`)||n.matches(`button, a, [role="button"]`))continue;t.push(W2(this,n,`static ${n.tagName.toLowerCase()} with cursor:pointer and no interactive ancestor`))}}return t}};function T4(e){let t=e.transitionProperty.split(`,`).map(e=>e.trim()).filter(Boolean);return t.length===1&&t[0]===`none`?[]:t}var E4=[i4,a4,o4,s4,c4,l4,u4,d4,f4,p4,h4,g4,_4,v4,y4,b4,x4,S4,C4,w4,{id:`transition-all`,part:`§42`,severity:`error`,description:`§42: never transition-all — scope to what changes (transition-colors / transition-[transform,...]).`,check(e){let t=[];for(let n of e.els){if(!n.matches(Q2))continue;let r=T4(e.css(n));r.includes(`all`)&&(v2(n,r)||t.push(W2(this,n,`transition-property: all`)))}return t}},{id:`transition-paint-prop`,part:`§42`,severity:`error`,description:`§42: never transition layout/paint props (box-shadow, width, height, top/left, margin, padding) — they reflow/repaint every frame; focus rings SNAP, shadows animate a pseudo-element opacity.`,check(e){let t=[];for(let n of e.els){let r=T4(e.css(n)),i=p2(r).filter(e=>e!==`all (includes layout/paint props)`);i.length!==0&&(v2(n,r)||t.push(W2(this,n,`transitions layout/paint props: ${i.join(`, `)}`)))}return t}},{id:`transition-too-slow`,part:`§42`,severity:`error`,description:`§42: interaction feedback is ≤100ms (duration-75 for small controls) — the 100ms theme default is fine; an explicit duration-150+ crept in.`,check(e){let t=[];for(let n of e.els){if(!n.matches(Q2))continue;let r=e.css(n),i=T4(r);if(i.length===0||v2(n,i))continue;let a=d2(r.transitionDuration),o=Math.max(0,...a);o<=100||t.push(W2(this,n,`transition-duration ${o}ms (>100ms) on [${i.join(`, `)}]`))}return t}},{id:`ease-in-feedback`,part:`§42`,severity:`warn`,description:`§42: house curve is cubic-bezier(.2,0,.1,1) ease-out — never ease-in / ease-in-out (or an ease-in-shaped bezier) on feedback.`,check(e){let t=[];for(let n of e.els){if(!n.matches(Q2))continue;let r=e.css(n),i=T4(r);if(i.length===0||v2(n,i))continue;let a=m2(r.transitionTimingFunction);a&&t.push(W2(this,n,`transition-timing-function: ${a}`))}return t}},{id:`press-instant-rule-missing`,part:`§42`,severity:`error`,description:"§42: the global press-instant rule (globals.css) must exist — `button:active{transition-duration:0s}` (or transition:none). Absent = press feedback animates instead of snapping.",check(e){let t=e.root.styleSheets?e.root:document,n=!1,r=e=>{for(let t of Array.from(e)){if(n)return;let e=t;if(e.cssRules&&e.cssRules.length){r(e.cssRules);continue}let i=t,a=i.selectorText;if(a&&/:active\b/.test(a)&&/(^|[\s,])(button|a|\[role=("|')?(button|tab|menuitem|option)("|')?\])/i.test(a))try{let e=i.style.transitionDuration,t=i.style.transition;if(e===`0s`||/(^|\s)none(\s|$)/.test(t)||/\b0s\b/.test(t)){n=!0;return}}catch{}}};try{for(let e of Array.from(t.styleSheets)){if(n)break;try{r(e.cssRules)}catch{}}}catch{}if(n)return[];let i=e.root.documentElement??e.els[0]??document.documentElement;return[W2(this,i,"no `button:active { transition-duration: 0s }` rule on this page")]}}],D4=[];function O4(e){for(let t of Array.from(e.childNodes))if(t.nodeType===3&&(t.textContent??``).trim().length>0)return!0;return!1}function k4(e,t,n){let r=Math.max(e,t,n);return r<40?!1:r-Math.min(e,t,n)>60}function A4(e){return!!(/\b0px\s+0px\s+0px\s+0?\.?5px\b/.test(e)||/\b0px?\s+0px?\s+0px?\s+0?\.?5px\b/.test(e))}function j4(e=typeof document<`u`?document:{}){let t=new Map,n=e=>{let n=t.get(e);return n||(n=getComputedStyle(e),t.set(e,n)),n};r4=n;let r=Array.from(e.querySelectorAll(`*`)),i=[],a=e.documentElement??null,o=e.body??null;for(let e of r){if(e===a||e===o||e.closest(`#linear-grab-root, #claude-agent-glow-border, [id^="react-scan"]`))continue;let t=G2(e);t.width===0&&t.height===0&&e.children.length===0||i.push(e)}let s={root:e,els:i,css:n},c=[];for(let e of[...E4,...D4])try{c.push(...e.check(s))}catch{}return r4=e=>getComputedStyle(e),c}function M4(e){let t=new Map;for(let n of e){let e=t.get(n.ruleId);e?e.push(n):t.set(n.ruleId,[n])}let n=Array.from(t.entries()).sort((e,t)=>{let n=e[1][0].severity===`error`?0:1,r=t[1][0].severity===`error`?0:1;return n===r?t[1].length===e[1].length?e[0].localeCompare(t[0]):t[1].length-e[1].length:n-r}),r=e.length,i=e.filter(e=>e.severity===`error`).length,a=new Set(e.map(e=>e.page).filter(Boolean)).size>1,o=[`# Slop scan — ${i} error${i===1?``:`s`}, ${r-i} warn (${r} total)`,``];for(let[e,t]of n){let n=t[0];o.push(`## ${e} — ${n.severity} ×${t.length} [${n.part}]`),o.push(n.description);for(let e of t){let t=e.component||e.source?` — ${[e.component,e.source].filter(Boolean).join(` @ `)}`:``;o.push(`- ${a&&e.page?`\`${e.page}\` `:``}\`${e.selector}\` — ${e.evidence}${t}`)}o.push(``)}return o.join(`
274
+ `)}function N4(e){return[`Below is a design-system SLOP report from my running app — each finding is a`,"live-DOM violation of the Linear/Protocolbase primitives contract (`Linear","-primitives.md`). Every rule cites its §id. Goal: zero errors. Rules:",``,`1. Fix at the TOKEN / VARIANT level, not the call sites. Most of these come`,` from shared row/button/menu variants — change --row-radius, --selected,`,` .pb-row-action, the Button/Input variant, or the globals.css §42 rules —`,` not one component at a time.`,`2. Cite the primitives §id in your fix (each finding carries it). Radius →`,` §40 vocabulary {8,12,16,full}; active fill → §11 var(--selected); menus →`,` §21 all-or-none icons + one stroke family; uppercase labels → §25;`,` editor flatness → Part 5; scrollers → §0–1 virtualize + truthful fade.`,`3. §42 group (transition-all / paint-prop / too-slow / ease-in / press-`,` instant): scope transitions to what changes, drop box-shadow/width/height`,` from transition lists, keep feedback ≤100ms (duration-75 small controls),`,` use ease-out (cubic-bezier(.2,0,.1,1)), and keep the global`," `button:active{transition-duration:0s}` press-instant rule.",`4. Do NOT touch EXEMPT intentional motion — popover/menu/dialog entry-exit,`,` svg icon micro-motion, and panel width/height transitions are §42-blessed.`,` The scan already excludes them; do not "fix" them.`,`5. 'unverifiable' warnings mean the token collapsed to the anti-pattern this`,` theme — verify the intent in BOTH themes, do not just silence it.`,"6. Findings carry `Component @ file:line` when the fiber source resolved.",` When one file:line repeats across many components it is the nearest-`,` debug-fiber fallback — locate the real code by the selector classes.`,`7. PROOF REQUIRED: after the change I will re-run the scan — it must show 0`,` errors. State what you changed per token/variant; do not claim done blind.`,``,`---`,``,M4(e)].join(`
275
+ `)}var P4=[],F4=new Set;function I4(e){return F4.add(e),e(P4),()=>void F4.delete(e)}function L4(){P4=[];for(let e of F4)e(P4)}function R4(){let e=location.pathname,t=j4(document).map(t=>({...t,page:e}));P4=[...t,...P4.filter(t=>t.page!==e)];for(let e of F4)e(P4);return z4(t).then(()=>{P4=[...P4];for(let e of F4)e(P4);B4(t)}),t}async function z4(e){let t=null;try{t=(await Promise.resolve().then(()=>(RZ(),AZ))).getGlobalApi()??null}catch{return}if(!t)return;let n=new Map;for(let t of e){let e=t.el?.deref();if(!e)continue;let r=n.get(e);r?r.push(t):n.set(e,[t])}let r=300;for(let[e,i]of n){if(r--<=0)break;let n=null,a=null;try{n=t.getDisplayName?.(e)??null}catch{}try{let n=await t.getSource?.(e);n?.filePath&&(a=`${n.filePath}${n.lineNumber==null?``:`:${n.lineNumber}`}`)}catch{}if(!(!n&&!a))for(let e of i)e.component=n,e.source=a}}function B4(e){if(e.length===0)return;let t=Date.now(),n=e.slice(0,200).map(({el:e,...n})=>({kind:`slop-scan`,at:t,...n}));JO().then(e=>fetch(`${e}/scan/events`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({events:n}),keepalive:!0})).catch(()=>{})}var V4=!1;try{V4=localStorage.getItem(`linear-grab:slop-live`)===`1`}catch{}var H4=new Set;function U4(){return V4}function W4(e){V4=e;try{localStorage.setItem(`linear-grab:slop-live`,e?`1`:`0`)}catch{}for(let t of H4)t(e);e&&q4(300)}function G4(e){return H4.add(e),e(V4),()=>void H4.delete(e)}var K4=null;function q4(e){K4&&clearTimeout(K4),K4=setTimeout(()=>{if(K4=null,V4)try{R4()}catch{}},e)}var J4=!1;function Y4(){if(J4||typeof window>`u`)return;J4=!0;let e=location.pathname;setInterval(()=>{location.pathname!==e&&(e=location.pathname,V4&&q4(1e3))},500)}var X4=P(`<span class="inline-block min-w-[7ch] text-center">Extract`),Z4=P(`<div class="relative flex flex-col gap-2 pl-4"><div class="bg-border absolute top-1 bottom-1 left-[5px] w-px"aria-hidden>`),Q4=P(`<span class="text-success text-[12px] leading-none">✓`),$4=P(`<svg width=12 height=12 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round aria-hidden><path d="M4 4l8 8M12 4l-8 8">`),e3=P(`<div class="flex items-center justify-end gap-1 px-1">`),t3=P(`<span class="relative inline-flex items-center justify-center"><svg width=12 height=12 viewBox="0 0 16 16"fill=currentColor aria-hidden><rect x=3.5 y=3 width=3.2 height=10 rx=1></rect><rect x=9.3 y=3 width=3.2 height=10 rx=1></rect></svg><span class="bg-success absolute -top-0.5 -right-0.5 size-1.5 animate-pulse rounded-full"aria-hidden>`),n3=P(`<span class="inline-block min-w-[5ch] text-center">Audit`),r3=P(`<div class="flex max-h-72 flex-col gap-1.5 overflow-y-auto pr-2">`),i3=P(`<span class="text-[12px] leading-none">✓`),a3=P(`<div class="flex items-center gap-1 px-1">`),o3=P(`<span class="text-text-faint font-normal tabular-nums"> · <!> pages`),s3=P(`<span class="inline-block min-w-[4ch] text-center">Scan`),c3=P(`<div class="flex items-center gap-1 px-1"><button class="border-border cursor-pointer rounded-full border px-2 py-0.5 text-[10px] font-medium tabular-nums"> errors</button><button class="border-border cursor-pointer rounded-full border px-2 py-0.5 text-[10px] font-medium tabular-nums"> warns`),l3=P(`<div class="flex h-full flex-col gap-3 overflow-y-auto pt-3 pb-4 pr-3 pl-2"><div class="flex items-center justify-between gap-2 px-1"><div class=min-w-0><p class="text-text text-[12.5px] font-semibold">Design genomes</p><p class="text-text-faint text-[10.5px] leading-snug">Point at a component → get its structure, tokens and interaction states as a spec you can hand to an agent.</p></div></div><div class="border-border mt-1 flex flex-col gap-2 border-t pt-3"><div class="flex items-center justify-between gap-2 px-1"><div class=min-w-0><p class="text-text text-[12.5px] font-semibold">CSS slowdowns</p><p class="text-text-faint text-[10.5px] leading-snug">Transitions/delays over the 100ms house cap (§42) on interactive elements — feedback that animates instead of being instant. Live hits appear as you use the app; Audit sweeps the whole page.</p></div><div class="flex shrink-0 items-center gap-1"></div></div></div><div class="border-border mt-1 flex flex-col gap-2 border-t pt-3"><div class="flex items-center justify-between gap-2 px-1"><div class=min-w-0><p class="text-text text-[12.5px] font-semibold">Slop scan</p><p class="text-text-faint text-[10.5px] leading-snug">Design-contract drift — Linear-primitives rules checked against the live DOM. Results accumulate per page as you navigate; re-scanning a page overwrites only that page's findings.</p></div><div class="flex shrink-0 items-center gap-1">`),u3=P(`<p class="text-text mt-1 text-[11px] font-semibold">Interaction states`),d3=P(`<svg width=12 height=12 viewBox="0 0 16 16"aria-hidden><rect x=3.5 y=3.5 width=9 height=9 rx=1.5 fill=currentColor>`),f3=P(`<span class="text-warn text-[10.5px] font-medium tabular-nums">s · <!> states`),p3=P(`<div class="border-border flex flex-col gap-2 border-t px-2.5 py-2"><p class="text-text-faint truncate text-[10px]"></p><div class="flex max-h-64 flex-col gap-2 overflow-y-auto pr-2"></div><div class="flex items-center gap-1">`),m3=P(`<div class=relative><span class="border-border bg-surface absolute top-3 -left-[13.5px] size-[9px] rounded-full border"aria-hidden></span><div class="bg-surface border-border flex flex-col rounded-lg border"><button class="flex w-full cursor-pointer items-center gap-2 px-2.5 py-2 text-left"><span class="text-accent min-w-0 truncate font-mono text-[12px]"></span><span class="text-text-faint ml-auto shrink-0 text-[10.5px] tabular-nums"> roles<!> · </span><svg width=10 height=10 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.5 class="text-text-faint shrink-0 transition-transform"aria-hidden><path d="m4 6 4 4 4-4">`),h3=P(`<span class=text-text-faint> ×`),g3=P(`<div class="flex flex-col gap-0.5"><p class="text-text text-[11px] font-medium">`),_3=P(`<span class=text-accent> ← var(<!>)`),v3=P(`<p class="text-text-dim font-mono text-[10px] leading-snug break-all">: `),y3=P(`<div class="flex flex-col gap-0.5"><p class="text-warn text-[10.5px] font-medium"> — `),b3=P(`<p class="text-text-dim font-mono text-[10px] leading-snug break-all">: <!> → `),x3=P(`<svg width=13 height=13 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round aria-hidden><circle cx=8 cy=8 r=6></circle><circle cx=8 cy=8 r=2 fill=currentColor stroke=none>`),S3=P(`<svg width=13 height=13 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.5 stroke-linejoin=round aria-hidden><rect x=5.5 y=5.5 width=9 height=9 rx=1.5></rect><path d="M10.5 5.5v-2a2 2 0 0 0-2-2h-5a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h2">`),C3=P(`<svg width=12 height=12 viewBox="0 0 16 16"fill=currentColor aria-hidden><path d="M4.5 2.5v11l9-5.5z">`),w3=P(`<p class="text-text-faint px-1 text-[10.5px]">Nothing caught yet — interact with the app, or run Audit.`),T3=P(`<span class="text-text-dim font-mono text-[10px] break-all">`),E3=P(`<span class="text-danger text-[10px] leading-snug">⚠ layout/paint transition: `),D3=P(`<span class="text-danger text-[10px] leading-snug">⚠ ease-in easing: `),O3=P(`<div class="bg-surface border-border flex flex-col gap-0.5 rounded-lg border p-2"><div class="flex items-center gap-2"><span class="text-warn shrink-0 text-[10px] font-semibold tracking-wide uppercase"></span><span class="text-accent min-w-0 truncate font-mono text-[11.5px]"></span><span class="text-text ml-auto shrink-0 text-[11px] font-medium tabular-nums">ms</span></div><span class="text-text-dim text-[10px] leading-snug"></span><span class="text-text-faint text-[10px] leading-snug">`),k3=P(`<svg width=13 height=13 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden><path d="M8 1.5 9.6 6l4.4 1.6L9.6 9.2 8 13.7 6.4 9.2 2 7.6 6.4 6Z"></path><path d="M13 11.5l.6 1.7 1.7.6-1.7.6-.6 1.7-.6-1.7-1.7-.6 1.7-.6Z">`),A3=P(`<p class="text-text-faint px-1 text-[10.5px]">No scan yet — click Scan to audit this page against the contract.`),j3=P(`<div class="border-border flex flex-col gap-1 border-t px-2 py-1.5"><p class="text-text-dim text-[10px] leading-snug">`),M3=P(`<div class="bg-surface border-border flex flex-col rounded-lg border"><button class="flex w-full cursor-pointer items-center gap-2 px-2 py-1.5 text-left"><span class="size-1.5 shrink-0 rounded-full"aria-hidden></span><span class="text-accent min-w-0 truncate font-mono text-[11.5px]"></span><span class="text-text-faint ml-auto shrink-0 text-[10.5px] tabular-nums">×</span><svg width=10 height=10 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.5 class="text-text-faint shrink-0 transition-transform"aria-hidden><path d="m4 6 4 4 4-4">`),N3=P(`<span class=text-accent> `),P3=P(`<button class="hover:bg-surface-2 flex w-full cursor-pointer flex-col gap-0.5 rounded px-1 py-0.5 text-left"title="Reveal on the page"><span class="text-text min-w-0 truncate font-mono text-[10.5px]"></span><span class="text-text-faint font-mono text-[10px] leading-snug break-all">`),F3=`linear-grab:genomes:v1`,I3=30;function L3(){try{return JSON.parse(localStorage.getItem(F3)??`[]`)}catch{return[]}}function R3(e){try{localStorage.setItem(F3,JSON.stringify(e.slice(0,I3)))}catch{}}var z3=new Map;function B3(e){let t=e.el?.deref();if(!(t instanceof HTMLElement)||!t.isConnected)return!1;t.scrollIntoView({block:`center`,behavior:`smooth`});let n=t.style.outline,r=t.style.outlineOffset;return t.style.outline=`2px solid #e5a13a`,t.style.outlineOffset=`2px`,setTimeout(()=>{t.style.outline=n,t.style.outlineOffset=r},1400),!0}function V3(){let[e,t]=T(L3()),[n,r]=T(null),[i,a]=T(null),[o,s]=T(null),[c,l]=T(null),[u,d]=T(null),[f,p]=T({active:!1,msLeft:0,total:0,byTrigger:{}});ie(i2(p));let[m,h]=T([]);ie(j2(h));let[g,_]=T(F2());ie(L2(_));let[v,y]=T(!1),[b,x]=T(!1),S=async()=>{y(!0);try{await V2()}finally{y(!1)}},C=async()=>{try{await navigator.clipboard.writeText(U2(m())),x(!0),setTimeout(()=>x(!1),1600)}catch{l(`Clipboard was blocked — click Copy again.`)}},[w,E]=T(!1),O=async()=>{try{await navigator.clipboard.writeText(H2(m())),E(!0),setTimeout(()=>E(!1),1600)}catch{l(`Clipboard was blocked — click Copy again.`)}},[k,ee]=T([]);ie(I4(ee));let[A,j]=T(U4());ie(G4(j));let[te,ne]=T(!1),[re,ae]=T(null),[oe,se]=T(!0),[ce,le]=T(!0),[ue,de]=T(!1),[fe,pe]=T(!1),me=()=>{l(null),ne(!0);try{R4(),ae(null)}catch(e){l(e instanceof Error?e.message:String(e))}finally{ne(!1)}},he=()=>{L4(),ae(null)},ge=()=>new Set(k().map(e=>e.page)).size,_e=()=>k().filter(e=>e.severity===`error`?oe():ce()),ve=()=>{let e=new Map;for(let t of _e()){let n=e.get(t.ruleId);n?n.push(t):e.set(t.ruleId,[t])}return[...e.values()].sort((e,t)=>Number(t[0].severity===`error`)-Number(e[0].severity===`error`)||t.length-e.length)},ye=()=>k().filter(e=>e.severity===`error`).length,be=()=>k().length-ye(),xe=async()=>{try{await navigator.clipboard.writeText(M4(_e())),de(!0),setTimeout(()=>de(!1),1600)}catch{l(`Clipboard was blocked — click Copy again.`)}},Se=async()=>{try{await navigator.clipboard.writeText(N4(_e())),pe(!0),setTimeout(()=>pe(!1),1600)}catch{l(`Clipboard was blocked — click Copy again.`)}},Ce=e=>{t(e),R3(e)},we=async()=>{l(null),a(`extract`),window.dispatchEvent(new CustomEvent(BZ));try{let t=await u2();if(!t)return;let n=await e2(t),i=Date.now();z3.set(i,new WeakRef(t)),Ce([{id:i,genome:n},...e()]),r(i)}catch(e){l(e instanceof Error?e.message:String(e))}finally{a(null),oj(`design`),window.dispatchEvent(new CustomEvent(VZ))}},Te=async t=>{l(null),a(t.id),window.dispatchEvent(new CustomEvent(BZ));try{let n=z3.get(t.id)?.deref()??null;if(!n||!n.isConnected){if(n=await u2(),!n)return;z3.set(t.id,new WeakRef(n))}let r=await c2(n,8e3,e=>s(Math.ceil(e/1e3)));r.length===0&&l(`No state changes captured — hover/open the component while the 8s window runs.`),Ce(e().map(e=>e.id===t.id?{...e,genome:{...e.genome,states:[...e.genome.states,...r]}}:e))}catch(e){l(e instanceof Error?e.message:String(e))}finally{a(null),s(null),oj(`design`),window.dispatchEvent(new CustomEvent(VZ))}},Ee=async e=>{try{await navigator.clipboard.writeText(l2(e.genome)),d(e.id),setTimeout(()=>d(null),1600)}catch{l(`Clipboard was blocked — click Copy again.`)}},De=t=>{z3.delete(t),Ce(e().filter(e=>e.id!==t))},[Oe,ke]=T(!1),Ae=async()=>{try{let t=e().map(e=>l2(e.genome)).join(`
276
276
 
277
277
  ---
278
278
 
279
- `);await navigator.clipboard.writeText(t),ke(!0),setTimeout(()=>ke(!1),1600)}catch{l(`Clipboard was blocked — click Copy again.`)}},je=()=>{R3.clear(),Ce([]),r(null)};return(()=>{var t=c3(),a=t.firstChild;a.firstChild;var o=a.nextSibling,s=o.firstChild.firstChild.nextSibling,d=o.nextSibling,p=d.firstChild.firstChild,h=p.firstChild;h.firstChild;var _=p.nextSibling;return F(a,M(kj,{variant:`primary`,class:`h-7 shrink-0 px-2.5 text-[11.5px]`,get loading(){return i()===`extract`},onClick:()=>void we(),get children(){return Y4()}}),null),F(t,M(N,{get when(){return c()},get children(){return M(Hj,{get message(){return c()}})}}),o),F(t,M(N,{get when(){return e().length>0},get fallback(){return M(Vj,{title:`No genomes yet`,children:`Click Extract and pick any component on the page — a dropdown, a card, a sidebar row. Then "Capture states" while you hover/open it to record the styles that only exist during interaction.`})},get children(){return[(()=>{var t=X4();return t.firstChild,F(t,M(Ue,{get each(){return e()},children:e=>{let t=()=>n()===e.id;return(()=>{var n=p3(),a=n.firstChild,o=a.nextSibling,s=o.firstChild,c=s.firstChild,l=c.nextSibling,d=l.firstChild,p=d.nextSibling;p.nextSibling;var m=l.nextSibling;return s.$$click=()=>r(t()?null:e.id),F(c,()=>e.genome.title),F(l,()=>e.genome.nodes.length,d),F(l,(()=>{var t=Qe(()=>!!e.genome.states.length);return()=>t()?` · ${e.genome.states.length} states`:``})(),p),F(l,()=>Wj(e.genome.extractedAt),null),F(o,M(N,{get when(){return t()},get children(){var t=f3(),n=t.firstChild,r=n.nextSibling,a=r.nextSibling;return F(n,()=>e.genome.pageUrl),F(r,M(Ue,{get each(){return e.genome.nodes},children:e=>(()=>{var t=h3(),n=t.firstChild;return F(n,()=>e.label,null),F(n,M(N,{get when(){return e.count>1},get children(){var t=m3();return t.firstChild,F(t,()=>e.count,null),t}}),null),F(t,M(Ue,{get each(){return Object.entries(e.styles)},children:([t,n])=>(()=>{var r=_3(),i=r.firstChild;return F(r,t,i),F(r,n,null),F(r,M(N,{get when(){return e.tokens[t]},get children(){var n=g3(),r=n.firstChild.nextSibling;return r.nextSibling,F(n,()=>e.tokens[t],r),n}}),null),r})()}),null),t})()}),null),F(r,M(N,{get when(){return e.genome.states.length>0},get children(){return[l3(),M(Ue,{get each(){return e.genome.states},children:e=>(()=>{var t=v3(),n=t.firstChild,r=n.firstChild;return F(n,()=>e.label,r),F(n,()=>e.trigger,null),F(t,M(Ue,{get each(){return Object.entries(e.changed)},children:([e,t])=>(()=>{var n=y3(),r=n.firstChild,i=r.nextSibling;return i.nextSibling,F(n,e,r),F(n,()=>t.from,i),F(n,()=>t.to,null),n})()}),null),t})()})]}}),null),F(a,M(N,{get when(){return Qe(()=>i()===e.id)()&&f().active},get fallback(){return M(kj,{class:`size-7 px-0`,variant:`ghost`,get loading(){return i()===e.id},title:`Capture states — records hover/focus/open styles for 8s while you interact; the pill shows the timer and Stop`,"aria-label":`Capture interaction states`,onClick:()=>void Te(e),get children(){return b3()}})},get children(){return[M(kj,{class:`text-danger size-7 px-0`,variant:`ghost`,get title(){return`Stop recording — ${Math.ceil(f().msLeft/1e3)}s left · ${f().total} captured`},"aria-label":`Stop recording states`,onClick:()=>o2(),get children(){return u3()}}),(()=>{var e=d3(),t=e.firstChild,n=t.nextSibling;return n.nextSibling,F(e,()=>Math.ceil(f().msLeft/1e3),t),F(e,()=>f().total,n),e})()]}}),null),F(a,M(kj,{class:`size-7 px-0`,variant:`ghost`,get title(){return u()===e.id?`Copied!`:`Copy spec — markdown for an agent or issue`},"aria-label":`Copy genome spec`,onClick:()=>void Ee(e),get children(){return M(N,{get when(){return u()===e.id},get fallback(){return x3()},get children(){return Z4()}})}}),null),F(a,M(kj,{class:`text-danger ml-auto size-7 px-0`,variant:`ghost`,title:`Delete this genome`,"aria-label":`Delete genome`,onClick:()=>De(e.id),get children(){return Q4()}}),null),t}}),null),D(e=>{var n={"bg-accent border-accent":t()},r=!!t();return e.e=ct(a,n,e.e),r!==e.t&&m.classList.toggle(`rotate-180`,e.t=r),e},{e:void 0,t:void 0}),n})()}}),null),t})(),(()=>{var e=$4();return F(e,M(kj,{class:`size-7 px-0`,variant:`ghost`,get title(){return Oe()?`Copied!`:`Copy all genomes as one markdown document`},"aria-label":`Copy all genomes`,onClick:()=>void Ae(),get children(){return M(N,{get when(){return Oe()},get fallback(){return x3()},get children(){return Z4()}})}}),null),F(e,M(kj,{class:`text-danger size-7 px-0`,variant:`ghost`,title:`Delete all saved genomes`,"aria-label":`Delete all genomes`,onClick:je,get children(){return Q4()}}),null),e})()]}}),o),F(s,M(kj,{class:`size-7 px-0`,variant:`ghost`,get title(){return g()?`Live capture ON — recording transitions fired by your input. Click to pause.`:`Live capture PAUSED — click to resume recording input-triggered transitions.`},get"aria-label"(){return g()?`Pause live capture`:`Start live capture`},onClick:()=>I2(!g()),get children(){return M(N,{get when(){return g()},get fallback(){return S3()},get children(){return e3()}})}}),null),F(s,M(kj,{variant:`ghost`,class:`h-7 px-2.5 text-[11.5px]`,get loading(){return v()},onClick:()=>void S(),get children(){return t3()}}),null),F(o,M(N,{get when(){return m().length>0},get fallback(){return C3()},get children(){return[(()=>{var e=n3();return F(e,M(Ue,{get each(){return m()},children:e=>(()=>{var t=D3(),n=t.firstChild,r=n.firstChild,i=r.nextSibling,a=i.nextSibling,o=a.firstChild,s=n.nextSibling,c=s.nextSibling;return F(r,()=>e.mode===`live`?`live`:`audit`),F(i,()=>e.component??e.element,null),F(i,M(N,{get when(){return e.count>1},get children(){return[` ×`,Qe(()=>e.count)]}}),null),F(a,()=>e.durationMs,o),F(a,(()=>{var t=Qe(()=>!!e.delayMs);return()=>t()?` +${e.delayMs}`:``})(),null),F(t,M(N,{get when(){return e.source},get children(){var t=w3();return F(t,()=>e.source),t}}),s),F(s,()=>e.properties.join(`, `),null),F(s,M(N,{get when(){return e.sinceInputMs!=null},get children(){return[` — fired `,Qe(()=>e.sinceInputMs),`ms after input`]}}),null),F(t,M(N,{get when(){return e.jankProps?.length},get children(){var t=T3();return t.firstChild,F(t,()=>e.jankProps.join(`, `),null),t}}),c),F(t,M(N,{get when(){return e.easing},get children(){var t=E3();return t.firstChild,F(t,()=>e.easing,null),t}}),c),F(c,()=>e.suggestion),t})()})),e})(),(()=>{var e=i3();return F(e,M(kj,{class:`size-7 px-0`,variant:`primary`,get title(){return w()?`Copied!`:`Copy AI prompt — report + fix rules, ready to paste into a Claude Code session`},"aria-label":`Copy AI fix prompt`,onClick:()=>void O(),get children(){return M(N,{get when(){return w()},get fallback(){return O3()},get children(){return r3()}})}}),null),F(e,M(kj,{class:`size-7 px-0`,variant:`ghost`,get title(){return b()?`Copied!`:`Copy report — plain markdown findings`},"aria-label":`Copy report`,onClick:()=>void C(),get children(){return M(N,{get when(){return b()},get fallback(){return x3()},get children(){return Z4()}})}}),null),F(e,M(kj,{class:`text-danger ml-auto size-7 px-0`,variant:`ghost`,title:`Clear all findings (live + audit)`,"aria-label":`Clear all findings`,onClick:M2,get children(){return Q4()}}),null),e})()]}}),null),F(h,M(N,{get when(){return ge()>1},get children(){var e=a3(),t=e.firstChild.nextSibling;return t.nextSibling,F(e,ge,t),e}}),null),F(_,M(kj,{class:`size-7 px-0`,variant:`ghost`,get title(){return A()?`Live scan ON — re-scans automatically ~1s after each route change. Click to pause.`:`Live scan PAUSED — click to auto-scan every page you navigate to.`},get"aria-label"(){return A()?`Pause live scan`:`Start live scan`},onClick:()=>U4(!A()),get children(){return M(N,{get when(){return A()},get fallback(){return S3()},get children(){return e3()}})}}),null),F(_,M(kj,{variant:`ghost`,class:`h-7 px-2.5 text-[11.5px]`,get loading(){return te()},title:`Scan this page — cumulative: keeps other pages' findings, replaces this page's`,onClick:me,get children(){return o3()}}),null),F(d,M(N,{get when(){return k().length>0},get fallback(){return k3()},get children(){return[(()=>{var e=s3(),t=e.firstChild,n=t.firstChild,r=t.nextSibling,i=r.firstChild;return t.$$click=()=>se(!oe()),F(t,ye,n),r.$$click=()=>le(!ce()),F(r,be,i),D(e=>{var n={"text-danger bg-danger/10 border-danger/40":oe(),"text-text-faint":!oe()},i=oe(),a={"text-warn bg-warn/10 border-warn/40":ce(),"text-text-faint":!ce()},o=ce();return e.e=ct(t,n,e.e),i!==e.t&&rt(t,`aria-pressed`,e.t=i),e.a=ct(r,a,e.a),o!==e.o&&rt(r,`aria-pressed`,e.o=o),e},{e:void 0,t:void 0,a:void 0,o:void 0}),e})(),(()=>{var e=n3();return F(e,M(Ue,{get each(){return ve()},children:e=>{let t=e[0],n=()=>re()===t.ruleId;return(()=>{var r=j3(),i=r.firstChild,a=i.firstChild,o=a.nextSibling,s=o.nextSibling;s.firstChild;var c=s.nextSibling;return i.$$click=()=>ae(n()?null:t.ruleId),F(o,()=>t.ruleId),F(s,()=>e.length,null),F(r,M(N,{get when(){return n()},get children(){var n=A3(),r=n.firstChild;return F(r,()=>t.description),F(n,M(Ue,{each:e,children:e=>(()=>{var t=N3(),n=t.firstChild,r=n.nextSibling;return t.$$click=()=>{z3(e)||l(e.page===location.pathname?`Element is gone — run Scan again.`:`This finding is on ${e.page} — navigate there to reveal it.`)},F(n,M(N,{get when(){return ge()>1},get children(){var t=M3(),n=t.firstChild;return F(t,()=>e.page,n),t}}),null),F(n,()=>e.selector,null),F(r,()=>e.evidence),t})()}),null),n}}),null),D(e=>{var r=t.severity===`error`,i=t.severity===`warn`,o=!!n();return r!==e.e&&a.classList.toggle(`bg-danger`,e.e=r),i!==e.t&&a.classList.toggle(`bg-warn`,e.t=i),o!==e.a&&c.classList.toggle(`rotate-180`,e.a=o),e},{e:void 0,t:void 0,a:void 0}),r})()}})),e})(),(()=>{var e=i3();return F(e,M(kj,{class:`size-7 px-0`,variant:`primary`,get title(){return fe()?`Copied!`:`Copy AI prompt — findings + contract fix rules, ready for a Claude Code session`},"aria-label":`Copy AI fix prompt`,onClick:()=>void Se(),get children(){return M(N,{get when(){return fe()},get fallback(){return O3()},get children(){return r3()}})}}),null),F(e,M(kj,{class:`size-7 px-0`,variant:`ghost`,get title(){return ue()?`Copied!`:`Copy report — findings grouped by rule, markdown`},"aria-label":`Copy slop report`,onClick:()=>void xe(),get children(){return M(N,{get when(){return ue()},get fallback(){return x3()},get children(){return Z4()}})}}),null),F(e,M(kj,{class:`text-danger ml-auto size-7 px-0`,variant:`ghost`,title:`Clear scan results`,"aria-label":`Clear scan results`,onClick:he,get children(){return Q4()}}),null),e})()]}}),null),t})()}nt([`click`]);var V3=[`defaultTeamId`,`defaultProjectId`,`defaultLabelIds`,`defaultRepo`,`workflowMode`,`cursorModel`,`stagingBranch`,`githubAssetsRepo`,`skillPaths`,`logUrl`,`logLines`,`issueTemplate`,`testUsername`];function H3(e){let t={};for(let n of V3){let r=e[n];r!==void 0&&r!==``&&!(Array.isArray(r)&&r.length===0)&&(t[n]=r)}return t}function U3(e,t){let n={};for(let r of V3)e[r]===void 0&&t[r]!==void 0&&(n[r]=t[r]);return Object.keys(n).length?n:null}zr();function W3(e){let t=``;for(let n of e)t+=String.fromCharCode(n);return btoa(t).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}async function G3(e){let t=W3(crypto.getRandomValues(new Uint8Array(32))),n=await crypto.subtle.digest(`SHA-256`,new TextEncoder().encode(t)),r=W3(new Uint8Array(n)),i=W3(crypto.getRandomValues(new Uint8Array(16))),a=chrome.identity.getRedirectURL(),o=new URL(`https://linear.app/oauth/authorize`);o.searchParams.set(`client_id`,e),o.searchParams.set(`redirect_uri`,a),o.searchParams.set(`response_type`,`code`),o.searchParams.set(`scope`,`read,write`),o.searchParams.set(`state`,i),o.searchParams.set(`code_challenge`,r),o.searchParams.set(`code_challenge_method`,`S256`);let s=await chrome.identity.launchWebAuthFlow({url:o.toString(),interactive:!0});if(!s)throw Error(`OAuth flow was cancelled`);let c=new URL(s).searchParams;if(c.get(`state`)!==i)throw Error(`OAuth state mismatch`);let l=c.get(`code`);if(!l)throw Error(c.get(`error_description`)??`No authorization code returned`);let u=await fetch(`https://api.linear.app/oauth/token`,{method:`POST`,headers:{"Content-Type":`application/x-www-form-urlencoded`},body:new URLSearchParams({grant_type:`authorization_code`,code:l,redirect_uri:a,client_id:e,code_verifier:t})}),d=await u.json().catch(()=>null);if(!u.ok||!d?.access_token)throw Error(`Token exchange failed — check the OAuth app callback URL and client id`);await Tr({linearAccessToken:d.access_token,linearOauthClientId:e})}async function K3(){await Tr({linearAccessToken:void 0,linearApiKey:void 0})}zr(),xr(),Fx(),gD();var q3=P(`<div class="bg-surface-2 border-border flex rounded-md border p-0.5">`),J3=P(`<span class="text-text-faint text-[10.5px] leading-snug">Cloud: picking an element opens the panel to draft &amp; delegate to the Cursor agent. Local (react-grab style): picking auto-copies the element's context — source, stack, and your skills/memory paths — straight to the clipboard for a local Claude Code or Cursor session; the panel stays out of the way. Both share the same picker; switch anytime.`),Y3=P(`<label class="flex cursor-pointer items-center gap-2 select-none"><input type=checkbox class="accent-accent rounded"><span class="text-text text-[12px]">Element screenshots`),X3=P(`<span class="text-text-faint text-[10.5px] leading-snug">Captures a highlighted screenshot of each picked element and attaches it to the issue. Costs a beat on huge pages — with this off, picking is instant (pure react-grab speed).`),Z3=P(`<span class=text-text>Connected as <span class=font-medium></span> · <span class=text-text-dim>`),Q3=P(`<div class="bg-surface border-border flex items-center justify-between rounded-lg border p-2.5"><span class="text-text text-[12px]">`),$3=P(`<option value>Select a team…`),e6=P(`<option value>No project`),t6=P(`<div class="flex flex-wrap gap-1">`),n6=P(`<label class="flex items-start gap-2"><input type=checkbox class="accent-accent mt-0.5"><span class="flex flex-col gap-0.5"><span class=text-[12px]>Let agents close out Linear themselves</span><span class="text-text-faint text-[10.5px] leading-snug">Embeds your Linear API key + raw GraphQL closeout recipes in every issue's Agent instructions — cloud agent VMs have no authenticated Linear MCP, so without this they can't comment, attach media, or move the issue. The key is visible to anyone who can read the issue.`),r6=P(`<p class="text-text-dim text-[11px]">No agents found — install the Cursor integration in Linear first.`),i6=P(`<span class="text-text-faint text-[10.5px] leading-snug">Empty = the default above (computer-use testing, video demo, PR + review babysitting).`),a6=P(`<div class="flex flex-col gap-1.5">`),o6=P(`<div class="flex flex-col gap-1"><span class="text-text-dim text-[11px] font-medium">Mode</span><div class="bg-surface-2 border-border flex rounded-md border p-0.5"></div><span class="text-text-faint text-[10.5px] leading-snug">Beside page squeezes the app next to the panel, DevTools-style — nothing gets covered. Also toggleable from the dock icon in the panel header.`),s6=P(`<div class="flex flex-col gap-1"><span class="text-text-dim text-[11px] font-medium">Dock side</span><div class="bg-surface-2 border-border flex rounded-md border p-0.5"></div><span class="text-text-faint text-[10.5px] leading-snug">The launcher pill is draggable — park it anywhere it doesn't cover your app.`),c6=P(`<p class="text-text-faint text-[10.5px] leading-snug">A committed <code>.lineargrab.json</code> at the repo root (where the bridge runs) shares team/project/labels, skills, staging branch, and workflow defaults with every machine and teammate — it seeds any setting you haven't set locally. Secrets never belong in it.`),l6=P(`<span class="inline-block min-w-[10ch] text-center">`),u6=P(`<div class="flex items-center gap-2">`),d6=P(`<option value>Select a channel…`),f6=P(`<label class="flex cursor-pointer items-center gap-2 select-none"><input type=checkbox class="accent-accent rounded"><span class="text-text text-[12px]">Announce new issues on create`),p6=P(`<span class="text-text-faint text-[10.5px] leading-snug">⚠️ Tokens are embedded in issue Agent-instructions so agents can post the finished demo — everyone who can read the issue can read them. Use single-channel-scoped bots.`),m6=P(`<div class="flex flex-col gap-1"><span class="text-text-dim text-[11px] font-medium">Provider preference</span><div class="bg-surface-2 border-border flex rounded-md border p-0.5"><button>Auto</button><button>OpenAI</button><button>Anthropic`),h6=P(`<p class="text-text-dim text-[11px]">`),g6=P(`<div class=min-h-[2lh]>`),_6=P(`<ol class="text-text-faint flex list-decimal flex-col gap-1 pl-4 text-[11px] leading-relaxed"><li>Pick an element on your running dev app.</li><li>Draft the issue (AI optional).</li><li>Create + delegate — Cursor's cloud agent fixes it and opens a PR.</li><li>Track and steer it from Activity.`),v6=P(`<div class="flex h-full flex-col gap-5 overflow-y-auto pt-3 pb-6 pl-3 pr-4">`),y6=P(`<button>`),b6=P(`<div class="flex gap-1.5">`),x6=P(`<p class="text-text-faint text-center text-[10.5px]">or`),S6=P(`<span class="text-text-faint text-[10.5px] leading-snug">Register this callback URL in your Linear OAuth app config:<br><span class="font-mono text-[10.5px] break-all">`),C6=P(`<div class="flex flex-col gap-3">`),w6=P(`<span class=text-text-dim>Connected — verifying…`),T6=P(`<option> (<!>)`),E6=P(`<option>`),D6=P(`<button type=button><span class="mr-1 inline-block size-2 rounded-full align-middle">`),O6=P(`<option value>Select the agent…`),k6=P(`<option>#`),A6=P(`<p class="text-text-dim text-[11px]">No key set — AI drafting disabled, manual drafting still works.`);function j6(){let e=or(),t=gr(()=>({queryKey:[`settings`],queryFn:wr,staleTime:0})),n=k(()=>t.data??{});async function r(t,n=!1){await Tr(t),await e.invalidateQueries({queryKey:[`settings`]}),n&&(await e.invalidateQueries({queryKey:[`viewer`]}),await e.invalidateQueries({queryKey:[`teams`]}),await e.invalidateQueries({queryKey:[`agents`]}),await e.invalidateQueries({queryKey:[`my-issues`]}))}let i=k(()=>!!(n().linearApiKey||n().linearAccessToken)),a=gr(()=>({queryKey:[`viewer`],queryFn:lO,enabled:i(),retry:0})),o=gr(()=>({queryKey:[`teams`],queryFn:uO,enabled:i()})),s=gr(()=>({queryKey:[`linear-projects`],queryFn:bO,enabled:i()})),c=gr(()=>({queryKey:[`bridge-health`],queryFn:MO,retry:0})),[l,u]=T(!1),d=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(H3(n()),null,2)+`
280
- `),u(!0),setTimeout(()=>u(!1),1800)}catch{}},f=()=>{let e=c.data?.projectConfig;if(!e)return;let t={};for(let n of V3)e[n]!==void 0&&(t[n]=e[n]);r(t)},p=gr(()=>({queryKey:[`linear-labels`],queryFn:xO,enabled:i()})),m=gr(()=>({queryKey:[`agents`],queryFn:dO,enabled:i()})),[h,g]=T(``),[_,v]=T(!1),[y,b]=T(``);async function x(){let e=h().trim();if(e){v(!0),b(``);try{await r({linearApiKey:e},!0),await lO(),g(``)}catch{b(`Key rejected — could not verify. Check the key and try again.`),await r({linearApiKey:void 0},!0)}finally{v(!1)}}}let[S,C]=T(``),[w,E]=T(!1),[O,ee]=T(``);async function A(){let t=(S()||n().linearOauthClientId||``).trim();if(!t){ee(`Enter an OAuth client ID first.`);return}E(!0),ee(``);try{await G3(t),await e.invalidateQueries({queryKey:[`settings`]}),await e.invalidateQueries({queryKey:[`viewer`]}),await e.invalidateQueries({queryKey:[`teams`]}),await e.invalidateQueries({queryKey:[`agents`]}),await e.invalidateQueries({queryKey:[`my-issues`]})}catch(e){ee(e instanceof Error?e.message:`OAuth flow failed.`)}finally{E(!1)}}let[j,te]=T(!1);async function ne(){te(!0);try{await K3(),await e.invalidateQueries({queryKey:[`settings`]}),await e.invalidateQueries({queryKey:[`viewer`]}),await e.invalidateQueries({queryKey:[`teams`]}),await e.invalidateQueries({queryKey:[`agents`]}),await e.invalidateQueries({queryKey:[`my-issues`]})}finally{te(!1)}}let re=br?chrome.identity.getRedirectURL():null,ie=gr(()=>({queryKey:[`slack-channels`,n().slackToken],queryFn:()=>ek(n().slackToken),enabled:!!n().slackToken,retry:0,staleTime:6e4})),ae=k(()=>Ax(n())),oe=k(()=>{let e=ae();return e?`Drafting with ${e} — ${Nx[e].fast} (fast) / ${Nx[e].best} (best)`:null});return(()=>{var e=v6();return F(e,M(Rj,{title:`Workflow`,get children(){return[(()=>{var e=q3();return F(e,M(Ue,{each:[{id:`cloud`,label:`Cloud · Linear + Cursor`},{id:`local`,label:`Local · clipboard`}],children:e=>(()=>{var t=y6();return t.$$click=()=>void r({workflowMode:e.id}),F(t,()=>e.label),D(()=>ot(t,`flex-1 rounded-[5px] px-2 py-1 text-[11.5px] font-medium transition-colors ${(n().workflowMode??`cloud`)===e.id?`bg-surface-3 text-text`:`text-text-dim hover:text-text cursor-pointer`}`)),t})()})),e})(),J3()]}}),null),F(e,M(Rj,{title:`Capture`,get children(){return[(()=>{var e=Y3(),t=e.firstChild;return t.addEventListener(`change`,e=>void r({captureShots:e.currentTarget.checked||void 0})),D(()=>t.checked=!!n().captureShots),e})(),X3()]}}),null),F(e,M(Rj,{title:`Linear`,get children(){return M(N,{get when(){return i()},get fallback(){return(()=>{var e=C6();return F(e,M(Lj,{label:`Personal API key`,hint:`Create one at linear.app → Settings → API — fastest path.`,get children(){return[(()=>{var e=b6();return F(e,M(jj,{type:`password`,placeholder:`lin_api_…`,get value(){return h()},onInput:e=>g(e.currentTarget.value),"on:keydown":e=>{e.key===`Enter`&&x()}}),null),F(e,M(kj,{variant:`primary`,get loading(){return _()},get disabled(){return!h().trim()},onClick:()=>void x(),class:`shrink-0`,children:`Connect`}),null),e})(),M(N,{get when(){return y()},get children(){return M(Hj,{get message(){return y()}})}})]}}),null),F(e,M(N,{when:br,get children(){return[x6(),M(Lj,{label:`OAuth client ID`,get children(){return[(()=>{var e=b6();return F(e,M(jj,{placeholder:`your-client-id`,get value(){return S()||n().linearOauthClientId||``},onInput:e=>C(e.currentTarget.value)}),null),F(e,M(kj,{variant:`ghost`,get loading(){return w()},onClick:()=>void A(),class:`shrink-0 whitespace-nowrap`,children:`Connect with OAuth`}),null),e})(),M(N,{get when(){return O()},get children(){return M(Hj,{get message(){return O()}})}}),(()=>{var e=S6(),t=e.firstChild.nextSibling.nextSibling;return F(t,re),e})()]}})]}}),null),e})()},get children(){var e=Q3(),t=e.firstChild;return F(t,M(N,{get when(){return!a.isLoading},get fallback(){return w6()},get children(){return M(N,{get when(){return a.data},get fallback(){return M(N,{get when(){return a.isError},get fallback(){return w6()},get children(){return M(Hj,{message:`Key rejected — reconnect`})}})},get children(){var e=Z3(),t=e.firstChild.nextSibling,n=t.nextSibling.nextSibling;return F(t,()=>a.data.name),F(n,()=>a.data.email),e}})}})),F(e,M(kj,{variant:`ghost`,get loading(){return j()},onClick:()=>void ne(),class:`ml-2 shrink-0`,children:`Disconnect`}),null),e}})}}),null),F(e,M(N,{get when(){return i()},get children(){return M(Rj,{title:`Workspace`,get children(){return[M(Lj,{label:`Default team`,get children(){return M(Nj,{get value(){return n().defaultTeamId??``},onChange:e=>{let t=e.currentTarget.value;r({defaultTeamId:t||void 0})},get disabled(){return o.isLoading},get children(){return[$3(),M(N,{get when(){return o.data},get children(){return M(Ue,{get each(){return o.data},children:e=>(()=>{var t=T6(),r=t.firstChild,i=r.nextSibling;return i.nextSibling,F(t,()=>e.name,r),F(t,()=>e.key,i),D(()=>t.selected=e.id===n().defaultTeamId),D(()=>t.value=e.id),t})()})}})]}})}}),M(Lj,{label:`Default project`,hint:`Every issue created from the panel is filed into this project.`,get children(){return M(Nj,{get value(){return n().defaultProjectId??``},onChange:e=>void r({defaultProjectId:e.currentTarget.value||void 0}),get disabled(){return s.isLoading},get children(){return[(()=>{var e=e6();return D(()=>e.selected=!n().defaultProjectId),e})(),M(Ue,{get each(){return s.data??[]},children:e=>(()=>{var t=E6();return F(t,()=>e.name),D(()=>t.selected=e.id===n().defaultProjectId),D(()=>t.value=e.id),t})()})]}})}}),M(Lj,{label:`Default labels`,hint:`Applied to every issue created from the panel.`,get children(){var e=t6();return F(e,M(Ue,{get each(){return p.data??[]},children:e=>{let t=()=>(n().defaultLabelIds??[]).includes(e.id);return(()=>{var i=D6(),a=i.firstChild;return i.$$click=()=>{let i=n().defaultLabelIds??[];r({defaultLabelIds:t()?i.filter(t=>t!==e.id):[...i,e.id]})},F(i,()=>e.name,null),D(n=>{var r=`h-6 cursor-pointer rounded-full border px-2.5 text-[11px] font-medium transition-colors ${t()?`bg-accent-soft text-accent border-accent/40`:`bg-surface-2 text-text-dim border-border hover:bg-surface-3`}`,o=e.color;return r!==n.e&&ot(i,n.e=r),o!==n.t&&ut(a,`background`,n.t=o),n},{e:void 0,t:void 0}),i})()}})),e}}),(()=>{var e=n6(),t=e.firstChild;return t.addEventListener(`change`,e=>void r({shareLinearKey:e.currentTarget.checked})),D(()=>t.checked=!!n().shareLinearKey),e})(),M(Lj,{label:`Staging branch`,hint:`Stage buttons on PRs merge the PR branch here — point your staging domain (e.g. preview.ahmedbanihani.com) at this branch in Vercel.`,get children(){return M(jj,{get value(){return n().stagingBranch??``},placeholder:`staging`,onChange:e=>void r({stagingBranch:e.currentTarget.value.trim()||void 0})})}}),M(Lj,{label:`Cursor agent`,hint:`App users in your workspace. Pick Cursor — requires the Cursor integration installed in Linear (workspace admin) with usage-based pricing enabled in Cursor.`,get children(){return M(N,{get when(){return Qe(()=>!!m.data)()&&m.data.length===0},get fallback(){return M(Nj,{get value(){return n().cursorAgentId??``},onChange:e=>{let t=e.currentTarget.value;if(!t){r({cursorAgentId:void 0,cursorAgentName:void 0,cursorAgentUrl:void 0});return}let n=m.data?.find(e=>e.id===t);n&&r({cursorAgentId:n.id,cursorAgentName:n.displayName,cursorAgentUrl:n.url??void 0})},get disabled(){return m.isLoading},get children(){return[O6(),M(N,{get when(){return m.data},get children(){return M(Ue,{get each(){return m.data},children:e=>(()=>{var t=E6();return F(t,()=>e.displayName),D(()=>t.selected=e.id===n().cursorAgentId),D(()=>t.value=e.id),t})()})}})]}})},get children(){return r6()}})}}),M(Lj,{label:`Default repository`,hint:`Appended to delegated issues as [repo=…] so Cursor picks the right repo.`,get children(){return M(jj,{placeholder:`owner/repository`,get value(){return n().defaultRepo??``},onBlur:e=>{r({defaultRepo:e.currentTarget.value.trim()||void 0})}})}}),M(Lj,{label:`Cursor cloud model`,hint:`Appended as [model=…] — e.g. claude-opus-4-8, gpt-5.2, composer. Empty = Cursor's default.`,get children(){return M(jj,{placeholder:`Cursor's default`,get value(){return n().cursorModel??``},onBlur:e=>{r({cursorModel:e.currentTarget.value.trim()||void 0})}})}}),M(Lj,{label:`Agent instructions`,hint:`Appended to every issue as '### Agent instructions' and given to the AI draft. Add demo credentials (username/password) so the agent can log in, test, and record its video. Careful: credentials become visible to everyone who can read the issue.`,get children(){return[M(Mj,{rows:5,placeholder:hD,get value(){return n().issueTemplate??``},onBlur:e=>{r({issueTemplate:e.currentTarget.value.trim()||void 0})}}),i6()]}}),M(Lj,{label:`Dev server log URL`,hint:`Tail of your dev-server log attached to issues (and fed to AI drafts). Serve the log over HTTP: "dev:http": "next dev 2>&1 | tee public/dev-server.log" (gitignore it), then use /dev-server.log here. Empty = disabled.`,get children(){return M(jj,{placeholder:`/dev-server.log`,get value(){return n().logUrl??``},onBlur:e=>{r({logUrl:e.currentTarget.value.trim()||void 0})}})}}),M(Lj,{label:`Log lines to attach`,hint:`Trailing lines included in the issue (10–500).`,get children(){return M(jj,{type:`number`,min:`10`,max:`500`,placeholder:`100`,get value(){return n().logLines??``},onBlur:e=>{let t=Number(e.currentTarget.value);r({logLines:Number.isFinite(t)&&t>0?Math.min(500,Math.max(10,Math.round(t))):void 0})}})}}),M(Lj,{label:`Skills & memory paths`,hint:`One path per line. The cloud agent works in a full repo checkout, so committed paths (e.g. .claude/skills/apple-hig-design-principles) are readable directly — every issue gets a MANDATORY-reading section pointing at them. Repo-relative for cloud agents; absolute paths also work when you paste the issue into a local Claude Code session. Per project: these settings live per dev origin.`,get children(){return M(Mj,{rows:4,placeholder:`.claude/skills/apple-hig-design-principles
279
+ `);await navigator.clipboard.writeText(t),ke(!0),setTimeout(()=>ke(!1),1600)}catch{l(`Clipboard was blocked — click Copy again.`)}},je=()=>{z3.clear(),Ce([]),r(null)};return(()=>{var t=l3(),a=t.firstChild;a.firstChild;var o=a.nextSibling,s=o.firstChild.firstChild.nextSibling,d=o.nextSibling,p=d.firstChild.firstChild,h=p.firstChild;h.firstChild;var _=p.nextSibling;return F(a,M(kj,{variant:`primary`,class:`h-7 shrink-0 px-2.5 text-[11.5px]`,get loading(){return i()===`extract`},onClick:()=>void we(),get children(){return X4()}}),null),F(t,M(N,{get when(){return c()},get children(){return M(Hj,{get message(){return c()}})}}),o),F(t,M(N,{get when(){return e().length>0},get fallback(){return M(Vj,{title:`No genomes yet`,children:`Click Extract and pick any component on the page — a dropdown, a card, a sidebar row. Then "Capture states" while you hover/open it to record the styles that only exist during interaction.`})},get children(){return[(()=>{var t=Z4();return t.firstChild,F(t,M(Ue,{get each(){return e()},children:e=>{let t=()=>n()===e.id;return(()=>{var n=m3(),a=n.firstChild,o=a.nextSibling,s=o.firstChild,c=s.firstChild,l=c.nextSibling,d=l.firstChild,p=d.nextSibling;p.nextSibling;var m=l.nextSibling;return s.$$click=()=>r(t()?null:e.id),F(c,()=>e.genome.title),F(l,()=>e.genome.nodes.length,d),F(l,(()=>{var t=Qe(()=>!!e.genome.states.length);return()=>t()?` · ${e.genome.states.length} states`:``})(),p),F(l,()=>Wj(e.genome.extractedAt),null),F(o,M(N,{get when(){return t()},get children(){var t=p3(),n=t.firstChild,r=n.nextSibling,a=r.nextSibling;return F(n,()=>e.genome.pageUrl),F(r,M(Ue,{get each(){return e.genome.nodes},children:e=>(()=>{var t=g3(),n=t.firstChild;return F(n,()=>e.label,null),F(n,M(N,{get when(){return e.count>1},get children(){var t=h3();return t.firstChild,F(t,()=>e.count,null),t}}),null),F(t,M(Ue,{get each(){return Object.entries(e.styles)},children:([t,n])=>(()=>{var r=v3(),i=r.firstChild;return F(r,t,i),F(r,n,null),F(r,M(N,{get when(){return e.tokens[t]},get children(){var n=_3(),r=n.firstChild.nextSibling;return r.nextSibling,F(n,()=>e.tokens[t],r),n}}),null),r})()}),null),t})()}),null),F(r,M(N,{get when(){return e.genome.states.length>0},get children(){return[u3(),M(Ue,{get each(){return e.genome.states},children:e=>(()=>{var t=y3(),n=t.firstChild,r=n.firstChild;return F(n,()=>e.label,r),F(n,()=>e.trigger,null),F(t,M(Ue,{get each(){return Object.entries(e.changed)},children:([e,t])=>(()=>{var n=b3(),r=n.firstChild,i=r.nextSibling;return i.nextSibling,F(n,e,r),F(n,()=>t.from,i),F(n,()=>t.to,null),n})()}),null),t})()})]}}),null),F(a,M(N,{get when(){return Qe(()=>i()===e.id)()&&f().active},get fallback(){return M(kj,{class:`size-7 px-0`,variant:`ghost`,get loading(){return i()===e.id},title:`Capture states — records hover/focus/open styles for 8s while you interact; the pill shows the timer and Stop`,"aria-label":`Capture interaction states`,onClick:()=>void Te(e),get children(){return x3()}})},get children(){return[M(kj,{class:`text-danger size-7 px-0`,variant:`ghost`,get title(){return`Stop recording — ${Math.ceil(f().msLeft/1e3)}s left · ${f().total} captured`},"aria-label":`Stop recording states`,onClick:()=>o2(),get children(){return d3()}}),(()=>{var e=f3(),t=e.firstChild,n=t.nextSibling;return n.nextSibling,F(e,()=>Math.ceil(f().msLeft/1e3),t),F(e,()=>f().total,n),e})()]}}),null),F(a,M(kj,{class:`size-7 px-0`,variant:`ghost`,get title(){return u()===e.id?`Copied!`:`Copy spec — markdown for an agent or issue`},"aria-label":`Copy genome spec`,onClick:()=>void Ee(e),get children(){return M(N,{get when(){return u()===e.id},get fallback(){return S3()},get children(){return Q4()}})}}),null),F(a,M(kj,{class:`text-danger ml-auto size-7 px-0`,variant:`ghost`,title:`Delete this genome`,"aria-label":`Delete genome`,onClick:()=>De(e.id),get children(){return $4()}}),null),t}}),null),D(e=>{var n={"bg-accent border-accent":t()},r=!!t();return e.e=ct(a,n,e.e),r!==e.t&&m.classList.toggle(`rotate-180`,e.t=r),e},{e:void 0,t:void 0}),n})()}}),null),t})(),(()=>{var e=e3();return F(e,M(kj,{class:`size-7 px-0`,variant:`ghost`,get title(){return Oe()?`Copied!`:`Copy all genomes as one markdown document`},"aria-label":`Copy all genomes`,onClick:()=>void Ae(),get children(){return M(N,{get when(){return Oe()},get fallback(){return S3()},get children(){return Q4()}})}}),null),F(e,M(kj,{class:`text-danger size-7 px-0`,variant:`ghost`,title:`Delete all saved genomes`,"aria-label":`Delete all genomes`,onClick:je,get children(){return $4()}}),null),e})()]}}),o),F(s,M(kj,{class:`size-7 px-0`,variant:`ghost`,get title(){return g()?`Live capture ON — recording transitions fired by your input. Click to pause.`:`Live capture PAUSED — click to resume recording input-triggered transitions.`},get"aria-label"(){return g()?`Pause live capture`:`Start live capture`},onClick:()=>I2(!g()),get children(){return M(N,{get when(){return g()},get fallback(){return C3()},get children(){return t3()}})}}),null),F(s,M(kj,{variant:`ghost`,class:`h-7 px-2.5 text-[11.5px]`,get loading(){return v()},onClick:()=>void S(),get children(){return n3()}}),null),F(o,M(N,{get when(){return m().length>0},get fallback(){return w3()},get children(){return[(()=>{var e=r3();return F(e,M(Ue,{get each(){return m()},children:e=>(()=>{var t=O3(),n=t.firstChild,r=n.firstChild,i=r.nextSibling,a=i.nextSibling,o=a.firstChild,s=n.nextSibling,c=s.nextSibling;return F(r,()=>e.mode===`live`?`live`:`audit`),F(i,()=>e.component??e.element,null),F(i,M(N,{get when(){return e.count>1},get children(){return[` ×`,Qe(()=>e.count)]}}),null),F(a,()=>e.durationMs,o),F(a,(()=>{var t=Qe(()=>!!e.delayMs);return()=>t()?` +${e.delayMs}`:``})(),null),F(t,M(N,{get when(){return e.source},get children(){var t=T3();return F(t,()=>e.source),t}}),s),F(s,()=>e.properties.join(`, `),null),F(s,M(N,{get when(){return e.sinceInputMs!=null},get children(){return[` — fired `,Qe(()=>e.sinceInputMs),`ms after input`]}}),null),F(t,M(N,{get when(){return e.jankProps?.length},get children(){var t=E3();return t.firstChild,F(t,()=>e.jankProps.join(`, `),null),t}}),c),F(t,M(N,{get when(){return e.easing},get children(){var t=D3();return t.firstChild,F(t,()=>e.easing,null),t}}),c),F(c,()=>e.suggestion),t})()})),e})(),(()=>{var e=a3();return F(e,M(kj,{class:`size-7 px-0`,variant:`primary`,get title(){return w()?`Copied!`:`Copy AI prompt — report + fix rules, ready to paste into a Claude Code session`},"aria-label":`Copy AI fix prompt`,onClick:()=>void O(),get children(){return M(N,{get when(){return w()},get fallback(){return k3()},get children(){return i3()}})}}),null),F(e,M(kj,{class:`size-7 px-0`,variant:`ghost`,get title(){return b()?`Copied!`:`Copy report — plain markdown findings`},"aria-label":`Copy report`,onClick:()=>void C(),get children(){return M(N,{get when(){return b()},get fallback(){return S3()},get children(){return Q4()}})}}),null),F(e,M(kj,{class:`text-danger ml-auto size-7 px-0`,variant:`ghost`,title:`Clear all findings (live + audit)`,"aria-label":`Clear all findings`,onClick:M2,get children(){return $4()}}),null),e})()]}}),null),F(h,M(N,{get when(){return ge()>1},get children(){var e=o3(),t=e.firstChild.nextSibling;return t.nextSibling,F(e,ge,t),e}}),null),F(_,M(kj,{class:`size-7 px-0`,variant:`ghost`,get title(){return A()?`Live scan ON — re-scans automatically ~1s after each route change. Click to pause.`:`Live scan PAUSED — click to auto-scan every page you navigate to.`},get"aria-label"(){return A()?`Pause live scan`:`Start live scan`},onClick:()=>W4(!A()),get children(){return M(N,{get when(){return A()},get fallback(){return C3()},get children(){return t3()}})}}),null),F(_,M(kj,{variant:`ghost`,class:`h-7 px-2.5 text-[11.5px]`,get loading(){return te()},title:`Scan this page — cumulative: keeps other pages' findings, replaces this page's`,onClick:me,get children(){return s3()}}),null),F(d,M(N,{get when(){return k().length>0},get fallback(){return A3()},get children(){return[(()=>{var e=c3(),t=e.firstChild,n=t.firstChild,r=t.nextSibling,i=r.firstChild;return t.$$click=()=>se(!oe()),F(t,ye,n),r.$$click=()=>le(!ce()),F(r,be,i),D(e=>{var n={"text-danger bg-danger/10 border-danger/40":oe(),"text-text-faint":!oe()},i=oe(),a={"text-warn bg-warn/10 border-warn/40":ce(),"text-text-faint":!ce()},o=ce();return e.e=ct(t,n,e.e),i!==e.t&&rt(t,`aria-pressed`,e.t=i),e.a=ct(r,a,e.a),o!==e.o&&rt(r,`aria-pressed`,e.o=o),e},{e:void 0,t:void 0,a:void 0,o:void 0}),e})(),(()=>{var e=r3();return F(e,M(Ue,{get each(){return ve()},children:e=>{let t=e[0],n=()=>re()===t.ruleId;return(()=>{var r=M3(),i=r.firstChild,a=i.firstChild,o=a.nextSibling,s=o.nextSibling;s.firstChild;var c=s.nextSibling;return i.$$click=()=>ae(n()?null:t.ruleId),F(o,()=>t.ruleId),F(s,()=>e.length,null),F(r,M(N,{get when(){return n()},get children(){var n=j3(),r=n.firstChild;return F(r,()=>t.description),F(n,M(Ue,{each:e,children:e=>(()=>{var t=P3(),n=t.firstChild,r=n.nextSibling;return t.$$click=()=>{B3(e)||l(e.page===location.pathname?`Element is gone — run Scan again.`:`This finding is on ${e.page} — navigate there to reveal it.`)},F(n,M(N,{get when(){return ge()>1},get children(){var t=N3(),n=t.firstChild;return F(t,()=>e.page,n),t}}),null),F(n,M(N,{get when(){return e.component},get children(){var t=N3(),n=t.firstChild;return F(t,()=>e.component,n),t}}),null),F(n,()=>e.selector,null),F(t,M(N,{get when(){return e.source},get children(){var t=T3();return F(t,()=>e.source),t}}),r),F(r,()=>e.evidence),t})()}),null),n}}),null),D(e=>{var r=t.severity===`error`,i=t.severity===`warn`,o=!!n();return r!==e.e&&a.classList.toggle(`bg-danger`,e.e=r),i!==e.t&&a.classList.toggle(`bg-warn`,e.t=i),o!==e.a&&c.classList.toggle(`rotate-180`,e.a=o),e},{e:void 0,t:void 0,a:void 0}),r})()}})),e})(),(()=>{var e=a3();return F(e,M(kj,{class:`size-7 px-0`,variant:`primary`,get title(){return fe()?`Copied!`:`Copy AI prompt — findings + contract fix rules, ready for a Claude Code session`},"aria-label":`Copy AI fix prompt`,onClick:()=>void Se(),get children(){return M(N,{get when(){return fe()},get fallback(){return k3()},get children(){return i3()}})}}),null),F(e,M(kj,{class:`size-7 px-0`,variant:`ghost`,get title(){return ue()?`Copied!`:`Copy report — findings grouped by rule, markdown`},"aria-label":`Copy slop report`,onClick:()=>void xe(),get children(){return M(N,{get when(){return ue()},get fallback(){return S3()},get children(){return Q4()}})}}),null),F(e,M(kj,{class:`text-danger ml-auto size-7 px-0`,variant:`ghost`,title:`Clear scan results`,"aria-label":`Clear scan results`,onClick:he,get children(){return $4()}}),null),e})()]}}),null),t})()}nt([`click`]);var H3=[`defaultTeamId`,`defaultProjectId`,`defaultLabelIds`,`defaultRepo`,`workflowMode`,`cursorModel`,`stagingBranch`,`githubAssetsRepo`,`skillPaths`,`logUrl`,`logLines`,`issueTemplate`,`testUsername`];function U3(e){let t={};for(let n of H3){let r=e[n];r!==void 0&&r!==``&&!(Array.isArray(r)&&r.length===0)&&(t[n]=r)}return t}function W3(e,t){let n={};for(let r of H3)e[r]===void 0&&t[r]!==void 0&&(n[r]=t[r]);return Object.keys(n).length?n:null}zr();function G3(e){let t=``;for(let n of e)t+=String.fromCharCode(n);return btoa(t).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}async function K3(e){let t=G3(crypto.getRandomValues(new Uint8Array(32))),n=await crypto.subtle.digest(`SHA-256`,new TextEncoder().encode(t)),r=G3(new Uint8Array(n)),i=G3(crypto.getRandomValues(new Uint8Array(16))),a=chrome.identity.getRedirectURL(),o=new URL(`https://linear.app/oauth/authorize`);o.searchParams.set(`client_id`,e),o.searchParams.set(`redirect_uri`,a),o.searchParams.set(`response_type`,`code`),o.searchParams.set(`scope`,`read,write`),o.searchParams.set(`state`,i),o.searchParams.set(`code_challenge`,r),o.searchParams.set(`code_challenge_method`,`S256`);let s=await chrome.identity.launchWebAuthFlow({url:o.toString(),interactive:!0});if(!s)throw Error(`OAuth flow was cancelled`);let c=new URL(s).searchParams;if(c.get(`state`)!==i)throw Error(`OAuth state mismatch`);let l=c.get(`code`);if(!l)throw Error(c.get(`error_description`)??`No authorization code returned`);let u=await fetch(`https://api.linear.app/oauth/token`,{method:`POST`,headers:{"Content-Type":`application/x-www-form-urlencoded`},body:new URLSearchParams({grant_type:`authorization_code`,code:l,redirect_uri:a,client_id:e,code_verifier:t})}),d=await u.json().catch(()=>null);if(!u.ok||!d?.access_token)throw Error(`Token exchange failed — check the OAuth app callback URL and client id`);await Tr({linearAccessToken:d.access_token,linearOauthClientId:e})}async function q3(){await Tr({linearAccessToken:void 0,linearApiKey:void 0})}zr(),xr(),Fx(),gD();var J3=P(`<div class="bg-surface-2 border-border flex rounded-md border p-0.5">`),Y3=P(`<span class="text-text-faint text-[10.5px] leading-snug">Cloud: picking an element opens the panel to draft &amp; delegate to the Cursor agent. Local (react-grab style): picking auto-copies the element's context — source, stack, and your skills/memory paths — straight to the clipboard for a local Claude Code or Cursor session; the panel stays out of the way. Both share the same picker; switch anytime.`),X3=P(`<label class="flex cursor-pointer items-center gap-2 select-none"><input type=checkbox class="accent-accent rounded"><span class="text-text text-[12px]">Element screenshots`),Z3=P(`<span class="text-text-faint text-[10.5px] leading-snug">Captures a highlighted screenshot of each picked element and attaches it to the issue. Costs a beat on huge pages — with this off, picking is instant (pure react-grab speed).`),Q3=P(`<span class=text-text>Connected as <span class=font-medium></span> · <span class=text-text-dim>`),$3=P(`<div class="bg-surface border-border flex items-center justify-between rounded-lg border p-2.5"><span class="text-text text-[12px]">`),e6=P(`<option value>Select a team…`),t6=P(`<option value>No project`),n6=P(`<div class="flex flex-wrap gap-1">`),r6=P(`<label class="flex items-start gap-2"><input type=checkbox class="accent-accent mt-0.5"><span class="flex flex-col gap-0.5"><span class=text-[12px]>Let agents close out Linear themselves</span><span class="text-text-faint text-[10.5px] leading-snug">Embeds your Linear API key + raw GraphQL closeout recipes in every issue's Agent instructions — cloud agent VMs have no authenticated Linear MCP, so without this they can't comment, attach media, or move the issue. The key is visible to anyone who can read the issue.`),i6=P(`<p class="text-text-dim text-[11px]">No agents found — install the Cursor integration in Linear first.`),a6=P(`<span class="text-text-faint text-[10.5px] leading-snug">Empty = the default above (computer-use testing, video demo, PR + review babysitting).`),o6=P(`<div class="flex flex-col gap-1.5">`),s6=P(`<div class="flex flex-col gap-1"><span class="text-text-dim text-[11px] font-medium">Mode</span><div class="bg-surface-2 border-border flex rounded-md border p-0.5"></div><span class="text-text-faint text-[10.5px] leading-snug">Beside page squeezes the app next to the panel, DevTools-style — nothing gets covered. Also toggleable from the dock icon in the panel header.`),c6=P(`<div class="flex flex-col gap-1"><span class="text-text-dim text-[11px] font-medium">Dock side</span><div class="bg-surface-2 border-border flex rounded-md border p-0.5"></div><span class="text-text-faint text-[10.5px] leading-snug">The launcher pill is draggable — park it anywhere it doesn't cover your app.`),l6=P(`<p class="text-text-faint text-[10.5px] leading-snug">A committed <code>.lineargrab.json</code> at the repo root (where the bridge runs) shares team/project/labels, skills, staging branch, and workflow defaults with every machine and teammate — it seeds any setting you haven't set locally. Secrets never belong in it.`),u6=P(`<span class="inline-block min-w-[10ch] text-center">`),d6=P(`<div class="flex items-center gap-2">`),f6=P(`<option value>Select a channel…`),p6=P(`<label class="flex cursor-pointer items-center gap-2 select-none"><input type=checkbox class="accent-accent rounded"><span class="text-text text-[12px]">Announce new issues on create`),m6=P(`<span class="text-text-faint text-[10.5px] leading-snug">⚠️ Tokens are embedded in issue Agent-instructions so agents can post the finished demo — everyone who can read the issue can read them. Use single-channel-scoped bots.`),h6=P(`<div class="flex flex-col gap-1"><span class="text-text-dim text-[11px] font-medium">Provider preference</span><div class="bg-surface-2 border-border flex rounded-md border p-0.5"><button>Auto</button><button>OpenAI</button><button>Anthropic`),g6=P(`<p class="text-text-dim text-[11px]">`),_6=P(`<div class=min-h-[2lh]>`),v6=P(`<ol class="text-text-faint flex list-decimal flex-col gap-1 pl-4 text-[11px] leading-relaxed"><li>Pick an element on your running dev app.</li><li>Draft the issue (AI optional).</li><li>Create + delegate — Cursor's cloud agent fixes it and opens a PR.</li><li>Track and steer it from Activity.`),y6=P(`<div class="flex h-full flex-col gap-5 overflow-y-auto pt-3 pb-6 pl-3 pr-4">`),b6=P(`<button>`),x6=P(`<div class="flex gap-1.5">`),S6=P(`<p class="text-text-faint text-center text-[10.5px]">or`),C6=P(`<span class="text-text-faint text-[10.5px] leading-snug">Register this callback URL in your Linear OAuth app config:<br><span class="font-mono text-[10.5px] break-all">`),w6=P(`<div class="flex flex-col gap-3">`),T6=P(`<span class=text-text-dim>Connected — verifying…`),E6=P(`<option> (<!>)`),D6=P(`<option>`),O6=P(`<button type=button><span class="mr-1 inline-block size-2 rounded-full align-middle">`),k6=P(`<option value>Select the agent…`),A6=P(`<option>#`),j6=P(`<p class="text-text-dim text-[11px]">No key set — AI drafting disabled, manual drafting still works.`);function M6(){let e=or(),t=gr(()=>({queryKey:[`settings`],queryFn:wr,staleTime:0})),n=k(()=>t.data??{});async function r(t,n=!1){await Tr(t),await e.invalidateQueries({queryKey:[`settings`]}),n&&(await e.invalidateQueries({queryKey:[`viewer`]}),await e.invalidateQueries({queryKey:[`teams`]}),await e.invalidateQueries({queryKey:[`agents`]}),await e.invalidateQueries({queryKey:[`my-issues`]}))}let i=k(()=>!!(n().linearApiKey||n().linearAccessToken)),a=gr(()=>({queryKey:[`viewer`],queryFn:lO,enabled:i(),retry:0})),o=gr(()=>({queryKey:[`teams`],queryFn:uO,enabled:i()})),s=gr(()=>({queryKey:[`linear-projects`],queryFn:bO,enabled:i()})),c=gr(()=>({queryKey:[`bridge-health`],queryFn:MO,retry:0})),[l,u]=T(!1),d=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(U3(n()),null,2)+`
280
+ `),u(!0),setTimeout(()=>u(!1),1800)}catch{}},f=()=>{let e=c.data?.projectConfig;if(!e)return;let t={};for(let n of H3)e[n]!==void 0&&(t[n]=e[n]);r(t)},p=gr(()=>({queryKey:[`linear-labels`],queryFn:xO,enabled:i()})),m=gr(()=>({queryKey:[`agents`],queryFn:dO,enabled:i()})),[h,g]=T(``),[_,v]=T(!1),[y,b]=T(``);async function x(){let e=h().trim();if(e){v(!0),b(``);try{await r({linearApiKey:e},!0),await lO(),g(``)}catch{b(`Key rejected — could not verify. Check the key and try again.`),await r({linearApiKey:void 0},!0)}finally{v(!1)}}}let[S,C]=T(``),[w,E]=T(!1),[O,ee]=T(``);async function A(){let t=(S()||n().linearOauthClientId||``).trim();if(!t){ee(`Enter an OAuth client ID first.`);return}E(!0),ee(``);try{await K3(t),await e.invalidateQueries({queryKey:[`settings`]}),await e.invalidateQueries({queryKey:[`viewer`]}),await e.invalidateQueries({queryKey:[`teams`]}),await e.invalidateQueries({queryKey:[`agents`]}),await e.invalidateQueries({queryKey:[`my-issues`]})}catch(e){ee(e instanceof Error?e.message:`OAuth flow failed.`)}finally{E(!1)}}let[j,te]=T(!1);async function ne(){te(!0);try{await q3(),await e.invalidateQueries({queryKey:[`settings`]}),await e.invalidateQueries({queryKey:[`viewer`]}),await e.invalidateQueries({queryKey:[`teams`]}),await e.invalidateQueries({queryKey:[`agents`]}),await e.invalidateQueries({queryKey:[`my-issues`]})}finally{te(!1)}}let re=br?chrome.identity.getRedirectURL():null,ie=gr(()=>({queryKey:[`slack-channels`,n().slackToken],queryFn:()=>ek(n().slackToken),enabled:!!n().slackToken,retry:0,staleTime:6e4})),ae=k(()=>Ax(n())),oe=k(()=>{let e=ae();return e?`Drafting with ${e} — ${Nx[e].fast} (fast) / ${Nx[e].best} (best)`:null});return(()=>{var e=y6();return F(e,M(Rj,{title:`Workflow`,get children(){return[(()=>{var e=J3();return F(e,M(Ue,{each:[{id:`cloud`,label:`Cloud · Linear + Cursor`},{id:`local`,label:`Local · clipboard`}],children:e=>(()=>{var t=b6();return t.$$click=()=>void r({workflowMode:e.id}),F(t,()=>e.label),D(()=>ot(t,`flex-1 rounded-[5px] px-2 py-1 text-[11.5px] font-medium transition-colors ${(n().workflowMode??`cloud`)===e.id?`bg-surface-3 text-text`:`text-text-dim hover:text-text cursor-pointer`}`)),t})()})),e})(),Y3()]}}),null),F(e,M(Rj,{title:`Capture`,get children(){return[(()=>{var e=X3(),t=e.firstChild;return t.addEventListener(`change`,e=>void r({captureShots:e.currentTarget.checked||void 0})),D(()=>t.checked=!!n().captureShots),e})(),Z3()]}}),null),F(e,M(Rj,{title:`Linear`,get children(){return M(N,{get when(){return i()},get fallback(){return(()=>{var e=w6();return F(e,M(Lj,{label:`Personal API key`,hint:`Create one at linear.app → Settings → API — fastest path.`,get children(){return[(()=>{var e=x6();return F(e,M(jj,{type:`password`,placeholder:`lin_api_…`,get value(){return h()},onInput:e=>g(e.currentTarget.value),"on:keydown":e=>{e.key===`Enter`&&x()}}),null),F(e,M(kj,{variant:`primary`,get loading(){return _()},get disabled(){return!h().trim()},onClick:()=>void x(),class:`shrink-0`,children:`Connect`}),null),e})(),M(N,{get when(){return y()},get children(){return M(Hj,{get message(){return y()}})}})]}}),null),F(e,M(N,{when:br,get children(){return[S6(),M(Lj,{label:`OAuth client ID`,get children(){return[(()=>{var e=x6();return F(e,M(jj,{placeholder:`your-client-id`,get value(){return S()||n().linearOauthClientId||``},onInput:e=>C(e.currentTarget.value)}),null),F(e,M(kj,{variant:`ghost`,get loading(){return w()},onClick:()=>void A(),class:`shrink-0 whitespace-nowrap`,children:`Connect with OAuth`}),null),e})(),M(N,{get when(){return O()},get children(){return M(Hj,{get message(){return O()}})}}),(()=>{var e=C6(),t=e.firstChild.nextSibling.nextSibling;return F(t,re),e})()]}})]}}),null),e})()},get children(){var e=$3(),t=e.firstChild;return F(t,M(N,{get when(){return!a.isLoading},get fallback(){return T6()},get children(){return M(N,{get when(){return a.data},get fallback(){return M(N,{get when(){return a.isError},get fallback(){return T6()},get children(){return M(Hj,{message:`Key rejected — reconnect`})}})},get children(){var e=Q3(),t=e.firstChild.nextSibling,n=t.nextSibling.nextSibling;return F(t,()=>a.data.name),F(n,()=>a.data.email),e}})}})),F(e,M(kj,{variant:`ghost`,get loading(){return j()},onClick:()=>void ne(),class:`ml-2 shrink-0`,children:`Disconnect`}),null),e}})}}),null),F(e,M(N,{get when(){return i()},get children(){return M(Rj,{title:`Workspace`,get children(){return[M(Lj,{label:`Default team`,get children(){return M(Nj,{get value(){return n().defaultTeamId??``},onChange:e=>{let t=e.currentTarget.value;r({defaultTeamId:t||void 0})},get disabled(){return o.isLoading},get children(){return[e6(),M(N,{get when(){return o.data},get children(){return M(Ue,{get each(){return o.data},children:e=>(()=>{var t=E6(),r=t.firstChild,i=r.nextSibling;return i.nextSibling,F(t,()=>e.name,r),F(t,()=>e.key,i),D(()=>t.selected=e.id===n().defaultTeamId),D(()=>t.value=e.id),t})()})}})]}})}}),M(Lj,{label:`Default project`,hint:`Every issue created from the panel is filed into this project.`,get children(){return M(Nj,{get value(){return n().defaultProjectId??``},onChange:e=>void r({defaultProjectId:e.currentTarget.value||void 0}),get disabled(){return s.isLoading},get children(){return[(()=>{var e=t6();return D(()=>e.selected=!n().defaultProjectId),e})(),M(Ue,{get each(){return s.data??[]},children:e=>(()=>{var t=D6();return F(t,()=>e.name),D(()=>t.selected=e.id===n().defaultProjectId),D(()=>t.value=e.id),t})()})]}})}}),M(Lj,{label:`Default labels`,hint:`Applied to every issue created from the panel.`,get children(){var e=n6();return F(e,M(Ue,{get each(){return p.data??[]},children:e=>{let t=()=>(n().defaultLabelIds??[]).includes(e.id);return(()=>{var i=O6(),a=i.firstChild;return i.$$click=()=>{let i=n().defaultLabelIds??[];r({defaultLabelIds:t()?i.filter(t=>t!==e.id):[...i,e.id]})},F(i,()=>e.name,null),D(n=>{var r=`h-6 cursor-pointer rounded-full border px-2.5 text-[11px] font-medium transition-colors ${t()?`bg-accent-soft text-accent border-accent/40`:`bg-surface-2 text-text-dim border-border hover:bg-surface-3`}`,o=e.color;return r!==n.e&&ot(i,n.e=r),o!==n.t&&ut(a,`background`,n.t=o),n},{e:void 0,t:void 0}),i})()}})),e}}),(()=>{var e=r6(),t=e.firstChild;return t.addEventListener(`change`,e=>void r({shareLinearKey:e.currentTarget.checked})),D(()=>t.checked=!!n().shareLinearKey),e})(),M(Lj,{label:`Staging branch`,hint:`Stage buttons on PRs merge the PR branch here — point your staging domain (e.g. preview.ahmedbanihani.com) at this branch in Vercel.`,get children(){return M(jj,{get value(){return n().stagingBranch??``},placeholder:`staging`,onChange:e=>void r({stagingBranch:e.currentTarget.value.trim()||void 0})})}}),M(Lj,{label:`Cursor agent`,hint:`App users in your workspace. Pick Cursor — requires the Cursor integration installed in Linear (workspace admin) with usage-based pricing enabled in Cursor.`,get children(){return M(N,{get when(){return Qe(()=>!!m.data)()&&m.data.length===0},get fallback(){return M(Nj,{get value(){return n().cursorAgentId??``},onChange:e=>{let t=e.currentTarget.value;if(!t){r({cursorAgentId:void 0,cursorAgentName:void 0,cursorAgentUrl:void 0});return}let n=m.data?.find(e=>e.id===t);n&&r({cursorAgentId:n.id,cursorAgentName:n.displayName,cursorAgentUrl:n.url??void 0})},get disabled(){return m.isLoading},get children(){return[k6(),M(N,{get when(){return m.data},get children(){return M(Ue,{get each(){return m.data},children:e=>(()=>{var t=D6();return F(t,()=>e.displayName),D(()=>t.selected=e.id===n().cursorAgentId),D(()=>t.value=e.id),t})()})}})]}})},get children(){return i6()}})}}),M(Lj,{label:`Default repository`,hint:`Appended to delegated issues as [repo=…] so Cursor picks the right repo.`,get children(){return M(jj,{placeholder:`owner/repository`,get value(){return n().defaultRepo??``},onBlur:e=>{r({defaultRepo:e.currentTarget.value.trim()||void 0})}})}}),M(Lj,{label:`Cursor cloud model`,hint:`Appended as [model=…] — e.g. claude-opus-4-8, gpt-5.2, composer. Empty = Cursor's default.`,get children(){return M(jj,{placeholder:`Cursor's default`,get value(){return n().cursorModel??``},onBlur:e=>{r({cursorModel:e.currentTarget.value.trim()||void 0})}})}}),M(Lj,{label:`Agent instructions`,hint:`Appended to every issue as '### Agent instructions' and given to the AI draft. Add demo credentials (username/password) so the agent can log in, test, and record its video. Careful: credentials become visible to everyone who can read the issue.`,get children(){return[M(Mj,{rows:5,placeholder:hD,get value(){return n().issueTemplate??``},onBlur:e=>{r({issueTemplate:e.currentTarget.value.trim()||void 0})}}),a6()]}}),M(Lj,{label:`Dev server log URL`,hint:`Tail of your dev-server log attached to issues (and fed to AI drafts). Serve the log over HTTP: "dev:http": "next dev 2>&1 | tee public/dev-server.log" (gitignore it), then use /dev-server.log here. Empty = disabled.`,get children(){return M(jj,{placeholder:`/dev-server.log`,get value(){return n().logUrl??``},onBlur:e=>{r({logUrl:e.currentTarget.value.trim()||void 0})}})}}),M(Lj,{label:`Log lines to attach`,hint:`Trailing lines included in the issue (10–500).`,get children(){return M(jj,{type:`number`,min:`10`,max:`500`,placeholder:`100`,get value(){return n().logLines??``},onBlur:e=>{let t=Number(e.currentTarget.value);r({logLines:Number.isFinite(t)&&t>0?Math.min(500,Math.max(10,Math.round(t))):void 0})}})}}),M(Lj,{label:`Skills & memory paths`,hint:`One path per line. The cloud agent works in a full repo checkout, so committed paths (e.g. .claude/skills/apple-hig-design-principles) are readable directly — every issue gets a MANDATORY-reading section pointing at them. Repo-relative for cloud agents; absolute paths also work when you paste the issue into a local Claude Code session. Per project: these settings live per dev origin.`,get children(){return M(Mj,{rows:4,placeholder:`.claude/skills/apple-hig-design-principles
281
281
  .claude/CLAUDE.md
282
- docs/design-tokens.md`,get value(){return n().skillPaths??``},onBlur:e=>{r({skillPaths:e.currentTarget.value.trim()||void 0})}})}}),M(Lj,{label:`Test account`,hint:`The cloud agent logs into the app with this while testing and recording its demo. Added to every issue's Agent instructions. Use a throwaway account — it's visible to everyone who can read the issue.`,get children(){var e=a6();return F(e,M(jj,{placeholder:`Username or email (e.g. demo@yourapp.com)`,get value(){return n().testUsername??``},onBlur:e=>{r({testUsername:e.currentTarget.value.trim()||void 0})}}),null),F(e,M(jj,{type:`password`,placeholder:`Password`,get value(){return n().testPassword??``},onBlur:e=>{r({testPassword:e.currentTarget.value.trim()||void 0})}}),null),e}})]}})}}),null),F(e,M(N,{when:!br,get children(){return M(Rj,{title:`Panel`,get children(){return[(()=>{var e=o6(),t=e.firstChild.nextSibling;return F(t,M(Ue,{each:[{id:`overlay`,label:`Overlay`},{id:`pinned`,label:`Beside page`}],children:e=>(()=>{var t=y6();return t.$$click=()=>void r({panelMode:e.id,panelPos:void 0}),F(t,()=>e.label),D(()=>ot(t,`flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors ${(n().panelMode??`overlay`)===e.id?`bg-surface-3 text-text`:`text-text-dim hover:text-text cursor-pointer`}`)),t})()})),e})(),(()=>{var e=s6(),t=e.firstChild.nextSibling;return F(t,M(Ue,{each:[`left`,`right`],children:e=>(()=>{var t=y6();return t.$$click=()=>void r({panelSide:e}),F(t,e===`left`?`Left`:`Right`),D(()=>ot(t,`flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors ${(n().panelSide??`right`)===e?`bg-surface-3 text-text`:`text-text-dim hover:text-text cursor-pointer`}`)),t})()})),e})()]}})}}),null),F(e,M(Rj,{title:`Local Claude Code`,get children(){return M(Lj,{label:`Bridge URL`,hint:'Run `npx linear-grab-bridge` in your repo\'s terminal (binds localhost only). Enables "Delegate to → Local Claude Code" in Draft, the Local tab, and relays blocked uploads to Linear storage.',get children(){return M(jj,{placeholder:`http://localhost:4577`,get value(){return n().bridgeUrl??``},onBlur:e=>{r({bridgeUrl:e.currentTarget.value.trim()||void 0})}})}})}}),null),F(e,M(Rj,{title:`Project config (.lineargrab.json)`,get children(){return[c6(),(()=>{var e=u6();return F(e,M(N,{get when(){return c.data?.projectConfig},get fallback(){return M(zj,{title:`No .lineargrab.json found at the bridge's cwd (or bridge offline / outdated)`,children:`not detected`})},get children(){return[M(zj,{class:`text-success`,children:`detected`}),M(kj,{variant:`ghost`,class:`h-7 px-2 text-[11px]`,title:`Overwrite your local settings with every value from the repo's config`,onClick:f,children:`Apply all`})]}}),null),F(e,M(kj,{variant:`ghost`,class:`h-7 px-2 text-[11px]`,get title(){return l()?`Copied!`:`Copy your current shareable settings as .lineargrab.json — commit it to the repo root`},onClick:()=>void d(),get children(){var e=l6();return F(e,()=>l()?`Copied ✓`:`Copy config`),e}}),null),e})()]}}),null),F(e,M(Rj,{title:`Asset uploads`,get children(){return[M(Lj,{label:`GitHub token`,hint:`Linear's storage blocks browser uploads in some browsers (Safari). With this set, GIFs/screenshots upload to your GitHub repo instead and embed automatically. Fine-grained PAT with Contents read/write on the assets repo.`,get children(){return M(jj,{type:`password`,placeholder:`github_pat_…`,get value(){return n().githubToken??``},onBlur:e=>{r({githubToken:e.currentTarget.value.trim()||void 0})}})}}),M(Lj,{label:`Assets repository`,hint:`owner/repo — must be PUBLIC so Linear (and agents) can render the images. Files land under linear-grab/.`,get children(){return M(jj,{placeholder:`ahmedbanihanibh/linear-grab-assets`,get value(){return n().githubAssetsRepo??``},onBlur:e=>{r({githubAssetsRepo:e.currentTarget.value.trim()||void 0})}})}})]}}),null),F(e,M(Rj,{title:`Notifications`,get children(){return[M(Lj,{label:`Slack bot token`,hint:`Bot token (xoxb-…) with chat:write + channels:read + files:write. New issues get announced with links + demo, and the AGENT receives the token to post its finished demo video itself.`,get children(){return M(jj,{type:`password`,placeholder:`xoxb-…`,get value(){return n().slackToken??``},onBlur:e=>{r({slackToken:e.currentTarget.value.trim()||void 0})}})}}),M(N,{get when(){return n().slackToken},get children(){return M(Lj,{label:`Slack channel`,get children(){return M(N,{get when(){return!ie.isError},get fallback(){return M(Hj,{message:`Couldn't list channels — check the token scopes (channels:read).`})},get children(){return M(Nj,{get value(){return n().slackChannelId??``},get disabled(){return ie.isLoading},onChange:e=>{let t=e.currentTarget.value,n=ie.data?.find(e=>e.id===t);r({slackChannelId:t||void 0,slackChannelName:n?.name})},get children(){return[d6(),M(Ue,{get each(){return ie.data??[]},children:e=>(()=>{var t=k6();return t.firstChild,F(t,()=>e.name,null),D(()=>t.selected=e.id===n().slackChannelId),D(()=>t.value=e.id),t})()})]}})}})}})}}),M(Lj,{label:`Telegram bot token`,hint:`From @BotFather. The agent also receives it to send the demo video (sendVideo).`,get children(){return M(jj,{type:`password`,placeholder:`123456:ABC-…`,get value(){return n().telegramToken??``},onBlur:e=>{r({telegramToken:e.currentTarget.value.trim()||void 0})}})}}),M(N,{get when(){return n().telegramToken},get children(){return M(Lj,{label:`Telegram chat ID`,hint:`Add the bot to your group/channel, send a message, then read the chat id from api.telegram.org/bot<token>/getUpdates.`,get children(){return M(jj,{placeholder:`-1001234567890`,get value(){return n().telegramChatId??``},onBlur:e=>{r({telegramChatId:e.currentTarget.value.trim()||void 0})}})}})}}),(()=>{var e=f6(),t=e.firstChild;return t.addEventListener(`change`,e=>void r({notifyOnCreate:e.currentTarget.checked?void 0:!1})),D(()=>t.checked=n().notifyOnCreate!==!1),e})(),p6()]}}),null),F(e,M(Rj,{title:`AI providers`,get children(){return[M(Lj,{label:`OpenAI API key`,get children(){return M(jj,{type:`password`,placeholder:`sk-…`,get value(){return n().openaiKey??``},onBlur:e=>{r({openaiKey:e.currentTarget.value.trim()||void 0})}})}}),M(Lj,{label:`Anthropic API key`,get children(){return M(jj,{type:`password`,placeholder:`sk-ant-…`,get value(){return n().anthropicKey??``},onBlur:e=>{r({anthropicKey:e.currentTarget.value.trim()||void 0})}})}}),(()=>{var e=m6(),t=e.firstChild.nextSibling.firstChild,i=t.nextSibling,a=i.nextSibling;return t.$$click=()=>void r({preferredProvider:void 0}),i.$$click=()=>void r({preferredProvider:`openai`}),a.$$click=()=>void r({preferredProvider:`anthropic`}),D(e=>{var r=`flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors ${n().preferredProvider===void 0?`bg-surface-3 text-text`:`text-text-dim hover:text-text cursor-pointer`}`,o=`flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors disabled:cursor-not-allowed ${n().preferredProvider===`openai`?`bg-surface-3 text-text`:`text-text-dim hover:text-text cursor-pointer disabled:text-text-faint`}`,s=!n().openaiKey,c=`flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors disabled:cursor-not-allowed ${n().preferredProvider===`anthropic`?`bg-surface-3 text-text`:`text-text-dim hover:text-text cursor-pointer disabled:text-text-faint`}`,l=!n().anthropicKey;return r!==e.e&&ot(t,e.e=r),o!==e.t&&ot(i,e.t=o),s!==e.a&&(i.disabled=e.a=s),c!==e.o&&ot(a,e.o=c),l!==e.i&&(a.disabled=e.i=l),e},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),e})(),(()=>{var e=g6();return F(e,M(N,{get when(){return oe()},get fallback(){return A6()},get children(){var e=h6();return F(e,oe),e}})),e})()]}}),null),F(e,M(Rj,{title:`How it works`,get children(){return _6()}}),null),e})()}nt([`click`]);var M6=`linear-grab`,N6=`queries`,P6=[`my-issues`,`issue`,`sessions`,`teams`,`agents`];function F6(){return new Promise(e=>{try{let t=indexedDB.open(M6,1);t.onupgradeneeded=()=>t.result.createObjectStore(N6),t.onsuccess=()=>e(t.result),t.onerror=()=>e(null)}catch{e(null)}})}function I6(e){return typeof e[0]==`string`&&P6.includes(e[0])}async function L6(e){let t=await F6();if(!t)return()=>{};await new Promise(n=>{try{let r=t.transaction(N6,`readonly`).objectStore(N6).openCursor();r.onsuccess=()=>{let t=r.result;if(!t)return n();try{let{queryKey:n,data:r}=t.value;I6(n)&&e.getQueryData(n)===void 0&&e.setQueryData(n,r,{updatedAt:0})}catch{}t.continue()},r.onerror=()=>n()}catch{n()}});let n=new Map,r=e.getQueryCache().subscribe(r=>{if(r.type!==`updated`||r.action.type!==`success`)return;let{queryKey:i,queryHash:a}=r.query;if(!I6(i))return;let o=n.get(a);o&&clearTimeout(o),n.set(a,setTimeout(()=>{n.delete(a);try{let n=e.getQueryData(i);if(n===void 0)return;t.transaction(N6,`readwrite`).objectStore(N6).put({queryKey:i,data:n},a)}catch{}},400))});return()=>{r();for(let e of n.values())clearTimeout(e);t.close()}}zr();var R6=P(`<svg viewBox="0 0 100 100"fill=currentColor aria-hidden><path d="M1.22541 61.5228c-.2225-.9485.90748-1.5459 1.59638-.857L39.3342 97.1782c.6889.6889.0915 1.8189-.857 1.5964C20.0515 94.4522 5.54779 79.9485 1.22541 61.5228ZM.00189135 46.8891c-.01764375.2833.08887215.5599.28957165.7606L52.3503 99.7085c.2007.2007.4773.3075.7606.2896 2.3692-.1476 4.6938-.46 6.9624-.9259.7645-.157 1.0301-1.0963.4782-1.6481L2.57595 39.4485c-.55186-.5519-1.49117-.2863-1.648174.4782-.465915 2.2686-.77832 4.5932-.92588465 6.9624ZM4.21093 29.7054c-.16649.3738-.08169.8106.20765 1.1l64.77602 64.776c.2894.2894.7262.3742 1.1.2077 1.7861-.7956 3.5171-1.6927 5.1855-2.684.5521-.328.6373-1.0867.1832-1.5407L8.43566 24.3367c-.45409-.4541-1.21271-.3689-1.54074.1832-.99132 1.6684-1.88843 3.3994-2.68399 5.1855ZM12.6587 18.074c-.3701-.3701-.393-.9637-.0443-1.3541C21.7795 6.45931 35.1114 0 49.9519 0 77.5927 0 100 22.4073 100 50.0481c0 14.8405-6.4593 28.1724-16.7199 37.3375-.3903.3487-.984.3258-1.3541-.0443L12.6587 18.074Z">`),z6=P(`<button><svg width=12 height=12 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.5 aria-hidden><rect x=1.5 y=2.5 width=13 height=11 rx=1.5></rect><path d="M10 2.5v11">`),B6=P(`<button aria-label="Minimize to launcher"title="Minimize to launcher"class="text-text-dim hover:text-text hover:bg-surface-3 grid size-6 shrink-0 cursor-pointer place-items-center rounded-md text-[15px] leading-none transition-colors">–`),V6=P(`<div class="bg-bg text-text flex h-full flex-col"><header><span class="text-accent mr-0.5 inline-flex shrink-0"title="Linear Grab"></span><div class="no-scrollbar flex min-w-0 flex-1 items-center gap-1 overflow-x-auto"></div></header><main class="min-h-0 flex-1"><div class=h-full></div><div class=h-full></div><div class=h-full></div><div class=h-full></div><div class=h-full></div><div class=h-full></div><div class=h-full></div><div class=h-full></div><div class=h-full>`),H6=P(`<button>`),U6=[{id:`draft`,label:`Draft`},{id:`capture`,label:`Capture`},{id:`activity`,label:`Activity`},{id:`running`,label:`Running`},{id:`cloud`,label:`Cloud`},{id:`local`,label:`Local`},{id:`prs`,label:`PRs`},{id:`design`,label:`Design`},{id:`settings`,label:`Settings`}],W6=new Set;function G6(e,t,n){if(W6.has(e)||typeof Notification>`u`)return;W6.add(e);let r=()=>new Notification(t,{body:n});Notification.permission===`granted`?r():Notification.permission==="default"&&Notification.requestPermission().then(e=>e===`granted`&&r())}function K6(){setInterval(()=>{NO().then(e=>{for(let t of e){if(t.status!==`running`)continue;let e=t.lastEventAt??t.startedAt;Date.now()-e>10*6e4&&G6(`local-stuck:${t.id}:${e}`,`Local agent may be stuck`,`${t.title.slice(0,80)} — no output for ${Math.round((Date.now()-e)/6e4)}m. Nudge or interrupt it in the Local tab.`)}}).catch(()=>{}),gO().then(e=>{for(let t of e)/awaitingInput|elicit/i.test(t.status)&&G6(`cloud-input:${t.id}`,`Cloud agent needs input`,`${t.issue?.identifier??`Session`} — ${t.issue?.title?.slice(0,80)??`a Cursor agent`} is waiting for you.`)}).catch(()=>{})},6e4)}K6();var q6=new hr({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1,staleTime:5e3}}});function J6(e){return(()=>{var t=R6();return D(n=>{var r=e.size??14,i=e.size??14;return r!==n.e&&rt(t,`width`,n.e=r),i!==n.t&&rt(t,`height`,n.t=i),n},{e:void 0,t:void 0}),t})()}function Y6(e){let[t,n]=T(`draft`),r=()=>{q6.invalidateQueries({queryKey:[`grab`]}),cj()===`capture`&&n(`capture`),e.onGrab?.()};return O(()=>{let e=nj();e&&n(e)}),re(()=>{let e=L6(q6),t=XZ(r),n=()=>{JO().then(y$),VO(),MO().then(async e=>{if(!e.projectConfig)return;let t=U3(await wr(),e.projectConfig);t&&await Tr(t)}).catch(()=>{})};n();let i=jr(e=>{e===`settings`&&(q6.invalidateQueries({queryKey:[`settings`]}),n()),e===`grab`&&r()});ie(()=>{t(),i(),e.then(e=>e())})}),M(sr,{client:q6,get children(){var r=V6(),i=r.firstChild,a=i.firstChild,o=a.nextSibling,s=i.nextSibling.firstChild,c=s.nextSibling,l=c.nextSibling,u=l.nextSibling,d=u.nextSibling,f=d.nextSibling,p=f.nextSibling,m=p.nextSibling,h=m.nextSibling;return i.$$pointerdown=t=>e.onHeaderPointerDown?.(t),F(a,M(J6,{size:14})),F(o,M(Ue,{each:U6,children:e=>(()=>{var r=H6();return r.$$click=()=>n(e.id),F(r,()=>e.label),D(()=>ot(r,`h-6 shrink-0 rounded-md px-2 text-[12px] font-medium whitespace-nowrap transition-colors ${t()===e.id?`bg-surface-3 text-text`:`text-text-dim hover:text-text cursor-pointer`}`)),r})()})),F(i,M(N,{get when(){return e.onTogglePin},get children(){var t=z6();return t.$$click=()=>e.onTogglePin?.(),D(n=>{var r=e.pinned?`Switch to overlay`:`Dock beside page`,i=e.pinned?`Overlay the page`:`Dock beside page (squeezes the app, DevTools-style)`,a=`hover:bg-surface-3 grid size-6 shrink-0 cursor-pointer place-items-center rounded-md transition-colors ${e.pinned?`text-accent`:`text-text-dim hover:text-text`}`;return r!==n.e&&rt(t,`aria-label`,n.e=r),i!==n.t&&rt(t,`title`,n.t=i),a!==n.a&&ot(t,n.a=a),n},{e:void 0,t:void 0,a:void 0}),t}}),null),F(i,M(N,{get when(){return e.onClose},get children(){var t=B6();return t.$$click=()=>e.onClose?.(),t}}),null),F(s,M(wM,{onCreated:()=>n(`activity`)})),F(c,M(TQ,{})),F(l,M(_1,{})),F(u,M(B1,{})),F(d,M(P1,{})),F(f,M(T0,{})),F(p,M(B0,{onOpenIssue:()=>n(`activity`)})),F(m,M(B3,{})),F(h,M(j6,{})),D(n=>{var r=`border-border bg-surface flex shrink-0 items-center gap-1 border-b px-2 py-1.5 select-none ${e.onHeaderPointerDown?`cursor-grab active:cursor-grabbing`:``}`,a=t()!==`draft`,o=t()!==`capture`,g=t()!==`activity`,_=t()!==`running`,v=t()!==`cloud`,y=t()!==`local`,b=t()!==`prs`,x=t()!==`design`,S=t()!==`settings`;return r!==n.e&&ot(i,n.e=r),a!==n.t&&s.classList.toggle(`hidden`,n.t=a),o!==n.a&&c.classList.toggle(`hidden`,n.a=o),g!==n.o&&l.classList.toggle(`hidden`,n.o=g),_!==n.i&&u.classList.toggle(`hidden`,n.i=_),v!==n.n&&d.classList.toggle(`hidden`,n.n=v),y!==n.s&&f.classList.toggle(`hidden`,n.s=y),b!==n.h&&p.classList.toggle(`hidden`,n.h=b),x!==n.r&&m.classList.toggle(`hidden`,n.r=x),S!==n.d&&h.classList.toggle(`hidden`,n.d=S),n},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0}),r}})}nt([`pointerdown`,`click`]);var X6=`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */
283
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-contain-size:initial;--tw-contain-layout:initial;--tw-contain-paint:initial;--tw-contain-style:initial}}}@layer theme{:root,:host{--font-sans:"Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;--font-serif:ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;--font-mono:ui-monospace, "SF Mono", Menlo, monospace;--color-red-500:oklch(63.7% .237 25.331);--color-white:#fff;--spacing:.25rem;--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-wide:.025em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-sm:4px;--radius-md:6px;--radius-lg:10px;--radius-xl:.75rem;--ease-in:cubic-bezier(.4, 0, 1, 1);--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-bg:#0b0c0e;--color-surface:#141517;--color-surface-2:#1c1d21;--color-surface-3:#24262b;--color-border:#26282d;--color-border-strong:#34363d;--color-text:#e8e9eb;--color-text-dim:#8b8e98;--color-text-faint:#5c5f6a;--color-accent:#5e6ad2;--color-accent-hover:#6e79e0;--color-accent-soft:#5e6ad226;--color-success:#4cb782;--color-warn:#f2c94c;--color-danger:#eb5757;--color-danger-soft:#eb575726}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{inset-block:0}.-top-0{top:0}.-top-0\\.5{top:calc(var(--spacing) * -.5)}.top-0{top:0}.top-0\\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-1\\/2{top:50%}.top-3{top:calc(var(--spacing) * 3)}.top-\\[2px\\]{top:2px}.top-full{top:100%}.-right-0{right:0}.-right-0\\.5{right:calc(var(--spacing) * -.5)}.right-0{right:0}.right-0\\.5{right:calc(var(--spacing) * .5)}.right-4{right:calc(var(--spacing) * 4)}.right-full{right:100%}.bottom-0{bottom:0}.bottom-1{bottom:var(--spacing)}.bottom-4{bottom:calc(var(--spacing) * 4)}.bottom-\\[2px\\]{bottom:2px}.bottom-full{bottom:100%}.-left-\\[13\\.5px\\]{left:-13.5px}.left-0{left:0}.left-1{left:var(--spacing)}.left-1\\/2{left:50%}.left-\\[5px\\]{left:5px}.left-full{left:100%}.z-1{z-index:1}.z-10{z-index:10}.z-\\[2147483645\\]{z-index:2147483645}.z-\\[2147483646\\]{z-index:2147483646}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.-m-0{margin:0}.-m-0\\.5{margin:calc(var(--spacing) * -.5)}.-m-4{margin:calc(var(--spacing) * -4)}.m-0{margin:0}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.-my-1{margin-block:calc(var(--spacing) * -1)}.-my-1\\.5{margin-block:calc(var(--spacing) * -1.5)}.mt-0{margin-top:0}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-px{margin-top:1px}.mr-0{margin-right:0}.mr-0\\.5{margin-right:calc(var(--spacing) * .5)}.mr-1{margin-right:var(--spacing)}.mr-1\\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-2\\.5{margin-right:calc(var(--spacing) * 2.5)}.-mb-4{margin-bottom:calc(var(--spacing) * -4)}.mb-0{margin-bottom:0}.mb-0\\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:var(--spacing)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\\.5{margin-bottom:calc(var(--spacing) * 2.5)}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-2\\.5{margin-left:calc(var(--spacing) * 2.5)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-5{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.list-item{display:list-item}.table{display:table}.size-0{width:0;height:0}.size-1{width:var(--spacing);height:var(--spacing)}.size-1\\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-\\[9px\\]{width:9px;height:9px}.size-\\[12px\\]{width:12px;height:12px}.size-\\[16px\\]{width:16px;height:16px}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-16{height:calc(var(--spacing) * 16)}.h-\\[8px\\]{height:8px}.h-\\[17px\\]{height:17px}.h-\\[18px\\]{height:18px}.h-\\[20px\\]{height:20px}.h-\\[24px\\]{height:24px}.h-fit{height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.max-h-32{max-height:calc(var(--spacing) * 32)}.max-h-40{max-height:calc(var(--spacing) * 40)}.max-h-44{max-height:calc(var(--spacing) * 44)}.max-h-56{max-height:calc(var(--spacing) * 56)}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\\[var\\(--rg-edit-list-max-h\\)\\]{max-height:var(--rg-edit-list-max-h)}.min-h-0{min-height:0}.min-h-4{min-height:calc(var(--spacing) * 4)}.min-h-\\[2lh\\]{min-height:2lh}.min-h-\\[28px\\]{min-height:28px}.w-1{width:var(--spacing)}.w-3{width:calc(var(--spacing) * 3)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-16{width:calc(var(--spacing) * 16)}.w-28{width:calc(var(--spacing) * 28)}.w-72{width:calc(var(--spacing) * 72)}.w-\\[2px\\]{width:2px}.w-\\[Npx\\]{width:Npx}.w-\\[calc\\(100\\%\\+16px\\)\\]{width:calc(100% + 16px)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.max-w-\\[55\\%\\]{max-width:55%}.max-w-\\[100vw\\]{max-width:100vw}.max-w-\\[110px\\]{max-width:110px}.max-w-\\[280px\\]{max-width:280px}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-\\[3\\.5ch\\]{min-width:3.5ch}.min-w-\\[3ch\\]{min-width:3ch}.min-w-\\[4ch\\]{min-width:4ch}.min-w-\\[5ch\\]{min-width:5ch}.min-w-\\[6ch\\]{min-width:6ch}.min-w-\\[7ch\\]{min-width:7ch}.min-w-\\[8ch\\]{min-width:8ch}.min-w-\\[10ch\\]{min-width:10ch}.min-w-\\[12ch\\]{min-width:12ch}.min-w-\\[36px\\]{min-width:36px}.min-w-\\[52px\\]{min-width:52px}.min-w-\\[100px\\]{min-width:100px}.min-w-\\[150px\\]{min-width:150px}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.-rotate-90{rotate:-90deg}.rotate-0{rotate:0deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.resize-none{resize:none}.resize-y{resize:vertical}.list-decimal{list-style-type:decimal}.grid-cols-\\[0fr\\]{grid-template-columns:0fr}.grid-cols-\\[1fr\\]{grid-template-columns:1fr}.grid-rows-\\[0fr\\]{grid-template-rows:0fr}.grid-rows-\\[1fr\\]{grid-template-rows:1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0{gap:0}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-\\[5px\\]{gap:5px}.self-end{align-self:flex-end}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-clip{overflow:clip}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\[1px\\]{border-radius:1px}.rounded-\\[3px\\]{border-radius:3px}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[5px\\]{border-radius:5px}.rounded-\\[6px\\]{border-radius:6px}.rounded-\\[13px\\]{border-radius:13px}.rounded-\\[14px\\]{border-radius:14px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-\\[10px\\]{border-top-left-radius:10px;border-bottom-left-radius:10px}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-r-\\[10px\\]{border-top-right-radius:10px;border-bottom-right-radius:10px}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-\\[6px\\]{border-bottom-right-radius:6px;border-bottom-left-radius:6px}.rounded-b-\\[10px\\]{border-bottom-right-radius:10px;border-bottom-left-radius:10px}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.\\[border-width\\:0\\.5px\\]{border-width:.5px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-4{border-top-style:var(--tw-border-style);border-top-width:4px}.\\[border-top-width\\:0\\.5px\\]{border-top-width:.5px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-dotted{--tw-border-style:dotted;border-style:dotted}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[var\\(--rg-border-button\\)\\]{border-color:var(--rg-border-button)}.border-accent{border-color:var(--color-accent)}.border-accent\\/40{border-color:#5e6ad266}@supports (color:color-mix(in lab, red, red)){.border-accent\\/40{border-color:color-mix(in oklab, var(--color-accent) 40%, transparent)}}.border-border{border-color:var(--color-border)}.border-danger{border-color:var(--color-danger)}.border-danger\\/40{border-color:#eb575766}@supports (color:color-mix(in lab, red, red)){.border-danger\\/40{border-color:color-mix(in oklab, var(--color-danger) 40%, transparent)}}.border-success{border-color:var(--color-success)}.border-success\\/40{border-color:#4cb78266}@supports (color:color-mix(in lab, red, red)){.border-success\\/40{border-color:color-mix(in oklab, var(--color-success) 40%, transparent)}}.border-text-dim{border-color:var(--color-text-dim)}.border-transparent{border-color:#0000}.border-warn{border-color:var(--color-warn)}.border-warn\\/40{border-color:#f2c94c66}@supports (color:color-mix(in lab, red, red)){.border-warn\\/40{border-color:color-mix(in oklab, var(--color-warn) 40%, transparent)}}.border-t-\\[var\\(--rg-border-subtle\\)\\]{border-top-color:var(--rg-border-subtle)}.border-t-transparent{border-top-color:#0000}.bg-\\[var\\(--rg-error-bg\\)\\]{background-color:var(--rg-error-bg)}.bg-\\[var\\(--rg-panel-bg\\)\\]{background-color:var(--rg-panel-bg)}.bg-\\[var\\(--rg-submit-bg\\)\\]{background-color:var(--rg-submit-bg)}.bg-\\[var\\(--rg-surface-active\\)\\]{background-color:var(--rg-surface-active)}.bg-\\[var\\(--rg-surface-hover\\)\\]{background-color:var(--rg-surface-hover)}.bg-\\[var\\(--rg-text-primary\\)\\]{background-color:var(--rg-text-primary)}.bg-\\[var\\(--rg-text-secondary\\)\\]{background-color:var(--rg-text-secondary)}.bg-accent{background-color:var(--color-accent)}.bg-accent-soft{background-color:var(--color-accent-soft)}.bg-bg{background-color:var(--color-bg)}.bg-bg\\/80{background-color:#0b0c0ecc}@supports (color:color-mix(in lab, red, red)){.bg-bg\\/80{background-color:color-mix(in oklab, var(--color-bg) 80%, transparent)}}.bg-border{background-color:var(--color-border)}.bg-current{background-color:currentColor}.bg-danger{background-color:var(--color-danger)}.bg-danger-soft{background-color:var(--color-danger-soft)}.bg-danger\\/10{background-color:#eb57571a}@supports (color:color-mix(in lab, red, red)){.bg-danger\\/10{background-color:color-mix(in oklab, var(--color-danger) 10%, transparent)}}.bg-red-500{background-color:var(--color-red-500)}.bg-success{background-color:var(--color-success)}.bg-surface{background-color:var(--color-surface)}.bg-surface-2{background-color:var(--color-surface-2)}.bg-surface-3{background-color:var(--color-surface-3)}.bg-text-faint{background-color:var(--color-text-faint)}.bg-transparent{background-color:#0000}.bg-warn{background-color:var(--color-warn)}.bg-warn\\/10{background-color:#f2c94c1a}@supports (color:color-mix(in lab, red, red)){.bg-warn\\/10{background-color:color-mix(in oklab, var(--color-warn) 10%, transparent)}}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:var(--spacing)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\\.5{padding:calc(var(--spacing) * 2.5)}.p-6{padding:calc(var(--spacing) * 6)}.px-0{padding-inline:0}.px-0\\.25{padding-inline:calc(var(--spacing) * .25)}.px-1{padding-inline:var(--spacing)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-\\[3px\\]{padding-inline:3px}.py-0{padding-block:0}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-0\\.25{padding-block:calc(var(--spacing) * .25)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-px{padding-block:1px}.pt-0{padding-top:0}.pt-0\\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-1{padding-right:var(--spacing)}.pr-1\\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-1{padding-bottom:var(--spacing)}.pb-1\\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pl-0{padding-left:0}.pl-0\\.5{padding-left:calc(var(--spacing) * .5)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-2\\.5{padding-left:calc(var(--spacing) * 2.5)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-end{text-align:end}.text-justify{text-align:justify}.text-left{text-align:left}.text-right{text-align:right}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.font-serif{font-family:var(--font-serif)}.text-\\[9\\.5px\\]{font-size:9.5px}.text-\\[9px\\]{font-size:9px}.text-\\[10\\.5px\\]{font-size:10.5px}.text-\\[10px\\]{font-size:10px}.text-\\[11\\.5px\\]{font-size:11.5px}.text-\\[11px\\]{font-size:11px}.text-\\[12\\.5px\\]{font-size:12.5px}.text-\\[12px\\]{font-size:12px}.text-\\[13px\\]{font-size:13px}.text-\\[15px\\]{font-size:15px}.leading-3{--tw-leading:calc(var(--spacing) * 3);line-height:calc(var(--spacing) * 3)}.leading-3\\.5{--tw-leading:calc(var(--spacing) * 3.5);line-height:calc(var(--spacing) * 3.5)}.leading-4{--tw-leading:calc(var(--spacing) * 4);line-height:calc(var(--spacing) * 4)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-extralight{--tw-font-weight:var(--font-weight-extralight);font-weight:var(--font-weight-extralight)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin{--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-normal{overflow-wrap:normal;word-break:normal}.break-words,.wrap-break-word{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-break-spaces{white-space:break-spaces}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[var\\(--rg-error-text\\)\\]{color:var(--rg-error-text)}.text-\\[var\\(--rg-submit-fg\\)\\]{color:var(--rg-submit-fg)}.text-\\[var\\(--rg-text-primary\\)\\]{color:var(--rg-text-primary)}.text-\\[var\\(--rg-text-primary-85\\)\\]{color:var(--rg-text-primary-85)}.text-\\[var\\(--rg-text-secondary\\)\\]{color:var(--rg-text-secondary)}.text-accent{color:var(--color-accent)}.text-danger{color:var(--color-danger)}.text-success{color:var(--color-success)}.text-text{color:var(--color-text)}.text-text-dim{color:var(--color-text-dim)}.text-text-faint{color:var(--color-text-faint)}.text-warn{color:var(--color-warn)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.accent-accent{accent-color:var(--color-accent)}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.\\[box-shadow\\:var\\(--rg-shadow\\)\\]{box-shadow:var(--rg-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.\\[filter\\:var\\(--rg-drop-shadow\\)\\]{filter:var(--rg-drop-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-columns\\]{transition-property:grid-template-columns;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[padding\\,border-radius\\,transform\\]{transition-property:padding,border-radius,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[top\\,left\\,width\\,height\\,opacity\\,border-radius\\]{transition-property:top,left,width,height,opacity,border-radius;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,color\\]{transition-property:transform,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,opacity\\]{transition-property:transform,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.delay-\\[80ms\\]{transition-delay:80ms}.duration-60{--tw-duration:60ms;transition-duration:60ms}.duration-75{--tw-duration:75ms;transition-duration:75ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-120{--tw-duration:.12s;transition-duration:.12s}.duration-140{--tw-duration:.14s;transition-duration:.14s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-180{--tw-duration:.18s;transition-duration:.18s}.duration-220{--tw-duration:.22s;transition-duration:.22s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-400{--tw-duration:.4s;transition-duration:.4s}.ease-\\[cubic-bezier\\(0\\,0\\,0\\.2\\,1\\)\\]{--tw-ease:cubic-bezier(0,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1)}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-\\[opacity\\,transform\\]{will-change:opacity,transform}.will-change-transform{will-change:transform}.contain-layout{--tw-contain-layout:layout;contain:var(--tw-contain-size,) var(--tw-contain-layout,) var(--tw-contain-paint,) var(--tw-contain-style,)}.outline-none{--tw-outline-style:none;outline-style:none}.select-all{-webkit-user-select:all;user-select:all}.select-none{-webkit-user-select:none;user-select:none}.\\[corner-shape\\:superellipse\\(1\\.25\\)\\]{corner-shape:superellipse(1.25)}.\\[font-synthesis\\:none\\]{font-synthesis:none}.group-open\\:rotate-90:is(:where(.group):is([open],:popover-open,:open) *){rotate:90deg}@media (hover:hover){.group-hover\\:text-\\[var\\(--rg-text-primary\\)\\]:is(:where(.group):hover *){color:var(--rg-text-primary)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.placeholder\\:text-text-faint::placeholder{color:var(--color-text-faint)}@media (hover:hover){.hover\\:bg-\\[var\\(--rg-error-bg-hover\\)\\]:hover{background-color:var(--rg-error-bg-hover)}.hover\\:bg-\\[var\\(--rg-surface-active\\)\\]:hover{background-color:var(--rg-surface-active)}.hover\\:bg-\\[var\\(--rg-surface-hover\\)\\]:hover{background-color:var(--rg-surface-hover)}.hover\\:bg-accent-hover:hover{background-color:var(--color-accent-hover)}.hover\\:bg-accent\\/50:hover{background-color:#5e6ad280}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-accent\\/50:hover{background-color:color-mix(in oklab, var(--color-accent) 50%, transparent)}}.hover\\:bg-danger\\/30:hover{background-color:#eb57574d}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-danger\\/30:hover{background-color:color-mix(in oklab, var(--color-danger) 30%, transparent)}}.hover\\:bg-surface-2:hover{background-color:var(--color-surface-2)}.hover\\:bg-surface-3:hover{background-color:var(--color-surface-3)}.hover\\:text-\\[var\\(--rg-text-primary\\)\\]:hover{color:var(--rg-text-primary)}.hover\\:text-accent:hover{color:var(--color-accent)}.hover\\:text-danger:hover{color:var(--color-danger)}.hover\\:text-text:hover{color:var(--color-text)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-80:hover{opacity:.8}}.focus\\:border-accent:focus{border-color:var(--color-accent)}.active\\:cursor-grabbing:active{cursor:grabbing}.active\\:bg-accent:active{background-color:var(--color-accent)}.active\\:transition-none:active{transition-property:none}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-surface-3:disabled{background-color:var(--color-surface-3)}.disabled\\:text-text-faint:disabled{color:var(--color-text-faint)}.disabled\\:opacity-40:disabled{opacity:.4}@media (hover:hover){.disabled\\:hover\\:bg-surface-2:disabled:hover{background-color:var(--color-surface-2)}}.data-\\[state\\=on\\]\\:transition-none[data-state=on],.data-\\[state\\=open\\]\\:transition-none[data-state=open],.data-\\[state\\=…\\]\\:transition-none[data-state=…]{transition-property:none}}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}[data-theme=light],:host([data-theme=light]){--color-bg:#fbfbfc;--color-surface:#fff;--color-surface-2:#f4f4f6;--color-surface-3:#e9e9ee;--color-border:#e2e2e8;--color-border-strong:#cfcfd8;--color-text:#1b1c20;--color-text-dim:#5c5f6a;--color-text-faint:#9a9da8;--color-accent-soft:#5e6ad21f;--color-danger-soft:#eb57571a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:light){:root:not([data-theme=dark]){--color-bg:#fbfbfc;--color-surface:#fff;--color-surface-2:#f4f4f6;--color-surface-3:#e9e9ee;--color-border:#e2e2e8;--color-border-strong:#cfcfd8;--color-text:#1b1c20;--color-text-dim:#5c5f6a;--color-text-faint:#9a9da8;--color-accent-soft:#5e6ad21f;--color-danger-soft:#eb57571a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}}body{background-color:var(--color-bg);font-family:var(--font-sans);color:var(--color-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-width:320px;margin:0;font-size:13px}@keyframes geist-spinner-fade{0%{opacity:1}to{opacity:.15}}[data-tip]{position:relative}[data-tip]:hover:after{content:attr(data-tip);color:#fff;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;z-index:60;background:#1b1c20;border-radius:6px;max-width:260px;padding:3px 8px;font-size:10.5px;font-weight:500;line-height:1.35;position:absolute;bottom:calc(100% + 6px);left:50%;overflow:hidden;transform:translate(-50%);box-shadow:0 4px 12px #0000004d}[data-tip][data-tip-pos~=right]:hover:after{left:0;transform:none}[data-tip][data-tip-pos~=left]:hover:after{left:auto;right:0;transform:none}[data-tip][data-tip-pos~=bottom]:hover:after{top:calc(100% + 6px);bottom:auto}.no-scrollbar{scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.lg-md p{margin:0 0 6px}.lg-md p:last-child{margin-bottom:0}.lg-md a{color:var(--color-accent);word-break:break-all;text-decoration:none}.lg-md a:hover{text-decoration:underline}.lg-md code{background:var(--color-surface-2);border:1px solid var(--color-border);font-family:var(--font-mono);border-radius:4px;padding:0 4px;font-size:11px}.lg-md pre{background:var(--color-surface-2);border:1px solid var(--color-border);border-radius:6px;margin:6px 0;padding:8px;overflow-x:auto}.lg-md pre code{white-space:pre;background:0 0;border:none;padding:0;font-size:11px}.lg-md ul,.lg-md ol{flex-direction:column;gap:2px;margin:4px 0 6px;padding-left:18px;display:flex}.lg-md ul{list-style:outside}.lg-md ol{list-style:decimal}.lg-md h4{margin:8px 0 4px;font-size:12px;font-weight:600}.lg-md lg-media{display:block}.lg-md lg-media img,.lg-md lg-media video{border:1px solid var(--color-border);border-radius:6px;max-width:100%;margin:4px 0}.lg-md video{border:1px solid var(--color-border);background:#000;border-radius:6px;max-width:100%;margin:4px 0}.lg-md img{border:1px solid var(--color-border);border-radius:6px;max-width:100%;margin:4px 0}.lg-md strong{font-weight:600}*{scrollbar-width:thin;scrollbar-color:var(--color-border-strong) transparent}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:var(--color-border-strong);border-radius:4px}::-webkit-scrollbar-track{background:0 0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-contain-size{syntax:"*";inherits:false}@property --tw-contain-layout{syntax:"*";inherits:false}@property --tw-contain-paint{syntax:"*";inherits:false}@property --tw-contain-style{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}`;zr();var Z6=P(`<span aria-hidden class="bg-danger size-2 shrink-0 animate-pulse rounded-full">`),Q6=P(`<span class="text-text min-w-[5ch] text-[11px] font-medium tabular-nums">`),$6=P(`<button class="bg-accent hover:bg-accent-hover h-7 cursor-pointer rounded-full px-2.5 text-[11px] font-medium text-white transition-colors"><span class="inline-block min-w-[4ch] text-center">Stop`),e8=P(`<p class="text-warn px-1.5 pt-1 pb-1.5 text-[10.5px] font-semibold tracking-wide uppercase">Needs review`),t8=P(`<div><p class="text-text-dim px-1.5 pt-1 pb-1.5 text-[10.5px] font-semibold tracking-wide uppercase">Running agents`),n8=P(`<div class="fixed z-[2147483646] select-none"><div class="bg-surface border-border text-text flex h-9 cursor-grab items-center gap-1 rounded-full border py-1 pr-1 pl-2.5 font-sans shadow-lg active:cursor-grabbing">`),r8=P(`<div><div title="Drag to resize">`),i8=P(`<button title="Open Linear Grab"aria-label="Open Linear Grab"class="text-accent hover:opacity-80 inline-flex cursor-pointer items-center gap-1.5">`),a8=P(`<span class="bg-border h-4 w-px"aria-hidden>`),o8=P(`<span aria-hidden class="bg-warn size-2 rounded-full">`),s8=P(`<span class="text-warn min-w-[3.5ch] text-left text-[11px] font-medium tabular-nums"> rev`),c8=P(`<button title="Running agents"aria-label="Running agents"class="hover:bg-surface-2 flex h-7 cursor-pointer items-center gap-1.5 rounded-full px-2 transition-colors"><span aria-hidden></span><span>`),l8=P(`<span aria-hidden class="bg-accent size-2 shrink-0 animate-pulse rounded-full">`),u8=P(`<span class="text-text min-w-[3ch] text-[11px] font-medium tabular-nums">s`),d8=P(`<span class="text-text-dim min-w-[7ch] text-[11px] tabular-nums"> states`),f8=P(`<p class="text-text-faint px-1.5 pb-1.5 text-[11.5px]">No agents running right now.`),p8=P(`<button class="hover:bg-surface-2 flex w-full cursor-pointer flex-col gap-0.5 rounded-md px-1.5 py-1.5 text-left transition-colors"><span class="flex min-w-0 items-center gap-1.5"><span aria-hidden class="size-1.5 shrink-0 rounded-full"></span><span class="font-mono text-text-dim shrink-0 text-[10.5px]"></span><span class="text-text truncate text-[11.5px]"></span></span><span class="text-text-faint pl-3 text-[10.5px] tabular-nums"> · <!> · `);function m8(e={}){if(typeof window>`u`||window.__LINEAR_GRAB_PAGE__)return;window.__LINEAR_GRAB_PAGE__=!0;let t=()=>{lk(),z2(),J4(),JZ();let t=document.createElement(`div`);t.id=`linear-grab-root`,document.body.appendChild(t);let n=e=>{let n=e.composedPath();if(!n.includes(t))return;e.stopImmediatePropagation();let r=n[0];e instanceof KeyboardEvent&&r&&r!==t&&r.dispatchEvent(new KeyboardEvent(e.type,{key:e.key,code:e.code,location:e.location,repeat:e.repeat,isComposing:e.isComposing,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,bubbles:!1,cancelable:!1}))};for(let e of[`keydown`,`keyup`,`keypress`])window.addEventListener(e,n,{capture:!0});let r=t.attachShadow({mode:`open`}),i=document.createElement(`style`);i.textContent=X6,r.appendChild(i);let a=document.createElement(`div`);r.appendChild(a);let o=()=>a.setAttribute(`data-theme`,h8());o(),matchMedia(`(prefers-color-scheme: light)`).addEventListener(`change`,o),tt(()=>M(x8,{get defaultOpen(){return e.defaultOpen??!1}}),a)};document.body?t():document.addEventListener(`DOMContentLoaded`,t,{once:!0})}function h8(){try{let e=[document.body,document.documentElement];for(let t of e){let e=getComputedStyle(t).backgroundColor.match(/rgba?\(([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)(?:[,\s/]+([\d.]+))?/);if(!(!e||e[4]!==void 0&&Number(e[4])===0))return .2126*e[1]+.7152*e[2]+.0722*e[3]>140?`light`:`dark`}}catch{}return matchMedia(`(prefers-color-scheme: light)`).matches?`light`:`dark`}var g8=130,_8=36,v8=380,y8=280,b8=720;function x8(e){let[t,n]=T(e.defaultOpen),[r,i]=T(`right`),[a,o]=T({x:Math.max(8,window.innerWidth-g8-24),y:Math.max(8,window.innerHeight-_8-20)}),[s,c]=T({running:[],review:[]}),l=()=>s().running,u=()=>s().review,[d,f]=T(!1),[p,m]=T(HD().phase),[h,g]=T({active:!1,msLeft:0,total:0,byTrigger:{}}),[_,v]=T(0);re(()=>{let e=setInterval(()=>{p()===`recording`&&v(Date.now()-(HD().startedAt??Date.now()))},250);ie(()=>clearInterval(e))});let y=e=>{let t=Math.floor(e/1e3);return`${Math.floor(t/60)}:${String(t%60).padStart(2,`0`)}`},[b,x]=T(null),S=e=>({x:Math.min(Math.max(8,e.x),window.innerWidth-g8-8),y:Math.min(Math.max(8,e.y),window.innerHeight-_8-8)}),C=e=>({x:Math.min(Math.max(8-(te()-80),e.x),window.innerWidth-80),y:Math.min(Math.max(0,e.y),window.innerHeight-80)}),[w,E]=T(!1),[k,ee]=T(`cloud`),[A,j]=T(!1),[te,ne]=T(v8),ae=e=>Math.min(b8,Math.max(y8,Math.min(e,window.innerWidth-60)));O(()=>{let e=document.documentElement,n=t()&&w();e.style.transition=`margin 0.2s ease`,e.style.marginRight=n&&r()===`right`?`${te()}px`:``,e.style.marginLeft=n&&r()===`left`?`${te()}px`:``}),ie(()=>{document.documentElement.style.marginRight=``,document.documentElement.style.marginLeft=``});let oe=()=>{let e=!w();E(e),e&&x(null),Tr({panelMode:e?`pinned`:`overlay`,panelPos:void 0})};re(()=>{wr().then(e=>{e.panelSide&&i(e.panelSide),e.launcherPos&&o(S(e.launcherPos)),e.panelPos&&x(C(e.panelPos)),e.panelWidth&&ne(ae(e.panelWidth)),E(e.panelMode===`pinned`),ee(e.workflowMode??`cloud`)});let e=jr(e=>{e===`settings`&&wr().then(e=>{i(e.panelSide??`right`),E(e.panelMode===`pinned`),ee(e.workflowMode??`cloud`)}),e===`grab`&&k()!==`local`&&n(!0)}),t=()=>{j(!0),setTimeout(()=>j(!1),1600)};window.addEventListener(zZ,t);let r=()=>{f(!1),w()||n(!1)};window.addEventListener(BZ,r);let s=()=>n(!0);window.addEventListener(`linear-grab:picker-finished`,s),ie(()=>{window.removeEventListener(zZ,t),window.removeEventListener(BZ,r),window.removeEventListener(`linear-grab:picker-finished`,s)});let l=e$(c);ie(i2(g));let u=HD().phase,d=UD(e=>{m(e.phase),e.phase===`recording`&&u!==`recording`&&!w()&&n(!1),e.phase===`ready`&&u!==`ready`&&(oj(`capture`),n(!0)),u=e.phase}),p=()=>{o(S(a()));let e=b();e&&x(C(e))};window.addEventListener(`resize`,p),ie(()=>{e(),l(),d(),window.removeEventListener(`resize`,p)})});let se=!1,ce=e=>{if(e.button!==0)return;let t={x:e.clientX,y:e.clientY},n=a();se=!1;let r=e=>{let r=e.clientX-t.x,i=e.clientY-t.y;Math.abs(r)+Math.abs(i)>4&&(se=!0),se&&o(S({x:n.x+r,y:n.y+i}))},i=()=>{window.removeEventListener(`pointermove`,r),window.removeEventListener(`pointerup`,i),se&&Tr({launcherPos:a()}),setTimeout(()=>{se=!1},0)};window.addEventListener(`pointermove`,r),window.addEventListener(`pointerup`,i)},le=()=>a().y>260,ue=e=>{f(!1),oj(`activity`,e),n(!0)},de=e=>{if(e.button!==0)return;e.preventDefault(),e.stopPropagation();let t=e.clientX,n=te(),i=b(),a=e=>{let a=e.clientX-t,o=r()===`right`?-a:a,s=ae(n+o);ne(s),i&&r()===`right`&&x(C({x:i.x+(n-s),y:i.y}))},o=()=>{window.removeEventListener(`pointermove`,a),window.removeEventListener(`pointerup`,o),Tr({panelWidth:te(),...b()?{panelPos:b()}:{}})};window.addEventListener(`pointermove`,a),window.addEventListener(`pointerup`,o)},fe=e=>{if(e.button!==0)return;if(e.detail===2){x(null),Tr({panelPos:void 0});return}let t={x:e.clientX,y:e.clientY},n=b()??{x:r()===`right`?window.innerWidth-te():0,y:0},i=!1,a=e=>{let r=e.clientX-t.x,a=e.clientY-t.y;Math.abs(r)+Math.abs(a)>4&&(i=!0),i&&x(C({x:n.x+r,y:n.y+a}))},o=()=>{window.removeEventListener(`pointermove`,a),window.removeEventListener(`pointerup`,o);let e=b();i&&e&&Tr({panelPos:e})};window.addEventListener(`pointermove`,a),window.addEventListener(`pointerup`,o)};return[M(N,{get when(){return!t()},get children(){var e=n8(),t=e.firstChild;return t.$$click=()=>{se||p()===`recording`||h().active||(f(!1),n(!0))},t.$$pointerdown=ce,F(t,M(N,{get when(){return p()===`recording`||h().active},get fallback(){return[(()=>{var e=i8();return e.$$click=()=>{se||(f(!1),n(!0))},F(e,M(J6,{size:13})),e})(),a8(),(()=>{var e=c8(),t=e.firstChild,n=t.nextSibling;return e.$$click=e=>{e.stopPropagation(),!se&&f(e=>!e)},F(n,(()=>{var e=Qe(()=>!!A());return()=>e()?`Copied ✓`:`${l().length} run`})()),F(e,M(N,{get when(){return Qe(()=>!A())()&&u().length>0},get children(){return[o8(),(()=>{var e=s8(),t=e.firstChild;return F(e,()=>u().length,t),e})()]}}),null),D(e=>{var r=`size-2 rounded-full ${A()?`bg-success`:l().length?`bg-success animate-pulse`:`bg-text-faint`}`,i=`min-w-[3.5ch] text-left text-[11px] font-medium tabular-nums ${A()?`text-success`:`text-text-dim`}`;return r!==e.e&&ot(t,e.e=r),i!==e.t&&ot(n,e.t=i),e},{e:void 0,t:void 0}),e})()]},get children(){return M(N,{get when(){return p()===`recording`},get fallback(){return[l8(),(()=>{var e=u8(),t=e.firstChild;return F(e,()=>Math.ceil(h().msLeft/1e3),t),e})(),(()=>{var e=d8(),t=e.firstChild;return F(e,()=>h().total,t),D(()=>rt(e,`title`,Object.entries(h().byTrigger).map(([e,t])=>`${t} ${e}`).join(` · `)||`hover / open the component to record its states`)),e})(),(()=>{var e=$6();return e.$$click=e=>{e.stopPropagation(),!se&&o2()},e})()]},get children(){return[Z6(),(()=>{var e=Q6();return F(e,()=>y(_())),e})(),(()=>{var e=$6();return e.$$click=()=>{se||eO()},e})()]}})}})),F(e,M(N,{get when(){return d()},get children(){var e=t8(),t=e.firstChild;return F(e,M(N,{get when(){return u().length>0},get children(){return[e8(),M(Ue,{get each(){return u()},children:e=>M(S8,{agent:e,review:!0,onOpen:ue})})]}}),t),F(e,M(N,{get when(){return l().length>0},get fallback(){return f8()},get children(){return M(Ue,{get each(){return l()},children:e=>M(S8,{agent:e,onOpen:ue})})}}),null),D(()=>ot(e,`bg-surface border-border absolute w-72 rounded-lg border p-1.5 font-sans shadow-2xl ${le()?`bottom-full mb-2`:`top-full mt-2`} ${a().x>window.innerWidth-300?`right-0`:`left-0`}`)),e}}),null),D(t=>{var n=`${a().x}px`,r=`${a().y}px`;return n!==t.e&&ut(e,`left`,t.e=n),r!==t.t&&ut(e,`top`,t.t=r),t},{e:void 0,t:void 0}),e}}),M(N,{get when(){return t()},get children(){var e=r8(),t=e.firstChild;return t.$$pointerdown=de,F(e,M(Y6,{onGrab:()=>n(!0),onClose:()=>n(!1),get onHeaderPointerDown(){return w()?void 0:fe},get pinned(){return w()},onTogglePin:oe}),null),D(n=>{var i=`bg-bg text-text border-border fixed z-[2147483645] flex max-w-[100vw] flex-col overflow-hidden font-sans text-[13px] antialiased ${w()?``:`shadow-2xl`} ${!w()&&b()?`rounded-xl border`:r()===`right`?`top-0 right-0 h-screen border-l`:`top-0 left-0 h-screen border-r`}`,a={width:`${te()}px`,...!w()&&b()?{left:`${b().x}px`,top:`${b().y}px`,height:`${Math.min(680,window.innerHeight-16)}px`}:{}},o=`hover:bg-accent/50 active:bg-accent absolute top-0 z-10 h-full w-1 cursor-col-resize transition-colors ${r()===`right`?`left-0`:`right-0`}`;return i!==n.e&&ot(e,n.e=i),n.t=lt(e,a,n.t),o!==n.a&&ot(t,n.a=o),n},{e:void 0,t:void 0,a:void 0}),e}})]}function S8(e){return(()=>{var t=p8(),n=t.firstChild,r=n.firstChild,i=r.nextSibling,a=i.nextSibling,o=n.nextSibling,s=o.firstChild,c=s.nextSibling;return c.nextSibling,t.$$click=()=>e.onOpen(e.agent.id),F(i,()=>e.agent.identifier),F(a,()=>e.agent.title),F(o,(()=>{var t=Qe(()=>!!e.review);return()=>t()?`PR ready · needs review`:e.agent.stateName})(),s),F(o,()=>e.agent.delegateName,c),F(o,()=>C8(e.agent.updatedAt),null),D(t=>ut(r,`background`,e.review?`var(--color-warn)`:e.agent.stateColor)),t})()}function C8(e){let t=Math.max(0,Math.floor((Date.now()-Date.parse(e))/1e3));return t<60?`now`:t<3600?`${Math.floor(t/60)}m`:t<86400?`${Math.floor(t/3600)}h`:`${Math.floor(t/86400)}d`}nt([`pointerdown`,`click`]),m8()})();
282
+ docs/design-tokens.md`,get value(){return n().skillPaths??``},onBlur:e=>{r({skillPaths:e.currentTarget.value.trim()||void 0})}})}}),M(Lj,{label:`Test account`,hint:`The cloud agent logs into the app with this while testing and recording its demo. Added to every issue's Agent instructions. Use a throwaway account — it's visible to everyone who can read the issue.`,get children(){var e=o6();return F(e,M(jj,{placeholder:`Username or email (e.g. demo@yourapp.com)`,get value(){return n().testUsername??``},onBlur:e=>{r({testUsername:e.currentTarget.value.trim()||void 0})}}),null),F(e,M(jj,{type:`password`,placeholder:`Password`,get value(){return n().testPassword??``},onBlur:e=>{r({testPassword:e.currentTarget.value.trim()||void 0})}}),null),e}})]}})}}),null),F(e,M(N,{when:!br,get children(){return M(Rj,{title:`Panel`,get children(){return[(()=>{var e=s6(),t=e.firstChild.nextSibling;return F(t,M(Ue,{each:[{id:`overlay`,label:`Overlay`},{id:`pinned`,label:`Beside page`}],children:e=>(()=>{var t=b6();return t.$$click=()=>void r({panelMode:e.id,panelPos:void 0}),F(t,()=>e.label),D(()=>ot(t,`flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors ${(n().panelMode??`overlay`)===e.id?`bg-surface-3 text-text`:`text-text-dim hover:text-text cursor-pointer`}`)),t})()})),e})(),(()=>{var e=c6(),t=e.firstChild.nextSibling;return F(t,M(Ue,{each:[`left`,`right`],children:e=>(()=>{var t=b6();return t.$$click=()=>void r({panelSide:e}),F(t,e===`left`?`Left`:`Right`),D(()=>ot(t,`flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors ${(n().panelSide??`right`)===e?`bg-surface-3 text-text`:`text-text-dim hover:text-text cursor-pointer`}`)),t})()})),e})()]}})}}),null),F(e,M(Rj,{title:`Local Claude Code`,get children(){return M(Lj,{label:`Bridge URL`,hint:'Run `npx linear-grab-bridge` in your repo\'s terminal (binds localhost only). Enables "Delegate to → Local Claude Code" in Draft, the Local tab, and relays blocked uploads to Linear storage.',get children(){return M(jj,{placeholder:`http://localhost:4577`,get value(){return n().bridgeUrl??``},onBlur:e=>{r({bridgeUrl:e.currentTarget.value.trim()||void 0})}})}})}}),null),F(e,M(Rj,{title:`Project config (.lineargrab.json)`,get children(){return[l6(),(()=>{var e=d6();return F(e,M(N,{get when(){return c.data?.projectConfig},get fallback(){return M(zj,{title:`No .lineargrab.json found at the bridge's cwd (or bridge offline / outdated)`,children:`not detected`})},get children(){return[M(zj,{class:`text-success`,children:`detected`}),M(kj,{variant:`ghost`,class:`h-7 px-2 text-[11px]`,title:`Overwrite your local settings with every value from the repo's config`,onClick:f,children:`Apply all`})]}}),null),F(e,M(kj,{variant:`ghost`,class:`h-7 px-2 text-[11px]`,get title(){return l()?`Copied!`:`Copy your current shareable settings as .lineargrab.json — commit it to the repo root`},onClick:()=>void d(),get children(){var e=u6();return F(e,()=>l()?`Copied ✓`:`Copy config`),e}}),null),e})()]}}),null),F(e,M(Rj,{title:`Asset uploads`,get children(){return[M(Lj,{label:`GitHub token`,hint:`Linear's storage blocks browser uploads in some browsers (Safari). With this set, GIFs/screenshots upload to your GitHub repo instead and embed automatically. Fine-grained PAT with Contents read/write on the assets repo.`,get children(){return M(jj,{type:`password`,placeholder:`github_pat_…`,get value(){return n().githubToken??``},onBlur:e=>{r({githubToken:e.currentTarget.value.trim()||void 0})}})}}),M(Lj,{label:`Assets repository`,hint:`owner/repo — must be PUBLIC so Linear (and agents) can render the images. Files land under linear-grab/.`,get children(){return M(jj,{placeholder:`ahmedbanihanibh/linear-grab-assets`,get value(){return n().githubAssetsRepo??``},onBlur:e=>{r({githubAssetsRepo:e.currentTarget.value.trim()||void 0})}})}})]}}),null),F(e,M(Rj,{title:`Notifications`,get children(){return[M(Lj,{label:`Slack bot token`,hint:`Bot token (xoxb-…) with chat:write + channels:read + files:write. New issues get announced with links + demo, and the AGENT receives the token to post its finished demo video itself.`,get children(){return M(jj,{type:`password`,placeholder:`xoxb-…`,get value(){return n().slackToken??``},onBlur:e=>{r({slackToken:e.currentTarget.value.trim()||void 0})}})}}),M(N,{get when(){return n().slackToken},get children(){return M(Lj,{label:`Slack channel`,get children(){return M(N,{get when(){return!ie.isError},get fallback(){return M(Hj,{message:`Couldn't list channels — check the token scopes (channels:read).`})},get children(){return M(Nj,{get value(){return n().slackChannelId??``},get disabled(){return ie.isLoading},onChange:e=>{let t=e.currentTarget.value,n=ie.data?.find(e=>e.id===t);r({slackChannelId:t||void 0,slackChannelName:n?.name})},get children(){return[f6(),M(Ue,{get each(){return ie.data??[]},children:e=>(()=>{var t=A6();return t.firstChild,F(t,()=>e.name,null),D(()=>t.selected=e.id===n().slackChannelId),D(()=>t.value=e.id),t})()})]}})}})}})}}),M(Lj,{label:`Telegram bot token`,hint:`From @BotFather. The agent also receives it to send the demo video (sendVideo).`,get children(){return M(jj,{type:`password`,placeholder:`123456:ABC-…`,get value(){return n().telegramToken??``},onBlur:e=>{r({telegramToken:e.currentTarget.value.trim()||void 0})}})}}),M(N,{get when(){return n().telegramToken},get children(){return M(Lj,{label:`Telegram chat ID`,hint:`Add the bot to your group/channel, send a message, then read the chat id from api.telegram.org/bot<token>/getUpdates.`,get children(){return M(jj,{placeholder:`-1001234567890`,get value(){return n().telegramChatId??``},onBlur:e=>{r({telegramChatId:e.currentTarget.value.trim()||void 0})}})}})}}),(()=>{var e=p6(),t=e.firstChild;return t.addEventListener(`change`,e=>void r({notifyOnCreate:e.currentTarget.checked?void 0:!1})),D(()=>t.checked=n().notifyOnCreate!==!1),e})(),m6()]}}),null),F(e,M(Rj,{title:`AI providers`,get children(){return[M(Lj,{label:`OpenAI API key`,get children(){return M(jj,{type:`password`,placeholder:`sk-…`,get value(){return n().openaiKey??``},onBlur:e=>{r({openaiKey:e.currentTarget.value.trim()||void 0})}})}}),M(Lj,{label:`Anthropic API key`,get children(){return M(jj,{type:`password`,placeholder:`sk-ant-…`,get value(){return n().anthropicKey??``},onBlur:e=>{r({anthropicKey:e.currentTarget.value.trim()||void 0})}})}}),(()=>{var e=h6(),t=e.firstChild.nextSibling.firstChild,i=t.nextSibling,a=i.nextSibling;return t.$$click=()=>void r({preferredProvider:void 0}),i.$$click=()=>void r({preferredProvider:`openai`}),a.$$click=()=>void r({preferredProvider:`anthropic`}),D(e=>{var r=`flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors ${n().preferredProvider===void 0?`bg-surface-3 text-text`:`text-text-dim hover:text-text cursor-pointer`}`,o=`flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors disabled:cursor-not-allowed ${n().preferredProvider===`openai`?`bg-surface-3 text-text`:`text-text-dim hover:text-text cursor-pointer disabled:text-text-faint`}`,s=!n().openaiKey,c=`flex-1 rounded-[5px] px-2 py-0.5 text-[11.5px] font-medium transition-colors disabled:cursor-not-allowed ${n().preferredProvider===`anthropic`?`bg-surface-3 text-text`:`text-text-dim hover:text-text cursor-pointer disabled:text-text-faint`}`,l=!n().anthropicKey;return r!==e.e&&ot(t,e.e=r),o!==e.t&&ot(i,e.t=o),s!==e.a&&(i.disabled=e.a=s),c!==e.o&&ot(a,e.o=c),l!==e.i&&(a.disabled=e.i=l),e},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),e})(),(()=>{var e=_6();return F(e,M(N,{get when(){return oe()},get fallback(){return j6()},get children(){var e=g6();return F(e,oe),e}})),e})()]}}),null),F(e,M(Rj,{title:`How it works`,get children(){return v6()}}),null),e})()}nt([`click`]);var N6=`linear-grab`,P6=`queries`,F6=[`my-issues`,`issue`,`sessions`,`teams`,`agents`];function I6(){return new Promise(e=>{try{let t=indexedDB.open(N6,1);t.onupgradeneeded=()=>t.result.createObjectStore(P6),t.onsuccess=()=>e(t.result),t.onerror=()=>e(null)}catch{e(null)}})}function L6(e){return typeof e[0]==`string`&&F6.includes(e[0])}async function R6(e){let t=await I6();if(!t)return()=>{};await new Promise(n=>{try{let r=t.transaction(P6,`readonly`).objectStore(P6).openCursor();r.onsuccess=()=>{let t=r.result;if(!t)return n();try{let{queryKey:n,data:r}=t.value;L6(n)&&e.getQueryData(n)===void 0&&e.setQueryData(n,r,{updatedAt:0})}catch{}t.continue()},r.onerror=()=>n()}catch{n()}});let n=new Map,r=e.getQueryCache().subscribe(r=>{if(r.type!==`updated`||r.action.type!==`success`)return;let{queryKey:i,queryHash:a}=r.query;if(!L6(i))return;let o=n.get(a);o&&clearTimeout(o),n.set(a,setTimeout(()=>{n.delete(a);try{let n=e.getQueryData(i);if(n===void 0)return;t.transaction(P6,`readwrite`).objectStore(P6).put({queryKey:i,data:n},a)}catch{}},400))});return()=>{r();for(let e of n.values())clearTimeout(e);t.close()}}zr();var z6=P(`<svg viewBox="0 0 100 100"fill=currentColor aria-hidden><path d="M1.22541 61.5228c-.2225-.9485.90748-1.5459 1.59638-.857L39.3342 97.1782c.6889.6889.0915 1.8189-.857 1.5964C20.0515 94.4522 5.54779 79.9485 1.22541 61.5228ZM.00189135 46.8891c-.01764375.2833.08887215.5599.28957165.7606L52.3503 99.7085c.2007.2007.4773.3075.7606.2896 2.3692-.1476 4.6938-.46 6.9624-.9259.7645-.157 1.0301-1.0963.4782-1.6481L2.57595 39.4485c-.55186-.5519-1.49117-.2863-1.648174.4782-.465915 2.2686-.77832 4.5932-.92588465 6.9624ZM4.21093 29.7054c-.16649.3738-.08169.8106.20765 1.1l64.77602 64.776c.2894.2894.7262.3742 1.1.2077 1.7861-.7956 3.5171-1.6927 5.1855-2.684.5521-.328.6373-1.0867.1832-1.5407L8.43566 24.3367c-.45409-.4541-1.21271-.3689-1.54074.1832-.99132 1.6684-1.88843 3.3994-2.68399 5.1855ZM12.6587 18.074c-.3701-.3701-.393-.9637-.0443-1.3541C21.7795 6.45931 35.1114 0 49.9519 0 77.5927 0 100 22.4073 100 50.0481c0 14.8405-6.4593 28.1724-16.7199 37.3375-.3903.3487-.984.3258-1.3541-.0443L12.6587 18.074Z">`),B6=P(`<button><svg width=12 height=12 viewBox="0 0 16 16"fill=none stroke=currentColor stroke-width=1.5 aria-hidden><rect x=1.5 y=2.5 width=13 height=11 rx=1.5></rect><path d="M10 2.5v11">`),V6=P(`<button aria-label="Minimize to launcher"title="Minimize to launcher"class="text-text-dim hover:text-text hover:bg-surface-3 grid size-6 shrink-0 cursor-pointer place-items-center rounded-md text-[15px] leading-none transition-colors">–`),H6=P(`<div class="bg-bg text-text flex h-full flex-col"><header><span class="text-accent mr-0.5 inline-flex shrink-0"title="Linear Grab"></span><div class="no-scrollbar flex min-w-0 flex-1 items-center gap-1 overflow-x-auto"></div></header><main class="min-h-0 flex-1"><div class=h-full></div><div class=h-full></div><div class=h-full></div><div class=h-full></div><div class=h-full></div><div class=h-full></div><div class=h-full></div><div class=h-full></div><div class=h-full>`),U6=P(`<button>`),W6=[{id:`draft`,label:`Draft`},{id:`capture`,label:`Capture`},{id:`activity`,label:`Activity`},{id:`running`,label:`Running`},{id:`cloud`,label:`Cloud`},{id:`local`,label:`Local`},{id:`prs`,label:`PRs`},{id:`design`,label:`Design`},{id:`settings`,label:`Settings`}],G6=new Set;function K6(e,t,n){if(G6.has(e)||typeof Notification>`u`)return;G6.add(e);let r=()=>new Notification(t,{body:n});Notification.permission===`granted`?r():Notification.permission==="default"&&Notification.requestPermission().then(e=>e===`granted`&&r())}function q6(){setInterval(()=>{NO().then(e=>{for(let t of e){if(t.status!==`running`)continue;let e=t.lastEventAt??t.startedAt;Date.now()-e>10*6e4&&K6(`local-stuck:${t.id}:${e}`,`Local agent may be stuck`,`${t.title.slice(0,80)} — no output for ${Math.round((Date.now()-e)/6e4)}m. Nudge or interrupt it in the Local tab.`)}}).catch(()=>{}),gO().then(e=>{for(let t of e)/awaitingInput|elicit/i.test(t.status)&&K6(`cloud-input:${t.id}`,`Cloud agent needs input`,`${t.issue?.identifier??`Session`} — ${t.issue?.title?.slice(0,80)??`a Cursor agent`} is waiting for you.`)}).catch(()=>{})},6e4)}q6();var J6=new hr({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1,staleTime:5e3}}});function Y6(e){return(()=>{var t=z6();return D(n=>{var r=e.size??14,i=e.size??14;return r!==n.e&&rt(t,`width`,n.e=r),i!==n.t&&rt(t,`height`,n.t=i),n},{e:void 0,t:void 0}),t})()}function X6(e){let[t,n]=T(`draft`),r=()=>{J6.invalidateQueries({queryKey:[`grab`]}),cj()===`capture`&&n(`capture`),e.onGrab?.()};return O(()=>{let e=nj();e&&n(e)}),re(()=>{let e=R6(J6),t=XZ(r),n=()=>{JO().then(y$),VO(),MO().then(async e=>{if(!e.projectConfig)return;let t=W3(await wr(),e.projectConfig);t&&await Tr(t)}).catch(()=>{})};n();let i=jr(e=>{e===`settings`&&(J6.invalidateQueries({queryKey:[`settings`]}),n()),e===`grab`&&r()});ie(()=>{t(),i(),e.then(e=>e())})}),M(sr,{client:J6,get children(){var r=H6(),i=r.firstChild,a=i.firstChild,o=a.nextSibling,s=i.nextSibling.firstChild,c=s.nextSibling,l=c.nextSibling,u=l.nextSibling,d=u.nextSibling,f=d.nextSibling,p=f.nextSibling,m=p.nextSibling,h=m.nextSibling;return i.$$pointerdown=t=>e.onHeaderPointerDown?.(t),F(a,M(Y6,{size:14})),F(o,M(Ue,{each:W6,children:e=>(()=>{var r=U6();return r.$$click=()=>n(e.id),F(r,()=>e.label),D(()=>ot(r,`h-6 shrink-0 rounded-md px-2 text-[12px] font-medium whitespace-nowrap transition-colors ${t()===e.id?`bg-surface-3 text-text`:`text-text-dim hover:text-text cursor-pointer`}`)),r})()})),F(i,M(N,{get when(){return e.onTogglePin},get children(){var t=B6();return t.$$click=()=>e.onTogglePin?.(),D(n=>{var r=e.pinned?`Switch to overlay`:`Dock beside page`,i=e.pinned?`Overlay the page`:`Dock beside page (squeezes the app, DevTools-style)`,a=`hover:bg-surface-3 grid size-6 shrink-0 cursor-pointer place-items-center rounded-md transition-colors ${e.pinned?`text-accent`:`text-text-dim hover:text-text`}`;return r!==n.e&&rt(t,`aria-label`,n.e=r),i!==n.t&&rt(t,`title`,n.t=i),a!==n.a&&ot(t,n.a=a),n},{e:void 0,t:void 0,a:void 0}),t}}),null),F(i,M(N,{get when(){return e.onClose},get children(){var t=V6();return t.$$click=()=>e.onClose?.(),t}}),null),F(s,M(wM,{onCreated:()=>n(`activity`)})),F(c,M(TQ,{})),F(l,M(_1,{})),F(u,M(B1,{})),F(d,M(P1,{})),F(f,M(T0,{})),F(p,M(B0,{onOpenIssue:()=>n(`activity`)})),F(m,M(V3,{})),F(h,M(M6,{})),D(n=>{var r=`border-border bg-surface flex shrink-0 items-center gap-1 border-b px-2 py-1.5 select-none ${e.onHeaderPointerDown?`cursor-grab active:cursor-grabbing`:``}`,a=t()!==`draft`,o=t()!==`capture`,g=t()!==`activity`,_=t()!==`running`,v=t()!==`cloud`,y=t()!==`local`,b=t()!==`prs`,x=t()!==`design`,S=t()!==`settings`;return r!==n.e&&ot(i,n.e=r),a!==n.t&&s.classList.toggle(`hidden`,n.t=a),o!==n.a&&c.classList.toggle(`hidden`,n.a=o),g!==n.o&&l.classList.toggle(`hidden`,n.o=g),_!==n.i&&u.classList.toggle(`hidden`,n.i=_),v!==n.n&&d.classList.toggle(`hidden`,n.n=v),y!==n.s&&f.classList.toggle(`hidden`,n.s=y),b!==n.h&&p.classList.toggle(`hidden`,n.h=b),x!==n.r&&m.classList.toggle(`hidden`,n.r=x),S!==n.d&&h.classList.toggle(`hidden`,n.d=S),n},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0}),r}})}nt([`pointerdown`,`click`]);var Z6=`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */
283
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-contain-size:initial;--tw-contain-layout:initial;--tw-contain-paint:initial;--tw-contain-style:initial}}}@layer theme{:root,:host{--font-sans:"Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;--font-serif:ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;--font-mono:ui-monospace, "SF Mono", Menlo, monospace;--color-red-500:oklch(63.7% .237 25.331);--color-white:#fff;--spacing:.25rem;--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-wide:.025em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-sm:4px;--radius-md:6px;--radius-lg:10px;--radius-xl:.75rem;--ease-in:cubic-bezier(.4, 0, 1, 1);--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-bg:#0b0c0e;--color-surface:#141517;--color-surface-2:#1c1d21;--color-surface-3:#24262b;--color-border:#26282d;--color-border-strong:#34363d;--color-text:#e8e9eb;--color-text-dim:#8b8e98;--color-text-faint:#5c5f6a;--color-accent:#5e6ad2;--color-accent-hover:#6e79e0;--color-accent-soft:#5e6ad226;--color-success:#4cb782;--color-warn:#f2c94c;--color-danger:#eb5757;--color-danger-soft:#eb575726}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{inset-block:0}.-top-0{top:0}.-top-0\\.5{top:calc(var(--spacing) * -.5)}.top-0{top:0}.top-0\\.5{top:calc(var(--spacing) * .5)}.top-1{top:var(--spacing)}.top-1\\/2{top:50%}.top-3{top:calc(var(--spacing) * 3)}.top-\\[2px\\]{top:2px}.top-full{top:100%}.-right-0{right:0}.-right-0\\.5{right:calc(var(--spacing) * -.5)}.right-0{right:0}.right-0\\.5{right:calc(var(--spacing) * .5)}.right-4{right:calc(var(--spacing) * 4)}.right-full{right:100%}.bottom-0{bottom:0}.bottom-1{bottom:var(--spacing)}.bottom-4{bottom:calc(var(--spacing) * 4)}.bottom-\\[2px\\]{bottom:2px}.bottom-full{bottom:100%}.-left-\\[13\\.5px\\]{left:-13.5px}.left-0{left:0}.left-1{left:var(--spacing)}.left-1\\/2{left:50%}.left-\\[5px\\]{left:5px}.left-full{left:100%}.z-1{z-index:1}.z-10{z-index:10}.z-\\[2147483645\\]{z-index:2147483645}.z-\\[2147483646\\]{z-index:2147483646}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.-m-0{margin:0}.-m-0\\.5{margin:calc(var(--spacing) * -.5)}.-m-4{margin:calc(var(--spacing) * -4)}.m-0{margin:0}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.-my-1{margin-block:calc(var(--spacing) * -1)}.-my-1\\.5{margin-block:calc(var(--spacing) * -1.5)}.mt-0{margin-top:0}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-2\\.5{margin-top:calc(var(--spacing) * 2.5)}.mt-px{margin-top:1px}.mr-0{margin-right:0}.mr-0\\.5{margin-right:calc(var(--spacing) * .5)}.mr-1{margin-right:var(--spacing)}.mr-1\\.5{margin-right:calc(var(--spacing) * 1.5)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mr-2\\.5{margin-right:calc(var(--spacing) * 2.5)}.-mb-4{margin-bottom:calc(var(--spacing) * -4)}.mb-0{margin-bottom:0}.mb-0\\.5{margin-bottom:calc(var(--spacing) * .5)}.mb-1{margin-bottom:var(--spacing)}.mb-1\\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-2\\.5{margin-bottom:calc(var(--spacing) * 2.5)}.ml-1{margin-left:var(--spacing)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-2\\.5{margin-left:calc(var(--spacing) * 2.5)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-auto{margin-left:auto}.ml-px{margin-left:1px}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-5{-webkit-line-clamp:5;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.list-item{display:list-item}.table{display:table}.size-0{width:0;height:0}.size-1{width:var(--spacing);height:var(--spacing)}.size-1\\.5{width:calc(var(--spacing) * 1.5);height:calc(var(--spacing) * 1.5)}.size-2{width:calc(var(--spacing) * 2);height:calc(var(--spacing) * 2)}.size-2\\.5{width:calc(var(--spacing) * 2.5);height:calc(var(--spacing) * 2.5)}.size-3{width:calc(var(--spacing) * 3);height:calc(var(--spacing) * 3)}.size-4{width:calc(var(--spacing) * 4);height:calc(var(--spacing) * 4)}.size-6{width:calc(var(--spacing) * 6);height:calc(var(--spacing) * 6)}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.size-\\[9px\\]{width:9px;height:9px}.size-\\[12px\\]{width:12px;height:12px}.size-\\[16px\\]{width:16px;height:16px}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-16{height:calc(var(--spacing) * 16)}.h-\\[8px\\]{height:8px}.h-\\[17px\\]{height:17px}.h-\\[18px\\]{height:18px}.h-\\[20px\\]{height:20px}.h-\\[24px\\]{height:24px}.h-fit{height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.max-h-32{max-height:calc(var(--spacing) * 32)}.max-h-40{max-height:calc(var(--spacing) * 40)}.max-h-44{max-height:calc(var(--spacing) * 44)}.max-h-56{max-height:calc(var(--spacing) * 56)}.max-h-64{max-height:calc(var(--spacing) * 64)}.max-h-72{max-height:calc(var(--spacing) * 72)}.max-h-80{max-height:calc(var(--spacing) * 80)}.max-h-\\[var\\(--rg-edit-list-max-h\\)\\]{max-height:var(--rg-edit-list-max-h)}.min-h-0{min-height:0}.min-h-4{min-height:calc(var(--spacing) * 4)}.min-h-\\[2lh\\]{min-height:2lh}.min-h-\\[28px\\]{min-height:28px}.w-1{width:var(--spacing)}.w-3{width:calc(var(--spacing) * 3)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-16{width:calc(var(--spacing) * 16)}.w-28{width:calc(var(--spacing) * 28)}.w-72{width:calc(var(--spacing) * 72)}.w-\\[2px\\]{width:2px}.w-\\[Npx\\]{width:Npx}.w-\\[calc\\(100\\%\\+16px\\)\\]{width:calc(100% + 16px)}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-px{width:1px}.max-w-\\[55\\%\\]{max-width:55%}.max-w-\\[100vw\\]{max-width:100vw}.max-w-\\[110px\\]{max-width:110px}.max-w-\\[280px\\]{max-width:280px}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-\\[3\\.5ch\\]{min-width:3.5ch}.min-w-\\[3ch\\]{min-width:3ch}.min-w-\\[4ch\\]{min-width:4ch}.min-w-\\[5ch\\]{min-width:5ch}.min-w-\\[6ch\\]{min-width:6ch}.min-w-\\[7ch\\]{min-width:7ch}.min-w-\\[8ch\\]{min-width:8ch}.min-w-\\[10ch\\]{min-width:10ch}.min-w-\\[12ch\\]{min-width:12ch}.min-w-\\[36px\\]{min-width:36px}.min-w-\\[52px\\]{min-width:52px}.min-w-\\[100px\\]{min-width:100px}.min-w-\\[150px\\]{min-width:150px}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.-rotate-90{rotate:-90deg}.rotate-0{rotate:0deg}.rotate-90{rotate:90deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.resize-none{resize:none}.resize-y{resize:vertical}.list-decimal{list-style-type:decimal}.grid-cols-\\[0fr\\]{grid-template-columns:0fr}.grid-cols-\\[1fr\\]{grid-template-columns:1fr}.grid-rows-\\[0fr\\]{grid-template-rows:0fr}.grid-rows-\\[1fr\\]{grid-template-rows:1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0{gap:0}.gap-0\\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:var(--spacing)}.gap-1\\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-\\[5px\\]{gap:5px}.self-end{align-self:flex-end}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-clip{overflow:clip}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-\\[1px\\]{border-radius:1px}.rounded-\\[3px\\]{border-radius:3px}.rounded-\\[4px\\]{border-radius:4px}.rounded-\\[5px\\]{border-radius:5px}.rounded-\\[6px\\]{border-radius:6px}.rounded-\\[13px\\]{border-radius:13px}.rounded-\\[14px\\]{border-radius:14px}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-\\[10px\\]{border-top-left-radius:10px;border-bottom-left-radius:10px}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-tl{border-top-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-r-\\[10px\\]{border-top-right-radius:10px;border-bottom-right-radius:10px}.rounded-r-none{border-top-right-radius:0;border-bottom-right-radius:0}.rounded-tr{border-top-right-radius:.25rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-\\[6px\\]{border-bottom-right-radius:6px;border-bottom-left-radius:6px}.rounded-b-\\[10px\\]{border-bottom-right-radius:10px;border-bottom-left-radius:10px}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-br{border-bottom-right-radius:.25rem}.rounded-bl{border-bottom-left-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.\\[border-width\\:0\\.5px\\]{border-width:.5px}.border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-s{border-inline-start-style:var(--tw-border-style);border-inline-start-width:1px}.border-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-4{border-top-style:var(--tw-border-style);border-top-width:4px}.\\[border-top-width\\:0\\.5px\\]{border-top-width:.5px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-dotted{--tw-border-style:dotted;border-style:dotted}.border-none{--tw-border-style:none;border-style:none}.border-solid{--tw-border-style:solid;border-style:solid}.border-\\[var\\(--rg-border-button\\)\\]{border-color:var(--rg-border-button)}.border-accent{border-color:var(--color-accent)}.border-accent\\/40{border-color:#5e6ad266}@supports (color:color-mix(in lab, red, red)){.border-accent\\/40{border-color:color-mix(in oklab, var(--color-accent) 40%, transparent)}}.border-border{border-color:var(--color-border)}.border-danger{border-color:var(--color-danger)}.border-danger\\/40{border-color:#eb575766}@supports (color:color-mix(in lab, red, red)){.border-danger\\/40{border-color:color-mix(in oklab, var(--color-danger) 40%, transparent)}}.border-success{border-color:var(--color-success)}.border-success\\/40{border-color:#4cb78266}@supports (color:color-mix(in lab, red, red)){.border-success\\/40{border-color:color-mix(in oklab, var(--color-success) 40%, transparent)}}.border-text-dim{border-color:var(--color-text-dim)}.border-transparent{border-color:#0000}.border-warn{border-color:var(--color-warn)}.border-warn\\/40{border-color:#f2c94c66}@supports (color:color-mix(in lab, red, red)){.border-warn\\/40{border-color:color-mix(in oklab, var(--color-warn) 40%, transparent)}}.border-t-\\[var\\(--rg-border-subtle\\)\\]{border-top-color:var(--rg-border-subtle)}.border-t-transparent{border-top-color:#0000}.bg-\\[var\\(--rg-error-bg\\)\\]{background-color:var(--rg-error-bg)}.bg-\\[var\\(--rg-panel-bg\\)\\]{background-color:var(--rg-panel-bg)}.bg-\\[var\\(--rg-submit-bg\\)\\]{background-color:var(--rg-submit-bg)}.bg-\\[var\\(--rg-surface-active\\)\\]{background-color:var(--rg-surface-active)}.bg-\\[var\\(--rg-surface-hover\\)\\]{background-color:var(--rg-surface-hover)}.bg-\\[var\\(--rg-text-primary\\)\\]{background-color:var(--rg-text-primary)}.bg-\\[var\\(--rg-text-secondary\\)\\]{background-color:var(--rg-text-secondary)}.bg-accent{background-color:var(--color-accent)}.bg-accent-soft{background-color:var(--color-accent-soft)}.bg-bg{background-color:var(--color-bg)}.bg-bg\\/80{background-color:#0b0c0ecc}@supports (color:color-mix(in lab, red, red)){.bg-bg\\/80{background-color:color-mix(in oklab, var(--color-bg) 80%, transparent)}}.bg-border{background-color:var(--color-border)}.bg-current{background-color:currentColor}.bg-danger{background-color:var(--color-danger)}.bg-danger-soft{background-color:var(--color-danger-soft)}.bg-danger\\/10{background-color:#eb57571a}@supports (color:color-mix(in lab, red, red)){.bg-danger\\/10{background-color:color-mix(in oklab, var(--color-danger) 10%, transparent)}}.bg-red-500{background-color:var(--color-red-500)}.bg-success{background-color:var(--color-success)}.bg-surface{background-color:var(--color-surface)}.bg-surface-2{background-color:var(--color-surface-2)}.bg-surface-3{background-color:var(--color-surface-3)}.bg-text-faint{background-color:var(--color-text-faint)}.bg-transparent{background-color:#0000}.bg-warn{background-color:var(--color-warn)}.bg-warn\\/10{background-color:#f2c94c1a}@supports (color:color-mix(in lab, red, red)){.bg-warn\\/10{background-color:color-mix(in oklab, var(--color-warn) 10%, transparent)}}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-1{padding:var(--spacing)}.p-1\\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-2\\.5{padding:calc(var(--spacing) * 2.5)}.p-6{padding:calc(var(--spacing) * 6)}.px-0{padding-inline:0}.px-0\\.25{padding-inline:calc(var(--spacing) * .25)}.px-1{padding-inline:var(--spacing)}.px-1\\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-\\[3px\\]{padding-inline:3px}.py-0{padding-block:0}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-0\\.25{padding-block:calc(var(--spacing) * .25)}.py-1{padding-block:var(--spacing)}.py-1\\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-px{padding-block:1px}.pt-0{padding-top:0}.pt-0\\.5{padding-top:calc(var(--spacing) * .5)}.pt-1{padding-top:var(--spacing)}.pt-1\\.5{padding-top:calc(var(--spacing) * 1.5)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-2\\.5{padding-top:calc(var(--spacing) * 2.5)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pr-1{padding-right:var(--spacing)}.pr-1\\.5{padding-right:calc(var(--spacing) * 1.5)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-1{padding-bottom:var(--spacing)}.pb-1\\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-3{padding-bottom:calc(var(--spacing) * 3)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pl-0{padding-left:0}.pl-0\\.5{padding-left:calc(var(--spacing) * .5)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-2\\.5{padding-left:calc(var(--spacing) * 2.5)}.pl-3{padding-left:calc(var(--spacing) * 3)}.pl-4{padding-left:calc(var(--spacing) * 4)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-end{text-align:end}.text-justify{text-align:justify}.text-left{text-align:left}.text-right{text-align:right}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.font-serif{font-family:var(--font-serif)}.text-\\[9\\.5px\\]{font-size:9.5px}.text-\\[9px\\]{font-size:9px}.text-\\[10\\.5px\\]{font-size:10.5px}.text-\\[10px\\]{font-size:10px}.text-\\[11\\.5px\\]{font-size:11.5px}.text-\\[11px\\]{font-size:11px}.text-\\[12\\.5px\\]{font-size:12.5px}.text-\\[12px\\]{font-size:12px}.text-\\[13px\\]{font-size:13px}.text-\\[15px\\]{font-size:15px}.leading-3{--tw-leading:calc(var(--spacing) * 3);line-height:calc(var(--spacing) * 3)}.leading-3\\.5{--tw-leading:calc(var(--spacing) * 3.5);line-height:calc(var(--spacing) * 3.5)}.leading-4{--tw-leading:calc(var(--spacing) * 4);line-height:calc(var(--spacing) * 4)}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-extralight{--tw-font-weight:var(--font-weight-extralight);font-weight:var(--font-weight-extralight)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin{--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.break-normal{overflow-wrap:normal;word-break:normal}.break-words,.wrap-break-word{overflow-wrap:break-word}.break-all{word-break:break-all}.break-keep{word-break:keep-all}.text-ellipsis{text-overflow:ellipsis}.whitespace-break-spaces{white-space:break-spaces}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.text-\\[var\\(--rg-error-text\\)\\]{color:var(--rg-error-text)}.text-\\[var\\(--rg-submit-fg\\)\\]{color:var(--rg-submit-fg)}.text-\\[var\\(--rg-text-primary\\)\\]{color:var(--rg-text-primary)}.text-\\[var\\(--rg-text-primary-85\\)\\]{color:var(--rg-text-primary-85)}.text-\\[var\\(--rg-text-secondary\\)\\]{color:var(--rg-text-secondary)}.text-accent{color:var(--color-accent)}.text-danger{color:var(--color-danger)}.text-success{color:var(--color-success)}.text-text{color:var(--color-text)}.text-text-dim{color:var(--color-text-dim)}.text-text-faint{color:var(--color-text-faint)}.text-warn{color:var(--color-warn)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.normal-case{text-transform:none}.uppercase{text-transform:uppercase}.italic{font-style:italic}.not-italic{font-style:normal}.lining-nums{--tw-numeric-figure:lining-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.oldstyle-nums{--tw-numeric-figure:oldstyle-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.proportional-nums{--tw-numeric-spacing:proportional-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.slashed-zero{--tw-slashed-zero:slashed-zero;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.line-through{text-decoration-line:line-through}.no-underline{text-decoration-line:none}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.accent-accent{accent-color:var(--color-accent)}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.\\[box-shadow\\:var\\(--rg-shadow\\)\\]{box-shadow:var(--rg-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.\\[filter\\:var\\(--rg-drop-shadow\\)\\]{filter:var(--rg-drop-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-columns\\]{transition-property:grid-template-columns;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[grid-template-rows\\]{transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[opacity\\,transform\\]{transition-property:opacity,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[padding\\,border-radius\\,transform\\]{transition-property:padding,border-radius,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[top\\,left\\,width\\,height\\,opacity\\,border-radius\\]{transition-property:top,left,width,height,opacity,border-radius;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,color\\]{transition-property:transform,color;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\\[transform\\,opacity\\]{transition-property:transform,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.delay-\\[80ms\\]{transition-delay:80ms}.duration-60{--tw-duration:60ms;transition-duration:60ms}.duration-75{--tw-duration:75ms;transition-duration:75ms}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-120{--tw-duration:.12s;transition-duration:.12s}.duration-140{--tw-duration:.14s;transition-duration:.14s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-180{--tw-duration:.18s;transition-duration:.18s}.duration-220{--tw-duration:.22s;transition-duration:.22s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-400{--tw-duration:.4s;transition-duration:.4s}.ease-\\[cubic-bezier\\(0\\,0\\,0\\.2\\,1\\)\\]{--tw-ease:cubic-bezier(0,0,.2,1);transition-timing-function:cubic-bezier(0,0,.2,1)}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.will-change-\\[opacity\\,transform\\]{will-change:opacity,transform}.will-change-transform{will-change:transform}.contain-layout{--tw-contain-layout:layout;contain:var(--tw-contain-size,) var(--tw-contain-layout,) var(--tw-contain-paint,) var(--tw-contain-style,)}.outline-none{--tw-outline-style:none;outline-style:none}.select-all{-webkit-user-select:all;user-select:all}.select-none{-webkit-user-select:none;user-select:none}.\\[corner-shape\\:superellipse\\(1\\.25\\)\\]{corner-shape:superellipse(1.25)}.\\[font-synthesis\\:none\\]{font-synthesis:none}.group-open\\:rotate-90:is(:where(.group):is([open],:popover-open,:open) *){rotate:90deg}@media (hover:hover){.group-hover\\:text-\\[var\\(--rg-text-primary\\)\\]:is(:where(.group):hover *){color:var(--rg-text-primary)}.group-hover\\:opacity-100:is(:where(.group):hover *){opacity:1}}.placeholder\\:text-text-faint::placeholder{color:var(--color-text-faint)}@media (hover:hover){.hover\\:bg-\\[var\\(--rg-error-bg-hover\\)\\]:hover{background-color:var(--rg-error-bg-hover)}.hover\\:bg-\\[var\\(--rg-surface-active\\)\\]:hover{background-color:var(--rg-surface-active)}.hover\\:bg-\\[var\\(--rg-surface-hover\\)\\]:hover{background-color:var(--rg-surface-hover)}.hover\\:bg-accent-hover:hover{background-color:var(--color-accent-hover)}.hover\\:bg-accent\\/50:hover{background-color:#5e6ad280}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-accent\\/50:hover{background-color:color-mix(in oklab, var(--color-accent) 50%, transparent)}}.hover\\:bg-danger\\/30:hover{background-color:#eb57574d}@supports (color:color-mix(in lab, red, red)){.hover\\:bg-danger\\/30:hover{background-color:color-mix(in oklab, var(--color-danger) 30%, transparent)}}.hover\\:bg-surface-2:hover{background-color:var(--color-surface-2)}.hover\\:bg-surface-3:hover{background-color:var(--color-surface-3)}.hover\\:text-\\[var\\(--rg-text-primary\\)\\]:hover{color:var(--rg-text-primary)}.hover\\:text-accent:hover{color:var(--color-accent)}.hover\\:text-danger:hover{color:var(--color-danger)}.hover\\:text-text:hover{color:var(--color-text)}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-80:hover{opacity:.8}}.focus\\:border-accent:focus{border-color:var(--color-accent)}.active\\:cursor-grabbing:active{cursor:grabbing}.active\\:bg-accent:active{background-color:var(--color-accent)}.active\\:transition-none:active{transition-property:none}.disabled\\:cursor-default:disabled{cursor:default}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-surface-3:disabled{background-color:var(--color-surface-3)}.disabled\\:text-text-faint:disabled{color:var(--color-text-faint)}.disabled\\:opacity-40:disabled{opacity:.4}@media (hover:hover){.disabled\\:hover\\:bg-surface-2:disabled:hover{background-color:var(--color-surface-2)}}.data-\\[state\\=on\\]\\:transition-none[data-state=on],.data-\\[state\\=open\\]\\:transition-none[data-state=open],.data-\\[state\\=…\\]\\:transition-none[data-state=…]{transition-property:none}}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}[data-theme=light],:host([data-theme=light]){--color-bg:#fbfbfc;--color-surface:#fff;--color-surface-2:#f4f4f6;--color-surface-3:#e9e9ee;--color-border:#e2e2e8;--color-border-strong:#cfcfd8;--color-text:#1b1c20;--color-text-dim:#5c5f6a;--color-text-faint:#9a9da8;--color-accent-soft:#5e6ad21f;--color-danger-soft:#eb57571a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:light){:root:not([data-theme=dark]){--color-bg:#fbfbfc;--color-surface:#fff;--color-surface-2:#f4f4f6;--color-surface-3:#e9e9ee;--color-border:#e2e2e8;--color-border-strong:#cfcfd8;--color-text:#1b1c20;--color-text-dim:#5c5f6a;--color-text-faint:#9a9da8;--color-accent-soft:#5e6ad21f;--color-danger-soft:#eb57571a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}}body{background-color:var(--color-bg);font-family:var(--font-sans);color:var(--color-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-width:320px;margin:0;font-size:13px}@keyframes geist-spinner-fade{0%{opacity:1}to{opacity:.15}}[data-tip]{position:relative}[data-tip]:hover:after{content:attr(data-tip);color:#fff;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;z-index:60;background:#1b1c20;border-radius:6px;max-width:260px;padding:3px 8px;font-size:10.5px;font-weight:500;line-height:1.35;position:absolute;bottom:calc(100% + 6px);left:50%;overflow:hidden;transform:translate(-50%);box-shadow:0 4px 12px #0000004d}[data-tip][data-tip-pos~=right]:hover:after{left:0;transform:none}[data-tip][data-tip-pos~=left]:hover:after{left:auto;right:0;transform:none}[data-tip][data-tip-pos~=bottom]:hover:after{top:calc(100% + 6px);bottom:auto}.no-scrollbar{scrollbar-width:none}.no-scrollbar::-webkit-scrollbar{display:none}.lg-md p{margin:0 0 6px}.lg-md p:last-child{margin-bottom:0}.lg-md a{color:var(--color-accent);word-break:break-all;text-decoration:none}.lg-md a:hover{text-decoration:underline}.lg-md code{background:var(--color-surface-2);border:1px solid var(--color-border);font-family:var(--font-mono);border-radius:4px;padding:0 4px;font-size:11px}.lg-md pre{background:var(--color-surface-2);border:1px solid var(--color-border);border-radius:6px;margin:6px 0;padding:8px;overflow-x:auto}.lg-md pre code{white-space:pre;background:0 0;border:none;padding:0;font-size:11px}.lg-md ul,.lg-md ol{flex-direction:column;gap:2px;margin:4px 0 6px;padding-left:18px;display:flex}.lg-md ul{list-style:outside}.lg-md ol{list-style:decimal}.lg-md h4{margin:8px 0 4px;font-size:12px;font-weight:600}.lg-md lg-media{display:block}.lg-md lg-media img,.lg-md lg-media video{border:1px solid var(--color-border);border-radius:6px;max-width:100%;margin:4px 0}.lg-md video{border:1px solid var(--color-border);background:#000;border-radius:6px;max-width:100%;margin:4px 0}.lg-md img{border:1px solid var(--color-border);border-radius:6px;max-width:100%;margin:4px 0}.lg-md strong{font-weight:600}*{scrollbar-width:thin;scrollbar-color:var(--color-border-strong) transparent}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:var(--color-border-strong);border-radius:4px}::-webkit-scrollbar-track{background:0 0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-contain-size{syntax:"*";inherits:false}@property --tw-contain-layout{syntax:"*";inherits:false}@property --tw-contain-paint{syntax:"*";inherits:false}@property --tw-contain-style{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}`;zr();var Q6=P(`<span aria-hidden class="bg-danger size-2 shrink-0 animate-pulse rounded-full">`),$6=P(`<span class="text-text min-w-[5ch] text-[11px] font-medium tabular-nums">`),e8=P(`<button class="bg-accent hover:bg-accent-hover h-7 cursor-pointer rounded-full px-2.5 text-[11px] font-medium text-white transition-colors"><span class="inline-block min-w-[4ch] text-center">Stop`),t8=P(`<p class="text-warn px-1.5 pt-1 pb-1.5 text-[10.5px] font-semibold tracking-wide uppercase">Needs review`),n8=P(`<div><p class="text-text-dim px-1.5 pt-1 pb-1.5 text-[10.5px] font-semibold tracking-wide uppercase">Running agents`),r8=P(`<div class="fixed z-[2147483646] select-none"><div class="bg-surface border-border text-text flex h-9 cursor-grab items-center gap-1 rounded-full border py-1 pr-1 pl-2.5 font-sans shadow-lg active:cursor-grabbing">`),i8=P(`<div><div title="Drag to resize">`),a8=P(`<button title="Open Linear Grab"aria-label="Open Linear Grab"class="text-accent hover:opacity-80 inline-flex cursor-pointer items-center gap-1.5">`),o8=P(`<span class="bg-border h-4 w-px"aria-hidden>`),s8=P(`<span aria-hidden class="bg-warn size-2 rounded-full">`),c8=P(`<span class="text-warn min-w-[3.5ch] text-left text-[11px] font-medium tabular-nums"> rev`),l8=P(`<button title="Running agents"aria-label="Running agents"class="hover:bg-surface-2 flex h-7 cursor-pointer items-center gap-1.5 rounded-full px-2 transition-colors"><span aria-hidden></span><span>`),u8=P(`<span aria-hidden class="bg-accent size-2 shrink-0 animate-pulse rounded-full">`),d8=P(`<span class="text-text min-w-[3ch] text-[11px] font-medium tabular-nums">s`),f8=P(`<span class="text-text-dim min-w-[7ch] text-[11px] tabular-nums"> states`),p8=P(`<p class="text-text-faint px-1.5 pb-1.5 text-[11.5px]">No agents running right now.`),m8=P(`<button class="hover:bg-surface-2 flex w-full cursor-pointer flex-col gap-0.5 rounded-md px-1.5 py-1.5 text-left transition-colors"><span class="flex min-w-0 items-center gap-1.5"><span aria-hidden class="size-1.5 shrink-0 rounded-full"></span><span class="font-mono text-text-dim shrink-0 text-[10.5px]"></span><span class="text-text truncate text-[11.5px]"></span></span><span class="text-text-faint pl-3 text-[10.5px] tabular-nums"> · <!> · `);function h8(e={}){if(typeof window>`u`||window.__LINEAR_GRAB_PAGE__)return;window.__LINEAR_GRAB_PAGE__=!0;let t=()=>{lk(),z2(),Y4(),JZ();let t=document.createElement(`div`);t.id=`linear-grab-root`,document.body.appendChild(t);let n=e=>{let n=e.composedPath();if(!n.includes(t))return;e.stopImmediatePropagation();let r=n[0];e instanceof KeyboardEvent&&r&&r!==t&&r.dispatchEvent(new KeyboardEvent(e.type,{key:e.key,code:e.code,location:e.location,repeat:e.repeat,isComposing:e.isComposing,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,bubbles:!1,cancelable:!1}))};for(let e of[`keydown`,`keyup`,`keypress`])window.addEventListener(e,n,{capture:!0});let r=t.attachShadow({mode:`open`}),i=document.createElement(`style`);i.textContent=Z6,r.appendChild(i);let a=document.createElement(`div`);r.appendChild(a);let o=()=>a.setAttribute(`data-theme`,g8());o(),matchMedia(`(prefers-color-scheme: light)`).addEventListener(`change`,o),tt(()=>M(S8,{get defaultOpen(){return e.defaultOpen??!1}}),a)};document.body?t():document.addEventListener(`DOMContentLoaded`,t,{once:!0})}function g8(){try{let e=[document.body,document.documentElement];for(let t of e){let e=getComputedStyle(t).backgroundColor.match(/rgba?\(([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)(?:[,\s/]+([\d.]+))?/);if(!(!e||e[4]!==void 0&&Number(e[4])===0))return .2126*e[1]+.7152*e[2]+.0722*e[3]>140?`light`:`dark`}}catch{}return matchMedia(`(prefers-color-scheme: light)`).matches?`light`:`dark`}var _8=130,v8=36,y8=380,b8=280,x8=720;function S8(e){let[t,n]=T(e.defaultOpen),[r,i]=T(`right`),[a,o]=T({x:Math.max(8,window.innerWidth-_8-24),y:Math.max(8,window.innerHeight-v8-20)}),[s,c]=T({running:[],review:[]}),l=()=>s().running,u=()=>s().review,[d,f]=T(!1),[p,m]=T(HD().phase),[h,g]=T({active:!1,msLeft:0,total:0,byTrigger:{}}),[_,v]=T(0);re(()=>{let e=setInterval(()=>{p()===`recording`&&v(Date.now()-(HD().startedAt??Date.now()))},250);ie(()=>clearInterval(e))});let y=e=>{let t=Math.floor(e/1e3);return`${Math.floor(t/60)}:${String(t%60).padStart(2,`0`)}`},[b,x]=T(null),S=e=>({x:Math.min(Math.max(8,e.x),window.innerWidth-_8-8),y:Math.min(Math.max(8,e.y),window.innerHeight-v8-8)}),C=e=>({x:Math.min(Math.max(8-(te()-80),e.x),window.innerWidth-80),y:Math.min(Math.max(0,e.y),window.innerHeight-80)}),[w,E]=T(!1),[k,ee]=T(`cloud`),[A,j]=T(!1),[te,ne]=T(y8),ae=e=>Math.min(x8,Math.max(b8,Math.min(e,window.innerWidth-60)));O(()=>{let e=document.documentElement,n=t()&&w();e.style.transition=`margin 0.2s ease`,e.style.marginRight=n&&r()===`right`?`${te()}px`:``,e.style.marginLeft=n&&r()===`left`?`${te()}px`:``}),ie(()=>{document.documentElement.style.marginRight=``,document.documentElement.style.marginLeft=``});let oe=()=>{let e=!w();E(e),e&&x(null),Tr({panelMode:e?`pinned`:`overlay`,panelPos:void 0})};re(()=>{wr().then(e=>{e.panelSide&&i(e.panelSide),e.launcherPos&&o(S(e.launcherPos)),e.panelPos&&x(C(e.panelPos)),e.panelWidth&&ne(ae(e.panelWidth)),E(e.panelMode===`pinned`),ee(e.workflowMode??`cloud`)});let e=jr(e=>{e===`settings`&&wr().then(e=>{i(e.panelSide??`right`),E(e.panelMode===`pinned`),ee(e.workflowMode??`cloud`)}),e===`grab`&&k()!==`local`&&n(!0)}),t=()=>{j(!0),setTimeout(()=>j(!1),1600)};window.addEventListener(zZ,t);let r=()=>{f(!1),w()||n(!1)};window.addEventListener(BZ,r);let s=()=>n(!0);window.addEventListener(`linear-grab:picker-finished`,s),ie(()=>{window.removeEventListener(zZ,t),window.removeEventListener(BZ,r),window.removeEventListener(`linear-grab:picker-finished`,s)});let l=e$(c);ie(i2(g));let u=HD().phase,d=UD(e=>{m(e.phase),e.phase===`recording`&&u!==`recording`&&!w()&&n(!1),e.phase===`ready`&&u!==`ready`&&(oj(`capture`),n(!0)),u=e.phase}),p=()=>{o(S(a()));let e=b();e&&x(C(e))};window.addEventListener(`resize`,p),ie(()=>{e(),l(),d(),window.removeEventListener(`resize`,p)})});let se=!1,ce=e=>{if(e.button!==0)return;let t={x:e.clientX,y:e.clientY},n=a();se=!1;let r=e=>{let r=e.clientX-t.x,i=e.clientY-t.y;Math.abs(r)+Math.abs(i)>4&&(se=!0),se&&o(S({x:n.x+r,y:n.y+i}))},i=()=>{window.removeEventListener(`pointermove`,r),window.removeEventListener(`pointerup`,i),se&&Tr({launcherPos:a()}),setTimeout(()=>{se=!1},0)};window.addEventListener(`pointermove`,r),window.addEventListener(`pointerup`,i)},le=()=>a().y>260,ue=e=>{f(!1),oj(`activity`,e),n(!0)},de=e=>{if(e.button!==0)return;e.preventDefault(),e.stopPropagation();let t=e.clientX,n=te(),i=b(),a=e=>{let a=e.clientX-t,o=r()===`right`?-a:a,s=ae(n+o);ne(s),i&&r()===`right`&&x(C({x:i.x+(n-s),y:i.y}))},o=()=>{window.removeEventListener(`pointermove`,a),window.removeEventListener(`pointerup`,o),Tr({panelWidth:te(),...b()?{panelPos:b()}:{}})};window.addEventListener(`pointermove`,a),window.addEventListener(`pointerup`,o)},fe=e=>{if(e.button!==0)return;if(e.detail===2){x(null),Tr({panelPos:void 0});return}let t={x:e.clientX,y:e.clientY},n=b()??{x:r()===`right`?window.innerWidth-te():0,y:0},i=!1,a=e=>{let r=e.clientX-t.x,a=e.clientY-t.y;Math.abs(r)+Math.abs(a)>4&&(i=!0),i&&x(C({x:n.x+r,y:n.y+a}))},o=()=>{window.removeEventListener(`pointermove`,a),window.removeEventListener(`pointerup`,o);let e=b();i&&e&&Tr({panelPos:e})};window.addEventListener(`pointermove`,a),window.addEventListener(`pointerup`,o)};return[M(N,{get when(){return!t()},get children(){var e=r8(),t=e.firstChild;return t.$$click=()=>{se||p()===`recording`||h().active||(f(!1),n(!0))},t.$$pointerdown=ce,F(t,M(N,{get when(){return p()===`recording`||h().active},get fallback(){return[(()=>{var e=a8();return e.$$click=()=>{se||(f(!1),n(!0))},F(e,M(Y6,{size:13})),e})(),o8(),(()=>{var e=l8(),t=e.firstChild,n=t.nextSibling;return e.$$click=e=>{e.stopPropagation(),!se&&f(e=>!e)},F(n,(()=>{var e=Qe(()=>!!A());return()=>e()?`Copied ✓`:`${l().length} run`})()),F(e,M(N,{get when(){return Qe(()=>!A())()&&u().length>0},get children(){return[s8(),(()=>{var e=c8(),t=e.firstChild;return F(e,()=>u().length,t),e})()]}}),null),D(e=>{var r=`size-2 rounded-full ${A()?`bg-success`:l().length?`bg-success animate-pulse`:`bg-text-faint`}`,i=`min-w-[3.5ch] text-left text-[11px] font-medium tabular-nums ${A()?`text-success`:`text-text-dim`}`;return r!==e.e&&ot(t,e.e=r),i!==e.t&&ot(n,e.t=i),e},{e:void 0,t:void 0}),e})()]},get children(){return M(N,{get when(){return p()===`recording`},get fallback(){return[u8(),(()=>{var e=d8(),t=e.firstChild;return F(e,()=>Math.ceil(h().msLeft/1e3),t),e})(),(()=>{var e=f8(),t=e.firstChild;return F(e,()=>h().total,t),D(()=>rt(e,`title`,Object.entries(h().byTrigger).map(([e,t])=>`${t} ${e}`).join(` · `)||`hover / open the component to record its states`)),e})(),(()=>{var e=e8();return e.$$click=e=>{e.stopPropagation(),!se&&o2()},e})()]},get children(){return[Q6(),(()=>{var e=$6();return F(e,()=>y(_())),e})(),(()=>{var e=e8();return e.$$click=()=>{se||eO()},e})()]}})}})),F(e,M(N,{get when(){return d()},get children(){var e=n8(),t=e.firstChild;return F(e,M(N,{get when(){return u().length>0},get children(){return[t8(),M(Ue,{get each(){return u()},children:e=>M(C8,{agent:e,review:!0,onOpen:ue})})]}}),t),F(e,M(N,{get when(){return l().length>0},get fallback(){return p8()},get children(){return M(Ue,{get each(){return l()},children:e=>M(C8,{agent:e,onOpen:ue})})}}),null),D(()=>ot(e,`bg-surface border-border absolute w-72 rounded-lg border p-1.5 font-sans shadow-2xl ${le()?`bottom-full mb-2`:`top-full mt-2`} ${a().x>window.innerWidth-300?`right-0`:`left-0`}`)),e}}),null),D(t=>{var n=`${a().x}px`,r=`${a().y}px`;return n!==t.e&&ut(e,`left`,t.e=n),r!==t.t&&ut(e,`top`,t.t=r),t},{e:void 0,t:void 0}),e}}),M(N,{get when(){return t()},get children(){var e=i8(),t=e.firstChild;return t.$$pointerdown=de,F(e,M(X6,{onGrab:()=>n(!0),onClose:()=>n(!1),get onHeaderPointerDown(){return w()?void 0:fe},get pinned(){return w()},onTogglePin:oe}),null),D(n=>{var i=`bg-bg text-text border-border fixed z-[2147483645] flex max-w-[100vw] flex-col overflow-hidden font-sans text-[13px] antialiased ${w()?``:`shadow-2xl`} ${!w()&&b()?`rounded-xl border`:r()===`right`?`top-0 right-0 h-screen border-l`:`top-0 left-0 h-screen border-r`}`,a={width:`${te()}px`,...!w()&&b()?{left:`${b().x}px`,top:`${b().y}px`,height:`${Math.min(680,window.innerHeight-16)}px`}:{}},o=`hover:bg-accent/50 active:bg-accent absolute top-0 z-10 h-full w-1 cursor-col-resize transition-colors ${r()===`right`?`left-0`:`right-0`}`;return i!==n.e&&ot(e,n.e=i),n.t=lt(e,a,n.t),o!==n.a&&ot(t,n.a=o),n},{e:void 0,t:void 0,a:void 0}),e}})]}function C8(e){return(()=>{var t=m8(),n=t.firstChild,r=n.firstChild,i=r.nextSibling,a=i.nextSibling,o=n.nextSibling,s=o.firstChild,c=s.nextSibling;return c.nextSibling,t.$$click=()=>e.onOpen(e.agent.id),F(i,()=>e.agent.identifier),F(a,()=>e.agent.title),F(o,(()=>{var t=Qe(()=>!!e.review);return()=>t()?`PR ready · needs review`:e.agent.stateName})(),s),F(o,()=>e.agent.delegateName,c),F(o,()=>w8(e.agent.updatedAt),null),D(t=>ut(r,`background`,e.review?`var(--color-warn)`:e.agent.stateColor)),t})()}function w8(e){let t=Math.max(0,Math.floor((Date.now()-Date.parse(e))/1e3));return t<60?`now`:t<3600?`${Math.floor(t/60)}m`:t<86400?`${Math.floor(t/3600)}h`:`${Math.floor(t/86400)}d`}nt([`pointerdown`,`click`]),h8()})();