@halcyonlabs/app 0.47.0-halcyon.604 → 0.47.0-halcyon.607
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/app/dist/assets/{AddMachineDialog-BHF-GkBG.js → AddMachineDialog-CG2ZZhp-.js} +1 -1
- package/app/dist/assets/AddMachineDialog-CG2ZZhp-.js.br +0 -0
- package/app/dist/assets/AddMachineDialog-CG2ZZhp-.js.gz +0 -0
- package/app/dist/assets/{AppCommandShortcutHint-7JPI7Au-.js → AppCommandShortcutHint-CCVkbqD1.js} +1 -1
- package/app/dist/assets/{AppFileExternalNavigationDispatcher-BNbJsP1g.js → AppFileExternalNavigationDispatcher-DETVZfBW.js} +1 -1
- package/app/dist/assets/AppFileExternalNavigationDispatcher-DETVZfBW.js.br +0 -0
- package/app/dist/assets/AppFileExternalNavigationDispatcher-DETVZfBW.js.gz +0 -0
- package/app/dist/assets/{AppToasterView-DP33gZcS.js → AppToasterView-BpJaGVQ1.js} +1 -1
- package/app/dist/assets/{BrowserTabDeck-BlOoU-vR.js → BrowserTabDeck-c6VRKA-g.js} +1 -1
- package/app/dist/assets/BrowserTabDeck-c6VRKA-g.js.br +0 -0
- package/app/dist/assets/BrowserTabDeck-c6VRKA-g.js.gz +0 -0
- package/app/dist/assets/{CommandPaletteBody-CBbTgLrW.js → CommandPaletteBody-BeiWvSTK.js} +1 -1
- package/app/dist/assets/CommandPaletteBody-BeiWvSTK.js.br +0 -0
- package/app/dist/assets/CommandPaletteBody-BeiWvSTK.js.gz +0 -0
- package/app/dist/assets/{DiffHost-DYBSO1_c.js → DiffHost-xesYsZUt.js} +1 -1
- package/app/dist/assets/DiffHost-xesYsZUt.js.br +0 -0
- package/app/dist/assets/DiffHost-xesYsZUt.js.gz +0 -0
- package/app/dist/assets/{ExperimentalFileLinkMenu-DO2lGQoK.js → ExperimentalFileLinkMenu-CDVoETHe.js} +1 -1
- package/app/dist/assets/ExperimentalFileLinkMenu-CDVoETHe.js.br +0 -0
- package/app/dist/assets/ExperimentalFileLinkMenu-CDVoETHe.js.gz +0 -0
- package/app/dist/assets/{FilePreview-ORcgsTax.js → FilePreview-CzacGZ35.js} +1 -1
- package/app/dist/assets/FilePreview-CzacGZ35.js.br +0 -0
- package/app/dist/assets/FilePreview-CzacGZ35.js.gz +0 -0
- package/app/dist/assets/{GitDiffCardHeader-i4vt7tT5.js → GitDiffCardHeader-CJtFaq1K.js} +1 -1
- package/app/dist/assets/GitDiffCardHeader-CJtFaq1K.js.br +0 -0
- package/app/dist/assets/GitDiffCardHeader-CJtFaq1K.js.gz +0 -0
- package/app/dist/assets/{InlineMessageEditorFrame-y089xCLP.js → InlineMessageEditorFrame-C0rqOlNn.js} +1 -1
- package/app/dist/assets/InlineMessageEditorFrame-C0rqOlNn.js.br +0 -0
- package/app/dist/assets/InlineMessageEditorFrame-C0rqOlNn.js.gz +0 -0
- package/app/dist/assets/{MachineLabel-D07WUIMh.js → MachineLabel-vUI5j8ve.js} +1 -1
- package/app/dist/assets/MachineLabel-vUI5j8ve.js.br +0 -0
- package/app/dist/assets/MachineLabel-vUI5j8ve.js.gz +0 -0
- package/app/dist/assets/{MachineRenameDialog-RyrwvNas.js → MachineRenameDialog-CrnZuppe.js} +1 -1
- package/app/dist/assets/MachineRenameDialog-CrnZuppe.js.br +0 -0
- package/app/dist/assets/MachineRenameDialog-CrnZuppe.js.gz +0 -0
- package/app/dist/assets/{MachineSettingsView-Bg6Op62W.js → MachineSettingsView-BR6qseai.js} +1 -1
- package/app/dist/assets/MachineSettingsView-BR6qseai.js.br +0 -0
- package/app/dist/assets/MachineSettingsView-BR6qseai.js.gz +0 -0
- package/app/dist/assets/{MicrophonePreferences-DwsTYfON.js → MicrophonePreferences-wMQ36e_Q.js} +1 -1
- package/app/dist/assets/MicrophonePreferences-wMQ36e_Q.js.br +0 -0
- package/app/dist/assets/MicrophonePreferences-wMQ36e_Q.js.gz +0 -0
- package/app/dist/assets/{ModelReasoningMenu-Dth3XXm8.js → ModelReasoningMenu-Do0jyo5Q.js} +1 -1
- package/app/dist/assets/ModelReasoningMenu-Do0jyo5Q.js.br +0 -0
- package/app/dist/assets/ModelReasoningMenu-Do0jyo5Q.js.gz +0 -0
- package/app/dist/assets/{MoonletDiff-Da65ABAI.js → MoonletDiff-CCvaiEEC.js} +1 -1
- package/app/dist/assets/MoonletDiff-CCvaiEEC.js.br +0 -0
- package/app/dist/assets/MoonletDiff-CCvaiEEC.js.gz +0 -0
- package/app/dist/assets/{MoonletDiffSplit-Phl7m23w.js → MoonletDiffSplit-3xEwFpfu.js} +2 -2
- package/app/dist/assets/MoonletDiffSplit-3xEwFpfu.js.br +0 -0
- package/app/dist/assets/MoonletDiffSplit-3xEwFpfu.js.gz +0 -0
- package/app/dist/assets/{MoonletSourceCode-C5aa88dK.js → MoonletSourceCode-BgaVW-e6.js} +1 -1
- package/app/dist/assets/MoonletSourceCode-BgaVW-e6.js.br +0 -0
- package/app/dist/assets/MoonletSourceCode-BgaVW-e6.js.gz +0 -0
- package/app/dist/assets/{NewTabPage-BKkv1maV.js → NewTabPage-BOqCqqLe.js} +1 -1
- package/app/dist/assets/NewTabPage-BOqCqqLe.js.br +0 -0
- package/app/dist/assets/NewTabPage-BOqCqqLe.js.gz +0 -0
- package/app/dist/assets/{NewThreadComposer-00DY4i8k.js → NewThreadComposer-DyB52pmS.js} +1 -1
- package/app/dist/assets/NewThreadComposer-DyB52pmS.js.br +0 -0
- package/app/dist/assets/NewThreadComposer-DyB52pmS.js.gz +0 -0
- package/app/dist/assets/{OnboardingFlow-GwpuTTqu.js → OnboardingFlow-DTPixZrb.js} +1 -1
- package/app/dist/assets/OnboardingFlow-DTPixZrb.js.br +0 -0
- package/app/dist/assets/OnboardingFlow-DTPixZrb.js.gz +0 -0
- package/app/dist/assets/{OptionPicker-Cy_W5NWS.js → OptionPicker-CxOGHDd8.js} +1 -1
- package/app/dist/assets/OptionPicker-CxOGHDd8.js.br +0 -0
- package/app/dist/assets/OptionPicker-CxOGHDd8.js.gz +0 -0
- package/app/dist/assets/{PaletteShell-CRwrb4lb.js → PaletteShell-BMkwhUdz.js} +1 -1
- package/app/dist/assets/PaletteShell-BMkwhUdz.js.br +0 -0
- package/app/dist/assets/PaletteShell-BMkwhUdz.js.gz +0 -0
- package/app/dist/assets/{PaneMaximizeButton-CMp4cCoZ.js → PaneMaximizeButton-DgXn2p5T.js} +1 -1
- package/app/dist/assets/PaneMaximizeButton-DgXn2p5T.js.br +0 -0
- package/app/dist/assets/PaneMaximizeButton-DgXn2p5T.js.gz +0 -0
- package/app/dist/assets/{PierreLineSelectionActions-BXbCJV8P.js → PierreLineSelectionActions-V_GPrVau.js} +1 -1
- package/app/dist/assets/PierreLineSelectionActions-V_GPrVau.js.br +0 -0
- package/app/dist/assets/PierreLineSelectionActions-V_GPrVau.js.gz +0 -0
- package/app/dist/assets/{PluginPanelRightPanelHost-CuKRaAaL.js → PluginPanelRightPanelHost-CRDSntoM.js} +1 -1
- package/app/dist/assets/PluginPanelRightPanelHost-CRDSntoM.js.br +0 -0
- package/app/dist/assets/PluginPanelRightPanelHost-CRDSntoM.js.gz +0 -0
- package/app/dist/assets/{PluginSettingsSections-DJo5h7Qh.js → PluginSettingsSections-ZnUNrvlJ.js} +1 -1
- package/app/dist/assets/PluginSettingsSections-ZnUNrvlJ.js.br +0 -0
- package/app/dist/assets/PluginSettingsSections-ZnUNrvlJ.js.gz +0 -0
- package/app/dist/assets/{PluginThreadChat-BV6OMCzu.js → PluginThreadChat-DtIyKaqq.js} +1 -1
- package/app/dist/assets/PluginThreadChat-DtIyKaqq.js.br +0 -0
- package/app/dist/assets/PluginThreadChat-DtIyKaqq.js.gz +0 -0
- package/app/dist/assets/{ProjectDetailSettingsView-DdF6YsSg.js → ProjectDetailSettingsView-B3apTKMj.js} +1 -1
- package/app/dist/assets/ProjectDetailSettingsView-B3apTKMj.js.br +0 -0
- package/app/dist/assets/ProjectDetailSettingsView-B3apTKMj.js.gz +0 -0
- package/app/dist/assets/{ProjectMachineSetupDialog-CtbI4XxM.js → ProjectMachineSetupDialog-C43S09Ex.js} +1 -1
- package/app/dist/assets/ProjectMachineSetupDialog-C43S09Ex.js.br +0 -0
- package/app/dist/assets/ProjectMachineSetupDialog-C43S09Ex.js.gz +0 -0
- package/app/dist/assets/{ProjectsSettingsSection-BT1kXbPn.js → ProjectsSettingsSection-CIshX8Xc.js} +1 -1
- package/app/dist/assets/ProjectsSettingsSection-CIshX8Xc.js.br +0 -0
- package/app/dist/assets/ProjectsSettingsSection-CIshX8Xc.js.gz +0 -0
- package/app/dist/assets/{QueuedMessagesList-D1aAchqp.js → QueuedMessagesList-Dh5dxmNK.js} +1 -1
- package/app/dist/assets/QueuedMessagesList-Dh5dxmNK.js.br +0 -0
- package/app/dist/assets/QueuedMessagesList-Dh5dxmNK.js.gz +0 -0
- package/app/dist/assets/{RemotePathBrowser-vPIL8lVm.js → RemotePathBrowser-1A5-qAxD.js} +1 -1
- package/app/dist/assets/RemotePathBrowser-1A5-qAxD.js.br +0 -0
- package/app/dist/assets/RemotePathBrowser-1A5-qAxD.js.gz +0 -0
- package/app/dist/assets/{RootComposeView-DV6JGFlA.js → RootComposeView-BIZpqYG3.js} +1 -1
- package/app/dist/assets/RootComposeView-BIZpqYG3.js.br +0 -0
- package/app/dist/assets/RootComposeView-BIZpqYG3.js.gz +0 -0
- package/app/dist/assets/{SecondaryPanelLayout-BpHDgFJ_.js → SecondaryPanelLayout-BIQDxJLi.js} +1 -1
- package/app/dist/assets/SecondaryPanelLayout-BIQDxJLi.js.br +0 -0
- package/app/dist/assets/SecondaryPanelLayout-BIQDxJLi.js.gz +0 -0
- package/app/dist/assets/{ServerMoveOverlayView-CGkGzv8t.js → ServerMoveOverlayView-BSJahQeB.js} +1 -1
- package/app/dist/assets/ServerMoveOverlayView-BSJahQeB.js.br +0 -0
- package/app/dist/assets/ServerMoveOverlayView-BSJahQeB.js.gz +0 -0
- package/app/dist/assets/{SettingsSidebar-1XC0Uxwo.js → SettingsSidebar-DY_kbv4v.js} +1 -1
- package/app/dist/assets/SettingsSidebar-DY_kbv4v.js.br +0 -0
- package/app/dist/assets/SettingsSidebar-DY_kbv4v.js.gz +0 -0
- package/app/dist/assets/SettingsView-CR1GzBCl.js +7 -0
- package/app/dist/assets/SettingsView-CR1GzBCl.js.br +0 -0
- package/app/dist/assets/SettingsView-CR1GzBCl.js.gz +0 -0
- package/app/dist/assets/{SidebarFooterCustomize-D7sLYPwD.js → SidebarFooterCustomize-pIj856Zr.js} +1 -1
- package/app/dist/assets/SidebarFooterCustomize-pIj856Zr.js.br +0 -0
- package/app/dist/assets/SidebarFooterCustomize-pIj856Zr.js.gz +0 -0
- package/app/dist/assets/{SidebarVisibilityCustomize-DpTzFoGl.js → SidebarVisibilityCustomize-CR7hQOIF.js} +1 -1
- package/app/dist/assets/SidebarVisibilityCustomize-CR7hQOIF.js.br +0 -0
- package/app/dist/assets/SidebarVisibilityCustomize-CR7hQOIF.js.gz +0 -0
- package/app/dist/assets/{SourceCodeHost-DVEXLJK1.js → SourceCodeHost-DkoXO-RM.js} +2 -2
- package/app/dist/assets/SourceCodeHost-DkoXO-RM.js.br +0 -0
- package/app/dist/assets/SourceCodeHost-DkoXO-RM.js.gz +0 -0
- package/app/dist/assets/{SplitWorkspaceRoute-BfxQQdOx.js → SplitWorkspaceRoute-DN3j-Nio.js} +2 -2
- package/app/dist/assets/SplitWorkspaceRoute-DN3j-Nio.js.br +0 -0
- package/app/dist/assets/SplitWorkspaceRoute-DN3j-Nio.js.gz +0 -0
- package/app/dist/assets/{TerminalOutputBlock-COQNamKR.js → TerminalOutputBlock-DKsNjK8s.js} +1 -1
- package/app/dist/assets/TerminalOutputBlock-DKsNjK8s.js.br +0 -0
- package/app/dist/assets/TerminalOutputBlock-DKsNjK8s.js.gz +0 -0
- package/app/dist/assets/{ThreadActionsMenu-064Gcy7T.js → ThreadActionsMenu-BulopjpY.js} +1 -1
- package/app/dist/assets/ThreadActionsMenu-BulopjpY.js.br +0 -0
- package/app/dist/assets/ThreadActionsMenu-BulopjpY.js.gz +0 -0
- package/app/dist/assets/{ThreadDetailView-CjoXzweq.js → ThreadDetailView-C6cu9JmT.js} +3 -3
- package/app/dist/assets/ThreadDetailView-C6cu9JmT.js.br +0 -0
- package/app/dist/assets/ThreadDetailView-C6cu9JmT.js.gz +0 -0
- package/app/dist/assets/{ThreadSearchPaletteMode-CwdePsHK.js → ThreadSearchPaletteMode-D0MKJ8PL.js} +1 -1
- package/app/dist/assets/ThreadSearchPaletteMode-D0MKJ8PL.js.br +0 -0
- package/app/dist/assets/ThreadSearchPaletteMode-D0MKJ8PL.js.gz +0 -0
- package/app/dist/assets/{ThreadSecondaryPanel-CtYtgTla.js → ThreadSecondaryPanel-CzjhigwP.js} +1 -1
- package/app/dist/assets/ThreadSecondaryPanel-CzjhigwP.js.br +0 -0
- package/app/dist/assets/ThreadSecondaryPanel-CzjhigwP.js.gz +0 -0
- package/app/dist/assets/{ThreadSecondaryPanelTabContent-BNQi8b2n.js → ThreadSecondaryPanelTabContent-BX5A98YK.js} +1 -1
- package/app/dist/assets/ThreadSecondaryPanelTabContent-BX5A98YK.js.br +0 -0
- package/app/dist/assets/ThreadSecondaryPanelTabContent-BX5A98YK.js.gz +0 -0
- package/app/dist/assets/{ThreadStatusGlyph-DxxHDn0P.js → ThreadStatusGlyph-BYavMHiP.js} +1 -1
- package/app/dist/assets/ThreadStatusGlyph-BYavMHiP.js.br +0 -0
- package/app/dist/assets/ThreadStatusGlyph-BYavMHiP.js.gz +0 -0
- package/app/dist/assets/{ThreadTerminalPanel-fb5Kk0KG.js → ThreadTerminalPanel-Cfe76daj.js} +1 -1
- package/app/dist/assets/ThreadTerminalPanel-Cfe76daj.js.br +0 -0
- package/app/dist/assets/ThreadTerminalPanel-Cfe76daj.js.gz +0 -0
- package/app/dist/assets/{ThreadTerminalView-BiGdt3Fd.js → ThreadTerminalView-CgMKh6rk.js} +1 -1
- package/app/dist/assets/ThreadTerminalView-CgMKh6rk.js.br +0 -0
- package/app/dist/assets/ThreadTerminalView-CgMKh6rk.js.gz +0 -0
- package/app/dist/assets/{ThreadTimelineNavigationContext-epkIpS1J.js → ThreadTimelineNavigationContext-2--wIUmU.js} +2 -2
- package/app/dist/assets/ThreadTimelineNavigationContext-2--wIUmU.js.br +0 -0
- package/app/dist/assets/ThreadTimelineNavigationContext-2--wIUmU.js.gz +0 -0
- package/app/dist/assets/{ThreadUnarchiveButton-CExEP4wZ.js → ThreadUnarchiveButton-CiDbuPzJ.js} +1 -1
- package/app/dist/assets/{TimelineDetailScroll-D8gge5Y9.js → TimelineDetailScroll-DnMC8nYC.js} +1 -1
- package/app/dist/assets/TimelineDetailScroll-DnMC8nYC.js.br +0 -0
- package/app/dist/assets/TimelineDetailScroll-DnMC8nYC.js.gz +0 -0
- package/app/dist/assets/{TimelineFileDiffBlock-BJt7kifl.js → TimelineFileDiffBlock-D8pKEcE0.js} +1 -1
- package/app/dist/assets/TimelineFileDiffBlock-D8pKEcE0.js.br +0 -0
- package/app/dist/assets/TimelineFileDiffBlock-D8pKEcE0.js.gz +0 -0
- package/app/dist/assets/{TimelineSelectionMenu-DrK39LAT.js → TimelineSelectionMenu-DDYrgVgK.js} +1 -1
- package/app/dist/assets/TimelineSelectionMenu-DDYrgVgK.js.br +0 -0
- package/app/dist/assets/TimelineSelectionMenu-DDYrgVgK.js.gz +0 -0
- package/app/dist/assets/{ToolsView-4tUvUv2U.js → ToolsView-CXmmNmMz.js} +1 -1
- package/app/dist/assets/ToolsView-CXmmNmMz.js.br +0 -0
- package/app/dist/assets/ToolsView-CXmmNmMz.js.gz +0 -0
- package/app/dist/assets/{ToolsViewSplits-BWOxgNc1.js → ToolsViewSplits-VIMb0WxO.js} +2 -2
- package/app/dist/assets/ToolsViewSplits-VIMb0WxO.js.br +0 -0
- package/app/dist/assets/ToolsViewSplits-VIMb0WxO.js.gz +0 -0
- package/app/dist/assets/{WaveformVisualizer-C1SzIkiu.js → WaveformVisualizer-CyOfIcDU.js} +1 -1
- package/app/dist/assets/WaveformVisualizer-CyOfIcDU.js.br +0 -0
- package/app/dist/assets/WaveformVisualizer-CyOfIcDU.js.gz +0 -0
- package/app/dist/assets/{absolute-file-path-CbI5cppS.js → absolute-file-path-BxWHDkiV.js} +1 -1
- package/app/dist/assets/{app-fixed-tab-navigation-Cv4Tj7xZ.js → app-fixed-tab-navigation-nG5duhr6.js} +1 -1
- package/app/dist/assets/app-fixed-tab-navigation-nG5duhr6.js.br +0 -0
- package/app/dist/assets/app-fixed-tab-navigation-nG5duhr6.js.gz +0 -0
- package/app/dist/assets/{audio-input-device-preference-D8tr0bqw.js → audio-input-device-preference-Civxk2e_.js} +1 -1
- package/app/dist/assets/audio-input-device-preference-Civxk2e_.js.br +0 -0
- package/app/dist/assets/audio-input-device-preference-Civxk2e_.js.gz +0 -0
- package/app/dist/assets/{bottom-anchored-scroll-body-VYrnz8Hl.js → bottom-anchored-scroll-body-izL_2xQo.js} +1 -1
- package/app/dist/assets/bottom-anchored-scroll-body-izL_2xQo.js.br +0 -0
- package/app/dist/assets/bottom-anchored-scroll-body-izL_2xQo.js.gz +0 -0
- package/app/dist/assets/{browser-url-jhAVtSw2.js → browser-url-DQsPFWqd.js} +1 -1
- package/app/dist/assets/browser-url-DQsPFWqd.js.br +0 -0
- package/app/dist/assets/browser-url-DQsPFWqd.js.gz +0 -0
- package/app/dist/assets/{checkbox-qaQbU8-H.js → checkbox-Dxs9oAMl.js} +1 -1
- package/app/dist/assets/checkbox-Dxs9oAMl.js.br +0 -0
- package/app/dist/assets/checkbox-Dxs9oAMl.js.gz +0 -0
- package/app/dist/assets/{code-loading-skeletons-pfQDO26Y.js → code-loading-skeletons-CkiXPS0M.js} +1 -1
- package/app/dist/assets/code-loading-skeletons-CkiXPS0M.js.br +0 -0
- package/app/dist/assets/code-loading-skeletons-CkiXPS0M.js.gz +0 -0
- package/app/dist/assets/{code-rendering-CuFk1qJ1.js → code-rendering-DjLdb6cB.js} +1 -1
- package/app/dist/assets/{code-theme-registration-wCS4GRn4.js → code-theme-registration-DWaGQiqG.js} +1 -1
- package/app/dist/assets/{detail-card-C3OH86kJ.js → detail-card-BFm1NEQz.js} +1 -1
- package/app/dist/assets/detail-card-BFm1NEQz.js.br +0 -0
- package/app/dist/assets/detail-card-BFm1NEQz.js.gz +0 -0
- package/app/dist/assets/{diff-stats-tally-DkIHmiEl.js → diff-stats-tally-DQHS3tHN.js} +1 -1
- package/app/dist/assets/diff-stats-tally-DQHS3tHN.js.br +0 -0
- package/app/dist/assets/diff-stats-tally-DQHS3tHN.js.gz +0 -0
- package/app/dist/assets/{dist-CWXlD45B.js → dist-DCULoGTS.js} +1 -1
- package/app/dist/assets/dist-DCULoGTS.js.br +0 -0
- package/app/dist/assets/dist-DCULoGTS.js.gz +0 -0
- package/app/dist/assets/{environment-mutations-BrA6u8Ev.js → environment-mutations-Zes88JN-.js} +1 -1
- package/app/dist/assets/environment-mutations-Zes88JN-.js.br +0 -0
- package/app/dist/assets/environment-mutations-Zes88JN-.js.gz +0 -0
- package/app/dist/assets/{environment-workspace-display-0oqBMXMB.js → environment-workspace-display-Blt7U9Mn.js} +3 -3
- package/app/dist/assets/environment-workspace-display-Blt7U9Mn.js.br +0 -0
- package/app/dist/assets/environment-workspace-display-Blt7U9Mn.js.gz +0 -0
- package/app/dist/assets/{event-code-block-BfPSBXNn.js → event-code-block-QXnzoFqm.js} +1 -1
- package/app/dist/assets/event-code-block-QXnzoFqm.js.br +0 -0
- package/app/dist/assets/event-code-block-QXnzoFqm.js.gz +0 -0
- package/app/dist/assets/{expandable-text-01SvfXRm.js → expandable-text-DkUA9RQT.js} +1 -1
- package/app/dist/assets/expandable-text-DkUA9RQT.js.br +0 -0
- package/app/dist/assets/expandable-text-DkUA9RQT.js.gz +0 -0
- package/app/dist/assets/{file-opener-preference-C5_P-Zfr.js → file-opener-preference-CXZHmESv.js} +1 -1
- package/app/dist/assets/{file-path-link-Ddg7Fzor.js → file-path-link-D7DFjBWZ.js} +1 -1
- package/app/dist/assets/file-path-link-D7DFjBWZ.js.br +0 -0
- package/app/dist/assets/file-path-link-D7DFjBWZ.js.gz +0 -0
- package/app/dist/assets/{host-mutations-CAtir6jv.js → host-mutations-Fl0RjER0.js} +1 -1
- package/app/dist/assets/host-mutations-Fl0RjER0.js.br +0 -0
- package/app/dist/assets/host-mutations-Fl0RjER0.js.gz +0 -0
- package/app/dist/assets/{icon-extended-D2fR2GTF.js → icon-extended-C0LTNXfN.js} +1 -1
- package/app/dist/assets/icon-extended-C0LTNXfN.js.br +0 -0
- package/app/dist/assets/icon-extended-C0LTNXfN.js.gz +0 -0
- package/app/dist/assets/{image-lightbox-Dhmri6WK.js → image-lightbox-DhNslR-8.js} +1 -1
- package/app/dist/assets/image-lightbox-DhNslR-8.js.br +0 -0
- package/app/dist/assets/image-lightbox-DhNslR-8.js.gz +0 -0
- package/app/dist/assets/index-C2K528W0.css +2 -0
- package/app/dist/assets/index-C2K528W0.css.br +0 -0
- package/app/dist/assets/index-C2K528W0.css.gz +0 -0
- package/app/dist/assets/{index-CfvM6UcU.js → index-DCps_qBD.js} +8 -8
- package/app/dist/assets/index-DCps_qBD.js.br +0 -0
- package/app/dist/assets/index-DCps_qBD.js.gz +0 -0
- package/app/dist/assets/{inline-rename-editor-Bg8SXoZ3.js → inline-rename-editor-nrH2d_Gy.js} +1 -1
- package/app/dist/assets/inline-rename-editor-nrH2d_Gy.js.br +0 -0
- package/app/dist/assets/inline-rename-editor-nrH2d_Gy.js.gz +0 -0
- package/app/dist/assets/{launcherRow-CqPaUYWn.js → launcherRow-CVYGyeOl.js} +1 -1
- package/app/dist/assets/launcherRow-CVYGyeOl.js.br +0 -0
- package/app/dist/assets/launcherRow-CVYGyeOl.js.gz +0 -0
- package/app/dist/assets/{localhost-link-rewrite-description-DP-bXSL8.js → localhost-link-rewrite-description-C0FphFZq.js} +1 -1
- package/app/dist/assets/localhost-link-rewrite-description-C0FphFZq.js.br +0 -0
- package/app/dist/assets/localhost-link-rewrite-description-C0FphFZq.js.gz +0 -0
- package/app/dist/assets/{machine-provider-queries-CoghZyj9.js → machine-provider-queries-BTz8Sz3J.js} +1 -1
- package/app/dist/assets/{machine-server-access-Drk0mdHH.js → machine-server-access-CGfd5e1r.js} +1 -1
- package/app/dist/assets/{markdown-file-image-routing-BJjI1Te3.js → markdown-file-image-routing-BhGjphhz.js} +1 -1
- package/app/dist/assets/{markdown-html-BU8qsXmq.js → markdown-html-CLi3FhDR.js} +1 -1
- package/app/dist/assets/markdown-html-CLi3FhDR.js.br +0 -0
- package/app/dist/assets/markdown-html-CLi3FhDR.js.gz +0 -0
- package/app/dist/assets/{markdown-local-file-link-D-MSnVWD.js → markdown-local-file-link-BROpdQPF.js} +1 -1
- package/app/dist/assets/markdown-local-file-link-BROpdQPF.js.br +0 -0
- package/app/dist/assets/markdown-local-file-link-BROpdQPF.js.gz +0 -0
- package/app/dist/assets/{markdown-preview-BLL1QuNp.js → markdown-preview-CGXXNhJo.js} +3 -3
- package/app/dist/assets/markdown-preview-CGXXNhJo.js.br +0 -0
- package/app/dist/assets/markdown-preview-CGXXNhJo.js.gz +0 -0
- package/app/dist/assets/{markdown-prompt-mentions-B5LVmCbO.js → markdown-prompt-mentions-CPWKCtMa.js} +1 -1
- package/app/dist/assets/markdown-prompt-mentions-CPWKCtMa.js.br +0 -0
- package/app/dist/assets/markdown-prompt-mentions-CPWKCtMa.js.gz +0 -0
- package/app/dist/assets/{model-load-error-message-Dmp1hUNg.js → model-load-error-message-CH_k4E7q.js} +1 -1
- package/app/dist/assets/model-load-error-message-CH_k4E7q.js.br +0 -0
- package/app/dist/assets/model-load-error-message-CH_k4E7q.js.gz +0 -0
- package/app/dist/assets/onboarding-telemetry-BXIyQ5F4.js +1 -0
- package/app/dist/assets/{open-in-editor-button-D0wnpT6x.js → open-in-editor-button-tA10Nkqn.js} +1 -1
- package/app/dist/assets/open-in-editor-button-tA10Nkqn.js.br +0 -0
- package/app/dist/assets/open-in-editor-button-tA10Nkqn.js.gz +0 -0
- package/app/dist/assets/{page-shell-CgSxnF9m.js → page-shell-CNCVT3Uj.js} +1 -1
- package/app/dist/assets/page-shell-CNCVT3Uj.js.br +0 -0
- package/app/dist/assets/page-shell-CNCVT3Uj.js.gz +0 -0
- package/app/dist/assets/{pierre-worker-pool-CHGWu76e.js → pierre-worker-pool-pXJFsMd7.js} +1 -1
- package/app/dist/assets/pierre-worker-pool-pXJFsMd7.js.br +0 -0
- package/app/dist/assets/pierre-worker-pool-pXJFsMd7.js.gz +0 -0
- package/app/dist/assets/{plugin-detail-navigation-DuR8_JCx.js → plugin-detail-navigation-SAqiVR3K.js} +1 -1
- package/app/dist/assets/plugin-detail-navigation-SAqiVR3K.js.br +0 -0
- package/app/dist/assets/plugin-detail-navigation-SAqiVR3K.js.gz +0 -0
- package/app/dist/assets/{plugin-frontend-D5ijLuKC.js → plugin-frontend-DoWZV45B.js} +3 -3
- package/app/dist/assets/plugin-frontend-DoWZV45B.js.br +0 -0
- package/app/dist/assets/plugin-frontend-DoWZV45B.js.gz +0 -0
- package/app/dist/assets/{plugin-ui-Dpa8hcuk.js → plugin-ui-Cu8MrXLJ.js} +1 -1
- package/app/dist/assets/plugin-ui-Cu8MrXLJ.js.br +0 -0
- package/app/dist/assets/plugin-ui-Cu8MrXLJ.js.gz +0 -0
- package/app/dist/assets/{project-default-execution-options-query-DfOIRKKL.js → project-default-execution-options-query-gaQEWNK0.js} +1 -1
- package/app/dist/assets/{queued-editor-typeahead-layout-Czaq8Cl9.js → queued-editor-typeahead-layout-DTUSPVuA.js} +1 -1
- package/app/dist/assets/queued-editor-typeahead-layout-DTUSPVuA.js.br +0 -0
- package/app/dist/assets/queued-editor-typeahead-layout-DTUSPVuA.js.gz +0 -0
- package/app/dist/assets/{queued-messages-layout-B5xwiued.js → queued-messages-layout-Bj1foecI.js} +1 -1
- package/app/dist/assets/queued-messages-layout-Bj1foecI.js.br +0 -0
- package/app/dist/assets/queued-messages-layout-Bj1foecI.js.gz +0 -0
- package/app/dist/assets/{resource-list-BKpxiO2e.js → resource-list-DLZLjUCf.js} +1 -1
- package/app/dist/assets/resource-list-DLZLjUCf.js.br +0 -0
- package/app/dist/assets/resource-list-DLZLjUCf.js.gz +0 -0
- package/app/dist/assets/root-compose-create-preference-Bv_dFEsH.js +1 -0
- package/app/dist/assets/{save-file-CNFl2iiR.js → save-file-B8sl9wgP.js} +1 -1
- package/app/dist/assets/{settings-nav-C9-jh_HN.js → settings-nav-D5tWYG52.js} +1 -1
- package/app/dist/assets/settings-nav-D5tWYG52.js.br +0 -0
- package/app/dist/assets/settings-nav-D5tWYG52.js.gz +0 -0
- package/app/dist/assets/{settings-sections-BMr_XU5l.js → settings-sections-Dfo35J2q.js} +1 -1
- package/app/dist/assets/settings-sections-Dfo35J2q.js.br +0 -0
- package/app/dist/assets/settings-sections-Dfo35J2q.js.gz +0 -0
- package/app/dist/assets/{shortcut-pill-_XSUZHxZ.js → shortcut-pill-BMlNncTw.js} +1 -1
- package/app/dist/assets/{sidebarTouchSensor-DG_A1RmT.js → sidebarTouchSensor-Da_E8eSx.js} +1 -1
- package/app/dist/assets/sidebarTouchSensor-Da_E8eSx.js.br +0 -0
- package/app/dist/assets/sidebarTouchSensor-Da_E8eSx.js.gz +0 -0
- package/app/dist/assets/{switch-BjJ8825r.js → switch-BRYzbFH-.js} +1 -1
- package/app/dist/assets/switch-BRYzbFH-.js.br +0 -0
- package/app/dist/assets/switch-BRYzbFH-.js.gz +0 -0
- package/app/dist/assets/{textarea-DY_k-BJR.js → textarea-DpRLVuDl.js} +1 -1
- package/app/dist/assets/{thread-event-parser-ma5CGP66.js → thread-event-parser-BrLyjs4v.js} +1 -1
- package/app/dist/assets/thread-event-parser-BrLyjs4v.js.br +0 -0
- package/app/dist/assets/thread-event-parser-BrLyjs4v.js.gz +0 -0
- package/app/dist/assets/{thread-panel-queries-BXeOzk_6.js → thread-panel-queries-s8vzntf7.js} +1 -1
- package/app/dist/assets/thread-panel-queries-s8vzntf7.js.br +0 -0
- package/app/dist/assets/thread-panel-queries-s8vzntf7.js.gz +0 -0
- package/app/dist/assets/{thread-runtime-mutations-DmKkyel0.js → thread-runtime-mutations-BOdkZ-H-.js} +1 -1
- package/app/dist/assets/thread-runtime-mutations-BOdkZ-H-.js.br +0 -0
- package/app/dist/assets/thread-runtime-mutations-BOdkZ-H-.js.gz +0 -0
- package/app/dist/assets/{thread-terminal-queries-AFVZ5K6p.js → thread-terminal-queries-Blou76c_.js} +1 -1
- package/app/dist/assets/thread-terminal-queries-Blou76c_.js.br +0 -0
- package/app/dist/assets/thread-terminal-queries-Blou76c_.js.gz +0 -0
- package/app/dist/assets/{threadRecentItems-DXsdcpBk.js → threadRecentItems-BiCe3SkL.js} +1 -1
- package/app/dist/assets/threadRecentItems-BiCe3SkL.js.br +0 -0
- package/app/dist/assets/threadRecentItems-BiCe3SkL.js.gz +0 -0
- package/app/dist/assets/{threadWorkspaceOpenPath-DwKd-s_5.js → threadWorkspaceOpenPath-C9eC_XGN.js} +1 -1
- package/app/dist/assets/threadWorkspaceOpenPath-C9eC_XGN.js.br +0 -0
- package/app/dist/assets/threadWorkspaceOpenPath-C9eC_XGN.js.gz +0 -0
- package/app/dist/assets/{title-bar-scroll-fade-Dw_BPLyx.js → title-bar-scroll-fade-OrK4M84v.js} +1 -1
- package/app/dist/assets/title-bar-scroll-fade-OrK4M84v.js.br +0 -0
- package/app/dist/assets/title-bar-scroll-fade-OrK4M84v.js.gz +0 -0
- package/app/dist/assets/{truncate-start-CGyRoGtG.js → truncate-start-Ck1IPV62.js} +1 -1
- package/app/dist/assets/{use-hover-popover-DzrAfLzd.js → use-hover-popover-uokpMJ80.js} +1 -1
- package/app/dist/assets/use-hover-popover-uokpMJ80.js.br +0 -0
- package/app/dist/assets/use-hover-popover-uokpMJ80.js.gz +0 -0
- package/app/dist/assets/{useElementWidth-Kv5FX-9C.js → useElementWidth-EbzKQ0bg.js} +1 -1
- package/app/dist/assets/useElementWidth-EbzKQ0bg.js.br +0 -0
- package/app/dist/assets/useElementWidth-EbzKQ0bg.js.gz +0 -0
- package/app/dist/assets/{useLocalOpenTargets-B7rqz64L.js → useLocalOpenTargets-CtvcdlZg.js} +1 -1
- package/app/dist/assets/useLocalOpenTargets-CtvcdlZg.js.br +0 -0
- package/app/dist/assets/useLocalOpenTargets-CtvcdlZg.js.gz +0 -0
- package/app/dist/assets/{usePanelResizeSnap-Dizp45Ab.js → usePanelResizeSnap-CuwA4rg3.js} +1 -1
- package/app/dist/assets/usePanelResizeSnap-CuwA4rg3.js.br +0 -0
- package/app/dist/assets/usePanelResizeSnap-CuwA4rg3.js.gz +0 -0
- package/app/dist/assets/{usePanelTerminals-ByzphxXd.js → usePanelTerminals-BZhTVWNX.js} +1 -1
- package/app/dist/assets/usePanelTerminals-BZhTVWNX.js.br +0 -0
- package/app/dist/assets/usePanelTerminals-BZhTVWNX.js.gz +0 -0
- package/app/dist/assets/{usePathSuggestions-Bd5UhdCh.js → usePathSuggestions-DZ1XPM_t.js} +1 -1
- package/app/dist/assets/usePathSuggestions-DZ1XPM_t.js.br +0 -0
- package/app/dist/assets/usePathSuggestions-DZ1XPM_t.js.gz +0 -0
- package/app/dist/assets/{useResolvedLiveFileTarget-x5Gd-Gzx.js → useResolvedLiveFileTarget-DlZUgf7A.js} +1 -1
- package/app/dist/assets/useResolvedLiveFileTarget-DlZUgf7A.js.br +0 -0
- package/app/dist/assets/useResolvedLiveFileTarget-DlZUgf7A.js.gz +0 -0
- package/app/dist/assets/{useThreadTerminalController-CUnfO0Da.js → useThreadTerminalController-D4Cr2aY0.js} +1 -1
- package/app/dist/assets/useThreadTerminalController-D4Cr2aY0.js.br +0 -0
- package/app/dist/assets/useThreadTerminalController-D4Cr2aY0.js.gz +0 -0
- package/app/dist/assets/{workspace-change-summary-CLNpSq_E.js → workspace-change-summary-C1EKX0Np.js} +1 -1
- package/app/dist/assets/workspace-change-summary-C1EKX0Np.js.br +0 -0
- package/app/dist/assets/workspace-change-summary-C1EKX0Np.js.gz +0 -0
- package/app/dist/assets/{workspace-checkout-display-Aad1Wxi4.js → workspace-checkout-display-DRAc3j4u.js} +4 -4
- package/app/dist/assets/workspace-checkout-display-DRAc3j4u.js.br +0 -0
- package/app/dist/assets/workspace-checkout-display-DRAc3j4u.js.gz +0 -0
- package/app/dist/index.html +17 -17
- package/app/dist/index.html.br +0 -0
- package/app/dist/index.html.gz +0 -0
- package/dist/bb-app.js +1 -1
- package/dist/index.d.ts +64 -64
- package/dist/index.js +39 -34
- package/host-daemon/dist/bb +2 -2
- package/host-daemon/dist/daemon-bundle.mjs +9 -9
- package/host-daemon/dist/moonlet +2 -2
- package/host-daemon/dist/moonlet-chunks/{browser-LWDG5PCA.js → browser-3YADF5CZ.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{chunk-4BNITW7L.js → chunk-CJVCV7LA.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{chunk-5AOUW4I4.js → chunk-DYWN65E6.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{chunk-GUMXNH56.js → chunk-GJNT53PW.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/chunk-MNJOOMMT.js +2 -0
- package/host-daemon/dist/moonlet-chunks/{chunk-2QTAZF4P.js → chunk-OZFHGPH4.js} +2 -2
- package/host-daemon/dist/moonlet-chunks/{chunk-OW2VWWPF.js → chunk-UASCWFYV.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{chunk-3GDA5QRC.js → chunk-UBCGVKZ2.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{chunk-ZJ3M74CR.js → chunk-UZIJUXRX.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{chunk-I2TDLRZL.js → chunk-VRIDG567.js} +80 -80
- package/host-daemon/dist/moonlet-chunks/{chunk-LQ55GYT2.js → chunk-Z7UFAOBI.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{chunk-IRGDLZXQ.js → chunk-ZY4JRPPT.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{client-LVL2RUQ5.js → client-HJ57QVLD.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{commander-errors-RQKAT5HQ.js → commander-errors-VI7J6RNT.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{context-env-74PECPQU.js → context-env-C4YEBBVX.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{context-hints-GQMM7IUB.js → context-hints-FZ224BCX.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{diagnostics-GZNLDKFH.js → diagnostics-OU2KW3CN.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{environment-2OF5OYK6.js → environment-45XH2PJT.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{file-ICBUEP7H.js → file-OHC2H5AH.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{guide-I3LO3KWD.js → guide-T2HEZTCZ.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{machine-ZH4VN36Y.js → machine-7DB7FE7G.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{marketplace-72G2CIZT.js → marketplace-GSP2IPGS.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{permissions-ZKMW6XVA.js → permissions-SOZPETLR.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{plugin-J33MYYP6.js → plugin-672NQWPG.js} +26 -26
- package/host-daemon/dist/moonlet-chunks/{plugin-cli-proxy-KK4YO745.js → plugin-cli-proxy-YK6LMDCS.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{project-CAOBT6PT.js → project-KMNJH6RG.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{prompt-history-3CTG22DW.js → prompt-history-H3Y2IHDY.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{provider-T7SNTFH5.js → provider-EKKSYF2D.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{schedule-2G2I4DCW.js → schedule-KVSISSIR.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{server-R3LHIEJF.js → server-53I6IGAP.js} +2 -2
- package/host-daemon/dist/moonlet-chunks/{settings-WR7UCFPE.js → settings-MKGSGNIO.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{skill-GHMBJF4G.js → skill-DXINIPQ3.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{status-ES5SEMUE.js → status-BSMUYEAO.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{terminal-45KOGD2U.js → terminal-VKBGZFLN.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{theme-DEIR5VHK.js → theme-3YCCZBGC.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{thread-NNUIM6R7.js → thread-PFBPLD4F.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{updates-23J52P44.js → updates-OO7GE7UB.js} +1 -1
- package/host-daemon/dist/moonlet-chunks/{voice-CSQR656B.js → voice-ZJOSAJW7.js} +1 -1
- package/package.json +3 -3
- package/server/dist/builtin-plugins/account-pool/dist/app.js +9 -9
- package/server/dist/builtin-plugins/account-pool/skills/account-pool/SKILL.md +1 -1
- package/server/dist/builtin-plugins/agent-annotations/dist/app.js +2 -2
- package/server/dist/builtin-plugins/agent-board/dist/THIRD_PARTY_NOTICES.md +3 -3
- package/server/dist/builtin-plugins/agent-board/dist/app.js +6 -6
- package/server/dist/builtin-plugins/agent-board/dist/server.js +1 -1
- package/server/dist/builtin-plugins/ask-user-question/dist/app.js +6 -6
- package/server/dist/builtin-plugins/automations/dist/app.js +1 -1
- package/server/dist/builtin-plugins/automations/skills/automations/SKILL.md +1 -1
- package/server/dist/builtin-plugins/bb-account/dist/app.js +1 -1
- package/server/dist/builtin-plugins/bb-account/skills/bb-account/SKILL.md +1 -1
- package/server/dist/builtin-plugins/bb-ai/dist/server.js +2 -2
- package/server/dist/builtin-plugins/bb-ai/skills/bb-cloud-ai/SKILL.md +1 -1
- package/server/dist/builtin-plugins/bb-guide/dist/app.js +1 -1
- package/server/dist/builtin-plugins/bb-guide/dist/server.js +2 -2
- package/server/dist/builtin-plugins/bb-guide/package.json +2 -2
- package/server/dist/builtin-plugins/bb-guide/skills/bb-cli/SKILL.md +3 -3
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/SKILL.md +4 -4
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/backend-cli-agents.md +6 -6
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/backend-events.md +2 -2
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/backend-foundation.md +1 -1
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/backend-sdk.md +1 -1
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/distribution.md +2 -2
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/frontend-components.md +4 -4
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/frontend-core-slots.md +15 -15
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/frontend-hooks-and-ui.md +9 -9
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/providers.md +3 -3
- package/server/dist/builtin-plugins/bb-guide/skills/bb-plugin-authoring/references/quickstart.md +10 -10
- package/server/dist/builtin-plugins/bb-guide/skills/skill-creator/SKILL.md +2 -2
- package/server/dist/builtin-plugins/bb-guide/skills/submit-a-plugin/SKILL.md +3 -3
- package/server/dist/builtin-plugins/bb-guide/skills/submit-a-plugin/references/marketplace-entry.md +8 -8
- package/server/dist/builtin-plugins/bb-guide/skills/submit-a-plugin/references/plugin-release.md +1 -1
- package/server/dist/builtin-plugins/browser-automation/dist/app.js +1 -1
- package/server/dist/builtin-plugins/browser-automation/dist/server.js +2 -2
- package/server/dist/builtin-plugins/browser-automation/skills/browser-automation/SKILL.md +3 -3
- package/server/dist/builtin-plugins/composer/dist/app.js +4 -4
- package/server/dist/builtin-plugins/concurrency-limit/dist/app.js +1 -1
- package/server/dist/builtin-plugins/concurrency-limit/skills/concurrency-limit/SKILL.md +1 -1
- package/server/dist/builtin-plugins/connect/dist/app.js +2 -2
- package/server/dist/builtin-plugins/connect/skills/share-server-links/SKILL.md +1 -1
- package/server/dist/builtin-plugins/connect-next/dist/app.js +2 -2
- package/server/dist/builtin-plugins/connect-next/dist/server.js +1 -1
- package/server/dist/builtin-plugins/connect-next/skills/connect-next/SKILL.md +1 -1
- package/server/dist/builtin-plugins/custom-instructions/dist/app.js +1 -1
- package/server/dist/builtin-plugins/docs/dist/app.js +3 -3
- package/server/dist/builtin-plugins/docs/skills/docs/SKILL.md +1 -1
- package/server/dist/builtin-plugins/drafts/dist/app.js +1 -1
- package/server/dist/builtin-plugins/environment-git-worktree/dist/app.js +1 -1
- package/server/dist/builtin-plugins/environment-modal-sandbox/dist/app.js +1 -1
- package/server/dist/builtin-plugins/environment-modal-sandbox/dist/server.js +1 -1
- package/server/dist/builtin-plugins/environment-modal-sandbox/skills/modal-sandboxes/SKILL.md +5 -5
- package/server/dist/builtin-plugins/environment-project-checkout/dist/app.js +1 -1
- package/server/dist/builtin-plugins/github/dist/app.js +2 -2
- package/server/dist/builtin-plugins/github/dist/server.js +7 -7
- package/server/dist/builtin-plugins/github/package.json +2 -2
- package/server/dist/builtin-plugins/github/skills/github-change/SKILL.md +2 -2
- package/server/dist/builtin-plugins/github/skills/github-change/references/merging.md +8 -8
- package/server/dist/builtin-plugins/github-pr-status/dist/app.js +6 -6
- package/server/dist/builtin-plugins/inline-vis/dist/app.js +2 -2
- package/server/dist/builtin-plugins/inline-vis/skills/inline-vis/SKILL.md +2 -2
- package/server/dist/builtin-plugins/keep-awake/dist/app.js +1 -1
- package/server/dist/builtin-plugins/keep-awake/dist/server.js +1 -1
- package/server/dist/builtin-plugins/library/dist/app.js +2 -2
- package/server/dist/builtin-plugins/mail/skills/mail/SKILL.md +1 -1
- package/server/dist/builtin-plugins/marketplace.json +10 -10
- package/server/dist/builtin-plugins/mcp/dist/server.js +8 -8
- package/server/dist/builtin-plugins/mcp/skills/mcp/SKILL.md +1 -1
- package/server/dist/builtin-plugins/memory/dist/app.js +1 -1
- package/server/dist/builtin-plugins/memory/dist/server.js +4 -4
- package/server/dist/builtin-plugins/memory/skills/memory/SKILL.md +5 -5
- package/server/dist/builtin-plugins/monaco-editor/dist/app.js +1 -1
- package/server/dist/builtin-plugins/navigation/dist/app.js +1 -1
- package/server/dist/builtin-plugins/notify-feed/dist/app.js +3 -3
- package/server/dist/builtin-plugins/notify-feed/dist/server.js +2 -2
- package/server/dist/builtin-plugins/orbit/dist/app.js +2 -2
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/docs/handoff-to-new-conversation.md +1 -1
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/fixed-runner/linux-x64/manifest.json +4 -4
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/revision +1 -1
- package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/source.json +1 -1
- package/server/dist/builtin-plugins/orbit/dist/assets/plugins/moonlet/back/CLAUDE.md +5 -5
- package/server/dist/builtin-plugins/orbit/dist/assets/plugins/moonlet/front/CLAUDE.md +15 -15
- package/server/dist/builtin-plugins/orbit/dist/host.js +49 -49
- package/server/dist/builtin-plugins/orbit/dist/host.meta.json +1 -1
- package/server/dist/builtin-plugins/orbit/dist/server.js +148 -148
- package/server/dist/builtin-plugins/pdf-preview/dist/app.js +1 -1
- package/server/dist/builtin-plugins/plugin-api-docs/dist/app.js +2 -2
- package/server/dist/builtin-plugins/plugin-api-tester/dist/app.js +1 -1
- package/server/dist/builtin-plugins/prompt-library/dist/app.js +2 -2
- package/server/dist/builtin-plugins/prompt-library/skills/prompt-library/SKILL.md +1 -1
- package/server/dist/builtin-plugins/provider-acp/dist/app.js +1 -1
- package/server/dist/builtin-plugins/provider-acp/dist/host.js +5 -5
- package/server/dist/builtin-plugins/provider-acp/dist/host.meta.json +1 -1
- package/server/dist/builtin-plugins/provider-acp/dist/server.js +97 -97
- package/server/dist/builtin-plugins/provider-acp/skills/acp-provider/SKILL.md +9 -9
- package/server/dist/builtin-plugins/provider-claude-code/dist/app.js +1 -1
- package/server/dist/builtin-plugins/provider-claude-code/dist/host.js +3 -3
- package/server/dist/builtin-plugins/provider-claude-code/dist/host.meta.json +1 -1
- package/server/dist/builtin-plugins/provider-claude-code/dist/server.js +1 -1
- package/server/dist/builtin-plugins/provider-codex/dist/app.js +2 -2
- package/server/dist/builtin-plugins/provider-codex/dist/host.js +45 -45
- package/server/dist/builtin-plugins/provider-codex/dist/host.meta.json +1 -1
- package/server/dist/builtin-plugins/provider-codex/dist/server.js +1 -1
- package/server/dist/builtin-plugins/provider-pi/dist/app.js +1 -1
- package/server/dist/builtin-plugins/provider-pi/skills/pi-provider/SKILL.md +1 -1
- package/server/dist/builtin-plugins/provider-retry/dist/app.js +1 -1
- package/server/dist/builtin-plugins/provider-retry/skills/provider-retry/SKILL.md +1 -1
- package/server/dist/builtin-plugins/provider-usage/dist/app.js +12 -12
- package/server/dist/builtin-plugins/push-notifications/dist/app.js +2 -2
- package/server/dist/builtin-plugins/push-notifications/skills/push-notifications/SKILL.md +1 -1
- package/server/dist/builtin-plugins/scheduled-send/dist/app.js +1 -1
- package/server/dist/builtin-plugins/secrets/dist/app.js +1 -1
- package/server/dist/builtin-plugins/side-chat/dist/app.js +1 -1
- package/server/dist/builtin-plugins/storage-retention/dist/app.js +1 -1
- package/server/dist/builtin-plugins/storage-retention/dist/server.js +2 -2
- package/server/dist/builtin-plugins/storage-retention/skills/storage-retention/SKILL.md +5 -5
- package/server/dist/builtin-plugins/tasks/dist/app.js +4 -4
- package/server/dist/builtin-plugins/tasks/skills/tasks/SKILL.md +1 -1
- package/server/dist/builtin-plugins/theme-preview/dist/app.js +2 -2
- package/server/dist/builtin-plugins/theme-preview/skills/bb-theme-authoring/SKILL.md +1 -1
- package/server/dist/builtin-plugins/thread-list/dist/app.js +2 -2
- package/server/dist/builtin-plugins/thread-list/dist/server.js +2 -2
- package/server/dist/builtin-plugins/workflows/dist/app.js +1 -1
- package/server/dist/builtin-plugins/workflows/dist/server.js +4 -4
- package/server/dist/builtin-plugins/workflows/skills/workflows/SKILL.md +4 -4
- package/server/dist/builtin-plugins/workflows/skills/workflows/references/authoring.md +7 -7
- package/server/dist/builtin-skills/bb-cli/SKILL.md +3 -3
- package/server/dist/builtin-skills/bb-plugin-authoring/SKILL.md +4 -4
- package/server/dist/builtin-skills/bb-plugin-authoring/references/backend-cli-agents.md +6 -6
- package/server/dist/builtin-skills/bb-plugin-authoring/references/backend-events.md +2 -2
- package/server/dist/builtin-skills/bb-plugin-authoring/references/backend-foundation.md +1 -1
- package/server/dist/builtin-skills/bb-plugin-authoring/references/backend-sdk.md +1 -1
- package/server/dist/builtin-skills/bb-plugin-authoring/references/distribution.md +2 -2
- package/server/dist/builtin-skills/bb-plugin-authoring/references/frontend-components.md +4 -4
- package/server/dist/builtin-skills/bb-plugin-authoring/references/frontend-core-slots.md +15 -15
- package/server/dist/builtin-skills/bb-plugin-authoring/references/frontend-hooks-and-ui.md +9 -9
- package/server/dist/builtin-skills/bb-plugin-authoring/references/providers.md +3 -3
- package/server/dist/builtin-skills/bb-plugin-authoring/references/quickstart.md +10 -10
- package/server/dist/builtin-skills/skill-creator/SKILL.md +2 -2
- package/server/dist/builtin-skills/submit-a-plugin/SKILL.md +3 -3
- package/server/dist/builtin-skills/submit-a-plugin/references/marketplace-entry.md +8 -8
- package/server/dist/builtin-skills/submit-a-plugin/references/plugin-release.md +1 -1
- package/server/dist/start-server.js +75 -70
- package/app/dist/assets/AddMachineDialog-BHF-GkBG.js.br +0 -0
- package/app/dist/assets/AddMachineDialog-BHF-GkBG.js.gz +0 -0
- package/app/dist/assets/AppFileExternalNavigationDispatcher-BNbJsP1g.js.br +0 -0
- package/app/dist/assets/AppFileExternalNavigationDispatcher-BNbJsP1g.js.gz +0 -0
- package/app/dist/assets/BrowserTabDeck-BlOoU-vR.js.br +0 -0
- package/app/dist/assets/BrowserTabDeck-BlOoU-vR.js.gz +0 -0
- package/app/dist/assets/CommandPaletteBody-CBbTgLrW.js.br +0 -0
- package/app/dist/assets/CommandPaletteBody-CBbTgLrW.js.gz +0 -0
- package/app/dist/assets/DiffHost-DYBSO1_c.js.br +0 -0
- package/app/dist/assets/DiffHost-DYBSO1_c.js.gz +0 -0
- package/app/dist/assets/ExperimentalFileLinkMenu-DO2lGQoK.js.br +0 -0
- package/app/dist/assets/ExperimentalFileLinkMenu-DO2lGQoK.js.gz +0 -0
- package/app/dist/assets/FilePreview-ORcgsTax.js.br +0 -0
- package/app/dist/assets/FilePreview-ORcgsTax.js.gz +0 -0
- package/app/dist/assets/GitDiffCardHeader-i4vt7tT5.js.br +0 -0
- package/app/dist/assets/GitDiffCardHeader-i4vt7tT5.js.gz +0 -0
- package/app/dist/assets/InlineMessageEditorFrame-y089xCLP.js.br +0 -0
- package/app/dist/assets/InlineMessageEditorFrame-y089xCLP.js.gz +0 -0
- package/app/dist/assets/MachineLabel-D07WUIMh.js.br +0 -0
- package/app/dist/assets/MachineLabel-D07WUIMh.js.gz +0 -0
- package/app/dist/assets/MachineRenameDialog-RyrwvNas.js.br +0 -0
- package/app/dist/assets/MachineRenameDialog-RyrwvNas.js.gz +0 -0
- package/app/dist/assets/MachineSettingsView-Bg6Op62W.js.br +0 -0
- package/app/dist/assets/MachineSettingsView-Bg6Op62W.js.gz +0 -0
- package/app/dist/assets/MicrophonePreferences-DwsTYfON.js.br +0 -0
- package/app/dist/assets/MicrophonePreferences-DwsTYfON.js.gz +0 -0
- package/app/dist/assets/ModelReasoningMenu-Dth3XXm8.js.br +0 -0
- package/app/dist/assets/ModelReasoningMenu-Dth3XXm8.js.gz +0 -0
- package/app/dist/assets/MoonletDiff-Da65ABAI.js.br +0 -0
- package/app/dist/assets/MoonletDiff-Da65ABAI.js.gz +0 -0
- package/app/dist/assets/MoonletDiffSplit-Phl7m23w.js.br +0 -0
- package/app/dist/assets/MoonletDiffSplit-Phl7m23w.js.gz +0 -0
- package/app/dist/assets/MoonletSourceCode-C5aa88dK.js.br +0 -0
- package/app/dist/assets/MoonletSourceCode-C5aa88dK.js.gz +0 -0
- package/app/dist/assets/NewTabPage-BKkv1maV.js.br +0 -0
- package/app/dist/assets/NewTabPage-BKkv1maV.js.gz +0 -0
- package/app/dist/assets/NewThreadComposer-00DY4i8k.js.br +0 -0
- package/app/dist/assets/NewThreadComposer-00DY4i8k.js.gz +0 -0
- package/app/dist/assets/OnboardingFlow-GwpuTTqu.js.br +0 -0
- package/app/dist/assets/OnboardingFlow-GwpuTTqu.js.gz +0 -0
- package/app/dist/assets/OptionPicker-Cy_W5NWS.js.br +0 -0
- package/app/dist/assets/OptionPicker-Cy_W5NWS.js.gz +0 -0
- package/app/dist/assets/PaletteShell-CRwrb4lb.js.br +0 -0
- package/app/dist/assets/PaletteShell-CRwrb4lb.js.gz +0 -0
- package/app/dist/assets/PaneMaximizeButton-CMp4cCoZ.js.br +0 -0
- package/app/dist/assets/PaneMaximizeButton-CMp4cCoZ.js.gz +0 -0
- package/app/dist/assets/PierreLineSelectionActions-BXbCJV8P.js.br +0 -0
- package/app/dist/assets/PierreLineSelectionActions-BXbCJV8P.js.gz +0 -0
- package/app/dist/assets/PluginPanelRightPanelHost-CuKRaAaL.js.br +0 -0
- package/app/dist/assets/PluginPanelRightPanelHost-CuKRaAaL.js.gz +0 -0
- package/app/dist/assets/PluginSettingsSections-DJo5h7Qh.js.br +0 -0
- package/app/dist/assets/PluginSettingsSections-DJo5h7Qh.js.gz +0 -0
- package/app/dist/assets/PluginThreadChat-BV6OMCzu.js.br +0 -0
- package/app/dist/assets/PluginThreadChat-BV6OMCzu.js.gz +0 -0
- package/app/dist/assets/ProjectDetailSettingsView-DdF6YsSg.js.br +0 -0
- package/app/dist/assets/ProjectDetailSettingsView-DdF6YsSg.js.gz +0 -0
- package/app/dist/assets/ProjectMachineSetupDialog-CtbI4XxM.js.br +0 -0
- package/app/dist/assets/ProjectMachineSetupDialog-CtbI4XxM.js.gz +0 -0
- package/app/dist/assets/ProjectsSettingsSection-BT1kXbPn.js.br +0 -0
- package/app/dist/assets/ProjectsSettingsSection-BT1kXbPn.js.gz +0 -0
- package/app/dist/assets/QueuedMessagesList-D1aAchqp.js.br +0 -0
- package/app/dist/assets/QueuedMessagesList-D1aAchqp.js.gz +0 -0
- package/app/dist/assets/RemotePathBrowser-vPIL8lVm.js.br +0 -0
- package/app/dist/assets/RemotePathBrowser-vPIL8lVm.js.gz +0 -0
- package/app/dist/assets/RootComposeView-DV6JGFlA.js.br +0 -0
- package/app/dist/assets/RootComposeView-DV6JGFlA.js.gz +0 -0
- package/app/dist/assets/SecondaryPanelLayout-BpHDgFJ_.js.br +0 -0
- package/app/dist/assets/SecondaryPanelLayout-BpHDgFJ_.js.gz +0 -0
- package/app/dist/assets/ServerMoveOverlayView-CGkGzv8t.js.br +0 -0
- package/app/dist/assets/ServerMoveOverlayView-CGkGzv8t.js.gz +0 -0
- package/app/dist/assets/SettingsSidebar-1XC0Uxwo.js.br +0 -0
- package/app/dist/assets/SettingsSidebar-1XC0Uxwo.js.gz +0 -0
- package/app/dist/assets/SettingsView-BUobmesT.js +0 -7
- package/app/dist/assets/SettingsView-BUobmesT.js.br +0 -0
- package/app/dist/assets/SettingsView-BUobmesT.js.gz +0 -0
- package/app/dist/assets/SidebarFooterCustomize-D7sLYPwD.js.br +0 -0
- package/app/dist/assets/SidebarFooterCustomize-D7sLYPwD.js.gz +0 -0
- package/app/dist/assets/SidebarVisibilityCustomize-DpTzFoGl.js.br +0 -0
- package/app/dist/assets/SidebarVisibilityCustomize-DpTzFoGl.js.gz +0 -0
- package/app/dist/assets/SourceCodeHost-DVEXLJK1.js.br +0 -0
- package/app/dist/assets/SourceCodeHost-DVEXLJK1.js.gz +0 -0
- package/app/dist/assets/SplitWorkspaceRoute-BfxQQdOx.js.br +0 -0
- package/app/dist/assets/SplitWorkspaceRoute-BfxQQdOx.js.gz +0 -0
- package/app/dist/assets/TerminalOutputBlock-COQNamKR.js.br +0 -0
- package/app/dist/assets/TerminalOutputBlock-COQNamKR.js.gz +0 -0
- package/app/dist/assets/ThreadActionsMenu-064Gcy7T.js.br +0 -0
- package/app/dist/assets/ThreadActionsMenu-064Gcy7T.js.gz +0 -0
- package/app/dist/assets/ThreadDetailView-CjoXzweq.js.br +0 -0
- package/app/dist/assets/ThreadDetailView-CjoXzweq.js.gz +0 -0
- package/app/dist/assets/ThreadSearchPaletteMode-CwdePsHK.js.br +0 -0
- package/app/dist/assets/ThreadSearchPaletteMode-CwdePsHK.js.gz +0 -0
- package/app/dist/assets/ThreadSecondaryPanel-CtYtgTla.js.br +0 -0
- package/app/dist/assets/ThreadSecondaryPanel-CtYtgTla.js.gz +0 -0
- package/app/dist/assets/ThreadSecondaryPanelTabContent-BNQi8b2n.js.br +0 -0
- package/app/dist/assets/ThreadSecondaryPanelTabContent-BNQi8b2n.js.gz +0 -0
- package/app/dist/assets/ThreadStatusGlyph-DxxHDn0P.js.br +0 -0
- package/app/dist/assets/ThreadStatusGlyph-DxxHDn0P.js.gz +0 -0
- package/app/dist/assets/ThreadTerminalPanel-fb5Kk0KG.js.br +0 -0
- package/app/dist/assets/ThreadTerminalPanel-fb5Kk0KG.js.gz +0 -0
- package/app/dist/assets/ThreadTerminalView-BiGdt3Fd.js.br +0 -0
- package/app/dist/assets/ThreadTerminalView-BiGdt3Fd.js.gz +0 -0
- package/app/dist/assets/ThreadTimelineNavigationContext-epkIpS1J.js.br +0 -0
- package/app/dist/assets/ThreadTimelineNavigationContext-epkIpS1J.js.gz +0 -0
- package/app/dist/assets/TimelineDetailScroll-D8gge5Y9.js.br +0 -0
- package/app/dist/assets/TimelineDetailScroll-D8gge5Y9.js.gz +0 -0
- package/app/dist/assets/TimelineFileDiffBlock-BJt7kifl.js.br +0 -0
- package/app/dist/assets/TimelineFileDiffBlock-BJt7kifl.js.gz +0 -0
- package/app/dist/assets/TimelineSelectionMenu-DrK39LAT.js.br +0 -0
- package/app/dist/assets/TimelineSelectionMenu-DrK39LAT.js.gz +0 -0
- package/app/dist/assets/ToolsView-4tUvUv2U.js.br +0 -0
- package/app/dist/assets/ToolsView-4tUvUv2U.js.gz +0 -0
- package/app/dist/assets/ToolsViewSplits-BWOxgNc1.js.br +0 -0
- package/app/dist/assets/ToolsViewSplits-BWOxgNc1.js.gz +0 -0
- package/app/dist/assets/WaveformVisualizer-C1SzIkiu.js.br +0 -0
- package/app/dist/assets/WaveformVisualizer-C1SzIkiu.js.gz +0 -0
- package/app/dist/assets/app-fixed-tab-navigation-Cv4Tj7xZ.js.br +0 -0
- package/app/dist/assets/app-fixed-tab-navigation-Cv4Tj7xZ.js.gz +0 -0
- package/app/dist/assets/audio-input-device-preference-D8tr0bqw.js.br +0 -0
- package/app/dist/assets/audio-input-device-preference-D8tr0bqw.js.gz +0 -0
- package/app/dist/assets/bottom-anchored-scroll-body-VYrnz8Hl.js.br +0 -0
- package/app/dist/assets/bottom-anchored-scroll-body-VYrnz8Hl.js.gz +0 -0
- package/app/dist/assets/browser-url-jhAVtSw2.js.br +0 -0
- package/app/dist/assets/browser-url-jhAVtSw2.js.gz +0 -0
- package/app/dist/assets/checkbox-qaQbU8-H.js.br +0 -0
- package/app/dist/assets/checkbox-qaQbU8-H.js.gz +0 -0
- package/app/dist/assets/code-loading-skeletons-pfQDO26Y.js.br +0 -0
- package/app/dist/assets/code-loading-skeletons-pfQDO26Y.js.gz +0 -0
- package/app/dist/assets/detail-card-C3OH86kJ.js.br +0 -0
- package/app/dist/assets/detail-card-C3OH86kJ.js.gz +0 -0
- package/app/dist/assets/diff-stats-tally-DkIHmiEl.js.br +0 -0
- package/app/dist/assets/diff-stats-tally-DkIHmiEl.js.gz +0 -0
- package/app/dist/assets/dist-CWXlD45B.js.br +0 -0
- package/app/dist/assets/dist-CWXlD45B.js.gz +0 -0
- package/app/dist/assets/environment-mutations-BrA6u8Ev.js.br +0 -0
- package/app/dist/assets/environment-mutations-BrA6u8Ev.js.gz +0 -0
- package/app/dist/assets/environment-workspace-display-0oqBMXMB.js.br +0 -0
- package/app/dist/assets/environment-workspace-display-0oqBMXMB.js.gz +0 -0
- package/app/dist/assets/event-code-block-BfPSBXNn.js.br +0 -0
- package/app/dist/assets/event-code-block-BfPSBXNn.js.gz +0 -0
- package/app/dist/assets/expandable-text-01SvfXRm.js.br +0 -0
- package/app/dist/assets/expandable-text-01SvfXRm.js.gz +0 -0
- package/app/dist/assets/file-path-link-Ddg7Fzor.js.br +0 -0
- package/app/dist/assets/file-path-link-Ddg7Fzor.js.gz +0 -0
- package/app/dist/assets/host-mutations-CAtir6jv.js.br +0 -0
- package/app/dist/assets/host-mutations-CAtir6jv.js.gz +0 -0
- package/app/dist/assets/icon-extended-D2fR2GTF.js.br +0 -0
- package/app/dist/assets/icon-extended-D2fR2GTF.js.gz +0 -0
- package/app/dist/assets/image-lightbox-Dhmri6WK.js.br +0 -0
- package/app/dist/assets/image-lightbox-Dhmri6WK.js.gz +0 -0
- package/app/dist/assets/index-5EQKiTkW.css +0 -2
- package/app/dist/assets/index-5EQKiTkW.css.br +0 -0
- package/app/dist/assets/index-5EQKiTkW.css.gz +0 -0
- package/app/dist/assets/index-CfvM6UcU.js.br +0 -0
- package/app/dist/assets/index-CfvM6UcU.js.gz +0 -0
- package/app/dist/assets/inline-rename-editor-Bg8SXoZ3.js.br +0 -0
- package/app/dist/assets/inline-rename-editor-Bg8SXoZ3.js.gz +0 -0
- package/app/dist/assets/launcherRow-CqPaUYWn.js.br +0 -0
- package/app/dist/assets/launcherRow-CqPaUYWn.js.gz +0 -0
- package/app/dist/assets/localhost-link-rewrite-description-DP-bXSL8.js.br +0 -0
- package/app/dist/assets/localhost-link-rewrite-description-DP-bXSL8.js.gz +0 -0
- package/app/dist/assets/markdown-html-BU8qsXmq.js.br +0 -0
- package/app/dist/assets/markdown-html-BU8qsXmq.js.gz +0 -0
- package/app/dist/assets/markdown-local-file-link-D-MSnVWD.js.br +0 -0
- package/app/dist/assets/markdown-local-file-link-D-MSnVWD.js.gz +0 -0
- package/app/dist/assets/markdown-preview-BLL1QuNp.js.br +0 -0
- package/app/dist/assets/markdown-preview-BLL1QuNp.js.gz +0 -0
- package/app/dist/assets/markdown-prompt-mentions-B5LVmCbO.js.br +0 -0
- package/app/dist/assets/markdown-prompt-mentions-B5LVmCbO.js.gz +0 -0
- package/app/dist/assets/model-load-error-message-Dmp1hUNg.js.br +0 -0
- package/app/dist/assets/model-load-error-message-Dmp1hUNg.js.gz +0 -0
- package/app/dist/assets/onboarding-telemetry-BSt5c7Sg.js +0 -1
- package/app/dist/assets/open-in-editor-button-D0wnpT6x.js.br +0 -0
- package/app/dist/assets/open-in-editor-button-D0wnpT6x.js.gz +0 -0
- package/app/dist/assets/page-shell-CgSxnF9m.js.br +0 -0
- package/app/dist/assets/page-shell-CgSxnF9m.js.gz +0 -0
- package/app/dist/assets/pierre-worker-pool-CHGWu76e.js.br +0 -0
- package/app/dist/assets/pierre-worker-pool-CHGWu76e.js.gz +0 -0
- package/app/dist/assets/plugin-detail-navigation-DuR8_JCx.js.br +0 -0
- package/app/dist/assets/plugin-detail-navigation-DuR8_JCx.js.gz +0 -0
- package/app/dist/assets/plugin-frontend-D5ijLuKC.js.br +0 -0
- package/app/dist/assets/plugin-frontend-D5ijLuKC.js.gz +0 -0
- package/app/dist/assets/plugin-ui-Dpa8hcuk.js.br +0 -0
- package/app/dist/assets/plugin-ui-Dpa8hcuk.js.gz +0 -0
- package/app/dist/assets/queued-editor-typeahead-layout-Czaq8Cl9.js.br +0 -0
- package/app/dist/assets/queued-editor-typeahead-layout-Czaq8Cl9.js.gz +0 -0
- package/app/dist/assets/queued-messages-layout-B5xwiued.js.br +0 -0
- package/app/dist/assets/queued-messages-layout-B5xwiued.js.gz +0 -0
- package/app/dist/assets/resource-list-BKpxiO2e.js.br +0 -0
- package/app/dist/assets/resource-list-BKpxiO2e.js.gz +0 -0
- package/app/dist/assets/root-compose-create-preference-BeAvwSHy.js +0 -1
- package/app/dist/assets/settings-nav-C9-jh_HN.js.br +0 -0
- package/app/dist/assets/settings-nav-C9-jh_HN.js.gz +0 -0
- package/app/dist/assets/settings-sections-BMr_XU5l.js.br +0 -0
- package/app/dist/assets/settings-sections-BMr_XU5l.js.gz +0 -0
- package/app/dist/assets/sidebarTouchSensor-DG_A1RmT.js.br +0 -0
- package/app/dist/assets/sidebarTouchSensor-DG_A1RmT.js.gz +0 -0
- package/app/dist/assets/switch-BjJ8825r.js.br +0 -0
- package/app/dist/assets/switch-BjJ8825r.js.gz +0 -0
- package/app/dist/assets/thread-event-parser-ma5CGP66.js.br +0 -0
- package/app/dist/assets/thread-event-parser-ma5CGP66.js.gz +0 -0
- package/app/dist/assets/thread-panel-queries-BXeOzk_6.js.br +0 -0
- package/app/dist/assets/thread-panel-queries-BXeOzk_6.js.gz +0 -0
- package/app/dist/assets/thread-runtime-mutations-DmKkyel0.js.br +0 -0
- package/app/dist/assets/thread-runtime-mutations-DmKkyel0.js.gz +0 -0
- package/app/dist/assets/thread-terminal-queries-AFVZ5K6p.js.br +0 -0
- package/app/dist/assets/thread-terminal-queries-AFVZ5K6p.js.gz +0 -0
- package/app/dist/assets/threadRecentItems-DXsdcpBk.js.br +0 -0
- package/app/dist/assets/threadRecentItems-DXsdcpBk.js.gz +0 -0
- package/app/dist/assets/threadWorkspaceOpenPath-DwKd-s_5.js.br +0 -0
- package/app/dist/assets/threadWorkspaceOpenPath-DwKd-s_5.js.gz +0 -0
- package/app/dist/assets/title-bar-scroll-fade-Dw_BPLyx.js.br +0 -0
- package/app/dist/assets/title-bar-scroll-fade-Dw_BPLyx.js.gz +0 -0
- package/app/dist/assets/use-hover-popover-DzrAfLzd.js.br +0 -0
- package/app/dist/assets/use-hover-popover-DzrAfLzd.js.gz +0 -0
- package/app/dist/assets/useElementWidth-Kv5FX-9C.js.br +0 -0
- package/app/dist/assets/useElementWidth-Kv5FX-9C.js.gz +0 -0
- package/app/dist/assets/useLocalOpenTargets-B7rqz64L.js.br +0 -0
- package/app/dist/assets/useLocalOpenTargets-B7rqz64L.js.gz +0 -0
- package/app/dist/assets/usePanelResizeSnap-Dizp45Ab.js.br +0 -0
- package/app/dist/assets/usePanelResizeSnap-Dizp45Ab.js.gz +0 -0
- package/app/dist/assets/usePanelTerminals-ByzphxXd.js.br +0 -0
- package/app/dist/assets/usePanelTerminals-ByzphxXd.js.gz +0 -0
- package/app/dist/assets/usePathSuggestions-Bd5UhdCh.js.br +0 -0
- package/app/dist/assets/usePathSuggestions-Bd5UhdCh.js.gz +0 -0
- package/app/dist/assets/useResolvedLiveFileTarget-x5Gd-Gzx.js.br +0 -0
- package/app/dist/assets/useResolvedLiveFileTarget-x5Gd-Gzx.js.gz +0 -0
- package/app/dist/assets/useThreadTerminalController-CUnfO0Da.js.br +0 -0
- package/app/dist/assets/useThreadTerminalController-CUnfO0Da.js.gz +0 -0
- package/app/dist/assets/workspace-change-summary-CLNpSq_E.js.br +0 -0
- package/app/dist/assets/workspace-change-summary-CLNpSq_E.js.gz +0 -0
- package/app/dist/assets/workspace-checkout-display-Aad1Wxi4.js.br +0 -0
- package/app/dist/assets/workspace-checkout-display-Aad1Wxi4.js.gz +0 -0
- package/host-daemon/dist/moonlet-chunks/chunk-4XWRV5U3.js +0 -2
|
Binary file
|
|
Binary file
|
package/app/dist/assets/{inline-rename-editor-Bg8SXoZ3.js → inline-rename-editor-nrH2d_Gy.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{hi as t,kr as n,ri as r}from"./boot-vendor-CKEhulXz.js";import{Dh as i,Fh as a,an as o}from"./index-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{hi as t,kr as n,ri as r}from"./boot-vendor-CKEhulXz.js";import{Dh as i,Fh as a,an as o}from"./index-DCps_qBD.js";var s=n(),c=e(t(),1),l=e(r(),1);function u(e){let t=(0,s.c)(49),{session:n,controller:r,fitContent:u}=e,v=u===void 0?!1:u,y=!!n.pending,b=(0,c.useRef)(null),x=(0,c.useRef)(null),S=(0,c.useRef)(null),C=(0,c.useRef)(!1),w=(0,c.useRef)(!1),T=(0,c.useRef)(!0),E=(0,c.useId)(),D,O;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(D=()=>{let e=b.current;S.current=(e?.closest(`[data-sidebar-rename-row]`))?.querySelector(`[data-sidebar-rename-anchor]`)??null;let t=requestAnimationFrame(()=>{e?.focus({preventScroll:!0}),e?.select(),T.current=!1});return()=>cancelAnimationFrame(t)},O=[],t[0]=D,t[1]=O):(D=t[0],O=t[1]),(0,c.useEffect)(D,O);let k;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(k=()=>{let e=S.current;requestAnimationFrame(()=>{e?.isConnected&&(document.activeElement===document.body||x.current?.contains(document.activeElement))&&e.focus({preventScroll:!0})})},t[2]=k):k=t[2];let A=k,j;t[3]===r?j=t[4]:(j=async(e,t)=>{let n=t===void 0?!1:t;C.current=e;let i=b.current;i?.setSelectionRange(i.value.length,i.value.length),await r.save(n)&&C.current&&A()},t[3]=r,t[4]=j);let M=j,N;t[5]!==r||t[6]!==y?(N=e=>{y||(r.cancel(),e&&A())},t[5]=r,t[6]=y,t[7]=N):N=t[7];let P=N,F;t[8]!==y||t[9]!==M?(F=e=>{T.current||e.currentTarget.contains(e.relatedTarget)||(C.current=!1,y||M(!1))},t[8]=y,t[9]=M,t[10]=F):F=t[10];let I;t[11]!==P||t[12]!==M?(I=e=>{e.stopPropagation(),!(e.nativeEvent.isComposing||w.current)&&(e.key===`Escape`?(e.preventDefault(),P(!0)):e.key===`Enter`&&e.target===b.current&&(e.preventDefault(),M(!0)))},t[11]=P,t[12]=M,t[13]=I):I=t[13];let L=n.label,R=!!n.error,z=n.error?E:void 0,B=v&&`field-sizing-content`,V=y&&`animate-shine motion-reduce:opacity-60`,H;t[14]!==B||t[15]!==V?(H=a(`min-w-0 flex-1 appearance-none border-0 bg-transparent px-0 py-0 [font:inherit] outline-none`,B,V),t[14]=B,t[15]=V,t[16]=H):H=t[16];let U=y||n.cannotRetry,W;t[17]===r?W=t[18]:(W=e=>r.change(e.target.value),t[17]=r,t[18]=W);let G,K;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(G=()=>{w.current=!0},K=()=>{w.current=!1},t[19]=G,t[20]=K):(G=t[19],K=t[20]);let q;t[21]!==n.draft||t[22]!==n.label||t[23]!==n.placeholder||t[24]!==R||t[25]!==z||t[26]!==H||t[27]!==U||t[28]!==W?(q=(0,l.jsx)(`input`,{ref:b,"aria-label":L,"aria-invalid":R,"aria-describedby":z,autoCapitalize:`sentences`,autoCorrect:`off`,className:H,spellCheck:!1,value:n.draft,placeholder:n.placeholder,readOnly:U,onChange:W,onCompositionStart:G,onCompositionEnd:K}),t[21]=n.draft,t[22]=n.label,t[23]=n.placeholder,t[24]=R,t[25]=z,t[26]=H,t[27]=U,t[28]=W,t[29]=q):q=t[29];let J;t[30]===y?J=t[31]:(J=y&&(0,l.jsx)(`span`,{role:`status`,"aria-label":`Saving name`,className:`sr-only`,children:`Saving name`}),t[30]=y,t[31]=J);let Y;t[32]!==y||t[33]!==n.cannotRetry||t[34]!==n.name||t[35]!==n.onClear||t[36]!==M?(Y=n.onClear&&n.name&&(0,l.jsx)(`button`,{type:`button`,"aria-label":`Clear custom name`,disabled:y||n.cannotRetry,className:a(o,`inline-flex items-center justify-center disabled:opacity-50`),onClick:e=>{M(e.detail===0,!0)},children:(0,l.jsx)(i,{name:`RotateCcw`,className:`size-4 max-md:pointer-coarse:size-5`})}),t[32]=y,t[33]=n.cannotRetry,t[34]=n.name,t[35]=n.onClear,t[36]=M,t[37]=Y):Y=t[37];let X;t[38]!==E||t[39]!==n.error?(X=n.error&&(0,l.jsx)(`span`,{id:E,role:`alert`,className:`absolute left-0 top-full z-50 mt-1 w-full min-w-40 rounded-md border border-border bg-popover px-2 py-1 text-xs text-destructive shadow-md whitespace-normal`,children:n.error}),t[38]=E,t[39]=n.error,t[40]=X):X=t[40];let Z;return t[41]!==y||t[42]!==q||t[43]!==J||t[44]!==Y||t[45]!==X||t[46]!==F||t[47]!==I?(Z=(0,l.jsxs)(`span`,{ref:x,"data-sidebar-rename-editor":``,className:`relative z-50 flex min-w-0 flex-1 items-center gap-1`,"aria-busy":y,onBlur:F,onClick:_,onDoubleClick:g,onPointerDown:h,onPointerUp:m,onContextMenu:p,onDragStart:f,onKeyUp:d,onKeyDown:I,children:[q,J,Y,X]}),t[41]=y,t[42]=q,t[43]=J,t[44]=Y,t[45]=X,t[46]=F,t[47]=I,t[48]=Z):Z=t[48],Z}function d(e){return e.stopPropagation()}function f(e){e.preventDefault(),e.stopPropagation()}function p(e){return e.stopPropagation()}function m(e){return e.stopPropagation()}function h(e){return e.stopPropagation()}function g(e){e.preventDefault(),e.stopPropagation()}function _(e){e.preventDefault(),e.stopPropagation()}export{u as InlineRenameEditor};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{kr as t,ri as n}from"./boot-vendor-CKEhulXz.js";import{Dh as r,Fh as i,Ph as a,hp as o,tt as s,wp as c}from"./index-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{kr as t,ri as n}from"./boot-vendor-CKEhulXz.js";import{Dh as r,Fh as i,Ph as a,hp as o,tt as s,wp as c}from"./index-DCps_qBD.js";var l=t(),u=e(n(),1),d=`group flex w-full min-w-0 items-center gap-1.5 rounded px-2 py-1.5 text-left ${a} focus-visible:outline-none ${c}`,f=`${d} focus-visible:ring-1 focus-visible:ring-ring`,p=`${d} focus-visible:bg-state-hover focus-visible:text-foreground`,m=`flex shrink-0 items-center justify-center overflow-hidden text-muted-foreground ${o}`;function h(e){let t=(0,l.c)(13),{idle:n,isActive:a}=e,o=a?`hidden`:`group-hover:hidden`,s;t[0]===o?s=t[1]:(s=i(`whitespace-nowrap text-muted-foreground ${c}`,o),t[0]=o,t[1]=s);let d;t[2]!==n||t[3]!==s?(d=(0,u.jsx)(`span`,{className:s,children:n}),t[2]=n,t[3]=s,t[4]=d):d=t[4];let f=a?`flex`:`hidden group-hover:flex`,p;t[5]===f?p=t[6]:(p=i(`items-center gap-1 text-subtle-foreground ${c}`,f),t[5]=f,t[6]=p);let m;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,u.jsx)(r,{name:`ArrowUpRight`,className:`size-3 max-md:pointer-coarse:size-4`,"aria-hidden":!0}),t[7]=m):m=t[7];let h;t[8]===p?h=t[9]:(h=(0,u.jsxs)(`span`,{className:p,"aria-hidden":!0,children:[m,`open`]}),t[8]=p,t[9]=h);let g;return t[10]!==d||t[11]!==h?(g=(0,u.jsxs)(`span`,{className:`ml-auto flex shrink-0 items-center justify-end`,children:[d,h]}),t[10]=d,t[11]=h,t[12]=g):g=t[12],g}function g(e){let t=(0,l.c)(14),{label:n,count:r,action:a,sticky:o,className:d}=e,f=(o===void 0?!1:o)&&`sticky top-0 z-30 bg-sidebar`,p;t[0]!==d||t[1]!==f?(p=i(`flex items-baseline gap-2 px-2 pb-2`,s,f,d),t[0]=d,t[1]=f,t[2]=p):p=t[2];let m;t[3]===n?m=t[4]:(m=(0,u.jsx)(`span`,{children:n}),t[3]=n,t[4]=m);let h;t[5]===r?h=t[6]:(h=r===void 0?null:(0,u.jsx)(`span`,{className:i(`font-mono text-muted-foreground opacity-80`,c),children:r}),t[5]=r,t[6]=h);let g;t[7]===a?g=t[8]:(g=a?(0,u.jsx)(`div`,{className:`ml-auto flex items-center`,children:a}):null,t[7]=a,t[8]=g);let _;return t[9]!==p||t[10]!==m||t[11]!==h||t[12]!==g?(_=(0,u.jsxs)(`div`,{className:p,children:[m,h,g]}),t[9]=p,t[10]=m,t[11]=h,t[12]=g,t[13]=_):_=t[13],_}export{g as a,h as i,f as n,m as r,p as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{kr as t,ri as n}from"./boot-vendor-CKEhulXz.js";import{n as r}from"./localhost-link-rewrite-B1T6DJ9C.js";import{Ir as i,em as a}from"./index-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{kr as t,ri as n}from"./boot-vendor-CKEhulXz.js";import{n as r}from"./localhost-link-rewrite-B1T6DJ9C.js";import{Ir as i,em as a}from"./index-DCps_qBD.js";import{o}from"./settings-sections-Dfo35J2q.js";import{n as s}from"./PluginSettingsSections-ZnUNrvlJ.js";var c=t(),l=e(n(),1);function u({section:e}){return(e.experimental_useTitle??(()=>``))().trim()||e.experimental_placement?.title||e.title||e.id}function d(e){let t=(0,c.c)(8),{section:n}=e,r=`${n.pluginId}/${n.id}/${n.generation}`,a=n.experimental_placement?.title??n.id,o;t[0]===n?o=t[1]:(o=(0,l.jsx)(u,{section:n}),t[0]=n,t[1]=o);let s;return t[2]!==n.id||t[3]!==n.pluginId||t[4]!==r||t[5]!==a||t[6]!==o?(s=(0,l.jsx)(i,{wrapRoot:!1,crashFallback:a,pluginId:n.pluginId,slotKind:`settingsSection`,slotId:n.id,children:o},r),t[2]=n.id,t[3]=n.pluginId,t[4]=r,t[5]=a,t[6]=o,t[7]=s):s=t[7],s}function f({section:e,fallback:t}){return(e.experimental_useGroupTitle??(()=>``))().trim()||t}function p(e){let t=(0,c.c)(9),{section:n,fallback:r}=e,a=`${n.pluginId}/${n.id}/${n.generation}/group`,o;t[0]!==r||t[1]!==n?(o=(0,l.jsx)(f,{section:n,fallback:r}),t[0]=r,t[1]=n,t[2]=o):o=t[2];let s;return t[3]!==r||t[4]!==n.id||t[5]!==n.pluginId||t[6]!==a||t[7]!==o?(s=(0,l.jsx)(i,{wrapRoot:!1,crashFallback:r,pluginId:n.pluginId,slotKind:`settingsSection`,slotId:n.id,children:o},a),t[3]=r,t[4]=n.id,t[5]=n.pluginId,t[6]=a,t[7]=o,t[8]=s):s=t[8],s}function m(e){let t=(0,c.c)(13),{sectionId:n}=e,{settingsSections:r}=a(),i;if(t[0]!==n||t[1]!==r){let e;t[3]===n?e=t[4]:(e=e=>e.experimental_placement?.section===n,t[3]=n,t[4]=e),i=r.filter(e).map(_).sort(g).map(h),t[0]=n,t[1]=r,t[2]=i}else i=t[2];let u=i;if(u.length===0)return null;let f;t[5]!==n||t[6]!==u[0]?(f=!o(n)&&u[0]?(0,l.jsx)(`h1`,{className:`text-lg font-semibold`,children:(0,l.jsx)(d,{section:u[0]})}):null,t[5]=n,t[6]=u[0],t[7]=f):f=t[7];let p;t[8]===u?p=t[9]:(p=(0,l.jsx)(s,{sections:u,variant:`page`}),t[8]=u,t[9]=p);let m;return t[10]!==f||t[11]!==p?(m=(0,l.jsxs)(`div`,{className:`space-y-10`,children:[f,p]}),t[10]=f,t[11]=p,t[12]=m):m=t[12],m}function h(e){let{section:t}=e;return t}function g(e,t){return e.section.pluginId.localeCompare(t.section.pluginId)||e.index-t.index}function _(e,t){return{section:e,index:t}}var v=`http://localhost:3000/`;function y(e){if(e===void 0)return null;let t=r({currentHostname:e,enabled:!0,href:v});return t===v?null:`When enabled, localhost URLs are rewritten to use the same host or IP address you use to open Moonlet. For example: ${v} → ${t}`}export{d as i,m as n,p as r,y as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Qr as e,kr as t}from"./boot-vendor-CKEhulXz.js";import{Dg as n,Gd as r,vl as i}from"./index-
|
|
1
|
+
import{Qr as e,kr as t}from"./boot-vendor-CKEhulXz.js";import{Dg as n,Gd as r,vl as i}from"./index-DCps_qBD.js";var a=t(),o=[];function s(){let t=(0,a.c)(3),r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r={queryKey:n(),queryFn:c,...i},t[0]=r):r=t[0];let s=e(r),l=s.isError?o:s.data,u;return t[1]===l?u=t[2]:(u={providers:l},t[1]=l,t[2]=u),u}function c(){return r.hosts.experimental_listProviders()}export{s as t};
|
package/app/dist/assets/{machine-server-access-Drk0mdHH.js → machine-server-access-CGfd5e1r.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ki as e}from"./index-
|
|
1
|
+
import{ki as e}from"./index-DCps_qBD.js";var t=`Machines cannot reach this Moonlet yet`;function n(t){if(t===void 0)return!1;let n=t.providers.find(e=>e.id===t.defaultProviderId);return n===void 0?!1:t.defaultProviderId===`direct`?t.effectiveUrl!==null&&!e(t.effectiveUrl):n.availability?.status===`available`}var r=`Configure how machines should connect to this Moonlet server.`;function i(e,t=e?.defaultProviderId){if(e===void 0)return r;if(n({...e,defaultProviderId:t??e.defaultProviderId}))return null;let i=e.providers.find(e=>e.id===t)?.availability;return i&&i.status!==`available`?i.message:r}export{i as n,n as r,t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Wc as e,qc as t}from"./index-
|
|
1
|
+
import{Wc as e,qc as t}from"./index-DCps_qBD.js";import{i as n,n as r,t as i}from"./absolute-file-path-BxWHDkiV.js";var a=`/__bb_markdown_file_root__`;function o({path:e,rootPath:o,threadId:s,linkRouting:c,resolveRelativeSrc:l}){if(c?.localImage!==void 0)return c;let u=n({path:o??a});if(u===null)return c;let d=i({path:o===null?e.replace(/^\/+/,``):e,rootPath:u});return{...c,localImage:{absolutePaths:s===null?{kind:`contained`,rootPath:u}:{kind:`trusted-host`},relativePaths:{baseDir:r({path:d}),rootPath:u},resolveSrc:(e,n)=>n===`absolute`&&s!==null?t(s,e.path):l(e.path.slice(u===`/`?1:u.length+1),e.path)}}}function s({path:t,rootPath:n,hostId:r}){if(r!==null)return o({path:t,rootPath:n,threadId:null,resolveRelativeSrc:(t,n)=>e(r,n)})}export{s as n,o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{kr as t,ri as n}from"./boot-vendor-CKEhulXz.js";import{n as r,t as i}from"./zwitch-D6h6J3PA.js";import{a,i as o,n as s,o as c,s as l}from"./space-separated-tokens-yqTL2Lfu.js";import{n as ee}from"./lib-BVl87urb.js";import{C as u,S as d,r as f,t as p,w as te}from"./lib-EkxklCWa.js";import{t as ne}from"./markdown-local-file-link-D-MSnVWD.js";import{a as m,c as h,i as g,o as _,r as v,s as y}from"./dist-B5Khuaib.js";var b={},x={}.hasOwnProperty,S=i(`type`,{handlers:{root:w,element:se,text:ae,comment:oe,doctype:ie}});function C(e,t){let n=(t||b).space;return S(e,n===`svg`?c:a)}function w(e,t){let n={nodeName:`#document`,mode:(e.data||{}).quirksMode?`quirks`:`no-quirks`,childNodes:[]};return n.childNodes=T(e.children,n,t),E(e,n),n}function re(e,t){let n={nodeName:`#document-fragment`,childNodes:[]};return n.childNodes=T(e.children,n,t),E(e,n),n}function ie(e){let t={nodeName:`#documentType`,name:`html`,publicId:``,systemId:``,parentNode:null};return E(e,t),t}function ae(e){let t={nodeName:`#text`,value:e.value,parentNode:null};return E(e,t),t}function oe(e){let t={nodeName:`#comment`,data:e.value,parentNode:null};return E(e,t),t}function se(e,t){let n=t,r=n;e.type===`element`&&e.tagName.toLowerCase()===`svg`&&n.space===`html`&&(r=c);let i=[],a;if(e.properties){for(a in e.properties)if(a!==`children`&&x.call(e.properties,a)){let t=ce(r,a,e.properties[a]);t&&i.push(t)}}let o=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:h[o],childNodes:[],parentNode:null};return s.childNodes=T(e.children,s,r),E(e,s),e.tagName===`template`&&e.content&&(s.content=re(e.content,r)),s}function ce(e,t,n){let r=l(e,t);if(n===!1||n==null||typeof n==`number`&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?o(n):s(n));let i={name:r.attribute,value:n===!0?``:String(n)};if(r.space&&r.space!==`html`&&r.space!==`svg`){let e=i.name.indexOf(`:`);e<0?i.prefix=``:(i.name=i.name.slice(e+1),i.prefix=r.attribute.slice(0,e)),i.namespace=h[r.space]}return i}function T(e,t,n){let r=-1,i=[];if(e)for(;++r<e.length;){let a=S(e[r],n);a.parentNode=t,i.push(a)}return i}function E(e,t){let n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}var le=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,ue=new Set([`mdxFlowExpression`,`mdxJsxFlowElement`,`mdxJsxTextElement`,`mdxTextExpression`,`mdxjsEsm`]),D={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function O(e,t){let n=H(e),r=i(`type`,{handlers:{root:A,element:j,text:M,comment:F,doctype:N,raw:I},unknown:L}),a={parser:n?new v(D):v.getFragmentParser(void 0,D),handle(e){r(e,a)},stitches:!1,options:t||{}};r(e,a),R(a,u());let o=y(n?a.parser.document:a.parser.getFragment(),{file:a.options.file});return a.stitches&&ee(o,`comment`,function(e,t,n){let r=e;if(r.value.stitch&&n&&t!==void 0){let e=n.children;return e[t]=r.value.stitch,t}}),o.type===`root`&&o.children.length===1&&o.children[0].type===e.type?o.children[0]:o}function k(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function A(e,t){k(e.children,t)}function j(e,t){B(e,t),k(e.children,t),V(e,t)}function M(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);let n={type:_.CHARACTER,chars:e.value,location:U(e)};R(t,u(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function N(e,t){let n={type:_.DOCTYPE,name:`html`,forceQuirks:!1,publicId:``,systemId:``,location:U(e)};R(t,u(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function P(e,t){t.stitches=!0;let n=de(e);`children`in e&&`children`in n&&(n.children=O({type:`root`,children:e.children},t.options).children),F({type:`comment`,value:{stitch:n}},t)}function F(e,t){let n=e.value,r={type:_.COMMENT,data:n,location:U(e)};R(t,u(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function I(e,t){if(t.parser.tokenizer.preprocessor.html=``,t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,z(t,u(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(le,`<$1$2`):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function L(e,t){let n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))P(n,t);else{let e=``;throw ue.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+n.type+"` node"+e)}}function R(e,t){z(e,t);let n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=g.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:``,value:``}}function z(e,t){if(t&&t.offset!==void 0){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function B(e,t){let n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===g.PLAINTEXT)return;R(t,u(e));let r=t.parser.openElements.current,i=`namespaceURI`in r?r.namespaceURI:h.html;i===h.html&&n===`svg`&&(i=h.svg);let a=C({...e,children:[]},{space:i===h.svg?`svg`:`html`}),o={type:_.START_TAG,tagName:n,tagID:m(n),selfClosing:!1,ackSelfClosing:!1,attrs:`attrs`in a?a.attrs:[],location:U(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function V(e,t){let n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&r.includes(n)||t.parser.tokenizer.state===g.PLAINTEXT)return;R(t,d(e));let i={type:_.END_TAG,tagName:n,tagID:m(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:U(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===g.RCDATA||t.parser.tokenizer.state===g.RAWTEXT||t.parser.tokenizer.state===g.SCRIPT_DATA)&&(t.parser.tokenizer.state=g.DATA)}function H(e){let t=e.type===`root`?e.children[0]:e;return!!(t&&(t.type===`doctype`||t.type===`element`&&t.tagName.toLowerCase()===`html`))}function U(e){let t=u(e)||{line:void 0,column:void 0,offset:void 0},n=d(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function de(e){return`children`in e?f({...e,children:[]}):f(e)}function fe(e){return function(t,n){return O(t,{...e,file:n})}}var W=[`ariaDescribedBy`,`ariaLabel`,`ariaLabelledBy`],G={ancestors:{tbody:[`table`],td:[`table`],th:[`table`],thead:[`table`],tfoot:[`table`],tr:[`table`]},attributes:{a:[...W,`dataFootnoteBackref`,`dataFootnoteRef`,[`className`,`data-footnote-backref`],`href`],blockquote:[`cite`],code:[[`className`,/^language-./]],del:[`cite`],div:[`itemScope`,`itemType`],dl:[...W],h2:[[`className`,`sr-only`]],img:[...W,`longDesc`,`src`],input:[[`disabled`,!0],[`type`,`checkbox`]],ins:[`cite`],li:[[`className`,`task-list-item`]],ol:[...W,[`className`,`contains-task-list`]],q:[`cite`],section:[`dataFootnotes`,[`className`,`footnotes`]],source:[`srcSet`],summary:[...W],table:[...W],ul:[...W,[`className`,`contains-task-list`]],"*":`abbr.accept.acceptCharset.accessKey.action.align.alt.axis.border.cellPadding.cellSpacing.char.charOff.charSet.checked.clear.colSpan.color.cols.compact.coords.dateTime.dir.encType.frame.hSpace.headers.height.hrefLang.htmlFor.id.isMap.itemProp.label.lang.maxLength.media.method.multiple.name.noHref.noShade.noWrap.open.prompt.readOnly.rev.rowSpan.rows.rules.scope.selected.shape.size.span.start.summary.tabIndex.title.useMap.vAlign.value.width`.split(`.`)},clobber:[`ariaDescribedBy`,`ariaLabelledBy`,`id`,`name`],clobberPrefix:`user-content-`,protocols:{cite:[`http`,`https`],href:[`http`,`https`,`irc`,`ircs`,`mailto`,`xmpp`],longDesc:[`http`,`https`],src:[`http`,`https`]},required:{input:{disabled:!0,type:`checkbox`}},strip:[`script`],tagNames:`a.b.blockquote.br.code.dd.del.details.div.dl.dt.em.h1.h2.h3.h4.h5.h6.hr.i.img.input.ins.kbd.li.ol.p.picture.pre.q.rp.rt.ruby.s.samp.section.source.span.strike.strong.sub.summary.sup.table.tbody.td.tfoot.th.thead.tr.tt.ul.var`.split(`.`)},K={}.hasOwnProperty;function pe(e,t){let n={type:`root`,children:[]},r=q({schema:t?{...G,...t}:G,stack:[]},e);return r&&(Array.isArray(r)?r.length===1?n=r[0]:n.children=r:n=r),n}function q(e,t){if(t&&typeof t==`object`){let n=t;switch(typeof n.type==`string`?n.type:``){case`comment`:return me(e,n);case`doctype`:return he(e,n);case`element`:return ge(e,n);case`root`:return _e(e,n);case`text`:return ve(e,n);default:}}}function me(e,t){if(e.schema.allowComments){let e=typeof t.value==`string`?t.value:``,n=e.indexOf(`-->`),r={type:`comment`,value:n<0?e:e.slice(0,n)};return Z(r,t),r}}function he(e,t){if(e.schema.allowDoctypes){let e={type:`doctype`};return Z(e,t),e}}function ge(e,t){let n=typeof t.tagName==`string`?t.tagName:``;e.stack.push(n);let r=J(e,t.children),i=ye(e,t.properties);e.stack.pop();let a=!1;if(n&&n!==`*`&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&K.call(e.schema.ancestors,n))){let t=e.schema.ancestors[n],r=-1;for(a=!1;++r<t.length;)e.stack.includes(t[r])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;let o={type:`element`,tagName:n,properties:i,children:r};return Z(o,t),o}function _e(e,t){let n={type:`root`,children:J(e,t.children)};return Z(n,t),n}function ve(e,t){let n={type:`text`,value:typeof t.value==`string`?t.value:``};return Z(n,t),n}function J(e,t){let n=[];if(Array.isArray(t)){let r=t,i=-1;for(;++i<r.length;){let t=q(e,r[i]);t&&(Array.isArray(t)?n.push(...t):n.push(t))}}return n}function ye(e,t){let n=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,a=r&&K.call(r,n)?r[n]:void 0,o=r&&K.call(r,`*`)?r[`*`]:void 0,s=t&&typeof t==`object`?t:{},c={},l;for(l in s)if(K.call(s,l)){let t=s[l],n=Y(e,Q(a,l),l,t);n??=Y(e,Q(o,l),l,t),n!=null&&(c[l]=n)}if(i&&K.call(i,n)){let e=i[n];for(l in e)K.call(e,l)&&!K.call(c,l)&&(c[l]=e[l])}return c}function Y(e,t,n,r){return t?Array.isArray(r)?be(e,t,n,r):X(e,t,n,r):void 0}function be(e,t,n,r){let i=-1,a=[];for(;++i<r.length;){let o=X(e,t,n,r[i]);(typeof o==`number`||typeof o==`string`)&&a.push(o)}return a}function X(e,t,n,r){if(!(typeof r!=`boolean`&&typeof r!=`number`&&typeof r!=`string`)&&xe(e,n,r)){if(typeof t==`object`&&t.length>1){let e=!1,n=0;for(;++n<t.length;){let i=t[n];if(i&&typeof i==`object`&&`flags`in i){if(i.test(String(r))){e=!0;break}}else if(i===r){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function xe(e,t,n){let r=e.schema.protocols&&K.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;let i=String(n),a=i.indexOf(`:`),o=i.indexOf(`?`),s=i.indexOf(`#`),c=i.indexOf(`/`);if(a<0||c>-1&&a>c||o>-1&&a>o||s>-1&&a>s)return!0;let l=-1;for(;++l<r.length;){let e=r[l];if(a===e.length&&i.slice(0,e.length)===e)return!0}return!1}function Z(e,t){let n=te(t);t.data&&(e.data=f(t.data)),n&&(e.position=n)}function Q(e,t){let n,r=-1;if(e)for(;++r<e.length;){let i=e[r],a=typeof i==`string`?i:i[0];if(a===t)return i;a===`data*`&&(n=i)}if(t.length>4&&t.slice(0,4).toLowerCase()===`data`)return n}function Se(e){return function(t){return pe(t,e)}}var Ce=t(),$=e(n(),1),we=[fe,[Se,{...G,tagNames:[...G.tagNames??[],`video`,`bb-thread-mention`,`bb-prompt-mention`,`bb-message-directive`],protocols:{...G.protocols,href:[...G.protocols?.href??[],...ne],poster:[`http`,`https`]},attributes:{...G.attributes,source:[...G.attributes?.source??[],`src`,`type`,`media`],video:[`src`,`controls`,`playsInline`,`preload`,`poster`,`width`,`height`,`title`,`ariaLabel`],code:[...G.attributes?.code??[],`dataCodeFenceOffset`,`dataCodeFenceClosed`],"bb-thread-mention":[`dataThreadId`,`dataRawThreadId`,`dataRawThreadInlineCode`],"bb-prompt-mention":[`dataMentionIndex`],"bb-message-directive":[`dataDirectiveIndex`]}}]];function Te(e){let t=(0,Ce.c)(10),n,r;t[0]===e?(n=t[1],r=t[2]):({rehypePlugins:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===r?i=t[4]:(i=r??[],t[3]=r,t[4]=i);let a;t[5]===i?a=t[6]:(a=[...we,...i],t[5]=i,t[6]=a);let o=a,s;return t[7]!==o||t[8]!==n?(s=(0,$.jsx)(p,{...n,rehypePlugins:o}),t[7]=o,t[8]=n,t[9]=s):s=t[9],s}export{Te as MarkdownHtml};
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{kr as t,ri as n}from"./boot-vendor-CKEhulXz.js";import{n as r,t as i}from"./zwitch-D6h6J3PA.js";import{a,i as o,n as s,o as c,s as l}from"./space-separated-tokens-yqTL2Lfu.js";import{n as ee}from"./lib-BVl87urb.js";import{C as u,S as d,r as f,t as p,w as te}from"./lib-EkxklCWa.js";import{t as ne}from"./markdown-local-file-link-BROpdQPF.js";import{a as m,c as h,i as g,o as _,r as v,s as y}from"./dist-B5Khuaib.js";var b={},x={}.hasOwnProperty,S=i(`type`,{handlers:{root:w,element:se,text:ae,comment:oe,doctype:ie}});function C(e,t){let n=(t||b).space;return S(e,n===`svg`?c:a)}function w(e,t){let n={nodeName:`#document`,mode:(e.data||{}).quirksMode?`quirks`:`no-quirks`,childNodes:[]};return n.childNodes=T(e.children,n,t),E(e,n),n}function re(e,t){let n={nodeName:`#document-fragment`,childNodes:[]};return n.childNodes=T(e.children,n,t),E(e,n),n}function ie(e){let t={nodeName:`#documentType`,name:`html`,publicId:``,systemId:``,parentNode:null};return E(e,t),t}function ae(e){let t={nodeName:`#text`,value:e.value,parentNode:null};return E(e,t),t}function oe(e){let t={nodeName:`#comment`,data:e.value,parentNode:null};return E(e,t),t}function se(e,t){let n=t,r=n;e.type===`element`&&e.tagName.toLowerCase()===`svg`&&n.space===`html`&&(r=c);let i=[],a;if(e.properties){for(a in e.properties)if(a!==`children`&&x.call(e.properties,a)){let t=ce(r,a,e.properties[a]);t&&i.push(t)}}let o=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:h[o],childNodes:[],parentNode:null};return s.childNodes=T(e.children,s,r),E(e,s),e.tagName===`template`&&e.content&&(s.content=re(e.content,r)),s}function ce(e,t,n){let r=l(e,t);if(n===!1||n==null||typeof n==`number`&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?o(n):s(n));let i={name:r.attribute,value:n===!0?``:String(n)};if(r.space&&r.space!==`html`&&r.space!==`svg`){let e=i.name.indexOf(`:`);e<0?i.prefix=``:(i.name=i.name.slice(e+1),i.prefix=r.attribute.slice(0,e)),i.namespace=h[r.space]}return i}function T(e,t,n){let r=-1,i=[];if(e)for(;++r<e.length;){let a=S(e[r],n);a.parentNode=t,i.push(a)}return i}function E(e,t){let n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}var le=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,ue=new Set([`mdxFlowExpression`,`mdxJsxFlowElement`,`mdxJsxTextElement`,`mdxTextExpression`,`mdxjsEsm`]),D={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function O(e,t){let n=H(e),r=i(`type`,{handlers:{root:A,element:j,text:M,comment:F,doctype:N,raw:I},unknown:L}),a={parser:n?new v(D):v.getFragmentParser(void 0,D),handle(e){r(e,a)},stitches:!1,options:t||{}};r(e,a),R(a,u());let o=y(n?a.parser.document:a.parser.getFragment(),{file:a.options.file});return a.stitches&&ee(o,`comment`,function(e,t,n){let r=e;if(r.value.stitch&&n&&t!==void 0){let e=n.children;return e[t]=r.value.stitch,t}}),o.type===`root`&&o.children.length===1&&o.children[0].type===e.type?o.children[0]:o}function k(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function A(e,t){k(e.children,t)}function j(e,t){B(e,t),k(e.children,t),V(e,t)}function M(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);let n={type:_.CHARACTER,chars:e.value,location:U(e)};R(t,u(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function N(e,t){let n={type:_.DOCTYPE,name:`html`,forceQuirks:!1,publicId:``,systemId:``,location:U(e)};R(t,u(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function P(e,t){t.stitches=!0;let n=de(e);`children`in e&&`children`in n&&(n.children=O({type:`root`,children:e.children},t.options).children),F({type:`comment`,value:{stitch:n}},t)}function F(e,t){let n=e.value,r={type:_.COMMENT,data:n,location:U(e)};R(t,u(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function I(e,t){if(t.parser.tokenizer.preprocessor.html=``,t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,z(t,u(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(le,`<$1$2`):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function L(e,t){let n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))P(n,t);else{let e=``;throw ue.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+n.type+"` node"+e)}}function R(e,t){z(e,t);let n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=g.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:``,value:``}}function z(e,t){if(t&&t.offset!==void 0){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function B(e,t){let n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===g.PLAINTEXT)return;R(t,u(e));let r=t.parser.openElements.current,i=`namespaceURI`in r?r.namespaceURI:h.html;i===h.html&&n===`svg`&&(i=h.svg);let a=C({...e,children:[]},{space:i===h.svg?`svg`:`html`}),o={type:_.START_TAG,tagName:n,tagID:m(n),selfClosing:!1,ackSelfClosing:!1,attrs:`attrs`in a?a.attrs:[],location:U(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function V(e,t){let n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&r.includes(n)||t.parser.tokenizer.state===g.PLAINTEXT)return;R(t,d(e));let i={type:_.END_TAG,tagName:n,tagID:m(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:U(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===g.RCDATA||t.parser.tokenizer.state===g.RAWTEXT||t.parser.tokenizer.state===g.SCRIPT_DATA)&&(t.parser.tokenizer.state=g.DATA)}function H(e){let t=e.type===`root`?e.children[0]:e;return!!(t&&(t.type===`doctype`||t.type===`element`&&t.tagName.toLowerCase()===`html`))}function U(e){let t=u(e)||{line:void 0,column:void 0,offset:void 0},n=d(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function de(e){return`children`in e?f({...e,children:[]}):f(e)}function fe(e){return function(t,n){return O(t,{...e,file:n})}}var W=[`ariaDescribedBy`,`ariaLabel`,`ariaLabelledBy`],G={ancestors:{tbody:[`table`],td:[`table`],th:[`table`],thead:[`table`],tfoot:[`table`],tr:[`table`]},attributes:{a:[...W,`dataFootnoteBackref`,`dataFootnoteRef`,[`className`,`data-footnote-backref`],`href`],blockquote:[`cite`],code:[[`className`,/^language-./]],del:[`cite`],div:[`itemScope`,`itemType`],dl:[...W],h2:[[`className`,`sr-only`]],img:[...W,`longDesc`,`src`],input:[[`disabled`,!0],[`type`,`checkbox`]],ins:[`cite`],li:[[`className`,`task-list-item`]],ol:[...W,[`className`,`contains-task-list`]],q:[`cite`],section:[`dataFootnotes`,[`className`,`footnotes`]],source:[`srcSet`],summary:[...W],table:[...W],ul:[...W,[`className`,`contains-task-list`]],"*":`abbr.accept.acceptCharset.accessKey.action.align.alt.axis.border.cellPadding.cellSpacing.char.charOff.charSet.checked.clear.colSpan.color.cols.compact.coords.dateTime.dir.encType.frame.hSpace.headers.height.hrefLang.htmlFor.id.isMap.itemProp.label.lang.maxLength.media.method.multiple.name.noHref.noShade.noWrap.open.prompt.readOnly.rev.rowSpan.rows.rules.scope.selected.shape.size.span.start.summary.tabIndex.title.useMap.vAlign.value.width`.split(`.`)},clobber:[`ariaDescribedBy`,`ariaLabelledBy`,`id`,`name`],clobberPrefix:`user-content-`,protocols:{cite:[`http`,`https`],href:[`http`,`https`,`irc`,`ircs`,`mailto`,`xmpp`],longDesc:[`http`,`https`],src:[`http`,`https`]},required:{input:{disabled:!0,type:`checkbox`}},strip:[`script`],tagNames:`a.b.blockquote.br.code.dd.del.details.div.dl.dt.em.h1.h2.h3.h4.h5.h6.hr.i.img.input.ins.kbd.li.ol.p.picture.pre.q.rp.rt.ruby.s.samp.section.source.span.strike.strong.sub.summary.sup.table.tbody.td.tfoot.th.thead.tr.tt.ul.var`.split(`.`)},K={}.hasOwnProperty;function pe(e,t){let n={type:`root`,children:[]},r=q({schema:t?{...G,...t}:G,stack:[]},e);return r&&(Array.isArray(r)?r.length===1?n=r[0]:n.children=r:n=r),n}function q(e,t){if(t&&typeof t==`object`){let n=t;switch(typeof n.type==`string`?n.type:``){case`comment`:return me(e,n);case`doctype`:return he(e,n);case`element`:return ge(e,n);case`root`:return _e(e,n);case`text`:return ve(e,n);default:}}}function me(e,t){if(e.schema.allowComments){let e=typeof t.value==`string`?t.value:``,n=e.indexOf(`-->`),r={type:`comment`,value:n<0?e:e.slice(0,n)};return Z(r,t),r}}function he(e,t){if(e.schema.allowDoctypes){let e={type:`doctype`};return Z(e,t),e}}function ge(e,t){let n=typeof t.tagName==`string`?t.tagName:``;e.stack.push(n);let r=J(e,t.children),i=ye(e,t.properties);e.stack.pop();let a=!1;if(n&&n!==`*`&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&K.call(e.schema.ancestors,n))){let t=e.schema.ancestors[n],r=-1;for(a=!1;++r<t.length;)e.stack.includes(t[r])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;let o={type:`element`,tagName:n,properties:i,children:r};return Z(o,t),o}function _e(e,t){let n={type:`root`,children:J(e,t.children)};return Z(n,t),n}function ve(e,t){let n={type:`text`,value:typeof t.value==`string`?t.value:``};return Z(n,t),n}function J(e,t){let n=[];if(Array.isArray(t)){let r=t,i=-1;for(;++i<r.length;){let t=q(e,r[i]);t&&(Array.isArray(t)?n.push(...t):n.push(t))}}return n}function ye(e,t){let n=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,a=r&&K.call(r,n)?r[n]:void 0,o=r&&K.call(r,`*`)?r[`*`]:void 0,s=t&&typeof t==`object`?t:{},c={},l;for(l in s)if(K.call(s,l)){let t=s[l],n=Y(e,Q(a,l),l,t);n??=Y(e,Q(o,l),l,t),n!=null&&(c[l]=n)}if(i&&K.call(i,n)){let e=i[n];for(l in e)K.call(e,l)&&!K.call(c,l)&&(c[l]=e[l])}return c}function Y(e,t,n,r){return t?Array.isArray(r)?be(e,t,n,r):X(e,t,n,r):void 0}function be(e,t,n,r){let i=-1,a=[];for(;++i<r.length;){let o=X(e,t,n,r[i]);(typeof o==`number`||typeof o==`string`)&&a.push(o)}return a}function X(e,t,n,r){if(!(typeof r!=`boolean`&&typeof r!=`number`&&typeof r!=`string`)&&xe(e,n,r)){if(typeof t==`object`&&t.length>1){let e=!1,n=0;for(;++n<t.length;){let i=t[n];if(i&&typeof i==`object`&&`flags`in i){if(i.test(String(r))){e=!0;break}}else if(i===r){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function xe(e,t,n){let r=e.schema.protocols&&K.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;let i=String(n),a=i.indexOf(`:`),o=i.indexOf(`?`),s=i.indexOf(`#`),c=i.indexOf(`/`);if(a<0||c>-1&&a>c||o>-1&&a>o||s>-1&&a>s)return!0;let l=-1;for(;++l<r.length;){let e=r[l];if(a===e.length&&i.slice(0,e.length)===e)return!0}return!1}function Z(e,t){let n=te(t);t.data&&(e.data=f(t.data)),n&&(e.position=n)}function Q(e,t){let n,r=-1;if(e)for(;++r<e.length;){let i=e[r],a=typeof i==`string`?i:i[0];if(a===t)return i;a===`data*`&&(n=i)}if(t.length>4&&t.slice(0,4).toLowerCase()===`data`)return n}function Se(e){return function(t){return pe(t,e)}}var Ce=t(),$=e(n(),1),we=[fe,[Se,{...G,tagNames:[...G.tagNames??[],`video`,`bb-thread-mention`,`bb-prompt-mention`,`bb-message-directive`],protocols:{...G.protocols,href:[...G.protocols?.href??[],...ne],poster:[`http`,`https`]},attributes:{...G.attributes,source:[...G.attributes?.source??[],`src`,`type`,`media`],video:[`src`,`controls`,`playsInline`,`preload`,`poster`,`width`,`height`,`title`,`ariaLabel`],code:[...G.attributes?.code??[],`dataCodeFenceOffset`,`dataCodeFenceClosed`],"bb-thread-mention":[`dataThreadId`,`dataRawThreadId`,`dataRawThreadInlineCode`],"bb-prompt-mention":[`dataMentionIndex`],"bb-message-directive":[`dataDirectiveIndex`]}}]];function Te(e){let t=(0,Ce.c)(10),n,r;t[0]===e?(n=t[1],r=t[2]):({rehypePlugins:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===r?i=t[4]:(i=r??[],t[3]=r,t[4]=i);let a;t[5]===i?a=t[6]:(a=[...we,...i],t[5]=i,t[6]=a);let o=a,s;return t[7]!==o||t[8]!==n?(s=(0,$.jsx)(p,{...n,rehypePlugins:o}),t[7]=o,t[8]=n,t[9]=s):s=t[9],s}export{Te as MarkdownHtml};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Km as e}from"./index-
|
|
1
|
+
import{Km as e}from"./index-DCps_qBD.js";import{i as t,r as n}from"./absolute-file-path-BxWHDkiV.js";var r=new Map([[`cursor`,`cursor`],[`devin`,`devin-desktop`],[`vscode`,`vscode`],[`vscode-insiders`,`vscode-insiders`],[`windsurf`,`devin-desktop`]]),i=[...r.keys()];function a(e){try{return decodeURIComponent(e)}catch{return e}}function o(e){if(!/^[0-9]+$/u.test(e))return null;let t=Number(e);return Number.isSafeInteger(t)&&t>0?t:null}function s({endValue:t,startValue:n}){let r=o(n);if(r===null)return null;let i=t===void 0?r:o(t);return i===null?null:e({endLineNumber:i,startLineNumber:r})}function c(e){let t=e.match(/#L([0-9]+)(?:C[0-9]+)?(?:-L?([0-9]+)(?:C[0-9]+)?)?$/u);if(t){let n=s({endValue:t[2],startValue:t[1]??``});return n===null?null:{lineRange:n,path:e.slice(0,t.index)}}let n=e.indexOf(`#`);if(n!==-1){let t=e.slice(n+1);return t.length===0||t.includes(`/`)||t.includes(`#`)?null:{lineRange:null,path:e.slice(0,n)}}let r=e.match(/:([0-9]+)-([0-9]+)$/u);if(r){let t=s({endValue:r[2],startValue:r[1]??``});return t===null?null:{lineRange:t,path:e.slice(0,r.index)}}let i=e.match(/:([0-9]+):[0-9]+$/u);if(i){let t=s({endValue:void 0,startValue:i[1]??``});return t===null?null:{lineRange:t,path:e.slice(0,i.index)}}let a=e.match(/:([0-9]+)$/u);if(a){let t=s({endValue:void 0,startValue:a[1]??``});return t===null?null:{lineRange:t,path:e.slice(0,a.index)}}return{lineRange:null,path:e}}var l=/^[A-Za-z]:[\\/]/u,u=/^\/[A-Za-z]:\//u;function d(e){return l.test(e)}function f(e){return e.startsWith(`/`)&&!e.startsWith(`//`)||d(e)}function p(e){let t=d(e)?e.split(/[\\/]/u):e.split(`/`),n=t[t.length-1]??``;return n.startsWith(`.`)||n.includes(`.`)}function m(e){for(let t of e){let e=t.codePointAt(0);if(e!==void 0&&e<32)return!0}return!1}function h({path:e,requireLikelyFileBasename:t}){return f(e)&&e!==`/`&&!e.endsWith(`/`)&&!(d(e)&&e.endsWith(`\\`))&&!e.includes(`
|
|
2
2
|
`)&&!e.includes(`\r`)&&!e.includes(`?`)&&!e.includes(`#`)&&!m(e)&&(!t||p(e))}function g(e,t){if(e.length===0||e.trim()!==e||!f(e))return null;let n=c(a(e));return!n||!h({path:n.path,requireLikelyFileBasename:t})?null:n}var _=/^[a-zA-Z][a-zA-Z0-9+.-]*:/u,v=/^~(?:[^/]*\/|$)/u;function y({baseDir:e,href:r,rootPath:i}){if(!r)return null;let o=a(r),s=c(o);if(r.trim()!==r||o.trim()!==o||s===null||s.path.length===0||s.path.startsWith(`/`)||v.test(s.path)||s.path.startsWith(`#`)||s.path.startsWith(`?`)||_.test(s.path))return null;let l=t({path:e}),u=t({path:i});if(l===null||u===null||!n({candidatePath:l,rootPath:u}))return null;let d=t({path:l===`/`?`/${s.path}`:`${l}/${s.path}`});return d===null||!n({candidatePath:d,rootPath:u})?null:`${d}${o.slice(s.path.length)}`}function b({link:e,rootPath:r}){let i=t({path:e.path});return i===null||!n({candidatePath:i,rootPath:r})?null:{...e,path:i}}function x(e){let t;try{t=new URL(e)}catch{return null}if(t.search.length>0)return null;let n=u.test(t.pathname)?t.pathname.slice(1):t.pathname;if(t.protocol===`file:`)return t.host.length>0?null:{openTargetId:null,path:n+t.hash};let i=r.get(t.protocol.slice(0,-1));return i===void 0||t.host!==`file`||t.username.length>0||t.password.length>0||t.hash.length>0?null:{openTargetId:i,path:n}}function S({absoluteLinks:e,href:t}){if(!t)return null;let n=_.test(t)&&!d(t),r=n?x(t):null;if(n&&r===null)return null;let i=g(r?.path??t,e.kind===`trusted-host`&&!n),a=i===null?null:{...i,openTargetId:r?.openTargetId??null};return a===null||e.kind===`trusted-host`?a:b({link:a,rootPath:e.rootPath})}function C(e){return e.split(`/`).map(encodeURIComponent).join(`/`)}function w(e){return e===null?``:e.startLineNumber===e.endLineNumber?`#L${e.startLineNumber}`:`#L${e.startLineNumber}-L${e.endLineNumber}`}function T(e,t){if(e&&d(e.path)){let[t=``,...n]=e.path.split(/[\\/]+/u);return`file:///${t}/${n.map(encodeURIComponent).join(`/`)}${w(e.lineRange)}`}return!e||!e.path.startsWith(`/`)?t:`file://${C(e.path)}${w(e.lineRange)}`}export{y as a,S as i,T as n,d as r,i as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/markdown-html-
|
|
2
|
-
import{o as e,r as t}from"./rolldown-runtime-BM3Ffeng.js";import{St as n,Wr as r,hi as i,kr as a,mi as o,ri as s}from"./boot-vendor-CKEhulXz.js";import{n as c,t as l}from"./localhost-link-rewrite-B1T6DJ9C.js";import{$f as u,A as d,Bi as f,Co as p,Dh as m,Do as h,Es as g,Fh as _,Gi as v,Hi as y,Hs as b,Ir as x,Js as S,Ls as C,Mp as w,Np as T,Qs as E,Ri as D,So as O,Ui as k,Us as A,V as j,Vi as M,Vs as N,Wi as ee,Ws as P,Xs as te,Zt as F,_s as ne,b_ as re,cd as I,ep as L,fu as R,hf as ie,jh as ae,ku as z,lm as B,lu as oe,np as V,qs as se,ro as H,tp as ce,uu as le,wo as ue,y_ as de,zi as fe}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/markdown-html-CLi3FhDR.js","assets/rolldown-runtime-BM3Ffeng.js","assets/boot-vendor-CKEhulXz.js","assets/markdown-local-file-link-BROpdQPF.js","assets/index-DCps_qBD.js","assets/index-C2K528W0.css","assets/absolute-file-path-BxWHDkiV.js","assets/lib-EkxklCWa.js","assets/space-separated-tokens-yqTL2Lfu.js","assets/lib-BVl87urb.js","assets/lib-BvD6d5X8.js","assets/dist-B5Khuaib.js","assets/zwitch-D6h6J3PA.js","assets/markdown-katex-BVXpbLX5.js","assets/katex-DXu3hBah.js","assets/markdown-katex-DEcVZfaU.css","assets/mermaid.core-DT-5TpEZ.js","assets/chunk-O5CBEL6O-D_CyYpGi.js","assets/src-CWszxwi-.js","assets/chunk-5ZQYHXKU-DEFRVWQK.js","assets/dist-BdK2lg8X.js","assets/chunk-CSCIHK7Q-BDnOSRIi.js","assets/chunk-3OPIFGDE-z5PZRjZ8.js","assets/chunk-L5ZTLDWV-yCLx1U9L.js","assets/chunk-NZK2D7GU-CCXXvZwL.js","assets/rough.esm-CnQ_PgR3.js","assets/chunk-BSJP7CBP-ehWky_PX.js","assets/chunk-KSCS5N6A-WD67G8Av.js","assets/line-Btmbc946.js","assets/path-DaafZ2uI.js","assets/array-flXrMuuD.js","assets/chunk-LZXEDZCA-DFF6B8Wd.js","assets/chunk-WU5MYG2G-BvkmndnD.js","assets/chunk-XPW4576I-BD6TCQo3.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{o as e,r as t}from"./rolldown-runtime-BM3Ffeng.js";import{St as n,Wr as r,hi as i,kr as a,mi as o,ri as s}from"./boot-vendor-CKEhulXz.js";import{n as c,t as l}from"./localhost-link-rewrite-B1T6DJ9C.js";import{$f as u,A as d,Bi as f,Co as p,Dh as m,Do as h,Es as g,Fh as _,Gi as v,Hi as y,Hs as b,Ir as x,Js as S,Ls as C,Mp as w,Np as T,Qs as E,Ri as D,So as O,Ui as k,Us as A,V as j,Vi as M,Vs as N,Wi as ee,Ws as P,Xs as te,Zt as F,_s as ne,b_ as re,cd as I,ep as L,fu as R,hf as ie,jh as ae,ku as z,lm as B,lu as oe,np as V,qs as se,ro as H,tp as ce,uu as le,wo as ue,y_ as de,zi as fe}from"./index-DCps_qBD.js";import{n as U,r as pe}from"./lib-BlhQaCll.js";import{t as W}from"./ccount-DeutX-gO.js";import{n as me,r as he}from"./image-lightbox-DhNslR-8.js";import{i as ge,n as G,r as _e}from"./lib-BVl87urb.js";import{b as ve,c as K,f as q,g as ye,h as be,i as xe,m as Se,n as Ce,p as we,t as Te}from"./lib-EkxklCWa.js";import{c as Ee,d as De,f as Oe,g as ke,h as Ae,i as je,l as Me,m as Ne,n as Pe,o as Fe,p as Ie,r as Le,s as Re,t as ze,u as Be}from"./markdown-prompt-mentions-CPWKCtMa.js";import{a as Ve,i as He,n as Ue,r as We}from"./markdown-local-file-link-BROpdQPF.js";var J=e(s(),1),Y=a(),X=e(i(),1),Ge=(0,X.createContext)(null),Ke=T({id:`markdown-html`,tier:`intent`,load:()=>r(()=>import(`./markdown-html-CLi3FhDR.js`).then(e=>e.MarkdownHtml),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])),loading:e=>(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Te,{...e,skipHtml:!0}),(0,J.jsx)(ie,{className:`h-4 w-32`,"aria-label":`Loading embedded HTML`})]}),error:({retry:e,...t})=>(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(Te,{...t,skipHtml:!0}),(0,J.jsx)(w,{retry:e})]})});function qe(e){ke(e,[/\r?\n|\r/g,Je])}function Je(){return{type:`break`}}function Ye(){return function(e){qe(e)}}function Xe(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:s,mathText:o,mathTextData:s}};function e(e){this.enter({type:`math`,meta:null,value:``,data:{hName:`pre`,hChildren:[{type:`element`,tagName:`code`,properties:{className:[`language-math`,`math-display`]},children:[]}]}},e)}function t(){this.buffer()}function n(){let e=this.resume(),t=this.stack[this.stack.length-1];t.type,t.meta=e}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t;let r=n.data.hChildren[0];r.type,r.tagName,r.children.push({type:`text`,value:t}),this.data.mathFlowInside=void 0}function a(e){this.enter({type:`inlineMath`,value:``,data:{hName:`code`,hProperties:{className:[`language-math`,`math-inline`]},hChildren:[]}},e),this.buffer()}function o(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t,n.data.hChildren.push({type:`text`,value:t})}function s(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}function Ze(e){let t=(e||{}).singleDollarTextMath;return t??=!0,r.peek=i,{unsafe:[{character:`\r`,inConstruct:`mathFlowMeta`},{character:`
|
|
3
3
|
`,inConstruct:`mathFlowMeta`},{character:`$`,after:t?void 0:`\\$`,inConstruct:`phrasing`},{character:`$`,inConstruct:`mathFlowMeta`},{atBreak:!0,character:`$`,after:`\\$`}],handlers:{math:n,inlineMath:r}};function n(e,t,n,r){let i=e.value||``,a=n.createTracker(r),o=`$`.repeat(Math.max(Ae(i,`$`)+1,2)),s=n.enter(`mathFlow`),c=a.move(o);if(e.meta){let t=n.enter(`mathFlowMeta`);c+=a.move(n.safe(e.meta,{after:`
|
|
4
4
|
`,before:c,encode:[`$`],...a.current()})),t()}return c+=a.move(`
|
|
5
5
|
`),i&&(c+=a.move(i+`
|
|
@@ -24,7 +24,7 @@ import{o as e,r as t}from"./rolldown-runtime-BM3Ffeng.js";import{St as n,Wr as r
|
|
|
24
24
|
`?1:e+t===`*/`?2:0,Li=t({keywords:()=>Ri,onCommentEnd:()=>Un,onCommentStart:()=>Hn,typeKeywords:()=>zi}),Ri=new Set(`as.associatedtype.break.case.catch.class.continue.convenience.default.defer.deinit.didSet.do.dynamic.else.enum.extension.fallthrough.false.fileprivate.final.for.func.get.guard.if.import.in.indirect.infix.init.inout.internal.is.lazy.let.mutating.nil.nonmutating.open.operator.override.precedencegroup.private.protocol.public.repeat.required.rethrows.return.self.set.some.static.struct.subscript.super.switch.throw.throws.true.try.typealias.unowned.var.weak.where.while.willSet`.split(`.`)),zi=new Set([`Any`,`Bool`,`Character`,`Double`,`Float`,`Int`,`Never`,`String`,`UInt`,`Void`]),Bi=t({keywords:()=>Vi,onCommentEnd:()=>fr,onCommentStart:()=>dr,quotedKeys:()=>!0}),Vi=new Set([`false`,`true`]),Hi=t({tokenize:()=>Ui}),Ui=(e,t)=>Br(e,{...t,typescript:!0}),Wi=t({keywords:()=>Gi,onCommentEnd:()=>fr,onCommentStart:()=>dr,quotedKeys:()=>!0}),Gi=new Set([`false`,`False`,`FALSE`,`no`,`No`,`NO`,`null`,`Null`,`NULL`,`off`,`Off`,`OFF`,`on`,`On`,`ON`,`true`,`True`,`TRUE`,`yes`,`Yes`,`YES`]);function Q(e){return{...e,jsx:!1,regex:!1,templateStrings:!1}}var Ki=[{id:`javascript`,extension:`js`,aliases:[`js`,`jsx`,`node`],config:ii},{id:`typescript`,extension:`ts`,aliases:[`ts`,`tsx`],config:Hi},{id:`css`,extension:`css`,aliases:[`scss`],config:Q($n)},{id:`python`,extension:`py`,aliases:[`py`,`python3`],config:Q(Ci)},{id:`c`,extension:`c`,aliases:[],config:Q(Wn)},{id:`go`,extension:`go`,aliases:[`golang`],config:Q(hr)},{id:`java`,extension:`java`,aliases:[],config:Q($r)},{id:`rust`,extension:`rs`,aliases:[`rs`],config:Q(Di)},{id:`json`,extension:`json`,aliases:[`jsonc`],config:Q(ni)},{id:`diff`,extension:`diff`,aliases:[`patch`],config:Q(cr)},{id:`shell`,extension:`sh`,aliases:[`sh`,`bash`,`zsh`],config:Q(Ai)},{id:`cpp`,extension:`cpp`,aliases:[`c++`,`cc`,`cxx`],config:Q(qn)},{id:`csharp`,extension:`cs`,aliases:[`c#`,`cs`,`dotnet`],config:Q(Xn)},{id:`sql`,extension:`sql`,aliases:[],config:Q(Mi)},{id:`html`,extension:`html`,aliases:[`htm`,`xml`],config:Vr},{id:`yaml`,extension:`yaml`,aliases:[`yml`],config:Q(Wi)},{id:`markdown`,extension:`md`,aliases:[`md`,`mdx`],config:Q(di)},{id:`kotlin`,extension:`kt`,aliases:[`kts`],config:Q(oi)},{id:`swift`,extension:`swift`,aliases:[],config:Q(Li)},{id:`php`,extension:`php`,aliases:[],config:Q(mi)},{id:`toml`,extension:`toml`,aliases:[],config:Q(Bi)},{id:`powershell`,extension:`ps1`,aliases:[`pwsh`],config:Q(yi)},{id:`dockerfile`,extension:`dockerfile`,aliases:[`docker`],config:Q(pr)},{id:`graphql`,extension:`graphql`,aliases:[`gql`],config:Q(Kr)},{id:`hcl`,extension:`hcl`,aliases:[`terraform`,`tf`],config:Q(Yr)}];function qi(e){return e.trim().toLowerCase().replace(/^\./,``)}var Ji=new Map;for(let e of Ki){let t=new Set([e.id,e.extension,...e.aliases]);for(let n of t){let t=qi(n),r=Ji.get(t);if(r&&r!==e)throw Error(`Language name "${t}" is shared by "${r.id}" and "${e.id}"`);Ji.set(t,e)}}function Yi(e){if(typeof e==`string`)return Ji.get(qi(e))}function Xi(e){return Yi(e)?.id}function Zi(e){return Ki.find(({id:t})=>t===(e||`javascript`))?.config}function Qi(e,t){let{lang:n,cx:r,mark:i,markLine:a}=t||{};return Vn(Bn(e,Zi(n)),{cx:r,mark:i,markLine:a})}var $i={console:`shell`,shellscript:`shell`,h:`c`,hpp:`cpp`,hh:`cpp`,hxx:`cpp`,less:`css`},ea=128,ta=4e6,na=128e3,ra=new Map,ia=0;function aa({code:e,language:t}){return Qi(e,{lang:t===null?void 0:Xi(t)??$i[t]})}function oa({code:e,language:t}){return t===null?`:${e}`:`${t.length}:${t}:${e}`}function sa(e){if(e.code.length>na)return aa(e);let t=oa(e),n=ra.get(t);if(n!==void 0)return ra.delete(t),ra.set(t,n),n;let r=aa(e),i=t.length+r.length;if(i>ta)return r;ra.set(t,r),ia+=i;for(let[e,t]of ra){if(ra.size<=ea&&ia<=ta)break;ra.delete(e),ia-=e.length+t.length}return r}var ca=/^( {0,3})(`{3,}|~{3,})/u,la=/^(?: {4}|\t)/u,ua=`](`,da=/[ \t]/u,fa=/^[!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~]$/u,pa={kind:`trusted-host`};function ma(e){let t=[],n=0;for(;n<e.length;){let r=e.indexOf(`
|
|
25
25
|
`,n);if(r===-1)return t.push(e.slice(n)),t;t.push(e.slice(n,r+1)),n=r+1}return t}function ha(e){let t=ca.exec(e)?.[2];if(!t)return null;let n=t[0];return n!=="`"&&n!==`~`?null:{character:n,length:t.length}}function ga(e,t){let n=e.replace(/\r?\n$/u,``),r=/^( {0,3})/u.exec(n)?.[0].length??0,i=0;for(let e=r;e<n.length&&n[e]===t.character;e+=1)i+=1;return i<t.length?!1:n.slice(r+i).trim().length===0}function _a({character:e,startIndex:t,value:n}){let r=0;for(let i=t;i<n.length&&n[i]===e;i+=1)r+=1;return r}function va(e,t){let n=_a({character:"`",startIndex:t,value:e}),r="`".repeat(n),i=e.indexOf(r,t+n);return i===-1?null:i+n}function ya(e,t){let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;--r)n+=1;return n%2==1}function ba(e,t){for(let n=t-1;n>=0;--n)if(e[n]===`[`)return!ya(e,n);return!1}function xa(e,t){let n=0,r=e.slice(t),i=We(r.slice(wa(r)));for(let r=t;r<e.length;r+=1){let t=e[r];if(t===`
|
|
26
26
|
`||t===`\r`)return null;if(t===`\\`&&r+1<e.length&&!i){r+=1;continue}if(t===`(`){n+=1;continue}if(t===`)`){if(n===0)return r;--n}}return null}function Sa(e){return e===` `||e===` `}function Ca(e){let t=e.length;for(;t>0&&Sa(e[t-1]);)--t;return t}function wa(e){let t=0;for(;t<e.length&&Sa(e[t]);)t+=1;return t}function Ta(e,t){if(e.length<2||e[0]!==t)return!1;for(let n=1;n<e.length;n+=1){let r=e[n];if(r===`\\`&&n+1<e.length){n+=1;continue}if(r===t)return n===e.length-1}return!1}function Ea(e){if(e.length<2||e[0]!==`(`)return!1;let t=1;for(let n=1;n<e.length;n+=1){let r=e[n];if(r===`\\`&&n+1<e.length){n+=1;continue}if(r===`(`){t+=1;continue}if(r===`)`&&(--t,t===0))return n===e.length-1}return!1}function Da(e){let t=e[0];return t===`"`||t===`'`?Ta(e,t):Ea(e)}function Oa(e){for(let t=0;t<e.length-1;t+=1){if(!Sa(e[t]))continue;let n=e[t+1];if(!(n!==`"`&&n!==`'`)&&!Ta(e.slice(t+1),n))return!0}return!1}function ka(e){let t=null;for(let n=0;n<e.length-1;n+=1){if(!Sa(e[n]))continue;let r=e[n+1];r!==`"`&&r!==`'`&&r!==`(`||Da(e.slice(n+1))&&(t=n)}return t}function Aa(e){let t=wa(e),n=Ca(e),r=e.slice(0,t),i=e.slice(n),a=e.slice(t,n),o=ka(a);return o===null?Oa(a)?null:{destination:a,leadingWhitespace:r,suffix:i}:{destination:a.slice(0,o),leadingWhitespace:r,suffix:`${a.slice(o)}${i}`}}function ja(e){let t=``,n=0;for(let r=0;r<e.length-1;r+=1){if(e[r]!==`\\`)continue;let i=e[r+1]??``;fa.test(i)&&(t+=e.slice(n,r),t+=i,n=r+2,r+=1)}return n===0?e:t+e.slice(n)}function Ma(e){return e.startsWith(`/`)||e.startsWith(`file://`)}function Na(e,t){if(e.slice(t,t+2)!==ua||!ba(e,t))return null;let n=t+2;if(e[n]===`<`)return null;let r=xa(e,n);if(r===null)return null;let i=Aa(e.slice(n,r));if(i===null)return null;if(We(i.destination)){let e=i.destination.replaceAll(`\\`,`/`);return e.includes(`<`)||e.includes(`>`)||!He({absoluteLinks:pa,href:e})?null:{endIndex:r,replacement:`${i.leadingWhitespace}<${e}>${i.suffix}`}}let a=ja(i.destination);return!da.test(a)||a.includes(`<`)||a.includes(`>`)||!Ma(a)||!He({absoluteLinks:pa,href:a})?null:{endIndex:r,replacement:`${i.leadingWhitespace}<${a}>${i.suffix}`}}function Pa(e){let t=``,n=0,r=0;for(;r<e.length;){if(e[r]==="`"){r=va(e,r)??r+1;continue}let i=Na(e,r);if(!i){r+=1;continue}t+=e.slice(n,r+2),t+=i.replacement,n=i.endIndex,r=i.endIndex}return n===0?e:t+e.slice(n)}function Fa(e){if(!e.includes(ua))return e;let t=ma(e),n=null,r=``;for(let e of t){if(n){r+=e,ga(e,n)&&(n=null);continue}let t=ha(e);if(t){r+=e,n=t;continue}if(la.test(e)){r+=e;continue}r+=Pa(e)}return r}var Ia=(0,X.createContext)(null),La=(0,X.createContext)([]),Ra=RegExp(`@thread:([A-Za-z0-9_-]+)(?:#msg=(0|[1-9]\\d*))?|(${de})`,`gu`),za=/^#msg=(0|[1-9]\d*)/u,Ba=new RegExp(de,`gu`),Va=/&(?:#\d+|#x[\da-f]+|[a-z][a-z\d]*);/iu,Ha=`@thread`,Ua=/^[A-Za-z0-9_-]+$/u,Wa=`bb-thread-mention`,Ga=`dataThreadId`,Ka=`dataRawThreadId`,qa=`dataRawThreadInlineCode`,Ja=`dataMessageSeq`;function Ya({threadId:e,messageSeq:t,rawThreadId:n,rawThreadInlineCode:r}){return{type:`text`,value:``,data:{hName:Wa,hProperties:{[Ga]:e,...t===null?{}:{[Ja]:t},...n?{[Ka]:e}:{},...r?{[qa]:`true`}:{}}}}}function Xa(e){let t=new WeakMap;return G(e,e=>{if(e.type!==`paragraph`&&e.type!==`heading`&&e.type!==`tableCell`)return;let n=[],r=``;G(e,e=>{if(e.type===`text`||e.type===`inlineCode`){n.push({node:e,offset:r.length}),r+=e.value;return}if(e.type===`image`||e.type===`imageReference`){r+=e.alt??``;return}e.type===`break`&&(r+=`
|
|
27
|
-
`)});for(let e of n)t.set(e.node,{offset:e.offset,text:r})}),t}function Za(e,t){let{value:n}=e;return je(e,Ra,e=>{let r=e[1],i=e[2]??null,a=e[3],o=r??a,s=e.index+e[0].length,c=a===void 0?n:t?.text,l=a===void 0?e.index:(t?.offset??0)+e.index,u=l+e[0].length;return o===void 0||!(a===void 0?N(n,e.index):A(c??n,l))||!(a===void 0?b(n,s):P(c??n,u))?null:Ya({threadId:o,messageSeq:i,rawThreadId:a!==void 0,rawThreadInlineCode:!1})})}function Qa(e){if(typeof e!=`object`||!e)return null;let t=e;return t.type===`textDirective`&&typeof t.name==`string`?{type:t.type,name:t.name,attributes:t.attributes,children:t.children}:null}function $a(e){return Array.isArray(e.children)&&e.children.length===0&&typeof e.attributes==`object`&&e.attributes!==null&&!Array.isArray(e.attributes)&&Object.keys(e.attributes).length===0}function eo(e){let t=new WeakSet;return G(e,e=>{e.type!==`link`&&e.type!==`linkReference`||G(e,e=>{t.add(e)})}),t}function to(e){Ba.lastIndex=0;let t=[],n=0,r;for(;(r=Ba.exec(e))!==null;){let i=r.index+r[0].length;!A(e,r.index)||!P(e,i)||(r.index>n&&t.push({rawThreadId:null,text:e.slice(n,r.index)}),t.push({rawThreadId:r[0],text:r[0]}),n=i)}return t.length===0?[{rawThreadId:null,text:e}]:(n<e.length&&t.push({rawThreadId:null,text:e.slice(n)}),t)}function no(e,t){let n=e.children[t+1],r=n?.type===`text`?za.exec(n.value):null;return r===null||r[1]===void 0?null:{messageSeq:r[1],length:r[0].length}}function ro(e,t,n){let r=e.children[t+1];return r?.type!==`text`||b(r.value,n)}function io(e){if(Va.test(e))return!0;let t=e.includes(`\\`)?e.replaceAll(`\\`,``):e;return t.includes(Ha)||t.search(Ba)!==-1}function ao(){return(e,t)=>{if(typeof t.value==`string`&&!io(t.value))return;let n=eo(e),r=Xa(e);G(e,`inlineCode`,(e,t,i)=>{if(!(i===void 0||t===void 0||n.has(e)||!re(e.value)||!A(r.get(e)?.text??e.value,r.get(e)?.offset??0)||!P(r.get(e)?.text??e.value,(r.get(e)?.offset??0)+e.value.length)))return i.children.splice(t,1,Ya({threadId:e.value,messageSeq:null,rawThreadId:!0,rawThreadInlineCode:!0})),t+1}),G(e,`text`,(e,t,i)=>{if(i===void 0||t===void 0||n.has(e))return;let a=Za(e,r.get(e));if(!(a.length===1&&a[0]===e))return i.children.splice(t,1,...a),t+a.length}),G(e,(e,t,r)=>{let i=Qa(e);if(i===null||t===void 0||t===0||r===void 0||!$a(i)||!Ua.test(i.name))return;let a=r.children[t-1];if(a?.type!==`text`)return;let o=a.value.length-7;if(o<0||!a.value.endsWith(Ha))return;let s=no(r,t);if(!N(a.value,o)||!ro(r,t,s?.length??0)||n.has(e)){let e=a.value.slice(0,o),n={type:`text`,value:`${Ha}:${i.name}`};return e.length===0?(r.children.splice(t-1,2,n),t):(a.value=e,r.children.splice(t,1,n),t+1)}a.value=a.value.slice(0,o);let c=r.children[t+1];return s!==null&&c?.type===`text`&&(c.value=c.value.slice(s.length)),r.children.splice(t,1,Ya({threadId:i.name,messageSeq:s?.messageSeq??null,rawThreadId:!1,rawThreadInlineCode:!1})),t+1})}}function oo({mentions:e}){function t(e){let t=(0,Y.c)(6),{inlineCode:n,threadId:r}=e,i=se(r);if(i===null){let e;return t[0]!==n||t[1]!==r?(e=n?(0,J.jsx)(`code`,{className:`rounded bg-muted/70 px-1.5 py-0.5 font-mono text-xs`,children:r}):r,t[0]=n,t[1]=r,t[2]=e):e=t[2],e}let a;return t[3]!==i||t[4]!==r?(a=(0,J.jsx)(le,{resource:i,serializedText:r}),t[3]=i,t[4]=r,t[5]=a):a=t[5],a}function n(e){let t=(0,Y.c)(7),{messageSeq:n,resource:r,threadId:i}=e;if(n!==null){let e;return t[0]!==n||t[1]!==r||t[2]!==i?(e=(0,J.jsx)(oe,{messageSeq:n,resource:r,threadId:i}),t[0]=n,t[1]=r,t[2]=i,t[3]=e):e=t[3],e}let a=`@thread:${i}`,o;return t[4]!==r||t[5]!==a?(o=(0,J.jsx)(le,{resource:r,serializedText:a}),t[4]=r,t[5]=a,t[6]=o):o=t[6],o}function r(t){let r=(0,Y.c)(7),{messageSeq:i,threadId:a}=t,o=E(a),s;r[0]!==o||r[1]!==a?(s=o??R(e,a),r[0]=o,r[1]=a,r[2]=s):s=r[2];let c=s,l;return r[3]!==i||r[4]!==c||r[5]!==a?(l=(0,J.jsx)(n,{messageSeq:i,resource:c,threadId:a}),r[3]=i,r[4]=c,r[5]=a,r[6]=l):l=r[6],l}function i(i){let a=(0,Y.c)(12),o=i[`data-thread-id`]??``,s=i[`data-raw-thread-id`],c=i[`data-message-seq`],l=c===void 0?null:Number(c),u=te(o);if(o.length===0)return null;if(s!==void 0){let e=i[`data-raw-thread-inline-code`]!==void 0,n;return a[0]!==e||a[1]!==o?(n=(0,J.jsx)(t,{inlineCode:e,threadId:o}),a[0]=e,a[1]=o,a[2]=n):n=a[2],n}let d;a[3]===o?d=a[4]:(d=e.find(e=>e.resource.kind===`thread`&&e.resource.threadId===o)?.resource,a[3]=o,a[4]=d);let f=u??d;if(f===void 0){let e;return a[5]!==l||a[6]!==o?(e=(0,J.jsx)(r,{messageSeq:l,threadId:o}),a[5]=l,a[6]=o,a[7]=e):e=a[7],e}let p;return a[8]!==l||a[9]!==f||a[10]!==o?(p=(0,J.jsx)(n,{messageSeq:l,resource:f,threadId:o}),a[8]=l,a[9]=f,a[10]=o,a[11]=p):p=a[11],p}return i}function so(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){let h,g;return _;function _(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),v}function v(t){return t===35?(h=o,y(t)):t===46?(h=s,y(t)):m&&Se(t)?K(e,v,`whitespace`)(t):!m&&we(t)?xe(e,v)(t):t===null||q(t)||ye(t)||be(t)&&t!==45&&t!==95?A(t):(e.enter(a),e.enter(c),e.consume(t),S)}function y(t){let n=h+`Marker`;return e.enter(a),e.enter(h),e.enter(n),e.consume(t),e.exit(n),b}function b(t){if(t===null||t===34||t===35||t===39||t===46||t===60||t===61||t===62||t===96||t===125||we(t))return n(t);let r=h+`Value`;return e.enter(r),e.consume(t),x}function x(t){if(t===null||t===34||t===39||t===60||t===61||t===62||t===96)return n(t);if(t===35||t===46||t===125||we(t)){let n=h+`Value`;return e.exit(n),e.exit(h),e.exit(a),v(t)}return e.consume(t),x}function S(t){return t===null||q(t)||ye(t)||be(t)&&t!==45&&t!==46&&t!==58&&t!==95?(e.exit(c),m&&Se(t)?K(e,C,`whitespace`)(t):!m&&we(t)?xe(e,C)(t):C(t)):(e.consume(t),S)}function C(t){return t===61?(e.enter(l),e.consume(t),e.exit(l),w):(e.exit(a),v(t))}function w(t){return t===null||t===60||t===61||t===62||t===96||t===125||m&&q(t)?n(t):t===34||t===39?(e.enter(u),e.enter(f),e.consume(t),e.exit(f),g=t,E):m&&Se(t)?K(e,w,`whitespace`)(t):!m&&we(t)?xe(e,w)(t):(e.enter(d),e.enter(p),e.consume(t),g=void 0,T)}function T(t){return t===null||t===34||t===39||t===60||t===61||t===62||t===96?n(t):t===125||we(t)?(e.exit(p),e.exit(d),e.exit(a),v(t)):(e.consume(t),T)}function E(t){return t===g?(e.enter(f),e.consume(t),e.exit(f),e.exit(u),e.exit(a),k):(e.enter(d),D(t))}function D(t){return t===g?(e.exit(d),E(t)):t===null?n(t):q(t)?m?n(t):xe(e,D)(t):(e.enter(p),e.consume(t),O)}function O(t){return t===g||t===null||q(t)?(e.exit(p),D(t)):(e.consume(t),O)}function k(e){return e===125||we(e)?v(e):A(e)}function A(a){return a===125?(e.enter(i),e.consume(a),e.exit(i),e.exit(r),t):n(a)}}function co(e,t,n,r,i,a,o){let s=0,c=0,l;return u;function u(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),d}function d(n){return n===93?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),f(n))}function f(t){if(t===93&&!c)return h(t);let n=e.enter(`chunkText`,{_contentTypeTextTrailing:!0,contentType:`text`,previous:l});return l&&(l.next=n),l=n,p(t)}function p(t){return t===null||s>999||t===91&&++c>32?n(t):t===93&&!c--?(e.exit(`chunkText`),h(t)):q(t)?o?n(t):(e.consume(t),e.exit(`chunkText`),f):(e.consume(t),t===92?m:p)}function m(t){return t===91||t===92||t===93?(e.consume(t),s++,p):p(t)}function h(n){return e.exit(a),e.enter(i),e.consume(n),e.exit(i),e.exit(r),t}}function lo(e,t,n,r){let i=this;return a;function a(t){return t===null||q(t)||be(t)||ye(t)?n(t):(e.enter(r),e.consume(t),o)}function o(a){return a===null||q(a)||ye(a)||be(a)&&a!==45&&a!==95?(e.exit(r),i.previous===45||i.previous===95?n(a):t(a)):(e.consume(a),o)}}var uo={tokenize:ho,concrete:!0},fo={tokenize:go,partial:!0},po={tokenize:_o,partial:!0},mo={tokenize:vo,partial:!0};function ho(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0,s;return c;function c(t){return e.enter(`directiveContainer`),e.enter(`directiveContainerFence`),e.enter(`directiveContainerSequence`),l(t)}function l(t){return t===58?(e.consume(t),o++,l):o<3?n(t):(e.exit(`directiveContainerSequence`),lo.call(r,e,u,n,`directiveContainerName`)(t))}function u(t){return t===91?e.attempt(fo,d,d)(t):d(t)}function d(t){return t===123?e.attempt(po,f,f)(t):f(t)}function f(t){return K(e,p,`whitespace`)(t)}function p(i){return e.exit(`directiveContainerFence`),i===null?C(i):q(i)?r.interrupt?t(i):e.attempt(mo,m,C)(i):n(i)}function m(t){return t===null?C(t):q(t)?e.check(mo,y,C)(t):(e.enter(`directiveContainerContent`),h(t))}function h(t){return e.attempt({tokenize:w,partial:!0},S,a?K(e,g,`linePrefix`,a+1):g)(t)}function g(t){return t===null?S(t):q(t)?e.check(mo,v,S)(t):v(t)}function _(t){if(t===null){let n=e.exit(`chunkDocument`);return r.parser.lazy[n.start.line]=!1,S(t)}return q(t)?e.check(mo,b,x)(t):(e.consume(t),_)}function v(t){let n=e.enter(`chunkDocument`,{contentType:`document`,previous:s});return s&&(s.next=n),s=n,_(t)}function y(t){return e.enter(`directiveContainerContent`),h(t)}function b(t){e.consume(t);let n=e.exit(`chunkDocument`);return r.parser.lazy[n.start.line]=!1,h}function x(t){let n=e.exit(`chunkDocument`);return r.parser.lazy[n.start.line]=!1,S(t)}function S(t){return e.exit(`directiveContainerContent`),C(t)}function C(n){return e.exit(`directiveContainer`),t(n)}function w(e,t,n){let i=0;return K(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4);function a(t){return e.enter(`directiveContainerFence`),e.enter(`directiveContainerSequence`),s(t)}function s(t){return t===58?(e.consume(t),i++,s):i<o?n(t):(e.exit(`directiveContainerSequence`),K(e,c,`whitespace`)(t))}function c(r){return r===null||q(r)?(e.exit(`directiveContainerFence`),t(r)):n(r)}}}function go(e,t,n){return co(e,t,n,`directiveContainerLabel`,`directiveContainerLabelMarker`,`directiveContainerLabelString`,!0)}function _o(e,t,n){return so(e,t,n,`directiveContainerAttributes`,`directiveContainerAttributesMarker`,`directiveContainerAttribute`,`directiveContainerAttributeId`,`directiveContainerAttributeClass`,`directiveContainerAttributeName`,`directiveContainerAttributeInitializerMarker`,`directiveContainerAttributeValueLiteral`,`directiveContainerAttributeValue`,`directiveContainerAttributeValueMarker`,`directiveContainerAttributeValueData`,!0)}function vo(e,t,n){let r=this;return i;function i(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var yo={tokenize:So},bo={tokenize:Co,partial:!0},xo={tokenize:wo,partial:!0};function So(e,t,n){let r=this;return i;function i(t){return e.enter(`directiveLeaf`),e.enter(`directiveLeafSequence`),e.consume(t),a}function a(t){return t===58?(e.consume(t),e.exit(`directiveLeafSequence`),lo.call(r,e,o,n,`directiveLeafName`)):n(t)}function o(t){return t===91?e.attempt(bo,s,s)(t):s(t)}function s(t){return t===123?e.attempt(xo,c,c)(t):c(t)}function c(t){return K(e,l,`whitespace`)(t)}function l(r){return r===null||q(r)?(e.exit(`directiveLeaf`),t(r)):n(r)}}function Co(e,t,n){return co(e,t,n,`directiveLeafLabel`,`directiveLeafLabelMarker`,`directiveLeafLabelString`,!0)}function wo(e,t,n){return so(e,t,n,`directiveLeafAttributes`,`directiveLeafAttributesMarker`,`directiveLeafAttribute`,`directiveLeafAttributeId`,`directiveLeafAttributeClass`,`directiveLeafAttributeName`,`directiveLeafAttributeInitializerMarker`,`directiveLeafAttributeValueLiteral`,`directiveLeafAttributeValue`,`directiveLeafAttributeValueMarker`,`directiveLeafAttributeValueData`,!0)}var To={tokenize:ko,previous:Oo},Eo={tokenize:Ao,partial:!0},Do={tokenize:jo,partial:!0};function Oo(e){return e!==58||this.events[this.events.length-1][1].type===`characterEscape`}function ko(e,t,n){let r=this;return i;function i(t){return e.enter(`directiveText`),e.enter(`directiveTextMarker`),e.consume(t),e.exit(`directiveTextMarker`),lo.call(r,e,a,n,`directiveTextName`)}function a(t){return t===58?n(t):t===91?e.attempt(Eo,o,o)(t):o(t)}function o(t){return t===123?e.attempt(Do,s,s)(t):s(t)}function s(n){return e.exit(`directiveText`),t(n)}}function Ao(e,t,n){return co(e,t,n,`directiveTextLabel`,`directiveTextLabelMarker`,`directiveTextLabelString`)}function jo(e,t,n){return so(e,t,n,`directiveTextAttributes`,`directiveTextAttributesMarker`,`directiveTextAttribute`,`directiveTextAttributeId`,`directiveTextAttributeClass`,`directiveTextAttributeName`,`directiveTextAttributeInitializerMarker`,`directiveTextAttributeValueLiteral`,`directiveTextAttributeValue`,`directiveTextAttributeValueMarker`,`directiveTextAttributeValueData`)}function Mo(){return{text:{58:To},flow:{58:[uo,yo]}}}var No={0:`�`,128:`€`,130:`‚`,131:`ƒ`,132:`„`,133:`…`,134:`†`,135:`‡`,136:`ˆ`,137:`‰`,138:`Š`,139:`‹`,140:`Œ`,142:`Ž`,145:`‘`,146:`’`,147:`“`,148:`”`,149:`•`,150:`–`,151:`—`,152:`˜`,153:`™`,154:`š`,155:`›`,156:`œ`,158:`ž`,159:`Ÿ`};function Po(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}function Fo(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Io(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Lo(e){return Io(e)||Po(e)}var Ro=[``,`Named character references must be terminated by a semicolon`,`Numeric character references must be terminated by a semicolon`,`Named character references cannot be empty`,`Numeric character references cannot be empty`,`Named character references must be known`,`Numeric character references cannot be disallowed`,`Numeric character references cannot be outside the permissible Unicode range`];function zo(e,t){let n=t||{},r=typeof n.additional==`string`?n.additional.charCodeAt(0):n.additional,i=[],a=0,o=-1,s=``,c,l;n.position&&(`start`in n.position||`indent`in n.position?(l=n.position.indent,c=n.position.start):c=n.position);let u=(c?c.line:0)||1,d=(c?c.column:0)||1,f=m(),p;for(a--;++a<=e.length;)if(p===10&&(d=(l?l[o]:0)||1),p=e.charCodeAt(a),p===38){let t=e.charCodeAt(a+1);if(t===9||t===10||t===12||t===32||t===38||t===60||Number.isNaN(t)||r&&t===r){s+=String.fromCharCode(p),d++;continue}let o=a+1,c=o,l=o,u;if(t===35){l=++c;let t=e.charCodeAt(l);t===88||t===120?(u=`hexadecimal`,l=++c):u=`decimal`}else u=`named`;let _=``,v=``,y=``,b=u===`named`?Lo:u===`decimal`?Po:Fo;for(l--;++l<=e.length;){let t=e.charCodeAt(l);if(!b(t))break;y+=String.fromCharCode(t),u===`named`&&pe.includes(y)&&(_=y,v=ve(y))}let x=e.charCodeAt(l)===59;if(x){l++;let e=u===`named`?ve(y):!1;e&&(_=y,v=e)}let S=1+l-o,C=``;if(!(!x&&n.nonTerminated===!1))if(!y)u!==`named`&&h(4,S);else if(u===`named`){if(x&&!v)h(5,1);else if(_!==y&&(l=c+_.length,S=1+l-c,x=!1),!x){let t=_?1:3;if(n.attribute){let n=e.charCodeAt(l);n===61?(h(t,S),v=``):Lo(n)?v=``:h(t,S)}else h(t,S)}C=v}else{x||h(2,S);let e=Number.parseInt(y,u===`hexadecimal`?16:10);if(Bo(e))h(7,S),C=`�`;else if(e in No)h(6,S),C=No[e];else{let t=``;Vo(e)&&h(6,S),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|e&1023),C=t+String.fromCharCode(e)}}if(C){g(),f=m(),a=l-1,d+=l-o+1,i.push(C);let t=m();t.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,C,{start:f,end:t},e.slice(o-1,l)),f=t}else y=e.slice(o-1,l),s+=y,d+=y.length,a=l-1}else p===10&&(u++,o++,d=0),Number.isNaN(p)?g():(s+=String.fromCharCode(p),d++);return i.join(``);function m(){return{line:u,column:d,offset:a+((c?c.offset:0)||0)}}function h(e,t){let r;n.warning&&(r=m(),r.column+=t,r.offset+=t,n.warning.call(n.warningContext||void 0,Ro[e],r,e))}function g(){s&&=(i.push(s),n.text&&n.text.call(n.textContext||void 0,s,{start:f,end:m()}),``)}}function Bo(e){return e>=55296&&e<=57343||e>1114111}function Vo(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534}var Ho=`bb-message-directive`,Uo=`dataDirectiveIndex`,Wo={textDirective:`:`,leafDirective:`::`};function Go(e,t){let n=t?.warn??Ko,r=g(e);for(let[e,t]of r)t.status===`collision`&&n(`[plugin] message directive "${e}" claimed by multiple plugins (${t.pluginIds.join(`, `)}); rendering as literal text`);return r}function Ko(e){console.warn(e)}function qo(e){if(e==null)return{};let t={};for(let[n,r]of Object.entries(e))typeof r==`string`&&(t[n]=r);return t}function Jo(e,t,n=`::`){let r=Object.keys(t);return r.length===0?`${n}${e}`:`${n}${e}{${r.map(e=>`${e}=${JSON.stringify(t[e]??``)}`).join(` `)}}`}function Yo(e,t,n,r,i){let a=e.position?.start?.offset,o=e.position?.end?.offset;return typeof a==`number`&&typeof o==`number`&&a>=0&&o>=a&&o<=t.length?t.slice(a,o):Jo(n,r,i)}function Xo(e){return{type:`paragraph`,children:[],data:{hName:Ho,hProperties:{[Uo]:e}}}}function Zo(e,t,n,r){if(n!==`textDirective`)return e.children.splice(t,1,{type:`paragraph`,children:[{type:`text`,value:r}]}),t;let i=e.children[t-1],a=e.children[t+1];return i?.type===`text`?(i.value+=r,i.position=void 0,a?.type===`text`?(i.value+=a.value,e.children.splice(t,2)):e.children.splice(t,1),t):a?.type===`text`?(a.value=`${r}${a.value}`,a.position=void 0,e.children.splice(t,1),t):(e.children.splice(t,1,{type:`text`,value:r}),t)}function Qo(e){if(typeof e!=`object`||!e)return null;let t=e.type;return t===`textDirective`||t===`leafDirective`?e:null}function $o(e){let t=Mo().text?.[58],n=Array.isArray(t)?t[0]:t;if(n===void 0)throw Error(`Directive text tokenizer is unavailable`);return{text:{58:{previous:e=>e===null,tokenize(t,r,i){let a=this.events.length,o=this.now().line,s=n.tokenize.call(this,t,t=>{let n=``,s=!1;for(let e=a;e<this.events.length;e+=1){let[t,r]=this.events[e];t===`exit`&&(r.type===`directiveTextName`?n=this.sliceSerialize(r):r.type===`directiveTextAttributes`&&(s=r.start.line===o&&r.end.line===o))}let c=e.get(n);return s&&c?.status===`ok`?r(t):i(t)},i);return e=>{let n=s(e);return e=>e!==58||n===void 0?i(e):(t.enter(`directiveTextMarker`),t.consume(e),t.exit(`directiveTextMarker`),n)}}}}}}function es(e){let{indexBase:t,limit:n,mounts:r,registry:i}=e,a=this.data();return(a.micromarkExtensions??=[]).push($o(i)),(e,a)=>{let o=typeof a.value==`string`?a.value:String(a.value??``);r.length=0,G(e,(e,a,s)=>{if(s===void 0||a===void 0)return;let c=e.type===`paragraph`?e:null,l=Qo(c?.children[0]),u=l?.type===`textDirective`&&o.startsWith(`::`,l.position?.start?.offset??-1),d=u?l:Qo(e);if(d===null)return;let f=u?`::`:Wo[d.type],p=typeof d.name==`string`?d.name:``,m=qo(d.attributes),h=Yo(d,o,p,m,f),g=i.get(p);if(!u&&d.type!==`leafDirective`||p.length===0||g===void 0||g.status===`collision`||r.length>=n)return u?void 0:Zo(s,a,d.type,h);let _=t+r.length;r.push({attributes:m,index:_,slot:g.slot,source:h});let v=u&&c!==null&&c.children.length>1?{...c,children:c.children.slice(1)}:null;return s.children.splice(a,1,Xo(_),...v===null?[]:[v]),[_e,a]})}}var ts=[],ns=(0,X.createContext)({mounts:ts,render:null});function rs(e){let t=(0,Y.c)(15),{mounts:n,render:r}=(0,X.useContext)(ns),i=e[`data-directive-index`];if(i===void 0||r===null)return null;let a=n[Number(i)];if(a===void 0)return null;let{message:o,openWorkspaceFile:s,openThreadPanel:c}=r,{slot:l,attributes:u,source:d}=a,f=l.component,p;t[0]!==f||t[1]!==u||t[2]!==o||t[3]!==s||t[4]!==d?(p=(0,J.jsx)(f,{attributes:u,source:d,message:o,openWorkspaceFile:s}),t[0]=f,t[1]=u,t[2]=o,t[3]=s,t[4]=d,t[5]=p):p=t[5];let m=p,h=`${l.pluginId}/${l.id}/${l.generation}`,g;t[6]!==m||t[7]!==c?(g=c===null?m:(0,J.jsx)(H,{openThreadPanel:c,children:m}),t[6]=m,t[7]=c,t[8]=g):g=t[8];let _;return t[9]!==l.id||t[10]!==l.pluginId||t[11]!==d||t[12]!==h||t[13]!==g?(_=(0,J.jsx)(x,{pluginId:l.pluginId,slotKind:`messageDirective`,slotId:l.id,crashFallback:d,children:g},h),t[9]=l.id,t[10]=l.pluginId,t[11]=d,t[12]=h,t[13]=g,t[14]=_):_=t[14],_}var is=(0,X.createContext)(null);function as(e){let t=(0,Y.c)(3),{registry:n,children:r}=e,i;return t[0]!==r||t[1]!==n?(i=(0,J.jsx)(is.Provider,{value:n,children:r}),t[0]=r,t[1]=n,t[2]=i):i=t[2],i}function os(){return(0,X.useContext)(is)}var ss=e(o(),1),cs=`dataCodeFenceOffset`,ls=`dataCodeFenceClosed`,us=/^[ \t>]*/u;function ds(e,t){let n=t?.warn??(e=>console.warn(e)),r=new Map;for(let[t,i]of ne(e)){if(i.status===`collision`){n(`[plugin] code fence language "${t}" claimed by multiple plugins (${i.pluginIds.join(`, `)}); rendering BB's code block`);continue}r.set(t,i.slot)}return r}function fs(e,t){let n=e.position?.start.offset,r=e.position?.end.offset;if(n===void 0||r===void 0)return!1;let i=t.slice(n,r).split(`
|
|
27
|
+
`)});for(let e of n)t.set(e.node,{offset:e.offset,text:r})}),t}function Za(e,t){let{value:n}=e;return je(e,Ra,e=>{let r=e[1],i=e[2]??null,a=e[3],o=r??a,s=e.index+e[0].length,c=a===void 0?n:t?.text,l=a===void 0?e.index:(t?.offset??0)+e.index,u=l+e[0].length;return o===void 0||!(a===void 0?N(n,e.index):A(c??n,l))||!(a===void 0?b(n,s):P(c??n,u))?null:Ya({threadId:o,messageSeq:i,rawThreadId:a!==void 0,rawThreadInlineCode:!1})})}function Qa(e){if(typeof e!=`object`||!e)return null;let t=e;return t.type===`textDirective`&&typeof t.name==`string`?{type:t.type,name:t.name,attributes:t.attributes,children:t.children}:null}function $a(e){return Array.isArray(e.children)&&e.children.length===0&&typeof e.attributes==`object`&&e.attributes!==null&&!Array.isArray(e.attributes)&&Object.keys(e.attributes).length===0}function eo(e){let t=new WeakSet;return G(e,e=>{e.type!==`link`&&e.type!==`linkReference`||G(e,e=>{t.add(e)})}),t}function to(e){Ba.lastIndex=0;let t=[],n=0,r;for(;(r=Ba.exec(e))!==null;){let i=r.index+r[0].length;!A(e,r.index)||!P(e,i)||(r.index>n&&t.push({rawThreadId:null,text:e.slice(n,r.index)}),t.push({rawThreadId:r[0],text:r[0]}),n=i)}return t.length===0?[{rawThreadId:null,text:e}]:(n<e.length&&t.push({rawThreadId:null,text:e.slice(n)}),t)}function no(e,t){let n=e.children[t+1],r=n?.type===`text`?za.exec(n.value):null;return r===null||r[1]===void 0?null:{messageSeq:r[1],length:r[0].length}}function ro(e,t,n){let r=e.children[t+1];return r?.type!==`text`||b(r.value,n)}function io(e){if(Va.test(e))return!0;let t=e.includes(`\\`)?e.replaceAll(`\\`,``):e;return t.includes(Ha)||t.search(Ba)!==-1}function ao(){return(e,t)=>{if(typeof t.value==`string`&&!io(t.value))return;let n=eo(e),r=Xa(e);G(e,`inlineCode`,(e,t,i)=>{if(!(i===void 0||t===void 0||n.has(e)||!re(e.value)||!A(r.get(e)?.text??e.value,r.get(e)?.offset??0)||!P(r.get(e)?.text??e.value,(r.get(e)?.offset??0)+e.value.length)))return i.children.splice(t,1,Ya({threadId:e.value,messageSeq:null,rawThreadId:!0,rawThreadInlineCode:!0})),t+1}),G(e,`text`,(e,t,i)=>{if(i===void 0||t===void 0||n.has(e))return;let a=Za(e,r.get(e));if(!(a.length===1&&a[0]===e))return i.children.splice(t,1,...a),t+a.length}),G(e,(e,t,r)=>{let i=Qa(e);if(i===null||t===void 0||t===0||r===void 0||!$a(i)||!Ua.test(i.name))return;let a=r.children[t-1];if(a?.type!==`text`)return;let o=a.value.length-7;if(o<0||!a.value.endsWith(Ha))return;let s=no(r,t);if(!N(a.value,o)||!ro(r,t,s?.length??0)||n.has(e)){let e=a.value.slice(0,o),n={type:`text`,value:`${Ha}:${i.name}`};return e.length===0?(r.children.splice(t-1,2,n),t):(a.value=e,r.children.splice(t,1,n),t+1)}a.value=a.value.slice(0,o);let c=r.children[t+1];return s!==null&&c?.type===`text`&&(c.value=c.value.slice(s.length)),r.children.splice(t,1,Ya({threadId:i.name,messageSeq:s?.messageSeq??null,rawThreadId:!1,rawThreadInlineCode:!1})),t+1})}}function oo({mentions:e}){function t(e){let t=(0,Y.c)(6),{inlineCode:n,threadId:r}=e,i=se(r);if(i===null){let e;return t[0]!==n||t[1]!==r?(e=n?(0,J.jsx)(`code`,{className:`rounded bg-muted/70 px-1.5 py-0.5 font-mono text-xs`,children:r}):r,t[0]=n,t[1]=r,t[2]=e):e=t[2],e}let a;return t[3]!==i||t[4]!==r?(a=(0,J.jsx)(le,{resource:i,serializedText:r}),t[3]=i,t[4]=r,t[5]=a):a=t[5],a}function n(e){let t=(0,Y.c)(7),{messageSeq:n,resource:r,threadId:i}=e;if(n!==null){let e;return t[0]!==n||t[1]!==r||t[2]!==i?(e=(0,J.jsx)(oe,{messageSeq:n,resource:r,threadId:i}),t[0]=n,t[1]=r,t[2]=i,t[3]=e):e=t[3],e}let a=`@thread:${i}`,o;return t[4]!==r||t[5]!==a?(o=(0,J.jsx)(le,{resource:r,serializedText:a}),t[4]=r,t[5]=a,t[6]=o):o=t[6],o}function r(t){let r=(0,Y.c)(7),{messageSeq:i,threadId:a}=t,o=E(a),s;r[0]!==o||r[1]!==a?(s=o??R(e,a),r[0]=o,r[1]=a,r[2]=s):s=r[2];let c=s,l;return r[3]!==i||r[4]!==c||r[5]!==a?(l=(0,J.jsx)(n,{messageSeq:i,resource:c,threadId:a}),r[3]=i,r[4]=c,r[5]=a,r[6]=l):l=r[6],l}function i(i){let a=(0,Y.c)(12),o=i[`data-thread-id`]??``,s=i[`data-raw-thread-id`],c=i[`data-message-seq`],l=c===void 0?null:Number(c),u=te(o);if(o.length===0)return null;if(s!==void 0){let e=i[`data-raw-thread-inline-code`]!==void 0,n;return a[0]!==e||a[1]!==o?(n=(0,J.jsx)(t,{inlineCode:e,threadId:o}),a[0]=e,a[1]=o,a[2]=n):n=a[2],n}let d;a[3]===o?d=a[4]:(d=e.find(e=>e.resource.kind===`thread`&&e.resource.threadId===o)?.resource,a[3]=o,a[4]=d);let f=u??d;if(f===void 0){let e;return a[5]!==l||a[6]!==o?(e=(0,J.jsx)(r,{messageSeq:l,threadId:o}),a[5]=l,a[6]=o,a[7]=e):e=a[7],e}let p;return a[8]!==l||a[9]!==f||a[10]!==o?(p=(0,J.jsx)(n,{messageSeq:l,resource:f,threadId:o}),a[8]=l,a[9]=f,a[10]=o,a[11]=p):p=a[11],p}return i}function so(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){let h,g;return _;function _(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),v}function v(t){return t===35?(h=o,y(t)):t===46?(h=s,y(t)):m&&Se(t)?K(e,v,`whitespace`)(t):!m&&we(t)?xe(e,v)(t):t===null||q(t)||ye(t)||be(t)&&t!==45&&t!==95?A(t):(e.enter(a),e.enter(c),e.consume(t),S)}function y(t){let n=h+`Marker`;return e.enter(a),e.enter(h),e.enter(n),e.consume(t),e.exit(n),b}function b(t){if(t===null||t===34||t===35||t===39||t===46||t===60||t===61||t===62||t===96||t===125||we(t))return n(t);let r=h+`Value`;return e.enter(r),e.consume(t),x}function x(t){if(t===null||t===34||t===39||t===60||t===61||t===62||t===96)return n(t);if(t===35||t===46||t===125||we(t)){let n=h+`Value`;return e.exit(n),e.exit(h),e.exit(a),v(t)}return e.consume(t),x}function S(t){return t===null||q(t)||ye(t)||be(t)&&t!==45&&t!==46&&t!==58&&t!==95?(e.exit(c),m&&Se(t)?K(e,C,`whitespace`)(t):!m&&we(t)?xe(e,C)(t):C(t)):(e.consume(t),S)}function C(t){return t===61?(e.enter(l),e.consume(t),e.exit(l),w):(e.exit(a),v(t))}function w(t){return t===null||t===60||t===61||t===62||t===96||t===125||m&&q(t)?n(t):t===34||t===39?(e.enter(u),e.enter(f),e.consume(t),e.exit(f),g=t,E):m&&Se(t)?K(e,w,`whitespace`)(t):!m&&we(t)?xe(e,w)(t):(e.enter(d),e.enter(p),e.consume(t),g=void 0,T)}function T(t){return t===null||t===34||t===39||t===60||t===61||t===62||t===96?n(t):t===125||we(t)?(e.exit(p),e.exit(d),e.exit(a),v(t)):(e.consume(t),T)}function E(t){return t===g?(e.enter(f),e.consume(t),e.exit(f),e.exit(u),e.exit(a),k):(e.enter(d),D(t))}function D(t){return t===g?(e.exit(d),E(t)):t===null?n(t):q(t)?m?n(t):xe(e,D)(t):(e.enter(p),e.consume(t),O)}function O(t){return t===g||t===null||q(t)?(e.exit(p),D(t)):(e.consume(t),O)}function k(e){return e===125||we(e)?v(e):A(e)}function A(a){return a===125?(e.enter(i),e.consume(a),e.exit(i),e.exit(r),t):n(a)}}function co(e,t,n,r,i,a,o){let s=0,c=0,l;return u;function u(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),d}function d(n){return n===93?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),f(n))}function f(t){if(t===93&&!c)return h(t);let n=e.enter(`chunkText`,{_contentTypeTextTrailing:!0,contentType:`text`,previous:l});return l&&(l.next=n),l=n,p(t)}function p(t){return t===null||s>999||t===91&&++c>32?n(t):t===93&&!c--?(e.exit(`chunkText`),h(t)):q(t)?o?n(t):(e.consume(t),e.exit(`chunkText`),f):(e.consume(t),t===92?m:p)}function m(t){return t===91||t===92||t===93?(e.consume(t),s++,p):p(t)}function h(n){return e.exit(a),e.enter(i),e.consume(n),e.exit(i),e.exit(r),t}}function lo(e,t,n,r){let i=this;return a;function a(t){return t===null||q(t)||be(t)||ye(t)?n(t):(e.enter(r),e.consume(t),o)}function o(a){return a===null||q(a)||ye(a)||be(a)&&a!==45&&a!==95?(e.exit(r),i.previous===45||i.previous===95?n(a):t(a)):(e.consume(a),o)}}var uo={tokenize:ho,concrete:!0},fo={tokenize:go,partial:!0},po={tokenize:_o,partial:!0},mo={tokenize:vo,partial:!0};function ho(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0,s;return c;function c(t){return e.enter(`directiveContainer`),e.enter(`directiveContainerFence`),e.enter(`directiveContainerSequence`),l(t)}function l(t){return t===58?(e.consume(t),o++,l):o<3?n(t):(e.exit(`directiveContainerSequence`),lo.call(r,e,u,n,`directiveContainerName`)(t))}function u(t){return t===91?e.attempt(fo,d,d)(t):d(t)}function d(t){return t===123?e.attempt(po,f,f)(t):f(t)}function f(t){return K(e,p,`whitespace`)(t)}function p(i){return e.exit(`directiveContainerFence`),i===null?C(i):q(i)?r.interrupt?t(i):e.attempt(mo,m,C)(i):n(i)}function m(t){return t===null?C(t):q(t)?e.check(mo,y,C)(t):(e.enter(`directiveContainerContent`),h(t))}function h(t){return e.attempt({tokenize:w,partial:!0},S,a?K(e,g,`linePrefix`,a+1):g)(t)}function g(t){return t===null?S(t):q(t)?e.check(mo,v,S)(t):v(t)}function _(t){if(t===null){let n=e.exit(`chunkDocument`);return r.parser.lazy[n.start.line]=!1,S(t)}return q(t)?e.check(mo,b,x)(t):(e.consume(t),_)}function v(t){let n=e.enter(`chunkDocument`,{contentType:`document`,previous:s});return s&&(s.next=n),s=n,_(t)}function y(t){return e.enter(`directiveContainerContent`),h(t)}function b(t){e.consume(t);let n=e.exit(`chunkDocument`);return r.parser.lazy[n.start.line]=!1,h}function x(t){let n=e.exit(`chunkDocument`);return r.parser.lazy[n.start.line]=!1,S(t)}function S(t){return e.exit(`directiveContainerContent`),C(t)}function C(n){return e.exit(`directiveContainer`),t(n)}function w(e,t,n){let i=0;return K(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4);function a(t){return e.enter(`directiveContainerFence`),e.enter(`directiveContainerSequence`),s(t)}function s(t){return t===58?(e.consume(t),i++,s):i<o?n(t):(e.exit(`directiveContainerSequence`),K(e,c,`whitespace`)(t))}function c(r){return r===null||q(r)?(e.exit(`directiveContainerFence`),t(r)):n(r)}}}function go(e,t,n){return co(e,t,n,`directiveContainerLabel`,`directiveContainerLabelMarker`,`directiveContainerLabelString`,!0)}function _o(e,t,n){return so(e,t,n,`directiveContainerAttributes`,`directiveContainerAttributesMarker`,`directiveContainerAttribute`,`directiveContainerAttributeId`,`directiveContainerAttributeClass`,`directiveContainerAttributeName`,`directiveContainerAttributeInitializerMarker`,`directiveContainerAttributeValueLiteral`,`directiveContainerAttributeValue`,`directiveContainerAttributeValueMarker`,`directiveContainerAttributeValueData`,!0)}function vo(e,t,n){let r=this;return i;function i(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var yo={tokenize:So},bo={tokenize:Co,partial:!0},xo={tokenize:wo,partial:!0};function So(e,t,n){let r=this;return i;function i(t){return e.enter(`directiveLeaf`),e.enter(`directiveLeafSequence`),e.consume(t),a}function a(t){return t===58?(e.consume(t),e.exit(`directiveLeafSequence`),lo.call(r,e,o,n,`directiveLeafName`)):n(t)}function o(t){return t===91?e.attempt(bo,s,s)(t):s(t)}function s(t){return t===123?e.attempt(xo,c,c)(t):c(t)}function c(t){return K(e,l,`whitespace`)(t)}function l(r){return r===null||q(r)?(e.exit(`directiveLeaf`),t(r)):n(r)}}function Co(e,t,n){return co(e,t,n,`directiveLeafLabel`,`directiveLeafLabelMarker`,`directiveLeafLabelString`,!0)}function wo(e,t,n){return so(e,t,n,`directiveLeafAttributes`,`directiveLeafAttributesMarker`,`directiveLeafAttribute`,`directiveLeafAttributeId`,`directiveLeafAttributeClass`,`directiveLeafAttributeName`,`directiveLeafAttributeInitializerMarker`,`directiveLeafAttributeValueLiteral`,`directiveLeafAttributeValue`,`directiveLeafAttributeValueMarker`,`directiveLeafAttributeValueData`,!0)}var To={tokenize:ko,previous:Oo},Eo={tokenize:Ao,partial:!0},Do={tokenize:jo,partial:!0};function Oo(e){return e!==58||this.events[this.events.length-1][1].type===`characterEscape`}function ko(e,t,n){let r=this;return i;function i(t){return e.enter(`directiveText`),e.enter(`directiveTextMarker`),e.consume(t),e.exit(`directiveTextMarker`),lo.call(r,e,a,n,`directiveTextName`)}function a(t){return t===58?n(t):t===91?e.attempt(Eo,o,o)(t):o(t)}function o(t){return t===123?e.attempt(Do,s,s)(t):s(t)}function s(n){return e.exit(`directiveText`),t(n)}}function Ao(e,t,n){return co(e,t,n,`directiveTextLabel`,`directiveTextLabelMarker`,`directiveTextLabelString`)}function jo(e,t,n){return so(e,t,n,`directiveTextAttributes`,`directiveTextAttributesMarker`,`directiveTextAttribute`,`directiveTextAttributeId`,`directiveTextAttributeClass`,`directiveTextAttributeName`,`directiveTextAttributeInitializerMarker`,`directiveTextAttributeValueLiteral`,`directiveTextAttributeValue`,`directiveTextAttributeValueMarker`,`directiveTextAttributeValueData`)}function Mo(){return{text:{58:To},flow:{58:[uo,yo]}}}var No={0:`�`,128:`€`,130:`‚`,131:`ƒ`,132:`„`,133:`…`,134:`†`,135:`‡`,136:`ˆ`,137:`‰`,138:`Š`,139:`‹`,140:`Œ`,142:`Ž`,145:`‘`,146:`’`,147:`“`,148:`”`,149:`•`,150:`–`,151:`—`,152:`˜`,153:`™`,154:`š`,155:`›`,156:`œ`,158:`ž`,159:`Ÿ`};function Po(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}function Fo(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Io(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Lo(e){return Io(e)||Po(e)}var Ro=[``,`Named character references must be terminated by a semicolon`,`Numeric character references must be terminated by a semicolon`,`Named character references cannot be empty`,`Numeric character references cannot be empty`,`Named character references must be known`,`Numeric character references cannot be disallowed`,`Numeric character references cannot be outside the permissible Unicode range`];function zo(e,t){let n=t||{},r=typeof n.additional==`string`?n.additional.charCodeAt(0):n.additional,i=[],a=0,o=-1,s=``,c,l;n.position&&(`start`in n.position||`indent`in n.position?(l=n.position.indent,c=n.position.start):c=n.position);let u=(c?c.line:0)||1,d=(c?c.column:0)||1,f=m(),p;for(a--;++a<=e.length;)if(p===10&&(d=(l?l[o]:0)||1),p=e.charCodeAt(a),p===38){let t=e.charCodeAt(a+1);if(t===9||t===10||t===12||t===32||t===38||t===60||Number.isNaN(t)||r&&t===r){s+=String.fromCharCode(p),d++;continue}let o=a+1,c=o,l=o,u;if(t===35){l=++c;let t=e.charCodeAt(l);t===88||t===120?(u=`hexadecimal`,l=++c):u=`decimal`}else u=`named`;let _=``,v=``,y=``,b=u===`named`?Lo:u===`decimal`?Po:Fo;for(l--;++l<=e.length;){let t=e.charCodeAt(l);if(!b(t))break;y+=String.fromCharCode(t),u===`named`&&pe.includes(y)&&(_=y,v=ve(y))}let x=e.charCodeAt(l)===59;if(x){l++;let e=u===`named`?ve(y):!1;e&&(_=y,v=e)}let S=1+l-o,C=``;if(!(!x&&n.nonTerminated===!1))if(!y)u!==`named`&&h(4,S);else if(u===`named`){if(x&&!v)h(5,1);else if(_!==y&&(l=c+_.length,S=1+l-c,x=!1),!x){let t=_?1:3;if(n.attribute){let n=e.charCodeAt(l);n===61?(h(t,S),v=``):Lo(n)?v=``:h(t,S)}else h(t,S)}C=v}else{x||h(2,S);let e=Number.parseInt(y,u===`hexadecimal`?16:10);if(Bo(e))h(7,S),C=`�`;else if(e in No)h(6,S),C=No[e];else{let t=``;Vo(e)&&h(6,S),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|e&1023),C=t+String.fromCharCode(e)}}if(C){g(),f=m(),a=l-1,d+=l-o+1,i.push(C);let t=m();t.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,C,{start:f,end:t},e.slice(o-1,l)),f=t}else y=e.slice(o-1,l),s+=y,d+=y.length,a=l-1}else p===10&&(u++,o++,d=0),Number.isNaN(p)?g():(s+=String.fromCharCode(p),d++);return i.join(``);function m(){return{line:u,column:d,offset:a+((c?c.offset:0)||0)}}function h(e,t){let r;n.warning&&(r=m(),r.column+=t,r.offset+=t,n.warning.call(n.warningContext||void 0,Ro[e],r,e))}function g(){s&&=(i.push(s),n.text&&n.text.call(n.textContext||void 0,s,{start:f,end:m()}),``)}}function Bo(e){return e>=55296&&e<=57343||e>1114111}function Vo(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534}var Ho=`bb-message-directive`,Uo=`dataDirectiveIndex`,Wo={textDirective:`:`,leafDirective:`::`};function Go(e,t){let n=t?.warn??Ko,r=g(e);for(let[e,t]of r)t.status===`collision`&&n(`[plugin] message directive "${e}" claimed by multiple plugins (${t.pluginIds.join(`, `)}); rendering as literal text`);return r}function Ko(e){console.warn(e)}function qo(e){if(e==null)return{};let t={};for(let[n,r]of Object.entries(e))typeof r==`string`&&(t[n]=r);return t}function Jo(e,t,n=`::`){let r=Object.keys(t);return r.length===0?`${n}${e}`:`${n}${e}{${r.map(e=>`${e}=${JSON.stringify(t[e]??``)}`).join(` `)}}`}function Yo(e,t,n,r,i){let a=e.position?.start?.offset,o=e.position?.end?.offset;return typeof a==`number`&&typeof o==`number`&&a>=0&&o>=a&&o<=t.length?t.slice(a,o):Jo(n,r,i)}function Xo(e){return{type:`paragraph`,children:[],data:{hName:Ho,hProperties:{[Uo]:e}}}}function Zo(e,t,n,r){if(n!==`textDirective`)return e.children.splice(t,1,{type:`paragraph`,children:[{type:`text`,value:r}]}),t;let i=e.children[t-1],a=e.children[t+1];return i?.type===`text`?(i.value+=r,i.position=void 0,a?.type===`text`?(i.value+=a.value,e.children.splice(t,2)):e.children.splice(t,1),t):a?.type===`text`?(a.value=`${r}${a.value}`,a.position=void 0,e.children.splice(t,1),t):(e.children.splice(t,1,{type:`text`,value:r}),t)}function Qo(e){if(typeof e!=`object`||!e)return null;let t=e.type;return t===`textDirective`||t===`leafDirective`?e:null}function $o(e){let t=Mo().text?.[58],n=Array.isArray(t)?t[0]:t;if(n===void 0)throw Error(`Directive text tokenizer is unavailable`);return{text:{58:{previous:e=>e===null,tokenize(t,r,i){let a=this.events.length,o=this.now().line,s=n.tokenize.call(this,t,t=>{let n=``,s=!1;for(let e=a;e<this.events.length;e+=1){let[t,r]=this.events[e];t===`exit`&&(r.type===`directiveTextName`?n=this.sliceSerialize(r):r.type===`directiveTextAttributes`&&(s=r.start.line===o&&r.end.line===o))}let c=e.get(n);return s&&c?.status===`ok`?r(t):i(t)},i);return e=>{let n=s(e);return e=>e!==58||n===void 0?i(e):(t.enter(`directiveTextMarker`),t.consume(e),t.exit(`directiveTextMarker`),n)}}}}}}function es(e){let{indexBase:t,limit:n,mounts:r,registry:i}=e,a=this.data();return(a.micromarkExtensions??=[]).push($o(i)),(e,a)=>{let o=typeof a.value==`string`?a.value:String(a.value??``);r.length=0,G(e,(e,a,s)=>{if(s===void 0||a===void 0)return;let c=e.type===`paragraph`?e:null,l=Qo(c?.children[0]),u=l?.type===`textDirective`&&o.startsWith(`::`,l.position?.start?.offset??-1),d=u?l:Qo(e);if(d===null)return;let f=u?`::`:Wo[d.type],p=typeof d.name==`string`?d.name:``,m=qo(d.attributes),h=Yo(d,o,p,m,f),g=i.get(p);if(!u&&d.type!==`leafDirective`||p.length===0||g===void 0||g.status===`collision`||r.length>=n)return u?void 0:Zo(s,a,d.type,h);let _=t+r.length;r.push({attributes:m,index:_,slot:g.slot,source:h});let v=u&&c!==null&&c.children.length>1?{...c,children:c.children.slice(1)}:null;return s.children.splice(a,1,Xo(_),...v===null?[]:[v]),[_e,a]})}}var ts=[],ns=(0,X.createContext)({mounts:ts,render:null});function rs(e){let t=(0,Y.c)(15),{mounts:n,render:r}=(0,X.useContext)(ns),i=e[`data-directive-index`];if(i===void 0||r===null)return null;let a=n[Number(i)];if(a===void 0)return null;let{message:o,openWorkspaceFile:s,openThreadPanel:c}=r,{slot:l,attributes:u,source:d}=a,f=l.component,p;t[0]!==f||t[1]!==u||t[2]!==o||t[3]!==s||t[4]!==d?(p=(0,J.jsx)(f,{attributes:u,source:d,message:o,openWorkspaceFile:s}),t[0]=f,t[1]=u,t[2]=o,t[3]=s,t[4]=d,t[5]=p):p=t[5];let m=p,h=`${l.pluginId}/${l.id}/${l.generation}`,g;t[6]!==m||t[7]!==c?(g=c===null?m:(0,J.jsx)(H,{openThreadPanel:c,children:m}),t[6]=m,t[7]=c,t[8]=g):g=t[8];let _;return t[9]!==l.id||t[10]!==l.pluginId||t[11]!==d||t[12]!==h||t[13]!==g?(_=(0,J.jsx)(x,{pluginId:l.pluginId,slotKind:`messageDirective`,slotId:l.id,crashFallback:d,children:g},h),t[9]=l.id,t[10]=l.pluginId,t[11]=d,t[12]=h,t[13]=g,t[14]=_):_=t[14],_}var is=(0,X.createContext)(null);function as(e){let t=(0,Y.c)(3),{registry:n,children:r}=e,i;return t[0]!==r||t[1]!==n?(i=(0,J.jsx)(is.Provider,{value:n,children:r}),t[0]=r,t[1]=n,t[2]=i):i=t[2],i}function os(){return(0,X.useContext)(is)}var ss=e(o(),1),cs=`dataCodeFenceOffset`,ls=`dataCodeFenceClosed`,us=/^[ \t>]*/u;function ds(e,t){let n=t?.warn??(e=>console.warn(e)),r=new Map;for(let[t,i]of ne(e)){if(i.status===`collision`){n(`[plugin] code fence language "${t}" claimed by multiple plugins (${i.pluginIds.join(`, `)}); rendering Moonlet's code block`);continue}r.set(t,i.slot)}return r}function fs(e,t){let n=e.position?.start.offset,r=e.position?.end.offset;if(n===void 0||r===void 0)return!1;let i=t.slice(n,r).split(`
|
|
28
28
|
`),a=Oe(i[0]??``),o=i.at(-1);return a===null||i.length<2||o===void 0?!1:Re(o.replace(us,``),a)&&(e.value===``||e.value.split(`
|
|
29
29
|
`).length===i.length-2)}function ps(e){let{registry:t,sourceOffset:n}=e;return(e,r)=>{let i=typeof r.value==`string`?r.value:String(r.value??``);G(e,`code`,e=>{let r=e.lang?.toLowerCase(),a=e.position?.start.offset;r===void 0||a===void 0||!t.has(r)||(e.data??={},e.data.hProperties={...e.data.hProperties,[cs]:String(n+a),[ls]:String(fs(e,i))})})}}var ms=(0,X.createContext)(null),hs=(0,X.createContext)(null);function gs(){let e=(0,Y.c)(2),t=(0,X.useContext)(hs),n;return e[0]===t?n=e[1]:(n=(0,J.jsx)(J.Fragment,{children:t}),e[0]=t,e[1]=n),n}function _s(e,t){if(t.parentNode!==e){if(t.isConnected&&e.isConnected&&typeof e.moveBefore==`function`)try{e.moveBefore(t,null);return}catch{e.appendChild(t);return}e.appendChild(t)}}function vs(){let e=(0,X.useContext)(ms)?.registry;return e===void 0||e.size===0?null:e}function ys({children:e,message:t,openThreadPanel:n,registry:r,streaming:i}){let[a]=(0,X.useState)(()=>new Map),o=(0,X.useRef)(null),[,s]=(0,X.useReducer)(e=>e+1,0),c=(0,X.useMemo)(()=>({registry:r,attach(e,t){let n=a.get(e);n===void 0?(n={block:null,container:document.createElement(`div`),offset:e,placeholder:t},a.set(e,n)):n.placeholder=t,_s(t,n.container)},detach(e,t){let n=a.get(e);n===void 0||n.placeholder!==t||(n.placeholder=null,o.current!==null&&_s(o.current,n.container),queueMicrotask(()=>{n.placeholder!==null||a.get(e)!==n||(n.container.remove(),a.delete(e),s())}))},update(e,t){let n=a.get(e);if(n===void 0)return;let r=n.block;n.block=t,(r===null||r.code!==t.code||r.closed!==t.closed||r.language!==t.language)&&s()}}),[a,r]),l=[...a.values()].sort((e,t)=>e.offset-t.offset),u=new Map,d=[];for(let e of l){let{block:a}=e;if(a===null)continue;let o=u.get(a.language)??0;u.set(a.language,o+1);let s=r.get(a.language);d.push((0,ss.createPortal)((0,J.jsx)(hs.Provider,{value:a.original,children:s===void 0?(0,J.jsx)(gs,{}):(0,J.jsx)(bs,{code:a.code,index:o,language:a.language,message:t,openThreadPanel:n,slot:s,status:a.closed?`closed`:i?`streaming`:`unclosed`})}),e.container,String(e.offset)))}return(0,J.jsxs)(ms.Provider,{value:c,children:[e,d.length===0?null:(0,J.jsx)(`div`,{ref:o,hidden:!0,"data-code-fence-parking":``}),d]})}var bs=(0,X.memo)(function(e){let t=(0,Y.c)(18),{code:n,index:r,language:i,message:a,openThreadPanel:o,slot:s,status:c}=e,l=s.component,u;t[0]!==l||t[1]!==n||t[2]!==r||t[3]!==i||t[4]!==a||t[5]!==c?(u=(0,J.jsx)(l,{code:n,language:i,status:c,index:r,message:a,Original:gs}),t[0]=l,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=c,t[6]=u):u=t[6];let d=u,f=`${s.pluginId}/${s.id}/${s.generation}`,p=`${a.id}#${i}#${r}`,m=`${c}\n${n}`,h;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,J.jsx)(gs,{}),t[7]=h):h=t[7];let g;t[8]!==d||t[9]!==o?(g=o===null?d:(0,J.jsx)(H,{openThreadPanel:o,children:d}),t[8]=d,t[9]=o,t[10]=g):g=t[10];let _;return t[11]!==s.id||t[12]!==s.pluginId||t[13]!==f||t[14]!==p||t[15]!==m||t[16]!==g?(_=(0,J.jsx)(x,{pluginId:s.pluginId,slotKind:`codeFenceRenderer`,slotId:s.id,instanceId:p,crashResetKey:m,crashFallback:h,children:g},f),t[11]=s.id,t[12]=s.pluginId,t[13]=f,t[14]=p,t[15]=m,t[16]=g,t[17]=_):_=t[17],_});function xs(e){let t=(0,Y.c)(17),{closed:n,code:r,language:i,offset:a,original:o}=e,s=(0,X.useContext)(ms),c=(0,X.useRef)(null),l;t[0]!==s||t[1]!==i?(l=s!==null&&s.registry.has(i),t[0]=s,t[1]=i,t[2]=l):l=t[2];let u=l,d,f;t[3]!==u||t[4]!==s||t[5]!==a?(d=()=>{let e=c.current;if(!(s===null||!u||e===null))return s.attach(a,e),()=>{s.detach(a,e)}},f=[s,u,a],t[3]=u,t[4]=s,t[5]=a,t[6]=d,t[7]=f):(d=t[6],f=t[7]),(0,X.useLayoutEffect)(d,f);let p;if(t[8]!==u||t[9]!==n||t[10]!==r||t[11]!==s||t[12]!==i||t[13]!==a||t[14]!==o?(p=()=>{s!==null&&u&&s.update(a,{closed:n,code:r,language:i,original:o})},t[8]=u,t[9]=n,t[10]=r,t[11]=s,t[12]=i,t[13]=a,t[14]=o,t[15]=p):p=t[15],(0,X.useLayoutEffect)(p),!u)return o;let m;return t[16]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,J.jsx)(`div`,{ref:c,"data-code-fence-placeholder":``}),t[16]=m):m=t[16],m}var Ss=(0,X.createContext)(null);function Cs(e){let t=(0,Y.c)(3),{registry:n,children:r}=e,i;return t[0]!==r||t[1]!==n?(i=(0,J.jsx)(Ss.Provider,{value:n,children:r}),t[0]=r,t[1]=n,t[2]=i):i=t[2],i}function ws(){return(0,X.useContext)(Ss)}var Ts=/^[ \t]*$/u,Es=/^\S/u,Ds=/(?:[-*+]|\d{1,9}[.)])(?:\s|$)/uy,Os=/^ {0,3}\$\$[^$]*$/u,ks=/^ {0,3}(\${2,})/u,As=/^ {0,3}(\${2,})[ \t]*$/u,js=/^[ \t]/u,Ms=/^<(?:pre|script|style|textarea)(?:[\s>]|$)/iu,Ns=/<\/(?:pre|script|style|textarea)>/iu,Ps=/^<![A-Za-z]/u,Fs=/^ {0,3}/u,Is=/^(.+)-(\d+)$/u,Ls=new Set([`footnoteDefinition`,`list`]),Rs=new Set([`definition`,`footnoteDefinition`,`footnoteReference`]),zs=`#unkeyed`,Bs=new Map,Vs={endsOpen:!1,endsWithIndentedCode:!1,hasGlobalConstructs:!1,lastTopLevelType:null};function Hs(e){let t=[],n=null,r=!1,i=!1,a=null,o=0;for(;o<e.length;){let s=e.indexOf(`
|
|
30
30
|
`,o),c=s===-1?e.length:s,l=Ie(e.slice(o,c)),u=Ts.test(l);n===null?r?(yt.test(l)||bt.test(l))&&(r=!1):u||(i&&a!==null&&Es.test(l)&&!(Me(a)&&Fe.test(l))&&t.push(o),n=De(l),n===null&&Os.test(l)&&(r=!0)):Re(l,n)&&(n=null),u||(a=l),i=u,o=s===-1?e.length:s+1}return t}function Us(e,t){let n=e.position?.start.offset,r=e.position?.end.offset;return n===void 0||r===void 0||r<n?null:t.slice(n,r)}function Ws(e){return Oe(e)===null&&js.test(e)}function Gs(e){let t=e.split(`
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{kr as t,ri as n}from"./boot-vendor-CKEhulXz.js";import{hh as r,uu as i}from"./index-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{kr as t,ri as n}from"./boot-vendor-CKEhulXz.js";import{hh as r,uu as i}from"./index-DCps_qBD.js";import{t as a}from"./ccount-DeutX-gO.js";import{a as o,i as s,n as c}from"./lib-BVl87urb.js";import{_ as l,a as u,c as d,d as f,f as p,g as m,h,l as g,m as _,o as ee,p as v,s as y,u as b,v as x,x as S,y as C}from"./lib-EkxklCWa.js";function w(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function T(e,t,n){let r=o((n||{}).ignore||[]),i=E(t),a=-1;for(;++a<i.length;)s(e,`text`,c);function c(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return l(e,t)}function l(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function E(e){let t=[];if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([D(e[0]),O(e[1])])}return t}function D(e){return typeof e==`string`?new RegExp(w(e),`g`):e}function O(e){return typeof e==`function`?e:function(){return e}}var k=`phrasing`,A=[`autolink`,`link`,`image`,`label`];function te(){return{transforms:[ce],enter:{literalAutolink:re,literalAutolinkEmail:j,literalAutolinkHttp:j,literalAutolinkWww:j},exit:{literalAutolink:se,literalAutolinkEmail:oe,literalAutolinkHttp:ie,literalAutolinkWww:ae}}}function ne(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:k,notInConstruct:A},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:k,notInConstruct:A},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:k,notInConstruct:A}]}}function re(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function j(e){this.config.enter.autolinkProtocol.call(this,e)}function ie(e){this.config.exit.autolinkProtocol.call(this,e)}function ae(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function oe(e){this.config.exit.autolinkEmail.call(this,e)}function se(e){this.exit(e)}function ce(e){T(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,le],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,ue]],{ignore:[`link`,`linkReference`]})}function le(e,t,n,r,i){let a=``;if(!pe(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!de(n)))return!1;let o=fe(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function ue(e,t,n,r){return!pe(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function de(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function fe(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=a(e,`(`),o=a(e,`)`);for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),o++;return[e,n]}function pe(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||m(n)||h(n))&&(!t||n!==47)}M.peek=Se;function me(){this.buffer()}function he(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function ge(){this.buffer()}function _e(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function ve(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=l(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ye(e){this.exit(e)}function be(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=l(this.sliceSerialize(e)).toLowerCase(),n.label=t}function xe(e){this.exit(e)}function Se(){return`[`}function M(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function Ce(){return{enter:{gfmFootnoteCallString:me,gfmFootnoteCall:he,gfmFootnoteDefinitionLabelString:ge,gfmFootnoteDefinition:_e},exit:{gfmFootnoteCallString:ve,gfmFootnoteCall:ye,gfmFootnoteDefinitionLabelString:be,gfmFootnoteDefinition:xe}}}function we(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:M},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
2
2
|
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?N:Te))),s(),o}}function Te(e,t,n){return t===0?e:N(e,t,n)}function N(e,t,n){return(n?``:` `)+e}var Ee=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];P.peek=je;function De(){return{canContainEols:[`delete`],enter:{strikethrough:ke},exit:{strikethrough:Ae}}}function Oe(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:Ee}],handlers:{delete:P}}}function ke(e){this.enter({type:`delete`,children:[]},e)}function Ae(e){this.exit(e)}function P(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function je(){return`~`}function Me(e){return e.length}function Ne(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Me,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=Pe(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=F(r[d]);else{let e=F(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding!==!1&&!(n.alignDelimiters===!1&&i===``)&&(n.delimiterStart!==!1||d)&&r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
|
|
3
3
|
`)}function Pe(e){return e==null?``:String(e)}function F(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Fe(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),Ie);return i(),o}function Ie(e,t,n){return`>`+(n?``:` `)+e}function Le(e,t){return I(e,t.inConstruct,!0)&&!I(e,t.notInConstruct,!1)}function I(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function L(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
4
4
|
`&&Le(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{kr as t,ri as n}from"./boot-vendor-CKEhulXz.js";import{Fh as r,gt as i,hf as a}from"./index-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{kr as t,ri as n}from"./boot-vendor-CKEhulXz.js";import{Fh as r,gt as i,hf as a}from"./index-DCps_qBD.js";import{t as o}from"./expandable-text-DkUA9RQT.js";function s(e,t){return t===void 0||t.length===0?e:e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length).trimStart():e}var c=t(),l=e(n(),1),u=[`w-20`,`w-28`,`w-24`,`w-32`];function d(e){let t=(0,c.c)(10),{label:n,rowDataAttribute:i}=e,o;t[0]===i?o=t[1]:(o={[i]:``},t[0]=i,t[1]=o);let s=o,d;t[2]===n?d=t[3]:(d=(0,l.jsx)(`span`,{className:`sr-only`,children:n}),t[2]=n,t[3]=d);let f;t[4]===s?f=t[5]:(f=u.map(e=>(0,l.jsx)(`div`,{...s,"aria-hidden":!0,className:`flex items-center rounded-sm px-2 py-[0.3125rem] max-md:pointer-coarse:py-2`,children:(0,l.jsx)(a,{className:r(`h-3 max-w-[75%] rounded-sm`,e)})},e)),t[4]=s,t[5]=f);let p;return t[6]!==n||t[7]!==d||t[8]!==f?(p=(0,l.jsxs)(`div`,{role:`status`,"aria-label":n,className:`pb-1`,children:[d,f]}),t[6]=n,t[7]=d,t[8]=f,t[9]=p):p=t[9],p}var f=`w-max min-w-64 max-w-80`;function p(e){let t=e.match(/^(.*\S)\s*\(([^()]+)\)$/u);return t?{base:t[1],tag:t[2]}:{base:e,tag:null}}function m({providerLabel:e}){return`Could not load models for ${e}.`}function h({error:e}){switch(e.code){case`provider_unavailable`:return`Provider plugin failed to load`;case`missing_executable`:return`CLI not found`;case`auth_required`:return`Not signed in`;case`timeout`:return`Timed out`;case`failed`:return e.detail}}function g(e){let t=m(e),n=h(e);return n===null?t:`${t} ${n}.`}function _(e){let t=m(e),n=e.error.detail??h(e);return n===null?t:`${t}\n${n}`}function v(e){let t=(0,c.c)(16),{error:n,providerLabel:r,installUrl:a}=e,s=n.code===`missing_executable`?a:void 0,u=i(s),d;t[0]===n?d=t[1]:(d=h({error:n}),t[0]=n,t[1]=d);let f=d,p=n.code===`auth_required`&&n.detail!==f?n.detail:null,g;t[2]===r?g=t[3]:(g=m({providerLabel:r}),t[2]=r,t[3]=g);let _;t[4]===g?_=t[5]:(_=(0,l.jsx)(`span`,{className:`block`,children:g}),t[4]=g,t[5]=_);let v;t[6]!==u||t[7]!==s||t[8]!==f?(v=f===null?null:(0,l.jsx)(o,{expandLabel:`Show details`,className:`mt-1 opacity-80`,children:s===void 0?f:(0,l.jsx)(`a`,{href:s,target:`_blank`,rel:`noreferrer`,onClick:u,className:`underline underline-offset-2 hover:text-foreground`,children:f})}),t[6]=u,t[7]=s,t[8]=f,t[9]=v):v=t[9];let y;t[10]===p?y=t[11]:(y=p===null?null:(0,l.jsx)(o,{expandLabel:`Show details`,className:`mt-1 opacity-80`,children:p}),t[10]=p,t[11]=y);let b;return t[12]!==_||t[13]!==v||t[14]!==y?(b=(0,l.jsxs)(l.Fragment,{children:[_,v,y]}),t[12]=_,t[13]=v,t[14]=y,t[15]=b):b=t[15],b}export{p as a,f as i,g as n,d as o,_ as r,s,v as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Gd as e}from"./index-DCps_qBD.js";function t(t){e.system.experimental_recordTelemetryEvent(t).catch(()=>void 0)}export{t};
|
package/app/dist/assets/{open-in-editor-button-D0wnpT6x.js → open-in-editor-button-tA10Nkqn.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{hi as t,kr as n,ri as r}from"./boot-vendor-CKEhulXz.js";import{Dh as i,Fh as a}from"./index-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{hi as t,kr as n,ri as r}from"./boot-vendor-CKEhulXz.js";import{Dh as i,Fh as a}from"./index-DCps_qBD.js";var o=n(),s=e(t(),1),c=e(r(),1),l=(0,s.forwardRef)(function(e,t){let n=(0,o.c)(14),r,s,l,u;n[0]===e?(r=n[1],s=n[2],l=n[3],u=n[4]):({className:r,onClick:s,label:u,...l}=e,n[0]=e,n[1]=r,n[2]=s,n[3]=l,n[4]=u);let d=u===void 0?`Open in editor`:u,f;n[5]===r?f=n[6]:(f=a(`inline-flex size-5 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground hover:bg-state-hover hover:text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`,r),n[5]=r,n[6]=f);let p;n[7]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,c.jsx)(i,{name:`ExternalLink`,"aria-hidden":!0,className:`size-3`}),n[7]=p):p=n[7];let m;return n[8]!==d||n[9]!==s||n[10]!==l||n[11]!==t||n[12]!==f?(m=(0,c.jsx)(`button`,{ref:t,type:`button`,...l,onClick:s,"aria-label":d,className:f,children:p}),n[8]=d,n[9]=s,n[10]=l,n[11]=t,n[12]=f,n[13]=m):m=n[13],m});export{l as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{kr as t,ri as n}from"./boot-vendor-CKEhulXz.js";import{Fh as r,Tn as i}from"./index-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{kr as t,ri as n}from"./boot-vendor-CKEhulXz.js";import{Fh as r,Tn as i}from"./index-DCps_qBD.js";import{i as a,t as o}from"./bottom-anchored-scroll-body-izL_2xQo.js";import{t as s}from"./title-bar-scroll-fade-OrK4M84v.js";var c=t(),l=e(n(),1),u=`-mx-4 -mt-4 flex h-full min-h-0 flex-1 flex-col overflow-hidden md:-mx-5 md:-mt-5`,d=`max-w-[760px]`;function f(e,{maxWidthClassName:t,footerClassName:n}){return e?(0,l.jsxs)(`div`,{className:`relative shrink-0 bg-background`,children:[(0,l.jsx)(i,{placement:`above`,tone:`background`}),(0,l.jsx)(`div`,{className:r(`mx-auto w-full px-4 pb-4`,t,n),children:e})]}):null}function p(e){let t=(0,c.c)(37),{children:n,footer:i,scrollOverlay:p,shellClassName:m,scrollAreaClassName:h,contentClassName:g,footerClassName:_,maxWidthClassName:v,scrollBehavior:y,scrollAnchorThreadId:b}=e,x=v===void 0?d:v,S=y===void 0?`static`:y,C;t[0]!==i||t[1]!==_||t[2]!==x?(C=f(i,{maxWidthClassName:x,footerClassName:_}),t[0]=i,t[1]=_,t[2]=x,t[3]=C):C=t[3];let w=C;if(S===`bottom-anchor`){let e;t[4]===m?e=t[5]:(e=r(u,m),t[4]=m,t[5]=e);let i;t[6]!==n||t[7]!==g||t[8]!==x||t[9]!==b||t[10]!==h||t[11]!==p||t[12]!==w?(i=(0,l.jsx)(o,{scrollAreaClassName:h,contentClassName:g,maxWidthClassName:x,footer:w,scrollOverlay:p,scrollAnchorThreadId:b,children:n}),t[6]=n,t[7]=g,t[8]=x,t[9]=b,t[10]=h,t[11]=p,t[12]=w,t[13]=i):i=t[13];let a;return t[14]!==e||t[15]!==i?(a=(0,l.jsx)(`div`,{className:e,children:i}),t[14]=e,t[15]=i,t[16]=a):a=t[16],a}let T;t[17]===m?T=t[18]:(T=r(u,m),t[17]=m,t[18]=T);let E;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,l.jsx)(s,{tone:`background`}),t[19]=E):E=t[19];let D;t[20]===h?D=t[21]:(D=r(`@container/page min-h-0 flex-1 overflow-y-auto`,h),t[20]=h,t[21]=D);let O;t[22]!==g||t[23]!==x?(O=r(`mx-auto flex w-full flex-col px-4 pb-4 pt-2`,x,g),t[22]=g,t[23]=x,t[24]=O):O=t[24];let k;t[25]!==n||t[26]!==O?(k=(0,l.jsx)(`div`,{className:O,style:a,children:n}),t[25]=n,t[26]=O,t[27]=k):k=t[27];let A;t[28]!==D||t[29]!==k?(A=(0,l.jsx)(`div`,{"data-page-scroll-viewport":``,className:D,children:k}),t[28]=D,t[29]=k,t[30]=A):A=t[30];let j;t[31]!==w||t[32]!==A?(j=(0,l.jsxs)(`div`,{className:`relative flex min-h-0 flex-1 flex-col overflow-hidden`,children:[E,A,w]}),t[31]=w,t[32]=A,t[33]=j):j=t[33];let M;return t[34]!==j||t[35]!==T?(M=(0,l.jsx)(`div`,{className:T,children:j}),t[34]=j,t[35]=T,t[36]=M):M=t[36],M}export{p as t};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{hi as t,kr as n}from"./boot-vendor-CKEhulXz.js";import{L as r,R as i,xc as a}from"./index-
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{hi as t,kr as n}from"./boot-vendor-CKEhulXz.js";import{L as r,R as i,xc as a}from"./index-DCps_qBD.js";import{n as o}from"./dist-Cnn0QS5H.js";import{n as s,t as c}from"./getOrCreateWorkerPoolSingleton-BvTaufE1.js";import{t as l}from"./code-theme-registration-DWaGQiqG.js";var u=4,d=2,f=1,p=4;function m({hardwareConcurrency:e,coarsePointer:t,deviceMemory:n}){return e===void 0||e<=2?f:Math.max(f,Math.min(t||n!==void 0&&n<=p?d:u,e-1))}function h(){if(typeof navigator>`u`)return;let e=Reflect.get(navigator,`deviceMemory`);return typeof e==`number`&&Number.isFinite(e)?e:void 0}function g(){return typeof window>`u`||typeof window.matchMedia!=`function`?!1:window.matchMedia(a).matches}function _(){return m({hardwareConcurrency:typeof navigator<`u`?navigator.hardwareConcurrency:void 0,coarsePointer:g(),deviceMemory:h()})}function v(){return new Worker(new URL(`/assets/worker-portable-DdSqIJJO.js`,``+import.meta.url),{name:`pierre-diffs-worker`,type:`module`})}var y=n(),b=e(t(),1),x=new WeakMap;function S(e,t){return e.dark===t.dark&&e.light===t.light}function C(e,t){let n=(0,y.c)(9),a=r();l(o);let s=i(),c;n[0]!==t||n[1]!==e||n[2]!==s?(c=()=>{l(o),e!=null&&w(e,t,s)},n[0]=t,n[1]=e,n[2]=s,n[3]=c):c=n[3];let u;n[4]!==t||n[5]!==e||n[6]!==a||n[7]!==s?(u=[t,e,a,s],n[4]=t,n[5]=e,n[6]=a,n[7]=s,n[8]=u):u=n[8],(0,b.useEffect)(c,u)}function w(e,t,n){let r=x.get(e)??t;x.has(e)||x.set(e,t),!S(r,n)&&(x.set(e,n),e.setRenderOptions({theme:n}).catch(e=>{console.error(`Failed to apply the code theme to the Pierre worker pool`,e)}))}var T={workerFactory:v,poolSize:_()};function E(e){return l(o),c({poolOptions:T,highlighterOptions:{theme:e}})}function D(){s()}function O(e){let{pool:t,constructedTheme:n}=e;return C(t,n),null}export{O as PierreWorkerPoolThemeSync,E as acquirePierreWorkerPool,D as releasePierreWorkerPool};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Cr as t,Tr as n,_r as r,dr as i,fr as a,hi as o,kr as s,mr as c,ri as l,vr as u,xr as d,yr as f}from"./boot-vendor-CKEhulXz.js";import{Bm as p,Gm as m,Hm as h,Lm as g,Nu as _,Wm as v,a_ as y,bu as b,md as x,t_ as S,vn as C,yn as w,zm as T}from"./index-CfvM6UcU.js";import{n as E}from"./index.browser-usHDzq3C.js";import{t as D}from"./ToolsViewSplits-BWOxgNc1.js";var O=`bb.thread.fixedPanelTabsState`,k=336*60*60*1e3,A=`none`,j=`thread-info:thread-info:none`,M=`git-diff:git-diff:none`,N=`new-tab:new-tab:none`,P=c(`kind`,[f({kind:r(`working-tree`)}).strict(),f({kind:r(`head`)}).strict(),f({kind:r(`merge-base`),ref:t().min(1)}).strict()]),ee=r(`deleted`).nullable(),F=f({endLineNumber:u().int().positive(),startLineNumber:u().int().positive()}).strict().refine(e=>e.startLineNumber<=e.endLineNumber),te=f({id:t().min(1),kind:r(`thread-info`)}).strict(),ne=f({id:t().min(1),kind:r(`git-diff`)}).strict(),re=f({id:t().min(1),kind:r(`plugin-fixed`),pluginId:t().min(1),tabId:t().min(1)}).strict(),ie=f({fixedTabId:t().min(1),id:t().min(1),kind:r(`plugin-page-fixed`),pageId:t().min(1),pluginId:t().min(1)}).strict(),ae=f({environmentId:t().min(1).nullable(),id:t().min(1),kind:r(`workspace-file-preview`),lineRange:F.nullable().default(null),path:t().min(1),projectId:t().min(1).nullable().default(null),source:P,statusLabel:ee}).strict(),oe=f({environmentId:t().min(1).nullable().default(null),hostId:t().min(1).nullable().default(null),id:t().min(1),kind:r(`host-file-preview`),lineRange:F.nullable().default(null),path:t().min(1),threadId:t().min(1).nullable().default(null)}).strict(),se=f({environmentId:t().min(1).nullable().default(null),id:t().min(1),isPinned:a(),kind:r(`thread-storage-file-preview`),lineRange:F.nullable().default(null),path:t().min(1),threadId:t().min(1).nullable().default(null)}).strict(),ce=f({id:t().min(1),kind:r(`attachment-file-preview`),name:t().min(1),path:t().min(1),projectId:t().min(1)}).strict(),le=f({environmentId:t().min(1).nullable().default(null),id:t().min(1),kind:r(`browser`),desktopTarget:h.optional(),title:t().min(1).max(T).nullable(),url:t().max(p)}).strict(),ue=f({id:t().min(1),kind:r(`new-tab`)}).strict(),de=f({id:t().min(1),kind:r(`terminal`),terminalId:t().min(1),target:y.optional()}).strict(),fe=f({tabs:d(e=>Array.isArray(e)?e.filter(e=>!(typeof e==`object`&&e&&e.kind===`side-chat`)):e,i(n([te,ne,re,ie,f({actionId:t().min(1),fileOpenerOwner:S.optional(),id:t().min(1),kind:r(`plugin-panel`),paramsJson:t().nullable(),pluginId:t().min(1),title:t().min(1)}).strict(),ae,oe,se,ce,le,ue,de]))),activeTabId:t().min(1).nullable(),isOpen:a()}).strict(),pe=f({version:r(1),secondary:fe,lastUsedAt:u().int().nonnegative()}).passthrough();function me(e){return encodeURIComponent(e.trim())}function he(e){try{return decodeURIComponent(e)}catch{return e}}function I({environmentId:e,kind:t,path:n}){return[t,encodeURIComponent(n),encodeURIComponent(e??A)].join(`:`)}function L({environmentId:e,path:t,projectId:n}){return I({environmentId:e??(n?`project:${n}`:null),kind:`workspace-file-preview`,path:t})}function R({environmentId:e,hostId:t,path:n,threadId:r}){return I(t===null?r===null||e===null?{environmentId:null,kind:`host-file-preview`,path:n}:{environmentId:`thread:${r}:environment:${e}`,kind:`host-file-preview`,path:n}:{environmentId:`host:${t}`,kind:`host-file-preview`,path:n})}function ge({path:e,threadId:t}){return I({environmentId:t===null?null:`thread:${t}`,kind:`thread-storage-file-preview`,path:e})}function z({path:e,projectId:t}){return I({environmentId:`project:${t}`,kind:`attachment-file-preview`,path:e})}function B(){return H({pluginId:`core`,tabId:`info`})}function V(){return H({pluginId:`core`,tabId:`diff`})}function _e(e){return e?.kind===`plugin-fixed`&&e.pluginId===`core`&&e.tabId===`diff`}function ve(e){return e===j?B().id:e===M?V().id:e}function H({pluginId:e,tabId:t}){return{id:`plugin-fixed:${encodeURIComponent(e)}:${encodeURIComponent(t)}`,kind:`plugin-fixed`,pluginId:e,tabId:t}}function ye({fixedTabId:e,pageId:t,pluginId:n}){return{fixedTabId:e,id:I({environmentId:null,kind:`plugin-page-fixed`,path:`${n}:${t}:${e}`}),kind:`plugin-page-fixed`,pageId:t,pluginId:n}}function be({actionId:e,paramsJson:t,pluginId:n,title:r}){return{actionId:e,id:I({environmentId:null,kind:`plugin-panel`,path:`${n}:${e}:${t??``}`}),kind:`plugin-panel`,paramsJson:t,pluginId:n,title:r}}function xe({environmentId:e,projectId:t,tab:n}){return{environmentId:e,id:L({environmentId:e,path:n.path,projectId:t}),kind:`workspace-file-preview`,lineRange:n.lineRange,path:n.path,projectId:t,source:n.source,statusLabel:n.statusLabel}}function Se({environmentId:e,hostId:t=null,tab:n,threadId:r}){return{environmentId:e,hostId:t,id:R({environmentId:e,hostId:t,path:n.path,threadId:r}),kind:`host-file-preview`,lineRange:n.lineRange,path:n.path,threadId:r}}function Ce({environmentId:e,isPinned:t,tab:n,threadId:r}){return{environmentId:e,id:ge({path:n.path,threadId:r}),isPinned:t,kind:`thread-storage-file-preview`,lineRange:n.lineRange,path:n.path,threadId:r}}function we({name:e,path:t,projectId:n}){return{id:z({path:t,projectId:n}),kind:`attachment-file-preview`,name:e,path:t,projectId:n}}function Te(){return{id:N,kind:`new-tab`}}function Ee(e){if(!e.secondary.isOpen||e.secondary.tabs.find(t=>t.id===e.secondary.activeTabId)!==void 0)return e;let t=e.secondary.tabs[0];return t===void 0?{...e,secondary:{...e.secondary,activeTabId:null,isOpen:!1}}:{...e,secondary:{...e.secondary,activeTabId:t.id}}}function De({terminalId:e,target:t}){return{id:I({environmentId:null,kind:`terminal`,path:e}),kind:`terminal`,terminalId:e,...t===void 0?{}:{target:t}}}function Oe(e){switch(e.kind){case`thread-info`:return B();case`git-diff`:return V();case`plugin-fixed`:{let t=H(e).id;return e.id===t?e:{...e,id:t}}case`plugin-page-fixed`:{let t=ye({fixedTabId:e.fixedTabId,pageId:e.pageId,pluginId:e.pluginId}).id;return e.id===t?e:{...e,id:t}}case`workspace-file-preview`:{let t=L({environmentId:e.environmentId,path:e.path,projectId:e.projectId});return e.id===t?e:{...e,id:t}}case`host-file-preview`:{let t=R({environmentId:e.environmentId,hostId:e.hostId,path:e.path,threadId:e.threadId});return e.id===t?e:{...e,id:t}}case`thread-storage-file-preview`:{let t=ge({path:e.path,threadId:e.threadId});return e.id===t?e:{...e,id:t}}case`attachment-file-preview`:{let t=z({path:e.path,projectId:e.projectId});return e.id===t?e:{...e,id:t}}case`browser`:{if(e.desktopTarget!==void 0)return e;let t=e.id.split(`:`),n=t.length===3&&t[0]===`browser`?he(t[1]??``):e.id,r=I({environmentId:e.environmentId,kind:e.kind,path:n});return e.id===r?e:{...e,id:r}}case`new-tab`:return e.id===N?e:{...e,id:N};case`plugin-panel`:{let t=be({actionId:e.actionId,paramsJson:e.paramsJson,pluginId:e.pluginId,title:e.title}).id;return e.id===t?e:{...e,id:t}}case`terminal`:{let t=I({environmentId:null,kind:e.kind,path:e.terminalId});return e.id===t?e:{...e,id:t}}}}function ke(e){return e.kind===`new-tab`}function Ae({group:e}){let t=new Set,n=[],r=null;for(let i of e.tabs){let a=Oe(i);ke(a)||t.has(a.id)||(t.add(a.id),n.push(a),e.activeTabId!==null&&(i.id===e.activeTabId||a.id===e.activeTabId)&&(r=a.id))}return{tabs:n,activeTabId:r}}function je(e){return{...Ae({group:e}),isOpen:e.isOpen}}function Me(e){switch(e.kind){case`workspace-file-preview`:case`host-file-preview`:case`thread-storage-file-preview`:return{...e,lineRange:null};case`thread-info`:case`git-diff`:case`plugin-fixed`:case`plugin-page-fixed`:case`attachment-file-preview`:case`browser`:case`new-tab`:case`terminal`:return e;case`plugin-panel`:return e.fileOpenerOwner===void 0?e:{...e,fileOpenerOwner:Ne(e.fileOpenerOwner)}}}function Ne(e){switch(e.kind){case`workspace-file-preview`:return{...e,tab:{...e.tab,lineRange:null}};case`host-file-preview`:return{...e,tab:{...e.tab,lineRange:null}};case`thread-storage-file-preview`:return{...e,tab:{...e.tab,lineRange:null}}}}function Pe({state:e}){return{...e,secondary:{...e.secondary,tabs:e.secondary.tabs.map(Me)}}}function U({state:e}){let t=je(e.secondary);return{version:e.version,secondary:t,lastUsedAt:e.lastUsedAt}}function Fe(e={}){return U({state:{version:1,secondary:e.secondary??{tabs:[],activeTabId:null,isOpen:!1},lastUsedAt:e.lastUsedAt??0}})}var Ie=Fe();function Le({threadId:e}){return`${O}-${me(e)}-1`}function Re(e){return e.startsWith(`${O}-`)}function ze({now:e,state:t}){return e-t.lastUsedAt>k}function Be({initialValue:e,now:t,storedValue:n}){return Ve({initialValue:e,now:t,storedValue:n}).state}function Ve({initialValue:e,now:t,storedValue:n}){if(n===null)return{shouldPrune:!1,state:e};let r;try{r=JSON.parse(n)}catch{return{shouldPrune:!0,state:e}}let i=pe.safeParse(r);if(!i.success)return{shouldPrune:!0,state:e};let a=Pe({state:U({state:i.data})});return ze({now:t,state:a})?{shouldPrune:!0,state:e}:{shouldPrune:!1,state:Ee(a)}}function He(e,t){if(e===null)return!1;let n;try{n=JSON.parse(e)}catch{return!0}if(typeof n!=`object`||!n)return!0;let r=Reflect.get(n,`lastUsedAt`);return typeof r==`number`&&Number.isInteger(r)&&r>=0?t-r>12096e5?!0:!pe.safeParse(n).success:Ve({initialValue:Ie,now:t,storedValue:e}).shouldPrune}function Ue({state:e}){return JSON.stringify(Pe({state:U({state:e})}))}function We(e,t){if(e.id!==t.id||e.kind!==t.kind)return!1;switch(e.kind){case`thread-info`:case`git-diff`:case`new-tab`:return!0;case`plugin-fixed`:return t.kind===`plugin-fixed`&&e.pluginId===t.pluginId&&e.tabId===t.tabId;case`plugin-page-fixed`:return t.kind===`plugin-page-fixed`&&e.pluginId===t.pluginId&&e.pageId===t.pageId&&e.fixedTabId===t.fixedTabId;case`plugin-panel`:return t.kind===`plugin-panel`&&e.pluginId===t.pluginId&&e.actionId===t.actionId&&e.paramsJson===t.paramsJson&&Ge(e.fileOpenerOwner,t.fileOpenerOwner)&&e.title===t.title;case`workspace-file-preview`:return t.kind===`workspace-file-preview`&&e.environmentId===t.environmentId&&m({a:e.lineRange,b:t.lineRange})&&e.path===t.path&&e.projectId===t.projectId&&v(e.source,t.source)&&e.statusLabel===t.statusLabel;case`host-file-preview`:return t.kind===`host-file-preview`&&e.environmentId===t.environmentId&&e.hostId===t.hostId&&m({a:e.lineRange,b:t.lineRange})&&e.path===t.path&&e.threadId===t.threadId;case`browser`:return t.kind===`browser`&&e.desktopTarget?.hostId===t.desktopTarget?.hostId&&e.desktopTarget?.instanceId===t.desktopTarget?.instanceId&&e.desktopTarget?.generation===t.desktopTarget?.generation&&e.environmentId===t.environmentId&&e.url===t.url&&e.title===t.title;case`thread-storage-file-preview`:return t.kind===`thread-storage-file-preview`&&e.environmentId===t.environmentId&&e.isPinned===t.isPinned&&m({a:e.lineRange,b:t.lineRange})&&e.path===t.path&&e.threadId===t.threadId;case`attachment-file-preview`:return t.kind===`attachment-file-preview`&&e.name===t.name&&e.path===t.path&&e.projectId===t.projectId;case`terminal`:return t.kind===`terminal`&&e.terminalId===t.terminalId&&JSON.stringify(e.target)===JSON.stringify(t.target)}}function Ge(e,t){return e===void 0||t===void 0?e===t:e.kind!==t.kind||e.environmentId!==t.environmentId||e.threadId!==t.threadId||e.tab.path!==t.tab.path||!m({a:e.tab.lineRange,b:t.tab.lineRange})?!1:e.kind===`host-file-preview`?t.kind===`host-file-preview`&&e.hostId===t.hostId:e.kind===`workspace-file-preview`?t.kind===`workspace-file-preview`&&e.projectId===t.projectId&&v(e.tab.source,t.tab.source)&&e.tab.statusLabel===t.tab.statusLabel:!0}var W=e(o(),1),G=s(),K=new Map,q=new Map,J=new Map,Ke=[];function Y(e){return q.get(e)??Ke}function X(e,t){w(Y(e),t)||(q.set(e,t),J.get(e)?.forEach(e=>e()))}function qe(e,t){let n=J.get(e)??new Set;return n.add(t),J.set(e,n),()=>{n.delete(t),!(n.size>0)&&(J.delete(e),K.has(e)||q.delete(e))}}function Je({environmentId:e,fileOwnerThreadId:t,panelStateId:n,projectHostId:r=null,projectId:i=null}){return n===null?null:JSON.stringify({environmentId:e,fileOwnerThreadId:t,panelStateId:n,projectHostId:r,projectId:i})}function Z(e){return e.kind===`content`?e.tab.id:`marketplace-plugin:${e.destination.pluginId}`}function Ye(e,t){let n=K.get(e)??[],r=Y(e),i=r.indexOf(Z(t));n.push(i===-1?t:{...t,orderIndex:i}),n.length>25&&n.splice(0,n.length-25),K.set(e,n),i!==-1&&X(e,r.filter(e=>e!==Z(t)))}function Xe(e,t){let n=K.get(e);if(n===void 0)return;let r=n.filter(e=>Z(e)!==t);r.length===0?K.delete(e):K.set(e,r)}function Ze(e,t,n){let r=K.get(e);if(r===void 0)return null;for(;r.length>0;){let i=r.at(-1);if(i===void 0)break;if(i.kind===`plugin-detail`&&!n)return null;if(r.pop(),!t.has(Z(i))){if(r.length===0&&K.delete(e),i.orderIndex!==void 0){let t=Y(e).filter(e=>e!==Z(i));t.splice(Math.min(i.orderIndex,t.length),0,Z(i)),X(e,t)}return i}}return K.delete(e),null}function Qe({environmentId:e,url:t}){return{environmentId:e,id:I({environmentId:e,kind:`browser`,path:E()}),kind:`browser`,title:null,url:t}}function $e({now:e}){let t=x();if(!t)return;let n=[];for(let e=0;e<t.length;e+=1){let r=t.key(e);r&&Re(r)&&n.push(r)}for(let r of n)He(t.getItem(r),e)&&t.removeItem(r)}var Q=e(l(),1);function et(e){let t=(0,G.c)(2),{pluginId:n}=e,r;return t[0]===n?r=t[1]:(r=(0,Q.jsx)(D,{pluginId:n}),t[0]=n,t[1]=r),r}var $=(0,W.createContext)(null);function tt(e,t,n){let r=(0,G.c)(30),i=n===void 0?null:n,a;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=[],r[0]=a):a=r[0];let[o,s]=(0,W.useState)(a),c=(0,W.useRef)(o),[l,u]=(0,W.useState)(null),d=(0,W.useId)(),f=i??`${d}:${e}`,p;r[1]===f?p=r[2]:(p=e=>qe(f,e),r[1]=f,r[2]=p);let m=p,h;r[3]===f?h=r[4]:(h=()=>Y(f),r[3]=f,r[4]=h);let g=h,v=(0,W.useSyncExternalStore)(m,g,g),y;r[5]===f?y=r[6]:(y=e=>X(f,e),r[5]=f,r[6]=y);let b=y,x;r[7]!==o||r[8]!==v?(x=C({items:o,getId:rt,storedOrder:v}),r[7]=o,r[8]=v,r[9]=x):x=r[9];let S=x.ordered,w;r[10]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>{s([]),c.current=[],u(null)},r[10]=w):w=r[10];let T;r[11]===e?T=r[12]:(T=[e],r[11]=e,r[12]=T),(0,W.useLayoutEffect)(w,T);let E;r[13]===Symbol.for(`react.memo_cache_sentinel`)?(E=()=>u(null),r[13]=E):E=r[13];let D=E,O;r[14]===i?O=r[15]:(O=e=>{i!==null&&Xe(i,`marketplace-plugin:${e.pluginId}`);let t=c.current,n=t.some(t=>t.pluginId===e.pluginId)?t:[...t,e];return c.current=n,s(n),u(e.pluginId),!0},r[14]=i,r[15]=O);let k=O,A;r[16]===k?A=r[17]:(A=e=>{let{destination:t}=e;k(t)},r[16]=k,r[17]=A);let j=A,M;r[18]!==i||r[19]!==S||r[20]!==v?(M=e=>{let t=S.findIndex(t=>t.pluginId===e),n=c.current.find(t=>t.pluginId===e);if(n===void 0)return;let r=C({items:c.current.filter(t=>t.pluginId!==e),getId:nt,storedOrder:v}).ordered;c.current=r,i!==null&&Ye(i,{kind:`plugin-detail`,index:t,destination:n}),s(r),u(n=>n===e?r[Math.min(t,r.length-1)]?.pluginId??null:n)},r[18]=i,r[19]=S,r[20]=v,r[21]=M):M=r[21];let N=M;_(k,t);let P;return r[22]!==l||r[23]!==N||r[24]!==k||r[25]!==S||r[26]!==j||r[27]!==b||r[28]!==v?(P={activePluginId:l,destinations:S,dismiss:D,close:N,open:k,restore:j,tabOrder:v,setTabOrder:b},r[22]=l,r[23]=N,r[24]=k,r[25]=S,r[26]=j,r[27]=b,r[28]=v,r[29]=P):P=r[29],P}function nt(e){return`marketplace-plugin:${e.pluginId}`}function rt(e){return`marketplace-plugin:${e.pluginId}`}function it(e){let t=(0,G.c)(53),n=(0,W.useContext)($),r=e.activeTab?.id,i=(0,W.useRef)(r),a=n?.dismiss,o,s;t[0]!==r||t[1]!==a?(o=()=>{i.current!==r&&a?.(),i.current=r},s=[r,a],t[0]=r,t[1]=a,t[2]=o,t[3]=s):(o=t[2],s=t[3]),(0,W.useLayoutEffect)(o,s);let c;if(t[4]!==n||t[5]!==e.tabs){let r=[...e.tabs.map(ut),...n?.destinations.map(lt)??[]];c=n?.destinations.length?C({items:r,getId:ct,storedOrder:n.tabOrder}).ordered:r,t[4]=n,t[5]=e.tabs,t[6]=c}else c=t[6];let l=c,u=n?.setTabOrder,d,f;if(t[7]!==l||t[8]!==u?(d=()=>{u?.(l)},f=[l,u],t[7]=l,t[8]=u,t[9]=d,t[10]=f):(d=t[9],f=t[10]),(0,W.useLayoutEffect)(d,f),n===null||n.destinations.length===0)return e;let p=n.activePluginId,m;t[11]===n?m=t[12]:(m=e=>()=>{n.dismiss(),e()},t[11]=n,t[12]=m);let h=m,_;if(t[13]!==n||t[14]!==e.tabs||t[15]!==h){let r;t[17]===h?r=t[18]:(r=e=>({...e,onSelect:h(e.onSelect)}),t[17]=h,t[18]=r);let i;t[19]===n?i=t[20]:(i=e=>({contentFillsRegion:!0,label:e.title,leadingVisual:(0,Q.jsx)(b,{pluginId:e.pluginId,icon:null,className:`size-3.5`}),onClose:()=>n.close(e.pluginId),onSelect:()=>n.open(e),renderContent:()=>(0,Q.jsx)(et,{pluginId:e.pluginId}),statusLabel:null,tab:{id:`marketplace-plugin:${e.pluginId}`,kind:`marketplace-plugin-detail`}}),t[19]=n,t[20]=i),_=C({items:[...e.tabs.map(r),...n.destinations.map(i)],getId:st,storedOrder:n.tabOrder}),t[13]=n,t[14]=e.tabs,t[15]=h,t[16]=_}else _=t[16];let{ordered:v}=_,y;t[21]!==p||t[22]!==e.activeTab?(y=p===null?e.activeTab:{id:`marketplace-plugin:${p}`,kind:`marketplace-plugin-detail`},t[21]=p,t[22]=e.activeTab,t[23]=y):y=t[23];let x=p!==null||e.isOpen,S=p===null?e.splitPanelStateId:void 0,w;t[24]!==e.onClose||t[25]!==h?(w=h(e.onClose),t[24]=e.onClose,t[25]=h,t[26]=w):w=t[26];let T;t[27]!==e.onCollapse||t[28]!==h?(T=h(e.onCollapse),t[27]=e.onCollapse,t[28]=h,t[29]=T):T=t[29];let E;t[30]!==e.onOpenNewTab||t[31]!==h?(E=h(e.onOpenNewTab),t[30]=e.onOpenNewTab,t[31]=h,t[32]=E):E=t[32];let D;if(t[33]!==e.fixedTabs||t[34]!==h){let n;t[36]===h?n=t[37]:(n=e=>({...e,onSelect:h(e.onSelect)}),t[36]=h,t[37]=n),D=e.fixedTabs.map(n),t[33]=e.fixedTabs,t[34]=h,t[35]=D}else D=t[35];let O;t[38]!==n||t[39]!==e||t[40]!==v?(O=t=>{let{activeTabId:r,overTabId:i}=t,a=v.map(ot),o=a.indexOf(r),s=a.indexOf(i);if(o===-1||s===-1||o===s)return;let c=g(a,o,s);n.setTabOrder(c);let l=new Set(e.tabs.map(at));if(!l.has(r))return;let u=c.filter(e=>l.has(e)).indexOf(r),d=e.tabs[u];d!==void 0&&e.onTabReorder({activeTabId:r,overTabId:d.tab.id})},t[38]=n,t[39]=e,t[40]=v,t[41]=O):O=t[41];let k;return t[42]!==e||t[43]!==w||t[44]!==T||t[45]!==E||t[46]!==D||t[47]!==O||t[48]!==y||t[49]!==x||t[50]!==S||t[51]!==v?(k={...e,activeTab:y,isOpen:x,splitPanelStateId:S,onClose:w,onCollapse:T,onOpenNewTab:E,fixedTabs:D,tabs:v,onTabReorder:O},t[42]=e,t[43]=w,t[44]=T,t[45]=E,t[46]=D,t[47]=O,t[48]=y,t[49]=x,t[50]=S,t[51]=v,t[52]=k):k=t[52],k}function at(e){return e.tab.id}function ot(e){return e.tab.id}function st(e){return e.tab.id}function ct(e){return e}function lt(e){return`marketplace-plugin:${e.pluginId}`}function ut(e){return e.tab.id}export{Ue as A,Ce as C,_e as D,Le as E,ve as O,B as S,Ee as T,Te as _,Qe as a,be as b,Je as c,Ie as d,k as f,Se as g,V as h,tt as i,Be as k,Ye as l,we as m,et as n,$e as o,We as p,it as r,Xe as s,$ as t,Ze as u,H as v,xe as w,De as x,ye as y};
|
|
1
|
+
import{o as e}from"./rolldown-runtime-BM3Ffeng.js";import{Cr as t,Tr as n,_r as r,dr as i,fr as a,hi as o,kr as s,mr as c,ri as l,vr as u,xr as d,yr as f}from"./boot-vendor-CKEhulXz.js";import{Bm as p,Gm as m,Hm as h,Lm as g,Nu as _,Wm as v,a_ as y,bu as b,md as x,t_ as S,vn as C,yn as w,zm as T}from"./index-DCps_qBD.js";import{n as E}from"./index.browser-usHDzq3C.js";import{t as D}from"./ToolsViewSplits-VIMb0WxO.js";var O=`bb.thread.fixedPanelTabsState`,k=336*60*60*1e3,A=`none`,j=`thread-info:thread-info:none`,M=`git-diff:git-diff:none`,N=`new-tab:new-tab:none`,P=c(`kind`,[f({kind:r(`working-tree`)}).strict(),f({kind:r(`head`)}).strict(),f({kind:r(`merge-base`),ref:t().min(1)}).strict()]),ee=r(`deleted`).nullable(),F=f({endLineNumber:u().int().positive(),startLineNumber:u().int().positive()}).strict().refine(e=>e.startLineNumber<=e.endLineNumber),te=f({id:t().min(1),kind:r(`thread-info`)}).strict(),ne=f({id:t().min(1),kind:r(`git-diff`)}).strict(),re=f({id:t().min(1),kind:r(`plugin-fixed`),pluginId:t().min(1),tabId:t().min(1)}).strict(),ie=f({fixedTabId:t().min(1),id:t().min(1),kind:r(`plugin-page-fixed`),pageId:t().min(1),pluginId:t().min(1)}).strict(),ae=f({environmentId:t().min(1).nullable(),id:t().min(1),kind:r(`workspace-file-preview`),lineRange:F.nullable().default(null),path:t().min(1),projectId:t().min(1).nullable().default(null),source:P,statusLabel:ee}).strict(),oe=f({environmentId:t().min(1).nullable().default(null),hostId:t().min(1).nullable().default(null),id:t().min(1),kind:r(`host-file-preview`),lineRange:F.nullable().default(null),path:t().min(1),threadId:t().min(1).nullable().default(null)}).strict(),se=f({environmentId:t().min(1).nullable().default(null),id:t().min(1),isPinned:a(),kind:r(`thread-storage-file-preview`),lineRange:F.nullable().default(null),path:t().min(1),threadId:t().min(1).nullable().default(null)}).strict(),ce=f({id:t().min(1),kind:r(`attachment-file-preview`),name:t().min(1),path:t().min(1),projectId:t().min(1)}).strict(),le=f({environmentId:t().min(1).nullable().default(null),id:t().min(1),kind:r(`browser`),desktopTarget:h.optional(),title:t().min(1).max(T).nullable(),url:t().max(p)}).strict(),ue=f({id:t().min(1),kind:r(`new-tab`)}).strict(),de=f({id:t().min(1),kind:r(`terminal`),terminalId:t().min(1),target:y.optional()}).strict(),fe=f({tabs:d(e=>Array.isArray(e)?e.filter(e=>!(typeof e==`object`&&e&&e.kind===`side-chat`)):e,i(n([te,ne,re,ie,f({actionId:t().min(1),fileOpenerOwner:S.optional(),id:t().min(1),kind:r(`plugin-panel`),paramsJson:t().nullable(),pluginId:t().min(1),title:t().min(1)}).strict(),ae,oe,se,ce,le,ue,de]))),activeTabId:t().min(1).nullable(),isOpen:a()}).strict(),pe=f({version:r(1),secondary:fe,lastUsedAt:u().int().nonnegative()}).passthrough();function me(e){return encodeURIComponent(e.trim())}function he(e){try{return decodeURIComponent(e)}catch{return e}}function I({environmentId:e,kind:t,path:n}){return[t,encodeURIComponent(n),encodeURIComponent(e??A)].join(`:`)}function L({environmentId:e,path:t,projectId:n}){return I({environmentId:e??(n?`project:${n}`:null),kind:`workspace-file-preview`,path:t})}function R({environmentId:e,hostId:t,path:n,threadId:r}){return I(t===null?r===null||e===null?{environmentId:null,kind:`host-file-preview`,path:n}:{environmentId:`thread:${r}:environment:${e}`,kind:`host-file-preview`,path:n}:{environmentId:`host:${t}`,kind:`host-file-preview`,path:n})}function ge({path:e,threadId:t}){return I({environmentId:t===null?null:`thread:${t}`,kind:`thread-storage-file-preview`,path:e})}function z({path:e,projectId:t}){return I({environmentId:`project:${t}`,kind:`attachment-file-preview`,path:e})}function B(){return H({pluginId:`core`,tabId:`info`})}function V(){return H({pluginId:`core`,tabId:`diff`})}function _e(e){return e?.kind===`plugin-fixed`&&e.pluginId===`core`&&e.tabId===`diff`}function ve(e){return e===j?B().id:e===M?V().id:e}function H({pluginId:e,tabId:t}){return{id:`plugin-fixed:${encodeURIComponent(e)}:${encodeURIComponent(t)}`,kind:`plugin-fixed`,pluginId:e,tabId:t}}function ye({fixedTabId:e,pageId:t,pluginId:n}){return{fixedTabId:e,id:I({environmentId:null,kind:`plugin-page-fixed`,path:`${n}:${t}:${e}`}),kind:`plugin-page-fixed`,pageId:t,pluginId:n}}function be({actionId:e,paramsJson:t,pluginId:n,title:r}){return{actionId:e,id:I({environmentId:null,kind:`plugin-panel`,path:`${n}:${e}:${t??``}`}),kind:`plugin-panel`,paramsJson:t,pluginId:n,title:r}}function xe({environmentId:e,projectId:t,tab:n}){return{environmentId:e,id:L({environmentId:e,path:n.path,projectId:t}),kind:`workspace-file-preview`,lineRange:n.lineRange,path:n.path,projectId:t,source:n.source,statusLabel:n.statusLabel}}function Se({environmentId:e,hostId:t=null,tab:n,threadId:r}){return{environmentId:e,hostId:t,id:R({environmentId:e,hostId:t,path:n.path,threadId:r}),kind:`host-file-preview`,lineRange:n.lineRange,path:n.path,threadId:r}}function Ce({environmentId:e,isPinned:t,tab:n,threadId:r}){return{environmentId:e,id:ge({path:n.path,threadId:r}),isPinned:t,kind:`thread-storage-file-preview`,lineRange:n.lineRange,path:n.path,threadId:r}}function we({name:e,path:t,projectId:n}){return{id:z({path:t,projectId:n}),kind:`attachment-file-preview`,name:e,path:t,projectId:n}}function Te(){return{id:N,kind:`new-tab`}}function Ee(e){if(!e.secondary.isOpen||e.secondary.tabs.find(t=>t.id===e.secondary.activeTabId)!==void 0)return e;let t=e.secondary.tabs[0];return t===void 0?{...e,secondary:{...e.secondary,activeTabId:null,isOpen:!1}}:{...e,secondary:{...e.secondary,activeTabId:t.id}}}function De({terminalId:e,target:t}){return{id:I({environmentId:null,kind:`terminal`,path:e}),kind:`terminal`,terminalId:e,...t===void 0?{}:{target:t}}}function Oe(e){switch(e.kind){case`thread-info`:return B();case`git-diff`:return V();case`plugin-fixed`:{let t=H(e).id;return e.id===t?e:{...e,id:t}}case`plugin-page-fixed`:{let t=ye({fixedTabId:e.fixedTabId,pageId:e.pageId,pluginId:e.pluginId}).id;return e.id===t?e:{...e,id:t}}case`workspace-file-preview`:{let t=L({environmentId:e.environmentId,path:e.path,projectId:e.projectId});return e.id===t?e:{...e,id:t}}case`host-file-preview`:{let t=R({environmentId:e.environmentId,hostId:e.hostId,path:e.path,threadId:e.threadId});return e.id===t?e:{...e,id:t}}case`thread-storage-file-preview`:{let t=ge({path:e.path,threadId:e.threadId});return e.id===t?e:{...e,id:t}}case`attachment-file-preview`:{let t=z({path:e.path,projectId:e.projectId});return e.id===t?e:{...e,id:t}}case`browser`:{if(e.desktopTarget!==void 0)return e;let t=e.id.split(`:`),n=t.length===3&&t[0]===`browser`?he(t[1]??``):e.id,r=I({environmentId:e.environmentId,kind:e.kind,path:n});return e.id===r?e:{...e,id:r}}case`new-tab`:return e.id===N?e:{...e,id:N};case`plugin-panel`:{let t=be({actionId:e.actionId,paramsJson:e.paramsJson,pluginId:e.pluginId,title:e.title}).id;return e.id===t?e:{...e,id:t}}case`terminal`:{let t=I({environmentId:null,kind:e.kind,path:e.terminalId});return e.id===t?e:{...e,id:t}}}}function ke(e){return e.kind===`new-tab`}function Ae({group:e}){let t=new Set,n=[],r=null;for(let i of e.tabs){let a=Oe(i);ke(a)||t.has(a.id)||(t.add(a.id),n.push(a),e.activeTabId!==null&&(i.id===e.activeTabId||a.id===e.activeTabId)&&(r=a.id))}return{tabs:n,activeTabId:r}}function je(e){return{...Ae({group:e}),isOpen:e.isOpen}}function Me(e){switch(e.kind){case`workspace-file-preview`:case`host-file-preview`:case`thread-storage-file-preview`:return{...e,lineRange:null};case`thread-info`:case`git-diff`:case`plugin-fixed`:case`plugin-page-fixed`:case`attachment-file-preview`:case`browser`:case`new-tab`:case`terminal`:return e;case`plugin-panel`:return e.fileOpenerOwner===void 0?e:{...e,fileOpenerOwner:Ne(e.fileOpenerOwner)}}}function Ne(e){switch(e.kind){case`workspace-file-preview`:return{...e,tab:{...e.tab,lineRange:null}};case`host-file-preview`:return{...e,tab:{...e.tab,lineRange:null}};case`thread-storage-file-preview`:return{...e,tab:{...e.tab,lineRange:null}}}}function Pe({state:e}){return{...e,secondary:{...e.secondary,tabs:e.secondary.tabs.map(Me)}}}function U({state:e}){let t=je(e.secondary);return{version:e.version,secondary:t,lastUsedAt:e.lastUsedAt}}function Fe(e={}){return U({state:{version:1,secondary:e.secondary??{tabs:[],activeTabId:null,isOpen:!1},lastUsedAt:e.lastUsedAt??0}})}var Ie=Fe();function Le({threadId:e}){return`${O}-${me(e)}-1`}function Re(e){return e.startsWith(`${O}-`)}function ze({now:e,state:t}){return e-t.lastUsedAt>k}function Be({initialValue:e,now:t,storedValue:n}){return Ve({initialValue:e,now:t,storedValue:n}).state}function Ve({initialValue:e,now:t,storedValue:n}){if(n===null)return{shouldPrune:!1,state:e};let r;try{r=JSON.parse(n)}catch{return{shouldPrune:!0,state:e}}let i=pe.safeParse(r);if(!i.success)return{shouldPrune:!0,state:e};let a=Pe({state:U({state:i.data})});return ze({now:t,state:a})?{shouldPrune:!0,state:e}:{shouldPrune:!1,state:Ee(a)}}function He(e,t){if(e===null)return!1;let n;try{n=JSON.parse(e)}catch{return!0}if(typeof n!=`object`||!n)return!0;let r=Reflect.get(n,`lastUsedAt`);return typeof r==`number`&&Number.isInteger(r)&&r>=0?t-r>12096e5?!0:!pe.safeParse(n).success:Ve({initialValue:Ie,now:t,storedValue:e}).shouldPrune}function Ue({state:e}){return JSON.stringify(Pe({state:U({state:e})}))}function We(e,t){if(e.id!==t.id||e.kind!==t.kind)return!1;switch(e.kind){case`thread-info`:case`git-diff`:case`new-tab`:return!0;case`plugin-fixed`:return t.kind===`plugin-fixed`&&e.pluginId===t.pluginId&&e.tabId===t.tabId;case`plugin-page-fixed`:return t.kind===`plugin-page-fixed`&&e.pluginId===t.pluginId&&e.pageId===t.pageId&&e.fixedTabId===t.fixedTabId;case`plugin-panel`:return t.kind===`plugin-panel`&&e.pluginId===t.pluginId&&e.actionId===t.actionId&&e.paramsJson===t.paramsJson&&Ge(e.fileOpenerOwner,t.fileOpenerOwner)&&e.title===t.title;case`workspace-file-preview`:return t.kind===`workspace-file-preview`&&e.environmentId===t.environmentId&&m({a:e.lineRange,b:t.lineRange})&&e.path===t.path&&e.projectId===t.projectId&&v(e.source,t.source)&&e.statusLabel===t.statusLabel;case`host-file-preview`:return t.kind===`host-file-preview`&&e.environmentId===t.environmentId&&e.hostId===t.hostId&&m({a:e.lineRange,b:t.lineRange})&&e.path===t.path&&e.threadId===t.threadId;case`browser`:return t.kind===`browser`&&e.desktopTarget?.hostId===t.desktopTarget?.hostId&&e.desktopTarget?.instanceId===t.desktopTarget?.instanceId&&e.desktopTarget?.generation===t.desktopTarget?.generation&&e.environmentId===t.environmentId&&e.url===t.url&&e.title===t.title;case`thread-storage-file-preview`:return t.kind===`thread-storage-file-preview`&&e.environmentId===t.environmentId&&e.isPinned===t.isPinned&&m({a:e.lineRange,b:t.lineRange})&&e.path===t.path&&e.threadId===t.threadId;case`attachment-file-preview`:return t.kind===`attachment-file-preview`&&e.name===t.name&&e.path===t.path&&e.projectId===t.projectId;case`terminal`:return t.kind===`terminal`&&e.terminalId===t.terminalId&&JSON.stringify(e.target)===JSON.stringify(t.target)}}function Ge(e,t){return e===void 0||t===void 0?e===t:e.kind!==t.kind||e.environmentId!==t.environmentId||e.threadId!==t.threadId||e.tab.path!==t.tab.path||!m({a:e.tab.lineRange,b:t.tab.lineRange})?!1:e.kind===`host-file-preview`?t.kind===`host-file-preview`&&e.hostId===t.hostId:e.kind===`workspace-file-preview`?t.kind===`workspace-file-preview`&&e.projectId===t.projectId&&v(e.tab.source,t.tab.source)&&e.tab.statusLabel===t.tab.statusLabel:!0}var W=e(o(),1),G=s(),K=new Map,q=new Map,J=new Map,Ke=[];function Y(e){return q.get(e)??Ke}function X(e,t){w(Y(e),t)||(q.set(e,t),J.get(e)?.forEach(e=>e()))}function qe(e,t){let n=J.get(e)??new Set;return n.add(t),J.set(e,n),()=>{n.delete(t),!(n.size>0)&&(J.delete(e),K.has(e)||q.delete(e))}}function Je({environmentId:e,fileOwnerThreadId:t,panelStateId:n,projectHostId:r=null,projectId:i=null}){return n===null?null:JSON.stringify({environmentId:e,fileOwnerThreadId:t,panelStateId:n,projectHostId:r,projectId:i})}function Z(e){return e.kind===`content`?e.tab.id:`marketplace-plugin:${e.destination.pluginId}`}function Ye(e,t){let n=K.get(e)??[],r=Y(e),i=r.indexOf(Z(t));n.push(i===-1?t:{...t,orderIndex:i}),n.length>25&&n.splice(0,n.length-25),K.set(e,n),i!==-1&&X(e,r.filter(e=>e!==Z(t)))}function Xe(e,t){let n=K.get(e);if(n===void 0)return;let r=n.filter(e=>Z(e)!==t);r.length===0?K.delete(e):K.set(e,r)}function Ze(e,t,n){let r=K.get(e);if(r===void 0)return null;for(;r.length>0;){let i=r.at(-1);if(i===void 0)break;if(i.kind===`plugin-detail`&&!n)return null;if(r.pop(),!t.has(Z(i))){if(r.length===0&&K.delete(e),i.orderIndex!==void 0){let t=Y(e).filter(e=>e!==Z(i));t.splice(Math.min(i.orderIndex,t.length),0,Z(i)),X(e,t)}return i}}return K.delete(e),null}function Qe({environmentId:e,url:t}){return{environmentId:e,id:I({environmentId:e,kind:`browser`,path:E()}),kind:`browser`,title:null,url:t}}function $e({now:e}){let t=x();if(!t)return;let n=[];for(let e=0;e<t.length;e+=1){let r=t.key(e);r&&Re(r)&&n.push(r)}for(let r of n)He(t.getItem(r),e)&&t.removeItem(r)}var Q=e(l(),1);function et(e){let t=(0,G.c)(2),{pluginId:n}=e,r;return t[0]===n?r=t[1]:(r=(0,Q.jsx)(D,{pluginId:n}),t[0]=n,t[1]=r),r}var $=(0,W.createContext)(null);function tt(e,t,n){let r=(0,G.c)(30),i=n===void 0?null:n,a;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=[],r[0]=a):a=r[0];let[o,s]=(0,W.useState)(a),c=(0,W.useRef)(o),[l,u]=(0,W.useState)(null),d=(0,W.useId)(),f=i??`${d}:${e}`,p;r[1]===f?p=r[2]:(p=e=>qe(f,e),r[1]=f,r[2]=p);let m=p,h;r[3]===f?h=r[4]:(h=()=>Y(f),r[3]=f,r[4]=h);let g=h,v=(0,W.useSyncExternalStore)(m,g,g),y;r[5]===f?y=r[6]:(y=e=>X(f,e),r[5]=f,r[6]=y);let b=y,x;r[7]!==o||r[8]!==v?(x=C({items:o,getId:rt,storedOrder:v}),r[7]=o,r[8]=v,r[9]=x):x=r[9];let S=x.ordered,w;r[10]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>{s([]),c.current=[],u(null)},r[10]=w):w=r[10];let T;r[11]===e?T=r[12]:(T=[e],r[11]=e,r[12]=T),(0,W.useLayoutEffect)(w,T);let E;r[13]===Symbol.for(`react.memo_cache_sentinel`)?(E=()=>u(null),r[13]=E):E=r[13];let D=E,O;r[14]===i?O=r[15]:(O=e=>{i!==null&&Xe(i,`marketplace-plugin:${e.pluginId}`);let t=c.current,n=t.some(t=>t.pluginId===e.pluginId)?t:[...t,e];return c.current=n,s(n),u(e.pluginId),!0},r[14]=i,r[15]=O);let k=O,A;r[16]===k?A=r[17]:(A=e=>{let{destination:t}=e;k(t)},r[16]=k,r[17]=A);let j=A,M;r[18]!==i||r[19]!==S||r[20]!==v?(M=e=>{let t=S.findIndex(t=>t.pluginId===e),n=c.current.find(t=>t.pluginId===e);if(n===void 0)return;let r=C({items:c.current.filter(t=>t.pluginId!==e),getId:nt,storedOrder:v}).ordered;c.current=r,i!==null&&Ye(i,{kind:`plugin-detail`,index:t,destination:n}),s(r),u(n=>n===e?r[Math.min(t,r.length-1)]?.pluginId??null:n)},r[18]=i,r[19]=S,r[20]=v,r[21]=M):M=r[21];let N=M;_(k,t);let P;return r[22]!==l||r[23]!==N||r[24]!==k||r[25]!==S||r[26]!==j||r[27]!==b||r[28]!==v?(P={activePluginId:l,destinations:S,dismiss:D,close:N,open:k,restore:j,tabOrder:v,setTabOrder:b},r[22]=l,r[23]=N,r[24]=k,r[25]=S,r[26]=j,r[27]=b,r[28]=v,r[29]=P):P=r[29],P}function nt(e){return`marketplace-plugin:${e.pluginId}`}function rt(e){return`marketplace-plugin:${e.pluginId}`}function it(e){let t=(0,G.c)(53),n=(0,W.useContext)($),r=e.activeTab?.id,i=(0,W.useRef)(r),a=n?.dismiss,o,s;t[0]!==r||t[1]!==a?(o=()=>{i.current!==r&&a?.(),i.current=r},s=[r,a],t[0]=r,t[1]=a,t[2]=o,t[3]=s):(o=t[2],s=t[3]),(0,W.useLayoutEffect)(o,s);let c;if(t[4]!==n||t[5]!==e.tabs){let r=[...e.tabs.map(ut),...n?.destinations.map(lt)??[]];c=n?.destinations.length?C({items:r,getId:ct,storedOrder:n.tabOrder}).ordered:r,t[4]=n,t[5]=e.tabs,t[6]=c}else c=t[6];let l=c,u=n?.setTabOrder,d,f;if(t[7]!==l||t[8]!==u?(d=()=>{u?.(l)},f=[l,u],t[7]=l,t[8]=u,t[9]=d,t[10]=f):(d=t[9],f=t[10]),(0,W.useLayoutEffect)(d,f),n===null||n.destinations.length===0)return e;let p=n.activePluginId,m;t[11]===n?m=t[12]:(m=e=>()=>{n.dismiss(),e()},t[11]=n,t[12]=m);let h=m,_;if(t[13]!==n||t[14]!==e.tabs||t[15]!==h){let r;t[17]===h?r=t[18]:(r=e=>({...e,onSelect:h(e.onSelect)}),t[17]=h,t[18]=r);let i;t[19]===n?i=t[20]:(i=e=>({contentFillsRegion:!0,label:e.title,leadingVisual:(0,Q.jsx)(b,{pluginId:e.pluginId,icon:null,className:`size-3.5`}),onClose:()=>n.close(e.pluginId),onSelect:()=>n.open(e),renderContent:()=>(0,Q.jsx)(et,{pluginId:e.pluginId}),statusLabel:null,tab:{id:`marketplace-plugin:${e.pluginId}`,kind:`marketplace-plugin-detail`}}),t[19]=n,t[20]=i),_=C({items:[...e.tabs.map(r),...n.destinations.map(i)],getId:st,storedOrder:n.tabOrder}),t[13]=n,t[14]=e.tabs,t[15]=h,t[16]=_}else _=t[16];let{ordered:v}=_,y;t[21]!==p||t[22]!==e.activeTab?(y=p===null?e.activeTab:{id:`marketplace-plugin:${p}`,kind:`marketplace-plugin-detail`},t[21]=p,t[22]=e.activeTab,t[23]=y):y=t[23];let x=p!==null||e.isOpen,S=p===null?e.splitPanelStateId:void 0,w;t[24]!==e.onClose||t[25]!==h?(w=h(e.onClose),t[24]=e.onClose,t[25]=h,t[26]=w):w=t[26];let T;t[27]!==e.onCollapse||t[28]!==h?(T=h(e.onCollapse),t[27]=e.onCollapse,t[28]=h,t[29]=T):T=t[29];let E;t[30]!==e.onOpenNewTab||t[31]!==h?(E=h(e.onOpenNewTab),t[30]=e.onOpenNewTab,t[31]=h,t[32]=E):E=t[32];let D;if(t[33]!==e.fixedTabs||t[34]!==h){let n;t[36]===h?n=t[37]:(n=e=>({...e,onSelect:h(e.onSelect)}),t[36]=h,t[37]=n),D=e.fixedTabs.map(n),t[33]=e.fixedTabs,t[34]=h,t[35]=D}else D=t[35];let O;t[38]!==n||t[39]!==e||t[40]!==v?(O=t=>{let{activeTabId:r,overTabId:i}=t,a=v.map(ot),o=a.indexOf(r),s=a.indexOf(i);if(o===-1||s===-1||o===s)return;let c=g(a,o,s);n.setTabOrder(c);let l=new Set(e.tabs.map(at));if(!l.has(r))return;let u=c.filter(e=>l.has(e)).indexOf(r),d=e.tabs[u];d!==void 0&&e.onTabReorder({activeTabId:r,overTabId:d.tab.id})},t[38]=n,t[39]=e,t[40]=v,t[41]=O):O=t[41];let k;return t[42]!==e||t[43]!==w||t[44]!==T||t[45]!==E||t[46]!==D||t[47]!==O||t[48]!==y||t[49]!==x||t[50]!==S||t[51]!==v?(k={...e,activeTab:y,isOpen:x,splitPanelStateId:S,onClose:w,onCollapse:T,onOpenNewTab:E,fixedTabs:D,tabs:v,onTabReorder:O},t[42]=e,t[43]=w,t[44]=T,t[45]=E,t[46]=D,t[47]=O,t[48]=y,t[49]=x,t[50]=S,t[51]=v,t[52]=k):k=t[52],k}function at(e){return e.tab.id}function ot(e){return e.tab.id}function st(e){return e.tab.id}function ct(e){return e}function lt(e){return`marketplace-plugin:${e.pluginId}`}function ut(e){return e.tab.id}export{Ue as A,Ce as C,_e as D,Le as E,ve as O,B as S,Ee as T,Te as _,Qe as a,be as b,Je as c,Ie as d,k as f,Se as g,V as h,tt as i,Be as k,Ye as l,we as m,et as n,$e as o,We as p,it as r,Xe as s,$ as t,Ze as u,H as v,xe as w,De as x,ye as y};
|
|
Binary file
|