code-coordinator 0.5.46__py3-none-any.whl
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.
- code_coordinator-0.5.46.dist-info/METADATA +625 -0
- code_coordinator-0.5.46.dist-info/RECORD +295 -0
- code_coordinator-0.5.46.dist-info/WHEEL +5 -0
- code_coordinator-0.5.46.dist-info/entry_points.txt +2 -0
- code_coordinator-0.5.46.dist-info/licenses/LICENSE +110 -0
- code_coordinator-0.5.46.dist-info/top_level.txt +1 -0
- coord/__init__.py +176 -0
- coord/_board_mapping.py +229 -0
- coord/acceptance.py +468 -0
- coord/acceptance_drivers.py +632 -0
- coord/agent.py +7517 -0
- coord/agent_app.py +1555 -0
- coord/agent_update.py +417 -0
- coord/agents/opencode/.gitignore +13 -0
- coord/agents/opencode/agents/work.md +129 -0
- coord/agents/opencode/routing.jsonc +49 -0
- coord/audit.py +301 -0
- coord/auto_loop.py +1440 -0
- coord/board_bool_guard.py +72 -0
- coord/board_service.py +141 -0
- coord/board_wire.py +309 -0
- coord/brain.py +581 -0
- coord/branch_model.py +214 -0
- coord/cargo_cache.py +258 -0
- coord/ci_github.py +386 -0
- coord/ci_store.py +560 -0
- coord/claim.py +353 -0
- coord/cli.py +454 -0
- coord/client.py +610 -0
- coord/commands/__init__.py +1 -0
- coord/commands/_common.py +329 -0
- coord/commands/acceptance.py +916 -0
- coord/commands/agent_ops.py +1339 -0
- coord/commands/audit.py +131 -0
- coord/commands/chat.py +320 -0
- coord/commands/dispatch.py +1780 -0
- coord/commands/dispatch_workers.py +4894 -0
- coord/commands/drive.py +616 -0
- coord/commands/drive_queue.py +1203 -0
- coord/commands/gate_a.py +217 -0
- coord/commands/gates.py +89 -0
- coord/commands/issues.py +681 -0
- coord/commands/lifecycle.py +513 -0
- coord/commands/merge.py +1900 -0
- coord/commands/milestone.py +2081 -0
- coord/commands/plan_followup.py +1243 -0
- coord/commands/plans.py +156 -0
- coord/commands/release.py +2232 -0
- coord/commands/report.py +341 -0
- coord/commands/review.py +1523 -0
- coord/commands/scorecard.py +252 -0
- coord/commands/sessions.py +1930 -0
- coord/commands/setup.py +576 -0
- coord/commands/status.py +2089 -0
- coord/commands/terminal.py +385 -0
- coord/commands/test_gate.py +775 -0
- coord/commands/tui.py +288 -0
- coord/comments.py +718 -0
- coord/config.py +3032 -0
- coord/conflict_fix.py +633 -0
- coord/dao.py +483 -0
- coord/dashboard/__init__.py +0 -0
- coord/dashboard/fixture.py +376 -0
- coord/dashboard/index.html +658 -0
- coord/dashboard/server.py +1894 -0
- coord/dashboard/terminal.py +382 -0
- coord/dashboard/webapp/.gitignore +9 -0
- coord/dashboard/webapp/components.json +17 -0
- coord/dashboard/webapp/dist/assets/Gallery-da3qNiIw.js +71 -0
- coord/dashboard/webapp/dist/assets/Terminal-9CEnUXvW.css +32 -0
- coord/dashboard/webapp/dist/assets/Terminal-skVFCxPU.js +63 -0
- coord/dashboard/webapp/dist/assets/index-DltfZR5f.js +184 -0
- coord/dashboard/webapp/dist/assets/index-Dq4kwTdw.css +1 -0
- coord/dashboard/webapp/dist/assets/workbox-window.prod.es5-BqEJf4Xk.js +2 -0
- coord/dashboard/webapp/dist/icons/icon-192.png +0 -0
- coord/dashboard/webapp/dist/icons/icon-512.png +0 -0
- coord/dashboard/webapp/dist/icons/icon.svg +5 -0
- coord/dashboard/webapp/dist/index.html +38 -0
- coord/dashboard/webapp/dist/manifest.webmanifest +1 -0
- coord/dashboard/webapp/dist/sw.js +1 -0
- coord/dashboard/webapp/dist/workbox-e4022e15.js +1 -0
- coord/dashboard/webapp/e2e/available-gates-terminal.spec.ts +75 -0
- coord/dashboard/webapp/e2e/deep-link.spec.ts +172 -0
- coord/dashboard/webapp/e2e/fixtureServer.ts +155 -0
- coord/dashboard/webapp/e2e/live-update-fixture.spec.ts +113 -0
- coord/dashboard/webapp/e2e/realtime.spec.ts +238 -0
- coord/dashboard/webapp/e2e/shell.spec.ts +309 -0
- coord/dashboard/webapp/e2e/smoke.spec.ts +191 -0
- coord/dashboard/webapp/e2e/terminal.spec.ts +420 -0
- coord/dashboard/webapp/e2e/theme.spec.ts +138 -0
- coord/dashboard/webapp/eslint.config.js +20 -0
- coord/dashboard/webapp/index.html +37 -0
- coord/dashboard/webapp/node_modules/flatted/python/flatted.py +144 -0
- coord/dashboard/webapp/package-lock.json +10584 -0
- coord/dashboard/webapp/package.json +63 -0
- coord/dashboard/webapp/playwright.acceptance.config.ts +166 -0
- coord/dashboard/webapp/playwright.config.ts +93 -0
- coord/dashboard/webapp/postcss.config.js +6 -0
- coord/dashboard/webapp/public/icons/icon-192.png +0 -0
- coord/dashboard/webapp/public/icons/icon-512.png +0 -0
- coord/dashboard/webapp/public/icons/icon.svg +5 -0
- coord/dashboard/webapp/src/App.tsx +140 -0
- coord/dashboard/webapp/src/api/client.ts +199 -0
- coord/dashboard/webapp/src/api/generated.ts +176 -0
- coord/dashboard/webapp/src/components/ConnectionBadge.tsx +52 -0
- coord/dashboard/webapp/src/components/Detail.tsx +800 -0
- coord/dashboard/webapp/src/components/Gallery.tsx +341 -0
- coord/dashboard/webapp/src/components/Home.tsx +435 -0
- coord/dashboard/webapp/src/components/MobileKeyBar.tsx +280 -0
- coord/dashboard/webapp/src/components/PanelHeader.tsx +59 -0
- coord/dashboard/webapp/src/components/PipelineCard.tsx +168 -0
- coord/dashboard/webapp/src/components/SessionCard.tsx +99 -0
- coord/dashboard/webapp/src/components/SessionDetail.tsx +140 -0
- coord/dashboard/webapp/src/components/SessionsList.tsx +81 -0
- coord/dashboard/webapp/src/components/Terminal.tsx +376 -0
- coord/dashboard/webapp/src/components/__tests__/ConnectionBadge.test.tsx +81 -0
- coord/dashboard/webapp/src/components/__tests__/Detail.test.tsx +680 -0
- coord/dashboard/webapp/src/components/__tests__/Gallery.test.tsx +83 -0
- coord/dashboard/webapp/src/components/__tests__/Home.test.tsx +271 -0
- coord/dashboard/webapp/src/components/__tests__/MobileKeyBar.test.tsx +197 -0
- coord/dashboard/webapp/src/components/__tests__/PipelineCard.test.tsx +143 -0
- coord/dashboard/webapp/src/components/__tests__/SessionCard.test.tsx +106 -0
- coord/dashboard/webapp/src/components/__tests__/Terminal.test.tsx +504 -0
- coord/dashboard/webapp/src/components/ui/badge.tsx +41 -0
- coord/dashboard/webapp/src/components/ui/button.tsx +54 -0
- coord/dashboard/webapp/src/components/ui/card.tsx +55 -0
- coord/dashboard/webapp/src/components/ui/dialog.tsx +99 -0
- coord/dashboard/webapp/src/components/ui/dropdown-menu.tsx +189 -0
- coord/dashboard/webapp/src/components/ui/empty-state.tsx +35 -0
- coord/dashboard/webapp/src/components/ui/sheet.tsx +123 -0
- coord/dashboard/webapp/src/components/ui/skeleton.tsx +9 -0
- coord/dashboard/webapp/src/components/ui/tabs.tsx +55 -0
- coord/dashboard/webapp/src/components/ui/theme-provider.tsx +78 -0
- coord/dashboard/webapp/src/components/ui/theme-toggle.tsx +20 -0
- coord/dashboard/webapp/src/components/ui/toast.tsx +123 -0
- coord/dashboard/webapp/src/components/ui/toaster.tsx +30 -0
- coord/dashboard/webapp/src/components/ui/tooltip.tsx +26 -0
- coord/dashboard/webapp/src/components/ui/use-toast.ts +134 -0
- coord/dashboard/webapp/src/index.css +210 -0
- coord/dashboard/webapp/src/lib/pipeline.ts +29 -0
- coord/dashboard/webapp/src/lib/utils.ts +6 -0
- coord/dashboard/webapp/src/main.tsx +46 -0
- coord/dashboard/webapp/src/realtime/RealtimeProvider.tsx +112 -0
- coord/dashboard/webapp/src/realtime/__tests__/RealtimeProvider.test.tsx +189 -0
- coord/dashboard/webapp/src/realtime/__tests__/connection.test.ts +255 -0
- coord/dashboard/webapp/src/realtime/connection.ts +227 -0
- coord/dashboard/webapp/src/realtime/events.ts +100 -0
- coord/dashboard/webapp/src/routes/__tests__/paths.test.ts +92 -0
- coord/dashboard/webapp/src/routes/paths.ts +92 -0
- coord/dashboard/webapp/src/shell/ActivityRail.tsx +335 -0
- coord/dashboard/webapp/src/shell/AppShell.tsx +276 -0
- coord/dashboard/webapp/src/shell/ComingSoon.tsx +33 -0
- coord/dashboard/webapp/src/shell/EmptyDetail.tsx +26 -0
- coord/dashboard/webapp/src/shell/RouteNotFound.tsx +33 -0
- coord/dashboard/webapp/src/shell/ShellLayout.tsx +147 -0
- coord/dashboard/webapp/src/shell/StatusBar.tsx +46 -0
- coord/dashboard/webapp/src/shell/__tests__/ShellLayout.test.tsx +520 -0
- coord/dashboard/webapp/src/shell/__tests__/shellState.test.ts +95 -0
- coord/dashboard/webapp/src/shell/__tests__/stubViewport.ts +40 -0
- coord/dashboard/webapp/src/shell/breakpoints.ts +87 -0
- coord/dashboard/webapp/src/shell/railItems.ts +105 -0
- coord/dashboard/webapp/src/shell/shellState.ts +174 -0
- coord/dashboard/webapp/src/shell/useRegionFocus.ts +95 -0
- coord/dashboard/webapp/src/test-setup.ts +41 -0
- coord/dashboard/webapp/src/vite-env.d.ts +2 -0
- coord/dashboard/webapp/tailwind.config.js +140 -0
- coord/dashboard/webapp/tsconfig.json +25 -0
- coord/dashboard/webapp/tsconfig.node.json +11 -0
- coord/dashboard/webapp/vite.config.ts +71 -0
- coord/db.py +1076 -0
- coord/dead_end.py +332 -0
- coord/deploy/README.md +33 -0
- coord/deploy/coord-agent.service +89 -0
- coord/deploy/coord-db-backup.service +60 -0
- coord/deploy/coord-db-backup.sh +74 -0
- coord/deploy/coord-db-backup.timer +18 -0
- coord/deploy/coord-drive-queue.service +117 -0
- coord/deploy/coord-drive-queue.timer +39 -0
- coord/deploy/coord-notify.service +48 -0
- coord/deploy/coord-notify.timer +24 -0
- coord/deploy/coord-release-propagate.service +83 -0
- coord/deploy/coord-release-propagate.timer +38 -0
- coord/deploy/coord-release-window.service +119 -0
- coord/deploy/coord-release-window.timer +36 -0
- coord/deploy/coord-serve.service +82 -0
- coord/deploy/coord-web-dist-build.service +43 -0
- coord/deploy/coord-web-dist-build.timer +36 -0
- coord/deploy/coord-web.service +125 -0
- coord/deploy_manifest.py +80 -0
- coord/deploy_units.py +384 -0
- coord/deps.py +115 -0
- coord/diagnose.py +1623 -0
- coord/dispatch.py +1009 -0
- coord/dist_name.py +123 -0
- coord/drive.py +3101 -0
- coord/drive_queue.py +2298 -0
- coord/drive_state.py +870 -0
- coord/events.py +381 -0
- coord/failure_class.py +914 -0
- coord/filelock.py +168 -0
- coord/fleet_config_health.py +300 -0
- coord/freshness.py +206 -0
- coord/gate_a.py +469 -0
- coord/gate_b.py +411 -0
- coord/gate_snapshot.py +385 -0
- coord/gates.py +582 -0
- coord/github_ops.py +1954 -0
- coord/goal.py +125 -0
- coord/graph_health.py +348 -0
- coord/health/__init__.py +69 -0
- coord/health/aggregate.py +129 -0
- coord/health/checks/__init__.py +13 -0
- coord/health/checks/agent_install.py +280 -0
- coord/health/checks/cargo_targets.py +171 -0
- coord/health/checks/claude_binary.py +65 -0
- coord/health/checks/deploy_lane_facts.py +458 -0
- coord/health/checks/disk.py +99 -0
- coord/health/checks/fleet_board.py +89 -0
- coord/health/checks/fleet_deploy_lanes.py +469 -0
- coord/health/checks/fleet_phantom.py +69 -0
- coord/health/checks/fleet_unit_drift.py +151 -0
- coord/health/checks/graph.py +192 -0
- coord/health/checks/plan_usage.py +88 -0
- coord/health/checks/repo_state.py +161 -0
- coord/health/checks/spawned_coord.py +465 -0
- coord/health/checks/timer_active.py +254 -0
- coord/health/checks/toolchain.py +547 -0
- coord/health/checks/unit_drift.py +648 -0
- coord/health/checks/unit_enablement.py +171 -0
- coord/health/checks/worktrees.py +96 -0
- coord/health/cli.py +121 -0
- coord/health/context.py +106 -0
- coord/health/fleet_snapshot.py +477 -0
- coord/health/models.py +250 -0
- coord/health/pypi.py +231 -0
- coord/health/registry.py +240 -0
- coord/health/render.py +82 -0
- coord/health/units.py +60 -0
- coord/hooks.py +106 -0
- coord/housekeeping.py +204 -0
- coord/interactive.py +4286 -0
- coord/issue_store.py +1496 -0
- coord/liveness_auditor.py +293 -0
- coord/machine_pause.py +755 -0
- coord/merge_queue.py +4681 -0
- coord/milestone_chat.py +600 -0
- coord/milestone_dispatch.py +943 -0
- coord/milestone_gate.py +709 -0
- coord/milestone_order.py +840 -0
- coord/mock_author.py +334 -0
- coord/models.py +891 -0
- coord/network.py +269 -0
- coord/new_issue_chat.py +229 -0
- coord/notify.py +3226 -0
- coord/openapi.py +404 -0
- coord/overlap_fence.py +133 -0
- coord/parentage.py +200 -0
- coord/parentage_github.py +58 -0
- coord/pipeline.py +481 -0
- coord/plan_parser.py +266 -0
- coord/plans.py +543 -0
- coord/platform_paths.py +43 -0
- coord/pr_body_lint.py +67 -0
- coord/prereqs.py +533 -0
- coord/progress.py +425 -0
- coord/providers/__init__.py +683 -0
- coord/providers/base.py +218 -0
- coord/providers/claude.py +284 -0
- coord/providers/claude_pty.py +610 -0
- coord/providers/opencode.py +896 -0
- coord/reconcile.py +2233 -0
- coord/refine_chat.py +485 -0
- coord/release_cordon.py +525 -0
- coord/release_propagate.py +1176 -0
- coord/release_verify.py +777 -0
- coord/release_window.py +322 -0
- coord/reports.py +1643 -0
- coord/revalidate.py +1101 -0
- coord/review.py +3317 -0
- coord/scorecard.py +484 -0
- coord/serve_app.py +7192 -0
- coord/skills/update-issue/SKILL.md +93 -0
- coord/smoke.py +1030 -0
- coord/split_work.py +210 -0
- coord/stage_projection.py +650 -0
- coord/state.py +5720 -0
- coord/test_author.py +1064 -0
- coord/test_chat.py +352 -0
- coord/test_orchestrator.py +494 -0
- coord/test_report.py +178 -0
- coord/tui_release.py +271 -0
- coord/usage.py +753 -0
- coord/usage_limits.py +358 -0
- coord/usage_rollup.py +709 -0
- coord/worker_events.py +954 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import{c as Fe,j as s,a as I,d as ho,r as l,e as de,R as go,f as Pe,g as z,h as Je,i as Ke,P as G,k as P,l as vo,m as ge,n as xo,o as Ea,D as gn,p as bo,X as wo,q as Pa,s as Ma,C as Da,v as ja,w as _a,T as Ia,x as Aa,y as Oa,B as H,z as Na,A as Bt,E as ka}from"./index-DltfZR5f.js";/**
|
|
2
|
+
* @license lucide-react v0.462.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const Fa=Fe("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
7
|
+
* @license lucide-react v0.462.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/const La=Fe("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
12
|
+
* @license lucide-react v0.462.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const $a=Fe("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
|
|
17
|
+
* @license lucide-react v0.462.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const Ha=Fe("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/**
|
|
22
|
+
* @license lucide-react v0.462.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/const Un=Fe("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
27
|
+
* @license lucide-react v0.462.0 - ISC
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the ISC license.
|
|
30
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/const Ba=Fe("TriangleAlert",[["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"}]]),Ga=ho("inline-flex items-center gap-1 rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",outline:"border-line-strong text-foreground",success:"border-transparent bg-pass-wash text-pass",warning:"border-transparent bg-attn-wash text-attn",destructive:"border-transparent bg-fail-wash text-fail"}},defaultVariants:{variant:"default"}});function re({className:e,variant:t,...n}){return s.jsx("div",{className:I(Ga({variant:t}),e),...n})}const ut=l.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:I("rounded-lg border bg-card text-card-foreground",e),...t}));ut.displayName="Card";const Jt=l.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:I("flex flex-col space-y-1.5 p-4",e),...t}));Jt.displayName="CardHeader";const en=l.forwardRef(({className:e,...t},n)=>s.jsx("h3",{ref:n,className:I("text-base font-semibold leading-none tracking-tight",e),...t}));en.displayName="CardTitle";const tn=l.forwardRef(({className:e,...t},n)=>s.jsx("p",{ref:n,className:I("text-sm text-muted-foreground",e),...t}));tn.displayName="CardDescription";const yo=l.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:I("p-4 pt-0",e),...t}));yo.displayName="CardContent";const Co=l.forwardRef(({className:e,...t},n)=>s.jsx("div",{ref:n,className:I("flex items-center p-4 pt-0",e),...t}));Co.displayName="CardFooter";var Wa=Object.defineProperty,Va=(e,t)=>Wa(e,"name",{value:t,configurable:!0}),za=go[" useId ".trim().toString()]||(()=>{}),Ka=0;function fe(e){const[t,n]=l.useState(za());return de(()=>{e||n(o=>o??String(Ka++))},[e]),e||(t?`radix-${t}`:"")}Va(fe,"useId");var Ua=Object.defineProperty,Ya=(e,t)=>Ua(e,"name",{value:t,configurable:!0}),Xa=l.createContext(void 0);function wt(e){const t=l.useContext(Xa);return e||t||"ltr"}Ya(wt,"useDirection");var qa=Object.defineProperty,vn=(e,t)=>qa(e,"name",{value:t,configurable:!0}),Gt=!1;function Ro(){const[e,t]=l.useState(Gt);return l.useEffect(()=>{Gt||(Gt=!0,t(!0))},[]),e}vn(Ro,"useIsHydrated");var So=go[" useSyncExternalStore ".trim().toString()];function To(){return()=>{}}vn(To,"subscribe");function Eo(){return So(To,()=>!0,()=>!1)}vn(Eo,"useIsHydratedModern");var Za=typeof So=="function"?Eo:Ro,Qa=Object.defineProperty,Me=(e,t)=>Qa(e,"name",{value:t,configurable:!0}),Wt="rovingFocusGroup.onEntryFocus",Ja={bubbles:!1,cancelable:!0},yt="RovingFocusGroup",[nn,Po,ei]=vo(yt),[ti,Ct]=Pe(yt,[ei]),[ni,oi]=ti(yt),ri=l.forwardRef(Me(function(t,n){return s.jsx(nn.Provider,{scope:t.__scopeRovingFocusGroup,children:s.jsx(nn.Slot,{scope:t.__scopeRovingFocusGroup,children:s.jsx(ai,{...t,ref:n})})})},"RovingFocusGroup")),ai=l.forwardRef(Me(function(t,n){const{__scopeRovingFocusGroup:o,orientation:r,loop:a=!1,dir:i,currentTabStopId:c,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:f,onEntryFocus:g,preventScrollOnEntryFocus:p=!1,...d}=t,m=l.useRef(null),v=z(n,m),h=wt(i),[x,w]=Je({prop:c,defaultProp:u??null,onChange:f,caller:yt}),[b,R]=l.useState(!1),y=Ke(g),C=Po(o),S=l.useRef(!1),[E,D]=l.useState(0);return l.useEffect(()=>{const M=m.current;if(M)return M.addEventListener(Wt,y),()=>M.removeEventListener(Wt,y)},[y]),s.jsx(ni,{scope:o,orientation:r,dir:h,loop:a,currentTabStopId:x,onItemFocus:l.useCallback(M=>w(M),[w]),onItemShiftTab:l.useCallback(()=>R(!0),[]),onFocusableItemAdd:l.useCallback(()=>D(M=>M+1),[]),onFocusableItemRemove:l.useCallback(()=>D(M=>M-1),[]),children:s.jsx(G.div,{tabIndex:b||E===0?-1:0,"data-orientation":r,...d,ref:v,style:{outline:"none",...t.style},onMouseDown:P(t.onMouseDown,()=>{S.current=!0}),onFocus:P(t.onFocus,M=>{const j=!S.current;if(M.target===M.currentTarget&&j&&!b){const F=new CustomEvent(Wt,Ja);if(M.currentTarget.dispatchEvent(F),!F.defaultPrevented){const B=C().filter($=>$.focusable),k=B.find($=>$.active),N=B.find($=>$.id===x),L=[k,N,...B].filter(Boolean).map($=>$.ref.current);xn(L,p)}}S.current=!1}),onBlur:P(t.onBlur,()=>R(!1))})})},"RovingFocusGroupImpl")),ii="RovingFocusGroupItem",si=l.forwardRef(Me(function(t,n){const{__scopeRovingFocusGroup:o,focusable:r=!0,active:a=!1,tabStopId:i,children:c,...u}=t,f=fe(),g=i||f,p=oi(ii,o),d=p.currentTabStopId===g,m=Po(o),{onFocusableItemAdd:v,onFocusableItemRemove:h,currentTabStopId:x}=p,w=Za();return de(()=>{if(!(!w||!r))return v(),()=>h()},[w,r,v,h]),l.useEffect(()=>{if(!(w||!r))return v(),()=>h()},[w,r,v,h]),s.jsx(nn.ItemSlot,{scope:o,id:g,focusable:r,active:a,children:s.jsx(G.span,{tabIndex:d?0:-1,"data-orientation":p.orientation,...u,ref:n,onMouseDown:P(t.onMouseDown,b=>{r?p.onItemFocus(g):b.preventDefault()}),onFocus:P(t.onFocus,()=>p.onItemFocus(g)),onKeyDown:P(t.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){p.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const R=Do(b,p.orientation,p.dir);if(R!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let C=m().filter(S=>S.focusable).map(S=>S.ref.current);if(R==="last")C.reverse();else if(R==="prev"||R==="next"){R==="prev"&&C.reverse();const S=C.indexOf(b.currentTarget);C=p.loop?jo(C,S+1):C.slice(S+1)}setTimeout(()=>xn(C))}}),children:typeof c=="function"?c({isCurrentTabStop:d,hasTabStop:x!=null}):c})})},"RovingFocusGroupItem")),ci={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Mo(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}Me(Mo,"getDirectionAwareKey");function Do(e,t,n){const o=Mo(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return ci[o]}Me(Do,"getFocusIntent");function xn(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}Me(xn,"focusFirst");function jo(e,t){return e.map((n,o)=>e[(t+o)%e.length])}Me(jo,"wrapArray");var _o=ri,Io=si,li=Object.defineProperty,Le=(e,t)=>li(e,"name",{value:t,configurable:!0}),bn="Tabs",[ui,Su]=Pe(bn,[Ct]),Ao=Ct(),[di,wn]=ui(bn),fi=l.forwardRef(Le(function(t,n){const{__scopeTabs:o,value:r,onValueChange:a,defaultValue:i,orientation:c="horizontal",dir:u,activationMode:f="automatic",...g}=t,p=wt(u),[d,m]=Je({prop:r,onChange:a,defaultProp:i??"",caller:bn});return s.jsx(di,{scope:o,baseId:fe(),value:d,onValueChange:m,orientation:c,dir:p,activationMode:f,children:s.jsx(G.div,{dir:p,"data-orientation":c,...g,ref:n})})},"Tabs")),pi="TabsList",mi=l.forwardRef(Le(function(t,n){const{__scopeTabs:o,loop:r=!0,...a}=t,i=wn(pi,o),c=Ao(o);return s.jsx(_o,{asChild:!0,...c,orientation:i.orientation,dir:i.dir,loop:r,children:s.jsx(G.div,{role:"tablist","aria-orientation":i.orientation,...a,ref:n})})},"TabsList")),hi="TabsTrigger",gi=l.forwardRef(Le(function(t,n){const{__scopeTabs:o,value:r,disabled:a=!1,...i}=t,c=wn(hi,o),u=Ao(o),f=yn(c.baseId,r),g=Cn(c.baseId,r),p=r===c.value;return s.jsx(Io,{asChild:!0,...u,focusable:!a,active:p,children:s.jsx(G.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":g,"data-state":p?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:f,...i,ref:n,onMouseDown:P(t.onMouseDown,d=>{!a&&d.button===0&&d.ctrlKey===!1?c.onValueChange(r):d.preventDefault()}),onKeyDown:P(t.onKeyDown,d=>{a||d.target!==d.currentTarget||[" ","Enter"].includes(d.key)&&c.onValueChange(r)}),onFocus:P(t.onFocus,()=>{const d=c.activationMode!=="manual";!p&&!a&&d&&c.onValueChange(r)})})})},"TabsTrigger")),vi="TabsContent",xi=l.forwardRef(Le(function(t,n){const{__scopeTabs:o,value:r,forceMount:a,children:i,...c}=t,u=wn(vi,o),f=yn(u.baseId,r),g=Cn(u.baseId,r),p=r===u.value,d=l.useRef(p);return l.useEffect(()=>{const m=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(m)},[]),s.jsx(ge,{present:a||p,children:({present:m})=>s.jsx(G.div,{"data-state":p?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":f,hidden:!m,id:g,tabIndex:0,...c,ref:n,style:{...t.style,animationDuration:d.current?"0s":void 0},children:m&&i})})},"TabsContent"));function yn(e,t){return`${e}-trigger-${t}`}Le(yn,"makeTriggerId");function Cn(e,t){return`${e}-content-${t}`}Le(Cn,"makeContentId");var bi=fi,Oo=mi,No=gi,ko=xi;const wi=bi,Fo=l.forwardRef(({className:e,...t},n)=>s.jsx(Oo,{ref:n,className:I("flex items-center gap-2 border-b border-border",e),...t}));Fo.displayName=Oo.displayName;const dt=l.forwardRef(({className:e,...t},n)=>s.jsx(No,{ref:n,className:I("flex items-center gap-1.5 whitespace-nowrap border-b-2 border-transparent px-3 py-2.5 text-sm text-muted-foreground transition-colors","hover:text-foreground","data-[state=active]:border-primary data-[state=active]:text-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background","disabled:pointer-events-none disabled:opacity-50",e),...t}));dt.displayName=No.displayName;const ft=l.forwardRef(({className:e,...t},n)=>s.jsx(ko,{ref:n,className:I("mt-4 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));ft.displayName=ko.displayName;var yi=Object.defineProperty,U=(e,t)=>yi(e,"name",{value:t,configurable:!0}),Vt="focusScope.autoFocusOnMount",zt="focusScope.autoFocusOnUnmount",Yn={bubbles:!1,cancelable:!0},Lo=l.forwardRef(U(function(t,n){const{loop:o=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...c}=t,[u,f]=l.useState(null),g=Ke(a),p=Ke(i),d=l.useRef(null),m=z(n,f),v=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let x=function(y){if(v.paused||!u)return;const C=y.target;u.contains(C)?d.current=C:ue(d.current,{select:!0})},w=function(y){if(v.paused||!u)return;const C=y.relatedTarget;C!==null&&(u.contains(C)||ue(d.current,{select:!0}))},b=function(y){if(document.activeElement===document.body)for(const S of y)S.removedNodes.length>0&&ue(u)};U(x,"handleFocusIn"),U(w,"handleFocusOut"),U(b,"handleMutations"),document.addEventListener("focusin",x),document.addEventListener("focusout",w);const R=new MutationObserver(b);return u&&R.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",w),R.disconnect()}}},[r,u,v.paused]),l.useEffect(()=>{if(u){Xn.add(v);const x=document.activeElement;if(!u.contains(x)){const b=new CustomEvent(Vt,Yn);u.addEventListener(Vt,g),u.dispatchEvent(b),b.defaultPrevented||($o(Vo(Rn(u)),{select:!0}),document.activeElement===x&&ue(u))}return()=>{u.removeEventListener(Vt,g),setTimeout(()=>{const b=new CustomEvent(zt,Yn);u.addEventListener(zt,p),u.dispatchEvent(b),b.defaultPrevented||ue(x??document.body,{select:!0}),u.removeEventListener(zt,p),Xn.remove(v)},0)}}},[u,g,p,v]);const h=l.useCallback(x=>{if(!o&&!r||v.paused)return;const w=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,b=document.activeElement;if(w&&b){const R=x.currentTarget,[y,C]=Ho(R);y&&C?!x.shiftKey&&b===C?(x.preventDefault(),o&&ue(y,{select:!0})):x.shiftKey&&b===y&&(x.preventDefault(),o&&ue(C,{select:!0})):b===R&&x.preventDefault()}},[o,r,v.paused]);return s.jsx(G.div,{tabIndex:-1,...c,ref:m,onKeyDown:h})},"FocusScope"));function $o(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(ue(o,{select:t}),document.activeElement!==n)return}U($o,"focusFirst");function Ho(e){const t=Rn(e),n=on(t,e),o=on(t.reverse(),e);return[n,o]}U(Ho,"getTabbableEdges");function Rn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:U(o=>{const r=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||r?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}U(Rn,"getTabbableCandidates");function on(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const o of e)if(!(n?!o.checkVisibility({checkVisibilityCSS:!0}):Bo(o,{upTo:t})))return o}U(on,"findVisible");function Bo(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}U(Bo,"isHidden");function Go(e){return e instanceof HTMLInputElement&&"select"in e}U(Go,"isSelectableInput");function ue(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Go(e)&&t&&e.select()}}U(ue,"focus");var Xn=Wo();function Wo(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=rn(e,t),e.unshift(t)},remove(t){var n;e=rn(e,t),(n=e[0])==null||n.resume()}}}U(Wo,"createFocusScopesStack");function rn(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}U(rn,"arrayRemove");function Vo(e){return e.filter(t=>t.tagName!=="A")}U(Vo,"removeLinks");var Ci=Object.defineProperty,Sn=(e,t)=>Ci(e,"name",{value:t,configurable:!0}),ot=0,ae=null;function Ri(e){return Rt(),e.children}Sn(Ri,"FocusGuards");function Rt(){l.useEffect(()=>{ae||(ae={start:an(),end:an()});const{start:e,end:t}=ae;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),ot++,()=>{ot===1&&(ae==null||ae.start.remove(),ae==null||ae.end.remove(),ae=null),ot=Math.max(0,ot-1)}},[])}Sn(Rt,"useFocusGuards");function an(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}Sn(an,"createFocusGuard");var ie=function(){return ie=Object.assign||function(t){for(var n,o=1,r=arguments.length;o<r;o++){n=arguments[o];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ie.apply(this,arguments)};function zo(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}function Si(e,t,n){if(n||arguments.length===2)for(var o=0,r=t.length,a;o<r;o++)(a||!(o in t))&&(a||(a=Array.prototype.slice.call(t,0,o)),a[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))}var pt="right-scroll-bar-position",mt="width-before-scroll-bar",Ti="with-scroll-bars-hidden",Ei="--removed-body-scroll-bar-size";function Kt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Pi(e,t){var n=l.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var r=n.value;r!==o&&(n.value=o,n.callback(o,r))}}}})[0];return n.callback=t,n.facade}var Mi=typeof window<"u"?l.useLayoutEffect:l.useEffect,qn=new WeakMap;function Di(e,t){var n=Pi(null,function(o){return e.forEach(function(r){return Kt(r,o)})});return Mi(function(){var o=qn.get(n);if(o){var r=new Set(o),a=new Set(e),i=n.current;r.forEach(function(c){a.has(c)||Kt(c,null)}),a.forEach(function(c){r.has(c)||Kt(c,i)})}qn.set(n,e)},[e]),n}function ji(e){return e}function _i(e,t){t===void 0&&(t=ji);var n=[],o=!1,r={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var i=t(a,o);return n.push(i),function(){n=n.filter(function(c){return c!==i})}},assignSyncMedium:function(a){for(o=!0;n.length;){var i=n;n=[],i.forEach(a)}n={push:function(c){return a(c)},filter:function(){return n}}},assignMedium:function(a){o=!0;var i=[];if(n.length){var c=n;n=[],c.forEach(a),i=n}var u=function(){var g=i;i=[],g.forEach(a)},f=function(){return Promise.resolve().then(u)};f(),n={push:function(g){i.push(g),f()},filter:function(g){return i=i.filter(g),n}}}};return r}function Ii(e){e===void 0&&(e={});var t=_i(null);return t.options=ie({async:!0,ssr:!1},e),t}var Ko=function(e){var t=e.sideCar,n=zo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return l.createElement(o,ie({},n))};Ko.isSideCarExport=!0;function Ai(e,t){return e.useMedium(t),Ko}var Uo=Ii(),Ut=function(){},St=l.forwardRef(function(e,t){var n=l.useRef(null),o=l.useState({onScrollCapture:Ut,onWheelCapture:Ut,onTouchMoveCapture:Ut}),r=o[0],a=o[1],i=e.forwardProps,c=e.children,u=e.className,f=e.removeScrollBar,g=e.enabled,p=e.shards,d=e.sideCar,m=e.noRelative,v=e.noIsolation,h=e.inert,x=e.allowPinchZoom,w=e.as,b=w===void 0?"div":w,R=e.gapMode,y=zo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=d,S=Di([n,t]),E=ie(ie({},y),r);return l.createElement(l.Fragment,null,g&&l.createElement(C,{sideCar:Uo,removeScrollBar:f,shards:p,noRelative:m,noIsolation:v,inert:h,setCallbacks:a,allowPinchZoom:!!x,lockRef:n,gapMode:R}),i?l.cloneElement(l.Children.only(c),ie(ie({},E),{ref:S})):l.createElement(b,ie({},E,{className:u,ref:S}),c))});St.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};St.classNames={fullWidth:mt,zeroRight:pt};var Oi=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ni(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Oi();return t&&e.setAttribute("nonce",t),e}function ki(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Fi(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Li=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ni())&&(ki(t,n),Fi(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$i=function(){var e=Li();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Yo=function(){var e=$i(),t=function(n){var o=n.styles,r=n.dynamic;return e(o,r),null};return t},Hi={left:0,top:0,right:0,gap:0},Yt=function(e){return parseInt(e||"",10)||0},Bi=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Yt(n),Yt(o),Yt(r)]},Gi=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Hi;var t=Bi(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},Wi=Yo(),Oe="data-scroll-locked",Vi=function(e,t,n,o){var r=e.left,a=e.top,i=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
32
|
+
.`.concat(Ti,` {
|
|
33
|
+
overflow: hidden `).concat(o,`;
|
|
34
|
+
padding-right: `).concat(c,"px ").concat(o,`;
|
|
35
|
+
}
|
|
36
|
+
body[`).concat(Oe,`] {
|
|
37
|
+
overflow: hidden `).concat(o,`;
|
|
38
|
+
overscroll-behavior: contain;
|
|
39
|
+
`).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
|
|
40
|
+
padding-left: `.concat(r,`px;
|
|
41
|
+
padding-top: `).concat(a,`px;
|
|
42
|
+
padding-right: `).concat(i,`px;
|
|
43
|
+
margin-left:0;
|
|
44
|
+
margin-top:0;
|
|
45
|
+
margin-right: `).concat(c,"px ").concat(o,`;
|
|
46
|
+
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(o,";")].filter(Boolean).join(""),`
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.`).concat(pt,` {
|
|
50
|
+
right: `).concat(c,"px ").concat(o,`;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.`).concat(mt,` {
|
|
54
|
+
margin-right: `).concat(c,"px ").concat(o,`;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.`).concat(pt," .").concat(pt,` {
|
|
58
|
+
right: 0 `).concat(o,`;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.`).concat(mt," .").concat(mt,` {
|
|
62
|
+
margin-right: 0 `).concat(o,`;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
body[`).concat(Oe,`] {
|
|
66
|
+
`).concat(Ei,": ").concat(c,`px;
|
|
67
|
+
}
|
|
68
|
+
`)},Zn=function(){var e=parseInt(document.body.getAttribute(Oe)||"0",10);return isFinite(e)?e:0},zi=function(){l.useEffect(function(){return document.body.setAttribute(Oe,(Zn()+1).toString()),function(){var e=Zn()-1;e<=0?document.body.removeAttribute(Oe):document.body.setAttribute(Oe,e.toString())}},[])},Ki=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,r=o===void 0?"margin":o;zi();var a=l.useMemo(function(){return Gi(r)},[r]);return l.createElement(Wi,{styles:Vi(a,!t,r,n?"":"!important")})},sn=!1;if(typeof window<"u")try{var rt=Object.defineProperty({},"passive",{get:function(){return sn=!0,!0}});window.addEventListener("test",rt,rt),window.removeEventListener("test",rt,rt)}catch{sn=!1}var _e=sn?{passive:!1}:!1,Ui=function(e){return e.tagName==="TEXTAREA"},Xo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ui(e)&&n[t]==="visible")},Yi=function(e){return Xo(e,"overflowY")},Xi=function(e){return Xo(e,"overflowX")},Qn=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var r=qo(e,o);if(r){var a=Zo(e,o),i=a[1],c=a[2];if(i>c)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},qi=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},Zi=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},qo=function(e,t){return e==="v"?Yi(t):Xi(t)},Zo=function(e,t){return e==="v"?qi(t):Zi(t)},Qi=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ji=function(e,t,n,o,r){var a=Qi(e,window.getComputedStyle(t).direction),i=a*o,c=n.target,u=t.contains(c),f=!1,g=i>0,p=0,d=0;do{if(!c)break;var m=Zo(e,c),v=m[0],h=m[1],x=m[2],w=h-x-a*v;(v||w)&&qo(e,c)&&(p+=w,d+=v);var b=c.parentNode;c=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(g&&Math.abs(p)<1||!g&&Math.abs(d)<1)&&(f=!0),f},at=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Jn=function(e){return[e.deltaX,e.deltaY]},eo=function(e){return e&&"current"in e?e.current:e},es=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ts=function(e){return`
|
|
69
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
70
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
71
|
+
`)},ns=0,Ie=[];function os(e){var t=l.useRef([]),n=l.useRef([0,0]),o=l.useRef(),r=l.useState(ns++)[0],a=l.useState(Yo)[0],i=l.useRef(e);l.useEffect(function(){i.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var h=Si([e.lockRef.current],(e.shards||[]).map(eo),!0).filter(Boolean);return h.forEach(function(x){return x.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),h.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var c=l.useCallback(function(h,x){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var w=at(h),b=n.current,R="deltaX"in h?h.deltaX:b[0]-w[0],y="deltaY"in h?h.deltaY:b[1]-w[1],C,S=h.target,E=Math.abs(R)>Math.abs(y)?"h":"v";if("touches"in h&&E==="h"&&S.type==="range")return!1;var D=window.getSelection(),M=D&&D.anchorNode,j=M?M===S||M.contains(S):!1;if(j)return!1;var F=Qn(E,S);if(!F)return!0;if(F?C=E:(C=E==="v"?"h":"v",F=Qn(E,S)),!F)return!1;if(!o.current&&"changedTouches"in h&&(R||y)&&(o.current=C),!C)return!0;var B=o.current||C;return Ji(B,x,h,B==="h"?R:y)},[]),u=l.useCallback(function(h){var x=h;if(!(!Ie.length||Ie[Ie.length-1]!==a)){var w="deltaY"in x?Jn(x):at(x),b=t.current.filter(function(C){return C.name===x.type&&(C.target===x.target||x.target===C.shadowParent)&&es(C.delta,w)})[0];if(b&&b.should){x.cancelable&&x.preventDefault();return}if(!b){var R=(i.current.shards||[]).map(eo).filter(Boolean).filter(function(C){return C.contains(x.target)}),y=R.length>0?c(x,R[0]):!i.current.noIsolation;y&&x.cancelable&&x.preventDefault()}}},[]),f=l.useCallback(function(h,x,w,b){var R={name:h,delta:x,target:w,should:b,shadowParent:rs(w)};t.current.push(R),setTimeout(function(){t.current=t.current.filter(function(y){return y!==R})},1)},[]),g=l.useCallback(function(h){n.current=at(h),o.current=void 0},[]),p=l.useCallback(function(h){f(h.type,Jn(h),h.target,c(h,e.lockRef.current))},[]),d=l.useCallback(function(h){f(h.type,at(h),h.target,c(h,e.lockRef.current))},[]);l.useEffect(function(){return Ie.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:d}),document.addEventListener("wheel",u,_e),document.addEventListener("touchmove",u,_e),document.addEventListener("touchstart",g,_e),function(){Ie=Ie.filter(function(h){return h!==a}),document.removeEventListener("wheel",u,_e),document.removeEventListener("touchmove",u,_e),document.removeEventListener("touchstart",g,_e)}},[]);var m=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(a,{styles:ts(r)}):null,m?l.createElement(Ki,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function rs(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const as=Ai(Uo,os);var Tn=l.forwardRef(function(e,t){return l.createElement(St,ie({},e,{ref:t,sideCar:as}))});Tn.classNames=St.classNames;var is=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ae=new WeakMap,it=new WeakMap,st={},Xt=0,Qo=function(e){return e&&(e.host||Qo(e.parentNode))},ss=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=Qo(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},cs=function(e,t,n,o){var r=ss(t,Array.isArray(e)?e:[e]);st[n]||(st[n]=new WeakMap);var a=st[n],i=[],c=new Set,u=new Set(r),f=function(p){!p||c.has(p)||(c.add(p),f(p.parentNode))};r.forEach(f);var g=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(d){if(c.has(d))g(d);else try{var m=d.getAttribute(o),v=m!==null&&m!=="false",h=(Ae.get(d)||0)+1,x=(a.get(d)||0)+1;Ae.set(d,h),a.set(d,x),i.push(d),h===1&&v&&it.set(d,!0),x===1&&d.setAttribute(n,"true"),v||d.setAttribute(o,"true")}catch(w){console.error("aria-hidden: cannot operate on ",d,w)}})};return g(t),c.clear(),Xt++,function(){i.forEach(function(p){var d=Ae.get(p)-1,m=a.get(p)-1;Ae.set(p,d),a.set(p,m),d||(it.has(p)||p.removeAttribute(o),it.delete(p)),m||p.removeAttribute(n)}),Xt--,Xt||(Ae=new WeakMap,Ae=new WeakMap,it=new WeakMap,st={})}},Jo=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),r=is(e);return r?(o.push.apply(o,Array.from(r.querySelectorAll("[aria-live], script"))),cs(o,r,n,"aria-hidden")):function(){return null}},ls=Object.defineProperty,Z=(e,t)=>ls(e,"name",{value:t,configurable:!0}),En="Dialog",[er,Tu]=Pe(En),[us,oe]=er(En),tr=Z(e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:r,onOpenChange:a,modal:i=!0}=e,c=l.useRef(null),u=l.useRef(null),[f,g]=Je({prop:o,defaultProp:r??!1,onChange:a,caller:En}),[p,d]=l.useState(0),[m,v]=l.useState(0);return s.jsx(us,{scope:t,triggerRef:c,contentRef:u,contentId:fe(),titleId:fe(),descriptionId:fe(),titlePresent:p>0,descriptionPresent:m>0,setTitleCount:d,setDescriptionCount:v,open:f,onOpenChange:g,onOpenToggle:l.useCallback(()=>g(h=>!h),[g]),modal:i,children:n})},"Dialog"),ds="DialogTrigger",nr=l.forwardRef(Z(function(t,n){const{__scopeDialog:o,...r}=t,a=oe(ds,o),i=z(n,a.triggerRef);return s.jsx(G.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":Dt(a.open),...r,ref:i,onClick:P(t.onClick,a.onOpenToggle)})},"DialogTrigger")),or="DialogPortal",[fs,rr]=er(or,{forceMount:void 0}),ar=Z(e=>{const{__scopeDialog:t,forceMount:n,children:o,container:r}=e,a=oe(or,t);return s.jsx(fs,{scope:t,forceMount:n,children:l.Children.map(o,i=>s.jsx(ge,{present:n||a.open,children:s.jsx(xo,{asChild:!0,container:r,children:i})}))})},"DialogPortal"),cn="DialogOverlay",Tt=l.forwardRef(Z(function(t,n){const o=rr(cn,t.__scopeDialog),{forceMount:r=o.forceMount,...a}=t,i=oe(cn,t.__scopeDialog);return i.modal?s.jsx(ge,{present:r||i.open,children:s.jsx(ms,{...a,ref:n})}):null},"DialogOverlay")),ps=bo("DialogOverlay.RemoveScroll"),ms=l.forwardRef(Z(function(t,n){const{__scopeDialog:o,...r}=t,a=oe(cn,o),i=Ea(),c=z(n,i);return s.jsx(Tn,{as:ps,allowPinchZoom:!0,shards:[a.contentRef],children:s.jsx(G.div,{"data-state":Dt(a.open),...r,ref:c,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),Ue="DialogContent",Et=l.forwardRef(Z(function(t,n){const o=rr(Ue,t.__scopeDialog),{forceMount:r=o.forceMount,...a}=t,i=oe(Ue,t.__scopeDialog);return s.jsx(ge,{present:r||i.open,children:i.modal?s.jsx(hs,{...a,ref:n}):s.jsx(gs,{...a,ref:n})})},"DialogContent")),hs=l.forwardRef(Z(function(t,n){const o=oe(Ue,t.__scopeDialog),r=l.useRef(null),a=z(n,o.contentRef,r);return l.useEffect(()=>{const i=r.current;if(i)return Jo(i)},[]),s.jsx(ir,{...t,ref:a,trapFocus:o.open,disableOutsidePointerEvents:o.open,onCloseAutoFocus:P(t.onCloseAutoFocus,i=>{var c;i.preventDefault(),(c=o.triggerRef.current)==null||c.focus()}),onPointerDownOutside:P(t.onPointerDownOutside,i=>{const c=i.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0;(c.button===2||u)&&i.preventDefault()}),onFocusOutside:P(t.onFocusOutside,i=>i.preventDefault())})},"DialogContentModal")),gs=l.forwardRef(Z(function(t,n){const o=oe(Ue,t.__scopeDialog),r=l.useRef(!1),a=l.useRef(!1);return s.jsx(ir,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var c,u;(c=t.onCloseAutoFocus)==null||c.call(t,i),i.defaultPrevented||(r.current||(u=o.triggerRef.current)==null||u.focus(),i.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:i=>{var f,g;(f=t.onInteractOutside)==null||f.call(t,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const c=i.target;((g=o.triggerRef.current)==null?void 0:g.contains(c))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&a.current&&i.preventDefault()}})},"DialogContentNonModal")),ir=l.forwardRef(Z(function(t,n){const{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:i,...c}=t,u=oe(Ue,o);return Rt(),s.jsx(s.Fragment,{children:s.jsx(Lo,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:i,children:s.jsx(gn,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionPresent?u.descriptionId:void 0,"aria-labelledby":u.titlePresent?u.titleId:void 0,"data-state":Dt(u.open),...c,ref:n,deferPointerDownOutside:!0,onDismiss:()=>u.onOpenChange(!1)})})})},"DialogContentImpl")),vs="DialogTitle",Pt=l.forwardRef(Z(function(t,n){const{__scopeDialog:o,...r}=t,a=oe(vs,o),{setTitleCount:i}=a;return de(()=>(i(c=>c+1),()=>i(c=>c-1)),[i]),s.jsx(G.h2,{id:a.titleId,...r,ref:n})},"DialogTitle")),xs="DialogDescription",Mt=l.forwardRef(Z(function(t,n){const{__scopeDialog:o,...r}=t,a=oe(xs,o),{setDescriptionCount:i}=a;return de(()=>(i(c=>c+1),()=>i(c=>c-1)),[i]),s.jsx(G.p,{id:a.descriptionId,...r,ref:n})},"DialogDescription")),bs="DialogClose",sr=l.forwardRef(Z(function(t,n){const{__scopeDialog:o,...r}=t,a=oe(bs,o);return s.jsx(G.button,{type:"button",...r,ref:n,onClick:P(t.onClick,()=>a.onOpenChange(!1))})},"DialogClose"));function Dt(e){return e?"open":"closed"}Z(Dt,"getState");const ws=tr,ys=nr,Cs=ar,cr=l.forwardRef(({className:e,...t},n)=>s.jsx(Tt,{ref:n,className:I("fixed inset-0 z-50 bg-black/60 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));cr.displayName=Tt.displayName;const lr=l.forwardRef(({className:e,children:t,...n},o)=>s.jsxs(Cs,{children:[s.jsx(cr,{}),s.jsxs(Et,{ref:o,className:I("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg border border-border bg-card p-6 text-card-foreground shadow-elevation duration-200","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",e),...n,children:[t,s.jsxs(sr,{className:"absolute right-4 top-4 rounded-sm text-muted-foreground opacity-70 transition-opacity hover:opacity-100 hover:text-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none",children:[s.jsx(wo,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));lr.displayName=Et.displayName;const ur=({className:e,...t})=>s.jsx("div",{className:I("flex flex-col gap-1.5 text-left",e),...t});ur.displayName="DialogHeader";const dr=({className:e,...t})=>s.jsx("div",{className:I("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t});dr.displayName="DialogFooter";const fr=l.forwardRef(({className:e,...t},n)=>s.jsx(Pt,{ref:n,className:I("text-base font-semibold leading-none tracking-tight",e),...t}));fr.displayName=Pt.displayName;const pr=l.forwardRef(({className:e,...t},n)=>s.jsx(Mt,{ref:n,className:I("text-sm text-muted-foreground",e),...t}));pr.displayName=Mt.displayName;const Rs=["top","right","bottom","left"],we=Math.min,pe=Math.max,gt=Math.round,ct=Math.floor,me=e=>({x:e,y:e}),Ss={left:"right",right:"left",bottom:"top",top:"bottom"};function mr(e,t,n){return pe(e,we(t,n))}function he(e,t){return typeof e=="function"?e(t):e}function ye(e){return e.split("-")[0]}function $e(e){return e.split("-")[1]}function Pn(e){return e==="x"?"y":"x"}function Mn(e){return e==="y"?"height":"width"}function se(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Dn(e){return Pn(se(e))}function Ts(e,t,n){n===void 0&&(n=!1);const o=$e(e),r=Dn(e),a=Mn(r);let i=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=vt(i)),[i,vt(i)]}function Es(e){const t=vt(e);return[ln(e),t,ln(t)]}function ln(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const to=["left","right"],no=["right","left"],Ps=["top","bottom"],Ms=["bottom","top"];function Ds(e,t,n){switch(e){case"top":case"bottom":return n?t?no:to:t?to:no;case"left":case"right":return t?Ps:Ms;default:return[]}}function js(e,t,n,o){const r=$e(e);let a=Ds(ye(e),n==="start",o);return r&&(a=a.map(i=>i+"-"+r),t&&(a=a.concat(a.map(ln)))),a}function vt(e){const t=ye(e);return Ss[t]+e.slice(t.length)}function _s(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function hr(e){return typeof e!="number"?_s(e):{top:e,right:e,bottom:e,left:e}}function xt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function oo(e,t,n){let{reference:o,floating:r}=e;const a=se(t),i=Dn(t),c=Mn(i),u=ye(t),f=a==="y",g=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,d=o[c]/2-r[c]/2;let m;switch(u){case"top":m={x:g,y:o.y-r.height};break;case"bottom":m={x:g,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:p};break;case"left":m={x:o.x-r.width,y:p};break;default:m={x:o.x,y:o.y}}const v=$e(t);return v&&(m[i]+=d*(v==="end"?1:-1)*(n&&f?-1:1)),m}async function Is(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:a,rects:i,elements:c,strategy:u}=e,{boundary:f="clippingAncestors",rootBoundary:g="viewport",elementContext:p="floating",altBoundary:d=!1,padding:m=0}=he(t,e),v=hr(m),x=c[d?p==="floating"?"reference":"floating":p],w=xt(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:f,rootBoundary:g,strategy:u})),b=p==="floating"?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),y=await(a.isElement==null?void 0:a.isElement(R))&&await(a.getScale==null?void 0:a.getScale(R))||{x:1,y:1},C=xt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:b,offsetParent:R,strategy:u}):b);return{top:(w.top-C.top+v.top)/y.y,bottom:(C.bottom-w.bottom+v.bottom)/y.y,left:(w.left-C.left+v.left)/y.x,right:(C.right-w.right+v.right)/y.x}}const As=50,Os=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:i}=n,c=i.detectOverflow?i:{...i,detectOverflow:Is},u=await(i.isRTL==null?void 0:i.isRTL(t));let f=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:g,y:p}=oo(f,o,u),d=o,m=0;const v={};for(let h=0;h<a.length;h++){const x=a[h];if(!x)continue;const{name:w,fn:b}=x,{x:R,y,data:C,reset:S}=await b({x:g,y:p,initialPlacement:o,placement:d,strategy:r,middlewareData:v,rects:f,platform:c,elements:{reference:e,floating:t}});g=R??g,p=y??p,v[w]={...v[w],...C},S&&m<As&&(m++,typeof S=="object"&&(S.placement&&(d=S.placement),S.rects&&(f=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:g,y:p}=oo(f,d,u)),h=-1)}return{x:g,y:p,placement:d,strategy:r,middlewareData:v}},Ns=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:a,platform:i,elements:c,middlewareData:u}=t,{element:f,padding:g=0}=he(e,t)||{};if(f==null)return{};const p=hr(g),d={x:n,y:o},m=Dn(r),v=Mn(m),h=await i.getDimensions(f),x=m==="y",w=x?"top":"left",b=x?"bottom":"right",R=x?"clientHeight":"clientWidth",y=a.reference[v]+a.reference[m]-d[m]-a.floating[v],C=d[m]-a.reference[m],S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(f));let E=S?S[R]:0;(!E||!await(i.isElement==null?void 0:i.isElement(S)))&&(E=c.floating[R]||a.floating[v]);const D=y/2-C/2,M=E/2-h[v]/2-1,j=we(p[w],M),F=we(p[b],M),B=E-h[v]-F,k=E/2-h[v]/2+D,N=mr(j,k,B),W=!u.arrow&&$e(r)!=null&&k!==N&&a.reference[v]/2-(k<j?j:F)-h[v]/2<0,L=W?k<j?k-j:k-B:0;return{[m]:d[m]+L,data:{[m]:N,centerOffset:k-N-L,...W&&{alignmentOffset:L}},reset:W}}}),ks=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:a,rects:i,initialPlacement:c,platform:u,elements:f}=t,{mainAxis:g=!0,crossAxis:p=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...x}=he(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const w=ye(r),b=se(c),R=ye(c)===c,y=await(u.isRTL==null?void 0:u.isRTL(f.floating)),C=d||(R||!h?[vt(c)]:Es(c)),S=v!=="none";!d&&S&&C.push(...js(c,h,v,y));const E=[c,...C],D=await u.detectOverflow(t,x),M=[];let j=((o=a.flip)==null?void 0:o.overflows)||[];if(g&&M.push(D[w]),p){const N=Ts(r,i,y);M.push(D[N[0]],D[N[1]])}if(j=[...j,{placement:r,overflows:M}],!M.every(N=>N<=0)){var F,B;const N=(((F=a.flip)==null?void 0:F.index)||0)+1,W=E[N];if(W&&(!(p==="alignment"?b!==se(W):!1)||j.every(_=>se(_.placement)===b?_.overflows[0]>0:!0)))return{data:{index:N,overflows:j},reset:{placement:W}};let L=(B=j.filter($=>$.overflows[0]<=0).sort(($,_)=>$.overflows[1]-_.overflows[1])[0])==null?void 0:B.placement;if(!L)switch(m){case"bestFit":{var k;const $=(k=j.filter(_=>{if(S){const O=se(_.placement);return O===b||O==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(O=>O>0).reduce((O,T)=>O+T,0)]).sort((_,O)=>_[1]-O[1])[0])==null?void 0:k[0];$&&(L=$);break}case"initialPlacement":L=c;break}if(r!==L)return{reset:{placement:L}}}return{}}}};function ro(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ao(e){return Rs.some(t=>e[t]>=0)}const Fs=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...a}=he(e,t);switch(r){case"referenceHidden":{const i=await o.detectOverflow(t,{...a,elementContext:"reference"}),c=ro(i,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:ao(c)}}}case"escaped":{const i=await o.detectOverflow(t,{...a,altBoundary:!0}),c=ro(i,n.floating);return{data:{escapedOffsets:c,escaped:ao(c)}}}default:return{}}}}},gr=new Set(["left","top"]);async function Ls(e,t){const{placement:n,platform:o,elements:r}=e,a=await(o.isRTL==null?void 0:o.isRTL(r.floating)),i=ye(n),c=$e(n),u=se(n)==="y",f=gr.has(i)?-1:1,g=a&&u?-1:1,p=he(t,e);let{mainAxis:d,crossAxis:m,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof v=="number"&&(m=c==="end"?v*-1:v),u?{x:m*g,y:d*f}:{x:d*f,y:m*g}}const $s=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:a,placement:i,middlewareData:c}=t,u=await Ls(t,e);return i===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+u.x,y:a+u.y,data:{...u,placement:i}}}}},Hs=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:a}=t,{mainAxis:i=!0,crossAxis:c=!1,limiter:u={fn:b=>{let{x:R,y}=b;return{x:R,y}}},...f}=he(e,t),g={x:n,y:o},p=await a.detectOverflow(t,f),d=se(r),m=Pn(d);let v=g[m],h=g[d];const x=(b,R)=>mr(R+p[b==="y"?"top":"left"],R,R-p[b==="y"?"bottom":"right"]);i&&(v=x(m,v)),c&&(h=x(d,h));const w=u.fn({...t,[m]:v,[d]:h});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[m]:i,[d]:c}}}}}},Bs=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:r,y:a,placement:i,rects:c,middlewareData:u}=t,{offset:f=0,mainAxis:g=!0,crossAxis:p=!0}=he(e,t),d={x:r,y:a},m=se(i),v=Pn(m);let h=d[v],x=d[m];const w=he(f,t),b=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:(n=w.mainAxis)!=null?n:0,crossAxis:(o=w.crossAxis)!=null?o:0};if(g){const C=v==="y"?"height":"width",S=c.reference[v]-c.floating[C]+b.mainAxis,E=c.reference[v]+c.reference[C]-b.mainAxis;h<S?h=S:h>E&&(h=E)}if(p){var R,y;const C=v==="y"?"width":"height",S=gr.has(ye(i)),E=c.reference[m]-c.floating[C]+(S&&((R=u.offset)==null?void 0:R[m])||0)+(S?0:b.crossAxis),D=c.reference[m]+c.reference[C]+(S?0:((y=u.offset)==null?void 0:y[m])||0)-(S?b.crossAxis:0);x<E?x=E:x>D&&(x=D)}return{[v]:h,[m]:x}}}},Gs=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:a}=t,{apply:i=()=>{},...c}=he(e,t),u=await r.detectOverflow(t,c),f=ye(n),g=$e(n),p=se(n)==="y",{width:d,height:m}=o.floating;let v,h;f==="top"||f==="bottom"?(v=f,h=g===(await(r.isRTL==null?void 0:r.isRTL(a.floating))?"start":"end")?"left":"right"):(h=f,v=g==="end"?"top":"bottom");const x=m-u.top-u.bottom,w=d-u.left-u.right,b=we(m-u[v],x),R=we(d-u[h],w),y=t.middlewareData.shift,C=!y;let S=b,E=R;y!=null&&y.enabled.x&&(E=w),y!=null&&y.enabled.y&&(S=x),C&&!g&&(p?E=d-2*pe(u.left,u.right):S=m-2*pe(u.top,u.bottom)),await i({...t,availableWidth:E,availableHeight:S});const D=await r.getDimensions(a.floating);return d!==D.width||m!==D.height?{reset:{rects:!0}}:{}}}};function jt(){return typeof window<"u"}function He(e){return vr(e)?(e.nodeName||"").toLowerCase():"#document"}function Y(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ve(e){var t;return(t=(vr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function vr(e){return jt()?e instanceof Node||e instanceof Y(e).Node:!1}function ce(e){return jt()?e instanceof Element||e instanceof Y(e).Element:!1}function Ce(e){return jt()?e instanceof HTMLElement||e instanceof Y(e).HTMLElement:!1}function io(e){return!jt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}function _t(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=le(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Ws(e){return/^(table|td|th)$/.test(He(e))}function It(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Vs=/transform|translate|scale|rotate|perspective|filter/,zs=/paint|layout|strict|content/,Se=e=>!!e&&e!=="none";let qt;function jn(e){const t=ce(e)?le(e):e;return Se(t.transform)||Se(t.translate)||Se(t.scale)||Se(t.rotate)||Se(t.perspective)||!_n()&&(Se(t.backdropFilter)||Se(t.filter))||Vs.test(t.willChange||"")||zs.test(t.contain||"")}function Ks(e){let t=Te(e);for(;Ce(t)&&!Ye(t);){if(jn(t))return t;if(It(t))return null;t=Te(t)}return null}function _n(){return qt==null&&(qt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),qt}function Ye(e){return/^(html|body|#document)$/.test(He(e))}function le(e){return Y(e).getComputedStyle(e)}function At(e){return ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Te(e){if(He(e)==="html")return e;const t=e.assignedSlot||e.parentNode||io(e)&&e.host||ve(e);return io(t)?t.host:t}function xr(e){const t=Te(e);return Ye(t)?(e.ownerDocument||e).body:Ce(t)&&_t(t)?t:xr(t)}function Xe(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=xr(e),a=r===((o=e.ownerDocument)==null?void 0:o.body),i=Y(r);if(a){const c=un(i);return t.concat(i,i.visualViewport||[],_t(r)?r:[],c&&n?Xe(c):[])}else return t.concat(r,Xe(r,[],n))}function un(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function br(e){const t=le(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Ce(e),a=r?e.offsetWidth:n,i=r?e.offsetHeight:o,c=gt(n)!==a||gt(o)!==i;return c&&(n=a,o=i),{width:n,height:o,$:c}}function In(e){return ce(e)?e:e.contextElement}function Ne(e){const t=In(e);if(!Ce(t))return me(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:a}=br(t);let i=(a?gt(n.width):n.width)/o,c=(a?gt(n.height):n.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!c||!Number.isFinite(c))&&(c=1),{x:i,y:c}}const Us=me(0);function wr(e){const t=Y(e);return!_n()||!t.visualViewport?Us:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ys(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Y(e)}function Ee(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=In(e);let i=me(1);t&&(o?ce(o)&&(i=Ne(o)):i=Ne(e));const c=Ys(a,n,o)?wr(a):me(0);let u=(r.left+c.x)/i.x,f=(r.top+c.y)/i.y,g=r.width/i.x,p=r.height/i.y;if(a&&o){const d=Y(a),m=ce(o)?Y(o):o;let v=d,h=un(v);for(;h&&m!==v;){const x=Ne(h),w=h.getBoundingClientRect(),b=le(h),R=w.left+(h.clientLeft+parseFloat(b.paddingLeft))*x.x,y=w.top+(h.clientTop+parseFloat(b.paddingTop))*x.y;u*=x.x,f*=x.y,g*=x.x,p*=x.y,u+=R,f+=y,v=Y(h),h=un(v)}}return xt({width:g,height:p,x:u,y:f})}function Ot(e,t){const n=At(e).scrollLeft;return t?t.left+n:Ee(ve(e)).left+n}function yr(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Ot(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Xs(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const a=r==="fixed",i=ve(o),c=t?It(t.floating):!1;if(o===i||c&&a)return n;let u={scrollLeft:0,scrollTop:0},f=me(1);const g=me(0),p=Ce(o);if((p||!a)&&((He(o)!=="body"||_t(i))&&(u=At(o)),p)){const m=Ee(o);f=Ne(o),g.x=m.x+o.clientLeft,g.y=m.y+o.clientTop}const d=i&&!p&&!a?yr(i,u):me(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-u.scrollLeft*f.x+g.x+d.x,y:n.y*f.y-u.scrollTop*f.y+g.y+d.y}}function qs(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Zs(e){const t=At(e),n=e.ownerDocument.body,o=pe(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=pe(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let a=-t.scrollLeft+Ot(e);const i=-t.scrollTop;return le(n).direction==="rtl"&&(a+=pe(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:a,y:i}}const Qs=25;function Js(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=Y(e),a=ve(e),i=r.visualViewport;let c=a.clientWidth,u=a.clientHeight,f=0,g=0;if(i){const d=!_n()||t==="fixed";o?d||(f=-i.offsetLeft,g=-i.offsetTop):(c=i.width,u=i.height,d&&(f=i.offsetLeft,g=i.offsetTop))}if(Ot(a)<=0){const d=a.ownerDocument,m=d.body,v=getComputedStyle(m),h=d.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,x=Math.abs(a.clientWidth-m.clientWidth-h),w=getComputedStyle(a).scrollbarGutter==="stable both-edges"?x/2:x;w<=Qs&&(c-=w)}return{width:c,height:u,x:f,y:g}}function ec(e,t){const n=Ee(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,a=Ne(e),i=e.clientWidth*a.x,c=e.clientHeight*a.y,u=r*a.x,f=o*a.y;return{width:i,height:c,x:u,y:f}}function so(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=Js(e,n,t);else if(t==="document")o=Zs(ve(e));else if(ce(t))o=ec(t,n);else{const r=wr(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return xt(o)}function tc(e,t){const n=t.get(e);if(n)return n;let o=Xe(e,[],!1).filter(c=>ce(c)&&He(c)!=="body"),r=null;const a=le(e).position==="fixed";let i=a?Te(e):e;for(;ce(i)&&!Ye(i);){const c=le(i),u=jn(i),f=r?r.position:a?"fixed":"";!u&&(f==="fixed"||f==="absolute"&&c.position==="static")?o=o.filter(p=>p!==i):r=c,i=Te(i)}return t.set(e,o),o}function nc(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[...n==="clippingAncestors"?It(t)?[]:tc(t,this._c):[].concat(n),o],c=so(t,i[0],r);let u=c.top,f=c.right,g=c.bottom,p=c.left;for(let d=1;d<i.length;d++){const m=so(t,i[d],r);u=pe(m.top,u),f=we(m.right,f),g=we(m.bottom,g),p=pe(m.left,p)}return{width:f-p,height:g-u,x:p,y:u}}function oc(e){const{width:t,height:n}=br(e);return{width:t,height:n}}function rc(e,t,n){const o=Ce(t),r=ve(t),a=n==="fixed",i=Ee(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const u=me(0);if((o||!a)&&((He(t)!=="body"||_t(r))&&(c=At(t)),o)){const d=Ee(t,!0,a,t);u.x=d.x+t.clientLeft,u.y=d.y+t.clientTop}!o&&r&&(u.x=Ot(r));const f=r&&!o&&!a?yr(r,c):me(0),g=i.left+c.scrollLeft-u.x-f.x,p=i.top+c.scrollTop-u.y-f.y;return{x:g,y:p,width:i.width,height:i.height}}function Zt(e){return le(e).position==="static"}function co(e,t){if(!Ce(e)||le(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ve(e)===n&&(n=n.ownerDocument.body),n}function Cr(e,t){const n=Y(e);if(It(e))return n;if(!Ce(e)){let r=Te(e);for(;r&&!Ye(r);){if(ce(r)&&!Zt(r))return r;r=Te(r)}return n}let o=co(e,t);for(;o&&Ws(o)&&Zt(o);)o=co(o,t);return o&&Ye(o)&&Zt(o)&&!jn(o)?n:o||Ks(e)||n}const ac=async function(e){const t=this.getOffsetParent||Cr,n=this.getDimensions,o=await n(e.floating);return{reference:rc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ic(e){return le(e).direction==="rtl"}const sc={convertOffsetParentRelativeRectToViewportRelativeRect:Xs,getDocumentElement:ve,getClippingRect:nc,getOffsetParent:Cr,getElementRects:ac,getClientRects:qs,getDimensions:oc,getScale:Ne,isElement:ce,isRTL:ic};function Rr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cc(e,t,n){let o=null,r;const a=ve(e);function i(){var g;clearTimeout(r),(g=o)==null||g.disconnect(),o=null}function c(g,p){g===void 0&&(g=!1),p===void 0&&(p=1),i();const d=e.getBoundingClientRect(),{left:m,top:v,width:h,height:x}=d;if(g||t(),!h||!x)return;const w=ct(v),b=ct(a.clientWidth-(m+h)),R=ct(a.clientHeight-(v+x)),y=ct(m),S={rootMargin:-w+"px "+-b+"px "+-R+"px "+-y+"px",threshold:pe(0,we(1,p))||1};let E=!0;function D(M){const j=M[0].intersectionRatio;if(!Rr(d,e.getBoundingClientRect()))return c();if(j!==p){if(!E)return c();j?c(!1,j):r=setTimeout(()=>{c(!1,1e-7)},1e3)}E=!1}try{o=new IntersectionObserver(D,{...S,root:a.ownerDocument})}catch{o=new IntersectionObserver(D,S)}o.observe(e)}const u=Y(e),f=()=>c(n);return u.addEventListener("resize",f),c(!0),()=>{u.removeEventListener("resize",f),i()}}function lc(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,f=In(e),g=r||a?[...f?Xe(f):[],...t?Xe(t):[]]:[];g.forEach(w=>{r&&w.addEventListener("scroll",n),a&&w.addEventListener("resize",n)});const p=f&&c?cc(f,n,a):null;let d=-1,m=null;i&&(m=new ResizeObserver(w=>{let[b]=w;b&&b.target===f&&m&&t&&(m.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var R;(R=m)==null||R.observe(t)})),n()}),f&&!u&&m.observe(f),t&&m.observe(t));let v,h=u?Ee(e):null;u&&x();function x(){const w=Ee(e);h&&!Rr(h,w)&&n(),h=w,v=requestAnimationFrame(x)}return n(),()=>{var w;g.forEach(b=>{r&&b.removeEventListener("scroll",n),a&&b.removeEventListener("resize",n)}),p==null||p(),(w=m)==null||w.disconnect(),m=null,u&&cancelAnimationFrame(v)}}const uc=$s,dc=Hs,fc=ks,pc=Gs,mc=Fs,lo=Ns,hc=Bs,gc=(e,t,n)=>{const o=new Map,r=n??{},a={...sc,...r.platform,_c:o};return Os(e,t,{...r,platform:a})};var vc=typeof document<"u",xc=function(){},ht=vc?l.useLayoutEffect:xc;function bt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!bt(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const a=r[o];if(!(a==="_owner"&&e.$$typeof)&&!bt(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Sr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function uo(e,t){const n=Sr(e);return Math.round(t*n)/n}function Qt(e){const t=l.useRef(e);return ht(()=>{t.current=e}),t}function bc(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:a,floating:i}={},transform:c=!0,whileElementsMounted:u,open:f}=e,[g,p]=l.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,m]=l.useState(o);bt(d,o)||m(o);const[v,h]=l.useState(null),[x,w]=l.useState(null),b=l.useCallback(_=>{_!==S.current&&(S.current=_,h(_))},[]),R=l.useCallback(_=>{_!==E.current&&(E.current=_,w(_))},[]),y=a||v,C=i||x,S=l.useRef(null),E=l.useRef(null),D=l.useRef(g),M=u!=null,j=Qt(u),F=Qt(r),B=Qt(f),k=l.useCallback(()=>{if(!S.current||!E.current)return;const _={placement:t,strategy:n,middleware:d};F.current&&(_.platform=F.current),gc(S.current,E.current,_).then(O=>{const T={...O,isPositioned:B.current!==!1};N.current&&!bt(D.current,T)&&(D.current=T,Pa.flushSync(()=>{p(T)}))})},[d,t,n,F,B]);ht(()=>{f===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,p(_=>({..._,isPositioned:!1})))},[f]);const N=l.useRef(!1);ht(()=>(N.current=!0,()=>{N.current=!1}),[]),ht(()=>{if(y&&(S.current=y),C&&(E.current=C),y&&C){if(j.current)return j.current(y,C,k);k()}},[y,C,k,j,M]);const W=l.useMemo(()=>({reference:S,floating:E,setReference:b,setFloating:R}),[b,R]),L=l.useMemo(()=>({reference:y,floating:C}),[y,C]),$=l.useMemo(()=>{const _={position:n,left:0,top:0};if(!L.floating)return _;const O=uo(L.floating,g.x),T=uo(L.floating,g.y);return c?{..._,transform:"translate("+O+"px, "+T+"px)",...Sr(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:O,top:T}},[n,c,L.floating,g.x,g.y]);return l.useMemo(()=>({...g,update:k,refs:W,elements:L,floatingStyles:$}),[g,k,W,L,$])}const wc=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:r}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?lo({element:o.current,padding:r}).fn(n):{}:o?lo({element:o,padding:r}).fn(n):{}}}},yc=(e,t)=>{const n=uc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Cc=(e,t)=>{const n=dc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Rc=(e,t)=>({fn:hc(e).fn,options:[e,t]}),Sc=(e,t)=>{const n=fc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Tc=(e,t)=>{const n=pc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ec=(e,t)=>{const n=mc(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pc=(e,t)=>{const n=wc(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Mc=Object.defineProperty,Dc=(e,t)=>Mc(e,"name",{value:t,configurable:!0});function Tr(e){const[t,n]=l.useState(void 0);return de(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const a=r[0];let i,c;if("borderBoxSize"in a){const u=a.borderBoxSize,f=Array.isArray(u)?u[0]:u;i=f.inlineSize,c=f.blockSize}else i=e.offsetWidth,c=e.offsetHeight;n({width:i,height:c})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}Dc(Tr,"useSize");var jc=Object.defineProperty,be=(e,t)=>jc(e,"name",{value:t,configurable:!0}),Er="Popper",[Pr,Nt]=Pe(Er),[_c,Mr]=Pr(Er),Ic=be(e=>{const{__scopePopper:t,children:n}=e,[o,r]=l.useState(null),[a,i]=l.useState(void 0);return s.jsx(_c,{scope:t,anchor:o,onAnchorChange:r,placementState:a,setPlacementState:i,children:n})},"Popper"),Ac="PopperAnchor",Oc=l.forwardRef(be(function(t,n){const{__scopePopper:o,virtualRef:r,...a}=t,i=Mr(Ac,o),c=l.useRef(null),u=i.onAnchorChange,f=l.useCallback(h=>{c.current=h,h&&u(h)},[u]),g=z(n,f),p=l.useRef(null);l.useEffect(()=>{if(!r)return;const h=p.current;p.current=r.current,h!==p.current&&u(p.current)});const d=i.placementState&&kt(i.placementState),m=d==null?void 0:d[0],v=d==null?void 0:d[1];return r?null:s.jsx(G.div,{"data-radix-popper-side":m,"data-radix-popper-align":v,...a,ref:g})},"PopperAnchor")),Dr="PopperContent",[Nc,Eu]=Pr(Dr),kc=l.forwardRef(be(function(t,n){var We,Q,Ve,Gn,Wn,Vn,zn;const{__scopePopper:o,side:r="bottom",sideOffset:a=0,align:i="center",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:f=!0,collisionBoundary:g=[],collisionPadding:p=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:v="optimized",onPlaced:h,...x}=t,w=Mr(Dr,o),[b,R]=l.useState(null),y=z(n,R),[C,S]=l.useState(null),E=Tr(C),D=(E==null?void 0:E.width)??0,M=(E==null?void 0:E.height)??0,j=r+(i!=="center"?"-"+i:""),F=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},B=Array.isArray(g)?g:[g],k=B.length>0,N={padding:F,boundary:B.filter(jr),altBoundary:k},{refs:W,floatingStyles:L,placement:$,isPositioned:_,middlewareData:O}=bc({strategy:"fixed",placement:j,whileElementsMounted:be((...Ht)=>lc(...Ht,{animationFrame:v==="always"}),"whileElementsMounted"),elements:{reference:w.anchor},middleware:[yc({mainAxis:a+M,alignmentAxis:c}),f&&Cc({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?Rc():void 0,...N}),f&&Sc({...N}),Tc({...N,apply:be(({elements:Ht,rects:Kn,availableWidth:Ca,availableHeight:Ra})=>{const{width:Sa,height:Ta}=Kn.reference,nt=Ht.floating.style;nt.setProperty("--radix-popper-available-width",`${Ca}px`),nt.setProperty("--radix-popper-available-height",`${Ra}px`),nt.setProperty("--radix-popper-anchor-width",`${Sa}px`),nt.setProperty("--radix-popper-anchor-height",`${Ta}px`)},"apply")}),C&&Pc({element:C,padding:u}),Fc({arrowWidth:D,arrowHeight:M}),m&&Ec({strategy:"referenceHidden",...N,boundary:k?N.boundary:void 0})]}),T=w.setPlacementState;de(()=>(T($),()=>{T(void 0)}),[$,T]);const[K,X]=kt($),q=Ke(h);de(()=>{_&&(q==null||q())},[_,q]);const Be=(We=O.arrow)==null?void 0:We.x,Ge=(Q=O.arrow)==null?void 0:Q.y,tt=((Ve=O.arrow)==null?void 0:Ve.centerOffset)!==0,[Re,xe]=l.useState();return de(()=>{b&&xe(window.getComputedStyle(b).zIndex)},[b]),s.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...L,transform:_?L.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Re,"--radix-popper-transform-origin":[(Gn=O.transformOrigin)==null?void 0:Gn.x,(Wn=O.transformOrigin)==null?void 0:Wn.y].join(" "),...((Vn=O.hide)==null?void 0:Vn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:s.jsx(Nc,{scope:o,placedSide:K,placedAlign:X,onArrowChange:S,arrowX:Be,arrowY:Ge,shouldHideArrow:tt,children:s.jsx(G.div,{"data-side":K,"data-align":X,...x,ref:y,style:{...x.style,animation:_?(zn=x.style)==null?void 0:zn.animation:"none"}})})})},"PopperContent"));function jr(e){return e!==null}be(jr,"isNotNull");var Fc=be(e=>({name:"transformOrigin",options:e,fn(t){var x,w,b;const{placement:n,rects:o,middlewareData:r}=t,i=((x=r.arrow)==null?void 0:x.centerOffset)!==0,c=i?0:e.arrowWidth,u=i?0:e.arrowHeight,[f,g]=kt(n),p={start:"0%",center:"50%",end:"100%"}[g],d=(((w=r.arrow)==null?void 0:w.x)??0)+c/2,m=(((b=r.arrow)==null?void 0:b.y)??0)+u/2;let v="",h="";return f==="bottom"?(v=i?p:`${d}px`,h=`${-u}px`):f==="top"?(v=i?p:`${d}px`,h=`${o.floating.height+u}px`):f==="right"?(v=`${-u}px`,h=i?p:`${m}px`):f==="left"&&(v=`${o.floating.width+u}px`,h=i?p:`${m}px`),{data:{x:v,y:h}}}}),"transformOrigin");function kt(e){const[t,n="center"]=e.split("-");return[t,n]}be(kt,"getSideAndAlignFromPlacement");var _r=Ic,Ir=Oc,Ar=kc,Lc=Object.defineProperty,A=(e,t)=>Lc(e,"name",{value:t,configurable:!0}),dn=["Enter"," "],$c=["ArrowDown","PageUp","Home"],Or=["ArrowUp","PageDown","End"],Hc=[...$c,...Or],Bc={ltr:[...dn,"ArrowRight"],rtl:[...dn,"ArrowLeft"]},Gc={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ft="Menu",[qe,Wc,Vc]=vo(Ft),[De,Nr]=Pe(Ft,[Vc,Nt,Ct]),An=Nt(),kr=Ct(),[zc,je]=De(Ft),[Kc,et]=De(Ft),Uc=A(e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:r,onOpenChange:a,modal:i=!0}=e,c=An(t),[u,f]=l.useState(null),g=l.useRef(!1),p=Ke(a),d=wt(r);return l.useEffect(()=>{const m=A(()=>{g.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},"handleKeyDown"),v=A(()=>g.current=!1,"handlePointer");return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),l.useEffect(()=>{if(!n)return;const m=A(()=>p(!1),"handleBlur");return window.addEventListener("blur",m),()=>window.removeEventListener("blur",m)},[n,p]),s.jsx(_r,{...c,children:s.jsx(zc,{scope:t,open:n,onOpenChange:p,content:u,onContentChange:f,children:s.jsx(Kc,{scope:t,onClose:l.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:g,dir:d,modal:i,children:o})})})},"Menu"),Fr=l.forwardRef(A(function(t,n){const{__scopeMenu:o,...r}=t,a=An(o);return s.jsx(Ir,{...a,...r,ref:n})},"MenuAnchor")),Lr="MenuPortal",[Yc,$r]=De(Lr,{forceMount:void 0}),Xc=A(e=>{const{__scopeMenu:t,forceMount:n,children:o,container:r}=e,a=je(Lr,t);return s.jsx(Yc,{scope:t,forceMount:n,children:s.jsx(ge,{present:n||a.open,children:s.jsx(xo,{asChild:!0,container:r,children:o})})})},"MenuPortal"),ne="MenuContent",[qc,On]=De(ne),Zc=l.forwardRef(A(function(t,n){const o=$r(ne,t.__scopeMenu),{forceMount:r=o.forceMount,...a}=t,i=je(ne,t.__scopeMenu),c=et(ne,t.__scopeMenu);return s.jsx(qe.Provider,{scope:t.__scopeMenu,children:s.jsx(ge,{present:r||i.open,children:s.jsx(qe.Slot,{scope:t.__scopeMenu,children:c.modal?s.jsx(Qc,{...a,ref:n}):s.jsx(Jc,{...a,ref:n})})})})},"MenuContent")),Qc=l.forwardRef(A(function(t,n){const o=je(ne,t.__scopeMenu),r=l.useRef(null),a=z(n,r);return l.useEffect(()=>{const i=r.current;if(i)return Jo(i)},[]),s.jsx(Nn,{...t,ref:a,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:P(t.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})},"MenuRootContentModal")),Jc=l.forwardRef(A(function(t,n){const o=je(ne,t.__scopeMenu);return s.jsx(Nn,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})},"MenuRootContentNonModal")),el=bo("MenuContent.ScrollLock"),Nn=l.forwardRef(A(function(t,n){const{__scopeMenu:o,loop:r=!1,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:c,disableOutsidePointerEvents:u,onEntryFocus:f,onEscapeKeyDown:g,onPointerDownOutside:p,onFocusOutside:d,onInteractOutside:m,onDismiss:v,disableOutsideScroll:h,...x}=t,w=je(ne,o),b=et(ne,o),R=An(o),y=kr(o),C=Wc(o),[S,E]=l.useState(null),D=l.useRef(null),M=z(n,D,w.onContentChange),j=l.useRef(0),F=l.useRef(""),B=l.useRef(0),k=l.useRef(null),N=l.useRef("right"),W=l.useRef(0),L=h?Tn:l.Fragment,$=h?{as:el,allowPinchZoom:!0}:void 0,_=A(T=>{var xe,We;const K=F.current+T,X=C().filter(Q=>!Q.disabled),q=document.activeElement,Be=(xe=X.find(Q=>Q.ref.current===q))==null?void 0:xe.textValue,Ge=X.map(Q=>Q.textValue),tt=Kr(Ge,K,Be),Re=(We=X.find(Q=>Q.textValue===tt))==null?void 0:We.ref.current;A(function Q(Ve){F.current=Ve,window.clearTimeout(j.current),Ve!==""&&(j.current=window.setTimeout(()=>Q(""),1e3))},"updateSearch")(K),Re&&setTimeout(()=>Re.focus())},"handleTypeaheadSearch");l.useEffect(()=>()=>window.clearTimeout(j.current),[]),Rt();const O=l.useCallback(T=>{var X,q;return N.current===((X=k.current)==null?void 0:X.side)&&Yr(T,(q=k.current)==null?void 0:q.area)},[]);return s.jsx(qc,{scope:o,searchRef:F,onItemEnter:l.useCallback(T=>{O(T)&&T.preventDefault()},[O]),onItemLeave:l.useCallback(T=>{var K;O(T)||((K=D.current)==null||K.focus(),E(null))},[O]),onTriggerLeave:l.useCallback(T=>{O(T)&&T.preventDefault()},[O]),pointerGraceTimerRef:B,onPointerGraceIntentChange:l.useCallback(T=>{k.current=T},[]),children:s.jsx(L,{...$,children:s.jsx(Lo,{asChild:!0,trapped:a,onMountAutoFocus:P(i,T=>{var K;T.preventDefault(),(K=D.current)==null||K.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:s.jsx(gn,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:g,onPointerDownOutside:p,onFocusOutside:d,onInteractOutside:m,onDismiss:v,children:s.jsx(_o,{asChild:!0,...y,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:E,onEntryFocus:P(f,T=>{b.isUsingKeyboardRef.current||T.preventDefault()}),preventScrollOnEntryFocus:!0,children:s.jsx(Ar,{role:"menu","aria-orientation":"vertical","data-state":Fn(w.open),"data-radix-menu-content":"",dir:b.dir,...R,...x,ref:M,style:{outline:"none",...x.style},onKeyDown:P(x.onKeyDown,T=>{const X=T.target.closest("[data-radix-menu-content]")===T.currentTarget,q=T.ctrlKey||T.altKey||T.metaKey,Be=T.key.length===1;X&&(T.key==="Tab"&&T.preventDefault(),!q&&Be&&_(T.key));const Ge=D.current;if(T.target!==Ge||!Hc.includes(T.key))return;T.preventDefault();const Re=C().filter(xe=>!xe.disabled).map(xe=>xe.ref.current);Or.includes(T.key)&&Re.reverse(),Vr(Re)}),onBlur:P(t.onBlur,T=>{T.currentTarget.contains(T.target)||(window.clearTimeout(j.current),F.current="")}),onPointerMove:P(t.onPointerMove,ke(T=>{const K=T.target,X=W.current!==T.clientX;if(T.currentTarget.contains(K)&&X){const q=T.clientX>W.current?"right":"left";N.current=q,W.current=T.clientX}}))})})})})})})},"MenuContentImpl")),tl=l.forwardRef(A(function(t,n){const{__scopeMenu:o,...r}=t;return s.jsx(G.div,{...r,ref:n})},"MenuLabel")),fn="MenuItem",fo="menu.itemSelect",kn=l.forwardRef(A(function(t,n){const{disabled:o=!1,onSelect:r,...a}=t,i=l.useRef(null),c=et(fn,t.__scopeMenu),u=On(fn,t.__scopeMenu),f=z(n,i),g=l.useRef(!1),p=A(()=>{const d=i.current;if(!o&&d){const m=new CustomEvent(fo,{bubbles:!0,cancelable:!0});d.addEventListener(fo,v=>r==null?void 0:r(v),{once:!0}),Ma(d,m),m.defaultPrevented?g.current=!1:c.onClose()}},"handleSelect");return s.jsx(Hr,{...a,ref:f,disabled:o,onClick:P(t.onClick,p),onPointerDown:d=>{var m;(m=t.onPointerDown)==null||m.call(t,d),g.current=!0},onPointerUp:P(t.onPointerUp,d=>{var m;g.current||(m=d.currentTarget)==null||m.click()}),onKeyDown:P(t.onKeyDown,d=>{o||d.target!==d.currentTarget||u.searchRef.current!==""&&d.key===" "||dn.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})},"MenuItem")),Hr=l.forwardRef(A(function(t,n){const{__scopeMenu:o,disabled:r=!1,textValue:a,...i}=t,c=On(fn,o),u=kr(o),f=l.useRef(null),g=z(n,f),[p,d]=l.useState(!1),[m,v]=l.useState("");return l.useEffect(()=>{const h=f.current;h&&v((h.textContent??"").trim())},[i.children]),s.jsx(qe.ItemSlot,{scope:o,disabled:r,textValue:a??m,children:s.jsx(Io,{asChild:!0,...u,focusable:!r,children:s.jsx(G.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:g,onPointerMove:P(t.onPointerMove,ke(h=>{r?c.onItemLeave(h):(c.onItemEnter(h),h.defaultPrevented||h.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:P(t.onPointerLeave,ke(h=>c.onItemLeave(h))),onFocus:P(t.onFocus,()=>d(!0)),onBlur:P(t.onBlur,()=>d(!1))})})})},"MenuItemImpl")),nl=l.forwardRef(A(function(t,n){const{checked:o=!1,onCheckedChange:r,...a}=t;return s.jsx(Gr,{scope:t.__scopeMenu,checked:o,children:s.jsx(kn,{role:"menuitemcheckbox","aria-checked":Ze(o)?"mixed":o,...a,ref:n,"data-state":Lt(o),onSelect:P(a.onSelect,()=>r==null?void 0:r(Ze(o)?!0:!o),{checkForDefaultPrevented:!1})})})},"MenuCheckboxItem")),ol="MenuRadioGroup",[Pu,rl]=De(ol,{value:void 0,onValueChange:A(()=>{},"onValueChange")}),al="MenuRadioItem",il=l.forwardRef(A(function(t,n){const{value:o,...r}=t,a=rl(al,t.__scopeMenu),i=o===a.value;return s.jsx(Gr,{scope:t.__scopeMenu,checked:i,children:s.jsx(kn,{role:"menuitemradio","aria-checked":i,...r,ref:n,"data-state":Lt(i),onSelect:P(r.onSelect,()=>{var c;return(c=a.onValueChange)==null?void 0:c.call(a,o)},{checkForDefaultPrevented:!1})})})},"MenuRadioItem")),Br="MenuItemIndicator",[Gr,sl]=De(Br,{checked:!1}),cl=l.forwardRef(A(function(t,n){const{__scopeMenu:o,forceMount:r,...a}=t,i=sl(Br,o);return s.jsx(ge,{present:r||Ze(i.checked)||i.checked===!0,children:s.jsx(G.span,{...a,ref:n,"data-state":Lt(i.checked)})})},"MenuItemIndicator")),ll=l.forwardRef(A(function(t,n){const{__scopeMenu:o,...r}=t;return s.jsx(G.div,{role:"separator","aria-orientation":"horizontal",...r,ref:n})},"MenuSeparator")),ul="MenuSub",[Mu,Wr]=De(ul),lt="MenuSubTrigger",dl=l.forwardRef(A(function(t,n){const o=je(lt,t.__scopeMenu),r=et(lt,t.__scopeMenu),a=Wr(lt,t.__scopeMenu),i=On(lt,t.__scopeMenu),c=l.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:f}=i,g={__scopeMenu:t.__scopeMenu},p=l.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);l.useEffect(()=>p,[p]),l.useEffect(()=>{const m=u.current;return()=>{window.clearTimeout(m),f(null)}},[u,f]);const d=z(n,a.onTriggerChange);return s.jsx(Fr,{asChild:!0,...g,children:s.jsx(Hr,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?a.contentId:void 0,"data-state":Fn(o.open),...t,ref:d,onClick:m=>{var v;(v=t.onClick)==null||v.call(t,m),!(t.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),o.open||o.onOpenChange(!0))},onPointerMove:P(t.onPointerMove,ke(m=>{i.onItemEnter(m),!m.defaultPrevented&&!t.disabled&&!o.open&&!c.current&&(i.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{o.onOpenChange(!0),p()},100))})),onPointerLeave:P(t.onPointerLeave,ke(m=>{var h,x;p();const v=(h=o.content)==null?void 0:h.getBoundingClientRect();if(v){const w=(x=o.content)==null?void 0:x.dataset.side,b=w==="right",R=b?-5:5,y=v[b?"left":"right"],C=v[b?"right":"left"];i.onPointerGraceIntentChange({area:[{x:m.clientX+R,y:m.clientY},{x:y,y:v.top},{x:C,y:v.top},{x:C,y:v.bottom},{x:y,y:v.bottom}],side:w}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(m),m.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:P(t.onKeyDown,m=>{var h;t.disabled||m.target!==m.currentTarget||i.searchRef.current!==""&&m.key===" "||Bc[r.dir].includes(m.key)&&(o.onOpenChange(!0),(h=o.content)==null||h.focus(),m.preventDefault())})})})},"MenuSubTrigger")),fl="MenuSubContent",pl=l.forwardRef(A(function(t,n){const o=$r(ne,t.__scopeMenu),{forceMount:r=o.forceMount,align:a="start",...i}=t,c=je(ne,t.__scopeMenu),u=et(ne,t.__scopeMenu),f=Wr(fl,t.__scopeMenu),g=l.useRef(null),p=z(n,g);return s.jsx(qe.Provider,{scope:t.__scopeMenu,children:s.jsx(ge,{present:r||c.open,children:s.jsx(qe.Slot,{scope:t.__scopeMenu,children:s.jsx(Nn,{id:f.contentId,"aria-labelledby":f.triggerId,...i,ref:p,align:a,side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{var m;u.isUsingKeyboardRef.current&&((m=g.current)==null||m.focus()),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:P(t.onFocusOutside,d=>{d.target!==f.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:P(t.onEscapeKeyDown,d=>{u.onClose(),d.preventDefault()}),onKeyDown:P(t.onKeyDown,d=>{var h;const m=d.currentTarget.contains(d.target),v=Gc[u.dir].includes(d.key);m&&v&&(c.onOpenChange(!1),(h=f.trigger)==null||h.focus(),d.preventDefault())})})})})})},"MenuSubContent"));function Fn(e){return e?"open":"closed"}A(Fn,"getOpenState");function Ze(e){return e==="indeterminate"}A(Ze,"isIndeterminate");function Lt(e){return Ze(e)?"indeterminate":e?"checked":"unchecked"}A(Lt,"getCheckedState");function Vr(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}A(Vr,"focusFirst");function zr(e,t){return e.map((n,o)=>e[(t+o)%e.length])}A(zr,"wrapArray");function Kr(e,t,n){const r=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let i=zr(e,Math.max(a,0));r.length===1&&(i=i.filter(f=>f!==n));const u=i.find(f=>f.toLowerCase().startsWith(r.toLowerCase()));return u!==n?u:void 0}A(Kr,"getNextMatch");function Ur(e,t){const{x:n,y:o}=e;let r=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const c=t[a],u=t[i],f=c.x,g=c.y,p=u.x,d=u.y;g>o!=d>o&&n<(p-f)*(o-g)/(d-g)+f&&(r=!r)}return r}A(Ur,"isPointInPolygon");function Yr(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Ur(n,t)}A(Yr,"isPointerInGraceArea");function ke(e){return t=>t.pointerType==="mouse"?e(t):void 0}A(ke,"whenMouse");var ml=Uc,hl=Fr,gl=Xc,vl=Zc,xl=tl,bl=kn,wl=nl,yl=il,Cl=cl,Rl=ll,Sl=dl,Tl=pl,El=Object.defineProperty,J=(e,t)=>El(e,"name",{value:t,configurable:!0}),Ln="DropdownMenu",[Pl,Du]=Pe(Ln,[Nr]),ee=Nr(),[Ml,Xr]=Pl(Ln),Dl=J(e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:r,defaultOpen:a,onOpenChange:i,modal:c=!0}=e,u=ee(t),f=l.useRef(null),[g,p]=Je({prop:r,defaultProp:a??!1,onChange:i,caller:Ln});return s.jsx(Ml,{scope:t,triggerId:fe(),triggerRef:f,contentId:fe(),open:g,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(d=>!d),[p]),modal:c,children:s.jsx(ml,{...u,open:g,onOpenChange:p,dir:o,modal:c,children:n})})},"DropdownMenu"),jl="DropdownMenuTrigger",_l=l.forwardRef(J(function(t,n){const{__scopeDropdownMenu:o,disabled:r=!1,...a}=t,i=Xr(jl,o),c=ee(o),u=z(n,i.triggerRef);return s.jsx(hl,{asChild:!0,...c,children:s.jsx(G.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:u,onPointerDown:P(t.onPointerDown,f=>{!r&&f.button===0&&f.ctrlKey===!1&&(i.onOpenToggle(),i.open||f.preventDefault())}),onKeyDown:P(t.onKeyDown,f=>{r||(["Enter"," "].includes(f.key)&&i.onOpenToggle(),f.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(f.key)&&f.preventDefault())})})})},"DropdownMenuTrigger")),Il=J(e=>{const{__scopeDropdownMenu:t,...n}=e,o=ee(t);return s.jsx(gl,{...o,...n})},"DropdownMenuPortal"),Al="DropdownMenuContent",Ol=l.forwardRef(J(function(t,n){const{__scopeDropdownMenu:o,...r}=t,a=Xr(Al,o),i=ee(o),c=l.useRef(!1);return s.jsx(vl,{id:a.contentId,"aria-labelledby":a.triggerId,...i,...r,ref:n,onCloseAutoFocus:P(t.onCloseAutoFocus,u=>{var f;c.current||(f=a.triggerRef.current)==null||f.focus(),c.current=!1,u.preventDefault()}),onInteractOutside:P(t.onInteractOutside,u=>{const f=u.detail.originalEvent,g=f.button===0&&f.ctrlKey===!0,p=f.button===2||g;(!a.modal||p)&&(c.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),Nl=l.forwardRef(J(function(t,n){const{__scopeDropdownMenu:o,...r}=t,a=ee(o);return s.jsx(xl,{...a,...r,ref:n})},"DropdownMenuLabel")),kl=l.forwardRef(J(function(t,n){const{__scopeDropdownMenu:o,...r}=t,a=ee(o);return s.jsx(bl,{...a,...r,ref:n})},"DropdownMenuItem")),Fl=l.forwardRef(J(function(t,n){const{__scopeDropdownMenu:o,...r}=t,a=ee(o);return s.jsx(wl,{...a,...r,ref:n})},"DropdownMenuCheckboxItem")),Ll=l.forwardRef(J(function(t,n){const{__scopeDropdownMenu:o,...r}=t,a=ee(o);return s.jsx(yl,{...a,...r,ref:n})},"DropdownMenuRadioItem")),$l=l.forwardRef(J(function(t,n){const{__scopeDropdownMenu:o,...r}=t,a=ee(o);return s.jsx(Cl,{...a,...r,ref:n})},"DropdownMenuItemIndicator")),Hl=l.forwardRef(J(function(t,n){const{__scopeDropdownMenu:o,...r}=t,a=ee(o);return s.jsx(Rl,{...a,...r,ref:n})},"DropdownMenuSeparator")),Bl=l.forwardRef(J(function(t,n){const{__scopeDropdownMenu:o,...r}=t,a=ee(o);return s.jsx(Sl,{...a,...r,ref:n})},"DropdownMenuSubTrigger")),Gl=l.forwardRef(J(function(t,n){const{__scopeDropdownMenu:o,...r}=t,a=ee(o);return s.jsx(Tl,{...a,...r,ref:n,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuSubContent")),Wl=Dl,Vl=_l,zl=Il,qr=Ol,Zr=Nl,Qr=kl,Jr=Fl,ea=Ll,ta=$l,na=Hl,oa=Bl,ra=Gl;const Kl=Wl,Ul=Vl,Yl=l.forwardRef(({className:e,inset:t,children:n,...o},r)=>s.jsxs(oa,{ref:r,className:I("flex cursor-default select-none items-center gap-2 rounded-sm px-2.5 py-1.5 text-sm text-muted-foreground outline-none hover:bg-secondary hover:text-foreground data-[state=open]:bg-secondary data-[state=open]:text-foreground",t&&"pl-8",e),...o,children:[n,s.jsx(Da,{className:"ml-auto h-4 w-4"})]}));Yl.displayName=oa.displayName;const Xl=l.forwardRef(({className:e,...t},n)=>s.jsx(ra,{ref:n,className:I("z-50 min-w-[10rem] overflow-hidden rounded-md border border-line-strong bg-popover p-1 text-popover-foreground shadow-elevation","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",e),...t}));Xl.displayName=ra.displayName;const aa=l.forwardRef(({className:e,sideOffset:t=7,...n},o)=>s.jsx(zl,{children:s.jsx(qr,{ref:o,sideOffset:t,className:I("z-50 min-w-[246px] overflow-hidden rounded-md border border-line-strong bg-popover p-[5px] text-popover-foreground shadow-elevation","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",e),...n})}));aa.displayName=qr.displayName;const ze=l.forwardRef(({className:e,inset:t,variant:n="default",...o},r)=>s.jsx(Qr,{ref:r,className:I("relative flex cursor-default select-none items-center gap-2.5 rounded-sm px-2.5 py-1.5 text-sm text-muted-foreground outline-none transition-colors","hover:bg-secondary hover:text-foreground focus:bg-secondary focus:text-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50","[&_svg]:h-3.5 [&_svg]:w-3.5 [&_svg]:shrink-0 [&_svg]:opacity-80",t&&"pl-8",n==="hot"&&"text-attn hover:text-attn focus:text-attn",n==="danger"&&"text-fail hover:text-fail focus:text-fail",e),...o}));ze.displayName=Qr.displayName;const ql=l.forwardRef(({className:e,children:t,checked:n,...o},r)=>s.jsxs(Jr,{ref:r,className:I("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2.5 text-sm text-muted-foreground outline-none transition-colors hover:bg-secondary hover:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...o,children:[s.jsx("span",{className:"absolute left-2.5 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(ta,{children:s.jsx(Fa,{className:"h-4 w-4"})})}),t]}));ql.displayName=Jr.displayName;const Zl=l.forwardRef(({className:e,children:t,...n},o)=>s.jsxs(ea,{ref:o,className:I("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2.5 text-sm text-muted-foreground outline-none transition-colors hover:bg-secondary hover:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[s.jsx("span",{className:"absolute left-2.5 flex h-3.5 w-3.5 items-center justify-center",children:s.jsx(ta,{children:s.jsx(La,{className:"h-2 w-2 fill-current"})})}),t]}));Zl.displayName=ea.displayName;const ia=l.forwardRef(({className:e,inset:t,...n},o)=>s.jsx(Zr,{ref:o,className:I("px-2.5 pb-1 pt-2 text-[0.63rem] font-semibold uppercase tracking-wider text-faint",t&&"pl-8",e),...n}));ia.displayName=Zr.displayName;const sa=l.forwardRef(({className:e,...t},n)=>s.jsx(na,{ref:n,className:I("-mx-[3px] my-1 h-px bg-border",e),...t}));sa.displayName=na.displayName;const pn=({className:e,...t})=>s.jsx("span",{className:I("ml-auto font-mono text-xs text-faint",e),...t});pn.displayName="DropdownMenuShortcut";const Ql=tr,Jl=nr,eu=ar,ca=l.forwardRef(({className:e,...t},n)=>s.jsx(Tt,{ref:n,className:I("fixed inset-0 z-50 bg-black/60 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));ca.displayName=Tt.displayName;const tu=ho("fixed z-50 gap-4 bg-card p-6 text-card-foreground shadow-elevation transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-200 data-[state=open]:duration-300",{variants:{side:{top:"inset-x-0 top-0 border-b border-border data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 rounded-t-lg border-t border-border data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r border-border data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l border-border data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"bottom"}}),la=l.forwardRef(({side:e="bottom",className:t,children:n,...o},r)=>s.jsxs(eu,{children:[s.jsx(ca,{}),s.jsxs(Et,{ref:r,className:I(tu({side:e}),t),...o,children:[n,s.jsxs(sr,{className:"absolute right-4 top-4 rounded-sm text-muted-foreground opacity-70 transition-opacity hover:opacity-100 hover:text-foreground focus:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none",children:[s.jsx(wo,{className:"h-4 w-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));la.displayName=Et.displayName;const ua=({className:e,...t})=>s.jsx("div",{className:I("flex flex-col gap-1.5 text-left",e),...t});ua.displayName="SheetHeader";const da=l.forwardRef(({className:e,...t},n)=>s.jsx(Pt,{ref:n,className:I("text-base font-semibold text-foreground",e),...t}));da.displayName=Pt.displayName;const fa=l.forwardRef(({className:e,...t},n)=>s.jsx(Mt,{ref:n,className:I("text-sm text-muted-foreground",e),...t}));fa.displayName=Mt.displayName;var nu=Object.defineProperty,V=(e,t)=>nu(e,"name",{value:t,configurable:!0}),[$n,ju]=Pe("Tooltip",[Nt]),Hn=Nt(),ou="TooltipProvider",ru=700,mn="tooltip.open",[au,Bn]=$n(ou),iu=V(e=>{const{__scopeTooltip:t,delayDuration:n=ru,skipDelayDuration:o=300,disableHoverableContent:r=!1,children:a}=e,i=l.useRef(!0),c=l.useRef(!1),u=l.useRef(0);return l.useEffect(()=>{const f=u.current;return()=>window.clearTimeout(f)},[]),s.jsx(au,{scope:t,isOpenDelayedRef:i,delayDuration:n,onOpen:l.useCallback(()=>{o<=0||(window.clearTimeout(u.current),i.current=!1)},[o]),onClose:l.useCallback(()=>{o<=0||(window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.current=!0,o))},[o]),isPointerInTransitRef:c,onPointerInTransitChange:l.useCallback(f=>{c.current=f},[]),disableHoverableContent:r,children:a})},"TooltipProvider"),hn="Tooltip",[su,$t]=$n(hn),cu=V(e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:r,onOpenChange:a,disableHoverableContent:i,delayDuration:c}=e,u=Bn(hn,e.__scopeTooltip),f=Hn(t),[g,p]=l.useState(null),[d,m]=l.useState(void 0),v=fe(),h=l.useRef(0),x=i??u.disableHoverableContent,w=c??u.delayDuration,b=l.useRef(!1),[R,y]=Je({prop:o,defaultProp:r??!1,onChange:V(j=>{j?(u.onOpen(),document.dispatchEvent(new CustomEvent(mn))):u.onClose(),a==null||a(j)},"onChange"),caller:hn}),C=l.useMemo(()=>R?b.current?"delayed-open":"instant-open":"closed",[R]),S=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b.current=!1,y(!0)},[y]),E=l.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y(!1)},[y]),D=l.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,y(!0),h.current=0},w)},[w,y]);l.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]);const M=d??v;return s.jsx(_r,{...f,children:s.jsx(su,{scope:t,contentId:M,setContentId:m,open:R,stateAttribute:C,trigger:g,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{u.isOpenDelayedRef.current?D():S()},[u.isOpenDelayedRef,D,S]),onTriggerLeave:l.useCallback(()=>{x?E():(window.clearTimeout(h.current),h.current=0)},[E,x]),onOpen:S,onClose:E,disableHoverableContent:x,children:n})})},"Tooltip"),po="TooltipTrigger",lu=l.forwardRef(V(function(t,n){const{__scopeTooltip:o,...r}=t,a=$t(po,o),i=Bn(po,o),c=Hn(o),u=l.useRef(null),f=z(n,u,a.onTriggerChange),g=l.useRef(!1),p=l.useRef(!1),d=l.useCallback(()=>g.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),s.jsx(Ir,{asChild:!0,...c,children:s.jsx(G.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:f,onPointerMove:P(t.onPointerMove,m=>{m.pointerType!=="touch"&&!p.current&&!i.isPointerInTransitRef.current&&(a.onTriggerEnter(),p.current=!0)}),onPointerLeave:P(t.onPointerLeave,()=>{a.onTriggerLeave(),p.current=!1}),onPointerDown:P(t.onPointerDown,()=>{a.open&&a.onClose(),g.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:P(t.onFocus,()=>{g.current||a.onOpen()}),onBlur:P(t.onBlur,a.onClose),onClick:P(t.onClick,a.onClose)})})},"TooltipTrigger")),uu="TooltipPortal",[_u,du]=$n(uu,{forceMount:void 0}),Qe="TooltipContent",fu=l.forwardRef(V(function(t,n){const o=du(Qe,t.__scopeTooltip),{forceMount:r=o.forceMount,side:a="top",...i}=t,c=$t(Qe,t.__scopeTooltip);return s.jsx(ge,{present:r||c.open,children:c.disableHoverableContent?s.jsx(pa,{side:a,...i,ref:n}):s.jsx(pu,{side:a,...i,ref:n})})},"TooltipContent")),pu=l.forwardRef(V(function(t,n){const o=$t(Qe,t.__scopeTooltip),r=Bn(Qe,t.__scopeTooltip),a=l.useRef(null),i=z(n,a),[c,u]=l.useState(null),{trigger:f,onClose:g}=o,p=a.current,{onPointerInTransitChange:d}=r,m=l.useCallback(()=>{u(null),d(!1)},[d]),v=l.useCallback((h,x)=>{const w=h.currentTarget,b={x:h.clientX,y:h.clientY},R=ma(b,w.getBoundingClientRect()),y=ha(b,R),C=ga(x.getBoundingClientRect()),S=xa([...y,...C]);u(S),d(!0)},[d]);return l.useEffect(()=>()=>m(),[m]),l.useEffect(()=>{if(f&&p){const h=V(w=>v(w,p),"handleTriggerLeave"),x=V(w=>v(w,f),"handleContentLeave");return f.addEventListener("pointerleave",h),p.addEventListener("pointerleave",x),()=>{f.removeEventListener("pointerleave",h),p.removeEventListener("pointerleave",x)}}},[f,p,v,m]),l.useEffect(()=>{if(c){const h=V(x=>{const w=x.target,b={x:x.clientX,y:x.clientY},R=(f==null?void 0:f.contains(w))||(p==null?void 0:p.contains(w)),y=!va(b,c);R?m():y&&(m(),g())},"handleTrackPointerGrace");return document.addEventListener("pointermove",h),()=>document.removeEventListener("pointermove",h)}},[f,p,c,g,m]),s.jsx(pa,{...t,ref:i})},"TooltipContentHoverable")),mu=_a("TooltipContent"),pa=l.forwardRef(V(function(t,n){const{__scopeTooltip:o,children:r,"aria-label":a,id:i,onEscapeKeyDown:c,onPointerDownOutside:u,...f}=t,g=$t(Qe,o),p=Hn(o),{onClose:d}=g;l.useEffect(()=>(document.addEventListener(mn,d),()=>document.removeEventListener(mn,d)),[d]),l.useEffect(()=>{if(g.trigger){const v=V(h=>{h.target instanceof Node&&h.target.contains(g.trigger)&&d()},"handleScroll");return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[g.trigger,d]);const{setContentId:m}=g;return de(()=>(m(i),()=>{m(void 0)}),[i,m]),s.jsx(gn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:v=>v.preventDefault(),onDismiss:d,children:s.jsxs(Ar,{"data-state":g.stateAttribute,role:a?void 0:"tooltip",id:a?void 0:g.contentId,...p,...f,ref:n,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[s.jsx(mu,{children:r}),a?s.jsx(ja,{id:g.contentId,role:"tooltip",children:a}):null]})})},"TooltipContentImpl"));function ma(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,o,r,a)){case a:return"left";case r:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}V(ma,"getExitSideFromRect");function ha(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}V(ha,"getPaddedExitPoints");function ga(e){const{top:t,right:n,bottom:o,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:o},{x:r,y:o}]}V(ga,"getPointsFromRect");function va(e,t){const{x:n,y:o}=e;let r=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const c=t[a],u=t[i],f=c.x,g=c.y,p=u.x,d=u.y;g>o!=d>o&&n<(p-f)*(o-g)/(d-g)+f&&(r=!r)}return r}V(va,"isPointInPolygon");function xa(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),ba(t)}V(xa,"getHull");function ba(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const r=e[o];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(r.y-i.y)>=(a.y-i.y)*(r.x-i.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const r=e[o];for(;n.length>=2;){const a=n[n.length-1],i=n[n.length-2];if((a.x-i.x)*(r.y-i.y)>=(a.y-i.y)*(r.x-i.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}V(ba,"getHullPresorted");var hu=iu,gu=cu,vu=lu,wa=fu;const xu=hu,bu=gu,wu=vu,ya=l.forwardRef(({className:e,sideOffset:t=6,...n},o)=>s.jsx(wa,{ref:o,sideOffset:t,className:I("z-50 overflow-hidden rounded-sm border border-line-strong bg-popover px-2.5 py-1.5 text-xs text-popover-foreground shadow-elevation","data-[state=delayed-open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=delayed-open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=delayed-open]:zoom-in-95",e),...n}));ya.displayName=wa.displayName;function mo({className:e,...t}){return s.jsx("div",{className:I("animate-pulse rounded-md bg-surface-2",e),...t})}function yu({icon:e,title:t,description:n,action:o,className:r}){return s.jsxs("div",{className:I("flex flex-col items-center gap-3 px-6 py-12 text-center",r),children:[e&&s.jsx("div",{className:"text-faint [&_svg]:h-8 [&_svg]:w-8",children:e}),s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("p",{className:"text-sm font-medium text-foreground",children:t}),n&&s.jsx("p",{className:"text-sm text-muted-foreground",children:n})]}),o&&s.jsx("div",{className:"mt-1",children:o})]})}function te({title:e,children:t}){return s.jsxs("section",{className:"flex flex-col gap-3",children:[s.jsx("h2",{className:"text-step-1 font-semibold tracking-tight",children:e}),s.jsx("div",{className:"flex flex-wrap items-center gap-3",children:t})]})}function Cu(){const{theme:e}=Aa(),[t,n]=l.useState("overview");return s.jsxs("div",{className:"mx-auto flex max-w-3xl flex-col gap-10 p-6 sm:p-10",children:[s.jsxs("header",{className:"flex items-start justify-between gap-4 border-b border-border pb-6",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-step-3 font-semibold tracking-tight",children:"Component gallery"}),s.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"coord web's design tokens + shadcn/ui primitive inventory (#1546). Dev-only — route-guarded out of reach in production (see App.tsx)."})]}),s.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[s.jsx("span",{className:"mono",children:e}),s.jsx(Oa,{})]})]}),s.jsxs(te,{title:"Button",children:[s.jsx(H,{children:"Primary"}),s.jsx(H,{variant:"outline",children:"Outline"}),s.jsx(H,{variant:"secondary",children:"Secondary"}),s.jsx(H,{variant:"ghost",children:"Ghost"}),s.jsx(H,{variant:"destructive",children:"Destructive"}),s.jsx(H,{variant:"link",children:"Link"}),s.jsx(H,{size:"sm",children:"Small"}),s.jsx(H,{size:"lg",children:"Large"}),s.jsx(H,{size:"icon","aria-label":"Play",children:s.jsx(Un,{})}),s.jsx(H,{disabled:!0,children:"Disabled"})]}),s.jsxs(te,{title:"Badge",children:[s.jsx(re,{children:"Default"}),s.jsx(re,{variant:"secondary",children:"Secondary"}),s.jsx(re,{variant:"outline",children:"Outline"}),s.jsx(re,{variant:"success",children:"Passed"}),s.jsx(re,{variant:"warning",children:"3 findings"}),s.jsx(re,{variant:"destructive",children:"Failed"})]}),s.jsx(te,{title:"Card",children:s.jsxs(ut,{className:"w-full max-w-sm",children:[s.jsxs(Jt,{children:[s.jsx(en,{children:"W1-1: design tokens"}),s.jsx(tn,{children:"#1546 · claude-coordinator"})]}),s.jsx(yo,{className:"text-sm text-muted-foreground",children:"Dark/light theme, component primitive baseline."}),s.jsxs(Co,{className:"gap-2",children:[s.jsx(re,{variant:"success",children:"Test · passed"}),s.jsx("span",{className:"mono ml-auto text-xs text-faint",children:"18m"})]})]})}),s.jsx(te,{title:"Tabs",children:s.jsxs(wi,{value:t,onValueChange:n,className:"w-full",children:[s.jsxs(Fo,{children:[s.jsx(dt,{value:"overview",children:"Overview"}),s.jsxs(dt,{value:"findings",children:["Findings ",s.jsx("span",{className:"ml-1 rounded-full bg-secondary px-1.5 text-faint",children:"3"})]}),s.jsx(dt,{value:"log",children:"Log"})]}),s.jsx(ft,{value:"overview",className:"text-sm text-muted-foreground",children:"Overview panel content."}),s.jsx(ft,{value:"findings",className:"text-sm text-muted-foreground",children:"Findings panel content."}),s.jsx(ft,{value:"log",className:"text-sm text-muted-foreground",children:"Log panel content."})]})}),s.jsx(te,{title:"Dialog",children:s.jsxs(ws,{children:[s.jsx(ys,{asChild:!0,children:s.jsx(H,{variant:"outline",children:"Open dialog"})}),s.jsxs(lr,{children:[s.jsxs(ur,{children:[s.jsx(fr,{children:"Drop to backlog?"}),s.jsx(pr,{children:"The session will stop and the branch stays as-is. You can resume from the backlog later."})]}),s.jsxs(dr,{children:[s.jsx(H,{variant:"outline",children:"Cancel"}),s.jsx(H,{variant:"destructive",children:"Drop to backlog"})]})]})]})}),s.jsx(te,{title:"Dropdown menu",children:s.jsxs(Kl,{children:[s.jsx(Ul,{asChild:!0,children:s.jsx(H,{variant:"outline",size:"icon","aria-label":"More actions",children:s.jsx($a,{})})}),s.jsxs(aa,{align:"end",children:[s.jsx(ia,{children:"Start — interactive"}),s.jsxs(ze,{children:[s.jsx(Un,{})," Work",s.jsx(pn,{children:"W"})]}),s.jsxs(ze,{children:[s.jsx(Na,{})," Testing",s.jsx(pn,{children:"T"})]}),s.jsx(sa,{}),s.jsxs(ze,{variant:"hot",children:[s.jsx(Ba,{})," Address review findings"]}),s.jsx(ze,{variant:"danger",children:"Stop session"})]})]})}),s.jsx(te,{title:"Sheet (mobile action sheet)",children:s.jsxs(Ql,{children:[s.jsx(Jl,{asChild:!0,children:s.jsx(H,{variant:"outline",children:"Open action sheet"})}),s.jsxs(la,{side:"bottom",children:[s.jsxs(ua,{children:[s.jsx(da,{children:"#1289 · Tab-group focus ring"}),s.jsx(fa,{children:"Choose an action"})]}),s.jsxs("div",{className:"flex flex-col gap-1 py-2",children:[s.jsx(H,{variant:"ghost",className:"justify-start",children:"Read diff"}),s.jsx(H,{variant:"ghost",className:"justify-start text-attn",children:"Address findings"})]})]})]})}),s.jsx(te,{title:"Tooltip",children:s.jsx(xu,{children:s.jsxs(bu,{children:[s.jsx(wu,{asChild:!0,children:s.jsx(H,{variant:"outline",size:"icon","aria-label":"Help",children:"?"})}),s.jsx(ya,{children:"Stage strip shows Work → Test → Review → Merge"})]})})}),s.jsx(te,{title:"Skeleton",children:s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx(mo,{className:"h-4 w-48"}),s.jsx(mo,{className:"h-4 w-32"})]})}),s.jsx(te,{title:"Empty state",children:s.jsx(ut,{className:"w-full",children:s.jsx(yu,{icon:s.jsx(Ha,{}),title:"No issues match this filter",description:"Try a different repo or clear the search.",action:s.jsx(H,{variant:"outline",size:"sm",children:"Clear filters"})})})}),s.jsxs(te,{title:"Toast",children:[s.jsx(H,{variant:"outline",onClick:()=>Bt({title:"Drive started",description:"dellserver · issue-1538"}),children:"Default"}),s.jsx(H,{variant:"outline",onClick:()=>Bt({variant:"success",title:"Test passed",description:"612 tests · 3m 18s"}),children:"Success"}),s.jsx(H,{variant:"outline",onClick:()=>Bt({variant:"destructive",title:"Merge blocked",description:"CI is red on develop"}),children:"Destructive"}),s.jsx(ka,{})]}),s.jsxs("section",{className:"flex flex-col gap-3 border-t border-border pt-8",children:[s.jsx("h2",{className:"text-step-1 font-semibold tracking-tight",children:"Side by side"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Both themes at once, forced independent of the live toggle above (non-overlay primitives only — see the file header comment for why)."}),s.jsx("div",{className:"grid gap-4 sm:grid-cols-2",children:["dark","light"].map(o=>s.jsxs("div",{"data-theme":o,className:"flex flex-col gap-4 rounded-lg border border-border bg-background p-5 text-foreground",children:[s.jsx("span",{className:"mono text-xs uppercase tracking-wide text-faint",children:o}),s.jsxs("div",{className:"flex flex-wrap gap-2",children:[s.jsx(H,{size:"sm",children:"Primary"}),s.jsx(H,{size:"sm",variant:"outline",children:"Outline"}),s.jsx(re,{variant:"success",children:"Passed"}),s.jsx(re,{variant:"warning",children:"Findings"}),s.jsx(re,{variant:"destructive",children:"Failed"})]}),s.jsx(ut,{children:s.jsxs(Jt,{children:[s.jsx(en,{children:"#1538"}),s.jsx(tn,{children:"coord web --fixture"})]})})]},o))})]})]})}function Iu(){return s.jsx(Ia,{children:s.jsx(Cu,{})})}export{Iu as default};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2014 The xterm.js authors. All rights reserved.
|
|
3
|
+
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
|
4
|
+
* https://github.com/chjj/term.js
|
|
5
|
+
* @license MIT
|
|
6
|
+
*
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
* furnished to do so, subject to the following conditions:
|
|
13
|
+
*
|
|
14
|
+
* The above copyright notice and this permission notice shall be included in
|
|
15
|
+
* all copies or substantial portions of the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
+
* THE SOFTWARE.
|
|
24
|
+
*
|
|
25
|
+
* Originally forked from (with the author's permission):
|
|
26
|
+
* Fabrice Bellard's javascript vt100 for jslinux:
|
|
27
|
+
* http://bellard.org/jslinux/
|
|
28
|
+
* Copyright (c) 2011 Fabrice Bellard
|
|
29
|
+
* The original design remains. The terminal itself
|
|
30
|
+
* has been extended to include xterm CSI codes, among
|
|
31
|
+
* other features.
|
|
32
|
+
*/.xterm{cursor:text;position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::-moz-selection{color:transparent}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;-webkit-user-select:text;-moz-user-select:text;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:-moz-fit-content;width:fit-content}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}
|