@openparachute/notes-ui 0.1.6-rc.2 → 0.1.7-rc.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/.parachute/info +1 -1
  3. package/dist/assets/Activity-bT-4Y6Hc.js +1 -0
  4. package/dist/assets/AddVault-D-ahv-KW.js +1 -0
  5. package/dist/assets/Calendar-CYvQrwCA.js +1 -0
  6. package/dist/assets/Import-CZCd6DVe.js +20 -0
  7. package/dist/assets/NoteEditor-DejkUizg.js +1 -0
  8. package/dist/assets/NoteNew-BgEB8Ff1.js +9 -0
  9. package/dist/assets/{NoteRenderer-BGWbYFIT.js → NoteRenderer-B-t3iR2x.js} +23 -23
  10. package/dist/assets/NoteView-B0i46Tpn.js +3 -0
  11. package/dist/assets/OAuthCallback-C-st38Zr.js +1 -0
  12. package/dist/assets/PinArchiveButtons-BEmrCa2u.js +1 -0
  13. package/dist/assets/Settings-C04VDzuq.js +1 -0
  14. package/dist/assets/Tags-BcEIUux1.js +1 -0
  15. package/dist/assets/Today-Cz-OTXJ7.js +1 -0
  16. package/dist/assets/VaultGraph-D42L0Y2e.js +3 -0
  17. package/dist/assets/Vaults-BfdAmD22.js +1 -0
  18. package/dist/assets/attachment-upload-DELsFKqW.js +2 -0
  19. package/dist/assets/index--Z5j3NQq.css +1 -0
  20. package/dist/assets/index-DQ3LtJxh.js +67 -0
  21. package/dist/assets/{react-force-graph-2d-DBfJJN1_.js → react-force-graph-2d-BD6TQ9hX.js} +10 -10
  22. package/dist/assets/url-QSQwrjSV.js +1 -0
  23. package/dist/assets/{useAttachmentUploader-CoOJv16s.js → useAttachmentUploader-TbRdZxIB.js} +11 -13
  24. package/dist/index.html +2 -2
  25. package/dist/sw.js +1 -1
  26. package/package.json +3 -2
  27. package/dist/assets/Activity-DJhKtRnz.js +0 -1
  28. package/dist/assets/AddVault-DX-7VPHH.js +0 -1
  29. package/dist/assets/AttachmentDropZone-DrZXEO9k.js +0 -1
  30. package/dist/assets/Calendar-CfbphZhF.js +0 -1
  31. package/dist/assets/Import-BOoIUF34.js +0 -12
  32. package/dist/assets/NoteEditor-ZdIpS6QN.js +0 -1
  33. package/dist/assets/NoteNew-Crzh0iYo.js +0 -9
  34. package/dist/assets/NoteView-LNlromHS.js +0 -3
  35. package/dist/assets/OAuthCallback-D1kmhUQA.js +0 -1
  36. package/dist/assets/PinArchiveButtons-HkysJJPl.js +0 -1
  37. package/dist/assets/Settings-DpHNB3Wj.js +0 -1
  38. package/dist/assets/Tags-5UgiMjud.js +0 -1
  39. package/dist/assets/Today-MgBcz9I5.js +0 -1
  40. package/dist/assets/VaultGraph-CHtHQpMd.js +0 -3
  41. package/dist/assets/Vaults-RFwi9oID.js +0 -1
  42. package/dist/assets/index-By5JSkFz.css +0 -1
  43. package/dist/assets/index-D27iivhA.js +0 -62
