ryco-cli 0.1.12 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcpNativeLogging-Ba9Nn9Re.mjs → AcpNativeLogging-D3fe64a6.mjs} +1 -1
- package/dist/{AcpNativeLogging-Be1KGJfF.cjs → AcpNativeLogging-vLtnq5f1.cjs} +1 -1
- package/dist/{AzureDevOpsSourceControlProvider-CVj-F-pW.cjs → AzureDevOpsSourceControlProvider-BtezW57t.cjs} +2 -2
- package/dist/{AzureDevOpsSourceControlProvider-CGlK6M0b.mjs → AzureDevOpsSourceControlProvider-WNUDtsur.mjs} +2 -2
- package/dist/{BitbucketSourceControlProvider-CEZEd4PX.cjs → BitbucketSourceControlProvider-BWzNM0jW.cjs} +2 -2
- package/dist/{BitbucketSourceControlProvider-BV6iRDi7.mjs → BitbucketSourceControlProvider-tbbUFKz3.mjs} +2 -2
- package/dist/{ClaudeDriver-lBU7EyUX.cjs → ClaudeDriver-BTvdJvam.cjs} +170 -7
- package/dist/{ClaudeDriver-rooMNrJz.mjs → ClaudeDriver-CG5ngU5z.mjs} +171 -8
- package/dist/{CodexDriver-DBz2rPXb.mjs → CodexDriver-49o7TA-C.mjs} +4 -4
- package/dist/{CodexDriver-CZCIJSLV.cjs → CodexDriver-CFxwJNXx.cjs} +3 -3
- package/dist/{CodexTextGeneration-BeG7ymPC.mjs → CodexTextGeneration-C0t4xcPO.mjs} +2 -2
- package/dist/{CodexTextGeneration-BvIcyD1P.cjs → CodexTextGeneration-CedcXf9a.cjs} +1 -1
- package/dist/{CopilotDriver-CX5zhEdZ.cjs → CopilotDriver-B8J_ovCX.cjs} +20 -16
- package/dist/{CopilotDriver-D36vbGbn.mjs → CopilotDriver-Cu1B1skB.mjs} +21 -17
- package/dist/{CursorDriver-DWuuOSkJ.mjs → CursorDriver-P_A8uQki.mjs} +4 -4
- package/dist/{CursorDriver-CPBVeesr.cjs → CursorDriver-zlKHPy1_.cjs} +3 -3
- package/dist/{ForgejoSourceControlProvider-CeN7Snfr.mjs → ForgejoSourceControlProvider-DLhJZtq9.mjs} +2 -2
- package/dist/{ForgejoSourceControlProvider-CzmmcAZO.cjs → ForgejoSourceControlProvider-szJ-dvsD.cjs} +2 -2
- package/dist/{GitHubSourceControlProvider-DfFR9O2o.cjs → GitHubSourceControlProvider-3ofb6HsF.cjs} +2 -2
- package/dist/{GitHubSourceControlProvider-Dmz1LJct.mjs → GitHubSourceControlProvider-D5MQQPCJ.mjs} +2 -2
- package/dist/{GitLabSourceControlProvider-C21lwphV.mjs → GitLabSourceControlProvider-DLkxeob5.mjs} +2 -2
- package/dist/{GitLabSourceControlProvider-DGoelNmL.cjs → GitLabSourceControlProvider-DkupZH5G.cjs} +2 -2
- package/dist/{GrokDriver-CIXj_4ry.cjs → GrokDriver-CTUNclwp.cjs} +3 -3
- package/dist/{GrokDriver-qKX1a63G.mjs → GrokDriver-D8KoMY76.mjs} +4 -4
- package/dist/{OpenCodeDriver-CbdswhqU.mjs → OpenCodeDriver-B7htxutj.mjs} +92 -27
- package/dist/{OpenCodeDriver-DDEuwtXl.cjs → OpenCodeDriver-pXM8bSct.cjs} +91 -26
- package/dist/{SourceControlProviderDiscoveryCatalog-DJWDCoup.cjs → SourceControlProviderDiscoveryCatalog-Bj_sZfmB.cjs} +1 -1
- package/dist/{SourceControlProviderDiscoveryCatalog-4_4yahsa.mjs → SourceControlProviderDiscoveryCatalog-C6Fn7rZE.mjs} +1 -1
- package/dist/bin.cjs +1113 -312
- package/dist/bin.mjs +1115 -315
- package/dist/client/assets/{AccountSettings-C3v2klAG.js → AccountSettings-CinnQaX-.js} +1 -1
- package/dist/client/assets/{AiFocusSettings-BquKjnWf.js → AiFocusSettings-UbXOywZg.js} +1 -1
- package/dist/client/assets/{AnimatedHeight-BIsV_Z3J.js → AnimatedHeight-DCad8EQ2.js} +1 -1
- package/dist/client/assets/AppearanceSettings-CTh8Z8nz.js +1 -0
- package/dist/client/assets/{BranchToolbar.logic-CmvD76Cw.js → BranchToolbar.logic-37EnknDD.js} +1 -1
- package/dist/client/assets/ChatRightPanel-DUwLYKbp.js +27 -0
- package/dist/client/assets/{ChatThreadRouteView-DlgAAOCp.js → ChatThreadRouteView-C43W0PEz.js} +1 -1
- package/dist/client/assets/CommandPaletteDialog-IHOe0hOG.js +1 -0
- package/dist/client/assets/{CompositeItem-F3NGn6aG.js → CompositeItem-ClLCuzeJ.js} +1 -1
- package/dist/client/assets/{CompositeRoot-CmJGfRtc.js → CompositeRoot-Bdsr9eHn.js} +1 -1
- package/dist/client/assets/{ConnectionsSettings-Ccn8q4fG.js → ConnectionsSettings-tmBjGOPj.js} +2 -2
- package/dist/client/assets/{DiagnosticsSettings-QXpjXOrH.js → DiagnosticsSettings-CbCEgaau.js} +1 -1
- package/dist/client/assets/{DialogHandle-C4uSr9wX.js → DialogHandle-CitVLvYq.js} +1 -1
- package/dist/client/assets/{DialogPopup-Dck8r8Hn.js → DialogPopup-CfaEr9jv.js} +1 -1
- package/dist/client/assets/DialogRoot-CyEOjgGH.js +1 -0
- package/dist/client/assets/{DialogTitle-CCedPAjV.js → DialogTitle-BUkU0qXf.js} +1 -1
- package/dist/client/assets/{DialogTrigger-CYJ7_YcV.js → DialogTrigger-CEjWue7M.js} +1 -1
- package/dist/client/assets/{DialogViewport-D-CrTM-P.js → DialogViewport-Cyc_ye5w.js} +1 -1
- package/dist/client/assets/{DraftChatThreadRouteView-DFMY6O91.js → DraftChatThreadRouteView-BSA67nKa.js} +1 -1
- package/dist/client/assets/{ExternalIdentityWeb.logic-D64j70NH.js → ExternalIdentityWeb.logic-BqdBjAua.js} +1 -1
- package/dist/client/assets/GlassSurface-B3cq28tB.js +1 -0
- package/dist/client/assets/{HostedConnectionControls-BC4kVWTa.js → HostedConnectionControls-S2Wr9fiZ.js} +1 -1
- package/dist/client/assets/HostedHubRoot-DK9zP4tJ.js +1 -0
- package/dist/client/assets/{HostedNativeAuthorizationRoute-Df0oSrLR.js → HostedNativeAuthorizationRoute-CKnLbCOH.js} +1 -1
- package/dist/client/assets/{HostedRelayTrustNotice-ffS_O2AX.js → HostedRelayTrustNotice-CbF_SOpf.js} +1 -1
- package/dist/client/assets/{Icons-CT3nd2MA.js → Icons-DZpTOLIb.js} +1 -1
- package/dist/client/assets/{IntegrationsSettingsPanel-BHyy-VM0.js → IntegrationsSettingsPanel-BdBEGIyL.js} +1 -1
- package/dist/client/assets/KeybindingsSettings-Bye1H9Sx.js +7 -0
- package/dist/client/assets/{McpServersSettings-UthT1T80.js → McpServersSettings-D0U0g2q7.js} +1 -1
- package/dist/client/assets/{MobileSheet-CkeG6_SP.js → MobileSheet-BPvuTPR6.js} +1 -1
- package/dist/client/assets/{NewWorktreeDialog-DTZnArOC.js → NewWorktreeDialog-C_xJCZWF.js} +1 -1
- package/dist/client/assets/{NoActiveThreadState-jcEAWu7N.js → NoActiveThreadState-Cfn_Wwnf.js} +1 -1
- package/dist/client/assets/{NodeSecuritySettings-DPqjRphc.js → NodeSecuritySettings-DUQNZJqJ.js} +1 -1
- package/dist/client/assets/{OpinionatedPluginsSettings-BSy3F4v6.js → OpinionatedPluginsSettings-D44efcv7.js} +1 -1
- package/dist/client/assets/{PhoneGetAppInterstitial-B2mrJtgM.js → PhoneGetAppInterstitial-CzduFI4-.js} +1 -1
- package/dist/client/assets/{PhoneGetAppInterstitialBackdrop-B8vfJdZd.js → PhoneGetAppInterstitialBackdrop-CJ44QRCp.js} +1 -1
- package/dist/client/assets/PhoneHome-BLEJm5TG.js +1 -0
- package/dist/client/assets/PhoneSettingsSurface-CqetLTIm.js +1 -0
- package/dist/client/assets/{ProjectFavicon-BhQnkxbx.js → ProjectFavicon-DrBXI2cH.js} +1 -1
- package/dist/client/assets/{ProviderModelPicker-COg6CGM4.js → ProviderModelPicker-CyID3P1C.js} +1 -1
- package/dist/client/assets/{ProviderUpdateLaunchNotification.logic-BkoRegCn.js → ProviderUpdateLaunchNotification.logic-C6VoLD-w.js} +1 -1
- package/dist/client/assets/ProvidersSettingsPanel-BHmpXUIM.js +1 -0
- package/dist/client/assets/{RedactedSensitiveText-CxtaUiKH.js → RedactedSensitiveText-CZwFEoNn.js} +1 -1
- package/dist/client/assets/RootAppShell-BVXRShhe.js +6 -0
- package/dist/client/assets/{RycoLetterMark-Bk0kvGJ_.js → RycoLetterMark-C-fvI9UB.js} +1 -1
- package/dist/client/assets/SettingsDialog-CnETTu23.js +1 -0
- package/dist/client/assets/{SettingsPanels-D8Xy3pPC.js → SettingsPanels-C3HDrmQq.js} +3 -3
- package/dist/client/assets/{SettingsPanels.editor-B2x4U4rW.js → SettingsPanels.editor-DI8Z5rsl.js} +1 -1
- package/dist/client/assets/SourceControlSettings-BG4tsvql.js +1 -0
- package/dist/client/assets/{StatisticsPage-C38pI2_b.js → StatisticsPage-dy_aYqvS.js} +1 -1
- package/dist/client/assets/{StatisticsPanel-6sINT28-.js → StatisticsPanel-CeRJBu65.js} +1 -1
- package/dist/client/assets/{StatisticsSettingsLink-Cx43bOeo.js → StatisticsSettingsLink-ChlwCDG0.js} +1 -1
- package/dist/client/assets/ThreadStatusIndicators-D-ioX09X.js +0 -0
- package/dist/client/assets/{ThreadTerminalDrawer-C4NJu8Qs.js → ThreadTerminalDrawer-BvGaRxBP.js} +1 -1
- package/dist/client/assets/{ThreadWorkspacePanel-D9qlHXCA.js → ThreadWorkspacePanel-BAWm7mGl.js} +2 -2
- package/dist/client/assets/{ToolbarRootContext-BgqqXVly.js → ToolbarRootContext-k-_m5nCN.js} +1 -1
- package/dist/client/assets/{WorkItemsTab-BDAeQe4D.js → WorkItemsTab-Q2V2EuvK.js} +12 -12
- package/dist/client/assets/{alert-LqMhbdE9.js → alert-BymbRVPf.js} +1 -1
- package/dist/client/assets/{alert-dialog-DxoA6ky8.js → alert-dialog-Gym8_p4Q.js} +1 -1
- package/dist/client/assets/appearancePreferences-BhNRCg6W.js +1 -0
- package/dist/client/assets/authorization-BwQZHweJ.js +1 -0
- package/dist/client/assets/{badge-CXw6fWrB.js → badge-BQI7J3Sg.js} +1 -1
- package/dist/client/assets/{branding-DeKsIp6g.js → branding-DqHDcyzW.js} +1 -1
- package/dist/client/assets/{button-BAbJxRzt.js → button-Wf_1nfeu.js} +1 -1
- package/dist/client/assets/{capabilities-BkVqeGLQ.js → capabilities-BrllgEYz.js} +1 -1
- package/dist/client/assets/{chatThreadActions-DQ8aOQ1g.js → chatThreadActions-BGkJmj6T.js} +1 -1
- package/dist/client/assets/{collapsible-dxy6kc2k.js → collapsible-GOpRckDq.js} +1 -1
- package/dist/client/assets/{command-CGNKG_Oe.js → command-Dx5YM54H.js} +1 -1
- package/dist/client/assets/composerDraftStore-DC2r8dcu.js +11 -0
- package/dist/client/assets/{data-list-CYKBxN62.js → data-list-BSiCZBKn.js} +1 -1
- package/dist/client/assets/{desktopUpdateAtoms-B9iJXSdW.js → desktopUpdateAtoms-DkmoIGr0.js} +1 -1
- package/dist/client/assets/{desktopWorkspace-B-cSBe8H.js → desktopWorkspace-Ddm531g5.js} +1 -1
- package/dist/client/assets/{device-DfIh5pQV.js → device-B0aqBYM1.js} +1 -1
- package/dist/client/assets/{dialog-DQsYchqu.js → dialog-CUxw5AxI.js} +1 -1
- package/dist/client/assets/{draft-input-CkzOk8BY.js → draft-input-CpfrGQ1h.js} +1 -1
- package/dist/client/assets/editorPreferences-SOMXdQpi.js +1 -0
- package/dist/client/assets/{empty-DwzqNgCP.js → empty-D420OZA9.js} +1 -1
- package/dist/client/assets/{env-B4arEvJg.js → env-Bf33qXdb.js} +1 -1
- package/dist/client/assets/{getPseudoElementBounds-X62ElHN8.js → getPseudoElementBounds-nDGTWECG.js} +1 -1
- package/dist/client/assets/{group-D9ER9giz.js → group-Cq4Llttm.js} +1 -1
- package/dist/client/assets/{index-Bntnmu6O.js → index-BL8_ra0g.js} +2 -2
- package/dist/client/assets/{input-CHEwW3oH.js → input-Dl4N9ZfE.js} +1 -1
- package/dist/client/assets/{kbd-DCGQZk18.js → kbd-CqoZVQfv.js} +1 -1
- package/dist/client/assets/{keybindings-CWJ7E9ZI.js → keybindings-DQzcPjMv.js} +1 -1
- package/dist/client/assets/{label-CVFHsLFO.js → label-x5DgpBI_.js} +1 -1
- package/dist/client/assets/{lib-qiiNMGgU.js → lib-BXIqHSZx.js} +1 -1
- package/dist/client/assets/{liquidGlass-CPsvmaF0.js → liquidGlass-yFkZrRk5.js} +1 -1
- package/dist/client/assets/{logging-M8H3z7rQ.js → logging-CZlHfeu2.js} +1 -1
- package/dist/client/assets/main-B7T7on1T.css +2 -0
- package/dist/client/assets/main-J4YlUJad.js +9 -0
- package/dist/client/assets/{menu-Dvxh8sD5.js → menu-BuDpxm_Q.js} +1 -1
- package/dist/client/assets/{popover-CuH9Yrj3.js → popover-DuprDUaB.js} +1 -1
- package/dist/client/assets/primary-CJx2nSkc.js +2 -0
- package/dist/client/assets/projectPaths-DrelgodZ.js +1 -0
- package/dist/client/assets/{providerDriverMeta-I0TSo-QI.js → providerDriverMeta-D27Koh7Q.js} +1 -1
- package/dist/client/assets/{providerIconUtils-CzSa_16f.js → providerIconUtils-CtOHwjWL.js} +1 -1
- package/dist/client/assets/providerInstances-BPwEwwpF.js +1 -0
- package/dist/client/assets/providerModels-BPwEwwpF.js +1 -0
- package/dist/client/assets/{qr-code-Bddq6K7S.js → qr-code-BVfzPOP3.js} +1 -1
- package/dist/client/assets/{radio-group-CBZFr4C8.js → radio-group-rgmJqPI7.js} +1 -1
- package/dist/client/assets/{resolveAriaLabelledBy-CD_ugzhJ.js → resolveAriaLabelledBy-l4SuqStl.js} +1 -1
- package/dist/client/assets/{rightPanelRouteSearch-DB5gQGHK.js → rightPanelRouteSearch-DmpObL1z.js} +1 -1
- package/dist/client/assets/runtime-DYzjhL5M.js +1 -0
- package/dist/client/assets/{scroll-area-Drsa8bNB.js → scroll-area-DMs8l4bb.js} +1 -1
- package/dist/client/assets/{scrollEdges-B-cqxY4l.js → scrollEdges-DWTOweRb.js} +1 -1
- package/dist/client/assets/{select-BYbVr-yg.js → select-Djwp8HDm.js} +1 -1
- package/dist/client/assets/{separator-CdS5bi4Z.js → separator-rjtf5Q3V.js} +1 -1
- package/dist/client/assets/{session-logic-wxhvMgEN.js → session-logic-DLEAZb3K.js} +2 -2
- package/dist/client/assets/{settingsDialogStore-ygYoScKe.js → settingsDialogStore-Dbykwvfs.js} +1 -1
- package/dist/client/assets/{settingsLayout-D8glO7f1.js → settingsLayout-C7bl9Xi4.js} +1 -1
- package/dist/client/assets/{sheet-BO78gIKZ.js → sheet-CQIQYfOM.js} +1 -1
- package/dist/client/assets/{sidebar-Dm6l2GA6.js → sidebar-BdDOvXe8.js} +1 -1
- package/dist/client/assets/sidebarProjectFolders-D_Me0oJ8.js +4 -0
- package/dist/client/assets/{sidebarStatusText-D0HT0fek.js → sidebarStatusText-BF6odB03.js} +1 -1
- package/dist/client/assets/{skeleton-CvQSeJbw.js → skeleton-Mgh4Gx9x.js} +1 -1
- package/dist/client/assets/{spinner-ClF0jOcX.js → spinner-CzzUdFeE.js} +1 -1
- package/dist/client/assets/{src-Vf4LVnMX.js → src-Ca7Gag3m.js} +1 -1
- package/dist/client/assets/storeSelectors-D7HbqO4E.js +1 -0
- package/dist/client/assets/{switch-BTGo9Yip.js → switch-CntUxI1A.js} +1 -1
- package/dist/client/assets/{terminal-links-CZ3c9AbA.js → terminal-links-CUFISn8U.js} +1 -1
- package/dist/client/assets/{textarea-RFPODxWW.js → textarea-C8QxddDb.js} +1 -1
- package/dist/client/assets/threadPinning-BIV4KXZU.js +1 -0
- package/dist/client/assets/{threadPriorityRefreshRuntime-tRDgvBzr.js → threadPriorityRefreshRuntime-B-pVYK_y.js} +1 -1
- package/dist/client/assets/{toast-CcSCAm4B.js → toast-Cw7bXJzg.js} +1 -1
- package/dist/client/assets/{toggle-I6h33Cu5.js → toggle-Bi9uP4Hb.js} +1 -1
- package/dist/client/assets/{toggle-group-mLIkiJtU.js → toggle-group-LcgyMgj5.js} +1 -1
- package/dist/client/assets/{tooltip-C8sAONBj.js → tooltip-t3Nrleyq.js} +1 -1
- package/dist/client/assets/types-D7HbqO4E.js +1 -0
- package/dist/client/assets/{uiStateStore-B6pjzSjj.js → uiStateStore-BW2WnK4k.js} +1 -1
- package/dist/client/assets/useAtlassian-a-MaAd0k.js +0 -0
- package/dist/client/assets/{useButton-D__1LqCF.js → useButton-DUuWgIMw.js} +1 -1
- package/dist/client/assets/{useCompositeListItem-Cmr_nuuG.js → useCompositeListItem-CL5mJqCb.js} +1 -1
- package/dist/client/assets/{useDebouncedValue-DHjoudTq.js → useDebouncedValue-jDDWNjgt.js} +1 -1
- package/dist/client/assets/{useFloatingRootContext-D5EZmrCa.js → useFloatingRootContext-C4I8IxtL.js} +1 -1
- package/dist/client/assets/{useHandleNewThread-Bvz-DKgn.js → useHandleNewThread-820pBJCC.js} +1 -1
- package/dist/client/assets/{useLabelableId-DnQJ7amm.js → useLabelableId-KX33mhBC.js} +1 -1
- package/dist/client/assets/{useLocation-CDeYzWW6.js → useLocation-B4QlXdMt.js} +1 -1
- package/dist/client/assets/{useOpenInteractionType-CjtpACKR.js → useOpenInteractionType-DjM9MBY7.js} +1 -1
- package/dist/client/assets/{usePhoneThreadActions-CAgIq9aZ.js → usePhoneThreadActions-DxxWMYgC.js} +1 -1
- package/dist/client/assets/{usePopupViewport-BuhsNdVy.js → usePopupViewport-CAMlnyaP.js} +1 -1
- package/dist/client/assets/{useScrollLock-D3tMGsRk.js → useScrollLock-CAPfesBT.js} +1 -1
- package/dist/client/assets/{useStatistics-CiLROMJP.js → useStatistics-CWasDzsV.js} +2 -2
- package/dist/client/assets/{useSwipeDismiss-CbgDJvw1.js → useSwipeDismiss-BZsYSBgq.js} +1 -1
- package/dist/client/assets/{useTheme-DiC-5xCb.js → useTheme-By1kfyiU.js} +1 -1
- package/dist/client/assets/{useThreadActions-Vew3ScxG.js → useThreadActions-MOjDrEnS.js} +1 -1
- package/dist/client/assets/{useTriggerFocusGuards-CrugmkhX.js → useTriggerFocusGuards-D5z439rn.js} +1 -1
- package/dist/client/assets/{useValueChanged-MQtIzPIU.js → useValueChanged-D0CHQQwP.js} +1 -1
- package/dist/client/assets/{utils-BofFIn5Y.js → utils-B76_2Yk7.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/{collectUint8StreamText-Bb52hlpd.cjs → collectUint8StreamText-B9B7bGv9.cjs} +46 -10
- package/dist/{collectUint8StreamText-EDg4F0TU.mjs → collectUint8StreamText-RzKEq2NY.mjs} +35 -11
- package/dist/{makeManagedServerProvider-itynW7xv.cjs → makeManagedServerProvider-BF1eBatf.cjs} +1 -1
- package/dist/{makeManagedServerProvider-Cf8bNWwc.mjs → makeManagedServerProvider-BuG2fLP8.mjs} +1 -1
- package/package.json +1 -1
- package/dist/client/assets/AppearanceSettings-CYbSApl4.js +0 -1
- package/dist/client/assets/ChatRightPanel-DVxRdZWT.js +0 -27
- package/dist/client/assets/CommandPaletteDialog-BnJURcy7.js +0 -1
- package/dist/client/assets/DialogRoot-BpIvUdm7.js +0 -1
- package/dist/client/assets/GlassSurface-C3IIWMu9.js +0 -1
- package/dist/client/assets/HostedHubRoot-pBGVub10.js +0 -1
- package/dist/client/assets/KeybindingsSettings-BfkONqmZ.js +0 -7
- package/dist/client/assets/PhoneHome-C-ttaKuE.js +0 -1
- package/dist/client/assets/PhoneSettingsSurface-CJddundi.js +0 -1
- package/dist/client/assets/ProvidersSettingsPanel-C3aPyCrN.js +0 -1
- package/dist/client/assets/RootAppShell-3T2sBtpP.js +0 -6
- package/dist/client/assets/SettingsDialog-krsStFrf.js +0 -1
- package/dist/client/assets/SourceControlSettings-KIx9EfEZ.js +0 -1
- package/dist/client/assets/ThreadStatusIndicators-CL0KGLlj.js +0 -0
- package/dist/client/assets/appearancePreferences-COvj0WMT.js +0 -1
- package/dist/client/assets/authorization-mIJKV2yp.js +0 -1
- package/dist/client/assets/composerDraftStore-CdJJZe42.js +0 -11
- package/dist/client/assets/editorPreferences-0DWMgcci.js +0 -1
- package/dist/client/assets/main-BjVnVob0.js +0 -9
- package/dist/client/assets/main-DaYHZt-J.css +0 -2
- package/dist/client/assets/panel-right-BodNpkM9.js +0 -1
- package/dist/client/assets/primary-OskAInOO.js +0 -2
- package/dist/client/assets/projectPaths-SSsIvt0g.js +0 -1
- package/dist/client/assets/providerInstances-BJcfB_9E.js +0 -1
- package/dist/client/assets/providerModels-BJcfB_9E.js +0 -1
- package/dist/client/assets/runtime-DfGHeCnR.js +0 -1
- package/dist/client/assets/sidebarProjectFolders-CGVDJ0ZT.js +0 -4
- package/dist/client/assets/storeSelectors-Bpr2pdhU.js +0 -1
- package/dist/client/assets/types-Bpr2pdhU.js +0 -1
- package/dist/client/assets/useAppearancePreference-BlLlxQl7.js +0 -1
- package/dist/client/assets/useAtlassian-DC0XOw4u.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import{it as r}from"./src-Vf4LVnMX.js";import{It as i,Tt as a,wt as o}from"./composerDraftStore-CdJJZe42.js";import{$t as s,Bt as c,Gn as l,Mn as u,N as d,Nn as f,R as p,Xn as m,Z as h,a as g,i as _,j as v,l as y,nn as b,nt as x,o as S,zt as ee}from"./usePopupViewport-BuhsNdVy.js";import{d as C,t as w}from"./useRenderElement-DchFnsR8.js";import{n as T}from"./loader-circle-CrtHFAvM.js";import{C as E,S as D,a as O,b as k,c as A,d as j,f as M,g as N,h as P,i as F,l as I,m as L,p as R,r as z,u as B,w as V,x as H,y as U}from"./kbd-DCGQZk18.js";import{t as W}from"./x-C1Cemsov.js";import{t as G}from"./utils-BofFIn5Y.js";import{r as K}from"./session-logic-wxhvMgEN.js";import{n as te,p as ne}from"./useScrollLock-D3tMGsRk.js";import{n as re}from"./ToolbarRootContext-BgqqXVly.js";import{t as ie}from"./input-CHEwW3oH.js";import{t as ae}from"./scroll-area-Drsa8bNB.js";import{_ as oe,m as se,o as ce,p as le,s as ue,v as de}from"./Icons-CT3nd2MA.js";var q=e(t(),1),fe=``;function pe(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=null;for(;t.nextNode();){let e=t.currentNode;e.nodeValue!==``&&(n=e)}return n}function J(){let e=b(),t=q.useRef(null);return q.useEffect(()=>{if(s)return;let n=t.current;if(n==null)return;let r=pe(n);if(r==null)return;let i=r.data,a=`${i}${fe}`;return r.nodeValue=a,e.start(200,()=>{r.nodeValue===a&&(r.nodeValue=i)}),()=>{e.clear(),r.nodeValue===a&&(r.nodeValue=i)}},[t,e]),t}var me=q.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=J();return w(`div`,e,{ref:[t,s],props:[{children:a,role:`status`,"aria-live":`polite`,"aria-atomic":!0},o]})}),Y=q.createContext(void 0);function he(){let e=q.useContext(Y);if(e===void 0)throw Error(C(20));return e}var X=i(),ge=q.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=E(),a=p(i,k.mounted),o=p(i,k.forceMounted);return a||n||o?(0,X.jsx)(Y.Provider,{value:n,children:(0,X.jsx)(h,{ref:t,...r})}):null}),_e=q.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a,side:o,align:s,sideOffset:c,alignOffset:l,collisionBoundary:d=`clipping-ancestors`,collisionPadding:m,arrowPadding:h,sticky:g,disableAnchorTracking:v=!1,collisionAvoidance:b=x,style:ee,...C}=e,w=E(),T=D(),O=he(),A=p(w,k.modal),j=p(w,k.open),N=p(w,k.mounted),F=p(w,k.openMethod),I=p(w,k.positionerElement),L=p(w,k.triggerElement),R=p(w,k.inputElement),z=p(w,k.inputGroupElement),B=p(w,k.inputInsidePopup),V=p(w,k.transitionStatus),H=P(),U=S({anchor:i??(B?L:z??R),floatingRootContext:T,positionMethod:a,mounted:N,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:h,collisionBoundary:d,collisionPadding:m,sticky:g,disableAnchorTracking:v,keepMounted:O,collisionAvoidance:b,lazyFlip:!0});re(j&&A,F===`touch`,I,L);let W={open:j,side:U.side,align:U.align,anchorHidden:U.anchorHidden,empty:H};u(()=>{w.set(`popupSide`,U.side)},[w,U.side]);let G=f(e=>{w.set(`positionerElement`,e)}),K=_(e,W,{styles:U.positionerStyles,transitionStatus:V,props:C,refs:[t,G],hidden:!N,inert:!j});return(0,X.jsxs)(M.Provider,{value:U,children:[N&&A&&(0,X.jsx)(te,{inert:y(!j),cutout:z??R??L}),K]})}),ve={...l,...m},ye=q.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,l=E(),d=R(),f=D(),m=p(l,k.mounted),h=p(l,k.open),_=p(l,k.openMethod),y=p(l,k.popupProps),b=p(l,k.transitionStatus),x=p(l,k.inputInsidePopup),S=p(l,k.inputElement),C=p(l,k.modal),T=p(l,k.id),O=P(),A=s.id??(x?U(T):void 0);u(()=>(l.set(`popupId`,l.state.popupRef.current?.id||A),()=>{l.set(`popupId`,void 0)}),[l,A]),v({open:h,ref:l.state.popupRef,onComplete(){h&&l.state.onOpenChangeComplete(!0)}});let M={open:h,side:d.side,align:d.align,anchorHidden:d.anchorHidden,transitionStatus:b,empty:O},N=w(`div`,e,{state:M,ref:[t,l.state.popupRef],props:[y,{id:A,role:x?`dialog`:`presentation`,onFocus(e){let t=c(e.nativeEvent);_!==`touch`&&(ee(l.state.listElement,t)||t===e.currentTarget)&&l.state.inputRef.current?.focus()}},g(b),s],stateAttributesMapping:ve}),F=a===void 0?x?e=>e===`touch`?l.state.popupRef.current:S:!1:a,I;I=o??(x?void 0:!1);let L=!x||C;return(0,X.jsx)(ne,{context:f,disabled:!m,modal:L,openInteractionType:_,initialFocus:F,returnFocus:I,getInsideElements:()=>[l.state.startDismissRef.current,l.state.endDismissRef.current],children:(0,X.jsxs)(q.Fragment,{children:[N,L&&(0,X.jsx)(j,{ref:l.state.endDismissRef})]})})}),be=q.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,{filteredItems:s}=H(),c=E(),l=J(),u=s.length===0?a:null;return w(`div`,e,{ref:[t,c.state.emptyRef,l],props:[{children:u,role:`status`,"aria-live":`polite`,"aria-atomic":!0},o]})});function xe(e){let{multiple:t=!1,defaultValue:n,value:r,onValueChange:i,autoComplete:a,...o}=e;return(0,X.jsx)(N,{...o,selectionMode:t?`multiple`:`single`,selectedValue:r,defaultSelectedValue:n,onSelectedValueChange:i,formAutoComplete:a})}var Se=q.forwardRef(function(e,t){let{selected:n}=F();return e.keepMounted||n?(0,X.jsx)(Ce,{...e,ref:t}):null}),Ce=q.memo(q.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=F(),c=q.useRef(null),{transitionStatus:l,setMounted:u}=d(s),f=w(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:m});return v({open:s,ref:c,onComplete(){s||u(!1)}}),f})),Z=n(),Q=q.createContext({chipsRef:null,multiple:!1});function we(e){let t=(0,Z.c)(7),n=q.useRef(null),r=!!e.multiple,i;t[0]===r?i=t[1]:(i={chipsRef:n,multiple:r},t[0]=r,t[1]=i);let a=i,o;t[2]===e?o=t[3]:(o=(0,X.jsx)(xe,{...e}),t[2]=e,t[3]=o);let s;return t[4]!==o||t[5]!==a?(s=(0,X.jsx)(Q.Provider,{value:a,children:o}),t[4]=o,t[5]=a,t[6]=s):s=t[6],s}function Te(e){let t=(0,Z.c)(34),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:n,inputClassName:r,showTrigger:s,showClear:c,startAddon:o,size:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=s===void 0||s,u=c!==void 0&&c,d=a??`default`,f;t[8]===o?f=t[9]:(f=o&&(0,X.jsx)(`div`,{"aria-hidden":`true`,className:`[&_svg]:-mx-0.5 pointer-events-none absolute inset-y-0 start-px z-10 flex items-center ps-[calc(--spacing(3)-1px)] opacity-80 has-[+[data-size=sm]]:ps-[calc(--spacing(2.5)-1px)] [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4`,"data-slot":`combobox-start-addon`,children:o}),t[8]=o,t[9]=f);let p=o&&`data-[size=sm]:*:data-[slot=combobox-input]:ps-[calc(--spacing(7.5)-1px)] *:data-[slot=combobox-input]:ps-[calc(--spacing(8.5)-1px)] sm:data-[size=sm]:*:data-[slot=combobox-input]:ps-[calc(--spacing(7)-1px)] sm:*:data-[slot=combobox-input]:ps-[calc(--spacing(8)-1px)]`,m=d===`sm`?`has-[+[data-slot=combobox-trigger],+[data-slot=combobox-clear]]:*:data-[slot=combobox-input]:pe-6.5`:`has-[+[data-slot=combobox-trigger],+[data-slot=combobox-clear]]:*:data-[slot=combobox-input]:pe-7`,h;t[10]!==n||t[11]!==p||t[12]!==m?(h=G(p,m,n),t[10]=n,t[11]=p,t[12]=m,t[13]=h):h=t[13];let g;t[14]===r?g=t[15]:(g=G(`has-disabled:opacity-100`,r),t[14]=r,t[15]=g);let _;t[16]!==d||t[17]!==g?(_=(0,X.jsx)(ie,{className:g,nativeInput:!0,size:d}),t[16]=d,t[17]=g,t[18]=_):_=t[18];let v;t[19]!==i||t[20]!==h||t[21]!==_?(v=(0,X.jsx)(B,{className:h,"data-slot":`combobox-input`,render:_,...i}),t[19]=i,t[20]=h,t[21]=_,t[22]=v):v=t[22];let y;t[23]!==l||t[24]!==d?(y=l&&(0,X.jsx)($,{className:G(`-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-opacity pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 has-[+[data-slot=combobox-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,d===`sm`?`end-0`:`end-0.5`),children:(0,X.jsx)(I,{"data-slot":`combobox-icon`,children:(0,X.jsx)(V,{})})}),t[23]=l,t[24]=d,t[25]=y):y=t[25];let b;t[26]!==u||t[27]!==d?(b=u&&(0,X.jsx)(je,{className:G(`-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-opacity pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 has-[+[data-slot=combobox-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,d===`sm`?`end-0`:`end-0.5`),children:(0,X.jsx)(W,{})}),t[26]=u,t[27]=d,t[28]=b):b=t[28];let x;return t[29]!==y||t[30]!==b||t[31]!==f||t[32]!==v?(x=(0,X.jsxs)(`div`,{className:`relative not-has-[>*.w-full]:w-fit w-full text-foreground has-disabled:opacity-64`,children:[f,v,y,b]}),t[29]=y,t[30]=b,t[31]=f,t[32]=v,t[33]=x):x=t[33],x}function $(e){let t=(0,Z.c)(8),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;return t[4]!==n||t[5]!==r||t[6]!==i?(a=(0,X.jsx)(L,{className:r,"data-slot":`combobox-trigger`,...i,children:n}),t[4]=n,t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ee(e){let t=(0,Z.c)(24),n,r,i,a,o,s,c,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8]):({className:a,children:i,side:s,sideOffset:c,alignOffset:n,align:l,anchor:r,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l);let u=s===void 0?`bottom`:s,d=c===void 0?4:c,f=l===void 0?`start`:l,{chipsRef:p}=q.useContext(Q),m=r??p,h;t[9]===a?h=t[10]:(h=G(`selection-glass-surface relative flex max-h-full min-w-(--anchor-width) max-w-(--available-width) origin-(--transform-origin) overflow-hidden rounded-lg border transition-[scale,opacity,translate] duration-(--app-motion-duration-pop) ease-(--app-motion-spring-gentle) will-change-transform data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0`,a),t[9]=a,t[10]=h);let g;t[11]!==i||t[12]!==o?(g=(0,X.jsx)(ye,{className:`flex max-h-[min(var(--available-height),23rem)] flex-1 flex-col text-foreground`,"data-slot":`combobox-popup`,...o,children:i}),t[11]=i,t[12]=o,t[13]=g):g=t[13];let _;t[14]!==h||t[15]!==g?(_=(0,X.jsx)(`span`,{className:h,children:g}),t[14]=h,t[15]=g,t[16]=_):_=t[16];let v;return t[17]!==f||t[18]!==n||t[19]!==m||t[20]!==u||t[21]!==d||t[22]!==_?(v=(0,X.jsx)(ge,{children:(0,X.jsx)(_e,{align:f,alignOffset:n,anchor:m,className:`z-50 select-none`,"data-slot":`combobox-positioner`,side:u,sideOffset:d,children:_})}),t[17]=f,t[18]=n,t[19]=m,t[20]=u,t[21]=d,t[22]=_,t[23]=v):v=t[23],v}function De(e){let t=(0,Z.c)(24),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,contentClassName:i,children:n,hideIndicator:o,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=o!==void 0&&o,c;t[6]===r?c=t[7]:(c=G(`grid min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-default grid-cols-[1rem_1fr] items-center gap-2 rounded-sm py-1 ps-2 pe-4 text-base outline-none hover:bg-accent/70 data-disabled:pointer-events-none data-selected:bg-accent/50 data-selected:text-foreground data-highlighted:bg-accent/80 data-highlighted:text-accent-foreground [&[data-highlighted][data-selected]]:bg-accent/90 [&[data-highlighted][data-selected]]:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,r),t[6]=r,t[7]=c);let l=s&&`hidden`,u;t[8]===l?u=t[9]:(u=G(`col-start-1`,l),t[8]=l,t[9]=u);let d;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,X.jsx)(T,{}),t[10]=d):d=t[10];let f;t[11]===u?f=t[12]:(f=(0,X.jsx)(Se,{className:u,children:d}),t[11]=u,t[12]=f);let p=s?`col-start-1 col-span-full`:`col-start-2`,m;t[13]!==i||t[14]!==p?(m=G(p,i),t[13]=i,t[14]=p,t[15]=m):m=t[15];let h;t[16]!==n||t[17]!==m?(h=(0,X.jsx)(`div`,{className:m,children:n}),t[16]=n,t[17]=m,t[18]=h):h=t[18];let g;return t[19]!==a||t[20]!==c||t[21]!==f||t[22]!==h?(g=(0,X.jsxs)(z,{className:c,"data-slot":`combobox-item`,...a,children:[f,h]}),t[19]=a,t[20]=c,t[21]=f,t[22]=h,t[23]=g):g=t[23],g}function Oe(e){let t=(0,Z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=G(`not-empty:p-2 text-center text-base text-muted-foreground sm:text-sm`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(be,{className:i,"data-slot":`combobox-empty`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ke(e){let t=(0,Z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=G(`not-empty:scroll-py-1 not-empty:px-1 not-empty:py-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(ae,{scrollbarGutter:!0,scrollFade:!0,children:(0,X.jsx)(O,{className:i,"data-slot":`combobox-list`,...r})}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ae(e){let t=(0,Z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=G(`not-empty:px-1 not-empty:py-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(O,{className:i,"data-slot":`combobox-list`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function je(e){let t=(0,Z.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=(0,X.jsx)(A,{className:n,"data-slot":`combobox-clear`,...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function Me(e){let t=(0,Z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=G(`px-3 py-2 font-medium text-muted-foreground text-xs empty:m-0 empty:p-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(me,{className:i,"data-slot":`combobox-status`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Ne={[r.make(`codex`)]:oe,[r.make(`claudeAgent`)]:ce,[r.make(`copilot`)]:le,[r.make(`opencode`)]:de,[r.make(`cursor`)]:ue,[r.make(`grok`)]:se};function Pe(e){return e.available}K.filter(Pe);function Fe(e,t){return a(e,t)}function Ie(e){return Fe(e,{preferShortName:!0})}function Le(e){return o(e,{preferShortName:!0})}export{we as a,De as c,Ee as d,Me as f,Ie as i,ke as l,Fe as n,Oe as o,$ as p,Le as r,Te as s,Ne as t,Ae as u};
|
|
1
|
+
import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import{ot as r}from"./src-Ca7Gag3m.js";import{It as i,Tt as a,wt as o}from"./composerDraftStore-DC2r8dcu.js";import{$t as s,Bt as c,Gn as l,Mn as u,N as d,Nn as f,R as p,Xn as m,Z as h,a as g,i as _,j as v,l as y,nn as b,nt as x,o as S,zt as ee}from"./usePopupViewport-CAMlnyaP.js";import{d as C,t as w}from"./useRenderElement-DchFnsR8.js";import{n as T}from"./loader-circle-CrtHFAvM.js";import{C as E,S as D,a as O,b as k,c as A,d as j,f as M,g as N,h as P,i as F,l as I,m as L,p as R,r as z,u as B,w as V,x as H,y as U}from"./kbd-CqoZVQfv.js";import{t as W}from"./x-C1Cemsov.js";import{t as G}from"./utils-B76_2Yk7.js";import{r as K}from"./session-logic-DLEAZb3K.js";import{n as te,p as ne}from"./useScrollLock-CAPfesBT.js";import{n as re}from"./ToolbarRootContext-k-_m5nCN.js";import{t as ie}from"./input-Dl4N9ZfE.js";import{t as ae}from"./scroll-area-DMs8l4bb.js";import{_ as oe,m as se,o as ce,p as le,s as ue,v as de}from"./Icons-DZpTOLIb.js";var q=e(t(),1),fe=``;function pe(e){let t=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=null;for(;t.nextNode();){let e=t.currentNode;e.nodeValue!==``&&(n=e)}return n}function J(){let e=b(),t=q.useRef(null);return q.useEffect(()=>{if(s)return;let n=t.current;if(n==null)return;let r=pe(n);if(r==null)return;let i=r.data,a=`${i}${fe}`;return r.nodeValue=a,e.start(200,()=>{r.nodeValue===a&&(r.nodeValue=i)}),()=>{e.clear(),r.nodeValue===a&&(r.nodeValue=i)}},[t,e]),t}var me=q.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,s=J();return w(`div`,e,{ref:[t,s],props:[{children:a,role:`status`,"aria-live":`polite`,"aria-atomic":!0},o]})}),Y=q.createContext(void 0);function he(){let e=q.useContext(Y);if(e===void 0)throw Error(C(20));return e}var X=i(),ge=q.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=E(),a=p(i,k.mounted),o=p(i,k.forceMounted);return a||n||o?(0,X.jsx)(Y.Provider,{value:n,children:(0,X.jsx)(h,{ref:t,...r})}):null}),_e=q.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a,side:o,align:s,sideOffset:c,alignOffset:l,collisionBoundary:d=`clipping-ancestors`,collisionPadding:m,arrowPadding:h,sticky:g,disableAnchorTracking:v=!1,collisionAvoidance:b=x,style:ee,...C}=e,w=E(),T=D(),O=he(),A=p(w,k.modal),j=p(w,k.open),N=p(w,k.mounted),F=p(w,k.openMethod),I=p(w,k.positionerElement),L=p(w,k.triggerElement),R=p(w,k.inputElement),z=p(w,k.inputGroupElement),B=p(w,k.inputInsidePopup),V=p(w,k.transitionStatus),H=P(),U=S({anchor:i??(B?L:z??R),floatingRootContext:T,positionMethod:a,mounted:N,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:h,collisionBoundary:d,collisionPadding:m,sticky:g,disableAnchorTracking:v,keepMounted:O,collisionAvoidance:b,lazyFlip:!0});re(j&&A,F===`touch`,I,L);let W={open:j,side:U.side,align:U.align,anchorHidden:U.anchorHidden,empty:H};u(()=>{w.set(`popupSide`,U.side)},[w,U.side]);let G=f(e=>{w.set(`positionerElement`,e)}),K=_(e,W,{styles:U.positionerStyles,transitionStatus:V,props:C,refs:[t,G],hidden:!N,inert:!j});return(0,X.jsxs)(M.Provider,{value:U,children:[N&&A&&(0,X.jsx)(te,{inert:y(!j),cutout:z??R??L}),K]})}),ve={...l,...m},ye=q.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...s}=e,l=E(),d=R(),f=D(),m=p(l,k.mounted),h=p(l,k.open),_=p(l,k.openMethod),y=p(l,k.popupProps),b=p(l,k.transitionStatus),x=p(l,k.inputInsidePopup),S=p(l,k.inputElement),C=p(l,k.modal),T=p(l,k.id),O=P(),A=s.id??(x?U(T):void 0);u(()=>(l.set(`popupId`,l.state.popupRef.current?.id||A),()=>{l.set(`popupId`,void 0)}),[l,A]),v({open:h,ref:l.state.popupRef,onComplete(){h&&l.state.onOpenChangeComplete(!0)}});let M={open:h,side:d.side,align:d.align,anchorHidden:d.anchorHidden,transitionStatus:b,empty:O},N=w(`div`,e,{state:M,ref:[t,l.state.popupRef],props:[y,{id:A,role:x?`dialog`:`presentation`,onFocus(e){let t=c(e.nativeEvent);_!==`touch`&&(ee(l.state.listElement,t)||t===e.currentTarget)&&l.state.inputRef.current?.focus()}},g(b),s],stateAttributesMapping:ve}),F=a===void 0?x?e=>e===`touch`?l.state.popupRef.current:S:!1:a,I;I=o??(x?void 0:!1);let L=!x||C;return(0,X.jsx)(ne,{context:f,disabled:!m,modal:L,openInteractionType:_,initialFocus:F,returnFocus:I,getInsideElements:()=>[l.state.startDismissRef.current,l.state.endDismissRef.current],children:(0,X.jsxs)(q.Fragment,{children:[N,L&&(0,X.jsx)(j,{ref:l.state.endDismissRef})]})})}),be=q.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,{filteredItems:s}=H(),c=E(),l=J(),u=s.length===0?a:null;return w(`div`,e,{ref:[t,c.state.emptyRef,l],props:[{children:u,role:`status`,"aria-live":`polite`,"aria-atomic":!0},o]})});function xe(e){let{multiple:t=!1,defaultValue:n,value:r,onValueChange:i,autoComplete:a,...o}=e;return(0,X.jsx)(N,{...o,selectionMode:t?`multiple`:`single`,selectedValue:r,defaultSelectedValue:n,onSelectedValueChange:i,formAutoComplete:a})}var Se=q.forwardRef(function(e,t){let{selected:n}=F();return e.keepMounted||n?(0,X.jsx)(Ce,{...e,ref:t}):null}),Ce=q.memo(q.forwardRef((e,t)=>{let{render:n,className:r,style:i,keepMounted:a,...o}=e,{selected:s}=F(),c=q.useRef(null),{transitionStatus:l,setMounted:u}=d(s),f=w(`span`,e,{ref:[t,c],state:{selected:s,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},o],stateAttributesMapping:m});return v({open:s,ref:c,onComplete(){s||u(!1)}}),f})),Z=n(),Q=q.createContext({chipsRef:null,multiple:!1});function we(e){let t=(0,Z.c)(7),n=q.useRef(null),r=!!e.multiple,i;t[0]===r?i=t[1]:(i={chipsRef:n,multiple:r},t[0]=r,t[1]=i);let a=i,o;t[2]===e?o=t[3]:(o=(0,X.jsx)(xe,{...e}),t[2]=e,t[3]=o);let s;return t[4]!==o||t[5]!==a?(s=(0,X.jsx)(Q.Provider,{value:a,children:o}),t[4]=o,t[5]=a,t[6]=s):s=t[6],s}function Te(e){let t=(0,Z.c)(34),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({className:n,inputClassName:r,showTrigger:s,showClear:c,startAddon:o,size:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=s===void 0||s,u=c!==void 0&&c,d=a??`default`,f;t[8]===o?f=t[9]:(f=o&&(0,X.jsx)(`div`,{"aria-hidden":`true`,className:`[&_svg]:-mx-0.5 pointer-events-none absolute inset-y-0 start-px z-10 flex items-center ps-[calc(--spacing(3)-1px)] opacity-80 has-[+[data-size=sm]]:ps-[calc(--spacing(2.5)-1px)] [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4`,"data-slot":`combobox-start-addon`,children:o}),t[8]=o,t[9]=f);let p=o&&`data-[size=sm]:*:data-[slot=combobox-input]:ps-[calc(--spacing(7.5)-1px)] *:data-[slot=combobox-input]:ps-[calc(--spacing(8.5)-1px)] sm:data-[size=sm]:*:data-[slot=combobox-input]:ps-[calc(--spacing(7)-1px)] sm:*:data-[slot=combobox-input]:ps-[calc(--spacing(8)-1px)]`,m=d===`sm`?`has-[+[data-slot=combobox-trigger],+[data-slot=combobox-clear]]:*:data-[slot=combobox-input]:pe-6.5`:`has-[+[data-slot=combobox-trigger],+[data-slot=combobox-clear]]:*:data-[slot=combobox-input]:pe-7`,h;t[10]!==n||t[11]!==p||t[12]!==m?(h=G(p,m,n),t[10]=n,t[11]=p,t[12]=m,t[13]=h):h=t[13];let g;t[14]===r?g=t[15]:(g=G(`has-disabled:opacity-100`,r),t[14]=r,t[15]=g);let _;t[16]!==d||t[17]!==g?(_=(0,X.jsx)(ie,{className:g,nativeInput:!0,size:d}),t[16]=d,t[17]=g,t[18]=_):_=t[18];let v;t[19]!==i||t[20]!==h||t[21]!==_?(v=(0,X.jsx)(B,{className:h,"data-slot":`combobox-input`,render:_,...i}),t[19]=i,t[20]=h,t[21]=_,t[22]=v):v=t[22];let y;t[23]!==l||t[24]!==d?(y=l&&(0,X.jsx)($,{className:G(`-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-opacity pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 has-[+[data-slot=combobox-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,d===`sm`?`end-0`:`end-0.5`),children:(0,X.jsx)(I,{"data-slot":`combobox-icon`,children:(0,X.jsx)(V,{})})}),t[23]=l,t[24]=d,t[25]=y):y=t[25];let b;t[26]!==u||t[27]!==d?(b=u&&(0,X.jsx)(je,{className:G(`-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-opacity pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 has-[+[data-slot=combobox-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,d===`sm`?`end-0`:`end-0.5`),children:(0,X.jsx)(W,{})}),t[26]=u,t[27]=d,t[28]=b):b=t[28];let x;return t[29]!==y||t[30]!==b||t[31]!==f||t[32]!==v?(x=(0,X.jsxs)(`div`,{className:`relative not-has-[>*.w-full]:w-fit w-full text-foreground has-disabled:opacity-64`,children:[f,v,y,b]}),t[29]=y,t[30]=b,t[31]=f,t[32]=v,t[33]=x):x=t[33],x}function $(e){let t=(0,Z.c)(8),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;return t[4]!==n||t[5]!==r||t[6]!==i?(a=(0,X.jsx)(L,{className:r,"data-slot":`combobox-trigger`,...i,children:n}),t[4]=n,t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ee(e){let t=(0,Z.c)(24),n,r,i,a,o,s,c,l;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8]):({className:a,children:i,side:s,sideOffset:c,alignOffset:n,align:l,anchor:r,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l);let u=s===void 0?`bottom`:s,d=c===void 0?4:c,f=l===void 0?`start`:l,{chipsRef:p}=q.useContext(Q),m=r??p,h;t[9]===a?h=t[10]:(h=G(`selection-glass-surface relative flex max-h-full min-w-(--anchor-width) max-w-(--available-width) origin-(--transform-origin) overflow-hidden rounded-lg border transition-[scale,opacity,translate] duration-(--app-motion-duration-pop) ease-(--app-motion-spring-gentle) will-change-transform data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0`,a),t[9]=a,t[10]=h);let g;t[11]!==i||t[12]!==o?(g=(0,X.jsx)(ye,{className:`flex max-h-[min(var(--available-height),23rem)] flex-1 flex-col text-foreground`,"data-slot":`combobox-popup`,...o,children:i}),t[11]=i,t[12]=o,t[13]=g):g=t[13];let _;t[14]!==h||t[15]!==g?(_=(0,X.jsx)(`span`,{className:h,children:g}),t[14]=h,t[15]=g,t[16]=_):_=t[16];let v;return t[17]!==f||t[18]!==n||t[19]!==m||t[20]!==u||t[21]!==d||t[22]!==_?(v=(0,X.jsx)(ge,{children:(0,X.jsx)(_e,{align:f,alignOffset:n,anchor:m,className:`z-50 select-none`,"data-slot":`combobox-positioner`,side:u,sideOffset:d,children:_})}),t[17]=f,t[18]=n,t[19]=m,t[20]=u,t[21]=d,t[22]=_,t[23]=v):v=t[23],v}function De(e){let t=(0,Z.c)(24),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:r,contentClassName:i,children:n,hideIndicator:o,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=o!==void 0&&o,c;t[6]===r?c=t[7]:(c=G(`grid min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-default grid-cols-[1rem_1fr] items-center gap-2 rounded-sm py-1 ps-2 pe-4 text-base outline-none hover:bg-accent/70 data-disabled:pointer-events-none data-selected:bg-accent/50 data-selected:text-foreground data-highlighted:bg-accent/80 data-highlighted:text-accent-foreground [&[data-highlighted][data-selected]]:bg-accent/90 [&[data-highlighted][data-selected]]:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,r),t[6]=r,t[7]=c);let l=s&&`hidden`,u;t[8]===l?u=t[9]:(u=G(`col-start-1`,l),t[8]=l,t[9]=u);let d;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,X.jsx)(T,{}),t[10]=d):d=t[10];let f;t[11]===u?f=t[12]:(f=(0,X.jsx)(Se,{className:u,children:d}),t[11]=u,t[12]=f);let p=s?`col-start-1 col-span-full`:`col-start-2`,m;t[13]!==i||t[14]!==p?(m=G(p,i),t[13]=i,t[14]=p,t[15]=m):m=t[15];let h;t[16]!==n||t[17]!==m?(h=(0,X.jsx)(`div`,{className:m,children:n}),t[16]=n,t[17]=m,t[18]=h):h=t[18];let g;return t[19]!==a||t[20]!==c||t[21]!==f||t[22]!==h?(g=(0,X.jsxs)(z,{className:c,"data-slot":`combobox-item`,...a,children:[f,h]}),t[19]=a,t[20]=c,t[21]=f,t[22]=h,t[23]=g):g=t[23],g}function Oe(e){let t=(0,Z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=G(`not-empty:p-2 text-center text-base text-muted-foreground sm:text-sm`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(be,{className:i,"data-slot":`combobox-empty`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ke(e){let t=(0,Z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=G(`not-empty:scroll-py-1 not-empty:px-1 not-empty:py-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(ae,{scrollbarGutter:!0,scrollFade:!0,children:(0,X.jsx)(O,{className:i,"data-slot":`combobox-list`,...r})}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Ae(e){let t=(0,Z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=G(`not-empty:px-1 not-empty:py-1`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(O,{className:i,"data-slot":`combobox-list`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function je(e){let t=(0,Z.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;return t[3]!==n||t[4]!==r?(i=(0,X.jsx)(A,{className:n,"data-slot":`combobox-clear`,...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function Me(e){let t=(0,Z.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=G(`px-3 py-2 font-medium text-muted-foreground text-xs empty:m-0 empty:p-0`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,X.jsx)(me,{className:i,"data-slot":`combobox-status`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Ne={[r.make(`codex`)]:oe,[r.make(`claudeAgent`)]:ce,[r.make(`copilot`)]:le,[r.make(`opencode`)]:de,[r.make(`cursor`)]:ue,[r.make(`grok`)]:se};function Pe(e){return e.available}K.filter(Pe);function Fe(e,t){return a(e,t)}function Ie(e){return Fe(e,{preferShortName:!0})}function Le(e){return o(e,{preferShortName:!0})}export{we as a,De as c,Ee as d,Me as f,Ie as i,ke as l,Fe as n,Oe as o,$ as p,Le as r,Te as s,Ne as t,Ae as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./composerDraftStore-DC2r8dcu.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./composerDraftStore-DC2r8dcu.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import{It as r}from"./composerDraftStore-CdJJZe42.js";var i=e(t(),1),a=n(),o=class e{static Ecc;static encodeText(t,n){let r=u.makeSegments(t);return e.encodeSegments(r,n)}static encodeBinary(t,n){let r=u.makeBytes(t);return e.encodeSegments([r],n)}static encodeSegments(t,n,r=1,i=40,a=-1,o=!0){if(!(e.MIN_VERSION<=r&&r<=i&&i<=e.MAX_VERSION)||a<-1||a>7)throw RangeError(`Invalid value`);let c,d;for(c=r;;c++){let r=e.getNumDataCodewords(c,n)*8,a=u.getTotalBits(t,c);if(a<=r){d=a;break}if(c>=i)throw RangeError(`Data too long`)}for(let t of[e.Ecc.MEDIUM,e.Ecc.QUARTILE,e.Ecc.HIGH])o&&d<=e.getNumDataCodewords(c,t)*8&&(n=t);let f=[];for(let e of t){s(e.mode.modeBits,4,f),s(e.numChars,e.mode.numCharCountBits(c),f);for(let t of e.getData())f.push(t)}l(f.length==d);let p=e.getNumDataCodewords(c,n)*8;l(f.length<=p),s(0,Math.min(4,p-f.length),f),s(0,(8-f.length%8)%8,f),l(f.length%8==0);for(let e=236;f.length<p;e^=253)s(e,8,f);let m=[];for(;m.length*8<f.length;)m.push(0);return f.forEach((e,t)=>m[t>>>3]|=e<<7-(t&7)),new e(c,n,m,a)}version;errorCorrectionLevel;size;mask;modules=[];isFunction=[];constructor(t,n,r,i){if(this.version=t,this.errorCorrectionLevel=n,t<e.MIN_VERSION||t>e.MAX_VERSION)throw RangeError(`Version value out of range`);if(i<-1||i>7)throw RangeError(`Mask value out of range`);this.size=t*4+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();let o=this.addEccAndInterleave(r);if(this.drawCodewords(o),i==-1){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);let n=this.getPenaltyScore();n<e&&(i=t,e=n),this.applyMask(t)}}l(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)n==0&&r==0||n==0&&r==t-1||n==t-1&&r==0||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.errorCorrectionLevel.formatBits<<3|e,n=t;for(let e=0;e<10;e++)n=n<<1^(n>>>9)*1335;let r=(t<<10|n)^21522;l(!(r>>>15));for(let e=0;e<=5;e++)this.setFunctionModule(8,e,c(r,e));this.setFunctionModule(8,7,c(r,6)),this.setFunctionModule(8,8,c(r,7)),this.setFunctionModule(7,8,c(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,c(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,c(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,c(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;l(!(t>>>18));for(let e=0;e<18;e++){let n=c(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a<this.size&&0<=o&&o<this.size&&this.setFunctionModule(a,o,i!=2&&i!=4)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,Math.max(Math.abs(r),Math.abs(n))!=1)}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(t){let n=this.version,r=this.errorCorrectionLevel;if(t.length!=e.getNumDataCodewords(n,r))throw RangeError(`Invalid argument`);let i=e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],o=Math.floor(e.getNumRawDataModules(n)/8),s=i-o%i,c=Math.floor(o/i),u=[],d=e.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<i;n++){let i=t.slice(r,r+c-a+(n<s?0:1));r+=i.length;let o=e.reedSolomonComputeRemainder(i,d);n<s&&i.push(0),u.push(i.concat(o))}let f=[];for(let e=0;e<u[0].length;e++)u.forEach((t,n)=>{(e!=c-a||n>=s)&&f.push(t[e])});return l(f.length==o),f}drawCodewords(t){if(t.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);let n=0;for(let e=this.size-1;e>=1;e-=2){e==6&&(e=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){let a=e-i,o=e+1&2?r:this.size-1-r;!this.isFunction[o][a]&&n<t.length*8&&(this.modules[o][a]=c(t[n>>>3],7-(n&7)),n++)}}l(n==t.length*8)}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw Error(`Unreachable`)}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let t=0;for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[n][o]===r?(i++,i==5?t+=e.PENALTY_N1:i>5&&t++):(this.finderPenaltyAddHistory(i,a),r||(t+=this.finderPenaltyCountPatterns(a)*e.PENALTY_N3),r=this.modules[n][o],i=1);t+=this.finderPenaltyTerminateAndCount(r,i,a)*e.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][n]===r?(i++,i==5?t+=e.PENALTY_N1:i>5&&t++):(this.finderPenaltyAddHistory(i,a),r||(t+=this.finderPenaltyCountPatterns(a)*e.PENALTY_N3),r=this.modules[o][n],i=1);t+=this.finderPenaltyTerminateAndCount(r,i,a)*e.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){let i=this.modules[n][r];i==this.modules[n][r+1]&&i==this.modules[n+1][r]&&i==this.modules[n+1][r+1]&&(t+=e.PENALTY_N2)}let n=0;for(let e of this.modules)n=e.reduce((e,t)=>e+ +!!t,n);let r=this.size*this.size,i=Math.ceil(Math.abs(n*20-r*10)/r)-1;return l(0<=i&&i<=9),t+=i*e.PENALTY_N4,l(0<=t&&t<=2568888),t}getAlignmentPatternPositions(){if(this.version==1)return[];{let e=Math.floor(this.version/7)+2,t=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(t){if(t<e.MIN_VERSION||t>e.MAX_VERSION)throw RangeError(`Version number out of range`);let n=(16*t+128)*t+64;if(t>=2){let e=Math.floor(t/7)+2;n-=(25*e-10)*e-55,t>=7&&(n-=36)}return l(208<=n&&n<=29648),n}static getNumDataCodewords(t,n){return Math.floor(e.getNumRawDataModules(t)/8)-e.ECC_CODEWORDS_PER_BLOCK[n.ordinal][t]*e.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][t]}static reedSolomonComputeDivisor(t){if(t<1||t>255)throw RangeError(`Degree out of range`);let n=[];for(let e=0;e<t-1;e++)n.push(0);n.push(1);let r=1;for(let i=0;i<t;i++){for(let t=0;t<n.length;t++)n[t]=e.reedSolomonMultiply(n[t],r),t+1<n.length&&(n[t]^=n[t+1]);r=e.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(t,n){let r=n.map(e=>0);for(let i of t){let t=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=e.reedSolomonMultiply(n,t))}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return l(!(n>>>8)),n}finderPenaltyCountPatterns(e){let t=e[1];l(t<=this.size*3);let n=t>0&&e[2]===t&&e[3]===t*3&&e[4]===t&&e[5]===t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]===0&&(e+=this.size),t.pop(),t.unshift(e)}static MIN_VERSION=1;static MAX_VERSION=40;static PENALTY_N1=3;static PENALTY_N2=3;static PENALTY_N3=40;static PENALTY_N4=10;static ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]];static NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]};function s(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function c(e,t){return!!(e>>>t&1)}function l(e){if(!e)throw Error(`Assertion error`)}var u=class e{static Mode;static makeBytes(t){let n=[];for(let e of t)s(e,8,n);return new e(e.Mode.BYTE,t.length,n)}static makeNumeric(t){if(!e.isNumeric(t))throw RangeError(`String contains non-numeric characters`);let n=[];for(let e=0;e<t.length;){let r=Math.min(t.length-e,3);s(parseInt(t.substring(e,e+r),10),r*3+1,n),e+=r}return new e(e.Mode.NUMERIC,t.length,n)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw RangeError(`String contains unencodable characters in alphanumeric mode`);let n=[],r;for(r=0;r+2<=t.length;r+=2){let i=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r))*45;i+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),s(i,11,n)}return r<t.length&&s(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,n),new e(e.Mode.ALPHANUMERIC,t.length,n)}static makeSegments(t){return t==``?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let n=[];if(t<0)throw RangeError(`ECI assignment value out of range`);if(t<128)s(t,8,n);else if(t<16384)s(2,2,n),s(t,14,n);else if(t<1e6)s(6,3,n),s(t,21,n);else throw RangeError(`ECI assignment value out of range`);return new e(e.Mode.ECI,0,n)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}mode;numChars;bitData;constructor(e,t,n){if(this.mode=e,this.numChars=t,t<0)throw RangeError(`Invalid argument`);this.bitData=n.slice()}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(let r of e){let e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)e.charAt(n)==`%`?(t.push(parseInt(e.substring(n+1,n+3),16)),n+=2):t.push(e.charCodeAt(n));return t}static NUMERIC_REGEX=/^[0-9]*$/;static ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/;static ALPHANUMERIC_CHARSET=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`},d=class e{static LOW=new e(0,1);static MEDIUM=new e(1,0);static QUARTILE=new e(2,3);static HIGH=new e(3,2);ordinal;formatBits;constructor(e,t){this.ordinal=e,this.formatBits=t}},f=class e{static NUMERIC=new e(1,[10,12,14]);static ALPHANUMERIC=new e(2,[9,11,13]);static BYTE=new e(4,[8,16,16]);static KANJI=new e(8,[8,10,12]);static ECI=new e(7,[0,0,0]);modeBits;numBitsCharCount;constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};o.Ecc=d,u.Mode=f;var p=r(),m={L:o.Ecc.LOW,M:o.Ecc.MEDIUM,Q:o.Ecc.QUARTILE,H:o.Ecc.HIGH};function h(e,t){let n=[];for(let r=0;r<e.size;r+=1){let i=-1;for(let a=0;a<=e.size;a+=1){if(a<e.size&&e.getModule(a,r)){i===-1&&(i=a);continue}i!==-1&&(n.push(`M${i+t} ${r+t}h${a-i}v1H${i+t}z`),i=-1)}}return n.join(``)}var g=(0,i.memo)(function(e){let t=(0,a.c)(38),{value:n,size:r,level:i,marginSize:s,title:c,className:l,foregroundColor:u,backgroundColor:d}=e,f=r===void 0?128:r,g=i===void 0?`L`:i,_=s===void 0?0:s,v=u===void 0?`#000`:u,y=d===void 0?`#fff`:d,b,x,S,C,w,T,E,D,O,k,A;if(t[0]!==y||t[1]!==l||t[2]!==g||t[3]!==_||t[4]!==f||t[5]!==c||t[6]!==n){let e=o.encodeText(n,m[g]),r=e.size+_*2;O=`http://www.w3.org/2000/svg`,k=`0 0 ${r} ${r}`,A=f,b=f,x=`crispEdges`,S=c?`img`:void 0,C=c,w=l,t[18]===c?T=t[19]:(T=c?(0,p.jsx)(`title`,{children:c}):null,t[18]=c,t[19]=T),t[20]!==y||t[21]!==r?(E=(0,p.jsx)(`rect`,{width:r,height:r,fill:y}),t[20]=y,t[21]=r,t[22]=E):E=t[22],D=h(e,_),t[0]=y,t[1]=l,t[2]=g,t[3]=_,t[4]=f,t[5]=c,t[6]=n,t[7]=b,t[8]=x,t[9]=S,t[10]=C,t[11]=w,t[12]=T,t[13]=E,t[14]=D,t[15]=O,t[16]=k,t[17]=A}else b=t[7],x=t[8],S=t[9],C=t[10],w=t[11],T=t[12],E=t[13],D=t[14],O=t[15],k=t[16],A=t[17];let j;t[23]!==v||t[24]!==D?(j=(0,p.jsx)(`path`,{d:D,fill:v}),t[23]=v,t[24]=D,t[25]=j):j=t[25];let M;return t[26]!==b||t[27]!==x||t[28]!==S||t[29]!==C||t[30]!==w||t[31]!==T||t[32]!==E||t[33]!==j||t[34]!==O||t[35]!==k||t[36]!==A?(M=(0,p.jsxs)(`svg`,{xmlns:O,viewBox:k,width:A,height:b,shapeRendering:x,role:S,"aria-label":C,className:w,children:[T,E,j]}),t[26]=b,t[27]=x,t[28]=S,t[29]=C,t[30]=w,t[31]=T,t[32]=E,t[33]=j,t[34]=O,t[35]=k,t[36]=A,t[37]=M):M=t[37],M});export{g as t};
|
|
1
|
+
import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import{It as r}from"./composerDraftStore-DC2r8dcu.js";var i=e(t(),1),a=n(),o=class e{static Ecc;static encodeText(t,n){let r=u.makeSegments(t);return e.encodeSegments(r,n)}static encodeBinary(t,n){let r=u.makeBytes(t);return e.encodeSegments([r],n)}static encodeSegments(t,n,r=1,i=40,a=-1,o=!0){if(!(e.MIN_VERSION<=r&&r<=i&&i<=e.MAX_VERSION)||a<-1||a>7)throw RangeError(`Invalid value`);let c,d;for(c=r;;c++){let r=e.getNumDataCodewords(c,n)*8,a=u.getTotalBits(t,c);if(a<=r){d=a;break}if(c>=i)throw RangeError(`Data too long`)}for(let t of[e.Ecc.MEDIUM,e.Ecc.QUARTILE,e.Ecc.HIGH])o&&d<=e.getNumDataCodewords(c,t)*8&&(n=t);let f=[];for(let e of t){s(e.mode.modeBits,4,f),s(e.numChars,e.mode.numCharCountBits(c),f);for(let t of e.getData())f.push(t)}l(f.length==d);let p=e.getNumDataCodewords(c,n)*8;l(f.length<=p),s(0,Math.min(4,p-f.length),f),s(0,(8-f.length%8)%8,f),l(f.length%8==0);for(let e=236;f.length<p;e^=253)s(e,8,f);let m=[];for(;m.length*8<f.length;)m.push(0);return f.forEach((e,t)=>m[t>>>3]|=e<<7-(t&7)),new e(c,n,m,a)}version;errorCorrectionLevel;size;mask;modules=[];isFunction=[];constructor(t,n,r,i){if(this.version=t,this.errorCorrectionLevel=n,t<e.MIN_VERSION||t>e.MAX_VERSION)throw RangeError(`Version value out of range`);if(i<-1||i>7)throw RangeError(`Mask value out of range`);this.size=t*4+17;let a=[];for(let e=0;e<this.size;e++)a.push(!1);for(let e=0;e<this.size;e++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();let o=this.addEccAndInterleave(r);if(this.drawCodewords(o),i==-1){let e=1e9;for(let t=0;t<8;t++){this.applyMask(t),this.drawFormatBits(t);let n=this.getPenaltyScore();n<e&&(i=t,e=n),this.applyMask(t)}}l(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}drawFunctionPatterns(){for(let e=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let e=this.getAlignmentPatternPositions(),t=e.length;for(let n=0;n<t;n++)for(let r=0;r<t;r++)n==0&&r==0||n==0&&r==t-1||n==t-1&&r==0||this.drawAlignmentPattern(e[n],e[r]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){let t=this.errorCorrectionLevel.formatBits<<3|e,n=t;for(let e=0;e<10;e++)n=n<<1^(n>>>9)*1335;let r=(t<<10|n)^21522;l(!(r>>>15));for(let e=0;e<=5;e++)this.setFunctionModule(8,e,c(r,e));this.setFunctionModule(8,7,c(r,6)),this.setFunctionModule(8,8,c(r,7)),this.setFunctionModule(7,8,c(r,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,c(r,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,c(r,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,c(r,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;l(!(t>>>18));for(let e=0;e<18;e++){let n=c(t,e),r=this.size-11+e%3,i=Math.floor(e/3);this.setFunctionModule(r,i,n),this.setFunctionModule(i,r,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;0<=a&&a<this.size&&0<=o&&o<this.size&&this.setFunctionModule(a,o,i!=2&&i!=4)}}drawAlignmentPattern(e,t){for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)this.setFunctionModule(e+r,t+n,Math.max(Math.abs(r),Math.abs(n))!=1)}setFunctionModule(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}addEccAndInterleave(t){let n=this.version,r=this.errorCorrectionLevel;if(t.length!=e.getNumDataCodewords(n,r))throw RangeError(`Invalid argument`);let i=e.NUM_ERROR_CORRECTION_BLOCKS[r.ordinal][n],a=e.ECC_CODEWORDS_PER_BLOCK[r.ordinal][n],o=Math.floor(e.getNumRawDataModules(n)/8),s=i-o%i,c=Math.floor(o/i),u=[],d=e.reedSolomonComputeDivisor(a);for(let n=0,r=0;n<i;n++){let i=t.slice(r,r+c-a+(n<s?0:1));r+=i.length;let o=e.reedSolomonComputeRemainder(i,d);n<s&&i.push(0),u.push(i.concat(o))}let f=[];for(let e=0;e<u[0].length;e++)u.forEach((t,n)=>{(e!=c-a||n>=s)&&f.push(t[e])});return l(f.length==o),f}drawCodewords(t){if(t.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);let n=0;for(let e=this.size-1;e>=1;e-=2){e==6&&(e=5);for(let r=0;r<this.size;r++)for(let i=0;i<2;i++){let a=e-i,o=e+1&2?r:this.size-1-r;!this.isFunction[o][a]&&n<t.length*8&&(this.modules[o][a]=c(t[n>>>3],7-(n&7)),n++)}}l(n==t.length*8)}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t<this.size;t++)for(let n=0;n<this.size;n++){let r;switch(e){case 0:r=(n+t)%2==0;break;case 1:r=t%2==0;break;case 2:r=n%3==0;break;case 3:r=(n+t)%3==0;break;case 4:r=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:r=n*t%2+n*t%3==0;break;case 6:r=(n*t%2+n*t%3)%2==0;break;case 7:r=((n+t)%2+n*t%3)%2==0;break;default:throw Error(`Unreachable`)}!this.isFunction[t][n]&&r&&(this.modules[t][n]=!this.modules[t][n])}}getPenaltyScore(){let t=0;for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[n][o]===r?(i++,i==5?t+=e.PENALTY_N1:i>5&&t++):(this.finderPenaltyAddHistory(i,a),r||(t+=this.finderPenaltyCountPatterns(a)*e.PENALTY_N3),r=this.modules[n][o],i=1);t+=this.finderPenaltyTerminateAndCount(r,i,a)*e.PENALTY_N3}for(let n=0;n<this.size;n++){let r=!1,i=0,a=[0,0,0,0,0,0,0];for(let o=0;o<this.size;o++)this.modules[o][n]===r?(i++,i==5?t+=e.PENALTY_N1:i>5&&t++):(this.finderPenaltyAddHistory(i,a),r||(t+=this.finderPenaltyCountPatterns(a)*e.PENALTY_N3),r=this.modules[o][n],i=1);t+=this.finderPenaltyTerminateAndCount(r,i,a)*e.PENALTY_N3}for(let n=0;n<this.size-1;n++)for(let r=0;r<this.size-1;r++){let i=this.modules[n][r];i==this.modules[n][r+1]&&i==this.modules[n+1][r]&&i==this.modules[n+1][r+1]&&(t+=e.PENALTY_N2)}let n=0;for(let e of this.modules)n=e.reduce((e,t)=>e+ +!!t,n);let r=this.size*this.size,i=Math.ceil(Math.abs(n*20-r*10)/r)-1;return l(0<=i&&i<=9),t+=i*e.PENALTY_N4,l(0<=t&&t<=2568888),t}getAlignmentPatternPositions(){if(this.version==1)return[];{let e=Math.floor(this.version/7)+2,t=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.length<e;r-=t)n.splice(1,0,r);return n}}static getNumRawDataModules(t){if(t<e.MIN_VERSION||t>e.MAX_VERSION)throw RangeError(`Version number out of range`);let n=(16*t+128)*t+64;if(t>=2){let e=Math.floor(t/7)+2;n-=(25*e-10)*e-55,t>=7&&(n-=36)}return l(208<=n&&n<=29648),n}static getNumDataCodewords(t,n){return Math.floor(e.getNumRawDataModules(t)/8)-e.ECC_CODEWORDS_PER_BLOCK[n.ordinal][t]*e.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][t]}static reedSolomonComputeDivisor(t){if(t<1||t>255)throw RangeError(`Degree out of range`);let n=[];for(let e=0;e<t-1;e++)n.push(0);n.push(1);let r=1;for(let i=0;i<t;i++){for(let t=0;t<n.length;t++)n[t]=e.reedSolomonMultiply(n[t],r),t+1<n.length&&(n[t]^=n[t+1]);r=e.reedSolomonMultiply(r,2)}return n}static reedSolomonComputeRemainder(t,n){let r=n.map(e=>0);for(let i of t){let t=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=e.reedSolomonMultiply(n,t))}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return l(!(n>>>8)),n}finderPenaltyCountPatterns(e){let t=e[1];l(t<=this.size*3);let n=t>0&&e[2]===t&&e[3]===t*3&&e[4]===t&&e[5]===t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]===0&&(e+=this.size),t.pop(),t.unshift(e)}static MIN_VERSION=1;static MAX_VERSION=40;static PENALTY_N1=3;static PENALTY_N2=3;static PENALTY_N3=40;static PENALTY_N4=10;static ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]];static NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]]};function s(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function c(e,t){return!!(e>>>t&1)}function l(e){if(!e)throw Error(`Assertion error`)}var u=class e{static Mode;static makeBytes(t){let n=[];for(let e of t)s(e,8,n);return new e(e.Mode.BYTE,t.length,n)}static makeNumeric(t){if(!e.isNumeric(t))throw RangeError(`String contains non-numeric characters`);let n=[];for(let e=0;e<t.length;){let r=Math.min(t.length-e,3);s(parseInt(t.substring(e,e+r),10),r*3+1,n),e+=r}return new e(e.Mode.NUMERIC,t.length,n)}static makeAlphanumeric(t){if(!e.isAlphanumeric(t))throw RangeError(`String contains unencodable characters in alphanumeric mode`);let n=[],r;for(r=0;r+2<=t.length;r+=2){let i=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r))*45;i+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r+1)),s(i,11,n)}return r<t.length&&s(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(r)),6,n),new e(e.Mode.ALPHANUMERIC,t.length,n)}static makeSegments(t){return t==``?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}static makeEci(t){let n=[];if(t<0)throw RangeError(`ECI assignment value out of range`);if(t<128)s(t,8,n);else if(t<16384)s(2,2,n),s(t,14,n);else if(t<1e6)s(6,3,n),s(t,21,n);else throw RangeError(`ECI assignment value out of range`);return new e(e.Mode.ECI,0,n)}static isNumeric(t){return e.NUMERIC_REGEX.test(t)}static isAlphanumeric(t){return e.ALPHANUMERIC_REGEX.test(t)}mode;numChars;bitData;constructor(e,t,n){if(this.mode=e,this.numChars=t,t<0)throw RangeError(`Invalid argument`);this.bitData=n.slice()}getData(){return this.bitData.slice()}static getTotalBits(e,t){let n=0;for(let r of e){let e=r.mode.numCharCountBits(t);if(r.numChars>=1<<e)return 1/0;n+=4+e+r.bitData.length}return n}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let n=0;n<e.length;n++)e.charAt(n)==`%`?(t.push(parseInt(e.substring(n+1,n+3),16)),n+=2):t.push(e.charCodeAt(n));return t}static NUMERIC_REGEX=/^[0-9]*$/;static ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/;static ALPHANUMERIC_CHARSET=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`},d=class e{static LOW=new e(0,1);static MEDIUM=new e(1,0);static QUARTILE=new e(2,3);static HIGH=new e(3,2);ordinal;formatBits;constructor(e,t){this.ordinal=e,this.formatBits=t}},f=class e{static NUMERIC=new e(1,[10,12,14]);static ALPHANUMERIC=new e(2,[9,11,13]);static BYTE=new e(4,[8,16,16]);static KANJI=new e(8,[8,10,12]);static ECI=new e(7,[0,0,0]);modeBits;numBitsCharCount;constructor(e,t){this.modeBits=e,this.numBitsCharCount=t}numCharCountBits(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}};o.Ecc=d,u.Mode=f;var p=r(),m={L:o.Ecc.LOW,M:o.Ecc.MEDIUM,Q:o.Ecc.QUARTILE,H:o.Ecc.HIGH};function h(e,t){let n=[];for(let r=0;r<e.size;r+=1){let i=-1;for(let a=0;a<=e.size;a+=1){if(a<e.size&&e.getModule(a,r)){i===-1&&(i=a);continue}i!==-1&&(n.push(`M${i+t} ${r+t}h${a-i}v1H${i+t}z`),i=-1)}}return n.join(``)}var g=(0,i.memo)(function(e){let t=(0,a.c)(38),{value:n,size:r,level:i,marginSize:s,title:c,className:l,foregroundColor:u,backgroundColor:d}=e,f=r===void 0?128:r,g=i===void 0?`L`:i,_=s===void 0?0:s,v=u===void 0?`#000`:u,y=d===void 0?`#fff`:d,b,x,S,C,w,T,E,D,O,k,A;if(t[0]!==y||t[1]!==l||t[2]!==g||t[3]!==_||t[4]!==f||t[5]!==c||t[6]!==n){let e=o.encodeText(n,m[g]),r=e.size+_*2;O=`http://www.w3.org/2000/svg`,k=`0 0 ${r} ${r}`,A=f,b=f,x=`crispEdges`,S=c?`img`:void 0,C=c,w=l,t[18]===c?T=t[19]:(T=c?(0,p.jsx)(`title`,{children:c}):null,t[18]=c,t[19]=T),t[20]!==y||t[21]!==r?(E=(0,p.jsx)(`rect`,{width:r,height:r,fill:y}),t[20]=y,t[21]=r,t[22]=E):E=t[22],D=h(e,_),t[0]=y,t[1]=l,t[2]=g,t[3]=_,t[4]=f,t[5]=c,t[6]=n,t[7]=b,t[8]=x,t[9]=S,t[10]=C,t[11]=w,t[12]=T,t[13]=E,t[14]=D,t[15]=O,t[16]=k,t[17]=A}else b=t[7],x=t[8],S=t[9],C=t[10],w=t[11],T=t[12],E=t[13],D=t[14],O=t[15],k=t[16],A=t[17];let j;t[23]!==v||t[24]!==D?(j=(0,p.jsx)(`path`,{d:D,fill:v}),t[23]=v,t[24]=D,t[25]=j):j=t[25];let M;return t[26]!==b||t[27]!==x||t[28]!==S||t[29]!==C||t[30]!==w||t[31]!==T||t[32]!==E||t[33]!==j||t[34]!==O||t[35]!==k||t[36]!==A?(M=(0,p.jsxs)(`svg`,{xmlns:O,viewBox:k,width:A,height:b,shapeRendering:x,role:S,"aria-label":C,className:w,children:[T,E,j]}),t[26]=b,t[27]=x,t[28]=S,t[29]=C,t[30]=w,t[31]=T,t[32]=E,t[33]=j,t[34]=O,t[35]=k,t[36]=A,t[37]=M):M=t[37],M});export{g as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import{$ as r,Dt as i,Et as a,It as o,Ot as s,St as c,i as l,kt as u,xt as d}from"./composerDraftStore-
|
|
1
|
+
import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import{$ as r,Dt as i,Et as a,It as o,Ot as s,St as c,i as l,kt as u,xt as d}from"./composerDraftStore-DC2r8dcu.js";import{Et as f,Mn as p,Nn as m,Sn as h,Tt as g,Xn as _,in as v,on as y,zt as b}from"./usePopupViewport-CAMlnyaP.js";import{d as x,l as S,o as C,s as w,t as T}from"./useRenderElement-DchFnsR8.js";import{t as E}from"./chevron-down-B7C6FKzM.js";import{t as D}from"./sparkles-CAf3oJ5S.js";import{t as ee}from"./utils-B76_2Yk7.js";import{a as O}from"./timestampFormat-8uPXS812.js";import{n as k,t as A}from"./useButton-DUuWgIMw.js";import{u as j}from"./useScrollLock-CAPfesBT.js";import{t as M}from"./useValueChanged-D0CHQQwP.js";import{n as N}from"./clamp-CgH0Dl6R.js";import{l as P}from"./resolveAriaLabelledBy-l4SuqStl.js";import{i as F,l as I,n as L,r as R,s as te,t as ne,u as re}from"./useLabelableId-KX33mhBC.js";import{n as z}from"./switch-CntUxI1A.js";import{t as ie}from"./button-Wf_1nfeu.js";import{a as B,c as V,d as H,i as U,l as W,p as G,u as K}from"./menu-BuDpxm_Q.js";import{t as ae}from"./CompositeItem-ClLCuzeJ.js";import{c as q}from"./MobileSheet-BPvuTPR6.js";import{n as oe,t as se}from"./CompositeRoot-Bdsr9eHn.js";import"./providerModels-BPwEwwpF.js";var J=n(),Y=o(),X=e(t(),1),Z=X.createContext(void 0);function Q(e=!1){let t=X.useContext(Z);if(!t&&!e)throw Error(x(86));return t}Object.keys(I);function ce(e,t){return e.matches(`:disabled`)?!1:!t||e.form===t||e.form===null&&!e.hasAttribute(`form`)}var le=X.createContext({disabled:!1});function ue(){return X.useContext(le)}var de=360;function fe(e){return!Number.isFinite(e)||e<0?0:e>100?100:e}function pe(e){return 100-fe(e)}function me(e){let t=e.windowDurationMins;if(typeof t!=`number`||!Number.isFinite(t)||t<=0)return{label:`Window`,bucket:`other`};if(t<=de)return{label:`${Math.max(1,Math.round(t/60))}h`,bucket:`short`};if(t>=9720)return{label:`Weekly`,bucket:`week`};let n=Math.round(t/1440);return n>=1?{label:`${n}d`,bucket:`other`}:{label:`${Math.max(1,Math.round(t/60))}h`,bucket:`other`}}function he(e){if(typeof e!=`number`||!Number.isFinite(e)||e<=0)return null;let t=new Date(e*1e3).toISOString();return O(t)}function ge(e){let t=he(e);return t===null?null:t===`Expired`?`expired`:`resets in ${t.replace(/ left$/,``)}`}var _e=`Ultrathink:
|
|
2
2
|
`;function ve(e,t,n){return e.map(e=>e.id===t?e.type===`boolean`?{...e,...typeof n==`boolean`?{currentValue:n}:{}}:{...e,...typeof n==`string`?{currentValue:n}:{}}:e)}function ye(e){let{descriptors:t,descriptor:n,value:r,prompt:i,primarySelectDescriptorId:a,ultrathinkInBodyText:o,ultrathinkPromptControlled:s,onChangeDescriptors:c,onPromptChange:l}=e;if(r){if(n.promptInjectedValues?.includes(r)){l(i.trim().length===0?_e:d(i,`ultrathink`));return}o&&n.id===a||(s&&n.id===a&&l(i.replace(/^Ultrathink:\s*/i,``)),c(ve(t,n.id,r)))}}var be={none:`None`,minimal:`Min`,low:`Low`,medium:`Med`,high:`High`,xhigh:`XHigh`,max:`Max`,ultra:`Ultra`,ultracode:`UCode`,ultrathink:`Ultra`},$=`bg-slate-400/15 text-slate-700 dark:bg-slate-500/20 dark:text-slate-300`,xe={none:$,minimal:$,low:$,medium:`bg-blue-500/15 text-blue-700 dark:bg-blue-500/20 dark:text-blue-300`,high:`bg-indigo-500/15 text-indigo-700 dark:bg-indigo-500/20 dark:text-indigo-300`,xhigh:`bg-violet-500/15 text-violet-700 dark:bg-violet-500/20 dark:text-violet-300`,max:`bg-fuchsia-500/15 text-fuchsia-700 dark:bg-fuchsia-500/20 dark:text-fuchsia-300`,ultra:`bg-gradient-to-br from-pink-500/20 to-purple-500/25 text-fuchsia-700 ring-1 ring-fuchsia-500/25 dark:text-fuchsia-300`,ultracode:`bg-rose-500/15 text-rose-700 ring-1 ring-rose-500/25 dark:bg-rose-500/20 dark:text-rose-300`,ultrathink:`bg-gradient-to-br from-pink-500/20 to-purple-500/25 text-fuchsia-700 ring-1 ring-fuchsia-500/25 dark:text-fuchsia-300`},Se={none:`text-slate-600 dark:text-slate-300`,minimal:`text-slate-600 dark:text-slate-300`,low:`text-slate-600 dark:text-slate-300`,medium:`text-blue-600 dark:text-blue-300`,high:`text-indigo-600 dark:text-indigo-300`,xhigh:`text-violet-600 dark:text-violet-300`,max:`text-fuchsia-600 dark:text-fuchsia-300`,ultra:`text-fuchsia-600 dark:text-fuchsia-300`,ultracode:`text-rose-600 dark:text-rose-300`,ultrathink:`text-fuchsia-600 dark:text-fuchsia-300`};function Ce(e){if(e===`none`||e===`minimal`||e===`low`||e===`medium`||e===`high`||e===`xhigh`||e===`max`||e===`ultra`||e===`ultracode`||e===`ultrathink`)return e}function we(e){let t=Ce(e);return t?Se[t]:void 0}var Te=(0,X.memo)(function(e){let t=(0,J.c)(44),n=e.ultrathinkPromptControlled?`ultrathink`:typeof e.descriptor.currentValue==`string`?e.descriptor.currentValue:void 0,r;t[0]===n?r=t[1]:(r=n===void 0?`medium`:Ce(n),t[0]=n,t[1]=r);let i=r,a=i===`ultra`||i===`ultrathink`,o;t[2]!==n||t[3]!==i||t[4]!==e.descriptor.options?(o=i===void 0?e.descriptor.options.find(e=>e.id===n)?.label??n??be.medium:be[i],t[2]=n,t[3]=i,t[4]=e.descriptor.options,t[5]=o):o=t[5];let s=o,c=i===void 0?$:xe[i],l=e.disabled??!1,u=`Reasoning: ${s}`,d=`Reasoning: ${s}`,f;t[6]===c?f=t[7]:(f=ee(`gap-1 rounded-md px-1.5 font-medium`,c),t[6]=c,t[7]=f);let p;t[8]!==l||t[9]!==u||t[10]!==d||t[11]!==f?(p=(0,Y.jsx)(ie,{size:`xs`,disabled:l,variant:`ghost`,"aria-label":u,title:d,className:f}),t[8]=l,t[9]=u,t[10]=d,t[11]=f,t[12]=p):p=t[12];let m;t[13]!==s||t[14]!==a?(m=a?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(D,{"aria-hidden":`true`,className:`size-3`}),(0,Y.jsx)(`span`,{children:`Ultra`})]}):(0,Y.jsx)(`span`,{children:s}),t[13]=s,t[14]=a,t[15]=m):m=t[15];let h;t[16]!==p||t[17]!==m?(h=(0,Y.jsx)(G,{render:p,children:m}),t[16]=p,t[17]=m,t[18]=h):h=t[18];let g=n??``,_;t[19]!==e.descriptor||t[20]!==e.descriptors||t[21]!==e.onChangeDescriptors||t[22]!==e.onPromptChange||t[23]!==e.primarySelectDescriptorId||t[24]!==e.prompt||t[25]!==e.ultrathinkInBodyText||t[26]!==e.ultrathinkPromptControlled?(_=t=>{ye({descriptors:e.descriptors,descriptor:e.descriptor,value:t,prompt:e.prompt,primarySelectDescriptorId:e.primarySelectDescriptorId,ultrathinkInBodyText:e.ultrathinkInBodyText,ultrathinkPromptControlled:e.ultrathinkPromptControlled,onChangeDescriptors:e.onChangeDescriptors,onPromptChange:e.onPromptChange})},t[19]=e.descriptor,t[20]=e.descriptors,t[21]=e.onChangeDescriptors,t[22]=e.onPromptChange,t[23]=e.primarySelectDescriptorId,t[24]=e.prompt,t[25]=e.ultrathinkInBodyText,t[26]=e.ultrathinkPromptControlled,t[27]=_):_=t[27];let v;if(t[28]!==e.descriptor.id||t[29]!==e.descriptor.options||t[30]!==e.primarySelectDescriptorId||t[31]!==e.ultrathinkInBodyText){let n;t[33]!==e.descriptor.id||t[34]!==e.primarySelectDescriptorId||t[35]!==e.ultrathinkInBodyText?(n=t=>(0,Y.jsxs)(K,{value:t.id,className:we(t.id),"data-reasoning-level":t.id,disabled:e.ultrathinkInBodyText&&e.descriptor.id===e.primarySelectDescriptorId,children:[t.label,t.isDefault?` (default)`:``]},t.id),t[33]=e.descriptor.id,t[34]=e.primarySelectDescriptorId,t[35]=e.ultrathinkInBodyText,t[36]=n):n=t[36],v=e.descriptor.options.map(n),t[28]=e.descriptor.id,t[29]=e.descriptor.options,t[30]=e.primarySelectDescriptorId,t[31]=e.ultrathinkInBodyText,t[32]=v}else v=t[32];let y;t[37]!==_||t[38]!==v||t[39]!==g?(y=(0,Y.jsx)(V,{align:`start`,children:(0,Y.jsx)(W,{value:g,onValueChange:_,children:v})}),t[37]=_,t[38]=v,t[39]=g,t[40]=y):y=t[40];let b;return t[41]!==y||t[42]!==h?(b=(0,Y.jsxs)(U,{children:[h,y]}),t[41]=y,t[42]=h,t[43]=b):b=t[43],b});function Ee(e){if(!e)return null;let t=i(e);return typeof t==`string`?t:null}function De(e,t,n,i,o,c){let l=r(t,n,e),d=s({caps:l,selections:o}),f=d.filter(e=>e.type===`select`),p=d.filter(e=>e.type===`boolean`),m=f[0]??null,h=f.find(e=>e.id===`contextWindow`)??null,g=f.find(e=>e.id===`agent`)??null,_=p.find(e=>e.id===`fastMode`)??null,v=p.find(e=>e.id===`thinking`)??null,y=c&&(m?.promptInjectedValues?.length??0)>0&&u(i),b=y&&u(i.replace(/^Ultrathink:\s*/i,``));return{caps:l,descriptors:d,selectDescriptors:f,booleanDescriptors:p,primarySelectDescriptor:m,contextWindowDescriptor:h,agentDescriptor:g,fastModeDescriptor:_,thinkingDescriptor:v,effort:(y?`ultrathink`:Ee(m))??null,thinkingEnabled:typeof v?.currentValue==`boolean`?v.currentValue:null,fastModeEnabled:typeof _?.currentValue==`boolean`&&_.currentValue,contextWindow:Ee(h),ultrathinkPromptControlled:y,ultrathinkInBodyText:b,selectedAgent:Ee(g),selectedAgentLabel:g?a(g):null}}function Oe(e){let t=De(e.provider,e.models,e.model,e.prompt,e.modelOptions,e.allowPromptInjectedEffort??!0),n=t.primarySelectDescriptor!==null,r=t.thinkingDescriptor!==null,i=t.fastModeDescriptor!==null,a=t.contextWindowDescriptor!==null,o=t.agentDescriptor!==null;return{...t,showEffort:n,showThinking:r,showFastMode:i,showContextWindow:a,showAgent:o,hasAnyControls:n||r||i||a||o}}function ke(e){return Oe(e).hasAnyControls}var Ae=(0,X.memo)(function(e){let t=(0,J.c)(44),n,r,i,a,o,s,u,d,f,p,m;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],u=t[7],d=t[8],f=t[9],p=t[10],m=t[11]):({provider:f,instanceId:r,models:o,model:i,prompt:d,onPromptChange:s,modelOptions:a,allowPromptInjectedEffort:p,disabled:m,disabledReason:n,...u}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=u,t[8]=d,t[9]=f,t[10]=p,t[11]=m);let h=p===void 0||p,g=m!==void 0&&m,_=l(Me),v;t[12]!==r||t[13]!==i||t[14]!==u||t[15]!==f||t[16]!==_?(v=e=>{if(`onModelOptionsChange`in u){u.onModelOptionsChange(e);return}let t=u.threadRef??u.draftId;t&&_(t,f,e,{...r?{instanceId:r}:{},model:i,persistSticky:!0})},t[12]=r,t[13]=i,t[14]=u,t[15]=f,t[16]=_,t[17]=v):v=t[17];let y=v,b,x,S,C;if(t[18]!==h||t[19]!==g||t[20]!==n||t[21]!==i||t[22]!==a||t[23]!==o||t[24]!==s||t[25]!==d||t[26]!==f||t[27]!==y){C=Symbol.for(`react.early_return_sentinel`);bb0:{let{descriptors:e,selectDescriptors:r,booleanDescriptors:l,primarySelectDescriptor:u,ultrathinkPromptControlled:p,ultrathinkInBodyText:m,hasAnyControls:_}=Oe({provider:f,models:o,model:i,prompt:d,modelOptions:a,allowPromptInjectedEffort:h}),v;t[32]!==g||t[33]!==n?(v=g&&n?q(n):null,t[32]=g,t[33]=n,t[34]=v):v=t[34];let w=v,T;t[35]!==g||t[36]!==y?(T=e=>{g||y(c(e))},t[35]=g,t[36]=y,t[37]=T):T=t[37];let E=T,D=(t,n)=>{g||ye({descriptors:e,descriptor:t,value:n,prompt:d,primarySelectDescriptorId:u?.id,ultrathinkInBodyText:m,ultrathinkPromptControlled:p,onChangeDescriptors:E,onPromptChange:s})};if(!_){C=null;break bb0}t[38]===w?b=t[39]:(b=w?(0,Y.jsx)(`div`,{className:`px-2 pt-1.5 pb-1 text-muted-foreground/80 text-xs`,"data-slot":`traits-disabled-reason`,children:w}):null,t[38]=w,t[39]=b),x=r.map((e,t)=>(0,Y.jsxs)(`div`,{children:[t>0?(0,Y.jsx)(H,{}):null,(0,Y.jsxs)(B,{children:[(0,Y.jsx)(`div`,{className:`px-2 pt-1.5 pb-1 font-medium text-muted-foreground text-xs`,children:e.label}),m&&e.id===u?.id?(0,Y.jsx)(`div`,{className:`px-2 pb-1.5 text-muted-foreground/80 text-xs`,children:`Your prompt contains "ultrathink" in the text. Remove it to change this option.`}):null,(0,Y.jsx)(W,{value:p&&e.id===u?.id?`ultrathink`:Ee(e)??``,onValueChange:t=>D(e,t),children:e.options.map(t=>(0,Y.jsxs)(K,{value:t.id,className:e.id===u?.id?we(t.id):void 0,"data-reasoning-level":e.id===u?.id?t.id:void 0,disabled:g||m&&e.id===u?.id,children:[t.label,t.isDefault?` (default)`:``]},t.id))})]})]},e.id)),S=l.map((t,n)=>(0,Y.jsxs)(`div`,{children:[n>0||r.length>0?(0,Y.jsx)(H,{}):null,(0,Y.jsxs)(B,{children:[(0,Y.jsx)(`div`,{className:`px-2 py-1.5 font-medium text-muted-foreground text-xs`,children:t.label}),(0,Y.jsxs)(W,{value:t.currentValue===!0?`on`:`off`,onValueChange:n=>{E(ve(e,t.id,n===`on`))},children:[(0,Y.jsx)(K,{value:`on`,disabled:g,children:`On`}),(0,Y.jsx)(K,{value:`off`,disabled:g,children:`Off`})]})]})]},t.id))}t[18]=h,t[19]=g,t[20]=n,t[21]=i,t[22]=a,t[23]=o,t[24]=s,t[25]=d,t[26]=f,t[27]=y,t[28]=b,t[29]=x,t[30]=S,t[31]=C}else b=t[28],x=t[29],S=t[30],C=t[31];if(C!==Symbol.for(`react.early_return_sentinel`))return C;let w;return t[40]!==b||t[41]!==x||t[42]!==S?(w=(0,Y.jsxs)(Y.Fragment,{children:[b,x,S]}),t[40]=b,t[41]=x,t[42]=S,t[43]=w):w=t[43],w}),je=(0,X.memo)(function(e){let t=(0,J.c)(64),n,r,i,o,s,c,l,u,d,f,p,m,h,g;t[0]===e?(n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],d=t[9],f=t[10],p=t[11],m=t[12],h=t[13],g=t[14]):({provider:d,instanceId:r,models:s,model:i,prompt:u,onPromptChange:c,modelOptions:o,allowPromptInjectedEffort:f,disabled:p,disabledReason:n,triggerSize:h,triggerVariant:g,triggerClassName:m,...l}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s,t[6]=c,t[7]=l,t[8]=u,t[9]=d,t[10]=f,t[11]=p,t[12]=m,t[13]=h,t[14]=g);let _=f===void 0||f,v=p!==void 0&&p,[y,b]=(0,X.useState)(!1),x,S;if(t[15]!==_||t[16]!==i||t[17]!==o||t[18]!==s||t[19]!==u||t[20]!==d){S=Symbol.for(`react.early_return_sentinel`);bb0:{let{descriptors:e,primarySelectDescriptor:t,ultrathinkPromptControlled:n}=Oe({provider:d,models:s,model:i,prompt:u,modelOptions:o,allowPromptInjectedEffort:_});if(!ke({provider:d,models:s,model:i,prompt:u,modelOptions:o,allowPromptInjectedEffort:_})){S=null;break bb0}x=e.map(e=>n&&e.id===t?.id?`Ultrathink`:e.type===`boolean`?e.id===`fastMode`?e.currentValue===!0?`Fast`:`Normal`:`${e.label} ${e.currentValue===!0?`On`:`Off`}`:a(e)).filter(Ne).join(` · `)||``}t[15]=_,t[16]=i,t[17]=o,t[18]=s,t[19]=u,t[20]=d,t[21]=x,t[22]=S}else x=t[21],S=t[22];if(S!==Symbol.for(`react.early_return_sentinel`))return S;let C=x,w=d===`codex`,T;t[23]===v?T=t[24]:(T=e=>{if(v){b(!1);return}b(e)},t[23]=v,t[24]=T);let D=h??`sm`,O=g??`ghost`,k;t[25]!==v||t[26]!==n?(k=v&&n?{title:q(n)}:{},t[25]=v,t[26]=n,t[27]=k):k=t[27];let A=w?`min-w-0 max-w-40 shrink justify-start overflow-hidden whitespace-nowrap px-1.5 text-muted-foreground/70 hover:text-foreground/80 sm:max-w-44 sm:px-2 [&_svg]:mx-0`:`shrink-0 whitespace-nowrap px-1.5 text-muted-foreground/70 hover:text-foreground/80 sm:px-2`,j;t[28]!==A||t[29]!==m?(j=ee(A,m),t[28]=A,t[29]=m,t[30]=j):j=t[30];let M;t[31]!==v||t[32]!==j||t[33]!==D||t[34]!==O||t[35]!==k?(M=(0,Y.jsx)(ie,{size:D,variant:O,disabled:v,...k,className:j}),t[31]=v,t[32]=j,t[33]=D,t[34]=O,t[35]=k,t[36]=M):M=t[36];let N;t[37]!==w||t[38]!==C?(N=w?(0,Y.jsxs)(`span`,{className:`flex min-w-0 w-full items-center gap-2 overflow-hidden`,children:[C,(0,Y.jsx)(E,{"aria-hidden":`true`,className:`size-3 shrink-0 opacity-60`})]}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`span`,{children:C}),(0,Y.jsx)(E,{"aria-hidden":`true`,className:`size-3 opacity-60`})]}),t[37]=w,t[38]=C,t[39]=N):N=t[39];let P;t[40]!==M||t[41]!==N?(P=(0,Y.jsx)(G,{render:M,children:N}),t[40]=M,t[41]=N,t[42]=P):P=t[42];let F;t[43]===r?F=t[44]:(F=r?{instanceId:r}:{},t[43]=r,t[44]=F);let I;t[45]===n?I=t[46]:(I=n?{disabledReason:n}:{},t[45]=n,t[46]=I);let L;t[47]!==_||t[48]!==v||t[49]!==i||t[50]!==o||t[51]!==s||t[52]!==c||t[53]!==l||t[54]!==u||t[55]!==d||t[56]!==F||t[57]!==I?(L=(0,Y.jsx)(V,{align:`start`,children:(0,Y.jsx)(Ae,{provider:d,...F,models:s,model:i,prompt:u,onPromptChange:c,modelOptions:o,allowPromptInjectedEffort:_,disabled:v,...I,...l})}),t[47]=_,t[48]=v,t[49]=i,t[50]=o,t[51]=s,t[52]=c,t[53]=l,t[54]=u,t[55]=d,t[56]=F,t[57]=I,t[58]=L):L=t[58];let R;return t[59]!==y||t[60]!==P||t[61]!==L||t[62]!==T?(R=(0,Y.jsxs)(U,{open:y,onOpenChange:T,children:[P,L]}),t[59]=y,t[60]=P,t[61]=L,t[62]=T,t[63]=R):R=t[63],R});function Me(e){return e.setProviderModelOptions}function Ne(e){return typeof e==`string`&&e.length>0}var Pe={checked(e){return e?{"data-checked":``}:{"data-unchecked":``}},..._,...re},Fe=X.createContext(void 0);function Ie(){return X.useContext(Fe)}var Le=X.createContext(void 0),Re=X.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,readOnly:a=!1,required:o=!1,"aria-labelledby":s,value:c,inputRef:l,nativeButton:u=!1,id:d,style:m,..._}=e,b=Ie(),{disabled:x,readOnly:E,required:D,form:ee,checkedValue:O,touched:j=!1,validation:M,name:N,setCheckedValue:F=w,setTouched:I=w,registerInputRef:R=w}=b??{},{setTouched:re,setFilled:ie,state:B,disabled:V}=te(),H=ue(),{labelId:U,getDescriptionProps:W}=L(),G=V||H.disabled||x||i,K=E||a,q=D||o,se=ee,J=b?O===c:c===``,Z=X.useRef(null),Q=X.useRef(null),ce=M?.registerInput,le=X.useCallback(e=>ce?.(e,{controlRef:Z,value:void 0}),[ce]),de=S(l,Q,R,le);p(()=>{Q.current?.checked&&ie(!0)},[ie]),p(()=>{if(Q.current){if(G&&J){R(null);return}R(Q.current)}},[J,G,R]);let fe=v(),pe=ne({id:d,implicit:!1,controlRef:Z}),me=u?void 0:pe,he={role:`radio`,"aria-checked":J,"aria-labelledby":z(s,U,Q,!u,me),[oe]:J?``:void 0,id:u?pe:fe,onKeyDown(e){e.key===`Enter`&&e.preventDefault()},onClick(e){if(e.defaultPrevented||G||K)return;e.preventDefault();let t=Q.current;t&&k(t,e)},onFocus(e){e.defaultPrevented||G||K||!j||(Q.current?.click(),I(!1))}},{getButtonProps:ge,buttonRef:_e}=A({disabled:G,native:u,composite:!1}),ve={type:`radio`,ref:de,form:se,id:me,name:N,tabIndex:-1,style:N?f:g,"aria-hidden":!0,...c===void 0?C:{value:P(c)},disabled:G,checked:J,required:q,readOnly:K,onChange(e){if(e.nativeEvent.defaultPrevented||G||K||c===void 0)return;let t=y(h,e.nativeEvent);F(c,t),!t.isCanceled&&re(!0)},onClick(e){e.stopPropagation()},onFocus(){Z.current?.focus()}},ye=X.useMemo(()=>({...B,required:q,disabled:G,readOnly:K,checked:J}),[B,G,K,J,q]),be=ye,$=b!==void 0,xe=[t,Z,_e],Se=[he,_,ge,W,M?e=>M.getValidationProps(G,e):C],Ce=T(`span`,e,{enabled:!$,state:ye,ref:xe,props:Se,stateAttributesMapping:Pe});return(0,Y.jsxs)(Le.Provider,{value:be,children:[$?(0,Y.jsx)(ae,{tag:`span`,render:n,className:r,style:m,state:ye,refs:xe,props:Se,stateAttributesMapping:Pe}):Ce,(0,Y.jsx)(`input`,{...ve,suppressHydrationWarning:!0})]})}),ze=[j],Be=X.forwardRef(function(e,t){let{render:n,className:r,disabled:i,readOnly:a,required:o,onValueChange:s,value:c,defaultValue:l,form:u,name:d,inputRef:f,id:p,style:h,...g}=e,{setTouched:_,setFocused:y,validationMode:x,name:S,disabled:C,state:w,validation:T,setDirty:E,setFilled:D,validityData:ee}=te(),{labelId:O}=L(),{clearErrors:k,elementRef:A}=R(),j=Q(!0),P=C||i,I=S??d,ne=v(p),[z,ie]=N({controlled:c,default:l,name:`RadioGroup`,state:`value`}),[B,V]=X.useState(!1),H=m((e,t)=>{s?.(e,t),!t.isCanceled&&ie(e)}),U=T.getInputControl,W=X.useMemo(()=>({get current(){return U()}}),[U]),G=X.useRef(null),K=X.useRef(null);function ae(e){let t;return f&&(typeof f==`function`?t=f(e):f.current=e),G.current=e,t}let q=m(e=>{if(!e||e.disabled)return;K.current||=e;let t=G.current,n=e.checked||t==null||t.disabled?ae(e):void 0;return()=>{K.current===e&&(K.current=null),G.current===e?n?(n(),G.current=null):ae(null):n?.()}}),oe=m(()=>{let e=A.current;if(!e)return z??null;for(let t of T.registeredInputs.keys())if(t.checked&&ce(t,e))return z??null;return null});F(W,ne,z??null,oe,!P,d),M(z,()=>{k(I),E(z!==ee.initialValue),D(z!=null),T.change(z);let e=K.current;z==null&&e&&!e.disabled&&ae(e)});let J=O??j?.legendId,Z={...w,disabled:P??!1,required:o??!1,readOnly:a??!1},le=X.useMemo(()=>({checkedValue:z,disabled:P,form:u,validation:T,name:I,readOnly:a,registerInputRef:q,required:o,setCheckedValue:H,setTouched:V,touched:B}),[z,P,u,T,I,a,q,o,H,V,B]),ue={id:p,role:`radiogroup`,"aria-required":o||void 0,"aria-disabled":P||void 0,"aria-readonly":a||void 0,"aria-labelledby":J,onFocus(){y(!0)},onBlur(e){b(e.currentTarget,e.relatedTarget)||(_(!0),y(!1),x===`onBlur`&&T.commit(z))},onKeyDownCapture(e){e.key.startsWith(`Arrow`)&&(V(!0),y(!0))}};return(0,Y.jsx)(Fe.Provider,{value:le,children:(0,Y.jsx)(se,{render:n,className:r,style:h,state:Z,props:[ue,g,e=>T.getValidationProps(P??!1,e)],refs:[t],stateAttributesMapping:re,enableHomeAndEndKeys:!1,modifierKeys:ze})})});function Ve(e){let t=(0,J.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=ee(`flex flex-col gap-3`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Y.jsx)(Be,{className:i,"data-slot":`radio-group`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{ke as a,pe as c,ge as d,ue as f,je as i,fe as l,Re as n,Te as o,Ae as r,ve as s,Ve as t,me as u};
|
package/dist/client/assets/{resolveAriaLabelledBy-CD_ugzhJ.js → resolveAriaLabelledBy-l4SuqStl.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,t}from"./react-SIfiwpqq.js";import{It as n}from"./composerDraftStore-
|
|
1
|
+
import{i as e,t}from"./react-SIfiwpqq.js";import{It as n}from"./composerDraftStore-DC2r8dcu.js";var r=e(t(),1);function i(e){let t=r.useRef(!0);t.current&&(t.current=!1,e())}var a=(e,t)=>Object.is(e,t);function o(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function s(e,t,n){return!e||e.length===0?!1:e.some(e=>e!==void 0&&o(t,e,n))}function c(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e!==void 0&&o(e,t,n))}function l(e,t,n,r){let i=c(e,r&&Array.isArray(t)?t[t.length-1]:t,n);return i===-1?null:i}function u(e,t,n){return e.filter(e=>!o(t,e,n))}function d(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}var f=n();function p(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function m(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(p(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function h(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return d(e)}function g(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?d(e.value):d(e)}function _(e,t,n){function r(){return h(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=t,i=p(n)?n.flatMap(e=>e.items):n;if(typeof e!=`object`||!e){let t=i.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=i.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function v(e,t,n){return e.reduce((e,i,a)=>(a>0&&e.push(`, `),e.push((0,f.jsx)(r.Fragment,{children:_(i,t,n)},a)),e),[])}function y(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}function b(e,t){return e??t}export{v as a,g as c,a as d,c as f,i as g,s as h,p as i,d as l,u as m,y as n,_ as o,l as p,m as r,h as s,b as t,o as u};
|
package/dist/client/assets/{rightPanelRouteSearch-DB5gQGHK.js → rightPanelRouteSearch-DmpObL1z.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./env-
|
|
1
|
+
import{t as e}from"./env-Bf33qXdb.js";import{Ir as t,zr as n}from"./src-Ca7Gag3m.js";import{f as r}from"./useSwipeDismiss-BZsYSBgq.js";function i(e){return r({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}var a=e?`pl-[232px] wco:pl-[calc(env(titlebar-area-x)+10rem)]`:`pl-[calc(env(safe-area-inset-left)+10rem)]`,o=`transition-[padding-left] duration-200 ease-linear motion-reduce:transition-none`;function s(e){return e===`1`||e===1||e===!0}function c(e){if(typeof e!=`string`)return;let t=e.trim();return t.length>0?t:void 0}function l(e){let{diff:t,diffTurnId:n,diffFilePath:r,...i}=e;return i}function u(e){let t=s(e.diff)?`1`:void 0,r=t?c(e.diffTurnId):void 0,i=r?n.make(r):void 0,a=t&&i?c(e.diffFilePath):void 0;return{...t?{diff:t}:{},...i?{diffTurnId:i}:{},...a?{diffFilePath:a}:{}}}function d(e){return e===`1`||e===1||e===!0}function f(e){let{preview:t,...n}=e;return n}function p(e){let t=d(e.preview)?`1`:void 0;return t?{preview:t}:{}}function m(e){if(typeof e!=`string`)return;let t=e.trim();return t.length>0?t:void 0}function h(e){if(e===`review`||e===`files`||e===`terminal`||e===`simulator`||e===`agent`||e===`agents`)return e}function g(e){let{workspaceOpen:t,workspaceTab:n,workspaceAgentKey:r,...i}=e;return i}function _(e){return g(f(l(e)))}function v(e){return{..._(e),workspaceOpen:`1`,workspaceTab:void 0,workspaceAgentKey:void 0,diff:void 0,diffTurnId:void 0,diffFilePath:void 0,preview:void 0}}function y(e,t){return{..._(e),workspaceOpen:`1`,workspaceTab:`review`,workspaceAgentKey:void 0,diff:`1`,diffTurnId:t?.diffTurnId,diffFilePath:t?.diffTurnId?t.diffFilePath:void 0,preview:void 0}}function b(e){return{..._(e),workspaceOpen:`1`,workspaceTab:`files`,workspaceAgentKey:void 0,diff:void 0,diffTurnId:void 0,diffFilePath:void 0,preview:`1`}}function x(e){return{..._(e),workspaceOpen:`1`,workspaceTab:`terminal`,workspaceAgentKey:void 0,diff:void 0,diffTurnId:void 0,diffFilePath:void 0,preview:void 0}}function S(e){return{..._(e),workspaceOpen:`1`,workspaceTab:`simulator`,workspaceAgentKey:void 0,diff:void 0,diffTurnId:void 0,diffFilePath:void 0,preview:void 0}}function C(e){return{..._(e),workspaceOpen:`1`,workspaceTab:`agents`,workspaceAgentKey:void 0,diff:void 0,diffTurnId:void 0,diffFilePath:void 0,preview:void 0}}function w(e,t){return{..._(e),workspaceOpen:`1`,workspaceTab:`agent`,workspaceAgentKey:t,diff:void 0,diffTurnId:void 0,diffFilePath:void 0,preview:void 0}}function T(e){let t=e.workspaceOpen===`1`?`1`:void 0,n=h(e.workspaceTab);if(!n)return t?{workspaceOpen:t}:{};let r=n===`agent`?m(e.workspaceAgentKey):void 0;return n===`agent`&&!r?{}:{workspaceOpen:`1`,workspaceTab:n,...r?{workspaceAgentKey:r}:{}}}function E(e){let n=typeof e.messageId==`string`?e.messageId.trim():``;return n.length>0?{messageId:t.make(n)}:{}}function D(e){let t=T(e),n=u(e),r=p(e),i=E(e);return t.workspaceTab===`agent`&&t.workspaceAgentKey?{...t,...i}:t.workspaceTab===`review`?{...n,...i,workspaceOpen:`1`,workspaceTab:`review`,diff:`1`}:t.workspaceTab===`files`?{...r,...i,workspaceOpen:`1`,workspaceTab:`files`,preview:`1`}:t.workspaceTab===`terminal`?{...i,workspaceOpen:`1`,workspaceTab:`terminal`}:t.workspaceTab===`simulator`?{...i,workspaceOpen:`1`,workspaceTab:`simulator`}:t.workspaceTab===`agents`?{...i,workspaceOpen:`1`,workspaceTab:`agents`}:n.diff===`1`?{...n,...i,workspaceOpen:`1`,workspaceTab:`review`}:r.preview===`1`?{...r,...i,workspaceOpen:`1`,workspaceTab:`files`}:t.workspaceOpen===`1`?{...t,...i}:i}function O(e){return e.workspaceTab===`agents`?`agents`:e.workspaceTab===`agent`&&e.workspaceAgentKey?`agent`:e.workspaceTab===`review`||e.diff===`1`?`review`:e.workspaceTab===`files`||e.preview===`1`?`files`:e.workspaceTab===`terminal`?`terminal`:e.workspaceTab===`simulator`?`simulator`:null}function k(e){return e.workspaceOpen===`1`||O(e)!==null}export{i as _,C as a,S as c,_ as d,p as f,a as g,o as h,w as i,x as l,l as m,k as n,b as o,u as p,D as r,y as s,O as t,v as u};
|