@truefoundry/trueforge 0.2.0-rc.0 → 0.2.0-rc.10
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/dist/_frontend/assets/AgentCodeSnippets-T7PR6PDP-D5v5b1Ap.js +1 -0
- package/dist/_frontend/assets/AgentCodeSnippets-T7PR6PDP-D5v5b1Ap.js.br +0 -0
- package/dist/_frontend/assets/AgentCodeSnippets-T7PR6PDP-D5v5b1Ap.js.gz +0 -0
- package/dist/_frontend/assets/AgentMetricChart-J3RCSCAG-DQQM2xUO.js +1 -0
- package/dist/_frontend/assets/AgentMetricChart-J3RCSCAG-DQQM2xUO.js.br +0 -0
- package/dist/_frontend/assets/AgentMetricChart-J3RCSCAG-DQQM2xUO.js.gz +0 -0
- package/dist/_frontend/assets/AgentOverview-WC7WMNMS-D2JXCmE8.js +1 -0
- package/dist/_frontend/assets/AgentOverview-WC7WMNMS-D2JXCmE8.js.br +0 -0
- package/dist/_frontend/assets/AgentOverview-WC7WMNMS-D2JXCmE8.js.gz +0 -0
- package/dist/_frontend/assets/AgentSessionEventTimeline-SETKGGCI-w0p-eqfE.js +1 -0
- package/dist/_frontend/assets/AgentSessionEventTimeline-SETKGGCI-w0p-eqfE.js.br +0 -0
- package/dist/_frontend/assets/AgentSessionEventTimeline-SETKGGCI-w0p-eqfE.js.gz +0 -0
- package/dist/_frontend/assets/AgentSessionEventTimelineChart-4Y7PY5SJ-CM0nqFUW.js +1 -0
- package/dist/_frontend/assets/AgentSessionEventTimelineChart-4Y7PY5SJ-CM0nqFUW.js.br +0 -0
- package/dist/_frontend/assets/AgentSessionEventTimelineChart-4Y7PY5SJ-CM0nqFUW.js.gz +0 -0
- package/dist/_frontend/assets/AgentSessions-YCAPM5GK-DWN3jegv.js +1 -0
- package/dist/_frontend/assets/AgentSessions-YCAPM5GK-DWN3jegv.js.br +0 -0
- package/dist/_frontend/assets/AgentSessions-YCAPM5GK-DWN3jegv.js.gz +0 -0
- package/dist/_frontend/assets/ConnectorSettings-PXWRCFAL-DxRAFz9f.js +1 -0
- package/dist/_frontend/assets/ConnectorSettings-PXWRCFAL-DxRAFz9f.js.br +0 -0
- package/dist/_frontend/assets/ConnectorSettings-PXWRCFAL-DxRAFz9f.js.gz +0 -0
- package/dist/_frontend/assets/{DockLayout-LBNQJZNF-DGHpS9Gm.js → DockLayout-JRKCKAG2-sOp6ISa2.js} +1 -1
- package/dist/_frontend/assets/DrawerLayout-U7YPUZBR-GRCw7EHz.js +2 -0
- package/dist/_frontend/assets/DrawerLayout-U7YPUZBR-GRCw7EHz.js.br +0 -0
- package/dist/_frontend/assets/DrawerLayout-U7YPUZBR-GRCw7EHz.js.gz +0 -0
- package/dist/_frontend/assets/ModelSettings-VXYMJEMO-CKkCtQ6I.js +1 -0
- package/dist/_frontend/assets/ModelSettings-VXYMJEMO-CKkCtQ6I.js.br +0 -0
- package/dist/_frontend/assets/ModelSettings-VXYMJEMO-CKkCtQ6I.js.gz +0 -0
- package/dist/_frontend/assets/SandboxSettings-6DRUH72J-Ps36nOFK.js +1 -0
- package/dist/_frontend/assets/SandboxSettings-6DRUH72J-Ps36nOFK.js.br +0 -0
- package/dist/_frontend/assets/SandboxSettings-6DRUH72J-Ps36nOFK.js.gz +0 -0
- package/dist/_frontend/assets/SchedulesPage-2G6F4XO6-Cl3ozS2n.js +1 -0
- package/dist/_frontend/assets/SchedulesPage-2G6F4XO6-Cl3ozS2n.js.br +0 -0
- package/dist/_frontend/assets/SchedulesPage-2G6F4XO6-Cl3ozS2n.js.gz +0 -0
- package/dist/_frontend/assets/SettingsBuilder-6FJVZLJT-DwYljuln.js +2 -0
- package/dist/_frontend/assets/SettingsBuilder-6FJVZLJT-DwYljuln.js.br +0 -0
- package/dist/_frontend/assets/SettingsBuilder-6FJVZLJT-DwYljuln.js.gz +0 -0
- package/dist/_frontend/assets/ShellRouteSync-SJXFKUAJ-DJEkiFXn.js +1 -0
- package/dist/_frontend/assets/ShellRouteSync-SJXFKUAJ-DJEkiFXn.js.br +0 -0
- package/dist/_frontend/assets/ShellRouteSync-SJXFKUAJ-DJEkiFXn.js.gz +0 -0
- package/dist/_frontend/assets/SidebarLayout-EQ7EYCWR-7aRm2Ub-.js +2 -0
- package/dist/_frontend/assets/SidebarLayout-EQ7EYCWR-7aRm2Ub-.js.br +0 -0
- package/dist/_frontend/assets/SidebarLayout-EQ7EYCWR-7aRm2Ub-.js.gz +0 -0
- package/dist/_frontend/assets/SkillSettings-IHVI7FDM-Cg93046n.js +1 -0
- package/dist/_frontend/assets/SkillSettings-IHVI7FDM-Cg93046n.js.br +0 -0
- package/dist/_frontend/assets/SkillSettings-IHVI7FDM-Cg93046n.js.gz +0 -0
- package/dist/_frontend/assets/TrueForgeUIWithRouter-5OJFI3PF-BL3L4xzv.js +1 -0
- package/dist/_frontend/assets/WidgetLayout-PN5ZDOLM-C3AqdUG8.js +1 -0
- package/dist/_frontend/assets/WidgetLayout-PN5ZDOLM-C3AqdUG8.js.br +0 -0
- package/dist/_frontend/assets/WidgetLayout-PN5ZDOLM-C3AqdUG8.js.gz +0 -0
- package/dist/_frontend/assets/chunk-2QTH6JHX-CdrIErUL.js +1 -0
- package/dist/_frontend/assets/chunk-2QTH6JHX-CdrIErUL.js.br +0 -0
- package/dist/_frontend/assets/chunk-2QTH6JHX-CdrIErUL.js.gz +0 -0
- package/dist/_frontend/assets/chunk-2UBSLCKB-CuMNlF4h.js +2 -0
- package/dist/_frontend/assets/chunk-2UBSLCKB-CuMNlF4h.js.br +0 -0
- package/dist/_frontend/assets/chunk-2UBSLCKB-CuMNlF4h.js.gz +0 -0
- package/dist/_frontend/assets/chunk-62JRHF6Z-CbobtIm1.js +12 -0
- package/dist/_frontend/assets/chunk-62JRHF6Z-CbobtIm1.js.br +0 -0
- package/dist/_frontend/assets/chunk-62JRHF6Z-CbobtIm1.js.gz +0 -0
- package/dist/_frontend/assets/chunk-PX6MNNN3-BRyxcKe_.js +1 -0
- package/dist/_frontend/assets/chunk-PX6MNNN3-BRyxcKe_.js.br +0 -0
- package/dist/_frontend/assets/chunk-PX6MNNN3-BRyxcKe_.js.gz +0 -0
- package/dist/_frontend/assets/cssMode-CpJ2FAp5.js +1 -0
- package/dist/_frontend/assets/cssMode-CpJ2FAp5.js.br +0 -0
- package/dist/_frontend/assets/cssMode-CpJ2FAp5.js.gz +0 -0
- package/dist/_frontend/assets/{freemarker2-CCQkuwQA.js → freemarker2-D0W3RUAz.js} +1 -1
- package/dist/_frontend/assets/freemarker2-D0W3RUAz.js.br +0 -0
- package/dist/_frontend/assets/freemarker2-D0W3RUAz.js.gz +0 -0
- package/dist/_frontend/assets/{handlebars-Cbz9hMh4.js → handlebars-BW7nmZOA.js} +1 -1
- package/dist/_frontend/assets/handlebars-BW7nmZOA.js.br +0 -0
- package/dist/_frontend/assets/handlebars-BW7nmZOA.js.gz +0 -0
- package/dist/_frontend/assets/{html-BahIpdyT.js → html-D0A6s9EP.js} +1 -1
- package/dist/_frontend/assets/html-D0A6s9EP.js.br +0 -0
- package/dist/_frontend/assets/html-D0A6s9EP.js.gz +0 -0
- package/dist/_frontend/assets/htmlMode-8bfqeyre.js +1 -0
- package/dist/_frontend/assets/htmlMode-8bfqeyre.js.br +0 -0
- package/dist/_frontend/assets/htmlMode-8bfqeyre.js.gz +0 -0
- package/dist/_frontend/assets/{index-DEKCw40W.css → index-B01pXqvC.css} +1 -1
- package/dist/_frontend/assets/index-B01pXqvC.css.br +0 -0
- package/dist/_frontend/assets/index-B01pXqvC.css.gz +0 -0
- package/dist/_frontend/assets/index-Bv59m0qE.js +18 -0
- package/dist/_frontend/assets/index-Bv59m0qE.js.br +0 -0
- package/dist/_frontend/assets/index-Bv59m0qE.js.gz +0 -0
- package/dist/_frontend/assets/index-DhA9jnhv.css +1 -0
- package/dist/_frontend/assets/index-DhA9jnhv.css.br +0 -0
- package/dist/_frontend/assets/index-DhA9jnhv.css.gz +0 -0
- package/dist/_frontend/assets/{index-BijvMc2J.js → index-DnsWYEUD.js} +4 -4
- package/dist/_frontend/assets/index-DnsWYEUD.js.br +0 -0
- package/dist/_frontend/assets/index-DnsWYEUD.js.gz +0 -0
- package/dist/_frontend/assets/index-j62waCx3.js +933 -0
- package/dist/_frontend/assets/index-j62waCx3.js.br +0 -0
- package/dist/_frontend/assets/index-j62waCx3.js.gz +0 -0
- package/dist/_frontend/assets/{javascript-DX64NjaV.js → javascript-C6l7SPuz.js} +1 -1
- package/dist/_frontend/assets/{jsonMode-Cmj-z8lq.js → jsonMode-e8Sq4XLL.js} +4 -4
- package/dist/_frontend/assets/jsonMode-e8Sq4XLL.js.br +0 -0
- package/dist/_frontend/assets/jsonMode-e8Sq4XLL.js.gz +0 -0
- package/dist/_frontend/assets/{liquid-D9aEkxQ3.js → liquid-DRs4TY2e.js} +1 -1
- package/dist/_frontend/assets/liquid-DRs4TY2e.js.br +0 -0
- package/dist/_frontend/assets/liquid-DRs4TY2e.js.gz +0 -0
- package/dist/_frontend/assets/{lspLanguageFeatures-B9OVB8fw.js → lspLanguageFeatures-DxVZAZOX.js} +1 -1
- package/dist/_frontend/assets/lspLanguageFeatures-DxVZAZOX.js.br +0 -0
- package/dist/_frontend/assets/{lspLanguageFeatures-B9OVB8fw.js.gz → lspLanguageFeatures-DxVZAZOX.js.gz} +0 -0
- package/dist/_frontend/assets/{mdx-BS6lx6sy.js → mdx-osYDiwz9.js} +1 -1
- package/dist/_frontend/assets/mdx-osYDiwz9.js.br +0 -0
- package/dist/_frontend/assets/mdx-osYDiwz9.js.gz +0 -0
- package/dist/_frontend/assets/{python-CsklLa1s.js → python-D92u3A3V.js} +1 -1
- package/dist/_frontend/assets/python-D92u3A3V.js.br +0 -0
- package/dist/_frontend/assets/python-D92u3A3V.js.gz +0 -0
- package/dist/_frontend/assets/{razor-AHbg0zLw.js → razor-zJjkDOBi.js} +1 -1
- package/dist/_frontend/assets/razor-zJjkDOBi.js.br +0 -0
- package/dist/_frontend/assets/razor-zJjkDOBi.js.gz +0 -0
- package/dist/_frontend/assets/{tsMode-a0R0JxtL.js → tsMode-Daj7Izcs.js} +1 -1
- package/dist/_frontend/assets/tsMode-Daj7Izcs.js.br +0 -0
- package/dist/_frontend/assets/tsMode-Daj7Izcs.js.gz +0 -0
- package/dist/_frontend/assets/{typescript-0a1AGk9v.js → typescript-DJnajdKT.js} +1 -1
- package/dist/_frontend/assets/typescript-DJnajdKT.js.br +0 -0
- package/dist/_frontend/assets/typescript-DJnajdKT.js.gz +0 -0
- package/dist/_frontend/assets/{workers-B52dGfKp.js → workers-CMRxcwpZ.js} +1 -1
- package/dist/_frontend/assets/workers-CMRxcwpZ.js.br +0 -0
- package/dist/_frontend/assets/workers-CMRxcwpZ.js.gz +0 -0
- package/dist/_frontend/assets/{xml-DLl5XSKM.js → xml-Bbu7RONo.js} +1 -1
- package/dist/_frontend/assets/xml-Bbu7RONo.js.br +0 -0
- package/dist/_frontend/assets/xml-Bbu7RONo.js.gz +0 -0
- package/dist/_frontend/assets/{yaml-DJwDc3Fv.js → yaml-CvV_jAj3.js} +1 -1
- package/dist/_frontend/assets/yaml-CvV_jAj3.js.br +0 -0
- package/dist/_frontend/assets/yaml-CvV_jAj3.js.gz +0 -0
- package/dist/_frontend/index.html +5 -2
- package/dist/controller-main.js +1350 -0
- package/dist/controller-main.js.map +1 -0
- package/dist/main.js +16940 -9595
- package/dist/main.js.map +1 -1
- package/dist/postgres/migrations/20260827_000001_schedule.js +40 -0
- package/dist/postgres/migrations/20260827_000001_schedule.js.map +1 -0
- package/dist/postgres/migrations/20260827_000001_session_metrics.js +25 -0
- package/dist/postgres/migrations/20260827_000001_session_metrics.js.map +1 -0
- package/dist/postgres/migrations/20260828_000001_schedule_name_uq.js +15 -0
- package/dist/postgres/migrations/20260828_000001_schedule_name_uq.js.map +1 -0
- package/dist/postgres/migrations/20260831_000001_session_external_id.js +26 -0
- package/dist/postgres/migrations/20260831_000001_session_external_id.js.map +1 -0
- package/dist/postgres/migrations/20260901_000001_agent_metadata.js +18 -0
- package/dist/postgres/migrations/20260901_000001_agent_metadata.js.map +1 -0
- package/dist/postgres/migrations/20260902_000001_session_metadata.js +15 -0
- package/dist/postgres/migrations/20260902_000001_session_metadata.js.map +1 -0
- package/dist/postgres/migrations/20260902_000002_agent_external_id.js +26 -0
- package/dist/postgres/migrations/20260902_000002_agent_external_id.js.map +1 -0
- package/dist/postgres/migrations/20260903_000001_drop_agent_metadata.js +18 -0
- package/dist/postgres/migrations/20260903_000001_drop_agent_metadata.js.map +1 -0
- package/dist/postgres/migrations/20260903_000002_created_by_subject.js +110 -0
- package/dist/postgres/migrations/20260903_000002_created_by_subject.js.map +1 -0
- package/dist/postgres/migrations/20260904_000001_schedule_agent_id.js +48 -0
- package/dist/postgres/migrations/20260904_000001_schedule_agent_id.js.map +1 -0
- package/dist/postgres/migrations/20260904_000002_session_source.js +31 -0
- package/dist/postgres/migrations/20260904_000002_session_source.js.map +1 -0
- package/dist/postgres/migrations/20260904_000003_session_metadata_gin.js +24 -0
- package/dist/postgres/migrations/20260904_000003_session_metadata_gin.js.map +1 -0
- package/dist/postgres/migrations/20260907_000001_schedule_run_reason.js +15 -0
- package/dist/postgres/migrations/20260907_000001_schedule_run_reason.js.map +1 -0
- package/dist/postgres/migrations/20260909_000001_agent_description.js +16 -0
- package/dist/postgres/migrations/20260909_000001_agent_description.js.map +1 -0
- package/dist/postgres/migrations/20260911_000001_name_hyphen_only.js +463 -0
- package/dist/postgres/migrations/20260911_000001_name_hyphen_only.js.map +1 -0
- package/dist/sqlite/migrations/20260827_000001_schedule.js +69 -0
- package/dist/sqlite/migrations/20260827_000001_schedule.js.map +1 -0
- package/dist/sqlite/migrations/20260827_000001_session_metrics.js +165 -0
- package/dist/sqlite/migrations/20260827_000001_session_metrics.js.map +1 -0
- package/dist/sqlite/migrations/20260828_000001_schedule_name_uq.js +20 -0
- package/dist/sqlite/migrations/20260828_000001_schedule_name_uq.js.map +1 -0
- package/dist/sqlite/migrations/20260831_000001_session_external_id.js +28 -0
- package/dist/sqlite/migrations/20260831_000001_session_external_id.js.map +1 -0
- package/dist/sqlite/migrations/20260901_000001_agent_metadata.js +92 -0
- package/dist/sqlite/migrations/20260901_000001_agent_metadata.js.map +1 -0
- package/dist/sqlite/migrations/20260902_000001_session_metadata.js +197 -0
- package/dist/sqlite/migrations/20260902_000001_session_metadata.js.map +1 -0
- package/dist/sqlite/migrations/20260902_000002_agent_external_id.js +28 -0
- package/dist/sqlite/migrations/20260902_000002_agent_external_id.js.map +1 -0
- package/dist/sqlite/migrations/20260903_000001_drop_agent_metadata.js +114 -0
- package/dist/sqlite/migrations/20260903_000001_drop_agent_metadata.js.map +1 -0
- package/dist/sqlite/migrations/20260903_000002_created_by_subject.js +496 -0
- package/dist/sqlite/migrations/20260903_000002_created_by_subject.js.map +1 -0
- package/dist/sqlite/migrations/20260904_000001_schedule_agent_id.js +131 -0
- package/dist/sqlite/migrations/20260904_000001_schedule_agent_id.js.map +1 -0
- package/dist/sqlite/migrations/20260904_000002_session_source.js +28 -0
- package/dist/sqlite/migrations/20260904_000002_session_source.js.map +1 -0
- package/dist/sqlite/migrations/20260907_000001_schedule_run_reason.js +17 -0
- package/dist/sqlite/migrations/20260907_000001_schedule_run_reason.js.map +1 -0
- package/dist/sqlite/migrations/20260911_000001_agent_description.js +18 -0
- package/dist/sqlite/migrations/20260911_000001_agent_description.js.map +1 -0
- package/dist/sqlite/migrations/20260911_000001_name_hyphen_only.js +465 -0
- package/dist/sqlite/migrations/20260911_000001_name_hyphen_only.js.map +1 -0
- package/package.json +22 -13
- package/dist/_frontend/assets/ConnectorSettings-FXQ5B7TN-CqkaJ6bk.js +0 -1
- package/dist/_frontend/assets/ConnectorSettings-FXQ5B7TN-CqkaJ6bk.js.br +0 -0
- package/dist/_frontend/assets/ConnectorSettings-FXQ5B7TN-CqkaJ6bk.js.gz +0 -0
- package/dist/_frontend/assets/DrawerLayout-Q6UK4VMI-weFd3sRX.js +0 -2
- package/dist/_frontend/assets/DrawerLayout-Q6UK4VMI-weFd3sRX.js.br +0 -0
- package/dist/_frontend/assets/DrawerLayout-Q6UK4VMI-weFd3sRX.js.gz +0 -0
- package/dist/_frontend/assets/ModelSettings-4L4LOQJA-C_5SjCkP.js +0 -1
- package/dist/_frontend/assets/ModelSettings-4L4LOQJA-C_5SjCkP.js.br +0 -0
- package/dist/_frontend/assets/ModelSettings-4L4LOQJA-C_5SjCkP.js.gz +0 -0
- package/dist/_frontend/assets/SandboxSettings-Z4ZG6ZX4-D6AjXcBe.js +0 -1
- package/dist/_frontend/assets/SandboxSettings-Z4ZG6ZX4-D6AjXcBe.js.br +0 -0
- package/dist/_frontend/assets/SandboxSettings-Z4ZG6ZX4-D6AjXcBe.js.gz +0 -0
- package/dist/_frontend/assets/SettingsBuilder-WF7ZWKQW-BKzXsxdK.js +0 -2
- package/dist/_frontend/assets/SettingsBuilder-WF7ZWKQW-BKzXsxdK.js.br +0 -0
- package/dist/_frontend/assets/SettingsBuilder-WF7ZWKQW-BKzXsxdK.js.gz +0 -0
- package/dist/_frontend/assets/ShellRouteSync-T4WLY57Q-DQu3omM6.js +0 -1
- package/dist/_frontend/assets/ShellRouteSync-T4WLY57Q-DQu3omM6.js.br +0 -0
- package/dist/_frontend/assets/ShellRouteSync-T4WLY57Q-DQu3omM6.js.gz +0 -0
- package/dist/_frontend/assets/SidebarLayout-3WZ3CVON-DCnEzJW3.js +0 -2
- package/dist/_frontend/assets/SidebarLayout-3WZ3CVON-DCnEzJW3.js.br +0 -0
- package/dist/_frontend/assets/SidebarLayout-3WZ3CVON-DCnEzJW3.js.gz +0 -0
- package/dist/_frontend/assets/SkillSettings-3EPPC3IT-Cp2dAkSv.js +0 -1
- package/dist/_frontend/assets/SkillSettings-3EPPC3IT-Cp2dAkSv.js.br +0 -0
- package/dist/_frontend/assets/SkillSettings-3EPPC3IT-Cp2dAkSv.js.gz +0 -0
- package/dist/_frontend/assets/TrueForgeUIWithRouter-NZ4FGPE4-DKspF7Vq.js +0 -1
- package/dist/_frontend/assets/WidgetLayout-3QZ357FL-hQNmmaQ9.js +0 -1
- package/dist/_frontend/assets/WidgetLayout-3QZ357FL-hQNmmaQ9.js.br +0 -0
- package/dist/_frontend/assets/WidgetLayout-3QZ357FL-hQNmmaQ9.js.gz +0 -0
- package/dist/_frontend/assets/chunk-62JRHF6Z-DktHCg-F.js +0 -12
- package/dist/_frontend/assets/chunk-62JRHF6Z-DktHCg-F.js.br +0 -0
- package/dist/_frontend/assets/chunk-62JRHF6Z-DktHCg-F.js.gz +0 -0
- package/dist/_frontend/assets/chunk-7L63OK3O-ut7ifKZZ.js +0 -2
- package/dist/_frontend/assets/chunk-7L63OK3O-ut7ifKZZ.js.br +0 -0
- package/dist/_frontend/assets/chunk-7L63OK3O-ut7ifKZZ.js.gz +0 -0
- package/dist/_frontend/assets/chunk-ZXOADNF3-CYtk3iXk.js +0 -4
- package/dist/_frontend/assets/chunk-ZXOADNF3-CYtk3iXk.js.br +0 -0
- package/dist/_frontend/assets/chunk-ZXOADNF3-CYtk3iXk.js.gz +0 -0
- package/dist/_frontend/assets/cssMode-CVoX59tx.js +0 -1
- package/dist/_frontend/assets/cssMode-CVoX59tx.js.br +0 -0
- package/dist/_frontend/assets/cssMode-CVoX59tx.js.gz +0 -0
- package/dist/_frontend/assets/freemarker2-CCQkuwQA.js.br +0 -0
- package/dist/_frontend/assets/freemarker2-CCQkuwQA.js.gz +0 -0
- package/dist/_frontend/assets/handlebars-Cbz9hMh4.js.br +0 -0
- package/dist/_frontend/assets/handlebars-Cbz9hMh4.js.gz +0 -0
- package/dist/_frontend/assets/html-BahIpdyT.js.br +0 -0
- package/dist/_frontend/assets/html-BahIpdyT.js.gz +0 -0
- package/dist/_frontend/assets/htmlMode-D8Lhuwsc.js +0 -1
- package/dist/_frontend/assets/htmlMode-D8Lhuwsc.js.br +0 -0
- package/dist/_frontend/assets/htmlMode-D8Lhuwsc.js.gz +0 -0
- package/dist/_frontend/assets/index-2V4Ldq3d.js +0 -857
- package/dist/_frontend/assets/index-2V4Ldq3d.js.br +0 -0
- package/dist/_frontend/assets/index-2V4Ldq3d.js.gz +0 -0
- package/dist/_frontend/assets/index-BijvMc2J.js.br +0 -0
- package/dist/_frontend/assets/index-BijvMc2J.js.gz +0 -0
- package/dist/_frontend/assets/index-CB2SckMT.css +0 -1
- package/dist/_frontend/assets/index-CB2SckMT.css.br +0 -0
- package/dist/_frontend/assets/index-CB2SckMT.css.gz +0 -0
- package/dist/_frontend/assets/index-DEKCw40W.css.br +0 -0
- package/dist/_frontend/assets/index-DEKCw40W.css.gz +0 -0
- package/dist/_frontend/assets/jsonMode-Cmj-z8lq.js.br +0 -0
- package/dist/_frontend/assets/jsonMode-Cmj-z8lq.js.gz +0 -0
- package/dist/_frontend/assets/liquid-D9aEkxQ3.js.br +0 -0
- package/dist/_frontend/assets/liquid-D9aEkxQ3.js.gz +0 -0
- package/dist/_frontend/assets/lspLanguageFeatures-B9OVB8fw.js.br +0 -0
- package/dist/_frontend/assets/mdx-BS6lx6sy.js.br +0 -0
- package/dist/_frontend/assets/mdx-BS6lx6sy.js.gz +0 -0
- package/dist/_frontend/assets/python-CsklLa1s.js.br +0 -0
- package/dist/_frontend/assets/python-CsklLa1s.js.gz +0 -0
- package/dist/_frontend/assets/razor-AHbg0zLw.js.br +0 -0
- package/dist/_frontend/assets/razor-AHbg0zLw.js.gz +0 -0
- package/dist/_frontend/assets/tsMode-a0R0JxtL.js.br +0 -0
- package/dist/_frontend/assets/tsMode-a0R0JxtL.js.gz +0 -0
- package/dist/_frontend/assets/typescript-0a1AGk9v.js.br +0 -0
- package/dist/_frontend/assets/typescript-0a1AGk9v.js.gz +0 -0
- package/dist/_frontend/assets/workers-B52dGfKp.js.br +0 -0
- package/dist/_frontend/assets/workers-B52dGfKp.js.gz +0 -0
- package/dist/_frontend/assets/xml-DLl5XSKM.js.br +0 -0
- package/dist/_frontend/assets/xml-DLl5XSKM.js.gz +0 -0
- package/dist/_frontend/assets/yaml-DJwDc3Fv.js.br +0 -0
- package/dist/_frontend/assets/yaml-DJwDc3Fv.js.gz +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./SettingsBuilder-6FJVZLJT-DwYljuln.js","./index-j62waCx3.js","./index-B01pXqvC.css","./SchedulesPage-2G6F4XO6-Cl3ozS2n.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bx as N,by as Ut,u as G,j as s,bz as Vt,r as d,aU as S,bA as Ge,bB as Wt,bC as He,bD as Ue,bE as Ve,bF as We,bG as Xe,bH as X,bI as Xt,bJ as C,bK as Yt,bL as qt,bM as Qt,bN as Zt,bO as Jt,bP as en,bQ as tn,bR as nn,bS as be,bT as rn,bU as sn,bV as ce,bW as on,bX as an,bY as cn,bZ as Ye,b_ as Ee,b$ as le,c0 as we,c1 as se,c2 as Ie,c3 as ye,c4 as Me,c5 as _e,h as qe,a as Z,c as T,E as ln,c6 as un,e as F,c7 as dn,c8 as mn,c9 as fn,b as Le,aK as Qe,a3 as hn,H as pn,aa as Ae,I as z,q as xn,d as re,ca as Ze,a4 as gn,a7 as vn,s as Je,cb as bn,P as wn,S as Oe,cc as In,cd as yn,_ as et,bq as Mn}from"./index-j62waCx3.js";import{A as Ln,N as Cn,T as jn,S as Tn}from"./chunk-PX6MNNN3-BRyxcKe_.js";const Ce=n=>{const e=N(8),{index:t,archived:o,children:r}=n;let a;e[0]!==o||e[1]!==t?(a=Ut({source:"threads",query:{type:"index",index:t,archived:o},get:i=>i.threads().item({index:t,archived:o})}),e[0]=o,e[1]=t,e[2]=a):a=e[2];let c;e[3]!==a?(c={threadListItem:a},e[3]=a,e[4]=c):c=e[4];const l=G(c);let u;return e[5]!==l||e[6]!==r?(u=s.jsx(Vt,{value:l,children:r}),e[5]=l,e[6]=r,e[7]=u):u=e[7],u},tt=d.memo(n=>{const e=N(6),{index:t,archived:o,components:r}=n,a=o===void 0?!1:o,c=r.ThreadListItem;let l;e[0]!==c?(l=s.jsx(c,{}),e[0]=c,e[1]=l):l=e[1];let u;return e[2]!==a||e[3]!==t||e[4]!==l?(u=s.jsx(Ce,{index:t,archived:a,children:l}),e[2]=a,e[3]=t,e[4]=l,e[5]=u):u=e[5],u},(n,e)=>n.index===e.index&&n.archived===e.archived&&n.components.ThreadListItem===e.components.ThreadListItem);tt.displayName="ThreadListPrimitive.ItemByIndex";const ke=({archived:n,children:e})=>{const t=S(o=>n?o.threads.archivedThreadIds.length:o.threads.threadIds.length);return Ge(()=>Array.from({length:t},(o,r)=>s.jsx(Ce,{index:r,archived:n,children:s.jsx(Wt,{getItemState:a=>a.threads().item({index:r,archived:n}).getState(),children:a=>e({get threadListItem(){return a()}})})},r)),[t,n,e])},nt=n=>{const e=N(8),{archived:t,components:o,children:r}=n,a=t===void 0?!1:t;if(o){const l=o.ThreadListItem;let u;e[0]!==l?(u=()=>s.jsx(l,{}),e[0]=l,e[1]=u):u=e[1];let i;return e[2]!==a||e[3]!==u?(i=s.jsx(ke,{archived:a,children:u}),e[2]=a,e[3]=u,e[4]=i):i=e[4],i}let c;return e[5]!==a||e[6]!==r?(c=s.jsx(ke,{archived:a,children:r}),e[5]=a,e[6]=r,e[7]=c):c=e[7],c};nt.displayName="ThreadListPrimitive.Items";const rt=n=>{const e=N(2),{fallback:t}=n,o=S(Sn)||t;let r;return e[0]!==o?(r=s.jsx(s.Fragment,{children:o}),e[0]=o,e[1]=r):r=e[1],r};rt.displayName="ThreadListItemPrimitive.Title";function Sn(n){return n.threadListItem.title}const Rn=()=>{const n=N(4),e=G();let t;n[0]!==e?(t=()=>{e.threadListItem().archive()},n[0]=e,n[1]=t):t=n[1];const o=t;let r;return n[2]!==o?(r={archive:o},n[2]=o,n[3]=r):r=n[3],r},Pn=()=>{const n=N(4),e=G();let t;n[0]!==e?(t=()=>{e.threadListItem().delete()},n[0]=e,n[1]=t):t=n[1];const o=t;let r;return n[2]!==o?(r={delete:o},n[2]=o,n[3]=r):r=n[3],r},Nn=()=>{const n=N(4),e=G();let t;n[0]!==e?(t=()=>{e.threadListItem().unarchive()},n[0]=e,n[1]=t):t=n[1];const o=t;let r;return n[2]!==o?(r={unarchive:o},n[2]=o,n[3]=r):r=n[3],r},Dn=()=>{const n=N(4),e=G();let t;n[0]!==e?(t=()=>{e.threadListItem().switchTo()},n[0]=e,n[1]=t):t=n[1];const o=t;let r;return n[2]!==o?(r={switchTo:o},n[2]=o,n[3]=r):r=n[3],r},En=()=>{const n=N(4),e=G();let t;n[0]!==e?(t=()=>{e.threads().switchToNewThread()},n[0]=e,n[1]=t):t=n[1];const o=t;let r;return n[2]!==o?(r={switchToNewThread:o},n[2]=o,n[3]=r):r=n[3],r},_n=()=>{const n=N(5),e=G(),t=S(An);let o;n[0]!==e?(o=()=>{e.threads().loadMore()},n[0]=e,n[1]=o):o=n[1];const r=o;let a;return n[2]!==t||n[3]!==r?(a={loadMore:r,disabled:t},n[2]=t,n[3]=r,n[4]=a):a=n[4],a};function An(n){return!n.threads.hasMore||n.threads.isLoading||n.threads.isLoadingMore}var On=Object.defineProperty,y=(n,e)=>On(n,"name",{value:e,configurable:!0}),kn=["Enter"," "],Fn=["ArrowDown","PageUp","Home"],st=["ArrowUp","PageDown","End"],Bn=[...Fn,...st],ue="Menu",[pe,Kn,$n]=We(ue),[Y,ot]=He(ue,[$n,Ue,Ve]),je=Ue(),at=Ve(),[zn,oe]=Y(ue),[Gn,Te]=Y(ue),Hn=y(n=>{const{__scopeMenu:e,open:t=!1,children:o,dir:r,onOpenChange:a,modal:c=!0}=n,l=je(e),[u,i]=d.useState(null),m=d.useRef(!1),h=sn(a),f=ce(r);return d.useEffect(()=>{const p=y(()=>{m.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},"handleKeyDown"),b=y(()=>m.current=!1,"handlePointer");return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),d.useEffect(()=>{if(!t)return;const p=y(()=>h(!1),"handleBlur");return window.addEventListener("blur",p),()=>window.removeEventListener("blur",p)},[t,h]),s.jsx(on,{...l,children:s.jsx(zn,{scope:e,open:t,onOpenChange:h,content:u,onContentChange:i,children:s.jsx(Gn,{scope:e,onClose:d.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:m,dir:f,modal:c,children:o})})})},"Menu"),Un=d.forwardRef(y(function(e,t){const{__scopeMenu:o,...r}=e,a=je(o);return s.jsx(an,{...a,...r,ref:t})},"MenuAnchor")),it="MenuPortal",[Vn,Wn]=Y(it,{forceMount:void 0}),Xn=y(n=>{const{__scopeMenu:e,forceMount:t,children:o,container:r}=n,a=oe(it,e);return s.jsx(Vn,{scope:e,forceMount:t,children:s.jsx(Xe,{present:t||a.open,children:s.jsx(cn,{asChild:!0,container:r,children:o})})})},"MenuPortal"),W="MenuContent",[Yn,ct]=Y(W),qn=d.forwardRef(y(function(e,t){const o=Wn(W,e.__scopeMenu),{forceMount:r=o.forceMount,...a}=e,c=oe(W,e.__scopeMenu),l=Te(W,e.__scopeMenu);return s.jsx(pe.Provider,{scope:e.__scopeMenu,children:s.jsx(Xe,{present:r||c.open,children:s.jsx(pe.Slot,{scope:e.__scopeMenu,children:l.modal?s.jsx(Qn,{...a,ref:t}):s.jsx(Zn,{...a,ref:t})})})})},"MenuContent")),Qn=d.forwardRef(y(function(e,t){const o=oe(W,e.__scopeMenu),r=d.useRef(null),a=X(t,r);return d.useEffect(()=>{const c=r.current;if(c)return Xt(c)},[]),s.jsx(lt,{...e,ref:a,trapFocus:o.open,disableOutsidePointerEvents:o.open,disableOutsideScroll:!0,onFocusOutside:C(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>o.onOpenChange(!1)})},"MenuRootContentModal")),Zn=d.forwardRef(y(function(e,t){const o=oe(W,e.__scopeMenu);return s.jsx(lt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>o.onOpenChange(!1)})},"MenuRootContentNonModal")),Jn=rn("MenuContent.ScrollLock"),lt=d.forwardRef(y(function(e,t){const{__scopeMenu:o,loop:r=!1,trapFocus:a,onOpenAutoFocus:c,onCloseAutoFocus:l,disableOutsidePointerEvents:u,onEntryFocus:i,onEscapeKeyDown:m,onPointerDownOutside:h,onFocusOutside:f,onInteractOutside:p,onDismiss:b,disableOutsideScroll:x,...g}=e,M=oe(W,o),L=Te(W,o),j=je(o),P=at(o),_=Kn(o),[A,O]=d.useState(null),D=d.useRef(null),I=X(t,D,M.onContentChange),R=d.useRef(0),E=d.useRef(""),B=d.useRef(0),w=d.useRef(null),te=d.useRef("right"),K=d.useRef(0),U=x?qt:d.Fragment,de=x?{as:Jn,allowPinchZoom:!0}:void 0,Ht=y(v=>{var Q,Ne;const k=E.current+v,$=_().filter(H=>!H.disabled),V=document.activeElement,me=(Q=$.find(H=>H.ref.current===V))==null?void 0:Q.textValue,fe=$.map(H=>H.textValue),Pe=ht(fe,k,me),ne=(Ne=$.find(H=>H.textValue===Pe))==null?void 0:Ne.ref.current;y((function H(De){E.current=De,window.clearTimeout(R.current),De!==""&&(R.current=window.setTimeout(()=>H(""),1e3))}),"updateSearch")(k),ne&&setTimeout(()=>ne.focus())},"handleTypeaheadSearch");d.useEffect(()=>()=>window.clearTimeout(R.current),[]),Yt();const q=d.useCallback(v=>{var $,V;return te.current===(($=w.current)==null?void 0:$.side)&&xt(v,(V=w.current)==null?void 0:V.area)},[]);return s.jsx(Yn,{scope:o,searchRef:E,onItemEnter:d.useCallback(v=>{q(v)&&v.preventDefault()},[q]),onItemLeave:d.useCallback(v=>{var k;q(v)||((k=D.current)==null||k.focus(),O(null))},[q]),onTriggerLeave:d.useCallback(v=>{q(v)&&v.preventDefault()},[q]),pointerGraceTimerRef:B,onPointerGraceIntentChange:d.useCallback(v=>{w.current=v},[]),children:s.jsx(U,{...de,children:s.jsx(Qt,{asChild:!0,trapped:a,onMountAutoFocus:C(c,v=>{var k;v.preventDefault(),(k=D.current)==null||k.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:s.jsx(Zt,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:m,onPointerDownOutside:h,onFocusOutside:f,onInteractOutside:p,onDismiss:b,children:s.jsx(Jt,{asChild:!0,...P,dir:L.dir,orientation:"vertical",loop:r,currentTabStopId:A,onCurrentTabStopIdChange:O,onEntryFocus:C(i,v=>{L.isUsingKeyboardRef.current||v.preventDefault()}),preventScrollOnEntryFocus:!0,children:s.jsx(en,{role:"menu","aria-orientation":"vertical","data-state":ut(M.open),"data-radix-menu-content":"",dir:L.dir,...j,...g,ref:I,style:{outline:"none",...g.style},onKeyDown:C(g.onKeyDown,v=>{const $=v.target.closest("[data-radix-menu-content]")===v.currentTarget,V=v.ctrlKey||v.altKey||v.metaKey,me=v.key.length===1;$&&(v.key==="Tab"&&v.preventDefault(),!V&&me&&Ht(v.key));const fe=D.current;if(v.target!==fe||!Bn.includes(v.key))return;v.preventDefault();const ne=_().filter(Q=>!Q.disabled).map(Q=>Q.ref.current);st.includes(v.key)&&ne.reverse(),mt(ne)}),onBlur:C(e.onBlur,v=>{v.currentTarget.contains(v.target)||(window.clearTimeout(R.current),E.current="")}),onPointerMove:C(e.onPointerMove,ie(v=>{const k=v.target,$=K.current!==v.clientX;if(v.currentTarget.contains(k)&&$){const V=v.clientX>K.current?"right":"left";te.current=V,K.current=v.clientX}}))})})})})})})},"MenuContentImpl")),xe="MenuItem",Fe="menu.itemSelect",er=d.forwardRef(y(function(e,t){const{disabled:o=!1,onSelect:r,...a}=e,c=d.useRef(null),l=Te(xe,e.__scopeMenu),u=ct(xe,e.__scopeMenu),i=X(t,c),m=d.useRef(!1),h=y(()=>{const f=c.current;if(!o&&f){const p=new CustomEvent(Fe,{bubbles:!0,cancelable:!0});f.addEventListener(Fe,b=>r==null?void 0:r(b),{once:!0}),tn(f,p),p.defaultPrevented?m.current=!1:l.onClose()}},"handleSelect");return s.jsx(tr,{...a,ref:i,disabled:o,onClick:C(e.onClick,h),onPointerDown:f=>{var p;(p=e.onPointerDown)==null||p.call(e,f),m.current=!0},onPointerUp:C(e.onPointerUp,f=>{var p;m.current||(p=f.currentTarget)==null||p.click()}),onKeyDown:C(e.onKeyDown,f=>{o||f.target!==f.currentTarget||u.searchRef.current!==""&&f.key===" "||kn.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})},"MenuItem")),tr=d.forwardRef(y(function(e,t){const{__scopeMenu:o,disabled:r=!1,textValue:a,...c}=e,l=ct(xe,o),u=at(o),i=d.useRef(null),m=X(t,i),[h,f]=d.useState(!1),[p,b]=d.useState("");return d.useEffect(()=>{const x=i.current;x&&b((x.textContent??"").trim())},[c.children]),s.jsx(pe.ItemSlot,{scope:o,disabled:r,textValue:a??p,children:s.jsx(nn,{asChild:!0,...u,focusable:!r,children:s.jsx(be.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...c,ref:m,onPointerMove:C(e.onPointerMove,ie(x=>{r?l.onItemLeave(x):(l.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:C(e.onPointerLeave,ie(x=>l.onItemLeave(x))),onFocus:C(e.onFocus,()=>f(!0)),onBlur:C(e.onBlur,()=>f(!1))})})})},"MenuItemImpl")),nr="MenuRadioGroup",[ns,rs]=Y(nr,{value:void 0,onValueChange:y(()=>{},"onValueChange")}),rr="MenuItemIndicator",[ss,os]=Y(rr,{checked:!1}),sr=d.forwardRef(y(function(e,t){const{__scopeMenu:o,...r}=e;return s.jsx(be.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})},"MenuSeparator")),or="MenuSub",[as,is]=Y(or);function ut(n){return n?"open":"closed"}y(ut,"getOpenState");function dt(n){return n==="indeterminate"}y(dt,"isIndeterminate");function ar(n){return dt(n)?"indeterminate":n?"checked":"unchecked"}y(ar,"getCheckedState");function mt(n){const e=document.activeElement;for(const t of n)if(t===e||(t.focus(),document.activeElement!==e))return}y(mt,"focusFirst");function ft(n,e){return n.map((t,o)=>n[(e+o)%n.length])}y(ft,"wrapArray");function ht(n,e,t){const r=e.length>1&&Array.from(e).every(i=>i===e[0])?e[0]:e,a=t?n.indexOf(t):-1;let c=ft(n,Math.max(a,0));r.length===1&&(c=c.filter(i=>i!==t));const u=c.find(i=>i.toLowerCase().startsWith(r.toLowerCase()));return u!==t?u:void 0}y(ht,"getNextMatch");function pt(n,e){const{x:t,y:o}=n;let r=!1;for(let a=0,c=e.length-1;a<e.length;c=a++){const l=e[a],u=e[c],i=l.x,m=l.y,h=u.x,f=u.y;m>o!=f>o&&t<(h-i)*(o-m)/(f-m)+i&&(r=!r)}return r}y(pt,"isPointInPolygon");function xt(n,e){if(!e)return!1;const t={x:n.clientX,y:n.clientY};return pt(t,e)}y(xt,"isPointerInGraceArea");function ie(n){return e=>e.pointerType==="mouse"?n(e):void 0}y(ie,"whenMouse");var ir=Hn,cr=Un,lr=Xn,ur=qn,dr=er,mr=sr,fr=Object.defineProperty,J=(n,e)=>fr(n,"name",{value:e,configurable:!0}),Se="DropdownMenu",[hr,gt]=He(Se,[ot]),ee=ot(),[pr,vt]=hr(Se),bt=J(n=>{const{__scopeDropdownMenu:e,children:t,dir:o,open:r,defaultOpen:a,onOpenChange:c,modal:l=!0}=n,u=ee(e),i=d.useRef(null),[m,h]=Ye({prop:r,defaultProp:a??!1,onChange:c,caller:Se});return s.jsx(pr,{scope:e,triggerId:Ee(),triggerRef:i,contentId:Ee(),open:m,onOpenChange:h,onOpenToggle:d.useCallback(()=>h(f=>!f),[h]),modal:l,children:s.jsx(ir,{...u,open:m,onOpenChange:h,dir:o,modal:l,children:t})})},"DropdownMenu"),xr="DropdownMenuTrigger",wt=d.forwardRef(J(function(e,t){const{__scopeDropdownMenu:o,disabled:r=!1,...a}=e,c=vt(xr,o),l=ee(o),u=X(t,c.triggerRef);return s.jsx(cr,{asChild:!0,...l,children:s.jsx(be.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:u,onPointerDown:C(e.onPointerDown,i=>{!r&&i.button===0&&i.ctrlKey===!1&&(c.onOpenToggle(),c.open||i.preventDefault())}),onKeyDown:C(e.onKeyDown,i=>{r||(["Enter"," "].includes(i.key)&&c.onOpenToggle(),i.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})},"DropdownMenuTrigger")),It=J(n=>{const{__scopeDropdownMenu:e,...t}=n,o=ee(e);return s.jsx(lr,{...o,...t})},"DropdownMenuPortal"),gr="DropdownMenuContent",yt=d.forwardRef(J(function(e,t){const{__scopeDropdownMenu:o,...r}=e,a=vt(gr,o),c=ee(o),l=d.useRef(!1);return s.jsx(ur,{id:a.contentId,"aria-labelledby":a.triggerId,...c,...r,ref:t,onCloseAutoFocus:C(e.onCloseAutoFocus,u=>{var i;l.current||(i=a.triggerRef.current)==null||i.focus(),l.current=!1,u.preventDefault()}),onInteractOutside:C(e.onInteractOutside,u=>{const i=u.detail.originalEvent,m=i.button===0&&i.ctrlKey===!0,h=i.button===2||m;(!a.modal||h)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),Mt=d.forwardRef(J(function(e,t){const{__scopeDropdownMenu:o,...r}=e,a=ee(o);return s.jsx(dr,{...a,...r,ref:t})},"DropdownMenuItem")),Lt=d.forwardRef(J(function(e,t){const{__scopeDropdownMenu:o,...r}=e,a=ee(o);return s.jsx(mr,{...a,...r,ref:t})},"DropdownMenuSeparator")),Ct=bt,jt=wt,vr=It,Tt=yt,St=Mt,Rt=Lt;const br=Object.freeze(Object.defineProperty({__proto__:null,Content:Tt,DropdownMenu:bt,DropdownMenuContent:yt,DropdownMenuItem:Mt,DropdownMenuPortal:It,DropdownMenuSeparator:Lt,DropdownMenuTrigger:wt,Item:St,Portal:vr,Root:Ct,Separator:Rt,Trigger:jt,createDropdownMenuScope:gt},Symbol.toStringTag,{value:"Module"})),wr=le(jt),Ir=le(Tt),yr=le(St),Mr=le(Rt),Pt=d.forwardRef((n,e)=>{const t=N(15);let o,r,a;t[0]!==n?({onClick:r,disabled:o,...a}=n,t[0]=n,t[1]=o,t[2]=r,t[3]=a):(o=t[1],r=t[2],a=t[3]);const c=S(Lr),{switchToNewThread:l}=En();let u;t[4]!==c?(u=c?{"data-active":"true","aria-current":"true"}:null,t[4]=c,t[5]=u):u=t[5];let i;t[6]!==r||t[7]!==l?(i=C(r,l),t[6]=r,t[7]=l,t[8]=i):i=t[8];let m;return t[9]!==o||t[10]!==e||t[11]!==a||t[12]!==u||t[13]!==i?(m=s.jsx(we.button,{type:"button",...u,...a,ref:e,disabled:o,onClick:i}),t[9]=o,t[10]=e,t[11]=a,t[12]=u,t[13]=i,t[14]=m):m=t[14],m});Pt.displayName="ThreadListPrimitive.New";function Lr(n){return n.threads.newThreadId===n.threads.mainThreadId}const Cr=()=>{const{loadMore:n,disabled:e}=_n();return e?null:n},jr=se("ThreadListPrimitive.LoadMore",Cr),[Tr,Sr]=We("ThreadList"),ge=Tr,Nt=ye(null),Rr=Nt.Provider,Re=()=>Ie(Nt),Dt=d.forwardRef((n,e)=>{const t=N(3);let o;return t[0]!==n||t[1]!==e?(o=s.jsx(ge.Provider,{scope:void 0,children:s.jsx(ge.Slot,{scope:void 0,children:s.jsx(we.div,{...n,ref:e})})}),t[0]=n,t[1]=e,t[2]=o):o=t[2],o});Dt.displayName="ThreadListPrimitive.Root";var Pr=Me({ItemByIndex:()=>tt,Items:()=>nt,LoadMore:()=>jr,New:()=>Pt,Root:()=>Dt});const Et=d.forwardRef((n,e)=>{const t=S(i=>i.threads.mainThreadId===i.threadListItem.id),o=_e(null),r=_e(null),a=Ge(()=>({triggerRef:o,moreRef:r}),[]),c=Sr(void 0),l=ce(),u=i=>{const m=l==="rtl"?"ArrowLeft":"ArrowRight",h=l==="rtl"?"ArrowRight":"ArrowLeft",f=o.current,p=r.current;if(f&&i.target===f)if(i.key==="ArrowDown"||i.key==="ArrowUp"){const b=c().map(g=>g.ref.current).filter(g=>g!==null),x=b[b.indexOf(f)+(i.key==="ArrowDown"?1:-1)];x&&(x.focus(),i.preventDefault())}else i.key===m&&p&&(p.focus(),i.preventDefault());else p&&i.target===p&&i.key===h&&(f==null||f.focus(),i.preventDefault())};return s.jsx(Rr,{value:a,children:s.jsx(we.div,{...t?{"data-active":"true","aria-current":"true"}:null,...n,onKeyDown:C(n.onKeyDown,u),ref:e})})});Et.displayName="ThreadListItemPrimitive.Root";const Nr=()=>{const{archive:n}=Rn();return n},Dr=se("ThreadListItemPrimitive.Archive",Nr),Er=()=>{const{unarchive:n}=Nn();return n},_r=se("ThreadListItemPrimitive.Unarchive",Er),Ar=()=>{const{delete:n}=Pn();return n},Or=se("ThreadListItemPrimitive.Delete",Ar),kr=()=>{const{switchTo:n}=Dn();return n},Fr=se("ThreadListItemPrimitive.Trigger",kr),_t=d.forwardRef((n,e)=>{var a;const t=N(3),o=X(e,(a=Re())==null?void 0:a.triggerRef);let r;return t[0]!==n||t[1]!==o?(r=s.jsx(ge.ItemSlot,{scope:void 0,children:s.jsx(Fr,{...n,ref:o})}),t[0]=n,t[1]=o,t[2]=r):r=t[2],r});_t.displayName="ThreadListItemPrimitive.Trigger";var ve=Me({Archive:()=>Dr,Delete:()=>Or,Root:()=>Et,Title:()=>rt,Trigger:()=>_t,Unarchive:()=>_r});const ae=gt(),At=ye(()=>{}),Ot=()=>Ie(At),kt=ye(!1),Ft=()=>Ie(kt),Bt=n=>{const e=N(26);let t,o,r,a,c,l,u;e[0]!==n?({__scopeThreadListItemMore:t,open:c,defaultOpen:o,onOpenChange:a,sharedFocusGroup:u,modal:r,...l}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=r,e[4]=a,e[5]=c,e[6]=l,e[7]=u):(t=e[1],o=e[2],r=e[3],a=e[4],c=e[5],l=e[6],u=e[7]);const i=u===void 0?!1:u,m=i?!1:r??!0,h=ae(t),f=o??!1;let p;e[8]!==a?(p=a?{onChange:a}:{},e[8]=a,e[9]=p):p=e[9];let b;e[10]!==c||e[11]!==f||e[12]!==p?(b={prop:c,defaultProp:f,caller:"ThreadListItemMorePrimitive.Root",...p},e[10]=c,e[11]=f,e[12]=p,e[13]=b):b=e[13];const[x,g]=Ye(b);let M;e[14]!==m||e[15]!==x||e[16]!==l||e[17]!==h||e[18]!==g?(M=s.jsx(Ct,{...h,...l,modal:m,open:x,onOpenChange:g}),e[14]=m,e[15]=x,e[16]=l,e[17]=h,e[18]=g,e[19]=M):M=e[19];let L;e[20]!==g||e[21]!==M?(L=s.jsx(At.Provider,{value:g,children:M}),e[20]=g,e[21]=M,e[22]=L):L=e[22];let j;return e[23]!==i||e[24]!==L?(j=s.jsx(kt.Provider,{value:i,children:L}),e[23]=i,e[24]=L,e[25]=j):j=e[25],j};Bt.displayName="ThreadListItemMorePrimitive.Root";const Kt=d.forwardRef((n,e)=>{const t=N(10),{__scopeThreadListItemMore:o,...r}=n,a=ae(o),c=Re(),l=Ot(),u=Ft(),i=X(e,c==null?void 0:c.moreRef),m=ce()==="rtl"?"ArrowLeft":"ArrowRight",h=wr;let f;t[0]!==m||t[1]!==l||t[2]!==u?(f=x=>{!u||x.key!==m||(x.preventDefault(),l(!0))},t[0]=m,t[1]=l,t[2]=u,t[3]=f):f=t[3];const p=C(r.onKeyDown,f);let b;return t[4]!==h||t[5]!==i||t[6]!==r||t[7]!==a||t[8]!==p?(b=s.jsx(h,{...a,...r,onKeyDown:p,ref:i}),t[4]=h,t[5]=i,t[6]=r,t[7]=a,t[8]=p,t[9]=b):b=t[9],b});Kt.displayName="ThreadListItemMorePrimitive.Trigger";const $t=d.forwardRef((n,e)=>{const t=N(21),{__scopeThreadListItemMore:o,portalProps:r,sideOffset:a,...c}=n,l=a===void 0?4:a,u=ae(o),i=Ot(),m=Re(),h=Ft(),f=ce()==="rtl"?"ArrowRight":"ArrowLeft",p=br,b=Ir;let x;t[0]!==f||t[1]!==(m==null?void 0:m.moreRef)||t[2]!==i||t[3]!==h?(x=_=>{var A;!h||_.key!==f||(_.preventDefault(),i(!1),(A=m==null?void 0:m.moreRef.current)==null||A.focus())},t[0]=f,t[1]=m==null?void 0:m.moreRef,t[2]=i,t[3]=h,t[4]=x):x=t[4];const g=C(c.onKeyDown,x);let M;t[5]!==(m==null?void 0:m.moreRef)||t[6]!==h?(M=()=>{var _;h&&((_=m==null?void 0:m.moreRef.current)==null||_.focus())},t[5]=m==null?void 0:m.moreRef,t[6]=h,t[7]=M):M=t[7];const L=C(c.onEscapeKeyDown,M);let j;t[8]!==b||t[9]!==e||t[10]!==c||t[11]!==u||t[12]!==l||t[13]!==g||t[14]!==L?(j=s.jsx(b,{...u,...c,onKeyDown:g,onEscapeKeyDown:L,ref:e,sideOffset:l}),t[8]=b,t[9]=e,t[10]=c,t[11]=u,t[12]=l,t[13]=g,t[14]=L,t[15]=j):j=t[15];let P;return t[16]!==r||t[17]!==u||t[18]!==p.Portal||t[19]!==j?(P=s.jsx(p.Portal,{...u,...r,children:j}),t[16]=r,t[17]=u,t[18]=p.Portal,t[19]=j,t[20]=P):P=t[20],P});$t.displayName="ThreadListItemMorePrimitive.Content";const zt=d.forwardRef((n,e)=>{const t=N(7);let o,r;t[0]!==n?({__scopeThreadListItemMore:o,...r}=n,t[0]=n,t[1]=o,t[2]=r):(o=t[1],r=t[2]);const a=ae(o);let c;return t[3]!==e||t[4]!==r||t[5]!==a?(c=s.jsx(yr,{...a,...r,ref:e}),t[3]=e,t[4]=r,t[5]=a,t[6]=c):c=t[6],c});zt.displayName="ThreadListItemMorePrimitive.Item";const Gt=d.forwardRef((n,e)=>{const t=N(7);let o,r;t[0]!==n?({__scopeThreadListItemMore:o,...r}=n,t[0]=n,t[1]=o,t[2]=r):(o=t[1],r=t[2]);const a=ae(o);let c;return t[3]!==e||t[4]!==r||t[5]!==a?(c=s.jsx(Mr,{...a,...r,ref:e}),t[3]=e,t[4]=r,t[5]=a,t[6]=c):c=t[6],c});Gt.displayName="ThreadListItemMorePrimitive.Separator";var he=Me({Content:()=>$t,Item:()=>zt,Root:()=>Bt,Separator:()=>Gt,Trigger:()=>Kt});function Br(){const n=Z(),e=qe(),t=Le(),o=Qe(),r=t||o,[a,c]=d.useState(!1),[l,u]=d.useState(""),[i,m]=d.useState(null),h=d.useRef(null),f=d.useRef(null),p=d.useId(),b=(n==null?void 0:n.isLibraryEnabled)===!0&&e!=null,x=(n==null?void 0:n.historyAgentFilter)??null;d.useEffect(()=>{a||u("")},[a]);const{agents:g,isInitialLoading:M,isSearching:L,loadingMore:j,hasMore:P,listRef:_,sentinelRef:A}=hn({enabled:a&&b,query:l});if(d.useLayoutEffect(()=>{if(!a||r){m(null);return}const I=()=>{var E;const R=(E=h.current)==null?void 0:E.getBoundingClientRect();R&&m({top:R.top,left:R.right+4})};return I(),window.addEventListener("resize",I),window.addEventListener("scroll",I,!0),()=>{window.removeEventListener("resize",I),window.removeEventListener("scroll",I,!0)}},[a,r]),d.useEffect(()=>{if(!a||r)return;const I=R=>{var B,w;const E=R.target;(B=h.current)!=null&&B.contains(E)||(w=f.current)!=null&&w.contains(E)||c(!1)};return document.addEventListener("mousedown",I),()=>document.removeEventListener("mousedown",I)},[a,r]),!b)return null;const O=I=>{(n==null?void 0:n.isComposerEnabled)===!0?n.openDraft():n==null||n.openLibraryHome(),n==null||n.setHistoryAgentFilter(I),c(!1)},D=s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"p-1",onMouseDown:I=>I.stopPropagation(),children:[s.jsx(pn,{query:l,setQuery:u,placeholder:"Search agents"}),L?s.jsx("p",{className:"text-text-secondary px-1 pt-1 text-[11px]",role:"status",children:"Searching…"}):null]}),s.jsxs("div",{ref:_,className:F("mt-1 overflow-y-auto",r?"min-h-0 flex-1 px-1 pb-2":"min-h-48 max-h-64"),children:[l.trim()===""?s.jsxs(Ae,{className:F("justify-between",x==null&&"bg-dropdown-selected-item-bg text-dropdown-selected-item-text"),onClick:()=>O(null),children:["All chats",x==null?s.jsx(z,{name:"check",className:"size-3.5 shrink-0"}):null]}):null,M?s.jsx("p",{className:"px-2 py-3 text-center text-xs text-text-secondary",children:"Loading…"}):g.length===0?s.jsx("p",{className:"text-text-secondary px-2 py-6 text-center text-xs",role:"status",children:l.trim()?`No agents match "${l.trim()}".`:"No agents yet."}):s.jsxs(s.Fragment,{children:[g.map(I=>{const R=xn(I),E=(x==null?void 0:x.agentId)===R;return s.jsxs(Ae,{className:F("justify-between gap-2 text-left",E&&"bg-dropdown-selected-item-bg text-dropdown-selected-item-text"),onClick:()=>O({agentId:R,agentName:I.name,intent:"history"}),children:[s.jsx("span",{className:"min-w-0 truncate",children:I.name}),E?s.jsx(z,{name:"check",className:"size-3.5 shrink-0"}):null]},R)}),P?s.jsx("div",{ref:A,className:"flex h-6 shrink-0 items-center justify-center","aria-hidden":!0,children:j?s.jsx("span",{className:"text-text-secondary text-[11px]",role:"status",children:"Loading more…"}):null}):null]})]})]});return s.jsxs("div",{className:"relative shrink-0",children:[s.jsxs("button",{ref:h,type:"button","aria-label":x!=null?`Filter chat history by agent (${x.agentName})`:"Filter chat history by agent","aria-haspopup":r?"dialog":"menu","aria-expanded":a,"aria-controls":a?p:void 0,title:"Filter by agent",className:re({variant:"ghost",size:"icon",className:F("relative size-7 shrink-0 text-text-secondary hover:bg-ghost-button-hover hover:text-ghost-button-text",x!=null&&"text-text-primary")}),onClick:()=>c(I=>!I),children:[s.jsx(z,{name:"funnel",className:"size-3.5"}),x!=null?s.jsx("span",{className:"bg-primary-button-bg absolute top-1 right-1 size-1.5 rounded-full","aria-hidden":!0,"data-testid":"history-filter-active-dot"}):null]}),r&&a?s.jsx(Ze,{open:!0,onOpenChange:c,id:p,"aria-label":"Filter agents",children:s.jsx("div",{className:"flex min-h-0 flex-1 flex-col p-2",role:"menu",children:D})}):null,!r&&a&&i!=null?gn.createPortal(s.jsx("div",{ref:f,id:p,role:"menu","aria-label":"Filter agents",style:{top:i.top,left:i.left},className:"aui-popup-enter font-sans-flex fixed z-50 w-56 rounded-md border border-border bg-card-bg p-1 text-text-primary shadow-md",children:D}),vn(h.current)):null]})}var Be="flex w-full cursor-pointer select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm font-medium text-failure-bg outline-none transition-colors hover:bg-failure-bg/12 hover:text-failure-bg focus:bg-failure-bg/12 focus:text-failure-bg data-[highlighted]:bg-failure-bg/12 data-[highlighted]:text-failure-bg";function Kr({disabled:n}){const e=T("PermissionGuard"),t=Qe(),o=Le(),[r,a]=d.useState(!1),[c,l]=d.useState(),u=o||t,i=d.useCallback(h=>{const f=h==null?void 0:h.closest(".aui-theme-root");l(f instanceof HTMLElement?f:void 0)},[]),m=re({variant:"ghost",size:"icon",className:"size-7 shrink-0 text-text-secondary hover:bg-transparent hover:text-text-primary"});return u?s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button","aria-label":"Session actions",title:"Session actions","aria-haspopup":"dialog","aria-expanded":r,className:m,onClick:()=>a(!0),children:s.jsx(z,{name:"ellipsis",className:"size-3.5"})}),r?s.jsx(Ze,{open:!0,onOpenChange:a,"aria-label":"Session actions",children:s.jsx("div",{className:"flex flex-col gap-1 p-2 *:w-full",role:"menu",children:s.jsx(e,{allowed:!n,children:s.jsxs(ve.Delete,{className:Be,onClick:()=>{n||a(!1)},children:[s.jsx(z,{name:"trash",className:"size-3.5"}),"Delete"]})})})}):null]}):s.jsxs(he.Root,{sharedFocusGroup:!0,children:[s.jsx(he.Trigger,{ref:i,"aria-label":"Session actions",title:"Session actions",className:m,children:s.jsx(z,{name:"ellipsis",className:"size-3.5"})}),s.jsx(he.Content,{portalProps:{container:c},align:"end",sideOffset:4,className:"aui-popup-enter font-sans-flex z-50 min-w-[8rem] rounded-md border border-border bg-card-bg p-1 text-text-primary shadow-md *:w-full",children:s.jsx(e,{allowed:!n,children:s.jsxs(ve.Delete,{className:Be,children:[s.jsx(z,{name:"trash",className:"size-3.5"}),"Delete"]})})})]})}function $r({onThreadOpen:n,canDeleteSession:e,canDeleteResource:t}){const o=G(),r=Z(),a=T("ThreadListRow"),c=S(g=>g.threadListItem.id),l=S(g=>g.threadListItem.remoteId),u=S(g=>g.threadListItem.title),i=S(g=>g.threadListItem.lastMessageAt),m=S(g=>g.threadListItem.custom),h=S(g=>g.threads.mainThreadId),f=dn(m),p=e&&l!=null,b=l!=null&&!t(l),x=(r==null?void 0:r.libraryOpen)===!0||(r==null?void 0:r.sessionsOpen)===!0||(r==null?void 0:r.schedulesOpen)===!0;return s.jsx(ve.Root,{className:"min-w-0",children:s.jsx(a,{title:u??"New Chat",active:c===h&&!x,agentName:f,lastMessageAt:i,onSelect:()=>{n==null||n(),r==null||r.setSettingsOpen(!1),r==null||r.setLibraryOpen(!1),r==null||r.setSessionsOpen(!1),r==null||r.setSchedulesOpen(!1);const g=mn(m),M=!g&&(r==null?void 0:r.mode.status)==="active"&&!r.mode.isMutable&&(f==null?r.mode.agentName==null&&r.mode.agentId==null:r.mode.agentName===f||r.mode.agentId===f),L=fn({sessionMutable:g,shellMutable:(r==null?void 0:r.mode.status)==="active"&&r.mode.isMutable,...(r==null?void 0:r.mode.status)==="active"&&r.mode.isMutable?{shellAgentName:r.mode.agentName,shellAgentId:r.mode.agentId}:{},remoteId:l,pendingSessionId:r==null?void 0:r.pendingSessionId});if((M||L)&&l!=null){Promise.resolve(o.threads().switchToThread(c)).catch(()=>{});return}if(l!=null){r==null||r.openHistorySession({sessionId:l,isMutable:g,...f!=null?{agentName:f}:{}});return}Promise.resolve(o.threads().switchToThread(c)).catch(()=>{})},actions:p?s.jsx(Kr,{disabled:b}):void 0})})}function zr(n){const e=S(o=>o.threads.threadIds),t=S(o=>o.threads.threadItems);return d.useMemo(()=>{const o=un({threadIds:e,threadItems:t});if(n==="default")return o;const r=new Map;for(const a of t)r.set(a.id,a),a.remoteId!=null&&r.set(a.remoteId,a);return o.filter(a=>{const c=e[a];if(c===void 0)return!1;const l=r.get(c);return(l==null?void 0:l.remoteId)!=null})},[e,t,n])}function Gr({indices:n,onThreadOpen:e,canDeleteSession:t,canDeleteResource:o}){const r=S(a=>a.threads.threadIds);return s.jsx(s.Fragment,{children:n.map(a=>{const c=r[a]??String(a);return s.jsx(Ce,{index:a,archived:!1,children:s.jsx($r,{onThreadOpen:e,canDeleteSession:t,canDeleteResource:o})},c)})})}var Hr="aui_thread-list-viewport",Ur=80;function Vr({children:n,viewportRef:e,hideScrollbar:t}){var u;const o=Z(),r=S(i=>i.threadListItem.remoteId),a=(u=o==null?void 0:o.historyAgentFilter)==null?void 0:u.intent,c=(o==null?void 0:o.isLibraryEnabled)===!0&&a!=="try-agent"&&(a==="history"||o.mode.status!=="active"||o.mode.isMutable||o.pendingSessionId!=null||r!=null),l=(o==null?void 0:o.historyAgentFilter)==null?"Chat History":`Chats for ${o.historyAgentFilter.agentName}`;return s.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[s.jsxs("div",{className:"flex shrink-0 items-center gap-1 px-1 py-1",children:[s.jsx("h2",{className:"min-w-0 flex-1 truncate px-1.5 py-1 text-sm font-medium text-text-secondary",children:l}),c?s.jsx(Br,{}):null]}),s.jsx("div",{ref:e,"data-slot":Hr,className:F("flex min-h-0 flex-1 flex-col gap-0.5 overflow-y-auto",t&&"aui-scrollbar-hidden"),children:n})]})}function Wr({onThreadOpen:n,variant:e="default"}={}){const t=G(),o=qe(),r=S(w=>w.threads.isLoading),a=S(w=>w.threads.isLoadingMore),c=S(w=>w.threads.hasMore),l=S(w=>w.threads.threadIds),u=S(w=>w.threads.threadItems),i=Z(),m=T("ThreadListShell"),h=T("ThreadListNewButton"),f=T("AgentsLibraryButton"),p=T("SessionsBrowserButton"),b=T("SchedulesButton"),x=T("ThreadListRowSkeleton"),g=T("ThreadListEmptyState"),M=zr(e),L=d.useRef(null),j=d.useRef(c),P=d.useRef(t);j.current=c,P.current=t;const _=(i==null?void 0:i.isNewChatEnabled)!==!1,A=(i==null?void 0:i.mode.status)==="idle",O=e==="recent-history",D=typeof(o==null?void 0:o.deleteSession)=="function",I=d.useMemo(()=>u.flatMap(w=>w.remoteId==null?[]:[w.remoteId]),[u]),{allows:R}=ln({resourceType:"session",resourceIds:I});d.useEffect(()=>{if(A||r||a)return;const w=L.current;if(!w)return;let te=!1;const K=()=>{if(te||!j.current||w.clientHeight<=0)return;const de=w.scrollHeight-w.scrollTop-w.clientHeight;w.scrollHeight>w.clientHeight&&de>Ur||P.current.threads().loadMore()};w.addEventListener("scroll",K,{passive:!0});const U=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>K());return U?U.observe(w):window.addEventListener("resize",K),K(),()=>{te=!0,w.removeEventListener("scroll",K),U==null||U.disconnect(),U||window.removeEventListener("resize",K)}},[c,A,r,a,l.length]);const E=()=>{if(n==null||n(),i==null||i.setLibraryOpen(!1),i==null||i.setSessionsOpen(!1),i!=null&&i.isComposerEnabled){i.openDraft();return}i==null||i.setSettingsOpen(!1),i==null||i.setSchedulesOpen(!1),Promise.resolve(t.threads().switchToNewThread()).catch(()=>{})};let B;return A?B=s.jsx(g,{message:O?"No recent chats":void 0}):r?B=s.jsx(x,{}):M.length===0?B=s.jsx(g,{message:O?"No recent chats":void 0}):B=s.jsx(Pr.Root,{className:"flex min-h-0 flex-col gap-0.5",children:s.jsx(Gr,{indices:M,onThreadOpen:n,canDeleteSession:D,canDeleteResource:w=>R(w,"DELETE")})}),s.jsx(m,{header:O?null:s.jsxs("div",{className:"flex flex-col gap-1",children:[_?s.jsx(h,{onClick:E}):null,s.jsx(f,{}),s.jsx(p,{}),s.jsx(b,{})]}),children:s.jsxs(Vr,{viewportRef:L,hideScrollbar:O,children:[B,!A&&c?s.jsx("div",{className:"h-4 shrink-0","aria-hidden":!0}):null]})})}var Xr=d.lazy(()=>et(()=>import("./SettingsBuilder-6FJVZLJT-DwYljuln.js"),__vite__mapDeps([0,1,2]),import.meta.url)),Yr=d.lazy(()=>et(()=>import("./SchedulesPage-2G6F4XO6-Cl3ozS2n.js"),__vite__mapDeps([3,1,2]),import.meta.url).then(n=>({default:n.SchedulesPage}))),qr="h-5 w-5 max-w-40 shrink-0 object-contain",Qr="w-20",Ke=F(Mn,"text-sidebar-text"),$e="bg-primary-button-bg font-medium text-primary-button-text hover:bg-primary-button-hover hover:text-primary-button-text";function Zr({overlayOpen:n,mode:e}){return!n&&(e==null?void 0:e.status)==="active"&&!e.isCreateAgent}function Jr(){var f;const n=G(),e=Z(),t=T("AgentsLibraryButton"),o=T("SessionsBrowserButton"),r=T("SchedulesButton"),a=(e==null?void 0:e.isNewChatEnabled)!==!1,c=(e==null?void 0:e.settingsOpen)===!0||(e==null?void 0:e.libraryOpen)===!0||(e==null?void 0:e.sessionsOpen)===!0||(e==null?void 0:e.schedulesOpen)===!0,l=e==null?void 0:e.mode,u=!c&&(l==null?void 0:l.status)==="active"&&!l.isCreateAgent&&((f=e==null?void 0:e.historyAgentFilter)==null?void 0:f.intent)!=="try-agent",i=!c&&l!=null&&Je(l),m=()=>{if(e==null||e.setLibraryOpen(!1),e==null||e.setSessionsOpen(!1),e!=null&&e.isComposerEnabled){e.openDraft();return}e==null||e.setSettingsOpen(!1),e==null||e.setSchedulesOpen(!1),Promise.resolve(n.threads().switchToNewThread()).catch(()=>{})},h=()=>{e==null||e.setLibraryOpen(!1),e==null||e.setSessionsOpen(!1),e!=null&&e.isComposerEnabled&&e.openAgentBuilder()};return s.jsxs("nav",{className:"flex min-h-0 flex-1 flex-col items-center gap-1 p-1","aria-label":"Sidebar",children:[a?s.jsxs("button",{type:"button","aria-label":"Start new chat",title:"New chat","aria-current":u?"page":void 0,className:re({variant:"ghost",className:F(Ke,u&&$e)}),onClick:m,children:[s.jsx(z,{name:"square-pen",size:14}),s.jsx("span",{className:"text-center",children:"New Chat"})]}):null,a&&(e!=null&&e.isComposerEnabled)?s.jsxs("button",{type:"button","aria-label":"Start new agent",title:"New Agent","aria-current":i?"page":void 0,className:re({variant:"ghost",className:F(Ke,i&&$e)}),onClick:h,children:[s.jsx(z,{name:"agent-2",size:14}),s.jsx("span",{className:"text-center whitespace-nowrap",children:"Build Agent"})]}):null,s.jsx(t,{compact:!0}),s.jsx(o,{compact:!0}),s.jsx(r,{compact:!0})]})}function ze({onNavigate:n,className:e,railRef:t,...o}){const r=In(),a=yn(r),c=T("BrandLogo"),l=T("UserAvatar");return s.jsxs("aside",{ref:t,className:F(Qr,"flex min-h-0 shrink-0 flex-col border-r border-border bg-sidebar-bg",e),onClick:u=>{if(n==null)return;const i=u.target;i instanceof Element&&i.closest("button")!=null&&n()},...o,children:[s.jsx("div",{className:"flex h-14 w-full shrink-0 items-center justify-center text-text-primary",children:s.jsx(c,{variant:a.collapsedVariant,className:qr})}),s.jsx(Jr,{}),s.jsxs("footer",{className:"flex shrink-0 flex-col items-center border-border p-2",children:[s.jsx(Tn,{labeled:!0,className:"flex-col"}),s.jsx(l,{labeled:!0,className:"mt-1"})]})]})}function cs({className:n}){const e=Z(),t=Le(),o=T("AgentDetailsPage"),r=T("AgentsLibrary"),a=T("SessionsPage"),c=T("ClearChatButton"),l=T("SaveAgentButton"),u=T("SelectAgentEmptyState"),[i,m]=d.useState(!1),h=d.useRef(null),f=d.useRef(null),p=d.useRef(null),b=d.useRef(!1),x=(e==null?void 0:e.mode.status)==="idle",g=(e==null?void 0:e.settingsOpen)===!0,M=(e==null?void 0:e.libraryOpen)===!0,L=(e==null?void 0:e.sessionsOpen)===!0,j=(e==null?void 0:e.schedulesOpen)===!0,P=g||M||L||j,_=e!=null&&Je(e.mode)&&!P&&(!t||e.agentConfigOpen),A=Zr({overlayOpen:P,mode:e==null?void 0:e.mode}),O=bn();return d.useEffect(()=>{if(!i)return;const D=I=>{I.key==="Escape"&&m(!1)};return window.addEventListener("keydown",D),()=>window.removeEventListener("keydown",D)},[i]),d.useEffect(()=>{var I,R;const D=p.current;if(i){b.current=!0,D&&(D.inert=!0),(I=f.current)==null||I.focus();return}b.current&&(D&&(D.inert=!1),(R=h.current)==null||R.focus(),b.current=!1)},[i]),s.jsxs("div",{className:F("relative flex h-full min-h-0 w-full min-w-0",n),children:[s.jsx(ze,{className:"hidden md:flex"}),_?s.jsx("aside",{role:"dialog","aria-label":"Agent Config",className:"absolute inset-y-0 left-0 z-20 w-full max-w-sm border-r border-border shadow-xl md:static md:z-auto md:max-w-140 md:flex-1 md:shadow-none 2xl:max-w-150",children:s.jsx(Ln,{showClose:t})}):null,s.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col bg-primary-bg",children:[s.jsx(wn,{className:F("bg-topbar-bg",(P||x||!O)&&"md:hidden"),start:P?null:s.jsx("button",{ref:h,type:"button","aria-label":"Navigation","aria-expanded":i,className:F(re({variant:"ghost",size:"icon"}),"md:hidden"),onClick:()=>m(!0),children:s.jsx(z,{name:"bars"})}),title:P?null:s.jsx(Cn,{}),end:P?null:s.jsxs(s.Fragment,{children:[s.jsx(c,{}),s.jsx(l,{})]})}),s.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1",children:[A?s.jsx("aside",{"aria-label":"Recent chats",className:"hidden min-h-0 w-64 shrink-0 border-r border-border bg-sidebar-bg md:flex",children:s.jsx(Wr,{variant:"recent-history"})}):null,s.jsx("div",{ref:p,className:"min-h-0 min-w-0 flex-1",children:g?s.jsx(d.Suspense,{fallback:s.jsxs("div",{className:"flex h-full items-center justify-center",role:"status","aria-live":"polite","aria-busy":"true",children:[s.jsx(Oe,{size:28,className:"text-text-primary"}),s.jsx("span",{className:"sr-only",children:"Loading"})]}),children:s.jsx(Xr,{})}):L?s.jsx(a,{}):M&&(e==null?void 0:e.libraryAgentId)!=null?s.jsx(o,{agentId:e.libraryAgentId},e.libraryAgentId):M?s.jsx(r,{onSelectAgent:()=>m(!1)}):j?s.jsx(d.Suspense,{fallback:s.jsxs("div",{className:"flex h-full items-center justify-center",role:"status","aria-live":"polite","aria-busy":"true",children:[s.jsx(Oe,{size:28,className:"text-text-primary"}),s.jsx("span",{className:"sr-only",children:"Loading"})]}),children:s.jsx(Yr,{})}):x?s.jsx(u,{}):s.jsx(jn,{})})]})]}),i?s.jsxs(s.Fragment,{children:[s.jsx("button",{type:"button","aria-label":"Close navigation",className:"absolute inset-0 z-[9] cursor-pointer bg-[var(--overlay)] md:hidden",onClick:()=>m(!1)}),s.jsx(ze,{railRef:f,role:"dialog","aria-label":"Navigation",tabIndex:-1,onNavigate:()=>m(!1),className:"absolute inset-y-0 left-0 z-10 shadow-lg outline-none md:hidden"})]}):null]})}export{cs as SidebarLayout};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aL as $,D as K,r as a,aM as G,j as e,H as P,K as I,I as z,aO as Q,ah as k}from"./index-j62waCx3.js";var _=({open:s,onOpenChange:o,onImport:c,busy:v=!1,error:d})=>{const[p,g]=a.useState(""),[b,m]=a.useState(""),[u,j]=a.useState(""),[i,S]=a.useState(""),[n,x]=a.useState(""),N=()=>{g(""),m(""),j(""),S(""),x("")},h=()=>{N(),o(!1)},R=async l=>{if(l.preventDefault(),!(!p.trim()||!b.trim()||!u.trim()||!i.trim()||!n.trim()||v))try{await c({name:p.trim(),description:b.trim(),repoURL:u.trim(),path:i.trim(),ref:n.trim()}),h()}catch{}},L=!!(p.trim()&&b.trim()&&u.trim()&&i.trim()&&n.trim())&&!v;return e.jsx(Q,{open:s,onOpenChange:l=>{l||h()},title:"Import from GitHub",description:"Import a skill from a SKILL.md file in a GitHub repository.",headerIcon:e.jsx("span",{className:"flex size-11 shrink-0 items-center justify-center rounded-lg border border-border bg-secondary-bg text-text-primary",children:e.jsx(z,{name:"github",className:"size-5"})}),contentSized:!0,className:"md:max-w-2xl",children:e.jsx("form",{onSubmit:l=>void R(l),children:e.jsxs("div",{className:"space-y-5 px-5 py-5 md:px-6",children:[e.jsxs("div",{children:[e.jsx("label",{htmlFor:"skill-name",className:"mb-2 block text-sm font-semibold text-text-primary",children:"Name"}),e.jsx("input",{id:"skill-name",value:p,onChange:l=>{g(l.target.value)},placeholder:"release-notes",autoFocus:!0,required:!0,className:k("h-11")})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"skill-description",className:"mb-2 block text-sm font-semibold text-text-primary",children:"Description"}),e.jsx("textarea",{id:"skill-description",value:b,onChange:l=>{m(l.target.value)},placeholder:"Generate release notes from merged pull requests",required:!0,rows:3,className:k("resize-y py-2.5")})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"skill-repo-url",className:"mb-2 block text-sm font-semibold text-text-primary",children:"Repository URL"}),e.jsx("input",{id:"skill-repo-url",type:"url",value:u,onChange:l=>{j(l.target.value)},placeholder:"https://github.com/org/repo",required:!0,className:k("h-11")})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"skill-path",className:"mb-2 block text-sm font-semibold text-text-primary",children:"Folder containing the SKILL.md"}),e.jsx("input",{id:"skill-path",value:i,onChange:l=>{S(l.target.value)},placeholder:"skills/release-notes",required:!0,className:k("h-11")})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"skill-ref",className:"mb-2 block text-sm font-semibold text-text-primary",children:"Branch"}),e.jsx("input",{id:"skill-ref",value:n,onChange:l=>{x(l.target.value)},placeholder:"main",required:!0,className:k("h-11")})]}),e.jsxs("div",{className:"space-y-3",children:[d?e.jsx("p",{className:"text-failure-bg text-sm",children:d}):null,e.jsx(I.Primary,{type:"submit",disabled:!L,className:"w-full",children:"Import"})]})]})})})},T=_,U=(s,o,c)=>!s||o.toLowerCase().includes(s)||c.toLowerCase().includes(s),A=s=>"catalogId"in s;function J(s){return typeof s=="object"&&s!==null&&Reflect.get(s,"statusCode")===424}var V=()=>{const{skillCatalog:s}=$(),o=K(),[c,v]=a.useState(""),[d,p]=a.useState([]),[g,b]=a.useState([]),[m,u]=a.useState(!0),[j,i]=a.useState(null),[S,n]=a.useState(null),[x,N]=a.useState(!1),[h,R]=a.useState(!1),[L,l]=a.useState(!1),E=a.useCallback(async()=>{if(s){u(!0),i(null);try{const[t,r]=await Promise.all([s.listSkills(),s.getSkillCatalog()]);p(t),b(r)}catch(t){i(G(t,"Failed to load skills"))}finally{u(!1)}}},[s]);a.useEffect(()=>{E()},[E]);const y=c.trim().toLowerCase(),w=a.useMemo(()=>d.filter(t=>U(y,t.name,t.description)),[d,y]),C=a.useMemo(()=>{const t=new Set(d.flatMap(r=>A(r)?[r.catalogId]:[]));return g.filter(r=>!t.has(r.id)&&U(y,r.name,r.description))},[g,d,y]),F=async(t,r=i)=>{N(!0),i(null);try{await t(),await E()}catch(f){throw J(f)&&R(!0),r(G(f,"Request failed")),f}finally{N(!1)}};if(!s)return e.jsx("p",{className:"text-sm text-text-secondary",children:"Skills catalog is not available."});const q=t=>{F(async()=>{await s.createSkill({catalogId:t.id,name:t.name,description:t.description,repoURL:t.repoURL,path:t.path,ref:t.ref})}).catch(()=>{})},B=t=>{const r=s.deleteSkill;r&&F(async()=>{await r({id:t.id})}).catch(()=>{})},O=async t=>{n(null),await F(async()=>{await s.createSkill(t)},n),setTimeout(()=>{o==null||o.showSuccess({title:`${t.name} imported`})},0)},M=({key:t,name:r,description:f,action:H})=>e.jsxs("article",{className:"flex min-h-16 items-center gap-3 border-b border-border p-3 last:border-b-0",children:[e.jsx("span",{className:"flex size-9 shrink-0 items-center justify-center rounded-lg border border-border bg-secondary-bg","aria-hidden":!0,children:e.jsx(z,{name:"lightbulb",className:"size-4.5 text-text-primary"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h5",{className:"truncate text-sm font-medium text-text-primary",children:r}),f?e.jsx("p",{className:"mt-0.5 truncate text-sm text-text-secondary",children:f}):null]}),H]},t),D=w.length>0||C.length>0;return e.jsxs(e.Fragment,{children:[e.jsx("h3",{className:"text-xl font-semibold tracking-tight text-text-primary",children:"Skills"}),e.jsx("p",{className:"mt-1 text-sm text-text-secondary",children:"Use built-in skills or import custom skills from GitHub."}),j?e.jsx("p",{className:"mt-3 rounded-md border border-failure-bg/30 bg-failure-bg/10 px-3 py-2 text-sm text-failure-bg",children:j}):null,e.jsxs("div",{className:"mt-4 flex min-h-0 flex-1 flex-col gap-3",children:[e.jsxs("div",{className:"flex flex-col gap-2 sm:flex-row",children:[e.jsx("div",{className:"min-w-0 flex-1",children:e.jsx(P,{query:c,setQuery:v,placeholder:"Search skills"})}),e.jsxs(I.Secondary,{type:"button",className:"shrink-0",disabled:x||h,onClick:()=>{n(null),l(!0)},children:[e.jsx(z,{name:"github",className:"size-4"}),"Import from GitHub"]})]}),e.jsxs("div",{className:"flex flex-1 flex-col gap-5 overflow-y-auto pb-1",children:[m?e.jsx("p",{className:"py-8 text-center text-sm text-text-secondary",children:"Loading…"}):null,!m&&w.length>0?e.jsxs("section",{"aria-labelledby":"enabled-skills-heading",children:[e.jsxs("h4",{id:"enabled-skills-heading",className:"mb-2 text-[0.8125rem] font-semibold uppercase text-text-secondary",children:["Enabled · ",w.length]}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-border bg-card-bg",children:w.map(t=>M({key:t.id,name:t.name,description:t.description,action:s.deleteSkill?e.jsx(I.Secondary,{size:"small",type:"button",disabled:x||h,"aria-label":`Remove ${t.name}`,onClick:()=>{B(t)},children:"Remove"}):null}))})]}):null,!m&&C.length>0?e.jsxs("section",{"aria-labelledby":"available-skills-heading",children:[e.jsxs("h4",{id:"available-skills-heading",className:"mb-2 text-[0.8125rem] font-semibold uppercase text-text-secondary",children:["Available · ",C.length]}),e.jsx("div",{className:"overflow-hidden rounded-xl border border-border bg-card-bg",children:C.map(t=>M({key:t.id,name:t.name,description:t.description,action:e.jsx(I.Secondary,{size:"small",type:"button",disabled:x||h,"aria-label":`Enable ${t.name}`,onClick:()=>{q(t)},children:"Enable"})}))})]}):null,!m&&!D?e.jsx("div",{className:"flex flex-1 items-center justify-center rounded-xl border border-dashed border-border p-8 text-center text-sm text-text-secondary",children:y?`No skills match “${c.trim()}”.`:"No skills yet."}):null]})]}),e.jsx(T,{open:L,onOpenChange:t=>{l(t),t||n(null)},onImport:O,busy:x||h,error:S})]})},X=V;export{X as default};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,j as o,T as a}from"./index-j62waCx3.js";import{r as m}from"./chunk-2QTH6JHX-CdrIErUL.js";import{B as i}from"./chunk-62JRHF6Z-CbobtIm1.js";function p({routes:e,...s}){const r=t.useMemo(()=>m(e),[e]);return o.jsx(i,{basename:r.basename||void 0,children:o.jsx(a,{...s,resolvedRoutes:r})})}export{p as TrueForgeUIWithRouter};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S as m}from"./chunk-2UBSLCKB-CuMNlF4h.js";import{c as x,f,r,j as e,C as p,I as b,d as h,e as v}from"./index-j62waCx3.js";import"./chunk-PX6MNNN3-BRyxcKe_.js";function j({className:u}){const d=x("BrandLogo"),{open:a,setOpen:n}=f(),l=r.useRef(null),s=r.useRef(null),i=r.useRef(!1);return r.useEffect(()=>{if(!a)return;const t=o=>{var c;o.key==="Escape"&&!((c=s.current)!=null&&c.querySelector("dialog[open]"))&&n(!1)};return window.addEventListener("keydown",t),()=>window.removeEventListener("keydown",t)},[a,n]),r.useEffect(()=>{var t,o;if(a){i.current=!0,(t=s.current)==null||t.focus();return}i.current&&((o=l.current)==null||o.focus(),i.current=!1)},[a]),e.jsxs("div",{className:v("pointer-events-none relative h-full min-h-0 w-full",u),children:[a?e.jsx("div",{ref:s,"data-aui-compact-layout":!0,className:"pointer-events-auto absolute right-[max(1.25rem,env(safe-area-inset-right,0px))] bottom-[calc(5.25rem+env(safe-area-inset-bottom,0px))] z-[19] flex h-[min(560px,calc(100%-6.5rem-env(safe-area-inset-bottom,0px)))] max-h-[calc(100%-6.5rem)] w-[min(380px,calc(100%-2.5rem))] flex-col overflow-hidden rounded-xl border border-border bg-primary-bg shadow-[0_16px_48px_color-mix(in_oklab,var(--shadow-color)_14%,transparent)] outline-none",role:"dialog","aria-modal":!0,"aria-label":"Chat",tabIndex:-1,children:e.jsx(p,{children:e.jsx(m,{threadHeaderEnd:e.jsx("button",{type:"button","aria-label":"Close",title:"Close",className:h({variant:"ghost",size:"icon"}),onClick:()=>n(!1),children:e.jsx(b,{name:"xmark"})})})})}):null,e.jsx("button",{ref:l,type:"button",className:"pointer-events-auto absolute right-[max(1.25rem,env(safe-area-inset-right,0px))] bottom-[max(1.25rem,env(safe-area-inset-bottom,0px))] z-20 flex size-14 cursor-pointer items-center justify-center rounded-full text-sm font-medium shadow-[0_8px_24px_color-mix(in_oklab,var(--primary-button-bg)_45%,transparent)]",style:{backgroundColor:"var(--primary-button-bg)",color:"var(--primary-button-text)"},"aria-expanded":a,"aria-label":a?"Close chat":"Open chat",onClick:()=>n(t=>!t),children:a?e.jsx("span",{"aria-hidden":!0,className:"text-xl leading-none",children:"×"}):e.jsx(d,{variant:"icon",className:"size-6"})})]})}export{j as WidgetLayout};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{v as h,w as u,x as g,y as m,z as w}from"./index-j62waCx3.js";var l={root:"/",settings:"/settings",library:"/library",libraryAgent:"/library/:agentId",schedules:"/schedules",buildAgent:"/build-agent",agent:"/agents/:agentName",session:"/sessions/:sessionId",sessionsBrowser:"/sessions"};function f(n){const e=n.trim(),s=e.startsWith("/")?e:`/${e}`;return s.length>1&&s.endsWith("/")?s.slice(0,-1):s}function a(n,e){return n===!1?null:f(n??e)}function R(n){const e=n==null?void 0:n.paths;return{basename:(n==null?void 0:n.basename)??"",root:f((e==null?void 0:e.root)??l.root),settings:a(e==null?void 0:e.settings,l.settings),library:a(e==null?void 0:e.library,l.library),libraryAgent:a(e==null?void 0:e.libraryAgent,l.libraryAgent),schedules:a(e==null?void 0:e.schedules,l.schedules),buildAgent:a(e==null?void 0:e.buildAgent,l.buildAgent),agent:a(e==null?void 0:e.agent,l.agent),session:a(e==null?void 0:e.session,l.session),sessionsBrowser:a(e==null?void 0:e.sessionsBrowser,l.sessionsBrowser)}}function y(n){return n.split("/").filter(e=>e.length>0)}function c(n,e){return"/"+y(n).map(s=>s.startsWith(":")?encodeURIComponent(e):s).join("/")}function S(n,e){switch(n.type){case"root":return e.root;case"settings":return e.settings;case"library":return e.library;case"libraryAgent":return e.libraryAgent==null?null:c(e.libraryAgent,n.agentId);case"schedules":return e.schedules;case"buildAgent":return e.buildAgent;case"agent":return e.agent==null?null:c(e.agent,n.agentName);case"session":return e.session==null?null:c(e.session,n.sessionId);case"sessionsBrowser":return e.sessionsBrowser}}function v({sessionId:n,routes:e,href:s=typeof window>"u"?"http://localhost/":window.location.href}){const i=S({type:"session",sessionId:n},e);if(i==null)return null;const t=new URL(s),r=e.basename.endsWith("/")?e.basename.slice(0,-1):e.basename;return t.pathname=`${r}${i}`||"/",t.search=A({type:"session"},t.search),t.hash="",t.toString()}function A(n,e){if(n.type==="settings")return e;const s=new URLSearchParams(e.startsWith("?")?e.slice(1):e);if(n.type==="sessionsBrowser")u(s,{tab:null}),g(s);else if(n.type==="libraryAgent"){const t=h(e),r=m(e);u(s,{view:null,timeRange:null,...t.sessionId!=null&&t.agentId!==n.agentId?{sessionId:null,agentId:null}:{}}),g(s),t.tab==="schedules"&&w(s,{status:r.status,q:r.q,isNew:r.isNew})}else n.type==="schedules"?u(s,{sessionId:null,agentId:null,tab:null,view:null,timeRange:null}):(u(s,{sessionId:null,agentId:null,tab:null,view:null,timeRange:null}),g(s));const i=s.toString();return i.length>0?`?${i}`:""}function p(n){try{return decodeURIComponent(n)}catch{return null}}function d(n,e){const s=y(n);if(s.length!==e.length)return null;let i=null;for(const[t,r]of s.entries()){const o=e[t];if(o===void 0)return null;if(r.startsWith(":")){const b=p(o);if(b==null)return null;i=b}else if(r!==o)return null}return i}function I(n,e){const s=f(n),i=y(s);if(e.settings!=null&&s===e.settings)return{type:"settings"};if(e.library!=null&&s===e.library)return{type:"library"};if(e.sessionsBrowser!=null&&s===e.sessionsBrowser)return{type:"sessionsBrowser"};if(e.libraryAgent!=null){const t=d(e.libraryAgent,i);if(t!=null)return{type:"libraryAgent",agentId:t}}if(e.schedules!=null&&s===e.schedules)return{type:"schedules"};if(e.buildAgent!=null&&s===e.buildAgent)return{type:"buildAgent"};if(e.agent!=null){const t=d(e.agent,i);if(t!=null)return{type:"agent",agentName:t}}if(e.session!=null){const t=d(e.session,i);if(t!=null)return{type:"session",sessionId:t}}return s===e.root?{type:"root"}:null}function N({pathname:n,search:e,routes:s}){const i=I(n,s);if(i==null||i.type!=="root")return i;const{agentId:t}=h(e);return t!=null?{type:"libraryAgent",agentId:t}:i}function P(n,e){return n.type!==e.type?!1:n.type==="agent"&&e.type==="agent"?n.agentName===e.agentName:n.type==="libraryAgent"&&e.type==="libraryAgent"?n.agentId===e.agentId:n.type==="session"&&e.type==="session"?n.sessionId===e.sessionId:!0}export{v as a,S as b,N as m,P as p,R as r,A as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./SettingsBuilder-6FJVZLJT-DwYljuln.js","./index-j62waCx3.js","./index-B01pXqvC.css","./SchedulesPage-2G6F4XO6-Cl3ozS2n.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{u as O,a as w,c as t,r as a,j as s,S as x,P,I as c,d as l,e as E,_ as m}from"./index-j62waCx3.js";import{N as _,T as L,S as I,A as T}from"./chunk-PX6MNNN3-BRyxcKe_.js";var k=a.lazy(()=>m(()=>import("./SettingsBuilder-6FJVZLJT-DwYljuln.js"),__vite__mapDeps([0,1,2]),import.meta.url)),z=a.lazy(()=>m(()=>import("./SchedulesPage-2G6F4XO6-Cl3ozS2n.js"),__vite__mapDeps([3,1,2]),import.meta.url).then(n=>({default:n.SchedulesPage})));function F({className:n,threadHeaderEnd:p}){const r=O(),e=w(),j=t("ClearChatButton"),f=t("AgentDetailsPage"),g=t("AgentsLibrary"),b=t("SessionsPage"),h=t("SaveAgentButton"),v=t("SelectAgentEmptyState"),N=t("UserAvatar"),i=(e==null?void 0:e.mode.status)==="idle",y=(e==null?void 0:e.settingsOpen)===!0,o=(e==null?void 0:e.libraryOpen)===!0,A=(e==null?void 0:e.sessionsOpen)===!0,d=(e==null?void 0:e.schedulesOpen)===!0,u=(e==null?void 0:e.isNewChatEnabled)!==!1;a.useEffect(()=>{i||Promise.resolve(r.threads().switchToNewThread()).catch(()=>{})},[r,i]);const S=()=>{if(e==null||e.setLibraryOpen(!1),e==null||e.setSessionsOpen(!1),e!=null&&e.isComposerEnabled){e.openDraft();return}e==null||e.setSettingsOpen(!1),e==null||e.setSchedulesOpen(!1),Promise.resolve(r.threads().switchToNewThread()).catch(()=>{})},C=()=>{e==null||e.setLibraryOpen(!1),e==null||e.setSessionsOpen(!1),e!=null&&e.isComposerEnabled&&e.openAgentBuilder()};return s.jsxs("div",{className:E("relative flex h-full min-h-0 flex-col",n),children:[y?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(a.Suspense,{fallback:s.jsxs("div",{className:"flex h-full items-center justify-center",role:"status","aria-live":"polite","aria-busy":"true",children:[s.jsx(x,{size:28,className:"text-text-primary"}),s.jsx("span",{className:"sr-only",children:"Loading"})]}),children:s.jsx(k,{})})}):A?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(b,{})}):o&&(e==null?void 0:e.libraryAgentId)!=null?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(f,{agentId:e.libraryAgentId},e.libraryAgentId)}):o?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(g,{})}):d?s.jsx("div",{className:"min-h-0 flex-1",children:s.jsx(a.Suspense,{fallback:s.jsxs("div",{className:"flex h-full items-center justify-center",role:"status","aria-live":"polite","aria-busy":"true",children:[s.jsx(x,{size:28,className:"text-text-primary"}),s.jsx("span",{className:"sr-only",children:"Loading"})]}),children:s.jsx(z,{})})}):s.jsxs(s.Fragment,{children:[s.jsx(P,{start:s.jsxs(s.Fragment,{children:[u?s.jsx("button",{type:"button","aria-label":"New Chat",title:"New Chat",className:l({variant:"ghost",size:"icon"}),onClick:S,children:s.jsx(c,{name:"square-pen"})}):null,u&&(e!=null&&e.isComposerEnabled)?s.jsx("button",{type:"button","aria-label":"New Agent",title:"New Agent",className:l({variant:"ghost",size:"icon"}),onClick:C,children:s.jsx(c,{name:"agent-2"})}):null]}),title:s.jsx(_,{}),end:s.jsxs(s.Fragment,{children:[s.jsx(j,{}),s.jsx(h,{}),p]})}),s.jsx("div",{className:"min-h-0 flex-1",children:i?s.jsx(v,{}):s.jsx(L,{})})]}),s.jsxs("footer",{className:"flex shrink-0 items-center justify-between border-t border-border px-2 py-1.5",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[o||d?s.jsxs("button",{type:"button",className:l({variant:"ghost",size:"small"}),onClick:()=>{e==null||e.setLibraryOpen(!1),e==null||e.setSchedulesOpen(!1)},children:[s.jsx(c,{name:"arrow-left"}),"Back to chat"]}):null,s.jsx(N,{})]}),s.jsx(I,{},"shell-actions")]}),e!=null&&e.agentConfigOpen?s.jsx("aside",{role:"dialog","aria-label":"Agent Config",className:"absolute inset-0 z-20 border-l border-border shadow-xl",children:s.jsx(T,{showClose:!0})}):null]})}export{F as S};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{r as i}from"./index-j62waCx3.js";/**
|
|
2
|
+
* react-router v7.18.2
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Remix Software Inc.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
8
|
+
*
|
|
9
|
+
* @license MIT
|
|
10
|
+
*/var te=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,ye=/^[\\/]{2}/;function He(e,t){return t+e.replace(/\\/g,"/")}var fe="popstate";function he(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function We(e={}){function t(a,n){var c;let o=(c=n.state)==null?void 0:c.masked,{pathname:l,search:u,hash:s}=o||a.location;return ee("",{pathname:l,search:u,hash:s},n.state&&n.state.usr||null,n.state&&n.state.key||"default",o?{pathname:a.location.pathname,search:a.location.search,hash:a.location.hash}:void 0)}function r(a,n){return typeof n=="string"?n:_(n)}return Ve(t,r,null,e)}function E(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function L(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function je(){return Math.random().toString(36).substring(2,10)}function de(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function ee(e,t,r=null,a,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?B(t):t,state:r,key:t&&t.key||a||je(),mask:n}}function _({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function B(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function Ve(e,t,r,a={}){let{window:n=document.defaultView,v5Compat:o=!1}=a,l=n.history,u="POP",s=null,c=f();c==null&&(c=0,l.replaceState({...l.state,idx:c},""));function f(){return(l.state||{idx:null}).idx}function h(){u="POP";let d=f(),y=d==null?null:d-c;c=d,s&&s({action:u,location:p.location,delta:y})}function m(d,y){u="PUSH";let R=he(d)?d:ee(p.location,d,y);c=f()+1;let w=de(R,c),C=p.createHref(R.mask||R);try{l.pushState(w,"",C)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;n.location.assign(C)}o&&s&&s({action:u,location:p.location,delta:1})}function g(d,y){u="REPLACE";let R=he(d)?d:ee(p.location,d,y);c=f();let w=de(R,c),C=p.createHref(R.mask||R);l.replaceState(w,"",C),o&&s&&s({action:u,location:p.location,delta:0})}function v(d){return ze(n,d)}let p={get action(){return u},get location(){return e(n,l)},listen(d){if(s)throw new Error("A history only accepts one active listener");return n.addEventListener(fe,h),s=d,()=>{n.removeEventListener(fe,h),s=null}},createHref(d){return t(n,d)},createURL:v,encodeLocation(d){let y=v(d);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:m,replace:g,go(d){return l.go(d)}};return p}function ze(e,t,r=!1){let a="http://localhost";e&&(a=e.location.origin!=="null"?e.location.origin:e.location.href),E(a,"No window.location.(origin|href) available to create URL");let n=typeof t=="string"?t:_(t);return n=n.replace(/ $/,"%20"),!r&&ye.test(n)&&(n=a+n),new URL(n,a)}function Re(e,t,r="/"){return Je(e,t,r,!1)}function Je(e,t,r,a,n){let o=typeof t=="string"?B(t):t,l=k(o.pathname||"/",r);if(l==null)return null;let u=Ke(e),s=null,c=at(l);for(let f=0;s==null&&f<u.length;++f)s=nt(u[f],c,a);return s}function Ke(e){let t=we(e);return qe(t),t}function we(e,t=[],r=[],a="",n=!1){let o=(l,u,s=n,c)=>{let f={relativePath:c===void 0?l.path||"":c,caseSensitive:l.caseSensitive===!0,childrenIndex:u,route:l};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(a)&&s)return;E(f.relativePath.startsWith(a),`Absolute route path "${f.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(a.length)}let h=b([a,f.relativePath]),m=r.concat(f);l.children&&l.children.length>0&&(E(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),we(l.children,t,m,h,s)),!(l.path==null&&!l.index)&&t.push({path:h,score:tt(h,l.index),routesMeta:m.map((g,v)=>{let[p,d]=Ce(g.relativePath,g.caseSensitive,v===m.length-1);return{...g,matcher:p,compiledParams:d}})})};return e.forEach((l,u)=>{var s;if(l.path===""||!((s=l.path)!=null&&s.includes("?")))o(l,u);else for(let c of Ee(l.path))o(l,u,!0,c)}),t}function Ee(e){let t=e.split("/");if(t.length===0)return[];let[r,...a]=t,n=r.endsWith("?"),o=r.replace(/\?$/,"");if(a.length===0)return n?[o,""]:[o];let l=Ee(a.join("/")),u=[];return u.push(...l.map(s=>s===""?o:[o,s].join("/"))),n&&u.push(...l),u.map(s=>e.startsWith("/")&&s===""?"/":s)}function qe(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:rt(t.routesMeta.map(a=>a.childrenIndex),r.routesMeta.map(a=>a.childrenIndex)))}var Ye=/^:[\w-]+$/,Ge=3,Xe=2,Qe=1,Ze=10,et=-2,me=e=>e==="*";function tt(e,t){let r=e.split("/"),a=r.length;return r.some(me)&&(a+=et),t&&(a+=Xe),r.filter(n=>!me(n)).reduce((n,o)=>n+(Ye.test(o)?Ge:o===""?Qe:Ze),a)}function rt(e,t){return e.length===t.length&&e.slice(0,-1).every((a,n)=>a===t[n])?e[e.length-1]-t[t.length-1]:0}function nt(e,t,r=!1){let{routesMeta:a}=e,n={},o="/",l=[];for(let u=0;u<a.length;++u){let s=a[u],c=u===a.length-1,f=o==="/"?t:t.slice(o.length)||"/",h={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},m=s.matcher&&s.compiledParams?xe(h,f,s.matcher,s.compiledParams):V(h,f),g=s.route;if(!m&&c&&r&&!a[a.length-1].route.index&&(m=V({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},f)),!m)return null;Object.assign(n,m.params),l.push({params:n,pathname:b([o,m.pathname]),pathnameBase:it(b([o,m.pathnameBase])),route:g}),m.pathnameBase!=="/"&&(o=b([o,m.pathnameBase]))}return l}function V(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,a]=Ce(e.path,e.caseSensitive,e.end);return xe(e,t,r,a)}function xe(e,t,r,a){let n=t.match(r);if(!n)return null;let o=n[0],l=o.replace(/(.)\/+$/,"$1"),u=n.slice(1);return{params:a.reduce((c,{paramName:f,isOptional:h},m)=>{if(f==="*"){let v=u[m]||"";l=o.slice(0,o.length-v.length).replace(/(.)\/+$/,"$1")}const g=u[m];return h&&!g?c[f]=void 0:c[f]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:l,pattern:e}}function Ce(e,t=!1,r=!0){L(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let a=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,s,c,f)=>{if(a.push({paramName:u,isOptional:s!=null}),s){let h=f.charAt(c+l.length);return h&&h!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),n+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?n+="\\/*$":e!==""&&e!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),a]}function at(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return L(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function k(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,a=e.charAt(r);return a&&a!=="/"?null:e.slice(r)||"/"}function ot(e,t="/"){let{pathname:r,search:a="",hash:n=""}=typeof e=="string"?B(e):e,o;return r?(r=be(r),r.startsWith("/")?o=pe(r.substring(1),"/"):o=pe(r,t)):o=t,{pathname:o,search:ut(a),hash:st(n)}}function pe(e,t){let r=z(t).split("/");return e.split("/").forEach(n=>{n===".."?r.length>1&&r.pop():n!=="."&&r.push(n)}),r.length>1?r.join("/"):"/"}function X(e,t,r,a){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(a)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function lt(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Se(e){let t=lt(e);return t.map((r,a)=>a===t.length-1?r.pathname:r.pathnameBase)}function re(e,t,r,a=!1){let n;typeof e=="string"?n=B(e):(n={...e},E(!n.pathname||!n.pathname.includes("?"),X("?","pathname","search",n)),E(!n.pathname||!n.pathname.includes("#"),X("#","pathname","hash",n)),E(!n.search||!n.search.includes("#"),X("#","search","hash",n)));let o=e===""||n.pathname==="",l=o?"/":n.pathname,u;if(l==null)u=r;else{let h=t.length-1;if(!a&&l.startsWith("..")){let m=l.split("/");for(;m[0]==="..";)m.shift(),h-=1;n.pathname=m.join("/")}u=h>=0?t[h]:"/"}let s=ot(n,u),c=l&&l!=="/"&&l.endsWith("/"),f=(o||l===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(c||f)&&(s.pathname+="/"),s}var be=e=>e.replace(/[\\/]{2,}/g,"/"),b=e=>be(e.join("/")),z=e=>e.replace(/\/+$/,""),it=e=>z(e).replace(/^\/*/,"/"),ut=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,st=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,ct=class{constructor(e,t,r,a=!1){this.status=e,this.statusText=t||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function ft(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function ht(e){let t=e.map(r=>r.route.path).filter(Boolean);return b(t)||"/"}var Pe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Le(e,t){let r=e;if(typeof r!="string"||!te.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let a=r,n=!1;if(Pe)try{let o=new URL(window.location.href),l=ye.test(r)?new URL(He(r,o.protocol)):new URL(r),u=k(l.pathname,t);l.origin===o.origin&&u!=null?r=u+l.search+l.hash:n=!0}catch{L(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:a,isExternal:n,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ke=["POST","PUT","PATCH","DELETE"];new Set(ke);var dt=["GET",...ke];new Set(dt);var mt=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function pt(e){try{return mt.includes(new URL(e).protocol)}catch{return!1}}var N=i.createContext(null);N.displayName="DataRouter";var J=i.createContext(null);J.displayName="DataRouterState";var $e=i.createContext(!1);function gt(){return i.useContext($e)}var Te=i.createContext({isTransitioning:!1});Te.displayName="ViewTransition";var vt=i.createContext(new Map);vt.displayName="Fetchers";var yt=i.createContext(null);yt.displayName="Await";var S=i.createContext(null);S.displayName="Navigation";var K=i.createContext(null);K.displayName="Location";var $=i.createContext({outlet:null,matches:[],isDataRoute:!1});$.displayName="Route";var ne=i.createContext(null);ne.displayName="RouteError";var De="REACT_ROUTER_ERROR",Rt="REDIRECT",wt="ROUTE_ERROR_RESPONSE";function Et(e){if(e.startsWith(`${De}:${Rt}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function xt(e){if(e.startsWith(`${De}:${wt}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new ct(t.status,t.statusText,t.data)}catch{}}function Ct(e,{relative:t}={}){E(O(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=i.useContext(S),{hash:n,pathname:o,search:l}=U(e,{relative:t}),u=o;return r!=="/"&&(u=o==="/"?r:b([r,o])),a.createHref({pathname:u,search:l,hash:n})}function O(){return i.useContext(K)!=null}function T(){return E(O(),"useLocation() may be used only in the context of a <Router> component."),i.useContext(K).location}var Ie="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Fe(e){i.useContext(S).static||i.useLayoutEffect(e)}function St(){let{isDataRoute:e}=i.useContext($);return e?_t():bt()}function bt(){E(O(),"useNavigate() may be used only in the context of a <Router> component.");let e=i.useContext(N),{basename:t,navigator:r}=i.useContext(S),{matches:a}=i.useContext($),{pathname:n}=T(),o=JSON.stringify(Se(a)),l=i.useRef(!1);return Fe(()=>{l.current=!0}),i.useCallback((s,c={})=>{if(L(l.current,Ie),!l.current)return;if(typeof s=="number"){r.go(s);return}let f=re(s,JSON.parse(o),n,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:b([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,o,n,e])}i.createContext(null);function U(e,{relative:t}={}){let{matches:r}=i.useContext($),{pathname:a}=T(),n=JSON.stringify(Se(r));return i.useMemo(()=>re(e,JSON.parse(n),a,t==="path"),[e,n,a,t])}function Pt(e,t,r){E(O(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=i.useContext(S),{matches:n}=i.useContext($),o=n[n.length-1],l=o?o.params:{},u=o?o.pathname:"/",s=o?o.pathnameBase:"/",c=o&&o.route;{let d=c&&c.path||"";Me(u,!c||d.endsWith("*")||d.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${d}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
11
|
+
|
|
12
|
+
Please change the parent <Route path="${d}"> to <Route path="${d==="/"?"*":`${d}/*`}">.`)}let f=T(),h;h=f;let m=h.pathname||"/",g=m;if(s!=="/"){let d=s.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(d.length).join("/")}let v=r&&r.state.matches.length?r.state.matches.map(d=>Object.assign(d,{route:r.manifest[d.route.id]||d.route})):Re(e,{pathname:g});return L(c||v!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),L(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),Dt(v&&v.map(d=>Object.assign({},d,{params:Object.assign({},l,d.params),pathname:b([s,a.encodeLocation?a.encodeLocation(d.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:d.pathname]),pathnameBase:d.pathnameBase==="/"?s:b([s,a.encodeLocation?a.encodeLocation(d.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:d.pathnameBase])})),n,r)}function Lt(){let e=At(),t=ft(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a="rgba(200,200,200, 0.5)",n={padding:"0.5rem",backgroundColor:a},o={padding:"2px 4px",backgroundColor:a},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=i.createElement(i.Fragment,null,i.createElement("p",null,"💿 Hey developer 👋"),i.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",i.createElement("code",{style:o},"ErrorBoundary")," or"," ",i.createElement("code",{style:o},"errorElement")," prop on your route.")),i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),r?i.createElement("pre",{style:n},r):null,l)}var kt=i.createElement(Lt,null),Ne=class extends i.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=xt(e.digest);r&&(e=r)}let t=e!==void 0?i.createElement($.Provider,{value:this.props.routeContext},i.createElement(ne.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?i.createElement($t,{error:e},t):t}};Ne.contextType=$e;var Q=new WeakMap;function $t({children:e,error:t}){let{basename:r}=i.useContext(S);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let a=Et(t.digest);if(a){let n=Q.get(t);if(n)throw n;let o=Le(a.location,r),l=o.absoluteURL||o.to;if(pt(l))throw new Error("Invalid redirect location");if(Pe&&!Q.get(t))if(o.isExternal||a.reloadDocument)window.location.href=l;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:a.replace}));throw Q.set(t,u),u}return i.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l}`})}}return e}function Tt({routeContext:e,match:t,children:r}){let a=i.useContext(N);return a&&a.static&&a.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=t.route.id),i.createElement($.Provider,{value:e},r)}function Dt(e,t=[],r){let a=r==null?void 0:r.state;if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let n=e,o=a==null?void 0:a.errors;if(o!=null){let f=n.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id])!==void 0);E(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),n=n.slice(0,Math.min(n.length,f+1))}let l=!1,u=-1;if(r&&a){l=a.renderFallback;for(let f=0;f<n.length;f++){let h=n[f];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(u=f),h.route.id){let{loaderData:m,errors:g}=a,v=h.route.loader&&!m.hasOwnProperty(h.route.id)&&(!g||g[h.route.id]===void 0);if(h.route.lazy||v){r.isStatic&&(l=!0),u>=0?n=n.slice(0,u+1):n=[n[0]];break}}}}let s=r==null?void 0:r.onError,c=a&&s?(f,h)=>{var m,g;s(f,{location:a.location,params:((g=(m=a.matches)==null?void 0:m[0])==null?void 0:g.params)??{},pattern:ht(a.matches),errorInfo:h})}:void 0;return n.reduceRight((f,h,m)=>{let g,v=!1,p=null,d=null;a&&(g=o&&h.route.id?o[h.route.id]:void 0,p=h.route.errorElement||kt,l&&(u<0&&m===0?(Me("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,d=null):u===m&&(v=!0,d=h.route.hydrateFallbackElement||null)));let y=t.concat(n.slice(0,m+1)),R=()=>{let w;return g?w=p:v?w=d:h.route.Component?w=i.createElement(h.route.Component,null):h.route.element?w=h.route.element:w=f,i.createElement(Tt,{match:h,routeContext:{outlet:f,matches:y,isDataRoute:a!=null},children:w})};return a&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?i.createElement(Ne,{location:a.location,revalidation:a.revalidation,component:p,error:g,children:R(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:c}):R()},null)}function ae(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function It(e){let t=i.useContext(N);return E(t,ae(e)),t}function Ft(e){let t=i.useContext(J);return E(t,ae(e)),t}function Nt(e){let t=i.useContext($);return E(t,ae(e)),t}function oe(e){let t=Nt(e),r=t.matches[t.matches.length-1];return E(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Mt(){return oe("useRouteId")}function At(){var a;let e=i.useContext(ne),t=Ft("useRouteError"),r=oe("useRouteError");return e!==void 0?e:(a=t.errors)==null?void 0:a[r]}function _t(){let{router:e}=It("useNavigate"),t=oe("useNavigate"),r=i.useRef(!1);return Fe(()=>{r.current=!0}),i.useCallback(async(n,o={})=>{L(r.current,Ie),r.current&&(typeof n=="number"?await e.navigate(n):await e.navigate(n,{fromRouteId:t,...o}))},[e,t])}var ge={};function Me(e,t,r){!t&&!ge[e]&&(ge[e]=!0,L(!1,r))}i.memo(Bt);function Bt({routes:e,manifest:t,future:r,state:a,isStatic:n,onError:o}){return Pt(e,void 0,{manifest:t,state:a,isStatic:n,onError:o})}function Ot({basename:e="/",children:t=null,location:r,navigationType:a="POP",navigator:n,static:o=!1,useTransitions:l}){E(!O(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),s=i.useMemo(()=>({basename:u,navigator:n,static:o,useTransitions:l,future:{}}),[u,n,o,l]);typeof r=="string"&&(r=B(r));let{pathname:c="/",search:f="",hash:h="",state:m=null,key:g="default",mask:v}=r,p=i.useMemo(()=>{let d=k(c,u);return d==null?null:{location:{pathname:d,search:f,hash:h,state:m,key:g,mask:v},navigationType:a}},[u,c,f,h,m,g,a,v]);return L(p!=null,`<Router basename="${u}"> is not able to match the URL "${c}${f}${h}" because it does not start with the basename, so the <Router> won't render anything.`),p==null?null:i.createElement(S.Provider,{value:s},i.createElement(K.Provider,{children:t,value:p}))}var W="get",j="application/x-www-form-urlencoded";function q(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Ut(e){return q(e)&&e.tagName.toLowerCase()==="button"}function Ht(e){return q(e)&&e.tagName.toLowerCase()==="form"}function Wt(e){return q(e)&&e.tagName.toLowerCase()==="input"}function jt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Vt(e,t){return e.button===0&&(!t||t==="_self")&&!jt(e)}var H=null;function zt(){if(H===null)try{new FormData(document.createElement("form"),0),H=!1}catch{H=!0}return H}var Jt=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Z(e){return e!=null&&!Jt.has(e)?(L(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${j}"`),null):e}function Kt(e,t){let r,a,n,o,l;if(Ht(e)){let u=e.getAttribute("action");a=u?k(u,t):null,r=e.getAttribute("method")||W,n=Z(e.getAttribute("enctype"))||j,o=new FormData(e)}else if(Ut(e)||Wt(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||u.getAttribute("action");if(a=s?k(s,t):null,r=e.getAttribute("formmethod")||u.getAttribute("method")||W,n=Z(e.getAttribute("formenctype"))||Z(u.getAttribute("enctype"))||j,o=new FormData(u,e),!zt()){let{name:c,type:f,value:h}=e;if(f==="image"){let m=c?`${c}.`:"";o.append(`${m}x`,"0"),o.append(`${m}y`,"0")}else c&&o.append(c,h)}}else{if(q(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=W,a=null,n=j,l=e}return o&&n==="text/plain"&&(l=o,o=void 0),{action:a,method:r.toLowerCase(),encType:n,formData:o,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function le(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ae(e,t,r,a){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?n.pathname.endsWith("/")?n.pathname=`${n.pathname}_.${a}`:n.pathname=`${n.pathname}.${a}`:n.pathname==="/"?n.pathname=`_root.${a}`:t&&k(n.pathname,t)==="/"?n.pathname=`${z(t)}/_root.${a}`:n.pathname=`${z(n.pathname)}.${a}`,n}async function qt(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Yt(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Gt(e,t,r){let a=await Promise.all(e.map(async n=>{let o=t.routes[n.route.id];if(o){let l=await qt(o,r);return l.links?l.links():[]}return[]}));return er(a.flat(1).filter(Yt).filter(n=>n.rel==="stylesheet"||n.rel==="preload").map(n=>n.rel==="stylesheet"?{...n,rel:"prefetch",as:"style"}:{...n,rel:"prefetch"}))}function ve(e,t,r,a,n,o){let l=(s,c)=>r[c]?s.route.id!==r[c].route.id:!0,u=(s,c)=>{var f;return r[c].pathname!==s.pathname||((f=r[c].route.path)==null?void 0:f.endsWith("*"))&&r[c].params["*"]!==s.params["*"]};return o==="assets"?t.filter((s,c)=>l(s,c)||u(s,c)):o==="data"?t.filter((s,c)=>{var h;let f=a.routes[s.route.id];if(!f||!f.hasLoader)return!1;if(l(s,c)||u(s,c))return!0;if(s.route.shouldRevalidate){let m=s.route.shouldRevalidate({currentUrl:new URL(n.pathname+n.search+n.hash,window.origin),currentParams:((h=r[0])==null?void 0:h.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function Xt(e,t,{includeHydrateFallback:r}={}){return Qt(e.map(a=>{let n=t.routes[a.route.id];if(!n)return[];let o=[n.module];return n.clientActionModule&&(o=o.concat(n.clientActionModule)),n.clientLoaderModule&&(o=o.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(o=o.concat(n.hydrateFallbackModule)),n.imports&&(o=o.concat(n.imports)),o}).flat(1))}function Qt(e){return[...new Set(e)]}function Zt(e){let t={},r=Object.keys(e).sort();for(let a of r)t[a]=e[a];return t}function er(e,t){let r=new Set;return new Set(t),e.reduce((a,n)=>{let o=JSON.stringify(Zt(n));return r.has(o)||(r.add(o),a.push({key:o,link:n})),a},[])}function ie(){let e=i.useContext(N);return le(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function tr(){let e=i.useContext(J);return le(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ue=i.createContext(void 0);ue.displayName="FrameworkContext";function Y(){let e=i.useContext(ue);return le(e,"You must render this element inside a <HydratedRouter> element"),e}function rr(e,t){let r=i.useContext(ue),[a,n]=i.useState(!1),[o,l]=i.useState(!1),{onFocus:u,onBlur:s,onMouseEnter:c,onMouseLeave:f,onTouchStart:h}=t,m=i.useRef(null);i.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let p=y=>{y.forEach(R=>{l(R.isIntersecting)})},d=new IntersectionObserver(p,{threshold:.5});return m.current&&d.observe(m.current),()=>{d.disconnect()}}},[e]),i.useEffect(()=>{if(a){let p=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(p)}}},[a]);let g=()=>{n(!0)},v=()=>{n(!1),l(!1)};return r?e!=="intent"?[o,m,{}]:[o,m,{onFocus:A(u,g),onBlur:A(s,v),onMouseEnter:A(c,g),onMouseLeave:A(f,v),onTouchStart:A(h,g)}]:[!1,m,{}]}function A(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function nr({page:e,...t}){let r=gt(),{nonce:a}=Y(),{router:n}=ie(),o=i.useMemo(()=>Re(n.routes,e,n.basename),[n.routes,e,n.basename]);return o?(t.nonce==null&&a&&(t={...t,nonce:a}),r?i.createElement(or,{page:e,matches:o,...t}):i.createElement(lr,{page:e,matches:o,...t})):null}function ar(e){let{manifest:t,routeModules:r}=Y(),[a,n]=i.useState([]);return i.useEffect(()=>{let o=!1;return Gt(e,t,r).then(l=>{o||n(l)}),()=>{o=!0}},[e,t,r]),a}function or({page:e,matches:t,...r}){let a=T(),{future:n}=Y(),{basename:o}=ie(),l=i.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let u=Ae(e,o,n.v8_trailingSlashAwareDataRequests,"rsc"),s=!1,c=[];for(let f of t)typeof f.route.shouldRevalidate=="function"?s=!0:c.push(f.route.id);return s&&c.length>0&&u.searchParams.set("_routes",c.join(",")),[u.pathname+u.search]},[o,n.v8_trailingSlashAwareDataRequests,e,a,t]);return i.createElement(i.Fragment,null,l.map(u=>i.createElement("link",{key:u,rel:"prefetch",as:"fetch",href:u,...r})))}function lr({page:e,matches:t,...r}){let a=T(),{future:n,manifest:o,routeModules:l}=Y(),{basename:u}=ie(),{loaderData:s,matches:c}=tr(),f=i.useMemo(()=>ve(e,t,c,o,a,"data"),[e,t,c,o,a]),h=i.useMemo(()=>ve(e,t,c,o,a,"assets"),[e,t,c,o,a]),m=i.useMemo(()=>{if(e===a.pathname+a.search+a.hash)return[];let p=new Set,d=!1;if(t.forEach(R=>{var C;let w=o.routes[R.route.id];!w||!w.hasLoader||(!f.some(x=>x.route.id===R.route.id)&&R.route.id in s&&((C=l[R.route.id])!=null&&C.shouldRevalidate)||w.hasClientLoader?d=!0:p.add(R.route.id))}),p.size===0)return[];let y=Ae(e,u,n.v8_trailingSlashAwareDataRequests,"data");return d&&p.size>0&&y.searchParams.set("_routes",t.filter(R=>p.has(R.route.id)).map(R=>R.route.id).join(",")),[y.pathname+y.search]},[u,n.v8_trailingSlashAwareDataRequests,s,a,o,f,t,e,l]),g=i.useMemo(()=>Xt(h,o),[h,o]),v=ar(h);return i.createElement(i.Fragment,null,m.map(p=>i.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...r})),g.map(p=>i.createElement("link",{key:p,rel:"modulepreload",href:p,...r})),v.map(({key:p,link:d})=>i.createElement("link",{key:p,nonce:r.nonce,...d,crossOrigin:d.crossOrigin??r.crossOrigin})))}function ir(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var ur=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ur&&(window.__reactRouterVersion="7.18.2")}catch{}function Rr({basename:e,children:t,useTransitions:r,window:a}){let n=i.useRef();n.current==null&&(n.current=We({window:a,v5Compat:!0}));let o=n.current,[l,u]=i.useState({action:o.action,location:o.location}),s=i.useCallback(c=>{r===!1?u(c):i.startTransition(()=>u(c))},[r]);return i.useLayoutEffect(()=>o.listen(s),[o,s]),i.createElement(Ot,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:o,useTransitions:r})}var _e=i.forwardRef(function({onClick:t,discover:r="render",prefetch:a="none",relative:n,reloadDocument:o,replace:l,mask:u,state:s,target:c,to:f,preventScrollReset:h,viewTransition:m,defaultShouldRevalidate:g,...v},p){let{basename:d,navigator:y,useTransitions:R}=i.useContext(S),w=typeof f=="string"&&te.test(f),C=Le(f,d);f=C.to;let x=Ct(f,{relative:n}),P=T(),D=null;if(u){let I=re(u,[],P.mask?P.mask.pathname:"/",!0);d!=="/"&&(I.pathname=I.pathname==="/"?d:b([d,I.pathname])),D=y.createHref(I)}let[F,M,G]=rr(a,v),Oe=hr(f,{replace:l,mask:u,state:s,target:c,preventScrollReset:h,relative:n,viewTransition:m,defaultShouldRevalidate:g,useTransitions:R});function Ue(I){t&&t(I),I.defaultPrevented||Oe(I)}let se=!(C.isExternal||o),ce=i.createElement("a",{...v,...G,href:(se?D:void 0)||C.absoluteURL||x,onClick:se?Ue:t,ref:ir(p,M),target:c,"data-discover":!w&&r==="render"?"true":void 0});return F&&!w?i.createElement(i.Fragment,null,ce,i.createElement(nr,{page:x})):ce});_e.displayName="Link";var sr=i.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:a="",end:n=!1,style:o,to:l,viewTransition:u,children:s,...c},f){let h=U(l,{relative:c.relative}),m=T(),g=i.useContext(J),{navigator:v,basename:p}=i.useContext(S),d=g!=null&&vr(h)&&u===!0,y=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,R=m.pathname,w=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;r||(R=R.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&p&&(w=k(w,p)||w);const C=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let x=R===y||!n&&R.startsWith(y)&&R.charAt(C)==="/",P=w!=null&&(w===y||!n&&w.startsWith(y)&&w.charAt(y.length)==="/"),D={isActive:x,isPending:P,isTransitioning:d},F=x?t:void 0,M;typeof a=="function"?M=a(D):M=[a,x?"active":null,P?"pending":null,d?"transitioning":null].filter(Boolean).join(" ");let G=typeof o=="function"?o(D):o;return i.createElement(_e,{...c,"aria-current":F,className:M,ref:f,style:G,to:l,viewTransition:u},typeof s=="function"?s(D):s)});sr.displayName="NavLink";var cr=i.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:a,replace:n,state:o,method:l=W,action:u,onSubmit:s,relative:c,preventScrollReset:f,viewTransition:h,defaultShouldRevalidate:m,...g},v)=>{let{useTransitions:p}=i.useContext(S),d=pr(),y=gr(u,{relative:c}),R=l.toLowerCase()==="get"?"get":"post",w=typeof u=="string"&&te.test(u),C=x=>{if(s&&s(x),x.defaultPrevented)return;x.preventDefault();let P=x.nativeEvent.submitter,D=(P==null?void 0:P.getAttribute("formmethod"))||l,F=()=>d(P||x.currentTarget,{fetcherKey:t,method:D,navigate:r,replace:n,state:o,relative:c,preventScrollReset:f,viewTransition:h,defaultShouldRevalidate:m});p&&r!==!1?i.startTransition(()=>F()):F()};return i.createElement("form",{ref:v,method:R,action:y,onSubmit:a?s:C,...g,"data-discover":!w&&e==="render"?"true":void 0})});cr.displayName="Form";function fr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Be(e){let t=i.useContext(N);return E(t,fr(e)),t}function hr(e,{target:t,replace:r,mask:a,state:n,preventScrollReset:o,relative:l,viewTransition:u,defaultShouldRevalidate:s,useTransitions:c}={}){let f=St(),h=T(),m=U(e,{relative:l});return i.useCallback(g=>{if(Vt(g,t)){g.preventDefault();let v=r!==void 0?r:_(h)===_(m),p=()=>f(e,{replace:v,mask:a,state:n,preventScrollReset:o,relative:l,viewTransition:u,defaultShouldRevalidate:s});c?i.startTransition(()=>p()):p()}},[h,f,m,r,a,n,t,e,o,l,u,s,c])}var dr=0,mr=()=>`__${String(++dr)}__`;function pr(){let{router:e}=Be("useSubmit"),{basename:t}=i.useContext(S),r=Mt(),a=e.fetch,n=e.navigate;return i.useCallback(async(o,l={})=>{let{action:u,method:s,encType:c,formData:f,body:h}=Kt(o,t);if(l.navigate===!1){let m=l.fetcherKey||mr();await a(m,r,l.action||u,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:f,body:h,formMethod:l.method||s,formEncType:l.encType||c,flushSync:l.flushSync})}else await n(l.action||u,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:f,body:h,formMethod:l.method||s,formEncType:l.encType||c,replace:l.replace,state:l.state,fromRouteId:r,flushSync:l.flushSync,viewTransition:l.viewTransition})},[a,n,t,r])}function gr(e,{relative:t}={}){let{basename:r}=i.useContext(S),a=i.useContext($);E(a,"useFormAction must be used inside a RouteContext");let[n]=a.matches.slice(-1),o={...U(e||".",{relative:t})},l=T();if(e==null){o.search=l.search;let u=new URLSearchParams(o.search),s=u.getAll("index");if(s.some(f=>f==="")){u.delete("index"),s.filter(h=>h).forEach(h=>u.append("index",h));let f=u.toString();o.search=f?`?${f}`:""}}return(!e||e===".")&&n.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(o.pathname=o.pathname==="/"?r:b([r,o.pathname])),_(o)}function vr(e,{relative:t}={}){let r=i.useContext(Te);E(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=Be("useViewTransitionState"),n=U(e,{relative:t});if(!r.isTransitioning)return!1;let o=k(r.currentLocation.pathname,a)||r.currentLocation.pathname,l=k(r.nextLocation.pathname,a)||r.nextLocation.pathname;return V(n.pathname,l)!=null||V(n.pathname,o)!=null}export{Rr as B,T as a,St as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as n,r as d,aT as se,a as D,c as p,aU as j,aV as oe,aW as re,aX as ae,aY as P,aZ as B,h as X,u as Y,a_ as E,a$ as ie,b0 as le,b1 as ce,b2 as ue,b3 as H,b4 as $,b5 as Z,b6 as de,i as J,b7 as z,b8 as Q,ab as me,b9 as pe,ba as fe,bb as ge,bc as he,bd as N,K as q,aS as xe,ag as ee,be,bf as ne,bg as Ce,bh as ve,bi as Se,bj as je,bk as Ae,bl as ye,g as Me,E as ke,m as te,s as Ie,bm as Re,bn as Te,bo as Ne,bp as we,I as O,d as _,e as w,bq as F,br as Ee,ac as Pe,bs as Le}from"./index-j62waCx3.js";function Oe(){var C;const{pending:o}=$(),e=be(),[t,i]=d.useState({approvalId:null,index:0}),a=d.useRef(null),r=o.length,u=t.approvalId==null?-1:o.findIndex(h=>h.approvalId===t.approvalId),l=u>=0?u:r===0?0:Math.min(t.index,r-1),s=(C=o[l])==null?void 0:C.approvalId;d.useEffect(()=>{const h=s??null;t.approvalId===h&&t.index===l||i({approvalId:h,index:l})},[s,l,t.approvalId,t.index]),d.useEffect(()=>{if(s==null||e==null){s==null&&(a.current=null);return}a.current!==s&&(a.current=s,e.focus(s))},[s,e]);const c=d.useCallback(()=>{var b;const h=Math.max(0,l-1);i({approvalId:((b=o[h])==null?void 0:b.approvalId)??null,index:h})},[o,l]),m=d.useCallback(()=>{var b;const h=Math.min(Math.max(r-1,0),l+1);i({approvalId:((b=o[h])==null?void 0:b.approvalId)??null,index:h})},[r,o,l]),g=d.useCallback(()=>{s==null||e==null||e.focus(s)},[s,e]);return{count:r,index:l,canPrev:l>0,canNext:l<r-1,goPrev:c,goNext:m,focusCurrent:g}}function De(){const o=p("ApprovalNavBanner"),{count:e,index:t,canPrev:i,canNext:a,goPrev:r,goNext:u,focusCurrent:l}=Oe();return e===0?null:n.jsx(o,{total:e,current:t+1,canPrev:i,canNext:a,onPrev:r,onNext:u,onFocusCurrent:l})}var L={radioValue:"",custom:""};function Ue({disabled:o=!1}){const e=p("AskUserPrompt"),{pending:t,respond:i}=H(),a=E(),r=t[0],u=d.useMemo(()=>r==null?[]:[{id:r.toolCallId,question:r.question??"Answer required",options:r.options??[]}],[r]),[l,s]=d.useState(0),[c,m]=d.useState({});d.useEffect(()=>{s(0),m({})},[r==null?void 0:r.toolCallId]);const g=Math.min(l,Math.max(u.length-1,0)),C=u[g],h=C==null?L:c[C.id]??L,b=d.useCallback(v=>{const x=c[v]??L;return x.radioValue===z?x.custom.trim():x.radioValue.trim()},[c]),A=d.useMemo(()=>u.every(v=>b(v.id)),[b,u]),y=h.radioValue===z?h.custom.trim():h.radioValue.trim(),S=a||o||C==null||y.length===0,k=S||!A,M=d.useCallback((v,x)=>{m(T=>({...T,[v]:{...T[v]??L,...x}}))},[]),R=d.useCallback(()=>{if(o||r==null||!A)return;const v=b(r.toolCallId);v&&i({toolCallId:r.toolCallId,content:v})},[A,o,b,r,i]);return r==null||C==null?null:n.jsx(e,{questions:u,readOnly:a||o,currentQuestion:C,currentQuestionIndex:g,currentAnswer:h,totalQuestions:u.length,isMultiQuestion:u.length>1,isLastQuestion:g===u.length-1,allQuestionsAnswered:A,isSubmitDisabled:S,isSubmitAllDisabled:k,onCurrentQuestionIndexChange:s,onCurrentAnswerChange:M,onSubmit:R})}function _e(o){var i,a,r;const e=o.thread.messages,t=e[e.length-1];return(t==null?void 0:t.role)!=="assistant"||((i=t.status)==null?void 0:i.type)!=="requires-action"?!1:((r=(a=t.metadata)==null?void 0:a.custom)==null?void 0:r.pendingMcpAuth)===!0}function Fe(){const o=j(_e),{pending:e}=H(),{pending:t}=$(),i=Z();if(o)return{kind:"mcp"};const a=e[0];if(a!=null){const r=a.toolName;return r!=null&&(i==null?void 0:i[r])!=null?{kind:"custom",toolName:r}:{kind:"ask-user"}}return t.length>0?{kind:"approval"}:{kind:"compose"}}function Be({disabled:o=!1}){const e=Z(),{pending:t,respond:i}=H(),a=E(),r=t[0],u=d.useCallback(s=>{if(o||r==null)return;const c=s.trim();c&&i({toolCallId:r.toolCallId,content:c})},[o,r,i]);if(r==null||r.toolName==null)return null;const l=e==null?void 0:e[r.toolName];return l==null?null:n.jsx(l,{args:r.args??{},disabled:a||o,onSubmit:u})}function He({servers:o,onContinue:e,readOnly:t}){const i=p("McpAuthPrompt"),{handleAuthorize:a}=xe(),{refreshConnectors:r}=ee(),u=l=>{a(l,s=>{s&&r()})};return n.jsx(i,{servers:o,onConnect:u,onContinue:e,readOnly:t})}function Ve({disabled:o=!1}){const e=p("McpAuthPrompt"),{pending:t,resume:i}=de(),a=E(),r=J();if(!t)return null;if(r)return n.jsx(He,{servers:t.mcpServers,onContinue:()=>{o||i()},readOnly:a||o});const u=l=>{const s=t.mcpServers.find(c=>c.id===l);s!=null&&s.authUrl&&window.open(s.authUrl,"_blank","noopener,noreferrer")};return n.jsx(e,{servers:t.mcpServers,onConnect:u,onContinue:()=>{o||i()},readOnly:a||o})}function ze({disabled:o,hasText:e,hasAttachments:t,requiresModel:i,hasModel:a}){return!o&&(e||t)&&(!i||a)}function W({placeholder:o,forceDisabled:e=!1,connectedToBanner:t=!1}){var R,v;const i=p("ComposerShell"),a=Y(),r=D(),u=j(x=>x.composer.text.trim().length>0),l=j(x=>x.composer.attachments.length>0),{agentSpec:s}=ne(),c=r==null||r.mode.status==="active"&&r.mode.isMutable,m=!!((v=(R=s==null?void 0:s.model)==null?void 0:R.name)!=null&&v.trim()),{isBusy:g,send:C,resetBusy:h}=Ce(),b=B(),A=ve(),y=d.useRef(null),S=g||e||!b,k=ze({disabled:S,hasText:u,hasAttachments:l,requiresModel:c,hasModel:m}),M=()=>{k&&C(()=>a.composer().send())};return n.jsxs(n.Fragment,{children:[n.jsx("input",{ref:y,type:"file",multiple:!0,hidden:!0,onChange:x=>{const T=x.target.files;if(T)for(const U of T)a.composer().addAttachment(U);x.target.value=""}}),n.jsx(N.AttachmentDropzone,{disabled:S,"data-slot":"aui_composer-attachment-dropzone",className:"w-full rounded-[0.75rem] transition-[box-shadow] data-[dragging=true]:ring-focus-ring/20 data-[dragging=true]:ring-3",children:n.jsx(N.Root,{"data-slot":"aui_composer-root",className:"w-full",onSubmit:x=>{x.preventDefault(),M()},children:n.jsx(i,{className:t?"rounded-t-none border-t-0 focus-within:ring-0":void 0,attachments:n.jsx(Se,{}),input:n.jsx(N.Input,{"data-slot":"aui_composer-input",placeholder:o,disabled:S,submitMode:"enter","aria-label":"Message input",className:"text-text-primary placeholder:text-text-secondary/80 max-h-[10lh] min-h-10 w-full resize-none overflow-y-auto rounded-lg border-none bg-transparent px-1 py-1 text-base leading-normal shadow-none outline-none disabled:cursor-not-allowed"}),disabled:S,canSubmit:k,isRunning:g&&!e,onSubmit:M,onCancel:b?()=>{h(),A()}:void 0,onAttach:b?()=>{var x;return(x=y.current)==null?void 0:x.click()}:void 0})})})]})}function G({placeholder:o,forceDisabled:e=!1,connectedToBanner:t=!1}){const i=D(),a=p("ComposerLeftSection"),r=p("ComposerRightSection"),u=Q("ComposerLeftSection"),l=Q("ComposerRightSection"),s=p("DraftComposerLeftSection"),c=p("DraftComposerRightSection");return(i==null?void 0:i.mode.status)==="active"&&i.mode.isMutable?n.jsx(me,{children:n.jsx(pe,{overrides:{ComposerLeftSection:u?s:a,ComposerRightSection:l?c:r},children:n.jsx(W,{placeholder:o,forceDisabled:e,connectedToBanner:t})})}):n.jsx(W,{placeholder:o,forceDisabled:e,connectedToBanner:t})}function Qe({placeholder:o="Ask anything... (Shift+Enter for new line)"}){const e=Fe(),t=B();return e.kind==="mcp"?n.jsx(Ve,{disabled:!t}):e.kind==="custom"?n.jsx(Be,{disabled:!t}):e.kind==="ask-user"?n.jsx(Ue,{disabled:!t}):e.kind==="approval"?n.jsxs("div",{"data-slot":"aui_composer-approval-pause",className:"flex w-full flex-col",children:[n.jsx(De,{}),n.jsx(G,{placeholder:o,forceDisabled:!0,connectedToBanner:!0})]}):n.jsx(G,{placeholder:o})}var qe=200,K='[data-slot="aui_thread-viewport"]';function We(){const o=p("HistoryLoader"),{hasOlderHistory:e,isLoadingOlderHistory:t,loadOlderHistory:i}=ie(),[a,r]=d.useState(null),u=d.useRef(!1),l=d.useCallback(async()=>{if(u.current)return;u.current=!0;const s=(a==null?void 0:a.closest(K))??null,c=(s==null?void 0:s.scrollHeight)??0,m=(s==null?void 0:s.scrollTop)??0;try{await i(),requestAnimationFrame(()=>{if(s==null)return;const g=s.scrollHeight-c;g>0&&s.scrollTo({top:m+g,behavior:"instant"})})}catch{}finally{u.current=!1}},[a,i]);return d.useEffect(()=>{if(a==null||!e)return;const s=a.closest(K),c=new IntersectionObserver(m=>{m.some(g=>g.isIntersecting)&&l()},{root:s,rootMargin:`${qe}px 0px 0px 0px`});return c.observe(a),()=>c.disconnect()},[a,e,l]),e?n.jsx(o,{ref:r,isLoading:t}):null}function Ge(){const o=p("ResumeUnavailable");return ue()?n.jsx(o,{}):null}function Ke(){return j(e=>{var t;return(((t=e.message.attachments)==null?void 0:t.length)??0)>0})?n.jsx("div",{className:"pointer-events-none mb-2 opacity-90",children:n.jsx(je,{})}):null}function Xe(){const o=p("UserMessageEdit"),e=p("MessageTimestamp"),t=E(),i=B(),a=j(s=>s.message.createdAt),{cancel:r,disabled:u}=fe(),{disabled:l}=ge();return n.jsx(he.Root,{"data-role":"user",children:n.jsx(N.Root,{"data-slot":"aui_user-edit-composer-root",className:"fade-in slide-in-from-bottom-1 animate-in flex w-full justify-end px-2 duration-150",children:n.jsx(o,{timestamp:n.jsx(e,{createdAt:a}),attachments:n.jsx(Ke,{}),input:n.jsx("div",{className:"mt-1 rounded border border-border bg-secondary-bg p-2 text-text-primary",children:n.jsx(N.Input,{"data-slot":"aui_user-edit-input",disabled:t||!i,submitMode:"enter","aria-label":"Edit message",className:"max-h-32 min-h-10 w-full resize-none border-none bg-transparent p-0 text-base leading-[1.34] outline-none focus:shadow-none"})}),footer:n.jsxs("div",{className:"flex items-center justify-end gap-2",children:[n.jsx(q.Secondary,{type:"button",disabled:u,onClick:r,children:"Cancel"}),n.jsx(N.Send,{asChild:!0,children:n.jsx(q.Primary,{type:"submit",disabled:l||t||!i,children:"Save & Rerun"})})]})})})})}function Ye(){const o=X(),e=Y(),t=j(l=>l.threadListItem.remoteId),i=j(l=>l.threadListItem.title),a=E(),r=d.useRef(!1),u=d.useRef(void 0);d.useEffect(()=>{u.current=void 0},[t]),d.useEffect(()=>{const l=r.current&&!a;if(r.current=a,!l||o==null||t==null||u.current===t)return;if(i!=null&&i.trim()!==""){u.current=t;return}let s=!1;return o.getSession({sessionId:t}).then(c=>{if(s)return;const m=typeof c.title=="string"?c.title.trim():"";if(m.length!==0)return u.current=t,e.threadListItem().rename(m)}).catch(()=>{}),()=>{s=!0}},[e,a,t,o,i])}function $e({children:o}){return n.jsx("div",{className:"animate-in fade-in slide-in-from-bottom-1 fill-mode-both duration-200",children:o})}function Ze({isEditing:o}){return j(t=>t.message.role)==="user"?o?n.jsx(Xe,{}):n.jsx(le,{}):n.jsx(ce,{})}function Je({composer:o}){d.useEffect(()=>{se()},[]),Ye();const e=D(),t=p("WelcomeScreen"),i=p("MessageListSkeleton"),a=p("ScrollToBottomButton"),r=p("MessageGroup"),u=p("ThreadComposerAreaShell"),l=p("ThreadRootShell"),s=p("ThreadViewportShell"),c=j(oe),m=j(C=>C.thread.isLoading),g=(e==null?void 0:e.mode.status)==="active"?e.mode.agentName!=null&&e.mode.agentName.length>0?e.mode.agentName:e.mode.isMutable&&e.mode.isCreateAgent?"Start building a new Agent":void 0:void 0;return n.jsx(re,{children:n.jsx(ae,{children:n.jsx(P.Root,{asChild:!0,children:n.jsxs(l,{children:[n.jsx(P.Viewport,{asChild:!0,autoScroll:!0,children:n.jsxs(s,{isEmpty:c,children:[c&&n.jsx(t,{heading:g}),c&&!m&&o,m?n.jsx(i,{}):!c&&n.jsxs(n.Fragment,{children:[n.jsx(We,{}),n.jsxs(r,{children:[n.jsx(P.Messages,{children:({message:C})=>n.jsx($e,{children:n.jsx(Ze,{isEditing:C.role==="user"&&C.composer.isEditing})})}),n.jsx(Ge,{})]})]})]})}),!m&&!c&&n.jsxs(u,{isEmpty:c,children:[n.jsx(P.ScrollToBottom,{asChild:!0,children:n.jsx(a,{})}),o]})]})})})})}function nn(){return n.jsx(Je,{composer:n.jsx(Qe,{})})}function tn({className:o}){const e=Ee(),t=j(r=>r.threadListItem.title);if(e===null)return null;const i=(t==null?void 0:t.trim())??"",a=e.allowThreadTitle&&i.length>0?i:e.name;return n.jsxs("h1",{className:w("flex min-w-0 items-center gap-1.5",Le,o),children:[n.jsx("span",{className:"truncate",title:a,children:a}),e.isEditing?n.jsx(Pe,{content:"Try changes here, then choose Update agent to save.",side:"bottom",children:n.jsxs("span",{className:"border-warning-bg/40 bg-warning-bg/10 text-warning-bg inline-flex shrink-0 items-center gap-1 rounded-full border px-2 py-0.5 text-xs font-medium",children:[n.jsx(O,{name:"pencil",className:"size-3"}),"Editing"]})}):null]})}function sn({className:o,labeled:e=!1}){const t=D(),i=J(),a=te(),{mode:r,setTheme:u}=Ne(),l=p("ShellActionsActionSlot"),s=r==="dark",c=s?"Light":"Dark",m=we({catalog:i,capabilities:a}),g="hover:bg-secondary-button-hover hover:text-ghost-button-text";return n.jsxs("div",{className:w("flex shrink-0 items-center gap-1",e?"w-full flex-col items-center gap-1 text-sidebar-text":"text-text-primary",o),children:[n.jsxs("a",{href:"https://trueforge.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"Documentation",title:"Documentation",className:_({variant:"ghost",size:e?void 0:"icon",className:w(g,e&&F)}),children:[n.jsx(O,{name:"book-open",size:e?14:void 0}),e?n.jsx("span",{className:"text-center",children:"Docs"}):null]}),n.jsxs("button",{type:"button","aria-label":s?"Switch to light theme":"Switch to dark theme",title:s?"Light theme":"Dark theme",className:_({variant:"ghost",size:e?void 0:"icon",className:w(g,e&&F)}),onClick:()=>u(s?"light":"dark"),children:[n.jsx(O,{name:s?"sun":"moon",size:e?14:void 0}),e?n.jsx("span",{className:"text-center",children:c}):null]}),t!=null&&m?n.jsxs("button",{type:"button","aria-label":"Settings",title:"Settings","aria-expanded":t.settingsOpen,"aria-current":t.settingsOpen?"page":void 0,className:_({variant:"ghost",size:e?void 0:"icon",className:w(g,e&&F,t.settingsOpen&&"bg-primary-button-bg font-medium text-primary-button-text hover:bg-primary-button-hover hover:text-primary-button-text")}),onClick:()=>t.setSettingsOpen(!0),children:[n.jsx(O,{name:"settings",size:e?14:void 0}),e?n.jsx("span",{className:"text-center",children:"Settings"}):null]}):null,n.jsx(l,{})]})}function on({showClose:o=!1}){const{agentSpec:e}=ne(),t=Ae(),i=ye(),a=Me(),r=a.mode.status==="active"?a.mode.agentId:void 0,{allows:u}=ke({resourceType:"agent",resourceIds:r==null?[]:[r]}),l=u(r,"MANAGE"),s=X(),c=te(),m=ee(),g=p("AgentConfigPanel"),C=p("AgentConfigEditors"),[h,b]=d.useState(null),A=Ie(a.mode),{draft:y,flush:S}=Re(),k=d.useCallback(()=>{S(),i(),a.setAgentConfigOpen(!1)},[i,S,a]);d.useEffect(()=>{A&&m.ensureLoaded()},[m,A]),d.useEffect(()=>{l||b(null)},[l]),d.useEffect(()=>{if(!o||!a.agentConfigOpen)return;const f=I=>{!I.defaultPrevented&&I.key==="Escape"&&h===null&&document.querySelector("dialog[open]")===null&&k()};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[k,h,a.agentConfigOpen,o]),d.useEffect(()=>()=>{S();try{i()}catch{}},[i,S]);const M=d.useCallback(({next:f,instructions:I})=>{var V;if(l){if(f.skills&&f.skills.length>0&&(c==null?void 0:c.sandbox.enabled)===!0){t==null||t({...f,instructions:I||void 0,config:{...f.config,sandbox:{...(V=f.config)==null?void 0:V.sandbox,enabled:!0}}});return}t==null||t({...f,instructions:I||void 0})}},[l,c==null?void 0:c.sandbox.enabled,t]),R=d.useCallback(f=>{M({next:f,instructions:y})},[M,y]),v=d.useCallback(f=>{e!==null&&M({next:Te({spec:e,messages:f.messages}),instructions:f.instructions})},[e,M]),x=d.useCallback(async f=>(s==null?void 0:s.getMcpTools)===void 0?[]:s.getMcpTools({connectorId:f}),[s]),T=d.useCallback(async f=>{var I;return(I=s==null?void 0:s.getMcpConnector)==null?void 0:I.call(s,{connectorId:f})},[s]);if(!A||e===null||o&&!a.agentConfigOpen)return null;const U=m.models.find(f=>f.name===e.model.name);return n.jsxs(n.Fragment,{children:[n.jsx(g,{spec:e,model:U,models:m.models,modelsLoading:m.loading,modelsError:m.error,skills:m.skills,skillsAvailable:(c==null?void 0:c.skill.enabled)===!0,instructions:y,onOpenEditor:f=>{l&&b(f)},onChange:R,disabled:!l,onClose:o?k:void 0}),n.jsx(C,{editor:h,spec:e,models:m.models,connectors:m.connectors,skills:m.skills,loading:m.loading,error:m.error,skillsDisabled:(c==null?void 0:c.skill.enabled)!==!0,sandboxAvailable:(c==null?void 0:c.sandbox.enabled)===!0,instructions:y,onInstructionsSave:v,...(s==null?void 0:s.getMcpConnector)===void 0?{}:{loadMcpConnector:T},loadMcpTools:x,onRefreshConnectors:m.refreshConnectors,onChange:R,onClose:()=>b(null)})]})}export{on as A,tn as N,sn as S,nn as T};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as h}from"./workers-CMRxcwpZ.js";import{C as c,H as u,D as p,a as m,R as f,b as _,c as w,d as k,F as v,e as D,S as P,f as R,g as I}from"./lspLanguageFeatures-DxVZAZOX.js";import{h as U,i as y,j as T,t as x,k as j}from"./lspLanguageFeatures-DxVZAZOX.js";import{l as s}from"./index-DnsWYEUD.js";import"./index-j62waCx3.js";const C=120*1e3;class W{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>C&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h({moduleId:"vs/language/css/cssWorker",createWorker:()=>new Worker(new URL(""+new URL("css.worker-CqwWTjeG.js",import.meta.url).href,import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(a=>{e=a}).then(a=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(a=>e)}}function E(o){const n=[],e=[],a=new W(o);n.push(a);const r=(...t)=>a.getLanguageServiceWorker(...t);function l(){const{languageId:t,modeConfiguration:i}=o;g(e),i.completionItems&&e.push(s.registerCompletionItemProvider(t,new c(r,["/","-",":"]))),i.hovers&&e.push(s.registerHoverProvider(t,new u(r))),i.documentHighlights&&e.push(s.registerDocumentHighlightProvider(t,new p(r))),i.definitions&&e.push(s.registerDefinitionProvider(t,new m(r))),i.references&&e.push(s.registerReferenceProvider(t,new f(r))),i.documentSymbols&&e.push(s.registerDocumentSymbolProvider(t,new _(r))),i.rename&&e.push(s.registerRenameProvider(t,new w(r))),i.colors&&e.push(s.registerColorProvider(t,new k(r))),i.foldingRanges&&e.push(s.registerFoldingRangeProvider(t,new v(r))),i.diagnostics&&e.push(new D(t,r,o.onDidChange)),i.selectionRanges&&e.push(s.registerSelectionRangeProvider(t,new P(r))),i.documentFormattingEdits&&e.push(s.registerDocumentFormattingEditProvider(t,new R(r))),i.documentRangeFormattingEdits&&e.push(s.registerDocumentRangeFormattingEditProvider(t,new I(r)))}return l(),n.push(d(e)),d(n)}function d(o){return{dispose:()=>g(o)}}function g(o){for(;o.length;)o.pop().dispose()}export{c as CompletionAdapter,m as DefinitionAdapter,D as DiagnosticsAdapter,k as DocumentColorAdapter,R as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,U as DocumentLinkAdapter,I as DocumentRangeFormattingEditProvider,_ as DocumentSymbolAdapter,v as FoldingRangeAdapter,u as HoverAdapter,f as ReferenceAdapter,w as RenameAdapter,P as SelectionRangeAdapter,W as WorkerManager,y as fromPosition,T as fromRange,E as setupMode,x as toRange,j as toTextEdit};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{l as c}from"./index-
|
|
1
|
+
import{l as c}from"./index-DnsWYEUD.js";import"./index-j62waCx3.js";const s=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],d=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],r={close:">",id:"angle",open:"<"},a={close:"\\]",id:"bracket",open:"\\["},F={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:`
|
|
2
2
|
\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${d.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function g(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:`
|
|
3
3
|
\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${d.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function _(t,n){const i=`_${t.id}_${n.id}`,e=u=>u.replace(/__id__/g,i),o=u=>{const m=u.source.replace(/__id__/g,i);return new RegExp(m,u.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function A(t){const n=_(r,t),i=_(a,t),e=_(F,t);return{...n,...i,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,...i.tokenizer,...e.tokenizer}}}const x={conf:l(r),language:_(r,k)},$={conf:l(a),language:_(a,k)},E={conf:l(r),language:_(r,p)},B={conf:l(a),language:_(a,p)},D={conf:g(),language:A(k)},C={conf:g(),language:A(p)};export{E as TagAngleInterpolationBracket,x as TagAngleInterpolationDollar,C as TagAutoInterpolationBracket,D as TagAutoInterpolationDollar,B as TagBracketInterpolationBracket,$ as TagBracketInterpolationDollar};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./index-
|
|
1
|
+
import{l as e}from"./index-DnsWYEUD.js";import"./index-j62waCx3.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],m={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["<!--","-->"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}]},r={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}};export{m as conf,r as language};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./index-
|
|
1
|
+
import{l as e}from"./index-DnsWYEUD.js";import"./index-j62waCx3.js";const t=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${t.join("|")}))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${t.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:e.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*<!--\\s*#region\\b.*-->"),end:new RegExp("^\\s*<!--\\s*#endregion\\b.*-->")}}},o={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}};export{r as conf,o as language};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as D}from"./workers-CMRxcwpZ.js";import{H as d,D as l,h as c,F as u,b as h,S as m,c as p,f as w,g as f,C as R}from"./lspLanguageFeatures-DxVZAZOX.js";import{a as b,e as y,d as U,R as T,i as x,j as M,t as j,k as O}from"./lspLanguageFeatures-DxVZAZOX.js";import{l as t}from"./index-DnsWYEUD.js";import"./index-j62waCx3.js";const I=120*1e3;class _{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>I&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=D({moduleId:"vs/language/html/htmlWorker",createWorker:()=>new Worker(new URL(""+new URL("html.worker-DhJ4VZMp.js",import.meta.url).href,import.meta.url),{type:"module"}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(r=>{e=r}).then(r=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(r=>e)}}class v extends R{constructor(n){super(n,[".",":","<",'"',"=","/"])}}function W(i){const n=new _(i),e=(...o)=>n.getLanguageServiceWorker(...o);let r=i.languageId;t.registerCompletionItemProvider(r,new v(e)),t.registerHoverProvider(r,new d(e)),t.registerDocumentHighlightProvider(r,new l(e)),t.registerLinkProvider(r,new c(e)),t.registerFoldingRangeProvider(r,new u(e)),t.registerDocumentSymbolProvider(r,new h(e)),t.registerSelectionRangeProvider(r,new m(e)),t.registerRenameProvider(r,new p(e)),r==="html"&&(t.registerDocumentFormattingEditProvider(r,new w(e)),t.registerDocumentRangeFormattingEditProvider(r,new f(e)))}function F(i){const n=[],e=[],r=new _(i);n.push(r);const o=(...s)=>r.getLanguageServiceWorker(...s);function P(){const{languageId:s,modeConfiguration:a}=i;k(e),a.completionItems&&e.push(t.registerCompletionItemProvider(s,new v(o))),a.hovers&&e.push(t.registerHoverProvider(s,new d(o))),a.documentHighlights&&e.push(t.registerDocumentHighlightProvider(s,new l(o))),a.links&&e.push(t.registerLinkProvider(s,new c(o))),a.documentSymbols&&e.push(t.registerDocumentSymbolProvider(s,new h(o))),a.rename&&e.push(t.registerRenameProvider(s,new p(o))),a.foldingRanges&&e.push(t.registerFoldingRangeProvider(s,new u(o))),a.selectionRanges&&e.push(t.registerSelectionRangeProvider(s,new m(o))),a.documentFormattingEdits&&e.push(t.registerDocumentFormattingEditProvider(s,new w(o))),a.documentRangeFormattingEdits&&e.push(t.registerDocumentRangeFormattingEditProvider(s,new f(o)))}return P(),n.push(g(e)),g(n)}function g(i){return{dispose:()=>k(i)}}function k(i){for(;i.length;)i.pop().dispose()}export{R as CompletionAdapter,b as DefinitionAdapter,y as DiagnosticsAdapter,U as DocumentColorAdapter,w as DocumentFormattingEditProvider,l as DocumentHighlightAdapter,c as DocumentLinkAdapter,f as DocumentRangeFormattingEditProvider,h as DocumentSymbolAdapter,u as FoldingRangeAdapter,d as HoverAdapter,T as ReferenceAdapter,p as RenameAdapter,m as SelectionRangeAdapter,_ as WorkerManager,x as fromPosition,M as fromRange,F as setupMode,W as setupMode1,j as toRange,O as toTextEdit};
|
|
Binary file
|
|
Binary file
|