@tom2012/cc-web 2026.4.19-s → 2026.4.19-t
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.
- package/README.md +1 -1
- package/backend/dist/adapters/claude-adapter.d.ts +1 -1
- package/backend/dist/adapters/claude-adapter.d.ts.map +1 -1
- package/backend/dist/adapters/claude-adapter.js +62 -10
- package/backend/dist/adapters/claude-adapter.js.map +1 -1
- package/backend/dist/adapters/types.d.ts +1 -1
- package/backend/dist/adapters/types.d.ts.map +1 -1
- package/backend/dist/index.d.ts.map +1 -1
- package/backend/dist/index.js +4 -0
- package/backend/dist/index.js.map +1 -1
- package/backend/dist/routes/claude.d.ts.map +1 -1
- package/backend/dist/routes/claude.js +23 -1
- package/backend/dist/routes/claude.js.map +1 -1
- package/backend/dist/routes/projects.d.ts.map +1 -1
- package/backend/dist/routes/projects.js +26 -0
- package/backend/dist/routes/projects.js.map +1 -1
- package/backend/dist/routes/sync.d.ts +3 -0
- package/backend/dist/routes/sync.d.ts.map +1 -0
- package/backend/dist/routes/sync.js +183 -0
- package/backend/dist/routes/sync.js.map +1 -0
- package/backend/dist/sync-config.d.ts +62 -0
- package/backend/dist/sync-config.d.ts.map +1 -0
- package/backend/dist/sync-config.js +207 -0
- package/backend/dist/sync-config.js.map +1 -0
- package/backend/dist/sync-scheduler.d.ts +7 -0
- package/backend/dist/sync-scheduler.d.ts.map +1 -0
- package/backend/dist/sync-scheduler.js +157 -0
- package/backend/dist/sync-scheduler.js.map +1 -0
- package/backend/dist/sync-service.d.ts +51 -0
- package/backend/dist/sync-service.d.ts.map +1 -0
- package/backend/dist/sync-service.js +344 -0
- package/backend/dist/sync-service.js.map +1 -0
- package/backend/dist/user-prefs.d.ts +3 -0
- package/backend/dist/user-prefs.d.ts.map +1 -0
- package/backend/dist/user-prefs.js +87 -0
- package/backend/dist/user-prefs.js.map +1 -0
- package/frontend/dist/assets/AssistantMessageContent-D1-3VpWE.js +13 -0
- package/frontend/dist/assets/{GraphPreview-DqnUioLI.js → GraphPreview-CeI4sbtV.js} +1 -1
- package/frontend/dist/assets/MobilePage-BP7c3W3D.js +14 -0
- package/frontend/dist/assets/{OfficePreview-DsfkiPFS.js → OfficePreview-Dgs4aiYi.js} +2 -2
- package/frontend/dist/assets/{ProjectPage-eUYt7NVa.js → ProjectPage-DPv57nD9.js} +5 -6
- package/frontend/dist/assets/SettingsPage-CFSmKovg.js +13 -0
- package/frontend/dist/assets/{SkillHubPage-CRFSy-Cg.js → SkillHubPage-4g29B-Hr.js} +2 -2
- package/frontend/dist/assets/{chevron-down-9-G7S6iK.js → chevron-down-CyDTNuVw.js} +1 -1
- package/frontend/dist/assets/{chevron-up-BnktQ0Ve.js → chevron-up-BURz786o.js} +1 -1
- package/frontend/dist/assets/{index-Dn-YLcfD.js → index-BFWZX3Hz.js} +7 -7
- package/frontend/dist/assets/index-D0NB3R9q.css +1 -0
- package/frontend/dist/assets/index-Uy-V98k3.js +13 -0
- package/frontend/dist/assets/{index-B7AIJuGG.js → index-z4qRGojt.js} +1 -1
- package/frontend/dist/assets/{jszip.min-wfpG-66r.js → jszip.min-CPG_u-b-.js} +1 -1
- package/frontend/dist/assets/{search-Dq8YTmIg.js → search-CZ83atP-.js} +1 -1
- package/frontend/dist/index.html +2 -2
- package/package.json +1 -1
- package/frontend/dist/assets/AssistantMessageContent-DayURBLZ.js +0 -13
- package/frontend/dist/assets/MobilePage-CIA-DkuB.js +0 -14
- package/frontend/dist/assets/SettingsPage-CCk3EySa.js +0 -13
- package/frontend/dist/assets/index-CboghLS5.js +0 -7
- package/frontend/dist/assets/index-pG308FQn.css +0 -1
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/OfficePreview-DsfkiPFS.js","assets/index-Dn-YLcfD.js","assets/index-pG308FQn.css","assets/purify.es-CgRAQgUo.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as e,ag as t,aF as s,r as a,bd as n,j as r,be as l,n as o,d as c,bf as i,bg as d,ax as x,ay as u,Q as m,O as h,bh as p,ah as f,a as g,b as j,g as b,D as v,al as y,f as N,R as w,_ as k,m as C,X as S,v as I,bi as M,bj as z,C as P,A as U,x as T}from"./index-Dn-YLcfD.js";import{A as $,d as A,G as D,S as E,M as L,r as R,a as H,b as O,h as F,o as _,c as q,I as B,F as W}from"./AssistantMessageContent-DayURBLZ.js";import{C as V}from"./chevron-up-BnktQ0Ve.js";import{C as K}from"./chevron-down-9-G7S6iK.js";
|
|
3
|
-
/**
|
|
4
|
-
* @license lucide-react v0.309.0 - ISC
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the ISC license.
|
|
7
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/const G=e("Bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]),J=e("FileCode",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["path",{d:"m10 13-2 2 2 2",key:"17smn8"}],["path",{d:"m14 17 2-2-2-2",key:"14mezr"}]]),Q=e("FileJson",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]),X=e("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),Y=window.matchMedia("(pointer: coarse)").matches&&window.innerWidth<768;
|
|
9
|
-
/**
|
|
10
|
-
* @license lucide-react v0.309.0 - ISC
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the ISC license.
|
|
13
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/function Z({onSelectProject:e}){const d=t(),{projects:x,fetchProjects:u,hasFetched:m,loading:h}=s(),[p,f]=a.useState(new Map),[g,j]=a.useState(new Set),[b,v]=a.useState(!1);a.useEffect(()=>{u()},[u]);const y=a.useCallback(e=>{e.status&&f(t=>{const s=new Map(t);return s.set(e.projectId,e.status),s}),void 0!==e.active&&j(t=>{const s=new Set(t);return e.active?s.add(e.projectId):s.delete(e.projectId),s})},[]);n({onActivityUpdate:y});const N=x.filter(e=>!e.archived);return r.jsxs("div",{className:"flex flex-col h-full",children:[r.jsxs("div",{className:"flex items-center gap-3 px-4 h-12 border-b border-border shrink-0",children:[r.jsx("span",{className:"font-semibold text-base flex-1",children:"CC Web"}),r.jsx(l,{}),r.jsx("button",{onClick:()=>{(async()=>{v(!0);try{await u()}finally{v(!1)}})()},className:"text-muted-foreground active:text-foreground",disabled:b,children:r.jsx(o,{className:c("h-4 w-4",b&&"animate-spin")})}),!Y&&r.jsx("button",{onClick:()=>d("/"),className:"text-muted-foreground active:text-foreground",title:"桌面模式",children:r.jsx(i,{className:"h-4 w-4"})})]}),r.jsxs("div",{className:"flex-1 overflow-y-auto px-3 py-3",children:[h&&!m&&r.jsx("div",{className:"text-center text-muted-foreground text-sm py-12",children:"加载中..."}),m&&0===N.length&&r.jsx("div",{className:"text-center text-muted-foreground text-sm py-12",children:"暂无项目"}),r.jsx("div",{className:"grid grid-cols-2 gap-2",children:N.map(t=>{var s;const a="running"===(s=t,p.get(s.id)??s.status??"stopped"),n=g.has(t.id),l=r.jsxs("button",{onClick:()=>e(t.id),className:c("w-full text-left rounded-lg border bg-card p-2.5 active:bg-accent transition-colors",n?"border-transparent":"border-border"),children:[r.jsxs("div",{className:"flex items-center gap-1.5 mb-1",children:[r.jsx("span",{className:c("w-2 h-2 rounded-full shrink-0",a?"bg-green-500":"bg-zinc-400")}),r.jsx("span",{className:"font-medium text-sm truncate flex-1",children:t.name})]}),r.jsx("div",{className:"text-[10px] text-muted-foreground font-mono truncate",children:t.cliTool??"claude"})]});return r.jsx("div",{className:n?"card-active-glow rounded-lg":void 0,children:l},t.id)})})]})]})}function ee({project:e,onBack:t,onOpenPanel:s,onContextUpdate:n}){const[l,o]=a.useState(""),i=a.useRef(null),g=a.useRef(null),[j,b]=a.useState([]),v=a.useCallback(e=>{b(t=>{const s=[...t,e];return s.length>200?s.slice(-200):s})},[]),y=a.useRef(null),N=a.useCallback(e=>{var t;"stopped"===e&&(null==(t=y.current)||t.call(y,"stopped"))},[]),[w,k]=a.useState([]),C=a.useRef(new Set),S=a.useCallback(e=>{C.current.has(e.toolUseId)||k(t=>t.some(t=>t.toolUseId===e.toolUseId)?t:[...t,{projectId:e.projectId,toolUseId:e.toolUseId,toolName:e.toolName,toolInput:e.toolInput,sessionId:e.sessionId,createdAt:e.createdAt}])},[]),I=a.useCallback(e=>{C.current.add(e.toolUseId),k(t=>t.filter(t=>t.toolUseId!==e.toolUseId))},[]),M=a.useCallback(e=>{C.current.add(e),k(t=>t.filter(t=>t.toolUseId!==e))},[]),{sendInput:z,connected:P}=d({projectId:e.id,enabled:!0,onChatMessage:v,onStatusChange:N,onContextUpdate:n,onApprovalRequest:S,onApprovalResolved:I});a.useEffect(()=>{if(!P)return;if("claude"!==e.cliTool)return;let t=!1;return x(e.id).then(e=>{if(t)return;const s=e.pending.filter(e=>!C.current.has(e.toolUseId));k(e=>{const t=new Map;for(const a of s)t.set(a.toolUseId,a);for(const s of e)t.has(s.toolUseId)||C.current.has(s.toolUseId)||t.set(s.toolUseId,s);return[...t.values()]})}).catch(()=>{}),()=>{t=!0}},[e.id,e.cliTool,P]);const{state:U,setState:T,messages:L,hasMoreHistory:R,loadMoreHistory:H,sendMessage:O,isWaking:F}=u({project:e,liveMessages:j,ws:{send:z,connected:P},historyLimit:20});y.current=T;const _=a.useRef(P);a.useEffect(()=>{!_.current&&P&&b([]),_.current=P},[P]);const q=(()=>{for(let e=L.length-1;e>=0;e--)if("assistant"===L[e].role)return e;return-1})(),[B,W]=a.useState([]),[J,Q]=a.useState([]),[Y,Z]=a.useState(null);a.useEffect(()=>{m().then(W).catch(()=>{}),h(e.id).then(Q).catch(()=>{})},[e.id]);const ee=a.useCallback(async()=>{const e=i.current,t=(null==e?void 0:e.scrollHeight)??0;await H(),requestAnimationFrame(()=>{e&&(e.scrollTop+=e.scrollHeight-t)})},[H]),te=a.useRef(0);a.useEffect(()=>{const e=i.current;if(!e)return;const t=L.length>te.current,s=0===te.current&&L.length>0;te.current=L.length,s?e.scrollTo({top:e.scrollHeight}):t&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})},[L,w.length]);const se=a.useCallback(()=>{const e=l.trim();e&&(o(""),g.current&&(g.current.style.height="auto"),O(e))},[l,O]),ae=p(se,"shift"),ne=a.useCallback(e=>{Z(null),O(e)},[O]),re="live"===U;return r.jsxs("div",{className:"flex flex-col h-full bg-background",children:[r.jsxs("div",{className:"flex items-center gap-2 px-3 h-12 border-b border-border shrink-0",children:[r.jsx("button",{onClick:t,className:"text-muted-foreground active:text-foreground p-1",children:r.jsx(f,{className:"h-5 w-5"})}),r.jsxs("div",{className:"flex items-center gap-1.5 flex-1 min-w-0",children:[r.jsx("span",{className:"font-medium text-sm truncate",children:e.name}),r.jsx("span",{className:c("w-2 h-2 rounded-full shrink-0",re?"bg-green-500":F?"bg-yellow-400 animate-pulse":"bg-zinc-400")})]}),r.jsx("button",{onClick:s,className:"text-muted-foreground active:text-foreground p-1",children:r.jsx(X,{className:"h-5 w-5"})})]}),r.jsxs("div",{ref:i,className:"flex-1 overflow-y-auto px-3 py-3 space-y-3 min-h-0",children:[R&&r.jsx("div",{className:"flex justify-center pb-1",children:r.jsxs("button",{onClick:()=>{ee()},className:"flex items-center gap-1 px-3 py-1.5 rounded-full text-xs text-muted-foreground border border-border active:bg-accent transition-colors",children:[r.jsx(V,{className:"h-3 w-3"}),"加载更早消息"]})}),L.map((e,t)=>{const s="user"===e.role;return r.jsx("div",{className:c("flex",s?"justify-end":"justify-start"),children:r.jsx("div",{className:c("max-w-[85%] rounded-xl px-3 py-2 break-words text-sm leading-relaxed",s?"bg-blue-500/15 text-foreground border border-blue-500/20 rounded-br-sm whitespace-pre-wrap":"bg-secondary text-secondary-foreground border border-border rounded-bl-sm"),children:s?e.content:r.jsx($,{content:e.content,isLatest:t===q})})},e.id)}),w.map(e=>r.jsx(A,{approval:e,onResolved:M},e.toolUseId)),0===L.length&&0===w.length&&"stopped"===U&&r.jsx("div",{className:"flex items-center justify-center h-full text-muted-foreground/40 text-sm",children:"暂无对话记录"}),F&&r.jsx("div",{className:"flex items-center justify-center py-4 text-yellow-400 text-sm animate-pulse",children:"启动中..."})]}),Y&&r.jsx("div",{className:"border-t border-border max-h-48 overflow-y-auto shrink-0",children:r.jsxs("div",{className:"px-3 py-2 space-y-1",children:[("global"===Y?B:J).map(e=>r.jsxs("button",{onClick:()=>ne(e.command),disabled:F,className:c("w-full text-left rounded-md px-2.5 py-2 text-sm active:bg-accent transition-colors border border-border/50",F&&"opacity-50 cursor-not-allowed"),children:[r.jsx("div",{className:"font-medium text-xs",children:e.label}),r.jsx("div",{className:"text-[11px] text-muted-foreground font-mono truncate",children:e.command})]},e.id)),0===("global"===Y?B:J).length&&r.jsx("div",{className:"text-center text-muted-foreground text-xs py-3",children:"暂无快捷命令"})]})}),(B.length>0||J.length>0)&&r.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1.5 border-t border-border shrink-0",children:[r.jsxs("button",{onClick:()=>Z(e=>"global"===e?null:"global"),className:c("flex items-center gap-1 px-2 py-1 rounded-md text-xs transition-colors","global"===Y?"bg-blue-500/15 text-blue-500":"text-muted-foreground active:bg-accent"),children:[r.jsx(D,{className:"h-3 w-3"}),"全局","global"===Y&&r.jsx(K,{className:"h-3 w-3"})]}),r.jsxs("button",{onClick:()=>Z(e=>"project"===e?null:"project"),className:c("flex items-center gap-1 px-2 py-1 rounded-md text-xs transition-colors","project"===Y?"bg-blue-500/15 text-blue-500":"text-muted-foreground active:bg-accent"),children:[r.jsx(G,{className:"h-3 w-3"}),"项目","project"===Y&&r.jsx(K,{className:"h-3 w-3"})]})]}),r.jsx("div",{className:"border-t border-border px-3 py-2 shrink-0",style:{paddingBottom:"max(0.5rem, env(safe-area-inset-bottom))"},children:r.jsxs("div",{className:"flex items-end gap-2",children:[r.jsx("textarea",{ref:g,value:l,onChange:e=>o(e.target.value),onKeyDown:ae,disabled:F,placeholder:F?"启动中...":"stopped"===U?"输入消息(自动启动)...":"输入消息...",rows:1,className:c("flex-1 resize-none rounded-lg border border-input bg-transparent px-3 py-2 text-sm outline-none","focus:ring-1 focus:ring-ring placeholder:text-muted-foreground/50","max-h-32 overflow-y-auto",F&&"opacity-50 cursor-not-allowed"),style:{minHeight:"2.5rem"},onInput:e=>{const t=e.currentTarget;t.style.height="auto",t.style.height=Math.min(t.scrollHeight,128)+"px"}}),r.jsx("button",{onClick:se,disabled:F||!l.trim(),className:c("shrink-0 p-2 rounded-lg transition-colors",l.trim()?"text-blue-500 active:bg-blue-500/10":"text-muted-foreground/30"),children:r.jsx(E,{className:"h-5 w-5"})})]})})]})}const te=w.lazy(()=>k(()=>import("./OfficePreview-DsfkiPFS.js"),__vite__mapDeps([0,1,2,3])).then(e=>({default:e.OfficePreview}))),se=new Set(["png","jpg","jpeg","gif","webp","svg","bmp","ico","avif"]),ae=new Set(["docx","xlsx","xls","pptx"]),ne={js:"javascript",jsx:"jsx",ts:"typescript",tsx:"tsx",py:"python",rb:"ruby",go:"go",rs:"rust",java:"java",kt:"kotlin",swift:"swift",c:"c",cpp:"cpp",h:"c",cs:"csharp",php:"php",sh:"bash",bash:"bash",zsh:"bash",yaml:"yaml",yml:"yaml",json:"json",toml:"toml",html:"html",htm:"html",xml:"xml",svg:"xml",css:"css",scss:"scss",less:"less",sql:"sql",graphql:"graphql",gql:"graphql",dockerfile:"docker",makefile:"makefile",r:"r",lua:"lua",dart:"dart",zig:"zig"};function re(e){return e.split("/").pop()??e}function le({filePath:e,onBack:t}){const[s,n]=a.useState(null),[l,o]=a.useState(!0),[c,i]=a.useState(null),{resolved:d}=g(),x=function(e){const t=e.split("/").pop()??"",s=t.toLowerCase();if("dockerfile"===s)return"dockerfile";if("makefile"===s)return"makefile";const a=t.lastIndexOf(".");return a>=0?t.slice(a+1).toLowerCase():""}(e),u=se.has(x),m=ae.has(x),h=ne[x],p="dark"===d;a.useEffect(()=>{u||m?o(!1):(o(!0),i(null),j(e).then(n).catch(e=>i(e instanceof Error?e.message:"Failed to load")).finally(()=>o(!1)))},[e,u,m]);const w=N(e),k=a.useMemo(()=>{const e=b();return e?`${w}&token=${encodeURIComponent(e)}`:w},[w]),C=a.useMemo(()=>u?`${k}&t=${Date.now()}`:"",[k,u]);return r.jsxs("div",{className:"flex flex-col h-full",children:[r.jsxs("div",{className:"flex items-center gap-2 px-3 h-12 border-b border-border shrink-0",children:[r.jsx("button",{onClick:t,className:"text-muted-foreground active:text-foreground p-1",children:r.jsx(f,{className:"h-5 w-5"})}),r.jsx("span",{className:"flex-1 text-sm font-medium truncate",children:re(e)}),r.jsx("a",{href:k,download:!0,className:"text-muted-foreground active:text-foreground p-1",onClick:e=>e.stopPropagation(),children:r.jsx(v,{className:"h-4 w-4"})})]}),r.jsxs("div",{className:"flex-1 overflow-auto min-h-0",children:[l&&r.jsx("div",{className:"flex items-center justify-center py-12",children:r.jsx(y,{className:"h-5 w-5 animate-spin text-muted-foreground"})}),c&&r.jsx("div",{className:"text-center text-destructive text-sm py-12 px-4",children:c}),u&&r.jsx("div",{className:"flex items-center justify-center p-4 h-full",children:r.jsx("img",{src:C,alt:re(e),className:"max-w-full max-h-full object-contain rounded",style:{touchAction:"pinch-zoom"}})}),m&&r.jsx(a.Suspense,{fallback:r.jsx("div",{className:"flex items-center justify-center py-12",children:r.jsx(y,{className:"h-5 w-5 animate-spin text-muted-foreground"})}),children:r.jsx(te,{filePath:e,ext:x,zoom:100})}),s&&(s.binary||s.tooLarge)&&r.jsxs("div",{className:"text-center py-12 px-4 space-y-3",children:[r.jsxs("p",{className:"text-muted-foreground text-sm",children:[s.binary?"二进制文件":"文件过大",s.size>0&&` (${S=s.size,S<1024?`${S} B`:S<1048576?`${(S/1024).toFixed(1)} KB`:`${(S/1048576).toFixed(1)} MB`})`]}),r.jsxs("a",{href:k,download:!0,className:"inline-flex items-center gap-1.5 text-sm text-blue-500 active:text-blue-400",children:[r.jsx(v,{className:"h-4 w-4"}),"下载文件"]})]}),s&&!s.binary&&!s.tooLarge&&null!=s.content&&r.jsxs(r.Fragment,{children:["md"===x&&r.jsx("div",{className:"prose prose-sm dark:prose-invert max-w-none px-4 py-3",children:r.jsx(L,{remarkPlugins:[H,O],rehypePlugins:[R],children:s.content})}),"md"!==x&&h&&r.jsx(F,{language:h,style:p?_:q,customStyle:{margin:0,fontSize:"12px",borderRadius:0},showLineNumbers:!0,children:s.content}),"md"!==x&&!h&&r.jsx("pre",{className:"p-4 text-xs font-mono whitespace-pre-wrap break-words",children:s.content})]})]})]});var S}const oe=new Set(["png","jpg","jpeg","gif","webp","svg","bmp","ico","avif"]),ce=new Set(["js","jsx","ts","tsx","py","rb","go","rs","java","c","cpp","h","swift","kt","cs","php","sh","bash","zsh","r","lua","dart","zig","css","scss","less","html","htm","xml","sql"]),ie=new Set(["json","yaml","yml","toml","csv","tsv"]);function de({entry:e}){if("dir"===e.type)return r.jsx(I,{className:"h-8 w-8 text-blue-400"});const t=function(e){const t=e.lastIndexOf(".");return t>=0?e.slice(t+1).toLowerCase():""}(e.name);return oe.has(t)?r.jsx(B,{className:"h-8 w-8 text-emerald-400"}):ce.has(t)?r.jsx(J,{className:"h-8 w-8 text-orange-400"}):ie.has(t)?r.jsx(Q,{className:"h-8 w-8 text-yellow-400"}):"md"===t?r.jsx(W,{className:"h-8 w-8 text-sky-400"}):r.jsx(M,{className:"h-8 w-8 text-muted-foreground"})}function xe({rootPath:e,onClose:t}){const[s,n]=a.useState(e),[l,o]=a.useState([]),[c,i]=a.useState(!0),[d,x]=a.useState(null),u=a.useCallback(async e=>{i(!0);try{const t=[...(await C(e)).entries].sort((e,t)=>e.type!==t.type?"dir"===e.type?-1:1:e.name.localeCompare(t.name));o(t),n(e)}catch{o([])}finally{i(!1)}},[]);a.useEffect(()=>{u(e)},[e,u]);const m=s!==e,h=s.startsWith(e)?s.slice(e.length)||"/":s;return d?r.jsx(le,{filePath:d,onBack:()=>x(null)}):r.jsxs("div",{className:"flex flex-col h-full",children:[r.jsxs("div",{className:"flex items-center gap-2 px-3 h-12 border-b border-border shrink-0",children:[r.jsx("button",{onClick:t,className:"text-muted-foreground active:text-foreground p-1",children:r.jsx(S,{className:"h-5 w-5"})}),r.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0 text-sm",children:[m&&r.jsx("button",{onClick:()=>{if(s===e)return;const t=s.replace(/\/[^/]+$/,"")||"/";t.startsWith(e)&&u(t)},className:"text-muted-foreground active:text-foreground p-0.5 shrink-0",children:r.jsx(f,{className:"h-4 w-4"})}),r.jsx("span",{className:"truncate text-muted-foreground font-mono text-xs",children:h})]})]}),r.jsxs("div",{className:"flex-1 overflow-y-auto px-3 py-3",children:[c&&r.jsx("div",{className:"flex items-center justify-center py-12",children:r.jsx(y,{className:"h-5 w-5 animate-spin text-muted-foreground"})}),!c&&0===l.length&&r.jsx("div",{className:"text-center text-muted-foreground text-sm py-12",children:"空目录"}),!c&&r.jsx("div",{className:"grid grid-cols-3 gap-1",children:l.map(e=>r.jsxs("button",{onClick:()=>(e=>{"dir"===e.type?u(e.path):x(e.path)})(e),className:"flex flex-col items-center gap-1 p-2 rounded-lg active:bg-accent transition-colors",children:[r.jsx(de,{entry:e}),r.jsx("span",{className:"text-[11px] text-center leading-tight w-full line-clamp-2 break-all",children:e.name})]},e.path))})]})]})}function ue(e){return e<50?"text-green-400":e<80?"text-yellow-400":"text-red-400"}function me(e){return e<50?"bg-green-500":e<80?"bg-yellow-500":"bg-red-500"}function he({projectName:e,cliTool:t,folderPath:s,contextData:n,onClose:l}){const[i,d]=a.useState(new Set(["context","usage","files"])),[x,u]=a.useState(null),[m,h]=a.useState(!1),p=e=>{d(t=>{const s=new Set(t);return s.has(e)?s.delete(e):s.add(e),s})};a.useEffect(()=>{h(!0),z(t).then(u).catch(()=>u(null)).finally(()=>h(!1))},[t]);const f=n?Math.round(n.usedPercentage):null;return r.jsxs("div",{className:"flex flex-col h-full",children:[r.jsxs("div",{className:"flex items-center gap-2 px-3 h-12 border-b border-border shrink-0",children:[r.jsx("button",{onClick:l,className:"text-muted-foreground active:text-foreground p-1",children:r.jsx(S,{className:"h-5 w-5"})}),r.jsx("span",{className:"flex-1 font-medium text-sm truncate",children:e})]}),r.jsxs("div",{className:"flex-1 overflow-y-auto",children:[r.jsxs("button",{onClick:()=>p("context"),className:"w-full flex items-center gap-2 px-4 py-2.5 border-b border-border/50 active:bg-accent",children:[i.has("context")?r.jsx(K,{className:"h-3.5 w-3.5 text-muted-foreground"}):r.jsx(P,{className:"h-3.5 w-3.5 text-muted-foreground"}),r.jsx("span",{className:"text-sm font-medium",children:"上下文"}),null!==f&&r.jsxs("span",{className:c("text-xs font-mono ml-auto",ue(f)),children:[f,"%"]})]}),i.has("context")&&r.jsx("div",{className:"px-4 py-3 border-b border-border/50",children:null!==f&&n?r.jsxs("div",{className:"space-y-2",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"flex-1 h-2 bg-secondary rounded-full overflow-hidden",children:r.jsx("div",{className:c("h-full rounded-full transition-all",me(f)),style:{width:`${Math.min(f,100)}%`}})}),r.jsxs("span",{className:c("text-xs font-mono w-10 text-right",ue(f)),children:[f,"%"]})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1 text-[11px] text-muted-foreground",children:[r.jsx("span",{children:"窗口大小"}),r.jsx("span",{className:"text-right font-mono",children:n.contextWindowSize>=1e6?`${(n.contextWindowSize/1e6).toFixed(1)}M`:`${Math.round(n.contextWindowSize/1e3)}K`}),r.jsx("span",{children:"输入 tokens"}),r.jsx("span",{className:"text-right font-mono",children:n.inputTokens.toLocaleString()}),r.jsx("span",{children:"输出 tokens"}),r.jsx("span",{className:"text-right font-mono",children:n.outputTokens.toLocaleString()})]})]}):r.jsx("div",{className:"text-xs text-muted-foreground/50 text-center py-2",children:"暂无数据"})}),r.jsxs("div",{className:"w-full flex items-center gap-2 px-4 py-2.5 border-b border-border/50 cursor-pointer",role:"button",tabIndex:0,onClick:()=>p("usage"),onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||p("usage")},children:[i.has("usage")?r.jsx(K,{className:"h-3.5 w-3.5 text-muted-foreground"}):r.jsx(P,{className:"h-3.5 w-3.5 text-muted-foreground"}),r.jsx("span",{className:"text-sm font-medium",children:"用量"}),r.jsx("button",{onClick:e=>{e.stopPropagation(),(async()=>{h(!0);try{const{refreshUsage:e}=await k(async()=>{const{refreshUsage:e}=await import("./index-Dn-YLcfD.js").then(e=>e.bo);return{refreshUsage:e}},__vite__mapDeps([1,2]));u(await e(t))}catch{}finally{h(!1)}})()},className:"ml-auto text-muted-foreground active:text-foreground",children:r.jsx(o,{className:c("h-3 w-3",m&&"animate-spin")})})]}),i.has("usage")&&r.jsx("div",{className:"px-4 py-3 border-b border-border/50",children:x?r.jsxs("div",{className:"space-y-2",children:[x.planName&&r.jsxs("div",{className:"text-[11px] text-muted-foreground",children:["Plan: ",r.jsx("span",{className:"font-medium text-foreground",children:x.planName})]}),r.jsx(pe,{label:"5h",bucket:x.fiveHour}),r.jsx(pe,{label:"7d",bucket:x.sevenDay}),x.sevenDaySonnet&&r.jsx(pe,{label:"7d Sonnet",bucket:x.sevenDaySonnet}),x.sevenDayOpus&&r.jsx(pe,{label:"7d Opus",bucket:x.sevenDayOpus}),!x.fiveHour&&!x.sevenDay&&r.jsx("div",{className:"text-xs text-muted-foreground/50 text-center",children:"暂无数据"})]}):r.jsx("div",{className:"text-xs text-muted-foreground/50 text-center py-2",children:m?"加载中...":"暂无数据"})}),r.jsxs("button",{onClick:()=>p("files"),className:"w-full flex items-center gap-2 px-4 py-2.5 border-b border-border/50 active:bg-accent",children:[i.has("files")?r.jsx(K,{className:"h-3.5 w-3.5 text-muted-foreground"}):r.jsx(P,{className:"h-3.5 w-3.5 text-muted-foreground"}),r.jsx("span",{className:"text-sm font-medium",children:"文件"})]}),i.has("files")&&r.jsx("div",{className:"h-[60vh]",children:r.jsx(xe,{rootPath:s,onClose:()=>p("files")})})]})]})}function pe({label:e,bucket:t}){if(!t||void 0===t.utilization)return null;const s=t.utilization,a=function(e){if(!e)return"";const t=new Date(e).getTime()-Date.now();if(t<=0)return"即将重置";const s=Math.floor(t/36e5),a=Math.floor(t%36e5/6e4);return s>0?`${s}h${a}m`:`${a}m`}(t.resetAt);return r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("span",{className:"text-xs text-muted-foreground w-16",children:e}),r.jsx("div",{className:"flex-1 h-1.5 bg-secondary rounded-full overflow-hidden",children:r.jsx("div",{className:c("h-full rounded-full",me(s)),style:{width:`${Math.min(s,100)}%`}})}),r.jsxs("span",{className:c("text-xs font-mono w-8 text-right",ue(s)),children:[s,"%"]}),a&&r.jsx("span",{className:"text-[10px] text-muted-foreground/60",children:a})]})}function fe(){a.useEffect(()=>{const e=document.querySelector('meta[name="viewport"]');if(!e)return;const t=e.getAttribute("content")??"";return e.setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"),()=>{e.setAttribute("content",t)}},[]);const[e,t]=a.useState({screen:"list"}),[n,l]=a.useState(null),o=s(e=>e.projects),c=a.useCallback(e=>{t({screen:"chat",projectId:e}),l(null)},[]),i=a.useCallback(e=>{t({screen:"panel",projectId:e})},[]),d=a.useCallback(()=>{t(e=>"panel"===e.screen?{screen:"chat",projectId:e.projectId}:{screen:"list"})},[]),x="list"!==e.screen?o.find(t=>t.id===e.projectId):void 0;return r.jsxs("div",{className:"fixed inset-0 bg-background overflow-hidden",children:[r.jsxs(U,{mode:"wait",children:["list"===e.screen&&r.jsx(T.div,{className:"absolute inset-0",initial:{opacity:0},animate:{opacity:1},exit:{x:"-30%",opacity:0},transition:{duration:.2},style:{paddingTop:"env(safe-area-inset-top)"},children:r.jsx(Z,{onSelectProject:c})},"list"),"chat"===e.screen&&x&&r.jsx(T.div,{className:"absolute inset-0",initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"tween",duration:.25},style:{paddingTop:"env(safe-area-inset-top)"},children:r.jsx(ee,{project:x,onBack:d,onOpenPanel:()=>i(e.projectId),onContextUpdate:l})},`chat-${e.projectId}`)]}),r.jsx(U,{children:"panel"===e.screen&&x&&r.jsx(T.div,{className:"absolute inset-0 z-50 bg-background",initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"tween",duration:.25},style:{paddingTop:"env(safe-area-inset-top)"},children:r.jsx(he,{projectName:x.name,cliTool:x.cliTool??"claude",folderPath:x.folderPath,contextData:n,onClose:d})},"panel")})]})}export{fe as MobilePage};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import{c as e,r as t,aw as n,aq as r,aH as o,j as s,ar as a,au as i,at as l,d as c,aI as d,av as u,aJ as f,aK as p,aL as h,aM as m,aN as x,aO as g,aP as y,aQ as v,G as w,aR as b,W as j,Y as N,$ as S,a0 as C,a1 as k,B as R,a2 as P,I as A,a3 as D,aS as T,aT as E,aU as O,aV as _,aW as L,ai as I,aX as M,n as H,T as W,ag as z,aY as B,k as V,S as F,aZ as $,ah as K,a_ as q,H as U,A as X,x as Y,X as G,s as Z,t as Q,a$ as J,b0 as ee,b1 as te,b2 as ne,b3 as re,b4 as oe,b5 as se,b6 as ae}from"./index-Dn-YLcfD.js";import{u as ie,e as le,d as ce,T as de,a as ue,b as fe,c as pe,S as he}from"./index-CboghLS5.js";import{C as me}from"./chevron-down-9-G7S6iK.js";import{C as xe}from"./chevron-up-BnktQ0Ve.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v0.309.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/const ge=e("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]),ye=e("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),ve=e("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]),we=e("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),be=e("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]),je=e("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]),Ne=e("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]),Se=e("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]),Ce=e("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);
|
|
8
|
-
/**
|
|
9
|
-
* @license lucide-react v0.309.0 - ISC
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the ISC license.
|
|
12
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/function ke(e){const n=t.useRef({value:e,previous:e});return t.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}function Re(e){const[r,o]=t.useState(void 0);return n(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let r,s;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,s=t.blockSize}else r=e.offsetWidth,s=e.offsetHeight;o({width:r,height:s})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}o(void 0)},[e]),r}var Pe="Switch",[Ae]=l(Pe),[De,Te]=Ae(Pe),Ee=t.forwardRef((e,n)=>{const{__scopeSwitch:l,name:c,checked:d,defaultChecked:u,required:f,disabled:p,value:h="on",onCheckedChange:m,form:x,...g}=e,[y,v]=t.useState(null),w=r(n,e=>v(e)),b=t.useRef(!1),j=!y||(x||!!y.closest("form")),[N,S]=o({prop:d,defaultProp:u??!1,onChange:m,caller:Pe});return s.jsxs(De,{scope:l,checked:N,disabled:p,children:[s.jsx(a.button,{type:"button",role:"switch","aria-checked":N,"aria-required":f,"data-state":Ie(N),"data-disabled":p?"":void 0,disabled:p,value:h,...g,ref:w,onClick:i(e.onClick,e=>{S(e=>!e),j&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})}),j&&s.jsx(Le,{control:y,bubbles:!b.current,name:c,value:h,checked:N,required:f,disabled:p,form:x,style:{transform:"translateX(-100%)"}})]})});Ee.displayName=Pe;var Oe="SwitchThumb",_e=t.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=Te(Oe,n);return s.jsx(a.span,{"data-state":Ie(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});_e.displayName=Oe;var Le=t.forwardRef(({__scopeSwitch:e,control:n,checked:o,bubbles:a=!0,...i},l)=>{const c=t.useRef(null),d=r(c,l),u=ke(o),f=Re(n);return t.useEffect(()=>{const e=c.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(u!==o&&n){const t=new Event("click",{bubbles:a});n.call(e,o),e.dispatchEvent(t)}},[u,o,a]),s.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...i,tabIndex:-1,ref:d,style:{...i.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function Ie(e){return e?"checked":"unchecked"}Le.displayName="SwitchBubbleInput";var Me=Ee,He=_e;const We=t.forwardRef(({className:e,...t},n)=>s.jsx(Me,{className:c("peer inline-flex h-[24px] w-[44px] shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:n,children:s.jsx(He,{className:c("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));We.displayName=Me.displayName;const ze=["top","right","bottom","left"],Be=Math.min,Ve=Math.max,Fe=Math.round,$e=Math.floor,Ke=e=>({x:e,y:e}),qe={left:"right",right:"left",bottom:"top",top:"bottom"};function Ue(e,t,n){return Ve(e,Be(t,n))}function Xe(e,t){return"function"==typeof e?e(t):e}function Ye(e){return e.split("-")[0]}function Ge(e){return e.split("-")[1]}function Ze(e){return"x"===e?"y":"x"}function Qe(e){return"y"===e?"height":"width"}function Je(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function et(e){return Ze(Je(e))}function tt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const nt=["left","right"],rt=["right","left"],ot=["top","bottom"],st=["bottom","top"];function at(e,t,n,r){const o=Ge(e);let s=function(e,t,n){switch(e){case"top":case"bottom":return n?t?rt:nt:t?nt:rt;case"left":case"right":return t?ot:st;default:return[]}}(Ye(e),"start"===n,r);return o&&(s=s.map(e=>e+"-"+o),t&&(s=s.concat(s.map(tt)))),s}function it(e){const t=Ye(e);return qe[t]+e.slice(t.length)}function lt(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function ct(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function dt(e,t,n){let{reference:r,floating:o}=e;const s=Je(t),a=et(t),i=Qe(a),l=Ye(t),c="y"===s,d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,f=r[i]/2-o[i]/2;let p;switch(l){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:u};break;case"left":p={x:r.x-o.width,y:u};break;default:p={x:r.x,y:r.y}}switch(Ge(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function ut(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:p=0}=Xe(t,e),h=lt(p),m=i[f?"floating"===u?"reference":"floating":u],x=ct(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(m)))||n?m:m.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(i.floating)),boundary:c,rootBoundary:d,strategy:l})),g="floating"===u?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==s.getOffsetParent?void 0:s.getOffsetParent(i.floating)),v=await(null==s.isElement?void 0:s.isElement(y))&&await(null==s.getScale?void 0:s.getScale(y))||{x:1,y:1},w=ct(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:g,offsetParent:y,strategy:l}):g);return{top:(x.top-w.top+h.top)/v.y,bottom:(w.bottom-x.bottom+h.bottom)/v.y,left:(x.left-w.left+h.left)/v.x,right:(w.right-x.right+h.right)/v.x}}function ft(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function pt(e){return ze.some(t=>e[t]>=0)}const ht=new Set(["left","top"]);function mt(){return"undefined"!=typeof window}function xt(e){return vt(e)?(e.nodeName||"").toLowerCase():"#document"}function gt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function yt(e){var t;return null==(t=(vt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function vt(e){return!!mt()&&(e instanceof Node||e instanceof gt(e).Node)}function wt(e){return!!mt()&&(e instanceof Element||e instanceof gt(e).Element)}function bt(e){return!!mt()&&(e instanceof HTMLElement||e instanceof gt(e).HTMLElement)}function jt(e){return!(!mt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof gt(e).ShadowRoot)}function Nt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ot(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function St(e){return/^(table|td|th)$/.test(xt(e))}function Ct(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}const kt=/transform|translate|scale|rotate|perspective|filter/,Rt=/paint|layout|strict|content/,Pt=e=>!!e&&"none"!==e;let At;function Dt(e){const t=wt(e)?Ot(e):e;return Pt(t.transform)||Pt(t.translate)||Pt(t.scale)||Pt(t.rotate)||Pt(t.perspective)||!Tt()&&(Pt(t.backdropFilter)||Pt(t.filter))||kt.test(t.willChange||"")||Rt.test(t.contain||"")}function Tt(){return null==At&&(At="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),At}function Et(e){return/^(html|body|#document)$/.test(xt(e))}function Ot(e){return gt(e).getComputedStyle(e)}function _t(e){return wt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Lt(e){if("html"===xt(e))return e;const t=e.assignedSlot||e.parentNode||jt(e)&&e.host||yt(e);return jt(t)?t.host:t}function It(e){const t=Lt(e);return Et(t)?e.ownerDocument?e.ownerDocument.body:e.body:bt(t)&&Nt(t)?t:It(t)}function Mt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=It(e),s=o===(null==(r=e.ownerDocument)?void 0:r.body),a=gt(o);if(s){const e=Ht(a);return t.concat(a,a.visualViewport||[],Nt(o)?o:[],e&&n?Mt(e):[])}return t.concat(o,Mt(o,[],n))}function Ht(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wt(e){const t=Ot(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=bt(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:r,i=Fe(n)!==s||Fe(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function zt(e){return wt(e)?e:e.contextElement}function Bt(e){const t=zt(e);if(!bt(t))return Ke(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Wt(t);let a=(s?Fe(n.width):n.width)/r,i=(s?Fe(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),i&&Number.isFinite(i)||(i=1),{x:a,y:i}}const Vt=Ke(0);function Ft(e){const t=gt(e);return Tt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Vt}function $t(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),s=zt(e);let a=Ke(1);t&&(r?wt(r)&&(a=Bt(r)):a=Bt(e));const i=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==gt(e))&&t}(s,n,r)?Ft(s):Ke(0);let l=(o.left+i.x)/a.x,c=(o.top+i.y)/a.y,d=o.width/a.x,u=o.height/a.y;if(s){const e=gt(s),t=r&&wt(r)?gt(r):r;let n=e,o=Ht(n);for(;o&&r&&t!==n;){const e=Bt(o),t=o.getBoundingClientRect(),r=Ot(o),s=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=s,c+=a,n=gt(o),o=Ht(n)}}return ct({width:d,height:u,x:l,y:c})}function Kt(e,t){const n=_t(e).scrollLeft;return t?t.left+n:$t(yt(e)).left+n}function qt(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Kt(e,n),y:n.top+t.scrollTop}}function Ut(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=gt(e),r=yt(e),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,l=0;if(o){s=o.width,a=o.height;const e=Tt();(!e||e&&"fixed"===t)&&(i=o.offsetLeft,l=o.offsetTop)}const c=Kt(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(s-=a)}else c<=25&&(s+=c);return{width:s,height:a,x:i,y:l}}(e,n);else if("document"===t)r=function(e){const t=yt(e),n=_t(e),r=e.ownerDocument.body,o=Ve(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Ve(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Kt(e);const i=-n.scrollTop;return"rtl"===Ot(r).direction&&(a+=Ve(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}(yt(e));else if(wt(t))r=function(e,t){const n=$t(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=bt(e)?Bt(e):Ke(1);return{width:e.clientWidth*s.x,height:e.clientHeight*s.y,x:o*s.x,y:r*s.y}}(t,n);else{const n=Ft(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ct(r)}function Xt(e,t){const n=Lt(e);return!(n===t||!wt(n)||Et(n))&&("fixed"===Ot(n).position||Xt(n,t))}function Yt(e,t,n){const r=bt(t),o=yt(t),s="fixed"===n,a=$t(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const l=Ke(0);function c(){l.x=Kt(o)}if(r||!r&&!s)if(("body"!==xt(t)||Nt(o))&&(i=_t(t)),r){const e=$t(t,!0,s,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();s&&!r&&o&&c();const d=!o||r||s?Ke(0):qt(o,i);return{x:a.left+i.scrollLeft-l.x-d.x,y:a.top+i.scrollTop-l.y-d.y,width:a.width,height:a.height}}function Gt(e){return"static"===Ot(e).position}function Zt(e,t){if(!bt(e)||"fixed"===Ot(e).position)return null;if(t)return t(e);let n=e.offsetParent;return yt(e)===n&&(n=n.ownerDocument.body),n}function Qt(e,t){const n=gt(e);if(Ct(e))return n;if(!bt(e)){let t=Lt(e);for(;t&&!Et(t);){if(wt(t)&&!Gt(t))return t;t=Lt(t)}return n}let r=Zt(e,t);for(;r&&St(r)&&Gt(r);)r=Zt(r,t);return r&&Et(r)&&Gt(r)&&!Dt(r)?n:r||function(e){let t=Lt(e);for(;bt(t)&&!Et(t);){if(Dt(t))return t;if(Ct(t))return null;t=Lt(t)}return null}(e)||n}const Jt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s="fixed"===o,a=yt(r),i=!!t&&Ct(t.floating);if(r===a||i&&s)return n;let l={scrollLeft:0,scrollTop:0},c=Ke(1);const d=Ke(0),u=bt(r);if((u||!u&&!s)&&(("body"!==xt(r)||Nt(a))&&(l=_t(r)),u)){const e=$t(r);c=Bt(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}const f=!a||u||s?Ke(0):qt(a,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+f.x,y:n.y*c.y-l.scrollTop*c.y+d.y+f.y}},getDocumentElement:yt,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[..."clippingAncestors"===n?Ct(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Mt(e,[],!1).filter(e=>wt(e)&&"body"!==xt(e)),o=null;const s="fixed"===Ot(e).position;let a=s?Lt(e):e;for(;wt(a)&&!Et(a);){const t=Ot(a),n=Dt(a);n||"fixed"!==t.position||(o=null),(s?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||Nt(a)&&!n&&Xt(e,a))?r=r.filter(e=>e!==a):o=t,a=Lt(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=Ut(t,s[0],o);let i=a.top,l=a.right,c=a.bottom,d=a.left;for(let u=1;u<s.length;u++){const e=Ut(t,s[u],o);i=Ve(e.top,i),l=Be(e.right,l),c=Be(e.bottom,c),d=Ve(e.left,d)}return{width:l-d,height:c-i,x:d,y:i}},getOffsetParent:Qt,getElementRects:async function(e){const t=this.getOffsetParent||Qt,n=this.getDimensions,r=await n(e.floating);return{reference:Yt(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Wt(e);return{width:t,height:n}},getScale:Bt,isElement:wt,isRTL:function(e){return"rtl"===Ot(e).direction}};function en(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tn(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:i="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=zt(e),d=o||s?[...c?Mt(c):[],...t?Mt(t):[]]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});const u=c&&i?function(e,t){let n,r=null;const o=yt(e);function s(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(i,l){void 0===i&&(i=!1),void 0===l&&(l=1),s();const c=e.getBoundingClientRect(),{left:d,top:u,width:f,height:p}=c;if(i||t(),!f||!p)return;const h={rootMargin:-$e(u)+"px "+-$e(o.clientWidth-(d+f))+"px "+-$e(o.clientHeight-(u+p))+"px "+-$e(d)+"px",threshold:Ve(0,Be(1,l))||1};let m=!0;function x(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||en(c,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(x,{...h,root:o.ownerDocument})}catch(g){r=new IntersectionObserver(x,h)}r.observe(e)}(!0),s}(c,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!l&&h.observe(c),t&&h.observe(t));let m=l?$t(e):null;return l&&function t(){const r=$t(e);m&&!en(m,r)&&n();m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==u||u(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const nn=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,s=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Ye(n),i=Ge(n),l="y"===Je(n),c=ht.has(a)?-1:1,d=s&&l?-1:1,u=Xe(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return i&&"number"==typeof h&&(p="end"===i?-1*h:h),l?{x:p*d,y:f*c}:{x:f*c,y:p*d}}(t,e);return a===(null==(n=i.offset)?void 0:n.placement)&&null!=(r=i.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:a}}}}},rn=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Xe(e,t),d={x:n,y:r},u=await s.detectOverflow(t,c),f=Je(Ye(o)),p=Ze(f);let h=d[p],m=d[f];if(a){const e="y"===p?"bottom":"right";h=Ue(h+u["y"===p?"top":"left"],h,h-u[e])}if(i){const e="y"===f?"bottom":"right";m=Ue(m+u["y"===f?"top":"left"],m,m-u[e])}const x=l.fn({...t,[p]:h,[f]:m});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[p]:a,[f]:i}}}}}},on=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:l,elements:c}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...x}=Xe(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const g=Ye(o),y=Je(i),v=Ye(i)===i,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),b=f||(v||!m?[it(i)]:function(e){const t=it(e);return[tt(e),t,tt(t)]}(i)),j="none"!==h;!f&&j&&b.push(...at(i,m,h,w));const N=[i,...b],S=await l.detectOverflow(t,x),C=[];let k=(null==(r=s.flip)?void 0:r.overflows)||[];if(d&&C.push(S[g]),u){const e=function(e,t,n){void 0===n&&(n=!1);const r=Ge(e),o=et(e),s=Qe(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=it(a)),[a,it(a)]}(o,a,w);C.push(S[e[0]],S[e[1]])}if(k=[...k,{placement:o,overflows:C}],!C.every(e=>e<=0)){var R,P;const e=((null==(R=s.flip)?void 0:R.index)||0)+1,t=N[e];if(t){if(!("alignment"===u&&y!==Je(t))||k.every(e=>Je(e.placement)!==y||e.overflows[0]>0))return{data:{index:e,overflows:k},reset:{placement:t}}}let n=null==(P=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:P.placement;if(!n)switch(p){case"bestFit":{var A;const e=null==(A=k.filter(e=>{if(j){const t=Je(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:A[0];e&&(n=e);break}case"initialPlacement":n=i}if(o!==n)return{reset:{placement:n}}}return{}}}},sn=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:a,elements:i}=t,{apply:l=()=>{},...c}=Xe(e,t),d=await a.detectOverflow(t,c),u=Ye(o),f=Ge(o),p="y"===Je(o),{width:h,height:m}=s.floating;let x,g;"top"===u||"bottom"===u?(x=u,g=f===(await(null==a.isRTL?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(g=u,x="end"===f?"top":"bottom");const y=m-d.top-d.bottom,v=h-d.left-d.right,w=Be(m-d[x],y),b=Be(h-d[g],v),j=!t.middlewareData.shift;let N=w,S=b;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=v),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(N=y),j&&!f){const e=Ve(d.left,0),t=Ve(d.right,0),n=Ve(d.top,0),r=Ve(d.bottom,0);p?S=h-2*(0!==e||0!==t?e+t:Ve(d.left,d.right)):N=m-2*(0!==n||0!==r?n+r:Ve(d.top,d.bottom))}await l({...t,availableWidth:S,availableHeight:N});const C=await a.getDimensions(i.floating);return h!==C.width||m!==C.height?{reset:{rects:!0}}:{}}}},an=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=Xe(e,t);switch(o){case"referenceHidden":{const e=ft(await r.detectOverflow(t,{...s,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:pt(e)}}}case"escaped":{const e=ft(await r.detectOverflow(t,{...s,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:pt(e)}}}default:return{}}}}},ln=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:l}=t,{element:c,padding:d=0}=Xe(e,t)||{};if(null==c)return{};const u=lt(d),f={x:n,y:r},p=et(o),h=Qe(p),m=await a.getDimensions(c),x="y"===p,g=x?"top":"left",y=x?"bottom":"right",v=x?"clientHeight":"clientWidth",w=s.reference[h]+s.reference[p]-f[p]-s.floating[h],b=f[p]-s.reference[p],j=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let N=j?j[v]:0;N&&await(null==a.isElement?void 0:a.isElement(j))||(N=i.floating[v]||s.floating[h]);const S=w/2-b/2,C=N/2-m[h]/2-1,k=Be(u[g],C),R=Be(u[y],C),P=k,A=N-m[h]-R,D=N/2-m[h]/2+S,T=Ue(P,D,A),E=!l.arrow&&null!=Ge(o)&&D!==T&&s.reference[h]/2-(D<P?k:R)-m[h]/2<0,O=E?D<P?D-P:D-A:0;return{[p]:f[p]+O,data:{[p]:T,centerOffset:D-T-O,...E&&{alignmentOffset:O}},reset:E}}}),cn=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=t,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=Xe(e,t),d={x:n,y:r},u=Je(o),f=Ze(u);let p=d[f],h=d[u];const m=Xe(i,t),x="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=s.reference[f]-s.floating[e]+x.mainAxis,n=s.reference[f]+s.reference[e]-x.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var g,y;const e="y"===f?"width":"height",t=ht.has(Ye(o)),n=s.reference[u]-s.floating[e]+(t&&(null==(g=a.offset)?void 0:g[u])||0)+(t?0:x.crossAxis),r=s.reference[u]+s.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[u])||0)-(t?x.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[u]:h}}}},dn=(e,t,n)=>{const r=new Map,o={platform:Jt,...n},s={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=a.detectOverflow?a:{...a,detectOverflow:ut},l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=dt(c,r,l),f=r,p=0;const h={};for(let m=0;m<s.length;m++){const n=s[m];if(!n)continue;const{name:x,fn:g}=n,{x:y,y:v,data:w,reset:b}=await g({x:d,y:u,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:c,platform:i,elements:{reference:e,floating:t}});d=null!=y?y:d,u=null!=v?v:u,h[x]={...h[x],...w},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:d,y:u}=dt(c,f,l))),m=-1)}return{x:d,y:u,placement:f,strategy:o,middlewareData:h}})(e,t,{...o,platform:s})};var un="undefined"!=typeof document?t.useLayoutEffect:function(){};function fn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!fn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!fn(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function pn(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function hn(e,t){const n=pn(e);return Math.round(t*n)/n}function mn(e){const n=t.useRef(e);return un(()=>{n.current=e}),n}const xn=(e,t)=>{const n=nn(e);return{name:n.name,fn:n.fn,options:[e,t]}},gn=(e,t)=>{const n=rn(e);return{name:n.name,fn:n.fn,options:[e,t]}},yn=(e,t)=>{const n=on(e);return{name:n.name,fn:n.fn,options:[e,t]}},vn=(e,t)=>{const n=sn(e);return{name:n.name,fn:n.fn,options:[e,t]}},wn=(e,t)=>{const n=an(e);return{name:n.name,fn:n.fn,options:[e,t]}},bn=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?ln({element:n.current,padding:r}).fn(t):{}:n?ln({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};var jn=t.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return s.jsx(a.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:s.jsx("polygon",{points:"0,0 30,0 15,10"})})});jn.displayName="Arrow";var Nn=jn,Sn="Popper",[Cn,kn]=l(Sn),[Rn,Pn]=Cn(Sn),An=e=>{const{__scopePopper:n,children:r}=e,[o,a]=t.useState(null);return s.jsx(Rn,{scope:n,anchor:o,onAnchorChange:a,children:r})};An.displayName=Sn;var Dn="PopperAnchor",Tn=t.forwardRef((e,n)=>{const{__scopePopper:o,virtualRef:i,...l}=e,c=Pn(Dn,o),d=t.useRef(null),u=r(n,d),f=t.useRef(null);return t.useEffect(()=>{const e=f.current;f.current=(null==i?void 0:i.current)||d.current,e!==f.current&&c.onAnchorChange(f.current)}),i?null:s.jsx(a.div,{...l,ref:u})});Tn.displayName=Dn;var En="PopperContent",[On,_n]=Cn(En),Ln=t.forwardRef((e,o)=>{var i,l,c,f,p,h;const{__scopePopper:m,side:x="bottom",sideOffset:g=0,align:y="center",alignOffset:v=0,arrowPadding:w=0,avoidCollisions:b=!0,collisionBoundary:j=[],collisionPadding:N=0,sticky:S="partial",hideWhenDetached:C=!1,updatePositionStrategy:k="optimized",onPlaced:R,...P}=e,A=Pn(En,m),[D,T]=t.useState(null),E=r(o,e=>T(e)),[O,_]=t.useState(null),L=Re(O),I=(null==L?void 0:L.width)??0,M=(null==L?void 0:L.height)??0,H=x+("center"!==y?"-"+y:""),W="number"==typeof N?N:{top:0,right:0,bottom:0,left:0,...N},z=Array.isArray(j)?j:[j],B=z.length>0,V={padding:W,boundary:z.filter(Wn),altBoundary:B},{refs:F,floatingStyles:$,placement:K,isPositioned:q,middlewareData:U}=function(e){void 0===e&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:o=[],platform:s,elements:{reference:a,floating:i}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[f,p]=t.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[h,m]=t.useState(o);fn(h,o)||m(o);const[x,g]=t.useState(null),[y,v]=t.useState(null),w=t.useCallback(e=>{e!==S.current&&(S.current=e,g(e))},[]),b=t.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),j=a||x,N=i||y,S=t.useRef(null),C=t.useRef(null),k=t.useRef(f),R=null!=c,P=mn(c),A=mn(s),D=mn(u),T=t.useCallback(()=>{if(!S.current||!C.current)return;const e={placement:n,strategy:r,middleware:h};A.current&&(e.platform=A.current),dn(S.current,C.current,e).then(e=>{const t={...e,isPositioned:!1!==D.current};E.current&&!fn(k.current,t)&&(k.current=t,d.flushSync(()=>{p(t)}))})},[h,n,r,A,D]);un(()=>{!1===u&&k.current.isPositioned&&(k.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);const E=t.useRef(!1);un(()=>(E.current=!0,()=>{E.current=!1}),[]),un(()=>{if(j&&(S.current=j),N&&(C.current=N),j&&N){if(P.current)return P.current(j,N,T);T()}},[j,N,T,P,R]);const O=t.useMemo(()=>({reference:S,floating:C,setReference:w,setFloating:b}),[w,b]),_=t.useMemo(()=>({reference:j,floating:N}),[j,N]),L=t.useMemo(()=>{const e={position:r,left:0,top:0};if(!_.floating)return e;const t=hn(_.floating,f.x),n=hn(_.floating,f.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...pn(_.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,l,_.floating,f.x,f.y]);return t.useMemo(()=>({...f,update:T,refs:O,elements:_,floatingStyles:L}),[f,T,O,_,L])}({strategy:"fixed",placement:H,whileElementsMounted:(...e)=>tn(...e,{animationFrame:"always"===k}),elements:{reference:A.anchor},middleware:[xn({mainAxis:g+M,alignmentAxis:v}),b&&gn({mainAxis:!0,crossAxis:!1,limiter:"partial"===S?{fn:cn(X).fn,options:[X,Y]}:void 0,...V}),b&&yn({...V}),vn({...V,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:s}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${s}px`)}}),O&&bn({element:O,padding:w}),zn({arrowWidth:I,arrowHeight:M}),C&&wn({strategy:"referenceHidden",...V})]});var X,Y;const[G,Z]=Bn(K),Q=u(R);n(()=>{q&&(null==Q||Q())},[q,Q]);const J=null==(i=U.arrow)?void 0:i.x,ee=null==(l=U.arrow)?void 0:l.y,te=0!==(null==(c=U.arrow)?void 0:c.centerOffset),[ne,re]=t.useState();return n(()=>{D&&re(window.getComputedStyle(D).zIndex)},[D]),s.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:q?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[null==(f=U.transformOrigin)?void 0:f.x,null==(p=U.transformOrigin)?void 0:p.y].join(" "),...(null==(h=U.hide)?void 0:h.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:s.jsx(On,{scope:m,placedSide:G,onArrowChange:_,arrowX:J,arrowY:ee,shouldHideArrow:te,children:s.jsx(a.div,{"data-side":G,"data-align":Z,...P,ref:E,style:{...P.style,animation:q?void 0:"none"}})})})});Ln.displayName=En;var In="PopperArrow",Mn={top:"bottom",right:"left",bottom:"top",left:"right"},Hn=t.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=_n(In,n),a=Mn[o.placedSide];return s.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:s.jsx(Nn,{...r,ref:t,style:{...r.style,display:"block"}})})});function Wn(e){return null!==e}Hn.displayName=In;var zn=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o;const{placement:s,rects:a,middlewareData:i}=t,l=0!==(null==(n=i.arrow)?void 0:n.centerOffset),c=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[u,f]=Bn(s),p={start:"0%",center:"50%",end:"100%"}[f],h=((null==(r=i.arrow)?void 0:r.x)??0)+c/2,m=((null==(o=i.arrow)?void 0:o.y)??0)+d/2;let x="",g="";return"bottom"===u?(x=l?p:`${h}px`,g=-d+"px"):"top"===u?(x=l?p:`${h}px`,g=`${a.floating.height+d}px`):"right"===u?(x=-d+"px",g=l?p:`${m}px`):"left"===u&&(x=`${a.floating.width+d}px`,g=l?p:`${m}px`),{data:{x:x,y:g}}}});function Bn(e){const[t,n="center"]=e.split("-");return[t,n]}var Vn=An,Fn=Tn,$n=Ln,Kn=Hn;function qn(e){const n=Un(e),r=t.forwardRef((e,r)=>{const{children:o,...a}=e,i=t.Children.toArray(o),l=i.find(Yn);if(l){const e=l.props.children,o=i.map(n=>n===l?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n);return s.jsx(n,{...a,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,o):null})}return s.jsx(n,{...a,ref:r,children:o})});return r.displayName=`${e}.Slot`,r}function Un(e){const n=t.forwardRef((e,n)=>{const{children:r,...o}=e;if(t.isValidElement(r)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;if(o)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o)return e.props.ref;return e.props.ref||e.ref}(r),s=function(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...e)=>{const t=s(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...s}:"className"===r&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==t.Fragment&&(s.ref=n?f(n,e):e),t.cloneElement(r,s)}return t.Children.count(r)>1?t.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var Xn=Symbol("radix.slottable");function Yn(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Xn}var Gn=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});t.forwardRef((e,t)=>s.jsx(a.span,{...e,ref:t,style:{...Gn,...e.style}})).displayName="VisuallyHidden";var Zn=[" ","Enter","ArrowUp","ArrowDown"],Qn=[" ","Enter"],Jn="Select",[er,tr,nr]=le(Jn),[rr]=l(Jn,[nr,kn]),or=kn(),[sr,ar]=rr(Jn),[ir,lr]=rr(Jn),cr=e=>{const{__scopeSelect:n,children:r,open:a,defaultOpen:i,onOpenChange:l,value:c,defaultValue:d,onValueChange:u,dir:f,name:h,autoComplete:m,disabled:x,required:g,form:y}=e,v=or(n),[w,b]=t.useState(null),[j,N]=t.useState(null),[S,C]=t.useState(!1),k=ie(f),[R,P]=o({prop:a,defaultProp:i??!1,onChange:l,caller:Jn}),[A,D]=o({prop:c,defaultProp:d,onChange:u,caller:Jn}),T=t.useRef(null),E=!w||(y||!!w.closest("form")),[O,_]=t.useState(new Set),L=Array.from(O).map(e=>e.props.value).join(";");return s.jsx(Vn,{...v,children:s.jsxs(sr,{required:g,scope:n,trigger:w,onTriggerChange:b,valueNode:j,onValueNodeChange:N,valueNodeHasChildren:S,onValueNodeHasChildrenChange:C,contentId:p(),value:A,onValueChange:D,open:R,onOpenChange:P,dir:k,triggerPointerDownPosRef:T,disabled:x,children:[s.jsx(er.Provider,{scope:n,children:s.jsx(ir,{scope:e.__scopeSelect,onNativeOptionAdd:t.useCallback(e=>{_(t=>new Set(t).add(e))},[]),onNativeOptionRemove:t.useCallback(e=>{_(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:r})}),E?s.jsxs(Yr,{"aria-hidden":!0,required:g,tabIndex:-1,name:h,autoComplete:m,value:A,onChange:e=>D(e.target.value),disabled:x,form:y,children:[void 0===A?s.jsx("option",{value:""}):null,Array.from(O)]},L):null]})})};cr.displayName=Jn;var dr="SelectTrigger",ur=t.forwardRef((e,n)=>{const{__scopeSelect:o,disabled:l=!1,...c}=e,d=or(o),u=ar(dr,o),f=u.disabled||l,p=r(n,u.onTriggerChange),h=tr(o),m=t.useRef("touch"),[x,g,y]=Zr(e=>{const t=h().filter(e=>!e.disabled),n=t.find(e=>e.value===u.value),r=Qr(t,e,n);void 0!==r&&u.onValueChange(r.value)}),v=e=>{f||(u.onOpenChange(!0),y()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return s.jsx(Fn,{asChild:!0,...d,children:s.jsx(a.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":Gr(u.value)?"":void 0,...c,ref:p,onClick:i(c.onClick,e=>{e.currentTarget.focus(),"mouse"!==m.current&&v(e)}),onPointerDown:i(c.onPointerDown,e=>{m.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(v(e),e.preventDefault())}),onKeyDown:i(c.onKeyDown,e=>{const t=""!==x.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||g(e.key),t&&" "===e.key||Zn.includes(e.key)&&(v(),e.preventDefault())})})})});ur.displayName=dr;var fr="SelectValue",pr=t.forwardRef((e,t)=>{const{__scopeSelect:o,className:i,style:l,children:c,placeholder:d="",...u}=e,f=ar(fr,o),{onValueNodeHasChildrenChange:p}=f,h=void 0!==c,m=r(t,f.onValueNodeChange);return n(()=>{p(h)},[p,h]),s.jsx(a.span,{...u,ref:m,style:{pointerEvents:"none"},children:Gr(f.value)?s.jsx(s.Fragment,{children:d}):c})});pr.displayName=fr;var hr=t.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return s.jsx(a.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});hr.displayName="SelectIcon";var mr=e=>s.jsx(h,{asChild:!0,...e});mr.displayName="SelectPortal";var xr="SelectContent",gr=t.forwardRef((e,r)=>{const o=ar(xr,e.__scopeSelect),[a,i]=t.useState();if(n(()=>{i(new DocumentFragment)},[]),!o.open){const t=a;return t?d.createPortal(s.jsx(vr,{scope:e.__scopeSelect,children:s.jsx(er.Slot,{scope:e.__scopeSelect,children:s.jsx("div",{children:e.children})})}),t):null}return s.jsx(jr,{...e,ref:r})});gr.displayName=xr;var yr=10,[vr,wr]=rr(xr),br=qn("SelectContent.RemoveScroll"),jr=t.forwardRef((e,n)=>{const{__scopeSelect:o,position:a="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:c,onPointerDownOutside:d,side:u,sideOffset:f,align:p,alignOffset:h,arrowPadding:w,collisionBoundary:b,collisionPadding:j,sticky:N,hideWhenDetached:S,avoidCollisions:C,...k}=e,R=ar(xr,o),[P,A]=t.useState(null),[D,T]=t.useState(null),E=r(n,e=>A(e)),[O,_]=t.useState(null),[L,I]=t.useState(null),M=tr(o),[H,W]=t.useState(!1),z=t.useRef(!1);t.useEffect(()=>{if(P)return m(P)},[P]),x();const B=t.useCallback(e=>{const[t,...n]=M().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(const s of e){if(s===o)return;if(null==s||s.scrollIntoView({block:"nearest"}),s===t&&D&&(D.scrollTop=0),s===r&&D&&(D.scrollTop=D.scrollHeight),null==s||s.focus(),document.activeElement!==o)return}},[M,D]),V=t.useCallback(()=>B([O,P]),[B,O,P]);t.useEffect(()=>{H&&V()},[H,V]);const{onOpenChange:F,triggerPointerDownPosRef:$}=R;t.useEffect(()=>{if(P){let e={x:0,y:0};const t=t=>{var n,r;e={x:Math.abs(Math.round(t.pageX)-((null==(n=$.current)?void 0:n.x)??0)),y:Math.abs(Math.round(t.pageY)-((null==(r=$.current)?void 0:r.y)??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():P.contains(n.target)||F(!1),document.removeEventListener("pointermove",t),$.current=null};return null!==$.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[P,F,$]),t.useEffect(()=>{const e=()=>F(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[F]);const[K,q]=Zr(e=>{const t=M().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=Qr(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),U=t.useCallback((e,t,n)=>{const r=!z.current&&!n;(void 0!==R.value&&R.value===t||r)&&(_(e),r&&(z.current=!0))},[R.value]),X=t.useCallback(()=>null==P?void 0:P.focus(),[P]),Y=t.useCallback((e,t,n)=>{const r=!z.current&&!n;(void 0!==R.value&&R.value===t||r)&&I(e)},[R.value]),G="popper"===a?Sr:Nr,Z=G===Sr?{side:u,sideOffset:f,align:p,alignOffset:h,arrowPadding:w,collisionBoundary:b,collisionPadding:j,sticky:N,hideWhenDetached:S,avoidCollisions:C}:{};return s.jsx(vr,{scope:o,content:P,viewport:D,onViewportChange:T,itemRefCallback:U,selectedItem:O,onItemLeave:X,itemTextRefCallback:Y,focusSelectedItem:V,selectedItemText:L,position:a,isPositioned:H,searchRef:K,children:s.jsx(g,{as:br,allowPinchZoom:!0,children:s.jsx(y,{asChild:!0,trapped:R.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:i(l,e=>{var t;null==(t=R.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:s.jsx(v,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:s.jsx(G,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:e=>e.preventDefault(),...k,...Z,onPlaced:()=>W(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...k.style},onKeyDown:i(k.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||q(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=M().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>B(t)),e.preventDefault()}})})})})})})});jr.displayName="SelectContentImpl";var Nr=t.forwardRef((e,o)=>{const{__scopeSelect:i,onPlaced:l,...c}=e,d=ar(xr,i),u=wr(xr,i),[f,p]=t.useState(null),[h,m]=t.useState(null),x=r(o,e=>m(e)),g=tr(i),y=t.useRef(!1),v=t.useRef(!0),{viewport:w,selectedItem:b,selectedItemText:j,focusSelectedItem:N}=u,S=t.useCallback(()=>{if(d.trigger&&d.valueNode&&f&&h&&w&&b&&j){const e=d.trigger.getBoundingClientRect(),t=h.getBoundingClientRect(),n=d.valueNode.getBoundingClientRect(),r=j.getBoundingClientRect();if("rtl"!==d.dir){const o=r.left-t.left,s=n.left-o,a=e.left-s,i=e.width+a,l=Math.max(i,t.width),c=window.innerWidth-yr,d=ce(s,[yr,Math.max(yr,c-l)]);f.style.minWidth=i+"px",f.style.left=d+"px"}else{const o=t.right-r.right,s=window.innerWidth-n.right-o,a=window.innerWidth-e.right-s,i=e.width+a,l=Math.max(i,t.width),c=window.innerWidth-yr,d=ce(s,[yr,Math.max(yr,c-l)]);f.style.minWidth=i+"px",f.style.right=d+"px"}const o=g(),s=window.innerHeight-2*yr,a=w.scrollHeight,i=window.getComputedStyle(h),c=parseInt(i.borderTopWidth,10),u=parseInt(i.paddingTop,10),p=parseInt(i.borderBottomWidth,10),m=c+u+a+parseInt(i.paddingBottom,10)+p,x=Math.min(5*b.offsetHeight,m),v=window.getComputedStyle(w),N=parseInt(v.paddingTop,10),S=parseInt(v.paddingBottom,10),C=e.top+e.height/2-yr,k=s-C,R=b.offsetHeight/2,P=c+u+(b.offsetTop+R),A=m-P;if(P<=C){const e=o.length>0&&b===o[o.length-1].ref.current;f.style.bottom="0px";const t=h.clientHeight-w.offsetTop-w.offsetHeight,n=P+Math.max(k,R+(e?S:0)+t+p);f.style.height=n+"px"}else{const e=o.length>0&&b===o[0].ref.current;f.style.top="0px";const t=Math.max(C,c+w.offsetTop+(e?N:0)+R)+A;f.style.height=t+"px",w.scrollTop=P-C+w.offsetTop}f.style.margin=`${yr}px 0`,f.style.minHeight=x+"px",f.style.maxHeight=s+"px",null==l||l(),requestAnimationFrame(()=>y.current=!0)}},[g,d.trigger,d.valueNode,f,h,w,b,j,d.dir,l]);n(()=>S(),[S]);const[C,k]=t.useState();n(()=>{h&&k(window.getComputedStyle(h).zIndex)},[h]);const R=t.useCallback(e=>{e&&!0===v.current&&(S(),null==N||N(),v.current=!1)},[S,N]);return s.jsx(Cr,{scope:i,contentWrapper:f,shouldExpandOnScrollRef:y,onScrollButtonChange:R,children:s.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:s.jsx(a.div,{...c,ref:x,style:{boxSizing:"border-box",maxHeight:"100%",...c.style}})})})});Nr.displayName="SelectItemAlignedPosition";var Sr=t.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=yr,...a}=e,i=or(n);return s.jsx($n,{...i,...a,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Sr.displayName="SelectPopperPosition";var[Cr,kr]=rr(xr,{}),Rr="SelectViewport",Pr=t.forwardRef((e,n)=>{const{__scopeSelect:o,nonce:l,...c}=e,d=wr(Rr,o),u=kr(Rr,o),f=r(n,d.onViewportChange),p=t.useRef(0);return s.jsxs(s.Fragment,{children:[s.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),s.jsx(er.Slot,{scope:o,children:s.jsx(a.div,{"data-radix-select-viewport":"",role:"presentation",...c,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...c.style},onScroll:i(c.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=u;if((null==r?void 0:r.current)&&n){const e=Math.abs(p.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*yr,o=parseFloat(n.style.minHeight),s=parseFloat(n.style.height),a=Math.max(o,s);if(a<r){const o=a+e,s=Math.min(r,o),i=o-s;n.style.height=s+"px","0px"===n.style.bottom&&(t.scrollTop=i>0?i:0,n.style.justifyContent="flex-end")}}}p.current=t.scrollTop})})})]})});Pr.displayName=Rr;var Ar="SelectGroup",[Dr,Tr]=rr(Ar);t.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=p();return s.jsx(Dr,{scope:n,id:o,children:s.jsx(a.div,{role:"group","aria-labelledby":o,...r,ref:t})})}).displayName=Ar;var Er="SelectLabel",Or=t.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Tr(Er,n);return s.jsx(a.div,{id:o.id,...r,ref:t})});Or.displayName=Er;var _r="SelectItem",[Lr,Ir]=rr(_r),Mr=t.forwardRef((e,n)=>{const{__scopeSelect:o,value:l,disabled:c=!1,textValue:d,...u}=e,f=ar(_r,o),h=wr(_r,o),m=f.value===l,[x,g]=t.useState(d??""),[y,v]=t.useState(!1),w=r(n,e=>{var t;return null==(t=h.itemRefCallback)?void 0:t.call(h,e,l,c)}),b=p(),j=t.useRef("touch"),N=()=>{c||(f.onValueChange(l),f.onOpenChange(!1))};if(""===l)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return s.jsx(Lr,{scope:o,value:l,disabled:c,textId:b,isSelected:m,onItemTextChange:t.useCallback(e=>{g(t=>t||((null==e?void 0:e.textContent)??"").trim())},[]),children:s.jsx(er.ItemSlot,{scope:o,value:l,disabled:c,textValue:x,children:s.jsx(a.div,{role:"option","aria-labelledby":b,"data-highlighted":y?"":void 0,"aria-selected":m&&y,"data-state":m?"checked":"unchecked","aria-disabled":c||void 0,"data-disabled":c?"":void 0,tabIndex:c?void 0:-1,...u,ref:w,onFocus:i(u.onFocus,()=>v(!0)),onBlur:i(u.onBlur,()=>v(!1)),onClick:i(u.onClick,()=>{"mouse"!==j.current&&N()}),onPointerUp:i(u.onPointerUp,()=>{"mouse"===j.current&&N()}),onPointerDown:i(u.onPointerDown,e=>{j.current=e.pointerType}),onPointerMove:i(u.onPointerMove,e=>{var t;j.current=e.pointerType,c?null==(t=h.onItemLeave)||t.call(h):"mouse"===j.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:i(u.onPointerLeave,e=>{var t;e.currentTarget===document.activeElement&&(null==(t=h.onItemLeave)||t.call(h))}),onKeyDown:i(u.onKeyDown,e=>{var t;""!==(null==(t=h.searchRef)?void 0:t.current)&&" "===e.key||(Qn.includes(e.key)&&N()," "===e.key&&e.preventDefault())})})})})});Mr.displayName=_r;var Hr="SelectItemText",Wr=t.forwardRef((e,o)=>{const{__scopeSelect:i,className:l,style:c,...u}=e,f=ar(Hr,i),p=wr(Hr,i),h=Ir(Hr,i),m=lr(Hr,i),[x,g]=t.useState(null),y=r(o,e=>g(e),h.onItemTextChange,e=>{var t;return null==(t=p.itemTextRefCallback)?void 0:t.call(p,e,h.value,h.disabled)}),v=null==x?void 0:x.textContent,w=t.useMemo(()=>s.jsx("option",{value:h.value,disabled:h.disabled,children:v},h.value),[h.disabled,h.value,v]),{onNativeOptionAdd:b,onNativeOptionRemove:j}=m;return n(()=>(b(w),()=>j(w)),[b,j,w]),s.jsxs(s.Fragment,{children:[s.jsx(a.span,{id:h.textId,...u,ref:y}),h.isSelected&&f.valueNode&&!f.valueNodeHasChildren?d.createPortal(u.children,f.valueNode):null]})});Wr.displayName=Hr;var zr="SelectItemIndicator",Br=t.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Ir(zr,n).isSelected?s.jsx(a.span,{"aria-hidden":!0,...r,ref:t}):null});Br.displayName=zr;var Vr="SelectScrollUpButton",Fr=t.forwardRef((e,o)=>{const a=wr(Vr,e.__scopeSelect),i=kr(Vr,e.__scopeSelect),[l,c]=t.useState(!1),d=r(o,i.onScrollButtonChange);return n(()=>{if(a.viewport&&a.isPositioned){let e=function(){const e=t.scrollTop>0;c(e)};const t=a.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[a.viewport,a.isPositioned]),l?s.jsx(qr,{...e,ref:d,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=a;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});Fr.displayName=Vr;var $r="SelectScrollDownButton",Kr=t.forwardRef((e,o)=>{const a=wr($r,e.__scopeSelect),i=kr($r,e.__scopeSelect),[l,c]=t.useState(!1),d=r(o,i.onScrollButtonChange);return n(()=>{if(a.viewport&&a.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;c(n)};const t=a.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[a.viewport,a.isPositioned]),l?s.jsx(qr,{...e,ref:d,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=a;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});Kr.displayName=$r;var qr=t.forwardRef((e,r)=>{const{__scopeSelect:o,onAutoScroll:l,...c}=e,d=wr("SelectScrollButton",o),u=t.useRef(null),f=tr(o),p=t.useCallback(()=>{null!==u.current&&(window.clearInterval(u.current),u.current=null)},[]);return t.useEffect(()=>()=>p(),[p]),n(()=>{var e;const t=f().find(e=>e.ref.current===document.activeElement);null==(e=null==t?void 0:t.ref.current)||e.scrollIntoView({block:"nearest"})},[f]),s.jsx(a.div,{"aria-hidden":!0,...c,ref:r,style:{flexShrink:0,...c.style},onPointerDown:i(c.onPointerDown,()=>{null===u.current&&(u.current=window.setInterval(l,50))}),onPointerMove:i(c.onPointerMove,()=>{var e;null==(e=d.onItemLeave)||e.call(d),null===u.current&&(u.current=window.setInterval(l,50))}),onPointerLeave:i(c.onPointerLeave,()=>{p()})})}),Ur=t.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return s.jsx(a.div,{"aria-hidden":!0,...r,ref:t})});Ur.displayName="SelectSeparator";var Xr="SelectArrow";t.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=or(n),a=ar(Xr,n),i=wr(Xr,n);return a.open&&"popper"===i.position?s.jsx(Kn,{...o,...r,ref:t}):null}).displayName=Xr;var Yr=t.forwardRef(({__scopeSelect:e,value:n,...o},i)=>{const l=t.useRef(null),c=r(i,l),d=ke(n);return t.useEffect(()=>{const e=l.current;if(!e)return;const t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(d!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}},[d,n]),s.jsx(a.select,{...o,style:{...Gn,...o.style},ref:c,defaultValue:n})});function Gr(e){return""===e||void 0===e}function Zr(e){const n=u(e),r=t.useRef(""),o=t.useRef(0),s=t.useCallback(e=>{const t=r.current+e;n(t),function e(t){r.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(t)},[n]),a=t.useCallback(()=>{r.current="",window.clearTimeout(o.current)},[]);return t.useEffect(()=>()=>window.clearTimeout(o.current),[]),[r,s,a]}function Qr(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let s=(a=e,i=Math.max(o,0),a.map((e,t)=>a[(i+t)%a.length]));var a,i;1===r.length&&(s=s.filter(e=>e!==n));const l=s.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}Yr.displayName="SelectBubbleInput";var Jr=ur,eo=hr,to=mr,no=gr,ro=Pr,oo=Or,so=Mr,ao=Wr,io=Br,lo=Fr,co=Kr,uo=Ur;const fo=cr,po=pr,ho=t.forwardRef(({className:e,children:t,...n},r)=>s.jsxs(Jr,{ref:r,className:c("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,s.jsx(eo,{asChild:!0,children:s.jsx(me,{className:"h-4 w-4 opacity-50"})})]}));ho.displayName=Jr.displayName;const mo=t.forwardRef(({className:e,...t},n)=>s.jsx(lo,{ref:n,className:c("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(xe,{className:"h-4 w-4"})}));mo.displayName=lo.displayName;const xo=t.forwardRef(({className:e,...t},n)=>s.jsx(co,{ref:n,className:c("flex cursor-default items-center justify-center py-1",e),...t,children:s.jsx(me,{className:"h-4 w-4"})}));xo.displayName=co.displayName;const go=t.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>s.jsx(to,{children:s.jsxs(no,{ref:o,className:c("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[s.jsx(mo,{}),s.jsx(ro,{className:c("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),s.jsx(xo,{})]})}));go.displayName=no.displayName;t.forwardRef(({className:e,...t},n)=>s.jsx(oo,{ref:n,className:c("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t})).displayName=oo.displayName;const yo=t.forwardRef(({className:e,children:t,...n},r)=>s.jsxs(so,{ref:r,className:c("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[s.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(io,{children:s.jsx(w,{className:"h-4 w-4"})})}),s.jsx(ao,{children:t})]}));yo.displayName=so.displayName;t.forwardRef(({className:e,...t},n)=>s.jsx(uo,{ref:n,className:c("-mx-1 my-1 h-px bg-muted",e),...t})).displayName=uo.displayName;const vo={"google-drive":"Google Drive",onedrive:"OneDrive",dropbox:"Dropbox"};function wo({open:e,onOpenChange:n,onAdded:r}){const[o,a]=t.useState([]),[i,l]=t.useState(!1),[c,d]=t.useState(null),[u,f]=t.useState(""),[p,h]=t.useState(""),[m,x]=t.useState(""),[g,y]=t.useState(""),[v,w]=t.useState(!1),[O,_]=t.useState(null);t.useEffect(()=>{e&&b().then(e=>a(e.available)).catch(()=>a([]))},[e]);const L=()=>{l(!1),d(null),f(""),h(""),x(""),y(""),w(!1),_(null)},I=o.length>0;return s.jsx(j,{open:e,onOpenChange:e=>{n(e),e||L()},children:s.jsxs(N,{className:"sm:max-w-md",children:[s.jsxs(S,{children:[s.jsxs(C,{className:"flex items-center gap-2",children:[s.jsx(je,{className:"h-5 w-5"}),"添加云盘账号"]}),s.jsx(k,{children:i?"手动填写 OAuth 凭据连接云盘":"选择云盘类型,点击后跳转登录授权"})]}),i?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"space-y-4 py-2",children:[s.jsxs("div",{className:"space-y-2",children:[s.jsx(P,{children:"云盘类型"}),s.jsxs(fo,{value:u,onValueChange:f,children:[s.jsx(ho,{children:s.jsx(po,{placeholder:"选择云盘类型"})}),s.jsxs(go,{children:[s.jsx(yo,{value:"google-drive",children:"Google Drive"}),s.jsx(yo,{value:"onedrive",children:"OneDrive"}),s.jsx(yo,{value:"dropbox",children:"Dropbox"})]})]})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(P,{children:"显示名称"}),s.jsx(A,{placeholder:"例如:我的 Google Drive",value:p,onChange:e=>h(e.target.value)})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(P,{children:"Client ID"}),s.jsx(A,{placeholder:"OAuth Client ID",value:m,onChange:e=>x(e.target.value)})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(P,{children:"Client Secret"}),s.jsx(A,{type:"password",placeholder:"OAuth Client Secret",value:g,onChange:e=>y(e.target.value)})]}),O&&s.jsx("p",{className:"text-sm text-destructive",children:O})]}),s.jsxs(D,{children:[s.jsx(R,{variant:"outline",onClick:()=>{l(!1),_(null)},children:"返回"}),s.jsx(R,{onClick:async()=>{if(u&&p&&m&&g){w(!0),_(null);try{const{id:e}=await T({type:u,label:p,clientId:m,clientSecret:g}),{url:t}=await E(e);window.open(t,"_blank"),L(),n(!1),r()}catch(e){_(e instanceof Error?e.message:"添加失败")}finally{w(!1)}}else _("请填写所有字段")},disabled:v,children:v?"添加中...":"添加并授权"})]})]}):s.jsxs("div",{className:"space-y-3 py-2",children:[I?s.jsx(s.Fragment,{children:o.map(e=>s.jsx(R,{variant:"outline",className:"w-full justify-start gap-3 h-12 text-base",onClick:()=>{(async e=>{d(e),_(null);try{const{id:t}=await T({type:e,label:vo[e]||e}),{url:o}=await E(t);window.open(o,"_blank"),L(),n(!1),r()}catch(t){_(t instanceof Error?t.message:"添加失败"),d(null)}})(e)},disabled:null!==c,children:c===e?"连接中...":`连接 ${vo[e]||e}`},e))}):s.jsx("p",{className:"text-sm text-muted-foreground text-center py-4",children:"暂无内置 OAuth 凭据,请使用手动模式添加"}),O&&s.jsx("p",{className:"text-sm text-destructive",children:O}),s.jsx("div",{className:"pt-2 border-t border-border",children:s.jsxs("button",{onClick:()=>{l(!0),_(null)},className:"flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[s.jsx(Se,{className:"h-3.5 w-3.5"}),"手动填写 OAuth 凭据"]})})]})]})})}const bo={"google-drive":"Google Drive",onedrive:"OneDrive",dropbox:"Dropbox"};function jo({type:e}){switch(e){case"google-drive":return s.jsx(Ne,{className:"h-5 w-5 text-blue-500"});case"onedrive":return s.jsx(je,{className:"h-5 w-5 text-sky-500"});case"dropbox":return s.jsx(Ne,{className:"h-5 w-5 text-indigo-500"});default:return s.jsx(je,{className:"h-5 w-5"})}}function No({provider:e,onDelete:n,onReauth:r}){var o;const[a,i]=t.useState(!1),l=t.useRef(null);t.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]);return s.jsxs(O,{children:[s.jsx(_,{className:"pb-3",children:s.jsxs("div",{className:"flex items-start justify-between",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(jo,{type:e.type}),s.jsxs("div",{children:[s.jsx(L,{className:"text-base",children:e.label}),s.jsx("p",{className:"text-sm text-muted-foreground",children:bo[e.type]||e.type})]})]}),s.jsx(I,{variant:e.authorized?"default":"destructive",className:e.authorized?"bg-green-600 hover:bg-green-700":"",children:e.authorized?"已授权":"未授权"})]})}),s.jsxs(M,{children:[e.authorized&&(null==(o=e.tokens)?void 0:o.expiry)&&s.jsxs("p",{className:"text-xs text-muted-foreground mb-3",children:["授权到期:",new Date(e.tokens.expiry).toLocaleDateString("zh-CN")]}),s.jsxs("div",{className:"flex gap-2",children:[s.jsxs(R,{variant:"outline",size:"sm",onClick:()=>r(e.id),children:[s.jsx(H,{className:"h-3.5 w-3.5 mr-1"}),"重新授权"]}),s.jsxs(R,{variant:a?"destructive":"outline",size:"sm",onClick:()=>{a?(n(e.id),i(!1)):(i(!0),l.current=setTimeout(()=>i(!1),3e3))},children:[s.jsx(W,{className:"h-3.5 w-3.5 mr-1"}),a?"确认删除?":"删除"]})]})]})]})}const So={success:{label:"成功",icon:we,className:"bg-green-600 hover:bg-green-700"},failed:{label:"失败",icon:Ce,className:"bg-red-600 hover:bg-red-700"},partial:{label:"部分完成",icon:ye,className:"bg-yellow-600 hover:bg-yellow-700"}};function Co(e,t){const n=new Date(t).getTime()-new Date(e).getTime();if(n<1e3)return`${n}ms`;const r=Math.floor(n/1e3);if(r<60)return`${r}秒`;return`${Math.floor(r/60)}分${r%60}秒`}function ko({history:e}){const t=e.slice(0,20);return 0===t.length?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-muted-foreground",children:[s.jsx(be,{className:"h-10 w-10 mb-3 opacity-50"}),s.jsx("p",{className:"text-sm",children:"暂无备份记录"})]}):s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("table",{className:"w-full text-sm",children:[s.jsx("thead",{children:s.jsxs("tr",{className:"border-b",children:[s.jsx("th",{className:"text-left py-3 px-2 font-medium text-muted-foreground",children:"时间"}),s.jsx("th",{className:"text-left py-3 px-2 font-medium text-muted-foreground",children:"项目"}),s.jsx("th",{className:"text-left py-3 px-2 font-medium text-muted-foreground",children:"云盘"}),s.jsx("th",{className:"text-left py-3 px-2 font-medium text-muted-foreground",children:"状态"}),s.jsx("th",{className:"text-left py-3 px-2 font-medium text-muted-foreground",children:"文件数"}),s.jsx("th",{className:"text-left py-3 px-2 font-medium text-muted-foreground",children:"耗时"})]})}),s.jsx("tbody",{children:t.map(e=>{const t=So[e.status],n=t.icon;return s.jsxs("tr",{className:"border-b last:border-0 hover:bg-muted/50",children:[s.jsx("td",{className:"py-2.5 px-2 whitespace-nowrap",children:(r=e.startTime,new Date(r).toLocaleString("zh-CN",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}))}),s.jsx("td",{className:"py-2.5 px-2",children:e.projectName}),s.jsx("td",{className:"py-2.5 px-2",children:e.providerLabel}),s.jsxs("td",{className:"py-2.5 px-2",children:[s.jsxs(I,{className:t.className,children:[s.jsx(n,{className:"h-3 w-3 mr-1"}),t.label]}),e.error&&s.jsx("p",{className:"text-xs text-destructive mt-1",children:e.error})]}),s.jsxs("td",{className:"py-2.5 px-2 whitespace-nowrap",children:[e.filesUploaded,"/",e.filesTotal]}),s.jsx("td",{className:"py-2.5 px-2 whitespace-nowrap",children:Co(e.startTime,e.endTime)})]},e.id);var r})})]})})}const Ro=["node_modules",".git","dist","build","*.log",".DS_Store","*.tmp",".venv","__pycache__",".env"],Po=[{value:"30",label:"30分钟"},{value:"60",label:"1小时"},{value:"360",label:"6小时"},{value:"720",label:"12小时"},{value:"1440",label:"24小时"}];function Ao(){const e=z(),[n,r]=t.useState([]),[o,a]=t.useState(!0),[i,l]=t.useState(!1),[c,d]=t.useState({enabled:!1,intervalMinutes:60}),[u,f]=t.useState(!0),[p,h]=t.useState([]),[m,x]=t.useState(!0),[g,y]=t.useState(""),[v,w]=t.useState(!1),[b,j]=t.useState(!1),[N,S]=t.useState([]),[C,k]=t.useState(!0),[D,T]=t.useState(()=>B()),[O,_]=t.useState(!1),[L,I]=t.useState({webhookEnabled:!1}),[M,W]=t.useState(""),[ie,le]=t.useState(!1),[ce,me]=t.useState(()=>V(F.usageMonitorTool,"claude")),xe=async()=>{try{const e=await J();r(e)}catch{}finally{a(!1)}},ye=async()=>{try{const e=await ne();S(e)}catch{}finally{k(!1)}};t.useEffect(()=>{xe(),(async()=>{try{const e=await ee();d(e)}catch{}finally{f(!1)}})(),(async()=>{try{const e=await te();h(e.length>0?e:Ro)}catch{h(Ro)}finally{x(!1)}})(),ye(),$().then(e=>{I(e),W(e.webhookUrl??"")}).catch(()=>{})},[]);const we=(e,t)=>{const n=parseInt(t,10);isNaN(n)||n<1||(T(t=>({...t,[e]:n})),_(!0))},be=async e=>{try{await re(e),r(t=>t.filter(t=>t.id!==e))}catch{}},je=async e=>{try{const{url:t}=await E(e);window.open(t,"_blank")}catch{}},Ne=()=>{const e=g.trim();e&&!p.includes(e)&&(h(t=>[...t,e]),y(""),w(!0))};return s.jsx("div",{className:"min-h-screen bg-background",children:s.jsxs("div",{className:"max-w-4xl mx-auto p-6",children:[s.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[s.jsxs(R,{variant:"ghost",size:"sm",onClick:()=>e("/"),children:[s.jsx(K,{className:"h-4 w-4 mr-1"}),"返回"]}),s.jsx("h1",{className:"text-2xl font-bold",children:"设置"})]}),s.jsxs(de,{defaultValue:"providers",children:[s.jsxs(ue,{className:"mb-4",children:[s.jsx(fe,{value:"providers",children:"云盘账号"}),s.jsx(fe,{value:"strategy",children:"备份策略"}),s.jsx(fe,{value:"history",children:"备份记录"}),s.jsxs(fe,{value:"notifications",children:[s.jsx(ve,{className:"h-3.5 w-3.5 mr-1.5"}),"通知"]}),s.jsxs(fe,{value:"pomodoro",children:[s.jsx(q,{className:"h-3.5 w-3.5 mr-1.5"}),"番茄钟"]}),s.jsxs(fe,{value:"usage",children:[s.jsx(ge,{className:"h-3.5 w-3.5 mr-1.5"}),"用量监控"]})]}),s.jsxs(pe,{value:"providers",children:[s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"flex justify-end",children:s.jsxs(R,{onClick:()=>l(!0),children:[s.jsx(U,{className:"h-4 w-4 mr-1"}),"添加云盘"]})}),o?s.jsx("p",{className:"text-sm text-muted-foreground text-center py-8",children:"加载中..."}):0===n.length?s.jsx("p",{className:"text-sm text-muted-foreground text-center py-12",children:"暂无云盘账号,点击上方按钮添加"}):s.jsx("div",{className:"grid gap-4 sm:grid-cols-2",children:n.map(e=>s.jsx(No,{provider:e,onDelete:be,onReauth:je},e.id))})]}),s.jsx(wo,{open:i,onOpenChange:l,onAdded:()=>{xe()}})]}),s.jsx(pe,{value:"strategy",children:s.jsxs("div",{className:"space-y-8",children:[s.jsxs("div",{className:"space-y-4",children:[s.jsx("h3",{className:"text-lg font-medium",children:"排除规则"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"匹配这些模式的文件和目录将不会被备份"}),m?s.jsx("p",{className:"text-sm text-muted-foreground",children:"加载中..."}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex flex-wrap gap-2",children:s.jsx(X,{children:p.map(e=>s.jsxs(Y.span,{layout:!0,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},className:"inline-flex items-center gap-1 rounded-md bg-muted px-2.5 py-1 text-sm",children:[e,s.jsx("button",{onClick:()=>(e=>{h(t=>t.filter(t=>t!==e)),w(!0)})(e),className:"ml-0.5 rounded-sm hover:bg-muted-foreground/20 p-0.5",children:s.jsx(G,{className:"h-3 w-3"})})]},e))})}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx(A,{placeholder:"输入排除模式,例如 *.log",value:g,onChange:e=>y(e.target.value),onKeyDown:e=>{"Enter"===e.key&&Ne()},className:"max-w-xs"}),s.jsx(R,{variant:"outline",size:"sm",onClick:Ne,children:"添加"})]}),v&&s.jsxs(R,{onClick:async()=>{j(!0);try{await oe(p),w(!1)}catch{}finally{j(!1)}},disabled:b,children:[s.jsx(he,{className:"h-4 w-4 mr-1"}),b?"保存中...":"保存"]})]})]}),s.jsxs("div",{className:"space-y-4",children:[s.jsx("h3",{className:"text-lg font-medium",children:"定时备份"}),u?s.jsx("p",{className:"text-sm text-muted-foreground",children:"加载中..."}):s.jsxs("div",{className:"space-y-4",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsx(We,{checked:c.enabled,onCheckedChange:async e=>{const t=c;d({...c,enabled:e});try{await se({enabled:e})}catch{d(t)}}}),s.jsx(P,{children:c.enabled?"已开启":"已关闭"})]}),s.jsxs("div",{className:"space-y-2",children:[s.jsx(P,{children:"备份间隔"}),s.jsxs(fo,{value:String(c.intervalMinutes),onValueChange:async e=>{const t=parseInt(e,10),n=c;d({...c,intervalMinutes:t});try{await se({intervalMinutes:t})}catch{d(n)}},children:[s.jsx(ho,{className:"w-48",children:s.jsx(po,{})}),s.jsx(go,{children:Po.map(e=>s.jsx(yo,{value:e.value,children:e.label},e.value))})]})]})]})]})]})}),s.jsx(pe,{value:"history",children:s.jsxs("div",{className:"space-y-4",children:[s.jsx("div",{className:"flex justify-end",children:s.jsxs(R,{variant:"outline",size:"sm",onClick:()=>{k(!0),ye()},children:[s.jsx(H,{className:"h-4 w-4 mr-1"}),"刷新"]})}),C?s.jsx("p",{className:"text-sm text-muted-foreground text-center py-8",children:"加载中..."}):s.jsx(ko,{history:N})]})}),s.jsx(pe,{value:"notifications",children:s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"rounded-lg border border-border p-4 space-y-2",children:[s.jsx("h3",{className:"text-sm font-medium",children:"浏览器通知"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"当 Claude 完成任务时,浏览器将自动弹出通知。首次打开 Dashboard 时会请求通知权限。"})]}),s.jsxs("div",{className:"rounded-lg border border-border p-4 space-y-3",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-sm font-medium",children:"Webhook 通知"}),s.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Claude 完成任务时向指定 URL 发送 POST 请求(JSON: event, projectId, projectName, timestamp)"})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(P,{className:"text-xs",children:"Webhook URL"}),s.jsxs("div",{className:"flex gap-2",children:[s.jsx(A,{placeholder:"https://hooks.slack.com/...",value:M,onChange:e=>W(e.target.value),className:"font-mono text-xs"}),s.jsx(R,{size:"sm",onClick:()=>{(async()=>{le(!0);try{const e=await ae({webhookEnabled:M.trim().length>0,webhookUrl:M.trim()||void 0});I(e),Q.success("Webhook 配置已保存")}catch{Q.error("保存失败")}finally{le(!1)}})()},disabled:ie,children:ie?"保存中…":"保存"})]}),L.webhookEnabled&&L.webhookUrl&&s.jsxs("p",{className:"text-xs text-green-500",children:["已启用 → ",L.webhookUrl]})]})]})]})}),s.jsx(pe,{value:"pomodoro",children:s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"rounded-lg border border-border p-4 space-y-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-sm font-medium",children:"番茄钟时间设置"}),s.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"修改后重新启动番茄钟生效"})]}),s.jsxs("div",{className:"grid grid-cols-2 gap-6 max-w-xs",children:[s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(P,{className:"text-xs",children:"工作时长(分钟)"}),s.jsx(A,{type:"number",min:1,max:120,value:D.workMinutes,onChange:e=>we("workMinutes",e.target.value),className:"w-full"})]}),s.jsxs("div",{className:"space-y-1.5",children:[s.jsx(P,{className:"text-xs",children:"休息时长(分钟)"}),s.jsx(A,{type:"number",min:1,max:60,value:D.breakMinutes,onChange:e=>we("breakMinutes",e.target.value),className:"w-full"})]})]}),O&&s.jsxs(R,{size:"sm",onClick:()=>{Z(F.pomodoroConfig,D,!0),_(!1),Q.success("番茄钟设置已保存")},children:[s.jsx(he,{className:"h-3.5 w-3.5 mr-1.5"}),"保存"]})]}),s.jsxs("div",{className:"rounded-lg border border-border p-4 space-y-2",children:[s.jsx("h3",{className:"text-sm font-medium",children:"使用说明"}),s.jsxs("ul",{className:"text-xs text-muted-foreground space-y-1 list-disc list-inside",children:[s.jsxs("li",{children:["在项目页面 Header 点击 ",s.jsx(q,{className:"h-3 w-3 inline-block mx-0.5"})," 图标启动番茄钟"]}),s.jsx("li",{children:"倒计时以大字体悬浮在屏幕上,不影响操作"}),s.jsx("li",{children:"工作阶段结束后自动切换为休息,并弹出通知"}),s.jsx("li",{children:"休息结束后自动切换回工作阶段"}),s.jsx("li",{children:"再次点击图标可停止并重置"})]})]})]})}),s.jsx(pe,{value:"usage",children:s.jsxs("div",{className:"space-y-6",children:[s.jsxs("div",{className:"rounded-lg border border-border p-4 space-y-4",children:[s.jsxs("div",{children:[s.jsx("h3",{className:"text-sm font-medium",children:"监控工具"}),s.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"选择要监控用量的 CLI 工具,首页和项目页会显示对应的实时用量"})]}),s.jsx("div",{className:"grid gap-3 max-w-md",children:[{key:"claude",label:"Claude Code",desc:"Anthropic API — 5h/7d 用量窗口"},{key:"codex",label:"Codex",desc:"OpenAI — 用量查询暂未实现"},{key:"opencode",label:"OpenCode",desc:"OpenCode — 用量查询暂未实现"},{key:"qwen",label:"Qwen Code",desc:"Qwen — 用量查询暂未实现"},{key:"gemini",label:"Gemini CLI",desc:"Google — 用量查询暂未实现"}].map(e=>s.jsxs("label",{className:"flex items-start gap-3 rounded-lg border p-3 cursor-pointer transition-colors "+(ce===e.key?"border-blue-500/50 bg-blue-500/5":"border-border hover:bg-muted/30"),children:[s.jsx("input",{type:"radio",name:"usageTool",value:e.key,checked:ce===e.key,onChange:()=>{me(e.key),Z(F.usageMonitorTool,e.key),window.dispatchEvent(new Event("ccweb:usage-tool-change")),Q.success(`用量监控已切换为 ${e.label}`)},className:"mt-0.5"}),s.jsxs("div",{children:[s.jsx("div",{className:"text-sm font-medium",children:e.label}),s.jsx("div",{className:"text-xs text-muted-foreground",children:e.desc})]})]},e.key))})]}),s.jsxs("div",{className:"rounded-lg border border-border p-4 space-y-2",children:[s.jsx("h3",{className:"text-sm font-medium",children:"说明"}),s.jsxs("ul",{className:"text-xs text-muted-foreground space-y-1 list-disc list-inside",children:[s.jsx("li",{children:"用量数据显示在首页 Header 和项目页底部状态栏"}),s.jsx("li",{children:"Claude Code 通过 OAuth API 实时查询,每 5 分钟自动刷新"}),s.jsx("li",{children:"其他工具的用量查询将在后续版本中支持"}),s.jsx("li",{children:"切换后无需刷新页面,用量会自动更新"})]})]})]})})]})]})})}export{Ao as SettingsPage};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{c as e,r as t,j as n,aJ as r,at as o,R as a,aq as i,aK as s,ar as l,au as c,aH as u,av as d,as as f,d as p}from"./index-Dn-YLcfD.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v0.309.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/const m=e("Save",[["path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z",key:"1owoqh"}],["polyline",{points:"17 21 17 13 7 13 7 21",key:"1md35c"}],["polyline",{points:"7 3 7 8 15 8",key:"8nz8an"}]]);function v(e){const r=b(e),o=t.forwardRef((e,o)=>{const{children:a,...i}=e,s=t.Children.toArray(a),l=s.find(h);if(l){const e=l.props.children,a=s.map(n=>n===l?t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null:n);return n.jsx(r,{...i,ref:o,children:t.isValidElement(e)?t.cloneElement(e,void 0,a):null})}return n.jsx(r,{...i,ref:o,children:a})});return o.displayName=`${e}.Slot`,o}function b(e){const n=t.forwardRef((e,n)=>{const{children:o,...a}=e;if(t.isValidElement(o)){const e=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;if(o)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o)return e.props.ref;return e.props.ref||e.ref}(o),i=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(a,o.props);return o.type!==t.Fragment&&(i.ref=n?r(n,e):e),t.cloneElement(o,i)}return t.Children.count(o)>1?t.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var y=Symbol("radix.slottable");function h(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===y}function g(e){const t=e+"CollectionProvider",[r,s]=o(t),[l,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),u=e=>{const{scope:t,children:r}=e,o=a.useRef(null),i=a.useRef(new Map).current;return n.jsx(l,{scope:t,itemMap:i,collectionRef:o,children:r})};u.displayName=t;const d=e+"CollectionSlot",f=v(d),p=a.forwardRef((e,t)=>{const{scope:r,children:o}=e,a=c(d,r),s=i(t,a.collectionRef);return n.jsx(f,{ref:s,children:o})});p.displayName=d;const m=e+"CollectionItemSlot",b="data-radix-collection-item",y=v(m),h=a.forwardRef((e,t)=>{const{scope:r,children:o,...s}=e,l=a.useRef(null),u=i(t,l),d=c(m,r);return a.useEffect(()=>(d.itemMap.set(l,{ref:l,...s}),()=>{d.itemMap.delete(l)})),n.jsx(y,{[b]:"",ref:u,children:o})});return h.displayName=m,[{Provider:u,Slot:p,ItemSlot:h},function(t){const n=c(e+"CollectionConsumer",t);return a.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${b}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},s]}var w=t.createContext(void 0);function x(e){const n=t.useContext(w);return e||n||"ltr"}var R="rovingFocusGroup.onEntryFocus",C={bubbles:!1,cancelable:!0},j="RovingFocusGroup",[I,S,F]=g(j),[T,N]=o(j,[F]),[A,E]=T(j),M=t.forwardRef((e,t)=>n.jsx(I.Provider,{scope:e.__scopeRovingFocusGroup,children:n.jsx(I.Slot,{scope:e.__scopeRovingFocusGroup,children:n.jsx(_,{...e,ref:t})})}));M.displayName=j;var _=t.forwardRef((e,r)=>{const{__scopeRovingFocusGroup:o,orientation:a,loop:s=!1,dir:f,currentTabStopId:p,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:v,onEntryFocus:b,preventScrollOnEntryFocus:y=!1,...h}=e,g=t.useRef(null),w=i(r,g),I=x(f),[F,T]=u({prop:p,defaultProp:m??null,onChange:v,caller:j}),[N,E]=t.useState(!1),M=d(b),_=S(o),D=t.useRef(!1),[k,K]=t.useState(0);return t.useEffect(()=>{const e=g.current;if(e)return e.addEventListener(R,M),()=>e.removeEventListener(R,M)},[M]),n.jsx(A,{scope:o,orientation:a,dir:I,loop:s,currentTabStopId:F,onItemFocus:t.useCallback(e=>T(e),[T]),onItemShiftTab:t.useCallback(()=>E(!0),[]),onFocusableItemAdd:t.useCallback(()=>K(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>K(e=>e-1),[]),children:n.jsx(l.div,{tabIndex:N||0===k?-1:0,"data-orientation":a,...h,ref:w,style:{outline:"none",...e.style},onMouseDown:c(e.onMouseDown,()=>{D.current=!0}),onFocus:c(e.onFocus,e=>{const t=!D.current;if(e.target===e.currentTarget&&t&&!N){const t=new CustomEvent(R,C);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=_().filter(e=>e.focusable);V([e.find(e=>e.active),e.find(e=>e.id===F),...e].filter(Boolean).map(e=>e.ref.current),y)}}D.current=!1}),onBlur:c(e.onBlur,()=>E(!1))})})}),D="RovingFocusGroupItem",k=t.forwardRef((e,r)=>{const{__scopeRovingFocusGroup:o,focusable:a=!0,active:i=!1,tabStopId:u,children:d,...f}=e,p=s(),m=u||p,v=E(D,o),b=v.currentTabStopId===m,y=S(o),{onFocusableItemAdd:h,onFocusableItemRemove:g,currentTabStopId:w}=v;return t.useEffect(()=>{if(a)return h(),()=>g()},[a,h,g]),n.jsx(I.ItemSlot,{scope:o,id:m,focusable:a,active:i,children:n.jsx(l.span,{tabIndex:b?0:-1,"data-orientation":v.orientation,...f,ref:r,onMouseDown:c(e.onMouseDown,e=>{a?v.onItemFocus(m):e.preventDefault()}),onFocus:c(e.onFocus,()=>v.onItemFocus(m)),onKeyDown:c(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void v.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:K[r]}(e,v.orientation,v.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=y().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const a=o.indexOf(e.currentTarget);o=v.loop?(r=a+1,(n=o).map((e,t)=>n[(r+t)%n.length])):o.slice(a+1)}setTimeout(()=>V(o))}var n,r}),children:"function"==typeof d?d({isCurrentTabStop:b,hasTabStop:null!=w}):d})})});k.displayName=D;var K={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function V(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var P=M,O=k,G="Tabs",[L]=o(G,[N]),$=N(),[q,z]=L(G),B=t.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,onValueChange:a,defaultValue:i,orientation:c="horizontal",dir:d,activationMode:f="automatic",...p}=e,m=x(d),[v,b]=u({prop:o,onChange:a,defaultProp:i??"",caller:G});return n.jsx(q,{scope:r,baseId:s(),value:v,onValueChange:b,orientation:c,dir:m,activationMode:f,children:n.jsx(l.div,{dir:m,"data-orientation":c,...p,ref:t})})});B.displayName=G;var W="TabsList",H=t.forwardRef((e,t)=>{const{__scopeTabs:r,loop:o=!0,...a}=e,i=z(W,r),s=$(r);return n.jsx(P,{asChild:!0,...s,orientation:i.orientation,dir:i.dir,loop:o,children:n.jsx(l.div,{role:"tablist","aria-orientation":i.orientation,...a,ref:t})})});H.displayName=W;var U="TabsTrigger",J=t.forwardRef((e,t)=>{const{__scopeTabs:r,value:o,disabled:a=!1,...i}=e,s=z(U,r),u=$(r),d=X(s.baseId,o),f=Y(s.baseId,o),p=o===s.value;return n.jsx(O,{asChild:!0,...u,focusable:!a,active:p,children:n.jsx(l.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":f,"data-state":p?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:d,...i,ref:t,onMouseDown:c(e.onMouseDown,e=>{a||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(o)}),onKeyDown:c(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(o)}),onFocus:c(e.onFocus,()=>{const e="manual"!==s.activationMode;p||a||!e||s.onValueChange(o)})})})});J.displayName=U;var Z="TabsContent",Q=t.forwardRef((e,r)=>{const{__scopeTabs:o,value:a,forceMount:i,children:s,...c}=e,u=z(Z,o),d=X(u.baseId,a),p=Y(u.baseId,a),m=a===u.value,v=t.useRef(m);return t.useEffect(()=>{const e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),n.jsx(f,{present:i||m,children:({present:t})=>n.jsx(l.div,{"data-state":m?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":d,hidden:!t,id:p,tabIndex:0,...c,ref:r,style:{...e.style,animationDuration:v.current?"0s":void 0},children:t&&s})})});function X(e,t){return`${e}-trigger-${t}`}function Y(e,t){return`${e}-content-${t}`}Q.displayName=Z;var ee=H,te=J,ne=Q;const re=B,oe=t.forwardRef(({className:e,...t},r)=>n.jsx(ee,{ref:r,className:p("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));oe.displayName=ee.displayName;const ae=t.forwardRef(({className:e,...t},r)=>n.jsx(te,{ref:r,className:p("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));ae.displayName=te.displayName;const ie=t.forwardRef(({className:e,...t},r)=>n.jsx(ne,{ref:r,className:p("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));function se(e,[t,n]){return Math.min(n,Math.max(t,e))}ie.displayName=ne.displayName;export{m as S,re as T,oe as a,ae as b,ie as c,se as d,g as e,x as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background: 0 0% 100%;--foreground: 240 10% 3.9%;--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--primary: 240 5.9% 10%;--primary-foreground: 0 0% 98%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--ring: 240 5.9% 10%;--radius: .5rem;--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%}.dark{--background: 240 10% 3.9%;--foreground: 0 0% 98%;--card: 240 10% 3.9%;--card-foreground: 0 0% 98%;--popover: 240 10% 3.9%;--popover-foreground: 0 0% 98%;--primary: 0 0% 98%;--primary-foreground: 240 5.9% 10%;--secondary: 240 3.7% 15.9%;--secondary-foreground: 0 0% 98%;--muted: 240 3.7% 15.9%;--muted-foreground: 240 5% 64.9%;--accent: 240 3.7% 15.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--border: 240 3.7% 15.9%;--input: 240 3.7% 15.9%;--ring: 240 4.9% 83.9%;--chart-1: 220 70% 50%;--chart-2: 160 60% 45%;--chart-3: 30 80% 55%;--chart-4: 280 65% 60%;--chart-5: 340 75% 55%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: rgb(17 24 39 / 10%);--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: rgb(255 255 255 / 10%);--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.-bottom-0\.5{bottom:-.125rem}.bottom-0{bottom:0}.bottom-7{bottom:1.75rem}.left-0{left:0}.left-1\/2{left:50%}.left-2{left:.5rem}.left-2\.5{left:.625rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-1\.5{right:.375rem}.right-2{right:.5rem}.right-2\.5{right:.625rem}.right-4{right:1rem}.top-0{top:0}.top-1{top:.25rem}.top-1\.5{top:.375rem}.top-1\/2{top:50%}.top-14{top:3.5rem}.top-2{top:.5rem}.top-2\.5{top:.625rem}.top-4{top:1rem}.top-\[50\%\]{top:50%}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-0\.5{margin-left:.125rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mr-auto{margin-right:auto}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.line-clamp-6{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[24px\]{height:24px}.h-\[60vh\]{height:60vh}.h-\[80vh\]{height:80vh}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-32{max-height:8rem}.max-h-40{max-height:10rem}.max-h-48{max-height:12rem}.max-h-64{max-height:16rem}.max-h-96{max-height:24rem}.max-h-\[200px\]{max-height:200px}.max-h-\[80vh\]{max-height:80vh}.max-h-\[85vh\]{max-height:85vh}.max-h-full{max-height:100%}.min-h-0{min-height:0px}.min-h-\[12px\]{min-height:12px}.min-h-\[200px\]{min-height:200px}.min-h-\[5\.25rem\]{min-height:5.25rem}.min-h-\[80px\]{min-height:80px}.min-h-full{min-height:100%}.min-h-screen{min-height:100vh}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-\[1px\]{width:1px}.w-\[44px\]{width:44px}.w-\[700px\]{width:700px}.w-\[72vw\]{width:72vw}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.min-w-0{min-width:0px}.min-w-\[120px\]{min-width:120px}.min-w-\[140px\]{min-width:140px}.min-w-\[36px\]{min-width:36px}.min-w-\[80px\]{min-width:80px}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-4xl{max-width:56rem}.max-w-6xl{max-width:72rem}.max-w-\[85\%\]{max-width:85%}.max-w-\[90\%\]{max-width:90%}.max-w-\[95vw\]{max-width:95vw}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-se-resize{cursor:se-resize}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-text{-webkit-user-select:text;-moz-user-select:text;user-select:text}.resize-none{resize:none}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-bl-md{border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-bl-sm{border-bottom-left-radius:calc(var(--radius) - 4px)}.rounded-br-md{border-bottom-right-radius:calc(var(--radius) - 2px)}.rounded-br-sm{border-bottom-right-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-amber-500\/40{border-color:#f59e0b66}.border-black\/10{border-color:#0000001a}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-blue-500\/15{border-color:#3b82f626}.border-blue-500\/20{border-color:#3b82f633}.border-blue-500\/25{border-color:#3b82f640}.border-blue-500\/40{border-color:#3b82f666}.border-blue-500\/50{border-color:#3b82f680}.border-border{border-color:hsl(var(--border))}.border-border\/50{border-color:hsl(var(--border) / .5)}.border-destructive{border-color:hsl(var(--destructive))}.border-emerald-500\/40{border-color:#10b98166}.border-green-500\/20{border-color:#22c55e33}.border-input{border-color:hsl(var(--input))}.border-muted-foreground\/30{border-color:hsl(var(--muted-foreground) / .3)}.border-primary{border-color:hsl(var(--primary))}.border-red-500\/40{border-color:#ef444466}.border-red-500\/50{border-color:#ef444480}.border-transparent{border-color:transparent}.border-yellow-500\/20{border-color:#eab30833}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-accent\/30{background-color:hsl(var(--accent) / .3)}.bg-amber-500\/10{background-color:#f59e0b1a}.bg-background{background-color:hsl(var(--background))}.bg-background\/50{background-color:hsl(var(--background) / .5)}.bg-background\/55{background-color:hsl(var(--background) / .55)}.bg-background\/60{background-color:hsl(var(--background) / .6)}.bg-background\/95{background-color:hsl(var(--background) / .95)}.bg-black\/5{background-color:#0000000d}.bg-black\/60{background-color:#0009}.bg-black\/80{background-color:#000c}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity, 1))}.bg-blue-500\/10{background-color:#3b82f61a}.bg-blue-500\/15{background-color:#3b82f626}.bg-blue-500\/20{background-color:#3b82f633}.bg-blue-500\/5{background-color:#3b82f60d}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-green-400\/5{background-color:#4ade800d}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-green-500\/10{background-color:#22c55e1a}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted-foreground{background-color:hsl(var(--muted-foreground))}.bg-muted-foreground\/40{background-color:hsl(var(--muted-foreground) / .4)}.bg-muted\/20{background-color:hsl(var(--muted) / .2)}.bg-muted\/30{background-color:hsl(var(--muted) / .3)}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/40{background-color:hsl(var(--primary) / .4)}.bg-primary\/5{background-color:hsl(var(--primary) / .05)}.bg-purple-400{--tw-bg-opacity: 1;background-color:rgb(192 132 252 / var(--tw-bg-opacity, 1))}.bg-red-400\/5{background-color:#f871710d}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-500\/10{background-color:#ef44441a}.bg-red-500\/20{background-color:#ef444433}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(250 204 21 / var(--tw-bg-opacity, 1))}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.bg-yellow-500\/10{background-color:#eab3081a}.bg-yellow-600{--tw-bg-opacity: 1;background-color:rgb(202 138 4 / var(--tw-bg-opacity, 1))}.bg-zinc-400{--tw-bg-opacity: 1;background-color:rgb(161 161 170 / var(--tw-bg-opacity, 1))}.fill-foreground{fill:hsl(var(--foreground))}.fill-muted-foreground\/60{fill:hsl(var(--muted-foreground) / .6)}.stroke-muted-foreground\/40{stroke:hsl(var(--muted-foreground) / .4)}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-\[1px\]{padding:1px}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\[3px\]{padding-top:3px;padding-bottom:3px}.py-px{padding-top:1px;padding-bottom:1px}.pb-0\.5{padding-bottom:.125rem}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-\[env\(safe-area-inset-bottom\)\]{padding-bottom:env(safe-area-inset-bottom)}.pl-8{padding-left:2rem}.pr-10{padding-right:2.5rem}.pr-14{padding-right:3.5rem}.pr-2{padding-right:.5rem}.pr-6{padding-right:1.5rem}.pr-7{padding-right:1.75rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[9px\]{font-size:9px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.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)}.leading-7{line-height:1.75rem}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-blue-400\/80{color:#60a5facc}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-900{--tw-text-opacity: 1;color:rgb(30 58 138 / var(--tw-text-opacity, 1))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/90{color:hsl(var(--foreground) / .9)}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity, 1))}.text-inherit{color:inherit}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-muted-foreground\/30{color:hsl(var(--muted-foreground) / .3)}.text-muted-foreground\/40{color:hsl(var(--muted-foreground) / .4)}.text-muted-foreground\/50{color:hsl(var(--muted-foreground) / .5)}.text-muted-foreground\/60{color:hsl(var(--muted-foreground) / .6)}.text-muted-foreground\/70{color:hsl(var(--muted-foreground) / .7)}.text-muted-foreground\/80{color:hsl(var(--muted-foreground) / .8)}.text-orange-400{--tw-text-opacity: 1;color:rgb(251 146 60 / var(--tw-text-opacity, 1))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-red-400\/70{color:#f87171b3}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-sky-400{--tw-text-opacity: 1;color:rgb(56 189 248 / var(--tw-text-opacity, 1))}.text-sky-500{--tw-text-opacity: 1;color:rgb(14 165 233 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity, 1))}.underline-offset-4{text-underline-offset:4px}.accent-primary{accent-color:hsl(var(--primary))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-accent{--tw-ring-color: hsl(var(--accent))}.ring-blue-500\/50{--tw-ring-color: rgb(59 130 246 / .5)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.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-md{--tw-backdrop-blur: blur(12px);-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)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:hsl(var(--border));border-radius:9999px;border:1px solid transparent;background-clip:content-box}::-webkit-scrollbar-thumb:hover{background:hsl(var(--muted-foreground) / .4);background-clip:content-box}::-webkit-scrollbar-corner{background:transparent}*{scrollbar-width:thin;scrollbar-color:hsl(var(--border)) transparent}@keyframes indeterminate{0%{transform:translate(-100%);width:40%}50%{transform:translate(100%);width:60%}to{transform:translate(-100%);width:40%}}@keyframes gradient-spin{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.card-active-glow{background:linear-gradient(270deg,#3b82f6,#8b5cf6,#ec4899,#f59e0b,#10b981,#3b82f6);background-size:400% 400%;animation:gradient-spin 2.5s ease infinite;padding:2px;border-radius:calc(var(--radius) + 2px)}.card-active-glow>*{background:linear-gradient(270deg,#dbeafe,#ede9fe,#fce7f3,#fef3c7,#d1fae5,#dbeafe);background-size:400% 400%;animation:gradient-spin 2.5s ease infinite;border-radius:var(--radius);overflow:hidden}.dark .card-active-glow>*{background:linear-gradient(270deg,#1e293b,#1e1b4b,#2d1b3d,#2d2305,#0d2818,#1e293b);background-size:400% 400%;animation:gradient-spin 2.5s ease infinite;border-radius:var(--radius);overflow:hidden}.dark\:prose-invert:is(.dark *){--tw-prose-body: var(--tw-prose-invert-body);--tw-prose-headings: var(--tw-prose-invert-headings);--tw-prose-lead: var(--tw-prose-invert-lead);--tw-prose-links: var(--tw-prose-invert-links);--tw-prose-bold: var(--tw-prose-invert-bold);--tw-prose-counters: var(--tw-prose-invert-counters);--tw-prose-bullets: var(--tw-prose-invert-bullets);--tw-prose-hr: var(--tw-prose-invert-hr);--tw-prose-quotes: var(--tw-prose-invert-quotes);--tw-prose-quote-borders: var(--tw-prose-invert-quote-borders);--tw-prose-captions: var(--tw-prose-invert-captions);--tw-prose-kbd: var(--tw-prose-invert-kbd);--tw-prose-kbd-shadows: var(--tw-prose-invert-kbd-shadows);--tw-prose-code: var(--tw-prose-invert-code);--tw-prose-pre-code: var(--tw-prose-invert-pre-code);--tw-prose-pre-bg: var(--tw-prose-invert-pre-bg);--tw-prose-th-borders: var(--tw-prose-invert-th-borders);--tw-prose-td-borders: var(--tw-prose-invert-td-borders)}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground\/40::-moz-placeholder{color:hsl(var(--muted-foreground) / .4)}.placeholder\:text-muted-foreground\/40::placeholder{color:hsl(var(--muted-foreground) / .4)}.placeholder\:text-muted-foreground\/50::-moz-placeholder{color:hsl(var(--muted-foreground) / .5)}.placeholder\:text-muted-foreground\/50::placeholder{color:hsl(var(--muted-foreground) / .5)}.last\:border-0:last-child{border-width:0px}.hover\:border-border\/80:hover{border-color:hsl(var(--border) / .8)}.hover\:border-muted-foreground\/30:hover{border-color:hsl(var(--muted-foreground) / .3)}.hover\:border-muted-foreground\/40:hover{border-color:hsl(var(--muted-foreground) / .4)}.hover\:border-transparent:hover{border-color:transparent}.hover\:border-zinc-400:hover{--tw-border-opacity: 1;border-color:rgb(161 161 170 / var(--tw-border-opacity, 1))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-black\/10:hover{background-color:#0000001a}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-500\/15:hover{background-color:#3b82f626}.hover\:bg-blue-500\/20:hover{background-color:#3b82f633}.hover\:bg-blue-500\/60:hover{background-color:#3b82f699}.hover\:bg-destructive\/10:hover{background-color:hsl(var(--destructive) / .1)}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-emerald-500\/10:hover{background-color:#10b9811a}.hover\:bg-green-500\/20:hover{background-color:#22c55e33}.hover\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:rgb(21 128 61 / var(--tw-bg-opacity, 1))}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted-foreground\/20:hover{background-color:hsl(var(--muted-foreground) / .2)}.hover\:bg-muted\/30:hover{background-color:hsl(var(--muted) / .3)}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-muted\/80:hover{background-color:hsl(var(--muted) / .8)}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-red-500\/10:hover{background-color:#ef44441a}.hover\:bg-red-500\/20:hover{background-color:#ef444433}.hover\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity, 1))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:bg-white\/10:hover{background-color:#ffffff1a}.hover\:bg-yellow-700:hover{--tw-bg-opacity: 1;background-color:rgb(161 98 7 / var(--tw-bg-opacity, 1))}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-blue-300:hover{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.hover\:text-blue-400:hover{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.hover\:text-destructive:hover{color:hsl(var(--destructive))}.hover\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-green-400:hover{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.hover\:text-red-400:hover{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:opacity-80:hover{opacity:.8}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:border-border:focus{border-color:hsl(var(--border))}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:bg-muted:focus{background-color:hsl(var(--muted))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-0:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}.active\:cursor-grabbing:active{cursor:grabbing}.active\:bg-accent:active{background-color:hsl(var(--accent))}.active\:bg-blue-500\/10:active{background-color:#3b82f61a}.active\:bg-blue-500\/80:active{background-color:#3b82f6cc}.active\:text-blue-400:active{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.active\:text-foreground:active{color:hsl(var(--foreground))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-30:disabled{opacity:.3}.disabled\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\:opacity-100{opacity:1}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[state\=inactive\]\:hidden[data-state=inactive]{display:none}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-5[data-state=checked]{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.prose-code\:text-foreground :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-pre\:border :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){border-width:1px}.prose-pre\:border-border :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){border-color:hsl(var(--border))}.prose-pre\:bg-muted :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){background-color:hsl(var(--muted))}.dark\:border-blue-500\/25:is(.dark *){border-color:#3b82f640}.dark\:border-white\/15:is(.dark *){border-color:#ffffff26}.dark\:bg-blue-500\/20:is(.dark *){background-color:#3b82f633}.dark\:bg-blue-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.dark\:bg-white\/10:is(.dark *){background-color:#ffffff1a}.dark\:text-amber-300:is(.dark *){--tw-text-opacity: 1;color:rgb(252 211 77 / var(--tw-text-opacity, 1))}.dark\:text-blue-300:is(.dark *){--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.dark\:text-emerald-400:is(.dark *){--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:hover\:bg-white\/20:hover:is(.dark *){background-color:#fff3}@media (min-width: 640px){.sm\:inline{display:inline}.sm\:max-w-2xl{max-width:42rem}.sm\:max-w-lg{max-width:32rem}.sm\:max-w-md{max-width:28rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:justify-between{justify-content:space-between}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}}@media (min-width: 1024px){.lg\:block{display:block}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.\[\&\>div\]\:\!block>div{display:block!important}.\[\&\>div\]\:\!w-full>div{width:100%!important}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&_a\]\:text-blue-400 a{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.\[\&_code\]\:rounded code{border-radius:.25rem}.\[\&_code\]\:px-1 code{padding-left:.25rem;padding-right:.25rem}.\[\&_code\]\:text-xs code{font-size:.75rem;line-height:1rem}.\[\&_h1\]\:text-base h1{font-size:1rem;line-height:1.5rem}.\[\&_h2\]\:text-sm h2,.\[\&_h3\]\:text-sm h3{font-size:.875rem;line-height:1.25rem}.\[\&_hr\]\:my-2 hr{margin-top:.5rem;margin-bottom:.5rem}.\[\&_ol\]\:my-1 ol,.\[\&_p\]\:my-1 p,.\[\&_pre\]\:my-1 pre{margin-top:.25rem;margin-bottom:.25rem}.\[\&_pre\]\:max-w-full pre{max-width:100%}.\[\&_pre\]\:overflow-x-auto pre{overflow-x:auto}.\[\&_pre\]\:rounded pre{border-radius:.25rem}.\[\&_pre\]\:p-2 pre{padding:.5rem}.\[\&_pre\]\:text-xs pre,.\[\&_table\]\:text-xs table{font-size:.75rem;line-height:1rem}.\[\&_ul\]\:my-1 ul{margin-top:.25rem;margin-bottom:.25rem}
|