@@ -0,0 +1,3 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./react-force-graph-2d-BD6TQ9hX.js","./index-DQ3LtJxh.js","./index--Z5j3NQq.css"])))=>i.map(i=>d[i]);
2
+ import{B as d,K as w,v as t,Z as k,_ as I,a2 as A,ai as E,$ as R,A as C,N as L,L as p,e as f,a as S,E as T,V as _,F as N}from"./index-DQ3LtJxh.js";import{P as D,D as $}from"./PinArchiveButtons-BEmrCa2u.js";import{b as M,N as U}from"./NoteRenderer-B-t3iR2x.js";const B=1,P=3,F=1;function V(e,s){const n=new Map,a=new Map;for(const l of s.values())for(const r of l.links??[]){if(r.sourceId===r.targetId||!s.has(r.sourceId)||!s.has(r.targetId))continue;const o=`${r.sourceId}|${r.targetId}|${r.relationship}`;n.has(o)||(n.set(o,{source:r.sourceId,target:r.targetId,relationship:r.relationship}),a.set(r.sourceId,(a.get(r.sourceId)??0)+1),a.set(r.targetId,(a.get(r.targetId)??0)+1))}return{nodes:[...s.values()].map(l=>{var r;return{id:l.id,path:l.path,tags:l.tags,summary:typeof((r=l.metadata)==null?void 0:r.summary)=="string"?l.metadata.summary:void 0,isAnchor:l.id===e,linkCount:a.get(l.id)??0}}),edges:[...n.values()]}}async function z(e,s,n,a){const i=new Map;i.set(e.id,e);let l=[e];for(let r=1;r<=s;r++){const o=new Set;for(const u of l)for(const x of u.links??[]){const h=x.sourceId===u.id?x.targetId:x.sourceId;h!==u.id&&(i.has(h)||o.add(h))}if(o.size===0)break;const c=await Promise.all([...o].map(u=>n(u).catch(()=>null)));if(a!=null&&a.cancelled)return i;const m=[];for(const u of c)u&&!i.has(u.id)&&(i.set(u.id,u),m.push(u));l=m}return i}function G(e,s,n){const[a,i]=d.useState(null),[l,r]=d.useState(!1);return d.useEffect(()=>{if(!e||!s){i(null),r(!1);return}const o={cancelled:!1};return r(!0),z(s,n,c=>e.getNote(c,{includeLinks:!0}),o).then(c=>{o.cancelled||(i(V(s.id,c)),r(!1))}).catch(()=>{o.cancelled||r(!1)}),()=>{o.cancelled=!0}},[e,s,n]),{data:a,isLoading:l}}const O=d.lazy(()=>I(()=>import("./react-force-graph-2d-BD6TQ9hX.js"),__vite__mapDeps([0,1,2]),import.meta.url));function H({anchor:e}){const[s,n]=d.useState(!0),[a,i]=d.useState(F),l=w(),{data:r,isLoading:o}=G(l,s?e:void 0,a);return t.jsxs("section",{className:"mt-10 border-t border-border pt-6",children:[t.jsxs("header",{className:"mb-4 flex flex-wrap items-center justify-between gap-3",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsxs("button",{type:"button",onClick:()=>n(c=>!c),"aria-expanded":s,className:"font-serif text-xl text-fg hover:text-accent",children:[s?"▾":"▸"," Neighborhood"]}),s&&r?t.jsxs("span",{className:"text-xs text-fg-dim",children:[r.nodes.length," ",r.nodes.length===1?"note":"notes"]}):null]}),s?t.jsx(K,{depth:a,onChange:i}):null]}),s?t.jsx(W,{data:r,isLoading:o}):null]})}function K({depth:e,onChange:s}){const n=[];for(let a=B;a<=P;a++)n.push(a);return t.jsxs("fieldset",{className:"flex items-center gap-1 text-xs text-fg-dim",children:[t.jsx("legend",{className:"mr-1 inline-block",children:"Hops"}),n.map(a=>t.jsx("button",{type:"button","aria-pressed":a===e,onClick:()=>s(a),className:a===e?"rounded border border-accent bg-accent/10 px-2 py-0.5 text-accent":"rounded border border-border bg-card px-2 py-0.5 hover:text-accent",children:a},a))]})}function W({data:e,isLoading:s}){return!e&&s?t.jsx(y,{}):e?e.nodes.length<=1?t.jsx("div",{className:"rounded-md border border-border bg-card p-6 text-center text-sm text-fg-dim",children:"This note has no neighbors yet."}):t.jsx(X,{data:e}):null}function y(){return t.jsx("div",{"aria-busy":"true",className:"h-[24rem] w-full animate-pulse rounded-md border border-border bg-card"})}function X({data:e}){const s=k(),n=d.useRef(null),[a,i]=d.useState({w:600,h:384});d.useEffect(()=>{const r=n.current;if(!r)return;const o=()=>{const m=r.getBoundingClientRect();i({w:Math.max(320,Math.floor(m.width)),h:384})};o();const c=new ResizeObserver(o);return c.observe(r),()=>c.disconnect()},[]);const l=d.useMemo(()=>({nodes:e.nodes.map(r=>({...r})),links:e.edges.map(r=>({source:r.source,target:r.target,rel:r.relationship}))}),[e]);return t.jsx("div",{ref:n,"data-testid":"neighborhood-graph-canvas",className:"overflow-hidden rounded-md border border-border bg-card",children:t.jsx(d.Suspense,{fallback:t.jsx(y,{}),children:t.jsx(O,{graphData:l,width:a.w,height:a.h,nodeLabel:r=>Z(r),nodeVal:r=>{const o=r;return o.isAnchor?8:3+Math.min(o.linkCount,8)},nodeColor:r=>r.isAnchor?"#c9b170":"#8a9a7a",linkColor:()=>"rgba(160, 160, 160, 0.4)",linkDirectionalArrowLength:3,linkDirectionalArrowRelPos:1,cooldownTicks:80,onNodeClick:r=>{s(`/n/${encodeURIComponent(r.id)}`)}})})})}function Z(e){const s=[e.path??e.id];return e.tags&&e.tags.length>0&&s.push(`tags: ${e.tags.join(", ")}`),e.summary&&s.push(e.summary),s.join(`
3
+ `)}const q="_Transcript pending._",J="_Transcription unavailable._";function Q({content:e}){const s=e.includes(q),n=!s&&e.includes(J);return s?t.jsxs("output",{"aria-live":"polite",className:"mb-4 inline-flex items-center gap-2 rounded-md border border-sky-500/30 bg-sky-500/5 px-3 py-1.5 text-xs text-sky-300",children:[t.jsx("span",{"aria-hidden":!0,className:"inline-block h-2 w-2 animate-pulse rounded-full bg-sky-400"}),"Transcribing…"]}):n?t.jsx("output",{className:"mb-4 inline-flex items-center gap-2 rounded-md border border-amber-500/30 bg-amber-500/5 px-3 py-1.5 text-xs text-amber-200",children:"Transcription unavailable — open the audio below and add a note by hand."}):null}function xe(){const{id:e}=A(),s=e?decodeURIComponent(e):void 0,n=E(i=>i.getActiveVault()),a=R(s);return d.useEffect(()=>{n&&s&&C(n.id,s)},[n,s]),n?t.jsxs("div",{className:"page",children:[t.jsx("nav",{className:"mb-6 text-sm text-fg-dim",children:t.jsx(p,{to:"/",className:"hover:text-accent",children:"← All notes"})}),a.isPending?t.jsx(ie,{}):a.isError?t.jsx(ce,{error:a.error,retry:()=>a.refetch()}):a.data?t.jsx(Y,{note:a.data}):t.jsx(le,{id:s??""})]}):t.jsx(L,{to:"/",replace:!0})}function Y({note:e}){var r;const s=d.useMemo(()=>M(e),[e]),n=e.path??e.id,a=typeof((r=e.metadata)==null?void 0:r.summary)=="string"?e.metadata.summary:null,i=d.useMemo(()=>(e.links??[]).filter(o=>o.targetId===e.id&&o.sourceId!==e.id&&o.sourceNote),[e]),l=d.useMemo(()=>{const o=new Set,c=[];for(const m of e.links??[])m.sourceId!==e.id||m.targetId===e.id||m.targetNote&&(o.has(m.targetId)||(o.add(m.targetId),c.push(m)));return c},[e]);return t.jsxs("article",{className:"grid gap-10 lg:grid-cols-[minmax(0,1fr)_18rem]",children:[t.jsxs("div",{className:"min-w-0",children:[t.jsxs("header",{className:"mb-6 border-b border-border pb-4",children:[t.jsx("h1",{className:"font-serif text-3xl tracking-tight",children:e.path?ee(e.path):e.id}),e.tags&&e.tags.length>0?t.jsx(se,{tags:e.tags}):null,t.jsx("p",{className:"note-id mt-2",children:n}),a?t.jsx("p",{className:"mt-3 text-fg-muted",children:a}):null,t.jsxs("div",{className:"mt-4 flex flex-wrap items-center gap-2",children:[t.jsx(p,{to:`/n/${encodeURIComponent(e.id)}/edit`,className:"btn btn-secondary btn-touch",children:"Edit"}),t.jsx(D,{note:e,keyboard:!0}),t.jsx($,{note:e})]})]}),t.jsx(Q,{content:e.content??""}),t.jsx(U,{note:e,resolve:s}),e.attachments&&e.attachments.length>0?t.jsxs("section",{className:"mt-10 border-t border-border pt-6",children:[t.jsx("h2",{className:"mb-3 font-serif text-xl",children:"Attachments"}),t.jsx("div",{className:"space-y-6",children:e.attachments.map(o=>t.jsx(re,{attachment:o},o.id))})]}):null,t.jsx(H,{anchor:e})]}),t.jsxs("aside",{className:"space-y-6 text-sm lg:sticky lg:top-24 lg:self-start",children:[t.jsx(te,{note:e}),l.length>0?t.jsx(v,{title:"Outbound",links:l,peer:"target"}):null,i.length>0?t.jsx(v,{title:"Inbound",links:i,peer:"source"}):null]})]})}function ee(e){return(e.split("/").pop()??e).replace(/\.md$/i,"")}function te({note:e}){const s=e.createdAt,n=e.updatedAt,a=Object.entries(e.metadata??{}).filter(([i])=>i!=="summary");return t.jsxs("section",{className:"card p-4",children:[t.jsx("h2",{className:"eyebrow mb-2",children:"Metadata"}),t.jsxs("dl",{className:"space-y-1.5 text-sm",children:[e.path?t.jsx(g,{label:"Title",value:t.jsx("span",{className:"font-mono text-xs break-all",children:e.path})}):null,t.jsx(g,{label:"ID",value:t.jsx("span",{className:"font-mono text-xs break-all",children:e.id})}),t.jsx(g,{label:"Created",value:t.jsx("time",{title:s,children:N(s)})}),n?t.jsx(g,{label:"Updated",value:t.jsx("time",{title:n,children:N(n)})}):null,a.map(([i,l])=>t.jsx(g,{label:i,value:t.jsx("span",{className:"break-all text-fg-muted",children:String(l)})},i))]})]})}function g({label:e,value:s}){return t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("dt",{className:"eyebrow",children:e}),t.jsx("dd",{children:s})]})}function se({tags:e}){return t.jsx("div",{className:"mt-3 flex flex-wrap gap-1.5","aria-label":"Tags",children:e.map(s=>t.jsxs(p,{to:`/?tag=${encodeURIComponent(s)}`,className:"chip chip-tag focus-ring max-w-full break-all font-medium",children:["#",s]},s))})}function v({title:e,links:s,peer:n}){return t.jsxs("section",{className:"card p-4",children:[t.jsxs("h2",{className:"eyebrow mb-2",children:[e," (",s.length,")"]}),t.jsx("ul",{className:"space-y-1.5",children:s.map(a=>{var o;const i=n==="source"?a.sourceNote:a.targetNote;if(!i)return null;const l=i.path??i.id,r=typeof((o=i.metadata)==null?void 0:o.summary)=="string"?i.metadata.summary:null;return t.jsx("li",{children:t.jsxs(p,{to:`/n/${encodeURIComponent(i.id)}`,className:"block rounded px-1 py-0.5 hover:bg-bg/50",children:[t.jsx("div",{className:"truncate font-mono text-xs text-fg-muted hover:text-accent",children:l}),r?t.jsx("div",{className:"mt-0.5 line-clamp-2 text-xs text-fg-dim",children:r}):null]})},`${a.sourceId}->${a.targetId}:${a.relationship}`)})})]})}function re({attachment:e}){const s=(e.mimeType??"").toLowerCase(),n=e.filename??e.id;return t.jsxs("figure",{className:"card p-3",children:[t.jsxs("figcaption",{className:"mb-2 flex items-baseline justify-between gap-3",children:[t.jsx("span",{className:"truncate font-mono text-xs text-fg-muted",children:n}),typeof e.size=="number"?t.jsx("span",{className:"shrink-0 text-xs text-fg-dim",children:oe(e.size)}):null]}),t.jsx(ne,{attachment:e,mime:s,filename:n})]})}function ne({attachment:e,mime:s,filename:n}){const a=w(),[i,l]=d.useState(null),[r,o]=d.useState(null),c=ae(s,n),m=c!=="other",u=e.url;if(d.useEffect(()=>{if(!m||!u||!a)return;let h=!1,b=null;return o(null),a.fetchAttachmentBlob(u).then(j=>{h||(b=URL.createObjectURL(j),l(b))}).catch(j=>{h||o(j instanceof Error?j.message:"Failed to load attachment")}),()=>{h=!0,b&&URL.revokeObjectURL(b)}},[m,u,a]),!u)return t.jsx("p",{className:"text-sm text-fg-dim",children:"(no URL)"});if(r)return t.jsx("p",{className:"text-sm text-[--color-danger]",children:r});if(m&&!i)return t.jsx(f,{className:"h-32 w-full"});const x=i??u;return c==="image"?t.jsx("img",{src:x,alt:n,className:"max-h-[32rem] rounded"}):c==="audio"?t.jsx("audio",{controls:!0,src:x,className:"w-full"}):c==="video"?t.jsx("video",{controls:!0,src:x,className:"w-full rounded"}):c==="pdf"?t.jsxs(t.Fragment,{children:[t.jsx("iframe",{src:x,title:n,className:"h-[40rem] w-full rounded border border-border"}),t.jsxs("a",{href:x,download:n,className:"mt-2 inline-block text-sm text-accent hover:underline",children:["Download ",n]})]}):t.jsxs("a",{href:x,download:n,className:"text-sm text-accent hover:underline",children:["Download ",n]})}function ae(e,s){if(e.startsWith("image/"))return"image";if(e.startsWith("audio/"))return"audio";if(e.startsWith("video/"))return"video";if(e==="application/pdf")return"pdf";const n=s.toLowerCase().split(".").pop()??"";return["png","jpg","jpeg","gif","webp","svg"].includes(n)?"image":["mp3","wav","ogg","m4a","flac"].includes(n)?"audio":["mp4","webm","mov"].includes(n)?"video":n==="pdf"?"pdf":"other"}function oe(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(1)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`}function ie(){return t.jsxs("div",{className:"grid gap-10 lg:grid-cols-[minmax(0,1fr)_18rem]","aria-busy":"true",children:[t.jsxs("div",{className:"min-w-0 space-y-3",children:[t.jsx(f,{className:"h-3 w-32"}),t.jsx(f,{className:"h-8 w-2/3"}),t.jsx(f,{className:"h-4 w-full"}),t.jsx("div",{className:"mt-6 space-y-2",children:[0,1,2,3,4,5].map(e=>t.jsx(f,{className:"h-3",width:`${70+e*13%25}%`},e))})]}),t.jsxs("div",{className:"space-y-4",children:[t.jsx(f,{className:"h-32"}),t.jsx(f,{className:"h-24"})]})]})}function le({id:e}){return t.jsx(T,{title:t.jsx("span",{className:"font-serif text-xl text-fg",children:"Note not found"}),description:t.jsxs(t.Fragment,{children:["No note with id ",t.jsx("span",{className:"font-mono",children:e})," in this vault."]}),action:t.jsx(p,{to:"/",className:"text-sm text-accent hover:underline",children:"Back to all notes"})})}function ce({error:e,retry:s}){const n=e instanceof _;return t.jsx(S,{title:n?"Session expired":"Could not load note",message:e.message,retry:n?void 0:s,action:n?t.jsx(p,{to:"/add",className:"btn btn-primary",children:"Reconnect vault"}):void 0})}export{xe as NoteView};
@@ -0,0 +1 @@
1
+ import{a8 as j,Z as N,ai as w,B as l,p as E,H as V,G as H,O as R,c as S,v as t}from"./index-DQ3LtJxh.js";import{s as C}from"./url-QSQwrjSV.js";function O(){const[a]=j(),s=N(),d=w(c=>c.addVault),[n,o]=l.useState({kind:"working"}),u=l.useRef(!1);return l.useEffect(()=>{if(u.current)return;u.current=!0;const c=a.get("code"),p=a.get("state"),x=a.get("error");if(x){o({kind:"error",message:`Vault returned: ${x}`});return}if(!c||!p){o({kind:"error",message:"Missing code or state in callback URL."});return}(async()=>{var m,g,h,v;try{const{pending:e,token:r}=await E(c,p),f=r.vault?`vault:${r.vault}`:void 0,k=(f?(g=(m=r.services)==null?void 0:m[f])==null?void 0:g.url:void 0)??((v=(h=r.services)==null?void 0:h.vault)==null?void 0:v.url)??e.issuerUrl,i=d({url:k,name:r.vault??e.issuer,issuer:e.issuer,tokenEndpoint:e.tokenEndpoint,clientId:e.clientId,scope:r.scope},V(r));r.services&&H(i,r.services);const b=R.getState();b.clearHalt(i),e.priorHaltedVaultId&&e.priorHaltedVaultId!==i&&b.clearHalt(e.priorHaltedVaultId);const y=C(e.redirect)??"/";s(y,{replace:!0})}catch(e){if(e instanceof S){o({kind:"pending-approval",approveUrl:e.approveUrl});return}o({kind:"error",message:e.message})}})()},[a,s,d]),n.kind==="working"?t.jsxs("div",{className:"mx-auto max-w-xl px-6 py-24 text-center",children:[t.jsx("h1",{className:"mb-3 font-serif text-3xl",children:"Connecting…"}),t.jsx("p",{className:"text-fg-muted",children:"Exchanging the authorization code with your vault."})]}):n.kind==="pending-approval"?t.jsxs("div",{className:"mx-auto max-w-xl px-6 py-24 text-center",children:[t.jsx("h1",{className:"mb-3 font-serif text-3xl",children:"Waiting for hub approval"}),t.jsx("p",{className:"mb-8 text-fg-muted",children:"Your hub admin needs to approve this app before sign-in can complete. Open the approval page in your hub, approve, then try again."}),t.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-3",children:[t.jsx("a",{href:n.approveUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-block rounded-md bg-accent px-4 py-2 text-sm text-[--color-on-accent] hover:bg-accent-hover",children:"Open approval page"}),t.jsx("button",{type:"button",onClick:()=>s("/add",{replace:!0}),className:"inline-block rounded-md border border-border bg-card px-4 py-2 text-sm text-fg-muted hover:text-accent",children:"Retry now"})]})]}):t.jsxs("div",{className:"mx-auto max-w-xl px-6 py-24 text-center",children:[t.jsx("h1",{className:"mb-3 font-serif text-3xl text-red-400",children:"Connection failed"}),t.jsx("p",{className:"mb-8 text-fg-muted",children:n.message}),t.jsx("button",{type:"button",onClick:()=>s("/add",{replace:!0}),className:"rounded-md bg-accent px-4 py-2 text-sm text-[--color-on-accent] hover:bg-accent-hover",children:"Try again"})]})}export{O as OAuthCallback};
@@ -0,0 +1 @@
1
+ import{B as c,v as t,Z as v,ae as g,W as j,V as y,ai as w,ab as E,af as N}from"./index-DQ3LtJxh.js";function P({note:a,className:i,label:l="Delete"}){const[r,o]=c.useState(!1);return t.jsxs(t.Fragment,{children:[t.jsx("button",{type:"button",onClick:()=>o(!0),className:i??"min-h-11 rounded-md border border-red-500/40 bg-transparent px-3 py-1.5 text-sm text-red-400 hover:bg-red-500/10",title:"Delete this note",children:l}),r?t.jsx(k,{note:a,onClose:()=>o(!1)}):null]})}function k({note:a,onClose:i}){const l=v(),r=g(e=>e.push),o=j(),d=a.path??a.id,[m,p]=c.useState(""),[u,b]=c.useState(null),x=c.useRef(null),s=m===d&&!o.isPending;c.useEffect(()=>{var e;(e=x.current)==null||e.focus()},[]),c.useEffect(()=>{const e=f=>{f.key==="Escape"&&i()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[i]);const n=c.useCallback(()=>{s&&(b(null),o.mutate(a.id,{onSuccess:()=>{r(`Deleted ${d}`,"success"),l("/")},onError:e=>{e instanceof y?b("Session expired. Reconnect to delete."):b(e instanceof Error?e.message:"Delete failed")}}))},[s,d,o,l,a.id,r]);return t.jsx("dialog",{open:!0,"aria-labelledby":"confirm-delete-title",className:"fixed inset-0 z-40 m-0 flex h-full max-h-full w-full max-w-full items-center justify-center bg-black/60 p-4",onMouseDown:e=>{e.target===e.currentTarget&&i()},children:t.jsxs("div",{className:"w-full max-w-md rounded-md border border-border bg-card p-6 shadow-xl",children:[t.jsx("h2",{id:"confirm-delete-title",className:"mb-2 font-serif text-xl text-red-400",children:"Delete this note?"}),t.jsx("p",{className:"mb-3 text-sm text-fg-muted",children:"This permanently removes the note, its tags, and its links. This cannot be undone."}),t.jsxs("p",{className:"mb-3 text-sm text-fg-muted",children:["Type"," ",t.jsx("span",{className:"rounded bg-bg/60 px-1 py-0.5 font-mono text-xs text-fg",children:d})," ","to confirm:"]}),t.jsx("input",{ref:x,type:"text",value:m,onChange:e=>p(e.target.value),onKeyDown:e=>{e.key==="Enter"&&s&&n()},"aria-label":"Type note path to confirm",className:"mb-3 w-full rounded-md border border-border bg-bg/40 px-2.5 py-1.5 font-mono text-sm text-fg focus:border-red-400 focus:outline-none",placeholder:d,autoComplete:"off",spellCheck:!1}),u?t.jsx("p",{role:"alert",className:"mb-3 text-sm text-red-400",children:u}):null,t.jsxs("div",{className:"flex justify-end gap-2",children:[t.jsx("button",{type:"button",onClick:i,className:"min-h-11 rounded-md border border-border bg-card px-3 py-1.5 text-sm text-fg-muted hover:text-fg",children:"Cancel"}),t.jsx("button",{type:"button",onClick:n,disabled:!s,className:"btn btn-danger-solid btn-touch",children:o.isPending?"Deleting…":"Delete permanently"})]})]})})}function C({note:a,keyboard:i=!1}){var b,x;const l=w(s=>s.getActiveVault()),{roles:r}=E((l==null?void 0:l.id)??null),o=g(s=>s.push),d=N(a.id),m=((b=a.tags)==null?void 0:b.includes(r.pinned))??!1,p=((x=a.tags)==null?void 0:x.includes(r.archived))??!1,u=c.useCallback(s=>{var f;if(d.isPending)return;const n=r[s],e=((f=a.tags)==null?void 0:f.includes(n))??!1;d.mutate({tags:e?{remove:[n]}:{add:[n]}},{onSuccess:()=>{o(s==="pinned"?e?"Unpinned":"Pinned":e?"Unarchived":"Archived","success")},onError:h=>{h instanceof y?o("Session expired. Reconnect.","error"):o(h instanceof Error?h.message:"Update failed","error")}})},[d,a.tags,o,r]);return c.useEffect(()=>{if(!i)return;const s=n=>{if(n.defaultPrevented)return;const e=n.target;if(e){const f=e.tagName;if(f==="INPUT"||f==="TEXTAREA"||e.isContentEditable)return}n.metaKey||n.ctrlKey||n.altKey||(n.key==="p"||n.key==="P"?(n.preventDefault(),u("pinned")):(n.key==="a"||n.key==="A")&&(n.preventDefault(),u("archived")))};return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)},[i,u]),t.jsxs(t.Fragment,{children:[t.jsx("button",{type:"button",onClick:()=>u("pinned"),disabled:d.isPending,"aria-pressed":m,title:m?`Unpin (${r.pinned})`:`Pin as #${r.pinned} (P)`,className:m?"min-h-11 rounded-md border border-accent/60 bg-accent/10 px-3 py-1.5 text-sm text-accent hover:bg-accent/20 disabled:opacity-40":"min-h-11 rounded-md border border-border bg-card px-3 py-1.5 text-sm text-fg-muted hover:text-accent disabled:opacity-40",children:m?"★ Pinned":"☆ Pin"}),t.jsx("button",{type:"button",onClick:()=>u("archived"),disabled:d.isPending,"aria-pressed":p,title:p?`Unarchive (${r.archived})`:`Archive as #${r.archived} (A)`,className:p?"min-h-11 rounded-md border border-amber-500/40 bg-amber-500/10 px-3 py-1.5 text-sm text-amber-500 hover:bg-amber-500/20 disabled:opacity-40":"min-h-11 rounded-md border border-border bg-card px-3 py-1.5 text-sm text-fg-muted hover:text-accent disabled:opacity-40",children:p?"Archived":"Archive"})]})}export{P as D,C as P};
@@ -0,0 +1 @@
1
+ import{ai as k,v as e,N as E,L as S,a6 as j,a7 as C,K as A,ae as w,B as o,C as R,f as D,J as L,a3 as _,P as z,ab as P,ac as V,T as v,D as N,u as O,s as I,aj as M,l as B}from"./index-DQ3LtJxh.js";function Q(){const s=k(t=>t.getActiveVault());return s?e.jsxs("div",{className:"page-prose",children:[e.jsxs("header",{className:"mb-8",children:[e.jsx("nav",{className:"mb-3 text-sm text-fg-dim",children:e.jsx(S,{to:"/",className:"hover:text-accent",children:"← Home"})}),e.jsx("h1",{className:"font-serif text-2xl tracking-tight md:text-3xl",children:"Settings"}),e.jsxs("p",{className:"mt-1 text-sm text-fg-muted",children:["Configuring ",e.jsx("span",{className:"text-fg",children:s.name}),"."]})]}),e.jsx($,{vaultId:s.id}),e.jsx(F,{}),e.jsx(K,{}),e.jsx(Y,{vaultId:s.id}),e.jsx(q,{vaultId:s.id}),e.jsx(U,{})]}):e.jsx(E,{to:"/",replace:!0})}function F(){return e.jsxs("section",{className:"card mb-8 p-4",children:[e.jsx("h2",{className:"font-serif text-lg",children:"Import notes"}),e.jsx("p",{className:"mt-1 text-sm text-fg-muted",children:"Bring in an Obsidian vault zip or a folder of markdown files. Parsed in your browser; previewed before any note lands in the vault."}),e.jsx("div",{className:"mt-3",children:e.jsx(S,{to:"/import",className:"btn btn-primary btn-touch",children:"Open importer"})})]})}function $({vaultId:s}){const t=j(l=>l.byVault[s]??null),i=j(l=>l.refresh),n=j(l=>l.set),h=C(l=>l.clearDismissed),c=A(),d=w(l=>l.push),[x,u]=o.useState(!1),f=async()=>{c&&await i(s,c)},g=async()=>{var l;if(c){u(!0);try{await I(s,c);const m=(l=t==null?void 0:t.result)==null?void 0:l.rows.map(T=>({...T,status:"ok",differences:[]}));m&&n(s,{ok:!0,missing:[],misaligned:[],rows:m}),h(s),d("Schema updated.","success")}catch(m){d(m instanceof Error?`Schema fix failed: ${m.message}`:"Schema fix failed.","error")}finally{u(!1)}}},p=(t==null?void 0:t.loading)??!t,a=(t==null?void 0:t.result)??null,r=(t==null?void 0:t.error)??null;return e.jsxs("section",{className:"card mt-6 space-y-4 rounded-xl p-6",children:[e.jsxs("div",{className:"flex items-baseline justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"font-serif text-xl text-fg",children:"Vault schema"}),e.jsxs("p",{className:"mt-1 text-xs text-fg-dim",children:["Notes declares three tags it uses to classify captures: ",e.jsx("code",{children:"capture"}),","," ",e.jsx("code",{children:"capture/text"}),", ",e.jsx("code",{children:"capture/voice"}),". This panel confirms the active vault has them set up; one click writes any missing or misaligned rows. Doesn't touch your Tag Role choices below."]})]}),e.jsx("button",{type:"button",onClick:()=>void f(),disabled:p||!c,className:"focus-ring shrink-0 text-xs text-fg-dim hover:text-accent disabled:cursor-not-allowed disabled:opacity-60",children:p?"Checking…":"Refresh"})]}),r?e.jsxs("p",{className:"rounded-md border border-[--color-danger-border] bg-[--color-danger-soft] px-3 py-2 text-xs text-[--color-danger]",children:["Audit failed: ",r]}):null,!a&&!r?e.jsx("p",{className:"text-xs text-fg-dim",children:"Loading audit…"}):null,a?e.jsxs(e.Fragment,{children:[e.jsx(H,{ok:a.ok}),e.jsx("ul",{className:"space-y-2",children:a.rows.map(l=>e.jsx(G,{row:l},l.name))}),a.ok?null:e.jsx("button",{type:"button",onClick:()=>void g(),disabled:x||!c,className:"btn btn-primary btn-sm btn-touch",children:x?"Setting up…":"Set up missing tags"})]}):null]})}function H({ok:s}){return e.jsxs("p",{className:`inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-xs ${s?"bg-[--color-positive-soft] text-[--color-positive]":"bg-[--color-warning-soft] text-[--color-warning]"}`,children:[e.jsx("span",{"aria-hidden":!0,className:`h-1.5 w-1.5 rounded-full ${s?"bg-[--color-positive]":"bg-[--color-warning]"}`}),s?"Matches Notes' schema":"Needs setup"]})}function G({row:s}){const t=s.status==="ok"?"ok":s.status==="missing"?"missing":"misaligned",i=s.status==="ok"?"text-[--color-positive]":"text-[--color-warning]";return e.jsxs("li",{className:"rounded-md border border-border bg-bg/40 px-3 py-2 text-xs",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("code",{className:"font-mono text-sm text-fg",children:s.name}),e.jsx("span",{className:`text-xs ${i}`,children:t})]}),s.status==="misaligned"?e.jsxs("p",{className:"mt-1 text-fg-dim",children:["Differs in: ",s.differences.join(", ")]}):null,e.jsx("p",{className:"mt-1 text-fg-dim",children:s.expected.description}),s.expected.parent_names?e.jsxs("p",{className:"text-fg-dim",children:["Parent: ",e.jsx("code",{className:"font-mono",children:s.expected.parent_names.join(", ")})]}):null]})}function K(){const[s,t]=o.useState(()=>R()),i=n=>{t(n),M(n),B(n)};return e.jsxs("section",{className:"card mt-6 space-y-4 rounded-xl p-6",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"font-serif text-xl text-fg",children:"Text size"}),e.jsx("p",{className:"mt-1 text-xs text-fg-dim",children:"Affects the editor and rendered notes on this device. Your markdown isn't changed."})]}),e.jsxs("fieldset",{className:"space-y-2",children:[e.jsx("legend",{className:"sr-only",children:"View text size"}),D.map(n=>e.jsxs("label",{className:"flex items-start gap-2 text-sm",children:[e.jsx("input",{type:"radio",name:"text-size",value:n,checked:s===n,onChange:()=>i(n),className:"mt-1 accent-accent"}),e.jsx("span",{className:"text-fg",children:L(n)})]},n))]})]})}function U(){const[s,t]=o.useState(!1);return o.useEffect(()=>{t(O())},[]),s?e.jsx("section",{className:"card mt-6 p-4 text-sm",children:e.jsxs("p",{className:"text-fg-muted",children:[e.jsx("span",{className:"mr-2 inline-block rounded-full bg-[--color-positive-soft] px-2 py-0.5 text-xs font-medium text-[--color-positive]",children:"Installed"}),"Parachute Notes is running as an installed app on this device."]})}):null}const y={auto:{title:"Auto",help:"Show the tree only when the vault has enough folders to make it worth the space."},always:{title:"Always",help:"Always show the tree, even on a tag-flat vault."},never:{title:"Never",help:"Hide the tree. The path-prefix text input still works."}};function Y({vaultId:s}){const{mode:t,setMode:i}=_(s);return e.jsxs("section",{className:"card mt-6 space-y-4 rounded-xl p-6",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"font-serif text-xl text-fg",children:"Folder tree (Notes sidebar)"}),e.jsx("p",{className:"mt-1 text-xs text-fg-dim",children:"Controls the collapsible folder tree on the notes list page. Auto-detect renders the tree when the vault has at least five top-level folders or twenty notes in folders."})]}),e.jsxs("fieldset",{className:"space-y-2",children:[e.jsx("legend",{className:"sr-only",children:"Path tree visibility"}),z.map(n=>e.jsxs("label",{className:"flex items-start gap-2 text-sm",children:[e.jsx("input",{type:"radio",name:"path-tree-mode",value:n,checked:t===n,onChange:()=>i(n),className:"mt-1 accent-accent"}),e.jsxs("span",{children:[e.jsx("span",{className:"text-fg",children:y[n].title}),e.jsx("span",{className:"ml-2 text-xs text-fg-dim",children:y[n].help})]})]},n))]})]})}const b={pinned:{title:"Pinned",help:"Tag for notes you want at the top of views."},archived:{title:"Archived",help:"Tag for notes you've moved out of the way."},captureVoice:{title:"Voice capture",help:"Default tag for new voice memos."},captureText:{title:"Text capture",help:"Default tag for quick typed notes."},view:{title:"Saved view",help:"Tag the saved-view notes carry. Used to list them in the notes sidebar."}};function q({vaultId:s}){const{roles:t,setRoles:i}=P(s),n=V(),h=w(a=>a.push),c=o.useId(),[d,x]=o.useState(t);o.useEffect(()=>x(t),[t]);const u=o.useMemo(()=>{const a=(n.data??[]).map(r=>r.name);return[...new Set(a)].sort((r,l)=>r.localeCompare(l))},[n.data]),f=v.some(a=>d[a].trim()!==t[a]),g=()=>{i(d),h("Tag roles saved.","success")},p=()=>{i(null),x(N),h("Tag roles reset to defaults.","success")};return e.jsxs("section",{className:"card mt-6 space-y-4 rounded-xl p-6",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"font-serif text-xl text-fg",children:"Tag roles"}),e.jsx("p",{className:"mt-1 text-xs text-fg-dim",children:"Point each role at whatever tag your vault already uses. Changes apply to future notes only — existing notes keep their current tags."})]}),e.jsx("datalist",{id:c,children:u.map(a=>e.jsx("option",{value:a},a))}),e.jsx("div",{className:"space-y-3",children:v.map(a=>e.jsxs("label",{className:"block text-sm",children:[e.jsxs("span",{className:"mb-1 flex items-baseline justify-between gap-2",children:[e.jsx("span",{className:"text-fg-muted",children:b[a].title}),e.jsxs("span",{className:"text-xs text-fg-dim",children:["default: #",N[a]]})]}),e.jsx("input",{type:"text",value:d[a],onChange:r=>x(l=>({...l,[a]:r.target.value})),list:c,placeholder:N[a],"aria-label":`${b[a].title} tag role`,spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",className:"input input-on-bg"}),e.jsx("span",{className:"mt-1 block text-xs text-fg-dim",children:b[a].help})]},a))}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3 pt-2",children:[e.jsx("button",{type:"button",onClick:g,disabled:!f,className:"btn btn-primary btn-lg",children:"Save"}),e.jsx("button",{type:"button",onClick:p,className:"focus-ring text-sm text-fg-muted hover:text-accent",children:"Reset to defaults"})]})]})}export{Q as Settings};
@@ -0,0 +1 @@
1
+ import{ae as _,B as c,j as z,V as A,v as e,aa as B,ag as U,ai as W,ad as q,a9 as Y,a4 as H,a5 as Z,Y as G,N as J,L as M}from"./index-DQ3LtJxh.js";const I=t=>Object.values(t).reduce((n,l)=>n+l,0);function O({mode:t,sources:n,tagOptions:l,onClose:o,onRun:f,onRunMerge:i,pending:m,offline:d}){const b=_(a=>a.push),h=c.useId(),[j,N]=c.useState(t==="rename"?n[0]??"":""),[v,x]=c.useState(null),[p,T]=c.useState(null),[C,E]=c.useState(!1),w=c.useRef(null);c.useEffect(()=>{var a,s;(a=w.current)==null||a.focus(),(s=w.current)==null||s.select()},[]),c.useEffect(()=>{const a=s=>{s.key==="Escape"&&o()};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[o]);const k=j.trim().replace(/^#/,""),S=!m&&!d&&!C&&k.length>0&&!(t==="rename"&&k===n[0]),r=c.useCallback(async()=>{if(S){x(null),T(null);try{const a=await f(k);if("renamed"in a)b(`Renamed on ${a.renamed} note${a.renamed===1?"":"s"}.`,"success");else{const s=I(a.merged);b(`Merged into #${a.target} on ${s} note${s===1?"":"s"}.`,"success")}o()}catch(a){if(a instanceof z&&t==="rename"&&i){T(a.target);return}a instanceof A?x("Session expired. Reconnect to retry."):x(a instanceof Error?a.message:"Operation failed.")}}},[S,k,t,o,f,i,b]),g=c.useCallback(async()=>{if(!(!p||!i)){x(null),E(!0);try{const a=await i(p),s=I(a.merged);b(`Merged into #${a.target} on ${s} note${s===1?"":"s"}.`,"success"),o()}catch(a){a instanceof A?x("Session expired. Reconnect to retry."):x(a instanceof Error?a.message:"Merge failed."),E(!1)}}},[p,o,i,b]),y=t==="rename"?"Rename tag":`Merge ${n.length} tags`;return e.jsx("dialog",{open:!0,"aria-labelledby":"tag-op-title",className:"fixed inset-0 z-40 m-0 flex h-full max-h-full w-full max-w-full items-center justify-center bg-black/60 p-4",onMouseDown:a=>{a.target===a.currentTarget&&o()},children:e.jsxs("div",{className:"w-full max-w-md rounded-md border border-border bg-card p-6 shadow-xl",children:[e.jsx("h2",{id:"tag-op-title",className:"mb-2 font-serif text-xl text-fg",children:y}),e.jsxs("p",{className:"mb-3 text-sm text-fg-muted",children:[t==="rename"?e.jsxs(e.Fragment,{children:["Rename ",e.jsx($,{children:n[0]})," on every note that carries it. Notes that already have the new tag will end up with one copy."]}):e.jsxs(e.Fragment,{children:["Combine"," ",n.map((a,s)=>e.jsxs("span",{children:[e.jsx($,{children:a}),s<n.length-1?", ":""]},a))," ","into one tag. The originals are removed."]})," ","Changes apply atomically on the vault."]}),e.jsxs("label",{className:"mb-3 block text-sm",children:[e.jsx("span",{className:"mb-1 block text-fg-muted",children:t==="rename"?"New tag name":"Target tag"}),e.jsx("input",{ref:w,type:"text",value:j,onChange:a=>{N(a.target.value),p&&T(null)},onKeyDown:a=>{a.key==="Enter"&&S&&r()},list:h,"aria-label":t==="rename"?"New tag name":"Merge target tag",spellCheck:!1,autoCapitalize:"none",autoCorrect:"off",className:"w-full rounded-md border border-border bg-bg/40 px-2.5 py-1.5 font-mono text-sm text-fg focus:border-accent focus:outline-none",autoComplete:"off"}),e.jsx("datalist",{id:h,children:l.map(a=>e.jsx("option",{value:a},a))})]}),d?e.jsx("p",{className:"mb-3 text-sm text-amber-300",children:"Offline — tag operations need a live vault connection."}):null,p?e.jsxs("div",{role:"alert",className:"mb-3 rounded-md border border-amber-500/40 bg-amber-500/5 p-3 text-sm",children:[e.jsxs("p",{className:"mb-2 text-amber-300",children:["A tag named ",e.jsx($,{children:p})," already exists."]}),e.jsxs("p",{className:"mb-3 text-fg-muted",children:["Merge ",e.jsx($,{children:n[0]})," into ",e.jsx($,{children:p})," instead? Notes that carry both end up with one copy."]}),e.jsx("button",{type:"button",onClick:()=>void g(),disabled:C,className:"rounded-md bg-accent px-3 py-1.5 text-xs font-medium text-[--color-on-accent] hover:bg-accent-hover disabled:opacity-40",children:C?"Merging…":`Merge into #${p}`})]}):null,v?e.jsx("p",{role:"alert",className:"mb-3 text-sm text-red-400",children:v}):null,e.jsxs("div",{className:"flex justify-end gap-2",children:[e.jsx("button",{type:"button",onClick:o,className:"min-h-11 rounded-md border border-border bg-card px-3 py-1.5 text-sm text-fg-muted hover:text-fg",children:"Cancel"}),e.jsx("button",{type:"button",onClick:()=>void r(),disabled:!S,className:"min-h-11 rounded-md bg-accent px-4 py-1.5 text-sm font-medium text-[--color-on-accent] hover:bg-accent-hover disabled:opacity-40",children:m?t==="rename"?"Renaming…":"Merging…":t==="rename"?"Rename":"Merge"})]})]})})}function $({children:t}){return e.jsxs("span",{className:"rounded bg-bg/60 px-1 py-0.5 font-mono text-xs text-fg",children:["#",t]})}const Q=["string","number","boolean","date"];let D=0;function K(){return D+=1,`row-${D}`}function X(t){return t?Object.entries(t).map(([n,l])=>({rowId:K(),name:n,type:l.type||"string"})):[]}function ee({tagName:t,onClose:n}){var S;const l=B(t),o=U(),[f,i]=c.useState(""),[m,d]=c.useState([]),[b,h]=c.useState(""),[j,N]=c.useState(!1),[v,x]=c.useState(null);c.useEffect(()=>{if(j||l.isPending)return;const r=l.data;r&&(i(r.description??""),d(X(r.fields)),h((r.parent_names??[]).join(", "))),N(!0)},[j,l.isPending,l.data]);const p=((S=l.data)==null?void 0:S.fields)??null,T=!te(p,L(m)),C=(r,g)=>{d(y=>y.map(a=>a.rowId===r?{...a,...g}:a))},E=()=>{d(r=>[...r,{rowId:K(),name:"",type:"string"}])},w=r=>{d(g=>g.filter(y=>y.rowId!==r))},k=async()=>{x(null);const r=m.map(u=>({...u,name:u.name.trim()}));if(r.filter(u=>u.name.length===0).length>0){x("Field names can't be blank. Remove the empty row or fill it in.");return}const y=new Set;for(const u of r){if(y.has(u.name)){x(`Duplicate field name "${u.name}". Each field needs a unique key.`);return}y.add(u.name)}const a=r.length>0?L(r):null,s=p!=null&&Object.keys(p).some(u=>!r.find(V=>V.name===u)),R=b.split(",").map(u=>u.trim()).filter(u=>u.length>0),F={description:f.trim()||null,parent_names:R.length>0?R:null};try{s?(await o.mutateAsync({name:t,payload:{...F,fields:null}}),a&&await o.mutateAsync({name:t,payload:{...F,fields:a}})):await o.mutateAsync({name:t,payload:{...F,fields:a}}),n()}catch(u){if(u instanceof A){x("Session expired. Reconnect to save.");return}x(u instanceof Error?u.message:"Save failed")}};return e.jsx("dialog",{open:!0,"aria-modal":"true","aria-label":`Edit schema for #${t}`,className:"fixed inset-0 z-50 m-0 h-dvh w-screen max-h-none max-w-none overflow-y-auto bg-black/60 p-4 md:p-8",onKeyDown:r=>{r.key==="Escape"&&(r.preventDefault(),n())},children:e.jsxs("div",{className:"mx-auto max-w-xl rounded-lg border border-border bg-card p-5 text-fg md:p-6",children:[e.jsxs("header",{className:"mb-4 flex items-baseline justify-between gap-3",children:[e.jsxs("h2",{className:"font-serif text-lg",children:["Schema for ",e.jsxs("span",{className:"font-mono",children:["#",t]})]}),e.jsx("button",{type:"button",onClick:n,className:"text-sm text-fg-muted hover:text-accent","aria-label":"Close schema editor",children:"Close"})]}),l.isPending?e.jsx("p",{className:"text-sm text-fg-dim","aria-busy":"true",children:"Loading schema…"}):l.isError?e.jsxs("p",{role:"alert",className:"text-sm text-red-400",children:["Could not load schema: ",l.error.message]}):e.jsxs(e.Fragment,{children:[e.jsxs("label",{className:"mb-4 block",children:[e.jsx("span",{className:"mb-1 block text-xs uppercase tracking-wider text-fg-dim",children:"Description"}),e.jsx("input",{type:"text",value:f,onChange:r=>i(r.target.value),placeholder:"What does this tag mean? Who uses it?","aria-label":"Tag description",className:"w-full rounded-md border border-border bg-bg px-2.5 py-1.5 text-sm text-fg focus:border-accent focus:outline-none"})]}),e.jsxs("fieldset",{className:"mb-4",children:[e.jsx("legend",{className:"mb-2 text-xs uppercase tracking-wider text-fg-dim",children:"Fields"}),m.length===0?e.jsx("p",{className:"mb-2 text-xs text-fg-dim",children:"No fields declared yet. Add one to give notes carrying this tag a structured shape."}):e.jsx("ul",{className:"mb-2 space-y-2","aria-label":"Schema fields",children:m.map(r=>e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx("input",{type:"text",value:r.name,onChange:g=>C(r.rowId,{name:g.target.value}),placeholder:"field_name","aria-label":"Field name",className:"flex-1 rounded-md border border-border bg-bg px-2 py-1 font-mono text-xs text-fg focus:border-accent focus:outline-none"}),e.jsx("select",{value:r.type,onChange:g=>C(r.rowId,{type:g.target.value}),"aria-label":`Type for ${r.name||"new field"}`,className:"rounded-md border border-border bg-bg px-2 py-1 text-xs text-fg focus:border-accent focus:outline-none",children:Q.map(g=>e.jsx("option",{value:g,children:g},g))}),e.jsx("button",{type:"button",onClick:()=>w(r.rowId),"aria-label":`Remove field ${r.name||"new"}`,className:"text-fg-dim hover:text-red-400",children:"×"})]},r.rowId))}),e.jsx("button",{type:"button",onClick:E,className:"text-xs text-accent hover:text-accent-hover",children:"+ Add field"})]}),e.jsxs("label",{className:"mb-4 block",children:[e.jsx("span",{className:"mb-1 block text-xs uppercase tracking-wider text-fg-dim",children:"Parent tags"}),e.jsx("input",{type:"text",value:b,onChange:r=>h(r.target.value),placeholder:"comma-separated (e.g. project, area)","aria-label":"Parent tags",className:"w-full rounded-md border border-border bg-bg px-2.5 py-1.5 font-mono text-xs text-fg focus:border-accent focus:outline-none"}),e.jsx("p",{className:"mt-1 text-xs text-fg-dim",children:"Vault treats parents as a hierarchical relationship — children inherit semantics. Comma-separated; leave blank for a top-level tag."})]}),T?e.jsxs("div",{role:"alert",className:"mb-4 rounded-md border border-amber-500/30 bg-amber-500/5 p-3 text-xs text-amber-300",children:[e.jsx("strong",{className:"block font-medium",children:"Heads up."})," Editing this tag's schema doesn't retroactively update notes already tagged with"," ",e.jsxs("span",{className:"font-mono",children:["#",t]}),". The new schema applies to notes you create or update from here on. Existing notes keep their current shape until you edit them."]}):null,v?e.jsx("p",{role:"alert",className:"mb-3 text-sm text-red-400",children:v}):null,e.jsxs("footer",{className:"flex items-center justify-end gap-2",children:[e.jsx("button",{type:"button",onClick:n,className:"rounded-md border border-border bg-card px-3 py-1.5 text-sm text-fg-muted hover:text-accent",children:"Cancel"}),e.jsx("button",{type:"button",onClick:k,disabled:o.isPending,className:"rounded-md bg-accent px-4 py-1.5 text-sm font-medium text-[--color-on-accent] hover:bg-accent-hover disabled:opacity-40",children:o.isPending?"Saving…":"Save schema"})]})]})]})})}function L(t){const n={};for(const l of t){const o=l.name.trim();o&&(n[o]={type:l.type})}return n}function te(t,n){const l=t?Object.keys(t):[],o=n?Object.keys(n):[];if(l.length!==o.length)return!1;for(const f of l)if(!n||!n[f]||t[f].type!==n[f].type)return!1;return!0}function ce(){const t=W(s=>s.getActiveVault()),n=q(),{isOnline:l}=Y(),{isPinned:o,togglePin:f}=H((t==null?void 0:t.id)??null),[i,m]=c.useState(""),[d,b]=c.useState("count"),[h,j]=c.useState(new Set),[N,v]=c.useState(null),[x,p]=c.useState(!1),[T,C]=c.useState(null),E=Z(),w=G(),k=c.useMemo(()=>ne(n.data??[],i,d),[n.data,i,d]),S=c.useMemo(()=>(n.data??[]).map(s=>s.name),[n.data]),r=s=>{j(R=>{const P=new Set(R);return P.has(s)?P.delete(s):P.add(s),P})},g=()=>j(new Set);if(!t)return e.jsx(J,{to:"/",replace:!0});const y=h.size,a=!l;return e.jsxs("div",{className:"mx-auto max-w-4xl px-4 py-6 md:px-6 md:py-10",children:[e.jsxs("header",{className:"mb-5 flex flex-wrap items-baseline justify-between gap-x-4 gap-y-3 md:mb-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xs uppercase tracking-wider text-fg-dim",children:t.name}),e.jsx("h1",{className:"font-serif text-2xl tracking-tight md:text-3xl",children:"Tags"})]}),e.jsxs("button",{type:"button",onClick:()=>b(s=>s==="count"?"alpha":"count"),className:"text-sm text-fg-muted hover:text-accent","aria-label":"Toggle tag sort",children:["Sort: ",d==="count"?"most used":"A–Z"]})]}),e.jsx("input",{type:"search",placeholder:"Filter tags…",value:i,onChange:s=>m(s.target.value),"aria-label":"Filter tags",className:"mb-4 w-full rounded-md border border-border bg-card px-3 py-2 text-sm text-fg focus:border-accent focus:outline-none"}),y>0?e.jsxs("div",{className:"mb-4 flex flex-wrap items-center gap-3 rounded-md border border-accent/30 bg-accent/5 px-3 py-2 text-sm","aria-label":"Tag selection actions",children:[e.jsxs("span",{className:"text-fg-muted",children:[y," selected: ",Array.from(h).join(", ")]}),e.jsx("button",{type:"button",onClick:()=>p(!0),disabled:y<2||a,className:"rounded-md bg-accent px-3 py-1 text-xs font-medium text-[--color-on-accent] hover:bg-accent-hover disabled:opacity-40",children:"Merge into…"}),e.jsx("button",{type:"button",onClick:g,className:"text-xs text-fg-muted hover:text-accent",children:"Clear"})]}):null,n.isPending?e.jsx(se,{}):n.isError?e.jsx(re,{error:n.error}):k.length===0?e.jsx(le,{filtering:i.trim().length>0,hasAny:(n.data??[]).length>0}):e.jsx("ul",{className:"divide-y divide-border rounded-md border border-border bg-card","aria-label":"Tag list",children:k.map(s=>e.jsx(ae,{tag:s,selected:h.has(s.name),onToggle:()=>r(s.name),onRename:()=>v(s.name),onEditSchema:()=>C(s.name),pinned:o(s.name),onTogglePin:()=>f(s.name),offline:a},s.name))}),n.data&&n.data.length>0?e.jsxs("p",{className:"mt-6 text-xs text-fg-dim",children:[k.length," / ",n.data.length," tag",n.data.length===1?"":"s"]}):null,N!==null?e.jsx(O,{mode:"rename",sources:[N],tagOptions:S,onClose:()=>v(null),pending:E.isPending||w.isPending,offline:a,onRun:s=>E.mutateAsync({oldName:N,newName:s}),onRunMerge:s=>w.mutateAsync({sources:[N],target:s})}):null,x?e.jsx(O,{mode:"merge",sources:Array.from(h),tagOptions:S,onClose:()=>p(!1),pending:w.isPending,offline:a,onRun:async s=>{const R=await w.mutateAsync({sources:Array.from(h),target:s});return g(),R}}):null,T!==null?e.jsx(ee,{tagName:T,onClose:()=>C(null)}):null]})}function ae({tag:t,selected:n,onToggle:l,onRename:o,onEditSchema:f,pinned:i,onTogglePin:m,offline:d}){const b=t.fields?Object.keys(t.fields):[],h=t.parent_names??[],j=!!t.description||b.length>0||h.length>0;return e.jsxs("li",{className:"flex flex-col gap-1 px-3 py-2 text-sm",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("input",{type:"checkbox",checked:n,onChange:l,"aria-label":`Select tag ${t.name}`,className:"accent-accent"}),e.jsxs(M,{to:`/?tag=${encodeURIComponent(t.name)}`,className:"flex flex-1 items-baseline gap-2 text-fg hover:text-accent focus-visible:outline-2 focus-visible:outline-accent",children:[e.jsxs("span",{className:"font-mono",children:["#",t.name]}),e.jsx("span",{className:"text-xs text-fg-dim",children:t.count??0})]}),e.jsx("button",{type:"button",onClick:m,className:i?"text-xs font-medium text-accent hover:text-accent-hover":"text-xs text-fg-muted hover:text-accent","aria-label":i?`Unpin tag ${t.name}`:`Pin tag ${t.name}`,"aria-pressed":i,title:i?"Pinned to home strip — click to unpin":"Pin to home strip",children:i?"★ Pinned":"☆ Pin"}),e.jsx("button",{type:"button",onClick:f,disabled:d,className:"text-xs text-fg-muted hover:text-accent disabled:opacity-40","aria-label":`Edit schema for tag ${t.name}`,children:j?"Schema":"+ Schema"}),e.jsx("button",{type:"button",onClick:o,disabled:d,className:"text-xs text-fg-muted hover:text-accent disabled:opacity-40","aria-label":`Rename tag ${t.name}`,children:"Rename"})]}),j?e.jsxs("dl",{className:"ml-7 flex flex-wrap items-baseline gap-x-3 gap-y-1 text-xs text-fg-dim","aria-label":`Schema for ${t.name}`,children:[t.description?e.jsxs("div",{className:"flex w-full items-baseline gap-1.5",children:[e.jsx("dt",{className:"sr-only",children:"Description"}),e.jsx("dd",{className:"italic",children:t.description})]}):null,b.length>0?e.jsxs("div",{className:"flex items-baseline gap-1.5",children:[e.jsx("dt",{className:"uppercase tracking-wider",children:"Fields"}),e.jsx("dd",{className:"font-mono text-fg-muted",children:b.map(N=>{var v,x;return`${N}: ${((x=(v=t.fields)==null?void 0:v[N])==null?void 0:x.type)??"?"}`}).join(", ")})]}):null,h.length>0?e.jsxs("div",{className:"flex items-baseline gap-1.5",children:[e.jsx("dt",{className:"uppercase tracking-wider",children:"Parents"}),e.jsx("dd",{className:"font-mono text-fg-muted",children:h.join(", ")})]}):null]}):null]})}function ne(t,n,l){const o=n.trim().toLowerCase(),i=[...o?t.filter(m=>m.name.toLowerCase().includes(o)):t];return l==="alpha"?i.sort((m,d)=>m.name.localeCompare(d.name)):i.sort((m,d)=>(d.count??0)-(m.count??0)||m.name.localeCompare(d.name)),i}function se(){return e.jsx("div",{className:"divide-y divide-border rounded-md border border-border bg-card","aria-busy":"true",children:[0,1,2,3,4].map(t=>e.jsx("div",{className:"h-10 animate-pulse bg-card/60"},t))})}function re({error:t}){const n=t instanceof A;return e.jsxs("div",{className:"rounded-md border border-red-500/30 bg-red-500/5 p-6",children:[e.jsx("p",{className:"mb-2 font-medium text-red-400",children:n?"Session expired":"Could not load tags"}),e.jsx("p",{className:"mb-4 text-sm text-fg-muted",children:t.message}),n?e.jsx(M,{to:"/add",className:"inline-block rounded-md bg-accent px-4 py-2 text-sm font-medium text-[--color-on-accent] hover:bg-accent-hover",children:"Reconnect vault"}):null]})}function le({filtering:t,hasAny:n}){return t&&n?e.jsx("div",{className:"rounded-md border border-border bg-card p-10 text-center",children:e.jsx("p",{className:"text-fg-muted",children:"No tags match your filter."})}):e.jsxs("div",{className:"rounded-md border border-border bg-card p-10 text-center",children:[e.jsx("p",{className:"mb-3 text-fg-muted",children:"No tags in this vault yet."}),e.jsx(M,{to:"/new",className:"inline-block rounded-md bg-accent px-4 py-2 text-sm font-medium text-[--color-on-accent] hover:bg-accent-hover",children:"Create a note"})]})}export{ce as Tags};
@@ -0,0 +1 @@
1
+ import{ai as k,a8 as $,a0 as A,B as D,v as e,N as E,L as d,F as S,V}from"./index-DQ3LtJxh.js";import{e as C,b as N,t as g,f as K,p as f}from"./dates-BGZoWpL2.js";function F(){const a=k(i=>i.getActiveVault()),[r]=$(),t=r.get("date"),u=C(),s=t??u,x=N(s),n=A(),o=D.useMemo(()=>{const i=[],m=[];if(!n.data||!x)return{created:i,edited:m};for(const l of n.data){const b=g(l.createdAt),w=g(l.updatedAt??l.createdAt);b===s&&i.push(l),w===s&&b!==s&&m.push(l)}return{created:i,edited:m}},[n.data,x,s]);if(!a)return e.jsx(E,{to:"/",replace:!0});if(!x)return e.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-6 md:px-6 md:py-10",children:[e.jsxs("p",{className:"text-sm text-red-400",children:["Invalid date in URL: ",s]}),e.jsx(d,{to:"/today",className:"text-sm text-accent hover:underline",children:"Back to today"})]});const c=s===u,p=j(s,-1),h=j(s,1),v=s.slice(0,7);return e.jsxs("div",{className:"mx-auto max-w-3xl px-4 py-6 md:px-6 md:py-10",children:[e.jsxs("header",{className:"mb-6 flex flex-wrap items-baseline justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-xs uppercase tracking-wider text-fg-dim",children:c?"Today":"On"}),e.jsx("h1",{className:"font-serif text-2xl tracking-tight md:text-3xl",children:K(s)})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-sm",children:[e.jsxs(d,{to:`/today?date=${p}`,className:"rounded-md border border-border bg-card px-3 py-1.5 text-fg-muted hover:text-accent","aria-label":"Previous day",children:["← ",p]}),c?null:e.jsx(d,{to:"/today",className:"rounded-md border border-border bg-card px-3 py-1.5 text-fg-muted hover:text-accent",children:"Today"}),e.jsxs(d,{to:`/today?date=${h}`,className:"rounded-md border border-border bg-card px-3 py-1.5 text-fg-muted hover:text-accent","aria-label":"Next day",children:[h," →"]}),e.jsx(d,{to:`/calendar?month=${v}`,className:"rounded-md border border-border bg-card px-3 py-1.5 text-fg-muted hover:text-accent",children:"Calendar"}),e.jsx(d,{to:"/new",className:"rounded-md bg-accent px-3 py-1.5 font-medium text-[--color-on-accent] hover:bg-accent-hover",children:"+ New note"})]})]}),n.isPending?e.jsx(B,{}):n.isError?e.jsx(L,{error:n.error}):o.created.length===0&&o.edited.length===0?e.jsx(P,{isToday:c,targetKey:s}):e.jsxs("div",{className:"space-y-8",children:[o.created.length>0?e.jsx(y,{title:c?"Created today":`Created on ${s}`,notes:o.created}):null,o.edited.length>0?e.jsx(y,{title:c?"Edited today":`Edited on ${s}`,notes:o.edited}):null]})]})}function j(a,r){const t=N(a);return t?(t.setDate(t.getDate()+r),`${t.getFullYear()}-${f(t.getMonth()+1)}-${f(t.getDate())}`):a}function y({title:a,notes:r}){return e.jsxs("section",{children:[e.jsxs("h2",{className:"mb-2 text-xs uppercase tracking-wider text-fg-dim",children:[a," (",r.length,")"]}),e.jsx("ol",{className:"divide-y divide-border rounded-md border border-border bg-card",children:r.map(t=>e.jsx("li",{children:e.jsxs(d,{to:`/n/${encodeURIComponent(t.id)}`,className:"block px-4 py-3 hover:bg-bg/60 focus:bg-bg/60 focus:outline-none",children:[e.jsxs("div",{className:"flex items-baseline justify-between gap-4",children:[e.jsx("span",{className:"truncate font-mono text-sm text-fg",children:t.path??t.id}),e.jsx("span",{className:"shrink-0 text-xs text-fg-dim",children:S(t.updatedAt??t.createdAt)})]}),t.preview?e.jsx("p",{className:"mt-1 truncate text-sm text-fg-muted",children:t.preview}):null]})},t.id))})]})}function P({isToday:a,targetKey:r}){return e.jsxs("div",{className:"rounded-md border border-border bg-card p-10 text-center",children:[e.jsx("p",{className:"mb-4 text-fg-muted",children:a?"Nothing yet today — start capturing.":`Nothing on ${r}.`}),a?e.jsx(d,{to:"/new",className:"inline-block rounded-md bg-accent px-4 py-2 text-sm font-medium text-[--color-on-accent] hover:bg-accent-hover",children:"New note"}):null]})}function B(){return e.jsx("div",{className:"space-y-3","aria-busy":"true",children:[0,1,2,3].map(a=>e.jsx("div",{className:"h-14 animate-pulse rounded-md bg-border/30"},a))})}function L({error:a}){const r=a instanceof V;return e.jsxs("div",{className:"rounded-md border border-red-500/30 bg-red-500/5 p-6",children:[e.jsx("p",{className:"mb-2 font-medium text-red-400",children:r?"Session expired":"Could not load notes"}),e.jsx("p",{className:"mb-4 text-sm text-fg-muted",children:a.message}),r?e.jsx(d,{to:"/add",className:"inline-block rounded-md bg-accent px-4 py-2 text-sm font-medium text-[--color-on-accent] hover:bg-accent-hover",children:"Reconnect vault"}):null]})}export{F as Today};
@@ -0,0 +1,3 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./react-force-graph-2d-BD6TQ9hX.js","./index-DQ3LtJxh.js","./index--Z5j3NQq.css"])))=>i.map(i=>d[i]);
2
+ import{ai as N,M as w,B as f,v as s,N as k,L as v,Z as C,V as M,_ as I}from"./index-DQ3LtJxh.js";const S={search:"",tags:[]};function T(e){const t=new Map;for(const l of e)t.set(l.id,l);const a=new Map,o=new Map;for(const l of e)for(const n of l.links??[]){if(n.sourceId===n.targetId||!t.has(n.sourceId)||!t.has(n.targetId))continue;const c=`${n.sourceId}|${n.targetId}|${n.relationship}`;a.has(c)||(a.set(c,{source:n.sourceId,target:n.targetId,relationship:n.relationship}),o.set(n.sourceId,(o.get(n.sourceId)??0)+1),o.set(n.targetId,(o.get(n.targetId)??0)+1))}return{nodes:e.map(l=>{var c;const n=l.tags??[];return{id:l.id,path:l.path,title:A(l),tags:n,topTag:n[0],degree:o.get(l.id)??0,summary:typeof((c=l.metadata)==null?void 0:c.summary)=="string"?l.metadata.summary:void 0}}),edges:[...a.values()]}}function A(e){return e.path?(e.path.split("/").pop()??e.path).replace(/\.md$/i,""):e.id}function R(e,t){const a=t.search.trim().toLowerCase();return!(a&&![e.path??"",e.title,e.id].join(" ").toLowerCase().includes(a)||t.tags.length>0&&!t.tags.some(d=>e.tags.includes(d)))}function E(e){const t=new Map;for(const a of e)for(const o of a.tags)t.set(o,(t.get(o)??0)+1);return[...t.entries()].sort((a,o)=>o[1]-a[1]||a[0].localeCompare(o[0])).map(([a])=>a)}function _(e){if(!e)return"#8a9a7a";let t=0;for(let o=0;o<e.length;o++)t=t*31+e.charCodeAt(o)&16777215;return`hsl(${t%360}, 40%, 55%)`}const F=f.lazy(()=>I(()=>import("./react-force-graph-2d-BD6TQ9hX.js"),__vite__mapDeps([0,1,2]),import.meta.url)),L=20;function O(){const e=N(c=>c.getActiveVault()),t=w(),[a,o]=f.useState(S),d=f.useMemo(()=>t.data?T(t.data):null,[t.data]),l=f.useMemo(()=>d?E(d.nodes):[],[d]),n=f.useMemo(()=>d?new Set(d.nodes.filter(c=>R(c,a)).map(c=>c.id)):new Set,[d,a]);return e?s.jsxs("div",{className:"flex h-[calc(100dvh-5rem)] flex-col",children:[s.jsx("div",{className:"border-b border-border bg-card/40 px-6 py-3",children:s.jsxs("div",{className:"mx-auto flex max-w-6xl flex-wrap items-center gap-4",children:[s.jsx("input",{type:"search",value:a.search,onChange:c=>o(m=>({...m,search:c.target.value})),placeholder:"Search nodes…","aria-label":"Search graph nodes",className:"min-w-48 rounded-md border border-border bg-card px-3 py-1.5 text-sm text-fg focus:border-accent focus:outline-none"}),s.jsx($,{allTags:l,selected:a.tags,onChange:c=>o(m=>({...m,tags:c}))}),d?s.jsxs("span",{className:"text-xs text-fg-dim",children:[n.size," / ",d.nodes.length," notes"]}):null]})}),s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(P,{query:t,graph:d,matched:n})})]}):s.jsx(k,{to:"/",replace:!0})}function P({query:e,graph:t,matched:a}){return e.isPending?s.jsx(y,{message:"Loading vault…"}):e.isError?s.jsx(G,{error:e.error}):!t||t.nodes.length===0?s.jsx("div",{className:"flex h-full items-center justify-center p-10",children:s.jsxs("div",{className:"max-w-sm rounded-md border border-border bg-card p-8 text-center",children:[s.jsx("p",{className:"mb-2 font-serif text-xl",children:"No notes yet"}),s.jsx("p",{className:"mb-4 text-sm text-fg-muted",children:"This vault is empty. Start by creating the first note."}),s.jsx(v,{to:"/new",className:"inline-block rounded-md bg-accent px-4 py-2 text-sm font-medium text-[--color-on-accent] hover:bg-accent-hover",children:"Create a note"})]})}):s.jsx(z,{graph:t,matched:a})}function $({allTags:e,selected:t,onChange:a}){const o=e.slice(0,L);if(o.length===0)return null;const d=l=>a(t.includes(l)?t.filter(n=>n!==l):[...t,l]);return s.jsxs("fieldset",{"aria-label":"Filter by tag",className:"flex flex-wrap items-center gap-1 text-xs text-fg-dim",children:[s.jsx("legend",{className:"mr-1 inline-block",children:"Tags"}),o.map(l=>{const n=t.includes(l);return s.jsx("button",{type:"button","aria-pressed":n,onClick:()=>d(l),className:n?"max-w-full break-all rounded-full border border-accent bg-accent/10 px-2 py-0.5 text-accent":"max-w-full break-all rounded-full border border-border bg-card px-2 py-0.5 hover:text-accent",children:l},l)}),t.length>0?s.jsx("button",{type:"button",onClick:()=>a([]),className:"ml-1 text-xs text-fg-dim hover:text-accent",children:"Clear"}):null]})}function y({message:e}){return s.jsx("div",{"aria-busy":"true",className:"flex h-full animate-pulse items-center justify-center bg-card/30 text-sm text-fg-dim",children:e})}function z({graph:e,matched:t}){const a=C(),o=f.useRef(null),d=f.useRef(null),[l,n]=f.useState({w:800,h:600});f.useEffect(()=>{const r=o.current;if(!r)return;const i=()=>{const u=r.getBoundingClientRect();n({w:Math.max(320,Math.floor(u.width)),h:Math.max(320,Math.floor(u.height))})};i();const h=new ResizeObserver(i);return h.observe(r),()=>h.disconnect()},[]);const c=()=>{var r,i;(i=(r=d.current)==null?void 0:r.zoomToFit)==null||i.call(r,400,40)},m=f.useMemo(()=>({nodes:e.nodes.map(r=>({...r})),links:e.edges.map(r=>({source:r.source,target:r.target,rel:r.relationship}))}),[e]),g=t.size!==e.nodes.length,j=r=>!g||t.has(r)?1:.15;return s.jsxs("div",{ref:o,"data-testid":"vault-graph-canvas",className:"relative h-full w-full touch-none",children:[s.jsx(f.Suspense,{fallback:s.jsx(y,{message:"Rendering graph…"}),children:s.jsx(F,{ref:d,graphData:m,width:l.w,height:l.h,backgroundColor:"rgba(0,0,0,0)",nodeLabel:r=>V(r),nodeRelSize:5,nodeVal:r=>2+Math.min(r.degree,12),nodeColor:r=>{const i=r,h=_(i.topTag);return g&&!t.has(i.id)?B(h):h},nodePointerAreaPaint:(r,i,h)=>{const u=r;if(u.x==null||u.y==null)return;const x=2+Math.min(u.degree,12),p=Math.max(Math.sqrt(x)*5,10);h.fillStyle=i,h.beginPath(),h.arc(u.x,u.y,p,0,2*Math.PI),h.fill()},linkColor:r=>{const i=r,h=b(i.source),u=b(i.target);return g&&(!t.has(h)||!t.has(u))?"rgba(160, 160, 160, 0.08)":"rgba(160, 160, 160, 0.35)"},linkDirectionalArrowLength:2.5,linkDirectionalArrowRelPos:1,cooldownTicks:100,onEngineStop:()=>c(),nodeCanvasObjectMode:()=>"after",nodeCanvasObject:(r,i,h)=>{const u=r;if(u.x==null||u.y==null||j(u.id)<.5)return;const p=10/h;i.font=`${p}px sans-serif`,i.fillStyle="rgba(220, 220, 220, 0.8)",i.textAlign="left",i.textBaseline="middle",i.fillText(u.title,u.x+6,u.y)},onNodeClick:r=>{a(`/n/${encodeURIComponent(r.id)}`)}})}),s.jsx("button",{type:"button",onClick:c,className:"absolute right-3 bottom-3 rounded-md border border-border bg-card/90 px-3 py-1.5 text-xs text-fg-muted shadow-sm backdrop-blur hover:text-accent",children:"Fit to screen"})]})}function V(e){const t=[e.path??e.id,`${e.degree} link${e.degree===1?"":"s"}`];return e.tags.length>0&&t.push(`tags: ${e.tags.join(", ")}`),e.summary&&t.push(e.summary),t.join(`
3
+ `)}function B(e){return e.startsWith("hsl(")?e.replace("hsl(","hsla(").replace(")",", 0.2)"):e}function b(e){return typeof e=="string"?e:e&&typeof e=="object"&&"id"in e?String(e.id):""}function G({error:e}){const t=e instanceof M;return s.jsx("div",{className:"flex h-full items-center justify-center p-10",children:s.jsxs("div",{className:"max-w-md rounded-md border border-red-500/30 bg-red-500/5 p-6",children:[s.jsx("p",{className:"mb-2 font-medium text-red-400",children:t?"Session expired":"Could not load vault"}),s.jsx("p",{className:"mb-4 text-sm text-fg-muted",children:e.message}),t?s.jsx(v,{to:"/add",className:"inline-block rounded-md bg-accent px-4 py-2 text-sm font-medium text-[--color-on-accent] hover:bg-accent-hover",children:"Reconnect vault"}):null]})})}export{O as VaultGraph};
@@ -0,0 +1 @@
1
+ import{ai as r,v as e,L as i}from"./index-DQ3LtJxh.js";function m(c){let s;try{s=new URL(c)}catch{return!1}const a=s.pathname.split("/").filter(Boolean);return!(a.length>=2&&a[0]==="vault")}function u(){const c=r(t=>t.vaults),s=r(t=>t.activeVaultId),a=r(t=>t.removeVault),o=r(t=>t.setActiveVault),l=Object.values(c).sort((t,n)=>t.name.localeCompare(n.name));return e.jsxs("div",{className:"mx-auto max-w-3xl px-6 py-16",children:[e.jsxs("div",{className:"mb-8 flex items-center justify-between",children:[e.jsx("h1",{className:"font-serif text-4xl tracking-tight",children:"Vaults"}),e.jsx(i,{to:"/add",className:"rounded-md bg-accent px-4 py-2 text-sm font-medium text-[--color-on-accent] hover:bg-accent-hover",children:"Add vault"})]}),l.length===0?e.jsx("p",{className:"text-fg-muted",children:"No vaults connected yet."}):e.jsx("ul",{className:"space-y-3",children:l.map(t=>{const n=t.id===s,d=m(t.url);return e.jsxs("li",{className:"rounded-lg border border-border bg-card p-4",children:[e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsxs("div",{className:"min-w-0",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("span",{className:"font-serif text-lg text-fg",children:t.name}),n?e.jsx("span",{className:"rounded bg-accent/10 px-2 py-0.5 text-xs text-accent",children:"active"}):null,e.jsx("span",{className:"rounded border border-border px-2 py-0.5 text-xs text-fg-dim",children:t.scope}),d?e.jsx("span",{className:"rounded border border-amber-500/40 bg-amber-500/10 px-2 py-0.5 text-xs text-amber-500",children:"needs reconnect"}):null]}),e.jsx("p",{className:"mt-1 truncate font-mono text-xs text-fg-muted",children:t.url})]}),e.jsxs("div",{className:"flex shrink-0 items-center gap-4 text-sm",children:[n?null:e.jsx("button",{type:"button",onClick:()=>o(t.id),className:"text-fg-muted hover:text-accent",children:"Make active"}),e.jsx("button",{type:"button",onClick:()=>{confirm(`Remove ${t.name}? The access token will be deleted.`)&&a(t.id)},className:"text-red-400 hover:text-red-300",children:"Remove"})]})]}),d?e.jsxs("p",{className:"mt-3 rounded border border-amber-500/30 bg-amber-500/5 px-3 py-2 text-xs text-amber-500",children:["Vault now serves under ",e.jsx("code",{children:"/vault/<name>/"}),". This stored URL is from the older scheme and won't reach the new endpoints. Remove this entry and"," ",e.jsx(i,{to:"/add",className:"underline",children:"add it again"})," ","— discovery will pick the right URL automatically."]}):null]},t.id)})})]})}export{u as Vaults};
@@ -0,0 +1,2 @@
1
+ import{B as n,v as i,d as h,S as v}from"./index-DQ3LtJxh.js";function E({onDropFiles:e,children:t,className:a,hint:s}){const[c,u]=n.useState(!1),o=n.useRef(0),d=n.useCallback(r=>{l(r.dataTransfer)&&(r.preventDefault(),o.current+=1,u(!0))},[]),m=n.useCallback(r=>{l(r.dataTransfer)&&(r.preventDefault(),o.current=Math.max(0,o.current-1),o.current===0&&u(!1))},[]),p=n.useCallback(r=>{l(r.dataTransfer)&&(r.preventDefault(),r.dataTransfer.dropEffect="copy")},[]),x=n.useCallback(r=>{if(!l(r.dataTransfer))return;r.preventDefault(),u(!1),o.current=0;const f=Array.from(r.dataTransfer.files);f.length>0&&e(f)},[e]);return i.jsxs("div",{className:`relative ${a??""}`,onDragEnter:d,onDragLeave:m,onDragOver:p,onDrop:x,children:[t,c?i.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 z-20 flex items-center justify-center rounded-md border-2 border-dashed border-accent bg-accent/10 text-sm text-accent",children:i.jsxs("div",{className:"rounded-md bg-bg/80 px-4 py-2 font-medium shadow",children:["Drop to attach",s?i.jsxs("span",{className:"ml-2 text-fg-dim",children:["— ",s]}):null]})}):null]})}function l(e){if(!e)return!1;const t=e.types;for(let a=0;a<t.length;a++)if(t[a]==="Files")return!0;return!1}function $(e){const t=e.lastIndexOf(".");return t>=0?e.slice(t+1).toLowerCase():""}function g(e){return`${(e/(1024*1024)).toFixed(1)} MB`}function T(e){if(e.size>h)return`${e.name} is too large (${g(e.size)}). Max: 100 MB.`;const t=$(e.name);return v.has(t)?null:`${e.name}: .${t||"?"} is not in the vault allowlist.`}function D(e,t,a={}){const s=`/api/storage/${e.path}`,c=a.newline===!1?"":`
2
+ `;return e.mimeType.startsWith("image/")?`![${t}](${s})${c}`:`[${t}](${s})${c}`}export{E as A,$ as f,D as m,T as v};
@@ -0,0 +1 @@
1
+ @import"https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap";/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@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-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--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}}}@layer theme{:root,:host{--font-sans:"DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;--font-serif:"Instrument Serif", Georgia, serif;--font-mono:"JetBrains Mono", "SF Mono", Monaco, monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-emerald-400:oklch(76.5% .177 163.223);--color-sky-300:oklch(82.8% .111 230.318);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.375rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.625rem;--text-2xl--line-height:calc(2 / 1.5);--text-3xl:1.9375rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5 / 2.25);--text-5xl:3rem;--text-5xl--line-height:1;--font-weight-medium:500;--tracking-tight:-.025em;--tracking-wide:.025em;--tracking-wider:.05em;--radius-xs:3px;--radius-sm:4px;--radius-md:6px;--radius-lg:10px;--radius-xl:14px;--shadow-sm:0 1px 2px #2c2a260f;--shadow-lg:0 8px 24px #2c2a261f, 0 2px 6px #2c2a260f;--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:#faf8f4;--color-bg-soft:#f3f0ea;--color-fg:#2c2a26;--color-fg-muted:#6b6860;--color-fg-dim:#9a9690;--color-accent:#4a7c59;--color-accent-hover:#3d6849;--color-accent-light:#6a9b77;--color-border:#e4e0d8;--color-card:#fff;--color-on-accent:#fff;--color-danger:#c0492f;--color-danger-hover:#a23b25;--color-danger-soft:#c0492f1a}@supports (color:color-mix(in lab,red,red)){:root,:host{--color-danger-soft:color-mix(in srgb, var(--color-danger) 10%, transparent)}}:root,:host{--color-danger-border:#c0492f4d}@supports (color:color-mix(in lab,red,red)){:root,:host{--color-danger-border:color-mix(in srgb, var(--color-danger) 30%, transparent)}}:root,:host{--color-warning:#b45309;--color-warning-soft:#b453091f}@supports (color:color-mix(in lab,red,red)){:root,:host{--color-warning-soft:color-mix(in srgb, var(--color-warning) 12%, transparent)}}:root,:host{--color-positive:var(--color-accent);--color-positive-soft:#4a7c591f}@supports (color:color-mix(in lab,red,red)){:root,:host{--color-positive-soft:color-mix(in srgb, var(--color-accent) 12%, transparent)}}:root,:host{--text-2xs:.6875rem;--radius-full:9999px;--w-prose:42rem;--w-page:72rem;--w-narrow:32rem;--font-size-prose:18px;--font-size-editor:15px}}@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%;-moz-tab-size:4;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;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]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance: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{.focus-ring{outline:none}.focus-ring:focus-visible{outline-offset:2px;box-shadow:0 0 0 2px var(--color-bg),0 0 0 4px #4a7c59b3;outline:2px solid #0000}@supports (color:color-mix(in lab,red,red)){.focus-ring:focus-visible{box-shadow:0 0 0 2px var(--color-bg),0 0 0 4px color-mix(in srgb,var(--color-accent) 70%,transparent)}}.focus-ring:focus-visible{border-radius:var(--radius-sm)}.btn{border-radius:var(--radius-md);min-height:2.25rem;font-size:var(--text-sm);white-space:nowrap;cursor:pointer;justify-content:center;align-items:center;gap:.5rem;padding:.375rem .875rem;font-weight:500;line-height:1.2;transition:background-color .12s,border-color .12s,color .12s,box-shadow .12s;display:inline-flex}.btn:disabled,.btn[aria-disabled=true]{opacity:.45;cursor:not-allowed}.btn:focus-visible{outline-offset:2px;box-shadow:0 0 0 2px var(--color-bg),0 0 0 4px #4a7c59b3;outline:2px solid #0000}@supports (color:color-mix(in lab,red,red)){.btn:focus-visible{box-shadow:0 0 0 2px var(--color-bg),0 0 0 4px color-mix(in srgb,var(--color-accent) 70%,transparent)}}.btn-primary{background-color:var(--color-accent);color:var(--color-on-accent)}.btn-primary:not(:disabled):hover{background-color:var(--color-accent-hover)}.btn-secondary{background-color:var(--color-card);color:var(--color-fg-muted);border:1px solid var(--color-border)}.btn-secondary:not(:disabled):hover{color:var(--color-accent);border-color:var(--color-accent)}.btn-ghost{color:var(--color-fg-muted);background-color:#0000;min-height:0;padding:.25rem .5rem}.btn-ghost:not(:disabled):hover{color:var(--color-accent)}.btn-danger{background-color:var(--color-danger-soft);color:var(--color-danger);border:1px solid var(--color-danger-border)}.btn-danger:not(:disabled):hover{background-color:#c0492f2e}@supports (color:color-mix(in lab,red,red)){.btn-danger:not(:disabled):hover{background-color:color-mix(in srgb,var(--color-danger) 18%,transparent)}}.btn-danger:not(:disabled):hover{border-color:var(--color-danger)}.btn-accent-soft{background-color:#4a7c591a}@supports (color:color-mix(in lab,red,red)){.btn-accent-soft{background-color:color-mix(in srgb,var(--color-accent) 10%,transparent)}}.btn-accent-soft{color:var(--color-accent);border:1px solid #4a7c5999}@supports (color:color-mix(in lab,red,red)){.btn-accent-soft{border:1px solid color-mix(in srgb,var(--color-accent) 60%,transparent)}}.btn-accent-soft:not(:disabled):hover{background-color:#4a7c5933}@supports (color:color-mix(in lab,red,red)){.btn-accent-soft:not(:disabled):hover{background-color:color-mix(in srgb,var(--color-accent) 20%,transparent)}}.btn-danger-solid{background-color:var(--color-danger);color:var(--color-on-accent)}.btn-danger-solid:not(:disabled):hover{background-color:var(--color-danger-hover)}.btn-sm{min-height:0;font-size:var(--text-xs);padding:.25rem .625rem}.btn-lg{min-height:2.75rem;font-size:var(--text-base);padding:.5rem 1rem}.btn-touch{min-height:2.75rem}.input,.textarea,.select{background-color:var(--color-card);width:100%;color:var(--color-fg);border:1px solid var(--color-border);border-radius:var(--radius-md);font-size:var(--text-sm);padding:.5rem .75rem;line-height:1.5;transition:border-color .12s,box-shadow .12s}.textarea{resize:vertical}.input::placeholder,.textarea::placeholder{color:var(--color-fg-dim)}.input:focus-visible,.textarea:focus-visible,.select:focus-visible{border-color:var(--color-accent);outline:none;box-shadow:0 0 0 3px #4a7c5938}@supports (color:color-mix(in lab,red,red)){.input:focus-visible,.textarea:focus-visible,.select:focus-visible{box-shadow:0 0 0 3px color-mix(in srgb,var(--color-accent) 22%,transparent)}}.input:disabled,.textarea:disabled,.select:disabled{opacity:.5;cursor:not-allowed}.input-on-bg{background-color:var(--color-bg)}.card{background-color:var(--color-card);border:1px solid var(--color-border);border-radius:var(--radius-lg)}.chip{border-radius:var(--radius-full);font-size:var(--text-xs);border:1px solid var(--color-border);background-color:var(--color-bg-soft);color:var(--color-fg-muted);align-items:center;gap:.25rem;padding:.125rem .625rem;line-height:1.4;display:inline-flex}.chip-tag{border-color:#4a7c594d}@supports (color:color-mix(in lab,red,red)){.chip-tag{border-color:color-mix(in srgb,var(--color-accent) 30%,transparent)}}.chip-tag{background-color:#4a7c591a}@supports (color:color-mix(in lab,red,red)){.chip-tag{background-color:color-mix(in srgb,var(--color-accent) 10%,transparent)}}.chip-tag{color:var(--color-accent)}.chip-tag:hover{border-color:var(--color-accent);background-color:#4a7c5933}@supports (color:color-mix(in lab,red,red)){.chip-tag:hover{background-color:color-mix(in srgb,var(--color-accent) 20%,transparent)}}.chip-tag-active{border-color:var(--color-accent);background-color:var(--color-accent);color:var(--color-on-accent)}.dialog-overlay{z-index:40;background-color:#0009;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;top:0;right:0;bottom:0;left:0}.dialog-panel{background-color:var(--color-card);border:1px solid var(--color-border);border-radius:var(--radius-lg);width:100%;box-shadow:var(--shadow-lg);padding:1.25rem}.eyebrow{font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.05em;color:var(--color-fg-dim)}.note-id{font-family:var(--font-mono);font-size:var(--text-xs);color:var(--color-fg-dim);word-break:break-all}.page{max-width:var(--w-page);margin-inline:auto;padding-block:1.5rem;padding-inline:1rem}@media(min-width:768px){.page{padding-block:2.5rem;padding-inline:1.5rem}}.page-prose{max-width:var(--w-prose);margin-inline:auto;padding-block:1.75rem;padding-inline:1rem}@media(min-width:768px){.page-prose{padding-block:3rem;padding-inline:1.5rem}}.skeleton{background-color:#e4e0d88c}@supports (color:color-mix(in lab,red,red)){.skeleton{background-color:color-mix(in srgb,var(--color-border) 55%,transparent)}}.skeleton{border-radius:var(--radius-sm);animation:1.6s cubic-bezier(.4,0,.6,1) infinite pulse}}@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.top-0{top:calc(var(--spacing) * 0)}.top-full{top:100%}.right-0{right:calc(var(--spacing) * 0)}.right-3{right:calc(var(--spacing) * 3)}.bottom-0{bottom:calc(var(--spacing) * 0)}.bottom-3{bottom:calc(var(--spacing) * 3)}.bottom-4{bottom:calc(var(--spacing) * 4)}.bottom-6{bottom:calc(var(--spacing) * 6)}.left-1\/2{left:50%}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing) * 0)}.m-auto{margin:auto}.mx-1{margin-inline:calc(var(--spacing) * 1)}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-10{margin-top:calc(var(--spacing) * 10)}.mr-1{margin-right:calc(var(--spacing) * 1)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.mb-10{margin-bottom:calc(var(--spacing) * 10)}.ml-0\.5{margin-left:calc(var(--spacing) * .5)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-4{margin-left:calc(var(--spacing) * 4)}.ml-7{margin-left:calc(var(--spacing) * 7)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-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}.table{display:table}.h-1{height:calc(var(--spacing) * 1)}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-2{height:calc(var(--spacing) * 2)}.h-3{height:calc(var(--spacing) * 3)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-14{height:calc(var(--spacing) * 14)}.h-16{height:calc(var(--spacing) * 16)}.h-24{height:calc(var(--spacing) * 24)}.h-28{height:calc(var(--spacing) * 28)}.h-32{height:calc(var(--spacing) * 32)}.h-\[24rem\]{height:24rem}.h-\[40rem\]{height:40rem}.h-\[calc\(100dvh-5rem\)\]{height:calc(100dvh - 5rem)}.h-dvh{height:100dvh}.h-full{height:100%}.max-h-48{max-height:calc(var(--spacing) * 48)}.max-h-56{max-height:calc(var(--spacing) * 56)}.max-h-\[32rem\]{max-height:32rem}.max-h-\[50vh\]{max-height:50vh}.max-h-\[60vh\]{max-height:60vh}.max-h-full{max-height:100%}.max-h-none{max-height:none}.min-h-0{min-height:calc(var(--spacing) * 0)}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-20{min-height:calc(var(--spacing) * 20)}.min-h-\[40vh\]{min-height:40vh}.min-h-\[60vh\]{min-height:60vh}.min-h-dvh{min-height:100dvh}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-1\/3{width:33.3333%}.w-2{width:calc(var(--spacing) * 2)}.w-2\/3{width:66.6667%}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-6{width:calc(var(--spacing) * 6)}.w-10{width:calc(var(--spacing) * 10)}.w-32{width:calc(var(--spacing) * 32)}.w-40{width:calc(var(--spacing) * 40)}.w-44{width:calc(var(--spacing) * 44)}.w-48{width:calc(var(--spacing) * 48)}.w-72{width:calc(var(--spacing) * 72)}.w-80{width:calc(var(--spacing) * 80)}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.max-w-2xl{max-width:var(--container-2xl)}.max-w-3xl{max-width:var(--container-3xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-5xl{max-width:var(--container-5xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-\[--w-narrow\]{max-width:--w-narrow}.max-w-\[--w-page\]{max-width:--w-page}.max-w-\[12rem\]{max-width:12rem}.max-w-full{max-width:100%}.max-w-md{max-width:var(--container-md)}.max-w-none{max-width:none}.max-w-sm{max-width:var(--container-sm)}.max-w-xl{max-width:var(--container-xl)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-11{min-width:calc(var(--spacing) * 11)}.min-w-24{min-width:calc(var(--spacing) * 24)}.min-w-48{min-width:calc(var(--spacing) * 48)}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.basis-full{flex-basis:100%}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.animate-pulse{animation:var(--animate-pulse)}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-around{justify-content:space-around}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-10{gap:calc(var(--spacing) * 10)}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 8) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 8) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-3{column-gap:calc(var(--spacing) * 3)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-y-1{row-gap:calc(var(--spacing) * 1)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-border>:not(:last-child)){border-color:var(--color-border)}.self-start{align-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:var(--radius-full)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-t-md{border-top-left-radius:var(--radius-md);border-top-right-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.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-\[--color-danger-border\]{border-color:--color-danger-border}.border-accent{border-color:var(--color-accent)}.border-accent\/30{border-color:#4a7c594d}@supports (color:color-mix(in lab,red,red)){.border-accent\/30{border-color:color-mix(in oklab,var(--color-accent) 30%,transparent)}}.border-accent\/40{border-color:#4a7c5966}@supports (color:color-mix(in lab,red,red)){.border-accent\/40{border-color:color-mix(in oklab,var(--color-accent) 40%,transparent)}}.border-accent\/60{border-color:#4a7c5999}@supports (color:color-mix(in lab,red,red)){.border-accent\/60{border-color:color-mix(in oklab,var(--color-accent) 60%,transparent)}}.border-amber-400\/40{border-color:#fcbb0066}@supports (color:color-mix(in lab,red,red)){.border-amber-400\/40{border-color:color-mix(in oklab,var(--color-amber-400) 40%,transparent)}}.border-amber-500\/30{border-color:#f99c004d}@supports (color:color-mix(in lab,red,red)){.border-amber-500\/30{border-color:color-mix(in oklab,var(--color-amber-500) 30%,transparent)}}.border-amber-500\/40{border-color:#f99c0066}@supports (color:color-mix(in lab,red,red)){.border-amber-500\/40{border-color:color-mix(in oklab,var(--color-amber-500) 40%,transparent)}}.border-border{border-color:var(--color-border)}.border-red-400\/30{border-color:#ff65684d}@supports (color:color-mix(in lab,red,red)){.border-red-400\/30{border-color:color-mix(in oklab,var(--color-red-400) 30%,transparent)}}.border-red-500\/30{border-color:#fb2c364d}@supports (color:color-mix(in lab,red,red)){.border-red-500\/30{border-color:color-mix(in oklab,var(--color-red-500) 30%,transparent)}}.border-red-500\/40{border-color:#fb2c3666}@supports (color:color-mix(in lab,red,red)){.border-red-500\/40{border-color:color-mix(in oklab,var(--color-red-500) 40%,transparent)}}.border-sky-500\/30{border-color:#00a5ef4d}@supports (color:color-mix(in lab,red,red)){.border-sky-500\/30{border-color:color-mix(in oklab,var(--color-sky-500) 30%,transparent)}}.border-transparent{border-color:#0000}.bg-\[--color-danger-soft\]{background-color:--color-danger-soft}.bg-\[--color-positive-soft\]{background-color:--color-positive-soft}.bg-\[--color-positive\]{background-color:--color-positive}.bg-\[--color-warning-soft\]{background-color:--color-warning-soft}.bg-\[--color-warning\]{background-color:--color-warning}.bg-accent{background-color:var(--color-accent)}.bg-accent\/5{background-color:#4a7c590d}@supports (color:color-mix(in lab,red,red)){.bg-accent\/5{background-color:color-mix(in oklab,var(--color-accent) 5%,transparent)}}.bg-accent\/10{background-color:#4a7c591a}@supports (color:color-mix(in lab,red,red)){.bg-accent\/10{background-color:color-mix(in oklab,var(--color-accent) 10%,transparent)}}.bg-accent\/15{background-color:#4a7c5926}@supports (color:color-mix(in lab,red,red)){.bg-accent\/15{background-color:color-mix(in oklab,var(--color-accent) 15%,transparent)}}.bg-accent\/20{background-color:#4a7c5933}@supports (color:color-mix(in lab,red,red)){.bg-accent\/20{background-color:color-mix(in oklab,var(--color-accent) 20%,transparent)}}.bg-amber-400{background-color:var(--color-amber-400)}.bg-amber-400\/10{background-color:#fcbb001a}@supports (color:color-mix(in lab,red,red)){.bg-amber-400\/10{background-color:color-mix(in oklab,var(--color-amber-400) 10%,transparent)}}.bg-amber-500\/5{background-color:#f99c000d}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/5{background-color:color-mix(in oklab,var(--color-amber-500) 5%,transparent)}}.bg-amber-500\/10{background-color:#f99c001a}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/10{background-color:color-mix(in oklab,var(--color-amber-500) 10%,transparent)}}.bg-amber-500\/30{background-color:#f99c004d}@supports (color:color-mix(in lab,red,red)){.bg-amber-500\/30{background-color:color-mix(in oklab,var(--color-amber-500) 30%,transparent)}}.bg-bg{background-color:var(--color-bg)}.bg-bg\/40{background-color:#faf8f466}@supports (color:color-mix(in lab,red,red)){.bg-bg\/40{background-color:color-mix(in oklab,var(--color-bg) 40%,transparent)}}.bg-bg\/60{background-color:#faf8f499}@supports (color:color-mix(in lab,red,red)){.bg-bg\/60{background-color:color-mix(in oklab,var(--color-bg) 60%,transparent)}}.bg-bg\/80{background-color:#faf8f4cc}@supports (color:color-mix(in lab,red,red)){.bg-bg\/80{background-color:color-mix(in oklab,var(--color-bg) 80%,transparent)}}.bg-bg\/90{background-color:#faf8f4e6}@supports (color:color-mix(in lab,red,red)){.bg-bg\/90{background-color:color-mix(in oklab,var(--color-bg) 90%,transparent)}}.bg-bg\/95{background-color:#faf8f4f2}@supports (color:color-mix(in lab,red,red)){.bg-bg\/95{background-color:color-mix(in oklab,var(--color-bg) 95%,transparent)}}.bg-black\/60{background-color:#0009}@supports (color:color-mix(in lab,red,red)){.bg-black\/60{background-color:color-mix(in oklab,var(--color-black) 60%,transparent)}}.bg-border{background-color:var(--color-border)}.bg-border\/30{background-color:#e4e0d84d}@supports (color:color-mix(in lab,red,red)){.bg-border\/30{background-color:color-mix(in oklab,var(--color-border) 30%,transparent)}}.bg-border\/40{background-color:#e4e0d866}@supports (color:color-mix(in lab,red,red)){.bg-border\/40{background-color:color-mix(in oklab,var(--color-border) 40%,transparent)}}.bg-card{background-color:var(--color-card)}.bg-card\/30{background-color:#ffffff4d}@supports (color:color-mix(in lab,red,red)){.bg-card\/30{background-color:color-mix(in oklab,var(--color-card) 30%,transparent)}}.bg-card\/40{background-color:#fff6}@supports (color:color-mix(in lab,red,red)){.bg-card\/40{background-color:color-mix(in oklab,var(--color-card) 40%,transparent)}}.bg-card\/50{background-color:#ffffff80}@supports (color:color-mix(in lab,red,red)){.bg-card\/50{background-color:color-mix(in oklab,var(--color-card) 50%,transparent)}}.bg-card\/60{background-color:#fff9}@supports (color:color-mix(in lab,red,red)){.bg-card\/60{background-color:color-mix(in oklab,var(--color-card) 60%,transparent)}}.bg-card\/90{background-color:#ffffffe6}@supports (color:color-mix(in lab,red,red)){.bg-card\/90{background-color:color-mix(in oklab,var(--color-card) 90%,transparent)}}.bg-emerald-400{background-color:var(--color-emerald-400)}.bg-red-400{background-color:var(--color-red-400)}.bg-red-400\/5{background-color:#ff65680d}@supports (color:color-mix(in lab,red,red)){.bg-red-400\/5{background-color:color-mix(in oklab,var(--color-red-400) 5%,transparent)}}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\/5{background-color:#fb2c360d}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/5{background-color:color-mix(in oklab,var(--color-red-500) 5%,transparent)}}.bg-red-500\/10{background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/10{background-color:color-mix(in oklab,var(--color-red-500) 10%,transparent)}}.bg-red-500\/20{background-color:#fb2c3633}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/20{background-color:color-mix(in oklab,var(--color-red-500) 20%,transparent)}}.bg-red-500\/30{background-color:#fb2c364d}@supports (color:color-mix(in lab,red,red)){.bg-red-500\/30{background-color:color-mix(in oklab,var(--color-red-500) 30%,transparent)}}.bg-sky-400{background-color:var(--color-sky-400)}.bg-sky-500\/5{background-color:#00a5ef0d}@supports (color:color-mix(in lab,red,red)){.bg-sky-500\/5{background-color:color-mix(in oklab,var(--color-sky-500) 5%,transparent)}}.bg-transparent{background-color:#0000}.p-0\.5{padding:calc(var(--spacing) * .5)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-2{padding:calc(var(--spacing) * 2)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.p-10{padding:calc(var(--spacing) * 10)}.px-1{padding-inline:calc(var(--spacing) * 1)}.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-6{padding-inline:calc(var(--spacing) * 6)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-5{padding-block:calc(var(--spacing) * 5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-7{padding-block:calc(var(--spacing) * 7)}.py-10{padding-block:calc(var(--spacing) * 10)}.py-16{padding-block:calc(var(--spacing) * 16)}.py-20{padding-block:calc(var(--spacing) * 20)}.py-24{padding-block:calc(var(--spacing) * 24)}.pt-1{padding-top:calc(var(--spacing) * 1)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pt-3{padding-top:calc(var(--spacing) * 3)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-\[10vh\]{padding-top:10vh}.pr-1{padding-right:calc(var(--spacing) * 1)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.pb-16{padding-bottom:calc(var(--spacing) * 16)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-5{padding-left:calc(var(--spacing) * 5)}.text-center{text-align:center}.text-left{text-align:left}.font-mono{font-family:var(--font-mono)}.font-serif{font-family:var(--font-serif)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl{font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-2xs{font-size:var(--text-2xs)}.text-\[10px\]{font-size:10px}.leading-none{--tw-leading:1;line-height:1}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.text-\[--color-danger\]{color:--color-danger}.text-\[--color-on-accent\]{color:--color-on-accent}.text-\[--color-on-accent\]\/80{color:color-mix(in oklab,--color-on-accent 80%,transparent)}.text-\[--color-positive\]{color:--color-positive}.text-\[--color-warning\]{color:--color-warning}.text-accent{color:var(--color-accent)}.text-accent\/70{color:#4a7c59b3}@supports (color:color-mix(in lab,red,red)){.text-accent\/70{color:color-mix(in oklab,var(--color-accent) 70%,transparent)}}.text-amber-50{color:var(--color-amber-50)}.text-amber-100{color:var(--color-amber-100)}.text-amber-100\/70{color:#fef3c6b3}@supports (color:color-mix(in lab,red,red)){.text-amber-100\/70{color:color-mix(in oklab,var(--color-amber-100) 70%,transparent)}}.text-amber-100\/90{color:#fef3c6e6}@supports (color:color-mix(in lab,red,red)){.text-amber-100\/90{color:color-mix(in oklab,var(--color-amber-100) 90%,transparent)}}.text-amber-200{color:var(--color-amber-200)}.text-amber-200\/80{color:#fee685cc}@supports (color:color-mix(in lab,red,red)){.text-amber-200\/80{color:color-mix(in oklab,var(--color-amber-200) 80%,transparent)}}.text-amber-300{color:var(--color-amber-300)}.text-amber-500{color:var(--color-amber-500)}.text-fg{color:var(--color-fg)}.text-fg-dim{color:var(--color-fg-dim)}.text-fg-muted{color:var(--color-fg-muted)}.text-red-50{color:var(--color-red-50)}.text-red-100{color:var(--color-red-100)}.text-red-200{color:var(--color-red-200)}.text-red-200\/80{color:#ffcacacc}@supports (color:color-mix(in lab,red,red)){.text-red-200\/80{color:color-mix(in oklab,var(--color-red-200) 80%,transparent)}}.text-red-300{color:var(--color-red-300)}.text-red-400{color:var(--color-red-400)}.text-sky-300{color:var(--color-sky-300)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.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,)}.underline{text-decoration-line:underline}.decoration-dashed{text-decoration-style:dashed}.underline-offset-4{text-underline-offset:4px}.accent-accent{accent-color:var(--color-accent)}.opacity-40{opacity:.4}.opacity-60{opacity:.6}.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-\[--shadow-lg\]{--tw-shadow:--shadow-lg;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 8px 24px var(--tw-shadow-color,#2c2a261f), 0 2px var(--tw-shadow-color,6px) #2c2a260f;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px var(--tw-shadow-color,#2c2a260f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px 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)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.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-blur{--tw-backdrop-blur:blur(8px);-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-\[width\]{transition-property:width;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-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))}.group-open\:rotate-90:is(:where(.group):is([open],:popover-open,:open) *){rotate:90deg}.placeholder\:text-fg-dim::placeholder{color:var(--color-fg-dim)}.backdrop\:bg-black\/40::backdrop{background-color:#0006}@supports (color:color-mix(in lab,red,red)){.backdrop\:bg-black\/40::backdrop{background-color:color-mix(in oklab,var(--color-black) 40%,transparent)}}@media(hover:hover){.hover\:border-accent:hover{border-color:var(--color-accent)}.hover\:border-accent\/50:hover{border-color:#4a7c5980}@supports (color:color-mix(in lab,red,red)){.hover\:border-accent\/50:hover{border-color:color-mix(in oklab,var(--color-accent) 50%,transparent)}}.hover\:border-border:hover{border-color:var(--color-border)}.hover\:border-red-500\/40:hover{border-color:#fb2c3666}@supports (color:color-mix(in lab,red,red)){.hover\:border-red-500\/40:hover{border-color:color-mix(in oklab,var(--color-red-500) 40%,transparent)}}.hover\:bg-accent-hover:hover{background-color:var(--color-accent-hover)}.hover\:bg-accent\/5:hover{background-color:#4a7c590d}@supports (color:color-mix(in lab,red,red)){.hover\:bg-accent\/5:hover{background-color:color-mix(in oklab,var(--color-accent) 5%,transparent)}}.hover\:bg-accent\/10:hover{background-color:#4a7c591a}@supports (color:color-mix(in lab,red,red)){.hover\:bg-accent\/10:hover{background-color:color-mix(in oklab,var(--color-accent) 10%,transparent)}}.hover\:bg-accent\/15:hover{background-color:#4a7c5926}@supports (color:color-mix(in lab,red,red)){.hover\:bg-accent\/15:hover{background-color:color-mix(in oklab,var(--color-accent) 15%,transparent)}}.hover\:bg-accent\/20:hover{background-color:#4a7c5933}@supports (color:color-mix(in lab,red,red)){.hover\:bg-accent\/20:hover{background-color:color-mix(in oklab,var(--color-accent) 20%,transparent)}}.hover\:bg-amber-500\/20:hover{background-color:#f99c0033}@supports (color:color-mix(in lab,red,red)){.hover\:bg-amber-500\/20:hover{background-color:color-mix(in oklab,var(--color-amber-500) 20%,transparent)}}.hover\:bg-amber-500\/50:hover{background-color:#f99c0080}@supports (color:color-mix(in lab,red,red)){.hover\:bg-amber-500\/50:hover{background-color:color-mix(in oklab,var(--color-amber-500) 50%,transparent)}}.hover\:bg-bg:hover{background-color:var(--color-bg)}.hover\:bg-bg\/50:hover{background-color:#faf8f480}@supports (color:color-mix(in lab,red,red)){.hover\:bg-bg\/50:hover{background-color:color-mix(in oklab,var(--color-bg) 50%,transparent)}}.hover\:bg-bg\/60:hover{background-color:#faf8f499}@supports (color:color-mix(in lab,red,red)){.hover\:bg-bg\/60:hover{background-color:color-mix(in oklab,var(--color-bg) 60%,transparent)}}.hover\:bg-card:hover{background-color:var(--color-card)}.hover\:bg-red-500\/10:hover{background-color:#fb2c361a}@supports (color:color-mix(in lab,red,red)){.hover\:bg-red-500\/10:hover{background-color:color-mix(in oklab,var(--color-red-500) 10%,transparent)}}.hover\:bg-red-500\/40:hover{background-color:#fb2c3666}@supports (color:color-mix(in lab,red,red)){.hover\:bg-red-500\/40:hover{background-color:color-mix(in oklab,var(--color-red-500) 40%,transparent)}}.hover\:bg-red-500\/50:hover{background-color:#fb2c3680}@supports (color:color-mix(in lab,red,red)){.hover\:bg-red-500\/50:hover{background-color:color-mix(in oklab,var(--color-red-500) 50%,transparent)}}.hover\:text-accent:hover{color:var(--color-accent)}.hover\:text-accent-hover:hover{color:var(--color-accent-hover)}.hover\:text-amber-100:hover{color:var(--color-amber-100)}.hover\:text-fg:hover{color:var(--color-fg)}.hover\:text-red-100:hover{color:var(--color-red-100)}.hover\:text-red-300:hover{color:var(--color-red-300)}.hover\:text-red-400:hover{color:var(--color-red-400)}.hover\:underline:hover{text-decoration-line:underline}}.focus\:border-accent:focus{border-color:var(--color-accent)}.focus\:border-border:focus{border-color:var(--color-border)}.focus\:border-red-400:focus{border-color:var(--color-red-400)}.focus\:bg-bg\/60:focus{background-color:#faf8f499}@supports (color:color-mix(in lab,red,red)){.focus\:bg-bg\/60:focus{background-color:color-mix(in oklab,var(--color-bg) 60%,transparent)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\:outline-accent:focus-visible{outline-color:var(--color-accent)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-60:disabled{opacity:.6}@media(min-width:40rem){.sm\:inline{display:inline}}@media(min-width:48rem){.md\:sticky{position:sticky}.md\:top-6{top:calc(var(--spacing) * 6)}.md\:mb-6{margin-bottom:calc(var(--spacing) * 6)}.md\:block{display:block}.md\:hidden{display:none}.md\:min-h-0{min-height:calc(var(--spacing) * 0)}.md\:grid-cols-\[14rem_1fr\]{grid-template-columns:14rem 1fr}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}:where(.md\:space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.md\:self-auto{align-self:auto}.md\:self-start{align-self:flex-start}.md\:p-6{padding:calc(var(--spacing) * 6)}.md\:p-8{padding:calc(var(--spacing) * 8)}.md\:px-4{padding-inline:calc(var(--spacing) * 4)}.md\:px-6{padding-inline:calc(var(--spacing) * 6)}.md\:py-3{padding-block:calc(var(--spacing) * 3)}.md\:py-8{padding-block:calc(var(--spacing) * 8)}.md\:py-10{padding-block:calc(var(--spacing) * 10)}.md\:pb-0{padding-bottom:calc(var(--spacing) * 0)}.md\:text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}}@media(min-width:64rem){.lg\:sticky{position:sticky}.lg\:top-24{top:calc(var(--spacing) * 24)}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-\[minmax\(0\,1fr\)_18rem\]{grid-template-columns:minmax(0,1fr) 18rem}.lg\:self-start{align-self:flex-start}.lg\:px-6{padding-inline:calc(var(--spacing) * 6)}.lg\:py-5{padding-block:calc(var(--spacing) * 5)}.lg\:text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}}}pre code.hljs{padding:1em;display:block;overflow-x:auto}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}:root[data-text-size=larger]{--font-size-prose:22px;--font-size-editor:18px;font-size:18px}:root[data-text-size=largest]{--font-size-prose:26px;--font-size-editor:22px;font-size:22px}:root{--_d-bg:#1a1917;--_d-bg-soft:#23221f;--_d-fg:#e8e5de;--_d-fg-muted:#a8a49b;--_d-fg-dim:#706c64;--_d-accent:#7ab087;--_d-accent-hover:#8bc098;--_d-accent-light:#5b8c6a;--_d-sky:#7fb3cc;--_d-border:#33312d;--_d-border-light:#2a2926;--_d-card:#23221f;--_d-card-hover:#2a2926;--_d-on-accent:#15211a;--_d-danger:#e8836b;--_d-danger-hover:#ef9982;--_d-warning:#fcd34d;--_d-shadow-sm:0 1px 2px #0000004d;--_d-shadow-md:0 2px 8px #0006, 0 1px 2px #00000040;--_d-shadow-lg:0 8px 24px #00000080, 0 2px 6px #0000004d}@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--color-bg:var(--_d-bg);--color-bg-soft:var(--_d-bg-soft);--color-fg:var(--_d-fg);--color-fg-muted:var(--_d-fg-muted);--color-fg-dim:var(--_d-fg-dim);--color-accent:var(--_d-accent);--color-accent-hover:var(--_d-accent-hover);--color-accent-light:var(--_d-accent-light);--color-sky:var(--_d-sky);--color-border:var(--_d-border);--color-border-light:var(--_d-border-light);--color-card:var(--_d-card);--color-card-hover:var(--_d-card-hover);--color-on-accent:var(--_d-on-accent);--color-danger:var(--_d-danger);--color-danger-hover:var(--_d-danger-hover);--color-warning:var(--_d-warning);--shadow-sm:var(--_d-shadow-sm);--shadow-md:var(--_d-shadow-md);--shadow-lg:var(--_d-shadow-lg)}}:root[data-theme=dark]{--color-bg:var(--_d-bg);--color-bg-soft:var(--_d-bg-soft);--color-fg:var(--_d-fg);--color-fg-muted:var(--_d-fg-muted);--color-fg-dim:var(--_d-fg-dim);--color-accent:var(--_d-accent);--color-accent-hover:var(--_d-accent-hover);--color-accent-light:var(--_d-accent-light);--color-sky:var(--_d-sky);--color-border:var(--_d-border);--color-border-light:var(--_d-border-light);--color-card:var(--_d-card);--color-card-hover:var(--_d-card-hover);--color-on-accent:var(--_d-on-accent);--color-danger:var(--_d-danger);--color-danger-hover:var(--_d-danger-hover);--color-warning:var(--_d-warning);--shadow-sm:var(--_d-shadow-sm);--shadow-md:var(--_d-shadow-md);--shadow-lg:var(--_d-shadow-lg)}html,body{font-family:var(--font-sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.65}body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom)}.prose-note{color:var(--color-fg);font-size:var(--font-size-prose);line-height:1.7}.prose-note h1,.prose-note h2,.prose-note h3,.prose-note h4{font-family:var(--font-serif);color:var(--color-fg);letter-spacing:-.015em;margin-top:1.75em;margin-bottom:.5em;line-height:1.25}.prose-note h1{font-size:var(--text-3xl)}.prose-note h2{font-size:var(--text-2xl)}.prose-note h3{font-size:var(--text-xl)}.prose-note h4{font-size:var(--text-lg)}.prose-note p{margin:.75em 0}.prose-note ul,.prose-note ol{margin:.75em 0;padding-left:1.5rem}.prose-note ul{list-style:outside}.prose-note ol{list-style:decimal}.prose-note li,.prose-note li>p{margin:.25em 0}.prose-note blockquote{border-left:3px solid var(--color-border);color:var(--color-fg-muted);margin:1em 0;padding-left:1rem;font-style:italic}.prose-note code{font-family:var(--font-mono);background:var(--color-bg-soft);border-radius:var(--radius-xs);padding:.1em .35em;font-size:.875em}.prose-note pre{background:var(--color-bg-soft);border:1px solid var(--color-border);border-radius:var(--radius-md);margin:1em 0;padding:.9rem 1rem;font-size:.875em;line-height:1.5;overflow-x:auto}.prose-note pre code{font-size:inherit;background:0 0;border-radius:0;padding:0}.prose-note table{border-collapse:collapse;width:100%;margin:1em 0;font-size:.9em}.prose-note th,.prose-note td{border:1px solid var(--color-border);text-align:left;padding:.5rem .75rem}.prose-note th{background:var(--color-bg-soft);font-weight:500}.prose-note hr{border:0;border-top:1px solid var(--color-border);margin:1.5em 0}.prose-note img{border-radius:var(--radius-md);max-width:100%;height:auto}.prose-note input[type=checkbox]{margin-right:.4em}.csv-scroll{overflow-x:auto}.csv-warning{border:1px solid var(--color-warning);background:var(--color-warning-soft);border-radius:var(--radius-sm);font-size:var(--text-sm);color:var(--color-warning);margin-bottom:.5rem;padding:.5rem .75rem}.vault-media-error{font-size:var(--text-xs);color:var(--color-danger)}.vault-media-loading{border-radius:var(--radius-md);background:#e4e0d866;width:10rem;height:6rem;display:inline-block}@supports (color:color-mix(in lab,red,red)){.vault-media-loading{background:color-mix(in srgb,var(--color-border) 40%,transparent)}}.vault-media-loading{animation:2s cubic-bezier(.4,0,.6,1) infinite pulse}@keyframes pulse{50%{opacity:.5}}@media(prefers-reduced-motion:reduce){.vault-media-loading,.skeleton{animation:none}}@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .prose-note code,:root:not([data-theme=light]) .prose-note pre{border-color:var(--color-border);background:#1f1e1b}:root:not([data-theme=light]) .prose-note .hljs{color:var(--color-fg);background:#1f1e1b!important}}:root[data-theme=dark] .prose-note code,:root[data-theme=dark] .prose-note pre{border-color:var(--color-border);background:#1f1e1b}:root[data-theme=dark] .prose-note .hljs{color:var(--color-fg);background:#1f1e1b!important}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@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}