@openscout/scout 0.2.96 → 0.2.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (395) hide show
  1. package/README.md +0 -1
  2. package/bin/scoutd +0 -0
  3. package/dist/build-manifest.json +3 -3
  4. package/dist/client/assets/ActivityScreen-sfonf5SR.js +1 -0
  5. package/dist/client/assets/{AddProjectForm-IqOtJfRs.js → AddProjectForm-fXndbzXT.js} +1 -1
  6. package/dist/client/assets/{AgentAvatar-6-KBVKUu.js → AgentAvatar-Dz79iTxB.js} +1 -1
  7. package/dist/client/assets/AgentConfigurationScreen-DDc3udYM.js +1 -0
  8. package/dist/client/assets/AgentDefinitionsWorkspace-DHDS9Pgd.js +1 -0
  9. package/dist/client/assets/{AgentDetailCard-C9rn3Fj5.js → AgentDetailCard-8viaEY8b.js} +1 -1
  10. package/dist/client/assets/AgentFloorView-DuyvyMMj.js +1 -0
  11. package/dist/client/assets/AgentInfoScreen-qntgg2q2.js +1 -0
  12. package/dist/client/assets/{AgentLaneCard-DI2iW9zO.js → AgentLaneCard-Cc9uyfBr.js} +1 -1
  13. package/dist/client/assets/{AgentLaneChrome-D8bARHMx.js → AgentLaneChrome-Dv2lBFoH.js} +1 -1
  14. package/dist/client/assets/{AgentLaneDetailSheet-52un7dKC.js → AgentLaneDetailSheet-CGqtqSHQ.js} +1 -1
  15. package/dist/client/assets/{AgentLaneSummaryResize-CEBjmPTa.js → AgentLaneSummaryResize-Di4u6df2.js} +1 -1
  16. package/dist/client/assets/AgentLanesEmbedScreen-BA6fRwkD.js +1 -0
  17. package/dist/client/assets/{AgentLanesPreflight-q20mTjms.js → AgentLanesPreflight-CCGBArIb.js} +1 -1
  18. package/dist/client/assets/AgentLanesView-96lHsoX7.js +2 -0
  19. package/dist/client/assets/{AgentLiveActions-DrEJDJef.js → AgentLiveActions-DlSKL60c.js} +1 -1
  20. package/dist/client/assets/AgentMasterScreen-DHrMuQ6_.js +1 -0
  21. package/dist/client/assets/{AgentSessions-DCPCG4xb.js → AgentSessions-DV9v34aq.js} +2 -2
  22. package/dist/client/assets/AgentsConsole-DTpVhS67.js +1 -0
  23. package/dist/client/assets/AgentsScreen-hZ4o2I-e.js +1 -0
  24. package/dist/client/assets/AgentsSubnav-Ci7uWM7P.js +1 -0
  25. package/dist/client/assets/{AstronautSuit-DbjQtfD_.js → AstronautSuit-CwB4Dw07.js} +1 -1
  26. package/dist/client/assets/{AtopView-Daq_ob3z.js → AtopView-D7vyQDtE.js} +1 -1
  27. package/dist/client/assets/{BackToPicker-CXZjBRAe.js → BackToPicker-BHicJyfc.js} +1 -1
  28. package/dist/client/assets/BriefingDetailScreen-B-wD_Bot.js +1 -0
  29. package/dist/client/assets/{BriefingsScreen-B5oMTGKv.js → BriefingsScreen-Cn4Mbam9.js} +1 -1
  30. package/dist/client/assets/{BrokerMetadataPanel-BsiU8lTD.js → BrokerMetadataPanel-BJSwU9XZ.js} +1 -1
  31. package/dist/client/assets/BrokerScreen-C8FQ5rlg.js +5 -0
  32. package/dist/client/assets/{CastPicker-_5E5hNUe.js → CastPicker-CkgTalIt.js} +1 -1
  33. package/dist/client/assets/{ChatCollapsedStrip-D-eXhzPf.js → ChatCollapsedStrip-7Wrg8Ge0.js} +1 -1
  34. package/dist/client/assets/{CodeDiffPane-n7W4iGUG.js → CodeDiffPane-DfluIWmO.js} +1 -1
  35. package/dist/client/assets/{CodeProjectPicker-CMsbSTDq.js → CodeProjectPicker-By_Wz9ex.js} +1 -1
  36. package/dist/client/assets/CodeScreen-cLC0tJ4S.js +1 -0
  37. package/dist/client/assets/ConversationComposer-BUIjWMBi.js +1 -0
  38. package/dist/client/assets/ConversationFeedRows-Bx0gFyG_.js +1 -0
  39. package/dist/client/assets/ConversationHeader-Bt2RBj93.js +1 -0
  40. package/dist/client/assets/{ConversationPanels-Dujvnmup.js → ConversationPanels-o6W-cOoU.js} +2 -2
  41. package/dist/client/assets/ConversationScreen-DIU7m_aC.js +2 -0
  42. package/dist/client/assets/{ConversationStatus-DVzSb2Hv.js → ConversationStatus-CTYOywFh.js} +1 -1
  43. package/dist/client/assets/{CrewAvatar-BwXjyg8N.js → CrewAvatar-CZ_faQ_s.js} +1 -1
  44. package/dist/client/assets/CrewWorkspaces-DNX-QQ1h.js +1 -0
  45. package/dist/client/assets/CrewWorkspaces-Diq11KDq.css +1 -0
  46. package/dist/client/assets/{DataTable-Bp8tU9AK.js → DataTable-C6aMSilS.js} +1 -1
  47. package/dist/client/assets/{DispatchAftermath-B-6rmXzL.js → DispatchAftermath-ZCEB75hh.js} +1 -1
  48. package/dist/client/assets/{DocumentFocusViewer-Do3wQ_3Z.js → DocumentFocusViewer-D8iB6SMt.js} +1 -1
  49. package/dist/client/assets/{EmbeddableSurfacesLab-C1orRyP9.js → EmbeddableSurfacesLab-D3iZiS8o.js} +1 -1
  50. package/dist/client/assets/{EmptyState-CJzXj1l5.js → EmptyState-CKPWFSjq.js} +1 -1
  51. package/dist/client/assets/{FileViewerPane-Df6VzXjA.js → FileViewerPane-CxNbcTYf.js} +1 -1
  52. package/dist/client/assets/FlightObserveScreen-BTe1YRPr.js +1 -0
  53. package/dist/client/assets/{FollowScreen-DvnxYLVh.js → FollowScreen-CkR-okdL.js} +1 -1
  54. package/dist/client/assets/{HarnessMark-B979GCSB.js → HarnessMark-DttReffF.js} +1 -1
  55. package/dist/client/assets/HarnessesScreen-COO_Q8VY.js +1 -0
  56. package/dist/client/assets/{HerdrSession-B3McuYgi.js → HerdrSession-DsuxCtfX.js} +1 -1
  57. package/dist/client/assets/{HomeHero-CdUVPjkG.js → HomeHero-DXJo2QSO.js} +1 -1
  58. package/dist/client/assets/{HostAdvisorView-Bok5Sk5c.js → HostAdvisorView-DeJ-8RZV.js} +1 -1
  59. package/dist/client/assets/{KnowledgeSearchInspector-B7XSoJsu.js → KnowledgeSearchInspector-W_zNIBRV.js} +1 -1
  60. package/dist/client/assets/KnowledgeSearchScreen-_rxJNUUh.js +1 -0
  61. package/dist/client/assets/{LaneToolHoverCard-HByf2ndx.js → LaneToolHoverCard-t7-XJP-h.js} +1 -1
  62. package/dist/client/assets/LaneTraceDetailSheet-DNIECgEl.js +1 -0
  63. package/dist/client/assets/{LaneTraceEventFocus-DM-hoPxG.js → LaneTraceEventFocus-BB5DhFQm.js} +1 -1
  64. package/dist/client/assets/{MeshCanvas-DCLJRsBy.js → MeshCanvas-DZv2ipsy.js} +1 -1
  65. package/dist/client/assets/{MeshCanvasMinimap-cEFS9eW7.js → MeshCanvasMinimap-BXHRNb7l.js} +1 -1
  66. package/dist/client/assets/MeshScreen-DuNvpDC5.js +1 -0
  67. package/dist/client/assets/{MeshTopologyView-CCRPd8PU.js → MeshTopologyView-Dc0GSrKa.js} +2 -2
  68. package/dist/client/assets/MessagesScreen-dNNPFwAc.js +1 -0
  69. package/dist/client/assets/{MissionContextRail-DF0_kiU7.js → MissionContextRail-DnCWPzAM.js} +1 -1
  70. package/dist/client/assets/MissionControlView-DmaThhNR.js +1 -0
  71. package/dist/client/assets/MissionFocusOverlay-K21ssTxv.js +1 -0
  72. package/dist/client/assets/MissionLeftAgentRow-CbQm4BLv.js +1 -0
  73. package/dist/client/assets/{MissionLogPane-BbdDKjUl.js → MissionLogPane-BLvSSIdT.js} +1 -1
  74. package/dist/client/assets/{NewAgentModal-DfHxad34.js → NewAgentModal-B7qxjZlW.js} +1 -1
  75. package/dist/client/assets/NewChatComposer-D2Ah4T-W.js +19 -0
  76. package/dist/client/assets/{NewChatOrigin-B1u7ki70.js → NewChatOrigin-DCn5cWPZ.js} +1 -1
  77. package/dist/client/assets/{ObserveEmbedScreen-Co0xTii6.js → ObserveEmbedScreen-DvKGsaLv.js} +2 -2
  78. package/dist/client/assets/{ObserveTextFlow-ZQWwrK3i.js → ObserveTextFlow-DCJ5EmD8.js} +2 -2
  79. package/dist/client/assets/{ObservedTopologyPanel-BJUhDSuQ.js → ObservedTopologyPanel-CJVqIqQ2.js} +1 -1
  80. package/dist/client/assets/{OpenScoutAppShell-CUd2yOLu.js → OpenScoutAppShell-C9TOLB7u.js} +2 -2
  81. package/dist/client/assets/OpsAgentsView-vIoY-AW1.js +1 -0
  82. package/dist/client/assets/OpsScreen-CJBwshEp.js +1 -0
  83. package/dist/client/assets/OpsSubnav-CjDTnp64.js +1 -0
  84. package/dist/client/assets/ProjectAgentProfile-Br1eTD7G.js +1 -0
  85. package/dist/client/assets/ProjectAgentProfileBar-CUzZ4Rpx.js +1 -0
  86. package/dist/client/assets/ProjectAgentProfileHero-mjxNcRvw.js +1 -0
  87. package/dist/client/assets/ProjectsInbox-Bq29DE_o.js +2 -0
  88. package/dist/client/assets/ProjectsRail-kMDA0yn4.js +1 -0
  89. package/dist/client/assets/ProjectsScreen-BDaJYhc0.js +1 -0
  90. package/dist/client/assets/ProjectsThreadAside-B940p3vW.js +1 -0
  91. package/dist/client/assets/Provider-D0bB7q6y.js +1 -0
  92. package/dist/client/assets/{RailRow-CEH2MFBw.js → RailRow-B88JVr62.js} +1 -1
  93. package/dist/client/assets/RawSessionsTable-CzGhEdiZ.js +1 -0
  94. package/dist/client/assets/RealtimeVoiceScreen-CyP1CWsX.js +1 -0
  95. package/dist/client/assets/{RepoDiffEmbedScreen-kY2pHjIs.js → RepoDiffEmbedScreen-mexrJPhW.js} +1 -1
  96. package/dist/client/assets/{RepoDiffPageScreen-C6LhoKrn.js → RepoDiffPageScreen-DbqX4L3q.js} +1 -1
  97. package/dist/client/assets/{RepoDiffViewer-BhcIIQQg.js → RepoDiffViewer-Bw5yMC4A.js} +1 -1
  98. package/dist/client/assets/{RepoDiffViewerLazy-Csy_j9LD.js → RepoDiffViewerLazy-DzfoFhbl.js} +2 -2
  99. package/dist/client/assets/{ReposScreen-B_cB0zu7.js → ReposScreen-CzbO1Fuy.js} +2 -2
  100. package/dist/client/assets/{ScoutDeckSurface-CSy_fjcG.js → ScoutDeckSurface-DQoZofzH.js} +1 -1
  101. package/dist/client/assets/{ScoutSurface-CQVcSrin.js → ScoutSurface-NlhDsPzg.js} +1 -1
  102. package/dist/client/assets/{ScoutbotFxLab-DqGiLYNy.js → ScoutbotFxLab-l2WAahCg.js} +1 -1
  103. package/dist/client/assets/{SecondaryNav-BR4VRdgh.js → SecondaryNav-Cs0_FQdj.js} +1 -1
  104. package/dist/client/assets/{SessionEmbedScreen-BTlZ9gAg.js → SessionEmbedScreen-CpduQ0O9.js} +1 -1
  105. package/dist/client/assets/{SessionObserve-dQDN23pP.js → SessionObserve-BVeTkcIl.js} +1 -1
  106. package/dist/client/assets/{SessionObserveEvidence-BRBGKAgd.js → SessionObserveEvidence-BkOezTGV.js} +1 -1
  107. package/dist/client/assets/SessionRefScreen-DetLMkTT.js +1 -0
  108. package/dist/client/assets/SessionsScreen-B-McKw6d.js +1 -0
  109. package/dist/client/assets/{SettingsDrawer-RGVK_bmE.js → SettingsDrawer-CPB32w0n.js} +3 -3
  110. package/dist/client/assets/SettingsScreen-BEzYFdjz.js +1 -0
  111. package/dist/client/assets/{ShikiPane-DYI9Hkge.js → ShikiPane-C0TuCATU.js} +1 -1
  112. package/dist/client/assets/{SlidePanel-B9ugxWgA.js → SlidePanel-CETQ5NTx.js} +1 -1
  113. package/dist/client/assets/{SpriteAvatar-z5hHesx9.js → SpriteAvatar-DFO4Kb4Z.js} +1 -1
  114. package/dist/client/assets/{StatusPill-BFvMjmZV.js → StatusPill-BllrY-eg.js} +1 -1
  115. package/dist/client/assets/{TailView-0uEIj2JH.js → TailView-_gKWfaQM.js} +2 -2
  116. package/dist/client/assets/Terminal-DWyZTZdY.js +1 -0
  117. package/dist/client/assets/TerminalEmbedScreen-_SSzwhWa.js +1 -0
  118. package/dist/client/assets/{TerminalHeaderMount-BL07cd0q.js → TerminalHeaderMount-CY7uIWBg.js} +1 -1
  119. package/dist/client/assets/{TextDocumentSurface-BflAwXeZ.js → TextDocumentSurface-2X1Gw4eA.js} +1 -1
  120. package/dist/client/assets/{TmuxPeek-BTnjOQi0.js → TmuxPeek-CqTJRhkI.js} +1 -1
  121. package/dist/client/assets/{VoicePermissionsPanel-CgQ6GGS-.js → VoicePermissionsPanel-C4vkU-sU.js} +1 -1
  122. package/dist/client/assets/{WorkDetailScreen-CaLG-zDs.js → WorkDetailScreen-DqGnuK0e.js} +3 -3
  123. package/dist/client/assets/{WorkFilesViewer-B9Sil_No.js → WorkFilesViewer-D8-4vF5l.js} +1 -1
  124. package/dist/client/assets/{activity-DcrMApUY.js → activity-CzTJ-YMX.js} +1 -1
  125. package/dist/client/assets/{addon-fit-DMVrz5Sv.js → addon-fit-Zx3A7pGS.js} +1 -1
  126. package/dist/client/assets/{addon-webgl-BYvpZUyu.js → addon-webgl-DitJj-N0.js} +1 -1
  127. package/dist/client/assets/{agent-autocomplete-B-5QTeas.js → agent-autocomplete-BlK8wY06.js} +1 -1
  128. package/dist/client/assets/{agent-essentials-D7KRGYvF.js → agent-essentials-K9B6kbTS.js} +1 -1
  129. package/dist/client/assets/{agent-lane-card-model-CNZMPkhc.js → agent-lane-card-model-CY3OE1Xu.js} +1 -1
  130. package/dist/client/assets/{agent-lanes-model-DXqjs0OK.js → agent-lanes-model-tc-1hE6q.js} +1 -1
  131. package/dist/client/assets/{agent-master-model-DqjrVI2h.js → agent-master-model-DMcHeNq3.js} +1 -1
  132. package/dist/client/assets/agent-specialization-CtF_jI34.js +1 -0
  133. package/dist/client/assets/agents-project-DgbqDc65.css +1 -0
  134. package/dist/client/assets/{arc.es-NHqHWohb.js → arc.es-BNXJqSw7.js} +1 -1
  135. package/dist/client/assets/{arrow-down-CKtSUjmW.js → arrow-down-BAGkhHA6.js} +1 -1
  136. package/dist/client/assets/{arrow-left-Czpf-AE4.js → arrow-left-eToA6GxC.js} +1 -1
  137. package/dist/client/assets/{arrow-right-BuzMnLYP.js → arrow-right-DTX42clh.js} +1 -1
  138. package/dist/client/assets/{arrow-up-right-C6Wl-1uw.js → arrow-up-right-B09GPwFl.js} +1 -1
  139. package/dist/client/assets/{bot-rd0awxD3.js → bot-WxKXYtEX.js} +1 -1
  140. package/dist/client/assets/{check-ofKUE8yH.js → check-Dz2SRHft.js} +1 -1
  141. package/dist/client/assets/{chevron-down-wciXnOQz.js → chevron-down-D120PY4g.js} +1 -1
  142. package/dist/client/assets/{chevron-right-D-HdlPg8.js → chevron-right-CowuvuE6.js} +1 -1
  143. package/dist/client/assets/{chunk-HRAB3GC3-Tyv9rzx7.js → chunk-HRAB3GC3-KjjrTLCU.js} +1 -1
  144. package/dist/client/assets/{chunk-JTPDIGGW-BC2Mandc.js → chunk-JTPDIGGW-COJ00z94.js} +3 -3
  145. package/dist/client/assets/{chunk-T65CQEWV-C1AWTYZZ.js → chunk-T65CQEWV-H2QEKfr1.js} +1 -1
  146. package/dist/client/assets/{chunk-YOZR3KYS-DwHPHa6f.js → chunk-YOZR3KYS-CrCgXw9l.js} +1 -1
  147. package/dist/client/assets/{clock-B88r8OrZ.js → clock-_9FDplIT.js} +1 -1
  148. package/dist/client/assets/{code-xml-D7pOQM9l.js → code-xml-CkkNdRmu.js} +1 -1
  149. package/dist/client/assets/{compass-Dt1AMXz2.js → compass-BdpImt_W.js} +1 -1
  150. package/dist/client/assets/content-0RBfbCIJ.js +1 -0
  151. package/dist/client/assets/content-BTmnk2bl.js +1 -0
  152. package/dist/client/assets/content-Bk5DKhyP.js +1 -0
  153. package/dist/client/assets/{content-nkx0swDe.js → content-Bw_8GE_S.js} +1 -1
  154. package/dist/client/assets/content-CI4gLEWi.js +1 -0
  155. package/dist/client/assets/content-CLCtp9Rb.js +1 -0
  156. package/dist/client/assets/content-C_FAGTNk.js +1 -0
  157. package/dist/client/assets/content-CnnzWOE3.js +1 -0
  158. package/dist/client/assets/content-DKlY98pO.js +1 -0
  159. package/dist/client/assets/content-Df7ndXTG.js +1 -0
  160. package/dist/client/assets/content-DkZDzzx3.js +1 -0
  161. package/dist/client/assets/content-DnGmb2L0.js +1 -0
  162. package/dist/client/assets/content-Ds-zs-Ss.js +1 -0
  163. package/dist/client/assets/content-JIWSyC0f.js +1 -0
  164. package/dist/client/assets/content-Q3TIYC8q.js +1 -0
  165. package/dist/client/assets/content-evaBfvxD.js +1 -0
  166. package/dist/client/assets/{context-budget-DX_fwUs3.js → context-budget-DqxWzalx.js} +1 -1
  167. package/dist/client/assets/{conversation-icons-tp9BX6X2.js → conversation-icons-DHGc9wbT.js} +1 -1
  168. package/dist/client/assets/conversation-model-C2KuZUXc.js +1 -0
  169. package/dist/client/assets/conversation-motion-features-BJnHs3Ul.js +1 -0
  170. package/dist/client/assets/{copy-CWWAJ75H.js → copy-BzdzWsQd.js} +1 -1
  171. package/dist/client/assets/{cpu-DrqejfkB.js → cpu-CHFIGw87.js} +1 -1
  172. package/dist/client/assets/{createLucideIcon-DezKXSG2.js → createLucideIcon-Dv8H8m7J.js} +1 -1
  173. package/dist/client/assets/discover-DutlV0ZU.js +2 -0
  174. package/dist/client/assets/embed-entry-CJG7WEVw.js +2 -0
  175. package/dist/client/assets/{external-link-Dp_a2vRZ.js → external-link-BvX5PfLh.js} +1 -1
  176. package/dist/client/assets/{eye-BRyD0jno.js → eye-C9cGk5z6.js} +1 -1
  177. package/dist/client/assets/{file-code-corner-muIVH_xO.js → file-code-corner-jlGFdr8d.js} +1 -1
  178. package/dist/client/assets/{file-text-CqJgwxmv.js → file-text-BHro8MkG.js} +1 -1
  179. package/dist/client/assets/{gauge-hU--hKVP.js → gauge-DSflSery.js} +1 -1
  180. package/dist/client/assets/{gestures-DN4hEeqv.js → gestures-YA5IIwp-.js} +1 -1
  181. package/dist/client/assets/{git-branch-CK5v8F2v.js → git-branch-Bc_eDIpG.js} +1 -1
  182. package/dist/client/assets/{home-moving-signal-BjDtEJUP.js → home-moving-signal-PHSqSBu_.js} +1 -1
  183. package/dist/client/assets/home-now-card-C_qsI6C6.js +1 -0
  184. package/dist/client/assets/{home-now-card-nano-C-r_bBg5.js → home-now-card-nano-Jmy7eJ6H.js} +1 -1
  185. package/dist/client/assets/{hooks-D46bABUP.js → hooks-ME7rmhpE.js} +1 -1
  186. package/dist/client/assets/{index-DvLtl7rV.js → index-C1VaWNuD.js} +2 -2
  187. package/dist/client/assets/index-C8UCRm2W.js +1 -0
  188. package/dist/client/assets/index-Cn0I2Hgi.js +1 -0
  189. package/dist/client/assets/index-Cx6Gbr6n.js +1 -0
  190. package/dist/client/assets/{inspector-panel-Dkc7rLvY.js → inspector-panel-CwrHjRaQ.js} +2 -2
  191. package/dist/client/assets/{keyboard-nav-BLYDhL3Z.js → keyboard-nav-B8sQ_8IF.js} +1 -1
  192. package/dist/client/assets/{lane-roster-store-DOdI1O13.js → lane-roster-store-DN2jxXF-.js} +1 -1
  193. package/dist/client/assets/{layers-CSsg3JVP.js → layers-CW2-qHsG.js} +1 -1
  194. package/dist/client/assets/{layout-grid-DOChPJdZ.js → layout-grid-BoVnPOk-.js} +1 -1
  195. package/dist/client/assets/left-BRu9pnqx.js +2 -0
  196. package/dist/client/assets/left-BjS1dKNV.js +2 -0
  197. package/dist/client/assets/left-CL-TVLJ7.js +1 -0
  198. package/dist/client/assets/left-DLpsDi55.js +1 -0
  199. package/dist/client/assets/left-DPcM9o8Y.js +1 -0
  200. package/dist/client/assets/left-MmTJf1tK.js +1 -0
  201. package/dist/client/assets/left-P80i5V8L.js +1 -0
  202. package/dist/client/assets/left-advisor-CbXVzAqS.js +1 -0
  203. package/dist/client/assets/left-agents-7mJsiNyr.js +1 -0
  204. package/dist/client/assets/left-default-COK26l3H.js +1 -0
  205. package/dist/client/assets/left-lanes-Dbdm9Veu.js +1 -0
  206. package/dist/client/assets/left-mission-DqGR5jby.js +1 -0
  207. package/dist/client/assets/library-COnWzUWv.js +1 -0
  208. package/dist/client/assets/{loader-circle-pM56HNhR.js → loader-circle-DmUG_YC7.js} +1 -1
  209. package/dist/client/assets/{local-agents-C8xAhbO5.js → local-agents-VP1-ZlPw.js} +1 -1
  210. package/dist/client/assets/{mentions-DG6OQrsc.js → mentions-BZ5SBMtc.js} +1 -1
  211. package/dist/client/assets/mesh-buckets-CLYS8Jx8.js +1 -0
  212. package/dist/client/assets/{mesh-ops-BZ1h5RQs.js → mesh-ops-CKSWgax2.js} +1 -1
  213. package/dist/client/assets/{mesh-view-store-ChUOASK8.js → mesh-view-store-CBM1za_N.js} +1 -1
  214. package/dist/client/assets/{message-circle-mZCv8tvB.js → message-circle-joGFxfj1.js} +1 -1
  215. package/dist/client/assets/{message-markup-C2LQDm_k.js → message-markup-DC0QFEZn.js} +1 -1
  216. package/dist/client/assets/{message-square-C7t_qtuj.js → message-square-BLiFqpe_.js} +1 -1
  217. package/dist/client/assets/{mission-control-store-nDLdUZPA.js → mission-control-store-CM8mQGg8.js} +1 -1
  218. package/dist/client/assets/model-CBkMvT1w.js +1 -0
  219. package/dist/client/assets/{observe-BpEm1INu.js → observe-BLmy4quB.js} +1 -1
  220. package/dist/client/assets/{page-status-E5jnk48p.js → page-status-BE0-J1xY.js} +1 -1
  221. package/dist/client/assets/{paperclip-C64lkcbM.js → paperclip-Br7wUDFl.js} +1 -1
  222. package/dist/client/assets/{persistent-state-EHXw8WNy.js → persistent-state-BubPQ7tT.js} +1 -1
  223. package/dist/client/assets/{plus-Co-dqKul.js → plus-BWKhylds.js} +1 -1
  224. package/dist/client/assets/profile-BCvk8jOQ.js +1 -0
  225. package/dist/client/assets/projects-inbox-BIW7nv-H.css +1 -0
  226. package/dist/client/assets/projects-inbox-DFbgVlXL.js +1 -0
  227. package/dist/client/assets/{proxy-BiW5suC7.js → proxy-DVDRhSRR.js} +1 -1
  228. package/dist/client/assets/{radio-BOxBQX-T.js → radio-CxIXS1nU.js} +1 -1
  229. package/dist/client/assets/{refresh-cw-DMxGzDwn.js → refresh-cw-Bkh7Cvnd.js} +1 -1
  230. package/dist/client/assets/resolve-panes-DhD5qmQO.js +1 -0
  231. package/dist/client/assets/resolve-sidebar-context-GqhZNRPY.js +1 -0
  232. package/dist/client/assets/right-B_08ilv6.js +1 -0
  233. package/dist/client/assets/right-Brm67HOL.js +1 -0
  234. package/dist/client/assets/right-BveAPKBW.js +1 -0
  235. package/dist/client/assets/right-CpTB_-Ya.js +1 -0
  236. package/dist/client/assets/right-CqC4Qdot.js +1 -0
  237. package/dist/client/assets/right-D91j9d5Y.js +1 -0
  238. package/dist/client/assets/{right-CimaAvQN.js → right-DVUq5374.js} +1 -1
  239. package/dist/client/assets/right-DaLRhYl3.js +1 -0
  240. package/dist/client/assets/right-Dt1wOwA5.js +1 -0
  241. package/dist/client/assets/right-DtzqIZQF.js +1 -0
  242. package/dist/client/assets/{rocket-BQm5_CvR.js → rocket-CnxqjX_K.js} +1 -1
  243. package/dist/client/assets/{router-B9vQkNJL.js → router-kfcaYqZr.js} +1 -1
  244. package/dist/client/assets/runtime-picker-C20lTGhV.js +1 -0
  245. package/dist/client/assets/{scope-views-1IYJdl41.js → scope-views-KPY85UUx.js} +1 -1
  246. package/dist/client/assets/{scout-voice-BVUqGhth.js → scout-voice-Cg1qfepC.js} +1 -1
  247. package/dist/client/assets/scoutbot-D7kGGyK_.js +3 -0
  248. package/dist/client/assets/{scoutbot-markdown-BQ_Ee2Ic.js → scoutbot-markdown-yb87JlSE.js} +1 -1
  249. package/dist/client/assets/{scroll-text-Dze_dXtQ.js → scroll-text-DFcBYy5J.js} +1 -1
  250. package/dist/client/assets/{search-CDko0PKE.js → search-FB2vVxCp.js} +1 -1
  251. package/dist/client/assets/{secondaryNavConfig-BoQ_zYR9.js → secondaryNavConfig-C0Srrmy8.js} +1 -1
  252. package/dist/client/assets/{selection-bridge-Din6yV3h.js → selection-bridge-qBGFCJv8.js} +1 -1
  253. package/dist/client/assets/{send-horizontal-CSjIm6xg.js → send-horizontal-CS7mxVhX.js} +1 -1
  254. package/dist/client/assets/{server-Bzj7lPIx.js → server-WY6gsbZz.js} +1 -1
  255. package/dist/client/assets/{session-catalog-DsaZJXZt.js → session-catalog-CG4oL_yN.js} +1 -1
  256. package/dist/client/assets/{session-table-BQfR7u6r.js → session-table-uJh3v-ly.js} +1 -1
  257. package/dist/client/assets/{settings-Dyvpkb1D.js → settings-DQEtqkM9.js} +1 -1
  258. package/dist/client/assets/{sliders-horizontal-C8njVwfg.js → sliders-horizontal-57e99_qO.js} +1 -1
  259. package/dist/client/assets/{sparkles-CETYrxGA.js → sparkles-D0vWLTyC.js} +1 -1
  260. package/dist/client/assets/{sse-CD9MMUxl.js → sse-B29iGBnw.js} +1 -1
  261. package/dist/client/assets/{system-surfaces-redesign-QVXNeGYw.css → system-surfaces-redesign-kuf3wuE_.css} +1 -1
  262. package/dist/client/assets/{tail-events-Ps8KpKah.js → tail-events-LK29oCKm.js} +1 -1
  263. package/dist/client/assets/{terminal-9GRS_Qdc.js → terminal-UDy4lzV1.js} +1 -1
  264. package/dist/client/assets/{terminal-relay-GYMIvKs1.js → terminal-relay-CXHMdain.js} +1 -1
  265. package/dist/client/assets/{terminal-screen-BLk4PAYt.css → terminal-screen-vMICbBJh.css} +1 -1
  266. package/dist/client/assets/{terminal-sessions-BQ6t92tJ.js → terminal-sessions-Bdt2W3Y4.js} +1 -1
  267. package/dist/client/assets/{terminal-takeover-_Jyys4me.js → terminal-takeover-BMeBjBB2.js} +1 -1
  268. package/dist/client/assets/{use-conversation-list-C9ABzjXI.js → use-conversation-list-UG-tMN67.js} +1 -1
  269. package/dist/client/assets/{use-fleet-active-asks-DAspZQjE.js → use-fleet-active-asks-CCGrll5q.js} +1 -1
  270. package/dist/client/assets/{use-mesh-ops-items-Dh54ymEp.js → use-mesh-ops-items-BjyeFJTz.js} +1 -1
  271. package/dist/client/assets/{use-reduced-motion-x8pJMVrG.js → use-reduced-motion-CPoX8iV2.js} +1 -1
  272. package/dist/client/assets/{use-scout-dev-flags-DhCbiDK3.js → use-scout-dev-flags-DTseRrFi.js} +1 -1
  273. package/dist/client/assets/{useAgentHoverCard-DoBwV0LX.js → useAgentHoverCard-BgTLNcF-.js} +1 -1
  274. package/dist/client/assets/useContentSecondaryNav-CoIoz7JU.js +1 -0
  275. package/dist/client/assets/useEmbedHeadline-DuUnwTB7.js +1 -0
  276. package/dist/client/assets/{usePierreRuntime-ejq9dCWV.js → usePierreRuntime-35AHf9RQ.js} +1 -1
  277. package/dist/client/assets/{wrench-DjkoAOQt.js → wrench-BfVeded5.js} +1 -1
  278. package/dist/client/assets/{x-CAbNespN.js → x-DgmmnPKt.js} +1 -1
  279. package/dist/client/assets/{xterm-Cf-ngcGP.js → xterm-DnJJmrCA.js} +1 -1
  280. package/dist/client/assets/{zap-Cq8eWkcF.js → zap-Bcja1lHG.js} +1 -1
  281. package/dist/client/index.html +1 -1
  282. package/dist/main.mjs +5180 -9874
  283. package/dist/node/main.mjs +18 -2
  284. package/dist/pairing-runtime-controller.mjs +31 -2
  285. package/dist/runtime/broker-daemon.mjs +87 -13
  286. package/dist/scout-control-plane-web.mjs +35 -3
  287. package/package.json +2 -5
  288. package/dist/client/assets/ActivityScreen-BnoaUkVZ.js +0 -1
  289. package/dist/client/assets/AgentConfigurationScreen-CuZJy07q.js +0 -1
  290. package/dist/client/assets/AgentDefinitionsWorkspace-Iyl4BesU.js +0 -1
  291. package/dist/client/assets/AgentFloorView-YT-Jjccf.js +0 -1
  292. package/dist/client/assets/AgentInfoScreen-Dr99gQEZ.js +0 -1
  293. package/dist/client/assets/AgentLanesEmbedScreen-Dgcm7zd_.js +0 -1
  294. package/dist/client/assets/AgentLanesView-CetZZDyF.js +0 -2
  295. package/dist/client/assets/AgentMasterScreen-DJPnstoD.js +0 -1
  296. package/dist/client/assets/AgentsConsole-CsYOoFJi.js +0 -1
  297. package/dist/client/assets/AgentsScreen-k8LvBuU_.js +0 -1
  298. package/dist/client/assets/AgentsSubnav-C4xpQhsv.js +0 -1
  299. package/dist/client/assets/BriefingDetailScreen-CUCXO-KH.js +0 -1
  300. package/dist/client/assets/BrokerScreen-BPbOHhCS.js +0 -5
  301. package/dist/client/assets/CodeScreen-CeuO3EhR.js +0 -1
  302. package/dist/client/assets/ConversationComposer-CXPKx86g.js +0 -1
  303. package/dist/client/assets/ConversationFeedRows-WrH-YI3L.js +0 -1
  304. package/dist/client/assets/ConversationHeader-BQWzGzLK.js +0 -1
  305. package/dist/client/assets/ConversationScreen-CR9pWB65.js +0 -2
  306. package/dist/client/assets/CrewWorkspaces-CkQDhyie.css +0 -1
  307. package/dist/client/assets/CrewWorkspaces-NKujRzwh.js +0 -1
  308. package/dist/client/assets/FlightObserveScreen-6mGnmWQA.js +0 -1
  309. package/dist/client/assets/HarnessesScreen-CHTuv8p6.js +0 -1
  310. package/dist/client/assets/KnowledgeSearchScreen-D3o3IODW.js +0 -1
  311. package/dist/client/assets/LaneTraceDetailSheet-BUgHz-sd.js +0 -1
  312. package/dist/client/assets/MeshScreen-BcxPkhm6.js +0 -1
  313. package/dist/client/assets/MessagesScreen-Bb5l13MO.js +0 -1
  314. package/dist/client/assets/MissionControlView-E3V7bENU.js +0 -1
  315. package/dist/client/assets/MissionFocusOverlay-h15sQFvP.js +0 -1
  316. package/dist/client/assets/MissionLeftAgentRow-KPdk9rSa.js +0 -1
  317. package/dist/client/assets/NewChatComposer-_Stj0fZy.js +0 -19
  318. package/dist/client/assets/OpsAgentsView-DI5wu1si.js +0 -1
  319. package/dist/client/assets/OpsScreen-D8fQafCl.js +0 -1
  320. package/dist/client/assets/OpsSubnav-1K4Jaf__.js +0 -1
  321. package/dist/client/assets/ProjectAgentProfile-Bdjd_dAx.js +0 -1
  322. package/dist/client/assets/ProjectAgentProfileBar-k2QHHHsQ.js +0 -1
  323. package/dist/client/assets/ProjectAgentProfileHero-Bpxk1ui2.js +0 -1
  324. package/dist/client/assets/ProjectsInbox-C_bMHLCc.js +0 -2
  325. package/dist/client/assets/ProjectsRail-J-aH_pxT.js +0 -1
  326. package/dist/client/assets/ProjectsScreen-cVUkGbPz.js +0 -1
  327. package/dist/client/assets/ProjectsThreadAside-_ourdM-Q.js +0 -1
  328. package/dist/client/assets/Provider-CtXJeLrP.js +0 -1
  329. package/dist/client/assets/RawSessionsTable-CDyrom-F.js +0 -1
  330. package/dist/client/assets/RealtimeVoiceScreen-DBl3DN1H.js +0 -1
  331. package/dist/client/assets/SessionRefScreen-COVQMbtE.js +0 -1
  332. package/dist/client/assets/SessionsScreen--5OJ3p3v.js +0 -1
  333. package/dist/client/assets/SettingsScreen-CCxzy5IU.js +0 -1
  334. package/dist/client/assets/Terminal-DouZeNxc.js +0 -1
  335. package/dist/client/assets/TerminalEmbedScreen-dMNUbzXr.js +0 -1
  336. package/dist/client/assets/agent-specialization-BujJVUTD.js +0 -1
  337. package/dist/client/assets/agents-project-COzHxZAF.css +0 -1
  338. package/dist/client/assets/agents-project-model-UYiamtrU.js +0 -1
  339. package/dist/client/assets/content-9K38QchR.js +0 -1
  340. package/dist/client/assets/content-BRgnyXWh.js +0 -1
  341. package/dist/client/assets/content-BWPNyXJ0.js +0 -1
  342. package/dist/client/assets/content-BdkI07v3.js +0 -1
  343. package/dist/client/assets/content-C4oWa8SB.js +0 -1
  344. package/dist/client/assets/content-C9ijJxyl.js +0 -1
  345. package/dist/client/assets/content-CFZ4rghn.js +0 -1
  346. package/dist/client/assets/content-CIqu_Ci_.js +0 -1
  347. package/dist/client/assets/content-CnJF9DGO.js +0 -1
  348. package/dist/client/assets/content-CriW8Y8u.js +0 -1
  349. package/dist/client/assets/content-DDCyPPk_.js +0 -1
  350. package/dist/client/assets/content-DtcZeh5m.js +0 -1
  351. package/dist/client/assets/content-U9tsdtle.js +0 -1
  352. package/dist/client/assets/content-hFLK3CON.js +0 -1
  353. package/dist/client/assets/content-p00KQrtD.js +0 -1
  354. package/dist/client/assets/conversation-model-Dc02NsGp.js +0 -1
  355. package/dist/client/assets/conversation-motion-features-D9-RmBSq.js +0 -1
  356. package/dist/client/assets/discover-C2CZO4Tk.js +0 -2
  357. package/dist/client/assets/embed-entry-BSMUykuG.js +0 -2
  358. package/dist/client/assets/home-now-card-nF8OotI-.js +0 -1
  359. package/dist/client/assets/index-CPrU5q04.js +0 -1
  360. package/dist/client/assets/index-kL1WLbeS.js +0 -1
  361. package/dist/client/assets/index-zvhpRHao.js +0 -1
  362. package/dist/client/assets/left-B-SdEJSJ.js +0 -1
  363. package/dist/client/assets/left-B3wSE6ql.js +0 -1
  364. package/dist/client/assets/left-BNRFiRsb.js +0 -2
  365. package/dist/client/assets/left-BggzhgXN.js +0 -1
  366. package/dist/client/assets/left-CARCvvxS.js +0 -2
  367. package/dist/client/assets/left-CpokZYHt.js +0 -1
  368. package/dist/client/assets/left-YT7mIGuH.js +0 -1
  369. package/dist/client/assets/left-advisor-CCY0vkcO.js +0 -1
  370. package/dist/client/assets/left-agents-trhO5sL8.js +0 -1
  371. package/dist/client/assets/left-default-CG33elBs.js +0 -1
  372. package/dist/client/assets/left-lanes-CitMgeTp.js +0 -1
  373. package/dist/client/assets/left-mission-Zl2m_5eU.js +0 -1
  374. package/dist/client/assets/library-DkALuCh5.js +0 -1
  375. package/dist/client/assets/mesh-buckets-6y3ZIibI.js +0 -1
  376. package/dist/client/assets/mesh-roster-Bc7T4b7z.js +0 -1
  377. package/dist/client/assets/model-IGCUEsMy.js +0 -1
  378. package/dist/client/assets/profile-APxDsN2P.js +0 -1
  379. package/dist/client/assets/projects-inbox-Cg4X2lUQ.js +0 -1
  380. package/dist/client/assets/projects-inbox-DRBl2N85.css +0 -1
  381. package/dist/client/assets/resolve-panes-DeVJbS9c.js +0 -1
  382. package/dist/client/assets/resolve-sidebar-context-BQe5J6xF.js +0 -1
  383. package/dist/client/assets/right-Bmfd3pjP.js +0 -1
  384. package/dist/client/assets/right-BqI-nr9G.js +0 -1
  385. package/dist/client/assets/right-BuCgE0fZ.js +0 -1
  386. package/dist/client/assets/right-BwlW6E57.js +0 -1
  387. package/dist/client/assets/right-C0ybUw0j.js +0 -1
  388. package/dist/client/assets/right-CdkcrmeD.js +0 -1
  389. package/dist/client/assets/right-CkCCPbCX.js +0 -1
  390. package/dist/client/assets/right-D3eSiy41.js +0 -1
  391. package/dist/client/assets/right-Dz_xD0Vj.js +0 -1
  392. package/dist/client/assets/scoutbot-BJIamJOH.js +0 -3
  393. package/dist/client/assets/text-BP3oyl8-.js +0 -1
  394. package/dist/client/assets/useContentSecondaryNav-pZe2Zfk1.js +0 -1
  395. /package/dist/client/assets/{text-BYAFNLNq.css → runtime-picker-BYAFNLNq.css} +0 -0
