profclaw 2.0.0 → 2.3.0
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/.env.example +14 -2
- package/CHANGELOG.md +37 -0
- package/CONTRIBUTING.md +20 -0
- package/Dockerfile +39 -23
- package/README.md +174 -40
- package/dist/agents/agent-summary.d.ts +44 -0
- package/dist/agents/agent-summary.js +176 -0
- package/dist/agents/auto-memory.d.ts +59 -0
- package/dist/agents/auto-memory.js +310 -0
- package/dist/agents/checkpoint-manager.d.ts +76 -0
- package/dist/agents/checkpoint-manager.js +156 -0
- package/dist/agents/circuit-breaker.d.ts +54 -0
- package/dist/agents/circuit-breaker.js +153 -0
- package/dist/agents/context-compactor.d.ts +70 -0
- package/dist/agents/context-compactor.js +361 -0
- package/dist/agents/conversation-branch.d.ts +55 -0
- package/dist/agents/conversation-branch.js +115 -0
- package/dist/agents/error-recovery.d.ts +44 -0
- package/dist/agents/error-recovery.js +197 -0
- package/dist/agents/events.d.ts +76 -0
- package/dist/agents/events.js +8 -0
- package/dist/agents/executor.d.ts +35 -1
- package/dist/agents/executor.js +573 -124
- package/dist/agents/file-snapshots.d.ts +72 -0
- package/dist/agents/file-snapshots.js +182 -0
- package/dist/agents/index.d.ts +2 -0
- package/dist/agents/orchestrator.d.ts +183 -0
- package/dist/agents/orchestrator.js +495 -0
- package/dist/agents/permissions.d.ts +63 -0
- package/dist/agents/permissions.js +138 -0
- package/dist/agents/plan-mode.d.ts +71 -0
- package/dist/agents/plan-mode.js +186 -0
- package/dist/agents/prompt-suggestions.d.ts +33 -0
- package/dist/agents/prompt-suggestions.js +208 -0
- package/dist/agents/rate-limit-monitor.d.ts +56 -0
- package/dist/agents/rate-limit-monitor.js +224 -0
- package/dist/agents/result-store.d.ts +37 -0
- package/dist/agents/result-store.js +104 -0
- package/dist/agents/session-diff.d.ts +43 -0
- package/dist/agents/session-diff.js +258 -0
- package/dist/agents/tool-loader.d.ts +65 -0
- package/dist/agents/tool-loader.js +273 -0
- package/dist/agents/transcript.d.ts +96 -0
- package/dist/agents/transcript.js +267 -0
- package/dist/agents/worktree-manager.d.ts +80 -0
- package/dist/agents/worktree-manager.js +203 -0
- package/dist/auth/middleware.js +14 -0
- package/dist/chat/agentic-executor.d.ts +7 -0
- package/dist/chat/agentic-executor.js +253 -30
- package/dist/chat/conversations.d.ts +2 -0
- package/dist/chat/conversations.js +8 -0
- package/dist/chat/execution/executor.d.ts +8 -0
- package/dist/chat/execution/executor.js +157 -103
- package/dist/chat/execution/index.js +5 -1
- package/dist/chat/execution/tool-router.js +40 -14
- package/dist/chat/execution/tools/canvas.d.ts +2 -2
- package/dist/chat/execution/tools/code-tools.d.ts +66 -0
- package/dist/chat/execution/tools/code-tools.js +353 -0
- package/dist/chat/execution/tools/complete-task.d.ts +2 -2
- package/dist/chat/execution/tools/cron-tool.d.ts +26 -10
- package/dist/chat/execution/tools/cron-tool.js +48 -3
- package/dist/chat/execution/tools/decompose-task.d.ts +58 -0
- package/dist/chat/execution/tools/decompose-task.js +166 -0
- package/dist/chat/execution/tools/exec.d.ts +5 -2
- package/dist/chat/execution/tools/exec.js +294 -155
- package/dist/chat/execution/tools/feed-tools.d.ts +77 -0
- package/dist/chat/execution/tools/feed-tools.js +142 -0
- package/dist/chat/execution/tools/file-ops.d.ts +1 -1
- package/dist/chat/execution/tools/github.d.ts +2 -2
- package/dist/chat/execution/tools/index.d.ts +14 -2
- package/dist/chat/execution/tools/index.js +86 -12
- package/dist/chat/execution/tools/integrations.d.ts +8 -8
- package/dist/chat/execution/tools/multi-patch.d.ts +53 -0
- package/dist/chat/execution/tools/multi-patch.js +373 -0
- package/dist/chat/execution/tools/openai-image-gen.d.ts +2 -2
- package/dist/chat/execution/tools/plan-tools.d.ts +80 -0
- package/dist/chat/execution/tools/plan-tools.js +134 -0
- package/dist/chat/execution/tools/profclaw-ops.d.ts +6 -6
- package/dist/chat/execution/tools/repl-tool.d.ts +46 -0
- package/dist/chat/execution/tools/repl-tool.js +207 -0
- package/dist/chat/execution/tools/sessions-send.d.ts +2 -2
- package/dist/chat/execution/tools/slack-actions.d.ts +2 -2
- package/dist/chat/execution/tools/system.d.ts +4 -4
- package/dist/chat/execution/tools/todo-tool.d.ts +72 -0
- package/dist/chat/execution/tools/todo-tool.js +152 -0
- package/dist/chat/execution/tools/tool-search.d.ts +50 -0
- package/dist/chat/execution/tools/tool-search.js +155 -0
- package/dist/chat/execution/types.d.ts +21 -14
- package/dist/chat/execution/workflows/executor.d.ts +11 -0
- package/dist/chat/execution/workflows/executor.js +99 -1
- package/dist/chat/execution/workflows/types.d.ts +35 -2
- package/dist/chat/format/index.d.ts +1 -0
- package/dist/chat/format/index.js +1 -0
- package/dist/chat/format/markdown-convert.d.ts +23 -0
- package/dist/chat/format/markdown-convert.js +149 -0
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat/index.js +1 -1
- package/dist/chat/message-handler.js +58 -6
- package/dist/chat/proactive/index.d.ts +62 -0
- package/dist/chat/proactive/index.js +147 -0
- package/dist/chat/prompt-adapter.js +2 -0
- package/dist/chat/providers/irc/index.d.ts +2 -2
- package/dist/chat/providers/telegram/index.d.ts +2 -0
- package/dist/chat/providers/telegram/index.js +21 -2
- package/dist/chat/system-prompts.d.ts +3 -3
- package/dist/chat/system-prompts.js +116 -61
- package/dist/chat/tools.d.ts +6 -6
- package/dist/cli/commands/auth.js +64 -1
- package/dist/cli/commands/chat.js +1327 -138
- package/dist/cli/commands/doctor.js +222 -16
- package/dist/cli/commands/history.d.ts +3 -0
- package/dist/cli/commands/history.js +138 -0
- package/dist/cli/commands/import.d.ts +44 -0
- package/dist/cli/commands/import.js +526 -0
- package/dist/cli/commands/init.d.ts +13 -0
- package/dist/cli/commands/init.js +381 -0
- package/dist/cli/commands/onboard.js +210 -30
- package/dist/cli/commands/plan.d.ts +13 -0
- package/dist/cli/commands/plan.js +184 -0
- package/dist/cli/commands/serve.d.ts +7 -0
- package/dist/cli/commands/serve.js +77 -18
- package/dist/cli/commands/setup.js +84 -3
- package/dist/cli/commands/status.js +54 -0
- package/dist/cli/commands/tools.js +13 -13
- package/dist/cli/commands/tui.js +26 -1
- package/dist/cli/index.js +19 -0
- package/dist/cli/ink/App.d.ts +13 -0
- package/dist/cli/ink/App.js +6 -0
- package/dist/cli/ink/ChatApp.d.ts +60 -0
- package/dist/cli/ink/ChatApp.js +325 -0
- package/dist/cli/ink/DashboardApp.d.ts +3 -0
- package/dist/cli/ink/DashboardApp.js +143 -0
- package/dist/cli/ink/components/AgentStatus.d.ts +17 -0
- package/dist/cli/ink/components/AgentStatus.js +33 -0
- package/dist/cli/ink/components/ChannelList.d.ts +17 -0
- package/dist/cli/ink/components/ChannelList.js +33 -0
- package/dist/cli/ink/components/ConnectionStatus.d.ts +19 -0
- package/dist/cli/ink/components/ConnectionStatus.js +50 -0
- package/dist/cli/ink/components/CostBar.d.ts +19 -0
- package/dist/cli/ink/components/CostBar.js +35 -0
- package/dist/cli/ink/components/HookStatus.d.ts +15 -0
- package/dist/cli/ink/components/HookStatus.js +7 -0
- package/dist/cli/ink/components/PermissionPrompt.d.ts +21 -0
- package/dist/cli/ink/components/PermissionPrompt.js +51 -0
- package/dist/cli/ink/components/PlanView.d.ts +23 -0
- package/dist/cli/ink/components/PlanView.js +26 -0
- package/dist/cli/ink/components/ProviderList.d.ts +16 -0
- package/dist/cli/ink/components/ProviderList.js +16 -0
- package/dist/cli/ink/components/SessionHeader.d.ts +15 -0
- package/dist/cli/ink/components/SessionHeader.js +15 -0
- package/dist/cli/ink/components/StreamingMessage.d.ts +20 -0
- package/dist/cli/ink/components/StreamingMessage.js +27 -0
- package/dist/cli/ink/components/SuggestionBar.d.ts +15 -0
- package/dist/cli/ink/components/SuggestionBar.js +28 -0
- package/dist/cli/ink/components/SystemHealth.d.ts +20 -0
- package/dist/cli/ink/components/SystemHealth.js +39 -0
- package/dist/cli/ink/components/TaskList.d.ts +17 -0
- package/dist/cli/ink/components/TaskList.js +59 -0
- package/dist/cli/ink/components/ToolCall.d.ts +17 -0
- package/dist/cli/ink/components/ToolCall.js +43 -0
- package/dist/cli/ink/index.d.ts +23 -0
- package/dist/cli/ink/index.js +15 -0
- package/dist/cli/ink/keybindings.d.ts +35 -0
- package/dist/cli/ink/keybindings.js +105 -0
- package/dist/cli/ink/markdown-renderer.d.ts +47 -0
- package/dist/cli/ink/markdown-renderer.js +380 -0
- package/dist/cli/ink/output-styles.d.ts +39 -0
- package/dist/cli/ink/output-styles.js +119 -0
- package/dist/cli/interactive/auto-serve.d.ts +38 -0
- package/dist/cli/interactive/auto-serve.js +209 -0
- package/dist/cli/interactive/index.d.ts +25 -0
- package/dist/cli/interactive/index.js +23 -0
- package/dist/cli/interactive/picker.d.ts +28 -0
- package/dist/cli/interactive/picker.js +153 -0
- package/dist/cli/interactive/renderer.d.ts +26 -0
- package/dist/cli/interactive/renderer.js +555 -0
- package/dist/cli/interactive/repl.d.ts +14 -0
- package/dist/cli/interactive/repl.js +1516 -0
- package/dist/cli/interactive/stream-client.d.ts +59 -0
- package/dist/cli/interactive/stream-client.js +506 -0
- package/dist/cli/interactive/types.d.ts +121 -0
- package/dist/cli/interactive/types.js +10 -0
- package/dist/cli/utils/api.d.ts +9 -0
- package/dist/cli/utils/api.js +58 -2
- package/dist/cron/natural-language.d.ts +54 -0
- package/dist/cron/natural-language.js +569 -0
- package/dist/cron/scheduler.d.ts +34 -4
- package/dist/cron/scheduler.js +141 -9
- package/dist/cron/templates.d.ts +1 -1
- package/dist/cron/templates.js +219 -0
- package/dist/feeds/feed-engine.d.ts +149 -0
- package/dist/feeds/feed-engine.js +600 -0
- package/dist/feeds/index.d.ts +9 -0
- package/dist/feeds/index.js +8 -0
- package/dist/gateway/router.js +6 -1
- package/dist/hooks/built-in/audit-log.d.ts +11 -0
- package/dist/hooks/built-in/audit-log.js +84 -0
- package/dist/hooks/built-in/cost-warning.d.ts +10 -0
- package/dist/hooks/built-in/cost-warning.js +59 -0
- package/dist/hooks/built-in/dangerous-tool.d.ts +32 -0
- package/dist/hooks/built-in/dangerous-tool.js +80 -0
- package/dist/hooks/built-in/index.d.ts +14 -0
- package/dist/hooks/built-in/index.js +20 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.js +6 -0
- package/dist/hooks/loader.d.ts +17 -0
- package/dist/hooks/loader.js +142 -0
- package/dist/hooks/registry.d.ts +62 -0
- package/dist/hooks/registry.js +127 -0
- package/dist/integrations/web-search.js +6 -3
- package/dist/memory/index.d.ts +1 -0
- package/dist/memory/index.js +2 -0
- package/dist/memory/memory-service.js +14 -13
- package/dist/memory/observational.d.ts +62 -0
- package/dist/memory/observational.js +396 -0
- package/dist/middleware/content-filter.d.ts +22 -0
- package/dist/middleware/content-filter.js +69 -0
- package/dist/middleware/request-validator.d.ts +159 -0
- package/dist/middleware/request-validator.js +93 -0
- package/dist/plugins/sdk.d.ts +22 -0
- package/dist/plugins/sdk.js +17 -1
- package/dist/projects/types.d.ts +10 -10
- package/dist/providers/ai-sdk.d.ts +11 -0
- package/dist/providers/ai-sdk.js +78 -19
- package/dist/providers/core/models.js +67 -1
- package/dist/providers/core/types.d.ts +3 -0
- package/dist/providers/index.d.ts +1 -0
- package/dist/providers/index.js +1 -0
- package/dist/providers/smart-router.d.ts +118 -0
- package/dist/providers/smart-router.js +685 -0
- package/dist/providers/types.d.ts +16 -16
- package/dist/routes/agents.js +50 -0
- package/dist/routes/auth.js +8 -1
- package/dist/routes/chat.js +259 -14
- package/dist/routes/costs.js +32 -0
- package/dist/routes/cron.js +80 -5
- package/dist/routes/feeds.d.ts +10 -0
- package/dist/routes/feeds.js +168 -0
- package/dist/routes/mcp.js +21 -0
- package/dist/routes/memory.js +130 -0
- package/dist/routes/skills.js +129 -0
- package/dist/routes/teams.d.ts +9 -0
- package/dist/routes/teams.js +210 -0
- package/dist/routes/tools.js +14 -0
- package/dist/routes/users.js +2 -0
- package/dist/server/route-loader.js +3 -1
- package/dist/server/stream-bridge.d.ts +19 -0
- package/dist/server/stream-bridge.js +38 -0
- package/dist/server.js +310 -36
- package/dist/skills/marketplace.d.ts +87 -0
- package/dist/skills/marketplace.js +268 -0
- package/dist/storage/index.d.ts +14 -0
- package/dist/storage/index.js +64 -3
- package/dist/storage/schema.d.ts +4 -4
- package/dist/storage/schema.js +1 -1
- package/dist/teams/index.d.ts +110 -0
- package/dist/teams/index.js +365 -0
- package/dist/tickets/types.d.ts +39 -39
- package/dist/types/summary.d.ts +5 -5
- package/dist/utils/auto-update.d.ts +23 -0
- package/dist/utils/auto-update.js +157 -0
- package/dist/utils/offline-detect.d.ts +55 -0
- package/dist/utils/offline-detect.js +121 -0
- package/dist/utils/pid-file.d.ts +36 -0
- package/dist/utils/pid-file.js +125 -0
- package/dist/utils/prevent-sleep.d.ts +27 -0
- package/dist/utils/prevent-sleep.js +95 -0
- package/dist/utils/sanitizer.d.ts +57 -0
- package/dist/utils/sanitizer.js +174 -0
- package/docker-compose.yml +13 -137
- package/package.json +31 -6
- package/skills/deploy-cloudflare/SKILL.md +62 -0
- package/skills/deploy-vercel/SKILL.md +67 -0
- package/skills/docker-deploy/SKILL.md +158 -0
- package/skills/full-stack-builder/SKILL.md +92 -0
- package/skills/humanizer/SKILL.md +488 -0
- package/skills/profclaw-assistant/SKILL.md +85 -56
- package/ui/dist/assets/ActivityView-Da6HQ8ws.js +1 -0
- package/ui/dist/assets/AgentList-H58R0kX3.js +1 -0
- package/ui/dist/assets/AnalyticsDashboard-B28AeRsc.js +1 -0
- package/ui/dist/assets/AreaChart-DwLzeAQ8.js +1 -0
- package/ui/dist/assets/CartesianChart-piKQsTAR.js +36 -0
- package/ui/dist/assets/ChatView-Dbj8rxU5.js +10 -0
- package/ui/dist/assets/CostsDashboard-C6F5df0F.js +1 -0
- package/ui/dist/assets/EstimateSelect-wga0rUKX.js +1 -0
- package/ui/dist/assets/FeedDashboard-Ef6FEzEf.js +1 -0
- package/ui/dist/assets/FloatingChatbot-0yhkUeCq.js +2 -0
- package/ui/dist/assets/InviteCodeManagement-tUXfx4Bc.js +2 -0
- package/ui/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/ui/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/ui/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/ui/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/ui/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/ui/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/ui/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/ui/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/ui/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/ui/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/ui/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/ui/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/ui/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/ui/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/ui/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/ui/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/ui/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/ui/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/ui/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/ui/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/ui/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/ui/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/ui/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/ui/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/ui/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/ui/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/ui/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/ui/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/ui/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/ui/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/ui/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/ui/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/ui/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/ui/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/ui/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/ui/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/ui/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/ui/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/ui/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/ui/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/ui/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/ui/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/ui/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/ui/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/ui/dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/ui/dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/ui/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/ui/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/ui/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/ui/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/ui/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/ui/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/ui/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/ui/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/ui/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/ui/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/ui/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/ui/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/ui/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/ui/dist/assets/MarketplacePage-DGrLtolR.js +1 -0
- package/ui/dist/assets/{ProjectDetail--gPfvATB.js → ProjectDetail-BgWvA6UP.js} +2 -2
- package/ui/dist/assets/ProjectIcon-TDuliqwg.js +1 -0
- package/ui/dist/assets/ProjectList-DXgM4187.js +1 -0
- package/ui/dist/assets/{Settings-1kaf7VHE.js → Settings-xA8Zhi3p.js} +3 -3
- package/ui/dist/assets/StatusIndicator-B8vfFAxg.js +1 -0
- package/ui/dist/assets/{SummaryDetail-DV3AmONk.js → SummaryDetail-eedRfTtF.js} +2 -2
- package/ui/dist/assets/SummaryList-CLNX2P84.js +1 -0
- package/ui/dist/assets/TaskDetail-BtWclNiR.js +1 -0
- package/ui/dist/assets/TaskList-JjODAgSc.js +1 -0
- package/ui/dist/assets/TeamsPage-CBK5iAyx.js +1 -0
- package/ui/dist/assets/TicketBoard-C9aJNNYp.js +1 -0
- package/ui/dist/assets/TicketDetail-CV5JmL31.js +1 -0
- package/ui/dist/assets/TicketList-68V4lzUz.js +1 -0
- package/ui/dist/assets/UserManagement-DKTb6UpE.js +2 -0
- package/ui/dist/assets/ViewSwitcher-BvdQht2Y.js +1 -0
- package/ui/dist/assets/alert-dialog-O6qBOv_f.js +1 -0
- package/ui/dist/assets/{archive-BsLa7brF.js → archive-CX7UvZpf.js} +1 -1
- package/ui/dist/assets/badge-BbfnwDJP.js +1 -0
- package/ui/dist/assets/{bug-CmZI7jqM.js → bug-3WX0394-.js} +1 -1
- package/ui/dist/assets/{calendar-Bf0t2B82.js → calendar-buq77TaS.js} +1 -1
- package/ui/dist/assets/{chevron-up-CoUsOvZj.js → chevron-up-4ymsBJRo.js} +1 -1
- package/ui/dist/assets/{circle-x-Dgw11LgT.js → circle-x-ByXtwR6Y.js} +1 -1
- package/ui/dist/assets/constants-CVdDh7p0.js +1 -0
- package/ui/dist/assets/{cpu-DiPMQICV.js → cpu-CiuoCeDY.js} +1 -1
- package/ui/dist/assets/{database-BwTfupDi.js → database-BWXSBg5a.js} +1 -1
- package/ui/dist/assets/dialog-lDg4NvMV.js +1 -0
- package/ui/dist/assets/dollar-sign-Dmijd6DP.js +1 -0
- package/ui/dist/assets/{ellipsis-UJx4Xnf6.js → ellipsis-vT-5SVIp.js} +1 -1
- package/ui/dist/assets/{ellipsis-vertical-DoULYEKn.js → ellipsis-vertical-B4tAX_bL.js} +1 -1
- package/ui/dist/assets/feature-markdown-DBo5Q7uq.js +289 -0
- package/ui/dist/assets/{file-code-B2UrJLwi.js → file-code-ChOWdKXf.js} +1 -1
- package/ui/dist/assets/{folder-open-BJi577JH.js → folder-open-CkOUbIiP.js} +1 -1
- package/ui/dist/assets/{funnel-PkaD_HSR.js → funnel-uZkoSPP-.js} +1 -1
- package/ui/dist/assets/{git-branch-C_K30am0.js → git-branch-CwvUxj7C.js} +1 -1
- package/ui/dist/assets/{git-commit-horizontal-IT6ecxWQ.js → git-commit-horizontal-lxPzCvhD.js} +1 -1
- package/ui/dist/assets/{globe-f-jjCa_g.js → globe-D_WpJdsj.js} +1 -1
- package/ui/dist/assets/{hash-DNEv8Elo.js → hash-CA0hJ7vh.js} +1 -1
- package/ui/dist/assets/{history-BQSBo_1Q.js → history-CEWMLELs.js} +1 -1
- package/ui/dist/assets/inbox-ehtOptTV.js +1 -0
- package/ui/dist/assets/{index-nS3EErDg.js → index-C1rhbml4.js} +3 -3
- package/ui/dist/assets/index-CR8gfCHv.js +1 -0
- package/ui/dist/assets/index-DVXMpWai.js +1 -0
- package/ui/dist/assets/index-DaDJMM2v.js +1 -0
- package/ui/dist/assets/index-Djdq_0xu.js +1 -0
- package/ui/dist/assets/index-M46Gcb8K.css +1 -0
- package/ui/dist/assets/index-sEBN7w8J.js +109 -0
- package/ui/dist/assets/layers-C6Mhf8Nk.js +1 -0
- package/ui/dist/assets/{layout-dashboard-CcKt1hXw.js → layout-dashboard-BRUM0kpT.js} +1 -1
- package/ui/dist/assets/{lightbulb-Jhp7FvbU.js → lightbulb-CN2q1O5l.js} +1 -1
- package/ui/dist/assets/{link-2-DdO7ostF.js → link-2-CC4E28yJ.js} +1 -1
- package/ui/dist/assets/markdown-renderer-C6ENbB0u.js +10 -0
- package/ui/dist/assets/markdown-renderer-CfVKi3_s.css +1 -0
- package/ui/dist/assets/{message-square-CBgH65X7.js → message-square-Bbb241am.js} +1 -1
- package/ui/dist/assets/package-CwT3IzFx.js +1 -0
- package/ui/dist/assets/{pencil-CYXCEPQh.js → pencil-CDmiHzoj.js} +1 -1
- package/ui/dist/assets/{play-d1ONaH0-.js → play-tjy5jMQX.js} +1 -1
- package/ui/dist/assets/popover-CFHZf3pE.js +1 -0
- package/ui/dist/assets/progress-BboUHuLf.js +1 -0
- package/ui/dist/assets/{rocket-DhvUetsk.js → rocket--8ZHgdXJ.js} +1 -1
- package/ui/dist/assets/select-n108rXny.js +1 -0
- package/ui/dist/assets/{send-P0r5D7td.js → send-Cu7MR2Qh.js} +1 -1
- package/ui/dist/assets/server-DmodxZp-.js +1 -0
- package/ui/dist/assets/{settings-2-ocj5uHGx.js → settings-2-CkRNqkxj.js} +1 -1
- package/ui/dist/assets/sheet-7aUJkyzU.js +1 -0
- package/ui/dist/assets/{shield-check-DfVdE34l.js → shield-check-ViI3nMKE.js} +1 -1
- package/ui/dist/assets/{shield-off-8l0J6R-8.js → shield-off-DN3tagkn.js} +1 -1
- package/ui/dist/assets/skeleton-C0E1Nfro.js +1 -0
- package/ui/dist/assets/{smartphone-77_g3SQn.js → smartphone-5FghiXpA.js} +1 -1
- package/ui/dist/assets/{square-Ckzsr3Rn.js → square-DiNSx8K7.js} +1 -1
- package/ui/dist/assets/star-DhdFVidS.js +1 -0
- package/ui/dist/assets/switch-CIgVbZqQ.js +1 -0
- package/ui/dist/assets/table-BC56FVMV.js +1 -0
- package/ui/dist/assets/{tag-C35mgoEv.js → tag-CH_vQliw.js} +1 -1
- package/ui/dist/assets/textarea-CxDiKFXZ.js +1 -0
- package/ui/dist/assets/{timer-DHJBS2w1.js → timer-CdGVTb60.js} +1 -1
- package/ui/dist/assets/tooltip-BuW9A5UO.js +1 -0
- package/ui/dist/assets/{trash-2-keO5tKPE.js → trash-2-CucZJL0N.js} +1 -1
- package/ui/dist/assets/trending-down-BCezC1z2.js +1 -0
- package/ui/dist/assets/{trending-up-BBv8KbrY.js → trending-up-C5OYX2k2.js} +1 -1
- package/ui/dist/assets/vendor-query-C0p7b53x.js +4 -0
- package/ui/dist/assets/vendor-react-Mc5_kfYG.js +12 -0
- package/ui/dist/assets/vendor-ui-CXPAUBFv.js +51 -0
- package/ui/dist/assets/{wand-sparkles-BusQ52ZK.js → wand-sparkles-BaH6pJnc.js} +1 -1
- package/ui/dist/assets/{wrench-02YaOSiK.js → wrench-CjxjP6ok.js} +1 -1
- package/ui/dist/index.html +5 -2
- package/ui/dist/assets/ActivityView-BeshZXmE.js +0 -1
- package/ui/dist/assets/AgentList-QVHeldPi.js +0 -1
- package/ui/dist/assets/AnalyticsDashboard-C9R97dXE.js +0 -1
- package/ui/dist/assets/AreaChart-B73gaiVQ.js +0 -1
- package/ui/dist/assets/CartesianChart-CXYL2R-A.js +0 -36
- package/ui/dist/assets/ChatView-qjZErlrp.js +0 -10
- package/ui/dist/assets/CostsDashboard-O4DCLy1i.js +0 -1
- package/ui/dist/assets/EstimateSelect-1hQf4Osk.js +0 -1
- package/ui/dist/assets/FloatingChatbot-BZBzrJxd.js +0 -2
- package/ui/dist/assets/InviteCodeManagement-LEoGqYeA.js +0 -2
- package/ui/dist/assets/ProjectIcon-Chd_ofsw.js +0 -1
- package/ui/dist/assets/ProjectList-BvUfVB6c.js +0 -4
- package/ui/dist/assets/StatusIndicator-pRfkNcdV.js +0 -1
- package/ui/dist/assets/SummaryList-B6kXiTxL.js +0 -1
- package/ui/dist/assets/TaskDetail-CV6CzbOS.js +0 -1
- package/ui/dist/assets/TaskList-DL7brQKd.js +0 -1
- package/ui/dist/assets/TicketBoard-CrkkFj7C.js +0 -1
- package/ui/dist/assets/TicketDetail-hnnYclpD.js +0 -1
- package/ui/dist/assets/TicketList-CsDAyQCL.js +0 -1
- package/ui/dist/assets/UserManagement-BGFQyTSr.js +0 -2
- package/ui/dist/assets/ViewSwitcher-CnL0OqA8.js +0 -1
- package/ui/dist/assets/alert-dialog-SKM6Gjz4.js +0 -7
- package/ui/dist/assets/badge-CVHH1a-v.js +0 -1
- package/ui/dist/assets/brain-6o_RHVpe.js +0 -1
- package/ui/dist/assets/constants-Q5Zivl-a.js +0 -1
- package/ui/dist/assets/dialog-BUqN9Psj.js +0 -1
- package/ui/dist/assets/index-BUmnwPQr.js +0 -1
- package/ui/dist/assets/index-BfF5G4Cw.js +0 -1
- package/ui/dist/assets/index-C8N375c2.js +0 -1
- package/ui/dist/assets/index-CuxnqVVz.css +0 -1
- package/ui/dist/assets/index-CzMM3QOk.js +0 -1
- package/ui/dist/assets/index-lJlNPFVJ.js +0 -67
- package/ui/dist/assets/layers-jFqVrWMD.js +0 -1
- package/ui/dist/assets/markdown-renderer-n1ToC4XQ.js +0 -36
- package/ui/dist/assets/popover-CrmZgoWu.js +0 -1
- package/ui/dist/assets/progress-uv4SPkL5.js +0 -1
- package/ui/dist/assets/select-CeQ8AHGy.js +0 -1
- package/ui/dist/assets/server-CVHTZB72.js +0 -1
- package/ui/dist/assets/sheet-DuQExSho.js +0 -1
- package/ui/dist/assets/skeleton-TFiFJ3nB.js +0 -1
- package/ui/dist/assets/switch-CAePkd6k.js +0 -1
- package/ui/dist/assets/table-ZjAZ7hkt.js +0 -1
- package/ui/dist/assets/textarea-DsVPnSgR.js +0 -1
- package/ui/dist/assets/tooltip-BYmQ331W.js +0 -1
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/FloatingChatbot-0yhkUeCq.js","assets/vendor-react-Mc5_kfYG.js","assets/vendor-query-C0p7b53x.js","assets/markdown-renderer-C6ENbB0u.js","assets/feature-markdown-DBo5Q7uq.js","assets/defineProperty-CoXUr7_6.js","assets/markdown-renderer-CfVKi3_s.css","assets/cpu-CiuoCeDY.js","assets/trash-2-CucZJL0N.js","assets/send-Cu7MR2Qh.js","assets/message-square-Bbb241am.js","assets/layout-dashboard-BRUM0kpT.js","assets/wrench-CjxjP6ok.js","assets/circle-x-ByXtwR6Y.js","assets/vendor-ui-CXPAUBFv.js","assets/AnalyticsDashboard-B28AeRsc.js","assets/badge-BbfnwDJP.js","assets/CartesianChart-piKQsTAR.js","assets/AreaChart-DwLzeAQ8.js","assets/trending-up-C5OYX2k2.js","assets/git-branch-CwvUxj7C.js","assets/TaskList-JjODAgSc.js","assets/select-n108rXny.js","assets/chevron-up-4ymsBJRo.js","assets/table-BC56FVMV.js","assets/dialog-lDg4NvMV.js","assets/textarea-CxDiKFXZ.js","assets/play-tjy5jMQX.js","assets/funnel-uZkoSPP-.js","assets/ellipsis-vT-5SVIp.js","assets/TaskDetail-BtWclNiR.js","assets/StatusIndicator-B8vfFAxg.js","assets/hash-CA0hJ7vh.js","assets/square-DiNSx8K7.js","assets/calendar-buq77TaS.js","assets/history-CEWMLELs.js","assets/SummaryList-CLNX2P84.js","assets/SummaryDetail-eedRfTtF.js","assets/skeleton-C0E1Nfro.js","assets/file-code-ChOWdKXf.js","assets/link-2-CC4E28yJ.js","assets/lightbulb-CN2q1O5l.js","assets/AgentList-H58R0kX3.js","assets/layers-C6Mhf8Nk.js","assets/shield-check-ViI3nMKE.js","assets/Settings-xA8Zhi3p.js","assets/switch-CIgVbZqQ.js","assets/constants-CVdDh7p0.js","assets/settings-2-CkRNqkxj.js","assets/tag-CH_vQliw.js","assets/smartphone-5FghiXpA.js","assets/database-BWXSBg5a.js","assets/globe-D_WpJdsj.js","assets/timer-CdGVTb60.js","assets/pencil-CDmiHzoj.js","assets/alert-dialog-O6qBOv_f.js","assets/server-DmodxZp-.js","assets/bug-3WX0394-.js","assets/git-commit-horizontal-lxPzCvhD.js","assets/package-CwT3IzFx.js","assets/star-DhdFVidS.js","assets/tooltip-BuW9A5UO.js","assets/shield-off-DN3tagkn.js","assets/CostsDashboard-C6F5df0F.js","assets/dollar-sign-Dmijd6DP.js","assets/trending-down-BCezC1z2.js","assets/index-C1rhbml4.js","assets/index-CR8gfCHv.js","assets/index-Djdq_0xu.js","assets/progress-BboUHuLf.js","assets/TicketList-68V4lzUz.js","assets/popover-CFHZf3pE.js","assets/ViewSwitcher-BvdQht2Y.js","assets/EstimateSelect-wga0rUKX.js","assets/wand-sparkles-BaH6pJnc.js","assets/folder-open-CkOUbIiP.js","assets/inbox-ehtOptTV.js","assets/TicketDetail-CV5JmL31.js","assets/ellipsis-vertical-B4tAX_bL.js","assets/TicketBoard-C9aJNNYp.js","assets/element-adapter-DL0DQilL.js","assets/ChatView-Dbj8rxU5.js","assets/rocket--8ZHgdXJ.js","assets/sheet-7aUJkyzU.js","assets/ProjectList-DXgM4187.js","assets/ProjectIcon-TDuliqwg.js","assets/archive-CX7UvZpf.js","assets/ProjectDetail-BgWvA6UP.js","assets/ProjectDetail-D1-0B2xV.css","assets/index-DVXMpWai.js","assets/ActivityView-Da6HQ8ws.js","assets/UserManagement-DKTb6UpE.js","assets/InviteCodeManagement-tUXfx4Bc.js","assets/index-DaDJMM2v.js","assets/MarketplacePage-DGrLtolR.js","assets/FeedDashboard-Ef6FEzEf.js","assets/TeamsPage-CBK5iAyx.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as h,j as t,b as L,c as vr,u as De,e as yr,L as he,f as xs,N as Re,h as br,i as wr,k as jr}from"./vendor-react-Mc5_kfYG.js";import{Q as Cr,a as kr,u as gs,b as He,c as Be}from"./vendor-query-C0p7b53x.js";import{R as c1,a as Nr,T as Sr,P as Lr,C as Mr,S as Ar,I as Er,L as $r,u as ht,b as Ke,c as Tr,d as _r,O as Pr,e as zr,f as jt}from"./vendor-ui-CXPAUBFv.js";(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const n of o)if(n.type==="childList")for(const l of n.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&a(l)}).observe(document,{childList:!0,subtree:!0});function r(o){const n={};return o.integrity&&(n.integrity=o.integrity),o.referrerPolicy&&(n.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?n.credentials="include":o.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function a(o){if(o.ep)return;o.ep=!0;const n=r(o);fetch(o.href,n)}})();var Or=(e,s,r,a,o,n,l,u)=>{let i=document.documentElement,d=["light","dark"];function f(x){(Array.isArray(e)?e:[e]).forEach(v=>{let g=v==="class",y=g&&n?o.map(j=>n[j]||j):o;g?(i.classList.remove(...y),i.classList.add(n&&n[x]?n[x]:x)):i.setAttribute(v,x)}),c(x)}function c(x){u&&d.includes(x)&&(i.style.colorScheme=x)}function p(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(a)f(a);else try{let x=localStorage.getItem(s)||r,v=l&&x==="system"?p():x;f(v)}catch{}},Is=["light","dark"],d1="(prefers-color-scheme: dark)",Ir=typeof window>"u",vs=h.createContext(void 0),Rr={setTheme:e=>{},themes:[]},Nt=()=>{var e;return(e=h.useContext(vs))!=null?e:Rr},Br=e=>h.useContext(vs)?h.createElement(h.Fragment,null,e.children):h.createElement(Dr,{...e}),Hr=["light","dark"],Dr=({forcedTheme:e,disableTransitionOnChange:s=!1,enableSystem:r=!0,enableColorScheme:a=!0,storageKey:o="theme",themes:n=Hr,defaultTheme:l=r?"system":"light",attribute:u="data-theme",value:i,children:d,nonce:f,scriptProps:c})=>{let[p,x]=h.useState(()=>Gr(o,l)),[v,g]=h.useState(()=>p==="system"?Xt():p),y=i?Object.values(i):n,j=h.useCallback(M=>{let w=M;if(!w)return;M==="system"&&r&&(w=Xt());let b=i?i[w]:w,N=s?Fr(f):null,T=document.documentElement,Y=V=>{V==="class"?(T.classList.remove(...y),b&&T.classList.add(b)):V.startsWith("data-")&&(b?T.setAttribute(V,b):T.removeAttribute(V))};if(Array.isArray(u)?u.forEach(Y):Y(u),a){let V=Is.includes(l)?l:null,X=Is.includes(w)?w:V;T.style.colorScheme=X}N?.()},[f]),P=h.useCallback(M=>{let w=typeof M=="function"?M(p):M;x(w);try{localStorage.setItem(o,w)}catch{}},[p]),O=h.useCallback(M=>{let w=Xt(M);g(w),p==="system"&&r&&!e&&j("system")},[p,e]);h.useEffect(()=>{let M=window.matchMedia(d1);return M.addListener(O),O(M),()=>M.removeListener(O)},[O]),h.useEffect(()=>{let M=w=>{w.key===o&&(w.newValue?x(w.newValue):P(l))};return window.addEventListener("storage",M),()=>window.removeEventListener("storage",M)},[P]),h.useEffect(()=>{j(e??p)},[e,p]);let E=h.useMemo(()=>({theme:p,setTheme:P,forcedTheme:e,resolvedTheme:p==="system"?v:p,themes:r?[...n,"system"]:n,systemTheme:r?v:void 0}),[p,P,e,v,r,n]);return h.createElement(vs.Provider,{value:E},h.createElement(Vr,{forcedTheme:e,storageKey:o,attribute:u,enableSystem:r,enableColorScheme:a,defaultTheme:l,value:i,themes:n,nonce:f,scriptProps:c}),d)},Vr=h.memo(({forcedTheme:e,storageKey:s,attribute:r,enableSystem:a,enableColorScheme:o,defaultTheme:n,value:l,themes:u,nonce:i,scriptProps:d})=>{let f=JSON.stringify([r,s,n,e,u,l,a,o]).slice(1,-1);return h.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?i:"",dangerouslySetInnerHTML:{__html:`(${Or.toString()})(${f})`}})}),Gr=(e,s)=>{if(Ir)return;let r;try{r=localStorage.getItem(e)||void 0}catch{}return r||s},Fr=e=>{let s=document.createElement("style");return e&&s.setAttribute("nonce",e),s.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(s),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(s)},1)}},Xt=e=>(e||(e=window.matchMedia(d1)),e.matches?"dark":"light");function Zr({children:e}){return t.jsx(Br,{attribute:"class",defaultTheme:"system",enableSystem:!0,themes:["light","dark","midnight"],disableTransitionOnChange:!0,children:e})}const Ur=new Cr({defaultOptions:{queries:{staleTime:3e4,retry:1,retryDelay:e=>Math.min(1e3*2**e,3e4),refetchOnWindowFocus:!1,refetchOnReconnect:!0}}});function qr({children:e}){return t.jsx(kr,{client:Ur,children:e})}function Wr(e){if(typeof document>"u")return;let s=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",s.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const Jr=e=>{switch(e){case"success":return Qr;case"info":return ea;case"warning":return Xr;case"error":return ta;default:return null}},Kr=Array(12).fill(0),Yr=({visible:e,className:s})=>L.createElement("div",{className:["sonner-loading-wrapper",s].filter(Boolean).join(" "),"data-visible":e},L.createElement("div",{className:"sonner-spinner"},Kr.map((r,a)=>L.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),Qr=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Xr=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),ea=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),ta=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),sa=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},L.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),L.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),ra=()=>{const[e,s]=L.useState(document.hidden);return L.useEffect(()=>{const r=()=>{s(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let ls=1;class aa{constructor(){this.subscribe=s=>(this.subscribers.push(s),()=>{const r=this.subscribers.indexOf(s);this.subscribers.splice(r,1)}),this.publish=s=>{this.subscribers.forEach(r=>r(s))},this.addToast=s=>{this.publish(s),this.toasts=[...this.toasts,s]},this.create=s=>{var r;const{message:a,...o}=s,n=typeof s?.id=="number"||((r=s.id)==null?void 0:r.length)>0?s.id:ls++,l=this.toasts.find(i=>i.id===n),u=s.dismissible===void 0?!0:s.dismissible;return this.dismissedToasts.has(n)&&this.dismissedToasts.delete(n),l?this.toasts=this.toasts.map(i=>i.id===n?(this.publish({...i,...s,id:n,title:a}),{...i,...s,id:n,dismissible:u,title:a}):i):this.addToast({title:a,...o,dismissible:u,id:n}),n},this.dismiss=s=>(s?(this.dismissedToasts.add(s),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:s,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(a=>a({id:r.id,dismiss:!0}))}),s),this.message=(s,r)=>this.create({...r,message:s}),this.error=(s,r)=>this.create({...r,message:s,type:"error"}),this.success=(s,r)=>this.create({...r,type:"success",message:s}),this.info=(s,r)=>this.create({...r,type:"info",message:s}),this.warning=(s,r)=>this.create({...r,type:"warning",message:s}),this.loading=(s,r)=>this.create({...r,type:"loading",message:s}),this.promise=(s,r)=>{if(!r)return;let a;r.loading!==void 0&&(a=this.create({...r,promise:s,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(s instanceof Function?s():s);let n=a!==void 0,l;const u=o.then(async d=>{if(l=["resolve",d],L.isValidElement(d))n=!1,this.create({id:a,type:"default",message:d});else if(na(d)&&!d.ok){n=!1;const c=typeof r.error=="function"?await r.error(`HTTP error! status: ${d.status}`):r.error,p=typeof r.description=="function"?await r.description(`HTTP error! status: ${d.status}`):r.description,v=typeof c=="object"&&!L.isValidElement(c)?c:{message:c};this.create({id:a,type:"error",description:p,...v})}else if(d instanceof Error){n=!1;const c=typeof r.error=="function"?await r.error(d):r.error,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof c=="object"&&!L.isValidElement(c)?c:{message:c};this.create({id:a,type:"error",description:p,...v})}else if(r.success!==void 0){n=!1;const c=typeof r.success=="function"?await r.success(d):r.success,p=typeof r.description=="function"?await r.description(d):r.description,v=typeof c=="object"&&!L.isValidElement(c)?c:{message:c};this.create({id:a,type:"success",description:p,...v})}}).catch(async d=>{if(l=["reject",d],r.error!==void 0){n=!1;const f=typeof r.error=="function"?await r.error(d):r.error,c=typeof r.description=="function"?await r.description(d):r.description,x=typeof f=="object"&&!L.isValidElement(f)?f:{message:f};this.create({id:a,type:"error",description:c,...x})}}).finally(()=>{n&&(this.dismiss(a),a=void 0),r.finally==null||r.finally.call(r)}),i=()=>new Promise((d,f)=>u.then(()=>l[0]==="reject"?f(l[1]):d(l[1])).catch(f));return typeof a!="string"&&typeof a!="number"?{unwrap:i}:Object.assign(a,{unwrap:i})},this.custom=(s,r)=>{const a=r?.id||ls++;return this.create({jsx:s(a),id:a,...r}),a},this.getActiveToasts=()=>this.toasts.filter(s=>!this.dismissedToasts.has(s.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const be=new aa,oa=(e,s)=>{const r=s?.id||ls++;return be.addToast({title:e,...s,id:r}),r},na=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",ia=oa,la=()=>be.toasts,ca=()=>be.getActiveToasts(),ce=Object.assign(ia,{success:be.success,info:be.info,warning:be.warning,error:be.error,custom:be.custom,message:be.message,promise:be.promise,dismiss:be.dismiss,loading:be.loading},{getHistory:la,getToasts:ca});Wr("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Et(e){return e.label!==void 0}const da=3,ua="24px",ha="16px",Rs=4e3,ma=356,pa=14,fa=45,xa=200;function $e(...e){return e.filter(Boolean).join(" ")}function ga(e){const[s,r]=e.split("-"),a=[];return s&&a.push(s),r&&a.push(r),a}const va=e=>{var s,r,a,o,n,l,u,i,d;const{invert:f,toast:c,unstyled:p,interacting:x,setHeights:v,visibleToasts:g,heights:y,index:j,toasts:P,expanded:O,removeToast:E,defaultRichColors:M,closeButton:w,style:b,cancelButtonStyle:N,actionButtonStyle:T,className:Y="",descriptionClassName:V="",duration:X,position:se,gap:ie,expandByDefault:le,classNames:F,icons:K,closeButtonAriaLabel:B="Close toast"}=e,[$,U]=L.useState(null),[Q,C]=L.useState(null),[S,_]=L.useState(!1),[A,Z]=L.useState(!1),[G,q]=L.useState(!1),[re,ve]=L.useState(!1),[Ge,Se]=L.useState(!1),[nr,Kt]=L.useState(0),[ir,Ms]=L.useState(0),xt=L.useRef(c.duration||X||Rs),As=L.useRef(null),Oe=L.useRef(null),lr=j===0,cr=j+1<=g,we=c.type,at=c.dismissible!==!1,dr=c.className||"",ur=c.descriptionClassName||"",Lt=L.useMemo(()=>y.findIndex(W=>W.toastId===c.id)||0,[y,c.id]),hr=L.useMemo(()=>{var W;return(W=c.closeButton)!=null?W:w},[c.closeButton,w]),Es=L.useMemo(()=>c.duration||X||Rs,[c.duration,X]),Yt=L.useRef(0),ot=L.useRef(0),$s=L.useRef(0),nt=L.useRef(null),[mr,pr]=se.split("-"),Ts=L.useMemo(()=>y.reduce((W,me,xe)=>xe>=Lt?W:W+me.height,0),[y,Lt]),_s=ra(),fr=c.invert||f,Qt=we==="loading";ot.current=L.useMemo(()=>Lt*ie+Ts,[Lt,Ts]),L.useEffect(()=>{xt.current=Es},[Es]),L.useEffect(()=>{_(!0)},[]),L.useEffect(()=>{const W=Oe.current;if(W){const me=W.getBoundingClientRect().height;return Ms(me),v(xe=>[{toastId:c.id,height:me,position:c.position},...xe]),()=>v(xe=>xe.filter(je=>je.toastId!==c.id))}},[v,c.id]),L.useLayoutEffect(()=>{if(!S)return;const W=Oe.current,me=W.style.height;W.style.height="auto";const xe=W.getBoundingClientRect().height;W.style.height=me,Ms(xe),v(je=>je.find(fe=>fe.toastId===c.id)?je.map(fe=>fe.toastId===c.id?{...fe,height:xe}:fe):[{toastId:c.id,height:xe,position:c.position},...je])},[S,c.title,c.description,v,c.id,c.jsx,c.action,c.cancel]);const Fe=L.useCallback(()=>{Z(!0),Kt(ot.current),v(W=>W.filter(me=>me.toastId!==c.id)),setTimeout(()=>{E(c)},xa)},[c,E,v,ot]);L.useEffect(()=>{if(c.promise&&we==="loading"||c.duration===1/0||c.type==="loading")return;let W;return O||x||_s?(()=>{if($s.current<Yt.current){const je=new Date().getTime()-Yt.current;xt.current=xt.current-je}$s.current=new Date().getTime()})():xt.current!==1/0&&(Yt.current=new Date().getTime(),W=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),Fe()},xt.current)),()=>clearTimeout(W)},[O,x,c,we,_s,Fe]),L.useEffect(()=>{c.delete&&(Fe(),c.onDismiss==null||c.onDismiss.call(c,c))},[Fe,c.delete]);function xr(){var W;if(K?.loading){var me;return L.createElement("div",{className:$e(F?.loader,c==null||(me=c.classNames)==null?void 0:me.loader,"sonner-loader"),"data-visible":we==="loading"},K.loading)}return L.createElement(Yr,{className:$e(F?.loader,c==null||(W=c.classNames)==null?void 0:W.loader),visible:we==="loading"})}const gr=c.icon||K?.[we]||Jr(we);var Ps,zs;return L.createElement("li",{tabIndex:0,ref:Oe,className:$e(Y,dr,F?.toast,c==null||(s=c.classNames)==null?void 0:s.toast,F?.default,F?.[we],c==null||(r=c.classNames)==null?void 0:r[we]),"data-sonner-toast":"","data-rich-colors":(Ps=c.richColors)!=null?Ps:M,"data-styled":!(c.jsx||c.unstyled||p),"data-mounted":S,"data-promise":!!c.promise,"data-swiped":Ge,"data-removed":A,"data-visible":cr,"data-y-position":mr,"data-x-position":pr,"data-index":j,"data-front":lr,"data-swiping":G,"data-dismissible":at,"data-type":we,"data-invert":fr,"data-swipe-out":re,"data-swipe-direction":Q,"data-expanded":!!(O||le&&S),"data-testid":c.testId,style:{"--index":j,"--toasts-before":j,"--z-index":P.length-j,"--offset":`${A?nr:ot.current}px`,"--initial-height":le?"auto":`${ir}px`,...b,...c.style},onDragEnd:()=>{q(!1),U(null),nt.current=null},onPointerDown:W=>{W.button!==2&&(Qt||!at||(As.current=new Date,Kt(ot.current),W.target.setPointerCapture(W.pointerId),W.target.tagName!=="BUTTON"&&(q(!0),nt.current={x:W.clientX,y:W.clientY})))},onPointerUp:()=>{var W,me,xe;if(re||!at)return;nt.current=null;const je=Number(((W=Oe.current)==null?void 0:W.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Mt=Number(((me=Oe.current)==null?void 0:me.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),fe=new Date().getTime()-((xe=As.current)==null?void 0:xe.getTime()),ke=$==="x"?je:Mt,At=Math.abs(ke)/fe;if(Math.abs(ke)>=fa||At>.11){Kt(ot.current),c.onDismiss==null||c.onDismiss.call(c,c),C($==="x"?je>0?"right":"left":Mt>0?"down":"up"),Fe(),ve(!0);return}else{var Le,Me;(Le=Oe.current)==null||Le.style.setProperty("--swipe-amount-x","0px"),(Me=Oe.current)==null||Me.style.setProperty("--swipe-amount-y","0px")}Se(!1),q(!1),U(null)},onPointerMove:W=>{var me,xe,je;if(!nt.current||!at||((me=window.getSelection())==null?void 0:me.toString().length)>0)return;const fe=W.clientY-nt.current.y,ke=W.clientX-nt.current.x;var At;const Le=(At=e.swipeDirections)!=null?At:ga(se);!$&&(Math.abs(ke)>1||Math.abs(fe)>1)&&U(Math.abs(ke)>Math.abs(fe)?"x":"y");let Me={x:0,y:0};const Os=Ye=>1/(1.5+Math.abs(Ye)/20);if($==="y"){if(Le.includes("top")||Le.includes("bottom"))if(Le.includes("top")&&fe<0||Le.includes("bottom")&&fe>0)Me.y=fe;else{const Ye=fe*Os(fe);Me.y=Math.abs(Ye)<Math.abs(fe)?Ye:fe}}else if($==="x"&&(Le.includes("left")||Le.includes("right")))if(Le.includes("left")&&ke<0||Le.includes("right")&&ke>0)Me.x=ke;else{const Ye=ke*Os(ke);Me.x=Math.abs(Ye)<Math.abs(ke)?Ye:ke}(Math.abs(Me.x)>0||Math.abs(Me.y)>0)&&Se(!0),(xe=Oe.current)==null||xe.style.setProperty("--swipe-amount-x",`${Me.x}px`),(je=Oe.current)==null||je.style.setProperty("--swipe-amount-y",`${Me.y}px`)}},hr&&!c.jsx&&we!=="loading"?L.createElement("button",{"aria-label":B,"data-disabled":Qt,"data-close-button":!0,onClick:Qt||!at?()=>{}:()=>{Fe(),c.onDismiss==null||c.onDismiss.call(c,c)},className:$e(F?.closeButton,c==null||(a=c.classNames)==null?void 0:a.closeButton)},(zs=K?.close)!=null?zs:sa):null,(we||c.icon||c.promise)&&c.icon!==null&&(K?.[we]!==null||c.icon)?L.createElement("div",{"data-icon":"",className:$e(F?.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||xr():null,c.type!=="loading"?gr:null):null,L.createElement("div",{"data-content":"",className:$e(F?.content,c==null||(n=c.classNames)==null?void 0:n.content)},L.createElement("div",{"data-title":"",className:$e(F?.title,c==null||(l=c.classNames)==null?void 0:l.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?L.createElement("div",{"data-description":"",className:$e(V,ur,F?.description,c==null||(u=c.classNames)==null?void 0:u.description)},typeof c.description=="function"?c.description():c.description):null),L.isValidElement(c.cancel)?c.cancel:c.cancel&&Et(c.cancel)?L.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||N,onClick:W=>{Et(c.cancel)&&at&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,W),Fe())},className:$e(F?.cancelButton,c==null||(i=c.classNames)==null?void 0:i.cancelButton)},c.cancel.label):null,L.isValidElement(c.action)?c.action:c.action&&Et(c.action)?L.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||T,onClick:W=>{Et(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,W),!W.defaultPrevented&&Fe())},className:$e(F?.actionButton,c==null||(d=c.classNames)==null?void 0:d.actionButton)},c.action.label):null)};function Bs(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function ya(e,s){const r={};return[e,s].forEach((a,o)=>{const n=o===1,l=n?"--mobile-offset":"--offset",u=n?ha:ua;function i(d){["top","right","bottom","left"].forEach(f=>{r[`${l}-${f}`]=typeof d=="number"?`${d}px`:d})}typeof a=="number"||typeof a=="string"?i(a):typeof a=="object"?["top","right","bottom","left"].forEach(d=>{a[d]===void 0?r[`${l}-${d}`]=u:r[`${l}-${d}`]=typeof a[d]=="number"?`${a[d]}px`:a[d]}):i(u)}),r}const ba=L.forwardRef(function(s,r){const{id:a,invert:o,position:n="bottom-right",hotkey:l=["altKey","KeyT"],expand:u,closeButton:i,className:d,offset:f,mobileOffset:c,theme:p="light",richColors:x,duration:v,style:g,visibleToasts:y=da,toastOptions:j,dir:P=Bs(),gap:O=pa,icons:E,containerAriaLabel:M="Notifications"}=s,[w,b]=L.useState([]),N=L.useMemo(()=>a?w.filter(S=>S.toasterId===a):w.filter(S=>!S.toasterId),[w,a]),T=L.useMemo(()=>Array.from(new Set([n].concat(N.filter(S=>S.position).map(S=>S.position)))),[N,n]),[Y,V]=L.useState([]),[X,se]=L.useState(!1),[ie,le]=L.useState(!1),[F,K]=L.useState(p!=="system"?p:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),B=L.useRef(null),$=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=L.useRef(null),Q=L.useRef(!1),C=L.useCallback(S=>{b(_=>{var A;return(A=_.find(Z=>Z.id===S.id))!=null&&A.delete||be.dismiss(S.id),_.filter(({id:Z})=>Z!==S.id)})},[]);return L.useEffect(()=>be.subscribe(S=>{if(S.dismiss){requestAnimationFrame(()=>{b(_=>_.map(A=>A.id===S.id?{...A,delete:!0}:A))});return}setTimeout(()=>{vr.flushSync(()=>{b(_=>{const A=_.findIndex(Z=>Z.id===S.id);return A!==-1?[..._.slice(0,A),{..._[A],...S},..._.slice(A+1)]:[S,..._]})})})}),[w]),L.useEffect(()=>{if(p!=="system"){K(p);return}if(p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?K("dark"):K("light")),typeof window>"u")return;const S=window.matchMedia("(prefers-color-scheme: dark)");try{S.addEventListener("change",({matches:_})=>{K(_?"dark":"light")})}catch{S.addListener(({matches:A})=>{try{K(A?"dark":"light")}catch(Z){console.error(Z)}})}},[p]),L.useEffect(()=>{w.length<=1&&se(!1)},[w]),L.useEffect(()=>{const S=_=>{var A;if(l.every(q=>_[q]||_.code===q)){var G;se(!0),(G=B.current)==null||G.focus()}_.code==="Escape"&&(document.activeElement===B.current||(A=B.current)!=null&&A.contains(document.activeElement))&&se(!1)};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[l]),L.useEffect(()=>{if(B.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,Q.current=!1)}},[B.current]),L.createElement("section",{ref:r,"aria-label":`${M} ${$}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((S,_)=>{var A;const[Z,G]=S.split("-");return N.length?L.createElement("ol",{key:S,dir:P==="auto"?Bs():P,tabIndex:-1,ref:B,className:d,"data-sonner-toaster":!0,"data-sonner-theme":F,"data-y-position":Z,"data-x-position":G,style:{"--front-toast-height":`${((A=Y[0])==null?void 0:A.height)||0}px`,"--width":`${ma}px`,"--gap":`${O}px`,...g,...ya(f,c)},onBlur:q=>{Q.current&&!q.currentTarget.contains(q.relatedTarget)&&(Q.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||Q.current||(Q.current=!0,U.current=q.relatedTarget)},onMouseEnter:()=>se(!0),onMouseMove:()=>se(!0),onMouseLeave:()=>{ie||se(!1)},onDragEnd:()=>se(!1),onPointerDown:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||le(!0)},onPointerUp:()=>le(!1)},N.filter(q=>!q.position&&_===0||q.position===S).map((q,re)=>{var ve,Ge;return L.createElement(va,{key:q.id,icons:E,index:re,toast:q,defaultRichColors:x,duration:(ve=j?.duration)!=null?ve:v,className:j?.className,descriptionClassName:j?.descriptionClassName,invert:o,visibleToasts:y,closeButton:(Ge=j?.closeButton)!=null?Ge:i,interacting:ie,position:S,style:j?.style,unstyled:j?.unstyled,classNames:j?.classNames,cancelButtonStyle:j?.cancelButtonStyle,actionButtonStyle:j?.actionButtonStyle,closeButtonAriaLabel:j?.closeButtonAriaLabel,removeToast:C,toasts:N.filter(Se=>Se.position==q.position),heights:Y.filter(Se=>Se.position==q.position),setHeights:V,expandByDefault:u,gap:O,expanded:X,swipeDirections:s.swipeDirections})})):null}))}),wa="/api";async function ja(e){if(!e.ok){const s=await e.json().catch(()=>({message:"Unknown error"}));throw new Error(s.message||`HTTP ${e.status}`)}return e.json()}async function m(e,s={}){const r=await fetch(`${wa}${e}`,{...s,credentials:"include",headers:{"Content-Type":"application/json",...s.headers}});return ja(r)}const Ca={list:e=>{const s=new URLSearchParams;e?.limit&&s.set("limit",String(e.limit)),e?.offset&&s.set("offset",String(e.offset)),e?.status&&s.set("status",e.status);const r=s.toString();return m(`/tasks${r?`?${r}`:""}`)},get:async e=>(await m(`/tasks/${e}`)).task,create:e=>m("/tasks",{method:"POST",body:JSON.stringify(e)}),update:(e,s)=>m(`/tasks/${e}`,{method:"PATCH",body:JSON.stringify(s)}),delete:e=>m(`/tasks/${e}`,{method:"DELETE"}),cancel:e=>m(`/tasks/${e}/cancel`,{method:"POST"}),retry:e=>m(`/tasks/${e}/retry`,{method:"POST"}),analytics:()=>m("/tasks/analytics"),filter:e=>{const s=new URLSearchParams;e.status&&s.set("status",Array.isArray(e.status)?e.status.join(","):e.status),e.priority&&s.set("priority",Array.isArray(e.priority)?e.priority.join(","):String(e.priority)),e.source&&s.set("source",Array.isArray(e.source)?e.source.join(","):e.source),e.agent&&s.set("agent",e.agent),e.labels&&s.set("labels",e.labels.join(",")),e.createdAfter&&s.set("createdAfter",e.createdAfter),e.createdBefore&&s.set("createdBefore",e.createdBefore),e.q&&s.set("q",e.q),e.sortBy&&s.set("sortBy",e.sortBy),e.sortOrder&&s.set("sortOrder",e.sortOrder),e.limit&&s.set("limit",String(e.limit)),e.offset&&s.set("offset",String(e.offset));const r=s.toString();return m(`/tasks/filter${r?`?${r}`:""}`)},events:e=>m(`/tasks/${e}/events`),archived:e=>{const s=new URLSearchParams;e?.limit&&s.set("limit",String(e.limit)),e?.offset&&s.set("offset",String(e.offset));const r=s.toString();return m(`/tasks/archived${r?`?${r}`:""}`)},archive:(e=30)=>m("/tasks/archive",{method:"POST",body:JSON.stringify({olderThanDays:e})})},ka={list:e=>{const s=new URLSearchParams;e?.limit&&s.set("limit",String(e.limit)),e?.offset&&s.set("offset",String(e.offset)),e?.agent&&s.set("agent",e.agent);const r=s.toString();return m(`/summaries${r?`?${r}`:""}`)},get:async e=>(await m(`/summaries/${e}`)).summary,recent:async(e=10)=>(await m(`/summaries/recent?limit=${e}`)).summaries,stats:()=>m("/summaries/stats")},Na={list:e=>{const s=new URLSearchParams;e?.projectId&&s.set("projectId",e.projectId),e?.sprintId&&s.set("sprintId",e.sprintId),e?.inBacklog&&s.set("inBacklog","true"),e?.status&&s.set("status",Array.isArray(e.status)?e.status.join(","):e.status),e?.type&&s.set("type",Array.isArray(e.type)?e.type.join(","):e.type),e?.priority&&s.set("priority",Array.isArray(e.priority)?e.priority.join(","):e.priority),e?.assignee&&s.set("assignee",e.assignee),e?.assigneeAgent&&s.set("assigneeAgent",e.assigneeAgent),e?.parentId&&s.set("parentId",e.parentId),e?.search&&s.set("search",e.search),e?.createdBy&&s.set("createdBy",e.createdBy),e?.label&&s.set("label",e.label),e?.labels&&s.set("labels",e.labels.join(",")),e?.sortBy&&s.set("sortBy",e.sortBy),e?.sortOrder&&s.set("sortOrder",e.sortOrder),e?.limit&&s.set("limit",String(e.limit)),e?.offset&&s.set("offset",String(e.offset));const r=s.toString();return m(`/tickets${r?`?${r}`:""}`)},get:async(e,s=!1)=>(await m(`/tickets/${e}${s?"?include=all":""}`)).ticket,create:e=>m("/tickets",{method:"POST",body:JSON.stringify(e)}),update:(e,s)=>m(`/tickets/${e}`,{method:"PATCH",body:JSON.stringify(s)}),delete:e=>m(`/tickets/${e}`,{method:"DELETE"}),transition:(e,s)=>m(`/tickets/${e}/transition`,{method:"POST",body:JSON.stringify({status:s})}),assignAgent:(e,s)=>m(`/tickets/${e}/assign-agent`,{method:"POST",body:JSON.stringify({agent:s})}),getComments:e=>m(`/tickets/${e}/comments`),addComment:(e,s,r)=>m(`/tickets/${e}/comments`,{method:"POST",body:JSON.stringify({content:s,author:r})}),getLinks:e=>m(`/tickets/${e}/links`),addLink:(e,s)=>m(`/tickets/${e}/links`,{method:"POST",body:JSON.stringify(s)}),getHistory:e=>m(`/tickets/${e}/history`),ai:{status:()=>m("/tickets/ai/status"),responderStatus:()=>m("/tickets/ai/responder-status"),categorize:(e,s)=>m("/tickets/ai/categorize",{method:"POST",body:JSON.stringify({title:e,description:s})}),suggest:(e,s,r)=>m("/tickets/ai/suggest",{method:"POST",body:JSON.stringify({title:e,description:s,type:r})}),summary:e=>m(`/tickets/${e}/ai/summary`),similar:(e,s=5)=>m(`/tickets/${e}/similar?limit=${s}`),respond:(e,s)=>m(`/tickets/${e}/comments/ai-respond`,{method:"POST",body:JSON.stringify(s||{})}),analyzeComment:(e,s)=>m(`/tickets/${e}/ai/analyze-comment`,{method:"POST",body:JSON.stringify({content:s})})},checklists:{list:e=>m(`/tickets/${e}/checklists`),create:(e,s)=>m(`/tickets/${e}/checklists`,{method:"POST",body:JSON.stringify(s)}),update:(e,s,r)=>m(`/tickets/${e}/checklists/${s}`,{method:"PATCH",body:JSON.stringify(r)}),delete:(e,s)=>m(`/tickets/${e}/checklists/${s}`,{method:"DELETE"}),addItem:(e,s,r)=>m(`/tickets/${e}/checklists/${s}/items`,{method:"POST",body:JSON.stringify(r)}),updateItem:(e,s,r,a)=>m(`/tickets/${e}/checklists/${s}/items/${r}`,{method:"PATCH",body:JSON.stringify(a)}),deleteItem:(e,s,r)=>m(`/tickets/${e}/checklists/${s}/items/${r}`,{method:"DELETE"}),reorderItems:(e,s,r)=>m(`/tickets/${e}/checklists/${s}/reorder`,{method:"POST",body:JSON.stringify({itemIds:r})})},addRelation:(e,s,r)=>m(`/tickets/${e}/relations`,{method:"POST",body:JSON.stringify({targetTicketId:s,relationType:r})}),removeRelation:(e,s)=>m(`/tickets/${e}/relations/${s}`,{method:"DELETE"})},u1={completions:e=>m("/chat/completions",{method:"POST",body:JSON.stringify(e)}),models:e=>{const s=e?`?provider=${e}`:"";return m(`/chat/models${s}`)},providers:()=>m("/chat/providers"),setDefault:e=>m("/chat/providers/default",{method:"POST",body:JSON.stringify({provider:e})}),configure:(e,s)=>m(`/chat/providers/${e}/configure`,{method:"POST",body:JSON.stringify({type:e,...s})}),quick:(e,s)=>m("/chat/quick",{method:"POST",body:JSON.stringify({prompt:e,...s})}),health:e=>m(`/chat/providers/${e}/health`,{method:"POST"}),presets:()=>m("/chat/presets"),quickActions:()=>m("/chat/quick-actions"),skills:{list:()=>m("/chat/skills"),detect:(e,s)=>m("/chat/skills/detect",{method:"POST",body:JSON.stringify({message:e,...s})}),route:(e,s)=>m("/chat/skills/route",{method:"POST",body:JSON.stringify({message:e,...s})})},smart:e=>m("/chat/smart",{method:"POST",body:JSON.stringify(e)}),conversations:{list:e=>{const s=new URLSearchParams;e?.limit&&s.set("limit",e.limit.toString()),e?.offset&&s.set("offset",e.offset.toString()),e?.taskId&&s.set("taskId",e.taskId),e?.ticketId&&s.set("ticketId",e.ticketId);const r=s.toString();return m(`/chat/conversations${r?`?${r}`:""}`)},recent:(e=10)=>m(`/chat/conversations/recent?limit=${e}`),create:e=>m("/chat/conversations",{method:"POST",body:JSON.stringify(e)}),get:e=>m(`/chat/conversations/${e}`),delete:e=>m(`/chat/conversations/${e}`,{method:"DELETE"}),sendMessage:(e,s)=>m(`/chat/conversations/${e}/messages`,{method:"POST",body:JSON.stringify(s)}),sendMessageStream:async function*(e,s){const a=`/api/chat/conversations/${e}/messages`,o=await fetch(a,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",Accept:"text/event-stream"},body:JSON.stringify({...s,stream:!0})});if(!o.ok){const i=await o.json().catch(()=>({error:"Request failed"}));throw new Error(i.error||"Stream chat request failed")}const n=o.body?.getReader();if(!n)throw new Error("No response body");const l=new TextDecoder;let u="";try{for(;;){const{done:i,value:d}=await n.read();if(i)break;u+=l.decode(d,{stream:!0});const f=u.split(`
|
|
3
|
+
`);u=f.pop()||"";for(const c of f)if(c.startsWith("data: ")){const p=c.slice(6).trim();if(!p)continue;try{const x=JSON.parse(p);x.content!==void 0?yield{type:"content",data:x.content}:x.done===!0?yield{type:"done",data:{usage:x.usage,messageId:x.messageId,compaction:x.compaction}}:x.error!==void 0&&(yield{type:"error",data:x.error})}catch{}}}}finally{n.releaseLock()}},deleteMessage:(e,s)=>m(`/chat/conversations/${e}/messages/${s}`,{method:"DELETE"}),exportConversation:e=>m(`/chat/conversations/${e}/export`),getMemoryStats:(e,s)=>m(`/chat/conversations/${e}/memory${s?`?model=${s}`:""}`),compact:(e,s)=>m(`/chat/conversations/${e}/compact${s?`?model=${s}`:""}`,{method:"POST"}),sendMessageWithTools:(e,s)=>m(`/chat/conversations/${e}/messages/with-tools`,{method:"POST",body:JSON.stringify(s)})},tools:{approve:e=>m("/chat/tools/approve",{method:"POST",body:JSON.stringify(e)}),list:()=>m("/chat/tools")},agentic:{sendMessage:async function*(e,s){const a=`/api/chat/conversations/${e}/messages/agentic`,o=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream"},body:JSON.stringify(s)});if(!o.ok){const i=await o.json().catch(()=>({error:"Request failed"}));throw new Error(i.error||"Agentic chat request failed")}const n=o.body?.getReader();if(!n)throw new Error("No response body");const l=new TextDecoder;let u="";try{for(;;){const{done:i,value:d}=await n.read();if(i)break;u+=l.decode(d,{stream:!0});const f=u.split(`
|
|
4
|
+
`);u=f.pop()||"";for(const c of f)if(c.startsWith("data: ")){const p=c.slice(6).trim();if(p)try{yield JSON.parse(p)}catch{console.warn("Failed to parse SSE event:",p)}}}}finally{n.releaseLock()}},sendMessageAndWait:async(e,s,r)=>{const a=[];let o="",n=null;const l=[];let u=0,i=0;for await(const d of u1.agentic.sendMessage(e,s)){if(a.push(d),r?.(d),d.type==="summary"&&(o=d.data.summary),d.type==="complete"){const f=d.data;u=f.totalSteps,i=f.totalTokens,l.push(...f.toolCalls||[])}d.type==="error"&&(n=d.data.message)}return{events:a,summary:o,error:n,toolCalls:l,totalSteps:u,totalTokens:i}}}},Sa={list:e=>{const s=new URLSearchParams;e?.status&&s.set("status",e.status),e?.search&&s.set("search",e.search),e?.sortBy&&s.set("sortBy",e.sortBy),e?.sortOrder&&s.set("sortOrder",e.sortOrder),e?.limit&&s.set("limit",String(e.limit)),e?.offset&&s.set("offset",String(e.offset)),e?.includeArchived&&s.set("includeArchived","true");const r=s.toString();return m(`/projects${r?`?${r}`:""}`)},get:async(e,s)=>{const r=s?`?include=${s}`:"";return(await m(`/projects/${e}${r}`)).project},getByKey:async e=>(await m(`/projects/by-key/${e}`)).project,create:e=>m("/projects",{method:"POST",body:JSON.stringify(e)}),update:(e,s)=>m(`/projects/${e}`,{method:"PATCH",body:JSON.stringify(s)}),archive:e=>m(`/projects/${e}/archive`,{method:"POST"}),delete:e=>m(`/projects/${e}`,{method:"DELETE"}),getDefault:async()=>(await m("/projects/default")).project,migrate:()=>m("/projects/migrate",{method:"POST"}),getExternalLinks:e=>m(`/projects/${e}/external-links`),addExternalLink:(e,s)=>m(`/projects/${e}/external-links`,{method:"POST",body:JSON.stringify(s)}),sprints:{list:(e,s)=>{const r=new URLSearchParams;s?.status&&r.set("status",s.status),s?.search&&r.set("search",s.search),s?.sortBy&&r.set("sortBy",s.sortBy),s?.sortOrder&&r.set("sortOrder",s.sortOrder),s?.limit&&r.set("limit",String(s.limit)),s?.offset&&r.set("offset",String(s.offset));const a=r.toString();return m(`/projects/${e}/sprints${a?`?${a}`:""}`)},get:async(e,s,r)=>{const a=r?`?include=${r}`:"";return(await m(`/projects/${e}/sprints/${s}${a}`)).sprint},getActive:async e=>(await m(`/projects/${e}/sprints/active`)).sprint,create:(e,s)=>m(`/projects/${e}/sprints`,{method:"POST",body:JSON.stringify(s)}),update:(e,s,r)=>m(`/projects/${e}/sprints/${s}`,{method:"PATCH",body:JSON.stringify(r)}),start:(e,s)=>m(`/projects/${e}/sprints/${s}/start`,{method:"POST"}),complete:(e,s)=>m(`/projects/${e}/sprints/${s}/complete`,{method:"POST"}),cancel:(e,s)=>m(`/projects/${e}/sprints/${s}/cancel`,{method:"POST"}),delete:(e,s)=>m(`/projects/${e}/sprints/${s}`,{method:"DELETE"}),getTickets:(e,s)=>m(`/projects/${e}/sprints/${s}/tickets`),addTickets:(e,s,r)=>m(`/projects/${e}/sprints/${s}/tickets`,{method:"POST",body:JSON.stringify({ticketIds:r})}),removeTicket:(e,s,r)=>m(`/projects/${e}/sprints/${s}/tickets/${r}`,{method:"DELETE"}),reorderTickets:(e,s,r)=>m(`/projects/${e}/sprints/${s}/tickets/reorder`,{method:"PUT",body:JSON.stringify({ticketOrder:r})})}},La={list:(e,s)=>{const r=new URLSearchParams;s?.search&&r.set("search",s.search),s?.includeGlobal&&r.set("includeGlobal","true");const a=r.toString();return m(`/projects/${e}/labels${a?`?${a}`:""}`)},create:(e,s)=>m(`/projects/${e}/labels`,{method:"POST",body:JSON.stringify(s)}),update:(e,s)=>m(`/labels/${e}`,{method:"PATCH",body:JSON.stringify(s)}),delete:e=>m(`/labels/${e}`,{method:"DELETE"}),getTicketLabels:e=>m(`/tickets/${e}/labels`),setTicketLabels:(e,s)=>m(`/tickets/${e}/labels`,{method:"PUT",body:JSON.stringify({labelIds:s})}),addTicketLabel:(e,s)=>m(`/tickets/${e}/labels/${s}`,{method:"POST"}),removeTicketLabel:(e,s)=>m(`/tickets/${e}/labels/${s}`,{method:"DELETE"})},Ma={github:{validateToken:e=>m("/import/github/validate-token",{method:"POST",body:JSON.stringify({token:e})}),status:()=>m("/import/github/status"),disconnect:()=>m("/import/github/disconnect",{method:"DELETE"}),listProjects:()=>m("/import/github/projects"),getPreview:e=>m(`/import/github/projects/${encodeURIComponent(e)}/preview`),execute:(e,s)=>m(`/import/github/projects/${encodeURIComponent(e)}/execute`,{method:"POST",body:JSON.stringify(s)})}},Aa={list:e=>{const s=new URLSearchParams;e?.status&&s.set("status",e.status),e?.jobType&&s.set("jobType",e.jobType),e?.projectId&&s.set("projectId",e.projectId),e?.userId&&s.set("userId",e.userId),e?.limit&&s.set("limit",String(e.limit));const r=s.toString();return m(`/cron/jobs${r?`?${r}`:""}`)},get:e=>m(`/cron/jobs/${e}`),create:e=>m("/cron/jobs",{method:"POST",body:JSON.stringify(e)}),update:(e,s)=>m(`/cron/jobs/${e}`,{method:"PATCH",body:JSON.stringify(s)}),delete:e=>m(`/cron/jobs/${e}`,{method:"DELETE"}),trigger:e=>m(`/cron/jobs/${e}/trigger`,{method:"POST"}),pause:e=>m(`/cron/jobs/${e}/pause`,{method:"POST"}),resume:e=>m(`/cron/jobs/${e}/resume`,{method:"POST"}),archive:e=>m(`/cron/jobs/${e}/archive`,{method:"POST"}),restore:e=>m(`/cron/jobs/${e}/restore`,{method:"POST"}),history:(e,s=20)=>m(`/cron/jobs/${e}/history?limit=${s}`),stats:()=>m("/cron/stats"),listTemplates:e=>{const s=new URLSearchParams;e?.category&&s.set("category",e.category),e?.jobType&&s.set("jobType",e.jobType),e?.includeBuiltIn!==void 0&&s.set("includeBuiltIn",String(e.includeBuiltIn));const r=s.toString();return m(`/cron/templates${r?`?${r}`:""}`)},getTemplate:e=>m(`/cron/templates/${e}`),createTemplate:e=>m("/cron/templates",{method:"POST",body:JSON.stringify(e)}),deleteTemplate:e=>m(`/cron/templates/${e}`,{method:"DELETE"}),createFromTemplate:e=>m("/cron/jobs/from-template",{method:"POST",body:JSON.stringify(e)}),triggerEvent:(e,s)=>m("/cron/events",{method:"POST",body:JSON.stringify({eventType:e,eventData:s})})},Ea={list:e=>{const s=new URLSearchParams;e?.limit&&s.set("limit",String(e.limit)),e?.unread&&s.set("unread","true");const r=s.toString();return m(`/notifications${r?`?${r}`:""}`)},create:e=>m("/notifications",{method:"POST",body:JSON.stringify(e)}),markRead:e=>m(`/notifications/${e}/read`,{method:"PATCH"}),markAllRead:()=>m("/notifications/mark-all-read",{method:"POST"}),delete:e=>m(`/notifications/${e}`,{method:"DELETE"}),unreadCount:()=>m("/notifications/unread-count")},$a={check:()=>m("/health")},Ta={get:()=>m("/stats"),dashboard:()=>m("/stats/dashboard"),sprintBurndown:e=>m(`/stats/sprints/${e}/burndown`),projectVelocity:e=>m(`/stats/projects/${e}/velocity`),projectStats:e=>m(`/stats/projects/${e}`)},_a={summary:()=>m("/costs/summary"),analytics:()=>m("/costs/analytics"),budget:()=>m("/costs/budget"),routing:()=>m("/costs/routing"),optimize:()=>m("/costs/optimize")},Pa={list:e=>m(`/teams?userId=${e}`),get:e=>m(`/teams/${e}`),create:e=>m("/teams",{method:"POST",body:JSON.stringify(e)}),members:e=>m(`/teams/${e}/members`),usage:e=>m(`/teams/${e}/usage`),invite:(e,s,r,a)=>m(`/teams/${e}/invites`,{method:"POST",body:JSON.stringify({email:s,role:r,invitedBy:a})})},za={insights:()=>m("/memory/insights"),observe:(e,s)=>m("/memory/observe",{method:"POST",body:JSON.stringify({conversationId:e,messages:s})}),importSources:()=>m("/memory/import/sources"),importFrom:(e,s)=>m("/memory/import",{method:"POST",body:JSON.stringify({source:e,...s})}),search:(e,s)=>m(`/memory/search?query=${encodeURIComponent(e)}&maxResults=${s??6}`)},Oa={list:()=>m("/skills"),categories:()=>m("/skills/categories"),overview:()=>m("/skills/stats/overview"),effectiveness:e=>m(`/skills/${e}/effectiveness`),marketplaceSearch:(e,s)=>m(`/skills/marketplace/search?${e?`q=${encodeURIComponent(e)}`:""}${s?`&category=${s}`:""}`),install:e=>m("/skills/marketplace/install",{method:"POST",body:JSON.stringify({source:e})}),uninstall:e=>m(`/skills/marketplace/${e}`,{method:"DELETE"}),checkUpdates:()=>m("/skills/marketplace/updates"),toggle:(e,s)=>m(`/skills/${e}/toggle`,{method:"POST",body:JSON.stringify({enabled:s})})},Ia={list:e=>m(`/feeds${e?`?category=${e}`:""}`),add:(e,s,r)=>m("/feeds",{method:"POST",body:JSON.stringify({name:e,url:s,category:r})}),installBundle:e=>m("/feeds/bundles/install",{method:"POST",body:JSON.stringify({bundle:e})}),poll:e=>m("/feeds/poll",{method:"POST",body:JSON.stringify({feedId:e})}),digest:(e,s)=>m(`/feeds/digest?hours=${e??24}${s?`&category=${s}`:""}`),discover:e=>m(`/feeds/discover?url=${encodeURIComponent(e)}`)},Ra={list:()=>m("/dlq"),stats:()=>m("/dlq/stats"),retry:e=>m(`/dlq/${e}/retry`,{method:"POST"}),remove:e=>m(`/dlq/${e}`,{method:"DELETE"})},Ba={status:()=>m("/integrations/status")},Ha={get:()=>m("/settings"),update:e=>m("/settings",{method:"PATCH",body:JSON.stringify(e)}),reset:()=>m("/settings/reset",{method:"POST"})},Da={health:()=>m("/plugins/health"),toggle:(e,s)=>m(`/plugins/${e}/toggle`,{method:"POST",body:JSON.stringify({enabled:s})})},Va={status:()=>m("/gateway/status"),agents:()=>m("/gateway/agents"),workflows:()=>m("/gateway/workflows"),workflow:e=>m(`/gateway/workflows/${e}`),config:()=>m("/gateway/config"),execute:e=>m("/gateway/execute",{method:"POST",body:JSON.stringify(e)}),updateConfig:e=>m("/gateway/config",{method:"PATCH",body:JSON.stringify(e)})},Ga={status:()=>m("/sync/status"),trigger:e=>m("/sync/trigger",{method:"POST",body:JSON.stringify({platform:e})}),push:(e,s)=>m(`/sync/push/${e}`,{method:"POST",body:JSON.stringify({platform:s})}),conflicts:()=>m("/sync/conflicts"),resolveConflict:(e,s)=>m(`/sync/conflicts/${e}/resolve`,{method:"POST",body:JSON.stringify({resolution:s})})},Fa={list:e=>{const s=e?`?projectId=${e}`:"";return m(`/states${s}`)},get:e=>m(`/states/${e}`),create:e=>m("/states",{method:"POST",body:JSON.stringify(e)}),update:(e,s)=>m(`/states/${e}`,{method:"PATCH",body:JSON.stringify(s)}),delete:e=>m(`/states/${e}`,{method:"DELETE"})},Za={mentions:(e,s="all",r=5)=>m(`/search/mentions?q=${encodeURIComponent(e)}&type=${s}&limit=${r}`)},mt={tasks:Ca,summaries:ka,health:$a.check,integrations:Ba,dlq:Ra,stats:Ta,costs:_a,settings:Ha,plugins:Da,gateway:Va,tickets:Na,chat:u1,projects:Sa,labels:La,sync:Ga,import:Ma,cron:Aa,states:Fa,search:Za,notifications:Ea,teams:Pa,memory:za,feeds:Ia,skills:Oa},Ua="http://localhost:3000";function qa(){const e=gs(),s=h.useRef(null),r=h.useRef(null),a=h.useRef({taskComplete:!0,taskFailed:!0,browserNotifications:!1}),{data:o}=He({queryKey:["settings"],queryFn:()=>mt.settings.get(),staleTime:3e4});h.useEffect(()=>{const u=o?.settings?.notifications;a.current={taskComplete:u?.taskComplete??!0,taskFailed:u?.taskFailed??!0,browserNotifications:u?.browserNotifications??!1}},[o]);const n=h.useCallback(()=>{if(s.current?.readyState===EventSource.OPEN)return;const u=new EventSource(`${Ua}/api/events`);s.current=u,u.addEventListener("connected",i=>{const d=JSON.parse(i.data);console.log("[SSE] Connected:",d.message)}),u.addEventListener("ping",()=>{}),u.addEventListener("task:created",i=>{const d=JSON.parse(i.data);e.invalidateQueries({queryKey:["tasks"]}),ce.info(`New task: ${d.task.title}`)}),u.addEventListener("task:started",i=>{const d=JSON.parse(i.data);e.invalidateQueries({queryKey:["tasks"]}),e.invalidateQueries({queryKey:["tasks",d.taskId]})}),u.addEventListener("task:completed",i=>{const d=JSON.parse(i.data);e.invalidateQueries({queryKey:["tasks"]}),e.invalidateQueries({queryKey:["tasks",d.taskId]}),e.invalidateQueries({queryKey:["summaries"]}),a.current.taskComplete&&(ce.success(`Task completed: ${d.task.title}`),a.current.browserNotifications&&Notification.permission==="granted"&&new Notification("Task Completed",{body:d.task.title}))}),u.addEventListener("task:failed",i=>{const d=JSON.parse(i.data);e.invalidateQueries({queryKey:["tasks"]}),e.invalidateQueries({queryKey:["tasks",d.taskId]}),e.invalidateQueries({queryKey:["dlq"]}),a.current.taskFailed&&(ce.error(`Task failed: ${d.task.title}`,{description:d.result?.error}),a.current.browserNotifications&&Notification.permission==="granted"&&new Notification("Task Failed",{body:`${d.task.title}${d.result?.error?": "+d.result.error:""}`}))}),u.addEventListener("task:progress",i=>{const d=JSON.parse(i.data);e.invalidateQueries({queryKey:["tasks",d.taskId]})}),u.addEventListener("notification:new",()=>{e.invalidateQueries({queryKey:["notifications"]})}),u.onerror=()=>{console.log("[SSE] Connection error, will reconnect..."),u.close(),s.current=null,r.current&&clearTimeout(r.current),r.current=setTimeout(n,5e3)}},[e]),l=h.useCallback(()=>{r.current&&(clearTimeout(r.current),r.current=null),s.current&&(s.current.close(),s.current=null)},[]);return h.useEffect(()=>(n(),()=>l()),[n,l]),{connect:n,disconnect:l}}function Wa({children:e}){return qa(),t.jsx(t.Fragment,{children:e})}function h1(e){var s,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(s=0;s<o;s++)e[s]&&(r=h1(e[s]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function m1(){for(var e,s,r=0,a="",o=arguments.length;r<o;r++)(e=arguments[r])&&(s=h1(e))&&(a&&(a+=" "),a+=s);return a}const Hs=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ds=m1,Ja=(e,s)=>r=>{var a;if(s?.variants==null)return Ds(e,r?.class,r?.className);const{variants:o,defaultVariants:n}=s,l=Object.keys(o).map(d=>{const f=r?.[d],c=n?.[d];if(f===null)return null;const p=Hs(f)||Hs(c);return o[d][p]}),u=r&&Object.entries(r).reduce((d,f)=>{let[c,p]=f;return p===void 0||(d[c]=p),d},{}),i=s==null||(a=s.compoundVariants)===null||a===void 0?void 0:a.reduce((d,f)=>{let{class:c,className:p,...x}=f;return Object.entries(x).every(v=>{let[g,y]=v;return Array.isArray(y)?y.includes({...n,...u}[g]):{...n,...u}[g]===y})?[...d,c,p]:d},[]);return Ds(e,l,i,r?.class,r?.className)},Ka=(e,s)=>{const r=new Array(e.length+s.length);for(let a=0;a<e.length;a++)r[a]=e[a];for(let a=0;a<s.length;a++)r[e.length+a]=s[a];return r},Ya=(e,s)=>({classGroupId:e,validator:s}),p1=(e=new Map,s=null,r)=>({nextPart:e,validators:s,classGroupId:r}),It="-",Vs=[],Qa="arbitrary..",Xa=e=>{const s=to(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return eo(l);const u=l.split(It),i=u[0]===""&&u.length>1?1:0;return f1(u,i,s)},getConflictingClassGroupIds:(l,u)=>{if(u){const i=a[l],d=r[l];return i?d?Ka(d,i):i:d||Vs}return r[l]||Vs}}},f1=(e,s,r)=>{if(e.length-s===0)return r.classGroupId;const o=e[s],n=r.nextPart.get(o);if(n){const d=f1(e,s+1,n);if(d)return d}const l=r.validators;if(l===null)return;const u=s===0?e.join(It):e.slice(s).join(It),i=l.length;for(let d=0;d<i;d++){const f=l[d];if(f.validator(u))return f.classGroupId}},eo=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const s=e.slice(1,-1),r=s.indexOf(":"),a=s.slice(0,r);return a?Qa+a:void 0})(),to=e=>{const{theme:s,classGroups:r}=e;return so(r,s)},so=(e,s)=>{const r=p1();for(const a in e){const o=e[a];ys(o,r,a,s)}return r},ys=(e,s,r,a)=>{const o=e.length;for(let n=0;n<o;n++){const l=e[n];ro(l,s,r,a)}},ro=(e,s,r,a)=>{if(typeof e=="string"){ao(e,s,r);return}if(typeof e=="function"){oo(e,s,r,a);return}no(e,s,r,a)},ao=(e,s,r)=>{const a=e===""?s:x1(s,e);a.classGroupId=r},oo=(e,s,r,a)=>{if(io(e)){ys(e(a),s,r,a);return}s.validators===null&&(s.validators=[]),s.validators.push(Ya(r,e))},no=(e,s,r,a)=>{const o=Object.entries(e),n=o.length;for(let l=0;l<n;l++){const[u,i]=o[l];ys(i,x1(s,u),r,a)}},x1=(e,s)=>{let r=e;const a=s.split(It),o=a.length;for(let n=0;n<o;n++){const l=a[n];let u=r.nextPart.get(l);u||(u=p1(),r.nextPart.set(l,u)),r=u}return r},io=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,lo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let s=0,r=Object.create(null),a=Object.create(null);const o=(n,l)=>{r[n]=l,s++,s>e&&(s=0,a=r,r=Object.create(null))};return{get(n){let l=r[n];if(l!==void 0)return l;if((l=a[n])!==void 0)return o(n,l),l},set(n,l){n in r?r[n]=l:o(n,l)}}},cs="!",Gs=":",co=[],Fs=(e,s,r,a,o)=>({modifiers:e,hasImportantModifier:s,baseClassName:r,maybePostfixModifierPosition:a,isExternal:o}),uo=e=>{const{prefix:s,experimentalParseClassName:r}=e;let a=o=>{const n=[];let l=0,u=0,i=0,d;const f=o.length;for(let g=0;g<f;g++){const y=o[g];if(l===0&&u===0){if(y===Gs){n.push(o.slice(i,g)),i=g+1;continue}if(y==="/"){d=g;continue}}y==="["?l++:y==="]"?l--:y==="("?u++:y===")"&&u--}const c=n.length===0?o:o.slice(i);let p=c,x=!1;c.endsWith(cs)?(p=c.slice(0,-1),x=!0):c.startsWith(cs)&&(p=c.slice(1),x=!0);const v=d&&d>i?d-i:void 0;return Fs(n,x,p,v)};if(s){const o=s+Gs,n=a;a=l=>l.startsWith(o)?n(l.slice(o.length)):Fs(co,!1,l,void 0,!0)}if(r){const o=a;a=n=>r({className:n,parseClassName:o})}return a},ho=e=>{const s=new Map;return e.orderSensitiveModifiers.forEach((r,a)=>{s.set(r,1e6+a)}),r=>{const a=[];let o=[];for(let n=0;n<r.length;n++){const l=r[n],u=l[0]==="[",i=s.has(l);u||i?(o.length>0&&(o.sort(),a.push(...o),o=[]),a.push(l)):o.push(l)}return o.length>0&&(o.sort(),a.push(...o)),a}},mo=e=>({cache:lo(e.cacheSize),parseClassName:uo(e),sortModifiers:ho(e),...Xa(e)}),po=/\s+/,fo=(e,s)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:n}=s,l=[],u=e.trim().split(po);let i="";for(let d=u.length-1;d>=0;d-=1){const f=u[d],{isExternal:c,modifiers:p,hasImportantModifier:x,baseClassName:v,maybePostfixModifierPosition:g}=r(f);if(c){i=f+(i.length>0?" "+i:i);continue}let y=!!g,j=a(y?v.substring(0,g):v);if(!j){if(!y){i=f+(i.length>0?" "+i:i);continue}if(j=a(v),!j){i=f+(i.length>0?" "+i:i);continue}y=!1}const P=p.length===0?"":p.length===1?p[0]:n(p).join(":"),O=x?P+cs:P,E=O+j;if(l.indexOf(E)>-1)continue;l.push(E);const M=o(j,y);for(let w=0;w<M.length;++w){const b=M[w];l.push(O+b)}i=f+(i.length>0?" "+i:i)}return i},xo=(...e)=>{let s=0,r,a,o="";for(;s<e.length;)(r=e[s++])&&(a=g1(r))&&(o&&(o+=" "),o+=a);return o},g1=e=>{if(typeof e=="string")return e;let s,r="";for(let a=0;a<e.length;a++)e[a]&&(s=g1(e[a]))&&(r&&(r+=" "),r+=s);return r},go=(e,...s)=>{let r,a,o,n;const l=i=>{const d=s.reduce((f,c)=>c(f),e());return r=mo(d),a=r.cache.get,o=r.cache.set,n=u,u(i)},u=i=>{const d=a(i);if(d)return d;const f=fo(i,r);return o(i,f),f};return n=l,(...i)=>n(xo(...i))},vo=[],ue=e=>{const s=r=>r[e]||vo;return s.isThemeGetter=!0,s},v1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,y1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,yo=/^\d+\/\d+$/,bo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wo=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,jo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Co=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ko=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,it=e=>yo.test(e),J=e=>!!e&&!Number.isNaN(Number(e)),Ze=e=>!!e&&Number.isInteger(Number(e)),es=e=>e.endsWith("%")&&J(e.slice(0,-1)),Ie=e=>bo.test(e),No=()=>!0,So=e=>wo.test(e)&&!jo.test(e),b1=()=>!1,Lo=e=>Co.test(e),Mo=e=>ko.test(e),Ao=e=>!I(e)&&!R(e),Eo=e=>pt(e,C1,b1),I=e=>v1.test(e),Qe=e=>pt(e,k1,So),ts=e=>pt(e,zo,J),Zs=e=>pt(e,w1,b1),$o=e=>pt(e,j1,Mo),$t=e=>pt(e,N1,Lo),R=e=>y1.test(e),gt=e=>ft(e,k1),To=e=>ft(e,Oo),Us=e=>ft(e,w1),_o=e=>ft(e,C1),Po=e=>ft(e,j1),Tt=e=>ft(e,N1,!0),pt=(e,s,r)=>{const a=v1.exec(e);return a?a[1]?s(a[1]):r(a[2]):!1},ft=(e,s,r=!1)=>{const a=y1.exec(e);return a?a[1]?s(a[1]):r:!1},w1=e=>e==="position"||e==="percentage",j1=e=>e==="image"||e==="url",C1=e=>e==="length"||e==="size"||e==="bg-size",k1=e=>e==="length",zo=e=>e==="number",Oo=e=>e==="family-name",N1=e=>e==="shadow",Io=()=>{const e=ue("color"),s=ue("font"),r=ue("text"),a=ue("font-weight"),o=ue("tracking"),n=ue("leading"),l=ue("breakpoint"),u=ue("container"),i=ue("spacing"),d=ue("radius"),f=ue("shadow"),c=ue("inset-shadow"),p=ue("text-shadow"),x=ue("drop-shadow"),v=ue("blur"),g=ue("perspective"),y=ue("aspect"),j=ue("ease"),P=ue("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...E(),R,I],w=()=>["auto","hidden","clip","visible","scroll"],b=()=>["auto","contain","none"],N=()=>[R,I,i],T=()=>[it,"full","auto",...N()],Y=()=>[Ze,"none","subgrid",R,I],V=()=>["auto",{span:["full",Ze,R,I]},Ze,R,I],X=()=>[Ze,"auto",R,I],se=()=>["auto","min","max","fr",R,I],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],le=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...N()],K=()=>[it,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],B=()=>[e,R,I],$=()=>[...E(),Us,Zs,{position:[R,I]}],U=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",_o,Eo,{size:[R,I]}],C=()=>[es,gt,Qe],S=()=>["","none","full",d,R,I],_=()=>["",J,gt,Qe],A=()=>["solid","dashed","dotted","double"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[J,es,Us,Zs],q=()=>["","none",v,R,I],re=()=>["none",J,R,I],ve=()=>["none",J,R,I],Ge=()=>[J,R,I],Se=()=>[it,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ie],breakpoint:[Ie],color:[No],container:[Ie],"drop-shadow":[Ie],ease:["in","out","in-out"],font:[Ao],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ie],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ie],shadow:[Ie],spacing:["px",J],text:[Ie],"text-shadow":[Ie],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",it,I,R,y]}],container:["container"],columns:[{columns:[J,I,R,u]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:M()}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:b()}],"overscroll-x":[{"overscroll-x":b()}],"overscroll-y":[{"overscroll-y":b()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[Ze,"auto",R,I]}],basis:[{basis:[it,"full","auto",u,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[J,it,"auto","initial","none",I]}],grow:[{grow:["",J,R,I]}],shrink:[{shrink:["",J,R,I]}],order:[{order:[Ze,"first","last","none",R,I]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:V()}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:V()}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...le(),"normal"]}],"justify-self":[{"justify-self":["auto",...le()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...le(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...le(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...le(),"baseline"]}],"place-self":[{"place-self":["auto",...le()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[u,"screen",...K()]}],"min-w":[{"min-w":[u,"screen","none",...K()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",r,gt,Qe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,R,ts]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",es,I]}],"font-family":[{font:[To,I,s]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,R,I]}],"line-clamp":[{"line-clamp":[J,"none",R,ts]}],leading:[{leading:[n,...N()]}],"list-image":[{"list-image":["none",R,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",R,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...A(),"wavy"]}],"text-decoration-thickness":[{decoration:[J,"from-font","auto",R,Qe]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[J,"auto",R,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",R,I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",R,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$()}],"bg-repeat":[{bg:U()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ze,R,I],radial:["",R,I],conic:[Ze,R,I]},Po,$o]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:C()}],"gradient-via-pos":[{via:C()}],"gradient-to-pos":[{to:C()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:_()}],"border-w-x":[{"border-x":_()}],"border-w-y":[{"border-y":_()}],"border-w-s":[{"border-s":_()}],"border-w-e":[{"border-e":_()}],"border-w-t":[{"border-t":_()}],"border-w-r":[{"border-r":_()}],"border-w-b":[{"border-b":_()}],"border-w-l":[{"border-l":_()}],"divide-x":[{"divide-x":_()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":_()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...A(),"hidden","none"]}],"divide-style":[{divide:[...A(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...A(),"none","hidden"]}],"outline-offset":[{"outline-offset":[J,R,I]}],"outline-w":[{outline:["",J,gt,Qe]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",f,Tt,$t]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",c,Tt,$t]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:_()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[J,Qe]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":_()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",p,Tt,$t]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[J,R,I]}],"mix-blend":[{"mix-blend":[...Z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Z()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[J]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[R,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[J]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$()}],"mask-repeat":[{mask:U()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",R,I]}],filter:[{filter:["","none",R,I]}],blur:[{blur:q()}],brightness:[{brightness:[J,R,I]}],contrast:[{contrast:[J,R,I]}],"drop-shadow":[{"drop-shadow":["","none",x,Tt,$t]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",J,R,I]}],"hue-rotate":[{"hue-rotate":[J,R,I]}],invert:[{invert:["",J,R,I]}],saturate:[{saturate:[J,R,I]}],sepia:[{sepia:["",J,R,I]}],"backdrop-filter":[{"backdrop-filter":["","none",R,I]}],"backdrop-blur":[{"backdrop-blur":q()}],"backdrop-brightness":[{"backdrop-brightness":[J,R,I]}],"backdrop-contrast":[{"backdrop-contrast":[J,R,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",J,R,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[J,R,I]}],"backdrop-invert":[{"backdrop-invert":["",J,R,I]}],"backdrop-opacity":[{"backdrop-opacity":[J,R,I]}],"backdrop-saturate":[{"backdrop-saturate":[J,R,I]}],"backdrop-sepia":[{"backdrop-sepia":["",J,R,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",R,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[J,"initial",R,I]}],ease:[{ease:["linear","initial",j,R,I]}],delay:[{delay:[J,R,I]}],animate:[{animate:["none",P,R,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,R,I]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:re()}],"rotate-x":[{"rotate-x":re()}],"rotate-y":[{"rotate-y":re()}],"rotate-z":[{"rotate-z":re()}],scale:[{scale:ve()}],"scale-x":[{"scale-x":ve()}],"scale-y":[{"scale-y":ve()}],"scale-z":[{"scale-z":ve()}],"scale-3d":["scale-3d"],skew:[{skew:Ge()}],"skew-x":[{"skew-x":Ge()}],"skew-y":[{"skew-y":Ge()}],transform:[{transform:[R,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Se()}],"translate-x":[{"translate-x":Se()}],"translate-y":[{"translate-y":Se()}],"translate-z":[{"translate-z":Se()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",R,I]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",R,I]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[J,gt,Qe,ts]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ro=go(Io);function k(...e){return Ro(m1(e))}const Bo=Ja("inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring)] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 cursor-pointer select-none",{variants:{variant:{default:"btn-primary",destructive:"btn-destructive",outline:"btn-primary-outline",secondary:"btn-secondary",ghost:"btn-ghost",link:"text-[var(--primary)] underline-offset-4 hover:underline bg-transparent border-none shadow-none",success:"btn-success",black:"btn-primary",glass:"bg-white/10 backdrop-blur-sm text-[var(--foreground)] hover:bg-white/20 shadow-xl transition-all"},size:{default:"h-10 px-4 py-2 rounded-xl",sm:"h-8 px-3 text-xs rounded-lg",lg:"h-12 px-6 text-base rounded-xl",icon:"h-10 w-10 rounded-xl"}},defaultVariants:{variant:"default",size:"default"}}),ae=h.forwardRef(({className:e,variant:s,size:r,...a},o)=>t.jsx("button",{className:k(Bo({variant:s,size:r,className:e})),ref:o,...a}));ae.displayName="Button";const Ne=h.forwardRef(({className:e,type:s,...r},a)=>t.jsx("input",{type:s,className:k("flex h-12 w-full rounded-2xl border-none field-recessed px-4 py-2 text-sm transition-all duration-300 placeholder:text-[var(--muted-foreground)]/50 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 font-medium",e),ref:a,...r}));Ne.displayName="Input";const Ee=h.forwardRef(({className:e,...s},r)=>t.jsx(c1,{ref:r,className:k("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",e),...s}));Ee.displayName=c1.displayName;const S1=(...e)=>e.filter((s,r,a)=>!!s&&s.trim()!==""&&a.indexOf(s)===r).join(" ").trim();const Ho=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const Do=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,r,a)=>a?a.toUpperCase():r.toLowerCase());const qs=e=>{const s=Do(e);return s.charAt(0).toUpperCase()+s.slice(1)};var Vo={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Go=e=>{for(const s in e)if(s.startsWith("aria-")||s==="role"||s==="title")return!0;return!1};const Fo=h.forwardRef(({color:e="currentColor",size:s=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:o="",children:n,iconNode:l,...u},i)=>h.createElement("svg",{ref:i,...Vo,width:s,height:s,stroke:e,strokeWidth:a?Number(r)*24/Number(s):r,className:S1("lucide",o),...!n&&!Go(u)&&{"aria-hidden":"true"},...u},[...l.map(([d,f])=>h.createElement(d,f)),...Array.isArray(n)?n:[n]]));const H=(e,s)=>{const r=h.forwardRef(({className:a,...o},n)=>h.createElement(Fo,{ref:n,iconNode:s,className:S1(`lucide-${Ho(qs(e))}`,`lucide-${e}`,a),...o}));return r.displayName=qs(e),r};const Zo=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Uo=H("activity",Zo);const qo=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Ws=H("arrow-left",qo);const Wo=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ae=H("arrow-right",Wo);const Jo=[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]],Ko=H("audio-lines",Jo);const Yo=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Rt=H("bell",Yo);const Qo=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],bs=H("bot",Qo);const Xo=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],en=H("brain",Xo);const tn=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],ws=H("chart-column",tn);const sn=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],de=H("check",sn);const rn=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],L1=H("chevron-down",rn);const an=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],M1=H("chevron-left",an);const on=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Bt=H("chevron-right",on);const nn=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],tt=H("circle-alert",nn);const ln=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],ds=H("circle-check-big",ln);const cn=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],dn=H("circle-check",cn);const un=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],A1=H("clock",un);const hn=[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]],E1=H("coins",hn);const mn=[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]],pn=H("command",mn);const fn=[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],xn=H("compass",fn);const gn=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],ut=H("copy",gn);const vn=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],$1=H("credit-card",vn);const yn=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],bn=H("crown",yn);const wn=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],jn=H("download",wn);const Cn=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a7 7 0 1 0 10 10",key:"1yuj32"}]],kn=H("eclipse",Cn);const Nn=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],T1=H("external-link",Nn);const Sn=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],qe=H("eye-off",Sn);const Ln=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],We=H("eye",Ln);const Mn=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],_1=H("file-text",Mn);const An=[["path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z",key:"1fr9dc"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M12 10v2",key:"hh53o1"}],["path",{d:"M16 10v6",key:"1d6xys"}]],En=H("folder-kanban",An);const $n=[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]],js=H("github",$n);const Tn=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],Cs=H("key-round",Tn);const _n=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Pn=H("key",_n);const zn=[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]],On=H("keyboard",zn);const In=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],ks=H("list-todo",In);const Rn=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Pe=H("loader-circle",Rn);const Bn=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],Hn=H("log-in",Bn);const Dn=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],P1=H("log-out",Dn);const Vn=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Gn=H("menu",Vn);const Fn=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],Zn=H("monitor",Fn);const Un=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],bt=H("moon",Un);const qn=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]],Wn=H("panel-left-close",qn);const Jn=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],Kn=H("panel-left",Jn);const Yn=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Qn=H("plus",Yn);const Xn=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],ei=H("refresh-cw",Xn);const ti=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],si=H("rotate-ccw",ti);const ri=[["path",{d:"M4 11a9 9 0 0 1 9 9",key:"pv89mb"}],["path",{d:"M4 4a16 16 0 0 1 16 16",key:"k0647b"}],["circle",{cx:"5",cy:"19",r:"1",key:"bfqh0e"}]],ai=H("rss",ri);const oi=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ht=H("search",oi);const ni=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],rt=H("settings",ni);const ii=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Dt=H("shield",ii);const li=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Ue=H("sparkles",li);const ci=[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]],di=H("store",ci);const ui=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Vt=H("sun",ui);const hi=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],z1=H("terminal",hi);const mi=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]],pi=H("ticket",mi);const fi=[["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-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Ct=H("triangle-alert",fi);const xi=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],gi=H("user",xi);const vi=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],yi=H("users-round",vi);const bi=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],O1=H("users",bi);const wi=[["path",{d:"M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",key:"q3hayz"}],["path",{d:"m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",key:"1go1hn"}],["path",{d:"m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",key:"qlwsc0"}]],ji=H("webhook",wi);const Ci=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Gt=H("x",Ci);const ki=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Ns=H("zap",ki),Ss="profclaw_last_user";function Ni(e){try{const s={email:e.email,name:e.name,avatarUrl:e.avatarUrl};localStorage.setItem(Ss,JSON.stringify(s))}catch{}}function Si(){try{const e=localStorage.getItem(Ss);return e?JSON.parse(e):null}catch{return null}}function Li(){try{localStorage.removeItem(Ss)}catch{}}const I1=h.createContext(null);function Mi({children:e}){const s=gs(),{data:r,isLoading:a,refetch:o}=He({queryKey:["auth","me"],queryFn:async()=>{const g=await fetch("/api/auth/me",{credentials:"include"});if(!g.ok){if(g.status===401)return{authenticated:!1,authMode:"local"};throw new Error("Failed to fetch auth status")}return g.json()},staleTime:300*1e3,retry:!1});h.useEffect(()=>{r?.authenticated&&r.user&&Ni(r.user)},[r]);const n=Be({mutationFn:async({email:g,password:y})=>{const j=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:g,password:y})});if(!j.ok){const P=await j.json();throw new Error(P.error||"Login failed")}return j.json()},onSuccess:()=>{s.invalidateQueries({queryKey:["auth"]})}}),l=Be({mutationFn:async({email:g,password:y,name:j})=>{const P=await fetch("/api/auth/signup",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:g,password:y,name:j})});if(!P.ok){const O=await P.json();throw new Error(O.error||"Signup failed")}return P.json()},onSuccess:()=>{s.invalidateQueries({queryKey:["auth"]})}}),u=Be({mutationFn:async({key:g})=>{const y=await fetch("/api/auth/verify-access-key",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({key:g})});if(!y.ok){const j=await y.json();throw new Error(j.error||"Verification failed")}return y.json()},onSuccess:()=>{s.invalidateQueries({queryKey:["auth"]})}}),i=Be({mutationFn:async()=>{const g=await fetch("/api/auth/logout",{method:"POST",credentials:"include"});if(!g.ok)throw new Error("Logout failed");return g.json()},onSuccess:()=>{s.invalidateQueries({queryKey:["auth"]}),s.clear()}}),d=async(g,y)=>{await n.mutateAsync({email:g,password:y})},f=async(g,y,j)=>{await l.mutateAsync({email:g,password:y,name:j})},c=async g=>{await u.mutateAsync({key:g})},p=()=>{window.location.href="/api/auth/github"},x=async()=>{await i.mutateAsync()},v={user:r?.user||null,isLoading:a,isAuthenticated:r?.authenticated??!1,authMode:r?.authMode??"local",accessKeyRequired:r?.accessKeyRequired??!1,login:d,signup:f,verifyAccessKey:c,loginWithGitHub:p,logout:x,refetch:o};return t.jsx(I1.Provider,{value:v,children:e})}function Ve(){const e=h.useContext(I1);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e}const ze=L.forwardRef(({className:e,variant:s="icon",showText:r=!1,textClassName:a,subtitle:o,subtitleClassName:n,...l},u)=>{const i=t.jsxs("svg",{ref:u,xmlns:"http://www.w3.org/2000/svg",viewBox:"10 12 80 76",className:k(e),preserveAspectRatio:"xMidYMid meet",...l,children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"pc-body",x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx("stop",{offset:"0%",stopColor:"#fb7185"}),t.jsx("stop",{offset:"100%",stopColor:"#e11d48"})]})}),t.jsx("ellipse",{cx:"50",cy:"54",rx:"24",ry:"22",fill:"url(#pc-body)"}),t.jsx("ellipse",{cx:"48",cy:"49",rx:"13",ry:"9",fill:"#fda4af",opacity:".15"}),t.jsx("rect",{x:"39",y:"73",width:"8",height:"10",rx:"4",fill:"#be123c"}),t.jsx("rect",{x:"53",y:"73",width:"8",height:"10",rx:"4",fill:"#be123c"}),t.jsx("ellipse",{cx:"20",cy:"54",rx:"8",ry:"6",fill:"#be123c"}),t.jsx("path",{d:"M15,49 L20,54 L25,49",stroke:"#4c0519",strokeWidth:"1.8",fill:"none",strokeLinecap:"round"}),t.jsx("ellipse",{cx:"80",cy:"54",rx:"8",ry:"6",fill:"#be123c"}),t.jsx("path",{d:"M75,49 L80,54 L85,49",stroke:"#4c0519",strokeWidth:"1.8",fill:"none",strokeLinecap:"round"}),t.jsx("line",{x1:"39",y1:"34",x2:"31",y2:"20",stroke:"#be123c",strokeWidth:"2.2",strokeLinecap:"round"}),t.jsx("circle",{cx:"30",cy:"18",r:"3.5",fill:"#fda4af"}),t.jsx("circle",{cx:"30",cy:"18",r:"1.3",fill:"#fff",opacity:".35"}),t.jsx("line",{x1:"61",y1:"34",x2:"69",y2:"20",stroke:"#be123c",strokeWidth:"2.2",strokeLinecap:"round"}),t.jsx("circle",{cx:"70",cy:"18",r:"3.5",fill:"#fda4af"}),t.jsx("circle",{cx:"70",cy:"18",r:"1.3",fill:"#fff",opacity:".35"}),t.jsx("circle",{cx:"43",cy:"51",r:"6.5",fill:"#fff"}),t.jsx("circle",{cx:"57",cy:"51",r:"6.5",fill:"#fff"}),t.jsx("circle",{cx:"44.5",cy:"50",r:"3.5",fill:"#4c0519"}),t.jsx("circle",{cx:"58.5",cy:"50",r:"3.5",fill:"#4c0519"}),t.jsx("circle",{cx:"46",cy:"48.5",r:"1.4",fill:"#fff"}),t.jsx("circle",{cx:"60",cy:"48.5",r:"1.4",fill:"#fff"}),t.jsx("circle",{cx:"43",cy:"52.5",r:".7",fill:"#fff",opacity:".3"}),t.jsx("circle",{cx:"57",cy:"52.5",r:".7",fill:"#fff",opacity:".3"}),t.jsx("path",{d:"M45,63 Q50,68 57,62",stroke:"#9f1239",strokeWidth:"2",fill:"none",strokeLinecap:"round"})]});return s==="full"||r?t.jsxs("div",{className:"flex items-center gap-2 select-none shrink-0",children:[t.jsx("div",{className:"shrink-0",children:i}),(s==="full"||r)&&t.jsxs("div",{className:"flex flex-col shrink-0 justify-center",children:[t.jsxs("span",{className:k("font-heading font-[800] tracking-tight",a),children:[t.jsx("span",{className:"bg-gradient-to-br from-[#fb7185] via-[#f43f5e] to-[#e11d48] bg-clip-text text-transparent drop-shadow-[0_1px_2px_rgba(244,63,94,0.3)]",children:"prof"}),t.jsx("span",{className:"text-[var(--foreground)] drop-shadow-[0_1px_1px_rgba(0,0,0,0.15)]",children:"Claw"})]}),o&&t.jsx("span",{className:k("text-[10px] text-[var(--muted-foreground)] leading-none",n),children:o})]})]}):i});ze.displayName="Logo";function Ai(){const e=De(),[s]=yr(),{login:r,loginWithGitHub:a,isAuthenticated:o,isLoading:n}=Ve(),[l,u]=h.useState(""),[i,d]=h.useState(""),[f,c]=h.useState(!1),[p,x]=h.useState(!1),[v,g]=h.useState(null),[y,j]=h.useState(null),[P,O]=h.useState(!1),[E,M]=h.useState(null);h.useEffect(()=>{const V=Si();V&&j(V)},[]);const{data:w}=He({queryKey:["setup","status"],queryFn:async()=>{const V=await fetch("/api/setup/status");return V.ok?V.json():{configured:!1,providers:{github:!1}}},staleTime:6e4}),b=w?.providers?.github??!1,N=w?.showForgotPassword??!0;h.useEffect(()=>{const V=s.get("error");V&&g({no_code:"Authentication failed: no code received",invalid_state:"Authentication failed: invalid state",auth_failed:"GitHub authentication failed",callback_failed:"Authentication callback failed"}[V]||"Authentication failed")},[s]),h.useEffect(()=>{!n&&o&&e("/")},[o,n,e]);const T=async V=>{V.preventDefault(),g(null),x(!0);try{await r(l,i),ce.success("Logged in successfully"),e("/")}catch(X){g(X instanceof Error?X.message:"Login failed")}finally{x(!1)}},Y=()=>{if(!b){ce.error("GitHub OAuth is not configured. Please contact your administrator.");return}a()};return n?t.jsx("div",{className:"min-h-screen flex items-center justify-center bg-[var(--background)]",children:t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[t.jsx(ze,{className:"h-12 w-12 text-[var(--primary)] animate-pulse"}),t.jsx("p",{className:"text-sm text-[var(--muted-foreground)]",children:"Loading..."})]})}):t.jsxs("div",{className:"min-h-screen flex items-center justify-center bg-[var(--background)] p-4",children:[t.jsx("div",{className:"fixed inset-0 bg-gradient-to-br from-[var(--primary)]/5 via-transparent to-pink-500/5 pointer-events-none"}),t.jsxs("div",{className:"w-full max-w-md relative z-10 glass-heavy rounded-[2.5rem] shadow-float overflow-hidden",children:[t.jsxs("div",{className:"text-center pb-2 px-8 pt-8",children:[t.jsx("div",{className:"flex justify-center mb-6",children:t.jsx("div",{className:"p-4 rounded-[2rem] glass-heavy shadow-2xl shadow-primary/10 transition-transform hover:scale-110",children:t.jsx(ze,{className:"h-12 w-12 text-[var(--primary)]","aria-label":"profClaw Logo"})})}),t.jsx("h1",{className:"text-3xl font-black tracking-tighter uppercase tracking-[0.1em]",children:"Welcome back"}),t.jsx("p",{className:"text-sm text-[var(--muted-foreground)] font-semibold mt-1",children:"Sign in to your profClaw account"})]}),t.jsxs("div",{className:"space-y-6 px-8 pb-8 pt-4",children:[v&&t.jsxs("div",{className:"flex items-center gap-3 p-4 bg-destructive/5 text-destructive text-sm font-bold rounded-2xl shadow-inner animate-in fade-in slide-in-from-top-2",children:[t.jsx(tt,{className:"h-4 w-4 shrink-0"}),v]}),y&&!y.email.endsWith("@github.local")&&t.jsxs("div",{className:"relative",children:[t.jsxs("button",{type:"button",onClick:()=>{u(y.email),setTimeout(()=>{document.getElementById("password")?.focus()},100)},className:"w-full flex items-center gap-3 p-4 glass hover:bg-white/10 dark:hover:bg-black/20 rounded-2xl transition-all text-left group shadow-lg",children:[y.avatarUrl?t.jsx("img",{src:y.avatarUrl,alt:y.name,className:"h-12 w-12 rounded-2xl object-cover shadow-md"}):t.jsx("div",{className:"h-12 w-12 rounded-2xl bg-gradient-to-br from-[var(--primary)] to-pink-500 flex items-center justify-center shadow-md",children:t.jsx("span",{className:"text-lg font-black text-white",children:y.name?.charAt(0).toUpperCase()||"U"})}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsxs("p",{className:"font-black text-[var(--foreground)] truncate uppercase tracking-wider text-xs",children:["Continue as ",y.name]}),t.jsx("p",{className:"text-xs text-[var(--muted-foreground)] truncate font-medium",children:y.email})]}),t.jsx(Ae,{className:"h-4.5 w-4.5 text-[var(--muted-foreground)] group-hover:text-[var(--primary)] transition-all group-hover:translate-x-1"})]}),t.jsx("button",{type:"button",onClick:V=>{V.stopPropagation(),Li(),j(null)},className:"absolute -top-1.5 -right-1.5 h-6 w-6 rounded-full bg-[var(--background)] border border-[var(--border)] flex items-center justify-center text-[var(--muted-foreground)] hover:text-destructive transition-all shadow-md active:scale-90 z-10",title:"Dismiss","aria-label":"Dismiss last user",children:t.jsx(Gt,{className:"h-3.5 w-3.5"})})]}),t.jsxs("div",{className:"space-y-3",children:[t.jsxs(ae,{type:"button",variant:"outline",className:k("w-full gap-3 h-14 rounded-2xl glass-heavy text-base font-black uppercase tracking-widest text-[12px] transition-all border-none shadow-xl",b?"hover:bg-[var(--primary)]/10 hover:shadow-primary/5 active:scale-95":"opacity-40 cursor-not-allowed"),onClick:Y,disabled:!b,children:[t.jsx(js,{className:"h-5 w-5"}),"Continue with GitHub",b&&t.jsx(Ae,{className:"h-4 w-4 ml-auto opacity-50"})]}),!b&&t.jsxs("button",{onClick:()=>e("/setup"),className:"w-full text-[10px] text-center text-[var(--muted-foreground)] flex items-center justify-center gap-1.5 py-1 hover:text-[var(--primary)] transition-colors group font-black uppercase tracking-widest","aria-label":"GitHub OAuth not configured. Click to configure now.",children:[t.jsx(rt,{className:"h-3 w-3 group-hover:animate-spin"}),t.jsx("span",{children:"GitHub OAuth not configured."}),t.jsx("span",{className:"text-[var(--primary)] underline-offset-4 decoration-2",children:"Configure now"})]})]}),t.jsxs("div",{className:"relative",children:[t.jsx("div",{className:"absolute inset-0 flex items-center",children:t.jsx("span",{className:"w-full h-px bg-gradient-to-r from-transparent via-[var(--border)]/20 to-transparent"})}),t.jsx("div",{className:"relative flex justify-center text-[10px] uppercase tracking-widest font-black",children:t.jsx("span",{className:"bg-[var(--card)] px-4 text-[var(--muted-foreground)]/60",children:"Or continue with email"})})]}),t.jsxs("form",{onSubmit:T,className:"space-y-5",children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx(Ee,{htmlFor:"email",className:"premium-label",children:"Email"}),t.jsx(Ne,{id:"email",type:"email",value:l,onChange:V=>u(V.target.value),placeholder:"you@profclaw.ai",required:!0,autoComplete:"email"})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between px-1",children:[t.jsx(Ee,{htmlFor:"password",className:"premium-label",children:"Password"}),N&&t.jsx("button",{type:"button",onClick:()=>O(!0),className:"text-[10px] font-black uppercase tracking-widest text-[var(--primary)] hover:opacity-80 transition-opacity",children:"Forgot password?"})]}),t.jsxs("div",{className:"relative",children:[t.jsx(Ne,{id:"password",type:f?"text":"password",value:i,onChange:V=>d(V.target.value),placeholder:"••••••••",required:!0,autoComplete:"current-password",className:"pr-12"}),t.jsx("button",{type:"button",onClick:()=>c(!f),className:"absolute right-4 top-1/2 -translate-y-1/2 text-[var(--muted-foreground)] hover:text-[var(--primary)] transition-colors","aria-label":f?"Hide password":"Show password",children:f?t.jsx(qe,{className:"h-5 w-5"}):t.jsx(We,{className:"h-5 w-5"})})]})]}),t.jsx(ae,{type:"submit",variant:"black",className:"w-full mt-2",disabled:p,children:p?t.jsx(Pe,{className:"h-4 w-4 animate-spin"}):t.jsxs(t.Fragment,{children:[t.jsx(Hn,{className:"h-4 w-4"}),"Sign in"]})})]}),t.jsxs("p",{className:"text-center text-[10px] font-black uppercase tracking-widest text-[var(--muted-foreground)]/60",children:["Don't have an account?"," ",t.jsx(he,{to:"/signup",className:"text-[var(--primary)] hover:opacity-80 transition-opacity",children:"Sign up"})]}),t.jsx("div",{className:"pt-6 border-t border-[var(--border)]/10 text-center space-y-2",children:t.jsxs("p",{className:"text-[9px] font-black uppercase tracking-[0.15em] text-[var(--muted-foreground)]/40 leading-relaxed",children:["By signing in, you agree to our"," ",t.jsx(he,{to:"/terms",className:"text-[var(--primary)] hover:opacity-80",children:"Terms"})," ","and"," ",t.jsx(he,{to:"/privacy",className:"text-[var(--primary)] hover:opacity-80",children:"Privacy"})]})})]})]}),P&&t.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm p-4",children:t.jsxs("div",{className:"bg-[var(--card)] rounded-2xl border border-[var(--border)] shadow-xl w-full max-w-lg p-6 relative animate-in fade-in zoom-in-95",children:[t.jsx("button",{type:"button",onClick:()=>O(!1),className:"absolute top-4 right-4 text-[var(--muted-foreground)] hover:text-[var(--foreground)] transition-colors",children:t.jsx(Gt,{className:"h-5 w-5"})}),t.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[t.jsx("div",{className:"h-12 w-12 rounded-full bg-amber-500/10 flex items-center justify-center",children:t.jsx(Cs,{className:"h-6 w-6 text-amber-500"})}),t.jsxs("div",{children:[t.jsx("h3",{className:"font-bold text-lg",children:"Reset Your Password"}),t.jsx("p",{className:"text-sm text-[var(--muted-foreground)]",children:"Contact your admin or use the CLI"})]})]}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"p-4 rounded-xl bg-[var(--muted)]/30 border border-[var(--border)]",children:[t.jsx("p",{className:"text-sm font-semibold mb-1",children:"Option 1: Ask your administrator"}),t.jsx("p",{className:"text-xs text-[var(--muted-foreground)]",children:"An admin can reset your password from the User Management page or via the CLI."})]}),t.jsxs("div",{className:"p-4 rounded-xl bg-[var(--muted)]/30 border border-[var(--border)]",children:[t.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[t.jsx(z1,{className:"h-4 w-4 text-[var(--primary)]"}),t.jsx("p",{className:"text-sm font-semibold",children:"Option 2: CLI (server access required)"})]}),t.jsx("p",{className:"text-xs text-[var(--muted-foreground)] mb-3",children:"If you have access to the server, run this command to generate a temporary password:"}),t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"relative",children:[t.jsx("code",{className:"block w-full p-3 bg-[var(--background)] border border-[var(--border)] rounded-lg text-xs font-mono break-all pr-10",children:"profclaw auth reset-password your@email.com"}),t.jsx("button",{type:"button",onClick:()=>{navigator.clipboard.writeText("profclaw auth reset-password your@email.com"),M("reset"),setTimeout(()=>M(null),2e3),ce.success("Command copied")},className:"absolute right-2 top-1/2 -translate-y-1/2 p-1.5 rounded-md hover:bg-[var(--muted)] transition-colors",children:E==="reset"?t.jsx(de,{className:"h-3.5 w-3.5 text-green-500"}):t.jsx(ut,{className:"h-3.5 w-3.5 text-[var(--muted-foreground)]"})})]}),t.jsx("p",{className:"text-xs text-[var(--muted-foreground)]",children:"Or if using npx directly:"}),t.jsxs("div",{className:"relative",children:[t.jsx("code",{className:"block w-full p-3 bg-[var(--background)] border border-[var(--border)] rounded-lg text-xs font-mono break-all pr-10",children:"npx tsx src/cli/index.ts auth reset-password your@email.com"}),t.jsx("button",{type:"button",onClick:()=>{navigator.clipboard.writeText("npx tsx src/cli/index.ts auth reset-password your@email.com"),M("npx"),setTimeout(()=>M(null),2e3),ce.success("Command copied")},className:"absolute right-2 top-1/2 -translate-y-1/2 p-1.5 rounded-md hover:bg-[var(--muted)] transition-colors",children:E==="npx"?t.jsx(de,{className:"h-3.5 w-3.5 text-green-500"}):t.jsx(ut,{className:"h-3.5 w-3.5 text-[var(--muted-foreground)]"})})]})]}),t.jsxs("p",{className:"text-xs text-amber-500 mt-3 flex items-start gap-1.5",children:[t.jsx(tt,{className:"h-3.5 w-3.5 flex-shrink-0 mt-0.5"}),"This generates a temporary password and new recovery codes. All existing sessions are invalidated."]})]}),t.jsx(ae,{variant:"outline",className:"w-full rounded-xl",onClick:()=>O(!1),children:"Got it"})]})]})})]})}const _t=[{label:"At least 8 characters",test:e=>e.length>=8},{label:"Contains a number",test:e=>/\d/.test(e)},{label:"Contains a letter",test:e=>/[a-zA-Z]/.test(e)}];function Ei(){const e=De(),{signup:s,loginWithGitHub:r,isAuthenticated:a,isLoading:o}=Ve(),[n,l]=h.useState(""),[u,i]=h.useState(""),[d,f]=h.useState(""),[c,p]=h.useState(!1),[x,v]=h.useState(!1),[g,y]=h.useState(null),[j,P]=h.useState(null),{data:O}=He({queryKey:["setup","status"],queryFn:async()=>{const T=await fetch("/api/setup/status");return T.ok?T.json():{configured:!1,providers:{github:!1}}},staleTime:6e4}),E=O?.providers?.github??!1,M=()=>{if(!E){e("/setup");return}r()};h.useEffect(()=>{!o&&a&&e("/")},[a,o,e]);const w=async T=>{if(T.preventDefault(),y(null),!_t.every(V=>V.test(d))){y("Password does not meet requirements");return}v(!0);try{await s(u,d,n),ce.success("Account created successfully"),e("/onboarding")}catch(V){y(V instanceof Error?V.message:"Signup failed")}finally{v(!1)}},N=_t.filter(T=>T.test(d)).length/_t.length*100;return o?t.jsx("div",{className:"min-h-screen flex items-center justify-center bg-[var(--background)]",children:t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[t.jsx(ze,{className:"h-12 w-12 text-[var(--primary)] animate-pulse"}),t.jsx("p",{className:"text-sm text-[var(--muted-foreground)]",children:"Loading..."})]})}):t.jsxs("div",{className:"min-h-screen flex items-center justify-center bg-[var(--background)] p-4",children:[t.jsx("div",{className:"fixed inset-0 bg-gradient-to-br from-[var(--primary)]/5 via-transparent to-pink-500/5 pointer-events-none"}),t.jsxs("div",{className:"w-full max-w-md relative z-10 glass-heavy rounded-[2.5rem] shadow-float overflow-hidden",children:[t.jsxs("div",{className:"text-center pb-2 px-8 pt-8",children:[t.jsx("div",{className:"flex justify-center mb-6",children:t.jsx("div",{className:"p-4 rounded-[2rem] glass-heavy shadow-2xl shadow-primary/10 transition-transform hover:scale-110",children:t.jsx(ze,{className:"h-12 w-12 text-[var(--primary)]","aria-label":"profClaw Logo"})})}),t.jsx("h1",{className:"text-3xl font-black tracking-tighter uppercase tracking-[0.1em]",children:"Create account"}),t.jsx("p",{className:"text-sm text-[var(--muted-foreground)] font-semibold mt-1",children:"Get started with profClaw for free"})]}),t.jsxs("div",{className:"space-y-6 px-8 pb-8 pt-4",children:[g&&t.jsxs("div",{className:"flex items-center gap-3 p-4 bg-destructive/5 text-destructive text-sm font-bold rounded-2xl shadow-inner animate-in fade-in slide-in-from-top-2",children:[t.jsx(tt,{className:"h-4 w-4 shrink-0"}),g]}),t.jsxs("div",{className:"space-y-3",children:[t.jsxs(ae,{type:"button",variant:"outline",className:k("w-full gap-3 h-14 rounded-2xl glass-heavy text-base font-black uppercase tracking-widest text-[12px] transition-all border-none shadow-xl",E?"hover:bg-[var(--primary)]/10 hover:shadow-primary/5 active:scale-95":"opacity-40 cursor-not-allowed"),onClick:M,disabled:!E,children:[t.jsx(js,{className:"h-5 w-5"}),"Continue with GitHub",E&&t.jsx(Ae,{className:"h-4 w-4 ml-auto opacity-50"})]}),!E&&t.jsxs("button",{onClick:()=>e("/setup"),className:"w-full text-[10px] text-center text-[var(--muted-foreground)] flex items-center justify-center gap-1.5 py-1 hover:text-[var(--primary)] transition-colors group font-black uppercase tracking-widest","aria-label":"GitHub OAuth not configured. Click to configure now.",children:[t.jsx(rt,{className:"h-3 w-3 group-hover:animate-spin"}),t.jsx("span",{children:"GitHub OAuth not configured."}),t.jsx("span",{className:"text-[var(--primary)] underline-offset-4 decoration-2",children:"Configure now"})]})]}),t.jsxs("div",{className:"relative",children:[t.jsx("div",{className:"absolute inset-0 flex items-center",children:t.jsx("span",{className:"w-full h-px bg-gradient-to-r from-transparent via-[var(--border)]/20 to-transparent"})}),t.jsx("div",{className:"relative flex justify-center text-[10px] uppercase tracking-widest font-black",children:t.jsx("span",{className:"bg-[var(--card)] px-4 text-[var(--muted-foreground)]/60",children:"Or continue with email"})})]}),t.jsxs("form",{onSubmit:w,className:"space-y-5",children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx(Ee,{htmlFor:"name",className:"text-[10px] font-black uppercase tracking-widest text-[var(--muted-foreground)] px-1",children:"Full Name"}),t.jsx(Ne,{id:"name",type:"text",value:n,onChange:T=>l(T.target.value),onFocus:()=>P("name"),onBlur:()=>P(null),placeholder:"John Doe",required:!0,autoComplete:"name",className:k("h-12 border-none glass-heavy rounded-2xl shadow-inner transition-all px-4 font-bold focus:shadow-xl focus:shadow-primary/5 focus:scale-[1.01]",j==="name"&&"bg-white/50 dark:bg-black/50")})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(Ee,{htmlFor:"email",className:"text-[10px] font-black uppercase tracking-widest text-[var(--muted-foreground)] px-1",children:"Email"}),t.jsx(Ne,{id:"email",type:"email",value:u,onChange:T=>i(T.target.value),onFocus:()=>P("email"),onBlur:()=>P(null),placeholder:"you@profclaw.ai",required:!0,autoComplete:"email",className:k("h-12 border-none glass-heavy rounded-2xl shadow-inner transition-all px-4 font-bold focus:shadow-xl focus:shadow-primary/5 focus:scale-[1.01]",j==="email"&&"bg-white/50 dark:bg-black/50")})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(Ee,{htmlFor:"password",className:"text-[10px] font-black uppercase tracking-widest text-[var(--muted-foreground)] px-1",children:"Password"}),t.jsxs("div",{className:"relative",children:[t.jsx(Ne,{id:"password",type:c?"text":"password",value:d,onChange:T=>f(T.target.value),onFocus:()=>P("password"),onBlur:()=>P(null),placeholder:"••••••••",required:!0,autoComplete:"new-password",className:k("h-12 border-none glass-heavy rounded-2xl shadow-inner transition-all px-4 font-bold pr-12 focus:shadow-xl focus:shadow-primary/5 focus:scale-[1.01]",j==="password"&&"bg-white/50 dark:bg-black/50")}),t.jsx("button",{type:"button",onClick:()=>p(!c),className:"absolute right-4 top-1/2 -translate-y-1/2 text-[var(--muted-foreground)] hover:text-[var(--primary)] transition-colors","aria-label":c?"Hide password":"Show password",children:c?t.jsx(qe,{className:"h-5 w-5"}):t.jsx(We,{className:"h-5 w-5"})})]}),d.length>0&&t.jsxs("div",{className:"space-y-2 mt-3",children:[t.jsx("div",{className:"h-1 bg-[var(--muted)]/50 rounded-full overflow-hidden shadow-inner",children:t.jsx("div",{className:k("h-full transition-all duration-700 rounded-full shadow-[0_0_10px_rgba(0,0,0,0.1)]",N<50&&"bg-red-500",N>=50&&N<100&&"bg-yellow-500",N===100&&"bg-emerald-500 shadow-[0_0_15px_var(--success-glow)]"),style:{width:`${N}%`}})}),t.jsx("div",{className:"grid grid-cols-1 gap-1",children:_t.map((T,Y)=>{const V=T.test(d);return t.jsxs("div",{className:k("flex items-center gap-2 text-xs transition-all",V?"text-green-600":"text-[var(--muted-foreground)]"),children:[t.jsx("div",{className:k("h-4 w-4 rounded-full flex items-center justify-center transition-all",V?"bg-green-500/20":"bg-[var(--muted)]"),children:t.jsx(de,{className:k("h-2.5 w-2.5",V?"opacity-100":"opacity-0"),"aria-hidden":"true"})}),T.label]},Y)})})]})]}),t.jsx(ae,{type:"submit",variant:"black",className:"w-full mt-4",disabled:x||N<100,children:x?t.jsx(Pe,{className:"h-4 w-4 animate-spin"}):t.jsxs(t.Fragment,{children:[t.jsx(Ue,{className:"h-4 w-4"}),"Create Account"]})})]}),t.jsxs("p",{className:"text-center text-[10px] font-black uppercase tracking-widest text-[var(--muted-foreground)]/60 pt-2 text-center",children:["Already have an account?"," ",t.jsx(he,{to:"/login",className:"text-[var(--primary)] hover:opacity-80 transition-opacity",children:"Sign in"})]}),t.jsx("div",{className:"pt-6 border-t border-[var(--border)]/10 text-center space-y-2",children:t.jsxs("p",{className:"text-[9px] font-black uppercase tracking-[0.15em] text-[var(--muted-foreground)]/40 leading-relaxed",children:["By signing up, you agree to our"," ",t.jsx(he,{to:"/terms",className:"text-[var(--primary)] hover:opacity-80",children:"Terms"})," ","and"," ",t.jsx(he,{to:"/privacy",className:"text-[var(--primary)] hover:opacity-80",children:"Privacy"})]})})]})]})]})}function $i(){const e=De(),{verifyAccessKey:s,isAuthenticated:r,isLoading:a}=Ve(),[o,n]=h.useState(""),[l,u]=h.useState(!1),[i,d]=h.useState(!1),[f,c]=h.useState(null);if(!a&&r)return e("/"),null;const p=async x=>{x.preventDefault(),c(null),d(!0);try{await s(o),ce.success("Access verified"),e("/")}catch(v){c(v instanceof Error?v.message:"Invalid access key")}finally{d(!1)}};return a?t.jsx("div",{className:"min-h-screen flex items-center justify-center bg-[var(--background)]",children:t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[t.jsx(ze,{className:"h-12 w-12 text-[var(--primary)] animate-pulse"}),t.jsx("p",{className:"text-sm text-[var(--muted-foreground)]",children:"Loading..."})]})}):t.jsxs("div",{className:"min-h-screen flex items-center justify-center bg-[var(--background)] p-4",children:[t.jsx("div",{className:"fixed inset-0 bg-gradient-to-br from-[var(--primary)]/5 via-transparent to-pink-500/5 pointer-events-none"}),t.jsxs("div",{className:"w-full max-w-sm relative z-10 glass-heavy rounded-[2.5rem] shadow-float overflow-hidden",children:[t.jsxs("div",{className:"text-center pb-2 px-8 pt-8",children:[t.jsx("div",{className:"flex justify-center mb-6",children:t.jsx("div",{className:"p-4 rounded-[2rem] glass-heavy shadow-2xl shadow-primary/10 transition-transform hover:scale-110",children:t.jsx(ze,{className:"h-12 w-12 text-[var(--primary)]","aria-label":"profClaw Logo"})})}),t.jsx("h1",{className:"text-3xl font-black tracking-tighter uppercase tracking-[0.1em]",children:"Welcome"}),t.jsx("p",{className:"text-sm text-[var(--muted-foreground)] font-semibold mt-1",children:"Enter your access key to continue"})]}),t.jsxs("div",{className:"space-y-6 px-8 pb-8 pt-4",children:[f&&t.jsxs("div",{className:"flex items-center gap-3 p-4 bg-destructive/5 text-destructive text-sm font-bold rounded-2xl shadow-inner animate-in fade-in slide-in-from-top-2",children:[t.jsx(tt,{className:"h-4 w-4 shrink-0"}),f]}),t.jsxs("form",{onSubmit:p,className:"space-y-5",children:[t.jsx("div",{className:"space-y-2",children:t.jsxs("div",{className:"relative",children:[t.jsx(Ne,{id:"access-key",type:l?"text":"password",value:o,onChange:x=>n(x.target.value),placeholder:"Enter access key",required:!0,autoComplete:"current-password",autoFocus:!0,className:"pr-12"}),t.jsx("button",{type:"button",onClick:()=>u(!l),className:"absolute right-4 top-1/2 -translate-y-1/2 text-[var(--muted-foreground)] hover:text-[var(--primary)] transition-colors","aria-label":l?"Hide access key":"Show access key",children:l?t.jsx(qe,{className:"h-5 w-5"}):t.jsx(We,{className:"h-5 w-5"})})]})}),t.jsx(ae,{type:"submit",variant:"black",className:"w-full mt-2",disabled:i||!o,children:i?t.jsx(Pe,{className:"h-4 w-4 animate-spin"}):t.jsxs(t.Fragment,{children:[t.jsx(Cs,{className:"h-4 w-4"}),"Access Dashboard",t.jsx(Ae,{className:"h-4 w-4 ml-auto opacity-50"})]})})]})]})]})]})}const Ti="github",_i="GitHub",Pi="181717",zi=["Devtool","Software"],Oi=[],Ii=`<svg viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z" transform="scale(64)" fill="#ffff"/>
|
|
6
|
+
</svg>`,Ri={default:`<svg viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z" transform="scale(64)" fill="#ffff"/>
|
|
8
|
+
</svg>`,mono:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitHub</title><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>',light:'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" fill="none"><path fill="#1b1f23" fill-rule="evenodd" d="M512 0C229.12 0 0 229.12 0 512c0 226.56 146.56 417.92 350.08 485.76 25.6 4.48 35.2-10.88 35.2-24.32 0-12.16-.64-52.48-.64-95.36-128.64 23.68-161.92-31.36-172.16-60.16-5.76-14.72-30.72-60.16-52.48-72.32-17.92-9.6-43.52-33.28-.64-33.92 40.32-.64 69.12 37.12 78.72 52.48 46.08 77.44 119.68 55.68 149.12 42.24 4.48-33.28 17.92-55.68 32.64-68.48-113.92-12.8-232.96-56.96-232.96-252.8 0-55.68 19.84-101.76 52.48-137.6-5.12-12.8-23.04-65.28 5.12-135.68 0 0 42.88-13.44 140.8 52.48 40.96-11.52 84.48-17.28 128-17.28s87.04 5.76 128 17.28c97.92-66.56 140.8-52.48 140.8-52.48 28.16 70.4 10.24 122.88 5.12 135.68 32.64 35.84 52.48 81.28 52.48 137.6 0 196.48-119.68 240-233.6 252.8 18.56 16 34.56 46.72 34.56 94.72 0 68.48-.64 123.52-.64 140.8 0 13.44 9.6 29.44 35.2 24.32C877.44 929.92 1024 737.92 1024 512 1024 229.12 794.88 0 512 0" clip-rule="evenodd"/></svg>',dark:`<svg viewBox="0 0 1024 1024" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8C0 11.54 2.29 14.53 5.47 15.59C5.87 15.66 6.02 15.42 6.02 15.21C6.02 15.02 6.01 14.39 6.01 13.72C4 14.09 3.48 13.23 3.32 12.78C3.23 12.55 2.84 11.84 2.5 11.65C2.22 11.5 1.82 11.13 2.49 11.12C3.12 11.11 3.57 11.7 3.72 11.94C4.44 13.15 5.59 12.81 6.05 12.6C6.12 12.08 6.33 11.73 6.56 11.53C4.78 11.33 2.92 10.64 2.92 7.58C2.92 6.71 3.23 5.99 3.74 5.43C3.66 5.23 3.38 4.41 3.82 3.31C3.82 3.31 4.49 3.1 6.02 4.13C6.66 3.95 7.34 3.86 8.02 3.86C8.7 3.86 9.38 3.95 10.02 4.13C11.55 3.09 12.22 3.31 12.22 3.31C12.66 4.41 12.38 5.23 12.3 5.43C12.81 5.99 13.12 6.7 13.12 7.58C13.12 10.65 11.25 11.33 9.47 11.53C9.76 11.78 10.01 12.26 10.01 13.01C10.01 14.08 10 14.94 10 15.21C10 15.42 10.15 15.67 10.55 15.59C13.71 14.53 16 11.53 16 8C16 3.58 12.42 0 8 0Z" transform="scale(64)" fill="#ffff"/>
|
|
10
|
+
</svg>`,wordmark:'<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 249.1 67.5"><path d="M103.4 55.9h-.1s0 .1.1 0m0 .1c-.5 0-1.8.3-3.2.3-4.4 0-5.9-2-5.9-4.6V34.2h8.9c.5 0 .9-.4.9-1.1v-9.5c0-.5-.4-.9-.9-.9h-8.9V10.9c0-.4-.3-.7-.8-.7h-12c-.5 0-.8.3-.8.7V23s-6.1 1.5-6.5 1.6-.7.5-.7.9v7.6c0 .6.4 1.1.9 1.1h6.2v18.3c0 13.6 9.5 15 16 15 3 0 6.5-.9 7.1-1.2.3-.1.5-.5.5-.9V57c0-.5-.4-.9-.8-1m132.1-12.3c0-10.1-4.1-11.4-8.4-11-3.3.2-6 1.9-6 1.9v19.6s2.7 1.9 6.8 2c5.8.2 7.6-1.8 7.6-12.5m13.6-.9c0 19.1-6.2 24.6-17 24.6-9.1 0-14.1-4.6-14.1-4.6s-.2 2.6-.5 2.9c-.2.3-.4.4-.8.4h-8.3c-.6 0-1.1-.4-1.1-.9l.1-62c0-.5.4-.9.9-.9h11.9c.5 0 .9.4.9.9l-.1 20.9s4.6-3 11.3-3h.1c6.8.1 16.7 2.6 16.7 21.7m-48.6-20.1h-11.7c-.6 0-.9.4-.9 1.1v30.3s-3.1 2.2-7.3 2.2-5.4-1.9-5.4-6.1V23.7c0-.5-.4-.9-.9-.9h-11.9c-.5 0-.9.4-.9.9v28.5c0 12.3 6.9 15.3 16.3 15.3 7.8 0 14.1-4.3 14.1-4.3s.3 2.2.4 2.5.5.5.9.5h7.5c.6 0 .9-.4.9-.9l.1-41.7c-.2-.5-.6-.9-1.2-.9m-132.2-.1H56.4c-.5 0-.9.5-.9 1.1v40.9c0 1.1.7 1.5 1.7 1.5h10.7c1.1 0 1.4-.5 1.4-1.5v-41c-.1-.5-.5-1-1-1M62.4 3.8c-4.3 0-7.7 3.4-7.7 7.7s3.4 7.7 7.7 7.7c4.2 0 7.6-3.4 7.6-7.7s-3.4-7.7-7.6-7.7m92-1.4h-11.8c-.5 0-.9.4-.9.9v22.8h-18.5V3.3c0-.5-.4-.9-.9-.9h-11.9c-.5 0-.9.4-.9.9v62c0 .5.5.9.9.9h11.9c.5 0 .9-.4.9-.9V38.8h18.5l-.1 26.5c0 .5.4.9.9.9h11.9c.5 0 .9-.4.9-.9v-62c0-.5-.4-.9-.9-.9M49.1 29.8v32c0 .2-.1.6-.3.7 0 0-7 5-18.5 5-13.8 0-30.3-4.3-30.3-33C0 5.9 14.4-.1 28.4 0c12.2 0 17.1 2.7 17.8 3.2.2.3.3.5.3.8l-2.3 9.9c0 .5-.5 1.1-1.1.9-2-.6-5-1.8-12.1-1.8-8.2 0-17 2.3-17 20.8s8.4 20.6 14.4 20.6c5.1 0 7-.6 7-.6V41.1h-8.2c-.6 0-1.1-.4-1.1-.9V29.8c0-.5.4-.9 1.1-.9h20.9c.6 0 1 .4 1 .9" style="fill:#fff"/></svg>'},Bi="CC0-1.0",Hi="https://github.com/",Di={slug:Ti,title:_i,hex:Pi,categories:zi,aliases:Oi,svg:Ii,variants:Ri,license:Bi,url:Hi},Vi="slack",Gi="Slack",Fi="000000",Zi=["Software","Platform"],Ui=[],qi=`<svg
|
|
11
|
+
enable-background="new 0 0 2447.6 2452.5"
|
|
12
|
+
viewBox="0 0 2447.6 2452.5"
|
|
13
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
14
|
+
>
|
|
15
|
+
<g clip-rule="evenodd" fill-rule="evenodd">
|
|
16
|
+
<path
|
|
17
|
+
d="m897.4 0c-135.3.1-244.8 109.9-244.7 245.2-.1 135.3 109.5 245.1 244.8 245.2h244.8v-245.1c.1-135.3-109.5-245.1-244.9-245.3.1 0 .1 0 0 0m0 654h-652.6c-135.3.1-244.9 109.9-244.8 245.2-.2 135.3 109.4 245.1 244.7 245.3h652.7c135.3-.1 244.9-109.9 244.8-245.2.1-135.4-109.5-245.2-244.8-245.3z"
|
|
18
|
+
fill="#36c5f0"
|
|
19
|
+
/>
|
|
20
|
+
<path
|
|
21
|
+
d="m2447.6 899.2c.1-135.3-109.5-245.1-244.8-245.2-135.3.1-244.9 109.9-244.8 245.2v245.3h244.8c135.3-.1 244.9-109.9 244.8-245.3zm-652.7 0v-654c.1-135.2-109.4-245-244.7-245.2-135.3.1-244.9 109.9-244.8 245.2v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.3z"
|
|
22
|
+
fill="#2eb67d"
|
|
23
|
+
/>
|
|
24
|
+
<path
|
|
25
|
+
d="m1550.1 2452.5c135.3-.1 244.9-109.9 244.8-245.2.1-135.3-109.5-245.1-244.8-245.2h-244.8v245.2c-.1 135.2 109.5 245 244.8 245.2zm0-654.1h652.7c135.3-.1 244.9-109.9 244.8-245.2.2-135.3-109.4-245.1-244.7-245.3h-652.7c-135.3.1-244.9 109.9-244.8 245.2-.1 135.4 109.4 245.2 244.7 245.3z"
|
|
26
|
+
fill="#ecb22e"
|
|
27
|
+
/>
|
|
28
|
+
<path
|
|
29
|
+
d="m0 1553.2c-.1 135.3 109.5 245.1 244.8 245.2 135.3-.1 244.9-109.9 244.8-245.2v-245.2h-244.8c-135.3.1-244.9 109.9-244.8 245.2zm652.7 0v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.2v-653.9c.2-135.3-109.4-245.1-244.7-245.3-135.4 0-244.9 109.8-244.8 245.1 0 0 0 .1 0 0"
|
|
30
|
+
fill="#e01e5a"
|
|
31
|
+
/>
|
|
32
|
+
</g>
|
|
33
|
+
</svg>`,Wi={default:`<svg
|
|
34
|
+
enable-background="new 0 0 2447.6 2452.5"
|
|
35
|
+
viewBox="0 0 2447.6 2452.5"
|
|
36
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
37
|
+
>
|
|
38
|
+
<g clip-rule="evenodd" fill-rule="evenodd">
|
|
39
|
+
<path
|
|
40
|
+
d="m897.4 0c-135.3.1-244.8 109.9-244.7 245.2-.1 135.3 109.5 245.1 244.8 245.2h244.8v-245.1c.1-135.3-109.5-245.1-244.9-245.3.1 0 .1 0 0 0m0 654h-652.6c-135.3.1-244.9 109.9-244.8 245.2-.2 135.3 109.4 245.1 244.7 245.3h652.7c135.3-.1 244.9-109.9 244.8-245.2.1-135.4-109.5-245.2-244.8-245.3z"
|
|
41
|
+
fill="#36c5f0"
|
|
42
|
+
/>
|
|
43
|
+
<path
|
|
44
|
+
d="m2447.6 899.2c.1-135.3-109.5-245.1-244.8-245.2-135.3.1-244.9 109.9-244.8 245.2v245.3h244.8c135.3-.1 244.9-109.9 244.8-245.3zm-652.7 0v-654c.1-135.2-109.4-245-244.7-245.2-135.3.1-244.9 109.9-244.8 245.2v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.3z"
|
|
45
|
+
fill="#2eb67d"
|
|
46
|
+
/>
|
|
47
|
+
<path
|
|
48
|
+
d="m1550.1 2452.5c135.3-.1 244.9-109.9 244.8-245.2.1-135.3-109.5-245.1-244.8-245.2h-244.8v245.2c-.1 135.2 109.5 245 244.8 245.2zm0-654.1h652.7c135.3-.1 244.9-109.9 244.8-245.2.2-135.3-109.4-245.1-244.7-245.3h-652.7c-135.3.1-244.9 109.9-244.8 245.2-.1 135.4 109.4 245.2 244.7 245.3z"
|
|
49
|
+
fill="#ecb22e"
|
|
50
|
+
/>
|
|
51
|
+
<path
|
|
52
|
+
d="m0 1553.2c-.1 135.3 109.5 245.1 244.8 245.2 135.3-.1 244.9-109.9 244.8-245.2v-245.2h-244.8c-135.3.1-244.9 109.9-244.8 245.2zm652.7 0v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.2v-653.9c.2-135.3-109.4-245.1-244.7-245.3-135.4 0-244.9 109.8-244.8 245.1 0 0 0 .1 0 0"
|
|
53
|
+
fill="#e01e5a"
|
|
54
|
+
/>
|
|
55
|
+
</g>
|
|
56
|
+
</svg>`,wordmark:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2500 632.6">
|
|
57
|
+
<path fill-rule="evenodd" d="m799.8 498.1 31.2-72.5c33.7 25.2 78.6 38.3 122.9 38.3 32.7 0 53.4-12.6 53.4-31.7-.5-53.4-195.9-11.6-197.4-145.5-.5-68 59.9-120.4 145.5-120.4 50.9 0 101.7 12.6 138 41.3l-29.2 74c-33.2-21.2-74.5-36.3-113.8-36.3-26.7 0-44.3 12.6-44.3 28.7.5 52.4 197.4 23.7 199.4 151.6 0 69.5-58.9 118.4-143.5 118.4-62-.1-118.9-14.7-162.2-45.9m1198.1-98.7c-15.6 27.2-44.8 45.8-78.6 45.8-49.9 0-90.1-40.3-90.1-90.1s40.3-90.1 90.1-90.1c33.7 0 63 18.6 78.6 45.8L2084 263c-32.2-57.4-94.2-96.7-164.7-96.7-104.3 0-188.9 84.6-188.9 188.9s84.6 188.9 188.9 188.9c71 0 132.5-38.8 164.7-96.7zM1148.8 9.6h107.8v527.3h-107.8zm977.5 0v527.3h107.8V378.7L2362 536.9h138L2337.3 349l150.6-175.3h-132L2234 319.2V9.6z" clip-rule="evenodd"/>
|
|
58
|
+
<path d="M1576.9 400.4c-15.6 25.7-47.8 44.8-84.1 44.8-49.9 0-90.1-40.3-90.1-90.1s40.3-90.1 90.1-90.1c36.3 0 68.5 20.1 84.1 46.3zm0-226.6v42.8c-17.6-29.7-61.4-50.4-107.3-50.4-94.7 0-169.2 83.6-169.2 188.4S1374.9 544 1469.6 544c45.8 0 89.6-20.6 107.3-50.4v42.8h107.8V173.8z"/>
|
|
59
|
+
<g fill-rule="evenodd" clip-rule="evenodd">
|
|
60
|
+
<path fill="#e01e5a" d="M133.5 399.9c0 36.8-29.7 66.5-66.5 66.5S.5 436.6.5 399.9s29.7-66.5 66.5-66.5h66.5zm33.2 0c0-36.8 29.7-66.5 66.5-66.5s66.5 29.7 66.5 66.5v166.2c0 36.8-29.7 66.5-66.5 66.5s-66.5-29.7-66.5-66.5z"/>
|
|
61
|
+
<path fill="#36c5f0" d="M233.2 133c-36.8 0-66.5-29.7-66.5-66.5S196.4 0 233.2 0s66.5 29.7 66.5 66.5V133zm0 33.7c36.8 0 66.5 29.7 66.5 66.5s-29.7 66.5-66.5 66.5H66.5C29.7 299.7 0 269.9 0 233.2s29.7-66.5 66.5-66.5z"/>
|
|
62
|
+
<path fill="#2eb67d" d="M499.6 233.2c0-36.8 29.7-66.5 66.5-66.5s66.5 29.7 66.5 66.5-29.7 66.5-66.5 66.5h-66.5zm-33.2 0c0 36.8-29.7 66.5-66.5 66.5s-66.5-29.7-66.5-66.5V66.5c0-36.8 29.7-66.5 66.5-66.5s66.5 29.7 66.5 66.5z"/>
|
|
63
|
+
<path fill="#ecb22e" d="M399.9 499.6c36.8 0 66.5 29.7 66.5 66.5s-29.7 66.5-66.5 66.5-66.5-29.7-66.5-66.5v-66.5zm0-33.2c-36.8 0-66.5-29.7-66.5-66.5s29.7-66.5 66.5-66.5h166.7c36.8 0 66.5 29.7 66.5 66.5s-29.7 66.5-66.5 66.5z"/>
|
|
64
|
+
</g>
|
|
65
|
+
</svg>`},Ji="MIT",Ki="https://www.slack.com",Yi={slug:Vi,title:Gi,hex:Fi,categories:Zi,aliases:Ui,svg:qi,variants:Wi,license:Ji,url:Ki},Qi="discord",Xi="Discord",e2="5865F2",t2=["Software","Platform"],s2=[],r2='<svg viewBox="0 0 256 199" width="256" height="199" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid"><path d="M216.856 16.597A208.502 208.502 0 0 0 164.042 0c-2.275 4.113-4.933 9.645-6.766 14.046-19.692-2.961-39.203-2.961-58.533 0-1.832-4.4-4.55-9.933-6.846-14.046a207.809 207.809 0 0 0-52.855 16.638C5.618 67.147-3.443 116.4 1.087 164.956c22.169 16.555 43.653 26.612 64.775 33.193A161.094 161.094 0 0 0 79.735 175.3a136.413 136.413 0 0 1-21.846-10.632 108.636 108.636 0 0 0 5.356-4.237c42.122 19.702 87.89 19.702 129.51 0a131.66 131.66 0 0 0 5.355 4.237 136.07 136.07 0 0 1-21.886 10.653c4.006 8.02 8.638 15.67 13.873 22.848 21.142-6.58 42.646-16.637 64.815-33.213 5.316-56.288-9.08-105.09-38.056-148.36ZM85.474 135.095c-12.645 0-23.015-11.805-23.015-26.18s10.149-26.2 23.015-26.2c12.867 0 23.236 11.804 23.015 26.2.02 14.375-10.148 26.18-23.015 26.18Zm85.051 0c-12.645 0-23.014-11.805-23.014-26.18s10.148-26.2 23.014-26.2c12.867 0 23.236 11.804 23.015 26.2 0 14.375-10.148 26.18-23.015 26.18Z" fill="#5865F2"/></svg>',a2={default:'<svg viewBox="0 0 256 199" width="256" height="199" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid"><path d="M216.856 16.597A208.502 208.502 0 0 0 164.042 0c-2.275 4.113-4.933 9.645-6.766 14.046-19.692-2.961-39.203-2.961-58.533 0-1.832-4.4-4.55-9.933-6.846-14.046a207.809 207.809 0 0 0-52.855 16.638C5.618 67.147-3.443 116.4 1.087 164.956c22.169 16.555 43.653 26.612 64.775 33.193A161.094 161.094 0 0 0 79.735 175.3a136.413 136.413 0 0 1-21.846-10.632 108.636 108.636 0 0 0 5.356-4.237c42.122 19.702 87.89 19.702 129.51 0a131.66 131.66 0 0 0 5.355 4.237 136.07 136.07 0 0 1-21.886 10.653c4.006 8.02 8.638 15.67 13.873 22.848 21.142-6.58 42.646-16.637 64.815-33.213 5.316-56.288-9.08-105.09-38.056-148.36ZM85.474 135.095c-12.645 0-23.015-11.805-23.015-26.18s10.149-26.2 23.015-26.2c12.867 0 23.236 11.804 23.015 26.2.02 14.375-10.148 26.18-23.015 26.18Zm85.051 0c-12.645 0-23.014-11.805-23.014-26.18s10.148-26.2 23.014-26.2c12.867 0 23.236 11.804 23.015 26.2 0 14.375-10.148 26.18-23.015 26.18Z" fill="#5865F2"/></svg>',mono:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Discord</title><path d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"/></svg>'},o2="CC0-1.0",n2="https://discord.com/",i2={slug:Qi,title:Xi,hex:e2,categories:t2,aliases:s2,svg:r2,variants:a2,license:o2,url:n2},l2="telegram",c2="Telegram",d2="26A5E4",u2=["Social","Platform"],h2=[],m2='<svg viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg" width="256" height="256" preserveAspectRatio="xMidYMid"><defs><linearGradient id="a" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#2AABEE"/><stop offset="100%" stop-color="#229ED9"/></linearGradient></defs><path fill="url(#a)" d="M128 0C94.06 0 61.48 13.494 37.5 37.49A128.038 128.038 0 0 0 0 128c0 33.934 13.5 66.514 37.5 90.51C61.48 242.506 94.06 256 128 256s66.52-13.494 90.5-37.49c24-23.996 37.5-56.576 37.5-90.51 0-33.934-13.5-66.514-37.5-90.51C194.52 13.494 161.94 0 128 0Z"/><path fill="#FFF" d="M57.94 126.648c37.32-16.256 62.2-26.974 74.64-32.152 35.56-14.786 42.94-17.354 47.76-17.441 1.06-.017 3.42.245 4.96 1.49 1.28 1.05 1.64 2.47 1.82 3.467.16.996.38 3.266.2 5.038-1.92 20.24-10.26 69.356-14.5 92.026-1.78 9.592-5.32 12.808-8.74 13.122-7.44.684-13.08-4.912-20.28-9.63-11.26-7.386-17.62-11.982-28.56-19.188-12.64-8.328-4.44-12.906 2.76-20.386 1.88-1.958 34.64-31.748 35.26-34.45.08-.338.16-1.598-.6-2.262-.74-.666-1.84-.438-2.64-.258-1.14.256-19.12 12.152-54 35.686-5.1 3.508-9.72 5.218-13.88 5.128-4.56-.098-13.36-2.584-19.9-4.708-8-2.606-14.38-3.984-13.82-8.41.28-2.304 3.46-4.662 9.52-7.072Z"/></svg>',p2={default:'<svg viewBox="0 0 256 256" xmlns="http://www.w3.org/2000/svg" width="256" height="256" preserveAspectRatio="xMidYMid"><defs><linearGradient id="a" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="#2AABEE"/><stop offset="100%" stop-color="#229ED9"/></linearGradient></defs><path fill="url(#a)" d="M128 0C94.06 0 61.48 13.494 37.5 37.49A128.038 128.038 0 0 0 0 128c0 33.934 13.5 66.514 37.5 90.51C61.48 242.506 94.06 256 128 256s66.52-13.494 90.5-37.49c24-23.996 37.5-56.576 37.5-90.51 0-33.934-13.5-66.514-37.5-90.51C194.52 13.494 161.94 0 128 0Z"/><path fill="#FFF" d="M57.94 126.648c37.32-16.256 62.2-26.974 74.64-32.152 35.56-14.786 42.94-17.354 47.76-17.441 1.06-.017 3.42.245 4.96 1.49 1.28 1.05 1.64 2.47 1.82 3.467.16.996.38 3.266.2 5.038-1.92 20.24-10.26 69.356-14.5 92.026-1.78 9.592-5.32 12.808-8.74 13.122-7.44.684-13.08-4.912-20.28-9.63-11.26-7.386-17.62-11.982-28.56-19.188-12.64-8.328-4.44-12.906 2.76-20.386 1.88-1.958 34.64-31.748 35.26-34.45.08-.338.16-1.598-.6-2.262-.74-.666-1.84-.438-2.64-.258-1.14.256-19.12 12.152-54 35.686-5.1 3.508-9.72 5.218-13.88 5.128-4.56-.098-13.36-2.584-19.9-4.708-8-2.606-14.38-3.984-13.82-8.41.28-2.304 3.46-4.662 9.52-7.072Z"/></svg>',mono:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Telegram</title><path d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"/></svg>'},f2="CC0-1.0",x2="https://web.telegram.org/",g2={slug:l2,title:c2,hex:d2,categories:u2,aliases:h2,svg:m2,variants:p2,license:f2,url:x2},v2="anthropic",y2="Anthropic",b2="191919",w2=["AI","Software"],j2=[],C2='<svg fill="#ffff" fill-rule="evenodd" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Anthropic</title><path d="M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z"></path></svg>',k2={default:'<svg fill="#ffff" fill-rule="evenodd" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Anthropic</title><path d="M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z"></path></svg>',mono:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Anthropic</title><path d="M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"/></svg>',light:'<svg fill="#000" fill-rule="evenodd" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Anthropic</title><path d="M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z"></path></svg>',dark:'<svg fill="#ffff" fill-rule="evenodd" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Anthropic</title><path d="M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z"></path></svg>',wordmark:'<svg fill="#ffff" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 182 24" xmlns="http://www.w3.org/2000/svg"><title>Anthropic</title><path d="M38.247 15.874L29.553 2.338H24.86v19.337h4.002V8.139l8.694 13.536h4.693V2.338h-4.003v13.536zm7.313-9.807h6.487v15.608h4.14V6.067h6.487v-3.73H45.56v3.73zm33.686 3.978h-9.109V2.338h-4.14v19.337h4.14v-7.9h9.109v7.9h4.14V2.338h-4.14v7.707zm13.39-3.978h5.108c2.043 0 3.12.746 3.12 2.155 0 1.408-1.077 2.154-3.12 2.154h-5.107v-4.31zm12.37 2.155c0-3.647-2.679-5.884-7.068-5.884h-9.443v19.337h4.142v-7.57h4.61l4.142 7.57h4.583l-4.586-8.146c2.302-.885 3.62-2.75 3.62-5.307zm12.686 9.91c-3.257 0-5.244-2.32-5.244-6.104 0-3.84 1.987-6.16 5.244-6.16 3.23 0 5.189 2.32 5.189 6.16 0 3.784-1.96 6.105-5.189 6.105zm0-16.132c-5.575 0-9.522 4.144-9.522 10.028 0 5.828 3.947 9.972 9.522 9.972 5.547 0 9.466-4.144 9.466-9.972C127.158 6.144 123.24 2 117.692 2zm22.59 8.929h-5.109V6.067h5.11c2.043 0 3.12.829 3.12 2.43 0 1.603-1.077 2.432-3.12 2.432zm.194-8.591h-9.445v19.337h4.142v-7.017h5.303c4.39 0 7.07-2.32 7.07-6.16 0-3.84-2.68-6.16-7.07-6.16zm35.108 12.839c-.718 1.878-2.153 2.956-4.113 2.956-3.257 0-5.244-2.32-5.244-6.105 0-3.84 1.987-6.16 5.244-6.16 1.96 0 3.395 1.077 4.113 2.955h4.388C178.896 4.68 175.667 2 171.472 2c-5.576 0-9.523 4.144-9.523 10.028 0 5.828 3.947 9.972 9.522 9.972 4.223 0 7.453-2.707 8.529-6.823h-4.416zm-26.39-12.84l7.705 19.338h4.225L153.42 2.338h-4.225zM9.277 14.024l2.636-6.796 2.637 6.796H9.276zm.428-11.685L2 21.675h4.307l1.576-4.06h8.06l1.575 4.06h4.307L14.121 2.338H9.704z"></path></svg>'},N2="CC0-1.0",S2="https://www.anthropic.com/",L2={slug:v2,title:y2,hex:b2,categories:w2,aliases:j2,svg:C2,variants:k2,license:N2,url:S2},M2="openai",A2="OpenAI",E2="000000",$2=["AI","Software"],T2=[],_2='<svg xmlns="http://www.w3.org/2000/svg" width="256" height="260" preserveAspectRatio="xMidYMid" viewBox="0 0 256 260"><path fill="#fff" d="M239.184 106.203a64.716 64.716 0 0 0-5.576-53.103C219.452 28.459 191 15.784 163.213 21.74A65.586 65.586 0 0 0 52.096 45.22a64.716 64.716 0 0 0-43.23 31.36c-14.31 24.602-11.061 55.634 8.033 76.74a64.665 64.665 0 0 0 5.525 53.102c14.174 24.65 42.644 37.324 70.446 31.36a64.72 64.72 0 0 0 48.754 21.744c28.481.025 53.714-18.361 62.414-45.481a64.767 64.767 0 0 0 43.229-31.36c14.137-24.558 10.875-55.423-8.083-76.483Zm-97.56 136.338a48.397 48.397 0 0 1-31.105-11.255l1.535-.87 51.67-29.825a8.595 8.595 0 0 0 4.247-7.367v-72.85l21.845 12.636c.218.111.37.32.409.563v60.367c-.056 26.818-21.783 48.545-48.601 48.601Zm-104.466-44.61a48.345 48.345 0 0 1-5.781-32.589l1.534.921 51.722 29.826a8.339 8.339 0 0 0 8.441 0l63.181-36.425v25.221a.87.87 0 0 1-.358.665l-52.335 30.184c-23.257 13.398-52.97 5.431-66.404-17.803ZM23.549 85.38a48.499 48.499 0 0 1 25.58-21.333v61.39a8.288 8.288 0 0 0 4.195 7.316l62.874 36.272-21.845 12.636a.819.819 0 0 1-.767 0L41.353 151.53c-23.211-13.454-31.171-43.144-17.804-66.405v.256Zm179.466 41.695-63.08-36.63L161.73 77.86a.819.819 0 0 1 .768 0l52.233 30.184a48.6 48.6 0 0 1-7.316 87.635v-61.391a8.544 8.544 0 0 0-4.4-7.213Zm21.742-32.69-1.535-.922-51.619-30.081a8.39 8.39 0 0 0-8.492 0L99.98 99.808V74.587a.716.716 0 0 1 .307-.665l52.233-30.133a48.652 48.652 0 0 1 72.236 50.391v.205ZM88.061 139.097l-21.845-12.585a.87.87 0 0 1-.41-.614V65.685a48.652 48.652 0 0 1 79.757-37.346l-1.535.87-51.67 29.825a8.595 8.595 0 0 0-4.246 7.367l-.051 72.697Zm11.868-25.58 28.138-16.217 28.188 16.218v32.434l-28.086 16.218-28.188-16.218-.052-32.434Z"/></svg>',P2={default:'<svg xmlns="http://www.w3.org/2000/svg" width="256" height="260" preserveAspectRatio="xMidYMid" viewBox="0 0 256 260"><path fill="#fff" d="M239.184 106.203a64.716 64.716 0 0 0-5.576-53.103C219.452 28.459 191 15.784 163.213 21.74A65.586 65.586 0 0 0 52.096 45.22a64.716 64.716 0 0 0-43.23 31.36c-14.31 24.602-11.061 55.634 8.033 76.74a64.665 64.665 0 0 0 5.525 53.102c14.174 24.65 42.644 37.324 70.446 31.36a64.72 64.72 0 0 0 48.754 21.744c28.481.025 53.714-18.361 62.414-45.481a64.767 64.767 0 0 0 43.229-31.36c14.137-24.558 10.875-55.423-8.083-76.483Zm-97.56 136.338a48.397 48.397 0 0 1-31.105-11.255l1.535-.87 51.67-29.825a8.595 8.595 0 0 0 4.247-7.367v-72.85l21.845 12.636c.218.111.37.32.409.563v60.367c-.056 26.818-21.783 48.545-48.601 48.601Zm-104.466-44.61a48.345 48.345 0 0 1-5.781-32.589l1.534.921 51.722 29.826a8.339 8.339 0 0 0 8.441 0l63.181-36.425v25.221a.87.87 0 0 1-.358.665l-52.335 30.184c-23.257 13.398-52.97 5.431-66.404-17.803ZM23.549 85.38a48.499 48.499 0 0 1 25.58-21.333v61.39a8.288 8.288 0 0 0 4.195 7.316l62.874 36.272-21.845 12.636a.819.819 0 0 1-.767 0L41.353 151.53c-23.211-13.454-31.171-43.144-17.804-66.405v.256Zm179.466 41.695-63.08-36.63L161.73 77.86a.819.819 0 0 1 .768 0l52.233 30.184a48.6 48.6 0 0 1-7.316 87.635v-61.391a8.544 8.544 0 0 0-4.4-7.213Zm21.742-32.69-1.535-.922-51.619-30.081a8.39 8.39 0 0 0-8.492 0L99.98 99.808V74.587a.716.716 0 0 1 .307-.665l52.233-30.133a48.652 48.652 0 0 1 72.236 50.391v.205ZM88.061 139.097l-21.845-12.585a.87.87 0 0 1-.41-.614V65.685a48.652 48.652 0 0 1 79.757-37.346l-1.535.87-51.67 29.825a8.595 8.595 0 0 0-4.246 7.367l-.051 72.697Zm11.868-25.58 28.138-16.217 28.188 16.218v32.434l-28.086 16.218-28.188-16.218-.052-32.434Z"/></svg>',light:'<svg xmlns="http://www.w3.org/2000/svg" width="256" height="260" preserveAspectRatio="xMidYMid" viewBox="0 0 256 260"><path d="M239.184 106.203a64.716 64.716 0 0 0-5.576-53.103C219.452 28.459 191 15.784 163.213 21.74A65.586 65.586 0 0 0 52.096 45.22a64.716 64.716 0 0 0-43.23 31.36c-14.31 24.602-11.061 55.634 8.033 76.74a64.665 64.665 0 0 0 5.525 53.102c14.174 24.65 42.644 37.324 70.446 31.36a64.72 64.72 0 0 0 48.754 21.744c28.481.025 53.714-18.361 62.414-45.481a64.767 64.767 0 0 0 43.229-31.36c14.137-24.558 10.875-55.423-8.083-76.483Zm-97.56 136.338a48.397 48.397 0 0 1-31.105-11.255l1.535-.87 51.67-29.825a8.595 8.595 0 0 0 4.247-7.367v-72.85l21.845 12.636c.218.111.37.32.409.563v60.367c-.056 26.818-21.783 48.545-48.601 48.601Zm-104.466-44.61a48.345 48.345 0 0 1-5.781-32.589l1.534.921 51.722 29.826a8.339 8.339 0 0 0 8.441 0l63.181-36.425v25.221a.87.87 0 0 1-.358.665l-52.335 30.184c-23.257 13.398-52.97 5.431-66.404-17.803ZM23.549 85.38a48.499 48.499 0 0 1 25.58-21.333v61.39a8.288 8.288 0 0 0 4.195 7.316l62.874 36.272-21.845 12.636a.819.819 0 0 1-.767 0L41.353 151.53c-23.211-13.454-31.171-43.144-17.804-66.405v.256Zm179.466 41.695-63.08-36.63L161.73 77.86a.819.819 0 0 1 .768 0l52.233 30.184a48.6 48.6 0 0 1-7.316 87.635v-61.391a8.544 8.544 0 0 0-4.4-7.213Zm21.742-32.69-1.535-.922-51.619-30.081a8.39 8.39 0 0 0-8.492 0L99.98 99.808V74.587a.716.716 0 0 1 .307-.665l52.233-30.133a48.652 48.652 0 0 1 72.236 50.391v.205ZM88.061 139.097l-21.845-12.585a.87.87 0 0 1-.41-.614V65.685a48.652 48.652 0 0 1 79.757-37.346l-1.535.87-51.67 29.825a8.595 8.595 0 0 0-4.246 7.367l-.051 72.697Zm11.868-25.58 28.138-16.217 28.188 16.218v32.434l-28.086 16.218-28.188-16.218-.052-32.434Z"/></svg>',dark:'<svg xmlns="http://www.w3.org/2000/svg" width="256" height="260" preserveAspectRatio="xMidYMid" viewBox="0 0 256 260"><path fill="#fff" d="M239.184 106.203a64.716 64.716 0 0 0-5.576-53.103C219.452 28.459 191 15.784 163.213 21.74A65.586 65.586 0 0 0 52.096 45.22a64.716 64.716 0 0 0-43.23 31.36c-14.31 24.602-11.061 55.634 8.033 76.74a64.665 64.665 0 0 0 5.525 53.102c14.174 24.65 42.644 37.324 70.446 31.36a64.72 64.72 0 0 0 48.754 21.744c28.481.025 53.714-18.361 62.414-45.481a64.767 64.767 0 0 0 43.229-31.36c14.137-24.558 10.875-55.423-8.083-76.483Zm-97.56 136.338a48.397 48.397 0 0 1-31.105-11.255l1.535-.87 51.67-29.825a8.595 8.595 0 0 0 4.247-7.367v-72.85l21.845 12.636c.218.111.37.32.409.563v60.367c-.056 26.818-21.783 48.545-48.601 48.601Zm-104.466-44.61a48.345 48.345 0 0 1-5.781-32.589l1.534.921 51.722 29.826a8.339 8.339 0 0 0 8.441 0l63.181-36.425v25.221a.87.87 0 0 1-.358.665l-52.335 30.184c-23.257 13.398-52.97 5.431-66.404-17.803ZM23.549 85.38a48.499 48.499 0 0 1 25.58-21.333v61.39a8.288 8.288 0 0 0 4.195 7.316l62.874 36.272-21.845 12.636a.819.819 0 0 1-.767 0L41.353 151.53c-23.211-13.454-31.171-43.144-17.804-66.405v.256Zm179.466 41.695-63.08-36.63L161.73 77.86a.819.819 0 0 1 .768 0l52.233 30.184a48.6 48.6 0 0 1-7.316 87.635v-61.391a8.544 8.544 0 0 0-4.4-7.213Zm21.742-32.69-1.535-.922-51.619-30.081a8.39 8.39 0 0 0-8.492 0L99.98 99.808V74.587a.716.716 0 0 1 .307-.665l52.233-30.133a48.652 48.652 0 0 1 72.236 50.391v.205ZM88.061 139.097l-21.845-12.585a.87.87 0 0 1-.41-.614V65.685a48.652 48.652 0 0 1 79.757-37.346l-1.535.87-51.67 29.825a8.595 8.595 0 0 0-4.246 7.367l-.051 72.697Zm11.868-25.58 28.138-16.217 28.188 16.218v32.434l-28.086 16.218-28.188-16.218-.052-32.434Z"/></svg>',wordmark:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 1180 320"><g fill="#fff" clip-path="url(#a)"><path d="M367.44 153.84c0 52.32 33.6 88.8 80.16 88.8 46.56 0 80.16-36.48 80.16-88.8s-33.6-88.8-80.16-88.8c-46.56 0-80.16 36.48-80.16 88.8Zm129.6 0c0 37.44-20.4 61.68-49.44 61.68s-49.44-24.24-49.44-61.68 20.4-61.68 49.44-61.68 49.44 24.24 49.44 61.68ZM614.27 242.64c35.28 0 55.44-29.76 55.44-65.52 0-35.76-20.16-65.52-55.44-65.52-16.32 0-28.32 6.48-36.24 15.84V114h-28.8v169.2h28.8v-56.4c7.92 9.36 19.92 15.84 36.24 15.84Zm-36.96-69.12c0-23.76 13.44-36.72 31.2-36.72 20.88 0 32.16 16.32 32.16 40.32s-11.28 40.32-32.16 40.32c-17.76 0-31.2-13.2-31.2-36.48v-7.44ZM747.65 242.64c25.2 0 45.12-13.2 54-35.28L776.93 198c-3.84 12.96-15.12 20.16-29.28 20.16-18.48 0-31.44-13.2-33.6-34.8h88.32v-9.6c0-34.56-19.44-62.16-55.92-62.16-36.48 0-60 28.56-60 65.52 0 38.88 25.2 65.52 61.2 65.52Zm-1.44-106.8c18.24 0 26.88 12 27.12 25.92h-57.84c4.32-17.04 15.84-25.92 30.72-25.92ZM823.98 240h28.8v-73.92c0-18 13.2-27.6 26.16-27.6 15.84 0 22.08 11.28 22.08 26.88V240h28.8v-83.04c0-27.12-15.84-45.36-42.24-45.36-16.32 0-27.6 7.44-34.8 15.84V114h-28.8v126ZM1014.17 67.68 948.89 240h30.48l14.64-39.36h74.4l14.88 39.36h30.96l-65.28-172.32h-34.8Zm16.8 34.08 27.36 72h-54.24l26.88-72ZM1163.69 68.18h-30.72V240.5h30.72V68.18ZM297.06 130.97a79.712 79.712 0 0 0-6.85-65.48c-17.46-30.4-52.56-46.04-86.84-38.68A79.747 79.747 0 0 0 143.24 0C108.2-.08 77.11 22.48 66.33 55.82a79.754 79.754 0 0 0-53.31 38.67c-17.59 30.32-13.58 68.54 9.92 94.54a79.712 79.712 0 0 0 6.85 65.48c17.46 30.4 52.56 46.04 86.84 38.68a79.687 79.687 0 0 0 60.13 26.8c35.06.09 66.16-22.49 76.94-55.86a79.754 79.754 0 0 0 53.31-38.67c17.57-30.32 13.55-68.51-9.94-94.51l-.01.02ZM176.78 299.08a59.77 59.77 0 0 1-38.39-13.88c.49-.26 1.34-.73 1.89-1.07l63.72-36.8a10.36 10.36 0 0 0 5.24-9.07v-89.83l26.93 15.55c.29.14.48.42.52.74v74.39c-.04 33.08-26.83 59.9-59.91 59.97ZM47.94 244.05a59.71 59.71 0 0 1-7.15-40.18c.47.28 1.3.79 1.89 1.13l63.72 36.8c3.23 1.89 7.23 1.89 10.47 0l77.79-44.92v31.1c.02.32-.13.63-.38.83L129.87 266c-28.69 16.52-65.33 6.7-81.92-21.95h-.01ZM31.17 104.96c7-12.16 18.05-21.46 31.21-26.29 0 .55-.03 1.52-.03 2.2v73.61c-.02 3.74 1.98 7.21 5.23 9.06l77.79 44.91L118.44 224c-.27.18-.61.21-.91.08l-64.42-37.22c-28.63-16.58-38.45-53.21-21.95-81.89l.01-.01Zm221.26 51.49-77.79-44.92 26.93-15.54c.27-.18.61-.21.91-.08l64.42 37.19c28.68 16.57 38.51 53.26 21.94 81.94a59.94 59.94 0 0 1-31.2 26.28v-75.81c.03-3.74-1.96-7.2-5.2-9.06h-.01Zm26.8-40.34c-.47-.29-1.3-.79-1.89-1.13l-63.72-36.8a10.375 10.375 0 0 0-10.47 0l-77.79 44.92V92c-.02-.32.13-.63.38-.83l64.41-37.16c28.69-16.55 65.37-6.7 81.91 22a59.95 59.95 0 0 1 7.15 40.1h.02Zm-168.51 55.43-26.94-15.55a.943.943 0 0 1-.52-.74V80.86c.02-33.12 26.89-59.96 60.01-59.94 14.01 0 27.57 4.92 38.34 13.88-.49.26-1.33.73-1.89 1.07L116 72.67a10.344 10.344 0 0 0-5.24 9.06l-.04 89.79v.02ZM125.35 140 160 119.99l34.65 20V180L160 200l-34.65-20v-40Z"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h1180v320H0z"/></clipPath></defs></svg>'},z2="MIT",O2="https://openai.com/",I2={slug:M2,title:A2,hex:E2,categories:$2,aliases:T2,svg:_2,variants:P2,license:z2,url:O2},R2="google",B2="Google",H2="4285F4",D2=["Google","Software"],V2=["구글"],G2='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" overflow="hidden" viewBox="0 0 268.152 273.883"><defs><linearGradient id="a"><stop offset="0" stop-color="#0fbc5c"/><stop offset="1" stop-color="#0cba65"/></linearGradient><linearGradient id="g"><stop offset=".231" stop-color="#0fbc5f"/><stop offset=".312" stop-color="#0fbc5f"/><stop offset=".366" stop-color="#0fbc5e"/><stop offset=".458" stop-color="#0fbc5d"/><stop offset=".54" stop-color="#12bc58"/><stop offset=".699" stop-color="#28bf3c"/><stop offset=".771" stop-color="#38c02b"/><stop offset=".861" stop-color="#52c218"/><stop offset=".915" stop-color="#67c30f"/><stop offset="1" stop-color="#86c504"/></linearGradient><linearGradient id="h"><stop offset=".142" stop-color="#1abd4d"/><stop offset=".248" stop-color="#6ec30d"/><stop offset=".312" stop-color="#8ac502"/><stop offset=".366" stop-color="#a2c600"/><stop offset=".446" stop-color="#c8c903"/><stop offset=".54" stop-color="#ebcb03"/><stop offset=".616" stop-color="#f7cd07"/><stop offset=".699" stop-color="#fdcd04"/><stop offset=".771" stop-color="#fdce05"/><stop offset=".861" stop-color="#ffce0a"/></linearGradient><linearGradient id="f"><stop offset=".316" stop-color="#ff4c3c"/><stop offset=".604" stop-color="#ff692c"/><stop offset=".727" stop-color="#ff7825"/><stop offset=".885" stop-color="#ff8d1b"/><stop offset="1" stop-color="#ff9f13"/></linearGradient><linearGradient id="b"><stop offset=".231" stop-color="#ff4541"/><stop offset=".312" stop-color="#ff4540"/><stop offset=".458" stop-color="#ff4640"/><stop offset=".54" stop-color="#ff473f"/><stop offset=".699" stop-color="#ff5138"/><stop offset=".771" stop-color="#ff5b33"/><stop offset=".861" stop-color="#ff6c29"/><stop offset="1" stop-color="#ff8c18"/></linearGradient><linearGradient id="d"><stop offset=".408" stop-color="#fb4e5a"/><stop offset="1" stop-color="#ff4540"/></linearGradient><linearGradient id="c"><stop offset=".132" stop-color="#0cba65"/><stop offset=".21" stop-color="#0bb86d"/><stop offset=".297" stop-color="#09b479"/><stop offset=".396" stop-color="#08ad93"/><stop offset=".477" stop-color="#0aa6a9"/><stop offset=".568" stop-color="#0d9cc6"/><stop offset=".667" stop-color="#1893dd"/><stop offset=".769" stop-color="#258bf1"/><stop offset=".859" stop-color="#3086ff"/></linearGradient><linearGradient id="e"><stop offset=".366" stop-color="#ff4e3a"/><stop offset=".458" stop-color="#ff8a1b"/><stop offset=".54" stop-color="#ffa312"/><stop offset=".616" stop-color="#ffb60c"/><stop offset=".771" stop-color="#ffcd0a"/><stop offset=".861" stop-color="#fecf0a"/><stop offset=".915" stop-color="#fecf08"/><stop offset="1" stop-color="#fdcd01"/></linearGradient><linearGradient xlink:href="#a" id="s" x1="219.7" x2="254.467" y1="329.535" y2="329.535" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="#b" id="m" cx="109.627" cy="135.862" r="71.46" fx="109.627" fy="135.862" gradientTransform="matrix(-1.93688 1.043 1.45573 2.55542 290.525 -400.634)" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="#c" id="n" cx="45.259" cy="279.274" r="71.46" fx="45.259" fy="279.274" gradientTransform="matrix(-3.5126 -4.45809 -1.69255 1.26062 870.8 191.554)" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="#d" id="l" cx="304.017" cy="118.009" r="47.854" fx="304.017" fy="118.009" gradientTransform="matrix(2.06435 0 0 2.59204 -297.679 -151.747)" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="#e" id="o" cx="181.001" cy="177.201" r="71.46" fx="181.001" fy="177.201" gradientTransform="matrix(-.24858 2.08314 2.96249 .33417 -255.146 -331.164)" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="#f" id="p" cx="207.673" cy="108.097" r="41.102" fx="207.673" fy="108.097" gradientTransform="matrix(-1.2492 1.34326 -3.89684 -3.4257 880.501 194.905)" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="#g" id="r" cx="109.627" cy="135.862" r="71.46" fx="109.627" fy="135.862" gradientTransform="matrix(-1.93688 -1.043 1.45573 -2.55542 290.525 838.683)" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="#h" id="j" cx="154.87" cy="145.969" r="71.46" fx="154.87" fy="145.969" gradientTransform="matrix(-.0814 -1.93722 2.92674 -.11625 -215.135 632.86)" gradientUnits="userSpaceOnUse"/><filter id="q" width="1.097" height="1.116" x="-.048" y="-.058" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="1.701"/></filter><filter id="k" width="1.033" height="1.02" x="-.017" y="-.01" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation=".242"/></filter><clipPath id="i" clipPathUnits="userSpaceOnUse"><path d="M371.378 193.24H237.083v53.438h77.167c-1.241 7.563-4.026 15.003-8.105 21.786-4.674 7.773-10.451 13.69-16.373 18.196-17.74 13.498-38.42 16.258-52.783 16.258-36.283 0-67.283-23.286-79.285-54.928-.484-1.149-.805-2.335-1.197-3.507a81.115 81.115 0 0 1-4.101-25.448c0-9.226 1.569-18.057 4.43-26.398 11.285-32.897 42.985-57.467 80.179-57.467 7.481 0 14.685.884 21.517 2.648a77.668 77.668 0 0 1 33.425 18.25l40.834-39.712c-24.839-22.616-57.219-36.32-95.844-36.32-30.878 0-59.386 9.553-82.748 25.7-18.945 13.093-34.483 30.625-44.97 50.985-9.753 18.879-15.094 39.8-15.094 62.294 0 22.495 5.35 43.633 15.103 62.337v.126c10.302 19.857 25.368 36.954 43.678 49.988 15.997 11.386 44.68 26.551 84.031 26.551 22.63 0 42.687-4.051 60.375-11.644 12.76-5.478 24.065-12.622 34.301-21.804 13.525-12.132 24.117-27.139 31.347-44.404 7.23-17.265 11.097-36.79 11.097-57.957 0-9.858-.998-19.87-2.689-28.968Z"/></clipPath></defs><g clip-path="url(#i)" transform="matrix(.95792 0 0 .98525 -90.174 -78.856)"><path fill="url(#j)" d="M92.076 219.958c.148 22.14 6.501 44.983 16.117 63.424v.127c6.949 13.392 16.445 23.97 27.26 34.452l65.327-23.67c-12.36-6.235-14.246-10.055-23.105-17.026-9.054-9.066-15.802-19.473-20.004-31.677h-.17l.17-.127c-2.765-8.058-3.037-16.613-3.14-25.503Z" filter="url(#k)"/><path fill="url(#l)" d="M237.083 79.025c-6.456 22.526-3.988 44.421 0 57.161 7.457.006 14.64.888 21.45 2.647a77.662 77.662 0 0 1 33.424 18.25l41.88-40.726c-24.81-22.59-54.667-37.297-96.754-37.332Z" filter="url(#k)"/><path fill="url(#m)" d="M236.943 78.847c-31.67 0-60.91 9.798-84.871 26.359a145.533 145.533 0 0 0-24.332 21.15c-1.904 17.744 14.257 39.551 46.262 39.37 15.528-17.936 38.495-29.542 64.056-29.542l.07.002-1.044-57.335c-.048 0-.093-.004-.14-.004Z" filter="url(#k)"/><path fill="url(#n)" d="m341.475 226.379-28.268 19.285c-1.24 7.562-4.028 15.002-8.107 21.786-4.674 7.772-10.45 13.69-16.373 18.196-17.702 13.47-38.328 16.244-52.687 16.255-14.842 25.102-17.444 37.675 1.043 57.934 22.877-.016 43.157-4.117 61.046-11.796 12.931-5.551 24.388-12.792 34.761-22.097 13.706-12.295 24.442-27.503 31.769-45 7.327-17.497 11.245-37.282 11.245-58.734Z" filter="url(#k)"/><path fill="#3086ff" d="M234.996 191.21v57.498h136.006c1.196-7.874 5.152-18.064 5.152-26.5 0-9.858-.996-21.899-2.687-30.998Z" filter="url(#k)"/><path fill="url(#o)" d="M128.39 124.327c-8.394 9.119-15.564 19.326-21.249 30.364-9.753 18.879-15.094 41.83-15.094 64.324 0 .317.026.627.029.944 4.32 8.224 59.666 6.649 62.456 0-.004-.31-.039-.613-.039-.924 0-9.226 1.57-16.026 4.43-24.367 3.53-10.289 9.056-19.763 16.123-27.926 1.602-2.031 5.875-6.397 7.121-9.016.475-.997-.862-1.557-.937-1.908-.083-.393-1.876-.077-2.277-.37-1.275-.929-3.8-1.414-5.334-1.845-3.277-.921-8.708-2.953-11.725-5.06-9.536-6.658-24.417-14.612-33.505-24.216Z" filter="url(#k)"/><path fill="url(#p)" d="M162.099 155.857c22.112 13.301 28.471-6.714 43.173-12.977l-25.574-52.664a144.74 144.74 0 0 0-26.543 14.504c-12.316 8.512-23.192 18.9-32.176 30.72Z" filter="url(#q)"/><path fill="url(#r)" d="M171.099 290.222c-29.683 10.641-34.33 11.023-37.062 29.29a144.806 144.806 0 0 0 16.792 13.984c15.996 11.386 46.766 26.551 86.118 26.551.046 0 .09-.004.137-.004v-59.157l-.094.002c-14.736 0-26.512-3.843-38.585-10.527-2.977-1.648-8.378 2.777-11.123.799-3.786-2.729-12.9 2.35-16.183-.938Z" filter="url(#k)"/><path fill="url(#s)" d="M219.7 299.023v59.996c5.506.64 11.236 1.028 17.247 1.028 6.026 0 11.855-.307 17.52-.872v-59.748a105.119 105.119 0 0 1-17.477 1.461c-5.932 0-11.7-.686-17.29-1.865Z" filter="url(#k)" opacity=".5"/></g></svg>',F2={default:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" overflow="hidden" viewBox="0 0 268.152 273.883"><defs><linearGradient id="a"><stop offset="0" stop-color="#0fbc5c"/><stop offset="1" stop-color="#0cba65"/></linearGradient><linearGradient id="g"><stop offset=".231" stop-color="#0fbc5f"/><stop offset=".312" stop-color="#0fbc5f"/><stop offset=".366" stop-color="#0fbc5e"/><stop offset=".458" stop-color="#0fbc5d"/><stop offset=".54" stop-color="#12bc58"/><stop offset=".699" stop-color="#28bf3c"/><stop offset=".771" stop-color="#38c02b"/><stop offset=".861" stop-color="#52c218"/><stop offset=".915" stop-color="#67c30f"/><stop offset="1" stop-color="#86c504"/></linearGradient><linearGradient id="h"><stop offset=".142" stop-color="#1abd4d"/><stop offset=".248" stop-color="#6ec30d"/><stop offset=".312" stop-color="#8ac502"/><stop offset=".366" stop-color="#a2c600"/><stop offset=".446" stop-color="#c8c903"/><stop offset=".54" stop-color="#ebcb03"/><stop offset=".616" stop-color="#f7cd07"/><stop offset=".699" stop-color="#fdcd04"/><stop offset=".771" stop-color="#fdce05"/><stop offset=".861" stop-color="#ffce0a"/></linearGradient><linearGradient id="f"><stop offset=".316" stop-color="#ff4c3c"/><stop offset=".604" stop-color="#ff692c"/><stop offset=".727" stop-color="#ff7825"/><stop offset=".885" stop-color="#ff8d1b"/><stop offset="1" stop-color="#ff9f13"/></linearGradient><linearGradient id="b"><stop offset=".231" stop-color="#ff4541"/><stop offset=".312" stop-color="#ff4540"/><stop offset=".458" stop-color="#ff4640"/><stop offset=".54" stop-color="#ff473f"/><stop offset=".699" stop-color="#ff5138"/><stop offset=".771" stop-color="#ff5b33"/><stop offset=".861" stop-color="#ff6c29"/><stop offset="1" stop-color="#ff8c18"/></linearGradient><linearGradient id="d"><stop offset=".408" stop-color="#fb4e5a"/><stop offset="1" stop-color="#ff4540"/></linearGradient><linearGradient id="c"><stop offset=".132" stop-color="#0cba65"/><stop offset=".21" stop-color="#0bb86d"/><stop offset=".297" stop-color="#09b479"/><stop offset=".396" stop-color="#08ad93"/><stop offset=".477" stop-color="#0aa6a9"/><stop offset=".568" stop-color="#0d9cc6"/><stop offset=".667" stop-color="#1893dd"/><stop offset=".769" stop-color="#258bf1"/><stop offset=".859" stop-color="#3086ff"/></linearGradient><linearGradient id="e"><stop offset=".366" stop-color="#ff4e3a"/><stop offset=".458" stop-color="#ff8a1b"/><stop offset=".54" stop-color="#ffa312"/><stop offset=".616" stop-color="#ffb60c"/><stop offset=".771" stop-color="#ffcd0a"/><stop offset=".861" stop-color="#fecf0a"/><stop offset=".915" stop-color="#fecf08"/><stop offset="1" stop-color="#fdcd01"/></linearGradient><linearGradient xlink:href="#a" id="s" x1="219.7" x2="254.467" y1="329.535" y2="329.535" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="#b" id="m" cx="109.627" cy="135.862" r="71.46" fx="109.627" fy="135.862" gradientTransform="matrix(-1.93688 1.043 1.45573 2.55542 290.525 -400.634)" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="#c" id="n" cx="45.259" cy="279.274" r="71.46" fx="45.259" fy="279.274" gradientTransform="matrix(-3.5126 -4.45809 -1.69255 1.26062 870.8 191.554)" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="#d" id="l" cx="304.017" cy="118.009" r="47.854" fx="304.017" fy="118.009" gradientTransform="matrix(2.06435 0 0 2.59204 -297.679 -151.747)" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="#e" id="o" cx="181.001" cy="177.201" r="71.46" fx="181.001" fy="177.201" gradientTransform="matrix(-.24858 2.08314 2.96249 .33417 -255.146 -331.164)" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="#f" id="p" cx="207.673" cy="108.097" r="41.102" fx="207.673" fy="108.097" gradientTransform="matrix(-1.2492 1.34326 -3.89684 -3.4257 880.501 194.905)" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="#g" id="r" cx="109.627" cy="135.862" r="71.46" fx="109.627" fy="135.862" gradientTransform="matrix(-1.93688 -1.043 1.45573 -2.55542 290.525 838.683)" gradientUnits="userSpaceOnUse"/><radialGradient xlink:href="#h" id="j" cx="154.87" cy="145.969" r="71.46" fx="154.87" fy="145.969" gradientTransform="matrix(-.0814 -1.93722 2.92674 -.11625 -215.135 632.86)" gradientUnits="userSpaceOnUse"/><filter id="q" width="1.097" height="1.116" x="-.048" y="-.058" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="1.701"/></filter><filter id="k" width="1.033" height="1.02" x="-.017" y="-.01" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation=".242"/></filter><clipPath id="i" clipPathUnits="userSpaceOnUse"><path d="M371.378 193.24H237.083v53.438h77.167c-1.241 7.563-4.026 15.003-8.105 21.786-4.674 7.773-10.451 13.69-16.373 18.196-17.74 13.498-38.42 16.258-52.783 16.258-36.283 0-67.283-23.286-79.285-54.928-.484-1.149-.805-2.335-1.197-3.507a81.115 81.115 0 0 1-4.101-25.448c0-9.226 1.569-18.057 4.43-26.398 11.285-32.897 42.985-57.467 80.179-57.467 7.481 0 14.685.884 21.517 2.648a77.668 77.668 0 0 1 33.425 18.25l40.834-39.712c-24.839-22.616-57.219-36.32-95.844-36.32-30.878 0-59.386 9.553-82.748 25.7-18.945 13.093-34.483 30.625-44.97 50.985-9.753 18.879-15.094 39.8-15.094 62.294 0 22.495 5.35 43.633 15.103 62.337v.126c10.302 19.857 25.368 36.954 43.678 49.988 15.997 11.386 44.68 26.551 84.031 26.551 22.63 0 42.687-4.051 60.375-11.644 12.76-5.478 24.065-12.622 34.301-21.804 13.525-12.132 24.117-27.139 31.347-44.404 7.23-17.265 11.097-36.79 11.097-57.957 0-9.858-.998-19.87-2.689-28.968Z"/></clipPath></defs><g clip-path="url(#i)" transform="matrix(.95792 0 0 .98525 -90.174 -78.856)"><path fill="url(#j)" d="M92.076 219.958c.148 22.14 6.501 44.983 16.117 63.424v.127c6.949 13.392 16.445 23.97 27.26 34.452l65.327-23.67c-12.36-6.235-14.246-10.055-23.105-17.026-9.054-9.066-15.802-19.473-20.004-31.677h-.17l.17-.127c-2.765-8.058-3.037-16.613-3.14-25.503Z" filter="url(#k)"/><path fill="url(#l)" d="M237.083 79.025c-6.456 22.526-3.988 44.421 0 57.161 7.457.006 14.64.888 21.45 2.647a77.662 77.662 0 0 1 33.424 18.25l41.88-40.726c-24.81-22.59-54.667-37.297-96.754-37.332Z" filter="url(#k)"/><path fill="url(#m)" d="M236.943 78.847c-31.67 0-60.91 9.798-84.871 26.359a145.533 145.533 0 0 0-24.332 21.15c-1.904 17.744 14.257 39.551 46.262 39.37 15.528-17.936 38.495-29.542 64.056-29.542l.07.002-1.044-57.335c-.048 0-.093-.004-.14-.004Z" filter="url(#k)"/><path fill="url(#n)" d="m341.475 226.379-28.268 19.285c-1.24 7.562-4.028 15.002-8.107 21.786-4.674 7.772-10.45 13.69-16.373 18.196-17.702 13.47-38.328 16.244-52.687 16.255-14.842 25.102-17.444 37.675 1.043 57.934 22.877-.016 43.157-4.117 61.046-11.796 12.931-5.551 24.388-12.792 34.761-22.097 13.706-12.295 24.442-27.503 31.769-45 7.327-17.497 11.245-37.282 11.245-58.734Z" filter="url(#k)"/><path fill="#3086ff" d="M234.996 191.21v57.498h136.006c1.196-7.874 5.152-18.064 5.152-26.5 0-9.858-.996-21.899-2.687-30.998Z" filter="url(#k)"/><path fill="url(#o)" d="M128.39 124.327c-8.394 9.119-15.564 19.326-21.249 30.364-9.753 18.879-15.094 41.83-15.094 64.324 0 .317.026.627.029.944 4.32 8.224 59.666 6.649 62.456 0-.004-.31-.039-.613-.039-.924 0-9.226 1.57-16.026 4.43-24.367 3.53-10.289 9.056-19.763 16.123-27.926 1.602-2.031 5.875-6.397 7.121-9.016.475-.997-.862-1.557-.937-1.908-.083-.393-1.876-.077-2.277-.37-1.275-.929-3.8-1.414-5.334-1.845-3.277-.921-8.708-2.953-11.725-5.06-9.536-6.658-24.417-14.612-33.505-24.216Z" filter="url(#k)"/><path fill="url(#p)" d="M162.099 155.857c22.112 13.301 28.471-6.714 43.173-12.977l-25.574-52.664a144.74 144.74 0 0 0-26.543 14.504c-12.316 8.512-23.192 18.9-32.176 30.72Z" filter="url(#q)"/><path fill="url(#r)" d="M171.099 290.222c-29.683 10.641-34.33 11.023-37.062 29.29a144.806 144.806 0 0 0 16.792 13.984c15.996 11.386 46.766 26.551 86.118 26.551.046 0 .09-.004.137-.004v-59.157l-.094.002c-14.736 0-26.512-3.843-38.585-10.527-2.977-1.648-8.378 2.777-11.123.799-3.786-2.729-12.9 2.35-16.183-.938Z" filter="url(#k)"/><path fill="url(#s)" d="M219.7 299.023v59.996c5.506.64 11.236 1.028 17.247 1.028 6.026 0 11.855-.307 17.52-.872v-59.748a105.119 105.119 0 0 1-17.477 1.461c-5.932 0-11.7-.686-17.29-1.865Z" filter="url(#k)" opacity=".5"/></g></svg>',mono:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Google</title><path d="M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"/></svg>',wordmark:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 272 92" width="272" height="92">
|
|
66
|
+
<path fill="#EA4335" d="M115.75 47.18c0 12.77-9.99 22.18-22.25 22.18s-22.25-9.41-22.25-22.18C71.25 34.32 81.24 25 93.5 25s22.25 9.32 22.25 22.18zm-9.74 0c0-7.98-5.79-13.44-12.51-13.44S80.99 39.2 80.99 47.18c0 7.9 5.79 13.44 12.51 13.44s12.51-5.55 12.51-13.44z"/>
|
|
67
|
+
<path fill="#FBBC05" d="M163.75 47.18c0 12.77-9.99 22.18-22.25 22.18s-22.25-9.41-22.25-22.18c0-12.85 9.99-22.18 22.25-22.18s22.25 9.32 22.25 22.18zm-9.74 0c0-7.98-5.79-13.44-12.51-13.44s-12.51 5.46-12.51 13.44c0 7.9 5.79 13.44 12.51 13.44s12.51-5.55 12.51-13.44z"/>
|
|
68
|
+
<path fill="#4285F4" d="M209.75 26.34v39.82c0 16.38-9.66 23.07-21.08 23.07-10.75 0-17.22-7.19-19.66-13.07l8.48-3.53c1.51 3.61 5.21 7.87 11.17 7.87 7.31 0 11.84-4.51 11.84-13v-3.19h-.34c-2.18 2.69-6.38 5.04-11.68 5.04-11.09 0-21.25-9.66-21.25-22.09 0-12.52 10.16-22.26 21.25-22.26 5.29 0 9.49 2.35 11.68 4.96h.34v-3.61h9.25zm-8.56 20.92c0-7.81-5.21-13.52-11.84-13.52-6.72 0-12.35 5.71-12.35 13.52 0 7.73 5.63 13.36 12.35 13.36 6.63 0 11.84-5.63 11.84-13.36z"/>
|
|
69
|
+
<path fill="#34A853" d="M225 3v65h-9.5V3h9.5z"/>
|
|
70
|
+
<path fill="#EA4335" d="M262.02 54.48l7.56 5.04c-2.44 3.61-8.32 9.83-18.48 9.83-12.6 0-22.01-9.74-22.01-22.18 0-13.19 9.49-22.18 20.92-22.18 11.51 0 17.14 9.16 18.98 14.11l1.01 2.52-29.65 12.28c2.27 4.45 5.8 6.72 10.75 6.72 4.96 0 8.4-2.44 10.92-6.14zm-23.27-7.98l19.82-8.23c-1.09-2.77-4.37-4.7-8.23-4.7-4.95 0-11.84 4.37-11.59 12.93z"/>
|
|
71
|
+
<path fill="#4285F4" d="M35.29 41.41V32H67c.31 1.64.47 3.58.47 5.68 0 7.06-1.93 15.79-8.15 22.01-6.05 6.3-13.78 9.66-24.02 9.66C16.32 69.35.36 53.89.36 34.91.36 15.93 16.32.47 35.3.47c10.5 0 17.98 4.12 23.6 9.49l-6.64 6.64c-4.03-3.78-9.49-6.72-16.97-6.72-13.86 0-24.7 11.17-24.7 25.03 0 13.86 10.84 25.03 24.7 25.03 8.99 0 14.11-3.61 17.39-6.89 2.66-2.66 4.41-6.46 5.1-11.65l-22.49.01z"/>
|
|
72
|
+
</svg>`},Z2="CC0-1.0",U2="https://www.google.com/",q2={slug:R2,title:B2,hex:H2,categories:D2,aliases:V2,svg:G2,variants:F2,license:Z2,url:U2},W2="jira",J2="Jira",K2="0052CC",Y2=["Devtool","Software"],Q2=[],X2='<svg fill="#0052CC" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Jira</title><path d="M11.571 11.513H0a5.218 5.218 0 0 0 5.232 5.215h2.13v2.057A5.215 5.215 0 0 0 12.575 24V12.518a1.005 1.005 0 0 0-1.005-1.005zm5.723-5.756H5.736a5.215 5.215 0 0 0 5.215 5.214h2.129v2.058a5.218 5.218 0 0 0 5.215 5.214V6.758a1.001 1.001 0 0 0-1.001-1.001zM23.013 0H11.455a5.215 5.215 0 0 0 5.215 5.215h2.129v2.057A5.215 5.215 0 0 0 24 12.483V1.005A1.001 1.001 0 0 0 23.013 0Z"/></svg>',el={default:'<svg fill="#0052CC" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Jira</title><path d="M11.571 11.513H0a5.218 5.218 0 0 0 5.232 5.215h2.13v2.057A5.215 5.215 0 0 0 12.575 24V12.518a1.005 1.005 0 0 0-1.005-1.005zm5.723-5.756H5.736a5.215 5.215 0 0 0 5.215 5.214h2.129v2.058a5.218 5.218 0 0 0 5.215 5.214V6.758a1.001 1.001 0 0 0-1.001-1.001zM23.013 0H11.455a5.215 5.215 0 0 0 5.215 5.215h2.129v2.057A5.215 5.215 0 0 0 24 12.483V1.005A1.001 1.001 0 0 0 23.013 0Z"/></svg>',mono:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Jira</title><path d="M11.571 11.513H0a5.218 5.218 0 0 0 5.232 5.215h2.13v2.057A5.215 5.215 0 0 0 12.575 24V12.518a1.005 1.005 0 0 0-1.005-1.005zm5.723-5.756H5.736a5.215 5.215 0 0 0 5.215 5.214h2.129v2.058a5.218 5.218 0 0 0 5.215 5.214V6.758a1.001 1.001 0 0 0-1.001-1.001zM23.013 0H11.455a5.215 5.215 0 0 0 5.215 5.215h2.129v2.057A5.215 5.215 0 0 0 24 12.483V1.005A1.001 1.001 0 0 0 23.013 0Z"/></svg>'},tl="CC0-1.0",sl="https://atlassian.design/resources/logo-library",rl={slug:W2,title:J2,hex:K2,categories:Y2,aliases:Q2,svg:X2,variants:el,license:tl,url:sl},al="linear",ol="Linear",nl="5E6AD2",il=["Devtool","Software"],ll=[],cl='<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" fill="none" viewBox="0 0 100 100"><path fill="#5E6AD2" d="M1.225 61.523c-.222-.949.908-1.546 1.597-.857l36.512 36.512c.69.69.092 1.82-.857 1.597-18.425-4.323-32.93-18.827-37.252-37.252ZM.002 46.889a.99.99 0 0 0 .29.76L52.35 99.71c.201.2.478.307.76.29 2.37-.149 4.695-.46 6.963-.927.765-.157 1.03-1.096.478-1.648L2.576 39.448c-.552-.551-1.491-.286-1.648.479a50.067 50.067 0 0 0-.926 6.962ZM4.21 29.705a.988.988 0 0 0 .208 1.1l64.776 64.776c.289.29.726.375 1.1.208a49.908 49.908 0 0 0 5.185-2.684.981.981 0 0 0 .183-1.54L8.436 24.336a.981.981 0 0 0-1.541.183 49.896 49.896 0 0 0-2.684 5.185Zm8.448-11.631a.986.986 0 0 1-.045-1.354C21.78 6.46 35.111 0 49.952 0 77.592 0 100 22.407 100 50.048c0 14.84-6.46 28.172-16.72 37.338a.986.986 0 0 1-1.354-.045L12.659 18.074Z"/></svg>',dl={default:'<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" fill="none" viewBox="0 0 100 100"><path fill="#5E6AD2" d="M1.225 61.523c-.222-.949.908-1.546 1.597-.857l36.512 36.512c.69.69.092 1.82-.857 1.597-18.425-4.323-32.93-18.827-37.252-37.252ZM.002 46.889a.99.99 0 0 0 .29.76L52.35 99.71c.201.2.478.307.76.29 2.37-.149 4.695-.46 6.963-.927.765-.157 1.03-1.096.478-1.648L2.576 39.448c-.552-.551-1.491-.286-1.648.479a50.067 50.067 0 0 0-.926 6.962ZM4.21 29.705a.988.988 0 0 0 .208 1.1l64.776 64.776c.289.29.726.375 1.1.208a49.908 49.908 0 0 0 5.185-2.684.981.981 0 0 0 .183-1.54L8.436 24.336a.981.981 0 0 0-1.541.183 49.896 49.896 0 0 0-2.684 5.185Zm8.448-11.631a.986.986 0 0 1-.045-1.354C21.78 6.46 35.111 0 49.952 0 77.592 0 100 22.407 100 50.048c0 14.84-6.46 28.172-16.72 37.338a.986.986 0 0 1-1.354-.045L12.659 18.074Z"/></svg>',mono:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Linear</title><path d="M2.886 4.18A11.982 11.982 0 0 1 11.99 0C18.624 0 24 5.376 24 12.009c0 3.64-1.62 6.903-4.18 9.105L2.887 4.18ZM1.817 5.626l16.556 16.556c-.524.33-1.075.62-1.65.866L.951 7.277c.247-.575.537-1.126.866-1.65ZM.322 9.163l14.515 14.515c-.71.172-1.443.282-2.195.322L0 11.358a12 12 0 0 1 .322-2.195Zm-.17 4.862 9.823 9.824a12.02 12.02 0 0 1-9.824-9.824Z"/></svg>'},ul="CC0-1.0",hl="https://linear.app/",ml={slug:al,title:ol,hex:nl,categories:il,aliases:ll,svg:cl,variants:dl,license:ul,url:hl},pl="whatsapp",fl="WhatsApp",xl="25D366",gl=["Social","Platform"],vl=[],yl='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 360 362"><path fill="#25D366" fill-rule="evenodd" d="M307.546 52.566C273.709 18.684 228.706.017 180.756 0 81.951 0 1.538 80.404 1.504 179.235c-.017 31.594 8.242 62.432 23.928 89.609L0 361.736l95.024-24.925c26.179 14.285 55.659 21.805 85.655 21.814h.077c98.788 0 179.21-80.413 179.244-179.244.017-47.898-18.608-92.926-52.454-126.807v-.008Zm-126.79 275.788h-.06c-26.73-.008-52.952-7.194-75.831-20.765l-5.44-3.231-56.391 14.791 15.05-54.981-3.542-5.638c-14.912-23.721-22.793-51.139-22.776-79.286.035-82.14 66.867-148.973 149.051-148.973 39.793.017 77.198 15.53 105.328 43.695 28.131 28.157 43.61 65.596 43.593 105.398-.035 82.149-66.867 148.982-148.982 148.982v.008Zm81.719-111.577c-4.478-2.243-26.497-13.073-30.606-14.568-4.108-1.496-7.09-2.243-10.073 2.243-2.982 4.487-11.568 14.577-14.181 17.559-2.613 2.991-5.226 3.361-9.704 1.117-4.477-2.243-18.908-6.97-36.02-22.226-13.313-11.878-22.304-26.54-24.916-31.027-2.613-4.486-.275-6.91 1.959-9.136 2.011-2.011 4.478-5.234 6.721-7.847 2.244-2.613 2.983-4.486 4.478-7.469 1.496-2.991.748-5.603-.369-7.847-1.118-2.243-10.073-24.289-13.812-33.253-3.636-8.732-7.331-7.546-10.073-7.692-2.613-.13-5.595-.155-8.586-.155-2.991 0-7.839 1.118-11.947 5.604-4.108 4.486-15.677 15.324-15.677 37.361s16.047 43.344 18.29 46.335c2.243 2.991 31.585 48.225 76.51 67.632 10.684 4.615 19.029 7.374 25.535 9.437 10.727 3.412 20.49 2.931 28.208 1.779 8.604-1.289 26.498-10.838 30.228-21.298 3.73-10.46 3.73-19.433 2.613-21.298-1.117-1.865-4.108-2.991-8.586-5.234l.008-.017Z" clip-rule="evenodd"/></svg>',bl={default:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 360 362"><path fill="#25D366" fill-rule="evenodd" d="M307.546 52.566C273.709 18.684 228.706.017 180.756 0 81.951 0 1.538 80.404 1.504 179.235c-.017 31.594 8.242 62.432 23.928 89.609L0 361.736l95.024-24.925c26.179 14.285 55.659 21.805 85.655 21.814h.077c98.788 0 179.21-80.413 179.244-179.244.017-47.898-18.608-92.926-52.454-126.807v-.008Zm-126.79 275.788h-.06c-26.73-.008-52.952-7.194-75.831-20.765l-5.44-3.231-56.391 14.791 15.05-54.981-3.542-5.638c-14.912-23.721-22.793-51.139-22.776-79.286.035-82.14 66.867-148.973 149.051-148.973 39.793.017 77.198 15.53 105.328 43.695 28.131 28.157 43.61 65.596 43.593 105.398-.035 82.149-66.867 148.982-148.982 148.982v.008Zm81.719-111.577c-4.478-2.243-26.497-13.073-30.606-14.568-4.108-1.496-7.09-2.243-10.073 2.243-2.982 4.487-11.568 14.577-14.181 17.559-2.613 2.991-5.226 3.361-9.704 1.117-4.477-2.243-18.908-6.97-36.02-22.226-13.313-11.878-22.304-26.54-24.916-31.027-2.613-4.486-.275-6.91 1.959-9.136 2.011-2.011 4.478-5.234 6.721-7.847 2.244-2.613 2.983-4.486 4.478-7.469 1.496-2.991.748-5.603-.369-7.847-1.118-2.243-10.073-24.289-13.812-33.253-3.636-8.732-7.331-7.546-10.073-7.692-2.613-.13-5.595-.155-8.586-.155-2.991 0-7.839 1.118-11.947 5.604-4.108 4.486-15.677 15.324-15.677 37.361s16.047 43.344 18.29 46.335c2.243 2.991 31.585 48.225 76.51 67.632 10.684 4.615 19.029 7.374 25.535 9.437 10.727 3.412 20.49 2.931 28.208 1.779 8.604-1.289 26.498-10.838 30.228-21.298 3.73-10.46 3.73-19.433 2.613-21.298-1.117-1.865-4.108-2.991-8.586-5.234l.008-.017Z" clip-rule="evenodd"/></svg>',mono:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>WhatsApp</title><path d="M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"/></svg>',wordmark:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1485.66 345.24"><path d="M172.51 0C78.22 0 1.47 76.74 1.43 171.06c-.01 30.15 7.87 59.58 22.84 85.52L0 345.24l90.69-23.79c24.99 13.63 53.12 20.81 81.75 20.82h.07c94.28 0 171.03-76.75 171.07-171.07.02-45.71-17.76-88.69-50.06-121.02C261.22 17.84 218.27.02 172.51 0Zm0 313.38h-.06c-25.51 0-50.54-6.87-72.37-19.82l-5.19-3.08-53.81 14.12 14.36-52.47-3.38-5.38c-14.23-22.64-21.75-48.81-21.74-75.67.03-78.4 63.82-142.18 142.25-142.18 37.98.01 73.68 14.82 100.52 41.7 26.85 26.87 41.62 62.6 41.61 100.59-.03 78.4-63.82 142.19-142.19 142.19Zm77.99-106.49c-4.27-2.14-25.29-12.48-29.21-13.91-3.92-1.43-6.77-2.14-9.62 2.14-2.85 4.28-11.04 13.91-13.53 16.76-2.49 2.86-4.99 3.21-9.26 1.07-4.27-2.14-18.05-6.66-34.37-21.22-12.71-11.33-21.29-25.33-23.78-29.61-2.49-4.28-.27-6.59 1.88-8.72 1.92-1.91 4.27-4.99 6.41-7.49 2.14-2.5 2.85-4.28 4.27-7.14 1.42-2.85.71-5.35-.36-7.49-1.07-2.14-9.62-23.18-13.18-31.74-3.47-8.33-6.99-7.21-9.62-7.34-2.49-.13-5.34-.15-8.19-.15s-7.48 1.07-11.4 5.35c-3.92 4.28-14.96 14.62-14.96 35.66s15.32 41.37 17.45 44.22c2.14 2.85 30.14 46.03 73.02 64.54 10.2 4.4 18.16 7.03 24.37 9 10.24 3.25 19.56 2.79 26.92 1.69 8.21-1.23 25.29-10.34 28.85-20.33 3.56-9.98 3.56-18.54 2.49-20.33-1.07-1.78-3.92-2.85-8.19-4.99Zm302.64-2.61h-.46L524.32 89.86h-34.18l-28.83 113.02h-.46L434.58 89.86h-36.5l43.94 166.05h36.97l27.66-113.03h.47l28.13 113.03h36.27l44.64-166.05h-35.8l-27.21 114.42Zm174.37-58.26c-3.25-4.26-7.71-7.59-13.36-10-5.66-2.39-12.91-3.59-21.74-3.59-6.2 0-12.55 1.58-19.07 4.77-6.51 3.17-11.85 8.25-16.04 15.23h-.7V89.86h-33.01V255.9h33.01v-63.02c0-12.25 2.01-21.04 6.05-26.4 4.03-5.34 10.54-8.02 19.53-8.02 7.9 0 13.4 2.44 16.51 7.33 3.1 4.88 4.65 12.28 4.65 22.2v67.91h33.02v-73.95c0-7.44-.67-14.22-1.98-20.35-1.32-6.11-3.6-11.31-6.86-15.58Zm136.01 83.14v-62.55c0-7.3-1.62-13.15-4.89-17.56-3.25-4.42-7.43-7.87-12.54-10.35-5.12-2.48-10.78-4.15-16.98-5-6.2-.85-12.32-1.28-18.36-1.28-6.66 0-13.29.65-19.87 1.98-6.6 1.32-12.52 3.53-17.79 6.63s-9.62 7.21-13.01 12.32c-3.42 5.12-5.36 11.55-5.82 19.31h33.01c.62-6.51 2.8-11.17 6.52-13.96 3.72-2.79 8.83-4.18 15.34-4.18 2.94 0 5.69.19 8.25.58 2.55.39 4.8 1.15 6.74 2.32 1.94 1.16 3.49 2.79 4.65 4.89 1.16 2.09 1.74 4.93 1.74 8.48.15 3.42-.86 6-3.02 7.79-2.18 1.79-5.12 3.15-8.84 4.07-3.72.94-7.98 1.64-12.79 2.09-4.81.48-9.69 1.11-14.64 1.87-4.97.78-9.89 1.82-14.76 3.14-4.88 1.31-9.24 3.3-13.03 5.92-3.8 2.65-6.9 6.17-9.31 10.59-2.4 4.42-3.6 10.05-3.6 16.86 0 6.2 1.05 11.55 3.14 16.04 2.09 4.51 5 8.22 8.72 11.17 3.72 2.95 8.06 5.12 13.02 6.52 4.95 1.39 10.31 2.09 16.04 2.09 7.44 0 14.73-1.09 21.85-3.25 7.13-2.19 13.34-5.97 18.61-11.41.15 2.02.42 4 .81 5.93.39 1.93.89 3.84 1.51 5.69h33.48c-1.55-2.47-2.64-6.19-3.26-11.16-.63-4.96-.94-10.14-.94-15.58Zm-33.01-19.77c0 1.88-.19 4.36-.58 7.45-.38 3.11-1.43 6.16-3.14 9.19-1.71 3.02-4.35 5.63-7.91 7.79-3.56 2.18-8.6 3.26-15.12 3.26-2.63 0-5.19-.23-7.67-.71-2.48-.46-4.65-1.28-6.51-2.44-1.86-1.16-3.33-2.75-4.42-4.77-1.08-2.02-1.63-4.49-1.63-7.43 0-3.1.55-5.67 1.63-7.68 1.09-2.01 2.52-3.68 4.31-5 1.77-1.32 3.87-2.36 6.27-3.14 2.4-.77 4.84-1.39 7.33-1.86 2.63-.46 5.27-.86 7.9-1.16 2.65-.3 5.16-.7 7.56-1.16 2.41-.47 4.65-1.05 6.75-1.75 2.09-.7 3.83-1.65 5.23-2.9v12.32Zm94.63-109.76h-33.02v36.04h-19.99v22.09h19.99v70.94c0 6.05 1.02 10.93 3.03 14.65 2.02 3.72 4.77 6.6 8.25 8.61 3.49 2.02 7.52 3.37 12.1 4.06 4.56.69 9.42 1.05 14.53 1.05 3.27 0 6.59-.08 10.01-.22 3.4-.16 6.5-.46 9.3-.94v-25.58c-1.56.31-3.18.56-4.89.7-1.7.16-3.48.24-5.34.24-5.57 0-9.3-.94-11.16-2.8-1.85-1.86-2.78-5.58-2.78-11.17v-59.54h24.18v-22.09h-24.18V99.63Zm136.46 103.61c-2.17-3.8-5.04-6.98-8.6-9.54-3.56-2.55-7.64-4.61-12.2-6.17-4.58-1.54-9.27-2.85-14.07-3.94-4.65-1.09-9.21-2.1-13.71-3.03-4.5-.93-8.49-1.98-11.98-3.13-3.48-1.17-6.3-2.67-8.47-4.54-2.18-1.86-3.25-4.25-3.25-7.21 0-2.48.6-4.46 1.85-5.93 1.24-1.47 2.76-2.59 4.54-3.38 1.79-.77 3.75-1.27 5.92-1.51 2.17-.23 4.19-.34 6.04-.34 5.89 0 11.01 1.12 15.36 3.37 4.33 2.25 6.74 6.55 7.19 12.9h31.39c-.62-7.44-2.52-13.6-5.69-18.49-3.17-4.88-7.17-8.79-11.97-11.74-4.8-2.95-10.26-5.04-16.4-6.28-6.12-1.24-12.43-1.86-18.93-1.86s-12.88.58-19.06 1.73c-6.21 1.17-11.79 3.19-16.74 6.06-4.97 2.87-8.95 6.78-11.98 11.74-3.03 4.96-4.54 11.32-4.54 19.07 0 5.27 1.09 9.74 3.27 13.38 2.15 3.65 5.03 6.66 8.58 9.07 3.58 2.4 7.65 4.35 12.22 5.81 4.57 1.49 9.26 2.76 14.06 3.85 11.79 2.48 20.98 4.96 27.56 7.45 6.59 2.48 9.88 6.2 9.88 11.16 0 2.95-.69 5.37-2.09 7.31-1.4 1.95-3.14 3.49-5.23 4.65-2.1 1.17-4.43 2.03-6.98 2.56-2.56.55-5.01.82-7.33.82-3.26 0-6.39-.39-9.41-1.16-3.03-.78-5.7-1.98-8.03-3.61-2.32-1.63-4.23-3.72-5.7-6.28-1.46-2.56-2.21-5.61-2.21-9.19h-31.38c.32 8.06 2.13 14.77 5.47 20.12 3.32 5.35 7.58 9.65 12.78 12.91 5.19 3.25 11.13 5.58 17.8 6.98 6.65 1.39 13.47 2.09 20.44 2.09s13.53-.66 20.12-1.97c6.59-1.32 12.44-3.61 17.55-6.87 5.13-3.25 9.25-7.55 12.44-12.9 3.17-5.36 4.76-11.98 4.76-19.89 0-5.59-1.08-10.27-3.25-14.06Zm65.56-113.38-62.77 166.05h36.73l13.01-36.98h62.08l12.54 36.98h37.91l-62.07-166.05h-37.44Zm-3.48 101.87 21.62-60.93h.46l20.93 60.93h-43.01Zm217.14-39.77c-4.49-5.89-10.15-10.62-16.97-14.18-6.82-3.57-14.95-5.35-24.4-5.35-7.45 0-14.26 1.47-20.46 4.41-6.22 2.95-11.32 7.68-15.34 14.19h-.47v-15.36h-31.4v162.34h33.04v-56.98h.45c4.03 5.9 9.19 10.35 15.48 13.36 6.26 3.02 13.13 4.54 20.57 4.54 8.84 0 16.55-1.72 23.13-5.12 6.59-3.41 12.09-7.99 16.51-13.73 4.42-5.74 7.7-12.32 9.89-19.76 2.15-7.45 3.25-15.2 3.25-23.26 0-8.53-1.1-16.7-3.25-24.54-2.19-7.82-5.51-14.69-10.01-20.58Zm-21.15 58.37c-.94 4.66-2.53 8.72-4.77 12.21-2.25 3.49-5.19 6.33-8.85 8.49-3.63 2.17-8.17 3.27-13.59 3.27s-9.75-1.09-13.47-3.27c-3.72-2.16-6.71-5-8.96-8.49-2.25-3.49-3.87-7.55-4.88-12.21-1.01-4.65-1.5-9.38-1.5-14.17s.45-9.78 1.38-14.42c.94-4.65 2.52-8.76 4.78-12.34 2.23-3.56 5.19-6.46 8.84-8.71 3.64-2.25 8.16-3.39 13.59-3.39s9.74 1.14 13.37 3.39c3.64 2.24 6.63 5.18 8.95 8.83 2.32 3.65 3.98 7.8 5 12.44 1.02 4.65 1.5 9.39 1.5 14.2s-.45 9.53-1.38 14.17Zm162.73-37.79c-2.17-7.82-5.5-14.69-10-20.58-4.5-5.89-10.14-10.62-16.96-14.18-6.83-3.57-14.97-5.35-24.42-5.35-7.43 0-14.26 1.47-20.45 4.41-6.2 2.95-11.32 7.68-15.35 14.19h-.45v-15.36h-31.39v162.34h33.01v-56.98h.47c4.03 5.9 9.19 10.35 15.46 13.36 6.27 3.02 13.14 4.54 20.58 4.54 8.83 0 16.53-1.72 23.13-5.12 6.58-3.41 12.09-7.99 16.5-13.73 4.43-5.74 7.71-12.32 9.88-19.76 2.18-7.45 3.26-15.2 3.26-23.26 0-8.53-1.08-16.7-3.26-24.54Zm-31.16 37.79c-.92 4.66-2.51 8.72-4.76 12.21-2.26 3.49-5.2 6.33-8.84 8.49-3.64 2.17-8.17 3.27-13.6 3.27s-9.77-1.09-13.49-3.27c-3.73-2.16-6.7-5-8.96-8.49-2.24-3.49-3.87-7.55-4.88-12.21-1.01-4.65-1.51-9.38-1.51-14.17s.47-9.78 1.4-14.42c.93-4.65 2.52-8.76 4.77-12.34 2.24-3.56 5.19-6.46 8.84-8.71 3.63-2.25 8.17-3.39 13.6-3.39s9.72 1.14 13.36 3.39c3.65 2.24 6.63 5.18 8.96 8.83 2.33 3.65 4 7.8 5 12.44 1.02 4.65 1.51 9.39 1.51 14.2s-.47 9.53-1.4 14.17Z" style="fill:#25d366"/></svg>'},wl="CC0-1.0",jl="https://web.whatsapp.com",Cl={slug:pl,title:fl,hex:xl,categories:gl,aliases:vl,svg:yl,variants:bl,license:wl,url:jl},kl="ollama",Nl="Ollama",Sl="fff",Ll=["AI","Software"],Ml=[],Al=`<svg width="646" height="854" viewBox="0 0 646 854" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
73
|
+
<path d="M140.629 0.239929C132.66 1.52725 123.097 5.69568 116.354 10.845C95.941 26.3541 80.1253 59.2728 73.4435 100.283C70.9302 115.792 69.2138 137.309 69.2138 153.738C69.2138 173.109 71.4819 197.874 74.7309 214.977C75.4665 218.778 75.8343 222.15 75.5278 222.395C75.2826 222.64 72.2788 225.092 68.9072 227.789C57.3827 236.984 44.2029 251.145 35.1304 264.08C17.7209 288.784 6.44151 316.86 1.72133 347.265C-0.117698 359.28 -0.608106 383.555 0.863118 395.57C4.11207 423.278 12.449 446.695 26.7321 468.151L31.391 475.078L30.0424 477.346C20.4794 493.407 12.3264 516.64 8.52575 538.953C5.522 556.608 5.15419 561.328 5.15419 584.99C5.15419 608.837 5.4607 613.557 8.28054 630.047C11.6521 649.786 18.5178 670.689 26.1804 684.605C28.6938 689.141 34.8239 698.581 35.5595 699.072C35.8047 699.194 35.0691 701.462 33.9044 704.098C25.077 723.408 17.537 749.093 14.4106 770.733C12.2038 785.567 11.8973 790.349 11.8973 805.981C11.8973 825.903 13.0007 835.589 17.1692 851.466L17.7822 853.795H44.019H70.3172L68.6007 850.546C57.9957 830.93 57.0149 794.517 66.1487 758.166C70.3172 741.369 75.0374 729.048 83.8647 712.067L89.1366 701.769V695.455C89.1366 689.57 89.014 688.896 87.1137 685.034C85.6424 682.091 83.6808 679.578 80.1866 676.145C74.2404 670.383 69.9494 664.314 66.5165 656.835C51.4365 624.1 48.494 575.489 59.0991 534.049C63.5128 516.762 70.8076 501.376 78.4702 492.978C83.6808 487.215 86.378 480.779 86.378 474.097C86.378 467.17 83.926 461.469 78.4089 455.523C62.5932 438.604 52.8464 418.006 49.3522 394.038C44.3868 359.893 53.3981 322.683 73.8726 293.198C93.9181 264.263 122.055 245.689 153.503 240.724C160.552 239.559 173.732 239.743 181.088 241.092C189.119 242.502 194.145 242.072 199.295 239.62C205.67 236.617 208.858 232.877 212.597 224.295C215.907 216.633 218.482 212.464 225.409 203.821C233.746 193.461 241.776 186.411 254.649 177.89C269.362 168.266 286.097 161.278 302.771 157.906C308.839 156.68 311.659 156.496 323 156.496C334.341 156.496 337.161 156.68 343.229 157.906C367.688 162.872 391.964 175.5 411.335 193.399C415.503 197.261 425.495 209.644 428.683 214.794C429.909 216.816 432.055 221.108 433.403 224.295C437.142 232.877 440.33 236.617 446.705 239.62C451.671 242.011 456.881 242.502 464.605 241.214C476.804 239.13 486.183 239.314 498.137 241.766C538.841 249.98 574.273 283.512 589.966 328.446C603.636 367.862 599.774 409.118 579.422 440.626C575.989 445.96 572.556 450.251 567.591 455.523C556.863 466.986 556.863 481.208 567.53 492.978C585.062 512.165 596.035 559.367 592.724 600.99C590.518 628.453 583.468 653.035 573.782 666.95C572.066 669.402 568.511 673.57 565.813 676.145C562.319 679.578 560.358 682.091 558.886 685.034C556.986 688.896 556.863 689.57 556.863 695.455V701.769L562.135 712.067C570.963 729.048 575.683 741.369 579.851 758.166C588.863 794.027 588.066 829.704 577.767 849.995C576.909 851.711 576.173 853.305 576.173 853.489C576.173 853.673 587.882 853.795 602.226 853.795H628.218L628.892 851.159C629.26 849.75 629.873 847.604 630.179 846.378C630.854 843.681 632.202 835.712 633.306 828.049C634.348 820.325 634.348 791.881 633.306 783.299C629.383 752.158 622.823 727.454 612.096 704.098C610.931 701.462 610.195 699.194 610.44 699.072C610.747 698.888 612.463 696.436 614.302 693.677C627.666 673.448 635.88 648.008 640.049 614.415C641.152 605.158 641.152 565.374 640.049 556.485C637.106 533.559 633.551 517.988 627.666 502.234C625.214 495.675 618.716 481.821 615.958 477.346L614.609 475.078L619.268 468.151C633.551 446.695 641.888 423.278 645.137 395.57C646.608 383.555 646.118 359.28 644.279 347.265C639.497 316.798 628.279 288.845 610.87 264.08C601.797 251.145 588.617 236.984 577.093 227.789C573.721 225.092 570.717 222.64 570.472 222.395C570.166 222.15 570.534 218.778 571.269 214.977C578.687 176.296 578.441 128.053 570.656 90.3524C563.913 57.4951 551.653 31.3808 535.837 16.3008C523.209 4.28578 510.336 -0.863507 494.888 0.11731C459.456 2.20154 430.89 42.9667 419.61 107.21C417.771 117.57 416.178 129.708 416.178 133.018C416.178 134.305 415.932 135.347 415.626 135.347C415.319 135.347 412.929 134.121 410.354 132.589C383.014 116.405 352.608 107.762 323 107.762C293.392 107.762 262.986 116.405 235.646 132.589C233.071 134.121 230.681 135.347 230.374 135.347C230.068 135.347 229.822 134.305 229.822 133.018C229.822 129.585 228.167 117.08 226.39 107.21C216.152 49.5259 192.674 11.3354 161.472 1.71112C157.181 0.423799 144.982 -0.434382 140.629 0.239929ZM151.051 50.139C159.878 57.1273 169.686 77.1114 175.326 99.4863C176.368 103.532 177.471 108.191 177.778 109.907C178.023 111.563 178.697 115.302 179.249 118.183C181.64 131.179 182.743 145.217 182.866 162.32L182.927 179.178L178.697 185.43L174.468 191.744H164.598C153.074 191.744 141.61 193.216 130.637 196.158C126.714 197.139 122.913 198.12 122.178 198.304C121.013 198.549 120.829 198.181 120.155 193.154C116.538 165.875 116.722 135.654 120.707 110.52C125.12 82.5059 135.419 57.1273 145.472 49.6486C147.863 47.8708 148.292 47.9321 151.051 50.139ZM500.589 49.7098C506.658 54.1848 513.34 66.0772 518.305 81.2798C528.297 111.685 531.117 153.431 525.845 193.154C525.171 198.181 524.987 198.549 523.822 198.304C523.087 198.12 519.286 197.139 515.363 196.158C504.39 193.216 492.926 191.744 481.402 191.744H471.532L467.303 185.43L463.073 179.178L463.134 162.32C463.257 138.535 465.464 119.961 470.735 99.3024C476.314 77.1114 486.183 57.1273 494.949 50.139C497.708 47.9321 498.137 47.8708 500.589 49.7098Z" fill="white"/>
|
|
74
|
+
<path d="M313.498 358.237C300.195 359.525 296.579 360.015 290.203 361.303C279.843 363.448 265.989 368.23 256.365 372.95C222.895 389.317 199.846 416.596 192.796 448.166C191.386 454.419 191.202 456.503 191.202 467.047C191.202 477.468 191.386 479.736 192.735 485.682C202.114 526.938 240.12 557.405 289.284 562.983C299.95 564.148 346.049 564.148 356.715 562.983C396.193 558.508 430.154 537.114 445.418 507.076C449.463 499.046 451.425 493.835 453.264 485.682C454.613 479.736 454.797 477.468 454.797 467.047C454.797 456.503 454.613 454.419 453.203 448.166C442.965 402.313 398.461 366.207 343.903 359.341C336.792 358.483 318.157 357.747 313.498 358.237ZM336.424 391.585C354.631 393.547 372.96 400.045 387.672 409.853C395.58 415.125 406.737 426.159 411.518 433.393C417.403 442.342 420.774 451.476 422.307 462.572C422.981 467.66 422.614 471.522 420.774 479.736C417.893 491.996 408.943 504.808 396.867 513.758C391.227 517.865 379.519 523.812 372.347 526.141C358.738 530.493 349.849 531.29 318.095 531.045C297.376 530.861 293.697 530.677 287.751 529.574C267.461 525.773 251.4 517.681 239.753 505.36C230.312 495.429 226.021 486.357 223.692 471.706C222.65 464.901 224.611 453.622 228.596 444.12C233.439 432.534 245.944 418.129 258.327 409.853C272.671 400.29 291.552 393.486 308.9 391.647C315.582 390.911 329.742 390.911 336.424 391.585Z" fill="white"/>
|
|
75
|
+
<path d="M299.584 436.336C294.925 438.849 291.676 445.224 292.657 449.944C293.76 455.032 298.235 460.182 305.223 464.412C308.963 466.68 309.208 466.986 309.392 469.254C309.514 470.603 309.024 474.465 308.35 477.898C307.614 481.269 307.062 484.825 307.062 485.806C307.124 488.442 309.576 492.733 312.15 494.817C314.419 496.656 314.848 496.717 321.223 496.901C327.047 497.085 328.273 496.962 330.602 495.859C336.61 492.916 338.142 487.522 335.935 477.162C334.096 468.519 334.464 467.17 339.062 464.534C343.904 461.714 349.054 456.749 350.586 453.377C353.529 446.941 350.831 439.646 344.333 436.274C342.74 435.477 340.778 435.11 337.897 435.11C333.422 435.11 330.541 436.152 325.269 439.523L322.265 441.424L320.365 440.259C312.58 435.661 311.17 435.11 306.449 435.171C303.078 435.171 301.239 435.477 299.584 436.336Z" fill="white"/>
|
|
76
|
+
<path d="M150.744 365.165C139.894 368.598 131.802 376.567 127.634 387.908C125.611 393.303 124.63 401.824 125.488 406.421C127.511 417.394 136.522 427.386 146.76 430.145C159.633 433.516 169.257 431.309 177.778 422.85C182.743 418.007 185.441 413.777 188.138 406.911C190.099 402.069 190.222 401.211 190.222 394.345L190.283 386.989L187.709 381.717C183.601 373.38 176.184 367.188 167.602 364.92C162.759 363.694 154.974 363.756 150.744 365.165Z" fill="white"/>
|
|
77
|
+
<path d="M478.153 364.982C469.755 367.25 462.276 373.502 458.291 381.717L455.717 386.989L455.778 394.345C455.778 401.211 455.901 402.069 457.862 406.911C460.56 413.777 463.257 418.007 468.222 422.85C476.743 431.309 486.367 433.516 499.241 430.145C506.658 428.183 514.075 421.93 517.631 414.635C520.696 408.444 521.431 403.969 520.451 396.919C518.183 380.797 508.742 369.089 494.704 364.982C490.597 363.756 482.628 363.756 478.153 364.982Z" fill="white"/>
|
|
78
|
+
</svg>`,El={default:`<svg width="646" height="854" viewBox="0 0 646 854" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
79
|
+
<path d="M140.629 0.239929C132.66 1.52725 123.097 5.69568 116.354 10.845C95.941 26.3541 80.1253 59.2728 73.4435 100.283C70.9302 115.792 69.2138 137.309 69.2138 153.738C69.2138 173.109 71.4819 197.874 74.7309 214.977C75.4665 218.778 75.8343 222.15 75.5278 222.395C75.2826 222.64 72.2788 225.092 68.9072 227.789C57.3827 236.984 44.2029 251.145 35.1304 264.08C17.7209 288.784 6.44151 316.86 1.72133 347.265C-0.117698 359.28 -0.608106 383.555 0.863118 395.57C4.11207 423.278 12.449 446.695 26.7321 468.151L31.391 475.078L30.0424 477.346C20.4794 493.407 12.3264 516.64 8.52575 538.953C5.522 556.608 5.15419 561.328 5.15419 584.99C5.15419 608.837 5.4607 613.557 8.28054 630.047C11.6521 649.786 18.5178 670.689 26.1804 684.605C28.6938 689.141 34.8239 698.581 35.5595 699.072C35.8047 699.194 35.0691 701.462 33.9044 704.098C25.077 723.408 17.537 749.093 14.4106 770.733C12.2038 785.567 11.8973 790.349 11.8973 805.981C11.8973 825.903 13.0007 835.589 17.1692 851.466L17.7822 853.795H44.019H70.3172L68.6007 850.546C57.9957 830.93 57.0149 794.517 66.1487 758.166C70.3172 741.369 75.0374 729.048 83.8647 712.067L89.1366 701.769V695.455C89.1366 689.57 89.014 688.896 87.1137 685.034C85.6424 682.091 83.6808 679.578 80.1866 676.145C74.2404 670.383 69.9494 664.314 66.5165 656.835C51.4365 624.1 48.494 575.489 59.0991 534.049C63.5128 516.762 70.8076 501.376 78.4702 492.978C83.6808 487.215 86.378 480.779 86.378 474.097C86.378 467.17 83.926 461.469 78.4089 455.523C62.5932 438.604 52.8464 418.006 49.3522 394.038C44.3868 359.893 53.3981 322.683 73.8726 293.198C93.9181 264.263 122.055 245.689 153.503 240.724C160.552 239.559 173.732 239.743 181.088 241.092C189.119 242.502 194.145 242.072 199.295 239.62C205.67 236.617 208.858 232.877 212.597 224.295C215.907 216.633 218.482 212.464 225.409 203.821C233.746 193.461 241.776 186.411 254.649 177.89C269.362 168.266 286.097 161.278 302.771 157.906C308.839 156.68 311.659 156.496 323 156.496C334.341 156.496 337.161 156.68 343.229 157.906C367.688 162.872 391.964 175.5 411.335 193.399C415.503 197.261 425.495 209.644 428.683 214.794C429.909 216.816 432.055 221.108 433.403 224.295C437.142 232.877 440.33 236.617 446.705 239.62C451.671 242.011 456.881 242.502 464.605 241.214C476.804 239.13 486.183 239.314 498.137 241.766C538.841 249.98 574.273 283.512 589.966 328.446C603.636 367.862 599.774 409.118 579.422 440.626C575.989 445.96 572.556 450.251 567.591 455.523C556.863 466.986 556.863 481.208 567.53 492.978C585.062 512.165 596.035 559.367 592.724 600.99C590.518 628.453 583.468 653.035 573.782 666.95C572.066 669.402 568.511 673.57 565.813 676.145C562.319 679.578 560.358 682.091 558.886 685.034C556.986 688.896 556.863 689.57 556.863 695.455V701.769L562.135 712.067C570.963 729.048 575.683 741.369 579.851 758.166C588.863 794.027 588.066 829.704 577.767 849.995C576.909 851.711 576.173 853.305 576.173 853.489C576.173 853.673 587.882 853.795 602.226 853.795H628.218L628.892 851.159C629.26 849.75 629.873 847.604 630.179 846.378C630.854 843.681 632.202 835.712 633.306 828.049C634.348 820.325 634.348 791.881 633.306 783.299C629.383 752.158 622.823 727.454 612.096 704.098C610.931 701.462 610.195 699.194 610.44 699.072C610.747 698.888 612.463 696.436 614.302 693.677C627.666 673.448 635.88 648.008 640.049 614.415C641.152 605.158 641.152 565.374 640.049 556.485C637.106 533.559 633.551 517.988 627.666 502.234C625.214 495.675 618.716 481.821 615.958 477.346L614.609 475.078L619.268 468.151C633.551 446.695 641.888 423.278 645.137 395.57C646.608 383.555 646.118 359.28 644.279 347.265C639.497 316.798 628.279 288.845 610.87 264.08C601.797 251.145 588.617 236.984 577.093 227.789C573.721 225.092 570.717 222.64 570.472 222.395C570.166 222.15 570.534 218.778 571.269 214.977C578.687 176.296 578.441 128.053 570.656 90.3524C563.913 57.4951 551.653 31.3808 535.837 16.3008C523.209 4.28578 510.336 -0.863507 494.888 0.11731C459.456 2.20154 430.89 42.9667 419.61 107.21C417.771 117.57 416.178 129.708 416.178 133.018C416.178 134.305 415.932 135.347 415.626 135.347C415.319 135.347 412.929 134.121 410.354 132.589C383.014 116.405 352.608 107.762 323 107.762C293.392 107.762 262.986 116.405 235.646 132.589C233.071 134.121 230.681 135.347 230.374 135.347C230.068 135.347 229.822 134.305 229.822 133.018C229.822 129.585 228.167 117.08 226.39 107.21C216.152 49.5259 192.674 11.3354 161.472 1.71112C157.181 0.423799 144.982 -0.434382 140.629 0.239929ZM151.051 50.139C159.878 57.1273 169.686 77.1114 175.326 99.4863C176.368 103.532 177.471 108.191 177.778 109.907C178.023 111.563 178.697 115.302 179.249 118.183C181.64 131.179 182.743 145.217 182.866 162.32L182.927 179.178L178.697 185.43L174.468 191.744H164.598C153.074 191.744 141.61 193.216 130.637 196.158C126.714 197.139 122.913 198.12 122.178 198.304C121.013 198.549 120.829 198.181 120.155 193.154C116.538 165.875 116.722 135.654 120.707 110.52C125.12 82.5059 135.419 57.1273 145.472 49.6486C147.863 47.8708 148.292 47.9321 151.051 50.139ZM500.589 49.7098C506.658 54.1848 513.34 66.0772 518.305 81.2798C528.297 111.685 531.117 153.431 525.845 193.154C525.171 198.181 524.987 198.549 523.822 198.304C523.087 198.12 519.286 197.139 515.363 196.158C504.39 193.216 492.926 191.744 481.402 191.744H471.532L467.303 185.43L463.073 179.178L463.134 162.32C463.257 138.535 465.464 119.961 470.735 99.3024C476.314 77.1114 486.183 57.1273 494.949 50.139C497.708 47.9321 498.137 47.8708 500.589 49.7098Z" fill="white"/>
|
|
80
|
+
<path d="M313.498 358.237C300.195 359.525 296.579 360.015 290.203 361.303C279.843 363.448 265.989 368.23 256.365 372.95C222.895 389.317 199.846 416.596 192.796 448.166C191.386 454.419 191.202 456.503 191.202 467.047C191.202 477.468 191.386 479.736 192.735 485.682C202.114 526.938 240.12 557.405 289.284 562.983C299.95 564.148 346.049 564.148 356.715 562.983C396.193 558.508 430.154 537.114 445.418 507.076C449.463 499.046 451.425 493.835 453.264 485.682C454.613 479.736 454.797 477.468 454.797 467.047C454.797 456.503 454.613 454.419 453.203 448.166C442.965 402.313 398.461 366.207 343.903 359.341C336.792 358.483 318.157 357.747 313.498 358.237ZM336.424 391.585C354.631 393.547 372.96 400.045 387.672 409.853C395.58 415.125 406.737 426.159 411.518 433.393C417.403 442.342 420.774 451.476 422.307 462.572C422.981 467.66 422.614 471.522 420.774 479.736C417.893 491.996 408.943 504.808 396.867 513.758C391.227 517.865 379.519 523.812 372.347 526.141C358.738 530.493 349.849 531.29 318.095 531.045C297.376 530.861 293.697 530.677 287.751 529.574C267.461 525.773 251.4 517.681 239.753 505.36C230.312 495.429 226.021 486.357 223.692 471.706C222.65 464.901 224.611 453.622 228.596 444.12C233.439 432.534 245.944 418.129 258.327 409.853C272.671 400.29 291.552 393.486 308.9 391.647C315.582 390.911 329.742 390.911 336.424 391.585Z" fill="white"/>
|
|
81
|
+
<path d="M299.584 436.336C294.925 438.849 291.676 445.224 292.657 449.944C293.76 455.032 298.235 460.182 305.223 464.412C308.963 466.68 309.208 466.986 309.392 469.254C309.514 470.603 309.024 474.465 308.35 477.898C307.614 481.269 307.062 484.825 307.062 485.806C307.124 488.442 309.576 492.733 312.15 494.817C314.419 496.656 314.848 496.717 321.223 496.901C327.047 497.085 328.273 496.962 330.602 495.859C336.61 492.916 338.142 487.522 335.935 477.162C334.096 468.519 334.464 467.17 339.062 464.534C343.904 461.714 349.054 456.749 350.586 453.377C353.529 446.941 350.831 439.646 344.333 436.274C342.74 435.477 340.778 435.11 337.897 435.11C333.422 435.11 330.541 436.152 325.269 439.523L322.265 441.424L320.365 440.259C312.58 435.661 311.17 435.11 306.449 435.171C303.078 435.171 301.239 435.477 299.584 436.336Z" fill="white"/>
|
|
82
|
+
<path d="M150.744 365.165C139.894 368.598 131.802 376.567 127.634 387.908C125.611 393.303 124.63 401.824 125.488 406.421C127.511 417.394 136.522 427.386 146.76 430.145C159.633 433.516 169.257 431.309 177.778 422.85C182.743 418.007 185.441 413.777 188.138 406.911C190.099 402.069 190.222 401.211 190.222 394.345L190.283 386.989L187.709 381.717C183.601 373.38 176.184 367.188 167.602 364.92C162.759 363.694 154.974 363.756 150.744 365.165Z" fill="white"/>
|
|
83
|
+
<path d="M478.153 364.982C469.755 367.25 462.276 373.502 458.291 381.717L455.717 386.989L455.778 394.345C455.778 401.211 455.901 402.069 457.862 406.911C460.56 413.777 463.257 418.007 468.222 422.85C476.743 431.309 486.367 433.516 499.241 430.145C506.658 428.183 514.075 421.93 517.631 414.635C520.696 408.444 521.431 403.969 520.451 396.919C518.183 380.797 508.742 369.089 494.704 364.982C490.597 363.756 482.628 363.756 478.153 364.982Z" fill="white"/>
|
|
84
|
+
</svg>`,mono:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Ollama</title><path d="M16.361 10.26a.894.894 0 0 0-.558.47l-.072.148.001.207c0 .193.004.217.059.353.076.193.152.312.291.448.24.238.51.3.872.205a.86.86 0 0 0 .517-.436.752.752 0 0 0 .08-.498c-.064-.453-.33-.782-.724-.897a1.06 1.06 0 0 0-.466 0zm-9.203.005c-.305.096-.533.32-.65.639a1.187 1.187 0 0 0-.06.52c.057.309.31.59.598.667.362.095.632.033.872-.205.14-.136.215-.255.291-.448.055-.136.059-.16.059-.353l.001-.207-.072-.148a.894.894 0 0 0-.565-.472 1.02 1.02 0 0 0-.474.007Zm4.184 2c-.131.071-.223.25-.195.383.031.143.157.288.353.407.105.063.112.072.117.136.004.038-.01.146-.029.243-.02.094-.036.194-.036.222.002.074.07.195.143.253.064.052.076.054.255.059.164.005.198.001.264-.03.169-.082.212-.234.15-.525-.052-.243-.042-.28.087-.355.137-.08.281-.219.324-.314a.365.365 0 0 0-.175-.48.394.394 0 0 0-.181-.033c-.126 0-.207.03-.355.124l-.085.053-.053-.032c-.219-.13-.259-.145-.391-.143a.396.396 0 0 0-.193.032zm.39-2.195c-.373.036-.475.05-.654.086-.291.06-.68.195-.951.328-.94.46-1.589 1.226-1.787 2.114-.04.176-.045.234-.045.53 0 .294.005.357.043.524.264 1.16 1.332 2.017 2.714 2.173.3.033 1.596.033 1.896 0 1.11-.125 2.064-.727 2.493-1.571.114-.226.169-.372.22-.602.039-.167.044-.23.044-.523 0-.297-.005-.355-.045-.531-.288-1.29-1.539-2.304-3.072-2.497a6.873 6.873 0 0 0-.855-.031zm.645.937a3.283 3.283 0 0 1 1.44.514c.223.148.537.458.671.662.166.251.26.508.303.82.02.143.01.251-.043.482-.08.345-.332.705-.672.957a3.115 3.115 0 0 1-.689.348c-.382.122-.632.144-1.525.138-.582-.006-.686-.01-.853-.042-.57-.107-1.022-.334-1.35-.68-.264-.28-.385-.535-.45-.946-.03-.192.025-.509.137-.776.136-.326.488-.73.836-.963.403-.269.934-.46 1.422-.512.187-.02.586-.02.773-.002zm-5.503-11a1.653 1.653 0 0 0-.683.298C5.617.74 5.173 1.666 4.985 2.819c-.07.436-.119 1.04-.119 1.503 0 .544.064 1.24.155 1.721.02.107.031.202.023.208a8.12 8.12 0 0 1-.187.152 5.324 5.324 0 0 0-.949 1.02 5.49 5.49 0 0 0-.94 2.339 6.625 6.625 0 0 0-.023 1.357c.091.78.325 1.438.727 2.04l.13.195-.037.064c-.269.452-.498 1.105-.605 1.732-.084.496-.095.629-.095 1.294 0 .67.009.803.088 1.266.095.555.288 1.143.503 1.534.071.128.243.393.264.407.007.003-.014.067-.046.141a7.405 7.405 0 0 0-.548 1.873c-.062.417-.071.552-.071.991 0 .56.031.832.148 1.279L3.42 24h1.478l-.05-.091c-.297-.552-.325-1.575-.068-2.597.117-.472.25-.819.498-1.296l.148-.29v-.177c0-.165-.003-.184-.057-.293a.915.915 0 0 0-.194-.25 1.74 1.74 0 0 1-.385-.543c-.424-.92-.506-2.286-.208-3.451.124-.486.329-.918.544-1.154a.787.787 0 0 0 .223-.531c0-.195-.07-.355-.224-.522a3.136 3.136 0 0 1-.817-1.729c-.14-.96.114-2.005.69-2.834.563-.814 1.353-1.336 2.237-1.475.199-.033.57-.028.776.01.226.04.367.028.512-.041.179-.085.268-.19.374-.431.093-.215.165-.333.36-.576.234-.29.46-.489.822-.729.413-.27.884-.467 1.352-.561.17-.035.25-.04.569-.04.319 0 .398.005.569.04a4.07 4.07 0 0 1 1.914.997c.117.109.398.457.488.602.034.057.095.177.132.267.105.241.195.346.374.43.14.068.286.082.503.045.343-.058.607-.053.943.016 1.144.23 2.14 1.173 2.581 2.437.385 1.108.276 2.267-.296 3.153-.097.15-.193.27-.333.419-.301.322-.301.722-.001 1.053.493.539.801 1.866.708 3.036-.062.772-.26 1.463-.533 1.854a2.096 2.096 0 0 1-.224.258.916.916 0 0 0-.194.25c-.054.109-.057.128-.057.293v.178l.148.29c.248.476.38.823.498 1.295.253 1.008.231 2.01-.059 2.581a.845.845 0 0 0-.044.098c0 .006.329.009.732.009h.73l.02-.074.036-.134c.019-.076.057-.3.088-.516.029-.217.029-1.016 0-1.258-.11-.875-.295-1.57-.597-2.226-.032-.074-.053-.138-.046-.141.008-.005.057-.074.108-.152.376-.569.607-1.284.724-2.228.031-.26.031-1.378 0-1.628-.083-.645-.182-1.082-.348-1.525a6.083 6.083 0 0 0-.329-.7l-.038-.064.131-.194c.402-.604.636-1.262.727-2.04a6.625 6.625 0 0 0-.024-1.358 5.512 5.512 0 0 0-.939-2.339 5.325 5.325 0 0 0-.95-1.02 8.097 8.097 0 0 1-.186-.152.692.692 0 0 1 .023-.208c.208-1.087.201-2.443-.017-3.503-.19-.924-.535-1.658-.98-2.082-.354-.338-.716-.482-1.15-.455-.996.059-1.8 1.205-2.116 3.01a6.805 6.805 0 0 0-.097.726c0 .036-.007.066-.015.066a.96.96 0 0 1-.149-.078A4.857 4.857 0 0 0 12 3.03c-.832 0-1.687.243-2.456.698a.958.958 0 0 1-.148.078c-.008 0-.015-.03-.015-.066a6.71 6.71 0 0 0-.097-.725C8.997 1.392 8.337.319 7.46.048a2.096 2.096 0 0 0-.585-.041Zm.293 1.402c.248.197.523.759.682 1.388.03.113.06.244.069.292.007.047.026.152.041.233.067.365.098.76.102 1.24l.002.475-.12.175-.118.178h-.278c-.324 0-.646.041-.954.124l-.238.06c-.033.007-.038-.003-.057-.144a8.438 8.438 0 0 1 .016-2.323c.124-.788.413-1.501.696-1.711.067-.05.079-.049.157.013zm9.825-.012c.17.126.358.46.498.888.28.854.36 2.028.212 3.145-.019.14-.024.151-.057.144l-.238-.06a3.693 3.693 0 0 0-.954-.124h-.278l-.119-.178-.119-.175.002-.474c.004-.669.066-1.19.214-1.772.157-.623.434-1.185.68-1.382.078-.062.09-.063.159-.012z"/></svg>',light:`<svg width="646" height="854" viewBox="0 0 646 854" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
85
|
+
<path d="M140.629 0.239929C132.66 1.52725 123.097 5.69568 116.354 10.845C95.941 26.3541 80.1253 59.2728 73.4435 100.283C70.9302 115.792 69.2138 137.309 69.2138 153.738C69.2138 173.109 71.4819 197.874 74.7309 214.977C75.4665 218.778 75.8343 222.15 75.5278 222.395C75.2826 222.64 72.2788 225.092 68.9072 227.789C57.3827 236.984 44.2029 251.145 35.1304 264.08C17.7209 288.784 6.44151 316.86 1.72133 347.265C-0.117698 359.28 -0.608106 383.555 0.863118 395.57C4.11207 423.278 12.449 446.695 26.7321 468.151L31.391 475.078L30.0424 477.346C20.4794 493.407 12.3264 516.64 8.52575 538.953C5.522 556.608 5.15419 561.328 5.15419 584.99C5.15419 608.837 5.4607 613.557 8.28054 630.047C11.6521 649.786 18.5178 670.689 26.1804 684.605C28.6938 689.141 34.8239 698.581 35.5595 699.072C35.8047 699.194 35.0691 701.462 33.9044 704.098C25.077 723.408 17.537 749.093 14.4106 770.733C12.2038 785.567 11.8973 790.349 11.8973 805.981C11.8973 825.903 13.0007 835.589 17.1692 851.466L17.7822 853.795H44.019H70.3172L68.6007 850.546C57.9957 830.93 57.0149 794.517 66.1487 758.166C70.3172 741.369 75.0374 729.048 83.8647 712.067L89.1366 701.769V695.455C89.1366 689.57 89.014 688.896 87.1137 685.034C85.6424 682.091 83.6808 679.578 80.1866 676.145C74.2404 670.383 69.9494 664.314 66.5165 656.835C51.4365 624.1 48.494 575.489 59.0991 534.049C63.5128 516.762 70.8076 501.376 78.4702 492.978C83.6808 487.215 86.378 480.779 86.378 474.097C86.378 467.17 83.926 461.469 78.4089 455.523C62.5932 438.604 52.8464 418.006 49.3522 394.038C44.3868 359.893 53.3981 322.683 73.8726 293.198C93.9181 264.263 122.055 245.689 153.503 240.724C160.552 239.559 173.732 239.743 181.088 241.092C189.119 242.502 194.145 242.072 199.295 239.62C205.67 236.617 208.858 232.877 212.597 224.295C215.907 216.633 218.482 212.464 225.409 203.821C233.746 193.461 241.776 186.411 254.649 177.89C269.362 168.266 286.097 161.278 302.771 157.906C308.839 156.68 311.659 156.496 323 156.496C334.341 156.496 337.161 156.68 343.229 157.906C367.688 162.872 391.964 175.5 411.335 193.399C415.503 197.261 425.495 209.644 428.683 214.794C429.909 216.816 432.055 221.108 433.403 224.295C437.142 232.877 440.33 236.617 446.705 239.62C451.671 242.011 456.881 242.502 464.605 241.214C476.804 239.13 486.183 239.314 498.137 241.766C538.841 249.98 574.273 283.512 589.966 328.446C603.636 367.862 599.774 409.118 579.422 440.626C575.989 445.96 572.556 450.251 567.591 455.523C556.863 466.986 556.863 481.208 567.53 492.978C585.062 512.165 596.035 559.367 592.724 600.99C590.518 628.453 583.468 653.035 573.782 666.95C572.066 669.402 568.511 673.57 565.813 676.145C562.319 679.578 560.358 682.091 558.886 685.034C556.986 688.896 556.863 689.57 556.863 695.455V701.769L562.135 712.067C570.963 729.048 575.683 741.369 579.851 758.166C588.863 794.027 588.066 829.704 577.767 849.995C576.909 851.711 576.173 853.305 576.173 853.489C576.173 853.673 587.882 853.795 602.226 853.795H628.218L628.892 851.159C629.26 849.75 629.873 847.604 630.179 846.378C630.854 843.681 632.202 835.712 633.306 828.049C634.348 820.325 634.348 791.881 633.306 783.299C629.383 752.158 622.823 727.454 612.096 704.098C610.931 701.462 610.195 699.194 610.44 699.072C610.747 698.888 612.463 696.436 614.302 693.677C627.666 673.448 635.88 648.008 640.049 614.415C641.152 605.158 641.152 565.374 640.049 556.485C637.106 533.559 633.551 517.988 627.666 502.234C625.214 495.675 618.716 481.821 615.958 477.346L614.609 475.078L619.268 468.151C633.551 446.695 641.888 423.278 645.137 395.57C646.608 383.555 646.118 359.28 644.279 347.265C639.497 316.798 628.279 288.845 610.87 264.08C601.797 251.145 588.617 236.984 577.093 227.789C573.721 225.092 570.717 222.64 570.472 222.395C570.166 222.15 570.534 218.778 571.269 214.977C578.687 176.296 578.441 128.053 570.656 90.3524C563.913 57.4951 551.653 31.3808 535.837 16.3008C523.209 4.28578 510.336 -0.863507 494.888 0.11731C459.456 2.20154 430.89 42.9667 419.61 107.21C417.771 117.57 416.178 129.708 416.178 133.018C416.178 134.305 415.932 135.347 415.626 135.347C415.319 135.347 412.929 134.121 410.354 132.589C383.014 116.405 352.608 107.762 323 107.762C293.392 107.762 262.986 116.405 235.646 132.589C233.071 134.121 230.681 135.347 230.374 135.347C230.068 135.347 229.822 134.305 229.822 133.018C229.822 129.585 228.167 117.08 226.39 107.21C216.152 49.5259 192.674 11.3354 161.472 1.71112C157.181 0.423799 144.982 -0.434382 140.629 0.239929ZM151.051 50.139C159.878 57.1273 169.686 77.1114 175.326 99.4863C176.368 103.532 177.471 108.191 177.778 109.907C178.023 111.563 178.697 115.302 179.249 118.183C181.64 131.179 182.743 145.217 182.866 162.32L182.927 179.178L178.697 185.43L174.468 191.744H164.598C153.074 191.744 141.61 193.216 130.637 196.158C126.714 197.139 122.913 198.12 122.178 198.304C121.013 198.549 120.829 198.181 120.155 193.154C116.538 165.875 116.722 135.654 120.707 110.52C125.12 82.5059 135.419 57.1273 145.472 49.6486C147.863 47.8708 148.292 47.9321 151.051 50.139ZM500.589 49.7098C506.658 54.1848 513.34 66.0772 518.305 81.2798C528.297 111.685 531.117 153.431 525.845 193.154C525.171 198.181 524.987 198.549 523.822 198.304C523.087 198.12 519.286 197.139 515.363 196.158C504.39 193.216 492.926 191.744 481.402 191.744H471.532L467.303 185.43L463.073 179.178L463.134 162.32C463.257 138.535 465.464 119.961 470.735 99.3024C476.314 77.1114 486.183 57.1273 494.949 50.139C497.708 47.9321 498.137 47.8708 500.589 49.7098Z" fill="black"/>
|
|
86
|
+
<path d="M313.498 358.237C300.195 359.525 296.579 360.015 290.203 361.303C279.843 363.448 265.989 368.23 256.365 372.95C222.895 389.317 199.846 416.596 192.796 448.166C191.386 454.419 191.202 456.503 191.202 467.047C191.202 477.468 191.386 479.736 192.735 485.682C202.114 526.938 240.12 557.405 289.284 562.983C299.95 564.148 346.049 564.148 356.715 562.983C396.193 558.508 430.154 537.114 445.418 507.076C449.463 499.046 451.425 493.835 453.264 485.682C454.613 479.736 454.797 477.468 454.797 467.047C454.797 456.503 454.613 454.419 453.203 448.166C442.965 402.313 398.461 366.207 343.903 359.341C336.792 358.483 318.157 357.747 313.498 358.237ZM336.424 391.585C354.631 393.547 372.96 400.045 387.672 409.853C395.58 415.125 406.737 426.159 411.518 433.393C417.403 442.342 420.774 451.476 422.307 462.572C422.981 467.66 422.614 471.522 420.774 479.736C417.893 491.996 408.943 504.808 396.867 513.758C391.227 517.865 379.519 523.812 372.347 526.141C358.738 530.493 349.849 531.29 318.095 531.045C297.376 530.861 293.697 530.677 287.751 529.574C267.461 525.773 251.4 517.681 239.753 505.36C230.312 495.429 226.021 486.357 223.692 471.706C222.65 464.901 224.611 453.622 228.596 444.12C233.439 432.534 245.944 418.129 258.327 409.853C272.671 400.29 291.552 393.486 308.9 391.647C315.582 390.911 329.742 390.911 336.424 391.585Z" fill="black"/>
|
|
87
|
+
<path d="M299.584 436.336C294.925 438.849 291.676 445.224 292.657 449.944C293.76 455.032 298.235 460.182 305.223 464.412C308.963 466.68 309.208 466.986 309.392 469.254C309.514 470.603 309.024 474.465 308.35 477.898C307.614 481.269 307.062 484.825 307.062 485.806C307.124 488.442 309.576 492.733 312.15 494.817C314.419 496.656 314.848 496.717 321.223 496.901C327.047 497.085 328.273 496.962 330.602 495.859C336.61 492.916 338.142 487.522 335.935 477.162C334.096 468.519 334.464 467.17 339.062 464.534C343.904 461.714 349.054 456.749 350.586 453.377C353.529 446.941 350.831 439.646 344.333 436.274C342.74 435.477 340.778 435.11 337.897 435.11C333.422 435.11 330.541 436.152 325.269 439.523L322.265 441.424L320.365 440.259C312.58 435.661 311.17 435.11 306.449 435.171C303.078 435.171 301.239 435.477 299.584 436.336Z" fill="black"/>
|
|
88
|
+
<path d="M150.744 365.165C139.894 368.598 131.802 376.567 127.634 387.908C125.611 393.303 124.63 401.824 125.488 406.421C127.511 417.394 136.522 427.386 146.76 430.145C159.633 433.516 169.257 431.309 177.778 422.85C182.743 418.007 185.441 413.777 188.138 406.911C190.099 402.069 190.222 401.211 190.222 394.345L190.283 386.989L187.709 381.717C183.601 373.38 176.184 367.188 167.602 364.92C162.759 363.694 154.974 363.756 150.744 365.165Z" fill="black"/>
|
|
89
|
+
<path d="M478.153 364.982C469.755 367.25 462.276 373.502 458.291 381.717L455.717 386.989L455.778 394.345C455.778 401.211 455.901 402.069 457.862 406.911C460.56 413.777 463.257 418.007 468.222 422.85C476.743 431.309 486.367 433.516 499.241 430.145C506.658 428.183 514.075 421.93 517.631 414.635C520.696 408.444 521.431 403.969 520.451 396.919C518.183 380.797 508.742 369.089 494.704 364.982C490.597 363.756 482.628 363.756 478.153 364.982Z" fill="black"/>
|
|
90
|
+
</svg>`,dark:`<svg width="646" height="854" viewBox="0 0 646 854" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
91
|
+
<path d="M140.629 0.239929C132.66 1.52725 123.097 5.69568 116.354 10.845C95.941 26.3541 80.1253 59.2728 73.4435 100.283C70.9302 115.792 69.2138 137.309 69.2138 153.738C69.2138 173.109 71.4819 197.874 74.7309 214.977C75.4665 218.778 75.8343 222.15 75.5278 222.395C75.2826 222.64 72.2788 225.092 68.9072 227.789C57.3827 236.984 44.2029 251.145 35.1304 264.08C17.7209 288.784 6.44151 316.86 1.72133 347.265C-0.117698 359.28 -0.608106 383.555 0.863118 395.57C4.11207 423.278 12.449 446.695 26.7321 468.151L31.391 475.078L30.0424 477.346C20.4794 493.407 12.3264 516.64 8.52575 538.953C5.522 556.608 5.15419 561.328 5.15419 584.99C5.15419 608.837 5.4607 613.557 8.28054 630.047C11.6521 649.786 18.5178 670.689 26.1804 684.605C28.6938 689.141 34.8239 698.581 35.5595 699.072C35.8047 699.194 35.0691 701.462 33.9044 704.098C25.077 723.408 17.537 749.093 14.4106 770.733C12.2038 785.567 11.8973 790.349 11.8973 805.981C11.8973 825.903 13.0007 835.589 17.1692 851.466L17.7822 853.795H44.019H70.3172L68.6007 850.546C57.9957 830.93 57.0149 794.517 66.1487 758.166C70.3172 741.369 75.0374 729.048 83.8647 712.067L89.1366 701.769V695.455C89.1366 689.57 89.014 688.896 87.1137 685.034C85.6424 682.091 83.6808 679.578 80.1866 676.145C74.2404 670.383 69.9494 664.314 66.5165 656.835C51.4365 624.1 48.494 575.489 59.0991 534.049C63.5128 516.762 70.8076 501.376 78.4702 492.978C83.6808 487.215 86.378 480.779 86.378 474.097C86.378 467.17 83.926 461.469 78.4089 455.523C62.5932 438.604 52.8464 418.006 49.3522 394.038C44.3868 359.893 53.3981 322.683 73.8726 293.198C93.9181 264.263 122.055 245.689 153.503 240.724C160.552 239.559 173.732 239.743 181.088 241.092C189.119 242.502 194.145 242.072 199.295 239.62C205.67 236.617 208.858 232.877 212.597 224.295C215.907 216.633 218.482 212.464 225.409 203.821C233.746 193.461 241.776 186.411 254.649 177.89C269.362 168.266 286.097 161.278 302.771 157.906C308.839 156.68 311.659 156.496 323 156.496C334.341 156.496 337.161 156.68 343.229 157.906C367.688 162.872 391.964 175.5 411.335 193.399C415.503 197.261 425.495 209.644 428.683 214.794C429.909 216.816 432.055 221.108 433.403 224.295C437.142 232.877 440.33 236.617 446.705 239.62C451.671 242.011 456.881 242.502 464.605 241.214C476.804 239.13 486.183 239.314 498.137 241.766C538.841 249.98 574.273 283.512 589.966 328.446C603.636 367.862 599.774 409.118 579.422 440.626C575.989 445.96 572.556 450.251 567.591 455.523C556.863 466.986 556.863 481.208 567.53 492.978C585.062 512.165 596.035 559.367 592.724 600.99C590.518 628.453 583.468 653.035 573.782 666.95C572.066 669.402 568.511 673.57 565.813 676.145C562.319 679.578 560.358 682.091 558.886 685.034C556.986 688.896 556.863 689.57 556.863 695.455V701.769L562.135 712.067C570.963 729.048 575.683 741.369 579.851 758.166C588.863 794.027 588.066 829.704 577.767 849.995C576.909 851.711 576.173 853.305 576.173 853.489C576.173 853.673 587.882 853.795 602.226 853.795H628.218L628.892 851.159C629.26 849.75 629.873 847.604 630.179 846.378C630.854 843.681 632.202 835.712 633.306 828.049C634.348 820.325 634.348 791.881 633.306 783.299C629.383 752.158 622.823 727.454 612.096 704.098C610.931 701.462 610.195 699.194 610.44 699.072C610.747 698.888 612.463 696.436 614.302 693.677C627.666 673.448 635.88 648.008 640.049 614.415C641.152 605.158 641.152 565.374 640.049 556.485C637.106 533.559 633.551 517.988 627.666 502.234C625.214 495.675 618.716 481.821 615.958 477.346L614.609 475.078L619.268 468.151C633.551 446.695 641.888 423.278 645.137 395.57C646.608 383.555 646.118 359.28 644.279 347.265C639.497 316.798 628.279 288.845 610.87 264.08C601.797 251.145 588.617 236.984 577.093 227.789C573.721 225.092 570.717 222.64 570.472 222.395C570.166 222.15 570.534 218.778 571.269 214.977C578.687 176.296 578.441 128.053 570.656 90.3524C563.913 57.4951 551.653 31.3808 535.837 16.3008C523.209 4.28578 510.336 -0.863507 494.888 0.11731C459.456 2.20154 430.89 42.9667 419.61 107.21C417.771 117.57 416.178 129.708 416.178 133.018C416.178 134.305 415.932 135.347 415.626 135.347C415.319 135.347 412.929 134.121 410.354 132.589C383.014 116.405 352.608 107.762 323 107.762C293.392 107.762 262.986 116.405 235.646 132.589C233.071 134.121 230.681 135.347 230.374 135.347C230.068 135.347 229.822 134.305 229.822 133.018C229.822 129.585 228.167 117.08 226.39 107.21C216.152 49.5259 192.674 11.3354 161.472 1.71112C157.181 0.423799 144.982 -0.434382 140.629 0.239929ZM151.051 50.139C159.878 57.1273 169.686 77.1114 175.326 99.4863C176.368 103.532 177.471 108.191 177.778 109.907C178.023 111.563 178.697 115.302 179.249 118.183C181.64 131.179 182.743 145.217 182.866 162.32L182.927 179.178L178.697 185.43L174.468 191.744H164.598C153.074 191.744 141.61 193.216 130.637 196.158C126.714 197.139 122.913 198.12 122.178 198.304C121.013 198.549 120.829 198.181 120.155 193.154C116.538 165.875 116.722 135.654 120.707 110.52C125.12 82.5059 135.419 57.1273 145.472 49.6486C147.863 47.8708 148.292 47.9321 151.051 50.139ZM500.589 49.7098C506.658 54.1848 513.34 66.0772 518.305 81.2798C528.297 111.685 531.117 153.431 525.845 193.154C525.171 198.181 524.987 198.549 523.822 198.304C523.087 198.12 519.286 197.139 515.363 196.158C504.39 193.216 492.926 191.744 481.402 191.744H471.532L467.303 185.43L463.073 179.178L463.134 162.32C463.257 138.535 465.464 119.961 470.735 99.3024C476.314 77.1114 486.183 57.1273 494.949 50.139C497.708 47.9321 498.137 47.8708 500.589 49.7098Z" fill="white"/>
|
|
92
|
+
<path d="M313.498 358.237C300.195 359.525 296.579 360.015 290.203 361.303C279.843 363.448 265.989 368.23 256.365 372.95C222.895 389.317 199.846 416.596 192.796 448.166C191.386 454.419 191.202 456.503 191.202 467.047C191.202 477.468 191.386 479.736 192.735 485.682C202.114 526.938 240.12 557.405 289.284 562.983C299.95 564.148 346.049 564.148 356.715 562.983C396.193 558.508 430.154 537.114 445.418 507.076C449.463 499.046 451.425 493.835 453.264 485.682C454.613 479.736 454.797 477.468 454.797 467.047C454.797 456.503 454.613 454.419 453.203 448.166C442.965 402.313 398.461 366.207 343.903 359.341C336.792 358.483 318.157 357.747 313.498 358.237ZM336.424 391.585C354.631 393.547 372.96 400.045 387.672 409.853C395.58 415.125 406.737 426.159 411.518 433.393C417.403 442.342 420.774 451.476 422.307 462.572C422.981 467.66 422.614 471.522 420.774 479.736C417.893 491.996 408.943 504.808 396.867 513.758C391.227 517.865 379.519 523.812 372.347 526.141C358.738 530.493 349.849 531.29 318.095 531.045C297.376 530.861 293.697 530.677 287.751 529.574C267.461 525.773 251.4 517.681 239.753 505.36C230.312 495.429 226.021 486.357 223.692 471.706C222.65 464.901 224.611 453.622 228.596 444.12C233.439 432.534 245.944 418.129 258.327 409.853C272.671 400.29 291.552 393.486 308.9 391.647C315.582 390.911 329.742 390.911 336.424 391.585Z" fill="white"/>
|
|
93
|
+
<path d="M299.584 436.336C294.925 438.849 291.676 445.224 292.657 449.944C293.76 455.032 298.235 460.182 305.223 464.412C308.963 466.68 309.208 466.986 309.392 469.254C309.514 470.603 309.024 474.465 308.35 477.898C307.614 481.269 307.062 484.825 307.062 485.806C307.124 488.442 309.576 492.733 312.15 494.817C314.419 496.656 314.848 496.717 321.223 496.901C327.047 497.085 328.273 496.962 330.602 495.859C336.61 492.916 338.142 487.522 335.935 477.162C334.096 468.519 334.464 467.17 339.062 464.534C343.904 461.714 349.054 456.749 350.586 453.377C353.529 446.941 350.831 439.646 344.333 436.274C342.74 435.477 340.778 435.11 337.897 435.11C333.422 435.11 330.541 436.152 325.269 439.523L322.265 441.424L320.365 440.259C312.58 435.661 311.17 435.11 306.449 435.171C303.078 435.171 301.239 435.477 299.584 436.336Z" fill="white"/>
|
|
94
|
+
<path d="M150.744 365.165C139.894 368.598 131.802 376.567 127.634 387.908C125.611 393.303 124.63 401.824 125.488 406.421C127.511 417.394 136.522 427.386 146.76 430.145C159.633 433.516 169.257 431.309 177.778 422.85C182.743 418.007 185.441 413.777 188.138 406.911C190.099 402.069 190.222 401.211 190.222 394.345L190.283 386.989L187.709 381.717C183.601 373.38 176.184 367.188 167.602 364.92C162.759 363.694 154.974 363.756 150.744 365.165Z" fill="white"/>
|
|
95
|
+
<path d="M478.153 364.982C469.755 367.25 462.276 373.502 458.291 381.717L455.717 386.989L455.778 394.345C455.778 401.211 455.901 402.069 457.862 406.911C460.56 413.777 463.257 418.007 468.222 422.85C476.743 431.309 486.367 433.516 499.241 430.145C506.658 428.183 514.075 421.93 517.631 414.635C520.696 408.444 521.431 403.969 520.451 396.919C518.183 380.797 508.742 369.089 494.704 364.982C490.597 363.756 482.628 363.756 478.153 364.982Z" fill="white"/>
|
|
96
|
+
</svg>`},$l="CC0-1.0",Tl="https://www.ollama.com/",_l={slug:kl,title:Nl,hex:Sl,categories:Ll,aliases:Ml,svg:Al,variants:El,license:$l,url:Tl},Pl="docker",zl="Docker",Ol="2496ED",Il=["Devtool","Software"],Rl=[],Bl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#008fe2">
|
|
97
|
+
<path d="M13.98 11.08h2.12a.19.19 0 0 0 .19-.19V9.01a.19.19 0 0 0-.19-.19h-2.12a.18.18 0 0 0-.18.18v1.9c0 .1.08.18.18.18m-2.95-5.43h2.12a.19.19 0 0 0 .18-.19V3.57a.19.19 0 0 0-.18-.18h-2.12a.18.18 0 0 0-.19.18v1.9c0 .1.09.18.19.18m0 2.71h2.12a.19.19 0 0 0 .18-.18V6.29a.19.19 0 0 0-.18-.18h-2.12a.18.18 0 0 0-.19.18v1.89c0 .1.09.18.19.18m-2.93 0h2.12a.19.19 0 0 0 .18-.18V6.29a.18.18 0 0 0-.18-.18H8.1a.18.18 0 0 0-.18.18v1.89c0 .1.08.18.18.18m-2.96 0h2.11a.19.19 0 0 0 .19-.18V6.29a.18.18 0 0 0-.19-.18H5.14a.19.19 0 0 0-.19.18v1.89c0 .1.08.18.19.18m5.89 2.72h2.12a.19.19 0 0 0 .18-.19V9.01a.19.19 0 0 0-.18-.19h-2.12a.18.18 0 0 0-.19.18v1.9c0 .1.09.18.19.18m-2.93 0h2.12a.18.18 0 0 0 .18-.19V9.01a.18.18 0 0 0-.18-.19H8.1a.18.18 0 0 0-.18.18v1.9c0 .1.08.18.18.18m-2.96 0h2.11a.18.18 0 0 0 .19-.19V9.01a.18.18 0 0 0-.18-.19H5.14a.19.19 0 0 0-.19.19v1.88c0 .1.08.19.19.19m-2.92 0h2.12a.18.18 0 0 0 .18-.19V9.01a.18.18 0 0 0-.18-.19H2.22a.18.18 0 0 0-.19.18v1.9c0 .1.08.18.19.18m21.54-1.19c-.06-.05-.67-.51-1.95-.51-.34 0-.68.03-1.01.09a3.77 3.77 0 0 0-1.72-2.57l-.34-.2-.23.33a4.6 4.6 0 0 0-.6 1.43c-.24.97-.1 1.88.4 2.66a4.7 4.7 0 0 1-1.75.42H.76a.75.75 0 0 0-.76.75 11.38 11.38 0 0 0 .7 4.06 6.03 6.03 0 0 0 2.4 3.12c1.18.73 3.1 1.14 5.28 1.14.98 0 1.96-.08 2.93-.26a12.25 12.25 0 0 0 3.82-1.4 10.5 10.5 0 0 0 2.61-2.13c1.25-1.42 2-3 2.55-4.4h.23c1.37 0 2.21-.55 2.68-1 .3-.3.55-.66.7-1.06l.1-.28Z"/>
|
|
98
|
+
</svg>`,Hl={default:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#008fe2">
|
|
99
|
+
<path d="M13.98 11.08h2.12a.19.19 0 0 0 .19-.19V9.01a.19.19 0 0 0-.19-.19h-2.12a.18.18 0 0 0-.18.18v1.9c0 .1.08.18.18.18m-2.95-5.43h2.12a.19.19 0 0 0 .18-.19V3.57a.19.19 0 0 0-.18-.18h-2.12a.18.18 0 0 0-.19.18v1.9c0 .1.09.18.19.18m0 2.71h2.12a.19.19 0 0 0 .18-.18V6.29a.19.19 0 0 0-.18-.18h-2.12a.18.18 0 0 0-.19.18v1.89c0 .1.09.18.19.18m-2.93 0h2.12a.19.19 0 0 0 .18-.18V6.29a.18.18 0 0 0-.18-.18H8.1a.18.18 0 0 0-.18.18v1.89c0 .1.08.18.18.18m-2.96 0h2.11a.19.19 0 0 0 .19-.18V6.29a.18.18 0 0 0-.19-.18H5.14a.19.19 0 0 0-.19.18v1.89c0 .1.08.18.19.18m5.89 2.72h2.12a.19.19 0 0 0 .18-.19V9.01a.19.19 0 0 0-.18-.19h-2.12a.18.18 0 0 0-.19.18v1.9c0 .1.09.18.19.18m-2.93 0h2.12a.18.18 0 0 0 .18-.19V9.01a.18.18 0 0 0-.18-.19H8.1a.18.18 0 0 0-.18.18v1.9c0 .1.08.18.18.18m-2.96 0h2.11a.18.18 0 0 0 .19-.19V9.01a.18.18 0 0 0-.18-.19H5.14a.19.19 0 0 0-.19.19v1.88c0 .1.08.19.19.19m-2.92 0h2.12a.18.18 0 0 0 .18-.19V9.01a.18.18 0 0 0-.18-.19H2.22a.18.18 0 0 0-.19.18v1.9c0 .1.08.18.19.18m21.54-1.19c-.06-.05-.67-.51-1.95-.51-.34 0-.68.03-1.01.09a3.77 3.77 0 0 0-1.72-2.57l-.34-.2-.23.33a4.6 4.6 0 0 0-.6 1.43c-.24.97-.1 1.88.4 2.66a4.7 4.7 0 0 1-1.75.42H.76a.75.75 0 0 0-.76.75 11.38 11.38 0 0 0 .7 4.06 6.03 6.03 0 0 0 2.4 3.12c1.18.73 3.1 1.14 5.28 1.14.98 0 1.96-.08 2.93-.26a12.25 12.25 0 0 0 3.82-1.4 10.5 10.5 0 0 0 2.61-2.13c1.25-1.42 2-3 2.55-4.4h.23c1.37 0 2.21-.55 2.68-1 .3-.3.55-.66.7-1.06l.1-.28Z"/>
|
|
100
|
+
</svg>`,mono:'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Docker</title><path d="M13.983 11.078h2.119a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.119a.185.185 0 00-.185.185v1.888c0 .102.083.185.185.185m-2.954-5.43h2.118a.186.186 0 00.186-.186V3.574a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m0 2.716h2.118a.187.187 0 00.186-.186V6.29a.186.186 0 00-.186-.185h-2.118a.185.185 0 00-.185.185v1.887c0 .102.082.185.185.186m-2.93 0h2.12a.186.186 0 00.184-.186V6.29a.185.185 0 00-.185-.185H8.1a.185.185 0 00-.185.185v1.887c0 .102.083.185.185.186m-2.964 0h2.119a.186.186 0 00.185-.186V6.29a.185.185 0 00-.185-.185H5.136a.186.186 0 00-.186.185v1.887c0 .102.084.185.186.186m5.893 2.715h2.118a.186.186 0 00.186-.185V9.006a.186.186 0 00-.186-.186h-2.118a.185.185 0 00-.185.185v1.888c0 .102.082.185.185.185m-2.93 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.083.185.185.185m-2.964 0h2.119a.185.185 0 00.185-.185V9.006a.185.185 0 00-.184-.186h-2.12a.186.186 0 00-.186.186v1.887c0 .102.084.185.186.185m-2.92 0h2.12a.185.185 0 00.184-.185V9.006a.185.185 0 00-.184-.186h-2.12a.185.185 0 00-.184.185v1.888c0 .102.082.185.185.185M23.763 9.89c-.065-.051-.672-.51-1.954-.51-.338.001-.676.03-1.01.087-.248-1.7-1.653-2.53-1.716-2.566l-.344-.199-.226.327c-.284.438-.49.922-.612 1.43-.23.97-.09 1.882.403 2.661-.595.332-1.55.413-1.744.42H.751a.751.751 0 00-.75.748 11.376 11.376 0 00.692 4.062c.545 1.428 1.355 2.48 2.41 3.124 1.18.723 3.1 1.137 5.275 1.137.983.003 1.963-.086 2.93-.266a12.248 12.248 0 003.823-1.389c.98-.567 1.86-1.288 2.61-2.136 1.252-1.418 1.998-2.997 2.553-4.4h.221c1.372 0 2.215-.549 2.68-1.009.309-.293.55-.65.707-1.046l.098-.288Z"/></svg>'},Dl="CC0-1.0",Vl="https://www.docker.com/",Gl={slug:Pl,title:zl,hex:Ol,categories:Il,aliases:Rl,svg:Bl,variants:Hl,license:Dl,url:Vl},Fl={github:Di,slack:Yi,discord:i2,telegram:g2,anthropic:L2,openai:I2,google:q2,jira:rl,linear:ml,whatsapp:Cl,ollama:_l,docker:Gl};function Zl({name:e,className:s,colored:r=!1}){const a=Fl[e];return a?t.jsx("span",{className:k("inline-flex shrink-0",s),style:r?{color:`#${a.hex}`}:void 0,dangerouslySetInnerHTML:{__html:a.svg},"aria-label":a.title,role:"img"}):null}function Ut({...e}){return t.jsx(Nr,{"data-slot":"dropdown-menu",...e})}function qt({...e}){return t.jsx(Sr,{"data-slot":"dropdown-menu-trigger",...e})}function Wt({className:e,sideOffset:s=4,...r}){return t.jsx(Lr,{children:t.jsx(Mr,{"data-slot":"dropdown-menu-content",sideOffset:s,className:k("z-[100] min-w-[8rem] overflow-hidden rounded-xl p-1 modal-glass","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","max-h-(--radix-dropdown-menu-content-available-height) origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto",e),...r})})}function ge({className:e,inset:s,variant:r="default",...a}){return t.jsx(Er,{"data-slot":"dropdown-menu-item","data-inset":s,"data-variant":r,className:k("relative flex cursor-pointer items-center gap-2 rounded-lg px-2 py-1.5 text-sm outline-none select-none transition-colors","hover:bg-[var(--accent)] focus:bg-[var(--accent)] focus:text-[var(--accent-foreground)]","data-[variant=destructive]:text-destructive data-[variant=destructive]:hover:bg-destructive/10 data-[variant=destructive]:focus:bg-destructive/10","[&_svg:not([class*='text-'])]:text-[var(--muted-foreground)]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8","[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a})}function wt({className:e,inset:s,...r}){return t.jsx($r,{"data-slot":"dropdown-menu-label","data-inset":s,className:k("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...r})}function _e({className:e,...s}){return t.jsx(Ar,{"data-slot":"dropdown-menu-separator",className:k("bg-border -mx-1 my-1 h-px",e),...s})}function Ul(){const e=De(),{user:s,isAuthenticated:r,isLoading:a,authMode:o,logout:n}=Ve(),l=async()=>{try{await n(),ce.success("Logged out successfully"),e("/login")}catch{ce.error("Logout failed")}};if(a)return t.jsx("div",{className:"w-24 h-8 rounded-md bg-muted/30 animate-pulse"});if(o==="local"&&!r)return t.jsx(ae,{variant:"ghost",size:"sm",className:"gap-2 text-muted-foreground",asChild:!0,children:t.jsxs(he,{to:"/settings",children:[t.jsx("div",{className:"w-6 h-6 rounded-full bg-primary/10 flex items-center justify-center text-[10px] font-medium",children:"L"}),t.jsx("span",{className:"text-xs",children:"Local Mode"})]})});if(!r||!s)return t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(ae,{variant:"ghost",size:"sm",asChild:!0,children:t.jsx(he,{to:"/login",children:"Sign in"})}),t.jsx(ae,{variant:"outline",size:"sm",asChild:!0,children:t.jsx(he,{to:"/signup",children:"Sign up"})})]});const u=s.name.split(" ").map(i=>i[0]).join("").toUpperCase().slice(0,2);return t.jsxs(Ut,{children:[t.jsx(qt,{asChild:!0,children:t.jsxs(ae,{variant:"ghost",size:"sm",className:"gap-2 px-2",children:[s.avatarUrl?t.jsx("img",{src:s.avatarUrl,alt:s.name,className:"w-7 h-7 rounded-full"}):t.jsx("div",{className:"w-7 h-7 rounded-full bg-primary/10 flex items-center justify-center text-xs font-medium",children:u}),t.jsx("span",{className:"hidden sm:inline max-w-[100px] truncate",children:s.name})]})}),t.jsxs(Wt,{align:"end",className:"w-56",children:[t.jsx(wt,{children:t.jsxs("div",{className:"flex flex-col space-y-1",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("p",{className:"font-medium",children:s.name}),s.role==="admin"&&t.jsxs("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-bold uppercase bg-red-500/10 text-red-500",children:[t.jsx(bn,{className:"h-3 w-3"}),"Admin"]})]}),t.jsx("p",{className:"text-xs text-muted-foreground truncate",children:s.email})]})}),t.jsx(_e,{}),t.jsx(ge,{asChild:!0,children:t.jsxs(he,{to:"/settings/account",className:"flex items-center gap-2 cursor-pointer",children:[t.jsx(gi,{className:"h-4 w-4"}),"Profile"]})}),t.jsx(ge,{asChild:!0,children:t.jsxs(he,{to:"/settings",className:"flex items-center gap-2 cursor-pointer",children:[t.jsx(rt,{className:"h-4 w-4"}),"Settings"]})}),t.jsx(ge,{asChild:!0,children:t.jsxs(he,{to:"/settings/notifications",className:"flex items-center gap-2 cursor-pointer",children:[t.jsx(Rt,{className:"h-4 w-4"}),"Notifications"]})}),t.jsx(_e,{}),s.role==="admin"&&t.jsxs(t.Fragment,{children:[t.jsx(wt,{className:"text-xs text-muted-foreground",children:"Administration"}),t.jsx(ge,{asChild:!0,children:t.jsxs(he,{to:"/admin/users",className:"flex items-center gap-2 cursor-pointer",children:[t.jsx(O1,{className:"h-4 w-4"}),"Manage Users"]})}),t.jsx(_e,{})]}),t.jsx(ge,{asChild:!0,children:t.jsxs(he,{to:"/costs",className:"flex items-center gap-2 cursor-pointer",children:[t.jsx($1,{className:"h-4 w-4"}),"Usage & Costs"]})}),t.jsx(ge,{asChild:!0,children:t.jsxs(he,{to:"/settings/api-keys",className:"flex items-center gap-2 cursor-pointer",children:[t.jsx(Dt,{className:"h-4 w-4"}),"API Keys"]})}),t.jsx(_e,{}),s.connectedAccounts&&s.connectedAccounts.length>0&&t.jsxs(t.Fragment,{children:[t.jsx(wt,{className:"text-xs text-muted-foreground",children:"Connected Accounts"}),s.connectedAccounts.map(i=>t.jsxs(ge,{disabled:!0,className:"opacity-70",children:[t.jsx(Zl,{name:"github",className:"h-4 w-4 mr-2"}),"@",i.username]},i.provider)),t.jsx(_e,{})]}),t.jsxs(ge,{onClick:l,className:"text-destructive focus:text-destructive cursor-pointer",children:[t.jsx(P1,{className:"h-4 w-4 mr-2"}),"Log out"]})]})]})}function R1(){return He({queryKey:["oobe","status"],queryFn:async()=>{const e=await fetch("/api/oobe/status");return e.ok?e.json():{needsSetup:!0,authMode:"local"}},staleTime:3e4,retry:!1})}function oe({children:e,requireOnboarding:s=!1}){const{isAuthenticated:r,isLoading:a,user:o,authMode:n,accessKeyRequired:l}=Ve(),{data:u,isLoading:i}=R1(),d=xs();return a||i?t.jsx("div",{className:"min-h-screen flex items-center justify-center bg-[var(--background)]",children:t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[t.jsx(Pe,{className:"h-8 w-8 animate-spin text-[var(--primary)]"}),t.jsx("p",{className:"text-sm text-[var(--muted-foreground)]",children:"Loading..."})]})}):u?.needsSetup?t.jsx(Re,{to:"/oobe",replace:!0}):!r&&n==="local"&&l?t.jsx(Re,{to:"/access-key",state:{from:d},replace:!0}):!r&&n==="local"&&!l?t.jsx(t.Fragment,{children:e}):r?s&&o&&!o.onboardingCompleted?t.jsx(Re,{to:"/onboarding",replace:!0}):t.jsx(t.Fragment,{children:e}):t.jsx(Re,{to:"/login",state:{from:d},replace:!0})}function ss({children:e}){const{isAuthenticated:s,isLoading:r,user:a,authMode:o,accessKeyRequired:n}=Ve(),{data:l,isLoading:u}=R1(),i=xs();if(r||u)return t.jsx("div",{className:"min-h-screen flex items-center justify-center bg-[var(--background)]",children:t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[t.jsx(Pe,{className:"h-8 w-8 animate-spin text-[var(--primary)]"}),t.jsx("p",{className:"text-sm text-[var(--muted-foreground)]",children:"Loading..."})]})});if(l?.needsSetup)return t.jsx(Re,{to:"/oobe",replace:!0});if(o==="local"&&!n)return t.jsx(Re,{to:"/",replace:!0});if(s){if(a&&!a.onboardingCompleted)return t.jsx(Re,{to:"/onboarding",replace:!0});const d=i.state?.from?.pathname||"/";return t.jsx(Re,{to:d,replace:!0})}return t.jsx(t.Fragment,{children:e})}function ql({children:e}){return t.jsx(qr,{children:t.jsx(Mi,{children:t.jsx(Zr,{children:t.jsx(Wa,{children:e})})})})}const Wl="modulepreload",Jl=function(e){return"/"+e},Js={},te=function(s,r,a){let o=Promise.resolve();if(r&&r.length>0){let i=function(d){return Promise.all(d.map(f=>Promise.resolve(f).then(c=>({status:"fulfilled",value:c}),c=>({status:"rejected",reason:c}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),u=l?.nonce||l?.getAttribute("nonce");o=i(r.map(d=>{if(d=Jl(d),d in Js)return;Js[d]=!0;const f=d.endsWith(".css"),c=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${c}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":Wl,f||(p.as="script"),p.crossOrigin="",p.href=d,u&&p.setAttribute("nonce",u),document.head.appendChild(p),f)return new Promise((x,v)=>{p.addEventListener("load",x),p.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${d}`)))})}))}function n(l){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l}return o.then(l=>{for(const u of l||[])u.status==="rejected"&&n(u.reason);return s().catch(n)})};function Ks(){const{theme:e,setTheme:s}=Nt();return t.jsxs(Ut,{children:[t.jsx(qt,{asChild:!0,children:t.jsxs(ae,{variant:"ghost",size:"icon",className:"relative rounded-full hover-lift transition-liquid","aria-label":"Toggle theme",children:[t.jsx(Vt,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),t.jsx(bt,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"})]})}),t.jsxs(Wt,{align:"end",className:"w-[180px] glass-heavy rounded-2xl p-2",children:[t.jsx(wt,{className:"text-[11px] font-bold uppercase tracking-widest text-muted-foreground px-2 py-2",children:"Appearance"}),t.jsx(_e,{className:"bg-white/5"}),t.jsxs(ge,{onClick:()=>s("light"),className:"flex items-center justify-between rounded-xl px-2 py-2.5 cursor-pointer hover:bg-white/5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Vt,{className:"h-4 w-4"}),t.jsx("span",{className:"text-[13px]",children:"Light"})]}),e==="light"&&t.jsx(de,{className:"h-4 w-4"})]}),t.jsxs(ge,{onClick:()=>s("dark"),className:"flex items-center justify-between rounded-xl px-2 py-2.5 cursor-pointer hover:bg-white/5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(bt,{className:"h-4 w-4 text-blue-400"}),t.jsx("span",{className:"text-[13px]",children:"Dark Blue"})]}),e==="dark"&&t.jsx(de,{className:"h-4 w-4"})]}),t.jsxs(ge,{onClick:()=>s("midnight"),className:"flex items-center justify-between rounded-xl px-2 py-2.5 cursor-pointer hover:bg-white/5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(bt,{className:"h-4 w-4 text-purple-400"}),t.jsx("span",{className:"text-[13px]",children:"Midnight"})]}),e==="midnight"&&t.jsx(de,{className:"h-4 w-4"})]}),t.jsx(_e,{className:"bg-white/5"}),t.jsxs(ge,{onClick:()=>s("system"),className:"flex items-center justify-between rounded-xl px-2 py-2.5 cursor-pointer hover:bg-white/5",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Zn,{className:"h-4 w-4"}),t.jsx("span",{className:"text-[13px]",children:"System"})]}),e==="system"&&t.jsx(de,{className:"h-4 w-4"})]})]})]})}var Ys=1,Kl=.9,Yl=.8,Ql=.17,rs=.1,as=.999,Xl=.9999,e0=.99,t0=/[\\\/_+.#"@\[\(\{&]/,s0=/[\\\/_+.#"@\[\(\{&]/g,r0=/[\s-]/,B1=/[\s-]/g;function us(e,s,r,a,o,n,l){if(n===s.length)return o===e.length?Ys:e0;var u=`${o},${n}`;if(l[u]!==void 0)return l[u];for(var i=a.charAt(n),d=r.indexOf(i,o),f=0,c,p,x,v;d>=0;)c=us(e,s,r,a,d+1,n+1,l),c>f&&(d===o?c*=Ys:t0.test(e.charAt(d-1))?(c*=Yl,x=e.slice(o,d-1).match(s0),x&&o>0&&(c*=Math.pow(as,x.length))):r0.test(e.charAt(d-1))?(c*=Kl,v=e.slice(o,d-1).match(B1),v&&o>0&&(c*=Math.pow(as,v.length))):(c*=Ql,o>0&&(c*=Math.pow(as,d-o))),e.charAt(d)!==s.charAt(n)&&(c*=Xl)),(c<rs&&r.charAt(d-1)===a.charAt(n+1)||a.charAt(n+1)===a.charAt(n)&&r.charAt(d-1)!==a.charAt(n))&&(p=us(e,s,r,a,d+1,n+2,l),p*rs>c&&(c=p*rs)),c>f&&(f=c),d=r.indexOf(i,d+1);return l[u]=f,f}function Qs(e){return e.toLowerCase().replace(B1," ")}function a0(e,s,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,us(e,s,Qs(e),Qs(s),0,0,{})}var vt='[cmdk-group=""]',os='[cmdk-group-items=""]',o0='[cmdk-group-heading=""]',H1='[cmdk-item=""]',Xs=`${H1}:not([aria-disabled="true"])`,hs="cmdk-item-select",ct="data-value",n0=(e,s,r)=>a0(e,s,r),D1=h.createContext(void 0),St=()=>h.useContext(D1),V1=h.createContext(void 0),Ls=()=>h.useContext(V1),G1=h.createContext(void 0),F1=h.forwardRef((e,s)=>{let r=dt(()=>{var C,S;return{search:"",value:(S=(C=e.value)!=null?C:e.defaultValue)!=null?S:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),a=dt(()=>new Set),o=dt(()=>new Map),n=dt(()=>new Map),l=dt(()=>new Set),u=Z1(e),{label:i,children:d,value:f,onValueChange:c,filter:p,shouldFilter:x,loop:v,disablePointerSelection:g=!1,vimBindings:y=!0,...j}=e,P=ht(),O=ht(),E=ht(),M=h.useRef(null),w=g0();st(()=>{if(f!==void 0){let C=f.trim();r.current.value=C,b.emit()}},[f]),st(()=>{w(6,se)},[]);let b=h.useMemo(()=>({subscribe:C=>(l.current.add(C),()=>l.current.delete(C)),snapshot:()=>r.current,setState:(C,S,_)=>{var A,Z,G,q;if(!Object.is(r.current[C],S)){if(r.current[C]=S,C==="search")X(),Y(),w(1,V);else if(C==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let re=document.getElementById(E);re?re.focus():(A=document.getElementById(P))==null||A.focus()}if(w(7,()=>{var re;r.current.selectedItemId=(re=ie())==null?void 0:re.id,b.emit()}),_||w(5,se),((Z=u.current)==null?void 0:Z.value)!==void 0){let re=S??"";(q=(G=u.current).onValueChange)==null||q.call(G,re);return}}b.emit()}},emit:()=>{l.current.forEach(C=>C())}}),[]),N=h.useMemo(()=>({value:(C,S,_)=>{var A;S!==((A=n.current.get(C))==null?void 0:A.value)&&(n.current.set(C,{value:S,keywords:_}),r.current.filtered.items.set(C,T(S,_)),w(2,()=>{Y(),b.emit()}))},item:(C,S)=>(a.current.add(C),S&&(o.current.has(S)?o.current.get(S).add(C):o.current.set(S,new Set([C]))),w(3,()=>{X(),Y(),r.current.value||V(),b.emit()}),()=>{n.current.delete(C),a.current.delete(C),r.current.filtered.items.delete(C);let _=ie();w(4,()=>{X(),_?.getAttribute("id")===C&&V(),b.emit()})}),group:C=>(o.current.has(C)||o.current.set(C,new Set),()=>{n.current.delete(C),o.current.delete(C)}),filter:()=>u.current.shouldFilter,label:i||e["aria-label"],getDisablePointerSelection:()=>u.current.disablePointerSelection,listId:P,inputId:E,labelId:O,listInnerRef:M}),[]);function T(C,S){var _,A;let Z=(A=(_=u.current)==null?void 0:_.filter)!=null?A:n0;return C?Z(C,r.current.search,S):0}function Y(){if(!r.current.search||u.current.shouldFilter===!1)return;let C=r.current.filtered.items,S=[];r.current.filtered.groups.forEach(A=>{let Z=o.current.get(A),G=0;Z.forEach(q=>{let re=C.get(q);G=Math.max(re,G)}),S.push([A,G])});let _=M.current;le().sort((A,Z)=>{var G,q;let re=A.getAttribute("id"),ve=Z.getAttribute("id");return((G=C.get(ve))!=null?G:0)-((q=C.get(re))!=null?q:0)}).forEach(A=>{let Z=A.closest(os);Z?Z.appendChild(A.parentElement===Z?A:A.closest(`${os} > *`)):_.appendChild(A.parentElement===_?A:A.closest(`${os} > *`))}),S.sort((A,Z)=>Z[1]-A[1]).forEach(A=>{var Z;let G=(Z=M.current)==null?void 0:Z.querySelector(`${vt}[${ct}="${encodeURIComponent(A[0])}"]`);G?.parentElement.appendChild(G)})}function V(){let C=le().find(_=>_.getAttribute("aria-disabled")!=="true"),S=C?.getAttribute(ct);b.setState("value",S||void 0)}function X(){var C,S,_,A;if(!r.current.search||u.current.shouldFilter===!1){r.current.filtered.count=a.current.size;return}r.current.filtered.groups=new Set;let Z=0;for(let G of a.current){let q=(S=(C=n.current.get(G))==null?void 0:C.value)!=null?S:"",re=(A=(_=n.current.get(G))==null?void 0:_.keywords)!=null?A:[],ve=T(q,re);r.current.filtered.items.set(G,ve),ve>0&&Z++}for(let[G,q]of o.current)for(let re of q)if(r.current.filtered.items.get(re)>0){r.current.filtered.groups.add(G);break}r.current.filtered.count=Z}function se(){var C,S,_;let A=ie();A&&(((C=A.parentElement)==null?void 0:C.firstChild)===A&&((_=(S=A.closest(vt))==null?void 0:S.querySelector(o0))==null||_.scrollIntoView({block:"nearest"})),A.scrollIntoView({block:"nearest"}))}function ie(){var C;return(C=M.current)==null?void 0:C.querySelector(`${H1}[aria-selected="true"]`)}function le(){var C;return Array.from(((C=M.current)==null?void 0:C.querySelectorAll(Xs))||[])}function F(C){let S=le()[C];S&&b.setState("value",S.getAttribute(ct))}function K(C){var S;let _=ie(),A=le(),Z=A.findIndex(q=>q===_),G=A[Z+C];(S=u.current)!=null&&S.loop&&(G=Z+C<0?A[A.length-1]:Z+C===A.length?A[0]:A[Z+C]),G&&b.setState("value",G.getAttribute(ct))}function B(C){let S=ie(),_=S?.closest(vt),A;for(;_&&!A;)_=C>0?f0(_,vt):x0(_,vt),A=_?.querySelector(Xs);A?b.setState("value",A.getAttribute(ct)):K(C)}let $=()=>F(le().length-1),U=C=>{C.preventDefault(),C.metaKey?$():C.altKey?B(1):K(1)},Q=C=>{C.preventDefault(),C.metaKey?F(0):C.altKey?B(-1):K(-1)};return h.createElement(Ke.div,{ref:s,tabIndex:-1,...j,"cmdk-root":"",onKeyDown:C=>{var S;(S=j.onKeyDown)==null||S.call(j,C);let _=C.nativeEvent.isComposing||C.keyCode===229;if(!(C.defaultPrevented||_))switch(C.key){case"n":case"j":{y&&C.ctrlKey&&U(C);break}case"ArrowDown":{U(C);break}case"p":case"k":{y&&C.ctrlKey&&Q(C);break}case"ArrowUp":{Q(C);break}case"Home":{C.preventDefault(),F(0);break}case"End":{C.preventDefault(),$();break}case"Enter":{C.preventDefault();let A=ie();if(A){let Z=new Event(hs);A.dispatchEvent(Z)}}}}},h.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:y0},i),Jt(e,C=>h.createElement(V1.Provider,{value:b},h.createElement(D1.Provider,{value:N},C))))}),i0=h.forwardRef((e,s)=>{var r,a;let o=ht(),n=h.useRef(null),l=h.useContext(G1),u=St(),i=Z1(e),d=(a=(r=i.current)==null?void 0:r.forceMount)!=null?a:l?.forceMount;st(()=>{if(!d)return u.item(o,l?.id)},[d]);let f=U1(o,n,[e.value,e.children,n],e.keywords),c=Ls(),p=Je(w=>w.value&&w.value===f.current),x=Je(w=>d||u.filter()===!1?!0:w.search?w.filtered.items.get(o)>0:!0);h.useEffect(()=>{let w=n.current;if(!(!w||e.disabled))return w.addEventListener(hs,v),()=>w.removeEventListener(hs,v)},[x,e.onSelect,e.disabled]);function v(){var w,b;g(),(b=(w=i.current).onSelect)==null||b.call(w,f.current)}function g(){c.setState("value",f.current,!0)}if(!x)return null;let{disabled:y,value:j,onSelect:P,forceMount:O,keywords:E,...M}=e;return h.createElement(Ke.div,{ref:jt(n,s),...M,id:o,"cmdk-item":"",role:"option","aria-disabled":!!y,"aria-selected":!!p,"data-disabled":!!y,"data-selected":!!p,onPointerMove:y||u.getDisablePointerSelection()?void 0:g,onClick:y?void 0:v},e.children)}),l0=h.forwardRef((e,s)=>{let{heading:r,children:a,forceMount:o,...n}=e,l=ht(),u=h.useRef(null),i=h.useRef(null),d=ht(),f=St(),c=Je(x=>o||f.filter()===!1?!0:x.search?x.filtered.groups.has(l):!0);st(()=>f.group(l),[]),U1(l,u,[e.value,e.heading,i]);let p=h.useMemo(()=>({id:l,forceMount:o}),[o]);return h.createElement(Ke.div,{ref:jt(u,s),...n,"cmdk-group":"",role:"presentation",hidden:c?void 0:!0},r&&h.createElement("div",{ref:i,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),Jt(e,x=>h.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},h.createElement(G1.Provider,{value:p},x))))}),c0=h.forwardRef((e,s)=>{let{alwaysRender:r,...a}=e,o=h.useRef(null),n=Je(l=>!l.search);return!r&&!n?null:h.createElement(Ke.div,{ref:jt(o,s),...a,"cmdk-separator":"",role:"separator"})}),d0=h.forwardRef((e,s)=>{let{onValueChange:r,...a}=e,o=e.value!=null,n=Ls(),l=Je(d=>d.search),u=Je(d=>d.selectedItemId),i=St();return h.useEffect(()=>{e.value!=null&&n.setState("search",e.value)},[e.value]),h.createElement(Ke.input,{ref:s,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":i.listId,"aria-labelledby":i.labelId,"aria-activedescendant":u,id:i.inputId,type:"text",value:o?e.value:l,onChange:d=>{o||n.setState("search",d.target.value),r?.(d.target.value)}})}),u0=h.forwardRef((e,s)=>{let{children:r,label:a="Suggestions",...o}=e,n=h.useRef(null),l=h.useRef(null),u=Je(d=>d.selectedItemId),i=St();return h.useEffect(()=>{if(l.current&&n.current){let d=l.current,f=n.current,c,p=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{let x=d.offsetHeight;f.style.setProperty("--cmdk-list-height",x.toFixed(1)+"px")})});return p.observe(d),()=>{cancelAnimationFrame(c),p.unobserve(d)}}},[]),h.createElement(Ke.div,{ref:jt(n,s),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":a,id:i.listId},Jt(e,d=>h.createElement("div",{ref:jt(l,i.listInnerRef),"cmdk-list-sizer":""},d)))}),h0=h.forwardRef((e,s)=>{let{open:r,onOpenChange:a,overlayClassName:o,contentClassName:n,container:l,...u}=e;return h.createElement(Tr,{open:r,onOpenChange:a},h.createElement(_r,{container:l},h.createElement(Pr,{"cmdk-overlay":"",className:o}),h.createElement(zr,{"aria-label":e.label,"cmdk-dialog":"",className:n},h.createElement(F1,{ref:s,...u}))))}),m0=h.forwardRef((e,s)=>Je(r=>r.filtered.count===0)?h.createElement(Ke.div,{ref:s,...e,"cmdk-empty":"",role:"presentation"}):null),p0=h.forwardRef((e,s)=>{let{progress:r,children:a,label:o="Loading...",...n}=e;return h.createElement(Ke.div,{ref:s,...n,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},Jt(e,l=>h.createElement("div",{"aria-hidden":!0},l)))}),Te=Object.assign(F1,{List:u0,Item:i0,Input:d0,Group:l0,Separator:c0,Dialog:h0,Empty:m0,Loading:p0});function f0(e,s){let r=e.nextElementSibling;for(;r;){if(r.matches(s))return r;r=r.nextElementSibling}}function x0(e,s){let r=e.previousElementSibling;for(;r;){if(r.matches(s))return r;r=r.previousElementSibling}}function Z1(e){let s=h.useRef(e);return st(()=>{s.current=e}),s}var st=typeof window>"u"?h.useEffect:h.useLayoutEffect;function dt(e){let s=h.useRef();return s.current===void 0&&(s.current=e()),s}function Je(e){let s=Ls(),r=()=>e(s.snapshot());return h.useSyncExternalStore(s.subscribe,r,r)}function U1(e,s,r,a=[]){let o=h.useRef(),n=St();return st(()=>{var l;let u=(()=>{var d;for(let f of r){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(d=f.current.textContent)==null?void 0:d.trim():o.current}})(),i=a.map(d=>d.trim());n.value(e,u,i),(l=s.current)==null||l.setAttribute(ct,u),o.current=u}),o}var g0=()=>{let[e,s]=h.useState(),r=dt(()=>new Map);return st(()=>{r.current.forEach(a=>a()),r.current=new Map},[e]),(a,o)=>{r.current.set(a,o),s({})}};function v0(e){let s=e.type;return typeof s=="function"?s(e.props):"render"in s?s.render(e.props):e}function Jt({asChild:e,children:s},r){return e&&h.isValidElement(s)?h.cloneElement(v0(s),{ref:s.ref},r(s.props.children)):r(s)}var y0={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};let ms={},q1;function ns(e={}){ms={animate:!0,allowClose:!0,overlayClickBehavior:"close",overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000",...e}}function z(e){return e?ms[e]:ms}function b0(e){q1=e}function Ce(){return q1}let Ft={};function Pt(e,s){Ft[e]=s}function et(e){var s;(s=Ft[e])==null||s.call(Ft)}function w0(){Ft={}}function zt(e,s,r,a){return(e/=a/2)<1?r/2*e*e+s:-r/2*(--e*(e-2)-1)+s}function W1(e){const s='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap(r=>{const a=r.matches(s),o=Array.from(r.querySelectorAll(s));return[...a?[r]:[],...o]}).filter(r=>getComputedStyle(r).pointerEvents!=="none"&&k0(r))}function J1(e){if(!e||C0(e))return;const s=z("smoothScroll"),r=e.offsetHeight>window.innerHeight;e.scrollIntoView({behavior:!s||j0(e)?"auto":"smooth",inline:"center",block:r?"start":"center"})}function j0(e){if(!e||!e.parentElement)return;const s=e.parentElement;return s.scrollHeight>s.clientHeight}function C0(e){const s=e.getBoundingClientRect();return s.top>=0&&s.left>=0&&s.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&s.right<=(window.innerWidth||document.documentElement.clientWidth)}function k0(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}let Zt={};function pe(e,s){Zt[e]=s}function D(e){return e?Zt[e]:Zt}function e1(){Zt={}}function N0(e,s,r,a){let o=D("__activeStagePosition");const n=o||r.getBoundingClientRect(),l=a.getBoundingClientRect(),u=zt(e,n.x,l.x-n.x,s),i=zt(e,n.y,l.y-n.y,s),d=zt(e,n.width,l.width-n.width,s),f=zt(e,n.height,l.height-n.height,s);o={x:u,y:i,width:d,height:f},Y1(o),pe("__activeStagePosition",o)}function K1(e){if(!e)return;const s=e.getBoundingClientRect(),r={x:s.x,y:s.y,width:s.width,height:s.height};pe("__activeStagePosition",r),Y1(r)}function S0(){const e=D("__activeStagePosition"),s=D("__overlaySvg");if(!e)return;if(!s){console.warn("No stage svg found.");return}const r=window.innerWidth,a=window.innerHeight;s.setAttribute("viewBox",`0 0 ${r} ${a}`)}function L0(e){const s=M0(e);document.body.appendChild(s),er(s,r=>{r.target.tagName==="path"&&et("overlayClick")}),pe("__overlaySvg",s)}function Y1(e){const s=D("__overlaySvg");if(!s){L0(e);return}const r=s.firstElementChild;if(r?.tagName!=="path")throw new Error("no path element found in stage svg");r.setAttribute("d",Q1(e))}function M0(e){const s=window.innerWidth,r=window.innerHeight,a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("driver-overlay","driver-overlay-animated"),a.setAttribute("viewBox",`0 0 ${s} ${r}`),a.setAttribute("xmlSpace","preserve"),a.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),a.setAttribute("version","1.1"),a.setAttribute("preserveAspectRatio","xMinYMin slice"),a.style.fillRule="evenodd",a.style.clipRule="evenodd",a.style.strokeLinejoin="round",a.style.strokeMiterlimit="2",a.style.zIndex="10000",a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.width="100%",a.style.height="100%";const o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("d",Q1(e)),o.style.fill=z("overlayColor")||"rgb(0,0,0)",o.style.opacity=`${z("overlayOpacity")}`,o.style.pointerEvents="auto",o.style.cursor="auto",a.appendChild(o),a}function Q1(e){const s=window.innerWidth,r=window.innerHeight,a=z("stagePadding")||0,o=z("stageRadius")||0,n=e.width+a*2,l=e.height+a*2,u=Math.min(o,n/2,l/2),i=Math.floor(Math.max(u,0)),d=e.x-a+i,f=e.y-a,c=n-i*2,p=l-i*2;return`M${s},0L0,0L0,${r}L${s},${r}L${s},0Z
|
|
101
|
+
M${d},${f} h${c} a${i},${i} 0 0 1 ${i},${i} v${p} a${i},${i} 0 0 1 -${i},${i} h-${c} a${i},${i} 0 0 1 -${i},-${i} v-${p} a${i},${i} 0 0 1 ${i},-${i} z`}function A0(){const e=D("__overlaySvg");e&&e.remove()}function E0(){const e=document.getElementById("driver-dummy-element");if(e)return e;let s=document.createElement("div");return s.id="driver-dummy-element",s.style.width="0",s.style.height="0",s.style.pointerEvents="none",s.style.opacity="0",s.style.position="fixed",s.style.top="50%",s.style.left="50%",document.body.appendChild(s),s}function t1(e){const{element:s}=e;let r=typeof s=="function"?s():typeof s=="string"?document.querySelector(s):s;r||(r=E0()),T0(r,e)}function $0(){const e=D("__activeElement"),s=D("__activeStep");e&&(K1(e),S0(),sr(e,s))}function T0(e,s){var r;const a=Date.now(),o=D("__activeStep"),n=D("__activeElement")||e,l=!n||n===e,u=e.id==="driver-dummy-element",i=n.id==="driver-dummy-element",d=z("animate"),f=s.onHighlightStarted||z("onHighlightStarted"),c=s?.onHighlighted||z("onHighlighted"),p=o?.onDeselected||z("onDeselected"),x=z(),v=D();!l&&p&&p(i?void 0:n,o,{config:x,state:v,driver:Ce()}),f&&f(u?void 0:e,s,{config:x,state:v,driver:Ce()});const g=!l&&d;let y=!1;I0(),pe("previousStep",o),pe("previousElement",n),pe("activeStep",s),pe("activeElement",e);const j=()=>{if(D("__transitionCallback")!==j)return;const P=Date.now()-a,O=400-P<=400/2;s.popover&&O&&!y&&g&&(s1(e,s),y=!0),z("animate")&&P<400?N0(P,400,n,e):(K1(e),c&&c(u?void 0:e,s,{config:z(),state:D(),driver:Ce()}),pe("__transitionCallback",void 0),pe("__previousStep",o),pe("__previousElement",n),pe("__activeStep",s),pe("__activeElement",e)),window.requestAnimationFrame(j)};pe("__transitionCallback",j),window.requestAnimationFrame(j),J1(e),!g&&s.popover&&s1(e,s),n.classList.remove("driver-active-element","driver-no-interaction"),n.removeAttribute("aria-haspopup"),n.removeAttribute("aria-expanded"),n.removeAttribute("aria-controls"),((r=s.disableActiveInteraction)!=null?r:z("disableActiveInteraction"))&&e.classList.add("driver-no-interaction"),e.classList.add("driver-active-element"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded","true"),e.setAttribute("aria-controls","driver-popover-content")}function _0(){var e;(e=document.getElementById("driver-dummy-element"))==null||e.remove(),document.querySelectorAll(".driver-active-element").forEach(s=>{s.classList.remove("driver-active-element","driver-no-interaction"),s.removeAttribute("aria-haspopup"),s.removeAttribute("aria-expanded"),s.removeAttribute("aria-controls")})}function kt(){const e=D("__resizeTimeout");e&&window.cancelAnimationFrame(e),pe("__resizeTimeout",window.requestAnimationFrame($0))}function P0(e){var s;if(!D("isInitialized")||!(e.key==="Tab"||e.keyCode===9))return;const r=D("__activeElement"),a=(s=D("popover"))==null?void 0:s.wrapper,o=W1([...a?[a]:[],...r?[r]:[]]),n=o[0],l=o[o.length-1];if(e.preventDefault(),e.shiftKey){const u=o[o.indexOf(document.activeElement)-1]||l;u?.focus()}else{const u=o[o.indexOf(document.activeElement)+1]||n;u?.focus()}}function X1(e){var s;((s=z("allowKeyboardControl"))==null||s)&&(e.key==="Escape"?et("escapePress"):e.key==="ArrowRight"?et("arrowRightPress"):e.key==="ArrowLeft"&&et("arrowLeftPress"))}function er(e,s,r){const a=(o,n)=>{const l=o.target;e.contains(l)&&((!r||r(l))&&(o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation()),n?.(o))};document.addEventListener("pointerdown",a,!0),document.addEventListener("mousedown",a,!0),document.addEventListener("pointerup",a,!0),document.addEventListener("mouseup",a,!0),document.addEventListener("click",o=>{a(o,s)},!0)}function z0(){window.addEventListener("keyup",X1,!1),window.addEventListener("keydown",P0,!1),window.addEventListener("resize",kt),window.addEventListener("scroll",kt)}function O0(){window.removeEventListener("keyup",X1),window.removeEventListener("resize",kt),window.removeEventListener("scroll",kt)}function I0(){const e=D("popover");e&&(e.wrapper.style.display="none")}function s1(e,s){var r,a;let o=D("popover");o&&document.body.removeChild(o.wrapper),o=B0(),document.body.appendChild(o.wrapper);const{title:n,description:l,showButtons:u,disableButtons:i,showProgress:d,nextBtnText:f=z("nextBtnText")||"Next →",prevBtnText:c=z("prevBtnText")||"← Previous",progressText:p=z("progressText")||"{current} of {total}"}=s.popover||{};o.nextButton.innerHTML=f,o.previousButton.innerHTML=c,o.progress.innerHTML=p,n?(o.title.innerHTML=n,o.title.style.display="block"):o.title.style.display="none",l?(o.description.innerHTML=l,o.description.style.display="block"):o.description.style.display="none";const x=u||z("showButtons"),v=d||z("showProgress")||!1,g=x?.includes("next")||x?.includes("previous")||v;o.closeButton.style.display=x.includes("close")?"block":"none",g?(o.footer.style.display="flex",o.progress.style.display=v?"block":"none",o.nextButton.style.display=x.includes("next")?"block":"none",o.previousButton.style.display=x.includes("previous")?"block":"none"):o.footer.style.display="none";const y=i||z("disableButtons")||[];y!=null&&y.includes("next")&&(o.nextButton.disabled=!0,o.nextButton.classList.add("driver-popover-btn-disabled")),y!=null&&y.includes("previous")&&(o.previousButton.disabled=!0,o.previousButton.classList.add("driver-popover-btn-disabled")),y!=null&&y.includes("close")&&(o.closeButton.disabled=!0,o.closeButton.classList.add("driver-popover-btn-disabled"));const j=o.wrapper;j.style.display="block",j.style.left="",j.style.top="",j.style.bottom="",j.style.right="",j.id="driver-popover-content",j.setAttribute("role","dialog"),j.setAttribute("aria-labelledby","driver-popover-title"),j.setAttribute("aria-describedby","driver-popover-description");const P=o.arrow;P.className="driver-popover-arrow";const O=((r=s.popover)==null?void 0:r.popoverClass)||z("popoverClass")||"";j.className=`driver-popover ${O}`.trim(),er(o.wrapper,b=>{var N,T,Y;const V=b.target,X=((N=s.popover)==null?void 0:N.onNextClick)||z("onNextClick"),se=((T=s.popover)==null?void 0:T.onPrevClick)||z("onPrevClick"),ie=((Y=s.popover)==null?void 0:Y.onCloseClick)||z("onCloseClick");if(V.closest(".driver-popover-next-btn"))return X?X(e,s,{config:z(),state:D(),driver:Ce()}):et("nextClick");if(V.closest(".driver-popover-prev-btn"))return se?se(e,s,{config:z(),state:D(),driver:Ce()}):et("prevClick");if(V.closest(".driver-popover-close-btn"))return ie?ie(e,s,{config:z(),state:D(),driver:Ce()}):et("closeClick")},b=>!(o!=null&&o.description.contains(b))&&!(o!=null&&o.title.contains(b))&&typeof b.className=="string"&&b.className.includes("driver-popover")),pe("popover",o);const E=((a=s.popover)==null?void 0:a.onPopoverRender)||z("onPopoverRender");E&&E(o,{config:z(),state:D(),driver:Ce()}),sr(e,s),J1(j);const M=e.classList.contains("driver-dummy-element"),w=W1([j,...M?[]:[e]]);w.length>0&&w[0].focus()}function tr(){const e=D("popover");if(!(e!=null&&e.wrapper))return;const s=e.wrapper.getBoundingClientRect(),r=z("stagePadding")||0,a=z("popoverOffset")||0;return{width:s.width+r+a,height:s.height+r+a,realWidth:s.width,realHeight:s.height}}function r1(e,s){const{elementDimensions:r,popoverDimensions:a,popoverPadding:o,popoverArrowDimensions:n}=s;return e==="start"?Math.max(Math.min(r.top-o,window.innerHeight-a.realHeight-n.width),n.width):e==="end"?Math.max(Math.min(r.top-a?.realHeight+r.height+o,window.innerHeight-a?.realHeight-n.width),n.width):e==="center"?Math.max(Math.min(r.top+r.height/2-a?.realHeight/2,window.innerHeight-a?.realHeight-n.width),n.width):0}function a1(e,s){const{elementDimensions:r,popoverDimensions:a,popoverPadding:o,popoverArrowDimensions:n}=s;return e==="start"?Math.max(Math.min(r.left-o,window.innerWidth-a.realWidth-n.width),n.width):e==="end"?Math.max(Math.min(r.left-a?.realWidth+r.width+o,window.innerWidth-a?.realWidth-n.width),n.width):e==="center"?Math.max(Math.min(r.left+r.width/2-a?.realWidth/2,window.innerWidth-a?.realWidth-n.width),n.width):0}function sr(e,s){const r=D("popover");if(!r)return;const{align:a="start",side:o="left"}=s?.popover||{},n=a,l=e.id==="driver-dummy-element"?"over":o,u=z("stagePadding")||0,i=tr(),d=r.arrow.getBoundingClientRect(),f=e.getBoundingClientRect(),c=f.top-i.height;let p=c>=0;const x=window.innerHeight-(f.bottom+i.height);let v=x>=0;const g=f.left-i.width;let y=g>=0;const j=window.innerWidth-(f.right+i.width);let P=j>=0;const O=!p&&!v&&!y&&!P;let E=l;if(l==="top"&&p?P=y=v=!1:l==="bottom"&&v?P=y=p=!1:l==="left"&&y?P=p=v=!1:l==="right"&&P&&(y=p=v=!1),l==="over"){const M=window.innerWidth/2-i.realWidth/2,w=window.innerHeight/2-i.realHeight/2;r.wrapper.style.left=`${M}px`,r.wrapper.style.right="auto",r.wrapper.style.top=`${w}px`,r.wrapper.style.bottom="auto"}else if(O){const M=window.innerWidth/2-i?.realWidth/2,w=10;r.wrapper.style.left=`${M}px`,r.wrapper.style.right="auto",r.wrapper.style.bottom=`${w}px`,r.wrapper.style.top="auto"}else if(y){const M=Math.min(g,window.innerWidth-i?.realWidth-d.width),w=r1(n,{elementDimensions:f,popoverDimensions:i,popoverPadding:u,popoverArrowDimensions:d});r.wrapper.style.left=`${M}px`,r.wrapper.style.top=`${w}px`,r.wrapper.style.bottom="auto",r.wrapper.style.right="auto",E="left"}else if(P){const M=Math.min(j,window.innerWidth-i?.realWidth-d.width),w=r1(n,{elementDimensions:f,popoverDimensions:i,popoverPadding:u,popoverArrowDimensions:d});r.wrapper.style.right=`${M}px`,r.wrapper.style.top=`${w}px`,r.wrapper.style.bottom="auto",r.wrapper.style.left="auto",E="right"}else if(p){const M=Math.min(c,window.innerHeight-i.realHeight-d.width);let w=a1(n,{elementDimensions:f,popoverDimensions:i,popoverPadding:u,popoverArrowDimensions:d});r.wrapper.style.top=`${M}px`,r.wrapper.style.left=`${w}px`,r.wrapper.style.bottom="auto",r.wrapper.style.right="auto",E="top"}else if(v){const M=Math.min(x,window.innerHeight-i?.realHeight-d.width);let w=a1(n,{elementDimensions:f,popoverDimensions:i,popoverPadding:u,popoverArrowDimensions:d});r.wrapper.style.left=`${w}px`,r.wrapper.style.bottom=`${M}px`,r.wrapper.style.top="auto",r.wrapper.style.right="auto",E="bottom"}O?r.arrow.classList.add("driver-popover-arrow-none"):R0(n,E,e)}function R0(e,s,r){const a=D("popover");if(!a)return;const o=r.getBoundingClientRect(),n=tr(),l=a.arrow,u=n.width,i=window.innerWidth,d=o.width,f=o.left,c=n.height,p=window.innerHeight,x=o.top,v=o.height;l.className="driver-popover-arrow";let g=s,y=e;if(s==="top"?(f+d<=0?(g="right",y="end"):f+d-u<=0&&(g="top",y="start"),f>=i?(g="left",y="end"):f+u>=i&&(g="top",y="end")):s==="bottom"?(f+d<=0?(g="right",y="start"):f+d-u<=0&&(g="bottom",y="start"),f>=i?(g="left",y="start"):f+u>=i&&(g="bottom",y="end")):s==="left"?(x+v<=0?(g="bottom",y="end"):x+v-c<=0&&(g="left",y="start"),x>=p?(g="top",y="end"):x+c>=p&&(g="left",y="end")):s==="right"&&(x+v<=0?(g="bottom",y="start"):x+v-c<=0&&(g="right",y="start"),x>=p?(g="top",y="start"):x+c>=p&&(g="right",y="end")),!g)l.classList.add("driver-popover-arrow-none");else{l.classList.add(`driver-popover-arrow-side-${g}`),l.classList.add(`driver-popover-arrow-align-${y}`);const j=r.getBoundingClientRect(),P=l.getBoundingClientRect(),O=z("stagePadding")||0,E=j.left-O<window.innerWidth&&j.right+O>0&&j.top-O<window.innerHeight&&j.bottom+O>0;s==="bottom"&&E&&(P.x>j.x&&P.x+P.width<j.x+j.width?a.wrapper.style.transform="translateY(0)":(l.classList.remove(`driver-popover-arrow-align-${y}`),l.classList.add("driver-popover-arrow-none"),a.wrapper.style.transform=`translateY(-${O/2}px)`))}}function B0(){const e=document.createElement("div");e.classList.add("driver-popover");const s=document.createElement("div");s.classList.add("driver-popover-arrow");const r=document.createElement("header");r.id="driver-popover-title",r.classList.add("driver-popover-title"),r.style.display="none",r.innerText="Popover Title";const a=document.createElement("div");a.id="driver-popover-description",a.classList.add("driver-popover-description"),a.style.display="none",a.innerText="Popover description is here";const o=document.createElement("button");o.type="button",o.classList.add("driver-popover-close-btn"),o.setAttribute("aria-label","Close"),o.innerHTML="×";const n=document.createElement("footer");n.classList.add("driver-popover-footer");const l=document.createElement("span");l.classList.add("driver-popover-progress-text"),l.innerText="";const u=document.createElement("span");u.classList.add("driver-popover-navigation-btns");const i=document.createElement("button");i.type="button",i.classList.add("driver-popover-prev-btn"),i.innerHTML="← Previous";const d=document.createElement("button");return d.type="button",d.classList.add("driver-popover-next-btn"),d.innerHTML="Next →",u.appendChild(i),u.appendChild(d),n.appendChild(l),n.appendChild(u),e.appendChild(o),e.appendChild(s),e.appendChild(r),e.appendChild(a),e.appendChild(n),{wrapper:e,arrow:s,title:r,description:a,footer:n,previousButton:i,nextButton:d,closeButton:o,footerButtons:u,progress:l}}function H0(){var e;const s=D("popover");s&&((e=s.wrapper.parentElement)==null||e.removeChild(s.wrapper))}function D0(e={}){ns(e);function s(){z("allowClose")&&f()}function r(){const p=z("overlayClickBehavior");if(z("allowClose")&&p==="close"){f();return}if(typeof p=="function"){const x=D("__activeStep"),v=D("__activeElement");p(v,x,{config:z(),state:D(),driver:Ce()});return}p==="nextStep"&&a()}function a(){const p=D("activeIndex"),x=z("steps")||[];if(typeof p>"u")return;const v=p+1;x[v]?d(v):f()}function o(){const p=D("activeIndex"),x=z("steps")||[];if(typeof p>"u")return;const v=p-1;x[v]?d(v):f()}function n(p){(z("steps")||[])[p]?d(p):f()}function l(){var p;if(D("__transitionCallback"))return;const x=D("activeIndex"),v=D("__activeStep"),g=D("__activeElement");if(typeof x>"u"||typeof v>"u"||typeof D("activeIndex")>"u")return;const y=((p=v.popover)==null?void 0:p.onPrevClick)||z("onPrevClick");if(y)return y(g,v,{config:z(),state:D(),driver:Ce()});o()}function u(){var p;if(D("__transitionCallback"))return;const x=D("activeIndex"),v=D("__activeStep"),g=D("__activeElement");if(typeof x>"u"||typeof v>"u")return;const y=((p=v.popover)==null?void 0:p.onNextClick)||z("onNextClick");if(y)return y(g,v,{config:z(),state:D(),driver:Ce()});a()}function i(){D("isInitialized")||(pe("isInitialized",!0),document.body.classList.add("driver-active",z("animate")?"driver-fade":"driver-simple"),z0(),Pt("overlayClick",r),Pt("escapePress",s),Pt("arrowLeftPress",l),Pt("arrowRightPress",u))}function d(p=0){var x,v,g,y,j,P,O,E;const M=z("steps");if(!M){console.error("No steps to drive through"),f();return}if(!M[p]){f();return}pe("__activeOnDestroyed",document.activeElement),pe("activeIndex",p);const w=M[p],b=M[p+1],N=M[p-1],T=((x=w.popover)==null?void 0:x.doneBtnText)||z("doneBtnText")||"Done",Y=z("allowClose"),V=typeof((v=w.popover)==null?void 0:v.showProgress)<"u"?(g=w.popover)==null?void 0:g.showProgress:z("showProgress"),X=(((y=w.popover)==null?void 0:y.progressText)||z("progressText")||"{{current}} of {{total}}").replace("{{current}}",`${p+1}`).replace("{{total}}",`${M.length}`),se=((j=w.popover)==null?void 0:j.showButtons)||z("showButtons"),ie=["next","previous",...Y?["close"]:[]].filter(B=>!(se!=null&&se.length)||se.includes(B)),le=((P=w.popover)==null?void 0:P.onNextClick)||z("onNextClick"),F=((O=w.popover)==null?void 0:O.onPrevClick)||z("onPrevClick"),K=((E=w.popover)==null?void 0:E.onCloseClick)||z("onCloseClick");t1({...w,popover:{showButtons:ie,nextBtnText:b?void 0:T,disableButtons:[...N?[]:["previous"]],showProgress:V,progressText:X,onNextClick:le||(()=>{b?d(p+1):f()}),onPrevClick:F||(()=>{d(p-1)}),onCloseClick:K||(()=>{f()}),...w?.popover||{}}})}function f(p=!0){const x=D("__activeElement"),v=D("__activeStep"),g=D("__activeOnDestroyed"),y=z("onDestroyStarted");if(p&&y){const O=!x||x?.id==="driver-dummy-element";y(O?void 0:x,v,{config:z(),state:D(),driver:Ce()});return}const j=v?.onDeselected||z("onDeselected"),P=z("onDestroyed");if(document.body.classList.remove("driver-active","driver-fade","driver-simple"),O0(),H0(),_0(),A0(),w0(),e1(),x&&v){const O=x.id==="driver-dummy-element";j&&j(O?void 0:x,v,{config:z(),state:D(),driver:Ce()}),P&&P(O?void 0:x,v,{config:z(),state:D(),driver:Ce()})}g&&g.focus()}const c={isActive:()=>D("isInitialized")||!1,refresh:kt,drive:(p=0)=>{i(),d(p)},setConfig:ns,setSteps:p=>{e1(),ns({...z(),steps:p})},getConfig:z,getState:D,getActiveIndex:()=>D("activeIndex"),isFirstStep:()=>D("activeIndex")===0,isLastStep:()=>{const p=z("steps")||[],x=D("activeIndex");return x!==void 0&&x===p.length-1},getActiveStep:()=>D("activeStep"),getActiveElement:()=>D("activeElement"),getPreviousElement:()=>D("previousElement"),getPreviousStep:()=>D("previousStep"),moveNext:a,movePrevious:o,moveTo:n,hasNextStep:()=>{const p=z("steps")||[],x=D("activeIndex");return x!==void 0&&!!p[x+1]},hasPreviousStep:()=>{const p=z("steps")||[],x=D("activeIndex");return x!==void 0&&!!p[x-1]},highlight:p=>{i(),t1({...p,popover:p.popover?{showButtons:[],showProgress:!1,progressText:"",...p.popover}:void 0})},destroy:()=>{f(!1)}};return b0(c),c}const Ot="profclaw-onboarding-completed",V0=[{popover:{title:"Welcome to profClaw",description:"Your AI agent orchestration hub. Let me give you a quick tour of the key features.",side:"bottom",align:"center"}},{element:'[data-tour="sidebar-nav"]',popover:{title:"Navigation",description:"Access Dashboard, Tasks, Summaries, Costs, Agents, and Settings. Everything you need is one click away.",side:"right",align:"start"}},{element:'[data-tour="command-palette"]',popover:{title:"Quick Actions",description:"Press ⌘K (or Ctrl+K) anytime to search, navigate, or perform actions instantly.",side:"bottom",align:"end"}},{element:'[data-tour="theme-toggle"]',popover:{title:"Theme Preferences",description:"Switch between Light, Dark, and Midnight themes. Your preference is saved automatically.",side:"left",align:"center"}},{popover:{title:"You're Ready!",description:"Create tasks manually or connect webhooks from GitHub, Jira, or Linear. Your AI agents are standing by.",side:"bottom",align:"center"}}];function rr(){const[e,s]=h.useState(()=>typeof window>"u"?!0:localStorage.getItem(Ot)==="true"),r=h.useCallback(()=>{const o=D0({showProgress:!0,animate:!0,smoothScroll:!0,allowClose:!0,stagePadding:12,stageRadius:20,steps:V0,nextBtnText:"Next →",prevBtnText:"← Back",doneBtnText:"Get Started",progressText:"{{current}} of {{total}}",onDestroyStarted:()=>{localStorage.setItem(Ot,"true"),s(!0),o.destroy(),fetch("/api/auth/me",{method:"PATCH",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({onboardingCompleted:!0})}).catch(()=>{})}});o.drive()},[]),a=h.useCallback(()=>{localStorage.removeItem(Ot),s(!1)},[]);return{hasCompleted:e,startTour:r,resetTour:a}}function G0(){const{hasCompleted:e,startTour:s}=rr(),{isAuthenticated:r,user:a}=Ve();return h.useEffect(()=>{if(!r||e)return;if(a?.onboardingCompleted){localStorage.setItem(Ot,"true");return}const o=setTimeout(()=>{s()},1500);return()=>clearTimeout(o)},[e,s,r,a?.onboardingCompleted]),null}const ps="open-command-palette";function fs(){window.dispatchEvent(new CustomEvent(ps))}function F0(){const[e,s]=h.useState(!1),r=De(),{theme:a,setTheme:o}=Nt(),{resetTour:n,startTour:l}=rr();h.useEffect(()=>{const i=f=>{f.key==="k"&&(f.metaKey||f.ctrlKey)&&(f.preventDefault(),f.stopPropagation(),s(c=>!c)),f.key==="Escape"&&e&&(f.preventDefault(),s(!1))},d=()=>s(!0);return window.addEventListener("keydown",i,!0),window.addEventListener(ps,d),()=>{window.removeEventListener("keydown",i,!0),window.removeEventListener(ps,d)}},[e]);const u=h.useCallback(i=>{s(!1),i()},[]);return e?t.jsx("button",{className:"fixed inset-0 z-[100] flex items-start justify-center pt-[10vh] sm:pt-[15vh] px-4 backdrop-blur-md bg-black/20 dark:bg-black/60 animate-in fade-in duration-300 w-full h-full border-none cursor-default",onClick:()=>s(!1),"aria-label":"Close command palette",children:t.jsx("div",{className:"w-full max-w-2xl overflow-hidden glass-heavy rounded-[32px] shadow-[0_32px_128px_-16px_rgba(0,0,0,0.5)] border border-white/10 animate-in zoom-in-95 duration-300",onClick:i=>i.stopPropagation(),children:t.jsxs(Te,{className:"flex flex-col h-full bg-transparent",children:[t.jsxs("div",{className:"flex items-center px-6 border-b border-white/5",children:[t.jsx(Ht,{className:"h-5 w-5 text-muted-foreground mr-3"}),t.jsx(Te.Input,{autoFocus:!0,placeholder:"Type a command or search...",className:"flex-1 h-20 bg-transparent outline-none text-lg placeholder:text-muted-foreground/50"}),t.jsx("div",{className:"hidden sm:flex items-center gap-1.5 px-2 py-1 rounded-lg bg-white/5 border border-white/5",children:t.jsx("span",{className:"text-[10px] font-bold text-muted-foreground",children:"ESC"})})]}),t.jsxs(Te.List,{className:"max-h-[60vh] sm:max-h-[450px] overflow-y-auto p-3 scrollbar-none [&::-webkit-scrollbar]:hidden [-ms-overflow-style:none] [scrollbar-width:none]",children:[t.jsx(Te.Empty,{className:"py-16 text-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-3 opacity-40",children:[t.jsx(Ht,{className:"h-10 w-10"}),t.jsx("p",{className:"text-sm font-medium",children:"No results found for your search"})]})}),t.jsx(Te.Group,{heading:"General",className:"px-3 py-4 text-[11px] font-bold uppercase tracking-widest text-muted-foreground/60",children:t.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-1 mt-2",children:[t.jsx(ye,{onSelect:()=>u(()=>r("/")),icon:Ue,children:"Chat"}),t.jsx(ye,{onSelect:()=>u(()=>r("/tasks")),icon:ks,children:"Tasks"}),t.jsx(ye,{onSelect:()=>u(()=>r("/analytics")),icon:ws,children:"Analytics"}),t.jsx(ye,{onSelect:()=>u(()=>r("/summaries")),icon:_1,children:"Summaries"}),t.jsx(ye,{onSelect:()=>u(()=>r("/costs")),icon:E1,children:"Costs"}),t.jsx(ye,{onSelect:()=>u(()=>r("/agents")),icon:bs,children:"Agents"}),t.jsx(ye,{onSelect:()=>u(()=>r("/settings")),icon:rt,children:"Settings"})]})}),t.jsx(Te.Separator,{className:"h-px bg-white/5 mx-3 my-2"}),t.jsx(Te.Group,{heading:"Quick Actions",className:"px-3 py-4 text-[11px] font-bold uppercase tracking-widest text-muted-foreground/60",children:t.jsxs("div",{className:"space-y-1 mt-2",children:[t.jsx(ye,{onSelect:()=>u(()=>{}),icon:Qn,children:"Create New Task"}),t.jsx(ye,{onSelect:()=>u(()=>{n(),setTimeout(()=>l(),100)}),icon:si,children:"Start Onboarding Tour"}),t.jsx(ye,{onSelect:()=>u(()=>o(a==="light"?"dark":"light")),icon:a==="light"?bt:Vt,children:a==="light"?"Switch to Dark Blue":"Switch to Light Mode"}),t.jsx(ye,{onSelect:()=>u(()=>o("midnight")),icon:Ue,children:"Switch to Midnight Black"})]})}),t.jsx(Te.Group,{heading:"Voice",className:"px-3 py-4 text-[11px] font-bold uppercase tracking-widest text-muted-foreground/60",children:t.jsx("div",{className:"space-y-1 mt-2",children:t.jsx(ye,{onSelect:()=>u(()=>{window.dispatchEvent(new CustomEvent("profclaw:talk-mode-toggle"))}),icon:Ko,children:"Toggle Talk Mode"})})}),t.jsx(Te.Group,{heading:"Diagnostics",className:"px-3 py-4 text-[11px] font-bold uppercase tracking-widest text-muted-foreground/60",children:t.jsxs("div",{className:"space-y-1 mt-2",children:[t.jsx(ye,{icon:z1,children:"Open Debug Terminal"}),t.jsx(ye,{icon:Uo,children:"System Health Report"})]})})]}),t.jsxs("footer",{className:"flex items-center justify-between px-6 py-4 border-t border-white/5 bg-white/[0.03] backdrop-blur-md",children:[t.jsxs("div",{className:"flex gap-6 items-center",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("kbd",{className:"flex h-5 w-5 items-center justify-center rounded border border-white/20 bg-white/10 text-[10px] font-bold font-sans",children:"↵"}),t.jsx("span",{className:"text-[10px] font-bold text-muted-foreground uppercase tracking-tighter",children:"Enter"})]}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx("kbd",{className:"flex h-5 w-8 items-center justify-center rounded border border-white/20 bg-white/10 text-[10px] font-bold font-sans",children:"↑↓"}),t.jsx("span",{className:"text-[10px] font-bold text-muted-foreground uppercase tracking-tighter",children:"Navigate"})]})]}),t.jsxs("div",{className:"flex items-center gap-2 text-primary",children:[t.jsx(Ue,{className:"h-3 w-3"}),t.jsx("span",{className:"text-[9px] font-bold uppercase tracking-[0.2em]",children:"profClaw INTELLIGENCE"})]})]})]})})}):null}function ye({children:e,icon:s,onSelect:r}){return t.jsxs(Te.Item,{onSelect:r,className:"flex items-center gap-3 px-4 py-3.5 rounded-2xl cursor-default select-none aria-selected:bg-primary/10 dark:aria-selected:bg-white/10 aria-selected:text-foreground transition-all duration-200 group",children:[t.jsx("div",{className:"h-9 w-9 rounded-[12px] glass-heavy flex items-center justify-center border-white/5 group-aria-selected:border-primary/30 dark:group-aria-selected:border-white/20 group-aria-selected:scale-110 transition-transform",children:t.jsx(s,{className:"h-[18px] w-[18px] text-muted-foreground group-aria-selected:text-primary dark:group-aria-selected:text-blue-400 group-aria-selected:drop-shadow-[0_0_8px_rgba(96,165,250,0.5)] transition-all"})}),t.jsx("span",{className:"text-[14px] font-medium tracking-tight",children:e})]})}const Z0=Object.freeze(Object.defineProperty({__proto__:null,CommandPalette:F0,openCommandPalette:fs},Symbol.toStringTag,{value:"Module"}));function U0(e){const r=Date.now()-e,a=Math.floor(r/1e3);if(a<60)return"just now";const o=Math.floor(a/60);if(o<60)return`${o}m ago`;const n=Math.floor(o/60);return n<24?`${n}h ago`:`${Math.floor(n/24)}d ago`}function q0({type:e}){switch(e){case"success":return t.jsx(dn,{className:"h-4 w-4 text-green-400"});case"error":return t.jsx(tt,{className:"h-4 w-4 text-red-400"});case"warning":return t.jsx(Ct,{className:"h-4 w-4 text-amber-400"});default:return t.jsx(A1,{className:"h-4 w-4 text-blue-400"})}}function W0(){const e=De(),s=gs(),{data:r}=He({queryKey:["notifications"],queryFn:()=>mt.notifications.list({limit:20}),refetchInterval:3e4}),a=r?.notifications??[],o=r?.unreadCount??0,n=Be({mutationFn:()=>mt.notifications.markAllRead(),onSuccess:()=>{s.invalidateQueries({queryKey:["notifications"]})}}),l=Be({mutationFn:u=>mt.notifications.markRead(u),onSuccess:()=>{s.invalidateQueries({queryKey:["notifications"]})}});return t.jsxs(Ut,{children:[t.jsx(qt,{asChild:!0,children:t.jsxs(ae,{variant:"ghost",size:"icon",className:"relative rounded-full hover-lift transition-liquid","aria-label":"Notifications",children:[t.jsx(Rt,{className:"h-5 w-5 text-muted-foreground"}),o>0&&t.jsxs("span",{className:"absolute top-2 right-2 flex h-2.5 w-2.5",children:[t.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-red-400 opacity-75"}),t.jsx("span",{className:"relative inline-flex rounded-full h-2.5 w-2.5 bg-red-500 shadow-[0_0_8px_rgba(239,68,68,0.5)]"})]})]})}),t.jsxs(Wt,{align:"end",className:"w-[320px] glass-heavy rounded-3xl p-0 overflow-hidden shadow-2xl border-white/10",children:[t.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-white/5 bg-white/[0.02]",children:[t.jsx(wt,{className:"p-0 text-sm font-bold uppercase tracking-widest",children:"Notifications"}),o>0&&t.jsx("button",{onClick:()=>n.mutate(),className:"text-[10px] font-bold text-primary hover:underline uppercase tracking-tight",children:"Mark all read"})]}),t.jsx("div",{className:"max-h-[400px] overflow-y-auto scrollbar-none",children:a.length>0?a.map((u,i)=>t.jsxs(h.Fragment,{children:[t.jsxs(ge,{className:"flex flex-col items-start gap-1 p-5 cursor-default focus:bg-white/5 transition-colors group",onClick:()=>{u.read||l.mutate(u.id)},children:[t.jsxs("div",{className:"flex w-full items-start justify-between gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(q0,{type:u.type}),t.jsx("span",{className:k("text-[13px] font-bold",!u.read&&"text-foreground"),children:u.title})]}),t.jsx("span",{className:"text-[10px] text-muted-foreground font-medium",children:U0(u.createdAt)})]}),u.description&&t.jsx("p",{className:"text-[12px] text-muted-foreground leading-relaxed pr-4",children:u.description}),!u.read&&t.jsx("div",{className:"absolute top-5 right-2 h-1.5 w-1.5 rounded-full bg-primary"})]}),i<a.length-1&&t.jsx(_e,{className:"bg-white/5 m-0"})]},u.id)):t.jsxs("div",{className:"py-12 text-center",children:[t.jsx(Rt,{className:"h-10 w-10 mx-auto text-muted-foreground opacity-20 mb-3"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"No new notifications"})]})}),t.jsx("div",{className:"px-5 py-3 border-t border-white/5 bg-white/[0.02] text-center",children:t.jsx("button",{onClick:()=>e("/activity"),className:"text-[11px] font-bold text-muted-foreground hover:text-foreground transition-colors uppercase tracking-widest",children:"View All Activity"})})]})]})}const J0=h.lazy(()=>te(()=>Promise.resolve().then(()=>Z0),void 0).then(e=>({default:e.CommandPalette}))),K0=h.lazy(()=>te(()=>import("./FloatingChatbot-0yhkUeCq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])).then(e=>({default:e.FloatingChatbot}))),ar=[{id:"home",label:"Home",items:[{name:"Chat",href:"/",icon:Ue,shortcut:"⌘1"}]},{id:"ai-studio",label:"AI Studio",items:[{name:"Agents",href:"/agents",icon:bs,shortcut:"⌘2"},{name:"Gateway",href:"/gateway",icon:Ns}]},{id:"scrum",label:"Scrum",items:[{name:"Projects",href:"/projects",icon:En,shortcut:"⌘3"},{name:"Tickets",href:"/tickets",icon:pi,shortcut:"⌘4"},{name:"Tasks",href:"/tasks",icon:ks,shortcut:"⌘5",hasBadge:"pending"},{name:"Failed",href:"/failed",icon:Ct,hasBadge:"dlq"}]},{id:"insights",label:"Insights",items:[{name:"Analytics",href:"/analytics",icon:ws,shortcut:"⌘6"},{name:"Activity",href:"/activity",icon:Rt},{name:"Summaries",href:"/summaries",icon:_1,shortcut:"⌘7"},{name:"Costs",href:"/costs",icon:E1,shortcut:"⌘8"}]},{id:"automation",label:"Automation",items:[{name:"Cron Jobs",href:"/cron",icon:A1},{name:"Feeds",href:"/feeds",icon:ai},{name:"Webhooks",href:"/webhooks",icon:ji}]},{id:"ecosystem",label:"Ecosystem",items:[{name:"Marketplace",href:"/marketplace",icon:di},{name:"Memory",href:"/memory",icon:en},{name:"Teams",href:"/teams",icon:yi}]},{id:"settings",label:"Settings",items:[{name:"Settings",href:"/settings",icon:rt,shortcut:"⌘0"}]}],lt={id:"admin",label:"Admin",items:[{name:"Users",href:"/admin/users",icon:O1},{name:"Invite Codes",href:"/admin/invite-codes",icon:Cs}]},Y0=ar.flatMap(e=>e.items),Q0=[{name:"Chat",href:"/",icon:Ue},{name:"Tasks",href:"/tasks",icon:ks},{name:"Analytics",href:"/analytics",icon:ws},{name:"Agents",href:"/agents",icon:bs}];function o1({label:e,collapsed:s,isOpen:r,onToggle:a,itemCount:o}){const n=o>1;return s?t.jsx("div",{className:"flex justify-center py-1.5",children:t.jsx("div",{className:"h-px w-5 bg-[var(--border)]/40"})}):n?t.jsxs("button",{onClick:a,"aria-expanded":r,"aria-label":`${r?"Collapse":"Expand"} ${e} group`,className:"group flex items-center w-full px-3 py-1.5 text-[10px] font-semibold uppercase tracking-wider text-[var(--muted-foreground)]/50 hover:text-[var(--muted-foreground)]/80 transition-colors",children:[t.jsx(L1,{className:k("h-3 w-3 mr-1 transition-transform duration-200 opacity-60",!r&&"-rotate-90"),"aria-hidden":"true"}),t.jsx("span",{className:"nav-group-label",children:e})]}):t.jsx("div",{className:"px-3 py-1.5",children:t.jsx("span",{className:"nav-group-label",children:e})})}function n1({item:e,isActive:s,collapsed:r,onClick:a,badge:o}){return t.jsxs(he,{to:e.href,onClick:a,"aria-label":r?e.name:void 0,className:k("group relative flex items-center rounded-xl transition-all duration-300",r?"justify-center h-10 w-10 mx-auto":"gap-3 px-3 py-2.5 mx-1",s?"bg-[#0a0a0b] text-white shadow-lg shadow-black/20 nav-item-active":"text-[var(--muted-foreground)]/70 hover:nav-item-hover hover:text-[var(--foreground)]"),children:[t.jsxs("div",{className:"relative flex items-center justify-center",children:[t.jsx(e.icon,{className:k("shrink-0 transition-all duration-200",r?"h-[18px] w-[18px]":"h-4 w-4",s?"text-white":"text-[var(--muted-foreground)]/70 group-hover:text-[var(--foreground)]")}),o!==void 0&&o>0&&t.jsx("span",{className:k("absolute -top-1 -right-1 flex items-center justify-center rounded-full text-[8px] font-bold","h-3.5 min-w-3.5 px-0.5","bg-[var(--destructive)] text-white"),children:o>99?"99+":o})]}),!r&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-[13px] font-medium flex-1 truncate",children:e.name}),e.shortcut&&t.jsx("kbd",{className:"hidden lg:inline-flex h-5 items-center gap-0.5 rounded bg-[var(--muted)]/60 px-1.5 text-[10px] font-mono text-[var(--muted-foreground)]/70 opacity-0 group-hover:opacity-100 transition-opacity",children:e.shortcut})]}),r&&t.jsxs("div",{className:"pointer-events-none absolute left-full ml-2 opacity-0 group-hover:opacity-100 flex items-center gap-2 px-2.5 py-1.5 rounded-lg bg-[var(--popover)] text-[12px] font-medium text-[var(--foreground)] border border-[var(--border)] whitespace-nowrap shadow-lg z-[100] transition-all duration-150",children:[t.jsx("span",{children:e.name}),o!==void 0&&o>0&&t.jsx("span",{className:"flex items-center justify-center h-4 min-w-4 px-1 rounded-full bg-[var(--destructive)] text-white text-[9px] font-bold",children:o}),e.shortcut&&t.jsx("kbd",{className:"text-[10px] text-[var(--muted-foreground)]",children:e.shortcut})]})]})}function ne({children:e}){const s=xs(),r=De(),{user:a,logout:o}=Ve(),{resolvedTheme:n}=Nt(),[l,u]=h.useState(!1),[i,d]=h.useState(()=>localStorage.getItem("sidebar-collapsed")==="true"),[f,c]=h.useState(!1),[p,x]=h.useState(!1),v=h.useRef([]),g=h.useRef(0),[y,j]=h.useState(()=>{const b=localStorage.getItem("sidebar-groups");return b?JSON.parse(b):{home:!0,"ai-studio":!0,scrum:!0,insights:!0,automation:!0,settings:!0,admin:!0}}),P=b=>{j(N=>{const T={...N,[b]:!N[b]};return localStorage.setItem("sidebar-groups",JSON.stringify(T)),T})};h.useEffect(()=>{const b=s.pathname+s.search;v.current.length===0?(v.current=[b],g.current=0):b!==v.current[g.current]&&(g.current<v.current.length-1&&b===v.current[g.current+1]?g.current++:g.current>0&&b===v.current[g.current-1]?g.current--:(v.current=v.current.slice(0,g.current+1),v.current.push(b),g.current=v.current.length-1)),x(g.current<v.current.length-1)},[s]);const{data:O}=He({queryKey:["stats"],queryFn:mt.stats.get,refetchInterval:3e4,staleTime:25e3}),{data:E}=He({queryKey:["dlq","stats"],queryFn:mt.dlq.stats,refetchInterval:3e4,staleTime:25e3});h.useEffect(()=>{localStorage.setItem("sidebar-collapsed",i.toString())},[i]),h.useEffect(()=>{const b=()=>{c(window.scrollY>10)};return window.addEventListener("scroll",b,{passive:!0}),()=>window.removeEventListener("scroll",b)},[]),h.useEffect(()=>{const b=N=>{if((N.metaKey||N.ctrlKey)&&!N.shiftKey&&!N.altKey){const T={1:"/",2:"/agents",3:"/projects",4:"/tickets",5:"/tasks",6:"/analytics",7:"/summaries",8:"/costs",0:"/settings"};T[N.key]&&(N.preventDefault(),r(T[N.key]))}};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[r]);const M=h.useMemo(()=>{const b=s.pathname;if(b.startsWith("/projects/")&&b!=="/projects")return{name:"Project Details",parent:"Projects",parentHref:"/projects"};if(b.startsWith("/tickets/")&&b!=="/tickets")return{name:"Ticket Details",parent:"Tickets",parentHref:"/tickets"};if(b.startsWith("/tasks/")&&b!=="/tasks")return{name:"Task Details",parent:"Tasks",parentHref:"/tasks"};if(b.startsWith("/summaries/")&&b!=="/summaries")return{name:"Summary Details",parent:"Summaries",parentHref:"/summaries"};const N=Y0.find(T=>T.href===b||T.href!=="/"&&b.startsWith(T.href));return N?{name:N.name}:{name:"Chat"}},[s.pathname]),w=window.history.length>1;return t.jsxs("div",{className:"flex min-h-screen bg-background",children:[t.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:fixed focus:top-4 focus:left-4 focus:z-[100] focus:px-4 focus:py-2 focus:bg-primary focus:text-white focus:rounded-lg focus:shadow-lg focus:outline-none",children:"Skip to main content"}),t.jsx(h.Suspense,{fallback:null,children:t.jsx(J0,{})}),l&&t.jsx("button",{className:"fixed inset-0 z-40 bg-black/40 backdrop-blur-sm md:hidden w-full h-full border-none cursor-default",onClick:()=>u(!1),"aria-label":"Close sidebar"}),t.jsx("aside",{className:k("global-sidebar fixed inset-y-0 left-0 z-50 p-2 transition-all duration-300 ease-out",i?"w-[72px]":"w-64",l?"translate-x-0":"-translate-x-full md:translate-x-0"),children:t.jsxs("div",{className:"glass h-full rounded-2xl flex flex-col overflow-hidden",children:[t.jsxs("div",{className:k("flex items-center flex-shrink-0 transition-all h-14",i?"justify-center px-2":"justify-between px-3"),children:[t.jsx(he,{to:"/",className:"flex items-center group/logo","aria-label":"profClaw Home",children:i?t.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-xl glass-heavy shadow-lg shadow-primary/5 transition-transform group-hover/logo:scale-105",children:t.jsx(ze,{className:"h-7 w-7 text-primary","aria-hidden":"true"})}):t.jsx("img",{src:n==="light"?"/brand/profclaw-wordmark-light.svg":"/brand/profclaw-wordmark-dark.svg",alt:"profClaw",className:"h-10 transition-transform group-hover/logo:scale-[1.02]"})}),!i&&t.jsx(ae,{variant:"ghost",size:"icon",className:"h-7 w-7 rounded-lg text-[var(--muted-foreground)] hover:text-[var(--foreground)]",onClick:()=>{window.innerWidth<768?u(!1):d(!0)},"aria-label":window.innerWidth<768?"Close sidebar":"Collapse sidebar",children:window.innerWidth<768?t.jsx(Gt,{className:"h-4 w-4"}):t.jsx(Wn,{className:"h-4 w-4"})})]}),t.jsx("div",{className:k("px-2 pb-2",i&&"px-1.5"),children:t.jsxs("button",{onClick:fs,"aria-label":"Search",className:k("flex items-center w-full rounded-lg text-[var(--muted-foreground)] bg-[var(--muted)]/40 hover:bg-[var(--muted)]/60 border border-transparent hover:border-[var(--border)]/50 transition-all",i?"justify-center h-9 w-9 mx-auto":"gap-2 px-2.5 py-2"),children:[t.jsx(Ht,{className:"h-4 w-4 shrink-0","aria-hidden":"true"}),!i&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"flex-1 text-left text-[12px]",children:"Search..."}),t.jsxs("kbd",{className:"hidden sm:flex items-center gap-0.5 text-[10px] opacity-50 font-mono","aria-hidden":"true",children:[t.jsx(pn,{className:"h-2.5 w-2.5"}),"K"]})]})]})}),t.jsxs("nav",{className:k("flex flex-col flex-1 overflow-y-auto py-1",i?"px-1.5":"px-2"),"data-tour":"sidebar-nav",children:[ar.map((b,N)=>t.jsxs("div",{className:k(N>0&&"mt-1"),children:[t.jsx(o1,{label:b.label,collapsed:i,isOpen:y[b.id]??!0,onToggle:()=>P(b.id),itemCount:b.items.length}),(y[b.id]??!0)&&t.jsx("div",{className:"space-y-0.5",children:b.items.map(T=>{const Y=T.href==="/"?s.pathname==="/":s.pathname===T.href||s.pathname.startsWith(T.href+"/");let V;return T.hasBadge==="pending"&&(V=O?.pending),T.hasBadge==="dlq"&&(V=E?.total),t.jsx(n1,{item:T,isActive:Y,collapsed:i,onClick:()=>u(!1),badge:V},T.href)})})]},b.id)),a?.role==="admin"&&t.jsxs("div",{className:"mt-1",children:[t.jsx(o1,{label:lt.label,collapsed:i,isOpen:y[lt.id]??!0,onToggle:()=>P(lt.id),itemCount:lt.items.length}),(y[lt.id]??!0)&&t.jsx("div",{className:"space-y-0.5",children:lt.items.map(b=>t.jsx(n1,{item:b,isActive:s.pathname===b.href,collapsed:i,onClick:()=>u(!1)},b.href))})]})]}),t.jsx("div",{className:k("flex-shrink-0 border-t border-[var(--border)]/30",i?"p-1.5":"p-2"),children:i?t.jsxs("div",{className:"flex flex-col items-center gap-1.5",children:[t.jsxs("button",{onClick:()=>r("/settings/profile"),className:"relative group","aria-label":`View ${a?.name||"User"} profile settings`,children:[a?.avatarUrl?t.jsx("img",{src:a.avatarUrl,alt:a.name||"User avatar",className:"h-8 w-8 rounded-lg ring-1 ring-[var(--border)]/50"}):t.jsx("div",{className:"h-8 w-8 rounded-lg bg-gradient-to-br from-[var(--primary)] to-indigo-500 flex items-center justify-center text-xs font-semibold text-white",children:a?.name?.charAt(0).toUpperCase()||"U"}),t.jsx("div",{className:"pointer-events-none absolute left-full ml-2 top-1/2 -translate-y-1/2 opacity-0 group-hover:opacity-100 px-2 py-1 rounded-lg bg-[var(--popover)] text-[11px] font-medium text-[var(--foreground)] border border-[var(--border)] whitespace-nowrap shadow-lg z-[100] transition-all",children:a?.name||"Profile"})]}),t.jsx(ae,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-lg text-[var(--muted-foreground)]",onClick:()=>d(!1),title:"Expand sidebar",children:t.jsx(Kn,{className:"h-4 w-4"})})]}):t.jsxs(Ut,{children:[t.jsx(qt,{asChild:!0,children:t.jsxs("button",{className:"flex items-center gap-2.5 w-full px-2 py-2 rounded-lg hover:bg-[var(--muted)]/50 transition-colors","aria-label":`Open user menu for ${a?.name||"User"}`,children:[a?.avatarUrl?t.jsx("img",{src:a.avatarUrl,alt:a.name||"User avatar",className:"h-8 w-8 rounded-lg ring-1 ring-[var(--border)]/50"}):t.jsx("div",{className:"h-8 w-8 rounded-lg bg-gradient-to-br from-[var(--primary)] to-indigo-500 flex items-center justify-center text-xs font-semibold text-white",children:a?.name?.charAt(0).toUpperCase()||"U"}),t.jsxs("div",{className:"flex-1 min-w-0 text-left",children:[t.jsx("p",{className:"text-[13px] font-medium truncate",children:a?.name||"Local User"}),t.jsx("p",{className:"text-[10px] text-[var(--muted-foreground)] truncate",children:a?.email||"Local mode"})]}),t.jsx(L1,{className:"h-4 w-4 text-[var(--muted-foreground)] shrink-0","aria-hidden":"true"})]})}),t.jsxs(Wt,{align:"end",side:"top",className:"w-56",children:[t.jsxs(ge,{onClick:()=>r("/settings/profile"),children:[t.jsx(rt,{className:"h-4 w-4 mr-2"}),"Settings"]}),t.jsxs(ge,{onClick:()=>r("/costs"),children:[t.jsx($1,{className:"h-4 w-4 mr-2"}),"Billing & Costs"]}),t.jsx(_e,{}),t.jsxs("div",{className:"px-2 py-1.5 flex items-center justify-between",children:[t.jsx("span",{className:"text-[12px] text-[var(--muted-foreground)]",children:"Theme"}),t.jsx(Ks,{})]}),t.jsx(_e,{}),t.jsxs(ge,{onClick:o,className:"text-[var(--destructive)]",children:[t.jsx(P1,{className:"h-4 w-4 mr-2"}),"Log out"]})]})]})})]})}),t.jsxs("div",{className:k("global-content flex flex-1 flex-col transition-all duration-300",i?"md:pl-[88px]":"md:pl-[272px]"),children:[t.jsx("header",{className:k("global-header sticky top-0 z-40 mx-3 mt-3 mb-0 transition-all duration-300",f&&"mt-0"),children:t.jsxs("div",{className:k("flex h-14 items-center justify-between px-4 transition-all duration-300",f?"glass-heavy rounded-none rounded-b-2xl shadow-xl shadow-black/5":"glass rounded-2xl"),children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(ae,{variant:"ghost",size:"icon",className:"md:hidden rounded-full",onClick:()=>u(!0),"aria-label":"Open sidebar",children:t.jsx(Gn,{className:"h-5 w-5"})}),t.jsxs("div",{className:"hidden md:flex items-center gap-0.5 px-1 py-1 rounded-lg bg-black/5 dark:bg-white/5",children:[t.jsx("button",{onClick:()=>w&&r(-1),disabled:!w,className:k("p-1.5 px-2 rounded-md transition-colors",w?"hover:bg-white/10 text-[var(--muted-foreground)] hover:text-[var(--foreground)]":"text-[var(--muted-foreground)]/30 cursor-not-allowed"),title:"Go back","aria-label":"Go back",children:t.jsx(M1,{className:"h-3.5 w-3.5"})}),t.jsx("div",{className:"w-[1px] h-3 bg-[var(--border)]"}),t.jsx("button",{onClick:()=>p&&r(1),disabled:!p,className:k("p-1.5 px-2 rounded-md transition-colors",p?"hover:bg-white/10 text-[var(--muted-foreground)] hover:text-[var(--foreground)]":"text-[var(--muted-foreground)]/30 cursor-not-allowed"),title:"Go forward","aria-label":"Go forward",children:t.jsx(Bt,{className:"h-3.5 w-3.5"})})]}),t.jsxs("div",{className:"flex flex-col text-left",children:[M.parent?t.jsx(t.Fragment,{children:t.jsxs("div",{className:"flex items-center gap-1.5 text-[11px]",children:[t.jsx(he,{to:M.parentHref,className:"text-[var(--muted-foreground)] hover:text-[var(--foreground)] transition-colors",children:M.parent}),t.jsx(Bt,{className:"h-3 w-3 text-[var(--muted-foreground)]/50"}),t.jsx("span",{className:"font-semibold",children:M.name})]})}):t.jsx("h1",{className:"text-[13px] font-semibold tracking-tight leading-tight",children:M.name}),t.jsxs("div",{className:"hidden sm:flex items-center gap-2 mt-0.5",children:[t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-primary shadow-[0_0_10px_var(--primary-glow)] animate-pulse"}),t.jsx("span",{className:"text-[9px] text-muted-foreground font-black uppercase tracking-widest opacity-80",children:"Orchestrator Active"})]})]})]}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:"hidden md:flex items-center gap-0.5 px-1 py-1 rounded-lg bg-black/5 dark:bg-white/5 mr-2",children:Q0.map(b=>{const N=s.pathname===b.href||b.href!=="/"&&s.pathname.startsWith(b.href);return t.jsxs(he,{to:b.href,title:b.name,className:k("p-2 rounded-xl transition-all relative group",N?"bg-primary text-primary-foreground shadow-[0_0_20px_-5px_var(--primary-glow)] scale-110":"text-muted-foreground hover:bg-primary/15 hover:text-primary hover:scale-105"),children:[t.jsx(b.icon,{className:k("h-4.5 w-4.5 transition-transform group-active:scale-90",N&&"stroke-[2.5px]")}),t.jsx("div",{className:"absolute top-full mt-3 left-1/2 -translate-x-1/2 hidden group-hover:flex items-center px-2.5 py-1.5 rounded-xl glass-heavy text-[9px] font-black uppercase tracking-widest text-foreground shadow-2xl z-50",children:b.name})]},b.href)})}),t.jsx("div",{className:"hidden sm:block h-8 w-[1px] bg-[var(--border)] mx-1"}),t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs("button",{className:"p-2 hover:bg-white/5 rounded-full transition-colors group relative",onClick:fs,"data-tour":"command-palette","aria-label":"Search",children:[t.jsx(Ht,{className:"h-4 w-4 text-[var(--muted-foreground)]","aria-hidden":"true"}),t.jsxs("div",{className:"absolute top-full mt-2 right-0 hidden group-hover:flex items-center gap-1.5 px-2 py-1 rounded-lg bg-black/90 text-[9px] font-bold text-white border border-white/10 whitespace-nowrap shadow-xl z-50",children:[t.jsx("span",{className:"opacity-50",children:"⌘"}),t.jsx("span",{children:"K"})]})]}),t.jsx(W0,{}),t.jsx("div",{"data-tour":"theme-toggle",children:t.jsx(Ks,{})}),t.jsx(Ul,{})]})]})]})}),t.jsx("main",{id:"main-content",className:"flex-1 p-4 sm:p-6 outline-none",tabIndex:-1,children:e}),t.jsx(h.Suspense,{fallback:null,children:t.jsx(K0,{})})]})]})}function X0(){return t.jsxs("div",{className:"animate-pulse space-y-6 p-2",children:[t.jsx("div",{className:"h-8 w-48 rounded-lg bg-muted/60"}),t.jsxs("div",{className:"space-y-3",children:[t.jsx("div",{className:"h-4 w-full rounded bg-muted/40"}),t.jsx("div",{className:"h-4 w-3/4 rounded bg-muted/40"}),t.jsx("div",{className:"h-4 w-1/2 rounded bg-muted/40"})]}),t.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:Array.from({length:6},(e,s)=>t.jsx("div",{className:"h-32 rounded-xl bg-muted/30"},s))})]})}const i1=[{id:"welcome",title:"Welcome"},{id:"github",title:"GitHub OAuth"},{id:"admin",title:"Admin Account"},{id:"complete",title:"Complete"}],Xe=[{label:"At least 8 characters",test:e=>e.length>=8},{label:"Contains a number",test:e=>/\d/.test(e)},{label:"Contains a letter",test:e=>/[a-zA-Z]/.test(e)}];function ec(){const e=De(),[s,r]=h.useState(0),[a,o]=h.useState(!1),[n,l]=h.useState(!1),[u,i]=h.useState(null),[d,f]=h.useState(""),[c,p]=h.useState(""),[x,v]=h.useState(""),[g,y]=h.useState(""),[j,P]=h.useState(""),[O,E]=h.useState([]),[M,w]=h.useState(!1),{data:b,refetch:N}=He({queryKey:["setup","status"],queryFn:async()=>{const $=await fetch("/api/setup/status");if(!$.ok)throw new Error("Failed to check setup status");return $.json()}}),[T,Y]=h.useState(null),[V,X]=h.useState(null),se=Be({mutationFn:async $=>{Y(null),X(null);const Q=await(await fetch("/api/setup/github-oauth/validate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)})).json();if(!Q.valid)throw Y(Q.error||"Invalid credentials"),X(Q.hint||null),new Error(Q.error||"Invalid credentials");Q.warning&&ce.warning(Q.warning);const C=await fetch("/api/setup/github-oauth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)}),S=await C.json();if(!C.ok){if(C.status===403&&S.error?.includes("already configured"))return{alreadyConfigured:!0};throw new Error(S.error||"Failed to save GitHub OAuth config")}return S},onSuccess:$=>{Y(null),X(null),$?.alreadyConfigured?ce.info("GitHub OAuth is already configured"):ce.success("GitHub OAuth configured successfully!"),N(),r(2)},onError:$=>{T||ce.error($ instanceof Error?$.message:"Failed to configure")}}),ie=Be({mutationFn:async $=>{const U=await fetch("/api/setup/admin",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)});if(!U.ok){const Q=await U.json();throw new Error(Q.error||"Failed to create admin")}return U.json()},onSuccess:$=>{ce.success("Admin account created!"),$.recoveryCodes&&E($.recoveryCodes),$.session?.token&&localStorage.setItem("profclaw_session",$.session.token),N(),r(3)},onError:$=>{ce.error($ instanceof Error?$.message:"Failed to create admin")}}),le=typeof window<"u"?`${window.location.origin}/api/auth/github/callback`:"http://localhost:3000/api/auth/github/callback",F=async($,U)=>{await navigator.clipboard.writeText($),i(U),setTimeout(()=>i(null),2e3),ce.success("Copied to clipboard")},K=b?.configured||b?.providers?.github;h.useEffect(()=>{if(!b)return;if(O.length>0&&!M){s!==3&&r(3);return}if(b.ready&&(M||O.length===0)){e("/");return}let $=0;s===0&&($=1),(b.configured||b.providers?.github)&&($=2),(b.configured||b.providers?.github)&&b.hasAdmin&&($=3),$>s&&r($)},[b,e,s,O,M]);const B=()=>{switch(s){case 0:return t.jsxs("div",{className:"space-y-6 text-center py-8",children:[t.jsx("div",{className:"mx-auto w-24 h-24 rounded-[2rem] glass-heavy shadow-2xl flex items-center justify-center transition-transform hover:scale-110",children:t.jsx(Ue,{className:"h-12 w-12 text-[var(--primary)]"})}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"Welcome to profClaw"}),t.jsx("p",{className:"text-[var(--muted-foreground)] max-w-sm mx-auto",children:"Let's get you set up in just a few minutes. We'll configure authentication so you can start managing tasks with AI."})]}),t.jsxs("div",{className:"flex items-center justify-center gap-6 pt-2",children:[t.jsxs("div",{className:"flex items-center gap-2 text-sm text-[var(--muted-foreground)]",children:[t.jsx(Dt,{className:"h-4 w-4 text-green-500"}),t.jsx("span",{children:"Secure setup"})]}),t.jsxs("div",{className:"flex items-center gap-2 text-sm text-[var(--muted-foreground)]",children:[t.jsx(rt,{className:"h-4 w-4 text-[var(--primary)]"}),t.jsx("span",{children:"2-3 minutes"})]})]}),t.jsxs(ae,{onClick:()=>r(1),className:"mt-4 h-11 px-8 gap-2",children:["Get Started ",t.jsx(Ae,{className:"h-4 w-4"})]})]});case 1:return t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx("div",{className:"h-12 w-12 rounded-xl bg-[var(--primary)]/10 flex items-center justify-center",children:t.jsx(js,{className:"h-6 w-6 text-[var(--primary)]"})}),t.jsxs("div",{children:[t.jsx("h2",{className:"text-xl font-bold tracking-tight",children:"Configure GitHub OAuth"}),t.jsx("p",{className:"text-sm text-[var(--muted-foreground)]",children:"Create a GitHub OAuth App to enable sign-in"})]})]}),K&&t.jsxs("div",{className:"flex items-center justify-between gap-4 glass-heavy bg-green-500/5 rounded-[2rem] p-6 shadow-2xl shadow-green-500/5 transition-all hover:shadow-green-500/10",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx("div",{className:"h-12 w-12 rounded-2xl bg-green-500/20 flex items-center justify-center shadow-inner",children:t.jsx(ds,{className:"h-6 w-6 text-green-500 shrink-0"})}),t.jsxs("div",{className:"text-sm",children:[t.jsx("p",{className:"font-black uppercase tracking-widest text-[11px] text-green-600 dark:text-green-400",children:"GitHub Configured"}),t.jsx("p",{className:"text-[var(--muted-foreground)] font-medium",children:"You're all set! Skip to admin creation."})]})]}),t.jsxs(ae,{onClick:()=>r(2),variant:"black",size:"sm",className:"shrink-0 gap-1.5",children:["Skip ",t.jsx(Ae,{className:"h-3.5 w-3.5"})]})]}),t.jsxs("div",{className:"space-y-6 glass-heavy rounded-[2rem] p-6 shadow-xl",children:[t.jsxs("h3",{className:"font-black uppercase tracking-widest text-[10px] flex items-center gap-4 px-1 text-[var(--muted-foreground)]",children:[t.jsx("span",{className:"h-7 w-7 rounded-full field-recessed flex items-center justify-center text-[var(--primary)] text-xs font-black shadow-sm",children:"1"}),"Step One: Create GitHub OAuth App"]}),t.jsxs("div",{className:"space-y-4 ml-9 text-sm",children:[t.jsxs("p",{className:"text-[var(--muted-foreground)] leading-relaxed",children:["Go to"," ",t.jsxs("a",{href:"https://github.com/settings/developers",target:"_blank",rel:"noopener noreferrer",className:"text-[var(--primary)] hover:underline inline-flex items-center gap-1 font-bold",children:["GitHub Developer Settings",t.jsx(T1,{className:"h-3 w-3"})]})," ","and click ",t.jsx("strong",{className:"text-[var(--foreground)]",children:'"New OAuth App"'})]}),t.jsxs("div",{className:"space-y-1 field-recessed p-1 shadow-inner overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between p-3 hover:bg-white/5 dark:hover:bg-black/20 rounded-xl transition-colors",children:[t.jsx("span",{className:"text-[var(--muted-foreground)] font-black uppercase tracking-widest text-[9px]",children:"Application name"}),t.jsx("code",{className:"text-xs font-bold text-[var(--foreground)] px-2 opacity-80",children:"profClaw Task Manager"})]}),t.jsxs("div",{className:"flex items-center justify-between p-3 hover:bg-white/5 dark:hover:bg-black/20 rounded-xl transition-colors",children:[t.jsx("span",{className:"text-[var(--muted-foreground)] font-black uppercase tracking-widest text-[9px]",children:"Homepage URL"}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("code",{className:"text-[11px] font-bold opacity-70",children:window.location.origin}),t.jsx("button",{onClick:()=>F(window.location.origin,"homepage"),className:"p-2 glass hover:bg-primary/20 rounded-xl transition-all active:scale-90",children:u==="homepage"?t.jsx(de,{className:"h-3.5 w-3.5 text-green-500"}):t.jsx(ut,{className:"h-3.5 w-3.5 opacity-50"})})]})]}),t.jsxs("div",{className:"flex items-center justify-between p-3 hover:bg-white/5 dark:hover:bg-black/20 rounded-xl transition-colors",children:[t.jsx("span",{className:"text-[var(--muted-foreground)] font-black uppercase tracking-widest text-[9px]",children:"Callback URL"}),t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("code",{className:"text-[11px] font-bold opacity-70 max-w-[200px] truncate",children:le}),t.jsx("button",{onClick:()=>F(le,"callback"),className:"p-2 glass hover:bg-primary/20 rounded-xl transition-all active:scale-90",children:u==="callback"?t.jsx(de,{className:"h-3.5 w-3.5 text-green-500"}):t.jsx(ut,{className:"h-3.5 w-3.5 opacity-50"})})]})]})]}),t.jsxs("p",{className:"text-[var(--muted-foreground)]",children:["Click ",t.jsx("strong",{children:'"Register application"'})," then copy the Client ID and generate a Client Secret."]})]})]}),t.jsxs("div",{className:"space-y-6",children:[t.jsxs("h3",{className:"font-black uppercase tracking-widest text-[10px] flex items-center gap-4 px-1 text-[var(--muted-foreground)]",children:[t.jsx("span",{className:"h-7 w-7 rounded-full glass-heavy shadow-inner flex items-center justify-center text-[var(--primary)] text-xs font-black",children:"2"}),"Step Two: Enter your credentials"]}),t.jsxs("div",{className:"space-y-4 ml-9",children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx(Ee,{htmlFor:"clientId",className:"premium-label",children:"Client ID"}),t.jsx(Ne,{id:"clientId",placeholder:"20 character hex string",value:d,onChange:$=>{f($.target.value),Y(null)},className:k(T&&"shadow-xl shadow-red-500/20")})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(Ee,{htmlFor:"clientSecret",className:"premium-label",children:"Client Secret"}),t.jsxs("div",{className:"relative",children:[t.jsx(Ne,{id:"clientSecret",type:a?"text":"password",placeholder:"40 character hex string",value:c,onChange:$=>{p($.target.value),Y(null)},className:k(T&&"shadow-xl shadow-red-500/20")}),t.jsx("button",{type:"button",onClick:()=>o(!a),className:"absolute right-4 top-1/2 -translate-y-1/2 text-[var(--muted-foreground)] hover:text-[var(--primary)] transition-colors p-1",children:a?t.jsx(qe,{className:"h-4 w-4"}):t.jsx(We,{className:"h-4 w-4"})})]})]}),T&&t.jsxs("div",{className:"flex items-start gap-4 glass-heavy bg-destructive/5 rounded-2xl p-5 shadow-inner",children:[t.jsx(Ct,{className:"h-6 w-6 text-red-500 shrink-0 mt-0.5"}),t.jsxs("div",{className:"text-sm",children:[t.jsx("p",{className:"font-black uppercase tracking-widest text-[11px] text-red-600 dark:text-red-400",children:"Configuration Error"}),t.jsx("p",{className:"font-bold text-red-500/80 mt-1",children:T}),V&&t.jsx("p",{className:"text-[var(--muted-foreground)] mt-2 font-medium opacity-70",children:V})]})]})]})]}),t.jsxs("div",{className:"flex items-center justify-between pt-8 mt-4 border-t border-white/5 dark:border-white/5",children:[t.jsxs(ae,{variant:"ghost",onClick:()=>r(0),className:"gap-2",children:[t.jsx(Ws,{className:"h-4 w-4"})," Back"]}),t.jsx(ae,{variant:"black",onClick:()=>se.mutate({clientId:d,clientSecret:c}),disabled:!d||!c||se.isPending,className:"gap-2",children:se.isPending?t.jsx(Pe,{className:"h-4 w-4 animate-spin"}):t.jsxs(t.Fragment,{children:["Save & Continue ",t.jsx(Ae,{className:"h-4 w-4"})]})})]})]});case 2:return t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx("div",{className:"h-12 w-12 rounded-xl bg-[var(--primary)]/10 flex items-center justify-center",children:t.jsx(Dt,{className:"h-6 w-6 text-[var(--primary)]"})}),t.jsxs("div",{children:[t.jsx("h2",{className:"text-xl font-bold tracking-tight",children:"Create Admin Account"}),t.jsx("p",{className:"text-sm text-[var(--muted-foreground)]",children:"Set up your administrator account"})]})]}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx(Ee,{htmlFor:"adminName",className:"text-[10px] font-black uppercase tracking-widest text-[var(--muted-foreground)] px-1",children:"Full Name"}),t.jsx(Ne,{id:"adminName",placeholder:"John Doe",value:j,onChange:$=>P($.target.value)})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(Ee,{htmlFor:"adminEmail",className:"text-[10px] font-black uppercase tracking-widest text-[var(--muted-foreground)] px-1",children:"Email"}),t.jsx(Ne,{id:"adminEmail",type:"email",placeholder:"admin@profclaw.ai",value:x,onChange:$=>v($.target.value)})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx(Ee,{htmlFor:"adminPassword",className:"text-[10px] font-black uppercase tracking-widest text-[var(--muted-foreground)] px-1",children:"Password"}),t.jsxs("div",{className:"relative",children:[t.jsx(Ne,{id:"adminPassword",type:n?"text":"password",placeholder:"••••••••",value:g,onChange:$=>y($.target.value)}),t.jsx("button",{type:"button",onClick:()=>l(!n),className:"absolute right-4 top-1/2 -translate-y-1/2 text-[var(--muted-foreground)] hover:text-[var(--primary)] transition-colors",children:n?t.jsx(qe,{className:"h-5 w-5"}):t.jsx(We,{className:"h-5 w-5"})})]}),g.length>0&&t.jsxs("div",{className:"space-y-2 mt-3",children:[t.jsx("div",{className:"h-1.5 bg-[var(--muted)] rounded-full overflow-hidden",children:t.jsx("div",{className:k("h-full transition-all duration-300 rounded-full",Xe.filter($=>$.test(g)).length<2&&"bg-red-500",Xe.filter($=>$.test(g)).length===2&&"bg-yellow-500",Xe.filter($=>$.test(g)).length===3&&"bg-green-500"),style:{width:`${Xe.filter($=>$.test(g)).length/Xe.length*100}%`}})}),t.jsx("div",{className:"grid grid-cols-1 gap-1",children:Xe.map(($,U)=>{const Q=$.test(g);return t.jsxs("div",{className:k("flex items-center gap-2 text-xs transition-all",Q?"text-green-600":"text-[var(--muted-foreground)]"),children:[t.jsx("div",{className:k("h-4 w-4 rounded-full flex items-center justify-center transition-all",Q?"bg-green-500/20":"bg-[var(--muted)]"),children:t.jsx(de,{className:k("h-2.5 w-2.5",Q?"opacity-100":"opacity-0")})}),$.label]},U)})})]})]})]}),t.jsxs("div",{className:"flex items-center justify-between pt-8 mt-4 border-t border-white/5 dark:border-white/5",children:[t.jsxs(ae,{variant:"ghost",onClick:()=>r(1),className:"gap-2",children:[t.jsx(Ws,{className:"h-4 w-4"})," Back"]}),t.jsx(ae,{variant:"black",onClick:()=>ie.mutate({email:x,password:g,name:j}),disabled:!x||!g||!j||!Xe.every($=>$.test(g))||ie.isPending,className:"gap-2",children:ie.isPending?t.jsx(Pe,{className:"h-4 w-4 animate-spin"}):t.jsxs(t.Fragment,{children:["Create Account ",t.jsx(Ae,{className:"h-4 w-4"})]})})]})]});case 3:return t.jsx("div",{className:"space-y-6 py-4",children:O.length>0&&!M?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx("div",{className:"h-12 w-12 rounded-xl bg-amber-500/10 flex items-center justify-center",children:t.jsx(Pn,{className:"h-6 w-6 text-amber-500"})}),t.jsxs("div",{children:[t.jsx("h2",{className:"text-xl font-bold tracking-tight",children:"Save Your Recovery Codes"}),t.jsx("p",{className:"text-sm text-[var(--muted-foreground)]",children:"Store these codes in a safe place"})]})]}),t.jsxs("div",{className:"flex items-start gap-4 glass-heavy bg-amber-500/5 rounded-[2rem] p-6 shadow-xl",children:[t.jsx(Ct,{className:"h-7 w-7 text-amber-500 shrink-0 mt-0.5"}),t.jsxs("div",{className:"text-sm",children:[t.jsx("p",{className:"font-black uppercase tracking-widest text-[11px] text-amber-600 dark:text-amber-400",children:"Single Opportunity - Read Carefuly"}),t.jsx("p",{className:"font-bold text-amber-500/80 mt-1",children:"These codes will only be shown once!"}),t.jsx("p",{className:"text-[var(--muted-foreground)] mt-3 font-medium opacity-70 leading-relaxed text-xs",children:"If you lose your password, you'll need these codes to recover your account. Save them in a secure password manager or write them down."})]})]}),t.jsx("div",{className:"glass-heavy rounded-[2rem] p-6 shadow-inner",children:t.jsx("div",{className:"grid grid-cols-2 gap-3",children:O.map(($,U)=>t.jsxs("div",{className:"flex items-center justify-between glass-heavy rounded-xl px-4 py-3 shadow-sm hover:shadow-md transition-all group",children:[t.jsx("span",{className:"font-black text-[13px] tracking-widest opacity-80",children:$}),t.jsx("button",{onClick:()=>F($,`code-${U}`),className:"p-1.5 glass hover:bg-primary/20 rounded-lg transition-all active:scale-90",children:u===`code-${U}`?t.jsx(de,{className:"h-3.5 w-3.5 text-green-500"}):t.jsx(ut,{className:"h-3.5 w-3.5 opacity-30 group-hover:opacity-100 transition-opacity"})})]},U))})}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 pt-2",children:[t.jsxs(ae,{variant:"outline",className:"flex-1 gap-2",onClick:()=>F(O.join(`
|
|
102
|
+
`),"all-codes"),children:[u==="all-codes"?t.jsx(de,{className:"h-4 w-4 text-green-500"}):t.jsx(ut,{className:"h-4 w-4"}),"Copy All Codes"]}),t.jsxs(ae,{variant:"outline",className:"flex-1 gap-2",onClick:()=>{const $=new Blob([`profClaw Recovery Codes
|
|
103
|
+
`,`=====================
|
|
104
|
+
`,`Account: ${x}
|
|
105
|
+
|
|
106
|
+
`,O.join(`
|
|
107
|
+
`),`
|
|
108
|
+
|
|
109
|
+
Generated: ${new Date().toISOString()}`],{type:"text/plain"}),U=URL.createObjectURL($),Q=document.createElement("a");Q.href=U,Q.download="profclaw-recovery-codes.txt",Q.click(),URL.revokeObjectURL(U),ce.success("Recovery codes downloaded")},children:[t.jsx(jn,{className:"h-4 w-4"}),"Download"]})]}),t.jsxs(ae,{variant:"black",onClick:()=>w(!0),className:"w-full gap-2 mt-2",children:["I've Saved My Recovery Codes ",t.jsx(Ae,{className:"h-4 w-4"})]})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"text-center",children:[t.jsx("div",{className:"mx-auto w-20 h-20 rounded-2xl bg-green-500/10 flex items-center justify-center",children:t.jsx(ds,{className:"h-10 w-10 text-green-500"})}),t.jsxs("div",{className:"space-y-2 mt-6",children:[t.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"Setup Complete!"}),t.jsx("p",{className:"text-[var(--muted-foreground)] max-w-sm mx-auto",children:"profClaw is ready to use. You can now sign in and start managing your tasks."})]})]}),t.jsxs("div",{className:"space-y-4 glass-heavy rounded-[2rem] p-8 text-left shadow-inner",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx("div",{className:"h-8 w-8 rounded-full glass-heavy flex items-center justify-center shadow-inner",children:t.jsx(de,{className:"h-4 w-4 text-green-500"})}),t.jsx("span",{className:"text-[11px] font-black uppercase tracking-[0.2em] text-[var(--muted-foreground)]",children:"GitHub OAuth Active"})]}),t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx("div",{className:"h-8 w-8 rounded-full glass-heavy flex items-center justify-center shadow-inner",children:t.jsx(de,{className:"h-4 w-4 text-green-500"})}),t.jsx("span",{className:"text-[11px] font-black uppercase tracking-[0.2em] text-[var(--muted-foreground)]",children:"Admin Identity Secure"})]}),O.length>0&&t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx("div",{className:"h-8 w-8 rounded-full glass-heavy flex items-center justify-center shadow-inner",children:t.jsx(de,{className:"h-4 w-4 text-green-500"})}),t.jsx("span",{className:"text-[11px] font-black uppercase tracking-[0.2em] text-[var(--muted-foreground)]",children:"Recovery Vault Sealed"})]})]}),t.jsxs(ae,{variant:"black",onClick:()=>e("/"),className:"w-full gap-2",children:["Go to Dashboard ",t.jsx(Ae,{className:"h-4 w-4"})]})]})});default:return null}};return t.jsxs("div",{className:"min-h-screen bg-[var(--background)] flex items-center justify-center p-4",children:[t.jsx("div",{className:"fixed inset-0 bg-gradient-to-br from-[var(--primary)]/5 via-transparent to-pink-500/5 pointer-events-none"}),t.jsxs("div",{className:"w-full max-w-xl relative z-10",children:[t.jsx("div",{className:"flex justify-center mb-10",children:t.jsx("div",{className:"p-6 rounded-[2.5rem] glass-heavy shadow-2xl transition-transform hover:scale-110",children:t.jsx(ze,{className:"h-14 w-14 text-[var(--primary)]"})})}),t.jsx("div",{className:"flex items-center justify-center gap-1 mb-6",children:i1.map(($,U)=>t.jsxs("div",{className:"flex items-center",children:[t.jsxs("div",{className:"flex flex-col items-center",children:[t.jsx("div",{className:k("flex items-center justify-center w-12 h-12 rounded-[1.25rem] transition-all duration-500 border-none shadow-xl",U<s?"bg-primary text-white shadow-primary/30 scale-90 opacity-50":U===s?"glass-heavy text-primary scale-110 ring-4 ring-primary/10 shadow-primary/20":"glass opacity-30 text-[var(--muted-foreground)]"),children:U<s?t.jsx(de,{className:"h-6 w-6"}):t.jsx("span",{className:"text-sm font-black",children:U+1})}),t.jsx("span",{className:k("text-[9px] mt-3 font-black uppercase tracking-[0.15em] transition-all duration-500",U===s?"text-[var(--primary)] scale-105":"text-[var(--muted-foreground)] opacity-40"),children:$.title})]}),U<i1.length-1&&t.jsx("div",{className:k("w-12 h-0.5 mx-2 mb-7 rounded-full transition-all duration-700",U<s?"bg-primary":"bg-[var(--border)]/10")})]},$.id))}),t.jsxs("div",{className:"glass-heavy rounded-[3rem] p-10 shadow-float overflow-hidden relative",children:[t.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-primary/5 via-transparent to-transparent pointer-events-none"}),t.jsx("div",{className:"relative z-10",children:B()})]}),t.jsxs("p",{className:"text-center text-xs text-[var(--muted-foreground)] mt-6",children:["Already have an account?"," ",t.jsx("button",{onClick:()=>e("/login"),className:"text-[var(--primary)] hover:underline font-medium",children:"Sign in"})]})]})]})}function tc(){return t.jsxs("div",{className:"fixed inset-0 overflow-hidden pointer-events-none -z-10",children:[t.jsx("div",{className:"absolute inset-0 bg-[var(--background)]"}),t.jsx("div",{className:"absolute inset-0",style:{background:["radial-gradient(ellipse 90% 70% at 20% 20%, oklch(from #e11d48 l c h / 0.07) 0%, transparent 60%)","radial-gradient(ellipse 80% 60% at 80% 30%, oklch(from #ea580c l c h / 0.05) 0%, transparent 55%)","radial-gradient(ellipse 70% 50% at 50% 80%, oklch(from #fb923c l c h / 0.04) 0%, transparent 50%)","radial-gradient(ellipse 120% 40% at 50% 100%, oklch(from #e11d48 l c h / 0.06) 0%, transparent 40%)"].join(", ")}}),t.jsx("div",{className:"absolute w-[600px] h-[600px] rounded-full opacity-[0.04]",style:{top:"10%",right:"-5%",background:"radial-gradient(circle, #f43f5e 0%, transparent 70%)",animation:"liquid-mesh-drift 30s infinite linear"}}),t.jsxs("svg",{className:"absolute bottom-0 left-0 w-[200%] h-[280px] opacity-[0.08]",style:{animation:"wave-drift-1 25s linear infinite"},viewBox:"0 0 2400 280",preserveAspectRatio:"none",children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"wave1-grad",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[t.jsx("stop",{offset:"0%",stopColor:"#e11d48"}),t.jsx("stop",{offset:"50%",stopColor:"#f43f5e"}),t.jsx("stop",{offset:"100%",stopColor:"#e11d48"})]})}),t.jsx("path",{d:"M0,160 C200,80 400,220 600,140 C800,60 1000,200 1200,160 C1400,120 1600,220 1800,100 C2000,20 2200,200 2400,160 L2400,280 L0,280 Z",fill:"url(#wave1-grad)"})]}),t.jsxs("svg",{className:"absolute bottom-0 left-0 w-[200%] h-[200px] opacity-[0.06]",style:{animation:"wave-drift-2 18s linear infinite"},viewBox:"0 0 2400 200",preserveAspectRatio:"none",children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:"wave2-grad",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[t.jsx("stop",{offset:"0%",stopColor:"#ea580c"}),t.jsx("stop",{offset:"50%",stopColor:"#fb923c"}),t.jsx("stop",{offset:"100%",stopColor:"#ea580c"})]})}),t.jsx("path",{d:"M0,110 C150,160 350,50 600,120 C850,180 1050,70 1200,110 C1350,150 1550,50 1800,100 C2050,150 2250,60 2400,110 L2400,200 L0,200 Z",fill:"url(#wave2-grad)"})]}),t.jsx("svg",{className:"absolute bottom-0 left-0 w-[200%] h-[130px] opacity-[0.04]",style:{animation:"wave-drift-3 12s linear infinite"},viewBox:"0 0 2400 130",preserveAspectRatio:"none",children:t.jsx("path",{d:"M0,70 C300,100 500,30 800,80 C1100,120 1300,40 1600,70 C1900,90 2100,30 2400,70 L2400,130 L0,130 Z",fill:"#fb923c"})})]})}function sc({className:e}){return t.jsx("svg",{viewBox:"0 0 46 32",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Anthropic",children:t.jsx("path",{d:"M32.73 0h-6.945L38.45 32h6.945L32.73 0ZM13.27 0 0 32h7.082l2.79-7.103h13.25l2.79 7.103h7.082L19.727 0h-6.458Zm-.636 18.747 4.323-11.138 4.323 11.138h-8.646Z"})})}function rc({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"OpenAI",children:t.jsx("path",{d:"M22.282 9.821a5.985 5.985 0 0 0-.516-4.91 6.046 6.046 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.985 5.985 0 0 0-3.998 2.9 6.046 6.046 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.051 6.051 0 0 0 6.515 2.9A5.985 5.985 0 0 0 13.26 24a6.056 6.056 0 0 0 5.772-4.206 5.99 5.99 0 0 0 3.997-2.9 6.056 6.056 0 0 0-.747-7.073zM13.26 22.43a4.476 4.476 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.795.795 0 0 0 .392-.681v-6.737l2.02 1.168a.071.071 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494zM3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.771.771 0 0 0 .78 0l5.843-3.369v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646zM2.34 7.896a4.485 4.485 0 0 1 2.366-1.973V11.6a.766.766 0 0 0 .388.677l5.815 3.355-2.02 1.168a.076.076 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855-5.833-3.387L15.119 7.2a.076.076 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.79.79 0 0 0-.407-.667zm2.01-3.023-.141-.085-4.774-2.782a.776.776 0 0 0-.785 0L9.409 9.23V6.897a.066.066 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zm-12.64 4.135-2.02-1.164a.08.08 0 0 1-.038-.057V6.075a4.5 4.5 0 0 1 7.375-3.453l-.142.08L8.704 5.46a.795.795 0 0 0-.393.681zm1.097-2.365 2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5z"})})}function ac({className:e}){return t.jsxs("svg",{viewBox:"0 0 24 24",className:k("h-6 w-6",e),"aria-label":"Google",children:[t.jsx("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"}),t.jsx("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"}),t.jsx("path",{fill:"#FBBC05",d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"}),t.jsx("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"})]})}function oc({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"OpenRouter",children:t.jsx("path",{d:"M16.778 1.844v1.919q-.569-.026-1.138-.032-.708-.008-1.415.037c-1.93.126-4.023.728-6.149 2.237-2.911 2.066-2.731 1.95-4.14 2.75-.396.223-1.342.574-2.185.798-.841.225-1.753.333-1.751.333v4.229s.768.108 1.61.333c.842.224 1.789.575 2.185.799 1.41.798 1.228.683 4.14 2.75 2.126 1.509 4.22 2.11 6.148 2.236.88.058 1.716.041 2.555.005v1.918l7.222-4.168-7.222-4.17v2.176c-.86.038-1.611.065-2.278.021-1.364-.09-2.417-.357-3.979-1.465-2.244-1.593-2.866-2.027-3.68-2.508.889-.518 1.449-.906 3.822-2.59 1.56-1.109 2.614-1.377 3.978-1.466.667-.044 1.418-.017 2.278.02v2.176L24 6.014Z"})})}function nc({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Ollama",children:t.jsx("path",{d:"M16.361 10.26a.894.894 0 0 0-.558.47l-.072.148.001.207c0 .193.004.217.059.353.076.193.152.312.291.448.24.238.51.3.872.205a.86.86 0 0 0 .517-.436.752.752 0 0 0 .08-.498c-.064-.453-.33-.782-.724-.897a1.06 1.06 0 0 0-.466 0zm-9.203.005c-.305.096-.533.32-.65.639a1.187 1.187 0 0 0-.06.52c.057.309.31.59.598.667.362.095.632.033.872-.205.14-.136.215-.255.291-.448.055-.136.059-.16.059-.353l.001-.207-.072-.148a.894.894 0 0 0-.565-.472 1.02 1.02 0 0 0-.474.007Zm4.184 2c-.131.071-.223.25-.195.383.031.143.157.288.353.407.105.063.112.072.117.136.004.038-.01.146-.029.243-.02.094-.036.194-.036.222.002.074.07.195.143.253.064.052.076.054.255.059.164.005.198.001.264-.03.169-.082.212-.234.15-.525-.052-.243-.042-.28.087-.355.137-.08.281-.219.324-.314a.365.365 0 0 0-.175-.48.394.394 0 0 0-.181-.033c-.126 0-.207.03-.355.124l-.085.053-.053-.032c-.219-.13-.259-.145-.391-.143a.396.396 0 0 0-.193.032zm.39-2.195c-.373.036-.475.05-.654.086-.291.06-.68.195-.951.328-.94.46-1.589 1.226-1.787 2.114-.04.176-.045.234-.045.53 0 .294.005.357.043.524.264 1.16 1.332 2.017 2.714 2.173.3.033 1.596.033 1.896 0 1.11-.125 2.064-.727 2.493-1.571.114-.226.169-.372.22-.602.039-.167.044-.23.044-.523 0-.297-.005-.355-.045-.531-.288-1.29-1.539-2.304-3.072-2.497a6.873 6.873 0 0 0-.855-.031zm.645.937a3.283 3.283 0 0 1 1.44.514c.223.148.537.458.671.662.166.251.26.508.303.82.02.143.01.251-.043.482-.08.345-.332.705-.672.957a3.115 3.115 0 0 1-.689.348c-.382.122-.632.144-1.525.138-.582-.006-.686-.01-.853-.042-.57-.107-1.022-.334-1.35-.68-.264-.28-.385-.535-.45-.946-.03-.192.025-.509.137-.776.136-.326.488-.73.836-.963.403-.269.934-.46 1.422-.512.187-.02.586-.02.773-.002zm-5.503-11a1.653 1.653 0 0 0-.683.298C5.617.74 5.173 1.666 4.985 2.819c-.07.436-.119 1.04-.119 1.503 0 .544.064 1.24.155 1.721.02.107.031.202.023.208a8.12 8.12 0 0 1-.187.152 5.324 5.324 0 0 0-.949 1.02 5.49 5.49 0 0 0-.94 2.339 6.625 6.625 0 0 0-.023 1.357c.091.78.325 1.438.727 2.04l.13.195-.037.064c-.269.452-.498 1.105-.605 1.732-.084.496-.095.629-.095 1.294 0 .67.009.803.088 1.266.095.555.288 1.143.503 1.534.071.128.243.393.264.407.007.003-.014.067-.046.141a7.405 7.405 0 0 0-.548 1.873c-.062.417-.071.552-.071.991 0 .56.031.832.148 1.279L3.42 24h1.478l-.05-.091c-.297-.552-.325-1.575-.068-2.597.117-.472.25-.819.498-1.296l.148-.29v-.177c0-.165-.003-.184-.057-.293a.915.915 0 0 0-.194-.25 1.74 1.74 0 0 1-.385-.543c-.424-.92-.506-2.286-.208-3.451.124-.486.329-.918.544-1.154a.787.787 0 0 0 .223-.531c0-.195-.07-.355-.224-.522a3.136 3.136 0 0 1-.817-1.729c-.14-.96.114-2.005.69-2.834.563-.814 1.353-1.336 2.237-1.475.199-.033.57-.028.776.01.226.04.367.028.512-.041.179-.085.268-.19.374-.431.093-.215.165-.333.36-.576.234-.29.46-.489.822-.729.413-.27.884-.467 1.352-.561.17-.035.25-.04.569-.04.319 0 .398.005.569.04a4.07 4.07 0 0 1 1.914.997c.117.109.398.457.488.602.034.057.095.177.132.267.105.241.195.346.374.43.14.068.286.082.503.045.343-.058.607-.053.943.016 1.144.23 2.14 1.173 2.581 2.437.385 1.108.276 2.267-.296 3.153-.097.15-.193.27-.333.419-.301.322-.301.722-.001 1.053.493.539.801 1.866.708 3.036-.062.772-.26 1.463-.533 1.854a2.096 2.096 0 0 1-.224.258.916.916 0 0 0-.194.25c-.054.109-.057.128-.057.293v.178l.148.29c.248.476.38.823.498 1.295.253 1.008.231 2.01-.059 2.581a.845.845 0 0 0-.044.098c0 .006.329.009.732.009h.73l.02-.074.036-.134c.019-.076.057-.3.088-.516.029-.217.029-1.016 0-1.258-.11-.875-.295-1.57-.597-2.226-.032-.074-.053-.138-.046-.141.008-.005.057-.074.108-.152.376-.569.607-1.284.724-2.228.031-.26.031-1.378 0-1.628-.083-.645-.182-1.082-.348-1.525a6.083 6.083 0 0 0-.329-.7l-.038-.064.131-.194c.402-.604.636-1.262.727-2.04a6.625 6.625 0 0 0-.024-1.358 5.512 5.512 0 0 0-.939-2.339 5.325 5.325 0 0 0-.95-1.02 8.097 8.097 0 0 1-.186-.152.692.692 0 0 1 .023-.208c.208-1.087.201-2.443-.017-3.503-.19-.924-.535-1.658-.98-2.082-.354-.338-.716-.482-1.15-.455-.996.059-1.8 1.205-2.116 3.01a6.805 6.805 0 0 0-.097.726c0 .036-.007.066-.015.066a.96.96 0 0 1-.149-.078A4.857 4.857 0 0 0 12 3.03c-.832 0-1.687.243-2.456.698a.958.958 0 0 1-.148.078c-.008 0-.015-.03-.015-.066a6.71 6.71 0 0 0-.097-.725C8.997 1.392 8.337.319 7.46.048a2.096 2.096 0 0 0-.585-.041Zm.293 1.402c.248.197.523.759.682 1.388.03.113.06.244.069.292.007.047.026.152.041.233.067.365.098.76.102 1.24l.002.475-.12.175-.118.178h-.278c-.324 0-.646.041-.954.124l-.238.06c-.033.007-.038-.003-.057-.144a8.438 8.438 0 0 1 .016-2.323c.124-.788.413-1.501.696-1.711.067-.05.079-.049.157.013zm9.825-.012c.17.126.358.46.498.888.28.854.36 2.028.212 3.145-.019.14-.024.151-.057.144l-.238-.06a3.693 3.693 0 0 0-.954-.124h-.278l-.119-.178-.119-.175.002-.474c.004-.669.066-1.19.214-1.772.157-.623.434-1.185.68-1.382.078-.062.09-.063.159-.012z"})})}function ic({className:e}){return t.jsx("svg",{viewBox:"0 0 16 16",className:k("h-6 w-6",e),"aria-label":"Azure",children:t.jsx("path",{fill:"#00ABEC",d:"M3.65 14.2H16L9.35 2.68 7.33 8.24l3.88 4.63-7.56 1.33zM8.82 1.8L4.07 5.79 0 12.84h3.67v.01L8.82 1.8z"})})}function lc({className:e}){return t.jsx("svg",{viewBox:"0 0 210 305",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Groq",children:t.jsx("path",{d:"M105.3 0C47.7-.5.5 45.8 0 103.4c-.5 57.6 45.8 104.8 103.4 105.3h36.2v-39.1h-34.3c-36 .4-65.6-28.4-66-64.5-.4-36.1 28.4-65.6 64.5-66h1.5c36 0 65.2 29.2 65.4 65.2v96.1c0 35.7-29.1 64.8-64.7 65.2-17.1-.1-33.4-7-45.4-19.1l-27.7 27.7c19.2 19.3 45.2 30.3 72.4 30.5h1.4c56.9-.8 102.6-47 102.9-103.9v-99.1C208.2 45.2 161.9.1 105.3 0Z"})})}function cc({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"xAI",children:t.jsx("path",{d:"M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z"})})}function dc({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Perplexity",children:t.jsx("path",{d:"M22.3977 7.0896h-2.3106V.0676l-7.5094 6.3542V.1577h-1.1554v6.1966L4.4904 0v7.0896H1.6023v10.3976h2.8882V24l6.932-6.3591v6.2005h1.1554v-6.0469l6.9318 6.1807v-6.4879h2.8882V7.0896zm-3.4657-4.531v4.531h-5.355l5.355-4.531zm-13.2862.0676 4.8691 4.4634H5.6458V2.6262zM2.7576 16.332V8.245h7.8476l-6.1149 6.1147v1.9723H2.7576zm2.8882 5.0404v-3.8852h.0001v-2.6488l5.7763-5.7764v7.0111l-5.7764 5.2993zm12.7086.0248-5.7766-5.1509V9.0618l5.7766 5.7766v6.5588zm2.8882-5.0652h-1.733v-1.9723L13.3948 8.245h7.8478v8.087z"})})}function uc({className:e}){return t.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Mistral",children:[t.jsx("rect",{x:"1",y:"3",width:"5",height:"5",fill:"#F7D046"}),t.jsx("rect",{x:"9.5",y:"3",width:"5",height:"5",fill:"#F7D046"}),t.jsx("rect",{x:"18",y:"3",width:"5",height:"5",fill:"#F7D046"}),t.jsx("rect",{x:"1",y:"8",width:"5",height:"5",fill:"#F2A73B"}),t.jsx("rect",{x:"5.5",y:"8",width:"5",height:"5",fill:"#F2A73B"}),t.jsx("rect",{x:"13",y:"8",width:"5",height:"5",fill:"#F2A73B"}),t.jsx("rect",{x:"18",y:"8",width:"5",height:"5",fill:"#F2A73B"}),t.jsx("rect",{x:"1",y:"13",width:"5",height:"5",fill:"#EE792F"}),t.jsx("rect",{x:"9.5",y:"13",width:"5",height:"5",fill:"#EE792F"}),t.jsx("rect",{x:"18",y:"13",width:"5",height:"5",fill:"#EE792F"}),t.jsx("rect",{x:"1",y:"16",width:"5",height:"5",fill:"currentColor"}),t.jsx("rect",{x:"18",y:"16",width:"5",height:"5",fill:"currentColor"})]})}function hc({className:e}){return t.jsxs("svg",{viewBox:"0 0 75 75",className:k("h-6 w-6",e),"aria-label":"Cohere",children:[t.jsx("path",{d:"M24.3 44.7c2 0 6-.1 11.6-2.4 6.5-2.7 19.3-7.5 28.6-12.5 6.5-3.5 9.3-8.1 9.3-14.3C73.8 7 66.9 0 58.3 0h-36C10 0 0 10 0 22.3s9.4 22.4 24.3 22.4z",fill:"#39594d",fillRule:"evenodd",clipRule:"evenodd"}),t.jsx("path",{d:"M30.4 60c0-6 3.6-11.5 9.2-13.8l11.3-4.7C62.4 36.8 75 45.2 75 57.6 75 67.2 67.2 75 57.6 75H45.3c-8.2 0-14.9-6.7-14.9-15z",fill:"#d18ee2",fillRule:"evenodd",clipRule:"evenodd"}),t.jsx("path",{d:"M12.9 47.6C5.8 47.6 0 53.4 0 60.5v1.7C0 69.2 5.8 75 12.9 75c7.1 0 12.9-5.8 12.9-12.9v-1.7c-.1-7-5.8-12.8-12.9-12.8z",fill:"#ff7759"})]})}function mc({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",className:k("h-6 w-6",e),"aria-label":"DeepSeek",children:t.jsx("path",{fill:"#4D6BFE",d:"M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 0 1-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 0 0-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 0 1-.465.137 9.597 9.597 0 0 0-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 0 0 1.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 0 1 1.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 0 1 .415-.287.302.302 0 0 1 .2.288.306.306 0 0 1-.31.307.303.303 0 0 1-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 0 1-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 0 1 .016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 0 1-.254-.078.253.253 0 0 1-.114-.358c.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z"})})}function pc({className:e}){return t.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Together AI",children:[t.jsx("path",{d:"M17.385 11.23a4.615 4.615 0 100-9.23 4.615 4.615 0 000 9.23zm0 10.77a4.615 4.615 0 100-9.23 4.615 4.615 0 000 9.23zm-10.77 0a4.615 4.615 0 100-9.23 4.615 4.615 0 000 9.23z",opacity:".2"}),t.jsx("circle",{cx:"6.615",cy:"6.615",r:"4.615"})]})}function fc({className:e}){return t.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",className:k("h-6 w-6",e),"aria-label":"Cerebras",children:[t.jsx("path",{d:"M14.121 2.701a9.299 9.299 0 000 18.598V22.7c-5.91 0-10.7-4.791-10.7-10.701S8.21 1.299 14.12 1.299V2.7zm4.752 3.677A7.353 7.353 0 109.42 17.643l-.901 1.074a8.754 8.754 0 01-1.08-12.334 8.755 8.755 0 0112.335-1.08l-.901 1.075zm-2.255.844a5.407 5.407 0 00-5.048 9.563l-.656 1.24a6.81 6.81 0 016.358-12.043l-.654 1.24zM14.12 8.539a3.46 3.46 0 100 6.922v1.402a4.863 4.863 0 010-9.726v1.402z"}),t.jsx("path",{d:"M15.407 10.836a2.24 2.24 0 00-.51-.409 1.084 1.084 0 00-.544-.152c-.255 0-.483.047-.684.14a1.58 1.58 0 00-.84.912c-.074.203-.11.416-.11.631 0 .218.036.43.11.631a1.594 1.594 0 00.84.913c.2.093.43.14.684.14.216 0 .417-.046.602-.135.188-.09.35-.225.475-.392l.928 1.006c-.14.14-.3.261-.482.363a3.367 3.367 0 01-1.083.38c-.17.026-.317.04-.44.04a3.315 3.315 0 01-1.182-.21 2.825 2.825 0 01-.961-.597 2.816 2.816 0 01-.644-.929 2.987 2.987 0 01-.238-1.21c0-.444.08-.847.238-1.21.15-.35.368-.666.643-.929.278-.261.605-.464.962-.596a3.315 3.315 0 011.182-.21c.355 0 .712.068 1.072.204.361.138.685.36.944.649l-.962.97z"})]})}function xc({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",className:k("h-6 w-6",e),"aria-label":"Fireworks",children:t.jsx("path",{d:"M14.8 5l-2.801 6.795L9.195 5H7.397l3.072 7.428a1.64 1.64 0 003.038.002L16.598 5H14.8zm1.196 10.352l5.124-5.244-.699-1.669-5.596 5.739a1.664 1.664 0 00-.343 1.807 1.642 1.642 0 001.516 1.012L16 17l8-.02-.699-1.669-7.303.041h-.002zM2.88 10.104l.699-1.669 5.596 5.739c.468.479.603 1.189.343 1.807a1.643 1.643 0 01-1.516 1.012l-8-.018-.002.002.699-1.669 7.303.042-5.122-5.246z"})})}function gc({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"GitHub Copilot",children:t.jsx("path",{d:"M23.922 16.997C23.061 18.492 18.063 22.02 12 22.02 5.937 22.02.939 18.492.078 16.997A.641.641 0 0 1 0 16.741v-2.869a.883.883 0 0 1 .053-.22c.372-.935 1.347-2.292 2.605-2.656.167-.429.414-1.055.644-1.517a10.098 10.098 0 0 1-.052-1.086c0-1.331.282-2.499 1.132-3.368.397-.406.89-.717 1.474-.952C7.255 2.937 9.248 1.98 11.978 1.98c2.731 0 4.767.957 6.166 2.093.584.235 1.077.546 1.474.952.85.869 1.132 2.037 1.132 3.368 0 .368-.014.733-.052 1.086.23.462.477 1.088.644 1.517 1.258.364 2.233 1.721 2.605 2.656a.841.841 0 0 1 .053.22v2.869a.641.641 0 0 1-.078.256Zm-11.75-5.992h-.344a4.359 4.359 0 0 1-.355.508c-.77.947-1.918 1.492-3.508 1.492-1.725 0-2.989-.359-3.782-1.259a2.137 2.137 0 0 1-.085-.104L4 11.746v6.585c1.435.779 4.514 2.179 8 2.179 3.486 0 6.565-1.4 8-2.179v-6.585l-.098-.104s-.033.045-.085.104c-.793.9-2.057 1.259-3.782 1.259-1.59 0-2.738-.545-3.508-1.492a4.359 4.359 0 0 1-.355-.508Zm2.328 3.25c.549 0 1 .451 1 1v2c0 .549-.451 1-1 1-.549 0-1-.451-1-1v-2c0-.549.451-1 1-1Zm-5 0c.549 0 1 .451 1 1v2c0 .549-.451 1-1 1-.549 0-1-.451-1-1v-2c0-.549.451-1 1-1Zm3.313-6.185c.136 1.057.403 1.913.878 2.497.442.544 1.134.938 2.344.938 1.573 0 2.292-.337 2.657-.751.384-.435.558-1.15.558-2.361 0-1.14-.243-1.847-.705-2.319-.477-.488-1.319-.862-2.824-1.025-1.487-.161-2.192.138-2.533.529-.269.307-.437.808-.438 1.578v.021c0 .265.021.562.063.893Zm-1.626 0c.042-.331.063-.628.063-.894v-.02c-.001-.77-.169-1.271-.438-1.578-.341-.391-1.046-.69-2.533-.529-1.505.163-2.347.537-2.824 1.025-.462.472-.705 1.179-.705 2.319 0 1.211.175 1.926.558 2.361.365.414 1.084.751 2.657.751 1.21 0 1.902-.394 2.344-.938.475-.584.742-1.44.878-2.497Z"})})}function g4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"AWS Bedrock",children:t.jsx("path",{d:"M12 2L2 7v10l10 5 10-5V7L12 2zm0 2.18l7.12 3.56L12 11.3 4.88 7.74 12 4.18zM4 8.96l7 3.5v7.58l-7-3.5V8.96zm9 11.08V12.46l7-3.5v7.58l-7 3.5z"})})}function v4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Zhipu AI",children:t.jsx("path",{d:"M4 4h16v3.2H9.6L20 17.6V20H4v-3.2h10.4L4 6.4V4z"})})}function y4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Moonshot AI",children:t.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10c1.82 0 3.53-.49 5-1.35-1.59-1.34-2.6-3.34-2.6-5.58 0-3.87 3.01-7.02 6.8-7.26A9.96 9.96 0 0 0 12 2z"})})}function b4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Qwen",children:t.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 17c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7zm2-4l3 3-1.41 1.41L12 15.83l-1.59 1.58L9 16l3-3z"})})}function w4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Replicate",children:t.jsx("path",{d:"M.672 0v24H4.77V8.295h13.236V4.2H4.77V0zm18.46 8.295v4.098H5.896v3.762h13.236v4.058H5.896V24h18.108V8.295z"})})}function j4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"GitHub Models",children:t.jsx("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})})}function C4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Volcengine",children:t.jsx("path",{d:"M12 2L3 7.5v9L12 22l9-5.5v-9L12 2zm0 2.5l6.5 4v7.5L12 19.5 5.5 16V8.5L12 4.5z"})})}function k4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Qianfan",children:t.jsx("path",{d:"M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z"})})}function N4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Minimax",children:t.jsx("path",{d:"M2 4h4v16H2V4zm5 0h3l3 8 3-8h3v16h-4V11l-2 5h-2l-2-5v9H7V4z"})})}function S4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"HuggingFace",children:t.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5v-3l-2 1v-5l2 1V7.5l4 2v1l2-1v5l-2-1v3l-4-2z"})})}function L4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"NVIDIA NIM",children:t.jsx("path",{d:"M4 3h2.5l7 12V3H16v18h-2.5L6.5 9v12H4V3zm11 0h5v2h-3v5h3v2h-3v7h-2V3z"})})}function M4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Venice AI",children:t.jsx("path",{d:"M2 14c1.5 0 2.5-1 4-1s2.5 1 4 1 2.5-1 4-1 2.5 1 4 1v2c-1.5 0-2.5-1-4-1s-2.5 1-4 1-2.5-1-4-1-2.5 1-4 1v-2zm2-7l2 3h2L5 6l6 8h2L7 5h3l4 9h2l-5-11H4v1l.2-.7L4 7z"})})}function A4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Kilocode",children:t.jsx("path",{d:"M8 3L4 12l4 9H6L2 12l4-9h2zm8 0h2l4 9-4 9h-2l4-9-4-9zm-4 4l-2 5 2 5h-2l-2-5 2-5h2z"})})}function E4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Vercel AI",children:t.jsx("path",{d:"M24 22.525H0L12.508 1.375z"})})}function $4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Cloudflare AI",children:t.jsx("path",{fill:"#F38020",d:"M16.5 14.5c.2-.7.1-1.3-.2-1.8-.3-.4-.8-.7-1.4-.8l-7.3-.1c-.1 0-.1 0-.2-.1 0-.1 0-.1.1-.2.2-.4.7-.7 1.2-.7h.1c.4-1.8 1.9-3.1 3.8-3.1 1.5 0 2.8.8 3.5 2 .2 0 .4-.1.6-.1 1.4 0 2.5 1.1 2.5 2.5 0 .2 0 .3-.1.5h.2c1.1 0 2 .9 2 2s-.9 2-2 2H8c-1.4 0-2.5-1.1-2.5-2.5 0-1.3 1-2.4 2.3-2.5l8.7.9z"})})}function T4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"IBM Watsonx",children:t.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.93 0 3.68.79 4.95 2.05L5.05 16.95A6.973 6.973 0 0 1 5 15c0-3.87 3.13-7 7-7zm0 14c-1.93 0-3.68-.79-4.95-2.05l11.9-11.9C18.21 6.32 19 8.07 19 10c0 3.87-3.13 7-7 7z"})})}function _4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"BytePlus",children:t.jsx("path",{d:"M4 3h7.5c2.5 0 4 1.2 4 3.2 0 1.3-.7 2.3-1.8 2.8 1.4.4 2.3 1.6 2.3 3.1C16 14.5 14.3 16 11.5 16H4V3zm3 2.5v3h3.5c1 0 1.5-.6 1.5-1.5S11.5 5.5 10.5 5.5H7zm0 5.5v3.5h4c1.1 0 1.7-.7 1.7-1.75S12.1 11 11 11H7zm9 3l2 2-2 2h2l2-2-2-2h-2z"})})}function P4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Xiaomi",children:t.jsx("path",{d:"M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zm2 4v8h2V8H6zm4 0v8h2v-5l3 5h2V8h-2v5l-3-5h-2z"})})}function z4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"ModelStudio",children:t.jsx("path",{d:"M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"})})}function O4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Telegram",children:t.jsx("path",{d:"M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z"})})}function I4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Discord",children:t.jsx("path",{d:"M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"})})}function R4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"WhatsApp",children:t.jsx("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z"})})}function B4({className:e}){return t.jsxs("svg",{viewBox:"0 0 24 24",className:k("h-6 w-6",e),"aria-label":"Slack",children:[t.jsx("path",{fill:"#E01E5A",d:"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313z"}),t.jsx("path",{fill:"#36C5F0",d:"M8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312z"}),t.jsx("path",{fill:"#2EB67D",d:"M18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312z"}),t.jsx("path",{fill:"#ECB22E",d:"M15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"})]})}function H4({className:e}){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Matrix",children:t.jsx("path",{d:"M.632.55v22.9H2.28V24H0V0h2.28v.55zm7.043 7.26v1.157h.033c.309-.443.683-.784 1.117-1.024.434-.24.927-.36 1.484-.36.544 0 1.032.104 1.468.313.436.209.765.61.989 1.204.308-.507.703-.895 1.185-1.164.483-.27 1.017-.404 1.598-.404.435 0 .842.06 1.218.18.375.121.693.31.952.57.259.259.46.588.601.987.142.399.214.87.214 1.413v6.163h-2.214v-5.269c0-.318-.012-.616-.036-.894-.023-.278-.09-.524-.197-.739a1.11 1.11 0 0 0-.432-.499c-.196-.125-.463-.187-.799-.187-.339 0-.616.073-.831.22-.216.148-.383.34-.497.581a2.37 2.37 0 0 0-.233.762c-.036.284-.054.571-.054.862v5.163h-2.212v-5.269c0-.291-.007-.574-.024-.851-.014-.277-.07-.524-.167-.743-.094-.219-.244-.394-.451-.527-.206-.134-.5-.201-.882-.201-.115 0-.259.03-.432.088-.174.058-.343.17-.508.337-.166.166-.31.406-.432.717-.122.312-.183.725-.183 1.24v5.009h-2.212V7.81zm17.042 14.94V.55h1.648V0H24v24h-2.635v-.55z"})})}function D4({className:e}){return t.jsxs("svg",{viewBox:"0 0 24 24",className:k("h-6 w-6",e),"aria-label":"Google Chat",children:[t.jsx("path",{fill:"#00AC47",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10z",opacity:"0.2"}),t.jsx("path",{fill:"#00AC47",d:"M12.7 15.3H8.3c-.7 0-1.3-.6-1.3-1.3V9.6L3.1 6.4c-.2-.1-.1-.4.1-.4h13.5c.7 0 1.3.6 1.3 1.3V14c0 .7-.6 1.3-1.3 1.3z"}),t.jsx("path",{fill:"#00832D",d:"M12.7 15.3h4c.7 0 1.3-.6 1.3-1.3V7.3c0-.7-.6-1.3-1.3-1.3h-4v9.3z"}),t.jsx("path",{fill:"#2684FC",d:"M7 15.3V9.6l-3.9-3.2c-.2-.1-.1-.4.1-.4H7v9.3z"}),t.jsx("path",{fill:"#0066DA",d:"M12.7 6h-5.7v3.6l5.7 4.5V6z"})]})}function V4({className:e}){return t.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",className:k("h-6 w-6",e),"aria-label":"Microsoft Teams",children:[t.jsx("path",{d:"M20.625 8.5h-3.75c-.345 0-.625.28-.625.625v6.25c0 .69.56 1.25 1.25 1.25h5c.69 0 1.25-.56 1.25-1.25v-4.375c0-1.38-1.12-2.5-2.5-2.5z",fill:"#5059C9",opacity:"0.7"}),t.jsx("circle",{cx:"19.5",cy:"5.5",r:"2",fill:"#5059C9",opacity:"0.7"}),t.jsx("circle",{cx:"14",cy:"4.5",r:"2.5",fill:"#7B83EB"}),t.jsx("path",{d:"M17.5 8.5H9.125C8.504 8.5 8 9.004 8 9.625V17c0 2.21 1.79 4 4 4s4-1.79 4-4v-1h1.5c.828 0 1.5-.672 1.5-1.5v-4.5c0-.828-.672-1.5-1.5-1.5z",fill:"#7B83EB"}),t.jsx("path",{d:"M13.5 8.5H8v8.5c0 2.21 1.79 4 4 4 .53 0 1.036-.104 1.5-.293V9.625c0-.621-.504-1.125-1.125-1.125H13.5z",fill:"#4B53BC"})]})}const is=8,yt=[{id:"anthropic",name:"Anthropic",desc:"Claude",color:"#cc785c",Logo:sc,keyPlaceholder:"sk-ant-...",keyUrl:"https://console.anthropic.com/"},{id:"openai",name:"OpenAI",desc:"GPT & o-series",color:"#10a37f",Logo:rc,keyPlaceholder:"sk-...",keyUrl:"https://platform.openai.com/api-keys"},{id:"google",name:"Google",desc:"Gemini",color:"#4285F4",Logo:ac,keyPlaceholder:"AIza...",keyUrl:"https://aistudio.google.com/apikey"},{id:"groq",name:"Groq",desc:"Ultra-fast",color:"#f55036",Logo:lc,keyPlaceholder:"gsk_...",keyUrl:"https://console.groq.com/keys"},{id:"openrouter",name:"OpenRouter",desc:"Multi-provider",color:"#6366f1",Logo:oc,keyPlaceholder:"sk-or-...",keyUrl:"https://openrouter.ai/keys"},{id:"xai",name:"xAI",desc:"Grok",color:"#1d9bf0",Logo:cc,keyPlaceholder:"xai-...",keyUrl:"https://console.x.ai/"},{id:"deepseek",name:"DeepSeek",desc:"R1 & V3",color:"#4d6bfe",Logo:mc,keyPlaceholder:"sk-...",keyUrl:"https://platform.deepseek.com/api_keys"},{id:"ollama",name:"Ollama",desc:"Local models",color:"#808080",Logo:nc,needsUrl:!0,keyUrl:"https://ollama.com/"},{id:"mistral",name:"Mistral",desc:"Mixtral",color:"#ee792f",Logo:uc,keyUrl:"https://console.mistral.ai/api-keys"},{id:"azure",name:"Azure",desc:"Azure OpenAI",color:"#00abec",Logo:ic,keyUrl:"https://portal.azure.com/"},{id:"perplexity",name:"Perplexity",desc:"Online LLMs",color:"#20808d",Logo:dc,keyPlaceholder:"pplx-...",keyUrl:"https://www.perplexity.ai/settings/api"},{id:"together",name:"Together",desc:"Open-source",color:"#6366f1",Logo:pc,keyUrl:"https://api.together.xyz/settings/api-keys"},{id:"cohere",name:"Cohere",desc:"Command",color:"#39594d",Logo:hc,keyUrl:"https://dashboard.cohere.com/api-keys"},{id:"fireworks",name:"Fireworks",desc:"Fast inference",color:"#ff6b35",Logo:xc,keyPlaceholder:"fw_...",keyUrl:"https://fireworks.ai/api-keys"},{id:"cerebras",name:"Cerebras",desc:"Wafer-scale",color:"#f15a29",Logo:fc,keyPlaceholder:"csk-...",keyUrl:"https://cloud.cerebras.ai/"},{id:"copilot",name:"Copilot",desc:"GitHub proxy",color:"#6e40c9",Logo:gc,keyUrl:"https://github.com/settings/copilot"}];function vc({data:e,onUpdate:s,path:r,onPathChange:a}){const{resolvedTheme:o}=Nt(),n=o==="light"?"/brand/profclaw-wordmark-light.svg":"/brand/profclaw-wordmark-dark.svg";return t.jsx("div",{style:{animation:"oobe-fade-in 0.5s ease-out"},children:t.jsxs("div",{className:"grid md:grid-cols-2 gap-10 items-center",children:[t.jsxs("div",{className:"space-y-4 text-center md:text-left",children:[t.jsx("img",{src:n,alt:"profClaw",className:"h-20 mx-auto md:mx-0 drop-shadow-lg"}),t.jsx("h2",{className:"text-2xl font-bold tracking-tight font-heading heading-brand-glow",children:"Welcome to profClaw"}),t.jsxs("p",{className:"text-[var(--muted-foreground)] text-[15px] leading-relaxed",children:["Your AI agent engine, running locally on your machine.",t.jsx("br",{}),t.jsx("span",{className:"text-[var(--muted-foreground)]/70",children:"Private. Fast. Yours."})]})]}),t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"space-y-2.5",children:[t.jsx("label",{className:"text-xs font-semibold uppercase tracking-wider text-[var(--muted-foreground)]",children:"What should we call you?"}),t.jsx("input",{type:"text",className:"field-lg w-full text-base",placeholder:"Your name",value:e.name,onChange:l=>s({name:l.target.value}),autoFocus:!0})]}),t.jsxs("div",{className:"space-y-3",children:[t.jsx("label",{className:"text-xs font-semibold uppercase tracking-wider text-[var(--muted-foreground)]",children:"Setup experience"}),t.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[t.jsxs("button",{type:"button",onClick:()=>a("quick"),className:`group relative p-5 rounded-2xl text-left transition-all duration-300 ${r==="quick"?"glass-heavy brand-ring shadow-elevated":"glass hover:shadow-elevated hover:translate-y-[-2px]"}`,children:[t.jsx("div",{className:`w-8 h-8 rounded-xl flex items-center justify-center mb-3 ${r==="quick"?"bg-gradient-to-br from-[#f43f5e]/20 to-[#ea580c]/10":"bg-[var(--muted)]/50"}`,children:t.jsx(Ns,{className:`h-4 w-4 ${r==="quick"?"text-[#f43f5e]":"text-[var(--muted-foreground)]"}`})}),t.jsx("div",{className:"font-semibold text-sm",children:"Quick Setup"}),t.jsx("div",{className:"text-xs text-[var(--muted-foreground)] mt-1 leading-relaxed",children:"2 steps. Name + AI key."})]}),t.jsxs("button",{type:"button",onClick:()=>a("guided"),className:`group relative p-5 rounded-2xl text-left transition-all duration-300 ${r==="guided"?"glass-heavy brand-ring shadow-elevated":"glass hover:shadow-elevated hover:translate-y-[-2px]"}`,children:[t.jsx("div",{className:`w-8 h-8 rounded-xl flex items-center justify-center mb-3 ${r==="guided"?"bg-gradient-to-br from-[#f43f5e]/20 to-[#ea580c]/10":"bg-[var(--muted)]/50"}`,children:t.jsx(xn,{className:`h-4 w-4 ${r==="guided"?"text-[#f43f5e]":"text-[var(--muted-foreground)]"}`})}),t.jsx("div",{className:"font-semibold text-sm",children:"Guided Setup"}),t.jsx("div",{className:"text-xs text-[var(--muted-foreground)] mt-1 leading-relaxed",children:"5 steps. GitHub, security."})]})]})]})]})]})})}function yc({data:e,onUpdate:s,onSkip:r,name:a}){const[o,n]=h.useState(!1),[l,u]=h.useState(null),[i,d]=h.useState(!1),[f,c]=h.useState(!1),p=e.aiProvider?.provider||"anthropic",x=e.aiProvider?.apiKey||"",v=e.aiProvider?.ollamaBaseUrl||"http://localhost:11434",g=yt.find(E=>E.id===p),y=E=>{s({aiProvider:{provider:E,apiKey:"",ollamaBaseUrl:"http://localhost:11434"}}),u(null),yt.findIndex(w=>w.id===E)>=is&&c(!0)},j=E=>{s({aiProvider:{...e.aiProvider,provider:p,apiKey:E}}),u(null)},P=E=>{s({aiProvider:{provider:"ollama",ollamaBaseUrl:E}}),u(null)},O=async()=>{n(!0),u(null);try{const M=await(await fetch("/api/oobe/validate-ai",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({provider:p,apiKey:x,ollamaBaseUrl:v})})).json();u({valid:M.valid,message:M.valid?M.message:M.error})}catch{u({valid:!1,message:"Connection failed"})}finally{n(!1)}};return t.jsxs("div",{style:{animation:"oobe-fade-in 0.5s ease-out"},children:[t.jsxs("div",{className:"space-y-1 mb-6",children:[t.jsxs("h2",{className:"text-2xl font-bold tracking-tight font-heading heading-brand-glow",children:["Nice to meet you, ",a||"friend","!"]}),t.jsx("p",{className:"text-[var(--muted-foreground)] text-sm",children:"Now let's pick an AI provider to power your agents. You can always change this later."})]}),t.jsxs("div",{className:"grid md:grid-cols-[1fr,1fr] gap-6 items-start",children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx("div",{className:"grid grid-cols-4 gap-2",children:(f?yt:yt.slice(0,is)).map(E=>t.jsxs("button",{type:"button",onClick:()=>y(E.id),className:`flex flex-col items-center gap-1.5 p-3 rounded-xl text-center transition-all duration-200 ${p===E.id?"glass-heavy":"glass hover:shadow-soft hover:translate-y-[-1px]"}`,style:p===E.id?{boxShadow:`0 0 0 2px ${E.color}, 0 4px 16px ${E.color}25`}:void 0,children:[t.jsx("div",{className:"w-9 h-9 rounded-lg flex items-center justify-center",style:{background:p===E.id?`${E.color}18`:"oklch(from var(--foreground) l c h / 0.05)"},children:t.jsx(E.Logo,{className:"h-[18px] w-[18px]",style:p===E.id?{color:E.color}:void 0})}),t.jsxs("div",{children:[t.jsx("div",{className:"font-semibold text-xs leading-tight",children:E.name}),t.jsx("div",{className:"text-[10px] text-[var(--muted-foreground)] leading-tight",children:E.desc})]})]},E.id))}),t.jsx("button",{type:"button",onClick:()=>c(!f),className:"w-full text-xs text-[var(--muted-foreground)] hover:text-[var(--foreground)] transition-colors py-1.5",children:f?"Show less":`+${yt.length-is} more providers`})]}),t.jsxs("div",{className:"space-y-4 glass rounded-2xl p-6",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{className:"flex items-center gap-2.5",children:[g&&t.jsx("div",{className:"w-8 h-8 rounded-lg flex items-center justify-center",style:{background:`${g.color}18`},children:t.jsx(g.Logo,{className:"h-4 w-4",style:{color:g.color}})}),t.jsxs("div",{children:[t.jsx("div",{className:"font-semibold text-sm",children:g?.name}),t.jsx("div",{className:"text-xs text-[var(--muted-foreground)]",children:g?.desc})]})]}),g?.keyUrl&&t.jsxs("a",{href:g.keyUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-xs text-[var(--muted-foreground)] hover:text-[var(--foreground)] transition-colors",children:["Get key ",t.jsx(T1,{className:"h-3 w-3"})]})]}),g?.needsUrl?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:"Ollama URL"}),t.jsx("input",{type:"text",className:"field-lg w-full",placeholder:"http://localhost:11434",value:v,onChange:E=>P(E.target.value)})]}):t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:"API Key"}),t.jsxs("div",{className:"relative",children:[t.jsx("input",{type:i?"text":"password",className:"field-lg w-full pr-10",placeholder:g?.keyPlaceholder||"Enter API key...",value:x,onChange:E=>j(E.target.value)}),t.jsx("button",{type:"button",onClick:()=>d(!i),className:"absolute right-3 top-1/2 -translate-y-1/2 text-[var(--muted-foreground)] hover:text-[var(--foreground)]",children:i?t.jsx(qe,{className:"h-4 w-4"}):t.jsx(We,{className:"h-4 w-4"})})]}),t.jsx("p",{className:"text-xs text-[var(--muted-foreground)]",children:"Your key doesn't leave your device."})]}),t.jsxs("div",{className:"flex gap-3",children:[t.jsx("button",{type:"button",onClick:O,disabled:o||!g?.needsUrl&&!x,className:"btn-brand-outline flex-1 py-2.5 px-4 text-sm font-medium disabled:opacity-40",children:o?t.jsxs("span",{className:"flex items-center justify-center gap-2",children:[t.jsx(Pe,{className:"h-4 w-4 animate-spin"})," Testing..."]}):"Test Connection"}),t.jsx("button",{type:"button",onClick:r,className:"btn-ghost py-2.5 px-4 text-sm text-[var(--muted-foreground)]",children:"Skip for now"})]}),l&&t.jsxs("div",{className:`flex items-start gap-2 p-3 rounded-xl text-sm ${l.valid?"bg-[hsl(var(--success)/0.1)] text-[hsl(var(--success))]":"bg-[hsl(var(--destructive)/0.1)] text-[hsl(var(--destructive))]"}`,children:[l.valid?t.jsx(de,{className:"h-4 w-4 mt-0.5 shrink-0"}):t.jsx(tt,{className:"h-4 w-4 mt-0.5 shrink-0"}),t.jsx("span",{children:l.message})]})]})]})]})}function bc({data:e,onUpdate:s,name:r}){const a=e.github?.clientId||"",o=e.github?.clientSecret||"",[n,l]=h.useState(!1);return t.jsxs("div",{className:"space-y-6 max-w-lg mx-auto",style:{animation:"oobe-fade-in 0.5s ease-out"},children:[t.jsxs("div",{className:"space-y-1",children:[t.jsxs("h2",{className:"text-2xl font-bold tracking-tight font-heading",children:["Connect GitHub, ",r||"friend","?"]}),t.jsx("p",{className:"text-[var(--muted-foreground)] text-sm",children:"Optional. Enables GitHub login and repository access for your agents."})]}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:"Client ID"}),t.jsx("input",{type:"text",className:"field-lg w-full",placeholder:"Your GitHub OAuth App Client ID",value:a,onChange:u=>s({github:{clientId:u.target.value,clientSecret:o}})})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:"Client Secret"}),t.jsxs("div",{className:"relative",children:[t.jsx("input",{type:n?"text":"password",className:"field-lg w-full pr-10",placeholder:"Your GitHub OAuth App Client Secret",value:o,onChange:u=>s({github:{clientId:a,clientSecret:u.target.value}})}),t.jsx("button",{type:"button",onClick:()=>l(!n),className:"absolute right-3 top-1/2 -translate-y-1/2 text-[var(--muted-foreground)] hover:text-[var(--foreground)]",children:n?t.jsx(qe,{className:"h-4 w-4"}):t.jsx(We,{className:"h-4 w-4"})})]})]})]}),t.jsx("p",{className:"text-xs text-[var(--muted-foreground)] text-center",children:"You can skip this and configure it later in Settings."})]})}function wc({data:e,onUpdate:s,name:r}){const[a,o]=h.useState(!1),[n,l]=h.useState(!1),u=e.multiUser?.email||"",i=e.multiUser?.password||"";return t.jsxs("div",{className:"space-y-6 max-w-lg mx-auto",style:{animation:"oobe-fade-in 0.5s ease-out"},children:[t.jsxs("div",{className:"space-y-1",children:[t.jsxs("h2",{className:"text-2xl font-bold tracking-tight font-heading heading-brand-glow",children:["Almost there, ",r||"friend","!"]}),t.jsx("p",{className:"text-[var(--muted-foreground)] text-sm",children:"By default, profClaw runs in single-user local mode - no login required. Want to share it?"})]}),t.jsx("button",{type:"button",onClick:()=>{o(!a),a&&s({multiUser:void 0})},className:`w-full p-4 rounded-2xl text-left transition-all duration-300 ${a?"glass-heavy brand-ring":"glass hover:shadow-soft"}`,children:t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("div",{children:[t.jsx("div",{className:"font-semibold text-sm",children:"Enable Multi-User Auth"}),t.jsx("div",{className:"text-xs text-[var(--muted-foreground)] mt-1",children:"Require login with email and password"})]}),t.jsx("div",{className:`w-10 h-6 rounded-full transition-colors duration-200 flex items-center ${a?"bg-[#e11d48] justify-end":"bg-[var(--muted)] justify-start"}`,children:t.jsx("div",{className:"w-5 h-5 rounded-full bg-white mx-0.5 shadow-sm"})})]})}),a&&t.jsxs("div",{className:"space-y-4",style:{animation:"oobe-fade-in 0.3s ease-out"},children:[t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:"Email"}),t.jsx("input",{type:"email",className:"field-lg w-full",placeholder:"admin@example.com",value:u,onChange:d=>s({multiUser:{email:d.target.value,password:i}})})]}),t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:"Password"}),t.jsxs("div",{className:"relative",children:[t.jsx("input",{type:n?"text":"password",className:"field-lg w-full pr-10",placeholder:"Min 8 characters",value:i,onChange:d=>s({multiUser:{email:u,password:d.target.value}})}),t.jsx("button",{type:"button",onClick:()=>l(!n),className:"absolute right-3 top-1/2 -translate-y-1/2 text-[var(--muted-foreground)] hover:text-[var(--foreground)]",children:n?t.jsx(qe,{className:"h-4 w-4"}):t.jsx(We,{className:"h-4 w-4"})})]})]})]})]})}function jc({name:e}){return t.jsxs("div",{className:"space-y-8 text-center py-6 max-w-lg mx-auto",style:{animation:"oobe-fade-in 0.5s ease-out"},children:[t.jsxs("div",{className:"relative mx-auto w-20 h-20",children:[t.jsx("div",{className:"absolute inset-0 rounded-full",style:{animation:"oobe-check 0.6s ease-out 0.1s both",background:"linear-gradient(135deg, oklch(from #e11d48 l c h / 0.08), oklch(from #ea580c l c h / 0.05))",boxShadow:"0 0 40px oklch(from #e11d48 l c h / 0.15)"}}),t.jsx("div",{className:"absolute inset-2 rounded-full flex items-center justify-center",style:{animation:"oobe-check 0.6s ease-out 0.3s both",background:"linear-gradient(135deg, oklch(from #e11d48 l c h / 0.2), oklch(from #ea580c l c h / 0.12))"},children:t.jsx(de,{className:"h-8 w-8 text-[#f43f5e]",strokeWidth:3})})]}),t.jsxs("div",{className:"space-y-3",children:[t.jsxs("h2",{className:"text-2xl font-bold tracking-tight font-heading heading-brand-glow",children:["You're all set, ",e,"!"]}),t.jsx("p",{className:"text-[var(--muted-foreground)] text-[15px] max-w-sm mx-auto leading-relaxed",children:"profClaw is configured and ready to go. Your AI agents are standing by."})]}),t.jsxs("div",{className:"flex items-center justify-center gap-6 text-xs text-[var(--muted-foreground)]",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-[hsl(var(--success))]"}),"Local-first"]}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-[hsl(var(--success))]"}),"Private"]}),t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-[hsl(var(--success))]"}),"Ready"]})]})]})}function Cc(){const{theme:e,setTheme:s}=Nt(),r=[{id:"light",icon:Vt,label:"Light"},{id:"dark",icon:bt,label:"Dark"},{id:"midnight",icon:kn,label:"Midnight"}];return t.jsx("div",{className:"flex items-center gap-0.5 p-1 rounded-full glass",children:r.map(({id:a,icon:o,label:n})=>t.jsx("button",{type:"button",onClick:()=>s(a),title:n,className:`p-1.5 rounded-full transition-all duration-200 ${e===a?"bg-[var(--foreground)] text-[var(--background)] shadow-sm":"text-[var(--muted-foreground)] hover:text-[var(--foreground)]"}`,children:t.jsx(o,{className:"h-3.5 w-3.5"})},a))})}const kc={welcome:"Profile","ai-provider":"AI Provider",github:"GitHub",security:"Security",complete:"Done"};function Nc({steps:e,current:s}){return t.jsx("div",{className:"flex items-center gap-1",children:e.map((r,a)=>{const o=a===s,n=a<s,l=a===e.length-1;return t.jsxs("div",{className:"flex items-center",children:[t.jsxs("div",{className:`flex items-center gap-1.5 px-3 py-1.5 rounded-full transition-all duration-300 ${o?"bg-gradient-to-r from-[#e11d48]/15 to-[#ea580c]/10":n?"opacity-60":"opacity-30"}`,children:[t.jsx("div",{className:`flex items-center justify-center rounded-full transition-all duration-300 ${o?"w-5 h-5 brand-dot":n?"w-5 h-5 bg-[#e11d48]/40":"w-5 h-5 border-2 border-[var(--muted-foreground)]/20"}`,children:n?t.jsx(de,{className:"h-3 w-3 text-white",strokeWidth:3}):t.jsx("span",{className:`text-[10px] font-bold ${o?"text-white":"text-[var(--muted-foreground)]/50"}`,children:a+1})}),t.jsx("span",{className:`text-xs font-medium transition-all duration-300 ${o?"text-[var(--foreground)]":"text-[var(--muted-foreground)]"}`,children:kc[r]||r})]}),!l&&t.jsx("div",{className:`w-6 h-px mx-0.5 transition-colors duration-300 ${n?"bg-[#e11d48]/30":"bg-[var(--muted-foreground)]/10"}`})]},r)})})}function Sc(){const[e,s]=h.useState("quick"),[r,a]=h.useState(0),[o,n]=h.useState({name:""}),[l,u]=h.useState(!1),[i,d]=h.useState(null),f=h.useCallback(w=>{n(b=>({...b,...w})),d(null)},[]),c=e==="quick"?["welcome","ai-provider","complete"]:["welcome","ai-provider","github","security","complete"],p=c.length,x=c[r],v=r===p-2,g=x==="complete",y=()=>{switch(x){case"welcome":return o.name.trim().length>0;case"ai-provider":return!o.aiProvider||o.aiProvider.provider==="ollama"?!0:!!o.aiProvider.apiKey;case"github":return!0;case"security":return o.multiUser?o.multiUser.email.includes("@")&&o.multiUser.password.length>=8:!0;default:return!0}},j=async()=>{u(!0),d(null);try{const w=await fetch("/api/oobe/setup",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({name:o.name.trim(),avatarUrl:o.avatarUrl,aiProvider:o.aiProvider})});if(!w.ok){const b=await w.json();throw new Error(b.error||"Setup failed")}if(o.github?.clientId&&o.github?.clientSecret&&await fetch("/api/setup/github-oauth",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({clientId:o.github.clientId,clientSecret:o.github.clientSecret})}),o.multiUser?.email&&o.multiUser?.password){const b=await fetch("/api/oobe/enable-multiuser",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({email:o.multiUser.email,password:o.multiUser.password})});if(!b.ok){const N=await b.json();throw new Error(N.error||"Failed to enable multi-user")}}a(p-1)}catch(w){d(w instanceof Error?w.message:"Setup failed")}finally{u(!1)}},P=async()=>{v?await j():a(w=>Math.min(w+1,p-1))},O=async()=>{n(w=>({...w,aiProvider:void 0})),v?await j():a(w=>w+1)},E=()=>{a(w=>Math.max(w-1,0))},M=()=>{window.location.href="/"};return t.jsxs("div",{className:"min-h-screen flex items-center justify-center p-6 relative overflow-hidden",children:[t.jsx(tc,{}),t.jsxs("div",{className:"relative z-10 w-full max-w-5xl min-h-[70vh] flex flex-col rounded-[3rem]",style:{animation:"oobe-scale-in 0.6s cubic-bezier(0.16, 1, 0.3, 1)",background:"color-mix(in srgb, hsl(var(--card)), transparent 12%)",backdropFilter:"blur(60px) saturate(200%)",WebkitBackdropFilter:"blur(60px) saturate(200%)",border:"none",boxShadow:["0 0 0 1px oklch(1 0 0 / 0.06) inset","0 1px 1px 0 oklch(1 0 0 / 0.1) inset","0 24px 80px -12px oklch(0 0 0 / 0.25)","0 8px 32px -8px oklch(from #e11d48 l c h / 0.08)"].join(", ")},children:[t.jsxs("div",{className:"flex items-center justify-between px-8 py-5 rounded-t-[3rem]",style:{borderBottom:"1px solid oklch(1 0 0 / 0.06)"},children:[t.jsx("div",{className:"w-24"}),g?t.jsx("div",{}):t.jsx(Nc,{steps:c,current:r}),t.jsx("div",{className:"w-24 flex justify-end",children:t.jsx(Cc,{})})]}),t.jsxs("div",{className:"flex-1 flex flex-col justify-center px-12 py-8 w-full",children:[x==="welcome"&&t.jsx(vc,{data:o,onUpdate:f,path:e,onPathChange:s}),x==="ai-provider"&&t.jsx(yc,{data:o,onUpdate:f,onSkip:O,name:o.name.trim()}),x==="github"&&t.jsx(bc,{data:o,onUpdate:f,name:o.name.trim()}),x==="security"&&t.jsx(wc,{data:o,onUpdate:f,name:o.name.trim()}),x==="complete"&&t.jsx(jc,{name:o.name})]}),i&&t.jsxs("div",{className:"flex items-center gap-2 p-3 rounded-xl bg-[hsl(var(--destructive)/0.1)] text-[hsl(var(--destructive))] text-sm max-w-lg mx-auto w-full px-12",children:[t.jsx(tt,{className:"h-4 w-4 shrink-0"}),t.jsx("span",{children:i})]}),t.jsxs("div",{className:"flex items-center justify-between px-12 py-6 rounded-b-[3rem]",style:{borderTop:"1px solid oklch(1 0 0 / 0.06)"},children:[r>0&&!g?t.jsxs("button",{type:"button",onClick:E,className:"btn-ghost py-2.5 px-4 text-sm flex items-center gap-1",children:[t.jsx(M1,{className:"h-4 w-4"})," Back"]}):t.jsx("div",{className:"w-24"}),g?t.jsxs("button",{type:"button",onClick:M,className:"btn-brand py-2.5 px-8 text-sm flex items-center gap-2",children:["Go to Dashboard ",t.jsx(Bt,{className:"h-4 w-4"})]}):t.jsx("button",{type:"button",onClick:P,disabled:!y()||l,className:"btn-brand py-2.5 px-8 text-sm flex items-center gap-2 disabled:opacity-40",children:l?t.jsxs(t.Fragment,{children:[t.jsx(Pe,{className:"h-4 w-4 animate-spin"})," Setting up..."]}):v?t.jsxs(t.Fragment,{children:["Complete Setup ",t.jsx(de,{className:"h-4 w-4"})]}):t.jsxs(t.Fragment,{children:["Continue ",t.jsx(Bt,{className:"h-4 w-4"})]})})]})]})]})}const or=h.forwardRef(({className:e,...s},r)=>t.jsx("div",{ref:r,className:k("premium-card rounded-2xl transition-all duration-300",e),...s}));or.displayName="Card";const Lc=h.forwardRef(({className:e,...s},r)=>t.jsx("div",{ref:r,className:k("flex flex-col space-y-1.5 p-6",e),...s}));Lc.displayName="CardHeader";const Mc=h.forwardRef(({className:e,...s},r)=>t.jsx("h3",{ref:r,className:k("text-2xl font-semibold leading-none tracking-tight",e),...s}));Mc.displayName="CardTitle";const Ac=h.forwardRef(({className:e,...s},r)=>t.jsx("p",{ref:r,className:k("text-sm text-[var(--muted-foreground)]",e),...s}));Ac.displayName="CardDescription";const Ec=h.forwardRef(({className:e,...s},r)=>t.jsx("div",{ref:r,className:k("p-6 pt-0",e),...s}));Ec.displayName="CardContent";const $c=h.forwardRef(({className:e,...s},r)=>t.jsx("div",{ref:r,className:k("flex items-center p-6 pt-0",e),...s}));$c.displayName="CardFooter";const Tc=[{icon:Ue,title:"AI-Powered Task Routing",description:"Automatically route tasks to the right AI agent based on complexity and requirements."},{icon:Ns,title:"Multi-Agent Orchestration",description:"Coordinate OpenClaw, Claude Code, and other agents for complex workflows."},{icon:Dt,title:"Secure & Auditable",description:"Full audit trail of all AI actions with approval workflows for sensitive operations."}];function _c(){const e=De(),{refetch:s}=Ve(),[r,a]=h.useState(!1),o=Be({mutationFn:async()=>{const l=await fetch("/api/users/me/complete-onboarding",{method:"POST",credentials:"include"});if(!l.ok)throw new Error("Failed to complete onboarding");return l.json()},onSuccess:async()=>{await s(),ce.success("Welcome to profClaw!"),e("/")},onError:()=>{ce.error("Something went wrong. Please try again."),a(!1)}}),n=()=>{a(!0),o.mutate()};return t.jsx("div",{className:"min-h-screen bg-gradient-to-br from-background via-background to-primary/5 flex items-center justify-center p-4",children:t.jsxs(or,{className:"max-w-2xl w-full p-8 shadow-xl border-border/50",children:[t.jsxs("div",{className:"text-center mb-8",children:[t.jsx("div",{className:"flex justify-center mb-6",children:t.jsx("div",{className:"h-16 w-16 rounded-2xl bg-gradient-to-br from-primary to-primary/60 flex items-center justify-center shadow-lg",children:t.jsx(ze,{className:"h-10 w-10 text-primary-foreground"})})}),t.jsx("h1",{className:"text-3xl font-bold mb-2",children:"Welcome to profClaw"}),t.jsx("p",{className:"text-muted-foreground text-lg",children:"Your AI agent orchestration platform is ready. Here's what you can do:"})]}),t.jsx("div",{className:"space-y-4 mb-8",children:Tc.map((l,u)=>t.jsxs("div",{className:"flex items-start gap-4 p-4 rounded-xl bg-muted/30 border border-border/50",children:[t.jsx("div",{className:"h-10 w-10 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:t.jsx(l.icon,{className:"h-5 w-5 text-primary"})}),t.jsxs("div",{children:[t.jsx("h3",{className:"font-semibold mb-1",children:l.title}),t.jsx("p",{className:"text-sm text-muted-foreground",children:l.description})]})]},u))}),t.jsxs("div",{className:"space-y-4",children:[t.jsx(ae,{size:"lg",onClick:n,disabled:r,className:"w-full rounded-xl h-12 text-base",children:r?t.jsxs(t.Fragment,{children:[t.jsx(Pe,{className:"h-5 w-5 mr-2 animate-spin"}),"Setting up your workspace..."]}):t.jsxs(t.Fragment,{children:["Get Started",t.jsx(Ae,{className:"h-5 w-5 ml-2"})]})}),t.jsx("p",{className:"text-xs text-center text-muted-foreground",children:"You can always revisit settings to configure integrations and preferences."})]}),t.jsx("div",{className:"mt-8 pt-6 border-t border-border",children:t.jsxs("div",{className:"flex items-center justify-center gap-2 text-sm text-muted-foreground",children:[t.jsx(ds,{className:"h-4 w-4 text-green-500"}),t.jsx("span",{children:"Your account is ready"})]})})]})})}const Pc=h.lazy(()=>te(()=>import("./AnalyticsDashboard-B28AeRsc.js"),__vite__mapDeps([15,1,2,16,17,14,18,19,20])).then(e=>({default:e.AnalyticsDashboard}))),zc=h.lazy(()=>te(()=>import("./TaskList-JjODAgSc.js"),__vite__mapDeps([21,1,2,16,22,14,23,24,25,26,27,28,29])).then(e=>({default:e.TaskList}))),Oc=h.lazy(()=>te(()=>import("./TaskDetail-BtWclNiR.js"),__vite__mapDeps([30,1,2,31,32,33,27,34,35,14])).then(e=>({default:e.TaskDetail}))),Ic=h.lazy(()=>te(()=>import("./SummaryList-CLNX2P84.js"),__vite__mapDeps([36,1,2,16,22,14,23,7])).then(e=>({default:e.SummaryList}))),Rc=h.lazy(()=>te(()=>import("./SummaryDetail-eedRfTtF.js"),__vite__mapDeps([37,1,2,16,38,39,7,40,41,14])).then(e=>({default:e.SummaryDetail}))),Bc=h.lazy(()=>te(()=>import("./AgentList-H58R0kX3.js"),__vite__mapDeps([42,1,2,31,43,7,44,14])).then(e=>({default:e.AgentList}))),l1=h.lazy(()=>te(()=>import("./Settings-xA8Zhi3p.js"),__vite__mapDeps([45,1,2,46,14,25,47,48,49,50,12,51,52,7,53,54,8,16,55,24,56,39,57,58,13,28,20,44,26,40,9,10,22,23,27,33,59,60,61,62])).then(e=>({default:e.Settings}))),Hc=h.lazy(()=>te(()=>import("./CostsDashboard-C6F5df0F.js"),__vite__mapDeps([63,1,2,38,64,19,17,14,18,65])).then(e=>({default:e.CostsDashboard}))),Dc=h.lazy(()=>te(()=>import("./index-C1rhbml4.js"),__vite__mapDeps([66,1,2,16,38,31,40,14])).then(e=>({default:e.WebhookStatus}))),Vc=h.lazy(()=>te(()=>import("./index-CR8gfCHv.js"),__vite__mapDeps([67,1,2,16,38,13,23,8,14])).then(e=>({default:e.DLQDashboard}))),Gc=h.lazy(()=>te(()=>import("./index-Djdq_0xu.js"),__vite__mapDeps([68,1,2,16,26,22,14,23,69,13,56,19,7,64])).then(e=>({default:e.GatewayDashboard}))),Fc=h.lazy(()=>te(()=>import("./TicketList-68V4lzUz.js"),__vite__mapDeps([70,1,2,16,22,14,23,71,72,26,25,73,32,74,75,40,43,57,76,41,27,49,28])).then(e=>({default:e.TicketList}))),Zc=h.lazy(()=>te(()=>import("./TicketDetail-CV5JmL31.js"),__vite__mapDeps([77,1,2,16,26,22,14,23,25,55,71,49,73,32,40,54,78,8,20,58,10,35,9,76,27,34,43,41,57])).then(e=>({default:e.TicketDetail}))),Uc=h.lazy(()=>te(()=>import("./TicketBoard-C9aJNNYp.js"),__vite__mapDeps([79,1,2,80,5,57,76,43,72,26,16,25,14,22,23,73,32,74,75,40,41,27])).then(e=>({default:e.TicketBoard}))),qc=h.lazy(()=>te(()=>import("./ChatView-Dbj8rxU5.js"),__vite__mapDeps([81,1,2,22,14,23,61,16,7,3,4,5,6,35,47,48,49,50,12,51,52,8,82,57,41,39,83,20,26,9,55,75,25,13,44,62])).then(e=>({default:e.ChatView}))),Wc=h.lazy(()=>te(()=>import("./ProjectList-DXgM4187.js"),__vite__mapDeps([84,1,2,25,14,82,41,85,50,12,52,69,46,16,22,23,24,61,49,40,29,54,86,8])).then(e=>({default:e.ProjectList}))),Jc=h.lazy(()=>te(()=>import("./ProjectDetail-BgWvA6UP.js"),__vite__mapDeps([87,1,2,85,50,12,52,41,82,25,14,26,71,34,65,17,19,80,5,83,76,29,57,43,28,48,27,11,13,88])).then(e=>({default:e.ProjectDetail}))),Kc=h.lazy(()=>te(()=>import("./index-DVXMpWai.js"),__vite__mapDeps([89,1,2,55,14,10,12,52,86,13,78,54,35,27,8,49,53,25,48,40,74,20,51,39,34,41,9,19,28])).then(e=>({default:e.CronDashboard}))),Yc=h.lazy(()=>te(()=>import("./ActivityView-Da6HQ8ws.js"),__vite__mapDeps([90,1,2,16,38,22,14,23,8])).then(e=>({default:e.ActivityView}))),Qc=h.lazy(()=>te(()=>import("./UserManagement-DKTb6UpE.js"),__vite__mapDeps([91,1,2,55,14,13,29,62,8])).then(e=>({default:e.UserManagement}))),Xc=h.lazy(()=>te(()=>import("./InviteCodeManagement-tUXfx4Bc.js"),__vite__mapDeps([92,1,2,55,14,52,29,8,13])).then(e=>({default:e.InviteCodeManagement}))),e4=h.lazy(()=>te(()=>import("./index-DaDJMM2v.js"),__vite__mapDeps([93,1,2,14])).then(e=>({default:e.PrivacyPolicy}))),t4=h.lazy(()=>te(()=>import("./index-DaDJMM2v.js"),__vite__mapDeps([93,1,2,14])).then(e=>({default:e.TermsOfService}))),s4=h.lazy(()=>te(()=>import("./MarketplacePage-DGrLtolR.js"),__vite__mapDeps([94,1,2,16,59,43,28,13,60,14])).then(e=>({default:e.MarketplacePage}))),r4=h.lazy(()=>te(()=>import("./FeedDashboard-Ef6FEzEf.js"),__vite__mapDeps([95,1,2,16,59,13,14])).then(e=>({default:e.FeedDashboard}))),a4=h.lazy(()=>te(()=>import("./TeamsPage-CBK5iAyx.js"),__vite__mapDeps([96,1,2,16,64,14])).then(e=>({default:e.TeamsPage})));class o4 extends h.Component{constructor(s){super(s),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}render(){return this.state.hasError?t.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[50vh] gap-4",children:[t.jsx("p",{className:"text-muted-foreground",children:"Page failed to load. This usually happens after an update."}),t.jsx("button",{onClick:()=>window.location.reload(),className:"px-4 py-2 rounded-lg bg-primary text-primary-foreground text-sm",children:"Reload Page"})]}):this.props.children}}function ee({children:e}){return t.jsx(o4,{children:t.jsx(h.Suspense,{fallback:t.jsx(X0,{}),children:e})})}const n4=br([{path:"/login",element:t.jsx(ss,{children:t.jsx(Ai,{})})},{path:"/signup",element:t.jsx(ss,{children:t.jsx(Ei,{})})},{path:"/access-key",element:t.jsx(ss,{children:t.jsx($i,{})})},{path:"/oobe",element:t.jsx(Sc,{})},{path:"/setup",element:t.jsx(ec,{})},{path:"/privacy",element:t.jsx(ee,{children:t.jsx(e4,{})})},{path:"/terms",element:t.jsx(ee,{children:t.jsx(t4,{})})},{path:"/onboarding",element:t.jsx(oe,{children:t.jsx(ee,{children:t.jsx(_c,{})})})},{path:"/",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(qc,{})})})})},{path:"/tasks",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(zc,{})})})})},{path:"/tasks/:id",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(Oc,{})})})})},{path:"/summaries",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(Ic,{})})})})},{path:"/summaries/:id",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(Rc,{})})})})},{path:"/agents",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(Bc,{})})})})},{path:"/costs",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(Hc,{})})})})},{path:"/settings",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(l1,{})})})})},{path:"/settings/:section",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(l1,{})})})})},{path:"/webhooks",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(Dc,{})})})})},{path:"/failed",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(Vc,{})})})})},{path:"/gateway",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(Gc,{})})})})},{path:"/tickets",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(Fc,{})})})})},{path:"/tickets/board",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(Uc,{})})})})},{path:"/tickets/:id",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(Zc,{})})})})},{path:"/chat",element:t.jsx(Re,{to:"/",replace:!0})},{path:"/analytics",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(Pc,{})})})})},{path:"/projects",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(Wc,{})})})})},{path:"/projects/:id",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(Jc,{})})})})},{path:"/cron",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(Kc,{})})})})},{path:"/marketplace",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(s4,{})})})})},{path:"/activity",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(Yc,{})})})})},{path:"/feeds",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(r4,{})})})})},{path:"/teams",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(a4,{})})})})},{path:"/admin/users",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(Qc,{})})})})},{path:"/admin/invite-codes",element:t.jsx(oe,{children:t.jsx(ne,{children:t.jsx(ee,{children:t.jsx(Xc,{})})})})}]);function i4(){return t.jsx(wr,{router:n4})}function l4(){return t.jsx(ba,{position:"bottom-right",expand:!1,richColors:!1,closeButton:!0,duration:4e3,toastOptions:{className:"toast-glass",style:{padding:"12px 16px"}}})}const c4=[{title:"Navigation",shortcuts:[{keys:["Cmd","K"],description:"Open command palette"},{keys:["G","H"],description:"Go to Dashboard"},{keys:["G","T"],description:"Go to Tasks"},{keys:["G","S"],description:"Go to Summaries"},{keys:["G","A"],description:"Go to Agents"},{keys:["G","C"],description:"Go to Costs"}]},{title:"Actions",shortcuts:[{keys:["Cmd","N"],description:"Create new task"},{keys:["Cmd","/"],description:"Focus search"},{keys:["Cmd","Shift","T"],description:"Toggle theme"},{keys:["Cmd","Shift","V"],description:"Toggle Talk Mode"}]},{title:"General",shortcuts:[{keys:["?"],description:"Show keyboard shortcuts"},{keys:["Esc"],description:"Close modal / Cancel"},{keys:["Enter"],description:"Confirm / Submit"}]},{title:"Lists & Navigation",shortcuts:[{keys:["J"],description:"Next item"},{keys:["K"],description:"Previous item"},{keys:["Enter"],description:"Open selected item"}]}];function d4(){const[e,s]=h.useState(!1);return h.useEffect(()=>{const r=a=>{if(a.key==="?"&&!a.metaKey&&!a.ctrlKey){const o=a.target;if(o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.isContentEditable)return;a.preventDefault(),s(!0)}a.key==="Escape"&&e&&s(!1)};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[e]),e?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-50 animate-in fade-in duration-200",onClick:()=>s(!1)}),t.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:t.jsxs("div",{className:"glass-heavy rounded-[28px] w-full max-w-2xl max-h-[80vh] overflow-hidden border border-white/10 shadow-2xl animate-in zoom-in-95 fade-in duration-200",onClick:r=>r.stopPropagation(),children:[t.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-white/5",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx("div",{className:"h-10 w-10 rounded-xl bg-blue-500/10 flex items-center justify-center",children:t.jsx(On,{className:"h-5 w-5 text-blue-400"})}),t.jsxs("div",{children:[t.jsx("h2",{className:"text-xl font-bold",children:"Keyboard Shortcuts"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:"Press ? anytime to show this"})]})]}),t.jsx("button",{onClick:()=>s(!1),className:"p-2 hover:bg-white/5 rounded-xl transition-colors",children:t.jsx(Gt,{className:"h-5 w-5"})})]}),t.jsx("div",{className:"p-6 overflow-y-auto max-h-[calc(80vh-100px)]",children:t.jsx("div",{className:"grid gap-6 md:grid-cols-2",children:c4.map(r=>t.jsxs("div",{children:[t.jsx("h3",{className:"text-xs font-bold uppercase tracking-widest text-muted-foreground mb-3",children:r.title}),t.jsx("div",{className:"space-y-2",children:r.shortcuts.map((a,o)=>t.jsxs("div",{className:"flex items-center justify-between p-2 rounded-lg hover:bg-white/5 transition-colors",children:[t.jsx("span",{className:"text-sm text-muted-foreground",children:a.description}),t.jsx("div",{className:"flex items-center gap-1",children:a.keys.map((n,l)=>t.jsxs("span",{children:[t.jsx("kbd",{className:k("px-2 py-1 text-[11px] font-bold rounded-lg","bg-white/5 border border-white/10","shadow-[0_2px_0_0_rgba(255,255,255,0.05)]"),children:n==="Cmd"?"⌘":n}),l<a.keys.length-1&&t.jsx("span",{className:"text-muted-foreground/40 mx-0.5",children:"+"})]},l))})]},o))})]},r.title))})}),t.jsx("div",{className:"p-4 border-t border-white/5 bg-white/[0.02]",children:t.jsxs("p",{className:"text-center text-xs text-muted-foreground",children:["Press ",t.jsx("kbd",{className:"px-1.5 py-0.5 text-[10px] font-bold rounded bg-white/5 border border-white/10",children:"Esc"})," to close"]})})]})})]}):null}class u4 extends h.Component{constructor(s){super(s),this.state={hasError:!1,error:null}}static getDerivedStateFromError(s){return{hasError:!0,error:s}}componentDidCatch(s,r){console.error("[ErrorBoundary] Uncaught error:",s,r.componentStack)}handleReload=()=>{window.location.reload()};handleReset=()=>{this.setState({hasError:!1,error:null})};render(){return this.state.hasError?t.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background p-6",children:t.jsx("div",{className:"w-full max-w-md rounded-xl border border-border bg-card p-8 shadow-lg",children:t.jsxs("div",{className:"flex flex-col items-center gap-4 text-center",children:[t.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-destructive/10",children:t.jsx(Ct,{className:"h-6 w-6 text-destructive"})}),t.jsx("h2",{className:"text-lg font-semibold",children:"Something went wrong"}),t.jsx("p",{className:"text-sm text-muted-foreground",children:"An unexpected error occurred. You can try reloading the page or resetting the app state."}),this.state.error&&t.jsx("pre",{className:"mt-2 max-h-32 w-full overflow-auto rounded-md bg-muted p-3 text-left text-xs text-muted-foreground",children:this.state.error.message}),t.jsxs("div",{className:"mt-4 flex gap-3",children:[t.jsx("button",{type:"button",onClick:this.handleReset,className:"inline-flex items-center gap-2 rounded-md border border-border bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-muted",children:"Try again"}),t.jsxs("button",{type:"button",onClick:this.handleReload,className:"inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:[t.jsx(ei,{className:"h-4 w-4"}),"Reload"]})]})]})})}):this.props.children}}function h4(){return t.jsx(u4,{children:t.jsxs(ql,{children:[t.jsx(i4,{}),t.jsx(l4,{}),t.jsx(G0,{}),t.jsx(d4,{})]})})}jr.createRoot(document.getElementById("root")).render(t.jsx(h.StrictMode,{children:t.jsx(h4,{})}));export{I4 as $,Ae as A,bs as B,dn as C,Ut as D,T1 as E,En as F,en as G,rt as H,Ne as I,Vt as J,Dt as K,Pe as L,bt as M,js as N,qe as O,Qn as P,We as Q,ei as R,Ue as S,pi as T,Zn as U,jn as V,On as W,Gt as X,L1 as Y,Ns as Z,O4 as _,ks as a,ai as a$,R4 as a0,B4 as a1,H4 as a2,D4 as a3,V4 as a4,O1 as a5,Ko as a6,Cs as a7,di as a8,Nt as a9,fc as aA,xc as aB,w4 as aC,j4 as aD,v4 as aE,y4 as aF,b4 as aG,g4 as aH,gc as aI,C4 as aJ,_4 as aK,k4 as aL,z4 as aM,N4 as aN,P4 as aO,S4 as aP,L4 as aQ,M4 as aR,A4 as aS,E4 as aT,$4 as aU,T4 as aV,M1 as aW,wt as aX,m as aY,bn as aZ,Bo as a_,rr as aa,Pn as ab,ji as ac,ds as ad,m1 as ae,Ac as af,gi as ag,_e as ah,ze as ai,ws as aj,Kn as ak,Wn as al,sc as am,rc as an,ic as ao,ac as ap,cc as aq,lc as ar,mc as as,oc as at,nc as au,Rt as av,uc as aw,hc as ax,dc as ay,pc as az,or as b,Ja as b0,E1 as b1,H as c,Lc as d,Mc as e,Ec as f,A1 as g,k as h,ae as i,Bt as j,mt as k,Ee as l,tt as m,Ht as n,qt as o,Wt as p,ge as q,Ws as r,si as s,ce as t,z1 as u,Uo as v,_1 as w,de as x,ut as y,Ct as z};
|