@hotmeshio/long-tail 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dashboard/dist/assets/{AdminDashboard-JobmypiO.js → AdminDashboard-BONGlQva.js} +2 -2
- package/dashboard/dist/assets/{AdminDashboard-JobmypiO.js.map → AdminDashboard-BONGlQva.js.map} +1 -1
- package/dashboard/dist/assets/{AgentConfigPage-D_HuaRN9.js → AgentConfigPage-C_NJ4-pr.js} +2 -2
- package/dashboard/dist/assets/{AgentConfigPage-D_HuaRN9.js.map → AgentConfigPage-C_NJ4-pr.js.map} +1 -1
- package/dashboard/dist/assets/{AgentDetailPage-Cj22NZLI.js → AgentDetailPage-MSCS6bFD.js} +2 -2
- package/dashboard/dist/assets/{AgentDetailPage-Cj22NZLI.js.map → AgentDetailPage-MSCS6bFD.js.map} +1 -1
- package/dashboard/dist/assets/{AgentsPage-DTKto-gL.js → AgentsPage-PfSvedS-.js} +2 -2
- package/dashboard/dist/assets/{AgentsPage-DTKto-gL.js.map → AgentsPage-PfSvedS-.js.map} +1 -1
- package/dashboard/dist/assets/{AvailableEscalationsPage-CUvrKkgS.js → AvailableEscalationsPage-DBeBLNWW.js} +2 -2
- package/dashboard/dist/assets/{AvailableEscalationsPage-CUvrKkgS.js.map → AvailableEscalationsPage-DBeBLNWW.js.map} +1 -1
- package/dashboard/dist/assets/{BotPicker-AwKouk26.js → BotPicker-DmCdoim8.js} +2 -2
- package/dashboard/dist/assets/{BotPicker-AwKouk26.js.map → BotPicker-DmCdoim8.js.map} +1 -1
- package/dashboard/dist/assets/{CapabilitiesPage-1ZMO_0UU.js → CapabilitiesPage-DVf4zIMZ.js} +2 -2
- package/dashboard/dist/assets/{CapabilitiesPage-1ZMO_0UU.js.map → CapabilitiesPage-DVf4zIMZ.js.map} +1 -1
- package/dashboard/dist/assets/{CollapsibleSection-D6kUTrq4.js → CollapsibleSection-7ACdYUZy.js} +2 -2
- package/dashboard/dist/assets/{CollapsibleSection-D6kUTrq4.js.map → CollapsibleSection-7ACdYUZy.js.map} +1 -1
- package/dashboard/dist/assets/{CountdownTimer-Bj9YbInO.js → CountdownTimer-Gbp6RHav.js} +2 -2
- package/dashboard/dist/assets/{CountdownTimer-Bj9YbInO.js.map → CountdownTimer-Gbp6RHav.js.map} +1 -1
- package/dashboard/dist/assets/{CredentialsPage-D5H_kyRL.js → CredentialsPage-JWCUgQMi.js} +2 -2
- package/dashboard/dist/assets/{CredentialsPage-D5H_kyRL.js.map → CredentialsPage-JWCUgQMi.js.map} +1 -1
- package/dashboard/dist/assets/{CronLabel-DvmJ0EFz.js → CronLabel-9GtrGEDe.js} +2 -2
- package/dashboard/dist/assets/{CronLabel-DvmJ0EFz.js.map → CronLabel-9GtrGEDe.js.map} +1 -1
- package/dashboard/dist/assets/{CustomDurationPicker-DT_g8Hr4.js → CustomDurationPicker-xNJMIvjL.js} +2 -2
- package/dashboard/dist/assets/{CustomDurationPicker-DT_g8Hr4.js.map → CustomDurationPicker-xNJMIvjL.js.map} +1 -1
- package/dashboard/dist/assets/{ElapsedCell-7_8YpC3D.js → ElapsedCell-rRiChKDm.js} +2 -2
- package/dashboard/dist/assets/{ElapsedCell-7_8YpC3D.js.map → ElapsedCell-rRiChKDm.js.map} +1 -1
- package/dashboard/dist/assets/{EscalationListSchemaPage-ClFRLeKV.js → EscalationListSchemaPage-B7PHz5CB.js} +2 -2
- package/dashboard/dist/assets/{EscalationListSchemaPage-ClFRLeKV.js.map → EscalationListSchemaPage-B7PHz5CB.js.map} +1 -1
- package/dashboard/dist/assets/{EscalationSchemaPage-BcYcj-b8.js → EscalationSchemaPage-_CbayTDk.js} +2 -2
- package/dashboard/dist/assets/{EscalationSchemaPage-BcYcj-b8.js.map → EscalationSchemaPage-_CbayTDk.js.map} +1 -1
- package/dashboard/dist/assets/{EscalationsOverview-uHb8ni_5.js → EscalationsOverview-C5bVdGf2.js} +2 -2
- package/dashboard/dist/assets/{EscalationsOverview-uHb8ni_5.js.map → EscalationsOverview-C5bVdGf2.js.map} +1 -1
- package/dashboard/dist/assets/{EventTable-CkdWqmEL.js → EventTable-DGaRYVnB.js} +2 -2
- package/dashboard/dist/assets/{EventTable-CkdWqmEL.js.map → EventTable-DGaRYVnB.js.map} +1 -1
- package/dashboard/dist/assets/{GraphInvokePage-C6sfPjSc.js → GraphInvokePage-R6_p2Sy7.js} +2 -2
- package/dashboard/dist/assets/{GraphInvokePage-C6sfPjSc.js.map → GraphInvokePage-R6_p2Sy7.js.map} +1 -1
- package/dashboard/dist/assets/{HomePage-CUHZxihq.js → HomePage-DHxtqRkD.js} +2 -2
- package/dashboard/dist/assets/{HomePage-CUHZxihq.js.map → HomePage-DHxtqRkD.js.map} +1 -1
- package/dashboard/dist/assets/{ListToolbar-nWxpujpH.js → ListToolbar-BhXp7clK.js} +2 -2
- package/dashboard/dist/assets/{ListToolbar-nWxpujpH.js.map → ListToolbar-BhXp7clK.js.map} +1 -1
- package/dashboard/dist/assets/{McpOverview-DXrkDkU-.js → McpOverview-COgIIWkK.js} +2 -2
- package/dashboard/dist/assets/{McpOverview-DXrkDkU-.js.map → McpOverview-COgIIWkK.js.map} +1 -1
- package/dashboard/dist/assets/{McpQueryDetailPage-CnLYE26v.js → McpQueryDetailPage-4LEqQZax.js} +2 -2
- package/dashboard/dist/assets/{McpQueryDetailPage-CnLYE26v.js.map → McpQueryDetailPage-4LEqQZax.js.map} +1 -1
- package/dashboard/dist/assets/{McpQueryPage-oE9eWAus.js → McpQueryPage-DWAcSqF-.js} +2 -2
- package/dashboard/dist/assets/{McpQueryPage-oE9eWAus.js.map → McpQueryPage-DWAcSqF-.js.map} +1 -1
- package/dashboard/dist/assets/{McpRunDetailPage-B7e6AVl1.js → McpRunDetailPage-BNjhOPLp.js} +2 -2
- package/dashboard/dist/assets/{McpRunDetailPage-B7e6AVl1.js.map → McpRunDetailPage-BNjhOPLp.js.map} +1 -1
- package/dashboard/dist/assets/{McpRunsPage-Bx5DiGk7.js → McpRunsPage-DAjYKqqt.js} +2 -2
- package/dashboard/dist/assets/{McpRunsPage-Bx5DiGk7.js.map → McpRunsPage-DAjYKqqt.js.map} +1 -1
- package/dashboard/dist/assets/{OperationsPage-BmG3qzdR.js → OperationsPage-5RkfIbtT.js} +2 -2
- package/dashboard/dist/assets/{OperationsPage-BmG3qzdR.js.map → OperationsPage-5RkfIbtT.js.map} +1 -1
- package/dashboard/dist/assets/{OperatorDashboard-r6hQ57eO.js → OperatorDashboard-B-2dIbj4.js} +2 -2
- package/dashboard/dist/assets/{OperatorDashboard-r6hQ57eO.js.map → OperatorDashboard-B-2dIbj4.js.map} +1 -1
- package/dashboard/dist/assets/{ProcessDetailPage-C3gE4OHq.js → ProcessDetailPage-Bx7sF-vV.js} +2 -2
- package/dashboard/dist/assets/{ProcessDetailPage-C3gE4OHq.js.map → ProcessDetailPage-Bx7sF-vV.js.map} +1 -1
- package/dashboard/dist/assets/{ProcessesListPage-DSsIGmBB.js → ProcessesListPage-Dsfc-DX_.js} +2 -2
- package/dashboard/dist/assets/{ProcessesListPage-DSsIGmBB.js.map → ProcessesListPage-Dsfc-DX_.js.map} +1 -1
- package/dashboard/dist/assets/{RoleDetailPage-DiFISbnq.js → RoleDetailPage-DF-ov9E9.js} +2 -2
- package/dashboard/dist/assets/{RoleDetailPage-DiFISbnq.js.map → RoleDetailPage-DF-ov9E9.js.map} +1 -1
- package/dashboard/dist/assets/{RolesPage-CE5fui18.js → RolesPage-DIlde9bw.js} +2 -2
- package/dashboard/dist/assets/{RolesPage-CE5fui18.js.map → RolesPage-DIlde9bw.js.map} +1 -1
- package/dashboard/dist/assets/{RunAsSelector-Ct8NNadu.js → RunAsSelector-DOYUYXcD.js} +2 -2
- package/dashboard/dist/assets/{RunAsSelector-Ct8NNadu.js.map → RunAsSelector-DOYUYXcD.js.map} +1 -1
- package/dashboard/dist/assets/{StickyPagination-BfgBtP_B.js → StickyPagination-BwXLmDc-.js} +2 -2
- package/dashboard/dist/assets/{StickyPagination-BfgBtP_B.js.map → StickyPagination-BwXLmDc-.js.map} +1 -1
- package/dashboard/dist/assets/{StreamMessageDetail-2rwp7Ynx.js → StreamMessageDetail-CCez20kE.js} +2 -2
- package/dashboard/dist/assets/{StreamMessageDetail-2rwp7Ynx.js.map → StreamMessageDetail-CCez20kE.js.map} +1 -1
- package/dashboard/dist/assets/{SwimlaneTimeline-BwWyYBCo.js → SwimlaneTimeline-hcWBunXb.js} +2 -2
- package/dashboard/dist/assets/{SwimlaneTimeline-BwWyYBCo.js.map → SwimlaneTimeline-hcWBunXb.js.map} +1 -1
- package/dashboard/dist/assets/{TaskDetailPage-BUKHu2oD.js → TaskDetailPage-CIarmoAk.js} +2 -2
- package/dashboard/dist/assets/{TaskDetailPage-BUKHu2oD.js.map → TaskDetailPage-CIarmoAk.js.map} +1 -1
- package/dashboard/dist/assets/{TasksListPage-C_PwExQC.js → TasksListPage-CFqMwhLE.js} +2 -2
- package/dashboard/dist/assets/{TasksListPage-C_PwExQC.js.map → TasksListPage-CFqMwhLE.js.map} +1 -1
- package/dashboard/dist/assets/{TimeAgo-Bagm-L2o.js → TimeAgo-CuI-66Kw.js} +2 -2
- package/dashboard/dist/assets/{TimeAgo-Bagm-L2o.js.map → TimeAgo-CuI-66Kw.js.map} +1 -1
- package/dashboard/dist/assets/{TimestampCell-BwDo7knq.js → TimestampCell-BI3Uptj8.js} +2 -2
- package/dashboard/dist/assets/{TimestampCell-BwDo7knq.js.map → TimestampCell-BI3Uptj8.js.map} +1 -1
- package/dashboard/dist/assets/{ToolTestPanel-CVZ2M1yv.js → ToolTestPanel-QwGyWRfG.js} +2 -2
- package/dashboard/dist/assets/{ToolTestPanel-CVZ2M1yv.js.map → ToolTestPanel-QwGyWRfG.js.map} +1 -1
- package/dashboard/dist/assets/{TopicDetailPage-DKAvbkxD.js → TopicDetailPage-CGCiqQGf.js} +2 -2
- package/dashboard/dist/assets/{TopicDetailPage-DKAvbkxD.js.map → TopicDetailPage-CGCiqQGf.js.map} +1 -1
- package/dashboard/dist/assets/{TopicsPage-BZknsApe.js → TopicsPage-Bk8-inSO.js} +2 -2
- package/dashboard/dist/assets/{TopicsPage-BZknsApe.js.map → TopicsPage-Bk8-inSO.js.map} +1 -1
- package/dashboard/dist/assets/{UserName-ByDxLHPZ.js → UserName-BOaihCFP.js} +2 -2
- package/dashboard/dist/assets/{UserName-ByDxLHPZ.js.map → UserName-BOaihCFP.js.map} +1 -1
- package/dashboard/dist/assets/{WorkflowExecutionPage-DrwKB2x8.js → WorkflowExecutionPage-CE0QzhIt.js} +2 -2
- package/dashboard/dist/assets/{WorkflowExecutionPage-DrwKB2x8.js.map → WorkflowExecutionPage-CE0QzhIt.js.map} +1 -1
- package/dashboard/dist/assets/{WorkflowsDashboard-DEq9fkhl.js → WorkflowsDashboard-wgWRZOnB.js} +2 -2
- package/dashboard/dist/assets/{WorkflowsDashboard-DEq9fkhl.js.map → WorkflowsDashboard-wgWRZOnB.js.map} +1 -1
- package/dashboard/dist/assets/{WorkflowsOverview-l-0KYP7Y.js → WorkflowsOverview-CLyitES7.js} +2 -2
- package/dashboard/dist/assets/{WorkflowsOverview-l-0KYP7Y.js.map → WorkflowsOverview-CLyitES7.js.map} +1 -1
- package/dashboard/dist/assets/{YamlWorkflowDetailPage-BgimL3VT.js → YamlWorkflowDetailPage-pP2i1ptj.js} +2 -2
- package/dashboard/dist/assets/{YamlWorkflowDetailPage-BgimL3VT.js.map → YamlWorkflowDetailPage-pP2i1ptj.js.map} +1 -1
- package/dashboard/dist/assets/{YamlWorkflowsPage-CabXXA9r.js → YamlWorkflowsPage-BwQSMfYw.js} +2 -2
- package/dashboard/dist/assets/{YamlWorkflowsPage-CabXXA9r.js.map → YamlWorkflowsPage-BwQSMfYw.js.map} +1 -1
- package/dashboard/dist/assets/{agents-D_L6lV0f.js → agents-CRtBacrZ.js} +2 -2
- package/dashboard/dist/assets/{agents-D_L6lV0f.js.map → agents-CRtBacrZ.js.map} +1 -1
- package/dashboard/dist/assets/{bots-wdZz1nJw.js → bots-FjzeqLzA.js} +2 -2
- package/dashboard/dist/assets/{bots-wdZz1nJw.js.map → bots-FjzeqLzA.js.map} +1 -1
- package/dashboard/dist/assets/{capabilities-C35_V8eu.js → capabilities-CB0y1ZCx.js} +2 -2
- package/dashboard/dist/assets/{capabilities-C35_V8eu.js.map → capabilities-CB0y1ZCx.js.map} +1 -1
- package/dashboard/dist/assets/{controlplane-kR2P6zYv.js → controlplane-ZJtfQopv.js} +2 -2
- package/dashboard/dist/assets/{controlplane-kR2P6zYv.js.map → controlplane-ZJtfQopv.js.map} +1 -1
- package/dashboard/dist/assets/{escalation-columns-BVj16HuR.js → escalation-columns-735GLlEN.js} +2 -2
- package/dashboard/dist/assets/{escalation-columns-BVj16HuR.js.map → escalation-columns-735GLlEN.js.map} +1 -1
- package/dashboard/dist/assets/{index-CJFA7aLp.js → index-AUrwksY_.js} +2 -2
- package/dashboard/dist/assets/{index-CJFA7aLp.js.map → index-AUrwksY_.js.map} +1 -1
- package/dashboard/dist/assets/{index-C75E0-Wd.js → index-BH0BQHF-.js} +2 -2
- package/dashboard/dist/assets/{index-C75E0-Wd.js.map → index-BH0BQHF-.js.map} +1 -1
- package/dashboard/dist/assets/{index-DIrYjyRG.js → index-BTrN5iqE.js} +3 -3
- package/dashboard/dist/assets/{index-DIrYjyRG.js.map → index-BTrN5iqE.js.map} +1 -1
- package/dashboard/dist/assets/{index-wZzl3bcK.js → index-B_pZXTTp.js} +2 -2
- package/dashboard/dist/assets/{index-wZzl3bcK.js.map → index-B_pZXTTp.js.map} +1 -1
- package/dashboard/dist/assets/{index-BMQopgAx.js → index-Bho1kYrO.js} +2 -2
- package/dashboard/dist/assets/{index-BMQopgAx.js.map → index-Bho1kYrO.js.map} +1 -1
- package/dashboard/dist/assets/{index-1WCiN-pF.js → index-CzYOxahh.js} +2 -2
- package/dashboard/dist/assets/{index-1WCiN-pF.js.map → index-CzYOxahh.js.map} +1 -1
- package/dashboard/dist/assets/{index-B4zWCfQr.js → index-D4z4fzW5.js} +2 -2
- package/dashboard/dist/assets/{index-B4zWCfQr.js.map → index-D4z4fzW5.js.map} +1 -1
- package/dashboard/dist/assets/{index-BZfX_ziz.js → index-DiCp9bmR.js} +2 -2
- package/dashboard/dist/assets/{index-BZfX_ziz.js.map → index-DiCp9bmR.js.map} +1 -1
- package/dashboard/dist/assets/{index-BmbO85oT.js → index-DlrsXckY.js} +2 -2
- package/dashboard/dist/assets/{index-BmbO85oT.js.map → index-DlrsXckY.js.map} +1 -1
- package/dashboard/dist/assets/{index-so192yXP.js → index-DpGeD89g.js} +3 -3
- package/dashboard/dist/assets/{index-so192yXP.js.map → index-DpGeD89g.js.map} +1 -1
- package/dashboard/dist/assets/{index-xBNf5aFb.js → index-DzIB5CaR.js} +2 -2
- package/dashboard/dist/assets/{index-xBNf5aFb.js.map → index-DzIB5CaR.js.map} +1 -1
- package/dashboard/dist/assets/{index-BfDn7j4K.js → index-GRckVBX1.js} +2 -2
- package/dashboard/dist/assets/{index-BfDn7j4K.js.map → index-GRckVBX1.js.map} +1 -1
- package/dashboard/dist/assets/{index-QOTnrFd1.js → index-iEn58vjL.js} +2 -2
- package/dashboard/dist/assets/{index-QOTnrFd1.js.map → index-iEn58vjL.js.map} +1 -1
- package/dashboard/dist/assets/{knowledge-DDt599ea.js → knowledge-Bw51BCX9.js} +2 -2
- package/dashboard/dist/assets/{knowledge-DDt599ea.js.map → knowledge-Bw51BCX9.js.map} +1 -1
- package/dashboard/dist/assets/{mcp-BPXRXEje.js → mcp-D4KRVy2a.js} +2 -2
- package/dashboard/dist/assets/{mcp-BPXRXEje.js.map → mcp-D4KRVy2a.js.map} +1 -1
- package/dashboard/dist/assets/{mcp-query-HUZuboi-.js → mcp-query-0Zo3GwTv.js} +2 -2
- package/dashboard/dist/assets/{mcp-query-HUZuboi-.js.map → mcp-query-0Zo3GwTv.js.map} +1 -1
- package/dashboard/dist/assets/{pipelines-CH8q3ok_.js → pipelines-B8sOpeCD.js} +2 -2
- package/dashboard/dist/assets/{pipelines-CH8q3ok_.js.map → pipelines-B8sOpeCD.js.map} +1 -1
- package/dashboard/dist/assets/{roles-B7rzw8wD.js → roles-Bs6hUrQJ.js} +2 -2
- package/dashboard/dist/assets/{roles-B7rzw8wD.js.map → roles-Bs6hUrQJ.js.map} +1 -1
- package/dashboard/dist/assets/{tasks-j-mVt2EA.js → tasks-KDV3bflF.js} +2 -2
- package/dashboard/dist/assets/{tasks-j-mVt2EA.js.map → tasks-KDV3bflF.js.map} +1 -1
- package/dashboard/dist/assets/{topics-DATyaYWW.js → topics-BS_n738l.js} +2 -2
- package/dashboard/dist/assets/{topics-DATyaYWW.js.map → topics-BS_n738l.js.map} +1 -1
- package/dashboard/dist/assets/{useEventHooks-CwIAhqJk.js → useEventHooks-RbAigCWV.js} +2 -2
- package/dashboard/dist/assets/{useEventHooks-CwIAhqJk.js.map → useEventHooks-RbAigCWV.js.map} +1 -1
- package/dashboard/dist/assets/{useNamespace-hV7rcAfa.js → useNamespace-ChDZWKAd.js} +2 -2
- package/dashboard/dist/assets/{useNamespace-hV7rcAfa.js.map → useNamespace-ChDZWKAd.js.map} +1 -1
- package/dashboard/dist/assets/{useYamlActivityEvents-Dwuuu3F0.js → useYamlActivityEvents-6xNaRNAc.js} +2 -2
- package/dashboard/dist/assets/{useYamlActivityEvents-Dwuuu3F0.js.map → useYamlActivityEvents-6xNaRNAc.js.map} +1 -1
- package/dashboard/dist/assets/{users-DS9yeHe4.js → users-BPt2YERY.js} +2 -2
- package/dashboard/dist/assets/{users-DS9yeHe4.js.map → users-BPt2YERY.js.map} +1 -1
- package/dashboard/dist/assets/{workflows-FF8WUHaC.js → workflows-BaSjfNsd.js} +2 -2
- package/dashboard/dist/assets/{workflows-FF8WUHaC.js.map → workflows-BaSjfNsd.js.map} +1 -1
- package/dashboard/dist/assets/{yaml-workflows-y-eo6Rwj.js → yaml-workflows-Be3rM5i2.js} +2 -2
- package/dashboard/dist/assets/{yaml-workflows-y-eo6Rwj.js.map → yaml-workflows-Be3rM5i2.js.map} +1 -1
- package/dashboard/dist/index.html +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ProcessesListPage-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ProcessesListPage-Dsfc-DX_.js","./vendor-query-B2UbickB.js","./tasks-KDV3bflF.js","./workflows-BaSjfNsd.js","./useEventHooks-RbAigCWV.js","./useFilterParams-x-Dg0Vgz.js","./vendor-react-CXumBFUA.js","./useDebouncedValue-BA5S7V54.js","./api-path-u2Jf9QXS.js","./DataTable-Byn3oyT9.js","./EmptyState-BcsfPq9T.js","./TimestampCell-BI3Uptj8.js","./StickyPagination-BwXLmDc-.js","./FilterBar-DDIn8TOs.js","./PageHeader-Ji1AtA4f.js","./vendor-icons-BX2Vih4L.js","./ListToolbar-BhXp7clK.js","./WorkflowPill-BXmmLR0t.js","./ProcessDetailPage-Bx7sF-vV.js","./PageHeaderWithStats-B2qrFAaG.js","./StatusBadge-CEQMRmSQ.js","./RolePill-ColM_ynA.js","./UserName-BOaihCFP.js","./users-BPt2YERY.js","./McpOverview-COgIIWkK.js","./mcp-D4KRVy2a.js","./pipelines-B8sOpeCD.js","./yaml-workflows-Be3rM5i2.js","./controlplane-ZJtfQopv.js","./StatCard-DrdlUeQz.js","./McpRunsPage-DAjYKqqt.js","./useNamespace-ChDZWKAd.js","./ElapsedCell-rRiChKDm.js","./RowActions-BA9L9djf.js","./McpRunDetailPage-BNjhOPLp.js","./CopyableId-uot2mE_g.js","./CollapsibleSection-7ACdYUZy.js","./EventTable-DGaRYVnB.js","./SwimlaneTimeline-hcWBunXb.js","./StreamMessageDetail-CCez20kE.js","./McpQueryPage-DWAcSqF-.js","./mcp-query-0Zo3GwTv.js","./McpQueryDetailPage-4LEqQZax.js","./TagInput-By0E_Jym.js","./useYamlActivityEvents-6xNaRNAc.js","./helpers-DzO-OGPe.js","./RunAsSelector-DOYUYXcD.js","./BotPicker-DmCdoim8.js","./bots-FjzeqLzA.js","./ToolPill-D0IzqLEe.js","./TimeAgo-CuI-66Kw.js","./EscalationsOverview-C5bVdGf2.js","./AvailableEscalationsPage-DBeBLNWW.js","./CustomDurationPicker-xNJMIvjL.js","./Modal-CSrxpXeM.js","./constants-BHkpVaqx.js","./roles-Bs6hUrQJ.js","./CountdownTimer-Gbp6RHav.js","./escalation-columns-735GLlEN.js","./PriorityBadge-B4ykBH7f.js","./OperatorDashboard-B-2dIbj4.js","./index-BTrN5iqE.js","./SlidePanel-BzeKveus.js","./WorkflowsOverview-CLyitES7.js","./index-Bho1kYrO.js","./NamespacePill-BlhSWa5S.js","./WorkflowsDashboard-wgWRZOnB.js","./YamlWorkflowsPage-BwQSMfYw.js","./GraphInvokePage-R6_p2Sy7.js","./YamlWorkflowDetailPage-pP2i1ptj.js","./TasksListPage-CFqMwhLE.js","./TaskDetailPage-CIarmoAk.js","./WorkflowExecutionPage-CE0QzhIt.js","./AdminDashboard-BONGlQva.js","./index-GRckVBX1.js","./TaskQueuePill-CY1ZSwWu.js","./index-DzIB5CaR.js","./ConfirmDeleteModal-D9_1b4MW.js","./index-DlrsXckY.js","./ToolTestPanel-QwGyWRfG.js","./index-DiCp9bmR.js","./index-CzYOxahh.js","./RolesPage-DIlde9bw.js","./RoleDetailPage-DF-ov9E9.js","./EscalationSchemaPage-_CbayTDk.js","./EscalationListSchemaPage-B7PHz5CB.js","./index-AUrwksY_.js","./OperationsPage-5RkfIbtT.js","./index-BH0BQHF-.js","./index-B_pZXTTp.js","./CredentialsPage-JWCUgQMi.js","./index-D4z4fzW5.js","./DropZone-wJqP4zA4.js","./index-iEn58vjL.js","./knowledge-Bw51BCX9.js","./HomePage-DHxtqRkD.js","./AgentsPage-PfSvedS-.js","./agents-CRtBacrZ.js","./AgentDetailPage-MSCS6bFD.js","./CronLabel-9GtrGEDe.js","./AgentConfigPage-C_NJ4-pr.js","./capabilities-CB0y1ZCx.js","./topics-BS_n738l.js","./CapabilitiesPage-DVf4zIMZ.js","./TopicsPage-Bk8-inSO.js","./TopicDetailPage-CGCiqQGf.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var Qx=Object.defineProperty;var Xx=(i,n,s)=>n in i?Qx(i,n,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[n]=s;var v=(i,n,s)=>Xx(i,typeof n!="symbol"?n+"":n,s);import{r as Kx,a as O,j as h,u as Sn,b as on,c as En,Q as Zx,d as Wx}from"./vendor-query-B2UbickB.js";import{r as ev,L as _r,u as ri,N as $o,a as Og,b as $n,O as Ar,c as Tg,d as tv,R as nv}from"./vendor-react-CXumBFUA.js";import{X as Dr,I as Df,R as Ng,B as kg,U as sv,L as zf,a as m0,b as iv,Z as rv,S as p0,P as g0,C as av,W as rh,c as lv,d as ov,F as cv,e as uv,f as fv,T as hv,N as dv,g as mv,D as pv,M as Cg,h as Mg,i as gv,j as yv,k as bv,E as xv,l as vv,m as _v,n as wv,o as y0,G as Sv,p as Ev,q as Av,r as jv,s as Ov}from"./vendor-icons-BX2Vih4L.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&a(d)}).observe(document,{childList:!0,subtree:!0});function s(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function a(o){if(o.ep)return;o.ep=!0;const f=s(o);fetch(o.href,f)}})();var yf={exports:{}},Ma={},bf={exports:{}},xf={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* scheduler.production.js
|
|
@@ -59,5 +59,5 @@ ${s.map(o=>`${o.role==="user"?"User":"Assistant"}: ${o.content}`).join(`
|
|
|
59
59
|
[End prior conversation]
|
|
60
60
|
|
|
61
61
|
`}function aS(i){const n=i.summary,s=i.title;if(n){const a=n.search(/\n\s*\{[\s\S]*"title"\s*:/);return a>0?n.slice(0,a).trim():n}return s||(typeof i=="string"?i:"Query completed.")}const Cy=O.createContext(null);function lS({children:i}){const n=ri(),[s,a]=O.useState(!1),[o,f]=O.useState([]),[d,m]=O.useState(null),[g,y]=O.useState({}),E=O.useRef(null),w={page:n.pathname.split("/").filter(Boolean).join("-")||"home",route:n.pathname,params:{},...g,suggestedTags:g.suggestedTags??iS(n.pathname)};O.useEffect(()=>()=>{E.current&&clearInterval(E.current)},[]);const T=O.useCallback(()=>a(W=>!W),[]),z=O.useCallback(W=>{y(W)},[]),M=O.useCallback(()=>{f([]),m(null)},[]),q=O.useCallback(async W=>{var P;const te=new Date().toISOString(),fe={id:`user-${Date.now()}`,role:"user",content:W,timestamp:te},re={id:`pending-${Date.now()}`,role:"assistant",content:"",timestamp:te,pending:!0};f(F=>[...F,fe,re]);const N={...w};(P=N.entities)!=null&&P.yamlContent&&N.entities.yamlContent.length>cg&&(N.entities={...N.entities,yamlContent:N.entities.yamlContent.slice(0,cg)+`
|
|
62
|
-
... (truncated)`});const ae=`${rS(o.concat(fe))}${W}`;try{const X=(await Ye("/insight/mcp-query",{method:"POST",body:JSON.stringify({prompt:ae,tags:N.suggestedTags,context:N,wait:!1,direct:!0})})).workflow_id;m(X),f(oe=>oe.map(ie=>ie.id===re.id?{...ie,workflowId:X}:ie)),E.current&&clearInterval(E.current),E.current=setInterval(async()=>{var oe;try{const ie=await Ye(`/workflows/${X}/result`),Ne=(oe=ie==null?void 0:ie.result)==null?void 0:oe.data;if(Ne){E.current&&clearInterval(E.current),E.current=null,m(null);const Ue=aS(Ne);let Te;try{Te=(await Ye(`/workflow-states/${X}/execution`)).duration_ms}catch{}f($=>$.map(se=>se.id===re.id?{...se,content:Ue,timestamp:new Date().toISOString(),pending:!1,durationMs:Te}:se))}}catch{}},3e3)}catch{f(F=>F.map(X=>X.id===re.id?{...X,content:"Failed to submit query. Please try again.",pending:!1}:X))}},[o,w]),Q=O.useCallback(async W=>{const te=o.find(N=>N.id===W);if(!(te!=null&&te.workflowId)||te.compilationStatus==="compiling"||te.compilationStatus==="done")return;const fe=o.indexOf(te),re=o.slice(0,fe).reverse().find(N=>N.role==="user");if(re){f(N=>N.map(V=>V.id===W?{...V,compilationStatus:"compiling"}:V));try{const N=await Ye("/insight/mcp-query/describe",{method:"POST",body:JSON.stringify({prompt:re.content,summary:te.content})}),V=await Ye("/yaml-workflows",{method:"POST",body:JSON.stringify({workflow_id:te.workflowId,task_queue:"long-tail-system",workflow_name:"mcpQuery",name:N.tool_name,description:N.description,tags:N.tags,app_id:""})});await Ye(`/yaml-workflows/${V.id}/deploy`,{method:"POST"}),f(ae=>ae.map(P=>P.id===W?{...P,compilationStatus:"done"}:P))}catch(N){const V=N instanceof Error?N.message:"Compilation failed";f(ae=>ae.map(P=>P.id===W?{...P,compilationStatus:"error",compilationError:V}:P))}}},[o]);return h.jsx(Cy.Provider,{value:{helpOpen:s,setHelpOpen:a,toggleHelp:T,messages:o,sendMessage:q,pageContext:w,setPageContext:z,activeWorkflowId:d,clearMessages:M,compileMessage:Q},children:i})}function My(){const i=O.useContext(Cy);if(!i)throw new Error("useHelpAssistant must be used within HelpAssistantProvider");return i}function oS(){const{helpOpen:i,toggleHelp:n}=My();return h.jsx("button",{onClick:n,className:"fixed right-3 z-[45] flex items-center justify-center w-10 h-10 rounded-full bg-surface-raised shadow-lg hover:scale-110 transition-transform duration-150 border border-accent/30",style:{bottom:"44px"},"aria-label":i?"Close help":"Ask for help",children:i?h.jsx(Dr,{className:"w-5 h-5 text-text-tertiary",strokeWidth:1.5}):h.jsx("span",{role:"img","aria-label":"Help",className:"logo-mark w-8 h-8 -rotate-[120deg]",style:{"--logo-url":`url(${Vt}/logo512.png)`}})})}const Ry=6048e5,cS=864e5,ug=6e4,fg=525600,hg=43200,dg=1440,mg=Symbol.for("constructDateFrom");function bs(i,n){return typeof i=="function"?i(n):i&&typeof i=="object"&&mg in i?i[mg](n):i instanceof Date?new i.constructor(n):new Date(n)}function ln(i,n){return bs(n||i,i)}let uS={};function nl(){return uS}function Za(i,n){var m,g,y,E;const s=nl(),a=(n==null?void 0:n.weekStartsOn)??((g=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:g.weekStartsOn)??s.weekStartsOn??((E=(y=s.locale)==null?void 0:y.options)==null?void 0:E.weekStartsOn)??0,o=ln(i,n==null?void 0:n.in),f=o.getDay(),d=(f<a?7:0)+f-a;return o.setDate(o.getDate()-d),o.setHours(0,0,0,0),o}function Zo(i,n){return Za(i,{...n,weekStartsOn:1})}function Dy(i,n){const s=ln(i,n==null?void 0:n.in),a=s.getFullYear(),o=bs(s,0);o.setFullYear(a+1,0,4),o.setHours(0,0,0,0);const f=Zo(o),d=bs(s,0);d.setFullYear(a,0,4),d.setHours(0,0,0,0);const m=Zo(d);return s.getTime()>=f.getTime()?a+1:s.getTime()>=m.getTime()?a:a-1}function Wo(i){const n=ln(i),s=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return s.setUTCFullYear(n.getFullYear()),+i-+s}function zy(i,...n){const s=bs.bind(null,i||n.find(a=>typeof a=="object"));return n.map(s)}function pg(i,n){const s=ln(i,n==null?void 0:n.in);return s.setHours(0,0,0,0),s}function fS(i,n,s){const[a,o]=zy(s==null?void 0:s.in,i,n),f=pg(a),d=pg(o),m=+f-Wo(f),g=+d-Wo(d);return Math.round((m-g)/cS)}function hS(i,n){const s=Dy(i,n),a=bs(i,0);return a.setFullYear(s,0,4),a.setHours(0,0,0,0),Zo(a)}function dS(i,n){const s=+ln(i)-+ln(n);return s<0?-1:s>0?1:s}function mS(i){return bs(i,Date.now())}function pS(i){return i instanceof Date||typeof i=="object"&&Object.prototype.toString.call(i)==="[object Date]"}function gS(i){return!(!pS(i)&&typeof i!="number"||isNaN(+ln(i)))}function yS(i){return n=>{const a=(i?Math[i]:Math.trunc)(n);return a===0?0:a}}function bS(i,n){const s=ln(i,n==null?void 0:n.in);return s.setFullYear(s.getFullYear(),0,1),s.setHours(0,0,0,0),s}const xS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},vS=(i,n,s)=>{let a;const o=xS[i];return typeof o=="string"?a=o:n===1?a=o.one:a=o.other.replace("{{count}}",n.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+a:a+" ago":a};function Rf(i){return(n={})=>{const s=n.width?String(n.width):i.defaultWidth;return i.formats[s]||i.formats[i.defaultWidth]}}const _S={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},wS={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},SS={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ES={date:Rf({formats:_S,defaultWidth:"full"}),time:Rf({formats:wS,defaultWidth:"full"}),dateTime:Rf({formats:SS,defaultWidth:"full"})},AS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},jS=(i,n,s,a)=>AS[i];function qa(i){return(n,s)=>{const a=s!=null&&s.context?String(s.context):"standalone";let o;if(a==="formatting"&&i.formattingValues){const d=i.defaultFormattingWidth||i.defaultWidth,m=s!=null&&s.width?String(s.width):d;o=i.formattingValues[m]||i.formattingValues[d]}else{const d=i.defaultWidth,m=s!=null&&s.width?String(s.width):i.defaultWidth;o=i.values[m]||i.values[d]}const f=i.argumentCallback?i.argumentCallback(n):n;return o[f]}}const OS={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},TS={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},NS={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},kS={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},CS={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},MS={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},RS=(i,n)=>{const s=Number(i),a=s%100;if(a>20||a<10)switch(a%10){case 1:return s+"st";case 2:return s+"nd";case 3:return s+"rd"}return s+"th"},DS={ordinalNumber:RS,era:qa({values:OS,defaultWidth:"wide"}),quarter:qa({values:TS,defaultWidth:"wide",argumentCallback:i=>i-1}),month:qa({values:NS,defaultWidth:"wide"}),day:qa({values:kS,defaultWidth:"wide"}),dayPeriod:qa({values:CS,defaultWidth:"wide",formattingValues:MS,defaultFormattingWidth:"wide"})};function Ua(i){return(n,s={})=>{const a=s.width,o=a&&i.matchPatterns[a]||i.matchPatterns[i.defaultMatchWidth],f=n.match(o);if(!f)return null;const d=f[0],m=a&&i.parsePatterns[a]||i.parsePatterns[i.defaultParseWidth],g=Array.isArray(m)?qS(m,w=>w.test(d)):zS(m,w=>w.test(d));let y;y=i.valueCallback?i.valueCallback(g):g,y=s.valueCallback?s.valueCallback(y):y;const E=n.slice(d.length);return{value:y,rest:E}}}function zS(i,n){for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&n(i[s]))return s}function qS(i,n){for(let s=0;s<i.length;s++)if(n(i[s]))return s}function US(i){return(n,s={})=>{const a=n.match(i.matchPattern);if(!a)return null;const o=a[0],f=n.match(i.parsePattern);if(!f)return null;let d=i.valueCallback?i.valueCallback(f[0]):f[0];d=s.valueCallback?s.valueCallback(d):d;const m=n.slice(o.length);return{value:d,rest:m}}}const BS=/^(\d+)(th|st|nd|rd)?/i,LS=/\d+/i,HS={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},PS={any:[/^b/i,/^(a|c)/i]},$S={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},YS={any:[/1/i,/2/i,/3/i,/4/i]},GS={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},VS={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},FS={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},IS={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},JS={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},QS={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},XS={ordinalNumber:US({matchPattern:BS,parsePattern:LS,valueCallback:i=>parseInt(i,10)}),era:Ua({matchPatterns:HS,defaultMatchWidth:"wide",parsePatterns:PS,defaultParseWidth:"any"}),quarter:Ua({matchPatterns:$S,defaultMatchWidth:"wide",parsePatterns:YS,defaultParseWidth:"any",valueCallback:i=>i+1}),month:Ua({matchPatterns:GS,defaultMatchWidth:"wide",parsePatterns:VS,defaultParseWidth:"any"}),day:Ua({matchPatterns:FS,defaultMatchWidth:"wide",parsePatterns:IS,defaultParseWidth:"any"}),dayPeriod:Ua({matchPatterns:JS,defaultMatchWidth:"any",parsePatterns:QS,defaultParseWidth:"any"})},qy={code:"en-US",formatDistance:vS,formatLong:ES,formatRelative:jS,localize:DS,match:XS,options:{weekStartsOn:0,firstWeekContainsDate:1}};function KS(i,n){const s=ln(i,n==null?void 0:n.in);return fS(s,bS(s))+1}function ZS(i,n){const s=ln(i,n==null?void 0:n.in),a=+Zo(s)-+hS(s);return Math.round(a/Ry)+1}function Uy(i,n){var E,w,T,z;const s=ln(i,n==null?void 0:n.in),a=s.getFullYear(),o=nl(),f=(n==null?void 0:n.firstWeekContainsDate)??((w=(E=n==null?void 0:n.locale)==null?void 0:E.options)==null?void 0:w.firstWeekContainsDate)??o.firstWeekContainsDate??((z=(T=o.locale)==null?void 0:T.options)==null?void 0:z.firstWeekContainsDate)??1,d=bs((n==null?void 0:n.in)||i,0);d.setFullYear(a+1,0,f),d.setHours(0,0,0,0);const m=Za(d,n),g=bs((n==null?void 0:n.in)||i,0);g.setFullYear(a,0,f),g.setHours(0,0,0,0);const y=Za(g,n);return+s>=+m?a+1:+s>=+y?a:a-1}function WS(i,n){var m,g,y,E;const s=nl(),a=(n==null?void 0:n.firstWeekContainsDate)??((g=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??s.firstWeekContainsDate??((E=(y=s.locale)==null?void 0:y.options)==null?void 0:E.firstWeekContainsDate)??1,o=Uy(i,n),f=bs((n==null?void 0:n.in)||i,0);return f.setFullYear(o,0,a),f.setHours(0,0,0,0),Za(f,n)}function eE(i,n){const s=ln(i,n==null?void 0:n.in),a=+Za(s,n)-+WS(s,n);return Math.round(a/Ry)+1}function Fe(i,n){const s=i<0?"-":"",a=Math.abs(i).toString().padStart(n,"0");return s+a}const Xs={y(i,n){const s=i.getFullYear(),a=s>0?s:1-s;return Fe(n==="yy"?a%100:a,n.length)},M(i,n){const s=i.getMonth();return n==="M"?String(s+1):Fe(s+1,2)},d(i,n){return Fe(i.getDate(),n.length)},a(i,n){const s=i.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return s.toUpperCase();case"aaa":return s;case"aaaaa":return s[0];case"aaaa":default:return s==="am"?"a.m.":"p.m."}},h(i,n){return Fe(i.getHours()%12||12,n.length)},H(i,n){return Fe(i.getHours(),n.length)},m(i,n){return Fe(i.getMinutes(),n.length)},s(i,n){return Fe(i.getSeconds(),n.length)},S(i,n){const s=n.length,a=i.getMilliseconds(),o=Math.trunc(a*Math.pow(10,s-3));return Fe(o,n.length)}},xr={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},gg={G:function(i,n,s){const a=i.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return s.era(a,{width:"abbreviated"});case"GGGGG":return s.era(a,{width:"narrow"});case"GGGG":default:return s.era(a,{width:"wide"})}},y:function(i,n,s){if(n==="yo"){const a=i.getFullYear(),o=a>0?a:1-a;return s.ordinalNumber(o,{unit:"year"})}return Xs.y(i,n)},Y:function(i,n,s,a){const o=Uy(i,a),f=o>0?o:1-o;if(n==="YY"){const d=f%100;return Fe(d,2)}return n==="Yo"?s.ordinalNumber(f,{unit:"year"}):Fe(f,n.length)},R:function(i,n){const s=Dy(i);return Fe(s,n.length)},u:function(i,n){const s=i.getFullYear();return Fe(s,n.length)},Q:function(i,n,s){const a=Math.ceil((i.getMonth()+1)/3);switch(n){case"Q":return String(a);case"QQ":return Fe(a,2);case"Qo":return s.ordinalNumber(a,{unit:"quarter"});case"QQQ":return s.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return s.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(a,{width:"wide",context:"formatting"})}},q:function(i,n,s){const a=Math.ceil((i.getMonth()+1)/3);switch(n){case"q":return String(a);case"qq":return Fe(a,2);case"qo":return s.ordinalNumber(a,{unit:"quarter"});case"qqq":return s.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return s.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(a,{width:"wide",context:"standalone"})}},M:function(i,n,s){const a=i.getMonth();switch(n){case"M":case"MM":return Xs.M(i,n);case"Mo":return s.ordinalNumber(a+1,{unit:"month"});case"MMM":return s.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return s.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(a,{width:"wide",context:"formatting"})}},L:function(i,n,s){const a=i.getMonth();switch(n){case"L":return String(a+1);case"LL":return Fe(a+1,2);case"Lo":return s.ordinalNumber(a+1,{unit:"month"});case"LLL":return s.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return s.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(a,{width:"wide",context:"standalone"})}},w:function(i,n,s,a){const o=eE(i,a);return n==="wo"?s.ordinalNumber(o,{unit:"week"}):Fe(o,n.length)},I:function(i,n,s){const a=ZS(i);return n==="Io"?s.ordinalNumber(a,{unit:"week"}):Fe(a,n.length)},d:function(i,n,s){return n==="do"?s.ordinalNumber(i.getDate(),{unit:"date"}):Xs.d(i,n)},D:function(i,n,s){const a=KS(i);return n==="Do"?s.ordinalNumber(a,{unit:"dayOfYear"}):Fe(a,n.length)},E:function(i,n,s){const a=i.getDay();switch(n){case"E":case"EE":case"EEE":return s.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return s.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(a,{width:"short",context:"formatting"});case"EEEE":default:return s.day(a,{width:"wide",context:"formatting"})}},e:function(i,n,s,a){const o=i.getDay(),f=(o-a.weekStartsOn+8)%7||7;switch(n){case"e":return String(f);case"ee":return Fe(f,2);case"eo":return s.ordinalNumber(f,{unit:"day"});case"eee":return s.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return s.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(o,{width:"short",context:"formatting"});case"eeee":default:return s.day(o,{width:"wide",context:"formatting"})}},c:function(i,n,s,a){const o=i.getDay(),f=(o-a.weekStartsOn+8)%7||7;switch(n){case"c":return String(f);case"cc":return Fe(f,n.length);case"co":return s.ordinalNumber(f,{unit:"day"});case"ccc":return s.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return s.day(o,{width:"narrow",context:"standalone"});case"cccccc":return s.day(o,{width:"short",context:"standalone"});case"cccc":default:return s.day(o,{width:"wide",context:"standalone"})}},i:function(i,n,s){const a=i.getDay(),o=a===0?7:a;switch(n){case"i":return String(o);case"ii":return Fe(o,n.length);case"io":return s.ordinalNumber(o,{unit:"day"});case"iii":return s.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return s.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return s.day(a,{width:"short",context:"formatting"});case"iiii":default:return s.day(a,{width:"wide",context:"formatting"})}},a:function(i,n,s){const o=i.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(i,n,s){const a=i.getHours();let o;switch(a===12?o=xr.noon:a===0?o=xr.midnight:o=a/12>=1?"pm":"am",n){case"b":case"bb":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(i,n,s){const a=i.getHours();let o;switch(a>=17?o=xr.evening:a>=12?o=xr.afternoon:a>=4?o=xr.morning:o=xr.night,n){case"B":case"BB":case"BBB":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(i,n,s){if(n==="ho"){let a=i.getHours()%12;return a===0&&(a=12),s.ordinalNumber(a,{unit:"hour"})}return Xs.h(i,n)},H:function(i,n,s){return n==="Ho"?s.ordinalNumber(i.getHours(),{unit:"hour"}):Xs.H(i,n)},K:function(i,n,s){const a=i.getHours()%12;return n==="Ko"?s.ordinalNumber(a,{unit:"hour"}):Fe(a,n.length)},k:function(i,n,s){let a=i.getHours();return a===0&&(a=24),n==="ko"?s.ordinalNumber(a,{unit:"hour"}):Fe(a,n.length)},m:function(i,n,s){return n==="mo"?s.ordinalNumber(i.getMinutes(),{unit:"minute"}):Xs.m(i,n)},s:function(i,n,s){return n==="so"?s.ordinalNumber(i.getSeconds(),{unit:"second"}):Xs.s(i,n)},S:function(i,n){return Xs.S(i,n)},X:function(i,n,s){const a=i.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return bg(a);case"XXXX":case"XX":return Ni(a);case"XXXXX":case"XXX":default:return Ni(a,":")}},x:function(i,n,s){const a=i.getTimezoneOffset();switch(n){case"x":return bg(a);case"xxxx":case"xx":return Ni(a);case"xxxxx":case"xxx":default:return Ni(a,":")}},O:function(i,n,s){const a=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+yg(a,":");case"OOOO":default:return"GMT"+Ni(a,":")}},z:function(i,n,s){const a=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+yg(a,":");case"zzzz":default:return"GMT"+Ni(a,":")}},t:function(i,n,s){const a=Math.trunc(+i/1e3);return Fe(a,n.length)},T:function(i,n,s){return Fe(+i,n.length)}};function yg(i,n=""){const s=i>0?"-":"+",a=Math.abs(i),o=Math.trunc(a/60),f=a%60;return f===0?s+String(o):s+String(o)+n+Fe(f,2)}function bg(i,n){return i%60===0?(i>0?"-":"+")+Fe(Math.abs(i)/60,2):Ni(i,n)}function Ni(i,n=""){const s=i>0?"-":"+",a=Math.abs(i),o=Fe(Math.trunc(a/60),2),f=Fe(a%60,2);return s+o+n+f}const xg=(i,n)=>{switch(i){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},By=(i,n)=>{switch(i){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},tE=(i,n)=>{const s=i.match(/(P+)(p+)?/)||[],a=s[1],o=s[2];if(!o)return xg(i,n);let f;switch(a){case"P":f=n.dateTime({width:"short"});break;case"PP":f=n.dateTime({width:"medium"});break;case"PPP":f=n.dateTime({width:"long"});break;case"PPPP":default:f=n.dateTime({width:"full"});break}return f.replace("{{date}}",xg(a,n)).replace("{{time}}",By(o,n))},nE={p:By,P:tE},sE=/^D+$/,iE=/^Y+$/,rE=["D","DD","YY","YYYY"];function aE(i){return sE.test(i)}function lE(i){return iE.test(i)}function oE(i,n,s){const a=cE(i,n,s);if(console.warn(a),rE.includes(i))throw new RangeError(a)}function cE(i,n,s){const a=i[0]==="Y"?"years":"days of the month";return`Use \`${i.toLowerCase()}\` instead of \`${i}\` (in \`${n}\`) for formatting ${a} to the input \`${s}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const uE=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,fE=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hE=/^'([^]*?)'?$/,dE=/''/g,mE=/[a-zA-Z]/;function Oh(i,n,s){var E,w,T,z;const a=nl(),o=a.locale??qy,f=a.firstWeekContainsDate??((w=(E=a.locale)==null?void 0:E.options)==null?void 0:w.firstWeekContainsDate)??1,d=a.weekStartsOn??((z=(T=a.locale)==null?void 0:T.options)==null?void 0:z.weekStartsOn)??0,m=ln(i,s==null?void 0:s.in);if(!gS(m))throw new RangeError("Invalid time value");let g=n.match(fE).map(M=>{const q=M[0];if(q==="p"||q==="P"){const Q=nE[q];return Q(M,o.formatLong)}return M}).join("").match(uE).map(M=>{if(M==="''")return{isToken:!1,value:"'"};const q=M[0];if(q==="'")return{isToken:!1,value:pE(M)};if(gg[q])return{isToken:!0,value:M};if(q.match(mE))throw new RangeError("Format string contains an unescaped latin alphabet character `"+q+"`");return{isToken:!1,value:M}});o.localize.preprocessor&&(g=o.localize.preprocessor(m,g));const y={firstWeekContainsDate:f,weekStartsOn:d,locale:o};return g.map(M=>{if(!M.isToken)return M.value;const q=M.value;(lE(q)||aE(q))&&oE(q,n,String(i));const Q=gg[q[0]];return Q(m,q,o.localize,y)}).join("")}function pE(i){const n=i.match(hE);return n?n[1].replace(dE,"'"):i}function gE(i,n,s){const a=nl(),o=(s==null?void 0:s.locale)??a.locale??qy,f=dS(i,n);if(isNaN(f))throw new RangeError("Invalid time value");const d=Object.assign({},s,{addSuffix:s==null?void 0:s.addSuffix,comparison:f}),[m,g]=zy(s==null?void 0:s.in,...f>0?[n,i]:[i,n]),y=yS((s==null?void 0:s.roundingMethod)??"round"),E=g.getTime()-m.getTime(),w=E/ug,T=Wo(g)-Wo(m),z=(E-T)/ug,M=s==null?void 0:s.unit;let q;if(M?q=M:w<1?q="second":w<60?q="minute":w<dg?q="hour":z<hg?q="day":z<fg?q="month":q="year",q==="second"){const Q=y(E/1e3);return o.formatDistance("xSeconds",Q,d)}else if(q==="minute"){const Q=y(w);return o.formatDistance("xMinutes",Q,d)}else if(q==="hour"){const Q=y(w/60);return o.formatDistance("xHours",Q,d)}else if(q==="day"){const Q=y(z/dg);return o.formatDistance("xDays",Q,d)}else if(q==="month"){const Q=y(z/hg);return Q===12&&M!=="month"?o.formatDistance("xYears",1,d):o.formatDistance("xMonths",Q,d)}else{const Q=y(z/fg);return o.formatDistance("xYears",Q,d)}}function yE(i,n){return gE(i,mS(i),n)}function KA(i){return i.toLocaleString()}function ZA(i){return i>=1e9?`${(i/1e9).toFixed(1).replace(/\.0$/,"")}B`:i>=1e6?`${(i/1e6).toFixed(1).replace(/\.0$/,"")}M`:i>=1e4?`${(i/1e3).toFixed(1).replace(/\.0$/,"")}K`:i.toLocaleString()}function bE(i){const n=new Date(i);return n.getTime()>Date.now()?"just now":yE(n,{addSuffix:!0})}function WA(i){const n=Date.now()-new Date(i).getTime();if(n<0)return"now";const s=Math.floor(n/1e3);if(s<60)return`${s}s`;const a=Math.floor(s/60);if(a<60)return`${a}m`;const o=Math.floor(a/60);if(o<24)return`${o}h`;const f=Math.floor(o/24);return f<7?`${f}d`:f<30?`${Math.floor(f/7)}w`:f<365?`${Math.floor(f/30)}mo`:`${Math.floor(f/365)}y`}function e3(i){return i<=0?"Expired":Th(i)}function xE(i){return i==null?"--":Th(i)}function t3(i){return i?Oh(new Date(i),"MMM d, yyyy h:mm a"):"--"}function Th(i){if(i<1e3)return`${Math.round(i)}ms`;if(i<6e4){const d=i/1e3;return Number.isInteger(d)?`${d}s`:`${d.toFixed(1)}s`}const n=Math.floor(i/1e3),s=Math.floor(n/86400),a=Math.floor(n%86400/3600),o=Math.floor(n%3600/60),f=n%60;return s>0?a>0?`${s}d ${a}h`:`${s}d`:a>0?o>0?`${a}h ${o}m`:`${a}h`:f>0?`${o}m ${f}s`:`${o}m`}function n3(i,n){const s=new Date(i).getTime(),a=n?new Date(n).getTime():Date.now();return Th(a-s)}function Ly({options:i,children:n,className:s=""}){const[a,o]=O.useState(!1),[f,d]=O.useState(null),[m,g]=O.useState(null),y=O.useRef(null),E=O.useRef(void 0),w=O.useRef(void 0),T=220,z=O.useCallback(()=>{if(!y.current)return;const W=y.current.getBoundingClientRect(),te=window.innerWidth-T-8,fe=Math.max(8,Math.min(W.left,te));g({top:W.bottom+4,left:fe})},[]),M=O.useCallback(async(W,te)=>{try{await navigator.clipboard.writeText(W),d(te),clearTimeout(E.current),E.current=setTimeout(()=>d(null),1200)}catch{}},[]),q=O.useCallback(()=>{clearTimeout(w.current),z(),o(!0)},[z]),Q=O.useCallback(()=>{w.current=setTimeout(()=>o(!1),150)},[]);return O.useEffect(()=>()=>{clearTimeout(E.current),clearTimeout(w.current)},[]),h.jsxs("span",{ref:y,className:`inline-flex items-center cursor-default ${s}`,onMouseEnter:q,onMouseLeave:Q,children:[n,a&&m&&Og.createPortal(h.jsx("span",{className:"fixed z-[9999] bg-surface-raised border border-surface-border rounded shadow-lg py-1 min-w-[180px]",style:{top:m.top,left:m.left},onMouseEnter:q,onMouseLeave:Q,children:i.map(W=>h.jsxs("button",{onClick:te=>{te.stopPropagation(),M(W.value,W.label)},className:"flex items-center justify-between w-full px-2.5 py-1 text-left hover:bg-surface-hover transition-colors",children:[h.jsx("span",{className:"text-[9px] font-medium uppercase tracking-wider text-text-tertiary w-10 shrink-0",children:W.label}),h.jsx("span",{className:"text-[10px] font-mono text-text-secondary truncate ml-2",children:f===W.label?"✓":W.value})]},W.label))}),document.body)]})}function vE(i,n){const s=new Date(i);switch(n){case"relative":return bE(i);case"datetime":return Oh(s,"MMM d, yyyy h:mm a");case"time":return s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}}function _E(i){const n=new Date(i);return[{label:"ms",value:String(n.getTime())},{label:"utc",value:n.toISOString()},{label:"local",value:Oh(n,"MMM d, yyyy h:mm:ss a")}]}function wE({date:i,format:n="relative",className:s=""}){const[,a]=O.useState(0);O.useEffect(()=>{if(n!=="relative")return;const f=setInterval(()=>a(d=>d+1),3e4);return()=>clearInterval(f)},[n]);const o=O.useMemo(()=>_E(i),[i]);return h.jsx(Ly,{options:o,children:h.jsx("time",{dateTime:i,className:`text-xs text-text-tertiary ${s}`,children:vE(i,n)})})}function SE({ms:i,className:n=""}){const s=xE(i),a=O.useMemo(()=>i==null?[]:[{label:"ms",value:String(i)},{label:"sec",value:`${(i/1e3).toFixed(3)}s`},{label:"text",value:s}],[i,s]);return i==null?h.jsx("span",{className:`text-xs text-text-tertiary ${n}`,children:"--"}):h.jsx(Ly,{options:a,children:h.jsx("span",{className:`text-xs text-text-tertiary ${n}`,children:s})})}const EE=["sm","md","lg","full"],vg={sm:"w-[28rem] max-h-[40vh]",md:"w-[36rem] max-h-[60vh]",lg:"w-[48rem] max-h-[80vh]",full:"inset-4 w-auto max-h-none"},_g={sm:"Small",md:"Medium",lg:"Large",full:"Fullscreen"};function AE({which:i}){const n="stroke-current";switch(i){case"sm":return h.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:h.jsx("rect",{x:"5",y:"5",width:"7",height:"7",rx:"1.5",className:n,strokeWidth:"1.5"})});case"md":return h.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:h.jsx("rect",{x:"3",y:"3",width:"9",height:"9",rx:"1.5",className:n,strokeWidth:"1.5"})});case"lg":return h.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:h.jsx("rect",{x:"1.5",y:"1.5",width:"11",height:"11",rx:"1.5",className:n,strokeWidth:"1.5"})});case"full":return h.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:h.jsx("rect",{x:"0.75",y:"0.75",width:"12.5",height:"12.5",rx:"1.5",className:n,strokeWidth:"1.5"})})}}function jE({msg:i}){const[n,s]=O.useState(0);O.useEffect(()=>{const d=new Date(i.timestamp).getTime(),m=()=>s(Math.floor((Date.now()-d)/1e3));m();const g=setInterval(m,1e3);return()=>clearInterval(g)},[i.timestamp]);const a=Math.floor(n/60),o=n%60,f=a>0?`${a}m ${o}s`:`${o}s`;return h.jsxs("span",{className:"inline-flex flex-col gap-1.5",children:[h.jsxs("span",{className:"inline-flex items-center gap-1",children:[h.jsx("span",{className:"text-text-tertiary",children:"Thinking"}),h.jsx("span",{className:"inline-block w-1 h-1 rounded-full bg-text-tertiary animate-pulse"}),h.jsx("span",{className:"inline-block w-1 h-1 rounded-full bg-text-tertiary animate-pulse [animation-delay:150ms]"}),h.jsx("span",{className:"inline-block w-1 h-1 rounded-full bg-text-tertiary animate-pulse [animation-delay:300ms]"}),h.jsx("span",{className:"text-text-muted ml-1 tabular-nums",children:f})]}),i.workflowId&&h.jsxs(_r,{to:`/workflows/executions/${i.workflowId}`,className:"inline-flex items-center gap-1 text-[10px] text-accent/70 hover:text-accent transition-colors",children:[h.jsx(rh,{className:"w-2.5 h-2.5",strokeWidth:1.5}),"watch execution"]})]})}function OE({msg:i,compileMessage:n}){const s=i.role==="assistant";return h.jsxs("div",{className:`flex items-center gap-1.5 ${s?"justify-start":"justify-end"}`,children:[h.jsx(wE,{date:i.timestamp,format:"time",className:"!text-[9px] text-text-muted/50"}),i.durationMs!=null&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-text-muted/30 text-[8px]",children:"·"}),h.jsx(SE,{ms:i.durationMs,className:"!text-[9px] text-text-muted/50"})]}),i.workflowId&&h.jsx(_r,{to:`/workflows/executions/${i.workflowId}`,className:"text-text-muted/40 hover:text-accent transition-colors",title:"View workflow execution",children:h.jsx(rh,{className:"w-2.5 h-2.5",strokeWidth:1.5})}),s&&i.workflowId&&!i.pending&&h.jsx("button",{onClick:()=>n(i.id),disabled:i.compilationStatus==="compiling"||i.compilationStatus==="done",className:"transition-colors",title:i.compilationStatus==="done"?"Compiled — future queries will match this pipeline":i.compilationStatus==="error"?i.compilationError??"Compilation failed":i.compilationStatus==="compiling"?"Compiling...":"Compile to fast pipeline",children:h.jsx(Sv,{className:`w-2.5 h-2.5 ${i.compilationStatus==="done"?"text-status-success":i.compilationStatus==="error"?"text-status-error":i.compilationStatus==="compiling"?"text-accent/40 animate-pulse":"text-text-muted/40 hover:text-accent"}`,strokeWidth:1.5})})]})}function TE(){const{helpOpen:i,setHelpOpen:n,messages:s,sendMessage:a,pageContext:o,activeWorkflowId:f,clearMessages:d,compileMessage:m}=My(),[g,y]=O.useState(""),[E,w]=O.useState("md"),[T,z]=O.useState(!0),M=O.useRef(null),q=O.useRef(null);if(O.useEffect(()=>{M.current&&(M.current.scrollTop=M.current.scrollHeight)},[s]),O.useEffect(()=>{i&&q.current&&q.current.focus()},[i]),O.useEffect(()=>{if(!i)return;const N=V=>{V.key==="Escape"&&(E==="full"?w("lg"):E==="lg"?w("md"):E==="md"?w("sm"):n(!1))};return document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)},[i,E,n]),!i)return null;const Q=()=>{const N=g.trim();!N||f||(a(N),y(""),q.current&&(q.current.style.height="auto"))},W=N=>{N.key==="Enter"&&!N.shiftKey&&(N.preventDefault(),Q())},te=E==="full",fe=o.page.replace(/-/g," "),re=te?{}:{bottom:"108px"};return h.jsxs("div",{className:`fixed z-[45] flex flex-col border border-surface-border rounded-lg overflow-hidden transition-all duration-300 ${te?vg.full:`right-6 ${vg[E]}`} ${T?"bg-surface-raised shadow-xl":"bg-surface-raised/[0.03] shadow-lg shadow-black/5"}`,style:re,onMouseEnter:()=>z(!0),onMouseLeave:()=>z(!1),children:[h.jsxs("div",{className:`flex items-center justify-between px-4 py-2.5 border-b border-surface-border shrink-0 transition-all duration-300 ${T?"opacity-100":"opacity-50 grayscale brightness-150"}`,children:[h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("p",{className:"text-xs font-medium text-text-primary truncate",children:"Help Assistant"}),h.jsx("p",{className:"text-[10px] text-text-tertiary truncate",children:fe})]}),h.jsxs("div",{className:"flex items-center gap-1 ml-2",children:[h.jsx("div",{className:"flex items-center gap-0.5 border border-surface-border rounded p-0.5",role:"radiogroup","aria-label":"Panel size",children:EE.map(N=>h.jsx("button",{onClick:()=>w(N),className:`p-1 rounded transition-colors ${N===E?"bg-accent/15 text-accent":"text-text-muted hover:text-text-secondary hover:bg-surface-hover"}`,role:"radio","aria-checked":N===E,"aria-label":_g[N],title:_g[N],children:h.jsx(AE,{which:N})},N))}),s.length>0&&h.jsx("button",{onClick:d,className:"p-1 text-text-tertiary hover:text-text-secondary transition-colors","aria-label":"Clear conversation",title:"Clear conversation",children:h.jsx(Ev,{className:"w-3.5 h-3.5",strokeWidth:1.5})}),h.jsx("button",{onClick:()=>n(!1),className:"p-1 text-text-tertiary hover:text-text-primary transition-colors","aria-label":"Close",title:"Close",children:h.jsx(Dr,{className:"w-3.5 h-3.5",strokeWidth:1.5})})]})]}),h.jsxs("div",{ref:M,className:`flex-1 overflow-y-auto px-4 py-3 space-y-3 min-h-[120px] transition-all duration-300 ${T?"opacity-100":"opacity-50 grayscale brightness-150"}`,children:[s.length===0&&h.jsx("p",{className:"text-xs text-text-tertiary text-center py-6",children:"Ask anything about what you're viewing."}),s.map(N=>h.jsxs("div",{className:`text-xs leading-relaxed ${N.role==="user"?"text-right":"text-left"}`,children:[h.jsx("div",{className:`inline-block max-w-[85%] px-3 py-2 rounded-md whitespace-pre-wrap ${N.role==="user"?"bg-accent/10 text-text-primary":"bg-surface-sunken text-text-secondary"}`,children:N.pending?h.jsx(jE,{msg:N}):N.role==="assistant"?h.jsx(jh,{content:N.content}):N.content}),!N.pending&&h.jsx("div",{className:"mt-0.5",children:h.jsx(OE,{msg:N,compileMessage:m})})]},N.id))]}),h.jsxs("div",{className:`border-t border-surface-border px-3 py-2.5 flex gap-2 shrink-0 transition-all duration-300 ${T?"opacity-100":"opacity-50 grayscale brightness-150"}`,children:[h.jsx("textarea",{ref:q,value:g,onChange:N=>{y(N.target.value);const V=N.target;V.style.height="auto",V.style.height=`${Math.min(V.scrollHeight,120)}px`},onKeyDown:W,placeholder:"Ask a question...",rows:2,className:"flex-1 resize-none bg-surface text-xs text-text-primary placeholder:text-text-tertiary rounded px-2.5 py-1.5 border border-surface-border focus:outline-none focus:border-accent",style:{minHeight:"2.5rem"},disabled:!!f}),h.jsx("button",{onClick:Q,disabled:!g.trim()||!!f,className:"px-2.5 py-1.5 text-accent hover:text-accent-hover disabled:text-text-muted transition-colors self-end","aria-label":"Send",children:h.jsx(Av,{className:"w-4 h-4",strokeWidth:1.5})})]})]})}function NE(){var Q;const{isBuilder:i,isOps:n,viewAs:s}=gy(),{data:a}=Ur(),o=dy(),f=o!==null?o:!!((Q=a==null?void 0:a.ai)!=null&&Q.enabled),{collapsed:d,toggle:m}=by(),[g,y]=O.useState(!1),[E,w]=O.useState(!1),[T,z]=O.useState(()=>window.location.hash.startsWith("#docs")),M=ri(),q=O.useRef(null);return O.useEffect(()=>{const W=q.current;W&&(W.classList.remove("animate-page-in"),W.offsetWidth,W.classList.add("animate-page-in"))},[M.pathname]),O.useEffect(()=>{const W=()=>{window.location.hash.startsWith("#docs")&&z(!0)};return window.addEventListener("hashchange",W),()=>window.removeEventListener("hashchange",W)},[]),h.jsxs("div",{className:"h-screen bg-surface flex flex-col",children:[h.jsx(g2,{onToggleEventFeed:()=>y(W=>!W),onToggleDocs:()=>z(W=>!W)}),h.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[h.jsxs("aside",{className:`${d?"w-16":"w-60"} shrink-0 bg-surface-raised border-r border-surface-border flex flex-col transition-[width] duration-200 ease-out overflow-hidden relative z-20`,children:[h.jsxs("nav",{className:"flex-1 px-3 pt-[36px] pb-4 space-y-2 overflow-y-auto overflow-x-hidden",children:[h.jsx(w2,{aiEnabled:f,isBuilder:i,isOps:n,viewAs:s}),i&&h.jsx(S2,{}),i&&f&&h.jsx(A2,{}),i&&h.jsx(O2,{}),(i||n)&&h.jsx(T2,{isBuilder:i,isOps:n})]}),h.jsx("button",{onClick:m,className:`shrink-0 py-3 text-text-tertiary hover:text-text-secondary transition-colors duration-150 ${d?"flex justify-center":"flex items-center px-7"}`,"aria-label":d?"Expand sidebar":"Collapse sidebar",children:d?h.jsx(jv,{className:"w-4 h-4 text-accent-muted",strokeWidth:1.5}):h.jsx(Ov,{className:"w-4 h-4 text-accent-muted",strokeWidth:1.5})}),!d&&(a==null?void 0:a.environment)&&h.jsxs("div",{className:"shrink-0 px-5 pb-3 text-[10px] leading-tight text-text-tertiary whitespace-nowrap overflow-hidden text-ellipsis",title:`long-tail v${a.environment.longTailVersion} · HotMesh v${a.environment.hotmeshVersion} · Node ${a.environment.nodeVersion} · ${a.environment.nodeEnv}`,children:["long-tail v",a.environment.longTailVersion,h.jsx("span",{className:"mx-1 text-surface-border",children:"·"}),"HotMesh v",a.environment.hotmeshVersion]})]}),h.jsx("main",{className:"flex-1 overflow-y-auto",children:h.jsx("div",{ref:q,className:"w-full px-10 py-10 pb-16 animate-page-in h-full flex flex-col",children:h.jsx(Ar,{})})})]}),h.jsx(I2,{open:g,onToggle:()=>y(W=>!W),configOpen:E,onToggleConfig:()=>w(W=>!W)}),h.jsx(sS,{open:T,onClose:()=>{z(!1),history.replaceState(null,"",window.location.pathname+window.location.search)}}),f&&h.jsx(oS,{}),f&&h.jsx(TE,{})]})}function kE(){const{isAuthenticated:i}=ai(),n=ri();return i?h.jsx(Iw,{children:h.jsx(lS,{children:h.jsx(NE,{})})}):h.jsx($n,{to:"/login",state:{from:n.pathname},replace:!0})}function Hy({provider:i,className:n="w-5 h-5"}){switch(i){case"google":return h.jsxs("svg",{className:n,viewBox:"0 0 24 24",fill:"currentColor",children:[h.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z",fill:"#4285F4"}),h.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),h.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),h.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]});case"github":return h.jsx("svg",{className:n,viewBox:"0 0 24 24",fill:"currentColor",children:h.jsx("path",{d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0 0 22 12.017C22 6.484 17.522 2 12 2z"})});case"microsoft":return h.jsxs("svg",{className:n,viewBox:"0 0 24 24",fill:"currentColor",children:[h.jsx("path",{d:"M3 3h8.5v8.5H3z",fill:"#F25022"}),h.jsx("path",{d:"M12.5 3H21v8.5h-8.5z",fill:"#7FBA00"}),h.jsx("path",{d:"M3 12.5h8.5V21H3z",fill:"#00A4EF"}),h.jsx("path",{d:"M12.5 12.5H21V21h-8.5z",fill:"#FFB900"})]});case"anthropic":return h.jsx("svg",{className:n,viewBox:"0 0 24 24",fill:"currentColor",children:h.jsx("path",{d:"M13.827 3.52h3.603L24 20.48h-3.603l-6.57-16.96zm-7.258 0h3.767L16.906 20.48h-3.674l-1.343-3.461H6.396l-1.34 3.461H1.5l5.07-16.96zm2.327 5.14l-2.065 5.326h4.108l-2.043-5.326z"})});default:return h.jsxs("svg",{className:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[h.jsx("circle",{cx:"12",cy:"12",r:"10"}),h.jsx("path",{d:"M12 8v4l3 3"})]})}}async function CE(){return Ye("/auth/oauth/providers")}async function ME(i,n){const s=n?`?label=${encodeURIComponent(n)}`:"";return Ye(`/auth/oauth/connections/${i}${s}`,{method:"DELETE"})}function s3(){return Sn({queryKey:["oauth-connections"],queryFn:()=>Ye("/auth/oauth/connections")})}function i3(){const i=on();return En({mutationFn:({provider:n,label:s})=>ME(n,s),onSuccess:()=>{i.invalidateQueries({queryKey:["oauth-connections"]})}})}function RE(){var ae;const{login:i,isAuthenticated:n}=ai(),s=Tg(),a=ri(),o=new URLSearchParams(a.search),f=o.get("token"),d=o.get("error"),m=((ae=a.state)==null?void 0:ae.from)??o.get("returnTo")??"/",g=O.useRef(!1);f&&!g.current&&(g.current=!0,i(f,void 0,{displayName:o.get("displayName"),username:o.get("username")}));const[y,E]=O.useState(""),[w,T]=O.useState(""),[z,M]=O.useState(d||""),[q,Q]=O.useState(!1),[W,te]=O.useState(!!f),[fe,re]=O.useState([]),N=O.useRef(!1);if(O.useEffect(()=>{f||N.current||(N.current=!0,(async()=>{var P,F,X,oe;try{const ie=await fetch(`${Vt}/api/settings`);if(!ie.ok)return;const Ne=await ie.json();if(!((P=Ne.auth)!=null&&P.sso))return;const Ue=await fetch(`${Vt}/api/auth/sso`,{method:"POST"});if(!Ue.ok){M("Host authentication required — please log in to your organization first");return}const Te=await Ue.json();Te.token&&((F=Ne.auth)!=null&&F.ssoLogoutUrl&&sessionStorage.setItem("lt_sso_logout_url",Ne.auth.ssoLogoutUrl),te(!0),i(Te.token,void 0,{displayName:(X=Te.user)==null?void 0:X.display_name,username:(oe=Te.user)==null?void 0:oe.external_id}))}catch{}})())},[]),O.useEffect(()=>{f||CE().then(re).catch(()=>{})},[]),O.useEffect(()=>{if(!W)return;const P=setTimeout(()=>s(m,{replace:!0}),1500);return()=>clearTimeout(P)},[W]),n&&!W)return h.jsx($n,{to:m,replace:!0});const V=async P=>{var F,X;if(P.preventDefault(),M(""),!y.trim()||!w){M("Username and password are required");return}Q(!0);try{const oe=await fetch(`${Vt}/api/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:y.trim(),password:w})}),ie=await oe.json();if(!oe.ok){M(ie.error||"Login failed");return}te(!0),i(ie.token,{username:y.trim(),password:w},{displayName:(F=ie.user)==null?void 0:F.display_name,username:(X=ie.user)==null?void 0:X.external_id})}catch{M("Unable to connect to server")}finally{Q(!1)}};return h.jsx("div",{className:"min-h-screen bg-surface flex items-center justify-center overflow-hidden",children:h.jsxs("div",{className:"w-full max-w-md p-10",children:[h.jsx("div",{className:`mb-10 transition-all duration-[1500ms] ease-in ${W?"translate-x-[120vw] -translate-y-[60vh] scale-[3] opacity-0":""}`,children:h.jsx(Sh,{size:"lg",hideLabel:W})}),h.jsxs("form",{onSubmit:V,className:`space-y-5 transition-opacity duration-300 ${W?"opacity-0":""}`,children:[h.jsxs("div",{children:[h.jsx("label",{htmlFor:"username",className:"block text-sm font-medium text-text-secondary mb-2",children:"Username"}),h.jsx("input",{id:"username",type:"text",value:y,onChange:P=>E(P.target.value),className:"input",placeholder:"Enter your username",autoFocus:!W,autoComplete:"username"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-text-secondary mb-2",children:"Password"}),h.jsx("input",{id:"password",type:"password",value:w,onChange:P=>T(P.target.value),className:"input",placeholder:"Enter your password",autoComplete:"current-password"})]}),z&&h.jsx("p",{className:"text-sm text-status-error",children:z}),h.jsx("button",{type:"submit",className:"btn-primary w-full",disabled:q||W,children:q?"Signing in...":"Sign In"}),fe.length>0&&h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"flex items-center gap-3 mt-6",children:[h.jsx("div",{className:"flex-1 h-px bg-border"}),h.jsx("span",{className:"text-xs text-text-tertiary",children:"or continue with"}),h.jsx("div",{className:"flex-1 h-px bg-border"})]}),h.jsx("div",{className:"space-y-2",children:fe.filter(P=>P.provider!=="anthropic").map(P=>h.jsxs("a",{href:`${Vt}/api/auth/oauth/${P.provider}?returnTo=${encodeURIComponent(m)}`,className:"btn-secondary w-full flex items-center justify-center gap-2",children:[h.jsx(Hy,{provider:P.provider}),"Sign in with ",P.name]},P.provider))})]})]})]})})}function wg(){const{isAuthenticated:i}=ai(),n=Tg(),s=ri(),a=new URLSearchParams(s.search),o=a.get("state")||"";O.useEffect(()=>{i||n(`/login?returnTo=${encodeURIComponent(s.pathname+s.search)}`)},[i]);const[f,d]=O.useState(""),[m,g]=O.useState(a.get("label")||"default"),[y,E]=O.useState(""),[w,T]=O.useState(!1),z=f.trim().startsWith("sk-ant-oat"),M=f.trim().startsWith("sk-ant-api"),q=Q=>{Q.preventDefault();const W=f.trim();if(!W){E("A token or API key is required");return}if(!W.startsWith("sk-ant-")){E('Invalid format. Must start with "sk-ant-oat" (OAuth token) or "sk-ant-api" (API key)');return}T(!0),E("");const te=`${Vt}/api/auth/oauth/anthropic/callback?code=${encodeURIComponent(W)}&state=${encodeURIComponent(o)}`;window.location.href=te};return h.jsx("div",{className:"min-h-screen bg-surface flex items-center justify-center",children:h.jsxs("div",{className:"w-full max-w-md p-10",children:[h.jsx("div",{className:"mb-10",children:h.jsx(Sh,{size:"lg"})}),h.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[h.jsx(Hy,{provider:"anthropic",className:"w-6 h-6"}),h.jsx("h2",{className:"text-lg font-semibold text-text-primary",children:"Connect Anthropic"})]}),h.jsx("p",{className:"text-sm text-text-secondary mb-4",children:"Connect your Anthropic account so Claude Code tasks run under your credentials. Your token is encrypted at rest."}),h.jsxs("form",{onSubmit:q,className:"space-y-5",children:[h.jsxs("div",{children:[h.jsx("label",{htmlFor:"token",className:"block text-sm font-medium text-text-secondary mb-2",children:"OAuth Token or API Key"}),h.jsx("input",{id:"token",type:"password",value:f,onChange:Q=>d(Q.target.value),className:"input",placeholder:"sk-ant-oat01-... or sk-ant-api03-...",autoFocus:!0,autoComplete:"off"}),z&&h.jsx("p",{className:"text-xs text-status-success mt-1",children:"OAuth token detected — uses your Claude subscription (flat rate)"}),M&&h.jsx("p",{className:"text-xs text-status-warning mt-1",children:"API key detected — billed per-token from your Anthropic API account"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"label",className:"block text-sm font-medium text-text-secondary mb-2",children:"Label"}),h.jsx("input",{id:"label",type:"text",value:m,onChange:Q=>g(Q.target.value.replace(/\s+/g,"-").toLowerCase()),className:"input",placeholder:"default",autoComplete:"off"}),h.jsx("p",{className:"text-xs text-text-tertiary mt-1",children:'A name for this credential. Use different labels to store multiple credentials (e.g., "subscription", "api-batch").'})]}),y&&h.jsx("p",{className:"text-sm text-status-error",children:y}),h.jsx("button",{type:"submit",className:"btn-primary w-full",disabled:w,children:w?"Validating...":"Connect"}),h.jsx("a",{href:"/",className:"block text-center text-sm text-text-tertiary hover:text-text-secondary",children:"Cancel"})]}),h.jsxs("div",{className:"mt-6 space-y-3 text-xs text-text-tertiary",children:[h.jsxs("div",{children:[h.jsx("span",{className:"font-medium text-text-secondary",children:"Recommended:"})," ","Run"," ",h.jsx("code",{className:"px-1 py-0.5 bg-surface-sunken rounded text-[11px]",children:"claude setup-token"})," ","in your terminal to generate an OAuth token that uses your subscription."]}),h.jsxs("div",{children:[h.jsx("span",{className:"font-medium text-text-secondary",children:"Alternative:"})," ","Use an API key from"," ",h.jsx("a",{href:"https://console.anthropic.com/settings/keys",target:"_blank",rel:"noopener noreferrer",className:"text-accent-secondary hover:underline",children:"console.anthropic.com"})," ","(billed per-token)."]})]})]})})}function Ba({roleTypes:i,roleNames:n,redirectTo:s="/"}){const{isSuperAdmin:a,hasRole:o,hasRoleType:f}=ai();return a?h.jsx(Ar,{}):i&&i.some(d=>f(d))?h.jsx(Ar,{}):n&&n.some(d=>o(d))?h.jsx(Ar,{}):h.jsx($n,{to:s,replace:!0})}function DE({redirectTo:i="/"}){var a;const{data:n,isLoading:s}=Ur();return s||!n?null:(a=n.ai)!=null&&a.enabled?h.jsx(Ar,{}):h.jsx($n,{to:i,replace:!0})}function zE({flag:i,redirectTo:n="/"}){var o;const{data:s,isLoading:a}=Ur();return a||!s?null:((o=s.features)==null?void 0:o[i])===!1?h.jsx($n,{to:n,replace:!0}):h.jsx(Ar,{})}const qE=O.lazy(()=>Ee(()=>import("./ProcessesListPage-DSsIGmBB.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url).then(i=>({default:i.ProcessesListPage}))),UE=O.lazy(()=>Ee(()=>import("./ProcessDetailPage-C3gE4OHq.js"),__vite__mapDeps([18,1,2,4,19,15,20,17,11,6,21,22,23]),import.meta.url).then(i=>({default:i.ProcessDetailPage}))),BE=O.lazy(()=>Ee(()=>import("./McpOverview-DXrkDkU-.js"),__vite__mapDeps([24,1,25,26,27,28,14,15,29,6]),import.meta.url).then(i=>({default:i.McpOverview}))),LE=O.lazy(()=>Ee(()=>import("./McpRunsPage-Bx5DiGk7.js"),__vite__mapDeps([30,1,26,27,5,6,31,28,8,9,10,17,15,32,14,13,12,16,33]),import.meta.url).then(i=>({default:i.McpRunsPage}))),HE=O.lazy(()=>Ee(()=>import("./McpRunDetailPage-B7e6AVl1.js"),__vite__mapDeps([34,1,26,20,14,15,35,6,36,37,13,38,39,16]),import.meta.url).then(i=>({default:i.McpRunDetailPage}))),PE=O.lazy(()=>Ee(()=>import("./McpQueryPage-oE9eWAus.js"),__vite__mapDeps([40,1,14,15,9,10,13,12,16,8,11,32,17,33,5,6,4,41]),import.meta.url).then(i=>({default:i.McpQueryPage}))),$E=O.lazy(()=>Ee(()=>import("./McpQueryDetailPage-CnLYE26v.js"),__vite__mapDeps([42,1,14,15,20,41,6,27,4,43,36,26,3,2,44,45,46,47,48,49,35,50,38,39]),import.meta.url).then(i=>({default:i.McpQueryDetailPage}))),YE=O.lazy(()=>Ee(()=>import("./EscalationsOverview-uHb8ni_5.js"),__vite__mapDeps([51,1,4,14,15,29,6]),import.meta.url).then(i=>({default:i.EscalationsOverview}))),GE=O.lazy(()=>Ee(()=>import("./AvailableEscalationsPage-CUvrKkgS.js"),__vite__mapDeps([52,1,6,4,53,54,55,56,20,57,15,5,7,8,9,10,12,14,23,58,13,59,21,17,33,16]),import.meta.url).then(i=>({default:i.AvailableEscalationsPage}))),VE=O.lazy(()=>Ee(()=>import("./OperatorDashboard-r6hQ57eO.js"),__vite__mapDeps([60,1,4,56,5,6,7,8,9,10,14,15,12,33,58,13,59,21,17,57,16]),import.meta.url).then(i=>({default:i.OperatorDashboard}))),FE=O.lazy(()=>Ee(()=>import("./index-DIrYjyRG.js"),__vite__mapDeps([61,1,53,54,6,55,56,14,15,16,57,3,4,62,20,21,35,22,23]),import.meta.url).then(i=>({default:i.EscalationDetailPage}))),IE=O.lazy(()=>Ee(()=>import("./WorkflowsOverview-l-0KYP7Y.js"),__vite__mapDeps([63,1,3,4,14,15,29,6]),import.meta.url).then(i=>({default:i.WorkflowsOverview}))),JE=O.lazy(()=>Ee(()=>import("./index-BMQopgAx.js"),__vite__mapDeps([64,1,3,14,15,13,17,65,47,48,6]),import.meta.url).then(i=>({default:i.StartWorkflowPage}))),QE=O.lazy(()=>Ee(()=>import("./index-BMQopgAx.js"),__vite__mapDeps([64,1,3,14,15,13,17,65,47,48,6]),import.meta.url).then(i=>({default:i.DurableInvokePage}))),XE=O.lazy(()=>Ee(()=>import("./WorkflowsDashboard-DEq9fkhl.js"),__vite__mapDeps([66,1,32,3,31,28,6,4,5,8,9,10,17,15,14,13,12,16,33]),import.meta.url).then(i=>({default:()=>i.WorkflowsDashboard({tier:"durable"})}))),KE=O.lazy(()=>Ee(()=>import("./WorkflowsDashboard-DEq9fkhl.js"),__vite__mapDeps([66,1,32,3,31,28,6,4,5,8,9,10,17,15,14,13,12,16,33]),import.meta.url).then(i=>({default:()=>i.WorkflowsDashboard({tier:"all"})}))),ZE=O.lazy(()=>Ee(()=>import("./YamlWorkflowsPage-CabXXA9r.js"),__vite__mapDeps([67,1,27,5,6,14,15,13,10,49,65,20]),import.meta.url).then(i=>({default:i.YamlWorkflowsPage}))),WE=O.lazy(()=>Ee(()=>import("./GraphInvokePage-C6sfPjSc.js"),__vite__mapDeps([68,1,27,14,15,44,46,47,48,45,6,49,65]),import.meta.url).then(i=>({default:i.GraphInvokePage}))),eA=O.lazy(()=>Ee(()=>import("./YamlWorkflowDetailPage-BgimL3VT.js"),__vite__mapDeps([69,1,27,20,65,15,6]),import.meta.url).then(i=>({default:i.YamlWorkflowDetailPage}))),tA=O.lazy(()=>Ee(()=>import("./TasksListPage-C_PwExQC.js"),__vite__mapDeps([70,1,2,3,5,6,9,10,20,59,50,12,13,14,15,17]),import.meta.url).then(i=>({default:i.TasksListPage}))),nA=O.lazy(()=>Ee(()=>import("./TaskDetailPage-BUKHu2oD.js"),__vite__mapDeps([71,1,2,20,59,14,15,6]),import.meta.url).then(i=>({default:i.TaskDetailPage}))),Sg=O.lazy(()=>Ee(()=>import("./WorkflowExecutionPage-DrwKB2x8.js"),__vite__mapDeps([72,1,3,4,37,13,38,20,6,39,15,2,14,36,16,62,35]),import.meta.url).then(i=>({default:i.WorkflowExecutionPage}))),sA=O.lazy(()=>Ee(()=>import("./AdminDashboard-JobmypiO.js"),__vite__mapDeps([73,1,2,4,25,19,15,6]),import.meta.url).then(i=>({default:i.AdminDashboard}))),iA=O.lazy(()=>Ee(()=>import("./index-BfDn7j4K.js"),__vite__mapDeps([74,1,3,9,10,13,33,5,6,14,15,75,17]),import.meta.url).then(i=>({default:i.WorkersPage}))),rA=O.lazy(()=>Ee(()=>import("./index-xBNf5aFb.js"),__vite__mapDeps([76,1,3,13,77,54,6,21,15,17,14,56,47,48,65]),import.meta.url).then(i=>({default:i.WorkflowConfigsPage}))),Eg=O.lazy(()=>Ee(()=>import("./index-xBNf5aFb.js"),__vite__mapDeps([76,1,3,13,77,54,6,21,15,17,14,56,47,48,65]),import.meta.url).then(i=>({default:i.WorkflowConfigDetailPage}))),aA=O.lazy(()=>Ee(()=>import("./index-BmbO85oT.js"),__vite__mapDeps([78,1,25,10,77,54,6,14,15,13,12,5,79,46,47,48,49,45,33,20]),import.meta.url).then(i=>({default:i.McpServersPage}))),Ag=O.lazy(()=>Ee(()=>import("./index-BZfX_ziz.js"),__vite__mapDeps([80,1,25,14,15,43,6]),import.meta.url).then(i=>({default:i.McpServerDetailPage}))),lA=O.lazy(()=>Ee(()=>import("./index-1WCiN-pF.js"),__vite__mapDeps([81,1,23,5,6,9,10,12,13,77,54,33,14,15,21,48,11,56,50]),import.meta.url).then(i=>({default:i.UsersPage}))),oA=O.lazy(()=>Ee(()=>import("./RolesPage-CE5fui18.js"),__vite__mapDeps([82,1,56,14,15,54,6]),import.meta.url).then(i=>({default:i.RolesPage}))),cA=O.lazy(()=>Ee(()=>import("./RoleDetailPage-DiFISbnq.js"),__vite__mapDeps([83,1,56,77,54,6,23,15]),import.meta.url).then(i=>({default:i.RoleDetailPage}))),uA=O.lazy(()=>Ee(()=>import("./EscalationSchemaPage-BcYcj-b8.js"),__vite__mapDeps([84,1,56,15,6]),import.meta.url).then(i=>({default:i.EscalationSchemaPage}))),fA=O.lazy(()=>Ee(()=>import("./EscalationListSchemaPage-ClFRLeKV.js"),__vite__mapDeps([85,1,56,15,6]),import.meta.url).then(i=>({default:i.EscalationListSchemaPage}))),hA=O.lazy(()=>Ee(()=>import("./index-CJFA7aLp.js"),__vite__mapDeps([86,1,14,15,54,6,55]),import.meta.url).then(i=>({default:i.MaintenancePage}))),dA=O.lazy(()=>Ee(()=>import("./OperationsPage-BmG3qzdR.js").then(i=>i.O),__vite__mapDeps([87,1,56,4,14,15,6]),import.meta.url).then(i=>({default:i.OperationsPage}))),mA=O.lazy(()=>Ee(()=>import("./index-C75E0-Wd.js"),__vite__mapDeps([88,1,19,15,13,5,6,31,28,54,36,75,9,10,33]),import.meta.url).then(i=>({default:i.ControlPlanePage}))),pA=O.lazy(()=>Ee(()=>import("./index-wZzl3bcK.js"),__vite__mapDeps([89,1,62,15,39,5,6,31,28,8,9,10,12,13,14,16]),import.meta.url).then(i=>({default:i.StreamMessagesPage}))),gA=O.lazy(()=>Ee(()=>import("./CredentialsPage-D5H_kyRL.js"),__vite__mapDeps([90,1,14,15,50,77,54,6]),import.meta.url).then(i=>({default:i.CredentialsPage}))),yA=O.lazy(()=>Ee(()=>import("./index-B4zWCfQr.js"),__vite__mapDeps([91,1,6,14,15,13,16,8,10,92,50]),import.meta.url).then(i=>({default:i.FilesPage}))),bA=O.lazy(()=>Ee(()=>import("./index-QOTnrFd1.js"),__vite__mapDeps([93,1,14,15,13,16,12,10,92,50,94,43,6]),import.meta.url).then(i=>({default:i.KnowledgePage}))),xA=O.lazy(()=>Ee(()=>import("./HomePage-CUHZxihq.js"),__vite__mapDeps([95,1,56,3,26,28,4,21,15,17,16,87,14,6]),import.meta.url).then(i=>({default:i.HomePage}))),vA=O.lazy(()=>Ee(()=>import("./AgentsPage-DTKto-gL.js"),__vite__mapDeps([96,1,97,4,5,6,8,9,10,12,13,14,15,16]),import.meta.url).then(i=>({default:i.AgentsPage}))),_A=O.lazy(()=>Ee(()=>import("./AgentDetailPage-Cj22NZLI.js"),__vite__mapDeps([98,1,97,99,15,4,17,6]),import.meta.url).then(i=>({default:i.AgentDetailPage}))),jg=O.lazy(()=>Ee(()=>import("./AgentConfigPage-D_HuaRN9.js"),__vite__mapDeps([100,1,97,99,15,14,94,46,47,48,3,27,101,102,17,6]),import.meta.url).then(i=>({default:i.AgentConfigPage}))),wA=O.lazy(()=>Ee(()=>import("./CapabilitiesPage-1ZMO_0UU.js"),__vite__mapDeps([103,1,101,79,25,46,47,48,15,49,6,45,14,13]),import.meta.url).then(i=>({default:i.CapabilitiesPage}))),SA=O.lazy(()=>Ee(()=>import("./TopicsPage-BZknsApe.js"),__vite__mapDeps([104,1,102,14,15,13,6]),import.meta.url).then(i=>({default:i.TopicsPage}))),EA=O.lazy(()=>Ee(()=>import("./TopicDetailPage-DKAvbkxD.js"),__vite__mapDeps([105,1,102,16,15,6]),import.meta.url).then(i=>({default:i.TopicDetailPage})));function AA(){return h.jsxs("div",{className:"animate-pulse space-y-4",children:[h.jsx("div",{className:"h-8 bg-surface-sunken rounded w-48"}),h.jsx("div",{className:"h-40 bg-surface-sunken rounded"})]})}function we({children:i}){return h.jsx(O.Suspense,{fallback:h.jsx(AA,{}),children:h.jsx("div",{className:"animate-page-enter flex flex-col flex-1 min-h-0",children:i})})}const Py=new Zx({defaultOptions:{queries:{staleTime:1e4,retry:(i,n)=>n instanceof Error&&n.message==="Session expired"?!1:i<1}}});window.addEventListener("auth:unauthorized",()=>{Py.clear(),sessionStorage.removeItem("lt_token"),sessionStorage.removeItem("lt_credentials"),sessionStorage.removeItem("lt_user_info");const i=window.__LT_BASE__||"",n=`${i}/login`;if(window.location.pathname!==n){const s=window.location.pathname+window.location.search,a=i&&s.startsWith(i)?s.slice(i.length)||"/":s;window.location.href=`${n}?returnTo=${encodeURIComponent(a)}`}});const jA=tv([{path:"/login",element:h.jsx(RE,{})},{path:"/connect/anthropic",element:h.jsx(wg,{})},{path:"/connect/:provider",element:h.jsx(wg,{})},{path:"/",element:h.jsx(kE,{}),children:[{index:!0,element:h.jsx(we,{children:h.jsx(xA,{})})},{path:"processes/all",element:h.jsx(we,{children:h.jsx(qE,{})})},{path:"processes/detail/:originId",element:h.jsx(we,{children:h.jsx(UE,{})})},{path:"credentials",element:h.jsx(we,{children:h.jsx(gA,{})})},{path:"connections",element:h.jsx($n,{to:"/credentials",replace:!0})},{path:"escalations",element:h.jsx(we,{children:h.jsx(YE,{})})},{path:"escalations/available",element:h.jsx(we,{children:h.jsx(GE,{})})},{path:"escalations/queue",element:h.jsx(we,{children:h.jsx(VE,{})})},{path:"escalations/detail/:id",element:h.jsx(we,{children:h.jsx(FE,{})})},{path:"capabilities",element:h.jsx(we,{children:h.jsx(wA,{})})},{path:"agents",element:h.jsx(we,{children:h.jsx(vA,{})})},{path:"agents/new",element:h.jsx(we,{children:h.jsx(jg,{})})},{path:"agents/:id",element:h.jsx(we,{children:h.jsx(_A,{})})},{path:"agents/:id/edit",element:h.jsx(we,{children:h.jsx(jg,{})})},{path:"topics",element:h.jsx(we,{children:h.jsx(SA,{})})},{path:"topics/:topic",element:h.jsx(we,{children:h.jsx(EA,{})})},{element:h.jsx(Ba,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"workflows",element:h.jsx(we,{children:h.jsx(IE,{})})},{path:"workflows/executions",element:h.jsx(we,{children:h.jsx(KE,{})})},{path:"workflows/durable/executions",element:h.jsx(we,{children:h.jsx(XE,{})})},{path:"workflows/durable/executions/:workflowId",element:h.jsx(we,{children:h.jsx(Sg,{})})},{path:"workflows/tasks",element:h.jsx(we,{children:h.jsx(tA,{})})},{path:"workflows/tasks/detail/:id",element:h.jsx(we,{children:h.jsx(nA,{})})},{path:"workflows/executions/:workflowId",element:h.jsx(we,{children:h.jsx(Sg,{})})},{path:"workflows/start",element:h.jsx(we,{children:h.jsx(JE,{})})},{path:"workflows/durable/invoke",element:h.jsx(we,{children:h.jsx(QE,{})})},{path:"workflows/cron",element:h.jsx($n,{to:"/workflows/start?mode=schedule",replace:!0})},{path:"workflows/workers",element:h.jsx(we,{children:h.jsx(iA,{})})},{path:"workflows/registry",element:h.jsx(we,{children:h.jsx(rA,{})})},{path:"workflows/registry/new",element:h.jsx(we,{children:h.jsx(Eg,{})})},{path:"workflows/registry/:workflowType",element:h.jsx(we,{children:h.jsx(Eg,{})})}]},{element:h.jsx(Ba,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"mcp/workflows",element:h.jsx(we,{children:h.jsx(ZE,{})})},{path:"mcp/workflows/invoke",element:h.jsx(we,{children:h.jsx(WE,{})})},{path:"mcp/workflows/:id",element:h.jsx(we,{children:h.jsx(eA,{})})},{path:"mcp/executions",element:h.jsx(we,{children:h.jsx(LE,{})})},{path:"mcp/executions/:jobId",element:h.jsx(we,{children:h.jsx(HE,{})})},{path:"files",element:h.jsx(we,{children:h.jsx(yA,{})})},{path:"knowledge",element:h.jsx(we,{children:h.jsx(bA,{})})},{element:h.jsx(DE,{}),children:[{path:"mcp",element:h.jsx(we,{children:h.jsx(BE,{})})},{path:"mcp/queries",element:h.jsx(we,{children:h.jsx(PE,{})})},{path:"mcp/queries/:workflowId",element:h.jsx(we,{children:h.jsx($E,{})})},{path:"mcp/tools",element:h.jsx($n,{to:"/mcp/servers",replace:!0})},{path:"mcp/servers",element:h.jsx(we,{children:h.jsx(aA,{})})},{path:"mcp/servers/new",element:h.jsx(we,{children:h.jsx(Ag,{})})},{path:"mcp/servers/:serverId",element:h.jsx(we,{children:h.jsx(Ag,{})})}]}]},{element:h.jsx(Ba,{roleTypes:["admin","superadmin"],roleNames:["engineer"]}),children:[{path:"operations",element:h.jsx(we,{children:h.jsx(dA,{})})}]},{element:h.jsx(Ba,{roleTypes:["admin","superadmin"],roleNames:["engineer"]}),children:[{path:"admin",element:h.jsx(we,{children:h.jsx(sA,{})})},{path:"admin/users",element:h.jsx(we,{children:h.jsx(lA,{})})},{path:"admin/escalation-chains",element:h.jsx($n,{to:"/admin/roles",replace:!0})},{path:"admin/roles",element:h.jsx(we,{children:h.jsx(oA,{})})},{path:"admin/roles/:role",element:h.jsx(we,{children:h.jsx(cA,{})})},{path:"admin/roles/:role/schema",element:h.jsx(we,{children:h.jsx(uA,{})})},{path:"admin/roles/:role/list-schema",element:h.jsx(we,{children:h.jsx(fA,{})})}]},{element:h.jsx(Ba,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"admin/bots",element:h.jsx($n,{to:"/admin/users?tab=service-accounts",replace:!0})},{element:h.jsx(zE,{flag:"dbMaintenance"}),children:[{path:"admin/maintenance",element:h.jsx(we,{children:h.jsx(hA,{})})}]},{path:"admin/controlplane",element:h.jsx(we,{children:h.jsx(mA,{})})},{path:"admin/streams",element:h.jsx(we,{children:h.jsx(pA,{})})}]}]}],{basename:window.__LT_BASE__||"/"});function OA(){return h.jsx(Wx,{client:Py,children:h.jsx(qv,{children:h.jsx(Hw,{children:h.jsx(nv,{router:jA})})})})}Sy(wy());Mv.createRoot(document.getElementById("root")).render(h.jsx(O.StrictMode,{children:h.jsx(OA,{})}));export{i3 as $,Th as A,BA as B,Ah as C,SE as D,$A as E,Ty as F,JA as G,Oh as H,Ly as I,G2 as J,e3 as K,KA as L,jh as M,L_ as N,Vt as O,Dg as P,RA as Q,a2 as R,M2 as S,d2 as T,XA as U,Mo as V,$a as W,vr as X,br as Y,h2 as Z,s3 as _,n3 as a,Hy as a0,ZA as a1,wE as b,P_ as c,Ye as d,UA as e,xE as f,LA as g,PA as h,DA as i,Jw as j,dy as k,ai as l,qA as m,gy as n,YA as o,GA as p,VA as q,FA as r,IA as s,QA as t,Ur as u,zA as v,Qw as w,HA as x,t3 as y,WA as z};
|
|
63
|
-
//# sourceMappingURL=index-
|
|
62
|
+
... (truncated)`});const ae=`${rS(o.concat(fe))}${W}`;try{const X=(await Ye("/insight/mcp-query",{method:"POST",body:JSON.stringify({prompt:ae,tags:N.suggestedTags,context:N,wait:!1,direct:!0})})).workflow_id;m(X),f(oe=>oe.map(ie=>ie.id===re.id?{...ie,workflowId:X}:ie)),E.current&&clearInterval(E.current),E.current=setInterval(async()=>{var oe;try{const ie=await Ye(`/workflows/${X}/result`),Ne=(oe=ie==null?void 0:ie.result)==null?void 0:oe.data;if(Ne){E.current&&clearInterval(E.current),E.current=null,m(null);const Ue=aS(Ne);let Te;try{Te=(await Ye(`/workflow-states/${X}/execution`)).duration_ms}catch{}f($=>$.map(se=>se.id===re.id?{...se,content:Ue,timestamp:new Date().toISOString(),pending:!1,durationMs:Te}:se))}}catch{}},3e3)}catch{f(F=>F.map(X=>X.id===re.id?{...X,content:"Failed to submit query. Please try again.",pending:!1}:X))}},[o,w]),Q=O.useCallback(async W=>{const te=o.find(N=>N.id===W);if(!(te!=null&&te.workflowId)||te.compilationStatus==="compiling"||te.compilationStatus==="done")return;const fe=o.indexOf(te),re=o.slice(0,fe).reverse().find(N=>N.role==="user");if(re){f(N=>N.map(V=>V.id===W?{...V,compilationStatus:"compiling"}:V));try{const N=await Ye("/insight/mcp-query/describe",{method:"POST",body:JSON.stringify({prompt:re.content,summary:te.content})}),V=await Ye("/yaml-workflows",{method:"POST",body:JSON.stringify({workflow_id:te.workflowId,task_queue:"long-tail-system",workflow_name:"mcpQuery",name:N.tool_name,description:N.description,tags:N.tags,app_id:""})});await Ye(`/yaml-workflows/${V.id}/deploy`,{method:"POST"}),f(ae=>ae.map(P=>P.id===W?{...P,compilationStatus:"done"}:P))}catch(N){const V=N instanceof Error?N.message:"Compilation failed";f(ae=>ae.map(P=>P.id===W?{...P,compilationStatus:"error",compilationError:V}:P))}}},[o]);return h.jsx(Cy.Provider,{value:{helpOpen:s,setHelpOpen:a,toggleHelp:T,messages:o,sendMessage:q,pageContext:w,setPageContext:z,activeWorkflowId:d,clearMessages:M,compileMessage:Q},children:i})}function My(){const i=O.useContext(Cy);if(!i)throw new Error("useHelpAssistant must be used within HelpAssistantProvider");return i}function oS(){const{helpOpen:i,toggleHelp:n}=My();return h.jsx("button",{onClick:n,className:"fixed right-3 z-[45] flex items-center justify-center w-10 h-10 rounded-full bg-surface-raised shadow-lg hover:scale-110 transition-transform duration-150 border border-accent/30",style:{bottom:"44px"},"aria-label":i?"Close help":"Ask for help",children:i?h.jsx(Dr,{className:"w-5 h-5 text-text-tertiary",strokeWidth:1.5}):h.jsx("span",{role:"img","aria-label":"Help",className:"logo-mark w-8 h-8 -rotate-[120deg]",style:{"--logo-url":`url(${Vt}/logo512.png)`}})})}const Ry=6048e5,cS=864e5,ug=6e4,fg=525600,hg=43200,dg=1440,mg=Symbol.for("constructDateFrom");function bs(i,n){return typeof i=="function"?i(n):i&&typeof i=="object"&&mg in i?i[mg](n):i instanceof Date?new i.constructor(n):new Date(n)}function ln(i,n){return bs(n||i,i)}let uS={};function nl(){return uS}function Za(i,n){var m,g,y,E;const s=nl(),a=(n==null?void 0:n.weekStartsOn)??((g=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:g.weekStartsOn)??s.weekStartsOn??((E=(y=s.locale)==null?void 0:y.options)==null?void 0:E.weekStartsOn)??0,o=ln(i,n==null?void 0:n.in),f=o.getDay(),d=(f<a?7:0)+f-a;return o.setDate(o.getDate()-d),o.setHours(0,0,0,0),o}function Zo(i,n){return Za(i,{...n,weekStartsOn:1})}function Dy(i,n){const s=ln(i,n==null?void 0:n.in),a=s.getFullYear(),o=bs(s,0);o.setFullYear(a+1,0,4),o.setHours(0,0,0,0);const f=Zo(o),d=bs(s,0);d.setFullYear(a,0,4),d.setHours(0,0,0,0);const m=Zo(d);return s.getTime()>=f.getTime()?a+1:s.getTime()>=m.getTime()?a:a-1}function Wo(i){const n=ln(i),s=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return s.setUTCFullYear(n.getFullYear()),+i-+s}function zy(i,...n){const s=bs.bind(null,i||n.find(a=>typeof a=="object"));return n.map(s)}function pg(i,n){const s=ln(i,n==null?void 0:n.in);return s.setHours(0,0,0,0),s}function fS(i,n,s){const[a,o]=zy(s==null?void 0:s.in,i,n),f=pg(a),d=pg(o),m=+f-Wo(f),g=+d-Wo(d);return Math.round((m-g)/cS)}function hS(i,n){const s=Dy(i,n),a=bs(i,0);return a.setFullYear(s,0,4),a.setHours(0,0,0,0),Zo(a)}function dS(i,n){const s=+ln(i)-+ln(n);return s<0?-1:s>0?1:s}function mS(i){return bs(i,Date.now())}function pS(i){return i instanceof Date||typeof i=="object"&&Object.prototype.toString.call(i)==="[object Date]"}function gS(i){return!(!pS(i)&&typeof i!="number"||isNaN(+ln(i)))}function yS(i){return n=>{const a=(i?Math[i]:Math.trunc)(n);return a===0?0:a}}function bS(i,n){const s=ln(i,n==null?void 0:n.in);return s.setFullYear(s.getFullYear(),0,1),s.setHours(0,0,0,0),s}const xS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},vS=(i,n,s)=>{let a;const o=xS[i];return typeof o=="string"?a=o:n===1?a=o.one:a=o.other.replace("{{count}}",n.toString()),s!=null&&s.addSuffix?s.comparison&&s.comparison>0?"in "+a:a+" ago":a};function Rf(i){return(n={})=>{const s=n.width?String(n.width):i.defaultWidth;return i.formats[s]||i.formats[i.defaultWidth]}}const _S={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},wS={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},SS={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ES={date:Rf({formats:_S,defaultWidth:"full"}),time:Rf({formats:wS,defaultWidth:"full"}),dateTime:Rf({formats:SS,defaultWidth:"full"})},AS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},jS=(i,n,s,a)=>AS[i];function qa(i){return(n,s)=>{const a=s!=null&&s.context?String(s.context):"standalone";let o;if(a==="formatting"&&i.formattingValues){const d=i.defaultFormattingWidth||i.defaultWidth,m=s!=null&&s.width?String(s.width):d;o=i.formattingValues[m]||i.formattingValues[d]}else{const d=i.defaultWidth,m=s!=null&&s.width?String(s.width):i.defaultWidth;o=i.values[m]||i.values[d]}const f=i.argumentCallback?i.argumentCallback(n):n;return o[f]}}const OS={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},TS={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},NS={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},kS={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},CS={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},MS={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},RS=(i,n)=>{const s=Number(i),a=s%100;if(a>20||a<10)switch(a%10){case 1:return s+"st";case 2:return s+"nd";case 3:return s+"rd"}return s+"th"},DS={ordinalNumber:RS,era:qa({values:OS,defaultWidth:"wide"}),quarter:qa({values:TS,defaultWidth:"wide",argumentCallback:i=>i-1}),month:qa({values:NS,defaultWidth:"wide"}),day:qa({values:kS,defaultWidth:"wide"}),dayPeriod:qa({values:CS,defaultWidth:"wide",formattingValues:MS,defaultFormattingWidth:"wide"})};function Ua(i){return(n,s={})=>{const a=s.width,o=a&&i.matchPatterns[a]||i.matchPatterns[i.defaultMatchWidth],f=n.match(o);if(!f)return null;const d=f[0],m=a&&i.parsePatterns[a]||i.parsePatterns[i.defaultParseWidth],g=Array.isArray(m)?qS(m,w=>w.test(d)):zS(m,w=>w.test(d));let y;y=i.valueCallback?i.valueCallback(g):g,y=s.valueCallback?s.valueCallback(y):y;const E=n.slice(d.length);return{value:y,rest:E}}}function zS(i,n){for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&n(i[s]))return s}function qS(i,n){for(let s=0;s<i.length;s++)if(n(i[s]))return s}function US(i){return(n,s={})=>{const a=n.match(i.matchPattern);if(!a)return null;const o=a[0],f=n.match(i.parsePattern);if(!f)return null;let d=i.valueCallback?i.valueCallback(f[0]):f[0];d=s.valueCallback?s.valueCallback(d):d;const m=n.slice(o.length);return{value:d,rest:m}}}const BS=/^(\d+)(th|st|nd|rd)?/i,LS=/\d+/i,HS={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},PS={any:[/^b/i,/^(a|c)/i]},$S={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},YS={any:[/1/i,/2/i,/3/i,/4/i]},GS={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},VS={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},FS={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},IS={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},JS={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},QS={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},XS={ordinalNumber:US({matchPattern:BS,parsePattern:LS,valueCallback:i=>parseInt(i,10)}),era:Ua({matchPatterns:HS,defaultMatchWidth:"wide",parsePatterns:PS,defaultParseWidth:"any"}),quarter:Ua({matchPatterns:$S,defaultMatchWidth:"wide",parsePatterns:YS,defaultParseWidth:"any",valueCallback:i=>i+1}),month:Ua({matchPatterns:GS,defaultMatchWidth:"wide",parsePatterns:VS,defaultParseWidth:"any"}),day:Ua({matchPatterns:FS,defaultMatchWidth:"wide",parsePatterns:IS,defaultParseWidth:"any"}),dayPeriod:Ua({matchPatterns:JS,defaultMatchWidth:"any",parsePatterns:QS,defaultParseWidth:"any"})},qy={code:"en-US",formatDistance:vS,formatLong:ES,formatRelative:jS,localize:DS,match:XS,options:{weekStartsOn:0,firstWeekContainsDate:1}};function KS(i,n){const s=ln(i,n==null?void 0:n.in);return fS(s,bS(s))+1}function ZS(i,n){const s=ln(i,n==null?void 0:n.in),a=+Zo(s)-+hS(s);return Math.round(a/Ry)+1}function Uy(i,n){var E,w,T,z;const s=ln(i,n==null?void 0:n.in),a=s.getFullYear(),o=nl(),f=(n==null?void 0:n.firstWeekContainsDate)??((w=(E=n==null?void 0:n.locale)==null?void 0:E.options)==null?void 0:w.firstWeekContainsDate)??o.firstWeekContainsDate??((z=(T=o.locale)==null?void 0:T.options)==null?void 0:z.firstWeekContainsDate)??1,d=bs((n==null?void 0:n.in)||i,0);d.setFullYear(a+1,0,f),d.setHours(0,0,0,0);const m=Za(d,n),g=bs((n==null?void 0:n.in)||i,0);g.setFullYear(a,0,f),g.setHours(0,0,0,0);const y=Za(g,n);return+s>=+m?a+1:+s>=+y?a:a-1}function WS(i,n){var m,g,y,E;const s=nl(),a=(n==null?void 0:n.firstWeekContainsDate)??((g=(m=n==null?void 0:n.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??s.firstWeekContainsDate??((E=(y=s.locale)==null?void 0:y.options)==null?void 0:E.firstWeekContainsDate)??1,o=Uy(i,n),f=bs((n==null?void 0:n.in)||i,0);return f.setFullYear(o,0,a),f.setHours(0,0,0,0),Za(f,n)}function eE(i,n){const s=ln(i,n==null?void 0:n.in),a=+Za(s,n)-+WS(s,n);return Math.round(a/Ry)+1}function Fe(i,n){const s=i<0?"-":"",a=Math.abs(i).toString().padStart(n,"0");return s+a}const Xs={y(i,n){const s=i.getFullYear(),a=s>0?s:1-s;return Fe(n==="yy"?a%100:a,n.length)},M(i,n){const s=i.getMonth();return n==="M"?String(s+1):Fe(s+1,2)},d(i,n){return Fe(i.getDate(),n.length)},a(i,n){const s=i.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return s.toUpperCase();case"aaa":return s;case"aaaaa":return s[0];case"aaaa":default:return s==="am"?"a.m.":"p.m."}},h(i,n){return Fe(i.getHours()%12||12,n.length)},H(i,n){return Fe(i.getHours(),n.length)},m(i,n){return Fe(i.getMinutes(),n.length)},s(i,n){return Fe(i.getSeconds(),n.length)},S(i,n){const s=n.length,a=i.getMilliseconds(),o=Math.trunc(a*Math.pow(10,s-3));return Fe(o,n.length)}},xr={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},gg={G:function(i,n,s){const a=i.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return s.era(a,{width:"abbreviated"});case"GGGGG":return s.era(a,{width:"narrow"});case"GGGG":default:return s.era(a,{width:"wide"})}},y:function(i,n,s){if(n==="yo"){const a=i.getFullYear(),o=a>0?a:1-a;return s.ordinalNumber(o,{unit:"year"})}return Xs.y(i,n)},Y:function(i,n,s,a){const o=Uy(i,a),f=o>0?o:1-o;if(n==="YY"){const d=f%100;return Fe(d,2)}return n==="Yo"?s.ordinalNumber(f,{unit:"year"}):Fe(f,n.length)},R:function(i,n){const s=Dy(i);return Fe(s,n.length)},u:function(i,n){const s=i.getFullYear();return Fe(s,n.length)},Q:function(i,n,s){const a=Math.ceil((i.getMonth()+1)/3);switch(n){case"Q":return String(a);case"QQ":return Fe(a,2);case"Qo":return s.ordinalNumber(a,{unit:"quarter"});case"QQQ":return s.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return s.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(a,{width:"wide",context:"formatting"})}},q:function(i,n,s){const a=Math.ceil((i.getMonth()+1)/3);switch(n){case"q":return String(a);case"qq":return Fe(a,2);case"qo":return s.ordinalNumber(a,{unit:"quarter"});case"qqq":return s.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return s.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(a,{width:"wide",context:"standalone"})}},M:function(i,n,s){const a=i.getMonth();switch(n){case"M":case"MM":return Xs.M(i,n);case"Mo":return s.ordinalNumber(a+1,{unit:"month"});case"MMM":return s.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return s.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(a,{width:"wide",context:"formatting"})}},L:function(i,n,s){const a=i.getMonth();switch(n){case"L":return String(a+1);case"LL":return Fe(a+1,2);case"Lo":return s.ordinalNumber(a+1,{unit:"month"});case"LLL":return s.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return s.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(a,{width:"wide",context:"standalone"})}},w:function(i,n,s,a){const o=eE(i,a);return n==="wo"?s.ordinalNumber(o,{unit:"week"}):Fe(o,n.length)},I:function(i,n,s){const a=ZS(i);return n==="Io"?s.ordinalNumber(a,{unit:"week"}):Fe(a,n.length)},d:function(i,n,s){return n==="do"?s.ordinalNumber(i.getDate(),{unit:"date"}):Xs.d(i,n)},D:function(i,n,s){const a=KS(i);return n==="Do"?s.ordinalNumber(a,{unit:"dayOfYear"}):Fe(a,n.length)},E:function(i,n,s){const a=i.getDay();switch(n){case"E":case"EE":case"EEE":return s.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return s.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(a,{width:"short",context:"formatting"});case"EEEE":default:return s.day(a,{width:"wide",context:"formatting"})}},e:function(i,n,s,a){const o=i.getDay(),f=(o-a.weekStartsOn+8)%7||7;switch(n){case"e":return String(f);case"ee":return Fe(f,2);case"eo":return s.ordinalNumber(f,{unit:"day"});case"eee":return s.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return s.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(o,{width:"short",context:"formatting"});case"eeee":default:return s.day(o,{width:"wide",context:"formatting"})}},c:function(i,n,s,a){const o=i.getDay(),f=(o-a.weekStartsOn+8)%7||7;switch(n){case"c":return String(f);case"cc":return Fe(f,n.length);case"co":return s.ordinalNumber(f,{unit:"day"});case"ccc":return s.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return s.day(o,{width:"narrow",context:"standalone"});case"cccccc":return s.day(o,{width:"short",context:"standalone"});case"cccc":default:return s.day(o,{width:"wide",context:"standalone"})}},i:function(i,n,s){const a=i.getDay(),o=a===0?7:a;switch(n){case"i":return String(o);case"ii":return Fe(o,n.length);case"io":return s.ordinalNumber(o,{unit:"day"});case"iii":return s.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return s.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return s.day(a,{width:"short",context:"formatting"});case"iiii":default:return s.day(a,{width:"wide",context:"formatting"})}},a:function(i,n,s){const o=i.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(i,n,s){const a=i.getHours();let o;switch(a===12?o=xr.noon:a===0?o=xr.midnight:o=a/12>=1?"pm":"am",n){case"b":case"bb":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(i,n,s){const a=i.getHours();let o;switch(a>=17?o=xr.evening:a>=12?o=xr.afternoon:a>=4?o=xr.morning:o=xr.night,n){case"B":case"BB":case"BBB":return s.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return s.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(i,n,s){if(n==="ho"){let a=i.getHours()%12;return a===0&&(a=12),s.ordinalNumber(a,{unit:"hour"})}return Xs.h(i,n)},H:function(i,n,s){return n==="Ho"?s.ordinalNumber(i.getHours(),{unit:"hour"}):Xs.H(i,n)},K:function(i,n,s){const a=i.getHours()%12;return n==="Ko"?s.ordinalNumber(a,{unit:"hour"}):Fe(a,n.length)},k:function(i,n,s){let a=i.getHours();return a===0&&(a=24),n==="ko"?s.ordinalNumber(a,{unit:"hour"}):Fe(a,n.length)},m:function(i,n,s){return n==="mo"?s.ordinalNumber(i.getMinutes(),{unit:"minute"}):Xs.m(i,n)},s:function(i,n,s){return n==="so"?s.ordinalNumber(i.getSeconds(),{unit:"second"}):Xs.s(i,n)},S:function(i,n){return Xs.S(i,n)},X:function(i,n,s){const a=i.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return bg(a);case"XXXX":case"XX":return Ni(a);case"XXXXX":case"XXX":default:return Ni(a,":")}},x:function(i,n,s){const a=i.getTimezoneOffset();switch(n){case"x":return bg(a);case"xxxx":case"xx":return Ni(a);case"xxxxx":case"xxx":default:return Ni(a,":")}},O:function(i,n,s){const a=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+yg(a,":");case"OOOO":default:return"GMT"+Ni(a,":")}},z:function(i,n,s){const a=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+yg(a,":");case"zzzz":default:return"GMT"+Ni(a,":")}},t:function(i,n,s){const a=Math.trunc(+i/1e3);return Fe(a,n.length)},T:function(i,n,s){return Fe(+i,n.length)}};function yg(i,n=""){const s=i>0?"-":"+",a=Math.abs(i),o=Math.trunc(a/60),f=a%60;return f===0?s+String(o):s+String(o)+n+Fe(f,2)}function bg(i,n){return i%60===0?(i>0?"-":"+")+Fe(Math.abs(i)/60,2):Ni(i,n)}function Ni(i,n=""){const s=i>0?"-":"+",a=Math.abs(i),o=Fe(Math.trunc(a/60),2),f=Fe(a%60,2);return s+o+n+f}const xg=(i,n)=>{switch(i){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},By=(i,n)=>{switch(i){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},tE=(i,n)=>{const s=i.match(/(P+)(p+)?/)||[],a=s[1],o=s[2];if(!o)return xg(i,n);let f;switch(a){case"P":f=n.dateTime({width:"short"});break;case"PP":f=n.dateTime({width:"medium"});break;case"PPP":f=n.dateTime({width:"long"});break;case"PPPP":default:f=n.dateTime({width:"full"});break}return f.replace("{{date}}",xg(a,n)).replace("{{time}}",By(o,n))},nE={p:By,P:tE},sE=/^D+$/,iE=/^Y+$/,rE=["D","DD","YY","YYYY"];function aE(i){return sE.test(i)}function lE(i){return iE.test(i)}function oE(i,n,s){const a=cE(i,n,s);if(console.warn(a),rE.includes(i))throw new RangeError(a)}function cE(i,n,s){const a=i[0]==="Y"?"years":"days of the month";return`Use \`${i.toLowerCase()}\` instead of \`${i}\` (in \`${n}\`) for formatting ${a} to the input \`${s}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const uE=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,fE=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hE=/^'([^]*?)'?$/,dE=/''/g,mE=/[a-zA-Z]/;function Oh(i,n,s){var E,w,T,z;const a=nl(),o=a.locale??qy,f=a.firstWeekContainsDate??((w=(E=a.locale)==null?void 0:E.options)==null?void 0:w.firstWeekContainsDate)??1,d=a.weekStartsOn??((z=(T=a.locale)==null?void 0:T.options)==null?void 0:z.weekStartsOn)??0,m=ln(i,s==null?void 0:s.in);if(!gS(m))throw new RangeError("Invalid time value");let g=n.match(fE).map(M=>{const q=M[0];if(q==="p"||q==="P"){const Q=nE[q];return Q(M,o.formatLong)}return M}).join("").match(uE).map(M=>{if(M==="''")return{isToken:!1,value:"'"};const q=M[0];if(q==="'")return{isToken:!1,value:pE(M)};if(gg[q])return{isToken:!0,value:M};if(q.match(mE))throw new RangeError("Format string contains an unescaped latin alphabet character `"+q+"`");return{isToken:!1,value:M}});o.localize.preprocessor&&(g=o.localize.preprocessor(m,g));const y={firstWeekContainsDate:f,weekStartsOn:d,locale:o};return g.map(M=>{if(!M.isToken)return M.value;const q=M.value;(lE(q)||aE(q))&&oE(q,n,String(i));const Q=gg[q[0]];return Q(m,q,o.localize,y)}).join("")}function pE(i){const n=i.match(hE);return n?n[1].replace(dE,"'"):i}function gE(i,n,s){const a=nl(),o=(s==null?void 0:s.locale)??a.locale??qy,f=dS(i,n);if(isNaN(f))throw new RangeError("Invalid time value");const d=Object.assign({},s,{addSuffix:s==null?void 0:s.addSuffix,comparison:f}),[m,g]=zy(s==null?void 0:s.in,...f>0?[n,i]:[i,n]),y=yS((s==null?void 0:s.roundingMethod)??"round"),E=g.getTime()-m.getTime(),w=E/ug,T=Wo(g)-Wo(m),z=(E-T)/ug,M=s==null?void 0:s.unit;let q;if(M?q=M:w<1?q="second":w<60?q="minute":w<dg?q="hour":z<hg?q="day":z<fg?q="month":q="year",q==="second"){const Q=y(E/1e3);return o.formatDistance("xSeconds",Q,d)}else if(q==="minute"){const Q=y(w);return o.formatDistance("xMinutes",Q,d)}else if(q==="hour"){const Q=y(w/60);return o.formatDistance("xHours",Q,d)}else if(q==="day"){const Q=y(z/dg);return o.formatDistance("xDays",Q,d)}else if(q==="month"){const Q=y(z/hg);return Q===12&&M!=="month"?o.formatDistance("xYears",1,d):o.formatDistance("xMonths",Q,d)}else{const Q=y(z/fg);return o.formatDistance("xYears",Q,d)}}function yE(i,n){return gE(i,mS(i),n)}function KA(i){return i.toLocaleString()}function ZA(i){return i>=1e9?`${(i/1e9).toFixed(1).replace(/\.0$/,"")}B`:i>=1e6?`${(i/1e6).toFixed(1).replace(/\.0$/,"")}M`:i>=1e4?`${(i/1e3).toFixed(1).replace(/\.0$/,"")}K`:i.toLocaleString()}function bE(i){const n=new Date(i);return n.getTime()>Date.now()?"just now":yE(n,{addSuffix:!0})}function WA(i){const n=Date.now()-new Date(i).getTime();if(n<0)return"now";const s=Math.floor(n/1e3);if(s<60)return`${s}s`;const a=Math.floor(s/60);if(a<60)return`${a}m`;const o=Math.floor(a/60);if(o<24)return`${o}h`;const f=Math.floor(o/24);return f<7?`${f}d`:f<30?`${Math.floor(f/7)}w`:f<365?`${Math.floor(f/30)}mo`:`${Math.floor(f/365)}y`}function e3(i){return i<=0?"Expired":Th(i)}function xE(i){return i==null?"--":Th(i)}function t3(i){return i?Oh(new Date(i),"MMM d, yyyy h:mm a"):"--"}function Th(i){if(i<1e3)return`${Math.round(i)}ms`;if(i<6e4){const d=i/1e3;return Number.isInteger(d)?`${d}s`:`${d.toFixed(1)}s`}const n=Math.floor(i/1e3),s=Math.floor(n/86400),a=Math.floor(n%86400/3600),o=Math.floor(n%3600/60),f=n%60;return s>0?a>0?`${s}d ${a}h`:`${s}d`:a>0?o>0?`${a}h ${o}m`:`${a}h`:f>0?`${o}m ${f}s`:`${o}m`}function n3(i,n){const s=new Date(i).getTime(),a=n?new Date(n).getTime():Date.now();return Th(a-s)}function Ly({options:i,children:n,className:s=""}){const[a,o]=O.useState(!1),[f,d]=O.useState(null),[m,g]=O.useState(null),y=O.useRef(null),E=O.useRef(void 0),w=O.useRef(void 0),T=220,z=O.useCallback(()=>{if(!y.current)return;const W=y.current.getBoundingClientRect(),te=window.innerWidth-T-8,fe=Math.max(8,Math.min(W.left,te));g({top:W.bottom+4,left:fe})},[]),M=O.useCallback(async(W,te)=>{try{await navigator.clipboard.writeText(W),d(te),clearTimeout(E.current),E.current=setTimeout(()=>d(null),1200)}catch{}},[]),q=O.useCallback(()=>{clearTimeout(w.current),z(),o(!0)},[z]),Q=O.useCallback(()=>{w.current=setTimeout(()=>o(!1),150)},[]);return O.useEffect(()=>()=>{clearTimeout(E.current),clearTimeout(w.current)},[]),h.jsxs("span",{ref:y,className:`inline-flex items-center cursor-default ${s}`,onMouseEnter:q,onMouseLeave:Q,children:[n,a&&m&&Og.createPortal(h.jsx("span",{className:"fixed z-[9999] bg-surface-raised border border-surface-border rounded shadow-lg py-1 min-w-[180px]",style:{top:m.top,left:m.left},onMouseEnter:q,onMouseLeave:Q,children:i.map(W=>h.jsxs("button",{onClick:te=>{te.stopPropagation(),M(W.value,W.label)},className:"flex items-center justify-between w-full px-2.5 py-1 text-left hover:bg-surface-hover transition-colors",children:[h.jsx("span",{className:"text-[9px] font-medium uppercase tracking-wider text-text-tertiary w-10 shrink-0",children:W.label}),h.jsx("span",{className:"text-[10px] font-mono text-text-secondary truncate ml-2",children:f===W.label?"✓":W.value})]},W.label))}),document.body)]})}function vE(i,n){const s=new Date(i);switch(n){case"relative":return bE(i);case"datetime":return Oh(s,"MMM d, yyyy h:mm a");case"time":return s.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}}function _E(i){const n=new Date(i);return[{label:"ms",value:String(n.getTime())},{label:"utc",value:n.toISOString()},{label:"local",value:Oh(n,"MMM d, yyyy h:mm:ss a")}]}function wE({date:i,format:n="relative",className:s=""}){const[,a]=O.useState(0);O.useEffect(()=>{if(n!=="relative")return;const f=setInterval(()=>a(d=>d+1),3e4);return()=>clearInterval(f)},[n]);const o=O.useMemo(()=>_E(i),[i]);return h.jsx(Ly,{options:o,children:h.jsx("time",{dateTime:i,className:`text-xs text-text-tertiary ${s}`,children:vE(i,n)})})}function SE({ms:i,className:n=""}){const s=xE(i),a=O.useMemo(()=>i==null?[]:[{label:"ms",value:String(i)},{label:"sec",value:`${(i/1e3).toFixed(3)}s`},{label:"text",value:s}],[i,s]);return i==null?h.jsx("span",{className:`text-xs text-text-tertiary ${n}`,children:"--"}):h.jsx(Ly,{options:a,children:h.jsx("span",{className:`text-xs text-text-tertiary ${n}`,children:s})})}const EE=["sm","md","lg","full"],vg={sm:"w-[28rem] max-h-[40vh]",md:"w-[36rem] max-h-[60vh]",lg:"w-[48rem] max-h-[80vh]",full:"inset-4 w-auto max-h-none"},_g={sm:"Small",md:"Medium",lg:"Large",full:"Fullscreen"};function AE({which:i}){const n="stroke-current";switch(i){case"sm":return h.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:h.jsx("rect",{x:"5",y:"5",width:"7",height:"7",rx:"1.5",className:n,strokeWidth:"1.5"})});case"md":return h.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:h.jsx("rect",{x:"3",y:"3",width:"9",height:"9",rx:"1.5",className:n,strokeWidth:"1.5"})});case"lg":return h.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:h.jsx("rect",{x:"1.5",y:"1.5",width:"11",height:"11",rx:"1.5",className:n,strokeWidth:"1.5"})});case"full":return h.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:h.jsx("rect",{x:"0.75",y:"0.75",width:"12.5",height:"12.5",rx:"1.5",className:n,strokeWidth:"1.5"})})}}function jE({msg:i}){const[n,s]=O.useState(0);O.useEffect(()=>{const d=new Date(i.timestamp).getTime(),m=()=>s(Math.floor((Date.now()-d)/1e3));m();const g=setInterval(m,1e3);return()=>clearInterval(g)},[i.timestamp]);const a=Math.floor(n/60),o=n%60,f=a>0?`${a}m ${o}s`:`${o}s`;return h.jsxs("span",{className:"inline-flex flex-col gap-1.5",children:[h.jsxs("span",{className:"inline-flex items-center gap-1",children:[h.jsx("span",{className:"text-text-tertiary",children:"Thinking"}),h.jsx("span",{className:"inline-block w-1 h-1 rounded-full bg-text-tertiary animate-pulse"}),h.jsx("span",{className:"inline-block w-1 h-1 rounded-full bg-text-tertiary animate-pulse [animation-delay:150ms]"}),h.jsx("span",{className:"inline-block w-1 h-1 rounded-full bg-text-tertiary animate-pulse [animation-delay:300ms]"}),h.jsx("span",{className:"text-text-muted ml-1 tabular-nums",children:f})]}),i.workflowId&&h.jsxs(_r,{to:`/workflows/executions/${i.workflowId}`,className:"inline-flex items-center gap-1 text-[10px] text-accent/70 hover:text-accent transition-colors",children:[h.jsx(rh,{className:"w-2.5 h-2.5",strokeWidth:1.5}),"watch execution"]})]})}function OE({msg:i,compileMessage:n}){const s=i.role==="assistant";return h.jsxs("div",{className:`flex items-center gap-1.5 ${s?"justify-start":"justify-end"}`,children:[h.jsx(wE,{date:i.timestamp,format:"time",className:"!text-[9px] text-text-muted/50"}),i.durationMs!=null&&h.jsxs(h.Fragment,{children:[h.jsx("span",{className:"text-text-muted/30 text-[8px]",children:"·"}),h.jsx(SE,{ms:i.durationMs,className:"!text-[9px] text-text-muted/50"})]}),i.workflowId&&h.jsx(_r,{to:`/workflows/executions/${i.workflowId}`,className:"text-text-muted/40 hover:text-accent transition-colors",title:"View workflow execution",children:h.jsx(rh,{className:"w-2.5 h-2.5",strokeWidth:1.5})}),s&&i.workflowId&&!i.pending&&h.jsx("button",{onClick:()=>n(i.id),disabled:i.compilationStatus==="compiling"||i.compilationStatus==="done",className:"transition-colors",title:i.compilationStatus==="done"?"Compiled — future queries will match this pipeline":i.compilationStatus==="error"?i.compilationError??"Compilation failed":i.compilationStatus==="compiling"?"Compiling...":"Compile to fast pipeline",children:h.jsx(Sv,{className:`w-2.5 h-2.5 ${i.compilationStatus==="done"?"text-status-success":i.compilationStatus==="error"?"text-status-error":i.compilationStatus==="compiling"?"text-accent/40 animate-pulse":"text-text-muted/40 hover:text-accent"}`,strokeWidth:1.5})})]})}function TE(){const{helpOpen:i,setHelpOpen:n,messages:s,sendMessage:a,pageContext:o,activeWorkflowId:f,clearMessages:d,compileMessage:m}=My(),[g,y]=O.useState(""),[E,w]=O.useState("md"),[T,z]=O.useState(!0),M=O.useRef(null),q=O.useRef(null);if(O.useEffect(()=>{M.current&&(M.current.scrollTop=M.current.scrollHeight)},[s]),O.useEffect(()=>{i&&q.current&&q.current.focus()},[i]),O.useEffect(()=>{if(!i)return;const N=V=>{V.key==="Escape"&&(E==="full"?w("lg"):E==="lg"?w("md"):E==="md"?w("sm"):n(!1))};return document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)},[i,E,n]),!i)return null;const Q=()=>{const N=g.trim();!N||f||(a(N),y(""),q.current&&(q.current.style.height="auto"))},W=N=>{N.key==="Enter"&&!N.shiftKey&&(N.preventDefault(),Q())},te=E==="full",fe=o.page.replace(/-/g," "),re=te?{}:{bottom:"108px"};return h.jsxs("div",{className:`fixed z-[45] flex flex-col border border-surface-border rounded-lg overflow-hidden transition-all duration-300 ${te?vg.full:`right-6 ${vg[E]}`} ${T?"bg-surface-raised shadow-xl":"bg-surface-raised/[0.03] shadow-lg shadow-black/5"}`,style:re,onMouseEnter:()=>z(!0),onMouseLeave:()=>z(!1),children:[h.jsxs("div",{className:`flex items-center justify-between px-4 py-2.5 border-b border-surface-border shrink-0 transition-all duration-300 ${T?"opacity-100":"opacity-50 grayscale brightness-150"}`,children:[h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("p",{className:"text-xs font-medium text-text-primary truncate",children:"Help Assistant"}),h.jsx("p",{className:"text-[10px] text-text-tertiary truncate",children:fe})]}),h.jsxs("div",{className:"flex items-center gap-1 ml-2",children:[h.jsx("div",{className:"flex items-center gap-0.5 border border-surface-border rounded p-0.5",role:"radiogroup","aria-label":"Panel size",children:EE.map(N=>h.jsx("button",{onClick:()=>w(N),className:`p-1 rounded transition-colors ${N===E?"bg-accent/15 text-accent":"text-text-muted hover:text-text-secondary hover:bg-surface-hover"}`,role:"radio","aria-checked":N===E,"aria-label":_g[N],title:_g[N],children:h.jsx(AE,{which:N})},N))}),s.length>0&&h.jsx("button",{onClick:d,className:"p-1 text-text-tertiary hover:text-text-secondary transition-colors","aria-label":"Clear conversation",title:"Clear conversation",children:h.jsx(Ev,{className:"w-3.5 h-3.5",strokeWidth:1.5})}),h.jsx("button",{onClick:()=>n(!1),className:"p-1 text-text-tertiary hover:text-text-primary transition-colors","aria-label":"Close",title:"Close",children:h.jsx(Dr,{className:"w-3.5 h-3.5",strokeWidth:1.5})})]})]}),h.jsxs("div",{ref:M,className:`flex-1 overflow-y-auto px-4 py-3 space-y-3 min-h-[120px] transition-all duration-300 ${T?"opacity-100":"opacity-50 grayscale brightness-150"}`,children:[s.length===0&&h.jsx("p",{className:"text-xs text-text-tertiary text-center py-6",children:"Ask anything about what you're viewing."}),s.map(N=>h.jsxs("div",{className:`text-xs leading-relaxed ${N.role==="user"?"text-right":"text-left"}`,children:[h.jsx("div",{className:`inline-block max-w-[85%] px-3 py-2 rounded-md whitespace-pre-wrap ${N.role==="user"?"bg-accent/10 text-text-primary":"bg-surface-sunken text-text-secondary"}`,children:N.pending?h.jsx(jE,{msg:N}):N.role==="assistant"?h.jsx(jh,{content:N.content}):N.content}),!N.pending&&h.jsx("div",{className:"mt-0.5",children:h.jsx(OE,{msg:N,compileMessage:m})})]},N.id))]}),h.jsxs("div",{className:`border-t border-surface-border px-3 py-2.5 flex gap-2 shrink-0 transition-all duration-300 ${T?"opacity-100":"opacity-50 grayscale brightness-150"}`,children:[h.jsx("textarea",{ref:q,value:g,onChange:N=>{y(N.target.value);const V=N.target;V.style.height="auto",V.style.height=`${Math.min(V.scrollHeight,120)}px`},onKeyDown:W,placeholder:"Ask a question...",rows:2,className:"flex-1 resize-none bg-surface text-xs text-text-primary placeholder:text-text-tertiary rounded px-2.5 py-1.5 border border-surface-border focus:outline-none focus:border-accent",style:{minHeight:"2.5rem"},disabled:!!f}),h.jsx("button",{onClick:Q,disabled:!g.trim()||!!f,className:"px-2.5 py-1.5 text-accent hover:text-accent-hover disabled:text-text-muted transition-colors self-end","aria-label":"Send",children:h.jsx(Av,{className:"w-4 h-4",strokeWidth:1.5})})]})]})}function NE(){var Q;const{isBuilder:i,isOps:n,viewAs:s}=gy(),{data:a}=Ur(),o=dy(),f=o!==null?o:!!((Q=a==null?void 0:a.ai)!=null&&Q.enabled),{collapsed:d,toggle:m}=by(),[g,y]=O.useState(!1),[E,w]=O.useState(!1),[T,z]=O.useState(()=>window.location.hash.startsWith("#docs")),M=ri(),q=O.useRef(null);return O.useEffect(()=>{const W=q.current;W&&(W.classList.remove("animate-page-in"),W.offsetWidth,W.classList.add("animate-page-in"))},[M.pathname]),O.useEffect(()=>{const W=()=>{window.location.hash.startsWith("#docs")&&z(!0)};return window.addEventListener("hashchange",W),()=>window.removeEventListener("hashchange",W)},[]),h.jsxs("div",{className:"h-screen bg-surface flex flex-col",children:[h.jsx(g2,{onToggleEventFeed:()=>y(W=>!W),onToggleDocs:()=>z(W=>!W)}),h.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[h.jsxs("aside",{className:`${d?"w-16":"w-60"} shrink-0 bg-surface-raised border-r border-surface-border flex flex-col transition-[width] duration-200 ease-out overflow-hidden relative z-20`,children:[h.jsxs("nav",{className:"flex-1 px-3 pt-[36px] pb-4 space-y-2 overflow-y-auto overflow-x-hidden",children:[h.jsx(w2,{aiEnabled:f,isBuilder:i,isOps:n,viewAs:s}),i&&h.jsx(S2,{}),i&&f&&h.jsx(A2,{}),i&&h.jsx(O2,{}),(i||n)&&h.jsx(T2,{isBuilder:i,isOps:n})]}),h.jsx("button",{onClick:m,className:`shrink-0 py-3 text-text-tertiary hover:text-text-secondary transition-colors duration-150 ${d?"flex justify-center":"flex items-center px-7"}`,"aria-label":d?"Expand sidebar":"Collapse sidebar",children:d?h.jsx(jv,{className:"w-4 h-4 text-accent-muted",strokeWidth:1.5}):h.jsx(Ov,{className:"w-4 h-4 text-accent-muted",strokeWidth:1.5})}),!d&&(a==null?void 0:a.environment)&&h.jsxs("div",{className:"shrink-0 px-5 pb-3 text-[10px] leading-tight text-text-tertiary whitespace-nowrap overflow-hidden text-ellipsis",title:`long-tail v${a.environment.longTailVersion} · HotMesh v${a.environment.hotmeshVersion} · Node ${a.environment.nodeVersion} · ${a.environment.nodeEnv}`,children:["long-tail v",a.environment.longTailVersion,h.jsx("span",{className:"mx-1 text-surface-border",children:"·"}),"HotMesh v",a.environment.hotmeshVersion]})]}),h.jsx("main",{className:"flex-1 overflow-y-auto",children:h.jsx("div",{ref:q,className:"w-full px-10 py-10 pb-16 animate-page-in h-full flex flex-col",children:h.jsx(Ar,{})})})]}),h.jsx(I2,{open:g,onToggle:()=>y(W=>!W),configOpen:E,onToggleConfig:()=>w(W=>!W)}),h.jsx(sS,{open:T,onClose:()=>{z(!1),history.replaceState(null,"",window.location.pathname+window.location.search)}}),f&&h.jsx(oS,{}),f&&h.jsx(TE,{})]})}function kE(){const{isAuthenticated:i}=ai(),n=ri();return i?h.jsx(Iw,{children:h.jsx(lS,{children:h.jsx(NE,{})})}):h.jsx($n,{to:"/login",state:{from:n.pathname},replace:!0})}function Hy({provider:i,className:n="w-5 h-5"}){switch(i){case"google":return h.jsxs("svg",{className:n,viewBox:"0 0 24 24",fill:"currentColor",children:[h.jsx("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z",fill:"#4285F4"}),h.jsx("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),h.jsx("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),h.jsx("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]});case"github":return h.jsx("svg",{className:n,viewBox:"0 0 24 24",fill:"currentColor",children:h.jsx("path",{d:"M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0 1 12 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0 0 22 12.017C22 6.484 17.522 2 12 2z"})});case"microsoft":return h.jsxs("svg",{className:n,viewBox:"0 0 24 24",fill:"currentColor",children:[h.jsx("path",{d:"M3 3h8.5v8.5H3z",fill:"#F25022"}),h.jsx("path",{d:"M12.5 3H21v8.5h-8.5z",fill:"#7FBA00"}),h.jsx("path",{d:"M3 12.5h8.5V21H3z",fill:"#00A4EF"}),h.jsx("path",{d:"M12.5 12.5H21V21h-8.5z",fill:"#FFB900"})]});case"anthropic":return h.jsx("svg",{className:n,viewBox:"0 0 24 24",fill:"currentColor",children:h.jsx("path",{d:"M13.827 3.52h3.603L24 20.48h-3.603l-6.57-16.96zm-7.258 0h3.767L16.906 20.48h-3.674l-1.343-3.461H6.396l-1.34 3.461H1.5l5.07-16.96zm2.327 5.14l-2.065 5.326h4.108l-2.043-5.326z"})});default:return h.jsxs("svg",{className:n,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[h.jsx("circle",{cx:"12",cy:"12",r:"10"}),h.jsx("path",{d:"M12 8v4l3 3"})]})}}async function CE(){return Ye("/auth/oauth/providers")}async function ME(i,n){const s=n?`?label=${encodeURIComponent(n)}`:"";return Ye(`/auth/oauth/connections/${i}${s}`,{method:"DELETE"})}function s3(){return Sn({queryKey:["oauth-connections"],queryFn:()=>Ye("/auth/oauth/connections")})}function i3(){const i=on();return En({mutationFn:({provider:n,label:s})=>ME(n,s),onSuccess:()=>{i.invalidateQueries({queryKey:["oauth-connections"]})}})}function RE(){var ae;const{login:i,isAuthenticated:n}=ai(),s=Tg(),a=ri(),o=new URLSearchParams(a.search),f=o.get("token"),d=o.get("error"),m=((ae=a.state)==null?void 0:ae.from)??o.get("returnTo")??"/",g=O.useRef(!1);f&&!g.current&&(g.current=!0,i(f,void 0,{displayName:o.get("displayName"),username:o.get("username")}));const[y,E]=O.useState(""),[w,T]=O.useState(""),[z,M]=O.useState(d||""),[q,Q]=O.useState(!1),[W,te]=O.useState(!!f),[fe,re]=O.useState([]),N=O.useRef(!1);if(O.useEffect(()=>{f||N.current||(N.current=!0,(async()=>{var P,F,X,oe;try{const ie=await fetch(`${Vt}/api/settings`);if(!ie.ok)return;const Ne=await ie.json();if(!((P=Ne.auth)!=null&&P.sso))return;const Ue=await fetch(`${Vt}/api/auth/sso`,{method:"POST"});if(!Ue.ok){M("Host authentication required — please log in to your organization first");return}const Te=await Ue.json();Te.token&&((F=Ne.auth)!=null&&F.ssoLogoutUrl&&sessionStorage.setItem("lt_sso_logout_url",Ne.auth.ssoLogoutUrl),te(!0),i(Te.token,void 0,{displayName:(X=Te.user)==null?void 0:X.display_name,username:(oe=Te.user)==null?void 0:oe.external_id}))}catch{}})())},[]),O.useEffect(()=>{f||CE().then(re).catch(()=>{})},[]),O.useEffect(()=>{if(!W)return;const P=setTimeout(()=>s(m,{replace:!0}),1500);return()=>clearTimeout(P)},[W]),n&&!W)return h.jsx($n,{to:m,replace:!0});const V=async P=>{var F,X;if(P.preventDefault(),M(""),!y.trim()||!w){M("Username and password are required");return}Q(!0);try{const oe=await fetch(`${Vt}/api/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:y.trim(),password:w})}),ie=await oe.json();if(!oe.ok){M(ie.error||"Login failed");return}te(!0),i(ie.token,{username:y.trim(),password:w},{displayName:(F=ie.user)==null?void 0:F.display_name,username:(X=ie.user)==null?void 0:X.external_id})}catch{M("Unable to connect to server")}finally{Q(!1)}};return h.jsx("div",{className:"min-h-screen bg-surface flex items-center justify-center overflow-hidden",children:h.jsxs("div",{className:"w-full max-w-md p-10",children:[h.jsx("div",{className:`mb-10 transition-all duration-[1500ms] ease-in ${W?"translate-x-[120vw] -translate-y-[60vh] scale-[3] opacity-0":""}`,children:h.jsx(Sh,{size:"lg",hideLabel:W})}),h.jsxs("form",{onSubmit:V,className:`space-y-5 transition-opacity duration-300 ${W?"opacity-0":""}`,children:[h.jsxs("div",{children:[h.jsx("label",{htmlFor:"username",className:"block text-sm font-medium text-text-secondary mb-2",children:"Username"}),h.jsx("input",{id:"username",type:"text",value:y,onChange:P=>E(P.target.value),className:"input",placeholder:"Enter your username",autoFocus:!W,autoComplete:"username"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"password",className:"block text-sm font-medium text-text-secondary mb-2",children:"Password"}),h.jsx("input",{id:"password",type:"password",value:w,onChange:P=>T(P.target.value),className:"input",placeholder:"Enter your password",autoComplete:"current-password"})]}),z&&h.jsx("p",{className:"text-sm text-status-error",children:z}),h.jsx("button",{type:"submit",className:"btn-primary w-full",disabled:q||W,children:q?"Signing in...":"Sign In"}),fe.length>0&&h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"flex items-center gap-3 mt-6",children:[h.jsx("div",{className:"flex-1 h-px bg-border"}),h.jsx("span",{className:"text-xs text-text-tertiary",children:"or continue with"}),h.jsx("div",{className:"flex-1 h-px bg-border"})]}),h.jsx("div",{className:"space-y-2",children:fe.filter(P=>P.provider!=="anthropic").map(P=>h.jsxs("a",{href:`${Vt}/api/auth/oauth/${P.provider}?returnTo=${encodeURIComponent(m)}`,className:"btn-secondary w-full flex items-center justify-center gap-2",children:[h.jsx(Hy,{provider:P.provider}),"Sign in with ",P.name]},P.provider))})]})]})]})})}function wg(){const{isAuthenticated:i}=ai(),n=Tg(),s=ri(),a=new URLSearchParams(s.search),o=a.get("state")||"";O.useEffect(()=>{i||n(`/login?returnTo=${encodeURIComponent(s.pathname+s.search)}`)},[i]);const[f,d]=O.useState(""),[m,g]=O.useState(a.get("label")||"default"),[y,E]=O.useState(""),[w,T]=O.useState(!1),z=f.trim().startsWith("sk-ant-oat"),M=f.trim().startsWith("sk-ant-api"),q=Q=>{Q.preventDefault();const W=f.trim();if(!W){E("A token or API key is required");return}if(!W.startsWith("sk-ant-")){E('Invalid format. Must start with "sk-ant-oat" (OAuth token) or "sk-ant-api" (API key)');return}T(!0),E("");const te=`${Vt}/api/auth/oauth/anthropic/callback?code=${encodeURIComponent(W)}&state=${encodeURIComponent(o)}`;window.location.href=te};return h.jsx("div",{className:"min-h-screen bg-surface flex items-center justify-center",children:h.jsxs("div",{className:"w-full max-w-md p-10",children:[h.jsx("div",{className:"mb-10",children:h.jsx(Sh,{size:"lg"})}),h.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[h.jsx(Hy,{provider:"anthropic",className:"w-6 h-6"}),h.jsx("h2",{className:"text-lg font-semibold text-text-primary",children:"Connect Anthropic"})]}),h.jsx("p",{className:"text-sm text-text-secondary mb-4",children:"Connect your Anthropic account so Claude Code tasks run under your credentials. Your token is encrypted at rest."}),h.jsxs("form",{onSubmit:q,className:"space-y-5",children:[h.jsxs("div",{children:[h.jsx("label",{htmlFor:"token",className:"block text-sm font-medium text-text-secondary mb-2",children:"OAuth Token or API Key"}),h.jsx("input",{id:"token",type:"password",value:f,onChange:Q=>d(Q.target.value),className:"input",placeholder:"sk-ant-oat01-... or sk-ant-api03-...",autoFocus:!0,autoComplete:"off"}),z&&h.jsx("p",{className:"text-xs text-status-success mt-1",children:"OAuth token detected — uses your Claude subscription (flat rate)"}),M&&h.jsx("p",{className:"text-xs text-status-warning mt-1",children:"API key detected — billed per-token from your Anthropic API account"})]}),h.jsxs("div",{children:[h.jsx("label",{htmlFor:"label",className:"block text-sm font-medium text-text-secondary mb-2",children:"Label"}),h.jsx("input",{id:"label",type:"text",value:m,onChange:Q=>g(Q.target.value.replace(/\s+/g,"-").toLowerCase()),className:"input",placeholder:"default",autoComplete:"off"}),h.jsx("p",{className:"text-xs text-text-tertiary mt-1",children:'A name for this credential. Use different labels to store multiple credentials (e.g., "subscription", "api-batch").'})]}),y&&h.jsx("p",{className:"text-sm text-status-error",children:y}),h.jsx("button",{type:"submit",className:"btn-primary w-full",disabled:w,children:w?"Validating...":"Connect"}),h.jsx("a",{href:"/",className:"block text-center text-sm text-text-tertiary hover:text-text-secondary",children:"Cancel"})]}),h.jsxs("div",{className:"mt-6 space-y-3 text-xs text-text-tertiary",children:[h.jsxs("div",{children:[h.jsx("span",{className:"font-medium text-text-secondary",children:"Recommended:"})," ","Run"," ",h.jsx("code",{className:"px-1 py-0.5 bg-surface-sunken rounded text-[11px]",children:"claude setup-token"})," ","in your terminal to generate an OAuth token that uses your subscription."]}),h.jsxs("div",{children:[h.jsx("span",{className:"font-medium text-text-secondary",children:"Alternative:"})," ","Use an API key from"," ",h.jsx("a",{href:"https://console.anthropic.com/settings/keys",target:"_blank",rel:"noopener noreferrer",className:"text-accent-secondary hover:underline",children:"console.anthropic.com"})," ","(billed per-token)."]})]})]})})}function Ba({roleTypes:i,roleNames:n,redirectTo:s="/"}){const{isSuperAdmin:a,hasRole:o,hasRoleType:f}=ai();return a?h.jsx(Ar,{}):i&&i.some(d=>f(d))?h.jsx(Ar,{}):n&&n.some(d=>o(d))?h.jsx(Ar,{}):h.jsx($n,{to:s,replace:!0})}function DE({redirectTo:i="/"}){var a;const{data:n,isLoading:s}=Ur();return s||!n?null:(a=n.ai)!=null&&a.enabled?h.jsx(Ar,{}):h.jsx($n,{to:i,replace:!0})}function zE({flag:i,redirectTo:n="/"}){var o;const{data:s,isLoading:a}=Ur();return a||!s?null:((o=s.features)==null?void 0:o[i])===!1?h.jsx($n,{to:n,replace:!0}):h.jsx(Ar,{})}const qE=O.lazy(()=>Ee(()=>import("./ProcessesListPage-Dsfc-DX_.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url).then(i=>({default:i.ProcessesListPage}))),UE=O.lazy(()=>Ee(()=>import("./ProcessDetailPage-Bx7sF-vV.js"),__vite__mapDeps([18,1,2,4,19,15,20,17,11,6,21,22,23]),import.meta.url).then(i=>({default:i.ProcessDetailPage}))),BE=O.lazy(()=>Ee(()=>import("./McpOverview-COgIIWkK.js"),__vite__mapDeps([24,1,25,26,27,28,14,15,29,6]),import.meta.url).then(i=>({default:i.McpOverview}))),LE=O.lazy(()=>Ee(()=>import("./McpRunsPage-DAjYKqqt.js"),__vite__mapDeps([30,1,26,27,5,6,31,28,8,9,10,17,15,32,14,13,12,16,33]),import.meta.url).then(i=>({default:i.McpRunsPage}))),HE=O.lazy(()=>Ee(()=>import("./McpRunDetailPage-BNjhOPLp.js"),__vite__mapDeps([34,1,26,20,14,15,35,6,36,37,13,38,39,16]),import.meta.url).then(i=>({default:i.McpRunDetailPage}))),PE=O.lazy(()=>Ee(()=>import("./McpQueryPage-DWAcSqF-.js"),__vite__mapDeps([40,1,14,15,9,10,13,12,16,8,11,32,17,33,5,6,4,41]),import.meta.url).then(i=>({default:i.McpQueryPage}))),$E=O.lazy(()=>Ee(()=>import("./McpQueryDetailPage-4LEqQZax.js"),__vite__mapDeps([42,1,14,15,20,41,6,27,4,43,36,26,3,2,44,45,46,47,48,49,35,50,38,39]),import.meta.url).then(i=>({default:i.McpQueryDetailPage}))),YE=O.lazy(()=>Ee(()=>import("./EscalationsOverview-C5bVdGf2.js"),__vite__mapDeps([51,1,4,14,15,29,6]),import.meta.url).then(i=>({default:i.EscalationsOverview}))),GE=O.lazy(()=>Ee(()=>import("./AvailableEscalationsPage-DBeBLNWW.js"),__vite__mapDeps([52,1,6,4,53,54,55,56,20,57,15,5,7,8,9,10,12,14,23,58,13,59,21,17,33,16]),import.meta.url).then(i=>({default:i.AvailableEscalationsPage}))),VE=O.lazy(()=>Ee(()=>import("./OperatorDashboard-B-2dIbj4.js"),__vite__mapDeps([60,1,4,56,5,6,7,8,9,10,14,15,12,33,58,13,59,21,17,57,16]),import.meta.url).then(i=>({default:i.OperatorDashboard}))),FE=O.lazy(()=>Ee(()=>import("./index-BTrN5iqE.js"),__vite__mapDeps([61,1,53,54,6,55,56,14,15,16,57,3,4,62,20,21,35,22,23]),import.meta.url).then(i=>({default:i.EscalationDetailPage}))),IE=O.lazy(()=>Ee(()=>import("./WorkflowsOverview-CLyitES7.js"),__vite__mapDeps([63,1,3,4,14,15,29,6]),import.meta.url).then(i=>({default:i.WorkflowsOverview}))),JE=O.lazy(()=>Ee(()=>import("./index-Bho1kYrO.js"),__vite__mapDeps([64,1,3,14,15,13,17,65,47,48,6]),import.meta.url).then(i=>({default:i.StartWorkflowPage}))),QE=O.lazy(()=>Ee(()=>import("./index-Bho1kYrO.js"),__vite__mapDeps([64,1,3,14,15,13,17,65,47,48,6]),import.meta.url).then(i=>({default:i.DurableInvokePage}))),XE=O.lazy(()=>Ee(()=>import("./WorkflowsDashboard-wgWRZOnB.js"),__vite__mapDeps([66,1,32,3,31,28,6,4,5,8,9,10,17,15,14,13,12,16,33]),import.meta.url).then(i=>({default:()=>i.WorkflowsDashboard({tier:"durable"})}))),KE=O.lazy(()=>Ee(()=>import("./WorkflowsDashboard-wgWRZOnB.js"),__vite__mapDeps([66,1,32,3,31,28,6,4,5,8,9,10,17,15,14,13,12,16,33]),import.meta.url).then(i=>({default:()=>i.WorkflowsDashboard({tier:"all"})}))),ZE=O.lazy(()=>Ee(()=>import("./YamlWorkflowsPage-BwQSMfYw.js"),__vite__mapDeps([67,1,27,5,6,14,15,13,10,49,65,20]),import.meta.url).then(i=>({default:i.YamlWorkflowsPage}))),WE=O.lazy(()=>Ee(()=>import("./GraphInvokePage-R6_p2Sy7.js"),__vite__mapDeps([68,1,27,14,15,44,46,47,48,45,6,49,65]),import.meta.url).then(i=>({default:i.GraphInvokePage}))),eA=O.lazy(()=>Ee(()=>import("./YamlWorkflowDetailPage-pP2i1ptj.js"),__vite__mapDeps([69,1,27,20,65,15,6]),import.meta.url).then(i=>({default:i.YamlWorkflowDetailPage}))),tA=O.lazy(()=>Ee(()=>import("./TasksListPage-CFqMwhLE.js"),__vite__mapDeps([70,1,2,3,5,6,9,10,20,59,50,12,13,14,15,17]),import.meta.url).then(i=>({default:i.TasksListPage}))),nA=O.lazy(()=>Ee(()=>import("./TaskDetailPage-CIarmoAk.js"),__vite__mapDeps([71,1,2,20,59,14,15,6]),import.meta.url).then(i=>({default:i.TaskDetailPage}))),Sg=O.lazy(()=>Ee(()=>import("./WorkflowExecutionPage-CE0QzhIt.js"),__vite__mapDeps([72,1,3,4,37,13,38,20,6,39,15,2,14,36,16,62,35]),import.meta.url).then(i=>({default:i.WorkflowExecutionPage}))),sA=O.lazy(()=>Ee(()=>import("./AdminDashboard-BONGlQva.js"),__vite__mapDeps([73,1,2,4,25,19,15,6]),import.meta.url).then(i=>({default:i.AdminDashboard}))),iA=O.lazy(()=>Ee(()=>import("./index-GRckVBX1.js"),__vite__mapDeps([74,1,3,9,10,13,33,5,6,14,15,75,17]),import.meta.url).then(i=>({default:i.WorkersPage}))),rA=O.lazy(()=>Ee(()=>import("./index-DzIB5CaR.js"),__vite__mapDeps([76,1,3,13,77,54,6,21,15,17,14,56,47,48,65]),import.meta.url).then(i=>({default:i.WorkflowConfigsPage}))),Eg=O.lazy(()=>Ee(()=>import("./index-DzIB5CaR.js"),__vite__mapDeps([76,1,3,13,77,54,6,21,15,17,14,56,47,48,65]),import.meta.url).then(i=>({default:i.WorkflowConfigDetailPage}))),aA=O.lazy(()=>Ee(()=>import("./index-DlrsXckY.js"),__vite__mapDeps([78,1,25,10,77,54,6,14,15,13,12,5,79,46,47,48,49,45,33,20]),import.meta.url).then(i=>({default:i.McpServersPage}))),Ag=O.lazy(()=>Ee(()=>import("./index-DiCp9bmR.js"),__vite__mapDeps([80,1,25,14,15,43,6]),import.meta.url).then(i=>({default:i.McpServerDetailPage}))),lA=O.lazy(()=>Ee(()=>import("./index-CzYOxahh.js"),__vite__mapDeps([81,1,23,5,6,9,10,12,13,77,54,33,14,15,21,48,11,56,50]),import.meta.url).then(i=>({default:i.UsersPage}))),oA=O.lazy(()=>Ee(()=>import("./RolesPage-DIlde9bw.js"),__vite__mapDeps([82,1,56,14,15,54,6]),import.meta.url).then(i=>({default:i.RolesPage}))),cA=O.lazy(()=>Ee(()=>import("./RoleDetailPage-DF-ov9E9.js"),__vite__mapDeps([83,1,56,77,54,6,23,15]),import.meta.url).then(i=>({default:i.RoleDetailPage}))),uA=O.lazy(()=>Ee(()=>import("./EscalationSchemaPage-_CbayTDk.js"),__vite__mapDeps([84,1,56,15,6]),import.meta.url).then(i=>({default:i.EscalationSchemaPage}))),fA=O.lazy(()=>Ee(()=>import("./EscalationListSchemaPage-B7PHz5CB.js"),__vite__mapDeps([85,1,56,15,6]),import.meta.url).then(i=>({default:i.EscalationListSchemaPage}))),hA=O.lazy(()=>Ee(()=>import("./index-AUrwksY_.js"),__vite__mapDeps([86,1,14,15,54,6,55]),import.meta.url).then(i=>({default:i.MaintenancePage}))),dA=O.lazy(()=>Ee(()=>import("./OperationsPage-5RkfIbtT.js").then(i=>i.O),__vite__mapDeps([87,1,56,4,14,15,6]),import.meta.url).then(i=>({default:i.OperationsPage}))),mA=O.lazy(()=>Ee(()=>import("./index-BH0BQHF-.js"),__vite__mapDeps([88,1,19,15,13,5,6,31,28,54,36,75,9,10,33]),import.meta.url).then(i=>({default:i.ControlPlanePage}))),pA=O.lazy(()=>Ee(()=>import("./index-B_pZXTTp.js"),__vite__mapDeps([89,1,62,15,39,5,6,31,28,8,9,10,12,13,14,16]),import.meta.url).then(i=>({default:i.StreamMessagesPage}))),gA=O.lazy(()=>Ee(()=>import("./CredentialsPage-JWCUgQMi.js"),__vite__mapDeps([90,1,14,15,50,77,54,6]),import.meta.url).then(i=>({default:i.CredentialsPage}))),yA=O.lazy(()=>Ee(()=>import("./index-D4z4fzW5.js"),__vite__mapDeps([91,1,6,14,15,13,16,8,10,92,50]),import.meta.url).then(i=>({default:i.FilesPage}))),bA=O.lazy(()=>Ee(()=>import("./index-iEn58vjL.js"),__vite__mapDeps([93,1,14,15,13,16,12,10,92,50,94,43,6]),import.meta.url).then(i=>({default:i.KnowledgePage}))),xA=O.lazy(()=>Ee(()=>import("./HomePage-DHxtqRkD.js"),__vite__mapDeps([95,1,56,3,26,28,4,21,15,17,16,87,14,6]),import.meta.url).then(i=>({default:i.HomePage}))),vA=O.lazy(()=>Ee(()=>import("./AgentsPage-PfSvedS-.js"),__vite__mapDeps([96,1,97,4,5,6,8,9,10,12,13,14,15,16]),import.meta.url).then(i=>({default:i.AgentsPage}))),_A=O.lazy(()=>Ee(()=>import("./AgentDetailPage-MSCS6bFD.js"),__vite__mapDeps([98,1,97,99,15,4,17,6]),import.meta.url).then(i=>({default:i.AgentDetailPage}))),jg=O.lazy(()=>Ee(()=>import("./AgentConfigPage-C_NJ4-pr.js"),__vite__mapDeps([100,1,97,99,15,14,94,46,47,48,3,27,101,102,17,6]),import.meta.url).then(i=>({default:i.AgentConfigPage}))),wA=O.lazy(()=>Ee(()=>import("./CapabilitiesPage-DVf4zIMZ.js"),__vite__mapDeps([103,1,101,79,25,46,47,48,15,49,6,45,14,13]),import.meta.url).then(i=>({default:i.CapabilitiesPage}))),SA=O.lazy(()=>Ee(()=>import("./TopicsPage-Bk8-inSO.js"),__vite__mapDeps([104,1,102,14,15,13,6]),import.meta.url).then(i=>({default:i.TopicsPage}))),EA=O.lazy(()=>Ee(()=>import("./TopicDetailPage-CGCiqQGf.js"),__vite__mapDeps([105,1,102,16,15,6]),import.meta.url).then(i=>({default:i.TopicDetailPage})));function AA(){return h.jsxs("div",{className:"animate-pulse space-y-4",children:[h.jsx("div",{className:"h-8 bg-surface-sunken rounded w-48"}),h.jsx("div",{className:"h-40 bg-surface-sunken rounded"})]})}function we({children:i}){return h.jsx(O.Suspense,{fallback:h.jsx(AA,{}),children:h.jsx("div",{className:"animate-page-enter flex flex-col flex-1 min-h-0",children:i})})}const Py=new Zx({defaultOptions:{queries:{staleTime:1e4,retry:(i,n)=>n instanceof Error&&n.message==="Session expired"?!1:i<1}}});window.addEventListener("auth:unauthorized",()=>{Py.clear(),sessionStorage.removeItem("lt_token"),sessionStorage.removeItem("lt_credentials"),sessionStorage.removeItem("lt_user_info");const i=window.__LT_BASE__||"",n=`${i}/login`;if(window.location.pathname!==n){const s=window.location.pathname+window.location.search,a=i&&s.startsWith(i)?s.slice(i.length)||"/":s;window.location.href=`${n}?returnTo=${encodeURIComponent(a)}`}});const jA=tv([{path:"/login",element:h.jsx(RE,{})},{path:"/connect/anthropic",element:h.jsx(wg,{})},{path:"/connect/:provider",element:h.jsx(wg,{})},{path:"/",element:h.jsx(kE,{}),children:[{index:!0,element:h.jsx(we,{children:h.jsx(xA,{})})},{path:"processes/all",element:h.jsx(we,{children:h.jsx(qE,{})})},{path:"processes/detail/:originId",element:h.jsx(we,{children:h.jsx(UE,{})})},{path:"credentials",element:h.jsx(we,{children:h.jsx(gA,{})})},{path:"connections",element:h.jsx($n,{to:"/credentials",replace:!0})},{path:"escalations",element:h.jsx(we,{children:h.jsx(YE,{})})},{path:"escalations/available",element:h.jsx(we,{children:h.jsx(GE,{})})},{path:"escalations/queue",element:h.jsx(we,{children:h.jsx(VE,{})})},{path:"escalations/detail/:id",element:h.jsx(we,{children:h.jsx(FE,{})})},{path:"capabilities",element:h.jsx(we,{children:h.jsx(wA,{})})},{path:"agents",element:h.jsx(we,{children:h.jsx(vA,{})})},{path:"agents/new",element:h.jsx(we,{children:h.jsx(jg,{})})},{path:"agents/:id",element:h.jsx(we,{children:h.jsx(_A,{})})},{path:"agents/:id/edit",element:h.jsx(we,{children:h.jsx(jg,{})})},{path:"topics",element:h.jsx(we,{children:h.jsx(SA,{})})},{path:"topics/:topic",element:h.jsx(we,{children:h.jsx(EA,{})})},{element:h.jsx(Ba,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"workflows",element:h.jsx(we,{children:h.jsx(IE,{})})},{path:"workflows/executions",element:h.jsx(we,{children:h.jsx(KE,{})})},{path:"workflows/durable/executions",element:h.jsx(we,{children:h.jsx(XE,{})})},{path:"workflows/durable/executions/:workflowId",element:h.jsx(we,{children:h.jsx(Sg,{})})},{path:"workflows/tasks",element:h.jsx(we,{children:h.jsx(tA,{})})},{path:"workflows/tasks/detail/:id",element:h.jsx(we,{children:h.jsx(nA,{})})},{path:"workflows/executions/:workflowId",element:h.jsx(we,{children:h.jsx(Sg,{})})},{path:"workflows/start",element:h.jsx(we,{children:h.jsx(JE,{})})},{path:"workflows/durable/invoke",element:h.jsx(we,{children:h.jsx(QE,{})})},{path:"workflows/cron",element:h.jsx($n,{to:"/workflows/start?mode=schedule",replace:!0})},{path:"workflows/workers",element:h.jsx(we,{children:h.jsx(iA,{})})},{path:"workflows/registry",element:h.jsx(we,{children:h.jsx(rA,{})})},{path:"workflows/registry/new",element:h.jsx(we,{children:h.jsx(Eg,{})})},{path:"workflows/registry/:workflowType",element:h.jsx(we,{children:h.jsx(Eg,{})})}]},{element:h.jsx(Ba,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"mcp/workflows",element:h.jsx(we,{children:h.jsx(ZE,{})})},{path:"mcp/workflows/invoke",element:h.jsx(we,{children:h.jsx(WE,{})})},{path:"mcp/workflows/:id",element:h.jsx(we,{children:h.jsx(eA,{})})},{path:"mcp/executions",element:h.jsx(we,{children:h.jsx(LE,{})})},{path:"mcp/executions/:jobId",element:h.jsx(we,{children:h.jsx(HE,{})})},{path:"files",element:h.jsx(we,{children:h.jsx(yA,{})})},{path:"knowledge",element:h.jsx(we,{children:h.jsx(bA,{})})},{element:h.jsx(DE,{}),children:[{path:"mcp",element:h.jsx(we,{children:h.jsx(BE,{})})},{path:"mcp/queries",element:h.jsx(we,{children:h.jsx(PE,{})})},{path:"mcp/queries/:workflowId",element:h.jsx(we,{children:h.jsx($E,{})})},{path:"mcp/tools",element:h.jsx($n,{to:"/mcp/servers",replace:!0})},{path:"mcp/servers",element:h.jsx(we,{children:h.jsx(aA,{})})},{path:"mcp/servers/new",element:h.jsx(we,{children:h.jsx(Ag,{})})},{path:"mcp/servers/:serverId",element:h.jsx(we,{children:h.jsx(Ag,{})})}]}]},{element:h.jsx(Ba,{roleTypes:["admin","superadmin"],roleNames:["engineer"]}),children:[{path:"operations",element:h.jsx(we,{children:h.jsx(dA,{})})}]},{element:h.jsx(Ba,{roleTypes:["admin","superadmin"],roleNames:["engineer"]}),children:[{path:"admin",element:h.jsx(we,{children:h.jsx(sA,{})})},{path:"admin/users",element:h.jsx(we,{children:h.jsx(lA,{})})},{path:"admin/escalation-chains",element:h.jsx($n,{to:"/admin/roles",replace:!0})},{path:"admin/roles",element:h.jsx(we,{children:h.jsx(oA,{})})},{path:"admin/roles/:role",element:h.jsx(we,{children:h.jsx(cA,{})})},{path:"admin/roles/:role/schema",element:h.jsx(we,{children:h.jsx(uA,{})})},{path:"admin/roles/:role/list-schema",element:h.jsx(we,{children:h.jsx(fA,{})})}]},{element:h.jsx(Ba,{roleTypes:["superadmin"],roleNames:["engineer"]}),children:[{path:"admin/bots",element:h.jsx($n,{to:"/admin/users?tab=service-accounts",replace:!0})},{element:h.jsx(zE,{flag:"dbMaintenance"}),children:[{path:"admin/maintenance",element:h.jsx(we,{children:h.jsx(hA,{})})}]},{path:"admin/controlplane",element:h.jsx(we,{children:h.jsx(mA,{})})},{path:"admin/streams",element:h.jsx(we,{children:h.jsx(pA,{})})}]}]}],{basename:window.__LT_BASE__||"/"});function OA(){return h.jsx(Wx,{client:Py,children:h.jsx(qv,{children:h.jsx(Hw,{children:h.jsx(nv,{router:jA})})})})}Sy(wy());Mv.createRoot(document.getElementById("root")).render(h.jsx(O.StrictMode,{children:h.jsx(OA,{})}));export{i3 as $,Th as A,BA as B,Ah as C,SE as D,$A as E,Ty as F,JA as G,Oh as H,Ly as I,G2 as J,e3 as K,KA as L,jh as M,L_ as N,Vt as O,Dg as P,RA as Q,a2 as R,M2 as S,d2 as T,XA as U,Mo as V,$a as W,vr as X,br as Y,h2 as Z,s3 as _,n3 as a,Hy as a0,ZA as a1,wE as b,P_ as c,Ye as d,UA as e,xE as f,LA as g,PA as h,DA as i,Jw as j,dy as k,ai as l,qA as m,gy as n,YA as o,GA as p,VA as q,FA as r,IA as s,QA as t,Ur as u,zA as v,Qw as w,HA as x,t3 as y,WA as z};
|
|
63
|
+
//# sourceMappingURL=index-DpGeD89g.js.map
|