@@ -1 +1 @@
1
- import{r as jt}from"./index-DvLtl7rV.js";import{n as se,D as Wt,E as et,m as X,F as tt,G as nt,H as Ut,I as xe,J as Pe,K as st,N as he,g as ke,t as L,e as qt,f as H,A as K,h as W,O as zt,z as R,Q as Xt,R as U,W as it,T as Ae,U as Yt,V as $t,X as Zt,Y as Jt,Z as Qt,_ as rt,$ as en,a0 as we,a1 as tn,a2 as nn,a3 as sn,b as rn,i as ot,a4 as on,a5 as an,a6 as cn,a7 as Ie,a8 as Oe,a9 as $,aa as Ee,ab as ln,ac as un,ad as fn,ae as hn,af as dn,ag as pn,ah as at,o as mn,ai as gn,aj as yn,ak as vn,al as Tn,am as ct,an as lt,ao as ut,ap as ft,aq as bn}from"./use-reduced-motion-x8pJMVrG.js";const xn=e=>typeof e=="object"&&e!==null,ie=(...e)=>e.reduce((t,n)=>s=>n(t(s))),ht=(e,t,n)=>{const s=t-e;return s?(n-e)/s:1},dt=(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=dt(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:dt(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))},de=new Set(["none","hidden"]);function Fn(e,t){return de.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:Bn: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 Kn(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 Bn=(e,t)=>{const n=st.createTransformer(t),s=he(e),i=he(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?de.has(e)&&!i.values.length||de.has(t)&&!s.values.length?Fn(e,t):ie(xt(Kn(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:K(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,K(e)),o<1?(i=l=>{const c=l*o,f=c*e,h=c-n,v=pe(l,o),m=Math.exp(-f);return ae-h/v*m},r=l=>{const f=l*o*e,h=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)*((h-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 Ke(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(!Ke(e,Un)&&Ke(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:h,isResolvedFromDuration:v}=qn({...n,velocity:-K(n.velocity||0)}),m=h||0,g=l/(2*Math.sqrt(u*c)),d=o-r,p=K(Math.sqrt(u/c)),b=Math.abs(d)<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*d)/x,A=y=>{const C=Math.exp(-g*p*y);return o-C*(S*Math.sin(x*y)+d*Math.cos(x*y))},M=g*p*S+d*x,T=g*p*d-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)*(d+(m+p*d)*C);const y=m+p*d;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*d)*Math.sinh(E)+y*d*Math.cosh(E))/y};const C=(m+g*p*d)/y,k=g*p*C-d*y,B=g*p*d-C*y;w=O=>{const F=Math.exp(-g*p*O),E=Math.min(y*O,300);return F*(k*Math.sinh(E)+B*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),B=Math.sin(x*y),O=Math.cos(x*y),F=o-k*(S*B+d*O),E=R(k*(M*B+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],h={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 d=f+g,p=o===void 0?d:o(d);p!==d&&(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);h.done=Math.abs(D)<=l,h.value=h.done?p:y};let x,S;const M=T=>{v(h.value)&&(x=T,S=ee({keyframes:[h.value,m(h.value)],velocity:wt(A,T,h.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),h)}}}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 h=ht(e[f],e[f+1],c);return a[f](h)};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=ht(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:h,repeatDelay:v,type:m,onUpdate:g,finalKeyframe:d}=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&&(h==="reverse"?(y=1-y,v&&(y-=v/a)):h==="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,d,this.speed)),g&&g(x.value),M&&this.finish(),x}then(t,n){return this.finished.then(t,n)}get duration(){return K(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+K(t)}get time(){return K(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=K(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 Be=(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=Be(i,t),a=Be(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 hs=40;class ds 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 h={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,d)=>this.onKeyframesResolved(m,g,h,!d),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>hs?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},m=f&&!l&&fs(v),g=v.motionValue?.owner?.current;let d;if(m)try{d=new is({...v,element:g})}catch{d=new te(v)}else d=new te(v);d.finished.then(()=>{this.notifyFinished()}).catch(se),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}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:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},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 h=Ae(c.keyframes,a);if(h!==void 0){H.update(()=>{c.onUpdate(h),c.onComplete()});return}}return a.isSync?new te(c):new ds(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=[],h=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),d=a[m];if(d===void 0||h&&ks(h,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(d)&&d===b&&!p.velocity){H.update(()=>g.set(d));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,d,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)&&he(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 h=Pt(f,n.current);h!==void 0&&(t[c]=h),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 Ks(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 Bs(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=Ks(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=d=>{l&&(l(d),l=void 0),c()},h=d=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),u&&(u=!1,f(d))},v=()=>{a=!0,window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",h,i)},m=d=>{if(d.pointerType!=="touch"){if(a){u=!0;return}f(d)}},g=d=>{if(!Gs(d))return;u=!1;const p=t(o,d);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",h),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))},h=v=>{c(v,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Bs(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 Kt(e,t){return qs(zs(e.getBoundingClientRect(),t))}function Di(e,t,n){const s=Kt(e,n),{scroll:i}=t;return i&&(ne(s.x,i.offset.x),ne(s.y,i.offset.y)),s}function Bt(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=Bt}readValueFromInstance(t,n){if(we.has(n))return this.projection?.isProjecting?un(n):fn(t,n);{const s=Qs(t),i=(hn(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Kt(t,n)}build(t,n,s){dn(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){Bt(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 h=_(e,f,l==="exit"?e.presenceContext?.custom:void 0);if(h){const{transition:v,transitionEnd:m,...g}=h;c={...c,...g,...m}}return c};function o(l){t=l(e)}function a(l){const{props:c}=e,f=Nt(e.parent)||{},h=[],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:B={}}=A,O={...B,...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=B[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)&&h.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}),h.push({animation:p})}let d=!!h.length;return s&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(d=!1),s=!1,i=!1,d?t(h):Promise.resolve()}function u(l,c){if(n[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(h=>h.animationState?.setActive(l,c)),n[l].isActive=c;const f=a(l);for(const h in n)n[h].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 hi 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 di 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(),h=l?c:f;h&&h(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:di},hover:{Feature:hi}};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,ht as p,Ze as q,Ks as r,We as s,ne as t,Bs as u,Ii as v,Rt as w,De as x,ie as y,Di as z};
1
+ import{r as jt}from"./index-C1VaWNuD.js";import{n as se,D as Wt,E as et,m as X,F as tt,G as nt,H as Ut,I as xe,J as Pe,K as st,N as he,g as ke,t as L,e as qt,f as H,A as K,h as W,O as zt,z as R,Q as Xt,R as U,W as it,T as Ae,U as Yt,V as $t,X as Zt,Y as Jt,Z as Qt,_ as rt,$ as en,a0 as we,a1 as tn,a2 as nn,a3 as sn,b as rn,i as ot,a4 as on,a5 as an,a6 as cn,a7 as Ie,a8 as Oe,a9 as $,aa as Ee,ab as ln,ac as un,ad as fn,ae as hn,af as dn,ag as pn,ah as at,o as mn,ai as gn,aj as yn,ak as vn,al as Tn,am as ct,an as lt,ao as ut,ap as ft,aq as bn}from"./use-reduced-motion-CPoX8iV2.js";const xn=e=>typeof e=="object"&&e!==null,ie=(...e)=>e.reduce((t,n)=>s=>n(t(s))),ht=(e,t,n)=>{const s=t-e;return s?(n-e)/s:1},dt=(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=dt(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:dt(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))},de=new Set(["none","hidden"]);function Fn(e,t){return de.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:Bn: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 Kn(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 Bn=(e,t)=>{const n=st.createTransformer(t),s=he(e),i=he(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?de.has(e)&&!i.values.length||de.has(t)&&!s.values.length?Fn(e,t):ie(xt(Kn(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:K(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,K(e)),o<1?(i=l=>{const c=l*o,f=c*e,h=c-n,v=pe(l,o),m=Math.exp(-f);return ae-h/v*m},r=l=>{const f=l*o*e,h=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)*((h-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 Ke(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(!Ke(e,Un)&&Ke(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:h,isResolvedFromDuration:v}=qn({...n,velocity:-K(n.velocity||0)}),m=h||0,g=l/(2*Math.sqrt(u*c)),d=o-r,p=K(Math.sqrt(u/c)),b=Math.abs(d)<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*d)/x,A=y=>{const C=Math.exp(-g*p*y);return o-C*(S*Math.sin(x*y)+d*Math.cos(x*y))},M=g*p*S+d*x,T=g*p*d-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)*(d+(m+p*d)*C);const y=m+p*d;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*d)*Math.sinh(E)+y*d*Math.cosh(E))/y};const C=(m+g*p*d)/y,k=g*p*C-d*y,B=g*p*d-C*y;w=O=>{const F=Math.exp(-g*p*O),E=Math.min(y*O,300);return F*(k*Math.sinh(E)+B*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),B=Math.sin(x*y),O=Math.cos(x*y),F=o-k*(S*B+d*O),E=R(k*(M*B+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],h={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 d=f+g,p=o===void 0?d:o(d);p!==d&&(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);h.done=Math.abs(D)<=l,h.value=h.done?p:y};let x,S;const M=T=>{v(h.value)&&(x=T,S=ee({keyframes:[h.value,m(h.value)],velocity:wt(A,T,h.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),h)}}}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 h=ht(e[f],e[f+1],c);return a[f](h)};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=ht(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:h,repeatDelay:v,type:m,onUpdate:g,finalKeyframe:d}=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&&(h==="reverse"?(y=1-y,v&&(y-=v/a)):h==="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,d,this.speed)),g&&g(x.value),M&&this.finish(),x}then(t,n){return this.finished.then(t,n)}get duration(){return K(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+K(t)}get time(){return K(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=K(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 Be=(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=Be(i,t),a=Be(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 hs=40;class ds 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 h={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,d)=>this.onKeyframesResolved(m,g,h,!d),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>hs?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:t},m=f&&!l&&fs(v),g=v.motionValue?.owner?.current;let d;if(m)try{d=new is({...v,element:g})}catch{d=new te(v)}else d=new te(v);d.finished.then(()=>{this.notifyFinished()}).catch(se),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}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:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},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 h=Ae(c.keyframes,a);if(h!==void 0){H.update(()=>{c.onUpdate(h),c.onComplete()});return}}return a.isSync?new te(c):new ds(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=[],h=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),d=a[m];if(d===void 0||h&&ks(h,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(d)&&d===b&&!p.velocity){H.update(()=>g.set(d));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,d,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)&&he(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 h=Pt(f,n.current);h!==void 0&&(t[c]=h),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 Ks(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 Bs(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=Ks(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=d=>{l&&(l(d),l=void 0),c()},h=d=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),u&&(u=!1,f(d))},v=()=>{a=!0,window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",h,i)},m=d=>{if(d.pointerType!=="touch"){if(a){u=!0;return}f(d)}},g=d=>{if(!Gs(d))return;u=!1;const p=t(o,d);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",h),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))},h=v=>{c(v,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Bs(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 Kt(e,t){return qs(zs(e.getBoundingClientRect(),t))}function Di(e,t,n){const s=Kt(e,n),{scroll:i}=t;return i&&(ne(s.x,i.offset.x),ne(s.y,i.offset.y)),s}function Bt(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=Bt}readValueFromInstance(t,n){if(we.has(n))return this.projection?.isProjecting?un(n):fn(t,n);{const s=Qs(t),i=(hn(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Kt(t,n)}build(t,n,s){dn(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){Bt(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 h=_(e,f,l==="exit"?e.presenceContext?.custom:void 0);if(h){const{transition:v,transitionEnd:m,...g}=h;c={...c,...g,...m}}return c};function o(l){t=l(e)}function a(l){const{props:c}=e,f=Nt(e.parent)||{},h=[],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:B={}}=A,O={...B,...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=B[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)&&h.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}),h.push({animation:p})}let d=!!h.length;return s&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(d=!1),s=!1,i=!1,d?t(h):Promise.resolve()}function u(l,c){if(n[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(h=>h.animationState?.setActive(l,c)),n[l].isActive=c;const f=a(l);for(const h in n)n[h].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 hi 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 di 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(),h=l?c:f;h&&h(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:di},hover:{Feature:hi}};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,ht as p,Ze as q,Ks as r,We as s,ne as t,Bs as u,Ii as v,Rt as w,De as x,ie as y,Di as z};
@@ -1 +1 @@
1
- import{c}from"./createLucideIcon-DezKXSG2.js";const e=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],i=c("git-branch",e);export{i as G};
1
+ import{c}from"./createLucideIcon-Dv8H8m7J.js";const e=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],i=c("git-branch",e);export{i as G};
@@ -1 +1 @@
1
- import{r as x,j as s}from"./index-DvLtl7rV.js";import{H as I}from"./HarnessMark-B979GCSB.js";import{n as S}from"./time-Dhsh_2EG.js";import{i as T}from"./agent-lanes-model-DXqjs0OK.js";import{u as v,l as $,a as P,c as H,h as z,b as F,d as b}from"./home-live-action-BkqGLVRY.js";import{C as W}from"./cpu-DrqejfkB.js";import{G as D}from"./git-branch-CK5v8F2v.js";import{X as q}from"./x-CAbNespN.js";import{F as X}from"./file-code-corner-muIVH_xO.js";import{A as _}from"./arrow-right-BuzMnLYP.js";import{T as J}from"./terminal-9GRS_Qdc.js";import"./context-budget-DX_fwUs3.js";import"./terminal-sessions-BQ6t92tJ.js";import"./api-Co9aQ2Jw.js";import"./perf-PX8Rx0EP.js";import"./lane-observe-vfyACHi0.js";import"./tail-display-DcliDVkW.js";import"./lane-edit-display-C_Aujldz.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./createLucideIcon-DezKXSG2.js";function Q(e){const i=e?.task?.trim();return!i||/^(working|idle|queued)$/i.test(i)?null:v(i)}function Y(e,i){const n=e?.replace(/\s+/g," ").trim().toLowerCase()??"",t=i?.replace(/\s+/g," ").trim().toLowerCase()??"";return!!(n&&t&&n!==t)}function y(e,i){const n=S(e);if(n===null)return"—";const t=Math.max(0,Math.floor((i-n)/1e3));if(t<60)return`${t}s`;const a=Math.floor(t/60);if(a<60)return`${a}m`;const o=Math.floor(a/60);return o<48?`${o}h`:`${Math.floor(o/24)}d`}function C(e){return e?e.startsWith("/Users/")?`~/${e.split("/").slice(3).join("/")}`:(e.startsWith("~/"),e):null}function M(e){const i=C(e);if(!i)return"other";const n=i.replace(/\/+$/u,"").split("/").filter(Boolean);return n[n.length-1]??i}function K(e){if(!C(e))return"other";const n=M(e);return n==="other"?"other":`~/${n}`}function U(e,i=140){const n=(e??"").replace(/\s+/g," ").trim();return n?n.length>i?`${n.slice(0,i-1)}…`:n:""}function B(e){const i=e?.metadata?.usage,n=i?.contextInputTokens,t=i?.contextWindowTokens;return typeof n=="number"&&typeof t=="number"&&t>0?{contextPct:Math.min(100,Math.round(n/t*100)),tokensUsed:n,tokensMax:t}:{contextPct:null,tokensUsed:null,tokensMax:null}}function Z(e,i,n,t,a,o){const c=e.projectRoot??e.cwd??null,u=M(c),m=Q(i),g=v($({observeData:n,checkpoint:null,fallbackTask:null,observeLive:t,skipLifecycleTokens:!0})),p=v(P(n)),N=!m&&!g&&!p,r=H({harness:e.harness,project:u==="other"?null:u,branch:e.branch,live:t,attachedOnly:N&&!t}),f=m||g||v(i?.summary)||p||r||"Working",j=m&&g&&Y(m,g)?g:null,h=S(n?.metadata?.session?.sessionStart),{contextPct:R,tokensUsed:k,tokensMax:L}=B(n);return{id:e.id,action:v(f)||U(f,160)||"Working",nowLine:j,name:e.name,harness:e.harness?.trim()||null,projectKey:u,projectLabel:K(c),projectRoot:c,branch:e.branch?.trim()||null,lastAge:y(a,o),sessionAge:h!==null?y(h,o):null,live:t||!!(i&&(i.status==="working"||i.agentState==="working"||i.agentState==="in_flight")),contextPct:R,tokensUsed:k,tokensMax:L,touchedFiles:n?.files??[],recentEvents:(n?.events??[]).slice(-6),observeData:n??null,agent:e,observeRoute:b(e,"observe"),profileRoute:b(e,"profile"),terminalRoute:b(e,"terminal"),peekRoute:b(e,"peek"),terminalEnabled:F(e),peekEnabled:z(e)}}function w(e,i,n){const t=e.agent,a=T(e.observe),o=t.projectRoot??t.cwd??null,c=M(o),u=v($({observeData:e.observe,fallbackTask:null,observeLive:a,skipLifecycleTokens:!0})),m=v(P(e.observe)),g=u||m||H({harness:t.harness,project:c==="other"?null:c,branch:t.branch,live:a,attachedOnly:!u&&!m}),p=S(e.observe?.metadata?.session?.sessionStart),{contextPct:N,tokensUsed:r,tokensMax:f}=B(e.observe);return{id:e.id,action:v(g)||U(g,160)||"Active",nowLine:null,name:t.name,harness:t.harness?.trim()||null,projectKey:c,projectLabel:K(o),projectRoot:o,branch:t.branch?.trim()||null,lastAge:y(i,n),sessionAge:p!==null?y(p,n):null,live:a,contextPct:N,tokensUsed:r,tokensMax:f,touchedFiles:e.observe?.files??[],recentEvents:(e.observe?.events??[]).slice(-6),observeData:e.observe??null,agent:t,observeRoute:b(t,"observe"),profileRoute:b(t,"profile"),terminalRoute:b(t,"terminal"),peekRoute:b(t,"peek"),terminalEnabled:F(t),peekEnabled:z(t)}}function ee(e,i,n){const t=e.actorName??e.agentName??e.agentId??"Observed",a=v(e.title)||v(e.summary)||"Observed activity",o=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:t,harness:null,projectKey:"observed",projectLabel:"observed",projectRoot:null,branch:null,lastAge:y(i,n),sessionAge:null,live:!1,contextPct:null,tokensUsed:null,tokensMax:null,touchedFiles:[],recentEvents:[],observeData:null,agent:null,observeRoute:o,profileRoute:e.agentId?{view:"agents-v2",agentId:e.agentId,tab:"profile"}:null,terminalRoute:null,peekRoute:null,terminalEnabled:!1,peekEnabled:!1}}function se(e){const i=new Map;for(const n of e){const t=i.get(n.projectKey)??[];t.push(n),i.set(n.projectKey,t)}return[...i.entries()]}function Le({cards:e,sort:i,nowMs:n,movingAskByAgent:t,observeCache:a,navigate:o}){const[c,u]=x.useState(null),[m,g]=x.useState(null),p=x.useRef(null),N=x.useRef(null),r=x.useMemo(()=>e.map(l=>l.bucket==="working"?Z(l.agent,t.get(l.agent.id),a[l.agent.id]?.data??null,T(a[l.agent.id]?.data),l.lastActivityAt,n):l.bucket==="native"?w(l.lane,l.lastActivityAt,n):ee(l.actor,l.lastActivityAt,n)),[e,t,n,a]),f=x.useMemo(()=>se(r),[r]),j=r.findIndex(l=>l.id===c),h=j>=0?r[j]:null,R=x.useCallback((l,d)=>{c||(p.current!==null&&window.clearTimeout(p.current),p.current=window.setTimeout(()=>{const O=Math.max(16,Math.min(d.left+96,window.innerWidth-360-16)),V=d.bottom+8+220>window.innerHeight?Math.max(16,d.top-8-220):d.bottom+8;g({id:l,top:V,left:O})},180))},[c]),k=x.useCallback(()=>{p.current!==null&&window.clearTimeout(p.current),p.current=null,g(null)},[]),L=x.useCallback(l=>{k(),u(d=>d===l?null:l)},[k]),G=x.useCallback(l=>{if(r.length!==0)if(l.key==="ArrowDown"){l.preventDefault();const d=j<0?0:Math.min(r.length-1,j+1);u(r[d]?.id??null)}else if(l.key==="ArrowUp"){l.preventDefault();const d=j<0?r.length-1:Math.max(0,j-1);u(r[d]?.id??null)}else l.key==="Escape"?(l.preventDefault(),u(null)):l.key==="Enter"&&h&&h.observeRoute&&(l.preventDefault(),o(h.observeRoute))},[o,h,j,r]);return x.useEffect(()=>{c&&!r.some(l=>l.id===c)&&u(null)},[c,r]),s.jsxs("div",{ref:N,className:`s-moving-signal-stage ${h?"s-moving-signal-stage--split":""}`,onKeyDown:G,tabIndex:0,role:"region","aria-label":"What's moving signal stream and inspector",children:[s.jsx("div",{className:"s-moving-stream-pane",children:i==="grouped"?s.jsx("div",{className:"s-moving-signal-grouped",children:f.map(([l,d])=>s.jsxs("section",{className:"s-moving-signal-group",children:[s.jsxs("header",{className:"s-moving-signal-band",children:[s.jsx("span",{className:"s-moving-signal-band-title",children:d[0]?.projectLabel??l}),s.jsxs("span",{className:"label-xs s-moving-signal-band-count",children:[d.length," ",d.length===1?"Signal":"Signals",d[0]?.branch?` · ${d[0].branch}`:""]})]}),s.jsx("div",{className:"s-moving-signal-list",children:d.map(A=>s.jsx(E,{row:A,grouped:!0,selected:c===A.id,onSelect:L,onHoverStart:R,onHoverEnd:k},A.id))})]},l))}):s.jsx("div",{className:"s-moving-signal-list",children:r.map(l=>s.jsx(E,{row:l,selected:c===l.id,onSelect:L,onHoverStart:R,onHoverEnd:k},l.id))})}),h&&s.jsx("aside",{className:"s-moving-inspector-pane","aria-label":`Live Inspector · ${h.name}`,children:s.jsx(ne,{row:h,onClose:()=>u(null),navigate:o})}),!h&&m&&s.jsx(te,{row:r.find(l=>l.id===m.id)??null,top:m.top,left:m.left})]})}function E({row:e,grouped:i,selected:n,onSelect:t,onHoverStart:a,onHoverEnd:o}){const c=e.projectKey!=="other"&&e.projectKey!=="observed",u=i||!c?e.name:e.projectKey;return s.jsx("div",{className:"s-moving-signal-item",children:s.jsxs("button",{type:"button",className:`s-moving-signal-row ${n?"is-selected":""}`,"aria-pressed":n,onClick:()=>t(e.id),onMouseEnter:m=>a(e.id,m.currentTarget.getBoundingClientRect()),onMouseLeave:o,onFocus:m=>a(e.id,m.currentTarget.getBoundingClientRect()),onBlur:o,children:[s.jsxs("span",{className:`s-moving-signal-age ${e.live?"is-live":""}`,children:[s.jsx("span",{className:`dot ${e.live?"dot--working dot--pulse dot--glow":"dot--neutral"}`,"aria-hidden":"true"}),s.jsx("span",{className:"label-xs",children:e.lastAge})]}),s.jsx("span",{className:"s-moving-signal-mark",children:e.harness?s.jsx(I,{harness:e.harness,size:12}):s.jsx(W,{size:12})}),s.jsxs("span",{className:"s-moving-signal-where",children:[s.jsx("span",{className:"s-moving-signal-project",children:u}),e.branch&&s.jsxs("span",{className:"chip chip--mono chip--sm chip--neutral s-moving-signal-branch-chip",children:[s.jsx(D,{size:9,"aria-hidden":"true"}),s.jsx("span",{children:e.branch})]})]}),s.jsx("span",{className:"s-moving-signal-action",title:e.action,children:e.action}),e.contextPct!==null&&s.jsxs("span",{className:"s-moving-signal-ctx-badge",title:`Context window: ${e.contextPct}%`,children:[s.jsx("span",{className:"s-moving-signal-ctx-mini-bar",children:s.jsx("span",{className:"s-moving-signal-ctx-mini-fill",style:{width:`${e.contextPct}%`}})}),s.jsxs("span",{className:"label-xs",children:[e.contextPct,"%"]})]})]})})}function ne({row:e,onClose:i,navigate:n}){return s.jsxs("div",{className:"s-moving-inspector",children:[s.jsxs("header",{className:"s-moving-inspector-head",children:[s.jsxs("div",{className:"s-moving-inspector-head-left",children:[s.jsx("span",{className:`dot dot--sm ${e.live?"dot--working dot--glow dot--pulse":"dot--neutral"}`,"aria-hidden":"true"}),s.jsx("span",{className:"label-xs s-moving-inspector-live-status",children:e.live?"LIVE ACTIVE":"IDLE / LOGGED"}),s.jsxs("span",{className:"label-xs s-moving-inspector-age",children:[e.lastAge," ago"]})]}),s.jsx("div",{className:"s-moving-inspector-head-right",children:s.jsx("button",{type:"button",className:"s-moving-inspector-close-btn",title:"Close inspector (Esc)","aria-label":"Close inspector",onClick:i,children:s.jsx(q,{size:13,"aria-hidden":"true"})})})]}),s.jsxs("div",{className:"s-moving-inspector-agent-strip",children:[s.jsxs("div",{className:"s-moving-inspector-agent-ident",children:[s.jsx("span",{className:"s-moving-inspector-harness-icon",children:e.harness?s.jsx(I,{harness:e.harness,size:16}):s.jsx(W,{size:16})}),s.jsxs("div",{className:"s-moving-inspector-agent-meta",children:[s.jsx("span",{className:"s-moving-inspector-name",children:e.name}),s.jsx("span",{className:"label-xs s-moving-inspector-harness-tag",children:e.harness||"native agent"})]})]}),e.branch&&s.jsxs("span",{className:"chip chip--mono chip--sm chip--working",children:[s.jsx(D,{size:10,"aria-hidden":"true"}),s.jsx("span",{children:e.branch})]})]}),s.jsxs("div",{className:"s-moving-inspector-body",children:[s.jsxs("div",{className:"s-moving-inspector-section",children:[s.jsx("span",{className:"label-xs s-moving-inspector-sec-label",children:"Active Task"}),s.jsx("p",{className:"s-moving-inspector-action-text",children:e.action})]}),e.nowLine&&s.jsxs("div",{className:"s-moving-inspector-section s-moving-inspector-section--now",children:[s.jsx("span",{className:"label-xs s-moving-inspector-now-badge",children:"Latest Step"}),s.jsx("p",{className:"s-moving-inspector-now-text",children:e.nowLine})]}),e.contextPct!==null&&s.jsxs("div",{className:"s-moving-inspector-section s-moving-inspector-token-sec",children:[s.jsxs("div",{className:"s-moving-inspector-token-header",children:[s.jsx("span",{className:"label-xs s-moving-inspector-sec-label",children:"Context Window"}),s.jsxs("span",{className:"label-xs s-moving-inspector-token-pct",children:[e.contextPct,"%"]})]}),s.jsx("div",{className:"s-moving-inspector-token-bar",children:s.jsx("div",{className:`s-moving-inspector-token-fill ${e.contextPct>80?"s-moving-inspector-token-fill--warn":""}`,style:{width:`${e.contextPct}%`}})}),e.tokensUsed!==null&&e.tokensMax!==null&&s.jsxs("span",{className:"label-xs s-moving-inspector-token-counts",children:[Math.round(e.tokensUsed/1e3),"k / ",Math.round(e.tokensMax/1e3),"k tokens"]})]}),s.jsxs("div",{className:"s-moving-inspector-section",children:[s.jsx("span",{className:"label-xs s-moving-inspector-sec-label",children:"Session Metadata"}),s.jsxs("dl",{className:"s-moving-inspector-meta-grid",children:[e.projectRoot&&s.jsxs("div",{children:[s.jsx("dt",{children:"Root"}),s.jsx("dd",{title:e.projectRoot,children:C(e.projectRoot)})]}),e.sessionAge&&s.jsxs("div",{children:[s.jsx("dt",{children:"Session"}),s.jsxs("dd",{children:[e.sessionAge," uptime"]})]}),s.jsxs("div",{children:[s.jsx("dt",{children:"Status"}),s.jsx("dd",{children:e.live?"streaming":"ready"})]})]})]}),e.touchedFiles.length>0&&s.jsxs("div",{className:"s-moving-inspector-section",children:[s.jsxs("span",{className:"label-xs s-moving-inspector-sec-label",children:["Active Files (",e.touchedFiles.length,")"]}),s.jsx("ul",{className:"s-moving-inspector-files-list",children:e.touchedFiles.slice(0,4).map((t,a)=>s.jsxs("li",{className:"s-moving-inspector-file-item",children:[s.jsx(X,{size:11,"aria-hidden":"true"}),s.jsx("span",{className:"s-moving-inspector-file-path",title:t.path,children:t.path.split("/").slice(-2).join("/")})]},a))})]})]}),s.jsxs("footer",{className:"s-moving-inspector-footer",children:[e.observeRoute&&s.jsxs("button",{type:"button",className:"btn btn--sm btn--accent s-moving-inspector-primary-action",onClick:()=>n(e.observeRoute),children:[s.jsx("span",{children:"Observe Live"}),s.jsx(_,{size:11,"aria-hidden":"true"})]}),e.profileRoute&&s.jsx("button",{type:"button",className:"btn btn--sm btn--ghost",onClick:()=>n(e.profileRoute),children:s.jsx("span",{children:"Profile"})}),e.terminalEnabled&&e.terminalRoute&&s.jsxs("button",{type:"button",className:"btn btn--sm btn--ghost",onClick:()=>n(e.terminalRoute),children:[s.jsx(J,{size:11,"aria-hidden":"true"}),s.jsx("span",{children:"Terminal"})]})]})]})}function te({row:e,top:i,left:n}){return e?s.jsxs("div",{className:"s-moving-signal-hovercard",style:{top:i,left:n},role:"tooltip","aria-hidden":"true",children:[s.jsxs("div",{className:"s-moving-signal-hover-kicker",children:[e.live&&s.jsx("span",{className:"chip chip--working chip--sm chip--caps",children:"Live"}),s.jsxs("span",{className:"label-xs",children:[e.lastAge," ago"]}),e.harness&&s.jsx(I,{harness:e.harness,size:11}),s.jsx("span",{className:"s-moving-signal-hover-name",children:e.name})]}),s.jsx("p",{className:"s-moving-signal-hover-action",children:e.action}),e.nowLine&&s.jsxs("p",{className:"s-moving-signal-hover-now",children:[s.jsx("span",{className:"label-xs s-moving-signal-hover-now-tag",children:"Now"}),s.jsx("span",{children:e.nowLine})]})]}):null}export{Le as HomeMovingSignalList};
1
+ import{r as x,j as s}from"./index-C1VaWNuD.js";import{H as I}from"./HarnessMark-DttReffF.js";import{n as S}from"./time-Dhsh_2EG.js";import{i as T}from"./agent-lanes-model-tc-1hE6q.js";import{u as v,l as $,a as P,c as H,h as z,b as F,d as b}from"./home-live-action-BkqGLVRY.js";import{C as W}from"./cpu-CHFIGw87.js";import{G as D}from"./git-branch-Bc_eDIpG.js";import{X as q}from"./x-DgmmnPKt.js";import{F as X}from"./file-code-corner-jlGFdr8d.js";import{A as _}from"./arrow-right-DTX42clh.js";import{T as J}from"./terminal-UDy4lzV1.js";import"./context-budget-DqxWzalx.js";import"./terminal-sessions-Bdt2W3Y4.js";import"./api-Co9aQ2Jw.js";import"./perf-PX8Rx0EP.js";import"./lane-observe-vfyACHi0.js";import"./tail-display-DcliDVkW.js";import"./lane-edit-display-C_Aujldz.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./createLucideIcon-Dv8H8m7J.js";function Q(e){const i=e?.task?.trim();return!i||/^(working|idle|queued)$/i.test(i)?null:v(i)}function Y(e,i){const n=e?.replace(/\s+/g," ").trim().toLowerCase()??"",t=i?.replace(/\s+/g," ").trim().toLowerCase()??"";return!!(n&&t&&n!==t)}function y(e,i){const n=S(e);if(n===null)return"—";const t=Math.max(0,Math.floor((i-n)/1e3));if(t<60)return`${t}s`;const a=Math.floor(t/60);if(a<60)return`${a}m`;const o=Math.floor(a/60);return o<48?`${o}h`:`${Math.floor(o/24)}d`}function C(e){return e?e.startsWith("/Users/")?`~/${e.split("/").slice(3).join("/")}`:(e.startsWith("~/"),e):null}function M(e){const i=C(e);if(!i)return"other";const n=i.replace(/\/+$/u,"").split("/").filter(Boolean);return n[n.length-1]??i}function K(e){if(!C(e))return"other";const n=M(e);return n==="other"?"other":`~/${n}`}function U(e,i=140){const n=(e??"").replace(/\s+/g," ").trim();return n?n.length>i?`${n.slice(0,i-1)}…`:n:""}function B(e){const i=e?.metadata?.usage,n=i?.contextInputTokens,t=i?.contextWindowTokens;return typeof n=="number"&&typeof t=="number"&&t>0?{contextPct:Math.min(100,Math.round(n/t*100)),tokensUsed:n,tokensMax:t}:{contextPct:null,tokensUsed:null,tokensMax:null}}function Z(e,i,n,t,a,o){const c=e.projectRoot??e.cwd??null,u=M(c),m=Q(i),g=v($({observeData:n,checkpoint:null,fallbackTask:null,observeLive:t,skipLifecycleTokens:!0})),p=v(P(n)),N=!m&&!g&&!p,r=H({harness:e.harness,project:u==="other"?null:u,branch:e.branch,live:t,attachedOnly:N&&!t}),f=m||g||v(i?.summary)||p||r||"Working",j=m&&g&&Y(m,g)?g:null,h=S(n?.metadata?.session?.sessionStart),{contextPct:R,tokensUsed:k,tokensMax:L}=B(n);return{id:e.id,action:v(f)||U(f,160)||"Working",nowLine:j,name:e.name,harness:e.harness?.trim()||null,projectKey:u,projectLabel:K(c),projectRoot:c,branch:e.branch?.trim()||null,lastAge:y(a,o),sessionAge:h!==null?y(h,o):null,live:t||!!(i&&(i.status==="working"||i.agentState==="working"||i.agentState==="in_flight")),contextPct:R,tokensUsed:k,tokensMax:L,touchedFiles:n?.files??[],recentEvents:(n?.events??[]).slice(-6),observeData:n??null,agent:e,observeRoute:b(e,"observe"),profileRoute:b(e,"profile"),terminalRoute:b(e,"terminal"),peekRoute:b(e,"peek"),terminalEnabled:F(e),peekEnabled:z(e)}}function w(e,i,n){const t=e.agent,a=T(e.observe),o=t.projectRoot??t.cwd??null,c=M(o),u=v($({observeData:e.observe,fallbackTask:null,observeLive:a,skipLifecycleTokens:!0})),m=v(P(e.observe)),g=u||m||H({harness:t.harness,project:c==="other"?null:c,branch:t.branch,live:a,attachedOnly:!u&&!m}),p=S(e.observe?.metadata?.session?.sessionStart),{contextPct:N,tokensUsed:r,tokensMax:f}=B(e.observe);return{id:e.id,action:v(g)||U(g,160)||"Active",nowLine:null,name:t.name,harness:t.harness?.trim()||null,projectKey:c,projectLabel:K(o),projectRoot:o,branch:t.branch?.trim()||null,lastAge:y(i,n),sessionAge:p!==null?y(p,n):null,live:a,contextPct:N,tokensUsed:r,tokensMax:f,touchedFiles:e.observe?.files??[],recentEvents:(e.observe?.events??[]).slice(-6),observeData:e.observe??null,agent:t,observeRoute:b(t,"observe"),profileRoute:b(t,"profile"),terminalRoute:b(t,"terminal"),peekRoute:b(t,"peek"),terminalEnabled:F(t),peekEnabled:z(t)}}function ee(e,i,n){const t=e.actorName??e.agentName??e.agentId??"Observed",a=v(e.title)||v(e.summary)||"Observed activity",o=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:t,harness:null,projectKey:"observed",projectLabel:"observed",projectRoot:null,branch:null,lastAge:y(i,n),sessionAge:null,live:!1,contextPct:null,tokensUsed:null,tokensMax:null,touchedFiles:[],recentEvents:[],observeData:null,agent:null,observeRoute:o,profileRoute:e.agentId?{view:"agents-v2",agentId:e.agentId,tab:"profile"}:null,terminalRoute:null,peekRoute:null,terminalEnabled:!1,peekEnabled:!1}}function se(e){const i=new Map;for(const n of e){const t=i.get(n.projectKey)??[];t.push(n),i.set(n.projectKey,t)}return[...i.entries()]}function Le({cards:e,sort:i,nowMs:n,movingAskByAgent:t,observeCache:a,navigate:o}){const[c,u]=x.useState(null),[m,g]=x.useState(null),p=x.useRef(null),N=x.useRef(null),r=x.useMemo(()=>e.map(l=>l.bucket==="working"?Z(l.agent,t.get(l.agent.id),a[l.agent.id]?.data??null,T(a[l.agent.id]?.data),l.lastActivityAt,n):l.bucket==="native"?w(l.lane,l.lastActivityAt,n):ee(l.actor,l.lastActivityAt,n)),[e,t,n,a]),f=x.useMemo(()=>se(r),[r]),j=r.findIndex(l=>l.id===c),h=j>=0?r[j]:null,R=x.useCallback((l,d)=>{c||(p.current!==null&&window.clearTimeout(p.current),p.current=window.setTimeout(()=>{const O=Math.max(16,Math.min(d.left+96,window.innerWidth-360-16)),V=d.bottom+8+220>window.innerHeight?Math.max(16,d.top-8-220):d.bottom+8;g({id:l,top:V,left:O})},180))},[c]),k=x.useCallback(()=>{p.current!==null&&window.clearTimeout(p.current),p.current=null,g(null)},[]),L=x.useCallback(l=>{k(),u(d=>d===l?null:l)},[k]),G=x.useCallback(l=>{if(r.length!==0)if(l.key==="ArrowDown"){l.preventDefault();const d=j<0?0:Math.min(r.length-1,j+1);u(r[d]?.id??null)}else if(l.key==="ArrowUp"){l.preventDefault();const d=j<0?r.length-1:Math.max(0,j-1);u(r[d]?.id??null)}else l.key==="Escape"?(l.preventDefault(),u(null)):l.key==="Enter"&&h&&h.observeRoute&&(l.preventDefault(),o(h.observeRoute))},[o,h,j,r]);return x.useEffect(()=>{c&&!r.some(l=>l.id===c)&&u(null)},[c,r]),s.jsxs("div",{ref:N,className:`s-moving-signal-stage ${h?"s-moving-signal-stage--split":""}`,onKeyDown:G,tabIndex:0,role:"region","aria-label":"What's moving signal stream and inspector",children:[s.jsx("div",{className:"s-moving-stream-pane",children:i==="grouped"?s.jsx("div",{className:"s-moving-signal-grouped",children:f.map(([l,d])=>s.jsxs("section",{className:"s-moving-signal-group",children:[s.jsxs("header",{className:"s-moving-signal-band",children:[s.jsx("span",{className:"s-moving-signal-band-title",children:d[0]?.projectLabel??l}),s.jsxs("span",{className:"label-xs s-moving-signal-band-count",children:[d.length," ",d.length===1?"Signal":"Signals",d[0]?.branch?` · ${d[0].branch}`:""]})]}),s.jsx("div",{className:"s-moving-signal-list",children:d.map(A=>s.jsx(E,{row:A,grouped:!0,selected:c===A.id,onSelect:L,onHoverStart:R,onHoverEnd:k},A.id))})]},l))}):s.jsx("div",{className:"s-moving-signal-list",children:r.map(l=>s.jsx(E,{row:l,selected:c===l.id,onSelect:L,onHoverStart:R,onHoverEnd:k},l.id))})}),h&&s.jsx("aside",{className:"s-moving-inspector-pane","aria-label":`Live Inspector · ${h.name}`,children:s.jsx(ne,{row:h,onClose:()=>u(null),navigate:o})}),!h&&m&&s.jsx(te,{row:r.find(l=>l.id===m.id)??null,top:m.top,left:m.left})]})}function E({row:e,grouped:i,selected:n,onSelect:t,onHoverStart:a,onHoverEnd:o}){const c=e.projectKey!=="other"&&e.projectKey!=="observed",u=i||!c?e.name:e.projectKey;return s.jsx("div",{className:"s-moving-signal-item",children:s.jsxs("button",{type:"button",className:`s-moving-signal-row ${n?"is-selected":""}`,"aria-pressed":n,onClick:()=>t(e.id),onMouseEnter:m=>a(e.id,m.currentTarget.getBoundingClientRect()),onMouseLeave:o,onFocus:m=>a(e.id,m.currentTarget.getBoundingClientRect()),onBlur:o,children:[s.jsxs("span",{className:`s-moving-signal-age ${e.live?"is-live":""}`,children:[s.jsx("span",{className:`dot ${e.live?"dot--working dot--pulse dot--glow":"dot--neutral"}`,"aria-hidden":"true"}),s.jsx("span",{className:"label-xs",children:e.lastAge})]}),s.jsx("span",{className:"s-moving-signal-mark",children:e.harness?s.jsx(I,{harness:e.harness,size:12}):s.jsx(W,{size:12})}),s.jsxs("span",{className:"s-moving-signal-where",children:[s.jsx("span",{className:"s-moving-signal-project",children:u}),e.branch&&s.jsxs("span",{className:"chip chip--mono chip--sm chip--neutral s-moving-signal-branch-chip",children:[s.jsx(D,{size:9,"aria-hidden":"true"}),s.jsx("span",{children:e.branch})]})]}),s.jsx("span",{className:"s-moving-signal-action",title:e.action,children:e.action}),e.contextPct!==null&&s.jsxs("span",{className:"s-moving-signal-ctx-badge",title:`Context window: ${e.contextPct}%`,children:[s.jsx("span",{className:"s-moving-signal-ctx-mini-bar",children:s.jsx("span",{className:"s-moving-signal-ctx-mini-fill",style:{width:`${e.contextPct}%`}})}),s.jsxs("span",{className:"label-xs",children:[e.contextPct,"%"]})]})]})})}function ne({row:e,onClose:i,navigate:n}){return s.jsxs("div",{className:"s-moving-inspector",children:[s.jsxs("header",{className:"s-moving-inspector-head",children:[s.jsxs("div",{className:"s-moving-inspector-head-left",children:[s.jsx("span",{className:`dot dot--sm ${e.live?"dot--working dot--glow dot--pulse":"dot--neutral"}`,"aria-hidden":"true"}),s.jsx("span",{className:"label-xs s-moving-inspector-live-status",children:e.live?"LIVE ACTIVE":"IDLE / LOGGED"}),s.jsxs("span",{className:"label-xs s-moving-inspector-age",children:[e.lastAge," ago"]})]}),s.jsx("div",{className:"s-moving-inspector-head-right",children:s.jsx("button",{type:"button",className:"s-moving-inspector-close-btn",title:"Close inspector (Esc)","aria-label":"Close inspector",onClick:i,children:s.jsx(q,{size:13,"aria-hidden":"true"})})})]}),s.jsxs("div",{className:"s-moving-inspector-agent-strip",children:[s.jsxs("div",{className:"s-moving-inspector-agent-ident",children:[s.jsx("span",{className:"s-moving-inspector-harness-icon",children:e.harness?s.jsx(I,{harness:e.harness,size:16}):s.jsx(W,{size:16})}),s.jsxs("div",{className:"s-moving-inspector-agent-meta",children:[s.jsx("span",{className:"s-moving-inspector-name",children:e.name}),s.jsx("span",{className:"label-xs s-moving-inspector-harness-tag",children:e.harness||"native agent"})]})]}),e.branch&&s.jsxs("span",{className:"chip chip--mono chip--sm chip--working",children:[s.jsx(D,{size:10,"aria-hidden":"true"}),s.jsx("span",{children:e.branch})]})]}),s.jsxs("div",{className:"s-moving-inspector-body",children:[s.jsxs("div",{className:"s-moving-inspector-section",children:[s.jsx("span",{className:"label-xs s-moving-inspector-sec-label",children:"Active Task"}),s.jsx("p",{className:"s-moving-inspector-action-text",children:e.action})]}),e.nowLine&&s.jsxs("div",{className:"s-moving-inspector-section s-moving-inspector-section--now",children:[s.jsx("span",{className:"label-xs s-moving-inspector-now-badge",children:"Latest Step"}),s.jsx("p",{className:"s-moving-inspector-now-text",children:e.nowLine})]}),e.contextPct!==null&&s.jsxs("div",{className:"s-moving-inspector-section s-moving-inspector-token-sec",children:[s.jsxs("div",{className:"s-moving-inspector-token-header",children:[s.jsx("span",{className:"label-xs s-moving-inspector-sec-label",children:"Context Window"}),s.jsxs("span",{className:"label-xs s-moving-inspector-token-pct",children:[e.contextPct,"%"]})]}),s.jsx("div",{className:"s-moving-inspector-token-bar",children:s.jsx("div",{className:`s-moving-inspector-token-fill ${e.contextPct>80?"s-moving-inspector-token-fill--warn":""}`,style:{width:`${e.contextPct}%`}})}),e.tokensUsed!==null&&e.tokensMax!==null&&s.jsxs("span",{className:"label-xs s-moving-inspector-token-counts",children:[Math.round(e.tokensUsed/1e3),"k / ",Math.round(e.tokensMax/1e3),"k tokens"]})]}),s.jsxs("div",{className:"s-moving-inspector-section",children:[s.jsx("span",{className:"label-xs s-moving-inspector-sec-label",children:"Session Metadata"}),s.jsxs("dl",{className:"s-moving-inspector-meta-grid",children:[e.projectRoot&&s.jsxs("div",{children:[s.jsx("dt",{children:"Root"}),s.jsx("dd",{title:e.projectRoot,children:C(e.projectRoot)})]}),e.sessionAge&&s.jsxs("div",{children:[s.jsx("dt",{children:"Session"}),s.jsxs("dd",{children:[e.sessionAge," uptime"]})]}),s.jsxs("div",{children:[s.jsx("dt",{children:"Status"}),s.jsx("dd",{children:e.live?"streaming":"ready"})]})]})]}),e.touchedFiles.length>0&&s.jsxs("div",{className:"s-moving-inspector-section",children:[s.jsxs("span",{className:"label-xs s-moving-inspector-sec-label",children:["Active Files (",e.touchedFiles.length,")"]}),s.jsx("ul",{className:"s-moving-inspector-files-list",children:e.touchedFiles.slice(0,4).map((t,a)=>s.jsxs("li",{className:"s-moving-inspector-file-item",children:[s.jsx(X,{size:11,"aria-hidden":"true"}),s.jsx("span",{className:"s-moving-inspector-file-path",title:t.path,children:t.path.split("/").slice(-2).join("/")})]},a))})]})]}),s.jsxs("footer",{className:"s-moving-inspector-footer",children:[e.observeRoute&&s.jsxs("button",{type:"button",className:"btn btn--sm btn--accent s-moving-inspector-primary-action",onClick:()=>n(e.observeRoute),children:[s.jsx("span",{children:"Observe Live"}),s.jsx(_,{size:11,"aria-hidden":"true"})]}),e.profileRoute&&s.jsx("button",{type:"button",className:"btn btn--sm btn--ghost",onClick:()=>n(e.profileRoute),children:s.jsx("span",{children:"Profile"})}),e.terminalEnabled&&e.terminalRoute&&s.jsxs("button",{type:"button",className:"btn btn--sm btn--ghost",onClick:()=>n(e.terminalRoute),children:[s.jsx(J,{size:11,"aria-hidden":"true"}),s.jsx("span",{children:"Terminal"})]})]})]})}function te({row:e,top:i,left:n}){return e?s.jsxs("div",{className:"s-moving-signal-hovercard",style:{top:i,left:n},role:"tooltip","aria-hidden":"true",children:[s.jsxs("div",{className:"s-moving-signal-hover-kicker",children:[e.live&&s.jsx("span",{className:"chip chip--working chip--sm chip--caps",children:"Live"}),s.jsxs("span",{className:"label-xs",children:[e.lastAge," ago"]}),e.harness&&s.jsx(I,{harness:e.harness,size:11}),s.jsx("span",{className:"s-moving-signal-hover-name",children:e.name})]}),s.jsx("p",{className:"s-moving-signal-hover-action",children:e.action}),e.nowLine&&s.jsxs("p",{className:"s-moving-signal-hover-now",children:[s.jsx("span",{className:"label-xs s-moving-signal-hover-now-tag",children:"Now"}),s.jsx("span",{children:e.nowLine})]})]}):null}export{Le as HomeMovingSignalList};
@@ -0,0 +1 @@
1
+ import{r as _,j as t}from"./index-C1VaWNuD.js";import{A as ee}from"./AgentAvatar-Dz79iTxB.js";import{H as te}from"./HarnessMark-DttReffF.js";import{a as se}from"./colors-BtO5_zlx.js";import{f as ne}from"./runtime-picker-C20lTGhV.js";import{n as x}from"./time-Dhsh_2EG.js";import{l as re,h as ie,b as ae,d as G}from"./home-live-action-BkqGLVRY.js";import{a as oe}from"./agent-lane-card-model-CY3OE1Xu.js";import{HomeNowNanoStat as A,HomeNowFilesPanel as le}from"./home-now-card-nano-Jmy7eJ6H.js";import"./Provider-D0bB7q6y.js";import"./router-kfcaYqZr.js";import"./perf-PX8Rx0EP.js";import"./synthetic-agent-routing-aduMYO7P.js";import"./terminal-sessions-Bdt2W3Y4.js";import"./api-Co9aQ2Jw.js";import"./sse-B29iGBnw.js";import"./index-BWHgHrtv.js";import"./surface-activity-B1rgWB1i.js";import"./scoutbot-D7kGGyK_.js";import"./NewChatComposer-D2Ah4T-W.js";import"./conversation-model-C2KuZUXc.js";import"./createLucideIcon-Dv8H8m7J.js";import"./index-Cx6Gbr6n.js";import"./NewChatOrigin-DCn5cWPZ.js";import"./keyboard-nav-B8sQ_8IF.js";import"./x-DgmmnPKt.js";import"./chevron-down-D120PY4g.js";import"./search-FB2vVxCp.js";import"./loader-circle-DmUG_YC7.js";import"./file-text-BHro8MkG.js";import"./model-CBkMvT1w.js";import"./DocumentFocusViewer-D8iB6SMt.js";import"./TextDocumentSurface-2X1Gw4eA.js";import"./chevron-right-CowuvuE6.js";import"./code-xml-CkkNdRmu.js";import"./arrow-left-eToA6GxC.js";import"./arrow-right-DTX42clh.js";import"./scout-voice-Cg1qfepC.js";import"./fx-z37u1o2z.js";import"./chunk-HRAB3GC3-KjjrTLCU.js";import"./SpriteAvatar-DFO4Kb4Z.js";import"./CrewAvatar-CZ_faQ_s.js";import"./voice-levels-Dcr3jglk.js";import"./context-budget-DqxWzalx.js";import"./lane-observe-vfyACHi0.js";import"./tail-display-DcliDVkW.js";import"./lane-edit-display-C_Aujldz.js";import"./bash-format-BRV5C6Gv.js";import"./agent-lane-preview-BhplDYGf.js";import"./lane-ask-display-B6iCAVcd.js";import"./agent-lanes-model-tc-1hE6q.js";function ce(e,s,r,n){const i={id:e.id,agent:e,source:e.id.startsWith("native:")?"native":"scout",observe:s??null,lastActiveAt:n};return oe(i,{isLive:r,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,s=140){const r=(e??"").replace(/\s+/g," ").trim();return r?r.length>s?`${r.slice(0,s-1)}…`:r:""}function me(e,s=118){if(e.length<=s)return e;const r=Math.ceil((s-1)*.58),n=Math.floor((s-1)*.42);return`${e.slice(0,r).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 s=e?.trim();if(!s)return null;const r=s.endsWith(".jsonl")?s.slice(0,-6):s,n=r.split(/[/:]/u).filter(Boolean).pop()??r;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 s=e?.trim();return s?s.replace(/^claude-/iu,"").replace(/^gpt-/iu,"gpt ").replace(/\s*\([^)]*\)\s*/u," ").replace(/\s+/g," ").trim():null}function fe(e){const s=e?.trim();return s?s.replace(/\.local$/iu,"").replace(/-local$/iu,""):null}function W(e,s){const r=x(e);if(r===null)return"—";const n=Math.max(0,Math.floor((s-r)/1e3));if(n<60)return`${n}s`;const i=Math.floor(n/60);if(i<60)return`${i}m`;const d=Math.floor(i/60);return d<48?`${d}h`:`${Math.floor(d/24)}d`}function xe(e,s){const r=e?.summary?.trim();if(!r)return null;const n=r.replace(/\s+/g," ");return!n||n===s||/acknowledged via|queued for local execution|received the message/i.test(n)?null:{line:ue(n,120)}}function we(e,s,r=!1){const n=x(s?.startedAt)??x(s?.acknowledgedAt)??x(s?.updatedAt)??null,i=x(e.updatedAt),d=s?.task?.trim()||e.project||Q(e.cwd)||`Working in ${e.project??"workspace"}`,c=s?.status??"working",u=se(e.state)||r,m=c==="queued"?"queued":u?"working":"idle";return{agentId:e.id,agentName:e.name,harness:s?.harness??e.harness,model:e.model,branch:e.branch??"main",task:{title:d,openedAt:n},execution:{state:m,lastEventAt:i},checkpoint:xe(s,d)}}function je(e){return e.execution.state==="queued"?"queued":e.execution.state==="idle"?"idle":"live"}function ke(e,s){e.key!=="Enter"&&e.key!==" "||(e.preventDefault(),s())}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,s){return s?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,s){if(e.length<=s)return e;const r=new Array(s).fill(0);for(let n=0;n<e.length;n+=1){const i=Math.min(s-1,Math.floor(n/e.length*s));r[i]+=e[n]}return r}function z({pulse:e,layout:s}){const{w:r,h:n}=ge(s),i=ye(e.counts,Math.max(5,Math.round(r/8))),d=i.length>0?Math.max(...i):0;if(d<=0||i.length<2)return null;const c=2,u=r/i.length,m=Math.max(1.5,u-c),N=2,v=n-1,l=i.length-1;return t.jsx("span",{className:"s-now-card-pulse",style:{width:r,height:n},title:"activity · last 30m","aria-hidden":"true",children:t.jsx("svg",{viewBox:`0 0 ${r} ${n}`,preserveAspectRatio:"none",children:i.map((a,j)=>{if(a<=0)return null;const g=Math.min(v,Math.max(N,a/d*v)),k=j*u+(u-m)/2;return t.jsx("rect",{x:k.toFixed(2),y:(n-g).toFixed(2),width:m.toFixed(2),height:g.toFixed(2),fill:"var(--accent)",fillOpacity:j===l?"0.95":"0.62"},j)})})})}function gt({agent:e,ask:s,context:r,observeData:n,observeLive:i=!1,lastActivityAt:d,layout:c,nowMs:u,navigate:m,enter:N=!1,enterIndex:v=0}){const l=we(e,s,i),a=_.useMemo(()=>ce(e,n,i,u),[e,n,i,u]),j=de(a),g=ve(c,j),k=je(l),H=e.projectRoot??e.cwd??void 0,R=Q(H)??"no workspace",M=l.branch??"no branch",b=a.harness??l.harness??null,y=a.model??he(r?.model??l.model),q=pe(r?.sessionId??e.harnessSessionId),h=a.context??r?.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(o=>o>0)),U=l.task.openedAt?W(l.task.openedAt,u):"new",P=x(d)??l.execution.lastEventAt,S=W(P,u),E=re({observeData:n,checkpoint:l.checkpoint?.line??null,fallbackTask:l.task.title,observeLive:i,skipLifecycleTokens:!0}),J=ie(e),X=ae(e),w=c==="dense",T=c==="strip",Y=a.pops.edits.rows.length>0?a.pops.edits:a.pops.files,Z=a.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:l.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"),$=o=>F=>{B(F),m(G(e,o))};return t.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:o=>ke(o,()=>m(V)),role:"button",tabIndex:0,children:[t.jsxs("div",{className:"s-now-card-top",children:[t.jsx(ee,{agent:e,placement:"row",size:be(c),className:"s-now-card-avatar"}),t.jsxs("div",{className:"s-now-card-ident",children:[t.jsx("span",{className:"s-now-card-name",title:l.agentName,children:l.agentName}),!w&&!T?t.jsxs("span",{className:`s-now-card-live s-now-card-live--${k}`,children:[t.jsx("span",{className:"s-now-card-live-dot","aria-hidden":"true"}),k]}):null]}),b||y?t.jsxs("div",{className:"s-now-card-runtime",title:y??b??void 0,children:[b?t.jsx(te,{harness:b,size:Ne(c),className:"s-now-card-hmark"}):null,y?t.jsx("span",{className:"s-now-card-model",children:y}):null]}):null]}),w?t.jsx("div",{className:"s-now-card-idline s-now-card-idline--dense",children:[b,R,M].filter(Boolean).join(" · ")}):t.jsx("div",{className:"s-now-card-idline",children:O.map((o,F)=>t.jsxs("span",{className:"s-now-card-idgroup",children:[F>0?t.jsx("span",{className:"s-now-card-idsep","aria-hidden":"true",children:"·"}):null,t.jsx("span",{className:`s-now-card-idpart${o.mono?" s-now-card-idpart--mono":""}`,title:o.title,children:o.text})]},o.key))}),E?t.jsxs("div",{className:`s-now-card-action${i?" s-now-card-action--live":""}`,children:[t.jsx("span",{className:"s-now-card-action-caret","aria-hidden":"true",children:"›"}),t.jsx("span",{className:"s-now-card-action-text",title:E,children:E}),i?t.jsx("span",{className:"s-now-card-action-cursor","aria-hidden":"true"}):null]}):null,w&&L&&p?t.jsx("div",{className:"s-now-card-pulse-cell",children:t.jsx(z,{pulse:p,layout:c})}):null,g?t.jsxs("div",{className:"s-now-card-detail",onClick:B,children:[t.jsxs("div",{className:"s-now-card-nanos",children:[a.stats.tools>0?t.jsxs(t.Fragment,{children:[t.jsx(A,{value:a.stats.tools,label:"tools",group:a.pops.tools}),a.stats.edits>0?t.jsx(A,{value:a.stats.edits,label:"edits",group:a.pops.edits}):null,a.stats.reads>0?t.jsx(A,{value:a.stats.reads,label:"reads",group:a.pops.reads}):null,a.stats.files>0?t.jsx(A,{value:a.stats.files,label:"files",group:a.pops.files}):null]}):t.jsx("span",{className:"s-now-card-nanos-empty",children:"no tool activity yet"}),L&&p?t.jsx(z,{pulse:p,layout:c}):null,h!==null?t.jsxs("span",{className:"s-now-card-ctx",title:`Context window ${h}% used`,children:[t.jsx("span",{className:"s-now-card-ctx-gauge","aria-hidden":"true",children:t.jsx("span",{className:"s-now-card-ctx-fill",style:{width:`${h}%`}})}),t.jsxs("span",{className:"s-now-card-ctx-val",children:[h,"%"]}),t.jsx("span",{className:"s-now-card-ctx-label",children:"ctx"})]}):null]}),t.jsx(le,{label:Z,group:Y})]}):null,!w&&!T?t.jsx("div",{className:"s-now-card-metrics",style:{gridTemplateColumns:`repeat(${f.length}, minmax(0, 1fr))`},"aria-label":`${l.agentName} signals`,children:f.map(o=>t.jsx($e,{label:o.label,value:o.value,tone:o.tone,title:o.title},o.key))}):t.jsxs("div",{className:"s-now-card-metrics s-now-card-metrics--inline","aria-label":`${l.agentName} signals`,children:[T&&L&&p?t.jsx(z,{pulse:p,layout:c}):null,f.map(o=>t.jsx("span",{className:`s-now-card-metric-inline s-now-card-metric-inline--${o.tone??"dim"}`,title:o.title,children:o.inlineValue??o.value},o.key))]}),t.jsxs("div",{className:"s-now-card-actions",onClick:B,children:[t.jsx(C,{label:"Profile",onClick:$("profile")}),t.jsx(C,{label:"Observe",onClick:$("observe"),primary:!0}),t.jsx(C,{label:"Terminal",onClick:$("terminal"),disabled:!X}),t.jsx(C,{label:"Peek",onClick:$("peek"),disabled:!J})]})]})}function C({label:e,onClick:s,primary:r=!1,disabled:n=!1}){return t.jsx("button",{type:"button",className:`s-now-card-action-btn${r?" s-now-card-action-btn--primary":""}`,onClick:s,disabled:n,"aria-label":e,children:e})}function $e({label:e,value:s,tone:r="dim",title:n}){return t.jsxs("span",{className:`s-metric-tile s-metric-tile--${r}`,title:n,children:[t.jsx("strong",{children:s}),t.jsx("span",{children:e})]})}export{gt as NowCard};
@@ -1 +1 @@
1
- import{j as s}from"./index-DvLtl7rV.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
+ import{j as s}from"./index-C1VaWNuD.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 a,j as p}from"./index-DvLtl7rV.js";import{b as k,ac as N,s as O,c as A,h as b}from"./router-B9vQkNJL.js";import{a as S}from"./api-Co9aQ2Jw.js";import{o as L,i as M}from"./surface-activity-B1rgWB1i.js";import{h as R}from"./NewChatComposer-_Stj0fZy.js";import{u as v}from"./Provider-CtXJeLrP.js";import{l as T}from"./mesh-buckets-6y3ZIibI.js";import{S as _}from"./server-Bzj7lPIx.js";import{i as x}from"./keyboard-nav-BLYDhL3Z.js";import{S as I}from"./scoutbot-BJIamJOH.js";import{a as j,b as $,c as B,d as K}from"./secondaryNavConfig-BoQ_zYR9.js";import{S as W}from"./settings-Dyvpkb1D.js";function D(e){return e?e.replace(/^https?:\/\//,"").split("/")[0].split(":")[0].split(".")[0]||e:""}function C(e){return D(e?.hostName)||e?.name||"machine"}function g(e,n,o,r){const t=n?.trim();!t||e.has(t)||e.set(t,{id:t,label:o?.trim()||t,group:r})}function F(e,n,o){const r=new Map;e?.localNode?.id&&g(r,e.localNode.id,C(e.localNode),"local");for(const t of Object.values(e?.nodes??{}))g(r,t.id,C(t),t.id===e?.localNode?.id?"local":"mesh");for(const t of n)g(r,t.authorityNodeId,t.authorityNodeName??t.authorityNodeId,"agent"),g(r,t.homeNodeId,t.homeNodeName??t.homeNodeId,"agent");return o&&g(r,o,o,"selected"),Array.from(r.values()).sort((t,i)=>{const l=t.group==="local"?0:t.group==="mesh"?1:t.group==="agent"?2:3,u=i.group==="local"?0:i.group==="mesh"?1:i.group==="agent"?2:3;return l!==u?l-u:t.label.localeCompare(i.label)})}function H({variant:e="bar"}){const{route:n,navigate:o,agents:r}=v(),[t,i]=a.useState(null),[l,u]=a.useState(!1),c=a.useRef(null),s=k(n);a.useEffect(()=>{if(!N(n))return;let d=!1;return S("/api/mesh").then(h=>{d||i(h)}).catch(()=>{d||i(null)}),()=>{d=!0}},[n.view]),a.useEffect(()=>{if(!l)return;const d=E=>{c.current?.contains(E.target)||u(!1)},h=E=>{E.key==="Escape"&&u(!1)};return document.addEventListener("mousedown",d),document.addEventListener("keydown",h),()=>{document.removeEventListener("mousedown",d),document.removeEventListener("keydown",h)}},[l]);const m=a.useMemo(()=>F(t,r,s),[r,t,s]);if(!N(n))return null;const f=s?m.find(d=>d.id===s)?.label??s:"All machines",y=p.jsxs("select",{id:"machine-scope-select",className:"machine-scope-select",value:s??"",onChange:d=>{const h=d.currentTarget.value;o(h?O(n,h):A(n)),u(!1)},title:f,children:[p.jsx("option",{value:"",children:"All machines"}),m.map(d=>p.jsx("option",{value:d.id,children:d.group==="local"?`${d.label} (this machine)`:d.label},d.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(d=>!d),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 P="C",ge=["C"],Se=["⌘","⌥","N"],U="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 Ee(e){return x(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":"Crew & Workspaces",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 we(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==="advisor"?"Host Advisor":e.mode==="mission"||e.mode==="issues"||e.mode===void 0?"Mission Control":w.ops;case"settings":return"Settings";default:return null}}const G=j(),q={...w,ops:"System"},z=new Set(["ops","broker","harnesses","mesh","mesh-ops","terminal","search","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":case"repos":case"repo-diff":case"code":return"agents";case"sessions":return"sessions";case"conversation":case"messages":return"chat";case"ops":case"broker":case"harnesses":case"mesh":case"mesh-ops":case"terminal":case"search":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:n,items:o,activeKey:r,breadcrumb:t,navigate:i}){return a.createElement("div",{className:e},n&&a.createElement("span",{className:"scout-nav-scope-tag"},n),o.map(({key:l,label:u,route:c})=>a.createElement("button",{key:l,className:`scout-nav-tab${r===l?" active":""}`,onClick:()=>i(c)},u)),t&&a.createElement("span",{className:"scout-nav-slash"},"/"),t&&a.createElement("span",{className:"scout-nav-crumb"},t))}const te=$(),se=B();function ae(){const{route:e,navigate:n}=v(),o=b("ops.control",!0),r=b("surface.mesh-ops",!1),[t,i]=a.useState(!1),l=a.useRef(null);a.useEffect(()=>{if(!t)return;const c=m=>{m.target instanceof Node&&l.current?.contains(m.target)||i(!1)},s=m=>{m.key==="Escape"&&i(!1)};return window.addEventListener("mousedown",c,!0),window.addEventListener("keydown",s),()=>{window.removeEventListener("mousedown",c,!0),window.removeEventListener("keydown",s)}},[t]);const u=c=>a.createElement("button",{key:c.key,type:"button",role:"menuitem",className:`scout-nav-system-item${c.active(e)?" active":""}`,onClick:()=>{i(!1),n(c.route)}},c.label);return a.createElement("div",{className:"scout-nav-system",ref:l},a.createElement("button",{type:"button",className:`scout-nav-action scout-nav-action--system${J(e)?" active":""}`,"aria-haspopup":"menu","aria-expanded":t,title:"System",onClick:()=>i(c=>!c)},a.createElement("span",null,"System"),a.createElement("span",{className:"scout-nav-system-caret","aria-hidden":!0},"▾")),t&&a.createElement("div",{className:"scout-nav-system-menu",role:"menu"},te.map(u),o&&a.createElement("div",{className:"scout-nav-system-divider",role:"separator"}),o&&se.filter(c=>c.capability!=="surface.mesh-ops"||r).map(u)))}function ye(){const{navigate:e,agents:n,reload:o,applyScoutbotUiAction:r,openContextCapture:t}=v(),i=b("ops.control",!0),l=b("surface.scoutbot",!0),u=a.useCallback(()=>{r({type:"open-scoutbot",mode:"ask"}),window.dispatchEvent(new CustomEvent(I,{detail:{body:"What's the state of things? Give me a terse ops summary, the biggest risk, and the next action you recommend."}}))},[r]);return a.useMemo(()=>{const c=[{id:"session:new",label:U,action:()=>t(),shortcut:P},...K(e,{opsEnabled:i}),{id:"nav:settings",label:"Open Settings",action:()=>e({view:"settings",section:"appearance"}),shortcut:"Cmd+,"},...l?[{id:"scoutbot:open",label:"Open Scout",action:()=>r({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:()=>r({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 s of n)c.push({id:`scout:open:${s.id}`,label:`Open ${s.name}`,action:()=>e({view:"agents-v2",agentId:s.id})}),c.push({id:`scout:message:${s.id}`,label:`Message ${s.name}`,action:()=>{R(s).then(m=>{e({view:"conversation",conversationId:m})}).catch(()=>e({view:"agents-v2",agentId:s.id,tab:"message"}))}});return c},[n,r,u,e,t,i,l,o])}function ne(){const{onlineCount:e,apiConnection:n}=v(),[o,r]=a.useState(null),[t,i]=a.useState(null),l=a.useRef(0),u=a.useCallback(async()=>{const s=++l.current;try{const m=await S("/api/mesh");if(s!==l.current)return;r(m)}catch{if(s!==l.current)return;r(null)}},[]);a.useEffect(()=>{u();const s=()=>{M()&&u()},m=setInterval(s,15e3),f=L(s);return()=>{clearInterval(m),f()}},[u]),a.useEffect(()=>{let s=!1;return(async()=>{try{const m=await S("/api/build");if(s)return;if(!m.branch&&!m.commit){const f=await S("/api/build?refresh=1");s||i(f);return}i(m)}catch{s||i(null)}})(),()=>{s=!0}},[]);const c=(()=>{if(!t)return{label:"dev",title:"Build information unavailable"};const s=t.mode==="production"?"prod":"dev",m=t.branch??"unknown",f=t.commit?` @ ${t.commit}${t.dirty?"*":""}`:"";return{label:`${s} ${m}${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(`
1
+ import{r as a,j as p}from"./index-C1VaWNuD.js";import{b as k,ac as N,s as O,c as A,h as b}from"./router-kfcaYqZr.js";import{a as S}from"./api-Co9aQ2Jw.js";import{o as L,i as M}from"./surface-activity-B1rgWB1i.js";import{h as R}from"./NewChatComposer-D2Ah4T-W.js";import{u as v}from"./Provider-D0bB7q6y.js";import{l as T}from"./mesh-buckets-CLYS8Jx8.js";import{S as _}from"./server-WY6gsbZz.js";import{i as x}from"./keyboard-nav-B8sQ_8IF.js";import{S as I}from"./scoutbot-D7kGGyK_.js";import{a as j,b as $,c as B,d as K}from"./secondaryNavConfig-C0Srrmy8.js";import{S as W}from"./settings-DQEtqkM9.js";function D(e){return e?e.replace(/^https?:\/\//,"").split("/")[0].split(":")[0].split(".")[0]||e:""}function C(e){return D(e?.hostName)||e?.name||"machine"}function g(e,n,o,r){const t=n?.trim();!t||e.has(t)||e.set(t,{id:t,label:o?.trim()||t,group:r})}function F(e,n,o){const r=new Map;e?.localNode?.id&&g(r,e.localNode.id,C(e.localNode),"local");for(const t of Object.values(e?.nodes??{}))g(r,t.id,C(t),t.id===e?.localNode?.id?"local":"mesh");for(const t of n)g(r,t.authorityNodeId,t.authorityNodeName??t.authorityNodeId,"agent"),g(r,t.homeNodeId,t.homeNodeName??t.homeNodeId,"agent");return o&&g(r,o,o,"selected"),Array.from(r.values()).sort((t,i)=>{const l=t.group==="local"?0:t.group==="mesh"?1:t.group==="agent"?2:3,u=i.group==="local"?0:i.group==="mesh"?1:i.group==="agent"?2:3;return l!==u?l-u:t.label.localeCompare(i.label)})}function H({variant:e="bar"}){const{route:n,navigate:o,agents:r}=v(),[t,i]=a.useState(null),[l,u]=a.useState(!1),c=a.useRef(null),s=k(n);a.useEffect(()=>{if(!N(n))return;let d=!1;return S("/api/mesh").then(h=>{d||i(h)}).catch(()=>{d||i(null)}),()=>{d=!0}},[n.view]),a.useEffect(()=>{if(!l)return;const d=E=>{c.current?.contains(E.target)||u(!1)},h=E=>{E.key==="Escape"&&u(!1)};return document.addEventListener("mousedown",d),document.addEventListener("keydown",h),()=>{document.removeEventListener("mousedown",d),document.removeEventListener("keydown",h)}},[l]);const m=a.useMemo(()=>F(t,r,s),[r,t,s]);if(!N(n))return null;const f=s?m.find(d=>d.id===s)?.label??s:"All machines",y=p.jsxs("select",{id:"machine-scope-select",className:"machine-scope-select",value:s??"",onChange:d=>{const h=d.currentTarget.value;o(h?O(n,h):A(n)),u(!1)},title:f,children:[p.jsx("option",{value:"",children:"All machines"}),m.map(d=>p.jsx("option",{value:d.id,children:d.group==="local"?`${d.label} (this machine)`:d.label},d.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(d=>!d),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 P="C",ge=["C"],Se=["⌘","⌥","N"],U="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 Ee(e){return x(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":"Crew & Workspaces",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 we(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==="advisor"?"Host Advisor":e.mode==="mission"||e.mode==="issues"||e.mode===void 0?"Mission Control":w.ops;case"settings":return"Settings";default:return null}}const G=j(),q={...w,ops:"System"},z=new Set(["ops","broker","harnesses","mesh","mesh-ops","terminal","search","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":case"repos":case"repo-diff":case"code":return"agents";case"sessions":return"sessions";case"conversation":case"messages":return"chat";case"ops":case"broker":case"harnesses":case"mesh":case"mesh-ops":case"terminal":case"search":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:n,items:o,activeKey:r,breadcrumb:t,navigate:i}){return a.createElement("div",{className:e},n&&a.createElement("span",{className:"scout-nav-scope-tag"},n),o.map(({key:l,label:u,route:c})=>a.createElement("button",{key:l,className:`scout-nav-tab${r===l?" active":""}`,onClick:()=>i(c)},u)),t&&a.createElement("span",{className:"scout-nav-slash"},"/"),t&&a.createElement("span",{className:"scout-nav-crumb"},t))}const te=$(),se=B();function ae(){const{route:e,navigate:n}=v(),o=b("ops.control",!0),r=b("surface.mesh-ops",!1),[t,i]=a.useState(!1),l=a.useRef(null);a.useEffect(()=>{if(!t)return;const c=m=>{m.target instanceof Node&&l.current?.contains(m.target)||i(!1)},s=m=>{m.key==="Escape"&&i(!1)};return window.addEventListener("mousedown",c,!0),window.addEventListener("keydown",s),()=>{window.removeEventListener("mousedown",c,!0),window.removeEventListener("keydown",s)}},[t]);const u=c=>a.createElement("button",{key:c.key,type:"button",role:"menuitem",className:`scout-nav-system-item${c.active(e)?" active":""}`,onClick:()=>{i(!1),n(c.route)}},c.label);return a.createElement("div",{className:"scout-nav-system",ref:l},a.createElement("button",{type:"button",className:`scout-nav-action scout-nav-action--system${J(e)?" active":""}`,"aria-haspopup":"menu","aria-expanded":t,title:"System",onClick:()=>i(c=>!c)},a.createElement("span",null,"System"),a.createElement("span",{className:"scout-nav-system-caret","aria-hidden":!0},"▾")),t&&a.createElement("div",{className:"scout-nav-system-menu",role:"menu"},te.map(u),o&&a.createElement("div",{className:"scout-nav-system-divider",role:"separator"}),o&&se.filter(c=>c.capability!=="surface.mesh-ops"||r).map(u)))}function ye(){const{navigate:e,agents:n,reload:o,applyScoutbotUiAction:r,openContextCapture:t}=v(),i=b("ops.control",!0),l=b("surface.scoutbot",!0),u=a.useCallback(()=>{r({type:"open-scoutbot",mode:"ask"}),window.dispatchEvent(new CustomEvent(I,{detail:{body:"What's the state of things? Give me a terse ops summary, the biggest risk, and the next action you recommend."}}))},[r]);return a.useMemo(()=>{const c=[{id:"session:new",label:U,action:()=>t(),shortcut:P},...K(e,{opsEnabled:i}),{id:"nav:settings",label:"Open Settings",action:()=>e({view:"settings",section:"appearance"}),shortcut:"Cmd+,"},...l?[{id:"scoutbot:open",label:"Open Scout",action:()=>r({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:()=>r({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 s of n)c.push({id:`scout:open:${s.id}`,label:`Open ${s.name}`,action:()=>e({view:"agents-v2",agentId:s.id})}),c.push({id:`scout:message:${s.id}`,label:`Message ${s.name}`,action:()=>{R(s).then(m=>{e({view:"conversation",conversationId:m})}).catch(()=>e({view:"agents-v2",agentId:s.id,tab:"message"}))}});return c},[n,r,u,e,t,i,l,o])}function ne(){const{onlineCount:e,apiConnection:n}=v(),[o,r]=a.useState(null),[t,i]=a.useState(null),l=a.useRef(0),u=a.useCallback(async()=>{const s=++l.current;try{const m=await S("/api/mesh");if(s!==l.current)return;r(m)}catch{if(s!==l.current)return;r(null)}},[]);a.useEffect(()=>{u();const s=()=>{M()&&u()},m=setInterval(s,15e3),f=L(s);return()=>{clearInterval(m),f()}},[u]),a.useEffect(()=>{let s=!1;return(async()=>{try{const m=await S("/api/build");if(s)return;if(!m.branch&&!m.commit){const f=await S("/api/build?refresh=1");s||i(f);return}i(m)}catch{s||i(null)}})(),()=>{s=!0}},[]);const c=(()=>{if(!t)return{label:"dev",title:"Build information unavailable"};const s=t.mode==="production"?"prod":"dev",m=t.branch??"unknown",f=t.commit?` @ ${t.commit}${t.dirty?"*":""}`:"";return{label:`${s} ${m}${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:n.status==="offline"?{label:"Scout: OFFLINE",color:"red"}:n.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"},mesh:(()=>{const s=T(o);return n.status==="offline"?{label:s,value:"offline",color:"red"}:o===null?{label:s,value:"checking",color:"neutral"}:o.health.reachable?Object.values(o.nodes).filter(f=>f.id!==o.localNode?.id).length>0?{label:s,value:"connected",color:"neutral"}:o.identity.discoverable?{label:s,value:"discoverable",color:"neutral"}:{label:s,value:"local",color:"amber"}:{label:s,value:"offline",color:"neutral"}})(),build:c}}function Ne(){return ne().status}function Ce(){const{route:e,navigate:n}=v();return b("nav.sidebar",!1)?null:ee({items:Q(),activeKey:X(e),breadcrumb:Z(e),navigate:n})}function ke(){const{openSettings:e}=v();return b("nav.sidebar",!1)?null:a.createElement("div",{className:"scout-nav-actions"},a.createElement(ae),a.createElement(H,{variant:"nav"}),a.createElement("button",{onClick:()=>e(),className:"scout-nav-action scout-nav-action--settings",title:"Settings"},a.createElement(W,{size:12,strokeWidth:1.6,"aria-hidden":!0}),a.createElement("span",null,"Settings")))}function Oe(){return"panel"}function oe(e){return e.view==="ops"&&e.mode==="lanes"}function Ae(){const{onboarding:e,onboardingSkipped:n,skipOnboarding:o,route:r}=v();if(oe(r))return{active:!1,dismissible:!0};if(!e)return null;if(n||e.needed===!1||e.skippedAt||e.completedAt)return{active:!1,dismissible:!0};const t=!e.hasLocalConfig,i=!e.hasProjectConfig,l=!e.hasOperatorName,u=!e.brokerReachable||!e.hasReadyRuntime;return{active:t||l||i||u,dismissible:!0,onDismiss:o}}export{U as N,Oe as a,ke as b,Ce as c,Ne as d,ye as e,ge as f,Se as g,P as h,we as i,ne as j,Ee as k,ee as r,Ae as u};