@openscout/scout 0.2.90 → 0.2.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -4
- package/bin/scoutd +0 -0
- package/dist/build-manifest.json +3 -3
- package/dist/client/assets/{ActivityScreen-BUeb4ERK.js → ActivityScreen-DkUP7V7M.js} +1 -1
- package/dist/client/assets/{AddProjectForm-DtTfn4Zk.js → AddProjectForm-CpyytDf2.js} +1 -1
- package/dist/client/assets/{AgentAvatar-CneOa70z.js → AgentAvatar-D8ZtMluU.js} +1 -1
- package/dist/client/assets/{AgentConfigurationScreen-CkZ7EjZh.js → AgentConfigurationScreen-BlGI6fuM.js} +1 -1
- package/dist/client/assets/{AgentDefinitionsWorkspace-0Y3kqMtv.js → AgentDefinitionsWorkspace-CfaDVCVt.js} +1 -1
- package/dist/client/assets/{AgentDetailCard-Dtc02KUO.js → AgentDetailCard-BTiOmh-a.js} +1 -1
- package/dist/client/assets/{AgentFloorView-B5raPB_U.js → AgentFloorView-DjNLILLt.js} +1 -1
- package/dist/client/assets/{AgentInfoScreen-DFG4ElZD.js → AgentInfoScreen-DG5dlHb_.js} +1 -1
- package/dist/client/assets/{AgentLaneCard-BRAkw8YJ.js → AgentLaneCard-lfRNb7JD.js} +1 -1
- package/dist/client/assets/{AgentLaneChrome-T8QE5742.js → AgentLaneChrome-Dlwrbq3g.js} +1 -1
- package/dist/client/assets/{AgentLaneDetailSheet-C8RYotnv.js → AgentLaneDetailSheet-BzYzBfcW.js} +1 -1
- package/dist/client/assets/{AgentLaneSummaryResize-FyYweLo_.js → AgentLaneSummaryResize-6SOEWUnr.js} +1 -1
- package/dist/client/assets/AgentLanesEmbedScreen-Crxx1srt.js +1 -0
- package/dist/client/assets/{AgentLanesPreflight-Cil3dNwu.js → AgentLanesPreflight-C3uOiOzd.js} +1 -1
- package/dist/client/assets/{AgentLanesView-DPfO8MOo.js → AgentLanesView-ChNlmY-F.js} +1 -1
- package/dist/client/assets/{AgentLiveActions-DwScaVRF.js → AgentLiveActions-BJ5dIfL3.js} +1 -1
- package/dist/client/assets/{AgentSessions-DKoWA0Lm.js → AgentSessions-DpY0htZV.js} +1 -1
- package/dist/client/assets/{AgentsConsole-DoBIWGoq.js → AgentsConsole-CHyXrjhm.js} +1 -1
- package/dist/client/assets/{AgentsScreen-JuUiSuwY.js → AgentsScreen-BhCjX2lD.js} +1 -1
- package/dist/client/assets/AgentsSubnav-az_VDkri.js +1 -0
- package/dist/client/assets/{AtopView-ycxMrRwp.js → AtopView-BjjPM8OX.js} +1 -1
- package/dist/client/assets/{BackToPicker-D6WgIDb-.js → BackToPicker-D1LV6Cqp.js} +1 -1
- package/dist/client/assets/{BriefingDetailScreen-Zw-taW1s.js → BriefingDetailScreen-B7qJ90Np.js} +1 -1
- package/dist/client/assets/{BriefingsScreen-BerYOoWS.js → BriefingsScreen-CW6N829d.js} +1 -1
- package/dist/client/assets/{BrokerMetadataPanel-Cu93j-Ga.js → BrokerMetadataPanel-BhjECqOK.js} +1 -1
- package/dist/client/assets/{BrokerScreen-CeN90URH.js → BrokerScreen-X3z50712.js} +1 -1
- package/dist/client/assets/{ChatCollapsedStrip-DdKyMSEM.js → ChatCollapsedStrip-DNR9osDy.js} +1 -1
- package/dist/client/assets/{CodeDiffPane-BjCOBLze.js → CodeDiffPane-Bx_2VAzv.js} +1 -1
- package/dist/client/assets/{CodeProjectPicker-NSGdCaK0.js → CodeProjectPicker-C1yOJKvs.js} +1 -1
- package/dist/client/assets/{CodeScreen-CA9Sq6Dx.js → CodeScreen-CIKK1LcZ.js} +1 -1
- package/dist/client/assets/{ContextMenu-DnFcmfMR.js → ContextMenu-CHIuVKz7.js} +1 -1
- package/dist/client/assets/{ConversationComposer-CjRXFkvY.js → ConversationComposer-Bf7Ga_49.js} +1 -1
- package/dist/client/assets/{ConversationFeedRows-CgRTIpAv.js → ConversationFeedRows-Cm1Lgo43.js} +1 -1
- package/dist/client/assets/{ConversationHeader-CRmdtuL7.js → ConversationHeader-B_GXrKR0.js} +1 -1
- package/dist/client/assets/{ConversationPanels-DCkcLIHk.js → ConversationPanels-BTBbEvrP.js} +2 -2
- package/dist/client/assets/{ConversationScreen-Br0QQ3xo.js → ConversationScreen-B3l2m3JI.js} +1 -1
- package/dist/client/assets/{ConversationStatus-BJ1CMbAv.js → ConversationStatus-BqhUHD85.js} +1 -1
- package/dist/client/assets/{DataTable-Dzqiaha4.js → DataTable-CJbbgBdA.js} +1 -1
- package/dist/client/assets/{DispatchAftermath-B0WMg_z3.js → DispatchAftermath-BDA9CrOd.js} +1 -1
- package/dist/client/assets/{DocumentFocusViewer-CZVVIAD5.js → DocumentFocusViewer-B9vodVmG.js} +1 -1
- package/dist/client/assets/{EmbeddableSurfacesLab-C3a7hJWO.js → EmbeddableSurfacesLab-BdsYRDky.js} +1 -1
- package/dist/client/assets/{EmptyState-CYNJZMrZ.js → EmptyState-BRY5jTpz.js} +1 -1
- package/dist/client/assets/{FileViewerPane-Fwt8_KmD.js → FileViewerPane-9Bveqm9c.js} +1 -1
- package/dist/client/assets/{FleetSearch-Dsi_l2KW.js → FleetSearch-Bj9SCl2f.js} +1 -1
- package/dist/client/assets/{FlightObserveScreen-g_tiGmvz.js → FlightObserveScreen-BVMdsiCC.js} +1 -1
- package/dist/client/assets/{FollowScreen-Bb_rcrzi.js → FollowScreen-BifwHWOV.js} +1 -1
- package/dist/client/assets/{HarnessMark-DrE57dUq.js → HarnessMark-BPAphNjx.js} +1 -1
- package/dist/client/assets/{HarnessesScreen-CAsCJ_tG.js → HarnessesScreen-fMnbnrD4.js} +1 -1
- package/dist/client/assets/{HerdrSession-1eVu9Owj.js → HerdrSession-BujfGzrP.js} +1 -1
- package/dist/client/assets/{HomeHero-W445QrG1.js → HomeHero-BgM6S39l.js} +1 -1
- package/dist/client/assets/{KnowledgeSearchInspector-CbPVg3fr.js → KnowledgeSearchInspector-B4ZY24xE.js} +1 -1
- package/dist/client/assets/{KnowledgeSearchScreen-C1lN1xJk.js → KnowledgeSearchScreen-Ch_WENUC.js} +1 -1
- package/dist/client/assets/{LaneToolHoverCard-BkBcDYm-.js → LaneToolHoverCard-B7KdvQvf.js} +1 -1
- package/dist/client/assets/{LaneTraceDetailSheet-CzTd44rf.js → LaneTraceDetailSheet-H3AnN-vN.js} +1 -1
- package/dist/client/assets/{LaneTraceEventFocus-BmMmPTyJ.js → LaneTraceEventFocus-mkMw2wJU.js} +1 -1
- package/dist/client/assets/{MeshCanvas-DwkjsiJ5.js → MeshCanvas-CpKcWxKy.js} +1 -1
- package/dist/client/assets/{MeshCanvasMinimap-vmCpU1sD.js → MeshCanvasMinimap-C9IoGHbe.js} +1 -1
- package/dist/client/assets/{MeshScreen-CkMepUpT.js → MeshScreen-48QkJSDI.js} +1 -1
- package/dist/client/assets/{MeshTopologyView-BD2xLE2C.js → MeshTopologyView-DFzr0IZM.js} +2 -2
- package/dist/client/assets/{MessageComposerSuggestions-qbalTne_.js → MessageComposerSuggestions-FdVHnT_q.js} +1 -1
- package/dist/client/assets/{MessagesScreen-C8UynyLC.js → MessagesScreen-BMOOfbWX.js} +1 -1
- package/dist/client/assets/{MissionContextRail-D5MEP2f4.js → MissionContextRail-Y8QxUZGE.js} +1 -1
- package/dist/client/assets/{MissionControlView-K_I7eftL.js → MissionControlView-BpsHKu1F.js} +1 -1
- package/dist/client/assets/{MissionFocusOverlay-CWKLdUKG.js → MissionFocusOverlay-BPnAEA3F.js} +1 -1
- package/dist/client/assets/{MissionLeftAgentRow-ByGrNAcs.js → MissionLeftAgentRow-iOZ6ds9L.js} +1 -1
- package/dist/client/assets/{MissionLogPane-ZwHJ137T.js → MissionLogPane-B0csI89E.js} +1 -1
- package/dist/client/assets/{NewAgentModal-Do9aVvan.js → NewAgentModal-DBHJR9Qm.js} +1 -1
- package/dist/client/assets/{NewChatComposer-DKlNX1UA.js → NewChatComposer-Hd7pI5Ac.js} +1 -1
- package/dist/client/assets/{NewChatOrigin-DXPvX-hh.js → NewChatOrigin-DmuJ32wa.js} +1 -1
- package/dist/client/assets/{ObserveEmbedScreen-Dghsq2on.js → ObserveEmbedScreen-DyArn7Id.js} +1 -1
- package/dist/client/assets/{ObserveTextFlow-DWNlmTVm.js → ObserveTextFlow-CkMrtT8s.js} +2 -2
- package/dist/client/assets/{ObservedTopologyPanel-BlmGoxCE.js → ObservedTopologyPanel-CaSZZP05.js} +1 -1
- package/dist/client/assets/{OpenScoutAppShell-DDqQi-oe.js → OpenScoutAppShell-BtlKkiuF.js} +1 -1
- package/dist/client/assets/{OpsAgentsView-Bn_fGBdo.js → OpsAgentsView-CnqrwbC2.js} +1 -1
- package/dist/client/assets/OpsScreen-DOlmlVkP.js +1 -0
- package/dist/client/assets/OpsSubnav-Dj3ShAKv.js +1 -0
- package/dist/client/assets/{PlanView-B6gKo543.js → PlanView-BLGdWDx6.js} +1 -1
- package/dist/client/assets/ProjectAgentProfile-Dv1sVnQl.js +1 -0
- package/dist/client/assets/{ProjectAgentProfileBar-C5QWwZCn.js → ProjectAgentProfileBar-BLVg5EeA.js} +1 -1
- package/dist/client/assets/{ProjectAgentProfileHero-DC7Dd8VL.js → ProjectAgentProfileHero-0-GDhsPT.js} +1 -1
- package/dist/client/assets/{ProjectsInbox-DCLrDmj1.js → ProjectsInbox-B3DpAI5b.js} +1 -1
- package/dist/client/assets/{ProjectsRail-C4hiXYSb.js → ProjectsRail-BDl7U9Jq.js} +1 -1
- package/dist/client/assets/ProjectsScreen-Dl2FcGrR.js +1 -0
- package/dist/client/assets/{ProjectsThreadAside-DYmL2dCY.js → ProjectsThreadAside-BcGC5mHE.js} +1 -1
- package/dist/client/assets/{Provider-p-xuaAoE.js → Provider-cJCdHAxu.js} +1 -1
- package/dist/client/assets/{RailRow-bRkkXIpR.js → RailRow-CLcVmywd.js} +1 -1
- package/dist/client/assets/{RawSessionsTable-B7WKmXrk.js → RawSessionsTable-DBto4Ts-.js} +1 -1
- package/dist/client/assets/{RealtimeVoiceScreen-BzP3BQq9.js → RealtimeVoiceScreen-DXEU5v3g.js} +1 -1
- package/dist/client/assets/{RepoDiffEmbedScreen-xjzjcJ_c.js → RepoDiffEmbedScreen-BCDXFE3D.js} +1 -1
- package/dist/client/assets/{RepoDiffPageScreen-DRzIY-dk.js → RepoDiffPageScreen-m62FiWXC.js} +1 -1
- package/dist/client/assets/{RepoDiffViewer-CNDp01KM.js → RepoDiffViewer-PaNeZMhJ.js} +1 -1
- package/dist/client/assets/RepoDiffViewerLazy-CWE5GxMP.js +2 -0
- package/dist/client/assets/{ReposScreen-CpaLC_NU.js → ReposScreen-Cksv1cAD.js} +1 -1
- package/dist/client/assets/{ScoutDeckSurface-DkpZ-0DH.js → ScoutDeckSurface-BCjPl7C4.js} +1 -1
- package/dist/client/assets/{ScoutSurface-BENBUt5-.js → ScoutSurface-CkgT7A-c.js} +1 -1
- package/dist/client/assets/{ScoutbotBroadcastChip-CGZyxS5H.js → ScoutbotBroadcastChip-DkiRCHuK.js} +1 -1
- package/dist/client/assets/{ScoutbotFxLab-Bk2ZsfPp.js → ScoutbotFxLab-D-kV5j4T.js} +1 -1
- package/dist/client/assets/{ScoutbotRealtimeVoiceCall-n63LdBZs.js → ScoutbotRealtimeVoiceCall-1ixiEn1L.js} +1 -1
- package/dist/client/assets/{SecondaryNav-B4IsujYh.js → SecondaryNav-_wyKjwNf.js} +1 -1
- package/dist/client/assets/{SessionEmbedScreen-CPfH-jqN.js → SessionEmbedScreen-CJZmIBV7.js} +1 -1
- package/dist/client/assets/{SessionObserve-B-SkP3tu.js → SessionObserve-yYA8Gy5s.js} +1 -1
- package/dist/client/assets/{SessionObserveEvidence-CF5jnH3-.js → SessionObserveEvidence-cHdjYOJe.js} +1 -1
- package/dist/client/assets/{SessionRefScreen-C-4jjmVG.js → SessionRefScreen-OkTY7Szg.js} +1 -1
- package/dist/client/assets/SessionsScreen-B-GFjxIA.js +1 -0
- package/dist/client/assets/{SettingsDrawer-DATxwZrn.js → SettingsDrawer-Co11RFX0.js} +1 -1
- package/dist/client/assets/{SettingsScreen-Bu53X7J_.js → SettingsScreen-Cn09nq5_.js} +1 -1
- package/dist/client/assets/{ShikiPane-DH8yYDks.js → ShikiPane-dBS9hD-z.js} +1 -1
- package/dist/client/assets/{SlidePanel-RFXJpfUa.js → SlidePanel-CH-3-8_2.js} +1 -1
- package/dist/client/assets/{SpriteAvatar-CEYdCzem.js → SpriteAvatar-DS6Tmyua.js} +1 -1
- package/dist/client/assets/{StatusPill-9uy70ttd.js → StatusPill-C8m9ZymF.js} +1 -1
- package/dist/client/assets/{TailView-6bIrgdxN.js → TailView-B0BSopPs.js} +1 -1
- package/dist/client/assets/{Terminal-BI6km7H4.js → Terminal-U8gjIdm3.js} +1 -1
- package/dist/client/assets/{TerminalEmbedScreen-D4JOWwtm.js → TerminalEmbedScreen-CTmdE7us.js} +1 -1
- package/dist/client/assets/{TextDocumentSurface-BcP9vvji.js → TextDocumentSurface-BWJCGBZf.js} +1 -1
- package/dist/client/assets/{TmuxPeek-IaWqCgyJ.js → TmuxPeek-B4QdHbGm.js} +1 -1
- package/dist/client/assets/{VoicePermissionsPanel-C80iZxgy.js → VoicePermissionsPanel-Dd4ITJy_.js} +1 -1
- package/dist/client/assets/{WorkDetailScreen-CweZ6fEd.js → WorkDetailScreen-mJs0mb99.js} +1 -1
- package/dist/client/assets/{WorkFilesViewer-Dy_-06iI.js → WorkFilesViewer-ODzLXKxj.js} +1 -1
- package/dist/client/assets/{activity-DS0u0Itf.js → activity-CC8JzJNH.js} +1 -1
- package/dist/client/assets/{addon-fit-CN888B3D.js → addon-fit-CaZ-uLrg.js} +1 -1
- package/dist/client/assets/{addon-webgl-CoAnanQS.js → addon-webgl-B8utL3bM.js} +1 -1
- package/dist/client/assets/{agent-essentials-CuK4G_zS.js → agent-essentials-B3wcxg_v.js} +1 -1
- package/dist/client/assets/{arc.es-BET9ev6q.js → arc.es-uFv9UrHn.js} +1 -1
- package/dist/client/assets/{arrow-down-DxxPnPwh.js → arrow-down-w1HPzDSE.js} +1 -1
- package/dist/client/assets/{arrow-left-CXDkJuCg.js → arrow-left-B-3GJ7ct.js} +1 -1
- package/dist/client/assets/{arrow-up-right-Bj8RjSqW.js → arrow-up-right-G6bJXxhK.js} +1 -1
- package/dist/client/assets/{bot-BSGSicKC.js → bot-DzCOGKi6.js} +1 -1
- package/dist/client/assets/{check-BfA0T8UD.js → check-BX8nRgop.js} +1 -1
- package/dist/client/assets/{chevron-down-BVg09D6U.js → chevron-down-B3VVRJcV.js} +1 -1
- package/dist/client/assets/{chevron-right-CaEwYkxE.js → chevron-right-BYMV1511.js} +1 -1
- package/dist/client/assets/{chunk-HRAB3GC3-HhKwnZCi.js → chunk-HRAB3GC3-dRd2eQMJ.js} +1 -1
- package/dist/client/assets/{chunk-JTPDIGGW-DX2eTIQ_.js → chunk-JTPDIGGW-BjX67kHU.js} +3 -3
- package/dist/client/assets/{chunk-T65CQEWV-D-bOfuCH.js → chunk-T65CQEWV-kP6nJjkU.js} +1 -1
- package/dist/client/assets/{chunk-YOZR3KYS-oS9dlQCI.js → chunk-YOZR3KYS-C13bZPVd.js} +1 -1
- package/dist/client/assets/{clock-C3TUL7D7.js → clock-B9ukVaVn.js} +1 -1
- package/dist/client/assets/{code-xml-Dbvjk9Kw.js → code-xml-BFc3TMSm.js} +1 -1
- package/dist/client/assets/{content-CiOMtgQc.js → content-B8gahuBy.js} +1 -1
- package/dist/client/assets/content-BIqX06OQ.js +1 -0
- package/dist/client/assets/content-BKDZ6Fxe.js +1 -0
- package/dist/client/assets/content-C15Ya-iu.js +1 -0
- package/dist/client/assets/content-CDE9tJDF.js +1 -0
- package/dist/client/assets/content-CSAfI-PX.js +1 -0
- package/dist/client/assets/content-CTF9D60D.js +1 -0
- package/dist/client/assets/{content-CJuH5cDP.js → content-CbAGkYQO.js} +1 -1
- package/dist/client/assets/content-CtqLJOVp.js +1 -0
- package/dist/client/assets/content-Dvs1KRfo.js +1 -0
- package/dist/client/assets/content-DyJdVZjI.js +1 -0
- package/dist/client/assets/{content-C2TZOKSE.js → content-Ji7ATaf7.js} +1 -1
- package/dist/client/assets/content-eqZXKWcP.js +1 -0
- package/dist/client/assets/content-iyyQKwvA.js +1 -0
- package/dist/client/assets/content-pDE7Fpb9.js +1 -0
- package/dist/client/assets/content-pPSd2dua.js +1 -0
- package/dist/client/assets/{conversation-icons-DmC_Ak3z.js → conversation-icons-gpsv650H.js} +1 -1
- package/dist/client/assets/conversation-motion-features-DXtKlmuM.js +1 -0
- package/dist/client/assets/{copy-C79v_7D-.js → copy-BFmOcWof.js} +1 -1
- package/dist/client/assets/{createLucideIcon-DCq_3fQn.js → createLucideIcon-CFBn0Sdk.js} +1 -1
- package/dist/client/assets/{discover-IEnbrH8_.js → discover-DKf0aTr_.js} +2 -2
- package/dist/client/assets/embed-entry-RlQUTtc4.js +2 -0
- package/dist/client/assets/{external-link-Dd8xaveL.js → external-link-B1TI5yIt.js} +1 -1
- package/dist/client/assets/{eye-DkU59kfl.js → eye-1J4yOUoG.js} +1 -1
- package/dist/client/assets/{file-text-BITQqGtF.js → file-text-DcYSrI4v.js} +1 -1
- package/dist/client/assets/{gestures-B5rLNRpi.js → gestures-CcEOV6Sr.js} +1 -1
- package/dist/client/assets/{home-moving-signal-Bs635mVw.js → home-moving-signal-Bh2FugbH.js} +1 -1
- package/dist/client/assets/{home-now-card-VxlLjg1A.js → home-now-card-ByRH5fFx.js} +1 -1
- package/dist/client/assets/{home-now-card-nano-C06GMiwD.js → home-now-card-nano-y1EhBvVL.js} +1 -1
- package/dist/client/assets/{hooks-BWiLxTw1.js → hooks-DUZwL3Aq.js} +1 -1
- package/dist/client/assets/index-BBznYVWk.css +1 -0
- package/dist/client/assets/{index-BTj2MguM.js → index-BTuq-8Iv.js} +1 -1
- package/dist/client/assets/index-CmwGCxUk.js +1 -0
- package/dist/client/assets/{index-BZovGpDk.js → index-DmFAhGPj.js} +2 -2
- package/dist/client/assets/{index-vbaJ8sin.js → index-Dtaswdsh.js} +1 -1
- package/dist/client/assets/{inspector-panel-C96HcyK5.js → inspector-panel-DzgS5_Mv.js} +1 -1
- package/dist/client/assets/{keyboard-nav-CHo_xmjw.js → keyboard-nav-h1IdakpD.js} +1 -1
- package/dist/client/assets/{lane-roster-store-B6ybJlHJ.js → lane-roster-store-71vFgAem.js} +1 -1
- package/dist/client/assets/{left-DMJkmJOF.js → left-8NITBvFX.js} +1 -1
- package/dist/client/assets/{left-COMAiMfB.js → left-B2HEqrTM.js} +1 -1
- package/dist/client/assets/{left-C6Zj3cR4.js → left-CTYUvXbe.js} +1 -1
- package/dist/client/assets/{left-BuJ0wJW1.js → left-CwDRT50z.js} +1 -1
- package/dist/client/assets/{left-l92tw5Kc.js → left-CxlDLJlw.js} +1 -1
- package/dist/client/assets/{left-Ce4WKYPK.js → left-XFXxNd4g.js} +1 -1
- package/dist/client/assets/{left-agents-BuSyVNGE.js → left-agents-Ck4Xn-R8.js} +1 -1
- package/dist/client/assets/{left-default-DRHywOKX.js → left-default-BeOyS0bR.js} +1 -1
- package/dist/client/assets/{left-lanes-4-aUyyrV.js → left-lanes-DZp3jJMo.js} +1 -1
- package/dist/client/assets/{left-mission-e849d_Td.js → left-mission-CuKFQ5xL.js} +1 -1
- package/dist/client/assets/left-p1hkO6P0.js +1 -0
- package/dist/client/assets/{left-plan-MchYwAB_.js → left-plan-3rrFENhp.js} +1 -1
- package/dist/client/assets/{library-DygjpA6u.js → library-E--gKzEZ.js} +1 -1
- package/dist/client/assets/{loader-circle-B-l2Wj3-.js → loader-circle-d6PKL_KD.js} +1 -1
- package/dist/client/assets/{local-agents-Wof5knTJ.js → local-agents-B5pq17tZ.js} +1 -1
- package/dist/client/assets/{mentions-BjXfeF7t.js → mentions-agCGDgyA.js} +1 -1
- package/dist/client/assets/{mesh-ops-C1gq8zKf.js → mesh-ops-5pZCYptW.js} +1 -1
- package/dist/client/assets/{mesh-view-store-B56D3f77.js → mesh-view-store-KJzABIkN.js} +1 -1
- package/dist/client/assets/{message-circle-BwVx5X0q.js → message-circle-CJO-pi7b.js} +1 -1
- package/dist/client/assets/{message-markup-DlVX-iuc.js → message-markup-CyRDLdOn.js} +1 -1
- package/dist/client/assets/{message-square-BnkG6tae.js → message-square-D1hMsMj_.js} +1 -1
- package/dist/client/assets/{mission-control-store-CMgIVjLJ.js → mission-control-store-Ce6dOvnZ.js} +1 -1
- package/dist/client/assets/{observe-DVHAcIrv.js → observe-BSWVM8YA.js} +1 -1
- package/dist/client/assets/{page-status-Bg2hd27j.js → page-status-D2FQLJOX.js} +1 -1
- package/dist/client/assets/{paperclip-DblaLD_N.js → paperclip-iZmDMOS5.js} +1 -1
- package/dist/client/assets/{plus-BAI0t5g9.js → plus-gZ0T0eBI.js} +1 -1
- package/dist/client/assets/{profile-3Q4sUtvJ.js → profile-Dxj3VVOM.js} +1 -1
- package/dist/client/assets/{projects-inbox-Da2hYEn6.js → projects-inbox-Dzt_GQDv.js} +1 -1
- package/dist/client/assets/{radio-BGtkyCG9.js → radio-RMLfV4EO.js} +1 -1
- package/dist/client/assets/{refresh-cw-DtF8xPqX.js → refresh-cw-C4x1x6b_.js} +1 -1
- package/dist/client/assets/resolve-panes-C9gF0w4e.js +1 -0
- package/dist/client/assets/resolve-sidebar-context-DxbY5RCH.js +1 -0
- package/dist/client/assets/{right-Dd2DscRz.js → right-5L7Tn0zG.js} +1 -1
- package/dist/client/assets/{right-BU_W1kSH.js → right-CYtkMmRu.js} +1 -1
- package/dist/client/assets/{right-CUP-NIDG.js → right-CreoQzPP.js} +1 -1
- package/dist/client/assets/{right-c4PAdFYZ.js → right-D-k9Z1Fe.js} +1 -1
- package/dist/client/assets/{right-ByptvkVX.js → right-D9xFfy2b.js} +1 -1
- package/dist/client/assets/{right-BlR7h0US.js → right-DI7zHADe.js} +1 -1
- package/dist/client/assets/{right-BwgwTGGd.js → right-DUbJ3WVc.js} +1 -1
- package/dist/client/assets/{right-DmVHd8Xj.js → right-DiybhsiK.js} +1 -1
- package/dist/client/assets/{right-Ch_jrNe2.js → right-Jh_1Q88s.js} +1 -1
- package/dist/client/assets/{right-B8qg3JdB.js → right-udr1qTJG.js} +1 -1
- package/dist/client/assets/{rocket-BWh18pt_.js → rocket-CMM-IdLy.js} +1 -1
- package/dist/client/assets/{router-63XV_E7f.js → router-Cn_s9IGH.js} +1 -1
- package/dist/client/assets/{runtime-picker-BXKJbLot.js → runtime-picker--IW3cRry.js} +1 -1
- package/dist/client/assets/{scope-views-Dm2_-NPi.js → scope-views-BIfMTXU4.js} +1 -1
- package/dist/client/assets/{scout-voice-D8Q5sZOL.js → scout-voice-CwbOz6EN.js} +1 -1
- package/dist/client/assets/{scroll-text-DZb3mmYo.js → scroll-text-DPPYrqB9.js} +1 -1
- package/dist/client/assets/{search-1QMVOxF3.js → search-DAyagUtF.js} +1 -1
- package/dist/client/assets/{secondaryNavConfig-c0cz3MkJ.js → secondaryNavConfig-Dw3gS1jR.js} +1 -1
- package/dist/client/assets/{selection-bridge-O9C4kGfF.js → selection-bridge-BXw09aRF.js} +1 -1
- package/dist/client/assets/{send-horizontal-DbyEkGql.js → send-horizontal-IcG46D2M.js} +1 -1
- package/dist/client/assets/{server-Bncn9S7r.js → server-BySujhDV.js} +1 -1
- package/dist/client/assets/{session-catalog-DC6BlBBC.js → session-catalog-ClS9xf6i.js} +1 -1
- package/dist/client/assets/{session-table-BUPq9Viy.js → session-table-BdpHs1GN.js} +1 -1
- package/dist/client/assets/{sliders-horizontal-CMe8Bay1.js → sliders-horizontal-R5pWUUcH.js} +1 -1
- package/dist/client/assets/{sparkles-_7cTZsIH.js → sparkles-DJOBD_8l.js} +1 -1
- package/dist/client/assets/{sse-Bb0EOcU9.js → sse-CxXt4tqI.js} +1 -1
- package/dist/client/assets/{tail-events-C12pfUax.js → tail-events-BdvqZHLr.js} +1 -1
- package/dist/client/assets/{terminal-xGf_F3y7.js → terminal-DJPUp_Qn.js} +1 -1
- package/dist/client/assets/{terminal-relay-BgfVJXIL.js → terminal-relay-TffuSPGs.js} +1 -1
- package/dist/client/assets/{terminal-takeover--05EYhJm.js → terminal-takeover-BOFPRPjR.js} +1 -1
- package/dist/client/assets/{use-conversation-list-DWX02INv.js → use-conversation-list-C-dPcjQe.js} +1 -1
- package/dist/client/assets/{use-fleet-active-asks-Cnwa4hTK.js → use-fleet-active-asks-BHzeBZSW.js} +1 -1
- package/dist/client/assets/{use-mesh-ops-items-BRFm37oY.js → use-mesh-ops-items-KmaauBr_.js} +1 -1
- package/dist/client/assets/{use-reduced-motion-C8cWvIZ3.js → use-reduced-motion-CYqhYqHO.js} +1 -1
- package/dist/client/assets/{use-scout-dev-flags-FkMreOOb.js → use-scout-dev-flags-BJbw87PK.js} +1 -1
- package/dist/client/assets/{useAgentHoverCard-DvPZSJK3.js → useAgentHoverCard-C6o0tlat.js} +1 -1
- package/dist/client/assets/useContentSecondaryNav-DjHBrgnS.js +1 -0
- package/dist/client/assets/{usePierreRuntime-C8WJ0X3F.js → usePierreRuntime-Cm7-qdm0.js} +1 -1
- package/dist/client/assets/{wrench-_tHBGTop.js → wrench-CvRjjByE.js} +1 -1
- package/dist/client/assets/{x-CrGUKNRv.js → x-C8ayPBtj.js} +1 -1
- package/dist/client/assets/{xterm-Ks-VlLTq.js → xterm-B0ci4Q9a.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/main.mjs +348 -254
- package/dist/scout-web-server.mjs +2 -96660
- package/package.json +3 -3
- package/dist/client/assets/AgentLanesEmbedScreen-Br7cmZVO.js +0 -1
- package/dist/client/assets/AgentsSubnav-BV0WAgzf.js +0 -1
- package/dist/client/assets/OpsScreen-DHnT-Q9R.js +0 -1
- package/dist/client/assets/OpsSubnav-CJRD7MjM.js +0 -1
- package/dist/client/assets/ProjectAgentProfile-Be1VOkI4.js +0 -1
- package/dist/client/assets/ProjectsScreen-jruZRjgD.js +0 -1
- package/dist/client/assets/RepoDiffViewerLazy-b6vjYxez.js +0 -2
- package/dist/client/assets/SessionsScreen-HAjFvmIq.js +0 -1
- package/dist/client/assets/content-BQuEedeL.js +0 -1
- package/dist/client/assets/content-BUae-L_N.js +0 -1
- package/dist/client/assets/content-BfG98J1k.js +0 -1
- package/dist/client/assets/content-BkVTfkAC.js +0 -1
- package/dist/client/assets/content-BsNMos_d.js +0 -1
- package/dist/client/assets/content-CCn98eSk.js +0 -1
- package/dist/client/assets/content-CYnPp9yo.js +0 -1
- package/dist/client/assets/content-CcrUhm4P.js +0 -1
- package/dist/client/assets/content-CxuVONeQ.js +0 -1
- package/dist/client/assets/content-Dmq9n1_L.js +0 -1
- package/dist/client/assets/content-DskHP2NI.js +0 -1
- package/dist/client/assets/content-DvvzL2HK.js +0 -1
- package/dist/client/assets/content-snCAUbwv.js +0 -1
- package/dist/client/assets/conversation-motion-features-DPiGTO21.js +0 -1
- package/dist/client/assets/embed-entry-XUPb-AzL.js +0 -2
- package/dist/client/assets/index-9as_JTUs.css +0 -1
- package/dist/client/assets/index-DiiEQwdc.js +0 -1
- package/dist/client/assets/left-DrCbY6ja.js +0 -1
- package/dist/client/assets/resolve-panes-D4tlKNCT.js +0 -1
- package/dist/client/assets/resolve-sidebar-context-B27lj3Ci.js +0 -1
- package/dist/client/assets/useContentSecondaryNav-CNlrhvvx.js +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/resolve-panes-C9gF0w4e.js","assets/index-DmFAhGPj.js","assets/index-BBznYVWk.css","assets/content-pPSd2dua.js","assets/ActivityScreen-DkUP7V7M.js","assets/api-h5zurxmi.js","assets/clipboard-e3fSpeo7.js","assets/sse-CxXt4tqI.js","assets/index-BWHgHrtv.js","assets/colors-BtO5_zlx.js","assets/Provider-cJCdHAxu.js","assets/router-Cn_s9IGH.js","assets/synthetic-agent-routing-aduMYO7P.js","assets/terminal-sessions-AmSgHklm.js","assets/surface-activity-B1rgWB1i.js","assets/scoutbot-BTIErYHo.js","assets/ContextMenu-CHIuVKz7.js","assets/DocumentFocusViewer-B9vodVmG.js","assets/createLucideIcon-CFBn0Sdk.js","assets/TextDocumentSurface-BWJCGBZf.js","assets/file-text-DcYSrI4v.js","assets/x-C8ayPBtj.js","assets/document-focus-viewer-BSC_JwVE.css","assets/chevron-right-BYMV1511.js","assets/code-xml-BFc3TMSm.js","assets/arrow-left-B-3GJ7ct.js","assets/scout-voice-CwbOz6EN.js","assets/fx-z37u1o2z.js","assets/keyboard-nav-h1IdakpD.js","assets/MessageComposerSuggestions-FdVHnT_q.js","assets/NewChatComposer-Hd7pI5Ac.js","assets/runtime-picker--IW3cRry.js","assets/voice-levels-Dcr3jglk.js","assets/loader-circle-d6PKL_KD.js","assets/runtime-picker-vhm0gtLs.css","assets/index-CmwGCxUk.js","assets/HarnessMark-BPAphNjx.js","assets/conversation-model-CHwHZNw-.js","assets/time-Dhsh_2EG.js","assets/NewChatOrigin-DmuJ32wa.js","assets/model-Co0zkMIc.js","assets/text-DsBWV_4k.js","assets/chevron-down-B3VVRJcV.js","assets/search-DAyagUtF.js","assets/NewChatComposer-C5LT7MF7.css","assets/chunk-HRAB3GC3-dRd2eQMJ.js","assets/Provider-CCzjtkda.css","assets/mentions-agCGDgyA.js","assets/AgentDetailCard-BTiOmh-a.js","assets/AgentLiveActions-BJ5dIfL3.js","assets/terminal-takeover-BOFPRPjR.js","assets/openContent-C6XO6kr5.js","assets/eye-1J4yOUoG.js","assets/terminal-DJPUp_Qn.js","assets/AgentLiveActions-CGS-Bxb7.css","assets/AgentDetailCard-C4WVeJvJ.css","assets/EmptyState-BRY5jTpz.js","assets/system-surfaces-redesign-B7GQhfpw.css","assets/left-CTYUvXbe.js","assets/AgentAvatar-D8ZtMluU.js","assets/SpriteAvatar-DS6Tmyua.js","assets/agent-identity-BxCsXnDp.js","assets/ctx-panel-B4s49N9e.css","assets/content-BIqX06OQ.js","assets/AgentInfoScreen-DG5dlHb_.js","assets/BackToPicker-D1LV6Cqp.js","assets/BackToPicker-CdgVu-to.css","assets/ObservedTopologyPanel-CaSZZP05.js","assets/ObservedTopologyPanel-BsBsvVPL.css","assets/agents-detail-redesign-h34ROjOW.css","assets/AgentsScreen-BhCjX2lD.js","assets/AgentsSubnav-az_VDkri.js","assets/SecondaryNav-_wyKjwNf.js","assets/secondaryNavConfig-Dw3gS1jR.js","assets/message-square-D1hMsMj_.js","assets/scroll-text-DPPYrqB9.js","assets/secondaryNavConfig-xssF_ubT.css","assets/library-E--gKzEZ.js","assets/AgentSessions-DpY0htZV.js","assets/agents-project-model-UYiamtrU.js","assets/agents-project-COzHxZAF.css","assets/profile-Dxj3VVOM.js","assets/context-budget-DX_fwUs3.js","assets/session-catalog-ClS9xf6i.js","assets/terminal-relay-TffuSPGs.js","assets/ConversationScreen-B3l2m3JI.js","assets/ConversationComposer-Bf7Ga_49.js","assets/message-markup-CyRDLdOn.js","assets/message-visibility-kJM8XcSG.js","assets/sessionRead-CvFz2RHv.js","assets/types-B0PlfpKc.js","assets/ConversationHeader-B_GXrKR0.js","assets/ConversationFeedRows-Cm1Lgo43.js","assets/ConversationPanels-BTBbEvrP.js","assets/use-reduced-motion-CYqhYqHO.js","assets/activity-CC8JzJNH.js","assets/message-circle-CJO-pi7b.js","assets/tail-display-BRcJltQa.js","assets/lane-edit-display-C_Aujldz.js","assets/tail-events-BdvqZHLr.js","assets/ConversationStatus-BqhUHD85.js","assets/ConversationScreen-yIKEsm-8.css","assets/ops-screen-giu3If_N.css","assets/SessionObserve-yYA8Gy5s.js","assets/bash-format-BRV5C6Gv.js","assets/lane-tool-detail-0WhMf4Vj.js","assets/LaneToolHoverCard-B7KdvQvf.js","assets/lane-observe-BA3g9aVd.js","assets/lane-ask-display-B6iCAVcd.js","assets/ObserveTextFlow-CkMrtT8s.js","assets/SessionObserveEvidence-cHdjYOJe.js","assets/wrench-CvRjjByE.js","assets/external-link-B1TI5yIt.js","assets/SessionObserve-CLrHfAKZ.css","assets/AgentDefinitionsWorkspace-CfaDVCVt.js","assets/project-overview-helpers-BQTc_Ous.js","assets/FileViewerPane-9Bveqm9c.js","assets/agent-definitions-CymTYqvo.css","assets/agent-essentials-B3wcxg_v.js","assets/agent-directory-studio-injection-Bc8590z5.css","assets/agents-screen-BMu6PpRY.css","assets/ops-atop-BB4B4JdE.css","assets/right-CreoQzPP.js","assets/openAgent-Dbv5wfuL.js","assets/TmuxPeek-B4QdHbGm.js","assets/refresh-cw-C4x1x6b_.js","assets/ProjectsRail-BDl7U9Jq.js","assets/AddProjectForm-CpyytDf2.js","assets/projects-inbox-Dzt_GQDv.js","assets/model-IGCUEsMy.js","assets/projects-inbox-COZ23dLR.css","assets/ProjectsScreen-Dl2FcGrR.js","assets/ProjectsInbox-B3DpAI5b.js","assets/api-BkjHJfgJ.js","assets/ui-LM8pS8qE.js","assets/SessionRefScreen-OkTY7Szg.js","assets/inbox-thread-redesign-B_1ocqaX.css","assets/cache-Dr0why2k.js","assets/arrow-up-right-G6bJXxhK.js","assets/ProjectAgentProfile-Dv1sVnQl.js","assets/ProjectAgentProfileBar-BLVg5EeA.js","assets/ProjectsThreadAside-BcGC5mHE.js","assets/content-C15Ya-iu.js","assets/BriefingDetailScreen-B7qJ90Np.js","assets/briefings-BwuAFQK6.css","assets/BriefingsScreen-CW6N829d.js","assets/content-CtqLJOVp.js","assets/BrokerScreen-X3z50712.js","assets/status-tone-BM_zuRy1.js","assets/broker-display-pp33bLsu.js","assets/BrokerMetadataPanel-BhjECqOK.js","assets/DispatchAftermath-BDA9CrOd.js","assets/follow-route-BvcGtBIL.js","assets/ShikiPane-dBS9hD-z.js","assets/arrow-down-w1HPzDSE.js","assets/sparkles-DJOBD_8l.js","assets/paperclip-iZmDMOS5.js","assets/plus-gZ0T0eBI.js","assets/send-horizontal-IcG46D2M.js","assets/check-BX8nRgop.js","assets/copy-BFmOcWof.js","assets/radio-RMLfV4EO.js","assets/bot-DzCOGKi6.js","assets/left-CwDRT50z.js","assets/conversation-prefs-DNre-Lcx.js","assets/use-conversation-list-C-dPcjQe.js","assets/use-fleet-active-asks-BHzeBZSW.js","assets/RailRow-CLcVmywd.js","assets/RailRow-Cf9LOiEj.css","assets/content-BKDZ6Fxe.js","assets/MessagesScreen-BMOOfbWX.js","assets/right-Jh_1Q88s.js","assets/CodeScreen-CIKK1LcZ.js","assets/CodeDiffPane-Bx_2VAzv.js","assets/usePierreRuntime-Cm7-qdm0.js","assets/repo-diff-DyYmQMSA.css","assets/CodeProjectPicker-C1yOJKvs.js","assets/code-screen-DrKinCyh.css","assets/content-B8gahuBy.js","assets/FollowScreen-BifwHWOV.js","assets/content-Dvs1KRfo.js","assets/HarnessesScreen-fMnbnrD4.js","assets/useContentSecondaryNav-DjHBrgnS.js","assets/OpsSubnav-Dj3ShAKv.js","assets/harnesses-screen-DBZoTZz8.css","assets/left-B2HEqrTM.js","assets/operator-attention-BwSPeheT.js","assets/left-CAaRBK9S.css","assets/content-CbAGkYQO.js","assets/HomeHero-BgM6S39l.js","assets/HomeHero-DEl-WBsT.css","assets/TailView-B0BSopPs.js","assets/SlidePanel-CH-3-8_2.js","assets/SlidePanel-Bg5dVaIa.css","assets/TailView-Mj3AU2u0.css","assets/observe-BSWVM8YA.js","assets/agent-lanes-model-VYQ5a68i.js","assets/home-moving-signal-Bh2FugbH.js","assets/home-live-action-BkqGLVRY.js","assets/home-moving-signal-CAa0V91u.css","assets/content-Uqt8AG-s.css","assets/right-DUbJ3WVc.js","assets/left-XFXxNd4g.js","assets/mesh-view-store-KJzABIkN.js","assets/mesh-buckets-CfAukILK.js","assets/FleetSearch-Bj9SCl2f.js","assets/FleetSearch-EXOe8ulE.css","assets/left-Bk3XnxPD.css","assets/content-CSAfI-PX.js","assets/MeshScreen-48QkJSDI.js","assets/MeshCanvas-CpKcWxKy.js","assets/chunk-T65CQEWV-kP6nJjkU.js","assets/useAgentHoverCard-C6o0tlat.js","assets/local-agents-B5pq17tZ.js","assets/mesh-screen-BSDUjrnV.css","assets/right-D9xFfy2b.js","assets/left-CxlDLJlw.js","assets/mesh-ops-5pZCYptW.js","assets/mesh-ops-B1kDjizF.css","assets/use-mesh-ops-items-KmaauBr_.js","assets/content-Ji7ATaf7.js","assets/use-scout-dev-flags-BJbw87PK.js","assets/right-DiybhsiK.js","assets/left-p1hkO6P0.js","assets/left-agents-Ck4Xn-R8.js","assets/left-default-BeOyS0bR.js","assets/left-lanes-DZp3jJMo.js","assets/lane-roster-store-71vFgAem.js","assets/left-mission-CuKFQ5xL.js","assets/mission-control-store-Ce6dOvnZ.js","assets/MissionLeftAgentRow-iOZ6ds9L.js","assets/page-status-D2FQLJOX.js","assets/left-mission-DSenPIyb.css","assets/left-plan-3rrFENhp.js","assets/content-iyyQKwvA.js","assets/OpsScreen-DOlmlVkP.js","assets/AgentLanesView-ChNlmY-F.js","assets/AgentFloorView-DjNLILLt.js","assets/agent-floor-CuJr1iK1.css","assets/AgentLanesPreflight-C3uOiOzd.js","assets/AgentLaneChrome-Dlwrbq3g.js","assets/AgentLaneCard-lfRNb7JD.js","assets/AgentLaneSummaryResize-6SOEWUnr.js","assets/agent-lane-card-BkWVDYM8.css","assets/agent-lane-card-model-q4cwzLX4.js","assets/agent-lane-preview-C33Dwpn7.js","assets/AgentLaneDetailSheet-BzYzBfcW.js","assets/agent-lane-detail-BNNm6FNu.js","assets/LaneTraceDetailSheet-H3AnN-vN.js","assets/LaneTraceEventFocus-mkMw2wJU.js","assets/agent-lanes-BDNktFBZ.css","assets/MissionControlView-BpsHKu1F.js","assets/MissionContextRail-Y8QxUZGE.js","assets/mission-wall-CocIM1cF.js","assets/mission-control-model-C0fByIjm.js","assets/MissionFocusOverlay-BPnAEA3F.js","assets/MissionLogPane-B0csI89E.js","assets/mission-control-m3BTDQ9l.css","assets/OpsAgentsView-CnqrwbC2.js","assets/DataTable-CJbbgBdA.js","assets/resizable-columns-C7ygvLt8.css","assets/sliders-horizontal-R5pWUUcH.js","assets/ops-agents-BOYxzPTm.css","assets/PlanView-BLGdWDx6.js","assets/plan-view-D56fneVF.css","assets/AtopView-BjjPM8OX.js","assets/page-status-bar-ByUD7VPM.css","assets/content-DyJdVZjI.js","assets/RepoDiffPageScreen-m62FiWXC.js","assets/RepoDiffViewerLazy-CWE5GxMP.js","assets/ReposScreen-Cksv1cAD.js","assets/selection-bridge-BXw09aRF.js","assets/console-B1IBqLI_.css","assets/right-D-k9Z1Fe.js","assets/content-pDE7Fpb9.js","assets/KnowledgeSearchScreen-Ch_WENUC.js","assets/clock-B9ukVaVn.js","assets/knowledge-search-D_bLoYtC.css","assets/KnowledgeSearchInspector-B4ZY24xE.js","assets/content-CTF9D60D.js","assets/SessionsScreen-B-GFjxIA.js","assets/RawSessionsTable-DBto4Ts-.js","assets/FlightObserveScreen-BVMdsiCC.js","assets/flight-observe-GFg9L8ft.css","assets/right-DI7zHADe.js","assets/content-eqZXKWcP.js","assets/SettingsScreen-Cn09nq5_.js","assets/StatusPill-C8m9ZymF.js","assets/AgentConfigurationScreen-BlGI6fuM.js","assets/server-BySujhDV.js","assets/SettingsDrawer-Co11RFX0.js","assets/VoicePermissionsPanel-Dd4ITJy_.js","assets/VoicePermissionsPanel-RijAZ1gP.css","assets/SettingsDrawer-UX7pFJU_.css","assets/left-8NITBvFX.js","assets/chunk-YOZR3KYS-C13bZPVd.js","assets/session-table-BdpHs1GN.js","assets/left-CCoobxPS.css","assets/Terminal-U8gjIdm3.js","assets/HerdrSession-BujfGzrP.js","assets/chunk-JTPDIGGW-BjX67kHU.js","assets/terminal-screen-BqVnCwl0.css","assets/right-udr1qTJG.js","assets/content-CDE9tJDF.js","assets/WorkDetailScreen-mJs0mb99.js","assets/WorkFilesViewer-ODzLXKxj.js","assets/right-5L7Tn0zG.js","assets/RealtimeVoiceScreen-DXEU5v3g.js","assets/ScoutbotRealtimeVoiceCall-1ixiEn1L.js","assets/collapsed-strip-Dz-of2SM.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as a,j as r,_ as E,h,M as S}from"./index-DmFAhGPj.js";import{I as j,J as w,L as x,M as y,N as _,O as g}from"./router-Cn_s9IGH.js";import{u as C,j as P}from"./Provider-cJCdHAxu.js";import{f as R}from"./scoutbot-BTIErYHo.js";import{r as N}from"./types-B0PlfpKc.js";import{r as O}from"./discover-DKf0aTr_.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-AmSgHklm.js";import"./api-h5zurxmi.js";import"./sse-CxXt4tqI.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./colors-BtO5_zlx.js";import"./ContextMenu-CHIuVKz7.js";import"./DocumentFocusViewer-B9vodVmG.js";import"./createLucideIcon-CFBn0Sdk.js";import"./TextDocumentSurface-BWJCGBZf.js";/* empty css */import"./file-text-DcYSrI4v.js";import"./x-C8ayPBtj.js";import"./chevron-right-BYMV1511.js";import"./code-xml-BFc3TMSm.js";import"./arrow-left-B-3GJ7ct.js";import"./scout-voice-CwbOz6EN.js";import"./fx-z37u1o2z.js";import"./keyboard-nav-h1IdakpD.js";import"./MessageComposerSuggestions-FdVHnT_q.js";import"./NewChatComposer-Hd7pI5Ac.js";import"./runtime-picker--IW3cRry.js";import"./voice-levels-Dcr3jglk.js";import"./loader-circle-d6PKL_KD.js";import"./index-CmwGCxUk.js";import"./HarnessMark-BPAphNjx.js";import"./conversation-model-CHwHZNw-.js";import"./time-Dhsh_2EG.js";import"./NewChatOrigin-DmuJ32wa.js";import"./model-Co0zkMIc.js";import"./text-DsBWV_4k.js";import"./chevron-down-B3VVRJcV.js";import"./search-DAyagUtF.js";import"./chunk-HRAB3GC3-dRd2eQMJ.js";function F(e,o,t=R,i=()=>!1){!i(e)&&t({type:"navigate",route:e})||o(e)}const I=a.lazy(async()=>{const{resolveContentPane:e}=await E(async()=>{const{resolveContentPane:o}=await import("./resolve-panes-C9gF0w4e.js");return{resolveContentPane:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309]));return{default:({route:o,navigate:t,agents:i})=>e(o,t,i)}});function l(e,o){if(!e||typeof e!="object"||!o||typeof o!="object")return!1;const t=e;return Object.entries(o).every(([i,n])=>t[i]===n)}function U({surface:e}){const{route:o,navigate:t,agents:i}=C(),n=e.Screen,s=e.embed,c=!!e.embed?.ownsInternalRoutes,d=a.useCallback(m=>c&&l(m,e.route),[c,e.route]),p=a.useCallback(m=>F(m,t,void 0,d),[d,t]),u=typeof window>"u"||e.embedPaths.includes(window.location.pathname)||l(o,e.route),b=a.useMemo(()=>s.resolveEmbedProps?s.resolveEmbedProps(new URLSearchParams(window.location.search)):{},[s]),v=N(s),f=[s.rootClassName,"s-discovered-embed",v.showSecondaryNav?"":"s-discovered-embed--lean"].filter(Boolean).join(" ");return r.jsx("div",{className:f,"data-scout-theme":!0,"data-scout-surface":e.id,children:u?r.jsx(n,{navigate:p,embedded:!0,...b}):r.jsx(a.Suspense,{fallback:null,children:r.jsx(I,{route:o,navigate:p,agents:i})})})}async function we(e,o){const t=await O(window.location.pathname);return t?(h.createRoot(e).render(r.jsx(a.StrictMode,{children:r.jsx(S,{children:r.jsx(j,{registry:_,audience:y,audienceOrder:x,storageKey:w,initialLayers:g(),children:r.jsx(P,{initialTheme:o,children:r.jsx(U,{surface:t})})})})})),!0):!1}export{we as mountDiscoveredEmbed};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a}from"./createLucideIcon-
|
|
1
|
+
import{c as a}from"./createLucideIcon-CFBn0Sdk.js";const e=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],n=a("external-link",e);export{n as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c}from"./createLucideIcon-
|
|
1
|
+
import{c}from"./createLucideIcon-CFBn0Sdk.js";const e=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],r=c("eye",e);export{r as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e}from"./createLucideIcon-
|
|
1
|
+
import{c as e}from"./createLucideIcon-CFBn0Sdk.js";const a=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],o=e("file-text",a);export{o as F};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as jt}from"./index-BZovGpDk.js";import{n as se,i as Wt,a as et,b as X,r as tt,h as nt,c as Ut,d as xe,e as Pe,f as st,g as de,j as ke,t as L,k as qt,l as H,o as B,p as W,q as zt,s as R,v as Xt,M as U,W as it,w as Ae,N as Yt,x as $t,y as Zt,z as Jt,A as Qt,K as rt,B as en,C as we,D as tn,E as nn,F as sn,G as rn,H as ot,I as on,J as an,O as cn,P as Ie,Q as Oe,R as $,S as Ee,V as ln,T as un,U as fn,X as dn,Y as hn,Z as pn,_ as at,$ as mn,a0 as gn,a1 as yn,a2 as vn,a3 as Tn,a4 as ct,a5 as lt,a6 as ut,a7 as ft,a8 as bn}from"./use-reduced-motion-C8cWvIZ3.js";const xn=e=>typeof e=="object"&&e!==null,ie=(...e)=>e.reduce((t,n)=>s=>n(t(s))),dt=(e,t,n)=>{const s=t-e;return s?(n-e)/s:1},ht=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,An=1e-7,wn=12;function Vn(e,t,n,s,i){let r,o,a=0;do o=t+(n-t)/2,r=ht(o,s,i)-e,r>0?n=o:t=o;while(Math.abs(r)>An&&++a<wn);return o}function Y(e,t,n,s){if(e===t&&n===s)return se;const i=r=>Vn(r,0,1,e,n);return r=>r===0||r===1?r:ht(i(r),t,s)}const pt=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,mt=e=>t=>1-e(1-t),gt=Y(.33,1.53,.69,.99),Ve=mt(gt),yt=pt(Ve),vt=e=>e>=1?1:(e*=2)<1?.5*Ve(e):.5*(2-Math.pow(2,-10*(e-1))),Se=e=>1-Math.sin(Math.acos(e)),Sn=mt(Se),Tt=pt(Se),Cn=Y(.42,0,1,1),Mn=Y(0,0,.58,1),bt=Y(.42,0,.58,1),Dn=e=>Array.isArray(e)&&typeof e[0]!="number",Pn={linear:se,easeIn:Cn,easeInOut:bt,easeOut:Mn,circIn:Se,circInOut:Tt,circOut:Sn,backIn:Ve,backInOut:yt,backOut:gt,anticipate:vt},kn=e=>typeof e=="string",Fe=e=>{if(Wt(e)){et(e.length===4);const[t,n,s,i]=e;return Y(t,n,s,i)}else if(kn(e))return Pn[e];return e};function re(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function In({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let i=0,r=0,o=0;if(!t)i=r=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,u=2*n-a;i=re(u,a,e+1/3),r=re(u,a,e),o=re(u,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function J(e,t){return n=>n>0?t:e}const oe=(e,t,n)=>{const s=e*e,i=n*(t*t-s)+s;return i<0?0:Math.sqrt(i)},On=[Ut,tt,nt],En=e=>On.find(t=>t.test(e));function Re(e){const t=En(e);if(!t)return!1;let n=t.parse(e);return t===nt&&(n=In(n)),n}const Le=(e,t)=>{const n=Re(e),s=Re(t);if(!n||!s)return J(e,t);const i={...n};return r=>(i.red=oe(n.red,s.red,r),i.green=oe(n.green,s.green,r),i.blue=oe(n.blue,s.blue,r),i.alpha=X(n.alpha,s.alpha,r),tt.transform(i))},he=new Set(["none","hidden"]);function Fn(e,t){return he.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Rn(e,t){return n=>X(e,t,n)}function Ce(e){return typeof e=="number"?Rn:typeof e=="string"?xe(e)?J:Pe.test(e)?Le:Kn:Array.isArray(e)?xt:typeof e=="object"?Pe.test(e)?Le:Ln:J}function xt(e,t){const n=[...e],s=n.length,i=e.map((r,o)=>Ce(r)(r,t[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function Ln(e,t){const n={...e,...t},s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=Ce(e[i])(e[i],t[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Bn(e,t){const n=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const r=t.types[i],o=e.indexes[r][s[r]],a=e.values[o]??0;n[i]=a,s[r]++}return n}const Kn=(e,t)=>{const n=st.createTransformer(t),s=de(e),i=de(t);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?he.has(e)&&!i.values.length||he.has(t)&&!s.values.length?Fn(e,t):ie(xt(Bn(s,i),i.values),n):J(e,t)};function At(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?X(e,t,n):Ce(e)(e,t)}const Gn=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>H.update(t,n),stop:()=>qt(t),now:()=>ke.isProcessing?ke.timestamp:L.now()}},Q=2e4;function Me(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<Q;)t+=n,s=e.next(t);return t>=Q?1/0:t}function Nn(e,t=100,n){const s=n({...e,keyframes:[0,t]}),i=Math.min(Me(s),Q);return{type:"keyframes",ease:r=>s.next(i*r).value/t,duration:B(i)}}const V={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function pe(e,t){return e*Math.sqrt(1-t*t)}const Hn=12;function _n(e,t,n){let s=n;for(let i=1;i<Hn;i++)s=s-e(s)/t(s);return s}const ae=.001;function jn({duration:e=V.duration,bounce:t=V.bounce,velocity:n=V.velocity,mass:s=V.mass}){let i,r,o=1-t;o=W(V.minDamping,V.maxDamping,o),e=W(V.minDuration,V.maxDuration,B(e)),o<1?(i=l=>{const c=l*o,f=c*e,d=c-n,v=pe(l,o),m=Math.exp(-f);return ae-d/v*m},r=l=>{const f=l*o*e,d=f*n+n,v=Math.pow(o,2)*Math.pow(l,2)*e,m=Math.exp(-f),g=pe(Math.pow(l,2),o);return(-i(l)+ae>0?-1:1)*((d-v)*m)/g}):(i=l=>{const c=Math.exp(-l*e),f=(l-n)*e+1;return-ae+c*f},r=l=>{const c=Math.exp(-l*e),f=(n-l)*(e*e);return c*f});const a=5/e,u=_n(i,r,a);if(e=R(e),isNaN(u))return{stiffness:V.stiffness,damping:V.damping,duration:e};{const l=Math.pow(u,2)*s;return{stiffness:l,damping:o*2*Math.sqrt(s*l),duration:e}}}const Wn=["duration","bounce"],Un=["stiffness","damping","mass"];function Be(e,t){return t.some(n=>e[n]!==void 0)}function qn(e){let t={velocity:V.velocity,stiffness:V.stiffness,damping:V.damping,mass:V.mass,isResolvedFromDuration:!1,...e};if(!Be(e,Un)&&Be(e,Wn))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*W(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:V.mass,stiffness:i,damping:r}}else{const n=jn({...e,velocity:0});t={...t,...n,mass:V.mass},t.isResolvedFromDuration=!0}return t}function ee(e=V.visualDuration,t=V.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:u,damping:l,mass:c,duration:f,velocity:d,isResolvedFromDuration:v}=qn({...n,velocity:-B(n.velocity||0)}),m=d||0,g=l/(2*Math.sqrt(u*c)),h=o-r,p=B(Math.sqrt(u/c)),b=Math.abs(h)<5;s||(s=b?V.restSpeed.granular:V.restSpeed.default),i||(i=b?V.restDelta.granular:V.restDelta.default);let A,w,x,S,M,T;if(g<1)x=pe(p,g),S=(m+g*p*h)/x,A=y=>{const C=Math.exp(-g*p*y);return o-C*(S*Math.sin(x*y)+h*Math.cos(x*y))},M=g*p*S+h*x,T=g*p*h-S*x,w=y=>Math.exp(-g*p*y)*(M*Math.sin(x*y)+T*Math.cos(x*y));else if(g===1){A=C=>o-Math.exp(-p*C)*(h+(m+p*h)*C);const y=m+p*h;w=C=>Math.exp(-p*C)*(p*y*C-m)}else{const y=p*Math.sqrt(g*g-1);A=O=>{const F=Math.exp(-g*p*O),E=Math.min(y*O,300);return o-F*((m+g*p*h)*Math.sinh(E)+y*h*Math.cosh(E))/y};const C=(m+g*p*h)/y,k=g*p*C-h*y,K=g*p*h-C*y;w=O=>{const F=Math.exp(-g*p*O),E=Math.min(y*O,300);return F*(k*Math.sinh(E)+K*Math.cosh(E))}}const D={calculatedDuration:v&&f||null,velocity:y=>R(w(y)),next:y=>{if(!v&&g<1){const k=Math.exp(-g*p*y),K=Math.sin(x*y),O=Math.cos(x*y),F=o-k*(S*K+h*O),E=R(k*(M*K+T*O));return a.done=Math.abs(E)<=s&&Math.abs(o-F)<=i,a.value=a.done?o:F,a}const C=A(y);if(v)a.done=y>=f;else{const k=R(w(y));a.done=Math.abs(k)<=s&&Math.abs(o-C)<=i}return a.value=a.done?o:C,a},toString:()=>{const y=Math.min(Me(D),Q),C=zt(k=>D.next(y*k).value,y,30);return y+"ms "+C},toTransition:()=>{}};return D}ee.applyToOptions=e=>{const t=Nn(e,100,ee);return e.ease=t.ease,e.duration=R(t.duration),e.type="keyframes",e};const zn=5;function wt(e,t,n){const s=Math.max(t-zn,0);return Xt(n-e(s),t-s)}function me({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:u,restDelta:l=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},v=T=>a!==void 0&&T<a||u!==void 0&&T>u,m=T=>a===void 0?u:u===void 0||Math.abs(a-T)<Math.abs(u-T)?a:u;let g=n*t;const h=f+g,p=o===void 0?h:o(h);p!==h&&(g=p-f);const b=T=>-g*Math.exp(-T/s),A=T=>p+b(T),w=T=>{const D=b(T),y=A(T);d.done=Math.abs(D)<=l,d.value=d.done?p:y};let x,S;const M=T=>{v(d.value)&&(x=T,S=ee({keyframes:[d.value,m(d.value)],velocity:wt(A,T,d.value),damping:i,stiffness:r,restDelta:l,restSpeed:c}))};return M(0),{calculatedDuration:null,next:T=>{let D=!1;return!S&&x===void 0&&(D=!0,w(T),M(T)),x!==void 0&&T>=x?S.next(T-x):(!D&&w(T),d)}}}function Xn(e,t,n){const s=[],i=n||U.mix||At,r=e.length-1;for(let o=0;o<r;o++){let a=i(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||se:t;a=ie(u,a)}s.push(a)}return s}function Yn(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const r=e.length;if(et(r===t.length),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Xn(t,s,i),u=a.length,l=c=>{if(o&&c<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const d=dt(e[f],e[f+1],c);return a[f](d)};return n?c=>l(W(e[0],e[r-1],c)):l}function $n(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const i=dt(0,t,s);e.push(X(n,1,i))}}function Zn(e){const t=[0];return $n(t,e.length-1),t}function Jn(e,t){return e.map(n=>n*t)}function Qn(e,t){return e.map(()=>t||bt).splice(0,e.length-1)}function z({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const i=Dn(s)?s.map(Fe):Fe(s),r={done:!1,value:t[0]},o=Jn(n&&n.length===t.length?n:Zn(t),e),a=Yn(o,t,{ease:Array.isArray(i)?i:Qn(t,i)});return{calculatedDuration:e,next:u=>(r.value=a(u),r.done=u>=e,r)}}const es={decay:me,inertia:me,tween:z,keyframes:z,spring:ee};function Vt(e){typeof e.type=="string"&&(e.type=es[e.type])}const ts=e=>e/100;class te extends it{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==L.now()&&this.tick(L.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Vt(t);const{type:n=z,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=t;let{keyframes:a}=t;const u=n||z;u!==z&&typeof a[0]!="number"&&(this.mixKeyframes=ie(ts,At(a[0],a[1])),a=[0,100]);const l=u({...t,keyframes:a});r==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...a].reverse(),velocity:-o})),l.calculatedDuration===null&&(l.calculatedDuration=Me(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return s.next(0);const{delay:l=0,keyframes:c,repeat:f,repeatType:d,repeatDelay:v,type:m,onUpdate:g,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const p=this.currentTime-l*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?p<0:p>i;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let A=this.currentTime,w=s;if(f){const T=Math.min(this.currentTime,i)/a;let D=Math.floor(T),y=T%1;!y&&T>=1&&(y=1),y===1&&D--,D=Math.min(D,f+1),D%2&&(d==="reverse"?(y=1-y,v&&(y-=v/a)):d==="mirror"&&(w=o)),A=W(0,1,y)*a}let x;b?(this.delayState.value=c[0],x=this.delayState):x=w.next(A),r&&!b&&(x.value=r(x.value));let{done:S}=x;!b&&u!==null&&(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return M&&m!==me&&(x.value=Ae(c,this.options,h,this.speed)),g&&g(x.value),M&&this.finish(),x}then(t,n){return this.finished.then(t,n)}get duration(){return B(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+B(t)}get time(){return B(this.currentTime)}set time(t){t=R(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return wt(s=>this.generator.next(s).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(L.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=B(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Gn,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(L.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}const St={anticipate:vt,backInOut:yt,circInOut:Tt};function ns(e){return e in St}function ss(e){typeof e.ease=="string"&&ns(e.ease)&&(e.ease=St[e.ease])}const ce=10;class is extends Yt{constructor(t){ss(t),Vt(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new te({...o,autoplay:!1}),u=Math.max(ce,L.now()-this.startTime),l=W(0,ce,u-ce),c=a.sample(u).value,{name:f}=this.options;r&&f&&$t(r,f,c),n.setWithVelocity(a.sample(Math.max(0,u-l)).value,c,l),a.stop()}}const Ke=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(st.test(e)||e==="0")&&!e.startsWith("url("));function rs(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function os(e,t,n,s){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const r=e[e.length-1],o=Ke(i,t),a=Ke(r,t);return!o||!a?!1:rs(e)||(n==="spring"||Zt(n))&&s}function ge(e){e.duration=0,e.type="keyframes"}const as=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function cs(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&as.test(e[t]))return!0;return!1}const ls=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),us=Qt(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function fs(e){const{motionValue:t,name:n,repeatDelay:s,repeatType:i,damping:r,type:o,keyframes:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return us()&&n&&(Jt.has(n)||ls.has(n)&&cs(a))&&(n!=="transform"||!c)&&!l&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const ds=40;class hs extends it{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:u,motionValue:l,element:c,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=L.now();const d={autoplay:t,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:u,motionValue:l,element:c,...f},v=c?.KeyframeResolver||rt;this.keyframeResolver=new v(a,(m,g,h)=>this.onKeyframesResolved(m,g,d,!h),u,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:u,isHandoff:l,onUpdate:c}=s;this.resolvedAt=L.now();let f=!0;os(t,r,o,a)||(f=!1,(U.instantAnimations||!u)&&c?.(Ae(t,s,n)),t[0]=t[t.length-1],ge(s),s.repeat=0);const v={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>ds?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},m=f&&!l&&fs(v),g=v.motionValue?.owner?.current;let h;if(m)try{h=new is({...v,element:g})}catch{h=new te(v)}else h=new te(v);h.finished.then(()=>{this.notifyFinished()}).catch(se),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),en()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Ct(e,t,n,s=0,i=1){const r=Array.from(e).sort((l,c)=>l.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}function Mt(e,t){if(e?.inherit&&t){const{inherit:n,...s}=e;return{...t,...s}}return e}function Dt(e,t){const n=e?.[t]??e?.default??e;return n!==e?Mt(n,e):n}const ps={type:"spring",stiffness:500,damping:25,restSpeed:10},ms=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),gs={type:"keyframes",duration:.8},ys={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},vs=(e,{keyframes:t})=>t.length>2?gs:we.has(e)?e.startsWith("scale")?ms(t[1]):ps:ys,Ts=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function bs(e){for(const t in e)if(!Ts.has(t))return!0;return!1}const xs=(e,t,n,s={},i,r)=>o=>{const a=Dt(s,e)||{},u=a.delay||s.delay||0;let{elapsed:l=0}=s;l=l-R(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:r?void 0:i};bs(a)||Object.assign(c,vs(e,c)),c.duration&&(c.duration=R(c.duration)),c.repeatDelay&&(c.repeatDelay=R(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(ge(c),c.delay===0&&(f=!0)),(U.instantAnimations||U.skipAnimations||i?.shouldSkipAnimations||a.skipAnimations)&&(f=!0,ge(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!r&&t.get()!==void 0){const d=Ae(c.keyframes,a);if(d!==void 0){H.update(()=>{c.onUpdate(d),c.onComplete()});return}}return a.isSync?new te(c):new hs(c)},As=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ws(e){const t=As.exec(e);if(!t)return[,];const[,n,s,i]=t;return[`--${n??s}`,i]}function Pt(e,t,n=1){const[s,i]=ws(e);if(!s)return;const r=window.getComputedStyle(t).getPropertyValue(s);if(r){const o=r.trim();return tn(o)?parseFloat(o):o}return xe(i)?Pt(i,t,n+1):i}function _(e,t,n){const s=e.getProps();return nn(s,t,n!==void 0?n:s.custom,e)}const kt=new Set(["width","height","top","left","right","bottom",...sn]),ye=e=>Array.isArray(e);function Vs(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,rn(n))}function Ss(e){return ye(e)?e[e.length-1]||0:e}function Cs(e,t){const n=_(e,t);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Ss(r[o]);Vs(e,o,a)}}function Ms(e){return!!(ot(e)&&e.add)}function Ds(e,t){const n=e.getValue("willChange");if(Ms(n))return n.add(t);if(!n&&U.WillChange){const s=new U.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function Ps(e){return e.props[on]}function ks({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function It(e,t,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=t;const u=e.getDefaultTransition();r=r?Mt(r,u):u;const l=r?.reduceMotion,c=r?.skipAnimations;s&&(r=s);const f=[],d=i&&e.animationState&&e.animationState.getState()[i],v=r?.path;v&&v.animateVisualElement(e,a,r,n,f);for(const m in a){const g=e.getValue(m,e.latestValues[m]??null),h=a[m];if(h===void 0||d&&ks(d,m))continue;const p={delay:n,...Dt(r||{},m)};c&&(p.skipAnimations=!0);const b=g.get();if(b!==void 0&&!g.isAnimating()&&!Array.isArray(h)&&h===b&&!p.velocity){H.update(()=>g.set(h));continue}let A=!1;if(window.MotionHandoffAnimation){const S=Ps(e);if(S){const M=window.MotionHandoffAnimation(S,m,H);M!==null&&(p.startTime=M,A=!0)}}Ds(e,m);const w=l??e.shouldReduceMotion;g.start(xs(m,g,h,w&&kt.has(m)?{type:!1}:p,e,A));const x=g.animation;x&&f.push(x)}if(o){const m=()=>H.update(()=>{o&&Cs(e,o)});f.length?Promise.all(f).then(m):m()}return f}function ve(e,t,n={}){const s=_(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(It(e,s,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:f}=i;return Is(e,t,u,l,c,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,l]=a==="beforeChildren"?[r,o]:[o,r];return u().then(()=>l())}else return Promise.all([r(),o(n.delay)])}function Is(e,t,n=0,s=0,i=0,r=1,o){const a=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),a.push(ve(u,t,{...o,delay:n+(typeof s=="function"?0:s)+Ct(e.variantChildren,u,s,i,r)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(a)}function Os(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const i=t.map(r=>ve(e,r,n));s=Promise.all(i)}else if(typeof t=="string")s=ve(e,t,n);else{const i=typeof t=="function"?_(e,t,n.custom):t;s=Promise.all(It(e,i,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}function Es(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||an(e):!0}const Fs=new Set(["auto","none","0"]);function Rs(e,t,n){let s=0,i;for(;s<e.length&&!i;){const r=e[s];typeof r=="string"&&!Fs.has(r)&&de(r).values.length&&(i=e[s]),s++}if(i&&n)for(const r of t)e[r]=cn(n,i)}class Ls extends rt{constructor(t,n,s,i,r){super(t,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let f=t[c];if(typeof f=="string"&&(f=f.trim(),xe(f))){const d=Pt(f,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!kt.has(s)||t.length!==2)return;const[i,r]=t,o=Ie(i),a=Ie(r),u=Oe(i),l=Oe(r);if(u!==l&&$[s]){this.needsMeasurement=!0;return}if(o!==a)if(Ee(o)&&Ee(a))for(let c=0;c<t.length;c++){const f=t[c];typeof f=="string"&&(t[c]=parseFloat(f))}else $[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let i=0;i<t.length;i++)(t[i]===null||Es(t[i]))&&s.push(i);s.length&&Rs(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=$[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(s,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=$[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,u])=>{t.getValue(a).set(u)}),this.resolveNoneKeyframes()}}function Bs(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const i=n?.[e]??s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(s=>s!=null)}function Ks(e){return xn(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const Ge={x:!1,y:!1};function Ot(){return Ge.x||Ge.y}function Et(e,t){const n=Bs(e),s=new AbortController,i={passive:!0,...t,signal:s.signal};return[n,i,()=>s.abort()]}function Gs(e){return!(e.pointerType==="touch"||Ot())}function Ns(e,t,n={}){const[s,i,r]=Et(e,n);return s.forEach(o=>{let a=!1,u=!1,l;const c=()=>{o.removeEventListener("pointerleave",m)},f=h=>{l&&(l(h),l=void 0),c()},d=h=>{a=!1,window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",d),u&&(u=!1,f(h))},v=()=>{a=!0,window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",d,i)},m=h=>{if(h.pointerType!=="touch"){if(a){u=!0;return}f(h)}},g=h=>{if(!Gs(h))return;u=!1;const p=t(o,h);typeof p=="function"&&(l=p,o.addEventListener("pointerleave",m,i))};o.addEventListener("pointerenter",g,i),o.addEventListener("pointerdown",v,i)}),r}const Ft=(e,t)=>t?e===t?!0:Ft(e,t.parentElement):!1,Rt=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Hs=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function _s(e){return Hs.has(e.tagName)||e.isContentEditable===!0}const js=new Set(["INPUT","SELECT","TEXTAREA"]);function Si(e){return js.has(e.tagName)||e.isContentEditable===!0}const Z=new WeakSet;function Ne(e){return t=>{t.key==="Enter"&&e(t)}}function le(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Ws=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=Ne(()=>{if(Z.has(n))return;le(n,"down");const i=Ne(()=>{le(n,"up")}),r=()=>le(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",r,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function He(e){return Rt(e)&&!Ot()}const _e=new WeakSet;function Us(e,t,n={}){const[s,i,r]=Et(e,n),o=a=>{const u=a.currentTarget;if(!He(a)||_e.has(a))return;Z.add(u),n.stopPropagation&&_e.add(a);const l=t(u,a),c=(v,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),Z.has(u)&&Z.delete(u),He(v)&&typeof l=="function"&&l(v,{success:m})},f=v=>{c(v,u===window||u===document||n.useGlobalTarget||Ft(u,v.target))},d=v=>{c(v,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Ks(a)&&(a.addEventListener("focus",l=>Ws(l,i)),!_s(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}class Lt extends ln{constructor(){super(...arguments),this.KeyframeResolver=Ls}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const s=t.style;return s?s[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ot(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class q{constructor(t){this.isMounted=!1,this.node=t}update(){}}function qs({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function Ci({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function zs(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ue(e){return e===void 0||e===1}function Xs({scale:e,scaleX:t,scaleY:n}){return!ue(e)||!ue(t)||!ue(n)}function Ys(e){return Xs(e)||$s(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function $s(e){return je(e.x)||je(e.y)}function je(e){return e&&e!=="0%"}function We(e,t,n){const s=e-n,i=t*s;return n+i}function Ue(e,t,n,s,i){return i!==void 0&&(e=We(e,i,s)),We(e,n,s)+t}function Te(e,t=0,n=1,s,i){e.min=Ue(e.min,t,n,s,i),e.max=Ue(e.max,t,n,s,i)}function Zs(e,{x:t,y:n}){Te(e.x,t.translate,t.scale,t.originPoint),Te(e.y,n.translate,n.scale,n.originPoint)}const qe=.999999999999,ze=1.0000000000001;function Mi(e,t,n,s=!1){const i=n.length;if(!i)return;t.x=t.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:u}=r.options;u&&u.props.style&&u.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(ne(e.x,-r.scroll.offset.x),ne(e.y,-r.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Zs(e,o)),s&&Ys(r.latestValues)&&Js(e,r.latestValues,r.layout?.layoutBox))}t.x<ze&&t.x>qe&&(t.x=1),t.y<ze&&t.y>qe&&(t.y=1)}function ne(e,t){e.min+=t,e.max+=t}function Xe(e,t,n,s,i=.5){const r=X(e.min,e.max,i);Te(e,t,n,r,s)}function Ye(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Js(e,t,n){const s=n??e;Xe(e.x,Ye(t.x,s.x),t.scaleX,t.scale,t.originX),Xe(e.y,Ye(t.y,s.y),t.scaleY,t.scale,t.originY)}function Bt(e,t){return qs(zs(e.getBoundingClientRect(),t))}function Di(e,t,n){const s=Bt(e,n),{scroll:i}=t;return i&&(ne(s.x,i.offset.x),ne(s.y,i.offset.y)),s}function Kt(e,{style:t,vars:n},s,i){const r=e.style;let o;for(o in t)r[o]=t[o];i?.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function Qs(e){return window.getComputedStyle(e)}class ei extends Lt{constructor(){super(...arguments),this.type="html",this.renderInstance=Kt}readValueFromInstance(t,n){if(we.has(n))return this.projection?.isProjecting?un(n):fn(t,n);{const s=Qs(t),i=(dn(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Bt(t,n)}build(t,n,s){hn(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return pn(t,n,s)}}const Gt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ti(e,t,n,s){Kt(e,t,void 0,s);for(const i in t.attrs)e.setAttribute(Gt.has(i)?i:at(i),t.attrs[i])}class ni extends Lt{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=mn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(we.has(n)){const s=Tn(n);return s&&s.default||0}return n=Gt.has(n)?n:at(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return gn(t,n,s)}build(t,n,s){yn(t,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,n,s,i){ti(t,n,s,i)}mount(t){this.isSVGTag=vn(t.tagName),super.mount(t)}}const si=lt.length;function Nt(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Nt(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<si;n++){const s=lt[n],i=e.props[s];(ct(i)||i===!1)&&(t[s]=i)}return t}function Ht(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}const ii=[...ft].reverse(),ri=ft.length;function oi(e){return t=>Promise.all(t.map(({animation:n,options:s})=>Os(e,n,s)))}function ai(e){let t=oi(e),n=$e(),s=!0,i=!1;const r=l=>(c,f)=>{const d=_(e,f,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:v,transitionEnd:m,...g}=d;c={...c,...g,...m}}return c};function o(l){t=l(e)}function a(l){const{props:c}=e,f=Nt(e.parent)||{},d=[],v=new Set;let m={},g=1/0;for(let p=0;p<ri;p++){const b=ii[p],A=n[b],w=c[b]!==void 0?c[b]:f[b],x=ct(w),S=b===l?A.isActive:null;S===!1&&(g=p);let M=w===f[b]&&w!==c[b]&&x;if(M&&(s||i)&&e.manuallyAnimateOnMount&&(M=!1),A.protectedKeys={...m},!A.isActive&&S===null||!w&&!A.prevProp||ut(w)||typeof w=="boolean")continue;if(b==="exit"&&A.isActive&&S!==!0){A.prevResolvedValues&&(m={...m,...A.prevResolvedValues});continue}const T=ci(A.prevProp,w);let D=T||b===l&&A.isActive&&!M&&x||p>g&&x,y=!1;const C=Array.isArray(w)?w:[w];let k=C.reduce(r(b),{});S===!1&&(k={});const{prevResolvedValues:K={}}=A,O={...K,...k},F=P=>{D=!0,v.has(P)&&(y=!0,v.delete(P)),A.needsAnimating[P]=!0;const I=e.getValue(P);I&&(I.liveStyle=!1)};for(const P in O){const I=k[P],G=K[P];if(m.hasOwnProperty(P))continue;let j=!1;ye(I)&&ye(G)?j=!Ht(I,G)||T:j=I!==G,j?I!=null?F(P):v.add(P):I!==void 0&&v.has(P)?F(P):A.protectedKeys[P]=!0}A.prevProp=w,A.prevResolvedValues=k,A.isActive&&(m={...m,...k}),(s||i)&&e.blockInitialAnimation&&(D=!1);const E=M&&T;D&&(!E||y)&&d.push(...C.map(P=>{const I={type:b};if(typeof P=="string"&&(s||i)&&!E&&e.manuallyAnimateOnMount&&e.parent){const{parent:G}=e,j=_(G,P);if(G.enteringChildren&&j){const{delayChildren:_t}=j.transition||{};I.delay=Ct(G.enteringChildren,e,_t)}}return{animation:P,options:I}}))}if(v.size){const p={};if(typeof c.initial!="boolean"){const b=_(e,Array.isArray(c.initial)?c.initial[0]:c.initial);b&&b.transition&&(p.transition=b.transition)}v.forEach(b=>{const A=e.getBaseTarget(b),w=e.getValue(b);w&&(w.liveStyle=!0),p[b]=A??null}),d.push({animation:p})}let h=!!d.length;return s&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(h=!1),s=!1,i=!1,h?t(d):Promise.resolve()}function u(l,c){if(n[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,c)),n[l].isActive=c;const f=a(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=$e(),i=!0}}}function ci(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ht(t,e):!1}function N(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $e(){return{animate:N(!0),whileInView:N(),whileHover:N(),whileTap:N(),whileDrag:N(),whileFocus:N(),exit:N()}}function Ze(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}const Pi=(e,t)=>t.isSVG??bn(e)?new ni(t):new ei(t,{allowProjection:e!==jt.Fragment});class li extends q{constructor(t){super(t),t.animationState||(t.animationState=ai(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ut(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let ui=0;class fi extends q{constructor(){super(...arguments),this.id=ui++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;if(t&&s===!1){if(this.isExitComplete){const{initial:r,custom:o}=this.node.getProps();if(typeof r=="string"||typeof r=="object"&&r!==null&&!Array.isArray(r)){const a=_(this.node,r,o);if(a){const{transition:u,transitionEnd:l,...c}=a;for(const f in c)this.node.getValue(f)?.jump(c[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const ki={animation:{Feature:li},exit:{Feature:fi}};function De(e){return{point:{x:e.pageX,y:e.pageY}}}const Ii=e=>t=>Rt(t)&&e(t,De(t));function Je(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&H.postRender(()=>r(t,De(t)))}class di extends q{mount(){const{current:t}=this.node;t&&(this.unmount=Ns(t,(n,s)=>(Je(this.node,s,"Start"),i=>Je(this.node,i,"End"))))}unmount(){}}class hi extends q{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ie(Ze(this.node.current,"focus",()=>this.onFocus()),Ze(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Qe(e,t,n){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&H.postRender(()=>r(t,De(t)))}class pi extends q{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=Us(t,(i,r)=>(Qe(this.node,r,"Start"),(o,{success:a})=>Qe(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const be=new WeakMap,fe=new WeakMap,mi=e=>{const t=be.get(e.target);t&&t(e)},gi=e=>{e.forEach(mi)};function yi({root:e,...t}){const n=e||document;fe.has(n)||fe.set(n,{});const s=fe.get(n),i=JSON.stringify(t);return s[i]||(s[i]=new IntersectionObserver(gi,{root:e,...t})),s[i]}function vi(e,t,n){const s=yi(t);return be.set(e,n),s.observe(e),()=>{be.delete(e),s.unobserve(e)}}const Ti={some:0,all:1};class bi extends q{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=t,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Ti[i]},a=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,r&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=l?c:f;d&&d(u)};this.stopObserver=vi(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(xi(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function xi({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Oi={inView:{Feature:bi},tap:{Feature:pi},focus:{Feature:hi},hover:{Feature:di}};export{Ci as A,qs as B,Ds as C,Si as D,q as F,ki as a,xn as b,Pi as c,Sn as d,xs as e,Dt as f,Oi as g,Ys as h,Ge as i,Js as j,Xs as k,Zs as l,$s as m,Mi as n,Ps as o,dt as p,Ze as q,Bs as r,We as s,ne as t,Ks as u,Ii as v,Rt as w,De as x,ie as y,Di as z};
|
|
1
|
+
import{r as jt}from"./index-DmFAhGPj.js";import{n as se,i as Wt,a as et,b as X,r as tt,h as nt,c as Ut,d as xe,e as Pe,f as st,g as de,j as ke,t as L,k as qt,l as H,o as B,p as W,q as zt,s as R,v as Xt,M as U,W as it,w as Ae,N as Yt,x as $t,y as Zt,z as Jt,A as Qt,K as rt,B as en,C as we,D as tn,E as nn,F as sn,G as rn,H as ot,I as on,J as an,O as cn,P as Ie,Q as Oe,R as $,S as Ee,V as ln,T as un,U as fn,X as dn,Y as hn,Z as pn,_ as at,$ as mn,a0 as gn,a1 as yn,a2 as vn,a3 as Tn,a4 as ct,a5 as lt,a6 as ut,a7 as ft,a8 as bn}from"./use-reduced-motion-CYqhYqHO.js";const xn=e=>typeof e=="object"&&e!==null,ie=(...e)=>e.reduce((t,n)=>s=>n(t(s))),dt=(e,t,n)=>{const s=t-e;return s?(n-e)/s:1},ht=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,An=1e-7,wn=12;function Vn(e,t,n,s,i){let r,o,a=0;do o=t+(n-t)/2,r=ht(o,s,i)-e,r>0?n=o:t=o;while(Math.abs(r)>An&&++a<wn);return o}function Y(e,t,n,s){if(e===t&&n===s)return se;const i=r=>Vn(r,0,1,e,n);return r=>r===0||r===1?r:ht(i(r),t,s)}const pt=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,mt=e=>t=>1-e(1-t),gt=Y(.33,1.53,.69,.99),Ve=mt(gt),yt=pt(Ve),vt=e=>e>=1?1:(e*=2)<1?.5*Ve(e):.5*(2-Math.pow(2,-10*(e-1))),Se=e=>1-Math.sin(Math.acos(e)),Sn=mt(Se),Tt=pt(Se),Cn=Y(.42,0,1,1),Mn=Y(0,0,.58,1),bt=Y(.42,0,.58,1),Dn=e=>Array.isArray(e)&&typeof e[0]!="number",Pn={linear:se,easeIn:Cn,easeInOut:bt,easeOut:Mn,circIn:Se,circInOut:Tt,circOut:Sn,backIn:Ve,backInOut:yt,backOut:gt,anticipate:vt},kn=e=>typeof e=="string",Fe=e=>{if(Wt(e)){et(e.length===4);const[t,n,s,i]=e;return Y(t,n,s,i)}else if(kn(e))return Pn[e];return e};function re(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function In({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let i=0,r=0,o=0;if(!t)i=r=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,u=2*n-a;i=re(u,a,e+1/3),r=re(u,a,e),o=re(u,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function J(e,t){return n=>n>0?t:e}const oe=(e,t,n)=>{const s=e*e,i=n*(t*t-s)+s;return i<0?0:Math.sqrt(i)},On=[Ut,tt,nt],En=e=>On.find(t=>t.test(e));function Re(e){const t=En(e);if(!t)return!1;let n=t.parse(e);return t===nt&&(n=In(n)),n}const Le=(e,t)=>{const n=Re(e),s=Re(t);if(!n||!s)return J(e,t);const i={...n};return r=>(i.red=oe(n.red,s.red,r),i.green=oe(n.green,s.green,r),i.blue=oe(n.blue,s.blue,r),i.alpha=X(n.alpha,s.alpha,r),tt.transform(i))},he=new Set(["none","hidden"]);function Fn(e,t){return he.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Rn(e,t){return n=>X(e,t,n)}function Ce(e){return typeof e=="number"?Rn:typeof e=="string"?xe(e)?J:Pe.test(e)?Le:Kn:Array.isArray(e)?xt:typeof e=="object"?Pe.test(e)?Le:Ln:J}function xt(e,t){const n=[...e],s=n.length,i=e.map((r,o)=>Ce(r)(r,t[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function Ln(e,t){const n={...e,...t},s={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(s[i]=Ce(e[i])(e[i],t[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function Bn(e,t){const n=[],s={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const r=t.types[i],o=e.indexes[r][s[r]],a=e.values[o]??0;n[i]=a,s[r]++}return n}const Kn=(e,t)=>{const n=st.createTransformer(t),s=de(e),i=de(t);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?he.has(e)&&!i.values.length||he.has(t)&&!s.values.length?Fn(e,t):ie(xt(Bn(s,i),i.values),n):J(e,t)};function At(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?X(e,t,n):Ce(e)(e,t)}const Gn=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>H.update(t,n),stop:()=>qt(t),now:()=>ke.isProcessing?ke.timestamp:L.now()}},Q=2e4;function Me(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<Q;)t+=n,s=e.next(t);return t>=Q?1/0:t}function Nn(e,t=100,n){const s=n({...e,keyframes:[0,t]}),i=Math.min(Me(s),Q);return{type:"keyframes",ease:r=>s.next(i*r).value/t,duration:B(i)}}const V={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function pe(e,t){return e*Math.sqrt(1-t*t)}const Hn=12;function _n(e,t,n){let s=n;for(let i=1;i<Hn;i++)s=s-e(s)/t(s);return s}const ae=.001;function jn({duration:e=V.duration,bounce:t=V.bounce,velocity:n=V.velocity,mass:s=V.mass}){let i,r,o=1-t;o=W(V.minDamping,V.maxDamping,o),e=W(V.minDuration,V.maxDuration,B(e)),o<1?(i=l=>{const c=l*o,f=c*e,d=c-n,v=pe(l,o),m=Math.exp(-f);return ae-d/v*m},r=l=>{const f=l*o*e,d=f*n+n,v=Math.pow(o,2)*Math.pow(l,2)*e,m=Math.exp(-f),g=pe(Math.pow(l,2),o);return(-i(l)+ae>0?-1:1)*((d-v)*m)/g}):(i=l=>{const c=Math.exp(-l*e),f=(l-n)*e+1;return-ae+c*f},r=l=>{const c=Math.exp(-l*e),f=(n-l)*(e*e);return c*f});const a=5/e,u=_n(i,r,a);if(e=R(e),isNaN(u))return{stiffness:V.stiffness,damping:V.damping,duration:e};{const l=Math.pow(u,2)*s;return{stiffness:l,damping:o*2*Math.sqrt(s*l),duration:e}}}const Wn=["duration","bounce"],Un=["stiffness","damping","mass"];function Be(e,t){return t.some(n=>e[n]!==void 0)}function qn(e){let t={velocity:V.velocity,stiffness:V.stiffness,damping:V.damping,mass:V.mass,isResolvedFromDuration:!1,...e};if(!Be(e,Un)&&Be(e,Wn))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*W(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:V.mass,stiffness:i,damping:r}}else{const n=jn({...e,velocity:0});t={...t,...n,mass:V.mass},t.isResolvedFromDuration=!0}return t}function ee(e=V.visualDuration,t=V.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:u,damping:l,mass:c,duration:f,velocity:d,isResolvedFromDuration:v}=qn({...n,velocity:-B(n.velocity||0)}),m=d||0,g=l/(2*Math.sqrt(u*c)),h=o-r,p=B(Math.sqrt(u/c)),b=Math.abs(h)<5;s||(s=b?V.restSpeed.granular:V.restSpeed.default),i||(i=b?V.restDelta.granular:V.restDelta.default);let A,w,x,S,M,T;if(g<1)x=pe(p,g),S=(m+g*p*h)/x,A=y=>{const C=Math.exp(-g*p*y);return o-C*(S*Math.sin(x*y)+h*Math.cos(x*y))},M=g*p*S+h*x,T=g*p*h-S*x,w=y=>Math.exp(-g*p*y)*(M*Math.sin(x*y)+T*Math.cos(x*y));else if(g===1){A=C=>o-Math.exp(-p*C)*(h+(m+p*h)*C);const y=m+p*h;w=C=>Math.exp(-p*C)*(p*y*C-m)}else{const y=p*Math.sqrt(g*g-1);A=O=>{const F=Math.exp(-g*p*O),E=Math.min(y*O,300);return o-F*((m+g*p*h)*Math.sinh(E)+y*h*Math.cosh(E))/y};const C=(m+g*p*h)/y,k=g*p*C-h*y,K=g*p*h-C*y;w=O=>{const F=Math.exp(-g*p*O),E=Math.min(y*O,300);return F*(k*Math.sinh(E)+K*Math.cosh(E))}}const D={calculatedDuration:v&&f||null,velocity:y=>R(w(y)),next:y=>{if(!v&&g<1){const k=Math.exp(-g*p*y),K=Math.sin(x*y),O=Math.cos(x*y),F=o-k*(S*K+h*O),E=R(k*(M*K+T*O));return a.done=Math.abs(E)<=s&&Math.abs(o-F)<=i,a.value=a.done?o:F,a}const C=A(y);if(v)a.done=y>=f;else{const k=R(w(y));a.done=Math.abs(k)<=s&&Math.abs(o-C)<=i}return a.value=a.done?o:C,a},toString:()=>{const y=Math.min(Me(D),Q),C=zt(k=>D.next(y*k).value,y,30);return y+"ms "+C},toTransition:()=>{}};return D}ee.applyToOptions=e=>{const t=Nn(e,100,ee);return e.ease=t.ease,e.duration=R(t.duration),e.type="keyframes",e};const zn=5;function wt(e,t,n){const s=Math.max(t-zn,0);return Xt(n-e(s),t-s)}function me({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:u,restDelta:l=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},v=T=>a!==void 0&&T<a||u!==void 0&&T>u,m=T=>a===void 0?u:u===void 0||Math.abs(a-T)<Math.abs(u-T)?a:u;let g=n*t;const h=f+g,p=o===void 0?h:o(h);p!==h&&(g=p-f);const b=T=>-g*Math.exp(-T/s),A=T=>p+b(T),w=T=>{const D=b(T),y=A(T);d.done=Math.abs(D)<=l,d.value=d.done?p:y};let x,S;const M=T=>{v(d.value)&&(x=T,S=ee({keyframes:[d.value,m(d.value)],velocity:wt(A,T,d.value),damping:i,stiffness:r,restDelta:l,restSpeed:c}))};return M(0),{calculatedDuration:null,next:T=>{let D=!1;return!S&&x===void 0&&(D=!0,w(T),M(T)),x!==void 0&&T>=x?S.next(T-x):(!D&&w(T),d)}}}function Xn(e,t,n){const s=[],i=n||U.mix||At,r=e.length-1;for(let o=0;o<r;o++){let a=i(e[o],e[o+1]);if(t){const u=Array.isArray(t)?t[o]||se:t;a=ie(u,a)}s.push(a)}return s}function Yn(e,t,{clamp:n=!0,ease:s,mixer:i}={}){const r=e.length;if(et(r===t.length),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Xn(t,s,i),u=a.length,l=c=>{if(o&&c<e[0])return t[0];let f=0;if(u>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const d=dt(e[f],e[f+1],c);return a[f](d)};return n?c=>l(W(e[0],e[r-1],c)):l}function $n(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const i=dt(0,t,s);e.push(X(n,1,i))}}function Zn(e){const t=[0];return $n(t,e.length-1),t}function Jn(e,t){return e.map(n=>n*t)}function Qn(e,t){return e.map(()=>t||bt).splice(0,e.length-1)}function z({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const i=Dn(s)?s.map(Fe):Fe(s),r={done:!1,value:t[0]},o=Jn(n&&n.length===t.length?n:Zn(t),e),a=Yn(o,t,{ease:Array.isArray(i)?i:Qn(t,i)});return{calculatedDuration:e,next:u=>(r.value=a(u),r.done=u>=e,r)}}const es={decay:me,inertia:me,tween:z,keyframes:z,spring:ee};function Vt(e){typeof e.type=="string"&&(e.type=es[e.type])}const ts=e=>e/100;class te extends it{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==L.now()&&this.tick(L.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Vt(t);const{type:n=z,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=t;let{keyframes:a}=t;const u=n||z;u!==z&&typeof a[0]!="number"&&(this.mixKeyframes=ie(ts,At(a[0],a[1])),a=[0,100]);const l=u({...t,keyframes:a});r==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...a].reverse(),velocity:-o})),l.calculatedDuration===null&&(l.calculatedDuration=Me(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:u}=this;if(this.startTime===null)return s.next(0);const{delay:l=0,keyframes:c,repeat:f,repeatType:d,repeatDelay:v,type:m,onUpdate:g,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const p=this.currentTime-l*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?p<0:p>i;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let A=this.currentTime,w=s;if(f){const T=Math.min(this.currentTime,i)/a;let D=Math.floor(T),y=T%1;!y&&T>=1&&(y=1),y===1&&D--,D=Math.min(D,f+1),D%2&&(d==="reverse"?(y=1-y,v&&(y-=v/a)):d==="mirror"&&(w=o)),A=W(0,1,y)*a}let x;b?(this.delayState.value=c[0],x=this.delayState):x=w.next(A),r&&!b&&(x.value=r(x.value));let{done:S}=x;!b&&u!==null&&(S=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return M&&m!==me&&(x.value=Ae(c,this.options,h,this.speed)),g&&g(x.value),M&&this.finish(),x}then(t,n){return this.finished.then(t,n)}get duration(){return B(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+B(t)}get time(){return B(this.currentTime)}set time(t){t=R(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return wt(s=>this.generator.next(s).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(L.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=B(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=Gn,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(L.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}const St={anticipate:vt,backInOut:yt,circInOut:Tt};function ns(e){return e in St}function ss(e){typeof e.ease=="string"&&ns(e.ease)&&(e.ease=St[e.ease])}const ce=10;class is extends Yt{constructor(t){ss(t),Vt(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new te({...o,autoplay:!1}),u=Math.max(ce,L.now()-this.startTime),l=W(0,ce,u-ce),c=a.sample(u).value,{name:f}=this.options;r&&f&&$t(r,f,c),n.setWithVelocity(a.sample(Math.max(0,u-l)).value,c,l),a.stop()}}const Ke=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(st.test(e)||e==="0")&&!e.startsWith("url("));function rs(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function os(e,t,n,s){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const r=e[e.length-1],o=Ke(i,t),a=Ke(r,t);return!o||!a?!1:rs(e)||(n==="spring"||Zt(n))&&s}function ge(e){e.duration=0,e.type="keyframes"}const as=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function cs(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&as.test(e[t]))return!0;return!1}const ls=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),us=Qt(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function fs(e){const{motionValue:t,name:n,repeatDelay:s,repeatType:i,damping:r,type:o,keyframes:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return us()&&n&&(Jt.has(n)||ls.has(n)&&cs(a))&&(n!=="transform"||!c)&&!l&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const ds=40;class hs extends it{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:u,motionValue:l,element:c,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=L.now();const d={autoplay:t,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:u,motionValue:l,element:c,...f},v=c?.KeyframeResolver||rt;this.keyframeResolver=new v(a,(m,g,h)=>this.onKeyframesResolved(m,g,d,!h),u,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,s,i){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:u,isHandoff:l,onUpdate:c}=s;this.resolvedAt=L.now();let f=!0;os(t,r,o,a)||(f=!1,(U.instantAnimations||!u)&&c?.(Ae(t,s,n)),t[0]=t[t.length-1],ge(s),s.repeat=0);const v={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>ds?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},m=f&&!l&&fs(v),g=v.motionValue?.owner?.current;let h;if(m)try{h=new is({...v,element:g})}catch{h=new te(v)}else h=new te(v);h.finished.then(()=>{this.notifyFinished()}).catch(se),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),en()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Ct(e,t,n,s=0,i=1){const r=Array.from(e).sort((l,c)=>l.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}function Mt(e,t){if(e?.inherit&&t){const{inherit:n,...s}=e;return{...t,...s}}return e}function Dt(e,t){const n=e?.[t]??e?.default??e;return n!==e?Mt(n,e):n}const ps={type:"spring",stiffness:500,damping:25,restSpeed:10},ms=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),gs={type:"keyframes",duration:.8},ys={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},vs=(e,{keyframes:t})=>t.length>2?gs:we.has(e)?e.startsWith("scale")?ms(t[1]):ps:ys,Ts=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function bs(e){for(const t in e)if(!Ts.has(t))return!0;return!1}const xs=(e,t,n,s={},i,r)=>o=>{const a=Dt(s,e)||{},u=a.delay||s.delay||0;let{elapsed:l=0}=s;l=l-R(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:r?void 0:i};bs(a)||Object.assign(c,vs(e,c)),c.duration&&(c.duration=R(c.duration)),c.repeatDelay&&(c.repeatDelay=R(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(ge(c),c.delay===0&&(f=!0)),(U.instantAnimations||U.skipAnimations||i?.shouldSkipAnimations||a.skipAnimations)&&(f=!0,ge(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!r&&t.get()!==void 0){const d=Ae(c.keyframes,a);if(d!==void 0){H.update(()=>{c.onUpdate(d),c.onComplete()});return}}return a.isSync?new te(c):new hs(c)},As=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ws(e){const t=As.exec(e);if(!t)return[,];const[,n,s,i]=t;return[`--${n??s}`,i]}function Pt(e,t,n=1){const[s,i]=ws(e);if(!s)return;const r=window.getComputedStyle(t).getPropertyValue(s);if(r){const o=r.trim();return tn(o)?parseFloat(o):o}return xe(i)?Pt(i,t,n+1):i}function _(e,t,n){const s=e.getProps();return nn(s,t,n!==void 0?n:s.custom,e)}const kt=new Set(["width","height","top","left","right","bottom",...sn]),ye=e=>Array.isArray(e);function Vs(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,rn(n))}function Ss(e){return ye(e)?e[e.length-1]||0:e}function Cs(e,t){const n=_(e,t);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=Ss(r[o]);Vs(e,o,a)}}function Ms(e){return!!(ot(e)&&e.add)}function Ds(e,t){const n=e.getValue("willChange");if(Ms(n))return n.add(t);if(!n&&U.WillChange){const s=new U.WillChange("auto");e.addValue("willChange",s),s.add(t)}}function Ps(e){return e.props[on]}function ks({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function It(e,t,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=t;const u=e.getDefaultTransition();r=r?Mt(r,u):u;const l=r?.reduceMotion,c=r?.skipAnimations;s&&(r=s);const f=[],d=i&&e.animationState&&e.animationState.getState()[i],v=r?.path;v&&v.animateVisualElement(e,a,r,n,f);for(const m in a){const g=e.getValue(m,e.latestValues[m]??null),h=a[m];if(h===void 0||d&&ks(d,m))continue;const p={delay:n,...Dt(r||{},m)};c&&(p.skipAnimations=!0);const b=g.get();if(b!==void 0&&!g.isAnimating()&&!Array.isArray(h)&&h===b&&!p.velocity){H.update(()=>g.set(h));continue}let A=!1;if(window.MotionHandoffAnimation){const S=Ps(e);if(S){const M=window.MotionHandoffAnimation(S,m,H);M!==null&&(p.startTime=M,A=!0)}}Ds(e,m);const w=l??e.shouldReduceMotion;g.start(xs(m,g,h,w&&kt.has(m)?{type:!1}:p,e,A));const x=g.animation;x&&f.push(x)}if(o){const m=()=>H.update(()=>{o&&Cs(e,o)});f.length?Promise.all(f).then(m):m()}return f}function ve(e,t,n={}){const s=_(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(It(e,s,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:f}=i;return Is(e,t,u,l,c,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,l]=a==="beforeChildren"?[r,o]:[o,r];return u().then(()=>l())}else return Promise.all([r(),o(n.delay)])}function Is(e,t,n=0,s=0,i=0,r=1,o){const a=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),a.push(ve(u,t,{...o,delay:n+(typeof s=="function"?0:s)+Ct(e.variantChildren,u,s,i,r)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(a)}function Os(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const i=t.map(r=>ve(e,r,n));s=Promise.all(i)}else if(typeof t=="string")s=ve(e,t,n);else{const i=typeof t=="function"?_(e,t,n.custom):t;s=Promise.all(It(e,i,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}function Es(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||an(e):!0}const Fs=new Set(["auto","none","0"]);function Rs(e,t,n){let s=0,i;for(;s<e.length&&!i;){const r=e[s];typeof r=="string"&&!Fs.has(r)&&de(r).values.length&&(i=e[s]),s++}if(i&&n)for(const r of t)e[r]=cn(n,i)}class Ls extends rt{constructor(t,n,s,i,r){super(t,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let f=t[c];if(typeof f=="string"&&(f=f.trim(),xe(f))){const d=Pt(f,n.current);d!==void 0&&(t[c]=d),c===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!kt.has(s)||t.length!==2)return;const[i,r]=t,o=Ie(i),a=Ie(r),u=Oe(i),l=Oe(r);if(u!==l&&$[s]){this.needsMeasurement=!0;return}if(o!==a)if(Ee(o)&&Ee(a))for(let c=0;c<t.length;c++){const f=t[c];typeof f=="string"&&(t[c]=parseFloat(f))}else $[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let i=0;i<t.length;i++)(t[i]===null||Es(t[i]))&&s.push(i);s.length&&Rs(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=$[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(s,i).jump(i,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=$[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,u])=>{t.getValue(a).set(u)}),this.resolveNoneKeyframes()}}function Bs(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const i=n?.[e]??s.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(s=>s!=null)}function Ks(e){return xn(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const Ge={x:!1,y:!1};function Ot(){return Ge.x||Ge.y}function Et(e,t){const n=Bs(e),s=new AbortController,i={passive:!0,...t,signal:s.signal};return[n,i,()=>s.abort()]}function Gs(e){return!(e.pointerType==="touch"||Ot())}function Ns(e,t,n={}){const[s,i,r]=Et(e,n);return s.forEach(o=>{let a=!1,u=!1,l;const c=()=>{o.removeEventListener("pointerleave",m)},f=h=>{l&&(l(h),l=void 0),c()},d=h=>{a=!1,window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",d),u&&(u=!1,f(h))},v=()=>{a=!0,window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",d,i)},m=h=>{if(h.pointerType!=="touch"){if(a){u=!0;return}f(h)}},g=h=>{if(!Gs(h))return;u=!1;const p=t(o,h);typeof p=="function"&&(l=p,o.addEventListener("pointerleave",m,i))};o.addEventListener("pointerenter",g,i),o.addEventListener("pointerdown",v,i)}),r}const Ft=(e,t)=>t?e===t?!0:Ft(e,t.parentElement):!1,Rt=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Hs=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function _s(e){return Hs.has(e.tagName)||e.isContentEditable===!0}const js=new Set(["INPUT","SELECT","TEXTAREA"]);function Si(e){return js.has(e.tagName)||e.isContentEditable===!0}const Z=new WeakSet;function Ne(e){return t=>{t.key==="Enter"&&e(t)}}function le(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Ws=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=Ne(()=>{if(Z.has(n))return;le(n,"down");const i=Ne(()=>{le(n,"up")}),r=()=>le(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",r,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function He(e){return Rt(e)&&!Ot()}const _e=new WeakSet;function Us(e,t,n={}){const[s,i,r]=Et(e,n),o=a=>{const u=a.currentTarget;if(!He(a)||_e.has(a))return;Z.add(u),n.stopPropagation&&_e.add(a);const l=t(u,a),c=(v,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),Z.has(u)&&Z.delete(u),He(v)&&typeof l=="function"&&l(v,{success:m})},f=v=>{c(v,u===window||u===document||n.useGlobalTarget||Ft(u,v.target))},d=v=>{c(v,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Ks(a)&&(a.addEventListener("focus",l=>Ws(l,i)),!_s(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}class Lt extends ln{constructor(){super(...arguments),this.KeyframeResolver=Ls}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const s=t.style;return s?s[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;ot(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class q{constructor(t){this.isMounted=!1,this.node=t}update(){}}function qs({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function Ci({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function zs(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ue(e){return e===void 0||e===1}function Xs({scale:e,scaleX:t,scaleY:n}){return!ue(e)||!ue(t)||!ue(n)}function Ys(e){return Xs(e)||$s(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function $s(e){return je(e.x)||je(e.y)}function je(e){return e&&e!=="0%"}function We(e,t,n){const s=e-n,i=t*s;return n+i}function Ue(e,t,n,s,i){return i!==void 0&&(e=We(e,i,s)),We(e,n,s)+t}function Te(e,t=0,n=1,s,i){e.min=Ue(e.min,t,n,s,i),e.max=Ue(e.max,t,n,s,i)}function Zs(e,{x:t,y:n}){Te(e.x,t.translate,t.scale,t.originPoint),Te(e.y,n.translate,n.scale,n.originPoint)}const qe=.999999999999,ze=1.0000000000001;function Mi(e,t,n,s=!1){const i=n.length;if(!i)return;t.x=t.y=1;let r,o;for(let a=0;a<i;a++){r=n[a],o=r.projectionDelta;const{visualElement:u}=r.options;u&&u.props.style&&u.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(ne(e.x,-r.scroll.offset.x),ne(e.y,-r.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Zs(e,o)),s&&Ys(r.latestValues)&&Js(e,r.latestValues,r.layout?.layoutBox))}t.x<ze&&t.x>qe&&(t.x=1),t.y<ze&&t.y>qe&&(t.y=1)}function ne(e,t){e.min+=t,e.max+=t}function Xe(e,t,n,s,i=.5){const r=X(e.min,e.max,i);Te(e,t,n,r,s)}function Ye(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Js(e,t,n){const s=n??e;Xe(e.x,Ye(t.x,s.x),t.scaleX,t.scale,t.originX),Xe(e.y,Ye(t.y,s.y),t.scaleY,t.scale,t.originY)}function Bt(e,t){return qs(zs(e.getBoundingClientRect(),t))}function Di(e,t,n){const s=Bt(e,n),{scroll:i}=t;return i&&(ne(s.x,i.offset.x),ne(s.y,i.offset.y)),s}function Kt(e,{style:t,vars:n},s,i){const r=e.style;let o;for(o in t)r[o]=t[o];i?.applyProjectionStyles(r,s);for(o in n)r.setProperty(o,n[o])}function Qs(e){return window.getComputedStyle(e)}class ei extends Lt{constructor(){super(...arguments),this.type="html",this.renderInstance=Kt}readValueFromInstance(t,n){if(we.has(n))return this.projection?.isProjecting?un(n):fn(t,n);{const s=Qs(t),i=(dn(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Bt(t,n)}build(t,n,s){hn(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return pn(t,n,s)}}const Gt=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ti(e,t,n,s){Kt(e,t,void 0,s);for(const i in t.attrs)e.setAttribute(Gt.has(i)?i:at(i),t.attrs[i])}class ni extends Lt{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=mn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(we.has(n)){const s=Tn(n);return s&&s.default||0}return n=Gt.has(n)?n:at(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return gn(t,n,s)}build(t,n,s){yn(t,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,n,s,i){ti(t,n,s,i)}mount(t){this.isSVGTag=vn(t.tagName),super.mount(t)}}const si=lt.length;function Nt(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Nt(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<si;n++){const s=lt[n],i=e.props[s];(ct(i)||i===!1)&&(t[s]=i)}return t}function Ht(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}const ii=[...ft].reverse(),ri=ft.length;function oi(e){return t=>Promise.all(t.map(({animation:n,options:s})=>Os(e,n,s)))}function ai(e){let t=oi(e),n=$e(),s=!0,i=!1;const r=l=>(c,f)=>{const d=_(e,f,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:v,transitionEnd:m,...g}=d;c={...c,...g,...m}}return c};function o(l){t=l(e)}function a(l){const{props:c}=e,f=Nt(e.parent)||{},d=[],v=new Set;let m={},g=1/0;for(let p=0;p<ri;p++){const b=ii[p],A=n[b],w=c[b]!==void 0?c[b]:f[b],x=ct(w),S=b===l?A.isActive:null;S===!1&&(g=p);let M=w===f[b]&&w!==c[b]&&x;if(M&&(s||i)&&e.manuallyAnimateOnMount&&(M=!1),A.protectedKeys={...m},!A.isActive&&S===null||!w&&!A.prevProp||ut(w)||typeof w=="boolean")continue;if(b==="exit"&&A.isActive&&S!==!0){A.prevResolvedValues&&(m={...m,...A.prevResolvedValues});continue}const T=ci(A.prevProp,w);let D=T||b===l&&A.isActive&&!M&&x||p>g&&x,y=!1;const C=Array.isArray(w)?w:[w];let k=C.reduce(r(b),{});S===!1&&(k={});const{prevResolvedValues:K={}}=A,O={...K,...k},F=P=>{D=!0,v.has(P)&&(y=!0,v.delete(P)),A.needsAnimating[P]=!0;const I=e.getValue(P);I&&(I.liveStyle=!1)};for(const P in O){const I=k[P],G=K[P];if(m.hasOwnProperty(P))continue;let j=!1;ye(I)&&ye(G)?j=!Ht(I,G)||T:j=I!==G,j?I!=null?F(P):v.add(P):I!==void 0&&v.has(P)?F(P):A.protectedKeys[P]=!0}A.prevProp=w,A.prevResolvedValues=k,A.isActive&&(m={...m,...k}),(s||i)&&e.blockInitialAnimation&&(D=!1);const E=M&&T;D&&(!E||y)&&d.push(...C.map(P=>{const I={type:b};if(typeof P=="string"&&(s||i)&&!E&&e.manuallyAnimateOnMount&&e.parent){const{parent:G}=e,j=_(G,P);if(G.enteringChildren&&j){const{delayChildren:_t}=j.transition||{};I.delay=Ct(G.enteringChildren,e,_t)}}return{animation:P,options:I}}))}if(v.size){const p={};if(typeof c.initial!="boolean"){const b=_(e,Array.isArray(c.initial)?c.initial[0]:c.initial);b&&b.transition&&(p.transition=b.transition)}v.forEach(b=>{const A=e.getBaseTarget(b),w=e.getValue(b);w&&(w.liveStyle=!0),p[b]=A??null}),d.push({animation:p})}let h=!!d.length;return s&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(h=!1),s=!1,i=!1,h?t(d):Promise.resolve()}function u(l,c){if(n[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,c)),n[l].isActive=c;const f=a(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=$e(),i=!0}}}function ci(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ht(t,e):!1}function N(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $e(){return{animate:N(!0),whileInView:N(),whileHover:N(),whileTap:N(),whileDrag:N(),whileFocus:N(),exit:N()}}function Ze(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}const Pi=(e,t)=>t.isSVG??bn(e)?new ni(t):new ei(t,{allowProjection:e!==jt.Fragment});class li extends q{constructor(t){super(t),t.animationState||(t.animationState=ai(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ut(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let ui=0;class fi extends q{constructor(){super(...arguments),this.id=ui++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;if(t&&s===!1){if(this.isExitComplete){const{initial:r,custom:o}=this.node.getProps();if(typeof r=="string"||typeof r=="object"&&r!==null&&!Array.isArray(r)){const a=_(this.node,r,o);if(a){const{transition:u,transitionEnd:l,...c}=a;for(const f in c)this.node.getValue(f)?.jump(c[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const ki={animation:{Feature:li},exit:{Feature:fi}};function De(e){return{point:{x:e.pageX,y:e.pageY}}}const Ii=e=>t=>Rt(t)&&e(t,De(t));function Je(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&H.postRender(()=>r(t,De(t)))}class di extends q{mount(){const{current:t}=this.node;t&&(this.unmount=Ns(t,(n,s)=>(Je(this.node,s,"Start"),i=>Je(this.node,i,"End"))))}unmount(){}}class hi extends q{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ie(Ze(this.node.current,"focus",()=>this.onFocus()),Ze(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Qe(e,t,n){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&H.postRender(()=>r(t,De(t)))}class pi extends q{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=Us(t,(i,r)=>(Qe(this.node,r,"Start"),(o,{success:a})=>Qe(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const be=new WeakMap,fe=new WeakMap,mi=e=>{const t=be.get(e.target);t&&t(e)},gi=e=>{e.forEach(mi)};function yi({root:e,...t}){const n=e||document;fe.has(n)||fe.set(n,{});const s=fe.get(n),i=JSON.stringify(t);return s[i]||(s[i]=new IntersectionObserver(gi,{root:e,...t})),s[i]}function vi(e,t,n){const s=yi(t);return be.set(e,n),s.observe(e),()=>{be.delete(e),s.unobserve(e)}}const Ti={some:0,all:1};class bi extends q{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=t,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Ti[i]},a=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,r&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=l?c:f;d&&d(u)};this.stopObserver=vi(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(xi(t,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function xi({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Oi={inView:{Feature:bi},tap:{Feature:pi},focus:{Feature:hi},hover:{Feature:di}};export{Ci as A,qs as B,Ds as C,Si as D,q as F,ki as a,xn as b,Pi as c,Sn as d,xs as e,Dt as f,Oi as g,Ys as h,Ge as i,Js as j,Xs as k,Zs as l,$s as m,Mi as n,Ps as o,dt as p,Ze as q,Bs as r,We as s,ne as t,Ks as u,Ii as v,Rt as w,De as x,ie as y,Di as z};
|
package/dist/client/assets/{home-moving-signal-Bs635mVw.js → home-moving-signal-Bh2FugbH.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as v,j as n}from"./index-BZovGpDk.js";import{r as A}from"./index-DiiEQwdc.js";import{H as I}from"./HarnessMark-DrE57dUq.js";import{u as G}from"./keyboard-nav-CHo_xmjw.js";import{n as L}from"./time-Dhsh_2EG.js";import{i as T}from"./agent-lanes-model-VYQ5a68i.js";import{u as p,l as $,a as H,c as M,h as K,b as P,d as f}from"./home-live-action-BkqGLVRY.js";import"./context-budget-DX_fwUs3.js";import"./terminal-sessions-AmSgHklm.js";import"./api-h5zurxmi.js";import"./lane-observe-BA3g9aVd.js";import"./tail-display-BRcJltQa.js";import"./lane-edit-display-C_Aujldz.js";import"./synthetic-agent-routing-aduMYO7P.js";function q(e){const t=e?.task?.trim();return!t||/^(working|idle|queued)$/i.test(t)?null:p(t)}function U(e,t){const s=e?.replace(/\s+/g," ").trim().toLowerCase()??"",i=t?.replace(/\s+/g," ").trim().toLowerCase()??"";return!!(s&&i&&s!==i)}function x(e,t){const s=L(e);if(s===null)return"—";const i=Math.max(0,Math.floor((t-s)/1e3));if(i<60)return`${i}s`;const a=Math.floor(i/60);if(a<60)return`${a}m`;const c=Math.floor(a/60);return c<48?`${c}h`:`${Math.floor(c/24)}d`}function B(e){return e?e.startsWith("/Users/")?`~/${e.split("/").slice(3).join("/")}`:(e.startsWith("~/"),e):null}function R(e){const t=B(e);if(!t)return"other";const s=t.replace(/\/+$/u,"").split("/").filter(Boolean);return s[s.length-1]??t}function W(e){if(!B(e))return"other";const s=R(e);return s==="other"?"other":`~/${s}`}function O(e,t=140){const s=(e??"").replace(/\s+/g," ").trim();return s?s.length>t?`${s.slice(0,t-1)}…`:s:""}function _(e,t,s,i,a,c){const o=e.projectRoot??e.cwd??null,d=R(o),r=q(t),u=p($({observeData:s,checkpoint:null,fallbackTask:null,observeLive:i,skipLifecycleTokens:!0})),g=p(H(s)),y=!r&&!u&&!g,j=M({harness:e.harness,project:d==="other"?null:d,branch:e.branch,live:i,attachedOnly:y&&!i}),h=r||u||p(t?.summary)||g||j||"Working",N=r&&u&&U(r,u)?u:null,b=L(s?.metadata?.session?.sessionStart);return{id:e.id,action:p(h)||O(h,160)||"Working",nowLine:N,name:e.name,harness:e.harness?.trim()||null,projectKey:d,projectLabel:W(o),branch:e.branch?.trim()||null,lastAge:x(a,c),sessionAge:b!==null?x(b,c):null,live:i||!!(t&&(t.status==="working"||t.agentState==="working"||t.agentState==="in_flight")),agent:e,observeRoute:f(e,"observe"),profileRoute:f(e,"profile"),terminalRoute:f(e,"terminal"),peekRoute:f(e,"peek"),terminalEnabled:P(e),peekEnabled:K(e)}}function J(e,t,s){const i=e.agent,a=T(e.observe),c=i.projectRoot??i.cwd??null,o=R(c),d=p($({observeData:e.observe,fallbackTask:null,observeLive:a,skipLifecycleTokens:!0})),r=p(H(e.observe)),u=d||r||M({harness:i.harness,project:o==="other"?null:o,branch:i.branch,live:a,attachedOnly:!d&&!r}),g=L(e.observe?.metadata?.session?.sessionStart);return{id:e.id,action:p(u)||O(u,160)||"Active",nowLine:null,name:i.name,harness:i.harness?.trim()||null,projectKey:o,projectLabel:W(c),branch:i.branch?.trim()||null,lastAge:x(t,s),sessionAge:g!==null?x(g,s):null,live:a,agent:i,observeRoute:f(i,"observe"),profileRoute:f(i,"profile"),terminalRoute:f(i,"terminal"),peekRoute:f(i,"peek"),terminalEnabled:P(i),peekEnabled:K(i)}}function Q(e,t,s){const i=e.actorName??e.agentName??e.agentId??"Observed",a=p(e.title)||p(e.summary)||"Observed activity",c=e.conversationId?{view:"conversation",conversationId:e.conversationId}:e.recordId?{view:"work",workId:e.recordId}:e.agentId?{view:"agents-v2",agentId:e.agentId}:null;return{id:e.id,action:a,nowLine:null,name:i,harness:null,projectKey:"observed",projectLabel:"observed",branch:null,lastAge:x(t,s),sessionAge:null,live:!1,agent:null,observeRoute:c,profileRoute:e.agentId?{view:"agents-v2",agentId:e.agentId,tab:"profile"}:null,terminalRoute:null,peekRoute:null,terminalEnabled:!1,peekEnabled:!1}}function V(e){const t=new Map;for(const s of e){const i=t.get(s.projectKey)??[];i.push(s),t.set(s.projectKey,i)}return[...t.entries()]}function ge({cards:e,sort:t,nowMs:s,movingAskByAgent:i,observeCache:a,navigate:c}){const[o,d]=v.useState(null),[r,u]=v.useState(null),g=v.useRef(null),y=v.useCallback((l,m)=>{g.current!==null&&window.clearTimeout(g.current),g.current=window.setTimeout(()=>{const F=Math.max(16,Math.min(m.left+96,window.innerWidth-380-16)),z=m.bottom+8+240>window.innerHeight?Math.max(16,m.top-8-240):m.bottom+8;u({id:l,top:z,left:F})},180)},[]),j=v.useCallback(()=>{g.current!==null&&window.clearTimeout(g.current),g.current=null,u(null)},[]),h=v.useMemo(()=>e.map(l=>l.bucket==="working"?_(l.agent,i.get(l.agent.id),a[l.agent.id]?.data??null,T(a[l.agent.id]?.data),l.lastActivityAt,s):l.bucket==="native"?J(l.lane,l.lastActivityAt,s):Q(l.actor,l.lastActivityAt,s)),[e,i,s,a]),N=v.useMemo(()=>V(h),[h]),b=h.find(l=>l.id===o)??null,E=!o&&r?h.find(l=>l.id===r.id)??null:null,S=v.useCallback(l=>{j(),d(m=>m===l?null:l)},[j]);return v.useEffect(()=>{if(!o)return;const l=m=>{m.key==="Escape"&&d(null)};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[o]),v.useEffect(()=>{o&&!h.some(l=>l.id===o)&&d(null)},[o,h]),v.useEffect(()=>{r&&!h.some(l=>l.id===r.id)&&u(null)},[r,h]),v.useEffect(()=>{if(!r)return;const l=()=>u(null);return window.addEventListener("scroll",l,!0),()=>window.removeEventListener("scroll",l,!0)},[r]),n.jsxs("div",{className:"s-moving-signal-stage",children:[t==="grouped"?n.jsx("div",{className:"s-moving-signal-grouped",children:N.map(([l,m])=>n.jsxs("section",{className:"s-moving-signal-group",children:[n.jsxs("header",{className:"s-moving-signal-band",children:[n.jsx("span",{children:m[0]?.projectLabel??l}),n.jsxs("span",{children:[m.length," moving",m[0]?.branch?` · ${m[0].branch}`:""]})]}),n.jsx("div",{className:"s-moving-signal-list",children:m.map(k=>n.jsx(C,{row:k,grouped:!0,selected:o===k.id,onSelect:S,onHoverStart:y,onHoverEnd:j},k.id))})]},l))}):n.jsx("div",{className:"s-moving-signal-list",children:h.map(l=>n.jsx(C,{row:l,selected:o===l.id,onSelect:S,onHoverStart:y,onHoverEnd:j},l.id))}),E&&r&&typeof document<"u"?A.createPortal(n.jsx(X,{row:E,top:r.top,left:r.left}),document.body):null,b&&typeof document<"u"?A.createPortal(n.jsx(Y,{row:b,onClose:()=>d(null),navigate:c}),document.body):null]})}function C({row:e,grouped:t,selected:s,onSelect:i,onHoverStart:a,onHoverEnd:c}){const o=e.projectKey!=="other"&&e.projectKey!=="observed",d=t||!o?e.name:`${e.projectKey}${e.branch?` · ${e.branch}`:""}`,r=[e.name,e.harness,o?e.projectKey:null,e.branch].filter(Boolean).join(" · ");return n.jsx("div",{className:"s-moving-signal-item",children:n.jsxs("button",{type:"button",className:`s-moving-signal-row${s?" is-selected":""}`,"aria-pressed":s,"aria-controls":s?"home-moving-signal-overlay":void 0,onClick:()=>i(e.id),onMouseEnter:u=>a(e.id,u.currentTarget.getBoundingClientRect()),onMouseLeave:c,onFocus:u=>a(e.id,u.currentTarget.getBoundingClientRect()),onBlur:c,children:[n.jsx("span",{className:`s-moving-signal-age${e.live?" is-live":""}`,children:e.lastAge}),n.jsx("span",{className:"s-moving-signal-mark",children:e.harness?n.jsx(I,{harness:e.harness,size:11}):null}),n.jsx("span",{className:"s-moving-signal-where",title:r,children:d}),n.jsx("span",{className:"s-moving-signal-action",title:e.action,children:e.action})]})})}function D({row:e}){return n.jsxs("dl",{className:"s-moving-signal-overlay-meta",children:[n.jsxs("div",{children:[n.jsx("dt",{children:"Agent"}),n.jsx("dd",{children:e.name})]}),e.harness?n.jsxs("div",{children:[n.jsx("dt",{children:"Harness"}),n.jsx("dd",{children:e.harness})]}):null,n.jsxs("div",{children:[n.jsx("dt",{children:"Project"}),n.jsx("dd",{children:e.projectLabel})]}),e.branch?n.jsxs("div",{children:[n.jsx("dt",{children:"Branch"}),n.jsx("dd",{children:e.branch})]}):null,e.sessionAge?n.jsxs("div",{children:[n.jsx("dt",{children:"Session"}),n.jsxs("dd",{children:["new ",e.sessionAge]})]}):null]})}function X({row:e,top:t,left:s}){return n.jsxs("div",{className:"s-moving-signal-hovercard",style:{top:t,left:s},role:"presentation","aria-hidden":"true",children:[n.jsxs("div",{className:"s-moving-signal-overlay-kicker",children:[e.live?n.jsx("span",{className:"s-moving-signal-overlay-live",children:"Live"}):null,n.jsxs("span",{children:[e.lastAge," ago"]}),e.harness?n.jsx(I,{harness:e.harness,size:11}):null,n.jsx("span",{children:e.name})]}),n.jsx("p",{className:"s-moving-signal-overlay-action",children:e.action}),e.nowLine?n.jsxs("p",{className:"s-moving-signal-overlay-now",title:e.nowLine,children:[n.jsx("span",{className:"s-moving-signal-overlay-now-label",children:"Now"}),e.nowLine]}):null,n.jsx(D,{row:e})]})}function Y({row:e,onClose:t,navigate:s}){const i=G(),a=o=>d=>{d.stopPropagation(),o&&(t(),s(o))},c=o=>{i.onKeyDown(o),o.key==="Escape"&&(o.stopPropagation(),t())};return n.jsx("div",{className:"s-moving-signal-overlay-root",role:"presentation",onClick:t,children:n.jsxs("aside",{ref:i.ref,id:"home-moving-signal-overlay",className:"s-moving-signal-overlay",role:"dialog","aria-modal":"true","aria-label":`Details · ${e.name}`,tabIndex:-1,onKeyDown:c,onClick:o=>o.stopPropagation(),children:[n.jsxs("header",{className:"s-moving-signal-overlay-head",children:[n.jsxs("div",{className:"s-moving-signal-overlay-kicker",children:[e.live?n.jsx("span",{className:"s-moving-signal-overlay-live",children:"Live"}):null,n.jsxs("span",{children:[e.lastAge," ago"]})]}),n.jsx("button",{type:"button",className:"s-moving-signal-overlay-close","aria-label":"Close",onClick:t,children:"✕"})]}),n.jsxs("div",{className:"s-moving-signal-overlay-body",children:[n.jsx("p",{className:"s-moving-signal-overlay-action",children:e.action}),e.nowLine?n.jsxs("p",{className:"s-moving-signal-overlay-now",title:e.nowLine,children:[n.jsx("span",{className:"s-moving-signal-overlay-now-label",children:"Now"}),e.nowLine]}):null,n.jsx(D,{row:e})]}),n.jsxs("div",{className:"s-moving-signal-overlay-actions",children:[n.jsx("button",{type:"button",className:"s-moving-signal-overlay-primary",disabled:!e.observeRoute,onClick:a(e.observeRoute),children:"Observe"}),n.jsx("button",{type:"button",className:"s-moving-signal-overlay-ghost",disabled:!e.profileRoute,onClick:a(e.profileRoute),children:"Profile"}),n.jsx("button",{type:"button",className:"s-moving-signal-overlay-ghost",disabled:!e.terminalEnabled||!e.terminalRoute,onClick:a(e.terminalRoute),children:"Terminal"}),n.jsx("button",{type:"button",className:"s-moving-signal-overlay-ghost",disabled:!e.peekEnabled||!e.peekRoute,onClick:a(e.peekRoute),children:"Peek"})]})]})})}export{ge as HomeMovingSignalList};
|
|
1
|
+
import{r as v,j as n}from"./index-DmFAhGPj.js";import{r as A}from"./index-CmwGCxUk.js";import{H as I}from"./HarnessMark-BPAphNjx.js";import{u as G}from"./keyboard-nav-h1IdakpD.js";import{n as L}from"./time-Dhsh_2EG.js";import{i as T}from"./agent-lanes-model-VYQ5a68i.js";import{u as p,l as $,a as H,c as M,h as K,b as P,d as f}from"./home-live-action-BkqGLVRY.js";import"./context-budget-DX_fwUs3.js";import"./terminal-sessions-AmSgHklm.js";import"./api-h5zurxmi.js";import"./lane-observe-BA3g9aVd.js";import"./tail-display-BRcJltQa.js";import"./lane-edit-display-C_Aujldz.js";import"./synthetic-agent-routing-aduMYO7P.js";function q(e){const t=e?.task?.trim();return!t||/^(working|idle|queued)$/i.test(t)?null:p(t)}function U(e,t){const s=e?.replace(/\s+/g," ").trim().toLowerCase()??"",i=t?.replace(/\s+/g," ").trim().toLowerCase()??"";return!!(s&&i&&s!==i)}function x(e,t){const s=L(e);if(s===null)return"—";const i=Math.max(0,Math.floor((t-s)/1e3));if(i<60)return`${i}s`;const a=Math.floor(i/60);if(a<60)return`${a}m`;const c=Math.floor(a/60);return c<48?`${c}h`:`${Math.floor(c/24)}d`}function B(e){return e?e.startsWith("/Users/")?`~/${e.split("/").slice(3).join("/")}`:(e.startsWith("~/"),e):null}function R(e){const t=B(e);if(!t)return"other";const s=t.replace(/\/+$/u,"").split("/").filter(Boolean);return s[s.length-1]??t}function W(e){if(!B(e))return"other";const s=R(e);return s==="other"?"other":`~/${s}`}function O(e,t=140){const s=(e??"").replace(/\s+/g," ").trim();return s?s.length>t?`${s.slice(0,t-1)}…`:s:""}function _(e,t,s,i,a,c){const o=e.projectRoot??e.cwd??null,d=R(o),r=q(t),u=p($({observeData:s,checkpoint:null,fallbackTask:null,observeLive:i,skipLifecycleTokens:!0})),g=p(H(s)),y=!r&&!u&&!g,j=M({harness:e.harness,project:d==="other"?null:d,branch:e.branch,live:i,attachedOnly:y&&!i}),h=r||u||p(t?.summary)||g||j||"Working",N=r&&u&&U(r,u)?u:null,b=L(s?.metadata?.session?.sessionStart);return{id:e.id,action:p(h)||O(h,160)||"Working",nowLine:N,name:e.name,harness:e.harness?.trim()||null,projectKey:d,projectLabel:W(o),branch:e.branch?.trim()||null,lastAge:x(a,c),sessionAge:b!==null?x(b,c):null,live:i||!!(t&&(t.status==="working"||t.agentState==="working"||t.agentState==="in_flight")),agent:e,observeRoute:f(e,"observe"),profileRoute:f(e,"profile"),terminalRoute:f(e,"terminal"),peekRoute:f(e,"peek"),terminalEnabled:P(e),peekEnabled:K(e)}}function J(e,t,s){const i=e.agent,a=T(e.observe),c=i.projectRoot??i.cwd??null,o=R(c),d=p($({observeData:e.observe,fallbackTask:null,observeLive:a,skipLifecycleTokens:!0})),r=p(H(e.observe)),u=d||r||M({harness:i.harness,project:o==="other"?null:o,branch:i.branch,live:a,attachedOnly:!d&&!r}),g=L(e.observe?.metadata?.session?.sessionStart);return{id:e.id,action:p(u)||O(u,160)||"Active",nowLine:null,name:i.name,harness:i.harness?.trim()||null,projectKey:o,projectLabel:W(c),branch:i.branch?.trim()||null,lastAge:x(t,s),sessionAge:g!==null?x(g,s):null,live:a,agent:i,observeRoute:f(i,"observe"),profileRoute:f(i,"profile"),terminalRoute:f(i,"terminal"),peekRoute:f(i,"peek"),terminalEnabled:P(i),peekEnabled:K(i)}}function Q(e,t,s){const i=e.actorName??e.agentName??e.agentId??"Observed",a=p(e.title)||p(e.summary)||"Observed activity",c=e.conversationId?{view:"conversation",conversationId:e.conversationId}:e.recordId?{view:"work",workId:e.recordId}:e.agentId?{view:"agents-v2",agentId:e.agentId}:null;return{id:e.id,action:a,nowLine:null,name:i,harness:null,projectKey:"observed",projectLabel:"observed",branch:null,lastAge:x(t,s),sessionAge:null,live:!1,agent:null,observeRoute:c,profileRoute:e.agentId?{view:"agents-v2",agentId:e.agentId,tab:"profile"}:null,terminalRoute:null,peekRoute:null,terminalEnabled:!1,peekEnabled:!1}}function V(e){const t=new Map;for(const s of e){const i=t.get(s.projectKey)??[];i.push(s),t.set(s.projectKey,i)}return[...t.entries()]}function ge({cards:e,sort:t,nowMs:s,movingAskByAgent:i,observeCache:a,navigate:c}){const[o,d]=v.useState(null),[r,u]=v.useState(null),g=v.useRef(null),y=v.useCallback((l,m)=>{g.current!==null&&window.clearTimeout(g.current),g.current=window.setTimeout(()=>{const F=Math.max(16,Math.min(m.left+96,window.innerWidth-380-16)),z=m.bottom+8+240>window.innerHeight?Math.max(16,m.top-8-240):m.bottom+8;u({id:l,top:z,left:F})},180)},[]),j=v.useCallback(()=>{g.current!==null&&window.clearTimeout(g.current),g.current=null,u(null)},[]),h=v.useMemo(()=>e.map(l=>l.bucket==="working"?_(l.agent,i.get(l.agent.id),a[l.agent.id]?.data??null,T(a[l.agent.id]?.data),l.lastActivityAt,s):l.bucket==="native"?J(l.lane,l.lastActivityAt,s):Q(l.actor,l.lastActivityAt,s)),[e,i,s,a]),N=v.useMemo(()=>V(h),[h]),b=h.find(l=>l.id===o)??null,E=!o&&r?h.find(l=>l.id===r.id)??null:null,S=v.useCallback(l=>{j(),d(m=>m===l?null:l)},[j]);return v.useEffect(()=>{if(!o)return;const l=m=>{m.key==="Escape"&&d(null)};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[o]),v.useEffect(()=>{o&&!h.some(l=>l.id===o)&&d(null)},[o,h]),v.useEffect(()=>{r&&!h.some(l=>l.id===r.id)&&u(null)},[r,h]),v.useEffect(()=>{if(!r)return;const l=()=>u(null);return window.addEventListener("scroll",l,!0),()=>window.removeEventListener("scroll",l,!0)},[r]),n.jsxs("div",{className:"s-moving-signal-stage",children:[t==="grouped"?n.jsx("div",{className:"s-moving-signal-grouped",children:N.map(([l,m])=>n.jsxs("section",{className:"s-moving-signal-group",children:[n.jsxs("header",{className:"s-moving-signal-band",children:[n.jsx("span",{children:m[0]?.projectLabel??l}),n.jsxs("span",{children:[m.length," moving",m[0]?.branch?` · ${m[0].branch}`:""]})]}),n.jsx("div",{className:"s-moving-signal-list",children:m.map(k=>n.jsx(C,{row:k,grouped:!0,selected:o===k.id,onSelect:S,onHoverStart:y,onHoverEnd:j},k.id))})]},l))}):n.jsx("div",{className:"s-moving-signal-list",children:h.map(l=>n.jsx(C,{row:l,selected:o===l.id,onSelect:S,onHoverStart:y,onHoverEnd:j},l.id))}),E&&r&&typeof document<"u"?A.createPortal(n.jsx(X,{row:E,top:r.top,left:r.left}),document.body):null,b&&typeof document<"u"?A.createPortal(n.jsx(Y,{row:b,onClose:()=>d(null),navigate:c}),document.body):null]})}function C({row:e,grouped:t,selected:s,onSelect:i,onHoverStart:a,onHoverEnd:c}){const o=e.projectKey!=="other"&&e.projectKey!=="observed",d=t||!o?e.name:`${e.projectKey}${e.branch?` · ${e.branch}`:""}`,r=[e.name,e.harness,o?e.projectKey:null,e.branch].filter(Boolean).join(" · ");return n.jsx("div",{className:"s-moving-signal-item",children:n.jsxs("button",{type:"button",className:`s-moving-signal-row${s?" is-selected":""}`,"aria-pressed":s,"aria-controls":s?"home-moving-signal-overlay":void 0,onClick:()=>i(e.id),onMouseEnter:u=>a(e.id,u.currentTarget.getBoundingClientRect()),onMouseLeave:c,onFocus:u=>a(e.id,u.currentTarget.getBoundingClientRect()),onBlur:c,children:[n.jsx("span",{className:`s-moving-signal-age${e.live?" is-live":""}`,children:e.lastAge}),n.jsx("span",{className:"s-moving-signal-mark",children:e.harness?n.jsx(I,{harness:e.harness,size:11}):null}),n.jsx("span",{className:"s-moving-signal-where",title:r,children:d}),n.jsx("span",{className:"s-moving-signal-action",title:e.action,children:e.action})]})})}function D({row:e}){return n.jsxs("dl",{className:"s-moving-signal-overlay-meta",children:[n.jsxs("div",{children:[n.jsx("dt",{children:"Agent"}),n.jsx("dd",{children:e.name})]}),e.harness?n.jsxs("div",{children:[n.jsx("dt",{children:"Harness"}),n.jsx("dd",{children:e.harness})]}):null,n.jsxs("div",{children:[n.jsx("dt",{children:"Project"}),n.jsx("dd",{children:e.projectLabel})]}),e.branch?n.jsxs("div",{children:[n.jsx("dt",{children:"Branch"}),n.jsx("dd",{children:e.branch})]}):null,e.sessionAge?n.jsxs("div",{children:[n.jsx("dt",{children:"Session"}),n.jsxs("dd",{children:["new ",e.sessionAge]})]}):null]})}function X({row:e,top:t,left:s}){return n.jsxs("div",{className:"s-moving-signal-hovercard",style:{top:t,left:s},role:"presentation","aria-hidden":"true",children:[n.jsxs("div",{className:"s-moving-signal-overlay-kicker",children:[e.live?n.jsx("span",{className:"s-moving-signal-overlay-live",children:"Live"}):null,n.jsxs("span",{children:[e.lastAge," ago"]}),e.harness?n.jsx(I,{harness:e.harness,size:11}):null,n.jsx("span",{children:e.name})]}),n.jsx("p",{className:"s-moving-signal-overlay-action",children:e.action}),e.nowLine?n.jsxs("p",{className:"s-moving-signal-overlay-now",title:e.nowLine,children:[n.jsx("span",{className:"s-moving-signal-overlay-now-label",children:"Now"}),e.nowLine]}):null,n.jsx(D,{row:e})]})}function Y({row:e,onClose:t,navigate:s}){const i=G(),a=o=>d=>{d.stopPropagation(),o&&(t(),s(o))},c=o=>{i.onKeyDown(o),o.key==="Escape"&&(o.stopPropagation(),t())};return n.jsx("div",{className:"s-moving-signal-overlay-root",role:"presentation",onClick:t,children:n.jsxs("aside",{ref:i.ref,id:"home-moving-signal-overlay",className:"s-moving-signal-overlay",role:"dialog","aria-modal":"true","aria-label":`Details · ${e.name}`,tabIndex:-1,onKeyDown:c,onClick:o=>o.stopPropagation(),children:[n.jsxs("header",{className:"s-moving-signal-overlay-head",children:[n.jsxs("div",{className:"s-moving-signal-overlay-kicker",children:[e.live?n.jsx("span",{className:"s-moving-signal-overlay-live",children:"Live"}):null,n.jsxs("span",{children:[e.lastAge," ago"]})]}),n.jsx("button",{type:"button",className:"s-moving-signal-overlay-close","aria-label":"Close",onClick:t,children:"✕"})]}),n.jsxs("div",{className:"s-moving-signal-overlay-body",children:[n.jsx("p",{className:"s-moving-signal-overlay-action",children:e.action}),e.nowLine?n.jsxs("p",{className:"s-moving-signal-overlay-now",title:e.nowLine,children:[n.jsx("span",{className:"s-moving-signal-overlay-now-label",children:"Now"}),e.nowLine]}):null,n.jsx(D,{row:e})]}),n.jsxs("div",{className:"s-moving-signal-overlay-actions",children:[n.jsx("button",{type:"button",className:"s-moving-signal-overlay-primary",disabled:!e.observeRoute,onClick:a(e.observeRoute),children:"Observe"}),n.jsx("button",{type:"button",className:"s-moving-signal-overlay-ghost",disabled:!e.profileRoute,onClick:a(e.profileRoute),children:"Profile"}),n.jsx("button",{type:"button",className:"s-moving-signal-overlay-ghost",disabled:!e.terminalEnabled||!e.terminalRoute,onClick:a(e.terminalRoute),children:"Terminal"}),n.jsx("button",{type:"button",className:"s-moving-signal-overlay-ghost",disabled:!e.peekEnabled||!e.peekRoute,onClick:a(e.peekRoute),children:"Peek"})]})]})})}export{ge as HomeMovingSignalList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as _,j as s}from"./index-BZovGpDk.js";import{A as ee}from"./AgentAvatar-CneOa70z.js";import{H as se}from"./HarnessMark-DrE57dUq.js";import{a as te}from"./colors-BtO5_zlx.js";import{f as ne}from"./text-DsBWV_4k.js";import{n as x}from"./time-Dhsh_2EG.js";import{l as ae,h as le,b as re,d as G}from"./home-live-action-BkqGLVRY.js";import{a as ie}from"./agent-lane-card-model-q4cwzLX4.js";import{HomeNowNanoStat as A,HomeNowFilesPanel as oe}from"./home-now-card-nano-C06GMiwD.js";import"./SpriteAvatar-CEYdCzem.js";import"./agent-identity-BxCsXnDp.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./context-budget-DX_fwUs3.js";import"./lane-observe-BA3g9aVd.js";import"./tail-display-BRcJltQa.js";import"./lane-edit-display-C_Aujldz.js";import"./bash-format-BRV5C6Gv.js";import"./agent-lane-preview-C33Dwpn7.js";import"./lane-ask-display-B6iCAVcd.js";import"./agent-lanes-model-VYQ5a68i.js";import"./terminal-sessions-AmSgHklm.js";import"./api-h5zurxmi.js";function ce(e,t,a,n){const l={id:e.id,agent:e,source:e.id.startsWith("native:")?"native":"scout",observe:t??null,lastActiveAt:n};return ie(l,{isLive:a,nowMs:n})}function de(e){return e.stats.tools>0||e.stats.files>0||e.context!==null||e.pops.edits.rows.length>0||e.pops.files.rows.length>0}function ue(e,t=140){const a=(e??"").replace(/\s+/g," ").trim();return a?a.length>t?`${a.slice(0,t-1)}…`:a:""}function me(e,t=118){if(e.length<=t)return e;const a=Math.ceil((t-1)*.58),n=Math.floor((t-1)*.42);return`${e.slice(0,a).trimEnd()}…${e.slice(e.length-n).trimStart()}`}function Q(e){return e?e.startsWith("/Users/")?`~/${e.split("/").slice(3).join("/")}`:(e.startsWith("~/"),e):null}function pe(e){const t=e?.trim();if(!t)return null;const a=t.endsWith(".jsonl")?t.slice(0,-6):t,n=a.split(/[/:]/u).filter(Boolean).pop()??a;return/^[0-9a-f]{8}-[0-9a-f]{4}-/iu.test(n)?`${n.slice(0,8)}…${n.slice(-6)}`:me(n,22)}function he(e){const t=e?.trim();return t?t.replace(/^claude-/iu,"").replace(/^gpt-/iu,"gpt ").replace(/\s*\([^)]*\)\s*/u," ").replace(/\s+/g," ").trim():null}function fe(e){const t=e?.trim();return t?t.replace(/\.local$/iu,"").replace(/-local$/iu,""):null}function W(e,t){const a=x(e);if(a===null)return"—";const n=Math.max(0,Math.floor((t-a)/1e3));if(n<60)return`${n}s`;const l=Math.floor(n/60);if(l<60)return`${l}m`;const d=Math.floor(l/60);return d<48?`${d}h`:`${Math.floor(d/24)}d`}function xe(e,t){const a=e?.summary?.trim();if(!a)return null;const n=a.replace(/\s+/g," ");return!n||n===t||/acknowledged via|queued for local execution|received the message/i.test(n)?null:{line:ue(n,120)}}function we(e,t,a=!1){const n=x(t?.startedAt)??x(t?.acknowledgedAt)??x(t?.updatedAt)??null,l=x(e.updatedAt),d=t?.task?.trim()||e.project||Q(e.cwd)||`Working in ${e.project??"workspace"}`,c=t?.status??"working",u=te(e.state)||a,m=c==="queued"?"queued":u?"working":"idle";return{agentId:e.id,agentName:e.name,harness:t?.harness??e.harness,model:e.model,branch:e.branch??"main",task:{title:d,openedAt:n},execution:{state:m,lastEventAt:l},checkpoint:xe(t,d)}}function je(e){return e.execution.state==="queued"?"queued":e.execution.state==="idle"?"idle":"live"}function ke(e,t){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),t())}function B(e){e.stopPropagation()}function be(e){switch(e){case"spotlight":return 40;case"duo":return 32;case"strip":return 28;case"dense":return 24}}function Ne(e){switch(e){case"spotlight":return 22;case"duo":return 20;case"strip":return 18;case"dense":return 16}}function ve(e,t){return t?e==="spotlight"||e==="duo":!1}function ge(e){switch(e){case"spotlight":return{w:96,h:20};case"duo":return{w:88,h:20};case"strip":return{w:72,h:18};case"dense":return{w:64,h:16}}}function ye(e,t){if(e.length<=t)return e;const a=new Array(t).fill(0);for(let n=0;n<e.length;n+=1){const l=Math.min(t-1,Math.floor(n/e.length*t));a[l]+=e[n]}return a}function z({pulse:e,layout:t}){const{w:a,h:n}=ge(t),l=ye(e.counts,Math.max(5,Math.round(a/8))),d=l.length>0?Math.max(...l):0;if(d<=0||l.length<2)return null;const c=2,u=a/l.length,m=Math.max(1.5,u-c),N=2,v=n-1,o=l.length-1;return s.jsx("span",{className:"s-now-card-pulse",style:{width:a,height:n},title:"activity · last 30m","aria-hidden":"true",children:s.jsx("svg",{viewBox:`0 0 ${a} ${n}`,preserveAspectRatio:"none",children:l.map((r,j)=>{if(r<=0)return null;const g=Math.min(v,Math.max(N,r/d*v)),k=j*u+(u-m)/2;return s.jsx("rect",{x:k.toFixed(2),y:(n-g).toFixed(2),width:m.toFixed(2),height:g.toFixed(2),fill:"var(--accent)",fillOpacity:j===o?"0.95":"0.62"},j)})})})}function Ue({agent:e,ask:t,context:a,observeData:n,observeLive:l=!1,lastActivityAt:d,layout:c,nowMs:u,navigate:m,enter:N=!1,enterIndex:v=0}){const o=we(e,t,l),r=_.useMemo(()=>ce(e,n,l,u),[e,n,l,u]),j=de(r),g=ve(c,j),k=je(o),H=e.projectRoot??e.cwd??void 0,R=Q(H)??"no workspace",M=o.branch??"no branch",b=r.harness??o.harness??null,y=r.model??he(a?.model??o.model),q=pe(a?.sessionId??e.harnessSessionId),h=r.context??a?.contextPct??null,I=fe(e.homeNodeName??e.nodeQualifier),D=x(n?.metadata?.session?.sessionStart),K=D!==null?W(D,u):null,p=n?.pulse??null,L=!!(p&&p.counts.some(i=>i>0)),U=o.task.openedAt?W(o.task.openedAt,u):"new",P=x(d)??o.execution.lastEventAt,S=W(P,u),E=ae({observeData:n,checkpoint:o.checkpoint?.line??null,fallbackTask:o.task.title,observeLive:l,skipLifecycleTokens:!0}),J=le(e),X=re(e),w=c==="dense",T=c==="strip",Y=r.pops.edits.rows.length>0?r.pops.edits:r.pops.files,Z=r.pops.edits.rows.length>0?"Files modified":"Files touched",O=[{key:"root",text:R,title:H,mono:!0},{key:"branch",text:M,title:M,mono:!0}];e.role&&O.push({key:"role",text:ne(e.role)??e.role});const f=[{key:"last",label:"last activity",value:S,inlineValue:`last ${S}`,title:P!==null?`Last activity ${S} ago`:"Last activity unknown",tone:P!==null?"work":"dim"},{key:"turn",label:"turn",value:U,tone:o.task.openedAt?"work":"dim"}];h!==null&&f.push({key:"context",label:"context",value:`${h}%`,tone:h>=80?"warn":"work"}),K&&f.push({key:"uptime",label:"uptime",value:K,tone:"work"}),q&&!w&&f.push({key:"session",label:"session",value:q}),I&&!w&&f.push({key:"machine",label:"machine",value:I});const V=G(e,"observe"),$=i=>F=>{B(F),m(G(e,i))};return s.jsxs("article",{className:`s-now-card s-now-card--${k} s-now-card--layout-${c}${N?" s-now-card--enter":""}`,style:N?{"--enter-delay":`${v*45}ms`}:void 0,onClick:()=>m(V),onKeyDown:i=>ke(i,()=>m(V)),role:"button",tabIndex:0,children:[s.jsxs("div",{className:"s-now-card-top",children:[s.jsx(ee,{agent:e,placement:"row",size:be(c),className:"s-now-card-avatar"}),s.jsxs("div",{className:"s-now-card-ident",children:[s.jsx("span",{className:"s-now-card-name",title:o.agentName,children:o.agentName}),!w&&!T?s.jsxs("span",{className:`s-now-card-live s-now-card-live--${k}`,children:[s.jsx("span",{className:"s-now-card-live-dot","aria-hidden":"true"}),k]}):null]}),b||y?s.jsxs("div",{className:"s-now-card-runtime",title:y??b??void 0,children:[b?s.jsx(se,{harness:b,size:Ne(c),className:"s-now-card-hmark"}):null,y?s.jsx("span",{className:"s-now-card-model",children:y}):null]}):null]}),w?s.jsx("div",{className:"s-now-card-idline s-now-card-idline--dense",children:[b,R,M].filter(Boolean).join(" · ")}):s.jsx("div",{className:"s-now-card-idline",children:O.map((i,F)=>s.jsxs("span",{className:"s-now-card-idgroup",children:[F>0?s.jsx("span",{className:"s-now-card-idsep","aria-hidden":"true",children:"·"}):null,s.jsx("span",{className:`s-now-card-idpart${i.mono?" s-now-card-idpart--mono":""}`,title:i.title,children:i.text})]},i.key))}),E?s.jsxs("div",{className:`s-now-card-action${l?" s-now-card-action--live":""}`,children:[s.jsx("span",{className:"s-now-card-action-caret","aria-hidden":"true",children:"›"}),s.jsx("span",{className:"s-now-card-action-text",title:E,children:E}),l?s.jsx("span",{className:"s-now-card-action-cursor","aria-hidden":"true"}):null]}):null,w&&L&&p?s.jsx("div",{className:"s-now-card-pulse-cell",children:s.jsx(z,{pulse:p,layout:c})}):null,g?s.jsxs("div",{className:"s-now-card-detail",onClick:B,children:[s.jsxs("div",{className:"s-now-card-nanos",children:[r.stats.tools>0?s.jsxs(s.Fragment,{children:[s.jsx(A,{value:r.stats.tools,label:"tools",group:r.pops.tools}),r.stats.edits>0?s.jsx(A,{value:r.stats.edits,label:"edits",group:r.pops.edits}):null,r.stats.reads>0?s.jsx(A,{value:r.stats.reads,label:"reads",group:r.pops.reads}):null,r.stats.files>0?s.jsx(A,{value:r.stats.files,label:"files",group:r.pops.files}):null]}):s.jsx("span",{className:"s-now-card-nanos-empty",children:"no tool activity yet"}),L&&p?s.jsx(z,{pulse:p,layout:c}):null,h!==null?s.jsxs("span",{className:"s-now-card-ctx",title:`Context window ${h}% used`,children:[s.jsx("span",{className:"s-now-card-ctx-gauge","aria-hidden":"true",children:s.jsx("span",{className:"s-now-card-ctx-fill",style:{width:`${h}%`}})}),s.jsxs("span",{className:"s-now-card-ctx-val",children:[h,"%"]}),s.jsx("span",{className:"s-now-card-ctx-label",children:"ctx"})]}):null]}),s.jsx(oe,{label:Z,group:Y})]}):null,!w&&!T?s.jsx("div",{className:"s-now-card-metrics",style:{gridTemplateColumns:`repeat(${f.length}, minmax(0, 1fr))`},"aria-label":`${o.agentName} signals`,children:f.map(i=>s.jsx($e,{label:i.label,value:i.value,tone:i.tone,title:i.title},i.key))}):s.jsxs("div",{className:"s-now-card-metrics s-now-card-metrics--inline","aria-label":`${o.agentName} signals`,children:[T&&L&&p?s.jsx(z,{pulse:p,layout:c}):null,f.map(i=>s.jsx("span",{className:`s-now-card-metric-inline s-now-card-metric-inline--${i.tone??"dim"}`,title:i.title,children:i.inlineValue??i.value},i.key))]}),s.jsxs("div",{className:"s-now-card-actions",onClick:B,children:[s.jsx(C,{label:"Profile",onClick:$("profile")}),s.jsx(C,{label:"Observe",onClick:$("observe"),primary:!0}),s.jsx(C,{label:"Terminal",onClick:$("terminal"),disabled:!X}),s.jsx(C,{label:"Peek",onClick:$("peek"),disabled:!J})]})]})}function C({label:e,onClick:t,primary:a=!1,disabled:n=!1}){return s.jsx("button",{type:"button",className:`s-now-card-action-btn${a?" s-now-card-action-btn--primary":""}`,onClick:t,disabled:n,"aria-label":e,children:e})}function $e({label:e,value:t,tone:a="dim",title:n}){return s.jsxs("span",{className:`s-metric-tile s-metric-tile--${a}`,title:n,children:[s.jsx("strong",{children:t}),s.jsx("span",{children:e})]})}export{Ue as NowCard};
|
|
1
|
+
import{r as _,j as s}from"./index-DmFAhGPj.js";import{A as ee}from"./AgentAvatar-D8ZtMluU.js";import{H as se}from"./HarnessMark-BPAphNjx.js";import{a as te}from"./colors-BtO5_zlx.js";import{f as ne}from"./text-DsBWV_4k.js";import{n as x}from"./time-Dhsh_2EG.js";import{l as ae,h as le,b as re,d as G}from"./home-live-action-BkqGLVRY.js";import{a as ie}from"./agent-lane-card-model-q4cwzLX4.js";import{HomeNowNanoStat as A,HomeNowFilesPanel as oe}from"./home-now-card-nano-y1EhBvVL.js";import"./SpriteAvatar-DS6Tmyua.js";import"./agent-identity-BxCsXnDp.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./context-budget-DX_fwUs3.js";import"./lane-observe-BA3g9aVd.js";import"./tail-display-BRcJltQa.js";import"./lane-edit-display-C_Aujldz.js";import"./bash-format-BRV5C6Gv.js";import"./agent-lane-preview-C33Dwpn7.js";import"./lane-ask-display-B6iCAVcd.js";import"./agent-lanes-model-VYQ5a68i.js";import"./terminal-sessions-AmSgHklm.js";import"./api-h5zurxmi.js";function ce(e,t,a,n){const l={id:e.id,agent:e,source:e.id.startsWith("native:")?"native":"scout",observe:t??null,lastActiveAt:n};return ie(l,{isLive:a,nowMs:n})}function de(e){return e.stats.tools>0||e.stats.files>0||e.context!==null||e.pops.edits.rows.length>0||e.pops.files.rows.length>0}function ue(e,t=140){const a=(e??"").replace(/\s+/g," ").trim();return a?a.length>t?`${a.slice(0,t-1)}…`:a:""}function me(e,t=118){if(e.length<=t)return e;const a=Math.ceil((t-1)*.58),n=Math.floor((t-1)*.42);return`${e.slice(0,a).trimEnd()}…${e.slice(e.length-n).trimStart()}`}function Q(e){return e?e.startsWith("/Users/")?`~/${e.split("/").slice(3).join("/")}`:(e.startsWith("~/"),e):null}function pe(e){const t=e?.trim();if(!t)return null;const a=t.endsWith(".jsonl")?t.slice(0,-6):t,n=a.split(/[/:]/u).filter(Boolean).pop()??a;return/^[0-9a-f]{8}-[0-9a-f]{4}-/iu.test(n)?`${n.slice(0,8)}…${n.slice(-6)}`:me(n,22)}function he(e){const t=e?.trim();return t?t.replace(/^claude-/iu,"").replace(/^gpt-/iu,"gpt ").replace(/\s*\([^)]*\)\s*/u," ").replace(/\s+/g," ").trim():null}function fe(e){const t=e?.trim();return t?t.replace(/\.local$/iu,"").replace(/-local$/iu,""):null}function W(e,t){const a=x(e);if(a===null)return"—";const n=Math.max(0,Math.floor((t-a)/1e3));if(n<60)return`${n}s`;const l=Math.floor(n/60);if(l<60)return`${l}m`;const d=Math.floor(l/60);return d<48?`${d}h`:`${Math.floor(d/24)}d`}function xe(e,t){const a=e?.summary?.trim();if(!a)return null;const n=a.replace(/\s+/g," ");return!n||n===t||/acknowledged via|queued for local execution|received the message/i.test(n)?null:{line:ue(n,120)}}function we(e,t,a=!1){const n=x(t?.startedAt)??x(t?.acknowledgedAt)??x(t?.updatedAt)??null,l=x(e.updatedAt),d=t?.task?.trim()||e.project||Q(e.cwd)||`Working in ${e.project??"workspace"}`,c=t?.status??"working",u=te(e.state)||a,m=c==="queued"?"queued":u?"working":"idle";return{agentId:e.id,agentName:e.name,harness:t?.harness??e.harness,model:e.model,branch:e.branch??"main",task:{title:d,openedAt:n},execution:{state:m,lastEventAt:l},checkpoint:xe(t,d)}}function je(e){return e.execution.state==="queued"?"queued":e.execution.state==="idle"?"idle":"live"}function ke(e,t){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),t())}function B(e){e.stopPropagation()}function be(e){switch(e){case"spotlight":return 40;case"duo":return 32;case"strip":return 28;case"dense":return 24}}function Ne(e){switch(e){case"spotlight":return 22;case"duo":return 20;case"strip":return 18;case"dense":return 16}}function ve(e,t){return t?e==="spotlight"||e==="duo":!1}function ge(e){switch(e){case"spotlight":return{w:96,h:20};case"duo":return{w:88,h:20};case"strip":return{w:72,h:18};case"dense":return{w:64,h:16}}}function ye(e,t){if(e.length<=t)return e;const a=new Array(t).fill(0);for(let n=0;n<e.length;n+=1){const l=Math.min(t-1,Math.floor(n/e.length*t));a[l]+=e[n]}return a}function z({pulse:e,layout:t}){const{w:a,h:n}=ge(t),l=ye(e.counts,Math.max(5,Math.round(a/8))),d=l.length>0?Math.max(...l):0;if(d<=0||l.length<2)return null;const c=2,u=a/l.length,m=Math.max(1.5,u-c),N=2,v=n-1,o=l.length-1;return s.jsx("span",{className:"s-now-card-pulse",style:{width:a,height:n},title:"activity · last 30m","aria-hidden":"true",children:s.jsx("svg",{viewBox:`0 0 ${a} ${n}`,preserveAspectRatio:"none",children:l.map((r,j)=>{if(r<=0)return null;const g=Math.min(v,Math.max(N,r/d*v)),k=j*u+(u-m)/2;return s.jsx("rect",{x:k.toFixed(2),y:(n-g).toFixed(2),width:m.toFixed(2),height:g.toFixed(2),fill:"var(--accent)",fillOpacity:j===o?"0.95":"0.62"},j)})})})}function Ue({agent:e,ask:t,context:a,observeData:n,observeLive:l=!1,lastActivityAt:d,layout:c,nowMs:u,navigate:m,enter:N=!1,enterIndex:v=0}){const o=we(e,t,l),r=_.useMemo(()=>ce(e,n,l,u),[e,n,l,u]),j=de(r),g=ve(c,j),k=je(o),H=e.projectRoot??e.cwd??void 0,R=Q(H)??"no workspace",M=o.branch??"no branch",b=r.harness??o.harness??null,y=r.model??he(a?.model??o.model),q=pe(a?.sessionId??e.harnessSessionId),h=r.context??a?.contextPct??null,I=fe(e.homeNodeName??e.nodeQualifier),D=x(n?.metadata?.session?.sessionStart),K=D!==null?W(D,u):null,p=n?.pulse??null,L=!!(p&&p.counts.some(i=>i>0)),U=o.task.openedAt?W(o.task.openedAt,u):"new",P=x(d)??o.execution.lastEventAt,S=W(P,u),E=ae({observeData:n,checkpoint:o.checkpoint?.line??null,fallbackTask:o.task.title,observeLive:l,skipLifecycleTokens:!0}),J=le(e),X=re(e),w=c==="dense",T=c==="strip",Y=r.pops.edits.rows.length>0?r.pops.edits:r.pops.files,Z=r.pops.edits.rows.length>0?"Files modified":"Files touched",O=[{key:"root",text:R,title:H,mono:!0},{key:"branch",text:M,title:M,mono:!0}];e.role&&O.push({key:"role",text:ne(e.role)??e.role});const f=[{key:"last",label:"last activity",value:S,inlineValue:`last ${S}`,title:P!==null?`Last activity ${S} ago`:"Last activity unknown",tone:P!==null?"work":"dim"},{key:"turn",label:"turn",value:U,tone:o.task.openedAt?"work":"dim"}];h!==null&&f.push({key:"context",label:"context",value:`${h}%`,tone:h>=80?"warn":"work"}),K&&f.push({key:"uptime",label:"uptime",value:K,tone:"work"}),q&&!w&&f.push({key:"session",label:"session",value:q}),I&&!w&&f.push({key:"machine",label:"machine",value:I});const V=G(e,"observe"),$=i=>F=>{B(F),m(G(e,i))};return s.jsxs("article",{className:`s-now-card s-now-card--${k} s-now-card--layout-${c}${N?" s-now-card--enter":""}`,style:N?{"--enter-delay":`${v*45}ms`}:void 0,onClick:()=>m(V),onKeyDown:i=>ke(i,()=>m(V)),role:"button",tabIndex:0,children:[s.jsxs("div",{className:"s-now-card-top",children:[s.jsx(ee,{agent:e,placement:"row",size:be(c),className:"s-now-card-avatar"}),s.jsxs("div",{className:"s-now-card-ident",children:[s.jsx("span",{className:"s-now-card-name",title:o.agentName,children:o.agentName}),!w&&!T?s.jsxs("span",{className:`s-now-card-live s-now-card-live--${k}`,children:[s.jsx("span",{className:"s-now-card-live-dot","aria-hidden":"true"}),k]}):null]}),b||y?s.jsxs("div",{className:"s-now-card-runtime",title:y??b??void 0,children:[b?s.jsx(se,{harness:b,size:Ne(c),className:"s-now-card-hmark"}):null,y?s.jsx("span",{className:"s-now-card-model",children:y}):null]}):null]}),w?s.jsx("div",{className:"s-now-card-idline s-now-card-idline--dense",children:[b,R,M].filter(Boolean).join(" · ")}):s.jsx("div",{className:"s-now-card-idline",children:O.map((i,F)=>s.jsxs("span",{className:"s-now-card-idgroup",children:[F>0?s.jsx("span",{className:"s-now-card-idsep","aria-hidden":"true",children:"·"}):null,s.jsx("span",{className:`s-now-card-idpart${i.mono?" s-now-card-idpart--mono":""}`,title:i.title,children:i.text})]},i.key))}),E?s.jsxs("div",{className:`s-now-card-action${l?" s-now-card-action--live":""}`,children:[s.jsx("span",{className:"s-now-card-action-caret","aria-hidden":"true",children:"›"}),s.jsx("span",{className:"s-now-card-action-text",title:E,children:E}),l?s.jsx("span",{className:"s-now-card-action-cursor","aria-hidden":"true"}):null]}):null,w&&L&&p?s.jsx("div",{className:"s-now-card-pulse-cell",children:s.jsx(z,{pulse:p,layout:c})}):null,g?s.jsxs("div",{className:"s-now-card-detail",onClick:B,children:[s.jsxs("div",{className:"s-now-card-nanos",children:[r.stats.tools>0?s.jsxs(s.Fragment,{children:[s.jsx(A,{value:r.stats.tools,label:"tools",group:r.pops.tools}),r.stats.edits>0?s.jsx(A,{value:r.stats.edits,label:"edits",group:r.pops.edits}):null,r.stats.reads>0?s.jsx(A,{value:r.stats.reads,label:"reads",group:r.pops.reads}):null,r.stats.files>0?s.jsx(A,{value:r.stats.files,label:"files",group:r.pops.files}):null]}):s.jsx("span",{className:"s-now-card-nanos-empty",children:"no tool activity yet"}),L&&p?s.jsx(z,{pulse:p,layout:c}):null,h!==null?s.jsxs("span",{className:"s-now-card-ctx",title:`Context window ${h}% used`,children:[s.jsx("span",{className:"s-now-card-ctx-gauge","aria-hidden":"true",children:s.jsx("span",{className:"s-now-card-ctx-fill",style:{width:`${h}%`}})}),s.jsxs("span",{className:"s-now-card-ctx-val",children:[h,"%"]}),s.jsx("span",{className:"s-now-card-ctx-label",children:"ctx"})]}):null]}),s.jsx(oe,{label:Z,group:Y})]}):null,!w&&!T?s.jsx("div",{className:"s-now-card-metrics",style:{gridTemplateColumns:`repeat(${f.length}, minmax(0, 1fr))`},"aria-label":`${o.agentName} signals`,children:f.map(i=>s.jsx($e,{label:i.label,value:i.value,tone:i.tone,title:i.title},i.key))}):s.jsxs("div",{className:"s-now-card-metrics s-now-card-metrics--inline","aria-label":`${o.agentName} signals`,children:[T&&L&&p?s.jsx(z,{pulse:p,layout:c}):null,f.map(i=>s.jsx("span",{className:`s-now-card-metric-inline s-now-card-metric-inline--${i.tone??"dim"}`,title:i.title,children:i.inlineValue??i.value},i.key))]}),s.jsxs("div",{className:"s-now-card-actions",onClick:B,children:[s.jsx(C,{label:"Profile",onClick:$("profile")}),s.jsx(C,{label:"Observe",onClick:$("observe"),primary:!0}),s.jsx(C,{label:"Terminal",onClick:$("terminal"),disabled:!X}),s.jsx(C,{label:"Peek",onClick:$("peek"),disabled:!J})]})]})}function C({label:e,onClick:t,primary:a=!1,disabled:n=!1}){return s.jsx("button",{type:"button",className:`s-now-card-action-btn${a?" s-now-card-action-btn--primary":""}`,onClick:t,disabled:n,"aria-label":e,children:e})}function $e({label:e,value:t,tone:a="dim",title:n}){return s.jsxs("span",{className:`s-metric-tile s-metric-tile--${a}`,title:n,children:[s.jsx("strong",{children:t}),s.jsx("span",{children:e})]})}export{Ue as NowCard};
|
package/dist/client/assets/{home-now-card-nano-C06GMiwD.js → home-now-card-nano-y1EhBvVL.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s}from"./index-
|
|
1
|
+
import{j as s}from"./index-DmFAhGPj.js";function d({value:l,label:a,group:n}){const c=!!(n&&n.rows.length>0);return s.jsxs("span",{className:`s-now-card-nano${c?" s-now-card-nano--pop":""}`,children:[s.jsx("span",{className:"s-now-card-nano-val",children:l}),s.jsx("span",{className:"s-now-card-nano-label",children:a}),c?s.jsxs("span",{className:"s-now-card-nano-pop",role:"tooltip",children:[s.jsxs("span",{className:"s-now-card-nano-pop-h",children:[s.jsx("span",{className:"s-now-card-nano-pop-title",children:a}),s.jsx("span",{className:"s-now-card-nano-pop-count",children:n.more>0?`top ${n.rows.length} · ${l}`:l})]}),s.jsxs("span",{className:"s-now-card-nano-pop-list",children:[n.rows.map((e,o)=>s.jsxs("span",{className:"s-now-card-nano-pop-row",title:e.full??e.text,children:[s.jsx("span",{className:`s-now-card-nano-mark s-now-card-nano-mark--${e.tone}`,children:e.mark}),s.jsx("span",{className:"s-now-card-nano-pop-text",children:e.text})]},`${o}:${e.full||e.text}`)),n.more>0?s.jsxs("span",{className:"s-now-card-nano-pop-more",children:["+",n.more," more"]}):null]})]}):null]})}function t({label:l,group:a}){return a.rows.length===0?null:s.jsxs("div",{className:"s-now-card-files","aria-label":l,children:[s.jsxs("div",{className:"s-now-card-files-head",children:[s.jsx("span",{className:"s-now-card-files-title",children:l}),s.jsx("span",{className:"s-now-card-files-count",children:a.rows.length+a.more})]}),s.jsxs("div",{className:"s-now-card-files-list",children:[a.rows.map((n,c)=>s.jsxs("span",{className:"s-now-card-files-row",title:n.full??n.text,children:[s.jsx("span",{className:`s-now-card-nano-mark s-now-card-nano-mark--${n.tone}`,children:n.mark}),s.jsx("span",{className:"s-now-card-files-text",children:n.text})]},`${c}:${n.full||n.text}`)),a.more>0?s.jsxs("span",{className:"s-now-card-files-row s-now-card-files-row--more",children:["+",a.more," more"]}):null]})]})}export{t as HomeNowFilesPanel,d as HomeNowNanoStat};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as s,j as p}from"./index-
|
|
1
|
+
import{r as s,j as p}from"./index-DmFAhGPj.js";import{b as k,aa as N,s as O,c as A,u as b}from"./router-Cn_s9IGH.js";import{a as E}from"./api-h5zurxmi.js";import{o as L,i as M}from"./surface-activity-B1rgWB1i.js";import{e as R}from"./NewChatComposer-Hd7pI5Ac.js";import{u as v}from"./Provider-cJCdHAxu.js";import{l as T}from"./mesh-buckets-CfAukILK.js";import{S as _}from"./server-BySujhDV.js";import{i as j}from"./keyboard-nav-h1IdakpD.js";import{S as x}from"./scoutbot-BTIErYHo.js";import{p as I,a as $,b as B,S as K,c as W}from"./secondaryNavConfig-Dw3gS1jR.js";function P(e){return e?e.replace(/^https?:\/\//,"").split("/")[0].split(":")[0].split(".")[0]||e:""}function C(e){return P(e?.hostName)||e?.name||"machine"}function g(e,a,o,i){const t=a?.trim();!t||e.has(t)||e.set(t,{id:t,label:o?.trim()||t,group:i})}function D(e,a,o){const i=new Map;e?.localNode?.id&&g(i,e.localNode.id,C(e.localNode),"local");for(const t of Object.values(e?.nodes??{}))g(i,t.id,C(t),t.id===e?.localNode?.id?"local":"mesh");for(const t of a)g(i,t.authorityNodeId,t.authorityNodeName??t.authorityNodeId,"agent"),g(i,t.homeNodeId,t.homeNodeName??t.homeNodeId,"agent");return o&&g(i,o,o,"selected"),Array.from(i.values()).sort((t,r)=>{const l=t.group==="local"?0:t.group==="mesh"?1:t.group==="agent"?2:3,u=r.group==="local"?0:r.group==="mesh"?1:r.group==="agent"?2:3;return l!==u?l-u:t.label.localeCompare(r.label)})}function F({variant:e="bar"}){const{route:a,navigate:o,agents:i}=v(),[t,r]=s.useState(null),[l,u]=s.useState(!1),c=s.useRef(null),n=k(a);s.useEffect(()=>{if(!N(a))return;let m=!1;return E("/api/mesh").then(h=>{m||r(h)}).catch(()=>{m||r(null)}),()=>{m=!0}},[a.view]),s.useEffect(()=>{if(!l)return;const m=S=>{c.current?.contains(S.target)||u(!1)},h=S=>{S.key==="Escape"&&u(!1)};return document.addEventListener("mousedown",m),document.addEventListener("keydown",h),()=>{document.removeEventListener("mousedown",m),document.removeEventListener("keydown",h)}},[l]);const d=s.useMemo(()=>D(t,i,n),[i,t,n]);if(!N(a))return null;const f=n?d.find(m=>m.id===n)?.label??n:"All machines",y=p.jsxs("select",{id:"machine-scope-select",className:"machine-scope-select",value:n??"",onChange:m=>{const h=m.currentTarget.value;o(h?O(a,h):A(a)),u(!1)},title:f,children:[p.jsx("option",{value:"",children:"All machines"}),d.map(m=>p.jsx("option",{value:m.id,children:m.group==="local"?`${m.label} (this machine)`:m.label},m.id))]});return e==="rail"?p.jsxs("div",{className:"machine-scope machine-scope--rail",ref:c,children:[p.jsx("button",{type:"button",className:"machine-scope-rail-trigger","aria-label":`Machine scope: ${f}`,title:`Machine scope: ${f}`,"aria-expanded":l,onClick:()=>u(m=>!m),children:p.jsx(_,{size:16,strokeWidth:1.6,"aria-hidden":!0})}),l?p.jsxs("div",{className:"machine-scope-rail-popover",role:"dialog","aria-label":"Machine scope",children:[p.jsx("label",{className:"machine-scope-label",htmlFor:"machine-scope-select",children:"Scope"}),y]}):null]}):p.jsxs("div",{className:`machine-scope machine-scope--${e}`,children:[p.jsx("label",{className:"machine-scope-label",htmlFor:"machine-scope-select",children:"Scope"}),y]})}const U="C",be=["C"],ge=["⌘","⌥","N"],H="New task";function V(e){return e.key.toLowerCase()==="n"||e.code==="KeyN"}function Y(e){return e.key.toLowerCase()==="c"||e.code==="KeyC"}function Se(e){return j(e.target??null)?!1:Y(e)&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey||V(e)&&!!(e.metaKey||e.ctrlKey)&&!!e.altKey&&!e.shiftKey}const w={inbox:"Home",conversation:"Conversation","agent-info":"Agent","agents-v2":"Projects",messages:"Messages",sessions:"Sessions",terminal:"Terminals",repos:"Repositories","repo-diff":"Diff",harnesses:"Agent Providers",search:"Search",activity:"Activity Log",briefings:"Briefings",mesh:"Network","mesh-ops":"Mesh Ops",broker:"Dispatch",settings:"Settings",work:"Work",follow:"Follow",code:"Code Browser",ops:"Operations",voice:"Live Voice"};function Ee(e){if(e.view==="settings"&&e.section==="agents")return"Configuration";switch(e.view){case"conversation":case"agent-info":case"repos":case"repo-diff":case"harnesses":case"mesh":case"mesh-ops":case"broker":case"work":case"code":case"briefings":case"activity":case"follow":case"terminal":case"voice":return w[e.view]??e.view;case"ops":return e.mode==="tail"?"Live Activity":e.mode==="lanes"?"Agent Lanes":e.mode==="atop"?"Runtime Monitor":e.mode==="plan"?"Plans":e.mode==="mission"||e.mode==="issues"||e.mode===void 0?"Mission Control":w.ops;case"settings":return"Settings";default:return null}}const G=I(),q={...w,ops:"System"},z=new Set(["ops","broker","repos","harnesses","mesh","mesh-ops","terminal","search","code","work","follow","settings","voice"]);function J(e){return e.view==="settings"&&e.section==="agents"?!1:z.has(e.view)}function Q(){return G}function X(e){if(e.view==="settings"&&e.section==="agents")return"agents";switch(e.view){case"agents-v2":case"agent-info":return"agents";case"sessions":return"sessions";case"conversation":case"messages":return"chat";case"ops":case"broker":case"repos":case"harnesses":case"mesh":case"mesh-ops":case"terminal":case"search":case"code":case"work":case"follow":case"settings":case"voice":return"system";default:return"home"}}function Z(e){if(e.view==="settings"&&e.section==="agents")return"Configuration";switch(e.view){case"conversation":case"agent-info":case"repos":case"harnesses":case"mesh":case"mesh-ops":case"broker":case"work":return q[e.view]??e.view;default:return null}}function ee({className:e="scout-nav-tabs",brandTag:a,items:o,activeKey:i,breadcrumb:t,navigate:r}){return s.createElement("div",{className:e},a&&s.createElement("span",{className:"scout-nav-scope-tag"},a),o.map(({key:l,label:u,route:c})=>s.createElement("button",{key:l,className:`scout-nav-tab${i===l?" active":""}`,onClick:()=>r(c)},u)),t&&s.createElement("span",{className:"scout-nav-slash"},"/"),t&&s.createElement("span",{className:"scout-nav-crumb"},t))}const te=$(),se=B();function ne(){const{route:e,navigate:a}=v(),o=b("ops.control",!0),i=b("surface.mesh-ops",!1),[t,r]=s.useState(!1),l=s.useRef(null);s.useEffect(()=>{if(!t)return;const c=d=>{d.target instanceof Node&&l.current?.contains(d.target)||r(!1)},n=d=>{d.key==="Escape"&&r(!1)};return window.addEventListener("mousedown",c,!0),window.addEventListener("keydown",n),()=>{window.removeEventListener("mousedown",c,!0),window.removeEventListener("keydown",n)}},[t]);const u=c=>s.createElement("button",{key:c.key,type:"button",role:"menuitem",className:`scout-nav-system-item${c.active(e)?" active":""}`,onClick:()=>{r(!1),a(c.route)}},c.label);return s.createElement("div",{className:"scout-nav-system",ref:l},s.createElement("button",{type:"button",className:`scout-nav-action scout-nav-action--system${J(e)?" active":""}`,"aria-haspopup":"menu","aria-expanded":t,title:"System",onClick:()=>r(c=>!c)},s.createElement("span",null,"System"),s.createElement("span",{className:"scout-nav-system-caret","aria-hidden":!0},"▾")),t&&s.createElement("div",{className:"scout-nav-system-menu",role:"menu"},te.map(u),o&&s.createElement("div",{className:"scout-nav-system-divider",role:"separator"}),o&&se.filter(c=>c.capability!=="surface.mesh-ops"||i).map(u)))}function we(){const{navigate:e,agents:a,reload:o,applyScoutbotUiAction:i,openContextCapture:t}=v(),r=b("ops.control",!0),l=b("surface.scoutbot",!0),u=s.useCallback(()=>{i({type:"open-scoutbot",mode:"ask"}),window.dispatchEvent(new CustomEvent(x,{detail:{body:"What's the state of things? Give me a terse ops summary, the biggest risk, and the next action you recommend."}}))},[i]);return s.useMemo(()=>{const c=[{id:"session:new",label:H,action:()=>t(),shortcut:U},...W(e,{opsEnabled:r}),{id:"nav:settings",label:"Open Settings",action:()=>e({view:"settings",section:"appearance"}),shortcut:"Cmd+,"},...l?[{id:"scoutbot:open",label:"Open Scout",action:()=>i({type:"open-scoutbot",mode:"ask"})},{id:"scoutbot:state",label:"Message Scout for State",action:()=>u()},{id:"scoutbot:ops-tail",label:"Scout: Open Ops Tail",action:()=>i({type:"navigate",route:{view:"ops",mode:"tail"}})}]:[],{id:"nav:pair",label:"Pair Device",action:()=>e({view:"settings",section:"devices"})},{id:"scout:reload",label:"Reload Agents",action:()=>{o()}}];for(const n of a)c.push({id:`scout:open:${n.id}`,label:`Open ${n.name}`,action:()=>e({view:"agents-v2",agentId:n.id})}),c.push({id:`scout:message:${n.id}`,label:`Message ${n.name}`,action:()=>{R(n).then(d=>{e({view:"conversation",conversationId:d})}).catch(()=>e({view:"agents-v2",agentId:n.id,tab:"message"}))}});return c},[a,i,u,e,t,r,l,o])}function ae(){const{onlineCount:e,apiConnection:a}=v(),[o,i]=s.useState(null),[t,r]=s.useState(null),l=s.useRef(0),u=s.useCallback(async()=>{const n=++l.current;try{const d=await E("/api/mesh");if(n!==l.current)return;i(d)}catch{if(n!==l.current)return;i(null)}},[]);s.useEffect(()=>{u();const n=()=>{M()&&u()},d=setInterval(n,15e3),f=L(n);return()=>{clearInterval(d),f()}},[u]),s.useEffect(()=>{E("/api/build").then(r).catch(()=>r(null))},[]);const c=(()=>{if(!t)return{label:"dev",title:"Build information unavailable"};const n=t.mode==="production"?"prod":"dev",d=t.branch??"unknown",f=t.commit?` @ ${t.commit}${t.dirty?"*":""}`:"";return{label:`${n} ${d}${f}`,title:[`Mode: ${t.mode}`,`Version: ${t.version??"unknown"}`,`Branch: ${t.branch??"unknown"}`,`Commit: ${t.commit??"unknown"}`,`Dirty: ${t.dirty===null?"unknown":t.dirty?"yes":"no"}`].join(`
|
|
2
2
|
`)}})();return{status:a.status==="offline"?{label:"Scout: OFFLINE",color:"red"}:a.status==="degraded"?{label:"Scout: DEGRADED",color:"amber"}:o===null?{label:"Broker: …",color:"neutral"}:o.health.reachable?{label:"Broker: UP",color:"emerald"}:{label:"Broker: DOWN",color:"red"},activeAgents:{label:"Registered",count:e},mesh:(()=>{const n=T(o);return a.status==="offline"?{label:n,value:"offline",color:"red"}:o===null?{label:n,value:"checking",color:"neutral"}:o.health.reachable?Object.values(o.nodes).filter(f=>f.id!==o.localNode?.id).length>0?{label:n,value:"connected",color:"neutral"}:o.identity.discoverable?{label:n,value:"discoverable",color:"neutral"}:{label:n,value:"local",color:"amber"}:{label:n,value:"offline",color:"neutral"}})(),build:c}}function ye(){return ae().status}function Ne(){const{route:e,navigate:a}=v();return b("nav.sidebar",!1)?null:ee({items:Q(),activeKey:X(e),breadcrumb:Z(e),navigate:a})}function Ce(){const{openSettings:e}=v();return b("nav.sidebar",!1)?null:s.createElement("div",{className:"scout-nav-actions"},s.createElement(ne),s.createElement(F,{variant:"nav"}),s.createElement("button",{onClick:()=>e(),className:"scout-nav-action scout-nav-action--settings",title:"Settings"},s.createElement(K,{size:12,strokeWidth:1.6,"aria-hidden":!0}),s.createElement("span",null,"Settings")))}function ke(){return"panel"}function oe(e){return e.view==="ops"&&e.mode==="lanes"}function Oe(){const{onboarding:e,onboardingSkipped:a,skipOnboarding:o,route:i}=v();if(oe(i))return{active:!1,dismissible:!0};if(!e)return null;if(a||e.needed===!1||e.skippedAt||e.completedAt)return{active:!1,dismissible:!0};const t=!e.hasLocalConfig,r=!e.hasProjectConfig,l=!e.hasOperatorName,u=!e.brokerReachable||!e.hasReadyRuntime;return{active:t||l||r||u,dismissible:!0,onDismiss:o}}export{H as N,ke as a,Ce as b,Ne as c,ye as d,we as e,be as f,ge as g,U as h,Ee as i,ae as j,Se as k,ee as r,Oe as u};
|